{"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport invariant from 'fbjs/lib/invariant';\nvar Share = function () {\n function Share() {\n _classCallCheck(this, Share);\n }\n _createClass(Share, null, [{\n key: \"share\",\n value: function share(content, options) {\n if (options === void 0) {\n options = {};\n }\n invariant(typeof content === 'object' && content !== null, 'Content to share must be a valid object');\n invariant(typeof content.url === 'string' || typeof content.message === 'string', 'At least one of URL and message is required');\n invariant(typeof options === 'object' && options !== null, 'Options must be a valid object');\n invariant(!content.title || typeof content.title === 'string', 'Invalid title: title should be a string.');\n if (window.navigator.share !== undefined) {\n return window.navigator.share({\n title: content.title,\n text: content.message,\n url: content.url\n });\n } else {\n return Promise.reject(new Error('Share is not supported in this browser'));\n }\n }\n }, {\n key: \"sharedAction\",\n get: function get() {\n return 'sharedAction';\n }\n }, {\n key: \"dismissedAction\",\n get: function get() {\n return 'dismissedAction';\n }\n }]);\n return Share;\n}();\nexport default Share;","map":{"version":3,"names":["invariant","Share","content","options","url","message","title","window","navigator","share","undefined","text","Promise","reject","Error"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/node_modules/react-native-web/dist/exports/Share/index.js"],"sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport invariant from 'fbjs/lib/invariant';\n\nclass Share {\n static share(content, options) {\n if (options === void 0) {\n options = {};\n }\n\n invariant(typeof content === 'object' && content !== null, 'Content to share must be a valid object');\n invariant(typeof content.url === 'string' || typeof content.message === 'string', 'At least one of URL and message is required');\n invariant(typeof options === 'object' && options !== null, 'Options must be a valid object');\n invariant(!content.title || typeof content.title === 'string', 'Invalid title: title should be a string.');\n\n if (window.navigator.share !== undefined) {\n return window.navigator.share({\n title: content.title,\n text: content.message,\n url: content.url\n });\n } else {\n return Promise.reject(new Error('Share is not supported in this browser'));\n }\n }\n /**\n * The content was successfully shared.\n */\n\n\n static get sharedAction() {\n return 'sharedAction';\n }\n /**\n * The dialog has been dismissed.\n * @platform ios\n */\n\n\n static get dismissedAction() {\n return 'dismissedAction';\n }\n\n}\n\nexport default Share;"],"mappings":";;AASA,OAAOA,SAAS,MAAM,oBAAoB;AAAC,IAErCC,KAAK;EAAA;IAAA;EAAA;EAAA;IAAA;IAAA,OACT,eAAaC,OAAO,EAAEC,OAAO,EAAE;MAC7B,IAAIA,OAAO,KAAK,KAAK,CAAC,EAAE;QACtBA,OAAO,GAAG,CAAC,CAAC;MACd;MAEAH,SAAS,CAAC,OAAOE,OAAO,KAAK,QAAQ,IAAIA,OAAO,KAAK,IAAI,EAAE,yCAAyC,CAAC;MACrGF,SAAS,CAAC,OAAOE,OAAO,CAACE,GAAG,KAAK,QAAQ,IAAI,OAAOF,OAAO,CAACG,OAAO,KAAK,QAAQ,EAAE,6CAA6C,CAAC;MAChIL,SAAS,CAAC,OAAOG,OAAO,KAAK,QAAQ,IAAIA,OAAO,KAAK,IAAI,EAAE,gCAAgC,CAAC;MAC5FH,SAAS,CAAC,CAACE,OAAO,CAACI,KAAK,IAAI,OAAOJ,OAAO,CAACI,KAAK,KAAK,QAAQ,EAAE,0CAA0C,CAAC;MAE1G,IAAIC,MAAM,CAACC,SAAS,CAACC,KAAK,KAAKC,SAAS,EAAE;QACxC,OAAOH,MAAM,CAACC,SAAS,CAACC,KAAK,CAAC;UAC5BH,KAAK,EAAEJ,OAAO,CAACI,KAAK;UACpBK,IAAI,EAAET,OAAO,CAACG,OAAO;UACrBD,GAAG,EAAEF,OAAO,CAACE;QACf,CAAC,CAAC;MACJ,CAAC,MAAM;QACL,OAAOQ,OAAO,CAACC,MAAM,CAAC,IAAIC,KAAK,CAAC,wCAAwC,CAAC,CAAC;MAC5E;IACF;EAAC;IAAA;IAAA,KAMD,eAA0B;MACxB,OAAO,cAAc;IACvB;EAAC;IAAA;IAAA,KAOD,eAA6B;MAC3B,OAAO,iBAAiB;IAC1B;EAAC;EAAA;AAAA;AAIH,eAAeb,KAAK"},"metadata":{},"sourceType":"module"}