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A,KAAIC,OAAAC,OAAA,GAAKP,GACNI,IAAAA,cAACC,EAAAA,KAAIC,OAAAC,OAAA,GAAKN,GAAkBH,GAC5BM,IAAAA,cAACC,EAAAA,KAAIC,OAAAC,OAAA,GAAKJ,GACLJ,EAAMY,KAAI,CAACC,EAAqBC,KAC7B,MAAMC,EAAW,mBAAmBD,IACpC,OACIT,IAAAA,cAACC,EAAAA,KAAIC,OAAAC,OAAA,GAAKL,EAAiB,CAAEa,IAAKD,IAC7BF,SAS7B,WClCA4D,EAAOC,QAAUrE,cCAjBoE,EAAOC,QAAUC","sources":["webpack://sgi-bookstore/./src/themes/sgi-theme/views/tile-list.view.tsx?3ae3","webpack://sgi-bookstore/./lib/tile-list/module-registration.js?3ef9","webpack://sgi-bookstore/./src/modules/tile-list/tile-list.tsx?78cb","webpack://sgi-bookstore/./src/modules/tile-list/tile-list.view.tsx?1b00","webpack://sgi-bookstore/external var \"React\"?0d3b","webpack://sgi-bookstore/external var \"ReactDOM\"?853b"],"sourcesContent":["/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport { Node } from '@msdyn365-commerce-modules/utilities';\r\nimport React, { ReactNode } from 'react';\r\n\r\nimport { ITileListViewProps } from '@msdyn365-commerce-modules/tile-list/src/modules/tile-list/./tile-list';\r\nimport { ITileListProps } from '../definition-extensions/tile-list.ext.props.autogenerated';\r\n\r\n/**\r\n * View component.\r\n * @param props - The view properties.\r\n * @returns Returns props.\r\n */\r\nexport const tileListView: React.FC> = props => {\r\n const { title, tiles, tileListContainer, tileListHeading, tileItemContainer, singleSlideCarouselComponentProps } = props;\r\n return (\r\n \r\n {title}\r\n \r\n {tiles.map((tileItem: ReactNode, index: number) => {\r\n const keyIndex = `tile-list-item__${index}`;\r\n return (\r\n \r\n {tileItem}\r\n \r\n );\r\n })}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default tileListView;\r\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['__local__|__local__|themes|sgi-theme|views|tile-list'] = {\n c: () => require('partner/themes/sgi-theme/views/tile-list.view.tsx'),\n cn: '__local__-__local__-tile-list'\n };\nviewDictionary['@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":["tileListView","props","title","tiles","tileListContainer","tileListHeading","tileItemContainer","singleSlideCarouselComponentProps","React","Node","Object","assign","id","config","elementId","map","tileItem","index","keyIndex","key","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","_objectSpread","viewDictionary","cn","TileList","constructor","super","_telemetryContent","getTelemetryObject","this","context","request","telemetryPageName","friendlyName","telemetry","heading","text","StringExtensions","isNullOrWhitespace","Heading","headingTag","tag","className","render","_this$props$config$cl","resources","propsCarousel","SingleSlideCarousel","flipperPrevLabel","flipperPrevious","flipperNextLabel","flipperNext","parentId","telemetryContent","vertical","viewProps","_createHeading","role","classnames","slots","content","renderView","module","exports","ReactDOM"],"sourceRoot":""}