@apps-in-toss/web-framework 1.4.2 → 1.4.4

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.
@@ -154465,6 +154465,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154465
154465
  })
154466
154466
  });
154467
154467
  }
154468
+ var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-safe-area-context");
154468
154469
  var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
154469
154470
  var import_private6 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
154470
154471
  var import_react_native19 = _$$_REQUIRE(_dependencyMap[9], "react-native");
@@ -154475,6 +154476,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154475
154476
  var _useMoreButtonBottomS2 = useMoreButtonBottomSheet(),
154476
154477
  openMoreButtonBottomSheet = _useMoreButtonBottomS2.open;
154477
154478
  var navigationEvent = useNavigationEvent();
154479
+ var _ref39 = (0, import_react_native_safe_area_context.useSafeAreaInsets)(),
154480
+ safeAreaRight = _ref39.right;
154478
154481
  useHardwareBackPress(navigationEvent.handleBack);
154479
154482
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
154480
154483
  var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
@@ -154493,7 +154496,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154493
154496
  position: "absolute",
154494
154497
  zIndex: Z_INDEX.CLOSE_BUTTON,
154495
154498
  marginTop: safeAreaTop,
154496
- paddingRight: 10
154499
+ paddingRight: safeAreaRight + 10
154497
154500
  },
154498
154501
  pointerEvents: "box-none",
154499
154502
  children: (0, import_jsx_runtime8.jsx)(import_private6.NavigationRightContent, {
@@ -154510,12 +154513,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154510
154513
  Game: GameNavigationBar
154511
154514
  };
154512
154515
  var bridge_entry_exports = {};
154513
- __reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[14], "@apps-in-toss/native-modules/async-bridges"));
154514
- __reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/constant-bridges"));
154515
- __reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/event-bridges"));
154516
+ __reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/async-bridges"));
154517
+ __reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/constant-bridges"));
154518
+ __reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/event-bridges"));
154516
154519
  var import_jsx_runtime9 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
154517
- function RNAppContainer(_ref39) {
154518
- var children = _ref39.children;
154520
+ function RNAppContainer(_ref40) {
154521
+ var children = _ref40.children;
154519
154522
  var global2 = getAppsInTossGlobals();
154520
154523
  switch (global2.appType) {
154521
154524
  case "game":
@@ -154529,12 +154532,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154529
154532
  });
154530
154533
  }
154531
154534
  }
154532
- function GameAppContainer(_ref40) {
154533
- var children = _ref40.children;
154534
- var _ref41 = (0, import_react17.useState)(false),
154535
- _ref42 = _slicedToArray(_ref41, 2),
154536
- isEntryMessageExited = _ref42[0],
154537
- setIsEntryMessageExited = _ref42[1];
154535
+ function GameAppContainer(_ref41) {
154536
+ var children = _ref41.children;
154537
+ var _ref42 = (0, import_react17.useState)(false),
154538
+ _ref43 = _slicedToArray(_ref42, 2),
154539
+ isEntryMessageExited = _ref43[0],
154540
+ setIsEntryMessageExited = _ref43[1];
154538
154541
  (0, import_react17.useEffect)(function () {
154539
154542
  if (import_react_native20.Platform.OS === "ios") {
154540
154543
  (0, import_native_modules12.setIosSwipeGestureEnabled)({
@@ -154562,16 +154565,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154562
154565
  }) : children]
154563
154566
  });
154564
154567
  }
154565
- function GeneralAppContainer(_ref43) {
154566
- var children = _ref43.children;
154568
+ function GeneralAppContainer(_ref44) {
154569
+ var children = _ref44.children;
154567
154570
  return (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, {
154568
154571
  children: [(0, import_jsx_runtime9.jsx)(RNNavigationBar.Default, {}), children]
154569
154572
  });
154570
154573
  }
154571
154574
  var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
154572
- function AppsInTossContainer(Container, _ref44) {
154573
- var children = _ref44.children,
154574
- initialProps = _objectWithoutProperties(_ref44, _excluded);
154575
+ function AppsInTossContainer(Container, _ref45) {
154576
+ var children = _ref45.children,
154577
+ initialProps = _objectWithoutProperties(_ref45, _excluded);
154575
154578
  if (!(0, import_native_modules13.isMinVersionSupported)({
154576
154579
  android: "5.220.0",
154577
154580
  ios: "5.221.0"
@@ -154596,16 +154599,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154596
154599
  }))]
154597
154600
  });
154598
154601
  }
