{"ast":null,"code":"import propsToAriaRole from \"./propsToAriaRole\";\nvar roleComponents = {\n  article: 'article',\n  banner: 'header',\n  blockquote: 'blockquote',\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  region: 'section',\n  strong: 'strong'\n};\nvar emptyObject = {};\n\nvar propsToAccessibilityComponent = function propsToAccessibilityComponent(props) {\n  if (props === void 0) {\n    props = emptyObject;\n  }\n\n  if (props.accessibilityRole === 'label') {\n    return 'label';\n  }\n\n  var role = propsToAriaRole(props);\n\n  if (role) {\n    if (role === 'heading') {\n      var level = props.accessibilityLevel || props['aria-level'];\n\n      if (level != null) {\n        return \"h\" + level;\n      }\n\n      return 'h1';\n    }\n\n    return roleComponents[role];\n  }\n};\n\nexport default propsToAccessibilityComponent;","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/node_modules/react-native-web/dist/modules/AccessibilityUtil/propsToAccessibilityComponent.js"],"names":["propsToAriaRole","roleComponents","article","banner","blockquote","code","complementary","contentinfo","deletion","emphasis","figure","insertion","form","list","listitem","main","navigation","region","strong","emptyObject","propsToAccessibilityComponent","props","accessibilityRole","role","level","accessibilityLevel"],"mappings":"AAQA,OAAOA,eAAP;AACA,IAAIC,cAAc,GAAG;AACnBC,EAAAA,OAAO,EAAE,SADU;AAEnBC,EAAAA,MAAM,EAAE,QAFW;AAGnBC,EAAAA,UAAU,EAAE,YAHO;AAInBC,EAAAA,IAAI,EAAE,MAJa;AAKnBC,EAAAA,aAAa,EAAE,OALI;AAMnBC,EAAAA,WAAW,EAAE,QANM;AAOnBC,EAAAA,QAAQ,EAAE,KAPS;AAQnBC,EAAAA,QAAQ,EAAE,IARS;AASnBC,EAAAA,MAAM,EAAE,QATW;AAUnBC,EAAAA,SAAS,EAAE,KAVQ;AAWnBC,EAAAA,IAAI,EAAE,MAXa;AAYnBC,EAAAA,IAAI,EAAE,IAZa;AAanBC,EAAAA,QAAQ,EAAE,IAbS;AAcnBC,EAAAA,IAAI,EAAE,MAda;AAenBC,EAAAA,UAAU,EAAE,KAfO;AAgBnBC,EAAAA,MAAM,EAAE,SAhBW;AAiBnBC,EAAAA,MAAM,EAAE;AAjBW,CAArB;AAmBA,IAAIC,WAAW,GAAG,EAAlB;;AAEA,IAAIC,6BAA6B,GAAG,SAASA,6BAAT,CAAuCC,KAAvC,EAA8C;AAChF,MAAIA,KAAK,KAAK,KAAK,CAAnB,EAAsB;AACpBA,IAAAA,KAAK,GAAGF,WAAR;AACD;;AAGD,MAAIE,KAAK,CAACC,iBAAN,KAA4B,OAAhC,EAAyC;AACvC,WAAO,OAAP;AACD;;AAED,MAAIC,IAAI,GAAGvB,eAAe,CAACqB,KAAD,CAA1B;;AAEA,MAAIE,IAAJ,EAAU;AACR,QAAIA,IAAI,KAAK,SAAb,EAAwB;AACtB,UAAIC,KAAK,GAAGH,KAAK,CAACI,kBAAN,IAA4BJ,KAAK,CAAC,YAAD,CAA7C;;AAEA,UAAIG,KAAK,IAAI,IAAb,EAAmB;AACjB,eAAO,MAAMA,KAAb;AACD;;AAED,aAAO,IAAP;AACD;;AAED,WAAOvB,cAAc,CAACsB,IAAD,CAArB;AACD;AACF,CAzBD;;AA2BA,eAAeH,6BAAf","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 */\nimport propsToAriaRole from './propsToAriaRole';\nvar roleComponents = {\n  article: 'article',\n  banner: 'header',\n  blockquote: 'blockquote',\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  region: 'section',\n  strong: 'strong'\n};\nvar emptyObject = {};\n\nvar propsToAccessibilityComponent = function propsToAccessibilityComponent(props) {\n  if (props === void 0) {\n    props = emptyObject;\n  }\n\n  // special-case for \"label\" role which doesn't map to an ARIA role\n  if (props.accessibilityRole === 'label') {\n    return 'label';\n  }\n\n  var role = propsToAriaRole(props);\n\n  if (role) {\n    if (role === 'heading') {\n      var level = props.accessibilityLevel || props['aria-level'];\n\n      if (level != null) {\n        return \"h\" + level;\n      }\n\n      return 'h1';\n    }\n\n    return roleComponents[role];\n  }\n};\n\nexport default propsToAccessibilityComponent;"]},"metadata":{},"sourceType":"module"}