@apps-in-toss/web-framework 0.0.0-dev.1765732023607 → 0.0.0-dev.1765876894045

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.
@@ -153388,6 +153388,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
153388
153388
  env: function env() {
153389
153389
  return _env;
153390
153390
  },
153391
+ loadFullScreenAd: function loadFullScreenAd() {
153392
+ return _loadFullScreenAd;
153393
+ },
153394
+ showFullScreenAd: function showFullScreenAd() {
153395
+ return _showFullScreenAd;
153396
+ },
153391
153397
  useCreateUserAgent: function useCreateUserAgent() {
153392
153398
  return _useCreateUserAgent;
153393
153399
  },
@@ -154796,16 +154802,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154796
154802
  var _AppsInToss = {
154797
154803
  registerApp: registerApp
154798
154804
  };
154799
- var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
154805
+ var import_native_modules22 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
154800
154806
  var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"), 1);
154801
154807
  var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"), 1);
154802
154808
  var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"), 1);
154803
154809
  var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
154804
- var import_react_native34 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
154810
+ var import_react_native37 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
154805
154811
  var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
154806
154812
  var import_private9 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
154807
154813
  var import_react28 = _$$_REQUIRE(_dependencyMap[12], "react");
154808
- var import_react_native35 = _$$_REQUIRE(_dependencyMap[11], "react-native");
154814
+ var import_react_native38 = _$$_REQUIRE(_dependencyMap[11], "react-native");
154809
154815
  var import_native_modules14 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
154810
154816
  var import_react_native_webview = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
154811
154817
  var import_react19 = _$$_REQUIRE(_dependencyMap[12], "react");
@@ -154999,6 +155005,360 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154999
155005
  }
155000
155006
  return scheme + "://" + url.hostname + url.pathname + url.search;
155001
155007
  }
