@next-bricks/visual-builder 0.3.1 → 0.3.4

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.
Files changed (32) hide show
  1. package/dist/bricks.json +1 -1
  2. package/dist/chunks/{3458.5f8a0115.js → 3458.66325007.js} +2 -2
  3. package/dist/chunks/{8691.e37d630f.js.map → 3458.66325007.js.map} +1 -1
  4. package/dist/chunks/{3516.5a9e1d3b.js → 3516.ea921603.js} +3 -3
  5. package/dist/chunks/{3516.5a9e1d3b.js.map → 3516.ea921603.js.map} +1 -1
  6. package/dist/chunks/4131.1cc81acc.js +2 -0
  7. package/dist/chunks/4131.1cc81acc.js.map +1 -0
  8. package/dist/chunks/{6205.94095db4.js → 6205.26bbb5d8.js} +2 -2
  9. package/dist/chunks/{6205.94095db4.js.map → 6205.26bbb5d8.js.map} +1 -1
  10. package/dist/chunks/{7164.e6387b6f.js → 7164.d4cb48c0.js} +2 -2
  11. package/dist/chunks/{7164.e6387b6f.js.map → 7164.d4cb48c0.js.map} +1 -1
  12. package/dist/chunks/{8691.e37d630f.js → 8691.9e005ad1.js} +2 -2
  13. package/dist/chunks/{3458.5f8a0115.js.map → 8691.9e005ad1.js.map} +1 -1
  14. package/dist/chunks/{9185.e663a4fa.js → 9185.1d88c59a.js} +2 -2
  15. package/dist/chunks/{9185.e663a4fa.js.map → 9185.1d88c59a.js.map} +1 -1
  16. package/dist/chunks/{main.c749570c.js → main.8161a61e.js} +2 -2
  17. package/dist/chunks/{main.c749570c.js.map → main.8161a61e.js.map} +1 -1
  18. package/dist/chunks/{workbench-action-list.30a8dd89.js → workbench-action-list.904590b5.js} +2 -2
  19. package/dist/chunks/{workbench-action-list.30a8dd89.js.map → workbench-action-list.904590b5.js.map} +1 -1
  20. package/dist/{index.ba62b420.js → index.95bbdf64.js} +2 -2
  21. package/dist/{index.ba62b420.js.map → index.95bbdf64.js.map} +1 -1
  22. package/dist-types/shared/workbench/WorkbenchActionsContext.d.ts +1 -1
  23. package/dist-types/shared/workbench/WorkbenchTreeContext.d.ts +1 -1
  24. package/dist-types/shared/workbench/WorkbenchTreeDndContext.d.ts +1 -1
  25. package/dist-types/utils/setDragImage.d.ts +1 -1
  26. package/dist-types/workbench-pane/index.d.ts +1 -1
  27. package/dist-types/workbench-sidebar/index.d.ts +1 -1
  28. package/dist-types/workbench-tree/index.d.ts +1 -1
  29. package/package.json +2 -2
  30. package/dist/chunks/2255.eeeb50de.js +0 -2
  31. package/dist/chunks/2255.eeeb50de.js.map +0 -1
  32. /package/dist/chunks/{3516.5a9e1d3b.js.LICENSE.txt → 3516.ea921603.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[6205,7164],{7164:(e,i,n)=>{n.r(i),n.d(i,{i18n:()=>f,i18nText:()=>c,initializeI18n:()=>l});var r=n(4829),t=n(860),a=n(5366),s=!1,u=new Set;function l(e,i){if(s||(s=!0,t.i18n.use(a.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),e&&i&&!u.has(e))for(var[n,r]of(u.add(e),Object.entries(i)))t.i18n.addResourceBundle(n,e,r)}var o=n(9621);function c(e){var i;if(e){var n=null!==(i=t.i18n.language)&&void 0!==i?i:"zh-CN";if((0,o.hasOwnProperty)(e,n))return e[n];var r=n.split("-")[0];if(r!==n)return(0,o.hasOwnProperty)(e,r)?e[r]:void 0;var a="".concat(r,"-");for(var s of Object.keys(e))if(s.startsWith(a))return e[s]}}var f=r.default}}]);
