@apps-in-toss/web-framework 0.0.29 → 0.0.31

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.
@@ -87621,7 +87621,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
87621
87621
  var _default = exports.default = TurboModuleRegistry.get('LinkingManager');
87622
87622
  },415,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Linking/NativeLinkingManager.js");
87623
87623
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
87624
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
87624
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
87625
87625
  "__packager_asset": true,
87626
87626
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
87627
87627
  "width": 28,
@@ -89309,7 +89309,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89309
89309
  var _default = exports.default = NativeStatusBarManager;
89310
89310
  },432,[34],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js");
89311
89311
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89312
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89312
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89313
89313
  "__packager_asset": true,
89314
89314
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89315
89315
  "width": 16,
@@ -89321,7 +89321,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89321
89321
  });
89322
89322
  },433,[417],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/chevron-left.png");
89323
89323
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89324
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89324
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89325
89325
  "__packager_asset": true,
89326
89326
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89327
89327
  "width": 16,
@@ -89955,7 +89955,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89955
89955
  var _default = exports.default = LogBoxInspectorSourceMapStatus;
89956
89956
  },438,[318,277,246,382,410,411,8,49,439,440],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js");
89957
89957
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89958
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89958
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89959
89959
  "__packager_asset": true,
89960
89960
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89961
89961
  "width": 48,
@@ -89967,7 +89967,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
89967
89967
  });
89968
89968
  },439,[417],"../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png");
89969
89969
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
89970
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89970
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
89971
89971
  "__packager_asset": true,
89972
89972
  "httpServerLocation": "/assets/../../../.yarn/unplugged/react-native-virtual-b5f6484574/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages",
89973
89973
  "width": 44,
@@ -108298,7 +108298,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
108298
108298
  }
108299
108299
  },648,[509,8,11,49],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/PlatformPressable.tsx");
108300
108300
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
108301
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
108301
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
108302
108302
  "__packager_asset": true,
108303
108303
  "httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets",
108304
108304
  "width": 12,
@@ -108310,7 +108310,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
108310
108310
  });
108311
108311
  },649,[417],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets/back-icon.png");
108312
108312
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
108313
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
108313
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
108314
108314
  "__packager_asset": true,
108315
108315
  "httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-a2d7be669a/0/cache/@react-navigation-elements-npm-1.3.31-e09b25e3e4-4a2e6ee67d.zip/node_modules/@react-navigation/elements/src/assets",
108316
108316
  "width": 50,
@@ -154589,6 +154589,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
154589
154589
  startUpdateLocation: function startUpdateLocation() {
154590
154590
  return _startUpdateLocation;
154591
154591
  },
154592
+ useCreateUserAgent: function useCreateUserAgent() {
154593
+ return _useCreateUserAgent;
154594
+ },
154592
154595
  useGeolocation: function useGeolocation() {
154593
154596
  return _useGeolocation;
154594
154597
  }
@@ -155818,10 +155821,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
155818
155821
  loadAdMobRewardedAd: loadAdMobRewardedAd,
155819
155822
  showAdMobRewardedAd: showAdMobRewardedAd
155820
155823
  };
155821
- var import_react_native14 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155824
+ var import_react_native15 = _$$_REQUIRE(_dependencyMap[1], "@toss-design-system/react-native");
155822
155825
  var import_private = _$$_REQUIRE(_dependencyMap[6], "@toss-design-system/react-native/private");
155823
- var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
155824
- var import_react_native_bedrock11 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
155826
+ var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
155827
+ var import_react_native16 = _$$_REQUIRE(_dependencyMap[4], "react-native");
155828
+ var import_react_native_bedrock13 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
155825
155829
  var bedrockAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[7], "react-native-bedrock/async-bridges"), 1);
155826
155830
  var bedrockConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[8], "react-native-bedrock/constant-bridges"), 1);
155827
155831
  var import_react_native_webview = _$$_REQUIRE(_dependencyMap[9], "@react-native-bedrock/native/react-native-webview");
@@ -156155,7 +156159,207 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156155
156159
  return _startUpdateLocation;
156156
156160
  }
156157
156161
  });
156162
+ var import_react_native14 = _$$_REQUIRE(_dependencyMap[4], "react-native");
156158
156163
  var import_react_native_bedrock10 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156164
