@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.
@@ -11113,6 +11113,111 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11113
11113
  }
11114
11114
  });
11115
11115
 
11116
+ // ../types/dist/index.js
11117
+ var PermissionError, FetchAlbumPhotosPermissionError, FetchContactsPermissionError, OpenCameraPermissionError, GetCurrentLocationPermissionError, GetClipboardTextPermissionError, SetClipboardTextPermissionError;
11118
+ var init_dist4 = __esm({
11119
+ "../types/dist/index.js"() {
11120
+ "use strict";
11121
+ init_class_call_check();
11122
+ init_inherits();
11123
+ init_wrap_native_super();
11124
+ init_create_super();
11125
+ PermissionError = /* @__PURE__ */ function(Error1) {
11126
+ "use strict";
11127
+ _inherits(PermissionError2, Error1);
11128
+ var _super = _create_super(PermissionError2);
11129
+ function PermissionError2(param) {
11130
+ var methodName = param.methodName, message = param.message;
11131
+ _class_call_check(this, PermissionError2);
11132
+ var _this;
11133
+ _this = _super.call(this);
11134
+ _this.name = "".concat(methodName, " permission error");
11135
+ _this.message = message;
11136
+ return _this;
11137
+ }
11138
+ return PermissionError2;
11139
+ }(_wrap_native_super(Error));
11140
+ FetchAlbumPhotosPermissionError = /* @__PURE__ */ function(PermissionError2) {
11141
+ "use strict";
11142
+ _inherits(FetchAlbumPhotosPermissionError2, PermissionError2);
11143
+ var _super = _create_super(FetchAlbumPhotosPermissionError2);
11144
+ function FetchAlbumPhotosPermissionError2() {
11145
+ _class_call_check(this, FetchAlbumPhotosPermissionError2);
11146
+ return _super.call(this, {
11147
+ methodName: "fetchAlbumPhotos",
11148
+ message: "\uC0AC\uC9C4\uCCA9 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11149
+ });
11150
+ }
11151
+ return FetchAlbumPhotosPermissionError2;
11152
+ }(PermissionError);
11153
+ FetchContactsPermissionError = /* @__PURE__ */ function(PermissionError2) {
11154
+ "use strict";
11155
+ _inherits(FetchContactsPermissionError2, PermissionError2);
11156
+ var _super = _create_super(FetchContactsPermissionError2);
11157
+ function FetchContactsPermissionError2() {
11158
+ _class_call_check(this, FetchContactsPermissionError2);
11159
+ return _super.call(this, {
11160
+ methodName: "fetchContacts",
11161
+ message: "\uC5F0\uB77D\uCC98 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11162
+ });
11163
+ }
11164
+ return FetchContactsPermissionError2;
11165
+ }(PermissionError);
11166
+ OpenCameraPermissionError = /* @__PURE__ */ function(PermissionError2) {
11167
+ "use strict";
11168
+ _inherits(OpenCameraPermissionError2, PermissionError2);
11169
+ var _super = _create_super(OpenCameraPermissionError2);
11170
+ function OpenCameraPermissionError2() {
11171
+ _class_call_check(this, OpenCameraPermissionError2);
11172
+ return _super.call(this, {
11173
+ methodName: "openCamera",
11174
+ message: "\uCE74\uBA54\uB77C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11175
+ });
11176
+ }
11177
+ return OpenCameraPermissionError2;
11178
+ }(PermissionError);
11179
+ GetCurrentLocationPermissionError = /* @__PURE__ */ function(PermissionError2) {
11180
+ "use strict";
11181
+ _inherits(GetCurrentLocationPermissionError2, PermissionError2);
11182
+ var _super = _create_super(GetCurrentLocationPermissionError2);
11183
+ function GetCurrentLocationPermissionError2() {
11184
+ _class_call_check(this, GetCurrentLocationPermissionError2);
11185
+ return _super.call(this, {
11186
+ methodName: "getCurrentLocation",
11187
+ message: "\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11188
+ });
11189
+ }
11190
+ return GetCurrentLocationPermissionError2;
11191
+ }(PermissionError);
11192
+ GetClipboardTextPermissionError = /* @__PURE__ */ function(PermissionError2) {
11193
+ "use strict";
11194
+ _inherits(GetClipboardTextPermissionError2, PermissionError2);
11195
+ var _super = _create_super(GetClipboardTextPermissionError2);
11196
+ function GetClipboardTextPermissionError2() {
11197
+ _class_call_check(this, GetClipboardTextPermissionError2);
11198
+ return _super.call(this, {
11199
+ methodName: "getClipboardText",
11200
+ message: "\uD074\uB9BD\uBCF4\uB4DC \uC77D\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11201
+ });
11202
+ }
11203
+ return GetClipboardTextPermissionError2;
11204
+ }(PermissionError);
11205
+ SetClipboardTextPermissionError = /* @__PURE__ */ function(PermissionError2) {
11206
+ "use strict";
11207
+ _inherits(SetClipboardTextPermissionError2, PermissionError2);
11208
+ var _super = _create_super(SetClipboardTextPermissionError2);
11209
+ function SetClipboardTextPermissionError2() {
11210
+ _class_call_check(this, SetClipboardTextPermissionError2);
11211
+ return _super.call(this, {
11212
+ methodName: "setClipboardText",
11213
+ message: "\uD074\uB9BD\uBCF4\uB4DC \uC4F0\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."
11214
+ });
11215
+ }
11216
+ return SetClipboardTextPermissionError2;
11217
+ }(PermissionError);
11218
+ }
11219
+ });
11220
+
11116
11221
  // ../../.yarn/cache/es-toolkit-npm-1.39.3-b94f623c91-1c85e518b1.zip/node_modules/es-toolkit/dist/function/noop.mjs
11117
11222
  function noop3() {
11118
11223
  }
@@ -11122,24 +11227,24 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11122
11227
  });
11123
11228
 
11124
11229
  // ../../.yarn/cache/es-toolkit-npm-1.39.3-b94f623c91-1c85e518b1.zip/node_modules/es-toolkit/dist/index.mjs
