UNPKG

obsidian-dev-utils

Version:

This is the collection of useful functions that you can use for your Obsidian plugin development

59 lines (56 loc) 4.19 kB
/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ (function initCjs(){const globalThisRecord=globalThis;globalThisRecord["__name"]??=name;const originalRequire=require;if(originalRequire&&!originalRequire.__isPatched){require=Object.assign(id=>requirePatched(id),originalRequire,{__isPatched:true})}const newFuncs={__extractDefault:__name(()=>extractDefault,"__extractDefault"),process:__name(()=>{const browserProcess={browser:true,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};return browserProcess},"process")};for(const key of Object.keys(newFuncs)){globalThisRecord[key]??=newFuncs[key]?.()}function name(obj){return obj}__name(name,"name");function extractDefault(module){return module&&module.__esModule&&"default"in module?module.default:module}__name(extractDefault,"extractDefault");function requirePatched(id){const module=originalRequire?.(id);if(module){return extractDefault(module)}if(id==="process"||id==="node:process"){console.error(`Module not found: ${id}. Fake process object is returned instead.`);return globalThis.process}console.error(`Module not found: ${id}. Empty object is returned instead.`);return{}}__name(requirePatched,"requirePatched")})(); "use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var Modals_exports = {}; __export(Modals_exports, { Alert: () => Alert, Confirm: () => Confirm, ModalBase: () => ModalBase, Prompt: () => Prompt, SelectItem: () => SelectItem }); module.exports = __toCommonJS(Modals_exports); var Alert = __toESM(__extractDefault(require('./Alert.cjs')), 1); var Confirm = __toESM(__extractDefault(require('./Confirm.cjs')), 1); var ModalBase = __toESM(__extractDefault(require('./ModalBase.cjs')), 1); var Prompt = __toESM(__extractDefault(require('./Prompt.cjs')), 1); var SelectItem = __toESM(__extractDefault(require('./SelectItem.cjs')), 1); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { Alert, Confirm, ModalBase, Prompt, SelectItem }); //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vLi4vc3JjL29ic2lkaWFuL01vZGFscy9pbmRleC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyogVEhJUyBJUyBBIEdFTkVSQVRFRC9CVU5ETEVEIEZJTEUgQlkgQlVJTEQgU0NSSVBUICovXG5cbmV4cG9ydCAqIGFzIEFsZXJ0IGZyb20gJy4vQWxlcnQudHMnO1xuZXhwb3J0ICogYXMgQ29uZmlybSBmcm9tICcuL0NvbmZpcm0udHMnO1xuZXhwb3J0ICogYXMgTW9kYWxCYXNlIGZyb20gJy4vTW9kYWxCYXNlLnRzJztcbmV4cG9ydCAqIGFzIFByb21wdCBmcm9tICcuL1Byb21wdC50cyc7XG5leHBvcnQgKiBhcyBTZWxlY3RJdGVtIGZyb20gJy4vU2VsZWN0SXRlbS50cyc7XG4iXSwKICAibWFwcGluZ3MiOiAiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUVBLFlBQXVCO0FBQ3ZCLGNBQXlCO0FBQ3pCLGdCQUEyQjtBQUMzQixhQUF3QjtBQUN4QixpQkFBNEI7IiwKICAibmFtZXMiOiBbXQp9Cg==