+ var FontA11yCategory = {
156165
+ Large: "Large",
156166
+ xLarge: "xLarge",
156167
+ xxLarge: "xxLarge",
156168
+ xxxLarge: "xxxLarge",
156169
+ A11y_Medium: "A11y_Medium",
156170
+ A11y_Large: "A11y_Large",
156171
+ A11y_xLarge: "A11y_xLarge",
156172
+ A11y_xxLarge: "A11y_xxLarge",
156173
+ A11y_xxxLarge: "A11y_xxxLarge"
156174
+ };
156175
+ var androidFontScaleMap = {
156176
+ 100: FontA11yCategory.Large,
156177
+ 110: FontA11yCategory.xLarge,
156178
+ 120: FontA11yCategory.xxLarge,
156179
+ 135: FontA11yCategory.xxxLarge,
156180
+ 160: FontA11yCategory.A11y_Medium,
156181
+ 190: FontA11yCategory.A11y_Large,
156182
+ 235: FontA11yCategory.A11y_xLarge,
156183
+ 275: FontA11yCategory.A11y_xxLarge,
156184
+ 310: FontA11yCategory.A11y_xxxLarge
156185
+ };
156186
+ var iosScaleToAndroidScale = {
156187
+ 0.823: 100,
156188
+ 0.882: 100,
156189
+ 0.941: 100,
156190
+ 1: 100,
156191
+ 1.118: 110,
156192
+ 1.235: 120,
156193
+ 1.353: 135,
156194
+ 1.786: 160,
156195
+ 2.143: 190,
156196
+ 2.643: 235,
156197
+ 3.143: 275,
156198
+ 3.571: 310
156199
+ };
156200
+ function convertToAndroidStyleScale(fontScale, platform) {
156201
+ if (platform === "android") {
156202
+ if (fontScale <= 1) {
156203
+ return 100;
156204
+ }
156205
+ var scaledValue = Math.round(fontScale * 100);
156206
+ var keys = Object.keys(androidFontScaleMap).map(Number).sort(function (a, b) {
156207
+ return a - b;
156208
+ });
156209
+ var closestKey = keys[0];
156210
+ var minDiff = Math.abs(scaledValue - closestKey);
156211
+ var _iterator2 = _createForOfIteratorHelper(keys),
156212
+ _step2;
156213
+ try {
156214
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
156215
+ var key = _step2.value;
156216
+ var diff = Math.abs(scaledValue - key);
156217
+ if (diff < minDiff) {
156218
+ minDiff = diff;
156219
+ closestKey = key;
156220
+ }
156221
+ }
156222
+ } catch (err) {
156223
+ _iterator2.e(err);
156224
+ } finally {
156225
+ _iterator2.f();
156226
+ }
156227
+ return closestKey;
156228
+ } else {
156229
+ var iosScales = Object.keys(iosScaleToAndroidScale).map(Number);
156230
+ var closestScale = iosScales[0];
156231
+ var _minDiff = Math.abs(fontScale - closestScale);
156232
+ var _iterator3 = _createForOfIteratorHelper(iosScales),
156233
+ _step3;
156234
+ try {
156235
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
156236
+ var scale = _step3.value;
156237
+ var _diff = Math.abs(fontScale - scale);
156238
+ if (_diff < _minDiff) {
156239
+ _minDiff = _diff;
156240
+ closestScale = scale;
156241
+ }
156242
+ }
156243
+ } catch (err) {
156244
+ _iterator3.e(err);
156245
+ } finally {
156246
+ _iterator3.f();
156247
+ }
156248
+ return iosScaleToAndroidScale[closestScale];
156249
+ }
156250
+ }
156251
+ function mapIOSFontScaleToCategory(fontScale) {
156252
+ if (fontScale < 1) {
156253
+ return FontA11yCategory.Large;
156254
+ }
156255
+ if (Math.abs(fontScale - 1) < 0.05) {
156256
+ return FontA11yCategory.Large;
156257
+ }
156258
+ if (Math.abs(fontScale - 1.118) < 0.05) {
156259
+ return FontA11yCategory.xLarge;
156260
+ }
156261
+ if (Math.abs(fontScale - 1.235) < 0.05) {
156262
+ return FontA11yCategory.xxLarge;
156263
+ }
156264
+ if (Math.abs(fontScale - 1.353) < 0.05) {
156265
+ return FontA11yCategory.xxxLarge;
156266
+ }
156267
+ if (Math.abs(fontScale - 1.786) < 0.05) {
156268
+ return FontA11yCategory.A11y_Medium;
156269
+ }
156270
+ if (Math.abs(fontScale - 2.143) < 0.05) {
156271
+ return FontA11yCategory.A11y_Large;
156272
+ }
156273
+ if (Math.abs(fontScale - 2.643) < 0.05) {
156274
+ return FontA11yCategory.A11y_xLarge;
156275
+ }
156276
+ if (Math.abs(fontScale - 3.143) < 0.05) {
156277
+ return FontA11yCategory.A11y_xxLarge;
156278
+ }
156279
+ if (Math.abs(fontScale - 3.571) < 0.05) {
156280
+ return FontA11yCategory.A11y_xxxLarge;
156281
+ }
156282
+ return FontA11yCategory.Large;
156283
+ }
156284
+ function mapAndroidFontScaleToCategory(fontScale) {
156285
+ if (fontScale <= 1) {
156286
+ return androidFontScaleMap[100];
156287
+ }
156288
+ var scaledValue = Math.round(fontScale * 100);
156289
+ var keys = Object.keys(androidFontScaleMap).map(Number).sort(function (a, b) {
156290
+ return a - b;
156291
+ });
156292
+ if (keys.length === 0) {
156293
+ return androidFontScaleMap[100];
156294
+ }
156295
+ var closestKey = keys[0];
156296
+ var minDiff = Math.abs(scaledValue - closestKey);
156297
+ var _iterator4 = _createForOfIteratorHelper(keys),
156298
+ _step4;
156299
+ try {
156300
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
156301
+ var key = _step4.value;
156302
+ var diff = Math.abs(scaledValue - key);
156303
+ if (diff < minDiff) {
156304
+ minDiff = diff;
156305
+ closestKey = key;
156306
+ }
156307
+ }
156308
+ } catch (err) {
156309
+ _iterator4.e(err);
156310
+ } finally {
156311
+ _iterator4.f();
156312
+ }
156313
+ return androidFontScaleMap[closestKey];
156314
+ }
156315
+ function mapFontScaleToCategory(fontScale, platform) {
156316
+ return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
156317
+ }
156318
+ function _useCreateUserAgent(_ref20) {
156319
+ var batteryModePreference = _ref20.batteryModePreference,
156320
+ colorPreference = _ref20.colorPreference,
156321
+ locale = _ref20.locale,
156322
+ navbarPreference = _ref20.navbarPreference,
156323
+ pureSafeArea = _ref20.pureSafeArea,
156324
+ safeArea = _ref20.safeArea,
156325
+ safeAreaBottomTransparency = _ref20.safeAreaBottomTransparency;
156326
+ var platform = (0, import_react_native_bedrock10.getPlatformOS)();
156327
+ var appVersion = _getTossAppVersion();
156328
+ var _ref21 = (0, import_react_native14.useWindowDimensions)(),
156329
+ fontScale = _ref21.fontScale;
156330
+ var platformString = platform === "ios" ? "iPhone" : "Android";
156331
+ var fontA11y = mapFontScaleToCategory(fontScale, platform);
156332
+ var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
156333
+ return ["TossApp/".concat(appVersion), batteryModePreference && "TossBatteryModePreference/".concat(batteryModePreference), colorPreference && "TossColorPreference/".concat(colorPreference), "TossFontAccessibility/".concat(fontA11y), "TossFontScale/".concat(normalizedFontScale), locale && "TossLocale/".concat(locale), navbarPreference && "TossNavbarPreference/".concat(navbarPreference), pureSafeArea && "TossPureSafeArea/".concat(pureSafeArea), safeArea && "TossSafeArea/".concat(safeArea), safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/".concat(safeAreaBottomTransparency), platformString].filter(Boolean).join(" ");
156334
+ }
156335
+ var import_react6 = _$$_REQUIRE(_dependencyMap[3], "react");
156336
+ var import_react_native_bedrock11 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156337
+ function _useGeolocation(_ref22) {
156338
+ var accuracy = _ref22.accuracy,
156339
+ distanceInterval = _ref22.distanceInterval,
156340
+ timeInterval = _ref22.timeInterval;
156341
+ var isVisible = (0, import_react_native_bedrock11.useVisibility)();
156342
+ var _ref23 = (0, import_react6.useState)(null),
156343
+ _ref24 = _slicedToArray(_ref23, 2),
156344
+ location = _ref24[0],
156345
+ setLocation = _ref24[1];
156346
+ (0, import_react6.useEffect)(function () {
156347
+ if (!isVisible) {
156348
+ return;
156349
+ }
156350
+ return _startUpdateLocation({
156351
+ options: {
156352
+ accuracy: accuracy,
156353
+ distanceInterval: distanceInterval,
156354
+ timeInterval: timeInterval
156355
+ },
156356
+ onEvent: setLocation,
156357
+ onError: console.error
156358
+ });
156359
+ }, [accuracy, distanceInterval, timeInterval, isVisible]);
156360
+ return location;
156361
+ }
156362
+ var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156159
156363
  var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
156160
156364
  var timestampHex = uuid.split("-").join("").slice(0, 12);
156161
156365
  var timestamp = Number.parseInt(timestampHex, 16);
@@ -156177,7 +156381,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156177
156381
  };
