{"version":3,"file":"static/chunks/2158.b900724bfe600aa6.js","mappings":"mKAGO,IAAMA,EAAoB,CAC/BC,WAAY,cACZC,QAAS,KAAM,EACfC,aAAc,GAAuC,OAApCC,mBAAmC,CAAC,kCACvD,EAAE,EAEyB,IAgBzB,IAAMC,EAAmB,CACvB,GAAGC,CAAK,CACRC,KAlBoBC,MAkBRC,SAhBLA,CAA+C,EAYtD,MAVmBC,CADD,WAAY,UAAW,YAAY,CACzBC,IAAI,CAACC,SAAWC,EAAAA,KAAAA,EAAAA,EAAYC,QAAQ,CAACF,GAArBC,QAGxBE,GAAdF,EACFA,EAAa,IADc,MAG3BA,GAAc,YAIXA,CACT,EAG+BP,EAAMC,UAAU,CAC/C,EACA,MACE,UAACS,MAAAA,CAAIC,UAAU,MAAMC,cAAY,iBAAiBC,sBAAoB,uCACpE,UAACC,EAAAA,iBAAiBA,CAAAA,CAACC,OAAQrB,EAAoB,GAAGM,CAAK,UACrD,UAACgB,EAAAA,CAAeA,CAAAA,CAAE,GAAGjB,CAAgB,MAI7C,EAAE","sources":["webpack://_N_E/../../libs/mi-common-static-components/src/organisms/CardLayered/CardLayered.tsx","webpack://_N_E/../../libs/mi-common-static-components/src/organisms/CardLayered/index.tsx"],"sourcesContent":["import { EditableComponent } from '@adobe/aem-react-editable-components';\nimport { CardLayered as CardLayeredComp, CardLayeredProps } from '@marriott/mi-ui-library';\n\nexport const CardLayeredConfig = {\n emptyLabel: 'CardLayered',\n isEmpty: () => true,\n resourceType: `${process.env['NEXT_PUBLIC_AEM_SITE']}/components/content/cardlayered`,\n};\n\nexport const CardLayered = (props: CardLayeredProps) => {\n // Style system classes are modified only for organism.\n function modifyStyleClass(styleClass: string | undefined) {\n const keywords = ['standard', 'inverse', 'alternate'];\n const hasKeyword = keywords.some(keyword => styleClass?.includes(keyword));\n\n if (!hasKeyword) {\n if (styleClass == undefined) {\n styleClass = 'inverse';\n } else {\n styleClass += ' inverse';\n }\n }\n\n return styleClass;\n }\n const cardLayeredProps = {\n ...props,\n styleclass: modifyStyleClass(props.styleclass),\n };\n return (\n <div className=\"p-0\" data-testid=\"card-layered-1\" data-component-name=\"o-common-static-cardlayered\">\n <EditableComponent config={CardLayeredConfig} {...props}>\n <CardLayeredComp {...cardLayeredProps} />\n </EditableComponent>\n </div>\n );\n};\n","export { CardLayered } from './CardLayered';\n"],"names":["CardLayeredConfig","emptyLabel","isEmpty","resourceType","process","cardLayeredProps","props","styleclass","CardLayered","modifyStyleClass","keywords","some","keyword","styleClass","includes","undefined","div","className","data-testid","data-component-name","EditableComponent","config","CardLayeredComp"],"sourceRoot":"","ignoreList":[]}