{"version":3,"file":"static/js/index.664b2e3e.js","sources":["webpack://@rl/bundle-console-user/../billing-subscriptions/src/types.ts","webpack://@rl/bundle-console-user/./src/index.js"],"sourcesContent":["export enum FlowType {\n New = \"new\",\n Upgrade = \"upgrade\",\n}\n\nexport interface Limits {\n pageViews: number;\n pageRules: number;\n images: number;\n canonicalUrls: number;\n delegates: number;\n}","import React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport { FlowType } from '@rl/billing-subscriptions/src/types';\n\nfunction removeConsoleLogs() {\n if (process.env.NODE_ENV === 'production') {\n // console.log = () => { }\n console.debug = () => { }\n }\n}\n\nwindow.ShowDomainAdd = ({ id, onFinish }) => {\n const ele = document.getElementById(id);\n if (!ele) {\n console.error(\"domain-add: element not found with id\", id);\n return;\n }\n\n import('@rl/domain-add/src/index').then(module => {\n removeConsoleLogs();\n\n const root = ReactDOM.createRoot(ele);\n root.render(\n \n Loading...}>\n \n \n \n );\n });\n}\n\nwindow.ShowLightHouseScore = ({ id, url, domain_id, url_id }) => {\n const ele = document.getElementById(id);\n if (!ele) {\n console.error(\"lighthouse-score: element not found with id\", id);\n return;\n }\n //import { UpdateLightHouseScore } from \"@rl/update-lighthouse-score/src/index\";\n import(/* webpackChunkName: \"UpdateLightHouseScore\" */ \"@rl/update-lighthouse-score/src/index\").then(module => {\n //const ShowLightHouseScore = UpdateLightHouseScore.UpdateLightHouseScore;\n\n removeConsoleLogs()\n const root = ReactDOM.createRoot(document.getElementById(id));\n root.render(\n \n {}
\n \n );\n });\n}\n\nwindow.IntegrationInstructions = ({ id }) => {\n const ele = document.getElementById(id);\n if (!ele) {\n console.error(\"integration-instructions: element not found with id\", id);\n return;\n }\n import(/* webpackChunkName: \"IntegrationInstructions\" */ \"@rl/integration-instructions/src/index\").then(IntegrationInstructions => {\n const ShowIns = IntegrationInstructions.IntegrationInstructions;\n\n removeConsoleLogs()\n const root = ReactDOM.createRoot(ele);\n root.render(\n \n {}
\n \n );\n });\n}\n\nwindow.UrlList = ({ id, domain, domain_id }) => {\n const ele = document.getElementById(id);\n if (!ele) {\n console.error(\"url-list: element not found with id\", id);\n return;\n }\n import(\"@rl/url-list/src/main\").then(UrlList => {\n const Table = UrlList.UrlList;\n\n removeConsoleLogs()\n const root = ReactDOM.createRoot(ele)\n root.render(\n \n \n \n )\n })\n}\n\nwindow.ActivityHistory = ({ domID, domainID }) => {\n const ele = document.getElementById(domID);\n if (!ele) {\n console.error(\"activity-history: element not found with id\", domID);\n return\n }\n import(\"@rl/activity-log/src/main\").then(module => {\n const ActivityHistory = module.ActivityHistory;\n removeConsoleLogs()\n const root = ReactDOM.createRoot(ele)\n root.render(\n \n \n \n )\n })\n}\n\nwindow.TrendPageViews = ({ domID, domainID }) => {\n const ele = document.getElementById(domID)\n if (!ele) {\n console.error(\"trend-pageviews: element not found with id\", domID);\n return;\n }\n import('@rl/trend-pageviews/src/main').then(module => {\n const TrendPageViews = module.TrendPageViews;\n removeConsoleLogs();\n const root = ReactDOM.createRoot(ele);\n root.render(\n \n \n \n )\n })\n}\n\n\nwindow.ShowExpiryPopup = ({ domID, domainHost, subscriptionID }) => {\n const ele = document.getElementById(domID)\n if (!ele) {\n console.error(\"expiry-popup: element not found with id\", domID);\n return;\n }\n import('@rl/billing-subscriptions/src/main').then(module => {\n const ExpiryPopup = module.RenderExpiryPopup;\n removeConsoleLogs()\n const root = ReactDOM.createRoot(ele);\n root.render(\n \n \n \n )\n })\n}\n\nwindow.ShowPageRules = ({ domID, domainID, miniMode }) => {\n const ele = document.getElementById(domID);\n if (!ele) {\n console.error(\"page-rules: element not found with id\", domID);\n return;\n }\n import('@rl/page-rules/src/main').then(module => {\n const PageRule = module.PageRule;\n\n removeConsoleLogs()\n const root = ReactDOM.createRoot(ele);\n root.render(\n \n \n \n )\n })\n}\n\nwindow.ShowPerformanceSummary = ({ domID, domainID, domainName, urlID }) => {\n const ele = document.getElementById(domID);\n if (!ele) {\n console.error(\"performance-summary: element not found with id\", domID);\n return;\n }\n import(\"@rl/performance-summary/src/main\").then(module => {\n const PerformanceSummary = module.PerformanceSummary;\n const root = ReactDOM.createRoot(ele);\n removeConsoleLogs();\n root.render(\n \n \n \n )\n })\n}\n\nwindow.RenderPerformanceCards = ({ domID, domainID }) => {\n const ele = document.getElementById(domID);\n if (!ele) {\n console.error(\"performance-summary-cards: element not found with id\", domID);\n return;\n }\n import(\"@rl/performance-summary/src/main\").then(module => {\n const RenderPerformanceCards = module.RenderPerformanceCards;\n const root = ReactDOM.createRoot(ele);\n removeConsoleLogs();\n root.render(\n \n \n \n )\n })\n}\n\nwindow.ShowCloudflareForm = ({ domID, domainID }) => {\n const ele = document.getElementById(domID);\n if (!ele) {\n console.error(\"cloudflare-form: element not found with id\", domID);\n return;\n }\n import('@rl/cloudflare-form/src/main').then(module => {\n const CloudflareForm = module.CloudflareForm;\n\n removeConsoleLogs()\n\n const root = ReactDOM.createRoot(ele);\n\n root.render(\n \n \n \n )\n })\n}\n\nwindow.ShowPricingPlan = ({ domId, domainID }) => {\n const ele = document.getElementById(domId);\n if (!ele) {\n console.error(\"pricing-plan: element not found with id\", domId);\n return;\n }\n import('@rl/billing-subscriptions/src/main').then(module => {\n const PricingPlan = module.RenderPricingCards;\n\n removeConsoleLogs();\n\n const root = ReactDOM.createRoot(ele);\n\n root.render(\n \n \n \n );\n })\n}\n\nwindow.ShowAddDomainButton = ({ domID }) => {\n const ele = document.getElementById(domID);\n if (!ele) {\n console.error(\"pricing-plan: element not found with id\", domId);\n return;\n }\n\n import(\"./components/console\").then(module => {\n const RenderAddDomainButton = module.RenderAddDomainButton;\n\n\n removeConsoleLogs();\n\n const root = ReactDOM.createRoot(ele);\n\n root.render(\n \n \n \n )\n })\n} "],"names":["FlowType","removeConsoleLogs","console","window","id","onFinish","ele","document","module","root","ReactDOM","React","url","domain_id","url_id","IntegrationInstructions","ShowIns","domain","UrlList","Table","domID","domainID","ActivityHistory","TrendPageViews","domainHost","subscriptionID","ExpiryPopup","miniMode","PageRule","domainName","urlID","PerformanceS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