156178
156382
  var getReferrer = function getReferrer() {
156179
156383
  try {
156180
- var referrer = new URL((0, import_react_native_bedrock10.getSchemeUri)());
156384
+ var referrer = new URL((0, import_react_native_bedrock12.getSchemeUri)());
156181
156385
  return referrer.searchParams.get("referrer");
156182
156386
  } catch (_unused4) {
156183
156387
  return "";
@@ -156204,27 +156408,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156204
156408
  var operationalEnvironment = _getOperationalEnvironment();
156205
156409
  var TYPES = ["partner", "external", "game"];
156206
156410
  var WEBVIEW_TYPES = {
156207
- partner: import_react_native14.PartnerWebViewScreen,
156208
- external: import_react_native14.ExternalWebViewScreen,
156411
+ partner: import_react_native15.PartnerWebViewScreen,
156412
+ external: import_react_native15.ExternalWebViewScreen,
156209
156413
  game: GameWebView
156210
156414
  };
156211
156415
  function mergeSchemeQueryParamsInto(url) {
156212
156416
  var baseUrl = new URL(url);
156213
- var schemeUrl = new URL((0, import_react_native_bedrock11.getSchemeUri)());
156417
+ var schemeUrl = new URL((0, import_react_native_bedrock13.getSchemeUri)());
156214
156418
  baseUrl.pathname = schemeUrl.pathname;
156215
- var _iterator2 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
156216
- _step2;
156419
+ var _iterator5 = _createForOfIteratorHelper(schemeUrl.searchParams.entries()),
156420
+ _step5;
156217
156421
  try {
156218
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
156219
- var _step2$value = _slicedToArray(_step2.value, 2),
156220
- key = _step2$value[0],
156221
- value = _step2$value[1];
156422
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
156423
+ var _step5$value = _slicedToArray(_step5.value, 2),
156424
+ key = _step5$value[0],
156425
+ value = _step5$value[1];
156222
156426
  baseUrl.searchParams.set(key, value);
156223
156427
  }
156224
156428
  } catch (err) {
156225
- _iterator2.e(err);
156429
+ _iterator5.e(err);
156226
156430
  } finally {
156227
- _iterator2.f();
156431
+ _iterator5.f();
156228
156432
  }
156229
156433
  return baseUrl;
156230
156434
  }
@@ -156242,55 +156446,56 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156242
156446
  }
