@apps-in-toss/web-framework 2.9.1 → 2.9.2

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.
@@ -137211,7 +137211,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137211
137211
  var import_analytics = _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics");
137212
137212
  var import_native_modules10 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
137213
137213
  var import_react_native27 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
137214
- var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137214
+ var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137215
137215
  var import_react_native28 = _$$_REQUIRE(_dependencyMap[8], "react-native");
137216
137216
  var import_react_native2 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
137217
137217
  var import_react = _$$_REQUIRE(_dependencyMap[9], "react");
@@ -137325,7 +137325,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137325
137325
  return context;
137326
137326
  }
137327
137327
  var import_native_modules9 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
137328
- var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
137328
+ var import_react17 = _$$_REQUIRE(_dependencyMap[9], "react");
137329
137329
  var import_react_native26 = _$$_REQUIRE(_dependencyMap[8], "react-native");
137330
137330
  var import_native_modules4 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
137331
137331
  var import_react_native9 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
@@ -137815,7 +137815,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137815
137815
  }, [handler]);
137816
137816
  }
137817
137817
  var import_react_native13 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
137818
+ var import_react13 = _$$_REQUIRE(_dependencyMap[9], "react");
137819
+ var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137820
+ var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
137818
137821
  var import_react12 = _$$_REQUIRE(_dependencyMap[9], "react");