155008
+ var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
155009
+ function noop() {}
155010
+ function generateSessionId() {
155011
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
155012
+ var r = Math.random() * 16 | 0;
155013
+ var v = c === "x" ? r : r & 3 | 8;
155014
+ return v.toString(16);
155015
+ });
155016
+ }
155017
+ var sessionId = generateSessionId();
155018
+ var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
155019
+ var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
155020
+ var UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
155021
+ var ENVIRONMENT = (0, import_native_modules15.getOperationalEnvironment)();
155022
+ function fetchTossAd(params) {
155023
+ if (!fetchTossAd.isSupported()) {
155024
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
155025
+ return noop;
155026
+ }
155027
+ var onEvent = params.onEvent,
155028
+ _onError3 = params.onError,
155029
+ options = params.options;
155030
+ var adGroupId = options.adGroupId;
155031
+ var unregisterCallbacks = import_native_modules15.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
155032
+ spaceUnitId: adGroupId,
155033
+ sessionId: sessionId,
155034
+ sdkId: options.sdkId,
155035
+ availableStyleIds: options.availableStyleIds
155036
+ }, {
155037
+ onSuccess: function onSuccess(response) {
155038
+ onEvent(response);
155039
+ },
155040
+ onError: function onError(error) {
155041
+ _onError3(error);
155042
+ }
155043
+ });
155044
+ return unregisterCallbacks;
155045
+ }
155046
+ fetchTossAd.isSupported = function () {
155047
+ if (ENVIRONMENT !== "toss") {
155048
+ return false;
155049
+ }
155050
+ return (0, import_native_modules15.isMinVersionSupported)({
155051
+ android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
155052
+ ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
155053
+ });
155054
+ };
155055
+ var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
155056
+ function generateRequestId() {
155057
+ var timestamp = Date.now().toString(36).toUpperCase();
155058
+ var random = Math.random().toString(36).substring(2, 7).toUpperCase();
155059
+ return "ait-" + timestamp + random;
155060
+ }
155061
+ var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
155062
+ function getReferrer() {
155063
+ try {
155064
+ return new URL((0, import_react_native29.getSchemeUri)()).searchParams.get("referrer");
155065
+ } catch (_unused4) {
155066
+ return null;
155067
+ }
155068
+ }
155069
+ var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
155070
+ var import_react_native30 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
155071
+ function getIsDev() {
155072
+ try {
155073
+ return new URL((0, import_react_native30.getSchemeUri)()).searchParams.get("isDev") === "true";
155074
+ } catch (_unused5) {
155075
+ return false;
155076
+ }
155077
+ }
155078
+ var OPERATIONAL_ENVIRONMENT = (0, import_native_modules16.getOperationalEnvironment)();
155079
+ var OS = (0, import_native_modules16.getPlatformOS)();
155080
+ var APP_VER = (0, import_native_modules16.getTossAppVersion)();
155081
+ var ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
155082
+ var LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
155083
+ function getPostEventTrackingUrl() {
155084
+ var isDev = getIsDev();
155085
+ if (OPERATIONAL_ENVIRONMENT === "sandbox" || isDev) {
155086
+ return ALPHA_EVENT_TRACKER_HTTP_ENDPOINT;
155087
+ }
155088
+ return LIVE_EVENT_TRACKER_HTTP_ENDPOINT;
155089
+ }
155090
+ function postEventTracking(params) {
155091
+ var endpoint = getPostEventTrackingUrl();
155092
+ var bodyJSON = JSON.stringify(Object.assign({}, params, {
155093
+ os: OS,
155094
+ appVer: APP_VER,
155095
+ deviceIdType: "NONE",
155096
+ platform: "RN"
155097
+ }));
155098
+ return fetch(endpoint, {
155099
+ method: "POST",
155100
+ headers: {
155101
+ "Content-Type": "application/json"
155102
+ },
155103
+ body: bodyJSON
155104
+ }).catch(noop);
155105
+ }
155106
+ var INTEGRATED_AD_SDK_VERSION = "0.0.0";
155107
+ var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
155108
+ var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
155109
+ var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
155110
+ var INTG_AD_ADM_FALLBACK_RID_MAP = {};
155111
+ function integratedAdIsSupported() {
155112
+ return (0, import_native_modules17.isMinVersionSupported)({
155113
+ android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
155114
+ ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
155115
+ });
155116
+ }
155117
+ function generateLoadFullScreenAd(sdkId) {
155118
+ var fn = function fn(params) {
155119
+ if (!import_native_modules17.GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
155120
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
155121
+ return noop;
155122
+ }
155123
+ if (!integratedAdIsSupported()) {
155124
+ return import_native_modules17.GoogleAdMob.loadAppsInTossAdMob(Object.assign({}, params, {
155125
+ onEvent: function onEvent(event) {
155126
+ if (event.type === "loaded") {
155127
+ var _event$data$responseI, _event$data$responseI2;
155128
+ var requestId = generateRequestId();
155129
+ INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId] = requestId;
155130
+ postEventTracking({
155131
+ eventName: "LOAD",
155132
+ spaceUnitId: params.options.adGroupId,
155133
+ requestId: requestId,
155134
+ responseId: event.data.responseInfo.responseId,
155135
+ mediationType: "ADMOB",
155136
+ format: "",
155137
+ adSourceName: (_event$data$responseI = (_event$data$responseI2 = event.data.responseInfo.loadedAdNetworkInfo) == null ? void 0 : _event$data$responseI2.adSourceName) != null ? _event$data$responseI : "",
155138
+ sdkVer: INTEGRATED_AD_SDK_VERSION
155139
+ });
155140
+ }
155141
+ return params.onEvent(event);
155142
+ },
155143
+ onError: function onError(error) {
155144
+ var _INTG_AD_ADM_FALLBACK;
155145
+ var requestId = (_INTG_AD_ADM_FALLBACK = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK : "";
155146
+ postEventTracking({
155147
+ eventName: "FAILED_TO_LOAD",
155148
+ spaceUnitId: params.options.adGroupId,
155149
+ requestId: requestId,
155150
+ responseId: "",
155151
+ mediationType: "ADMOB",
155152
+ format: "",
155153
+ adSourceName: "",
155154
+ sdkVer: INTEGRATED_AD_SDK_VERSION
155155
+ });
155156
+ return params.onError(error);
155157
+ }
155158
+ }));
155159
+ }
155160
+ var onEvent = params.onEvent,
155161
+ _onError4 = params.onError,
155162
+ options = params.options;
155163
+ var adGroupId = options.adGroupId;
155164
+ var referrer = getReferrer();
155165
+ var unregisterCallbacks = import_native_modules17.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
155166
+ spaceUnitId: adGroupId,
155167
+ referrer: referrer,
155168
+ sessionId: sessionId,
155169
+ sdkId: sdkId
155170
+ }, {
155171
+ onSuccess: function onSuccess() {
155172
+ onEvent({
155173
+ type: "loaded"
155174
+ });
155175
+ },
155176
+ onError: function onError(error) {
155177
+ _onError4(error);
155178
+ }
155179
+ });
155180
+ return unregisterCallbacks;
155181
+ };
155182
+ fn.isSupported = import_native_modules17.GoogleAdMob.loadAppsInTossAdMob.isSupported;
155183
+ return fn;
155184
+ }
155185
+ var _loadFullScreenAd = generateLoadFullScreenAd("107");
155186
+ var loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
155187
+ function _showFullScreenAd(params) {
155188
+ if (!import_native_modules17.GoogleAdMob.showAppsInTossAdMob.isSupported()) {
155189
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
155190
+ return noop;
155191
+ }
155192
+ if (!integratedAdIsSupported()) {
155193
+ return import_native_modules17.GoogleAdMob.showAppsInTossAdMob(Object.assign({}, params, {
155194
+ onEvent: function onEvent(event) {
155195
+ var _INTG_AD_ADM_FALLBACK2;
155196
+ var requestId = (_INTG_AD_ADM_FALLBACK2 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK2 : "";
155197
+ switch (event.type) {
155198
+ case "show":
155199
+ postEventTracking({
155200
+ eventName: "SHOW",
155201
+ spaceUnitId: params.options.adGroupId,
155202
+ requestId: requestId,
155203
+ responseId: "",
155204
+ mediationType: "ADMOB",
155205
+ format: "",
155206
+ adSourceName: "",
155207
+ sdkVer: INTEGRATED_AD_SDK_VERSION
155208
+ });
155209
+ break;
155210
+ case "failedToShow":
155211
+ postEventTracking({
155212
+ eventName: "FAILED_TO_SHOW",
155213
+ spaceUnitId: params.options.adGroupId,
155214
+ requestId: requestId,
155215
+ responseId: "",
155216
+ mediationType: "ADMOB",
155217
+ format: "",
155218
+ adSourceName: "",
155219
+ sdkVer: INTEGRATED_AD_SDK_VERSION
155220
+ });
155221
+ break;
155222
+ case "impression":
155223
+ postEventTracking({
155224
+ eventName: "IMP",
155225
+ spaceUnitId: params.options.adGroupId,
155226
+ requestId: requestId,
155227
+ responseId: "",
155228
+ mediationType: "ADMOB",
155229
+ format: "",
155230
+ adSourceName: "",
155231
+ sdkVer: INTEGRATED_AD_SDK_VERSION
155232
+ });
155233
+ break;
155234
+ case "clicked":
155235
+ postEventTracking({
155236
+ eventName: "CLICK",
155237
+ spaceUnitId: params.options.adGroupId,
155238
+ requestId: requestId,
155239
+ responseId: "",
155240
+ mediationType: "ADMOB",
155241
+ format: "",
155242
+ adSourceName: "",
155243
+ sdkVer: INTEGRATED_AD_SDK_VERSION
155244
+ });
155245
+ break;
155246
+ case "dismissed":
155247
+ postEventTracking({
155248
+ eventName: "DISMISS",
155249
+ spaceUnitId: params.options.adGroupId,
155250
+ requestId: requestId,
155251
+ responseId: "",
155252
+ mediationType: "ADMOB",
155253
+ format: "",
155254
+ adSourceName: "",
155255
+ sdkVer: INTEGRATED_AD_SDK_VERSION
155256
+ });
155257
+ break;
155258
+ case "userEarnedReward":
155259
+ postEventTracking({
155260
+ eventName: "USER_EARNED_REWARD",
155261
+ spaceUnitId: params.options.adGroupId,
155262
+ requestId: requestId,
155263
+ responseId: "",
155264
+ mediationType: "ADMOB",
155265
+ format: "",
155266
+ adSourceName: "",
155267
+ sdkVer: INTEGRATED_AD_SDK_VERSION
155268
+ });
155269
+ break;
155270
+ }
155271
+ return params.onEvent(event);
155272
+ },
155273
+ onError: function onError(error) {
155274
+ var _INTG_AD_ADM_FALLBACK3;
155275
+ var requestId = (_INTG_AD_ADM_FALLBACK3 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK3 : "";
155276
+ postEventTracking({
155277
+ eventName: "FAILED_TO_SHOW",
155278
+ spaceUnitId: params.options.adGroupId,
155279
+ requestId: requestId,
155280
+ responseId: "",
155281
+ mediationType: "ADMOB",
155282
+ format: "",
155283
+ adSourceName: "",
155284
+ sdkVer: INTEGRATED_AD_SDK_VERSION
155285
+ });
155286
+ return params.onError(error);
155287
+ }
155288
+ }));
155289
+ }
155290
+ var onEvent = params.onEvent,
155291
+ _onError5 = params.onError,
155292
+ options = params.options;
155293
+ var adGroupId = options.adGroupId;
155294
+ var referrer = getReferrer();
155295
+ var unregisterCallbacks = import_native_modules17.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
155296
+ spaceUnitId: adGroupId,
155297
+ referrer: referrer,
155298
+ sessionId: sessionId
155299
+ }, {
155300
+ onAdClicked: function onAdClicked() {
155301
+ onEvent({
155302
+ type: "clicked"
155303
+ });
155304
+ },
155305
+ onAdDismissed: function onAdDismissed() {
155306
+ onEvent({
155307
+ type: "dismissed"
155308
+ });
155309
+ },
155310
+ onAdFailedToShow: function onAdFailedToShow() {
155311
+ onEvent({
155312
+ type: "failedToShow"
155313
+ });
155314
+ },
155315
+ onAdImpression: function onAdImpression() {
155316
+ onEvent({
155317
+ type: "impression"
155318
+ });
155319
+ },
155320
+ onAdShow: function onAdShow() {
155321
+ onEvent({
155322
+ type: "show"
155323
+ });
155324
+ },
155325
+ onUserEarnedReward: function onUserEarnedReward(data) {
155326
+ onEvent({
155327
+ type: "userEarnedReward",
155328
+ data: data
155329
+ });
155330
+ },
155331
+ onSuccess: function onSuccess() {
155332
+ onEvent({
155333
+ type: "requested"
155334
+ });
155335
+ },
155336
+ onError: function onError(error) {
155337
+ _onError5(error);
155338
+ }
155339
+ });
155340
+ return unregisterCallbacks;
155341
+ }
155342
+ _showFullScreenAd.isSupported = import_native_modules17.GoogleAdMob.showAppsInTossAdMob.isSupported;
155343
+ var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
155344
+ var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
155345
+ function tossAdEventLog(_x4) {
155346
+ return _tossAdEventLog.apply(this, arguments);
155347
+ }
155348
+ function _tossAdEventLog() {
155349
+ _tossAdEventLog = _asyncToGenerator(function* (params) {
155350
+ var referrer = getReferrer();
155351
+ var appName = import_react_native31.Granite.appName;
155352
+ var eventLogParams = Object.assign({}, params, {
155353
+ params: Object.assign({}, params.params, {
155354
+ referrer: referrer,
155355
+ app_name: appName
155356
+ })
155357
+ });
155358
+ return import_native_modules18.INTERNAL__module.tossCoreEventLog(eventLogParams);
155359
+ });
155360
+ return _tossAdEventLog.apply(this, arguments);
155361
+ }
155002
155362
  var import_react22 = _$$_REQUIRE(_dependencyMap[12], "react");
