@next-bricks/visual-builder 1.16.0 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +8 -8
- package/dist/chunks/1045.ed8e8ff6.js +2 -0
- package/dist/chunks/1045.ed8e8ff6.js.map +1 -0
- package/dist/chunks/1122.5e99d930.js +2 -0
- package/dist/chunks/1122.5e99d930.js.map +1 -0
- package/dist/chunks/114.d0ad0448.js +2 -0
- package/dist/chunks/114.d0ad0448.js.map +1 -0
- package/dist/chunks/1370.f1c0b4dc.js +2 -0
- package/dist/chunks/1370.f1c0b4dc.js.map +1 -0
- package/dist/chunks/1822.37dd5267.js +3 -0
- package/dist/chunks/1822.37dd5267.js.map +1 -0
- package/dist/chunks/1889.7ee6209f.js +2 -0
- package/dist/chunks/{1889.9f00371e.js.map → 1889.7ee6209f.js.map} +1 -1
- package/dist/chunks/1940.0b0de6e5.js +2 -0
- package/dist/chunks/1940.0b0de6e5.js.map +1 -0
- package/dist/chunks/2052.f1624476.js +2 -0
- package/dist/chunks/{2052.5926f210.js.map → 2052.f1624476.js.map} +1 -1
- package/dist/chunks/2201.0a5797e4.js +2 -0
- package/dist/chunks/{2201.f054fdcf.js.map → 2201.0a5797e4.js.map} +1 -1
- package/dist/chunks/2252.0e662bae.js +3 -0
- package/dist/chunks/2252.0e662bae.js.map +1 -0
- package/dist/chunks/2277.20753c71.js +2 -0
- package/dist/chunks/2277.20753c71.js.map +1 -0
- package/dist/chunks/2980.77a1f798.js +2 -0
- package/dist/chunks/2980.77a1f798.js.map +1 -0
- package/dist/chunks/3144.0096b9c3.js +3 -0
- package/dist/chunks/{3144.6ad0f014.js.map → 3144.0096b9c3.js.map} +1 -1
- package/dist/chunks/3171.a78de2a1.js +2 -0
- package/dist/chunks/3171.a78de2a1.js.map +1 -0
- package/dist/chunks/3933.a2c38438.js +2 -0
- package/dist/chunks/3933.a2c38438.js.map +1 -0
- package/dist/chunks/4041.468489fa.js +3 -0
- package/dist/chunks/{4041.b50c80d7.js.map → 4041.468489fa.js.map} +1 -1
- package/dist/chunks/4658.bca01584.js +2 -0
- package/dist/chunks/4658.bca01584.js.map +1 -0
- package/dist/chunks/4741.b96ddd0b.js +2 -0
- package/dist/chunks/{4741.cf0d2915.js.map → 4741.b96ddd0b.js.map} +1 -1
- package/dist/chunks/5250.f22684c9.js +3 -0
- package/dist/chunks/{5250.dc33943a.js.map → 5250.f22684c9.js.map} +1 -1
- package/dist/chunks/5384.7fbe2a84.js +2 -0
- package/dist/chunks/{5384.db165893.js.map → 5384.7fbe2a84.js.map} +1 -1
- package/dist/chunks/5399.ea7e9b64.js +2 -0
- package/dist/chunks/5399.ea7e9b64.js.map +1 -0
- package/dist/chunks/548.cd13d345.js +3 -0
- package/dist/chunks/548.cd13d345.js.map +1 -0
- package/dist/chunks/5552.3f1c7478.js +2 -0
- package/dist/chunks/5552.3f1c7478.js.map +1 -0
- package/dist/chunks/6314.0f0f8b7c.js +2 -0
- package/dist/chunks/6314.0f0f8b7c.js.map +1 -0
- package/dist/chunks/6519.ddef7177.js +2 -0
- package/dist/chunks/6519.ddef7177.js.map +1 -0
- package/dist/chunks/6773.7837da8c.js +2 -0
- package/dist/chunks/{6773.f4d1ef05.js.map → 6773.7837da8c.js.map} +1 -1
- package/dist/chunks/6828.d531a98c.js +3 -0
- package/dist/chunks/{6828.65e57173.js.map → 6828.d531a98c.js.map} +1 -1
- package/dist/chunks/7041.5c093fc7.js +3 -0
- package/dist/chunks/7041.5c093fc7.js.LICENSE.txt +1 -0
- package/dist/chunks/7041.5c093fc7.js.map +1 -0
- package/dist/chunks/7115.3108075e.js +2 -0
- package/dist/chunks/7115.3108075e.js.map +1 -0
- package/dist/chunks/726.e407e050.js +2 -0
- package/dist/chunks/{726.f472432c.js.map → 726.e407e050.js.map} +1 -1
- package/dist/chunks/7721.6dd8673d.js +3 -0
- package/dist/chunks/{7721.b491f7fa.js.map → 7721.6dd8673d.js.map} +1 -1
- package/dist/chunks/7733.a0a60e42.js +2 -0
- package/dist/chunks/7733.a0a60e42.js.map +1 -0
- package/dist/chunks/790.a1269b3c.js +2 -0
- package/dist/chunks/790.a1269b3c.js.map +1 -0
- package/dist/chunks/8097.f37c5904.js +2 -0
- package/dist/chunks/8097.f37c5904.js.map +1 -0
- package/dist/chunks/871.f5ada237.js +2 -0
- package/dist/chunks/871.f5ada237.js.map +1 -0
- package/dist/chunks/8989.545efad6.js +2 -0
- package/dist/chunks/8989.545efad6.js.map +1 -0
- package/dist/chunks/9027.e7b6fcc1.js +2 -0
- package/dist/chunks/9027.e7b6fcc1.js.map +1 -0
- package/dist/chunks/9496.45c0e5bc.js +2 -0
- package/dist/chunks/9496.45c0e5bc.js.map +1 -0
- package/dist/chunks/9515.edbfa13e.js +2 -0
- package/dist/chunks/{9515.07ef90ca.js.map → 9515.edbfa13e.js.map} +1 -1
- package/dist/chunks/9542.7b1a990f.js +2 -0
- package/dist/chunks/{9542.3e5012b2.js.map → 9542.7b1a990f.js.map} +1 -1
- package/dist/chunks/9559.bb8e9b13.js +2 -0
- package/dist/chunks/9559.bb8e9b13.js.map +1 -0
- package/dist/chunks/9740.104dd9ba.js +2 -0
- package/dist/chunks/9740.104dd9ba.js.map +1 -0
- package/dist/chunks/9780.bf18ff0d.js +2 -0
- package/dist/chunks/9780.bf18ff0d.js.map +1 -0
- package/dist/chunks/9844.4328557b.js +2 -0
- package/dist/chunks/{9844.bc9b1bf6.js.map → 9844.4328557b.js.map} +1 -1
- package/dist/chunks/chat-conversation.f0d470b9.js +2 -0
- package/dist/chunks/chat-conversation.f0d470b9.js.map +1 -0
- package/dist/chunks/chat-preview.358d19a4.js +3 -0
- package/dist/chunks/chat-preview.358d19a4.js.map +1 -0
- package/dist/chunks/contract-select.bb780167.js +3 -0
- package/dist/chunks/contract-select.bb780167.js.map +1 -0
- package/dist/chunks/generate-snippets-context-menu.d4b7c29a.js +2 -0
- package/dist/chunks/generate-snippets-context-menu.d4b7c29a.js.map +1 -0
- package/dist/chunks/inject-chat-preview-agent.fcb9f3bb.js +2 -0
- package/dist/chunks/inject-chat-preview-agent.fcb9f3bb.js.map +1 -0
- package/dist/chunks/inject-preview-agent.07d466dd.js +2 -0
- package/dist/chunks/{inject-preview-agent.805cc41f.js.map → inject-preview-agent.07d466dd.js.map} +1 -1
- package/dist/chunks/main.18b98658.js +2 -0
- package/dist/chunks/main.18b98658.js.map +1 -0
- package/dist/chunks/page-arch-node.c49d623e.js +3 -0
- package/dist/chunks/page-arch-node.c49d623e.js.map +1 -0
- package/dist/chunks/pre-generated-container.4b189465.js +2 -0
- package/dist/chunks/pre-generated-container.4b189465.js.map +1 -0
- package/dist/chunks/pre-generated-preview.a040cb09.js +3 -0
- package/dist/chunks/pre-generated-preview.a040cb09.js.map +1 -0
- package/dist/chunks/pre-generated-table-view.87ca8307.js +2 -0
- package/dist/chunks/pre-generated-table-view.87ca8307.js.map +1 -0
- package/dist/chunks/workbench-action-list.d6808912.js +2 -0
- package/dist/chunks/workbench-action-list.d6808912.js.map +1 -0
- package/dist/chunks/workbench-action.91f531b5.js +3 -0
- package/dist/chunks/workbench-action.91f531b5.js.map +1 -0
- package/dist/chunks/workbench-history-action.a75a504b.js +3 -0
- package/dist/chunks/workbench-history-action.a75a504b.js.map +1 -0
- package/dist/chunks/workbench-pane.5b1545d7.js +3 -0
- package/dist/chunks/workbench-pane.5b1545d7.js.map +1 -0
- package/dist/chunks/workbench-sidebar.8d9d84bc.js +2 -0
- package/dist/chunks/workbench-sidebar.8d9d84bc.js.map +1 -0
- package/dist/chunks/workbench-tree.03fd4c43.js +3 -0
- package/dist/chunks/workbench-tree.03fd4c43.js.map +1 -0
- package/dist/index.3649d6dc.js +2 -0
- package/dist/index.3649d6dc.js.map +1 -0
- package/dist/manifest.json +47 -47
- package/dist/types.json +226 -226
- package/package.json +4 -4
- package/dist/chunks/1045.3cfb5ba7.js +0 -2
- package/dist/chunks/1045.3cfb5ba7.js.map +0 -1
- package/dist/chunks/1122.10847c89.js +0 -2
- package/dist/chunks/1122.10847c89.js.map +0 -1
- package/dist/chunks/114.0be1e4c4.js +0 -2
- package/dist/chunks/114.0be1e4c4.js.map +0 -1
- package/dist/chunks/1369.012de1c7.js +0 -2
- package/dist/chunks/1369.012de1c7.js.map +0 -1
- package/dist/chunks/1370.bde908f3.js +0 -2
- package/dist/chunks/1370.bde908f3.js.map +0 -1
- package/dist/chunks/1822.b9d18634.js +0 -3
- package/dist/chunks/1822.b9d18634.js.map +0 -1
- package/dist/chunks/1889.9f00371e.js +0 -2
- package/dist/chunks/1940.223b0e9d.js +0 -2
- package/dist/chunks/1940.223b0e9d.js.map +0 -1
- package/dist/chunks/2052.5926f210.js +0 -2
- package/dist/chunks/2201.f054fdcf.js +0 -2
- package/dist/chunks/2252.49deac2a.js +0 -3
- package/dist/chunks/2252.49deac2a.js.map +0 -1
- package/dist/chunks/2277.79669f0d.js +0 -2
- package/dist/chunks/2277.79669f0d.js.map +0 -1
- package/dist/chunks/2652.81816881.js +0 -2
- package/dist/chunks/2652.81816881.js.map +0 -1
- package/dist/chunks/2980.bb2d0952.js +0 -2
- package/dist/chunks/2980.bb2d0952.js.map +0 -1
- package/dist/chunks/3144.6ad0f014.js +0 -3
- package/dist/chunks/3171.3759a7bc.js +0 -2
- package/dist/chunks/3171.3759a7bc.js.map +0 -1
- package/dist/chunks/3620.d1c28662.js +0 -2
- package/dist/chunks/3620.d1c28662.js.map +0 -1
- package/dist/chunks/3933.5a4cdee4.js +0 -2
- package/dist/chunks/3933.5a4cdee4.js.map +0 -1
- package/dist/chunks/4041.b50c80d7.js +0 -3
- package/dist/chunks/4103.3bfaf833.js +0 -2
- package/dist/chunks/4103.3bfaf833.js.map +0 -1
- package/dist/chunks/4658.30fb0b61.js +0 -2
- package/dist/chunks/4658.30fb0b61.js.map +0 -1
- package/dist/chunks/4741.cf0d2915.js +0 -2
- package/dist/chunks/5250.dc33943a.js +0 -3
- package/dist/chunks/5384.db165893.js +0 -2
- package/dist/chunks/5399.87d8f078.js +0 -2
- package/dist/chunks/5399.87d8f078.js.map +0 -1
- package/dist/chunks/5552.cce0f361.js +0 -2
- package/dist/chunks/5552.cce0f361.js.map +0 -1
- package/dist/chunks/6314.05fdaa81.js +0 -2
- package/dist/chunks/6314.05fdaa81.js.map +0 -1
- package/dist/chunks/6519.538410d7.js +0 -2
- package/dist/chunks/6519.538410d7.js.map +0 -1
- package/dist/chunks/6773.f4d1ef05.js +0 -2
- package/dist/chunks/6828.65e57173.js +0 -3
- package/dist/chunks/7115.5e22b22a.js +0 -2
- package/dist/chunks/7115.5e22b22a.js.map +0 -1
- package/dist/chunks/726.f472432c.js +0 -2
- package/dist/chunks/7721.b491f7fa.js +0 -3
- package/dist/chunks/7733.a6c1c97f.js +0 -2
- package/dist/chunks/7733.a6c1c97f.js.map +0 -1
- package/dist/chunks/7780.1ca43b02.js +0 -2
- package/dist/chunks/7780.1ca43b02.js.map +0 -1
- package/dist/chunks/790.998c811a.js +0 -2
- package/dist/chunks/790.998c811a.js.map +0 -1
- package/dist/chunks/8097.5c42f68b.js +0 -2
- package/dist/chunks/8097.5c42f68b.js.map +0 -1
- package/dist/chunks/871.9516e890.js +0 -2
- package/dist/chunks/871.9516e890.js.map +0 -1
- package/dist/chunks/8989.f2fd0c29.js +0 -2
- package/dist/chunks/8989.f2fd0c29.js.map +0 -1
- package/dist/chunks/9027.a7e4a11b.js +0 -2
- package/dist/chunks/9027.a7e4a11b.js.map +0 -1
- package/dist/chunks/9496.cfc9137c.js +0 -2
- package/dist/chunks/9496.cfc9137c.js.map +0 -1
- package/dist/chunks/9515.07ef90ca.js +0 -2
- package/dist/chunks/9542.3e5012b2.js +0 -2
- package/dist/chunks/9559.fb37eb8b.js +0 -2
- package/dist/chunks/9559.fb37eb8b.js.map +0 -1
- package/dist/chunks/9844.bc9b1bf6.js +0 -2
- package/dist/chunks/9933.f2bac1e9.js +0 -3
- package/dist/chunks/9933.f2bac1e9.js.map +0 -1
- package/dist/chunks/chat-conversation.0825ab19.js +0 -2
- package/dist/chunks/chat-conversation.0825ab19.js.map +0 -1
- package/dist/chunks/chat-preview.31ddc0bf.js +0 -3
- package/dist/chunks/chat-preview.31ddc0bf.js.map +0 -1
- package/dist/chunks/contract-select.dd2f3bb6.js +0 -3
- package/dist/chunks/contract-select.dd2f3bb6.js.map +0 -1
- package/dist/chunks/generate-snippets-context-menu.8c78ae9d.js +0 -2
- package/dist/chunks/generate-snippets-context-menu.8c78ae9d.js.map +0 -1
- package/dist/chunks/inject-chat-preview-agent.895e7805.js +0 -2
- package/dist/chunks/inject-chat-preview-agent.895e7805.js.map +0 -1
- package/dist/chunks/inject-preview-agent.805cc41f.js +0 -2
- package/dist/chunks/main.8e745868.js +0 -2
- package/dist/chunks/main.8e745868.js.map +0 -1
- package/dist/chunks/page-arch-node.317c7c25.js +0 -3
- package/dist/chunks/page-arch-node.317c7c25.js.map +0 -1
- package/dist/chunks/pre-generated-container.1901c212.js +0 -2
- package/dist/chunks/pre-generated-container.1901c212.js.map +0 -1
- package/dist/chunks/pre-generated-preview.a4f882ee.js +0 -3
- package/dist/chunks/pre-generated-preview.a4f882ee.js.map +0 -1
- package/dist/chunks/pre-generated-table-view.cf8a978d.js +0 -2
- package/dist/chunks/pre-generated-table-view.cf8a978d.js.map +0 -1
- package/dist/chunks/workbench-action-list.4c70e5af.js +0 -2
- package/dist/chunks/workbench-action-list.4c70e5af.js.map +0 -1
- package/dist/chunks/workbench-action.6906cb59.js +0 -3
- package/dist/chunks/workbench-action.6906cb59.js.map +0 -1
- package/dist/chunks/workbench-history-action.a3c68650.js +0 -3
- package/dist/chunks/workbench-history-action.a3c68650.js.map +0 -1
- package/dist/chunks/workbench-pane.e1117f7d.js +0 -3
- package/dist/chunks/workbench-pane.e1117f7d.js.map +0 -1
- package/dist/chunks/workbench-sidebar.0daa02f4.js +0 -2
- package/dist/chunks/workbench-sidebar.0daa02f4.js.map +0 -1
- package/dist/chunks/workbench-tree.35da5fd0.js +0 -3
- package/dist/chunks/workbench-tree.35da5fd0.js.map +0 -1
- package/dist/index.7e581c1e.js +0 -2
- package/dist/index.7e581c1e.js.map +0 -1
- /package/dist/chunks/{1822.b9d18634.js.LICENSE.txt → 1822.37dd5267.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{2252.49deac2a.js.LICENSE.txt → 2252.0e662bae.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{3144.6ad0f014.js.LICENSE.txt → 3144.0096b9c3.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4041.b50c80d7.js.LICENSE.txt → 4041.468489fa.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5250.dc33943a.js.LICENSE.txt → 5250.f22684c9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9933.f2bac1e9.js.LICENSE.txt → 548.cd13d345.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6828.65e57173.js.LICENSE.txt → 6828.d531a98c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{7721.b491f7fa.js.LICENSE.txt → 7721.6dd8673d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-preview.31ddc0bf.js.LICENSE.txt → chat-preview.358d19a4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{contract-select.dd2f3bb6.js.LICENSE.txt → contract-select.bb780167.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{page-arch-node.317c7c25.js.LICENSE.txt → page-arch-node.c49d623e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{pre-generated-preview.a4f882ee.js.LICENSE.txt → pre-generated-preview.a040cb09.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-action.6906cb59.js.LICENSE.txt → workbench-action.91f531b5.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.a3c68650.js.LICENSE.txt → workbench-history-action.a75a504b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-pane.e1117f7d.js.LICENSE.txt → workbench-pane.5b1545d7.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-tree.35da5fd0.js.LICENSE.txt → workbench-tree.03fd4c43.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/1369.012de1c7.js","mappings":"yKAEe,SAASA,EAAcC,GACpC,IAAIC,ECFS,SAAqBD,EAAGE,GACrC,GAAI,WAAY,OAAQF,KAAOA,EAAG,OAAOA,EACzC,IAAIG,EAAIH,EAAEI,OAAOC,aACjB,QAAI,IAAWF,EAAG,CAChB,IAAIF,EAAIE,EAAEG,KAAKN,EAAGE,UAClB,GAAI,WAAY,OAAQD,GAAI,OAAOA,EACnC,MAAM,IAAIM,UAAU,+CACtB,CACA,OAAyBC,OAAiBR,EAC5C,CDPUK,CAAYL,GACpB,MAAO,WAAY,OAAQC,GAAKA,EAAIA,EAAI,EAC1C,C,iBELe,SAASQ,EAAQC,GAG9B,OAAOD,EAAU,mBAAqBL,QAAU,iBAAmBA,OAAOO,SAAW,SAAUD,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBN,QAAUM,EAAEE,cAAgBR,QAAUM,IAAMN,OAAOS,UAAY,gBAAkBH,CACpH,EAAGD,EAAQC,EACb,C","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}"],"names":["toPropertyKey","t","i","r","e","Symbol","toPrimitive","call","TypeError","String","_typeof","o","iterator","constructor","prototype"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[1370],{2559:(r,t,e)=>{function n(r,t,e){if("function"==typeof r?r===t:r.has(t))return arguments.length<3?t:e;throw new TypeError("Private element is not present on this object")}e.d(t,{A:()=>n})},2016:(r,t,e)=>{function n(r,t){if(t.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}e.d(t,{A:()=>n})},829:(r,t,e)=>{e.d(t,{A:()=>s});var n=e(2559);function s(r,t){return r.get((0,n.A)(r,t))}},918:(r,t,e)=>{e.d(t,{A:()=>s});var n=e(2016);function s(r,t,e){(0,n.A)(r,t),t.set(r,e)}},6121:(r,t,e)=>{e.d(t,{A:()=>s});var n=e(2559);function s(r,t,e){return r.set((0,n.A)(r,t),e),e}},4635:(r,t,e)=>{e.d(t,{A:()=>s});var n=e(2016);function s(r,t){(0,n.A)(r,t),t.add(r)}},9740:(r,t,e)=>{e.d(t,{A:()=>o});var n=e(4586);function s(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.push.apply(e,n)}return e}function o(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?s(Object(e),!0).forEach((function(t){(0,n.A)(r,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}},4223:(r,t,e)=>{function n(r,t){if(null==r)return{};var e,n,s=function(r,t){if(null==r)return{};var e,n,s={},o=Object.keys(r);for(n=0;n<o.length;n++)e=o[n],t.indexOf(e)>=0||(s[e]=r[e]);return s}(r,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(n=0;n<o.length;n++)e=o[n],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(r,e)&&(s[e]=r[e])}return s}e.d(t,{A:()=>n})},8989:(r,t,e)=>{e.r(t),e.d(t,{HttpAbortError:()=>N,HttpFetchError:()=>L,HttpParseError:()=>G,HttpResponseError:()=>B,createHttpInstance:()=>K,defaultAdapter:()=>V,fetch:()=>J,http:()=>M,isHttpAbortError:()=>z});var n={};e.r(n),e.d(n,{HttpAbortError:()=>E,HttpFetchError:()=>f,HttpParseError:()=>A,HttpResponseError:()=>v,createHttpInstance:()=>F,defaultAdapter:()=>k,fetch:()=>s,getUrlWithParams:()=>j,http:()=>I,isHttpAbortError:()=>H});var s=(r,t)=>{var e=new Request(r,Object.assign({credentials:"same-origin"},t));return self.fetch(e)},o=e(4635),a=e(918),i=e(4586),c=e(829),u=e(2559),h=e(6121),p=e(9740),l=e(4223),d=e(6330);class f extends Error{constructor(r){super(r),this.name="HttpFetchError",Error.captureStackTrace&&Error.captureStackTrace(this,f)}}class v extends Error{constructor(r,t){super(r.statusText),(0,i.A)(this,"response",void 0),(0,i.A)(this,"responseJson",void 0),this.name="HttpResponseError",Error.captureStackTrace&&Error.captureStackTrace(this,v),this.response=r,this.responseJson=t}}class A extends Error{constructor(r){super(r.statusText),(0,i.A)(this,"response",void 0),this.name="HttpParseError",Error.captureStackTrace&&Error.captureStackTrace(this,A),this.response=r}}class E extends Error{constructor(r){super(r),this.name="HttpAbortError"}}class b{constructor(){(0,i.A)(this,"handlers",[])}use(r,t){return this.handlers.push({fulfilled:r,rejected:t}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}forEach(r){this.handlers.forEach((t=>{null!==t&&r(t)}))}}var m=["params","responseType","interceptorParams","observe","noAbortOnRouteChange","useCache"],y=["params","headers","responseType","interceptorParams","observe","noAbortOnRouteChange","useCache"],w=["body","method"];function O(r){return null==r}var g=document.querySelector("base"),P=g?g.href:location.origin+"/",H=r=>r instanceof DOMException&&20===r.code,T=function(){var r=(0,d.A)((function*(r,t,e){return new Promise(function(){var n=(0,d.A)((function*(n,o){var a;e.url=r;var{responseType:i}=e.options||{};i||(i="json");try{a=yield s(r,t)}catch(r){return void o(H(r)?new E(r.toString()):new f(r.toString()))}if(a.ok){var c;try{c=yield a[i]()}catch(r){return void o(H(r)?new E(r.toString()):new A(a))}n({status:a.status,statusText:a.statusText,headers:a.headers,data:c})}else{var u;try{u=yield a.json()}catch(r){}o(new v(a,u))}}));return function(r,t){return n.apply(this,arguments)}}())}));return function(t,e,n){return r.apply(this,arguments)}}(),j=(r,t)=>{if(t){var e=new URL(r,P);t instanceof URLSearchParams?t.forEach((function(r,t){e.searchParams.append(t,r)})):Object.entries(t).forEach((r=>{var[t,n]=r;Array.isArray(n)?n.forEach((r=>{e.searchParams.append(t,O(r)?"":r)})):e.searchParams.append(t,O(n)?"":n)}));var{href:n}=e;return n.startsWith(P)?n.substr(P.length):n}return r},S=(r,t)=>{if(void 0!==r){var e=new Headers(t||{}),n="Content-Type",s=r;return e.has(n)||("string"==typeof r?e.set(n,"application/x-www-form-urlencoded"):r instanceof FormData||(e.set(n,"application/json"),s=JSON.stringify(r))),{body:s,headers:e}}return{headers:t}},k=r=>{var{url:t,method:e,data:n}=r;return["DELETE","GET","HEAD"].includes(r.method)?((r,t,e)=>{var n=e.options||{},{params:s,responseType:o,interceptorParams:a,observe:i,noAbortOnRouteChange:c,useCache:u}=n,h=(0,l.A)(n,m);return T(j(t,s),(0,p.A)((0,p.A)({},h),{},{method:r}),e)})(e,t,r):((r,t,e,n)=>{var s=n.options||{},{params:o,headers:a,responseType:i,interceptorParams:c,observe:u,noAbortOnRouteChange:h,useCache:d}=s,f=(0,l.A)(s,y);return T(j(t,o),(0,p.A)((0,p.A)({},f),{},{method:r},S(e,a)),n)})(e,t,n,r)},x=new WeakMap,C=new WeakSet;class R{constructor(r){var t=this;(0,o.A)(this,C),(0,i.A)(this,"interceptors",void 0),(0,a.A)(this,x,k),(0,i.A)(this,"request",function(){var r=(0,d.A)((function*(r,e,n){var s=e||{},{body:o,method:a}=s,i=(0,l.A)(s,w);return(0,u.A)(C,t,D).call(t,{url:r,data:o,method:a||"GET",options:(0,p.A)((0,p.A)({},n||{}),i)})}));return function(t,e,n){return r.apply(this,arguments)}}()),(0,i.A)(this,"simpleRequest",(function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,u.A)(C,t,D).call(t,{url:e,method:r,options:n})})),(0,i.A)(this,"requestWithBody",(function(r,e,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,u.A)(C,t,D).call(t,{url:e,method:r,data:n,options:s})})),this.interceptors={request:new b,response:new b},null!=r&&r.adapter&&(0,h.A)(x,this,r.adapter)}getUrlWithParams(r,t){return j(r,t)}getBodyAndHeaders(r,t){return S(r,t)}get(r,t){return(0,u.A)(C,this,D).call(this,{url:r,method:"GET",options:t})}delete(r,t){return(0,u.A)(C,this,D).call(this,{url:r,method:"DELETE",options:t})}head(r,t){return(0,u.A)(C,this,D).call(this,{url:r,method:"HEAD",options:t})}post(r,t,e){return(0,u.A)(C,this,D).call(this,{url:r,method:"POST",data:t,options:e})}put(r,t,e){return(0,u.A)(C,this,D).call(this,{url:r,method:"PUT",data:t,options:e})}patch(r,t,e){return(0,u.A)(C,this,D).call(this,{url:r,method:"PATCH",data:t,options:e})}}function D(r){var t=[],e=Promise.resolve(r);for(this.interceptors.request.forEach((r=>{t.push(r.fulfilled,r.rejected)})),t.push((r=>(0,c.A)(x,this).call(this,r)),void 0),this.interceptors.response.forEach((e=>{t.push((t=>{var n;return null===(n=e.fulfilled)||void 0===n?void 0:n.call(e,t,r)}),(t=>{var n;return null===(n=e.rejected)||void 0===n?void 0:n.call(e,t,r)}))})),t.push((t=>{var e;return"response"===(null===(e=r.options)||void 0===e?void 0:e.observe)?t:t.data}),void 0);t.length;)e=e.then(t.shift(),t.shift());return e}var _,W,q,I=new R;function F(r){I=new R(r)}var{dll:U}=window;W=U&&null!==(_=window.BRICK_NEXT_VERSIONS)&&void 0!==_&&null!==(_=_["brick-container"])&&void 0!==_&&_.startsWith("2.")&&(q=U("JxWY"))?q:n;var{fetch:J,HttpFetchError:L,HttpResponseError:B,HttpParseError:G,HttpAbortError:N,http:M,isHttpAbortError:z,createHttpInstance:K,defaultAdapter:V}=W}}]);
|
|
2
|
-
//# sourceMappingURL=1370.bde908f3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/1370.bde908f3.js","mappings":"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","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/assertClassBrand.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack:///../../node_modules/@next-core/http/dist/esm/fetch.js","webpack:///../../node_modules/@next-core/http/dist/esm/errors.js","webpack:///../../node_modules/@next-core/http/dist/esm/InterceptorManager.js","webpack:///../../node_modules/@next-core/http/dist/esm/http.js","webpack:///../../node_modules/@next-core/http/dist/esm/index.js"],"sourcesContent":["export default function _assertClassBrand(e, t, n) {\n if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;\n throw new TypeError(\"Private element is not present on this object\");\n}","export default function _checkPrivateRedeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldGet2(s, a) {\n return s.get(assertClassBrand(s, a));\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldSet2(s, a, r) {\n return s.set(assertClassBrand(s, a), r), r;\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateMethodInitSpec(obj, privateSet) {\n checkPrivateRedeclaration(obj, privateSet);\n privateSet.add(obj);\n}","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nexport default function _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","export var fetch = (input, init) => {\n // Support older browsers which default credentials is \"omit\".\n // Ref https://github.com/whatwg/fetch/pull/585\n var req = new Request(input, Object.assign({\n credentials: \"same-origin\"\n }, init));\n return self.fetch(req);\n};\n//# sourceMappingURL=fetch.js.map","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nexport class HttpFetchError extends Error {\n constructor(message) {\n // Pass remaining arguments (including vendor specific ones) to parent constructor\n super(message);\n this.name = \"HttpFetchError\";\n\n // Maintains proper stack trace for where our error was thrown (only available on V8)\n // istanbul ignore else\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, HttpFetchError);\n }\n }\n}\nexport class HttpResponseError extends Error {\n constructor(response, responseJson) {\n // Pass remaining arguments (including vendor specific ones) to parent constructor\n super(response.statusText);\n _defineProperty(this, \"response\", void 0);\n _defineProperty(this, \"responseJson\", void 0);\n this.name = \"HttpResponseError\";\n\n // Maintains proper stack trace for where our error was thrown (only available on V8)\n // istanbul ignore else\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, HttpResponseError);\n }\n this.response = response;\n this.responseJson = responseJson;\n }\n}\nexport class HttpParseError extends Error {\n constructor(response) {\n // Pass remaining arguments (including vendor specific ones) to parent constructor\n super(response.statusText);\n _defineProperty(this, \"response\", void 0);\n this.name = \"HttpParseError\";\n\n // Maintains proper stack trace for where our error was thrown (only available on V8)\n // istanbul ignore else\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, HttpParseError);\n }\n this.response = response;\n }\n}\nexport class HttpAbortError extends Error {\n constructor(message) {\n super(message);\n this.name = \"HttpAbortError\";\n }\n}\n//# sourceMappingURL=errors.js.map","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nexport default class InterceptorManager {\n constructor() {\n _defineProperty(this, \"handlers\", []);\n }\n use(onFulfilled, onRejected) {\n this.handlers.push({\n fulfilled: onFulfilled,\n rejected: onRejected\n });\n return this.handlers.length - 1;\n }\n eject(id) {\n // istanbul ignore else\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n forEach(fn) {\n this.handlers.forEach(handler => {\n // istanbul ignore else\n if (handler !== null) {\n fn(handler);\n }\n });\n }\n}\n//# sourceMappingURL=InterceptorManager.js.map","import _classPrivateMethodInitSpec from \"@babel/runtime/helpers/classPrivateMethodInitSpec\";\nimport _classPrivateFieldInitSpec from \"@babel/runtime/helpers/classPrivateFieldInitSpec\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _classPrivateFieldGet from \"@babel/runtime/helpers/classPrivateFieldGet2\";\nimport _assertClassBrand from \"@babel/runtime/helpers/assertClassBrand\";\nimport _classPrivateFieldSet from \"@babel/runtime/helpers/classPrivateFieldSet2\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nvar _excluded = [\"params\", \"responseType\", \"interceptorParams\", \"observe\", \"noAbortOnRouteChange\", \"useCache\"],\n _excluded2 = [\"params\", \"headers\", \"responseType\", \"interceptorParams\", \"observe\", \"noAbortOnRouteChange\", \"useCache\"],\n _excluded3 = [\"body\", \"method\"];\nimport { fetch } from \"./fetch.js\";\nimport { HttpAbortError, HttpFetchError, HttpParseError, HttpResponseError } from \"./errors.js\";\nimport InterceptorManager from \"./InterceptorManager.js\";\nfunction isNil(value) {\n return value === undefined || value === null;\n}\nvar base = document.querySelector(\"base\");\nvar fullBaseHref = base ? base.href : location.origin + \"/\";\n/**\n * Detect whether the input is a native browser abort error.\n *\n * @ref https://developer.mozilla.org/en-US/docs/Web/API/DOMException\n */\nexport var isHttpAbortError = error => error instanceof DOMException && error.code === 20;\nvar request = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (url, init, config) {\n // eslint-disable-next-line no-async-promise-executor\n return new Promise( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator(function* (resolve, reject) {\n var response;\n config.url = url;\n var {\n responseType\n } = config.options || {};\n if (!responseType) {\n // Defaults to `json`\n responseType = \"json\";\n }\n try {\n response = yield fetch(url, init);\n } catch (e) {\n reject(isHttpAbortError(e) ? new HttpAbortError(e.toString()) : new HttpFetchError(e.toString()));\n return;\n }\n if (!response.ok) {\n var responseJson;\n try {\n responseJson = yield response.json();\n } catch (_unused) {\n // Do nothing.\n }\n reject(new HttpResponseError(response, responseJson));\n return;\n }\n var data;\n try {\n data = yield response[responseType]();\n } catch (e) {\n reject(isHttpAbortError(e) ? new HttpAbortError(e.toString()) : new HttpParseError(response));\n return;\n }\n var res = {\n status: response.status,\n statusText: response.statusText,\n headers: response.headers,\n data\n };\n resolve(res);\n });\n return function (_x4, _x5) {\n return _ref2.apply(this, arguments);\n };\n }());\n });\n return function request(_x, _x2, _x3) {\n return _ref.apply(this, arguments);\n };\n}();\nexport var getUrlWithParams = (url, params) => {\n if (params) {\n var parsedUrl = new URL(url, fullBaseHref);\n if (params instanceof URLSearchParams) {\n params.forEach(function (value, key) {\n parsedUrl.searchParams.append(key, value);\n });\n } else {\n Object.entries(params).forEach(_ref3 => {\n var [key, value] = _ref3;\n if (Array.isArray(value)) {\n value.forEach(v => {\n parsedUrl.searchParams.append(key, isNil(v) ? \"\" : v);\n });\n } else {\n parsedUrl.searchParams.append(key, isNil(value) ? \"\" : value);\n }\n });\n }\n var {\n href\n } = parsedUrl;\n if (href.startsWith(fullBaseHref)) {\n return href.substr(fullBaseHref.length);\n }\n return href;\n }\n return url;\n};\nvar getBodyAndHeaders = (data, headers) => {\n if (data !== undefined) {\n // `new Headers(undefined)` will throw a TypeError in older browsers (chrome 58).\n // https://bugs.chromium.org/p/chromium/issues/detail?id=335871\n var parsedHeaders = new Headers(headers || {});\n var contentTypeHeader = \"Content-Type\";\n var body = data;\n // If `Content-Type` already provided, ignore detecting content type.\n if (!parsedHeaders.has(contentTypeHeader)) {\n if (typeof data === \"string\") {\n parsedHeaders.set(contentTypeHeader, \"application/x-www-form-urlencoded\");\n } else if (data instanceof FormData) {\n // Do nothing\n } else {\n parsedHeaders.set(contentTypeHeader, \"application/json\");\n body = JSON.stringify(data);\n }\n }\n return {\n body,\n headers: parsedHeaders\n };\n }\n return {\n headers\n };\n};\nvar simpleRequest = (method, url, config) => {\n var _ref4 = config.options || {},\n {\n params,\n /* eslint-disable @typescript-eslint/no-unused-vars */\n responseType,\n interceptorParams,\n observe,\n noAbortOnRouteChange,\n useCache\n /* eslint-enable @typescript-eslint/no-unused-vars */\n } = _ref4,\n requestInit = _objectWithoutProperties(_ref4, _excluded);\n return request(getUrlWithParams(url, params), _objectSpread(_objectSpread({}, requestInit), {}, {\n method\n }), config);\n};\nvar requestWithBody = (method, url, data, config) => {\n var _ref5 = config.options || {},\n {\n params,\n headers,\n /* eslint-disable @typescript-eslint/no-unused-vars */\n responseType,\n interceptorParams,\n observe,\n noAbortOnRouteChange,\n useCache\n /* eslint-enable @typescript-eslint/no-unused-vars */\n } = _ref5,\n requestInit = _objectWithoutProperties(_ref5, _excluded2);\n return request(getUrlWithParams(url, params), _objectSpread(_objectSpread({}, requestInit), {}, {\n method\n }, getBodyAndHeaders(data, headers)), config);\n};\nvar defaultAdapter = config => {\n var {\n url,\n method,\n data\n } = config;\n\n // \"DELETE\", \"GET\", \"HEAD\" methods.\n if ([\"DELETE\", \"GET\", \"HEAD\"].includes(config.method)) {\n return simpleRequest(method, url, config);\n }\n\n // \"POST\", \"PUT\" , \"PATCH\" methods.\n return requestWithBody(method, url, data, config);\n};\nvar _adapter = /*#__PURE__*/new WeakMap();\nvar _Http_brand = /*#__PURE__*/new WeakSet();\nclass Http {\n constructor(_config) {\n var _this = this;\n _classPrivateMethodInitSpec(this, _Http_brand);\n _defineProperty(this, \"interceptors\", void 0);\n _classPrivateFieldInitSpec(this, _adapter, defaultAdapter);\n _defineProperty(this, \"request\", /*#__PURE__*/function () {\n var _ref6 = _asyncToGenerator(function* (url, init, options) {\n var _ref7 = init || {},\n {\n body,\n method\n } = _ref7,\n requestInit = _objectWithoutProperties(_ref7, _excluded3);\n return _assertClassBrand(_Http_brand, _this, _fetch).call(_this, {\n url,\n data: body,\n method: method || \"GET\",\n options: _objectSpread(_objectSpread({}, options || {}), requestInit)\n });\n });\n return function (_x6, _x7, _x8) {\n return _ref6.apply(this, arguments);\n };\n }());\n _defineProperty(this, \"simpleRequest\", function (method, url) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n return _assertClassBrand(_Http_brand, _this, _fetch).call(_this, {\n url,\n method,\n options\n });\n });\n _defineProperty(this, \"requestWithBody\", function (method, url, data) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n return _assertClassBrand(_Http_brand, _this, _fetch).call(_this, {\n url,\n method,\n data,\n options\n });\n });\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n if (_config !== null && _config !== void 0 && _config.adapter) {\n _classPrivateFieldSet(_adapter, this, _config.adapter);\n }\n }\n getUrlWithParams(url, params) {\n return getUrlWithParams(url, params);\n }\n getBodyAndHeaders(data, headers) {\n return getBodyAndHeaders(data, headers);\n }\n get(url, options) {\n return _assertClassBrand(_Http_brand, this, _fetch).call(this, {\n url,\n method: \"GET\",\n options\n });\n }\n delete(url, options) {\n return _assertClassBrand(_Http_brand, this, _fetch).call(this, {\n url,\n method: \"DELETE\",\n options\n });\n }\n head(url, options) {\n return _assertClassBrand(_Http_brand, this, _fetch).call(this, {\n url,\n method: \"HEAD\",\n options\n });\n }\n post(url, data, options) {\n return _assertClassBrand(_Http_brand, this, _fetch).call(this, {\n url,\n method: \"POST\",\n data,\n options\n });\n }\n put(url, data, options) {\n return _assertClassBrand(_Http_brand, this, _fetch).call(this, {\n url,\n method: \"PUT\",\n data,\n options\n });\n }\n patch(url, data, options) {\n return _assertClassBrand(_Http_brand, this, _fetch).call(this, {\n url,\n method: \"PATCH\",\n data,\n options\n });\n }\n}\nfunction _fetch(config) {\n var chain = [];\n var promise = Promise.resolve(config);\n this.interceptors.request.forEach(interceptor => {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n chain.push(config => _classPrivateFieldGet(_adapter, this).call(this, config), undefined);\n this.interceptors.response.forEach(interceptor => {\n chain.push(res => {\n var _interceptor$fulfille;\n return (_interceptor$fulfille = interceptor.fulfilled) === null || _interceptor$fulfille === void 0 ? void 0 : _interceptor$fulfille.call(interceptor, res, config);\n }, error => {\n var _interceptor$rejected;\n return (_interceptor$rejected = interceptor.rejected) === null || _interceptor$rejected === void 0 ? void 0 : _interceptor$rejected.call(interceptor, error, config);\n });\n });\n chain.push(response => {\n var _config$options;\n return ((_config$options = config.options) === null || _config$options === void 0 ? void 0 : _config$options.observe) === \"response\" ? response : response.data;\n }, undefined);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n return promise;\n}\nvar http = new Http();\nfunction createHttpInstance(config) {\n http = new Http(config);\n}\nexport { http, createHttpInstance, defaultAdapter };\n//# sourceMappingURL=http.js.map","var _window$BRICK_NEXT_VE;\n// istanbul ignore file\n// Make v3 bricks compatible with Brick Next v2.\nimport * as HttpModuleV3 from \"./exports.js\";\nvar HttpModule;\nvar HttpModuleV2;\nvar {\n dll\n} = window;\nif (dll && (_window$BRICK_NEXT_VE = window.BRICK_NEXT_VERSIONS) !== null && _window$BRICK_NEXT_VE !== void 0 && (_window$BRICK_NEXT_VE = _window$BRICK_NEXT_VE[\"brick-container\"]) !== null && _window$BRICK_NEXT_VE !== void 0 && _window$BRICK_NEXT_VE.startsWith(\"2.\") && (HttpModuleV2 = dll(\"JxWY\"))) {\n HttpModule = HttpModuleV2;\n} else {\n HttpModule = HttpModuleV3;\n}\nvar {\n fetch,\n HttpFetchError,\n HttpResponseError,\n HttpParseError,\n HttpAbortError,\n http,\n isHttpAbortError,\n createHttpInstance,\n defaultAdapter\n} = HttpModule;\nexport { fetch, HttpFetchError, HttpResponseError, HttpParseError, HttpAbortError, http, isHttpAbortError, createHttpInstance, defaultAdapter };\n//# sourceMappingURL=index.js.map"],"names":["_assertClassBrand","e","t","n","has","arguments","length","TypeError","_checkPrivateRedeclaration","obj","privateCollection","_classPrivateFieldGet2","s","a","get","_classPrivateFieldInitSpec","privateMap","value","set","_classPrivateFieldSet2","r","_classPrivateMethodInitSpec","privateSet","add","ownKeys","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread2","forEach","getOwnPropertyDescriptors","defineProperties","defineProperty","_objectWithoutProperties","source","excluded","key","i","target","sourceKeys","indexOf","sourceSymbolKeys","prototype","propertyIsEnumerable","call","fetch","input","init","req","Request","assign","credentials","self","HttpFetchError","Error","constructor","message","super","this","name","captureStackTrace","HttpResponseError","response","responseJson","statusText","HttpParseError","HttpAbortError","InterceptorManager","use","onFulfilled","onRejected","handlers","fulfilled","rejected","eject","id","fn","handler","_excluded","_excluded2","_excluded3","isNil","base","document","querySelector","fullBaseHref","href","location","origin","isHttpAbortError","error","DOMException","code","request","_ref","url","config","Promise","_ref2","resolve","reject","responseType","options","toString","ok","data","status","headers","json","_unused","_x4","_x5","_x","_x2","_x3","getUrlWithParams","params","parsedUrl","URL","URLSearchParams","searchParams","append","entries","_ref3","Array","isArray","v","startsWith","substr","getBodyAndHeaders","undefined","parsedHeaders","Headers","contentTypeHeader","body","FormData","JSON","stringify","defaultAdapter","method","includes","_ref4","interceptorParams","observe","noAbortOnRouteChange","useCache","requestInit","simpleRequest","_ref5","requestWithBody","_adapter","WeakMap","_Http_brand","WeakSet","Http","_config","_this","_ref6","_ref7","_fetch","_x6","_x7","_x8","interceptors","adapter","head","post","put","patch","chain","promise","interceptor","res","_interceptor$fulfille","_interceptor$rejected","_config$options","then","shift","_window$BRICK_NEXT_VE","HttpModule","HttpModuleV2","http","createHttpInstance","dll","window","BRICK_NEXT_VERSIONS"],"sourceRoot":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 1822.b9d18634.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[1822],{1822:(e,t,a)=>{a.r(t);var n,i,o,r,s,l,c,d,h,u,p,m,v,g,A,b,f,E=a(4635),k=a(918),w=a(6902),y=a(5536),x=a(6121),N=a(829),L=a(2740),O=a(8769),M=a.n(O),T=a(3741),R=a(6430),C=a(7180),I=a(9765),_=a(3373),S=a.n(_),D=(0,R.wrapBrick)("eo-icon"),{defineElement:P,property:W,event:B}=(0,T.createDecorators)(),F=new WeakMap,U=new WeakMap,z=new WeakMap,j=new WeakMap,K=new WeakSet,V=new WeakMap,H=new WeakMap,Y=new WeakMap;class G extends R.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,K),(0,k.A)(this,F,o(this)),(0,k.A)(this,U,(r(this),s(this))),(0,k.A)(this,z,(l(this),c(this))),(0,k.A)(this,j,(d(this),h(this))),(0,k.A)(this,V,(m(this),e=>{e!==this.active&&(this.active=e,(0,y.A)(K,this,u).emit(e))})),(0,k.A)(this,H,v(this)),(0,k.A)(this,Y,(b(this),()=>{(0,y.A)(K,this,g).emit()}))}get titleLabel(){return(0,N.A)(F,this)}set titleLabel(e){(0,x.A)(F,this,e)}get active(){return(0,N.A)(U,this)}set active(e){(0,x.A)(U,this,e)}get badge(){return(0,N.A)(z,this)}set badge(e){(0,x.A)(z,this,e)}render(){return M().createElement(X,{titleLabel:this.titleLabel,active:this.active,badge:this.badge,onActiveChange:(0,N.A)(V,this),onFirstActivated:(0,N.A)(Y,this)})}}function X(e){var{titleLabel:t,active:a,badge:n,onActiveChange:i,onFirstActivated:o}=e,[r,s]=(0,O.useState)(a),[l,c]=(0,O.useState)(!1);(0,O.useEffect)((()=>{s(a)}),[a]),(0,O.useEffect)((()=>{null==i||i(r)}),[r,i]);var d=(0,O.useCallback)((()=>{s((e=>!e)),l||r||(c(!0),null==o||o())}),[l,r,o]),h=(0,O.useRef)(),[u,p]=(0,O.useState)(!1),m=(0,O.useMemo)((()=>{return e=()=>{p(h.current.scrollTop>0)},n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t&&a(),t=requestAnimationFrame((()=>{e(...i)}))},n.cancel=a=()=>cancelAnimationFrame(t),n;var e,t,a,n}),[]);return M().createElement("div",{className:S()("pane",{scrolled:u})},M().createElement("div",{className:"pane-header",tabIndex:0,onClick:d},M().createElement("div",{className:"pane-title"},M().createElement("span",{className:"title-icon"},r?M().createElement(D,{lib:"antd",theme:"outlined",icon:"down"}):M().createElement(D,{lib:"antd",theme:"outlined",icon:"right"})),M().createElement("div",{className:"title-label"},t),M().createElement("slot",{name:"title"})),M().createElement("slot",{name:"actions"}),n&&M().createElement("div",{className:"badge"},n),M().createElement("div",{className:"pane-scroll-shadow"})),M().createElement("div",{className:"pane-body custom-scrollbar-container",onScroll:m,ref:h},M().createElement("slot",null,M().createElement("div",{style:{padding:"10px 20px",color:"var(--text-color-secondary)"}},"No content"))))}n=G,({e:[o,r,s,l,c,d,h,u,p,m,v,g,A,b],c:[f,i]}=(0,L.A)(n,[P("visual-builder.workbench-pane",{styleTexts:[C.A,I.A]})],[[W(),1,"titleLabel"],[W({type:Boolean}),1,"active"],[W({type:Number}),1,"badge"],[B({type:"active.change"}),1,"activeChangeEvent",e=>(0,N.A)(j,e),(e,t)=>(0,x.A)(j,e,t)],[B({type:"active.firstActivated"}),1,"activeFirstActivatedEvent",e=>(0,N.A)(H,e),(e,t)=>(0,x.A)(H,e,t)]],0,(e=>Y.has((0,w.A)(e))),R.ReactNextElement)),i();var q,J,$,Q,Z,ee=a(4586),te=a(2150),{defineElement:ae,property:ne}=(0,T.createDecorators)(),ie=new WeakMap,oe=new WeakMap,re=new WeakMap,se=new WeakMap;class le extends R.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,ie,$(this)),(0,k.A)(this,oe,(Q(this),()=>{var e;return null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])")})),(0,k.A)(this,re,(()=>{var e=(0,N.A)(oe,this).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.A)(this,se,(e=>{var t=e.target.assignedNodes();for(var a of t)a.addEventListener("active.change",(0,N.A)(re,this))})),(0,ee.A)(this,"refCallback",(()=>{(0,N.A)(re,this).call(this);var e=(0,N.A)(oe,this).call(this);null==e||e.addEventListener("slotchange",(e=>{(0,N.A)(se,this).call(this,e)}))}))}get titleLabel(){return(0,N.A)(ie,this)}set titleLabel(e){(0,x.A)(ie,this,e)}render(){return M().createElement(ce,{titleLabel:this.titleLabel,refCallback:this.refCallback})}}function ce(e){var{titleLabel:t,refCallback:a}=e;return M().createElement("div",{className:"sidebar",ref:a},M().createElement("div",{className:"title-container"},M().createElement("div",{className:"title-label"},t),M().createElement("slot",{name:"titleToolbar"})),M().createElement("div",{className:"pane-container"},M().createElement("slot",null)))}q=le,({e:[$,Q],c:[Z,J]}=(0,L.A)(q,[ae("visual-builder.workbench-sidebar",{styleTexts:[te.A]})],[[ne(),1,"titleLabel"]],0,void 0,R.ReactNextElement)),J();var de,he,ue,pe,me,ve,ge,Ae,be,fe,Ee,ke,we,ye=a(5292),{defineElement:xe,property:Ne}=(0,T.createDecorators)(),Le=(0,R.wrapBrick)("eo-link"),Oe=(0,R.wrapBrick)("eo-icon"),Me=new WeakMap,Te=new WeakMap,Re=new WeakMap,Ce=new WeakMap,Ie=new WeakMap;class _e extends R.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,Me,ue(this)),(0,k.A)(this,Te,(pe(this),me(this))),(0,k.A)(this,Re,(ve(this),ge(this))),(0,k.A)(this,Ce,(Ae(this),be(this))),(0,k.A)(this,Ie,(fe(this),Ee(this))),ke(this)}get icon(){return(0,N.A)(Me,this)}set icon(e){(0,x.A)(Me,this,e)}get to(){return(0,N.A)(Te,this)}set to(e){(0,x.A)(Te,this,e)}get active(){return(0,N.A)(Re,this)}set active(e){(0,x.A)(Re,this,e)}get href(){return(0,N.A)(Ce,this)}set href(e){(0,x.A)(Ce,this,e)}get target(){return(0,N.A)(Ie,this)}set target(e){(0,x.A)(Ie,this,e)}render(){return M().createElement(Se,{to:this.to,icon:this.icon,active:this.active,href:this.href,target:this.target})}}function Se(e){var{icon:t,to:a,active:n,href:i,target:o}=e;return M().createElement(Le,{className:S()("action",{active:n}),url:a,href:i,target:o},M().createElement(Oe,t))}de=_e,({e:[ue,pe,me,ve,ge,Ae,be,fe,Ee,ke],c:[we,he]}=(0,L.A)(de,[xe("visual-builder.workbench-action",{styleTexts:[ye.A]})],[[Ne({attribute:!1}),1,"icon"],[Ne(),1,"to"],[Ne({type:Boolean}),1,"active"],[Ne(),1,"href"],[Ne(),1,"target"]],0,void 0,R.ReactNextElement)),he();var De=a(9974),Pe=a(1201);function We(e,t,a,n){var i=[],o=[],r=[],s=0;return e.forEach((e=>{if(e.key=""===n?"".concat(s):"".concat(n,".").concat(s),function(e){return"group"===e.type}(e)||function(e,t){return Boolean("subMenu"===e.type||void 0)}(e)){var l=We(e.items,t,a,e.key);i.push(...l.selectedKeys),(l.selectedKeys.length||e.defaultExpanded)&&o.push(e.key),o.push(...l.openedKeys),r.push(...l.matchedKeys)}else if(function(e,t,a){if(!e.to)return!1;var n="object"==typeof e.to?e.to:(0,Pe.parsePath)(e.to),i=n.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),o=!!(0,De.matchPath)(t,{path:i,exact:e.exact});if(o&&e.activeMatchSearch&&(o=Be(a,n.search)),!o&&Array.isArray(e.activeIncludes))for(var r of e.activeIncludes){var s,l=void 0,c=r.includes("?");if(c&&(l=(0,Pe.parsePath)(r)),(o=!!(0,De.matchPath)(t,{path:c?l.pathname:r,exact:!0}))&&null!==(s=l)&&void 0!==s&&s.search&&(o=Be(a,l.search)),o)break}if(o&&Array.isArray(e.activeExcludes))for(var d of e.activeExcludes)if(!(o=!(0,De.matchPath)(t,{path:d,exact:!0})))break;return o}(e,t,a)){i.push(String(e.key));for(var c=e.key.split("."),d=0;d<c.length;d++)r.push(c.slice(0,d+1).join("."))}s+=1})),i.length&&""!==n&&o.push(n),{selectedKeys:i,openedKeys:o,matchedKeys:r}}function Be(e,t){var a=new URLSearchParams(e),n=new URLSearchParams(t);for(var[i,o]of n.entries()){var r;if((null!==(r=a.get(i))&&void 0!==r?r:"")!==o)return!1}return!0}var Fe,Ue,ze,je,Ke,Ve,He,Ye,Ge=a(3430),Xe=(0,R.wrapBrick)("visual-builder.workbench-action"),{defineElement:qe,property:Je}=(0,T.createDecorators)(),$e=new WeakMap,Qe=new WeakMap;class Ze extends R.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,$e,ze(this)),(0,k.A)(this,Qe,(je(this),Ke(this))),Ve(this)}get appId(){return(0,N.A)($e,this)}set appId(e){(0,x.A)($e,this,e)}get menu(){return(0,N.A)(Qe,this)}set menu(e){(0,x.A)(Qe,this,e)}render(){return M().createElement(tt,{appId:this.appId,menu:this.menu})}}Fe=Ze,({e:[ze,je,Ke,Ve],c:[He,Ue]}=(0,L.A)(Fe,[qe("visual-builder.workbench-action-list",{styleTexts:[Ge.A]})],[[Je(),1,"appId"],[Je({attribute:!1}),1,"menu"]],0,void 0,R.ReactNextElement)),Ue();var et=new Map;function tt(e){var t,{appId:a,menu:n}=e,i=(0,De.getHistory)(),[o,r]=(0,O.useState)(),[s,l]=(0,O.useState)(i.location);return(0,O.useEffect)((()=>{var e=i.listen((e=>{l(e)}));return e}),[i]),(0,O.useEffect)((()=>{Ye||(Ye=a),Ye!==a&&(et.clear(),Ye=a)}),[a]),(0,O.useEffect)((()=>{var e,{pathname:t,search:a}=s,{selectedKeys:i}=We(null!==(e=null==n?void 0:n.menuItems)&&void 0!==e?e:[],t,a,"");r(Number(i[0]))}),[n,s]),M().createElement("div",{className:"workBenchActionList"},null==n||null===(t=n.menuItems)||void 0===t?void 0:t.map(((e,t)=>{if((e=>"default"===e.type||!e.type)(e)){var a=e.to;return o!==t&&et.has(t)&&(a=et.get(t)),M().createElement(Xe,{key:t,icon:e.icon,to:a,href:e.href,target:e.target,active:o===t,onClick:()=>(e=>{e.href||et.set(o,"".concat(s.pathname).concat(s.search))})(e)})}})).filter(Boolean))}var at,nt,it,ot,rt,st,lt,ct,dt,ht,ut,pt,mt,vt,gt,At,bt,ft,Et,kt,wt,yt,xt,Nt,Lt,Ot,Mt,Tt,Rt,Ct,It,_t,St,Dt,Pt,Wt,Bt,Ft,Ut,zt,jt,Kt,Vt,Ht,Yt,Gt,Xt,qt,Jt,$t,Qt,Zt,ea,ta,aa,na,ia,oa,ra=a(1030),sa=a(4940),la=a(7758),ca=a(9406),da=a(675),ha=a(7995),ua=a(6275);function pa(e){return e.key}a(6329);var ma,{defineElement:va,property:ga,event:Aa}=(0,T.createDecorators)(),ba=new WeakMap,fa=new WeakMap,Ea=new WeakMap,ka=new WeakMap,wa=new WeakMap,ya=new WeakMap,xa=new WeakMap,Na=new WeakMap,La=new WeakMap,Oa=new WeakMap,Ma=new WeakMap,Ta=new WeakMap,Ra=new WeakMap,Ca=new WeakMap,Ia=new WeakMap,_a=new WeakMap,Sa=new WeakMap,Da=new WeakMap,Pa=new WeakMap,Wa=new WeakSet,Ba=new WeakMap,Fa=new WeakMap,Ua=new WeakMap,za=new WeakMap,ja=new WeakMap,Ka=new WeakMap,Va=new WeakMap,Ha=new WeakMap,Ya=new WeakMap;class Ga extends R.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,Wa),(0,k.A)(this,ba,it(this)),(0,k.A)(this,fa,(ot(this),rt(this))),(0,k.A)(this,Ea,(st(this),lt(this))),(0,k.A)(this,ka,(ct(this),dt(this))),(0,k.A)(this,wa,(ht(this),ut(this))),(0,k.A)(this,ya,(pt(this),mt(this))),(0,k.A)(this,xa,(vt(this),gt(this))),(0,k.A)(this,Na,(At(this),bt(this))),(0,k.A)(this,La,(ft(this),Et(this))),(0,k.A)(this,Oa,(kt(this),wt(this))),(0,k.A)(this,Ma,(yt(this),xt(this))),(0,k.A)(this,Ta,(Nt(this),Lt(this))),(0,k.A)(this,Ra,(Ot(this),Mt(this))),(0,k.A)(this,Ca,(Tt(this),Rt(this))),(0,k.A)(this,Ia,(Ct(this),It(this))),(0,k.A)(this,_a,(_t(this),St(this))),(0,k.A)(this,Sa,(Dt(this),Pt(this))),(0,k.A)(this,Da,(Wt(this),Bt(this))),(0,k.A)(this,Pa,(Ft(this),Ut(this))),(0,k.A)(this,Ba,(Kt(this),e=>{(0,y.A)(Wa,this,zt).emit(e)})),(0,k.A)(this,Fa,Vt(this)),(0,k.A)(this,Ua,(Gt(this),e=>()=>{(0,y.A)(Wa,this,Ht).emit(e.data)})),(0,k.A)(this,za,Xt(this)),(0,k.A)(this,ja,($t(this),e=>{(0,y.A)(Wa,this,qt).emit(e)})),(0,k.A)(this,Ka,Qt(this)),(0,k.A)(this,Va,(ta(this),e=>t=>{t.preventDefault(),(0,y.A)(Wa,this,Zt).emit({active:!0,node:null==e?void 0:e.data,x:t.clientX,y:t.clientY})})),(0,k.A)(this,Ha,aa(this)),(0,k.A)(this,Ya,(oa(this),(e,t)=>{(0,y.A)(Wa,this,na).emit({nodeId:e,collapsed:t})}))}get nodes(){return(0,N.A)(ba,this)}set nodes(e){(0,x.A)(ba,this,e)}get actions(){return(0,N.A)(fa,this)}set actions(e){(0,x.A)(fa,this,e)}get actionsHidden(){return(0,N.A)(Ea,this)}set actionsHidden(e){(0,x.A)(Ea,this,e)}get placeholder(){return(0,N.A)(ka,this)}set placeholder(e){(0,x.A)(ka,this,e)}get isTransformName(){return(0,N.A)(wa,this)}set isTransformName(e){(0,x.A)(wa,this,e)}get searchPlaceholder(){return(0,N.A)(ya,this)}set searchPlaceholder(e){(0,x.A)(ya,this,e)}get noSearch(){return(0,N.A)(xa,this)}set noSearch(e){(0,x.A)(xa,this,e)}get activeKey(){return(0,N.A)(Na,this)}set activeKey(e){(0,x.A)(Na,this,e)}get showMatchedNodeOnly(){return(0,N.A)(La,this)}set showMatchedNodeOnly(e){(0,x.A)(La,this,e)}get matchNodeDataFields(){return(0,N.A)(Oa,this)}set matchNodeDataFields(e){(0,x.A)(Oa,this,e)}get fixedActionsFor(){return(0,N.A)(Ma,this)}set fixedActionsFor(e){(0,x.A)(Ma,this,e)}get collapsible(){return(0,N.A)(Ta,this)}set collapsible(e){(0,x.A)(Ta,this,e)}get collapsedNodes(){return(0,N.A)(Ra,this)}set collapsedNodes(e){(0,x.A)(Ra,this,e)}get allowDrag(){return(0,N.A)(Ca,this)}set allowDrag(e){(0,x.A)(Ca,this,e)}get allowDragToRoot(){return(0,N.A)(Ia,this)}set allowDragToRoot(e){(0,x.A)(Ia,this,e)}get allowDragToInside(){return(0,N.A)(_a,this)}set allowDragToInside(e){(0,x.A)(_a,this,e)}get nodeKey(){return(0,N.A)(Sa,this)}set nodeKey(e){(0,x.A)(Sa,this,e)}get skipNotify(){return(0,N.A)(Da,this)}set skipNotify(e){(0,x.A)(Da,this,e)}render(){return M().createElement(sa.e.Provider,{value:{actions:this.actions,actionsHidden:this.actionsHidden,onActionClick:(0,N.A)(Ba,this)}},M().createElement(ca.N.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:pa,onNodeToggle:(0,N.A)(Ya,this),skipNotify:this.skipNotify,clickFactory:(0,N.A)(Ua,this),contextMenuFactory:(0,N.A)(Va,this),matchNode:(e,t)=>{var a;return(0,da.U)(e.name,t)||!(null===(a=this.matchNodeDataFields)||void 0===a||!a.length)&&(0,da.U)("*"===this.matchNodeDataFields?e.data:(0,ra.pick)(e.data,this.matchNodeDataFields),t)}}},M().createElement(la.cU,{nodes:this.nodes,placeholder:this.placeholder,searchPlaceholder:this.searchPlaceholder,noSearch:this.noSearch,dropEmit:(0,N.A)(ja,this),allowDrag:this.allowDrag,allowDragToInside:this.allowDragToInside,allowDragToRoot:this.allowDragToRoot})))}}at=Ga,({e:[it,ot,rt,st,lt,ct,dt,ht,ut,pt,mt,vt,gt,At,bt,ft,Et,kt,wt,yt,xt,Nt,Lt,Ot,Mt,Tt,Rt,Ct,It,_t,St,Dt,Pt,Wt,Bt,Ft,Ut,zt,jt,Kt,Vt,Ht,Yt,Gt,Xt,qt,Jt,$t,Qt,Zt,ea,ta,aa,na,ia,oa],c:[ma,nt]}=(0,L.A)(at,[va("visual-builder.workbench-tree",{styleTexts:[ha.A,ua.A]})],[[ga({attribute:!1}),1,"nodes"],[ga({attribute:!1}),1,"actions"],[ga({type:Boolean}),1,"actionsHidden"],[ga(),1,"placeholder"],[ga({type:Boolean}),1,"isTransformName"],[ga(),1,"searchPlaceholder"],[ga({type:Boolean}),1,"noSearch"],[ga({attribute:!1}),1,"activeKey"],[ga({type:Boolean}),1,"showMatchedNodeOnly"],[ga({attribute:!1}),1,"matchNodeDataFields"],[ga({attribute:!1}),1,"fixedActionsFor"],[ga({type:Boolean}),1,"collapsible"],[ga({attribute:!1}),1,"collapsedNodes"],[ga({type:Boolean}),1,"allowDrag"],[ga({type:Boolean}),1,"allowDragToRoot"],[ga({type:Boolean}),1,"allowDragToInside"],[ga({type:String}),1,"nodeKey"],[ga({type:Boolean}),1,"skipNotify"],[Aa({type:"action.click"}),1,"actionClickEvent",e=>(0,N.A)(Pa,e),(e,t)=>(0,x.A)(Pa,e,t)],[Aa({type:"node.click"}),1,"nodeClickEvent",e=>(0,N.A)(Fa,e),(e,t)=>(0,x.A)(Fa,e,t)],[Aa({type:"node.drop"}),1,"nodeDropEvent",e=>(0,N.A)(za,e),(e,t)=>(0,x.A)(za,e,t)],[Aa({type:"context.menu"}),1,"nodeContextMenuEvent",e=>(0,N.A)(Ka,e),(e,t)=>(0,x.A)(Ka,e,t)],[Aa({type:"node.toggle"}),1,"nodeToggleEvent",e=>(0,N.A)(Ha,e),(e,t)=>(0,x.A)(Ha,e,t)]],0,(e=>Ya.has((0,w.A)(e))),R.ReactNextElement)),nt();var Xa=a(7408),qa=a(9027);a(6788),customElements.define("visual-builder.inject-preview-agent",(0,Xa.createProviderClass)((function(e,t){return(0,qa.A)(e,t)})));var Ja,$a,Qa,Za,en,tn,an,nn,on,rn,sn,ln,cn,dn,hn,un,pn,mn,vn=a(9740),gn=a(155),An=a.n(gn),bn=a(1361),fn=a(5502),En=function(e){return e.LOAD_MORE="LOAD_MORE",e.LOADING="LOADING",e.NO_DATA="NO_DATA",e.NODE="NODE",e.ADD="ADD",e.EDIT="EDIT",e.DELETE="DELETE",e.IMPORT="IMPORT",e.CLONE="CLONE",e.APPEND_RELATION="APPEND_RELATION",e.UPDATE_RELATION="UPDATE_RELATION",e.REMOVE_RELATION="REMOVE_RELATION",e.ROLLBACK="ROLLBACK",e.ROLLBACK_ALL="ROLLBACK_ALL",e.ADD_FULL="ADD_FULL",e.EDIT_FULL="EDIT_FULL",e.DELETE_FULL="DELETE_FULL",e.IMPORT_FULL="IMPORT_FULL",e.CLONE_FULL="CLONE_FULL",e.APPEND_RELATION_FULL="APPEND_RELATION_FULL",e.UPDATE_RELATION_FULL="UPDATE_RELATION_FULL",e.REMOVE_RELATION_FULL="REMOVE_RELATION_FULL",e.ROLLBACK_FULL="ROLLBACK_FULL",e.ROLLBACK_ALL_FULL="ROLLBACK_ALL_FULL",e.PROJECT="PROJECT",e.USER="USER",e.PERMISSION="PERMISSION",e.BRICK="BRICK",e.ROUTE="ROUTE",e.TEMPLATE="TEMPLATE",e.SNIPPET="SNIPPET",e.I18N="I18N",e.IMAGE="IMAGE",e.FUNCTION="FUNCTION",e.MENU="MENU",e.MENU_ITEM="MENU_ITEM",e.WORKFLOW="WORKFLOW",e}({}),kn="bricks/visual-builder/workbench-history-action",wn=a(6330),yn=a(5866),xn=function(){var e=(0,wn.A)((function*(e,t,a){return(yield yn.http.get("api/gateway/next_builder.workspace.GetChangeHistory/api/v1/next-builder/workspace/".concat(e,"/changes"),(0,vn.A)((0,vn.A)({},a),{},{params:t}))).data}));return function(t,a,n){return e.apply(this,arguments)}}(),Nn=a(8799),Ln={add:"".concat(kn,":").concat(En.ADD),edit:"".concat(kn,":").concat(En.EDIT),delete:"".concat(kn,":").concat(En.DELETE),batch_delete:"".concat(kn,":").concat(En.DELETE),import:"".concat(kn,":").concat(En.IMPORT),clone:"".concat(kn,":").concat(En.CLONE),append_relation:"".concat(kn,":").concat(En.APPEND_RELATION),update_relation:"".concat(kn,":").concat(En.UPDATE_RELATION),remove_relation:"".concat(kn,":").concat(En.REMOVE_RELATION),rollback:"".concat(kn,":").concat(En.ROLLBACK),rollback_all:"".concat(kn,":").concat(En.ROLLBACK_ALL)},On={add:"".concat(kn,":").concat(En.ADD_FULL),edit:"".concat(kn,":").concat(En.EDIT_FULL),delete:"".concat(kn,":").concat(En.DELETE_FULL),batch_delete:"".concat(kn,":").concat(En.DELETE_FULL),import:"".concat(kn,":").concat(En.IMPORT_FULL),clone:"".concat(kn,":").concat(En.CLONE_FULL),append_relation:"".concat(kn,":").concat(En.APPEND_RELATION_FULL),update_relation:"".concat(kn,":").concat(En.UPDATE_RELATION_FULL),remove_relation:"".concat(kn,":").concat(En.REMOVE_RELATION_FULL),rollback:"".concat(kn,":").concat(En.ROLLBACK_FULL),rollback_all:"".concat(kn,":").concat(En.ROLLBACK_ALL_FULL)},Mn={project:"".concat(kn,":").concat(En.PROJECT),userGroup:"".concat(kn,":").concat(En.USER),permission:"".concat(kn,":").concat(En.PERMISSION),brick:"".concat(kn,":").concat(En.BRICK),route:"".concat(kn,":").concat(En.ROUTE),template:"".concat(kn,":").concat(En.TEMPLATE),snippet:"".concat(kn,":").concat(En.SNIPPET),i18n:"".concat(kn,":").concat(En.I18N),image:"".concat(kn,":").concat(En.IMAGE),function:"".concat(kn,":").concat(En.FUNCTION),menu:"".concat(kn,":").concat(En.MENU),menuItem:"".concat(kn,":").concat(En.MENU_ITEM),workflow:"".concat(kn,":").concat(En.WORKFLOW)},Tn={PROJECT_MICRO_APP:"".concat(kn,":").concat(En.PROJECT),"MICRO_APP_USER_GROUP@EASYOPS":"".concat(kn,":").concat(En.USER),MICRO_APP_RESOURCE_PERMISSION:"".concat(kn,":").concat(En.PERMISSION),STORYBOARD_BRICK:"".concat(kn,":").concat(En.BRICK),STORYBOARD_ROUTE:"".concat(kn,":").concat(En.ROUTE),STORYBOARD_TEMPLATE:"".concat(kn,":").concat(En.TEMPLATE),STORYBOARD_SNIPPET:"".concat(kn,":").concat(En.SNIPPET),STORYBOARD_I18N:"".concat(kn,":").concat(En.I18N),MICRO_APP_RESOURCE_IMAGE:"".concat(kn,":").concat(En.IMAGE),STORYBOARD_FUNCTION:"".concat(kn,":").concat(En.FUNCTION),MICRO_APP_RESOURCE_MENU:"".concat(kn,":").concat(En.MENU),MICRO_APP_RESOURCE_MENU_ITEM:"".concat(kn,":").concat(En.MENU_ITEM),"WORKFLOW_DEF@EASYOPS":"".concat(kn,":").concat(En.WORKFLOW)};function Rn(e){var t,a,n,i,o,r,s,l,c,d,h,u,p,m,v,g,A,b="rollback"!==e.action||e.rollBackIdInfo?e.action:"rollback_all",f=Nn.i18n.t(null!==(t=Mn[e.category])&&void 0!==t?t:e.category),E=Nn.i18n.t(null!==(a=Ln[b])&&void 0!==a?a:b),k=Nn.i18n.t(null!==(n=Tn[null===(i=e.abstract)||void 0===i?void 0:i.leftObjectId])&&void 0!==n?n:null===(o=e.abstract)||void 0===o?void 0:o.leftObjectId),w=Nn.i18n.t(null!==(r=Tn[null===(s=e.abstract)||void 0===s?void 0:s.rightObjectId])&&void 0!==r?r:null===(l=e.abstract)||void 0===l?void 0:l.rightObjectId),y=Cn(null===(c=e.abstract)||void 0===c?void 0:c.nodes,null===(d=e.abstract)||void 0===d?void 0:d.nodesCount),x=Cn(null===(h=e.abstract)||void 0===h?void 0:h.leftNodes,null===(u=e.abstract)||void 0===u?void 0:u.leftNodesCount),N=Cn(null===(p=e.abstract)||void 0===p?void 0:p.rightNodes,null===(m=e.abstract)||void 0===m?void 0:m.rightNodesCount),L="rollback"===b?Rn(e.rollBackIdInfo).abstract:null;return{category:f,action:E,leftObjectId:k,rightObjectId:w,nodes:y,leftNodes:x,rightNodes:N,abstract:Nn.i18n.t(null!==(v=On[b])&&void 0!==v?v:b,{category:f,nodes:y,leftNodes:x,rightNodes:N,nodeChanges:null===(g=e.abstract)||void 0===g||null===(g=g.nodeChanges)||void 0===g?void 0:g.join(", "),relationChanges:null===(A=e.abstract)||void 0===A||null===(A=A.relationChanges)||void 0===A?void 0:A.join(", "),leftObjectId:k,rightObjectId:w,rollbackAbstract:L}),rollbackAbstract:L}}function Cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ";return Nn.i18n.t("".concat(kn,":").concat(En.NODE),{nodes:e.join(a),context:t>e.length?"ellipsis":void 0,count:t})}(0,fn.initializeReactI18n)(kn,{en:{LOAD_MORE:"Load more",LOADING:"Loading",NO_DATA:"No data",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }} etc., a total of {{ count }} items",ADD:"Add node",EDIT:"Edit node",DELETE:"Delete node",IMPORT:"Batch import node",CLONE:"Clone node",APPEND_RELATION:"Append Relation",UPDATE_RELATION:"Update Relation",REMOVE_RELATION:"Remove Relation",ROLLBACK:"Rollback",ROLLBACK_ALL:"Rollback all operations",ADD_FULL:"Add {{ category }} ({{ nodes }})",EDIT_FULL:"Edit {{ nodeChanges }} of {{ category }} ({{ nodes }})",DELETE_FULL:"Delete {{ category }} ({{ nodes }})",IMPORT_FULL:"Batch Import {{ category }} ({{ nodes }})",CLONE_FULL:"Clone {{ category }} ({{ nodes }})",APPEND_RELATION_FULL:"Append the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",UPDATE_RELATION_FULL:"Update the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",REMOVE_RELATION_FULL:"Remove the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",ROLLBACK_FULL:"Rollback to [{{ rollbackAbstract }}]",ROLLBACK_ALL_FULL:"Rollback all operations",PROJECT:"Project",USER:"User Group",PERMISSION:"Permission",BRICK:"Brick",ROUTE:"Route",TEMPLATE:"Template",SNIPPET:"Snippet",I18N:"I18N",IMAGE:"Image",FUNCTION:"Function",MENU:"Menu",MENU_ITEM:"Menu item",WORKFLOW:"Workflow"},zh:{LOAD_MORE:"加载更多",LOADING:"加载中",NO_DATA:"没有数据",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }}等共{{ count }}项",ADD:"新增节点",EDIT:"编辑节点",DELETE:"删除节点",IMPORT:"批量导入节点",CLONE:"克隆节点",APPEND_RELATION:"添加关系",UPDATE_RELATION:"更新关系",REMOVE_RELATION:"移除关系",ROLLBACK:"回滚",ROLLBACK_ALL:"回滚全部操作",ADD_FULL:"新增{{ category }}({{ nodes }})",EDIT_FULL:"编辑{{ category }}({{ nodes }})的 {{ nodeChanges }}",DELETE_FULL:"删除{{ category }}({{ nodes }})",IMPORT_FULL:"批量导入{{ category }}({{ nodes }})",CLONE_FULL:"克隆{{ category }}({{ nodes }})",APPEND_RELATION_FULL:"添加{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",UPDATE_RELATION_FULL:"更新{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",REMOVE_RELATION_FULL:"移除{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",ROLLBACK_FULL:"回滚到【{{ rollbackAbstract }}】",ROLLBACK_ALL_FULL:"回滚全部操作",PROJECT:"项目",USER:"用户组",PERMISSION:"权限点",BRICK:"构件",ROUTE:"路由",TEMPLATE:"模版",SNIPPET:"片段",I18N:"国际化",IMAGE:"图片",FUNCTION:"函数",MENU:"菜单",MENU_ITEM:"菜单项",WORKFLOW:"工作流"}});var In,{defineElement:_n,property:Sn,event:Dn}=(0,T.createDecorators)(),Pn=(0,R.wrapBrick)("eo-button"),Wn=(0,R.wrapBrick)("eo-link"),Bn=(0,R.wrapBrick)("eo-icon"),Fn=(0,R.wrapBrick)("eo-easyops-avatar"),Un=(0,R.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",beforeVisibleChange:"before.visible.change"}),zn=new WeakMap,jn=new WeakMap,Kn=new WeakMap,Vn=new WeakSet,Hn=new WeakMap,Yn=new WeakMap,Gn=new WeakMap,Xn=new WeakMap,qn=new WeakMap;class Jn extends R.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,Vn),(0,k.A)(this,zn,Qa(this)),(0,k.A)(this,jn,(Za(this),en(this))),(0,k.A)(this,Kn,(tn(this),an(this))),(0,k.A)(this,Hn,(rn(this),e=>{(0,y.A)(Vn,this,nn).emit(e)})),(0,k.A)(this,Yn,sn(this)),(0,k.A)(this,Gn,(dn(this),e=>{(0,y.A)(Vn,this,ln).emit(e)})),(0,k.A)(this,Xn,hn(this)),(0,k.A)(this,qn,(mn(this),()=>{(0,y.A)(Vn,this,un).emit()}))}get appId(){return(0,N.A)(zn,this)}set appId(e){(0,x.A)(zn,this,e)}get projectId(){return(0,N.A)(jn,this)}set projectId(e){(0,x.A)(jn,this,e)}render(){return M().createElement($n,{appId:this.appId,projectId:this.projectId,onHistoryItemClick:(0,N.A)(Hn,this),onRollback:(0,N.A)(Gn,this),onRollbackAll:(0,N.A)(qn,this)})}}function $n(e){var{appId:t,onHistoryItemClick:a,onRollback:n,onRollbackAll:i}=e,{t:o}=(0,fn.useTranslation)(kn),[r,s]=(0,O.useState)(!1),[l,c]=(0,O.useState)(!0),[d,h]=(0,O.useState)(!1),[u,p]=(0,O.useState)([]),m=(0,O.useRef)(""),v=e=>{s(!0),xn(t,{ts:m.current,limit:20}).then((t=>{p((a=>{var n=t.list.map((e=>(0,vn.A)((0,vn.A)({},e),{},{translation:Rn(e)})));return e?n:a.concat(n)})),m.current=t.ts,h(t.list.length<20),c(t.list.length<20)})).catch((e=>{(0,De.handleHttpError)(e)})).finally((()=>{s(!1)}))};return M().createElement(Un,{placement:"bottom",trigger:"click",arrow:!0,arrowColor:"var(--color-fill-bg-container-4)",beforeVisibleChange:e=>{e.detail&&(c(!0),h(!1),p([]),m.current="",v(!0))}},M().createElement(Pn,{slot:"anchor",shape:"circle",className:"history-action",icon:{lib:"antd",icon:"history",theme:"outlined"}}),M().createElement("div",null,M().createElement("div",{className:"history-title"},"History"),M().createElement("div",{className:"history-list"},u.length?M().createElement(M().Fragment,null,u.map(((e,t)=>M().createElement(Qn,{key:"".concat(e.uniqueKey,"-").concat(e.ts),data:e,enableRollback:0!==t&&"rollback"!==e.action,current:0===t,onHistoryItemClick:a,onRollback:n}))),!l&&M().createElement("span",{className:"load-more-container"},M().createElement(Wn,{className:"load-more",disabled:r,onClick:()=>v()},o(En.LOAD_MORE))),d&&M().createElement("span",{className:"end-container"},"The End",M().createElement(Bn,{className:"rollback-all",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>i()}))):M().createElement("div",{className:"empty"},o(r?En.LOADING:En.NO_DATA))),M().createElement("slot",null)))}function Qn(e){var{data:t,enableRollback:a,current:n,onHistoryItemClick:i,onRollback:o}=e,r=An()(Number(t.ts)/1e6),s=An().duration(r.diff(An()())),l=s.days()<=-1?r.format("YYYY-MM-DD HH:mm:ss"):s.humanize(!0,{ss:0,s:60,m:60,h:24});return M().createElement("div",{className:"item-container"},M().createElement("div",{className:"item-title"},M().createElement("div",{className:"title-left",onClick:()=>i((0,vn.A)((0,vn.A)({},t),{},{enableRollback:a}))},M().createElement("div",{className:"topic",title:t.translation.abstract},t.translation.abstract),n&&M().createElement("div",{className:"branch"},"(current)")),M().createElement("div",{className:"title-right"},a&&M().createElement(Bn,{className:"rollback",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>o(t)}))),M().createElement("div",{className:"item-info"},M().createElement(Fn,{className:"avatar",nameOrInstanceId:t.user,size:"xs"}),M().createElement("div",{className:"time"},l),M().createElement("div",{className:"operator"},t.user)))}Ja=Jn,({e:[Qa,Za,en,tn,an,nn,on,rn,sn,ln,cn,dn,hn,un,pn,mn],c:[In,$a]}=(0,L.A)(Ja,[_n("visual-builder.workbench-history-action",{styleTexts:[bn.A]})],[[Sn(),1,"appId"],[Sn(),1,"projectId"],[Dn({type:"history.item.click"}),1,"historyItemClickEvent",e=>(0,N.A)(Kn,e),(e,t)=>(0,x.A)(Kn,e,t)],[Dn({type:"rollback"}),1,"rollbackEvent",e=>(0,N.A)(Yn,e),(e,t)=>(0,x.A)(Yn,e,t)],[Dn({type:"rollback.all"}),1,"rollbackAllEvent",e=>(0,N.A)(Xn,e),(e,t)=>(0,x.A)(Xn,e,t)]],0,(e=>qn.has((0,w.A)(e))),R.ReactNextElement)),$a();var Zn,ei,ti,ai,ni,ii,oi,ri,si,li,ci,di,hi,ui,pi,mi,vi,gi,Ai,bi,fi,Ei,ki,wi,yi,xi,Ni,Li,Oi,Mi,Ti,Ri,Ci,Ii,_i,Si,Di,Pi,Wi,Bi,Fi,Ui,zi,ji,Ki,Vi,Hi,Yi,Gi,Xi,qi,Ji,$i,Qi,Zi,eo=a(2381),{defineElement:to,property:ao,event:no}=(0,T.createDecorators)(),io=(0,R.wrapBrick)("eo-icon"),oo=(0,R.wrapBrick)("eo-tooltip"),ro=new Set,so=new WeakMap,lo=new WeakMap,co=new WeakMap,ho=new WeakMap,uo=new WeakMap,po=new WeakMap,mo=new WeakMap,vo=new WeakMap,go=new WeakMap,Ao=new WeakSet,bo=new WeakMap,fo=new WeakMap,Eo=new WeakMap,ko=new WeakMap,wo=new WeakMap,yo=new WeakMap,xo=new WeakMap,No=new WeakMap,Lo=new WeakMap,Oo=new WeakMap,Mo=new WeakMap,To=new WeakMap,Ro=new WeakMap,Co=new WeakMap,Io=new WeakMap,_o=new WeakMap,So=new WeakMap;class Do extends R.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,Ao),(0,k.A)(this,so,ti(this)),(0,k.A)(this,lo,(ai(this),ni(this))),(0,k.A)(this,co,(ii(this),oi(this))),(0,k.A)(this,ho,(ri(this),si(this))),(0,k.A)(this,uo,(li(this),ci(this))),(0,k.A)(this,po,(di(this),hi(this))),(0,k.A)(this,mo,(ui(this),pi(this))),(0,k.A)(this,vo,(mi(this),vi(this))),(0,k.A)(this,go,(gi(this),Ai(this))),(0,k.A)(this,bo,(Ei(this),e=>{(0,y.A)(Ao,this,bi).emit(e)})),(0,k.A)(this,fo,ki(this)),(0,k.A)(this,Eo,(xi(this),e=>{(0,y.A)(Ao,this,wi).emit(e)})),(0,k.A)(this,ko,Ni(this)),(0,k.A)(this,wo,(Mi(this),()=>{(0,y.A)(Ao,this,Li).emit()})),(0,k.A)(this,yo,Ti(this)),(0,k.A)(this,xo,(Ii(this),()=>{(0,y.A)(Ao,this,Ri).emit()})),(0,k.A)(this,No,_i(this)),(0,k.A)(this,Lo,(Pi(this),e=>{(0,y.A)(Ao,this,Si).emit(e)})),(0,k.A)(this,Oo,Wi(this)),(0,k.A)(this,Mo,(Ui(this),()=>{(0,y.A)(Ao,this,Bi).emit()})),(0,k.A)(this,To,zi(this)),(0,k.A)(this,Ro,(Vi(this),e=>{(0,y.A)(Ao,this,ji).emit(e)})),(0,k.A)(this,Co,Hi(this)),(0,k.A)(this,Io,(Xi(this),e=>{(0,y.A)(Ao,this,Yi).emit(e)})),(0,k.A)(this,_o,qi(this)),(0,k.A)(this,So,(Qi(this),e=>{(0,y.A)(Ao,this,Ji).emit(e)}))}get label(){return(0,N.A)(so,this)}set label(e){(0,x.A)(so,this,e)}get type(){return(0,N.A)(lo,this)}set type(e){(0,x.A)(lo,this,e)}get external(){return(0,N.A)(co,this)}set external(e){(0,x.A)(co,this,e)}get subNodes(){return(0,N.A)(ho,this)}set subNodes(e){(0,x.A)(ho,this,e)}get active(){return(0,N.A)(uo,this)}set active(e){(0,x.A)(uo,this,e)}get notSynced(){return(0,N.A)(po,this)}set notSynced(e){(0,x.A)(po,this,e)}get disableChildAppend(){return(0,N.A)(mo,this)}set disableChildAppend(e){(0,x.A)(mo,this,e)}get autoFocusOnce(){return(0,N.A)(vo,this)}set autoFocusOnce(e){(0,x.A)(vo,this,e)}render(){return M().createElement(Po,{label:this.label,type:this.type,external:this.external,subNodes:this.subNodes,autoFocusOnce:this.autoFocusOnce,onLabelEditingChange:(0,N.A)(bo,this),onLabelChange:(0,N.A)(Eo,this),onNodeClick:(0,N.A)(wo,this),onNodeDoubleClick:(0,N.A)(xo,this),onNodeContextMenu:(0,N.A)(Lo,this),onChildAppend:(0,N.A)(Mo,this),onExternalClick:(0,N.A)(Ro,this),onSubNodeDoubleClick:(0,N.A)(Io,this),onSubNodeContextMenu:(0,N.A)(So,this)})}}function Po(e){var t,{label:a,type:n,external:i,subNodes:o,autoFocusOnce:r,onLabelEditingChange:s,onLabelChange:l,onNodeClick:c,onNodeDoubleClick:d,onNodeContextMenu:h,onChildAppend:u,onExternalClick:p,onSubNodeDoubleClick:m,onSubNodeContextMenu:v}=e,g="board"===n?"board":"page",[A,b]=(0,O.useState)(a),[f,E]=(0,O.useState)(!1),k=(0,O.useRef)(!1),[w,y]=(0,O.useState)(!1),x=(0,O.useRef)(null);(0,O.useEffect)((()=>{b(a)}),[a]);var N=(0,O.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),E(!0)}),[]);(0,O.useEffect)((()=>{r&&!ro.has(r)&&(ro.add(r),setTimeout((()=>{E(!0)}),1))}),[r]),(0,O.useEffect)((()=>{var e,t;f&&(null===(e=x.current)||void 0===e||e.focus({preventScroll:!0}),null===(t=x.current)||void 0===t||t.select())}),[f]),(0,O.useEffect)((()=>{k.current?null==s||s(f):k.current=!0}),[f,s]);var L=(0,O.useCallback)((e=>{b(e.target.value)}),[]),T=(0,O.useCallback)((e=>{var t,a=e.key||e.keyCode||e.which;"Enter"!==a&&13!==a||null===(t=x.current)||void 0===t||t.blur()}),[]),R=(0,O.useCallback)((()=>{E(!1),y(!0)}),[]);(0,O.useEffect)((()=>{w&&(null==l||l(A),y(!1))}),[A,l,w]);var C=(0,O.useCallback)((e=>{e.stopPropagation(),null==u||u()}),[u]),I=(0,O.useCallback)((e=>{e.stopPropagation(),null==p||p(i)}),[i,p]),_=(0,O.useCallback)((e=>{e.stopPropagation()}),[]),D=38*Math.max(0,Math.floor((null!==(t=null==o?void 0:o.length)&&void 0!==t?t:0)-3));return M().createElement(M().Fragment,null,M().createElement("div",{className:S()("node",g,{"editing-label":f}),style:{height:"board"===g?70:130+D},onClick:c,onDoubleClick:d,onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==h||h({clientX:e.clientX,clientY:e.clientY})}},M().createElement("input",{className:"label-input",value:A,ref:x,onChange:L,onKeyDown:T,onBlur:R,onDoubleClick:_,onContextMenu:_,onMouseDown:_}),M().createElement("div",{className:"label",onDoubleClick:N,onMouseDown:_},A),"board"===g?M().createElement("div",{className:"icon-container"},M().createElement(io,{lib:"antd",icon:"unordered-list"})):M().createElement("div",{className:"thumbnail-container",style:{height:98+D}},M().createElement("div",{className:"thumbnail-placeholder"},M().createElement(io,{lib:"antd",icon:"ellipsis"})),i&&M().createElement("div",{className:"external",onClick:I,onDoubleClick:_,onMouseDown:_},M().createElement(io,{lib:"antd",icon:"desktop"}),M().createElement("span",{className:"external-label"},i.label)),null!=o&&o.length?M().createElement("div",{className:"sub-nodes"},o.map((e=>M().createElement(Wo,{key:e.id,subNode:e,onSubNodeDoubleClick:m,onSubNodeContextMenu:v})))):null)),M().createElement("div",{className:"add-button",role:"button",onClick:C,onMouseDown:_},M().createElement(io,{lib:"fa",icon:"plus"})))}function Wo(e){var{subNode:t,onSubNodeDoubleClick:a,onSubNodeContextMenu:n}=e;return M().createElement(oo,{key:t.id,content:t.label},M().createElement("div",{className:"sub-node",onDoubleClick:e=>{e.stopPropagation(),null==a||a(t)},onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==n||n({node:t,clientX:e.clientX,clientY:e.clientY})}},M().createElement("div",{className:"sub-node-skeleton-title"}),M().createElement("div",{className:"sub-node-skeleton-content"}),M().createElement("div",{className:"sub-node-skeleton-button"})))}Zn=Do,({e:[ti,ai,ni,ii,oi,ri,si,li,ci,di,hi,ui,pi,mi,vi,gi,Ai,bi,fi,Ei,ki,wi,yi,xi,Ni,Li,Oi,Mi,Ti,Ri,Ci,Ii,_i,Si,Di,Pi,Wi,Bi,Fi,Ui,zi,ji,Ki,Vi,Hi,Yi,Gi,Xi,qi,Ji,$i,Qi],c:[Zi,ei]}=(0,L.A)(Zn,[to("visual-builder.page-arch-node",{styleTexts:[eo.A]})],[[ao(),1,"label"],[ao(),1,"type"],[ao({attribute:!1}),1,"external"],[ao({attribute:!1}),1,"subNodes"],[ao({type:Boolean,render:!1}),1,"active"],[ao({type:Boolean,render:!1}),1,"notSynced"],[ao({type:Boolean,render:!1}),1,"disableChildAppend"],[ao(),1,"autoFocusOnce"],[no({type:"label.editing.change"}),1,"labelEditingChange",e=>(0,N.A)(go,e),(e,t)=>(0,x.A)(go,e,t)],[no({type:"label.change"}),1,"labelChange",e=>(0,N.A)(fo,e),(e,t)=>(0,x.A)(fo,e,t)],[no({type:"node.click"}),1,"nodeClick",e=>(0,N.A)(ko,e),(e,t)=>(0,x.A)(ko,e,t)],[no({type:"node.dblclick"}),1,"nodeDoubleClick",e=>(0,N.A)(yo,e),(e,t)=>(0,x.A)(yo,e,t)],[no({type:"node.contextmenu"}),1,"nodeContextMenu",e=>(0,N.A)(No,e),(e,t)=>(0,x.A)(No,e,t)],[no({type:"child.append"}),1,"childAppend",e=>(0,N.A)(Oo,e),(e,t)=>(0,x.A)(Oo,e,t)],[no({type:"external.click"}),1,"externalClick",e=>(0,N.A)(To,e),(e,t)=>(0,x.A)(To,e,t)],[no({type:"subNode.dblclick"}),1,"subNodeDoubleClick",e=>(0,N.A)(Co,e),(e,t)=>(0,x.A)(Co,e,t)],[no({type:"subNode.contextmenu"}),1,"subNodeContextMenu",e=>(0,N.A)(_o,e),(e,t)=>(0,x.A)(_o,e,t)]],0,(e=>So.has((0,w.A)(e))),R.ReactNextElement)),ei();var Bo,Fo,Uo,zo,jo,Ko,Vo,Ho,Yo,Go,Xo=a(7967),qo=a(6213),Jo=a(2559);function $o(e,t,a,n){return t((0,Jo.A)(e,a),n),n}var{method:Qo,property:Zo}=(0,T.createDecorators)(),er=new WeakMap,tr=new WeakSet,ar=new WeakMap,nr=new WeakMap,ir=new WeakMap,or=new WeakMap,rr=new WeakMap,sr=new WeakMap;class lr extends R.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,tr),(0,k.A)(this,er,(Fo(this),!1)),(0,k.A)(this,ar,"normal"),(0,k.A)(this,nr,!1),(0,k.A)(this,ir,Uo(this)),(0,k.A)(this,or,(zo(this),jo(this))),(0,k.A)(this,rr,(Ko(this),Vo(this))),(0,k.A)(this,sr,(Ho(this),Yo(this))),Go(this)}get isFormItemElement(){return!0}set validateState(e){$o(tr,ur,this,e),this._render()}get validateState(){return(0,y.A)(tr,this,hr)}set notRender(e){this.hidden=e,$o(tr,dr,this,e),this._render()}get notRender(){return(0,y.A)(tr,this,cr)}get $bindFormItem(){return(0,y.A)(tr,this,pr)}set $bindFormItem(e){$o(tr,mr,this,e),this._render()}get helpBrick(){return(0,N.A)(ir,this)}set helpBrick(e){(0,x.A)(ir,this,e)}get labelBrick(){return(0,N.A)(or,this)}set labelBrick(e){(0,x.A)(or,this,e)}get labelCol(){return(0,N.A)(rr,this)}set labelCol(e){(0,x.A)(rr,this,e)}get wrapperCol(){return(0,N.A)(sr,this)}set wrapperCol(e){(0,x.A)(sr,this,e)}setNotRender(e){this.notRender=e}getFormElement(){for(var e=this;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function cr(e){return(0,N.A)(er,e)}function dr(e,t){(0,x.A)(er,e,t)}function hr(e){return(0,N.A)(ar,e)}function ur(e,t){(0,x.A)(ar,e,t)}function pr(e){return(0,N.A)(nr,e)}function mr(e,t){(0,x.A)(nr,e,t)}Bo=lr,[Uo,zo,jo,Ko,Vo,Ho,Yo,Go,Fo]=(0,L.A)(Bo,[],[[Zo({attribute:!1}),1,"helpBrick"],[Zo({attribute:!1}),1,"labelBrick"],[Zo({attribute:!1}),1,"labelCol"],[Zo({attribute:!1}),1,"wrapperCol"],[Qo(),2,"setNotRender"],[Qo(),2,"getFormElement"]],0,void 0,R.ReactNextElement).e;var vr=function(){var e=(0,wn.A)((function*(e,t){return(yield yn.http.post("api/gateway/next_builder.contract_center.SearchContract/api/v1/contract/search",e,t)).data}));return function(t,a){return e.apply(this,arguments)}}(),gr=function(e){return e.CONTRACT_OPTIONS_TIPS_PREFIX="CONTRACT_OPTIONS_TIPS_PREFIX",e.CONTRACT_OPTIONS_TIPS_SUFFIX="CONTRACT_OPTIONS_TIPS_SUFFIX",e.CONTRACT_VALIDATE_MESSAGE="CONTRACT_VALIDATE_MESSAGE",e}({}),Ar="bricks/visual-builder/contract-select",br={en:{CONTRACT_OPTIONS_TIPS_PREFIX:"Only the first",CONTRACT_OPTIONS_TIPS_SUFFIX:"items are displayed, please search for more results",CONTRACT_VALIDATE_MESSAGE:"Please fill in the correct contract name "},zh:{CONTRACT_OPTIONS_TIPS_PREFIX:"仅展示前",CONTRACT_OPTIONS_TIPS_SUFFIX:"项,更多结果请搜索",CONTRACT_VALIDATE_MESSAGE:"请填写正确的契约名称"}};(0,fn.initializeReactI18n)(Ar,br);var fr,Er,kr,wr,yr,xr,Nr,Lr,Or,Mr,Tr,Rr,Cr,Ir,_r,Sr,Dr=(0,R.wrapBrick)("eo-icon"),Pr=(0,R.wrapBrick)("eo-input",{onChange:"change"});function Wr(e){var{itemsCount:t=20,onBlur:a}=e,[n,i]=(0,O.useState)(t),{t:o}=(0,fn.useTranslation)(Ar),[r,s]=(0,O.useState)(!1);return M().createElement("div",{className:"options-tips",slot:e.slot},o(gr.CONTRACT_OPTIONS_TIPS_PREFIX)," ",r?M().createElement(Pr,{autoFocus:!0,inputStyle:{width:65},value:String(n),onBlur:()=>{s(!1),null==a||a(n)},onChange:e=>{i(Number(e.detail))}}):M().createElement("span",null,n," ",M().createElement(Dr,{icon:"edit",lib:"antd",onClick:()=>{s(!0)}}))," ",o(gr.CONTRACT_OPTIONS_TIPS_SUFFIX))}(0,fn.initializeReactI18n)(Ar,br);var Br,{defineElement:Fr,property:Ur,event:zr}=(0,T.createDecorators)(),jr=(0,R.wrapBrick)("eo-form-item"),Kr=(0,R.wrapBrick)("eo-auto-complete",{onChange:"change"}),Vr=new WeakMap,Hr=new WeakMap,Yr=new WeakMap,Gr=new WeakMap,Xr=new WeakMap,qr=new WeakMap,Jr=new WeakSet;function $r(e){if("string"!=typeof e)return{name:"",version:""};var[t,a]=e.split(":");return{name:t,version:a}}function Qr(e){return/.*@.*:\d+\.\d+\.\d+/.test(e)}function Zr(e){return(0,ra.isNil)(e)||Qr(e)?"":Nn.i18n.t("".concat(Ar,":").concat(gr.CONTRACT_VALIDATE_MESSAGE))}function es(e){var{value:t,inputStyle:a,validateState:n,suffix:i,onChange:o}=e,[r,s]=(0,O.useState)(),[l,c]=(0,O.useState)(20),d=function(e){var{pageSize:t=20,q:a=""}=e,[n,i]=(0,O.useState)([]),[o,r]=(0,O.useState)(a),[s,l]=(0,O.useState)(t);return(0,O.useEffect)((()=>{r(a)}),[a]),(0,O.useEffect)((()=>{l(t)}),[t]),(0,O.useEffect)((()=>{(0,wn.A)((function*(){try{var{list:e}=yield vr({page:1,pageSize:s,fullContractName:o},{interceptorParams:{ignoreLoadingBar:!0}});i(e)}catch(e){console.error(e),i([])}}))()}),[o,s]),n}({q:r,pageSize:l}),[h,u]=(0,O.useState)($r(t)),[p,m]=(0,O.useState)([]);(0,O.useEffect)((()=>{u($r(t))}),[t]);var v=(0,O.useMemo)((()=>(0,ra.debounce)((e=>{s(e)}),200)),[]);return M().createElement("div",{className:"contract-wrapper"},M().createElement(Kr,{className:"contract-selector",options:null==d?void 0:d.map((e=>({value:e.fullContractName,label:e.fullContractName}))),value:h.name,inputStyle:a,validateState:n,onChange:e=>{var t=e.detail;if(Qr(t))u($r(t)),null==o||o(t);else{var a,n,i=null===(a=d.find((e=>e.fullContractName===t)))||void 0===a?void 0:a.version,r=null!==(n=null==i?void 0:i[0])&&void 0!==n?n:"";m(i),u({name:t,version:r}),null==o||o("".concat(t,":").concat(r))}v(t)}},M().createElement(Wr,{onBlur:e=>c(e),slot:"options-toolbar"})),M().createElement(Kr,{className:"version-selector",value:h.version,validateState:n,options:null==p?void 0:p.map((e=>({value:e,label:e}))),onChange:e=>{var t=e.detail;u({name:h.name,version:t}),null==o||o("".concat(h.name,":").concat(t))}}),null!=i&&i.useBrick?M().createElement(Xo.ReactUseMultipleBricks,i):null)}fr=class extends lr{constructor(){super(...arguments),(0,E.A)(this,Jr),(0,k.A)(this,Vr,kr(this)),(0,k.A)(this,Hr,(wr(this),yr(this))),(0,k.A)(this,Yr,(xr(this),Nr(this))),(0,k.A)(this,Gr,(Lr(this),Or(this))),(0,k.A)(this,Xr,(Mr(this),Tr(this))),(0,k.A)(this,qr,(Rr(this),Cr(this))),(0,ee.A)(this,"handleChange",(Sr(this),e=>{(0,y.A)(Jr,this,Ir).emit(e)}))}get name(){return(0,N.A)(Vr,this)}set name(e){(0,x.A)(Vr,this,e)}get required(){return(0,N.A)(Hr,this)}set required(e){(0,x.A)(Hr,this,e)}get label(){return(0,N.A)(Yr,this)}set label(e){(0,x.A)(Yr,this,e)}get value(){return(0,N.A)(Gr,this)}set value(e){(0,x.A)(Gr,this,e)}get suffix(){return(0,N.A)(Xr,this)}set suffix(e){(0,x.A)(Xr,this,e)}render(){return M().createElement(jr,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,labelBrick:this.labelBrick,helpBrick:this.helpBrick,notRender:this.notRender,trigger:"handleChange",validator:Zr},M().createElement(es,{value:this.value,suffix:this.suffix,validateState:this.validateState,onChange:this.handleChange}))}},({e:[kr,wr,yr,xr,Nr,Lr,Or,Mr,Tr,Rr,Cr,Ir,_r,Sr],c:[Br,Er]}=(0,L.A)(fr,[Fr("visual-builder.contract-select",{styleTexts:[qo.A]})],[[Ur(),1,"name"],[Ur({type:Boolean}),1,"required"],[Ur(),1,"label"],[Ur({attribute:!1}),1,"value"],[Ur({attribute:!1}),1,"suffix"],[zr({type:"change"}),1,"changeEvent",e=>(0,N.A)(qr,e),(e,t)=>(0,x.A)(qr,e,t)]],0,(e=>Jr.has((0,w.A)(e))),lr)),Er();var ts,as,ns,is,os,rs,ss,ls,cs,ds,hs,us,ps,ms,vs,gs,As,bs=a(7540),fs=(0,R.wrapBrick)("eo-menu"),Es=(0,R.wrapBrick)("eo-menu-item"),ks=(0,R.wrapBrick)("eo-tooltip"),ws=(0,Xa.unwrapProvider)("basic.lock-body-scroll");(0,fn.initializeReactI18n)("bricks/visual-builder/generate-snippets-context-menu",{en:{},zh:{}});var ys,{defineElement:xs,property:Ns,event:Ls,method:Os}=(0,T.createDecorators)(),Ms=new WeakMap,Ts=new WeakMap,Rs=new WeakMap,Cs=new WeakMap,Is=new WeakSet,_s=new WeakMap,Ss=new WeakMap,Ds=new WeakMap;class Ps extends R.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,Is),(0,k.A)(this,Ms,(as(this),is(this))),(0,k.A)(this,Ts,(os(this),rs(this))),(0,k.A)(this,Rs,(ss(this),ls(this))),(0,k.A)(this,Cs,(cs(this),ds(this))),(0,k.A)(this,_s,(ps(this),ms(this))),(0,k.A)(this,Ss,(As(this),e=>{(0,y.A)(Is,this,hs).emit(e)})),(0,k.A)(this,Ds,(e=>{(0,y.A)(Is,this,vs).emit(e)}))}get options(){return(0,N.A)(Ms,this)}set options(e){(0,x.A)(Ms,this,e)}get active(){return(0,N.A)(Ts,this)}set active(e){(0,x.A)(Ts,this,e)}get position(){return(0,N.A)(Rs,this)}set position(e){(0,x.A)(Rs,this,e)}open(e){var{position:t}=e;this.active=!0,this.position=t}close(){this.active=!1,this.position=void 0}disconnectedCallback(){super.disconnectedCallback(),ws(this,!1)}render(){return M().createElement(Ws,{active:this.active,element:this,position:this.position,onItemDragStart:(0,N.A)(Ss,this),onItemDragEnd:(0,N.A)(Ds,this),options:this.options})}}function Ws(e){var t,a,{element:n,active:i,onItemDragEnd:o,onItemDragStart:r,options:s,position:l}=e,[c,d]=(0,O.useState)(!1),h=(0,O.useRef)(null),[u,p]=(0,O.useState)(null),m=(0,O.useCallback)((e=>{e.preventDefault(),null==n||n.close()}),[n]),v=(0,O.useCallback)(((e,t)=>{var a;d(!0),t.dragConf&&(null===(a=e.dataTransfer)||void 0===a||a.setData(t.dragConf.format,JSON.stringify(t.dragConf.data))),e.target.classList.add("dragging"),null==r||r(t)}),[r]),g=(0,O.useCallback)(((e,t)=>{d(!1),e.target.classList.remove("dragging"),null==n||n.close(),null==o||o(t)}),[n,o]);return(0,O.useEffect)((()=>{ws(n,i)}),[i,n]),(0,O.useEffect)((()=>{if(i&&h.current&&l){var e=h.current.getBoundingClientRect(),t=e.width+8,a=e.height+8,{clientWidth:n,clientHeight:o}=document.documentElement,r=[...l];n>t&&l[0]+t>n&&(r[0]=l[0]-t),o>a&&l[1]+a>o&&(r[1]=o-a),p(r)}else p(null)}),[i,l]),M().createElement(M().Fragment,null,!c&&M().createElement("div",{className:"mask",onClick:m,onContextMenu:m}),M().createElement("div",{className:"container",ref:h,style:{left:null===(t=null!=u?u:l)||void 0===t?void 0:t[0],top:null===(a=null!=u?u:l)||void 0===a?void 0:a[1],visibility:u?"visible":"hidden"}},null==s?void 0:s.map(((e,t)=>{var a,n;return M().createElement("div",{key:t},M().createElement("div",{className:"title"},e.title),(null===(a=e.children)||void 0===a?void 0:a.length)&&M().createElement(fs,null,null===(n=e.children)||void 0===n?void 0:n.map(((e,t)=>M().createElement(ks,{content:e.tooltip,hoist:!0,placement:"left",key:t},M().createElement(Es,{disabled:e.disabled,icon:e.icon,draggable:!e.disabled,onDragStart:t=>v(t,e),onDragEnd:t=>g(t,e)},e.text))))))}))))}ts=Ps,({e:[is,os,rs,ss,ls,cs,ds,hs,us,ps,ms,vs,gs,As,as],c:[ys,ns]}=(0,L.A)(ts,[xs("visual-builder.generate-snippets-context-menu",{styleTexts:[bs.A]})],[[Ns({attribute:!1}),1,"options"],[Ns({type:Boolean}),1,"active"],[Ns({attribute:!1}),1,"position"],[Ls({type:"item.drag.start"}),1,"itemDragStartEvent",e=>(0,N.A)(Cs,e),(e,t)=>(0,x.A)(Cs,e,t)],[Ls({type:"item.drag.end"}),1,"itemDragEndEvent",e=>(0,N.A)(_s,e),(e,t)=>(0,x.A)(_s,e,t)],[Os(),2,"open"],[Os(),2,"close"]],0,(e=>Ds.has((0,w.A)(e))),R.ReactNextElement)),ns();var Bs=a(1085),Fs=a(3091),Us=a(7447),zs=a(3640),js=a(4360),Ks=a(3544),Vs=a(4650),Hs=a(9830);function Ys(){function e(e,t,a){if(a&&"pre"===a.tagName&&"code"===e.tagName){var n=function(e){var t=e.properties.className||[];for(var a of t)if("language-"===a.slice(0,9))return a.slice(9).toLowerCase();return null}(e);if(null!==n){var i;try{a.properties.className=(a.properties.className||[]).concat("language-"+n),i=Hs.L.highlight((0,Vs.d)(e),n)}catch(e){return}e.children=i.children}}}return t=>{(0,Ks.YR)(t,"element",e)}}var Gs={Fragment:Bs.Fragment,jsx:Bs.jsx,jsxs:Bs.jsxs};function Xs(e){var{content:t}=e,[a,n]=(0,O.useState)(null);return(0,O.useEffect)((()=>{var e=!1;return(0,Fs.l)().use(Us.A).use(zs.A).use([Ys]).use(js.A,Gs).process(t).then((t=>{e||n(t.result)})).catch((t=>{e||(console.error("Convert markdown failed:",t),n(null))})),()=>{e=!0}}),[t]),a}var qs=(0,R.wrapBrick)("eo-avatar");function Js(e){var{message:t}=e,a=(0,O.useMemo)((()=>{var e=[];if("assistant"===t.role){for(var a,n=/(?:^|\n)```(easy_cmd_\S+)\n([\s\S]*?)\n```(?:$|\n)/gm,i=0;a=n.exec(t.content);){var[o,r,s]=a,l=a.index,c=t.content.slice(i,l).trim();c.length>0&&e.push({type:"markdown",content:c}),e.push({type:"command",command:r,content:s.trim(),raw:o}),i=n.lastIndex}var d=t.content.slice(i).trim();d.length>0&&e.push({type:"markdown",content:d})}else e.push({type:"plain",content:t.content});return e}),[t.content,t.role]),n=(0,O.useRef)(null);return(0,O.useEffect)((()=>{var e=n.current;e&&setTimeout((()=>{var a=e.parentElement.querySelectorAll(".texting");for(var n of a)n.classList.remove("texting");if(t.partial){for(var i=e;i;){var o=i.lastChild;if((null==o?void 0:o.nodeType)!==Node.ELEMENT_NODE||"DETAILS"===(null==o?void 0:o.tagName)&&!o.open){var r;if((null==o?void 0:o.nodeType)!==Node.TEXT_NODE||0!==o.textContent.trim().length||(null===(r=o.previousSibling)||void 0===r?void 0:r.nodeType)!==Node.ELEMENT_NODE)break;i=o.previousSibling}else i=o}i.classList.add("texting")}}),1)}),[t.partial,t.content]),M().createElement("div",{className:S()("message",{failed:t.failed})},M().createElement("div",{className:"avatar"},M().createElement(qs,{icon:{lib:"easyops",icon:"assistant"===t.role?"robot":"account"},size:"small",className:"role-".concat(t.role)})),M().createElement("div",{className:"main"},M().createElement("div",{className:"label"},"assistant"===t.role?"Assistant":"You"),M().createElement("div",{className:"content",ref:n},a.map(((e,t)=>M().createElement($s,{key:t,chunk:e}))))))}function $s(e){var{chunk:t}=e;return M().createElement(M().Fragment,null,"markdown"===t.type?M().createElement("div",{className:"markdown"},M().createElement(Xs,{content:t.content})):"command"===t.type?M().createElement(M().Fragment,null,M().createElement("details",{className:"command"},M().createElement("summary",null,"```",t.command),M().createElement("pre",null,M().createElement("code",null,t.content)))):M().createElement("div",{className:"plain"},t.content))}var Qs,Zs,el,tl,al,nl,il,ol,rl,sl,ll,cl=a(7236),{defineElement:dl,property:hl,event:ul}=(0,T.createDecorators)(),pl=new WeakMap,ml=new WeakMap,vl=new WeakMap,gl=new WeakSet,Al=new WeakMap;class bl extends R.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,gl),(0,k.A)(this,pl,el(this)),(0,k.A)(this,ml,(tl(this),al(this))),(0,k.A)(this,vl,(nl(this),il(this))),(0,k.A)(this,Al,(sl(this),e=>{(0,y.A)(gl,this,ol).emit(e)}))}get messages(){return(0,N.A)(pl,this)}set messages(e){(0,x.A)(pl,this,e)}get errorBoundary(){return(0,N.A)(ml,this)}set errorBoundary(e){(0,x.A)(ml,this,e)}render(){return M().createElement(fl,{host:this,messages:this.messages,errorBoundary:this.errorBoundary,onStoryboardUpdate:(0,N.A)(Al,this)})}}function fl(e){var{messages:t,host:a,errorBoundary:n,onStoryboardUpdate:i}=e,o=(0,O.useMemo)((()=>/(?:^|\n)```easy_cmd_vb_block_(page|storyboard)\n([\s\S]*?)\n```(?:$|\n)/gm),[]),r=(0,O.useRef)(new Map),[s,l]=(0,O.useState)([]),c=(0,O.useRef)(!1);(0,O.useEffect)((()=>{var e=function(){var e,t;if("assistant"!==a.role)return 1;o.lastIndex=null!==(e=r.current.get(a.key))&&void 0!==e?e:0;for(var n=[],i=!1;t=o.exec(a.content);){r.current.set(a.key,o.lastIndex);var[,s,c]=t;try{var d=JSON.parse(c);"page"===s?(i=!0,n.push(...d)):n.push((0,vn.A)((0,vn.A)({},d),{},{type:"item"}))}catch(e){console.error("parse storyboard failed:",e)}}i?l(n):n.length>0&&l((e=>[...e,...n]))};for(var a of null!=t?t:[])e()}),[o,t]);var[d,h]=(0,O.useState)([]);(0,O.useEffect)((()=>{var e=[],t=new Map;for(var a of s)"block"===a.type?e.push(a):a.storyboard&&t.set(a.uuid,a.storyboard);e.sort(((e,t)=>e.seq-t.seq));var i={brick:"eo-content-layout",children:[]},o={brick:"eo-main-view",children:[{brick:"eo-page-title",slot:"pageTitle",properties:{pageTitle:"测试页面"}}]},r=!1;for(var l of e)if("全局操作区"===l.name)for(var c of l.children){var d=t.get(c);d&&(o.children.push((0,vn.A)((0,vn.A)({},d),{},{properties:(0,vn.A)((0,vn.A)({},d.properties),{},{slot:void 0}),errorBoundary:n,slot:"toolbar",iid:"item:".concat(c),meta:{type:"item",uuid:c,block:{uuid:l.uuid,name:l.name}}})),r=!0)}else{var u=t.get(l.uuid);if(u){var p=(0,vn.A)((0,vn.A)({},u),{},{children:[],errorBoundary:n,iid:"block:".concat(l.uuid),meta:{type:"block",uuid:l.uuid,name:l.name}});for(var m of(r=!0,i.children.push(p),l.children)){var v=t.get(m);v&&p.children.push((0,vn.A)((0,vn.A)({},v),{},{errorBoundary:n,iid:"item:".concat(m),meta:{type:"item",uuid:m}}))}}else if(!l.hasContainer)for(var g of l.children){var A=t.get(g);A&&(i.children.push((0,vn.A)((0,vn.A)({},A),{},{errorBoundary:n,iid:"item:".concat(g),meta:{type:"item",uuid:g}})),r=!0)}}o.children.push(i),h((e=>r?[o]:0===e.length?e:[]))}),[s,n]),(0,O.useEffect)((()=>{null==i||i(d)}),[i,d]);var u=(0,O.useMemo)((()=>{for(var e=a;e;){var t=getComputedStyle(e,null).getPropertyValue("overflow-y");if("auto"===t||"scroll"===t)return e;if(e.parentNode instanceof ShadowRoot)e=e.parentNode.host;else{if(!(e.parentNode instanceof Element))break;e=e.parentNode}}return document.scrollingElement||document.documentElement}),[a]);return(0,O.useEffect)((()=>{c.current||setTimeout((()=>{u.scrollTo(0,u.scrollHeight)}),1)}),[t,u]),(0,O.useEffect)((()=>{var e=()=>{c.current=u.scrollTop+u.clientHeight+6<u.scrollHeight};return u.addEventListener("scroll",e),()=>{u.removeEventListener("scroll",e)}}),[u]),M().createElement(M().Fragment,null,null==t?void 0:t.map(((e,t)=>{var a;return M().createElement(Js,{key:null!==(a=e.key)&&void 0!==a?a:"index-".concat(t),message:e})})))}Qs=bl,({e:[el,tl,al,nl,il,ol,rl,sl],c:[ll,Zs]}=(0,L.A)(Qs,[dl("visual-builder.chat-conversation",{styleTexts:[cl.A]})],[[hl({attribute:!1}),1,"messages"],[hl({type:Boolean}),1,"errorBoundary"],[ul({type:"storyboard.update"}),1,"storyboardUpdate",e=>(0,N.A)(vl,e),(e,t)=>(0,x.A)(vl,e,t)]],0,(e=>Al.has((0,w.A)(e))),R.ReactNextElement)),Zs();var El=a(9575),kl=a(4223),wl=a(1732);function yl(e){var{variant:t,width:a,height:n,left:i,top:o,label:r}=e;return M().createElement("div",{className:"outline "+t,style:{width:a+8,height:n+8,left:i-4,top:o-4}},M().createElement("div",{className:"label"},r))}var xl,Nl,Ll,Ol,Ml,Tl,Rl,Cl,Il,_l,Sl,Dl,Pl,Wl,Bl,Fl,Ul,zl,jl=a(1563),Kl=["width","height","left","top"],{defineElement:Vl,property:Hl,event:Yl,method:Gl}=(0,T.createDecorators)(),Xl=new WeakMap,ql=new WeakMap,Jl=new WeakMap,$l=new WeakMap,Ql=new WeakMap,Zl=new WeakMap,ec=new WeakSet,tc=new WeakMap;class ac extends R.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,ec),(0,k.A)(this,Xl,(Nl(this),Ol(this))),(0,k.A)(this,ql,(Ml(this),Tl(this))),(0,k.A)(this,Jl,(Rl(this),Cl(this))),(0,k.A)(this,$l,(Il(this),_l(this))),(0,k.A)(this,Ql,(Sl(this),Dl(this))),(0,k.A)(this,Zl,(Pl(this),Wl(this))),(0,k.A)(this,tc,(Ul(this),e=>{(0,y.A)(ec,this,Bl).emit(e)}))}get storyboard(){return(0,N.A)(Xl,this)}set storyboard(e){(0,x.A)(Xl,this,e)}get theme(){return(0,N.A)(ql,this)}set theme(e){(0,x.A)(ql,this,e)}get uiVersion(){return(0,N.A)(Jl,this)}set uiVersion(e){(0,x.A)(Jl,this,e)}get app(){return(0,N.A)($l,this)}set app(e){(0,x.A)($l,this,e)}get inspecting(){return(0,N.A)(Ql,this)}set inspecting(e){(0,x.A)(Ql,this,e)}select(e){var t,a=null===(t=this.shadowRoot)||void 0===t||null===(t=t.querySelector("iframe"))||void 0===t?void 0:t.contentWindow;null==a||a.postMessage({channel:"chat-preview",type:"select",payload:e},location.origin)}render(){return M().createElement(nc,{storyboard:this.storyboard,theme:this.theme,uiVersion:this.uiVersion,app:this.app,inspecting:this.inspecting,onActiveTargetChange:(0,N.A)(tc,this)})}}function nc(e){var{storyboard:t,theme:a,uiVersion:n,app:i,inspecting:o,onActiveTargetChange:r}=e,s=(0,O.useRef)(),[l,c]=(0,O.useState)(!1),[d,h]=(0,O.useState)(!1),[u,p]=(0,O.useState)({x:0,y:0}),[m,v]=(0,O.useState)([]),[g,A]=(0,O.useState)([]),[b,f]=(0,O.useState)([]),[E,k]=(0,O.useState)([]),w=(0,O.useCallback)((()=>{var e=()=>{var t,a=null===(t=s.current)||void 0===t?void 0:t.contentWindow;null!=a&&a._preview_only_render?c(!0):setTimeout(e,100)};e()}),[]);(0,O.useEffect)((()=>{var e,t;if(l){var a=De.__secret_internals.getBrickPackagesById("bricks/visual-builder");if(!a)throw new Error("Cannot find preview agent package: bricks/visual-builder");(null===(e=s.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_inject)("visual-builder.inject-chat-preview-agent",(0,vn.A)((0,vn.A)({},a),{},{filePath:"".concat(location.origin).concat((0,De.getBasePath)()).concat(null!==(t=window.PUBLIC_ROOT)&&void 0!==t?t:"").concat(a.filePath)}))}}),[l]),(0,O.useEffect)((()=>{var e;if(l){var o=null===(e=s.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;o&&o("yaml",{yaml:(0,wl.safeDump)(t,{schema:wl.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0})},{app:i,theme:a,uiVersion:n})}}),[i,l,t,a,n]);var y=(0,O.useMemo)((()=>{if(d)return()=>{setTimeout((()=>{window.postMessage({channel:"chat-preview",type:"inspect-hover",payload:{outlines:[]}})}),100)}}),[d]);(0,O.useEffect)((()=>{var e=e=>{var t;if("chat-preview"===(null===(t=e.data)||void 0===t?void 0:t.channel))switch(e.data.type){case"initialized":h(!0);break;case"inspect-hover":v(e.data.payload.outlines);break;case"scroll":p(e.data.payload);break;case"inspect-active":A(e.data.payload.outlines)}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}}),[]),(0,O.useEffect)((()=>{var e;d&&(null===(e=s.current)||void 0===e||null===(e=e.contentWindow)||void 0===e||e.postMessage({channel:"chat-preview",type:"toggle-inspecting",payload:{inspecting:o}},location.origin))}),[d,o]);var x=(0,O.useCallback)((e=>e.map((e=>{var t,a,n,i,o=null!==(t=null==s||null===(a=s.current)||void 0===a?void 0:a.offsetLeft)&&void 0!==t?t:0,r=null!==(n=null==s||null===(i=s.current)||void 0===i?void 0:i.offsetTop)&&void 0!==n?n:0,{width:l,height:c,left:d,top:h}=e,p=(0,kl.A)(e,Kl);return(0,vn.A)({width:1*l,height:1*c,left:1*(d-u.x)+o,top:1*(h-u.y)+r},p)}))),[u.x,u.y]);return(0,O.useEffect)((()=>{r(g[0])}),[g,r]),(0,O.useEffect)((()=>{k(x(g))}),[g,x]),(0,O.useEffect)((()=>{f(x(m))}),[m,x]),M().createElement("div",{className:S()("container",{inspecting:o})},M().createElement("iframe",{ref:s,src:"".concat((0,De.getBasePath)(),"_brick-preview-v3_/preview/"),loading:"lazy",onLoad:w,onMouseOut:y}),b.map(((e,t)=>M().createElement(yl,(0,El.A)({key:t,variant:"hover"},e)))),E.map(((e,t)=>M().createElement(yl,(0,El.A)({key:t,variant:"active"},e)))))}xl=ac,({e:[Ol,Ml,Tl,Rl,Cl,Il,_l,Sl,Dl,Pl,Wl,Bl,Fl,Ul,Nl],c:[zl,Ll]}=(0,L.A)(xl,[Vl("visual-builder.chat-preview",{styleTexts:[jl.A]})],[[Hl({attribute:!1}),1,"storyboard"],[Hl(),1,"theme"],[Hl(),1,"uiVersion"],[Hl(),1,"app"],[Hl({type:Boolean}),1,"inspecting"],[Yl({type:"activeTarget.change"}),1,"activeTargetChangeEvent",e=>(0,N.A)(Zl,e),(e,t)=>(0,x.A)(Zl,e,t)],[Gl(),2,"select"]],0,(e=>tc.has((0,w.A)(e))),R.ReactNextElement)),Ll();var ic=!1,oc="item:",rc=null;function sc(e){e.preventDefault(),e.stopPropagation(),function(e){var t=uc(e.composedPath());window.parent.postMessage({channel:"chat-preview",type:"inspect-active",payload:{outlines:t.map(pc)}},location.origin)}(e)}function lc(e){e.preventDefault(),e.stopPropagation()}var cc=(0,ra.debounce)(((e,t,a)=>{var n=uc(e);if(0===n.length)for(var i of e)if(i instanceof HTMLElement&&i.shadowRoot){n=uc(i.shadowRoot.elementsFromPoint(t,a));break}var o=n.length>0?n[0].element:null;o!==rc&&(rc=o,window.parent.postMessage({channel:"chat-preview",type:"inspect-hover",payload:{outlines:n.map(pc)}},location.origin))}),20,{leading:!0});function dc(e){cc(e.composedPath(),e.clientX,e.clientY)}function hc(e){e.preventDefault(),e.stopPropagation(),rc=null,window.parent.postMessage({channel:"chat-preview",type:"inspect-hover",payload:{outlines:[]}},location.origin)}function uc(e){var t=[];return e.forEach((e=>{var a;if(e.nodeType===Node.ELEMENT_NODE&&e instanceof HTMLElement&&(a=e.dataset.iid)&&a.startsWith(oc)){var n=a.substring(oc.length);t.push({type:"item",uuid:n,label:mc(e),element:e})}})),t}function pc(e){var{element:t,type:a,uuid:n,label:i}=e,{width:o,height:r,left:s,top:l}=t.getBoundingClientRect();return{width:o,height:r,left:s+window.scrollX,top:l+window.scrollY,type:a,uuid:n,label:i}}function mc(e){return e.tagName.toLowerCase().split(".").pop()}var vc=!1;function gc(){return gc=(0,wn.A)((function*(){vc||(vc=!0,a.e(2201).then(a.bind(a,2201)),Ac({type:"initialized"}),window.addEventListener("message",(e=>{var t,a,n,i;if("chat-preview"===(null===(t=e.data)||void 0===t?void 0:t.channel))switch(e.data.type){case"toggle-inspecting":!function(e){if(ic!==e){ic=e;var t=e?"addEventListener":"removeEventListener";window[t]("click",sc,!0),window[t]("mousedown",lc,!0),window[t]("mouseover",lc,!0),window[t]("mouseup",lc,!0),window[t]("pointerdown",lc,!0),window[t]("pointerover",lc,!0),window[t]("pointerup",lc,!0),window[t]("pointerleave",hc,!0),window[t]("pointermove",dc,!0)}}(e.data.payload.inspecting);break;case"select":a=e.data.payload,n="".concat(a.type,":").concat(a.uuid),i=(0,qa.w)(n),window.parent.postMessage({channel:"chat-preview",type:"inspect-active",payload:{outlines:i.map((e=>pc((0,vn.A)((0,vn.A)({},a),{},{element:e,label:mc(e)}))))}},location.origin)}})),window.addEventListener("scroll",(()=>{Ac({type:"scroll",payload:{x:window.scrollX,y:window.scrollY}})})))})),gc.apply(this,arguments)}function Ac(e){window.parent.postMessage((0,vn.A)({channel:"chat-preview"},e),location.origin)}customElements.define("visual-builder.inject-chat-preview-agent",(0,Xa.createProviderClass)((function(){return gc.apply(this,arguments)})));var bc,fc,Ec,kc,wc,yc,xc,Nc,Lc,Oc,Mc,Tc,Rc,Cc=a(4014),Ic=a(8918),{defineElement:_c,property:Sc}=(0,T.createDecorators)(),Dc=new WeakMap,Pc=new WeakMap,Wc=new WeakMap,Bc=new WeakMap,Fc=new WeakMap;class Uc extends R.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,Dc,Ec(this)),(0,k.A)(this,Pc,(kc(this),wc(this))),(0,k.A)(this,Wc,(yc(this),xc(this))),(0,k.A)(this,Bc,(Nc(this),Lc(this))),(0,k.A)(this,Fc,(Oc(this),Mc(this))),Tc(this)}get generations(){return(0,N.A)(Dc,this)}set generations(e){(0,x.A)(Dc,this,e)}get category(){return(0,N.A)(Pc,this)}set category(e){(0,x.A)(Pc,this,e)}get theme(){return(0,N.A)(Wc,this)}set theme(e){(0,x.A)(Wc,this,e)}get uiVersion(){return(0,N.A)(Bc,this)}set uiVersion(e){(0,x.A)(Bc,this,e)}get app(){return(0,N.A)(Fc,this)}set app(e){(0,x.A)(Fc,this,e)}render(){return M().createElement(zc,{generations:this.generations,category:this.category,theme:this.theme,uiVersion:this.uiVersion,app:this.app})}}function zc(e){var{generations:t,category:a,theme:n,uiVersion:i,app:o}=e,r=(0,O.useRef)(),[s,l]=(0,O.useState)(!1),[c,d]=(0,O.useState)(!1),h=(0,O.useCallback)((()=>{var e=()=>{var t,a=null===(t=r.current)||void 0===t?void 0:t.contentWindow;null!=a&&a._preview_only_render?l(!0):setTimeout(e,100)};e()}),[]);return(0,O.useEffect)((()=>{var e;if(s){var t=De.__secret_internals.getBrickPackagesById("bricks/visual-builder");if(!t)throw new Error("Cannot find preview agent package: bricks/visual-builder");var a=r.current.contentWindow._preview_only_inject,n=(0,vn.A)((0,vn.A)({},t),{},{filePath:"".concat(location.origin).concat((0,De.getBasePath)()).concat(null!==(e=window.PUBLIC_ROOT)&&void 0!==e?e:"").concat(t.filePath)});Promise.allSettled(["visual-builder.pre-generated-table-view","visual-builder.pre-generated-container"].map((e=>a(e,n,void 0,!0)))).then((()=>{d(!0)}))}}),[s]),(0,O.useEffect)((()=>{var e;if(c){var s=null===(e=r.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;if(s){var l=new Map,d=new Map;for(var h of t){var u,p=l.get(h.propertyId);p||l.set(h.propertyId,p=new Map);var m=p.get(h.rwType);m||p.set(h.rwType,m=new Map),m.set(null!==(u=h.displayLevel)&&void 0!==u?u:0,h),d.set(h.propertyId,h.mockData)}var v=[{brick:"div",properties:{textContent:"属性",className:"head-cell"}},{brick:"div",properties:{textContent:"类别",className:"head-cell"}},{brick:"div",properties:{textContent:"展示等级",className:"head-cell last-col-cell",style:{gridColumn:"span 5",textAlign:"center"}}}],g={brick:"visual-builder.pre-generated-table-view",properties:{style:{gridTemplateColumns:"120px 80px repeat(5, 1fr)"}},children:v},A=0;for(var[b,f]of l){var E=0,k=A===l.size-1;for(var[w,y]of f){if(0===E){var x=void 0;for(var N of y.values()){var L;x=null!==(L=N.propertyName)&&void 0!==L?L:b;break}v.push({brick:"div",properties:{textContent:x,className:k?"last-row-cell":void 0,style:{gridRow:"span ".concat(f.size)}}})}var O=k&&E===f.size-1;v.push({brick:"div",properties:{textContent:w,className:O?"last-row-cell":void 0}});for(var M=-2;M<3;M++){var T,R,C=y.get(M),I=void 0;if(null!=C&&null!==(T=C.mockData)&&void 0!==T&&T.length){var _,S=C.mockData[Math.floor(Math.random()*C.mockData.length)];switch(null!==(_=C.category)&&void 0!==_?_:a){case"detail-item":I={[b]:S};break;case"table-column":I={cellData:S}}}var D=[];2===M&&D.push("last-col-cell"),O&&D.push("last-row-cell"),v.push((0,vn.A)((0,vn.A)({brick:"div"},D?{properties:{className:D.join(" ")}}:null),{},{children:[{brick:"visual-builder.pre-generated-container",properties:{useBrick:null!==(R=null==C?void 0:C.storyboard)&&void 0!==R?R:[],dataSource:I},errorBoundary:!0}]}))}E++}A++}s("yaml",{yaml:(0,wl.safeDump)(g,{schema:wl.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0})},{app:o,theme:n,uiVersion:i,styleText:Ic.A})}}}),[o,c,t,n,i,a]),M().createElement("div",{className:S()("container")},M().createElement("iframe",{ref:r,src:"".concat((0,De.getBasePath)(),"_brick-preview-v3_/preview/"),loading:"lazy",onLoad:h}))}bc=Uc,({e:[Ec,kc,wc,yc,xc,Nc,Lc,Oc,Mc,Tc],c:[Rc,fc]}=(0,L.A)(bc,[_c("visual-builder.pre-generated-preview",{styleTexts:[Cc.A]})],[[Sc({attribute:!1}),1,"generations"],[Sc(),1,"category"],[Sc(),1,"theme"],[Sc(),1,"uiVersion"],[Sc(),1,"app"]],0,void 0,R.ReactNextElement)),fc();var jc,Kc,Vc,Hc=a(9216),{defineElement:Yc}=(0,T.createDecorators)();class Gc extends R.ReactNextElement{render(){return M().createElement(Xc,null)}}function Xc(){return M().createElement("slot",null)}jc=Gc,[Vc,Kc]=(0,L.A)(jc,[Yc("visual-builder.pre-generated-table-view",{styleTexts:[Hc.A]})],[],0,void 0,R.ReactNextElement).c,Kc();var qc,Jc,$c,Qc,Zc,ed,td,ad=a(4967),{defineElement:nd,property:id}=(0,T.createDecorators)(),od=new WeakMap,rd=new WeakMap;class sd extends R.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,od,$c(this)),(0,k.A)(this,rd,(Qc(this),Zc(this))),ed(this)}get useBrick(){return(0,N.A)(od,this)}set useBrick(e){(0,x.A)(od,this,e)}get dataSource(){return(0,N.A)(rd,this)}set dataSource(e){(0,x.A)(rd,this,e)}render(){return M().createElement(ld,{useBrick:this.useBrick,dataSource:this.dataSource})}}function ld(e){var{useBrick:t,dataSource:a}=e;return M().createElement(Xo.ReactUseMultipleBricks,{useBrick:t,data:a,errorBoundary:!0})}qc=sd,({e:[$c,Qc,Zc,ed],c:[td,Jc]}=(0,L.A)(qc,[nd("visual-builder.pre-generated-container",{styleTexts:[ad.A]})],[[id({attribute:!1}),1,"useBrick"],[id({attribute:!1}),1,"dataSource"]],0,void 0,R.ReactNextElement)),Jc()},7236:(e,t,a)=>{a.d(t,{A:()=>c});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o),s=a(6131),l=r()(i());l.i(s.A),l.push([e.id,':host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.message{display:flex;gap:8px}.main{flex:1;min-width:0}.label{font-weight:bold;line-height:28px}.message:not(:last-child){margin-bottom:2em}.invisible-dots{opacity:0}.failed .content{color:var(--color-error)}.command:not(:first-child){margin-top:1em}.command:not(:last-child){margin-bottom:1em}pre{white-space:pre-wrap;background-color:var(--palette-gray-3);border-radius:6px;padding:1em}.markdown > :first-child{margin-top:0}.markdown > :last-child{margin-bottom:0}.avatar{align-self:flex-start;display:flex;align-items:center;justify-content:center}.texting::after{content:" ";animation:texting 2s infinite;white-space:pre}@keyframes texting{0%{content:" "}25%{content:". "}50%{content:".. "}75%{content:"..."}100%{content:" "}}pre[class*="language-"]{overflow:visible}pre[class*="language-"],\ncode[class*="language-"]{white-space:pre-wrap}eo-avatar.role-assistant::part(avatar-icon){background-color:var(--palette-blue-5)}.content{word-wrap:break-word}.plain{white-space:pre-wrap}',""]);const c=l.toString()},1563:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container,\niframe{width:100%;height:100%;border-radius:4px}.container{position:relative;box-shadow:rgba(204,204,204,0.2) 0px 0px 0px 1px}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.outline{position:absolute;border-style:solid;border-width:2px;border-radius:0 4px 4px;pointer-events:none}.label{position:absolute;left:-2px;top:-20px;height:18px;line-height:16px;padding:2px 5px 0;font-size:12px;border-radius:4px 4px 0 0;white-space:nowrap}.outline.hover{border-color:rgba(var(--palette-blue-6-channel),0.3)}.outline.hover .label{background:rgba(var(--palette-blue-6-channel),0.3)}.outline.active{border-color:var(--palette-blue-6)}.outline.active .label{background:var(--palette-blue-6)}.container:not(.inspecting) .outline{display:none}",""]);const s=r.toString()},6213:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.contract-wrapper{display:flex;gap:4px}.contract-selector{flex:1}.version-selector{width:100px}.options-tips{padding:0px 10px;font-weight:400;color:#999;white-space:nowrap;font-style:italic}",""]);const s=r.toString()},7540:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.mask,\n.container{display:none;position:fixed;z-index:1}.mask{top:0;bottom:0;left:0;right:0;z-index:1}:host([active]) .mask,\n:host([active]) .container{display:block}.container{background:var(--antd-dropdown-menu-bg);border-radius:var(--medius-border-radius);padding:5px}.container .title{padding:5px 12px;cursor:default;color:var(--color-secondary-text);border-bottom:1px solid var(--color-text-divider-line)}.container eo-menu{border:none;padding:5px 0}.container eo-menu eo-menu-item:not([disabled]):hover::part(menu-item){background-color:var(--left-sidebar-item-hover-bg)}.container eo-menu eo-menu-item[disabled]::part(menu-item){cursor:not-allowed}.container eo-menu eo-menu-item::part(menu-item){cursor:-webkit-grab;cursor:grab;padding:5px 12px;border-radius:var(--medius-border-radius);min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.container eo-menu eo-menu-item.dragging{opacity:0.5}.container eo-menu eo-tooltip{display:block}",""]);const s=r.toString()},2381:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{--local-node-outline-style:solid;display:block}:host([hidden]){display:none}:host([not-synced]){--local-node-outline-style:dashed}*{box-sizing:border-box}.node{width:168px;max-width:none;height:130px;position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.node.board{height:70px;max-width:168px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding-bottom:4px}.label,\n.label-input{width:100%;height:24px;padding:3px;border:none;line-height:18px;font-size:var(--sub-title-font-size-small);color:var(--color-header-text);font-weight:var(--font-weight-500);text-align:center;font-family:inherit;cursor:text;-webkit-user-select:text;-moz-user-select:text;user-select:text}.label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.node.editing-label .label{height:0}.node:not(.editing-label) .label-input{display:none}.add-button,\n.icon-container,\n.thumbnail-container,\n.thumbnail-placeholder{display:flex;align-items:center;justify-content:center}.thumbnail-container{height:98px;outline:1px var(--local-node-outline-style) var(--palette-gray-4);opacity:1;border:4px solid transparent;border-radius:4px;width:100%;position:relative;flex-direction:column}.thumbnail-placeholder{color:var(--palette-gray-5);font-size:36px;flex:1}.icon-container{font-size:20px;background-color:var(--palette-teal-6);color:var(--palette-gray-4);width:36px;height:36px;border-radius:50%;outline-offset:4px}:host([active]) .thumbnail-container,\n:host([active]) .icon-container{outline:2px var(--local-node-outline-style) var(--palette-blue-3)}:host(:not([active])) .node:hover .thumbnail-container,\n:host(:not([active])) .node:hover .icon-container{outline:1px var(--local-node-outline-style) var(--palette-blue-3)}.add-button{position:absolute;bottom:-26px;left:calc(50% - 12px);width:24px;height:24px;background:var(--palette-gray-3);color:var(--palette-gray-6);border-radius:50%;cursor:pointer}:host([not-synced]) .add-button,\n:host([disable-child-append]) .add-button,\n:host(:not([active])) .add-button{display:none}.add-button:hover{background:var(--palette-blue-5);color:var(--palette-gray-2)}.external{position:absolute;top:4px;left:4px;padding:0 10px;display:flex;align-items:center;gap:6px;background:var(--palette-purple-4);font-size:12px;line-height:20px;height:22px;cursor:pointer;color:var(--palette-gray-1);border-radius:9999px;right:4px;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}.external-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.external:hover{background:var(--palette-purple-5)}.sub-nodes{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:6px;gap:6px;width:100%}.sub-node{background-color:var(--palette-gray-2);border-radius:4px;padding:6px;display:flex;flex-direction:column;justify-content:space-between;height:32px}.sub-node-skeleton-title{width:18px;height:4px;border-radius:2px;align-self:flex-start;background-color:var(--palette-gray-4)}.sub-node-skeleton-content{width:100%;height:4px;border-radius:2px;background-color:var(--palette-gray-4)}.sub-node-skeleton-button{width:18px;height:4px;border-radius:2px;align-self:flex-end;background-color:var(--palette-blue-3)}.sub-node:hover{background-color:var(--palette-gray-3)}.sub-node:hover .sub-node-skeleton-title,\n.sub-node:hover .sub-node-skeleton-content{background-color:var(--palette-gray-5)}.sub-node:hover .sub-node-skeleton-button{background-color:var(--palette-blue-4)}",""]);const s=r.toString()},4967:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{display:inline-block}:host([hidden]){display:none}",""]);const s=r.toString()},8918:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,"#preview-root{padding:0;height:100vh;overflow-y:auto;border:1px solid var(--theme-gray-border-color);border-radius:4px}.head-cell{position:-webkit-sticky;position:sticky;top:0;background:var(--body-background);z-index:1;font-weight:bold}.last-col-cell{border-right-color:transparent}.last-row-cell{border-bottom-color:transparent}",""]);const s=r.toString()},4014:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container,\niframe{width:100%;height:100%;border-radius:4px}.container{position:relative}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;-moz-user-select:none;user-select:none}",""]);const s=r.toString()},9216:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{display:grid;width:100%}:host([hidden]){display:none}::slotted(*){padding:4px 8px;border:1px solid var(--theme-gray-border-color);border-left-color:transparent;border-top-color:transparent;min-width:0;word-break:break-word}",""]);const s=r.toString()},9765:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,".custom-scrollbar-container{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.15) rgba(255,255,255,0.03)}.custom-scrollbar-container::-webkit-scrollbar{width:8px;height:8px;background-color:transparent;position:absolute}.custom-scrollbar-container::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0);border-radius:4px}.custom-scrollbar-container:hover::-webkit-scrollbar-track{background-color:rgba(255,255,255,0.03)}.custom-scrollbar-container:hover::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.15)}",""]);const s=r.toString()},3430:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.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 s=r.toString()},5292:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.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 s=r.toString()},1361:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{display:inline-block}:host([hidden]){display:none}eo-popover::part(popup){width:800px;max-width:60vw;padding:10px;background:var(--color-fill-bg-container-4);border-radius:var(--medius-border-radius);box-shadow:var(--feedback-container-shadow);z-index:1000}.history-title{font-size:var(--title-font-size);font-weight:var(--font-weight-500);color:var(--color-strong-text);margin-bottom:5px}.history-list{max-height:500px;overflow-y:auto}.item-container{padding:10px 0;display:flex;flex-direction:column;gap:5px}.empty{padding:5px 0 10px 0;font-size:14px;color:var(--text-color-secondary);text-align:center}.item-container:not(:last-of-type){border-bottom:1px solid var(--color-border-divider-line)}.item-title{display:flex;align-items:center;justify-content:space-between;gap:5px}.title-left,\n.title-right{display:flex;align-items:center}.title-left{cursor:pointer;overflow:hidden;gap:5px}.topic{font-size:14px;color:var(--text-color-title);font-weight:var(--font-weight-500);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.branch{font-size:14px;color:var(--text-color-secondary)}.rollback{margin-right:5px;font-size:14px;color:var(--text-color-secondary);cursor:pointer}.rollback:hover{color:var(--color-brand)}.item-info{display:flex;align-items:center;gap:5px}.time,\n.operator{font-size:14px;color:var(--text-color-secondary)}.load-more-container{display:block;text-align:center}.end-container{display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px;color:var(--color-brand)}.rollback-all{cursor:pointer}",""]);const s=r.toString()},7180:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.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 s=r.toString()},2150:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.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 s=r.toString()},6131:(e,t,a)=>{a.d(t,{A:()=>c});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o),s=a(7745),l=r()(i());l.i(s.A),l.push([e.id,"",""]);const c=l.toString()},4223:(e,t,a)=>{function n(e,t){if(null==e)return{};var a,n,i=function(e,t){if(null==e)return{};var a,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||(i[a]=e[a]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}a.d(t,{A:()=>n})}}]);
|
|
3
|
-
//# sourceMappingURL=1822.b9d18634.js.map
|