{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nimport { View, Text, Pressable, StyleSheet } from \"@bacons/react-views\";\nimport React from \"react\";\nimport StatusBar from \"react-native-web/dist/exports/StatusBar\";\nimport Platform from \"react-native-web/dist/exports/Platform\";\nimport { SafeAreaView } from \"react-native-safe-area-context\";\nimport { createEntryFileAsync } from \"./createEntryFile\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction Header() {\n  return _jsx(Pressable, {\n    children: function children(_ref) {\n      var hovered = _ref.hovered;\n      return _jsxs(Text, {\n        role: \"heading\",\n        \"aria-level\": 1,\n        style: [styles.title, Platform.OS !== \"web\" && {\n          textAlign: \"left\"\n        }],\n        children: [\"Welcome to\", \" \", _jsx(Text, {\n          href: \"https://github.com/expo/expo-router/\",\n          style: [hovered && {\n            textDecorationColor: \"white\",\n            textDecorationLine: \"underline\"\n          }],\n          children: \"Expo\"\n        })]\n      });\n    }\n  });\n}\nvar canAutoTouchFile = \"../../apps/myapp/app\" != null;\nexport function Tutorial() {\n  React.useEffect(function () {\n    if (Platform.OS === \"web\") {\n      if (typeof location !== \"undefined\" && location.pathname !== \"/\") {\n        location.replace(\"/\");\n      }\n      if (typeof window !== \"undefined\" && typeof window.document !== \"undefined\") {\n        window.document.title = \"npx expo start\";\n      }\n    }\n  }, []);\n  return _jsxs(View, {\n    style: styles.background,\n    children: [_jsx(StatusBar, {\n      barStyle: \"light-content\"\n    }), _jsx(SafeAreaView, {\n      style: styles.safeArea,\n      children: _jsxs(View, {\n        style: styles.container,\n        children: [_jsx(Header, {}), _jsxs(Text, {\n          role: \"heading\",\n          \"aria-level\": 2,\n          style: styles.subtitle,\n          children: [\"Start by creating a file\", \"\\n\", \"in the\", \" \", _jsx(Text, {\n            style: {\n              fontWeight: \"bold\"\n            },\n            children: getRootDir()\n          }), \" \", \"directory.\"]\n        }), canAutoTouchFile && _jsx(Button, {})]\n      })\n    })]\n  });\n}\nfunction getRootDir() {\n  var _dir$split$pop;\n  var dir = \"/Users/Daniel.Antelo/Workspaces/expo-template-reactrouter-nativebase/apps/myapp/app\";\n  if (dir.match(/\\/src\\/app$/)) {\n    return \"src/app\";\n  } else if (dir.match(/\\/app$/)) {\n    return \"app\";\n  }\n  return (_dir$split$pop = dir.split(\"/\").pop()) != null ? _dir$split$pop : dir;\n}\nfunction Button() {\n  return _jsx(Pressable, {\n    onPress: function onPress() {\n      createEntryFileAsync();\n    },\n    style: _objectSpread({}, Platform.select({\n      web: {\n        boxShadow: \"rgba(255, 255, 255, 0.15) 0px 0px 20px 5px\"\n      },\n      native: {\n        position: \"absolute\",\n        bottom: 24,\n        left: 24,\n        right: 24,\n        overflow: \"hidden\"\n      }\n    })),\n    children: function children(_ref2) {\n      var pressed = _ref2.pressed,\n        hovered = _ref2.hovered;\n      return _jsx(View, {\n        style: [styles.buttonContainer, hovered && {\n          backgroundColor: \"white\"\n        }, pressed && {\n          backgroundColor: \"rgba(255,255,255,0.7)\"\n        }],\n        children: _jsxs(Text, {\n          style: [styles.code, hovered && {\n            color: \"black\"\n          }],\n          children: [_jsx(Text, {\n            style: {\n              color: \"#BCC3CD\"\n            },\n            children: \"$\"\n          }), \" touch \", getRootDir(), \"/index.js\"]\n        })\n      });\n    }\n  });\n}\nvar styles = StyleSheet.create({\n  background: {\n    backgroundColor: \"black\",\n    flex: 1,\n    backgroundImage: \"radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0)\",\n    backgroundPositionX: -3,\n    backgroundPositionY: -3,\n    backgroundSize: \"40px 40px\"\n  },\n  safeArea: {\n    flex: 1,\n    maxWidth: 960,\n    marginHorizontal: \"auto\",\n    alignItems: \"stretch\"\n  },\n  container: {\n    flex: 1,\n    padding: 24,\n    alignItems: \"flex-start\",\n    justifyContent: \"center\"\n  },\n  title: {\n    color: \"white\",\n    fontSize: 64,\n    paddingBottom: 24,\n    fontWeight: \"bold\"\n  },\n  buttonContainer: {\n    transitionDuration: \"200ms\",\n    backgroundColor: Platform.select({\n      web: \"transparent\",\n      default: \"white\"\n    }),\n    borderColor: \"white\",\n    borderWidth: 2,\n    paddingVertical: 12,\n    paddingHorizontal: 24\n  },\n  buttonText: {\n    color: \"black\"\n  },\n  code: {\n    userSelect: \"none\",\n    fontSize: 18,\n    transitionDuration: \"200ms\",\n    fontWeight: \"bold\",\n    color: Platform.select({\n      web: \"white\",\n      default: \"black\"\n    }),\n    fontFamily: Platform.select({\n      default: \"Courier\",\n      ios: \"Courier New\",\n      android: \"monospace\"\n    })\n  },\n  subtitle: {\n    color: \"#BCC3CD\",\n    fontSize: 36,\n    fontWeight: \"100\",\n    paddingBottom: 36,\n    maxWidth: 960\n  }\n});","map":{"version":3,"names":["View","Text","Pressable","StyleSheet","React","StatusBar","Platform","SafeAreaView","createEntryFileAsync","jsx","_jsx","jsxs","_jsxs","Header","children","_ref","hovered","role","style","styles","title","OS","textAlign","href","textDecorationColor","textDecorationLine","canAutoTouchFile","Tutorial","useEffect","location","pathname","replace","window","document","background","barStyle","safeArea","container","subtitle","fontWeight","getRootDir","Button","_dir$split$pop","dir","match","split","pop","onPress","_objectSpread","select","web","boxShadow","native","position","bottom","left","right","overflow","_ref2","pressed","buttonContainer","backgroundColor","code","color","create","flex","backgroundImage","backgroundPositionX","backgroundPositionY","backgroundSize","maxWidth","marginHorizontal","alignItems","padding","justifyContent","fontSize","paddingBottom","transitionDuration","default","borderColor","borderWidth","paddingVertical","paddingHorizontal","buttonText","userSelect","fontFamily","ios","android"],"sources":["/Users/Daniel.Antelo/Workspaces/expo-template-reactrouter-nativebase/node_modules/expo-router/src/onboard/Tutorial.tsx"],"sourcesContent":["import { View, Text, Pressable, StyleSheet } from \"@bacons/react-views\";\nimport React from \"react\";\nimport { StatusBar, Platform } from \"react-native\";\nimport { SafeAreaView } from \"react-native-safe-area-context\";\n\nimport { createEntryFileAsync } from \"./createEntryFile\";\n\n// TODO: Use openLinkFromBrowser thing\nfunction Header() {\n  return (\n    <Pressable>\n      {({ hovered }) => (\n        <Text\n          role=\"heading\"\n          aria-level={1}\n          style={[styles.title, Platform.OS !== \"web\" && { textAlign: \"left\" }]}\n        >\n          Welcome to{\" \"}\n          <Text\n            href=\"https://github.com/expo/expo-router/\"\n            style={[\n              hovered && {\n                textDecorationColor: \"white\",\n                textDecorationLine: \"underline\",\n              },\n            ]}\n          >\n            Expo\n          </Text>\n        </Text>\n      )}\n    </Pressable>\n  );\n}\n\nconst canAutoTouchFile = process.env.EXPO_ROUTER_APP_ROOT != null;\n\nexport function Tutorial() {\n  React.useEffect(() => {\n    if (Platform.OS === \"web\") {\n      // Reset the route on web so the initial route isn't a 404 after\n      // the user has created the entry file.\n      // This is useful for cases where you are testing the tutorial.\n      // To test: touch the new file, then navigate to a missing route `/foobar`, then delete the app folder.\n      // you should see the tutorial again and be able to create the entry file once more.\n      if (typeof location !== \"undefined\" && location.pathname !== \"/\") {\n        location.replace(\"/\");\n      }\n      if (\n        typeof window !== \"undefined\" &&\n        typeof window.document !== \"undefined\"\n      ) {\n        window.document.title = \"npx expo start\";\n      }\n    }\n  }, []);\n\n  return (\n    <View style={styles.background}>\n      <StatusBar barStyle=\"light-content\" />\n\n      <SafeAreaView style={styles.safeArea}>\n        <View style={styles.container}>\n          <Header />\n          <Text role=\"heading\" aria-level={2} style={styles.subtitle}>\n            Start by creating a file{\"\\n\"}in the{\" \"}\n            <Text style={{ fontWeight: \"bold\" }}>{getRootDir()}</Text>{\" \"}\n            directory.\n          </Text>\n          {canAutoTouchFile && <Button />}\n        </View>\n      </SafeAreaView>\n    </View>\n  );\n}\n\nfunction getRootDir() {\n  const dir = process.env.EXPO_ROUTER_ABS_APP_ROOT!;\n  if (dir.match(/\\/src\\/app$/)) {\n    return \"src/app\";\n  } else if (dir.match(/\\/app$/)) {\n    return \"app\";\n  }\n  return dir.split(\"/\").pop() ?? dir;\n}\n\nfunction Button() {\n  return (\n    <Pressable\n      onPress={() => {\n        createEntryFileAsync();\n      }}\n      style={{\n        ...Platform.select({\n          web: {\n            // subtle white shadow\n            boxShadow: \"rgba(255, 255, 255, 0.15) 0px 0px 20px 5px\",\n          },\n          native: {\n            position: \"absolute\",\n            bottom: 24,\n            left: 24,\n            right: 24,\n            overflow: \"hidden\",\n          },\n        }),\n      }}\n    >\n      {({ pressed, hovered }) => (\n        <View\n          style={[\n            styles.buttonContainer,\n            hovered && {\n              backgroundColor: \"white\",\n            },\n            pressed && {\n              backgroundColor: \"rgba(255,255,255,0.7)\",\n            },\n          ]}\n        >\n          <Text style={[styles.code, hovered && { color: \"black\" }]}>\n            <Text style={{ color: \"#BCC3CD\" }}>$</Text> touch {getRootDir()}\n            /index.js\n          </Text>\n        </View>\n      )}\n    </Pressable>\n  );\n}\n\nconst styles = StyleSheet.create({\n  background: {\n    backgroundColor: \"black\",\n    flex: 1,\n    backgroundImage:\n      \"radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0)\",\n    backgroundPositionX: -3,\n    backgroundPositionY: -3,\n    backgroundSize: \"40px 40px\",\n  },\n  safeArea: {\n    flex: 1,\n    maxWidth: 960,\n    marginHorizontal: \"auto\",\n    alignItems: \"stretch\",\n  },\n  container: {\n    flex: 1,\n    padding: 24,\n    alignItems: \"flex-start\",\n    justifyContent: \"center\",\n  },\n  title: {\n    color: \"white\",\n    fontSize: 64,\n    paddingBottom: 24,\n    fontWeight: \"bold\",\n  },\n  buttonContainer: {\n    transitionDuration: \"200ms\",\n    backgroundColor: Platform.select({\n      web: \"transparent\",\n      default: \"white\",\n    }),\n\n    borderColor: \"white\",\n    borderWidth: 2,\n    paddingVertical: 12,\n    paddingHorizontal: 24,\n  },\n  buttonText: {\n    color: \"black\",\n  },\n  code: {\n    userSelect: \"none\",\n    fontSize: 18,\n    transitionDuration: \"200ms\",\n    fontWeight: \"bold\",\n    color: Platform.select({\n      web: \"white\",\n      default: \"black\",\n    }),\n    fontFamily: Platform.select({\n      default: \"Courier\",\n      ios: \"Courier New\",\n      android: \"monospace\",\n    }),\n  },\n  subtitle: {\n    color: \"#BCC3CD\",\n    fontSize: 36,\n    fontWeight: \"100\",\n    paddingBottom: 36,\n    maxWidth: 960,\n  },\n});\n"],"mappings":";;;AAAA,SAASA,IAAI,EAAEC,IAAI,EAAEC,SAAS,EAAEC,UAAU,QAAQ,qBAAqB;AACvE,OAAOC,KAAK,MAAM,OAAO;AAAC,OAAAC,SAAA;AAAA,OAAAC,QAAA;AAE1B,SAASC,YAAY,QAAQ,gCAAgC;AAE7D,SAASC,oBAAoB;AAA4B,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAGzD,SAASC,MAAMA,CAAA,EAAG;EAChB,OACEH,IAAA,CAACR,SAAS;IAAAY,QAAA,EACP,SAAAA,SAAAC,IAAA;MAAA,IAAGC,OAAO,GAAAD,IAAA,CAAPC,OAAO;MAAA,OACTJ,KAAA,CAACX,IAAI;QACHgB,IAAI,EAAC,SAAS;QACd,cAAY,CAAE;QACdC,KAAK,EAAE,CAACC,MAAM,CAACC,KAAK,EAAEd,QAAQ,CAACe,EAAE,KAAK,KAAK,IAAI;UAAEC,SAAS,EAAE;QAAO,CAAC,CAAE;QAAAR,QAAA,GACvE,YACW,EAAC,GAAG,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