155003
155363
  function serializeError(error) {
155004
155364
  return JSON.stringify(error, function (_, value) {
@@ -155124,7 +155484,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155124
155484
  }
155125
155485
  }
155126
155486
  });
155127
- return function (_x4) {
155487
+ return function (_x5) {
155128
155488
  return _ref68.apply(this, arguments);
155129
155489
  };
155130
155490
  }(), [onMessage]);
@@ -155197,7 +155557,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155197
155557
  }, [emitter, insets]);
155198
155558
  return emitter;
155199
155559
  }
155200
- var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
155560
+ var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
155201
155561
  var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
155202
155562
  var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
155203
155563
  var import_react25 = _$$_REQUIRE(_dependencyMap[12], "react");
@@ -155285,7 +155645,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155285
155645
  var _useWebViewHistory = useWebViewHistory(),
155286
155646
  hasHistory = _useWebViewHistory.hasHistory,
155287
155647
  onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
155288
- var _ref73 = (0, import_react_native29.useBackEventState)(),
155648
+ var _ref73 = (0, import_react_native32.useBackEventState)(),
155289
155649
  webBackHandlersRef = _ref73.handlersRef,
155290
155650
  hasWebBackEvent = _ref73.hasBackEvent,
155291
155651
  addWebBackEventListener = _ref73.addEventListener,
