@next-bricks/form-platform 0.4.26 → 0.4.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +1 -1
- package/dist/chunks/1045.70643206.js +2 -0
- package/dist/chunks/1045.70643206.js.map +1 -0
- package/dist/chunks/1122.ab9b8222.js +2 -0
- package/dist/chunks/1122.ab9b8222.js.map +1 -0
- package/dist/chunks/114.e11748c3.js +2 -0
- package/dist/chunks/114.e11748c3.js.map +1 -0
- package/dist/chunks/1370.237efa45.js.map +1 -1
- package/dist/chunks/1889.05e34c52.js +2 -0
- package/dist/chunks/1889.05e34c52.js.map +1 -0
- package/dist/chunks/3144.0f338617.js +3 -0
- package/dist/chunks/3144.0f338617.js.map +1 -0
- package/dist/chunks/{3171.619cc1d8.js → 3171.afeb700d.js} +2 -2
- package/dist/chunks/{3171.619cc1d8.js.map → 3171.afeb700d.js.map} +1 -1
- package/dist/chunks/3214.32b97458.js +3 -0
- package/dist/chunks/3214.32b97458.js.map +1 -0
- package/dist/chunks/3426.ae005049.js +2 -0
- package/dist/chunks/3426.ae005049.js.map +1 -0
- package/dist/chunks/4041.8fec28b4.js +3 -0
- package/dist/chunks/4041.8fec28b4.js.map +1 -0
- package/dist/chunks/4185.c278a869.js +3 -0
- package/dist/chunks/4185.c278a869.js.map +1 -0
- package/dist/chunks/4310.4c750fd5.js +3 -0
- package/dist/chunks/4310.4c750fd5.js.map +1 -0
- package/dist/chunks/4696.21e88aca.js +3 -0
- package/dist/chunks/4696.21e88aca.js.map +1 -0
- package/dist/chunks/5250.6ab61935.js +3 -0
- package/dist/chunks/5250.6ab61935.js.map +1 -0
- package/dist/chunks/{5552.6e32c8d9.js → 5552.217f5df9.js} +2 -2
- package/dist/chunks/{5552.6e32c8d9.js.map → 5552.217f5df9.js.map} +1 -1
- package/dist/chunks/6773.e7c410cc.js +2 -0
- package/dist/chunks/6773.e7c410cc.js.map +1 -0
- package/dist/chunks/7087.caf3e36e.js +2 -0
- package/dist/chunks/7087.caf3e36e.js.map +1 -0
- package/dist/chunks/726.6f61afa3.js +2 -0
- package/dist/chunks/726.6f61afa3.js.map +1 -0
- package/dist/chunks/{7721.ff633403.js → 7721.e20e76da.js} +3 -3
- package/dist/chunks/7721.e20e76da.js.map +1 -0
- package/dist/chunks/7733.dd8d4665.js +2 -0
- package/dist/chunks/7733.dd8d4665.js.map +1 -0
- package/dist/chunks/843.53f0716d.js +2 -0
- package/dist/chunks/843.53f0716d.js.map +1 -0
- package/dist/chunks/871.9bffe04b.js +2 -0
- package/dist/chunks/871.9bffe04b.js.map +1 -0
- package/dist/chunks/8989.ddec3574.js +2 -0
- package/dist/chunks/8989.ddec3574.js.map +1 -0
- package/dist/chunks/9515.b803c371.js +2 -0
- package/dist/chunks/9515.b803c371.js.map +1 -0
- package/dist/chunks/{9844.72d6bae1.js → 9844.7dab098d.js} +2 -2
- package/dist/chunks/{9844.72d6bae1.js.map → 9844.7dab098d.js.map} +1 -1
- package/dist/chunks/eo-user-or-user-group-select.72ae1ac8.js +3 -0
- package/dist/chunks/eo-user-or-user-group-select.72ae1ac8.js.map +1 -0
- package/dist/chunks/main.73460ed0.js +2 -0
- package/dist/chunks/main.73460ed0.js.map +1 -0
- package/dist/index.13d02a11.js +2 -0
- package/dist/index.13d02a11.js.map +1 -0
- package/package.json +4 -4
- package/dist/chunks/1045.cbd45aa3.js +0 -2
- package/dist/chunks/1045.cbd45aa3.js.map +0 -1
- package/dist/chunks/1122.b886c4b1.js +0 -2
- package/dist/chunks/1122.b886c4b1.js.map +0 -1
- package/dist/chunks/114.0b8f3044.js +0 -2
- package/dist/chunks/114.0b8f3044.js.map +0 -1
- package/dist/chunks/1889.0188e543.js +0 -2
- package/dist/chunks/1889.0188e543.js.map +0 -1
- package/dist/chunks/2512.a259a683.js +0 -3
- package/dist/chunks/2512.a259a683.js.map +0 -1
- package/dist/chunks/3144.bf8c8136.js +0 -3
- package/dist/chunks/3144.bf8c8136.js.map +0 -1
- package/dist/chunks/3214.d92be2b5.js +0 -3
- package/dist/chunks/3214.d92be2b5.js.map +0 -1
- package/dist/chunks/3426.505fcf7d.js +0 -2
- package/dist/chunks/3426.505fcf7d.js.map +0 -1
- package/dist/chunks/4041.0a734a15.js +0 -3
- package/dist/chunks/4041.0a734a15.js.map +0 -1
- package/dist/chunks/4185.13e0d32d.js +0 -3
- package/dist/chunks/4185.13e0d32d.js.map +0 -1
- package/dist/chunks/4310.8f1e6a93.js +0 -3
- package/dist/chunks/4310.8f1e6a93.js.map +0 -1
- package/dist/chunks/5250.b18e2eb5.js +0 -3
- package/dist/chunks/5250.b18e2eb5.js.map +0 -1
- package/dist/chunks/6773.a7d98b49.js +0 -2
- package/dist/chunks/6773.a7d98b49.js.map +0 -1
- package/dist/chunks/7087.b07038c7.js +0 -2
- package/dist/chunks/7087.b07038c7.js.map +0 -1
- package/dist/chunks/726.ffa982e9.js +0 -2
- package/dist/chunks/726.ffa982e9.js.map +0 -1
- package/dist/chunks/7721.ff633403.js.map +0 -1
- package/dist/chunks/7733.a3e79aaf.js +0 -2
- package/dist/chunks/7733.a3e79aaf.js.map +0 -1
- package/dist/chunks/843.194a6c9c.js +0 -2
- package/dist/chunks/843.194a6c9c.js.map +0 -1
- package/dist/chunks/871.52f00adb.js +0 -2
- package/dist/chunks/871.52f00adb.js.map +0 -1
- package/dist/chunks/8989.2675d560.js +0 -2
- package/dist/chunks/8989.2675d560.js.map +0 -1
- package/dist/chunks/9515.4fbf1755.js +0 -2
- package/dist/chunks/9515.4fbf1755.js.map +0 -1
- package/dist/chunks/eo-user-or-user-group-select.a417ec72.js +0 -3
- package/dist/chunks/eo-user-or-user-group-select.a417ec72.js.map +0 -1
- package/dist/chunks/main.98d8ee90.js +0 -2
- package/dist/chunks/main.98d8ee90.js.map +0 -1
- package/dist/index.141737a8.js +0 -2
- package/dist/index.141737a8.js.map +0 -1
- /package/dist/chunks/{3144.bf8c8136.js.LICENSE.txt → 3144.0f338617.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{3214.d92be2b5.js.LICENSE.txt → 3214.32b97458.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4041.0a734a15.js.LICENSE.txt → 4041.8fec28b4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4185.13e0d32d.js.LICENSE.txt → 4185.c278a869.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4310.8f1e6a93.js.LICENSE.txt → 4310.4c750fd5.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{2512.a259a683.js.LICENSE.txt → 4696.21e88aca.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5250.b18e2eb5.js.LICENSE.txt → 5250.6ab61935.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{7721.ff633403.js.LICENSE.txt → 7721.e20e76da.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-user-or-user-group-select.a417ec72.js.LICENSE.txt → eo-user-or-user-group-select.72ae1ac8.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_form_platform=globalThis.webpackChunk_next_bricks_form_platform||[]).push([[7087],{2559:(t,r,e)=>{function n(t,r,e){if("function"==typeof t?t===r:t.has(r))return arguments.length<3?r:e;throw new TypeError("Private element is not present on this object")}e.d(r,{A:()=>n})},2016:(t,r,e)=>{function n(t,r){if(r.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}e.d(r,{A:()=>n})},829:(t,r,e)=>{e.d(r,{A:()=>o});var n=e(2559);function o(t,r){return t.get((0,n.A)(t,r))}},918:(t,r,e)=>{e.d(r,{A:()=>o});var n=e(2016);function o(t,r,e){(0,n.A)(t,r),r.set(t,e)}},6121:(t,r,e)=>{e.d(r,{A:()=>o});var n=e(2559);function o(t,r,e){return t.set((0,n.A)(t,r),e),e}},4635:(t,r,e)=>{e.d(r,{A:()=>o});var n=e(2016);function o(t,r){(0,n.A)(t,r),r.add(t)}},4586:(t,r,e)=>{e.d(r,{A:()=>o});var n=e(1369);function o(t,r,e){return(r=(0,n.A)(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}},1369:(t,r,e)=>{e.d(r,{A:()=>o});var n=e(7545);function o(t){var r=function(t,r){if("object"!=(0,n.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(r)?r:r+""}},7545:(t,r,e)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}e.d(r,{A:()=>n})}}]);
|
|
2
|
-
//# sourceMappingURL=7087.b07038c7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/7087.b07038c7.js","mappings":"oJAAe,SAASA,EAAkBC,EAAGC,EAAGC,GAC9C,GAAI,mBAAqBF,EAAIA,IAAMC,EAAID,EAAEG,IAAIF,GAAI,OAAOG,UAAUC,OAAS,EAAIJ,EAAIC,EACnF,MAAM,IAAII,UAAU,gDACtB,C,iCCHe,SAASC,EAA2BC,EAAKC,GACtD,GAAIA,EAAkBN,IAAIK,GACxB,MAAM,IAAIF,UAAU,iEAExB,C,+DCHe,SAASI,EAAuBC,EAAGC,GAChD,OAAOD,EAAEE,KAAI,OAAiBF,EAAGC,GACnC,C,+CCFe,SAASE,EAA2BN,EAAKO,EAAYC,IAClE,OAA0BR,EAAKO,GAC/BA,EAAWE,IAAIT,EAAKQ,EACtB,C,gDCHe,SAASE,EAAuBP,EAAGC,EAAGO,GACnD,OAAOR,EAAEM,KAAI,OAAiBN,EAAGC,GAAIO,GAAIA,CAC3C,C,gDCFe,SAASC,EAA4BZ,EAAKa,IACvD,OAA0Bb,EAAKa,GAC/BA,EAAWC,IAAId,EACjB,C,gDCHe,SAASe,EAAgBf,EAAKgB,EAAKR,GAYhD,OAXAQ,GAAM,OAAcA,MACThB,EACTiB,OAAOC,eAAelB,EAAKgB,EAAK,CAC9BR,MAAOA,EACPW,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZrB,EAAIgB,GAAOR,EAENR,CACT,C,gDCZe,SAASsB,EAAc7B,GACpC,IAAI8B,ECFS,SAAqB9B,EAAGkB,GACrC,GAAI,WAAY,OAAQlB,KAAOA,EAAG,OAAOA,EACzC,IAAID,EAAIC,EAAE+B,OAAOC,aACjB,QAAI,IAAWjC,EAAG,CAChB,IAAI+B,EAAI/B,EAAEkC,KAAKjC,EAAGkB,UAClB,GAAI,WAAY,OAAQY,GAAI,OAAOA,EACnC,MAAM,IAAIzB,UAAU,+CACtB,CACA,OAAyB6B,OAAiBlC,EAC5C,CDPUgC,CAAYhC,GACpB,MAAO,WAAY,OAAQ8B,GAAKA,EAAIA,EAAI,EAC1C,C,iBELe,SAASK,EAAQC,GAG9B,OAAOD,EAAU,mBAAqBJ,QAAU,iBAAmBA,OAAOM,SAAW,SAAUD,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBL,QAAUK,EAAEE,cAAgBP,QAAUK,IAAML,OAAOQ,UAAY,gBAAkBH,CACpH,EAAGD,EAAQC,EACb,C","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/assertClassBrand.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["export default function _assertClassBrand(e, t, n) {\n if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;\n throw new TypeError(\"Private element is not present on this object\");\n}","export default function _checkPrivateRedeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldGet2(s, a) {\n return s.get(assertClassBrand(s, a));\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldSet2(s, a, r) {\n return s.set(assertClassBrand(s, a), r), r;\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateMethodInitSpec(obj, privateSet) {\n checkPrivateRedeclaration(obj, privateSet);\n privateSet.add(obj);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}"],"names":["_assertClassBrand","e","t","n","has","arguments","length","TypeError","_checkPrivateRedeclaration","obj","privateCollection","_classPrivateFieldGet2","s","a","get","_classPrivateFieldInitSpec","privateMap","value","set","_classPrivateFieldSet2","r","_classPrivateMethodInitSpec","privateSet","add","_defineProperty","key","Object","defineProperty","enumerable","configurable","writable","toPropertyKey","i","Symbol","toPrimitive","call","String","_typeof","o","iterator","constructor","prototype"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_form_platform=globalThis.webpackChunk_next_bricks_form_platform||[]).push([[726],{5152:(e,o,t)=>{function n(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}t.d(o,{A:()=>n})},414:(e,o,t)=>{t.d(o,{A:()=>r});var n=t(1369);function i(e,o){for(var t=0;t<o.length;t++){var i=o[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,n.A)(i.key),i)}}function r(e,o,t){return o&&i(e.prototype,o),t&&i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}},1369:(e,o,t)=>{t.d(o,{A:()=>i});var n=t(7545);function i(e){var o=function(e,o){if("object"!=(0,n.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=(0,n.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(o)?o:o+""}},7545:(e,o,t)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.d(o,{A:()=>n})},726:(e,o,t)=>{t.r(o),t.d(o,{default:()=>x});var n=t(5152),i=t(414),r=[],a=r.forEach,u=r.slice,c=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,s={name:"cookie",lookup:function(e){var o;if(e.lookupCookie&&"undefined"!=typeof document){var t=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}(e.lookupCookie);t&&(o=t)}return o},cacheUserLanguage:function(e,o){o.lookupCookie&&"undefined"!=typeof document&&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=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(!c.test(n.domain))throw new TypeError("option domain is invalid");r+="; Domain=".concat(n.domain)}if(n.path){if(!c.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}(e,encodeURIComponent(o),i)}(o.lookupCookie,e,o.cookieMinutes,o.cookieDomain,o.cookieOptions)}},l={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("=");r>0&&n[i].substring(0,r)===e.lookupQuerystring&&(o=n[i].substring(r+1))}}return o}},d=null,f=function(){if(null!==d)return d;try{d="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){d=!1}return d},g={name:"localStorage",lookup:function(e){var o;if(e.lookupLocalStorage&&f()){var t=window.localStorage.getItem(e.lookupLocalStorage);t&&(o=t)}return o},cacheUserLanguage:function(e,o){o.lookupLocalStorage&&f()&&window.localStorage.setItem(o.lookupLocalStorage,e)}},p=null,h=function(){if(null!==p)return p;try{p="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){p=!1}return p},m={name:"sessionStorage",lookup:function(e){var o;if(e.lookupSessionStorage&&h()){var t=window.sessionStorage.getItem(e.lookupSessionStorage);t&&(o=t)}return o},cacheUserLanguage:function(e,o){o.lookupSessionStorage&&h()&&window.sessionStorage.setItem(o.lookupSessionStorage,e)}},v={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}},w={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}},k={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}},S={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]}},y=!1;try{document.cookie,y=!0}catch(e){}var b=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];y||b.splice(1,1);var x=function(){return(0,i.A)((function e(o){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.A)(this,e),this.type="languageDetector",this.detectors={},this.init(o,t)}),[{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||{languageUtils:{}},this.options=function(e){return a.call(u.call(arguments,1),(function(o){if(o)for(var t in o)void 0===e[t]&&(e[t]=o[t])})),e}(o,this.options||{},{order:b,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=t,this.addDetector(s),this.addDetector(l),this.addDetector(g),this.addDetector(m),this.addDetector(v),this.addDetector(w),this.addDetector(k),this.addDetector(S)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{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))}})),t=t.map((function(e){return o.options.convertDetectedLanguage(e)})),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)})))}}])}();x.type="languageDetector"}}]);
|
|
2
|
-
//# sourceMappingURL=726.ffa982e9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/726.ffa982e9.js","mappings":"mJAAe,SAASA,EAAgBC,EAAUC,GAChD,KAAMD,aAAoBC,GACxB,MAAM,IAAIC,UAAU,oCAExB,C,+DCHA,SAASC,EAAkBC,EAAQC,GACjC,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CACrC,IAAIE,EAAaH,EAAMC,GACvBE,EAAWC,WAAaD,EAAWC,aAAc,EACjDD,EAAWE,cAAe,EACtB,UAAWF,IAAYA,EAAWG,UAAW,GACjDC,OAAOC,eAAeT,GAAQ,OAAcI,EAAWM,KAAMN,EAC/D,CACF,CACe,SAASO,EAAad,EAAae,EAAYC,GAM5D,OALID,GAAYb,EAAkBF,EAAYiB,UAAWF,GACrDC,GAAad,EAAkBF,EAAagB,GAChDL,OAAOC,eAAeZ,EAAa,YAAa,CAC9CU,UAAU,IAELV,CACT,C,gDCfe,SAASkB,EAAcC,GACpC,IAAId,ECFS,SAAqBc,EAAGC,GACrC,GAAI,WAAY,OAAQD,KAAOA,EAAG,OAAOA,EACzC,IAAIE,EAAIF,EAAEG,OAAOC,aACjB,QAAI,IAAWF,EAAG,CAChB,IAAIhB,EAAIgB,EAAEG,KAAKL,EAAGC,UAClB,GAAI,WAAY,OAAQf,GAAI,OAAOA,EACnC,MAAM,IAAIJ,UAAU,+CACtB,CACA,OAAyBwB,OAAiBN,EAC5C,CDPUI,CAAYJ,GACpB,MAAO,WAAY,O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SACpDD,GAA4B,iBAAXA,IAAqBA,EAAS,CAACA,IAChDA,IAAQ2G,EAAWA,EAASpG,OAAOP,GACzC,CACF,IACA2G,EAAWA,EAASE,KAAI,SAAUC,GAChC,OAAOJ,EAAMzG,QAAQmG,wBAAwBU,EAC/C,IACItB,KAAKD,SAASM,cAAckB,sBAA8BJ,EACvDA,EAAS1I,OAAS,EAAI0I,EAAS,GAAK,IAC7C,GACC,CACDnI,IAAK,oBACLwC,MAAO,SAA2BD,EAAKmF,GACrC,IAAIc,EAASxB,KACRU,IAAQA,EAASV,KAAKvF,QAAQiG,QAC9BA,IACDV,KAAKvF,QAAQkG,iBAAmBX,KAAKvF,QAAQkG,gBAAgBtF,QAAQE,IAAQ,GACjFmF,EAAOvG,SAAQ,SAAUsH,GACnBD,EAAOtB,UAAUuB,IAAYD,EAAOtB,UAAUuB,GAAWnG,kBAAkBC,EAAKiG,EAAO/G,QAC7F,IACF,IAEJ,CAxE2B,GAyE3BqF,EAAQG,KAAO,kB","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/createClass.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js"],"sourcesContent":["export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\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]+$/;\nvar serializeCookie = function serializeCookie(name, val, options) {\n var opt = options || {};\n opt.path = opt.path || '/';\n var value = encodeURIComponent(val);\n var str = \"\".concat(name, \"=\").concat(value);\n if (opt.maxAge > 0) {\n var maxAge = opt.maxAge - 0;\n if (Number.isNaN(maxAge)) throw new Error('maxAge should be a Number');\n str += \"; Max-Age=\".concat(Math.floor(maxAge));\n }\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n str += \"; Domain=\".concat(opt.domain);\n }\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n str += \"; Path=\".concat(opt.path);\n }\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n str += \"; Expires=\".concat(opt.expires.toUTCString());\n }\n if (opt.httpOnly) str += '; HttpOnly';\n if (opt.secure) str += '; Secure';\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string' ? opt.sameSite.toLowerCase() : opt.sameSite;\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n return str;\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 if (minutes) {\n cookieOptions.expires = new Date();\n cookieOptions.expires.setTime(cookieOptions.expires.getTime() + minutes * 60 * 1000);\n }\n if (domain) cookieOptions.domain = domain;\n document.cookie = serializeCookie(name, encodeURIComponent(value), cookieOptions);\n },\n read: function read(name) {\n var nameEQ = \"\".concat(name, \"=\");\n var ca = document.cookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) === ' ') c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\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 if (options.lookupCookie && typeof document !== 'undefined') {\n var c = cookie.read(options.lookupCookie);\n if (c) found = c;\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 if (typeof window !== 'undefined') {\n var search = window.location.search;\n if (!window.location.search && window.location.hash && window.location.hash.indexOf('?') > -1) {\n search = window.location.hash.substring(window.location.hash.indexOf('?'));\n }\n var query = search.substring(1);\n var params = query.split('&');\n for (var i = 0; i < params.length; i++) {\n var pos = params[i].indexOf('=');\n if (pos > 0) {\n var key = params[i].substring(0, pos);\n if (key === options.lookupQuerystring) {\n found = params[i].substring(pos + 1);\n }\n }\n }\n }\n return found;\n }\n};\n\nvar hasLocalStorageSupport = null;\nvar localStorageAvailable = function localStorageAvailable() {\n if (hasLocalStorageSupport !== null) return hasLocalStorageSupport;\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 return hasLocalStorageSupport;\n};\nvar localStorage = {\n name: 'localStorage',\n lookup: function lookup(options) {\n var found;\n if (options.lookupLocalStorage && localStorageAvailable()) {\n var lng = window.localStorage.getItem(options.lookupLocalStorage);\n if (lng) found = lng;\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;\nvar sessionStorageAvailable = function sessionStorageAvailable() {\n if (hasSessionStorageSupport !== null) return hasSessionStorageSupport;\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 return hasSessionStorageSupport;\n};\nvar sessionStorage = {\n name: 'sessionStorage',\n lookup: function lookup(options) {\n var found;\n if (options.lookupSessionStorage && sessionStorageAvailable()) {\n var lng = window.sessionStorage.getItem(options.lookupSessionStorage);\n if (lng) found = lng;\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 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 if (navigator.userLanguage) {\n found.push(navigator.userLanguage);\n }\n if (navigator.language) {\n found.push(navigator.language);\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 if (htmlTag && typeof htmlTag.getAttribute === 'function') {\n found = htmlTag.getAttribute('lang');\n }\n return found;\n }\n};\n\nvar path = {\n name: 'path',\n lookup: function lookup(options) {\n var found;\n if (typeof window !== 'undefined') {\n var language = window.location.pathname.match(/\\/([a-zA-Z-]*)/g);\n if (language instanceof Array) {\n if (typeof options.lookupFromPathIndex === 'number') {\n if (typeof language[options.lookupFromPathIndex] !== 'string') {\n return undefined;\n }\n found = language[options.lookupFromPathIndex].replace('/', '');\n } else {\n found = language[0].replace('/', '');\n }\n }\n }\n return found;\n }\n};\n\nvar subdomain = {\n name: 'subdomain',\n lookup: function lookup(options) {\n // If given get the subdomain index else 1\n var lookupFromSubdomainIndex = typeof options.lookupFromSubdomainIndex === 'number' ? options.lookupFromSubdomainIndex + 1 : 1;\n // get all matches if window.location. is existing\n // first item of match is the match itself and the second is the first group macht which sould be the first subdomain match\n // is the hostname no public domain get the or option of localhost\n var language = typeof window !== 'undefined' && window.location && window.location.hostname && window.location.hostname.match(/^(\\w{2,5})\\.(([a-z0-9-]{1,63}\\.[a-z]{2,6})|localhost)/i);\n\n // if there is no match (null) return undefined\n if (!language) return undefined;\n // return the given group match\n return language[lookupFromSubdomainIndex];\n }\n};\n\n// some environments, throws when accessing document.cookie\nvar canCookies = false;\ntry {\n // eslint-disable-next-line no-unused-expressions\n document.cookie;\n canCookies = true;\n // eslint-disable-next-line no-empty\n} catch (e) {}\nvar order = ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'htmlTag'];\nif (!canCookies) order.splice(1, 1);\nfunction getDefaults() {\n return {\n order: order,\n lookupQuerystring: 'lng',\n lookupCookie: 'i18next',\n lookupLocalStorage: 'i18nextLng',\n lookupSessionStorage: 'i18nextLng',\n // cache user language\n caches: ['localStorage'],\n excludeCacheFor: ['cimode'],\n // cookieMinutes: 10,\n // cookieDomain: 'myDomain'\n\n convertDetectedLanguage: function convertDetectedLanguage(l) {\n return l;\n }\n };\n}\nvar Browser = /*#__PURE__*/function () {\n function Browser(services) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n _classCallCheck(this, Browser);\n this.type = 'languageDetector';\n this.detectors = {};\n this.init(services, options);\n }\n return _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 languageUtils: {}\n }; // this way the language detector can be used without i18next\n this.options = defaults(options, this.options || {}, getDefaults());\n if (typeof this.options.convertDetectedLanguage === 'string' && this.options.convertDetectedLanguage.indexOf('15897') > -1) {\n this.options.convertDetectedLanguage = function (l) {\n return l.replace('-', '_');\n };\n }\n\n // backwards compatibility\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 return this;\n }\n }, {\n key: \"detect\",\n value: function detect(detectionOrder) {\n var _this = this;\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 if (lookup && typeof lookup === 'string') lookup = [lookup];\n if (lookup) detected = detected.concat(lookup);\n }\n });\n detected = detected.map(function (d) {\n return _this.options.convertDetectedLanguage(d);\n });\n if (this.services.languageUtils.getBestMatchFromCodes) return detected; // new i18next v19.5.0\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 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}();\nBrowser.type = 'languageDetector';\n\nexport { Browser as default };\n"],"names":["_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","toPropertyKey","t","r","e","Symbol","toPrimitive","call","String","_typeof","o","iterator","constructor","arr","each","forEach","slice","fieldContentRegExp","cookie$1","name","lookup","options","found","lookupCookie","document","c","nameEQ","concat","ca","cookie","split","charAt","substring","indexOf","cacheUserLanguage","lng","value","minutes","domain","cookieOptions","arguments","undefined","path","sameSite","expires","Date","setTime","getTime","val","opt","encodeURIComponent","str","maxAge","Number","isNaN","Error","Math","floor","test","toUTCString","httpOnly","secure","toLowerCase","serializeCookie","cookieMinutes","cookieDomain","querystring","window","search","location","hash","params","pos","lookupQuerystring","hasLocalStorageSupport","localStorageAvailable","localStorage","testKey","setItem","removeItem","lookupLocalStorage","getItem","hasSessionStorageSupport","sessionStorageAvailable","sessionStorage","lookupSessionStorage","navigator$1","navigator","languages","push","userLanguage","language","htmlTag","documentElement","getAttribute","pathname","match","Array","lookupFromPathIndex","replace","subdomain","lookupFromSubdomainIndex","hostname","canCookies","order","splice","Browser","services","this","type","detectors","init","i18nOptions","languageUtils","obj","source","prop","defaults","caches","excludeCacheFor","convertDetectedLanguage","l","lookupFromUrlIndex","addDetector","detector","detectionOrder","_this","detected","detectorName","map","d","getBestMatchFromCodes","_this2","cacheName"],"sourceRoot":""}
|