@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.
- package/dist/prebuilt/dev.android.rn84.js +311 -205
- package/dist/prebuilt/dev.ios.rn84.js +311 -205
- package/dist/prebuilt/prod.android.rn72.js +241 -85
- package/dist/prebuilt/prod.android.rn84.js +241 -85
- package/dist/prebuilt/prod.ios.rn72.js +241 -85
- package/dist/prebuilt/prod.ios.rn84.js +241 -85
- package/package.json +8 -8
|
@@ -136750,7 +136750,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
136750
136750
|
var import_analytics = _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics");
|
|
136751
136751
|
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
136752
136752
|
var import_react_native27 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
136753
|
-
var
|
|
136753
|
+
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
136754
136754
|
var import_react_native28 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
136755
136755
|
var import_react_native2 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
136756
136756
|
var import_react = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
@@ -136864,7 +136864,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
136864
136864
|
return context;
|
|
136865
136865
|
}
|
|
136866
136866
|
var import_native_modules9 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
136867
|
-
var
|
|
136867
|
+
var import_react17 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
136868
136868
|
var import_react_native26 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
136869
136869
|
var import_native_modules4 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
136870
136870
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
@@ -137354,7 +137354,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137354
137354
|
}, [handler]);
|
|
137355
137355
|
}
|
|
137356
137356
|
var import_react_native13 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137357
|
+
var import_react13 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137358
|
+
var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137359
|
+
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
|
|
137357
137360
|
var import_react12 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137361
|
+
function useCloseConfirm() {
|
|
137362
|
+
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
137363
|
+
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
137364
|
+
var _ref19 = (0, import_tds_react_native5.useDialog)(),
|
|
137365
|
+
openConfirm = _ref19.openConfirm;
|
|
137366
|
+
return (0, import_react12.useCallback)(function () {
|
|
137367
|
+
var _ref20 = _asyncToGenerator(function* ({
|
|
137368
|
+
onEntered
|
|
137369
|
+
}) {
|
|
137370
|
+
return yield openConfirm({
|
|
137371
|
+
title: `${(0, import_es_hangul2.josa)(brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
|
|
137372
|
+
leftButton: "\uB2EB\uAE30",
|
|
137373
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
137374
|
+
closeOnDimmerClick: true,
|
|
137375
|
+
onEntered
|
|
137376
|
+
});
|
|
137377
|
+
});
|
|
137378
|
+
return function (_x3) {
|
|
137379
|
+
return _ref20.apply(this, arguments);
|
|
137380
|
+
};
|
|
137381
|
+
}(), [brandDisplayName, openConfirm]);
|
|
137382
|
+
}
|
|
137358
137383
|
var EventEmitter = function () {
|
|
137359
137384
|
function EventEmitter() {
|
|
137360
137385
|
_classCallCheck(this, EventEmitter);
|
|
@@ -137406,8 +137431,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137406
137431
|
var import_react_native12 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137407
137432
|
var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
137408
137433
|
var NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
137434
|
+
var CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
137435
|
+
var CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
137409
137436
|
var CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
137410
137437
|
var CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
137438
|
+
var CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
137439
|
+
var CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
137411
137440
|
var HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
137412
137441
|
var HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
137413
137442
|
function useNavigationBarLogging() {
|
|
@@ -137450,8 +137479,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137450
137479
|
}
|
|
137451
137480
|
});
|
|
137452
137481
|
};
|
|
137482
|
+
var logClosePopupShow = () => {
|
|
137483
|
+
sendLog({
|
|
137484
|
+
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
137485
|
+
log_type: "popup",
|
|
137486
|
+
params: {
|
|
137487
|
+
...baseParams,
|
|
137488
|
+
schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
|
|
137489
|
+
}
|
|
137490
|
+
});
|
|
137491
|
+
};
|
|
137492
|
+
var logClosePopupCtaClick = confirm => {
|
|
137493
|
+
sendLog({
|
|
137494
|
+
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
137495
|
+
log_type: "event",
|
|
137496
|
+
params: {
|
|
137497
|
+
...baseParams,
|
|
137498
|
+
close_yn: confirm ? "Y" : "N",
|
|
137499
|
+
schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
|
|
137500
|
+
event_type: "click"
|
|
137501
|
+
}
|
|
137502
|
+
});
|
|
137503
|
+
};
|
|
137453
137504
|
return {
|
|
137454
137505
|
navBarImpression: logNavBarImpression,
|
|
137506
|
+
closePopupShow: logClosePopupShow,
|
|
137507
|
+
closePopupCtaClick: logClosePopupCtaClick,
|
|
137455
137508
|
closeButtonClick: logCloseButtonClick,
|
|
137456
137509
|
homeButtonClick: logHomeButtonClick
|
|
137457
137510
|
};
|
|
@@ -137460,41 +137513,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137460
137513
|
var backEventContext = (0, import_react_native13.useBackEventContext)();
|
|
137461
137514
|
var logging = useNavigationBarLogging();
|
|
137462
137515
|
var navigation = (0, import_react_native13.useNavigation)();
|
|
137463
|
-
|
|
137464
|
-
|
|
137465
|
-
|
|
137466
|
-
|
|
137467
|
-
|
|
137468
|
-
|
|
137469
|
-
|
|
137470
|
-
|
|
137471
|
-
|
|
137472
|
-
|
|
137473
|
-
|
|
137474
|
-
logging.homeButtonClick();
|
|
137475
|
-
if (homeEvent.hasSubscriptions()) {
|
|
137476
|
-
homeEvent.emit({});
|
|
137477
|
-
} else {
|
|
137478
|
-
navigation.navigate("/", {}, {
|
|
137479
|
-
pop: true
|
|
137516
|
+
var closeConfirm = useCloseConfirm();
|
|
137517
|
+
var global2 = getAppsInTossGlobals();
|
|
137518
|
+
return (0, import_react13.useMemo)(() => {
|
|
137519
|
+
var close = function () {
|
|
137520
|
+
var _ref21 = _asyncToGenerator(function* () {
|
|
137521
|
+
if (global2.appType !== "game") {
|
|
137522
|
+
(0, import_react_native13.closeView)();
|
|
137523
|
+
return;
|
|
137524
|
+
}
|
|
137525
|
+
var hasConfirmed = yield closeConfirm({
|
|
137526
|
+
onEntered: logging.closePopupShow
|
|
137480
137527
|
});
|
|
137528
|
+
logging.closePopupCtaClick(hasConfirmed);
|
|
137529
|
+
if (hasConfirmed) {
|
|
137530
|
+
(0, import_react_native13.closeView)();
|
|
137531
|
+
}
|
|
137532
|
+
});
|
|
137533
|
+
return function close() {
|
|
137534
|
+
return _ref21.apply(this, arguments);
|
|
137535
|
+
};
|
|
137536
|
+
}();
|
|
137537
|
+
return {
|
|
137538
|
+
handleBack: () => {
|
|
137539
|
+
if (backEventContext.hasBackEvent) {
|
|
137540
|
+
backEventContext.onBack();
|
|
137541
|
+
} else if (navigation.canGoBack()) {
|
|
137542
|
+
navigation.goBack();
|
|
137543
|
+
} else {
|
|
137544
|
+
close();
|
|
137545
|
+
}
|
|
137546
|
+
},
|
|
137547
|
+
handleHomeButtonClick: () => {
|
|
137548
|
+
logging.homeButtonClick();
|
|
137549
|
+
if (homeEvent.hasSubscriptions()) {
|
|
137550
|
+
homeEvent.emit({});
|
|
137551
|
+
} else {
|
|
137552
|
+
navigation.navigate("/", {}, {
|
|
137553
|
+
pop: true
|
|
137554
|
+
});
|
|
137555
|
+
}
|
|
137556
|
+
},
|
|
137557
|
+
handleCloseButtonClick: () => {
|
|
137558
|
+
logging.closeButtonClick();
|
|
137559
|
+
close();
|
|
137481
137560
|
}
|
|
137482
|
-
}
|
|
137483
|
-
|
|
137484
|
-
logging.closeButtonClick();
|
|
137485
|
-
(0, import_react_native13.closeView)();
|
|
137486
|
-
}
|
|
137487
|
-
}), [backEventContext, navigation, logging]);
|
|
137561
|
+
};
|
|
137562
|
+
}, [global2.appType, backEventContext, navigation, closeConfirm, logging]);
|
|
137488
137563
|
}
|
|
137489
137564
|
var import_native_modules8 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137490
137565
|
var import_react_native18 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137491
|
-
var
|
|
137566
|
+
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137492
137567
|
var import_private4 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137493
|
-
var
|
|
137568
|
+
var import_react14 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137494
137569
|
var import_native_modules5 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
137495
137570
|
var import_react_native16 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137571
|
+
var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137496
137572
|
var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137497
|
-
var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137498
137573
|
var import_private3 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137499
137574
|
var import_react_native15 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137500
137575
|
var import_react_native14 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
@@ -137577,7 +137652,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137577
137652
|
var logging = useMoreButtonBottomSheetLogging();
|
|
137578
137653
|
var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
|
|
137579
137654
|
var iconBackgroundColor = brandPrimaryColorRGB ? `rgba(${brandPrimaryColorRGB.join(",")},0.1)` : adaptive.grey100;
|
|
137580
|
-
return (0, import_jsx_runtime5.jsx)(
|
|
137655
|
+
return (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow, {
|
|
137581
137656
|
left: (0, import_jsx_runtime5.jsx)(import_react_native15.View, {
|
|
137582
137657
|
style: {
|
|
137583
137658
|
width: 30,
|
|
@@ -137589,14 +137664,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137589
137664
|
marginRight: 16,
|
|
137590
137665
|
backgroundColor: iconBackgroundColor
|
|
137591
137666
|
},
|
|
137592
|
-
children: iconName ? (0, import_jsx_runtime5.jsx)(
|
|
137667
|
+
children: iconName ? (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Icon, {
|
|
137593
137668
|
frameShape: {
|
|
137594
137669
|
width: 20,
|
|
137595
137670
|
height: 20
|
|
137596
137671
|
},
|
|
137597
137672
|
color: globals.brandPrimaryColor,
|
|
137598
137673
|
name: iconName
|
|
137599
|
-
}) : (0, import_jsx_runtime5.jsx)(
|
|
137674
|
+
}) : (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Image, {
|
|
137600
137675
|
frameShape: {
|
|
137601
137676
|
width: 20,
|
|
137602
137677
|
height: 20
|
|
@@ -137606,7 +137681,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137606
137681
|
}
|
|
137607
137682
|
})
|
|
137608
137683
|
}),
|
|
137609
|
-
contents: (0, import_jsx_runtime5.jsx)(
|
|
137684
|
+
contents: (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow.Texts, {
|
|
137610
137685
|
type: "1RowTypeA",
|
|
137611
137686
|
top: title,
|
|
137612
137687
|
topProps: {
|
|
@@ -137642,10 +137717,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137642
137717
|
}
|
|
137643
137718
|
function addParamsToUrl(url, params) {
|
|
137644
137719
|
var urlObj = new URL(url);
|
|
137645
|
-
for (var
|
|
137646
|
-
var
|
|
137647
|
-
var key =
|
|
137648
|
-
var value =
|
|
137720
|
+
for (var _ref22 of Object.entries(params)) {
|
|
137721
|
+
var _ref23 = _slicedToArray(_ref22, 2);
|
|
137722
|
+
var key = _ref23[0];
|
|
137723
|
+
var value = _ref23[1];
|
|
137649
137724
|
urlObj.searchParams.set(key, value);
|
|
137650
137725
|
}
|
|
137651
137726
|
return urlObj.toString();
|
|
@@ -137659,8 +137734,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137659
137734
|
function AppShareListMenu() {
|
|
137660
137735
|
var initialScheme = (0, import_react_native16.getSchemeUri)();
|
|
137661
137736
|
var isSandbox = (0, import_native_modules5.getOperationalEnvironment)() === "sandbox";
|
|
137662
|
-
var
|
|
137663
|
-
openConfirm =
|
|
137737
|
+
var _ref24 = (0, import_tds_react_native7.useDialog)(),
|
|
137738
|
+
openConfirm = _ref24.openConfirm;
|
|
137664
137739
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
137665
137740
|
referrer: SHARE_SCHEME_REFERRER
|
|
137666
137741
|
});
|
|
@@ -137750,10 +137825,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137750
137825
|
function useMoreButtonBottomSheet() {
|
|
137751
137826
|
var globals = getAppsInTossGlobals();
|
|
137752
137827
|
var adaptive = (0, import_private4.useAdaptive)();
|
|
137753
|
-
var
|
|
137754
|
-
|
|
137755
|
-
itemList =
|
|
137756
|
-
setItemList =
|
|
137828
|
+
var _ref25 = (0, import_react14.useState)([]),
|
|
137829
|
+
_ref26 = _slicedToArray(_ref25, 2),
|
|
137830
|
+
itemList = _ref26[0],
|
|
137831
|
+
setItemList = _ref26[1];
|
|
137757
137832
|
var appUpdateDialog = useAppUpdateDialog();
|
|
137758
137833
|
var logging = useMoreButtonBottomSheetLogging();
|
|
137759
137834
|
var overlay = (0, import_private4.useOverlay)();
|
|
@@ -137762,7 +137837,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137762
137837
|
var isBottomSheetSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
137763
137838
|
var isShareListMenuSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
137764
137839
|
var isSettingsMenuSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.SETTINGS_MENU);
|
|
137765
|
-
(0,
|
|
137840
|
+
(0, import_react14.useEffect)(() => {
|
|
137766
137841
|
if (!isBottomSheetSupported) {
|
|
137767
137842
|
return;
|
|
137768
137843
|
}
|
|
@@ -137774,7 +137849,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137774
137849
|
});
|
|
137775
137850
|
}, [isBottomSheetSupported]);
|
|
137776
137851
|
var onClickHandler = function () {
|
|
137777
|
-
var
|
|
137852
|
+
var _ref27 = _asyncToGenerator(function* () {
|
|
137778
137853
|
logging.open();
|
|
137779
137854
|
if (!isBottomSheetSupported) {
|
|
137780
137855
|
yield appUpdateDialog.open({
|
|
@@ -137793,9 +137868,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137793
137868
|
close();
|
|
137794
137869
|
};
|
|
137795
137870
|
return (0, import_jsx_runtime9.jsx)(BottomSheetImpressionArea, {
|
|
137796
|
-
children: (0, import_jsx_runtime9.jsx)(
|
|
137797
|
-
header: (0, import_jsx_runtime9.jsx)(
|
|
137798
|
-
title: (0, import_jsx_runtime9.jsx)(
|
|
137871
|
+
children: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.Root, {
|
|
137872
|
+
header: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader, {
|
|
137873
|
+
title: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader.TitleParagraph, {
|
|
137799
137874
|
color: adaptive.grey800,
|
|
137800
137875
|
fontWeight: "bold",
|
|
137801
137876
|
typography: "t5",
|
|
@@ -137803,7 +137878,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137803
137878
|
})
|
|
137804
137879
|
}),
|
|
137805
137880
|
open: isOpen,
|
|
137806
|
-
cta: (0, import_jsx_runtime9.jsx)(
|
|
137881
|
+
cta: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.CTA, {
|
|
137807
137882
|
size: "large",
|
|
137808
137883
|
type: "dark",
|
|
137809
137884
|
style: "weak",
|
|
@@ -137814,7 +137889,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137814
137889
|
}),
|
|
137815
137890
|
onClose: handleClose,
|
|
137816
137891
|
onExited: exit,
|
|
137817
|
-
children: (0, import_jsx_runtime9.jsxs)(
|
|
137892
|
+
children: (0, import_jsx_runtime9.jsxs)(import_tds_react_native8.List, {
|
|
137818
137893
|
rowSeparator: "none",
|
|
137819
137894
|
children: [itemList.map(item => (0, import_jsx_runtime9.jsx)(Menu, {
|
|
137820
137895
|
title: item.contactItemName,
|
|
@@ -137827,7 +137902,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137827
137902
|
});
|
|
137828
137903
|
});
|
|
137829
137904
|
return function onClickHandler() {
|
|
137830
|
-
return
|
|
137905
|
+
return _ref27.apply(this, arguments);
|
|
137831
137906
|
};
|
|
137832
137907
|
}();
|
|
137833
137908
|
return {
|
|
@@ -137838,7 +137913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137838
137913
|
children
|
|
137839
137914
|
}) {
|
|
137840
137915
|
var logging = useMoreButtonBottomSheetLogging();
|
|
137841
|
-
(0,
|
|
137916
|
+
(0, import_react14.useEffect)(() => {
|
|
137842
137917
|
logging.show();
|
|
137843
137918
|
}, [logging]);
|
|
137844
137919
|
return (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {
|
|
@@ -137847,8 +137922,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137847
137922
|
}
|
|
137848
137923
|
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
137849
137924
|
var import_react_native19 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
137850
|
-
var
|
|
137851
|
-
var
|
|
137925
|
+
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137926
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137852
137927
|
var import_react_native20 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137853
137928
|
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137854
137929
|
function TopNavigation({
|
|
@@ -137858,9 +137933,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137858
137933
|
}) {
|
|
137859
137934
|
var insets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
|
|
137860
137935
|
var navigation = (0, import_react_native19.useNavigation)();
|
|
137861
|
-
(0,
|
|
137862
|
-
var
|
|
137863
|
-
navigationBar =
|
|
137936
|
+
(0, import_react15.useEffect)(() => {
|
|
137937
|
+
var _getAppsInTossGlobals2 = getAppsInTossGlobals(),
|
|
137938
|
+
navigationBar = _getAppsInTossGlobals2.navigationBar;
|
|
137864
137939
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
137865
137940
|
var transparent = parsedNavigationBar?.transparentBackground ?? false;
|
|
137866
137941
|
var theme = parsedNavigationBar?.theme ?? "light";
|
|
@@ -137869,7 +137944,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137869
137944
|
header: () => (0, import_jsx_runtime10.jsxs)(import_react_native20.View, {
|
|
137870
137945
|
style: {
|
|
137871
137946
|
width: "100%",
|
|
137872
|
-
backgroundColor: transparent ? void 0 : theme === "light" ?
|
|
137947
|
+
backgroundColor: transparent ? void 0 : theme === "light" ? import_tds_react_native9.colors.lightThemeBackground : import_tds_react_native9.colors.darkThemeBackground
|
|
137873
137948
|
},
|
|
137874
137949
|
pointerEvents: "box-none",
|
|
137875
137950
|
children: [(0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
@@ -137948,7 +138023,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137948
138023
|
});
|
|
137949
138024
|
}
|
|
137950
138025
|
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>`;
|
|
137951
|
-
var
|
|
138026
|
+
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
137952
138027
|
var import_react_native22 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137953
138028
|
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
137954
138029
|
function HomeButton({
|
|
@@ -137965,10 +138040,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137965
138040
|
height: 34,
|
|
137966
138041
|
paddingLeft: 10,
|
|
137967
138042
|
paddingRight: 10,
|
|
137968
|
-
backgroundColor: theme === "light" ?
|
|
138043
|
+
backgroundColor: theme === "light" ? import_tds_react_native10.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)",
|
|
137969
138044
|
borderRadius: 99
|
|
137970
138045
|
},
|
|
137971
|
-
children: [children, (0, import_jsx_runtime12.jsx)(
|
|
138046
|
+
children: [children, (0, import_jsx_runtime12.jsx)(import_tds_react_native10.Icon, {
|
|
137972
138047
|
name: "icon-home-mono",
|
|
137973
138048
|
size: 18
|
|
137974
138049
|
})]
|
|
@@ -138010,7 +138085,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138010
138085
|
})]
|
|
138011
138086
|
});
|
|
138012
138087
|
}
|
|
138013
|
-
var
|
|
138088
|
+
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138014
138089
|
var import_react_native25 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138015
138090
|
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138016
138091
|
function Menu2({
|
|
@@ -138020,8 +138095,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138020
138095
|
onLongPressDots,
|
|
138021
138096
|
onPressClose
|
|
138022
138097
|
}) {
|
|
138023
|
-
var backgroundColor = theme === "light" ?
|
|
138024
|
-
var iconColor = theme === "light" ?
|
|
138098
|
+
var backgroundColor = theme === "light" ? import_tds_react_native11.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)";
|
|
138099
|
+
var iconColor = theme === "light" ? import_tds_react_native11.colors.greyOpacity600 : "rgba(253, 253, 255, 0.75)";
|
|
138025
138100
|
return (0, import_jsx_runtime14.jsxs)(import_react_native25.View, {
|
|
138026
138101
|
style: {
|
|
138027
138102
|
flexDirection: "row",
|
|
@@ -138040,13 +138115,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138040
138115
|
backgroundColor
|
|
138041
138116
|
},
|
|
138042
138117
|
onPress: () => {
|
|
138043
|
-
|
|
138118
|
+
import_tds_react_native11.tdsEvent.emit("navigationAccessoryEvent", {
|
|
138044
138119
|
id: accessoryButton.id
|
|
138045
138120
|
});
|
|
138046
138121
|
accessoryButton.onPress?.();
|
|
138047
138122
|
},
|
|
138048
138123
|
disabled: accessoryButton.disabled,
|
|
138049
|
-
children: (0, import_jsx_runtime14.jsx)(
|
|
138124
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
|
|
138050
138125
|
name: accessoryButton.icon.name ?? "",
|
|
138051
138126
|
accessibilityLabel: accessoryButton.title,
|
|
138052
138127
|
color: iconColor,
|
|
@@ -138072,7 +138147,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138072
138147
|
children: [(0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138073
138148
|
onPress: onPressDots,
|
|
138074
138149
|
onLongPress: onLongPressDots,
|
|
138075
|
-
children: (0, import_jsx_runtime14.jsx)(
|
|
138150
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
|
|
138076
138151
|
name: "icon-dots-mono",
|
|
138077
138152
|
accessibilityLabel: "\uB354\uBCF4\uAE30",
|
|
138078
138153
|
color: iconColor,
|
|
@@ -138082,11 +138157,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138082
138157
|
style: {
|
|
138083
138158
|
width: 1,
|
|
138084
138159
|
height: 16,
|
|
138085
|
-
backgroundColor: theme === "light" ?
|
|
138160
|
+
backgroundColor: theme === "light" ? import_tds_react_native11.colors.greyOpacity200 : "rgba(222, 222, 255, 0.19)"
|
|
138086
138161
|
}
|
|
138087
138162
|
}), (0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138088
138163
|
onPress: onPressClose,
|
|
138089
|
-
children: (0, import_jsx_runtime14.jsx)(
|
|
138164
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
|
|
138090
138165
|
name: "icon-appsintoss-close-mono",
|
|
138091
138166
|
accessibilityLabel: "\uB2EB\uAE30",
|
|
138092
138167
|
color: iconColor,
|
|
@@ -138097,15 +138172,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138097
138172
|
})]
|
|
138098
138173
|
});
|
|
138099
138174
|
}
|
|
138100
|
-
var
|
|
138175
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138101
138176
|
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138102
138177
|
function NavigationBarImpressionArea({
|
|
138103
138178
|
children,
|
|
138104
138179
|
withHomeButton
|
|
138105
138180
|
}) {
|
|
138106
|
-
var hasLogged = (0,
|
|
138181
|
+
var hasLogged = (0, import_react16.useRef)(false);
|
|
138107
138182
|
var logging = useNavigationBarLogging();
|
|
138108
|
-
(0,
|
|
138183
|
+
(0, import_react16.useEffect)(() => {
|
|
138109
138184
|
if (hasLogged.current === false) {
|
|
138110
138185
|
logging.navBarImpression({
|
|
138111
138186
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -138166,8 +138241,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138166
138241
|
var navigationEvent = useNavigationEvent();
|
|
138167
138242
|
var _useNavigationBarCont2 = useNavigationBarContext(),
|
|
138168
138243
|
navigationRightButton = _useNavigationBarCont2.navigationRightButton;
|
|
138169
|
-
var
|
|
138170
|
-
navigationBar =
|
|
138244
|
+
var _getAppsInTossGlobals3 = getAppsInTossGlobals(),
|
|
138245
|
+
navigationBar = _getAppsInTossGlobals3.navigationBar;
|
|
138171
138246
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
138172
138247
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
138173
138248
|
return (0, import_jsx_runtime17.jsx)(TopNavigation, {
|
|
@@ -138207,7 +138282,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138207
138282
|
function GameAppContainer({
|
|
138208
138283
|
children
|
|
138209
138284
|
}) {
|
|
138210
|
-
(0,
|
|
138285
|
+
(0, import_react17.useEffect)(() => {
|
|
138211
138286
|
if (import_react_native26.Platform.OS === "ios") {
|
|
138212
138287
|
(0, import_native_modules9.setIosSwipeGestureEnabled)({
|
|
138213
138288
|
isEnabled: false
|
|
@@ -138253,7 +138328,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138253
138328
|
...initialProps
|
|
138254
138329
|
}), (0, import_jsx_runtime19.jsx)(Container, {
|
|
138255
138330
|
...initialProps,
|
|
138256
|
-
children: (0, import_jsx_runtime19.jsx)(
|
|
138331
|
+
children: (0, import_jsx_runtime19.jsx)(import_tds_react_native12.TDSProvider, {
|
|
138257
138332
|
colorPreference: "light",
|
|
138258
138333
|
token: {
|
|
138259
138334
|
color: {
|
|
@@ -138335,32 +138410,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138335
138410
|
var import_user_scripts = _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/user-scripts");
|
|
138336
138411
|
var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138337
138412
|
var import_react_native41 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138338
|
-
var
|
|
138339
|
-
var
|
|
138413
|
+
var import_tds_react_native16 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138414
|
+
var import_react28 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138340
138415
|
var import_react_native42 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138341
138416
|
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138342
138417
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
|
|
138343
|
-
var
|
|
138418
|
+
var import_react19 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138344
138419
|
var import_react_native30 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138345
138420
|
var import_react_native29 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138346
|
-
var
|
|
138347
|
-
var
|
|
138421
|
+
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138422
|
+
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
|
|
138423
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138348
138424
|
var import_jsx_runtime20 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138349
138425
|
function GameWebviewNavigationBar() {
|
|
138350
|
-
var
|
|
138351
|
-
openConfirm =
|
|
138426
|
+
var _ref28 = (0, import_tds_react_native13.useDialog)(),
|
|
138427
|
+
openConfirm = _ref28.openConfirm;
|
|
138428
|
+
var global2 = getAppsInTossGlobals();
|
|
138352
138429
|
var logging = useNavigationBarLogging();
|
|
138353
138430
|
var _useMoreButtonBottomS3 = useMoreButtonBottomSheet(),
|
|
138354
138431
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
138355
138432
|
var _useNavigationBarCont3 = useNavigationBarContext(),
|
|
138356
138433
|
navigationRightButton = _useNavigationBarCont3.navigationRightButton;
|
|
138357
|
-
var
|
|
138358
|
-
navigationBar =
|
|
138434
|
+
var _getAppsInTossGlobals4 = getAppsInTossGlobals(),
|
|
138435
|
+
navigationBar = _getAppsInTossGlobals4.navigationBar;
|
|
138359
138436
|
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
138360
|
-
var handleGameWebviewClose = (0,
|
|
138437
|
+
var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
|
|
138361
138438
|
logging.closeButtonClick();
|
|
138362
|
-
|
|
138363
|
-
|
|
138439
|
+
var isConfirmed = yield openConfirm({
|
|
138440
|
+
title: `${(0, import_es_hangul3.josa)(global2.brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
|
|
138441
|
+
leftButton: "\uB2EB\uAE30",
|
|
138442
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
138443
|
+
closeOnDimmerClick: true,
|
|
138444
|
+
onEntered: logging.closePopupShow
|
|
138445
|
+
});
|
|
138446
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
138447
|
+
if (isConfirmed) {
|
|
138448
|
+
(0, import_react_native29.closeView)();
|
|
138449
|
+
}
|
|
138450
|
+
}), [global2.brandDisplayName, logging, openConfirm]);
|
|
138364
138451
|
return (0, import_jsx_runtime20.jsx)(TopNavigation, {
|
|
138365
138452
|
right: (0, import_jsx_runtime20.jsx)(Menu2, {
|
|
138366
138453
|
theme: parsedNavigationBar?.theme ?? "dark",
|
|
@@ -138371,8 +138458,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138371
138458
|
});
|
|
138372
138459
|
}
|
|
138373
138460
|
var import_jsx_runtime21 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138374
|
-
var GameWebView = (0,
|
|
138375
|
-
(0,
|
|
138461
|
+
var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
|
|
138462
|
+
(0, import_react19.useEffect)(() => {
|
|
138376
138463
|
if (import_react_native30.Platform.OS === "ios") {
|
|
138377
138464
|
(0, import_native_modules11.setIosSwipeGestureEnabled)({
|
|
138378
138465
|
isEnabled: false
|
|
@@ -138398,9 +138485,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138398
138485
|
});
|
|
138399
138486
|
});
|
|
138400
138487
|
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
|
|
138401
|
-
var
|
|
138488
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138402
138489
|
var import_react_native31 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138403
|
-
var
|
|
138490
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138404
138491
|
var import_jsx_runtime22 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138405
138492
|
function PartnerWebviewNavigationBar({
|
|
138406
138493
|
onBackButtonClick,
|
|
@@ -138416,7 +138503,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138416
138503
|
var theme = parsedNavigationBar?.theme ?? "light";
|
|
138417
138504
|
var _useNavigationBarCont4 = useNavigationBarContext(),
|
|
138418
138505
|
navigationRightButton = _useNavigationBarCont4.navigationRightButton;
|
|
138419
|
-
var handleClose = (0,
|
|
138506
|
+
var handleClose = (0, import_react20.useCallback)(_asyncToGenerator(function* () {
|
|
138420
138507
|
logging.closeButtonClick();
|
|
138421
138508
|
(0, import_react_native31.closeView)();
|
|
138422
138509
|
}), [logging]);
|
|
@@ -138450,7 +138537,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138450
138537
|
});
|
|
138451
138538
|
}
|
|
138452
138539
|
var import_jsx_runtime23 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138453
|
-
var PartnerWebView = (0,
|
|
138540
|
+
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen({
|
|
138454
138541
|
onBackButtonClick,
|
|
138455
138542
|
onHomeButtonClick,
|
|
138456
138543
|
...webViewProps
|
|
@@ -138862,7 +138949,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138862
138949
|
}
|
|
138863
138950
|
showFullScreenAd.isSupported = import_native_modules14.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
138864
138951
|
var import_react_native34 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138865
|
-
function tossAdEventLog(
|
|
138952
|
+
function tossAdEventLog(_x4) {
|
|
138866
138953
|
return _tossAdEventLog.apply(this, arguments);
|
|
138867
138954
|
}
|
|
138868
138955
|
function _tossAdEventLog() {
|
|
@@ -138883,7 +138970,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138883
138970
|
});
|
|
138884
138971
|
return _tossAdEventLog.apply(this, arguments);
|
|
138885
138972
|
}
|
|
138886
|
-
var
|
|
138973
|
+
var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138887
138974
|
function serializeError(error) {
|
|
138888
138975
|
return JSON.stringify(error, (_, value) => {
|
|
138889
138976
|
if (value instanceof Error) {
|
|
@@ -138914,12 +139001,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138914
139001
|
return;
|
|
138915
139002
|
}
|
|
138916
139003
|
var wrappedFunc = function () {
|
|
138917
|
-
var
|
|
139004
|
+
var _ref31 = _asyncToGenerator(function* (...args2) {
|
|
138918
139005
|
var result = yield func(...args2);
|
|
138919
139006
|
return result;
|
|
138920
139007
|
});
|
|
138921
139008
|
return function wrappedFunc() {
|
|
138922
|
-
return
|
|
139009
|
+
return _ref31.apply(this, arguments);
|
|
138923
139010
|
};
|
|
138924
139011
|
}();
|
|
138925
139012
|
wrappedFunc(...args).then(result => {
|
|
@@ -138940,12 +139027,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138940
139027
|
asyncHandlerMap,
|
|
138941
139028
|
eventListenerMap
|
|
138942
139029
|
}) {
|
|
138943
|
-
var ref = (0,
|
|
138944
|
-
var injectedJavaScript = (0,
|
|
139030
|
+
var ref = (0, import_react22.useRef)(null);
|
|
139031
|
+
var injectedJavaScript = (0, import_react22.useMemo)(() => `window.__CONSTANT_HANDLER_MAP = ${JSON.stringify(Object.entries(constantHandlerMap).reduce((acc, [key, value]) => {
|
|
138945
139032
|
acc[key] = typeof value === "function" ? value() : value;
|
|
138946
139033
|
return acc;
|
|
138947
139034
|
}, {}))};`, [constantHandlerMap]);
|
|
138948
|
-
(0,
|
|
139035
|
+
(0, import_react22.useEffect)(() => {
|
|
138949
139036
|
ref.current?.injectJavaScript(injectedJavaScript);
|
|
138950
139037
|
}, [injectedJavaScript]);
|
|
138951
139038
|
var createHandleOnEvent = (functionName, eventId) => response => {
|
|
@@ -138959,8 +139046,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138959
139046
|
window.__GRANITE_NATIVE_EMITTER.emit('${functionName}/onError/${eventId}', ${serializedError});
|
|
138960
139047
|
`);
|
|
138961
139048
|
};
|
|
138962
|
-
var $onMessage = (0,
|
|
138963
|
-
var
|
|
139049
|
+
var $onMessage = (0, import_react22.useCallback)(function () {
|
|
139050
|
+
var _ref32 = _asyncToGenerator(function* (e) {
|
|
138964
139051
|
onMessage?.(e);
|
|
138965
139052
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
138966
139053
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -139002,8 +139089,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139002
139089
|
}
|
|
139003
139090
|
}
|
|
139004
139091
|
});
|
|
139005
|
-
return function (
|
|
139006
|
-
return
|
|
139092
|
+
return function (_x5) {
|
|
139093
|
+
return _ref32.apply(this, arguments);
|
|
139007
139094
|
};
|
|
139008
139095
|
}(), [onMessage]);
|
|
139009
139096
|
return {
|
|
@@ -139021,20 +139108,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139021
139108
|
}
|
|
139022
139109
|
}
|
|
139023
139110
|
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
139024
|
-
var
|
|
139111
|
+
var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139025
139112
|
function useSafeAreaInsetsEvent() {
|
|
139026
139113
|
var insets = (0, import_react_native_safe_area_context2.useSafeAreaInsets)();
|
|
139027
|
-
(0,
|
|
139114
|
+
(0, import_react23.useEffect)(() => {
|
|
139028
139115
|
safeAreaInsetsChange.emit(insets);
|
|
139029
139116
|
}, [insets]);
|
|
139030
|
-
(0,
|
|
139117
|
+
(0, import_react23.useEffect)(() => {
|
|
139031
139118
|
return () => safeAreaInsetsChange.clearSubscriptions();
|
|
139032
139119
|
}, []);
|
|
139033
139120
|
return safeAreaInsetsChange;
|
|
139034
139121
|
}
|
|
139035
139122
|
var import_react_native35 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139123
|
+
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
139124
|
+
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
|
|
139125
|
+
var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139036
139126
|
var import_react24 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139037
|
-
var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139038
139127
|
var INITIAL_STATE = {
|
|
139039
139128
|
stack: [],
|
|
139040
139129
|
index: -1
|
|
@@ -139083,11 +139172,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139083
139172
|
}
|
|
139084
139173
|
}
|
|
139085
139174
|
function useWebViewHistory() {
|
|
139086
|
-
var
|
|
139087
|
-
|
|
139088
|
-
state =
|
|
139089
|
-
dispatch =
|
|
139090
|
-
var onNavigationStateChange = (0,
|
|
139175
|
+
var _ref33 = (0, import_react24.useReducer)(reducer, INITIAL_STATE),
|
|
139176
|
+
_ref34 = _slicedToArray(_ref33, 2),
|
|
139177
|
+
state = _ref34[0],
|
|
139178
|
+
dispatch = _ref34[1];
|
|
139179
|
+
var onNavigationStateChange = (0, import_react24.useCallback)(({
|
|
139091
139180
|
url,
|
|
139092
139181
|
canGoForward: canGoForward2
|
|
139093
139182
|
}) => {
|
|
@@ -139097,7 +139186,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139097
139186
|
canGoForward: canGoForward2
|
|
139098
139187
|
});
|
|
139099
139188
|
}, []);
|
|
139100
|
-
var
|
|
139189
|
+
var _ref35 = (0, import_react24.useMemo)(() => {
|
|
139101
139190
|
var canBack = state.index > 0;
|
|
139102
139191
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
139103
139192
|
return {
|
|
@@ -139105,8 +139194,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139105
139194
|
canGoForward: canFwd
|
|
139106
139195
|
};
|
|
139107
139196
|
}, [state.index, state.stack.length]),
|
|
139108
|
-
canGoBack =
|
|
139109
|
-
canGoForward =
|
|
139197
|
+
canGoBack = _ref35.canGoBack,
|
|
139198
|
+
canGoForward = _ref35.canGoForward;
|
|
139110
139199
|
return {
|
|
139111
139200
|
onNavigationStateChange,
|
|
139112
139201
|
hasHistory: canGoBack,
|
|
@@ -139117,19 +139206,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139117
139206
|
var _useWebViewHistory = useWebViewHistory(),
|
|
139118
139207
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
139119
139208
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
139120
|
-
var
|
|
139121
|
-
webBackHandlersRef =
|
|
139122
|
-
hasWebBackEvent =
|
|
139123
|
-
addWebBackEventListener =
|
|
139124
|
-
removeWebBackEventListener =
|
|
139209
|
+
var _ref36 = (0, import_react_native35.useBackEventState)(),
|
|
139210
|
+
webBackHandlersRef = _ref36.handlersRef,
|
|
139211
|
+
hasWebBackEvent = _ref36.hasBackEvent,
|
|
139212
|
+
addWebBackEventListener = _ref36.addEventListener,
|
|
139213
|
+
removeWebBackEventListener = _ref36.removeEventListener;
|
|
139125
139214
|
var logging = useNavigationBarLogging();
|
|
139126
|
-
var
|
|
139215
|
+
var _ref37 = (0, import_tds_react_native14.useDialog)(),
|
|
139216
|
+
openConfirm = _ref37.openConfirm;
|
|
139217
|
+
var global2 = getAppsInTossGlobals();
|
|
139218
|
+
var addEventListener = (0, import_react25.useCallback)(handler => {
|
|
139127
139219
|
addWebBackEventListener(handler);
|
|
139128
139220
|
}, [addWebBackEventListener]);
|
|
139129
|
-
var removeEventListener = (0,
|
|
139221
|
+
var removeEventListener = (0, import_react25.useCallback)(handler => {
|
|
139130
139222
|
removeWebBackEventListener(handler);
|
|
139131
139223
|
}, [removeWebBackEventListener]);
|
|
139132
|
-
var handleWebBack = (0,
|
|
139224
|
+
var handleWebBack = (0, import_react25.useCallback)(_asyncToGenerator(function* () {
|
|
139133
139225
|
if (hasWebBackEvent) {
|
|
139134
139226
|
for (var handler of webBackHandlersRef) {
|
|
139135
139227
|
handler();
|
|
@@ -139139,10 +139231,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139139
139231
|
if (hasHistory) {
|
|
139140
139232
|
webViewRef.current?.injectJavaScript("window.history.back();");
|
|
139141
139233
|
} else {
|
|
139142
|
-
(
|
|
139234
|
+
if (global2.webViewType !== "game") {
|
|
139235
|
+
(0, import_react_native35.closeView)();
|
|
139236
|
+
return;
|
|
139237
|
+
}
|
|
139238
|
+
var isConfirmed = yield openConfirm({
|
|
139239
|
+
title: `${(0, import_es_hangul4.josa)(global2.brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
|
|
139240
|
+
leftButton: "\uB2EB\uAE30",
|
|
139241
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
139242
|
+
closeOnDimmerClick: true,
|
|
139243
|
+
onEntered: logging.closePopupShow
|
|
139244
|
+
});
|
|
139245
|
+
logging.closePopupCtaClick(isConfirmed);
|
|
139246
|
+
if (isConfirmed) {
|
|
139247
|
+
(0, import_react_native35.closeView)();
|
|
139248
|
+
}
|
|
139143
139249
|
}
|
|
139144
|
-
}), [hasHistory, hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
139145
|
-
var handleWebHome = (0,
|
|
139250
|
+
}), [global2.webViewType, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
139251
|
+
var handleWebHome = (0, import_react25.useCallback)(() => {
|
|
139146
139252
|
logging.homeButtonClick();
|
|
139147
139253
|
if (homeEvent.hasSubscriptions()) {
|
|
139148
139254
|
homeEvent.emit({});
|
|
@@ -139155,7 +139261,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139155
139261
|
})();
|
|
139156
139262
|
`);
|
|
139157
139263
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewInitialURL, webViewRef]);
|
|
139158
|
-
return (0,
|
|
139264
|
+
return (0, import_react25.useMemo)(() => ({
|
|
139159
139265
|
addEventListener,
|
|
139160
139266
|
removeEventListener,
|
|
139161
139267
|
handleWebBack,
|
|
@@ -139310,8 +139416,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139310
139416
|
}) {
|
|
139311
139417
|
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
139312
139418
|
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
139313
|
-
var
|
|
139314
|
-
fontScale =
|
|
139419
|
+
var _ref39 = (0, import_react_native36.useWindowDimensions)(),
|
|
139420
|
+
fontScale = _ref39.fontScale;
|
|
139315
139421
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
139316
139422
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
139317
139423
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -139319,18 +139425,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139319
139425
|
}
|
|
139320
139426
|
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139321
139427
|
var import_react_native37 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139322
|
-
var
|
|
139428
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139323
139429
|
function useGeolocation({
|
|
139324
139430
|
accuracy,
|
|
139325
139431
|
distanceInterval,
|
|
139326
139432
|
timeInterval
|
|
139327
139433
|
}) {
|
|
139328
139434
|
var isVisible = (0, import_react_native37.useVisibility)();
|
|
139329
|
-
var
|
|
139330
|
-
|
|
139331
|
-
location =
|
|
139332
|
-
setLocation =
|
|
139333
|
-
(0,
|
|
139435
|
+
var _ref40 = (0, import_react26.useState)(null),
|
|
139436
|
+
_ref41 = _slicedToArray(_ref40, 2),
|
|
139437
|
+
location = _ref41[0],
|
|
139438
|
+
setLocation = _ref41[1];
|
|
139439
|
+
(0, import_react26.useEffect)(() => {
|
|
139334
139440
|
if (!isVisible) {
|
|
139335
139441
|
return;
|
|
139336
139442
|
}
|
|
@@ -139347,17 +139453,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139347
139453
|
return location;
|
|
139348
139454
|
}
|
|
139349
139455
|
var import_react_native38 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139350
|
-
var
|
|
139456
|
+
var import_react27 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139351
139457
|
function useWaitForReturnNavigator() {
|
|
139352
|
-
var callbacks = (0,
|
|
139458
|
+
var callbacks = (0, import_react27.useRef)([]).current;
|
|
139353
139459
|
var navigation = (0, import_react_native38.useNavigation)();
|
|
139354
|
-
var startNavigating = (0,
|
|
139460
|
+
var startNavigating = (0, import_react27.useCallback)((route, params) => {
|
|
139355
139461
|
return new Promise(resolve => {
|
|
139356
139462
|
callbacks.push(resolve);
|
|
139357
139463
|
navigation.navigate(route, params);
|
|
139358
139464
|
});
|
|
139359
139465
|
}, [callbacks, navigation]);
|
|
139360
|
-
var handleVisibilityChange = (0,
|
|
139466
|
+
var handleVisibilityChange = (0, import_react27.useCallback)(state => {
|
|
139361
139467
|
if (state === "visible" && callbacks.length > 0) {
|
|
139362
139468
|
for (var callback of callbacks) {
|
|
139363
139469
|
callback();
|
|
@@ -139379,9 +139485,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139379
139485
|
}
|
|
139380
139486
|
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139381
139487
|
var import_react_native39 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139382
|
-
var
|
|
139488
|
+
var import_tds_react_native15 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
139383
139489
|
function useHandleWebViewProcessDidTerminate(webViewRef) {
|
|
139384
|
-
var toast = (0,
|
|
139490
|
+
var toast = (0, import_tds_react_native15.useToast)();
|
|
139385
139491
|
return () => {
|
|
139386
139492
|
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {});
|
|
139387
139493
|
toast.open("\uBB38\uC81C\uAC00 \uC0DD\uACA8\uC11C \uBBF8\uB2C8\uC571\uC744 \uB2E4\uC2DC \uC2DC\uC791\uD588\uC5B4\uC694.", {
|
|
@@ -139391,7 +139497,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139391
139497
|
webViewRef.current?.reload();
|
|
139392
139498
|
};
|
|
139393
139499
|
}
|
|
139394
|
-
function webViewMemoryDebugLog(
|
|
139500
|
+
function webViewMemoryDebugLog(_x6) {
|
|
139395
139501
|
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
139396
139502
|
}
|
|
139397
139503
|
function _webViewMemoryDebugLog() {
|
|
@@ -139485,23 +139591,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139485
139591
|
var TYPES = ["partner", "external", "game"];
|
|
139486
139592
|
var WEBVIEW_TYPES = {
|
|
139487
139593
|
partner: PartnerWebView,
|
|
139488
|
-
external:
|
|
139594
|
+
external: import_tds_react_native16.ExternalWebViewScreen,
|
|
139489
139595
|
game: GameWebView
|
|
139490
139596
|
};
|
|
139491
139597
|
function mergeSchemeQueryParamsInto(url) {
|
|
139492
139598
|
var baseUrl = new URL(url);
|
|
139493
139599
|
var schemeUrl = new URL((0, import_react_native41.getSchemeUri)());
|
|
139494
139600
|
var resultUrl = new URL(schemeUrl.pathname, baseUrl.origin);
|
|
139495
|
-
for (var
|
|
139496
|
-
var
|
|
139497
|
-
var key =
|
|
139498
|
-
var value =
|
|
139601
|
+
for (var _ref42 of baseUrl.searchParams.entries()) {
|
|
139602
|
+
var _ref43 = _slicedToArray(_ref42, 2);
|
|
139603
|
+
var key = _ref43[0];
|
|
139604
|
+
var value = _ref43[1];
|
|
139499
139605
|
resultUrl.searchParams.set(key, value);
|
|
139500
139606
|
}
|
|
139501
|
-
for (var
|
|
139502
|
-
var
|
|
139503
|
-
var _key =
|
|
139504
|
-
var _value =
|
|
139607
|
+
for (var _ref44 of schemeUrl.searchParams.entries()) {
|
|
139608
|
+
var _ref45 = _slicedToArray(_ref44, 2);
|
|
139609
|
+
var _key = _ref45[0];
|
|
139610
|
+
var _value = _ref45[1];
|
|
139505
139611
|
resultUrl.searchParams.set(_key, _value);
|
|
139506
139612
|
}
|
|
139507
139613
|
return resultUrl;
|
|
@@ -139511,8 +139617,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139511
139617
|
var devUrl = `http://${local.host}:${local.port}`;
|
|
139512
139618
|
return mergeSchemeQueryParamsInto(devUrl);
|
|
139513
139619
|
}
|
|
139514
|
-
var
|
|
139515
|
-
rawUrl =
|
|
139620
|
+
var _ref46 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
|
|
139621
|
+
rawUrl = _ref46.url;
|
|
139516
139622
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
139517
139623
|
var deploymentId = env.getDeploymentId();
|
|
139518
139624
|
if (deploymentId) {
|
|
@@ -139529,17 +139635,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139529
139635
|
if (!TYPES.includes(type)) {
|
|
139530
139636
|
throw new Error(`Invalid WebView type: '${type}'`);
|
|
139531
139637
|
}
|
|
139532
|
-
var webViewRef = (0,
|
|
139533
|
-
var url = (0,
|
|
139638
|
+
var webViewRef = (0, import_react28.useRef)(null);
|
|
139639
|
+
var url = (0, import_react28.useMemo)(() => getWebViewURL(local), [local]);
|
|
139534
139640
|
var webBackHandler = useWebBackHandler(url, webViewRef);
|
|
139535
139641
|
var global2 = getAppsInTossGlobals();
|
|
139536
139642
|
var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
139537
139643
|
var navigationBarContext = useNavigationBarContext();
|
|
139538
139644
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
139539
|
-
var
|
|
139540
|
-
|
|
139541
|
-
allowsBackForwardNavigationGestures =
|
|
139542
|
-
setAllowsBackForwardNavigationGestures =
|
|
139645
|
+
var _ref47 = (0, import_react28.useState)(props.allowsBackForwardNavigationGestures),
|
|
139646
|
+
_ref48 = _slicedToArray(_ref47, 2),
|
|
139647
|
+
allowsBackForwardNavigationGestures = _ref48[0],
|
|
139648
|
+
setAllowsBackForwardNavigationGestures = _ref48[1];
|
|
139543
139649
|
var handler = useBridgeHandler({
|
|
139544
139650
|
onMessage,
|
|
139545
139651
|
eventListenerMap: {
|
|
@@ -139547,7 +139653,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139547
139653
|
navigationAccessoryEvent: ({
|
|
139548
139654
|
onEvent,
|
|
139549
139655
|
onError
|
|
139550
|
-
}) =>
|
|
139656
|
+
}) => import_tds_react_native16.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
139551
139657
|
onEvent,
|
|
139552
139658
|
onError
|
|
139553
139659
|
}),
|
|
@@ -139617,19 +139723,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139617
139723
|
return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
|
|
139618
139724
|
},
|
|
139619
139725
|
addAccessoryButton: function () {
|
|
139620
|
-
var
|
|
139726
|
+
var _ref49 = _asyncToGenerator(function* (params) {
|
|
139621
139727
|
return navigationBarContext.addNavigationRightButton(params);
|
|
139622
139728
|
});
|
|
139623
|
-
return function addAccessoryButton(
|
|
139624
|
-
return
|
|
139729
|
+
return function addAccessoryButton(_x7) {
|
|
139730
|
+
return _ref49.apply(this, arguments);
|
|
139625
139731
|
};
|
|
139626
139732
|
}(),
|
|
139627
139733
|
removeAccessoryButton: function () {
|
|
139628
|
-
var
|
|
139734
|
+
var _ref50 = _asyncToGenerator(function* () {
|
|
139629
139735
|
return navigationBarContext.removeNavigationRightButton();
|
|
139630
139736
|
});
|
|
139631
139737
|
return function removeAccessoryButton() {
|
|
139632
|
-
return
|
|
139738
|
+
return _ref50.apply(this, arguments);
|
|
139633
139739
|
};
|
|
139634
139740
|
}(),
|
|
139635
139741
|
requestPermission: appsInTossAsyncBridges.requestPermission,
|
|
@@ -139656,16 +139762,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139656
139762
|
tossAdEventLog,
|
|
139657
139763
|
memoryDebugLog: webViewMemoryDebugLog,
|
|
139658
139764
|
debugLog: function () {
|
|
139659
|
-
var
|
|
139765
|
+
var _ref51 = _asyncToGenerator(function* (event) {
|
|
139660
139766
|
sendLog(event);
|
|
139661
139767
|
});
|
|
139662
|
-
return function debugLog(
|
|
139663
|
-
return
|
|
139768
|
+
return function debugLog(_x8) {
|
|
139769
|
+
return _ref51.apply(this, arguments);
|
|
139664
139770
|
};
|
|
139665
139771
|
}()
|
|
139666
139772
|
}
|
|
139667
139773
|
});
|
|
139668
|
-
var headerPropForExternalWebView = (0,
|
|
139774
|
+
var headerPropForExternalWebView = (0, import_react28.useMemo)(() => {
|
|
139669
139775
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
139670
139776
|
var initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
|
|
139671
139777
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
@@ -139686,7 +139792,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139686
139792
|
colorPreference: "light"
|
|
139687
139793
|
});
|
|
139688
139794
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
139689
|
-
(0,
|
|
139795
|
+
(0, import_react28.useEffect)(() => {
|
|
139690
139796
|
var callback = () => {
|
|
139691
139797
|
webBackHandler.handleWebBack();
|
|
139692
139798
|
return true;
|
|
@@ -139749,7 +139855,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139749
139855
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types"), module.exports);
|
|
139750
139856
|
var import_types = _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types");
|
|
139751
139857
|
var import_react_native46 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139752
|
-
var
|
|
139858
|
+
var import_react31 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139753
139859
|
var import_react_native47 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
139754
139860
|
var SDK_ID = "106";
|
|
139755
139861
|
var LIST_BANNER_STYLE_ID = "1";
|
|
@@ -139936,7 +140042,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139936
140042
|
function isStructurallyValidAd(ad) {
|
|
139937
140043
|
return Boolean(ad && ad.creative && typeof ad.creative === "object");
|
|
139938
140044
|
}
|
|
139939
|
-
function loadAd(
|
|
140045
|
+
function loadAd(_x9) {
|
|
139940
140046
|
return _loadAd.apply(this, arguments);
|
|
139941
140047
|
}
|
|
139942
140048
|
function _loadAd() {
|
|
@@ -140122,7 +140228,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140122
140228
|
globalEventDeduplicator.markTracked(this.requestId, this.creativeId, eventType);
|
|
140123
140229
|
}
|
|
140124
140230
|
});
|
|
140125
|
-
function track(
|
|
140231
|
+
function track(_x0) {
|
|
140126
140232
|
return _track.apply(this, arguments);
|
|
140127
140233
|
}
|
|
140128
140234
|
return track;
|
|
@@ -140144,7 +140250,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140144
140250
|
body: JSON.stringify(payload)
|
|
140145
140251
|
});
|
|
140146
140252
|
});
|
|
140147
|
-
function sendTrackingRequest(
|
|
140253
|
+
function sendTrackingRequest(_x1, _x10) {
|
|
140148
140254
|
return _sendTrackingRequest.apply(this, arguments);
|
|
140149
140255
|
}
|
|
140150
140256
|
return sendTrackingRequest;
|
|
@@ -140152,7 +140258,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140152
140258
|
}]);
|
|
140153
140259
|
}();
|
|
140154
140260
|
var import_react_native_svg2 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
140155
|
-
var
|
|
140261
|
+
var import_react29 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140156
140262
|
var import_react_native44 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140157
140263
|
var import_jsx_runtime25 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140158
140264
|
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";
|
|
@@ -140171,7 +140277,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140171
140277
|
paddingStyle,
|
|
140172
140278
|
onPress
|
|
140173
140279
|
}) {
|
|
140174
|
-
var scale = (0,
|
|
140280
|
+
var scale = (0, import_react29.useRef)(new import_react_native44.Animated.Value(1)).current;
|
|
140175
140281
|
var animateScale = toValue => {
|
|
140176
140282
|
import_react_native44.Animated.timing(scale, {
|
|
140177
140283
|
toValue,
|
|
@@ -140448,7 +140554,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140448
140554
|
}
|
|
140449
140555
|
});
|
|
140450
140556
|
var import_react_native_svg3 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
140451
|
-
var
|
|
140557
|
+
var import_react30 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140452
140558
|
var import_react_native45 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140453
140559
|
var import_jsx_runtime26 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140454
140560
|
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";
|
|
@@ -140462,8 +140568,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140462
140568
|
colors: colors4,
|
|
140463
140569
|
onPress
|
|
140464
140570
|
}) {
|
|
140465
|
-
var scale = (0,
|
|
140466
|
-
var clipIdRef = (0,
|
|
140571
|
+
var scale = (0, import_react30.useRef)(new import_react_native45.Animated.Value(1)).current;
|
|
140572
|
+
var clipIdRef = (0, import_react30.useRef)(`clip-${Math.random().toString(36).slice(2)}`);
|
|
140467
140573
|
var animateScale = toValue => {
|
|
140468
140574
|
import_react_native45.Animated.timing(scale, {
|
|
140469
140575
|
toValue,
|
|
@@ -140776,27 +140882,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140776
140882
|
onAdImpression = props.onAdImpression,
|
|
140777
140883
|
onAdFailedToRender = props.onAdFailedToRender,
|
|
140778
140884
|
onNoFill = props.onNoFill;
|
|
140779
|
-
var slotIdRef = (0,
|
|
140780
|
-
var
|
|
140781
|
-
|
|
140782
|
-
ad =
|
|
140783
|
-
setAd =
|
|
140784
|
-
var
|
|
140785
|
-
|
|
140786
|
-
isAdBadgeEnabled =
|
|
140787
|
-
setIsAdBadgeEnabled =
|
|
140788
|
-
var eventTrackerRef = (0,
|
|
140789
|
-
var eventPayloadRef = (0,
|
|
140790
|
-
var hasRenderedRef = (0,
|
|
140791
|
-
var hasLoggedImp1pxRef = (0,
|
|
140792
|
-
var hasLoggedImp100pRef = (0,
|
|
140793
|
-
var hasNotifiedViewableRef = (0,
|
|
140794
|
-
var viewableTimerRef = (0,
|
|
140795
|
-
var refetchIntervalMsRef = (0,
|
|
140796
|
-
var lastImp1pxAtRef = (0,
|
|
140797
|
-
var loadingRef = (0,
|
|
140798
|
-
var loadRef = (0,
|
|
140799
|
-
var callbacksRef = (0,
|
|
140885
|
+
var slotIdRef = (0, import_react31.useRef)(createSlotId());
|
|
140886
|
+
var _ref52 = (0, import_react31.useState)(null),
|
|
140887
|
+
_ref53 = _slicedToArray(_ref52, 2),
|
|
140888
|
+
ad = _ref53[0],
|
|
140889
|
+
setAd = _ref53[1];
|
|
140890
|
+
var _ref54 = (0, import_react31.useState)(true),
|
|
140891
|
+
_ref55 = _slicedToArray(_ref54, 2),
|
|
140892
|
+
isAdBadgeEnabled = _ref55[0],
|
|
140893
|
+
setIsAdBadgeEnabled = _ref55[1];
|
|
140894
|
+
var eventTrackerRef = (0, import_react31.useRef)(null);
|
|
140895
|
+
var eventPayloadRef = (0, import_react31.useRef)(null);
|
|
140896
|
+
var hasRenderedRef = (0, import_react31.useRef)(false);
|
|
140897
|
+
var hasLoggedImp1pxRef = (0, import_react31.useRef)(false);
|
|
140898
|
+
var hasLoggedImp100pRef = (0, import_react31.useRef)(false);
|
|
140899
|
+
var hasNotifiedViewableRef = (0, import_react31.useRef)(false);
|
|
140900
|
+
var viewableTimerRef = (0, import_react31.useRef)(null);
|
|
140901
|
+
var refetchIntervalMsRef = (0, import_react31.useRef)(null);
|
|
140902
|
+
var lastImp1pxAtRef = (0, import_react31.useRef)(null);
|
|
140903
|
+
var loadingRef = (0, import_react31.useRef)(false);
|
|
140904
|
+
var loadRef = (0, import_react31.useRef)(null);
|
|
140905
|
+
var callbacksRef = (0, import_react31.useRef)({
|
|
140800
140906
|
onAdRendered,
|
|
140801
140907
|
onAdViewable,
|
|
140802
140908
|
onAdClicked,
|
|
@@ -140804,7 +140910,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140804
140910
|
onAdFailedToRender,
|
|
140805
140911
|
onNoFill
|
|
140806
140912
|
});
|
|
140807
|
-
var isMountedRef = (0,
|
|
140913
|
+
var isMountedRef = (0, import_react31.useRef)(false);
|
|
140808
140914
|
var colorScheme = (0, import_react_native47.useColorScheme)();
|
|
140809
140915
|
var selectedTheme = theme ?? DEFAULT_INLINE_AD_THEME;
|
|
140810
140916
|
var resolvedTheme = selectedTheme === "auto" ? colorScheme === "dark" ? "dark" : "light" : selectedTheme;
|
|
@@ -140821,7 +140927,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140821
140927
|
onAdFailedToRender,
|
|
140822
140928
|
onNoFill
|
|
140823
140929
|
};
|
|
140824
|
-
(0,
|
|
140930
|
+
(0, import_react31.useEffect)(() => {
|
|
140825
140931
|
isMountedRef.current = true;
|
|
140826
140932
|
return () => {
|
|
140827
140933
|
isMountedRef.current = false;
|
|
@@ -140831,7 +140937,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140831
140937
|
}
|
|
140832
140938
|
};
|
|
140833
140939
|
}, []);
|
|
140834
|
-
(0,
|
|
140940
|
+
(0, import_react31.useEffect)(() => {
|
|
140835
140941
|
var normalizedAdGroupId = normalizeAdGroupId(adGroupId);
|
|
140836
140942
|
var loadAdRequest = () => {
|
|
140837
140943
|
if (loadingRef.current) {
|
|
@@ -140902,7 +141008,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140902
141008
|
loadRef.current?.();
|
|
140903
141009
|
}
|
|
140904
141010
|
});
|
|
140905
|
-
(0,
|
|
141011
|
+
(0, import_react31.useEffect)(() => {
|
|
140906
141012
|
if (!ad || hasRenderedRef.current) {
|
|
140907
141013
|
return;
|
|
140908
141014
|
}
|