{"version":3,"sources":["jsdelivr-header.js","/npm/@react-native-social-share/instagram@1.1.1/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IAEtD,MAAM,eAAiB,QAAQ,gBACzB,QAAU,QAAQ,qCAClB,eAAE,gBAAmB,eAAe,cACpC,cAAgB,eAAe,SAAS,OAAO,CACjD,QAAS,wBACT,IAAK,iBAET,eAAe,UAAU,EAAM,GAC3B,MAAM,IAAI,MAAM,gBACpB,CACA,eAAe,WAAW,GAEtB,UADmC,QAAQ,QAAQ,eAAe,eAE9D,MAAM,IAAI,QAAQ,YAAY,oBAAqB,+BAEvD,GAAmC,QAA/B,eAAe,SAAS,GACxB,OAAO,eAAe,QAAQ,QAAQ,iCAAiC,EAAQ,WAE9E,GAAmC,YAA/B,eAAe,SAAS,GAAkB,CAC/C,IAAK,EAAQ,QACT,MAAM,IAAI,QAAQ,YAAY,mBAAoB,uBAEtD,MAAM,QAAgB,QAAQ,QAAQ,WAAW,EAAQ,SACzD,OAAO,eAAe,WAAW,EACrC,CACJ,CACA,eAAe,WAAW,GAEtB,UADmC,QAAQ,QAAQ,eAAe,eAE9D,MAAM,IAAI,QAAQ,YAAY,oBAAqB,+BAEvD,GAAmC,QAA/B,eAAe,SAAS,GACxB,OAAO,eAAe,QAAQ,QAAQ,iCAAiC,EAAQ,WAE9E,GAAmC,YAA/B,eAAe,SAAS,GAAkB,CAC/C,IAAK,EAAQ,QACT,MAAM,IAAI,QAAQ,YAAY,mBAAoB,uBAEtD,MAAM,QAAgB,QAAQ,QAAQ,WAAW,EAAQ,SACzD,OAAO,eAAe,WAAW,EACrC,CACJ,CACA,QAAQ,QAAU,CACd,oBACA,sBACA","file":"/npm/@react-native-social-share/instagram@1.1.1/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@react-native-social-share/instagram@1.1.1/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// @ts-ignore\nconst react_native_1 = require(\"react-native\");\nconst utils_1 = require(\"@react-native-social-share/utils\");\nconst { InstagramShare } = react_native_1.NativeModules;\nconst appIdentifier = react_native_1.Platform.select({\n    android: 'com.instagram.android',\n    ios: 'instagram://',\n});\nasync function shareLink(link, description) {\n    throw new Error('Not supported');\n}\nasync function shareVideo(options) {\n    const isInstagramInstalled = await utils_1.default.isAppInstalled(appIdentifier);\n    if (!isInstagramInstalled) {\n        throw new utils_1.SocialError('APP_NOT_INSTALLED', 'Instagram must be installed');\n    }\n    if (react_native_1.Platform.OS === 'ios') {\n        return react_native_1.Linking.openURL(`instagram://library?AssetPath=${options.assetId}`);\n    }\n    else if (react_native_1.Platform.OS === 'android') {\n        if (!options.assetId) {\n            throw new utils_1.SocialError('MISSING_PROPERTY', 'assetId is required');\n        }\n        const fileUri = await utils_1.default.uriForFile(options.assetId);\n        return InstagramShare.shareVideo(fileUri);\n    }\n}\nasync function sharePhoto(options) {\n    const isInstagramInstalled = await utils_1.default.isAppInstalled(appIdentifier);\n    if (!isInstagramInstalled) {\n        throw new utils_1.SocialError('APP_NOT_INSTALLED', 'Instagram must be installed');\n    }\n    if (react_native_1.Platform.OS === 'ios') {\n        return react_native_1.Linking.openURL(`instagram://library?AssetPath=${options.assetId}`);\n    }\n    else if (react_native_1.Platform.OS === 'android') {\n        if (!options.assetId) {\n            throw new utils_1.SocialError('MISSING_PROPERTY', 'assetId is required');\n        }\n        const fileUri = await utils_1.default.uriForFile(options.assetId);\n        return InstagramShare.sharePhoto(fileUri);\n    }\n}\nexports.default = {\n    shareLink,\n    shareVideo,\n    sharePhoto,\n};\n"]}