{"version":3,"sources":["webpack:///./src/modules/RelatedItemsModule/RelatedItemsModule.types.ts"],"names":["convertToGridConfig","data","Cards","Items","Paging","Total","length","PageSize","PageSizeMedium","PageSizeSmall","ViewCounts","LoadMoreButton","Title","ViewMoreText","Link","AppliedFilters"],"mappings":"4FAmBO,SAASA,EAAoBC,GAClC,MAAO,CACLC,MAAOD,EAAKE,MACZC,OAAQ,CACNC,MAAOJ,EAAKE,MAAMG,OAClBC,SAAU,GACVC,eAAgB,EAChBC,cAAe,EACfC,YAAY,EACZC,eAAgB,CACdC,MAAOX,EAAKY,cAAgB,wBAC5BC,KAAM,MAGVC,eAAgB,MAdpB","file":"272.9849f9cee66c503b2108.js","sourcesContent":["import ArticleCard from '@/common/interfaces/modules/ArticleCard';\nimport { ItineraryCard } from '@/components/ItineraryCard/ItineraryCard.types';\nimport LinkItem from '@/common/interfaces/LinkItem';\nimport {\n FilterableGridViewModel,\n IGridCard,\n} from '@/modules/FilterableGridModule/FilterableGridModule.types';\n\nexport interface RelatedItemsModuleViewModel {\n Title?: string;\n TitleSmall?: string;\n // We need a way to define category that gets passed for a layout perspective on the front-end. Will explain further at a later date\n Category?: string;\n Link?: LinkItem;\n Items: Array;\n IsGrid?: boolean;\n ViewMoreText?: string;\n}\n\nexport function convertToGridConfig(data: RelatedItemsModuleViewModel): FilterableGridViewModel {\n return {\n Cards: data.Items as IGridCard[],\n Paging: {\n Total: data.Items.length,\n PageSize: 12,\n PageSizeMedium: 8,\n PageSizeSmall: 4,\n ViewCounts: false,\n LoadMoreButton: {\n Title: data.ViewMoreText || 'View more Itineraries',\n Link: '#',\n },\n },\n AppliedFilters: null\n };\n}\n"],"sourceRoot":""}