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AAC,IAEf,CAAC1F,EACC,CACjBc,EAAI,CAAC,CAAEA,EAAI4E,CAAH,GAFqB,CAAC,GAEX,CAACH,CAAc,CAAC,CAAC,CAAC,CAAC,CAAEzE,GAAC,CAAI,CAAF,IAC5CuB,EAAO8C,EAAaO,EAAhB,MAAwB,CAACH,CAAV,CAAyBzE,EAAI,CAAH,CAAK,CAAC,CAAEgF,EAAOC,GAClErF,CADgE,CAC5DM,CAAD,CADoE,CAAC,CAChE,CAACqB,EACX,CAEF,GAHiB,CAAC,CAIpB,MAA+B,CAAC,GAA3BkD,EAAexE,MAAM,EAAUyE,EAAczE,EAA/B,IAAqC,CAAG,CAAC,CAMxD,EAN6C,EAMxC,IAJC0E,EAAcC,QAAQ,CAAC5F,CAAZ,EACX+F,EAAQ,EAAE,CAAGJ,CAAR,CAELM,EAAQ,EAH6B,CAAC,EAGjC,GAFmB,GACN,CAAC/F,EACC,CACjBc,EAAI,CAAH,CAAMkF,CAAC,CAAG,CAAC,CAAElF,EAAI2E,CAFY,CAEC3E,GAAC,CAAIkF,CAAF,EAAK,CAAE,CAC5CA,CADgC,GAC1BR,EAAczE,MAAM,EAAE,CAC9BiF,CAAC,CADoB,CACjB,CAAC,CAEP,IAAM3D,EAAO8C,EAAaU,EAAhB,IAAqB,IAAN,CAAiBL,CAAa,CAACQ,CAAC,CAAC,CAAC,CAAED,GAC7DrF,EAAIM,CAAD,CAD+D,CAAC,CAC3D,CAACqB,EACX,CAGN,CACF,CACA,CANuB,CAAC,KAMjB3B,CACT,CAAC,CADW","sources":["webpack://_N_E/../../libs/mi-common-static-components/src/organisms/VariableColumnContainer/VariableColumnContainer.tsx","webpack://_N_E/../../libs/mi-common-static-components/src/organisms/VariableColumnContainer/index.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { EditableComponent, ResponsiveGrid } from '@adobe/aem-react-editable-components';\nimport {\n AEMReactCompMap,\n VariableColumnContainer as VariableColumnContainerMolecule,\n updateAEMCQKeys,\n} from '@marriott/mi-ui-library';\nimport clsx from 'clsx';\nimport { FC, lazy, Suspense } from 'react';\nimport { v4 as uuidV4 } from 'uuid';\nimport { VariableColumnProps, VariableColumnContainerProps } from './VariableColumnContainer.types';\nimport { JSX } from 'react/jsx-runtime';\nimport React from 'react';\n\nexport const VariableColumnContainerConfig = {\n emptyLabel: 'VariableColumnContainer',\n isEmpty: () => true,\n resourceType: `${process.env['NEXT_PUBLIC_AEM_SITE']}/components/content/variablecolumncontainer`,\n};\n\nexport const VariableColumnContainerComp: FC = (props: VariableColumnProps) => {\n const {\n header,\n headerTag,\n subHeader,\n ctaLabel,\n ctaLink,\n eyebrow,\n ctaType,\n openInNewTab,\n trackingProperties,\n styleclass,\n componentId,\n pagePath,\n itemPath,\n isAuthorMode,\n desktopColumns,\n tabletColumns,\n mobileColumns,\n reverseStacking,\n contentAlignment,\n headerFontSize,\n subFontSize,\n subHeaderTag,\n descriptionText,\n descFontSize,\n } = props;\n\n const updatedProps = updateAEMCQKeys(props);\n const cqItems = updatedProps['cqItems'];\n\n const col = getColumnsObj(desktopColumns, tabletColumns, mobileColumns);\n\n const formVariableColumnArray = () => {\n const columnsArray = [];\n for (let i = 0; i < col.length; i++) {\n columnsArray.push([\n `variable-column-${i}`,\n `col-xl-${col?.[i].deskVal} col-md-${col?.[i].tabVal} col-${col?.[i].mobVal} column-containers`,\n ]);\n }\n return columnsArray;\n };\n\n const variableColumnArray = formVariableColumnArray();\n\n const mapper = AEMReactCompMap(props?.allowedComponents);\n\n // This function is used to render the component in authoring mode authorComponentWrapper\n const authorComponentWrapper = (index: number) => {\n return (\n true,\n resourceType: 'mi-aem-common-spa/components/container',\n }}\n />\n );\n };\n\n // This function is used to render the component in end-user mode\n const publishComponentWrapper = (columnName: string, jsonData: any, columnClass: string) => {\n // eslint-disable-next-line no-prototype-builtins\n if (jsonData?.hasOwnProperty(columnName)) {\n const column = jsonData[columnName];\n const columnItems = column[':items'];\n const columnOrder: string[] = column[':itemsOrder'];\n const componentsArray: JSX.Element[] = [];\n\n columnOrder.forEach(itemKey => {\n if (Object.prototype.hasOwnProperty.call(columnItems, itemKey)) {\n const item = columnItems[itemKey];\n const itemType = item[':type']?.split('/').pop();\n if (Object.prototype.hasOwnProperty.call(mapper, itemType)) {\n const innerComp = mapper[itemType];\n const Component = lazy(() =>\n import(`../${innerComp}/index`).then(module => ({\n default: module[`${innerComp}`],\n }))\n );\n const itemProps = { model: { ...item }, ...item };\n componentsArray.push();\n }\n }\n });\n\n if (componentsArray.length) {\n return (\n
  • \n {componentsArray.map((child, index) => (\n } key={`${uuidV4()}`}>\n {React.isValidElement(child) ? React.cloneElement(child, { key: index + `-${uuidV4()}` }) : child}\n \n ))}\n
  • \n );\n } else {\n return null;\n }\n }\n return null;\n };\n\n return (\n \n {isAuthorMode &&\n Array.from({ length: variableColumnArray.length }, (_, i) => (\n
    {authorComponentWrapper(i)}
    \n ))}\n {!isAuthorMode &&\n variableColumnArray.map((columnName: string[], i) => {\n return publishComponentWrapper(columnName[0], cqItems, variableColumnArray[i][1]);\n })}\n \n );\n};\n\nexport const VariableColumnEditableComponent = (props: any) => {\n const { model } = props;\n const cqType = model?.cqType || model[':type'];\n return (\n \n \n \n );\n};\n\nexport const VariableColumnContainer: FC = (props: VariableColumnContainerProps) => {\n const { model } = props;\n return (\n \n \n \n );\n};\n\nexport const createColumn = (deskVal: number, tabVal: number, mobVal: number = 12) => {\n const item = {\n deskVal,\n tabVal,\n mobVal,\n };\n return item;\n};\n\nexport const getColumnsObj = (desktopColumns = '', tabletColumns = '', mobileColumns = '') => {\n const col = [];\n if (desktopColumns !== '' || tabletColumns !== '' || mobileColumns !== '') {\n const [desktopColVals, tabletColVals] = [desktopColumns.split(','), tabletColumns.split(',')];\n\n switch (true) {\n case desktopColVals.length === 1 && tabletColVals.length === 1:\n {\n const deskTopCols = parseInt(desktopColumns);\n const tabCols = parseInt(tabletColumns);\n const mobCols = parseInt(mobileColumns);\n\n const xlVal = 12 / deskTopCols;\n const mdVal = 12 / tabCols;\n const smVal = 12 / mobCols;\n\n for (let i = 0; i < deskTopCols; i++) {\n const item = createColumn(xlVal, mdVal, smVal);\n col.push(item);\n }\n }\n break;\n case desktopColVals.length > 1 && tabletColVals.length > 1:\n {\n const mobCols = parseInt(mobileColumns);\n const smVal = 12 / mobCols;\n for (let i = 0; i < parseInt(desktopColVals[0]); i++) {\n const item = createColumn(parseInt(desktopColVals[i + 1]), parseInt(tabletColVals[i]), smVal);\n col.push(item);\n }\n }\n break;\n case desktopColVals.length > 1 && tabletColVals.length === 1:\n {\n const tabCols = parseInt(tabletColumns);\n const mdVal = 12 / tabCols + 1;\n const mobCols = parseInt(mobileColumns);\n const smVal = 12 / mobCols;\n for (let i = 0; i < parseInt(desktopColVals[0]); i++) {\n const item = createColumn(parseInt(desktopColVals[i + 1]), mdVal, smVal);\n col.push(item);\n }\n }\n break;\n case desktopColVals.length === 1 && tabletColVals.length > 1:\n {\n const deskTopCols = parseInt(desktopColumns);\n const xlVal = 12 / deskTopCols;\n const mobCols = parseInt(mobileColumns);\n const smVal = 12 / mobCols;\n for (let i = 0, j = 0; i < deskTopCols; i++, j++) {\n if (j === tabletColVals.length) {\n j = 0;\n }\n const item = createColumn(xlVal, parseInt(tabletColVals[j]), smVal);\n col.push(item);\n }\n }\n break;\n }\n }\n return col;\n};\n","// This file manages exports from the base atom, molecule, or organism.\n// Use named rather than default exports.\nexport { VariableColumnContainer } from './VariableColumnContainer';\n"],"names":["VariableColumnContainerConfig","emptyLabel","isEmpty","resourceType","concat","process","VariableColumnContainerComp","header","props","headerTag","subHeader","ctaLabel","ctaLink","eyebrow","ctaType","openInNewTab","trackingProperties","styleclass","componentId","pagePath","itemPath","isAuthorMode","desktopColumns","tabletColumns","mobileColumns","reverseStacking","contentAlignment","headerFontSize","subFontSize","subHeaderTag","descriptionText","descFontSize","cqItems","updateAEMCQKeys","col","getColumnsObj","variableColumnArray","columnsArray","i","length","push","deskVal","tabVal","mobVal","mapper","AEMReactCompMap","allowedComponents","publishComponentWrapper","jsonData","columnClass","hasOwnProperty","columnName","column","columnItems","columnOrder","componentsArray","forEach","itemKey","Object","prototype","call","item","itemType","_item$Type","split","pop","Component","lazy","innerComp","then","module","_objectSpread","model","_jsx","itemProps","className","children","map","child","index","Suspense","fallback","_Fragment","React","key","uuidV4","_jsxs","VariableColumnContainerMolecule","isAuthor","Array","from","_","ResponsiveGrid","columnCount","gridClassNames","customClassName","config","VariableColumnEditableComponent","_cqType$split","cqType","EditableComponent","componentName","VariableColumnContainer","_model$styleclass","_model$styleclass2","clsx","includes","createColumn","arguments","undefined","_ref","desktopColVals","tabletColVals","deskTopCols","parseInt","tabCols","mobCols","xlVal","mdVal","smVal","j"],"sourceRoot":"","ignoreList":[]}