{"version":3,"sources":["webpack:///src/modules/tile-list/tile-list.tsx?f539","webpack:///src/modules/tile-list/tile-list.view.tsx?d2bd","webpack:///./lib/tile-list/module-registration.js?3ef9","webpack:///external \"React\"?c481","webpack:///external \"ReactDOM\"?4b2d"],"names":["TileList","React","constructor","props","super","_telemetryContent","getTelemetryObject","this","context","request","telemetryPageName","friendlyName","telemetry","heading","text","StringExtensions","isNullOrWhitespace","Heading","headingTag","tag","className","render","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","map","tileItem","index","keyIndex","key","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"mappings":"yyBAoCO,MAAMA,UAAiBC,gBAK1BC,YAAmBC,GACfC,MAAMD,GALO,KAAAE,kBAAuCC,6BAAmBC,KAAKJ,MAAMK,QAAQC,QAAQC,kBAClGH,KAAKJ,MAAMQ,aACXJ,KAAKJ,MAAMS,WAMP,sBAAsBC,GAC1B,OAAKA,GAAYA,EAAQC,OAAQC,mBAAiBC,mBAAmBH,EAAQC,MAIzEb,gBAACgB,UAAO,CACJC,WAAYL,EAAQM,IACpBL,KAAMD,EAAQC,KACdM,UAAU,wBANP,KAWRC,SAAM,MACT,MAAM,UAAEC,GAAcf,KAAKJ,OACrB,MAAEoB,EAAK,UAAEH,GAAcb,KAAKJ,MAAMqB,OAClCC,EAAgE,CAClEN,IAAKO,sBACLN,UAAsC,QAA7B,EAAEb,KAAKJ,MAAMqB,OAAOJ,iBAAS,QAAI,GAC1CO,iBAAkBL,EAAUM,gBAC5BC,iBAAkBP,EAAUQ,YAC5BC,SAAUxB,KAAKJ,MAAM6B,GACrBC,iBAAkB1B,KAAKF,kBACvB6B,UAAU,GAGRC,EAAS,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aAAaC,gBAAkB,IACtCA,I,mBCtC3BE,EAAOC,QAAUvE,O,mBCAjBsE,EAAOC,QAAUC,W","file":"static/js/141.1b1152fe1aaa24c36ba4.chunk.js","sourcesContent":["/*--------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * See License.txt in the project root for license information.\n *--------------------------------------------------------------*/\n\nimport { StringExtensions } from '@msdyn365-commerce-modules/retail-actions';\nimport { getTelemetryObject,\n Heading,\n IComponentNodeProps,\n INodeProps,\n ISingleSlideCarouselProps,\n ITelemetryContent,\n NodeTag,\n SingleSlideCarousel } 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(this.props.context.request.telemetryPageName!,\n this.props.friendlyName,\n this.props.telemetry);\n\n public constructor(props: ITileListProps<{}>) {\n super(props);\n }\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 );\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. All rights reserved.\n * See License.txt 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 \n {title}\n \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","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 };","module.exports = React;","module.exports = ReactDOM;"],"sourceRoot":""}