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,OAAOL,iBAAS,IAAAE,EAAAA,EAAI,GAC1CM,iBAAkBL,EAAUM,gBAC5BC,iBAAkBP,EAAUQ,YAC5BC,SAAUzB,KAAKJ,MAAM8B,GACrBC,iBAAkB3B,KAAKF,kBACvB8B,UAAU,GAGRC,EAASvC,EAAAA,EAAA,GACRU,KAAKJ,OAAK,IACbqB,MAAOxB,EAASqC,eAAeb,GAC/Bc,kCAAmCZ,EACnCa,kBAAmB,CACfpB,IAAK,KACLC,UAAW,gBACXoB,KAAM,YAEVC,kBAAmB,CAAErB,UAAWsB,GAAAA,CAAW,eAAgBtB,IAC3DuB,gBAAiB,CAAEvB,UAAW,yBAC9BwB,MAAOrC,KAAKJ,MAAM0C,MAAMC,UAE5B,OAAOvC,KAAKJ,MAAM4C,WAAWX,IAIrC,2GCrEO,MAAMY,EAA6C7C,IACtD,MAAM,MAAEqB,EAAK,MAAEoB,EAAK,kBAAEH,EAAiB,gBAAEE,EAAe,kBAAEJ,EAAiB,kCAAED,GAAsCnC,EACnH,OACIF,IAAAA,cAACgD,EAAAA,KAAIC,OAAAC,OAAA,GAAKV,GACNxC,IAAAA,cAACgD,EAAAA,KAAIC,OAAAC,OAAA,GAAKR,GAAkBnB,GAC5BvB,IAAAA,cAACgD,EAAAA,KAAIC,OAAAC,OAAA,GAAKb,GACLM,EAAMQ,KAAI,CAACC,EAAqBC,KAC7B,MAAMC,EAAW,mBAAmBD,IACpC,OACIrD,IAAAA,cAACgD,EAAAA,KAAIC,OAAAC,OAAA,GAAKZ,EAAiB,CAAEiB,IAAKD,IAC7BF,SAS7B,WClCAI,EAAOC,QAAUzD,cCAjBwD,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./lib/tile-list/module-registration.js?3ef9","webpack://Msdyn365.Commerce.Online/./src/modules/tile-list/tile-list.tsx?78cb","webpack://Msdyn365.Commerce.Online/./src/modules/tile-list/tile-list.view.tsx?1b00","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/external var \"ReactDOM\"?853b"],"sourcesContent":["const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['tile-list'] = {\n c: () => require('@msdyn365-commerce-modules/tile-list/dist/lib/modules/tile-list/tile-list'),\n $type: 'containerModule',\n da: [],\n \n iNM: true,\n ns: '@msdyn365-commerce-modules',\n n: 'tile-list',\n p: 'tile-list',\n \n pdp: '',\n \n \n md: 'node_modules/@msdyn365-commerce-modules/tile-list/dist/lib/modules/tile-list'\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['@msdyn365-commerce-modules|tile-list|modules|tile-list|tile-list'] = {\n c: () => require('@msdyn365-commerce-modules/tile-list/dist/lib/modules/tile-list/tile-list.view.js'),\n cn: '@msdyn365-commerce-modules-tile-list-tile-list'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { StringExtensions } from '@msdyn365-commerce-modules/retail-actions';\nimport {\n getTelemetryObject,\n Heading,\n IComponentNodeProps,\n INodeProps,\n ISingleSlideCarouselProps,\n ITelemetryContent,\n NodeTag,\n SingleSlideCarousel\n} from '@msdyn365-commerce-modules/utilities';\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nimport { ITileListProps, ITitleData } from './tile-list.props.autogenerated';\n\n/**\n * Tile-list view props.\n */\nexport interface ITileListViewProps extends ITileListProps<{}> {\n title?: React.ReactNode;\n tiles: React.ReactNode[];\n tileItemContainer: INodeProps;\n tileListContainer: INodeProps;\n tileListHeading: INodeProps;\n singleSlideCarouselComponentProps: INodeProps;\n}\n\n/**\n *\n * TileList component.\n * @extends {React.PureComponent>}\n */\nexport class TileList extends React.PureComponent> {\n private readonly _telemetryContent: ITelemetryContent = getTelemetryObject(\n this.props.context.request.telemetryPageName!,\n this.props.friendlyName,\n this.props.telemetry\n );\n private static _createHeading(heading?: ITitleData): React.ReactNode | null {\n if (!heading || !heading.text || StringExtensions.isNullOrWhitespace(heading.text)) {\n return null;\n }\n return ;\n }\n public constructor(props: ITileListProps<{}>) {\n super(props);\n }\n\n public render(): JSX.Element | null {\n const { resources } = this.props;\n const { title, className } = this.props.config;\n const propsCarousel: IComponentNodeProps = {\n tag: SingleSlideCarousel,\n className: this.props.config.className ?? '',\n flipperPrevLabel: resources.flipperPrevious,\n flipperNextLabel: resources.flipperNext,\n parentId: this.props.id,\n telemetryContent: this._telemetryContent,\n vertical: false\n };\n\n const viewProps = {\n ...this.props,\n title: TileList._createHeading(title),\n singleSlideCarouselComponentProps: propsCarousel,\n tileItemContainer: {\n tag: 'li' as NodeTag,\n className: 'ms-tile__item',\n role: 'listitem'\n },\n tileListContainer: { className: classnames('ms-tile-list', className) },\n tileListHeading: { className: 'ms-tile-list__heading' },\n tiles: this.props.slots.content\n };\n return this.props.renderView(viewProps) as React.ReactElement;\n }\n}\n\nexport default TileList;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { Node } from '@msdyn365-commerce-modules/utilities';\nimport React, { ReactNode } from 'react';\n\nimport { ITileListViewProps } from './tile-list';\n\n/**\n * View component.\n * @param props - The view properties.\n * @returns Returns props.\n */\nexport const tileListView: React.FC = props => {\n const { title, tiles, tileListContainer, tileListHeading, tileItemContainer, singleSlideCarouselComponentProps } = props;\n return (\n \n {title}\n \n {tiles.map((tileItem: ReactNode, index: number) => {\n const keyIndex = `tile-list-item__${index}`;\n return (\n \n {tileItem}\n \n );\n })}\n \n \n );\n};\n\nexport default tileListView;\n","module.exports = React;","module.exports = ReactDOM;"],"names":["binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","_objectSpread","viewDictionary","cn","TileList","React","constructor","props","super","_telemetryContent","getTelemetryObject","this","context","request","telemetryPageName","friendlyName","telemetry","heading","text","StringExtensions","isNullOrWhitespace","Heading","headingTag","tag","className","render","_this$props$config$cl","resources","title","config","propsCarousel","SingleSlideCarousel","flipperPrevLabel","flipperPrevious","flipperNextLabel","flipperNext","parentId","id","telemetryContent","vertical","viewProps","_createHeading","singleSlideCarouselComponentProps","tileItemContainer","role","tileListContainer","classnames","tileListHeading","tiles","slots","content","renderView","tileListView","Node","Object","assign","map","tileItem","index","keyIndex","key","module","exports","ReactDOM"],"sourceRoot":""}