mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 07:41:01 +00:00
1 line
6.2 KiB
Plaintext
1 line
6.2 KiB
Plaintext
{"dependencies":[{"name":"fbjs/lib/invariant","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":11,"column":0,"index":235},"end":{"line":11,"column":43,"index":278}}],"key":"bGUa+dDG2WEhPiIlobT3urS95UE=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\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 _fbjsLibInvariant = require(_dependencyMap[0], \"fbjs/lib/invariant\");\n var invariant = _interopDefault(_fbjsLibInvariant);\n /**\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 */\n\n class Share {\n static share(content, options) {\n if (options === void 0) {\n options = {};\n }\n (0, invariant.default)(typeof content === 'object' && content !== null, 'Content to share must be a valid object');\n (0, invariant.default)(typeof content.url === 'string' || typeof content.message === 'string', 'At least one of URL and message is required');\n (0, invariant.default)(typeof options === 'object' && options !== null, 'Options must be a valid object');\n (0, invariant.default)(!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 /**\n * The content was successfully shared.\n */\n static get sharedAction() {\n return 'sharedAction';\n }\n\n /**\n * The dialog has been dismissed.\n * @platform ios\n */\n static get dismissedAction() {\n return 'dismissedAction';\n }\n }\n var _default = Share;\n});","lineCount":66,"map":[[12,2,47,0,"Object"],[12,8,47,0],[12,9,47,0,"defineProperty"],[12,23,47,0],[12,24,47,0,"exports"],[12,31,47,0],[13,4,47,0,"enumerable"],[13,14,47,0],[14,4,47,0,"get"],[14,7,47,0],[14,18,47,0,"get"],[14,19,47,0],[15,6,47,0],[15,13,47,0,"_default"],[15,21,47,0],[16,4,47,0],[17,2,47,0],[18,2,11,0],[18,6,11,0,"_fbjsLibInvariant"],[18,23,11,0],[18,26,11,0,"require"],[18,33,11,0],[18,34,11,0,"_dependencyMap"],[18,48,11,0],[19,2,11,0],[19,6,11,0,"invariant"],[19,15,11,0],[19,18,11,0,"_interopDefault"],[19,33,11,0],[19,34,11,0,"_fbjsLibInvariant"],[19,51,11,0],[20,2,1,0],[21,0,2,0],[22,0,3,0],[23,0,4,0],[24,0,5,0],[25,0,6,0],[26,0,7,0],[27,0,8,0],[28,0,9,0],[30,2,12,0],[30,8,12,6,"Share"],[30,13,12,11],[30,14,12,12],[31,4,13,2],[31,11,13,9,"share"],[31,16,13,14,"share"],[31,17,13,15,"content"],[31,24,13,22],[31,26,13,24,"options"],[31,33,13,31],[31,35,13,33],[32,6,14,4],[32,10,14,8,"options"],[32,17,14,15],[32,22,14,20],[32,27,14,25],[32,28,14,26],[32,30,14,28],[33,8,15,6,"options"],[33,15,15,13],[33,18,15,16],[33,19,15,17],[33,20,15,18],[34,6,16,4],[35,6,17,4],[35,10,17,4,"invariant"],[35,19,17,13],[35,20,17,13,"default"],[35,27,17,13],[35,29,17,14],[35,36,17,21,"content"],[35,43,17,28],[35,48,17,33],[35,56,17,41],[35,60,17,45,"content"],[35,67,17,52],[35,72,17,57],[35,76,17,61],[35,78,17,63],[35,119,17,104],[35,120,17,105],[36,6,18,4],[36,10,18,4,"invariant"],[36,19,18,13],[36,20,18,13,"default"],[36,27,18,13],[36,29,18,14],[36,36,18,21,"content"],[36,43,18,28],[36,44,18,29,"url"],[36,47,18,32],[36,52,18,37],[36,60,18,45],[36,64,18,49],[36,71,18,56,"content"],[36,78,18,63],[36,79,18,64,"message"],[36,86,18,71],[36,91,18,76],[36,99,18,84],[36,101,18,86],[36,146,18,131],[36,147,18,132],[37,6,19,4],[37,10,19,4,"invariant"],[37,19,19,13],[37,20,19,13,"default"],[37,27,19,13],[37,29,19,14],[37,36,19,21,"options"],[37,43,19,28],[37,48,19,33],[37,56,19,41],[37,60,19,45,"options"],[37,67,19,52],[37,72,19,57],[37,76,19,61],[37,78,19,63],[37,110,19,95],[37,111,19,96],[38,6,20,4],[38,10,20,4,"invariant"],[38,19,20,13],[38,20,20,13,"default"],[38,27,20,13],[38,29,20,14],[38,30,20,15,"content"],[38,37,20,22],[38,38,20,23,"title"],[38,43,20,28],[38,47,20,32],[38,54,20,39,"content"],[38,61,20,46],[38,62,20,47,"title"],[38,67,20,52],[38,72,20,57],[38,80,20,65],[38,82,20,67],[38,124,20,109],[38,125,20,110],[39,6,21,4],[39,10,21,8,"window"],[39,16,21,14],[39,17,21,15,"navigator"],[39,26,21,24],[39,27,21,25,"share"],[39,32,21,30],[39,37,21,35,"undefined"],[39,46,21,44],[39,48,21,46],[40,8,22,6],[40,15,22,13,"window"],[40,21,22,19],[40,22,22,20,"navigator"],[40,31,22,29],[40,32,22,30,"share"],[40,37,22,35],[40,38,22,36],[41,10,23,8,"title"],[41,15,23,13],[41,17,23,15,"content"],[41,24,23,22],[41,25,23,23,"title"],[41,30,23,28],[42,10,24,8,"text"],[42,14,24,12],[42,16,24,14,"content"],[42,23,24,21],[42,24,24,22,"message"],[42,31,24,29],[43,10,25,8,"url"],[43,13,25,11],[43,15,25,13,"content"],[43,22,25,20],[43,23,25,21,"url"],[44,8,26,6],[44,9,26,7],[44,10,26,8],[45,6,27,4],[45,7,27,5],[45,13,27,11],[46,8,28,6],[46,15,28,13,"Promise"],[46,22,28,20],[46,23,28,21,"reject"],[46,29,28,27],[46,30,28,28],[46,34,28,32,"Error"],[46,39,28,37],[46,40,28,38],[46,80,28,78],[46,81,28,79],[46,82,28,80],[47,6,29,4],[48,4,30,2],[50,4,32,2],[51,0,33,0],[52,0,34,0],[53,4,35,2],[53,15,35,13,"sharedAction"],[53,27,35,25,"sharedAction"],[53,28,35,25],[53,30,35,28],[54,6,36,4],[54,13,36,11],[54,27,36,25],[55,4,37,2],[57,4,39,2],[58,0,40,0],[59,0,41,0],[60,0,42,0],[61,4,43,2],[61,15,43,13,"dismissedAction"],[61,30,43,28,"dismissedAction"],[61,31,43,28],[61,33,43,31],[62,6,44,4],[62,13,44,11],[62,30,44,28],[63,4,45,2],[64,2,46,0],[65,2,47,0],[65,6,47,0,"_default"],[65,14,47,0],[65,17,47,15,"Share"],[65,22,47,20],[66,0,47,21],[66,3]],"functionMap":{"names":["<global>","Share","Share.share","Share.get__sharedAction","Share.get__dismissedAction"],"mappings":"AAA;ACW;ECC;GDiB;EEK;GFE;EGM;GHE;CDC"},"hasCjsExports":false},"type":"js/module"}]} |