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ist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@tarojs/router@4.2.0/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { initNavigationBar } from './navigationBar.js';\nimport { initTabbar } from './tabbar.js';\nexport { getCurrentPages, navigateBack, navigateTo, reLaunch, redirectTo, switchTab } from './api.js';\nexport { createMpaHistory, history, prependBasename, setHistory, setHistoryMode } from './history.js';\nexport { createMultiRouter } from './router/mpa.js';\nexport { createRouter } from './router/spa.js';\nexport { routesAlias } from './utils/index.js';\nexport { createBrowserHistory, createHashHistory } from 'history';\nexport { isDingTalk, isWeixin, setMpaTitle, setNavigationBarLoading, setNavigationBarStyle, setTitle } from './utils/navigate.js';\n\nfunction handleAppMount(config, _, appId = config.appId || 'app') {\n    let app = document.getElementById(appId);\n    let isPosition = true;\n    if (!app) {\n        app = document.createElement('div');\n        app.id = appId;\n        isPosition = false;\n    }\n    const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);\n    app.classList.add('taro_router');\n    if (!isPosition)\n        appWrapper.appendChild(app);\n    initNavigationBar(config, appWrapper);\n}\nfunction handleAppMountWithTabbar(config, history, appId = config.appId || 'app') {\n    let app = document.getElementById(appId);\n    let isPosition = true;\n    if (!app) {\n        app = document.createElement('div');\n        app.id = appId;\n        isPosition = false;\n    }\n    const appWrapper = ((app === null || app === void 0 ? void 0 : app.parentNode) || (app === null || app === void 0 ? void 0 : app.parentElement) || document.body);\n    app.classList.add('taro_router');\n    const container = document.createElement('div');\n    container.classList.add('taro-tabbar__container');\n    container.id = 'container';\n    const panel = document.createElement('div');\n    panel.classList.add('taro-tabbar__panel');\n    panel.appendChild(app.cloneNode(true));\n    container.appendChild(panel);\n    if (!isPosition) {\n        appWrapper.appendChild(container);\n    }\n    else {\n        appWrapper.replaceChild(container, app);\n    }\n    initTabbar(config, history);\n    initNavigationBar(config, container);\n}\n\nexport { handleAppMount, handleAppMountWithTabbar };\n"]}