2
- //# sourceMappingURL=6205.94095db4.js.map
1
+ "use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[6205,7164],{7164:(e,i,n)=>{n.r(i),n.d(i,{i18n:()=>f,i18nText:()=>c,initializeI18n:()=>l});var r=n(4829),t=n(860),a=n(5366),s=!1,u=new Set;function l(e,i){if(s||(s=!0,t.i18n.use(a.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),e&&i&&!u.has(e))for(var[n,r]of(u.add(e),Object.entries(i)))t.i18n.addResourceBundle(n,e,r)}var o=n(1364);function c(e){var i;if(e){var n=null!==(i=t.i18n.language)&&void 0!==i?i:"zh-CN";if((0,o.hasOwnProperty)(e,n))return e[n];var r=n.split("-")[0];if(r!==n)return(0,o.hasOwnProperty)(e,r)?e[r]:void 0;var a="".concat(r,"-");for(var s of Object.keys(e))if(s.startsWith(a))return e[s]}}var f=r.default}}]);
2
+ //# sourceMappingURL=6205.26bbb5d8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/6205.94095db4.js","mappings":"+OAEIA,GAAc,EACdC,EAAwB,IAAIC,IACzB,SAASC,EAAeC,EAAIC,GAyBjC,GAxBKL,IACHA,GAAc,EACd,EAAAM,KAAA,IAIoF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAGfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXb,GAAOC,IAAWJ,EAAsBiB,IAAId,GAIjD,IAAK,IAAKe,EAAMF,KADhBhB,EAAsBmB,IAAIhB,GACIiB,OAAOC,QAAQjB,IAC3C,EAAAC,KAAA,kBAAuBa,EAAMf,EAAIa,EAErC,C,cClCO,SAASM,EAASC,GACvB,IAAIC,EACJ,GAAKD,EAAL,CAGA,IAAIE,EAAgD,QAApCD,EAAiB,EAAAnB,KAAA,gBAA8C,IAAnBmB,EAA4BA,EAAiB,QAEzG,IAAI,IAAAE,gBAAeH,EAAME,GACvB,OAAOF,EAAKE,GAGd,IAAIE,EAAkBF,EAASG,MAAM,KAAK,GAC1C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeH,EAAMI,GAAmBJ,EAAKI,QAAmBE,EAKzE,IAAIC,EAAS,GAAGC,OAAOJ,EAAiB,KACxC,IAAK,IAAIK,KAAOZ,OAAOa,KAAKV,GAC1B,GAAIS,EAAIE,WAAWJ,GACjB,OAAOP,EAAKS,EAnBhB,CAsBF,CC3BO,IAAI3B,EAA6E,S","sources":["webpack:///../../node_modules/@next-core/i18n/dist/esm/init.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/text.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/index.js"],"sourcesContent":["import { i18n } from \"@next-core/i18n\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nvar initialized = false;\nvar initializedNamespaces = new Set();\nexport function initializeI18n(NS, locales) {\n if (!initialized) {\n initialized = true;\n i18n\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(process.env.NODE_ENV === \"test\" ? LanguageDetector : /* istanbul ignore next */LanguageDetector.default)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\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\n react: {\n useSuspense: false\n },\n compatibilityJSON: \"v3\",\n resources: {}\n });\n }\n if (!NS || !locales || initializedNamespaces.has(NS)) {\n return;\n }\n initializedNamespaces.add(NS);\n for (var [lang, resources] of Object.entries(locales)) {\n i18n.addResourceBundle(lang, NS, resources);\n }\n}\n//# sourceMappingURL=init.js.map","import { i18n } from \"@next-core/i18n\";\nimport { hasOwnProperty } from \"@next-core/utils/general\";\nexport function i18nText(data) {\n var _i18n$language;\n if (!data) {\n return;\n }\n var language = (_i18n$language = i18n.language) !== null && _i18n$language !== void 0 ? _i18n$language : \"zh-CN\";\n // First, make a perfect match.\n if (hasOwnProperty(data, language)) {\n return data[language];\n }\n // https://en.wikipedia.org/wiki/IETF_language_tag\n var primaryLanguage = language.split(\"-\")[0];\n if (primaryLanguage !== language) {\n // Then, match the primary language (which omits other subtags).\n // E.g., match `zh` if the current language is `zh-CN`.\n return hasOwnProperty(data, primaryLanguage) ? data[primaryLanguage] : undefined;\n }\n // At last, match the first key which starts with the primary language,\n // if the current language contains primary subtag only.\n // E.g., match `zh-CN` if the current language is `zh`.\n var prefix = \"\".concat(primaryLanguage, \"-\");\n for (var key of Object.keys(data)) {\n if (key.startsWith(prefix)) {\n return data[key];\n }\n }\n}\n//# sourceMappingURL=text.js.map","import i18next from \"i18next\";\nexport var i18n = process.env.NODE_ENV === \"test\" ? i18next : /* istanbul ignore next */i18next.default;\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n//# sourceMappingURL=index.js.map"],"names":["initialized","initializedNamespaces","Set","initializeI18n","NS","locales","i18n","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","lang","add","Object","entries","i18nText","data","_i18n$language","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","concat","key","keys","startsWith"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/6205.26bbb5d8.js","mappings":"+OAEIA,GAAc,EACdC,EAAwB,IAAIC,IACzB,SAASC,EAAeC,EAAIC,GAyBjC,GAxBKL,IACHA,GAAc,EACd,EAAAM,KAAA,IAIoF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAGfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXb,GAAOC,IAAWJ,EAAsBiB,IAAId,GAIjD,IAAK,IAAKe,EAAMF,KADhBhB,EAAsBmB,IAAIhB,GACIiB,OAAOC,QAAQjB,IAC3C,EAAAC,KAAA,kBAAuBa,EAAMf,EAAIa,EAErC,C,cClCO,SAASM,EAASC,GACvB,IAAIC,EACJ,GAAKD,EAAL,CAGA,IAAIE,EAAgD,QAApCD,EAAiB,EAAAnB,KAAA,gBAA8C,IAAnBmB,EAA4BA,EAAiB,QAEzG,IAAI,IAAAE,gBAAeH,EAAME,GACvB,OAAOF,EAAKE,GAGd,IAAIE,EAAkBF,EAASG,MAAM,KAAK,GAC1C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeH,EAAMI,GAAmBJ,EAAKI,QAAmBE,EAKzE,IAAIC,EAAS,GAAGC,OAAOJ,EAAiB,KACxC,IAAK,IAAIK,KAAOZ,OAAOa,KAAKV,GAC1B,GAAIS,EAAIE,WAAWJ,GACjB,OAAOP,EAAKS,EAnBhB,CAsBF,CC3BO,IAAI3B,EAA6E,S","sources":["webpack:///../../node_modules/@next-core/i18n/dist/esm/init.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/text.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/index.js"],"sourcesContent":["import { i18n } from \"@next-core/i18n\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nvar initialized = false;\nvar initializedNamespaces = new Set();\nexport function initializeI18n(NS, locales) {\n if (!initialized) {\n initialized = true;\n i18n\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(process.env.NODE_ENV === \"test\" ? LanguageDetector : /* istanbul ignore next */LanguageDetector.default)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\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\n react: {\n useSuspense: false\n },\n compatibilityJSON: \"v3\",\n resources: {}\n });\n }\n if (!NS || !locales || initializedNamespaces.has(NS)) {\n return;\n }\n initializedNamespaces.add(NS);\n for (var [lang, resources] of Object.entries(locales)) {\n i18n.addResourceBundle(lang, NS, resources);\n }\n}\n//# sourceMappingURL=init.js.map","import { i18n } from \"@next-core/i18n\";\nimport { hasOwnProperty } from \"@next-core/utils/general\";\nexport function i18nText(data) {\n var _i18n$language;\n if (!data) {\n return;\n }\n var language = (_i18n$language = i18n.language) !== null && _i18n$language !== void 0 ? _i18n$language : \"zh-CN\";\n // First, make a perfect match.\n if (hasOwnProperty(data, language)) {\n return data[language];\n }\n // https://en.wikipedia.org/wiki/IETF_language_tag\n var primaryLanguage = language.split(\"-\")[0];\n if (primaryLanguage !== language) {\n // Then, match the primary language (which omits other subtags).\n // E.g., match `zh` if the current language is `zh-CN`.\n return hasOwnProperty(data, primaryLanguage) ? data[primaryLanguage] : undefined;\n }\n // At last, match the first key which starts with the primary language,\n // if the current language contains primary subtag only.\n // E.g., match `zh-CN` if the current language is `zh`.\n var prefix = \"\".concat(primaryLanguage, \"-\");\n for (var key of Object.keys(data)) {\n if (key.startsWith(prefix)) {\n return data[key];\n }\n }\n}\n//# sourceMappingURL=text.js.map","import i18next from \"i18next\";\nexport var i18n = process.env.NODE_ENV === \"test\" ? i18next : /* istanbul ignore next */i18next.default;\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n//# sourceMappingURL=index.js.map"],"names":["initialized","initializedNamespaces","Set","initializeI18n","NS","locales","i18n","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","lang","add","Object","entries","i18nText","data","_i18n$language","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","concat","key","keys","startsWith"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[7164,6205],{7164:(e,i,n)=>{n.r(i),n.d(i,{i18n:()=>f,i18nText:()=>c,initializeI18n:()=>l});var r=n(4829),t=n(860),a=n(5366),s=!1,u=new Set;function l(e,i){if(s||(s=!0,t.i18n.use(a.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),e&&i&&!u.has(e))for(var[n,r]of(u.add(e),Object.entries(i)))t.i18n.addResourceBundle(n,e,r)}var o=n(9621);function c(e){var i;if(e){var n=null!==(i=t.i18n.language)&&void 0!==i?i:"zh-CN";if((0,o.hasOwnProperty)(e,n))return e[n];var r=n.split("-")[0];if(r!==n)return(0,o.hasOwnProperty)(e,r)?e[r]:void 0;var a="".concat(r,"-");for(var s of Object.keys(e))if(s.startsWith(a))return e[s]}}var f=r.default}}]);
2
- //# sourceMappingURL=7164.e6387b6f.js.map
1
+ "use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[7164,6205],{7164:(e,i,n)=>{n.r(i),n.d(i,{i18n:()=>f,i18nText:()=>c,initializeI18n:()=>l});var r=n(4829),t=n(860),a=n(5366),s=!1,u=new Set;function l(e,i){if(s||(s=!0,t.i18n.use(a.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),e&&i&&!u.has(e))for(var[n,r]of(u.add(e),Object.entries(i)))t.i18n.addResourceBundle(n,e,r)}var o=n(1364);function c(e){var i;if(e){var n=null!==(i=t.i18n.language)&&void 0!==i?i:"zh-CN";if((0,o.hasOwnProperty)(e,n))return e[n];var r=n.split("-")[0];if(r!==n)return(0,o.hasOwnProperty)(e,r)?e[r]:void 0;var a="".concat(r,"-");for(var s of Object.keys(e))if(s.startsWith(a))return e[s]}}var f=r.default}}]);
2
+ //# sourceMappingURL=7164.d4cb48c0.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/7164.e6387b6f.js","mappings":"+OAEIA,GAAc,EACdC,EAAwB,IAAIC,IACzB,SAASC,EAAeC,EAAIC,GAyBjC,GAxBKL,IACHA,GAAc,EACd,EAAAM,KAAA,IAIoF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAGfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXb,GAAOC,IAAWJ,EAAsBiB,IAAId,GAIjD,IAAK,IAAKe,EAAMF,KADhBhB,EAAsBmB,IAAIhB,GACIiB,OAAOC,QAAQjB,IAC3C,EAAAC,KAAA,kBAAuBa,EAAMf,EAAIa,EAErC,C,cClCO,SAASM,EAASC,GACvB,IAAIC,EACJ,GAAKD,EAAL,CAGA,IAAIE,EAAgD,QAApCD,EAAiB,EAAAnB,KAAA,gBAA8C,IAAnBmB,EAA4BA,EAAiB,QAEzG,IAAI,IAAAE,gBAAeH,EAAME,GACvB,OAAOF,EAAKE,GAGd,IAAIE,EAAkBF,EAASG,MAAM,KAAK,GAC1C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeH,EAAMI,GAAmBJ,EAAKI,QAAmBE,EAKzE,IAAIC,EAAS,GAAGC,OAAOJ,EAAiB,KACxC,IAAK,IAAIK,KAAOZ,OAAOa,KAAKV,GAC1B,GAAIS,EAAIE,WAAWJ,GACjB,OAAOP,EAAKS,EAnBhB,CAsBF,CC3BO,IAAI3B,EAA6E,S","sources":["webpack:///../../node_modules/@next-core/i18n/dist/esm/init.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/text.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/index.js"],"sourcesContent":["import { i18n } from \"@next-core/i18n\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nvar initialized = false;\nvar initializedNamespaces = new Set();\nexport function initializeI18n(NS, locales) {\n if (!initialized) {\n initialized = true;\n i18n\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(process.env.NODE_ENV === \"test\" ? LanguageDetector : /* istanbul ignore next */LanguageDetector.default)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\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\n react: {\n useSuspense: false\n },\n compatibilityJSON: \"v3\",\n resources: {}\n });\n }\n if (!NS || !locales || initializedNamespaces.has(NS)) {\n return;\n }\n initializedNamespaces.add(NS);\n for (var [lang, resources] of Object.entries(locales)) {\n i18n.addResourceBundle(lang, NS, resources);\n }\n}\n//# sourceMappingURL=init.js.map","import { i18n } from \"@next-core/i18n\";\nimport { hasOwnProperty } from \"@next-core/utils/general\";\nexport function i18nText(data) {\n var _i18n$language;\n if (!data) {\n return;\n }\n var language = (_i18n$language = i18n.language) !== null && _i18n$language !== void 0 ? _i18n$language : \"zh-CN\";\n // First, make a perfect match.\n if (hasOwnProperty(data, language)) {\n return data[language];\n }\n // https://en.wikipedia.org/wiki/IETF_language_tag\n var primaryLanguage = language.split(\"-\")[0];\n if (primaryLanguage !== language) {\n // Then, match the primary language (which omits other subtags).\n // E.g., match `zh` if the current language is `zh-CN`.\n return hasOwnProperty(data, primaryLanguage) ? data[primaryLanguage] : undefined;\n }\n // At last, match the first key which starts with the primary language,\n // if the current language contains primary subtag only.\n // E.g., match `zh-CN` if the current language is `zh`.\n var prefix = \"\".concat(primaryLanguage, \"-\");\n for (var key of Object.keys(data)) {\n if (key.startsWith(prefix)) {\n return data[key];\n }\n }\n}\n//# sourceMappingURL=text.js.map","import i18next from \"i18next\";\nexport var i18n = process.env.NODE_ENV === \"test\" ? i18next : /* istanbul ignore next */i18next.default;\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n//# sourceMappingURL=index.js.map"],"names":["initialized","initializedNamespaces","Set","initializeI18n","NS","locales","i18n","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","lang","add","Object","entries","i18nText","data","_i18n$language","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","concat","key","keys","startsWith"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/7164.d4cb48c0.js","mappings":"+OAEIA,GAAc,EACdC,EAAwB,IAAIC,IACzB,SAASC,EAAeC,EAAIC,GAyBjC,GAxBKL,IACHA,GAAc,EACd,EAAAM,KAAA,IAIoF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAGfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXb,GAAOC,IAAWJ,EAAsBiB,IAAId,GAIjD,IAAK,IAAKe,EAAMF,KADhBhB,EAAsBmB,IAAIhB,GACIiB,OAAOC,QAAQjB,IAC3C,EAAAC,KAAA,kBAAuBa,EAAMf,EAAIa,EAErC,C,cClCO,SAASM,EAASC,GACvB,IAAIC,EACJ,GAAKD,EAAL,CAGA,IAAIE,EAAgD,QAApCD,EAAiB,EAAAnB,KAAA,gBAA8C,IAAnBmB,EAA4BA,EAAiB,QAEzG,IAAI,IAAAE,gBAAeH,EAAME,GACvB,OAAOF,EAAKE,GAGd,IAAIE,EAAkBF,EAASG,MAAM,KAAK,GAC1C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeH,EAAMI,GAAmBJ,EAAKI,QAAmBE,EAKzE,IAAIC,EAAS,GAAGC,OAAOJ,EAAiB,KACxC,IAAK,IAAIK,KAAOZ,OAAOa,KAAKV,GAC1B,GAAIS,EAAIE,WAAWJ,GACjB,OAAOP,EAAKS,EAnBhB,CAsBF,CC3BO,IAAI3B,EAA6E,S","sources":["webpack:///../../node_modules/@next-core/i18n/dist/esm/init.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/text.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/index.js"],"sourcesContent":["import { i18n } from \"@next-core/i18n\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nvar initialized = false;\nvar initializedNamespaces = new Set();\nexport function initializeI18n(NS, locales) {\n if (!initialized) {\n initialized = true;\n i18n\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(process.env.NODE_ENV === \"test\" ? LanguageDetector : /* istanbul ignore next */LanguageDetector.default)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\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\n react: {\n useSuspense: false\n },\n compatibilityJSON: \"v3\",\n resources: {}\n });\n }\n if (!NS || !locales || initializedNamespaces.has(NS)) {\n return;\n }\n initializedNamespaces.add(NS);\n for (var [lang, resources] of Object.entries(locales)) {\n i18n.addResourceBundle(lang, NS, resources);\n }\n}\n//# sourceMappingURL=init.js.map","import { i18n } from \"@next-core/i18n\";\nimport { hasOwnProperty } from \"@next-core/utils/general\";\nexport function i18nText(data) {\n var _i18n$language;\n if (!data) {\n return;\n }\n var language = (_i18n$language = i18n.language) !== null && _i18n$language !== void 0 ? _i18n$language : \"zh-CN\";\n // First, make a perfect match.\n if (hasOwnProperty(data, language)) {\n return data[language];\n }\n // https://en.wikipedia.org/wiki/IETF_language_tag\n var primaryLanguage = language.split(\"-\")[0];\n if (primaryLanguage !== language) {\n // Then, match the primary language (which omits other subtags).\n // E.g., match `zh` if the current language is `zh-CN`.\n return hasOwnProperty(data, primaryLanguage) ? data[primaryLanguage] : undefined;\n }\n // At last, match the first key which starts with the primary language,\n // if the current language contains primary subtag only.\n // E.g., match `zh-CN` if the current language is `zh`.\n var prefix = \"\".concat(primaryLanguage, \"-\");\n for (var key of Object.keys(data)) {\n if (key.startsWith(prefix)) {\n return data[key];\n }\n }\n}\n//# sourceMappingURL=text.js.map","import i18next from \"i18next\";\nexport var i18n = process.env.NODE_ENV === \"test\" ? i18next : /* istanbul ignore next */i18next.default;\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n//# sourceMappingURL=index.js.map"],"names":["initialized","initializedNamespaces","Set","initializeI18n","NS","locales","i18n","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","lang","add","Object","entries","i18nText","data","_i18n$language","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","concat","key","keys","startsWith"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[8691,3458],{3458:(e,t,r)=>{function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){if("string"==typeof t?o.name===t:t.includes(o.name)){for(var i=[],s=1;s<=r;s++){var c=a[a.length-s];if("MemberExpression"===(null==c?void 0:c.node.type)&&"object"===c.key){var u=c.node;u.computed||"Identifier"!==u.property.type?u.computed&&"Literal"===u.property.type&&"string"==typeof u.property.value?i.push(n?"".concat(o.name,".").concat(u.property.value):u.property.value):e.hasNonStaticUsage=!0:i.push(n?"".concat(o.name,".").concat(u.property.name):u.property.name)}else e.hasNonStaticUsage=!0}i.length===r&&e.usedProperties.add(i.join("."))}}}function o(e,t){return function(r,n,o){if(n.name===e){var a=o[o.length-1],i=o[o.length-2];if("CallExpression"===(null==i?void 0:i.node.type)&&"callee"===(null==i?void 0:i.key)&&"MemberExpression"===(null==a?void 0:a.node.type)&&"object"===a.key&&(a.node.computed?"Literal"===a.node.property.type&&a.node.property.value===t:"Identifier"===a.node.property.type&&a.node.property.name===t)){var s=i.node.arguments;if(s.length>0){var c=s[0];"Literal"===c.type&&"string"==typeof c.value?r.usedArgs.add(c.value):r.hasNonStaticUsage=!0}}}}}r.r(t),r.d(t,{beforeVisitGlobalMember:()=>n,collectAppGetMenuUsage:()=>a,collectInstalledAppsHasUsage:()=>i,collectMemberUsage:()=>p,collectMemberUsageInFunction:()=>h,createProviderClass:()=>c.createProviderClass,scanPermissionActionsInAny:()=>P,scanPermissionActionsInStoryboard:()=>m,strictCollectMemberUsage:()=>l,strictCollectMemberUsageInFunction:()=>g,track:()=>d,trackAll:()=>f,traverseStoryboardExpressions:()=>u,traverseStoryboardFunction:()=>y,traverseStoryboardFunctions:()=>v,unwrapProvider:()=>c.unwrapProvider});var a=o("APP","getMenu"),i=o("INSTALLED_APPS","has"),s=r(3405),c=r(9621);function u(e,t,r){var n=new WeakSet,{matchExpressionString:o,visitNotMatchedExpressionString:a,visitNonExpressionString:i,visitObject:u}="string"==typeof r?{matchExpressionString:e=>e.includes(r)}:r;!function e(r){if("string"==typeof r)if((0,s.isEvaluable)(r))if(o(r))try{(0,s.preevaluate)(r,{withParent:!0,hooks:{beforeVisitGlobal(e,n){t(e,n,r)}}})}catch(e){console.error("Parse storyboard expression failed:",e)}else null==a||a(r);else null==i||i(r);else if((0,c.isObject)(r)){if(n.has(r))return;for(var l of(n.add(r),null==u||u(r),Array.isArray(r)?r:Object.values(r)))e(l)}}(e)}function l(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{hasNonStaticUsage:n,nonStaticUsage:o,usedProperties:a}=p(e,t,r);if(n)throw new Error("Non-static usage of ".concat(t,' is prohibited, check your expression: "').concat(o,'"'));return a}function p(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o={usedProperties:new Set,hasNonStaticUsage:!1},a=n(o,t,r);return u(e,((e,t,r)=>{a(e,t),o.hasNonStaticUsage&&(o.nonStaticUsage=r)}),t),o}function d(e,t,r){if(e.includes(t)){var o,a={usedProperties:new Set,hasNonStaticUsage:!1},{expression:i}=(0,s.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal:n(a,r)}});if("SequenceExpression"===i.type&&(o=i.expressions[0])&&"Literal"===o.type&&o.value===t){if(a.usedProperties.size>0)return a.usedProperties;console.warn('You are using "'.concat(t,'" but no `').concat(r,"` usage found in your expression: ").concat(JSON.stringify(e)))}}return!1}function f(e){if(e){var t={usedProperties:new Set,hasNonStaticUsage:!1};if((0,s.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal:n(t,["CTX","STATE","FORM_STATE"],1,!0)}}),t.usedProperties.size>0){var r=[...t.usedProperties],o={context:!1,state:!1,formState:!1},a={CTX:"context",STATE:"state",FORM_STATE:"formState"};return r.forEach((e=>{var[t,r]=e.split(".");o[a[t]]||(o[a[t]]=[]),o[a[t]].push(r)})),o}console.warn('You are using track all but no "CTX" or "STATE" or "FORM_STATE" usage found in your expression: '.concat(JSON.stringify(e)))}return!1}function v(e,t){if(Array.isArray(e))for(var r of e)y(r,t)}function y(e,t){try{(0,s.precookFunction)(e.source,{typescript:e.typescript,withParent:!0,hooks:{beforeVisitGlobal:t}})}catch(t){console.error('Parse storyboard function "'.concat(e.name,'" failed:'),t)}}function g(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{hasNonStaticUsage:n,usedProperties:o}=h(e,t,r);if(n)throw new Error("Non-static usage of ".concat(t,' is prohibited, check your function: "').concat(e.name,'"'));return o}function h(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o={usedProperties:new Set,hasNonStaticUsage:!1};return y(e,n(o,t,r)),o.usedProperties.delete(e.name),o}var S="PERMISSIONS",b="check";function m(e){var t,r=new Set,n=k(r),{customTemplates:o,functions:a}=null!==(t=e.meta)&&void 0!==t?t:{};return u([e.routes,o],n,S),v(a,n),Array.from(r)}function P(e){var t=new Set;return u(e,k(t),S),Array.from(t)}function k(e){return function(t,r){if(t.name===S){var n=r[r.length-1],o=r[r.length-2];if("CallExpression"===(null==o?void 0:o.node.type)&&"callee"===(null==o?void 0:o.key)&&"MemberExpression"===(null==n?void 0:n.node.type)&&"object"===n.key&&(n.node.computed?"Literal"===n.node.property.type&&n.node.property.value===b:"Identifier"===n.node.property.type&&n.node.property.name===b))for(var a of o.node.arguments)"Literal"===a.type&&"string"==typeof a.value&&e.add(a.value)}}}}}]);
2
- //# sourceMappingURL=8691.e37d630f.js.map
1
+ "use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[8691,3458],{3458:(e,t,r)=>{function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){if("string"==typeof t?o.name===t:t.includes(o.name)){for(var i=[],s=1;s<=r;s++){var c=a[a.length-s];if("MemberExpression"===(null==c?void 0:c.node.type)&&"object"===c.key){var u=c.node;u.computed||"Identifier"!==u.property.type?u.computed&&"Literal"===u.property.type&&"string"==typeof u.property.value?i.push(n?"".concat(o.name,".").concat(u.property.value):u.property.value):e.hasNonStaticUsage=!0:i.push(n?"".concat(o.name,".").concat(u.property.name):u.property.name)}else e.hasNonStaticUsage=!0}i.length===r&&e.usedProperties.add(i.join("."))}}}function o(e,t){return function(r,n,o){if(n.name===e){var a=o[o.length-1],i=o[o.length-2];if("CallExpression"===(null==i?void 0:i.node.type)&&"callee"===(null==i?void 0:i.key)&&"MemberExpression"===(null==a?void 0:a.node.type)&&"object"===a.key&&(a.node.computed?"Literal"===a.node.property.type&&a.node.property.value===t:"Identifier"===a.node.property.type&&a.node.property.name===t)){var s=i.node.arguments;if(s.length>0){var c=s[0];"Literal"===c.type&&"string"==typeof c.value?r.usedArgs.add(c.value):r.hasNonStaticUsage=!0}}}}}r.r(t),r.d(t,{beforeVisitGlobalMember:()=>n,collectAppGetMenuUsage:()=>a,collectInstalledAppsHasUsage:()=>i,collectMemberUsage:()=>p,collectMemberUsageInFunction:()=>h,createProviderClass:()=>c.createProviderClass,scanPermissionActionsInAny:()=>P,scanPermissionActionsInStoryboard:()=>m,strictCollectMemberUsage:()=>l,strictCollectMemberUsageInFunction:()=>g,track:()=>d,trackAll:()=>f,traverseStoryboardExpressions:()=>u,traverseStoryboardFunction:()=>y,traverseStoryboardFunctions:()=>v,unwrapProvider:()=>c.unwrapProvider});var a=o("APP","getMenu"),i=o("INSTALLED_APPS","has"),s=r(3405),c=r(1364);function u(e,t,r){var n=new WeakSet,{matchExpressionString:o,visitNotMatchedExpressionString:a,visitNonExpressionString:i,visitObject:u}="string"==typeof r?{matchExpressionString:e=>e.includes(r)}:r;!function e(r){if("string"==typeof r)if((0,s.isEvaluable)(r))if(o(r))try{(0,s.preevaluate)(r,{withParent:!0,hooks:{beforeVisitGlobal(e,n){t(e,n,r)}}})}catch(e){console.error("Parse storyboard expression failed:",e)}else null==a||a(r);else null==i||i(r);else if((0,c.isObject)(r)){if(n.has(r))return;for(var l of(n.add(r),null==u||u(r),Array.isArray(r)?r:Object.values(r)))e(l)}}(e)}function l(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{hasNonStaticUsage:n,nonStaticUsage:o,usedProperties:a}=p(e,t,r);if(n)throw new Error("Non-static usage of ".concat(t,' is prohibited, check your expression: "').concat(o,'"'));return a}function p(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o={usedProperties:new Set,hasNonStaticUsage:!1},a=n(o,t,r);return u(e,((e,t,r)=>{a(e,t),o.hasNonStaticUsage&&(o.nonStaticUsage=r)}),t),o}function d(e,t,r){if(e.includes(t)){var o,a={usedProperties:new Set,hasNonStaticUsage:!1},{expression:i}=(0,s.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal:n(a,r)}});if("SequenceExpression"===i.type&&(o=i.expressions[0])&&"Literal"===o.type&&o.value===t){if(a.usedProperties.size>0)return a.usedProperties;console.warn('You are using "'.concat(t,'" but no `').concat(r,"` usage found in your expression: ").concat(JSON.stringify(e)))}}return!1}function f(e){if(e){var t={usedProperties:new Set,hasNonStaticUsage:!1};if((0,s.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal:n(t,["CTX","STATE","FORM_STATE"],1,!0)}}),t.usedProperties.size>0){var r=[...t.usedProperties],o={context:!1,state:!1,formState:!1},a={CTX:"context",STATE:"state",FORM_STATE:"formState"};return r.forEach((e=>{var[t,r]=e.split(".");o[a[t]]||(o[a[t]]=[]),o[a[t]].push(r)})),o}console.warn('You are using track all but no "CTX" or "STATE" or "FORM_STATE" usage found in your expression: '.concat(JSON.stringify(e)))}return!1}function v(e,t){if(Array.isArray(e))for(var r of e)y(r,t)}function y(e,t){try{(0,s.precookFunction)(e.source,{typescript:e.typescript,withParent:!0,hooks:{beforeVisitGlobal:t}})}catch(t){console.error('Parse storyboard function "'.concat(e.name,'" failed:'),t)}}function g(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{hasNonStaticUsage:n,usedProperties:o}=h(e,t,r);if(n)throw new Error("Non-static usage of ".concat(t,' is prohibited, check your function: "').concat(e.name,'"'));return o}function h(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o={usedProperties:new Set,hasNonStaticUsage:!1};return y(e,n(o,t,r)),o.usedProperties.delete(e.name),o}var S="PERMISSIONS",b="check";function m(e){var t,r=new Set,n=k(r),{customTemplates:o,functions:a}=null!==(t=e.meta)&&void 0!==t?t:{};return u([e.routes,o],n,S),v(a,n),Array.from(r)}function P(e){var t=new Set;return u(e,k(t),S),Array.from(t)}function k(e){return function(t,r){if(t.name===S){var n=r[r.length-1],o=r[r.length-2];if("CallExpression"===(null==o?void 0:o.node.type)&&"callee"===(null==o?void 0:o.key)&&"MemberExpression"===(null==n?void 0:n.node.type)&&"object"===n.key&&(n.node.computed?"Literal"===n.node.property.type&&n.node.property.value===b:"Identifier"===n.node.property.type&&n.node.property.name===b))for(var a of o.node.arguments)"Literal"===a.type&&"string"==typeof a.value&&e.add(a.value)}}}}}]);
2
+ //# sourceMappingURL=8691.9e005ad1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/3458.5f8a0115.js","mappings":"+IAAO,S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N,KAAKW,SAASJ,MAAyBD,EAAaN,KAAKW,SAAST,OAAS0F,GACtiB,IAAK,IAAIY,KAAOnF,EAAWrB,KAAKJ,UACb,YAAb4G,EAAIjG,MAA2C,iBAAdiG,EAAI5F,OACvCoF,EAAW/E,IAAIuF,EAAI5F,MAI3B,CACF,CACF,C","sources":["webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/beforeVisitGlobalMember.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/collectMemberCallUsage.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/traverse.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/collectMemberUsage.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/track.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/functions/traverse.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/functions/collectMemberUsageInFunction.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/permissions.js"],"sourcesContent":["export function beforeVisitGlobalMember(usage, objectName) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var rememberObjectName = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n return function beforeVisitGlobal(node, parent) {\n if (typeof objectName === \"string\" ? node.name === objectName : objectName.includes(node.name)) {\n var segments = [];\n for (var i = 1; i <= level; i++) {\n var memberParent = parent[parent.length - i];\n if ((memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\") {\n var memberNode = memberParent.node;\n if (!memberNode.computed && memberNode.property.type === \"Identifier\") {\n segments.push(rememberObjectName ? \"\".concat(node.name, \".\").concat(memberNode.property.name) : memberNode.property.name);\n } else if (memberNode.computed && memberNode.property.type === \"Literal\" && typeof memberNode.property.value === \"string\") {\n segments.push(rememberObjectName ? \"\".concat(node.name, \".\").concat(memberNode.property.value) : memberNode.property.value);\n } else {\n usage.hasNonStaticUsage = true;\n }\n } else {\n usage.hasNonStaticUsage = true;\n }\n }\n if (segments.length === level) {\n usage.usedProperties.add(segments.join(\".\"));\n }\n }\n };\n}\n//# sourceMappingURL=beforeVisitGlobalMember.js.map","function collectMemberCallUsageFactory(object, property) {\n return function collectMemberCallUsage(usage, node, parent) {\n if (node.name === object) {\n var memberParent = parent[parent.length - 1];\n var callParent = parent[parent.length - 2];\n if ((callParent === null || callParent === void 0 ? void 0 : callParent.node.type) === \"CallExpression\" && (callParent === null || callParent === void 0 ? void 0 : callParent.key) === \"callee\" && (memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\" && (memberParent.node.computed ? memberParent.node.property.type === \"Literal\" && memberParent.node.property.value === property : memberParent.node.property.type === \"Identifier\" && memberParent.node.property.name === property)) {\n var args = callParent.node.arguments;\n if (args.length > 0) {\n var firstArg = args[0];\n if (firstArg.type === \"Literal\" && typeof firstArg.value === \"string\") {\n usage.usedArgs.add(firstArg.value);\n } else {\n usage.hasNonStaticUsage = true;\n }\n }\n }\n }\n };\n}\nexport var collectAppGetMenuUsage = collectMemberCallUsageFactory(\"APP\", \"getMenu\");\nexport var collectInstalledAppsHasUsage = collectMemberCallUsageFactory(\"INSTALLED_APPS\", \"has\");\n//# sourceMappingURL=collectMemberCallUsage.js.map","import { isEvaluable, preevaluate } from \"@next-core/cook\";\nimport { isObject } from \"@next-core/utils/general\";\nexport function traverseStoryboardExpressions(data, beforeVisitGlobal,\n// If `options` is a string, it means the *keyword*.\noptions) {\n var memo = new WeakSet();\n var {\n matchExpressionString,\n visitNotMatchedExpressionString,\n visitNonExpressionString,\n visitObject\n } = typeof options === \"string\" ? {\n matchExpressionString: v => v.includes(options)\n } : options;\n function traverse(value) {\n if (typeof value === \"string\") {\n if (isEvaluable(value)) {\n if (matchExpressionString(value)) {\n try {\n preevaluate(value, {\n withParent: true,\n hooks: {\n beforeVisitGlobal(node, parent) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n beforeVisitGlobal(node, parent, value);\n }\n }\n });\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(\"Parse storyboard expression failed:\", error);\n }\n } else {\n visitNotMatchedExpressionString === null || visitNotMatchedExpressionString === void 0 ? void 0 : visitNotMatchedExpressionString(value);\n }\n } else {\n visitNonExpressionString === null || visitNonExpressionString === void 0 ? void 0 : visitNonExpressionString(value);\n }\n } else if (isObject(value)) {\n // Avoid call stack overflow.\n if (memo.has(value)) {\n return;\n }\n memo.add(value);\n visitObject === null || visitObject === void 0 ? void 0 : visitObject(value);\n for (var item of Array.isArray(value) ? value : Object.values(value)) {\n traverse(item);\n }\n }\n }\n traverse(data);\n}\n//# sourceMappingURL=traverse.js.map","import { beforeVisitGlobalMember } from \"./beforeVisitGlobalMember.js\";\nimport { traverseStoryboardExpressions } from \"./traverse.js\";\nexport function strictCollectMemberUsage(data, objectName) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var {\n hasNonStaticUsage,\n nonStaticUsage,\n usedProperties\n } = collectMemberUsage(data, objectName, level);\n if (hasNonStaticUsage) {\n throw new Error(\"Non-static usage of \".concat(objectName, \" is prohibited, check your expression: \\\"\").concat(nonStaticUsage, \"\\\"\"));\n }\n return usedProperties;\n}\nexport function collectMemberUsage(data, objectName) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n var beforeVisitGlobal = beforeVisitGlobalMember(usage, objectName, level);\n traverseStoryboardExpressions(data, (node, parent, expr) => {\n beforeVisitGlobal(node, parent);\n if (usage.hasNonStaticUsage) {\n usage.nonStaticUsage = expr;\n }\n }, objectName);\n return usage;\n}\n//# sourceMappingURL=collectMemberUsage.js.map","import { preevaluate } from \"@next-core/cook\";\nimport { beforeVisitGlobalMember } from \"./beforeVisitGlobalMember.js\";\nexport function track(raw, trackText, variableName) {\n if (raw.includes(trackText)) {\n var usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n var {\n expression\n } = preevaluate(raw, {\n withParent: true,\n hooks: {\n beforeVisitGlobal: beforeVisitGlobalMember(usage, variableName)\n }\n });\n var trackCtxExp;\n if (expression.type === \"SequenceExpression\" && (trackCtxExp = expression.expressions[0]) && trackCtxExp.type === \"Literal\" && trackCtxExp.value === trackText) {\n if (usage.usedProperties.size > 0) {\n return usage.usedProperties;\n } else {\n // eslint-disable-next-line no-console\n console.warn(\"You are using \\\"\".concat(trackText, \"\\\" but no `\").concat(variableName, \"` usage found in your expression: \").concat(JSON.stringify(raw)));\n }\n }\n }\n return false;\n}\nexport function trackAll(raw) {\n if (raw) {\n var usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n preevaluate(raw, {\n withParent: true,\n hooks: {\n beforeVisitGlobal: beforeVisitGlobalMember(usage, [\"CTX\", \"STATE\", \"FORM_STATE\"], 1, true)\n }\n });\n if (usage.usedProperties.size > 0) {\n var usedProperites = [...usage.usedProperties];\n var result = {\n context: false,\n state: false,\n formState: false\n };\n var keyMap = {\n CTX: \"context\",\n STATE: \"state\",\n FORM_STATE: \"formState\"\n };\n usedProperites.forEach(item => {\n var [key, name] = item.split(\".\");\n if (!result[keyMap[key]]) {\n result[keyMap[key]] = [];\n }\n result[keyMap[key]].push(name);\n });\n return result;\n } else {\n // eslint-disable-next-line no-console\n console.warn(\"You are using track all but no \\\"CTX\\\" or \\\"STATE\\\" or \\\"FORM_STATE\\\" usage found in your expression: \".concat(JSON.stringify(raw)));\n }\n }\n return false;\n}\n//# sourceMappingURL=track.js.map","import { precookFunction } from \"@next-core/cook\";\nexport function traverseStoryboardFunctions(functions, beforeVisitGlobal) {\n if (Array.isArray(functions)) {\n for (var fn of functions) {\n traverseStoryboardFunction(fn, beforeVisitGlobal);\n }\n }\n}\nexport function traverseStoryboardFunction(fn, beforeVisitGlobal) {\n try {\n precookFunction(fn.source, {\n typescript: fn.typescript,\n withParent: true,\n hooks: {\n beforeVisitGlobal\n }\n });\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(\"Parse storyboard function \\\"\".concat(fn.name, \"\\\" failed:\"), error);\n }\n}\n//# sourceMappingURL=traverse.js.map","import { beforeVisitGlobalMember } from \"../expressions/beforeVisitGlobalMember.js\";\nimport { traverseStoryboardFunction } from \"./traverse.js\";\nexport function strictCollectMemberUsageInFunction(fn, objectName) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var {\n hasNonStaticUsage,\n usedProperties\n } = collectMemberUsageInFunction(fn, objectName, level);\n if (hasNonStaticUsage) {\n throw new Error(\"Non-static usage of \".concat(objectName, \" is prohibited, check your function: \\\"\").concat(fn.name, \"\\\"\"));\n }\n return usedProperties;\n}\nexport function collectMemberUsageInFunction(fn, objectName) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n traverseStoryboardFunction(fn, beforeVisitGlobalMember(usage, objectName, level));\n usage.usedProperties.delete(fn.name);\n return usage;\n}\n//# sourceMappingURL=collectMemberUsageInFunction.js.map","import { traverseStoryboardExpressions } from \"./expressions/index.js\";\nimport { traverseStoryboardFunctions } from \"./functions/index.js\";\nvar PERMISSIONS = \"PERMISSIONS\";\nvar check = \"check\";\nexport function scanPermissionActionsInStoryboard(storyboard) {\n var _storyboard$meta;\n var collection = new Set();\n var beforeVisitPermissions = beforeVisitPermissionsFactory(collection);\n var {\n customTemplates,\n functions\n } = (_storyboard$meta = storyboard.meta) !== null && _storyboard$meta !== void 0 ? _storyboard$meta : {};\n traverseStoryboardExpressions([storyboard.routes, customTemplates], beforeVisitPermissions, PERMISSIONS);\n traverseStoryboardFunctions(functions, beforeVisitPermissions);\n return Array.from(collection);\n}\nexport function scanPermissionActionsInAny(data) {\n var collection = new Set();\n traverseStoryboardExpressions(data, beforeVisitPermissionsFactory(collection), PERMISSIONS);\n return Array.from(collection);\n}\nfunction beforeVisitPermissionsFactory(collection) {\n return function beforeVisitPermissions(node, parent) {\n if (node.name === PERMISSIONS) {\n var memberParent = parent[parent.length - 1];\n var callParent = parent[parent.length - 2];\n if ((callParent === null || callParent === void 0 ? void 0 : callParent.node.type) === \"CallExpression\" && (callParent === null || callParent === void 0 ? void 0 : callParent.key) === \"callee\" && (memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\" && (memberParent.node.computed ? memberParent.node.property.type === \"Literal\" && memberParent.node.property.value === check : memberParent.node.property.type === \"Identifier\" && memberParent.node.property.name === check)) {\n for (var arg of callParent.node.arguments) {\n if (arg.type === \"Literal\" && typeof arg.value === \"string\") {\n collection.add(arg.value);\n }\n }\n }\n }\n };\n}\n//# sourceMappingURL=permissions.js.map"],"names":["beforeVisitGlobalMember","usage","objectName","level","arguments","length","undefined","rememberObjectName","node","parent","name","includes","segments","i","memberParent","type","key","memberNode","computed","property","value","push","concat","hasNonStaticUsage","usedProperties","add","join","collectMemberCallUsageFactory","object","callParent","args","firstArg","usedArgs","collectAppGetMenuUsage","collectInstalledAppsHasUsage","traverseStoryboardExpressions","data","beforeVisitGlobal","options","memo","WeakSet","matchExpressionString","visitNotMatchedExpressionString","visitNonExpressionString","visitObject","v","traverse","isEvaluable","preevaluate","withParent","hooks","error","console","isObject","has","item","Array","isArray","Object","values","strictCollectMemberUsage","nonStaticUsage","collectMemberUsage","Error","Set","expr","track","raw","trackText","variableName","trackCtxExp","expression","expressions","size","warn","JSON","stringify","trackAll","usedProperites","result","context","state","formState","keyMap","CTX","STATE","FORM_STATE","forEach","split","traverseStoryboardFunctions","functions","fn","traverseStoryboardFunction","precookFunction","source","typescript","strictCollectMemberUsageInFunction","collectMemberUsageInFunction","delete","PERMISSIONS","check","scanPermissionActionsInStoryboard","storyboard","_storyboard$meta","collection","beforeVisitPermissions","beforeVisitPermissionsFactory","customTemplates","meta","routes","from","scanPermissionActionsInAny","arg"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/8691.9e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F,EAA4C,eAApCtF,EAAaN,KAAKW,SAASJ,MAAyBD,EAAaN,KAAKW,SAAST,OAAS0F,GACtiB,IAAK,IAAIY,KAAOnF,EAAWrB,KAAKJ,UACb,YAAb4G,EAAIjG,MAA2C,iBAAdiG,EAAI5F,OACvCoF,EAAW/E,IAAIuF,EAAI5F,MAI3B,CACF,CACF,C","sources":["webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/beforeVisitGlobalMember.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/collectMemberCallUsage.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/traverse.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/collectMemberUsage.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/track.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/functions/traverse.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/functions/collectMemberUsageInFunction.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/permissions.js"],"sourcesContent":["export function beforeVisitGlobalMember(usage, objectName) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var rememberObjectName = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n return function beforeVisitGlobal(node, parent) {\n if (typeof objectName === \"string\" ? node.name === objectName : objectName.includes(node.name)) {\n var segments = [];\n for (var i = 1; i <= level; i++) {\n var memberParent = parent[parent.length - i];\n if ((memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\") {\n var memberNode = memberParent.node;\n if (!memberNode.computed && memberNode.property.type === \"Identifier\") {\n segments.push(rememberObjectName ? \"\".concat(node.name, \".\").concat(memberNode.property.name) : memberNode.property.name);\n } else if (memberNode.computed && memberNode.property.type === \"Literal\" && typeof memberNode.property.value === \"string\") {\n segments.push(rememberObjectName ? \"\".concat(node.name, \".\").concat(memberNode.property.value) : memberNode.property.value);\n } else {\n usage.hasNonStaticUsage = true;\n }\n } else {\n usage.hasNonStaticUsage = true;\n }\n }\n if (segments.length === level) {\n usage.usedProperties.add(segments.join(\".\"));\n }\n }\n };\n}\n//# sourceMappingURL=beforeVisitGlobalMember.js.map","function collectMemberCallUsageFactory(object, property) {\n return function collectMemberCallUsage(usage, node, parent) {\n if (node.name === object) {\n var memberParent = parent[parent.length - 1];\n var callParent = parent[parent.length - 2];\n if ((callParent === null || callParent === void 0 ? void 0 : callParent.node.type) === \"CallExpression\" && (callParent === null || callParent === void 0 ? void 0 : callParent.key) === \"callee\" && (memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\" && (memberParent.node.computed ? memberParent.node.property.type === \"Literal\" && memberParent.node.property.value === property : memberParent.node.property.type === \"Identifier\" && memberParent.node.property.name === property)) {\n var args = callParent.node.arguments;\n if (args.length > 0) {\n var firstArg = args[0];\n if (firstArg.type === \"Literal\" && typeof firstArg.value === \"string\") {\n usage.usedArgs.add(firstArg.value);\n } else {\n usage.hasNonStaticUsage = true;\n }\n }\n }\n }\n };\n}\nexport var collectAppGetMenuUsage = collectMemberCallUsageFactory(\"APP\", \"getMenu\");\nexport var collectInstalledAppsHasUsage = collectMemberCallUsageFactory(\"INSTALLED_APPS\", \"has\");\n//# sourceMappingURL=collectMemberCallUsage.js.map","import { isEvaluable, preevaluate } from \"@next-core/cook\";\nimport { isObject } from \"@next-core/utils/general\";\nexport function traverseStoryboardExpressions(data, beforeVisitGlobal,\n// If `options` is a string, it means the *keyword*.\noptions) {\n var memo = new WeakSet();\n var {\n matchExpressionString,\n visitNotMatchedExpressionString,\n visitNonExpressionString,\n visitObject\n } = typeof options === \"string\" ? {\n matchExpressionString: v => v.includes(options)\n } : options;\n function traverse(value) {\n if (typeof value === \"string\") {\n if (isEvaluable(value)) {\n if (matchExpressionString(value)) {\n try {\n preevaluate(value, {\n withParent: true,\n hooks: {\n beforeVisitGlobal(node, parent) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n beforeVisitGlobal(node, parent, value);\n }\n }\n });\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(\"Parse storyboard expression failed:\", error);\n }\n } else {\n visitNotMatchedExpressionString === null || visitNotMatchedExpressionString === void 0 ? void 0 : visitNotMatchedExpressionString(value);\n }\n } else {\n visitNonExpressionString === null || visitNonExpressionString === void 0 ? void 0 : visitNonExpressionString(value);\n }\n } else if (isObject(value)) {\n // Avoid call stack overflow.\n if (memo.has(value)) {\n return;\n }\n memo.add(value);\n visitObject === null || visitObject === void 0 ? void 0 : visitObject(value);\n for (var item of Array.isArray(value) ? value : Object.values(value)) {\n traverse(item);\n }\n }\n }\n traverse(data);\n}\n//# sourceMappingURL=traverse.js.map","import { beforeVisitGlobalMember } from \"./beforeVisitGlobalMember.js\";\nimport { traverseStoryboardExpressions } from \"./traverse.js\";\nexport function strictCollectMemberUsage(data, objectName) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var {\n hasNonStaticUsage,\n nonStaticUsage,\n usedProperties\n } = collectMemberUsage(data, objectName, level);\n if (hasNonStaticUsage) {\n throw new Error(\"Non-static usage of \".concat(objectName, \" is prohibited, check your expression: \\\"\").concat(nonStaticUsage, \"\\\"\"));\n }\n return usedProperties;\n}\nexport function collectMemberUsage(data, objectName) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n var beforeVisitGlobal = beforeVisitGlobalMember(usage, objectName, level);\n traverseStoryboardExpressions(data, (node, parent, expr) => {\n beforeVisitGlobal(node, parent);\n if (usage.hasNonStaticUsage) {\n usage.nonStaticUsage = expr;\n }\n }, objectName);\n return usage;\n}\n//# sourceMappingURL=collectMemberUsage.js.map","import { preevaluate } from \"@next-core/cook\";\nimport { beforeVisitGlobalMember } from \"./beforeVisitGlobalMember.js\";\nexport function track(raw, trackText, variableName) {\n if (raw.includes(trackText)) {\n var usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n var {\n expression\n } = preevaluate(raw, {\n withParent: true,\n hooks: {\n beforeVisitGlobal: beforeVisitGlobalMember(usage, variableName)\n }\n });\n var trackCtxExp;\n if (expression.type === \"SequenceExpression\" && (trackCtxExp = expression.expressions[0]) && trackCtxExp.type === \"Literal\" && trackCtxExp.value === trackText) {\n if (usage.usedProperties.size > 0) {\n return usage.usedProperties;\n } else {\n // eslint-disable-next-line no-console\n console.warn(\"You are using \\\"\".concat(trackText, \"\\\" but no `\").concat(variableName, \"` usage found in your expression: \").concat(JSON.stringify(raw)));\n }\n }\n }\n return false;\n}\nexport function trackAll(raw) {\n if (raw) {\n var usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n preevaluate(raw, {\n withParent: true,\n hooks: {\n beforeVisitGlobal: beforeVisitGlobalMember(usage, [\"CTX\", \"STATE\", \"FORM_STATE\"], 1, true)\n }\n });\n if (usage.usedProperties.size > 0) {\n var usedProperites = [...usage.usedProperties];\n var result = {\n context: false,\n state: false,\n formState: false\n };\n var keyMap = {\n CTX: \"context\",\n STATE: \"state\",\n FORM_STATE: \"formState\"\n };\n usedProperites.forEach(item => {\n var [key, name] = item.split(\".\");\n if (!result[keyMap[key]]) {\n result[keyMap[key]] = [];\n }\n result[keyMap[key]].push(name);\n });\n return result;\n } else {\n // eslint-disable-next-line no-console\n console.warn(\"You are using track all but no \\\"CTX\\\" or \\\"STATE\\\" or \\\"FORM_STATE\\\" usage found in your expression: \".concat(JSON.stringify(raw)));\n }\n }\n return false;\n}\n//# sourceMappingURL=track.js.map","import { precookFunction } from \"@next-core/cook\";\nexport function traverseStoryboardFunctions(functions, beforeVisitGlobal) {\n if (Array.isArray(functions)) {\n for (var fn of functions) {\n traverseStoryboardFunction(fn, beforeVisitGlobal);\n }\n }\n}\nexport function traverseStoryboardFunction(fn, beforeVisitGlobal) {\n try {\n precookFunction(fn.source, {\n typescript: fn.typescript,\n withParent: true,\n hooks: {\n beforeVisitGlobal\n }\n });\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(\"Parse storyboard function \\\"\".concat(fn.name, \"\\\" failed:\"), error);\n }\n}\n//# sourceMappingURL=traverse.js.map","import { beforeVisitGlobalMember } from \"../expressions/beforeVisitGlobalMember.js\";\nimport { traverseStoryboardFunction } from \"./traverse.js\";\nexport function strictCollectMemberUsageInFunction(fn, objectName) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var {\n hasNonStaticUsage,\n usedProperties\n } = collectMemberUsageInFunction(fn, objectName, level);\n if (hasNonStaticUsage) {\n throw new Error(\"Non-static usage of \".concat(objectName, \" is prohibited, check your function: \\\"\").concat(fn.name, \"\\\"\"));\n }\n return usedProperties;\n}\nexport function collectMemberUsageInFunction(fn, objectName) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n traverseStoryboardFunction(fn, beforeVisitGlobalMember(usage, objectName, level));\n usage.usedProperties.delete(fn.name);\n return usage;\n}\n//# sourceMappingURL=collectMemberUsageInFunction.js.map","import { traverseStoryboardExpressions } from \"./expressions/index.js\";\nimport { traverseStoryboardFunctions } from \"./functions/index.js\";\nvar PERMISSIONS = \"PERMISSIONS\";\nvar check = \"check\";\nexport function scanPermissionActionsInStoryboard(storyboard) {\n var _storyboard$meta;\n var collection = new Set();\n var beforeVisitPermissions = beforeVisitPermissionsFactory(collection);\n var {\n customTemplates,\n functions\n } = (_storyboard$meta = storyboard.meta) !== null && _storyboard$meta !== void 0 ? _storyboard$meta : {};\n traverseStoryboardExpressions([storyboard.routes, customTemplates], beforeVisitPermissions, PERMISSIONS);\n traverseStoryboardFunctions(functions, beforeVisitPermissions);\n return Array.from(collection);\n}\nexport function scanPermissionActionsInAny(data) {\n var collection = new Set();\n traverseStoryboardExpressions(data, beforeVisitPermissionsFactory(collection), PERMISSIONS);\n return Array.from(collection);\n}\nfunction beforeVisitPermissionsFactory(collection) {\n return function beforeVisitPermissions(node, parent) {\n if (node.name === PERMISSIONS) {\n var memberParent = parent[parent.length - 1];\n var callParent = parent[parent.length - 2];\n if ((callParent === null || callParent === void 0 ? void 0 : callParent.node.type) === \"CallExpression\" && (callParent === null || callParent === void 0 ? void 0 : callParent.key) === \"callee\" && (memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\" && (memberParent.node.computed ? memberParent.node.property.type === \"Literal\" && memberParent.node.property.value === check : memberParent.node.property.type === \"Identifier\" && memberParent.node.property.name === check)) {\n for (var arg of callParent.node.arguments) {\n if (arg.type === \"Literal\" && typeof arg.value === \"string\") {\n collection.add(arg.value);\n }\n }\n }\n }\n };\n}\n//# sourceMappingURL=permissions.js.map"],"names":["beforeVisitGlobalMember","usage","objectName","level","arguments","length","undefined","rememberObjectName","node","parent","name","includes","segments","i","memberParent","type","key","memberNode","computed","property","value","push","concat","hasNonStaticUsage","usedProperties","add","join","collectMemberCallUsageFactory","object","callParent","args","firstArg","usedArgs","collectAppGetMenuUsage","collectInstalledAppsHasUsage","traverseStoryboardExpressions","data","beforeVisitGlobal","options","memo","WeakSet","matchExpressionString","visitNotMatchedExpressionString","visitNonExpressionString","visitObject","v","traverse","isEvaluable","preevaluate","withParent","hooks","error","console","isObject","has","item","Array","isArray","Object","values","strictCollectMemberUsage","nonStaticUsage","collectMemberUsage","Error","Set","expr","track","raw","trackText","variableName","trackCtxExp","expression","expressions","size","warn","JSON","stringify","trackAll","usedProperites","result","context","state","formState","keyMap","CTX","STATE","FORM_STATE","forEach","split","traverseStoryboardFunctions","functions","fn","traverseStoryboardFunction","precookFunction","source","typescript","strictCollectMemberUsageInFunction","collectMemberUsageInFunction","delete","PERMISSIONS","check","scanPermissionActionsInStoryboard","storyboard","_storyboard$meta","collection","beforeVisitPermissions","beforeVisitPermissionsFactory","customTemplates","meta","routes","from","scanPermissionActionsInAny","arg"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[9185],{9185:(e,t,a)=>{a.r(t);var i,n,r,s,o,l,c,h,d,u,p,v,b,w,f,g,Z,m,k=a(3395),x=a(381),y=a(687),M=a(5303),E=a(8657),W=a.n(E),N=a(18),D=a(196),T=a(8249),A=a(8453),S=a(2779),L=a.n(S),B=(0,D.wrapBrick)("icons.general-icon"),{defineElement:F,property:I,event:C}=(0,N.createDecorators)();n=F("visual-builder.workbench-pane",{styleTexts:[T.Z,A.Z]}),r=I(),o=I({type:Boolean}),c=I({type:Number}),d=C({type:"active.change"}),b=C({type:"active.firstActivated"});var K=new WeakMap,P=new WeakMap,R=new WeakMap,_=new WeakMap,z=new WeakMap,H=new WeakMap,O=new WeakMap,$=new WeakMap,j=new WeakMap;class q extends D.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,$,{get:G,set:Y}),(0,k.Z)(this,z,{get:X,set:U}),(0,k.Z)(this,K,{writable:!0,value:(Z(this),s(this))}),(0,k.Z)(this,P,{writable:!0,value:l(this)}),(0,k.Z)(this,R,{writable:!0,value:h(this)}),(0,k.Z)(this,_,{writable:!0,value:u(this)}),(0,k.Z)(this,H,{writable:!0,value:e=>{e!==this.active&&(this.active=e,(0,y.Z)(this,z).emit(e))}}),(0,k.Z)(this,O,{writable:!0,value:w(this)}),(0,k.Z)(this,j,{writable:!0,value:()=>{(0,y.Z)(this,$).emit()}})}get titleLabel(){return(0,y.Z)(this,K)}set titleLabel(e){(0,x.Z)(this,K,e)}get active(){return(0,y.Z)(this,P)}set active(e){(0,x.Z)(this,P,e)}get badge(){return(0,y.Z)(this,R)}set badge(e){(0,x.Z)(this,R,e)}render(){return W().createElement(J,{titleLabel:this.titleLabel,active:this.active,badge:this.badge,onActiveChange:(0,y.Z)(this,H),onFirstActivated:(0,y.Z)(this,j)})}}function U(e){v(this,e)}function X(){return p(this)}function Y(e){g(this,e)}function G(){return f(this)}function J(e){var{titleLabel:t,active:a,badge:i,onActiveChange:n,onFirstActivated:r}=e,[s,o]=(0,E.useState)(a),[l,c]=(0,E.useState)(!1);(0,E.useEffect)((()=>{o(a)}),[a]),(0,E.useEffect)((()=>{null==n||n(s)}),[s,n]);var h=(0,E.useCallback)((()=>{o((e=>!e)),l||s||(c(!0),null==r||r())}),[l,s,r]),d=(0,E.useRef)(),[u,p]=(0,E.useState)(!1),v=(0,E.useMemo)((()=>{return e=()=>{p(d.current.scrollTop>0)},function(){for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...i)}))};var e,t}),[]);return W().createElement("div",{className:L()("pane",{scrolled:u})},W().createElement("div",{className:"pane-header",tabIndex:0,onClick:h},W().createElement("div",{className:"pane-title"},W().createElement("span",{className:"title-icon"},s?W().createElement(B,{lib:"antd",theme:"outlined",icon:"down"}):W().createElement(B,{lib:"antd",theme:"outlined",icon:"right"})),W().createElement("div",{className:"title-label"},t),W().createElement("slot",{name:"title"})),W().createElement("slot",{name:"actions"}),i&&W().createElement("div",{className:"badge"},i),W().createElement("div",{className:"pane-scroll-shadow"})),W().createElement("div",{className:"pane-body custom-scrollbar-container",onScroll:v,ref:d},W().createElement("slot",null,W().createElement("div",{style:{padding:"10px 20px",color:"var(--text-color-secondary)"}},"No content"))))}({e:[s,l,h,u,p,v,w,f,g,Z],c:[m,i]}=(0,M.Z)(q,[[r,1,"titleLabel"],[o,1,"active"],[c,1,"badge"],[d,1,"activeChangeEvent",function(){return(0,y.Z)(this,_)},function(e){(0,x.Z)(this,_,e)}],[b,1,"activeFirstActivatedEvent",function(){return(0,y.Z)(this,O)},function(e){(0,x.Z)(this,O,e)}]],[n])),i();var Q,V,ee,te,ae,ie,ne=a(6666),re=a(3571),{defineElement:se,property:oe}=(0,N.createDecorators)();V=se("visual-builder.workbench-sidebar",{styleTexts:[re.Z]}),ee=oe();var le=new WeakMap,ce=new WeakMap,he=new WeakMap,de=new WeakMap;class ue extends D.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,le,{writable:!0,value:(ae(this),te(this))}),(0,k.Z)(this,ce,{writable:!0,value:()=>{var e;return null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])")}}),(0,k.Z)(this,he,{writable:!0,value:()=>{var e=(0,y.Z)(this,ce).call(this).assignedNodes();for(var t of e){var a;t.active?t.style.flex=String(null!==(a=t.activeFlex)&&void 0!==a?a:"1"):t.style.flex="initial"}}}),(0,k.Z)(this,de,{writable:!0,value:e=>{var t=e.target.assignedNodes();for(var a of t)a.addEventListener("active.change",(0,y.Z)(this,he))}}),(0,ne.Z)(this,"refCallback",(()=>{(0,y.Z)(this,he).call(this);var e=(0,y.Z)(this,ce).call(this);null==e||e.addEventListener("slotchange",(e=>{(0,y.Z)(this,de).call(this,e)}))}))}get titleLabel(){return(0,y.Z)(this,le)}set titleLabel(e){(0,x.Z)(this,le,e)}render(){return W().createElement(pe,{titleLabel:this.titleLabel,refCallback:this.refCallback})}}function pe(e){var{titleLabel:t,refCallback:a}=e;return W().createElement("div",{className:"sidebar",ref:a},W().createElement("div",{className:"title-container"},W().createElement("div",{className:"title-label"},t),W().createElement("slot",{name:"titleToolbar"})),W().createElement("div",{className:"pane-container"},W().createElement("slot",null)))}({e:[te,ae],c:[ie,Q]}=(0,M.Z)(ue,[[ee,1,"titleLabel"]],[V])),Q();var ve,be,we,fe,ge,Ze,me,ke,xe,ye,Me,Ee,We,Ne,De=a(7310),{defineElement:Te,property:Ae}=(0,N.createDecorators)(),Se=(0,D.wrapBrick)("basic.general-link"),Le=(0,D.wrapBrick)("icons.general-icon");be=Te("visual-builder.workbench-action",{styleTexts:[De.Z]}),we=Ae({attribute:!1}),ge=Ae(),me=Ae({type:Boolean}),xe=Ae(),Me=Ae();var Be=new WeakMap,Fe=new WeakMap,Ie=new WeakMap,Ce=new WeakMap,Ke=new WeakMap;class Pe extends D.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,Be,{writable:!0,value:(We(this),fe(this))}),(0,k.Z)(this,Fe,{writable:!0,value:Ze(this)}),(0,k.Z)(this,Ie,{writable:!0,value:ke(this)}),(0,k.Z)(this,Ce,{writable:!0,value:ye(this)}),(0,k.Z)(this,Ke,{writable:!0,value:Ee(this)})}get icon(){return(0,y.Z)(this,Be)}set icon(e){(0,x.Z)(this,Be,e)}get to(){return(0,y.Z)(this,Fe)}set to(e){(0,x.Z)(this,Fe,e)}get active(){return(0,y.Z)(this,Ie)}set active(e){(0,x.Z)(this,Ie,e)}get href(){return(0,y.Z)(this,Ce)}set href(e){(0,x.Z)(this,Ce,e)}get target(){return(0,y.Z)(this,Ke)}set target(e){(0,x.Z)(this,Ke,e)}render(){return W().createElement(Re,{to:this.to,icon:this.icon,active:this.active,href:this.href,target:this.target})}}function Re(e){var{icon:t,to:a,active:i,href:n,target:r}=e;return W().createElement(Se,{className:L()("action",{active:i}),url:a,href:n,target:r},W().createElement(Le,t))}({e:[fe,Ze,ke,ye,Ee,We],c:[Ne,ve]}=(0,M.Z)(Pe,[[we,1,"icon"],[ge,1,"to"],[me,1,"active"],[xe,1,"href"],[Me,1,"target"]],[be])),ve();var _e=a(6052),ze=a(8353);function He(e,t,a,i){var n=[],r=[],s=0;return e.forEach((e=>{if(e.key=""===i?"".concat(s):"".concat(i,".").concat(s),function(e){return"group"===e.type}(e)||function(e){return"subMenu"===e.type}(e)){var o=He(e.items,t,a,e.key);n.push(...o.selectedKeys),(o.selectedKeys.length||e.defaultExpanded)&&r.push(e.key),r.push(...o.openedKeys)}else(function(e,t,a){if(!e.to)return!1;var i="object"==typeof e.to?e.to:(0,ze.parsePath)(e.to),n=i.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),r=!!(0,_e.matchPath)(t,{path:n,exact:e.exact});if(!r&&Array.isArray(e.activeIncludes))for(var s of e.activeIncludes){var o,l=void 0,c=s.includes("?");if(c&&(l=(0,ze.parsePath)(s)),(r=!!(0,_e.matchPath)(t,{path:c?l.pathname:s,exact:!0}))&&null!==(o=l)&&void 0!==o&&o.search&&(r=Oe(a,l.search)),r)break}if(r&&Array.isArray(e.activeExcludes))for(var h of e.activeExcludes)if(!(r=!(0,_e.matchPath)(t,{path:h,exact:!0})))break;return r&&e.activeMatchSearch&&(r=Oe(a,i.search)),r})(e,t,a)&&n.push(String(e.key));s+=1})),n.length&&""!==i&&r.push(i),{selectedKeys:n,openedKeys:r}}function Oe(e,t){var a=new URLSearchParams(e),i=new URLSearchParams(t);for(var[n,r]of i.entries())if(a.get(n)!==r)return!1;return!0}var $e,je,qe,Ue,Xe,Ye,Ge,Je,Qe=a(8799),Ve=(0,D.wrapBrick)("visual-builder.workbench-action"),{defineElement:et,property:tt}=(0,N.createDecorators)();je=et("visual-builder.workbench-action-list",{styleTexts:[Qe.Z]}),qe=tt(),Xe=tt({attribute:!1});var at,it=new WeakMap,nt=new WeakMap;class rt extends D.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,it,{writable:!0,value:(Ge(this),Ue(this))}),(0,k.Z)(this,nt,{writable:!0,value:Ye(this)})}get appId(){return(0,y.Z)(this,it)}set appId(e){(0,x.Z)(this,it,e)}get menu(){return(0,y.Z)(this,nt)}set menu(e){(0,x.Z)(this,nt,e)}render(){return W().createElement(ot,{appId:this.appId,menu:this.menu})}}({e:[Ue,Ye,Ge],c:[Je,$e]}=(0,M.Z)(rt,[[qe,1,"appId"],[Xe,1,"menu"]],[je])),$e();var st=new Map;function ot(e){var t,{appId:a,menu:i}=e,n=(0,_e.getHistory)(),[r,s]=(0,E.useState)(),[o,l]=(0,E.useState)(n.location);return(0,E.useEffect)((()=>{var e=n.listen((e=>{l(e)}));return e}),[n]),(0,E.useEffect)((()=>{at||(at=a),at!==a&&(st.clear(),at=a)}),[a]),(0,E.useEffect)((()=>{var e,{pathname:t,search:a}=o,{selectedKeys:n}=He(null!==(e=null==i?void 0:i.menuItems)&&void 0!==e?e:[],t,a,"");s(Number(n[0]))}),[i,o]),W().createElement("div",{className:"workBenchActionList"},null==i||null===(t=i.menuItems)||void 0===t?void 0:t.map(((e,t)=>{if("default"===e.type){var a=e.to;return r!==t&&st.has(t)&&(a=st.get(t)),W().createElement(Ve,{key:t,icon:e.icon,to:a,href:e.href,target:e.target,active:r===t,onClick:()=>(e=>{e.href||st.set(r,"".concat(o.pathname).concat(o.search))})(e)})}})).filter(Boolean))}var lt,ct,ht,dt,ut,pt,vt,bt,wt,ft,gt,Zt,mt,kt,xt,yt,Mt,Et,Wt,Nt,Dt,Tt,At,St,Lt,Bt,Ft,It,Ct,Kt,Pt,Rt,_t,zt,Ht,Ot,$t,jt,qt,Ut,Xt,Yt,Gt,Jt,Qt,Vt,ea,ta,aa,ia,na,ra,sa,oa,la,ca,ha,da,ua,pa=a(1211),va=a(8902),ba=a(9114),wa=a(4203),fa=a(9156),ga=a(89),Za=a(1674);function ma(e){return e.key}a(5254);var ka,{defineElement:xa,property:ya,event:Ma}=(0,N.createDecorators)();ct=xa("visual-builder.workbench-tree",{styleTexts:[ga.Z,Za.Z]}),ht=ya({attribute:!1}),ut=ya({attribute:!1}),vt=ya({type:Boolean}),wt=ya(),gt=ya({type:Boolean}),mt=ya(),xt=ya({type:Boolean}),Mt=ya({attribute:!1}),Wt=ya({type:Boolean}),Dt=ya({attribute:!1}),At=ya({attribute:!1}),Lt=ya({type:Boolean}),Ft=ya({attribute:!1}),Ct=ya({type:Boolean}),Pt=ya({type:Boolean}),_t=ya({type:Boolean}),Ht=ya({type:String}),$t=ya({type:Boolean}),qt=Ma({type:"action.click"}),Gt=Ma({type:"node.click"}),ea=Ma({type:"node.drop"}),na=Ma({type:"context.menu"}),la=Ma({type:"node.toggle"});var Ea=new WeakMap,Wa=new WeakMap,Na=new WeakMap,Da=new WeakMap,Ta=new WeakMap,Aa=new WeakMap,Sa=new WeakMap,La=new WeakMap,Ba=new WeakMap,Fa=new WeakMap,Ia=new WeakMap,Ca=new WeakMap,Ka=new WeakMap,Pa=new WeakMap,Ra=new WeakMap,_a=new WeakMap,za=new WeakMap,Ha=new WeakMap,Oa=new WeakMap,$a=new WeakMap,ja=new WeakMap,qa=new WeakMap,Ua=new WeakMap,Xa=new WeakMap,Ya=new WeakMap,Ga=new WeakMap,Ja=new WeakMap,Qa=new WeakMap,Va=new WeakMap,ei=new WeakMap,ti=new WeakMap,ai=new WeakMap,ii=new WeakMap;class ni extends D.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,ai,{get:vi,set:pi}),(0,k.Z)(this,Va,{get:ui,set:di}),(0,k.Z)(this,Ga,{get:hi,set:ci}),(0,k.Z)(this,Ua,{get:li,set:oi}),(0,k.Z)(this,$a,{get:si,set:ri}),(0,k.Z)(this,Ea,{writable:!0,value:(ua(this),dt(this))}),(0,k.Z)(this,Wa,{writable:!0,value:pt(this)}),(0,k.Z)(this,Na,{writable:!0,value:bt(this)}),(0,k.Z)(this,Da,{writable:!0,value:ft(this)}),(0,k.Z)(this,Ta,{writable:!0,value:Zt(this)}),(0,k.Z)(this,Aa,{writable:!0,value:kt(this)}),(0,k.Z)(this,Sa,{writable:!0,value:yt(this)}),(0,k.Z)(this,La,{writable:!0,value:Et(this)}),(0,k.Z)(this,Ba,{writable:!0,value:Nt(this)}),(0,k.Z)(this,Fa,{writable:!0,value:Tt(this)}),(0,k.Z)(this,Ia,{writable:!0,value:St(this)}),(0,k.Z)(this,Ca,{writable:!0,value:Bt(this)}),(0,k.Z)(this,Ka,{writable:!0,value:It(this)}),(0,k.Z)(this,Pa,{writable:!0,value:Kt(this)}),(0,k.Z)(this,Ra,{writable:!0,value:Rt(this)}),(0,k.Z)(this,_a,{writable:!0,value:zt(this)}),(0,k.Z)(this,za,{writable:!0,value:Ot(this)}),(0,k.Z)(this,Ha,{writable:!0,value:jt(this)}),(0,k.Z)(this,Oa,{writable:!0,value:Ut(this)}),(0,k.Z)(this,ja,{writable:!0,value:e=>{(0,y.Z)(this,$a).emit(e)}}),(0,k.Z)(this,qa,{writable:!0,value:Jt(this)}),(0,k.Z)(this,Xa,{writable:!0,value:e=>()=>{(0,y.Z)(this,Ua).emit(e.data)}}),(0,k.Z)(this,Ya,{writable:!0,value:ta(this)}),(0,k.Z)(this,Ja,{writable:!0,value:e=>{(0,y.Z)(this,Ga).emit(e)}}),(0,k.Z)(this,Qa,{writable:!0,value:ra(this)}),(0,k.Z)(this,ei,{writable:!0,value:e=>t=>{t.preventDefault(),(0,y.Z)(this,Va).emit({active:!0,node:null==e?void 0:e.data,x:t.clientX,y:t.clientY})}}),(0,k.Z)(this,ti,{writable:!0,value:ca(this)}),(0,k.Z)(this,ii,{writable:!0,value:(e,t)=>{(0,y.Z)(this,ai).emit({nodeId:e,collapsed:t})}})}get nodes(){return(0,y.Z)(this,Ea)}set nodes(e){(0,x.Z)(this,Ea,e)}get actions(){return(0,y.Z)(this,Wa)}set actions(e){(0,x.Z)(this,Wa,e)}get actionsHidden(){return(0,y.Z)(this,Na)}set actionsHidden(e){(0,x.Z)(this,Na,e)}get placeholder(){return(0,y.Z)(this,Da)}set placeholder(e){(0,x.Z)(this,Da,e)}get isTransformName(){return(0,y.Z)(this,Ta)}set isTransformName(e){(0,x.Z)(this,Ta,e)}get searchPlaceholder(){return(0,y.Z)(this,Aa)}set searchPlaceholder(e){(0,x.Z)(this,Aa,e)}get noSearch(){return(0,y.Z)(this,Sa)}set noSearch(e){(0,x.Z)(this,Sa,e)}get activeKey(){return(0,y.Z)(this,La)}set activeKey(e){(0,x.Z)(this,La,e)}get showMatchedNodeOnly(){return(0,y.Z)(this,Ba)}set showMatchedNodeOnly(e){(0,x.Z)(this,Ba,e)}get matchNodeDataFields(){return(0,y.Z)(this,Fa)}set matchNodeDataFields(e){(0,x.Z)(this,Fa,e)}get fixedActionsFor(){return(0,y.Z)(this,Ia)}set fixedActionsFor(e){(0,x.Z)(this,Ia,e)}get collapsible(){return(0,y.Z)(this,Ca)}set collapsible(e){(0,x.Z)(this,Ca,e)}get collapsedNodes(){return(0,y.Z)(this,Ka)}set collapsedNodes(e){(0,x.Z)(this,Ka,e)}get allowDrag(){return(0,y.Z)(this,Pa)}set allowDrag(e){(0,x.Z)(this,Pa,e)}get allowDragToRoot(){return(0,y.Z)(this,Ra)}set allowDragToRoot(e){(0,x.Z)(this,Ra,e)}get allowDragToInside(){return(0,y.Z)(this,_a)}set allowDragToInside(e){(0,x.Z)(this,_a,e)}get nodeKey(){return(0,y.Z)(this,za)}set nodeKey(e){(0,x.Z)(this,za,e)}get skipNotify(){return(0,y.Z)(this,Ha)}set skipNotify(e){(0,x.Z)(this,Ha,e)}render(){return W().createElement(va.L.Provider,{value:{actions:this.actions,actionsHidden:this.actionsHidden,onActionClick:(0,y.Z)(this,ja)}},W().createElement(wa.f.Provider,{value:{activeKey:this.activeKey,basePaddingLeft:5,showMatchedNodeOnly:this.showMatchedNodeOnly,isTransformName:this.isTransformName,fixedActionsFor:this.fixedActionsFor,nodeKey:this.nodeKey,collapsible:this.collapsible,collapsedNodes:this.collapsedNodes,getCollapsedId:ma,onNodeToggle:(0,y.Z)(this,ii),skipNotify:this.skipNotify,clickFactory:(0,y.Z)(this,Xa),contextMenuFactory:(0,y.Z)(this,ei),matchNode:(e,t)=>{var a;return(0,fa.$)(e.name,t)||!(null===(a=this.matchNodeDataFields)||void 0===a||!a.length)&&(0,fa.$)("*"===this.matchNodeDataFields?e.data:(0,pa.pick)(e.data,this.matchNodeDataFields),t)}}},W().createElement(ba.ME,{nodes:this.nodes,placeholder:this.placeholder,searchPlaceholder:this.searchPlaceholder,noSearch:this.noSearch,dropEmit:(0,y.Z)(this,Ja),allowDrag:this.allowDrag,allowDragToInside:this.allowDragToInside,allowDragToRoot:this.allowDragToRoot})))}}function ri(e){Yt(this,e)}function si(){return Xt(this)}function oi(e){Vt(this,e)}function li(){return Qt(this)}function ci(e){ia(this,e)}function hi(){return aa(this)}function di(e){oa(this,e)}function ui(){return sa(this)}function pi(e){da(this,e)}function vi(){return ha(this)}({e:[dt,pt,bt,ft,Zt,kt,yt,Et,Nt,Tt,St,Bt,It,Kt,Rt,zt,Ot,jt,Ut,Xt,Yt,Jt,Qt,Vt,ta,aa,ia,ra,sa,oa,ca,ha,da,ua],c:[ka,lt]}=(0,M.Z)(ni,[[ht,1,"nodes"],[ut,1,"actions"],[vt,1,"actionsHidden"],[wt,1,"placeholder"],[gt,1,"isTransformName"],[mt,1,"searchPlaceholder"],[xt,1,"noSearch"],[Mt,1,"activeKey"],[Wt,1,"showMatchedNodeOnly"],[Dt,1,"matchNodeDataFields"],[At,1,"fixedActionsFor"],[Lt,1,"collapsible"],[Ft,1,"collapsedNodes"],[Ct,1,"allowDrag"],[Pt,1,"allowDragToRoot"],[_t,1,"allowDragToInside"],[Ht,1,"nodeKey"],[$t,1,"skipNotify"],[qt,1,"actionClickEvent",function(){return(0,y.Z)(this,Oa)},function(e){(0,x.Z)(this,Oa,e)}],[Gt,1,"nodeClickEvent",function(){return(0,y.Z)(this,qa)},function(e){(0,x.Z)(this,qa,e)}],[ea,1,"nodeDropEvent",function(){return(0,y.Z)(this,Ya)},function(e){(0,x.Z)(this,Ya,e)}],[na,1,"nodeContextMenuEvent",function(){return(0,y.Z)(this,Qa)},function(e){(0,x.Z)(this,Qa,e)}],[la,1,"nodeToggleEvent",function(){return(0,y.Z)(this,ti)},function(e){(0,x.Z)(this,ti,e)}]],[ct])),lt()},8453:(e,t,a)=>{a.d(t,{Z:()=>o});var i=a(9601),n=a.n(i),r=a(2609),s=a.n(r)()(n());s.push([e.id,".custom-scrollbar-container{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.15) rgba(255,255,255,0.03);&::-webkit-scrollbar{width:8px;height:8px;background-color:transparent;position:absolute}&::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0);border-radius:4px}&:hover{&::-webkit-scrollbar-track{background-color:rgba(255,255,255,0.03)}&::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.15)}}}",""]);const o=s.toString()},8799:(e,t,a)=>{a.d(t,{Z:()=>o});var i=a(9601),n=a.n(i),r=a(2609),s=a.n(r)()(n());s.push([e.id,'.workBenchActionList{display:flex;flex-direction:column;width:-webkit-min-content;width:-moz-min-content;width:min-content;height:100%;background-color:#4297ff}:host-context(html[data-theme="dark-v2"]) .workBenchActionList,\n:host-context([data-override-theme="dark-v2"]) .workBenchActionList{background-color:#323237}',""]);const o=s.toString()},7310:(e,t,a)=>{a.d(t,{Z:()=>o});var i=a(9601),n=a.n(i),r=a(2609),s=a.n(r)()(n());s.push([e.id,'.action::part(link){display:flex;justify-content:center;align-items:center;width:48px;height:48px;font-size:24px;color:rgba(255,255,255,0.4);position:relative;transition:none}.action.active::part(link)::before{content:"";position:absolute;top:0;bottom:0;left:0;width:2px;background-color:white}.action.active::part(link),\n.action::part(link):hover{color:white}',""]);const o=s.toString()},8249:(e,t,a)=>{a.d(t,{Z:()=>o});var i=a(9601),n=a.n(i),r=a(2609),s=a.n(r)()(n());s.push([e.id,':host{display:block;--pane-color:#595959}:host-context(html[data-theme="dark-v2"]),\n:host-context([data-override-theme="dark-v2"]){--pane-color:#ccc}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.pane{display:flex;flex-direction:column;color:var(--pane-color);height:100%}.pane-header{display:flex;align-items:center;cursor:pointer;border-top:1px solid transparent;position:relative}.pane-header:focus{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:#007fd4}:host(:not(:first-child)) .pane-header{border-top-color:rgba(204,204,204,0.2)}.pane-scroll-shadow{display:none;position:absolute;bottom:-3px;left:0;right:0;height:3px;box-shadow:#000000 0 6px 6px -6px inset;z-index:1}.scrolled .pane-scroll-shadow{display:block}.pane-title{display:flex;align-items:center;font-size:13px;line-height:24px;height:25px;min-width:0;flex:1}.title-icon{display:flex;justify-content:center;align-items:center;width:24px;padding-right:2px;line-height:1;flex-shrink:0}.title-label{text-transform:uppercase;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-body{flex-grow:1;min-height:0;display:none;overflow:hidden;overflow-y:auto;overflow-y:overlay}:host([active]) .pane-body{display:initial}:host(:not(:hover)) ::slotted([slot="actions"]){display:none}.badge{background-color:rgb(77,77,77);color:rgb(255,255,255);border-radius:11px;height:18px;padding:3px 6px;line-height:13px;margin:0 3px;font-size:12px}',""]);const o=s.toString()},3571:(e,t,a)=>{a.d(t,{Z:()=>o});var i=a(9601),n=a.n(i),r=a(2609),s=a.n(r)()(n());s.push([e.id,':host{--sidebar-background:#fff;--title-container-background:#fff;--title-container-color:#595959;display:block;outline-color:rgba(83,89,93,0.5);background-color:var(--sidebar-background);height:100%}:host-context(html[data-theme="dark-v2"]),\n:host-context([data-override-theme="dark-v2"]){--sidebar-background:#181818;--title-container-background:#181818;--title-container-color:rgb(187,187,187);background-color:var(--sidebar-background)}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.sidebar{display:flex;flex-direction:column;height:100%}.title-container{display:flex;padding:0 8px 8px 8px;color:var(--title-container-color);background:var(--title-container-background)}.title-label{font-weight:300;line-height:44px;padding-left:12px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-container{flex-grow:1;min-height:0;display:flex;flex-direction:column}::slotted([slot="panes"]){transition:flex 0.2s;min-height:25px}',""]);const o=s.toString()}}]);
2
- //# sourceMappingURL=9185.e663a4fa.js.map
1
+ "use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[9185],{9185:(e,t,a)=>{a.r(t);var i,n,r,s,o,l,c,h,d,u,p,v,b,w,f,g,Z,m,k=a(3395),x=a(381),y=a(687),M=a(5303),E=a(8657),W=a.n(E),N=a(18),D=a(196),T=a(8249),A=a(8453),S=a(2779),L=a.n(S),B=(0,D.wrapBrick)("icons.general-icon"),{defineElement:F,property:I,event:C}=(0,N.createDecorators)();n=F("visual-builder.workbench-pane",{styleTexts:[T.Z,A.Z]}),r=I(),o=I({type:Boolean}),c=I({type:Number}),d=C({type:"active.change"}),b=C({type:"active.firstActivated"});var K=new WeakMap,P=new WeakMap,R=new WeakMap,_=new WeakMap,z=new WeakMap,H=new WeakMap,O=new WeakMap,$=new WeakMap,j=new WeakMap;class q extends D.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,$,{get:G,set:Y}),(0,k.Z)(this,z,{get:X,set:U}),(0,k.Z)(this,K,{writable:!0,value:(Z(this),s(this))}),(0,k.Z)(this,P,{writable:!0,value:l(this)}),(0,k.Z)(this,R,{writable:!0,value:h(this)}),(0,k.Z)(this,_,{writable:!0,value:u(this)}),(0,k.Z)(this,H,{writable:!0,value:e=>{e!==this.active&&(this.active=e,(0,y.Z)(this,z).emit(e))}}),(0,k.Z)(this,O,{writable:!0,value:w(this)}),(0,k.Z)(this,j,{writable:!0,value:()=>{(0,y.Z)(this,$).emit()}})}get titleLabel(){return(0,y.Z)(this,K)}set titleLabel(e){(0,x.Z)(this,K,e)}get active(){return(0,y.Z)(this,P)}set active(e){(0,x.Z)(this,P,e)}get badge(){return(0,y.Z)(this,R)}set badge(e){(0,x.Z)(this,R,e)}render(){return W().createElement(J,{titleLabel:this.titleLabel,active:this.active,badge:this.badge,onActiveChange:(0,y.Z)(this,H),onFirstActivated:(0,y.Z)(this,j)})}}function U(e){v(this,e)}function X(){return p(this)}function Y(e){g(this,e)}function G(){return f(this)}function J(e){var{titleLabel:t,active:a,badge:i,onActiveChange:n,onFirstActivated:r}=e,[s,o]=(0,E.useState)(a),[l,c]=(0,E.useState)(!1);(0,E.useEffect)((()=>{o(a)}),[a]),(0,E.useEffect)((()=>{null==n||n(s)}),[s,n]);var h=(0,E.useCallback)((()=>{o((e=>!e)),l||s||(c(!0),null==r||r())}),[l,s,r]),d=(0,E.useRef)(),[u,p]=(0,E.useState)(!1),v=(0,E.useMemo)((()=>{return e=()=>{p(d.current.scrollTop>0)},function(){for(var a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...i)}))};var e,t}),[]);return W().createElement("div",{className:L()("pane",{scrolled:u})},W().createElement("div",{className:"pane-header",tabIndex:0,onClick:h},W().createElement("div",{className:"pane-title"},W().createElement("span",{className:"title-icon"},s?W().createElement(B,{lib:"antd",theme:"outlined",icon:"down"}):W().createElement(B,{lib:"antd",theme:"outlined",icon:"right"})),W().createElement("div",{className:"title-label"},t),W().createElement("slot",{name:"title"})),W().createElement("slot",{name:"actions"}),i&&W().createElement("div",{className:"badge"},i),W().createElement("div",{className:"pane-scroll-shadow"})),W().createElement("div",{className:"pane-body custom-scrollbar-container",onScroll:v,ref:d},W().createElement("slot",null,W().createElement("div",{style:{padding:"10px 20px",color:"var(--text-color-secondary)"}},"No content"))))}({e:[s,l,h,u,p,v,w,f,g,Z],c:[m,i]}=(0,M.Z)(q,[[r,1,"titleLabel"],[o,1,"active"],[c,1,"badge"],[d,1,"activeChangeEvent",function(){return(0,y.Z)(this,_)},function(e){(0,x.Z)(this,_,e)}],[b,1,"activeFirstActivatedEvent",function(){return(0,y.Z)(this,O)},function(e){(0,x.Z)(this,O,e)}]],[n])),i();var Q,V,ee,te,ae,ie,ne=a(6666),re=a(3571),{defineElement:se,property:oe}=(0,N.createDecorators)();V=se("visual-builder.workbench-sidebar",{styleTexts:[re.Z]}),ee=oe();var le=new WeakMap,ce=new WeakMap,he=new WeakMap,de=new WeakMap;class ue extends D.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,le,{writable:!0,value:(ae(this),te(this))}),(0,k.Z)(this,ce,{writable:!0,value:()=>{var e;return null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])")}}),(0,k.Z)(this,he,{writable:!0,value:()=>{var e=(0,y.Z)(this,ce).call(this).assignedNodes();for(var t of e){var a;t.active?t.style.flex=String(null!==(a=t.activeFlex)&&void 0!==a?a:"1"):t.style.flex="initial"}}}),(0,k.Z)(this,de,{writable:!0,value:e=>{var t=e.target.assignedNodes();for(var a of t)a.addEventListener("active.change",(0,y.Z)(this,he))}}),(0,ne.Z)(this,"refCallback",(()=>{(0,y.Z)(this,he).call(this);var e=(0,y.Z)(this,ce).call(this);null==e||e.addEventListener("slotchange",(e=>{(0,y.Z)(this,de).call(this,e)}))}))}get titleLabel(){return(0,y.Z)(this,le)}set titleLabel(e){(0,x.Z)(this,le,e)}render(){return W().createElement(pe,{titleLabel:this.titleLabel,refCallback:this.refCallback})}}function pe(e){var{titleLabel:t,refCallback:a}=e;return W().createElement("div",{className:"sidebar",ref:a},W().createElement("div",{className:"title-container"},W().createElement("div",{className:"title-label"},t),W().createElement("slot",{name:"titleToolbar"})),W().createElement("div",{className:"pane-container"},W().createElement("slot",null)))}({e:[te,ae],c:[ie,Q]}=(0,M.Z)(ue,[[ee,1,"titleLabel"]],[V])),Q();var ve,be,we,fe,ge,Ze,me,ke,xe,ye,Me,Ee,We,Ne,De=a(7310),{defineElement:Te,property:Ae}=(0,N.createDecorators)(),Se=(0,D.wrapBrick)("basic.general-link"),Le=(0,D.wrapBrick)("icons.general-icon");be=Te("visual-builder.workbench-action",{styleTexts:[De.Z]}),we=Ae({attribute:!1}),ge=Ae(),me=Ae({type:Boolean}),xe=Ae(),Me=Ae();var Be=new WeakMap,Fe=new WeakMap,Ie=new WeakMap,Ce=new WeakMap,Ke=new WeakMap;class Pe extends D.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,Be,{writable:!0,value:(We(this),fe(this))}),(0,k.Z)(this,Fe,{writable:!0,value:Ze(this)}),(0,k.Z)(this,Ie,{writable:!0,value:ke(this)}),(0,k.Z)(this,Ce,{writable:!0,value:ye(this)}),(0,k.Z)(this,Ke,{writable:!0,value:Ee(this)})}get icon(){return(0,y.Z)(this,Be)}set icon(e){(0,x.Z)(this,Be,e)}get to(){return(0,y.Z)(this,Fe)}set to(e){(0,x.Z)(this,Fe,e)}get active(){return(0,y.Z)(this,Ie)}set active(e){(0,x.Z)(this,Ie,e)}get href(){return(0,y.Z)(this,Ce)}set href(e){(0,x.Z)(this,Ce,e)}get target(){return(0,y.Z)(this,Ke)}set target(e){(0,x.Z)(this,Ke,e)}render(){return W().createElement(Re,{to:this.to,icon:this.icon,active:this.active,href:this.href,target:this.target})}}function Re(e){var{icon:t,to:a,active:i,href:n,target:r}=e;return W().createElement(Se,{className:L()("action",{active:i}),url:a,href:n,target:r},W().createElement(Le,t))}({e:[fe,Ze,ke,ye,Ee,We],c:[Ne,ve]}=(0,M.Z)(Pe,[[we,1,"icon"],[ge,1,"to"],[me,1,"active"],[xe,1,"href"],[Me,1,"target"]],[be])),ve();var _e=a(2109),ze=a(8353);function He(e,t,a,i){var n=[],r=[],s=0;return e.forEach((e=>{if(e.key=""===i?"".concat(s):"".concat(i,".").concat(s),function(e){return"group"===e.type}(e)||function(e){return"subMenu"===e.type}(e)){var o=He(e.items,t,a,e.key);n.push(...o.selectedKeys),(o.selectedKeys.length||e.defaultExpanded)&&r.push(e.key),r.push(...o.openedKeys)}else(function(e,t,a){if(!e.to)return!1;var i="object"==typeof e.to?e.to:(0,ze.parsePath)(e.to),n=i.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),r=!!(0,_e.matchPath)(t,{path:n,exact:e.exact});if(!r&&Array.isArray(e.activeIncludes))for(var s of e.activeIncludes){var o,l=void 0,c=s.includes("?");if(c&&(l=(0,ze.parsePath)(s)),(r=!!(0,_e.matchPath)(t,{path:c?l.pathname:s,exact:!0}))&&null!==(o=l)&&void 0!==o&&o.search&&(r=Oe(a,l.search)),r)break}if(r&&Array.isArray(e.activeExcludes))for(var h of e.activeExcludes)if(!(r=!(0,_e.matchPath)(t,{path:h,exact:!0})))break;return r&&e.activeMatchSearch&&(r=Oe(a,i.search)),r})(e,t,a)&&n.push(String(e.key));s+=1})),n.length&&""!==i&&r.push(i),{selectedKeys:n,openedKeys:r}}function Oe(e,t){var a=new URLSearchParams(e),i=new URLSearchParams(t);for(var[n,r]of i.entries())if(a.get(n)!==r)return!1;return!0}var $e,je,qe,Ue,Xe,Ye,Ge,Je,Qe=a(8799),Ve=(0,D.wrapBrick)("visual-builder.workbench-action"),{defineElement:et,property:tt}=(0,N.createDecorators)();je=et("visual-builder.workbench-action-list",{styleTexts:[Qe.Z]}),qe=tt(),Xe=tt({attribute:!1});var at,it=new WeakMap,nt=new WeakMap;class rt extends D.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,it,{writable:!0,value:(Ge(this),Ue(this))}),(0,k.Z)(this,nt,{writable:!0,value:Ye(this)})}get appId(){return(0,y.Z)(this,it)}set appId(e){(0,x.Z)(this,it,e)}get menu(){return(0,y.Z)(this,nt)}set menu(e){(0,x.Z)(this,nt,e)}render(){return W().createElement(ot,{appId:this.appId,menu:this.menu})}}({e:[Ue,Ye,Ge],c:[Je,$e]}=(0,M.Z)(rt,[[qe,1,"appId"],[Xe,1,"menu"]],[je])),$e();var st=new Map;function ot(e){var t,{appId:a,menu:i}=e,n=(0,_e.getHistory)(),[r,s]=(0,E.useState)(),[o,l]=(0,E.useState)(n.location);return(0,E.useEffect)((()=>{var e=n.listen((e=>{l(e)}));return e}),[n]),(0,E.useEffect)((()=>{at||(at=a),at!==a&&(st.clear(),at=a)}),[a]),(0,E.useEffect)((()=>{var e,{pathname:t,search:a}=o,{selectedKeys:n}=He(null!==(e=null==i?void 0:i.menuItems)&&void 0!==e?e:[],t,a,"");s(Number(n[0]))}),[i,o]),W().createElement("div",{className:"workBenchActionList"},null==i||null===(t=i.menuItems)||void 0===t?void 0:t.map(((e,t)=>{if("default"===e.type){var a=e.to;return r!==t&&st.has(t)&&(a=st.get(t)),W().createElement(Ve,{key:t,icon:e.icon,to:a,href:e.href,target:e.target,active:r===t,onClick:()=>(e=>{e.href||st.set(r,"".concat(o.pathname).concat(o.search))})(e)})}})).filter(Boolean))}var lt,ct,ht,dt,ut,pt,vt,bt,wt,ft,gt,Zt,mt,kt,xt,yt,Mt,Et,Wt,Nt,Dt,Tt,At,St,Lt,Bt,Ft,It,Ct,Kt,Pt,Rt,_t,zt,Ht,Ot,$t,jt,qt,Ut,Xt,Yt,Gt,Jt,Qt,Vt,ea,ta,aa,ia,na,ra,sa,oa,la,ca,ha,da,ua,pa=a(1211),va=a(8902),ba=a(9114),wa=a(4203),fa=a(9156),ga=a(89),Za=a(1674);function ma(e){return e.key}a(5254);var ka,{defineElement:xa,property:ya,event:Ma}=(0,N.createDecorators)();ct=xa("visual-builder.workbench-tree",{styleTexts:[ga.Z,Za.Z]}),ht=ya({attribute:!1}),ut=ya({attribute:!1}),vt=ya({type:Boolean}),wt=ya(),gt=ya({type:Boolean}),mt=ya(),xt=ya({type:Boolean}),Mt=ya({attribute:!1}),Wt=ya({type:Boolean}),Dt=ya({attribute:!1}),At=ya({attribute:!1}),Lt=ya({type:Boolean}),Ft=ya({attribute:!1}),Ct=ya({type:Boolean}),Pt=ya({type:Boolean}),_t=ya({type:Boolean}),Ht=ya({type:String}),$t=ya({type:Boolean}),qt=Ma({type:"action.click"}),Gt=Ma({type:"node.click"}),ea=Ma({type:"node.drop"}),na=Ma({type:"context.menu"}),la=Ma({type:"node.toggle"});var Ea=new WeakMap,Wa=new WeakMap,Na=new WeakMap,Da=new WeakMap,Ta=new WeakMap,Aa=new WeakMap,Sa=new WeakMap,La=new WeakMap,Ba=new WeakMap,Fa=new WeakMap,Ia=new WeakMap,Ca=new WeakMap,Ka=new WeakMap,Pa=new WeakMap,Ra=new WeakMap,_a=new WeakMap,za=new WeakMap,Ha=new WeakMap,Oa=new WeakMap,$a=new WeakMap,ja=new WeakMap,qa=new WeakMap,Ua=new WeakMap,Xa=new WeakMap,Ya=new WeakMap,Ga=new WeakMap,Ja=new WeakMap,Qa=new WeakMap,Va=new WeakMap,ei=new WeakMap,ti=new WeakMap,ai=new WeakMap,ii=new WeakMap;class ni extends D.ReactNextElement{constructor(){super(...arguments),(0,k.Z)(this,ai,{get:vi,set:pi}),(0,k.Z)(this,Va,{get:ui,set:di}),(0,k.Z)(this,Ga,{get:hi,set:ci}),(0,k.Z)(this,Ua,{get:li,set:oi}),(0,k.Z)(this,$a,{get:si,set:ri}),(0,k.Z)(this,Ea,{writable:!0,value:(ua(this),dt(this))}),(0,k.Z)(this,Wa,{writable:!0,value:pt(this)}),(0,k.Z)(this,Na,{writable:!0,value:bt(this)}),(0,k.Z)(this,Da,{writable:!0,value:ft(this)}),(0,k.Z)(this,Ta,{writable:!0,value:Zt(this)}),(0,k.Z)(this,Aa,{writable:!0,value:kt(this)}),(0,k.Z)(this,Sa,{writable:!0,value:yt(this)}),(0,k.Z)(this,La,{writable:!0,value:Et(this)}),(0,k.Z)(this,Ba,{writable:!0,value:Nt(this)}),(0,k.Z)(this,Fa,{writable:!0,value:Tt(this)}),(0,k.Z)(this,Ia,{writable:!0,value:St(this)}),(0,k.Z)(this,Ca,{writable:!0,value:Bt(this)}),(0,k.Z)(this,Ka,{writable:!0,value:It(this)}),(0,k.Z)(this,Pa,{writable:!0,value:Kt(this)}),(0,k.Z)(this,Ra,{writable:!0,value:Rt(this)}),(0,k.Z)(this,_a,{writable:!0,value:zt(this)}),(0,k.Z)(this,za,{writable:!0,value:Ot(this)}),(0,k.Z)(this,Ha,{writable:!0,value:jt(this)}),(0,k.Z)(this,Oa,{writable:!0,value:Ut(this)}),(0,k.Z)(this,ja,{writable:!0,value:e=>{(0,y.Z)(this,$a).emit(e)}}),(0,k.Z)(this,qa,{writable:!0,value:Jt(this)}),(0,k.Z)(this,Xa,{writable:!0,value:e=>()=>{(0,y.Z)(this,Ua).emit(e.data)}}),(0,k.Z)(this,Ya,{writable:!0,value:ta(this)}),(0,k.Z)(this,Ja,{writable:!0,value:e=>{(0,y.Z)(this,Ga).emit(e)}}),(0,k.Z)(this,Qa,{writable:!0,value:ra(this)}),(0,k.Z)(this,ei,{writable:!0,value:e=>t=>{t.preventDefault(),(0,y.Z)(this,Va).emit({active:!0,node:null==e?void 0:e.data,x:t.clientX,y:t.clientY})}}),(0,k.Z)(this,ti,{writable:!0,value:ca(this)}),(0,k.Z)(this,ii,{writable:!0,value:(e,t)=>{(0,y.Z)(this,ai).emit({nodeId:e,collapsed:t})}})}get nodes(){return(0,y.Z)(this,Ea)}set nodes(e){(0,x.Z)(this,Ea,e)}get actions(){return(0,y.Z)(this,Wa)}set actions(e){(0,x.Z)(this,Wa,e)}get actionsHidden(){return(0,y.Z)(this,Na)}set actionsHidden(e){(0,x.Z)(this,Na,e)}get placeholder(){return(0,y.Z)(this,Da)}set placeholder(e){(0,x.Z)(this,Da,e)}get isTransformName(){return(0,y.Z)(this,Ta)}set isTransformName(e){(0,x.Z)(this,Ta,e)}get searchPlaceholder(){return(0,y.Z)(this,Aa)}set searchPlaceholder(e){(0,x.Z)(this,Aa,e)}get noSearch(){return(0,y.Z)(this,Sa)}set noSearch(e){(0,x.Z)(this,Sa,e)}get activeKey(){return(0,y.Z)(this,La)}set activeKey(e){(0,x.Z)(this,La,e)}get showMatchedNodeOnly(){return(0,y.Z)(this,Ba)}set showMatchedNodeOnly(e){(0,x.Z)(this,Ba,e)}get matchNodeDataFields(){return(0,y.Z)(this,Fa)}set matchNodeDataFields(e){(0,x.Z)(this,Fa,e)}get fixedActionsFor(){return(0,y.Z)(this,Ia)}set fixedActionsFor(e){(0,x.Z)(this,Ia,e)}get collapsible(){return(0,y.Z)(this,Ca)}set collapsible(e){(0,x.Z)(this,Ca,e)}get collapsedNodes(){return(0,y.Z)(this,Ka)}set collapsedNodes(e){(0,x.Z)(this,Ka,e)}get allowDrag(){return(0,y.Z)(this,Pa)}set allowDrag(e){(0,x.Z)(this,Pa,e)}get allowDragToRoot(){return(0,y.Z)(this,Ra)}set allowDragToRoot(e){(0,x.Z)(this,Ra,e)}get allowDragToInside(){return(0,y.Z)(this,_a)}set allowDragToInside(e){(0,x.Z)(this,_a,e)}get nodeKey(){return(0,y.Z)(this,za)}set nodeKey(e){(0,x.Z)(this,za,e)}get skipNotify(){return(0,y.Z)(this,Ha)}set skipNotify(e){(0,x.Z)(this,Ha,e)}render(){return W().createElement(va.L.Provider,{value:{actions:this.actions,actionsHidden:this.actionsHidden,onActionClick:(0,y.Z)(this,ja)}},W().createElement(wa.f.Provider,{value:{activeKey:this.activeKey,basePaddingLeft:5,showMatchedNodeOnly:this.showMatchedNodeOnly,isTransformName:this.isTransformName,fixedActionsFor:this.fixedActionsFor,nodeKey:this.nodeKey,collapsible:this.collapsible,collapsedNodes:this.collapsedNodes,getCollapsedId:ma,onNodeToggle:(0,y.Z)(this,ii),skipNotify:this.skipNotify,clickFactory:(0,y.Z)(this,Xa),contextMenuFactory:(0,y.Z)(this,ei),matchNode:(e,t)=>{var a;return(0,fa.$)(e.name,t)||!(null===(a=this.matchNodeDataFields)||void 0===a||!a.length)&&(0,fa.$)("*"===this.matchNodeDataFields?e.data:(0,pa.pick)(e.data,this.matchNodeDataFields),t)}}},W().createElement(ba.ME,{nodes:this.nodes,placeholder:this.placeholder,searchPlaceholder:this.searchPlaceholder,noSearch:this.noSearch,dropEmit:(0,y.Z)(this,Ja),allowDrag:this.allowDrag,allowDragToInside:this.allowDragToInside,allowDragToRoot:this.allowDragToRoot})))}}function ri(e){Yt(this,e)}function si(){return Xt(this)}function oi(e){Vt(this,e)}function li(){return Qt(this)}function ci(e){ia(this,e)}function hi(){return aa(this)}function di(e){oa(this,e)}function ui(){return sa(this)}function pi(e){da(this,e)}function vi(){return ha(this)}({e:[dt,pt,bt,ft,Zt,kt,yt,Et,Nt,Tt,St,Bt,It,Kt,Rt,zt,Ot,jt,Ut,Xt,Yt,Jt,Qt,Vt,ta,aa,ia,ra,sa,oa,ca,ha,da,ua],c:[ka,lt]}=(0,M.Z)(ni,[[ht,1,"nodes"],[ut,1,"actions"],[vt,1,"actionsHidden"],[wt,1,"placeholder"],[gt,1,"isTransformName"],[mt,1,"searchPlaceholder"],[xt,1,"noSearch"],[Mt,1,"activeKey"],[Wt,1,"showMatchedNodeOnly"],[Dt,1,"matchNodeDataFields"],[At,1,"fixedActionsFor"],[Lt,1,"collapsible"],[Ft,1,"collapsedNodes"],[Ct,1,"allowDrag"],[Pt,1,"allowDragToRoot"],[_t,1,"allowDragToInside"],[Ht,1,"nodeKey"],[$t,1,"skipNotify"],[qt,1,"actionClickEvent",function(){return(0,y.Z)(this,Oa)},function(e){(0,x.Z)(this,Oa,e)}],[Gt,1,"nodeClickEvent",function(){return(0,y.Z)(this,qa)},function(e){(0,x.Z)(this,qa,e)}],[ea,1,"nodeDropEvent",function(){return(0,y.Z)(this,Ya)},function(e){(0,x.Z)(this,Ya,e)}],[na,1,"nodeContextMenuEvent",function(){return(0,y.Z)(this,Qa)},function(e){(0,x.Z)(this,Qa,e)}],[la,1,"nodeToggleEvent",function(){return(0,y.Z)(this,ti)},function(e){(0,x.Z)(this,ti,e)}]],[ct])),lt()},8453:(e,t,a)=>{a.d(t,{Z:()=>o});var i=a(9601),n=a.n(i),r=a(2609),s=a.n(r)()(n());s.push([e.id,".custom-scrollbar-container{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.15) rgba(255,255,255,0.03);&::-webkit-scrollbar{width:8px;height:8px;background-color:transparent;position:absolute}&::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0);border-radius:4px}&:hover{&::-webkit-scrollbar-track{background-color:rgba(255,255,255,0.03)}&::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.15)}}}",""]);const o=s.toString()},8799:(e,t,a)=>{a.d(t,{Z:()=>o});var i=a(9601),n=a.n(i),r=a(2609),s=a.n(r)()(n());s.push([e.id,'.workBenchActionList{display:flex;flex-direction:column;width:-webkit-min-content;width:-moz-min-content;width:min-content;height:100%;background-color:#4297ff}:host-context(html[data-theme="dark-v2"]) .workBenchActionList,\n:host-context([data-override-theme="dark-v2"]) .workBenchActionList{background-color:#323237}',""]);const o=s.toString()},7310:(e,t,a)=>{a.d(t,{Z:()=>o});var i=a(9601),n=a.n(i),r=a(2609),s=a.n(r)()(n());s.push([e.id,'.action::part(link){display:flex;justify-content:center;align-items:center;width:48px;height:48px;font-size:24px;color:rgba(255,255,255,0.4);position:relative;transition:none}.action.active::part(link)::before{content:"";position:absolute;top:0;bottom:0;left:0;width:2px;background-color:white}.action.active::part(link),\n.action::part(link):hover{color:white}',""]);const o=s.toString()},8249:(e,t,a)=>{a.d(t,{Z:()=>o});var i=a(9601),n=a.n(i),r=a(2609),s=a.n(r)()(n());s.push([e.id,':host{display:block;--pane-color:#595959}:host-context(html[data-theme="dark-v2"]),\n:host-context([data-override-theme="dark-v2"]){--pane-color:#ccc}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.pane{display:flex;flex-direction:column;color:var(--pane-color);height:100%}.pane-header{display:flex;align-items:center;cursor:pointer;border-top:1px solid transparent;position:relative}.pane-header:focus{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:#007fd4}:host(:not(:first-child)) .pane-header{border-top-color:rgba(204,204,204,0.2)}.pane-scroll-shadow{display:none;position:absolute;bottom:-3px;left:0;right:0;height:3px;box-shadow:#000000 0 6px 6px -6px inset;z-index:1}.scrolled .pane-scroll-shadow{display:block}.pane-title{display:flex;align-items:center;font-size:13px;line-height:24px;height:25px;min-width:0;flex:1}.title-icon{display:flex;justify-content:center;align-items:center;width:24px;padding-right:2px;line-height:1;flex-shrink:0}.title-label{text-transform:uppercase;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-body{flex-grow:1;min-height:0;display:none;overflow:hidden;overflow-y:auto;overflow-y:overlay}:host([active]) .pane-body{display:initial}:host(:not(:hover)) ::slotted([slot="actions"]){display:none}.badge{background-color:rgb(77,77,77);color:rgb(255,255,255);border-radius:11px;height:18px;padding:3px 6px;line-height:13px;margin:0 3px;font-size:12px}',""]);const o=s.toString()},3571:(e,t,a)=>{a.d(t,{Z:()=>o});var i=a(9601),n=a.n(i),r=a(2609),s=a.n(r)()(n());s.push([e.id,':host{--sidebar-background:#fff;--title-container-background:#fff;--title-container-color:#595959;display:block;outline-color:rgba(83,89,93,0.5);background-color:var(--sidebar-background);height:100%}:host-context(html[data-theme="dark-v2"]),\n:host-context([data-override-theme="dark-v2"]){--sidebar-background:#181818;--title-container-background:#181818;--title-container-color:rgb(187,187,187);background-color:var(--sidebar-background)}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.sidebar{display:flex;flex-direction:column;height:100%}.title-container{display:flex;padding:0 8px 8px 8px;color:var(--title-container-color);background:var(--title-container-background)}.title-label{font-weight:300;line-height:44px;padding-left:12px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-container{flex-grow:1;min-height:0;display:flex;flex-direction:column}::slotted([slot="panes"]){transition:flex 0.2s;min-height:25px}',""]);const o=s.toString()}}]);
2
+ //# sourceMappingURL=9185.1d88c59a.js.map