137822
+ function useCloseConfirm() {
137823
+ var _getAppsInTossGlobals = getAppsInTossGlobals(),
137824
+ brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
137825
+ var _ref19 = (0, import_tds_react_native5.useDialog)(),
137826
+ openConfirm = _ref19.openConfirm;
137827
+ return (0, import_react12.useCallback)(function () {
137828
+ var _ref20 = _asyncToGenerator(function* ({
137829
+ onEntered
137830
+ }) {
137831
+ return yield openConfirm({
137832
+ title: `${(0, import_es_hangul2.josa)(brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
137833
+ leftButton: "\uB2EB\uAE30",
137834
+ rightButton: "\uC885\uB8CC\uD558\uAE30",
137835
+ closeOnDimmerClick: true,
137836
+ onEntered
137837
+ });
137838
+ });
137839
+ return function (_x3) {
137840
+ return _ref20.apply(this, arguments);
137841
+ };
137842
+ }(), [brandDisplayName, openConfirm]);
137843
+ }
137819
137844
  var EventEmitter = function () {
137820
137845
  function EventEmitter() {
137821
137846
  _classCallCheck(this, EventEmitter);
@@ -137867,8 +137892,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137867
137892
  var import_react_native12 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
137868
137893
  var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
137869
137894
  var NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
137895
+ var CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
137896
+ var CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
137870
137897
  var CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
137871
137898
  var CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
137899
+ var CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
137900
+ var CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
137872
137901
  var HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
137873
137902
  var HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
137874
137903
  function useNavigationBarLogging() {
@@ -137911,8 +137940,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137911
137940
  }
137912
137941
  });
137913
137942
  };
137943
+ var logClosePopupShow = () => {
137944
+ sendLog({
137945
+ log_name: CLOSE_POPUP_SHOW_LOG_NAME,
137946
+ log_type: "popup",
137947
+ params: {
137948
+ ...baseParams,
137949
+ schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
137950
+ }
137951
+ });
137952
+ };
137953
+ var logClosePopupCtaClick = confirm => {
137954
+ sendLog({
137955
+ log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
137956
+ log_type: "event",
137957
+ params: {
137958
+ ...baseParams,
137959
+ close_yn: confirm ? "Y" : "N",
137960
+ schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
137961
+ event_type: "click"
137962
+ }
137963
+ });
137964
+ };
137914
137965
  return {
137915
137966
  navBarImpression: logNavBarImpression,
137967
+ closePopupShow: logClosePopupShow,
137968
+ closePopupCtaClick: logClosePopupCtaClick,
137916
137969
  closeButtonClick: logCloseButtonClick,
137917
137970
  homeButtonClick: logHomeButtonClick
137918
137971
  };
@@ -137921,41 +137974,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137921
137974
  var backEventContext = (0, import_react_native13.useBackEventContext)();
137922
137975
  var logging = useNavigationBarLogging();
137923
137976
  var navigation = (0, import_react_native13.useNavigation)();
137924
- return (0, import_react12.useMemo)(() => ({
137925
- handleBack: () => {
137926
- if (backEventContext.hasBackEvent) {
137927
- backEventContext.onBack();
137928
- } else if (navigation.canGoBack()) {
137929
- navigation.goBack();
137930
- } else {
137931
- (0, import_react_native13.closeView)();
137932
- }
137933
- },
137934
- handleHomeButtonClick: () => {
137935
- logging.homeButtonClick();
137936
- if (homeEvent.hasSubscriptions()) {
137937
- homeEvent.emit({});
137938
- } else {
137939
- navigation.navigate("/", {}, {
137940
- pop: true
137977
+ var closeConfirm = useCloseConfirm();
137978
+ var global2 = getAppsInTossGlobals();
137979
+ return (0, import_react13.useMemo)(() => {
137980
+ var close = function () {
137981
+ var _ref21 = _asyncToGenerator(function* () {
137982
+ if (global2.appType !== "game") {
137983
+ (0, import_react_native13.closeView)();
137984
+ return;
137985
+ }
137986
+ var hasConfirmed = yield closeConfirm({
137987
+ onEntered: logging.closePopupShow
137941
137988
  });
137989
+ logging.closePopupCtaClick(hasConfirmed);
137990
+ if (hasConfirmed) {
137991
+ (0, import_react_native13.closeView)();
137992
+ }
137993
+ });
137994
+ return function close() {
137995
+ return _ref21.apply(this, arguments);
137996
+ };
137997
+ }();
137998
+ return {
137999
+ handleBack: () => {
138000
+ if (backEventContext.hasBackEvent) {
138001
+ backEventContext.onBack();
138002
+ } else if (navigation.canGoBack()) {
138003
+ navigation.goBack();
138004
+ } else {
138005
+ close();
138006
+ }
138007
+ },
138008
+ handleHomeButtonClick: () => {
138009
+ logging.homeButtonClick();
138010
+ if (homeEvent.hasSubscriptions()) {
138011
+ homeEvent.emit({});
138012
+ } else {
138013
+ navigation.navigate("/", {}, {
138014
+ pop: true
138015
+ });
138016
+ }
138017
+ },
138018
+ handleCloseButtonClick: () => {
138019
+ logging.closeButtonClick();
138020
+ close();
137942
138021
  }
137943
- },
137944
- handleCloseButtonClick: () => {
137945
- logging.closeButtonClick();
137946
- (0, import_react_native13.closeView)();
137947
- }
137948
- }), [backEventContext, navigation, logging]);
138022
+ };
138023
+ }, [global2.appType, backEventContext, navigation, closeConfirm, logging]);
137949
138024
  }
137950
138025
  var import_native_modules8 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
137951
138026
  var import_react_native18 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
137952
- var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138027
+ var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137953
138028
  var import_private4 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
137954
- var import_react13 = _$$_REQUIRE(_dependencyMap[9], "react");
138029
+ var import_react14 = _$$_REQUIRE(_dependencyMap[9], "react");
137955
138030
  var import_native_modules5 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
137956
138031
  var import_react_native16 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
138032
+ var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137957
138033
  var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137958
- var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137959
138034
  var import_private3 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
137960
138035
  var import_react_native15 = _$$_REQUIRE(_dependencyMap[8], "react-native");
137961
138036
  var import_react_native14 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
@@ -138038,7 +138113,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138038
138113
  var logging = useMoreButtonBottomSheetLogging();
138039
138114
  var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
138040
138115
  var iconBackgroundColor = brandPrimaryColorRGB ? `rgba(${brandPrimaryColorRGB.join(",")},0.1)` : adaptive.grey100;
138041
- return (0, import_jsx_runtime5.jsx)(import_tds_react_native5.ListRow, {
138116
+ return (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow, {
138042
138117
  left: (0, import_jsx_runtime5.jsx)(import_react_native15.View, {
138043
138118
  style: {
138044
138119
  width: 30,
@@ -138050,14 +138125,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138050
138125
  marginRight: 16,
138051
138126
  backgroundColor: iconBackgroundColor
138052
138127
  },
138053
- children: iconName ? (0, import_jsx_runtime5.jsx)(import_tds_react_native5.Asset.Icon, {
138128
+ children: iconName ? (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Icon, {
138054
138129
  frameShape: {
138055
138130
  width: 20,
138056
138131
  height: 20
138057
138132
  },
138058
138133
  color: globals.brandPrimaryColor,
138059
138134
  name: iconName
138060
- }) : (0, import_jsx_runtime5.jsx)(import_tds_react_native5.Asset.Image, {
138135
+ }) : (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Image, {
138061
138136
  frameShape: {
138062
138137
  width: 20,
138063
138138
  height: 20
@@ -138067,7 +138142,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138067
138142
  }
138068
138143
  })
138069
138144
  }),
138070
- contents: (0, import_jsx_runtime5.jsx)(import_tds_react_native5.ListRow.Texts, {
138145
+ contents: (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow.Texts, {
138071
138146
  type: "1RowTypeA",
138072
138147
  top: title,
138073
138148
  topProps: {
@@ -138103,10 +138178,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138103
138178
  }
138104
138179
  function addParamsToUrl(url, params) {
138105
138180
  var urlObj = new URL(url);
138106
- for (var _ref19 of Object.entries(params)) {
138107
- var _ref20 = _slicedToArray(_ref19, 2);
138108
- var key = _ref20[0];
138109
- var value = _ref20[1];
138181
+ for (var _ref22 of Object.entries(params)) {
138182
+ var _ref23 = _slicedToArray(_ref22, 2);
138183
+ var key = _ref23[0];
138184
+ var value = _ref23[1];
138110
138185
  urlObj.searchParams.set(key, value);
138111
138186
  }
138112
138187
  return urlObj.toString();
@@ -138120,8 +138195,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138120
138195
  function AppShareListMenu() {
138121
138196
  var initialScheme = (0, import_react_native16.getSchemeUri)();
138122
138197
  var isSandbox = (0, import_native_modules5.getOperationalEnvironment)() === "sandbox";
138123
- var _ref21 = (0, import_tds_react_native6.useDialog)(),
138124
- openConfirm = _ref21.openConfirm;
138198
+ var _ref24 = (0, import_tds_react_native7.useDialog)(),
138199
+ openConfirm = _ref24.openConfirm;
138125
138200
  var schemeForShare = addParamsToUrl(initialScheme, {
138126
138201
  referrer: SHARE_SCHEME_REFERRER
138127
138202
  });
@@ -138211,10 +138286,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138211
138286
  function useMoreButtonBottomSheet() {
138212
138287
  var globals = getAppsInTossGlobals();
138213
138288
  var adaptive = (0, import_private4.useAdaptive)();
138214
- var _ref22 = (0, import_react13.useState)([]),
138215
- _ref23 = _slicedToArray(_ref22, 2),
138216
- itemList = _ref23[0],
138217
- setItemList = _ref23[1];
138289
+ var _ref25 = (0, import_react14.useState)([]),
138290
+ _ref26 = _slicedToArray(_ref25, 2),
138291
+ itemList = _ref26[0],
138292
+ setItemList = _ref26[1];
138218
138293
  var appUpdateDialog = useAppUpdateDialog();
138219
138294
  var logging = useMoreButtonBottomSheetLogging();
138220
138295
  var overlay = (0, import_private4.useOverlay)();
@@ -138223,7 +138298,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138223
138298
  var isBottomSheetSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
138224
138299
  var isShareListMenuSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
138225
138300
  var isSettingsMenuSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.SETTINGS_MENU);
138226
- (0, import_react13.useEffect)(() => {
138301
+ (0, import_react14.useEffect)(() => {
138227
138302
  if (!isBottomSheetSupported) {
138228
138303
  return;
138229
138304
  }
@@ -138235,7 +138310,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138235
138310
  });
138236
138311
  }, [isBottomSheetSupported]);
138237
138312
  var onClickHandler = function () {
138238
- var _ref24 = _asyncToGenerator(function* () {
138313
+ var _ref27 = _asyncToGenerator(function* () {
138239
138314
  logging.open();
138240
138315
  if (!isBottomSheetSupported) {
138241
138316
  yield appUpdateDialog.open({
@@ -138254,9 +138329,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138254
138329
  close();
138255
138330
  };
138256
138331
  return (0, import_jsx_runtime9.jsx)(BottomSheetImpressionArea, {
138257
- children: (0, import_jsx_runtime9.jsx)(import_tds_react_native7.BottomSheet.Root, {
138258
- header: (0, import_jsx_runtime9.jsx)(import_tds_react_native7.ListHeader, {
138259
- title: (0, import_jsx_runtime9.jsx)(import_tds_react_native7.ListHeader.TitleParagraph, {
138332
+ children: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.Root, {
138333
+ header: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader, {
138334
+ title: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader.TitleParagraph, {
138260
138335
  color: adaptive.grey800,
138261
138336
  fontWeight: "bold",
138262
138337
  typography: "t5",
@@ -138264,7 +138339,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138264
138339
  })
138265
138340
  }),
138266
138341
  open: isOpen,
138267
- cta: (0, import_jsx_runtime9.jsx)(import_tds_react_native7.BottomSheet.CTA, {
138342
+ cta: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.CTA, {
138268
138343
  size: "large",
138269
138344
  type: "dark",
138270
138345
  style: "weak",
@@ -138275,7 +138350,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138275
138350
  }),
138276
138351
  onClose: handleClose,
138277
138352
  onExited: exit,
138278
- children: (0, import_jsx_runtime9.jsxs)(import_tds_react_native7.List, {
138353
+ children: (0, import_jsx_runtime9.jsxs)(import_tds_react_native8.List, {
138279
138354
  rowSeparator: "none",
138280
138355
  children: [itemList.map(item => (0, import_jsx_runtime9.jsx)(Menu, {
138281
138356
  title: item.contactItemName,
@@ -138288,7 +138363,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138288
138363
  });
138289
138364
  });
138290
138365
  return function onClickHandler() {
138291
- return _ref24.apply(this, arguments);
138366
+ return _ref27.apply(this, arguments);
138292
138367
  };
138293
138368
  }();
138294
138369
  return {
@@ -138299,7 +138374,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138299
138374
  children
138300
138375
  }) {
138301
138376
  var logging = useMoreButtonBottomSheetLogging();
138302
- (0, import_react13.useEffect)(() => {
138377
+ (0, import_react14.useEffect)(() => {
138303
138378
  logging.show();
138304
138379
  }, [logging]);
138305
138380
  return (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {
@@ -138308,8 +138383,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138308
138383
  }
138309
138384
  var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
138310
138385
  var import_react_native19 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
138311
- var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138312
- var import_react14 = _$$_REQUIRE(_dependencyMap[9], "react");
138386
+ var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138387
+ var import_react15 = _$$_REQUIRE(_dependencyMap[9], "react");
138313
138388
  var import_react_native20 = _$$_REQUIRE(_dependencyMap[8], "react-native");
138314
138389
  var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138315
138390
  function TopNavigation({
@@ -138319,9 +138394,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138319
138394
  }) {
138320
138395
  var insets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
138321
138396
  var navigation = (0, import_react_native19.useNavigation)();
138322
- (0, import_react14.useEffect)(() => {
138323
- var _getAppsInTossGlobals = getAppsInTossGlobals(),
138324
- navigationBar = _getAppsInTossGlobals.navigationBar;
138397
+ (0, import_react15.useEffect)(() => {
138398
+ var _getAppsInTossGlobals2 = getAppsInTossGlobals(),
138399
+ navigationBar = _getAppsInTossGlobals2.navigationBar;
138325
138400
  var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
138326
138401
  var transparent = parsedNavigationBar?.transparentBackground ?? false;
138327
138402
  var theme = parsedNavigationBar?.theme ?? "light";
@@ -138330,7 +138405,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138330
138405
  header: () => (0, import_jsx_runtime10.jsxs)(import_react_native20.View, {
138331
138406
  style: {
138332
138407
  width: "100%",
138333
- backgroundColor: transparent ? void 0 : theme === "light" ? import_tds_react_native8.colors.lightThemeBackground : import_tds_react_native8.colors.darkThemeBackground
138408
+ backgroundColor: transparent ? void 0 : theme === "light" ? import_tds_react_native9.colors.lightThemeBackground : import_tds_react_native9.colors.darkThemeBackground
138334
138409
  },
138335
138410
  pointerEvents: "box-none",
138336
138411
  children: [(0, import_jsx_runtime10.jsx)(import_react_native20.View, {
@@ -138409,7 +138484,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138409
138484
  });
138410
138485
  }
138411
138486
  var BACK_BUTTON_XML = `<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24"><path d="m20.8 20.7c-.3 0-.6-.1-.8-.4l-7.5-7.5c-.5-.5-.5-1.2 0-1.7l7.5-7.5c.5-.5 1.2-.5 1.7 0s.5 1.2 0 1.7l-6.8 6.7 6.7 6.7c.5.5.5 1.2 0 1.7-.2.2-.5.3-.8.3z" fill="__COLOR__"/></svg>`;
138412
- var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138487
+ var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138413
138488
  var import_react_native22 = _$$_REQUIRE(_dependencyMap[8], "react-native");
138414
138489
  var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138415
138490
  function HomeButton({
@@ -138426,10 +138501,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138426
138501
  height: 34,
138427
138502
  paddingLeft: 10,
138428
138503
  paddingRight: 10,
138429
- backgroundColor: theme === "light" ? import_tds_react_native9.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)",
138504
+ backgroundColor: theme === "light" ? import_tds_react_native10.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)",
138430
138505
  borderRadius: 99
138431
138506
  },
138432
- children: [children, (0, import_jsx_runtime12.jsx)(import_tds_react_native9.Icon, {
138507
+ children: [children, (0, import_jsx_runtime12.jsx)(import_tds_react_native10.Icon, {
138433
138508
  name: "icon-home-mono",
138434
138509
  size: 18
138435
138510
  })]
@@ -138471,7 +138546,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138471
138546
  })]
138472
138547
  });
138473
138548
  }
138474
- var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138549
+ var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138475
138550
  var import_react_native25 = _$$_REQUIRE(_dependencyMap[8], "react-native");
138476
138551
  var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138477
138552
  function Menu2({
@@ -138481,8 +138556,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138481
138556
  onLongPressDots,
138482
138557
  onPressClose
138483
138558
  }) {
138484
- var backgroundColor = theme === "light" ? import_tds_react_native10.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)";
138485
- var iconColor = theme === "light" ? import_tds_react_native10.colors.greyOpacity600 : "rgba(253, 253, 255, 0.75)";
138559
+ var backgroundColor = theme === "light" ? import_tds_react_native11.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)";
138560
+ var iconColor = theme === "light" ? import_tds_react_native11.colors.greyOpacity600 : "rgba(253, 253, 255, 0.75)";
138486
138561
  return (0, import_jsx_runtime14.jsxs)(import_react_native25.View, {
138487
138562
  style: {
138488
138563
  flexDirection: "row",
@@ -138501,13 +138576,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138501
138576
  backgroundColor
138502
138577
  },
138503
138578
  onPress: () => {
138504
- import_tds_react_native10.tdsEvent.emit("navigationAccessoryEvent", {
138579
+ import_tds_react_native11.tdsEvent.emit("navigationAccessoryEvent", {
138505
138580
  id: accessoryButton.id
138506
138581
  });
138507
138582
  accessoryButton.onPress?.();
138508
138583
  },
138509
138584
  disabled: accessoryButton.disabled,
138510
- children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
138585
+ children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
138511
138586
  name: accessoryButton.icon.name ?? "",
138512
138587
  accessibilityLabel: accessoryButton.title,
138513
138588
  color: iconColor,
@@ -138533,7 +138608,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138533
138608
  children: [(0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
138534
138609
  onPress: onPressDots,
138535
138610
  onLongPress: onLongPressDots,
138536
- children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
138611
+ children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
138537
138612
  name: "icon-dots-mono",
138538
138613
  accessibilityLabel: "\uB354\uBCF4\uAE30",
138539
138614
  color: iconColor,
@@ -138543,11 +138618,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138543
138618
  style: {
138544
138619
  width: 1,
138545
138620
  height: 16,
138546
- backgroundColor: theme === "light" ? import_tds_react_native10.colors.greyOpacity200 : "rgba(222, 222, 255, 0.19)"
138621
+ backgroundColor: theme === "light" ? import_tds_react_native11.colors.greyOpacity200 : "rgba(222, 222, 255, 0.19)"
138547
138622
  }
138548
138623
  }), (0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
138549
138624
  onPress: onPressClose,
138550
- children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
138625
+ children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
138551
138626
  name: "icon-appsintoss-close-mono",
138552
138627
  accessibilityLabel: "\uB2EB\uAE30",
138553
138628
  color: iconColor,
@@ -138558,15 +138633,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138558
138633
  })]
138559
138634
  });
138560
138635
  }
138561
- var import_react15 = _$$_REQUIRE(_dependencyMap[9], "react");
138636
+ var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
138562
138637
  var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138563
138638
  function NavigationBarImpressionArea({
138564
138639
  children,
138565
138640
  withHomeButton
138566
138641
  }) {
138567
- var hasLogged = (0, import_react15.useRef)(false);
138642
+ var hasLogged = (0, import_react16.useRef)(false);
138568
138643
  var logging = useNavigationBarLogging();
138569
- (0, import_react15.useEffect)(() => {
138644
+ (0, import_react16.useEffect)(() => {
138570
138645
  if (hasLogged.current === false) {
138571
138646
  logging.navBarImpression({
138572
138647
  home_icon_yn: withHomeButton ? "Y" : "N"
@@ -138627,8 +138702,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138627
138702
  var navigationEvent = useNavigationEvent();
138628
138703
  var _useNavigationBarCont2 = useNavigationBarContext(),
138629
138704
  navigationRightButton = _useNavigationBarCont2.navigationRightButton;
138630
- var _getAppsInTossGlobals2 = getAppsInTossGlobals(),
138631
- navigationBar = _getAppsInTossGlobals2.navigationBar;
138705
+ var _getAppsInTossGlobals3 = getAppsInTossGlobals(),
138706
+ navigationBar = _getAppsInTossGlobals3.navigationBar;
138632
138707
  var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
138633
138708
  useHardwareBackPress(navigationEvent.handleBack);
138634
138709
  return (0, import_jsx_runtime17.jsx)(TopNavigation, {
@@ -138668,7 +138743,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138668
138743
  function GameAppContainer({
138669
138744
  children
138670
138745
  }) {
138671
- (0, import_react16.useEffect)(() => {
138746
+ (0, import_react17.useEffect)(() => {
138672
138747
  if (import_react_native26.Platform.OS === "ios") {
138673
138748
  (0, import_native_modules9.setIosSwipeGestureEnabled)({
138674
138749
  isEnabled: false
@@ -138714,7 +138789,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138714
138789
  ...initialProps
138715
138790
  }), (0, import_jsx_runtime19.jsx)(Container, {
138716
138791
  ...initialProps,
138717
- children: (0, import_jsx_runtime19.jsx)(import_tds_react_native11.TDSProvider, {
138792
+ children: (0, import_jsx_runtime19.jsx)(import_tds_react_native12.TDSProvider, {
138718
138793
  colorPreference: "light",
138719
138794
  token: {
138720
138795
  color: {
@@ -138796,32 +138871,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138796
138871
  var import_user_scripts = _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/user-scripts");
138797
138872
  var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
138798
138873
  var import_react_native41 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
138799
- var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138800
- var import_react27 = _$$_REQUIRE(_dependencyMap[9], "react");
138874
+ var import_tds_react_native16 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138875
+ var import_react28 = _$$_REQUIRE(_dependencyMap[9], "react");
138801
138876
  var import_react_native42 = _$$_REQUIRE(_dependencyMap[8], "react-native");
138802
138877
  var import_native_modules11 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
138803
138878
  var import_react_native_webview = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
138804
- var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
138879
+ var import_react19 = _$$_REQUIRE(_dependencyMap[9], "react");
138805
138880
  var import_react_native30 = _$$_REQUIRE(_dependencyMap[8], "react-native");
138806
138881
  var import_react_native29 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
138807
- var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138808
- var import_react17 = _$$_REQUIRE(_dependencyMap[9], "react");
138882
+ var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138883
+ var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
138884
+ var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
138809
138885
  var import_jsx_runtime20 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138810
138886
  function GameWebviewNavigationBar() {
138811
- var _ref25 = (0, import_tds_react_native12.useDialog)(),
138812
- openConfirm = _ref25.openConfirm;
138887
+ var _ref28 = (0, import_tds_react_native13.useDialog)(),
138888
+ openConfirm = _ref28.openConfirm;
138889
+ var global2 = getAppsInTossGlobals();
138813
138890
  var logging = useNavigationBarLogging();
138814
138891
  var _useMoreButtonBottomS3 = useMoreButtonBottomSheet(),
138815
138892
  openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
138816
138893
  var _useNavigationBarCont3 = useNavigationBarContext(),
138817
138894
  navigationRightButton = _useNavigationBarCont3.navigationRightButton;
138818
- var _getAppsInTossGlobals3 = getAppsInTossGlobals(),
138819
- navigationBar = _getAppsInTossGlobals3.navigationBar;
138895
+ var _getAppsInTossGlobals4 = getAppsInTossGlobals(),
138896
+ navigationBar = _getAppsInTossGlobals4.navigationBar;
138820
138897
  var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
138821
- var handleGameWebviewClose = (0, import_react17.useCallback)(_asyncToGenerator(function* () {
138898
+ var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
138822
138899
  logging.closeButtonClick();
138823
- (0, import_react_native29.closeView)();
138824
- }), [logging, openConfirm]);
138900
+ var isConfirmed = yield openConfirm({
138901
+ title: `${(0, import_es_hangul3.josa)(global2.brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
138902
+ leftButton: "\uB2EB\uAE30",
138903
+ rightButton: "\uC885\uB8CC\uD558\uAE30",
138904
+ closeOnDimmerClick: true,
138905
+ onEntered: logging.closePopupShow
138906
+ });
138907
+ logging.closePopupCtaClick(isConfirmed);
138908
+ if (isConfirmed) {
138909
+ (0, import_react_native29.closeView)();
138910
+ }
138911
+ }), [global2.brandDisplayName, logging, openConfirm]);
138825
138912
  return (0, import_jsx_runtime20.jsx)(TopNavigation, {
138826
138913
  right: (0, import_jsx_runtime20.jsx)(Menu2, {
138827
138914
  theme: parsedNavigationBar?.theme ?? "dark",
@@ -138832,8 +138919,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138832
138919
  });
138833
138920
  }
138834
138921
  var import_jsx_runtime21 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138835
- var GameWebView = (0, import_react18.forwardRef)(function GameWebView2(props, ref) {
138836
- (0, import_react18.useEffect)(() => {
138922
+ var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
138923
+ (0, import_react19.useEffect)(() => {
138837
138924
  if (import_react_native30.Platform.OS === "ios") {
138838
138925
  (0, import_native_modules11.setIosSwipeGestureEnabled)({
138839
138926
  isEnabled: false
@@ -138859,9 +138946,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138859
138946
  });
138860
138947
  });
138861
138948
  var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
138862
- var import_react20 = _$$_REQUIRE(_dependencyMap[9], "react");
138949
+ var import_react21 = _$$_REQUIRE(_dependencyMap[9], "react");
138863
138950
  var import_react_native31 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
138864
- var import_react19 = _$$_REQUIRE(_dependencyMap[9], "react");
138951
+ var import_react20 = _$$_REQUIRE(_dependencyMap[9], "react");
138865
138952
  var import_jsx_runtime22 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138866
138953
  function PartnerWebviewNavigationBar({
138867
138954
  onBackButtonClick,
@@ -138877,7 +138964,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138877
138964
  var theme = parsedNavigationBar?.theme ?? "light";
138878
138965
  var _useNavigationBarCont4 = useNavigationBarContext(),
138879
138966
  navigationRightButton = _useNavigationBarCont4.navigationRightButton;
138880
- var handleClose = (0, import_react19.useCallback)(_asyncToGenerator(function* () {
138967
+ var handleClose = (0, import_react20.useCallback)(_asyncToGenerator(function* () {
138881
138968
  logging.closeButtonClick();
138882
138969
  (0, import_react_native31.closeView)();
138883
138970
  }), [logging]);
@@ -138911,7 +138998,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138911
138998
  });
138912
138999
  }
138913
139000
  var import_jsx_runtime23 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138914
- var PartnerWebView = (0, import_react20.forwardRef)(function PartnerWebViewScreen({
139001
+ var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen({
138915
139002
  onBackButtonClick,
138916
139003
  onHomeButtonClick,
138917
139004
  ...webViewProps
@@ -139323,7 +139410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139323
139410
  }
139324
139411
  showFullScreenAd.isSupported = import_native_modules14.GoogleAdMob.showAppsInTossAdMob.isSupported;
139325
139412
  var import_react_native34 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139326
- function tossAdEventLog(_x3) {
139413
+ function tossAdEventLog(_x4) {
139327
139414
  return _tossAdEventLog.apply(this, arguments);
139328
139415
  }
139329
139416
  function _tossAdEventLog() {
@@ -139344,7 +139431,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139344
139431
  });
139345
139432
  return _tossAdEventLog.apply(this, arguments);
139346
139433
  }
139347
- var import_react21 = _$$_REQUIRE(_dependencyMap[9], "react");
139434
+ var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
139348
139435
  function serializeError(error) {
139349
139436
  return JSON.stringify(error, (_, value) => {
139350
139437
  if (value instanceof Error) {
@@ -139375,12 +139462,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139375
139462
  return;
139376
139463
  }
139377
139464
  var wrappedFunc = function () {
139378
- var _ref28 = _asyncToGenerator(function* (...args2) {
139465
+ var _ref31 = _asyncToGenerator(function* (...args2) {
139379
139466
  var result = yield func(...args2);
139380
139467
  return result;
139381
139468
  });
139382
139469
  return function wrappedFunc() {
139383
- return _ref28.apply(this, arguments);
139470
+ return _ref31.apply(this, arguments);
139384
139471
  };
139385
139472
  }();
139386
139473
  wrappedFunc(...args).then(result => {
@@ -139401,12 +139488,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139401
139488
  asyncHandlerMap,
139402
139489
  eventListenerMap
139403
139490
  }) {
139404
- var ref = (0, import_react21.useRef)(null);
139405
- var injectedJavaScript = (0, import_react21.useMemo)(() => `window.__CONSTANT_HANDLER_MAP = ${JSON.stringify(Object.entries(constantHandlerMap).reduce((acc, [key, value]) => {
139491
+ var ref = (0, import_react22.useRef)(null);
139492
+ var injectedJavaScript = (0, import_react22.useMemo)(() => `window.__CONSTANT_HANDLER_MAP = ${JSON.stringify(Object.entries(constantHandlerMap).reduce((acc, [key, value]) => {
139406
139493
  acc[key] = typeof value === "function" ? value() : value;
139407
139494
  return acc;
139408
139495
  }, {}))};`, [constantHandlerMap]);
139409
- (0, import_react21.useEffect)(() => {
139496
+ (0, import_react22.useEffect)(() => {
139410
139497
  ref.current?.injectJavaScript(injectedJavaScript);
139411
139498
  }, [injectedJavaScript]);
139412
139499
  var createHandleOnEvent = (functionName, eventId) => response => {
@@ -139420,8 +139507,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139420
139507
  window.__GRANITE_NATIVE_EMITTER.emit('${functionName}/onError/${eventId}', ${serializedError});
139421
139508
  `);
139422
139509
  };
139423
- var $onMessage = (0, import_react21.useCallback)(function () {
139424
- var _ref29 = _asyncToGenerator(function* (e) {
139510
+ var $onMessage = (0, import_react22.useCallback)(function () {
139511
+ var _ref32 = _asyncToGenerator(function* (e) {
139425
139512
  onMessage?.(e);
139426
139513
  var data = parseNativeEventData(e.nativeEvent.data);
139427
139514
  if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
@@ -139463,8 +139550,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139463
139550
  }
139464
139551
  }
139465
139552
  });
139466
- return function (_x4) {
139467
- return _ref29.apply(this, arguments);
139553
+ return function (_x5) {
139554
+ return _ref32.apply(this, arguments);
139468
139555
  };
139469
139556
  }(), [onMessage]);
139470
139557
  return {
@@ -139482,20 +139569,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139482
139569
  }
139483
139570
  }
139484
139571
  var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
139485
- var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
139572
+ var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
139486
139573
  function useSafeAreaInsetsEvent() {
139487
139574
  var insets = (0, import_react_native_safe_area_context2.useSafeAreaInsets)();
139488
- (0, import_react22.useEffect)(() => {
139575
+ (0, import_react23.useEffect)(() => {
139489
139576
  safeAreaInsetsChange.emit(insets);
139490
139577
  }, [insets]);
139491
- (0, import_react22.useEffect)(() => {
139578
+ (0, import_react23.useEffect)(() => {
139492
139579
  return () => safeAreaInsetsChange.clearSubscriptions();
139493
139580
  }, []);
139494
139581
  return safeAreaInsetsChange;
139495
139582
  }
139496
139583
  var import_react_native35 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139584
+ var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
139585
+ var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
139586
+ var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
139497
139587
  var import_react24 = _$$_REQUIRE(_dependencyMap[9], "react");
139498
- var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
139499
139588
  var INITIAL_STATE = {
139500
139589
  stack: [],
139501
139590
  index: -1
@@ -139544,11 +139633,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139544
139633
  }
139545
139634
  }
139546
139635
  function useWebViewHistory() {
139547
- var _ref30 = (0, import_react23.useReducer)(reducer, INITIAL_STATE),
139548
- _ref31 = _slicedToArray(_ref30, 2),
139549
- state = _ref31[0],
139550
- dispatch = _ref31[1];
139551
- var onNavigationStateChange = (0, import_react23.useCallback)(({
139636
+ var _ref33 = (0, import_react24.useReducer)(reducer, INITIAL_STATE),
139637
+ _ref34 = _slicedToArray(_ref33, 2),
139638
+ state = _ref34[0],
139639
+ dispatch = _ref34[1];
139640
+ var onNavigationStateChange = (0, import_react24.useCallback)(({
139552
139641
  url,
139553
139642
  canGoForward: canGoForward2
139554
139643
  }) => {
@@ -139558,7 +139647,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139558
139647
  canGoForward: canGoForward2
139559
139648
  });
139560
139649
  }, []);
139561
- var _ref32 = (0, import_react23.useMemo)(() => {
139650
+ var _ref35 = (0, import_react24.useMemo)(() => {
139562
139651
  var canBack = state.index > 0;
139563
139652
  var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
139564
139653
  return {
@@ -139566,8 +139655,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139566
139655
  canGoForward: canFwd
139567
139656
  };
139568
139657
  }, [state.index, state.stack.length]),
139569
- canGoBack = _ref32.canGoBack,
139570
- canGoForward = _ref32.canGoForward;
139658
+ canGoBack = _ref35.canGoBack,
139659
+ canGoForward = _ref35.canGoForward;
139571
139660
  return {
139572
139661
  onNavigationStateChange,
139573
139662
  hasHistory: canGoBack,
@@ -139578,19 +139667,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139578
139667
  var _useWebViewHistory = useWebViewHistory(),
139579
139668
  hasHistory = _useWebViewHistory.hasHistory,
139580
139669
  onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
139581
- var _ref33 = (0, import_react_native35.useBackEventState)(),
139582
- webBackHandlersRef = _ref33.handlersRef,
139583
- hasWebBackEvent = _ref33.hasBackEvent,
139584
- addWebBackEventListener = _ref33.addEventListener,
139585
- removeWebBackEventListener = _ref33.removeEventListener;
139670
+ var _ref36 = (0, import_react_native35.useBackEventState)(),
139671
+ webBackHandlersRef = _ref36.handlersRef,
139672
+ hasWebBackEvent = _ref36.hasBackEvent,
139673
+ addWebBackEventListener = _ref36.addEventListener,
139674
+ removeWebBackEventListener = _ref36.removeEventListener;
139586
139675
  var logging = useNavigationBarLogging();
139587
- var addEventListener = (0, import_react24.useCallback)(handler => {
139676
+ var _ref37 = (0, import_tds_react_native14.useDialog)(),
139677
+ openConfirm = _ref37.openConfirm;
139678
+ var global2 = getAppsInTossGlobals();
139679
+ var addEventListener = (0, import_react25.useCallback)(handler => {
139588
139680
  addWebBackEventListener(handler);
139589
139681
  }, [addWebBackEventListener]);
139590
- var removeEventListener = (0, import_react24.useCallback)(handler => {
139682
+ var removeEventListener = (0, import_react25.useCallback)(handler => {
139591
139683
  removeWebBackEventListener(handler);
139592
139684
  }, [removeWebBackEventListener]);
139593
- var handleWebBack = (0, import_react24.useCallback)(_asyncToGenerator(function* () {
139685
+ var handleWebBack = (0, import_react25.useCallback)(_asyncToGenerator(function* () {
139594
139686
  if (hasWebBackEvent) {
139595
139687
  for (var handler of webBackHandlersRef) {
139596
139688
  handler();
@@ -139600,10 +139692,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139600
139692
  if (hasHistory) {
139601
139693
  webViewRef.current?.injectJavaScript("window.history.back();");
139602
139694
  } else {
139603
- (0, import_react_native35.closeView)();
139695
+ if (global2.webViewType !== "game") {
139696
+ (0, import_react_native35.closeView)();
139697
+ return;
139698
+ }
139699
+ var isConfirmed = yield openConfirm({
139700
+ title: `${(0, import_es_hangul4.josa)(global2.brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
139701
+ leftButton: "\uB2EB\uAE30",
139702
+ rightButton: "\uC885\uB8CC\uD558\uAE30",
139703
+ closeOnDimmerClick: true,
139704
+ onEntered: logging.closePopupShow
139705
+ });
139706
+ logging.closePopupCtaClick(isConfirmed);
139707
+ if (isConfirmed) {
139708
+ (0, import_react_native35.closeView)();
139709
+ }
139604
139710
  }
139605
- }), [hasHistory, hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
139606
- var handleWebHome = (0, import_react24.useCallback)(() => {
139711
+ }), [global2.webViewType, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
139712
+ var handleWebHome = (0, import_react25.useCallback)(() => {
139607
139713
  logging.homeButtonClick();
139608
139714
  if (homeEvent.hasSubscriptions()) {
139609
139715
  homeEvent.emit({});
@@ -139616,7 +139722,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139616
139722
  })();
139617
139723
  `);
139618
139724
  }, [hasWebBackEvent, webBackHandlersRef, logging, webViewInitialURL, webViewRef]);
139619
- return (0, import_react24.useMemo)(() => ({
139725
+ return (0, import_react25.useMemo)(() => ({
139620
139726
  addEventListener,
139621
139727
  removeEventListener,
139622
139728
  handleWebBack,
@@ -139771,8 +139877,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139771
139877
  }) {
139772
139878
  var platform = (0, import_native_modules15.getPlatformOS)();
139773
139879
  var appVersion = (0, import_native_modules15.getTossAppVersion)();
139774
- var _ref35 = (0, import_react_native36.useWindowDimensions)(),
139775
- fontScale = _ref35.fontScale;
139880
+ var _ref39 = (0, import_react_native36.useWindowDimensions)(),
139881
+ fontScale = _ref39.fontScale;
139776
139882
  var platformString = platform === "ios" ? "iPhone" : "Android phone";
139777
139883
  var fontA11y = mapFontScaleToCategory(fontScale, platform);
139778
139884
  var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
@@ -139780,18 +139886,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139780
139886
  }
139781
139887
  var import_native_modules16 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
139782
139888
  var import_react_native37 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139783
- var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
139889
+ var import_react26 = _$$_REQUIRE(_dependencyMap[9], "react");
139784
139890
  function useGeolocation({
139785
139891
  accuracy,
139786
139892
  distanceInterval,
139787
139893
  timeInterval
139788
139894
  }) {
139789
139895
  var isVisible = (0, import_react_native37.useVisibility)();
139790
- var _ref36 = (0, import_react25.useState)(null),
139791
- _ref37 = _slicedToArray(_ref36, 2),
139792
- location = _ref37[0],
139793
- setLocation = _ref37[1];
139794
- (0, import_react25.useEffect)(() => {
139896
+ var _ref40 = (0, import_react26.useState)(null),
139897
+ _ref41 = _slicedToArray(_ref40, 2),
139898
+ location = _ref41[0],
139899
+ setLocation = _ref41[1];
139900
+ (0, import_react26.useEffect)(() => {
139795
139901
  if (!isVisible) {
139796
139902
  return;
139797
139903
  }
@@ -139808,17 +139914,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139808
139914
  return location;
139809
139915
  }
139810
139916
  var import_react_native38 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139811
- var import_react26 = _$$_REQUIRE(_dependencyMap[9], "react");
139917
+ var import_react27 = _$$_REQUIRE(_dependencyMap[9], "react");
139812
139918
  function useWaitForReturnNavigator() {
139813
- var callbacks = (0, import_react26.useRef)([]).current;
139919
+ var callbacks = (0, import_react27.useRef)([]).current;
139814
139920
  var navigation = (0, import_react_native38.useNavigation)();
139815
- var startNavigating = (0, import_react26.useCallback)((route, params) => {
139921
+ var startNavigating = (0, import_react27.useCallback)((route, params) => {
139816
139922
  return new Promise(resolve => {
139817
139923
  callbacks.push(resolve);
139818
139924
  navigation.navigate(route, params);
139819
139925
  });
139820
139926
  }, [callbacks, navigation]);
139821
- var handleVisibilityChange = (0, import_react26.useCallback)(state => {
139927
+ var handleVisibilityChange = (0, import_react27.useCallback)(state => {
139822
139928
  if (state === "visible" && callbacks.length > 0) {
139823
139929
  for (var callback of callbacks) {
139824
139930
  callback();
@@ -139840,9 +139946,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139840
139946
  }
139841
139947
  var import_native_modules17 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
139842
139948
  var import_react_native39 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139843
- var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
139949
+ var import_tds_react_native15 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
139844
139950
  function useHandleWebViewProcessDidTerminate(webViewRef) {
139845
- var toast = (0, import_tds_react_native13.useToast)();
139951
+ var toast = (0, import_tds_react_native15.useToast)();
139846
139952
  return () => {
139847
139953
  webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {});
139848
139954
  toast.open("\uBB38\uC81C\uAC00 \uC0DD\uACA8\uC11C \uBBF8\uB2C8\uC571\uC744 \uB2E4\uC2DC \uC2DC\uC791\uD588\uC5B4\uC694.", {
@@ -139852,7 +139958,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139852
139958
  webViewRef.current?.reload();
139853
139959
  };
139854
139960
  }
139855
- function webViewMemoryDebugLog(_x5) {
139961
+ function webViewMemoryDebugLog(_x6) {
139856
139962
  return _webViewMemoryDebugLog.apply(this, arguments);
139857
139963
  }
139858
139964
  function _webViewMemoryDebugLog() {
@@ -139946,23 +140052,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139946
140052
  var TYPES = ["partner", "external", "game"];
139947
140053
  var WEBVIEW_TYPES = {
139948
140054
  partner: PartnerWebView,
139949
- external: import_tds_react_native14.ExternalWebViewScreen,
140055
+ external: import_tds_react_native16.ExternalWebViewScreen,
139950
140056
  game: GameWebView
139951
140057
  };
139952
140058
  function mergeSchemeQueryParamsInto(url) {
139953
140059
  var baseUrl = new URL(url);
139954
140060
  var schemeUrl = new URL((0, import_react_native41.getSchemeUri)());
139955
140061
  var resultUrl = new URL(schemeUrl.pathname, baseUrl.origin);
139956
- for (var _ref38 of baseUrl.searchParams.entries()) {
139957
- var _ref39 = _slicedToArray(_ref38, 2);
139958
- var key = _ref39[0];
139959
- var value = _ref39[1];
140062
+ for (var _ref42 of baseUrl.searchParams.entries()) {
140063
+ var _ref43 = _slicedToArray(_ref42, 2);
140064
+ var key = _ref43[0];
140065
+ var value = _ref43[1];
139960
140066
  resultUrl.searchParams.set(key, value);
139961
140067
  }
139962
- for (var _ref40 of schemeUrl.searchParams.entries()) {
139963
- var _ref41 = _slicedToArray(_ref40, 2);
139964
- var _key = _ref41[0];
139965
- var _value = _ref41[1];
140068
+ for (var _ref44 of schemeUrl.searchParams.entries()) {
140069
+ var _ref45 = _slicedToArray(_ref44, 2);
140070
+ var _key = _ref45[0];
140071
+ var _value = _ref45[1];
139966
140072
  resultUrl.searchParams.set(_key, _value);
139967
140073
  }
139968
140074
  return resultUrl;
@@ -139972,8 +140078,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139972
140078
  var devUrl = `http://${local.host}:${local.port}`;
139973
140079
  return mergeSchemeQueryParamsInto(devUrl);
139974
140080
  }
139975
- var _ref42 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
139976
- rawUrl = _ref42.url;
140081
+ var _ref46 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
140082
+ rawUrl = _ref46.url;
139977
140083
  var url = mergeSchemeQueryParamsInto(rawUrl);
139978
140084
  var deploymentId = env.getDeploymentId();
139979
140085
  if (deploymentId) {
@@ -139990,17 +140096,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139990
140096
  if (!TYPES.includes(type)) {
139991
140097
  throw new Error(`Invalid WebView type: '${type}'`);
139992
140098
  }
139993
- var webViewRef = (0, import_react27.useRef)(null);
139994
- var url = (0, import_react27.useMemo)(() => getWebViewURL(local), [local]);
140099
+ var webViewRef = (0, import_react28.useRef)(null);
140100
+ var url = (0, import_react28.useMemo)(() => getWebViewURL(local), [local]);
139995
140101
  var webBackHandler = useWebBackHandler(url, webViewRef);
139996
140102
  var global2 = getAppsInTossGlobals();
139997
140103
  var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
139998
140104
  var navigationBarContext = useNavigationBarContext();
139999
140105
  var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
140000
- var _ref43 = (0, import_react27.useState)(props.allowsBackForwardNavigationGestures),
140001
- _ref44 = _slicedToArray(_ref43, 2),
140002
- allowsBackForwardNavigationGestures = _ref44[0],
140003
- setAllowsBackForwardNavigationGestures = _ref44[1];
140106
+ var _ref47 = (0, import_react28.useState)(props.allowsBackForwardNavigationGestures),
140107
+ _ref48 = _slicedToArray(_ref47, 2),
140108
+ allowsBackForwardNavigationGestures = _ref48[0],
140109
+ setAllowsBackForwardNavigationGestures = _ref48[1];
140004
140110
  var handler = useBridgeHandler({
140005
140111
  onMessage,
140006
140112
  eventListenerMap: {
@@ -140008,7 +140114,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140008
140114
  navigationAccessoryEvent: ({
140009
140115
  onEvent,
140010
140116
  onError
140011
- }) => import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
140117
+ }) => import_tds_react_native16.tdsEvent.addEventListener("navigationAccessoryEvent", {
140012
140118
  onEvent,
140013
140119
  onError
140014
140120
  }),
@@ -140078,19 +140184,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140078
140184
  return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
140079
140185
  },
140080
140186
  addAccessoryButton: function () {
140081
- var _ref45 = _asyncToGenerator(function* (params) {
140187
+ var _ref49 = _asyncToGenerator(function* (params) {
140082
140188
  return navigationBarContext.addNavigationRightButton(params);
140083
140189
  });
140084
- return function addAccessoryButton(_x6) {
140085
- return _ref45.apply(this, arguments);
140190
+ return function addAccessoryButton(_x7) {
140191
+ return _ref49.apply(this, arguments);
140086
140192
  };
140087
140193
  }(),
140088
140194
  removeAccessoryButton: function () {
140089
- var _ref46 = _asyncToGenerator(function* () {
140195
+ var _ref50 = _asyncToGenerator(function* () {
140090
140196
  return navigationBarContext.removeNavigationRightButton();
140091
140197
  });
140092
140198
  return function removeAccessoryButton() {
140093
- return _ref46.apply(this, arguments);
140199
+ return _ref50.apply(this, arguments);
140094
140200
  };
140095
140201
  }(),
140096
140202
  requestPermission: appsInTossAsyncBridges.requestPermission,
@@ -140117,16 +140223,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140117
140223
  tossAdEventLog,
140118
140224
  memoryDebugLog: webViewMemoryDebugLog,
140119
140225
  debugLog: function () {
140120
- var _ref47 = _asyncToGenerator(function* (event) {
140226
+ var _ref51 = _asyncToGenerator(function* (event) {
140121
140227
  sendLog(event);
140122
140228
  });
140123
- return function debugLog(_x7) {
140124
- return _ref47.apply(this, arguments);
140229
+ return function debugLog(_x8) {
140230
+ return _ref51.apply(this, arguments);
140125
140231
  };
140126
140232
  }()
140127
140233
  }
140128
140234
  });
140129
- var headerPropForExternalWebView = (0, import_react27.useMemo)(() => {
140235
+ var headerPropForExternalWebView = (0, import_react28.useMemo)(() => {
140130
140236
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
140131
140237
  var initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
140132
140238
  var withBackButton = parsedNavigationBar?.withBackButton ?? true;
@@ -140147,7 +140253,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140147
140253
  colorPreference: "light"
140148
140254
  });
140149
140255
  var refs = mergeRefs(handler.ref, webViewRef);
140150
- (0, import_react27.useEffect)(() => {
140256
+ (0, import_react28.useEffect)(() => {
140151
140257
  var callback = () => {
140152
140258
  webBackHandler.handleWebBack();
140153
140259
  return true;
@@ -140210,7 +140316,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140210
140316
  __reExport(src_exports, _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types"), module.exports);
140211
140317
  var import_types = _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types");
140212
140318
  var import_react_native46 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
140213
- var import_react30 = _$$_REQUIRE(_dependencyMap[9], "react");
140319
+ var import_react31 = _$$_REQUIRE(_dependencyMap[9], "react");
140214
140320
  var import_react_native47 = _$$_REQUIRE(_dependencyMap[8], "react-native");
140215
140321
  var SDK_ID = "106";
140216
140322
  var LIST_BANNER_STYLE_ID = "1";
@@ -140397,7 +140503,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140397
140503
  function isStructurallyValidAd(ad) {
140398
140504
  return Boolean(ad && ad.creative && typeof ad.creative === "object");
140399
140505
  }
140400
- function loadAd(_x8) {
140506
+ function loadAd(_x9) {
140401
140507
  return _loadAd.apply(this, arguments);
140402
140508
  }
140403
140509
  function _loadAd() {
@@ -140583,7 +140689,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140583
140689
  globalEventDeduplicator.markTracked(this.requestId, this.creativeId, eventType);
140584
140690
  }
140585
140691
  });
140586
- function track(_x9) {
140692
+ function track(_x0) {
140587
140693
  return _track.apply(this, arguments);
140588
140694
  }
140589
140695
  return track;
@@ -140605,7 +140711,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140605
140711
  body: JSON.stringify(payload)
140606
140712
  });
140607
140713
  });
140608
- function sendTrackingRequest(_x0, _x1) {
140714
+ function sendTrackingRequest(_x1, _x10) {
140609
140715
  return _sendTrackingRequest.apply(this, arguments);
140610
140716
  }
140611
140717
  return sendTrackingRequest;
@@ -140613,7 +140719,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140613
140719
  }]);
140614
140720
  }();
140615
140721
  var import_react_native_svg2 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
140616
- var import_react28 = _$$_REQUIRE(_dependencyMap[9], "react");
140722
+ var import_react29 = _$$_REQUIRE(_dependencyMap[9], "react");
140617
140723
  var import_react_native44 = _$$_REQUIRE(_dependencyMap[8], "react-native");
140618
140724
  var import_jsx_runtime25 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
140619
140725
  var ARROW_PATH = "m7.5 20.4c-.5-.5-.5-1.2 0-1.7l6.7-6.7-6.8-6.7c-.5-.5-.5-1.2 0-1.7s1.2-.5 1.7 0l7.5 7.5c.5.5.5 1.2 0 1.7l-7.5 7.5c-.2.3-.5.4-.8.4s-.6-.1-.8-.3z";
@@ -140632,7 +140738,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140632
140738
  paddingStyle,
140633
140739
  onPress
140634
140740
  }) {
140635
- var scale = (0, import_react28.useRef)(new import_react_native44.Animated.Value(1)).current;
140741
+ var scale = (0, import_react29.useRef)(new import_react_native44.Animated.Value(1)).current;
140636
140742
  var animateScale = toValue => {
140637
140743
  import_react_native44.Animated.timing(scale, {
140638
140744
  toValue,
@@ -140909,7 +141015,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140909
141015
  }
140910
141016
  });
140911
141017
  var import_react_native_svg3 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
140912
- var import_react29 = _$$_REQUIRE(_dependencyMap[9], "react");
141018
+ var import_react30 = _$$_REQUIRE(_dependencyMap[9], "react");
140913
141019
  var import_react_native45 = _$$_REQUIRE(_dependencyMap[8], "react-native");
140914
141020
  var import_jsx_runtime26 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
140915
141021
  var SQUIRCLE_PATH = "M0 17.352C0 3.564 3.564 0 17.352 0H18.648C32.436 0 36 3.564 36 17.352V18.648C36 32.436 32.436 36 18.648 36H17.352C3.564 36 0 32.436 0 18.648V17.352Z";
@@ -140923,8 +141029,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140923
141029
  colors: colors4,
140924
141030
  onPress
140925
141031
  }) {
140926
- var scale = (0, import_react29.useRef)(new import_react_native45.Animated.Value(1)).current;
140927
- var clipIdRef = (0, import_react29.useRef)(`clip-${Math.random().toString(36).slice(2)}`);
141032
+ var scale = (0, import_react30.useRef)(new import_react_native45.Animated.Value(1)).current;
141033
+ var clipIdRef = (0, import_react30.useRef)(`clip-${Math.random().toString(36).slice(2)}`);
140928
141034
  var animateScale = toValue => {
140929
141035
  import_react_native45.Animated.timing(scale, {
140930
141036
  toValue,
@@ -141237,27 +141343,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141237
141343
  onAdImpression = props.onAdImpression,
141238
141344
  onAdFailedToRender = props.onAdFailedToRender,
141239
141345
  onNoFill = props.onNoFill;
141240
- var slotIdRef = (0, import_react30.useRef)(createSlotId());
141241
- var _ref48 = (0, import_react30.useState)(null),
141242
- _ref49 = _slicedToArray(_ref48, 2),
141243
- ad = _ref49[0],
141244
- setAd = _ref49[1];
141245
- var _ref50 = (0, import_react30.useState)(true),
141246
- _ref51 = _slicedToArray(_ref50, 2),
141247
- isAdBadgeEnabled = _ref51[0],
141248
- setIsAdBadgeEnabled = _ref51[1];
141249
- var eventTrackerRef = (0, import_react30.useRef)(null);
141250
- var eventPayloadRef = (0, import_react30.useRef)(null);
141251
- var hasRenderedRef = (0, import_react30.useRef)(false);
141252
- var hasLoggedImp1pxRef = (0, import_react30.useRef)(false);
141253
- var hasLoggedImp100pRef = (0, import_react30.useRef)(false);
141254
- var hasNotifiedViewableRef = (0, import_react30.useRef)(false);
141255
- var viewableTimerRef = (0, import_react30.useRef)(null);
141256
- var refetchIntervalMsRef = (0, import_react30.useRef)(null);
141257
- var lastImp1pxAtRef = (0, import_react30.useRef)(null);
141258
- var loadingRef = (0, import_react30.useRef)(false);
141259
- var loadRef = (0, import_react30.useRef)(null);
141260
- var callbacksRef = (0, import_react30.useRef)({
141346
+ var slotIdRef = (0, import_react31.useRef)(createSlotId());
141347
+ var _ref52 = (0, import_react31.useState)(null),
141348
+ _ref53 = _slicedToArray(_ref52, 2),
141349
+ ad = _ref53[0],
141350
+ setAd = _ref53[1];
141351
+ var _ref54 = (0, import_react31.useState)(true),
141352
+ _ref55 = _slicedToArray(_ref54, 2),
141353
+ isAdBadgeEnabled = _ref55[0],
141354
+ setIsAdBadgeEnabled = _ref55[1];
141355
+ var eventTrackerRef = (0, import_react31.useRef)(null);
141356
+ var eventPayloadRef = (0, import_react31.useRef)(null);
141357
+ var hasRenderedRef = (0, import_react31.useRef)(false);
141358
+ var hasLoggedImp1pxRef = (0, import_react31.useRef)(false);
141359
+ var hasLoggedImp100pRef = (0, import_react31.useRef)(false);
141360
+ var hasNotifiedViewableRef = (0, import_react31.useRef)(false);
141361
+ var viewableTimerRef = (0, import_react31.useRef)(null);
141362
+ var refetchIntervalMsRef = (0, import_react31.useRef)(null);
141363
+ var lastImp1pxAtRef = (0, import_react31.useRef)(null);
141364
+ var loadingRef = (0, import_react31.useRef)(false);
141365
+ var loadRef = (0, import_react31.useRef)(null);
141366
+ var callbacksRef = (0, import_react31.useRef)({
141261
141367
  onAdRendered,
141262
141368
  onAdViewable,
141263
141369
  onAdClicked,
@@ -141265,7 +141371,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141265
141371
  onAdFailedToRender,
141266
141372
  onNoFill
141267
141373
  });
141268
- var isMountedRef = (0, import_react30.useRef)(false);
141374
+ var isMountedRef = (0, import_react31.useRef)(false);
141269
141375
  var colorScheme = (0, import_react_native47.useColorScheme)();
141270
141376
  var selectedTheme = theme ?? DEFAULT_INLINE_AD_THEME;
141271
141377
  var resolvedTheme = selectedTheme === "auto" ? colorScheme === "dark" ? "dark" : "light" : selectedTheme;
@@ -141282,7 +141388,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141282
141388
  onAdFailedToRender,
141283
141389
  onNoFill
141284
141390
  };
141285
- (0, import_react30.useEffect)(() => {
141391
+ (0, import_react31.useEffect)(() => {
141286
141392
  isMountedRef.current = true;
141287
141393
  return () => {
141288
141394
  isMountedRef.current = false;
@@ -141292,7 +141398,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141292
141398
  }
141293
141399
  };
141294
141400
  }, []);
141295
- (0, import_react30.useEffect)(() => {
141401
+ (0, import_react31.useEffect)(() => {
141296
141402
  var normalizedAdGroupId = normalizeAdGroupId(adGroupId);
141297
141403
  var loadAdRequest = () => {
141298
141404
  if (loadingRef.current) {
@@ -141363,7 +141469,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141363
141469
  loadRef.current?.();
141364
141470
  }
141365
141471
  });
141366
- (0, import_react30.useEffect)(() => {
141472
+ (0, import_react31.useEffect)(() => {
141367
141473
  if (!ad || hasRenderedRef.current) {
141368
141474
  return;
141369
141475
  }