11125
- var init_dist4 = __esm({
11230
+ var init_dist5 = __esm({
11126
11231
  "../../.yarn/cache/es-toolkit-npm-1.39.3-b94f623c91-1c85e518b1.zip/node_modules/es-toolkit/dist/index.mjs"() {
11127
11232
  init_noop2();
11128
11233
  }
11129
11234
  });
11130
11235
 
11131
11236
  // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/dist/index.js
11132
- function getPermission(permission) {
11133
- return AppsInTossModule.getPermission(permission);
11134
- }
11135
11237
  function openPermissionDialog(permission) {
11136
11238
  return AppsInTossModule.openPermissionDialog(permission);
11137
11239
  }
11240
+ function getPermission(permission) {
11241
+ return AppsInTossModule.getPermission(permission);
11242
+ }
11138
11243
  function requestPermission(permission) {
11139
11244
  return _requestPermission.apply(this, arguments);
11140
11245
  }
11141
11246
  function _requestPermission() {
11142
- _requestPermission = // src/AppsInTossModule/native-modules/requestPermission.ts
11247
+ _requestPermission = // src/AppsInTossModule/native-modules/permissions/requestPermission.ts
11143
11248
  _async_to_generator(function(permission) {
11144
11249
  var permissionStatus;
11145
11250
  return __generator(this, function(_state) {
@@ -11192,7 +11297,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11192
11297
  "onError"
11193
11298
  ]);
11194
11299
  var _registerCallbacks = registerCallbacks(appBridgeCallbacks), callbackMap = _registerCallbacks.callbackMap, unregisterAll = _registerCallbacks.unregisterAll;
11195
- var promise = AppsInTossModuleInstance[methodName]({
11300
+ var method = AppsInTossModuleInstance[methodName];
11301
+ if (method == null) {
11302
+ onError2(new Error("'".concat(methodName, "' is not defined in AppsInTossModule")));
11303
+ return unregisterAll;
11304
+ }
11305
+ var promise = method({
11196
11306
  params,
11197
11307
  callbacks: callbackMap
11198
11308
  });
@@ -11243,6 +11353,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11243
11353
  function getCallbackIds() {
11244
11354
  return Array.from(INTERNAL__callbacks.keys());
11245
11355
  }
11356
+ function getOperationalEnvironment() {
11357
+ return AppsInTossModule.operationalEnvironment;
11358
+ }
11246
11359
  function isMinVersionSupported(minVersions) {
11247
11360
  var operationalEnvironment2 = AppsInTossModule.operationalEnvironment;
11248
11361
  if (operationalEnvironment2 === "sandbox") {
@@ -11262,12 +11375,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11262
11375
  }
11263
11376
  return compareVersions(currentVersion, minVersion) >= 0;
11264
11377
  }
11265
- function onVisibilityChangedByTransparentServiceWeb(eventParams) {
11266
- return appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
11267
- }
11268
- function getOperationalEnvironment() {
11269
- return AppsInTossModule.operationalEnvironment;
11270
- }
11271
11378
  function loadAdMobInterstitialAd(params) {
11272
11379
  if (!loadAdMobInterstitialAd.isSupported()) {
11273
11380
  params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
@@ -11525,6 +11632,46 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11525
11632
  });
11526
11633
  return _eventLog.apply(this, arguments);
11527
11634
  }
11635
+ function createPermissionFunction(param) {
11636
+ var handler = param.handler, permission = param.permission, error = param.error;
11637
+ var permissionFunction = function() {
11638
+ var _ref = _async_to_generator(function() {
11639
+ var _len, args, _key, permissionStatus;
11640
+ var _arguments = arguments;
11641
+ return __generator(this, function(_state) {
11642
+ switch (_state.label) {
11643
+ case 0:
11644
+ for (_len = _arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11645
+ args[_key] = _arguments[_key];
11646
+ }
11647
+ return [
11648
+ 4,
11649
+ requestPermission(permission)
11650
+ ];
11651
+ case 1:
11652
+ permissionStatus = _state.sent();
11653
+ if (permissionStatus === "denied") {
11654
+ throw new error();
11655
+ }
11656
+ return [
11657
+ 2,
11658
+ handler.apply(void 0, _to_consumable_array(args))
11659
+ ];
11660
+ }
11661
+ });
11662
+ });
11663
+ return function permissionFunction2() {
11664
+ return _ref.apply(this, arguments);
11665
+ };
11666
+ }();
11667
+ permissionFunction.getPermission = function() {
11668
+ return getPermission(permission);
11669
+ };
11670
+ permissionFunction.openPermissionDialog = function() {
11671
+ return openPermissionDialog(permission);
11672
+ };
11673
+ return permissionFunction;
11674
+ }
11528
11675
  function getTossAppVersion() {
11529
11676
  return AppsInTossModule.tossAppVersion;
11530
11677
  }
@@ -11618,6 +11765,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11618
11765
  });
11619
11766
  return _getGameCenterGameProfile.apply(this, arguments);
11620
11767
  }
11768
+ function startUpdateLocation(eventParams) {
11769
+ return appsInTossEvent.addEventListener("updateLocationEvent", eventParams);
11770
+ }
11771
+ function onVisibilityChangedByTransparentServiceWeb(eventParams) {
11772
+ return appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
11773
+ }
11621
11774
  function setIosSwipeGestureEnabled(options) {
11622
11775
  return _setIosSwipeGestureEnabled.apply(this, arguments);
11623
11776
  }
@@ -11658,8 +11811,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11658
11811
  }
11659
11812
  });
11660
11813
  }