@@ -155321,7 +155681,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155321
155681
  logging.closePopupCtaClick(isConfirmed);
155322
155682
  if (isConfirmed) {
155323
155683
  captureExitLog(Date.now());
155324
- (0, import_react_native29.closeView)();
155684
+ (0, import_react_native32.closeView)();
155325
155685
  }
155326
155686
  }
155327
155687
  }), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
@@ -155360,8 +155720,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155360
155720
  });
155361
155721
  };
155362
155722
  }
155363
- var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
155364
- var import_react_native30 = _$$_REQUIRE(_dependencyMap[11], "react-native");
155723
+ var import_native_modules19 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
155724
+ var import_react_native33 = _$$_REQUIRE(_dependencyMap[11], "react-native");
155365
155725
  var FontA11yCategory = {
155366
155726
  Large: "Large",
155367
155727
  xLarge: "xLarge",
@@ -155497,23 +155857,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155497
155857
  pureSafeArea = _ref76.pureSafeArea,
155498
155858
  safeArea = _ref76.safeArea,
155499
155859
  safeAreaBottomTransparency = _ref76.safeAreaBottomTransparency;
155500
- var platform = (0, import_native_modules15.getPlatformOS)();
155501
- var appVersion = (0, import_native_modules15.getTossAppVersion)();
155502
- var _ref77 = (0, import_react_native30.useWindowDimensions)(),
155860
+ var platform = (0, import_native_modules19.getPlatformOS)();
155861
+ var appVersion = (0, import_native_modules19.getTossAppVersion)();
155862
+ var _ref77 = (0, import_react_native33.useWindowDimensions)(),
155503
155863
  fontScale = _ref77.fontScale;
155504
155864
  var platformString = platform === "ios" ? "iPhone" : "Android phone";
155505
155865
  var fontA11y = mapFontScaleToCategory(fontScale, platform);
155506
155866
  var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
155507
155867
  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(" ");
155508
155868
  }
