@apps-in-toss/web-framework 2.7.0 → 2.8.0
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/config/index.js +12 -2
- package/dist/prebuilt/dev.android.rn84.js +642 -422
- package/dist/prebuilt/dev.ios.rn84.js +642 -422
- package/dist/prebuilt/prod.android.rn72.js +5439 -5760
- package/dist/prebuilt/prod.android.rn84.js +5429 -5750
- package/dist/prebuilt/prod.ios.rn72.js +5439 -5760
- package/dist/prebuilt/prod.ios.rn84.js +5429 -5750
- package/package.json +8 -8
|
@@ -137192,7 +137192,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137192
137192
|
AppsInToss: () => AppsInToss,
|
|
137193
137193
|
INTERNAL__onVisibilityChangedByTransparentServiceWeb: () => INTERNAL__onVisibilityChangedByTransparentServiceWeb,
|
|
137194
137194
|
InlineAd: () => InlineAd,
|
|
137195
|
-
OverlayProvider: () =>
|
|
137195
|
+
OverlayProvider: () => import_private5.OverlayProvider,
|
|
137196
137196
|
StartUpdateLocationPermissionError: () => import_types.StartUpdateLocationPermissionError,
|
|
137197
137197
|
WebView: () => WebView,
|
|
137198
137198
|
env: () => env,
|
|
@@ -137202,7 +137202,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137202
137202
|
showFullScreenAd: () => showFullScreenAd,
|
|
137203
137203
|
useCreateUserAgent: () => useCreateUserAgent,
|
|
137204
137204
|
useGeolocation: () => useGeolocation,
|
|
137205
|
-
useOverlay: () =>
|
|
137205
|
+
useOverlay: () => import_private5.useOverlay,
|
|
137206
137206
|
useTopNavigation: () => useTopNavigation,
|
|
137207
137207
|
useWaitForReturnNavigator: () => useWaitForReturnNavigator
|
|
137208
137208
|
});
|
|
@@ -137210,9 +137210,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137210
137210
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics");
|
|
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
|
-
var
|
|
137214
|
-
var
|
|
137215
|
-
var
|
|
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");
|
|
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");
|
|
137218
137218
|
var env = {
|
|
@@ -137325,8 +137325,8 @@ __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
|
|
137329
|
-
var
|
|
137328
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
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");
|
|
137332
137332
|
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
@@ -137802,7 +137802,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137802
137802
|
bottom: 0,
|
|
137803
137803
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
137804
137804
|
};
|
|
137805
|
-
var import_private5 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
137806
137805
|
var import_react11 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
137807
137806
|
var import_react_native11 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
137808
137807
|
function useHardwareBackPress(handler) {
|
|
@@ -137937,7 +137936,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
137937
137936
|
if (homeEvent.hasSubscriptions()) {
|
|
137938
137937
|
homeEvent.emit({});
|
|
137939
137938
|
} else {
|
|
137940
|
-
navigation.navigate("/"
|
|
137939
|
+
navigation.navigate("/", {}, {
|
|
137940
|
+
pop: true
|
|
137941
|
+
});
|
|
137941
137942
|
}
|
|
137942
137943
|
},
|
|
137943
137944
|
handleCloseButtonClick: () => {
|
|
@@ -138305,24 +138306,267 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138305
138306
|
children
|
|
138306
138307
|
});
|
|
138307
138308
|
}
|
|
138308
|
-
|
|
138309
|
-
|
|
138310
|
-
|
|
138311
|
-
uri: source
|
|
138312
|
-
}
|
|
138313
|
-
} : {
|
|
138314
|
-
name: source
|
|
138315
|
-
};
|
|
138316
|
-
}
|
|
138309
|
+
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138310
|
+
var import_react_native19 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138311
|
+
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138317
138312
|
var import_react14 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138313
|
+
var import_react_native20 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138318
138314
|
var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138315
|
+
function TopNavigation({
|
|
138316
|
+
left,
|
|
138317
|
+
center,
|
|
138318
|
+
right
|
|
138319
|
+
}) {
|
|
138320
|
+
var insets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
|
|
138321
|
+
var navigation = (0, import_react_native19.useNavigation)();
|
|
138322
|
+
(0, import_react14.useEffect)(() => {
|
|
138323
|
+
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
138324
|
+
navigationBar = _getAppsInTossGlobals.navigationBar;
|
|
138325
|
+
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
138326
|
+
var transparent = parsedNavigationBar?.transparentBackground ?? false;
|
|
138327
|
+
var theme = parsedNavigationBar?.theme ?? "light";
|
|
138328
|
+
navigation.setOptions({
|
|
138329
|
+
headerTransparent: transparent,
|
|
138330
|
+
header: () => (0, import_jsx_runtime10.jsxs)(import_react_native20.View, {
|
|
138331
|
+
style: {
|
|
138332
|
+
width: "100%",
|
|
138333
|
+
backgroundColor: transparent ? void 0 : theme === "light" ? import_tds_react_native8.colors.lightThemeBackground : import_tds_react_native8.colors.darkThemeBackground
|
|
138334
|
+
},
|
|
138335
|
+
pointerEvents: "box-none",
|
|
138336
|
+
children: [(0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
138337
|
+
style: {
|
|
138338
|
+
width: "100%",
|
|
138339
|
+
height: insets.top
|
|
138340
|
+
}
|
|
138341
|
+
}), (0, import_jsx_runtime10.jsxs)(import_react_native20.View, {
|
|
138342
|
+
style: {
|
|
138343
|
+
width: "100%",
|
|
138344
|
+
height: 44,
|
|
138345
|
+
display: "flex",
|
|
138346
|
+
flexDirection: "row",
|
|
138347
|
+
alignItems: "center",
|
|
138348
|
+
paddingLeft: insets.left,
|
|
138349
|
+
paddingRight: insets.right
|
|
138350
|
+
},
|
|
138351
|
+
children: [(0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
138352
|
+
children: left
|
|
138353
|
+
}), (0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
138354
|
+
style: {
|
|
138355
|
+
flex: 1,
|
|
138356
|
+
display: "flex",
|
|
138357
|
+
flexDirection: "row",
|
|
138358
|
+
alignItems: "center"
|
|
138359
|
+
},
|
|
138360
|
+
children: center
|
|
138361
|
+
}), (0, import_jsx_runtime10.jsx)(import_react_native20.View, {
|
|
138362
|
+
style: {
|
|
138363
|
+
flexDirection: "row",
|
|
138364
|
+
alignItems: "center"
|
|
138365
|
+
},
|
|
138366
|
+
children: right
|
|
138367
|
+
})]
|
|
138368
|
+
})]
|
|
138369
|
+
})
|
|
138370
|
+
});
|
|
138371
|
+
}, [navigation, insets, left, center, right]);
|
|
138372
|
+
return (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {});
|
|
138373
|
+
}
|
|
138374
|
+
var import_react_native_svg = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
138375
|
+
var import_react_native21 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138376
|
+
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138377
|
+
function BackButton({
|
|
138378
|
+
theme = "light",
|
|
138379
|
+
onPress,
|
|
138380
|
+
...restProps
|
|
138381
|
+
}) {
|
|
138382
|
+
return (0, import_jsx_runtime11.jsx)(import_react_native21.TouchableOpacity, {
|
|
138383
|
+
hitSlop: {
|
|
138384
|
+
top: 10,
|
|
138385
|
+
right: 10,
|
|
138386
|
+
bottom: 10,
|
|
138387
|
+
left: 10
|
|
138388
|
+
},
|
|
138389
|
+
style: {
|
|
138390
|
+
width: 24,
|
|
138391
|
+
height: 24,
|
|
138392
|
+
marginRight: 14
|
|
138393
|
+
},
|
|
138394
|
+
onPress,
|
|
138395
|
+
accessibilityRole: "button",
|
|
138396
|
+
accessibilityLabel: "\uB4A4\uB85C\uAC00\uAE30",
|
|
138397
|
+
...restProps,
|
|
138398
|
+
children: (0, import_jsx_runtime11.jsx)(import_react_native21.View, {
|
|
138399
|
+
style: {
|
|
138400
|
+
width: 24,
|
|
138401
|
+
height: 24
|
|
138402
|
+
},
|
|
138403
|
+
children: (0, import_jsx_runtime11.jsx)(import_react_native_svg.SvgXml, {
|
|
138404
|
+
width: 24,
|
|
138405
|
+
height: 24,
|
|
138406
|
+
xml: BACK_BUTTON_XML.replace(/__COLOR__/g, theme === "light" ? "#191F28" : "#FFFFFF")
|
|
138407
|
+
})
|
|
138408
|
+
})
|
|
138409
|
+
});
|
|
138410
|
+
}
|
|
138411
|
+
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");
|
|
138413
|
+
var import_react_native22 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138414
|
+
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138415
|
+
function HomeButton({
|
|
138416
|
+
theme = "light",
|
|
138417
|
+
onPress,
|
|
138418
|
+
children
|
|
138419
|
+
}) {
|
|
138420
|
+
return (0, import_jsx_runtime12.jsxs)(import_react_native22.TouchableOpacity, {
|
|
138421
|
+
onPress,
|
|
138422
|
+
style: {
|
|
138423
|
+
flexDirection: "row",
|
|
138424
|
+
alignItems: "center",
|
|
138425
|
+
gap: 6,
|
|
138426
|
+
height: 34,
|
|
138427
|
+
paddingLeft: 10,
|
|
138428
|
+
paddingRight: 10,
|
|
138429
|
+
backgroundColor: theme === "light" ? import_tds_react_native9.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)",
|
|
138430
|
+
borderRadius: 99
|
|
138431
|
+
},
|
|
138432
|
+
children: [children, (0, import_jsx_runtime12.jsx)(import_tds_react_native9.Icon, {
|
|
138433
|
+
name: "icon-home-mono",
|
|
138434
|
+
size: 18
|
|
138435
|
+
})]
|
|
138436
|
+
});
|
|
138437
|
+
}
|
|
138438
|
+
var import_react_native23 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138439
|
+
var import_react_native24 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138440
|
+
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138441
|
+
function AppTitle({
|
|
138442
|
+
title,
|
|
138443
|
+
iconUrl,
|
|
138444
|
+
theme = "light"
|
|
138445
|
+
}) {
|
|
138446
|
+
return (0, import_jsx_runtime13.jsxs)(import_react_native24.View, {
|
|
138447
|
+
style: {
|
|
138448
|
+
flexDirection: "row",
|
|
138449
|
+
alignItems: "center",
|
|
138450
|
+
gap: 6
|
|
138451
|
+
},
|
|
138452
|
+
children: [iconUrl != null && iconUrl !== "" && (0, import_jsx_runtime13.jsx)(import_react_native23.Image, {
|
|
138453
|
+
source: {
|
|
138454
|
+
uri: iconUrl
|
|
138455
|
+
},
|
|
138456
|
+
style: {
|
|
138457
|
+
width: 18,
|
|
138458
|
+
height: 18,
|
|
138459
|
+
borderRadius: 6,
|
|
138460
|
+
overflow: "hidden"
|
|
138461
|
+
}
|
|
138462
|
+
}), (0, import_jsx_runtime13.jsx)(import_react_native24.Text, {
|
|
138463
|
+
numberOfLines: 1,
|
|
138464
|
+
ellipsizeMode: "tail",
|
|
138465
|
+
style: {
|
|
138466
|
+
color: theme === "light" ? "#191F28" : "#FFFFFF",
|
|
138467
|
+
fontSize: 16,
|
|
138468
|
+
fontWeight: "600"
|
|
138469
|
+
},
|
|
138470
|
+
children: title
|
|
138471
|
+
})]
|
|
138472
|
+
});
|
|
138473
|
+
}
|
|
138474
|
+
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138475
|
+
var import_react_native25 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138476
|
+
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138477
|
+
function Menu2({
|
|
138478
|
+
theme = "light",
|
|
138479
|
+
accessoryButton,
|
|
138480
|
+
onPressDots,
|
|
138481
|
+
onLongPressDots,
|
|
138482
|
+
onPressClose
|
|
138483
|
+
}) {
|
|
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)";
|
|
138486
|
+
return (0, import_jsx_runtime14.jsxs)(import_react_native25.View, {
|
|
138487
|
+
style: {
|
|
138488
|
+
flexDirection: "row",
|
|
138489
|
+
alignItems: "center",
|
|
138490
|
+
gap: 4
|
|
138491
|
+
},
|
|
138492
|
+
children: [accessoryButton && (0, import_jsx_runtime14.jsx)(import_react_native25.View, {
|
|
138493
|
+
style: {
|
|
138494
|
+
borderRadius: 99,
|
|
138495
|
+
overflow: "hidden"
|
|
138496
|
+
},
|
|
138497
|
+
children: (0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138498
|
+
style: {
|
|
138499
|
+
paddingVertical: 7,
|
|
138500
|
+
paddingHorizontal: 12,
|
|
138501
|
+
backgroundColor
|
|
138502
|
+
},
|
|
138503
|
+
onPress: () => {
|
|
138504
|
+
import_tds_react_native10.tdsEvent.emit("navigationAccessoryEvent", {
|
|
138505
|
+
id: accessoryButton.id
|
|
138506
|
+
});
|
|
138507
|
+
accessoryButton.onPress?.();
|
|
138508
|
+
},
|
|
138509
|
+
disabled: accessoryButton.disabled,
|
|
138510
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
|
|
138511
|
+
name: accessoryButton.icon.name ?? "",
|
|
138512
|
+
accessibilityLabel: accessoryButton.title,
|
|
138513
|
+
color: iconColor,
|
|
138514
|
+
size: 20
|
|
138515
|
+
})
|
|
138516
|
+
})
|
|
138517
|
+
}), (0, import_jsx_runtime14.jsx)(import_react_native25.View, {
|
|
138518
|
+
style: {
|
|
138519
|
+
borderRadius: 99,
|
|
138520
|
+
overflow: "hidden",
|
|
138521
|
+
marginRight: 12
|
|
138522
|
+
},
|
|
138523
|
+
children: (0, import_jsx_runtime14.jsxs)(import_react_native25.View, {
|
|
138524
|
+
style: {
|
|
138525
|
+
flexDirection: "row",
|
|
138526
|
+
justifyContent: "center",
|
|
138527
|
+
alignItems: "center",
|
|
138528
|
+
gap: 12,
|
|
138529
|
+
height: 34,
|
|
138530
|
+
paddingHorizontal: 12,
|
|
138531
|
+
backgroundColor
|
|
138532
|
+
},
|
|
138533
|
+
children: [(0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138534
|
+
onPress: onPressDots,
|
|
138535
|
+
onLongPress: onLongPressDots,
|
|
138536
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
|
|
138537
|
+
name: "icon-dots-mono",
|
|
138538
|
+
accessibilityLabel: "\uB354\uBCF4\uAE30",
|
|
138539
|
+
color: iconColor,
|
|
138540
|
+
size: 20
|
|
138541
|
+
})
|
|
138542
|
+
}), (0, import_jsx_runtime14.jsx)(import_react_native25.View, {
|
|
138543
|
+
style: {
|
|
138544
|
+
width: 1,
|
|
138545
|
+
height: 16,
|
|
138546
|
+
backgroundColor: theme === "light" ? import_tds_react_native10.colors.greyOpacity200 : "rgba(222, 222, 255, 0.19)"
|
|
138547
|
+
}
|
|
138548
|
+
}), (0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
|
|
138549
|
+
onPress: onPressClose,
|
|
138550
|
+
children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
|
|
138551
|
+
name: "icon-appsintoss-close-mono",
|
|
138552
|
+
accessibilityLabel: "\uB2EB\uAE30",
|
|
138553
|
+
color: iconColor,
|
|
138554
|
+
size: 20
|
|
138555
|
+
})
|
|
138556
|
+
})]
|
|
138557
|
+
})
|
|
138558
|
+
})]
|
|
138559
|
+
});
|
|
138560
|
+
}
|
|
138561
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138562
|
+
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138319
138563
|
function NavigationBarImpressionArea({
|
|
138320
138564
|
children,
|
|
138321
138565
|
withHomeButton
|
|
138322
138566
|
}) {
|
|
138323
|
-
var hasLogged = (0,
|
|
138567
|
+
var hasLogged = (0, import_react15.useRef)(false);
|
|
138324
138568
|
var logging = useNavigationBarLogging();
|
|
138325
|
-
(0,
|
|
138569
|
+
(0, import_react15.useEffect)(() => {
|
|
138326
138570
|
if (hasLogged.current === false) {
|
|
138327
138571
|
logging.navBarImpression({
|
|
138328
138572
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -138330,11 +138574,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138330
138574
|
hasLogged.current = true;
|
|
138331
138575
|
}
|
|
138332
138576
|
}, [logging, withHomeButton]);
|
|
138333
|
-
return (0,
|
|
138577
|
+
return (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {
|
|
138334
138578
|
children
|
|
138335
138579
|
});
|
|
138336
138580
|
}
|
|
138337
|
-
var
|
|
138581
|
+
var import_jsx_runtime16 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138338
138582
|
function DefaultNavigationBar() {
|
|
138339
138583
|
var globals = getAppsInTossGlobals();
|
|
138340
138584
|
var _useMoreButtonBottomS = useMoreButtonBottomSheet(),
|
|
@@ -138342,72 +138586,58 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138342
138586
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
138343
138587
|
var withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
|
|
138344
138588
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
138589
|
+
var theme = parsedNavigationBar?.theme ?? "light";
|
|
138345
138590
|
var _useNavigationBarCont = useNavigationBarContext(),
|
|
138346
138591
|
navigationRightButton = _useNavigationBarCont.navigationRightButton;
|
|
138347
138592
|
var navigationEvent = useNavigationEvent();
|
|
138348
138593
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
138349
|
-
return (0,
|
|
138594
|
+
return (0, import_jsx_runtime16.jsx)(NavigationBarImpressionArea, {
|
|
138350
138595
|
withHomeButton,
|
|
138351
|
-
children: (0,
|
|
138352
|
-
|
|
138353
|
-
|
|
138354
|
-
|
|
138355
|
-
|
|
138356
|
-
|
|
138357
|
-
|
|
138358
|
-
|
|
138359
|
-
|
|
138360
|
-
|
|
138361
|
-
|
|
138362
|
-
|
|
138363
|
-
children: (0, import_jsx_runtime11.jsx)(import_private5.NavigationBackButton, {
|
|
138364
|
-
onPress: navigationEvent.handleBack,
|
|
138365
|
-
canGoBack: false
|
|
138596
|
+
children: (0, import_jsx_runtime16.jsx)(TopNavigation, {
|
|
138597
|
+
left: withBackButton ? (0, import_jsx_runtime16.jsx)(BackButton, {
|
|
138598
|
+
theme,
|
|
138599
|
+
onPress: navigationEvent.handleBack
|
|
138600
|
+
}) : null,
|
|
138601
|
+
center: withHomeButton ? (0, import_jsx_runtime16.jsx)(HomeButton, {
|
|
138602
|
+
theme,
|
|
138603
|
+
onPress: navigationEvent.handleHomeButtonClick,
|
|
138604
|
+
children: (0, import_jsx_runtime16.jsx)(AppTitle, {
|
|
138605
|
+
theme,
|
|
138606
|
+
title: globals.brandDisplayName,
|
|
138607
|
+
iconUrl: globals.brandIcon
|
|
138366
138608
|
})
|
|
138609
|
+
}) : (0, import_jsx_runtime16.jsx)(AppTitle, {
|
|
138610
|
+
theme,
|
|
138611
|
+
title: globals.brandDisplayName,
|
|
138612
|
+
iconUrl: globals.brandIcon
|
|
138613
|
+
}),
|
|
138614
|
+
right: (0, import_jsx_runtime16.jsx)(Menu2, {
|
|
138615
|
+
theme,
|
|
138616
|
+
accessoryButton: navigationRightButton,
|
|
138617
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138618
|
+
onPressClose: navigationEvent.handleCloseButtonClick
|
|
138367
138619
|
})
|
|
138368
138620
|
})
|
|
138369
138621
|
});
|
|
138370
138622
|
}
|
|
138371
|
-
var
|
|
138372
|
-
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138373
|
-
var import_private6 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138374
|
-
var import_react_native19 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138375
|
-
var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138623
|
+
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138376
138624
|
function GameNavigationBar() {
|
|
138377
|
-
var safeAreaTop = (0, import_private6.useSafeAreaTop)();
|
|
138378
138625
|
var _useMoreButtonBottomS2 = useMoreButtonBottomSheet(),
|
|
138379
138626
|
openMoreButtonBottomSheet = _useMoreButtonBottomS2.open;
|
|
138380
138627
|
var navigationEvent = useNavigationEvent();
|
|
138381
138628
|
var _useNavigationBarCont2 = useNavigationBarContext(),
|
|
138382
138629
|
navigationRightButton = _useNavigationBarCont2.navigationRightButton;
|
|
138383
|
-
var
|
|
138384
|
-
|
|
138630
|
+
var _getAppsInTossGlobals2 = getAppsInTossGlobals(),
|
|
138631
|
+
navigationBar = _getAppsInTossGlobals2.navigationBar;
|
|
138632
|
+
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
138385
138633
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
138386
|
-
return (0,
|
|
138387
|
-
|
|
138388
|
-
|
|
138389
|
-
|
|
138390
|
-
|
|
138391
|
-
|
|
138392
|
-
|
|
138393
|
-
width: "100%",
|
|
138394
|
-
height: import_react_native19.Platform.OS === "ios" ? 44 : 54,
|
|
138395
|
-
flexDirection: "row",
|
|
138396
|
-
alignItems: "center",
|
|
138397
|
-
justifyContent: "flex-end",
|
|
138398
|
-
position: "absolute",
|
|
138399
|
-
zIndex: Z_INDEX.CLOSE_BUTTON,
|
|
138400
|
-
marginTop: safeAreaTop,
|
|
138401
|
-
paddingRight: safeAreaRight + 10
|
|
138402
|
-
},
|
|
138403
|
-
pointerEvents: "box-none",
|
|
138404
|
-
children: (0, import_jsx_runtime12.jsx)(import_private6.NavigationRightContent, {
|
|
138405
|
-
fixedRightButton: navigationRightButton,
|
|
138406
|
-
onPressDots: openMoreButtonBottomSheet,
|
|
138407
|
-
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
138408
|
-
theme: "dark"
|
|
138409
|
-
})
|
|
138410
|
-
})]
|
|
138634
|
+
return (0, import_jsx_runtime17.jsx)(TopNavigation, {
|
|
138635
|
+
right: (0, import_jsx_runtime17.jsx)(Menu2, {
|
|
138636
|
+
theme: parsedNavigationBar?.theme ?? "dark",
|
|
138637
|
+
accessoryButton: navigationRightButton,
|
|
138638
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138639
|
+
onPressClose: navigationEvent.handleCloseButtonClick
|
|
138640
|
+
})
|
|
138411
138641
|
});
|
|
138412
138642
|
}
|
|
138413
138643
|
var RNNavigationBar = {
|
|
@@ -138415,22 +138645,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138415
138645
|
Game: GameNavigationBar
|
|
138416
138646
|
};
|
|
138417
138647
|
var bridge_entry_exports = {};
|
|
138418
|
-
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[
|
|
138419
|
-
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[
|
|
138420
|
-
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[
|
|
138421
|
-
var
|
|
138648
|
+
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/async-bridges"));
|
|
138649
|
+
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/constant-bridges"));
|
|
138650
|
+
__reExport(bridge_entry_exports, _$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/event-bridges"));
|
|
138651
|
+
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138422
138652
|
function RNAppContainer({
|
|
138423
138653
|
children
|
|
138424
138654
|
}) {
|
|
138425
138655
|
var global2 = getAppsInTossGlobals();
|
|
138426
138656
|
switch (global2.appType) {
|
|
138427
138657
|
case "game":
|
|
138428
|
-
return (0,
|
|
138658
|
+
return (0, import_jsx_runtime18.jsx)(GameAppContainer, {
|
|
138429
138659
|
children
|
|
138430
138660
|
});
|
|
138431
138661
|
case "general":
|
|
138432
138662
|
default:
|
|
138433
|
-
return (0,
|
|
138663
|
+
return (0, import_jsx_runtime18.jsx)(GeneralAppContainer, {
|
|
138434
138664
|
children
|
|
138435
138665
|
});
|
|
138436
138666
|
}
|
|
@@ -138438,8 +138668,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138438
138668
|
function GameAppContainer({
|
|
138439
138669
|
children
|
|
138440
138670
|
}) {
|
|
138441
|
-
(0,
|
|
138442
|
-
if (
|
|
138671
|
+
(0, import_react16.useEffect)(() => {
|
|
138672
|
+
if (import_react_native26.Platform.OS === "ios") {
|
|
138443
138673
|
(0, import_native_modules9.setIosSwipeGestureEnabled)({
|
|
138444
138674
|
isEnabled: false
|
|
138445
138675
|
});
|
|
@@ -138451,8 +138681,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138451
138681
|
}
|
|
138452
138682
|
return;
|
|
138453
138683
|
}, []);
|
|
138454
|
-
return (0,
|
|
138455
|
-
children: [(0,
|
|
138684
|
+
return (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, {
|
|
138685
|
+
children: [(0, import_jsx_runtime18.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime18.jsx)(GameInitializer, {
|
|
138456
138686
|
children
|
|
138457
138687
|
}) : children]
|
|
138458
138688
|
});
|
|
@@ -138460,11 +138690,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138460
138690
|
function GeneralAppContainer({
|
|
138461
138691
|
children
|
|
138462
138692
|
}) {
|
|
138463
|
-
return (0,
|
|
138464
|
-
children: [(0,
|
|
138693
|
+
return (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, {
|
|
138694
|
+
children: [(0, import_jsx_runtime18.jsx)(RNNavigationBar.Default, {}), children]
|
|
138465
138695
|
});
|
|
138466
138696
|
}
|
|
138467
|
-
var
|
|
138697
|
+
var import_jsx_runtime19 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138468
138698
|
function AppsInTossContainer(Container, {
|
|
138469
138699
|
children,
|
|
138470
138700
|
...initialProps
|
|
@@ -138473,18 +138703,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138473
138703
|
android: "5.220.0",
|
|
138474
138704
|
ios: "5.221.0"
|
|
138475
138705
|
})) {
|
|
138476
|
-
return (0,
|
|
138477
|
-
children: [(0,
|
|
138706
|
+
return (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, {
|
|
138707
|
+
children: [(0, import_jsx_runtime19.jsx)(AppEvent.System, {
|
|
138478
138708
|
...initialProps
|
|
138479
|
-
}), (0,
|
|
138709
|
+
}), (0, import_jsx_runtime19.jsx)(AppUpdate, {})]
|
|
138480
138710
|
});
|
|
138481
138711
|
}
|
|
138482
|
-
return (0,
|
|
138483
|
-
children: [(0,
|
|
138712
|
+
return (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, {
|
|
138713
|
+
children: [(0, import_jsx_runtime19.jsx)(AppEvent.System, {
|
|
138484
138714
|
...initialProps
|
|
138485
|
-
}), (0,
|
|
138715
|
+
}), (0, import_jsx_runtime19.jsx)(Container, {
|
|
138486
138716
|
...initialProps,
|
|
138487
|
-
children: (0,
|
|
138717
|
+
children: (0, import_jsx_runtime19.jsx)(import_tds_react_native11.TDSProvider, {
|
|
138488
138718
|
colorPreference: "light",
|
|
138489
138719
|
token: {
|
|
138490
138720
|
color: {
|
|
@@ -138501,13 +138731,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138501
138731
|
analytics
|
|
138502
138732
|
}) {
|
|
138503
138733
|
var appName = getAppName();
|
|
138504
|
-
var isRegistered =
|
|
138734
|
+
var isRegistered = import_react_native28.AppRegistry.getAppKeys().includes(appName);
|
|
138505
138735
|
if (!isRegistered) {
|
|
138506
138736
|
import_analytics.Analytics.init({
|
|
138507
138737
|
logger: params => void (0, import_native_modules10.eventLog)(params),
|
|
138508
138738
|
debug: analytics?.debug ?? __DEV__
|
|
138509
138739
|
});
|
|
138510
|
-
var App =
|
|
138740
|
+
var App = import_react_native27.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
138511
138741
|
appName,
|
|
138512
138742
|
context,
|
|
138513
138743
|
initialScheme: (0, import_native_modules10.getSchemeUri)(),
|
|
@@ -138515,7 +138745,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138515
138745
|
router: {
|
|
138516
138746
|
screenContainer: AppsInTossScreenContainer,
|
|
138517
138747
|
defaultScreenOption: {
|
|
138518
|
-
statusBarStyle: "dark"
|
|
138748
|
+
statusBarStyle: "dark",
|
|
138749
|
+
header: () => null
|
|
138519
138750
|
}
|
|
138520
138751
|
}
|
|
138521
138752
|
});
|
|
@@ -138527,21 +138758,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138527
138758
|
children
|
|
138528
138759
|
}) {
|
|
138529
138760
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
138530
|
-
return (0,
|
|
138531
|
-
children: isRNApp ? (0,
|
|
138761
|
+
return (0, import_jsx_runtime19.jsx)(NavigationBarContextProvider, {
|
|
138762
|
+
children: isRNApp ? (0, import_jsx_runtime19.jsx)(import_analytics.Analytics.Screen, {
|
|
138532
138763
|
onLog: params => sendLog({
|
|
138533
138764
|
log_type: params.log_type,
|
|
138534
138765
|
log_name: "appsintoss_app_visit__appssintoss_systemlog",
|
|
138535
138766
|
params: {
|
|
138536
138767
|
...params.params,
|
|
138537
138768
|
schema_id: 5175906,
|
|
138538
|
-
app_name:
|
|
138769
|
+
app_name: import_react_native27.Granite.appName,
|
|
138539
138770
|
log_name: params.log_name
|
|
138540
138771
|
}
|
|
138541
138772
|
}, {
|
|
138542
138773
|
pipelines: ["core"]
|
|
138543
138774
|
}),
|
|
138544
|
-
children: (0,
|
|
138775
|
+
children: (0, import_jsx_runtime19.jsx)(RNAppContainer, {
|
|
138545
138776
|
children
|
|
138546
138777
|
})
|
|
138547
138778
|
}) : children
|
|
@@ -138559,75 +138790,51 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138559
138790
|
registerApp
|
|
138560
138791
|
};
|
|
138561
138792
|
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138562
|
-
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[
|
|
138563
|
-
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[
|
|
138564
|
-
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[
|
|
138565
|
-
var import_user_scripts = _$$_REQUIRE(_dependencyMap[
|
|
138566
|
-
var
|
|
138567
|
-
var
|
|
138568
|
-
var
|
|
138569
|
-
var
|
|
138570
|
-
var
|
|
138571
|
-
var import_react_native37 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138793
|
+
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[15], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
138794
|
+
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[16], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
138795
|
+
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
138796
|
+
var import_user_scripts = _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/user-scripts");
|
|
138797
|
+
var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138798
|
+
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");
|
|
138801
|
+
var import_react_native42 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138572
138802
|
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138573
|
-
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[
|
|
138803
|
+
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
|
|
138804
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138805
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138806
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138807
|
+
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138574
138808
|
var import_react17 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138575
|
-
var
|
|
138576
|
-
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
|
|
138577
|
-
var import_react_native23 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138578
|
-
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
138579
|
-
var import_private7 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138580
|
-
var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138581
|
-
var import_react_native24 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
138582
|
-
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138809
|
+
var import_jsx_runtime20 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138583
138810
|
function GameWebviewNavigationBar() {
|
|
138584
|
-
var
|
|
138585
|
-
|
|
138586
|
-
openConfirm = _ref26.openConfirm;
|
|
138811
|
+
var _ref25 = (0, import_tds_react_native12.useDialog)(),
|
|
138812
|
+
openConfirm = _ref25.openConfirm;
|
|
138587
138813
|
var logging = useNavigationBarLogging();
|
|
138588
138814
|
var _useMoreButtonBottomS3 = useMoreButtonBottomSheet(),
|
|
138589
138815
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
138590
138816
|
var _useNavigationBarCont3 = useNavigationBarContext(),
|
|
138591
138817
|
navigationRightButton = _useNavigationBarCont3.navigationRightButton;
|
|
138592
|
-
var
|
|
138593
|
-
|
|
138594
|
-
var
|
|
138818
|
+
var _getAppsInTossGlobals3 = getAppsInTossGlobals(),
|
|
138819
|
+
navigationBar = _getAppsInTossGlobals3.navigationBar;
|
|
138820
|
+
var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
|
|
138821
|
+
var handleGameWebviewClose = (0, import_react17.useCallback)(_asyncToGenerator(function* () {
|
|
138595
138822
|
logging.closeButtonClick();
|
|
138596
|
-
(0,
|
|
138823
|
+
(0, import_react_native29.closeView)();
|
|
138597
138824
|
}), [logging, openConfirm]);
|
|
138598
|
-
return (0,
|
|
138599
|
-
|
|
138600
|
-
|
|
138601
|
-
|
|
138602
|
-
|
|
138603
|
-
|
|
138604
|
-
|
|
138605
|
-
width: "100%",
|
|
138606
|
-
height: import_react_native24.Platform.OS === "ios" ? 44 : 54,
|
|
138607
|
-
flexDirection: "row",
|
|
138608
|
-
alignItems: "center",
|
|
138609
|
-
justifyContent: "flex-end",
|
|
138610
|
-
position: "absolute",
|
|
138611
|
-
zIndex: Z_INDEX.CLOSE_BUTTON,
|
|
138612
|
-
marginTop: safeAreaTop,
|
|
138613
|
-
paddingRight: safeAreaRight + 10
|
|
138614
|
-
},
|
|
138615
|
-
pointerEvents: "box-none",
|
|
138616
|
-
children: (0, import_jsx_runtime15.jsx)(import_private7.NavigationRightContent, {
|
|
138617
|
-
fixedRightButton: navigationRightButton,
|
|
138618
|
-
onPressDots: openMoreButtonBottomSheet,
|
|
138619
|
-
onPressClose: () => {
|
|
138620
|
-
handleGameWebviewClose();
|
|
138621
|
-
},
|
|
138622
|
-
theme: "dark"
|
|
138623
|
-
})
|
|
138624
|
-
})]
|
|
138825
|
+
return (0, import_jsx_runtime20.jsx)(TopNavigation, {
|
|
138826
|
+
right: (0, import_jsx_runtime20.jsx)(Menu2, {
|
|
138827
|
+
theme: parsedNavigationBar?.theme ?? "dark",
|
|
138828
|
+
accessoryButton: navigationRightButton,
|
|
138829
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138830
|
+
onPressClose: handleGameWebviewClose
|
|
138831
|
+
})
|
|
138625
138832
|
});
|
|
138626
138833
|
}
|
|
138627
|
-
var
|
|
138628
|
-
var GameWebView = (0,
|
|
138629
|
-
(0,
|
|
138630
|
-
if (
|
|
138834
|
+
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)(() => {
|
|
138837
|
+
if (import_react_native30.Platform.OS === "ios") {
|
|
138631
138838
|
(0, import_native_modules11.setIosSwipeGestureEnabled)({
|
|
138632
138839
|
isEnabled: false
|
|
138633
138840
|
});
|
|
@@ -138639,24 +138846,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138639
138846
|
}
|
|
138640
138847
|
return;
|
|
138641
138848
|
}, []);
|
|
138642
|
-
return (0,
|
|
138643
|
-
children: [(0,
|
|
138644
|
-
children: (0,
|
|
138849
|
+
return (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, {
|
|
138850
|
+
children: [(0, import_jsx_runtime21.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules11.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime21.jsx)(GameInitializer, {
|
|
138851
|
+
children: (0, import_jsx_runtime21.jsx)(import_react_native_webview.WebView, {
|
|
138645
138852
|
ref,
|
|
138646
138853
|
...props
|
|
138647
138854
|
})
|
|
138648
|
-
}) : (0,
|
|
138855
|
+
}) : (0, import_jsx_runtime21.jsx)(import_react_native_webview.WebView, {
|
|
138649
138856
|
ref,
|
|
138650
138857
|
...props
|
|
138651
138858
|
})]
|
|
138652
138859
|
});
|
|
138653
138860
|
});
|
|
138654
|
-
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[
|
|
138861
|
+
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
|
|
138862
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138863
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138655
138864
|
var import_react19 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138656
|
-
var
|
|
138657
|
-
var import_private8 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
138658
|
-
var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
138659
|
-
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138865
|
+
var import_jsx_runtime22 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138660
138866
|
function PartnerWebviewNavigationBar({
|
|
138661
138867
|
onBackButtonClick,
|
|
138662
138868
|
onHomeButtonClick
|
|
@@ -138668,45 +138874,53 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138668
138874
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
138669
138875
|
var withHomeButton = parsedNavigationBar?.withHomeButton ?? false;
|
|
138670
138876
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
138877
|
+
var theme = parsedNavigationBar?.theme ?? "light";
|
|
138671
138878
|
var _useNavigationBarCont4 = useNavigationBarContext(),
|
|
138672
138879
|
navigationRightButton = _useNavigationBarCont4.navigationRightButton;
|
|
138673
|
-
var handleClose = (0,
|
|
138880
|
+
var handleClose = (0, import_react19.useCallback)(_asyncToGenerator(function* () {
|
|
138674
138881
|
logging.closeButtonClick();
|
|
138675
|
-
(0,
|
|
138882
|
+
(0, import_react_native31.closeView)();
|
|
138676
138883
|
}), [logging]);
|
|
138677
|
-
return (0,
|
|
138884
|
+
return (0, import_jsx_runtime22.jsx)(NavigationBarImpressionArea, {
|
|
138678
138885
|
withHomeButton,
|
|
138679
|
-
children: (0,
|
|
138680
|
-
|
|
138681
|
-
|
|
138682
|
-
|
|
138683
|
-
|
|
138684
|
-
|
|
138685
|
-
|
|
138686
|
-
|
|
138687
|
-
|
|
138688
|
-
|
|
138689
|
-
|
|
138690
|
-
|
|
138691
|
-
children: (0, import_jsx_runtime17.jsx)(import_private8.NavigationBackButton, {
|
|
138692
|
-
onPress: onBackButtonClick,
|
|
138693
|
-
canGoBack: false
|
|
138886
|
+
children: (0, import_jsx_runtime22.jsx)(TopNavigation, {
|
|
138887
|
+
left: withBackButton ? (0, import_jsx_runtime22.jsx)(BackButton, {
|
|
138888
|
+
theme,
|
|
138889
|
+
onPress: onBackButtonClick
|
|
138890
|
+
}) : null,
|
|
138891
|
+
center: withHomeButton ? (0, import_jsx_runtime22.jsx)(HomeButton, {
|
|
138892
|
+
theme,
|
|
138893
|
+
onPress: onHomeButtonClick,
|
|
138894
|
+
children: (0, import_jsx_runtime22.jsx)(AppTitle, {
|
|
138895
|
+
theme,
|
|
138896
|
+
title: globals.brandDisplayName,
|
|
138897
|
+
iconUrl: globals.brandIcon
|
|
138694
138898
|
})
|
|
138899
|
+
}) : (0, import_jsx_runtime22.jsx)(AppTitle, {
|
|
138900
|
+
theme,
|
|
138901
|
+
title: globals.brandDisplayName,
|
|
138902
|
+
iconUrl: globals.brandIcon
|
|
138903
|
+
}),
|
|
138904
|
+
right: (0, import_jsx_runtime22.jsx)(Menu2, {
|
|
138905
|
+
theme,
|
|
138906
|
+
accessoryButton: navigationRightButton,
|
|
138907
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
138908
|
+
onPressClose: handleClose
|
|
138695
138909
|
})
|
|
138696
138910
|
})
|
|
138697
138911
|
});
|
|
138698
138912
|
}
|
|
138699
|
-
var
|
|
138700
|
-
var PartnerWebView = (0,
|
|
138913
|
+
var import_jsx_runtime23 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
138914
|
+
var PartnerWebView = (0, import_react20.forwardRef)(function PartnerWebViewScreen({
|
|
138701
138915
|
onBackButtonClick,
|
|
138702
138916
|
onHomeButtonClick,
|
|
138703
138917
|
...webViewProps
|
|
138704
138918
|
}, ref) {
|
|
138705
|
-
return (0,
|
|
138706
|
-
children: [(0,
|
|
138919
|
+
return (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, {
|
|
138920
|
+
children: [(0, import_jsx_runtime23.jsx)(PartnerWebviewNavigationBar, {
|
|
138707
138921
|
onBackButtonClick,
|
|
138708
138922
|
onHomeButtonClick
|
|
138709
|
-
}), (0,
|
|
138923
|
+
}), (0, import_jsx_runtime23.jsx)(import_react_native_webview2.WebView, {
|
|
138710
138924
|
ref,
|
|
138711
138925
|
...webViewProps,
|
|
138712
138926
|
style: {
|
|
@@ -138760,11 +138974,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138760
138974
|
params.onError(createInvalidAdGroupIdError());
|
|
138761
138975
|
return noop;
|
|
138762
138976
|
}
|
|
138977
|
+
var wireHeaders = options.headers;
|
|
138763
138978
|
var unregisterCallbacks = import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
138764
138979
|
spaceUnitId: adGroupId,
|
|
138765
138980
|
sessionId,
|
|
138766
138981
|
sdkId: options.sdkId,
|
|
138767
|
-
availableStyleIds: options.availableStyleIds
|
|
138982
|
+
availableStyleIds: options.availableStyleIds,
|
|
138983
|
+
...(wireHeaders ? {
|
|
138984
|
+
headers: wireHeaders
|
|
138985
|
+
} : {})
|
|
138768
138986
|
}, {
|
|
138769
138987
|
onSuccess: response => {
|
|
138770
138988
|
onEvent(response);
|
|
@@ -138790,19 +139008,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138790
139008
|
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
138791
139009
|
return `ait-${timestamp}${random}`;
|
|
138792
139010
|
}
|
|
138793
|
-
var
|
|
139011
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138794
139012
|
function getReferrer() {
|
|
138795
139013
|
try {
|
|
138796
|
-
return new URL((0,
|
|
139014
|
+
return new URL((0, import_react_native32.getSchemeUri)()).searchParams.get("referrer");
|
|
138797
139015
|
} catch {
|
|
138798
139016
|
return null;
|
|
138799
139017
|
}
|
|
138800
139018
|
}
|
|
138801
139019
|
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
138802
|
-
var
|
|
139020
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
138803
139021
|
function getIsDev() {
|
|
138804
139022
|
try {
|
|
138805
|
-
return new URL((0,
|
|
139023
|
+
return new URL((0, import_react_native33.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
138806
139024
|
} catch {
|
|
138807
139025
|
return false;
|
|
138808
139026
|
}
|
|
@@ -138866,8 +139084,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138866
139084
|
}
|
|
138867
139085
|
};
|
|
138868
139086
|
if (!integratedAdIsSupported()) {
|
|
139087
|
+
var fallbackOptions = {
|
|
139088
|
+
...normalizedParams.options
|
|
139089
|
+
};
|
|
139090
|
+
delete fallbackOptions.headers;
|
|
138869
139091
|
return import_native_modules14.GoogleAdMob.loadAppsInTossAdMob({
|
|
138870
139092
|
...normalizedParams,
|
|
139093
|
+
options: fallbackOptions,
|
|
138871
139094
|
onEvent: event => {
|
|
138872
139095
|
if (event.type === "loaded") {
|
|
138873
139096
|
var requestId = generateRequestId();
|
|
@@ -138906,11 +139129,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
138906
139129
|
options = normalizedParams.options;
|
|
138907
139130
|
var adGroupId = options.adGroupId;
|
|
138908
139131
|
var referrer = getReferrer();
|
|
139132
|
+
var wireHeaders = options.headers;
|
|
138909
139133
|
var unregisterCallbacks = import_native_modules14.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
138910
139134
|
spaceUnitId: adGroupId,
|
|
138911
139135
|
referrer,
|
|
138912
139136
|
sessionId,
|
|
138913
|
-
sdkId
|
|
139137
|
+
sdkId,
|
|
139138
|
+
...(wireHeaders ? {
|
|
139139
|
+
headers: wireHeaders
|
|
139140
|
+
} : {})
|
|
138914
139141
|
}, {
|
|
138915
139142
|
onSuccess: () => {
|
|
138916
139143
|
onEvent({
|
|
@@ -139095,14 +139322,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139095
139322
|
return unregisterCallbacks;
|
|
139096
139323
|
}
|
|
139097
139324
|
showFullScreenAd.isSupported = import_native_modules14.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
139098
|
-
var
|
|
139325
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139099
139326
|
function tossAdEventLog(_x3) {
|
|
139100
139327
|
return _tossAdEventLog.apply(this, arguments);
|
|
139101
139328
|
}
|
|
139102
139329
|
function _tossAdEventLog() {
|
|
139103
139330
|
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
139104
139331
|
var referrer = getReferrer();
|
|
139105
|
-
var appName =
|
|
139332
|
+
var appName = import_react_native34.Granite.appName;
|
|
139106
139333
|
var eventLogParams = {
|
|
139107
139334
|
...params,
|
|
139108
139335
|
params: {
|
|
@@ -139117,7 +139344,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139117
139344
|
});
|
|
139118
139345
|
return _tossAdEventLog.apply(this, arguments);
|
|
139119
139346
|
}
|
|
139120
|
-
var
|
|
139347
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139121
139348
|
function serializeError(error) {
|
|
139122
139349
|
return JSON.stringify(error, (_, value) => {
|
|
139123
139350
|
if (value instanceof Error) {
|
|
@@ -139148,12 +139375,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139148
139375
|
return;
|
|
139149
139376
|
}
|
|
139150
139377
|
var wrappedFunc = function () {
|
|
139151
|
-
var
|
|
139378
|
+
var _ref28 = _asyncToGenerator(function* (...args2) {
|
|
139152
139379
|
var result = yield func(...args2);
|
|
139153
139380
|
return result;
|
|
139154
139381
|
});
|
|
139155
139382
|
return function wrappedFunc() {
|
|
139156
|
-
return
|
|
139383
|
+
return _ref28.apply(this, arguments);
|
|
139157
139384
|
};
|
|
139158
139385
|
}();
|
|
139159
139386
|
wrappedFunc(...args).then(result => {
|
|
@@ -139174,12 +139401,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139174
139401
|
asyncHandlerMap,
|
|
139175
139402
|
eventListenerMap
|
|
139176
139403
|
}) {
|
|
139177
|
-
var ref = (0,
|
|
139178
|
-
var injectedJavaScript = (0,
|
|
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]) => {
|
|
139179
139406
|
acc[key] = typeof value === "function" ? value() : value;
|
|
139180
139407
|
return acc;
|
|
139181
139408
|
}, {}))};`, [constantHandlerMap]);
|
|
139182
|
-
(0,
|
|
139409
|
+
(0, import_react21.useEffect)(() => {
|
|
139183
139410
|
ref.current?.injectJavaScript(injectedJavaScript);
|
|
139184
139411
|
}, [injectedJavaScript]);
|
|
139185
139412
|
var createHandleOnEvent = (functionName, eventId) => response => {
|
|
@@ -139193,8 +139420,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139193
139420
|
window.__GRANITE_NATIVE_EMITTER.emit('${functionName}/onError/${eventId}', ${serializedError});
|
|
139194
139421
|
`);
|
|
139195
139422
|
};
|
|
139196
|
-
var $onMessage = (0,
|
|
139197
|
-
var
|
|
139423
|
+
var $onMessage = (0, import_react21.useCallback)(function () {
|
|
139424
|
+
var _ref29 = _asyncToGenerator(function* (e) {
|
|
139198
139425
|
onMessage?.(e);
|
|
139199
139426
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
139200
139427
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -139237,7 +139464,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139237
139464
|
}
|
|
139238
139465
|
});
|
|
139239
139466
|
return function (_x4) {
|
|
139240
|
-
return
|
|
139467
|
+
return _ref29.apply(this, arguments);
|
|
139241
139468
|
};
|
|
139242
139469
|
}(), [onMessage]);
|
|
139243
139470
|
return {
|
|
@@ -139254,21 +139481,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139254
139481
|
return null;
|
|
139255
139482
|
}
|
|
139256
139483
|
}
|
|
139257
|
-
var
|
|
139258
|
-
var
|
|
139484
|
+
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");
|
|
139259
139486
|
function useSafeAreaInsetsEvent() {
|
|
139260
|
-
var insets = (0,
|
|
139261
|
-
(0,
|
|
139487
|
+
var insets = (0, import_react_native_safe_area_context2.useSafeAreaInsets)();
|
|
139488
|
+
(0, import_react22.useEffect)(() => {
|
|
139262
139489
|
safeAreaInsetsChange.emit(insets);
|
|
139263
139490
|
}, [insets]);
|
|
139264
|
-
(0,
|
|
139491
|
+
(0, import_react22.useEffect)(() => {
|
|
139265
139492
|
return () => safeAreaInsetsChange.clearSubscriptions();
|
|
139266
139493
|
}, []);
|
|
139267
139494
|
return safeAreaInsetsChange;
|
|
139268
139495
|
}
|
|
139269
|
-
var
|
|
139496
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139497
|
+
var import_react24 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139270
139498
|
var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139271
|
-
var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139272
139499
|
var INITIAL_STATE = {
|
|
139273
139500
|
stack: [],
|
|
139274
139501
|
index: -1
|
|
@@ -139317,11 +139544,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139317
139544
|
}
|
|
139318
139545
|
}
|
|
139319
139546
|
function useWebViewHistory() {
|
|
139320
|
-
var
|
|
139321
|
-
|
|
139322
|
-
state =
|
|
139323
|
-
dispatch =
|
|
139324
|
-
var onNavigationStateChange = (0,
|
|
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)(({
|
|
139325
139552
|
url,
|
|
139326
139553
|
canGoForward: canGoForward2
|
|
139327
139554
|
}) => {
|
|
@@ -139331,7 +139558,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139331
139558
|
canGoForward: canGoForward2
|
|
139332
139559
|
});
|
|
139333
139560
|
}, []);
|
|
139334
|
-
var
|
|
139561
|
+
var _ref32 = (0, import_react23.useMemo)(() => {
|
|
139335
139562
|
var canBack = state.index > 0;
|
|
139336
139563
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
139337
139564
|
return {
|
|
@@ -139339,8 +139566,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139339
139566
|
canGoForward: canFwd
|
|
139340
139567
|
};
|
|
139341
139568
|
}, [state.index, state.stack.length]),
|
|
139342
|
-
canGoBack =
|
|
139343
|
-
canGoForward =
|
|
139569
|
+
canGoBack = _ref32.canGoBack,
|
|
139570
|
+
canGoForward = _ref32.canGoForward;
|
|
139344
139571
|
return {
|
|
139345
139572
|
onNavigationStateChange,
|
|
139346
139573
|
hasHistory: canGoBack,
|
|
@@ -139351,19 +139578,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139351
139578
|
var _useWebViewHistory = useWebViewHistory(),
|
|
139352
139579
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
139353
139580
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
139354
|
-
var
|
|
139355
|
-
webBackHandlersRef =
|
|
139356
|
-
hasWebBackEvent =
|
|
139357
|
-
addWebBackEventListener =
|
|
139358
|
-
removeWebBackEventListener =
|
|
139581
|
+
var _ref33 = (0, import_react_native35.useBackEventState)(),
|
|
139582
|
+
webBackHandlersRef = _ref33.handlersRef,
|
|
139583
|
+
hasWebBackEvent = _ref33.hasBackEvent,
|
|
139584
|
+
addWebBackEventListener = _ref33.addEventListener,
|
|
139585
|
+
removeWebBackEventListener = _ref33.removeEventListener;
|
|
139359
139586
|
var logging = useNavigationBarLogging();
|
|
139360
|
-
var addEventListener = (0,
|
|
139587
|
+
var addEventListener = (0, import_react24.useCallback)(handler => {
|
|
139361
139588
|
addWebBackEventListener(handler);
|
|
139362
139589
|
}, [addWebBackEventListener]);
|
|
139363
|
-
var removeEventListener = (0,
|
|
139590
|
+
var removeEventListener = (0, import_react24.useCallback)(handler => {
|
|
139364
139591
|
removeWebBackEventListener(handler);
|
|
139365
139592
|
}, [removeWebBackEventListener]);
|
|
139366
|
-
var handleWebBack = (0,
|
|
139593
|
+
var handleWebBack = (0, import_react24.useCallback)(_asyncToGenerator(function* () {
|
|
139367
139594
|
if (hasWebBackEvent) {
|
|
139368
139595
|
for (var handler of webBackHandlersRef) {
|
|
139369
139596
|
handler();
|
|
@@ -139373,10 +139600,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139373
139600
|
if (hasHistory) {
|
|
139374
139601
|
webViewRef.current?.injectJavaScript("window.history.back();");
|
|
139375
139602
|
} else {
|
|
139376
|
-
(0,
|
|
139603
|
+
(0, import_react_native35.closeView)();
|
|
139377
139604
|
}
|
|
139378
139605
|
}), [hasHistory, hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
139379
|
-
var handleWebHome = (0,
|
|
139606
|
+
var handleWebHome = (0, import_react24.useCallback)(() => {
|
|
139380
139607
|
logging.homeButtonClick();
|
|
139381
139608
|
if (homeEvent.hasSubscriptions()) {
|
|
139382
139609
|
homeEvent.emit({});
|
|
@@ -139389,7 +139616,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139389
139616
|
})();
|
|
139390
139617
|
`);
|
|
139391
139618
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewInitialURL, webViewRef]);
|
|
139392
|
-
return (0,
|
|
139619
|
+
return (0, import_react24.useMemo)(() => ({
|
|
139393
139620
|
addEventListener,
|
|
139394
139621
|
removeEventListener,
|
|
139395
139622
|
handleWebBack,
|
|
@@ -139409,7 +139636,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139409
139636
|
};
|
|
139410
139637
|
}
|
|
139411
139638
|
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139412
|
-
var
|
|
139639
|
+
var import_react_native36 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
139413
139640
|
var FontA11yCategory = {
|
|
139414
139641
|
Large: "Large",
|
|
139415
139642
|
xLarge: "xLarge",
|
|
@@ -139544,27 +139771,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139544
139771
|
}) {
|
|
139545
139772
|
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
139546
139773
|
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
139547
|
-
var
|
|
139548
|
-
fontScale =
|
|
139774
|
+
var _ref35 = (0, import_react_native36.useWindowDimensions)(),
|
|
139775
|
+
fontScale = _ref35.fontScale;
|
|
139549
139776
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
139550
139777
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
139551
139778
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
139552
139779
|
return ["AppsInToss", `TossApp/${appVersion}`, batteryModePreference && `TossBatteryModePreference/${batteryModePreference}`, colorPreference && `TossColorPreference/${colorPreference}`, `TossFontAccessibility/${fontA11y}`, `TossFontScale/${normalizedFontScale}`, locale && `TossLocale/${locale}`, navbarPreference && `TossNavbarPreference/${navbarPreference}`, pureSafeArea && `TossPureSafeArea/${pureSafeArea}`, safeArea && `TossSafeArea/${safeArea}`, safeAreaBottomTransparency && `TossSafeAreaBottomTransparency/${safeAreaBottomTransparency}`, platformString].filter(Boolean).join(" ");
|
|
139553
139780
|
}
|
|
139554
139781
|
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139555
|
-
var
|
|
139556
|
-
var
|
|
139782
|
+
var import_react_native37 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139783
|
+
var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139557
139784
|
function useGeolocation({
|
|
139558
139785
|
accuracy,
|
|
139559
139786
|
distanceInterval,
|
|
139560
139787
|
timeInterval
|
|
139561
139788
|
}) {
|
|
139562
|
-
var isVisible = (0,
|
|
139563
|
-
var
|
|
139564
|
-
|
|
139565
|
-
location =
|
|
139566
|
-
setLocation =
|
|
139567
|
-
(0,
|
|
139789
|
+
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)(() => {
|
|
139568
139795
|
if (!isVisible) {
|
|
139569
139796
|
return;
|
|
139570
139797
|
}
|
|
@@ -139580,18 +139807,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139580
139807
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
139581
139808
|
return location;
|
|
139582
139809
|
}
|
|
139583
|
-
var
|
|
139584
|
-
var
|
|
139810
|
+
var import_react_native38 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139811
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
139585
139812
|
function useWaitForReturnNavigator() {
|
|
139586
|
-
var callbacks = (0,
|
|
139587
|
-
var navigation = (0,
|
|
139588
|
-
var startNavigating = (0,
|
|
139813
|
+
var callbacks = (0, import_react26.useRef)([]).current;
|
|
139814
|
+
var navigation = (0, import_react_native38.useNavigation)();
|
|
139815
|
+
var startNavigating = (0, import_react26.useCallback)((route, params) => {
|
|
139589
139816
|
return new Promise(resolve => {
|
|
139590
139817
|
callbacks.push(resolve);
|
|
139591
139818
|
navigation.navigate(route, params);
|
|
139592
139819
|
});
|
|
139593
139820
|
}, [callbacks, navigation]);
|
|
139594
|
-
var handleVisibilityChange = (0,
|
|
139821
|
+
var handleVisibilityChange = (0, import_react26.useCallback)(state => {
|
|
139595
139822
|
if (state === "visible" && callbacks.length > 0) {
|
|
139596
139823
|
for (var callback of callbacks) {
|
|
139597
139824
|
callback();
|
|
@@ -139599,7 +139826,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139599
139826
|
callbacks.splice(0, callbacks.length);
|
|
139600
139827
|
}
|
|
139601
139828
|
}, [callbacks]);
|
|
139602
|
-
(0,
|
|
139829
|
+
(0, import_react_native38.useVisibilityChange)(handleVisibilityChange);
|
|
139603
139830
|
return startNavigating;
|
|
139604
139831
|
}
|
|
139605
139832
|
function useTopNavigation() {
|
|
@@ -139612,10 +139839,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139612
139839
|
};
|
|
139613
139840
|
}
|
|
139614
139841
|
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
|
|
139615
|
-
var
|
|
139616
|
-
var
|
|
139842
|
+
var import_react_native39 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139843
|
+
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
|
|
139617
139844
|
function useHandleWebViewProcessDidTerminate(webViewRef) {
|
|
139618
|
-
var toast = (0,
|
|
139845
|
+
var toast = (0, import_tds_react_native13.useToast)();
|
|
139619
139846
|
return () => {
|
|
139620
139847
|
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {});
|
|
139621
139848
|
toast.open("\uBB38\uC81C\uAC00 \uC0DD\uACA8\uC11C \uBBF8\uB2C8\uC571\uC744 \uB2E4\uC2DC \uC2DC\uC791\uD588\uC5B4\uC694.", {
|
|
@@ -139641,7 +139868,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139641
139868
|
log_type: "debug",
|
|
139642
139869
|
params: {
|
|
139643
139870
|
...params,
|
|
139644
|
-
app_name:
|
|
139871
|
+
app_name: import_react_native39.Granite.appName,
|
|
139645
139872
|
deployment_id: global2.deploymentId
|
|
139646
139873
|
}
|
|
139647
139874
|
};
|
|
@@ -139653,7 +139880,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139653
139880
|
console.log("[webViewDebugLog]", event);
|
|
139654
139881
|
}
|
|
139655
139882
|
}
|
|
139656
|
-
var
|
|
139883
|
+
var import_react_native40 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
139657
139884
|
var extractDateFromUUIDv7 = uuid => {
|
|
139658
139885
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
139659
139886
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -139675,7 +139902,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139675
139902
|
};
|
|
139676
139903
|
var getReferrer2 = () => {
|
|
139677
139904
|
try {
|
|
139678
|
-
var referrer = new URL((0,
|
|
139905
|
+
var referrer = new URL((0, import_react_native40.getSchemeUri)());
|
|
139679
139906
|
return referrer.searchParams.get("referrer");
|
|
139680
139907
|
} catch {
|
|
139681
139908
|
return "";
|
|
@@ -139691,7 +139918,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139691
139918
|
search,
|
|
139692
139919
|
referrer: getReferrer2(),
|
|
139693
139920
|
document_title: title,
|
|
139694
|
-
app_name:
|
|
139921
|
+
app_name: import_react_native40.Granite.appName,
|
|
139695
139922
|
deployment_id: env.getDeploymentId(),
|
|
139696
139923
|
deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
|
|
139697
139924
|
};
|
|
@@ -139714,28 +139941,28 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139714
139941
|
pipelines: ["core"]
|
|
139715
139942
|
});
|
|
139716
139943
|
};
|
|
139717
|
-
var
|
|
139944
|
+
var import_jsx_runtime24 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
139718
139945
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
139719
139946
|
var TYPES = ["partner", "external", "game"];
|
|
139720
139947
|
var WEBVIEW_TYPES = {
|
|
139721
139948
|
partner: PartnerWebView,
|
|
139722
|
-
external:
|
|
139949
|
+
external: import_tds_react_native14.ExternalWebViewScreen,
|
|
139723
139950
|
game: GameWebView
|
|
139724
139951
|
};
|
|
139725
139952
|
function mergeSchemeQueryParamsInto(url) {
|
|
139726
139953
|
var baseUrl = new URL(url);
|
|
139727
|
-
var schemeUrl = new URL((0,
|
|
139954
|
+
var schemeUrl = new URL((0, import_react_native41.getSchemeUri)());
|
|
139728
139955
|
var resultUrl = new URL(schemeUrl.pathname, baseUrl.origin);
|
|
139729
|
-
for (var
|
|
139730
|
-
var
|
|
139731
|
-
var key =
|
|
139732
|
-
var value =
|
|
139956
|
+
for (var _ref38 of baseUrl.searchParams.entries()) {
|
|
139957
|
+
var _ref39 = _slicedToArray(_ref38, 2);
|
|
139958
|
+
var key = _ref39[0];
|
|
139959
|
+
var value = _ref39[1];
|
|
139733
139960
|
resultUrl.searchParams.set(key, value);
|
|
139734
139961
|
}
|
|
139735
|
-
for (var
|
|
139736
|
-
var
|
|
139737
|
-
var _key =
|
|
139738
|
-
var _value =
|
|
139962
|
+
for (var _ref40 of schemeUrl.searchParams.entries()) {
|
|
139963
|
+
var _ref41 = _slicedToArray(_ref40, 2);
|
|
139964
|
+
var _key = _ref41[0];
|
|
139965
|
+
var _value = _ref41[1];
|
|
139739
139966
|
resultUrl.searchParams.set(_key, _value);
|
|
139740
139967
|
}
|
|
139741
139968
|
return resultUrl;
|
|
@@ -139745,8 +139972,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139745
139972
|
var devUrl = `http://${local.host}:${local.port}`;
|
|
139746
139973
|
return mergeSchemeQueryParamsInto(devUrl);
|
|
139747
139974
|
}
|
|
139748
|
-
var
|
|
139749
|
-
rawUrl =
|
|
139975
|
+
var _ref42 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
|
|
139976
|
+
rawUrl = _ref42.url;
|
|
139750
139977
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
139751
139978
|
var deploymentId = env.getDeploymentId();
|
|
139752
139979
|
if (deploymentId) {
|
|
@@ -139763,19 +139990,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139763
139990
|
if (!TYPES.includes(type)) {
|
|
139764
139991
|
throw new Error(`Invalid WebView type: '${type}'`);
|
|
139765
139992
|
}
|
|
139766
|
-
var webViewRef = (0,
|
|
139767
|
-
var url = (0,
|
|
139993
|
+
var webViewRef = (0, import_react27.useRef)(null);
|
|
139994
|
+
var url = (0, import_react27.useMemo)(() => getWebViewURL(local), [local]);
|
|
139768
139995
|
var webBackHandler = useWebBackHandler(url, webViewRef);
|
|
139769
|
-
var top = (0, import_private9.useSafeAreaTop)();
|
|
139770
|
-
var bottom = (0, import_private9.useSafeAreaBottom)();
|
|
139771
|
-
var insets = (0, import_react_native_safe_area_context4.useSafeAreaInsets)();
|
|
139772
139996
|
var global2 = getAppsInTossGlobals();
|
|
139997
|
+
var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
139773
139998
|
var navigationBarContext = useNavigationBarContext();
|
|
139774
139999
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
139775
|
-
var
|
|
139776
|
-
|
|
139777
|
-
allowsBackForwardNavigationGestures =
|
|
139778
|
-
setAllowsBackForwardNavigationGestures =
|
|
140000
|
+
var _ref43 = (0, import_react27.useState)(props.allowsBackForwardNavigationGestures),
|
|
140001
|
+
_ref44 = _slicedToArray(_ref43, 2),
|
|
140002
|
+
allowsBackForwardNavigationGestures = _ref44[0],
|
|
140003
|
+
setAllowsBackForwardNavigationGestures = _ref44[1];
|
|
139779
140004
|
var handler = useBridgeHandler({
|
|
139780
140005
|
onMessage,
|
|
139781
140006
|
eventListenerMap: {
|
|
@@ -139783,7 +140008,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139783
140008
|
navigationAccessoryEvent: ({
|
|
139784
140009
|
onEvent,
|
|
139785
140010
|
onError
|
|
139786
|
-
}) =>
|
|
140011
|
+
}) => import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
139787
140012
|
onEvent,
|
|
139788
140013
|
onError
|
|
139789
140014
|
}),
|
|
@@ -139831,12 +140056,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139831
140056
|
},
|
|
139832
140057
|
constantHandlerMap: {
|
|
139833
140058
|
...appsInTossConstantBridges,
|
|
139834
|
-
getSafeAreaInsets: () =>
|
|
139835
|
-
top,
|
|
139836
|
-
bottom,
|
|
139837
|
-
left: insets.left,
|
|
139838
|
-
right: insets.right
|
|
139839
|
-
}),
|
|
140059
|
+
getSafeAreaInsets: () => insets,
|
|
139840
140060
|
...Object.fromEntries(Object.entries(global2).map(([key, value]) => [key, () => value])),
|
|
139841
140061
|
getServerTime_isSupported: import_native_modules18.getServerTime.isSupported,
|
|
139842
140062
|
requestReview_isSupported: import_native_modules18.requestReview.isSupported,
|
|
@@ -139858,19 +140078,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139858
140078
|
return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
|
|
139859
140079
|
},
|
|
139860
140080
|
addAccessoryButton: function () {
|
|
139861
|
-
var
|
|
140081
|
+
var _ref45 = _asyncToGenerator(function* (params) {
|
|
139862
140082
|
return navigationBarContext.addNavigationRightButton(params);
|
|
139863
140083
|
});
|
|
139864
140084
|
return function addAccessoryButton(_x6) {
|
|
139865
|
-
return
|
|
140085
|
+
return _ref45.apply(this, arguments);
|
|
139866
140086
|
};
|
|
139867
140087
|
}(),
|
|
139868
140088
|
removeAccessoryButton: function () {
|
|
139869
|
-
var
|
|
140089
|
+
var _ref46 = _asyncToGenerator(function* () {
|
|
139870
140090
|
return navigationBarContext.removeNavigationRightButton();
|
|
139871
140091
|
});
|
|
139872
140092
|
return function removeAccessoryButton() {
|
|
139873
|
-
return
|
|
140093
|
+
return _ref46.apply(this, arguments);
|
|
139874
140094
|
};
|
|
139875
140095
|
}(),
|
|
139876
140096
|
requestPermission: appsInTossAsyncBridges.requestPermission,
|
|
@@ -139897,16 +140117,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139897
140117
|
tossAdEventLog,
|
|
139898
140118
|
memoryDebugLog: webViewMemoryDebugLog,
|
|
139899
140119
|
debugLog: function () {
|
|
139900
|
-
var
|
|
140120
|
+
var _ref47 = _asyncToGenerator(function* (event) {
|
|
139901
140121
|
sendLog(event);
|
|
139902
140122
|
});
|
|
139903
140123
|
return function debugLog(_x7) {
|
|
139904
|
-
return
|
|
140124
|
+
return _ref47.apply(this, arguments);
|
|
139905
140125
|
};
|
|
139906
140126
|
}()
|
|
139907
140127
|
}
|
|
139908
140128
|
});
|
|
139909
|
-
var headerPropForExternalWebView = (0,
|
|
140129
|
+
var headerPropForExternalWebView = (0, import_react27.useMemo)(() => {
|
|
139910
140130
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
139911
140131
|
var initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
|
|
139912
140132
|
var withBackButton = parsedNavigationBar?.withBackButton ?? true;
|
|
@@ -139927,16 +140147,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139927
140147
|
colorPreference: "light"
|
|
139928
140148
|
});
|
|
139929
140149
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
139930
|
-
(0,
|
|
140150
|
+
(0, import_react27.useEffect)(() => {
|
|
139931
140151
|
var callback = () => {
|
|
139932
140152
|
webBackHandler.handleWebBack();
|
|
139933
140153
|
return true;
|
|
139934
140154
|
};
|
|
139935
|
-
var subscription =
|
|
140155
|
+
var subscription = import_react_native42.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
139936
140156
|
return () => subscription.remove();
|
|
139937
140157
|
}, [webBackHandler]);
|
|
139938
140158
|
var handleWebViewProcessDidTerminate = useHandleWebViewProcessDidTerminate(webViewRef);
|
|
139939
|
-
return (0,
|
|
140159
|
+
return (0, import_jsx_runtime24.jsx)(BaseWebView, {
|
|
139940
140160
|
ref: refs,
|
|
139941
140161
|
...props,
|
|
139942
140162
|
...headerPropForExternalWebView,
|
|
@@ -139956,14 +140176,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139956
140176
|
webBackHandler.onNavigationStateChange(event);
|
|
139957
140177
|
},
|
|
139958
140178
|
textZoom: 100,
|
|
139959
|
-
userAgent:
|
|
140179
|
+
userAgent: import_react_native42.Platform.OS === "ios" ? userAgent : void 0,
|
|
139960
140180
|
sharedCookiesEnabled: true,
|
|
139961
140181
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
139962
140182
|
thirdPartyCookiesEnabled: true,
|
|
139963
140183
|
onMessage: handler.onMessage,
|
|
139964
140184
|
injectedJavaScript: import_user_scripts.afterDocumentLoad,
|
|
139965
140185
|
injectedJavaScriptBeforeContentLoaded: [handler.injectedJavaScript, import_user_scripts.beforeDocumentLoad].join("\n"),
|
|
139966
|
-
decelerationRate:
|
|
140186
|
+
decelerationRate: import_react_native42.Platform.OS === "ios" ? 1 : void 0,
|
|
139967
140187
|
allowsBackForwardNavigationGestures,
|
|
139968
140188
|
onShouldStartLoadWithRequest: event => {
|
|
139969
140189
|
try {
|
|
@@ -139971,7 +140191,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139971
140191
|
if (["https:", "http:"].includes(url2.protocol) || url2.href === "about:blank") {
|
|
139972
140192
|
return true;
|
|
139973
140193
|
} else {
|
|
139974
|
-
|
|
140194
|
+
import_react_native42.Linking.openURL(convertIntentURL(url2) ?? url2.href);
|
|
139975
140195
|
return false;
|
|
139976
140196
|
}
|
|
139977
140197
|
} catch (error) {
|
|
@@ -139985,13 +140205,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
139985
140205
|
});
|
|
139986
140206
|
}
|
|
139987
140207
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics"), module.exports);
|
|
139988
|
-
var
|
|
140208
|
+
var import_private5 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
|
|
139989
140209
|
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules"), module.exports);
|
|
139990
|
-
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[
|
|
139991
|
-
var import_types = _$$_REQUIRE(_dependencyMap[
|
|
139992
|
-
var
|
|
139993
|
-
var
|
|
139994
|
-
var
|
|
140210
|
+
__reExport(src_exports, _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types"), module.exports);
|
|
140211
|
+
var import_types = _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types");
|
|
140212
|
+
var import_react_native46 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
140213
|
+
var import_react30 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140214
|
+
var import_react_native47 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
139995
140215
|
var SDK_ID = "106";
|
|
139996
140216
|
var LIST_BANNER_STYLE_ID = "1";
|
|
139997
140217
|
var NATIVE_IMAGE_STYLE_ID = "2";
|
|
@@ -140269,7 +140489,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140269
140489
|
});
|
|
140270
140490
|
return _loadAd.apply(this, arguments);
|
|
140271
140491
|
}
|
|
140272
|
-
var
|
|
140492
|
+
var import_react_native43 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
140273
140493
|
function isSafeUrl(url) {
|
|
140274
140494
|
try {
|
|
140275
140495
|
var parsed = new URL(url);
|
|
@@ -140285,7 +140505,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140285
140505
|
return;
|
|
140286
140506
|
}
|
|
140287
140507
|
try {
|
|
140288
|
-
(0,
|
|
140508
|
+
(0, import_react_native43.openURL)(getWebSchemeOrUri(url));
|
|
140289
140509
|
} catch (error) {
|
|
140290
140510
|
console.error("[InlineAd] Failed to open landing URL:", error);
|
|
140291
140511
|
}
|
|
@@ -140392,10 +140612,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140392
140612
|
}()
|
|
140393
140613
|
}]);
|
|
140394
140614
|
}();
|
|
140395
|
-
var
|
|
140396
|
-
var
|
|
140397
|
-
var
|
|
140398
|
-
var
|
|
140615
|
+
var import_react_native_svg2 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
140616
|
+
var import_react28 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140617
|
+
var import_react_native44 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140618
|
+
var import_jsx_runtime25 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140399
140619
|
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";
|
|
140400
140620
|
function FeedBannerAdView({
|
|
140401
140621
|
brandName,
|
|
@@ -140407,17 +140627,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140407
140627
|
ctaTextColor,
|
|
140408
140628
|
ctaBackgroundColor,
|
|
140409
140629
|
adClearanceText,
|
|
140410
|
-
colors,
|
|
140630
|
+
colors: colors4,
|
|
140411
140631
|
isAdBadgeEnabled,
|
|
140412
140632
|
paddingStyle,
|
|
140413
140633
|
onPress
|
|
140414
140634
|
}) {
|
|
140415
|
-
var scale = (0,
|
|
140635
|
+
var scale = (0, import_react28.useRef)(new import_react_native44.Animated.Value(1)).current;
|
|
140416
140636
|
var animateScale = toValue => {
|
|
140417
|
-
|
|
140637
|
+
import_react_native44.Animated.timing(scale, {
|
|
140418
140638
|
toValue,
|
|
140419
140639
|
duration: 100,
|
|
140420
|
-
easing:
|
|
140640
|
+
easing: import_react_native44.Easing.inOut(import_react_native44.Easing.ease),
|
|
140421
140641
|
useNativeDriver: true
|
|
140422
140642
|
}).start();
|
|
140423
140643
|
};
|
|
@@ -140429,107 +140649,107 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140429
140649
|
};
|
|
140430
140650
|
var resolvedCtaBackground = ctaBackgroundColor ?? "#3081F9";
|
|
140431
140651
|
var resolvedCtaTextColor = ctaTextColor ?? "#ffffff";
|
|
140432
|
-
return (0,
|
|
140652
|
+
return (0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140433
140653
|
accessibilityRole: "button",
|
|
140434
140654
|
onPress: () => onPress(null),
|
|
140435
140655
|
onPressIn: handlePressIn,
|
|
140436
140656
|
onPressOut: handlePressOut,
|
|
140437
140657
|
style: styles.pressable,
|
|
140438
|
-
children: (0,
|
|
140658
|
+
children: (0, import_jsx_runtime25.jsxs)(import_react_native44.Animated.View, {
|
|
140439
140659
|
style: [styles.container, paddingStyle, {
|
|
140440
140660
|
transform: [{
|
|
140441
140661
|
scale
|
|
140442
140662
|
}]
|
|
140443
140663
|
}],
|
|
140444
|
-
children: [(0,
|
|
140664
|
+
children: [(0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140445
140665
|
style: styles.profileContainer,
|
|
140446
|
-
children: [(0,
|
|
140666
|
+
children: [(0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140447
140667
|
style: styles.brandArea,
|
|
140448
|
-
children: [(0,
|
|
140668
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140449
140669
|
accessibilityRole: "button",
|
|
140450
140670
|
onPress: () => onPress("202"),
|
|
140451
140671
|
onPressIn: handlePressIn,
|
|
140452
140672
|
onPressOut: handlePressOut,
|
|
140453
140673
|
style: styles.logoContainer,
|
|
140454
|
-
children: (0,
|
|
140674
|
+
children: (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140455
140675
|
style: [styles.logoWrapper, {
|
|
140456
|
-
backgroundColor:
|
|
140676
|
+
backgroundColor: colors4.brandLogoBg
|
|
140457
140677
|
}],
|
|
140458
|
-
children: [brandLogoUri ? (0,
|
|
140678
|
+
children: [brandLogoUri ? (0, import_jsx_runtime25.jsx)(import_react_native44.Image, {
|
|
140459
140679
|
source: {
|
|
140460
140680
|
uri: brandLogoUri
|
|
140461
140681
|
},
|
|
140462
140682
|
style: styles.logoImage,
|
|
140463
140683
|
resizeMode: "cover"
|
|
140464
|
-
}) : null, (0,
|
|
140684
|
+
}) : null, (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140465
140685
|
style: [styles.logoOverlay, {
|
|
140466
|
-
borderColor:
|
|
140686
|
+
borderColor: colors4.brandLogoBorder
|
|
140467
140687
|
}]
|
|
140468
140688
|
})]
|
|
140469
140689
|
})
|
|
140470
|
-
}), (0,
|
|
140690
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140471
140691
|
style: styles.brandTextContainer,
|
|
140472
|
-
children: [(0,
|
|
140692
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140473
140693
|
accessibilityRole: "button",
|
|
140474
140694
|
onPress: () => onPress("103"),
|
|
140475
140695
|
onPressIn: handlePressIn,
|
|
140476
140696
|
onPressOut: handlePressOut,
|
|
140477
|
-
children: (0,
|
|
140697
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140478
140698
|
allowFontScaling: false,
|
|
140479
140699
|
numberOfLines: 1,
|
|
140480
140700
|
style: [styles.brandName, {
|
|
140481
|
-
color:
|
|
140701
|
+
color: colors4.brandName
|
|
140482
140702
|
}],
|
|
140483
140703
|
children: brandName
|
|
140484
140704
|
})
|
|
140485
|
-
}), isAdBadgeEnabled ? (0,
|
|
140705
|
+
}), isAdBadgeEnabled ? (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140486
140706
|
allowFontScaling: false,
|
|
140487
140707
|
numberOfLines: 1,
|
|
140488
140708
|
style: [styles.adBadge, {
|
|
140489
|
-
color:
|
|
140709
|
+
color: colors4.adBadge
|
|
140490
140710
|
}],
|
|
140491
140711
|
children: "\uAD11\uACE0"
|
|
140492
140712
|
}) : null]
|
|
140493
140713
|
})]
|
|
140494
|
-
}), (0,
|
|
140714
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140495
140715
|
style: styles.textArea,
|
|
140496
|
-
children: [(0,
|
|
140716
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140497
140717
|
accessibilityRole: "button",
|
|
140498
140718
|
onPress: () => onPress("101"),
|
|
140499
140719
|
onPressIn: handlePressIn,
|
|
140500
140720
|
onPressOut: handlePressOut,
|
|
140501
|
-
children: (0,
|
|
140721
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140502
140722
|
allowFontScaling: false,
|
|
140503
140723
|
style: [styles.title, {
|
|
140504
|
-
color:
|
|
140724
|
+
color: colors4.title
|
|
140505
140725
|
}],
|
|
140506
140726
|
children: title
|
|
140507
140727
|
})
|
|
140508
|
-
}), (0,
|
|
140728
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140509
140729
|
accessibilityRole: "button",
|
|
140510
140730
|
onPress: () => onPress("102"),
|
|
140511
140731
|
onPressIn: handlePressIn,
|
|
140512
140732
|
onPressOut: handlePressOut,
|
|
140513
|
-
children: (0,
|
|
140733
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140514
140734
|
allowFontScaling: false,
|
|
140515
140735
|
style: [styles.subtitle, {
|
|
140516
|
-
color:
|
|
140736
|
+
color: colors4.subtitle
|
|
140517
140737
|
}],
|
|
140518
140738
|
children: subtitle
|
|
140519
140739
|
})
|
|
140520
140740
|
})]
|
|
140521
140741
|
})]
|
|
140522
|
-
}), (0,
|
|
140742
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.View, {
|
|
140523
140743
|
style: styles.card,
|
|
140524
|
-
children: [(0,
|
|
140744
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Pressable, {
|
|
140525
140745
|
accessibilityRole: "button",
|
|
140526
140746
|
onPress: () => onPress("201"),
|
|
140527
140747
|
onPressIn: handlePressIn,
|
|
140528
140748
|
onPressOut: handlePressOut,
|
|
140529
140749
|
style: styles.imageButton,
|
|
140530
|
-
children: (0,
|
|
140750
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140531
140751
|
style: styles.imageContainer,
|
|
140532
|
-
children: mainImageUri ? (0,
|
|
140752
|
+
children: mainImageUri ? (0, import_jsx_runtime25.jsx)(import_react_native44.Image, {
|
|
140533
140753
|
source: {
|
|
140534
140754
|
uri: mainImageUri
|
|
140535
140755
|
},
|
|
@@ -140537,7 +140757,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140537
140757
|
resizeMode: "cover"
|
|
140538
140758
|
}) : null
|
|
140539
140759
|
})
|
|
140540
|
-
}), (0,
|
|
140760
|
+
}), (0, import_jsx_runtime25.jsxs)(import_react_native44.Pressable, {
|
|
140541
140761
|
accessibilityRole: "button",
|
|
140542
140762
|
onPress: () => onPress("0"),
|
|
140543
140763
|
onPressIn: handlePressIn,
|
|
@@ -140545,37 +140765,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140545
140765
|
style: [styles.cta, {
|
|
140546
140766
|
backgroundColor: resolvedCtaBackground
|
|
140547
140767
|
}],
|
|
140548
|
-
children: [(0,
|
|
140768
|
+
children: [(0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140549
140769
|
allowFontScaling: false,
|
|
140550
140770
|
style: [styles.ctaText, {
|
|
140551
140771
|
color: resolvedCtaTextColor
|
|
140552
140772
|
}],
|
|
140553
140773
|
children: ctaText
|
|
140554
|
-
}), (0,
|
|
140774
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native_svg2.Svg, {
|
|
140555
140775
|
width: 20,
|
|
140556
140776
|
height: 20,
|
|
140557
140777
|
viewBox: "0 0 24 24",
|
|
140558
|
-
children: (0,
|
|
140778
|
+
children: (0, import_jsx_runtime25.jsx)(import_react_native_svg2.Path, {
|
|
140559
140779
|
d: ARROW_PATH,
|
|
140560
140780
|
fill: resolvedCtaTextColor
|
|
140561
140781
|
})
|
|
140562
140782
|
})]
|
|
140563
|
-
}), (0,
|
|
140783
|
+
}), (0, import_jsx_runtime25.jsx)(import_react_native44.View, {
|
|
140564
140784
|
style: [styles.cardOverlay, {
|
|
140565
|
-
borderColor:
|
|
140785
|
+
borderColor: colors4.imageOverlayBorder
|
|
140566
140786
|
}]
|
|
140567
140787
|
})]
|
|
140568
|
-
}), adClearanceText ? (0,
|
|
140788
|
+
}), adClearanceText ? (0, import_jsx_runtime25.jsx)(import_react_native44.Text, {
|
|
140569
140789
|
allowFontScaling: false,
|
|
140570
140790
|
style: [styles.adClearance, {
|
|
140571
|
-
color:
|
|
140791
|
+
color: colors4.adClearance
|
|
140572
140792
|
}],
|
|
140573
140793
|
children: adClearanceText
|
|
140574
140794
|
}) : null]
|
|
140575
140795
|
})
|
|
140576
140796
|
});
|
|
140577
140797
|
}
|
|
140578
|
-
var styles =
|
|
140798
|
+
var styles = import_react_native44.StyleSheet.create({
|
|
140579
140799
|
pressable: {
|
|
140580
140800
|
width: "100%"
|
|
140581
140801
|
},
|
|
@@ -140614,7 +140834,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140614
140834
|
borderRadius: 18
|
|
140615
140835
|
},
|
|
140616
140836
|
logoOverlay: {
|
|
140617
|
-
...
|
|
140837
|
+
...import_react_native44.StyleSheet.absoluteFillObject,
|
|
140618
140838
|
borderWidth: 1,
|
|
140619
140839
|
borderRadius: 18
|
|
140620
140840
|
},
|
|
@@ -140677,7 +140897,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140677
140897
|
lineHeight: 22.5
|
|
140678
140898
|
},
|
|
140679
140899
|
cardOverlay: {
|
|
140680
|
-
...
|
|
140900
|
+
...import_react_native44.StyleSheet.absoluteFillObject,
|
|
140681
140901
|
borderWidth: 2,
|
|
140682
140902
|
borderRadius: 12,
|
|
140683
140903
|
pointerEvents: "none"
|
|
@@ -140688,10 +140908,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140688
140908
|
fontWeight: "400"
|
|
140689
140909
|
}
|
|
140690
140910
|
});
|
|
140691
|
-
var
|
|
140692
|
-
var
|
|
140693
|
-
var
|
|
140694
|
-
var
|
|
140911
|
+
var import_react_native_svg3 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
|
|
140912
|
+
var import_react29 = _$$_REQUIRE(_dependencyMap[9], "react");
|
|
140913
|
+
var import_react_native45 = _$$_REQUIRE(_dependencyMap[8], "react-native");
|
|
140914
|
+
var import_jsx_runtime26 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140695
140915
|
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";
|
|
140696
140916
|
function ListBannerAdView({
|
|
140697
140917
|
title,
|
|
@@ -140700,16 +140920,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140700
140920
|
adClearanceFontSize,
|
|
140701
140921
|
imageUri,
|
|
140702
140922
|
paddingStyle,
|
|
140703
|
-
colors,
|
|
140923
|
+
colors: colors4,
|
|
140704
140924
|
onPress
|
|
140705
140925
|
}) {
|
|
140706
|
-
var scale = (0,
|
|
140707
|
-
var clipIdRef = (0,
|
|
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)}`);
|
|
140708
140928
|
var animateScale = toValue => {
|
|
140709
|
-
|
|
140929
|
+
import_react_native45.Animated.timing(scale, {
|
|
140710
140930
|
toValue,
|
|
140711
140931
|
duration: 100,
|
|
140712
|
-
easing:
|
|
140932
|
+
easing: import_react_native45.Easing.inOut(import_react_native45.Easing.ease),
|
|
140713
140933
|
useNativeDriver: true
|
|
140714
140934
|
}).start();
|
|
140715
140935
|
};
|
|
@@ -140719,41 +140939,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140719
140939
|
var handlePressOut = () => {
|
|
140720
140940
|
animateScale(1);
|
|
140721
140941
|
};
|
|
140722
|
-
return (0,
|
|
140942
|
+
return (0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140723
140943
|
accessibilityRole: "button",
|
|
140724
140944
|
onPress: () => onPress(null),
|
|
140725
140945
|
onPressIn: handlePressIn,
|
|
140726
140946
|
onPressOut: handlePressOut,
|
|
140727
140947
|
style: styles2.pressable,
|
|
140728
|
-
children: (0,
|
|
140948
|
+
children: (0, import_jsx_runtime26.jsxs)(import_react_native45.Animated.View, {
|
|
140729
140949
|
style: [styles2.container, paddingStyle, {
|
|
140730
140950
|
transform: [{
|
|
140731
140951
|
scale
|
|
140732
140952
|
}]
|
|
140733
140953
|
}],
|
|
140734
|
-
children: [(0,
|
|
140954
|
+
children: [(0, import_jsx_runtime26.jsxs)(import_react_native45.View, {
|
|
140735
140955
|
style: styles2.titleRow,
|
|
140736
|
-
children: [(0,
|
|
140956
|
+
children: [(0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140737
140957
|
accessibilityRole: "button",
|
|
140738
140958
|
onPress: () => onPress("202"),
|
|
140739
140959
|
onPressIn: handlePressIn,
|
|
140740
140960
|
onPressOut: handlePressOut,
|
|
140741
140961
|
style: styles2.iconWrapper,
|
|
140742
|
-
children: (0,
|
|
140962
|
+
children: (0, import_jsx_runtime26.jsxs)(import_react_native_svg3.Svg, {
|
|
140743
140963
|
width: 36,
|
|
140744
140964
|
height: 36,
|
|
140745
140965
|
viewBox: "0 0 36 36",
|
|
140746
|
-
children: [(0,
|
|
140747
|
-
children: (0,
|
|
140966
|
+
children: [(0, import_jsx_runtime26.jsx)(import_react_native_svg3.Defs, {
|
|
140967
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native_svg3.ClipPath, {
|
|
140748
140968
|
id: clipIdRef.current,
|
|
140749
|
-
children: (0,
|
|
140969
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140750
140970
|
d: SQUIRCLE_PATH
|
|
140751
140971
|
})
|
|
140752
140972
|
})
|
|
140753
|
-
}), (0,
|
|
140973
|
+
}), (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140754
140974
|
d: SQUIRCLE_PATH,
|
|
140755
|
-
fill:
|
|
140756
|
-
}), imageUri ? (0,
|
|
140975
|
+
fill: colors4.iconBg
|
|
140976
|
+
}), imageUri ? (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Image, {
|
|
140757
140977
|
href: {
|
|
140758
140978
|
uri: imageUri
|
|
140759
140979
|
},
|
|
@@ -140761,46 +140981,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140761
140981
|
height: 36,
|
|
140762
140982
|
preserveAspectRatio: "xMidYMid slice",
|
|
140763
140983
|
clipPath: `url(#${clipIdRef.current})`
|
|
140764
|
-
}) : null, (0,
|
|
140984
|
+
}) : null, (0, import_jsx_runtime26.jsx)(import_react_native_svg3.Path, {
|
|
140765
140985
|
d: SQUIRCLE_PATH,
|
|
140766
140986
|
fill: "none",
|
|
140767
|
-
stroke:
|
|
140987
|
+
stroke: colors4.iconBorder,
|
|
140768
140988
|
strokeWidth: 2,
|
|
140769
140989
|
clipPath: `url(#${clipIdRef.current})`
|
|
140770
140990
|
})]
|
|
140771
140991
|
})
|
|
140772
|
-
}), (0,
|
|
140992
|
+
}), (0, import_jsx_runtime26.jsxs)(import_react_native45.View, {
|
|
140773
140993
|
style: styles2.textWrapper,
|
|
140774
|
-
children: [(0,
|
|
140994
|
+
children: [(0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140775
140995
|
accessibilityRole: "button",
|
|
140776
140996
|
onPress: () => onPress("101"),
|
|
140777
140997
|
onPressIn: handlePressIn,
|
|
140778
140998
|
onPressOut: handlePressOut,
|
|
140779
|
-
children: (0,
|
|
140999
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140780
141000
|
allowFontScaling: false,
|
|
140781
141001
|
style: [styles2.title, {
|
|
140782
|
-
color:
|
|
141002
|
+
color: colors4.title
|
|
140783
141003
|
}],
|
|
140784
141004
|
children: title
|
|
140785
141005
|
})
|
|
140786
|
-
}), (0,
|
|
141006
|
+
}), (0, import_jsx_runtime26.jsx)(import_react_native45.Pressable, {
|
|
140787
141007
|
accessibilityRole: "button",
|
|
140788
141008
|
onPress: () => onPress("102"),
|
|
140789
141009
|
onPressIn: handlePressIn,
|
|
140790
141010
|
onPressOut: handlePressOut,
|
|
140791
|
-
children: (0,
|
|
141011
|
+
children: (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140792
141012
|
allowFontScaling: false,
|
|
140793
141013
|
style: [styles2.subtitle, {
|
|
140794
|
-
color:
|
|
141014
|
+
color: colors4.subtitle
|
|
140795
141015
|
}],
|
|
140796
141016
|
children: subtitle
|
|
140797
141017
|
})
|
|
140798
141018
|
})]
|
|
140799
141019
|
})]
|
|
140800
|
-
}), adClearanceText ? (0,
|
|
141020
|
+
}), adClearanceText ? (0, import_jsx_runtime26.jsx)(import_react_native45.Text, {
|
|
140801
141021
|
allowFontScaling: false,
|
|
140802
141022
|
style: [styles2.adClearance, {
|
|
140803
|
-
color:
|
|
141023
|
+
color: colors4.adClearance,
|
|
140804
141024
|
fontSize: adClearanceFontSize,
|
|
140805
141025
|
lineHeight: adClearanceFontSize * 1.2
|
|
140806
141026
|
}],
|
|
@@ -140809,7 +141029,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140809
141029
|
})
|
|
140810
141030
|
});
|
|
140811
141031
|
}
|
|
140812
|
-
var styles2 =
|
|
141032
|
+
var styles2 = import_react_native45.StyleSheet.create({
|
|
140813
141033
|
pressable: {
|
|
140814
141034
|
width: "100%"
|
|
140815
141035
|
},
|
|
@@ -140935,7 +141155,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
140935
141155
|
adMetadata: {}
|
|
140936
141156
|
};
|
|
140937
141157
|
}
|
|
140938
|
-
var
|
|
141158
|
+
var import_jsx_runtime27 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
|
|
140939
141159
|
var themePalette = {
|
|
140940
141160
|
light: {
|
|
140941
141161
|
title: "#4e5968",
|
|
@@ -141017,27 +141237,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141017
141237
|
onAdImpression = props.onAdImpression,
|
|
141018
141238
|
onAdFailedToRender = props.onAdFailedToRender,
|
|
141019
141239
|
onNoFill = props.onNoFill;
|
|
141020
|
-
var slotIdRef = (0,
|
|
141021
|
-
var
|
|
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),
|
|
141022
141246
|
_ref51 = _slicedToArray(_ref50, 2),
|
|
141023
|
-
|
|
141024
|
-
|
|
141025
|
-
var
|
|
141026
|
-
|
|
141027
|
-
|
|
141028
|
-
|
|
141029
|
-
var
|
|
141030
|
-
var
|
|
141031
|
-
var
|
|
141032
|
-
var
|
|
141033
|
-
var
|
|
141034
|
-
var
|
|
141035
|
-
var
|
|
141036
|
-
var
|
|
141037
|
-
var lastImp1pxAtRef = (0, import_react29.useRef)(null);
|
|
141038
|
-
var loadingRef = (0, import_react29.useRef)(false);
|
|
141039
|
-
var loadRef = (0, import_react29.useRef)(null);
|
|
141040
|
-
var callbacksRef = (0, import_react29.useRef)({
|
|
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)({
|
|
141041
141261
|
onAdRendered,
|
|
141042
141262
|
onAdViewable,
|
|
141043
141263
|
onAdClicked,
|
|
@@ -141045,13 +141265,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141045
141265
|
onAdFailedToRender,
|
|
141046
141266
|
onNoFill
|
|
141047
141267
|
});
|
|
141048
|
-
var isMountedRef = (0,
|
|
141049
|
-
var colorScheme = (0,
|
|
141268
|
+
var isMountedRef = (0, import_react30.useRef)(false);
|
|
141269
|
+
var colorScheme = (0, import_react_native47.useColorScheme)();
|
|
141050
141270
|
var selectedTheme = theme ?? DEFAULT_INLINE_AD_THEME;
|
|
141051
141271
|
var resolvedTheme = selectedTheme === "auto" ? colorScheme === "dark" ? "dark" : "light" : selectedTheme;
|
|
141052
141272
|
var resolvedTone = tone ?? DEFAULT_INLINE_AD_TONE;
|
|
141053
141273
|
var resolvedVariant = variant ?? DEFAULT_INLINE_AD_VARIANT;
|
|
141054
|
-
var
|
|
141274
|
+
var colors4 = themePalette[resolvedTheme];
|
|
141055
141275
|
var feedColors = feedThemePalette[resolvedTheme];
|
|
141056
141276
|
var backgroundColor = resolvedTone === "grey" ? resolvedTheme === "dark" ? "#101013" : "#f2f4f7" : resolvedTheme === "dark" ? "#17171c" : "#ffffff";
|
|
141057
141277
|
callbacksRef.current = {
|
|
@@ -141062,7 +141282,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141062
141282
|
onAdFailedToRender,
|
|
141063
141283
|
onNoFill
|
|
141064
141284
|
};
|
|
141065
|
-
(0,
|
|
141285
|
+
(0, import_react30.useEffect)(() => {
|
|
141066
141286
|
isMountedRef.current = true;
|
|
141067
141287
|
return () => {
|
|
141068
141288
|
isMountedRef.current = false;
|
|
@@ -141072,7 +141292,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141072
141292
|
}
|
|
141073
141293
|
};
|
|
141074
141294
|
}, []);
|
|
141075
|
-
(0,
|
|
141295
|
+
(0, import_react30.useEffect)(() => {
|
|
141076
141296
|
var normalizedAdGroupId = normalizeAdGroupId(adGroupId);
|
|
141077
141297
|
var loadAdRequest = () => {
|
|
141078
141298
|
if (loadingRef.current) {
|
|
@@ -141130,7 +141350,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141130
141350
|
loadRef.current = null;
|
|
141131
141351
|
};
|
|
141132
141352
|
}, [adGroupId]);
|
|
141133
|
-
(0,
|
|
141353
|
+
(0, import_react_native46.useVisibilityChange)(documentVisibility => {
|
|
141134
141354
|
if (documentVisibility !== "visible") {
|
|
141135
141355
|
return;
|
|
141136
141356
|
}
|
|
@@ -141143,7 +141363,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141143
141363
|
loadRef.current?.();
|
|
141144
141364
|
}
|
|
141145
141365
|
});
|
|
141146
|
-
(0,
|
|
141366
|
+
(0, import_react30.useEffect)(() => {
|
|
141147
141367
|
if (!ad || hasRenderedRef.current) {
|
|
141148
141368
|
return;
|
|
141149
141369
|
}
|
|
@@ -141228,36 +141448,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141228
141448
|
callbacksRef.current.onAdClicked?.(basePayload);
|
|
141229
141449
|
}
|
|
141230
141450
|
};
|
|
141231
|
-
return (0,
|
|
141451
|
+
return (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
141232
141452
|
style: styles3.impressionArea,
|
|
141233
141453
|
onImpressionStart: handleImpression1px,
|
|
141234
141454
|
areaThreshold: 0,
|
|
141235
141455
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
141236
|
-
children: (0,
|
|
141456
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
141237
141457
|
onImpressionStart: handleImpression100p,
|
|
141238
141458
|
areaThreshold: 1,
|
|
141239
141459
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
141240
|
-
children: (0,
|
|
141460
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native46.ImpressionArea, {
|
|
141241
141461
|
onImpressionStart: handleViewableStart,
|
|
141242
141462
|
onImpressionEnd: handleViewableEnd,
|
|
141243
141463
|
areaThreshold: 0.5,
|
|
141244
141464
|
UNSAFE__impressFallbackOnMount: Boolean(impressFallbackOnMount),
|
|
141245
|
-
children: (0,
|
|
141465
|
+
children: (0, import_jsx_runtime27.jsx)(import_react_native47.View, {
|
|
141246
141466
|
style: [styles3.wrapper, resolvedVariant === "card" && styles3.cardWrapper],
|
|
141247
|
-
children: (0,
|
|
141467
|
+
children: (0, import_jsx_runtime27.jsxs)(import_react_native47.View, {
|
|
141248
141468
|
style: [styles3.surface, {
|
|
141249
141469
|
backgroundColor
|
|
141250
141470
|
}, resolvedVariant === "card" && styles3.cardSurface],
|
|
141251
|
-
children: [isListBanner && listCreative ? (0,
|
|
141471
|
+
children: [isListBanner && listCreative ? (0, import_jsx_runtime27.jsx)(ListBannerAdView, {
|
|
141252
141472
|
title: listCreative.title,
|
|
141253
141473
|
subtitle: subtitleText,
|
|
141254
141474
|
adClearanceText,
|
|
141255
141475
|
adClearanceFontSize,
|
|
141256
141476
|
imageUri,
|
|
141257
141477
|
paddingStyle,
|
|
141258
|
-
colors,
|
|
141478
|
+
colors: colors4,
|
|
141259
141479
|
onPress: handleClick
|
|
141260
|
-
}) : null, isFeedBanner && feedCreative ? (0,
|
|
141480
|
+
}) : null, isFeedBanner && feedCreative ? (0, import_jsx_runtime27.jsx)(FeedBannerAdView, {
|
|
141261
141481
|
brandName: feedCreative.brandName,
|
|
141262
141482
|
brandLogoUri,
|
|
141263
141483
|
title: feedCreative.title,
|
|
@@ -141278,7 +141498,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141278
141498
|
})
|
|
141279
141499
|
}, impressionKey);
|
|
141280
141500
|
}
|
|
141281
|
-
var styles3 =
|
|
141501
|
+
var styles3 = import_react_native47.StyleSheet.create({
|
|
141282
141502
|
impressionArea: {
|
|
141283
141503
|
width: "100%"
|
|
141284
141504
|
},
|
|
@@ -141322,9 +141542,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
141322
141542
|
useWaitForReturnNavigator,
|
|
141323
141543
|
..._$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics"),
|
|
141324
141544
|
..._$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules"),
|
|
141325
|
-
..._$$_REQUIRE(_dependencyMap[
|
|
141545
|
+
..._$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types")
|
|
141326
141546
|
});
|
|
141327
|
-
},1283,[21,20,17,48,1284,1285,2,1472,34,6,9,2440,2521,615,2524,2574,2582,2599,2449,1286
|
|
141547
|
+
},1283,[21,20,17,48,1284,1285,2,1472,34,6,9,2440,2521,615,754,2524,2574,2582,2599,2449,1286],"../../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.cjs");
|
|
141328
141548
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
141329
141549
|
"use strict";
|
|
141330
141550
|
|