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F,EAAqB5B,IAE9BpP,IAAAA,cAACgN,EAAAA,KAAI7H,OAAAC,OAAA,GAAKjE,EAAc,CAAE6B,IAAKoM,IAC1B4B,OARjB7Q,EAAMI,QAAQC,UAAUC,MAAM,+CACvB,KAWE,EAIjB,mECpBA,MAMA,EANqDN,GACjDH,EAAAA,cAAA,MAAAmF,OAAAC,OAAA,CAAKrE,UAAWZ,EAAMY,UAAW8J,GAAI1K,EAAM0K,IAAQ1K,EAAM8Q,uBAAuB9Q,IAC3EA,EAAMsB","sources":["webpack://Citta2.0/./src/modules/footer-category/footer-category.tsx?e0bd","webpack://Citta2.0/./src/modules/text-block/text-block.tsx?db84","webpack://Citta2.0/./src/modules/citta-gift-card-balance-check/citta-gift-card-balance-check.tsx?23d3","webpack://Citta2.0/./src/data-actions/stockists/stockists-cityorstate-data.ts?5497","webpack://Citta2.0/./src/data-actions/stockists/stockists-country-data.ts?5b55","webpack://Citta2.0/./src/data-actions/stockists/stockists-store.ts?de24","webpack://Citta2.0/./src/modules/citta-stockists/citta-stockists.tsx?a7d2","webpack://Citta2.0/./src/modules/citta-gift-card-balance-check/citta-gift-card-balance-check.view.tsx?0578","webpack://Citta2.0/./src/modules/citta-stockists/citta-stockists.view.tsx?9f42","webpack://Citta2.0/./src/themes/citta/views/order-history.view.tsx?10df","webpack://Citta2.0/./src/modules/footer-category/footer-category.view.tsx?fdce","webpack://Citta2.0/./src/modules/text-block/text-block.view.tsx?9307"],"sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { IModuleProps, INodeProps } from '@msdyn365-commerce-modules/utilities';\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nimport { IFooterCategoryConfig, IFooterCategoryProps } from './footer-category.props.autogenerated';\n\nexport interface IFooterCategoryViewProps extends IFooterCategoryProps {\n categories: React.ReactNode[];\n FooterList: IModuleProps;\n FooterListItem: INodeProps;\n}\n\n/**\n *\n * FooterCategory component.\n * @extends {React.PureComponent>}\n */\nclass FooterCategory extends React.PureComponent> {\n public render(): JSX.Element | null {\n if (!this.props.slots || !this.props.slots.content || this.props.slots.content.length === 0) {\n this.props.context.telemetry.error('footer slots content is empty, module wont render');\n return null;\n }\n const viewprops = {\n ...this.props,\n categories: this.props.slots.content,\n FooterList: {\n moduleProps: this.props,\n className: classnames('ms-footer__list', this.props.config.className),\n tag: 'ul'\n },\n FooterListItem: {\n className: classnames('ms-footer__list-item', this.props.config.className),\n tag: 'li'\n }\n };\n\n return this.props.renderView(viewprops) as React.ReactElement;\n }\n}\n\nexport default FooterCategory;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as MsDyn365 from '@msdyn365-commerce/core';\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nimport { ITextBlockProps } from './text-block.props.autogenerated';\n\nexport interface ITextBlockViewProps extends ITextBlockProps<{}> {\n paragraph?: React.ReactNode;\n className?: string;\n}\n\n/**\n *\n * TextBlock component.\n */\nclass TextBlock extends React.PureComponent> {\n public render(): JSX.Element | null {\n const { paragraph, className } = this.props.config;\n const text = paragraph && (\n \n );\n const textBlockViewProps = {\n ...this.props,\n paragraph: text,\n className: classnames('ms-text-block', className)\n };\n return this.props.renderView(textBlockViewProps) as React.ReactElement;\n }\n\n public handleTextChange = (event: MsDyn365.ContentEditableEvent) => (this.props.config.paragraph = event.target.value);\n}\nexport default TextBlock;\n","/*---------------------------------------------------------------------------------------------\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 { IModuleProps, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport * as React from 'react';\r\nimport { getGiftCardBalanceCheck, GiftCardBalanceCheckInput } from '../../data-actions/gift-card/get-card-balance';\r\nimport { ICittaGiftCardBalanceCheckData, ICittaGiftCardBalanceCheckResult } from './citta-gift-card-balance-check.data';\r\nimport { ICittaGiftCardBalanceCheckProps } from './citta-gift-card-balance-check.props.autogenerated';\r\ntype CittaGiftCardBalanceCheckStateKeys = 'c' | 'p';\r\n\r\ninterface ICittaGiftCardBalanceCheckState {\r\n /**\r\n * The gift card number\r\n */\r\n card: string;\r\n /**\r\n * The gift card pin\r\n */\r\n pin: string;\r\n\r\n /**\r\n * The balance check result\r\n */\r\n result?: ICittaGiftCardBalanceCheckResult;\r\n\r\n /**\r\n * Flag to determine if we are processing a lookup request\r\n */\r\n processing: boolean;\r\n}\r\n\r\nexport interface ICittaGiftCardBalanceCheckViewProps extends ICittaGiftCardBalanceCheckProps, ICittaGiftCardBalanceCheckState {\r\n GiftCardBalanceCheckModuleProps: IModuleProps;\r\n GiftCardBalanceCheckCardNodeProps: INodeProps;\r\n GiftCardBalanceCheckCardNode: React.ReactNode;\r\n GiftCardBalanceCheckPinNodeProps: INodeProps;\r\n GiftCardBalanceCheckPinNode: React.ReactNode;\r\n GiftCardBalanceCheckResultNode: React.ReactNode;\r\n GiftCardBalanceCheckButtonNode: React.ReactNode;\r\n}\r\n\r\n/**\r\n *\r\n * CittaGiftCardBalanceCheck component\r\n * @extends {React.PureComponent, ICittaGiftCardBalanceCheckState>}\r\n */\r\nclass CittaGiftCardBalanceCheck extends React.PureComponent, ICittaGiftCardBalanceCheckState> {\r\n private static defaultConfig: string[] = ['Card Number', 'Pin Number', 'Checking...'];\r\n private static propsIndex: string[] = ['cardNumberPlaceholderText', 'pinNumberPlaceholderText', 'lookupWaitText'];\r\n /**\r\n * Gift Card Ref\r\n */\r\n private cardRef: React.RefObject;\r\n /**\r\n * Pin for gift card Ref\r\n */\r\n private pinRef: React.RefObject;\r\n\r\n public constructor(props: ICittaGiftCardBalanceCheckProps) {\r\n super(props);\r\n\r\n // binds\r\n this._checkBalance = this._checkBalance.bind(this);\r\n this._areRefsValid = this._areRefsValid.bind(this);\r\n this._renderLookupResult = this._renderLookupResult.bind(this);\r\n this._renderFailure = this._renderFailure.bind(this);\r\n\r\n // refs\r\n this.cardRef = React.createRef();\r\n this.pinRef = React.createRef();\r\n\r\n // state init\r\n this.state = { card: '', pin: '', processing: false };\r\n }\r\n public render(): JSX.Element | null {\r\n const config = this.props.config;\r\n this._mergeWithDefaults();\r\n\r\n const CittaGiftCardBalanceCheckViewProps = {\r\n ...this.props,\r\n GiftCardBalanceCheckModuleProps: {\r\n moduleProps: this.props,\r\n className: classnames('citta-gift-card-balance-check', config.className)\r\n },\r\n GiftCardBalanceCheckCardNodeProps: {\r\n className: 'card-number-wrapper input-wrapper'\r\n },\r\n GiftCardBalanceCheckCardNode: this._renderCard(),\r\n GiftCardBalanceCheckPinNodeProps: {\r\n className: 'card-pin-wrapper input-wrapper'\r\n },\r\n GiftCardBalanceCheckPinNode: this._renderPin(),\r\n GiftCardBalanceCheckResultNode: this._renderLookupResult(),\r\n GiftCardBalanceCheckButtonNode: this._renderCheckBalance()\r\n };\r\n\r\n return this.props.renderView(CittaGiftCardBalanceCheckViewProps) as React.ReactElement;\r\n }\r\n\r\n private _mergeWithDefaults(): void {\r\n const propsIndex = CittaGiftCardBalanceCheck.propsIndex;\r\n const defaultConfig = CittaGiftCardBalanceCheck.defaultConfig;\r\n const config = this.props.config;\r\n for (let keyIndex = 0; keyIndex < propsIndex.length; keyIndex++) {\r\n const keyName = propsIndex[keyIndex];\r\n config[keyName] = config[keyName] || defaultConfig[keyIndex];\r\n }\r\n }\r\n\r\n private _renderCard(): React.ReactNode {\r\n const { cardNumberPlaceholderText } = this.props.config;\r\n return (\r\n \r\n );\r\n }\r\n\r\n private _renderPin(): React.ReactNode {\r\n const { pinNumberPlaceholderText } = this.props.config;\r\n return (\r\n \r\n );\r\n }\r\n\r\n private _renderCheckBalance(): React.ReactNode {\r\n const submitButtonProps: React.ButtonHTMLAttributes<{}> = {\r\n // disable if we're invalid or if we're processing a request\r\n disabled: !this._areRefsValid() || this.state.processing\r\n } as React.ButtonHTMLAttributes<{}>;\r\n return (\r\n \r\n {this.props.resources.buttonTextForGiftCardBalanceCheck || 'check balance'}\r\n \r\n );\r\n }\r\n\r\n private _renderLookupResult = (): React.ReactNode | null => {\r\n const { result } = this.state;\r\n if (!result) {\r\n return;\r\n }\r\n if (this.state.processing) {\r\n return
{this.props.config.lookupWaitText}
;\r\n }\r\n const { success, balance, message } = result;\r\n const className = success ? 'success' : 'fail';\r\n return (\r\n
\r\n {\r\n success ? this._renderSuccess(message, balance) : this._renderFailure(message)\r\n }\r\n
\r\n );\r\n }\r\n\r\n private _renderFailure(message?: string): React.ReactNode | null {\r\n return
{message || this.props.config.lookupFailureMessage}
;\r\n }\r\n\r\n private _renderSuccess(message?: string, balance?: number): React.ReactNode | null {\r\n const formattedBalance: string = this.props.context.cultureFormatter.formatCurrency(balance || '' as React.ReactText);\r\n return (\r\n <>\r\n {message &&
{message}
}\r\n
{this.props.resources.labelForSuccessfulGiftCardBalanceCheckResponse || 'Balance: '} {formattedBalance}
\r\n \r\n );\r\n }\r\n\r\n private _areRefsValid(): boolean {\r\n const refKeys = ['cardRef', 'pinRef'];\r\n for (let keyIndex = 0; keyIndex < refKeys.length; keyIndex++) {\r\n const ref: React.RefObject | undefined = this[refKeys[keyIndex]];\r\n if (!ref || !ref.current || !ref.current.value) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n private _capture = (key: CittaGiftCardBalanceCheckStateKeys) => (event: React.ChangeEvent) => {\r\n const newState = { [key]: event.target.value };\r\n // @ts-ignore -- type is valid\r\n this.setState(newState);\r\n }\r\n\r\n private _checkBalance(): void {\r\n this.setState(previousState => {\r\n return {\r\n ...previousState,\r\n processing: true\r\n };\r\n // tslint:disable-next-line:align\r\n }, () => {\r\n // tslint:disable-next-line:no-floating-promises\r\n getGiftCardBalanceCheck(new GiftCardBalanceCheckInput(this.cardRef.current!.value, this.pinRef.current!.value), this.props.context.actionContext)\r\n .then((result) => {\r\n this.cardRef && this.cardRef.current && this.cardRef.current.value ? this.cardRef.current.value = '' : null;\r\n this.pinRef && this.pinRef.current && this.pinRef.current.value ? this.pinRef.current.value = '' : null;\r\n this.setState({\r\n result,\r\n processing: false\r\n });\r\n });\r\n });\r\n }\r\n}\r\n\r\nexport default CittaGiftCardBalanceCheck;\r\n","import { CacheType, createObservableDataAction, IAction, IActionContext, IActionInput, IAny, ICreateActionContext, IGeneric } from '@msdyn365-commerce/core';\r\nimport { dXC_GetCityStateMasterAsync } from '../generated/DataActionExtension.g';\r\nimport { IDXC_GetCityStateMasterResponse } from '../generated/DataServiceEntities.g';\r\n\r\n/**\r\n * GetStockistsCityorStateInput class\r\n */\r\nexport class GetStockistsCityOrStateInput implements IActionInput {\r\n public countrycode: string;\r\n\r\n constructor(countrycode: string) {\r\n this.countrycode = countrycode;\r\n }\r\n public getCacheKey = () =>`StockistsCityorStateRegionInfo${this.countrycode}`;\r\n public getCacheObjectType = () => 'StockistsCityorStateRegionInfo';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\n/**\r\n * Creates the input required to make the retail api call\r\n */\r\nconst createInput = (inputData: ICreateActionContext>): GetStockistsCityOrStateInput => {\r\n const { locale } = inputData.requestContext;\r\n if (!(inputData.requestContext && locale)) {\r\n throw new Error('Unable to create country regions input. Locale is not provided.');\r\n }\r\n\r\n return new GetStockistsCityOrStateInput(locale);\r\n};\r\n\r\nexport async function getStockcistsCityorStateAction(input: GetStockistsCityOrStateInput, ctx: IActionContext): Promise {\r\n console.log(`CityorState action called`);\r\n\r\n let result: IDXC_GetCityStateMasterResponse = { Result: 'failure' };\r\n\r\n try {\r\n result = await dXC_GetCityStateMasterAsync({ callerContext: ctx }, input.countrycode);\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n return Array.isArray(result) ? result[0] : result;\r\n}\r\n\r\nexport const IGetStockcistsCityorStateAction = createObservableDataAction({\r\n action: >getStockcistsCityorStateAction,\r\n input: createInput\r\n});\r\n","/*---------------------------------------------------------------------------------------------\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 { CacheType, createObservableDataAction, IAction, IActionContext, IActionInput } from '@msdyn365-commerce/core';\r\nimport { dXC_GetCountryMasterAsync } from '../generated/DataActionExtension.g';\r\nimport { IDXC_GetCountryMasterResponse } from '../generated/DataServiceEntities.g';\r\n\r\n/**\r\n * GetStockistsCountryInput class\r\n */\r\nexport class GetStockistsCountryRegionsInput implements IActionInput {\r\n\r\n public getCacheKey = () => `StockistsCountryRegionInfo`;\r\n public getCacheObjectType = () => 'StockistsCountryRegionInfo';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\n/**\r\n * Creates the input required to make the retail api call\r\n */\r\nconst createInput = (args: GetStockistsCountryRegionsInput): IActionInput => {\r\n return args;\r\n};\r\n\r\nexport async function getStockcistsCountryRegionsAction(input: GetStockistsCountryRegionsInput, ctx: IActionContext)\r\n : Promise {\r\n console.log(`country action called`);\r\n let result: IDXC_GetCountryMasterResponse = { Result: 'failure' };\r\n try {\r\n result = await dXC_GetCountryMasterAsync(\r\n { callerContext: ctx }\r\n );\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n return Array.isArray(result) ? result[0] : result;\r\n}\r\n\r\nexport const IGetStockcistsCountryRegionsAction = createObservableDataAction({\r\n action: >getStockcistsCountryRegionsAction,\r\n input: createInput\r\n});\r\n","import { CacheType, createObservableDataAction, IAction, IActionContext, IActionInput, IAny, ICreateActionContext, IGeneric } from '@msdyn365-commerce/core';\r\nimport { dXC_GetStockistsAsync } from '../generated/DataActionExtension.g';\r\nimport { IDXC_GetStockistsServiceResponse } from '../generated/DataServiceEntities.g';\r\n\r\n/**\r\n * GetStockistsStoreInput class\r\n */\r\nexport class GetStockistsStoreInput implements IActionInput {\r\n public countrycode?: string;\r\n public cityorstate?: string;\r\n public searchstr?: string;\r\n\r\n constructor(countrycode?: string, cityorstate?: string, searchstr?: string) {\r\n this.countrycode = countrycode;\r\n this.cityorstate = cityorstate;\r\n this.searchstr = searchstr;\r\n }\r\n public getCacheKey = () =>`StockistsStoreInfo${this.countrycode}`;\r\n public getCacheObjectType = () => 'StockistsStoreInfo';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\n/**\r\n * Creates the input required to make the retail api call\r\n */\r\nconst createInput = (inputData: ICreateActionContext>): GetStockistsStoreInput => {\r\n const { locale } = inputData.requestContext;\r\n if (!(inputData.requestContext && locale)) {\r\n throw new Error('Unable to create country regions input. Locale is not provided.');\r\n }\r\n\r\n return new GetStockistsStoreInput(locale);\r\n};\r\n\r\nexport async function getStockcistsStoreAction(input: GetStockistsStoreInput, ctx: IActionContext): Promise {\r\n console.log(`CityorState action called`);\r\n\r\n let result: IDXC_GetStockistsServiceResponse = { Result: 'failure' };\r\n const country = input.countrycode || '';\r\n const cityorstate = input.cityorstate || '';\r\n const searchstr = input.searchstr || '';\r\n try {\r\n result = await dXC_GetStockistsAsync({ callerContext: ctx }, country, cityorstate, searchstr);\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n return Array.isArray(result) ? result[0] : result;\r\n}\r\n\r\nexport const IGetStockcistsStoreAction = createObservableDataAction({\r\n action: >getStockcistsStoreAction,\r\n input: createInput\r\n});\r\n","/*---------------------------------------------------------------------------------------------\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\nimport { Button, IModuleProps, INodeProps, NodeTag } from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport { observable } from 'mobx';\r\nimport * as React from 'react';\r\nimport { IDXC_GetCityStateMasterResponse, IDXC_GetCountryMasterResponse, IDXC_GetStockistsServiceResponse } from '../../data-actions/generated/DataServiceEntities.g';\r\nimport { getStockcistsCityorStateAction, GetStockistsCityOrStateInput } from '../../data-actions/stockists/stockists-cityorstate-data';\r\nimport { getStockcistsCountryRegionsAction, GetStockistsCountryRegionsInput } from '../../data-actions/stockists/stockists-country-data';\r\nimport { getStockcistsStoreAction, GetStockistsStoreInput } from '../../data-actions/stockists/stockists-store';\r\nimport { IDXC_CountryView, IDXC_StockistsTable } from '../../modal/stockistsListTable';\r\nimport { ICittaStockistsData } from './citta-stockists.data';\r\nimport { ICittaStockistsProps } from './citta-stockists.props.autogenerated';\r\n\r\nexport interface ICittaStockistsState {\r\n countrySelected: string;\r\n stateorcitySelected: string;\r\n searchString: string;\r\n countryList: [];\r\n stateList: [];\r\n stockistList: [];\r\n}\r\n\r\nexport interface ICittaStockistsViewProps extends ICittaStockistsProps {\r\n stockistMain: INodeProps;\r\n stockistGrid: INodeProps;\r\n StockistContainer: IModuleProps;\r\n inputWrap: INodeProps;\r\n stockistTop: INodeProps;\r\n inputThirds: INodeProps;\r\n createStockistsAddress: React.ReactNode;\r\n createCountryDropDown: React.ReactNode;\r\n createCityStateDropDown: React.ReactNode;\r\n createSearchAddress: React.ReactNode;\r\n}\r\n\r\n/**\r\n *\r\n * CittaStockists component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass CittaStockists extends React.PureComponent> {\r\n public state: ICittaStockistsState = {\r\n countrySelected: '',\r\n stateorcitySelected: '',\r\n searchString: '',\r\n countryList: [],\r\n stateList: [],\r\n stockistList: []\r\n };\r\n\r\n @observable private _countryList: IDXC_GetCountryMasterResponse | undefined;\r\n @observable private _stateList: IDXC_GetCityStateMasterResponse | undefined;\r\n @observable private _stockistList: IDXC_GetStockistsServiceResponse | undefined;\r\n\r\n private _countrySelectRef: React.RefObject;\r\n private _stateorcitySelectRef: React.RefObject;\r\n private _searchInputRef: React.RefObject;\r\n\r\n public constructor(props: ICittaStockistsProps) {\r\n super(props);\r\n this._countrySelectRef = React.createRef();\r\n this._stateorcitySelectRef = React.createRef();\r\n this._searchInputRef = React.createRef();\r\n }\r\n\r\n public async componentDidMount(): Promise {\r\n this._getCountryList().catch(err => console.log(err));\r\n this._getStateProvinces('').catch(err => console.log(err));\r\n this._getStockistsList().catch(err => console.log(err));\r\n }\r\n public render(): JSX.Element {\r\n const viewProps = {\r\n ...this.props,\r\n StockistContainer: {\r\n moduleProps: this.props,\r\n className: classnames('infoSection')\r\n },\r\n stockistTop: {\r\n tag: 'div' as NodeTag,\r\n className: classnames('stockistTop', 'inputThirds')\r\n },\r\n stockistMain: {\r\n tag: 'div' as NodeTag,\r\n className: classnames('stockistMain')\r\n },\r\n stockistGrid: {\r\n tag: 'div' as NodeTag,\r\n className: classnames('stockistGrid')\r\n },\r\n createCityStateDropDown: this._renderCityStateDropDown(),\r\n createCountryDropDown: this._renderCountryDropDown(),\r\n createStockistsAddress: this._renderStockistsAddress(),\r\n createSearchAddress: this._renderSearchAddress(),\r\n };\r\n return this.props.renderView(viewProps) as React.ReactElement;\r\n }\r\n private _renderSearchAddress(): React.ReactNode {\r\n const searchPlaceholder = this.props && this.props.resources && this.props.resources.searchPlaceholder ? this.props.resources.searchPlaceholder : 'Search by Address';\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 );\r\n }\r\n private _handleSearch = (e: React.MouseEvent | React.KeyboardEvent) => {\r\n const searchStr = (this._searchInputRef && this._searchInputRef.current && this._searchInputRef.current.value) ? this._searchInputRef.current.value : '';\r\n const countryValue = (this._countrySelectRef && this._countrySelectRef.current && this._countrySelectRef.current.value) ? this._countrySelectRef.current.value : '';\r\n const stateValue = (this._stateorcitySelectRef && this._stateorcitySelectRef.current && this._stateorcitySelectRef.current.value) ? this._stateorcitySelectRef.current.value : '';\r\n try {\r\n this._getStockistsList(countryValue, stateValue, searchStr).catch(err => console.log(err));\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n }\r\n private _changeSearchText = (ref: React.RefObject) => (e: React.ChangeEvent) => {\r\n this.setState(\r\n { searchString: e.target.value }\r\n );\r\n }\r\n private _renderCityStateDropDown(): React.ReactNode {\r\n const citaAndStatePlaceholder = this.props && this.props.resources && this.props.resources.citaAndStatePlaceholder ? this.props.resources.citaAndStatePlaceholder : 'All Cities/States';\r\n return (\r\n
\r\n
\r\n \r\n \r\n {this._renderStateorCityList()}\r\n \r\n
\r\n
\r\n );\r\n }\r\n private _renderCountryDropDown(): React.ReactNode {\r\n const countryPlaceholder = this.props && this.props.resources && this.props.resources.countryPlaceholder ? this.props.resources.countryPlaceholder : 'All Country';\r\n return (\r\n
\r\n
\r\n \r\n \r\n {this._renderCountryList()}\r\n \r\n
\r\n
\r\n );\r\n }\r\n private _onStateorCityChange = (e: React.ChangeEvent) => {\r\n this.setState({ stateorcitySelected: e.target.value || '' });\r\n this._getStockistsList(this.state.countrySelected, e.target.value).catch(err => console.log(err));\r\n }\r\n private _renderStateorCityList(): JSX.Element[] | null {\r\n const stateorcity = this.state.stateList as IDXC_GetCityStateMasterResponse;\r\n if (stateorcity && stateorcity.CityStateMaster) {\r\n return stateorcity.CityStateMaster.map((stateorcityItem) =>\r\n this._getCities(stateorcityItem)\r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n private _getCities(stateorcityItem: string): JSX.Element {\r\n return ;\r\n }\r\n private _renderCountryList(): JSX.Element[] | null {\r\n const country = this.state.countryList as IDXC_GetCountryMasterResponse;\r\n if (country && country.CountryMaster) {\r\n return country.CountryMaster.map((countryItem: IDXC_CountryView) =>\r\n this._getCountries(countryItem)\r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n private _getCountries(countryItem: IDXC_CountryView): JSX.Element {\r\n return ;\r\n }\r\n private _onCountryChange = (e: React.ChangeEvent) => {\r\n this.setState({ countrySelected: e.target.value || '' });\r\n this._getStateProvinces(e.target.value).catch(err => console.log(err));\r\n this._getStockistsList(e.target.value).catch(err => console.log(err));\r\n }\r\n private _renderStockistsAddress(): React.ReactNode {\r\n const stockistList = this.state.stockistList as IDXC_GetStockistsServiceResponse;\r\n if (stockistList && stockistList.StockistsList) {\r\n return stockistList.StockistsList.map((stockist: IDXC_StockistsTable) =>\r\n (\r\n
\r\n

{stockist.Name}

\r\n
\r\n {stockist.StreetNumber} {stockist.Street}\r\n
\r\n {stockist.District ?
{`${stockist.District}`}
: ''}\r\n {stockist.City} {stockist.PostalCode}
\r\n {stockist.CountryCode === 'AUS' ? stockist.State : ''} {stockist.CountryName}
\r\n {stockist.PhoneNumber ? {stockist.PhoneNumber} : null}
\r\n {stockist.Email ? {stockist.Email} : null}\r\n
\r\n
\r\n
\r\n )\r\n );\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n private async _getCountryList(): Promise {\r\n let response: IDXC_GetCountryMasterResponse;\r\n if (this.props.context && this.props.context.actionContext) {\r\n try {\r\n const input = new GetStockistsCountryRegionsInput();\r\n response = await getStockcistsCountryRegionsAction(input, this.props.context.actionContext);\r\n this._countryList = response;\r\n if (this._countryList) {\r\n this.setState({\r\n countryList: this._countryList\r\n });\r\n }\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n }\r\n }\r\n\r\n private async _getStateProvinces(countryCode: string): Promise {\r\n let response: IDXC_GetCountryMasterResponse;\r\n if (this.props.context && this.props.context.actionContext) {\r\n try {\r\n const input = new GetStockistsCityOrStateInput(countryCode);\r\n response = await getStockcistsCityorStateAction(input, this.props.context.actionContext);\r\n this._stateList = response;\r\n if (this._stateList) {\r\n this.setState({\r\n stateList: this._stateList\r\n });\r\n }\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n }\r\n }\r\n\r\n private async _getStockistsList(countryCode?: string, cityorstate?: string, searchStr?: string): Promise {\r\n let response: IDXC_GetStockistsServiceResponse;\r\n if (this.props.context && this.props.context.actionContext) {\r\n try {\r\n const input = new GetStockistsStoreInput(countryCode, cityorstate, searchStr);\r\n response = await getStockcistsStoreAction(input, this.props.context.actionContext);\r\n this._stockistList = response;\r\n if (this._stockistList) {\r\n this.setState({\r\n stockistList: this._stockistList\r\n });\r\n }\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n }\r\n }\r\n}\r\nexport default CittaStockists;\r\n","/*!\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 { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\nimport { ICittaGiftCardBalanceCheckViewProps } from './citta-gift-card-balance-check';\r\nexport default (props: ICittaGiftCardBalanceCheckViewProps) => {\r\n const { GiftCardBalanceCheckModuleProps,\r\n GiftCardBalanceCheckCardNodeProps,\r\n GiftCardBalanceCheckCardNode,\r\n GiftCardBalanceCheckPinNodeProps,\r\n GiftCardBalanceCheckPinNode,\r\n GiftCardBalanceCheckResultNode,\r\n GiftCardBalanceCheckButtonNode } = props;\r\n return (\r\n \r\n \r\n {GiftCardBalanceCheckCardNode}\r\n \r\n \r\n {GiftCardBalanceCheckPinNode}\r\n \r\n {GiftCardBalanceCheckResultNode}\r\n {GiftCardBalanceCheckButtonNode}\r\n \r\n );\r\n};\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\nimport { Module,Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\nimport { ICittaStockistsViewProps } from './citta-stockists';\r\n\r\nconst CittaStockistsViewProps: React.FC = props => {\r\n const { createStockistsAddress,stockistMain,stockistGrid,StockistContainer,stockistTop,createCountryDropDown,createCityStateDropDown,createSearchAddress } = props;\r\n if(!props.createStockistsAddress) {\r\n return null;\r\n }\r\n return(\r\n \r\n \r\n {createCountryDropDown}\r\n {createCityStateDropDown}\r\n {createSearchAddress}\r\n \r\n\r\n \r\n \r\n { createStockistsAddress}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default CittaStockistsViewProps;\r\n","/*---------------------------------------------------------------------------------------------\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\nimport {\r\n IGroup,\r\n IGroupDelivery,\r\n IGroups,\r\n IHeader,\r\n IList,\r\n IOrderHistoryResources,\r\n IOrderHistoryViewProps,\r\n IOrderInformation,\r\n ISalesOrder\r\n} from '@msdyn365-commerce-modules/order-management';\r\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nexport const OrderHistoryOrderInfomation: React.FC = ({\r\n orderInformationProps,\r\n salesId,\r\n channelName,\r\n createdDate,\r\n count,\r\n amount,\r\n channelReferenceId,\r\n processingLabel,\r\n orderIdLabel\r\n}) => (\r\n \r\n {channelName}\r\n {_renderProcessStatus(salesId, orderIdLabel!, processingLabel!)}\r\n {createdDate}\r\n {count}\r\n {amount}\r\n {channelReferenceId}\r\n \r\n);\r\n\r\nfunction _renderProcessStatus(salesId: React.ReactNode, orderIdLabelText: string, processingLabelText: string): React.ReactNode {\r\n return (\r\n \r\n {typeof salesId === 'string' ? (orderIdLabelText?.concat(' ', processingLabelText!)) : salesId}\r\n \r\n );\r\n}\r\n\r\nexport const OrderHistoryGroupDelivery: React.FC = ({\r\n deliveryProps,\r\n heading,\r\n count,\r\n processing,\r\n address,\r\n trackingInfo\r\n}) => (\r\n \r\n {heading}\r\n {count}\r\n {processing}\r\n {address}\r\n {/* {trackingInfo} */}\r\n \r\n);\r\n\r\nexport const OrderHistoryGroup: React.FC = ({ groupProps, delivery, salesLinesProps, salesLines }) => (\r\n \r\n {delivery && }\r\n {salesLines && (\r\n \r\n {salesLines.map(salesLine => (\r\n {salesLine.salesLine}\r\n ))}\r\n \r\n )}\r\n \r\n);\r\n\r\nexport const OrderHistoryGroups: React.FC = ({ groupsProps, groups }) => (\r\n \r\n {groups.map((group, index) => (\r\n \r\n ))}\r\n \r\n);\r\n\r\nexport const OrderHistoryHeader: React.FC = ({ headerProps, heading, orderCountLabel }) => (\r\n \r\n {heading}\r\n {orderCountLabel}\r\n \r\n);\r\n\r\nexport const OrderHistorySalesOder: React.FC = ({ salesOrderProps, orderInfomation, groups, orderDetailsLink, ...resources }) => (\r\n \r\n {orderInfomation && }\r\n {groups && }\r\n {orderDetailsLink}\r\n \r\n);\r\n\r\nexport const OrderHistoryList: React.FC = ({ listProps, salesOrders, ...resources }) => (\r\n \r\n {salesOrders && salesOrders.map((salesOrder, index) => )}\r\n \r\n);\r\n\r\nconst OrderHistoryView: React.FC = ({\r\n orderHistoryProps,\r\n header,\r\n alert,\r\n loading,\r\n emptyMessage,\r\n backToShoppingLink,\r\n list,\r\n moreButton,\r\n resources\r\n}) => (\r\n \r\n {header && }\r\n {loading}\r\n {alert && (\r\n <>\r\n {alert}\r\n {backToShoppingLink}\r\n \r\n )}\r\n {emptyMessage && (\r\n <>\r\n {emptyMessage}\r\n {backToShoppingLink}\r\n \r\n )}\r\n {list && }\r\n {moreButton && moreButton}\r\n \r\n);\r\n\r\nexport default OrderHistoryView;\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\nimport React, { ReactNode } from 'react';\n\nimport { IFooterCategoryViewProps } from './footer-category';\n\nexport const FooterCategoryView: React.FC = props => {\n const { categories, FooterList, FooterListItem } = props;\n if (!categories || categories.length === 0) {\n props.context.telemetry.error('Footer content is empty, module wont render');\n return null;\n }\n return (\n \n {categories.map((category: ReactNode, index: number) => {\n return (\n \n {category}\n \n );\n })}\n \n );\n};\n\nexport default FooterCategoryView;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as React from 'react';\n\nimport { ITextBlockViewProps } from './text-block';\n\nconst TextBlockView: React.FC = props => (\n
\n {props.paragraph}\n
\n);\n\nexport default TextBlockView;\n"],"names":["FooterCategory","React","render","this","props","slots","content","length","context","telemetry","error","viewprops","_objectSpread","categories","FooterList","moduleProps","className","classnames","config","tag","FooterListItem","renderView","TextBlock","constructor","handleTextChange","event","paragraph","target","value","text","MsDyn365","editProps","onEdit","requestContext","request","textBlockViewProps","CittaGiftCardBalanceCheck","super","_renderLookupResult","result","state","processing","lookupWaitText","success","balance","message","_renderSuccess","_renderFailure","_capture","key","newState","setState","_checkBalance","bind","_areRefsValid","cardRef","pinRef","card","pin","_mergeWithDefaults","CittaGiftCardBalanceCheckViewProps","GiftCardBalanceCheckModuleProps","GiftCardBalanceCheckCardNodeProps","GiftCardBalanceCheckCardNode","_renderCard","GiftCardBalanceCheckPinNodeProps","GiftCardBalanceCheckPinNode","_renderPin","GiftCardBalanceCheckResultNode","GiftCardBalanceCheckButtonNode","_renderCheckBalance","propsIndex","defaultConfig","keyIndex","keyName","cardNumberPlaceholderText","type","ref","placeholder","name","onChange","pinNumberPlaceholderText","submitButtonProps","disabled","Object","assign","onClick","resources","buttonTextForGiftCardBalanceCheck","lookupFailureMessage","formattedBalance","cultureFormatter","formatCurrency","labelForSuccessfulGiftCardBalanceCheckResponse","refKeys","current","previousState","getGiftCardBalanceCheck","GiftCardBalanceCheckInput","actionContext","then","GetStockistsCityOrStateInput","countrycode","getCacheKey","getCacheObjectType","dataCacheType","async","getStockcistsCityorStateAction","input","ctx","console","log","Result","dXC_GetCityStateMasterAsync","callerContext","Array","isArray","createObservableDataAction","action","inputData","locale","Error","GetStockistsCountryRegionsInput","getStockcistsCountryRegionsAction","dXC_GetCountryMasterAsync","args","GetStockistsStoreInput","cityorstate","searchstr","getStockcistsStoreAction","country","dXC_GetStockistsAsync","CittaStockists","countrySelected","stateorcitySelected","searchString","countryList","stateList","stockistList","_handleSearch","e","searchStr","_searchInputRef","countryValue","_countrySelectRef","stateValue","_stateorcitySelectRef","_getStockistsList","catch","err","_changeSearchText","_onStateorCityChange","_onCountryChange","_getStateProvinces","_getCountryList","viewProps","StockistContainer","stockistTop","stockistMain","stockistGrid","createCityStateDropDown","_renderCityStateDropDown","createCountryDropDown","_renderCountryDropDown","createStockistsAddress","_renderStockistsAddress","createSearchAddress","_renderSearchAddress","searchPlaceholder","autoComplete","Button","title","color","citaAndStatePlaceholder","id","selected","_renderStateorCityList","countryPlaceholder","_renderCountryList","stateorcity","CityStateMaster","map","stateorcityItem","_getCities","CountryMaster","countryItem","_getCountries","CountryCode","CountryName","StockistsList","stockist","Name","StreetNumber","Street","District","City","PostalCode","State","PhoneNumber","href","Email","response","_countryList","countryCode","_stateList","_stockistList","__decorate","observable","Module","Node","OrderHistoryOrderInfomation","_ref","orderInformationProps","salesId","channelName","createdDate","count","amount","channelReferenceId","processingLabel","orderIdLabel","orderIdLabelText","processingLabelText","concat","_renderProcessStatus","OrderHistoryGroupDelivery","_ref2","deliveryProps","heading","address","trackingInfo","OrderHistoryGroup","_ref3","groupProps","delivery","salesLinesProps","salesLines","salesLine","data","LineId","OrderHistoryGroups","_ref4","groupsProps","groups","group","index","OrderHistoryHeader","_ref5","headerProps","orderCountLabel","OrderHistorySalesOder","_ref6","salesOrderProps","orderInfomation","orderDetailsLink","_objectWithoutProperties","_excluded","OrderHistoryList","_ref7","listProps","salesOrders","_excluded2","salesOrder","_ref8","orderHistoryProps","header","alert","loading","emptyMessage","backToShoppingLink","list","moreButton","FooterCategoryView","category","renderModuleAttributes"],"sourceRoot":""}