155509
- var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
155510
- var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
155869
+ var import_native_modules20 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
155870
+ var import_react_native34 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
155511
155871
  var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
155512
155872
  function _useGeolocation(_ref78) {
155513
155873
  var accuracy = _ref78.accuracy,
155514
155874
  distanceInterval = _ref78.distanceInterval,
155515
155875
  timeInterval = _ref78.timeInterval;
155516
- var isVisible = (0, import_react_native31.useVisibility)();
155876
+ var isVisible = (0, import_react_native34.useVisibility)();
155517
155877
  var _ref79 = (0, import_react26.useState)(null),
155518
155878
  _ref80 = _slicedToArray(_ref79, 2),
155519
155879
  location = _ref80[0],
@@ -155522,7 +155882,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155522
155882
  if (!isVisible) {
155523
155883
  return;
155524
155884
  }
155525
- return (0, import_native_modules16.startUpdateLocation)({
155885
+ return (0, import_native_modules20.startUpdateLocation)({
155526
155886
  options: {
155527
155887
  accuracy: accuracy,
155528
155888
  distanceInterval: distanceInterval,
@@ -155534,11 +155894,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155534
155894
  }, [accuracy, distanceInterval, timeInterval, isVisible]);
155535
155895
  return location;
155536
155896
  }
155537
- var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
155897
+ var import_react_native35 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
155538
155898
  var import_react27 = _$$_REQUIRE(_dependencyMap[12], "react");
155539
155899
  function _useWaitForReturnNavigator() {
155540
155900
  var callbacks = (0, import_react27.useRef)([]).current;
155541
- var navigation = (0, import_react_native32.useNavigation)();
155901
+ var navigation = (0, import_react_native35.useNavigation)();
155542
155902
  var startNavigating = (0, import_react27.useCallback)(function (route, params) {
155543
155903
  return new Promise(function (resolve) {
155544
155904
  callbacks.push(resolve);
@@ -155553,7 +155913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155553
155913
  callbacks.splice(0, callbacks.length);
155554
155914
  }
155555
155915
  }, [callbacks]);
155556
- (0, import_react_native32.useVisibilityChange)(handleVisibilityChange);
155916
+ (0, import_react_native35.useVisibilityChange)(handleVisibilityChange);
155557
155917
  return startNavigating;
155558
155918
  }
155559
155919
  function _useTopNavigation() {
@@ -155565,8 +155925,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155565
155925
  removeAccessoryButton: removeNavigationRightButton
155566
155926
  };
155567
155927
  }
155568
- var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
155569
- var import_react_native33 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
155928
+ var import_native_modules21 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
155929
+ var import_react_native36 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
155570
155930
  var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
155571
155931
  var timestampHex = uuid.split("-").join("").slice(0, 12);
155572
155932
  var timestamp = Number.parseInt(timestampHex, 16);
@@ -155579,18 +155939,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155579
155939
  groupId: urlObject.pathname,
155580
155940
  search: urlObject.search.startsWith("?") ? urlObject.search.substring(1) : urlObject.search
155581
155941
  };
155582
- } catch (_unused4) {
155942
+ } catch (_unused6) {
155583
155943
  return {
155584
155944
  groupId: "unknown",
155585
155945
  search: "unknown"
155586
155946
  };
155587
155947
  }
155588
155948
  };
155589
- var getReferrer = function getReferrer() {
155949
+ var getReferrer2 = function getReferrer2() {
155590
155950
  try {
155591
- var referrer = new URL((0, import_react_native33.getSchemeUri)());
155951
+ var referrer = new URL((0, import_react_native36.getSchemeUri)());
155592
155952
  return referrer.searchParams.get("referrer");
155593
- } catch (_unused5) {
155953
+ } catch (_unused7) {
155594
155954
  return "";
155595
155955
  }
155596
155956
  };
@@ -155603,12 +155963,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155603
155963
  log_name: groupId + "::screen",
155604
155964
  params: {
155605
155965
  search: search,
155606
- referrer: getReferrer(),
155966
+ referrer: getReferrer2(),
155607
155967
  deployment_id: _env.getDeploymentId(),
155608
155968
  deployment_timestamp: extractDateFromUUIDv7(_env.getDeploymentId()).getTime()
155609
155969
  }
155610
155970
  };
155611
- return (0, import_native_modules17.eventLog)(log);
155971
+ return (0, import_native_modules21.eventLog)(log);
155612
155972
  };
