{"ast":null,"code":"\"use strict\";\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  var desc = Object.getOwnPropertyDescriptor(m, k);\n  if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n    desc = {\n      enumerable: true,\n      get: function get() {\n        return m[k];\n      }\n    };\n  }\n  Object.defineProperty(o, k2, desc);\n} : function (o, m, k, k2) {\n  if (k2 === undefined) k2 = k;\n  o[k2] = m[k];\n});\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n  Object.defineProperty(o, \"default\", {\n    enumerable: true,\n    value: v\n  });\n} : function (o, v) {\n  o[\"default\"] = v;\n});\nvar __importStar = this && this.__importStar || function (mod) {\n  if (mod && mod.__esModule) return mod;\n  var result = {};\n  if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n  __setModuleDefault(result, mod);\n  return result;\n};\nvar __importDefault = this && this.__importDefault || function (mod) {\n  return mod && mod.__esModule ? mod : {\n    \"default\": mod\n  };\n};\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.LogBoxInspectorSection = void 0;\nvar react_1 = __importDefault(require(\"react\"));\nvar react_native_1 = require(\"react-native-web/dist/index\");\nvar LogBoxStyle = __importStar(require(\"../UI/LogBoxStyle\"));\nfunction LogBoxInspectorSection(props) {\n  return react_1.default.createElement(react_native_1.View, {\n    style: styles.section\n  }, react_1.default.createElement(react_native_1.View, {\n    style: styles.heading\n  }, react_1.default.createElement(react_native_1.Text, {\n    style: styles.headingText\n  }, props.heading), props.action), react_1.default.createElement(react_native_1.View, {\n    style: styles.body\n  }, props.children));\n}\nexports.LogBoxInspectorSection = LogBoxInspectorSection;\nvar styles = react_native_1.StyleSheet.create({\n  section: {\n    marginTop: 15\n  },\n  heading: {\n    alignItems: \"center\",\n    flexDirection: \"row\",\n    paddingHorizontal: 12,\n    marginBottom: 10\n  },\n  headingText: {\n    color: LogBoxStyle.getTextColor(1),\n    flex: 1,\n    fontSize: 18,\n    fontWeight: \"600\",\n    includeFontPadding: false,\n    lineHeight: 20\n  },\n  body: {\n    paddingBottom: 10\n  }\n});","map":{"version":3,"sources":["../../../src/error-overlay/overlay/LogBoxInspectorSection.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAA,OAAA,GAAA,eAAA,CAAA,OAAA,CAAA,OAAA,CAAA,CAAA;AAA0B,IAAA,cAAA,GAAA,OAAA;AAG1B,IAAA,WAAA,GAAA,YAAA,CAAA,OAAA,oBAAA,CAAA,CAAA;AAQA,SAAgB,sBAAsB,CAAC,KAAY,EAAA;EACjD,OACE,OAAA,CAAA,OAAA,CAAA,aAAA,CAAC,cAAA,CAAA,IAAI,EAAA;IAAC,KAAK,EAAE,MAAM,CAAC;EAAO,CAAA,EACzB,OAAA,CAAA,OAAA,CAAA,aAAA,CAAC,cAAA,CAAA,IAAI,EAAA;IAAC,KAAK,EAAE,MAAM,CAAC;EAAO,CAAA,EACzB,OAAA,CAAA,OAAA,CAAA,aAAA,CAAC,cAAA,CAAA,IAAI,EAAA;IAAC,KAAK,EAAE,MAAM,CAAC;EAAW,CAAA,EAAG,KAAK,CAAC,OAAO,CAAQ,EACtD,KAAK,CAAC,MAAM,CACR,EACP,OAAA,CAAA,OAAA,CAAA,aAAA,CAAC,cAAA,CAAA,IAAI,EAAA;IAAC,KAAK,EAAE,MAAM,CAAC;EAAI,CAAA,EAAG,KAAK,CAAC,QAAQ,CAAQ,CAC5C;AAEX;AAVA,OAAA,CAAA,sBAAA,GAAA,sBAAA;AAYA,IAAM,MAAM,GAAG,cAAA,CAAA,UAAU,CAAC,MAAM,CAAC;EAC/B,OAAO,EAAE;IACP,SAAS,EAAE;GACZ;EACD,OAAO,EAAE;IACP,UAAU,EAAE,QAAQ;IACpB,aAAa,EAAE,KAAK;IACpB,iBAAiB,EAAE,EAAE;IACrB,YAAY,EAAE;GACf;EACD,WAAW,EAAE;IACX,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;IAClC,IAAI,EAAE,CAAC;IACP,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,KAAK;IACjB,kBAAkB,EAAE,KAAK;IACzB,UAAU,EAAE;GACb;EACD,IAAI,EAAE;IACJ,aAAa,EAAE;EAChB;CACF,CAAC","sourcesContent":["/**\n * Copyright (c) Evan Bacon.\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport React from \"react\";\nimport { StyleSheet, Text, View } from \"react-native\";\n\nimport * as LogBoxStyle from \"../UI/LogBoxStyle\";\n\ntype Props = {\n  heading: string;\n  children: React.ReactNode;\n  action?: any;\n};\n\nexport function LogBoxInspectorSection(props: Props) {\n  return (\n    <View style={styles.section}>\n      <View style={styles.heading}>\n        <Text style={styles.headingText}>{props.heading}</Text>\n        {props.action}\n      </View>\n      <View style={styles.body}>{props.children}</View>\n    </View>\n  );\n}\n\nconst styles = StyleSheet.create({\n  section: {\n    marginTop: 15,\n  },\n  heading: {\n    alignItems: \"center\",\n    flexDirection: \"row\",\n    paddingHorizontal: 12,\n    marginBottom: 10,\n  },\n  headingText: {\n    color: LogBoxStyle.getTextColor(1),\n    flex: 1,\n    fontSize: 18,\n    fontWeight: \"600\",\n    includeFontPadding: false,\n    lineHeight: 20,\n  },\n  body: {\n    paddingBottom: 10,\n  },\n});\n"],"sourceRoot":""},"metadata":{},"sourceType":"script"}