@next-core/brick-container 2.90.19 → 2.90.21

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){var o={};function t(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=o,t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var i in e)t.d(n,i,function(o){return e[o]}.bind(null,i));return n},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s="Tkf5")}({"+Pr9":function(e,o,t){"use strict";t.d(o,"b",(function(){return i})),t.d(o,"a",(function(){return n}));var n,i="brick-container";!function(e){e.BOOTSTRAP_ERROR="BOOTSTRAP_ERROR"}(n||(n={}))},"1OyB":function(e,o,t){e.exports=t("XuQu")("1OyB")},"1VXw":function(e,o,t){},"5WJL":function(e,o,t){},"9RIe":function(e,o,t){e.exports=t("XuQu")("9RIe")},"9kay":function(e,o,t){e.exports=t("XuQu")("9kay")},GQp1:function(e,o,t){},GrFY:function(e,o,t){"use strict";var n=t("XzT5"),i=t("9kay"),r=t("wd/R"),a=t.n(r),u=t("1OyB"),c=t("vuIU"),s=[],l=s.forEach,d=s.slice;function f(e){return l.call(d.call(arguments,1),(function(o){if(o)for(var t in o)void 0===e[t]&&(e[t]=o[t])})),e}var p=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,g=function(e,o,t){var n=t||{};n.path=n.path||"/";var i=encodeURIComponent(o),r="".concat(e,"=").concat(i);if(n.maxAge>0){var a=n.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");r+="; Max-Age=".concat(Math.floor(a))}if(n.domain){if(!p.test(n.domain))throw new TypeError("option domain is invalid");r+="; Domain=".concat(n.domain)}if(n.path){if(!p.test(n.path))throw new TypeError("option path is invalid");r+="; Path=".concat(n.path)}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");r+="; Expires=".concat(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},h=function(e,o,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};t&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*t*1e3)),n&&(i.domain=n),document.cookie=g(e,encodeURIComponent(o),i)},m=function(e){for(var o="".concat(e,"="),t=document.cookie.split(";"),n=0;n<t.length;n++){for(var i=t[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(o))return i.substring(o.length,i.length)}return null},v={name:"cookie",lookup:function(e){var o;if(e.lookupCookie&&"undefined"!=typeof document){var t=m(e.lookupCookie);t&&(o=t)}return o},cacheUserLanguage:function(e,o){o.lookupCookie&&"undefined"!=typeof document&&h(o.lookupCookie,e,o.cookieMinutes,o.cookieDomain,o.cookieOptions)}},w={name:"querystring",lookup:function(e){var o;if("undefined"!=typeof window){var t=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(t=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=t.substring(1).split("&"),i=0;i<n.length;i++){var r=n[i].indexOf("=");if(r>0)n[i].substring(0,r)===e.lookupQuerystring&&(o=n[i].substring(r+1))}}return o}},S=null,k=function(){if(null!==S)return S;try{S="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){S=!1}return S},y={name:"localStorage",lookup:function(e){var o;if(e.lookupLocalStorage&&k()){var t=window.localStorage.getItem(e.lookupLocalStorage);t&&(o=t)}return o},cacheUserLanguage:function(e,o){o.lookupLocalStorage&&k()&&window.localStorage.setItem(o.lookupLocalStorage,e)}},b=null,x=function(){if(null!==b)return b;try{b="undefined"!==window&&null!==window.sessionStorage;window.sessionStorage.setItem("i18next.translate.boo","foo"),window.sessionStorage.removeItem("i18next.translate.boo")}catch(e){b=!1}return b},O={name:"sessionStorage",lookup:function(e){var o;if(e.lookupSessionStorage&&x()){var t=window.sessionStorage.getItem(e.lookupSessionStorage);t&&(o=t)}return o},cacheUserLanguage:function(e,o){o.lookupSessionStorage&&x()&&window.sessionStorage.setItem(o.lookupSessionStorage,e)}},I={name:"navigator",lookup:function(e){var o=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)o.push(navigator.languages[t]);navigator.userLanguage&&o.push(navigator.userLanguage),navigator.language&&o.push(navigator.language)}return o.length>0?o:void 0}},T={name:"htmlTag",lookup:function(e){var o,t=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return t&&"function"==typeof t.getAttribute&&(o=t.getAttribute("lang")),o}},R={name:"path",lookup:function(e){var o;if("undefined"!=typeof window){var t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(t instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof t[e.lookupFromPathIndex])return;o=t[e.lookupFromPathIndex].replace("/","")}else o=t[0].replace("/","")}return o}},L={name:"subdomain",lookup:function(e){var o="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,t="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(t)return t[o]}};var P=function(){function e(o){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(u.default)(this,e),this.type="languageDetector",this.detectors={},this.init(o,t)}return Object(c.default)(e,[{key:"init",value:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=f(o,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=t,this.addDetector(v),this.addDetector(w),this.addDetector(y),this.addDetector(O),this.addDetector(I),this.addDetector(T),this.addDetector(R),this.addDetector(L)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var o=this;e||(e=this.options.order);var t=[];return e.forEach((function(e){if(o.detectors[e]){var n=o.detectors[e].lookup(o.options);n&&"string"==typeof n&&(n=[n]),n&&(t=t.concat(n))}})),this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}},{key:"cacheUserLanguage",value:function(e,o){var t=this;o||(o=this.options.caches),o&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||o.forEach((function(o){t.detectors[o]&&t.detectors[o].cacheUserLanguage(e,t.options)})))}}]),e}();P.type="languageDetector";var j=t("tYg3"),U=t("+Pr9"),X={[U.a.BOOTSTRAP_ERROR]:"Bootstrap Error"},C={[U.a.BOOTSTRAP_ERROR]:"启动错误"};n.default.on("languageChanged",(function(e){a.a.locale(e),document.documentElement.setAttribute("lang",e)})),n.default.use(P).use(i.initReactI18next).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{en:{[U.b]:X},zh:{[U.b]:C}}}),Object(j.initI18n)();o.a=n.default},JxWY:function(e,o,t){e.exports=t("XuQu")("JxWY")},OzFo:function(e,o,t){},Tkf5:function(e,o,t){"use strict";t.r(o);var n=t("yXPU"),i=t.n(n),r=t("tYg3"),a=t("JxWY"),u=t("9RIe");t("GrFY"),t("dCvI"),t("a8Gk"),t("OzFo"),t("GQp1"),t("hv1i"),t("5WJL"),t("1VXw");Object(u.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"},a.http.interceptors.response.use((function(e){var o;return"response"===(null===(o=e.config.options)||void 0===o?void 0:o.observe)?e:e.data}),(function(e){return Promise.reject(e.error)}));var c=document.querySelector("#main-mount-point"),s=document.querySelector("#bg-mount-point"),l=document.querySelector("#portal-mount-point");window._preview_render=function(){var e=i()((function*(e){var{conf:o,theme:t}=e;Object(r.applyTheme)(t),yield r.developHelper.render({main:c,bg:s,portal:l},o)}));return function(o){return e.apply(this,arguments)}}()},XuQu:function(e,o){e.exports=dll},XzT5:function(e,o,t){e.exports=t("XuQu")("XzT5")},a8Gk:function(e,o,t){},dCvI:function(e,o,t){},hv1i:function(e,o,t){},tYg3:function(e,o,t){e.exports=t("XuQu")("tYg3")},vuIU:function(e,o,t){e.exports=t("XuQu")("vuIU")},"wd/R":function(e,o,t){e.exports=t("XuQu")("wd/R")},yXPU:function(e,o,t){e.exports=t("XuQu")("yXPU")}});
2
- //# sourceMappingURL=preview.5bd904f405c6c59a3c41.js.map