155613
155973
  var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
155614
155974
  var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
@@ -155620,7 +155980,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155620
155980
  };
155621
155981
  function mergeSchemeQueryParamsInto(url) {
155622
155982
  var baseUrl = new URL(url);
155623
- var schemeUrl = new URL((0, import_react_native34.getSchemeUri)());
155983
+ var schemeUrl = new URL((0, import_react_native37.getSchemeUri)());
155624
155984
  baseUrl.pathname = schemeUrl.pathname;
155625
155985
  for (var _ref81 of schemeUrl.searchParams.entries()) {
155626
155986
  var _ref82 = _slicedToArray(_ref81, 2);
@@ -155635,7 +155995,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155635
155995
  var devUrl = "http://" + local.host + ":" + local.port;
155636
155996
  return mergeSchemeQueryParamsInto(devUrl).toString();
155637
155997
  }
155638
- var _import_native_module = import_native_modules18.AppsInTossModule.getWebBundleURL({}),
155998
+ var _import_native_module = import_native_modules22.AppsInTossModule.getWebBundleURL({}),
155639
155999
  rawUrl = _import_native_module.url;
155640
156000
  var url = mergeSchemeQueryParamsInto(rawUrl);
155641
156001
  var deploymentId = _env.getDeploymentId();
@@ -155689,7 +156049,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155689
156049
  var onEvent = _ref88.onEvent,
155690
156050
  onError = _ref88.onError,
155691
156051
  options = _ref88.options;
155692
- return import_native_modules18.appsInTossEvent.addEventListener("updateLocationEvent", {
156052
+ return import_native_modules22.appsInTossEvent.addEventListener("updateLocationEvent", {
155693
156053
  onEvent: onEvent,
155694
156054
  onError: onError,
155695
156055
  options: options
@@ -155706,20 +156066,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155706
156066
  var onEvent = _ref90.onEvent,
155707
156067
  onError = _ref90.onError,
155708
156068
  options = _ref90.options;
155709
- return import_native_modules18.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
156069
+ return import_native_modules22.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
155710
156070
  onEvent: onEvent,
155711
156071
  onError: onError,
155712
156072
  options: options
155713
156073
  });
155714
156074
  },
155715
- loadAdMobInterstitialAd: import_native_modules18.GoogleAdMob.loadAdMobInterstitialAd,
155716
- showAdMobInterstitialAd: import_native_modules18.GoogleAdMob.showAdMobInterstitialAd,
155717
- loadAdMobRewardedAd: import_native_modules18.GoogleAdMob.loadAdMobRewardedAd,
155718
- showAdMobRewardedAd: import_native_modules18.GoogleAdMob.showAdMobRewardedAd,
155719
- loadAppsInTossAdMob: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob,
155720
- showAppsInTossAdMob: import_native_modules18.GoogleAdMob.showAppsInTossAdMob,
155721
- iapCreateOneTimePurchaseOrder: import_native_modules18.IAP.createOneTimePurchaseOrder,
155722
- requestOneTimePurchase: import_native_modules18.requestOneTimePurchase
156075
+ loadAdMobInterstitialAd: import_native_modules22.GoogleAdMob.loadAdMobInterstitialAd,
156076
+ showAdMobInterstitialAd: import_native_modules22.GoogleAdMob.showAdMobInterstitialAd,
156077
+ loadAdMobRewardedAd: import_native_modules22.GoogleAdMob.loadAdMobRewardedAd,
156078
+ showAdMobRewardedAd: import_native_modules22.GoogleAdMob.showAdMobRewardedAd,
156079
+ loadAppsInTossAdMob: import_native_modules22.GoogleAdMob.loadAppsInTossAdMob,
156080
+ showAppsInTossAdMob: import_native_modules22.GoogleAdMob.showAppsInTossAdMob,
156081
+ loadFullScreenAd: loadFullScreenAdForWeb,
156082
+ showFullScreenAd: _showFullScreenAd,
156083
+ fetchTossAd: fetchTossAd,
156084
+ iapCreateOneTimePurchaseOrder: import_native_modules22.IAP.createOneTimePurchaseOrder,
156085
+ requestOneTimePurchase: import_native_modules22.requestOneTimePurchase
155723
156086
  }),
