@lotte-innovate/ui-component-test 0.2.43 → 0.2.45
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/_virtual/_commonjs-dynamic-modules.mjs +2 -0
- package/dist/lib/_virtual/_commonjs-dynamic-modules.mjs.map +1 -0
- package/dist/lib/_virtual/_commonjsHelpers.mjs +2 -0
- package/dist/lib/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/dist/lib/_virtual/_interop_require_default.mjs +2 -0
- package/dist/lib/_virtual/_interop_require_default.mjs.map +1 -0
- package/dist/lib/_virtual/dynamic.mjs +2 -0
- package/dist/lib/_virtual/dynamic.mjs.map +1 -0
- package/dist/lib/_virtual/dynamic2.mjs +2 -0
- package/dist/lib/_virtual/dynamic2.mjs.map +1 -0
- package/dist/lib/_virtual/loadable-context.shared-runtime.mjs +2 -0
- package/dist/lib/_virtual/loadable-context.shared-runtime.mjs.map +1 -0
- package/dist/lib/_virtual/loadable.shared-runtime.mjs +2 -0
- package/dist/lib/_virtual/loadable.shared-runtime.mjs.map +1 -0
- package/dist/lib/components/Editor/index.d.ts +0 -11
- package/dist/lib/components/Editor/index.js +92 -13
- package/dist/lib/dist/lib/components/Editor/index.mjs +3 -0
- package/dist/lib/dist/lib/constants.mjs.map +1 -0
- package/dist/lib/dist/lib/utils/utils.mjs.map +1 -0
- package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_default.mjs +2 -0
- package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_default.mjs.map +1 -0
- package/dist/lib/node_modules/next/dist/shared/lib/dynamic.mjs +2 -0
- package/dist/lib/node_modules/next/dist/shared/lib/dynamic.mjs.map +1 -0
- package/dist/lib/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.mjs +2 -0
- package/dist/lib/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.mjs.map +1 -0
- package/dist/lib/node_modules/next/dist/shared/lib/loadable.shared-runtime.mjs +2 -0
- package/dist/lib/node_modules/next/dist/shared/lib/loadable.shared-runtime.mjs.map +1 -0
- package/dist/lib/node_modules/next/dynamic.mjs +2 -0
- package/dist/lib/node_modules/next/dynamic.mjs.map +1 -0
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/lib/components/Editor/index.mjs +0 -3
- package/dist/lib/constants.mjs.map +0 -1
- package/dist/lib/utils/utils.mjs.map +0 -1
- /package/dist/lib/{components → dist/lib/components}/Editor/index.mjs.map +0 -0
- /package/dist/lib/{constants.mjs → dist/lib/constants.mjs} +0 -0
- /package/dist/lib/{index.mjs → dist/lib/index.mjs} +0 -0
- /package/dist/lib/{index.mjs.map → dist/lib/index.mjs.map} +0 -0
- /package/dist/lib/{utils → dist/lib/utils}/utils.mjs +0 -0
@@ -0,0 +1,2 @@
|
|
1
|
+
function r(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}export{r as commonjsRequire};
|
2
|
+
//# sourceMappingURL=_commonjs-dynamic-modules.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_commonjs-dynamic-modules.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_commonjsHelpers.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_interop_require_default.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dynamic.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dynamic2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"loadable-context.shared-runtime.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"loadable.shared-runtime.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1,17 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IAllProps } from '@tinymce/tinymce-react';
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
4
|
-
import 'tinymce/tinymce.js';
|
5
|
-
import 'tinymce/themes/silver/theme.js';
|
6
|
-
import 'tinymce/models/dom/model.js';
|
7
|
-
import 'tinymce/icons/default/icons.js';
|
8
|
-
import 'tinymce/plugins/advlist/plugin.js';
|
9
|
-
import 'tinymce/plugins/code/plugin.js';
|
10
|
-
import 'tinymce/plugins/codesample/plugin.js';
|
11
|
-
import 'tinymce/plugins/link/plugin.js';
|
12
|
-
import 'tinymce/plugins/lists/plugin.js';
|
13
|
-
import 'tinymce/plugins/table/plugin.js';
|
14
|
-
import 'tinymce/plugins/image/plugin.js';
|
15
4
|
export interface EditorProps extends VariantProps<typeof editorVariants> {
|
16
5
|
}
|
17
6
|
declare const editorVariants: (props?: ({
|
@@ -10,6 +10,42 @@ var __assign = (this && this.__assign) || function () {
|
|
10
10
|
};
|
11
11
|
return __assign.apply(this, arguments);
|
12
12
|
};
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
20
|
+
});
|
21
|
+
};
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
24
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
26
|
+
function step(op) {
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
31
|
+
switch (op[0]) {
|
32
|
+
case 0: case 1: t = op; break;
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
36
|
+
default:
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
41
|
+
if (t[2]) _.ops.pop();
|
42
|
+
_.trys.pop(); continue;
|
43
|
+
}
|
44
|
+
op = body.call(thisArg, _);
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
47
|
+
}
|
48
|
+
};
|
13
49
|
var __rest = (this && this.__rest) || function (s, e) {
|
14
50
|
var t = {};
|
15
51
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -22,23 +58,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
22
58
|
return t;
|
23
59
|
};
|
24
60
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
|
-
import { forwardRef } from 'react';
|
26
|
-
import { Editor as EditorUI } from '@tinymce/tinymce-react';
|
61
|
+
import { forwardRef, useEffect, useState, } from 'react';
|
27
62
|
import { cva } from 'class-variance-authority';
|
28
63
|
import { scalingVariants } from '../../../lib/constants';
|
29
64
|
import { cn } from '../../../lib/utils/utils';
|
65
|
+
import dynamic from 'next/dynamic';
|
30
66
|
import { marked } from 'marked';
|
31
|
-
import 'tinymce/tinymce.js';
|
32
|
-
import 'tinymce/themes/silver/theme.js';
|
33
|
-
import 'tinymce/models/dom/model.js';
|
34
|
-
import 'tinymce/icons/default/icons.js';
|
35
|
-
import 'tinymce/plugins/advlist/plugin.js';
|
36
|
-
import 'tinymce/plugins/code/plugin.js';
|
37
|
-
import 'tinymce/plugins/codesample/plugin.js';
|
38
|
-
import 'tinymce/plugins/link/plugin.js';
|
39
|
-
import 'tinymce/plugins/lists/plugin.js';
|
40
|
-
import 'tinymce/plugins/table/plugin.js';
|
41
|
-
import 'tinymce/plugins/image/plugin.js';
|
42
67
|
var editorVariants = cva('', {
|
43
68
|
variants: {
|
44
69
|
scaling: __assign({}, scalingVariants),
|
@@ -55,6 +80,60 @@ var editorVariants = cva('', {
|
|
55
80
|
});
|
56
81
|
export var Editor = forwardRef(function (_a, ref) {
|
57
82
|
var className = _a.className, size = _a.size, scaling = _a.scaling, props = __rest(_a, ["className", "size", "scaling"]);
|
83
|
+
var _b = useState(false), isClient = _b[0], setIsClient = _b[1];
|
84
|
+
useEffect(function () {
|
85
|
+
if (typeof window !== 'undefined') {
|
86
|
+
var loadTinyMCE = function () { return __awaiter(void 0, void 0, void 0, function () {
|
87
|
+
return __generator(this, function (_a) {
|
88
|
+
switch (_a.label) {
|
89
|
+
case 0: return [4 /*yield*/, import('tinymce/tinymce.js')];
|
90
|
+
case 1:
|
91
|
+
_a.sent();
|
92
|
+
return [4 /*yield*/, import('tinymce/themes/silver/theme.js')];
|
93
|
+
case 2:
|
94
|
+
_a.sent();
|
95
|
+
return [4 /*yield*/, import('tinymce/models/dom/model.js')];
|
96
|
+
case 3:
|
97
|
+
_a.sent();
|
98
|
+
return [4 /*yield*/, import('tinymce/icons/default/icons.js')];
|
99
|
+
case 4:
|
100
|
+
_a.sent();
|
101
|
+
return [4 /*yield*/, import('tinymce/plugins/advlist/plugin.js')];
|
102
|
+
case 5:
|
103
|
+
_a.sent();
|
104
|
+
return [4 /*yield*/, import('tinymce/plugins/code/plugin.js')];
|
105
|
+
case 6:
|
106
|
+
_a.sent();
|
107
|
+
return [4 /*yield*/, import('tinymce/plugins/codesample/plugin.js')];
|
108
|
+
case 7:
|
109
|
+
_a.sent();
|
110
|
+
return [4 /*yield*/, import('tinymce/plugins/link/plugin.js')];
|
111
|
+
case 8:
|
112
|
+
_a.sent();
|
113
|
+
return [4 /*yield*/, import('tinymce/plugins/lists/plugin.js')];
|
114
|
+
case 9:
|
115
|
+
_a.sent();
|
116
|
+
return [4 /*yield*/, import('tinymce/plugins/table/plugin.js')];
|
117
|
+
case 10:
|
118
|
+
_a.sent();
|
119
|
+
return [4 /*yield*/, import('tinymce/plugins/image/plugin.js')];
|
120
|
+
case 11:
|
121
|
+
_a.sent();
|
122
|
+
return [2 /*return*/];
|
123
|
+
}
|
124
|
+
});
|
125
|
+
}); };
|
126
|
+
loadTinyMCE().then(function () {
|
127
|
+
setIsClient(true);
|
128
|
+
});
|
129
|
+
}
|
130
|
+
}, []);
|
131
|
+
if (!isClient) {
|
132
|
+
return null;
|
133
|
+
}
|
134
|
+
var EditorUI = dynamic(function () { return import('@tinymce/tinymce-react').then(function (mod) { return mod.Editor; }); }, {
|
135
|
+
ssr: false,
|
136
|
+
});
|
58
137
|
return (_jsx("div", { className: cn(editorVariants({ size: size, scaling: scaling }), className), ref: ref, children: _jsx(EditorUI, __assign({ init: {
|
59
138
|
base_url: 'tinymce',
|
60
139
|
width: '100%',
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use client";
|
2
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as e,useState as n,useEffect as r}from"react";import{cva as i}from"class-variance-authority";import{scalingVariants as o}from"../../constants.mjs";import{cn as s}from"../../utils/utils.mjs";import a from"../../../../_virtual/dynamic.mjs";import{marked as c}from"marked";var l=function(){return l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},l.apply(this,arguments)},u=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))},p=function(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},f=i("",{variants:{scaling:l({},o),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),d=e((function(e,i){var o=e.className,d=e.size,y=e.scaling,g=m(e,["className","size","scaling"]),b=n(!1),h=b[0],v=b[1];if(r((function(){if("undefined"!=typeof window){u(void 0,void 0,void 0,(function(){return p(this,(function(t){switch(t.label){case 0:return[4,import("tinymce/tinymce.js")];case 1:return t.sent(),[4,import("tinymce/themes/silver/theme.js")];case 2:return t.sent(),[4,import("tinymce/models/dom/model.js")];case 3:return t.sent(),[4,import("tinymce/icons/default/icons.js")];case 4:return t.sent(),[4,import("tinymce/plugins/advlist/plugin.js")];case 5:return t.sent(),[4,import("tinymce/plugins/code/plugin.js")];case 6:return t.sent(),[4,import("tinymce/plugins/codesample/plugin.js")];case 7:return t.sent(),[4,import("tinymce/plugins/link/plugin.js")];case 8:return t.sent(),[4,import("tinymce/plugins/lists/plugin.js")];case 9:return t.sent(),[4,import("tinymce/plugins/table/plugin.js")];case 10:return t.sent(),[4,import("tinymce/plugins/image/plugin.js")];case 11:return t.sent(),[2]}}))})).then((function(){v(!0)}))}}),[]),!h)return null;var w=a((function(){return import("@tinymce/tinymce-react").then((function(t){return t.Editor}))}),{ssr:!1});return t("div",{className:s(f({size:d,scaling:y}),o),ref:i,children:t(w,l({init:{base_url:"tinymce",width:"100%",height:"100%",plugins:"link table lists code codesample",menubar:!1,toolbar:"blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat codesample markdown",content_style:"body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }",setup:function(t){t.ui.registry.addButton("inlinecode",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){t.formatter.toggle("code")}}),t.on("init",(function(){t.formatter.register("code",{inline:"code",remove:"all"})})),t.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var e=t.getContent({format:"text"}),n=c(e);t.setContent(n)}})}}},g))})}));d.displayName="Editor";export{d as Editor,d as default};
|
3
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.mjs","sources":["../../../lib/constants.js"],"sourcesContent":["export var scalingVariants = {\n '90%': 'scale-90',\n '95%': 'scale-95',\n '100%': 'scale-100',\n '105%': 'scale-105',\n '110%': 'scale-110',\n};\n"],"names":["scalingVariants"],"mappings":"AAAU,IAACA,EAAkB,CACzB,MAAO,WACP,MAAO,WACP,OAAQ,YACR,OAAQ,YACR,OAAQ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.mjs","sources":["../../../../lib/utils/utils.js"],"sourcesContent":["import { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n// tailwind를 merge할 때 발생할 수 있는 클래스 충돌 문제 해결\nexport function cn() {\n var inputs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n inputs[_i] = arguments[_i];\n }\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","_i","arguments","length","twMerge","clsx"],"mappings":"qEAGO,SAASA,IAEZ,IADA,IAAIC,EAAS,GACJC,EAAK,EAAGA,EAAKC,UAAUC,OAAQF,IACpCD,EAAOC,GAAMC,UAAUD,GAE3B,OAAOG,EAAQC,EAAKL,GACxB"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__exports as r}from"../../../../_virtual/_interop_require_default.mjs";var e;function t(){if(e)return r;return e=1,r._=r._interop_require_default=function(r){return r&&r.__esModule?r:{default:r}},r}export{t as __require};
|
2
|
+
//# sourceMappingURL=_interop_require_default.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_interop_require_default.mjs","sources":["../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs"],"sourcesContent":["\"use strict\";\n\nexports._ = exports._interop_require_default = _interop_require_default;\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n}\n"],"names":["_interop_require_default_1","_","_interop_require_default","obj","__esModule","default"],"mappings":"0HAESA,EAAAC,EAAGD,EAAgCE,yBAC5C,SAAkCC,GAC9B,OAAOA,GAAOA,EAAIC,WAAaD,EAAM,CAAEE,QAASF,EACpD"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__module as e}from"../../../../../_virtual/dynamic2.mjs";import{__require as t}from"../../../../@swc/helpers/cjs/_interop_require_default.mjs";import r from"react/jsx-runtime";import"react";import{__require as o}from"./loadable.shared-runtime.mjs";var n;function l(){return n||(n=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(n,{noSSR:function(){return i},default:function(){return s}});const l=r,u=t()._(o()),a="undefined"==typeof window;function d(e){return{default:(null==e?void 0:e.default)||e}}function i(e,t){if(delete t.webpack,delete t.modules,!a)return e(t);const r=t.loading;return()=>(0,l.jsx)(r,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function s(e,t){let r=u.default,o={loading:e=>{let{error:t,isLoading:r,pastDelay:o}=e;if(!o)return null;if("production"!==process.env.NODE_ENV){if(r)return null;if(t)return(0,l.jsxs)("p",{children:[t.message,(0,l.jsx)("br",{}),t.stack]})}return null}};e instanceof Promise?o.loader=()=>e:"function"==typeof e?o.loader=e:"object"==typeof e&&(o={...o,...e}),o={...o,...t};const n=o.loader;return o.loadableGenerated&&(o={...o,...o.loadableGenerated},delete o.loadableGenerated),"boolean"!=typeof o.ssr||o.ssr?r({...o,loader:()=>null!=n?n().then(d):Promise.resolve(d((()=>null)))}):(delete o.webpack,delete o.modules,i(r,o))}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)}(e,e.exports)),e.exports}e.exports;export{l as __require};
|
2
|
+
//# sourceMappingURL=dynamic.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dynamic.mjs","sources":["../../../../../../../node_modules/next/dist/shared/lib/dynamic.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n noSSR: null,\n default: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n noSSR: function() {\n return noSSR;\n },\n default: function() {\n return dynamic;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _jsxruntime = require(\"react/jsx-runtime\");\nconst _react = /*#__PURE__*/ _interop_require_default._(require(\"react\"));\nconst _loadablesharedruntime = /*#__PURE__*/ _interop_require_default._(require(\"./loadable.shared-runtime\"));\nconst isServerSide = typeof window === \"undefined\";\n// Normalize loader to return the module as form { default: Component } for `React.lazy`.\n// Also for backward compatible since next/dynamic allows to resolve a component directly with loader\n// Client component reference proxy need to be converted to a module.\nfunction convertModule(mod) {\n return {\n default: (mod == null ? void 0 : mod.default) || mod\n };\n}\nfunction noSSR(LoadableInitializer, loadableOptions) {\n // Removing webpack and modules means react-loadable won't try preloading\n delete loadableOptions.webpack;\n delete loadableOptions.modules;\n // This check is necessary to prevent react-loadable from initializing on the server\n if (!isServerSide) {\n return LoadableInitializer(loadableOptions);\n }\n const Loading = loadableOptions.loading;\n // This will only be rendered on the server side\n return ()=>/*#__PURE__*/ (0, _jsxruntime.jsx)(Loading, {\n error: null,\n isLoading: true,\n pastDelay: false,\n timedOut: false\n });\n}\nfunction dynamic(dynamicOptions, options) {\n let loadableFn = _loadablesharedruntime.default;\n let loadableOptions = {\n // A loading component is not required, so we default it\n loading: (param)=>{\n let { error, isLoading, pastDelay } = param;\n if (!pastDelay) return null;\n if (process.env.NODE_ENV !== \"production\") {\n if (isLoading) {\n return null;\n }\n if (error) {\n return /*#__PURE__*/ (0, _jsxruntime.jsxs)(\"p\", {\n children: [\n error.message,\n /*#__PURE__*/ (0, _jsxruntime.jsx)(\"br\", {}),\n error.stack\n ]\n });\n }\n }\n return null;\n }\n };\n // Support for direct import(), eg: dynamic(import('../hello-world'))\n // Note that this is only kept for the edge case where someone is passing in a promise as first argument\n // The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))\n // To make sure we don't execute the import without rendering first\n if (dynamicOptions instanceof Promise) {\n loadableOptions.loader = ()=>dynamicOptions;\n // Support for having import as a function, eg: dynamic(() => import('../hello-world'))\n } else if (typeof dynamicOptions === \"function\") {\n loadableOptions.loader = dynamicOptions;\n // Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})\n } else if (typeof dynamicOptions === \"object\") {\n loadableOptions = {\n ...loadableOptions,\n ...dynamicOptions\n };\n }\n // Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})\n loadableOptions = {\n ...loadableOptions,\n ...options\n };\n const loaderFn = loadableOptions.loader;\n const loader = ()=>loaderFn != null ? loaderFn().then(convertModule) : Promise.resolve(convertModule(()=>null));\n // coming from build/babel/plugins/react-loadable-plugin.js\n if (loadableOptions.loadableGenerated) {\n loadableOptions = {\n ...loadableOptions,\n ...loadableOptions.loadableGenerated\n };\n delete loadableOptions.loadableGenerated;\n }\n // support for disabling server side rendering, eg: dynamic(() => import('../hello-world'), {ssr: false}).\n if (typeof loadableOptions.ssr === \"boolean\" && !loadableOptions.ssr) {\n delete loadableOptions.webpack;\n delete loadableOptions.modules;\n return noSSR(loadableFn, loadableOptions);\n }\n return loadableFn({\n ...loadableOptions,\n loader: loader\n });\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=dynamic.js.map"],"names":["Object","defineProperty","exports","value","target","all","name","enumerable","get","_export","noSSR","default","dynamic","_jsxruntime","require$$1","_loadablesharedruntime","require$$0","_","require$$3","isServerSide","window","convertModule","mod","LoadableInitializer","loadableOptions","webpack","modules","Loading","loading","jsx","error","isLoading","pastDelay","timedOut","dynamicOptions","options","loadableFn","param","process","env","NODE_ENV","jsxs","children","message","stack","Promise","loader","loaderFn","loadableGenerated","ssr","then","resolve","__esModule","assign","module"],"mappings":"+SACAA,OAAOC,eAAwBC,EAAA,aAAc,CACzCC,OAAO,IAMX,SAAiBC,EAAQC,GACrB,IAAI,IAAIC,KAAQD,EAAIL,OAAOC,eAAeG,EAAQE,EAAM,CACpDC,YAAY,EACZC,IAAKH,EAAIC,IAEjB,CACAG,CAAQP,EAAS,CACbQ,MAAO,WACH,OAAOA,CACV,EACDC,QAAS,WACL,OAAOC,CACf,IAEA,MACMC,EAAcC,EAEdC,EAH6EC,IAGbC,EAAEC,KAClEC,EAAiC,oBAAXC,OAI5B,SAASC,EAAcC,GACnB,MAAO,CACHX,SAAiB,MAAPW,OAAc,EAASA,EAAIX,UAAYW,EAEzD,CACA,SAASZ,EAAMa,EAAqBC,GAKhC,UAHOA,EAAgBC,eAChBD,EAAgBE,SAElBP,EACD,OAAOI,EAAoBC,GAE/B,MAAMG,EAAUH,EAAgBI,QAEhC,MAAO,KAAkB,EAAIf,EAAYgB,KAAKF,EAAS,CAC/CG,MAAO,KACPC,WAAW,EACXC,WAAW,EACXC,UAAU,GAEtB,CACA,SAASrB,EAAQsB,EAAgBC,GAC7B,IAAIC,EAAarB,EAAuBJ,QACpCa,EAAkB,CAElBI,QAAUS,IACN,IAAIP,MAAEA,EAAKC,UAAEA,EAASC,UAAEA,GAAcK,EACtC,IAAKL,EAAW,OAAO,KACvB,GAA6B,eAAzBM,QAAQC,IAAIC,SAA2B,CACvC,GAAIT,EACA,OAAO,KAEX,GAAID,EACA,OAAqB,EAAIjB,EAAY4B,MAAM,IAAK,CAC5CC,SAAU,CACNZ,EAAMa,SACQ,EAAI9B,EAAYgB,KAAK,KAAM,IACzCC,EAAMc,QAIlC,CACY,OAAO,IAAI,GAOfV,aAA0BW,QAC1BrB,EAAgBsB,OAAS,IAAIZ,EAEI,mBAAnBA,EACdV,EAAgBsB,OAASZ,EAEQ,iBAAnBA,IACdV,EAAkB,IACXA,KACAU,IAIXV,EAAkB,IACXA,KACAW,GAEP,MAAMY,EAAWvB,EAAgBsB,OAWjC,OARItB,EAAgBwB,oBAChBxB,EAAkB,IACXA,KACAA,EAAgBwB,0BAEhBxB,EAAgBwB,mBAGQ,kBAAxBxB,EAAgByB,KAAsBzB,EAAgByB,IAK1Db,EAAW,IACXZ,EACHsB,OAjBW,IAAgB,MAAZC,EAAmBA,IAAWG,KAAK7B,GAAiBwB,QAAQM,QAAQ9B,GAAc,IAAI,kBAW9FG,EAAgBC,eAChBD,EAAgBE,QAChBhB,EAAM0B,EAAYZ,GAMjC,EAEgC,mBAApBtB,EAAQS,SAAsD,iBAApBT,EAAQS,SAA4C,OAApBT,EAAQS,eAA4D,IAA/BT,EAAQS,QAAQyC,aACzIpD,OAAOC,eAAeC,EAAQS,QAAS,aAAc,CAAER,OAAO,IAC9DH,OAAOqD,OAAOnD,EAAQS,QAAST,GAC/BoD,EAAApD,QAAiBA,EAAQS"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__exports as e}from"../../../../../_virtual/loadable-context.shared-runtime.mjs";import{__require as r}from"../../../../@swc/helpers/cjs/_interop_require_default.mjs";import t from"react";var o;function n(){return o||(o=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return o}});const o=r()._(t).default.createContext(null);"production"!==process.env.NODE_ENV&&(o.displayName="LoadableContext")}(e)),e}export{n as __require};
|
2
|
+
//# sourceMappingURL=loadable-context.shared-runtime.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"loadable-context.shared-runtime.mjs","sources":["../../../../../../../node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js"],"sourcesContent":["\"use client\";\n\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"LoadableContext\", {\n enumerable: true,\n get: function() {\n return LoadableContext;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _react = /*#__PURE__*/ _interop_require_default._(require(\"react\"));\nconst LoadableContext = _react.default.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n LoadableContext.displayName = \"LoadableContext\";\n}\n\n//# sourceMappingURL=loadable-context.shared-runtime.js.map"],"names":["Object","defineProperty","exports","value","enumerable","get","LoadableContext","require$$0","_","require$$1","default","createContext","process","env","NODE_ENV","displayName"],"mappings":"iPAGAA,OAAOC,eAAwBC,EAAA,aAAc,CACzCC,OAAO,IAEXH,OAAOC,eAAeC,EAAS,kBAAmB,CAC9CE,YAAY,EACZC,IAAK,WACD,OAAOC,CACf,IAEA,MAEMA,EAF6EC,IAC7BC,EAAEC,GACzBC,QAAQC,cAAc,MACxB,eAAzBC,QAAQC,IAAIC,WACZR,EAAgBS,YAAc"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{commonjsRequire as e}from"../../../../../_virtual/_commonjs-dynamic-modules.mjs";import{__exports as t}from"../../../../../_virtual/loadable.shared-runtime.mjs";import{__require as r}from"../../../../@swc/helpers/cjs/_interop_require_default.mjs";import o from"react";import{__require as s}from"./loadable-context.shared-runtime.mjs";var a;function i(){return a||(a=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});const a=r()._(o),i=s();const l=[],n=[];let u=!1;function d(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then((e=>(r.loading=!1,r.loaded=e,e))).catch((e=>{throw r.loading=!1,r.error=e,e})),r}function c(t,r){let o=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},r),s=null;function d(){if(!s){const e=new m(t,o);s={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return s.promise()}if("undefined"==typeof window&&l.push(d),!u&&"undefined"!=typeof window){const t=o.webpack&&"function"==typeof e.resolveWeak?o.webpack():o.modules;t&&n.push((e=>{for(const r of t)if(e.includes(r))return d()}))}function c(e,t){!function(){d();const e=a.default.useContext(i.LoadableContext);e&&Array.isArray(o.modules)&&o.modules.forEach((t=>{e(t)}))}();const r=a.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return a.default.useImperativeHandle(t,(()=>({retry:s.retry})),[]),a.default.useMemo((()=>{return r.loading||r.error?a.default.createElement(o.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:s.retry}):r.loaded?a.default.createElement((t=r.loaded)&&t.default?t.default:t,e):null;var t}),[e,r])}return c.preload=()=>d(),c.displayName="LoadableComponent",a.default.forwardRef(c)}class m{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};const{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout((()=>{this._update({pastDelay:!0})}),t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout((()=>{this._update({timedOut:!0})}),t.timeout))),this._res.promise.then((()=>{this._update({}),this._clearTimeouts()})).catch((e=>{this._update({}),this._clearTimeouts()})),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach((e=>e()))}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function _(e){return c(d,e)}function h(e,t){let r=[];for(;e.length;){let o=e.pop();r.push(o(t))}return Promise.all(r).then((()=>{if(e.length)return h(e,t)}))}_.preloadAll=()=>new Promise(((e,t)=>{h(l).then(e,t)})),_.preloadReady=e=>(void 0===e&&(e=[]),new Promise((t=>{const r=()=>(u=!0,t());h(n,e).then(r,r)}))),"undefined"!=typeof window&&(window.__NEXT_PRELOADREADY=_.preloadReady);const p=_}(t)),t}export{i as __require};
|
2
|
+
//# sourceMappingURL=loadable.shared-runtime.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"loadable.shared-runtime.mjs","sources":["../../../../../../../node_modules/next/dist/shared/lib/loadable.shared-runtime.js"],"sourcesContent":["// TODO: Remove use of `any` type.\n/**\n@copyright (c) 2017-present James Kyle <me@thejameskyle.com>\n MIT License\n Permission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n The above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE\n*/ // https://github.com/jamiebuilds/react-loadable/blob/v5.5.0/src/index.js\n// Modified to be compatible with webpack 4 / Next.js\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _react = /*#__PURE__*/ _interop_require_default._(require(\"react\"));\nconst _loadablecontextsharedruntime = require(\"./loadable-context.shared-runtime\");\nfunction resolve(obj) {\n return obj && obj.default ? obj.default : obj;\n}\nconst ALL_INITIALIZERS = [];\nconst READY_INITIALIZERS = [];\nlet initialized = false;\nfunction load(loader) {\n let promise = loader();\n let state = {\n loading: true,\n loaded: null,\n error: null\n };\n state.promise = promise.then((loaded)=>{\n state.loading = false;\n state.loaded = loaded;\n return loaded;\n }).catch((err)=>{\n state.loading = false;\n state.error = err;\n throw err;\n });\n return state;\n}\nfunction createLoadableComponent(loadFn, options) {\n let opts = Object.assign({\n loader: null,\n loading: null,\n delay: 200,\n timeout: null,\n webpack: null,\n modules: null\n }, options);\n /** @type LoadableSubscription */ let subscription = null;\n function init() {\n if (!subscription) {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const sub = new LoadableSubscription(loadFn, opts);\n subscription = {\n getCurrentValue: sub.getCurrentValue.bind(sub),\n subscribe: sub.subscribe.bind(sub),\n retry: sub.retry.bind(sub),\n promise: sub.promise.bind(sub)\n };\n }\n return subscription.promise();\n }\n // Server only\n if (typeof window === \"undefined\") {\n ALL_INITIALIZERS.push(init);\n }\n // Client only\n if (!initialized && typeof window !== \"undefined\") {\n // require.resolveWeak check is needed for environments that don't have it available like Jest\n const moduleIds = opts.webpack && typeof require.resolveWeak === \"function\" ? opts.webpack() : opts.modules;\n if (moduleIds) {\n READY_INITIALIZERS.push((ids)=>{\n for (const moduleId of moduleIds){\n if (ids.includes(moduleId)) {\n return init();\n }\n }\n });\n }\n }\n function useLoadableModule() {\n init();\n const context = _react.default.useContext(_loadablecontextsharedruntime.LoadableContext);\n if (context && Array.isArray(opts.modules)) {\n opts.modules.forEach((moduleName)=>{\n context(moduleName);\n });\n }\n }\n function LoadableComponent(props, ref) {\n useLoadableModule();\n const state = _react.default.useSyncExternalStore(subscription.subscribe, subscription.getCurrentValue, subscription.getCurrentValue);\n _react.default.useImperativeHandle(ref, ()=>({\n retry: subscription.retry\n }), []);\n return _react.default.useMemo(()=>{\n if (state.loading || state.error) {\n return /*#__PURE__*/ _react.default.createElement(opts.loading, {\n isLoading: state.loading,\n pastDelay: state.pastDelay,\n timedOut: state.timedOut,\n error: state.error,\n retry: subscription.retry\n });\n } else if (state.loaded) {\n return /*#__PURE__*/ _react.default.createElement(resolve(state.loaded), props);\n } else {\n return null;\n }\n }, [\n props,\n state\n ]);\n }\n LoadableComponent.preload = ()=>init();\n LoadableComponent.displayName = \"LoadableComponent\";\n return /*#__PURE__*/ _react.default.forwardRef(LoadableComponent);\n}\nclass LoadableSubscription {\n promise() {\n return this._res.promise;\n }\n retry() {\n this._clearTimeouts();\n this._res = this._loadFn(this._opts.loader);\n this._state = {\n pastDelay: false,\n timedOut: false\n };\n const { _res: res, _opts: opts } = this;\n if (res.loading) {\n if (typeof opts.delay === \"number\") {\n if (opts.delay === 0) {\n this._state.pastDelay = true;\n } else {\n this._delay = setTimeout(()=>{\n this._update({\n pastDelay: true\n });\n }, opts.delay);\n }\n }\n if (typeof opts.timeout === \"number\") {\n this._timeout = setTimeout(()=>{\n this._update({\n timedOut: true\n });\n }, opts.timeout);\n }\n }\n this._res.promise.then(()=>{\n this._update({});\n this._clearTimeouts();\n }).catch((_err)=>{\n this._update({});\n this._clearTimeouts();\n });\n this._update({});\n }\n _update(partial) {\n this._state = {\n ...this._state,\n error: this._res.error,\n loaded: this._res.loaded,\n loading: this._res.loading,\n ...partial\n };\n this._callbacks.forEach((callback)=>callback());\n }\n _clearTimeouts() {\n clearTimeout(this._delay);\n clearTimeout(this._timeout);\n }\n getCurrentValue() {\n return this._state;\n }\n subscribe(callback) {\n this._callbacks.add(callback);\n return ()=>{\n this._callbacks.delete(callback);\n };\n }\n constructor(loadFn, opts){\n this._loadFn = loadFn;\n this._opts = opts;\n this._callbacks = new Set();\n this._delay = null;\n this._timeout = null;\n this.retry();\n }\n}\nfunction Loadable(opts) {\n return createLoadableComponent(load, opts);\n}\nfunction flushInitializers(initializers, ids) {\n let promises = [];\n while(initializers.length){\n let init = initializers.pop();\n promises.push(init(ids));\n }\n return Promise.all(promises).then(()=>{\n if (initializers.length) {\n return flushInitializers(initializers, ids);\n }\n });\n}\nLoadable.preloadAll = ()=>{\n return new Promise((resolveInitializers, reject)=>{\n flushInitializers(ALL_INITIALIZERS).then(resolveInitializers, reject);\n });\n};\nLoadable.preloadReady = (ids)=>{\n if (ids === void 0) ids = [];\n return new Promise((resolvePreload)=>{\n const res = ()=>{\n initialized = true;\n return resolvePreload();\n };\n // We always will resolve, errors should be handled within loading UIs.\n flushInitializers(READY_INITIALIZERS, ids).then(res, res);\n });\n};\nif (typeof window !== \"undefined\") {\n window.__NEXT_PRELOADREADY = Loadable.preloadReady;\n}\nconst _default = Loadable;\n\n//# sourceMappingURL=loadable.shared-runtime.js.map"],"names":["Object","defineProperty","exports","value","enumerable","get","_default","_react","require$$0","_","require$$1","_loadablecontextsharedruntime","require$$2","ALL_INITIALIZERS","READY_INITIALIZERS","initialized","load","loader","promise","state","loading","loaded","error","then","catch","err","createLoadableComponent","loadFn","options","opts","assign","delay","timeout","webpack","modules","subscription","init","sub","LoadableSubscription","getCurrentValue","bind","subscribe","retry","window","push","moduleIds","require","resolveWeak","ids","moduleId","includes","LoadableComponent","props","ref","context","default","useContext","LoadableContext","Array","isArray","forEach","moduleName","useLoadableModule","useSyncExternalStore","useImperativeHandle","useMemo","createElement","isLoading","pastDelay","timedOut","obj","preload","displayName","forwardRef","this","_res","_clearTimeouts","_loadFn","_opts","_state","res","_delay","setTimeout","_update","_timeout","_err","partial","_callbacks","callback","clearTimeout","add","delete","constructor","Set","Loadable","flushInitializers","initializers","promises","length","pop","Promise","all","preloadAll","resolveInitializers","reject","preloadReady","resolvePreload","__NEXT_PRELOADREADY"],"mappings":"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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dynamic.mjs","sources":["../../../../node_modules/next/dynamic.js"],"sourcesContent":["module.exports = require('./dist/shared/lib/dynamic')\n"],"names":["dynamic","require$$0"],"mappings":"+FAAAA,EAAiBC"}
|