{
  "version": 3,
  "sources": ["../../misc/introduction_tab.tsx"],
  "sourcesContent": ["import {i18n} from \"@cling/lib.web.i18n\"\nimport {Button} from \"@cling/lib.web.mdc\"\nimport {classNames} from \"@cling/lib.web.utils\"\nimport React from \"react\"\nimport {ui_actions} from \"../state/index\"\n\nexport const IntroductionTab = ({\n    stock_image_name,\n    children,\n    learn_more_website_page,\n    \"data-test-id\": data_test_id,\n    className,\n}: {\n    stock_image_name?: string\n    learn_more_website_page?:\n        | \"detail/cling-meet\"\n        | \"detail/version-history\"\n        | \"detail/organizations-and-teams\"\n    children?: any\n    \"data-test-id\"?: string\n    className?: string\n}) => {\n    const on_click = React.useCallback(\n        () => ui_actions.open_website_page(learn_more_website_page!),\n        [learn_more_website_page],\n    )\n    const num_children = React.Children.count(children)\n    return (\n        <div className={classNames(className, \"introduction-tab\")} data-test-id={data_test_id}>\n            {!!stock_image_name && (\n                <div\n                    className=\"introduction-tab__img\"\n                    style={{\n                        backgroundImage: `url(/c/static/stock/${stock_image_name})`,\n                    }}\n                />\n            )}\n            {(num_children > 0 || !!learn_more_website_page) && (\n                <div className=\"introduction-tab__text\">\n                    {num_children > 0 && <div>{children}</div>}\n                    {!!learn_more_website_page && (\n                        <Button outlined onClick={on_click} className=\"mt--1\">\n                            {i18n.learn_more}\n                        </Button>\n                    )}\n                </div>\n            )}\n        </div>\n    )\n}\n"],
  "mappings": "wLAGAA,IAGO,IAAMC,EAAkBC,EAAA,CAAC,CAC5B,iBAAAC,EACA,SAAAC,EACA,wBAAAC,EACA,eAAgBC,EAChB,UAAAC,CACJ,IASM,CACF,IAAMC,EAAWC,EAAM,YACnB,IAAMC,EAAW,kBAAkBL,CAAwB,EAC3D,CAACA,CAAuB,CAC5B,EACMM,EAAeF,EAAM,SAAS,MAAML,CAAQ,EAClD,OACIK,EAAA,cAAC,OAAI,UAAWG,EAAWL,EAAW,kBAAkB,EAAG,eAAcD,GACpE,CAAC,CAACH,GACCM,EAAA,cAAC,OACG,UAAU,wBACV,MAAO,CACH,gBAAiB,uBAAuBN,CAAgB,GAC5D,EACJ,GAEFQ,EAAe,GAAK,CAAC,CAACN,IACpBI,EAAA,cAAC,OAAI,UAAU,0BACVE,EAAe,GAAKF,EAAA,cAAC,WAAKL,CAAS,EACnC,CAAC,CAACC,GACCI,EAAA,cAACI,EAAA,CAAO,SAAQ,GAAC,QAASL,EAAU,UAAU,SACzCM,EAAK,UACV,CAER,CAER,CAER,EA3C+B",
  "names": ["init_compat_module", "IntroductionTab", "__name", "stock_image_name", "children", "learn_more_website_page", "data_test_id", "className", "on_click", "Rn", "ui_actions", "num_children", "classNames", "Button", "i18n"]
}