@ozdao/martyrs 0.2.565 → 0.2.566
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/martyrs/dist/main-B9o1iBAZ.js +943 -0
- package/dist/martyrs/dist/main-B9o1iBAZ.js.map +1 -0
- package/dist/martyrs/dist/web-BF3ijvEr.js +55 -0
- package/dist/martyrs/dist/web-BF3ijvEr.js.map +1 -0
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js +96 -0
- package/dist/martyrs/src/components/BottomSheet/BottomSheet.vue.js.map +1 -0
- package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +1 -0
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/martyrs/src/modules/events/events.client.js +15 -12
- package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js +95 -0
- package/dist/martyrs/src/modules/music/components/blocks/ActionButtons.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +5 -2
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +24 -24
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/layouts/MusicBottomPlayer.vue.js +31 -6
- package/dist/martyrs/src/modules/music/components/layouts/MusicBottomPlayer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +120 -205
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.js +9 -13
- package/dist/martyrs/src/modules/music/components/pages/MusicHome.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +166 -245
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +135 -220
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +171 -0
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +31 -153
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/PlayerControls.vue.js +96 -0
- package/dist/martyrs/src/modules/music/components/player/PlayerControls.vue.js.map +1 -0
- package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js +55 -27
- package/dist/martyrs/src/modules/music/components/player/VolumeControl.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/tonar.png.js +5 -0
- package/dist/martyrs/src/modules/music/components/player/tonar.png.js.map +1 -0
- package/dist/martyrs/src/modules/music/store/albums.js +8 -2
- package/dist/martyrs/src/modules/music/store/albums.js.map +1 -1
- package/dist/martyrs/src/modules/music/store/player.js +83 -65
- package/dist/martyrs/src/modules/music/store/player.js.map +1 -1
- package/dist/martyrs/src/modules/music/store/tracks.js +4 -13
- package/dist/martyrs/src/modules/music/store/tracks.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.js +2 -2
- package/dist/martyrs.css +1 -1
- package/dist/music.server.js +33 -6
- package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js +1 -0
- package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js.map +1 -0
- package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1 → @capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4}/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js +16 -1
- package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js.map +1 -0
- package/dist/node_modules/.pnpm/{@capacitor_core@7.0.1 → @capacitor_core@7.4.4}/node_modules/@capacitor/core/dist/index.js +2 -1
- package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/web.js +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_device@7.0.0_@capacitor_core@7.0.1 → @capacitor_device@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/device/dist/esm/web.js.map +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/definitions.js.map +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_push-notifications@7.0.0_@capacitor_core@7.0.1 → @capacitor_push-notifications@7.0.3_@capacitor_core@7.4.4}/node_modules/@capacitor/push-notifications/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/{@capacitor_push-notifications@7.0.0_@capacitor_core@7.0.1 → @capacitor_push-notifications@7.0.3_@capacitor_core@7.4.4}/node_modules/@capacitor/push-notifications/dist/esm/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js +1 -1
- package/dist/node_modules/.pnpm/{capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.0.1 → capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4}/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js.map +1 -1
- package/dist/style.css +214 -138
- package/package.json +1 -1
- package/src/components/BottomSheet/BottomSheet.vue +4 -4
- package/src/modules/LAYOUT.MD +767 -0
- package/src/modules/core/views/components/layouts/Client.vue +1 -1
- package/src/modules/events/events.client.js +3 -0
- package/src/modules/music/components/blocks/ActionButtons.vue +74 -0
- package/src/modules/music/components/cards/AlbumCard.vue +1 -1
- package/src/modules/music/components/cards/ArtistCardSmall.vue +8 -6
- package/src/modules/music/components/layouts/MusicBottomPlayer.vue +94 -4
- package/src/modules/music/components/pages/Album.vue +55 -67
- package/src/modules/music/components/pages/MusicHome.vue +4 -6
- package/src/modules/music/components/pages/Playlist.vue +61 -70
- package/src/modules/music/components/pages/Track.vue +54 -71
- package/src/modules/music/components/player/FullscreenPlayer.vue +248 -0
- package/src/modules/music/components/player/MusicPlayer.vue +21 -216
- package/src/modules/music/components/player/PlayerControls.vue +112 -0
- package/src/modules/music/components/player/Visualizer.vue +151 -0
- package/src/modules/music/components/player/VolumeControl.vue +75 -23
- package/src/modules/music/components/player/tonar.png +0 -0
- package/src/modules/music/routes/albums.routes.js +13 -12
- package/src/modules/music/routes/tracks.routes.js +39 -0
- package/src/modules/music/store/albums.js +10 -2
- package/src/modules/music/store/player.js +101 -89
- package/src/modules/music/store/tracks.js +5 -21
- package/src/styles/config.scss +6 -6
- package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.1.0_@capacitor_core@7.0.1/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js.map +0 -1
- package/dist/node_modules/.pnpm/@capacitor_core@7.0.1/node_modules/@capacitor/core/dist/index.js.map +0 -1
- /package/dist/node_modules/.pnpm/{@capacitor_keyboard@7.0.0_@capacitor_core@7.0.1 → @capacitor_keyboard@7.0.1_@capacitor_core@7.4.4}/node_modules/@capacitor/keyboard/dist/esm/definitions.js +0 -0
package/dist/music.server.js
CHANGED
|
@@ -220,6 +220,7 @@ function setupTracksRoutes(app, db) {
|
|
|
220
220
|
tracksCRUD.policies.disableForAction("recent");
|
|
221
221
|
tracksCRUD.policies.disableForAction("popular");
|
|
222
222
|
tracksCRUD.policies.disableForAction("by-genre");
|
|
223
|
+
tracksCRUD.policies.disableForAction("related");
|
|
223
224
|
tracksCRUD.addAction("get-by-url", {
|
|
224
225
|
method: "get",
|
|
225
226
|
path: "/url/:url",
|
|
@@ -307,6 +308,32 @@ function setupTracksRoutes(app, db) {
|
|
|
307
308
|
}
|
|
308
309
|
}
|
|
309
310
|
});
|
|
311
|
+
tracksCRUD.addAction("related", {
|
|
312
|
+
method: "get",
|
|
313
|
+
path: "/related/:trackUrl",
|
|
314
|
+
auth: false,
|
|
315
|
+
abac: { enabled: false },
|
|
316
|
+
handler: async (req, res) => {
|
|
317
|
+
try {
|
|
318
|
+
const track = await db.track.findOne({ url: req.params.trackUrl });
|
|
319
|
+
if (!track) {
|
|
320
|
+
return res.status(404).json({ error: "Track not found" });
|
|
321
|
+
}
|
|
322
|
+
const limit = parseInt(req.query.limit) || 10;
|
|
323
|
+
const relatedTracks = await db.track.find({
|
|
324
|
+
artist: track.artist,
|
|
325
|
+
_id: { $ne: track._id },
|
|
326
|
+
// Исключить текущий трек
|
|
327
|
+
status: "published",
|
|
328
|
+
isPublic: true
|
|
329
|
+
}).populate("artist", "name url photoUrl isVerified").populate("album", "title url coverArt").sort({ playCount: -1, releaseDate: -1 }).limit(limit);
|
|
330
|
+
res.json(relatedTracks);
|
|
331
|
+
} catch (error) {
|
|
332
|
+
console.error(error);
|
|
333
|
+
res.status(500).json({ error: error.message });
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
});
|
|
310
337
|
return tracksCRUD;
|
|
311
338
|
}
|
|
312
339
|
function artistsVerifierFactory(db) {
|
|
@@ -815,13 +842,13 @@ function setupAlbumsRoutes(app, db) {
|
|
|
815
842
|
handler: async (req, res) => {
|
|
816
843
|
try {
|
|
817
844
|
const limit = parseInt(req.query.limit) || 10;
|
|
845
|
+
const skip = parseInt(req.query.skip) || 0;
|
|
846
|
+
const sortParam = req.query.sortParam || "releaseDate";
|
|
847
|
+
const sortOrder = req.query.sortOrder === "asc" ? 1 : -1;
|
|
848
|
+
const sortObject = { [sortParam]: sortOrder };
|
|
818
849
|
const featuredAlbums = await db.album.find({
|
|
819
|
-
status: "published"
|
|
820
|
-
|
|
821
|
-
$gte: new Date(Date.now() - 90 * 24 * 60 * 60 * 1e3)
|
|
822
|
-
// последние 90 дней
|
|
823
|
-
}
|
|
824
|
-
}).populate("artists", "name url photoUrl isVerified").sort({ createdAt: -1 }).limit(limit);
|
|
850
|
+
status: "published"
|
|
851
|
+
}).populate("artists", "name url photoUrl isVerified").sort(sortObject).skip(skip).limit(limit);
|
|
825
852
|
for (const album of featuredAlbums) {
|
|
826
853
|
const trackCount = await db.track.countDocuments({
|
|
827
854
|
album: album._id,
|
|
@@ -35,6 +35,7 @@ var Resolution;
|
|
|
35
35
|
Resolution2[Resolution2["640x480"] = 0] = "640x480";
|
|
36
36
|
Resolution2[Resolution2["1280x720"] = 1] = "1280x720";
|
|
37
37
|
Resolution2[Resolution2["1920x1080"] = 2] = "1920x1080";
|
|
38
|
+
Resolution2[Resolution2["3840x2160"] = 3] = "3840x2160";
|
|
38
39
|
})(Resolution || (Resolution = {}));
|
|
39
40
|
var LensFacing;
|
|
40
41
|
(function(LensFacing2) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor-mlkit+barcode-scanning@7.3.0_@capacitor+core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js"],"sourcesContent":["/**\n * @since 0.0.1\n */\nexport var BarcodeFormat;\n(function (BarcodeFormat) {\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"Aztec\"] = \"AZTEC\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"Codabar\"] = \"CODABAR\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"Code39\"] = \"CODE_39\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"Code93\"] = \"CODE_93\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"Code128\"] = \"CODE_128\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"DataMatrix\"] = \"DATA_MATRIX\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"Ean8\"] = \"EAN_8\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"Ean13\"] = \"EAN_13\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"Itf\"] = \"ITF\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"Pdf417\"] = \"PDF_417\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"QrCode\"] = \"QR_CODE\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"UpcA\"] = \"UPC_A\";\n /**\n * Only available on Android and iOS.\n *\n * @since 0.0.1\n */\n BarcodeFormat[\"UpcE\"] = \"UPC_E\";\n})(BarcodeFormat || (BarcodeFormat = {}));\n/**\n * @since 0.0.1\n */\nexport var BarcodeValueType;\n(function (BarcodeValueType) {\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"CalendarEvent\"] = \"CALENDAR_EVENT\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"ContactInfo\"] = \"CONTACT_INFO\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"DriversLicense\"] = \"DRIVERS_LICENSE\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"Email\"] = \"EMAIL\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"Geo\"] = \"GEO\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"Isbn\"] = \"ISBN\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"Phone\"] = \"PHONE\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"Product\"] = \"PRODUCT\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"Sms\"] = \"SMS\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"Text\"] = \"TEXT\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"Url\"] = \"URL\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"Wifi\"] = \"WIFI\";\n /**\n * @since 0.0.1\n */\n BarcodeValueType[\"Unknown\"] = \"UNKNOWN\";\n})(BarcodeValueType || (BarcodeValueType = {}));\n/**\n * @since 7.0.0\n */\nexport var Resolution;\n(function (Resolution) {\n /**\n * @since 7.0.0\n */\n Resolution[Resolution[\"640x480\"] = 0] = \"640x480\";\n /**\n * @since 7.0.0\n */\n Resolution[Resolution[\"1280x720\"] = 1] = \"1280x720\";\n /**\n * @since 7.0.0\n */\n Resolution[Resolution[\"1920x1080\"] = 2] = \"1920x1080\";\n /**\n * @since 7.2.0\n */\n Resolution[Resolution[\"3840x2160\"] = 3] = \"3840x2160\";\n})(Resolution || (Resolution = {}));\n/**\n * @since 0.0.1\n */\nexport var LensFacing;\n(function (LensFacing) {\n /**\n * @since 0.0.1\n */\n LensFacing[\"Front\"] = \"FRONT\";\n /**\n * @since 0.0.1\n */\n LensFacing[\"Back\"] = \"BACK\";\n})(LensFacing || (LensFacing = {}));\n/**\n * @since 5.1.0\n */\nexport var GoogleBarcodeScannerModuleInstallState;\n(function (GoogleBarcodeScannerModuleInstallState) {\n /**\n * @since 5.1.0\n */\n GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState[\"UNKNOWN\"] = 0] = \"UNKNOWN\";\n /**\n * @since 5.1.0\n */\n GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState[\"PENDING\"] = 1] = \"PENDING\";\n /**\n * @since 5.1.0\n */\n GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState[\"DOWNLOADING\"] = 2] = \"DOWNLOADING\";\n /**\n * @since 5.1.0\n */\n GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState[\"CANCELED\"] = 3] = \"CANCELED\";\n /**\n * @since 5.1.0\n */\n GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState[\"COMPLETED\"] = 4] = \"COMPLETED\";\n /**\n * @since 5.1.0\n */\n GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState[\"FAILED\"] = 5] = \"FAILED\";\n /**\n * @since 5.1.0\n */\n GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState[\"INSTALLING\"] = 6] = \"INSTALLING\";\n /**\n * @since 5.1.0\n */\n GoogleBarcodeScannerModuleInstallState[GoogleBarcodeScannerModuleInstallState[\"DOWNLOAD_PAUSED\"] = 7] = \"DOWNLOAD_PAUSED\";\n})(GoogleBarcodeScannerModuleInstallState || (GoogleBarcodeScannerModuleInstallState = {}));\n/**\n * @since 7.0.0\n */\nexport var AddressType;\n(function (AddressType) {\n /**\n * @since 7.0.0\n */\n AddressType[AddressType[\"HOME\"] = 0] = \"HOME\";\n /**\n * @since 7.0.0\n */\n AddressType[AddressType[\"UNKNOWN\"] = 1] = \"UNKNOWN\";\n /**\n * @since 7.0.0\n */\n AddressType[AddressType[\"WORK\"] = 2] = \"WORK\";\n})(AddressType || (AddressType = {}));\n/**\n * @since 7.0.0\n */\nexport var EmailFormatType;\n(function (EmailFormatType) {\n /**\n * @since 7.0.0\n */\n EmailFormatType[EmailFormatType[\"HOME\"] = 0] = \"HOME\";\n /**\n * @since 7.0.0\n */\n EmailFormatType[EmailFormatType[\"UNKNOWN\"] = 1] = \"UNKNOWN\";\n /**\n * @since 7.0.0\n */\n EmailFormatType[EmailFormatType[\"WORK\"] = 2] = \"WORK\";\n})(EmailFormatType || (EmailFormatType = {}));\n/**\n * @since 7.0.0\n */\nexport var PhoneFormatType;\n(function (PhoneFormatType) {\n /**\n * @since 7.0.0\n */\n PhoneFormatType[PhoneFormatType[\"FAX\"] = 0] = \"FAX\";\n /**\n * @since 7.0.0\n */\n PhoneFormatType[PhoneFormatType[\"HOME\"] = 1] = \"HOME\";\n /**\n * @since 7.0.0\n */\n PhoneFormatType[PhoneFormatType[\"MOBILE\"] = 2] = \"MOBILE\";\n /**\n * @since 7.0.0\n */\n PhoneFormatType[PhoneFormatType[\"UNKNOWN\"] = 3] = \"UNKNOWN\";\n /**\n * @since 7.0.0\n */\n PhoneFormatType[PhoneFormatType[\"WORK\"] = 4] = \"WORK\";\n})(PhoneFormatType || (PhoneFormatType = {}));\n/**\n * @since 7.0.0\n */\nexport var WifiEncryptionType;\n(function (WifiEncryptionType) {\n /**\n * @since 7.0.0\n */\n WifiEncryptionType[WifiEncryptionType[\"OPEN\"] = 1] = \"OPEN\";\n /**\n * @since 7.0.0\n */\n WifiEncryptionType[WifiEncryptionType[\"WEP\"] = 2] = \"WEP\";\n /**\n * @since 7.0.0\n */\n WifiEncryptionType[WifiEncryptionType[\"WPA\"] = 3] = \"WPA\";\n})(WifiEncryptionType || (WifiEncryptionType = {}));\n//# sourceMappingURL=definitions.js.map"],"names":["BarcodeFormat","Bar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AC,IAAI;AAIlD,EAAAA,iBAAgBA,iBAAgB,MAAM,IAAI,CAAC,IAAI;AACnD,GAAG,oBAAoB,kBAAkB,CAAA,EAAG;AAIlC,IAAC;AAAA,CACV,SAAUC,kBAAiB;AAIxB,EAAAA,iBAAgBA,iBAAgB,KAAK,IAAI,CAAC,IAAI;AAI9C,EAAAA,iBAAgBA,iBAAgB,MAAM,IAAI,CAAC,IAAI;AAI/C,EAAAA,iBAAgBA,iBAAgB,QAAQ,IAAI,CAAC,IAAI;AAIjD,EAAAA,iBAAgBA,iBAAgB,SAAS,IAAI,CAAC,IAAI;AAIlD,EAAAA,iBAAgBA,iBAAgB,MAAM,IAAI,CAAC,IAAI;AACnD,GAAG,oBAAoB,kBAAkB,CAAA,EAAG;AAIlC,IAAC;AAAA,CACV,SAAUC,qBAAoB;AAI3B,EAAAA,oBAAmBA,oBAAmB,MAAM,IAAI,CAAC,IAAI;AAIrD,EAAAA,oBAAmBA,oBAAmB,KAAK,IAAI,CAAC,IAAI;AAIpD,EAAAA,oBAAmBA,oBAAmB,KAAK,IAAI,CAAC,IAAI;AACxD,GAAG,uBAAuB,qBAAqB,CAAA,EAAG;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { registerPlugin } from "../../../../../../@capacitor_core@7.
|
|
1
|
+
import { registerPlugin } from "../../../../../../@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js";
|
|
2
2
|
import { AddressType, BarcodeFormat, BarcodeValueType, EmailFormatType, GoogleBarcodeScannerModuleInstallState, LensFacing, PhoneFormatType, Resolution, WifiEncryptionType } from "./definitions.js";
|
|
3
3
|
const BarcodeScanner = registerPlugin("BarcodeScanner", {
|
|
4
4
|
web: () => import("./web.js").then((m) => new m.BarcodeScannerWeb())
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor-mlkit+barcode-scanning@7.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor-mlkit+barcode-scanning@7.3.0_@capacitor+core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst BarcodeScanner = registerPlugin('BarcodeScanner', {\n web: () => import('./web').then(m => new m.BarcodeScannerWeb()),\n});\nexport * from './definitions';\nexport { BarcodeScanner };\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;AACK,MAAC,iBAAiB,eAAe,kBAAkB;AAAA,EACpD,KAAK,MAAM,OAAO,UAAO,EAAE,KAAK,OAAK,IAAI,EAAE,mBAAmB;AAClE,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WebPlugin, CapacitorException, ExceptionCode } from "../../../../../../@capacitor_core@7.
|
|
1
|
+
import { WebPlugin, CapacitorException, ExceptionCode } from "../../../../../../@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js";
|
|
2
2
|
import { LensFacing, BarcodeValueType } from "./definitions.js";
|
|
3
3
|
class BarcodeScannerWeb extends WebPlugin {
|
|
4
4
|
constructor() {
|
|
@@ -64,6 +64,21 @@ class BarcodeScannerWeb extends WebPlugin {
|
|
|
64
64
|
async isSupported() {
|
|
65
65
|
return { supported: this._isSupported };
|
|
66
66
|
}
|
|
67
|
+
async enableTorch() {
|
|
68
|
+
throw this.createUnavailableException();
|
|
69
|
+
}
|
|
70
|
+
async disableTorch() {
|
|
71
|
+
throw this.createUnavailableException();
|
|
72
|
+
}
|
|
73
|
+
async toggleTorch() {
|
|
74
|
+
throw this.createUnavailableException();
|
|
75
|
+
}
|
|
76
|
+
async isTorchEnabled() {
|
|
77
|
+
throw this.createUnavailableException;
|
|
78
|
+
}
|
|
79
|
+
async isTorchAvailable() {
|
|
80
|
+
throw this.createUnavailableException();
|
|
81
|
+
}
|
|
67
82
|
async setZoomRatio(_options) {
|
|
68
83
|
throw this.createUnavailableException();
|
|
69
84
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor-mlkit+barcode-scanning@7.3.0_@capacitor+core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js"],"sourcesContent":["import { CapacitorException, ExceptionCode, WebPlugin } from '@capacitor/core';\nimport { BarcodeValueType, LensFacing } from './definitions';\nexport class BarcodeScannerWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this._isSupported = 'BarcodeDetector' in window;\n this.errorVideoElementMissing = 'videoElement must be provided.';\n this.eventBarcodesScanned = 'barcodesScanned';\n }\n async startScan(options) {\n if (!this._isSupported) {\n throw this.createUnavailableException();\n }\n if (!(options === null || options === void 0 ? void 0 : options.videoElement)) {\n throw new Error(this.errorVideoElementMissing);\n }\n this.videoElement = options.videoElement;\n this.stream = await navigator.mediaDevices.getUserMedia({\n video: {\n facingMode: {\n ideal: (options === null || options === void 0 ? void 0 : options.lensFacing) === LensFacing.Front ? 'user' : 'environment',\n },\n },\n audio: false,\n });\n options.videoElement.srcObject = this.stream;\n await options.videoElement.play();\n const barcodeDetector = new BarcodeDetector();\n this.intervalId = window.setInterval(async () => {\n if (!options.videoElement) {\n return;\n }\n const barcodes = await barcodeDetector.detect(options.videoElement);\n if (barcodes.length === 0) {\n return;\n }\n else {\n this.handleScannedBarcodes(barcodes);\n }\n }, 500);\n }\n async stopScan() {\n if (!this._isSupported) {\n throw this.createUnavailableException();\n }\n if (this.intervalId) {\n clearInterval(this.intervalId);\n this.intervalId = undefined;\n }\n if (this.stream) {\n this.stream.getTracks().forEach(track => track.stop());\n this.stream = undefined;\n }\n if (this.videoElement) {\n this.videoElement.srcObject = null;\n this.videoElement = undefined;\n }\n }\n async readBarcodesFromImage(_options) {\n throw this.createUnavailableException();\n }\n async scan() {\n throw this.createUnavailableException();\n }\n async isSupported() {\n return { supported: this._isSupported };\n }\n async enableTorch() {\n throw this.createUnavailableException();\n }\n async disableTorch() {\n throw this.createUnavailableException();\n }\n async toggleTorch() {\n throw this.createUnavailableException();\n }\n async isTorchEnabled() {\n throw this.createUnavailableException;\n }\n async isTorchAvailable() {\n throw this.createUnavailableException();\n }\n async setZoomRatio(_options) {\n throw this.createUnavailableException();\n }\n async getZoomRatio() {\n throw this.createUnavailableException();\n }\n async getMinZoomRatio() {\n throw this.createUnavailableException();\n }\n async getMaxZoomRatio() {\n throw this.createUnavailableException();\n }\n async openSettings() {\n throw this.createUnavailableException();\n }\n async isGoogleBarcodeScannerModuleAvailable() {\n throw this.createUnavailableException();\n }\n async installGoogleBarcodeScannerModule() {\n throw this.createUnavailableException();\n }\n async checkPermissions() {\n try {\n const result = await navigator.permissions.query({\n name: 'camera',\n });\n return {\n camera: result.state,\n };\n }\n catch (error) {\n return {\n camera: 'prompt',\n };\n }\n }\n async requestPermissions() {\n try {\n const stream = await navigator.mediaDevices.getUserMedia({ video: true });\n stream.getTracks().forEach(track => track.stop());\n return {\n camera: 'granted',\n };\n }\n catch (error) {\n return {\n camera: 'denied',\n };\n }\n }\n createUnavailableException() {\n return new CapacitorException('This plugin method is not available on this platform.', ExceptionCode.Unavailable);\n }\n handleScannedBarcodes(barcodes) {\n const result = {\n barcodes: barcodes.map(barcode => ({\n cornerPoints: [\n [barcode.cornerPoints[0].x, barcode.cornerPoints[0].y],\n [barcode.cornerPoints[1].x, barcode.cornerPoints[1].y],\n [barcode.cornerPoints[2].x, barcode.cornerPoints[2].y],\n [barcode.cornerPoints[3].x, barcode.cornerPoints[3].y],\n ],\n displayValue: barcode.rawValue,\n rawValue: barcode.rawValue,\n format: barcode.format.toUpperCase(),\n valueType: BarcodeValueType.Unknown,\n })),\n };\n this.notifyListeners(this.eventBarcodesScanned, result);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":[],"mappings":";;AAEO,MAAM,0BAA0B,UAAU;AAAA,EAC7C,cAAc;AACV,UAAM,GAAG,SAAS;AAClB,SAAK,eAAe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qBAAqB;AACvB,QAAI;AACA,YAAM,SAAS,MAAM,UAAU,aAAa,aAAa,EAAE,OAAO,MAAM;AACxE,aAAO,UAAS,EAAG,QAAQ,WAAS,MAAM,MAAM;AAChD,aAAO;AAAA,QACH,QAAQ;AAAA,MACxB;AAAA,IACQ,SACO,OAAO;AACV,aAAO;AAAA,QACH,QAAQ;AAAA,MACxB;AAAA,IACQ;AAAA,EACJ;AAAA,EACA,6BAA6B;AACzB,WAAO,IAAI,mBAAmB,yDAAyD,cAAc,WAAW;AAAA,EACpH;AAAA,EACA,sBAAsB,UAAU;AAC5B,UAAM,SAAS;AAAA,MACX,UAAU,SAAS,IAAI,cAAY;AAAA,QAC/B,cAAc;AAAA,UACV,CAAC,QAAQ,aAAa,CAAC,EAAE,GAAG,QAAQ,aAAa,CAAC,EAAE,CAAC;AAAA,UACrD,CAAC,QAAQ,aAAa,CAAC,EAAE,GAAG,QAAQ,aAAa,CAAC,EAAE,CAAC;AAAA,UACrD,CAAC,QAAQ,aAAa,CAAC,EAAE,GAAG,QAAQ,aAAa,CAAC,EAAE,CAAC;AAAA,UACrD,CAAC,QAAQ,aAAa,CAAC,EAAE,GAAG,QAAQ,aAAa,CAAC,EAAE,CAAC;AAAA,QACzE;AAAA,QACgB,cAAc,QAAQ;AAAA,QACtB,UAAU,QAAQ;AAAA,QAClB,QAAQ,QAAQ,OAAO,YAAW;AAAA,QAClC,WAAW,iBAAiB;AAAA,MAC5C,EAAc;AAAA,IACd;AACQ,SAAK,gBAAgB,KAAK,sBAAsB,MAAM;AAAA,EAC1D;AACJ;","x_google_ignoreList":[0]}
|
|
@@ -215,7 +215,8 @@ class WebPlugin {
|
|
|
215
215
|
listeners.forEach((listener) => listener(data));
|
|
216
216
|
}
|
|
217
217
|
hasListeners(eventName) {
|
|
218
|
-
|
|
218
|
+
var _a;
|
|
219
|
+
return !!((_a = this.listeners[eventName]) === null || _a === void 0 ? void 0 : _a.length);
|
|
219
220
|
}
|
|
220
221
|
registerWindowListener(windowEventName, pluginEventName) {
|
|
221
222
|
this.windowListeners[pluginEventName] = {
|
package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/.pnpm/@capacitor+core@7.4.4/node_modules/@capacitor/core/dist/index.js"],"sourcesContent":["/*! Capacitor: https://capacitorjs.com/ - MIT License */\nvar ExceptionCode;\n(function (ExceptionCode) {\n /**\n * API is not implemented.\n *\n * This usually means the API can't be used because it is not implemented for\n * the current platform.\n */\n ExceptionCode[\"Unimplemented\"] = \"UNIMPLEMENTED\";\n /**\n * API is not available.\n *\n * This means the API can't be used right now because:\n * - it is currently missing a prerequisite, such as network connectivity\n * - it requires a particular platform or browser version\n */\n ExceptionCode[\"Unavailable\"] = \"UNAVAILABLE\";\n})(ExceptionCode || (ExceptionCode = {}));\nclass CapacitorException extends Error {\n constructor(message, code, data) {\n super(message);\n this.message = message;\n this.code = code;\n this.data = data;\n }\n}\nconst getPlatformId = (win) => {\n var _a, _b;\n if (win === null || win === void 0 ? void 0 : win.androidBridge) {\n return 'android';\n }\n else if ((_b = (_a = win === null || win === void 0 ? void 0 : win.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.bridge) {\n return 'ios';\n }\n else {\n return 'web';\n }\n};\n\nconst createCapacitor = (win) => {\n const capCustomPlatform = win.CapacitorCustomPlatform || null;\n const cap = win.Capacitor || {};\n const Plugins = (cap.Plugins = cap.Plugins || {});\n const getPlatform = () => {\n return capCustomPlatform !== null ? capCustomPlatform.name : getPlatformId(win);\n };\n const isNativePlatform = () => getPlatform() !== 'web';\n const isPluginAvailable = (pluginName) => {\n const plugin = registeredPlugins.get(pluginName);\n if (plugin === null || plugin === void 0 ? void 0 : plugin.platforms.has(getPlatform())) {\n // JS implementation available for the current platform.\n return true;\n }\n if (getPluginHeader(pluginName)) {\n // Native implementation available.\n return true;\n }\n return false;\n };\n const getPluginHeader = (pluginName) => { var _a; return (_a = cap.PluginHeaders) === null || _a === void 0 ? void 0 : _a.find((h) => h.name === pluginName); };\n const handleError = (err) => win.console.error(err);\n const registeredPlugins = new Map();\n const registerPlugin = (pluginName, jsImplementations = {}) => {\n const registeredPlugin = registeredPlugins.get(pluginName);\n if (registeredPlugin) {\n console.warn(`Capacitor plugin \"${pluginName}\" already registered. Cannot register plugins twice.`);\n return registeredPlugin.proxy;\n }\n const platform = getPlatform();\n const pluginHeader = getPluginHeader(pluginName);\n let jsImplementation;\n const loadPluginImplementation = async () => {\n if (!jsImplementation && platform in jsImplementations) {\n jsImplementation =\n typeof jsImplementations[platform] === 'function'\n ? (jsImplementation = await jsImplementations[platform]())\n : (jsImplementation = jsImplementations[platform]);\n }\n else if (capCustomPlatform !== null && !jsImplementation && 'web' in jsImplementations) {\n jsImplementation =\n typeof jsImplementations['web'] === 'function'\n ? (jsImplementation = await jsImplementations['web']())\n : (jsImplementation = jsImplementations['web']);\n }\n return jsImplementation;\n };\n const createPluginMethod = (impl, prop) => {\n var _a, _b;\n if (pluginHeader) {\n const methodHeader = pluginHeader === null || pluginHeader === void 0 ? void 0 : pluginHeader.methods.find((m) => prop === m.name);\n if (methodHeader) {\n if (methodHeader.rtype === 'promise') {\n return (options) => cap.nativePromise(pluginName, prop.toString(), options);\n }\n else {\n return (options, callback) => cap.nativeCallback(pluginName, prop.toString(), options, callback);\n }\n }\n else if (impl) {\n return (_a = impl[prop]) === null || _a === void 0 ? void 0 : _a.bind(impl);\n }\n }\n else if (impl) {\n return (_b = impl[prop]) === null || _b === void 0 ? void 0 : _b.bind(impl);\n }\n else {\n throw new CapacitorException(`\"${pluginName}\" plugin is not implemented on ${platform}`, ExceptionCode.Unimplemented);\n }\n };\n const createPluginMethodWrapper = (prop) => {\n let remove;\n const wrapper = (...args) => {\n const p = loadPluginImplementation().then((impl) => {\n const fn = createPluginMethod(impl, prop);\n if (fn) {\n const p = fn(...args);\n remove = p === null || p === void 0 ? void 0 : p.remove;\n return p;\n }\n else {\n throw new CapacitorException(`\"${pluginName}.${prop}()\" is not implemented on ${platform}`, ExceptionCode.Unimplemented);\n }\n });\n if (prop === 'addListener') {\n p.remove = async () => remove();\n }\n return p;\n };\n // Some flair ✨\n wrapper.toString = () => `${prop.toString()}() { [capacitor code] }`;\n Object.defineProperty(wrapper, 'name', {\n value: prop,\n writable: false,\n configurable: false,\n });\n return wrapper;\n };\n const addListener = createPluginMethodWrapper('addListener');\n const removeListener = createPluginMethodWrapper('removeListener');\n const addListenerNative = (eventName, callback) => {\n const call = addListener({ eventName }, callback);\n const remove = async () => {\n const callbackId = await call;\n removeListener({\n eventName,\n callbackId,\n }, callback);\n };\n const p = new Promise((resolve) => call.then(() => resolve({ remove })));\n p.remove = async () => {\n console.warn(`Using addListener() without 'await' is deprecated.`);\n await remove();\n };\n return p;\n };\n const proxy = new Proxy({}, {\n get(_, prop) {\n switch (prop) {\n // https://github.com/facebook/react/issues/20030\n case '$$typeof':\n return undefined;\n case 'toJSON':\n return () => ({});\n case 'addListener':\n return pluginHeader ? addListenerNative : addListener;\n case 'removeListener':\n return removeListener;\n default:\n return createPluginMethodWrapper(prop);\n }\n },\n });\n Plugins[pluginName] = proxy;\n registeredPlugins.set(pluginName, {\n name: pluginName,\n proxy,\n platforms: new Set([...Object.keys(jsImplementations), ...(pluginHeader ? [platform] : [])]),\n });\n return proxy;\n };\n // Add in convertFileSrc for web, it will already be available in native context\n if (!cap.convertFileSrc) {\n cap.convertFileSrc = (filePath) => filePath;\n }\n cap.getPlatform = getPlatform;\n cap.handleError = handleError;\n cap.isNativePlatform = isNativePlatform;\n cap.isPluginAvailable = isPluginAvailable;\n cap.registerPlugin = registerPlugin;\n cap.Exception = CapacitorException;\n cap.DEBUG = !!cap.DEBUG;\n cap.isLoggingEnabled = !!cap.isLoggingEnabled;\n return cap;\n};\nconst initCapacitorGlobal = (win) => (win.Capacitor = createCapacitor(win));\n\nconst Capacitor = /*#__PURE__*/ initCapacitorGlobal(typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {});\nconst registerPlugin = Capacitor.registerPlugin;\n\n/**\n * Base class web plugins should extend.\n */\nclass WebPlugin {\n constructor() {\n this.listeners = {};\n this.retainedEventArguments = {};\n this.windowListeners = {};\n }\n addListener(eventName, listenerFunc) {\n let firstListener = false;\n const listeners = this.listeners[eventName];\n if (!listeners) {\n this.listeners[eventName] = [];\n firstListener = true;\n }\n this.listeners[eventName].push(listenerFunc);\n // If we haven't added a window listener for this event and it requires one,\n // go ahead and add it\n const windowListener = this.windowListeners[eventName];\n if (windowListener && !windowListener.registered) {\n this.addWindowListener(windowListener);\n }\n if (firstListener) {\n this.sendRetainedArgumentsForEvent(eventName);\n }\n const remove = async () => this.removeListener(eventName, listenerFunc);\n const p = Promise.resolve({ remove });\n return p;\n }\n async removeAllListeners() {\n this.listeners = {};\n for (const listener in this.windowListeners) {\n this.removeWindowListener(this.windowListeners[listener]);\n }\n this.windowListeners = {};\n }\n notifyListeners(eventName, data, retainUntilConsumed) {\n const listeners = this.listeners[eventName];\n if (!listeners) {\n if (retainUntilConsumed) {\n let args = this.retainedEventArguments[eventName];\n if (!args) {\n args = [];\n }\n args.push(data);\n this.retainedEventArguments[eventName] = args;\n }\n return;\n }\n listeners.forEach((listener) => listener(data));\n }\n hasListeners(eventName) {\n var _a;\n return !!((_a = this.listeners[eventName]) === null || _a === void 0 ? void 0 : _a.length);\n }\n registerWindowListener(windowEventName, pluginEventName) {\n this.windowListeners[pluginEventName] = {\n registered: false,\n windowEventName,\n pluginEventName,\n handler: (event) => {\n this.notifyListeners(pluginEventName, event);\n },\n };\n }\n unimplemented(msg = 'not implemented') {\n return new Capacitor.Exception(msg, ExceptionCode.Unimplemented);\n }\n unavailable(msg = 'not available') {\n return new Capacitor.Exception(msg, ExceptionCode.Unavailable);\n }\n async removeListener(eventName, listenerFunc) {\n const listeners = this.listeners[eventName];\n if (!listeners) {\n return;\n }\n const index = listeners.indexOf(listenerFunc);\n this.listeners[eventName].splice(index, 1);\n // If there are no more listeners for this type of event,\n // remove the window listener\n if (!this.listeners[eventName].length) {\n this.removeWindowListener(this.windowListeners[eventName]);\n }\n }\n addWindowListener(handle) {\n window.addEventListener(handle.windowEventName, handle.handler);\n handle.registered = true;\n }\n removeWindowListener(handle) {\n if (!handle) {\n return;\n }\n window.removeEventListener(handle.windowEventName, handle.handler);\n handle.registered = false;\n }\n sendRetainedArgumentsForEvent(eventName) {\n const args = this.retainedEventArguments[eventName];\n if (!args) {\n return;\n }\n delete this.retainedEventArguments[eventName];\n args.forEach((arg) => {\n this.notifyListeners(eventName, arg);\n });\n }\n}\n\nconst WebView = /*#__PURE__*/ registerPlugin('WebView');\n/******** END WEB VIEW PLUGIN ********/\n/******** COOKIES PLUGIN ********/\n/**\n * Safely web encode a string value (inspired by js-cookie)\n * @param str The string value to encode\n */\nconst encode = (str) => encodeURIComponent(str)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n/**\n * Safely web decode a string value (inspired by js-cookie)\n * @param str The string value to decode\n */\nconst decode = (str) => str.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent);\nclass CapacitorCookiesPluginWeb extends WebPlugin {\n async getCookies() {\n const cookies = document.cookie;\n const cookieMap = {};\n cookies.split(';').forEach((cookie) => {\n if (cookie.length <= 0)\n return;\n // Replace first \"=\" with CAP_COOKIE to prevent splitting on additional \"=\"\n let [key, value] = cookie.replace(/=/, 'CAP_COOKIE').split('CAP_COOKIE');\n key = decode(key).trim();\n value = decode(value).trim();\n cookieMap[key] = value;\n });\n return cookieMap;\n }\n async setCookie(options) {\n try {\n // Safely Encoded Key/Value\n const encodedKey = encode(options.key);\n const encodedValue = encode(options.value);\n // Clean & sanitize options\n const expires = `; expires=${(options.expires || '').replace('expires=', '')}`; // Default is \"; expires=\"\n const path = (options.path || '/').replace('path=', ''); // Default is \"path=/\"\n const domain = options.url != null && options.url.length > 0 ? `domain=${options.url}` : '';\n document.cookie = `${encodedKey}=${encodedValue || ''}${expires}; path=${path}; ${domain};`;\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async deleteCookie(options) {\n try {\n document.cookie = `${options.key}=; Max-Age=0`;\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async clearCookies() {\n try {\n const cookies = document.cookie.split(';') || [];\n for (const cookie of cookies) {\n document.cookie = cookie.replace(/^ +/, '').replace(/=.*/, `=;expires=${new Date().toUTCString()};path=/`);\n }\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async clearAllCookies() {\n try {\n await this.clearCookies();\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n}\nconst CapacitorCookies = registerPlugin('CapacitorCookies', {\n web: () => new CapacitorCookiesPluginWeb(),\n});\n// UTILITY FUNCTIONS\n/**\n * Read in a Blob value and return it as a base64 string\n * @param blob The blob value to convert to a base64 string\n */\nconst readBlobAsBase64 = async (blob) => new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => {\n const base64String = reader.result;\n // remove prefix \"data:application/pdf;base64,\"\n resolve(base64String.indexOf(',') >= 0 ? base64String.split(',')[1] : base64String);\n };\n reader.onerror = (error) => reject(error);\n reader.readAsDataURL(blob);\n});\n/**\n * Normalize an HttpHeaders map by lowercasing all of the values\n * @param headers The HttpHeaders object to normalize\n */\nconst normalizeHttpHeaders = (headers = {}) => {\n const originalKeys = Object.keys(headers);\n const loweredKeys = Object.keys(headers).map((k) => k.toLocaleLowerCase());\n const normalized = loweredKeys.reduce((acc, key, index) => {\n acc[key] = headers[originalKeys[index]];\n return acc;\n }, {});\n return normalized;\n};\n/**\n * Builds a string of url parameters that\n * @param params A map of url parameters\n * @param shouldEncode true if you should encodeURIComponent() the values (true by default)\n */\nconst buildUrlParams = (params, shouldEncode = true) => {\n if (!params)\n return null;\n const output = Object.entries(params).reduce((accumulator, entry) => {\n const [key, value] = entry;\n let encodedValue;\n let item;\n if (Array.isArray(value)) {\n item = '';\n value.forEach((str) => {\n encodedValue = shouldEncode ? encodeURIComponent(str) : str;\n item += `${key}=${encodedValue}&`;\n });\n // last character will always be \"&\" so slice it off\n item.slice(0, -1);\n }\n else {\n encodedValue = shouldEncode ? encodeURIComponent(value) : value;\n item = `${key}=${encodedValue}`;\n }\n return `${accumulator}&${item}`;\n }, '');\n // Remove initial \"&\" from the reduce\n return output.substr(1);\n};\n/**\n * Build the RequestInit object based on the options passed into the initial request\n * @param options The Http plugin options\n * @param extra Any extra RequestInit values\n */\nconst buildRequestInit = (options, extra = {}) => {\n const output = Object.assign({ method: options.method || 'GET', headers: options.headers }, extra);\n // Get the content-type\n const headers = normalizeHttpHeaders(options.headers);\n const type = headers['content-type'] || '';\n // If body is already a string, then pass it through as-is.\n if (typeof options.data === 'string') {\n output.body = options.data;\n }\n // Build request initializers based off of content-type\n else if (type.includes('application/x-www-form-urlencoded')) {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(options.data || {})) {\n params.set(key, value);\n }\n output.body = params.toString();\n }\n else if (type.includes('multipart/form-data') || options.data instanceof FormData) {\n const form = new FormData();\n if (options.data instanceof FormData) {\n options.data.forEach((value, key) => {\n form.append(key, value);\n });\n }\n else {\n for (const key of Object.keys(options.data)) {\n form.append(key, options.data[key]);\n }\n }\n output.body = form;\n const headers = new Headers(output.headers);\n headers.delete('content-type'); // content-type will be set by `window.fetch` to includy boundary\n output.headers = headers;\n }\n else if (type.includes('application/json') || typeof options.data === 'object') {\n output.body = JSON.stringify(options.data);\n }\n return output;\n};\n// WEB IMPLEMENTATION\nclass CapacitorHttpPluginWeb extends WebPlugin {\n /**\n * Perform an Http request given a set of options\n * @param options Options to build the HTTP request\n */\n async request(options) {\n const requestInit = buildRequestInit(options, options.webFetchExtra);\n const urlParams = buildUrlParams(options.params, options.shouldEncodeUrlParams);\n const url = urlParams ? `${options.url}?${urlParams}` : options.url;\n const response = await fetch(url, requestInit);\n const contentType = response.headers.get('content-type') || '';\n // Default to 'text' responseType so no parsing happens\n let { responseType = 'text' } = response.ok ? options : {};\n // If the response content-type is json, force the response to be json\n if (contentType.includes('application/json')) {\n responseType = 'json';\n }\n let data;\n let blob;\n switch (responseType) {\n case 'arraybuffer':\n case 'blob':\n blob = await response.blob();\n data = await readBlobAsBase64(blob);\n break;\n case 'json':\n data = await response.json();\n break;\n case 'document':\n case 'text':\n default:\n data = await response.text();\n }\n // Convert fetch headers to Capacitor HttpHeaders\n const headers = {};\n response.headers.forEach((value, key) => {\n headers[key] = value;\n });\n return {\n data,\n headers,\n status: response.status,\n url: response.url,\n };\n }\n /**\n * Perform an Http GET request given a set of options\n * @param options Options to build the HTTP request\n */\n async get(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'GET' }));\n }\n /**\n * Perform an Http POST request given a set of options\n * @param options Options to build the HTTP request\n */\n async post(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'POST' }));\n }\n /**\n * Perform an Http PUT request given a set of options\n * @param options Options to build the HTTP request\n */\n async put(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'PUT' }));\n }\n /**\n * Perform an Http PATCH request given a set of options\n * @param options Options to build the HTTP request\n */\n async patch(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'PATCH' }));\n }\n /**\n * Perform an Http DELETE request given a set of options\n * @param options Options to build the HTTP request\n */\n async delete(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'DELETE' }));\n }\n}\nconst CapacitorHttp = registerPlugin('CapacitorHttp', {\n web: () => new CapacitorHttpPluginWeb(),\n});\n/******** END HTTP PLUGIN ********/\n\nexport { Capacitor, CapacitorCookies, CapacitorException, CapacitorHttp, ExceptionCode, WebPlugin, WebView, buildRequestInit, registerPlugin };\n//# sourceMappingURL=index.js.map\n"],"names":["ExceptionCode","registerPlugin","p","headers"],"mappings":"AAAA;AACG,IAAC;AAAA,CACH,SAAUA,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 @@
|
|
|
1
|
-
import { registerPlugin } from "../../../../../../@capacitor_core@7.
|
|
1
|
+
import { registerPlugin } from "../../../../../../@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js";
|
|
2
2
|
const Device = registerPlugin("Device", {
|
|
3
3
|
web: () => import("./web.js").then((m) => new m.DeviceWeb())
|
|
4
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor+device@7.0.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor+device@7.0.1_@capacitor+core@7.4.4/node_modules/@capacitor/device/dist/esm/index.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Device = registerPlugin('Device', {\n web: () => import('./web').then(m => new m.DeviceWeb()),\n});\nexport * from './definitions';\nexport { Device };\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";AACK,MAAC,SAAS,eAAe,UAAU;AAAA,EACpC,KAAK,MAAM,OAAO,UAAO,EAAE,KAAK,OAAK,IAAI,EAAE,WAAW;AAC1D,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WebPlugin } from "../../../../../../@capacitor_core@7.
|
|
1
|
+
import { WebPlugin } from "../../../../../../@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js";
|
|
2
2
|
class DeviceWeb extends WebPlugin {
|
|
3
3
|
async getId() {
|
|
4
4
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor+device@7.0.
|
|
1
|
+
{"version":3,"file":"web.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor+device@7.0.1_@capacitor+core@7.4.4/node_modules/@capacitor/device/dist/esm/web.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class DeviceWeb extends WebPlugin {\n async getId() {\n return {\n identifier: this.getUid(),\n };\n }\n async getInfo() {\n if (typeof navigator === 'undefined' || !navigator.userAgent) {\n throw this.unavailable('Device API not available in this browser');\n }\n const ua = navigator.userAgent;\n const uaFields = this.parseUa(ua);\n return {\n model: uaFields.model,\n platform: 'web',\n operatingSystem: uaFields.operatingSystem,\n osVersion: uaFields.osVersion,\n manufacturer: navigator.vendor,\n isVirtual: false,\n webViewVersion: uaFields.browserVersion,\n };\n }\n async getBatteryInfo() {\n if (typeof navigator === 'undefined' || !navigator.getBattery) {\n throw this.unavailable('Device API not available in this browser');\n }\n let battery = {};\n try {\n battery = await navigator.getBattery();\n }\n catch (e) {\n // Let it fail, we don't care\n }\n return {\n batteryLevel: battery.level,\n isCharging: battery.charging,\n };\n }\n async getLanguageCode() {\n return {\n value: navigator.language.split('-')[0].toLowerCase(),\n };\n }\n async getLanguageTag() {\n return {\n value: navigator.language,\n };\n }\n parseUa(ua) {\n const uaFields = {};\n const start = ua.indexOf('(') + 1;\n let end = ua.indexOf(') AppleWebKit');\n if (ua.indexOf(') Gecko') !== -1) {\n end = ua.indexOf(') Gecko');\n }\n const fields = ua.substring(start, end);\n if (ua.indexOf('Android') !== -1) {\n const tmpFields = fields.replace('; wv', '').split('; ').pop();\n if (tmpFields) {\n uaFields.model = tmpFields.split(' Build')[0];\n }\n uaFields.osVersion = fields.split('; ')[1];\n }\n else {\n uaFields.model = fields.split('; ')[0];\n if (typeof navigator !== 'undefined' && navigator.oscpu) {\n uaFields.osVersion = navigator.oscpu;\n }\n else {\n if (ua.indexOf('Windows') !== -1) {\n uaFields.osVersion = fields;\n }\n else {\n const tmpFields = fields.split('; ').pop();\n if (tmpFields) {\n const lastParts = tmpFields\n .replace(' like Mac OS X', '')\n .split(' ');\n uaFields.osVersion = lastParts[lastParts.length - 1].replace(/_/g, '.');\n }\n }\n }\n }\n if (/android/i.test(ua)) {\n uaFields.operatingSystem = 'android';\n }\n else if (/iPad|iPhone|iPod/.test(ua) && !window.MSStream) {\n uaFields.operatingSystem = 'ios';\n }\n else if (/Win/.test(ua)) {\n uaFields.operatingSystem = 'windows';\n }\n else if (/Mac/i.test(ua)) {\n uaFields.operatingSystem = 'mac';\n }\n else {\n uaFields.operatingSystem = 'unknown';\n }\n // Check for browsers based on non-standard javascript apis, only not user agent\n const isSafari = !!window.ApplePaySession;\n const isChrome = !!window.chrome;\n const isFirefox = /Firefox/.test(ua);\n const isEdge = /Edg/.test(ua);\n const isFirefoxIOS = /FxiOS/.test(ua);\n const isChromeIOS = /CriOS/.test(ua);\n const isEdgeIOS = /EdgiOS/.test(ua);\n // FF and Edge User Agents both end with \"/MAJOR.MINOR\"\n if (isSafari ||\n (isChrome && !isEdge) ||\n isFirefoxIOS ||\n isChromeIOS ||\n isEdgeIOS) {\n // Safari version comes as \"... Version/MAJOR.MINOR ...\"\n // Chrome version comes as \"... Chrome/MAJOR.MINOR ...\"\n // FirefoxIOS version comes as \"... FxiOS/MAJOR.MINOR ...\"\n // ChromeIOS version comes as \"... CriOS/MAJOR.MINOR ...\"\n let searchWord;\n if (isFirefoxIOS) {\n searchWord = 'FxiOS';\n }\n else if (isChromeIOS) {\n searchWord = 'CriOS';\n }\n else if (isEdgeIOS) {\n searchWord = 'EdgiOS';\n }\n else if (isSafari) {\n searchWord = 'Version';\n }\n else {\n searchWord = 'Chrome';\n }\n const words = ua.split(' ');\n for (const word of words) {\n if (word.includes(searchWord)) {\n const version = word.split('/')[1];\n uaFields.browserVersion = version;\n }\n }\n }\n else if (isFirefox || isEdge) {\n const reverseUA = ua.split('').reverse().join('');\n const reverseVersion = reverseUA.split('/')[0];\n const version = reverseVersion.split('').reverse().join('');\n uaFields.browserVersion = version;\n }\n return uaFields;\n }\n getUid() {\n if (typeof window !== 'undefined' && window.localStorage) {\n let uid = window.localStorage.getItem('_capuid');\n if (uid) {\n return uid;\n }\n uid = this.uuid4();\n window.localStorage.setItem('_capuid', uid);\n return uid;\n }\n return this.uuid4();\n }\n uuid4() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n const r = (Math.random() * 16) | 0, v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n }\n}\n//# sourceMappingURL=web.js.map"],"names":[],"mappings":";AACO,MAAM,kBAAkB,UAAU;AAAA,EACrC,MAAM,QAAQ;AACV,WAAO;AAAA,MACH,YAAY,KAAK,OAAM;AAAA,IACnC;AAAA,EACI;AAAA,EACA,MAAM,UAAU;AACZ,QAAI,OAAO,cAAc,eAAe,CAAC,UAAU,WAAW;AAC1D,YAAM,KAAK,YAAY,0CAA0C;AAAA,IACrE;AACA,UAAM,KAAK,UAAU;AACrB,UAAM,WAAW,KAAK,QAAQ,EAAE;AAChC,WAAO;AAAA,MACH,OAAO,SAAS;AAAA,MAChB,UAAU;AAAA,MACV,iBAAiB,SAAS;AAAA,MAC1B,WAAW,SAAS;AAAA,MACpB,cAAc,UAAU;AAAA,MACxB,WAAW;AAAA,MACX,gBAAgB,SAAS;AAAA,IACrC;AAAA,EACI;AAAA,EACA,MAAM,iBAAiB;AACnB,QAAI,OAAO,cAAc,eAAe,CAAC,UAAU,YAAY;AAC3D,YAAM,KAAK,YAAY,0CAA0C;AAAA,IACrE;AACA,QAAI,UAAU,CAAA;AACd,QAAI;AACA,gBAAU,MAAM,UAAU,WAAU;AAAA,IACxC,SACO,GAAG;AAAA,IAEV;AACA,WAAO;AAAA,MACH,cAAc,QAAQ;AAAA,MACtB,YAAY,QAAQ;AAAA,IAChC;AAAA,EACI;AAAA,EACA,MAAM,kBAAkB;AACpB,WAAO;AAAA,MACH,OAAO,UAAU,SAAS,MAAM,GAAG,EAAE,CAAC,EAAE,YAAW;AAAA,IAC/D;AAAA,EACI;AAAA,EACA,MAAM,iBAAiB;AACnB,WAAO;AAAA,MACH,OAAO,UAAU;AAAA,IAC7B;AAAA,EACI;AAAA,EACA,QAAQ,IAAI;AACR,UAAM,WAAW,CAAA;AACjB,UAAM,QAAQ,GAAG,QAAQ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;AACJ,WAAO,uCAAuC,QAAQ,SAAS,SAAU,GAAG;AACxE,YAAM,IAAK,KAAK,OAAM,IAAK,KAAM,GAAG,IAAI,MAAM,MAAM,IAAK,IAAI,IAAO;AACpE,aAAO,EAAE,SAAS,EAAE;AAAA,IACxB,CAAC;AAAA,EACL;AACJ;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor+keyboard@7.0.
|
|
1
|
+
{"version":3,"file":"definitions.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor+keyboard@7.0.1_@capacitor+core@7.4.4/node_modules/@capacitor/keyboard/dist/esm/definitions.js"],"sourcesContent":["/// <reference types=\"@capacitor/cli\" />\nexport var KeyboardStyle;\n(function (KeyboardStyle) {\n /**\n * Dark keyboard.\n *\n * @since 1.0.0\n */\n KeyboardStyle[\"Dark\"] = \"DARK\";\n /**\n * Light keyboard.\n *\n * @since 1.0.0\n */\n KeyboardStyle[\"Light\"] = \"LIGHT\";\n /**\n * On iOS 13 and newer the keyboard style is based on the device appearance.\n * If the device is using Dark mode, the keyboard will be dark.\n * If the device is using Light mode, the keyboard will be light.\n * On iOS 12 the keyboard will be light.\n *\n * @since 1.0.0\n */\n KeyboardStyle[\"Default\"] = \"DEFAULT\";\n})(KeyboardStyle || (KeyboardStyle = {}));\nexport var KeyboardResize;\n(function (KeyboardResize) {\n /**\n * Only the `body` HTML element will be resized.\n * Relative units are not affected, because the viewport does not change.\n *\n * @since 1.0.0\n */\n KeyboardResize[\"Body\"] = \"body\";\n /**\n * Only the `ion-app` HTML element will be resized.\n * Use it only for Ionic Framework apps.\n *\n * @since 1.0.0\n */\n KeyboardResize[\"Ionic\"] = \"ionic\";\n /**\n * The whole native Web View will be resized when the keyboard shows/hides.\n * This affects the `vh` relative unit.\n *\n * @since 1.0.0\n */\n KeyboardResize[\"Native\"] = \"native\";\n /**\n * Neither the app nor the Web View are resized.\n *\n * @since 1.0.0\n */\n KeyboardResize[\"None\"] = \"none\";\n})(KeyboardResize || (KeyboardResize = {}));\n//# sourceMappingURL=definitions.js.map"],"names":["KeyboardStyle","KeyboardResize"],"mappings":"AACU,IAAC;AAAA,CACV,SAAUA,gBAAe;AAMtB,EAAAA,eAAc,MAAM,IAAI;AAMxB,EAAAA,eAAc,OAAO,IAAI;AASzB,EAAAA,eAAc,SAAS,IAAI;AAC/B,GAAG,kBAAkB,gBAAgB,CAAA,EAAG;AAC9B,IAAC;AAAA,CACV,SAAUC,iBAAgB;AAOvB,EAAAA,gBAAe,MAAM,IAAI;AAOzB,EAAAA,gBAAe,OAAO,IAAI;AAO1B,EAAAA,gBAAe,QAAQ,IAAI;AAM3B,EAAAA,gBAAe,MAAM,IAAI;AAC7B,GAAG,mBAAmB,iBAAiB,CAAA,EAAG;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { registerPlugin } from "../../../../../../@capacitor_core@7.
|
|
1
|
+
import { registerPlugin } from "../../../../../../@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js";
|
|
2
2
|
import { KeyboardResize, KeyboardStyle } from "./definitions.js";
|
|
3
3
|
const Keyboard = registerPlugin("Keyboard");
|
|
4
4
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor+keyboard@7.0.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor+keyboard@7.0.1_@capacitor+core@7.4.4/node_modules/@capacitor/keyboard/dist/esm/index.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Keyboard = registerPlugin('Keyboard');\nexport * from './definitions';\nexport { Keyboard };\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;AACK,MAAC,WAAW,eAAe,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { registerPlugin } from "../../../../../../@capacitor_core@7.
|
|
1
|
+
import { registerPlugin } from "../../../../../../@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js";
|
|
2
2
|
const PushNotifications = registerPlugin("PushNotifications", {});
|
|
3
3
|
export {
|
|
4
4
|
PushNotifications
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor+push-notifications@7.0.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/@capacitor+push-notifications@7.0.3_@capacitor+core@7.4.4/node_modules/@capacitor/push-notifications/dist/esm/index.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst PushNotifications = registerPlugin('PushNotifications', {});\nexport * from './definitions';\nexport { PushNotifications };\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";AACK,MAAC,oBAAoB,eAAe,qBAAqB,CAAA,CAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { registerPlugin } from "../../../../../@capacitor_core@7.
|
|
1
|
+
import { registerPlugin } from "../../../../../@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js";
|
|
2
2
|
const AppTrackingTransparency = registerPlugin("AppTrackingTransparency", {
|
|
3
3
|
web: () => import("./web.js").then((m) => new m.AppTrackingTransparencyWeb())
|
|
4
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor+core@7.
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor+core@7.4.4/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst AppTrackingTransparency = registerPlugin('AppTrackingTransparency', {\n web: () => import('./web').then((m) => new m.AppTrackingTransparencyWeb()),\n});\nexport * from './definitions';\nexport { AppTrackingTransparency };\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";AACK,MAAC,0BAA0B,eAAe,2BAA2B;AAAA,EACtE,KAAK,MAAM,OAAO,UAAO,EAAE,KAAK,CAAC,MAAM,IAAI,EAAE,4BAA4B;AAC7E,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WebPlugin } from "../../../../../@capacitor_core@7.
|
|
1
|
+
import { WebPlugin } from "../../../../../@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js";
|
|
2
2
|
class AppTrackingTransparencyWeb extends WebPlugin {
|
|
3
3
|
getStatus() {
|
|
4
4
|
return Promise.resolve({ status: "authorized" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sources":["../../../../../../../../../node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor+core@7.
|
|
1
|
+
{"version":3,"file":"web.js","sources":["../../../../../../../../../node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor+core@7.4.4/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class AppTrackingTransparencyWeb extends WebPlugin {\n getStatus() {\n return Promise.resolve({ status: 'authorized' });\n }\n requestPermission() {\n return Promise.resolve({ status: 'authorized' });\n }\n}\n//# sourceMappingURL=web.js.map"],"names":[],"mappings":";AACO,MAAM,mCAAmC,UAAU;AAAA,EACtD,YAAY;AACR,WAAO,QAAQ,QAAQ,EAAE,QAAQ,aAAY,CAAE;AAAA,EACnD;AAAA,EACA,oBAAoB;AAChB,WAAO,QAAQ,QAAQ,EAAE,QAAQ,aAAY,CAAE;AAAA,EACnD;AACJ;","x_google_ignoreList":[0]}
|