{"ast":null,"code":"import * as React from 'react';\nexport default class PortalConsumer extends React.Component {\n  componentDidMount() {\n    this.checkManager();\n    this.key = this.props.manager.mount(this.props.children);\n  }\n  componentDidUpdate() {\n    this.checkManager();\n    this.props.manager.update(this.key, this.props.children);\n  }\n  componentWillUnmount() {\n    this.checkManager();\n    this.props.manager.unmount(this.key);\n  }\n  checkManager() {\n    if (!this.props.manager) {\n      throw new Error('Looks like you forgot to wrap your root component with `Provider` component from `react-native-paper`.\\n\\n' + \"Please read our getting-started guide and make sure you've followed all the required steps.\\n\\n\" + 'https://callstack.github.io/react-native-paper/docs/guides/getting-started');\n    }\n  }\n  render() {\n    return null;\n  }\n}","map":{"version":3,"names":["React","PortalConsumer","Component","componentDidMount","checkManager","key","props","manager","mount","children","componentDidUpdate","update","componentWillUnmount","unmount","Error","render"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-paper/src/components/Portal/PortalConsumer.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { PortalMethods } from './PortalHost';\n\ntype Props = {\n  manager: PortalMethods;\n  children: React.ReactNode;\n};\n\nexport default class PortalConsumer extends React.Component<Props> {\n  componentDidMount() {\n    this.checkManager();\n\n    this.key = this.props.manager.mount(this.props.children);\n  }\n\n  componentDidUpdate() {\n    this.checkManager();\n\n    this.props.manager.update(this.key, this.props.children);\n  }\n\n  componentWillUnmount() {\n    this.checkManager();\n\n    this.props.manager.unmount(this.key);\n  }\n\n  private key: any;\n\n  private checkManager() {\n    if (!this.props.manager) {\n      throw new Error(\n        'Looks like you forgot to wrap your root component with `Provider` component from `react-native-paper`.\\n\\n' +\n          \"Please read our getting-started guide and make sure you've followed all the required steps.\\n\\n\" +\n          'https://callstack.github.io/react-native-paper/docs/guides/getting-started'\n      );\n    }\n  }\n\n  render() {\n    return null;\n  }\n}\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAS9B,eAAe,MAAMC,cAAc,SAASD,KAAK,CAACE,SAAS,CAAQ;EACjEC,iBAAiBA,CAAA,EAAG;IAClB,IAAI,CAACC,YAAY,CAAC,CAAC;IAEnB,IAAI,CAACC,GAAG,GAAG,IAAI,CAACC,KAAK,CAACC,OAAO,CAACC,KAAK,CAAC,IAAI,CAACF,KAAK,CAACG,QAAQ,CAAC;EAC1D;EAEAC,kBAAkBA,CAAA,EAAG;IACnB,IAAI,CAACN,YAAY,CAAC,CAAC;IAEnB,IAAI,CAACE,KAAK,CAACC,OAAO,CAACI,MAAM,CAAC,IAAI,CAACN,GAAG,EAAE,IAAI,CAACC,KAAK,CAACG,QAAQ,CAAC;EAC1D;EAEAG,oBAAoBA,CAAA,EAAG;IACrB,IAAI,CAACR,YAAY,CAAC,CAAC;IAEnB,IAAI,CAACE,KAAK,CAACC,OAAO,CAACM,OAAO,CAAC,IAAI,CAACR,GAAG,CAAC;EACtC;EAIQD,YAAYA,CAAA,EAAG;IACrB,IAAI,CAAC,IAAI,CAACE,KAAK,CAACC,OAAO,EAAE;MACvB,MAAM,IAAIO,KAAK,CACb,4GAA4G,GAC1G,iGAAiG,GACjG,4EACJ,CAAC;IACH;EACF;EAEAC,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI;EACb;AACF","ignoreList":[]},"metadata":{"hasCjsExports":false},"sourceType":"module","externalDependencies":[]}