155724
156087
  constantHandlerMap: Object.assign({}, appsInTossConstantBridges, {
155725
156088
  getSafeAreaTop: function getSafeAreaTop() {
@@ -155742,12 +156105,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155742
156105
  return value;
155743
156106
  }];
155744
156107
  })), {
155745
- loadAdMobInterstitialAd_isSupported: import_native_modules18.GoogleAdMob.loadAdMobInterstitialAd.isSupported,
155746
- showAdMobInterstitialAd_isSupported: import_native_modules18.GoogleAdMob.showAdMobInterstitialAd.isSupported,
155747
- loadAdMobRewardedAd_isSupported: import_native_modules18.GoogleAdMob.loadAdMobRewardedAd.isSupported,
155748
- showAdMobRewardedAd_isSupported: import_native_modules18.GoogleAdMob.showAdMobRewardedAd.isSupported,
155749
- loadAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported,
155750
- showAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported,
156108
+ loadAdMobInterstitialAd_isSupported: import_native_modules22.GoogleAdMob.loadAdMobInterstitialAd.isSupported,
156109
+ showAdMobInterstitialAd_isSupported: import_native_modules22.GoogleAdMob.showAdMobInterstitialAd.isSupported,
156110
+ loadAdMobRewardedAd_isSupported: import_native_modules22.GoogleAdMob.loadAdMobRewardedAd.isSupported,
156111
+ showAdMobRewardedAd_isSupported: import_native_modules22.GoogleAdMob.showAdMobRewardedAd.isSupported,
156112
+ loadAppsInTossAdMob_isSupported: import_native_modules22.GoogleAdMob.loadAppsInTossAdMob.isSupported,
156113
+ showAppsInTossAdMob_isSupported: import_native_modules22.GoogleAdMob.showAppsInTossAdMob.isSupported,
156114
+ loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
156115
+ showFullScreenAd_isSupported: _showFullScreenAd.isSupported,
156116
+ fetchTossAd_isSupported: fetchTossAd.isSupported,
155751
156117
  getDeploymentId: _env.getDeploymentId
155752
156118
  }),
155753
156119
  asyncHandlerMap: Object.assign({}, appsInTossAsyncBridges, {
@@ -155759,7 +156125,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155759
156125
  var _addAccessoryButton = _asyncToGenerator(function* (params) {
155760
156126
  return navigationBarContext.addNavigationRightButton(params);
155761
156127
  });
155762
- function addAccessoryButton(_x5) {
156128
+ function addAccessoryButton(_x6) {
155763
156129
  return _addAccessoryButton.apply(this, arguments);
155764
156130
  }
155765
156131
  return addAccessoryButton;
@@ -155782,17 +156148,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155782
156148
  fetchContacts: appsInTossAsyncBridges.fetchContacts,
155783
156149
  getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
155784
156150
  openCamera: appsInTossAsyncBridges.openCamera,
155785
- getStorageItem: import_native_modules18.Storage.getItem,
155786
- setStorageItem: import_native_modules18.Storage.setItem,
155787
- removeStorageItem: import_native_modules18.Storage.removeItem,
155788
- clearItems: import_native_modules18.Storage.clearItems,
155789
- iapGetProductItemList: import_native_modules18.IAP.getProductItemList,
155790
- iapCreateOneTimePurchaseOrder: import_native_modules18.iapCreateOneTimePurchaseOrder,
155791
- processProductGrant: import_native_modules18.processProductGrant,
155792
- getPendingOrders: import_native_modules18.IAP.getPendingOrders,
155793
- getCompletedOrRefundedOrders: import_native_modules18.IAP.getCompletedOrRefundedOrders,
155794
- completeProductGrant: import_native_modules18.IAP.completeProductGrant,
155795
- memoryDebugEventLog: webViewMemoryDebugLog
156151
+ getStorageItem: import_native_modules22.Storage.getItem,
156152
+ setStorageItem: import_native_modules22.Storage.setItem,
156153
+ removeStorageItem: import_native_modules22.Storage.removeItem,
156154
+ clearItems: import_native_modules22.Storage.clearItems,
156155
+ iapGetProductItemList: import_native_modules22.IAP.getProductItemList,
156156
+ iapCreateOneTimePurchaseOrder: import_native_modules22.iapCreateOneTimePurchaseOrder,
156157
+ processProductGrant: import_native_modules22.processProductGrant,
156158
+ getPendingOrders: import_native_modules22.IAP.getPendingOrders,
156159
+ getCompletedOrRefundedOrders: import_native_modules22.IAP.getCompletedOrRefundedOrders,
156160
+ completeProductGrant: import_native_modules22.IAP.completeProductGrant,
156161
+ tossAdEventLog: tossAdEventLog
155796
156162
  })
155797
156163
  });
155798
156164
  var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
@@ -155822,9 +156188,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155822
156188
  webBackHandler.handleWebBack();
155823
156189
  return true;
155824
156190
  };
155825
- import_react_native35.BackHandler.addEventListener("hardwareBackPress", callback);
156191
+ import_react_native38.BackHandler.addEventListener("hardwareBackPress", callback);
155826
156192
  return function () {
155827
- return import_react_native35.BackHandler.removeEventListener("hardwareBackPress", callback);
156193
+ return import_react_native38.BackHandler.removeEventListener("hardwareBackPress", callback);
155828
156194
  };