11661
- 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;
11662
- var init_dist5 = __esm({
11814
+ 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;
11815
+ var init_dist6 = __esm({
11663
11816
  "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/dist/index.js"() {
11664
11817
  "use strict";
11665
11818
  init_async_to_generator();
@@ -11677,15 +11830,23 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11677
11830
  init_src3();
11678
11831
  init_src3();
11679
11832
  init_src3();
11833
+ init_dist4();
11680
11834
  init_src3();
11681
11835
  import_react_native43 = __toESM(require_react_native(), 1);
11682
11836
  import_react_native44 = __toESM(require_react_native(), 1);
11683
11837
  init_src3();
11684
11838
  init_src3();
11839
+ init_dist5();
11685
11840
  import_react_native47 = __toESM(require_react_native(), 1);
11841
+ init_dist5();
11842
+ init_dist4();
11843
+ init_dist4();
11844
+ init_dist4();
11845
+ init_dist4();
11686
11846
  init_dist4();
11687
11847
  init_dist4();
11688
11848
  init_src3();
11849
+ init_dist4();
11689
11850
  import_react_native49 = __toESM(require_react_native(), 1);
11690
11851
  import_react_native50 = __toESM(require_react_native(), 1);
11691
11852
  import_react_native51 = __toESM(require_react_native(), 1);
@@ -11783,7 +11944,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
11783
11944
  access: "access"
11784
11945
  }).then(function(permissionStatus) {
11785
11946
  if (permissionStatus === "denied") {
11786
- onError2(new Error("\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."));
11947
+ onError2(new GetCurrentLocationPermissionError());
11787
11948
  return;
11788
11949
  }
11789
11950
  void AppsInTossModuleInstance.startUpdateLocation(options).catch(onError2);
@@ -12007,6 +12168,121 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
12007
12168
  ENVIRONMENT2 = getOperationalEnvironment();
12008
12169
  loadAppsInTossAdMob.isSupported = createIsSupported2();
12009
12170
  showAppsInTossAdMob.isSupported = createIsSupported2();
12171
+ DEFAULT_MAX_COUNT = 10;
12172
+ DEFAULT_MAX_WIDTH = 1024;
12173
+ fetchAlbumPhotos = createPermissionFunction({
12174
+ handler: function() {
12175
+ var _ref = _async_to_generator(function(options) {
12176
+ var _options_maxCount, _options_maxWidth;
12177
+ return __generator(this, function(_state) {
12178
+ return [
12179
+ 2,
12180
+ AppsInTossModule.fetchAlbumPhotos(_object_spread_props(_object_spread({}, options), {
12181
+ maxCount: (_options_maxCount = options === null || options === void 0 ? void 0 : options.maxCount) !== null && _options_maxCount !== void 0 ? _options_maxCount : DEFAULT_MAX_COUNT,
12182
+ maxWidth: (_options_maxWidth = options === null || options === void 0 ? void 0 : options.maxWidth) !== null && _options_maxWidth !== void 0 ? _options_maxWidth : DEFAULT_MAX_WIDTH
12183
+ }))
12184
+ ];
12185
+ });
12186
+ });
12187
+ return function(options) {
12188
+ return _ref.apply(this, arguments);
12189
+ };
12190
+ }(),
12191
+ permission: {
12192
+ name: "photos",
12193
+ access: "read"
12194
+ },
12195
+ error: FetchAlbumPhotosPermissionError
12196
+ });
12197
+ fetchContacts = createPermissionFunction({
12198
+ handler: function() {
12199
+ var _ref = _async_to_generator(function(options) {
12200
+ var contacts, _contacts_nextOffset;
12201
+ return __generator(this, function(_state) {
12202
+ switch (_state.label) {
12203
+ case 0:
12204
+ return [
12205
+ 4,
12206
+ AppsInTossModule.fetchContacts(options)
12207
+ ];
12208
+ case 1:
12209
+ contacts = _state.sent();
12210
+ return [
12211
+ 2,
12212
+ {
12213
+ result: contacts.result,
12214
+ nextOffset: (_contacts_nextOffset = contacts.nextOffset) !== null && _contacts_nextOffset !== void 0 ? _contacts_nextOffset : null,
12215
+ done: contacts.done
12216
+ }
12217
+ ];
12218
+ }
12219
+ });
12220
+ });
12221
+ return function(options) {
12222
+ return _ref.apply(this, arguments);
12223
+ };
12224
+ }(),
12225
+ permission: {
12226
+ name: "contacts",
12227
+ access: "read"
12228
+ },
12229
+ error: FetchContactsPermissionError
12230
+ });
12231
+ getClipboardText = createPermissionFunction({
12232
+ handler: function() {
12233
+ return AppsInTossModule.getClipboardText({});
12234
+ },
12235
+ permission: {
12236
+ name: "clipboard",
12237
+ access: "read"
12238
+ },
12239
+ error: GetClipboardTextPermissionError
12240
+ });
12241
+ getCurrentLocation = createPermissionFunction({
12242
+ handler: function() {
12243
+ var _ref = _async_to_generator(function(options) {
12244
+ return __generator(this, function(_state) {
12245
+ return [
12246
+ 2,
12247
+ AppsInTossModule.getCurrentLocation(options)
12248
+ ];
12249
+ });
12250
+ });
12251
+ return function(options) {
12252
+ return _ref.apply(this, arguments);
12253
+ };
12254
+ }(),
12255
+ permission: {
12256
+ name: "geolocation",
12257
+ access: "access"
12258
+ },
12259
+ error: GetCurrentLocationPermissionError
12260
+ });
12261
+ setClipboardText = createPermissionFunction({
12262
+ handler: function(text) {
12263
+ return AppsInTossModule.setClipboardText({
12264
+ text
12265
+ });
12266
+ },
12267
+ permission: {
12268
+ name: "clipboard",
12269
+ access: "write"
12270
+ },
12271
+ error: SetClipboardTextPermissionError
12272
+ });
12273
+ openCamera = createPermissionFunction({
12274
+ handler: function(options) {
12275
+ return AppsInTossModule.openCamera(_object_spread({
12276
+ base64: false,
12277
+ maxWidth: 1024
12278
+ }, options));
12279
+ },
12280
+ permission: {
12281
+ name: "camera",
12282
+ access: "access"
12283
+ },
12284
+ error: OpenCameraPermissionError
12285
+ });
12010
12286
  IAP = {
12011
12287
  createOneTimePurchaseOrder,
12012
12288
  getProductItemList
@@ -12029,6 +12305,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
12029
12305
  loadAppsInTossAdMob,
12030
12306
  showAppsInTossAdMob
12031
12307
  };
12308
+ startUpdateLocation.openPermissionDialog = getCurrentLocation.openPermissionDialog;
12309
+ startUpdateLocation.getPermission = getCurrentLocation.getPermission;
12032
12310
  BedrockModule = import_react_native49.NativeModules.BedrockModule;
12033
12311
  BedrockCoreModule = import_react_native53.NativeModules.BedrockCoreModule;
12034
12312
  TossCoreModule = import_react_native54.NativeModules.TossCoreModule;
@@ -39711,7 +39989,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
39711
39989
  return josa2.split("/")[index];
39712
39990
  }
39713
39991
  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;
39714
- var init_dist6 = __esm({
39992
+ var init_dist7 = __esm({
39715
39993
  "../../.yarn/cache/es-hangul-npm-2.3.2-49f75d7fcc-ff230ae92f.zip/node_modules/es-hangul/dist/index.mjs"() {
39716
39994
  init_sliced_to_array();
39717
39995
  init_to_consumable_array();
@@ -40436,7 +40714,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
40436
40714
  init_to_consumable_array();
40437
40715
  import_jsx_runtime211 = __toESM(require_jsx_runtime());
40438
40716
  init_esm6();
40439
- init_dist6();
40717
+ init_dist7();
40440
40718
  import_react204 = __toESM(require_react());
40441
40719
  import_react_native184 = __toESM(require_react_native());
40442
40720
  init_usePreservedCallback2();
@@ -41092,29 +41370,29 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
41092
41370
  }
41093
41371
  });
41094
41372
 
41095
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getPermission.ts
41096
- function getPermission2(permission) {
41097
- return AppsInTossModule2.getPermission(permission);
41373
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/openPermissionDialog.ts
41374
+ function openPermissionDialog2(permission) {
41375
+ return AppsInTossModule2.openPermissionDialog(permission);
41098
41376
  }
41099
- var init_getPermission = __esm({
41100
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getPermission.ts"() {
41377
+ var init_openPermissionDialog = __esm({
41378
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/openPermissionDialog.ts"() {
41101
41379
  "use strict";
41102
41380
  init_AppsInTossModule();
41103
41381
  }
41104
41382
  });
41105
41383
 
41106
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/openPermissionDialog.ts
41107
- function openPermissionDialog2(permission) {
41108
- return AppsInTossModule2.openPermissionDialog(permission);
41384
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getPermission.ts
41385
+ function getPermission2(permission) {
41386
+ return AppsInTossModule2.getPermission(permission);
41109
41387
  }
41110
- var init_openPermissionDialog = __esm({
41111
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/openPermissionDialog.ts"() {
41388
+ var init_getPermission = __esm({
41389
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getPermission.ts"() {
41112
41390
  "use strict";
41113
41391
  init_AppsInTossModule();
41114
41392
  }
41115
41393
  });
41116
41394
 
41117
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/requestPermission.ts
41395
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/requestPermission.ts
41118
41396
  function requestPermission2(permission) {
41119
41397
  return _requestPermission2.apply(this, arguments);
41120
41398
  }
@@ -41152,300 +41430,255 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
41152
41430
  return _requestPermission2.apply(this, arguments);
41153
41431
  }
41154
41432
  var init_requestPermission = __esm({
41155
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/requestPermission.ts"() {
41433
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/requestPermission.ts"() {
41156
41434
  "use strict";
41157
41435
  init_async_to_generator();
41158
41436
  init_ts_generator();
41159
- init_getPermission();
41160
41437
  init_openPermissionDialog();
41438
+ init_getPermission();
41161
41439
  }
41162
41440
  });
41163
41441
 
41164
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/setClipboardText.ts
41165
- function setClipboardText(text) {
41166
- return _setClipboardText.apply(this, arguments);
41167
- }
41168
- function _setClipboardText() {
41169
- _setClipboardText = _async_to_generator(function(text) {
41170
- var permissionStatus;
41171
- return __generator(this, function(_state) {
41172
- switch (_state.label) {
41173
- case 0:
41174
- return [
41175
- 4,
41176
- requestPermission2({
41177
- name: "clipboard",
41178
- access: "write"
41179
- })
41180
- ];
41181
- case 1:
41182
- permissionStatus = _state.sent();
41183
- if (permissionStatus === "denied") {
41184
- throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC4F0\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41185
- }
41186
- return [
41187
- 2,
41188
- AppsInTossModule2.setClipboardText({
41189
- text
41190
- })
41191
- ];
41192
- }
41442
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/createPermissionFunction.ts
41443
+ function createPermissionFunction2(param) {
41444
+ var handler = param.handler, permission = param.permission, error = param.error;
41445
+ var permissionFunction = function() {
41446
+ var _ref = _async_to_generator(function() {
41447
+ var _len, args, _key, permissionStatus;
41448
+ var _arguments = arguments;
41449
+ return __generator(this, function(_state) {
41450
+ switch (_state.label) {
41451
+ case 0:
41452
+ for (_len = _arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
41453
+ args[_key] = _arguments[_key];
41454
+ }
41455
+ return [
41456
+ 4,
41457
+ requestPermission2(permission)
41458
+ ];
41459
+ case 1:
41460
+ permissionStatus = _state.sent();
41461
+ if (permissionStatus === "denied") {
41462
+ throw new error();
41463
+ }
41464
+ return [
41465
+ 2,
41466
+ handler.apply(void 0, _to_consumable_array(args))
41467
+ ];
41468
+ }
41469
+ });
41193
41470
  });
41194
- });
41195
- return _setClipboardText.apply(this, arguments);
41471
+ return function permissionFunction2() {
41472
+ return _ref.apply(this, arguments);
41473
+ };
41474
+ }();
41475
+ permissionFunction.getPermission = function() {
41476
+ return getPermission2(permission);
41477
+ };
41478
+ permissionFunction.openPermissionDialog = function() {
41479
+ return openPermissionDialog2(permission);
41480
+ };
41481
+ return permissionFunction;
41196
41482
  }
41197
- var init_setClipboardText = __esm({
41198
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/setClipboardText.ts"() {
41483
+ var init_createPermissionFunction = __esm({
41484
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/createPermissionFunction.ts"() {
41199
41485
  "use strict";
41200
41486
  init_async_to_generator();
41487
+ init_to_consumable_array();
41201
41488
  init_ts_generator();
41202
- init_AppsInTossModule();
41489
+ init_openPermissionDialog();
41203
41490
  init_requestPermission();
41491
+ init_getPermission();
41204
41492
  }
41205
41493
  });
41206
41494
 
41207
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getClipboardText.ts
41208
- function getClipboardText() {
41209
- return _getClipboardText.apply(this, arguments);
41210
- }
41211
- function _getClipboardText() {
41212
- _getClipboardText = _async_to_generator(function() {
41213
- var permissionStatus;
41214
- return __generator(this, function(_state) {
41215
- switch (_state.label) {
41216
- case 0:
41217
- return [
41218
- 4,
41219
- requestPermission2({
41220
- name: "clipboard",
41221
- access: "read"
41222
- })
41223
- ];
41224
- case 1:
41225
- permissionStatus = _state.sent();
41226
- if (permissionStatus === "denied") {
41227
- throw new Error("\uD074\uB9BD\uBCF4\uB4DC \uC77D\uAE30 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41228
- }
41229
- return [
41230
- 2,
41231
- AppsInTossModule2.getClipboardText({})
41232
- ];
41233
- }
41495
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/setClipboardText/setClipboardText.ts
41496
+ var setClipboardText2;
41497
+ var init_setClipboardText = __esm({
41498
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/setClipboardText/setClipboardText.ts"() {
41499
+ "use strict";
41500
+ init_dist4();
41501
+ init_AppsInTossModule();
41502
+ init_createPermissionFunction();
41503
+ setClipboardText2 = createPermissionFunction2({
41504
+ handler: function(text) {
41505
+ return AppsInTossModule2.setClipboardText({
41506
+ text
41507
+ });
41508
+ },
41509
+ permission: {
41510
+ name: "clipboard",
41511
+ access: "write"
41512
+ },
41513
+ error: SetClipboardTextPermissionError
41234
41514
  });
41235
- });
41236
- return _getClipboardText.apply(this, arguments);
41237
- }
41515
+ }
41516
+ });
41517
+
41518
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/getClipboardText/getClipboardText.ts
41519
+ var getClipboardText2;
41238
41520
  var init_getClipboardText = __esm({
41239
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getClipboardText.ts"() {
41521
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/getClipboardText/getClipboardText.ts"() {
41240
41522
  "use strict";
41241
- init_async_to_generator();
41242
- init_ts_generator();
41523
+ init_dist4();
41243
41524
  init_AppsInTossModule();
41244
- init_requestPermission();
41525
+ init_createPermissionFunction();
41526
+ getClipboardText2 = createPermissionFunction2({
41527
+ handler: function() {
41528
+ return AppsInTossModule2.getClipboardText({});
41529
+ },
41530
+ permission: {
41531
+ name: "clipboard",
41532
+ access: "read"
41533
+ },
41534
+ error: GetClipboardTextPermissionError
41535
+ });
41245
41536
  }
41246
41537
  });
41247
41538
 
41248
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/fetchContacts.ts
41249
- function fetchContacts(options) {
41250
- return _fetchContacts.apply(this, arguments);
41251
- }
41252
- function _fetchContacts() {
41253
- _fetchContacts = _async_to_generator(function(options) {
41254
- var permissionStatus, contacts, _contacts_nextOffset;
41255
- return __generator(this, function(_state) {
41256
- switch (_state.label) {
41257
- case 0:
41258
- return [
41259
- 4,
41260
- requestPermission2({
41261
- name: "contacts",
41262
- access: "read"
41263
- })
41264
- ];
41265
- case 1:
41266
- permissionStatus = _state.sent();
41267
- if (permissionStatus === "denied") {
41268
- throw new Error("\uC5F0\uB77D\uCC98 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41269
- }
41270
- return [
41271
- 4,
41272
- AppsInTossModule2.fetchContacts(options)
41273
- ];
41274
- case 2:
41275
- contacts = _state.sent();
41276
- return [
41277
- 2,
41278
- {
41279
- result: contacts.result,
41280
- nextOffset: (_contacts_nextOffset = contacts.nextOffset) !== null && _contacts_nextOffset !== void 0 ? _contacts_nextOffset : null,
41281
- done: contacts.done
41282
- }
41283
- ];
41284
- }
41285
- });
41286
- });
41287
- return _fetchContacts.apply(this, arguments);
41288
- }
41539
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/fetchContacts/fetchContacts.ts
41540
+ var fetchContacts2;
41289
41541
  var init_fetchContacts = __esm({
41290
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/fetchContacts.ts"() {
41542
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/fetchContacts/fetchContacts.ts"() {
41291
41543
  "use strict";
41292
41544
  init_async_to_generator();
41293
41545
  init_ts_generator();
41546
+ init_dist4();
41294
41547
  init_AppsInTossModule();
41295
- init_requestPermission();
41548
+ init_createPermissionFunction();
41549
+ fetchContacts2 = createPermissionFunction2({
41550
+ handler: function() {
41551
+ var _ref = _async_to_generator(function(options) {
41552
+ var contacts, _contacts_nextOffset;
41553
+ return __generator(this, function(_state) {
41554
+ switch (_state.label) {
41555
+ case 0:
41556
+ return [
41557
+ 4,
41558
+ AppsInTossModule2.fetchContacts(options)
41559
+ ];
41560
+ case 1:
41561
+ contacts = _state.sent();
41562
+ return [
41563
+ 2,
41564
+ {
41565
+ result: contacts.result,
41566
+ nextOffset: (_contacts_nextOffset = contacts.nextOffset) !== null && _contacts_nextOffset !== void 0 ? _contacts_nextOffset : null,
41567
+ done: contacts.done
41568
+ }
41569
+ ];
41570
+ }
41571
+ });
41572
+ });
41573
+ return function(options) {
41574
+ return _ref.apply(this, arguments);
41575
+ };
41576
+ }(),
41577
+ permission: {
41578
+ name: "contacts",
41579
+ access: "read"
41580
+ },
41581
+ error: FetchContactsPermissionError
41582
+ });
41296
41583
  }
41297
41584
  });
41298
41585
 
41299
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/fetchAlbumPhotos.ts
41300
- function fetchAlbumPhotos(options) {
41301
- return _fetchAlbumPhotos.apply(this, arguments);
41302
- }
41303
- function _fetchAlbumPhotos() {
41304
- _fetchAlbumPhotos = _async_to_generator(function(options) {
41305
- var permissionStatus, _options_maxCount, _options_maxWidth, albumPhotos;
41306
- return __generator(this, function(_state) {
41307
- switch (_state.label) {
41308
- case 0:
41309
- return [
41310
- 4,
41311
- requestPermission2({
41312
- name: "photos",
41313
- access: "read"
41314
- })
41315
- ];
41316
- case 1:
41317
- permissionStatus = _state.sent();
41318
- if (permissionStatus === "denied") {
41319
- throw new Error("\uC0AC\uC9C4\uCCA9 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41320
- }
41321
- return [
41322
- 4,
41323
- AppsInTossModule2.fetchAlbumPhotos(_object_spread_props(_object_spread({}, options), {
41324
- maxCount: (_options_maxCount = options.maxCount) !== null && _options_maxCount !== void 0 ? _options_maxCount : DEFAULT_MAX_COUNT,
41325
- maxWidth: (_options_maxWidth = options.maxWidth) !== null && _options_maxWidth !== void 0 ? _options_maxWidth : DEFAULT_MAX_WIDTH
41326
- }))
41327
- ];
41328
- case 2:
41329
- albumPhotos = _state.sent();
41330
- return [
41331
- 2,
41332
- albumPhotos
41333
- ];
41334
- }
41335
- });
41336
- });
41337
- return _fetchAlbumPhotos.apply(this, arguments);
41338
- }
41339
- var DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH;
41586
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/fetchAlbumPhotos/fetchAlbumPhotos.ts
41587
+ var DEFAULT_MAX_COUNT2, DEFAULT_MAX_WIDTH2, fetchAlbumPhotos2;
41340
41588
  var init_fetchAlbumPhotos = __esm({
41341
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/fetchAlbumPhotos.ts"() {
41589
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/fetchAlbumPhotos/fetchAlbumPhotos.ts"() {
41342
41590
  "use strict";
41343
41591
  init_async_to_generator();
41344
41592
  init_object_spread();
41345
41593
  init_object_spread_props();
41346
41594
  init_ts_generator();
41595
+ init_dist4();
41347
41596
  init_AppsInTossModule();
41348
- init_requestPermission();
41349
- DEFAULT_MAX_COUNT = 10;
41350
- DEFAULT_MAX_WIDTH = 1024;
41597
+ init_createPermissionFunction();
41598
+ DEFAULT_MAX_COUNT2 = 10;
41599
+ DEFAULT_MAX_WIDTH2 = 1024;
41600
+ fetchAlbumPhotos2 = createPermissionFunction2({
41601
+ handler: function() {
41602
+ var _ref = _async_to_generator(function(options) {
41603
+ var _options_maxCount, _options_maxWidth;
41604
+ return __generator(this, function(_state) {
41605
+ return [
41606
+ 2,
41607
+ AppsInTossModule2.fetchAlbumPhotos(_object_spread_props(_object_spread({}, options), {
41608
+ maxCount: (_options_maxCount = options === null || options === void 0 ? void 0 : options.maxCount) !== null && _options_maxCount !== void 0 ? _options_maxCount : DEFAULT_MAX_COUNT2,
41609
+ maxWidth: (_options_maxWidth = options === null || options === void 0 ? void 0 : options.maxWidth) !== null && _options_maxWidth !== void 0 ? _options_maxWidth : DEFAULT_MAX_WIDTH2
41610
+ }))
41611
+ ];
41612
+ });
41613
+ });
41614
+ return function(options) {
41615
+ return _ref.apply(this, arguments);
41616
+ };
41617
+ }(),
41618
+ permission: {
41619
+ name: "photos",
41620
+ access: "read"
41621
+ },
41622
+ error: FetchAlbumPhotosPermissionError
41623
+ });
41351
41624
  }
41352
41625
  });
41353
41626
 
41354
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getCurrentLocation.ts
41355
- function getCurrentLocation(options) {
41356
- return _getCurrentLocation.apply(this, arguments);
41357
- }
41358
- function _getCurrentLocation() {
41359
- _getCurrentLocation = _async_to_generator(function(options) {
41360
- var permissionStatus, position;
41361
- return __generator(this, function(_state) {
41362
- switch (_state.label) {
41363
- case 0:
41364
- return [
41365
- 4,
41366
- requestPermission2({
41367
- name: "geolocation",
41368
- access: "access"
41369
- })
41370
- ];
41371
- case 1:
41372
- permissionStatus = _state.sent();
41373
- if (permissionStatus === "denied") {
41374
- throw new Error("\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41375
- }
41376
- return [
41377
- 4,
41378
- AppsInTossModule2.getCurrentLocation(options)
41379
- ];
41380
- case 2:
41381
- position = _state.sent();
41382
- return [
41383
- 2,
41384
- position
41385
- ];
41386
- }
41387
- });
41388
- });
41389
- return _getCurrentLocation.apply(this, arguments);
41390
- }
41627
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/getCurrentLocation/getCurrentLocation.ts
41628
+ var getCurrentLocation2;
41391
41629
  var init_getCurrentLocation = __esm({
41392
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getCurrentLocation.ts"() {
41630
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/getCurrentLocation/getCurrentLocation.ts"() {
41393
41631
  "use strict";
41394
41632
  init_async_to_generator();
41395
41633
  init_ts_generator();
41634
+ init_dist4();
41396
41635
  init_AppsInTossModule();
41397
- init_requestPermission();
41636
+ init_createPermissionFunction();
41637
+ getCurrentLocation2 = createPermissionFunction2({
41638
+ handler: function() {
41639
+ var _ref = _async_to_generator(function(options) {
41640
+ return __generator(this, function(_state) {
41641
+ return [
41642
+ 2,
41643
+ AppsInTossModule2.getCurrentLocation(options)
41644
+ ];
41645
+ });
41646
+ });
41647
+ return function(options) {
41648
+ return _ref.apply(this, arguments);
41649
+ };
41650
+ }(),
41651
+ permission: {
41652
+ name: "geolocation",
41653
+ access: "access"
41654
+ },
41655
+ error: GetCurrentLocationPermissionError
41656
+ });
41398
41657
  }
41399
41658
  });
41400
41659
 
41401
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/openCamera.ts
41402
- function openCamera(options) {
41403
- return _openCamera.apply(this, arguments);
41404
- }
41405
- function _openCamera() {
41406
- _openCamera = _async_to_generator(function(options) {
41407
- var permissionStatus, photo;
41408
- return __generator(this, function(_state) {
41409
- switch (_state.label) {
41410
- case 0:
41411
- return [
41412
- 4,
41413
- requestPermission2({
41414
- name: "camera",
41415
- access: "access"
41416
- })
41417
- ];
41418
- case 1:
41419
- permissionStatus = _state.sent();
41420
- if (permissionStatus === "denied") {
41421
- throw new Error("\uCE74\uBA54\uB77C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694.");
41422
- }
41423
- return [
41424
- 4,
41425
- AppsInTossModule2.openCamera(_object_spread({
41426
- base64: false,
41427
- maxWidth: 1024
41428
- }, options))
41429
- ];
41430
- case 2:
41431
- photo = _state.sent();
41432
- return [
41433
- 2,
41434
- photo
41435
- ];
41436
- }
41437
- });
41438
- });
41439
- return _openCamera.apply(this, arguments);
41440
- }
41660
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/openCamera/openCamera.ts
41661
+ var openCamera2;
41441
41662
  var init_openCamera = __esm({
41442
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/openCamera.ts"() {
41663
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/permissions/openCamera/openCamera.ts"() {
41443
41664
  "use strict";
41444
- init_async_to_generator();
41445
41665
  init_object_spread();
41446
- init_ts_generator();
41666
+ init_dist4();
41447
41667
  init_AppsInTossModule();
41448
- init_requestPermission();
41668
+ init_createPermissionFunction();
41669
+ openCamera2 = createPermissionFunction2({
41670
+ handler: function(options) {
41671
+ return AppsInTossModule2.openCamera(_object_spread({
41672
+ base64: false,
41673
+ maxWidth: 1024
41674
+ }, options));
41675
+ },
41676
+ permission: {
41677
+ name: "camera",
41678
+ access: "access"
41679
+ },
41680
+ error: OpenCameraPermissionError
41681
+ });
41449
41682
  }
41450
41683
  });
41451
41684
 
@@ -41935,19 +42168,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
41935
42168
  return eventLog2;
41936
42169
  },
41937
42170
  fetchAlbumPhotos: function() {
41938
- return fetchAlbumPhotos;
42171
+ return fetchAlbumPhotos2;
41939
42172
  },
41940
42173
  fetchContacts: function() {
41941
- return fetchContacts;
42174
+ return fetchContacts2;
41942
42175
  },
41943
42176
  generateHapticFeedback: function() {
41944
42177
  return generateHapticFeedback;
41945
42178
  },
41946
42179
  getClipboardText: function() {
41947
- return getClipboardText;
42180
+ return getClipboardText2;
41948
42181
  },
41949
42182
  getCurrentLocation: function() {
41950
- return getCurrentLocation;
42183
+ return getCurrentLocation2;
41951
42184
  },
41952
42185
  getGameCenterGameProfile: function() {
41953
42186
  return getGameCenterGameProfile2;
@@ -41955,23 +42188,32 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
41955
42188
  getNetworkStatus: function() {
41956
42189
  return getNetworkStatus;
41957
42190
  },
42191
+ getPermission: function() {
42192
+ return getPermission2;
42193
+ },
41958
42194
  getTossShareLink: function() {
41959
42195
  return getTossShareLink;
41960
42196
  },
41961
42197
  openCamera: function() {
41962
- return openCamera;
42198
+ return openCamera2;
41963
42199
  },
41964
42200
  openGameCenterLeaderboard: function() {
41965
42201
  return openGameCenterLeaderboard;
41966
42202
  },
42203
+ openPermissionDialog: function() {
42204
+ return openPermissionDialog2;
42205
+ },
41967
42206
  openURL: function() {
41968
42207
  return openURL2;
41969
42208
  },
42209
+ requestPermission: function() {
42210
+ return requestPermission2;
42211
+ },
41970
42212
  saveBase64Data: function() {
41971
42213
  return saveBase64Data;
41972
42214
  },
41973
42215
  setClipboardText: function() {
41974
- return setClipboardText;
42216
+ return setClipboardText2;
41975
42217
  },
41976
42218
  setDeviceOrientation: function() {
41977
42219
  return setDeviceOrientation;
@@ -42003,6 +42245,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42003
42245
  init_getNetworkStatus();
42004
42246
  init_setIosSwipeGestureEnabled();
42005
42247
  init_openURL2();
42248
+ init_openPermissionDialog();
42249
+ init_requestPermission();
42250
+ init_getPermission();
42006
42251
  init_setClipboardText();
42007
42252
  init_getClipboardText();
42008
42253
  init_fetchContacts();
@@ -42231,6 +42476,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42231
42476
  init_create_class();
42232
42477
  init_inherits();
42233
42478
  init_create_super();
42479
+ init_dist4();
42234
42480
  init_src3();
42235
42481
  init_AppsInTossModule();
42236
42482
  init_requestPermission();
@@ -42270,7 +42516,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42270
42516
  access: "access"
42271
42517
  }).then(function(permissionStatus) {
42272
42518
  if (permissionStatus === "denied") {
42273
- onError2(new Error("\uC704\uCE58 \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC5B4\uC694."));
42519
+ onError2(new GetCurrentLocationPermissionError());
42274
42520
  return;
42275
42521
  }
42276
42522
  void AppsInTossModuleInstance2.startUpdateLocation(options).catch(onError2);
@@ -42318,7 +42564,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42318
42564
  "onError"
42319
42565
  ]);
42320
42566
  var _registerCallbacks = registerCallbacks2(appBridgeCallbacks), callbackMap = _registerCallbacks.callbackMap, unregisterAll = _registerCallbacks.unregisterAll;
42321
- var promise = AppsInTossModuleInstance2[methodName]({
42567
+ var method = AppsInTossModuleInstance2[methodName];
42568
+ if (method == null) {
42569
+ onError2(new Error("'".concat(methodName, "' is not defined in AppsInTossModule")));
42570
+ return unregisterAll;
42571
+ }
42572
+ var promise = method({
42322
42573
  params,
42323
42574
  callbacks: callbackMap
42324
42575
  });
@@ -42534,25 +42785,267 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42534
42785
  }
42535
42786
  });
42536
42787
 
42537
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts
42538
- function startUpdateLocation(eventParams) {
42539
- return appsInTossEvent2.addEventListener("updateLocationEvent", eventParams);
42788
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts
42789
+ function loadAdMobInterstitialAd2(params) {
42790
+ if (!loadAdMobInterstitialAd2.isSupported()) {
42791
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
42792
+ return noop3;
42793
+ }
42794
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
42795
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("loadAdMobInterstitialAd", options, {
42796
+ onAdClicked: function() {
42797
+ onEvent({
42798
+ type: "clicked"
42799
+ });
42800
+ },
42801
+ onAdDismissed: function() {
42802
+ onEvent({
42803
+ type: "dismissed"
42804
+ });
42805
+ },
42806
+ onAdFailedToShow: function() {
42807
+ onEvent({
42808
+ type: "failedToShow"
42809
+ });
42810
+ },
42811
+ onAdImpression: function() {
42812
+ onEvent({
42813
+ type: "impression"
42814
+ });
42815
+ },
42816
+ onAdShow: function() {
42817
+ onEvent({
42818
+ type: "show"
42819
+ });
42820
+ },
42821
+ onSuccess: function(result) {
42822
+ return onEvent({
42823
+ type: "loaded",
42824
+ data: result
42825
+ });
42826
+ },
42827
+ onError: onError2
42828
+ });
42829
+ return unregisterCallbacks;
42540
42830
  }
42541
- var init_startUpdateLocation = __esm({
42542
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts"() {
42831
+ function showAdMobInterstitialAd2(params) {
42832
+ if (!showAdMobInterstitialAd2.isSupported()) {
42833
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
42834
+ return noop3;
42835
+ }
42836
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
42837
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("showAdMobInterstitialAd", options, {
42838
+ onSuccess: function() {
42839
+ return onEvent({
42840
+ type: "requested"
42841
+ });
42842
+ },
42843
+ onError: onError2
42844
+ });
42845
+ return unregisterCallbacks;
42846
+ }
42847
+ function loadAdMobRewardedAd2(params) {
42848
+ if (!loadAdMobRewardedAd2.isSupported()) {
42849
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
42850
+ return noop3;
42851
+ }
42852
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
42853
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("loadAdMobRewardedAd", options, {
42854
+ onAdClicked: function() {
42855
+ onEvent({
42856
+ type: "clicked"
42857
+ });
42858
+ },
42859
+ onAdDismissed: function() {
42860
+ onEvent({
42861
+ type: "dismissed"
42862
+ });
42863
+ },
42864
+ onAdFailedToShow: function() {
42865
+ onEvent({
42866
+ type: "failedToShow"
42867
+ });
42868
+ },
42869
+ onAdImpression: function() {
42870
+ onEvent({
42871
+ type: "impression"
42872
+ });
42873
+ },
42874
+ onAdShow: function() {
42875
+ onEvent({
42876
+ type: "show"
42877
+ });
42878
+ },
42879
+ onUserEarnedReward: function() {
42880
+ onEvent({
42881
+ type: "userEarnedReward"
42882
+ });
42883
+ },
42884
+ onSuccess: function(result) {
42885
+ return onEvent({
42886
+ type: "loaded",
42887
+ data: result
42888
+ });
42889
+ },
42890
+ onError: onError2
42891
+ });
42892
+ return unregisterCallbacks;
42893
+ }
42894
+ function showAdMobRewardedAd2(params) {
42895
+ if (!showAdMobRewardedAd2.isSupported()) {
42896
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
42897
+ return noop3;
42898
+ }
42899
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
42900
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("showAdMobRewardedAd", options, {
42901
+ onSuccess: function() {
42902
+ return onEvent({
42903
+ type: "requested"
42904
+ });
42905
+ },
42906
+ onError: onError2
42907
+ });
42908
+ return unregisterCallbacks;
42909
+ }
42910
+ function createIsSupported3() {
42911
+ return function() {
42912
+ if (ENVIRONMENT3 !== "toss") {
42913
+ return false;
42914
+ }
42915
+ return isMinVersionSupported2({
42916
+ android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3,
42917
+ ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3
42918
+ });
42919
+ };
42920
+ }
42921
+ var ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3;
42922
+ var init_googleAdMob = __esm({
42923
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts"() {
42543
42924
  "use strict";
42544
- init_appsInTossEvent();
42925
+ init_dist5();
42926
+ init_appBridge();
42927
+ init_getOperationalEnvironment();
42928
+ init_isMinVersionSupported();
42929
+ ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3 = "5.209.0";
42930
+ IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3 = "5.209.0";
42931
+ UNSUPPORTED_ERROR_MESSAGE3 = "This feature is not supported in the current environment";
42932
+ ENVIRONMENT3 = getOperationalEnvironment2();
42933
+ loadAdMobInterstitialAd2.isSupported = createIsSupported3();
42934
+ loadAdMobRewardedAd2.isSupported = createIsSupported3();
42935
+ showAdMobInterstitialAd2.isSupported = createIsSupported3();
42936
+ showAdMobRewardedAd2.isSupported = createIsSupported3();
42545
42937
  }
42546
42938
  });
42547
42939
 
42548
- // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts
42549
- function onVisibilityChangedByTransparentServiceWeb2(eventParams) {
42550
- return appsInTossEvent2.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
42940
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts
42941
+ function loadAppsInTossAdMob2(params) {
42942
+ if (!loadAppsInTossAdMob2.isSupported()) {
42943
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE4));
42944
+ return noop3;
42945
+ }
42946
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
42947
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("loadAppsInTossAdmob", options, {
42948
+ onSuccess: function(result) {
42949
+ return onEvent({
42950
+ type: "loaded",
42951
+ data: result
42952
+ });
42953
+ },
42954
+ onError: onError2
42955
+ });
42956
+ return unregisterCallbacks;
42551
42957
  }
42552
- var init_onVisibilityChangedByTransparentServiceWeb = __esm({
42553
- "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts"() {
42958
+ function showAppsInTossAdMob2(params) {
42959
+ if (!showAppsInTossAdMob2.isSupported()) {
42960
+ params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE4));
42961
+ return noop3;
42962
+ }
42963
+ var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
42964
+ var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("showAppsInTossAdmob", options, {
42965
+ onAdClicked: function() {
42966
+ onEvent({
42967
+ type: "clicked"
42968
+ });
42969
+ },
42970
+ onAdDismissed: function() {
42971
+ onEvent({
42972
+ type: "dismissed"
42973
+ });
42974
+ },
42975
+ onAdFailedToShow: function() {
42976
+ onEvent({
42977
+ type: "failedToShow"
42978
+ });
42979
+ },
42980
+ onAdImpression: function() {
42981
+ onEvent({
42982
+ type: "impression"
42983
+ });
42984
+ },
42985
+ onAdShow: function() {
42986
+ onEvent({
42987
+ type: "show"
42988
+ });
42989
+ },
42990
+ onUserEarnedReward: function(data) {
42991
+ onEvent({
42992
+ type: "userEarnedReward",
42993
+ data
42994
+ });
42995
+ },
42996
+ onSuccess: function() {
42997
+ return onEvent({
42998
+ type: "requested"
42999
+ });
43000
+ },
43001
+ onError: onError2
43002
+ });
43003
+ return unregisterCallbacks;
43004
+ }
43005
+ function createIsSupported4() {
43006
+ return function() {
43007
+ if (ENVIRONMENT4 !== "toss") {
43008
+ return false;
43009
+ }
43010
+ return isMinVersionSupported2({
43011
+ android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION4,
43012
+ ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION4
43013
+ });
43014
+ };
43015
+ }
43016
+ var ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION4, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION4, UNSUPPORTED_ERROR_MESSAGE4, ENVIRONMENT4;
43017
+ var init_googleAdMobV2 = __esm({
43018
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts"() {
42554
43019
  "use strict";
42555
- init_appsInTossEvent();
43020
+ init_dist5();
43021
+ init_appBridge();
43022
+ init_getOperationalEnvironment();
43023
+ init_isMinVersionSupported();
43024
+ ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION4 = "5.227.0";
43025
+ IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION4 = "5.227.0";
43026
+ UNSUPPORTED_ERROR_MESSAGE4 = "This feature is not supported in the current environment";
43027
+ ENVIRONMENT4 = getOperationalEnvironment2();
43028
+ loadAppsInTossAdMob2.isSupported = createIsSupported4();
43029
+ showAppsInTossAdMob2.isSupported = createIsSupported4();
43030
+ }
43031
+ });
43032
+
43033
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/iap.ts
43034
+ var init_iap = __esm({
43035
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/iap.ts"() {
43036
+ "use strict";
43037
+ init_async_to_generator();
43038
+ init_ts_generator();
43039
+ init_AppsInTossModule();
43040
+ init_isMinVersionSupported();
43041
+ }
43042
+ });
43043
+
43044
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/storage.ts
43045
+ var init_storage = __esm({
43046
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/storage.ts"() {
43047
+ "use strict";
43048
+ init_AppsInTossModule();
42556
43049
  }
42557
43050
  });
42558
43051
 
@@ -42592,6 +43085,64 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42592
43085
  }
42593
43086
  });
42594
43087
 
43088
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/index.ts
43089
+ var init_native_modules2 = __esm({
43090
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/index.ts"() {
43091
+ "use strict";
43092
+ init_googleAdMob();
43093
+ init_googleAdMobV2();
43094
+ init_checkoutPayment();
43095
+ init_AppsInTossModule();
43096
+ init_AppsInTossModule();
43097
+ init_appLogin();
43098
+ init_eventLog();
43099
+ init_fetchAlbumPhotos();
43100
+ init_fetchContacts();
43101
+ init_getClipboardText();
43102
+ init_getCurrentLocation();
43103
+ init_setClipboardText();
43104
+ init_openCamera();
43105
+ init_getDeviceId();
43106
+ init_getOperationalEnvironment();
43107
+ init_getTossAppVersion();
43108
+ init_getTossShareLink();
43109
+ init_iap();
43110
+ init_isMinVersionSupported();
43111
+ init_saveBase64Data();
43112
+ init_setDeviceOrientation();
43113
+ init_storage();
43114
+ init_openGameCenterLeaderboard();
43115
+ init_getGameCenterGameProfile();
43116
+ init_submitGameCenterLeaderBoardScore();
43117
+ init_contactsViral();
43118
+ }
43119
+ });
43120
+
43121
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts
43122
+ function startUpdateLocation2(eventParams) {
43123
+ return appsInTossEvent2.addEventListener("updateLocationEvent", eventParams);
43124
+ }
43125
+ var init_startUpdateLocation = __esm({
43126
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts"() {
43127
+ "use strict";
43128
+ init_appsInTossEvent();
43129
+ init_native_modules2();
43130
+ startUpdateLocation2.openPermissionDialog = getCurrentLocation2.openPermissionDialog;
43131
+ startUpdateLocation2.getPermission = getCurrentLocation2.getPermission;
43132
+ }
43133
+ });
43134
+
43135
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts
43136
+ function onVisibilityChangedByTransparentServiceWeb2(eventParams) {
43137
+ return appsInTossEvent2.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
43138
+ }
43139
+ var init_onVisibilityChangedByTransparentServiceWeb = __esm({
43140
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts"() {
43141
+ "use strict";
43142
+ init_appsInTossEvent();
43143
+ }
43144
+ });
43145
+
42595
43146
  // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/event-bridges.ts
42596
43147
  var event_bridges_exports = {};
42597
43148
  __export(event_bridges_exports, {
@@ -42602,7 +43153,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
42602
43153
  return onVisibilityChangedByTransparentServiceWeb2;
42603
43154
  },
42604
43155
  startUpdateLocation: function() {
42605
- return startUpdateLocation;
43156
+ return startUpdateLocation2;
42606
43157
  }
42607
43158
  });
42608
43159
  var init_event_bridges = __esm({
@@ -43509,7 +44060,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43509
44060
  var createHandleOnError = function(functionName, eventId) {
43510
44061
  return function(error) {
43511
44062
  var _ref_current;
43512
- (_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 "));
44063
+ var serializedError = serializeError(error);
44064
+ (_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 "));
43513
44065
  };
43514
44066
  };
43515
44067
  var $onMessage = (0, import_react222.useCallback)(
@@ -43914,8 +44466,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
43914
44466
  ];
43915
44467
  });
43916
44468
  }),
43917
- /** internal */
43918
- openPermissionDialog: AppsInTossModule.openPermissionDialog,
44469
+ /** permissions */
44470
+ requestPermission: requestPermission2,
44471
+ openPermissionDialog: openPermissionDialog2,
44472
+ getPermission: getPermission2,
44473
+ getClipboardText: getClipboardText2,
44474
+ setClipboardText: setClipboardText2,
44475
+ fetchAlbumPhotos: fetchAlbumPhotos2,
44476
+ fetchContacts: fetchContacts2,
44477
+ getCurrentLocation: getCurrentLocation2,
44478
+ openCamera: openCamera2,
43919
44479
  /** Storage */
43920
44480
  getStorageItem: Storage.getItem,
43921
44481
  setStorageItem: Storage.setItem,
@@ -44012,7 +44572,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44012
44572
  }));
