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W,IACX,OAAQ,IACR,UAAW,IACX,OAAQ,IACR,YAAa,IACb,eAAgB,IAChB,UAAW,IACX,OAAQ,IACR,UAAW,IACX,aAAc,IACd,gBAAiB,IACjB,OAAQ,IACR,UAAW,IACX,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,IACd,UAAW,IACX,aAAc,KAIf,SAASsT,EAAeC,GACvB,IAAI9U,EAAK+U,EAAsBD,GAC/B,OAAOE,EAAoBhV,EAC5B,CACA,SAAS+U,EAAsBD,GAC9B,IAAIE,EAAoBC,EAAE1T,EAAKuT,GAAM,CACpC,IAAII,EAAI,IAAIX,MAAM,uBAAyBO,EAAM,KAEjD,MADAI,EAAEC,KAAO,mBACHD,CACP,CACA,OAAO3T,EAAIuT,EACZ,CACAD,EAAeO,KAAO,WACrB,OAAOC,OAAOD,KAAK7T,EACpB,EACAsT,EAAeS,QAAUP,EACzBQ,EAAOC,QAAUX,EACjBA,EAAe7U,GAAK,wBCnSpBuV,EAAOC,QAAU7J,2BCAjB4J,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./src/actions/ecomm-current-event.ts?31c1","webpack://Msdyn365.Commerce.Online/./src/actions/helper-functions.ts?5715","webpack://Msdyn365.Commerce.Online/./src/components/breakpoints.ts?f4e7","webpack://Msdyn365.Commerce.Online/./src/components/ecomm-product-card.tsx?2eed","webpack://Msdyn365.Commerce.Online/./src/components/enums.ts?ba3b","webpack://Msdyn365.Commerce.Online/./src/components/popup.tsx?ad47","webpack://Msdyn365.Commerce.Online/./src/modules/ecomm-event-products/ecomm-event-products.tsx?0408","webpack://Msdyn365.Commerce.Online/./src/modules/ecomm-event-products/ecomm-event-products.view.tsx?5374","webpack://Msdyn365.Commerce.Online/./lib/ecomm-event-products/module-registration.js?fd5e","webpack://Msdyn365.Commerce.Online/./node_modules/moment/locale/ sync ^\\.\\/.*$?b2df","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/external var \"ReactDOM\"?853b"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * GetActivecategorymenustate Input Action\r\n */\r\nexport class GetCurrentEventInput implements Msdyn365.IActionInput {\r\n // TODO: Determine if the results of this get action should cache the results and if so provide.\r\n // A cache object type and an appropriate cache key.\r\n public getCacheKey = () => `CurrentEvent`;\r\n public getCacheObjectType = () => 'CurrentEvent';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action.\r\nexport interface IGetCurrentEventStateData {\r\n eventJson: string;\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call.\r\n */\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new GetCurrentEventInput();\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function getCurrentEventStateAction(input: GetCurrentEventInput, ctx: Msdyn365.IActionContext): Promise {\r\n // TODO: Uncomment the below line to get the value from a service.\r\n // const response = await Msdyn365.sendRequest('/get/example/id/1', 'get');\r\n return { eventJson: '' };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >getCurrentEventStateAction,\r\n // TODO: Give your data action a unique id.\r\n id: 'GetCurrentEventStateActionState',\r\n input: createInput\r\n // TODO: Uncomment the below line if this is a meant to be a batched data action.\r\n // isBatched: true\r\n});","import { ICoreContext } from '@msdyn365-commerce/core';\r\n\r\nimport { CategoryHierarchy } from '@msdyn365-commerce/commerce-entities';\r\n\r\nimport { AsyncResult, Customer, Product, ProductSearchCriteria, ProductSearchResult, SimpleProduct } from '@msdyn365-commerce/retail-proxy';\r\nimport { getOrderHistoryAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/CustomersDataActions.g';\r\nimport { searchAsync, searchByCategoryAsync, getByIdsAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\n\r\nimport { v4 as uuidv4, validate as uuidValidate, version as uuidVersion } from 'uuid';\r\n\r\nimport { createOrUpdateBTGPCartLineAsync, createBTGPErrorLogAsync, getByCustomerAllBTGPTransactionAsync } from '../actions/DataActionExtension.g';\r\nimport { CategoryProducts, FormDetails, PastTransaction, CartItem, Transaction } from '../actions/ecomm-interfaces';\r\n\r\nimport DedicationPeriod from '../resources/dedicationPeriod.json';\r\n\r\nexport async function getProductsByCategoryId(context: ICoreContext, categoryId: number): Promise {\r\n const searchResult = await searchByCategoryAsync({ callerContext: context.actionContext }, context.actionContext.requestContext.apiSettings.channelId, context.actionContext.requestContext.apiSettings.catalogId, categoryId).catch(error => console.log('[getProductsByCategoryId] searchByCategoryAsync error: ', error));\r\n\r\n if (searchResult && searchResult.length > 0) {\r\n searchResult.sort((a: ProductSearchResult, b: ProductSearchResult) => ((a.DisplayOrder!) < (b.DisplayOrder!) ? -1 : 1));\r\n\r\n const productIds: number[] = [];\r\n\r\n searchResult.map(item => productIds.push(item.RecordId));\r\n\r\n // const availability = await getEstimatedAvailabilityAsync(context, { ProductIds: productIds, DefaultWarehouseOnly: true }).\r\n // catch(error => console.log('[getProductsByCategoryId] getEstimatedAvailabilityAsync error: ', error));\r\n\r\n // if (availability && availability.ProductWarehouseInventoryAvailabilities) {\r\n // const warehouse = availability.ProductWarehouseInventoryAvailabilities;\r\n\r\n // if (warehouse.length > 0) {\r\n // const availableIds: number[] = [];\r\n\r\n // searchResult.map(item => {\r\n // const found = warehouse.find(stock => stock.ProductId === item.RecordId);\r\n\r\n // if (found && (found.PhysicalAvailableInventoryLevelCode && found.PhysicalAvailableInventoryLevelCode === InventoryLvls.AVAIL)) {\r\n // availableIds.push(item.RecordId);\r\n // }\r\n // });\r\n\r\n // const products = await getByIdsAsync(context, channelId, availableIds).catch(error => console.log('[getProductsByCategoryId] getByIdsAsync error: ', error));\r\n\r\n // return products;\r\n // }\r\n // }\r\n\r\n const products = await getByIdsAsync({ callerContext: context.actionContext }, context.actionContext.requestContext.apiSettings.channelId, productIds).catch(error => console.log('[getProductsByCategoryId] getByIdsAsync error: ', error));\r\n\r\n return products;\r\n }\r\n\r\n return [];\r\n}\r\n\r\nexport async function getProducts(context: ICoreContext, categoryIDs: number[]): Promise {\r\n if (categoryIDs.length > 0) {\r\n const projectDomain = { ChannelId: context.actionContext.requestContext.apiSettings.channelId, CatalogId: context.actionContext.requestContext.apiSettings.catalogId };\r\n\r\n const criterias: ProductSearchCriteria = { Context: projectDomain, CategoryIds: categoryIDs, IncludeAttributes: true };\r\n \r\n const products = await searchAsync({ callerContext: context.actionContext }, criterias);\r\n \r\n return products;\r\n }\r\n\r\n return [];\r\n}\r\n\r\nexport async function getCustomerOrderHistory(context: ICoreContext, hierarchy: AsyncResult, customer: Customer, organisation: string, isUat: boolean, limit: number) {\r\n const dictionary = await generateDictionary(context, hierarchy);\r\n\r\n const orders = await getOrderHistoryAsync({ callerContext: context.actionContext }, customer.AccountNumber);\r\n\r\n const orderHistory: PastTransaction[] = [];\r\n\r\n const btgpTransactions = await getByCustomerAllBTGPTransactionAsync({ callerContext: context.actionContext }, customer.AccountNumber, customer.Email!, organisation, isUat, limit);\r\n\r\n for (let i = 0; i < btgpTransactions.length; i++) {\r\n const transaction: Transaction = JSON.parse(btgpTransactions[`${i}`]);\r\n \r\n if (transaction['errorCode']) {\r\n console.log(transaction['errorMessage']);\r\n } else {\r\n const transactionNames: string[] = [];\r\n\r\n for (let j = 1; j <= 20; j++) {\r\n const nameID = 'Name_' + j;\r\n\r\n if (transaction[`${nameID}`]) {\r\n transactionNames.push(transaction[`${nameID}`]);\r\n }\r\n }\r\n\r\n let mainName = '';\r\n let mainID = 0;\r\n let price = 0;\r\n\r\n if (transaction.ProductCategoryID === '' || transaction.ProductCategoryID === null) {\r\n dictionary.forEach(record => {\r\n const found = record.Products.find(item => item.RecordId === parseInt(transaction.ProductID));\r\n\r\n if (found) { \r\n mainName = record.Main.Name!; \r\n mainID = record.Main.RecordId;\r\n price = found.Price ? found.Price : 0;\r\n }\r\n });\r\n } else {\r\n mainName = transaction.ProductCategory;\r\n mainID = Number(transaction.ProductCategoryID);\r\n price = transaction.ProductPrice;\r\n }\r\n\r\n if (transaction.DedicationPeriod !== '') {\r\n let found = DedicationPeriod.en.period.findIndex(item => item.label === transaction.DedicationPeriod);\r\n\r\n // Look through chinese version.\r\n if (found < 0) {\r\n found = DedicationPeriod.zh.period.findIndex(item => item.label === transaction.DedicationPeriod);\r\n }\r\n\r\n // Found matching dedication period.\r\n if (found >= 0) {\r\n price = price * DedicationPeriod.scale[`${found}`];\r\n }\r\n }\r\n\r\n const matchingOrder = orders.find(order => order.Id === transaction.SalesOrderID);\r\n const orderReceiptNo = transaction.ReceiptNo === '' ? matchingOrder && matchingOrder.SalesId ? matchingOrder.SalesId : 'Pending' : transaction.ReceiptNo;\r\n\r\n let order = transaction;\r\n order.ProductPrice = price;\r\n order.ProductCategory = mainName;\r\n order.ProductCategoryID = mainID.toString();\r\n\r\n orderHistory.push({ \r\n EventDates: [transaction.EventName],\r\n Names: transactionNames,\r\n OrderDate: transaction.DateOfTransaction ? new Date(transaction.DateOfTransaction) : new Date(),\r\n ReceiptNo: [orderReceiptNo],\r\n Record: order\r\n });\r\n }\r\n }\r\n\r\n orderHistory.sort((a, b) => {\r\n return b.OrderDate.getTime() - a.OrderDate.getTime();\r\n }); \r\n\r\n return orderHistory;\r\n}\r\n\r\nexport async function generateErrorLog(context: ICoreContext, errorLogName: string, errorDetails: string, item: FormDetails) {\r\n await createBTGPErrorLogAsync({ callerContext: context.actionContext }, generateUUID(), errorLogName, errorDetails, new Date().toISOString(), item.CartLineID, item.CartID, item.ProductID, item.EventID, item.EventName, item.SerialID, item.SerialNumber, item.SerialName, item.Name_1, item.Name_2, item.Name_3, item.Name_4, item.Name_5, item.Name_6, item.Name_7, item.Name_8, item.Name_9, item.Name_10, item.Name_11, item.Name_12, item.Name_13, item.Name_14, item.Name_15, item.Name_16, item.Name_17, item.Name_18, item.Name_19, item.Name_20, item.Remarks, item.Message, item.Category, item.DedicatedBy, item.HasTaxDeduction, item.Nric, item.BuildingName, item.UnitNumber, item.PostalCode, item.BirthDate, item.PhoneNumber, item.SchoolName, item.DonationOption, item.BlessingOption, item.CartLineComment, item.BirthTime, item.LightOption, item.ValidFrom, item.ValidTo, item.ParentCartLineID, item.DedicationPeriod, item.Country, item.CompanyName, item.DeceasedRelationship, item.SurgeryDate, item.DeathDate, item.DeathTime, item.NameChange, item.OldName_1, item.OldName_2, item.BirthDate_2, item.BirthTime_2, item.StartDate, item.Gender, item.ChineseName, item.ContactNumber, item.NameNextKin, item.ContactNumberNextKin, item.PassportNumber, item.PassportExpiryDate, item.PassportIssuedDate);\r\n}\r\n\r\nexport async function createOrUpdateCartline(context: ICoreContext, item: CartItem): Promise {\r\n const result = await createOrUpdateBTGPCartLineAsync({ callerContext: context.actionContext }, item.Form.CartLineID, item.Form.CartID, item.Form.ProductID, item.Form.EventID, item.Form.EventName, item.Form.SerialID, item.Form.SerialNumber, item.Form.SerialName, item.Form.Name_1, item.Form.Name_2, item.Form.Name_3, item.Form.Name_4, item.Form.Name_5, item.Form.Name_6, item.Form.Name_7, item.Form.Name_8, item.Form.Name_9, item.Form.Name_10, item.Form.Name_11, item.Form.Name_12, item.Form.Name_13, item.Form.Name_14, item.Form.Name_15, item.Form.Name_16, item.Form.Name_17, item.Form.Name_18, item.Form.Name_19, item.Form.Name_20, item.Form.Remarks, item.Form.Message, item.Form.Category, item.Form.DedicatedBy, item.Form.HasTaxDeduction, item.Form.Nric, item.Form.BuildingName, item.Form.UnitNumber, item.Form.PostalCode, item.Form.BirthDate, item.Form.PhoneNumber, item.Form.SchoolName, item.Form.DonationOption, item.Form.BlessingOption, item.Form.CartLineComment, item.Form.BirthTime, item.Form.LightOption, item.Form.ValidFrom, item.Form.ValidTo, item.Form.ParentCartLineID, item.Form.DedicationPeriod, item.Form.Country, item.Form.CompanyName, item.Form.DeceasedRelationship, item.Form.SurgeryDate, item.Form.DeathDate, item.Form.DeathTime, item.Form.NameChange, item.Form.OldName_1, item.Form.OldName_2, item.Form.BirthDate_2, item.Form.BirthTime_2, item.IsValid, item.InvalidType, item.InCart, item.IsSubProduct, item.Form.StartDate, item.Form.Gender, item.Form.ChineseName, item.Form.NameNextKin, item.Form.ContactNumber, item.Form.ContactNumberNextKin, item.Form.PassportNumber, item.Form.PassportExpiryDate, item.Form.PassportIssuedDate, item.Form.Consent, item.Form.IsInsuranceIncluded);\r\n\r\n return result;\r\n}\r\n\r\nexport async function generateDictionary(context: ICoreContext, hierarchy: AsyncResult): Promise {\r\n const dictionary: CategoryProducts[] = [];\r\n\r\n if (hierarchy.result) {\r\n hierarchy.result.forEach(record => {\r\n if (record.Children && record.Children.length > 0) {\r\n dictionary.push({ Main: record, SubIDs: record.Children.map(item => item.RecordId), Products: [] });\r\n }\r\n });\r\n }\r\n\r\n for (let j = 0; j < dictionary.length; ++j) {\r\n dictionary[`${j}`].Products = await getProducts(context, dictionary[`${j}`].SubIDs);\r\n }\r\n\r\n return dictionary;\r\n}\r\n\r\nexport function generateUUID(): string {\r\n let uuid = uuidv4();\r\n\r\n while (!(uuidValidate(uuid) && uuidVersion(uuid) == 4)) {\r\n uuid = uuidv4();\r\n }\r\n\r\n return uuid;\r\n}","// <= 999 = Mobile\r\n// >= 1000 = Tablet and Desktop\r\n\r\nexport const enum Breakpoints {\r\n small = 540,\r\n medium = 768,\r\n large = 992\r\n}\r\n\r\nexport function isMobile (width: number): boolean {\r\n return width < Breakpoints.large;\r\n}","import React from 'react';\r\n\r\nimport { ICoreContext, Image } from '@msdyn365-commerce/core';\r\nimport { IGridSettings } from '@msdyn365-commerce/core-internal';\r\nimport { SimpleProduct } from '@msdyn365-commerce/retail-proxy';\r\nimport { getFallbackImageUrl, getProductUrlSync } from '@msdyn365-commerce-modules/retail-actions';\r\n\r\nexport interface IProductCardProps {\r\n context: ICoreContext;\r\n gridSettings: IGridSettings;\r\n product: SimpleProduct;\r\n hasExpired: boolean;\r\n isRegistered: boolean;\r\n unavailableText: string;\r\n registeredText: string;\r\n}\r\n\r\n/**\r\n *\r\n * ProductCard component\r\n * @extends {React.PureComponent}\r\n */\r\nexport class ProductCard extends React.PureComponent {\r\n public render(): JSX.Element | null {\r\n const style = this.props.hasExpired ? 'ecomm-product-card not-available' : 'ecomm-product-card';\r\n\r\n return (\r\n
  • \r\n
    \r\n {this.props.hasExpired &&

    {this.props.unavailableText}

    }\r\n \r\n {this.props.isRegistered &&
    {this.props.registeredText}
    }\r\n
    \r\n
    \r\n

    {this.props.product.Name}

    \r\n

    {this.props.product.Price == 0 ? '' : '$' + this.props.product.Price}

    \r\n
    \r\n
  • \r\n );\r\n }\r\n\r\n private _handleOnClick = () => {\r\n if (!this.props.hasExpired) {\r\n window.location.assign(getProductUrlSync(this.props.product, this.props.context.actionContext, undefined));\r\n }\r\n }\r\n}\r\n\r\nexport default ProductCard;","export const enum FOMOOrderStatus {\r\n CREATED = 'CREATED',\r\n FAIL = 'FAIL',\r\n SUCCESS = 'SUCCESS',\r\n CLOSED = 'CLOSED',\r\n ERROR = 'ERROR'\r\n}\r\n\r\nexport const enum InventoryLvls {\r\n OOS = 'OOS',\r\n LIS = 'LIS',\r\n AVAIL = 'AVAIL'\r\n}\r\n\r\nexport const enum Response {\r\n SUCCESS = 'SUCCESS',\r\n FAILED = 'FAILED'\r\n}","import * as React from 'react';\r\n\r\nimport Modal from 'react-bootstrap/Modal';\r\n\r\ninterface IEcommPopupProps\r\n{\r\n showPopup: boolean;\r\n callback: any;\r\n name: string;\r\n isMobile: boolean;\r\n isPortalPopup: boolean;\r\n locale: string;\r\n url: string;\r\n}\r\n\r\n/**\r\n *\r\n * Event component\r\n * @extends {React.PureComponent}\r\n */\r\nexport class Popup extends React.PureComponent {\r\n public render(): JSX.Element | null {\r\n return (\r\n \r\n \r\n {this._titleText()}\r\n \r\n\r\n \r\n {this._renderMessage()}\r\n \r\n\r\n \r\n {this._stayButtonText()}\r\n {this._goButtonText()}\r\n \r\n \r\n );\r\n }\r\n\r\n private _callbackRedirect = () => {\r\n this.props.callback();\r\n }\r\n\r\n private _callbackHide = () => {\r\n event?.preventDefault();\r\n this.props.callback();\r\n }\r\n\r\n private _titleText(): string {\r\n if (!this.props.isPortalPopup) {\r\n return this.props.name;\r\n }\r\n\r\n if (this.props.locale === 'zh') {\r\n return '网站重定向门户网站';\r\n } else {\r\n return 'Commerce Transfer to Portal';\r\n }\r\n }\r\n\r\n private _stayButtonText(): string {\r\n if (this.props.locale === 'zh') {\r\n if (this.props.isPortalPopup) {\r\n return '取消';\r\n } else {\r\n return '稍后登入';\r\n }\r\n } else {\r\n if (this.props.isPortalPopup) {\r\n return 'Cancel';\r\n } else {\r\n return 'Maybe Later';\r\n }\r\n }\r\n }\r\n\r\n private _goButtonText(): string {\r\n if (this.props.locale === 'zh') {\r\n if (this.props.isPortalPopup) {\r\n return '开启门户网站标签页';\r\n } else {\r\n return '登入户口';\r\n }\r\n } else {\r\n if (this.props.isPortalPopup) {\r\n return 'Proceed to eShop';\r\n } else {\r\n return 'Go to Sign In Page';\r\n }\r\n }\r\n }\r\n\r\n private _renderMessage(): JSX.Element | null {\r\n \r\n if (this.props.locale === 'zh') {\r\n if (this.props.isPortalPopup) {\r\n return (\r\n
    \r\n

    亲爱的信徒和朋友们,

    \r\n

     

    \r\n

    您将离开这个网站并进入另一个门户网站。

    \r\n

     

    \r\n

    请在离开前完成交易和付款。

    \r\n

     

    \r\n

    愿三宝加持和护佑您!

    \r\n
    \r\n );\r\n } else {\r\n return (\r\n
    \r\n

    登入账号来查阅交易记录

    \r\n
    \r\n );\r\n }\r\n } else {\r\n if (this.props.isPortalPopup) {\r\n return (\r\n
    \r\n

    Dear Devotees and Friends,

    \r\n

     

    \r\n

    You will be leaving this website and entering another portal.

    \r\n

     

    \r\n

    Please complete the transactions and payments here before you leave.

    \r\n

     

    \r\n

    With Triple Gem Blessings!

    \r\n
    \r\n );\r\n } else {\r\n return (\r\n
    \r\n

    To see your past transactions, please sign in to your account.

    \r\n
    \r\n );\r\n }\r\n }\r\n }\r\n}\r\n\r\nexport default Popup;","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as React from 'react';\r\n\r\nimport { ProductWarehouseInventoryInformation, SimpleProduct } from '@msdyn365-commerce/retail-proxy';\r\n\r\nimport { IGridSettings } from '@msdyn365-commerce/core-internal';\r\n\r\nimport { getProductsByCategoryId } from '../../actions/helper-functions';\r\n\r\nimport { getByCustomerBTGPTransactionAsync, checkAvailableSerialAsync } from '../../actions/DataActionExtension.g';\r\nimport { getEstimatedAvailabilityAsync, getAttributeValuesAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\n\r\nimport { IEcommEventProductsData } from './ecomm-event-products.data';\r\nimport { IEcommEventProductsProps } from './ecomm-event-products.props.autogenerated';\r\n\r\nexport interface IEcommEventProductsViewProps extends IEcommEventProductsProps {\r\n gridSettings: IGridSettings;\r\n products: SimpleProduct[];\r\n warehouse: ProductWarehouseInventoryInformation;\r\n isRegistered: boolean[];\r\n serialAvailable: boolean[];\r\n}\r\n\r\n/**\r\n *\r\n * EcommEventProducts component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass EcommEventProducts extends React.PureComponent> {\r\n public state: any = { products: [], productsAvailabilities: {}, registered: [], serialAvailable: [] };\r\n\r\n public async componentDidMount() {\r\n const { context, context: { request: { user } } } = this.props;\r\n\r\n if (typeof window !== 'undefined') {\r\n const parameters = window.location.search;\r\n const categoryId = new URLSearchParams(parameters).get('id');\r\n\r\n if (categoryId) {\r\n const result = await getProductsByCategoryId(context, parseInt(categoryId)).catch(error => console.log('[EcommEventProducts] getProductsByCategoryId error:', error));\r\n\r\n if (result && result.length > 0) {\r\n const productRegistered: boolean[] = [];\r\n const productSerialAvailable: boolean[] = [];\r\n const productIds: number[] = [];\r\n\r\n for (let i = 0; i < result.length; i++) {\r\n productRegistered.push(false);\r\n productSerialAvailable.push(true);\r\n\r\n const attributesList = await getAttributeValuesAsync({callerContext: context.actionContext }, result[`${i}`].RecordId, context.request.apiSettings.channelId, context.request.apiSettings.catalogId);\r\n\r\n const hasSerialIndex= attributesList.findIndex(attr => attr.Name?.includes('Has Serial'));\r\n\r\n if (hasSerialIndex >= 0) {\r\n const itemHasSerial = attributesList[`${hasSerialIndex}`].BooleanValue ? attributesList[`${hasSerialIndex}`].BooleanValue! : false;\r\n\r\n if (itemHasSerial) {\r\n const serialAvalability = await checkAvailableSerialAsync({ callerContext: this.props.context.actionContext }, this.props.config.isUat, result[`${i}`].RecordId.toString()!);\r\n\r\n if (serialAvalability && typeof serialAvalability === 'object' && serialAvalability['value'] == false) {\r\n productSerialAvailable[`${i}`] = false;\r\n }\r\n }\r\n }\r\n\r\n productIds.push(result[`${i}`].RecordId);\r\n }\r\n\r\n if (user.isAuthenticated) {\r\n for (let i = 0; i < result.length; i++) {\r\n const records = await getByCustomerBTGPTransactionAsync({ callerContext: context.actionContext }, user.customerAccountNumber!, user.emailAddress!, String(result[`${i}`].RecordId), this.props.config.isUat);\r\n\r\n if (records.length > 0) {\r\n productRegistered[`${i}`] = true;\r\n }\r\n }\r\n }\r\n\r\n const warehouse = await getEstimatedAvailabilityAsync({ callerContext: context.actionContext }, { ProductIds: productIds, DefaultWarehouseOnly: true });\r\n\r\n this.setState({ products: result, productsAvailabilities: warehouse, registered: productRegistered, serialAvailable: productSerialAvailable });\r\n }\r\n }\r\n }\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n const EcommEventProductsViewProps = {\r\n ...this.props,\r\n products: this.state.products,\r\n warehouse: this.state.productsAvailabilities,\r\n isRegistered: this.state.registered,\r\n serialAvailable: this.state.serialAvailable\r\n };\r\n \r\n return this.props.renderView(EcommEventProductsViewProps);\r\n }\r\n}\r\n\r\nexport default EcommEventProducts;","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as React from 'react';\r\n\r\nimport { SimpleProduct } from '@msdyn365-commerce/retail-proxy';\r\n\r\nimport ProductCard from '../../components/ecomm-product-card';\r\n\r\nimport { isMobile } from './../../components/breakpoints';\r\nimport { InventoryLvls } from '../../components/enums';\r\nimport Popup from './../../components/popup';\r\n\r\nimport { IEcommEventProductsViewProps } from './ecomm-event-products';\r\n\r\nvar moment = require('moment-timezone');\r\n\r\n/**\r\n *\r\n * EcommEventProductsView component\r\n * @extends {React.PureComponent}\r\n */\r\n export class EcommEventProductsView extends React.PureComponent {\r\n public state: any = { width: 0, hasMounted: false, showPopup: false };\r\n\r\n public componentDidMount(): void {\r\n if (!this.state.hasMounted) {\r\n const { context: { request: { user } } } = this.props;\r\n\r\n window.addEventListener('resize', this._updateDimensions);\r\n\r\n this.setState({ width: window.innerWidth, hasMounted: true, showPopup: user.isAuthenticated ? false : true });\r\n }\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n if (!this.state.hasMounted) {\r\n return null;\r\n }\r\n\r\n const mobileMode = isMobile(this.state.width);\r\n\r\n const { config, context, gridSettings, data: { eventJson }, context: { request: { user } }, products, warehouse, serialAvailable, isRegistered } = this.props;\r\n\r\n const localeCode = this.props.context.request.locale.split('-')[0];\r\n\r\n const currentEvent = eventJson.result && eventJson.result.eventJson !== '' ? JSON.parse(eventJson.result.eventJson) : '';\r\n\r\n const today = moment.tz('Asia/Singapore').format('YYYY-MM-DD');\r\n const registrationClosingDate = currentEvent['StartDateTime'] ? moment(currentEvent['StartDateTime']).subtract(1, 'days') : undefined;\r\n const hasExpired = registrationClosingDate ? registrationClosingDate.isSameOrBefore(today) : true;\r\n\r\n const card = config.anchorID && config.anchorID !== '' ? 'anchor ecomm-event-products' : 'ecomm-event-products';\r\n const componentId = config.anchorID && config.anchorID !== '' ? config.anchorID : '';\r\n\r\n return (\r\n
    \r\n \r\n
      \r\n {products.map((item: SimpleProduct, idx: number) =>\r\n \r\n )}\r\n
    \r\n
    \r\n );\r\n }\r\n\r\n private _updateDimensions = () => {\r\n this.setState({ width: window.innerWidth });\r\n };\r\n\r\n private _handleCallback = () => {\r\n this.setState({ showPopup: false});\r\n }\r\n }\r\n\r\n export default EcommEventProductsView;","const binding = { modules: {}, dataActions: {} };\n\n const registerActionId = (actionPath) => {\n if (binding.dataActions[actionPath] &&\n binding.dataActions[actionPath].default &&\n binding.dataActions[actionPath].default.prototype &&\n binding.dataActions[actionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[actionPath].default.prototype.id] = binding.dataActions[actionPath];\n } else {\n Object.keys(binding.dataActions[actionPath] || {}).forEach(exportName => {\n if (binding.dataActions[actionPath][exportName] &&\n binding.dataActions[actionPath][exportName].prototype &&\n binding.dataActions[actionPath][exportName].prototype.Action) {\n binding.dataActions[binding.dataActions[actionPath][exportName].prototype.id] = binding.dataActions[actionPath][exportName];\n }\n })\n }\n };\n\n const registerSanitizedActionPath = (sanitizedActionPath, dataAction) => {\n if (process.env.NODE_ENV === 'development') {\n if (!dataAction.default) {\n throw new Error('Data action path does not have a default export');\n }\n if (!(dataAction.default.prototype.id && binding.dataActions[dataAction.default.prototype.id]) || !binding.dataActions[sanitizedActionPath]) {\n binding.dataActions[sanitizedActionPath] = dataAction;\n }\n } else {\n binding.dataActions[sanitizedActionPath] = dataAction;\n if (!binding.dataActions[sanitizedActionPath].default) {\n throw new Error('Data action path ' + sanitizedActionPath + ' does not have a default export');\n }\n binding.dataActions[sanitizedActionPath].default.prototype.RegistrationId = sanitizedActionPath;\n if (binding.dataActions[sanitizedActionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[sanitizedActionPath].default.prototype.id] = sanitizedActionPath;\n }\n }\n };\n \n\n (binding.modules['ecomm-event-products'] = {\n c: () => require('partner/modules/ecomm-event-products/ecomm-event-products.tsx'),\n $type: 'contentModule',\n da: [{name:'eventJson', path:'actions/ecomm-current-event', runOn: 0}],\n \n iNM: false,\n ns: '__local__',\n n: 'ecomm-event-products',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/ecomm-event-products'\n });\n \n\n {\n const sanitizedActionPath = 'actions/ecomm-current-event';\n let dataAction = require('partner/actions/ecomm-current-event');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.dataActions = {\n ...window.__bindings__.dataActions || {},\n ...binding.dataActions\n };\n export const viewDictionary = {};\n viewDictionary['__local__|__local__|modules|ecomm-event-products|ecomm-event-products'] = {\n c: () => require('partner/modules/ecomm-event-products/ecomm-event-products.view.tsx'),\n cn: '__local__-__local__-ecomm-event-products'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","var map = {\n\t\"./af\": 198,\n\t\"./af.js\": 198,\n\t\"./ar\": 199,\n\t\"./ar-dz\": 200,\n\t\"./ar-dz.js\": 200,\n\t\"./ar-kw\": 201,\n\t\"./ar-kw.js\": 201,\n\t\"./ar-ly\": 202,\n\t\"./ar-ly.js\": 202,\n\t\"./ar-ma\": 203,\n\t\"./ar-ma.js\": 203,\n\t\"./ar-sa\": 204,\n\t\"./ar-sa.js\": 204,\n\t\"./ar-tn\": 205,\n\t\"./ar-tn.js\": 205,\n\t\"./ar.js\": 199,\n\t\"./az\": 206,\n\t\"./az.js\": 206,\n\t\"./be\": 207,\n\t\"./be.js\": 207,\n\t\"./bg\": 208,\n\t\"./bg.js\": 208,\n\t\"./bm\": 209,\n\t\"./bm.js\": 209,\n\t\"./bn\": 210,\n\t\"./bn-bd\": 211,\n\t\"./bn-bd.js\": 211,\n\t\"./bn.js\": 210,\n\t\"./bo\": 212,\n\t\"./bo.js\": 212,\n\t\"./br\": 213,\n\t\"./br.js\": 213,\n\t\"./bs\": 214,\n\t\"./bs.js\": 214,\n\t\"./ca\": 215,\n\t\"./ca.js\": 215,\n\t\"./cs\": 216,\n\t\"./cs.js\": 216,\n\t\"./cv\": 217,\n\t\"./cv.js\": 217,\n\t\"./cy\": 218,\n\t\"./cy.js\": 218,\n\t\"./da\": 219,\n\t\"./da.js\": 219,\n\t\"./de\": 220,\n\t\"./de-at\": 221,\n\t\"./de-at.js\": 221,\n\t\"./de-ch\": 222,\n\t\"./de-ch.js\": 222,\n\t\"./de.js\": 220,\n\t\"./dv\": 223,\n\t\"./dv.js\": 223,\n\t\"./el\": 224,\n\t\"./el.js\": 224,\n\t\"./en-au\": 225,\n\t\"./en-au.js\": 225,\n\t\"./en-ca\": 226,\n\t\"./en-ca.js\": 226,\n\t\"./en-gb\": 227,\n\t\"./en-gb.js\": 227,\n\t\"./en-ie\": 228,\n\t\"./en-ie.js\": 228,\n\t\"./en-il\": 229,\n\t\"./en-il.js\": 229,\n\t\"./en-in\": 230,\n\t\"./en-in.js\": 230,\n\t\"./en-nz\": 231,\n\t\"./en-nz.js\": 231,\n\t\"./en-sg\": 232,\n\t\"./en-sg.js\": 232,\n\t\"./eo\": 233,\n\t\"./eo.js\": 233,\n\t\"./es\": 234,\n\t\"./es-do\": 235,\n\t\"./es-do.js\": 235,\n\t\"./es-mx\": 236,\n\t\"./es-mx.js\": 236,\n\t\"./es-us\": 237,\n\t\"./es-us.js\": 237,\n\t\"./es.js\": 234,\n\t\"./et\": 238,\n\t\"./et.js\": 238,\n\t\"./eu\": 239,\n\t\"./eu.js\": 239,\n\t\"./fa\": 240,\n\t\"./fa.js\": 240,\n\t\"./fi\": 241,\n\t\"./fi.js\": 241,\n\t\"./fil\": 242,\n\t\"./fil.js\": 242,\n\t\"./fo\": 243,\n\t\"./fo.js\": 243,\n\t\"./fr\": 244,\n\t\"./fr-ca\": 245,\n\t\"./fr-ca.js\": 245,\n\t\"./fr-ch\": 246,\n\t\"./fr-ch.js\": 246,\n\t\"./fr.js\": 244,\n\t\"./fy\": 247,\n\t\"./fy.js\": 247,\n\t\"./ga\": 248,\n\t\"./ga.js\": 248,\n\t\"./gd\": 249,\n\t\"./gd.js\": 249,\n\t\"./gl\": 250,\n\t\"./gl.js\": 250,\n\t\"./gom-deva\": 251,\n\t\"./gom-deva.js\": 251,\n\t\"./gom-latn\": 252,\n\t\"./gom-latn.js\": 252,\n\t\"./gu\": 253,\n\t\"./gu.js\": 253,\n\t\"./he\": 254,\n\t\"./he.js\": 254,\n\t\"./hi\": 255,\n\t\"./hi.js\": 255,\n\t\"./hr\": 256,\n\t\"./hr.js\": 256,\n\t\"./hu\": 257,\n\t\"./hu.js\": 257,\n\t\"./hy-am\": 258,\n\t\"./hy-am.js\": 258,\n\t\"./id\": 259,\n\t\"./id.js\": 259,\n\t\"./is\": 260,\n\t\"./is.js\": 260,\n\t\"./it\": 261,\n\t\"./it-ch\": 262,\n\t\"./it-ch.js\": 262,\n\t\"./it.js\": 261,\n\t\"./ja\": 263,\n\t\"./ja.js\": 263,\n\t\"./jv\": 264,\n\t\"./jv.js\": 264,\n\t\"./ka\": 265,\n\t\"./ka.js\": 265,\n\t\"./kk\": 266,\n\t\"./kk.js\": 266,\n\t\"./km\": 267,\n\t\"./km.js\": 267,\n\t\"./kn\": 268,\n\t\"./kn.js\": 268,\n\t\"./ko\": 269,\n\t\"./ko.js\": 269,\n\t\"./ku\": 270,\n\t\"./ku.js\": 270,\n\t\"./ky\": 271,\n\t\"./ky.js\": 271,\n\t\"./lb\": 272,\n\t\"./lb.js\": 272,\n\t\"./lo\": 273,\n\t\"./lo.js\": 273,\n\t\"./lt\": 274,\n\t\"./lt.js\": 274,\n\t\"./lv\": 275,\n\t\"./lv.js\": 275,\n\t\"./me\": 276,\n\t\"./me.js\": 276,\n\t\"./mi\": 277,\n\t\"./mi.js\": 277,\n\t\"./mk\": 278,\n\t\"./mk.js\": 278,\n\t\"./ml\": 279,\n\t\"./ml.js\": 279,\n\t\"./mn\": 280,\n\t\"./mn.js\": 280,\n\t\"./mr\": 281,\n\t\"./mr.js\": 281,\n\t\"./ms\": 282,\n\t\"./ms-my\": 283,\n\t\"./ms-my.js\": 283,\n\t\"./ms.js\": 282,\n\t\"./mt\": 284,\n\t\"./mt.js\": 284,\n\t\"./my\": 285,\n\t\"./my.js\": 285,\n\t\"./nb\": 286,\n\t\"./nb.js\": 286,\n\t\"./ne\": 287,\n\t\"./ne.js\": 287,\n\t\"./nl\": 288,\n\t\"./nl-be\": 289,\n\t\"./nl-be.js\": 289,\n\t\"./nl.js\": 288,\n\t\"./nn\": 290,\n\t\"./nn.js\": 290,\n\t\"./oc-lnc\": 291,\n\t\"./oc-lnc.js\": 291,\n\t\"./pa-in\": 292,\n\t\"./pa-in.js\": 292,\n\t\"./pl\": 293,\n\t\"./pl.js\": 293,\n\t\"./pt\": 294,\n\t\"./pt-br\": 295,\n\t\"./pt-br.js\": 295,\n\t\"./pt.js\": 294,\n\t\"./ro\": 296,\n\t\"./ro.js\": 296,\n\t\"./ru\": 297,\n\t\"./ru.js\": 297,\n\t\"./sd\": 298,\n\t\"./sd.js\": 298,\n\t\"./se\": 299,\n\t\"./se.js\": 299,\n\t\"./si\": 300,\n\t\"./si.js\": 300,\n\t\"./sk\": 301,\n\t\"./sk.js\": 301,\n\t\"./sl\": 302,\n\t\"./sl.js\": 302,\n\t\"./sq\": 303,\n\t\"./sq.js\": 303,\n\t\"./sr\": 304,\n\t\"./sr-cyrl\": 305,\n\t\"./sr-cyrl.js\": 305,\n\t\"./sr.js\": 304,\n\t\"./ss\": 306,\n\t\"./ss.js\": 306,\n\t\"./sv\": 307,\n\t\"./sv.js\": 307,\n\t\"./sw\": 308,\n\t\"./sw.js\": 308,\n\t\"./ta\": 309,\n\t\"./ta.js\": 309,\n\t\"./te\": 310,\n\t\"./te.js\": 310,\n\t\"./tet\": 311,\n\t\"./tet.js\": 311,\n\t\"./tg\": 312,\n\t\"./tg.js\": 312,\n\t\"./th\": 313,\n\t\"./th.js\": 313,\n\t\"./tk\": 314,\n\t\"./tk.js\": 314,\n\t\"./tl-ph\": 315,\n\t\"./tl-ph.js\": 315,\n\t\"./tlh\": 316,\n\t\"./tlh.js\": 316,\n\t\"./tr\": 317,\n\t\"./tr.js\": 317,\n\t\"./tzl\": 318,\n\t\"./tzl.js\": 318,\n\t\"./tzm\": 319,\n\t\"./tzm-latn\": 320,\n\t\"./tzm-latn.js\": 320,\n\t\"./tzm.js\": 319,\n\t\"./ug-cn\": 321,\n\t\"./ug-cn.js\": 321,\n\t\"./uk\": 322,\n\t\"./uk.js\": 322,\n\t\"./ur\": 323,\n\t\"./ur.js\": 323,\n\t\"./uz\": 324,\n\t\"./uz-latn\": 325,\n\t\"./uz-latn.js\": 325,\n\t\"./uz.js\": 324,\n\t\"./vi\": 326,\n\t\"./vi.js\": 326,\n\t\"./x-pseudo\": 327,\n\t\"./x-pseudo.js\": 327,\n\t\"./yo\": 328,\n\t\"./yo.js\": 328,\n\t\"./zh-cn\": 329,\n\t\"./zh-cn.js\": 329,\n\t\"./zh-hk\": 330,\n\t\"./zh-hk.js\": 330,\n\t\"./zh-mo\": 331,\n\t\"./zh-mo.js\": 331,\n\t\"./zh-tw\": 332,\n\t\"./zh-tw.js\": 332\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 337;","module.exports = React;","module.exports = ReactDOM;"],"names":["GetCurrentEventInput","constructor","getCacheKey","getCacheObjectType","dataCacheType","Msdyn365","action","async","input","ctx","eventJson","id","args","getProductsByCategoryId","context","categoryId","searchResult","searchByCategoryAsync","callerContext","actionContext","requestContext","apiSettings","channelId","catalogId","catch","error","console","log","length","sort","a","b","DisplayOrder","productIds","map","item","push","RecordId","getByIdsAsync","getProducts","categoryIDs","criterias","Context","ChannelId","CatalogId","CategoryIds","IncludeAttributes","searchAsync","getCustomerOrderHistory","hierarchy","customer","organisation","isUat","limit","dictionary","result","forEach","record","Children","Main","SubIDs","Products","j","generateDictionary","orders","getOrderHistoryAsync","AccountNumber","orderHistory","btgpTransactions","getByCustomerAllBTGPTransactionAsync","Email","i","transaction","JSON","parse","transactionNames","nameID","mainName","mainID","price","ProductCategoryID","found","find","parseInt","ProductID","Name","Price","ProductCategory","Number","ProductPrice","DedicationPeriod","label","matchingOrder","order","Id","SalesOrderID","orderReceiptNo","ReceiptNo","SalesId","toString","EventDates","EventName","Names","OrderDate","DateOfTransaction","Date","Record","getTime","generateErrorLog","errorLogName","errorDetails","createBTGPErrorLogAsync","uuid","uuidv4","uuidValidate","uuidVersion","generateUUID","toISOString","CartLineID","CartID","EventID","SerialID","SerialNumber","SerialName","Name_1","Name_2","Name_3","Name_4","Name_5","Name_6","Name_7","Name_8","Name_9","Name_10","Name_11","Name_12","Name_13","Name_14","Name_15","Name_16","Name_17","Name_18","Name_19","Name_20","Remarks","Message","Category","DedicatedBy","HasTaxDeduction","Nric","BuildingName","UnitNumber","PostalCode","BirthDate","PhoneNumber","SchoolName","DonationOption","BlessingOption","CartLineComment","BirthTime","LightOption","ValidFrom","ValidTo","ParentCartLineID","Country","CompanyName","DeceasedRelationship","SurgeryDate","DeathDate","DeathTime","NameChange","OldName_1","OldName_2","BirthDate_2","BirthTime_2","StartDate","Gender","ChineseName","ContactNumber","NameNextKin","ContactNumberNextKin","PassportNumber","PassportExpiryDate","PassportIssuedDate","createOrUpdateCartline","createOrUpdateBTGPCartLineAsync","Form","IsValid","InvalidType","InCart","IsSubProduct","Consent","IsInsuranceIncluded","Breakpoints","isMobile","width","large","ProductCard","React","_handleOnClick","this","props","hasExpired","window","location","assign","getProductUrlSync","product","undefined","render","style","className","onClick","role","unavailableText","Image","src","PrimaryImageUrl","fallBackSrc","getFallbackImageUrl","ItemId","altText","gridSettings","loadFailureBehavior","isRegistered","registeredText","FOMOOrderStatus","InventoryLvls","Response","Popup","_callbackRedirect","callback","_callbackHide","_event","event","preventDefault","Modal","show","showPopup","onHide","centered","closeButton","isPortalPopup","translate","_titleText","_renderMessage","href","_stayButtonText","url","target","_goButtonText","locale","name","EcommEventProducts","state","products","productsAvailabilities","registered","serialAvailable","request","user","parameters","search","URLSearchParams","get","productRegistered","productSerialAvailable","attributesList","getAttributeValuesAsync","hasSerialIndex","findIndex","attr","_attr$Name","includes","BooleanValue","serialAvalability","checkAvailableSerialAsync","config","isAuthenticated","getByCustomerBTGPTransactionAsync","customerAccountNumber","emailAddress","String","warehouse","getEstimatedAvailabilityAsync","ProductIds","DefaultWarehouseOnly","setState","EcommEventProductsViewProps","_objectSpread","renderView","moment","require","EcommEventProductsView","hasMounted","_updateDimensions","innerWidth","_handleCallback","componentDidMount","addEventListener","mobileMode","data","localeCode","split","currentEvent","today","tz","format","registrationClosingDate","subtract","isSameOrBefore","card","anchorID","componentId","title","signInUrl","idx","key","ProductWarehouseInventoryAvailabilities","PhysicalAvailableInventoryLevelCode","binding","modules","dataActions","c","$type","da","path","runOn","iNM","ns","n","p","pdp","md","registerSanitizedActionPath","sanitizedActionPath","dataAction","default","Error","prototype","RegistrationId","__bindings__","viewDictionary","cn","webpackContext","req","webpackContextResolve","__webpack_require__","o","e","code","keys","Object","resolve","module","exports","ReactDOM"],"sourceRoot":""}