@next-bricks/vb-experiment 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +1 -1
- package/dist/chunks/644.318b077c.js +2 -0
- package/dist/chunks/644.318b077c.js.map +1 -0
- package/dist/chunks/844.8d494f19.js +2 -0
- package/dist/chunks/844.8d494f19.js.map +1 -0
- package/dist/chunks/export-as-source-files.62e108b1.js +2 -0
- package/dist/chunks/export-as-source-files.62e108b1.js.map +1 -0
- package/dist/chunks/{main.879ad7d2.js → main.bb3fb171.js} +2 -2
- package/dist/chunks/{main.879ad7d2.js.map → main.bb3fb171.js.map} +1 -1
- package/dist/{index.c65348cc.js → index.acf40f8f.js} +2 -2
- package/dist/{index.c65348cc.js.map → index.acf40f8f.js.map} +1 -1
- package/dist/types.json +26 -0
- package/dist-types/data-providers/export-as-source-files.d.ts +2 -0
- package/dist-types/data-providers/utils/constants.d.ts +1 -0
- package/dist-types/data-providers/utils/plugins/pipeline-operator-minimal.d.ts +2 -0
- package/dist-types/data-providers/utils/plugins/smart-imports.d.ts +2 -0
- package/dist-types/data-providers/utils/plugins/storyboard-function.d.ts +2 -0
- package/dist-types/data-providers/utils/transformers/transformExpressionString.d.ts +1 -1
- package/dist-types/data-providers/utils/transformers/transformJsonWithExpressions.d.ts +2 -2
- package/package.json +2 -2
- package/dist/chunks/644.758cc670.js +0 -2
- package/dist/chunks/644.758cc670.js.map +0 -1
- package/dist/chunks/850.5fba6e3e.js +0 -2
- package/dist/chunks/850.5fba6e3e.js.map +0 -1
- package/dist/chunks/export-as-source-files.4eefd7a1.js +0 -2
- package/dist/chunks/export-as-source-files.4eefd7a1.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var e,r,t,n,o,i,a,u,l,s,f,c,p,d,h,v={4759:(e,r,t)=>{var n={"./export-as-source-files":()=>Promise.all([t.e(134),t.e(
|
|
2
|
-
//# sourceMappingURL=index.
|
|
1
|
+
(()=>{"use strict";var e,r,t,n,o,i,a,u,l,s,f,c,p,d,h,v={4759:(e,r,t)=>{var n={"./export-as-source-files":()=>Promise.all([t.e(134),t.e(844),t.e(732)]).then((()=>()=>t(6264)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),i=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>i})}},b={};function g(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={exports:{}};return v[e].call(t.exports,t,t.exports,g),t.exports}g.m=v,g.c=b,g.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return g.d(r,{a:r}),r},g.d=(e,r)=>{for(var t in r)g.o(r,t)&&!g.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},g.f={},g.e=e=>Promise.all(Object.keys(g.f).reduce(((r,t)=>(g.f[t](e,r),r)),[])),g.u=e=>"chunks/"+(732===e?"export-as-source-files":e)+"."+{110:"78c7f020",134:"2149865a",732:"62e108b1",844:"8d494f19"}[e]+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@next-bricks/vb-experiment:",g.l=(t,n,o,i)=>{if(e[t])e[t].push(n);else{var a,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+o){a=f;break}}a||(u=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,g.nc&&a.setAttribute("nonce",g.nc),a.setAttribute("data-webpack",r+o),a.src=t),e[t]=[n];var c=(r,n)=>{a.onerror=a.onload=null,clearTimeout(p);var o=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(n))),r)return r(n)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),u&&document.head.appendChild(a)}},g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{g.S={};var e={},r={};g.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];g.o(g.S,t)||(g.S[t]={});var i=g.S[t],a="@next-bricks/vb-experiment",u=[];return"default"===t&&((e,r,t,n)=>{var o=i[e]=i[e]||{},u=o[r];(!u||!u.loaded&&(1!=!u.eager?n:a>u.from))&&(o[r]={get:()=>g.e(110).then((()=>()=>g(7110))),from:a,eager:!1})})("@next-core/utils/general","1.5.7"),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),(()=>{var e;g.g.importScripts&&(e=g.g.location+"");var r=g.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),g.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],i=(typeof o)[0];if(n>=r.length)return"u"==i;var a=r[n],u=(typeof a)[0];if(i!=u)return"o"==i&&"n"==u||"s"==u||"u"==i;if("o"!=i&&"u"!=i&&o!=a)return o<a;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,i=1;i<e.length;i++)n--,t+="u"==(typeof(u=e[i]))[0]?"-":(n>0?".":"")+(n=2,u);return t}var a=[];for(i=1;i<e.length;i++){var u=e[i];a.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?a.pop()+" "+a.pop():o(u))}return l();function l(){return a.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var a=0,u=1,l=!0;;u++,a++){var s,f,c=u<e.length?(typeof e[u])[0]:"";if(a>=r.length||"o"==(f=(typeof(s=r[a]))[0]))return!l||("u"==c?u>n&&!o:""==c!=o);if("u"==f){if(!l||"u"!=c)return!1}else if(l)if(c==f)if(u<=n){if(s!=e[u])return!1}else{if(o?s>e[u]:s<e[u])return!1;s!=e[u]&&(l=!1)}else if("s"!=c&&"n"!=c){if(o||u<=n)return!1;l=!1,u--}else{if(u<=n||f<c!=o)return!1;l=!1}else"s"!=c&&"n"!=c&&(l=!1,u--)}}var p=[],d=p.pop.bind(p);for(a=1;a<e.length;a++){var h=e[a];p.push(1==h?d()|d():2==h?d()&d():h?i(h,r):!d())}return!!d()},a=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},u=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",l=(e,r,t,n)=>{var o=a(e,t);return i(n,o)||s(u(e,t,o,n)),f(e[t][o])},s=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},f=e=>(e.loaded=1,e.get()),c=(e=>function(r,t,n,o){var i=g.I(r);return i&&i.then?i.then(e.bind(e,r,g.S[r],t,n,o)):e(0,g.S[r],t,n,o)})(((e,r,t,n,o)=>r&&g.o(r,t)?l(r,0,t,n):o())),p={},d={2019:()=>c("default","@next-core/utils/general",[1,1,5,7],(()=>g.e(110).then((()=>()=>g(7110)))))},h={844:[2019]},g.f.consumes=(e,r)=>{g.o(h,e)&&h[e].forEach((e=>{if(g.o(p,e))return r.push(p[e]);var t=r=>{p[e]=0,g.m[e]=t=>{delete g.c[e],t.exports=r()}},n=r=>{delete p[e],g.m[e]=t=>{throw delete g.c[e],r}};try{var o=d[e]();o.then?r.push(p[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={919:0};g.f.j=(r,t)=>{var n=g.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var i=g.p+g.u(r),a=new Error;g.l(i,(t=>{if(g.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;a.message="Loading chunk "+r+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[i,a,u]=t,l=0;if(i.some((r=>0!==e[r]))){for(n in a)g.o(a,n)&&(g.m[n]=a[n]);u&&u(g)}for(r&&r(t);l<i.length;l++)o=i[l],g.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_next_bricks_vb_experiment=self.webpackChunk_next_bricks_vb_experiment||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var m=g(4759);window["bricks/vb-experiment"]=m})();
|
|
2
|
+
//# sourceMappingURL=index.acf40f8f.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.c65348cc.js","mappings":"uBAAIA,EACAC,ECDAC,EAIAC,EAIAC,EAIAC,EAgBAC,EAMAC,EAOAC,EA8BAC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,OAAQD,IACzBvB,EAAU0G,EAASnF,GAChB3D,EAAoBM,EAAE6H,EAAiB/F,IAAY+F,EAAgB/F,IACrE+F,EAAgB/F,GAAS,KAE1B+F,EAAgB/F,GAAW,CAC5B,EAIG8G,EAAqBC,KAA6C,uCAAIA,KAA6C,wCAAK,GAC5HD,EAAmBpE,QAAQ6D,EAAqB1D,KAAK,KAAM,IAC3DiE,EAAmB7F,KAAOsF,EAAqB1D,KAAK,KAAMiE,EAAmB7F,KAAK4B,KAAKiE,G,KClFvF,IAAIE,EAAsBpJ,EAAoB,M","sources":["webpack:///webpack/runtime/load script","webpack:///webpack/runtime/consumes","webpack:///webpack/container-entry","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/ensure chunk","webpack:///webpack/runtime/get javascript chunk filename","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/sharing","webpack:///webpack/runtime/publicPath","webpack:///webpack/runtime/jsonp chunk loading","webpack:///webpack/startup"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"@next-bricks/vb-experiment:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var parseVersion = (str) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar p=p=>{return p.split(\".\").map((p=>{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;\n}\nvar versionLt = (a, b) => {\n\t// see webpack/lib/util/semver.js for original code\n\ta=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&\"u\"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return\"u\"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return\"o\"==n&&\"n\"==f||(\"s\"==f||\"u\"==n);if(\"o\"!=n&&\"u\"!=n&&e!=t)return e<t;r++}\n}\nvar rangeToString = (range) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar r=range[0],n=\"\";if(1===range.length)return\"*\";if(r+.5){n+=0==r?\">=\":-1==r?\"<\":1==r?\"^\":2==r?\"~\":r>0?\"=\":\"!=\";for(var e=1,a=1;a<range.length;a++){e--,n+=\"u\"==(typeof(t=range[a]))[0]?\"-\":(e>0?\".\":\"\")+(e=2,t)}return n}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?\"not(\"+o()+\")\":1===t?\"(\"+o()+\" || \"+o()+\")\":2===t?g.pop()+\" \"+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,\"$1\")}\n}\nvar satisfy = (range, version) => {\n\t// see webpack/lib/util/semver.js for original code\n\tif(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:\"\";if(n>=version.length||\"o\"==(s=(typeof(f=version[n]))[0]))return!a||(\"u\"==g?i>e&&!r:\"\"==g!=r);if(\"u\"==s){if(!a||\"u\"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if(\"s\"!=g&&\"n\"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else\"s\"!=g&&\"n\"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();\n}\nvar ensureExistence = (scopeName, key) => {\n\tvar scope = __webpack_require__.S[scopeName];\n\tif(!scope || !__webpack_require__.o(scope, key)) throw new Error(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n\treturn scope;\n};\nvar findVersion = (scope, key) => {\n\tvar versions = scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar findSingletonVersionKey = (scope, key) => {\n\tvar versions = scope[key];\n\treturn Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;\n\t}, 0);\n};\nvar getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {\n\treturn \"Unsatisfied version \" + version + \" from \" + (version && scope[key][version].from) + \" of shared singleton module \" + key + \" (required \" + rangeToString(requiredVersion) + \")\"\n};\nvar getSingleton = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\treturn get(scope[key][version]);\n};\nvar getSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) warn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar getStrictSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar findValidVersion = (scope, key, requiredVersion) => {\n\tvar versions = scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\tif (!satisfy(requiredVersion, b)) return a;\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar getInvalidVersionMessage = (scope, scopeName, key, requiredVersion) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \") of shared module \" + key + \" found in shared scope \" + scopeName + \".\\n\" +\n\t\t\"Available versions: \" + Object.keys(versions).map((key) => {\n\t\treturn key + \" from \" + versions[key].from;\n\t}).join(\", \");\n};\nvar getValidVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar entry = findValidVersion(scope, key, requiredVersion);\n\tif(entry) return get(entry);\n\tthrow new Error(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar warn = (msg) => {\n\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n};\nvar warnInvalidVersion = (scope, scopeName, key, requiredVersion) => {\n\twarn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar init = (fn) => (function(scopeName, a, b, c) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then) return promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], a, b, c));\n\treturn fn(scopeName, __webpack_require__.S[scopeName], a, b, c);\n});\n\nvar load = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn get(findVersion(scope, key));\n});\nvar loadFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\treturn scope && __webpack_require__.o(scope, key) ? get(findVersion(scope, key)) : fallback();\n});\nvar loadVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getValidVersion(scope, scopeName, key, version);\n});\nvar loadStrictSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar loadVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingletonFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tvar entry = scope && __webpack_require__.o(scope, key) && findValidVersion(scope, key, version);\n\treturn entry ? get(entry) : fallback();\n});\nvar loadStrictSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t2019: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/utils/general\", [1,1,5,7], () => (__webpack_require__.e(110).then(() => (() => (__webpack_require__(7110)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"850\": [\n\t\t2019\n\t]\n};\n__webpack_require__.f.consumes = (chunkId, promises) => {\n\tif(__webpack_require__.o(chunkMapping, chunkId)) {\n\t\tchunkMapping[chunkId].forEach((id) => {\n\t\t\tif(__webpack_require__.o(installedModules, id)) return promises.push(installedModules[id]);\n\t\t\tvar onFactory = (factory) => {\n\t\t\t\tinstalledModules[id] = 0;\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tmodule.exports = factory();\n\t\t\t\t}\n\t\t\t};\n\t\t\tvar onError = (error) => {\n\t\t\t\tdelete installedModules[id];\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tvar promise = moduleToHandlerMapping[id]();\n\t\t\t\tif(promise.then) {\n\t\t\t\t\tpromises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));\n\t\t\t\t} else onFactory(promise);\n\t\t\t} catch(e) { onError(e); }\n\t\t});\n\t}\n}","var moduleMap = {\n\t\"./export-as-source-files\": () => {\n\t\treturn Promise.all(/* export-as-source-files */[__webpack_require__.e(134), __webpack_require__.e(850), __webpack_require__.e(732)]).then(() => (() => ((__webpack_require__(6264)))));\n\t}\n};\nvar get = (module, getScope) => {\n\t__webpack_require__.R = getScope;\n\tgetScope = (\n\t\t__webpack_require__.o(moduleMap, module)\n\t\t\t? moduleMap[module]()\n\t\t\t: Promise.resolve().then(() => {\n\t\t\t\tthrow new Error('Module \"' + module + '\" does not exist in container.');\n\t\t\t})\n\t);\n\t__webpack_require__.R = undefined;\n\treturn getScope;\n};\nvar init = (shareScope, initScope) => {\n\tif (!__webpack_require__.S) return;\n\tvar name = \"default\"\n\tvar oldScope = __webpack_require__.S[name];\n\tif(oldScope && oldScope !== shareScope) throw new Error(\"Container initialization failed as it has already been initialized with a different share scope\");\n\t__webpack_require__.S[name] = shareScope;\n\treturn __webpack_require__.I(name, initScope);\n};\n\n// This exports getters to disallow modifications\n__webpack_require__.d(exports, {\n\tget: () => (get),\n\tinit: () => (init)\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"chunks/\" + (chunkId === 732 ? \"export-as-source-files\" : chunkId) + \".\" + {\"110\":\"78c7f020\",\"134\":\"2149865a\",\"732\":\"4eefd7a1\",\"850\":\"5fba6e3e\"}[chunkId] + \".js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => {\n\t\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n\t};\n\tvar uniqueName = \"@next-bricks/vb-experiment\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult['catch'](handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t\tcase \"default\": {\n\t\t\tregister(\"@next-core/utils/general\", \"1.5.7\", () => (__webpack_require__.e(110).then(() => (() => (__webpack_require__(7110))))));\n\t\t}\n\t\tbreak;\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t919: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_next_bricks_vb_experiment\"] = self[\"webpackChunk_next_bricks_vb_experiment\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__(4759);\n"],"names":["inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","findSingletonVersionKey","getInvalidSingletonVersionMessage","getSingletonVersion","warn","get","loadSingletonVersionCheckFallback","installedModules","moduleToHandlerMapping","chunkMapping","moduleMap","Promise","all","__webpack_require__","e","then","module","getScope","R","o","resolve","Error","undefined","init","shareScope","initScope","S","name","oldScope","I","d","exports","__webpack_module_cache__","moduleId","cachedModule","__webpack_modules__","call","m","c","n","getter","__esModule","a","definition","key","Object","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","initPromises","initTokens","initToken","indexOf","scope","uniqueName","version","factory","eager","versions","activeVersion","loaded","from","register","scriptUrl","importScripts","location","currentScript","replace","p","str","split","map","exec","apply","b","t","range","pop","requiredVersion","scopeName","msg","console","entry","promise","fallback","consumes","id","onFactory","onError","error","installedChunks","j","installedChunkData","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"index.acf40f8f.js","mappings":"uBAAIA,EACAC,ECDAC,EAIAC,EAIAC,EAIAC,EAgBAC,EAMAC,EAOAC,EA8BAC,EAMAC,EA6CAC,EAYAC,EACAC,EAIAC,E,kBC3IJ,IAAIC,EAAY,CACf,2BAA4B,IACpBC,QAAQC,IAAgC,CAACC,EAAoBC,EAAE,KAAMD,EAAoBC,EAAE,KAAMD,EAAoBC,EAAE,O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6C,uCAAIA,KAA6C,wCAAK,GAC5HD,EAAmBpE,QAAQ6D,EAAqB1D,KAAK,KAAM,IAC3DiE,EAAmB7F,KAAOsF,EAAqB1D,KAAK,KAAMiE,EAAmB7F,KAAK4B,KAAKiE,G,KClFvF,IAAIE,EAAsBpJ,EAAoB,M","sources":["webpack:///webpack/runtime/load script","webpack:///webpack/runtime/consumes","webpack:///webpack/container-entry","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/ensure chunk","webpack:///webpack/runtime/get javascript chunk filename","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/sharing","webpack:///webpack/runtime/publicPath","webpack:///webpack/runtime/jsonp chunk loading","webpack:///webpack/startup"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"@next-bricks/vb-experiment:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var parseVersion = (str) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar p=p=>{return p.split(\".\").map((p=>{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;\n}\nvar versionLt = (a, b) => {\n\t// see webpack/lib/util/semver.js for original code\n\ta=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&\"u\"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return\"u\"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return\"o\"==n&&\"n\"==f||(\"s\"==f||\"u\"==n);if(\"o\"!=n&&\"u\"!=n&&e!=t)return e<t;r++}\n}\nvar rangeToString = (range) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar r=range[0],n=\"\";if(1===range.length)return\"*\";if(r+.5){n+=0==r?\">=\":-1==r?\"<\":1==r?\"^\":2==r?\"~\":r>0?\"=\":\"!=\";for(var e=1,a=1;a<range.length;a++){e--,n+=\"u\"==(typeof(t=range[a]))[0]?\"-\":(e>0?\".\":\"\")+(e=2,t)}return n}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?\"not(\"+o()+\")\":1===t?\"(\"+o()+\" || \"+o()+\")\":2===t?g.pop()+\" \"+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,\"$1\")}\n}\nvar satisfy = (range, version) => {\n\t// see webpack/lib/util/semver.js for original code\n\tif(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:\"\";if(n>=version.length||\"o\"==(s=(typeof(f=version[n]))[0]))return!a||(\"u\"==g?i>e&&!r:\"\"==g!=r);if(\"u\"==s){if(!a||\"u\"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if(\"s\"!=g&&\"n\"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else\"s\"!=g&&\"n\"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();\n}\nvar ensureExistence = (scopeName, key) => {\n\tvar scope = __webpack_require__.S[scopeName];\n\tif(!scope || !__webpack_require__.o(scope, key)) throw new Error(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n\treturn scope;\n};\nvar findVersion = (scope, key) => {\n\tvar versions = scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar findSingletonVersionKey = (scope, key) => {\n\tvar versions = scope[key];\n\treturn Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;\n\t}, 0);\n};\nvar getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {\n\treturn \"Unsatisfied version \" + version + \" from \" + (version && scope[key][version].from) + \" of shared singleton module \" + key + \" (required \" + rangeToString(requiredVersion) + \")\"\n};\nvar getSingleton = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\treturn get(scope[key][version]);\n};\nvar getSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) warn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar getStrictSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar findValidVersion = (scope, key, requiredVersion) => {\n\tvar versions = scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\tif (!satisfy(requiredVersion, b)) return a;\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar getInvalidVersionMessage = (scope, scopeName, key, requiredVersion) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \") of shared module \" + key + \" found in shared scope \" + scopeName + \".\\n\" +\n\t\t\"Available versions: \" + Object.keys(versions).map((key) => {\n\t\treturn key + \" from \" + versions[key].from;\n\t}).join(\", \");\n};\nvar getValidVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar entry = findValidVersion(scope, key, requiredVersion);\n\tif(entry) return get(entry);\n\tthrow new Error(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar warn = (msg) => {\n\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n};\nvar warnInvalidVersion = (scope, scopeName, key, requiredVersion) => {\n\twarn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar init = (fn) => (function(scopeName, a, b, c) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then) return promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], a, b, c));\n\treturn fn(scopeName, __webpack_require__.S[scopeName], a, b, c);\n});\n\nvar load = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn get(findVersion(scope, key));\n});\nvar loadFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\treturn scope && __webpack_require__.o(scope, key) ? get(findVersion(scope, key)) : fallback();\n});\nvar loadVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getValidVersion(scope, scopeName, key, version);\n});\nvar loadStrictSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar loadVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingletonFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tvar entry = scope && __webpack_require__.o(scope, key) && findValidVersion(scope, key, version);\n\treturn entry ? get(entry) : fallback();\n});\nvar loadStrictSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t2019: () => (loadSingletonVersionCheckFallback(\"default\", \"@next-core/utils/general\", [1,1,5,7], () => (__webpack_require__.e(110).then(() => (() => (__webpack_require__(7110)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"844\": [\n\t\t2019\n\t]\n};\n__webpack_require__.f.consumes = (chunkId, promises) => {\n\tif(__webpack_require__.o(chunkMapping, chunkId)) {\n\t\tchunkMapping[chunkId].forEach((id) => {\n\t\t\tif(__webpack_require__.o(installedModules, id)) return promises.push(installedModules[id]);\n\t\t\tvar onFactory = (factory) => {\n\t\t\t\tinstalledModules[id] = 0;\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tmodule.exports = factory();\n\t\t\t\t}\n\t\t\t};\n\t\t\tvar onError = (error) => {\n\t\t\t\tdelete installedModules[id];\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tvar promise = moduleToHandlerMapping[id]();\n\t\t\t\tif(promise.then) {\n\t\t\t\t\tpromises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));\n\t\t\t\t} else onFactory(promise);\n\t\t\t} catch(e) { onError(e); }\n\t\t});\n\t}\n}","var moduleMap = {\n\t\"./export-as-source-files\": () => {\n\t\treturn Promise.all(/* export-as-source-files */[__webpack_require__.e(134), __webpack_require__.e(844), __webpack_require__.e(732)]).then(() => (() => ((__webpack_require__(6264)))));\n\t}\n};\nvar get = (module, getScope) => {\n\t__webpack_require__.R = getScope;\n\tgetScope = (\n\t\t__webpack_require__.o(moduleMap, module)\n\t\t\t? moduleMap[module]()\n\t\t\t: Promise.resolve().then(() => {\n\t\t\t\tthrow new Error('Module \"' + module + '\" does not exist in container.');\n\t\t\t})\n\t);\n\t__webpack_require__.R = undefined;\n\treturn getScope;\n};\nvar init = (shareScope, initScope) => {\n\tif (!__webpack_require__.S) return;\n\tvar name = \"default\"\n\tvar oldScope = __webpack_require__.S[name];\n\tif(oldScope && oldScope !== shareScope) throw new Error(\"Container initialization failed as it has already been initialized with a different share scope\");\n\t__webpack_require__.S[name] = shareScope;\n\treturn __webpack_require__.I(name, initScope);\n};\n\n// This exports getters to disallow modifications\n__webpack_require__.d(exports, {\n\tget: () => (get),\n\tinit: () => (init)\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"chunks/\" + (chunkId === 732 ? \"export-as-source-files\" : chunkId) + \".\" + {\"110\":\"78c7f020\",\"134\":\"2149865a\",\"732\":\"62e108b1\",\"844\":\"8d494f19\"}[chunkId] + \".js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => {\n\t\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n\t};\n\tvar uniqueName = \"@next-bricks/vb-experiment\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult['catch'](handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t\tcase \"default\": {\n\t\t\tregister(\"@next-core/utils/general\", \"1.5.7\", () => (__webpack_require__.e(110).then(() => (() => (__webpack_require__(7110))))));\n\t\t}\n\t\tbreak;\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t919: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_next_bricks_vb_experiment\"] = self[\"webpackChunk_next_bricks_vb_experiment\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__(4759);\n"],"names":["inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","findSingletonVersionKey","getInvalidSingletonVersionMessage","getSingletonVersion","warn","get","loadSingletonVersionCheckFallback","installedModules","moduleToHandlerMapping","chunkMapping","moduleMap","Promise","all","__webpack_require__","e","then","module","getScope","R","o","resolve","Error","undefined","init","shareScope","initScope","S","name","oldScope","I","d","exports","__webpack_module_cache__","moduleId","cachedModule","__webpack_modules__","call","m","c","n","getter","__esModule","a","definition","key","Object","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","initPromises","initTokens","initToken","indexOf","scope","uniqueName","version","factory","eager","versions","activeVersion","loaded","from","register","scriptUrl","importScripts","location","currentScript","replace","p","str","split","map","exec","apply","b","t","range","pop","requiredVersion","scopeName","msg","console","entry","promise","fallback","consumes","id","onFactory","onError","error","installedChunks","j","installedChunkData","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
|
package/dist/types.json
CHANGED
|
@@ -149,6 +149,32 @@
|
|
|
149
149
|
},
|
|
150
150
|
"optional": true,
|
|
151
151
|
"computed": false
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"type": "propertySignature",
|
|
155
|
+
"key": {
|
|
156
|
+
"type": "identifier",
|
|
157
|
+
"name": "defaultConfig"
|
|
158
|
+
},
|
|
159
|
+
"annotation": {
|
|
160
|
+
"type": "keyword",
|
|
161
|
+
"value": "string"
|
|
162
|
+
},
|
|
163
|
+
"optional": true,
|
|
164
|
+
"computed": false
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "propertySignature",
|
|
168
|
+
"key": {
|
|
169
|
+
"type": "identifier",
|
|
170
|
+
"name": "icon"
|
|
171
|
+
},
|
|
172
|
+
"annotation": {
|
|
173
|
+
"type": "keyword",
|
|
174
|
+
"value": "string"
|
|
175
|
+
},
|
|
176
|
+
"optional": true,
|
|
177
|
+
"computed": false
|
|
152
178
|
}
|
|
153
179
|
]
|
|
154
180
|
}
|
|
@@ -2,3 +2,4 @@ export declare const REVERSED_ROUTE_KEYS: string[];
|
|
|
2
2
|
export declare const REVERSED_BRICK_KEYS: string[];
|
|
3
3
|
export declare const REVERSED_TEMPLATE_KEYS: string[];
|
|
4
4
|
export declare const IMPORT_DEFAULT_PREFIX = "default:";
|
|
5
|
+
export declare const JS_RESERVED_WORDS: Set<string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as t from "@babel/types";
|
|
2
2
|
import type { ImportInfo } from "../interfaces.js";
|
|
3
|
-
export declare function transformExpressionString(value: string, imports: ImportInfo, path: string[]): t.
|
|
3
|
+
export declare function transformExpressionString(value: string, imports: ImportInfo, path: string[]): t.Expression | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as t from "@babel/types";
|
|
2
2
|
import type { ImportInfo } from "../interfaces.js";
|
|
3
|
-
export declare function transformJsonWithExpressions(value: unknown, imports: ImportInfo, path: string[], transformUseBrick?: boolean, key?: string): t.
|
|
4
|
-
export declare function lowLevelTransformJsonWithExpressions(value: unknown, imports: ImportInfo, path: string[], transformUseBrick?: boolean, key?: string): t.
|
|
3
|
+
export declare function transformJsonWithExpressions(value: unknown, imports: ImportInfo, path: string[], transformUseBrick?: boolean, key?: string): t.Expression;
|
|
4
|
+
export declare function lowLevelTransformJsonWithExpressions(value: unknown, imports: ImportInfo, path: string[], transformUseBrick?: boolean, key?: string): t.Expression | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/vb-experiment",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/vb-experiment",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@next-core/build-next-bricks": "^1.13.4"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "71735e340d0d6853c1efe77e436fe666b678057a"
|
|
38
38
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_next_bricks_vb_experiment=self.webpackChunk_next_bricks_vb_experiment||[]).push([[644],{1644:(e,n,t)=>{t.r(n);var r=t(4795),a=t(2019),o=t(1297),i=t.n(o),s=t(6782),l=t(9691),c=t(8483),p=t.n(c),f=t(1483),d=t(7243),u=t(9333),m=t(5738),j=t(3197),x=t(7444),v=t(9082),g=t(4431),y=t(9456),h=t(2220),_=t(8978),b=t(8678),k=t(7768),A=t(9503),w=t(7211),E=t(5125),I=t(9602),O=t(7287),S=t(2524),T=t(2344),C=t(7040),R=t(4450),J=t(3870);function P(){return(P=(0,r.Z)((function*(e){var n,t,r,a,o,l,{projectDetail:c,storyboard:p}=e,P=new(i()),G=P.folder("project"),F=G.folder("src"),U={extracts:[],namePool:new Map},L=(0,u.I$)(p.routes,[],U),W={id:c.appId,name:c.name,homepage:c.appSetting.homepage,layoutType:c.appSetting.layoutType,theme:c.appSetting.theme,noAuthGuard:c.appSetting.noAuthGuard,locales:c.appSetting.locales,standaloneMode:!0};F.file("app.js",D("export default ".concat(JSON.stringify(W,null,2),";")));var z=null!==(n=p.meta)&&void 0!==n?n:{},B=null!==(t=z.customTemplates)&&void 0!==t?t:[],H=null!==(r=z.functions)&&void 0!==r?r:[],K=null!==(a=z.menus)&&void 0!==a?a:[],V=null!==(o=z.contracts)&&void 0!==o?o:[],Z=null!==(l=z.i18n)&&void 0!==l?l:{};delete z.customTemplates,delete z.functions,delete z.menus,delete z.contracts,delete z.i18n,delete z.workflows,delete z.mocks,delete z.userGroups;var $=(0,u.LK)(B,["components"],U);U.extracts.push({name:"index",path:["components"],node:$,nodeType:"others"});var q=(0,m.B)(U.extracts);F.file("index.js",I),F.file("routes.jsx",D((0,j.R)(L,"routes",["routes.jsx"])));var Q=F.folder("resources"),X=Q.folder("functions"),Y=[],ee=[];for(var ne of H){if("index"===ne.name)throw new Error('Unexpected function name: "index"');var te=(0,d.transform)(ne.source,{filename:"expr.".concat(ne.typescript?"ts":"js"),plugins:ne.typescript?["syntax-typescript"]:[],ast:!0}).ast.program.body.map((e=>{if("FunctionDeclaration"===e.type){var n=f.exportDefaultDeclaration(e);return e.leadingComments&&(n.leadingComments=e.leadingComments,delete e.leadingComments),n}return e})),{code:re}=(0,d.transformFromAst)(f.program(te,void 0,"module"),void 0,{});X.file("".concat(ne.name,".").concat(ne.typescript?"ts":"js"),re),ee.push("import ".concat(ne.name,' from "./').concat(ne.name,'.js";')),Y.push(ne.name)}X.file("index.js",D("".concat(ee.join("\n"),"\n\nexport default { ").concat(Y.join(",")," };")));var ae=Q.folder("menus"),oe=[],ie=[];for(var se of K){if(M(se),"index"===se.menuId)throw new Error('Unexpected menu id: "index"');var le="".concat(se.menuId,".js");ae.file(le,D((0,j.R)(se,"menu",["resources","menus",le])));var ce=se.menuId.replace(/^\d+|[^\w]+/g,"_");ie.push("import ".concat(ce,' from "./').concat(le,'";')),oe.push(ce)}ae.file("index.js",D("".concat(ie.join("\n"),"\n\nexport default [").concat(oe.join(","),"]")));var pe=Q.folder("contracts"),fe=[],de=[];for(var ue of V){if("index"===ue.name)throw new Error('Unexpected contract name: "index"');pe.file("".concat(ue.name,".js"),D("export default ".concat(JSON.stringify(ue),";")));var me=ue.name.replace(/^\d+|[^\w]+/g,"_");de.push("import ".concat(me,' from "./').concat(ue.name,'.js";')),fe.push(me)}pe.file("index.js",D("".concat(de.join("\n"),"\n\nexport default [").concat(fe.join(","),"]"))),Q.folder("i18n").file("index.js",D("export default ".concat(JSON.stringify(Z),";"))),Q.file("meta.js",D("export default ".concat(JSON.stringify(z,null,2),";"))),Q.file("index.js",E),N(q,F,[]);var je=JSON.stringify("../mock-micro-apps/".concat(c.appId)),xe=G.folder("scripts");xe.file("build.js",k.replaceAll("__APP_RELATIVE_DIR__",je)),xe.file("babel.js",b),xe.file("start.js",A),xe.file("transpile.js",w),G.folder("mock-micro-apps").folder(c.appId).file(".gitignore","*\n!.gitignore");var ve=G.folder("jsx");ve.file("constants.js",x),ve.file("index.js",v),ve.file("jsx-runtime.js",g),ve.file("package.json",y),ve.file("Style.js",h),ve.file("Function.js",_),G.file(".editorconfig",O),G.file(".gitignore",S),G.file("babel.config.js",T),G.file("jsconfig.json",R),G.file("package.json",C.replaceAll("__PROJECT_ID__",c.appId)),G.file("README.md",J.replaceAll("__PROJECT_NAME__",c.name).replaceAll("__PROJECT_HOMEPAGE__",c.appSetting.homepage));var ge=yield P.generateAsync({type:"blob"});(0,s.saveAs)(ge,"project.zip")}))).apply(this,arguments)}function D(e){var{typescript:n,semi:t=!0,printWidth:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.format)(e,{parser:n?"babel-ts":"babel",plugins:[p()],semi:t,printWidth:r})}function N(e,n,t){for(var r of e){var a=[...t,r.name];if("folder"===r.type){var o=n.folder(r.name);N(r.items,o,a)}else n.file("".concat(r.name,".js").concat("others"===r.nodeType||"context"===r.nodeType?"":"x"),D((0,j.R)(r.node,r.nodeType,a)))}}function M(e){for(var[n,t]of Object.entries(e))switch(n){case"items":if(Array.isArray(t))for(var r of t)G(r);break;case"type":"main"===t&&delete e[n];break;case"if":break;case"i18n":0===Object.keys(t).length&&delete e[n];break;default:null!==t&&!1!==t||delete e[n]}}function G(e){for(var[n,t]of Object.entries(e))switch(n){case"children":Array.isArray(t)&&t.length>0&&G(t);break;case"if":break;case"activeExcludes":case"activeIncludes":Array.isArray(t)&&0===t.length&&delete e[n];break;default:null!==t&&!1!==t||delete e[n]}}customElements.define("vb-experiment.export-as-source-files",(0,a.createProviderClass)((function(e){return P.apply(this,arguments)})))}}]);
|
|
2
|
-
//# sourceMappingURL=644.758cc670.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/644.758cc670.js","mappings":"scA+QC,SAAAA,IAAA,OAAAA,GAAAC,EAAAA,EAAAA,IAzNM,UAAAC,GAGqC,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAHF,cACxCC,EAAa,WACbC,GACyBR,EACnBS,EAAM,IAAIC,KACVC,EAAUF,EAAIG,OAAO,WACrBC,EAAMF,EAAQC,OAAO,OAErBE,EAA6B,CACjCC,SAAU,GACVC,SAAU,IAAIC,KAEVC,GAAkBC,EAAAA,EAAAA,IAAcX,EAAWY,OAAQ,GAAIN,GAEvDO,EAA0C,CAC9CC,GAAIf,EAAcgB,MAClBC,KAAMjB,EAAciB,KACpBC,SAAUlB,EAAcmB,WAAWD,SACnCE,WAAYpB,EAAcmB,WAAWC,WACrCC,MAAOrB,EAAcmB,WAAWE,MAChCC,YAAatB,EAAcmB,WAAWG,YACtCC,QAASvB,EAAcmB,WAAWI,QAClCC,gBAAgB,GAElBlB,EAAImB,KACF,SACAC,EAAS,kBAADC,OAAmBC,KAAKC,UAAUf,EAAK,KAAM,GAAE,OAGzD,IAAMgB,EAAuB,QAAnBpC,EAAIO,EAAW6B,YAAI,IAAApC,EAAAA,EAAI,CAAC,EAI5BqC,EAAsC,QAAvBpC,EAAGmC,EAAKC,uBAAe,IAAApC,EAAAA,EAAI,GAC1CqC,EAA0B,QAAjBpC,EAAGkC,EAAKE,iBAAS,IAAApC,EAAAA,EAAI,GAC9BqC,EAAkB,QAAbpC,EAAGiC,EAAKG,aAAK,IAAApC,EAAAA,EAAI,GACtBqC,EAA0B,QAAjBpC,EAAGgC,EAAKI,iBAAS,IAAApC,EAAAA,EAAI,GAC9BqC,EAAgB,QAAZpC,EAAG+B,EAAKK,YAAI,IAAApC,EAAAA,EAAI,CAAC,SACpB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MC,QAAQJ,IAA2B,IAAjBA,EAAMT,eACzBgB,EAASR,GAElB,MACF,QACgB,OAAVC,IAA4B,IAAVA,UACbO,EAASR,GAI1B,CAEAS,eAAeC,OACb,wCACAC,EAAAA,EAAAA,sBA1TK,SAAkCC,GAAA,OAAA/I,EAAAuH,MAAC,KAADC,UAAA,I","sources":["webpack:///./src/data-providers/export-as-source-files.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-non-null-assertion */\nimport type { Storyboard, MicroApp, StoryboardMeta } from \"@next-core/types\";\nimport { createProviderClass } from \"@next-core/utils/general\";\nimport JSZip from \"jszip\";\nimport { saveAs } from \"file-saver\";\nimport { format } from \"prettier/standalone.js\";\nimport parserBabel from \"prettier/parser-babel.js\";\nimport * as t from \"@babel/types\";\nimport { transform, transformFromAst } from \"@babel/standalone\";\nimport {\n ExtractState,\n extractRoutes,\n extractTemplates,\n} from \"./utils/extract.js\";\nimport {\n SourceFileOrFolder,\n buildFileStructure,\n} from \"./utils/buildFileStructure.js\";\nimport { generate } from \"./utils/generators/generate.js\";\nimport jsxConstantsJs from \"./raws/jsx/constants.js.txt\";\nimport jsxIndexJs from \"./raws/jsx/index.js.txt\";\nimport jsxJsxRuntimeJs from \"./raws/jsx/jsx-runtime.js.txt\";\nimport jsxPackageJson from \"./raws/jsx/package.json.txt\";\nimport jsxStyleJs from \"./raws/jsx/Style.js.txt\";\nimport jsxFunctionJs from \"./raws/jsx/Function.js.txt\";\nimport scriptsBabelJs from \"./raws/scripts/babel.js.txt\";\nimport scriptsBuildJs from \"./raws/scripts/build.js.txt\";\nimport scriptsStartJs from \"./raws/scripts/start.js.txt\";\nimport scriptsTranspileJs from \"./raws/scripts/transpile.js.txt\";\nimport srcResourcesIndexJs from \"./raws/src/resources/index.js.txt\";\nimport srcIndexJs from \"./raws/src/index.js.txt\";\nimport editorConfig from \"./raws/.editorconfig.txt\";\nimport gitIgnore from \"./raws/.gitignore.txt\";\nimport babelConfigJs from \"./raws/babel.config.js.txt\";\nimport packageJson from \"./raws/package.json.txt\";\nimport jsconfigJson from \"./raws/jsconfig.json.txt\";\nimport readmeMd from \"./raws/README.md.txt\";\n\nexport interface StoryboardAssemblyResult {\n storyboard: Storyboard;\n\n projectDetail: {\n appId: string;\n name: string;\n appSetting: Pick<\n MicroApp,\n \"homepage\" | \"theme\" | \"locales\" | \"noAuthGuard\"\n > & {\n layoutType?: string;\n };\n brickNextVersion?: number;\n };\n}\n\nexport async function exportAsSourceFiles({\n projectDetail,\n storyboard,\n}: StoryboardAssemblyResult): Promise<void> {\n const zip = new JSZip();\n const project = zip.folder(\"project\")!;\n const src = project.folder(\"src\")!;\n\n const extractState: ExtractState = {\n extracts: [],\n namePool: new Map(),\n };\n const extractedRoutes = extractRoutes(storyboard.routes, [], extractState);\n\n const app: MicroApp & { layoutType?: string } = {\n id: projectDetail.appId,\n name: projectDetail.name,\n homepage: projectDetail.appSetting.homepage,\n layoutType: projectDetail.appSetting.layoutType,\n theme: projectDetail.appSetting.theme,\n noAuthGuard: projectDetail.appSetting.noAuthGuard,\n locales: projectDetail.appSetting.locales,\n standaloneMode: true,\n };\n src.file(\n \"app.js\",\n formatJs(`export default ${JSON.stringify(app, null, 2)};`)\n );\n\n const meta = (storyboard.meta ?? {}) as StoryboardMeta & {\n workflows?: unknown;\n userGroups?: unknown;\n };\n const customTemplates = meta.customTemplates ?? [];\n const functions = meta.functions ?? [];\n const menus = meta.menus ?? [];\n const contracts = meta.contracts ?? [];\n const i18n = meta.i18n ?? {};\n delete meta.customTemplates;\n delete meta.functions;\n delete meta.menus;\n delete meta.contracts;\n delete meta.i18n;\n delete meta.workflows;\n delete meta.mocks;\n delete meta.userGroups;\n\n const extractedTemplates = extractTemplates(\n customTemplates,\n [\"components\"],\n extractState\n );\n extractState.extracts.push({\n name: \"index\",\n path: [\"components\"],\n node: extractedTemplates,\n nodeType: \"others\",\n });\n\n const fileStructure = buildFileStructure(extractState.extracts);\n\n src.file(\"index.js\", srcIndexJs);\n\n src.file(\n \"routes.jsx\",\n formatJs(generate(extractedRoutes, \"routes\", [\"routes.jsx\"]))\n );\n\n const resources = src.folder(\"resources\")!;\n\n // Functions\n const fnDir = resources.folder(\"functions\")!;\n const fnNames: string[] = [];\n const fnImports: string[] = [];\n for (const fn of functions) {\n if (fn.name === \"index\") {\n throw new Error('Unexpected function name: \"index\"');\n }\n\n // Prepend with `export default` for functions\n const ast = transform(fn.source, {\n filename: `expr.${fn.typescript ? \"ts\" : \"js\"}`,\n plugins: fn.typescript ? [\"syntax-typescript\"] : [],\n ast: true,\n }).ast;\n const statements = ast.program.body.map((statement) => {\n if (statement.type === \"FunctionDeclaration\") {\n const exportDefault = t.exportDefaultDeclaration(statement);\n if (statement.leadingComments) {\n exportDefault.leadingComments = statement.leadingComments;\n delete statement.leadingComments;\n }\n return exportDefault;\n }\n return statement;\n });\n const { code } = transformFromAst(\n t.program(statements, undefined, \"module\"),\n undefined,\n {}\n );\n\n fnDir.file(`${fn.name}.${fn.typescript ? \"ts\" : \"js\"}`, code);\n fnImports.push(`import ${fn.name} from \"./${fn.name}.js\";`);\n fnNames.push(fn.name);\n }\n fnDir.file(\n \"index.js\",\n formatJs(\n `${fnImports.join(\"\\n\")}\\n\\nexport default { ${fnNames.join(\",\")} };`\n )\n );\n\n // Menus\n const menusDir = resources.folder(\"menus\")!;\n const menuNames: string[] = [];\n const menuImports: string[] = [];\n for (const menu of menus) {\n cleanMenu(menu);\n if (menu.menuId === \"index\") {\n throw new Error('Unexpected menu id: \"index\"');\n }\n const filename = `${menu.menuId}.js`;\n menusDir.file(\n filename,\n formatJs(generate(menu, \"menu\", [\"resources\", \"menus\", filename]))\n );\n const name = menu.menuId.replace(/^\\d+|[^\\w]+/g, \"_\");\n menuImports.push(`import ${name} from \"./${filename}\";`);\n menuNames.push(name);\n }\n menusDir.file(\n \"index.js\",\n formatJs(\n `${menuImports.join(\"\\n\")}\\n\\nexport default [${menuNames.join(\",\")}]`\n )\n );\n\n // Contracts\n const contractsDir = resources.folder(\"contracts\")!;\n const contractNames: string[] = [];\n const contractImports: string[] = [];\n for (const contract of contracts) {\n if (contract.name === \"index\") {\n throw new Error('Unexpected contract name: \"index\"');\n }\n contractsDir.file(\n `${contract.name}.js`,\n formatJs(`export default ${JSON.stringify(contract)};`)\n );\n const name = contract.name.replace(/^\\d+|[^\\w]+/g, \"_\");\n contractImports.push(`import ${name} from \"./${contract.name}.js\";`);\n contractNames.push(name);\n }\n contractsDir.file(\n \"index.js\",\n formatJs(\n `${contractImports.join(\"\\n\")}\\n\\nexport default [${contractNames.join(\n \",\"\n )}]`\n )\n );\n\n resources\n .folder(\"i18n\")!\n .file(\"index.js\", formatJs(`export default ${JSON.stringify(i18n)};`));\n resources.file(\n \"meta.js\",\n formatJs(`export default ${JSON.stringify(meta, null, 2)};`)\n );\n resources.file(\"index.js\", srcResourcesIndexJs);\n\n generateByFileStructure(fileStructure, src, []);\n\n const appRelativeDir = JSON.stringify(\n `../mock-micro-apps/${projectDetail.appId}`\n );\n\n const scripts = project.folder(\"scripts\")!;\n scripts.file(\n \"build.js\",\n scriptsBuildJs.replaceAll(\"__APP_RELATIVE_DIR__\", appRelativeDir)\n );\n scripts.file(\"babel.js\", scriptsBabelJs);\n scripts.file(\"start.js\", scriptsStartJs);\n scripts.file(\"transpile.js\", scriptsTranspileJs);\n\n const appDir = project\n .folder(\"mock-micro-apps\")!\n .folder(projectDetail.appId)!;\n appDir.file(\".gitignore\", \"*\\n!.gitignore\");\n\n const jsxDir = project.folder(\"jsx\")!;\n jsxDir.file(\"constants.js\", jsxConstantsJs);\n jsxDir.file(\"index.js\", jsxIndexJs);\n jsxDir.file(\"jsx-runtime.js\", jsxJsxRuntimeJs);\n jsxDir.file(\"package.json\", jsxPackageJson);\n jsxDir.file(\"Style.js\", jsxStyleJs);\n jsxDir.file(\"Function.js\", jsxFunctionJs);\n\n project.file(\".editorconfig\", editorConfig);\n project.file(\".gitignore\", gitIgnore);\n project.file(\"babel.config.js\", babelConfigJs);\n project.file(\"jsconfig.json\", jsconfigJson);\n project.file(\n \"package.json\",\n packageJson.replaceAll(\"__PROJECT_ID__\", projectDetail.appId)\n );\n project.file(\n \"README.md\",\n readmeMd\n .replaceAll(\"__PROJECT_NAME__\", projectDetail.name)\n .replaceAll(\"__PROJECT_HOMEPAGE__\", projectDetail.appSetting.homepage)\n );\n\n const blob = await zip.generateAsync({ type: \"blob\" });\n saveAs(blob, \"project.zip\");\n}\n\ninterface FormatJsOptions {\n typescript?: boolean;\n semi?: boolean;\n printWidth?: number;\n}\n\nfunction formatJs(\n source: string,\n { typescript, semi = true, printWidth }: FormatJsOptions = {}\n): string {\n return format(source, {\n parser: typescript ? \"babel-ts\" : \"babel\",\n plugins: [parserBabel],\n semi,\n printWidth,\n });\n}\n\nfunction generateByFileStructure(\n items: SourceFileOrFolder[],\n folder: JSZip,\n path: string[]\n) {\n for (const item of items) {\n const childPath = [...path, item.name];\n if (item.type === \"folder\") {\n const childFolder = folder.folder(item.name)!;\n generateByFileStructure(item.items, childFolder, childPath);\n } else {\n folder.file(\n `${item.name}.js${\n item.nodeType === \"others\" || item.nodeType === \"context\" ? \"\" : \"x\"\n }`,\n formatJs(generate(item.node, item.nodeType, childPath))\n );\n }\n }\n}\n\nfunction cleanMenu(menu: Record<string, any>) {\n for (const [key, value] of Object.entries(menu)) {\n switch (key) {\n case \"items\":\n if (Array.isArray(value)) {\n for (const item of value) {\n cleanMenuItem(item);\n }\n }\n break;\n case \"type\":\n if (value === \"main\") {\n delete menu[key];\n }\n break;\n case \"if\":\n break;\n case \"i18n\":\n if (Object.keys(value).length === 0) {\n delete menu[key];\n }\n break;\n default:\n if (value === null || value === false) {\n delete menu[key];\n }\n }\n }\n}\n\nfunction cleanMenuItem(menuItem: Record<string, any>) {\n for (const [key, value] of Object.entries(menuItem)) {\n switch (key) {\n case \"children\":\n if (Array.isArray(value) && value.length > 0) {\n cleanMenuItem(value);\n }\n break;\n case \"if\":\n break;\n case \"activeExcludes\":\n case \"activeIncludes\":\n if (Array.isArray(value) && value.length === 0) {\n delete menuItem[key];\n }\n break;\n default:\n if (value === null || value === false) {\n delete menuItem[key];\n }\n }\n }\n}\n\ncustomElements.define(\n \"vb-experiment.export-as-source-files\",\n createProviderClass(exportAsSourceFiles)\n);\n"],"names":["_exportAsSourceFiles","_asyncToGenerator","_ref","_storyboard$meta","_meta$customTemplates","_meta$functions","_meta$menus","_meta$contracts","_meta$i18n","projectDetail","storyboard","zip","JSZip","project","folder","src","extractState","extracts","namePool","Map","extractedRoutes","extractRoutes","routes","app","id","appId","name","homepage","appSetting","layoutType","theme","noAuthGuard","locales","standaloneMode","file","formatJs","concat","JSON","stringify","meta","customTemplates","functions","menus","contracts","i18n","workflows","mocks","userGroups","extractedTemplates","extractTemplates","push","path","node","nodeType","fileStructure","buildFileStructure","srcIndexJs","generate","resources","fnDir","fnNames","fnImports","fn","Error","statements","transform","source","filename","typescript","plugins","ast","program","body","map","statement","type","exportDefault","t","leadingComments","code","transformFromAst","undefined","join","menusDir","menuNames","menuImports","menu","cleanMenu","menuId","replace","contractsDir","contractNames","contractImports","contract","srcResourcesIndexJs","generateByFileStructure","appRelativeDir","scripts","scriptsBuildJs","replaceAll","scriptsBabelJs","scriptsStartJs","scriptsTranspileJs","jsxDir","jsxConstantsJs","jsxIndexJs","jsxJsxRuntimeJs","jsxPackageJson","jsxStyleJs","jsxFunctionJs","editorConfig","gitIgnore","babelConfigJs","jsconfigJson","packageJson","readmeMd","blob","generateAsync","saveAs","apply","arguments","semi","printWidth","length","format","parser","parserBabel","items","item","childPath","childFolder","key","value","Object","entries","Array","isArray","cleanMenuItem","keys","menuItem","customElements","define","createProviderClass","_x"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_next_bricks_vb_experiment=self.webpackChunk_next_bricks_vb_experiment||[]).push([[850],{1532:n=>{function e(n){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=1532,n.exports=e},5738:(n,e,t)=>{"use strict";function r(n){var e=[];for(var t of n)o(t,e);return e}function o(n,e){var{name:t,path:r,node:o,nodeType:s}=n,i=e,a=function(n){var e=i.find((e=>e.name===n&&"folder"===e.type));if(e)return i=e.items,"continue";var t={type:"folder",name:n,items:[]};i.push(t),i=t.items};for(var c of r)a(c);var l={type:"file",name:t,node:o,nodeType:s};i.push(l)}t.d(e,{B:()=>r})},9333:(n,e,t)=>{"use strict";t.d(e,{Ao:()=>p,I$:()=>d,LK:()=>m,Pu:()=>f});var r=t(4876),o=t(2159),s=t(2019),i=["routes"],a=["bricks"],c=["slots"],l={properties:["ref","refProperty","extraOneWayRefs","refTransform","mergeType","mergeMethod","mergeArgs","mergeProperty","asVariable"],slots:["ref","refSlot","refPosition"],events:["ref","refEvent"],methods:["ref","refMethod"]},p="--".concat(Math.floor(1e16*Math.random()).toString(36),"--:"),f=new RegExp('"'.concat(p,'((?:[-\\w]+/)*[-\\w]+)"'),"g");function u(n,e){return"".concat(p).concat(n).concat(n?"/":"").concat(e)}function d(n,e,t){return n.map((n=>function(n,e,t){var s,c=h("route",n.alias,e,t.namePool);!function(n){delete n.alias,delete n.iid,delete n.deviceOwner,""===n.menu&&delete n.menu,E(n,["redirect","exact"]),"bricks"===n.type&&delete n.type}(n);var l=[...e,"views",c];if("redirect"===n.type)s=n;else if("routes"===n.type){var{routes:p}=n,f=(0,o.Z)(n,i);s=(0,r.Z)((0,r.Z)({},f),{},{children:d(p,e,t)})}else{var{bricks:m}=n,g=(f=(0,o.Z)(n,a),y(m,l,t));t.extracts.push({name:c,path:l,node:g,nodeType:"bricks"}),s=(0,r.Z)((0,r.Z)({},f),{},{view:u("views/".concat(c),c)})}var b=x("context",n.context,c,l,t);return(0,r.Z)((0,r.Z)({},s),{},{context:b})}(n,e,t)))}function m(n,e,t){return n.map((n=>function(n,e,t){if(!n.name.startsWith("tpl-"))throw new Error('Invalid template name: "'.concat(n.name,'"'));var o=n.name.substring(4),i=[...e,o],a=y(n.bricks,i,t),c=x("state",n.state,o,i,t),p=function(n,e,t){if((0,s.isObject)(n)&&Object.keys(n).length>0){var r=h("proxy","proxy",e,t.namePool);return function(n){for(var[e,t]of Object.entries(n))switch(e){case"properties":case"events":case"slots":case"methods":if((0,s.isObject)(t))for(var[r,o]of Object.entries(t))if((0,s.isObject)(o)){var i=Object.keys(o);for(var a of i)l[e].includes(a)||delete o[a];0===i.length&&delete t[r]}break;default:delete n[e]}}(n),t.extracts.push({name:r,path:e,node:n,nodeType:"plain"}),u("",r)}return n}(n.proxy,i,t);return t.extracts.push({name:o,path:i,node:(0,r.Z)((0,r.Z)({},n),{},{bricks:a,state:c,proxy:p}),nodeType:"template"}),u(o,o)}(n,e,t)))}function x(n,e,t,r,o){if(Array.isArray(e)&&e.length>0){for(var s of e)j(s);var i=h(n,n,r,o.namePool);return o.extracts.push({name:i,path:r,node:e,nodeType:"context"}),u("context"===n?"views/".concat(t):"",i)}}function h(n,e,t,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=t.join("/"),i=r.get(s);i||r.set(s,i=new Set);var a="route"!==n||"string"==typeof e&&/^\w+$/.test(e)&&"index"!==e;if(!a||i.has(e)){for(var c,l=a?e:n,p=o;i.has(c="".concat(l,"_").concat(p));)p++;e=c}return i.add(e),e}function y(n,e,t){return Array.isArray(n)?n.map((n=>g(n,e,t))):n}function g(n,e,t){var i;"string"==typeof n.alias&&/^<\w+>$/.test(n.alias)&&"<index>"!==n.alias&&(i=n.alias.slice(1,-1)),function(n){delete n.alias,delete n.iid,delete n.deviceOwner,n.events&&0===Object.keys(n.events).length&&delete n.events,n.lifeCycle&&0===Object.keys(n.lifeCycle).length&&delete n.lifeCycle,E(n,["bg","portal"])}(n),i&&(i=h("brick",i,[...e,i],t.namePool,2));var a=n,{slots:l}=a,p=(0,o.Z)(a,c),f=[],m=[...e,...i?[i]:[]];if((0,s.isObject)(l)){var x=function(n){if("routes"===v.type){var o,s=d((null!==(o=v.routes)&&void 0!==o?o:[]).map((e=>(0,r.Z)((0,r.Z)({},e),{},{_isRoute:!0,slot:n}))),e,t);f.push(...s)}else{var i,a=y((null!==(i=v.bricks)&&void 0!==i?i:[]).map((e=>(0,r.Z)((0,r.Z)({},e),{},{slot:n}))),m,t);f.push(...a)}};for(var[g,v]of Object.entries(l))x(g)}return(0,s.isObject)(p.properties)&&!Array.isArray(p.properties)&&(p.properties=b(p.properties,m,t)),p.children=f,i?(t.extracts.push({name:i,node:p,path:[...e,i],nodeType:"bricks"}),u(i,i)):p}function b(n,e,t){return Object.fromEntries(Object.entries(n).map((n=>{var[r,o]=n;return[r,v(o,r,e,t)]})))}function v(n,e,t,r){return"useBrick"===e?Array.isArray(n)?y(n,t,r):(0,s.isObject)(n)?g(n,t,r):n:Array.isArray(n)?n.map(((n,e)=>v(n,e,t,r))):(0,s.isObject)(n)?b(n,t,r):n}function j(n){delete n.path,delete n.relatedId}function E(n,e){for(var t of e)n[t]||delete n[t]}},3197:(n,e,t)=>{"use strict";t.d(e,{R:()=>F});var r=t(4876),o=t(2159),s=t(1483),i=["context","exact","path","slot"],a=["id","ref","slot"],c=["proxy","state","name"],l="default:";function p(n,e,t){var r=n.get(e);r||(r=new Set,n.set(e,r)),r.add(t)}function f(n){return[...n].sort(((n,e)=>Number(n[0].startsWith("."))-Number(e[0].startsWith(".")))).map((n=>{var[e,t]=n,r=[...t];return 1===r.length&&r[0].startsWith(l)?"import ".concat(r[0].substring(l.length),' from "').concat(e,'";'):"import { ".concat(r.join(", "),' } from "').concat(e,'";')}))}var u=t(2019),d=t(9333),m=t(7243);function x(n,e,t){if(/^\s*<%[~=]?\s/.test(n)&&/\s%>\s*$/.test(n)){var r="",o=n.replace(/^\s*<%([~=])?\s|\s%>\s*$/g,((n,e)=>(e&&(r=e),"")));try{var i=(0,m.transform)("(".concat(o,")"),{ast:!0}).ast.program.body[0].expression,a=s.callExpression(s.identifier("Expr"),[...r?[s.stringLiteral(r)]:[],..."SequenceExpression"===i.type?i.expressions:[i]]);if(/\bFN\b/.test(o)){for(var c=["resources","functions","index.js"],l=0,f=0;f<c.length&&f<t.length&&(l=f,t[f]===c[f]);f++);p(e,"".concat(1===t.length?".":new Array(t.length-1-l).fill("..").join("/"),"/").concat(c.slice(l).join("/")),"default:FN")}return p(e,"jsx","Expr"),a}catch(e){console.warn("Parse expression failed:",n,e)}}return null}function h(n,e,t,r,o){var i;return null!==(i=y(n,e,t,r,o))&&void 0!==i?i:s.nullLiteral()}function y(n,e,t,r,o){if(r&&"useBrick"===o){if(Array.isArray(n))return C(n,e,t);if((0,u.isObject)(n))return S(n,e,t)}if(Array.isArray(n))return s.arrayExpression(n.map((n=>y(n,e,t,r))));if("function"==typeof n)return null;if((0,u.isObject)(n))return s.objectExpression(Object.entries(n).map((n=>{var[o,i]=n,a=y(i,e,t,r,o);return null!==a?s.objectProperty(s.stringLiteral(o),a):null})).filter(Boolean));if("string"==typeof n){var i=x(n,e,t);return null!=i?i:s.stringLiteral(n)}return"number"==typeof n?s.numericLiteral(n):"boolean"==typeof n?s.booleanLiteral(n):null===n?s.nullLiteral():null}function g(n,e,t,r,o,i){var a=[],c=[];for(var[l,p]of Object.entries(n))void 0!==p&&(/^[_$a-zA-Z][$\w]*$/.test(l)?a.push([l,p]):c.push(s.objectProperty(s.stringLiteral(o?"".concat(o,":").concat(l):l),h(p,e,t))));var f,m=(r?a.sort((f=r,function(n,e){return f.indexOf(e[0])-f.indexOf(n[0])})):a).map((n=>{var[r,a]=n;return s.jsxAttribute(o?s.jsxNamespacedName(s.jsxIdentifier(o),s.jsxIdentifier(r)):s.jsxIdentifier(r),function(n,e,t,r){if("string"==typeof n){var o=x(n,e,t);if(o)return s.jsxExpressionContainer(o);var i=s.stringLiteral(n);return n.includes(d.Ao)||JSON.stringify(n).includes("\\")?s.jsxExpressionContainer(i):i}if(!0===n)return null;if("useBrick"===r){if(Array.isArray(n))return b(C(n,e,t));if((0,u.isObject)(n))return b(S(n,e,t))}var a=h(n,e,t,!0);return s.jsxExpressionContainer(a)}(a,e,t,i?r:void 0))}));return c.length>0&&m.push(s.jsxSpreadAttribute(s.objectExpression(c))),m}function b(n){return"StringLiteral"!==n.type?s.jsxExpressionContainer(n):n}var v=["children","slot","_isRoute"];function j(n,e,t){p(e,"jsx","Route");var{children:a,slot:c,_isRoute:l}=n,f=(0,o.Z)(n,v),u=null!=a?a:[],d=""===c?void 0:c,m=0===u.length;return s.jsxElement(s.jsxOpeningElement(s.jsxIdentifier("Route"),g((0,r.Z)((0,r.Z)({},f),{},{slot:d}),e,t,i),m),m?null:s.jsxClosingElement(s.jsxIdentifier("Route")),u.map((n=>j(n,e,t))),m)}function E(n){return"StringLiteral"===n.type?s.jsxExpressionContainer(n):n}var k=["brick","children","properties","events","lifeCycle","if","portal","ref","slot"],w=["textContent","children","events","lifeCycle","if","ref"],_=["children"];function C(n,e,t){var r=n.map((n=>S(n,e,t)));return 1===r.length?r[0]:s.jsxFragment(s.jsxOpeningFragment(),s.jsxClosingFragment(),r.map(E))}function S(n,e,t){if("string"==typeof n)return s.stringLiteral(n);if(n.template)return function(n,e,t){p(e,"jsx","LegacyTemplate");var{children:r}=n,i=(0,o.Z)(n,_);return s.jsxElement(s.jsxOpeningElement(s.jsxIdentifier("LegacyTemplate"),g(i,e,t),!0),null,[],!0)}(n,e,t);var{brick:i,children:c,properties:l,events:f,lifeCycle:u,if:d,portal:m,ref:x,slot:h}=n,y=(0,o.Z)(n,k);if("string"==typeof i){var b,v,C=!0;switch(i){case":forEach":case":if":case":switch":b="".concat(i[1].toUpperCase()).concat(i.substring(2)),p(e,"jsx",b);break;default:C=!1,b=i.replaceAll(".","_")}C&&(v=y.dataSource,delete y.dataSource);var O=""===h?void 0:h,I=null!=l?l:{},{textContent:F,children:T,events:A,lifeCycle:R,if:N,ref:L}=I,D=(0,o.Z)(I,w),Z="string"==typeof F,J=0===c.length&&!Z;return c.length>0&&Z&&console.warn("Invalid brick: mix slotted children and textContent:",n),s.jsxElement(s.jsxOpeningElement(s.jsxIdentifier(b),[...g((0,r.Z)((0,r.Z)({},D),{},{slot:O,events:f,lifeCycle:u,if:!0===d?void 0:d,portal:m,ref:x},C?{value:v}:null),e,t,a,void 0,!0),...g({children:T,events:A,lifeCycle:R,if:N,ref:L},e,t,void 0,"prop"),...g(y,e,t,void 0,"conf")],J),J?null:s.jsxClosingElement(s.jsxIdentifier(b)),J?[]:c.length>0?c.map((n=>"string"!=typeof n&&n._isRoute?j(n,e,t):E(S(n,e,t)))):[P(F,e,t)],J)}throw new Error("Unexpected brick node: ".concat(JSON.stringify(n)))}function P(n,e,t){var r=x(n,e,t);return r?s.jsxExpressionContainer(r):/>|<|&(?:[a-zA-Z0-9]+|#\d+|#x[\da-fA-F]+);/.test(n)?s.jsxExpressionContainer(s.stringLiteral(n)):s.jsxText(n)}function O(n,e){var t=s.exportDefaultDeclaration(n),{code:r}=(0,m.transformFromAst)(s.program([t],void 0,"module"),void 0,{generatorOpts:{jsescOption:{minimal:!0}}}),o=function(n){var e=new Set;for(var t of n.values())for(var r of t)e.add(r.startsWith(l)?r.substring(l.length):r);return e}(e),i=f(e),a=r.replace(d.Pu,((n,e)=>{for(var t=e.split("/"),r=t[t.length-1],s=("context"===r&&3===t.length&&"views"===t[0]?"".concat(t[t.length-2],"_").concat(r):r).replaceAll("-","_").replace(/^(\d)/,"_$1"),a=2,c=s;o.has(c);)c="".concat(s,"_").concat(a++);return o.add(c),i.push("import ".concat(c,' from "./').concat(e,'.js";')),c}));return i.length>0?"".concat(i.join("\n"),"\n\n").concat(a):r}function I(n){return"export default ".concat(JSON.stringify(n),";")}function F(n,e,t){switch(e){case"routes":return function(n,e){var t=new Map;return O(s.jsxFragment(s.jsxOpeningFragment(),s.jsxClosingFragment(),n.map((n=>j(n,t,e)))),t)}(n,t);case"bricks":return function(n,e){var t=new Map;return O(Array.isArray(n)?C(n,t,e):S(n,t,e),t)}(n,t);case"template":return function(n,e){var t=new Map;p(t,"jsx","Component");var{bricks:r,name:o,state:i,proxy:a}=n;return O(s.jsxElement(s.jsxOpeningElement(s.jsxIdentifier("Component"),g({name:o,state:i,proxy:a},t,e,c)),s.jsxClosingElement(s.jsxIdentifier("Component")),(null!=r?r:[]).map((n=>E(S(n,t,e))))),t)}(n,t);case"context":case"menu":return function(n,e){var t=new Map,r=s.exportDefaultDeclaration(h(n,t,e)),o=s.program([r],void 0,"module"),i=f(t),a=(0,m.transformFromAst)(o,void 0,{generatorOpts:{jsescOption:{minimal:!0}}}).code;return i.length>0?"".concat(i.join("\n"),"\n\n").concat(a):a}(n,t);case"plain":return I(n);case"others":return function(n){var e=I(n),t=new Set,r=[];return e=e.replace(d.Pu,((n,e)=>{for(var o=e.split("/"),s=o[o.length-1].replaceAll("-","_").replace(/^(\d)/,"_$1"),i=2,a=s;t.has(a);)a="".concat(s,"_").concat(i++);return t.add(a),r.push("import ".concat(a,' from "./').concat(e,'.js";')),a})),r.length>0&&(e="".concat(r.join("\n"),"\n\n").concat(e)),e}(n);default:throw new Error("Unknown node type: ".concat(e))}}},7287:n=>{"use strict";n.exports="root = true\n\n[*]\nindent_style = space\nindent_size = 2\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true\n"},2524:n=>{"use strict";n.exports="node_modules\n/dist\n/temp\n"},3870:n=>{"use strict";n.exports="# __PROJECT_NAME__\n\n## 准备\n\n```bash\nyarn\n```\n\n## 开发\n\n打开两个终端,分别运行 `yarn start` 和 `yarn serve`。\n\n然后浏览器打开 http://localhost:8081__PROJECT_HOMEPAGE__\n\n提示:\n- 运行 `yarn serve` 时按需使用 `--subdir` 和 `--server` 等参数。\n- 修改文件后,需手动刷新浏览器。\n\n[查看贡献指南](CONTRIBUTING.md)\n"},2344:n=>{"use strict";n.exports='export default {\n presets: [\n [\n "@babel/preset-env",\n {\n modules: false,\n targets: {\n node: "current"\n }\n }\n ],\n [\n "@babel/preset-react",\n {\n runtime: "automatic",\n importSource: "jsx",\n throwIfNamespace: false,\n }\n ]\n ],\n}\n'},4450:n=>{"use strict";n.exports='{\n "compilerOptions": {\n "moduleResolution": "node16"\n }\n}\n'},8978:n=>{"use strict";n.exports='import path from "node:path";\nimport { existsSync, readFileSync } from "node:fs";\nimport { fileURLToPath } from "node:url";\nimport { parse } from "@babel/parser";\nimport babelGenerator from "@babel/generator";\nimport babelTraverse from "@babel/traverse";\nimport * as t from "@babel/types";\n\nconst { default: traverse } = babelTraverse;\nconst { default: generate } = babelGenerator;\n\n/**\n * @param {{ url: string; from: string }} props\n */\nexport default function Function({url, from}) {\n const jsPath = path.resolve(fileURLToPath(from), "..", url);\n const tsPath = jsPath.replace(/\\.js$/, ".ts");\n const typescript = (!existsSync(jsPath) && existsSync(tsPath)) || undefined;\n const resolvedPath = typescript ? tsPath : jsPath;\n const [name] = path.basename(resolvedPath).split(".");\n const source = readFileSync(resolvedPath, "utf-8");\n\n // Remove `export default`\n const ast = parse(source, { plugins: typescript ? ["typescript"] : [], sourceType: "module" });\n let fn;\n traverse(ast, {\n ExportDefaultDeclaration(path) {\n fn = path.node.declaration;\n }\n });\n const { code } = generate(fn ? t.program([fn], undefined, "script") : ast);\n\n return {\n name,\n typescript,\n source: code,\n }\n}\n'},2220:n=>{"use strict";n.exports='import path from "node:path";\nimport { readFileSync } from "node:fs";\nimport { fileURLToPath } from "node:url";\n\n/**\n * @param {{ url: string; from: string }} props\n */\nexport default function Style({url, from}) {\n const textContent = readFileSync(path.resolve(fileURLToPath(from), "..", url), "utf-8");\n return {\n brick: "style",\n properties: {\n textContent,\n }\n }\n}\n'},7444:n=>{"use strict";n.exports='export const Fragment = Symbol.for("Fragment");\nexport const Route = Symbol.for("Route");\nexport const Component = Symbol.for("Component");\nexport const ForEach = Symbol.for("ForEach");\nexport const If = Symbol.for("If");\nexport const Switch = Symbol.for("Switch");\nexport const LegacyTemplate = Symbol.for("LegacyTemplate");\n'},9082:n=>{"use strict";n.exports='import Style from "./Style.js";\nimport Function from "./Function.js";\n\nexport { Style, Function };\n\nexport * from "./constants.js";\n\n/**\n * Expression\n * @type {{\n * (expr: any): any;\n * (flag: "=" | "~" | "track context" | "track state", expr: any): any;\n * }}\n */\nexport const Expr = () => {\n throw new Error("Error: expression not transpiled!");\n}\n'},4431:n=>{"use strict";n.exports='import { Component, ForEach, Fragment, If, Route, Switch, LegacyTemplate } from "./constants.js";\n\nexport { Fragment };\n\n// Not including "children".\nconst RESERVED_PROP_KEYS = new Set(["events", "lifeCycle", "if", "portal", "ref"]);\n\nconst NodeType = Symbol("NodeType");\nconst Slot = Symbol("Slot");\nconst PropNamespace = "prop:";\nconst ConfNamespace = "conf:";\n\nexport function jsx(type, config) {\n switch (type) {\n case Fragment:\n return fixBrickChildren(config.children);\n\n case Route: {\n let route;\n if (config.type === "redirect") {\n route = config;\n } else if (config.type === "routes") {\n const { children, ...restConfig } = config;\n route = {\n ...restConfig,\n routes: [].concat(children ?? []),\n };\n } else {\n const {view, ...restConfig} = config;\n route = {\n ...restConfig,\n bricks: fixBrickChildren(view),\n };\n }\n return {\n [NodeType]: "route",\n ...route,\n };\n }\n\n case Component: {\n const { children, ...restConfig } = config;\n return {\n ...restConfig,\n bricks: fixBrickChildren(config.children),\n };\n }\n\n case ForEach:\n case If:\n case Switch: {\n const { children, value, ...restConfig } = config;\n return {\n ...restConfig,\n dataSource: value,\n brick: type === ForEach ? ":forEach" : type === "If" ? ":if" : ":switch",\n children: fixBrickChildren(config.children),\n };\n }\n\n case LegacyTemplate:\n return config;\n }\n\n if (typeof type === "function") {\n return type(config);\n }\n\n const properties = {};\n const reservedConfig = {};\n\n let slot;\n for (const [key, value] of Object.entries(config)) {\n if (key.includes(":")) {\n if (key.startsWith(PropNamespace)) {\n const k = key.substring(PropNamespace.length);\n properties[k] = value;\n } else if (key.startsWith(ConfNamespace)) {\n const k = key.substring(ConfNamespace.length);\n reservedConfig[k] = value;\n } else {\n throw new Error(`Unsupported namespace prop: "${key}"`);\n }\n } else if (key === "slot") {\n slot = value;\n } else if (key === "children") {\n // Ignore\n } else if (RESERVED_PROP_KEYS.has(key)) {\n reservedConfig[key] = value;\n } else {\n properties[key] = value;\n }\n }\n\n let slots = undefined;\n if (config.children) {\n if (typeof config.children === "string") {\n properties.textContent = config.children;\n } else {\n const children = fixBrickChildren(config.children);\n slots = childrenToSlots(children);\n delete properties.textContent;\n }\n }\n\n return {\n brick: typeof type === "string" ? type.replaceAll("_", ".") : type,\n properties,\n slots,\n [Slot]: slot,\n ...reservedConfig,\n };\n}\n\nfunction fixBrickChildren(children) {\n return [].concat(children ?? []).flat(Infinity).map(child => typeof child === "string" ? {\n brick: "span",\n properties: {\n textContent: child,\n }\n } : child);\n}\n\nfunction childrenToSlots(children) {\n const slots = {};\n for (const child of children) {\n const slot = child[Slot] ?? "";\n const type = child[NodeType] === "route" ? "routes" : "bricks";\n const slotConf = slots[slot] ??= {\n type,\n [type]: [],\n };\n slotConf[type].push(child);\n }\n return slots;\n}\n\nexport {\n jsx as jsxs\n};\n'},9456:n=>{"use strict";n.exports='{\n "name": "jsx",\n "version": "0.0.0",\n "type": "module",\n "exports": {\n ".": "./index.js",\n "./package.json": "./package.json",\n "./jsx-runtime": "./jsx-runtime.js"\n }\n}\n'},7040:n=>{"use strict";n.exports='{\n "name": "__PROJECT_ID__",\n "private": true,\n "type": "module",\n "scripts": {\n "start": "node scripts/start.js",\n "serve": "brick-container-serve --local-micro-apps=\\"__PROJECT_ID__\\""\n },\n "engines": {\n "node": ">=16"\n },\n "devDependencies": {\n "@babel/cli": "^7.22.9",\n "@babel/core": "^7.22.9",\n "@babel/generator": "^7.22.9",\n "@babel/parser": "^7.22.7",\n "@babel/preset-env": "^7.22.9",\n "@babel/preset-react": "^7.22.5",\n "@babel/traverse": "^7.22.8",\n "@babel/types": "^7.22.5",\n "@next-core/brick-container": "^3.5.11",\n "@types/babel__traverse": "^7.20.1",\n "@types/node": "^16.18.14",\n "js-yaml": "^3.14.1",\n "jsx": "link:./jsx"\n }\n}\n'},8678:n=>{"use strict";n.exports='import path from "node:path";\nimport { createRequire } from "node:module";\n\nconst require = createRequire(import.meta.url);\n\nexport function getBinPath(packageName, binName = packageName) {\n const packageJsonPath = require.resolve(`${packageName}/package.json`);\n const packageJson = require(packageJsonPath);\n if (typeof packageJson.bin === "string") {\n return packageJson.bin;\n }\n return path.join(path.dirname(packageJsonPath), packageJson.bin[binName]);\n}\n\nexport const babel = getBinPath("@babel/cli", "babel");\n'},7768:n=>{"use strict";n.exports='import path from "node:path";\nimport { writeFile } from "node:fs/promises";\nimport { fileURLToPath } from "node:url";\nimport yaml from "js-yaml";\n\nconst __dirname = path.dirname(fileURLToPath(import.meta.url));\nconst { safeDump, JSON_SCHEMA } = yaml;\n\nexport async function build() {\n const storyboard = (await import("../dist/index.js")).default;\n\n storyboard.meta = {\n ...storyboard.resources.meta,\n customTemplates: storyboard.components,\n functions: Object.values(storyboard.resources.functions),\n menus: storyboard.resources.menus,\n contracts: storyboard.resources.contracts,\n i18n: storyboard.resources.i18n,\n };\n delete storyboard.resources;\n delete storyboard.components;\n\n await Promise.all([\n writeFile(\n path.resolve(__dirname, __APP_RELATIVE_DIR__, "storyboard.yaml"),\n safeDump(storyboard, {\n indent: 2,\n schema: JSON_SCHEMA,\n skipInvalid: true,\n noRefs: true,\n noCompatMode: true,\n })\n ),\n writeFile(\n path.resolve(__dirname, __APP_RELATIVE_DIR__, "storyboard.json"),\n JSON.stringify(storyboard, null, 2)\n )\n ]);\n}\n\nbuild().then(() => {\n console.log("Build done!");\n}, (err) => {\n console.error("Build failed:", err);\n});\n'},9503:n=>{"use strict";n.exports='import path from "node:path";\nimport { spawn } from "node:child_process";\nimport { rm, readFile, writeFile, readdir } from "node:fs/promises";\nimport { existsSync } from "node:fs";\nimport { parse } from "@babel/parser";\nimport babelGenerator from "@babel/generator";\nimport * as t from "@babel/types";\nimport babelTraverse from "@babel/traverse";\nimport { babel } from "./babel.js";\nimport { transpile } from "./transpile.js";\n\nconst { default: traverse } = babelTraverse;\nconst { default: generate } = babelGenerator;\n\nstart();\n\nfunction start() {\n const task = spawn(babel, [\n "src",\n "--out-dir",\n "temp",\n "--ignore",\n "*",\n "--copy-files",\n "--delete-dir-on-start",\n "--watch"\n ]);\n\n task.stdout.on("data", async (data) => {\n const out = String(data);\n console.log(out);\n if (out.includes("Successfully compiled ")) {\n try {\n await processFunctions();\n await processExpressions();\n } catch (e) {\n console.error("Transpile failed:", e);\n return;\n }\n\n transpile();\n }\n });\n\n task.stderr.on(\'data\', (data) => {\n console.error(`${data}`);\n });\n\n task.on(\'close\', (code) => {\n console.log(`Copy exited with code ${code}`);\n });\n}\n\nasync function processFunctions() {\n const functionsIndexJsPath = path.resolve("temp/resources/functions/index.js");\n if (existsSync(functionsIndexJsPath)) {\n const content = await readFile(functionsIndexJsPath, "utf-8");\n const ast = parse(content, { sourceType: "module" });\n const importsMap = new Map();\n const functions = new Set();\n traverse(ast, {\n ImportDeclaration({ node }) {\n for (const specifier of node.specifiers) {\n if (specifier.type === "ImportDefaultSpecifier") {\n importsMap.set(specifier.local.name, node.source.value);\n }\n }\n },\n ExportDefaultDeclaration({ node }) {\n if (node.declaration.type === "ObjectExpression") {\n for (const prop of node.declaration.properties) {\n if (prop.value.type === "Identifier") {\n functions.add(prop.value.name);\n }\n }\n }\n }\n });\n\n const statements = [\n t.importDeclaration(\n [t.importSpecifier(t.identifier("Function"), t.identifier("Function"))],\n t.stringLiteral("jsx")\n ),\n\n t.exportDefaultDeclaration(\n t.jsxFragment(\n t.jsxOpeningFragment(),\n t.jsxClosingFragment(),\n [...functions].map(fn =>\n t.jsxElement(\n t.jsxOpeningElement(\n t.jsxIdentifier("Function"),\n [\n t.jsxAttribute(\n t.jsxIdentifier("url"),\n t.stringLiteral(importsMap.get(fn)),\n ),\n t.jsxAttribute(\n t.jsxIdentifier("from"),\n t.jsxExpressionContainer(\n t.memberExpression(\n t.memberExpression(\n t.identifier("import"),\n t.identifier("meta"),\n ),\n t.identifier("url"),\n )\n )\n )\n ],\n true\n ),\n null,\n [],\n true\n )\n )\n )\n )\n ];\n\n const { code } = generate(t.program(statements, undefined, "module"));\n\n await Promise.all([\n writeFile(path.resolve("temp/resources/functions/index.jsx"), code),\n rm(functionsIndexJsPath),\n ]);\n }\n}\n\nfunction processExpressions() {\n return Promise.all([\n processExpressionsInFile("temp/routes.jsx"),\n processExpressionsInDir("temp/views"),\n processExpressionsInDir("temp/components"),\n processExpressionsInDir("temp/resources/menus"),\n ]);\n}\n\nasync function processExpressionsInFile(filePath) {\n const plugins = filePath.endsWith(".jsx") ? ["jsx"] : [];\n const content = await readFile(filePath, "utf-8");\n if (/\\bExpr\\s*\\(/.test(content)) {\n const ast = parse(content, { plugins, sourceType: "module" });\n let transformed = false;\n let imported = false;\n traverse(ast, {\n ImportDeclaration({ node }) {\n if (node.source.value === "jsx") {\n for (const specifier of node.specifiers) {\n if (specifier.type === "ImportSpecifier") {\n if (specifier.local.name === "Expr" && specifier.imported.type === "Identifier" && specifier.imported.name === "Expr") {\n imported = true;\n }\n }\n }\n }\n },\n CallExpression(path) {\n if (imported && path.node.callee.type === "Identifier" && path.node.callee.name === "Expr") {\n const { arguments: args} = path.node;\n if (args.length === 0) {\n throw new Error("`Expr()` should always have at least one argument");\n }\n let flag = "";\n if (args.length > 1 && args[0].type === "StringLiteral" && (args[0].value === "=" || args[0].value === "~")) {\n flag = args[0].value;\n args.splice(0, 1);\n }\n const exprSource = `<%${flag} ${content.substring(args[0].start, args[args.length - 1].end)} %>`;\n path.container[path.key] = t.stringLiteral(exprSource);\n transformed = true;\n }\n }\n });\n\n if (transformed) {\n const { code } = generate(ast);\n await writeFile(filePath, code);\n }\n }\n}\n\nasync function processExpressionsInDir(dir) {\n const items = await readdir(dir, { withFileTypes: true });\n return Promise.all(\n items.map(async (item) => {\n if (item.isFile()) {\n if (/\\.jsx?$/.test(item.name)) {\n const filePath = path.join(dir, item.name);\n await processExpressionsInFile(filePath);\n }\n } else if (item.isDirectory()) {\n await processExpressionsInDir(path.join(dir, item.name));\n }\n })\n );\n}\n'},7211:n=>{"use strict";n.exports='import { spawn } from "node:child_process";\nimport { babel } from "./babel.js";\n\nexport function transpile() {\n const task = spawn(babel, [\n "temp",\n "--out-dir",\n "dist",\n "--config-file",\n "./babel.config.js",\n "--extensions",\n ".js,.jsx",\n "--copy-files",\n "--delete-dir-on-start"\n ], {\n stdio: "inherit"\n });\n\n task.on(\'close\', (code) => {\n if (code === 0) {\n console.log("Transpile done!");\n spawn("node", [\n "scripts/build.js"\n ], {\n stdio: "inherit"\n });\n } else {\n console.error(`Transpile failed: ${code}`);\n }\n });\n}\n'},9602:n=>{"use strict";n.exports='import app from "./app.js";\nimport routes from "./routes.js";\nimport components from "./components/index.js";\nimport resources from "./resources/index.js";\n\nexport default {\n app,\n routes,\n components,\n resources,\n};\n'},5125:n=>{"use strict";n.exports='import functions from "./functions/index.js";\nimport menus from "./menus/index.js";\nimport contracts from "./contracts/index.js";\nimport i18n from "./i18n/index.js";\nimport meta from "./meta.js";\n\nexport default {\n functions,\n menus,\n contracts,\n i18n,\n meta,\n};\n'}}]);
|
|
2
|
-
//# sourceMappingURL=850.5fba6e3e.js.map
|