@apps-in-toss/web-framework 1.0.3 → 1.1.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.
@@ -11122,6 +11122,111 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11122
11122
  }
11123
11123
  });
11124
11124
 
11125
+ // ../types/dist/index.js
11126
+ var PermissionError, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, OpenCameraPermissionError, GetCurrentLocationPermissionError, GetClipboardTextPermissionError, SetClipboardTextPermissionError;
11127
+ var init_dist4 = __esm({
11128
+ "../types/dist/index.js"() {
11129
+ "use strict";
11130
+ init_class_call_check();
11131
+ init_inherits();
11132
+ init_wrap_native_super();
11133
+ init_create_super();
11134
+ PermissionError = /* @__PURE__ */ function(Error1) {
11135
+ "use strict";
11136
+ _inherits(PermissionError2, Error1);
11137
+ var _super = _create_super(PermissionError2);
11138
+ function PermissionError2(param) {
11139
+ var methodName = param.methodName, message = param.message;
11140
+ _class_call_check(this, PermissionError2);
11141
+ var _this;
11142
+ _this = _super.call(this);
11143
+ _this.name = "".concat(methodName, " permission error");
11144
+ _this.message = message;
11145
+ return _this;
11146
+ }
11147
+ return PermissionError2;
11148
+ }(_wrap_native_super(Error));
11149
+ FetchAlbumPhotosPermissionError = /* @__PURE__ */ function(PermissionError2) {
11150
+ "use strict";
11151
+ _inherits(FetchAlbumPhotosPermissionError2, PermissionError2);
11152
+ var _super = _create_super(FetchAlbumPhotosPermissionError2);
11153
+ function FetchAlbumPhotosPermissionError2() {
11154
+ _class_call_check(this, FetchAlbumPhotosPermissionError2);
11155
+ return _super.call(this, {
11156
+ methodName: "fetchAlbumPhotos",
11157
+ message: "\uC0AC\uC9C4\uCCA9 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11158
+ });
11159
+ }
11160
+ return FetchAlbumPhotosPermissionError2;
11161
+ }(PermissionError);
11162
+ FetchContactsPermissionError = /* @__PURE__ */ function(PermissionError2) {
11163
+ "use strict";
11164
+ _inherits(FetchContactsPermissionError2, PermissionError2);
11165
+ var _super = _create_super(FetchContactsPermissionError2);
11166
+ function FetchContactsPermissionError2() {
11167
+ _class_call_check(this, FetchContactsPermissionError2);
11168
+ return _super.call(this, {
11169
+ methodName: "fetchContacts",
11170
+ message: "\uC5F0\uB77D\uCC98 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11171
+ });
11172
+ }
11173
+ return FetchContactsPermissionError2;
11174
+ }(PermissionError);
11175
+ OpenCameraPermissionError = /* @__PURE__ */ function(PermissionError2) {
11176
+ "use strict";
11177
+ _inherits(OpenCameraPermissionError2, PermissionError2);
11178
+ var _super = _create_super(OpenCameraPermissionError2);
11179
+ function OpenCameraPermissionError2() {
11180
+ _class_call_check(this, OpenCameraPermissionError2);
11181
+ return _super.call(this, {
11182
+ methodName: "openCamera",
11183
+ message: "\uCE74\uBA54\uB77C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11184
+ });
11185
+ }
11186
+ return OpenCameraPermissionError2;
11187
+ }(PermissionError);
11188
+ GetCurrentLocationPermissionError = /* @__PURE__ */ function(PermissionError2) {
11189
+ "use strict";
11190
+ _inherits(GetCurrentLocationPermissionError2, PermissionError2);
11191
+ var _super = _create_super(GetCurrentLocationPermissionError2);
11192
+ function GetCurrentLocationPermissionError2() {
11193
+ _class_call_check(this, GetCurrentLocationPermissionError2);
11194
+ return _super.call(this, {
11195
+ methodName: "getCurrentLocation",
11196
+ message: "\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11197
+ });
11198
+ }
11199
+ return GetCurrentLocationPermissionError2;
11200
+ }(PermissionError);
11201
+ GetClipboardTextPermissionError = /* @__PURE__ */ function(PermissionError2) {
11202
+ "use strict";
11203
+ _inherits(GetClipboardTextPermissionError2, PermissionError2);
11204
+ var _super = _create_super(GetClipboardTextPermissionError2);
11205
+ function GetClipboardTextPermissionError2() {
11206
+ _class_call_check(this, GetClipboardTextPermissionError2);
11207
+ return _super.call(this, {
11208
+ methodName: "getClipboardText",
11209
+ message: "\uD074\uB9BD\uBCF4\uB4DC \uC77D\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11210
+ });
11211
+ }
11212
+ return GetClipboardTextPermissionError2;
11213
+ }(PermissionError);
11214
+ SetClipboardTextPermissionError = /* @__PURE__ */ function(PermissionError2) {
11215
+ "use strict";
11216
+ _inherits(SetClipboardTextPermissionError2, PermissionError2);
11217
+ var _super = _create_super(SetClipboardTextPermissionError2);
11218
+ function SetClipboardTextPermissionError2() {
11219
+ _class_call_check(this, SetClipboardTextPermissionError2);
11220
+ return _super.call(this, {
11221
+ methodName: "setClipboardText",
11222
+ message: "\uD074\uB9BD\uBCF4\uB4DC \uC4F0\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11223
+ });
11224
+ }
11225
+ return SetClipboardTextPermissionError2;
11226
+ }(PermissionError);
11227
+ }
11228
+ });
11229
+
11125
11230
  // ../../.yarn/cache/es-toolkit-npm-1.39.3-b94f623c91-1c85e518b1.zip/node_modules/es-toolkit/dist/function/noop.mjs
11126
11231
  function noop3() {
11127
11232
  }
@@ -11131,24 +11236,24 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11131
11236
  });
11132
11237
 
11133
11238
  // ../../.yarn/cache/es-toolkit-npm-1.39.3-b94f623c91-1c85e518b1.zip/node_modules/es-toolkit/dist/index.mjs
