{"version":3,"file":"static/js/4e6493cfe49b7188451b.bundle.js","mappings":"iJAkBA,MAAMA,UAA6BC,EAAAA,cASxBC,SACH,OAAOC,KAAKC,gBASRA,gBACJ,MAAM,OAAEC,EAAM,MAAEC,GAAUH,KAAKI,MAG/B,OAFiBD,GAASA,EAAME,cAAgBF,EAAME,aAAaC,OAI3DR,EAAAA,cAACA,EAAAA,SAAc,KACVI,EAAOK,SACJP,KAAKQ,iBAAiBL,EAAME,eAOrC,KAKHG,iBAAiBC,GACrB,OACIX,EAAAA,cAACA,EAAAA,SAAc,KACVW,EAAMC,KAAI,CAACC,EAAuBC,IAC/Bd,EAAAA,cAACA,EAAAA,SAAc,CAACe,IAAKD,GAChBD,OAQzB,W,+lBCtEA,MAAMG,EAAU,CAAEC,QAAS,GAAIC,YAAa,IAEvCF,EAAQC,QAAQ,yBAA2B,CACxCE,EAAGA,IAAMC,EAAQ,MACjBC,MAAO,kBACPC,GAAI,GAEJC,KAAK,EACLC,GAAI,YACJC,EAAG,wBACHC,EAAG,YAEHC,IAAK,GAGLC,GAAI,qCAKRC,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAab,QAAOc,EAAAA,EAAA,GACpBF,OAAOC,aAAab,SAAW,IAC/BD,EAAQC,SAGXY,OAAOC,aAAaZ,YAAWa,EAAAA,EAAA,GAC5BF,OAAOC,aAAaZ,aAAe,IACnCF,EAAQE,c,mBC5BnBc,EAAOC,QAAUjC,Q","sources":["webpack://united-malt/./src/modules/conditional-container/conditional-container.tsx?f7b3","webpack://united-malt/./lib/conditional-container/module-registration.js?92a4","webpack://united-malt/external var \"React\"?0d3b"],"sourcesContent":["//==============================================================================\r\n// Conditional Container\r\n//\r\n// Container module that can be disabled to hide child content\r\n//==============================================================================\r\nimport * as React from 'react';\r\n\r\nimport { IConditionalContainerData } from './conditional-container.data';\r\nimport { IConditionalContainerProps } from './conditional-container.props.autogenerated';\r\n\r\n//==============================================================================\r\n// CLASS DEFINITION\r\n//==============================================================================\r\n/**\r\n * ConditionalContainer component\r\n * @extends {React.PureComponent>}\r\n */\r\n//==============================================================================\r\nclass ConditionalContainer extends React.PureComponent> {\r\n\r\n //==========================================================================\r\n // PUBLIC METHODS\r\n //==========================================================================\r\n\r\n //------------------------------------------------------\r\n // Render function\r\n //------------------------------------------------------\r\n public render(): JSX.Element | null {\r\n return this._displayPromo();\r\n }\r\n\r\n //==========================================================================\r\n // PRIVATE METHODS\r\n //==========================================================================\r\n\r\n //------------------------------------------------------\r\n //------------------------------------------------------\r\n private _displayPromo(): JSX.Element | null {\r\n const { config, slots } = this.props;\r\n const hasSlots = slots && slots.contentBlock && slots.contentBlock.length;\r\n\r\n if (hasSlots) {\r\n return (\r\n \r\n {config.enabled &&\r\n this._renderSlotItems(slots.contentBlock)\r\n }\r\n \r\n );\r\n }\r\n\r\n // No slots, so there's nothing to do\r\n return null;\r\n }\r\n\r\n //------------------------------------------------------\r\n //------------------------------------------------------\r\n private _renderSlotItems(items: React.ReactNode[]): JSX.Element {\r\n return (\r\n \r\n {items.map((slot: React.ReactNode, index: number) => (\r\n \r\n {slot}\r\n \r\n ))}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default ConditionalContainer;\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['conditional-container'] = {\n c: () => require('partner/modules/conditional-container/conditional-container.tsx'),\n $type: 'containerModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'conditional-container',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/conditional-container'\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 };","module.exports = React;"],"names":["ConditionalContainer","React","render","this","_displayPromo","config","slots","props","contentBlock","length","enabled","_renderSlotItems","items","map","slot","index","key","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","_objectSpread","module","exports"],"sourceRoot":""}