{"version":3,"file":"SwitchWidget.981d4460.es5.js","mappings":"uKAKaA,EAA2B,SAAC,GAAD,IACpCC,EADoC,EACpCA,SACAC,EAFoC,EAEpCA,UACAC,EAHoC,EAGpCA,UACAC,EAJoC,EAIpCA,QAJoC,OAMpC,gCACKC,EAAAA,SAAAA,IAAaJ,GAAU,SAAAK,GACpB,IAAIC,EAAAA,EAAAA,gBAAeD,GACf,OAAOE,EAAAA,EAAAA,cAAaF,EAAD,eACfH,UAAAA,EACAD,UAAAA,GACGI,EAAMG,MAHM,CAIfC,UAAWN,W","sources":["webpack://assr-alfaleasing/./node_modules/@alfa-bank/site-content-switcher/src/components/switch/index.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport React, { isValidElement, cloneElement, Children } from 'react';\n\nimport type { ISwitchProps } from '../../models';\n\nexport const Switch: FC = ({\n children,\n className,\n keepMount,\n visible,\n}): JSX.Element => (\n <>\n {Children.map(children, child => {\n if (isValidElement(child)) {\n return cloneElement(child, {\n keepMount,\n className,\n ...child.props,\n visibleId: visible,\n });\n }\n })}\n \n);\n"],"names":["Switch","children","className","keepMount","visible","Children","child","isValidElement","cloneElement","props","visibleId"],"sourceRoot":""}