11134
- var init_dist4 = __esm({
11239
+ var init_dist5 = __esm({
11135
11240
  "../../.yarn/cache/es-toolkit-npm-1.39.3-b94f623c91-1c85e518b1.zip/node_modules/es-toolkit/dist/index.mjs"() {
11136
11241
  init_noop2();
11137
11242
  }
11138
11243
  });
11139
11244
 
11140
11245
  // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/dist/index.js
11141
- function getPermission(permission) {
11142
- return AppsInTossModule.getPermission(permission);
11143
- }
11144
11246
  function openPermissionDialog(permission) {
11145
11247
  return AppsInTossModule.openPermissionDialog(permission);
11146
11248
  }
11249
+ function getPermission(permission) {
11250
+ return AppsInTossModule.getPermission(permission);
11251
+ }
11147
11252
  function requestPermission(permission) {
11148
11253
  return _requestPermission.apply(this, arguments);
11149
11254
  }
11150
11255
  function _requestPermission() {
11151
- _requestPermission = // src/AppsInTossModule/native-modules/requestPermission.ts
11256
+ _requestPermission = // src/AppsInTossModule/native-modules/permissions/requestPermission.ts
11152
11257
  _async_to_generator(function(permission) {
11153
11258
  var permissionStatus;
11154
11259
  return __generator(this, function(_state) {
@@ -11201,7 +11306,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11201
11306
  "onError"
11202
11307
  ]);
11203
11308
  var _registerCallbacks = registerCallbacks(appBridgeCallbacks), callbackMap = _registerCallbacks.callbackMap, unregisterAll = _registerCallbacks.unregisterAll;
11204
- var promise = AppsInTossModuleInstance[methodName]({
11309
+ var method = AppsInTossModuleInstance[methodName];
11310
+ if (method == null) {
11311
+ onError2(new Error("'".concat(methodName, "' is not defined in AppsInTossModule")));
11312
+ return unregisterAll;
11313
+ }
11314
+ var promise = method({
11205
11315
  params,
11206
11316
  callbacks: callbackMap
11207
11317
  });
@@ -11252,6 +11362,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11252
11362
  function getCallbackIds() {
11253
11363
  return Array.from(INTERNAL__callbacks.keys());
11254
11364
  }
11365
+ function getOperationalEnvironment() {
11366
+ return AppsInTossModule.operationalEnvironment;
11367
+ }
11255
11368
  function isMinVersionSupported(minVersions) {
11256
11369
  var operationalEnvironment2 = AppsInTossModule.operationalEnvironment;
11257
11370
  if (operationalEnvironment2 === "sandbox") {
@@ -11271,12 +11384,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11271
11384
  }
11272
11385
  return compareVersions(currentVersion, minVersion) >= 0;
11273
11386
  }
11274
- function onVisibilityChangedByTransparentServiceWeb(eventParams) {
11275
- return appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
11276
- }
11277
- function getOperationalEnvironment() {
11278
- return AppsInTossModule.operationalEnvironment;
11279
- }
11280
11387
  function loadAdMobInterstitialAd(params) {
11281
11388
  if (!loadAdMobInterstitialAd.isSupported()) {
11282
11389
  params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
@@ -11534,6 +11641,46 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11534
11641
  });
11535
11642
  return _eventLog.apply(this, arguments);
11536
11643
  }
11644
+ function createPermissionFunction(param) {
11645
+ var handler = param.handler, permission = param.permission, error = param.error;
11646
+ var permissionFunction = function() {
11647
+ var _ref = _async_to_generator(function() {
11648
+ var _len, args, _key, permissionStatus;
11649
+ var _arguments = arguments;
11650
+ return __generator(this, function(_state) {
11651
+ switch (_state.label) {
11652
+ case 0:
11653
+ for (_len = _arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11654
+ args[_key] = _arguments[_key];
11655
+ }
11656
+ return [
11657
+ 4,
11658
+ requestPermission(permission)
11659
+ ];
11660
+ case 1:
11661
+ permissionStatus = _state.sent();
11662
+ if (permissionStatus === "denied") {
11663
+ throw new error();
11664
+ }
11665
+ return [
11666
+ 2,
11667
+ handler.apply(void 0, _to_consumable_array(args))
11668
+ ];
11669
+ }
11670
+ });
11671
+ });
11672
+ return function permissionFunction2() {
11673
+ return _ref.apply(this, arguments);
11674
+ };
11675
+ }();
11676
+ permissionFunction.getPermission = function() {
11677
+ return getPermission(permission);
11678
+ };
11679
+ permissionFunction.openPermissionDialog = function() {
11680
+ return openPermissionDialog(permission);
11681
+ };
11682
+ return permissionFunction;
11683
+ }
11537
11684
  function getTossAppVersion() {
11538
11685
  return AppsInTossModule.tossAppVersion;
11539
11686
  }
@@ -11627,6 +11774,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11627
11774
  });
11628
11775
  return _getGameCenterGameProfile.apply(this, arguments);
11629
11776
  }
11777
+ function startUpdateLocation(eventParams) {
11778
+ return appsInTossEvent.addEventListener("updateLocationEvent", eventParams);
11779
+ }
11780
+ function onVisibilityChangedByTransparentServiceWeb(eventParams) {
11781
+ return appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
11782
+ }
11630
11783
  function setIosSwipeGestureEnabled(options) {
11631
11784
  return _setIosSwipeGestureEnabled.apply(this, arguments);
11632
11785
  }
@@ -11667,8 +11820,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11667
11820
  }
11668
11821
  });
11669
11822
  }
