@next-core/brick-container 2.66.22 → 2.66.25
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/CHANGELOG.md +24 -0
- package/dist/dll-of-editor-bricks-helper.a018f432.js +8 -0
- package/dist/dll-of-editor-bricks-helper.a018f432.js.map +1 -0
- package/dist/{dll.1d32f68f.js → dll.136997b1.js} +4 -4
- package/dist/{dll.1d32f68f.js.map → dll.136997b1.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.1dcf8af2a6cd2d199b3a.js → main.e6616c8c18ab19ef8f6a.js} +2 -2
- package/dist/{main.1dcf8af2a6cd2d199b3a.js.map → main.e6616c8c18ab19ef8f6a.js.map} +1 -1
- package/package.json +7 -7
- package/dist/dll-of-editor-bricks-helper.b44a90a5.js +0 -8
- package/dist/dll-of-editor-bricks-helper.b44a90a5.js.map +0 -1
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="zh-CN" data-theme="light" data-mode="default"><head><meta charset="utf-8"><title>DevOps 管理专家</title><base href="<!--# echo var='base_href' default='/' -->"><link rel="shortcut icon" type="image/png" href="<!--# echo var='core_root' default='' -->assets/favicon.png"/><script>(!("documentMode" in document)&&CSS.supports("display","grid")&&window.customElements)||(location.href="<!--# echo var='base_href' default='/' -->browse-happy.html")</script><link href="<!--# echo var='core_root' default='' -->main.d39df7efb75b8de32e0e.css" rel="stylesheet"></head><body><div id="root-layout"><nav id="menu-bar-mount-point" class="print-hide"></nav><div id="root-content"><header id="app-bar-mount-point" class="print-hide"></header><div id="main-mount-point"></div><div id="legacy-iframe-mount-point"></div></div><div id="loading-bar-mount-point"><div class="global-loading-bar initial-loading-bar"><div></div></div></div></div><div id="bg-mount-point"></div><div id="portal-mount-point"></div><script src="<!--# echo var='core_root' default='' -->dll.
|
|
1
|
+
<!doctype html><html lang="zh-CN" data-theme="light" data-mode="default"><head><meta charset="utf-8"><title>DevOps 管理专家</title><base href="<!--# echo var='base_href' default='/' -->"><link rel="shortcut icon" type="image/png" href="<!--# echo var='core_root' default='' -->assets/favicon.png"/><script>(!("documentMode" in document)&&CSS.supports("display","grid")&&window.customElements)||(location.href="<!--# echo var='base_href' default='/' -->browse-happy.html")</script><link href="<!--# echo var='core_root' default='' -->main.d39df7efb75b8de32e0e.css" rel="stylesheet"></head><body><div id="root-layout"><nav id="menu-bar-mount-point" class="print-hide"></nav><div id="root-content"><header id="app-bar-mount-point" class="print-hide"></header><div id="main-mount-point"></div><div id="legacy-iframe-mount-point"></div></div><div id="loading-bar-mount-point"><div class="global-loading-bar initial-loading-bar"><div></div></div></div></div><div id="bg-mount-point"></div><div id="portal-mount-point"></div><script src="<!--# echo var='core_root' default='' -->dll.136997b1.js"></script><script src="<!--# echo var='core_root' default='' -->polyfill.ebb1c5701c8a6d14b0f9.js"></script><script src="<!--# echo var='core_root' default='' -->main.e6616c8c18ab19ef8f6a.js"></script></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="GR0M")}({"1OyB":function(e,t,o){e.exports=o("XuQu")("1OyB")},"3tO9":function(e,t,o){e.exports=o("XuQu")("3tO9")},"9RIe":function(e,t,o){e.exports=o("XuQu")("9RIe")},"9kay":function(e,t,o){e.exports=o("XuQu")("9kay")},GR0M:function(e,t,o){"use strict";o.r(t);var n=o("yXPU"),r=o.n(n),i=o("3tO9"),a=o.n(i),u=o("wd/R"),s=o.n(u),c=(o("XDpg"),o("q1tI")),l=o.n(c),d=o("i8i4"),p=o.n(d),f=o("gdfu"),g=o("tYg3"),h=o("JxWY"),v=o("9RIe"),m=o("vA6H");f.message.config({top:40});var w=o("XzT5"),y=o("9kay"),S=o("1OyB"),k=o("vuIU"),b=[],x=b.forEach,O=b.slice;function I(e){return x.call(O.call(arguments,1),(function(t){if(t)for(var o in t)void 0===e[o]&&(e[o]=t[o])})),e}var R=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,E=function(e,t,o){var n=o||{};n.path=n.path||"/";var r=e+"="+encodeURIComponent(t);if(n.maxAge>0){var i=n.maxAge-0;if(isNaN(i))throw new Error("maxAge should be a Number");r+="; Max-Age="+Math.floor(i)}if(n.domain){if(!R.test(n.domain))throw new TypeError("option domain is invalid");r+="; Domain="+n.domain}if(n.path){if(!R.test(n.path))throw new TypeError("option path is invalid");r+="; Path="+n.path}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");r+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(r+="; HttpOnly"),n.secure&&(r+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r},T=function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};o&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+60*o*1e3)),n&&(r.domain=n),document.cookie=E(e,encodeURIComponent(t),r)},L=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},A={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var o=L(e.lookupCookie);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&T(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},X={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var o=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=o.substring(1).split("&"),r=0;r<n.length;r++){var i=n[r].indexOf("=");if(i>0)n[r].substring(0,i)===e.lookupQuerystring&&(t=n[r].substring(i+1))}}return t}},P=null,C=function(){if(null!==P)return P;try{P="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){P=!1}return P},D={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&C()){var o=window.localStorage.getItem(e.lookupLocalStorage);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&C()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},j=null,_=function(){if(null!==j)return j;try{j="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(e){j=!1}return j},B={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&_()){var o=window.sessionStorage.getItem(e.lookupSessionStorage);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&_()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},U={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var o=0;o<navigator.languages.length;o++)t.push(navigator.languages[o]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},Q={name:"htmlTag",lookup:function(e){var t,o=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return o&&"function"==typeof o.getAttribute&&(t=o.getAttribute("lang")),t}},q={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var o=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(o instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof o[e.lookupFromPathIndex])return;t=o[e.lookupFromPathIndex].replace("/","")}else t=o[0].replace("/","")}return t}},F={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var o=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);o instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?o[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):o[0].replace("http://","").replace("https://","").replace(".",""))}return t}};var M=function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(S.default)(this,e),this.type="languageDetector",this.detectors={},this.init(t,o)}return Object(k.default)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=I(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(A),this.addDetector(X),this.addDetector(D),this.addDetector(B),this.addDetector(U),this.addDetector(Q),this.addDetector(q),this.addDetector(F)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var o=[];return e.forEach((function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(o=o.concat(n))}})),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var o=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){o.detectors[t]&&o.detectors[t].cacheUserLanguage(e,o.options)})))}}]),e}();M.type="languageDetector";var N;!function(e){e.BOOTSTRAP_ERROR="BOOTSTRAP_ERROR"}(N||(N={}));var z={[N.BOOTSTRAP_ERROR]:"Bootstrap Error"},H={[N.BOOTSTRAP_ERROR]:"启动错误"};w.default.on("languageChanged",(function(e){s.a.locale(e)})),w.default.use(M).use(y.initReactI18next).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{en:{"brick-container":z},zh:{"brick-container":H}}}),Object(g.initI18n)();var Y=w.default;Object(v.initializeLibrary)(),window.DLL_PATH={ace:"dll-of-ace.1d453681.js",d3:"dll-of-d3.1991969b.js",echarts:"dll-of-echarts.d885e687.js","editor-bricks-helper":"dll-of-editor-bricks-helper.b44a90a5.js","react-dnd":"dll-of-react-dnd.0ca00465.js"},window.BRICK_NEXT_VERSIONS={"brick-container":"2.66.22","brick-dll":"2.31.29","brick-kit":"2.117.14","brick-utils":"2.37.9"},window.BRICK_NEXT_FEATURES=["edit-evaluations-and-transformations-in-devtools"];var J,W=document.body,G=Object(g.createRuntime)(),K={menuBar:W.querySelector("#menu-bar-mount-point"),appBar:W.querySelector("#app-bar-mount-point"),loadingBar:W.querySelector("#loading-bar-mount-point"),main:W.querySelector("#main-mount-point"),bg:W.querySelector("#bg-mount-point"),portal:W.querySelector("#portal-mount-point")};if(!window.STANDALONE_MICRO_APPS){var V="".concat(G.getBasePath(),"api/gateway/data_exchange.store.ClickHouseInsertData/api/v1/data_exchange/frontend_stat");J=m.apiAnalyzer.create({api:V})}h.http.interceptors.request.use((function(e){var t,o=new Headers((null===(t=e.options)||void 0===t?void 0:t.headers)||{});o.set("lang",Y.resolvedLanguage);var n=Object(g.getMockInfo)(e.url);return n&&(e.url=n.url,o.set("easyops-mock-id",n.mockId)),a()(a()({},e),{},{options:a()(a()({},e.options),{},{headers:o})})})),h.http.interceptors.request.use((function(e){var t,o;if(J){var{userInstanceId:n,username:r}=Object(g.getAuth)(),i=Date.now();e.meta={st:i,time:Math.round(i/1e3),uid:n,username:r}}return null!==(t=e.options)&&void 0!==t&&null!==(o=t.interceptorParams)&&void 0!==o&&o.ignoreLoadingBar||window.dispatchEvent(new CustomEvent("request.start")),e})),h.http.interceptors.response.use((function(e){var t,o;return window.dispatchEvent(new CustomEvent("request.end")),null===(t=J)||void 0===t||t.analyses(e),"response"===(null===(o=e.config.options)||void 0===o?void 0:o.observe)?e:e.data}),(function(e){var t;return null===(t=J)||void 0===t||t.analyses(e),window.dispatchEvent(new CustomEvent("request.end")),Promise.reject(e.error)}));var $,Z,ee="loading",te=!1;function oe(){return ne.apply(this,arguments)}function ne(){return(ne=r()((function*(){if(!te&&"ok"===ee&&$){te=!0;var e=$===location.origin||/^https?:\/\/localhost(?:$|:)/.test($);if(!e){var{allowedPreviewFromOrigins:t}=G.getMiscSettings();Array.isArray(t)&&(e=t.some(e=>e===$)),e||console.error("Preview is disallowed, from origin: ".concat($,", while allowing: ").concat(JSON.stringify(t)))}if(e){if(yield g.developHelper.loadDynamicBricksInBrickConf({brick:"next-previewer.preview-helper"}),customElements.get("next-previewer.preview-helper"))document.createElement("next-previewer.preview-helper").start($,Z)}}}))).apply(this,arguments)}if(window.parent){var re=function(){var e=r()((function*(e){var{data:t,origin:o}=e;t&&"preview-container"===t.sender&&"start-preview"===t.type&&(window.removeEventListener("message",re),$=o,Z=t.options,oe())}));return function(t){return e.apply(this,arguments)}}();window.addEventListener("message",re)}function ie(){return(ie=r()((function*(){try{yield G.bootstrap(K),ee="ok"}catch(e){ee="failed",console.error(e),document.body.classList.add("bootstrap-error","bars-hidden"),p.a.render(l.a.createElement(f.Result,{status:"error",title:Y.t("".concat("brick-container",":").concat(N.BOOTSTRAP_ERROR)),subTitle:Object(g.httpErrorToString)(e)}),K.main)}oe()}))).apply(this,arguments)}!function(){ie.apply(this,arguments)}()},JxWY:function(e,t,o){e.exports=o("XuQu")("JxWY")},XDpg:function(e,t,o){e.exports=o("XuQu")("XDpg")},XuQu:function(e,t){e.exports=dll},XzT5:function(e,t,o){e.exports=o("XuQu")("XzT5")},gdfu:function(e,t,o){e.exports=o("XuQu")("gdfu")},i8i4:function(e,t,o){e.exports=o("XuQu")("i8i4")},q1tI:function(e,t,o){e.exports=o("XuQu")("q1tI")},tYg3:function(e,t,o){e.exports=o("XuQu")("tYg3")},vA6H:function(e,t,o){e.exports=o("XuQu")("vA6H")},vuIU:function(e,t,o){e.exports=o("XuQu")("vuIU")},"wd/R":function(e,t,o){e.exports=o("XuQu")("wd/R")},yXPU:function(e,t,o){e.exports=o("XuQu")("yXPU")}});
|
|
2
|
-
//# sourceMappingURL=main.
|
|
1
|
+
!function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="GR0M")}({"1OyB":function(e,t,o){e.exports=o("XuQu")("1OyB")},"3tO9":function(e,t,o){e.exports=o("XuQu")("3tO9")},"9RIe":function(e,t,o){e.exports=o("XuQu")("9RIe")},"9kay":function(e,t,o){e.exports=o("XuQu")("9kay")},GR0M:function(e,t,o){"use strict";o.r(t);var n=o("yXPU"),r=o.n(n),i=o("3tO9"),a=o.n(i),u=o("wd/R"),s=o.n(u),c=(o("XDpg"),o("q1tI")),l=o.n(c),d=o("i8i4"),p=o.n(d),f=o("gdfu"),g=o("tYg3"),h=o("JxWY"),v=o("9RIe"),m=o("vA6H");f.message.config({top:40});var w=o("XzT5"),y=o("9kay"),S=o("1OyB"),k=o("vuIU"),b=[],x=b.forEach,O=b.slice;function I(e){return x.call(O.call(arguments,1),(function(t){if(t)for(var o in t)void 0===e[o]&&(e[o]=t[o])})),e}var R=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,E=function(e,t,o){var n=o||{};n.path=n.path||"/";var r=e+"="+encodeURIComponent(t);if(n.maxAge>0){var i=n.maxAge-0;if(isNaN(i))throw new Error("maxAge should be a Number");r+="; Max-Age="+Math.floor(i)}if(n.domain){if(!R.test(n.domain))throw new TypeError("option domain is invalid");r+="; Domain="+n.domain}if(n.path){if(!R.test(n.path))throw new TypeError("option path is invalid");r+="; Path="+n.path}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");r+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(r+="; HttpOnly"),n.secure&&(r+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r},T=function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};o&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+60*o*1e3)),n&&(r.domain=n),document.cookie=E(e,encodeURIComponent(t),r)},L=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var r=o[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},A={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var o=L(e.lookupCookie);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&T(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},X={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var o=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=o.substring(1).split("&"),r=0;r<n.length;r++){var i=n[r].indexOf("=");if(i>0)n[r].substring(0,i)===e.lookupQuerystring&&(t=n[r].substring(i+1))}}return t}},P=null,C=function(){if(null!==P)return P;try{P="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){P=!1}return P},D={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&C()){var o=window.localStorage.getItem(e.lookupLocalStorage);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&C()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},j=null,_=function(){if(null!==j)return j;try{j="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(e){j=!1}return j},B={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&_()){var o=window.sessionStorage.getItem(e.lookupSessionStorage);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&_()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},U={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var o=0;o<navigator.languages.length;o++)t.push(navigator.languages[o]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},Q={name:"htmlTag",lookup:function(e){var t,o=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return o&&"function"==typeof o.getAttribute&&(t=o.getAttribute("lang")),t}},q={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var o=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(o instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof o[e.lookupFromPathIndex])return;t=o[e.lookupFromPathIndex].replace("/","")}else t=o[0].replace("/","")}return t}},F={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var o=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);o instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?o[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):o[0].replace("http://","").replace("https://","").replace(".",""))}return t}};var M=function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(S.default)(this,e),this.type="languageDetector",this.detectors={},this.init(t,o)}return Object(k.default)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=I(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(A),this.addDetector(X),this.addDetector(D),this.addDetector(B),this.addDetector(U),this.addDetector(Q),this.addDetector(q),this.addDetector(F)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var o=[];return e.forEach((function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(o=o.concat(n))}})),this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var o=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){o.detectors[t]&&o.detectors[t].cacheUserLanguage(e,o.options)})))}}]),e}();M.type="languageDetector";var N;!function(e){e.BOOTSTRAP_ERROR="BOOTSTRAP_ERROR"}(N||(N={}));var z={[N.BOOTSTRAP_ERROR]:"Bootstrap Error"},H={[N.BOOTSTRAP_ERROR]:"启动错误"};w.default.on("languageChanged",(function(e){s.a.locale(e)})),w.default.use(M).use(y.initReactI18next).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{en:{"brick-container":z},zh:{"brick-container":H}}}),Object(g.initI18n)();var Y=w.default;Object(v.initializeLibrary)(),window.DLL_PATH={ace:"dll-of-ace.1d453681.js",d3:"dll-of-d3.1991969b.js",echarts:"dll-of-echarts.d885e687.js","editor-bricks-helper":"dll-of-editor-bricks-helper.a018f432.js","react-dnd":"dll-of-react-dnd.0ca00465.js"},window.BRICK_NEXT_VERSIONS={"brick-container":"2.66.25","brick-dll":"2.31.31","brick-kit":"2.118.0","brick-utils":"2.37.10"},window.BRICK_NEXT_FEATURES=["edit-evaluations-and-transformations-in-devtools"];var J,W=document.body,G=Object(g.createRuntime)(),K={menuBar:W.querySelector("#menu-bar-mount-point"),appBar:W.querySelector("#app-bar-mount-point"),loadingBar:W.querySelector("#loading-bar-mount-point"),main:W.querySelector("#main-mount-point"),bg:W.querySelector("#bg-mount-point"),portal:W.querySelector("#portal-mount-point")};if(!window.STANDALONE_MICRO_APPS){var V="".concat(G.getBasePath(),"api/gateway/data_exchange.store.ClickHouseInsertData/api/v1/data_exchange/frontend_stat");J=m.apiAnalyzer.create({api:V})}h.http.interceptors.request.use((function(e){var t,o=new Headers((null===(t=e.options)||void 0===t?void 0:t.headers)||{});o.set("lang",Y.resolvedLanguage);var n=Object(g.getMockInfo)(e.url);return n&&(e.url=n.url,o.set("easyops-mock-id",n.mockId)),a()(a()({},e),{},{options:a()(a()({},e.options),{},{headers:o})})})),h.http.interceptors.request.use((function(e){var t,o;if(J){var{userInstanceId:n,username:r}=Object(g.getAuth)(),i=Date.now();e.meta={st:i,time:Math.round(i/1e3),uid:n,username:r}}return null!==(t=e.options)&&void 0!==t&&null!==(o=t.interceptorParams)&&void 0!==o&&o.ignoreLoadingBar||window.dispatchEvent(new CustomEvent("request.start")),e})),h.http.interceptors.response.use((function(e){var t,o;return window.dispatchEvent(new CustomEvent("request.end")),null===(t=J)||void 0===t||t.analyses(e),"response"===(null===(o=e.config.options)||void 0===o?void 0:o.observe)?e:e.data}),(function(e){var t;return null===(t=J)||void 0===t||t.analyses(e),window.dispatchEvent(new CustomEvent("request.end")),Promise.reject(e.error)}));var $,Z,ee="loading",te=!1;function oe(){return ne.apply(this,arguments)}function ne(){return(ne=r()((function*(){if(!te&&"ok"===ee&&$){te=!0;var e=$===location.origin||/^https?:\/\/localhost(?:$|:)/.test($);if(!e){var{allowedPreviewFromOrigins:t}=G.getMiscSettings();Array.isArray(t)&&(e=t.some(e=>e===$)),e||console.error("Preview is disallowed, from origin: ".concat($,", while allowing: ").concat(JSON.stringify(t)))}if(e){if(yield g.developHelper.loadDynamicBricksInBrickConf({brick:"next-previewer.preview-helper"}),customElements.get("next-previewer.preview-helper"))document.createElement("next-previewer.preview-helper").start($,Z)}}}))).apply(this,arguments)}if(window.parent){var re=function(){var e=r()((function*(e){var{data:t,origin:o}=e;t&&"preview-container"===t.sender&&"start-preview"===t.type&&(window.removeEventListener("message",re),$=o,Z=t.options,oe())}));return function(t){return e.apply(this,arguments)}}();window.addEventListener("message",re)}function ie(){return(ie=r()((function*(){try{yield G.bootstrap(K),ee="ok"}catch(e){ee="failed",console.error(e),document.body.classList.add("bootstrap-error","bars-hidden"),p.a.render(l.a.createElement(f.Result,{status:"error",title:Y.t("".concat("brick-container",":").concat(N.BOOTSTRAP_ERROR)),subTitle:Object(g.httpErrorToString)(e)}),K.main)}oe()}))).apply(this,arguments)}!function(){ie.apply(this,arguments)}()},JxWY:function(e,t,o){e.exports=o("XuQu")("JxWY")},XDpg:function(e,t,o){e.exports=o("XuQu")("XDpg")},XuQu:function(e,t){e.exports=dll},XzT5:function(e,t,o){e.exports=o("XuQu")("XzT5")},gdfu:function(e,t,o){e.exports=o("XuQu")("gdfu")},i8i4:function(e,t,o){e.exports=o("XuQu")("i8i4")},q1tI:function(e,t,o){e.exports=o("XuQu")("q1tI")},tYg3:function(e,t,o){e.exports=o("XuQu")("tYg3")},vA6H:function(e,t,o){e.exports=o("XuQu")("vA6H")},vuIU:function(e,t,o){e.exports=o("XuQu")("vuIU")},"wd/R":function(e,t,o){e.exports=o("XuQu")("wd/R")},yXPU:function(e,t,o){e.exports=o("XuQu")("yXPU")}});
|
|
2
|
+
//# sourceMappingURL=main.e6616c8c18ab19ef8f6a.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/objectSpread2.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/fontawesome-library/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/react-i18next/dist/es/index.js from dll-reference dll","webpack:///./packages/brick-container/src/antd.ts","webpack:///./node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js","webpack:///./packages/brick-container/src/i18n/constants.ts","webpack:///./packages/brick-container/src/i18n/locales/en.ts","webpack:///./packages/brick-container/src/i18n/locales/zh.ts","webpack:///./packages/brick-container/src/i18n/index.ts","webpack:///./packages/brick-container/src/index.tsx","webpack:///delegated ./node_modules/@next-core/brick-http/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/moment/locale/zh-cn.js from dll-reference dll","webpack:///external \"dll\"","webpack:///delegated ./node_modules/i18next/dist/esm/i18next.js from dll-reference dll","webpack:///delegated ./node_modules/antd/es/index.js from dll-reference dll","webpack:///delegated ./node_modules/react-dom/index.js from dll-reference dll","webpack:///delegated ./node_modules/react/index.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/brick-kit/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/easyops-analytics/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/createClass.js from dll-reference dll","webpack:///delegated ./node_modules/moment/moment.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/asyncToGenerator.js from dll-reference dll"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","message","config","top","arr","each","forEach","slice","defaults","obj","arguments","source","prop","undefined","fieldContentRegExp","serializeCookie","val","options","opt","path","str","encodeURIComponent","maxAge","isNaN","Error","Math","floor","domain","test","TypeError","expires","toUTCString","httpOnly","secure","sameSite","toLowerCase","cookie","minutes","cookieOptions","length","Date","setTime","getTime","document","nameEQ","ca","split","charAt","substring","indexOf","cookie$1","lookup","found","lookupCookie","cacheUserLanguage","lng","cookieMinutes","cookieDomain","querystring","window","search","location","hash","params","pos","lookupQuerystring","hasLocalStorageSupport","localStorageAvailable","localStorage","setItem","removeItem","e","lookupLocalStorage","getItem","hasSessionStorageSupport","sessionStorageAvailable","sessionStorage","lookupSessionStorage","navigator$1","navigator","languages","push","userLanguage","language","htmlTag","documentElement","getAttribute","pathname","match","Array","lookupFromPathIndex","replace","subdomain","href","lookupFromSubdomainIndex","Browser","services","this","type","detectors","init","i18nOptions","order","caches","excludeCacheFor","lookupFromUrlIndex","addDetector","detector","detectionOrder","_this","detected","detectorName","concat","languageUtils","getBestMatchFromCodes","_this2","cacheName","K","locale","BOOTSTRAP_ERROR","i18n","on","moment","use","LanguageDetector","initReactI18next","fallbackLng","debug","process","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","en","zh","initI18n","initializeLibrary","DLL_PATH","BRICK_NEXT_VERSIONS","BRICK_NEXT_FEATURES","analyzer","root","body","runtime","createRuntime","mountPoints","menuBar","querySelector","appBar","loadingBar","main","bg","portal","STANDALONE_MICRO_APPS","api","getBasePath","apiAnalyzer","http","interceptors","request","headers","Headers","set","resolvedLanguage","mockInfo","getMockInfo","url","mockId","userInstanceId","uid","username","getAuth","date","now","meta","st","time","round","interceptorParams","ignoreLoadingBar","dispatchEvent","CustomEvent","response","analyses","observe","data","error","Promise","reject","previewFromOrigin","previewOptions","bootstrapStatus","previewStarted","startPreview","previewAllowed","origin","allowedPreviewFromOrigins","getMiscSettings","isArray","some","console","JSON","stringify","developHelper","loadDynamicBricksInBrickConf","brick","customElements","createElement","start","parent","listener","sender","removeEventListener","addEventListener","bootstrap","classList","add","ReactDOM","render","status","title","subTitle","httpErrorToString","dll"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI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E,EAEpEV,GACgB,sBAAhBA,EAAK0B,QACS,kBAAd1B,EAAK3F,OAELvC,OAAO6J,oBAAoB,UAAWF,IACtCrB,EAAoBM,EACpBL,EAAiBL,EAAK5K,QACtBoL,SAZU,sDAed1I,OAAO8J,iBAAiB,UAAWH,I,6BAGrC,YACE,UACQnE,EAAQuE,UAAUrE,GACxB8C,GAAkB,KAClB,MAAO5H,GACP4H,GAAkB,SAElBS,QAAQd,MAAMvH,GAGd5B,SAASuG,KAAKyE,UAAUC,IAAI,kBAAmB,eAE/CC,IAASC,OACP,kBAAC,SAAD,CACEC,OAAO,QACPC,MAAOxG,EAAKrI,EAAL,UJtMmB,kBIsMnB,YAAgCkI,EAAEE,kBACzC0G,SAAUC,4BAAkB3J,KAE9B8E,EAAYK,MAIhB2C,S,2DAGFqB,I,qBChNA1P,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,mBCA/CG,EAAOD,QAAUoQ,K,qBCAjBnQ,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,uBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B","file":"main.1dcf8af2a6cd2d199b3a.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"GR0M\");\n","module.exports = (__webpack_require__(\"XuQu\"))(\"1OyB\");","module.exports = (__webpack_require__(\"XuQu\"))(\"3tO9\");","module.exports = (__webpack_require__(\"XuQu\"))(\"9RIe\");","module.exports = (__webpack_require__(\"XuQu\"))(\"9kay\");","// antd component global configuration\nimport { message } from \"antd\";\n\nmessage.config({\n top: 40\n});\n","import _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\n\nvar arr = [];\nvar each = arr.forEach;\nvar slice = arr.slice;\nfunction defaults(obj) {\n each.call(slice.call(arguments, 1), function (source) {\n if (source) {\n for (var prop in source) {\n if (obj[prop] === undefined) obj[prop] = source[prop];\n }\n }\n });\n return obj;\n}\n\n// eslint-disable-next-line no-control-regex\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\nvar serializeCookie = function serializeCookie(name, val, options) {\n var opt = options || {};\n opt.path = opt.path || '/';\n var value = encodeURIComponent(val);\n var str = name + '=' + value;\n\n if (opt.maxAge > 0) {\n var maxAge = opt.maxAge - 0;\n if (isNaN(maxAge)) throw new Error('maxAge should be a Number');\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + opt.expires.toUTCString();\n }\n\n if (opt.httpOnly) str += '; HttpOnly';\n if (opt.secure) str += '; Secure';\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string' ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n\n case 'lax':\n str += '; SameSite=Lax';\n break;\n\n case 'strict':\n str += '; SameSite=Strict';\n break;\n\n case 'none':\n str += '; SameSite=None';\n break;\n\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n};\n\nvar cookie = {\n create: function create(name, value, minutes, domain) {\n var cookieOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {\n path: '/',\n sameSite: 'strict'\n };\n\n if (minutes) {\n cookieOptions.expires = new Date();\n cookieOptions.expires.setTime(cookieOptions.expires.getTime() + minutes * 60 * 1000);\n }\n\n if (domain) cookieOptions.domain = domain;\n document.cookie = serializeCookie(name, encodeURIComponent(value), cookieOptions);\n },\n read: function read(name) {\n var nameEQ = name + '=';\n var ca = document.cookie.split(';');\n\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n\n while (c.charAt(0) === ' ') {\n c = c.substring(1, c.length);\n }\n\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n\n return null;\n },\n remove: function remove(name) {\n this.create(name, '', -1);\n }\n};\nvar cookie$1 = {\n name: 'cookie',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupCookie && typeof document !== 'undefined') {\n var c = cookie.read(options.lookupCookie);\n if (c) found = c;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupCookie && typeof document !== 'undefined') {\n cookie.create(options.lookupCookie, lng, options.cookieMinutes, options.cookieDomain, options.cookieOptions);\n }\n }\n};\n\nvar querystring = {\n name: 'querystring',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var search = window.location.search;\n\n if (!window.location.search && window.location.hash && window.location.hash.indexOf('?') > -1) {\n search = window.location.hash.substring(window.location.hash.indexOf('?'));\n }\n\n var query = search.substring(1);\n var params = query.split('&');\n\n for (var i = 0; i < params.length; i++) {\n var pos = params[i].indexOf('=');\n\n if (pos > 0) {\n var key = params[i].substring(0, pos);\n\n if (key === options.lookupQuerystring) {\n found = params[i].substring(pos + 1);\n }\n }\n }\n }\n\n return found;\n }\n};\n\nvar hasLocalStorageSupport = null;\n\nvar localStorageAvailable = function localStorageAvailable() {\n if (hasLocalStorageSupport !== null) return hasLocalStorageSupport;\n\n try {\n hasLocalStorageSupport = window !== 'undefined' && window.localStorage !== null;\n var testKey = 'i18next.translate.boo';\n window.localStorage.setItem(testKey, 'foo');\n window.localStorage.removeItem(testKey);\n } catch (e) {\n hasLocalStorageSupport = false;\n }\n\n return hasLocalStorageSupport;\n};\n\nvar localStorage = {\n name: 'localStorage',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupLocalStorage && localStorageAvailable()) {\n var lng = window.localStorage.getItem(options.lookupLocalStorage);\n if (lng) found = lng;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupLocalStorage && localStorageAvailable()) {\n window.localStorage.setItem(options.lookupLocalStorage, lng);\n }\n }\n};\n\nvar hasSessionStorageSupport = null;\n\nvar sessionStorageAvailable = function sessionStorageAvailable() {\n if (hasSessionStorageSupport !== null) return hasSessionStorageSupport;\n\n try {\n hasSessionStorageSupport = window !== 'undefined' && window.sessionStorage !== null;\n var testKey = 'i18next.translate.boo';\n window.sessionStorage.setItem(testKey, 'foo');\n window.sessionStorage.removeItem(testKey);\n } catch (e) {\n hasSessionStorageSupport = false;\n }\n\n return hasSessionStorageSupport;\n};\n\nvar sessionStorage = {\n name: 'sessionStorage',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupSessionStorage && sessionStorageAvailable()) {\n var lng = window.sessionStorage.getItem(options.lookupSessionStorage);\n if (lng) found = lng;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupSessionStorage && sessionStorageAvailable()) {\n window.sessionStorage.setItem(options.lookupSessionStorage, lng);\n }\n }\n};\n\nvar navigator$1 = {\n name: 'navigator',\n lookup: function lookup(options) {\n var found = [];\n\n if (typeof navigator !== 'undefined') {\n if (navigator.languages) {\n // chrome only; not an array, so can't use .push.apply instead of iterating\n for (var i = 0; i < navigator.languages.length; i++) {\n found.push(navigator.languages[i]);\n }\n }\n\n if (navigator.userLanguage) {\n found.push(navigator.userLanguage);\n }\n\n if (navigator.language) {\n found.push(navigator.language);\n }\n }\n\n return found.length > 0 ? found : undefined;\n }\n};\n\nvar htmlTag = {\n name: 'htmlTag',\n lookup: function lookup(options) {\n var found;\n var htmlTag = options.htmlTag || (typeof document !== 'undefined' ? document.documentElement : null);\n\n if (htmlTag && typeof htmlTag.getAttribute === 'function') {\n found = htmlTag.getAttribute('lang');\n }\n\n return found;\n }\n};\n\nvar path = {\n name: 'path',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var language = window.location.pathname.match(/\\/([a-zA-Z-]*)/g);\n\n if (language instanceof Array) {\n if (typeof options.lookupFromPathIndex === 'number') {\n if (typeof language[options.lookupFromPathIndex] !== 'string') {\n return undefined;\n }\n\n found = language[options.lookupFromPathIndex].replace('/', '');\n } else {\n found = language[0].replace('/', '');\n }\n }\n }\n\n return found;\n }\n};\n\nvar subdomain = {\n name: 'subdomain',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var language = window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);\n\n if (language instanceof Array) {\n if (typeof options.lookupFromSubdomainIndex === 'number') {\n found = language[options.lookupFromSubdomainIndex].replace('http://', '').replace('https://', '').replace('.', '');\n } else {\n found = language[0].replace('http://', '').replace('https://', '').replace('.', '');\n }\n }\n }\n\n return found;\n }\n};\n\nfunction getDefaults() {\n return {\n order: ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'htmlTag'],\n lookupQuerystring: 'lng',\n lookupCookie: 'i18next',\n lookupLocalStorage: 'i18nextLng',\n lookupSessionStorage: 'i18nextLng',\n // cache user language\n caches: ['localStorage'],\n excludeCacheFor: ['cimode'] //cookieMinutes: 10,\n //cookieDomain: 'myDomain'\n\n };\n}\n\nvar Browser = /*#__PURE__*/function () {\n function Browser(services) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, Browser);\n\n this.type = 'languageDetector';\n this.detectors = {};\n this.init(services, options);\n }\n\n _createClass(Browser, [{\n key: \"init\",\n value: function init(services) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var i18nOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.services = services;\n this.options = defaults(options, this.options || {}, getDefaults()); // backwards compatibility\n\n if (this.options.lookupFromUrlIndex) this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex;\n this.i18nOptions = i18nOptions;\n this.addDetector(cookie$1);\n this.addDetector(querystring);\n this.addDetector(localStorage);\n this.addDetector(sessionStorage);\n this.addDetector(navigator$1);\n this.addDetector(htmlTag);\n this.addDetector(path);\n this.addDetector(subdomain);\n }\n }, {\n key: \"addDetector\",\n value: function addDetector(detector) {\n this.detectors[detector.name] = detector;\n }\n }, {\n key: \"detect\",\n value: function detect(detectionOrder) {\n var _this = this;\n\n if (!detectionOrder) detectionOrder = this.options.order;\n var detected = [];\n detectionOrder.forEach(function (detectorName) {\n if (_this.detectors[detectorName]) {\n var lookup = _this.detectors[detectorName].lookup(_this.options);\n\n if (lookup && typeof lookup === 'string') lookup = [lookup];\n if (lookup) detected = detected.concat(lookup);\n }\n });\n if (this.services.languageUtils.getBestMatchFromCodes) return detected; // new i18next v19.5.0\n\n return detected.length > 0 ? detected[0] : null; // a little backward compatibility\n }\n }, {\n key: \"cacheUserLanguage\",\n value: function cacheUserLanguage(lng, caches) {\n var _this2 = this;\n\n if (!caches) caches = this.options.caches;\n if (!caches) return;\n if (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(lng) > -1) return;\n caches.forEach(function (cacheName) {\n if (_this2.detectors[cacheName]) _this2.detectors[cacheName].cacheUserLanguage(lng, _this2.options);\n });\n }\n }]);\n\n return Browser;\n}();\n\nBrowser.type = 'languageDetector';\n\nexport { Browser as default };\n","export const NS_BRICK_CONTAINER = \"brick-container\";\n\nexport enum K {\n BOOTSTRAP_ERROR = \"BOOTSTRAP_ERROR\",\n}\n\nexport type Locale = { [key in K]: string };\n","import { Locale, K } from \"../constants\";\n\nconst locale: Locale = {\n [K.BOOTSTRAP_ERROR]: \"Bootstrap Error\",\n};\n\nexport default locale;\n","import { Locale, K } from \"../constants\";\n\nconst locale: Locale = {\n [K.BOOTSTRAP_ERROR]: \"启动错误\",\n};\n\nexport default locale;\n","import i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\nimport moment from \"moment\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nimport { initI18n } from \"@next-core/brick-kit\";\n\nimport { NS_BRICK_CONTAINER } from \"./constants\";\nimport en from \"./locales/en\";\nimport zh from \"./locales/zh\";\n\n// I18next is synchronously initialized now,\n// so we listen on language change before initialization.\ni18n.on(\"languageChanged\", function (lng) {\n moment.locale(lng);\n});\n\ni18n\n // learn more: https://github.com/i18next/i18next-xhr-backend\n // .use(Backend)\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(LanguageDetector)\n .use(initReactI18next)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\n /*global process*/\n debug: process.env.NODE_ENV === \"development\",\n supportedLngs: [\"zh\", \"en\"],\n nonExplicitSupportedLngs: true,\n interpolation: {\n escapeValue: false, // not needed for react as it escapes by default\n },\n react: {\n useSuspense: false,\n },\n compatibilityJSON: \"v3\",\n resources: {\n en: {\n [NS_BRICK_CONTAINER]: en,\n },\n zh: {\n [NS_BRICK_CONTAINER]: zh,\n },\n },\n });\n\ninitI18n();\n\nexport default i18n;\n","import \"moment\";\nimport \"moment/locale/zh-cn\";\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Result } from \"antd\";\nimport {\n createRuntime,\n getAuth,\n httpErrorToString,\n getMockInfo,\n developHelper,\n} from \"@next-core/brick-kit\";\nimport {\n http,\n HttpRequestConfig,\n HttpResponse,\n HttpError,\n} from \"@next-core/brick-http\";\nimport { initializeLibrary } from \"@next-core/fontawesome-library\";\nimport { apiAnalyzer } from \"@next-core/easyops-analytics\";\nimport \"./antd\";\nimport \"./styles/theme/index.css\";\nimport \"./styles/variables.css\";\nimport \"./styles/business-variables.css\";\nimport \"./styles/editor-bricks-variables.css\";\nimport \"./styles/antd.less\";\nimport \"./styles/antd-compatible.less\";\nimport \"./styles/default.css\";\nimport \"@next-core/brick-icons/dist/styles/index.css\";\nimport i18n from \"./i18n\";\nimport { K, NS_BRICK_CONTAINER } from \"./i18n/constants\";\n\ninitializeLibrary();\n\n// These constants bellow are defined by `webpack.DefinePlugin`.\n// eslint-disable-next-line\n// @ts-ignore\nwindow.DLL_PATH = DLL_PATH;\n// eslint-disable-next-line\n// @ts-ignore\nwindow.BRICK_NEXT_VERSIONS = BRICK_NEXT_VERSIONS;\n// eslint-disable-next-line\n// @ts-ignore\nwindow.BRICK_NEXT_FEATURES = BRICK_NEXT_FEATURES;\n\nconst root = document.body;\n\nconst runtime = createRuntime();\n\nconst mountPoints = {\n menuBar: root.querySelector<HTMLElement>(\"#menu-bar-mount-point\"),\n appBar: root.querySelector<HTMLElement>(\"#app-bar-mount-point\"),\n loadingBar: root.querySelector<HTMLElement>(\"#loading-bar-mount-point\"),\n main: root.querySelector<HTMLElement>(\"#main-mount-point\"),\n bg: root.querySelector<HTMLElement>(\"#bg-mount-point\"),\n portal: root.querySelector<HTMLElement>(\"#portal-mount-point\"),\n};\n\nlet analyzer: ReturnType<typeof apiAnalyzer.create>;\n\n// Disable API stats for standalone micro-apps.\nif (!window.STANDALONE_MICRO_APPS) {\n const api = `${runtime.getBasePath()}api/gateway/data_exchange.store.ClickHouseInsertData/api/v1/data_exchange/frontend_stat`;\n analyzer = apiAnalyzer.create({\n api,\n });\n}\n\nhttp.interceptors.request.use(function (config: HttpRequestConfig) {\n const headers = new Headers(config.options?.headers || {});\n headers.set(\"lang\", i18n.resolvedLanguage);\n const mockInfo = getMockInfo(config.url);\n if (mockInfo) {\n config.url = mockInfo.url;\n headers.set(\"easyops-mock-id\", mockInfo.mockId);\n }\n return {\n ...config,\n options: {\n ...config.options,\n headers,\n },\n };\n});\n\nhttp.interceptors.request.use(function (config: HttpRequestConfig) {\n if (analyzer) {\n const { userInstanceId: uid, username } = getAuth();\n const date = Date.now();\n config.meta = {\n st: date,\n time: Math.round(date / 1000),\n uid,\n username,\n };\n }\n if (!config.options?.interceptorParams?.ignoreLoadingBar) {\n window.dispatchEvent(new CustomEvent(\"request.start\"));\n }\n return config;\n});\n\nhttp.interceptors.response.use(\n function (response: HttpResponse) {\n window.dispatchEvent(new CustomEvent(\"request.end\"));\n analyzer?.analyses(response);\n return response.config.options?.observe === \"response\"\n ? response\n : response.data;\n },\n function (error: HttpError) {\n analyzer?.analyses(error);\n window.dispatchEvent(new CustomEvent(\"request.end\"));\n return Promise.reject(error.error);\n }\n);\n\nlet bootstrapStatus: \"loading\" | \"ok\" | \"failed\" = \"loading\";\nlet previewStarted = false;\nlet previewFromOrigin: string;\nlet previewOptions: PreviewStartOptions;\n\nasync function startPreview(): Promise<void> {\n // Start preview once bootstrap is ok and preview message has also been arrived.\n if (previewStarted || bootstrapStatus !== \"ok\" || !previewFromOrigin) {\n return;\n }\n previewStarted = true;\n // Make sure preview from the expected origins.\n let previewAllowed =\n previewFromOrigin === location.origin ||\n /^https?:\\/\\/localhost(?:$|:)/.test(previewFromOrigin);\n if (!previewAllowed) {\n const { allowedPreviewFromOrigins } = runtime.getMiscSettings() as {\n allowedPreviewFromOrigins?: string[];\n };\n if (Array.isArray(allowedPreviewFromOrigins)) {\n previewAllowed = allowedPreviewFromOrigins.some(\n (origin) => origin === previewFromOrigin\n );\n }\n if (!previewAllowed) {\n // eslint-disable-next-line\n console.error(\n `Preview is disallowed, from origin: ${previewFromOrigin}, while allowing: ${JSON.stringify(\n allowedPreviewFromOrigins\n )}`\n );\n }\n }\n if (previewAllowed) {\n const helperBrickName = \"next-previewer.preview-helper\";\n await developHelper.loadDynamicBricksInBrickConf({\n brick: helperBrickName,\n });\n if (customElements.get(helperBrickName)) {\n const helper = document.createElement(\n helperBrickName\n ) as unknown as PreviewHelperBrick;\n helper.start(previewFromOrigin, previewOptions);\n }\n }\n}\n\nif (window.parent) {\n const listener = async ({\n data,\n origin,\n }: MessageEvent<PreviewMessageContainerStartPreview>): Promise<void> => {\n if (\n data &&\n data.sender === \"preview-container\" &&\n data.type === \"start-preview\"\n ) {\n window.removeEventListener(\"message\", listener);\n previewFromOrigin = origin;\n previewOptions = data.options;\n startPreview();\n }\n };\n window.addEventListener(\"message\", listener);\n}\n\nasync function bootstrap(): Promise<void> {\n try {\n await runtime.bootstrap(mountPoints);\n bootstrapStatus = \"ok\";\n } catch (e) {\n bootstrapStatus = \"failed\";\n // eslint-disable-next-line no-console\n console.error(e);\n\n // `.bootstrap-error` makes loading-bar invisible.\n document.body.classList.add(\"bootstrap-error\", \"bars-hidden\");\n\n ReactDOM.render(\n <Result\n status=\"error\"\n title={i18n.t(`${NS_BRICK_CONTAINER}:${K.BOOTSTRAP_ERROR}`)}\n subTitle={httpErrorToString(e)}\n />,\n mountPoints.main\n );\n }\n\n startPreview();\n}\n\nbootstrap();\n\nexport interface PreviewHelperBrick {\n start(previewFromOrigin: string, options?: PreviewStartOptions): void;\n}\n\nexport interface PreviewMessageContainerStartPreview {\n sender: \"preview-container\";\n type: \"start-preview\";\n options?: PreviewStartOptions;\n}\n\nexport interface PreviewStartOptions {\n appId: string;\n templateId: string;\n settings?: {\n properties?: Record<string, unknown>;\n };\n}\n","module.exports = (__webpack_require__(\"XuQu\"))(\"JxWY\");","module.exports = (__webpack_require__(\"XuQu\"))(\"XDpg\");","module.exports = dll;","module.exports = (__webpack_require__(\"XuQu\"))(\"XzT5\");","module.exports = (__webpack_require__(\"XuQu\"))(\"gdfu\");","module.exports = (__webpack_require__(\"XuQu\"))(\"i8i4\");","module.exports = (__webpack_require__(\"XuQu\"))(\"q1tI\");","module.exports = (__webpack_require__(\"XuQu\"))(\"tYg3\");","module.exports = (__webpack_require__(\"XuQu\"))(\"vA6H\");","module.exports = (__webpack_require__(\"XuQu\"))(\"vuIU\");","module.exports = (__webpack_require__(\"XuQu\"))(\"wd/R\");","module.exports = (__webpack_require__(\"XuQu\"))(\"yXPU\");"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/objectSpread2.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/fontawesome-library/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/react-i18next/dist/es/index.js from dll-reference dll","webpack:///./packages/brick-container/src/antd.ts","webpack:///./node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js","webpack:///./packages/brick-container/src/i18n/constants.ts","webpack:///./packages/brick-container/src/i18n/locales/en.ts","webpack:///./packages/brick-container/src/i18n/locales/zh.ts","webpack:///./packages/brick-container/src/i18n/index.ts","webpack:///./packages/brick-container/src/index.tsx","webpack:///delegated ./node_modules/@next-core/brick-http/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/moment/locale/zh-cn.js from dll-reference dll","webpack:///external \"dll\"","webpack:///delegated ./node_modules/i18next/dist/esm/i18next.js from dll-reference dll","webpack:///delegated ./node_modules/antd/es/index.js from dll-reference dll","webpack:///delegated ./node_modules/react-dom/index.js from dll-reference dll","webpack:///delegated ./node_modules/react/index.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/brick-kit/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/@next-core/easyops-analytics/dist/index.esm.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/esm/createClass.js from dll-reference dll","webpack:///delegated ./node_modules/moment/moment.js from dll-reference dll","webpack:///delegated ./node_modules/@babel/runtime/helpers/asyncToGenerator.js from dll-reference dll"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","message","config","top","arr","each","forEach","slice","defaults","obj","arguments","source","prop","undefined","fieldContentRegExp","serializeCookie","val","options","opt","path","str","encodeURIComponent","maxAge","isNaN","Error","Math","floor","domain","test","TypeError","expires","toUTCString","httpOnly","secure","sameSite","toLowerCase","cookie","minutes","cookieOptions","length","Date","setTime","getTime","document","nameEQ","ca","split","charAt","substring","indexOf","cookie$1","lookup","found","lookupCookie","cacheUserLanguage","lng","cookieMinutes","cookieDomain","querystring","window","search","location","hash","params","pos","lookupQuerystring","hasLocalStorageSupport","localStorageAvailable","localStorage","setItem","removeItem","e","lookupLocalStorage","getItem","hasSessionStorageSupport","sessionStorageAvailable","sessionStorage","lookupSessionStorage","navigator$1","navigator","languages","push","userLanguage","language","htmlTag","documentElement","getAttribute","pathname","match","Array","lookupFromPathIndex","replace","subdomain","href","lookupFromSubdomainIndex","Browser","services","this","type","detectors","init","i18nOptions","order","caches","excludeCacheFor","lookupFromUrlIndex","addDetector","detector","detectionOrder","_this","detected","detectorName","concat","languageUtils","getBestMatchFromCodes","_this2","cacheName","K","locale","BOOTSTRAP_ERROR","i18n","on","moment","use","LanguageDetector","initReactI18next","fallbackLng","debug","process","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","en","zh","initI18n","initializeLibrary","DLL_PATH","BRICK_NEXT_VERSIONS","BRICK_NEXT_FEATURES","analyzer","root","body","runtime","createRuntime","mountPoints","menuBar","querySelector","appBar","loadingBar","main","bg","portal","STANDALONE_MICRO_APPS","api","getBasePath","apiAnalyzer","http","interceptors","request","headers","Headers","set","resolvedLanguage","mockInfo","getMockInfo","url","mockId","userInstanceId","uid","username","getAuth","date","now","meta","st","time","round","interceptorParams","ignoreLoadingBar","dispatchEvent","CustomEvent","response","analyses","observe","data","error","Promise","reject","previewFromOrigin","previewOptions","bootstrapStatus","previewStarted","startPreview","previewAllowed","origin","allowedPreviewFromOrigins","getMiscSettings","isArray","some","console","JSON","stringify","developHelper","loadDynamicBricksInBrickConf","brick","customElements","createElement","start","parent","listener","sender","removeEventListener","addEventListener","bootstrap","classList","add","ReactDOM","render","status","title","subTitle","httpErrorToString","dll"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE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J,KAE9B8E,EAAYK,MAIhB2C,S,2DAGFqB,I,qBChNA1P,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,mBCA/CG,EAAOD,QAAUoQ,K,qBCAjBnQ,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,uBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B","file":"main.e6616c8c18ab19ef8f6a.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"GR0M\");\n","module.exports = (__webpack_require__(\"XuQu\"))(\"1OyB\");","module.exports = (__webpack_require__(\"XuQu\"))(\"3tO9\");","module.exports = (__webpack_require__(\"XuQu\"))(\"9RIe\");","module.exports = (__webpack_require__(\"XuQu\"))(\"9kay\");","// antd component global configuration\nimport { message } from \"antd\";\n\nmessage.config({\n top: 40\n});\n","import _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\n\nvar arr = [];\nvar each = arr.forEach;\nvar slice = arr.slice;\nfunction defaults(obj) {\n each.call(slice.call(arguments, 1), function (source) {\n if (source) {\n for (var prop in source) {\n if (obj[prop] === undefined) obj[prop] = source[prop];\n }\n }\n });\n return obj;\n}\n\n// eslint-disable-next-line no-control-regex\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\nvar serializeCookie = function serializeCookie(name, val, options) {\n var opt = options || {};\n opt.path = opt.path || '/';\n var value = encodeURIComponent(val);\n var str = name + '=' + value;\n\n if (opt.maxAge > 0) {\n var maxAge = opt.maxAge - 0;\n if (isNaN(maxAge)) throw new Error('maxAge should be a Number');\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + opt.expires.toUTCString();\n }\n\n if (opt.httpOnly) str += '; HttpOnly';\n if (opt.secure) str += '; Secure';\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string' ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n\n case 'lax':\n str += '; SameSite=Lax';\n break;\n\n case 'strict':\n str += '; SameSite=Strict';\n break;\n\n case 'none':\n str += '; SameSite=None';\n break;\n\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n};\n\nvar cookie = {\n create: function create(name, value, minutes, domain) {\n var cookieOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {\n path: '/',\n sameSite: 'strict'\n };\n\n if (minutes) {\n cookieOptions.expires = new Date();\n cookieOptions.expires.setTime(cookieOptions.expires.getTime() + minutes * 60 * 1000);\n }\n\n if (domain) cookieOptions.domain = domain;\n document.cookie = serializeCookie(name, encodeURIComponent(value), cookieOptions);\n },\n read: function read(name) {\n var nameEQ = name + '=';\n var ca = document.cookie.split(';');\n\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n\n while (c.charAt(0) === ' ') {\n c = c.substring(1, c.length);\n }\n\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n\n return null;\n },\n remove: function remove(name) {\n this.create(name, '', -1);\n }\n};\nvar cookie$1 = {\n name: 'cookie',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupCookie && typeof document !== 'undefined') {\n var c = cookie.read(options.lookupCookie);\n if (c) found = c;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupCookie && typeof document !== 'undefined') {\n cookie.create(options.lookupCookie, lng, options.cookieMinutes, options.cookieDomain, options.cookieOptions);\n }\n }\n};\n\nvar querystring = {\n name: 'querystring',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var search = window.location.search;\n\n if (!window.location.search && window.location.hash && window.location.hash.indexOf('?') > -1) {\n search = window.location.hash.substring(window.location.hash.indexOf('?'));\n }\n\n var query = search.substring(1);\n var params = query.split('&');\n\n for (var i = 0; i < params.length; i++) {\n var pos = params[i].indexOf('=');\n\n if (pos > 0) {\n var key = params[i].substring(0, pos);\n\n if (key === options.lookupQuerystring) {\n found = params[i].substring(pos + 1);\n }\n }\n }\n }\n\n return found;\n }\n};\n\nvar hasLocalStorageSupport = null;\n\nvar localStorageAvailable = function localStorageAvailable() {\n if (hasLocalStorageSupport !== null) return hasLocalStorageSupport;\n\n try {\n hasLocalStorageSupport = window !== 'undefined' && window.localStorage !== null;\n var testKey = 'i18next.translate.boo';\n window.localStorage.setItem(testKey, 'foo');\n window.localStorage.removeItem(testKey);\n } catch (e) {\n hasLocalStorageSupport = false;\n }\n\n return hasLocalStorageSupport;\n};\n\nvar localStorage = {\n name: 'localStorage',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupLocalStorage && localStorageAvailable()) {\n var lng = window.localStorage.getItem(options.lookupLocalStorage);\n if (lng) found = lng;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupLocalStorage && localStorageAvailable()) {\n window.localStorage.setItem(options.lookupLocalStorage, lng);\n }\n }\n};\n\nvar hasSessionStorageSupport = null;\n\nvar sessionStorageAvailable = function sessionStorageAvailable() {\n if (hasSessionStorageSupport !== null) return hasSessionStorageSupport;\n\n try {\n hasSessionStorageSupport = window !== 'undefined' && window.sessionStorage !== null;\n var testKey = 'i18next.translate.boo';\n window.sessionStorage.setItem(testKey, 'foo');\n window.sessionStorage.removeItem(testKey);\n } catch (e) {\n hasSessionStorageSupport = false;\n }\n\n return hasSessionStorageSupport;\n};\n\nvar sessionStorage = {\n name: 'sessionStorage',\n lookup: function lookup(options) {\n var found;\n\n if (options.lookupSessionStorage && sessionStorageAvailable()) {\n var lng = window.sessionStorage.getItem(options.lookupSessionStorage);\n if (lng) found = lng;\n }\n\n return found;\n },\n cacheUserLanguage: function cacheUserLanguage(lng, options) {\n if (options.lookupSessionStorage && sessionStorageAvailable()) {\n window.sessionStorage.setItem(options.lookupSessionStorage, lng);\n }\n }\n};\n\nvar navigator$1 = {\n name: 'navigator',\n lookup: function lookup(options) {\n var found = [];\n\n if (typeof navigator !== 'undefined') {\n if (navigator.languages) {\n // chrome only; not an array, so can't use .push.apply instead of iterating\n for (var i = 0; i < navigator.languages.length; i++) {\n found.push(navigator.languages[i]);\n }\n }\n\n if (navigator.userLanguage) {\n found.push(navigator.userLanguage);\n }\n\n if (navigator.language) {\n found.push(navigator.language);\n }\n }\n\n return found.length > 0 ? found : undefined;\n }\n};\n\nvar htmlTag = {\n name: 'htmlTag',\n lookup: function lookup(options) {\n var found;\n var htmlTag = options.htmlTag || (typeof document !== 'undefined' ? document.documentElement : null);\n\n if (htmlTag && typeof htmlTag.getAttribute === 'function') {\n found = htmlTag.getAttribute('lang');\n }\n\n return found;\n }\n};\n\nvar path = {\n name: 'path',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var language = window.location.pathname.match(/\\/([a-zA-Z-]*)/g);\n\n if (language instanceof Array) {\n if (typeof options.lookupFromPathIndex === 'number') {\n if (typeof language[options.lookupFromPathIndex] !== 'string') {\n return undefined;\n }\n\n found = language[options.lookupFromPathIndex].replace('/', '');\n } else {\n found = language[0].replace('/', '');\n }\n }\n }\n\n return found;\n }\n};\n\nvar subdomain = {\n name: 'subdomain',\n lookup: function lookup(options) {\n var found;\n\n if (typeof window !== 'undefined') {\n var language = window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);\n\n if (language instanceof Array) {\n if (typeof options.lookupFromSubdomainIndex === 'number') {\n found = language[options.lookupFromSubdomainIndex].replace('http://', '').replace('https://', '').replace('.', '');\n } else {\n found = language[0].replace('http://', '').replace('https://', '').replace('.', '');\n }\n }\n }\n\n return found;\n }\n};\n\nfunction getDefaults() {\n return {\n order: ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'htmlTag'],\n lookupQuerystring: 'lng',\n lookupCookie: 'i18next',\n lookupLocalStorage: 'i18nextLng',\n lookupSessionStorage: 'i18nextLng',\n // cache user language\n caches: ['localStorage'],\n excludeCacheFor: ['cimode'] //cookieMinutes: 10,\n //cookieDomain: 'myDomain'\n\n };\n}\n\nvar Browser = /*#__PURE__*/function () {\n function Browser(services) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, Browser);\n\n this.type = 'languageDetector';\n this.detectors = {};\n this.init(services, options);\n }\n\n _createClass(Browser, [{\n key: \"init\",\n value: function init(services) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var i18nOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.services = services;\n this.options = defaults(options, this.options || {}, getDefaults()); // backwards compatibility\n\n if (this.options.lookupFromUrlIndex) this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex;\n this.i18nOptions = i18nOptions;\n this.addDetector(cookie$1);\n this.addDetector(querystring);\n this.addDetector(localStorage);\n this.addDetector(sessionStorage);\n this.addDetector(navigator$1);\n this.addDetector(htmlTag);\n this.addDetector(path);\n this.addDetector(subdomain);\n }\n }, {\n key: \"addDetector\",\n value: function addDetector(detector) {\n this.detectors[detector.name] = detector;\n }\n }, {\n key: \"detect\",\n value: function detect(detectionOrder) {\n var _this = this;\n\n if (!detectionOrder) detectionOrder = this.options.order;\n var detected = [];\n detectionOrder.forEach(function (detectorName) {\n if (_this.detectors[detectorName]) {\n var lookup = _this.detectors[detectorName].lookup(_this.options);\n\n if (lookup && typeof lookup === 'string') lookup = [lookup];\n if (lookup) detected = detected.concat(lookup);\n }\n });\n if (this.services.languageUtils.getBestMatchFromCodes) return detected; // new i18next v19.5.0\n\n return detected.length > 0 ? detected[0] : null; // a little backward compatibility\n }\n }, {\n key: \"cacheUserLanguage\",\n value: function cacheUserLanguage(lng, caches) {\n var _this2 = this;\n\n if (!caches) caches = this.options.caches;\n if (!caches) return;\n if (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(lng) > -1) return;\n caches.forEach(function (cacheName) {\n if (_this2.detectors[cacheName]) _this2.detectors[cacheName].cacheUserLanguage(lng, _this2.options);\n });\n }\n }]);\n\n return Browser;\n}();\n\nBrowser.type = 'languageDetector';\n\nexport { Browser as default };\n","export const NS_BRICK_CONTAINER = \"brick-container\";\n\nexport enum K {\n BOOTSTRAP_ERROR = \"BOOTSTRAP_ERROR\",\n}\n\nexport type Locale = { [key in K]: string };\n","import { Locale, K } from \"../constants\";\n\nconst locale: Locale = {\n [K.BOOTSTRAP_ERROR]: \"Bootstrap Error\",\n};\n\nexport default locale;\n","import { Locale, K } from \"../constants\";\n\nconst locale: Locale = {\n [K.BOOTSTRAP_ERROR]: \"启动错误\",\n};\n\nexport default locale;\n","import i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\nimport moment from \"moment\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nimport { initI18n } from \"@next-core/brick-kit\";\n\nimport { NS_BRICK_CONTAINER } from \"./constants\";\nimport en from \"./locales/en\";\nimport zh from \"./locales/zh\";\n\n// I18next is synchronously initialized now,\n// so we listen on language change before initialization.\ni18n.on(\"languageChanged\", function (lng) {\n moment.locale(lng);\n});\n\ni18n\n // learn more: https://github.com/i18next/i18next-xhr-backend\n // .use(Backend)\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(LanguageDetector)\n .use(initReactI18next)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\n /*global process*/\n debug: process.env.NODE_ENV === \"development\",\n supportedLngs: [\"zh\", \"en\"],\n nonExplicitSupportedLngs: true,\n interpolation: {\n escapeValue: false, // not needed for react as it escapes by default\n },\n react: {\n useSuspense: false,\n },\n compatibilityJSON: \"v3\",\n resources: {\n en: {\n [NS_BRICK_CONTAINER]: en,\n },\n zh: {\n [NS_BRICK_CONTAINER]: zh,\n },\n },\n });\n\ninitI18n();\n\nexport default i18n;\n","import \"moment\";\nimport \"moment/locale/zh-cn\";\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Result } from \"antd\";\nimport {\n createRuntime,\n getAuth,\n httpErrorToString,\n getMockInfo,\n developHelper,\n} from \"@next-core/brick-kit\";\nimport {\n http,\n HttpRequestConfig,\n HttpResponse,\n HttpError,\n} from \"@next-core/brick-http\";\nimport { initializeLibrary } from \"@next-core/fontawesome-library\";\nimport { apiAnalyzer } from \"@next-core/easyops-analytics\";\nimport \"./antd\";\nimport \"./styles/theme/index.css\";\nimport \"./styles/variables.css\";\nimport \"./styles/business-variables.css\";\nimport \"./styles/editor-bricks-variables.css\";\nimport \"./styles/antd.less\";\nimport \"./styles/antd-compatible.less\";\nimport \"./styles/default.css\";\nimport \"@next-core/brick-icons/dist/styles/index.css\";\nimport i18n from \"./i18n\";\nimport { K, NS_BRICK_CONTAINER } from \"./i18n/constants\";\n\ninitializeLibrary();\n\n// These constants bellow are defined by `webpack.DefinePlugin`.\n// eslint-disable-next-line\n// @ts-ignore\nwindow.DLL_PATH = DLL_PATH;\n// eslint-disable-next-line\n// @ts-ignore\nwindow.BRICK_NEXT_VERSIONS = BRICK_NEXT_VERSIONS;\n// eslint-disable-next-line\n// @ts-ignore\nwindow.BRICK_NEXT_FEATURES = BRICK_NEXT_FEATURES;\n\nconst root = document.body;\n\nconst runtime = createRuntime();\n\nconst mountPoints = {\n menuBar: root.querySelector<HTMLElement>(\"#menu-bar-mount-point\"),\n appBar: root.querySelector<HTMLElement>(\"#app-bar-mount-point\"),\n loadingBar: root.querySelector<HTMLElement>(\"#loading-bar-mount-point\"),\n main: root.querySelector<HTMLElement>(\"#main-mount-point\"),\n bg: root.querySelector<HTMLElement>(\"#bg-mount-point\"),\n portal: root.querySelector<HTMLElement>(\"#portal-mount-point\"),\n};\n\nlet analyzer: ReturnType<typeof apiAnalyzer.create>;\n\n// Disable API stats for standalone micro-apps.\nif (!window.STANDALONE_MICRO_APPS) {\n const api = `${runtime.getBasePath()}api/gateway/data_exchange.store.ClickHouseInsertData/api/v1/data_exchange/frontend_stat`;\n analyzer = apiAnalyzer.create({\n api,\n });\n}\n\nhttp.interceptors.request.use(function (config: HttpRequestConfig) {\n const headers = new Headers(config.options?.headers || {});\n headers.set(\"lang\", i18n.resolvedLanguage);\n const mockInfo = getMockInfo(config.url);\n if (mockInfo) {\n config.url = mockInfo.url;\n headers.set(\"easyops-mock-id\", mockInfo.mockId);\n }\n return {\n ...config,\n options: {\n ...config.options,\n headers,\n },\n };\n});\n\nhttp.interceptors.request.use(function (config: HttpRequestConfig) {\n if (analyzer) {\n const { userInstanceId: uid, username } = getAuth();\n const date = Date.now();\n config.meta = {\n st: date,\n time: Math.round(date / 1000),\n uid,\n username,\n };\n }\n if (!config.options?.interceptorParams?.ignoreLoadingBar) {\n window.dispatchEvent(new CustomEvent(\"request.start\"));\n }\n return config;\n});\n\nhttp.interceptors.response.use(\n function (response: HttpResponse) {\n window.dispatchEvent(new CustomEvent(\"request.end\"));\n analyzer?.analyses(response);\n return response.config.options?.observe === \"response\"\n ? response\n : response.data;\n },\n function (error: HttpError) {\n analyzer?.analyses(error);\n window.dispatchEvent(new CustomEvent(\"request.end\"));\n return Promise.reject(error.error);\n }\n);\n\nlet bootstrapStatus: \"loading\" | \"ok\" | \"failed\" = \"loading\";\nlet previewStarted = false;\nlet previewFromOrigin: string;\nlet previewOptions: PreviewStartOptions;\n\nasync function startPreview(): Promise<void> {\n // Start preview once bootstrap is ok and preview message has also been arrived.\n if (previewStarted || bootstrapStatus !== \"ok\" || !previewFromOrigin) {\n return;\n }\n previewStarted = true;\n // Make sure preview from the expected origins.\n let previewAllowed =\n previewFromOrigin === location.origin ||\n /^https?:\\/\\/localhost(?:$|:)/.test(previewFromOrigin);\n if (!previewAllowed) {\n const { allowedPreviewFromOrigins } = runtime.getMiscSettings() as {\n allowedPreviewFromOrigins?: string[];\n };\n if (Array.isArray(allowedPreviewFromOrigins)) {\n previewAllowed = allowedPreviewFromOrigins.some(\n (origin) => origin === previewFromOrigin\n );\n }\n if (!previewAllowed) {\n // eslint-disable-next-line\n console.error(\n `Preview is disallowed, from origin: ${previewFromOrigin}, while allowing: ${JSON.stringify(\n allowedPreviewFromOrigins\n )}`\n );\n }\n }\n if (previewAllowed) {\n const helperBrickName = \"next-previewer.preview-helper\";\n await developHelper.loadDynamicBricksInBrickConf({\n brick: helperBrickName,\n });\n if (customElements.get(helperBrickName)) {\n const helper = document.createElement(\n helperBrickName\n ) as unknown as PreviewHelperBrick;\n helper.start(previewFromOrigin, previewOptions);\n }\n }\n}\n\nif (window.parent) {\n const listener = async ({\n data,\n origin,\n }: MessageEvent<PreviewMessageContainerStartPreview>): Promise<void> => {\n if (\n data &&\n data.sender === \"preview-container\" &&\n data.type === \"start-preview\"\n ) {\n window.removeEventListener(\"message\", listener);\n previewFromOrigin = origin;\n previewOptions = data.options;\n startPreview();\n }\n };\n window.addEventListener(\"message\", listener);\n}\n\nasync function bootstrap(): Promise<void> {\n try {\n await runtime.bootstrap(mountPoints);\n bootstrapStatus = \"ok\";\n } catch (e) {\n bootstrapStatus = \"failed\";\n // eslint-disable-next-line no-console\n console.error(e);\n\n // `.bootstrap-error` makes loading-bar invisible.\n document.body.classList.add(\"bootstrap-error\", \"bars-hidden\");\n\n ReactDOM.render(\n <Result\n status=\"error\"\n title={i18n.t(`${NS_BRICK_CONTAINER}:${K.BOOTSTRAP_ERROR}`)}\n subTitle={httpErrorToString(e)}\n />,\n mountPoints.main\n );\n }\n\n startPreview();\n}\n\nbootstrap();\n\nexport interface PreviewHelperBrick {\n start(previewFromOrigin: string, options?: PreviewStartOptions): void;\n}\n\nexport interface PreviewMessageContainerStartPreview {\n sender: \"preview-container\";\n type: \"start-preview\";\n options?: PreviewStartOptions;\n}\n\nexport interface PreviewStartOptions {\n appId: string;\n templateId: string;\n settings?: {\n properties?: Record<string, unknown>;\n };\n}\n","module.exports = (__webpack_require__(\"XuQu\"))(\"JxWY\");","module.exports = (__webpack_require__(\"XuQu\"))(\"XDpg\");","module.exports = dll;","module.exports = (__webpack_require__(\"XuQu\"))(\"XzT5\");","module.exports = (__webpack_require__(\"XuQu\"))(\"gdfu\");","module.exports = (__webpack_require__(\"XuQu\"))(\"i8i4\");","module.exports = (__webpack_require__(\"XuQu\"))(\"q1tI\");","module.exports = (__webpack_require__(\"XuQu\"))(\"tYg3\");","module.exports = (__webpack_require__(\"XuQu\"))(\"vA6H\");","module.exports = (__webpack_require__(\"XuQu\"))(\"vuIU\");","module.exports = (__webpack_require__(\"XuQu\"))(\"wd/R\");","module.exports = (__webpack_require__(\"XuQu\"))(\"yXPU\");"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/brick-container",
|
|
3
|
-
"version": "2.66.
|
|
3
|
+
"version": "2.66.25",
|
|
4
4
|
"description": "Brick Container Server",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/brick-container",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
"ws": "^8.5.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@next-core/brick-dll": "^2.31.
|
|
45
|
-
"@next-core/brick-icons": "^2.26.
|
|
44
|
+
"@next-core/brick-dll": "^2.31.31",
|
|
45
|
+
"@next-core/brick-icons": "^2.26.31",
|
|
46
46
|
"@next-core/color-theme": "^0.4.3",
|
|
47
47
|
"@next-core/custom-antd-styles": "^1.24.5",
|
|
48
48
|
"@next-core/illustrations": "^0.5.17",
|
|
49
49
|
"@next-core/less-plugin-css-variables": "^0.2.4",
|
|
50
50
|
"@next-core/webpack-config-factory": "^2.16.1",
|
|
51
|
-
"@next-dll/ace": "^2.0.
|
|
51
|
+
"@next-dll/ace": "^2.0.383",
|
|
52
52
|
"@next-dll/d3": "^2.0.59",
|
|
53
53
|
"@next-dll/echarts": "^2.0.60",
|
|
54
|
-
"@next-dll/editor-bricks-helper": "^0.28.
|
|
55
|
-
"@next-dll/react-dnd": "^0.1.
|
|
54
|
+
"@next-dll/editor-bricks-helper": "^0.28.34",
|
|
55
|
+
"@next-dll/react-dnd": "^0.1.321",
|
|
56
56
|
"babel-loader": "^8.2.5",
|
|
57
57
|
"clean-webpack-plugin": "^4.0.0",
|
|
58
58
|
"copy-webpack-plugin": "^6.4.1",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"webpack-dev-server": "^4.8.1",
|
|
73
73
|
"webpack-merge": "^5.8.0"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "f0387c22850fbecf5694bcef57c7b08ed09f172e"
|
|
76
76
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var DllOfEditorBricksHelper=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"/8r5":function(e,t){e.exports=DllOfReactDnd},0:function(e,t,n){e.exports=n},"3tO9":function(e,t,n){e.exports=n("XuQu")("3tO9")},"A+yw":function(e,t,n){e.exports=n("XuQu")("A+yw")},ACCw:function(e,t,n){e.exports=n("XuQu")("ACCw")},IYwU:function(e,t,n){e.exports=n("/8r5")("IYwU")},LvDl:function(e,t,n){e.exports=n("XuQu")("LvDl")},QILm:function(e,t,n){e.exports=n("XuQu")("QILm")},WnDu:function(e,t,n){"use strict";n.r(t),n.d(t,"BuilderDataTransferType",(function(){return u})),n.d(t,"BuilderProvider",(function(){return je})),n.d(t,"DropZone",(function(){return ke})),n.d(t,"DroppingStatusContext",(function(){return Re})),n.d(t,"EditorBrickType",(function(){return c})),n.d(t,"EditorContainer",(function(){return ae})),n.d(t,"EditorElementFactory",(function(){return Me})),n.d(t,"EditorSelfLayout",(function(){return v})),n.d(t,"EditorSlotContentLayout",(function(){return f})),n.d(t,"SlotContainer",(function(){return we})),n.d(t,"getSortedIdsAfterDropped",(function(){return Ne})),n.d(t,"useActiveNodeUid",(function(){return Ve})),n.d(t,"useBuilderContextMenuStatus",(function(){return F})),n.d(t,"useBuilderData",(function(){return Q})),n.d(t,"useBuilderDataManager",(function(){return Y})),n.d(t,"useBuilderGroupedChildNodes",(function(){return he})),n.d(t,"useBuilderNode",(function(){return K})),n.d(t,"useBuilderNodeMountPoints",(function(){return He})),n.d(t,"useBuilderParentNode",(function(){return qe})),n.d(t,"useCanDrop",(function(){return me})),n.d(t,"useCanvasList",(function(){return Te})),n.d(t,"useHighlightNodes",(function(){return re})),n.d(t,"useHoverNodeUid",(function(){return oe})),n.d(t,"useOutlineEnabled",(function(){return Xe})),n.d(t,"useRouteList",(function(){return Ge})),n.d(t,"useShowRelatedNodesBasedOnEvents",(function(){return J}));var o=n("q1tI"),r=n.n(o),i=n("3tO9"),a=n.n(i),d=n("lSNA"),s=n.n(d),l=n("LvDl"),p=n("A+yw");n.d(t,"isBrickNode",(function(){return p.isBrickNode})),n.d(t,"isCustomTemplateNode",(function(){return p.isCustomTemplateNode})),n.d(t,"isRouteNode",(function(){return p.isRouteNode})),n.d(t,"isSnippetNode",(function(){return p.isSnippetNode}));var u,c,v,f,g=n("QILm"),h=n.n(g),E=n("IYwU"),m=n("yXPU"),C=n.n(m),b=n("tYg3"),N=n("ZR4k"),D=n.n(N),y=n("ACCw"),O=n.n(y),x=n("i8i4"),$=n.n(x),T=n("qJlv");!function(e){e.NODE_TO_ADD="builder/node-to-add",e.NODE_TO_MOVE="builder/node-to-move",e.SNIPPET_TO_APPLY="builder/snippet-to-apply"}(u||(u={})),function(e){e.DEFAULT="editorOfDefault",e.CONTAINER="editorOfContainer",e.TRANSPARENT_CONTAINER="editorOfTransparentContainer"}(c||(c={})),function(e){e.BLOCK="block",e.INLINE="inline",e.CONTAINER="container"}(v||(v={})),function(e){e.BLOCK="block",e.INLINE="inline",e.GRID="grid"}(f||(f={}));var S={exports:{}};
|
|
2
|
-
/*!
|
|
3
|
-
Copyright (c) 2018 Jed Watson.
|
|
4
|
-
Licensed under the MIT License (MIT), see
|
|
5
|
-
http://jedwatson.github.io/classnames
|
|
6
|
-
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],o=0;o<arguments.length;o++){var r=arguments[o];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var d in r)t.call(r,d)&&r[d]&&e.push(d);else e.push(r.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(S);var I=S.exports,k={};
|
|
7
|
-
/*! (c) Andrea Giammarchi - ISC */try{k.EventTarget=(new EventTarget).constructor}catch(e){!function(e,t){var n=e.create,o=e.defineProperty,r=i.prototype;function i(){t.set(this,n(null))}function a(e,t,n){o(e,t,{configurable:!0,writable:!0,value:n})}function d(e){var t=e.options;return t&&t.once&&e.target.removeEventListener(this.type,e.listener),"function"==typeof e.listener?e.listener.call(e.target,this):e.listener.handleEvent(this),this._stopImmediatePropagationFlag}a(r,"addEventListener",(function(e,n,o){for(var r=t.get(this),i=r[e]||(r[e]=[]),a=0,d=i.length;a<d;a++)if(i[a].listener===n)return;i.push({target:this,listener:n,options:o})})),a(r,"dispatchEvent",(function(e){var n=t.get(this)[e.type];return n&&(a(e,"target",this),a(e,"currentTarget",this),n.slice(0).some(d,e),delete e.currentTarget,delete e.target),!0})),a(r,"removeEventListener",(function(e,n){for(var o=t.get(this),r=o[e]||(o[e]=[]),i=0,a=r.length;i<a;i++)if(r[i].listener===n)return void r.splice(i,1)})),k.EventTarget=i}(Object,new WeakMap)}var A=k.EventTarget,L=0;function P(){return L+=1}function w(e){var{nodes:t,edges:n,rootId:o}=e,r=n.slice(),i=new WeakMap,d=(e,o)=>{var r=t.find(t=>t.$$uid===e),i=Object(l.sortBy)(n.filter(e=>e.parent===r.$$uid),e=>e.sort);for(var a of(o(r,i),i))d(a.child,o)},s=(e,n,o)=>{var a,d,u;if(e.$$isExpandableTemplate&&null!==(a=e.$$templateProxy)&&void 0!==a&&a.slots&&Object(p.hasOwnProperty)(e.$$templateProxy.slots,n)&&(d=e.$$templateProxy.slots[n])&&(u=e.$$templateRefToUid.get(d.ref))){var c=t.find(e=>e.$$uid===u),v=d.refSlot;if(c.$$isExpandableTemplate)s(c,v,o);else{var f,g={child:o,parent:u,mountPoint:v,sort:void 0,$$isTemplateExpanded:!0},h=Object(l.sortBy)(r.filter(e=>e.parent===u),e=>{var t;return null!==(t=i.get(e))&&void 0!==t?t:e.sort}),E=h.filter(e=>e.$$isTemplateInternal),m=null!==(f=d.refPosition)&&void 0!==f?f:-1,C=Object(l.clamp)(m<0?E.length+1+m:m,0,E.length);h.splice(C<E.length?h.findIndex(e=>e===E[C]):h.length,0,g),h.forEach((e,t)=>{i.set(e,t)}),r.push(g)}}};return d(o,(e,t)=>{if(e.$$isExpandableTemplate)for(var n of t)s(e,n.mountPoint,n.child)}),r.length>n.length?r.map(e=>{var t=i.get(e);return void 0===t?e:a()(a()({},e),{},{sort:t})}):n}function j(e,t){var{rootId:n,nodes:o,edges:r}=e,{parentUid:i,nodeUids:d}=t;return w({rootId:n,nodes:o,edges:r.filter(e=>!e.$$isTemplateExpanded).map(e=>{var t=e.parent===i?d.indexOf(e.child):-1;return t>=0?a()(a()({},e),{},{sort:t}):e})})}function _(e,t){var{rootId:n,nodes:o,edges:r,wrapperNode:i}=t,a=new Set;return function e(t,n,o){o.add(t);var r=new Set;for(var i of n)i.parent===t&&r.add(i.child);for(var a of r)e(a,n,o)}(e,r,a),{rootId:n,nodes:o.filter(e=>!a.has(e.$$uid)),edges:r.filter(e=>!a.has(e.parent)&&!a.has(e.child)),wrapperNode:(null==i?void 0:i.$$uid)===e?null:i}}function U(e,t,n,o,r){for(var i of t)if(i){if(i.target){var a=o.get(i.target);a&&(n.get(e.$$uid).downstreamNodes.add(a),n.get(a).upstreamNodes.add(e.$$uid))}else if(i.targetRef)for(var d of[].concat(i.targetRef)){var s=r.get(d);s&&(n.get(e.$$uid).downstreamNodes.add(s),n.get(s).upstreamNodes.add(e.$$uid))}if(i.callback)for(var l of Object.values(i.callback))U(e,[].concat(l),n,o,r)}}var B,Z=["parent","children","graphInfo","mountPoint"],M=/[<{]/;function R(e,t,n){var o=[];e.brick&&o.push(e.brick.replace(/\./g,"\\."));var r,i,a=Object(p.normalizeBuilderNode)(e),d=[];for(var s of["properties","events","lifeCycle"]){var u=Object(l.cloneDeep)(null==a?void 0:a[s]);if(d.push(["$$parsed".concat(Object(l.upperFirst)(s)),null!=u?u:{}]),"properties"===s){var c,v,f=void 0;"string"!=typeof(v=null==u||null===(c=u.dataset)||void 0===c?void 0:c.testid)||M.test(v)?"string"!=typeof(f=null==u?void 0:u.id)||M.test(f)||(r=f,o.push("#".concat(r))):i=v}}return Object.fromEntries(Object.entries(e).filter(e=>!Z.includes(e[0])).concat([["alias",e.alias||(Object(p.isBrickNode)(e)?e.ref||i||r||e.brick.split(".").pop():void 0)],["$$uid",t],["$$matchedSelectors",o],["$$isTemplateInternalNode",n],["$$normalized",a]]).concat(d))}function H(e,t,n){var o,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,a=[],d=[],s=(e,t,o,i,u,c)=>{var v,f,g,h,E=R(e,t,i);if(a.push(E),u&&E.ref&&u.set(E.ref,t),Object(p.isBrickNode)(E)&&(!E.brick.includes(".")&&E.brick.startsWith("tpl-")&&!o.has(E.brick)&&(h=null==n?void 0:n.get(E.brick))&&(null===(v=h.children)||void 0===v?void 0:v.length)>0||E.brick.includes(".tpl-")&&(h=null==r||null===(f=r.find(e=>e.storyId===E.brick))||void 0===f?void 0:f.originData)&&(null===(g=h.children)||void 0===g?void 0:g.length)>0)){"wrapper"===h.layoutType&&(E.layoutType="wrapper"),o.add(E.brick),E.$$isExpandableTemplate=!0,E.$$templateProxy=h.proxy&&JSON.parse(h.proxy);var m=new Map;if(E.$$templateRefToUid=m,Object(l.sortBy)(h.children,[e=>{var t;return null!==(t=e.sort)&&void 0!==t?t:-1/0}]).forEach((e,n)=>{var r=P();s(e,r,new Set(o),!0,m),d.push({child:r,parent:t,mountPoint:"",sort:n,$$isTemplateInternal:!0})}),!E.$$isTemplateInternalNode){var C=(e,t,n)=>{var o;if(null!==(o=e.$$templateProxy)&&void 0!==o&&o.slots){var r,i=Object.entries(null===(r=e.$$templateProxy)||void 0===r?void 0:r.slots).filter(e=>void 0===t||e[0]===t),d=function(t,o){var r=e.$$templateRefToUid.get(o.ref);if(r){var i=a.find(e=>e.$$uid===r);if(i.$$isExpandableTemplate)C(i,o.refSlot,t);else{i.$$delegatedSlots||(i.$$delegatedSlots=new Map);var d=i.$$delegatedSlots.get(o.refSlot);d||(d=[],i.$$delegatedSlots.set(o.refSlot,d)),d.push({templateUid:E.$$uid,templateMountPoint:n||t})}}};for(var[s,l]of i)d(s,l)}};C(E);var b=(e,t)=>{var n;if(null!==(n=e.$$templateProxy)&&void 0!==n&&n.properties){var o,r=Object.entries(null===(o=e.$$templateProxy)||void 0===o?void 0:o.properties).filter(e=>void 0===t||e[0]===t);for(var[i,d]of r)Object(p.hasOwnProperty)(e.$$parsedProperties,i)&&q(d)&&function(){var t=e.$$templateRefToUid.get(d.ref),n=e.$$parsedProperties[i];if(t){var o=a.find(e=>e.$$uid===t);o.$$parsedProperties[d.refProperty]=n,o.$$isExpandableTemplate&&b(o,d.refProperty)}}()}};b(E)}}if(Array.isArray(e.children)){var N;switch(E.type){case"bricks":case"custom-template":N="bricks";break;case"routes":N="routes"}Object(l.sortBy)(e.children,[e=>{var t;return null!==(t=e.sort)&&void 0!==t?t:-1/0}]).forEach((e,n)=>{var r,a=P();s(e,a,new Set(o),i,u),d.push({child:a,parent:t,mountPoint:null!==(r=N)&&void 0!==r?r:e.mountPoint,sort:n,$$isTemplateInternal:i,$$isTemplateDelegated:E.$$isExpandableTemplate})})}};s(e,t,new Set);for(var u=function(e){var n=a[e];if("wrapper"===n.layoutType&&i&&d.find(e=>e.child===n.$$uid).parent===t)return o||(o=n),"break"},c=0;c<a.length;c++){var v=u(c);if("break"===v)break}return{nodes:a,edges:d,wrapperNode:o}}function q(e){return!!e.ref&&!!e.refProperty}function G(e,t){return e.find(e=>e.$$uid===t).$$isExpandableTemplate}!function(e){e.NODE_ADD="builder.node.add",e.NODE_MOVE="builder.node.move",e.NODE_REORDER="builder.node.reorder",e.NODE_CLICK="builder.node.click",e.SNIPPET_APPLY="builder.snippet.apply",e.CONTEXT_MENU_CHANGE="builder.contextMenu.change",e.DATA_CHANGE="builder.data.change",e.SHARED_EDITOR_LIST_CHANGE="builder.sharedEditorList.change",e.ROUTE_LIST_CHANGE="builder.routeList.change",e.HOVER_NODE_CHANGE="builder.hoverNode.change",e.ACTIVE_NODE_CHANGE="builder.activeNode.change",e.SHOW_RELATED_NODES_BASED_ON_EVENTS="builder.showRelatedNodesBasedOnEvents.change",e.HIGHLIGHT_NODES_CHANGE="builder.highlightNodes.change",e.OUTLINE_DISABLED_NODES_CHANGE="builder.outlineDisabledNodes.change",e.DROPPING_STATUS_CHANGE="builder.droppingStatus.change"}(B||(B={}));class V{constructor(){var e;s()(this,"data",{rootId:null,nodes:[],edges:[],wrapperNode:null}),s()(this,"hoverNodeUid",void 0),s()(this,"activeNodeUid",void 0),s()(this,"sharedEditorList",void 0),s()(this,"routeList",void 0),s()(this,"storyList",void 0),s()(this,"eventTarget",new A),s()(this,"contextMenuStatus",{active:!1}),s()(this,"showRelatedNodesBasedOnEvents",void 0),s()(this,"relatedNodesBasedOnEventsMap",void 0),s()(this,"highlightNodes",new Set),s()(this,"templateSourceMap",void 0),s()(this,"droppingStatus",new Map),s()(this,"localJsonStorage",new p.JsonStorage(localStorage)),s()(this,"outlineDisabledNodes",new Set(null!==(e=this.localJsonStorage.getItem("builder-outline-disabled-nodes"))&&void 0!==e?e:[]))}getData(){return this.data}getContextMenuStatus(){return this.contextMenuStatus}getRelatedNodesBasedOnEventsMap(){return this.relatedNodesBasedOnEventsMap}sharedEditorListInit(e){this.sharedEditorList=e,this.eventTarget.dispatchEvent(new CustomEvent(B.SHARED_EDITOR_LIST_CHANGE))}getSharedEditorList(){var e;return null!==(e=this.sharedEditorList)&&void 0!==e?e:[]}onSharedEditorListChange(e){return this.eventTarget.addEventListener(B.SHARED_EDITOR_LIST_CHANGE,e),()=>{this.eventTarget.removeEventListener(B.SHARED_EDITOR_LIST_CHANGE,e)}}routeListInit(e){this.routeList=e,this.eventTarget.dispatchEvent(new CustomEvent(B.ROUTE_LIST_CHANGE))}getRouteList(){var e;return null!==(e=this.routeList)&&void 0!==e?e:[]}storyListInit(e){this.storyList=e}getStoryList(){return this.storyList}onRouteListChange(e){return this.eventTarget.addEventListener(B.ROUTE_LIST_CHANGE,e),()=>{this.eventTarget.removeEventListener(B.ROUTE_LIST_CHANGE,e)}}dataInit(e,t){this.templateSourceMap=t;var n=P(),o=a()({rootId:n},H(e,n,t,this.storyList,!0));this.data=a()(a()({},o),{},{edges:w(o)}),this.triggerDataChange()}triggerDataChange(){var{rootId:e,nodes:t}=this.data,n="custom-template"===t.find(t=>t.$$uid===e).type;this.relatedNodesBasedOnEventsMap=function(e,t){var n=new Map,o=new Map,r=new Map;for(var i of e){for(var a of(n.set(i.$$uid,{upstreamNodes:new Set,downstreamNodes:new Set}),i.$$matchedSelectors))o.get(a)||o.set(a,i.$$uid);t&&i.ref&&r.set(i.ref,i.$$uid)}for(var d of e){var s=[];Object(l.isEmpty)(d.$$parsedEvents)||(s=Object.values(d.$$parsedEvents).flat()),Object(l.isEmpty)(d.$$parsedLifeCycle)||(s=s.concat(Object.entries(d.$$parsedLifeCycle).flatMap(e=>{var[t,n]=e;switch(t){case"onBeforePageLoad":case"onPageLoad":case"onPageLeave":case"onBeforePageLeave":case"onAnchorLoad":case"onAnchorUnload":case"onMessageClose":return n;case"onMessage":return[].concat(n).flatMap(e=>[].concat(e.handlers));default:return console.warn("unknown lifeCycle: ".concat(t)),[]}}))),s.length>0&&U(d,s,n,o,r)}return n}(t,n),this.eventTarget.dispatchEvent(new CustomEvent(B.DATA_CHANGE))}runAddNodeAction(e){var{rootId:t,nodes:n,edges:o,wrapperNode:r}=this.data,{nodeUid:i,parentUid:d,nodeUids:s,nodeData:p}=e,{nodes:u,edges:c}=H(Object(l.omit)(p,["parent"]),i,this.templateSourceMap,this.getStoryList()),v={rootId:t,nodes:n.concat(u),edges:o.concat({parent:d,child:i,mountPoint:p.mountPoint,sort:void 0,$$isTemplateDelegated:G(n,d)}).concat(c),wrapperNode:r};this.data=a()(a()({},v),{},{edges:j(v,{parentUid:d,nodeUids:s})}),this.triggerDataChange()}updateBrick(e){this.data=_(e.nodeUid,this.data),this.runAddNodeAction(e)}redirectMountPoint(e){var{rootId:t,wrapperNode:n}=this.data;e.parentUid===t&&(e.nodeData.mountPoint="bricks"),n&&n.instanceId===e.nodeData.parent&&(e.nodeData.mountPoint="content")}redirectSnippetMountPoint(e){var t;null===(t=e.nodeDetails)||void 0===t||t.forEach(e=>{this.redirectMountPoint(e)})}nodeAdd(e){this.redirectMountPoint(e),this.runAddNodeAction(e),this.eventTarget.dispatchEvent(new CustomEvent(B.NODE_ADD,{detail:e}))}nodeAddStored(e){var{rootId:t,nodes:n,edges:o,wrapperNode:r}=this.data,{nodeUid:i,nodeData:d}=e;this.data={rootId:t,nodes:n.map(e=>e.$$uid===i?a()(a()({},e),{},{id:d.id,instanceId:d.instanceId}):e),edges:o,wrapperNode:r},this.triggerDataChange()}snippetApply(e){this.redirectSnippetMountPoint(e);var{rootId:t,nodes:n,edges:o,wrapperNode:r}=this.data,{nodeDetails:i,parentUid:d,nodeUids:s}=e,p=n.slice(),u=o.slice(),c=e=>{var{parentUid:t,nodeUid:n,nodeData:o,children:r}=e,{nodes:i,edges:a}=H(Object(l.omit)(o,["parent"]),n,this.templateSourceMap,this.storyList);for(var d of(p.push(...i),u.push({parent:t,child:n,mountPoint:o.mountPoint,sort:o.sort,$$isTemplateDelegated:G(p,t)},...a),r))c(d)};for(var v of i)c(v);var f={rootId:t,nodes:p,edges:u,wrapperNode:r};this.data=a()(a()({},f),{},{edges:j(f,{parentUid:d,nodeUids:s})}),this.triggerDataChange(),this.eventTarget.dispatchEvent(new CustomEvent(B.SNIPPET_APPLY,{detail:e}))}snippetApplyStored(e){var{rootId:t,nodes:n,edges:o,wrapperNode:r}=this.data,{flattenNodeDetails:i}=e;this.data={rootId:t,nodes:n.map(e=>{var t=i.find(t=>t.nodeUid===e.$$uid);return t?a()(a()({},e),{},{id:t.nodeData.id,instanceId:t.nodeData.instanceId}):e}),edges:o,wrapperNode:r},this.triggerDataChange()}nodeMove(e){var{rootId:t,nodes:n,edges:o,wrapperNode:r}=this.data;this.redirectMountPoint(e);var{nodeUid:i,parentUid:d,nodeUids:s,nodeData:l}=e,p={rootId:t,nodes:n,edges:o.filter(e=>e.child!==i).concat({parent:d,child:i,mountPoint:l.mountPoint,sort:void 0,$$isTemplateDelegated:G(n,d)}),wrapperNode:r};this.data=a()(a()({},p),{},{edges:j(p,{parentUid:d,nodeUids:s})}),this.triggerDataChange(),this.eventTarget.dispatchEvent(new CustomEvent(B.NODE_MOVE,{detail:e}))}moveNode(e,t){var{$$uid:n}=e,{parent:o,mountPoint:r}=this.data.edges.find(e=>e.child===n),{relatedEdges:i,mountPoints:a}=X(this.data.edges,o),d=i.filter(e=>e.mountPoint===r),s=d.findIndex(e=>e.child===n),p=z(d,s,t);if(p){var u=Object(l.sortBy)(i,e=>a.indexOf(e.mountPoint),e=>p.indexOf(e));this.reorder(o,u)}}moveMountPoint(e,t,n){var{$$uid:o}=e,{relatedEdges:r,mountPoints:i}=X(this.data.edges,o),a=i.indexOf(t),d=z(i,a,n);if(d){var s=Object(l.sortBy)(r,e=>d.indexOf(e.mountPoint),"sort");this.reorder(o,s)}}reorder(e,t){var{nodes:n}=this.data,o=t.map(e=>e.child);this.data=a()(a()({},this.data),{},{edges:j(this.data,{parentUid:e,nodeUids:o})}),this.triggerDataChange();var r=o.map(e=>n.find(t=>t.$$uid===e)).map(e=>e.id);this.eventTarget.dispatchEvent(new CustomEvent(B.NODE_REORDER,{detail:{nodeUids:o,parentUid:e,nodeIds:r}}))}contextUpdated(e){var{rootId:t,nodes:n,edges:o,wrapperNode:r}=this.data;this.data={rootId:t,edges:o,nodes:n.map(n=>n.$$uid===t?a()(a()({},n),{},{context:e.context}):n),wrapperNode:r},this.triggerDataChange()}nodeReorder(e){var{nodeUids:t,parentUid:n}=e;this.data=a()(a()({},this.data),{},{edges:j(this.data,{parentUid:n,nodeUids:t})}),this.triggerDataChange(),this.eventTarget.dispatchEvent(new CustomEvent(B.NODE_REORDER,{detail:e}))}nodeDelete(e){this.data=_(e.$$uid,this.data),this.triggerDataChange()}nodeClick(e){this.setActiveNodeUid(e.$$uid),this.eventTarget.dispatchEvent(new CustomEvent(B.NODE_CLICK,{detail:e}))}contextMenuChange(e){this.contextMenuStatus=e,this.eventTarget.dispatchEvent(new CustomEvent(B.CONTEXT_MENU_CHANGE))}onDataChange(e){return this.eventTarget.addEventListener(B.DATA_CHANGE,e),()=>{this.eventTarget.removeEventListener(B.DATA_CHANGE,e)}}onNodeAdd(e){return this.eventTarget.addEventListener(B.NODE_ADD,e),()=>{this.eventTarget.removeEventListener(B.NODE_ADD,e)}}onSnippetApply(e){return this.eventTarget.addEventListener(B.SNIPPET_APPLY,e),()=>{this.eventTarget.removeEventListener(B.SNIPPET_APPLY,e)}}onNodeReorder(e){return this.eventTarget.addEventListener(B.NODE_REORDER,e),()=>{this.eventTarget.removeEventListener(B.NODE_REORDER,e)}}onNodeMove(e){return this.eventTarget.addEventListener(B.NODE_MOVE,e),()=>{this.eventTarget.removeEventListener(B.NODE_MOVE,e)}}onNodeClick(e){return this.eventTarget.addEventListener(B.NODE_CLICK,e),()=>{this.eventTarget.removeEventListener(B.NODE_CLICK,e)}}onContextMenuChange(e){return this.eventTarget.addEventListener(B.CONTEXT_MENU_CHANGE,e),()=>{this.eventTarget.removeEventListener(B.CONTEXT_MENU_CHANGE,e)}}setShowRelatedNodesBasedOnEvents(e){this.showRelatedNodesBasedOnEvents=e,this.eventTarget.dispatchEvent(new CustomEvent(B.SHOW_RELATED_NODES_BASED_ON_EVENTS))}getShowRelatedNodesBasedOnEvents(){return this.showRelatedNodesBasedOnEvents}onShowRelatedNodesBasedOnEventsChange(e){return this.eventTarget.addEventListener(B.SHOW_RELATED_NODES_BASED_ON_EVENTS,e),()=>{this.eventTarget.removeEventListener(B.SHOW_RELATED_NODES_BASED_ON_EVENTS,e)}}setHoverNodeUid(e){this.hoverNodeUid!==e&&(this.hoverNodeUid=e,this.eventTarget.dispatchEvent(new CustomEvent(B.HOVER_NODE_CHANGE)))}getHoverNodeUid(){return this.hoverNodeUid}onHoverNodeChange(e){return this.eventTarget.addEventListener(B.HOVER_NODE_CHANGE,e),()=>{this.eventTarget.removeEventListener(B.HOVER_NODE_CHANGE,e)}}setActiveNodeUid(e){this.activeNodeUid!==e&&(this.activeNodeUid=e,this.eventTarget.dispatchEvent(new CustomEvent(B.ACTIVE_NODE_CHANGE)))}getActiveNodeUid(){return this.activeNodeUid}onActiveNodeChange(e){return this.eventTarget.addEventListener(B.ACTIVE_NODE_CHANGE,e),()=>{this.eventTarget.removeEventListener(B.ACTIVE_NODE_CHANGE,e)}}toggleOutline(e){this.outlineDisabledNodes.has(e)?this.outlineDisabledNodes.delete(e):this.outlineDisabledNodes.add(e),this.localJsonStorage.setItem("builder-outline-disabled-nodes",Array.from(this.outlineDisabledNodes)),this.eventTarget.dispatchEvent(new CustomEvent(B.OUTLINE_DISABLED_NODES_CHANGE))}isOutlineEnabled(e){return!this.outlineDisabledNodes.has(e)}onOutlineEnabledNodesChange(e){return this.eventTarget.addEventListener(B.OUTLINE_DISABLED_NODES_CHANGE,e),()=>{this.eventTarget.removeEventListener(B.OUTLINE_DISABLED_NODES_CHANGE,e)}}setHighlightNodes(e){this.highlightNodes=e,this.eventTarget.dispatchEvent(new CustomEvent(B.HIGHLIGHT_NODES_CHANGE))}getHighlightNodes(){return this.highlightNodes}onHighlightNodesChange(e){return this.eventTarget.addEventListener(B.HIGHLIGHT_NODES_CHANGE,e),()=>{this.eventTarget.removeEventListener(B.HIGHLIGHT_NODES_CHANGE,e)}}updateDroppingStatus(e,t,n){var o=this.droppingStatus.get(e);this.droppingStatus=new Map(Array.from(this.droppingStatus.entries()).concat([[e,new Map((o?Array.from(o):[]).concat([[t,n]]))]])),this.eventTarget.dispatchEvent(new CustomEvent(B.DROPPING_STATUS_CHANGE)),this.hoverNodeUid&&Array.from(this.droppingStatus.values()).flatMap(e=>Array.from(e.values())).some(Boolean)&&this.setHoverNodeUid(void 0)}getDroppingStatus(){return this.droppingStatus}onDroppingStatusChange(e){return this.eventTarget.addEventListener(B.DROPPING_STATUS_CHANGE,e),()=>{this.eventTarget.removeEventListener(B.DROPPING_STATUS_CHANGE,e)}}}function X(e,t){var n=Object(l.sortBy)(e.filter(e=>e.parent===t&&!e.$$isTemplateExpanded),"sort"),o=new Set;for(var r of n)o.add(r.mountPoint);return{relatedEdges:n,mountPoints:Array.from(o)}}function z(e,t,n){var o;if("up"===n){if(t<=0)return;o=t-1}else{if(-1===t||t>=e.length-1)return;o=t}return[...e.slice(0,o),e[o+1],e[o],...e.slice(o+2)]}var W=r.a.createContext({});function Y(){var{manager:e}=r.a.useContext(W);if(!e)throw new Error("Expected builder data context");return e}function Q(){var e=Y(),[t,n]=Object(o.useState)(e.getData());return Object(o.useEffect)(()=>e.onDataChange(()=>{n(e.getData())}),[e]),t}function K(e){var{nodeUid:t,isRoot:n,isWrapper:r}=e,{rootId:i,nodes:a,wrapperNode:d}=Q(),s=n?i:t;return Object(o.useMemo)(()=>r?d:a.find(e=>e.$$uid===s),[a,s,r,d])}function F(){var e=Y(),[t,n]=Object(o.useState)(e.getContextMenuStatus());return Object(o.useEffect)(()=>e.onContextMenuChange(()=>{n(e.getContextMenuStatus())}),[e]),t}function J(){var e=Y(),[t,n]=Object(o.useState)(e.getShowRelatedNodesBasedOnEvents());return Object(o.useEffect)(()=>e.onShowRelatedNodesBasedOnEventsChange(()=>{n(e.getShowRelatedNodesBasedOnEvents())}),[e]),t}function ee(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}var te={editorContainer:"EditorContainer--editorContainer--1j8iqnx",nodeAlias:"EditorContainer--nodeAlias--1j8iqnx",highlight:"EditorContainer--highlight--1j8iqnx",hover:"EditorContainer--hover--1j8iqnx",active:"EditorContainer--active--1j8iqnx",dropping:"EditorContainer--dropping--1j8iqnx",editorBody:"EditorContainer--editorBody--1j8iqnx",transparentContainer:"EditorContainer--transparentContainer--1j8iqnx",isUpstreamNode:"EditorContainer--isUpstreamNode--1j8iqnx",isDownstreamNode:"EditorContainer--isDownstreamNode--1j8iqnx",arrow:"EditorContainer--arrow--1j8iqnx"};function ne(e,t){for(var n=e;n;){if(n===t)return!0;if(n.classList.contains(te.editorContainer)&&!n.classList.contains(te.isTemplateInternalNode))return!1;n=n.parentElement}return!1}function oe(){var e=Y(),[t,n]=Object(o.useState)(e.getHoverNodeUid());return Object(o.useEffect)(()=>e.onHoverNodeChange(()=>{n(e.getHoverNodeUid())}),[e]),t}function re(){var e=Y(),[t,n]=Object(o.useState)(e.getHighlightNodes());return Object(o.useEffect)(()=>e.onHighlightNodesChange(()=>{n(e.getHighlightNodes())}),[e]),t}function ie(){var e=Y(),[t,n]=Object(o.useState)(e.getDroppingStatus());return Object(o.useEffect)(()=>e.onDroppingStatusChange(()=>{n(e.getDroppingStatus())}),[e]),t}function ae(e){var t,n,{nodeUid:i,type:a,isTransparentContainer:d,editorContainerStyle:s,editorBodyStyle:l,children:p}=e,u=Object(o.useRef)(),v=re(),f=K({nodeUid:i}),[g,h]=Object(o.useState)(!1),[E,m]=Object(o.useState)(!1),C=F(),b=oe(),N=J(),D=Y(),[y,O]=Object(o.useState)(b===i),x=null!=a?a:c.DEFAULT,$=Object(o.useRef)(b),T=ie();Object(o.useEffect)(()=>{$.current=b},[b]);var S=Object(o.useCallback)(e=>{e.stopPropagation(),O(!0),$.current!==i&&D.setHoverNodeUid(i)},[i,D]),k=Object(o.useCallback)(e=>{e.stopPropagation(),O(!1),$.current===i&&D.setHoverNodeUid(void 0)},[i,D]);Object(o.useEffect)(()=>{if(!f.$$isTemplateInternalNode){var e=u.current;return e.addEventListener("mouseover",S),e.addEventListener("mouseout",k),()=>{e.removeEventListener("mouseover",S),e.removeEventListener("mouseout",k)}}},[S,k,f]),Object(o.useEffect)(()=>{if(!f.$$isTemplateInternalNode&&(O(b===i),N)){var e,t,n=D.getRelatedNodesBasedOnEventsMap(),o=null===(e=n.get(b))||void 0===e?void 0:e.upstreamNodes.has(i);h(o);var r=null===(t=n.get(b))||void 0===t?void 0:t.downstreamNodes.has(i);m(r)}},[b,f,i,N,D]);var A=Object(o.useCallback)(e=>!f.$$isTemplateInternalNode&&ne(e.target,u.current),[f]),L=Object(o.useCallback)(e=>{A(e)&&D.nodeClick(f)},[A,D,f]),P=Object(o.useCallback)(e=>{A(e)&&(e.preventDefault(),D.contextMenuChange({active:!0,node:f,x:e.clientX,y:e.clientY}))},[A,D,f]);return r.a.createElement("div",{className:I(te.editorContainer,te[x],{[te.transparentContainer]:d,[te.dropping]:Array.from(null!==(t=null===(n=T.get(i))||void 0===n?void 0:n.values())&&void 0!==t?t:[]).some(Boolean),[te.hover]:y,[te.active]:C.active&&C.node.$$uid===i,[te.isDownstreamNode]:!y&&E,[te.isUpstreamNode]:!y&&g,[te.highlight]:v.has(i),[te.isTemplateInternalNode]:f.$$isTemplateInternalNode}),style:s,ref:u,onClick:L,onContextMenu:P},r.a.createElement("div",{className:te.nodeAlias},!y&&(E?r.a.createElement("span",{className:te.arrow},"↓"):g?r.a.createElement("span",{className:te.arrow},"↑"):null),f.alias||f.brick),r.a.createElement("div",{className:te.editorBody,style:l},p))}ee(".EditorContainer--editorContainer--1j8iqnx {\n position: relative;\n}\n\n.EditorContainer--nodeAlias--1j8iqnx {\n position: absolute;\n top: -25px;\n height: calc(25px + var(--editor-brick-border-radius));\n background-color: #d6d6d6;\n border: 1px solid var(--editor-brick-stroke-color);\n padding: 0 5px;\n border-radius: 2px;\n color: #737373;\n white-space: nowrap;\n visibility: hidden;\n pointer-events: none;\n}\n\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--highlight--1j8iqnx > .EditorContainer--nodeAlias--1j8iqnx,\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--hover--1j8iqnx > .EditorContainer--nodeAlias--1j8iqnx,\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--active--1j8iqnx > .EditorContainer--nodeAlias--1j8iqnx,\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--dropping--1j8iqnx > .EditorContainer--nodeAlias--1j8iqnx {\n visibility: visible;\n}\n\n.EditorContainer--editorBody--1j8iqnx {\n position: relative;\n border-radius: var(--editor-brick-border-radius);\n background: #fff;\n}\n\n.EditorContainer--transparentContainer--1j8iqnx > .EditorContainer--editorBody--1j8iqnx {\n margin: -1px;\n}\n\n.EditorContainer--transparentContainer--1j8iqnx > .EditorContainer--nodeAlias--1j8iqnx {\n left: -1px;\n}\n\n.EditorContainer--nodeAlias--1j8iqnx,\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--hover--1j8iqnx > .EditorContainer--editorBody--1j8iqnx,\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--active--1j8iqnx > .EditorContainer--editorBody--1j8iqnx,\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--dropping--1j8iqnx > .EditorContainer--editorBody--1j8iqnx {\n box-shadow: 0 0 0 1px var(--editor-brick-stroke-color-active);\n}\n\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--isUpstreamNode--1j8iqnx > .EditorContainer--nodeAlias--1j8iqnx,\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--isDownstreamNode--1j8iqnx > .EditorContainer--nodeAlias--1j8iqnx {\n visibility: visible;\n background-color: #f7f7f7;\n}\n\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--isDownstreamNode--1j8iqnx > .EditorContainer--editorBody--1j8iqnx,\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--isDownstreamNode--1j8iqnx > .EditorContainer--nodeAlias--1j8iqnx {\n box-shadow: 0 0 0 1px rgba(22, 224, 57, 0.3);\n}\n\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--isUpstreamNode--1j8iqnx > .EditorContainer--editorBody--1j8iqnx,\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--isUpstreamNode--1j8iqnx > .EditorContainer--nodeAlias--1j8iqnx {\n box-shadow: 0 0 0 1px rgba(224, 88, 22, 0.3);\n}\n\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--highlight--1j8iqnx > .EditorContainer--editorBody--1j8iqnx,\n.EditorContainer--editorContainer--1j8iqnx.EditorContainer--highlight--1j8iqnx > .EditorContainer--nodeAlias--1j8iqnx {\n box-shadow: 0 0 0 1px var(--theme-orange-color);\n}\n\n.EditorContainer--arrow--1j8iqnx {\n font-size: 10px;\n padding: 0 4px;\n position: relative;\n bottom: 1px;\n}\n");function de(){return(de=C()((function*(e,t){var n=[];if(Object(p.isRouteNode)(e))n.push("basic-bricks.any-route--editor");else{if(!Object(p.isBrickNode)(e))throw new Error("Unsupported node type: ".concat(e.type));if(e.brick.includes("-")){var o,r=null===(o=e.brick.split(".")[1])||void 0===o?void 0:o.startsWith("tpl-");n.push("".concat(e.brick,"--editor")),r&&n.push("editors-of-".concat(e.brick,"--editor"))}t&&n.push(t),n.push("basic-bricks.any-brick--editor")}for(var i of n){try{yield b.developHelper.loadEditorBricks([i])}catch(e){throw new Error('Load editor brick "'.concat(i,'" failed'))}if(customElements.get(i))return i}throw new Error('Editor brick "'.concat(n.join(", "),'" not found'))}))).apply(this,arguments)}var se="EditorBrickAsComponent--slotContentLayoutBlock--1aed4lu",le="EditorBrickAsComponent--selfLayoutBlock--1aed4lu",pe="EditorBrickAsComponent--selfLayoutContainer--1aed4lu",ue="EditorBrickAsComponent--slotContentLayoutInline--1aed4lu",ce="EditorBrickAsComponent--selfLayoutInline--1aed4lu",ve="EditorBrickAsComponent--dragging--1aed4lu",fe="EditorBrickAsComponent--baseView--1aed4lu";function ge(e){var t,{node:n,slotContentLayout:i}=e,[a,d]=r.a.useState(!1),[s,l]=r.a.useState(),[c,g]=r.a.useState(),{edges:h}=Q(),m=(t=Y(),Object(o.useMemo)(()=>t.getStoryList(),[t])),N=r.a.useMemo(()=>h.some(e=>e.parent===n.$$uid),[n,h]),D=Object(o.useMemo)(()=>Object(b.getRuntime)().getFeatureFlags()["next-builder-installed-bricks"],[]),y=Object(o.useMemo)(()=>D?null:function(e,t){var n=null==t?void 0:t.find(t=>t.storyId===e.brick);return null==n?void 0:n.doc}(n,m),[D,n,m]),O=function(){var e=Y(),t=Object(o.useCallback)(()=>new Map(e.getSharedEditorList().map(e=>[e.id,e])),[e]),[n,r]=Object(o.useState)(t());return Object(o.useEffect)(()=>e.onSharedEditorListChange(()=>{r(t())}),[t,e]),n}(),x=Object(o.useMemo)(()=>D&&Object(p.isBrickNode)(n)?O.get(n.brick):null,[O,D,n]);r.a.useEffect(()=>{C()((function*(){var e,t;d(!1);try{e=yield function(e,t){return de.apply(this,arguments)}(n,D?null==x?void 0:x.editor:null==y?void 0:y.editor)}catch(e){console.error(e),t=e.message}l(e),g(t),d(!0)}))()},[y,x,D,n]);var $=r.a.useMemo(()=>({brick:s,properties:{nodeUid:n.$$uid,editorProps:D?null==x?void 0:x.editorProps:null==y?void 0:y.editorProps}}),[y,s,x,D,n.$$uid]),T=r.a.useMemo(()=>{var e,t;a&&s&&(t=customElements.get(s).selfLayout);return null!==(e=t)&&void 0!==e?e:N?v.CONTAINER:v.INLINE},[a,s,N]),[{isDragging:S},k]=Object(E.useDrag)({item:{type:u.NODE_TO_MOVE,nodeUid:n.$$uid,nodeInstanceId:n.instanceId,nodeId:n.id},options:{dropEffect:"move"},collect:e=>({isDragging:e.isDragging()})});return a?s?r.a.createElement("div",{className:I({[se]:i===f.BLOCK,[ue]:i===f.INLINE,[ce]:T===v.INLINE,[le]:T===v.BLOCK,[pe]:T===v.CONTAINER,[ve]:S,__isTemplateInternalNode:n.$$isTemplateInternalNode})},r.a.createElement("div",{ref:n.$$isTemplateInternalNode?void 0:k,draggable:!n.$$isTemplateInternalNode,className:I({[fe]:"basic-bricks.micro-view"===n.brick||"basic-bricks.micro-app"===n.brick||"basic-bricks.easy-view"===n.brick||"frame-bricks.side-bar"===n.brick})},r.a.createElement(b.BrickAsComponent,{useBrick:$}))):r.a.createElement("span",null,c):r.a.createElement("span",null,"Loading...")}function he(e){var{nodeUid:t,isRoot:n,doNotExpandTemplates:r,isWrapper:i}=e,{rootId:a,nodes:d,edges:s,wrapperNode:l}=Q();return Object(o.useMemo)(()=>Ee({nodes:d,edges:s,nodeUid:n?i?l.$$uid:a:t,doNotExpandTemplates:r,isWrapper:i}),[r,s,n,t,d,a,i,l])}function Ee(e){var{nodeUid:t,nodes:n,edges:o,doNotExpandTemplates:r,isWrapper:i}=e,a=new Map,d=Object(l.sortBy)(o.filter(e=>e.parent===t&&(r?!e.$$isTemplateInternal:!e.$$isTemplateDelegated)),[e=>e.sort]),s=function(e){var t=n.find(t=>t.$$uid===e.child);a.has(e.mountPoint)?a.get(e.mountPoint).push(t):a.set(e.mountPoint,[t])};for(var p of d)s(p);return Array.from(a.entries()).map(e=>{var[t,n]=e;return{mountPoint:i?"bricks":t,childNodes:n}})}function me(){var{edges:e}=Q();return Object(o.useCallback)((t,n)=>{var o=t=>t!==n&&!e.some(e=>e.parent===t&&!o(e.child));return o(t)},[e])}ee(".EditorBrickAsComponent--slotContentLayoutBlock--1aed4lu.EditorBrickAsComponent--selfLayoutBlock--1aed4lu,\n.EditorBrickAsComponent--slotContentLayoutBlock--1aed4lu.EditorBrickAsComponent--selfLayoutContainer--1aed4lu {\n grid-column: 1 / -1;\n}\n\n.EditorBrickAsComponent--slotContentLayoutInline--1aed4lu {\n margin: 0 var(--editor-brick-gap-half);\n}\n\n.EditorBrickAsComponent--slotContentLayoutInline--1aed4lu.EditorBrickAsComponent--selfLayoutInline--1aed4lu,\n.EditorBrickAsComponent--slotContentLayoutInline--1aed4lu.EditorBrickAsComponent--selfLayoutBlock--1aed4lu {\n width: 150px;\n}\n\n.EditorBrickAsComponent--slotContentLayoutInline--1aed4lu.EditorBrickAsComponent--selfLayoutContainer--1aed4lu {\n width: 100%;\n}\n\n.EditorBrickAsComponent--dragging--1aed4lu {\n opacity: 0.3;\n}\n\n.EditorBrickAsComponent--baseView--1aed4lu {\n height: 100%;\n min-height: 100%;\n}\n");function Ce(e,t,n,o){var r=function(e,t){var n=e.getBoundingClientRect(),o=[],r=Array.from(t.children).filter(e=>!e.classList.contains("__isTemplateInternalNode"));if(r.length>0){var i={cells:[]},d=[i];r.forEach((e,t)=>{var n,o,r=e.getBoundingClientRect(),a={index:t,top:r.top,bottom:r.bottom,left:r.left,right:r.right},s=i.cells.length>0&&i.cells[i.cells.length-1];!s||be(r.left,s.right)>0&&be(r.top,s.bottom)<0?(i.cells.push(a),i.top=Math.min(null!==(n=i.top)&&void 0!==n?n:1/0,r.top),i.bottom=Math.max(null!==(o=i.bottom)&&void 0!==o?o:-1/0,r.bottom)):(i={cells:[a],top:r.top,bottom:r.bottom},d.push(i))});var s=n.top,l=n.top;d.forEach((e,t)=>{if(1===e.cells.length){var r=e.cells[0],i=(r.top+r.bottom)/2;if(o.push({rect:{top:s,bottom:i,left:n.left,right:n.right},cursor:{index:r.index,y:(l+r.top)/2-n.top}}),s=i,l=r.bottom,t===d.length-1)o.push({rect:{top:s,bottom:n.bottom,left:n.left,right:n.right},cursor:{index:r.index+1,y:Math.min(r.bottom+6,(r.bottom+n.bottom)/2)-n.top}});else if(d[t+1].cells.length>1){var p=d[t+1],u=(r.bottom+p.top)/2;o.push({rect:{top:s,bottom:u,left:n.left,right:n.right},cursor:{index:r.index+1,y:u-n.top}}),s=u}}else{var c=n.left,v=n.left,f=t<d.length-1?(d[t+1].top+e.bottom)/2:n.bottom,g={isVertical:!0,y:e.top-n.top,height:e.bottom-e.top};e.cells.forEach((r,i)=>{var l=(r.left+r.right)/2;o.push({rect:{top:s,bottom:f,left:c,right:l},cursor:a()(a()({},g),{},{index:r.index,x:(v+r.left)/2-n.left})}),c=l,v=r.right,i===e.cells.length-1&&(t===d.length-1?o.push({rect:{top:s,bottom:n.bottom,left:c,right:n.right},cursor:a()(a()({},g),{},{index:r.index+1,x:Math.min(v+6,n.right)-n.left})}):o.push({rect:{top:s,bottom:f,left:c,right:n.right},cursor:a()(a()({},g),{},{index:r.index+1,x:Math.min(v+6,n.right)-n.left})}))}),s=f,l=e.bottom}})}return o}(n,o);for(var{rect:i,cursor:d}of r)if(e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom)return d;return{index:0,y:5}}function be(e,t){var n=e-t;return Math.abs(n)<1?0:n}function Ne(e){var{draggingNodeUid:t,draggingNodeId:n,draggingIndex:o,droppingMountPoint:r,droppingSiblingGroups:i,droppingIndex:a}=e,d=Array.isArray(t)?t:[t],s=i.flatMap(e=>e.childNodes),l=i.flatMap(e=>{var t=e.childNodes.map(e=>e.$$uid).filter(e=>!d.includes(e));return e.mountPoint===r&&t.splice((null!=o?o:-1)>=0&&a>o?a-1:a,0,...d),t}),p=l.map(e=>d.includes(e)?n:s.find(t=>t.$$uid===e).id);return{nodeUids:l,nodeIds:p}}var De=["properties","events","lifeCycle","params","if","transform"],ye=["permissionsPreCheck","transformFrom"],Oe=["brick","template","portal","slots","id","children","instanceId"];function xe(e,t){return Object.fromEntries(Object.entries(e).map(e=>{var[t,n]=e;return void 0===n||Oe.includes(t)?void 0:De.includes(t)?[t,JSON.stringify(n)]:ye.includes(t)?[t,D.a.safeDump(n)]:[t,n]}).filter(Boolean).concat(Object.entries(t.nodeData),[["brick","template"===t.nodeData.type?e.template:e.brick],["portal",t.isPortalCanvas||e.portal]]))}function $e(e){var{manager:t,type:n,data:o,droppingIndex:r,droppingParentUid:i,droppingParentInstanceId:d,droppingMountPoint:s,droppingChildNodes:l,droppingSiblingGroups:p,isPortalCanvas:c}=e;if(n===u.NODE_TO_ADD){var{brickType:v="brick",brick:f}=o,g=P();t.nodeAdd(a()(a()({},Ne({draggingNodeUid:g,draggingNodeId:null,droppingIndex:r,droppingMountPoint:s,droppingSiblingGroups:p})),{},{nodeUid:g,parentUid:i,nodeData:{parent:d,type:v,brick:f,mountPoint:s,bg:!c&&"provider"===v||void 0,portal:c}}))}else if(n===u.SNIPPET_TO_APPLY){var{bricks:h}=o,E=[...new Array(h.length)].map(()=>P());t.snippetApply(a()(a()({},Ne({draggingNodeUid:E,draggingNodeId:null,droppingIndex:r,droppingMountPoint:s,droppingSiblingGroups:p})),{},{parentUid:i,nodeDetails:h.map((e,t)=>function e(t){var{parent:n,parentUid:o,mountPoint:r,nodeUid:i,brickConf:a,isPortalCanvas:d,sort:s}=t,l=a.template?"template":a.bg?"provider":"brick";return{nodeUid:i,parentUid:o,nodeData:xe(a,{isPortalCanvas:d,nodeData:{type:l,parent:n,mountPoint:r,sort:s}}),children:a.slots?Object.entries(a.slots).flatMap(e=>{var[t,n]=e;return n.bricks.map(e=>({childBrickConf:e,mountPoint:t}))}).map((t,n)=>{var{childBrickConf:o,mountPoint:r}=t;return e({parentUid:i,mountPoint:r,nodeUid:P(),brickConf:o,sort:n})}):[]}}({parent:d,parentUid:i,mountPoint:s,nodeUid:E[t],brickConf:e,isPortalCanvas:c}))}))}else if(n===u.NODE_TO_MOVE){var{nodeUid:m,nodeId:C,nodeInstanceId:b}=o,N=l.findIndex(e=>e.$$uid===m);N>=0?r!==N&&r!==N+1&&t.nodeReorder(a()(a()({},Ne({draggingNodeUid:m,draggingNodeId:C,draggingIndex:N,droppingIndex:r,droppingMountPoint:s,droppingSiblingGroups:p})),{},{parentUid:i})):t.nodeMove(a()(a()({},Ne({draggingNodeUid:m,draggingNodeId:C,droppingIndex:r,droppingMountPoint:s,droppingSiblingGroups:p})),{},{nodeUid:m,parentUid:i,nodeInstanceId:b,nodeData:{parent:d,mountPoint:s}}))}}function Te(e){return Object(o.useMemo)(()=>{var t=[],n=[];for(var o of e)o.portal?n.push([o]):t.push(o);return[t,...n,[]]},[e])}var Se={dropZone:"DropZone--dropZone--189f8p9",isSlot:"DropZone--isSlot--189f8p9",dropping:"DropZone--dropping--189f8p9",showOutlineIfEmpty:"DropZone--showOutlineIfEmpty--189f8p9",isRoot:"DropZone--isRoot--189f8p9",dropZoneBody:"DropZone--dropZoneBody--189f8p9",active:"DropZone--active--189f8p9",isPortalCanvas:"DropZone--isPortalCanvas--189f8p9",fullscreen:"DropZone--fullscreen--189f8p9",hasTabs:"DropZone--hasTabs--189f8p9",slotContentLayoutBlock:"DropZone--slotContentLayoutBlock--189f8p9",slotContentLayoutInline:"DropZone--slotContentLayoutInline--189f8p9",slotContentLayoutGrid:"DropZone--slotContentLayoutGrid--189f8p9","mode-dialog":"DropZone--mode-dialog--189f8p9","mode-large":"DropZone--mode-large--189f8p9","mode-small":"DropZone--mode-small--189f8p9","mode-drawer":"DropZone--mode-drawer--189f8p9",dropCursor:"DropZone--dropCursor--189f8p9",dropCursorHorizontal:"DropZone--dropCursorHorizontal--189f8p9",dropCursorVertical:"DropZone--dropCursorVertical--189f8p9"};ee('.DropZone--dropZone--189f8p9 {\n position: relative;\n min-height: calc(var(--editor-brick-base-height) + 2px);\n border-radius: var(--editor-brick-border-radius);\n\n --drop-zone-padding: 20px;\n}\n\n.DropZone--isSlot--189f8p9 {\n border: 1px dashed transparent;\n}\n\n.DropZone--isSlot--189f8p9.DropZone--dropping--189f8p9 {\n background: var(--editor-brick-slot-bg);\n border-color: var(--editor-brick-slot-stroke-color);\n}\n\n.DropZone--showOutlineIfEmpty--189f8p9:not(.DropZone--dropping--189f8p9) {\n background: var(--editor-brick-skeleton-bg-light);\n}\n\n.DropZone--isRoot--189f8p9 > .DropZone--dropZoneBody--189f8p9 {\n padding: calc(var(--drop-zone-padding) + 7px) var(--drop-zone-padding)\n var(--drop-zone-padding);\n}\n\n.DropZone--isRoot--189f8p9.DropZone--active--189f8p9,\n.DropZone--isRoot--189f8p9.DropZone--dropping--189f8p9 {\n box-shadow: 0 0 0 1px var(--editor-brick-stroke-color-active);\n}\n\n.DropZone--isPortalCanvas--189f8p9,\n.DropZone--isRoot--189f8p9:not(.DropZone--isPortalCanvas--189f8p9) > .DropZone--dropZoneBody--189f8p9 {\n height: calc(\n 100vh - 148px - var(--editor-brick-toolbar-height) - var(--page-card-gap)\n );\n overflow-y: auto;\n}\n\n.DropZone--fullscreen--189f8p9.DropZone--isPortalCanvas--189f8p9,\n.DropZone--fullscreen--189f8p9:not(.DropZone--isPortalCanvas--189f8p9) > .DropZone--dropZoneBody--189f8p9 {\n height: calc(\n 100vh - var(--editor-brick-overlay-padding) * 2 - var(--page-card-gap) * 2 -\n var(--editor-brick-toolbar-height)\n );\n}\n\n.DropZone--hasTabs--189f8p9.DropZone--isPortalCanvas--189f8p9,\n.DropZone--hasTabs--189f8p9.DropZone--isRoot--189f8p9:not(.DropZone--isPortalCanvas--189f8p9) > .DropZone--dropZoneBody--189f8p9 {\n height: calc(\n 100vh - 158px - var(--editor-brick-toolbar-height) - var(--page-card-gap)\n );\n overflow-y: auto;\n}\n\n.DropZone--hasTabs--189f8p9.DropZone--fullscreen--189f8p9.DropZone--isPortalCanvas--189f8p9,\n.DropZone--hasTabs--189f8p9.DropZone--fullscreen--189f8p9:not(.DropZone--isPortalCanvas--189f8p9) > .DropZone--dropZoneBody--189f8p9 {\n height: calc(\n 100vh - var(--editor-brick-overlay-padding) * 2 - var(--page-card-gap) * 2 -\n 10px - var(--editor-brick-toolbar-height)\n );\n}\n\n.DropZone--slotContentLayoutBlock--189f8p9 > .DropZone--dropZoneBody--189f8p9 {\n display: grid;\n grid-gap: var(--editor-brick-gap);\n grid-template-columns: repeat(\n auto-fill,\n minmax(var(--editor-brick-inline-width), 1fr)\n );\n}\n\n.DropZone--slotContentLayoutInline--189f8p9 > .DropZone--dropZoneBody--189f8p9 {\n display: flex;\n flex-wrap: wrap;\n margin: 0 calc(var(--editor-brick-gap-half) * -1);\n}\n\n.DropZone--slotContentLayoutGrid--189f8p9 > .DropZone--dropZoneBody--189f8p9 {\n display: grid;\n grid-gap: var(--editor-brick-gap);\n grid-template-columns: repeat(\n auto-fill,\n minmax(var(--editor-brick-grid-width), 1fr)\n );\n height: 100%;\n}\n\n.DropZone--mode-dialog--189f8p9 > .DropZone--dropZoneBody--189f8p9 {\n margin: 0 auto;\n max-width: calc(600px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--mode-dialog--189f8p9.DropZone--mode-large--189f8p9 > .DropZone--dropZoneBody--189f8p9 {\n max-width: calc(800px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--mode-dialog--189f8p9.DropZone--mode-small--189f8p9 > .DropZone--dropZoneBody--189f8p9 {\n max-width: calc(400px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--mode-drawer--189f8p9 > .DropZone--dropZoneBody--189f8p9 {\n margin: 0 auto;\n max-width: calc(900px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--mode-drawer--189f8p9.DropZone--mode-large--189f8p9 > .DropZone--dropZoneBody--189f8p9 {\n max-width: calc(1200px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--mode-drawer--189f8p9.DropZone--mode-small--189f8p9 > .DropZone--dropZoneBody--189f8p9 {\n max-width: calc(600px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--dropCursor--189f8p9 {\n position: absolute;\n background: #bb79bb;\n display: none;\n pointer-events: none;\n}\n\n.DropZone--dropping--189f8p9 > .DropZone--dropCursor--189f8p9 {\n display: block;\n}\n\n.DropZone--dropCursorHorizontal--189f8p9 {\n height: 2px;\n left: 10px;\n right: 10px;\n margin-top: -1px;\n}\n\n.DropZone--dropCursorVertical--189f8p9 {\n width: 2px;\n margin-left: -1px;\n}\n\n.DropZone--dropCursor--189f8p9::before,\n.DropZone--dropCursor--189f8p9::after {\n position: absolute;\n content: "";\n background: #bb79bb;\n}\n\n.DropZone--dropCursorHorizontal--189f8p9::before,\n.DropZone--dropCursorHorizontal--189f8p9::after {\n top: -4px;\n height: 10px;\n width: 2px;\n}\n\n.DropZone--dropCursorHorizontal--189f8p9::before {\n left: 0;\n}\n\n.DropZone--dropCursorHorizontal--189f8p9::after {\n right: 0;\n}\n\n.DropZone--dropCursorVertical--189f8p9::before,\n.DropZone--dropCursorVertical--189f8p9::after {\n left: -4px;\n width: 10px;\n height: 2px;\n}\n\n.DropZone--dropCursorVertical--189f8p9::before {\n top: 0;\n}\n\n.DropZone--dropCursorVertical--189f8p9::after {\n bottom: 0;\n}\n');var Ie=["type"];function ke(e){var{nodeUid:t,isRoot:n,separateCanvas:o,isPortalCanvas:i,independentPortalCanvas:d,canvasIndex:s,mountPoint:p,fullscreen:c,delegatedContext:v,dropZoneStyle:g,dropZoneBodyStyle:m,slotContentLayout:C,showOutlineIfEmpty:b,hiddenWrapper:N=!0,emptyClassName:D}=e,y=r.a.useRef(),[O,x]=r.a.useState(null),$=r.a.useRef(),T=F(),S=Y(),{nodes:k,edges:A,wrapperNode:L}=Q(),P=N&&n&&!Object(l.isEmpty)(L),w=K({nodeUid:t,isRoot:n,isWrapper:P}),j=he({nodeUid:t,isRoot:n,doNotExpandTemplates:P,isWrapper:P}),_=d?s>0:i,U=o||d,B=me(),Z=null!=C?C:f.BLOCK,M=r.a.useMemo(()=>{var e,t;return null!==(e=null===(t=j.find(e=>e.mountPoint===p))||void 0===t?void 0:t.childNodes)&&void 0!==e?e:[]},[j,p]),R=Te(M),H=r.a.useMemo(()=>o?M.filter(e=>Boolean(Number(Boolean(i))^Number(!e.portal))):d?R[Object(l.clamp)(null!=s?s:0,0,R.length-1)]:M,[s,d,i,M,R,o]),q=r.a.useMemo(()=>{var e;return null===(e=H[0])||void 0===e?void 0:e.$$parsedProperties._canvas_},[H]),G=r.a.useCallback(e=>{if(!U)return e;if(H.length>0){var t=H[0===e?0:e-1];return M.findIndex(e=>e===t)+(0===e?0:1)}return _?M.length:0},[U,H,_,M]),V=r.a.useCallback(()=>{if(v){var e,t,n=Ee({nodeUid:v.templateUid,nodes:k,edges:A,doNotExpandTemplates:!0});return{droppingParentUid:v.templateUid,droppingParentInstanceId:k.find(e=>e.$$uid===v.templateUid).instanceId,droppingMountPoint:v.templateMountPoint,droppingChildNodes:null!==(e=null===(t=n.find(e=>e.mountPoint===v.templateMountPoint))||void 0===t?void 0:t.childNodes)&&void 0!==e?e:[],droppingSiblingGroups:n}}return{droppingParentUid:w.$$uid,droppingParentInstanceId:P?L.instanceId:w.instanceId,droppingMountPoint:p,droppingChildNodes:M,droppingSiblingGroups:j}},[v,A,j,p,w,k,M,P,L]),[{isDraggingOverCurrent:X},z]=Object(E.useDrop)({accept:[u.NODE_TO_ADD,u.NODE_TO_MOVE,u.SNIPPET_TO_APPLY],canDrop:e=>d&&_?0===H.length:e.type===u.NODE_TO_ADD||e.type===u.SNIPPET_TO_APPLY||n||B(e.nodeUid,t),collect:e=>({isDraggingOverCurrent:e.isOver({shallow:!0})&&e.canDrop()}),hover:(e,t)=>{if(t.isOver({shallow:!0})&&t.canDrop()){var{x:n,y:o}=t.getClientOffset();$.current=Ce(n,o,y.current.parentElement,y.current),x($.current)}},drop:(e,t)=>{if(!t.didDrop()){var{type:n}=e,o=h()(e,Ie);$e(a()({type:n,data:o,droppingIndex:G($.current.index),isPortalCanvas:_,manager:S},V()))}}});r.a.useEffect(()=>{S.updateDroppingStatus(v?v.templateUid:w.$$uid,v?v.templateMountPoint:p,X)},[X,p,S,v,w]);var W=!!v||P||!(w.$$isExpandableTemplate||w.$$isTemplateInternalNode),J=r.a.useRef(),ee=r.a.useCallback(e=>{J.current=e,W&&z(e)},[z,W]),te=r.a.useCallback(e=>{!_&&ne(e.target,J.current)&&(e.preventDefault(),S.contextMenuChange({active:!0,node:w,x:e.clientX,y:e.clientY}))},[_,S,w]);return r.a.createElement("div",{ref:ee,className:I(Se.dropZone,n?I(Se.isRoot,(null==q?void 0:q.mode)&&String(q.mode).split(/\s+/g).map(e=>Se["mode-".concat(e)]),{[Se.fullscreen]:c,[Se.hasTabs]:U}):Se.isSlot,{[Se.isPortalCanvas]:_,[Se.dropping]:X,[Se.active]:n&&T.active&&T.node.$$uid===w.$$uid,[Se.showOutlineIfEmpty]:!n&&b&&0===M.length,[Se.slotContentLayoutBlock]:Z===f.BLOCK,[Se.slotContentLayoutInline]:Z===f.INLINE,[Se.slotContentLayoutGrid]:Z===f.GRID}),style:g,onContextMenu:n?te:null},r.a.createElement("div",{ref:y,className:I(Se.dropZoneBody,0===H.length&&D),"data-slot-id":p,style:m},H.map(e=>r.a.createElement(ge,{key:e.$$uid,node:e,slotContentLayout:Z}))),r.a.createElement("div",{className:I(Se.dropCursor,null!=O&&O.isVertical?Se.dropCursorVertical:Se.dropCursorHorizontal),style:{top:null==O?void 0:O.y,left:null==O?void 0:O.x,height:null==O?void 0:O.height}}))}var Ae="SlotContainer--slotContainer--ya4ml4",Le="SlotContainer--slotName--ya4ml4",Pe="SlotContainer--dropping--ya4ml4";function we(e){var t,{nodeUid:n,slotName:i,slotContainerStyle:a,dropZoneStyle:d,dropZoneBodyStyle:s,slotContentLayout:l,showOutlineIfEmpty:p,emptyClassName:u}=e,c=K({nodeUid:n}),v=ie(),f=Object(o.useMemo)(()=>{var e,t=null===(e=c.$$delegatedSlots)||void 0===e?void 0:e.get(i);return 1===(null==t?void 0:t.length)?t[0]:null},[c,i]);return r.a.createElement("div",{className:I(Ae,{[Pe]:null===(t=v.get(f?f.templateUid:n))||void 0===t?void 0:t.get(f?f.templateMountPoint:i)}),style:a},r.a.createElement("div",{className:Le},f?f.templateMountPoint:i),r.a.createElement(ke,{nodeUid:n,mountPoint:i,delegatedContext:f,dropZoneStyle:d,dropZoneBodyStyle:s,slotContentLayout:l,showOutlineIfEmpty:p,emptyClassName:u}))}ee(".SlotContainer--slotContainer--ya4ml4 {\n position: relative;\n}\n\n.SlotContainer--slotName--ya4ml4 {\n position: absolute;\n top: -23px;\n height: calc(23px + var(--editor-brick-border-radius));\n line-height: 20px;\n color: var(--text-color-secondary);\n padding: 0 5px;\n border-radius: 2px;\n color: #737373;\n white-space: nowrap;\n visibility: hidden;\n pointer-events: none;\n border: 1px dashed var(--editor-brick-slot-stroke-color);\n background: var(--editor-brick-slot-bg);\n}\n\n.SlotContainer--slotContainer--ya4ml4.SlotContainer--dropping--ya4ml4 > .SlotContainer--slotName--ya4ml4 {\n visibility: visible;\n}\n");var je=r.a.memo(Ze),_e=Symbol.for("__BRICK_NEXT_BUILDER_CONTEXT_INSTANCE__");function Ue(){var e=window;return e[_e]||(e[_e]={manager:new V}),e[_e]}var Be=0;function Ze(e){var{children:t}=e,n=Ue();return r.a.useEffect(()=>(Be++,()=>{0===--Be&&(window[_e]=null)}),[]),r.a.createElement(W.Provider,{value:n},t)}function Me(e,t){return O()(null,(function(n,o){return{F:class extends o{constructor(){super(...arguments),n(this)}},d:[{kind:"get",static:!0,key:"selfLayout",value:function(){return null==t?void 0:t.selfLayout}},{kind:"field",decorators:[Object(b.property)({type:Number})],key:"nodeUid",value:void 0},{kind:"field",decorators:[Object(b.property)({attribute:!1})],key:"editorProps",value:void 0},{kind:"method",key:"connectedCallback",value:function(){if(this.style.display||(this.style.display="block"),null!=t&&t.brickStyle)for(var[e,n]of Object.entries(t.brickStyle))this.style[e]=n;this._render()}},{kind:"method",key:"disconnectedCallback",value:function(){$.a.unmountComponentAtNode(this)}},{kind:"method",key:"_render",value:function(){this.isConnected&&this.nodeUid&&$.a.render(r.a.createElement(b.BrickWrapper,null,r.a.createElement(je,null,r.a.createElement(E.DndProvider,{backend:T.HTML5Backend},r.a.createElement(e,{nodeUid:this.nodeUid,editorProps:this.editorProps})))),this)}}]}}),b.UpdatingElement)}var Re=Object(o.createContext)({});function He(e){var{nodeUid:t,isRoot:n,doNotExpandTemplates:r}=e,{rootId:i,edges:a}=Q(),d=n?i:t;return Object(o.useMemo)(()=>{var e=new Set,t=Object(l.sortBy)(a.filter(e=>e.parent===d&&(r?!e.$$isTemplateInternal:!e.$$isTemplateDelegated)),[e=>e.sort]);for(var n of t)e.add(n.mountPoint);return Array.from(e)},[d,a,r])}function qe(e){var{nodes:t,edges:n}=Q();return Object(o.useMemo)(()=>{var o=n.find(t=>t.child===e&&!t.$$isTemplateExpanded).parent;return t.find(e=>e.$$uid===o)},[n,e,t])}function Ge(){var e=Y(),[t,n]=Object(o.useState)(e.getRouteList());return Object(o.useEffect)(()=>e.onRouteListChange(()=>{n(e.getRouteList())}),[e]),t}function Ve(){var e=Y(),[t,n]=Object(o.useState)(e.getActiveNodeUid());return Object(o.useEffect)(()=>e.onActiveNodeChange(()=>{n(e.getActiveNodeUid())}),[e]),t}function Xe(e,t){var n=Y(),[r,i]=Object(o.useState)(!t&&n.isOutlineEnabled(e));return Object(o.useEffect)(()=>{if(!t)return n.onOutlineEnabledNodesChange(()=>{i(n.isOutlineEnabled(e))})},[t,n,e]),r}},XuQu:function(e,t){e.exports=dll},ZR4k:function(e,t,n){e.exports=n("XuQu")("ZR4k")},i8i4:function(e,t,n){e.exports=n("XuQu")("i8i4")},lSNA:function(e,t,n){e.exports=n("XuQu")("lSNA")},q1tI:function(e,t,n){e.exports=n("/8r5")("q1tI")},qJlv:function(e,t,n){e.exports=n("/8r5")("qJlv")},tYg3:function(e,t,n){e.exports=n("XuQu")("tYg3")},yXPU:function(e,t,n){e.exports=n("XuQu")("yXPU")}});
|
|
8
|
-
//# sourceMappingURL=dll-of-editor-bricks-helper.b44a90a5.js.map
|