{"ast":null,"code":"import propsToAriaRole from \"./propsToAriaRole\";\nvar roleComponents = {\n  article: 'article',\n  banner: 'header',\n  blockquote: 'blockquote',\n  button: 'button',\n  code: 'code',\n  complementary: 'aside',\n  contentinfo: 'footer',\n  deletion: 'del',\n  emphasis: 'em',\n  figure: 'figure',\n  insertion: 'ins',\n  form: 'form',\n  list: 'ul',\n  listitem: 'li',\n  main: 'main',\n  navigation: 'nav',\n  paragraph: 'p',\n  region: 'section',\n  strong: 'strong'\n};\nvar emptyObject = {};\nvar propsToAccessibilityComponent = function propsToAccessibilityComponent(props) {\n  if (props === void 0) {\n    props = emptyObject;\n  }\n  var roleProp = props.role || props.accessibilityRole;\n  if (roleProp === 'label') {\n    return 'label';\n  }\n  var role = propsToAriaRole(props);\n  if (role) {\n    if (role === 'heading') {\n      var level = props.accessibilityLevel || props['aria-level'];\n      if (level != null) {\n        return \"h\" + level;\n      }\n      return 'h1';\n    }\n    return roleComponents[role];\n  }\n};\nexport default propsToAccessibilityComponent;","map":{"version":3,"names":["propsToAriaRole","roleComponents","article","banner","blockquote","button","code","complementary","contentinfo","deletion","emphasis","figure","insertion","form","list","listitem","main","navigation","paragraph","region","strong","emptyObject","propsToAccessibilityComponent","props","roleProp","role","accessibilityRole","level","accessibilityLevel"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-web/dist/modules/AccessibilityUtil/propsToAccessibilityComponent.js"],"sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\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 *\n * \n */\n\nimport propsToAriaRole from './propsToAriaRole';\nvar roleComponents = {\n  article: 'article',\n  banner: 'header',\n  blockquote: 'blockquote',\n  button: 'button',\n  code: 'code',\n  complementary: 'aside',\n  contentinfo: 'footer',\n  deletion: 'del',\n  emphasis: 'em',\n  figure: 'figure',\n  insertion: 'ins',\n  form: 'form',\n  list: 'ul',\n  listitem: 'li',\n  main: 'main',\n  navigation: 'nav',\n  paragraph: 'p',\n  region: 'section',\n  strong: 'strong'\n};\nvar emptyObject = {};\nvar propsToAccessibilityComponent = function propsToAccessibilityComponent(props) {\n  if (props === void 0) {\n    props = emptyObject;\n  }\n  var roleProp = props.role || props.accessibilityRole;\n  // special-case for \"label\" role which doesn't map to an ARIA role\n  if (roleProp === 'label') {\n    return 'label';\n  }\n  var role = propsToAriaRole(props);\n  if (role) {\n    if (role === 'heading') {\n      var level = props.accessibilityLevel || props['aria-level'];\n      if (level != null) {\n        return \"h\" + level;\n      }\n      return 'h1';\n    }\n    return roleComponents[role];\n  }\n};\nexport default propsToAccessibilityComponent;"],"mappings":"AASA,OAAOA,eAAe;AACtB,IAAIC,cAAc,GAAG;EACnBC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,UAAU,EAAE,YAAY;EACxBC,MAAM,EAAE,QAAQ;EAChBC,IAAI,EAAE,MAAM;EACZC,aAAa,EAAE,OAAO;EACtBC,WAAW,EAAE,QAAQ;EACrBC,QAAQ,EAAE,KAAK;EACfC,QAAQ,EAAE,IAAI;EACdC,MAAM,EAAE,QAAQ;EAChBC,SAAS,EAAE,KAAK;EAChBC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,IAAI;EACVC,QAAQ,EAAE,IAAI;EACdC,IAAI,EAAE,MAAM;EACZC,UAAU,EAAE,KAAK;EACjBC,SAAS,EAAE,GAAG;EACdC,MAAM,EAAE,SAAS;EACjBC,MAAM,EAAE;AACV,CAAC;AACD,IAAIC,WAAW,GAAG,CAAC,CAAC;AACpB,IAAIC,6BAA6B,GAAG,SAASA,6BAA6BA,CAACC,KAAK,EAAE;EAChF,IAAIA,KAAK,KAAK,KAAK,CAAC,EAAE;IACpBA,KAAK,GAAGF,WAAW;EACrB;EACA,IAAIG,QAAQ,GAAGD,KAAK,CAACE,IAAI,IAAIF,KAAK,CAACG,iBAAiB;EAEpD,IAAIF,QAAQ,KAAK,OAAO,EAAE;IACxB,OAAO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