44013
44573
  }
44014
44574
  var import_react_native207, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime216, import_react213, import_react_native215, import_react214, import_react215, import_react_native222, import_jsx_runtime217, import_jsx_runtime218, import_react216, import_jsx_runtime219, import_react217, import_react_native226, import_react218, import_react_native227, import_react219, import_react_native229, import_react220, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_react221, import_jsx_runtime223, import_react222, import_react_native234, import_react223, import_jsx_runtime224, 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;
44015
- var init_dist7 = __esm({
44575
+ var init_dist8 = __esm({
44016
44576
  "../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
44017
44577
  "use strict";
44018
44578
  init_async_to_generator();
@@ -44028,14 +44588,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44028
44588
  init_ts_generator();
44029
44589
  init_dist3();
44030
44590
  init_dist3();
44031
- init_dist5();
44591
+ init_dist6();
44032
44592
  init_src3();
44033
44593
  init_esm9();
44034
44594
  import_react_native207 = __toESM(require_react_native(), 1);
44035
- init_dist5();
44595
+ init_dist6();
44036
44596
  init_src3();
44037
44597
  import_react209 = __toESM(require_react(), 1);
44038
- init_dist5();
44598
+ init_dist6();
44039
44599
  init_src3();
44040
44600
  import_react210 = __toESM(require_react(), 1);
44041
44601
  init_src3();
@@ -44044,34 +44604,34 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44044
44604
  init_src3();
44045
44605
  import_react212 = __toESM(require_react(), 1);
44046
44606
  import_jsx_runtime216 = __toESM(require_jsx_runtime(), 1);
44047
- init_dist5();
44607
+ init_dist6();
44048
44608
  init_src3();
44049
44609
  init_esm9();
44050
44610
  init_private2();
44051
- init_dist6();
44611
+ init_dist7();
44052
44612
  import_react213 = __toESM(require_react(), 1);
44053
44613
  import_react_native215 = __toESM(require_react_native(), 1);
44054
- init_dist5();
44614
+ init_dist6();
44055
44615
  init_src3();
44056
- init_dist5();
44616
+ init_dist6();
44057
44617
  init_src3();
44058
44618
  init_esm9();
44059
44619
  init_private2();
44060
44620
  import_react214 = __toESM(require_react(), 1);
44061
- init_dist5();
44621
+ init_dist6();
44062
44622
  init_src3();
44063
- init_dist5();
44623
+ init_dist6();
44064
44624
  init_src3();
44065
44625
  init_esm9();
44066
44626
  import_react215 = __toESM(require_react(), 1);
44067
44627
  import_react_native222 = __toESM(require_react_native(), 1);
44068
44628
  import_jsx_runtime217 = __toESM(require_jsx_runtime(), 1);
44069
44629
  import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
44070
- init_dist5();
44630
+ init_dist6();
44071
44631
  init_esm9();
44072
44632
  import_react216 = __toESM(require_react(), 1);
44073
44633
  import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
44074
- init_dist5();
44634
+ init_dist6();
44075
44635
  init_async_bridges();
44076
44636
  init_constant_bridges2();
44077
44637
  init_event_bridges();
@@ -44082,40 +44642,41 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44082
44642
  init_private2();
44083
44643
  import_react217 = __toESM(require_react(), 1);
44084
44644
  import_react_native226 = __toESM(require_react_native(), 1);
44085
- init_dist5();
44645
+ init_dist6();
44086
44646
  init_react_native_webview();
44087
44647
  import_react218 = __toESM(require_react(), 1);
44088
44648
  import_react_native227 = __toESM(require_react_native(), 1);
44089
- init_dist5();
44649
+ init_dist6();
44090
44650
  init_esm9();
44091
44651
  import_react219 = __toESM(require_react(), 1);
44092
44652
  import_react_native229 = __toESM(require_react_native(), 1);
44093
- init_dist5();
44653
+ init_dist6();
44094
44654
  init_src3();
44095
44655
  init_esm9();
44096
- init_dist6();
44656
+ init_dist7();
44097
44657
  import_react220 = __toESM(require_react(), 1);
44098
44658
  init_esm9();
44099
44659
  init_private2();
44100
44660
  import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
44101
44661
  init_src3();
44102
- init_dist5();
44662
+ init_dist6();
44103
44663
  import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
44104
44664
  import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
44105
44665
  init_react_native_webview();
44106
44666
  import_react221 = __toESM(require_react(), 1);
44107
44667
  import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
44108
44668
  import_react222 = __toESM(require_react(), 1);
44109
- init_dist5();
44669
+ init_dist6();
44110
44670
  import_react_native234 = __toESM(require_react_native(), 1);
44111
- init_dist5();
44671
+ init_dist6();
44112
44672
  init_src3();
44113
44673
  import_react223 = __toESM(require_react(), 1);
44114
- init_dist5();
44674
+ init_dist6();
44115
44675
  init_src3();
44116
44676
  import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
44117
44677
  init_dist3();
44118
- init_dist5();
44678
+ init_dist6();
44679
+ init_dist4();
44119
44680
  env = {
44120
44681
  getDeploymentId: function() {
44121
44682
  var _global___appsInToss;
@@ -44739,7 +45300,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44739
45300
  "react-native/pages/index.tsx"() {
44740
45301
  "use strict";
44741
45302
  import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
44742
- init_dist7();
45303
+ init_dist8();
44743
45304
  import_react_native237 = __toESM(require_react_native(), 1);
44744
45305
  }
44745
45306
  });
@@ -45331,7 +45892,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45331
45892
  (0, import_runtime.exposeModule)(__container, "./ServiceEntry", app_exports);
45332
45893
 
45333
45894
  // react-native/src/_app.tsx
45334
- init_dist7();
45895
+ init_dist8();
45335
45896
 
45336
45897
  // react-native/context.ts
45337
45898
  var files = /* @__PURE__ */ new Map();