@next-core/brick-container 2.96.12 → 2.96.13

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.
@@ -1,2 +0,0 @@
1
- !function(e){function t(t){for(var n,r,i=t[0],a=t[1],u=0,c=[];u<i.length;u++)r=i[u],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&c.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);c.length;)c.shift()()}var n={},o={0:0};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.e=function(e){var t=[],n=o[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=i);var a,u=document.createElement("script");u.charset="utf-8",u.timeout=120,r.nc&&u.setAttribute("nonce",r.nc),u.src=function(e){return r.p+""+({1:"mockdate"}[e]||e)+"."+{1:"59f45d37e8dce0f31118"}[e]+".js"}(e);var s=new Error;a=function(t){u.onerror=u.onload=null,clearTimeout(c);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,n[1](s)}o[e]=void 0}};var c=setTimeout((function(){a({type:"timeout",target:u})}),12e4);u.onerror=u.onload=a,document.head.appendChild(u)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var s=a;r(r.s="GR0M")}({"+Pr9":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var o,r="brick-container";!function(e){e.BOOTSTRAP_ERROR="BOOTSTRAP_ERROR",e.NETWORK_ERROR="NETWORK_ERROR"}(o||(o={}))},"0RJj":function(e,t,n){e.exports=n("XuQu")("0RJj")},"1OyB":function(e,t,n){e.exports=n("XuQu")("1OyB")},"1VXw":function(e,t,n){},"3tO9":function(e,t,n){e.exports=n("XuQu")("3tO9")},"5WJL":function(e,t,n){},"9RIe":function(e,t,n){e.exports=n("XuQu")("9RIe")},"9kay":function(e,t,n){e.exports=n("XuQu")("9kay")},GR0M:function(e,t,n){"use strict";n.r(t);var o=n("yXPU"),r=n.n(o),i=n("3tO9"),a=n.n(i),u=(n("wd/R"),n("XDpg"),n("q1tI")),s=n.n(u),c=n("i8i4"),l=n.n(c),d=n("gdfu"),p=n("tYg3"),f=n("JxWY"),g=n("9RIe"),h=n("vA6H");XMLHttpRequest.prototype.origOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){this.origOpen.apply(this,arguments);var e=Object(p.getAuth)().csrfToken;e&&this.setRequestHeader("X-CSRF-Token",e)},d.message.config({top:40});n("cVhX"),n("hv1i"),n("5WJL"),n("1VXw");var v=n("GrFY"),m=n("+Pr9");function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(f.getUrlWithParams)(e,t),[o,r]=n.split("?");if(r){var i=r.split("&");return"".concat(o,"?").concat(i.sort().join("&"))}return e}function y(e){return"string"==typeof e||Array.isArray(e)?e:(t=e,"[object Object]"!==Object.prototype.toString.call(t)||null===t||Array.isArray(t)?null:Object.keys(e).sort().reduce((t,n)=>(t[n]=e[n],t),{}));var t}var b=n("QILm"),k=n.n(b),S=n("0RJj"),O=!1,R=/^https?:\/\/localhost(?:$|:)/;function x(){return(x=r()((function*(e,t){if(O||!t)return!1;if("failed"===(yield e))return!1;O=!0;var n=t===location.origin||R.test(t)||R.test(location.origin);if(!n){var{allowedPreviewFromOrigins:o}=Object(p.getRuntime)().getMiscSettings();Array.isArray(o)&&(n=o.some(e=>e===t)),n||console.error("Preview is disallowed, from origin: ".concat(t,", while allowing: ").concat(JSON.stringify(o)))}return n}))).apply(this,arguments)}var E=["agent"];function I(){return(I=r()((function*(e,t){yield p.developHelper.loadDynamicBricksInBrickConf({brick:"next-previewer.preview-helper"}),document.createElement("next-previewer.preview-helper").start(e,t)}))).apply(this,arguments)}Object(g.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.d9f6a62d.js","react-dnd":"dll-of-react-dnd.0ca00465.js"},window.BRICK_NEXT_VERSIONS={"brick-container":"2.96.12","brick-dll":"2.47.9","brick-kit":"2.199.0","brick-utils":"2.52.2"},window.BRICK_NEXT_FEATURES=["edit-evaluations-and-transformations-in-devtools"];var T=document.body,j=Object(p.createRuntime)();window.USE_SKYWALKING_ANALYSIS&&h.SkywalkingAnalysis.initialize({collector:"".concat(location.origin).concat(j.getBasePath(),"skywalking_api"),service:"easyops::brick_next",pagePath:"".concat(location.pathname).concat(location.search),serviceVersion:"v1.0.0",enableSPA:!0,autoTracePerf:!0,useFmp:!0,traceSDKInternal:!0});var L,_,X,A={menuBar:T.querySelector("#menu-bar-mount-point"),appBar:T.querySelector("#app-bar-mount-point"),loadingBar:T.querySelector("#loading-bar-mount-point"),main:T.querySelector("#main-mount-point"),bg:T.querySelector("#bg-mount-point"),portal:T.querySelector("#portal-mount-point")},P="".concat(j.getBasePath(),"api/gateway/data_exchange.store.ClickHouseInsertData/api/v1/data_exchange/frontend_stat"),C=h.apiAnalyzer.create({api:P});Object(f.createHttpInstance)({adapter:(L=f.defaultAdapter,_=new Map,X=!0,window.addEventListener("http:cache.start",(function(){X=!0})),window.addEventListener("http:cache.end",(function(){X=!1,_.clear()})),e=>{var{method:t,url:n,options:o={},data:i}=e,{useCache:a=!0,params:u}=o;if(("get"===(t||"GET").toLowerCase()||n.includes("cmdb.instance.PostSearch"))&&X){var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=w(e,t),r=y(n);return JSON.stringify({url:o,body:r})}(n,u,i);if(a){var c=_.get(s);return c?(console.warn("[http] use cached request by cache adapter --\x3e ".concat(function(e){try{return JSON.parse(e).url}catch(t){return console.error(t),e}}(s))),c):(c=r()((function*(){try{return yield L(e)}catch(e){throw _.delete(s),e}}))(),_.set(s,c),c)}return _.delete(s),L(e)}return L(e)})}),f.http.interceptors.request.use((function(e){var t;return a()(a()({},e),{},{options:a()(a()({},e.options),{},{signal:null!==(t=e.options)&&void 0!==t&&t.noAbortOnRouteChange?null:p.abortController.getSignalToken()})})})),f.http.interceptors.request.use((function(e){var t,{csrfToken:n}=Object(p.getAuth)(),o=new Headers((null===(t=e.options)||void 0===t?void 0:t.headers)||{});o.set("lang",v.a.resolvedLanguage),n&&o.set("X-CSRF-Token",n);var r=Object(p.getMockInfo)(e.url,e.method);r&&(e.url=r.url,o.set("easyops-mock-id",r.mockId));var i=(()=>{for(var e="",t=0;t<16;t+=1){e+="0123456789abcdef"[Math.floor(16*Math.random())]}return e})();return o.set("X-B3-Traceid","ffffffffffffffff".concat(i)),o.set("X-B3-Spanid",i),o.set("X-B3-Sampled","1"),a()(a()({},e),{},{options:a()(a()({},e.options),{},{headers:o})})}));var F=()=>Object(p.getRuntimeMisc)().isInIframeOfSameSite&&!Object(p.getRuntimeMisc)().isInIframeOfVisualBuilder;function B(){return(B=r()((function*(){try{if(window.MOCK_DATE){var{set:e}=yield n.e(1).then(n.t.bind(null,"xKHS",7));e(window.MOCK_DATE)}return yield j.bootstrap(A),"ok"}catch(e){return console.error(e),document.body.classList.add("bootstrap-error","bars-hidden"),e instanceof Error&&"ChunkLoadError"===e.name?l.a.render(s.a.createElement(d.Result,{status:"error",title:v.a.t("".concat(m.b,":").concat(m.a.NETWORK_ERROR)),subTitle:Object(p.httpErrorToString)(e)}),A.main):l.a.render(s.a.createElement(d.Result,{status:"error",title:v.a.t("".concat(m.b,":").concat(m.a.BOOTSTRAP_ERROR)),subTitle:Object(p.httpErrorToString)(e)}),A.main),"failed"}}))).apply(this,arguments)}f.http.interceptors.request.use((function(e){var t,n;if(C){var{userInstanceId:o,username:r}=Object(p.getAuth)(),i=Date.now();e.meta={st:i,time:Math.round(i/1e3),uid:o,username:r}}null!==(t=e.options)&&void 0!==t&&null!==(n=t.interceptorParams)&&void 0!==n&&n.ignoreLoadingBar||(F()?window.parent:window).dispatchEvent(new CustomEvent("request.start"));return e})),f.http.interceptors.response.use((function(e){var t;return(F()?window.parent:window).dispatchEvent(new CustomEvent("request.end")),Object(p.getRuntime)().getFeatureFlags()["enable-analyzer"]&&(null==C||C.analyses(e)),"response"===(null===(t=e.config.options)||void 0===t?void 0:t.observe)?e:e.data}),(function(e){return Object(p.getRuntime)().getFeatureFlags()["enable-analyzer"]&&(null==C||C.analyses(e)),(F()?window.parent:window).dispatchEvent(new CustomEvent("request.end")),Promise.reject(e.error)})),window.Cypress&&(window.__test_only_getHistory=p.getHistory,window.__test_only_getBasePath=Object(p.getRuntime)().getBasePath,window.__test_only_getFeatureFlags=Object(p.getRuntime)().getFeatureFlags);var q,D,M=function(){return B.apply(this,arguments)}();window.parent!==window&&(q=M,D=function(){var e=r()((function*(e){var{data:t,origin:n}=e,o=function(e){return"preview-container"===(null==e?void 0:e.sender)&&"start-preview"===e.type}(t),r=function(e){return"ui-test-preview"===(null==e?void 0:e.channel)&&"initialize"===e.type}(t);if((o||r)&&(window.removeEventListener("message",D),yield function(e,t){return x.apply(this,arguments)}(q,n))){var i,a;if(o){var u,s=t.options;if(({agent:i}=s),a=k()(s,E),f.http.enableCache(!0),f.http.on("match-api-cache",e=>{window.parent.postMessage({type:"match-api-cache",sender:"previewer",forwardedFor:"builder",num:e},n)}),f.http.setClearCacheIgnoreList(a.clearPreviewRequestCacheIgnoreList||[]),null===(u=i)||void 0===u||!u.pkg)return function(e,t){return I.apply(this,arguments)}(n,a)}else({agent:i,options:a}=t.payload);yield Object(S.loadBricksImperatively)([i.brick],[i.pkg]);var c=document.createElement(i.brick);yield c.resolve(n,a)}}));return function(t){return e.apply(this,arguments)}}(),window.addEventListener("message",D))},GrFY:function(e,t,n){"use strict";var o=n("XzT5"),r=n("9kay"),i=n("wd/R"),a=n.n(i),u=n("1OyB"),s=n("vuIU"),c=[],l=c.forEach,d=c.slice;function p(e){return l.call(d.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}var f=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,g=function(e,t,n){var o=n||{};o.path=o.path||"/";var r=encodeURIComponent(t),i="".concat(e,"=").concat(r);if(o.maxAge>0){var a=o.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(a))}if(o.domain){if(!f.test(o.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(o.domain)}if(o.path){if(!f.test(o.path))throw new TypeError("option path is invalid");i+="; Path=".concat(o.path)}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires=".concat(o.expires.toUTCString())}if(o.httpOnly&&(i+="; HttpOnly"),o.secure&&(i+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},h=function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+60*n*1e3)),o&&(r.domain=o),document.cookie=g(e,encodeURIComponent(t),r)},v=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),o=0;o<n.length;o++){for(var r=n[o];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},m={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=v(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},w={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var o=n.substring(1).split("&"),r=0;r<o.length;r++){var i=o[r].indexOf("=");if(i>0)o[r].substring(0,i)===e.lookupQuerystring&&(t=o[r].substring(i+1))}}return t}},y=null,b=function(){if(null!==y)return y;try{y="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){y=!1}return y},k={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&b()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&b()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},S=null,O=function(){if(null!==S)return S;try{S="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(e){S=!1}return S},R={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&O()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&O()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},x={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},E={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},I={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},T={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}};var j=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(u.default)(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Object(s.default)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=p(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=n,this.addDetector(m),this.addDetector(w),this.addDetector(k),this.addDetector(R),this.addDetector(x),this.addDetector(E),this.addDetector(I),this.addDetector(T)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var o=t.detectors[e].lookup(t.options);o&&"string"==typeof o&&(o=[o]),o&&(n=n.concat(o))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();j.type="languageDetector";var L=n("tYg3"),_=n("+Pr9"),X={[_.a.BOOTSTRAP_ERROR]:"Bootstrap Error",[_.a.NETWORK_ERROR]:"Network error, please check your network."},A={[_.a.BOOTSTRAP_ERROR]:"启动错误",[_.a.NETWORK_ERROR]:"网络错误,请检查您的网络连接。"};o.default.on("languageChanged",(function(e){a.a.locale(e),document.documentElement.setAttribute("lang",e)})),o.default.use(j).use(r.initReactI18next).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{en:{[_.b]:X},zh:{[_.b]:A}}}),Object(L.initI18n)();t.a=o.default},JxWY:function(e,t,n){e.exports=n("XuQu")("JxWY")},QILm:function(e,t,n){e.exports=n("XuQu")("QILm")},XDpg:function(e,t,n){e.exports=n("XuQu")("XDpg")},XuQu:function(e,t){e.exports=dll},XzT5:function(e,t,n){e.exports=n("XuQu")("XzT5")},cVhX:function(e,t,n){},gdfu:function(e,t,n){e.exports=n("XuQu")("gdfu")},hv1i:function(e,t,n){},i8i4:function(e,t,n){e.exports=n("XuQu")("i8i4")},q1tI:function(e,t,n){e.exports=n("XuQu")("q1tI")},tYg3:function(e,t,n){e.exports=n("XuQu")("tYg3")},vA6H:function(e,t,n){e.exports=n("XuQu")("vA6H")},vuIU:function(e,t,n){e.exports=n("XuQu")("vuIU")},"wd/R":function(e,t,n){e.exports=n("XuQu")("wd/R")},yXPU:function(e,t,n){e.exports=n("XuQu")("yXPU")}});
2
- //# sourceMappingURL=main.c86b968dab0952987d34.js.map