{"dependencies":[{"name":"@babel/runtime/helpers/objectWithoutProperties","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"fnQVLibs90KHiJ7y48fLgPWzDS0=","exportNames":["*"],"imports":1}},{"name":"./NativeActionSheetManager","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":14,"column":0},"end":{"line":14,"column":63}}],"key":"8iBtwA0xN4HnhPjw8oRwDgAQcyY=","exportNames":["*"],"imports":1}},{"name":"../StyleSheet/processColor","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":16,"column":21},"end":{"line":16,"column":58}}],"key":"I0Lk++/6Upr1uZbth/i3RrMPl94=","exportNames":["*"],"imports":1}},{"name":"invariant","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":17,"column":18},"end":{"line":17,"column":38}}],"key":"oQpL0Es3H146KnQH9ygFeHrzVP4=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n var _excluded = [\"tintColor\", \"cancelButtonTintColor\", \"disabledButtonTintColor\", \"destructiveButtonIndex\"];\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _default;\n }\n });\n var _babelRuntimeHelpersObjectWithoutProperties = require(_dependencyMap[0], \"@babel/runtime/helpers/objectWithoutProperties\");\n var _objectWithoutProperties = _interopDefault(_babelRuntimeHelpersObjectWithoutProperties);\n var _NativeActionSheetManager = require(_dependencyMap[1], \"./NativeActionSheetManager\");\n var RCTActionSheetManager = _interopDefault(_NativeActionSheetManager);\n var processColor = require(_dependencyMap[2], \"../StyleSheet/processColor\").default;\n var invariant = require(_dependencyMap[3], \"invariant\");\n var ActionSheetIOS = {\n showActionSheetWithOptions(options, callback) {\n invariant(typeof options === 'object' && options !== null, 'Options must be a valid object');\n invariant(typeof callback === 'function', 'Must provide a valid callback');\n invariant(RCTActionSheetManager.default, \"ActionSheetManager doesn't exist\");\n var tintColor = options.tintColor,\n cancelButtonTintColor = options.cancelButtonTintColor,\n disabledButtonTintColor = options.disabledButtonTintColor,\n destructiveButtonIndex = options.destructiveButtonIndex,\n remainingOptions = (0, _objectWithoutProperties.default)(options, _excluded);\n var destructiveButtonIndices = null;\n if (Array.isArray(destructiveButtonIndex)) {\n destructiveButtonIndices = destructiveButtonIndex;\n } else if (typeof destructiveButtonIndex === 'number') {\n destructiveButtonIndices = [destructiveButtonIndex];\n }\n var processedTintColor = processColor(tintColor);\n var processedCancelButtonTintColor = processColor(cancelButtonTintColor);\n var processedDisabledButtonTintColor = processColor(disabledButtonTintColor);\n invariant(processedTintColor == null || typeof processedTintColor === 'number', 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor');\n invariant(processedCancelButtonTintColor == null || typeof processedCancelButtonTintColor === 'number', 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions cancelButtonTintColor');\n invariant(processedDisabledButtonTintColor == null || typeof processedDisabledButtonTintColor === 'number', 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions disabledButtonTintColor');\n RCTActionSheetManager.default.showActionSheetWithOptions({\n ...remainingOptions,\n tintColor: processedTintColor,\n cancelButtonTintColor: processedCancelButtonTintColor,\n disabledButtonTintColor: processedDisabledButtonTintColor,\n destructiveButtonIndices\n }, callback);\n },\n showShareActionSheetWithOptions(options, failureCallback, successCallback) {\n invariant(typeof options === 'object' && options !== null, 'Options must be a valid object');\n invariant(typeof failureCallback === 'function', 'Must provide a valid failureCallback');\n invariant(typeof successCallback === 'function', 'Must provide a valid successCallback');\n invariant(RCTActionSheetManager.default, \"ActionSheetManager doesn't exist\");\n RCTActionSheetManager.default.showShareActionSheetWithOptions({\n ...options,\n tintColor: processColor(options.tintColor)\n }, failureCallback, successCallback);\n },\n dismissActionSheet: () => {\n invariant(RCTActionSheetManager.default, \"ActionSheetManager doesn't exist\");\n if (typeof RCTActionSheetManager.default.dismissActionSheet === 'function') {\n RCTActionSheetManager.default.dismissActionSheet();\n }\n }\n };\n var _default = ActionSheetIOS;\n});","lineCount":73,"map":[[13,2,196,0,"Object"],[13,8,196,0],[13,9,196,0,"defineProperty"],[13,23,196,0],[13,24,196,0,"exports"],[13,31,196,0],[14,4,196,0,"enumerable"],[14,14,196,0],[15,4,196,0,"get"],[15,7,196,0],[15,18,196,0,"get"],[15,19,196,0],[16,6,196,0],[16,13,196,0,"_default"],[16,21,196,0],[17,4,196,0],[18,2,196,0],[19,2,196,30],[19,6,196,30,"_babelRuntimeHelpersObjectWithoutProperties"],[19,49,196,30],[19,52,196,30,"require"],[19,59,196,30],[19,60,196,30,"_dependencyMap"],[19,74,196,30],[20,2,196,30],[20,6,196,30,"_objectWithoutProperties"],[20,30,196,30],[20,33,196,30,"_interopDefault"],[20,48,196,30],[20,49,196,30,"_babelRuntimeHelpersObjectWithoutProperties"],[20,92,196,30],[21,2,14,0],[21,6,14,0,"_NativeActionSheetManager"],[21,31,14,0],[21,34,14,0,"require"],[21,41,14,0],[21,42,14,0,"_dependencyMap"],[21,56,14,0],[22,2,14,0],[22,6,14,0,"RCTActionSheetManager"],[22,27,14,0],[22,30,14,0,"_interopDefault"],[22,45,14,0],[22,46,14,0,"_NativeActionSheetManager"],[22,71,14,0],[23,2,16,0],[23,6,16,6,"processColor"],[23,18,16,18],[23,21,16,21,"require"],[23,28,16,28],[23,29,16,28,"_dependencyMap"],[23,43,16,28],[23,76,16,57],[23,77,16,58],[23,78,16,59,"default"],[23,85,16,66],[24,2,17,0],[24,6,17,6,"invariant"],[24,15,17,15],[24,18,17,18,"require"],[24,25,17,25],[24,26,17,25,"_dependencyMap"],[24,40,17,25],[24,56,17,37],[24,57,17,38],[25,2,57,0],[25,6,57,6,"ActionSheetIOS"],[25,20,57,20],[25,23,57,23],[26,4,75,2,"showActionSheetWithOptions"],[26,30,75,28,"showActionSheetWithOptions"],[26,31,76,4,"options"],[26,38,76,34],[26,40,77,4,"callback"],[26,48,77,43],[26,50,78,4],[27,6,79,4,"invariant"],[27,15,79,13],[27,16,80,6],[27,23,80,13,"options"],[27,30,80,20],[27,35,80,25],[27,43,80,33],[27,47,80,37,"options"],[27,54,80,44],[27,59,80,49],[27,63,80,53],[27,65,81,6],[27,97,82,4],[27,98,82,5],[28,6,83,4,"invariant"],[28,15,83,13],[28,16,83,14],[28,23,83,21,"callback"],[28,31,83,29],[28,36,83,34],[28,46,83,44],[28,48,83,46],[28,79,83,77],[28,80,83,78],[29,6,84,4,"invariant"],[29,15,84,13],[29,16,84,14,"RCTActionSheetManager"],[29,37,84,35],[29,38,84,35,"default"],[29,45,84,35],[29,47,84,37],[29,81,84,71],[29,82,84,72],[30,6,86,4],[30,10,87,6,"tintColor"],[30,19,87,15],[30,22,92,8,"options"],[30,29,92,15],[30,30,87,6,"tintColor"],[30,39,87,15],[31,8,88,6,"cancelButtonTintColor"],[31,29,88,27],[31,32,92,8,"options"],[31,39,92,15],[31,40,88,6,"cancelButtonTintColor"],[31,61,88,27],[32,8,89,6,"disabledButtonTintColor"],[32,31,89,29],[32,34,92,8,"options"],[32,41,92,15],[32,42,89,6,"disabledButtonTintColor"],[32,65,89,29],[33,8,90,6,"destructiveButtonIndex"],[33,30,90,28],[33,33,92,8,"options"],[33,40,92,15],[33,41,90,6,"destructiveButtonIndex"],[33,63,90,28],[34,8,91,9,"remainingOptions"],[34,24,91,25],[34,31,91,25,"_objectWithoutProperties"],[34,55,91,25],[34,56,91,25,"default"],[34,63,91,25],[34,65,92,8,"options"],[34,72,92,15],[34,74,92,15,"_excluded"],[34,83,92,15],[35,6,93,4],[35,10,93,8,"destructiveButtonIndices"],[35,34,93,32],[35,37,93,35],[35,41,93,39],[36,6,95,4],[36,10,95,8,"Array"],[36,15,95,13],[36,16,95,14,"isArray"],[36,23,95,21],[36,24,95,22,"destructiveButtonIndex"],[36,46,95,44],[36,47,95,45],[36,49,95,47],[37,8,96,6,"destructiveButtonIndices"],[37,32,96,30],[37,35,96,33,"destructiveButtonIndex"],[37,57,96,55],[38,6,97,4],[38,7,97,5],[38,13,97,11],[38,17,97,15],[38,24,97,22,"destructiveButtonIndex"],[38,46,97,44],[38,51,97,49],[38,59,97,57],[38,61,97,59],[39,8,98,6,"destructiveButtonIndices"],[39,32,98,30],[39,35,98,33],[39,36,98,34,"destructiveButtonIndex"],[39,58,98,56],[39,59,98,57],[40,6,99,4],[41,6,101,4],[41,10,101,10,"processedTintColor"],[41,28,101,28],[41,31,101,31,"processColor"],[41,43,101,43],[41,44,101,44,"tintColor"],[41,53,101,53],[41,54,101,54],[42,6,102,4],[42,10,102,10,"processedCancelButtonTintColor"],[42,40,102,40],[42,43,102,43,"processColor"],[42,55,102,55],[42,56,102,56,"cancelButtonTintColor"],[42,77,102,77],[42,78,102,78],[43,6,103,4],[43,10,103,10,"processedDisabledButtonTintColor"],[43,42,103,42],[43,45,103,45,"processColor"],[43,57,103,57],[43,58,104,6,"disabledButtonTintColor"],[43,81,105,4],[43,82,105,5],[44,6,107,4,"invariant"],[44,15,107,13],[44,16,108,6,"processedTintColor"],[44,34,108,24],[44,38,108,28],[44,42,108,32],[44,46,108,36],[44,53,108,43,"processedTintColor"],[44,71,108,61],[44,76,108,66],[44,84,108,74],[44,86,109,6],[44,166,110,4],[44,167,110,5],[45,6,111,4,"invariant"],[45,15,111,13],[45,16,112,6,"processedCancelButtonTintColor"],[45,46,112,36],[45,50,112,40],[45,54,112,44],[45,58,113,8],[45,65,113,15,"processedCancelButtonTintColor"],[45,95,113,45],[45,100,113,50],[45,108,113,58],[45,110,114,6],[45,202,115,4],[45,203,115,5],[46,6,116,4,"invariant"],[46,15,116,13],[46,16,117,6,"processedDisabledButtonTintColor"],[46,48,117,38],[46,52,117,42],[46,56,117,46],[46,60,118,8],[46,67,118,15,"processedDisabledButtonTintColor"],[46,99,118,47],[46,104,118,52],[46,112,118,60],[46,114,119,6],[46,208,120,4],[46,209,120,5],[47,6,121,4,"RCTActionSheetManager"],[47,27,121,25],[47,28,121,25,"default"],[47,35,121,25],[47,36,121,26,"showActionSheetWithOptions"],[47,62,121,52],[47,63,122,6],[48,8,123,8],[48,11,123,11,"remainingOptions"],[48,27,123,27],[49,8,125,8,"tintColor"],[49,17,125,17],[49,19,125,19,"processedTintColor"],[49,37,125,37],[50,8,127,8,"cancelButtonTintColor"],[50,29,127,29],[50,31,127,31,"processedCancelButtonTintColor"],[50,61,127,61],[51,8,129,8,"disabledButtonTintColor"],[51,31,129,31],[51,33,129,33,"processedDisabledButtonTintColor"],[51,65,129,65],[52,8,130,8,"destructiveButtonIndices"],[53,6,131,6],[53,7,131,7],[53,9,132,6,"callback"],[53,17,133,4],[53,18,133,5],[54,4,134,2],[54,5,134,3],[55,4,159,2,"showShareActionSheetWithOptions"],[55,35,159,33,"showShareActionSheetWithOptions"],[55,36,160,4,"options"],[55,43,160,39],[55,45,161,4,"failureCallback"],[55,60,161,72],[55,62,162,4,"successCallback"],[55,77,162,77],[55,79,163,4],[56,6,164,4,"invariant"],[56,15,164,13],[56,16,165,6],[56,23,165,13,"options"],[56,30,165,20],[56,35,165,25],[56,43,165,33],[56,47,165,37,"options"],[56,54,165,44],[56,59,165,49],[56,63,165,53],[56,65,166,6],[56,97,167,4],[56,98,167,5],[57,6,168,4,"invariant"],[57,15,168,13],[57,16,169,6],[57,23,169,13,"failureCallback"],[57,38,169,28],[57,43,169,33],[57,53,169,43],[57,55,170,6],[57,93,171,4],[57,94,171,5],[58,6,172,4,"invariant"],[58,15,172,13],[58,16,173,6],[58,23,173,13,"successCallback"],[58,38,173,28],[58,43,173,33],[58,53,173,43],[58,55,174,6],[58,93,175,4],[58,94,175,5],[59,6,176,4,"invariant"],[59,15,176,13],[59,16,176,14,"RCTActionSheetManager"],[59,37,176,35],[59,38,176,35,"default"],[59,45,176,35],[59,47,176,37],[59,81,176,71],[59,82,176,72],[60,6,177,4,"RCTActionSheetManager"],[60,27,177,25],[60,28,177,25,"default"],[60,35,177,25],[60,36,177,26,"showShareActionSheetWithOptions"],[60,67,177,57],[60,68,178,6],[61,8,178,7],[61,11,178,10,"options"],[61,18,178,17],[62,8,178,19,"tintColor"],[62,17,178,28],[62,19,178,30,"processColor"],[62,31,178,42],[62,32,178,43,"options"],[62,39,178,50],[62,40,178,51,"tintColor"],[62,49,178,60],[63,6,178,75],[63,7,178,76],[63,9,179,6,"failureCallback"],[63,24,179,21],[63,26,180,6,"successCallback"],[63,41,181,4],[63,42,181,5],[64,4,182,2],[64,5,182,3],[65,4,188,2,"dismissActionSheet"],[65,22,188,20],[65,24,188,22,"dismissActionSheet"],[65,25,188,22],[65,30,188,28],[66,6,189,4,"invariant"],[66,15,189,13],[66,16,189,14,"RCTActionSheetManager"],[66,37,189,35],[66,38,189,35,"default"],[66,45,189,35],[66,47,189,37],[66,81,189,71],[66,82,189,72],[67,6,190,4],[67,10,190,8],[67,17,190,15,"RCTActionSheetManager"],[67,38,190,36],[67,39,190,36,"default"],[67,46,190,36],[67,47,190,37,"dismissActionSheet"],[67,65,190,55],[67,70,190,60],[67,80,190,70],[67,82,190,72],[68,8,191,6,"RCTActionSheetManager"],[68,29,191,27],[68,30,191,27,"default"],[68,37,191,27],[68,38,191,28,"dismissActionSheet"],[68,56,191,46],[68,57,191,47],[68,58,191,48],[69,6,192,4],[70,4,193,2],[71,2,194,0],[71,3,194,1],[72,2,196,0],[72,6,196,0,"_default"],[72,14,196,0],[72,17,196,15,"ActionSheetIOS"],[72,31,196,29],[73,0,196,30],[73,3]],"functionMap":{"names":["","showActionSheetWithOptions","showShareActionSheetWithOptions","dismissActionSheet"],"mappings":"AAA;EC0E;GD2D;EEyB;GFuB;sBGM;GHK"},"hasCjsExports":false},"type":"js/module"}]}