{"ast":null,"code":"'use client';\n\nvar clipboardAvailable;\nexport default 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      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      var selection = window.getSelection();\n      selection.removeAllRanges();\n      var range = document.createRange();\n      range.selectNodeContents(node);\n      selection.addRange(range);\n      try {\n        document.execCommand('copy');\n        success = true;\n      } catch (e) {}\n      selection.removeAllRanges();\n      body.removeChild(node);\n    }\n    return success;\n  }\n}","map":{"version":3,"names":["clipboardAvailable","Clipboard","isAvailable","undefined","document","queryCommandSupported","getString","Promise","resolve","setString","text","success","body","node","createElement","textContent","style","opacity","position","whiteSpace","userSelect","appendChild","selection","window","getSelection","removeAllRanges","range","createRange","selectNodeContents","addRange","execCommand","e","removeChild"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-web/dist/exports/Clipboard/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 */\n\n'use client';\n\nvar clipboardAvailable;\nexport default 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}"],"mappings":"AAUA,YAAY;;AAEZ,IAAIA,kBAAkB;AACtB,eAAe,MAAMC,SAAS,CAAC;EAC7B,OAAOC,WAAWA,CAAA,EAAG;IACnB,IAAIF,kBAAkB,KAAKG,SAAS,EAAE;MACpCH,kBAAkB,GAAG,OAAOI,QAAQ,CAACC,qBAAqB,KAAK,UAAU,IAAID,QAAQ,CAACC,qBAAqB,CAAC,MAAM,CAAC;IACrH;IACA,OAAOL,kBAAkB;EAC3B;EACA,OAAOM,SAASA,CAAA,EAAG;IACjB,OAAOC,OAAO,CAACC,OAAO,CAAC,EAAE,CAAC;EAC5B;EACA,OAAOC,SAASA,CAACC,IAAI,EAAE;IACrB,IAAIC,OAAO,GAAG,KAAK;IACnB,IAAIC,IAAI,GAAGR,QAAQ,CAACQ,IAAI;IACxB,IAAIA,IAAI,EAAE;MAER,IAAIC,IAAI,GAAGT,QAAQ,CAACU,aAAa,CAAC,MAAM,CAAC;MACzCD,IAAI,CAACE,WAAW,GAAGL,IAAI;MACvBG,IAAI,CAACG,KAAK,CAACC,OAAO,GAAG,GAAG;MACxBJ,IAAI,CAACG,KAAK,CAACE,QAAQ,GAAG,UAAU;MAChCL,IAAI,CAACG,KAAK,CAACG,UAAU,GAAG,UAAU;MAClCN,IAAI,CAACG,KAAK,CAACI,UAAU,GAAG,MAAM;MAC9BR,IAAI,CAACS,WAAW,CAACR,IAAI,CAAC;MAGtB,IAAIS,SAAS,GAAGC,MAAM,CAACC,YAAY,CAAC,CAAC;MACrCF,SAAS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