expo-dev-launcher 0.11.3 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/android/build.gradle +1 -1
- package/android/src/debug/assets/expo_dev_launcher_android.bundle +11 -11
- package/bundle/App.tsx +8 -9
- package/bundle/apiClient.ts +5 -3
- package/bundle/components/AppHeader.tsx +46 -46
- package/bundle/components/EASUpdatesRows.tsx +20 -10
- package/bundle/components/Toasts.tsx +3 -1
- package/bundle/functions/getInitialData.ts +23 -8
- package/bundle/hooks/useDebounce.tsx +1 -1
- package/bundle/queries/useBranchesForApp.tsx +28 -13
- package/bundle/screens/BranchesScreen.tsx +3 -1
- package/bundle/screens/ExtensionsScreen.tsx +33 -29
- package/bundle/screens/SettingsScreen.tsx +2 -0
- package/bundle/screens/UpdatesScreen.tsx +8 -3
- package/bundle/screens/UserProfileScreen.tsx +4 -4
- package/expo-module.config.json +2 -1
- package/ios/EXDevLauncherController.h +3 -1
- package/ios/EXDevLauncherController.m +28 -1
- package/ios/Errors/EXDevLauncherErrorViewController.swift +1 -1
- package/ios/ReactNative/EXDevLauncherRCTDevSettings.h +12 -0
- package/ios/ReactNative/EXDevLauncherRCTDevSettings.m +59 -0
- package/ios/main.jsbundle +11 -11
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,24 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.11.6 — 2022-05-19
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 0.11.5 — 2022-05-06
|
|
18
|
+
|
|
19
|
+
_This version does not introduce any user-facing changes._
|
|
20
|
+
|
|
21
|
+
## 0.11.4 — 2022-05-05
|
|
22
|
+
|
|
23
|
+
### 🐛 Bug fixes
|
|
24
|
+
|
|
25
|
+
- Fix crash on initial deep link ([#17268](https://github.com/expo/expo/pull/17268) by [@ajsmth](https://github.com/ajsmth))
|
|
26
|
+
- Fix remote debugging crashing the application on iOS. ([#17248](https://github.com/expo/expo/pull/17248) by [@lukmccall](https://github.com/lukmccall))
|
|
27
|
+
- Fix reload button on iOS native error screen in certain cases. ([#17272](https://github.com/expo/expo/pull/17272) by [@esamelson](https://github.com/esamelson))
|
|
28
|
+
- Fix infinite query refetching on extensions panel. ([#17314](https://github.com/expo/expo/pull/17314) by [@ajsmth](https://github.com/ajsmth))
|
|
29
|
+
- Fix airplane mode hanging on splash screen. ([#17325](https://github.com/expo/expo/pull/17325) by [@ajsmth](https://github.com/ajsmth))
|
|
30
|
+
|
|
13
31
|
## 0.11.3 — 2022-04-26
|
|
14
32
|
|
|
15
33
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -1007,7 +1007,7 @@ __d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",
|
|
|
1007
1007
|
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.TextInput=e.Text=e.Heading=void 0;var o=t(r(d[1])),n=r(d[2]),i=r(d[3]),l=r(d[4]),s=r(d[5]);function c(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);o&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function p(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?c(Object(i),!0).forEach(function(n){(0,o.default)(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}var f=(0,l.create)(i.Text,{base:p({fontFamily:'Inter-SemiBold',color:n.lightTheme.text.default},n.typography.fontSizes[18]),props:{accessibilityRole:'header'},variants:p(p({},s.text),{},{size:{large:n.typography.fontSizes[22],small:n.typography.fontSizes[13]}}),selectors:{dark:s.textDark}});e.Heading=f;var u=(0,l.create)(i.Text,{base:{fontFamily:'Inter-Regular',color:n.lightTheme.text.default,fontSize:16,lineHeight:18},props:{accessibilityRole:'text'},variants:p({},s.text),selectors:{dark:s.textDark}});e.Text=u;var b=(0,l.create)(i.TextInput,{base:{fontFamily:'Inter-Regular',color:n.lightTheme.text.default,fontSize:16,lineHeight:18},variants:p(p(p(p({},s.text),{},{border:{default:{borderWidth:1,borderColor:n.lightTheme.border.default}}},s.rounded),s.padding),{},{shadow:{input:n.shadows.input}}),selectors:{dark:p(p({},s.textDark),{},{border:{default:{borderColor:n.darkTheme.border.default,borderWidth:1}}})}});e.TextInput=b},1001,[6,32,616,2,926,928]);
|
|
1008
1008
|
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.View=e.StatusIndicator=e.Spacer=e.Row=e.Divider=void 0;var i=t(r(d[1])),o=r(d[2]),l=r(d[3]),s=r(d[4]),n=r(d[5]);function h(t,i){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);i&&(l=l.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,l)}return o}function c(t){for(var o=1;o<arguments.length;o++){var l=null!=arguments[o]?arguments[o]:{};o%2?h(Object(l),!0).forEach(function(o){(0,i.default)(t,o,l[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):h(Object(l)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(l,i))})}return t}var u=(0,s.create)(l.View,{variants:c(c(c({overflow:{hidden:{overflow:'hidden'}},align:{centered:{justifyContent:'center',alignItems:'center'},start:{alignItems:'flex-start'}},flex:{1:{flex:1},0:{flex:0}},shrink:{1:{flexShrink:1},0:{flexShrink:0}},grow:{1:{flexGrow:1},0:{flexGrow:0}},bg:n.bg,opacity:{1:{opacity:1},.5:{opacity:.5},.75:{opacity:.75},0:{opacity:0}},inset:{top:{position:'absolute',top:0,left:0,right:0},bottom:{position:'absolute',bottom:0,left:0,right:0},full:{position:'absolute',top:0,left:0,right:0,bottom:0}},border:{default:{borderColor:o.lightTheme.border.default,borderWidth:1},hairline:{borderColor:o.lightTheme.border.default,borderWidth:l.StyleSheet.hairlineWidth},warning:{borderColor:o.lightTheme.border.warning,borderWidth:1},error:{borderColor:o.lightTheme.border.error,borderWidth:1}}},n.rounded),{},{shadow:{micro:o.shadows.micro,tiny:o.shadows.tiny,small:o.shadows.small,medium:o.shadows.medium,button:o.shadows.button},width:n.width,height:n.height},n.padding),n.margin),selectors:{dark:{bg:n.bgDark,border:n.borderDark},light:{bg:{}}}});e.View=u;var f=(0,s.create)(l.View,{base:{flexDirection:'row'},variants:c(c(c(c({bg:n.bg,flex:{1:{flex:1},0:{flex:0}},shrink:{1:{flexShrink:1},0:{flexShrink:0}},grow:{1:{flexGrow:1},0:{flexGrow:0}},align:{center:{alignItems:'center'},start:{alignItems:'flex-start'},end:{alignItems:'flex-end'}},justify:{center:{justifyContent:'center'},start:{justifyContent:'flex-start'},end:{justifyContent:'flex-end'},between:{justifyContent:'space-between'},around:{justifyContent:'space-around'}}},n.padding),n.margin),n.rounded),{},{border:n.border}),selectors:{dark:{bg:n.bgDark,border:n.borderDark}}});e.Row=f;var b=(0,s.create)(l.View,{base:{flex:1},variants:{size:{micro:{width:n.scale.micro,flex:0},tiny:{width:n.scale.tiny,flex:0},small:{width:n.scale.small,flex:0},medium:{width:n.scale.medium,flex:0},large:{width:n.scale.large,flex:0},xl:{width:n.scale.xl,flex:0}}}}),w={Vertical:(0,s.create)(l.View,{base:{flex:1},variants:{size:{micro:{height:n.scale.micro,flex:0},tiny:{height:n.scale.tiny,flex:0},small:{height:n.scale.small,flex:0},medium:{height:n.scale.medium,flex:0},large:{height:n.scale.large,flex:0},xl:{height:n.scale.xl,flex:0}}}}),Horizontal:b};e.Spacer=w;var x=(0,s.create)(l.View,{base:{height:l.StyleSheet.hairlineWidth,backgroundColor:o.lightTheme.border.default},variants:c({weight:{thin:{height:l.StyleSheet.hairlineWidth},normal:{height:1},heavy:{height:2}}},n.margin),selectors:{dark:{base:{height:l.StyleSheet.hairlineWidth,backgroundColor:o.darkTheme.border.default}}}});e.Divider=x;var y=(0,s.create)(l.View,{base:{backgroundColor:o.lightTheme.status.default,borderRadius:9999},variants:{status:{info:{backgroundColor:o.lightTheme.status.info},success:{backgroundColor:o.lightTheme.status.success},warning:{backgroundColor:o.lightTheme.status.warning},error:{backgroundColor:o.lightTheme.status.error},default:{backgroundColor:o.lightTheme.status.default}},size:{small:{width:n.scale.small,height:n.scale.small},medium:{width:n.scale.medium,height:n.scale.medium}}},selectors:{dark:{info:{backgroundColor:o.darkTheme.status.info},success:{backgroundColor:o.darkTheme.status.success},warning:{backgroundColor:o.darkTheme.status.warning},error:{backgroundColor:o.darkTheme.status.error},default:{backgroundColor:o.darkTheme.status.default}}}});e.StatusIndicator=y},1002,[6,32,616,2,926,928]);
|
|
1009
1009
|
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.LoadInitialData=function(t){var c=t.children,p=t.loader,s=void 0===p?(0,l.jsx)(f.Splash,{}):p,v=u.useState(!0),y=(0,n.default)(v,2),O=y[0],j=y[1],b=u.useState({}),P=(0,n.default)(b,2),_=P[0],h=P[1];if(u.useEffect(function(){(0,o.getInitialData)().then(function(t){h(t),j(!1)})},[]),O)return s;return u.cloneElement(c,_)};var n=t(r(d[1])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=c(n);if(u&&u.has(t))return u.get(t);var o={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=f?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(o,l,p):o[l]=t[l]}o.default=t,u&&u.set(t,o);return o})(r(d[2])),o=r(d[3]),f=r(d[4]),l=r(d[5]);function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(c=function(t){return t?u:n})(t)}},1003,[6,43,166,1004,1112,184]);
|
|
1010
|
-
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getInitialData=function(){var n,
|
|
1010
|
+
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getInitialData=function(){var n,v,h,D,y,A,P,I;return t.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,t.default.awrap(Promise.all([(0,o.getBuildInfoAsync)(),(0,l.getMenuPreferencesAsync)(),(0,o.getCrashReport)()]));case 2:return n=w.sent,v=(0,s.default)(n,3),h=v[0],D=v[1],y=v[2],w.next=9,t.default.awrap((0,o.loadFontsAsync)());case 9:return w.next=11,t.default.awrap((0,p.restoreUserAsync)().catch(function(n){return console.log({error:n}),Promise.resolve(null)}));case 11:return A=w.sent,P=null!=A,w.next=15,t.default.awrap((0,f.getDevSessionsAsync)({isAuthenticated:P,installationID:o.installationID,isDevice:o.isDevice}).catch(function(n){return console.log({error:n}),Promise.resolve([])}));case 15:return I=w.sent,P&&o.updatesConfig.usesEASUpdates&&(0,c.prefetchBranchesForApp)(o.updatesConfig.appId,o.updatesConfig.runtimeVersion,u.defaultQueryOptions.pageSize).catch(function(n){console.log({error:n})}),w.abrupt("return",{initialDevSessions:I,initialUserData:A,initialBuildInfo:h,initialDevMenuPreferences:D,initialCrashReport:y});case 18:case"end":return w.stop()}},null,null,null,Promise)};var t=n(r(d[1])),s=n(r(d[2])),o=r(d[3]),l=r(d[4]),u=r(d[5]),c=r(d[6]),f=r(d[7]),p=r(d[8])},1004,[6,69,43,1005,1006,1007,1048,1109,1110]);
|
|
1011
1011
|
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.addDeepLinkListener=function(n){return s.addListener(c,n)},e.clientUrlScheme=void 0,e.copyToClipboardAsync=function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l.copyToClipboard(n));case 1:case"end":return t.stop()}},null,null,null,Promise)},e.getBuildInfoAsync=function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",l.getBuildInfo());case 1:case"end":return n.stop()}},null,null,null,Promise)},e.getCrashReport=function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.default.awrap(l.getCrashReport());case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,null,null,Promise)},e.getPendingDeepLink=function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.default.awrap(l.getPendingDeepLink());case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,null,null,Promise)},e.getRecentlyOpenedApps=function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.default.awrap(l.getRecentlyOpenedApps());case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,null,null,Promise)},e.isDevice=e.installationID=void 0,e.loadApp=function(n){return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,t.default.awrap(l.loadApp(n));case 2:return u.abrupt("return",u.sent);case 3:case"end":return u.stop()}},null,null,null,Promise)},e.loadFontsAsync=function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.default.awrap(l.loadFontsAsync());case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,null,null,Promise)},e.loadUpdate=function(n,u){return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,t.default.awrap(l.loadUpdate(n,u));case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},null,null,null,Promise)},e.openCamera=function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.default.awrap(l.openCamera());case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,null,null,Promise)},e.updatesConfig=void 0;var t=n(r(d[1])),u=r(d[2]),l=u.NativeModules.EXDevLauncherInternal,s=new u.NativeEventEmitter(l),c='expo.modules.devlauncher.onnewdeeplink';var o=l.clientUrlScheme;e.clientUrlScheme=o;var p=l.installationID;e.installationID=p;var f=!!l.isDevice;e.isDevice=f;var v=l.updatesConfig;e.updatesConfig=v},1005,[6,69,2]);
|
|
1012
1012
|
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getMenuPreferencesAsync=function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.default.awrap(u.getPreferencesAsync());case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,null,null,Promise)},e.setMenuPreferencesAsync=function(n){return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,t.default.awrap(u.setPreferencesAsync(n));case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},null,null,null,Promise)};var t=n(r(d[1])),u=r(d[2]).NativeModules.DevMenuPreferences},1006,[6,69,2]);
|
|
1013
1013
|
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.QueryProvider=function(t){var f=t.children,y=u.useState(p),v=(0,n.default)(y,2),O=v[0],j=v[1];return(0,l.jsx)(o.QueryClientProvider,{client:c,children:(0,l.jsx)(s.Provider,{value:{queryOptions:O,setQueryOptions:j},children:f})})},e.useQueryOptions=e.queryClient=e.defaultQueryOptions=void 0;var n=t(r(d[1])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=f(n);if(u&&u.has(t))return u.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(o,c,p):o[c]=t[c]}o.default=t,u&&u.set(t,o);return o})(r(d[2])),o=r(d[3]),l=r(d[4]);function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(f=function(t){return t?u:n})(t)}var c=new o.QueryClient;e.queryClient=c;var p={pageSize:10};e.defaultQueryOptions=p;var s=u.createContext(null);e.useQueryOptions=function(){return u.useContext(s)}},1007,[6,43,166,1008,184]);
|
|
@@ -1051,7 +1051,7 @@ __d(function(g,r,i,a,m,e,d){var t=r(d[0]).default;function n(t){if("function"!=t
|
|
|
1051
1051
|
__d(function(g,r,i,a,m,e,d){"use strict";e.__esModule=!0,e.useInfiniteQuery=function(t,f,y){var Q=(0,n.parseQueryArgs)(t,f,y);return(0,s.useBaseQuery)(Q,u.InfiniteQueryObserver)};var u=r(d[0]),n=r(d[1]),s=r(d[2])},1045,[1026,1014,1042]);
|
|
1052
1052
|
__d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);e.__esModule=!0,e.useHydrate=s,e.Hydrate=void 0;var u=t(r(d[1])),n=r(d[2]),o=r(d[3]);function s(t,s){var c=(0,o.useQueryClient)(),f=u.default.useRef(s);f.current=s,u.default.useMemo(function(){t&&(0,n.hydrate)(c,t,f.current)},[c,t])}e.Hydrate=function(t){var u=t.children,n=t.options;return s(t.state,n),u}},1046,[6,166,1009,1035]);
|
|
1053
1053
|
__d(function(g,r,i,a,m,e,d){"use strict"},1047,[]);
|
|
1054
|
-
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.prefetchBranchesForApp=function(t,n,i){return
|
|
1054
|
+
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.prefetchBranchesForApp=function(t,n,i){return O.queryClient.prefetchInfiniteQuery(['branches',t,i],function(u){var o=u.pageParam,s=void 0===o?1:o;return $({page:s,appId:t,runtimeVersion:n,pageSize:i})})},e.primeCacheWithBranch=x,e.resetBranchQueries=function(){return O.queryClient.resetQueries(['branches'])},e.useBranchesForApp=function(t,n){var i,u,o,s,c,f,b=(0,v.useBuildInfo)().runtimeVersion,j=(0,P.useToastStack)(),I=(0,O.useQueryOptions)().queryOptions,B=null!=t&&n,M=(0,h.useInfiniteQuery)(['branches',t,I.pageSize],function(n){var i=n.pageParam;return $({appId:t,page:i,runtimeVersion:b,pageSize:I.pageSize})},{retry:3,refetchOnMount:!1,enabled:!!B,getNextPageParam:function(t){var n=t.incompatibleBranches.length+t.branches.length;if(!(n<I.pageSize))return(null==t?void 0:t.page)+1}});l.useEffect(function(){if(M.error&&n){var t=0===j.getItems().filter(function(t){return'pushing'===t.status||'settled'===t.status}).length,i=M.error.message;t&&j.push(function(){return(0,w.jsx)(y.Toasts.Error,{children:(0,w.jsx)(p.Text,{color:"error",size:"small",children:i||"Something went wrong trying to fetch branches for this app"})})})}},[M.error,n]);var x=null!=(i=null==(u=M.data)?void 0:u.pages.flatMap(function(t){return t.branches}).filter(function(t){return t.updates.length>0}))?i:[],V=null!=(o=null==M?void 0:null==(s=M.data)?void 0:s.pages.flatMap(function(t){return t.incompatibleBranches}))?o:[],D=null!=(c=null==M?void 0:null==(f=M.data)?void 0:f.pages[0].branches.filter(function(t){return 0===t.updates.length}))?c:[];return S(S({},M),{},{data:x,emptyBranches:D,incompatibleBranches:V,isRefreshing:M.isRefetching&&!M.isFetchingNextPage,isFetchingNextPage:!M.isLoading&&M.isFetchingNextPage})};var n,i=t(r(d[1])),u=t(r(d[2])),o=t(r(d[3])),s=t(r(d[4])),p=r(d[5]),c=r(d[6]),l=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=I(n);if(i&&i.has(t))return i.get(t);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var p=o?Object.getOwnPropertyDescriptor(t,s):null;p&&(p.get||p.set)?Object.defineProperty(u,s,p):u[s]=t[s]}u.default=t,i&&i.set(t,u);return u})(r(d[7])),f=r(d[8]),h=r(d[9]),b=r(d[10]),y=r(d[11]),v=r(d[12]),O=r(d[13]),P=r(d[14]),j=r(d[15]),w=r(d[16]);function I(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,i=new WeakMap;return(I=function(t){return t?i:n})(t)}function B(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);n&&(u=u.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,u)}return i}function S(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?B(Object(i),!0).forEach(function(n){(0,u.default)(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}var M=(0,c.gql)(n||(n=(0,o.default)(["\n query getBranches(\n $appId: String!\n $offset: Int!\n $limit: Int!\n $runtimeVersion: String!\n $platform: AppPlatform!\n ) {\n app {\n byId(appId: $appId) {\n updateBranches(offset: $offset, limit: $limit) {\n id\n name\n\n compatibleUpdates: updates(\n offset: 0\n limit: 1\n filter: { runtimeVersions: [$runtimeVersion], platform: $platform }\n ) {\n id\n }\n\n updates: updates(offset: 0, limit: $limit, filter: { platform: $platform }) {\n id\n message\n runtimeVersion\n createdAt\n manifestPermalink\n }\n }\n }\n }\n }\n"])));function $(t){var n,u,o,p,c,l,h,y;return i.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:if(n=t.appId,u=t.page,o=void 0===u?1:u,p=t.runtimeVersion,c=t.pageSize,''===n){i.next=7;break}return l={appId:n,offset:(o-1)*c,limit:c,runtimeVersion:p,platform:f.Platform.OS.toUpperCase()},h=[],y=[],i.abrupt("return",b.apiClient.request(M,l).then(function(t){return t.app.byId.updateBranches.forEach(function(t){var i={id:t.id,name:t.name,updates:t.updates.map(function(t){return S(S({},t),{},{createdAt:(0,s.default)(new Date(t.createdAt),'MMMM d, yyyy, h:mma')})})};0===t.updates.length||t.compatibleUpdates.length>0?h.push(i):y.push(i),x(n,i),(0,j.primeCacheWithUpdates)(n,i.name,i.updates)}),{branches:h,incompatibleBranches:y,page:o}}));case 7:return i.abrupt("return",{branches:[],incompatibleBranches:[],page:1});case 8:case"end":return i.stop()}},null,null,null,Promise)}function x(t,n){return O.queryClient.setQueryData(['branches',t,n.name],n)}},1048,[6,69,32,1049,1050,612,1083,166,2,1008,1101,1103,1104,1007,1105,1107,184]);
|
|
1055
1055
|
__d(function(g,r,i,a,m,e,d){m.exports=function(t,o){return o||(o=t.slice(0)),t.raw=o,t},m.exports.__esModule=!0,m.exports.default=m.exports},1049,[]);
|
|
1056
1056
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(k,O,P){(0,p.default)(2,arguments);var W=String(O),_=P||{},b=_.locale||n.default,R=b.options&&b.options.firstWeekContainsDate,S=null==R?1:(0,w.default)(R),C=null==_.firstWeekContainsDate?S:(0,w.default)(_.firstWeekContainsDate);if(!(C>=1&&C<=7))throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');var Y=b.options&&b.options.weekStartsOn,z=null==Y?0:(0,w.default)(Y),L=null==_.weekStartsOn?z:(0,w.default)(_.weekStartsOn);if(!(L>=0&&L<=6))throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');if(!b.localize)throw new RangeError('locale must contain localize property');if(!b.formatLong)throw new RangeError('locale must contain formatLong property');var T=(0,l.default)(k);if(!(0,t.default)(T))throw new RangeError('Invalid time value');var j=(0,s.default)(T),A=(0,o.default)(T,j),M={firstWeekContainsDate:C,weekStartsOn:L,locale:b,_originalDate:T};return W.match(v).map(function(t){var n=t[0];if('p'===n||'P'===n){var o=f.default[n];return o(t,b.formatLong,M)}return t}).join('').match(h).map(function(t){if("''"===t)return"'";var n=t[0];if("'"===n)return t.match(D)[1].replace(y,"'");var o=u.default[n];if(o)return!_.useAdditionalWeekYearTokens&&(0,c.isProtectedWeekYearToken)(t)&&(0,c.throwProtectedError)(t,O,k),!_.useAdditionalDayOfYearTokens&&(0,c.isProtectedDayOfYearToken)(t)&&(0,c.throwProtectedError)(t,O,k),o(A,t,b.localize,M);if(n.match(E))throw new RangeError('Format string contains an unescaped latin alphabet character `'+n+'`');return t}).join('')};var t=k(r(d[0])),n=k(r(d[1])),o=k(r(d[2])),l=k(r(d[3])),u=k(r(d[4])),f=k(r(d[5])),s=k(r(d[6])),c=r(d[7]),w=k(r(d[8])),p=k(r(d[9]));function k(t){return t&&t.__esModule?t:{default:t}}var h=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,D=/^'([^]*?)'?$/,y=/''/g,E=/[a-zA-Z]/;m.exports=e.default},1050,[1051,1055,1065,1054,1068,1080,1081,1082,1066,1053]);
|
|
1057
1057
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){if((0,f.default)(1,arguments),!(0,t.default)(n)&&'number'!=typeof n)return!1;var l=(0,u.default)(n);return!isNaN(Number(l))};var t=n(r(d[0])),u=n(r(d[1])),f=n(r(d[2]));function n(t){return t&&t.__esModule?t:{default:t}}m.exports=e.default},1051,[1052,1054,1053]);
|
|
@@ -1106,7 +1106,7 @@ __d(function(g,r,i,a,m,e,d){m.exports='object'==typeof self?self.FormData:window
|
|
|
1106
1106
|
__d(function(g,r,i,a,m,_e,_d){"use strict";var t,e=this&&this.__extends||(t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)},function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)});Object.defineProperty(_e,"__esModule",{value:!0}),_e.ClientError=void 0;var o=(function(t){function o(e,n){var s=this,c=o.extractMessage(e)+": "+JSON.stringify({response:e,request:n});return s=t.call(this,c)||this,Object.setPrototypeOf(s,o.prototype),s.response=e,s.request=n,'function'==typeof Error.captureStackTrace&&Error.captureStackTrace(s,o),s}return e(o,t),o.extractMessage=function(t){try{return t.errors[0].message}catch(e){return"GraphQL Error (Code: "+t.status+")"}},o})(Error);_e.ClientError=o},1100,[]);
|
|
1107
1107
|
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.apiEndpoint=e.apiClient=void 0,e.restClient=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=c(c({method:o.body?'POST':'GET'},o),{},{headers:c(c({},f),o.headers)});null!=o.body&&(i.body=JSON.stringify(body));return fetch("https://exp.host/--/api/v2"+t,i).then(function(t){var o;return n.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:if(!t.ok){i.next=6;break}return i.next=3,n.default.awrap(t.json());case 3:return i.abrupt("return",i.sent);case 6:return i.next=8,n.default.awrap(t.text());case 8:return o=i.sent,i.abrupt("return",Promise.reject(new Error(o)));case 10:case"end":return i.stop()}},null,null,null,Promise)})},e.restEndpoint=void 0,e.setSessionAsync=function(t){return n.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n.default.awrap(s.setSessionAsync(t));case 2:l.setHeader('expo-session',t),f['expo-session']=t;case 4:case"end":return o.stop()}},null,null,null,Promise)},e.websiteOrigin=void 0;var n=t(r(d[1])),o=t(r(d[2])),i=r(d[3]),s=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=p(n);if(o&&o.has(t))return o.get(t);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var c=s?Object.getOwnPropertyDescriptor(t,u):null;c&&(c.get||c.set)?Object.defineProperty(i,u,c):i[u]=t[u]}i.default=t,o&&o.set(t,i);return i})(r(d[4]));function p(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(p=function(t){return t?o:n})(t)}function u(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function c(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?u(Object(i),!0).forEach(function(n){(0,o.default)(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}e.apiEndpoint="https://exp.host/--/graphql";e.websiteOrigin='https://expo.dev';e.restEndpoint="https://exp.host/--/api/v2";var l=new i.GraphQLClient("https://exp.host/--/graphql");e.apiClient=l;var f={'content-type':'application/json'}},1101,[6,69,32,1083,1102]);
|
|
1108
1108
|
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getAuthSchemeAsync=function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if('android'!==s.Platform.OS){n.next=2;break}return n.abrupt("return",'expo-dev-launcher');case 2:return n.next=4,t.default.awrap(u.getAuthSchemeAsync());case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}},null,null,null,Promise)},e.openAuthSessionAsync=function(n,s){return t.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(!u.openAuthSessionAsync){c.next=4;break}return c.next=3,t.default.awrap(u.openAuthSessionAsync(n,s));case 3:return c.abrupt("return",c.sent);case 4:return c.next=6,t.default.awrap(v(n,s));case 6:return c.abrupt("return",c.sent);case 7:case"end":return c.stop()}},null,null,null,Promise)},e.restoreSessionAsync=function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.default.awrap(u.restoreSessionAsync());case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,null,null,Promise)},e.setSessionAsync=function(n){return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,t.default.awrap(u.setSessionAsync(n));case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},null,null,null,Promise)};var t=n(r(d[1])),s=r(d[2]),u=s.NativeModules.EXDevLauncherAuth,c=null,o=null,l=null!==s.AppState.currentState;function p(n){l?'active'===n&&o&&o():l=!0}function f(){if(!c)throw new Error("The WebBrowser auth session is in an invalid state with no redirect handler when one should be set");s.Linking.removeEventListener('url',c),c=null}function h(n){var c,l;return t.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return c=new Promise(function(n){o=n,s.AppState.addEventListener('change',p)}),l={type:'cancel'},f.next=4,t.default.awrap(u.openWebBrowserAsync(n));case 4:if('opened'!=='opened'){f.next=9;break}return f.next=8,t.default.awrap(c);case 8:l={type:'dismiss'};case 9:return s.AppState.removeEventListener('change',p),o=null,f.abrupt("return",l);case 12:case"end":return f.stop()}},null,null,null,Promise)}function w(n){return new Promise(function(t){c=function(s){s.url.startsWith(n)&&t({url:s.url,type:'success'})},s.Linking.addEventListener('url',c)})}function v(n,s){return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(!c){u.next=2;break}throw new Error("The WebBrowser's auth session is in an invalid state with a redirect handler set when it should not be");case 2:if(!o){u.next=4;break}throw new Error("WebBrowser is already open, only one can be open at a time");case 4:return u.prev=4,u.next=7,t.default.awrap(Promise.race([h(n),w(s)]));case 7:return u.abrupt("return",u.sent);case 8:return u.prev=8,f(),u.finish(8);case 11:case"end":return u.stop()}},null,null,[[4,,8,11]],Promise)}},1102,[6,69,2]);
|
|
1109
|
-
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Toasts=void 0;var n=r(d[0]),t=((function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var l=o(t);if(l&&l.has(n))return l.get(n);var c={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in n)if("default"!==u&&Object.prototype.hasOwnProperty.call(n,u)){var f=s?Object.getOwnPropertyDescriptor(n,u):null;f&&(f.get||f.set)?Object.defineProperty(c,u,f):c[u]=n[u]}c.default=n,l&&l.set(n,c)})(r(d[1])),r(d[2]));function o(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(o=function(n){return n?l:t})(n)}var l={Error:function(o){var l=o.children;return(0,t.jsx)(n.View,{mx:"large",children:(0,t.jsx)(n.View,{bg:"error",padding:"medium",rounded:"medium",border:"error",children:(0,t.jsx)(n.View,{children:(0,t.jsx)(n.Text,{color:"error",children:l})})})})},Warning:function(o){var l=o.children;return(0,t.jsx)(n.View,{mx:"large",children:(0,t.jsxs)(n.View,{bg:"warning",padding:"medium",rounded:"medium",border:"warning",children:[(0,t.jsxs)(n.Row,{align:"center",children:[(0,t.jsx)(n.WarningIcon,{}),(0,t.jsx)(n.Spacer.Horizontal,{size:"tiny"}),(0,t.jsx)(n.Heading,{color:"warning",size:"small",style:{top:1},children:"Warning"})]}),(0,t.jsx)(n.Spacer.Vertical,{size:"small"}),(0,t.jsx)(n.View,{children:(0,t.jsx)(n.Text,{size:"small",color:"warning",children:l})})]})})},Info:function(o){var l=o.children;return(0,t.jsx)(n.View,{mx:"large",children:(0,t.jsx)(n.View,{bg:"default",padding:"medium",rounded:"medium",border:"default",children:(0,t.jsx)(n.View,{children:(0,t.jsx)(n.Text,{color:"default",children:l})})})})}};e.Toasts=l},1103,[612,166,184]);
|
|
1109
|
+
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Toasts=void 0;var n=r(d[0]),t=((function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var l=o(t);if(l&&l.has(n))return l.get(n);var c={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in n)if("default"!==u&&Object.prototype.hasOwnProperty.call(n,u)){var f=s?Object.getOwnPropertyDescriptor(n,u):null;f&&(f.get||f.set)?Object.defineProperty(c,u,f):c[u]=n[u]}c.default=n,l&&l.set(n,c)})(r(d[1])),r(d[2]));function o(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(o=function(n){return n?l:t})(n)}var l={Error:function(o){var l=o.children;return(0,t.jsx)(n.View,{mx:"large",children:(0,t.jsx)(n.View,{bg:"error",padding:"medium",rounded:"medium",border:"error",children:(0,t.jsx)(n.View,{children:(0,t.jsx)(n.Text,{color:"error",numberOfLines:4,children:l})})})})},Warning:function(o){var l=o.children;return(0,t.jsx)(n.View,{mx:"large",children:(0,t.jsxs)(n.View,{bg:"warning",padding:"medium",rounded:"medium",border:"warning",children:[(0,t.jsxs)(n.Row,{align:"center",children:[(0,t.jsx)(n.WarningIcon,{}),(0,t.jsx)(n.Spacer.Horizontal,{size:"tiny"}),(0,t.jsx)(n.Heading,{color:"warning",size:"small",style:{top:1},children:"Warning"})]}),(0,t.jsx)(n.Spacer.Vertical,{size:"small"}),(0,t.jsx)(n.View,{children:(0,t.jsx)(n.Text,{size:"small",color:"warning",children:l})})]})})},Info:function(o){var l=o.children;return(0,t.jsx)(n.View,{mx:"large",children:(0,t.jsx)(n.View,{bg:"default",padding:"medium",rounded:"medium",border:"default",children:(0,t.jsx)(n.View,{children:(0,t.jsx)(n.Text,{color:"default",children:l})})})})}};e.Toasts=l},1103,[612,166,184]);
|
|
1110
1110
|
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.BuildInfoProvider=function(t){var n=t.children,o=t.initialBuildInfo,u=void 0===o?l:o;return(0,i.jsx)(p.Provider,{value:f(f({},l),u),children:n})},e.useBuildInfo=void 0;var n=t(r(d[1])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=u(n);if(o&&o.has(t))return o.get(t);var i={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var p=c?Object.getOwnPropertyDescriptor(t,f):null;p&&(p.get||p.set)?Object.defineProperty(i,f,p):i[f]=t[f]}i.default=t,o&&o.set(t,i);return i})(r(d[2])),i=r(d[3]);function u(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(u=function(t){return t?o:n})(t)}function c(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function f(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?c(Object(i),!0).forEach(function(o){(0,n.default)(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}var p=o.createContext(null);e.useBuildInfo=function(){return o.useContext(p)};var l={appName:'',appVersion:'',appIcon:'',sdkVersion:'',runtimeVersion:''}},1104,[6,32,166,184]);
|
|
1111
1111
|
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ToastStackProvider=function(t){var n=t.children,o=i.useRef((0,c.createAsyncStack)()).current,u=(0,c.useStackItems)(o);return(0,l.jsxs)(O.Provider,{value:{push:function(t,n){return o.push({element:t,toastProps:n})},pop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o.pop(t)},getItems:function(){return o.getState().items}},children:[n,(0,l.jsx)(s.Animated.View,{pointerEvents:"box-none",style:[s.StyleSheet.absoluteFill],children:u.map(function(t){return(0,l.jsx)(b,v({},t))})})]})},e.useToastStack=void 0;var n=t(r(d[1])),o=t(r(d[2])),u=r(d[3]),i=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=p(n);if(o&&o.has(t))return o.get(t);var u={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var c=i?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=t[s]}u.default=t,o&&o.set(t,u);return u})(r(d[4])),s=r(d[5]),c=r(d[6]),l=r(d[7]);function p(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(p=function(t){return t?o:n})(t)}function f(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);n&&(u=u.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,u)}return o}function v(t){for(var n=1;n<arguments.length;n++){var u=null!=arguments[n]?arguments[n]:{};n%2?f(Object(u),!0).forEach(function(n){(0,o.default)(t,n,u[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(u)):f(Object(u)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(u,n))})}return t}var y=100,O=i.createContext(null);function b(t){var o=t.status,c=t.data,p=t.onPopEnd,f=t.onPushEnd,O=t.pop,b=t.animatedValue,j=c.toastProps,h=c.element,P=(0,s.useWindowDimensions)().height,w=i.useState(null),S=(0,n.default)(w,2),x=S[0],k=S[1],D=i.useRef(null);i.useEffect(function(){return'pushing'===o&&s.Animated.spring(b,{toValue:1,useNativeDriver:!0}).start(f),'popping'===o&&s.Animated.spring(b,{toValue:2,useNativeDriver:!0}).start(function(){p(),null!=D.current&&(clearTimeout(D.current),D.current=null)}),'settled'===o&&(D.current=setTimeout(function(){O(),D.current=null},(null==j?void 0:j.durationMs)||2e3)),function(){null!=D.current&&clearTimeout(D.current)}},[o,O,null==j?void 0:j.durationMs]);var E=y;null!=x&&(E+=x.height);var M=b.interpolate({inputRange:[0,1,2],outputRange:[P,P-E,P-E]}),R=b.interpolate({inputRange:[0,1,2],outputRange:[1,1,0]}),T='popping'===o||'popped'===o;return(0,l.jsx)(s.Animated.View,{onLayout:function(t){var n=t.nativeEvent.layout;return k(n)},pointerEvents:T?'none':'box-none',style:[{position:'absolute',left:0,right:0,opacity:R,transform:[{translateY:M}]}],children:(0,l.jsx)(u.Button.ScaleOnPressContainer,{onPress:O,children:(0,l.jsx)(h,v({},t))})})}e.useToastStack=function(){return i.useContext(O)}},1105,[6,43,32,612,166,2,1106,184]);
|
|
1112
1112
|
__d(function(g,r,_i2,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createAsyncStack=function(){var t=[],n={},u=0,o={},s={},f=[];function p(t){var u=n[t];if('pushing'===u.status){u.status='settled';var i=o[t];i&&(i(h(t)),delete o[t]),l('pushend',t)}return u}function c(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=[];if('string'==typeof u){var o=u,f=n[o];if(f){'pushing'===f.status&&p(o),f.status='popping';var c=new Promise(function(t){s[o]=t});f.promise=c,l('popstart',o),i.push(f)}return i}-1===u&&(u=t.length);for(var v=t.length-1,h=t.length-1;h>=0;h--){var y=t[h],b=n[y];if(b&&('settled'===b.status||'pushing'===b.status)){v=h;break}}for(var P=function(u){var o=t[u],f=n[o];if(f){'pushing'===f.status&&p(o),f.status='popping';var c=new Promise(function(t){s[o]=t});f.promise=c,l('popstart',o),i.push(f)}},w=v;w>v-u;w--)P(w);return i}function v(u){var i=n[u];t=t.filter(function(t){return t!==u});var o=s[u];return o&&(o(h(u)),delete s[u]),i.status='popped',l('popend',u),i}function l(t,n){f.forEach(function(u){var i=y(),o={key:n,action:t};u({state:i,event:o})})}function h(t){return n[t]}function y(){var u=t.map(function(t){return n[t]});return{items:u,lookup:n,getItemByKey:h}}return{push:function(s){var f=''+(u+=1);t.push(f);var h=new Promise(function(t){o[f]=t}),y={key:f,promise:h,data:s,status:'pushing',pop:function(){return c(""+f)},onPushEnd:function(){return p(f)},onPopEnd:function(){return v(f)},animatedValue:new i.Animated.Value(0)};s&&(y.data=s);return n[f]=y,l('pushstart',f),y},pop:c,subscribe:function(t){return f.push(t),function(){f=f.filter(function(n){return n!==t})}},getState:y}},e.useStackItems=function(t){var i=u.useState(t.getState().items),o=(0,n.default)(i,2),s=o[0],f=o[1];return u.useEffect(function(){var n=t.subscribe(function(t){var n=t.state;f(n.items)});return function(){return n()}},[]),s};var n=t(r(d[1])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=o(n);if(u&&u.has(t))return u.get(t);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var p=s?Object.getOwnPropertyDescriptor(t,f):null;p&&(p.get||p.set)?Object.defineProperty(i,f,p):i[f]=t[f]}i.default=t,u&&u.set(t,i);return i})(r(d[2])),i=r(d[3]);function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(o=function(t){return t?u:n})(t)}new i.Animated.Value(0)},1106,[6,43,166,2]);
|
|
@@ -1138,20 +1138,20 @@ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.B
|
|
|
1138
1138
|
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.LoadAppErrorModal=function(u){var f=u.message;return(0,o.jsx)(n.BaseModal,{title:"Error loading app",children:(0,o.jsx)(t.Text,{children:f})})};var t=r(d[0]),n=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=u(n);if(o&&o.has(t))return o.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var c=l?Object.getOwnPropertyDescriptor(t,p):null;c&&(c.get||c.set)?Object.defineProperty(f,p,c):f[p]=t[p]}f.default=t,o&&o.set(t,f)})(r(d[1])),r(d[2])),o=r(d[3]);function u(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(u=function(t){return t?o:n})(t)}},1132,[612,166,1131,184]);
|
|
1139
1139
|
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.CrashReportScreen=function(n){var x=n.route,j=o.useState(''),h=(0,s.default)(j,2),y=(h[0],h[1]),w=o.useState(''),v=(0,s.default)(w,2),O=v[0],V=v[1],b=(0,p.useBuildInfo)(),R=x.params,S=R.message,T=R.stack,P=R.timestamp,k=new Date(P).toUTCString(),C=o.useRef(null);o.useEffect(function(){return O&&(C.current=setTimeout(function(){V('')},3e3)),function(){clearTimeout(C.current)}},[O]);var _=Boolean(O);return(0,f.jsx)(c.ScrollView,{children:(0,f.jsxs)(l.View,{py:"medium",children:[(0,f.jsx)(l.View,{px:"small",children:(0,f.jsx)(l.Button.ScaleOnPressContainer,{onPress:function(){var n,s,l,o,c;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return n=b.runtimeVersion,s=b.sdkVersion,l=b.appName,o=b.appVersion,c=JSON.stringify({appName:l,timestamp:P,message:S,runtimeVersion:n,sdkVersion:s,appVersion:o,stack:T},null,2),y(''),V(c),p.next=6,t.default.awrap((0,u.copyToClipboardAsync)(c).catch(function(n){y(n.message),V('')}));case 6:case"end":return p.stop()}},null,null,null,Promise)},disabled:_,bg:"default",roundedTop:"large",roundedBottom:"large",children:(0,f.jsx)(l.Row,{px:"medium",py:"small",align:"center",children:(0,f.jsx)(l.Text,{color:"primary",size:"large",children:_?'Copied to clipboard!':'Tap to Copy Report'})})})}),(0,f.jsx)(l.Spacer.Vertical,{size:"large"}),(0,f.jsx)(l.Row,{px:"small",align:"center",children:(0,f.jsx)(l.Heading,{color:"secondary",children:"Occured:"})}),(0,f.jsx)(l.Row,{margin:"small",children:(0,f.jsx)(l.Text,{children:k})}),(0,f.jsxs)(l.View,{children:[(0,f.jsx)(l.Row,{px:"small",children:(0,f.jsx)(l.Heading,{color:"secondary",children:"Reason:"})}),(0,f.jsx)(l.Row,{margin:"small",children:(0,f.jsx)(l.Text,{children:S})})]}),(0,f.jsxs)(l.View,{children:[(0,f.jsx)(l.Row,{px:"small",children:(0,f.jsx)(l.Heading,{color:"secondary",children:"Stack trace:"})}),(0,f.jsx)(l.Row,{px:"small",children:(0,f.jsx)(l.Text,{style:{fontSize:8},children:T})})]})]})})};var t=n(r(d[1])),s=n(r(d[2])),l=r(d[3]),o=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=x(t);if(s&&s.has(n))return s.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=o?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=n[c]}l.default=n,s&&s.set(n,l);return l})(r(d[4])),c=r(d[5]),u=r(d[6]),p=r(d[7]),f=r(d[8]);function x(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(x=function(n){return n?s:t})(n)}},1133,[6,69,43,612,166,2,1005,1104,184]);
|
|
1140
1140
|
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsStack=function(){return(0,s.jsxs)(p.Navigator,{headerMode:"float",children:[(0,s.jsx)(p.Screen,{name:"Extensions",component:o.ExtensionsScreen,options:{headerShown:!1}}),(0,s.jsx)(p.Screen,{name:"Branches",options:{headerTitle:'EAS Update'},component:t.BranchesScreen}),(0,s.jsx)(p.Screen,{name:"Updates",options:{headerTitle:'Branch'},component:c.UpdatesScreen})]})};var n=r(d[0]),t=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),p=(0,n.createStackNavigator)()},1134,[545,1135,1145,1148,184]);
|
|
1141
|
-
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.BranchesScreen=function(
|
|
1141
|
+
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.BranchesScreen=function(j){var w=j.navigation,y=(0,h.useUpdatesConfig)().appId,B=(0,p.useUser)().isAuthenticated,P=(0,f.useBranchesForApp)(y,B),V=P.data,L=P.emptyBranches,z=P.incompatibleBranches,O=P.isLoading,M=P.isRefreshing,R=P.isFetchingNextPage,S=P.fetchNextPage,F=P.hasNextPage,U=P.refetch,E=(0,u.useOnUpdatePress)(),I=E.loadingUpdateId,T=E.onUpdatePress;return(0,x.jsx)(n.View,{flex:"1",px:"medium",children:(0,x.jsx)(o.FlatList,{isLoading:O,isRefreshing:M,onRefresh:function(){return U()},ListHeaderComponent:function(){if(V.length>0)return(0,x.jsx)(n.View,{py:"small",px:"small",children:(0,x.jsx)(n.Heading,{size:"small",color:"secondary",children:"Branches"})});return null},extraData:{length:V.length,hasNextPage:F,loadingUpdateId:I},data:V,ItemSeparatorComponent:n.Divider,renderItem:function(n){var t,l=n.index,o=n.item,c=0===l,u=l===(null==V?void 0:V.length)-1,h=I===(null==(t=o.updates[0])?void 0:t.id);return(0,x.jsx)(s.EASBranchRow,{branch:o,isFirst:c,isLast:u,isLoading:h,navigation:w,onUpdatePress:T})},keyExtractor:function(n){return null==n?void 0:n.id},ListFooterComponent:function(){var s=(0,c.getRecentRuntime)(z);return(0,x.jsxs)(n.View,{children:[V.length>0&&F&&(0,x.jsx)(n.View,{align:"centered",mt:"small",children:(0,x.jsx)(t.BasicButton,{label:"Load More",size:"small",isLoading:R,onPress:function(){return S()}})}),(0,x.jsx)(v,{branches:L,navigation:w}),0===V.length&&F&&(0,x.jsx)(n.View,{align:"centered",mt:"small",children:(0,x.jsx)(t.BasicButton,{label:"Load More",size:"small",isLoading:R,onPress:function(){return S()}})}),z.length>0&&(0,x.jsxs)(n.View,{px:"small",mt:"medium",children:[(0,x.jsx)(n.Text,{size:"small",color:"secondary",children:b(z.length)}),Boolean(null!=s)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n.Spacer.Vertical,{size:"small"}),(0,x.jsx)(n.Text,{size:"small",color:"secondary",children:"A recent update was published with runtime version \""+s+"\"."})]})]})]})},ListEmptyComponent:function(){if(0===L.length)return(0,x.jsxs)(n.View,{children:[(0,x.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,x.jsx)(l.EmptyBranchesMessage,{branches:V,incompatibleBranches:z})]});return null}})})},e.getIncompatibleBranchMessage=b;var n=r(d[0]),t=((function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=j(t);if(s&&s.has(n))return s.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=o?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=n[c]}l.default=n,s&&s.set(n,l)})(r(d[1])),r(d[2])),s=r(d[3]),l=r(d[4]),o=r(d[5]),c=r(d[6]),u=r(d[7]),h=r(d[8]),p=r(d[9]),f=r(d[10]),x=r(d[11]);function j(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(j=function(n){return n?s:t})(n)}function v(t){var l=t.branches,o=t.navigation;return 0===l.length?null:(0,x.jsxs)(n.View,{children:[(0,x.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,x.jsx)(n.View,{py:"small",px:"small",children:(0,x.jsx)(n.Heading,{size:"small",color:"secondary",children:"Recently created branches"})}),l.slice(0,3).map(function(t,l,c){var u=0===l,h=l===(null==c?void 0:c.length)-1;return(0,x.jsxs)(n.View,{children:[(0,x.jsx)(s.EASEmptyBranchRow,{branch:t,isFirst:u,isLast:h,navigation:o}),!h&&(0,x.jsx)(n.Divider,{})]},t.id)}),(0,x.jsx)(n.Spacer.Vertical,{size:"small"})]})}function b(n){return 1===n?"There is 1 branch that is not compatible with this development build. To preview it, download or build a development client that matches its runtime version.":"There are "+n+" branches that are not compatible with this development build. To preview them, download or build a development client that matches their runtime version."}},1135,[612,166,1136,1138,1140,1142,1141,1144,1108,1119,1048,184]);
|
|
1142
1142
|
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.BasicButton=function(t){var n=t.label,p=t.type,f=void 0===p?'tertiary':p,O=t.size,b=void 0===O?'medium':O,h=t.children,w=t.isLoading,v=(0,i.default)(t,u);return(0,s.jsx)(o.View,{align:"start",children:(0,s.jsxs)(o.View,{children:[(0,s.jsx)(o.View,{opacity:w?'0.5':'1',children:(0,s.jsx)(o.Button.ScaleOnPressContainer,y(y({bg:f},v),{},{children:(0,s.jsx)(o.View,y(y({},j[b]),{},{children:(0,s.jsxs)(o.Row,{align:"center",style:{minHeight:o.scale.large},children:[(0,s.jsx)(o.Button.Text,{weight:"medium",color:f,size:b,children:n}),h]})}))}))}),w&&(0,s.jsx)(o.View,{style:y(y({},c.StyleSheet.absoluteFillObject),{},{justifyContent:'center',alignItems:'center'}),children:(0,s.jsx)(l.ActivityIndicator,{size:"small"})})]})})};var n=t(r(d[1])),i=t(r(d[2])),o=r(d[3]),c=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=p(n);if(i&&i.has(t))return i.get(t);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var s=c?Object.getOwnPropertyDescriptor(t,l):null;s&&(s.get||s.set)?Object.defineProperty(o,l,s):o[l]=t[l]}o.default=t,i&&i.set(t,o)})(r(d[4])),r(d[5])),l=r(d[6]),s=r(d[7]),u=["label","type","size","children","isLoading"];function p(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,i=new WeakMap;return(p=function(t){return t?i:n})(t)}function f(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),i.push.apply(i,o)}return i}function y(t){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?f(Object(o),!0).forEach(function(i){(0,n.default)(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}var j={medium:{px:'3',py:'2'},small:{px:'2',py:'1'}}},1136,[6,32,99,612,166,2,1137,184]);
|
|
1143
1143
|
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ActivityIndicator=function(t){var n=i.useRef(new u.Animated.Value(0));i.useEffect(function(){u.Animated.loop(u.Animated.sequence([u.Animated.timing(n.current,{toValue:1,duration:1e3,easing:u.Easing.linear,useNativeDriver:!0})])).start()},[]);var f=n.current.interpolate({inputRange:[0,1],outputRange:['0deg','360deg']});return(0,c.jsx)(u.Animated.View,{style:{position:'absolute',transform:[{rotateZ:f}]},children:(0,c.jsx)(o.LoadingIndicatorIcon,s({},t))})};var n=t(r(d[1])),o=r(d[2]),i=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=f(n);if(o&&o.has(t))return o.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=u?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(i,c,p):i[c]=t[c]}i.default=t,o&&o.set(t,i);return i})(r(d[3])),u=r(d[4]),c=r(d[5]);function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(f=function(t){return t?o:n})(t)}function p(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function s(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?p(Object(i),!0).forEach(function(o){(0,n.default)(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}},1137,[6,32,612,166,2,184]);
|
|
1144
|
-
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EASBranchRow=function(n){var
|
|
1144
|
+
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EASBranchRow=function(n){var j=n.branch,h=n.isFirst,f=n.isLast,z=n.isLoading,y=n.onUpdatePress,w=n.navigation,V=p(z),b=(0,s.useExpoPalette)(),v=(0,l.useUpdatesConfig)().runtimeVersion,S=j.name,L=j.updates[0],R=(null==L?void 0:L.runtimeVersion)===v;return(0,u.jsxs)(t.Animated.View,{style:V,children:[(0,u.jsxs)(x.ListButton,{isFirst:h,isLast:f,onPress:function(){w.navigate('Updates',{branchName:j.name})},children:[(0,u.jsxs)(s.Row,{align:"center",children:[(0,u.jsxs)(s.Row,{shrink:"1",style:{backgroundColor:b.blue[100]},py:"tiny",px:"1.5",rounded:"medium",align:"center",children:[(0,u.jsx)(s.BranchIcon,{style:{maxHeight:10,maxWidth:12,resizeMode:'contain'},resizeMethod:"scale"}),(0,u.jsx)(s.Spacer.Horizontal,{size:"tiny"}),(0,u.jsx)(s.View,{shrink:"1",children:(0,u.jsx)(s.Text,{size:"small",numberOfLines:1,children:"Branch: "+S})})]}),(0,u.jsx)(s.Spacer.Horizontal,{}),(0,u.jsx)(s.View,{style:{paddingLeft:s.scale.small},children:(0,u.jsx)(s.ChevronRightIcon,{})})]}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"}),null!=L&&(0,u.jsxs)(s.Row,{children:[(0,u.jsxs)(s.View,{children:[(0,u.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,u.jsx)(s.UpdateIcon,{})]}),(0,u.jsx)(s.Spacer.Horizontal,{size:"small"}),(0,u.jsxs)(s.View,{flex:"1",shrink:"1",children:[(0,u.jsx)(s.Heading,{size:"small",numberOfLines:1,children:"Update \""+L.message+"\""}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,u.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,u.jsx)(s.Text,{size:"small",color:"secondary",children:"Published "+(null==L?void 0:L.createdAt)})]}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"}),(0,u.jsx)(s.View,{align:"centered",opacity:R?'1':'0.5',children:(0,u.jsx)(o.BasicButton,{label:"Open",size:"small",onPress:function(){return y(L)}})})]}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"})]}),z&&(0,u.jsx)(s.View,{inset:"full",align:"centered",children:(0,u.jsx)(c.ActivityIndicator,{})})]})},e.EASEmptyBranchRow=function(n){var t=n.branch,l=n.isFirst,c=n.isLast,o=n.navigation,j=(0,s.useExpoPalette)(),p=t.name;return(0,u.jsx)(x.ListButton,{isFirst:l,isLast:c,onPress:function(){o.navigate('Updates',{branchName:t.name})},children:(0,u.jsxs)(s.View,{children:[(0,u.jsxs)(s.Row,{align:"center",children:[(0,u.jsxs)(s.Row,{shrink:"1",style:{backgroundColor:j.blue[100]},py:"tiny",px:"1.5",rounded:"medium",align:"center",children:[(0,u.jsx)(s.BranchIcon,{style:{maxHeight:10,maxWidth:12,resizeMode:'contain'},resizeMethod:"scale"}),(0,u.jsx)(s.Spacer.Horizontal,{size:"tiny"}),(0,u.jsx)(s.View,{shrink:"1",children:(0,u.jsx)(s.Text,{size:"small",numberOfLines:1,children:"Branch: "+p})})]}),(0,u.jsx)(s.Spacer.Horizontal,{}),(0,u.jsx)(s.View,{style:{paddingLeft:s.scale.small},children:(0,u.jsx)(s.ChevronRightIcon,{})})]}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"}),(0,u.jsxs)(s.Row,{children:[(0,u.jsxs)(s.View,{flex:"1",shrink:"1",children:[(0,u.jsx)(s.Heading,{size:"small",numberOfLines:1,color:"secondary",children:"No updates available."}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,u.jsx)(s.Spacer.Vertical,{size:"tiny"})]}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"})]})]})})},e.EASUpdateRow=function(n){var l=n.update,o=n.isFirst,j=n.isLast,h=n.isLoading,f=n.onPress,z=p(h);return(0,u.jsxs)(t.Animated.View,{style:z,children:[(0,u.jsx)(x.ListButton,{disabled:h,isFirst:o,isLast:j,onPress:f,children:(0,u.jsxs)(s.View,{children:[(0,u.jsx)(s.View,{style:{position:'absolute',right:0,top:s.scale.tiny},children:(0,u.jsx)(s.ChevronRightIcon,{})}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"}),(0,u.jsxs)(s.Row,{children:[(0,u.jsxs)(s.View,{children:[(0,u.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,u.jsx)(s.UpdateIcon,{})]}),(0,u.jsx)(s.Spacer.Horizontal,{size:"small"}),(0,u.jsxs)(s.View,{flex:"1",shrink:"1",children:[(0,u.jsx)(s.Heading,{size:"small",numberOfLines:1,children:"Update \""+l.message+"\""}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"}),(0,u.jsx)(s.Spacer.Vertical,{size:"tiny"}),(0,u.jsx)(s.Text,{size:"small",color:"secondary",children:"Published "+l.createdAt})]}),(0,u.jsx)(s.Spacer.Horizontal,{size:"large"})]}),(0,u.jsx)(s.Spacer.Vertical,{size:"small"})]})}),h&&(0,u.jsx)(s.View,{inset:"full",align:"centered",children:(0,u.jsx)(c.ActivityIndicator,{})})]})};var s=r(d[0]),n=(function(s,n){if(!n&&s&&s.__esModule)return s;if(null===s||"object"!=typeof s&&"function"!=typeof s)return{default:s};var t=j(n);if(t&&t.has(s))return t.get(s);var l={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in s)if("default"!==o&&Object.prototype.hasOwnProperty.call(s,o)){var x=c?Object.getOwnPropertyDescriptor(s,o):null;x&&(x.get||x.set)?Object.defineProperty(l,o,x):l[o]=s[o]}l.default=s,t&&t.set(s,l);return l})(r(d[1])),t=r(d[2]),l=r(d[3]),c=r(d[4]),o=r(d[5]),x=r(d[6]),u=r(d[7]);function j(s){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(j=function(s){return s?t:n})(s)}function p(){var s=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=n.useRef(new t.Animated.Value(0)).current;return n.useEffect(function(){t.Animated.spring(l,{toValue:s?1:0,useNativeDriver:!0}).start()},[s]),{opacity:l.interpolate({inputRange:[0,1],outputRange:[1,.7]}),transform:[{scale:l.interpolate({inputRange:[0,1],outputRange:[1,.975]})}]}}},1138,[612,166,2,1108,1137,1136,1139,184]);
|
|
1145
1145
|
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ListButton=function(t){var n=t.children,s=t.onPress,l=t.isFirst,p=t.isLast,O=(0,o.default)(t,u);return(0,c.jsx)(i.Button.ScaleOnPressContainer,f(f({bg:"default",onPress:s,roundedBottom:p?'large':'none',roundedTop:l?'large':'none'},O),{},{children:(0,c.jsx)(i.View,{bg:"default",roundedTop:l?'large':'none',roundedBottom:p?'large':'none',py:"small",px:"small",children:n})}))};var n=t(r(d[1])),o=t(r(d[2])),i=r(d[3]),c=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=s(n);if(o&&o.has(t))return o.get(t);var i={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var l=c?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(i,u,l):i[u]=t[u]}i.default=t,o&&o.set(t,i)})(r(d[4])),r(d[5])),u=["children","onPress","isFirst","isLast"];function s(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(s=function(t){return t?o:n})(t)}function l(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function f(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?l(Object(i),!0).forEach(function(o){(0,n.default)(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}},1139,[6,32,99,612,166,184]);
|
|
1146
1146
|
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyBranchesMessage=function(h){var x=h.branches,j=void 0===x?[]:x,b=h.incompatibleBranches,w=void 0===b?[]:b,y=(0,c.useUpdatesConfig)().runtimeVersion,v=(0,o.useBuildInfo)().appName,V=(0,u.useUser)().selectedAccount;if(0===j.length&&w.length>0){var O=(0,l.getRecentRuntime)(w);return(0,p.jsx)(t.View,{padding:"medium",rounded:"large",bg:"default",children:(0,p.jsxs)(t.View,{children:[(0,p.jsx)(t.Heading,{children:"There are no branches compatible with this development build."}),(0,p.jsx)(t.Spacer.Vertical,{size:"small"}),(0,p.jsx)(t.Text,{color:"secondary",size:"small",children:f(w.length)}),(0,p.jsx)(t.Spacer.Vertical,{size:"small"}),(0,p.jsx)(t.Text,{color:"secondary",size:"small",children:"The runtime version of this development build is \""+y+"\"."}),(0,p.jsx)(t.Spacer.Vertical,{size:"small"}),(0,p.jsx)(t.Text,{color:"secondary",size:"small",children:Boolean(null!=O)&&"A recent update was published with the runtime version \""+O+"\"."}),(0,p.jsx)(t.Spacer.Vertical,{size:"large"}),(0,p.jsx)(t.View,{align:"centered",children:(0,p.jsx)(t.Button.ScaleOnPressContainer,{bg:"tertiary",onPress:function(){return n.Linking.openURL(s.websiteOrigin+"/accounts/"+V.name+"/projects/"+v+"/builds")},children:(0,p.jsx)(t.View,{px:"2.5",py:"2",children:(0,p.jsx)(t.Button.Text,{weight:"medium",color:"tertiary",children:"See Development Builds"})})})})]})})}return(0,p.jsx)(t.View,{padding:"medium",rounded:"large",bg:"default",children:(0,p.jsx)(t.View,{children:(0,p.jsxs)(t.View,{children:[(0,p.jsx)(t.Heading,{children:"This app has no published updates yet."}),(0,p.jsx)(t.Spacer.Vertical,{size:"small"}),(0,p.jsx)(t.Spacer.Vertical,{size:"small"}),(0,p.jsx)(t.Text,{color:"secondary",size:"small",children:"Updates allow you to deliver code directly to your users."}),(0,p.jsx)(t.View,{py:"medium",align:"centered",children:(0,p.jsx)(t.Button.ScaleOnPressContainer,{bg:"tertiary",onPress:function(){return n.Linking.openURL("https://docs.expo.dev/eas-update/how-eas-update-works/")},children:(0,p.jsx)(t.View,{px:"2.5",py:"2",children:(0,p.jsx)(t.Button.Text,{weight:"medium",color:"tertiary",children:"Publish an update"})})})})]})})})},e.getCompatibleBranchMessage=f;var t=r(d[0]),n=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var s=h(n);if(s&&s.has(t))return s.get(t);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var u=o?Object.getOwnPropertyDescriptor(t,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=t[c]}l.default=t,s&&s.set(t,l)})(r(d[1])),r(d[2])),s=r(d[3]),l=r(d[4]),o=r(d[5]),c=r(d[6]),u=r(d[7]),p=r(d[8]);function h(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,s=new WeakMap;return(h=function(t){return t?s:n})(t)}function f(t){return 1===t?"However, there is a branch that is compatible with a different runtime version. You may need to publish a new update or install a new development build.":"However, there are "+t+" branches that are compatible with a different runtime version. You may need to publish a new update or install a new development build."}},1140,[612,166,2,1101,1141,1104,1108,1119,184]);
|
|
1147
1147
|
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getRecentRuntime=function(n){var t,u,l=n.find(function(n){return n.updates.length>0});return null!=(t=null==l?void 0:null==(u=l.updates)?void 0:u[0].runtimeVersion)?t:''}},1141,[]);
|
|
1148
1148
|
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.FlatList=function(t){var n=t.isLoading,s=t.isRefreshing,p=t.onRefresh,y=(0,o.default)(t,u),b=(0,f.useThrottle)(s,800);if(n)return(0,l.jsx)(j,{});return(0,l.jsx)(i.View,{flex:"1",children:(0,l.jsx)(c.FlatList,O({style:{flex:1},refreshing:b,showsVerticalScrollIndicator:!1,contentContainerStyle:{paddingBottom:i.scale[24]},refreshControl:(0,l.jsx)(c.RefreshControl,{style:{opacity:1},refreshing:b,onRefresh:p})},y))})},e.FlatListLoader=j;var n=t(r(d[1])),o=t(r(d[2])),i=r(d[3]),c=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=p(n);if(o&&o.has(t))return o.get(t);var i={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=c?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(i,f,s):i[f]=t[f]}i.default=t,o&&o.set(t,i)})(r(d[4])),r(d[5])),f=r(d[6]),s=r(d[7]),l=r(d[8]),u=["isLoading","isRefreshing","onRefresh"];function p(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(p=function(t){return t?o:n})(t)}function y(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function O(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?y(Object(i),!0).forEach(function(o){(0,n.default)(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function j(){return(0,l.jsx)(i.View,{margin:"medium",height:"44",align:"centered",bg:"default",rounded:"large",children:(0,l.jsx)(s.ActivityIndicator,{})})}},1142,[6,32,99,612,166,2,1143,1137,184]);
|
|
1149
|
-
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useDebounce=function(t,o){var f=u.useState(t),c=(0,n.default)(f,2),l=c[0],s=c[1];return u.useEffect(function(){var n=setTimeout(function(){s(t)},o);return function(){clearTimeout(n)}},[t,o]),l},e.useThrottle=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,f=u.useState(t),c=(0,n.default)(f,2),l=c[0],s=c[1],p=u.useRef(Date.now());return u.useEffect(function(){if(!(Date.now()>=p.current+o)){var n=setTimeout(function(){p.current=Date.now(),s(t)},o);return function(){return clearTimeout(n)}}p.current=Date.now(),s(t)},[t,o]),l};var n=t(r(d[1])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=o(n);if(u&&u.has(t))return u.get(t);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var s=c?Object.getOwnPropertyDescriptor(t,l):null;s&&(s.get||s.set)?Object.defineProperty(f,l,s):f[l]=t[l]}f.default=t,u&&u.set(t,f);return f})(r(d[2]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(o=function(t){return t?u:n})(t)}},1143,[6,43,166]);
|
|
1149
|
+
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useDebounce=function(t,o){var f=u.useState(t),c=(0,n.default)(f,2),l=c[0],s=c[1];return u.useEffect(function(){var n=setTimeout(function(){s(t)},o);return function(){clearTimeout(n)}},[t,o]),l},e.useThrottle=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,f=u.useState(t),c=(0,n.default)(f,2),l=c[0],s=c[1],p=u.useRef(Date.now()-o);return u.useEffect(function(){if(!(Date.now()>=p.current+o)){var n=setTimeout(function(){p.current=Date.now(),s(t)},o);return function(){return clearTimeout(n)}}p.current=Date.now(),s(t)},[t,o]),l};var n=t(r(d[1])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=o(n);if(u&&u.has(t))return u.get(t);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var s=c?Object.getOwnPropertyDescriptor(t,l):null;s&&(s.get||s.set)?Object.defineProperty(f,l,s):f[l]=t[l]}f.default=t,u&&u.set(t,f);return f})(r(d[2]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(o=function(t){return t?u:n})(t)}},1143,[6,43,166]);
|
|
1150
1150
|
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useOnUpdatePress=function(){var t=(0,s.useToastStack)(),l=(0,f.useUpdatesConfig)(),p=l.runtimeVersion,h=l.updatesUrl,v=u.useState(''),y=(0,n.default)(v,2),b=y[0],O=y[1],j=u.useCallback(function(n){var u=n.runtimeVersion===p;u?(O(n.id),(0,o.loadUpdate)(n.manifestPermalink,h).catch(function(n){O(''),t.push(function(){return(0,c.jsx)(i.Toasts.Error,{children:n.message})},{durationMs:1e4})}).then(function(){return O('')})):0===t.getItems().filter(function(t){return'pushing'===t.status||'settled'===t.status}).length&&t.push(function(){return(0,c.jsx)(i.Toasts.Warning,{children:"To run this update, you need a compatible development build with runtime version "+n.runtimeVersion+"."})},{durationMs:1e4})},[p,h,t]);return{loadingUpdateId:b,onUpdatePress:j}};var n=t(r(d[1])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=l(n);if(u&&u.has(t))return u.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var f=o?Object.getOwnPropertyDescriptor(t,s):null;f&&(f.get||f.set)?Object.defineProperty(i,s,f):i[s]=t[s]}i.default=t,u&&u.set(t,i);return i})(r(d[2])),i=r(d[3]),o=r(d[4]),s=r(d[5]),f=r(d[6]),c=r(d[7]);function l(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(l=function(t){return t?u:n})(t)}},1144,[6,43,166,1103,1005,1105,1108,184]);
|
|
1151
|
-
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsScreen=function(
|
|
1152
|
-
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.AppHeader=function(u){var c,f=u.navigation,p=(0,t.useBuildInfo)(),
|
|
1151
|
+
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsScreen=function(c){var u=c.navigation,x=(0,f.useUser)().isAuthenticated,p=(0,f.useUserActions)(),b=(0,j.useUpdatesConfig)(),V=b.usesEASUpdates,S=b.appId,z=(0,y.useBranchesForApp)(S,x),L=z.isLoading,B=z.error,P=z.data,U=z.emptyBranches,R=z.incompatibleBranches,E=z.isRefreshing,T=z.refetch,O=(0,h.useThrottle)(E,1e3);var A=[],k=null!=B&&!L;V&&!k&&A.push('EASUpdates');return(0,w.jsxs)(n.View,{children:[(0,w.jsx)(o.AppHeader,{navigation:u}),(0,w.jsx)(t.ScrollView,{contentContainerStyle:{paddingBottom:n.scale[48]},refreshControl:null!=S?(0,w.jsx)(s.RefreshControl,{refreshing:O,onRefresh:function(){return T()}}):null,children:(0,w.jsxs)(n.View,{flex:"1",children:[0===A.length&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,w.jsxs)(n.View,{bg:"default",mx:"medium",py:"medium",px:"medium",rounded:"medium",children:[(0,w.jsx)(n.View,{align:"centered",children:(0,w.jsx)(n.ExtensionsIcon,{})}),(0,w.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,w.jsxs)(n.View,{px:"small",children:[(0,w.jsxs)(n.Text,{size:"small",align:"center",children:["Extensions allow you to customize your development build with additional capabilities.",' ',(0,w.jsx)(n.Text,{size:"small",style:{textDecorationLine:'underline'},onPress:function(){return s.Linking.openURL("https://docs.expo.dev/development/extensions/")},accessibilityRole:"link",children:"Learn more."})]}),(0,w.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,w.jsxs)(n.Text,{size:"small",align:"center",children:["If you would like to extend the display on this screen",' ',(0,w.jsx)(n.Text,{size:"small",style:{textDecorationLine:'underline'},onPress:function(){return s.Linking.openURL("https://expo.canny.io/feature-requests")},accessibilityRole:"link",children:"let us know about your use case"})]})]})]})]}),V&&x&&!k&&(0,w.jsxs)(n.View,{children:[(0,w.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,w.jsx)(v,{navigation:u,isLoading:L,branches:P,emptyBranches:U,incompatibleBranches:R}),(0,w.jsx)(n.Spacer.Vertical,{size:"medium"})]}),V&&!x&&(0,w.jsxs)(n.View,{children:[(0,w.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,w.jsxs)(n.View,{mx:"medium",padding:"medium",bg:"default",rounded:"large",children:[(0,w.jsx)(n.Text,{color:"secondary",size:"small",children:"Log in or create an account to get started with Extensions"}),(0,w.jsx)(n.Spacer.Vertical,{size:"large"}),(0,w.jsxs)(n.View,{children:[(0,w.jsx)(n.Button.ScaleOnPressContainer,{bg:"tertiary",rounded:"medium",onPress:function(){p.login('login')},accessibilityLabel:"Log in",children:(0,w.jsx)(n.View,{py:"small",children:(0,w.jsx)(n.Button.Text,{color:"tertiary",weight:"semibold",align:"center",children:"Log In"})})}),(0,w.jsx)(n.Spacer.Vertical,{size:"small"}),(0,w.jsx)(n.Button.ScaleOnPressContainer,{bg:"secondary",rounded:"medium",onPress:function(){p.login('signup')},accessibilityLabel:"Sign Up",children:(0,w.jsx)(n.View,{py:"small",children:(0,w.jsx)(n.Button.Text,{color:"secondary",weight:"semibold",align:"center",children:"Sign Up"})})})]})]}),(0,w.jsx)(n.Spacer.Vertical,{size:"medium"})]}),A.length>0&&(0,w.jsx)(n.View,{px:"xl",children:(0,w.jsxs)(n.Text,{size:"small",color:"secondary",children:["Extensions allow you to customize your development build with additional capabilities.",' ',(0,w.jsx)(n.Text,{size:"small",style:{textDecorationLine:'underline'},onPress:function(){return s.Linking.openURL("https://docs.expo.dev/development/extensions/")},accessibilityRole:"link",children:"Learn more."})]})}),L&&x&&(0,w.jsx)(n.View,{mt:"medium",inset:"full",align:"centered",mx:"medium",rounded:"large",bg:"default",children:(0,w.jsx)(l.ActivityIndicator,{})})]})})]})};var n=r(d[0]),s=((function(n,s){if(!s&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=b(s);if(t&&t.has(n))return t.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=o?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=n[c]}l.default=n,t&&t.set(n,l)})(r(d[1])),r(d[2])),t=r(d[3]),l=r(d[4]),o=r(d[5]),c=r(d[6]),u=r(d[7]),x=r(d[8]),h=r(d[9]),p=r(d[10]),j=r(d[11]),f=r(d[12]),y=r(d[13]),w=r(d[14]);function b(n){if("function"!=typeof WeakMap)return null;var s=new WeakMap,t=new WeakMap;return(b=function(n){return n?t:s})(n)}function v(s){var t=s.navigation,l=(s.isLoading,s.branches),o=s.emptyBranches,h=s.incompatibleBranches,j=(0,p.useOnUpdatePress)(),f=j.loadingUpdateId,y=j.onUpdatePress;function b(){t.navigate('Branches')}var v=l.length+o.length;return 0===l.length&&o.length>0?(0,w.jsxs)(n.View,{mx:"medium",children:[(0,w.jsx)(n.View,{py:"small",px:"small",children:(0,w.jsx)(n.Heading,{size:"small",color:"secondary",children:"EAS Update"})}),o.slice(0,3).map(function(s,l,o){var u=0===l,x=l===(null==o?void 0:o.length)-1;return(0,w.jsxs)(n.View,{children:[(0,w.jsx)(c.EASEmptyBranchRow,{branch:s,isFirst:u,isLast:x,navigation:t}),!x&&(0,w.jsx)(n.Divider,{})]},s.id)}),o.length>1&&(0,w.jsx)(n.Button.ScaleOnPressContainer,{onPress:b,bg:"default",roundedTop:"none",roundedBottom:"large",children:(0,w.jsx)(n.View,{bg:"default",py:"small",px:"small",roundedTop:"none",roundedBottom:"large",children:(0,w.jsxs)(n.Row,{children:[(0,w.jsx)(n.Text,{size:"medium",children:"See all branches"}),(0,w.jsx)(n.Spacer.Horizontal,{}),(0,w.jsx)(n.ChevronRightIcon,{})]})})})]}):0===l.length?(0,w.jsxs)(n.View,{mx:"medium",children:[(0,w.jsx)(n.View,{px:"small",children:(0,w.jsx)(n.Heading,{size:"small",color:"secondary",children:"EAS Updates"})}),(0,w.jsx)(n.Spacer.Vertical,{size:"small"}),(0,w.jsx)(u.EmptyBranchesMessage,{branches:l,incompatibleBranches:h})]}):(0,w.jsx)(n.View,{children:(0,w.jsxs)(n.View,{mx:"medium",children:[(0,w.jsx)(n.View,{py:"small",px:"small",children:(0,w.jsx)(n.Heading,{size:"small",color:"secondary",children:"EAS Updates"})}),null==l?void 0:l.slice(0,2).map(function(s,l,o){var u,x=0===l,h=l===o.length-1&&v<=1,p=(null==(u=s.updates[0])?void 0:u.id)===f;return(0,w.jsxs)(n.View,{children:[(0,w.jsx)(c.EASBranchRow,{branch:s,isFirst:x,isLast:h,navigation:t,isLoading:p,onUpdatePress:y}),(0,w.jsx)(n.Divider,{})]},s.name)}),v>1&&(0,w.jsx)(x.ListButton,{onPress:b,isLast:!0,children:(0,w.jsxs)(n.Row,{children:[(0,w.jsx)(n.Text,{size:"medium",children:"See all branches"}),(0,w.jsx)(n.Spacer.Horizontal,{}),(0,w.jsx)(n.ChevronRightIcon,{})]})})]})})}},1145,[612,166,2,556,1137,1146,1138,1140,1139,1143,1144,1108,1119,1048,184]);
|
|
1152
|
+
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.AppHeader=function(u){var c,f=u.navigation,p=(0,t.useBuildInfo)(),x=p.appName,j=p.appIcon,h=(0,s.useUser)(),w=h.userData,b=h.selectedAccount,v=null!=w,y=null==b?void 0:null==(c=b.owner)?void 0:c.profilePhoto;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(n.View,{bg:"default",pt:"small",pb:"small",children:[(0,o.jsx)(l.SafeAreaTop,{}),(0,o.jsxs)(n.Row,{align:"center",children:[(0,o.jsx)(n.Spacer.Horizontal,{size:"medium"}),(0,o.jsx)(n.View,{flex:"1",shrink:"1",children:(0,o.jsxs)(n.Row,{align:"center",children:[(0,o.jsx)(n.View,{height:"xl",width:"xl",rounded:"large",bg:"secondary",children:Boolean(j)&&(0,o.jsx)(n.Image,{size:"xl",rounded:"large",source:{uri:j}})}),(0,o.jsx)(n.Spacer.Horizontal,{size:"small"}),(0,o.jsxs)(n.View,{flex:"1",children:[(0,o.jsx)(n.Heading,{weight:"semibold",numberOfLines:1,children:x}),(0,o.jsx)(n.Text,{size:"small",color:"secondary",children:"Development Build"})]})]})}),(0,o.jsx)(n.View,{children:(0,o.jsx)(n.Button.ScaleOnPressContainer,{onPress:function(){f.navigate('User Profile')},minScale:.85,accessibilityLabel:"Navigate to User Profile",bg:"ghost",rounded:"full",children:(0,o.jsx)(n.View,{children:v?(0,o.jsx)(n.View,{rounded:"full",padding:"small",children:(0,o.jsx)(n.Image,{size:"xl",rounded:"full",source:{uri:y}})}):(0,o.jsx)(n.View,{mx:"small",children:(0,o.jsx)(n.View,{bg:"default",rounded:"full",padding:"tiny",children:(0,o.jsx)(n.UserIcon,{})})})})})})]})]}),(0,o.jsx)(n.Divider,{weight:"thin"})]})};var n=r(d[0]),l=((function(n,l){if(!l&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=u(l);if(t&&t.has(n))return t.get(n);var s={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var f=o?Object.getOwnPropertyDescriptor(n,c):null;f&&(f.get||f.set)?Object.defineProperty(s,c,f):s[c]=n[c]}s.default=n,t&&t.set(n,s)})(r(d[1])),r(d[2])),t=r(d[3]),s=r(d[4]),o=r(d[5]);function u(n){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(u=function(n){return n?t:l})(n)}},1146,[612,166,1147,1104,1119,184]);
|
|
1153
1153
|
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAreaTop=function(){var f=(0,n.useSafeAreaInsets)().top;return(0,o.jsx)(t.View,{style:{height:f}})};var t=r(d[0]),n=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=f(n);if(o&&o.has(t))return o.get(t);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=p?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=t[c]}u.default=t,o&&o.set(t,u)})(r(d[1])),r(d[2])),o=r(d[3]);function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(f=function(t){return t?o:n})(t)}},1147,[612,166,500,184]);
|
|
1154
|
-
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UpdatesScreen=function(n){var c=n.route,j=(0,f.useUpdatesConfig)().runtimeVersion,V=c.params.branchName,v=
|
|
1154
|
+
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UpdatesScreen=function(n){var c=n.route,j=(0,f.useUpdatesConfig)().runtimeVersion,V=c.params.branchName,v=l.useState(!1),L=(0,t.default)(v,2),O=L[0],z=L[1],U=(0,w.useUpdatesForBranch)(V),C=U.data,R=U.isLoading,S=U.hasNextPage,k=U.fetchNextPage,B=U.refetch,F=U.isRefreshing,N=U.isFetchingNextPage;function T(){z(!0),k()}var A=(0,x.useOnUpdatePress)(),E=A.onUpdatePress,H=A.loadingUpdateId;return(0,y.jsxs)(s.View,{flex:"1",children:[(0,y.jsx)(b,{branchName:V,updates:C,onOpenPress:function(){return E(C[0])}}),(0,y.jsx)(p.FlatList,{isLoading:R,isRefreshing:F,onRefresh:function(){return B()},ListHeaderComponent:function(){if(0===C.length)return null;return(0,y.jsx)(s.View,{py:"small",px:"large",children:(0,y.jsx)(s.Heading,{size:"small",color:"secondary",children:"Updates"})})},data:C,extraData:{length:C.length,loadingUpdateId:H},renderItem:function(n){var t=n.index,l=n.item,o=0===t,c=t===C.length-1,u=l.runtimeVersion===j,p=l.id===H;return(0,y.jsxs)(s.View,{px:"medium",opacity:u?'1':'0.5',children:[(0,y.jsx)(h.EASUpdateRow,{update:l,isFirst:o,isLast:c,isLoading:p,onPress:function(){return E(l)}}),!c&&(0,y.jsx)(s.Divider,{})]})},keyExtractor:function(n){return n.id},ListFooterComponent:function(){if(S)return(0,y.jsx)(s.View,{align:"centered",mt:"large",children:(0,y.jsx)(u.BasicButton,{label:"Load More",isLoading:N,onPress:T,size:"small"})});if(C.length>0&&O)return(0,y.jsx)(P,{});return null},ListEmptyComponent:function(){return(0,y.jsx)(s.View,{mt:"large",mx:"medium",bg:"default",rounded:"large",padding:"medium",children:(0,y.jsxs)(s.View,{children:[(0,y.jsx)(s.Heading,{children:"There are no updates available for this branch."}),(0,y.jsx)(s.Spacer.Vertical,{size:"small"}),(0,y.jsx)(s.Text,{color:"secondary",size:"small",children:"Updates allow you to deliver code directly to your users."}),(0,y.jsx)(s.View,{py:"medium",align:"centered",children:(0,y.jsx)(s.Button.ScaleOnPressContainer,{bg:"tertiary",onPress:function(){o.Linking.openURL("https://docs.expo.dev/eas-update/how-eas-update-works/")},children:(0,y.jsx)(s.View,{px:"2.5",py:"2",children:(0,y.jsx)(s.Button.Text,{weight:"medium",color:"tertiary",children:"Publish an update"})})})})]})})}})]})};var t=n(r(d[1])),s=r(d[2]),l=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=V(t);if(s&&s.has(n))return s.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=o?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=n[c]}l.default=n,s&&s.set(n,l);return l})(r(d[3])),o=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),p=r(d[8]),x=r(d[9]),f=r(d[10]),j=r(d[11]),w=r(d[12]),y=r(d[13]);function V(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(V=function(n){return n?s:t})(n)}function b(n){var t=n.branchName,l=n.updates,o=n.onOpenPress,c=(0,f.useUpdatesConfig)(),h=c.appId,p=c.runtimeVersion,x=(0,j.useChannelsForApp)(h).data,w=[];null==x||x.forEach(function(n){n.branches.includes(t)&&w.push(t)});var V=l.length>0,b=l[0],P=(null==b?void 0:b.runtimeVersion)===p;return(0,y.jsxs)(s.View,{bg:"default",px:"medium",py:"medium",children:[(0,y.jsxs)(s.Row,{align:"center",children:[(0,y.jsx)(s.View,{width:"8",children:(0,y.jsx)(s.BranchIcon,{})}),(0,y.jsx)(s.View,{shrink:"1",children:(0,y.jsx)(s.Heading,{weight:"bold",numberOfLines:2,children:t})}),(0,y.jsx)(s.Spacer.Horizontal,{}),V&&(0,y.jsx)(s.View,{opacity:P?'1':'0.75',style:{marginLeft:s.scale.small},children:(0,y.jsx)(u.BasicButton,{label:"Open Latest",onPress:o,size:"small"})})]}),w.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(s.Spacer.Vertical,{size:"medium"}),(0,y.jsx)(v,{channels:w})]})]})}function v(n){var t=n.channels,l=(0,s.useExpoPalette)();return 0===t.length?null:(0,y.jsx)(s.View,{children:(0,y.jsxs)(s.Row,{align:"center",children:[(0,y.jsxs)(s.Text,{size:"small",color:"secondary",children:["Available on:",' ']}),(0,y.jsx)(c.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,children:(0,y.jsx)(s.Row,{children:t.map(function(n){return(0,y.jsx)(s.View,{children:(0,y.jsx)(s.View,{align:"start",rounded:"medium",px:"1.5",mx:"0.5",py:"1",style:{backgroundColor:l.orange['000']},children:(0,y.jsx)(s.Text,{size:"small",children:"Channel: "+n})},n)},n)})})})]})})}function P(){var n=l.useRef(new o.Animated.Value(1));return l.useEffect(function(){o.Animated.timing(n.current,{toValue:0,duration:800,delay:800,useNativeDriver:!0}).start()},[]),(0,y.jsx)(o.Animated.View,{style:{opacity:n.current},children:(0,y.jsx)(s.View,{mt:"medium",children:(0,y.jsx)(s.Text,{align:"center",size:"small",color:"secondary",children:"There are no more updates for this branch!"})})})}},1148,[6,43,612,166,2,556,1136,1138,1142,1144,1108,1149,1107,184]);
|
|
1155
1155
|
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useChannelsForApp=function(n){var t=(0,l.useToastStack)(),u=(0,p.useQuery)(['channels',n],function(){return b(n)});return f.useEffect(function(){u.error&&0===t.getItems().length&&t.push(function(){return(0,h.jsx)(s.Toasts.Error,{children:"Something went wrong trying to find the channels for this branch."})})},[u.error]),u};var t,u=n(r(d[1])),o=r(d[2]),f=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=y(t);if(u&&u.has(n))return u.get(n);var o={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var c=f?Object.getOwnPropertyDescriptor(n,p):null;c&&(c.get||c.set)?Object.defineProperty(o,p,c):o[p]=n[p]}o.default=n,u&&u.set(n,o);return o})(r(d[3])),p=r(d[4]),c=r(d[5]),s=r(d[6]),l=r(d[7]),h=r(d[8]);function y(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,u=new WeakMap;return(y=function(n){return n?u:t})(n)}var v=(0,o.gql)(t||(t=(0,u.default)(["\n query getUpdates($appId: String!) {\n app {\n byId(appId: $appId) {\n updateChannels(offset: 0, limit: 10) {\n name\n updateBranches(offset: 0, limit: 10) {\n name\n }\n }\n }\n }\n }\n"])));function b(n){var t={appId:n};return c.apiClient.request(v,t).then(function(n){var t=[];return n.app.byId.updateChannels.forEach(function(n){var u={name:n.name,branches:n.updateBranches.map(function(n){return n.name})};t.push(u)}),t})}},1149,[6,1049,1083,166,1008,1101,1103,1105,184]);
|
|
1156
1156
|
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.HomeScreen=function(n){var f=n.fetchOnMount,y=void 0!==f&&f,V=n.pollInterval,R=void 0===V?1e3:V,T=n.pollAmount,D=void 0===T?5:T,I=n.navigation,A=(0,S.useModalStack)(),B=o.useState(''),C=(0,s.default)(B,2),M=C[0],H=C[1],_=o.useState(''),F=(0,s.default)(_,2),L=F[0],k=F[1],E=(0,w.useDevSessions)(),W=E.data,Q=E.pollAsync,U=E.isFetching,q=(0,v.useCrashReport)(),G=o.useRef(W);o.useEffect(function(){0===G.current.length&&y&&Q({pollAmount:D,pollInterval:R})},[y,R,D,Q]);var J=function(n){return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return k(n),s.next=3,t.default.awrap((0,j.loadApp)(n).catch(function(n){k(''),A.push(function(){return(0,P.jsx)(x.LoadAppErrorModal,{message:n.message})})}));case 3:k('');case 4:case"end":return s.stop()}},null,null,null,Promise)};return(0,P.jsxs)(l.View,{testID:"DevLauncherMainScreen",children:[(0,P.jsx)(u.AppHeader,{navigation:I}),(0,P.jsxs)(c.ScrollView,{contentContainerStyle:{paddingBottom:l.scale[48]},children:[q&&(0,P.jsx)(l.View,{px:"medium",py:"small",mt:"small",children:(0,P.jsx)(l.Button.ScaleOnPressContainer,{onPress:function(){I.navigate('Crash Report',q)},bg:"default",rounded:"large",children:(0,P.jsx)(l.Row,{align:"center",padding:"medium",bg:"default",children:(0,P.jsx)(l.Button.Text,{color:"default",children:"The last time you tried to open an app the development build crashed. Tap to get more information."})})})}),(0,P.jsxs)(l.View,{py:"large",children:[(0,P.jsxs)(l.Row,{px:"small",align:"center",children:[(0,P.jsx)(l.View,{px:"medium",children:(0,P.jsx)(l.TerminalIcon,{})}),(0,P.jsx)(l.Heading,{color:"secondary",children:"Development servers"}),(0,P.jsx)(l.Spacer.Horizontal,{}),W.length>0&&(0,P.jsx)(l.Button.ScaleOnPressContainer,{bg:"ghost",rounded:"full",minScale:.85,onPress:function(){A.push(function(){return(0,P.jsx)(p.DevServerExplainerModal,{})})},children:(0,P.jsx)(l.View,{rounded:"full",padding:"tiny",children:(0,P.jsx)(l.InfoIcon,{})})})]}),(0,P.jsx)(l.Spacer.Vertical,{size:"small"}),(0,P.jsx)(l.View,{px:"medium",children:(0,P.jsxs)(l.View,{children:[0===W.length&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(l.View,{padding:"medium",bg:"default",roundedTop:"large",children:[(0,P.jsx)(l.Text,{children:"Start a local development server with:"}),(0,P.jsx)(l.Spacer.Vertical,{size:"small"}),(0,P.jsx)(l.View,{bg:"secondary",border:"default",rounded:"medium",padding:"medium",children:(0,P.jsx)(l.Text,{type:"mono",size:"small",children:"expo start --dev-client"})}),(0,P.jsx)(l.Spacer.Vertical,{size:"small"}),(0,P.jsx)(l.Text,{children:"Then, select the local server when it appears here."}),(0,P.jsx)(l.Spacer.Vertical,{size:"small"}),(0,P.jsx)(l.Text,{children:"Alternatively, open the Camera app and scan the QR code that appears in your terminal"})]}),(0,P.jsx)(l.Divider,{})]}),(null==W?void 0:W.length)>0&&(0,P.jsx)(O,{devSessions:W,onDevSessionPress:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:J(n.url);case 1:case"end":return t.stop()}},null,null,null,Promise)}}),(0,P.jsx)(b,{isFetching:U,onRefetchPress:function(){Q({pollAmount:D,pollInterval:R})}}),(0,P.jsx)(l.Divider,{}),(0,P.jsx)(h.UrlDropdown,{onSubmit:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:J(n);case 1:case"end":return t.stop()}},null,null,null,Promise)},inputValue:M,setInputValue:H,isLoading:''!==M&&M===L})]})}),(0,P.jsx)(l.Spacer.Vertical,{size:"medium"}),(0,P.jsx)(z,{onAppPress:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:J(n);case 1:case"end":return t.stop()}},null,null,null,Promise)}})]})]})]})};var t=n(r(d[1])),s=n(r(d[2])),l=r(d[3]),o=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=V(t);if(s&&s.has(n))return s.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=o?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=n[c]}l.default=n,s&&s.set(n,l);return l})(r(d[4])),c=r(d[5]),u=r(d[6]),p=r(d[7]),x=r(d[8]),f=r(d[9]),h=r(d[10]),j=r(d[11]),v=r(d[12]),w=r(d[13]),S=r(d[14]),y=r(d[15]),P=r(d[16]);function V(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(V=function(n){return n?s:t})(n)}function b(n){var t=n.isFetching,s=n.onRefetchPress,o=(0,l.useExpoTheme)(),c=t?o.status.info:o.status.default;return(0,P.jsx)(l.Button.ScaleOnPressContainer,{onPress:s,disabled:t,bg:"default",rounded:"none",children:(0,P.jsxs)(l.Row,{align:"center",padding:"medium",bg:"default",children:[(0,P.jsx)(l.View,{width:"6",children:(0,P.jsx)(f.PulseIndicator,{isActive:t,color:c})}),(0,P.jsx)(l.Button.Text,{color:"default",children:t?'Searching for development servers...':'Fetch development servers'}),(0,P.jsx)(l.Spacer.Horizontal,{}),!t&&(0,P.jsx)(l.RefreshIcon,{})]})})}function O(n){var t=n.devSessions,s=void 0===t?[]:t,o=n.onDevSessionPress;return 0===s.length?null:(0,P.jsx)(l.View,{children:s.map(function(n){return(0,P.jsxs)(l.View,{children:[(0,P.jsx)(l.Button.ScaleOnPressContainer,{onPress:function(){return o(n)},roundedTop:"large",roundedBottom:"none",bg:"default",children:(0,P.jsxs)(l.Row,{align:"center",padding:"medium",bg:"default",children:[(0,P.jsx)(l.StatusIndicator,{size:"small",status:"success"}),(0,P.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,P.jsx)(l.View,{flex:"1",children:(0,P.jsx)(l.Button.Text,{color:"default",numberOfLines:1,children:n.description})}),(0,P.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,P.jsx)(l.ChevronRightIcon,{})]})}),(0,P.jsx)(l.Divider,{})]},n.url)})})}function z(n){var t=n.onAppPress,s=(0,y.useRecentlyOpenedApps)().data;return 0===s.length?null:(0,P.jsxs)(l.View,{px:"medium",children:[(0,P.jsx)(l.View,{padding:"medium",children:(0,P.jsx)(l.Heading,{color:"secondary",children:"Recently opened"})}),(0,P.jsx)(l.View,{children:s.slice(0,5).map(function(n,s,o){var c,u=0===s,p=s===o.length-1,x=null!=(c=n.name)?c:n.url;return(0,P.jsxs)(l.View,{children:[(0,P.jsx)(l.Button.ScaleOnPressContainer,{onPress:function(){return t(n.url)},roundedTop:u?'large':'none',roundedBottom:p?'large':'none',bg:"default",children:(0,P.jsxs)(l.Row,{align:"center",padding:"medium",bg:"default",children:[(0,P.jsx)(l.StatusIndicator,{size:"small",status:"success"}),(0,P.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,P.jsx)(l.View,{flex:"1",children:(0,P.jsx)(l.Button.Text,{color:"default",numberOfLines:1,children:x})}),(0,P.jsx)(l.ChevronRightIcon,{})]})}),!p&&(0,P.jsx)(l.Divider,{})]},n.url)})})]})}},1150,[6,69,43,612,166,2,1146,1151,1132,1152,1153,1005,1114,1116,1127,1130,184]);
|
|
1157
1157
|
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DevServerExplainerModal=function(){return(0,l.jsxs)(n.BaseModal,{title:"Development servers",children:[(0,l.jsx)(t.Spacer.Vertical,{size:"small"}),(0,l.jsx)(t.Text,{size:"medium",children:"Start a local development server with:"}),(0,l.jsx)(t.Spacer.Vertical,{size:"small"}),(0,l.jsx)(t.View,{bg:"secondary",border:"default",rounded:"medium",padding:"medium",children:(0,l.jsx)(t.Text,{type:"mono",size:"small",children:"expo start --dev-client"})}),(0,l.jsx)(t.Spacer.Vertical,{size:"large"}),(0,l.jsx)(t.Text,{children:"Then, select the local server when it appears here."}),(0,l.jsx)(t.Spacer.Vertical,{size:"small"}),(0,l.jsx)(t.Text,{children:"Alternatively, open the Camera app and scan the QR code that appears in your terminal"})]})};var t=r(d[0]),n=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=s(n);if(l&&l.has(t))return l.get(t);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var u=c?Object.getOwnPropertyDescriptor(t,p):null;u&&(u.get||u.set)?Object.defineProperty(o,p,u):o[p]=t[p]}o.default=t,l&&l.set(t,o)})(r(d[1])),r(d[2])),l=r(d[3]);function s(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(s=function(t){return t?l:n})(t)}},1151,[612,166,1131,184]);
|
|
@@ -1159,7 +1159,7 @@ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.P
|
|
|
1159
1159
|
__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UrlDropdown=function(t){var n=t.onSubmit,p=t.isLoading,y=t.inputValue,h=t.setInputValue,j=(0,i.useExpoTheme)(),O=(0,i.useCurrentTheme)(),v={dark:{active:j.background.secondary,inactive:j.background.default},light:{active:j.background.secondary,inactive:j.background.default}},w=u.useRef(),x=u.useState(!1),P=(0,o.default)(x,2),D=P[0],C=P[1],k=u.useState(!0),I=(0,o.default)(k,2),T=I[0],S=I[1],V=u.useState(!1),L=(0,o.default)(V,2),B=L[0],R=L[1],U={transform:[{translateX:-3},{rotate:D?'90deg':'0deg'}]},M=u.useRef(Date.now()),_=v[O],z=B?_.active:_.inactive;return(0,f.jsxs)(i.View,{rounded:"large",children:[(0,f.jsx)(i.Button.Container,{onPressIn:function(){return R(!0)},onPressOut:function(){return R(!1)},onPress:function(){C(!D)},roundedTop:"none",roundedBottom:D?'none':'large',testID:"DevLauncherURLToggle",children:(0,f.jsxs)(i.Row,{align:"center",padding:"medium",style:{backgroundColor:z},children:[(0,f.jsx)(i.View,{width:"6",children:(0,f.jsx)(i.ChevronRightIcon,{style:U})}),(0,f.jsx)(i.Text,{color:"default",children:"Enter URL manually"})]})}),D&&(0,f.jsxs)(i.View,{px:"medium",py:"medium",roundedBottom:"large",bg:"default",children:[(0,f.jsxs)(i.View,{border:"default",rounded:"medium",py:l.Platform.select({android:'tiny',ios:'medium'}),px:"medium",shadow:"micro",children:[(0,f.jsx)(i.TextInput,{autoFocus:!0,clearButtonMode:"while-editing",keyboardType:"url",autoCapitalize:"none",autoComplete:"off",autoCorrect:!1,placeholder:"http://10.0.0.25:19000",placeholderTextColor:j.text.secondary,ref:w,value:y,onChangeText:function(t){T||''===t||Date.now()>=M.current+500&&(S((0,c.validateUrl)(t)),M.current=Date.now());h(t)},onBlur:function(){S((0,c.validateUrl)(y))},testID:"DevLauncherURLInput"}),(0,f.jsx)(i.View,{style:{position:'absolute',bottom:-20},children:!T&&''!==y&&(0,f.jsx)(i.Text,{color:"error",size:"small",children:"Invalid URL"})})]}),(0,f.jsx)(i.Spacer.Vertical,{size:"xl"}),(0,f.jsxs)(i.Button.ScaleOnPressContainer,{bg:T?'tertiary':'disabled',shadow:"button",rounded:"medium",disabled:!T||p,onPress:function(){n(y),w.current.blur()},testID:"DevLauncherLoadAppButton",children:[(0,f.jsx)(i.View,{py:"small",opacity:p?'0.5':'1',children:(0,f.jsx)(i.Button.Text,{align:"center",weight:"semibold",color:"tertiary",children:"Connect"})}),p&&(0,f.jsx)(i.View,{style:b(b({},l.StyleSheet.absoluteFillObject),{},{justifyContent:'center',alignItems:'center'}),children:(0,f.jsx)(s.ActivityIndicator,{size:"small"})})]})]})]})};var n=t(r(d[1])),o=t(r(d[2])),i=r(d[3]),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=p(n);if(o&&o.has(t))return o.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var c=u?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(i,l,c):i[l]=t[l]}i.default=t,o&&o.set(t,i);return i})(r(d[4])),l=r(d[5]),c=r(d[6]),s=r(d[7]),f=r(d[8]);function p(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(p=function(t){return t?o:n})(t)}function y(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function b(t){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?y(Object(i),!0).forEach(function(o){(0,n.default)(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}},1153,[6,32,43,612,166,2,1154,1137,184]);
|
|
1160
1160
|
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.validateUrl=function(t){if(!n.default.parse(t,!0).protocol)return!1;return!0};var n=t(r(d[1]))},1154,[6,1121]);
|
|
1161
1161
|
__d(function(g,r,i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.KitchenSinkScreen=function(){var s=(0,f.useToastStack)(),y=l.useState(!1),h=(0,t.default)(y,2),z=h[0],B=h[1];function b(){B(!0),setTimeout(function(){B(!1)},1500)}return(0,S.jsxs)(o.ScrollView,{children:[(0,S.jsx)(p.SafeAreaTop,{}),(0,S.jsxs)(n.View,{padding:"medium",children:[(0,S.jsx)(n.Heading,{size:"large",children:"Kitchen Sink"}),(0,S.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,S.jsx)(n.Heading,{children:"Load More Button"}),(0,S.jsx)(c.BasicButton,{label:"Load More",isLoading:z,onPress:b}),(0,S.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,S.jsx)(n.Heading,{children:"FlatList Loader"}),(0,S.jsx)(j.FlatListLoader,{}),(0,S.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,S.jsx)(n.Heading,{children:"Basic Buttons"}),(0,S.jsx)(n.Spacer.Vertical,{size:"small"}),(0,S.jsxs)(n.Row,{children:[(0,S.jsx)(c.BasicButton,{label:"Primary",type:"primary"}),(0,S.jsx)(n.Spacer.Horizontal,{size:"small"}),(0,S.jsx)(c.BasicButton,{label:"Secondary",type:"secondary"}),(0,S.jsx)(n.Spacer.Horizontal,{size:"small"}),(0,S.jsx)(c.BasicButton,{label:"Tertiary",type:"tertiary"})]}),(0,S.jsx)(n.Spacer.Vertical,{size:"small"}),(0,S.jsxs)(n.Row,{children:[(0,S.jsx)(c.BasicButton,{label:"Disabled",type:"disabled"}),(0,S.jsx)(n.Spacer.Horizontal,{size:"small"}),(0,S.jsx)(c.BasicButton,{label:"Ghost",type:"ghost"}),(0,S.jsx)(n.Spacer.Horizontal,{size:"small"}),(0,S.jsx)(c.BasicButton,{label:"Transparent",type:"transparent"})]}),(0,S.jsx)(n.Spacer.Vertical,{size:"large"}),(0,S.jsx)(n.Heading,{children:"Toasts"}),(0,S.jsx)(n.Spacer.Vertical,{size:"small"}),(0,S.jsxs)(n.Row,{children:[(0,S.jsx)(n.Spacer.Vertical,{size:"small"}),(0,S.jsx)(c.BasicButton,{label:"Warning",onPress:function(){s.push(function(){return(0,S.jsx)(x.Toasts.Warning,{children:"Hey there!"})},{durationMs:5e3})}}),(0,S.jsx)(n.Spacer.Horizontal,{size:"small"}),(0,S.jsx)(n.Spacer.Vertical,{size:"small"}),(0,S.jsx)(c.BasicButton,{label:"Error",onPress:function(){s.push(function(){return(0,S.jsx)(x.Toasts.Error,{children:"Hey there!"})},{durationMs:5e3})}})]}),(0,S.jsx)(n.Spacer.Vertical,{size:"large"}),(0,S.jsx)(n.Heading,{children:"Update Rows"}),(0,S.jsx)(n.Spacer.Vertical,{size:"medium"}),(0,S.jsx)(u.EASUpdateRow,{isFirst:!0,isLoading:z,onPress:b,update:{id:'1',message:'123',runtimeVersion:'1',createdAt:'123',manifestPermalink:'123'}}),(0,S.jsx)(n.Divider,{}),(0,S.jsx)(u.EASUpdateRow,{isLoading:z,onPress:b,update:{id:'1',message:'123',runtimeVersion:'1',createdAt:'123',manifestPermalink:'123'}}),(0,S.jsx)(n.Divider,{}),(0,S.jsx)(u.EASUpdateRow,{isLast:!0,isLoading:z,onPress:b,update:{id:'1',message:'123',runtimeVersion:'1',createdAt:'123',manifestPermalink:'123'}})]})]})};var t=s(r(d[1])),n=r(d[2]),l=(function(s,t){if(!t&&s&&s.__esModule)return s;if(null===s||"object"!=typeof s&&"function"!=typeof s)return{default:s};var n=y(t);if(n&&n.has(s))return n.get(s);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in s)if("default"!==c&&Object.prototype.hasOwnProperty.call(s,c)){var u=o?Object.getOwnPropertyDescriptor(s,c):null;u&&(u.get||u.set)?Object.defineProperty(l,c,u):l[c]=s[c]}l.default=s,n&&n.set(s,l);return l})(r(d[3])),o=r(d[4]),c=r(d[5]),u=r(d[6]),j=r(d[7]),p=r(d[8]),x=r(d[9]),f=r(d[10]),S=r(d[11]);function y(s){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(s){return s?n:t})(s)}},1155,[6,43,612,166,2,1136,1138,1142,1147,1103,1105,184]);
|
|
1162
|
-
__d(function(g,r,_i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.SettingsScreen=function(){var n=(0,
|
|
1163
|
-
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UserProfileScreen=function(n){var
|
|
1162
|
+
__d(function(g,r,_i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.SettingsScreen=function(){var n=(0,S.useUser)().userData,s=o.useState(''),u=(0,i.default)(s,2),x=(u[0],u[1]),w=o.useState(''),y=(0,i.default)(w,2),V=y[0],v=y[1],O=(0,f.useDevMenuPreferences)(),T=O.showsAtLaunch,P=O.setShowsAtLaunch,k=O.touchGestureEnabled,D=O.setTouchGestureEnabled,H=O.motionGestureEnabled,B=O.setMotionGestureEnabled,C=(0,h.useBuildInfo)(),R=o.useRef(null);o.useEffect(function(){return V&&(R.current=setTimeout(function(){v('')},3e3)),function(){clearTimeout(R.current)}},[V]);var I=Boolean(V);return(0,b.jsxs)(c.ScrollView,{testID:"DevLauncherSettingsScreen",showsVerticalScrollIndicator:!1,children:[(0,b.jsx)(p.SafeAreaTop,{}),(0,b.jsx)(l.Spacer.Vertical,{size:"medium"}),(0,b.jsx)(l.View,{px:"medium",children:(0,b.jsx)(l.Heading,{size:"large",children:"Settings"})}),(0,b.jsxs)(l.View,{py:"large",px:"medium",children:[(0,b.jsx)(l.View,{bg:"default",rounded:"large",children:(0,b.jsxs)(l.Row,{px:"medium",py:"small",align:"center",children:[(0,b.jsx)(l.ShowMenuIcon,{}),(0,b.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,b.jsx)(l.Text,{size:"large",children:"Show menu at launch"}),(0,b.jsx)(l.Spacer.Horizontal,{}),(0,b.jsx)(c.Switch,{accessibilityRole:"switch",accessibilityLabel:"Toggle showing menu at launch",value:T,onValueChange:function(){return P(!T)}})]})}),(0,b.jsx)(l.Spacer.Vertical,{size:"large"}),(0,b.jsx)(l.View,{padding:"medium",children:(0,b.jsx)(l.Heading,{color:"secondary",children:"Menu gestures"})}),(0,b.jsxs)(l.View,{children:[(0,b.jsx)(l.Button.ScaleOnPressContainer,{bg:"default",roundedTop:"large",roundedBottom:"none",onPress:function(){return B(!H)},accessibilityState:{checked:H},children:(0,b.jsxs)(l.Row,{px:"medium",py:"small",align:"center",bg:"default",children:[(0,b.jsx)(l.ShakeDeviceIcon,{}),(0,b.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,b.jsx)(l.Text,{size:"large",color:"default",children:"Shake device"}),(0,b.jsx)(l.Spacer.Horizontal,{}),H&&(0,b.jsx)(l.CheckIcon,{})]})}),(0,b.jsx)(l.Divider,{}),(0,b.jsx)(l.Button.ScaleOnPressContainer,{bg:"default",roundedBottom:"large",roundedTop:"none",onPress:function(){return D(!k)},accessibilityState:{checked:k},children:(0,b.jsxs)(l.Row,{px:"medium",py:"small",bg:"default",children:[(0,b.jsx)(l.ThreeFingerPressIcon,{}),(0,b.jsx)(l.Spacer.Horizontal,{size:"small"}),(0,b.jsx)(l.Text,{size:"large",color:"default",children:"Three-finger long-press"}),(0,b.jsx)(l.Spacer.Horizontal,{}),k&&(0,b.jsx)(l.CheckIcon,{})]})})]}),(0,b.jsx)(l.View,{padding:"small",children:(0,b.jsx)(l.Text,{color:"secondary",size:"small",leading:"large",children:"Selected gestures will toggle the developer menu while inside a preview. The menu allows you to reload or return to home and exposes developer tools."})}),(0,b.jsx)(l.Spacer.Vertical,{size:"medium"}),(0,b.jsxs)(l.View,{rounded:"large",overflow:"hidden",children:[(0,b.jsxs)(l.Row,{px:"medium",py:"small",align:"center",bg:"default",children:[(0,b.jsx)(l.Text,{children:"Version"}),(0,b.jsx)(l.Spacer.Horizontal,{}),(0,b.jsx)(l.Text,{children:null==C?void 0:C.appVersion})]}),Boolean(C.runtimeVersion)&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.Divider,{}),(0,b.jsxs)(l.Row,{px:"medium",py:"small",align:"center",bg:"default",children:[(0,b.jsx)(l.Text,{children:"Runtime Version"}),(0,b.jsx)(l.Spacer.Horizontal,{}),(0,b.jsx)(l.Text,{children:C.runtimeVersion})]})]}),Boolean(C.sdkVersion)&&!C.runtimeVersion&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.Divider,{}),(0,b.jsxs)(l.Row,{px:"medium",py:"small",align:"center",bg:"default",children:[(0,b.jsx)(l.Text,{children:"SDK Version"}),(0,b.jsx)(l.Spacer.Horizontal,{}),(0,b.jsx)(l.Text,{children:C.sdkVersion})]})]}),(0,b.jsx)(l.Divider,{}),(0,b.jsx)(l.Button.ScaleOnPressContainer,{onPress:function(){var n,s,i,l,o;return t.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return n=C.runtimeVersion,s=C.sdkVersion,i=C.appName,l=C.appVersion,o=JSON.stringify({runtimeVersion:n,sdkVersion:s,appName:i,appVersion:l},null,'\t'),x(''),v(o),c.next=6,t.default.awrap((0,j.copyToClipboardAsync)(o).catch(function(n){x(n.message),v('')}));case 6:case"end":return c.stop()}},null,null,null,Promise)},disabled:I,bg:"default",roundedTop:"none",roundedBottom:"large",children:(0,b.jsx)(l.Row,{px:"medium",py:"small",align:"center",bg:"default",children:(0,b.jsx)(l.Text,{color:"link",size:"medium",children:I?'Copied to clipboard!':'Tap to Copy All'})})}),(null==n?void 0:n.isExpoAdmin)&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.Spacer.Vertical,{size:"medium"}),(0,b.jsx)(z,{})]})]})]})]})};var t=n(r(d[1])),s=n(r(d[2])),i=n(r(d[3])),l=r(d[4]),o=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=V(t);if(s&&s.has(n))return s.get(n);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in n)if("default"!==o&&Object.prototype.hasOwnProperty.call(n,o)){var c=l?Object.getOwnPropertyDescriptor(n,o):null;c&&(c.get||c.set)?Object.defineProperty(i,o,c):i[o]=n[o]}i.default=n,s&&s.set(n,i);return i})(r(d[5])),c=r(d[6]),u=r(d[7]),p=r(d[8]),x=r(d[9]),j=r(d[10]),h=r(d[11]),f=r(d[12]),w=r(d[13]),y=r(d[14]),S=r(d[15]),b=r(d[16]);function V(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(V=function(n){return n?s:t})(n)}function v(n,t){var s=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),s.push.apply(s,i)}return s}function O(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?v(Object(i),!0).forEach(function(t){(0,s.default)(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))})}return n}function z(){var n=(0,u.useQueryClient)(),s=(0,w.useQueryOptions)(),i=s.queryOptions,o=s.setQueryOptions,c=(0,y.useToastStack)();function p(n){o(O(O({},i),{},{pageSize:n}))}return(0,b.jsxs)(l.View,{children:[(0,b.jsx)(l.View,{padding:"medium",children:(0,b.jsx)(l.Heading,{color:"secondary",children:"Debug Settings"})}),(0,b.jsx)(l.View,{children:(0,b.jsxs)(l.View,{children:[(0,b.jsx)(l.Button.ScaleOnPressContainer,{bg:"default",roundedTop:"large",roundedBottom:"large",onPress:function(){return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,t.default.awrap(n.resetQueries());case 2:return s.next=4,t.default.awrap(n.invalidateQueries());case 4:c.push(function(){return(0,b.jsx)(x.Toasts.Info,{children:"Network cache was reset!"})});case 5:case"end":return s.stop()}},null,null,null,Promise)},children:(0,b.jsxs)(l.Row,{px:"medium",py:"small",align:"center",bg:"default",children:[(0,b.jsx)(l.Text,{size:"large",color:"default",children:"Clear network cache"}),(0,b.jsx)(l.Spacer.Horizontal,{})]})}),(0,b.jsx)(l.Spacer.Vertical,{size:"large"}),(0,b.jsxs)(l.View,{px:"medium",children:[(0,b.jsx)(l.Heading,{size:"small",color:"secondary",children:"Default Page Size"}),(0,b.jsx)(l.Text,{color:"secondary",size:"small",children:"Sets the number of items fetched for branches and updates"})]}),(0,b.jsx)(l.Spacer.Vertical,{size:"medium"}),(0,b.jsx)(l.View,{children:[1,5,10].map(function(n,t,s){var o=i.pageSize===n,c=0===t,u=t===s.length-1;return(0,b.jsxs)(l.View,{children:[(0,b.jsx)(l.Button.ScaleOnPressContainer,{bg:"default",roundedTop:c?'large':'none',roundedBottom:u?'large':'none',onPress:function(){return p(n)},accessibilityState:{checked:o},children:(0,b.jsxs)(l.Row,{px:"medium",py:"small",align:"center",bg:"default",children:[(0,b.jsx)(l.Text,{size:"large",color:"default",children:n}),(0,b.jsx)(l.Spacer.Horizontal,{}),o&&(0,b.jsx)(l.CheckIcon,{})]})}),!u&&(0,b.jsx)(l.Divider,{})]},n)})})]})})]})}},1156,[6,69,32,43,612,166,2,1008,1147,1103,1005,1104,1115,1007,1105,1119,184]);
|
|
1163
|
+
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UserProfileScreen=function(n){var h=n.navigation,b=(0,p.useUser)(),S=b.userData,v=b.selectedAccount,V=(0,x.useModalStack)(),L=(0,p.useUserActions)(),O=l.useState(!1),z=(0,s.default)(O,2),B=z[0],C=z[1],A=null!=S;return(0,j.jsx)(u.SafeAreaView,{style:{flex:1},children:(0,j.jsx)(c.ScrollView,{style:{flex:1},children:(0,j.jsxs)(o.View,{children:[(0,j.jsx)(w,{onClosePress:function(){h.goBack()}}),(0,j.jsx)(o.Spacer.Vertical,{size:"medium"}),(0,j.jsx)(o.View,{px:"medium",children:A?(0,j.jsx)(P,{userData:S,selectedAccount:v,onSelectAccount:function(n){L.setSelectedAccount(n.id)},onLogoutPress:function(){V.push(function(){return(0,j.jsx)(f.LogoutConfirmationModal,{onClosePress:function(){return V.pop()},onLogoutPress:function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.default.awrap(L.logout());case 2:V.pop();case 3:case"end":return n.stop()}},null,null,null,Promise)}})})}}):(0,j.jsx)(y,{isLoading:B,onLoginPress:function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return C(!0),n.next=3,t.default.awrap(L.login('login'));case 3:C(!1);case 4:case"end":return n.stop()}},null,null,null,Promise)},onSignupPress:function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return C(!0),n.next=3,t.default.awrap(L.login('signup'));case 3:C(!1);case 4:case"end":return n.stop()}},null,null,null,Promise)}})})]})})})};var t=n(r(d[1])),s=n(r(d[2])),o=r(d[3]),l=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var s=h(t);if(s&&s.has(n))return s.get(n);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var u=l?Object.getOwnPropertyDescriptor(n,c):null;u&&(u.get||u.set)?Object.defineProperty(o,c,u):o[c]=n[c]}o.default=n,s&&s.set(n,o);return o})(r(d[4])),c=r(d[5]),u=r(d[6]),f=r(d[7]),x=r(d[8]),p=r(d[9]),j=r(d[10]);function h(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(h=function(n){return n?s:t})(n)}function w(n){var t=n.onClosePress;return(0,j.jsxs)(o.View,{children:[(0,j.jsx)(o.Spacer.Vertical,{size:"small"}),(0,j.jsxs)(o.Row,{align:"center",children:[(0,j.jsx)(o.View,{px:"medium",children:(0,j.jsx)(o.Heading,{size:"large",children:"Account"})}),(0,j.jsx)(o.Spacer.Horizontal,{}),(0,j.jsx)(o.Button.ScaleOnPressContainer,{onPress:t,accessibilityLabel:"Go Back",rounded:"full",bg:"ghost",minScale:.9,children:(0,j.jsx)(o.View,{padding:"medium",rounded:"full",children:(0,j.jsx)(o.XIcon,{})})})]})]})}function y(n){var t=n.onLoginPress,s=n.onSignupPress,l=n.isLoading;return(0,j.jsxs)(o.View,{px:"small",py:"medium",bg:"default",rounded:"large",children:[(0,j.jsx)(o.Text,{color:"secondary",size:"small",leading:"large",children:"Log in or create an account to view local development servers and more."}),(0,j.jsx)(o.Spacer.Vertical,{size:"medium"}),(0,j.jsx)(o.Button.ScaleOnPressContainer,{bg:"tertiary",rounded:"medium",onPress:t,disabled:l,accessibilityLabel:"Log in",children:(0,j.jsx)(o.View,{py:"small",children:(0,j.jsx)(o.Button.Text,{color:"tertiary",weight:"semibold",align:"center",children:"Log In"})})}),(0,j.jsx)(o.Spacer.Vertical,{size:"small"}),(0,j.jsx)(o.Button.ScaleOnPressContainer,{bg:"secondary",rounded:"medium",onPress:s,disabled:l,accessibilityLabel:"Sign Up",children:(0,j.jsx)(o.View,{py:"small",children:(0,j.jsx)(o.Button.Text,{color:"secondary",weight:"semibold",align:"center",children:"Sign Up"})})}),l&&(0,j.jsx)(o.View,{style:{position:'absolute',right:0,left:0,top:0,bottom:0,alignItems:'center',justifyContent:'center'},children:(0,j.jsx)(c.ActivityIndicator,{size:"small"})})]})}function P(n){var t=n.userData,s=n.selectedAccount,l=n.onSelectAccount,c=n.onLogoutPress;return(0,j.jsxs)(o.View,{children:[(0,j.jsx)(o.View,{children:t.accounts.filter(function(n){return n&&n.owner}).map(function(n,t,c){var u=t===c.length-1,f=0===t,x=n.id===(null==s?void 0:s.id);return(0,j.jsxs)(o.Button.ScaleOnPressContainer,{onPress:function(){return l(n)},bg:"default",roundedBottom:u?'large':'none',roundedTop:f?'large':'none',children:[(0,j.jsxs)(o.Row,{align:"center",py:"small",px:"medium",bg:"default",children:[(0,j.jsx)(o.Image,{size:"large",rounded:"full",source:{uri:n.owner.profilePhoto}}),(0,j.jsx)(o.Spacer.Horizontal,{size:"small"}),(0,j.jsx)(o.View,{children:(0,j.jsx)(o.Heading,{children:n.owner.username})}),(0,j.jsx)(o.Spacer.Vertical,{}),x&&(0,j.jsx)(o.CheckIcon,{testID:"active-account-checkmark-"+n.id})]}),!u&&(0,j.jsx)(o.Divider,{})]},n.id)})}),(0,j.jsx)(o.Spacer.Vertical,{size:"medium"}),(0,j.jsx)(o.Button.ScaleOnPressContainer,{bg:"tertiary",rounded:"medium",onPress:c,children:(0,j.jsx)(o.View,{py:"small",rounded:"medium",children:(0,j.jsx)(o.Button.Text,{color:"tertiary",weight:"bold",align:"center",children:"Log Out"})})})]})}},1157,[6,69,43,612,166,2,500,1158,1127,1119,184]);
|
|
1164
1164
|
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.LogoutConfirmationModal=function(l){var s=l.onLogoutPress,u=l.onClosePress;return(0,o.jsxs)(n.BaseModal,{title:"Confirm logout",children:[(0,o.jsx)(t.Heading,{weight:"medium",children:"Are you sure you want to log out?"}),(0,o.jsx)(t.Spacer.Vertical,{size:"medium"}),(0,o.jsxs)(t.Row,{children:[(0,o.jsx)(t.View,{flex:"1",grow:"1",children:(0,o.jsx)(t.Button.ScaleOnPressContainer,{bg:"tertiary",rounded:"medium",onPress:s,accessibilityLabel:"Log out",children:(0,o.jsx)(t.View,{padding:"small",rounded:"medium",children:(0,o.jsx)(t.Button.Text,{color:"tertiary",weight:"bold",align:"center",children:"Log Out"})})})}),(0,o.jsx)(t.Spacer.Horizontal,{size:"medium"}),(0,o.jsx)(t.View,{flex:"1",grow:"1",children:(0,o.jsx)(t.Button.ScaleOnPressContainer,{bg:"ghost",border:"ghost",rounded:"medium",onPress:u,children:(0,o.jsx)(t.View,{padding:"small",rounded:"medium",children:(0,o.jsx)(t.Button.Text,{color:"ghost",weight:"bold",align:"center",children:"Nevermind"})})})})]})]})};var t=r(d[0]),n=((function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=l(n);if(o&&o.has(t))return o.get(t);var s={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var f=u?Object.getOwnPropertyDescriptor(t,c):null;f&&(f.get||f.set)?Object.defineProperty(s,c,f):s[c]=t[c]}s.default=t,o&&o.set(t,s)})(r(d[1])),r(d[2])),o=r(d[3]);function l(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(l=function(t){return t?o:n})(t)}},1158,[612,166,1131,184]);
|
|
1165
1165
|
__r(0);
|
package/bundle/App.tsx
CHANGED
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { LoadInitialData } from './components/LoadInitialData';
|
|
12
12
|
import { Splash } from './components/Splash';
|
|
13
13
|
import { AppProviders } from './providers/AppProviders';
|
|
14
|
-
import { useUser } from './providers/UserContextProvider';
|
|
15
14
|
import { CrashReportScreen } from './screens/CrashReportScreen';
|
|
16
15
|
import { ExtensionsStack } from './screens/ExtensionsStack';
|
|
17
16
|
import { HomeScreen } from './screens/HomeScreen';
|
|
@@ -57,14 +56,14 @@ const Main = () => {
|
|
|
57
56
|
tabBarIcon: ({ focused }) => <HomeFilledIcon focused={focused} />,
|
|
58
57
|
}}
|
|
59
58
|
/>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
<Tab.Screen
|
|
60
|
+
name="Extensions"
|
|
61
|
+
component={ExtensionsStack}
|
|
62
|
+
options={{
|
|
63
|
+
headerShown: false,
|
|
64
|
+
tabBarIcon: ({ focused }) => <ExtensionsFilledIcon focused={focused} />,
|
|
65
|
+
}}
|
|
66
|
+
/>
|
|
68
67
|
<Tab.Screen
|
|
69
68
|
name="Settings"
|
|
70
69
|
component={SettingsScreen}
|
package/bundle/apiClient.ts
CHANGED
|
@@ -2,11 +2,13 @@ import { GraphQLClient } from 'graphql-request';
|
|
|
2
2
|
|
|
3
3
|
import * as DevLauncherAuth from './native-modules/DevLauncherAuth';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const useStaging = __DEV__;
|
|
6
|
+
|
|
7
|
+
export const apiEndpoint = useStaging
|
|
6
8
|
? `https://staging.exp.host/--/graphql`
|
|
7
9
|
: `https://exp.host/--/graphql`;
|
|
8
|
-
export const websiteOrigin =
|
|
9
|
-
export const restEndpoint =
|
|
10
|
+
export const websiteOrigin = useStaging ? `https://staging.expo.dev` : 'https://expo.dev';
|
|
11
|
+
export const restEndpoint = useStaging
|
|
10
12
|
? `https://staging.exp.host/--/api/v2`
|
|
11
13
|
: `https://exp.host/--/api/v2`;
|
|
12
14
|
|