mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 19:11:02 +00:00
1 line
6.4 KiB
Plaintext
1 line
6.4 KiB
Plaintext
{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\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 'use client';\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return Clipboard;\n }\n });\n var clipboardAvailable;\n class Clipboard {\n static isAvailable() {\n if (clipboardAvailable === undefined) {\n clipboardAvailable = typeof document.queryCommandSupported === 'function' && document.queryCommandSupported('copy');\n }\n return clipboardAvailable;\n }\n static getString() {\n return Promise.resolve('');\n }\n static setString(text) {\n var success = false;\n var body = document.body;\n if (body) {\n // add the text to a hidden node\n var node = document.createElement('span');\n node.textContent = text;\n node.style.opacity = '0';\n node.style.position = 'absolute';\n node.style.whiteSpace = 'pre-wrap';\n node.style.userSelect = 'auto';\n body.appendChild(node);\n\n // select the text\n var selection = window.getSelection();\n selection.removeAllRanges();\n var range = document.createRange();\n range.selectNodeContents(node);\n selection.addRange(range);\n\n // attempt to copy\n try {\n document.execCommand('copy');\n success = true;\n } catch (e) {}\n\n // remove selection and node\n selection.removeAllRanges();\n body.removeChild(node);\n }\n return success;\n }\n }\n});","lineCount":68,"map":[[2,2,1,0],[3,0,2,0],[4,0,3,0],[5,0,4,0],[6,0,5,0],[7,0,6,0],[8,0,7,0],[9,0,8,0],[10,0,9,0],[12,2,11,0],[12,14,11,12],[13,2,11,13],[15,2,11,13,"Object"],[15,8,11,13],[15,9,11,13,"defineProperty"],[15,23,11,13],[15,24,11,13,"exports"],[15,31,11,13],[16,4,11,13,"value"],[16,9,11,13],[17,2,11,13],[18,2,14,15,"Object"],[18,8,14,15],[18,9,14,15,"defineProperty"],[18,23,14,15],[18,24,14,15,"exports"],[18,31,14,15],[19,4,14,15,"enumerable"],[19,14,14,15],[20,4,14,15,"get"],[20,7,14,15],[20,18,14,15,"get"],[20,19,14,15],[21,6,14,15],[21,13,14,15,"Clipboard"],[21,22,14,15],[22,4,14,15],[23,2,14,15],[24,2,13,0],[24,6,13,4,"clipboardAvailable"],[24,24,13,22],[25,2,14,15],[25,8,14,21,"Clipboard"],[25,17,14,30],[25,18,14,31],[26,4,15,2],[26,11,15,9,"isAvailable"],[26,22,15,20,"isAvailable"],[26,23,15,20],[26,25,15,23],[27,6,16,4],[27,10,16,8,"clipboardAvailable"],[27,28,16,26],[27,33,16,31,"undefined"],[27,42,16,40],[27,44,16,42],[28,8,17,6,"clipboardAvailable"],[28,26,17,24],[28,29,17,27],[28,36,17,34,"document"],[28,44,17,42],[28,45,17,43,"queryCommandSupported"],[28,66,17,64],[28,71,17,69],[28,81,17,79],[28,85,17,83,"document"],[28,93,17,91],[28,94,17,92,"queryCommandSupported"],[28,115,17,113],[28,116,17,114],[28,122,17,120],[28,123,17,121],[29,6,18,4],[30,6,19,4],[30,13,19,11,"clipboardAvailable"],[30,31,19,29],[31,4,20,2],[32,4,21,2],[32,11,21,9,"getString"],[32,20,21,18,"getString"],[32,21,21,18],[32,23,21,21],[33,6,22,4],[33,13,22,11,"Promise"],[33,20,22,18],[33,21,22,19,"resolve"],[33,28,22,26],[33,29,22,27],[33,31,22,29],[33,32,22,30],[34,4,23,2],[35,4,24,2],[35,11,24,9,"setString"],[35,20,24,18,"setString"],[35,21,24,19,"text"],[35,25,24,23],[35,27,24,25],[36,6,25,4],[36,10,25,8,"success"],[36,17,25,15],[36,20,25,18],[36,25,25,23],[37,6,26,4],[37,10,26,8,"body"],[37,14,26,12],[37,17,26,15,"document"],[37,25,26,23],[37,26,26,24,"body"],[37,30,26,28],[38,6,27,4],[38,10,27,8,"body"],[38,14,27,12],[38,16,27,14],[39,8,28,6],[40,8,29,6],[40,12,29,10,"node"],[40,16,29,14],[40,19,29,17,"document"],[40,27,29,25],[40,28,29,26,"createElement"],[40,41,29,39],[40,42,29,40],[40,48,29,46],[40,49,29,47],[41,8,30,6,"node"],[41,12,30,10],[41,13,30,11,"textContent"],[41,24,30,22],[41,27,30,25,"text"],[41,31,30,29],[42,8,31,6,"node"],[42,12,31,10],[42,13,31,11,"style"],[42,18,31,16],[42,19,31,17,"opacity"],[42,26,31,24],[42,29,31,27],[42,32,31,30],[43,8,32,6,"node"],[43,12,32,10],[43,13,32,11,"style"],[43,18,32,16],[43,19,32,17,"position"],[43,27,32,25],[43,30,32,28],[43,40,32,38],[44,8,33,6,"node"],[44,12,33,10],[44,13,33,11,"style"],[44,18,33,16],[44,19,33,17,"whiteSpace"],[44,29,33,27],[44,32,33,30],[44,42,33,40],[45,8,34,6,"node"],[45,12,34,10],[45,13,34,11,"style"],[45,18,34,16],[45,19,34,17,"userSelect"],[45,29,34,27],[45,32,34,30],[45,38,34,36],[46,8,35,6,"body"],[46,12,35,10],[46,13,35,11,"appendChild"],[46,24,35,22],[46,25,35,23,"node"],[46,29,35,27],[46,30,35,28],[48,8,37,6],[49,8,38,6],[49,12,38,10,"selection"],[49,21,38,19],[49,24,38,22,"window"],[49,30,38,28],[49,31,38,29,"getSelection"],[49,43,38,41],[49,44,38,42],[49,45,38,43],[50,8,39,6,"selection"],[50,17,39,15],[50,18,39,16,"removeAllRanges"],[50,33,39,31],[50,34,39,32],[50,35,39,33],[51,8,40,6],[51,12,40,10,"range"],[51,17,40,15],[51,20,40,18,"document"],[51,28,40,26],[51,29,40,27,"createRange"],[51,40,40,38],[51,41,40,39],[51,42,40,40],[52,8,41,6,"range"],[52,13,41,11],[52,14,41,12,"selectNodeContents"],[52,32,41,30],[52,33,41,31,"node"],[52,37,41,35],[52,38,41,36],[53,8,42,6,"selection"],[53,17,42,15],[53,18,42,16,"addRange"],[53,26,42,24],[53,27,42,25,"range"],[53,32,42,30],[53,33,42,31],[55,8,44,6],[56,8,45,6],[56,12,45,10],[57,10,46,8,"document"],[57,18,46,16],[57,19,46,17,"execCommand"],[57,30,46,28],[57,31,46,29],[57,37,46,35],[57,38,46,36],[58,10,47,8,"success"],[58,17,47,15],[58,20,47,18],[58,24,47,22],[59,8,48,6],[59,9,48,7],[59,10,48,8],[59,17,48,15,"e"],[59,18,48,16],[59,20,48,18],[59,21,48,19],[61,8,50,6],[62,8,51,6,"selection"],[62,17,51,15],[62,18,51,16,"removeAllRanges"],[62,33,51,31],[62,34,51,32],[62,35,51,33],[63,8,52,6,"body"],[63,12,52,10],[63,13,52,11,"removeChild"],[63,24,52,22],[63,25,52,23,"node"],[63,29,52,27],[63,30,52,28],[64,6,53,4],[65,6,54,4],[65,13,54,11,"success"],[65,20,54,18],[66,4,55,2],[67,2,56,0],[68,0,56,1],[68,3]],"functionMap":{"names":["<global>","Clipboard","Clipboard.isAvailable","Clipboard.getString","Clipboard.setString"],"mappings":"AAA;eCa;ECC;GDK;EEC;GFE;EGC;GH+B"},"hasCjsExports":false},"type":"js/module"}]} |