11670
- var import_react_native43, import_react_native44, import_react_native47, import_react_native49, import_react_native50, import_react_native51, import_react_native52, import_react_native53, import_react_native54, EntryMessageExitedEvent, HomeIconButtonClickHandleEvent, Module, AppsInTossModuleInstance, AppsInTossModule, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2, UNSUPPORTED_ERROR_MESSAGE2, ENVIRONMENT2, IAP, Storage, GAME_CENTER_MIN_VERSION, GoogleAdMob, BedrockModule, BedrockCoreModule, TossCoreModule, INTERNAL__module;
11671
- var init_dist5 = __esm({
11823
+ var import_react_native43, import_react_native44, import_react_native47, import_react_native49, import_react_native50, import_react_native51, import_react_native52, import_react_native53, import_react_native54, EntryMessageExitedEvent, HomeIconButtonClickHandleEvent, Module, AppsInTossModuleInstance, AppsInTossModule, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2, UNSUPPORTED_ERROR_MESSAGE2, ENVIRONMENT2, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, fetchAlbumPhotos, fetchContacts, getClipboardText, getCurrentLocation, setClipboardText, openCamera, IAP, Storage, GAME_CENTER_MIN_VERSION, GoogleAdMob, BedrockModule, BedrockCoreModule, TossCoreModule, INTERNAL__module;
11824
+ var init_dist6 = __esm({
11672
11825
  "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/dist/index.js"() {
11673
11826
  "use strict";
11674
11827
  init_async_to_generator();
@@ -11686,15 +11839,23 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11686
11839
  init_src3();
11687
11840
  init_src3();
11688
11841
  init_src3();
11842
+ init_dist4();
11689
11843
  init_src3();
11690
11844
  import_react_native43 = __toESM(require_react_native(), 1);
11691
11845
  import_react_native44 = __toESM(require_react_native(), 1);
11692
11846
  init_src3();
11693
11847
  init_src3();
11848
+ init_dist5();
11694
11849
  import_react_native47 = __toESM(require_react_native(), 1);
11850
+ init_dist5();
11851
+ init_dist4();
11852
+ init_dist4();
11853
+ init_dist4();
11854
+ init_dist4();
11695
11855
  init_dist4();
11696
11856
  init_dist4();
11697
11857
  init_src3();
11858
+ init_dist4();
11698
11859
  import_react_native49 = __toESM(require_react_native(), 1);
11699
11860
  import_react_native50 = __toESM(require_react_native(), 1);
11700
11861
  import_react_native51 = __toESM(require_react_native(), 1);
@@ -11792,7 +11953,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11792
11953
  access: "access"
11793
11954
  }).then(function(permissionStatus) {
11794
11955
  if (permissionStatus === "denied") {
11795
- onError2(new Error("\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."));
11956
+ onError2(new GetCurrentLocationPermissionError());
11796
11957
  return;
11797
11958
  }
11798
11959
  void AppsInTossModuleInstance.startUpdateLocation(options).catch(onError2);
@@ -12016,6 +12177,121 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
12016
12177
  ENVIRONMENT2 = getOperationalEnvironment();
12017
12178
  loadAppsInTossAdMob.isSupported = createIsSupported2();
12018
12179
  showAppsInTossAdMob.isSupported = createIsSupported2();
12180
+ DEFAULT_MAX_COUNT = 10;
12181
+ DEFAULT_MAX_WIDTH = 1024;
12182
+ fetchAlbumPhotos = createPermissionFunction({
12183
+ handler: function() {
12184
+ var _ref = _async_to_generator(function(options) {
12185
+ var _options_maxCount, _options_maxWidth;
12186
+ return __generator(this, function(_state) {
12187
+ return [
12188
+ 2,
12189
+ AppsInTossModule.fetchAlbumPhotos(_object_spread_props(_object_spread({}, options), {
12190
+ maxCount: (_options_maxCount = options === null || options === void 0 ? void 0 : options.maxCount) !== null && _options_maxCount !== void 0 ? _options_maxCount : DEFAULT_MAX_COUNT,
12191
+ maxWidth: (_options_maxWidth = options === null || options === void 0 ? void 0 : options.maxWidth) !== null && _options_maxWidth !== void 0 ? _options_maxWidth : DEFAULT_MAX_WIDTH
12192
+ }))
12193
+ ];
12194
+ });
12195
+ });
12196
+ return function(options) {
12197
+ return _ref.apply(this, arguments);
12198
+ };
12199
+ }(),
12200
+ permission: {
12201
+ name: "photos",
12202
+ access: "read"
12203
+ },
12204
+ error: FetchAlbumPhotosPermissionError
12205
+ });
12206
+ fetchContacts = createPermissionFunction({
12207
+ handler: function() {
12208
+ var _ref = _async_to_generator(function(options) {
12209
+ var contacts, _contacts_nextOffset;
12210
+ return __generator(this, function(_state) {
12211
+ switch (_state.label) {
12212
+ case 0:
12213
+ return [
12214
+ 4,
12215
+ AppsInTossModule.fetchContacts(options)
12216
+ ];
12217
+ case 1:
12218
+ contacts = _state.sent();
12219
+ return [
12220
+ 2,
12221
+ {
12222
+ result: contacts.result,
12223
+ nextOffset: (_contacts_nextOffset = contacts.nextOffset) !== null && _contacts_nextOffset !== void 0 ? _contacts_nextOffset : null,
12224
+ done: contacts.done
12225
+ }
12226
+ ];
12227
+ }
12228
+ });
12229
+ });
12230
+ return function(options) {
12231
+ return _ref.apply(this, arguments);
12232
+ };
12233
+ }(),
12234
+ permission: {
12235
+ name: "contacts",
12236
+ access: "read"
12237
+ },
12238
+ error: FetchContactsPermissionError
12239
+ });
12240
+ getClipboardText = createPermissionFunction({
12241
+ handler: function() {
12242
+ return AppsInTossModule.getClipboardText({});
12243
+ },
12244
+ permission: {
12245
+ name: "clipboard",
12246
+ access: "read"
12247
+ },
12248
+ error: GetClipboardTextPermissionError
12249
+ });
12250
+ getCurrentLocation = createPermissionFunction({
12251
+ handler: function() {
12252
+ var _ref = _async_to_generator(function(options) {
12253
+ return __generator(this, function(_state) {
12254
+ return [
12255
+ 2,
12256
+ AppsInTossModule.getCurrentLocation(options)
12257
+ ];
12258
+ });
12259
+ });
12260
+ return function(options) {
12261
+ return _ref.apply(this, arguments);
12262
+ };
12263
+ }(),
12264
+ permission: {
12265
+ name: "geolocation",
12266
+ access: "access"
12267
+ },
12268
+ error: GetCurrentLocationPermissionError
12269
+ });
12270
+ setClipboardText = createPermissionFunction({
12271
+ handler: function(text) {
12272
+ return AppsInTossModule.setClipboardText({
12273
+ text
12274
+ });
12275
+ },
12276
+ permission: {
12277
+ name: "clipboard",
12278
+ access: "write"
12279
+ },
12280
+ error: SetClipboardTextPermissionError
12281
+ });
12282
+ openCamera = createPermissionFunction({
12283
+ handler: function(options) {
12284
+ return AppsInTossModule.openCamera(_object_spread({
12285
+ base64: false,
12286
+ maxWidth: 1024
12287
+ }, options));
12288
+ },
12289
+ permission: {
12290
+ name: "camera",
12291
+ access: "access"
12292
+ },
12293
+ error: OpenCameraPermissionError
12294
+ });
12019
12295
  IAP = {
12020
12296
  createOneTimePurchaseOrder,
12021
12297
  getProductItemList
@@ -12038,6 +12314,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
12038
12314
  loadAppsInTossAdMob,
12039
12315
  showAppsInTossAdMob
12040
12316
  };
12317
+ startUpdateLocation.openPermissionDialog = getCurrentLocation.openPermissionDialog;
12318
+ startUpdateLocation.getPermission = getCurrentLocation.getPermission;
12041
12319
  BedrockModule = import_react_native49.NativeModules.BedrockModule;
12042
12320
  BedrockCoreModule = import_react_native53.NativeModules.BedrockCoreModule;
12043
12321
  TossCoreModule = import_react_native54.NativeModules.TossCoreModule;
@@ -39750,7 +40028,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
39750
40028
  return josa2.split("/")[index];
39751
40029
  }
39752
40030
  var _JASO_HANGUL_NFD, COMPLETE_HANGUL_START_CHARCODE, COMPLETE_HANGUL_END_CHARCODE, NUMBER_OF_JONGSEONG, NUMBER_OF_JUNGSEONG, DISASSEMBLED_CONSONANTS_BY_CONSONANT, DISASSEMBLED_VOWELS_BY_VOWEL, CHOSEONGS, JUNSEONGS, JONGSEONGS, HANGUL_DIGITS, HANGUL_DIGITS_MAX, JASO_HANGUL_NFD, EXTRACT_CHOSEONG_REGEX, CHOOSE_NFD_CHOSEONG_REGEX, \uB85C_\uC870\uC0AC;
39753
- var init_dist6 = __esm({
40031
+ var init_dist7 = __esm({
39754
40032
  "../../.yarn/cache/es-hangul-npm-2.3.2-49f75d7fcc-ff230ae92f.zip/node_modules/es-hangul/dist/index.mjs"() {
39755
40033
  init_sliced_to_array();
39756
40034
  init_to_consumable_array();
@@ -40475,7 +40753,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
40475
40753
  init_to_consumable_array();
40476
40754
  import_jsx_runtime210 = __toESM(require_jsx_runtime());
40477
40755
  init_esm6();
40478
- init_dist6();
40756
+ init_dist7();
40479
40757
  import_react205 = __toESM(require_react());
40480
40758
  import_react_native185 = __toESM(require_react_native());
40481
40759
  init_usePreservedCallback2();
@@ -41131,29 +41409,29 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
41131
41409
  }
41132
41410
  });
41133
41411
 
41134
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getPermission.ts
41135
- function getPermission2(permission) {
41136
- return AppsInTossModule2.getPermission(permission);
41412
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/openPermissionDialog.ts
41413
+ function openPermissionDialog2(permission) {
41414
+ return AppsInTossModule2.openPermissionDialog(permission);
41137
41415
  }
41138
- var init_getPermission = __esm({
41139
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getPermission.ts"() {
41416
+ var init_openPermissionDialog = __esm({
41417
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/openPermissionDialog.ts"() {
41140
41418
  "use strict";
41141
41419
  init_AppsInTossModule();
41142
41420
  }
41143
41421
  });
41144
41422
 
41145
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/openPermissionDialog.ts
41146
- function openPermissionDialog2(permission) {
41147
- return AppsInTossModule2.openPermissionDialog(permission);
41423
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getPermission.ts
41424
+ function getPermission2(permission) {
41425
+ return AppsInTossModule2.getPermission(permission);
41148
41426
  }
41149
- var init_openPermissionDialog = __esm({
41150
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/openPermissionDialog.ts"() {
41427
+ var init_getPermission = __esm({
41428
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getPermission.ts"() {
41151
41429
  "use strict";
41152
41430
  init_AppsInTossModule();
41153
41431
  }
41154
41432
  });
41155
41433
 
41156
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/requestPermission.ts
41434
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/requestPermission.ts
41157
41435
  function requestPermission2(permission) {
41158
41436
  return _requestPermission2.apply(this, arguments);
41159
41437
  }
@@ -41191,300 +41469,255 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
41191
41469
  return _requestPermission2.apply(this, arguments);
41192
41470
  }
41193
41471
  var init_requestPermission = __esm({
41194
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/requestPermission.ts"() {
41472
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/requestPermission.ts"() {
41195
41473
  "use strict";
41196
41474
  init_async_to_generator();
41197
41475
  init_ts_generator();
41198
- init_getPermission();
41199
41476
  init_openPermissionDialog();
41477
+ init_getPermission();
41200
41478
  }
41201
41479
  });
41202
41480
 
41203
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/setClipboardText.ts
41204
- function setClipboardText(text) {
41205
- return _setClipboardText.apply(this, arguments);
41206
- }
41207
- function _setClipboardText() {
41208
- _setClipboardText = _async_to_generator(function(text) {
41209
- var permissionStatus;
41210
- return __generator(this, function(_state) {
41211
- switch (_state.label) {
41212
- case 0:
41213
- return [
41214
- 4,
41215
- requestPermission2({
41216
- name: "clipboard",
41217
- access: "write"
41218
- })
41219
- ];
41220
- case 1:
41221
- permissionStatus = _state.sent();
41222
- if (permissionStatus === "denied") {
41223
- throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC4F0\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41224
- }
41225
- return [
41226
- 2,
41227
- AppsInTossModule2.setClipboardText({
41228
- text
41229
- })
41230
- ];
41231
- }
41481
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/createPermissionFunction.ts
41482
+ function createPermissionFunction2(param) {
41483
+ var handler = param.handler, permission = param.permission, error = param.error;
41484
+ var permissionFunction = function() {
41485
+ var _ref = _async_to_generator(function() {
41486
+ var _len, args, _key, permissionStatus;
41487
+ var _arguments = arguments;
41488
+ return __generator(this, function(_state) {
41489
+ switch (_state.label) {
41490
+ case 0:
41491
+ for (_len = _arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
41492
+ args[_key] = _arguments[_key];
41493
+ }
41494
+ return [
41495
+ 4,
41496
+ requestPermission2(permission)
41497
+ ];
41498
+ case 1:
41499
+ permissionStatus = _state.sent();
41500
+ if (permissionStatus === "denied") {
41501
+ throw new error();
41502
+ }
41503
+ return [
41504
+ 2,
41505
+ handler.apply(void 0, _to_consumable_array(args))
41506
+ ];
41507
+ }
41508
+ });
41232
41509
  });
41233
- });
41234
- return _setClipboardText.apply(this, arguments);
41510
+ return function permissionFunction2() {
41511
+ return _ref.apply(this, arguments);
41512
+ };
41513
+ }();
41514
+ permissionFunction.getPermission = function() {
41515
+ return getPermission2(permission);
41516
+ };
41517
+ permissionFunction.openPermissionDialog = function() {
41518
+ return openPermissionDialog2(permission);
41519
+ };
41520
+ return permissionFunction;
41235
41521
  }
41236
- var init_setClipboardText = __esm({
41237
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/setClipboardText.ts"() {
41522
+ var init_createPermissionFunction = __esm({
41523
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/createPermissionFunction.ts"() {
41238
41524
  "use strict";
41239
41525
  init_async_to_generator();
41526
+ init_to_consumable_array();
41240
41527
  init_ts_generator();
41241
- init_AppsInTossModule();
41528
+ init_openPermissionDialog();
41242
41529
  init_requestPermission();
41530
+ init_getPermission();
41243
41531
  }
41244
41532
  });
41245
41533
 
41246
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getClipboardText.ts
41247
- function getClipboardText() {
41248
- return _getClipboardText.apply(this, arguments);
41249
- }
41250
- function _getClipboardText() {
41251
- _getClipboardText = _async_to_generator(function() {
41252
- var permissionStatus;
41253
- return __generator(this, function(_state) {
41254
- switch (_state.label) {
41255
- case 0:
41256
- return [
41257
- 4,
41258
- requestPermission2({
41259
- name: "clipboard",
41260
- access: "read"
41261
- })
41262
- ];
41263
- case 1:
41264
- permissionStatus = _state.sent();
41265
- if (permissionStatus === "denied") {
41266
- throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC77D\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41267
- }
41268
- return [
41269
- 2,
41270
- AppsInTossModule2.getClipboardText({})
41271
- ];
41272
- }
41534
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/setClipboardText/setClipboardText.ts
41535
+ var setClipboardText2;
41536
+ var init_setClipboardText = __esm({
41537
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/setClipboardText/setClipboardText.ts"() {
41538
+ "use strict";
41539
+ init_dist4();
41540
+ init_AppsInTossModule();
41541
+ init_createPermissionFunction();
41542
+ setClipboardText2 = createPermissionFunction2({
41543
+ handler: function(text) {
41544
+ return AppsInTossModule2.setClipboardText({
41545
+ text
41546
+ });
41547
+ },
41548
+ permission: {
41549
+ name: "clipboard",
41550
+ access: "write"
41551
+ },
41552
+ error: SetClipboardTextPermissionError
41273
41553
  });
41274
- });
41275
- return _getClipboardText.apply(this, arguments);
41276
- }
41554
+ }
41555
+ });
41556
+
41557
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/getClipboardText/getClipboardText.ts
41558
+ var getClipboardText2;
41277
41559
  var init_getClipboardText = __esm({
41278
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getClipboardText.ts"() {
41560
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/getClipboardText/getClipboardText.ts"() {
41279
41561
  "use strict";
41280
- init_async_to_generator();
41281
- init_ts_generator();
41562
+ init_dist4();
41282
41563
  init_AppsInTossModule();
41283
- init_requestPermission();
41564
+ init_createPermissionFunction();
41565
+ getClipboardText2 = createPermissionFunction2({
41566
+ handler: function() {
41567
+ return AppsInTossModule2.getClipboardText({});
41568
+ },
41569
+ permission: {
41570
+ name: "clipboard",
41571
+ access: "read"
41572
+ },
41573
+ error: GetClipboardTextPermissionError
41574
+ });
41284
41575
  }
41285
41576
  });
41286
41577
 
41287
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/fetchContacts.ts
41288
- function fetchContacts(options) {
41289
- return _fetchContacts.apply(this, arguments);
41290
- }
41291
- function _fetchContacts() {
41292
- _fetchContacts = _async_to_generator(function(options) {
41293
- var permissionStatus, contacts, _contacts_nextOffset;
41294
- return __generator(this, function(_state) {
41295
- switch (_state.label) {
41296
- case 0:
41297
- return [
41298
- 4,
41299
- requestPermission2({
41300
- name: "contacts",
41301
- access: "read"
41302
- })
41303
- ];
41304
- case 1:
41305
- permissionStatus = _state.sent();
41306
- if (permissionStatus === "denied") {
41307
- throw new Error("\uC5F0\uB77D\uCC98 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41308
- }
41309
- return [
41310
- 4,
41311
- AppsInTossModule2.fetchContacts(options)
41312
- ];
41313
- case 2:
41314
- contacts = _state.sent();
41315
- return [
41316
- 2,
41317
- {
41318
- result: contacts.result,
41319
- nextOffset: (_contacts_nextOffset = contacts.nextOffset) !== null && _contacts_nextOffset !== void 0 ? _contacts_nextOffset : null,
41320
- done: contacts.done
41321
- }
41322
- ];
41323
- }
41324
- });
41325
- });
41326
- return _fetchContacts.apply(this, arguments);
41327
- }
41578
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/fetchContacts/fetchContacts.ts
41579
+ var fetchContacts2;
41328
41580
  var init_fetchContacts = __esm({
41329
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/fetchContacts.ts"() {
41581
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/fetchContacts/fetchContacts.ts"() {
41330
41582
  "use strict";
41331
41583
  init_async_to_generator();
41332
41584
  init_ts_generator();
41585
+ init_dist4();
41333
41586
  init_AppsInTossModule();
41334
- init_requestPermission();
41587
+ init_createPermissionFunction();
41588
+ fetchContacts2 = createPermissionFunction2({
41589
+ handler: function() {
41590
+ var _ref = _async_to_generator(function(options) {
41591
+ var contacts, _contacts_nextOffset;
41592
+ return __generator(this, function(_state) {
41593
+ switch (_state.label) {
41594
+ case 0:
41595
+ return [
41596
+ 4,
41597
+ AppsInTossModule2.fetchContacts(options)
41598
+ ];
41599
+ case 1:
41600
+ contacts = _state.sent();
41601
+ return [
41602
+ 2,
41603
+ {
41604
+ result: contacts.result,
41605
+ nextOffset: (_contacts_nextOffset = contacts.nextOffset) !== null && _contacts_nextOffset !== void 0 ? _contacts_nextOffset : null,
41606
+ done: contacts.done
41607
+ }
41608
+ ];
41609
+ }
41610
+ });
41611
+ });
41612
+ return function(options) {
41613
+ return _ref.apply(this, arguments);
41614
+ };
41615
+ }(),
41616
+ permission: {
41617
+ name: "contacts",
41618
+ access: "read"
41619
+ },
41620
+ error: FetchContactsPermissionError
41621
+ });
41335
41622
  }
41336
41623
  });
41337
41624
 
41338
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/fetchAlbumPhotos.ts
41339
- function fetchAlbumPhotos(options) {
41340
- return _fetchAlbumPhotos.apply(this, arguments);
41341
- }
41342
- function _fetchAlbumPhotos() {
41343
- _fetchAlbumPhotos = _async_to_generator(function(options) {
41344
- var permissionStatus, _options_maxCount, _options_maxWidth, albumPhotos;
41345
- return __generator(this, function(_state) {
41346
- switch (_state.label) {
41347
- case 0:
41348
- return [
41349
- 4,
41350
- requestPermission2({
41351
- name: "photos",
41352
- access: "read"
41353
- })
41354
- ];
41355
- case 1:
41356
- permissionStatus = _state.sent();
41357
- if (permissionStatus === "denied") {
41358
- throw new Error("\uC0AC\uC9C4\uCCA9 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41359
- }
41360
- return [
41361
- 4,
41362
- AppsInTossModule2.fetchAlbumPhotos(_object_spread_props(_object_spread({}, options), {
41363
- maxCount: (_options_maxCount = options.maxCount) !== null && _options_maxCount !== void 0 ? _options_maxCount : DEFAULT_MAX_COUNT,
41364
- maxWidth: (_options_maxWidth = options.maxWidth) !== null && _options_maxWidth !== void 0 ? _options_maxWidth : DEFAULT_MAX_WIDTH
41365
- }))
41366
- ];
41367
- case 2:
41368
- albumPhotos = _state.sent();
41369
- return [
41370
- 2,
41371
- albumPhotos
41372
- ];
41373
- }
41374
- });
41375
- });
41376
- return _fetchAlbumPhotos.apply(this, arguments);
41377
- }
41378
- var DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH;
41625
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/fetchAlbumPhotos/fetchAlbumPhotos.ts
41626
+ var DEFAULT_MAX_COUNT2, DEFAULT_MAX_WIDTH2, fetchAlbumPhotos2;
41379
41627
  var init_fetchAlbumPhotos = __esm({
41380
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/fetchAlbumPhotos.ts"() {
41628
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/fetchAlbumPhotos/fetchAlbumPhotos.ts"() {
41381
41629
  "use strict";
41382
41630
  init_async_to_generator();
41383
41631
  init_object_spread();
41384
41632
  init_object_spread_props();
41385
41633
  init_ts_generator();
41634
+ init_dist4();
41386
41635
  init_AppsInTossModule();
41387
- init_requestPermission();
41388
- DEFAULT_MAX_COUNT = 10;
41389
- DEFAULT_MAX_WIDTH = 1024;
41636
+ init_createPermissionFunction();
41637
+ DEFAULT_MAX_COUNT2 = 10;
41638
+ DEFAULT_MAX_WIDTH2 = 1024;
41639
+ fetchAlbumPhotos2 = createPermissionFunction2({
41640
+ handler: function() {
41641
+ var _ref = _async_to_generator(function(options) {
41642
+ var _options_maxCount, _options_maxWidth;
41643
+ return __generator(this, function(_state) {
41644
+ return [
41645
+ 2,
41646
+ AppsInTossModule2.fetchAlbumPhotos(_object_spread_props(_object_spread({}, options), {
41647
+ maxCount: (_options_maxCount = options === null || options === void 0 ? void 0 : options.maxCount) !== null && _options_maxCount !== void 0 ? _options_maxCount : DEFAULT_MAX_COUNT2,
41648
+ maxWidth: (_options_maxWidth = options === null || options === void 0 ? void 0 : options.maxWidth) !== null && _options_maxWidth !== void 0 ? _options_maxWidth : DEFAULT_MAX_WIDTH2
41649
+ }))
41650
+ ];
41651
+ });
41652
+ });
41653
+ return function(options) {
41654
+ return _ref.apply(this, arguments);
41655
+ };
41656
+ }(),
41657
+ permission: {
41658
+ name: "photos",
41659
+ access: "read"
41660
+ },
41661
+ error: FetchAlbumPhotosPermissionError
41662
+ });
41390
41663
  }
41391
41664
  });
41392
41665
 
41393
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getCurrentLocation.ts
41394
- function getCurrentLocation(options) {
41395
- return _getCurrentLocation.apply(this, arguments);
41396
- }
41397
- function _getCurrentLocation() {
41398
- _getCurrentLocation = _async_to_generator(function(options) {
41399
- var permissionStatus, position;
41400
- return __generator(this, function(_state) {
41401
- switch (_state.label) {
41402
- case 0:
41403
- return [
41404
- 4,
41405
- requestPermission2({
41406
- name: "geolocation",
41407
- access: "access"
41408
- })
41409
- ];
41410
- case 1:
41411
- permissionStatus = _state.sent();
41412
- if (permissionStatus === "denied") {
41413
- throw new Error("\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41414
- }
41415
- return [
41416
- 4,
41417
- AppsInTossModule2.getCurrentLocation(options)
41418
- ];
41419
- case 2:
41420
- position = _state.sent();
41421
- return [
41422
- 2,
41423
- position
41424
- ];
41425
- }
41426
- });
41427
- });
41428
- return _getCurrentLocation.apply(this, arguments);
41429
- }
41666
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/getCurrentLocation/getCurrentLocation.ts
41667
+ var getCurrentLocation2;
41430
41668
  var init_getCurrentLocation = __esm({
41431
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getCurrentLocation.ts"() {
41669
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/getCurrentLocation/getCurrentLocation.ts"() {
41432
41670
  "use strict";
41433
41671
  init_async_to_generator();
41434
41672
  init_ts_generator();
41673
+ init_dist4();
41435
41674
  init_AppsInTossModule();
41436
- init_requestPermission();
41675
+ init_createPermissionFunction();
41676
+ getCurrentLocation2 = createPermissionFunction2({
41677
+ handler: function() {
41678
+ var _ref = _async_to_generator(function(options) {
41679
+ return __generator(this, function(_state) {
41680
+ return [
41681
+ 2,
41682
+ AppsInTossModule2.getCurrentLocation(options)
41683
+ ];
41684
+ });
41685
+ });
41686
+ return function(options) {
41687
+ return _ref.apply(this, arguments);
41688
+ };
41689
+ }(),
41690
+ permission: {
41691
+ name: "geolocation",
41692
+ access: "access"
41693
+ },
41694
+ error: GetCurrentLocationPermissionError
41695
+ });
41437
41696
  }
41438
41697
  });
41439
41698
 
41440
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/openCamera.ts
41441
- function openCamera(options) {
41442
- return _openCamera.apply(this, arguments);
41443
- }
41444
- function _openCamera() {
41445
- _openCamera = _async_to_generator(function(options) {
41446
- var permissionStatus, photo;
41447
- return __generator(this, function(_state) {
41448
- switch (_state.label) {
41449
- case 0:
41450
- return [
41451
- 4,
41452
- requestPermission2({
41453
- name: "camera",
41454
- access: "access"
41455
- })
41456
- ];
41457
- case 1:
41458
- permissionStatus = _state.sent();
41459
- if (permissionStatus === "denied") {
41460
- throw new Error("\uCE74\uBA54\uB77C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41461
- }
41462
- return [
41463
- 4,
41464
- AppsInTossModule2.openCamera(_object_spread({
41465
- base64: false,
41466
- maxWidth: 1024
41467
- }, options))
41468
- ];
41469
- case 2:
41470
- photo = _state.sent();
41471
- return [
41472
- 2,
41473
- photo
41474
- ];
41475
- }
41476
- });
41477
- });
41478
- return _openCamera.apply(this, arguments);
41479
- }
41699
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/openCamera/openCamera.ts
41700
+ var openCamera2;
41480
41701
  var init_openCamera = __esm({
41481
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/openCamera.ts"() {
41702
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/openCamera/openCamera.ts"() {
41482
41703
  "use strict";
41483
- init_async_to_generator();
41484
41704
  init_object_spread();
41485
- init_ts_generator();
41705
+ init_dist4();
41486
41706
  init_AppsInTossModule();
41487
- init_requestPermission();
41707
+ init_createPermissionFunction();
41708
+ openCamera2 = createPermissionFunction2({
41709
+ handler: function(options) {
41710
+ return AppsInTossModule2.openCamera(_object_spread({
41711
+ base64: false,
41712
+ maxWidth: 1024
41713
+ }, options));
41714
+ },
41715
+ permission: {
41716
+ name: "camera",
41717
+ access: "access"
41718
+ },
41719
+ error: OpenCameraPermissionError
41720
+ });
41488
41721
  }
41489
41722
  });
41490
41723
 
@@ -41974,19 +42207,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
41974
42207
  return eventLog2;
41975
42208
  },
41976
42209
  fetchAlbumPhotos: function() {
41977
- return fetchAlbumPhotos;
42210
+ return fetchAlbumPhotos2;
41978
42211
  },
41979
42212
  fetchContacts: function() {
41980
- return fetchContacts;
42213
+ return fetchContacts2;
41981
42214
  },
41982
42215
  generateHapticFeedback: function() {
41983
42216
  return generateHapticFeedback;
41984
42217
  },
41985
42218
  getClipboardText: function() {
41986
- return getClipboardText;
42219
+ return getClipboardText2;
41987
42220
  },
41988
42221
  getCurrentLocation: function() {
41989
- return getCurrentLocation;
42222
+ return getCurrentLocation2;
41990
42223
  },
41991
42224
  getGameCenterGameProfile: function() {
41992
42225
  return getGameCenterGameProfile2;
@@ -41994,23 +42227,32 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
41994
42227
  getNetworkStatus: function() {
41995
42228
  return getNetworkStatus;
41996
42229
  },
42230
+ getPermission: function() {
42231
+ return getPermission2;
42232
+ },
41997
42233
  getTossShareLink: function() {
41998
42234
  return getTossShareLink;
41999
42235
  },
42000
42236
  openCamera: function() {
42001
- return openCamera;
42237
+ return openCamera2;
42002
42238
  },
42003
42239
  openGameCenterLeaderboard: function() {
42004
42240
  return openGameCenterLeaderboard;
42005
42241
  },
42242
+ openPermissionDialog: function() {
42243
+ return openPermissionDialog2;
42244
+ },
42006
42245
  openURL: function() {
42007
42246
  return openURL2;
42008
42247
  },
42248
+ requestPermission: function() {
42249
+ return requestPermission2;
42250
+ },
42009
42251
  saveBase64Data: function() {
42010
42252
  return saveBase64Data;
42011
42253
  },
42012
42254
  setClipboardText: function() {
42013
- return setClipboardText;
42255
+ return setClipboardText2;
42014
42256
  },
42015
42257
  setDeviceOrientation: function() {
42016
42258
  return setDeviceOrientation;
@@ -42042,6 +42284,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42042
42284
  init_getNetworkStatus();
42043
42285
  init_setIosSwipeGestureEnabled();
42044
42286
  init_openURL2();
42287
+ init_openPermissionDialog();
42288
+ init_requestPermission();
42289
+ init_getPermission();
42045
42290
  init_setClipboardText();
42046
42291
  init_getClipboardText();
42047
42292
  init_fetchContacts();
@@ -42270,6 +42515,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42270
42515
  init_create_class();
42271
42516
  init_inherits();
42272
42517
  init_create_super();
42518
+ init_dist4();
42273
42519
  init_src3();
42274
42520
  init_AppsInTossModule();
42275
42521
  init_requestPermission();
@@ -42309,7 +42555,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42309
42555
  access: "access"
42310
42556
  }).then(function(permissionStatus) {
42311
42557
  if (permissionStatus === "denied") {
42312
- onError2(new Error("\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."));
42558
+ onError2(new GetCurrentLocationPermissionError());
42313
42559
  return;
42314
42560
  }
42315
42561
  void AppsInTossModuleInstance2.startUpdateLocation(options).catch(onError2);
@@ -42357,7 +42603,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42357
42603
  "onError"
42358
42604
  ]);
42359
42605
  var _registerCallbacks = registerCallbacks2(appBridgeCallbacks), callbackMap = _registerCallbacks.callbackMap, unregisterAll = _registerCallbacks.unregisterAll;
42360
- var promise = AppsInTossModuleInstance2[methodName]({
42606
+ var method = AppsInTossModuleInstance2[methodName];
42607
+ if (method == null) {
42608
+ onError2(new Error("'".concat(methodName, "' is not defined in AppsInTossModule")));
42609
+ return unregisterAll;
42610
+ }
42611
+ var promise = method({
42361
42612
  params,
42362
42613
  callbacks: callbackMap
42363
42614
  });
@@ -42573,25 +42824,267 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42573
42824
  }
42574
42825
  });
42575
42826
 
42576
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts
42577
- function startUpdateLocation(eventParams) {
42578
- return appsInTossEvent2.addEventListener("updateLocationEvent", eventParams);
42827
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts
42828
+ function loadAdMobInterstitialAd2(params) {
42829
+ if (!loadAdMobInterstitialAd2.isSupported()) {
42830
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
42831
+ return noop3;
42832
+ }
42833
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
42834
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("loadAdMobInterstitialAd", options, {
42835
+ onAdClicked: function() {
42836
+ onEvent({
42837
+ type: "clicked"
42838
+ });
42839
+ },
42840
+ onAdDismissed: function() {
42841
+ onEvent({
42842
+ type: "dismissed"
42843
+ });
42844
+ },
42845
+ onAdFailedToShow: function() {
42846
+ onEvent({
42847
+ type: "failedToShow"
42848
+ });
42849
+ },
42850
+ onAdImpression: function() {
42851
+ onEvent({
42852
+ type: "impression"
42853
+ });
42854
+ },
42855
+ onAdShow: function() {
42856
+ onEvent({
42857
+ type: "show"
42858
+ });
42859
+ },
42860
+ onSuccess: function(result) {
42861
+ return onEvent({
42862
+ type: "loaded",
42863
+ data: result
42864
+ });
42865
+ },
42866
+ onError: onError2
42867
+ });
42868
+ return unregisterCallbacks;
42579
42869
  }
42580
- var init_startUpdateLocation = __esm({
42581
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts"() {
42870
+ function showAdMobInterstitialAd2(params) {
42871
+ if (!showAdMobInterstitialAd2.isSupported()) {
42872
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
42873
+ return noop3;
42874
+ }
42875
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
42876
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("showAdMobInterstitialAd", options, {
42877
+ onSuccess: function() {
42878
+ return onEvent({
42879
+ type: "requested"
42880
+ });
42881
+ },
42882
+ onError: onError2
42883
+ });
42884
+ return unregisterCallbacks;
42885
+ }
42886
+ function loadAdMobRewardedAd2(params) {
42887
+ if (!loadAdMobRewardedAd2.isSupported()) {
42888
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
42889
+ return noop3;
42890
+ }
42891
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
42892
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("loadAdMobRewardedAd", options, {
42893
+ onAdClicked: function() {
42894
+ onEvent({
42895
+ type: "clicked"
42896
+ });
42897
+ },
42898
+ onAdDismissed: function() {
42899
+ onEvent({
42900
+ type: "dismissed"
42901
+ });
42902
+ },
42903
+ onAdFailedToShow: function() {
42904
+ onEvent({
42905
+ type: "failedToShow"
42906
+ });
42907
+ },
42908
+ onAdImpression: function() {
42909
+ onEvent({
42910
+ type: "impression"
42911
+ });
42912
+ },
42913
+ onAdShow: function() {
42914
+ onEvent({
42915
+ type: "show"
42916
+ });
42917
+ },
42918
+ onUserEarnedReward: function() {
42919
+ onEvent({
42920
+ type: "userEarnedReward"
42921
+ });
42922
+ },
42923
+ onSuccess: function(result) {
42924
+ return onEvent({
42925
+ type: "loaded",
42926
+ data: result
42927
+ });
42928
+ },
42929
+ onError: onError2
42930
+ });
42931
+ return unregisterCallbacks;
42932
+ }
42933
+ function showAdMobRewardedAd2(params) {
42934
+ if (!showAdMobRewardedAd2.isSupported()) {
42935
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
42936
+ return noop3;
42937
+ }
42938
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
42939
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("showAdMobRewardedAd", options, {
42940
+ onSuccess: function() {
42941
+ return onEvent({
42942
+ type: "requested"
42943
+ });
42944
+ },
42945
+ onError: onError2
42946
+ });
42947
+ return unregisterCallbacks;
42948
+ }
42949
+ function createIsSupported3() {
42950
+ return function() {
42951
+ if (ENVIRONMENT3 !== "toss") {
42952
+ return false;
42953
+ }
42954
+ return isMinVersionSupported2({
42955
+ android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3,
42956
+ ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3
42957
+ });
42958
+ };
42959
+ }
42960
+ var ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3;
42961
+ var init_googleAdMob = __esm({
42962
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts"() {
42582
42963
  "use strict";
42583
- init_appsInTossEvent();
42964
+ init_dist5();
42965
+ init_appBridge();
42966
+ init_getOperationalEnvironment();
42967
+ init_isMinVersionSupported();
42968
+ ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3 = "5.209.0";
42969
+ IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3 = "5.209.0";
42970
+ UNSUPPORTED_ERROR_MESSAGE3 = "This feature is not supported in the current environment";
42971
+ ENVIRONMENT3 = getOperationalEnvironment2();
42972
+ loadAdMobInterstitialAd2.isSupported = createIsSupported3();
42973
+ loadAdMobRewardedAd2.isSupported = createIsSupported3();
42974
+ showAdMobInterstitialAd2.isSupported = createIsSupported3();
42975
+ showAdMobRewardedAd2.isSupported = createIsSupported3();
42584
42976
  }
42585
42977
  });
42586
42978
 
42587
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts
42588
- function onVisibilityChangedByTransparentServiceWeb2(eventParams) {
42589
- return appsInTossEvent2.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
42979
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts
42980
+ function loadAppsInTossAdMob2(params) {
42981
+ if (!loadAppsInTossAdMob2.isSupported()) {
42982
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE4));
42983
+ return noop3;
42984
+ }
42985
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
42986
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("loadAppsInTossAdmob", options, {
42987
+ onSuccess: function(result) {
42988
+ return onEvent({
42989
+ type: "loaded",
42990
+ data: result
42991
+ });
42992
+ },
42993
+ onError: onError2
42994
+ });
42995
+ return unregisterCallbacks;
42590
42996
  }
42591
- var init_onVisibilityChangedByTransparentServiceWeb = __esm({
42592
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts"() {
42997
+ function showAppsInTossAdMob2(params) {
42998
+ if (!showAppsInTossAdMob2.isSupported()) {
42999
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE4));
43000
+ return noop3;
43001
+ }
43002
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
43003
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("showAppsInTossAdmob", options, {
43004
+ onAdClicked: function() {
43005
+ onEvent({
43006
+ type: "clicked"
43007
+ });
43008
+ },
43009
+ onAdDismissed: function() {
43010
+ onEvent({
43011
+ type: "dismissed"
43012
+ });
43013
+ },
43014
+ onAdFailedToShow: function() {
43015
+ onEvent({
43016
+ type: "failedToShow"
43017
+ });
43018
+ },
43019
+ onAdImpression: function() {
43020
+ onEvent({
43021
+ type: "impression"
43022
+ });
43023
+ },
43024
+ onAdShow: function() {
43025
+ onEvent({
43026
+ type: "show"
43027
+ });
43028
+ },
43029
+ onUserEarnedReward: function(data) {
43030
+ onEvent({
43031
+ type: "userEarnedReward",
43032
+ data
43033
+ });
43034
+ },
43035
+ onSuccess: function() {
43036
+ return onEvent({
43037
+ type: "requested"
43038
+ });
43039
+ },
43040
+ onError: onError2
43041
+ });
43042
+ return unregisterCallbacks;
43043
+ }
43044
+ function createIsSupported4() {
43045
+ return function() {
43046
+ if (ENVIRONMENT4 !== "toss") {
43047
+ return false;
43048
+ }
43049
+ return isMinVersionSupported2({
43050
+ android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION4,
43051
+ ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION4
43052
+ });
43053
+ };
43054
+ }
43055
+ var ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION4, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION4, UNSUPPORTED_ERROR_MESSAGE4, ENVIRONMENT4;
43056
+ var init_googleAdMobV2 = __esm({
43057
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts"() {
42593
43058
  "use strict";
42594
- init_appsInTossEvent();
43059
+ init_dist5();
43060
+ init_appBridge();
43061
+ init_getOperationalEnvironment();
43062
+ init_isMinVersionSupported();
43063
+ ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION4 = "5.227.0";
43064
+ IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION4 = "5.227.0";
43065
+ UNSUPPORTED_ERROR_MESSAGE4 = "This feature is not supported in the current environment";
43066
+ ENVIRONMENT4 = getOperationalEnvironment2();
43067
+ loadAppsInTossAdMob2.isSupported = createIsSupported4();
43068
+ showAppsInTossAdMob2.isSupported = createIsSupported4();
43069
+ }
43070
+ });
43071
+
43072
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/iap.ts
43073
+ var init_iap = __esm({
43074
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/iap.ts"() {
43075
+ "use strict";
43076
+ init_async_to_generator();
43077
+ init_ts_generator();
43078
+ init_AppsInTossModule();
43079
+ init_isMinVersionSupported();
43080
+ }
43081
+ });
43082
+
43083
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/storage.ts
43084
+ var init_storage = __esm({
43085
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/storage.ts"() {
43086
+ "use strict";
43087
+ init_AppsInTossModule();
42595
43088
  }
42596
43089
  });
42597
43090
 
@@ -42631,6 +43124,64 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42631
43124
  }
42632
43125
  });
42633
43126
 
43127
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/index.ts
43128
+ var init_native_modules2 = __esm({
43129
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/index.ts"() {
43130
+ "use strict";
43131
+ init_googleAdMob();
43132
+ init_googleAdMobV2();
43133
+ init_checkoutPayment();
43134
+ init_AppsInTossModule();
43135
+ init_AppsInTossModule();
43136
+ init_appLogin();
43137
+ init_eventLog();
43138
+ init_fetchAlbumPhotos();
43139
+ init_fetchContacts();
43140
+ init_getClipboardText();
43141
+ init_getCurrentLocation();
43142
+ init_setClipboardText();
43143
+ init_openCamera();
43144
+ init_getDeviceId();
43145
+ init_getOperationalEnvironment();
43146
+ init_getTossAppVersion();
43147
+ init_getTossShareLink();
43148
+ init_iap();
43149
+ init_isMinVersionSupported();
43150
+ init_saveBase64Data();
43151
+ init_setDeviceOrientation();
43152
+ init_storage();
43153
+ init_openGameCenterLeaderboard();
43154
+ init_getGameCenterGameProfile();
43155
+ init_submitGameCenterLeaderBoardScore();
43156
+ init_contactsViral();
43157
+ }
43158
+ });
43159
+
43160
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts
43161
+ function startUpdateLocation2(eventParams) {
43162
+ return appsInTossEvent2.addEventListener("updateLocationEvent", eventParams);
43163
+ }
43164
+ var init_startUpdateLocation = __esm({
43165
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts"() {
43166
+ "use strict";
43167
+ init_appsInTossEvent();
43168
+ init_native_modules2();
43169
+ startUpdateLocation2.openPermissionDialog = getCurrentLocation2.openPermissionDialog;
43170
+ startUpdateLocation2.getPermission = getCurrentLocation2.getPermission;
43171
+ }
43172
+ });
43173
+
43174
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts
43175
+ function onVisibilityChangedByTransparentServiceWeb2(eventParams) {
43176
+ return appsInTossEvent2.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
43177
+ }
43178
+ var init_onVisibilityChangedByTransparentServiceWeb = __esm({
43179
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts"() {
43180
+ "use strict";
43181
+ init_appsInTossEvent();
43182
+ }
43183
+ });
43184
+
42634
43185
  // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/event-bridges.ts
42635
43186
  var event_bridges_exports = {};
42636
43187
  __export(event_bridges_exports, {
@@ -42641,7 +43192,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42641
43192
  return onVisibilityChangedByTransparentServiceWeb2;
42642
43193
  },
42643
43194
  startUpdateLocation: function() {
42644
- return startUpdateLocation;
43195
+ return startUpdateLocation2;
42645
43196
  }
42646
43197
  });
42647
43198
  var init_event_bridges = __esm({
@@ -43548,7 +44099,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43548
44099
  var createHandleOnError = function(functionName, eventId) {
43549
44100
  return function(error) {
43550
44101
  var _ref_current;
43551
- (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript("\n window.__GRANITE_NATIVE_EMITTER.emit('".concat(functionName, "/onError/").concat(eventId, "', ").concat(JSON.stringify(error, null, 0), ");\n "));
44102
+ var serializedError = serializeError(error);
44103
+ (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript("\n window.__GRANITE_NATIVE_EMITTER.emit('".concat(functionName, "/onError/").concat(eventId, "', ").concat(serializedError, ");\n "));
43552
44104
  };
43553
44105
  };
43554
44106
  var $onMessage = (0, import_react223.useCallback)(
@@ -43953,8 +44505,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43953
44505
  ];
43954
44506
  });
43955
44507
  }),
43956
- /** internal */
43957
- openPermissionDialog: AppsInTossModule.openPermissionDialog,
44508
+ /** permissions */
44509
+ requestPermission: requestPermission2,
44510
+ openPermissionDialog: openPermissionDialog2,
44511
+ getPermission: getPermission2,
44512
+ getClipboardText: getClipboardText2,
44513
+ setClipboardText: setClipboardText2,
44514
+ fetchAlbumPhotos: fetchAlbumPhotos2,
44515
+ fetchContacts: fetchContacts2,
44516
+ getCurrentLocation: getCurrentLocation2,
44517
+ openCamera: openCamera2,
43958
44518
  /** Storage */
43959
44519
  getStorageItem: Storage.getItem,
43960
44520
  setStorageItem: Storage.setItem,
@@ -44051,7 +44611,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44051
44611
  }));