154599
- function TDSContainer(_ref45) {
154600
- var children = _ref45.children;
154602
+ function TDSContainer(_ref46) {
154603
+ var children = _ref46.children;
154601
154604
  useAppsInTossBridge();
154602
154605
  return (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {
154603
154606
  children: children
154604
154607
  });
154605
154608
  }
154606
- function registerApp(container, _ref46) {
154607
- var context = _ref46.context,
154608
- analytics = _ref46.analytics;
154609
+ function registerApp(container, _ref47) {
154610
+ var context = _ref47.context,
154611
+ analytics = _ref47.analytics;
154609
154612
  var appName = getAppName();
154610
154613
  var isRegistered = import_react_native22.AppRegistry.getAppKeys().includes(appName);
154611
154614
  if (!isRegistered) {
@@ -154631,8 +154634,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154631
154634
  }
154632
154635
  return global.Page;
154633
154636
  }
154634
- function AppsInTossScreenContainer(_ref47) {
154635
- var children = _ref47.children;
154637
+ function AppsInTossScreenContainer(_ref48) {
154638
+ var children = _ref48.children;
154636
154639
  var isRNApp = getAppsInTossGlobals().webViewType == null;
154637
154640
  return (0, import_jsx_runtime10.jsx)(import_analytics.Analytics.Screen, {
154638
154641
  children: isRNApp ? (0, import_jsx_runtime10.jsx)(RNAppContainer, {
@@ -154652,18 +154655,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154652
154655
  registerApp: registerApp
154653
154656
  };
154654
154657
  var import_native_modules18 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
154655
- var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[14], "@apps-in-toss/native-modules/async-bridges"), 1);
154656
- var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/constant-bridges"), 1);
154657
- var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/event-bridges"), 1);
154658
+ var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/async-bridges"), 1);
154659
+ var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/constant-bridges"), 1);
154660
+ var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/event-bridges"), 1);
154658
154661
  var import_react_native32 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
154659
154662
  var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
154660
154663
  var import_private9 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
154661
154664
  var import_react27 = _$$_REQUIRE(_dependencyMap[10], "react");
154662
154665
  var import_react_native33 = _$$_REQUIRE(_dependencyMap[9], "react-native");
154663
154666
  var import_native_modules14 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
154664
- var import_react_native_webview = _$$_REQUIRE(_dependencyMap[17], "@granite-js/native/react-native-webview");
154667
+ var import_react_native_webview = _$$_REQUIRE(_dependencyMap[18], "@granite-js/native/react-native-webview");
154665
154668
  var import_react19 = _$$_REQUIRE(_dependencyMap[10], "react");
154666
154669
  var import_react_native25 = _$$_REQUIRE(_dependencyMap[9], "react-native");
154670
+ var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-safe-area-context");
154667
154671
  var import_react_native23 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
154668
154672
  var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
154669
154673
  var import_private7 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
@@ -154673,14 +154677,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154673
154677
  var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
154674
154678
  function GameWebviewNavigationBar() {
154675
154679
  var safeAreaTop = (0, import_private7.useSafeAreaTop)();
154676
- var _ref48 = (0, import_tds_react_native11.useDialog)(),
154677
- openConfirm = _ref48.openConfirm;
154680
+ var _ref49 = (0, import_tds_react_native11.useDialog)(),
154681
+ openConfirm = _ref49.openConfirm;
154678
154682
  var _useCaptureExitLog3 = useCaptureExitLog(),
154679
154683
  captureExitLog = _useCaptureExitLog3.captureExitLog;
154680
154684
  var global2 = getAppsInTossGlobals();
154681
154685
  var logging = useNavigationBarLogging();
154682
154686
  var _useMoreButtonBottomS3 = useMoreButtonBottomSheet(),
154683
154687
  openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
154688
+ var _ref50 = (0, import_react_native_safe_area_context2.useSafeAreaInsets)(),
154689
+ safeAreaRight = _ref50.right;
154684
154690
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
154685
154691
  var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
154686
154692
  var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
@@ -154713,7 +154719,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154713
154719
  position: "absolute",
154714
154720
  zIndex: Z_INDEX.CLOSE_BUTTON,
154715
154721
  marginTop: safeAreaTop,
154716
- paddingRight: 10
154722
+ paddingRight: safeAreaRight + 10
154717
154723
  },
154718
154724
  pointerEvents: "box-none",
154719
154725
  children: (0, import_jsx_runtime11.jsx)(import_private7.NavigationRightContent, {
@@ -154729,10 +154735,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154729
154735
  }
154730
154736
  var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
154731
154737
  var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
154732
- var _ref50 = (0, import_react19.useState)(false),
154733
- _ref51 = _slicedToArray(_ref50, 2),
154734
- isEntryMessageExited = _ref51[0],
154735
- setIsEntryMessageExited = _ref51[1];
154738
+ var _ref52 = (0, import_react19.useState)(false),
154739
+ _ref53 = _slicedToArray(_ref52, 2),
154740
+ isEntryMessageExited = _ref53[0],
154741
+ setIsEntryMessageExited = _ref53[1];
154736
154742
  (0, import_react19.useEffect)(function () {
154737
154743
  if (import_react_native25.Platform.OS === "ios") {
154738
154744
  (0, import_native_modules14.setIosSwipeGestureEnabled)({
@@ -154764,7 +154770,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154764
154770
  }, props))]
154765
154771
  });
154766
154772
  });
154767
- var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[17], "@granite-js/native/react-native-webview");
154773
+ var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[18], "@granite-js/native/react-native-webview");
154768
154774
  var import_react21 = _$$_REQUIRE(_dependencyMap[10], "react");
154769
154775
  var import_react_native26 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
154770
154776
  var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[8], "@toss/tds-react-native");