155829
156195
  }, [webBackHandler]);
155830
156196
  var globalScripts = useGlobalScripts();
@@ -155846,14 +156212,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155846
156212
  props.onNavigationStateChange == null ? void 0 : props.onNavigationStateChange(event);
155847
156213
  webBackHandler.onNavigationStateChange(event);
155848
156214
  },
155849
- userAgent: import_react_native35.Platform.OS === "ios" ? userAgent : void 0,
156215
+ userAgent: import_react_native38.Platform.OS === "ios" ? userAgent : void 0,
155850
156216
  sharedCookiesEnabled: true,
155851
156217
  webviewDebuggingEnabled: webViewDebuggingEnabled,
155852
156218
  thirdPartyCookiesEnabled: true,
155853
156219
  onMessage: handler.onMessage,
155854
156220
  injectedJavaScript: globalScripts.afterLoad,
155855
156221
  injectedJavaScriptBeforeContentLoaded: mergeScripts(handler.injectedJavaScript, globalScripts.beforeLoad),
155856
- decelerationRate: import_react_native35.Platform.OS === "ios" ? 1 : void 0,
156222
+ decelerationRate: import_react_native38.Platform.OS === "ios" ? 1 : void 0,
155857
156223
  allowsBackForwardNavigationGestures: allowsBackForwardNavigationGestures,
155858
156224
  onShouldStartLoadWithRequest: function onShouldStartLoadWithRequest(event) {
155859
156225
  try {
@@ -155862,7 +156228,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155862
156228
  return true;
155863
156229
  } else {
155864
156230
  var _convertIntentURL;
155865
- import_react_native35.Linking.openURL((_convertIntentURL = convertIntentURL(url)) != null ? _convertIntentURL : url.href);
156231
+ import_react_native38.Linking.openURL((_convertIntentURL = convertIntentURL(url)) != null ? _convertIntentURL : url.href);
155866
156232
  return false;
155867
156233
  }
155868
156234
  } catch (error) {
@@ -155870,49 +156236,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155870
156236
  return false;
155871
156237
  }
155872
156238
  },
155873
- originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"],
155874
- onContentProcessDidTerminate: function onContentProcessDidTerminate(event) {
155875
- var _webViewRef$current3;
155876
- webViewProcessDidTerminateEventLog(event.nativeEvent.url);
155877
- (_webViewRef$current3 = webViewRef.current) == null ? void 0 : _webViewRef$current3.reload();
155878
- },
155879
- onRenderProcessGone: function onRenderProcessGone() {
155880
- var _webViewRef$current4;
155881
- webViewProcessDidTerminateEventLog();
155882
- (_webViewRef$current4 = webViewRef.current) == null ? void 0 : _webViewRef$current4.reload();
155883
- }
156239
+ originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"]
155884
156240
  }));
155885
156241
  }
155886
- function webViewMemoryDebugLog(_x6) {
155887
- return _webViewMemoryDebugLog.apply(this, arguments);
155888
- }
155889
- function _webViewMemoryDebugLog() {
155890
- _webViewMemoryDebugLog = _asyncToGenerator(function* (params) {
155891
- webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
155892
- });
155893
- return _webViewMemoryDebugLog.apply(this, arguments);
155894
- }
155895
- function webViewProcessDidTerminateEventLog(url) {
155896
- webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {
155897
- url: url
155898
- });
155899
- }
155900
- function webViewDebugLog(logName, params) {
155901
- var global2 = getAppsInTossGlobals();
155902
- var event = {
155903
- log_name: logName,
155904
- log_type: "debug",
155905
- params: Object.assign({}, params, {
155906
- app_name: import_react_native34.Granite.appName,
155907
- deployment_id: global2.deploymentId
155908
- })
155909
- };
155910
- if ((0, import_native_modules18.getOperationalEnvironment)() === "toss") {
155911
- import_native_modules18.INTERNAL__module.tossCoreEventLog(event);
155912
- } else {
155913
- console.log("[webViewDebugLog]", event);
155914
- }
155915
- }
155916
156242
  function useGlobalScripts() {
155917
156243
  var global2 = getAppsInTossGlobals();
155918
156244
  var disableTextSelectionCSS = "\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n ";
@@ -155947,6 +156273,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155947
156273
  OverlayProvider: OverlayProvider,
155948
156274
  WebView: _WebView,
155949
156275
  env: _env,
156276
+ loadFullScreenAd: _loadFullScreenAd,
156277
+ showFullScreenAd: _showFullScreenAd,
155950
156278
  useCreateUserAgent: _useCreateUserAgent,
155951
156279
  useGeolocation: _useGeolocation,
155952
156280
  useOverlay: useOverlay,