@next-core/brick-container 2.40.2 → 2.40.3
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 +8 -0
- package/dist/dll-of-editor-bricks-helper.36a73b29.js +8 -0
- package/dist/dll-of-editor-bricks-helper.36a73b29.js.map +1 -0
- package/dist/{dll.b9fdc893.js → dll.62fbe9b3.js} +3 -3
- package/dist/{dll.b9fdc893.js.map → dll.62fbe9b3.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.529f416dfed42eb98b58.css → main.768453e7268a4f4831b7.css} +61 -97
- package/dist/main.768453e7268a4f4831b7.css.map +1 -0
- package/dist/{main.a9eb1a4d68bef4b5573a.js → main.f9f8fbd31eae0aaf13de.js} +2 -2
- package/dist/main.f9f8fbd31eae0aaf13de.js.map +1 -0
- package/package.json +10 -10
- package/dist/dll-of-editor-bricks-helper.77e2477a.js +0 -8
- package/dist/dll-of-editor-bricks-helper.77e2477a.js.map +0 -1
- package/dist/main.529f416dfed42eb98b58.css.map +0 -1
- package/dist/main.a9eb1a4d68bef4b5573a.js.map +0 -1
|
@@ -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"),m=o("9RIe"),v=o("vA6H");f.message.config({top:40});var S=o("XzT5"),y=o("9kay"),b=o("1OyB"),w=o("vuIU"),k=[],x=k.forEach,O=k.slice;function R(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 I=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,T=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(!I.test(n.domain))throw new TypeError("option domain is invalid");r+="; Domain="+n.domain}if(n.path){if(!I.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},E=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=T(e,encodeURIComponent(t),r)},X=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},L={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var o=X(e.lookupCookie);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&E(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},A={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window)for(var o=window.location.search.substring(1).split("&"),n=0;n<o.length;n++){var r=o[n].indexOf("=");if(r>0)o[n].substring(0,r)===e.lookupQuerystring&&(t=o[n].substring(r+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)}},_=null,j=function(){if(null!==_)return _;try{_="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(e){_=!1}return _},q={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&j()){var o=window.sessionStorage.getItem(e.lookupSessionStorage);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&j()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},B={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}},U={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(b.default)(this,e),this.type="languageDetector",this.detectors={},this.init(t,o)}return Object(w.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=R(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(L),this.addDetector(A),this.addDetector(D),this.addDetector(q),this.addDetector(B),this.addDetector(U),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,z=M;!function(e){e.BOOTSTRAP_ERROR="BOOTSTRAP_ERROR"}(N||(N={}));var H={[N.BOOTSTRAP_ERROR]:"Bootstrap Error"},Y={[N.BOOTSTRAP_ERROR]:"启动错误"};S.default.use(z).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":H},zh:{"brick-container":Y}}}),Object(g.initI18n)(),S.default.on("languageChanged",(function(e){s.a.locale(e)}));var J=S.default;Object(m.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.77e2477a.js","react-dnd":"dll-of-react-dnd.0ca00465.js"},window.BRICK_NEXT_VERSIONS={"brick-container":"2.40.2","brick-dll":"2.26.27","brick-kit":"2.93.0","brick-utils":"2.31.3"},window.BRICK_NEXT_FEATURES=["edit-evaluations-and-transformations-in-devtools"];var W,G=document.body,K=Object(g.createRuntime)(),V={menuBar:G.querySelector("#menu-bar-mount-point"),appBar:G.querySelector("#app-bar-mount-point"),loadingBar:G.querySelector("#loading-bar-mount-point"),navBar:G.querySelector("#app-bar-mount-point"),sideBar:G.querySelector("#side-bar-mount-point"),breadcrumb:G.querySelector("#breadcrumb-mount-point"),footer:G.querySelector("#footer-mount-point"),main:G.querySelector("#main-mount-point"),bg:G.querySelector("#bg-mount-point"),portal:G.querySelector("#portal-mount-point")};if(!window.STANDALONE_MICRO_APPS){var Z="".concat(K.getBasePath(),"api/gateway/data_exchange.store.ClickHouseInsertData/api/v1/data_exchange/frontend_stat");W=v.apiAnalyzer.create({api:Z})}function $(){return($=r()((function*(){try{yield K.bootstrap(V)}catch(e){console.error(e),document.body.classList.add("bootstrap-error","bars-hidden"),p.a.render(l.a.createElement(f.Result,{status:"error",title:J.t("".concat("brick-container",":").concat(N.BOOTSTRAP_ERROR)),subTitle:Object(g.httpErrorToString)(e)}),V.main)}}))).apply(this,arguments)}h.http.interceptors.request.use((function(e){var t,o=new Headers((null===(t=e.options)||void 0===t?void 0:t.headers)||{});return o.set("lang",J.resolvedLanguage),a()(a()({},e),{},{options:a()(a()({},e.options),{},{headers:o})})})),h.http.interceptors.request.use((function(e){var t,o;if(W){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=W)||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=W)||void 0===t||t.analyses(e),window.dispatchEvent(new CustomEvent("request.end")),Promise.reject(e.error)})),function(){$.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"),m=o("9RIe"),v=o("vA6H");f.message.config({top:40});var S=o("XzT5"),w=o("9kay"),y=o("1OyB"),b=o("vuIU"),k=[],x=k.forEach,O=k.slice;function R(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 I=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,T=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(!I.test(n.domain))throw new TypeError("option domain is invalid");r+="; Domain="+n.domain}if(n.path){if(!I.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},E=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=T(e,encodeURIComponent(t),r)},X=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},L={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var o=X(e.lookupCookie);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&E(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},A={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window)for(var o=window.location.search.substring(1).split("&"),n=0;n<o.length;n++){var r=o[n].indexOf("=");if(r>0)o[n].substring(0,r)===e.lookupQuerystring&&(t=o[n].substring(r+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)}},_=null,j=function(){if(null!==_)return _;try{_="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(e){_=!1}return _},U={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&j()){var o=window.sessionStorage.getItem(e.lookupSessionStorage);o&&(t=o)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&j()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},Q={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}},B={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(y.default)(this,e),this.type="languageDetector",this.detectors={},this.init(t,o)}return Object(b.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=R(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(L),this.addDetector(A),this.addDetector(D),this.addDetector(U),this.addDetector(Q),this.addDetector(B),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,z=M;!function(e){e.BOOTSTRAP_ERROR="BOOTSTRAP_ERROR"}(N||(N={}));var H={[N.BOOTSTRAP_ERROR]:"Bootstrap Error"},Y={[N.BOOTSTRAP_ERROR]:"启动错误"};S.default.use(z).use(w.initReactI18next).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{en:{"brick-container":H},zh:{"brick-container":Y}}}),Object(g.initI18n)(),S.default.on("languageChanged",(function(e){s.a.locale(e)}));var J=S.default;Object(m.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.36a73b29.js","react-dnd":"dll-of-react-dnd.0ca00465.js"},window.BRICK_NEXT_VERSIONS={"brick-container":"2.40.3","brick-dll":"2.26.28","brick-kit":"2.93.1","brick-utils":"2.31.4"},window.BRICK_NEXT_FEATURES=["edit-evaluations-and-transformations-in-devtools"];var W,G=document.body,K=Object(g.createRuntime)(),V={menuBar:G.querySelector("#menu-bar-mount-point"),appBar:G.querySelector("#app-bar-mount-point"),loadingBar:G.querySelector("#loading-bar-mount-point"),main:G.querySelector("#main-mount-point"),bg:G.querySelector("#bg-mount-point"),portal:G.querySelector("#portal-mount-point")};if(!window.STANDALONE_MICRO_APPS){var Z="".concat(K.getBasePath(),"api/gateway/data_exchange.store.ClickHouseInsertData/api/v1/data_exchange/frontend_stat");W=v.apiAnalyzer.create({api:Z})}function $(){return($=r()((function*(){try{yield K.bootstrap(V)}catch(e){console.error(e),document.body.classList.add("bootstrap-error","bars-hidden"),p.a.render(l.a.createElement(f.Result,{status:"error",title:J.t("".concat("brick-container",":").concat(N.BOOTSTRAP_ERROR)),subTitle:Object(g.httpErrorToString)(e)}),V.main)}}))).apply(this,arguments)}h.http.interceptors.request.use((function(e){var t,o=new Headers((null===(t=e.options)||void 0===t?void 0:t.headers)||{});return o.set("lang",J.resolvedLanguage),a()(a()({},e),{},{options:a()(a()({},e.options),{},{headers:o})})})),h.http.interceptors.request.use((function(e){var t,o;if(W){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=W)||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=W)||void 0===t||t.analyses(e),window.dispatchEvent(new CustomEvent("request.end")),Promise.reject(e.error)})),function(){$.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.f9f8fbd31eae0aaf13de.js.map
|
|
@@ -0,0 +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","params","location","search","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","use","LanguageDetector","initReactI18next","fallbackLng","debug","process","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","en","zh","initI18n","on","moment","initializeLibrary","DLL_PATH","BRICK_NEXT_VERSIONS","BRICK_NEXT_FEATURES","analyzer","root","body","pluginRuntime","createRuntime","mountPoints","menuBar","querySelector","appBar","loadingBar","main","bg","portal","STANDALONE_MICRO_APPS","api","getBasePath","apiAnalyzer","bootstrap","console","error","classList","add","ReactDOM","render","status","title","subTitle","httpErrorToString","http","interceptors","request","headers","Headers","set","resolvedLanguage","userInstanceId","uid","username","getAuth","date","now","meta","st","time","round","interceptorParams","ignoreLoadingBar","dispatchEvent","CustomEvent","response","analyses","observe","data","Promise","reject","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,OAA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OAHI,UAAClL,EAAOe,eAAR,iBAAC,EAAgB2K,yBAAjB,OAAC,EAAmCC,kBACtClI,OAAOmI,cAAc,IAAIC,YAAY,kBAEhC7L,KAGTyK,OAAKC,aAAaoB,SAASxE,KACzB,SAAUwE,GAAwB,QAGhC,OAFArI,OAAOmI,cAAc,IAAIC,YAAY,gBAC7B,QAAR,EAAAhD,SAAA,SAAUkD,SAASD,GACyB,cAArC,UAAAA,EAAS9L,OAAOe,eAAhB,eAAyBiL,SAC5BF,EACAA,EAASG,QAEf,SAAUjC,GAAkB,MAG1B,OAFQ,QAAR,EAAAnB,SAAA,SAAUkD,SAAS/B,GACnBvG,OAAOmI,cAAc,IAAIC,YAAY,gBAC9BK,QAAQC,OAAOnC,EAAMA,U,mCAyBhCF,I,qBClIAhM,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,qBCA/CG,EAAOD,QAAWF,EAAoB,OAArB,CAA8B,S,mBCA/CG,EAAOD,QAAUuO,K,qBCAjBtO,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.f9f8fbd31eae0aaf13de.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 query = window.location.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 default Browser;\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\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\ni18n.on(\"languageChanged\", function (lng) {\n moment.locale(lng);\n});\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} 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/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 pluginRuntime = 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 = `${pluginRuntime.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 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\nasync function bootstrap(): Promise<void> {\n try {\n await pluginRuntime.bootstrap(mountPoints);\n } catch (e) {\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\nbootstrap();\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.40.
|
|
3
|
+
"version": "2.40.3",
|
|
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",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"ws": "^8.3.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@next-core/brick-dll": "^2.26.
|
|
44
|
-
"@next-core/brick-icons": "^2.23.
|
|
43
|
+
"@next-core/brick-dll": "^2.26.28",
|
|
44
|
+
"@next-core/brick-icons": "^2.23.2",
|
|
45
45
|
"@next-core/custom-antd-styles": "^1.8.12",
|
|
46
46
|
"@next-core/illustrations": "^0.4.6",
|
|
47
47
|
"@next-core/less-plugin-css-variables": "^0.1.5",
|
|
48
|
-
"@next-core/webpack-config-factory": "^2.
|
|
49
|
-
"@next-dll/ace": "^2.0.
|
|
50
|
-
"@next-dll/d3": "^2.0.
|
|
51
|
-
"@next-dll/echarts": "^2.0.
|
|
52
|
-
"@next-dll/editor-bricks-helper": "^0.23.
|
|
53
|
-
"@next-dll/react-dnd": "^0.1.
|
|
48
|
+
"@next-core/webpack-config-factory": "^2.15.0",
|
|
49
|
+
"@next-dll/ace": "^2.0.292",
|
|
50
|
+
"@next-dll/d3": "^2.0.52",
|
|
51
|
+
"@next-dll/echarts": "^2.0.53",
|
|
52
|
+
"@next-dll/editor-bricks-helper": "^0.23.62",
|
|
53
|
+
"@next-dll/react-dnd": "^0.1.230",
|
|
54
54
|
"babel-loader": "^8.2.3",
|
|
55
55
|
"clean-webpack-plugin": "^4.0.0",
|
|
56
56
|
"copy-webpack-plugin": "^6.4.1",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"webpack-dev-server": "^4.6.0",
|
|
70
70
|
"webpack-merge": "^5.8.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "3ed2bc7e98a9c1e5ad0c699e6300ed409180d513"
|
|
73
73
|
}
|
|
@@ -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 p})),n.d(t,"BuilderProvider",(function(){return Ae})),n.d(t,"DropZone",(function(){return $e})),n.d(t,"DroppingStatusContext",(function(){return Ue})),n.d(t,"EditorBrickType",(function(){return c})),n.d(t,"EditorContainer",(function(){return oe})),n.d(t,"EditorElementFactory",(function(){return Be})),n.d(t,"EditorSelfLayout",(function(){return g})),n.d(t,"EditorSlotContentLayout",(function(){return v})),n.d(t,"SlotContainer",(function(){return Le})),n.d(t,"getSortedIdsAfterDropped",(function(){return Ee})),n.d(t,"useBuilderContextMenuStatus",(function(){return Q})),n.d(t,"useBuilderData",(function(){return z})),n.d(t,"useBuilderDataManager",(function(){return X})),n.d(t,"useBuilderGroupedChildNodes",(function(){return ge})),n.d(t,"useBuilderNode",(function(){return Y})),n.d(t,"useBuilderNodeMountPoints",(function(){return Ze})),n.d(t,"useBuilderParentNode",(function(){return Re})),n.d(t,"useCanDrop",(function(){return he})),n.d(t,"useCanvasList",(function(){return Oe})),n.d(t,"useHighlightNodes",(function(){return te})),n.d(t,"useHoverNodeUid",(function(){return ee})),n.d(t,"useOutlineEnabled",(function(){return He})),n.d(t,"useRouteList",(function(){return Me})),n.d(t,"useShowRelatedNodesBasedOnEvents",(function(){return K}));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"),u=n("A+yw");n.d(t,"isBrickNode",(function(){return u.isBrickNode})),n.d(t,"isCustomTemplateNode",(function(){return u.isCustomTemplateNode})),n.d(t,"isRouteNode",(function(){return u.isRouteNode})),n.d(t,"isSnippetNode",(function(){return u.isSnippetNode}));var p,c,g,v,h=n("QILm"),m=n.n(h),f=n("IYwU"),E=n("yXPU"),C=n.n(E),b=n("tYg3"),N=n("ZR4k"),D=n.n(N),y=n("ACCw"),O=n.n(y),x=n("i8i4"),T=n.n(x),$=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"}(p||(p={})),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"}(g||(g={})),function(e){e.BLOCK="block",e.INLINE="inline",e.GRID="grid"}(v||(v={}));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 L=k.EventTarget,A=0;function j(){return A+=1}function P(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,p;if(e.$$isExpandableTemplate&&null!==(a=e.$$templateProxy)&&void 0!==a&&a.slots&&Object(u.hasOwnProperty)(e.$$templateProxy.slots,n)&&(d=e.$$templateProxy.slots[n])&&(p=e.$$templateRefToUid.get(d.ref))){var c=t.find(e=>e.$$uid===p),g=d.refSlot;if(c.$$isExpandableTemplate)s(c,g,o);else{var v,h={child:o,parent:p,mountPoint:g,sort:void 0,$$isTemplateExpanded:!0},m=Object(l.sortBy)(r.filter(e=>e.parent===p),e=>{var t;return null!==(t=i.get(e))&&void 0!==t?t:e.sort}),f=m.filter(e=>e.$$isTemplateInternal),E=null!==(v=d.refPosition)&&void 0!==v?v:-1,C=Object(l.clamp)(E<0?f.length+1+E:E,0,f.length);m.splice(C<f.length?m.findIndex(e=>e===f[C]):m.length,0,h),m.forEach((e,t)=>{i.set(e,t)}),r.push(h)}}};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 _(e,t){var{rootId:n,nodes:o,edges:r}=e,{parentUid:i,nodeUids:d}=t;return P({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 w(e,t){var{rootId:n,nodes:o,edges:r}=t,i=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,i),{rootId:n,nodes:o.filter(e=>!i.has(e.$$uid)),edges:r.filter(e=>!i.has(e.parent)&&!i.has(e.child))}}function B(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){var d=r.get(i.targetRef);d&&(n.get(e.$$uid).downstreamNodes.add(d),n.get(d).upstreamNodes.add(e.$$uid))}if(i.callback)for(var s of Object.values(i.callback))B(e,[].concat(s),n,o,r)}}var U,Z=["parent","children","graphInfo","mountPoint"];function R(e,t,n){var o,r=[];e.brick&&r.push(e.brick.replace(/\./g,"\\."));var i=Object(u.normalizeBuilderNode)(e),a=[];for(var d of["properties","events","lifeCycle"]){var s=Object(l.cloneDeep)(null==i?void 0:i[d]);a.push(["$$parsed".concat(Object(l.upperFirst)(d)),null!=s?s:{}]),"properties"===d&&null!=s&&s.id&&"string"==typeof s.id&&!/[<{]/.test(s.id)&&r.push("#".concat(s.id))}return Object.fromEntries(Object.entries(e).filter(e=>!Z.includes(e[0])).concat([["alias",null!==(o=e.alias)&&void 0!==o?o:Object(u.isBrickNode)(e)?e.brick.split(".").pop():void 0],["$$uid",t],["$$matchedSelectors",r],["$$isTemplateInternalNode",n],["$$normalized",i]]).concat(a))}function M(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=[],i=[],a=(e,t,d,s,p)=>{var c,g,v,h,m=R(e,t,s);if(r.push(m),p&&m.ref&&p.set(m.ref,t),Object(u.isBrickNode)(m)&&(!m.brick.includes(".")&&m.brick.startsWith("tpl-")&&!d.has(m.brick)&&(h=null==n?void 0:n.get(m.brick))&&(null===(c=h.children)||void 0===c?void 0:c.length)>0||m.brick.includes(".tpl-")&&(h=null==o||null===(g=o.find(e=>e.storyId===m.brick))||void 0===g?void 0:g.originData)&&(null===(v=h.children)||void 0===v?void 0:v.length)>0)){d.add(m.brick),m.$$isExpandableTemplate=!0,m.$$templateProxy=h.proxy&&JSON.parse(h.proxy);var f=new Map;if(m.$$templateRefToUid=f,Object(l.sortBy)(h.children,[e=>{var t;return null!==(t=e.sort)&&void 0!==t?t:-1/0}]).forEach((e,n)=>{var o=j();a(e,o,new Set(d),!0,f),i.push({child:o,parent:t,mountPoint:"",sort:n,$$isTemplateInternal:!0})}),!m.$$isTemplateInternalNode){var E=(e,t,n)=>{var o;if(null!==(o=e.$$templateProxy)&&void 0!==o&&o.slots){var i,a=Object.entries(null===(i=e.$$templateProxy)||void 0===i?void 0:i.slots).filter(e=>void 0===t||e[0]===t),d=function(t,o){var i=e.$$templateRefToUid.get(o.ref);if(i){var a=r.find(e=>e.$$uid===i);if(a.$$isExpandableTemplate)E(a,o.refSlot,t);else{a.$$delegatedSlots||(a.$$delegatedSlots=new Map);var d=a.$$delegatedSlots.get(o.refSlot);d||(d=[],a.$$delegatedSlots.set(o.refSlot,d)),d.push({templateUid:m.$$uid,templateMountPoint:n||t})}}};for(var[s,l]of a)d(s,l)}};E(m);var C=(e,t)=>{var n;if(null!==(n=e.$$templateProxy)&&void 0!==n&&n.properties){var o,i=Object.entries(null===(o=e.$$templateProxy)||void 0===o?void 0:o.properties).filter(e=>void 0===t||e[0]===t);for(var[a,d]of i)Object(u.hasOwnProperty)(e.$$parsedProperties,a)&&H(d)&&function(){var t=e.$$templateRefToUid.get(d.ref),n=e.$$parsedProperties[a];if(t){var o=r.find(e=>e.$$uid===t);o.$$parsedProperties[d.refProperty]=n,o.$$isExpandableTemplate&&C(o,d.refProperty)}}()}};C(m)}}if(Array.isArray(e.children)){var b;switch(m.type){case"bricks":case"custom-template":b="bricks";break;case"routes":b="routes"}Object(l.sortBy)(e.children,[e=>{var t;return null!==(t=e.sort)&&void 0!==t?t:-1/0}]).forEach((e,n)=>{var o,r=j();a(e,r,new Set(d),s,p),i.push({child:r,parent:t,mountPoint:null!==(o=b)&&void 0!==o?o:e.mountPoint,sort:n,$$isTemplateInternal:s,$$isTemplateDelegated:m.$$isExpandableTemplate})})}};return a(e,t,new Set),{nodes:r,edges:i}}function H(e){return!!e.ref&&!!e.refProperty}function q(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.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"}(U||(U={}));class G{constructor(){var e;s()(this,"data",{rootId:null,nodes:[],edges:[]}),s()(this,"hoverNodeUid",void 0),s()(this,"sharedEditorList",void 0),s()(this,"routeList",void 0),s()(this,"storyList",void 0),s()(this,"eventTarget",new L),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 u.JsonStorage(localStorage)),s()(this,"outlineDisabledNodes",new Set(null!==(e=this.localJsonStorage.getItem("builder-outline-disabled-nodes"))&&void 0!==e?e:[])),s()(this,"runAddNodeAction",e=>{var{rootId:t,nodes:n,edges:o}=this.data,{nodeUid:r,parentUid:i,nodeUids:d,nodeData:s}=e,{nodes:u,edges:p}=M(Object(l.omit)(s,["parent"]),r,this.templateSourceMap,this.getStoryList()),c={rootId:t,nodes:n.concat(u),edges:o.concat({parent:i,child:r,mountPoint:s.mountPoint,sort:void 0,$$isTemplateDelegated:q(n,i)}).concat(p)};this.data=a()(a()({},c),{},{edges:_(c,{parentUid:i,nodeUids:d})}),this.triggerDataChange()})}getData(){return this.data}getContextMenuStatus(){return this.contextMenuStatus}getRelatedNodesBasedOnEventsMap(){return this.relatedNodesBasedOnEventsMap}sharedEditorListInit(e){this.sharedEditorList=e,this.eventTarget.dispatchEvent(new CustomEvent(U.SHARED_EDITOR_LIST_CHANGE))}getSharedEditorList(){var e;return null!==(e=this.sharedEditorList)&&void 0!==e?e:[]}onSharedEditorListChange(e){return this.eventTarget.addEventListener(U.SHARED_EDITOR_LIST_CHANGE,e),()=>{this.eventTarget.removeEventListener(U.SHARED_EDITOR_LIST_CHANGE,e)}}routeListInit(e){this.routeList=e,this.eventTarget.dispatchEvent(new CustomEvent(U.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(U.ROUTE_LIST_CHANGE,e),()=>{this.eventTarget.removeEventListener(U.ROUTE_LIST_CHANGE,e)}}dataInit(e,t){this.templateSourceMap=t;var n=j(),o=a()({rootId:n},M(e,n,t,this.storyList));this.data=a()(a()({},o),{},{edges:P(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&&B(d,s,n,o,r)}return n}(t,n),this.eventTarget.dispatchEvent(new CustomEvent(U.DATA_CHANGE))}updateBrick(e){this.data=w(e.nodeUid,this.data),this.runAddNodeAction(e)}nodeAdd(e){this.runAddNodeAction(e),this.eventTarget.dispatchEvent(new CustomEvent(U.NODE_ADD,{detail:e}))}nodeAddStored(e){var{rootId:t,nodes:n,edges:o}=this.data,{nodeUid:r,nodeData:i}=e;this.data={rootId:t,nodes:n.map(e=>e.$$uid===r?a()(a()({},e),{},{id:i.id,instanceId:i.instanceId}):e),edges:o},this.triggerDataChange()}snippetApply(e){var{rootId:t,nodes:n,edges:o}=this.data,{nodeDetails:r,parentUid:i,nodeUids:d}=e,s=n.slice(),u=o.slice(),p=e=>{var{parentUid:t,nodeUid:n,nodeData:o,children:r}=e,{nodes:i,edges:a}=M(Object(l.omit)(o,["parent"]),n,this.templateSourceMap,this.storyList);for(var d of(s.push(...i),u.push({parent:t,child:n,mountPoint:o.mountPoint,sort:o.sort,$$isTemplateDelegated:q(s,t)},...a),r))p(d)};for(var c of r)p(c);var g={rootId:t,nodes:s,edges:u};this.data=a()(a()({},g),{},{edges:_(g,{parentUid:i,nodeUids:d})}),this.triggerDataChange(),this.eventTarget.dispatchEvent(new CustomEvent(U.SNIPPET_APPLY,{detail:e}))}snippetApplyStored(e){var{rootId:t,nodes:n,edges:o}=this.data,{flattenNodeDetails:r}=e;this.data={rootId:t,nodes:n.map(e=>{var t=r.find(t=>t.nodeUid===e.$$uid);return t?a()(a()({},e),{},{id:t.nodeData.id,instanceId:t.nodeData.instanceId}):e}),edges:o},this.triggerDataChange()}nodeMove(e){var{rootId:t,nodes:n,edges:o}=this.data,{nodeUid:r,parentUid:i,nodeUids:d,nodeData:s}=e,l={rootId:t,nodes:n,edges:o.filter(e=>e.child!==r).concat({parent:i,child:r,mountPoint:s.mountPoint,sort:void 0,$$isTemplateDelegated:q(n,i)})};this.data=a()(a()({},l),{},{edges:_(l,{parentUid:i,nodeUids:d})}),this.triggerDataChange(),this.eventTarget.dispatchEvent(new CustomEvent(U.NODE_MOVE,{detail:e}))}contextUpdated(e){var{rootId:t,nodes:n,edges:o}=this.data;this.data={rootId:t,edges:o,nodes:n.map(n=>n.$$uid===t?a()(a()({},n),{},{context:e.context}):n)},this.triggerDataChange()}nodeReorder(e){var{nodeUids:t,parentUid:n}=e;this.data=a()(a()({},this.data),{},{edges:_(this.data,{parentUid:n,nodeUids:t})}),this.triggerDataChange(),this.eventTarget.dispatchEvent(new CustomEvent(U.NODE_REORDER,{detail:e}))}nodeDelete(e){this.data=w(e.$$uid,this.data),this.triggerDataChange()}nodeClick(e){this.eventTarget.dispatchEvent(new CustomEvent(U.NODE_CLICK,{detail:e}))}contextMenuChange(e){this.contextMenuStatus=e,this.eventTarget.dispatchEvent(new CustomEvent(U.CONTEXT_MENU_CHANGE))}onDataChange(e){return this.eventTarget.addEventListener(U.DATA_CHANGE,e),()=>{this.eventTarget.removeEventListener(U.DATA_CHANGE,e)}}onNodeAdd(e){return this.eventTarget.addEventListener(U.NODE_ADD,e),()=>{this.eventTarget.removeEventListener(U.NODE_ADD,e)}}onSnippetApply(e){return this.eventTarget.addEventListener(U.SNIPPET_APPLY,e),()=>{this.eventTarget.removeEventListener(U.SNIPPET_APPLY,e)}}onNodeReorder(e){return this.eventTarget.addEventListener(U.NODE_REORDER,e),()=>{this.eventTarget.removeEventListener(U.NODE_REORDER,e)}}onNodeMove(e){return this.eventTarget.addEventListener(U.NODE_MOVE,e),()=>{this.eventTarget.removeEventListener(U.NODE_MOVE,e)}}onNodeClick(e){return this.eventTarget.addEventListener(U.NODE_CLICK,e),()=>{this.eventTarget.removeEventListener(U.NODE_CLICK,e)}}onContextMenuChange(e){return this.eventTarget.addEventListener(U.CONTEXT_MENU_CHANGE,e),()=>{this.eventTarget.removeEventListener(U.CONTEXT_MENU_CHANGE,e)}}setShowRelatedNodesBasedOnEvents(e){this.showRelatedNodesBasedOnEvents=e,this.eventTarget.dispatchEvent(new CustomEvent(U.SHOW_RELATED_NODES_BASED_ON_EVENTS))}getShowRelatedNodesBasedOnEvents(){return this.showRelatedNodesBasedOnEvents}onShowRelatedNodesBasedOnEventsChange(e){return this.eventTarget.addEventListener(U.SHOW_RELATED_NODES_BASED_ON_EVENTS,e),()=>{this.eventTarget.removeEventListener(U.SHOW_RELATED_NODES_BASED_ON_EVENTS,e)}}setHoverNodeUid(e){this.hoverNodeUid!==e&&(this.hoverNodeUid=e,this.eventTarget.dispatchEvent(new CustomEvent(U.HOVER_NODE_CHANGE)))}getHoverNodeUid(){return this.hoverNodeUid}onHoverNodeChange(e){return this.eventTarget.addEventListener(U.HOVER_NODE_CHANGE,e),()=>{this.eventTarget.removeEventListener(U.HOVER_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(U.OUTLINE_DISABLED_NODES_CHANGE))}isOutlineEnabled(e){return!this.outlineDisabledNodes.has(e)}onOutlineEnabledNodesChange(e){return this.eventTarget.addEventListener(U.OUTLINE_DISABLED_NODES_CHANGE,e),()=>{this.eventTarget.removeEventListener(U.OUTLINE_DISABLED_NODES_CHANGE,e)}}setHighlightNodes(e){this.highlightNodes=e,this.eventTarget.dispatchEvent(new CustomEvent(U.HIGHLIGHT_NODES_CHANGE))}getHighlightNodes(){return this.highlightNodes}onHighlightNodesChange(e){return this.eventTarget.addEventListener(U.HIGHLIGHT_NODES_CHANGE,e),()=>{this.eventTarget.removeEventListener(U.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(U.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(U.DROPPING_STATUS_CHANGE,e),()=>{this.eventTarget.removeEventListener(U.DROPPING_STATUS_CHANGE,e)}}}var V=r.a.createContext({});function X(){var{manager:e}=r.a.useContext(V);if(!e)throw new Error("Expected builder data context");return e}function z(){var e=X(),[t,n]=Object(o.useState)(e.getData());return Object(o.useEffect)(()=>e.onDataChange(()=>{n(e.getData())}),[e]),t}function Y(e){var{nodeUid:t,isRoot:n}=e,{rootId:r,nodes:i}=z(),a=n?r:t;return Object(o.useMemo)(()=>i.find(e=>e.$$uid===a),[i,a])}function Q(){var e=X(),[t,n]=Object(o.useState)(e.getContextMenuStatus());return Object(o.useEffect)(()=>e.onContextMenuChange(()=>{n(e.getContextMenuStatus())}),[e]),t}function K(){var e=X(),[t,n]=Object(o.useState)(e.getShowRelatedNodesBasedOnEvents());return Object(o.useEffect)(()=>e.onShowRelatedNodesBasedOnEventsChange(()=>{n(e.getShowRelatedNodesBasedOnEvents())}),[e]),t}function F(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 J={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 W(e,t){for(var n=e;n;){if(n===t)return!0;if(n.classList.contains(J.editorContainer)&&!n.classList.contains(J.isTemplateInternalNode))return!1;n=n.parentElement}return!1}function ee(){var e=X(),[t,n]=Object(o.useState)(e.getHoverNodeUid());return Object(o.useEffect)(()=>e.onHoverNodeChange(()=>{n(e.getHoverNodeUid())}),[e]),t}function te(){var e=X(),[t,n]=Object(o.useState)(e.getHighlightNodes());return Object(o.useEffect)(()=>e.onHighlightNodesChange(()=>{n(e.getHighlightNodes())}),[e]),t}function ne(){var e=X(),[t,n]=Object(o.useState)(e.getDroppingStatus());return Object(o.useEffect)(()=>e.onDroppingStatusChange(()=>{n(e.getDroppingStatus())}),[e]),t}function oe(e){var t,n,{nodeUid:i,type:a,isTransparentContainer:d,editorContainerStyle:s,editorBodyStyle:l,children:u}=e,p=Object(o.useRef)(),g=te(),v=Y({nodeUid:i}),[h,m]=Object(o.useState)(!1),[f,E]=Object(o.useState)(!1),C=Q(),b=ee(),N=K(),D=X(),[y,O]=Object(o.useState)(b===i),x=null!=a?a:c.DEFAULT,T=Object(o.useRef)(b),$=ne();Object(o.useEffect)(()=>{T.current=b},[b]);var S=Object(o.useCallback)(e=>{e.stopPropagation(),O(!0),T.current!==i&&D.setHoverNodeUid(i)},[i,D]),k=Object(o.useCallback)(e=>{e.stopPropagation(),O(!1),T.current===i&&D.setHoverNodeUid(void 0)},[i,D]);Object(o.useEffect)(()=>{if(!v.$$isTemplateInternalNode){var e=p.current;return e.addEventListener("mouseover",S),e.addEventListener("mouseout",k),()=>{e.removeEventListener("mouseover",S),e.removeEventListener("mouseout",k)}}},[S,k,v]),Object(o.useEffect)(()=>{if(!v.$$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);m(o);var r=null===(t=n.get(b))||void 0===t?void 0:t.downstreamNodes.has(i);E(r)}},[b,v,i,N,D]);var L=Object(o.useCallback)(e=>!v.$$isTemplateInternalNode&&W(e.target,p.current),[v]),A=Object(o.useCallback)(e=>{L(e)&&D.nodeClick(v)},[L,D,v]),j=Object(o.useCallback)(e=>{L(e)&&(e.preventDefault(),D.contextMenuChange({active:!0,node:v,x:e.clientX,y:e.clientY}))},[L,D,v]);return r.a.createElement("div",{className:I(J.editorContainer,J[x],{[J.transparentContainer]:d,[J.dropping]:Array.from(null!==(t=null===(n=$.get(i))||void 0===n?void 0:n.values())&&void 0!==t?t:[]).some(Boolean),[J.hover]:y,[J.active]:C.active&&C.node.$$uid===i,[J.isDownstreamNode]:!y&&f,[J.isUpstreamNode]:!y&&h,[J.highlight]:g.has(i),[J.isTemplateInternalNode]:v.$$isTemplateInternalNode}),style:s,ref:p,onClick:A,onContextMenu:j},r.a.createElement("div",{className:J.nodeAlias},!y&&(f?r.a.createElement("span",{className:J.arrow},"↓"):h?r.a.createElement("span",{className:J.arrow},"↑"):null),v.alias||v.brick),r.a.createElement("div",{className:J.editorBody,style:l},u))}F(".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 re(){return(re=C()((function*(e,t){var n=[];if(Object(u.isRouteNode)(e))n.push("basic-bricks.any-route--editor");else{if(!Object(u.isBrickNode)(e))throw new Error("Unsupported node type: ".concat(e.type));e.brick.includes("-")&&n.push("".concat(e.brick,"--editor")),t&&n.push(t),n.push("basic-bricks.any-brick--editor")}for(var o of n){try{yield b.developHelper.loadEditorBricks([o])}catch(e){throw new Error('Load editor brick "'.concat(o,'" failed'))}if(customElements.get(o))return o}throw new Error('Editor brick "'.concat(n.join(", "),'" not found'))}))).apply(this,arguments)}var ie="EditorBrickAsComponent--slotContentLayoutBlock--1aed4lu",ae="EditorBrickAsComponent--selfLayoutBlock--1aed4lu",de="EditorBrickAsComponent--selfLayoutContainer--1aed4lu",se="EditorBrickAsComponent--slotContentLayoutInline--1aed4lu",le="EditorBrickAsComponent--selfLayoutInline--1aed4lu",ue="EditorBrickAsComponent--dragging--1aed4lu",pe="EditorBrickAsComponent--baseView--1aed4lu";function ce(e){var t,{node:n,slotContentLayout:i}=e,[a,d]=r.a.useState(!1),[s,l]=r.a.useState(),[c,h]=r.a.useState(),{edges:m}=z(),E=(t=X(),Object(o.useMemo)(()=>t.getStoryList(),[t])),N=r.a.useMemo(()=>m.some(e=>e.parent===n.$$uid),[n,m]),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,E),[D,n,E]),O=function(){var e=X(),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(u.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 re.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),h(t),d(!0)}))()},[y,x,D,n]);var T=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]),$=r.a.useMemo(()=>{var e,t;a&&s&&(t=customElements.get(s).selfLayout);return null!==(e=t)&&void 0!==e?e:N?g.CONTAINER:g.INLINE},[a,s,N]),[{isDragging:S},k]=Object(f.useDrag)({item:{type:p.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({[ie]:i===v.BLOCK,[se]:i===v.INLINE,[le]:$===g.INLINE,[ae]:$===g.BLOCK,[de]:$===g.CONTAINER,[ue]:S,__isTemplateInternalNode:n.$$isTemplateInternalNode})},r.a.createElement("div",{ref:n.$$isTemplateInternalNode?void 0:k,draggable:!n.$$isTemplateInternalNode,className:I({[pe]:"basic-bricks.micro-view"===n.brick||"basic-bricks.micro-app"===n.brick||"basic-bricks.easy-view"===n.brick})},r.a.createElement(b.BrickAsComponent,{useBrick:T}))):r.a.createElement("span",null,c):r.a.createElement("span",null,"Loading...")}function ge(e){var{nodeUid:t,isRoot:n,doNotExpandTemplates:r}=e,{rootId:i,nodes:a,edges:d}=z();return Object(o.useMemo)(()=>ve({nodes:a,edges:d,nodeUid:n?i:t,doNotExpandTemplates:r}),[r,d,n,t,a,i])}function ve(e){var{nodeUid:t,nodes:n,edges:o,doNotExpandTemplates:r}=e,i=new Map,a=Object(l.sortBy)(o.filter(e=>e.parent===t&&(r?!e.$$isTemplateInternal:!e.$$isTemplateDelegated)),[e=>e.sort]),d=function(e){var t=n.find(t=>t.$$uid===e.child);i.has(e.mountPoint)?i.get(e.mountPoint).push(t):i.set(e.mountPoint,[t])};for(var s of a)d(s);return Array.from(i.entries()).map(e=>{var[t,n]=e;return{mountPoint:t,childNodes:n}})}function he(){var{edges:e}=z();return Object(o.useCallback)((t,n)=>{var o=t=>t!==n&&!e.some(e=>e.parent===t&&!o(e.child));return o(t)},[e])}F(".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 me(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||fe(r.left,s.right)>0&&fe(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 u=d[t+1],p=(r.bottom+u.top)/2;o.push({rect:{top:s,bottom:p,left:n.left,right:n.right},cursor:{index:r.index+1,y:p-n.top}}),s=p}}else{var c=n.left,g=n.left,v=t<d.length-1?(d[t+1].top+e.bottom)/2:n.bottom,h={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:v,left:c,right:l},cursor:a()(a()({},h),{},{index:r.index,x:(g+r.left)/2-n.left})}),c=l,g=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()({},h),{},{index:r.index+1,x:Math.min(g+6,n.right)-n.left})}):o.push({rect:{top:s,bottom:v,left:c,right:n.right},cursor:a()(a()({},h),{},{index:r.index+1,x:Math.min(g+6,n.right)-n.left})}))}),s=v,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 fe(e,t){var n=e-t;return Math.abs(n)<1?0:n}function Ee(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}),u=l.map(e=>d.includes(e)?n:s.find(t=>t.$$uid===e).id);return{nodeUids:l,nodeIds:u}}var Ce=["properties","events","lifeCycle","params","if","transform"],be=["permissionsPreCheck","transformFrom"],Ne=["brick","template","portal","slots","id","children","instanceId"];function De(e,t){return Object.fromEntries(Object.entries(e).map(e=>{var[t,n]=e;return void 0===n||Ne.includes(t)?void 0:Ce.includes(t)?[t,JSON.stringify(n)]:be.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 ye(e){var{manager:t,type:n,data:o,droppingIndex:r,droppingParentUid:i,droppingParentInstanceId:d,droppingMountPoint:s,droppingChildNodes:l,droppingSiblingGroups:u,isPortalCanvas:c}=e;if(n===p.NODE_TO_ADD){var{brickType:g="brick",brick:v}=o,h=j();t.nodeAdd(a()(a()({},Ee({draggingNodeUid:h,draggingNodeId:null,droppingIndex:r,droppingMountPoint:s,droppingSiblingGroups:u})),{},{nodeUid:h,parentUid:i,nodeData:{parent:d,type:g,brick:v,mountPoint:s,bg:!c&&"provider"===g||void 0,portal:c}}))}else if(n===p.SNIPPET_TO_APPLY){var{bricks:m}=o,f=[...new Array(m.length)].map(()=>j());t.snippetApply(a()(a()({},Ee({draggingNodeUid:f,draggingNodeId:null,droppingIndex:r,droppingMountPoint:s,droppingSiblingGroups:u})),{},{parentUid:i,nodeDetails:m.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:De(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:j(),brickConf:o,sort:n})}):[]}}({parent:d,parentUid:i,mountPoint:s,nodeUid:f[t],brickConf:e,isPortalCanvas:c}))}))}else if(n===p.NODE_TO_MOVE){var{nodeUid:E,nodeId:C,nodeInstanceId:b}=o,N=l.findIndex(e=>e.$$uid===E);N>=0?r!==N&&r!==N+1&&t.nodeReorder(a()(a()({},Ee({draggingNodeUid:E,draggingNodeId:C,draggingIndex:N,droppingIndex:r,droppingMountPoint:s,droppingSiblingGroups:u})),{},{parentUid:i})):t.nodeMove(a()(a()({},Ee({draggingNodeUid:E,draggingNodeId:C,droppingIndex:r,droppingMountPoint:s,droppingSiblingGroups:u})),{},{nodeUid:E,parentUid:i,nodeInstanceId:b,nodeData:{parent:d,mountPoint:s}}))}}function Oe(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 xe={dropZone:"DropZone--dropZone--sngiml",isSlot:"DropZone--isSlot--sngiml",dropping:"DropZone--dropping--sngiml",showOutlineIfEmpty:"DropZone--showOutlineIfEmpty--sngiml",isRoot:"DropZone--isRoot--sngiml",dropZoneBody:"DropZone--dropZoneBody--sngiml",active:"DropZone--active--sngiml",isPortalCanvas:"DropZone--isPortalCanvas--sngiml",fullscreen:"DropZone--fullscreen--sngiml",hasTabs:"DropZone--hasTabs--sngiml",slotContentLayoutBlock:"DropZone--slotContentLayoutBlock--sngiml",slotContentLayoutInline:"DropZone--slotContentLayoutInline--sngiml",slotContentLayoutGrid:"DropZone--slotContentLayoutGrid--sngiml","mode-dialog":"DropZone--mode-dialog--sngiml","mode-large":"DropZone--mode-large--sngiml","mode-small":"DropZone--mode-small--sngiml","mode-drawer":"DropZone--mode-drawer--sngiml",dropCursor:"DropZone--dropCursor--sngiml",dropCursorHorizontal:"DropZone--dropCursorHorizontal--sngiml",dropCursorVertical:"DropZone--dropCursorVertical--sngiml"};F('.DropZone--dropZone--sngiml {\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--sngiml {\n border: 1px dashed transparent;\n}\n\n.DropZone--isSlot--sngiml.DropZone--dropping--sngiml {\n background: var(--editor-brick-slot-bg);\n border-color: var(--editor-brick-slot-stroke-color);\n}\n\n.DropZone--showOutlineIfEmpty--sngiml:not(.DropZone--dropping--sngiml) {\n background: var(--editor-brick-skeleton-bg-light);\n}\n\n.DropZone--isRoot--sngiml > .DropZone--dropZoneBody--sngiml {\n padding: calc(var(--drop-zone-padding) + 7px) var(--drop-zone-padding)\n var(--drop-zone-padding);\n}\n\n.DropZone--isRoot--sngiml.DropZone--active--sngiml,\n.DropZone--isRoot--sngiml.DropZone--dropping--sngiml {\n box-shadow: 0 0 0 1px var(--editor-brick-stroke-color-active);\n}\n\n.DropZone--isPortalCanvas--sngiml,\n.DropZone--isRoot--sngiml:not(.DropZone--isPortalCanvas--sngiml) > .DropZone--dropZoneBody--sngiml {\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--sngiml.DropZone--isPortalCanvas--sngiml,\n.DropZone--fullscreen--sngiml:not(.DropZone--isPortalCanvas--sngiml) > .DropZone--dropZoneBody--sngiml {\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--sngiml.DropZone--isPortalCanvas--sngiml,\n.DropZone--hasTabs--sngiml.DropZone--isRoot--sngiml:not(.DropZone--isPortalCanvas--sngiml) > .DropZone--dropZoneBody--sngiml {\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--sngiml.DropZone--fullscreen--sngiml.DropZone--isPortalCanvas--sngiml,\n.DropZone--hasTabs--sngiml.DropZone--fullscreen--sngiml:not(.DropZone--isPortalCanvas--sngiml) > .DropZone--dropZoneBody--sngiml {\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--sngiml > .DropZone--dropZoneBody--sngiml {\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--sngiml > .DropZone--dropZoneBody--sngiml {\n display: flex;\n flex-wrap: wrap;\n margin: 0 calc(var(--editor-brick-gap-half) * -1);\n}\n\n.DropZone--slotContentLayoutGrid--sngiml > .DropZone--dropZoneBody--sngiml {\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}\n\n.DropZone--mode-dialog--sngiml > .DropZone--dropZoneBody--sngiml {\n margin: 0 auto;\n max-width: calc(600px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--mode-dialog--sngiml.DropZone--mode-large--sngiml > .DropZone--dropZoneBody--sngiml {\n max-width: calc(800px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--mode-dialog--sngiml.DropZone--mode-small--sngiml > .DropZone--dropZoneBody--sngiml {\n max-width: calc(400px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--mode-drawer--sngiml > .DropZone--dropZoneBody--sngiml {\n margin: 0 auto;\n max-width: calc(900px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--mode-drawer--sngiml.DropZone--mode-large--sngiml > .DropZone--dropZoneBody--sngiml {\n max-width: calc(1200px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--mode-drawer--sngiml.DropZone--mode-small--sngiml > .DropZone--dropZoneBody--sngiml {\n max-width: calc(600px + var(--drop-zone-padding) * 2);\n}\n\n.DropZone--dropCursor--sngiml {\n position: absolute;\n background: #bb79bb;\n display: none;\n pointer-events: none;\n}\n\n.DropZone--dropping--sngiml > .DropZone--dropCursor--sngiml {\n display: block;\n}\n\n.DropZone--dropCursorHorizontal--sngiml {\n height: 2px;\n left: 10px;\n right: 10px;\n margin-top: -1px;\n}\n\n.DropZone--dropCursorVertical--sngiml {\n width: 2px;\n margin-left: -1px;\n}\n\n.DropZone--dropCursor--sngiml::before,\n.DropZone--dropCursor--sngiml::after {\n position: absolute;\n content: "";\n background: #bb79bb;\n}\n\n.DropZone--dropCursorHorizontal--sngiml::before,\n.DropZone--dropCursorHorizontal--sngiml::after {\n top: -4px;\n height: 10px;\n width: 2px;\n}\n\n.DropZone--dropCursorHorizontal--sngiml::before {\n left: 0;\n}\n\n.DropZone--dropCursorHorizontal--sngiml::after {\n right: 0;\n}\n\n.DropZone--dropCursorVertical--sngiml::before,\n.DropZone--dropCursorVertical--sngiml::after {\n left: -4px;\n width: 10px;\n height: 2px;\n}\n\n.DropZone--dropCursorVertical--sngiml::before {\n top: 0;\n}\n\n.DropZone--dropCursorVertical--sngiml::after {\n bottom: 0;\n}\n');var Te=["type"];function $e(e){var{nodeUid:t,isRoot:n,separateCanvas:o,isPortalCanvas:i,independentPortalCanvas:d,canvasIndex:s,mountPoint:u,fullscreen:c,delegatedContext:g,dropZoneStyle:h,dropZoneBodyStyle:E,slotContentLayout:C,showOutlineIfEmpty:b}=e,N=r.a.useRef(),[D,y]=r.a.useState(null),O=r.a.useRef(),x=Q(),T=X(),$=Y({nodeUid:t,isRoot:n}),S=ge({nodeUid:t,isRoot:n}),k=d?s>0:i,L=o||d,A=he(),j=null!=C?C:v.BLOCK,P=r.a.useMemo(()=>{var e,t;return null!==(e=null===(t=S.find(e=>e.mountPoint===u))||void 0===t?void 0:t.childNodes)&&void 0!==e?e:[]},[S,u]),_=Oe(P),w=r.a.useMemo(()=>o?P.filter(e=>Boolean(Number(Boolean(i))^Number(!e.portal))):d?_[Object(l.clamp)(null!=s?s:0,0,_.length-1)]:P,[s,d,i,P,_,o]),B=r.a.useMemo(()=>{var e;return null===(e=w[0])||void 0===e?void 0:e.$$parsedProperties._canvas_},[w]),U=r.a.useCallback(e=>{if(!L)return e;if(w.length>0){var t=w[0===e?0:e-1];return P.findIndex(e=>e===t)+(0===e?0:1)}return k?P.length:0},[L,w,k,P]),{nodes:Z,edges:R}=z(),M=r.a.useCallback(()=>{if(g){var e,t,n=ve({nodeUid:g.templateUid,nodes:Z,edges:R,doNotExpandTemplates:!0});return{droppingParentUid:g.templateUid,droppingParentInstanceId:Z.find(e=>e.$$uid===g.templateUid).instanceId,droppingMountPoint:g.templateMountPoint,droppingChildNodes:null!==(e=null===(t=n.find(e=>e.mountPoint===g.templateMountPoint))||void 0===t?void 0:t.childNodes)&&void 0!==e?e:[],droppingSiblingGroups:n}}return{droppingParentUid:$.$$uid,droppingParentInstanceId:$.instanceId,droppingMountPoint:u,droppingChildNodes:P,droppingSiblingGroups:S}},[g,R,S,u,$,Z,P]),[{isDraggingOverCurrent:H},q]=Object(f.useDrop)({accept:[p.NODE_TO_ADD,p.NODE_TO_MOVE,p.SNIPPET_TO_APPLY],canDrop:e=>d&&k?0===w.length:e.type===p.NODE_TO_ADD||e.type===p.SNIPPET_TO_APPLY||n||A(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();O.current=me(n,o,N.current.parentElement,N.current),y(O.current)}},drop:(e,t)=>{if(!t.didDrop()){var{type:n}=e,o=m()(e,Te);ye(a()({type:n,data:o,droppingIndex:U(O.current.index),isPortalCanvas:k,manager:T},M()))}}});r.a.useEffect(()=>{T.updateDroppingStatus(g?g.templateUid:$.$$uid,g?g.templateMountPoint:u,H)},[H,u,T,g,$]);var G=!!g||!($.$$isExpandableTemplate||$.$$isTemplateInternalNode),V=r.a.useRef(),K=r.a.useCallback(e=>{V.current=e,G&&q(e)},[q,G]),F=r.a.useCallback(e=>{!k&&W(e.target,V.current)&&(e.preventDefault(),T.contextMenuChange({active:!0,node:$,x:e.clientX,y:e.clientY}))},[k,T,$]);return r.a.createElement("div",{ref:K,className:I(xe.dropZone,n?I(xe.isRoot,(null==B?void 0:B.mode)&&String(B.mode).split(/\s+/g).map(e=>xe["mode-".concat(e)]),{[xe.fullscreen]:c,[xe.hasTabs]:L}):xe.isSlot,{[xe.isPortalCanvas]:k,[xe.dropping]:H,[xe.active]:n&&x.active&&x.node.$$uid===$.$$uid,[xe.showOutlineIfEmpty]:!n&&b&&0===P.length,[xe.slotContentLayoutBlock]:j===v.BLOCK,[xe.slotContentLayoutInline]:j===v.INLINE,[xe.slotContentLayoutGrid]:j===v.GRID}),style:h,onContextMenu:n?F:null},r.a.createElement("div",{ref:N,className:xe.dropZoneBody,style:E},w.map(e=>r.a.createElement(ce,{key:e.$$uid,node:e,slotContentLayout:j}))),r.a.createElement("div",{className:I(xe.dropCursor,null!=D&&D.isVertical?xe.dropCursorVertical:xe.dropCursorHorizontal),style:{top:null==D?void 0:D.y,left:null==D?void 0:D.x,height:null==D?void 0:D.height}}))}var Se="SlotContainer--slotContainer--ya4ml4",Ie="SlotContainer--slotName--ya4ml4",ke="SlotContainer--dropping--ya4ml4";function Le(e){var t,{nodeUid:n,slotName:i,slotContainerStyle:a,dropZoneStyle:d,dropZoneBodyStyle:s,slotContentLayout:l,showOutlineIfEmpty:u}=e,p=Y({nodeUid:n}),c=ne(),g=Object(o.useMemo)(()=>{var e,t=null===(e=p.$$delegatedSlots)||void 0===e?void 0:e.get(i);return 1===(null==t?void 0:t.length)?t[0]:null},[p,i]);return r.a.createElement("div",{className:I(Se,{[ke]:null===(t=c.get(g?g.templateUid:n))||void 0===t?void 0:t.get(g?g.templateMountPoint:i)}),style:a},r.a.createElement("div",{className:Ie},g?g.templateMountPoint:i),r.a.createElement($e,{nodeUid:n,mountPoint:i,delegatedContext:g,dropZoneStyle:d,dropZoneBodyStyle:s,slotContentLayout:l,showOutlineIfEmpty:u}))}F(".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 Ae=r.a.memo(we),je=Symbol.for("__BRICK_NEXT_BUILDER_CONTEXT_INSTANCE__");function Pe(){var e=window;return e[je]||(e[je]={manager:new G}),e[je]}var _e=0;function we(e){var{children:t}=e,n=Pe();return r.a.useEffect(()=>(_e++,()=>{0===--_e&&(window[je]=null)}),[]),r.a.createElement(V.Provider,{value:n},t)}function Be(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(){T.a.unmountComponentAtNode(this)}},{kind:"method",key:"_render",value:function(){this.isConnected&&this.nodeUid&&T.a.render(r.a.createElement(b.BrickWrapper,null,r.a.createElement(Ae,null,r.a.createElement(f.DndProvider,{backend:$.HTML5Backend},r.a.createElement(e,{nodeUid:this.nodeUid,editorProps:this.editorProps})))),this)}}]}}),b.UpdatingElement)}var Ue=Object(o.createContext)({});function Ze(e){var{nodeUid:t,isRoot:n,doNotExpandTemplates:r}=e,{rootId:i,edges:a}=z(),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 Re(e){var{nodes:t,edges:n}=z();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 Me(){var e=X(),[t,n]=Object(o.useState)(e.getRouteList());return Object(o.useEffect)(()=>e.onRouteListChange(()=>{n(e.getRouteList())}),[e]),t}function He(e,t){var n=X(),[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.77e2477a.js.map
|