@@ -154772,16 +154778,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154772
154778
  var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[12], "es-hangul");
154773
154779
  var import_react20 = _$$_REQUIRE(_dependencyMap[10], "react");
154774
154780
  var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
154775
- function PartnerWebviewNavigationBar(_ref52) {
154781
+ function PartnerWebviewNavigationBar(_ref54) {
154776
154782
  var _parsedNavigationBar$3, _parsedNavigationBar$4;
154777
- var onBackButtonClick = _ref52.onBackButtonClick,
154778
- onHomeButtonClick = _ref52.onHomeButtonClick;
154783
+ var onBackButtonClick = _ref54.onBackButtonClick,
154784
+ onHomeButtonClick = _ref54.onHomeButtonClick;
154779
154785
  var globals = getAppsInTossGlobals();
154780
154786
  var _useCaptureExitLog4 = useCaptureExitLog(),
154781
154787
  captureExitLog = _useCaptureExitLog4.captureExitLog;
154782
154788
  var logging = useNavigationBarLogging();
154783
- var _ref53 = (0, import_tds_react_native12.useDialog)(),
154784
- openConfirm = _ref53.openConfirm;
154789
+ var _ref55 = (0, import_tds_react_native12.useDialog)(),
154790
+ openConfirm = _ref55.openConfirm;
154785
154791
  var _useMoreButtonBottomS4 = useMoreButtonBottomSheet(),
154786
154792
  openMoreButtonBottomSheet = _useMoreButtonBottomS4.open;
154787
154793
  var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
@@ -154825,10 +154831,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154825
154831
  });
154826
154832
  }
154827
154833
  var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[11], "react/jsx-runtime");