156243
156447
  return url.toString();
156244
156448
  }
156245
- function _WebView(_ref20) {
156246
- var type = _ref20.type,
156247
- local = _ref20.local,
156248
- onMessage = _ref20.onMessage,
156249
- props = _objectWithoutProperties(_ref20, _excluded3);
156449
+ function _WebView(_ref25) {
156450
+ var type = _ref25.type,
156451
+ local = _ref25.local,
156452
+ onMessage = _ref25.onMessage,
156453
+ props = _objectWithoutProperties(_ref25, _excluded3);
156250
156454
  if (!TYPES.includes(type)) {
156251
156455
  throw new Error("Invalid WebView type: '".concat(type, "'"));
156252
156456
  }
156253
- var bedrockEvent = (0, import_react_native_bedrock11.useBedrockEvent)();
156254
- var uri = (0, import_react6.useMemo)(function () {
156457
+ var bedrockEvent = (0, import_react_native_bedrock13.useBedrockEvent)();
156458
+ var uri = (0, import_react7.useMemo)(function () {
156255
156459
  return getWebViewUri(local);
156256
156460
  }, [local]);
156257
156461
  var top = (0, import_private.useSafeAreaTop)();
156258
156462
  var bottom = (0, import_private.useSafeAreaBottom)();
156463
+ var global2 = getAppsInTossGlobals();
156259
156464
  var handler = useBridgeHandler({
156260
156465
  onMessage: onMessage,
156261
156466
  eventListenerMap: _objectSpread(_objectSpread({}, event_bridges_exports), {}, {
156262
- backEvent: function backEvent(_ref21) {
156263
- var onEvent = _ref21.onEvent,
156264
- onError = _ref21.onError,
156265
- options = _ref21.options;
156467
+ backEvent: function backEvent(_ref26) {
156468
+ var onEvent = _ref26.onEvent,
156469
+ onError = _ref26.onError,
156470
+ options = _ref26.options;
156266
156471
  return bedrockEvent.addEventListener("backEvent", {
156267
156472
  onEvent: onEvent,
156268
156473
  onError: onError,
156269
156474
  options: options
156270
156475
  });
156271
156476
  },
156272
- entryMessageExited: function entryMessageExited(_ref22) {
156273
- var onEvent = _ref22.onEvent,
156274
- onError = _ref22.onError;
156477
+ entryMessageExited: function entryMessageExited(_ref27) {
156478
+ var onEvent = _ref27.onEvent,
156479
+ onError = _ref27.onError;
156275
156480
  return _appsInTossEvent.addEventListener("entryMessageExited", {
156276
156481
  onEvent: onEvent,
156277
156482
  onError: onError
156278
156483
  });
156279
156484
  },
156280
- updateLocationEvent: function updateLocationEvent(_ref23) {
156281
- var onEvent = _ref23.onEvent,
156282
- onError = _ref23.onError,
156283
- options = _ref23.options;
156485
+ updateLocationEvent: function updateLocationEvent(_ref28) {
156486
+ var onEvent = _ref28.onEvent,
156487
+ onError = _ref28.onError,
156488
+ options = _ref28.options;
156284
156489
  return _appsInTossEvent.addEventListener("updateLocationEvent", {
156285
156490
  onEvent: onEvent,
156286
156491
  onError: onError,
156287
156492
  options: options
156288
156493
  });
156289
156494
  },
156290
- appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref24) {
156291
- var onEvent = _ref24.onEvent,
156292
- onError = _ref24.onError,
156293
- options = _ref24.options;
156495
+ appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref29) {
156496
+ var onEvent = _ref29.onEvent,
156497
+ onError = _ref29.onError,
156498
+ options = _ref29.options;
156294
156499
  return _appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
156295
156500
  onEvent: onEvent,
156296
156501
  onError: onError,
@@ -156302,13 +156507,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156302
156507
  loadAdMobRewardedAd: _GoogleAdMob.loadAdMobRewardedAd,
156303
156508
  showAdMobRewardedAd: _GoogleAdMob.showAdMobRewardedAd
156304
156509
  }),
156305
- constantHandlerMap: _objectSpread(_objectSpread(_objectSpread({}, bedrockConstantBridges), constant_bridges_exports), {}, {
156510
+ constantHandlerMap: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bedrockConstantBridges), constant_bridges_exports), {}, {
156306
156511
  getSafeAreaTop: function getSafeAreaTop() {
156307
156512
  return top;
156308
156513
  },
156309
156514
  getSafeAreaBottom: function getSafeAreaBottom() {
156310
156515
  return bottom;
156311
- },
156516
+ }
156517
+ }, Object.fromEntries(Object.entries(global2).map(function (_ref30) {
156518
+ var _ref31 = _slicedToArray(_ref30, 2),
156519
+ key = _ref31[0],
156520
+ value = _ref31[1];
156521
+ return [key, function () {
156522
+ return value;
156523
+ }];
156524
+ }))), {}, {
156312
156525
  loadAdMobInterstitialAd_isSupported: _GoogleAdMob.loadAdMobInterstitialAd.isSupported,
156313
156526
  showAdMobInterstitialAd_isSupported: _GoogleAdMob.showAdMobInterstitialAd.isSupported,
156314
156527
  loadAdMobRewardedAd_isSupported: _GoogleAdMob.loadAdMobRewardedAd.isSupported,
@@ -156325,7 +156538,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156325
156538
  iapGetProductItemList: _IAP.getProductItemList
156326
156539
  })
156327
156540
  });
156328
- var baseProps = (0, import_react6.useMemo)(function () {
156541
+ var baseProps = (0, import_react7.useMemo)(function () {
156329
156542
  switch (type) {
156330
156543
  case "partner":
156331
156544
  {
@@ -156356,17 +156569,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156356
156569
  }, [type, props]);
156357
156570
  var BaseWebView = WEBVIEW_TYPES[type];
156358
156571
  var webViewDebuggingEnabled = operationalEnvironment === "sandbox";
156359
- var handleNavigationStateChange = (0, import_react6.useCallback)(function (event) {
156572
+ var handleNavigationStateChange = (0, import_react7.useCallback)(function (event) {
156360
156573
  if (event.url) {
156361
156574
  trackScreen(event.url);
156362
156575
  }
156363
156576
  }, []);
156577
+ var userAgent = _useCreateUserAgent({
156578
+ colorPreference: "light"
156579
+ });
156364
156580
  return (0, import_jsx_runtime5.jsx)(BaseWebView, _objectSpread(_objectSpread(_objectSpread({
156365
156581
  ref: handler.ref
156366
156582
  }, props), baseProps), {}, {
156367
156583
  source: {
156368
- uri: uri
156584
+ uri: uri,
156585
+ headers: {
156586
+ "User-Agent": userAgent
156587
+ }
156369
156588
  },
156589
+ userAgent: import_react_native16.Platform.OS === "ios" ? userAgent : void 0,
156370
156590
  sharedCookiesEnabled: true,
156371
156591
  webviewDebuggingEnabled: webViewDebuggingEnabled,
156372
156592
  thirdPartyCookiesEnabled: true,
@@ -156382,33 +156602,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156382
156602
  }
156383
156603
  return value;
156384
156604
  }
156385
- var import_react7 = _$$_REQUIRE(_dependencyMap[3], "react");
156386
- var import_react_native_bedrock12 = _$$_REQUIRE(_dependencyMap[2], "react-native-bedrock");
156387
- function _useGeolocation(_ref25) {
156388
- var accuracy = _ref25.accuracy,
156389
- distanceInterval = _ref25.distanceInterval,
156390
- timeInterval = _ref25.timeInterval;
156391
- var isVisible = (0, import_react_native_bedrock12.useVisibility)();
156392
- var _ref26 = (0, import_react7.useState)(null),
156393
- _ref27 = _slicedToArray(_ref26, 2),
156394
- location = _ref27[0],
156395
- setLocation = _ref27[1];
156396
- (0, import_react7.useEffect)(function () {
156397
- if (!isVisible) {
156398
- return;
156399
- }
156400
- return _startUpdateLocation({
156401
- options: {
156402
- accuracy: accuracy,
156403
- distanceInterval: distanceInterval,
156404
- timeInterval: timeInterval
156405
- },
156406
- onEvent: setLocation,
156407
- onError: console.error
156408
- });
156409
- }, [accuracy, distanceInterval, timeInterval, isVisible]);
156410
- return location;
156411
- }
156412
156605
  var Accuracy2 = function (Accuracy3) {
156413
156606
  Accuracy3[Accuracy3["Lowest"] = 1] = "Lowest";
156414
156607
  Accuracy3[Accuracy3["Low"] = 2] = "Low";
@@ -156457,6 +156650,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
156457
156650
  setClipboardText: _setClipboardText,
156458
156651
  setDeviceOrientation: _setDeviceOrientation,
156459
156652
  startUpdateLocation: _startUpdateLocation,
156653
+ useCreateUserAgent: _useCreateUserAgent,
156460
156654
  useGeolocation: _useGeolocation
156461
156655
  }, _$$_REQUIRE(_dependencyMap[0], "@apps-in-toss/analytics")));
156462
156656
  },1071,[1072,1073,1,8,11,49,2248,2249,2250,2218,2235,683,5],"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.cjs");
@@ -224181,7 +224375,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
224181
224375
  }
224182
224376
  },2203,[509,8,11,49],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/PlatformPressable.tsx");
224183
224377
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
224184
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
224378
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
224185
224379
  "__packager_asset": true,
224186
224380
  "httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets",
224187
224381
  "width": 12,
@@ -224193,7 +224387,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
224193
224387
  });
224194
224388
  },2204,[417],"../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets/back-icon.png");
224195
224389
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
224196
- module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/line0/Dev/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
224390
+ module.exports = _$$_REQUIRE(_dependencyMap[0], "/Users/geunhyeok.lee/workspace/frontend-bedrock/.yarn/cache/@react-native-bedrock-mpack-next-npm-0.0.25-382cd22a0f-6b37accd87.zip/node_modules/@react-native-bedrock/mpack-next/dist/metro/bedrockAssetRegistry.js").registerAsset({
224197
224391
  "__packager_asset": true,
224198
224392
  "httpServerLocation": "/assets/../../../.yarn/__virtual__/@react-navigation-elements-virtual-e6a9838d2a/0/cache/@react-navigation-elements-npm-1.3.9-f0da2fec1d-0c791f1043.zip/node_modules/@react-navigation/elements/src/assets",
224199
224393
  "width": 50,