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,mBACnBqB,EAAkB,uBAClBE,EAAsB,oBACtBO,EAAmB,aACnBa,GACA3E,EACJ,OACIJ,EAAAA,cAACgQ,EAAAA,OAAM1M,OAAAC,OAAA,GAAKL,GACPV,EACAJ,EACAqB,EACAE,EACAO,EACAa,EACI","sources":["webpack://Citta2.0/./src/modules/business-partner-promotion/components/terms-paragraph.tsx?1a9a","webpack://Citta2.0/./src/modules/business-partner-promotion/business-partner-promotion.tsx?df24","webpack://Citta2.0/./src/modules/alphabet-list/alphabet-list.tsx?2a42","webpack://Citta2.0/./src/modules/citta-productpdf-specification/citta-productpdf-specification.tsx?4ff0","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/alphabet-list/alphabet-list.view.tsx?271d","webpack://Citta2.0/./src/modules/citta-productpdf-specification/citta-productpdf-specification.view.tsx?8ccf","webpack://Citta2.0/./src/modules/citta-stockists/citta-stockists.view.tsx?9f42","webpack://Citta2.0/./src/modules/business-partner-promotion/business-partner-promotion.view.tsx?1ff2"],"sourcesContent":["/*!\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\nexport interface IBusinessPartnerPromotionTermsParagraphProp {\n description: string;\n className: string;\n title?: string;\n titleClassName?: string;\n}\n\nexport const BusinessPartnerPromotionTermsParagraph: React.FC = ({\n title,\n description,\n className,\n titleClassName\n}) => {\n return (\n
  • \n {title &&

    {title}

    }\n

    {description}

    \n
  • \n );\n};\n\nexport default BusinessPartnerPromotionTermsParagraph;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nimport * as MsDyn365 from '@msdyn365-commerce/core';\nimport { Button, Alert, IModuleProps, Modal, ModalBody, ModalHeader } from '@msdyn365-commerce-modules/utilities';\nimport { promoteToSellerAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/BusinessPartnersDataActions.g';\nimport { BusinessPartnerUser } from '@msdyn365-commerce/retail-proxy';\nimport { ObjectExtensions, StringExtensions } from '@msdyn365-commerce-modules/retail-actions';\nimport { Text } from '@msdyn365-commerce/core';\nimport { IBusinessPartnerPromotionData } from './business-partner-promotion.data';\nimport { IBusinessPartnerPromotionProps } from './business-partner-promotion.props.autogenerated';\nimport { BusinessPartnerPromotionTermsParagraph } from './components';\n\nexport interface IBusinessPartnerPromotionViewProps extends IBusinessPartnerPromotionProps {\n businessPartnerPromotionProps: IModuleProps;\n heading: React.ReactNode;\n notificationMessage?: React.ReactNode;\n sellerDescriptions: React.ReactNode[];\n termsOfServiceCheckbox: React.ReactNode;\n termsOfServiceModal: React.ReactNode;\n submitButton: React.ReactNode;\n}\n\nexport interface IBusinessPartnerPromotionState {\n showTermsOfService: boolean;\n showSubmitButton: boolean;\n termsOfServiceChecked: boolean;\n termsOfServiceModalOpened: boolean;\n errorMessage?: string;\n notificationMessage?: string;\n}\n\n/**\n * The class name root for the module.\n */\nexport const moduleClassName: string = 'ms-business-partner-promotion';\n\n/**\n *\n * BusinessPartnerPromotion component\n * @extends {React.PureComponent>}\n */\nclass BusinessPartnerPromotion extends React.Component<\n IBusinessPartnerPromotionProps,\n IBusinessPartnerPromotionState\n> {\n constructor(props: IBusinessPartnerPromotionProps) {\n super(props);\n this.state = {\n showTermsOfService: true,\n showSubmitButton: true,\n termsOfServiceChecked: false,\n termsOfServiceModalOpened: false,\n errorMessage: undefined,\n notificationMessage: undefined\n };\n }\n\n public render(): JSX.Element | null {\n const {\n showSubmitButton,\n showTermsOfService,\n termsOfServiceChecked,\n termsOfServiceModalOpened,\n errorMessage,\n notificationMessage\n } = this.state;\n const { resources, data, config } = this.props;\n const { heading, termsOfService } = config;\n const { authorizationErrorMessage } = resources;\n const { b2bUserInformation } = data;\n const canSubmit = this.isAdminUser(b2bUserInformation.result);\n let error: string | undefined = errorMessage;\n\n // do not show error message when the API is still in loading.\n if (!canSubmit && b2bUserInformation.status !== 'LOADING') {\n error = authorizationErrorMessage;\n }\n const btnEnabled = canSubmit && termsOfServiceChecked;\n\n const viewProps: IBusinessPartnerPromotionViewProps = {\n ...this.props,\n businessPartnerPromotionProps: {\n moduleProps: this.props,\n className: classnames(moduleClassName, moduleClassName)\n },\n heading: ,\n notificationMessage: this.renderNotificationBar(error, notificationMessage),\n sellerDescriptions: this.renderSellerDescriptions(),\n termsOfServiceCheckbox: showTermsOfService && (\n
    \n \n {resources.termsOfServiceAgreementText}\n \n {resources.termsOfServiceLinkText}\n \n
    \n ),\n termsOfServiceModal: (\n \n {resources.termsOfServiceModalHeading}\n \n \n \n \n ),\n submitButton: showSubmitButton && (\n
    \n \n {resources.submitRequestLabel}\n \n
    \n )\n };\n\n return this.props.renderView(viewProps);\n }\n\n private renderNotificationBar(errorMessage: string | undefined, notificationMessage: string | undefined): React.ReactNode {\n let notificationBar: React.ReactNode = null;\n if (errorMessage) {\n notificationBar = {errorMessage};\n } else if (notificationMessage) {\n notificationBar = {notificationMessage};\n }\n return notificationBar;\n }\n\n private renderSellerDescriptions(): React.ReactNode[] {\n const { config } = this.props;\n const results: React.ReactNode[] = [];\n const sellerDescriptions = config.sellerDescriptions;\n\n if (!sellerDescriptions) {\n return results;\n }\n\n return sellerDescriptions.map((description, idx1) => {\n return (\n
    \n \n
      \n {description.bulletPoints?.map((bulletPoint, idx2) => {\n return (\n \n );\n })}\n
    \n
    \n );\n });\n }\n\n private isAdminUser(user: BusinessPartnerUser | undefined): boolean {\n return (\n !ObjectExtensions.isNullOrUndefined(user) && !StringExtensions.isNullOrEmpty(user.BusinessPartnerId) && user.IsAdmin === true\n );\n }\n\n private readonly onCheckBoxChange = (event: React.ChangeEvent) => {\n this.setState({\n termsOfServiceChecked: event.target.checked\n });\n };\n\n private readonly onToggleTermOfServiceModal = () => {\n this.setState({\n termsOfServiceModalOpened: !this.state.termsOfServiceModalOpened\n });\n };\n\n private readonly onSubmit = async (event: React.MouseEvent) => {\n const { context, data, resources } = this.props;\n const { errorMessageText, promoteToSellerSubmitSuccessMessage } = resources;\n const businessPartnerId = data.b2bUserInformation.result?.BusinessPartnerId ?? '';\n\n try {\n await promoteToSellerAsync({ callerContext: context.actionContext }, businessPartnerId);\n this.setState({\n showSubmitButton: false,\n showTermsOfService: false,\n errorMessage: undefined,\n notificationMessage: promoteToSellerSubmitSuccessMessage\n });\n } catch {\n this.setState({\n showTermsOfService: true,\n showSubmitButton: true,\n errorMessage: errorMessageText,\n notificationMessage: undefined\n });\n }\n };\n}\n\nexport default BusinessPartnerPromotion;\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 * as React from 'react';\r\nimport { IModuleProps } from '@msdyn365-commerce-modules/utilities';\r\n\r\nimport { IAlphabetListData } from './alphabet-list.data';\r\nimport { IAlphabetListProps, IAlphabetItemsDetailsData } from './alphabet-list.props.autogenerated';\r\n\r\nexport interface IAlphabetListViewProps extends IAlphabetListProps {\r\n alphapetContainer: IModuleProps;\r\n letterItems: React.ReactNode;\r\n}\r\n\r\n/**\r\n *\r\n * AlphabetList component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass AlphabetList extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n\r\n const viewProps: IAlphabetListViewProps = {\r\n ...(this.props as IAlphabetListProps),\r\n alphapetContainer: {\r\n moduleProps: this.props,\r\n className: 'AlphabetList'\r\n },\r\n letterItems: this._renderLetter(this.props.config.alphabetItemsDetails, this.props.config.displayTwoColumns, this.props.config.letterToSplitAt)\r\n };\r\n\r\n return this.props.renderView(viewProps);\r\n }\r\n\r\n private _renderLetter(alphabetItemsDetails?: IAlphabetItemsDetailsData[], displayTwoColumns?: boolean, letterToSplitAt?: string): JSX.Element {\r\n if (displayTwoColumns) {\r\n return this._renderSplitColumn(alphabetItemsDetails, letterToSplitAt)\r\n }\r\n\r\n return this._renderSingleColumn(alphabetItemsDetails)\r\n }\r\n\r\n private _renderItem(alphabetItemDetail: IAlphabetItemsDetailsData): JSX.Element {\r\n return (\r\n
    \r\n

    {alphabetItemDetail.letter}

    \r\n
    \r\n
    \r\n {alphabetItemDetail.subMenus?.map(item => {\r\n return (\r\n <>\r\n {item.name}\r\n \r\n )\r\n })}\r\n
    \r\n
    \r\n );\r\n }\r\n\r\n private _renderSplitColumn(alphabetItemsDetails?: IAlphabetItemsDetailsData[], letterToSplitAt?: string): JSX.Element {\r\n let leftSide = true;\r\n const leftListNode: JSX.Element[] = [];\r\n const rightListNode: JSX.Element[] = [];\r\n alphabetItemsDetails?.forEach(alphabetItem => {\r\n\r\n if (alphabetItem.letter === letterToSplitAt) {\r\n leftSide = false\r\n }\r\n\r\n if (leftSide) {\r\n leftListNode.push(this._renderItem(alphabetItem))\r\n } else {\r\n rightListNode.push(this._renderItem(alphabetItem))\r\n }\r\n })\r\n\r\n return (\r\n
    \r\n
    {leftListNode}
    \r\n
    {rightListNode}
    \r\n
    \r\n )\r\n }\r\n\r\n private _renderSingleColumn(alphabetItemsDetails?: IAlphabetItemsDetailsData[]): JSX.Element {\r\n const listNode = alphabetItemsDetails?.map(alphabetItem => {\r\n return this._renderItem(alphabetItem)\r\n })\r\n\r\n return (\r\n <>\r\n {listNode}\r\n \r\n )\r\n }\r\n}\r\n\r\nexport default AlphabetList;\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 { observer } from 'mobx-react';\r\nimport * as React from 'react';\r\n\r\nimport { IModuleProps, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport { ICittaProductpdfSpecificationData } from './citta-productpdf-specification.data';\r\nimport { ICittaProductpdfSpecificationProps } from './citta-productpdf-specification.props.autogenerated';\r\n\r\nexport interface ICittaProductpdfSpecificationViewProps extends ICittaProductpdfSpecificationProps {\r\n PdfSpecificationContainer: IModuleProps;\r\n PdfSpecificationContentContainer: INodeProps;\r\n PdfSpecificationContent: INodeProps;\r\n PdfSpecificationContentShow: boolean;\r\n ProductSku: string | undefined;\r\n}\r\n\r\n/**\r\n *\r\n * CittaProductpdfSpecification component\r\n * @extends {React.Component>}\r\n */\r\n\r\n@observer\r\nclass CittaProductpdfSpecification extends React.Component> {\r\n public render(): JSX.Element | null {\r\n const { config } = this.props;\r\n\r\n const content: ICittaProductpdfSpecificationData = this.props.data;\r\n\r\n const pdfSpecificationContent = this._getProductSpecificationContent(content, config.pdfSpecificationTitle ? config.pdfSpecificationTitle : '');\r\n const productSku = content && content.product && content.product.result && content.product.result.ItemId;\r\n const CittaProductpdfSpecificationViewProps = {\r\n ...this.props,\r\n PdfSpecificationContainer: {\r\n moduleProps: this.props,\r\n className: 'pdf-specification'\r\n },\r\n PdfSpecificationContentContainer: {\r\n className: 'pdf-specification-content',\r\n 'aria-label': config.pdfSpecificationTitle\r\n },\r\n PdfSpecificationContent: {\r\n tag: 'a',\r\n href: pdfSpecificationContent,\r\n 'aria-label': `Click here to read ${config.pdfSpecificationTitle}`,\r\n target: '_blank',\r\n rel: \"noopener\"\r\n },\r\n PdfSpecificationContentShow : pdfSpecificationContent ? true : false,\r\n ProductSku: productSku\r\n };\r\n\r\n return this.props.renderView(CittaProductpdfSpecificationViewProps) as React.ReactElement;\r\n }\r\n\r\n private _getProductSpecificationContent(content: ICittaProductpdfSpecificationData, specificationTitle: string): string {\r\n const productSpec = content.productSpecificationData.result;\r\n let contentText = '';\r\n if (productSpec) {\r\n productSpec.some(spec => {\r\n if (spec.TextValue && spec.Name === specificationTitle) {\r\n contentText = spec.TextValue;\r\n return true;\r\n }\r\n return false;\r\n });\r\n }\r\n return contentText;\r\n }\r\n}\r\n\r\nexport default CittaProductpdfSpecification;\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 * as React from 'react';\r\nimport { Module } from '@msdyn365-commerce-modules/utilities';\r\n\r\nimport { IAlphabetListViewProps } from './alphabet-list';\r\n\r\nexport default (props: IAlphabetListViewProps) => {\r\n return ( \r\n \r\n {props.letterItems}\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 { ICittaProductpdfSpecificationViewProps } from './citta-productpdf-specification';\r\n\r\nexport default (props: ICittaProductpdfSpecificationViewProps) => {\r\n const {PdfSpecificationContainer, PdfSpecificationContentContainer, PdfSpecificationContentShow, PdfSpecificationContent} = props;\r\n const {pdfSpecificationTitle} = props.config;\r\n\r\n if (PdfSpecificationContentShow) {\r\n return (\r\n \r\n \r\n {pdfSpecificationTitle}\r\n \r\n \r\n );\r\n } else {\r\n return null;\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","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { Module } from '@msdyn365-commerce-modules/utilities';\nimport * as React from 'react';\n\nimport { IBusinessPartnerPromotionViewProps } from './business-partner-promotion';\n\n/**\n * View layout of business partner promotion module.\n * @param props - React props of the component.\n * @returns Functional component.\n */\nconst businessPartnersView: React.FC = props => {\n const {\n businessPartnerPromotionProps,\n heading,\n notificationMessage,\n sellerDescriptions,\n termsOfServiceCheckbox,\n termsOfServiceModal,\n submitButton\n } = props;\n return (\n \n {heading}\n {notificationMessage}\n {sellerDescriptions}\n {termsOfServiceCheckbox}\n {termsOfServiceModal}\n {submitButton}\n \n );\n};\n\nexport default businessPartnersView;\n"],"names":["BusinessPartnerPromotionTermsParagraph","_ref","title","description","className","titleClassName","React","moduleClassName","BusinessPartnerPromotion","constructor","props","super","onCheckBoxChange","event","this","setState","termsOfServiceChecked","target","checked","onToggleTermOfServiceModal","termsOfServiceModalOpened","state","onSubmit","async","_data$b2bUserInformat","_data$b2bUserInformat2","context","data","resources","errorMessageText","promoteToSellerSubmitSuccessMessage","businessPartnerId","b2bUserInformation","result","BusinessPartnerId","promoteToSellerAsync","callerContext","actionContext","showSubmitButton","showTermsOfService","errorMessage","undefined","notificationMessage","_unused","render","config","heading","termsOfService","authorizationErrorMessage","canSubmit","isAdminUser","error","status","btnEnabled","viewProps","_objectSpread","businessPartnerPromotionProps","moduleProps","classnames","Text","Object","assign","renderNotificationBar","sellerDescriptions","renderSellerDescriptions","termsOfServiceCheckbox","type","termsOfServiceLinkText","onChange","termsOfServiceAgreementText","role","onClick","termsOfServiceModal","Modal","isOpen","horizontalPosition","verticalPosition","autoFocus","fade","toggle","ModalHeader","termsOfServiceModalHeading","ModalBody","MsDyn365","text","submitButton","Button","submitRequestLabel","disabled","renderView","notificationBar","Alert","color","results","map","idx1","_description$bulletPo","key","bulletPoints","bulletPoint","idx2","label","user","ObjectExtensions","isNullOrUndefined","StringExtensions","isNullOrEmpty","IsAdmin","AlphabetList","alphapetContainer","letterItems","_renderLetter","alphabetItemsDetails","displayTwoColumns","letterToSplitAt","_renderSplitColumn","_renderSingleColumn","_renderItem","alphabetItemDetail","_alphabetItemDetail$s","letter","subMenus","item","href","link","openInNewTab","name","leftSide","leftListNode","rightListNode","forEach","alphabetItem","push","listNode","CittaProductpdfSpecification","content","pdfSpecificationContent","_getProductSpecificationContent","pdfSpecificationTitle","productSku","product","ItemId","CittaProductpdfSpecificationViewProps","PdfSpecificationContainer","PdfSpecificationContentContainer","PdfSpecificationContent","tag","rel","PdfSpecificationContentShow","ProductSku","specificationTitle","productSpec","productSpecificationData","contentText","some","spec","TextValue","Name","__decorate","observer","GetStockistsCityOrStateInput","countrycode","getCacheKey","getCacheObjectType","dataCacheType","getStockcistsCityorStateAction","input","ctx","console","log","Result","dXC_GetCityStateMasterAsync","Array","isArray","createObservableDataAction","action","inputData","locale","requestContext","Error","GetStockistsCountryRegionsInput","getStockcistsCountryRegionsAction","dXC_GetCountryMasterAsync","args","GetStockistsStoreInput","cityorstate","searchstr","getStockcistsStoreAction","country","dXC_GetStockistsAsync","CittaStockists","countrySelected","stateorcitySelected","searchString","countryList","stateList","stockistList","_handleSearch","e","searchStr","_searchInputRef","current","value","countryValue","_countrySelectRef","stateValue","_stateorcitySelectRef","_getStockistsList","catch","err","_changeSearchText","ref","_onStateorCityChange","_onCountryChange","_getStateProvinces","_getCountryList","StockistContainer","stockistTop","stockistMain","stockistGrid","createCityStateDropDown","_renderCityStateDropDown","createCountryDropDown","_renderCountryDropDown","createStockistsAddress","_renderStockistsAddress","createSearchAddress","_renderSearchAddress","searchPlaceholder","autoComplete","placeholder","citaAndStatePlaceholder","id","selected","_renderStateorCityList","countryPlaceholder","_renderCountryList","stateorcity","CityStateMaster","stateorcityItem","_getCities","CountryMaster","countryItem","_getCountries","CountryCode","CountryName","StockistsList","stockist","StreetNumber","Street","District","City","PostalCode","State","PhoneNumber","Email","response","_countryList","countryCode","_stateList","_stockistList","observable","Module","Node"],"sourceRoot":""}