154828
- var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref55, ref) {
154829
- var onBackButtonClick = _ref55.onBackButtonClick,
154830
- onHomeButtonClick = _ref55.onHomeButtonClick,
154831
- webViewProps = _objectWithoutProperties(_ref55, _excluded2);
154834
+ var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref57, ref) {
154835
+ var onBackButtonClick = _ref57.onBackButtonClick,
154836
+ onHomeButtonClick = _ref57.onHomeButtonClick,
154837
+ webViewProps = _objectWithoutProperties(_ref57, _excluded2);
154832
154838
  return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
154833
154839
  children: [(0, import_jsx_runtime14.jsx)(PartnerWebviewNavigationBar, {
154834
154840
  onBackButtonClick: onBackButtonClick,
@@ -154846,10 +154852,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154846
154852
  function serializeError(error) {
154847
154853
  return JSON.stringify(error, function (_, value) {
154848
154854
  if (value instanceof Error) {
154849
- return Object.assign({}, Object.entries(value).reduce(function (acc, _ref56) {
154850
- var _ref57 = _slicedToArray(_ref56, 2),
154851
- key = _ref57[0],
154852
- value2 = _ref57[1];
154855
+ return Object.assign({}, Object.entries(value).reduce(function (acc, _ref58) {
154856
+ var _ref59 = _slicedToArray(_ref58, 2),
154857
+ key = _ref59[0],
154858
+ value2 = _ref59[1];
154853
154859
  acc[key] = value2;
154854
154860
  return acc;
154855
154861
  }, {}), {
@@ -154862,24 +154868,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154862
154868
  return value;
154863
154869
  });
154864
154870
  }
154865
- function methodHandler(_ref58) {
154866
- var args = _ref58.args,
154867
- eventId = _ref58.eventId,
154868
- functionName = _ref58.functionName,
154869
- handlerMap = _ref58.handlerMap,
154870
- injectJavaScript = _ref58.injectJavaScript;
154871
+ function methodHandler(_ref60) {
154872
+ var args = _ref60.args,
154873
+ eventId = _ref60.eventId,
154874
+ functionName = _ref60.functionName,
154875
+ handlerMap = _ref60.handlerMap,
154876
+ injectJavaScript = _ref60.injectJavaScript;
154871
154877
  var func = handlerMap[functionName];
154872
154878
  if (!func) {
154873
154879
  console.error(functionName + " is not a function");
154874
154880
  return;
154875
154881
  }
154876
154882
  var wrappedFunc = function () {
154877
- var _ref59 = _asyncToGenerator(function* () {
154883
+ var _ref61 = _asyncToGenerator(function* () {
154878
154884
  var result = yield func.apply(void 0, arguments);
154879
154885
  return result;
154880
154886
  });
154881
154887
  return function wrappedFunc() {
154882
- return _ref59.apply(this, arguments);
154888
+ return _ref61.apply(this, arguments);
154883
154889
  };
154884
154890
  }();
154885
154891
  wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
@@ -154890,18 +154896,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154890
154896
  });
154891
154897
  }
154892
154898
  var globalEventListenerMap = new Map();
154893
- function useBridgeHandler(_ref60) {
154894
- var onMessage = _ref60.onMessage,
154895
- constantHandlerMap = _ref60.constantHandlerMap,
154896
- asyncHandlerMap = _ref60.asyncHandlerMap,
154897
- eventListenerMap = _ref60.eventListenerMap,
154898
- originalInjectedJavaScript = _ref60.injectedJavaScript;
154899
+ function useBridgeHandler(_ref62) {
154900
+ var onMessage = _ref62.onMessage,
154901
+ constantHandlerMap = _ref62.constantHandlerMap,
154902
+ asyncHandlerMap = _ref62.asyncHandlerMap,
154903
+ eventListenerMap = _ref62.eventListenerMap,
154904
+ originalInjectedJavaScript = _ref62.injectedJavaScript;
154899
154905
  var ref = (0, import_react22.useRef)(null);
154900
154906
  var injectedJavaScript = (0, import_react22.useMemo)(function () {
154901
- return ["window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref61) {
154902
- var _ref62 = _slicedToArray(_ref61, 2),
154903
- key = _ref62[0],
154904
- value = _ref62[1];
154907
+ return ["window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref63) {
154908
+ var _ref64 = _slicedToArray(_ref63, 2),
154909
+ key = _ref64[0],
154910
+ value = _ref64[1];
154905
154911
  acc[key] = typeof value === "function" ? value() : value;
154906
154912
  return acc;
154907
154913
  }, {})) + ";", originalInjectedJavaScript, "true"].join("\n");
@@ -154920,7 +154926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154920
154926
  };
154921
154927
  };
154922
154928
  var $onMessage = (0, import_react22.useCallback)(function () {
154923
- var _ref63 = _asyncToGenerator(function* (e) {
154929
+ var _ref65 = _asyncToGenerator(function* (e) {
154924
154930
  onMessage == null ? void 0 : onMessage(e);
154925
154931
  var data = JSON.parse(e.nativeEvent.data);
154926
154932
  if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
@@ -154965,7 +154971,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154965
154971
  }
154966
154972
  });
154967
154973
  return function (_x4) {
154968
- return _ref63.apply(this, arguments);
154974
+ return _ref65.apply(this, arguments);
154969
154975
  };
154970
154976
  }(), [onMessage]);
154971
154977
  return {
@@ -155025,20 +155031,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155025
155031
  }
155026
155032
  }
155027
155033
  function useWebViewHistory() {
155028
- var _ref64 = (0, import_react23.useReducer)(reducer, INITIAL_STATE),
155029
- _ref65 = _slicedToArray(_ref64, 2),
155030
- state = _ref65[0],
155031
- dispatch = _ref65[1];
155032
- var onNavigationStateChange = (0, import_react23.useCallback)(function (_ref66) {
155033
- var url = _ref66.url,
155034
- canGoForward2 = _ref66.canGoForward;
155034
+ var _ref66 = (0, import_react23.useReducer)(reducer, INITIAL_STATE),
155035
+ _ref67 = _slicedToArray(_ref66, 2),
155036
+ state = _ref67[0],
155037
+ dispatch = _ref67[1];
155038
+ var onNavigationStateChange = (0, import_react23.useCallback)(function (_ref68) {
155039
+ var url = _ref68.url,
155040
+ canGoForward2 = _ref68.canGoForward;
155035
155041
  dispatch({
155036
155042
  type: "NAVIGATION_CHANGE",
155037
155043
  url: url,
155038
155044
  canGoForward: canGoForward2
155039
155045
  });
155040
155046
  }, []);
155041
- var _ref67 = (0, import_react23.useMemo)(function () {
155047
+ var _ref69 = (0, import_react23.useMemo)(function () {
155042
155048
  var canBack = state.index > 0;
155043
155049
  var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
155044
155050
  return {
@@ -155046,8 +155052,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155046
155052
  canGoForward: canFwd
155047
155053
  };
155048
155054
  }, [state.index, state.stack.length]),
155049
- canGoBack = _ref67.canGoBack,
155050
- canGoForward = _ref67.canGoForward;
155055
+ canGoBack = _ref69.canGoBack,
155056
+ canGoForward = _ref69.canGoForward;
155051
155057
  return {
155052
155058
  onNavigationStateChange: onNavigationStateChange,
155053
155059
  hasHistory: canGoBack,
@@ -155062,14 +155068,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155062
155068
  var _useWebViewHistory = useWebViewHistory(),
155063
155069
  hasHistory = _useWebViewHistory.hasHistory,
155064
155070
  onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
155065
- var _ref68 = (0, import_react_native27.useBackEventState)(),
155066
- webBackHandlersRef = _ref68.handlersRef,
155067
- hasWebBackEvent = _ref68.hasBackEvent,
155068
- addWebBackEventListener = _ref68.addEventListener,
155069
- removeWebBackEventListener = _ref68.removeEventListener;
155071
+ var _ref70 = (0, import_react_native27.useBackEventState)(),
155072
+ webBackHandlersRef = _ref70.handlersRef,
155073
+ hasWebBackEvent = _ref70.hasBackEvent,
155074
+ addWebBackEventListener = _ref70.addEventListener,
155075
+ removeWebBackEventListener = _ref70.removeEventListener;
155070
155076
  var logging = useNavigationBarLogging();
155071
- var _ref69 = (0, import_tds_react_native13.useDialog)(),
155072
- openConfirm = _ref69.openConfirm;
155077
+ var _ref71 = (0, import_tds_react_native13.useDialog)(),
155078
+ openConfirm = _ref71.openConfirm;
155073
155079
  var global2 = getAppsInTossGlobals();
155074
155080
  var addEventListener = (0, import_react24.useCallback)(function (handler) {
155075
155081
  addWebBackEventListener(handler);
@@ -155266,19 +155272,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155266
155272
  function mapFontScaleToCategory(fontScale, platform) {
155267
155273
  return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
155268
155274
  }
155269
- function _useCreateUserAgent(_ref71) {
155270
- var batteryModePreference = _ref71.batteryModePreference,
155271
- colorPreference = _ref71.colorPreference,
155272
- locale = _ref71.locale,
155273
- navbarPreference = _ref71.navbarPreference,
155274
- pureSafeArea = _ref71.pureSafeArea,
155275
- safeArea = _ref71.safeArea,
155276
- safeAreaBottomTransparency = _ref71.safeAreaBottomTransparency;
155275
+ function _useCreateUserAgent(_ref73) {
155276
+ var batteryModePreference = _ref73.batteryModePreference,
155277
+ colorPreference = _ref73.colorPreference,
155278
+ locale = _ref73.locale,
155279
+ navbarPreference = _ref73.navbarPreference,
155280
+ pureSafeArea = _ref73.pureSafeArea,
155281
+ safeArea = _ref73.safeArea,
155282
+ safeAreaBottomTransparency = _ref73.safeAreaBottomTransparency;
155277
155283
  var platform = (0, import_native_modules15.getPlatformOS)();
155278
155284
  var appVersion = (0, import_native_modules15.getTossAppVersion)();
155279
- var _ref72 = (0, import_react_native28.useWindowDimensions)(),
155280
- fontScale = _ref72.fontScale;
155281
- var platformString = platform === "ios" ? "iPhone" : "Android";
155285
+ var _ref74 = (0, import_react_native28.useWindowDimensions)(),
155286
+ fontScale = _ref74.fontScale;
155287
+ var platformString = platform === "ios" ? "iPhone" : "Android phone";
155282
155288
  var fontA11y = mapFontScaleToCategory(fontScale, platform);
155283
155289
  var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
155284
155290
  return ["TossApp/" + appVersion, batteryModePreference && "TossBatteryModePreference/" + batteryModePreference, colorPreference && "TossColorPreference/" + colorPreference, "TossFontAccessibility/" + fontA11y, "TossFontScale/" + normalizedFontScale, locale && "TossLocale/" + locale, navbarPreference && "TossNavbarPreference/" + navbarPreference, pureSafeArea && "TossPureSafeArea/" + pureSafeArea, safeArea && "TossSafeArea/" + safeArea, safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/" + safeAreaBottomTransparency, platformString].filter(Boolean).join(" ");
@@ -155286,15 +155292,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155286
155292
  var import_native_modules16 = _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules");
155287
155293
  var import_react_native29 = _$$_REQUIRE(_dependencyMap[7], "@granite-js/react-native");
155288
155294
  var import_react25 = _$$_REQUIRE(_dependencyMap[10], "react");
155289
- function _useGeolocation(_ref73) {
155290
- var accuracy = _ref73.accuracy,
155291
- distanceInterval = _ref73.distanceInterval,
155292
- timeInterval = _ref73.timeInterval;
155295
+ function _useGeolocation(_ref75) {
155296
+ var accuracy = _ref75.accuracy,
155297
+ distanceInterval = _ref75.distanceInterval,
155298
+ timeInterval = _ref75.timeInterval;
155293
155299
  var isVisible = (0, import_react_native29.useVisibility)();
155294
- var _ref74 = (0, import_react25.useState)(null),
155295
- _ref75 = _slicedToArray(_ref74, 2),
155296
- location = _ref75[0],
155297
- setLocation = _ref75[1];
155300
+ var _ref76 = (0, import_react25.useState)(null),
155301
+ _ref77 = _slicedToArray(_ref76, 2),
155302
+ location = _ref77[0],
155303
+ setLocation = _ref77[1];
155298
155304
  (0, import_react25.useEffect)(function () {
155299
155305
  if (!isVisible) {
155300
155306
  return;
@@ -155390,10 +155396,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155390
155396
  var baseUrl = new URL(url);
155391
155397
  var schemeUrl = new URL((0, import_react_native32.getSchemeUri)());
155392
155398
  baseUrl.pathname = schemeUrl.pathname;
155393
- for (var _ref76 of schemeUrl.searchParams.entries()) {
155394
- var _ref77 = _slicedToArray(_ref76, 2);
155395
- var key = _ref77[0];
155396
- var value = _ref77[1];
155399
+ for (var _ref78 of schemeUrl.searchParams.entries()) {
155400
+ var _ref79 = _slicedToArray(_ref78, 2);
155401
+ var key = _ref79[0];
155402
+ var value = _ref79[1];
155397
155403
  baseUrl.searchParams.set(key, value);
155398
155404
  }
155399
155405
  return baseUrl;
@@ -155412,11 +155418,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155412
155418
  }
155413
155419
  return url.toString();
155414
155420
  }
155415
- function _WebView(_ref78) {
155416
- var type = _ref78.type,
155417
- local = _ref78.local,
155418
- onMessage = _ref78.onMessage,
155419
- props = _objectWithoutProperties(_ref78, _excluded3);
155421
+ function _WebView(_ref80) {
155422
+ var type = _ref80.type,
155423
+ local = _ref80.local,
155424
+ onMessage = _ref80.onMessage,
155425
+ props = _objectWithoutProperties(_ref80, _excluded3);
155420
155426
  if (!TYPES.includes(type)) {
155421
155427
  throw new Error("Invalid WebView type: '" + type + "'");
155422
155428
  }
@@ -155430,51 +155436,51 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155430
155436
  var global2 = getAppsInTossGlobals();
155431
155437
  var topNavigation = (0, import_private9.useTopNavigation)();
155432
155438
  var disableTextSelectionCSS = "\n (function() {\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n })();\n ";
155433
- var _ref79 = (0, import_react27.useState)(props.allowsBackForwardNavigationGestures),
155434
- _ref80 = _slicedToArray(_ref79, 2),
155435
- allowsBackForwardNavigationGestures = _ref80[0],
155436
- setAllowsBackForwardNavigationGestures = _ref80[1];
155439
+ var _ref81 = (0, import_react27.useState)(props.allowsBackForwardNavigationGestures),
155440
+ _ref82 = _slicedToArray(_ref81, 2),
155441
+ allowsBackForwardNavigationGestures = _ref82[0],
155442
+ setAllowsBackForwardNavigationGestures = _ref82[1];
155437
155443
  var handler = useBridgeHandler({
155438
155444
  onMessage: onMessage,
155439
155445
  injectedJavaScript: [disableTextSelectionCSS].join("\n"),
155440
155446
  eventListenerMap: Object.assign({}, appsInTossEventBridges, {
155441
- navigationAccessoryEvent: function navigationAccessoryEvent(_ref81) {
155442
- var onEvent = _ref81.onEvent,
155443
- onError = _ref81.onError;
155447
+ navigationAccessoryEvent: function navigationAccessoryEvent(_ref83) {
155448
+ var onEvent = _ref83.onEvent,
155449
+ onError = _ref83.onError;
155444
155450
  return import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
155445
155451
  onEvent: onEvent,
155446
155452
  onError: onError
155447
155453
  });
155448
155454
  },
155449
- backEvent: function backEvent(_ref82) {
155450
- var onEvent = _ref82.onEvent;
155455
+ backEvent: function backEvent(_ref84) {
155456
+ var onEvent = _ref84.onEvent;
155451
155457
  webBackHandler.addEventListener(onEvent);
155452
155458
  return function () {
155453
155459
  webBackHandler.removeEventListener(onEvent);
155454
155460
  };
155455
155461
  },
155456
- entryMessageExited: function entryMessageExited(_ref83) {
155457
- var onEvent = _ref83.onEvent,
155458
- onError = _ref83.onError;
155462
+ entryMessageExited: function entryMessageExited(_ref85) {
155463
+ var onEvent = _ref85.onEvent,
155464
+ onError = _ref85.onError;
155459
155465
  return import_native_modules18.appsInTossEvent.addEventListener("entryMessageExited", {
155460
155466
  onEvent: onEvent,
155461
155467
  onError: onError
155462
155468
  });
155463
155469
  },
155464
- updateLocationEvent: function updateLocationEvent(_ref84) {
155465
- var onEvent = _ref84.onEvent,
155466
- onError = _ref84.onError,
155467
- options = _ref84.options;
155470
+ updateLocationEvent: function updateLocationEvent(_ref86) {
155471
+ var onEvent = _ref86.onEvent,
155472
+ onError = _ref86.onError,
155473
+ options = _ref86.options;
155468
155474
  return import_native_modules18.appsInTossEvent.addEventListener("updateLocationEvent", {
155469
155475
  onEvent: onEvent,
155470
155476
  onError: onError,
155471
155477
  options: options
155472
155478
  });
155473
155479
  },
155474
- appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref85) {
155475
- var onEvent = _ref85.onEvent,
155476
- onError = _ref85.onError,
155477
- options = _ref85.options;
155480
+ appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref87) {
155481
+ var onEvent = _ref87.onEvent,
155482
+ onError = _ref87.onError,
155483
+ options = _ref87.options;
155478
155484
  return import_native_modules18.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
155479
155485
  onEvent: onEvent,
155480
155486
  onError: onError,
@@ -155497,10 +155503,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155497
155503
  getSafeAreaBottom: function getSafeAreaBottom() {
155498
155504
  return bottom;
155499
155505
  }
155500
- }, Object.fromEntries(Object.entries(global2).map(function (_ref86) {
155501
- var _ref87 = _slicedToArray(_ref86, 2),
155502
- key = _ref87[0],
155503
- value = _ref87[1];
155506
+ }, Object.fromEntries(Object.entries(global2).map(function (_ref88) {
155507
+ var _ref89 = _slicedToArray(_ref88, 2),
155508
+ key = _ref89[0],
155509
+ value = _ref89[1];
155504
155510
  return [key, function () {
155505
155511
  return value;
155506
155512
  }];
@@ -155621,7 +155627,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155621
155627
  __reExport(src_exports, _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/analytics"), module.exports);
155622
155628
  var import_private10 = _$$_REQUIRE(_dependencyMap[13], "@toss/tds-react-native/private");
155623
155629
  __reExport(src_exports, _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules"), module.exports);
155624
- __reExport(src_exports, _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/types"), module.exports);
155630
+ __reExport(src_exports, _$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/types"), module.exports);
155625
155631
  var Analytics2 = {
155626
155632
  init: import_analytics2.Analytics.init,
155627
155633
  Impression: import_analytics2.Analytics.Impression,
@@ -155640,8 +155646,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155640
155646
  useOverlay: useOverlay,
155641
155647
  useTopNavigation: useTopNavigation,
155642
155648
  useWaitForReturnNavigator: _useWaitForReturnNavigator
155643
- }, _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/analytics"), _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules"), _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/types")));
155644
- },1254,[32,207,61,16,1255,1256,1257,2,1444,18,6,9,2466,2566,2567,2603,2610,2475,1258],"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.cjs");
155649
+ }, _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/analytics"), _$$_REQUIRE(_dependencyMap[6], "@apps-in-toss/native-modules"), _$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/types")));
155650
+ },1254,[32,207,61,16,1255,1256,1257,2,1444,18,6,9,2466,2566,534,2567,2603,2610,2475,1258],"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.cjs");
155645
155651
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
155646
155652
  function _objectDestructuringEmpty(obj) {
155647
155653
  if (obj == null) throw new TypeError("Cannot destructure undefined");