44052
44612
  }
44053
44613
  var import_react_native208, import_react210, import_react211, import_react212, import_react213, import_jsx_runtime215, import_react214, import_react_native216, import_react215, import_react216, import_react_native223, import_jsx_runtime216, import_jsx_runtime217, import_react217, import_jsx_runtime218, import_react218, import_react_native227, import_react219, import_react_native228, import_react220, import_react_native230, import_react221, import_jsx_runtime219, import_jsx_runtime220, import_jsx_runtime221, import_react222, import_jsx_runtime222, import_react223, import_react_native235, import_react224, import_jsx_runtime223, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, APP_BRIDGE_METHOD_NAME, AppsInToss, GAME_PROFILE_WEBVIEW_URL, GAME_CENTER_MIN_VERSION3, useGameProfileToast, DEFAULT_ERROR, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useGameCenterProfile, Z_INDEX, GameProfile, overlayStyle, GameWebView, PartnerWebView, globalEventListenerMap, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
44054
- var init_dist7 = __esm({
44614
+ var init_dist8 = __esm({
44055
44615
  "../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
44056
44616
  "use strict";
44057
44617
  init_async_to_generator();
@@ -44067,14 +44627,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44067
44627
  init_ts_generator();
44068
44628
  init_dist3();
44069
44629
  init_dist3();
44070
- init_dist5();
44630
+ init_dist6();
44071
44631
  init_src3();
44072
44632
  init_esm9();
44073
44633
  import_react_native208 = __toESM(require_react_native(), 1);
44074
- init_dist5();
44634
+ init_dist6();
44075
44635
  init_src3();
44076
44636
  import_react210 = __toESM(require_react(), 1);
44077
- init_dist5();
44637
+ init_dist6();
44078
44638
  init_src3();
44079
44639
  import_react211 = __toESM(require_react(), 1);
44080
44640
  init_src3();
@@ -44083,34 +44643,34 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44083
44643
  init_src3();
44084
44644
  import_react213 = __toESM(require_react(), 1);
44085
44645
  import_jsx_runtime215 = __toESM(require_jsx_runtime(), 1);
44086
- init_dist5();
44646
+ init_dist6();
44087
44647
  init_src3();
44088
44648
  init_esm9();
44089
44649
  init_private2();
44090
- init_dist6();
44650
+ init_dist7();
44091
44651
  import_react214 = __toESM(require_react(), 1);
44092
44652
  import_react_native216 = __toESM(require_react_native(), 1);
44093
- init_dist5();
44653
+ init_dist6();
44094
44654
  init_src3();
44095
- init_dist5();
44655
+ init_dist6();
44096
44656
  init_src3();
44097
44657
  init_esm9();
44098
44658
  init_private2();
44099
44659
  import_react215 = __toESM(require_react(), 1);
44100
- init_dist5();
44660
+ init_dist6();
44101
44661
  init_src3();
44102
- init_dist5();
44662
+ init_dist6();
44103
44663
  init_src3();
44104
44664
  init_esm9();
44105
44665
  import_react216 = __toESM(require_react(), 1);
44106
44666
  import_react_native223 = __toESM(require_react_native(), 1);
44107
44667
  import_jsx_runtime216 = __toESM(require_jsx_runtime(), 1);
44108
44668
  import_jsx_runtime217 = __toESM(require_jsx_runtime(), 1);
44109
- init_dist5();
44669
+ init_dist6();
44110
44670
  init_esm9();
44111
44671
  import_react217 = __toESM(require_react(), 1);
44112
44672
  import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
44113
- init_dist5();
44673
+ init_dist6();
44114
44674
  init_async_bridges();
44115
44675
  init_constant_bridges2();
44116
44676
  init_event_bridges();
@@ -44121,40 +44681,41 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44121
44681
  init_private2();
44122
44682
  import_react218 = __toESM(require_react(), 1);
44123
44683
  import_react_native227 = __toESM(require_react_native(), 1);
44124
- init_dist5();
44684
+ init_dist6();
44125
44685
  init_react_native_webview();
44126
44686
  import_react219 = __toESM(require_react(), 1);
44127
44687
  import_react_native228 = __toESM(require_react_native(), 1);
44128
- init_dist5();
44688
+ init_dist6();
44129
44689
  init_esm9();
44130
44690
  import_react220 = __toESM(require_react(), 1);
44131
44691
  import_react_native230 = __toESM(require_react_native(), 1);
44132
- init_dist5();
44692
+ init_dist6();
44133
44693
  init_src3();
44134
44694
  init_esm9();
44135
- init_dist6();
44695
+ init_dist7();
44136
44696
  import_react221 = __toESM(require_react(), 1);
44137
44697
  init_esm9();
44138
44698
  init_private2();
44139
44699
  import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
44140
44700
  init_src3();
44141
- init_dist5();
44701
+ init_dist6();
44142
44702
  import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
44143
44703
  import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
44144
44704
  init_react_native_webview();
44145
44705
  import_react222 = __toESM(require_react(), 1);
44146
44706
  import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
44147
44707
  import_react223 = __toESM(require_react(), 1);
44148
- init_dist5();
44708
+ init_dist6();
44149
44709
  import_react_native235 = __toESM(require_react_native(), 1);
44150
- init_dist5();
44710
+ init_dist6();
44151
44711
  init_src3();
44152
44712
  import_react224 = __toESM(require_react(), 1);
44153
- init_dist5();
44713
+ init_dist6();
44154
44714
  init_src3();
44155
44715
  import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
44156
44716
  init_dist3();
44157
- init_dist5();
44717
+ init_dist6();
44718
+ init_dist4();
44158
44719
  env = {
44159
44720
  getDeploymentId: function() {
44160
44721
  var _global___appsInToss;
@@ -44778,7 +45339,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44778
45339
  "react-native/pages/index.tsx"() {
44779
45340
  "use strict";
44780
45341
  import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
44781
- init_dist7();
45342
+ init_dist8();
44782
45343
  import_react_native238 = __toESM(require_react_native(), 1);
44783
45344
  }
44784
45345
  });
@@ -45370,7 +45931,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45370
45931
  (0, import_runtime.exposeModule)(__container, "./ServiceEntry", app_exports);
45371
45932
 
45372
45933
  // react-native/src/_app.tsx
45373
- init_dist7();
45934
+ init_dist8();
45374
45935
 
45375
45936
  // react-native/context.ts
45376
45937
  var files = /* @__PURE__ */ new Map();