@next-bricks/visual-builder 1.7.11 → 1.8.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 -6
- package/dist/chunks/1045.8b4d10c4.js +2 -0
- package/dist/chunks/1045.8b4d10c4.js.map +1 -0
- package/dist/chunks/{114.6fb16290.js → 114.3b4811fb.js} +2 -2
- package/dist/chunks/{114.6fb16290.js.map → 114.3b4811fb.js.map} +1 -1
- package/dist/chunks/{1940.61266fb2.js → 1940.58a6ed6b.js} +2 -2
- package/dist/chunks/{1940.61266fb2.js.map → 1940.58a6ed6b.js.map} +1 -1
- package/dist/chunks/{2277.c770db7c.js → 2277.fda4d32d.js} +2 -2
- package/dist/chunks/{2277.c770db7c.js.map → 2277.fda4d32d.js.map} +1 -1
- package/dist/chunks/2652.c69240d2.js +2 -0
- package/dist/chunks/{2652.b6866e64.js.map → 2652.c69240d2.js.map} +1 -1
- package/dist/chunks/{3171.ae0589dd.js → 3171.d4871dd3.js} +2 -2
- package/dist/chunks/{3171.ae0589dd.js.map → 3171.d4871dd3.js.map} +1 -1
- package/dist/chunks/3426.10d61df1.js +2 -0
- package/dist/chunks/3426.10d61df1.js.map +1 -0
- package/dist/chunks/{3801.e0689f2e.js → 3801.80b3cda4.js} +3 -3
- package/dist/chunks/{3801.e0689f2e.js.map → 3801.80b3cda4.js.map} +1 -1
- package/dist/chunks/3933.3fc2f29b.js +2 -0
- package/dist/chunks/{3933.e8f21fa3.js.map → 3933.3fc2f29b.js.map} +1 -1
- package/dist/chunks/{4658.c25c24e7.js → 4658.4b685c97.js} +2 -2
- package/dist/chunks/{4658.c25c24e7.js.map → 4658.4b685c97.js.map} +1 -1
- package/dist/chunks/{5552.3cdeab95.js → 5552.ae721844.js} +2 -2
- package/dist/chunks/{5552.3cdeab95.js.map → 5552.ae721844.js.map} +1 -1
- package/dist/chunks/6314.1f843756.js +2 -0
- package/dist/chunks/{6314.22e4ac4f.js.map → 6314.1f843756.js.map} +1 -1
- package/dist/chunks/{7115.bc8bc211.js → 7115.299b2dc9.js} +2 -2
- package/dist/chunks/{7115.bc8bc211.js.map → 7115.299b2dc9.js.map} +1 -1
- package/dist/chunks/7224.054dc871.js +3 -0
- package/dist/chunks/7224.054dc871.js.map +1 -0
- package/dist/chunks/{7733.b9386ecb.js → 7733.afc7df10.js} +2 -2
- package/dist/chunks/{7733.b9386ecb.js.map → 7733.afc7df10.js.map} +1 -1
- package/dist/chunks/{790.445f1430.js → 790.69ae2267.js} +2 -2
- package/dist/chunks/{790.445f1430.js.map → 790.69ae2267.js.map} +1 -1
- package/dist/chunks/9027.c54a843b.js +2 -0
- package/dist/chunks/{9027.e29c16dd.js.map → 9027.c54a843b.js.map} +1 -1
- package/dist/chunks/{9496.832e76e2.js → 9496.cfa9e0c9.js} +2 -2
- package/dist/chunks/{9496.832e76e2.js.map → 9496.cfa9e0c9.js.map} +1 -1
- package/dist/chunks/{9515.a2cf2f42.js → 9515.07ef90ca.js} +2 -2
- package/dist/chunks/{9515.a2cf2f42.js.map → 9515.07ef90ca.js.map} +1 -1
- package/dist/chunks/{9559.90a0f32e.js → 9559.35450382.js} +2 -2
- package/dist/chunks/{9559.90a0f32e.js.map → 9559.35450382.js.map} +1 -1
- package/dist/chunks/chat-conversation.5688d761.js +3 -0
- package/dist/chunks/chat-conversation.5688d761.js.map +1 -0
- package/dist/chunks/chat-preview.f0a52048.js +2 -0
- package/dist/chunks/chat-preview.f0a52048.js.map +1 -0
- package/dist/chunks/{contract-select.48b621b0.js → contract-select.188e9d91.js} +3 -3
- package/dist/chunks/{contract-select.48b621b0.js.map → contract-select.188e9d91.js.map} +1 -1
- package/dist/chunks/inject-preview-agent.56d6d991.js +2 -0
- package/dist/chunks/{inject-preview-agent.476734bd.js.map → inject-preview-agent.56d6d991.js.map} +1 -1
- package/dist/chunks/main.e85cc270.js +2 -0
- package/dist/chunks/main.e85cc270.js.map +1 -0
- package/dist/chunks/{page-arch-node.450592b3.js → page-arch-node.e0fc3b8c.js} +3 -3
- package/dist/chunks/{page-arch-node.450592b3.js.map → page-arch-node.e0fc3b8c.js.map} +1 -1
- package/dist/chunks/{workbench-action-list.9fb6faf9.js → workbench-action-list.d93b089b.js} +2 -2
- package/dist/chunks/{workbench-action-list.9fb6faf9.js.map → workbench-action-list.d93b089b.js.map} +1 -1
- package/dist/chunks/{workbench-action.880a2710.js → workbench-action.499a3618.js} +3 -3
- package/dist/chunks/{workbench-action.880a2710.js.map → workbench-action.499a3618.js.map} +1 -1
- package/dist/chunks/{workbench-history-action.c8de3d8f.js → workbench-history-action.27b038a9.js} +3 -3
- package/dist/chunks/{workbench-history-action.c8de3d8f.js.map → workbench-history-action.27b038a9.js.map} +1 -1
- package/dist/chunks/{workbench-pane.85259fa0.js → workbench-pane.43cca8ce.js} +3 -3
- package/dist/chunks/workbench-pane.43cca8ce.js.LICENSE.txt +5 -0
- package/dist/chunks/{workbench-pane.85259fa0.js.map → workbench-pane.43cca8ce.js.map} +1 -1
- package/dist/chunks/{workbench-sidebar.89e03d0f.js → workbench-sidebar.f5e7a07e.js} +2 -2
- package/dist/chunks/{workbench-sidebar.89e03d0f.js.map → workbench-sidebar.f5e7a07e.js.map} +1 -1
- package/dist/chunks/{workbench-tree.508dd487.js → workbench-tree.97608c87.js} +2 -2
- package/dist/chunks/{workbench-tree.508dd487.js.map → workbench-tree.97608c87.js.map} +1 -1
- package/dist/examples.json +3 -0
- package/dist/index.f96d3eea.js +2 -0
- package/dist/index.f96d3eea.js.map +1 -0
- package/dist/manifest.json +59 -22
- package/dist/types.json +158 -13
- package/dist-types/bootstrap.d.ts +2 -0
- package/dist-types/chat-conversation/index.d.ts +27 -0
- package/dist-types/chat-conversation/index.spec.d.ts +1 -0
- package/dist-types/chat-preview/index.d.ts +15 -0
- package/dist-types/chat-preview/index.spec.d.ts +1 -0
- package/docs/chat-conversation.md +80 -0
- package/package.json +3 -3
- package/dist/chunks/1045.cb75d16d.js +0 -2
- package/dist/chunks/1045.cb75d16d.js.map +0 -1
- package/dist/chunks/2652.b6866e64.js +0 -2
- package/dist/chunks/3426.d6cca3b4.js +0 -2
- package/dist/chunks/3426.d6cca3b4.js.map +0 -1
- package/dist/chunks/3933.e8f21fa3.js +0 -2
- package/dist/chunks/5123.6c1a26ba.js +0 -3
- package/dist/chunks/5123.6c1a26ba.js.map +0 -1
- package/dist/chunks/6314.22e4ac4f.js +0 -2
- package/dist/chunks/9027.e29c16dd.js +0 -2
- package/dist/chunks/inject-preview-agent.476734bd.js +0 -2
- package/dist/chunks/main.349e8a4b.js +0 -2
- package/dist/chunks/main.349e8a4b.js.map +0 -1
- package/dist/index.41e9e907.js +0 -2
- package/dist/index.41e9e907.js.map +0 -1
- /package/dist/chunks/{3801.e0689f2e.js.LICENSE.txt → 3801.80b3cda4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5123.6c1a26ba.js.LICENSE.txt → 7224.054dc871.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{page-arch-node.450592b3.js.LICENSE.txt → chat-conversation.5688d761.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{contract-select.48b621b0.js.LICENSE.txt → contract-select.188e9d91.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-action.880a2710.js.LICENSE.txt → page-arch-node.e0fc3b8c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-pane.85259fa0.js.LICENSE.txt → workbench-action.499a3618.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.c8de3d8f.js.LICENSE.txt → workbench-history-action.27b038a9.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/3426.d6cca3b4.js","mappings":"8KACe,SAASA,EAAgBC,EAAKC,EAAKC,GAYhD,OAXAD,GAAM,OAAcA,MACTD,EACTG,OAAOC,eAAeJ,EAAKC,EAAK,CAC9BC,MAAOA,EACPG,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZP,EAA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sBZ,EAA0BnE,SAAU,OAAsBiE,EAAqBjE,SAC3H,OAAsBiE,EAAqBjE,MAAM,GACjDgF,QAAQC,UAAUC,MAAK,MACrB,OAAsBjB,EAAqBjE,MAAM,GACjDA,KAAK2E,SAAS,IAGpB,EDrEK,SAASQ,IAMd,YALiB/F,IAAb4E,IACFA,KAAcoB,OAAOC,YAErB,uBAAwBC,SAAStI,WAAa,YAAauI,cAAcvI,YAEpEgH,CACT,ECgEA,OAAgBM,EAAa,kBAAc,IAC3C,OAAgBA,EAAa,qBAAiB,IAC9C,OAAgBA,EAAa,8BAA0B,IACvD,OAAgBA,EAAa,iBAAa,E","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/defineProperty.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/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///../../node_modules/@next-core/element/dist/esm/internal/symbols.js","webpack:///../../node_modules/@next-core/element/dist/esm/createDecorators.js","webpack:///../../node_modules/@next-core/element/dist/esm/supportsAdoptingStyleSheets.js","webpack:///../../node_modules/@next-core/element/dist/esm/NextElement.js"],"sourcesContent":["import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import 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}","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}","export var symbolOfAttributeHasBeenSet = Symbol(\"attributeHasBeenSet\");\nexport var symbolOfMarkAttributeHasBeenSet = Symbol(\"markAttributeHasBeenSet\");\nexport var symbolOfStopAttributeChangedCallback = Symbol(\"stopAttributeChangedCallback\");\n//# sourceMappingURL=symbols.js.map","import _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nvar _excluded = [\"type\"];\nimport { symbolOfAttributeHasBeenSet, symbolOfMarkAttributeHasBeenSet, symbolOfStopAttributeChangedCallback } from \"./internal/symbols.js\";\nvar defaultConverter = {\n toAttribute(value, type) {\n switch (type) {\n case Boolean:\n return value ? \"\" : null;\n }\n return value;\n },\n fromAttribute(value, type) {\n switch (type) {\n case Boolean:\n return value !== null && value !== \"false\";\n case Number:\n return value === null ? null : Number(value);\n }\n return value;\n }\n};\n\n/**\n * Change function that returns true if `value` is different from `oldValue`.\n * This method is used as the default for a property's `hasChanged` function.\n */\nvar notEqual = (value, old) => {\n // This ensures (old==NaN, value==NaN) always returns false\n return old !== value && (old === old || value === value);\n};\nvar defaultPropertyDeclaration = {\n attribute: true,\n type: String,\n converter: defaultConverter,\n // reflect: true,\n render: true,\n hasChanged: notEqual\n};\n\n// Note: `prefix` is a native prop on Element, but it's only used in XML documents.\nvar allowedNativeProps = new Set([\"prefix\"]);\nexport function createDecorators() {\n var attributeReflections = new Map();\n var definedProperties = new Set();\n var definedMethods = new Set();\n var definedEvents = new Set();\n function defineElement(name) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return (value, _ref) => {\n var {\n kind,\n name: className,\n addInitializer\n } = _ref;\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && kind !== \"class\") {\n throw new Error(\"Invalid usage of `@defineElement()` on a \".concat(kind, \": \\\"\").concat(className, \"\\\"\"));\n }\n addInitializer(function () {\n var _superClass$observedA, _superClass$__attribu, _superClass$_dev_only, _superClass$_dev_only2, _superClass$_dev_only3;\n var superClass = Object.getPrototypeOf(this);\n var mergedAttributes = mergeIterables((_superClass$observedA = superClass.observedAttributes) !== null && _superClass$observedA !== void 0 ? _superClass$observedA : [], attributeReflections.keys());\n defineReadonlyProperty(this, \"observedAttributes\", mergedAttributes);\n var mergedAttributeReflections = new Map([...((_superClass$__attribu = superClass.__attributeReflections) !== null && _superClass$__attribu !== void 0 ? _superClass$__attribu : []), ...attributeReflections]);\n defineReadonlyProperty(this, \"__attributeReflections\", mergedAttributeReflections);\n defineReadonlyProperty(this, \"styleTexts\", options.styleTexts);\n defineReadonlyProperty(this, \"shadowOptions\", options.shadowOptions !== false ? _objectSpread({\n mode: \"open\"\n }, options.shadowOptions) : null);\n defineReadonlyProperty(this, \"__tagName\", name);\n var mergedProperties = mergeIterables((_superClass$_dev_only = superClass._dev_only_definedProperties) !== null && _superClass$_dev_only !== void 0 ? _superClass$_dev_only : [], definedProperties);\n defineReadonlyProperty(this, \"_dev_only_definedProperties\", mergedProperties);\n var mergedMethods = mergeIterables((_superClass$_dev_only2 = superClass._dev_only_definedMethods) !== null && _superClass$_dev_only2 !== void 0 ? _superClass$_dev_only2 : [], definedMethods);\n defineReadonlyProperty(this, \"_dev_only_definedMethods\", mergedMethods);\n var mergedEvents = mergeIterables((_superClass$_dev_only3 = superClass._dev_only_definedEvents) !== null && _superClass$_dev_only3 !== void 0 ? _superClass$_dev_only3 : [], definedEvents);\n defineReadonlyProperty(this, \"_dev_only_definedEvents\", mergedEvents);\n customElements.define(name, this);\n if (Array.isArray(options.alias)) {\n for (var alias of options.alias) {\n // Use a parenthesized expression to make the class has no name.\n var Alias = (\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n 0, class extends value {});\n defineReadonlyProperty(Alias, \"__tagName\", alias);\n customElements.define(alias, Alias);\n }\n }\n });\n };\n }\n function property(options) {\n return function (_ref2, _ref3) {\n var {\n get,\n set\n } = _ref2;\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate\n } = _ref3;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"accessor\") {\n throw new Error(\"Invalid usage of `@property()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (typeof name !== \"string\") {\n throw new Error(\"Invalid usage of `@property()` on a \".concat(kind, \" of \").concat(typeof name));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@property()` on a static \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (isPrivate) {\n throw new Error(\"Invalid usage of `@property()` on a private \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (name in HTMLElement.prototype && !allowedNativeProps.has(name)) {\n var message = \"\\\"\".concat(name, \"\\\" is a native HTMLElement property, and is deprecated to be used as a brick property.\");\n throw new Error(message);\n }\n }\n definedProperties.add(name);\n var _options = Object.assign({}, defaultPropertyDeclaration, options);\n var attrName = attributeNameForProperty(name, _options);\n if (attrName !== undefined) {\n attributeReflections.set(attrName, _objectSpread(_objectSpread({}, _options), {}, {\n property: name\n }));\n }\n return {\n get() {\n // If the attribute has been set (not by initialization), returns the\n // value converted by the attribute. Otherwise returns the prop value.\n // This works as a type conversion when reading a prop value.\n if (attrName !== undefined && this[symbolOfAttributeHasBeenSet](attrName)) {\n return _options.converter.fromAttribute(this.getAttribute(attrName), _options.type);\n }\n return get.call(this);\n },\n set(value) {\n var oldValue = get.call(this);\n set.call(this, value);\n if (_options.hasChanged(value, oldValue)) {\n if (attrName !== undefined) {\n var attrValue = _options.converter.toAttribute(value, _options.type);\n this[symbolOfStopAttributeChangedCallback](true);\n if (attrValue == null) {\n this.removeAttribute(attrName);\n } else {\n this.setAttribute(attrName, attrValue);\n }\n this[symbolOfMarkAttributeHasBeenSet](attrName);\n this[symbolOfStopAttributeChangedCallback](false);\n }\n if (_options.render) {\n this._requestRender();\n }\n }\n },\n init(initialValue) {\n if (attrName !== undefined && _options.hasChanged(initialValue, undefined)) {\n var attrValue = _options.converter.toAttribute(initialValue, _options.type);\n if (attrValue != null) {\n // No attributes should be created during constructing custom elements.\n // This is true even if the work is done inside a constructor-initiated microtask.\n // https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-conformance\n requestAnimationFrame(() => {\n if (!this[symbolOfAttributeHasBeenSet](attrName)) {\n this[symbolOfStopAttributeChangedCallback](true);\n this.setAttribute(attrName, attrValue);\n this[symbolOfStopAttributeChangedCallback](false);\n }\n });\n }\n }\n return initialValue;\n }\n };\n };\n }\n function method(options) {\n return function (value, _ref4) {\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate,\n addInitializer\n } = _ref4;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"method\") {\n throw new Error(\"Invalid usage of `@method()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (typeof name !== \"string\") {\n throw new Error(\"Invalid usage of `@method()` on a \".concat(kind, \" of \").concat(typeof name));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@method()` on a static \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (isPrivate) {\n throw new Error(\"Invalid usage of `@method()` on a private \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (name in HTMLElement.prototype && !allowedNativeProps.has(name)) {\n var message = \"\\\"\".concat(name, \"\\\" is a native HTMLElement property, and is deprecated to be used as a brick method.\");\n throw new Error(message);\n }\n }\n if (options !== null && options !== void 0 && options.bound) {\n addInitializer(function () {\n this[name] = this[name].bind(this);\n });\n }\n definedMethods.add(name);\n };\n }\n function event(options) {\n return function (_ref5, _ref6) {\n var {\n get\n } = _ref5;\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate\n } = _ref6;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"accessor\") {\n throw new Error(\"Invalid usage of `@event()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (!isPrivate) {\n throw new Error(\"Invalid usage of `@event()` on a non-private \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@event()` on a static \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n }\n var {\n type\n } = options,\n eventInit = _objectWithoutProperties(options, _excluded);\n definedEvents.add(type);\n return {\n get() {\n return get.call(this);\n },\n set() {\n throw new Error(\"Decorated events are readonly\");\n },\n init(initialValue) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && initialValue !== undefined) {\n throw new Error(\"Do not set an initial value for a decorated event: \\\"\".concat(String(name), \"\\\"\"));\n }\n return Object.freeze({\n emit: detail => this.dispatchEvent(new CustomEvent(type, _objectSpread(_objectSpread({}, eventInit), {}, {\n detail\n })))\n });\n }\n };\n };\n }\n return {\n defineElement,\n property,\n method,\n event\n };\n}\nfunction defineReadonlyProperty(target, propName, propValue) {\n Object.defineProperty(target, propName, {\n get() {\n return propValue;\n },\n configurable: true\n });\n}\nfunction mergeIterables(list1, list2) {\n var newList = new Set(list1);\n for (var item of list2) {\n newList.add(item);\n }\n return [...newList];\n}\nfunction attributeNameForProperty(name, options) {\n var attribute = options.attribute;\n return attribute === false ? undefined : typeof attribute === \"string\" ? attribute : name.replace(/[A-Z]/g, char => \"-\".concat(char.toLowerCase()));\n}\n//# sourceMappingURL=createDecorators.js.map","var supports;\nexport function supportsAdoptingStyleSheets() {\n if (supports === undefined) {\n supports = !!(window.ShadowRoot &&\n // (window.ShadyCSS === undefined || window.ShadyCSS.nativeShadow) &&\n \"adoptedStyleSheets\" in Document.prototype && \"replace\" in CSSStyleSheet.prototype);\n }\n return supports;\n}\n//# sourceMappingURL=supportsAdoptingStyleSheets.js.map","import _classPrivateFieldInitSpec from \"@babel/runtime/helpers/classPrivateFieldInitSpec\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _classPrivateFieldGet from \"@babel/runtime/helpers/classPrivateFieldGet2\";\nimport _classPrivateFieldSet from \"@babel/runtime/helpers/classPrivateFieldSet2\";\nimport { symbolOfAttributeHasBeenSet, symbolOfMarkAttributeHasBeenSet, symbolOfStopAttributeChangedCallback } from \"./internal/symbols.js\";\nvar _hasRequestedRender = /*#__PURE__*/new WeakMap();\nvar _connectedCallbackCalled = /*#__PURE__*/new WeakMap();\nvar _attributeChangedCallbackStopped = /*#__PURE__*/new WeakMap();\nvar _attributesBeenSet = /*#__PURE__*/new WeakMap();\nexport class NextElement extends HTMLElement {\n constructor() {\n super(...arguments);\n _classPrivateFieldInitSpec(this, _hasRequestedRender, false);\n _classPrivateFieldInitSpec(this, _connectedCallbackCalled, false);\n _classPrivateFieldInitSpec(this, _attributeChangedCallbackStopped, false);\n _classPrivateFieldInitSpec(this, _attributesBeenSet, new Set());\n }\n /**\n * When render a custom element as parsed DOM, it is already connected in the\n * first place. The attributes are set while isConnected is true, which will\n * trigger a render request, and then before the next micro-task, the\n * `connectedCallback` will be called, which will trigger an immediate render.\n * Thus we would see two calls of render. So we manually set a mark of whether\n * the `connectedCallback` is actually get called, to prevent a trigger of\n * render request during attributes initialization before `connectedCallback`.\n */\n _markConnectedCallbackCalled() {\n _classPrivateFieldSet(_connectedCallbackCalled, this, true);\n }\n connectedCallback() {\n this._markConnectedCallbackCalled();\n this._render();\n }\n [symbolOfAttributeHasBeenSet](name) {\n return _classPrivateFieldGet(_attributesBeenSet, this).has(name);\n }\n [symbolOfMarkAttributeHasBeenSet](name) {\n _classPrivateFieldGet(_attributesBeenSet, this).add(name);\n }\n\n /** Whether to process attributeChangedCallback. */\n [symbolOfStopAttributeChangedCallback](value) {\n _classPrivateFieldSet(_attributeChangedCallbackStopped, this, value);\n }\n\n /** @internal */\n attributeChangedCallback(name, old, value) {\n _classPrivateFieldGet(_attributesBeenSet, this).add(name);\n if (!_classPrivateFieldGet(_attributeChangedCallbackStopped, this) && old !== value) {\n var attrRef = this.constructor.__attributeReflections.get(name);\n assertAttributeIsReflected(attrRef, name);\n var propValue = attrRef.converter.fromAttribute(value, attrRef.type);\n this[attrRef.property] = propValue;\n }\n }\n\n /**\n * Request a render in the next micro-task. This ensures multiple properties\n * or attributes will trigger a render once in a batch.\n */\n _requestRender() {\n // If the element is not connected,\n // let `connectedCallback()` do the job of calling _render.\n if (this.isConnected && _classPrivateFieldGet(_connectedCallbackCalled, this) && !_classPrivateFieldGet(_hasRequestedRender, this)) {\n _classPrivateFieldSet(_hasRequestedRender, this, true);\n Promise.resolve().then(() => {\n _classPrivateFieldSet(_hasRequestedRender, this, false);\n this._render();\n });\n }\n }\n}\n_defineProperty(NextElement, \"styleTexts\", void 0);\n_defineProperty(NextElement, \"shadowOptions\", void 0);\n_defineProperty(NextElement, \"__attributeReflections\", void 0);\n_defineProperty(NextElement, \"__tagName\", void 0);\nfunction assertAttributeIsReflected(attrRef, name) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && !attrRef) {\n throw new Error(\"Attribute [\".concat(name, \"] is not reflected\"));\n }\n}\n//# sourceMappingURL=NextElement.js.map"],"names":["_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","ownKeys","e","r","t","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","_objectWithoutProperties","source","excluded","i","target","sourceKeys","indexOf","sourceSymbolKeys","prototype","propertyIsEnumerable","call","toPropertyKey","Symbol","toPrimitive","TypeError","String","_typeof","iterator","constructor","symbolOfAttributeHasBeenSet","symbolOfMarkAttributeHasBeenSet","symbolOfStopAttributeChangedCallback","_excluded","defaultPropertyDeclaration","attribute","type","converter","toAttribute","Boolean","fromAttribute","Number","render","hasChanged","old","createDecorators","attributeReflections","Map","definedProperties","Set","definedMethods","definedEvents","defineElement","name","options","undefined","_ref","kind","className","addInitializer","_superClass$observedA","_superClass$__attribu","_superClass$_dev_only","_superClass$_dev_only2","_superClass$_dev_only3","superClass","getPrototypeOf","this","defineReadonlyProperty","mergeIterables","observedAttributes","__attributeReflections","styleTexts","shadowOptions","mode","_dev_only_definedProperties","_dev_only_definedMethods","_dev_only_definedEvents","customElements","define","Array","isArray","alias","Alias","property","_ref2","_ref3","get","set","static","isStatic","private","isPrivate","add","_options","assign","attrName","replace","char","concat","toLowerCase","attributeNameForProperty","getAttribute","oldValue","attrValue","removeAttribute","setAttribute","_requestRender","init","initialValue","requestAnimationFrame","method","_ref4","bound","bind","event","_ref5","_ref6","eventInit","Error","freeze","emit","detail","dispatchEvent","CustomEvent","propName","propValue","list1","list2","newList","item","supports","_hasRequestedRender","WeakMap","_connectedCallbackCalled","_attributeChangedCallbackStopped","_attributesBeenSet","NextElement","HTMLElement","super","_markConnectedCallbackCalled","connectedCallback","_render","has","attributeChangedCallback","attrRef","isConnected","Promise","resolve","then","supportsAdoptingStyleSheets","window","ShadowRoot","Document","CSSStyleSheet"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[3933,6314],{3933:(e,t,r)=>{function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(n,a){if("string"==typeof t?n.name===t:t.includes(n.name)){for(var i=[],s=1;s<=r;s++){var c=a[a.length-s];if("MemberExpression"===(null==c?void 0:c.node.type)&&"object"===c.key){var u=c.node;u.computed||"Identifier"!==u.property.type?u.computed&&"Literal"===u.property.type&&"string"==typeof u.property.value?i.push(o?"".concat(n.name,".").concat(u.property.value):u.property.value):e.hasNonStaticUsage=!0:i.push(o?"".concat(n.name,".").concat(u.property.name):u.property.name)}else e.hasNonStaticUsage=!0}i.length===r&&e.usedProperties.add(i.join("."))}}}function n(e,t){return function(r,o,n){if(o.name===e){var a=n[n.length-1],i=n[n.length-2];if("CallExpression"===(null==i?void 0:i.node.type)&&"callee"===(null==i?void 0:i.key)&&"MemberExpression"===(null==a?void 0:a.node.type)&&"object"===a.key&&(a.node.computed?"Literal"===a.node.property.type&&a.node.property.value===t:"Identifier"===a.node.property.type&&a.node.property.name===t)){var s=i.node.arguments;if(s.length>0){var c=s[0];"Literal"===c.type&&"string"==typeof c.value?r.usedArgs.add(c.value):r.hasNonStaticUsage=!0}}}}}r.r(t),r.d(t,{beforeVisitGlobalMember:()=>o,collectAppGetMenuUsage:()=>a,collectInstalledAppsHasUsage:()=>i,collectMemberUsage:()=>p,collectMemberUsageInFunction:()=>g,createProviderClass:()=>c.createProviderClass,scanPermissionActionsInAny:()=>m,scanPermissionActionsInStoryboard:()=>b,strictCollectMemberUsage:()=>l,track:()=>d,trackAll:()=>f,traverseStoryboardExpressions:()=>u,traverseStoryboardFunction:()=>v,traverseStoryboardFunctions:()=>y,unwrapProvider:()=>c.unwrapProvider});var a=n("APP","getMenu"),i=n("INSTALLED_APPS","has"),s=r(5058),c=r(6223);function u(e,t,r){var o=new WeakSet,{matchExpressionString:n,visitNotMatchedExpressionString:a,visitNonExpressionString:i,visitObject:u}="string"==typeof r?{matchExpressionString:e=>e.includes(r)}:r;!function e(r){if("string"==typeof r)if((0,s.isEvaluable)(r))if(n(r))try{(0,s.preevaluate)(r,{withParent:!0,hooks:{beforeVisitGlobal(e,o){t(e,o,r)}}})}catch(e){console.error("Parse storyboard expression failed:",e)}else null==a||a(r);else null==i||i(r);else if((0,c.isObject)(r)){if(o.has(r))return;for(var l of(o.add(r),null==u||u(r),Array.isArray(r)?r:Object.values(r)))e(l)}}(e)}function l(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,{hasNonStaticUsage:o,nonStaticUsage:n,usedProperties:a}=p(e,t,r);if(o)throw new Error("Non-static usage of ".concat(t,' is prohibited, check your expression: "').concat(n,'"'));return a}function p(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n={usedProperties:new Set,hasNonStaticUsage:!1},a=o(n,t,r);return u(e,((e,t,r)=>{a(e,t),n.hasNonStaticUsage&&(n.nonStaticUsage=r)}),t),n}function d(e,t,r){if(e.includes(t)){var n,a={usedProperties:new Set,hasNonStaticUsage:!1},{expression:i}=(0,s.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal:o(a,r)}});if("SequenceExpression"===i.type&&(n=i.expressions[0])&&"Literal"===n.type&&n.value===t){if(a.usedProperties.size>0)return a.usedProperties;console.warn('You are using "'.concat(t,'" but no `').concat(r,"` usage found in your expression: ").concat(JSON.stringify(e)))}}return!1}function f(e){if(e){var t={usedProperties:new Set,hasNonStaticUsage:!1};if((0,s.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal:o(t,["CTX","STATE","FORM_STATE"],1,!0)}}),t.usedProperties.size>0){var r=[...t.usedProperties],n={context:!1,state:!1,formState:!1},a={CTX:"context",STATE:"state",FORM_STATE:"formState"};return r.forEach((e=>{var[t,r]=e.split(".");n[a[t]]||(n[a[t]]=[]),n[a[t]].push(r)})),n}console.warn('You are using track all but no "CTX" or "STATE" or "FORM_STATE" usage found in your expression: '.concat(JSON.stringify(e)))}return!1}function y(e,t){if(Array.isArray(e))for(var r of e)v(r,t)}function v(e,t,r){try{(0,s.precookFunction)(e.source,{typescript:e.typescript,withParent:!0,hooks:{beforeVisitGlobal:t}})}catch(t){r||console.error('Parse storyboard function "'.concat(e.name,'" failed:'),t)}}function g(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a={usedProperties:new Set,hasNonStaticUsage:!1};if(v(e,o(a,t,n),r),a.hasNonStaticUsage&&!r)throw new Error("Non-static usage of ".concat(t,' is prohibited, check your function: "').concat(e.name,'"'));return a.usedProperties.delete(e.name),a.usedProperties}var h="PERMISSIONS",S="check";function b(e){var t,r=new Set,o=P(r),{customTemplates:n,functions:a}=null!==(t=e.meta)&&void 0!==t?t:{};return u([e.routes,n],o,h),y(a,o),Array.from(r)}function m(e){var t=new Set;return u(e,P(t),h),Array.from(t)}function P(e){return function(t,r){if(t.name===h){var o=r[r.length-1],n=r[r.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==o?void 0:o.node.type)&&"object"===o.key&&(o.node.computed?"Literal"===o.node.property.type&&o.node.property.value===S:"Identifier"===o.node.property.type&&o.node.property.name===S))for(var a of n.node.arguments)"Literal"===a.type&&"string"==typeof a.value&&e.add(a.value)}}}}}]);
|
|
2
|
-
//# sourceMappingURL=3933.e8f21fa3.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 5123.6c1a26ba.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[5123],{5123:(e,t,a)=>{a.r(t);var n,i,o,r,l,s,c,h,d,p,u,A,b,m,E,v,g,f=a(4635),k=a(918),N=a(6902),x=a(5536),L=a(6121),w=a(829),y=a(2740),O=a(8769),I=a.n(O),R=a(6544),T=a(2621),C=a(7180),M=a(9765),_=a(3373),S=a.n(_),D=(0,T.wrapBrick)("eo-icon"),{defineElement:P,property:F,event:U}=(0,R.createDecorators)(),W=new WeakMap,B=new WeakMap,K=new WeakMap,j=new WeakMap,z=new WeakSet,G=new WeakMap,V=new WeakMap,Y=new WeakMap;class H extends T.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,z),(0,k.A)(this,W,o(this)),(0,k.A)(this,B,(r(this),l(this))),(0,k.A)(this,K,(s(this),c(this))),(0,k.A)(this,j,(h(this),d(this))),(0,k.A)(this,G,(A(this),e=>{e!==this.active&&(this.active=e,(0,x.A)(z,this,p).emit(e))})),(0,k.A)(this,V,b(this)),(0,k.A)(this,Y,(v(this),()=>{(0,x.A)(z,this,m).emit()}))}get titleLabel(){return(0,w.A)(W,this)}set titleLabel(e){(0,L.A)(W,this,e)}get active(){return(0,w.A)(B,this)}set active(e){(0,L.A)(B,this,e)}get badge(){return(0,w.A)(K,this)}set badge(e){(0,L.A)(K,this,e)}render(){return I().createElement(X,{titleLabel:this.titleLabel,active:this.active,badge:this.badge,onActiveChange:(0,w.A)(G,this),onFirstActivated:(0,w.A)(Y,this)})}}function X(e){var{titleLabel:t,active:a,badge:n,onActiveChange:i,onFirstActivated:o}=e,[r,l]=(0,O.useState)(a),[s,c]=(0,O.useState)(!1);(0,O.useEffect)((()=>{l(a)}),[a]),(0,O.useEffect)((()=>{null==i||i(r)}),[r,i]);var h=(0,O.useCallback)((()=>{l((e=>!e)),s||r||(c(!0),null==o||o())}),[s,r,o]),d=(0,O.useRef)(),[p,u]=(0,O.useState)(!1),A=(0,O.useMemo)((()=>{return e=()=>{u(d.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 I().createElement("div",{className:S()("pane",{scrolled:p})},I().createElement("div",{className:"pane-header",tabIndex:0,onClick:h},I().createElement("div",{className:"pane-title"},I().createElement("span",{className:"title-icon"},r?I().createElement(D,{lib:"antd",theme:"outlined",icon:"down"}):I().createElement(D,{lib:"antd",theme:"outlined",icon:"right"})),I().createElement("div",{className:"title-label"},t),I().createElement("slot",{name:"title"})),I().createElement("slot",{name:"actions"}),n&&I().createElement("div",{className:"badge"},n),I().createElement("div",{className:"pane-scroll-shadow"})),I().createElement("div",{className:"pane-body custom-scrollbar-container",onScroll:A,ref:d},I().createElement("slot",null,I().createElement("div",{style:{padding:"10px 20px",color:"var(--text-color-secondary)"}},"No content"))))}n=H,({e:[o,r,l,s,c,h,d,p,u,A,b,m,E,v],c:[g,i]}=(0,y.A)(n,[P("visual-builder.workbench-pane",{styleTexts:[C.A,M.A]})],[[F(),1,"titleLabel"],[F({type:Boolean}),1,"active"],[F({type:Number}),1,"badge"],[U({type:"active.change"}),1,"activeChangeEvent",e=>(0,w.A)(j,e),(e,t)=>(0,L.A)(j,e,t)],[U({type:"active.firstActivated"}),1,"activeFirstActivatedEvent",e=>(0,w.A)(V,e),(e,t)=>(0,L.A)(V,e,t)]],0,(e=>Y.has((0,N.A)(e))),T.ReactNextElement)),i();var q,J,$,Q,Z,ee=a(4586),te=a(2150),{defineElement:ae,property:ne}=(0,R.createDecorators)(),ie=new WeakMap,oe=new WeakMap,re=new WeakMap,le=new WeakMap;class se extends T.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,w.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,le,(e=>{var t=e.target.assignedNodes();for(var a of t)a.addEventListener("active.change",(0,w.A)(re,this))})),(0,ee.A)(this,"refCallback",(()=>{(0,w.A)(re,this).call(this);var e=(0,w.A)(oe,this).call(this);null==e||e.addEventListener("slotchange",(e=>{(0,w.A)(le,this).call(this,e)}))}))}get titleLabel(){return(0,w.A)(ie,this)}set titleLabel(e){(0,L.A)(ie,this,e)}render(){return I().createElement(ce,{titleLabel:this.titleLabel,refCallback:this.refCallback})}}function ce(e){var{titleLabel:t,refCallback:a}=e;return I().createElement("div",{className:"sidebar",ref:a},I().createElement("div",{className:"title-container"},I().createElement("div",{className:"title-label"},t),I().createElement("slot",{name:"titleToolbar"})),I().createElement("div",{className:"pane-container"},I().createElement("slot",null)))}q=se,({e:[$,Q],c:[Z,J]}=(0,y.A)(q,[ae("visual-builder.workbench-sidebar",{styleTexts:[te.A]})],[[ne(),1,"titleLabel"]],0,void 0,T.ReactNextElement)),J();var he,de,pe,ue,Ae,be,me,Ee,ve,ge,fe,ke,Ne,xe=a(5292),{defineElement:Le,property:we}=(0,R.createDecorators)(),ye=(0,T.wrapBrick)("eo-link"),Oe=(0,T.wrapBrick)("eo-icon"),Ie=new WeakMap,Re=new WeakMap,Te=new WeakMap,Ce=new WeakMap,Me=new WeakMap;class _e extends T.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,Ie,pe(this)),(0,k.A)(this,Re,(ue(this),Ae(this))),(0,k.A)(this,Te,(be(this),me(this))),(0,k.A)(this,Ce,(Ee(this),ve(this))),(0,k.A)(this,Me,(ge(this),fe(this))),ke(this)}get icon(){return(0,w.A)(Ie,this)}set icon(e){(0,L.A)(Ie,this,e)}get to(){return(0,w.A)(Re,this)}set to(e){(0,L.A)(Re,this,e)}get active(){return(0,w.A)(Te,this)}set active(e){(0,L.A)(Te,this,e)}get href(){return(0,w.A)(Ce,this)}set href(e){(0,L.A)(Ce,this,e)}get target(){return(0,w.A)(Me,this)}set target(e){(0,L.A)(Me,this,e)}render(){return I().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 I().createElement(ye,{className:S()("action",{active:n}),url:a,href:i,target:o},I().createElement(Oe,t))}he=_e,({e:[pe,ue,Ae,be,me,Ee,ve,ge,fe,ke],c:[Ne,de]}=(0,y.A)(he,[Le("visual-builder.workbench-action",{styleTexts:[xe.A]})],[[we({attribute:!1}),1,"icon"],[we(),1,"to"],[we({type:Boolean}),1,"active"],[we(),1,"href"],[we(),1,"target"]],0,void 0,T.ReactNextElement)),de();var De=a(6471),Pe=a(1201);function Fe(e,t,a,n){var i=[],o=[],r=[],l=0;return e.forEach((e=>{if(e.key=""===n?"".concat(l):"".concat(n,".").concat(l),function(e){return"group"===e.type}(e)||function(e,t){return Boolean("subMenu"===e.type||void 0)}(e)){var s=Fe(e.items,t,a,e.key);i.push(...s.selectedKeys),(s.selectedKeys.length||e.defaultExpanded)&&o.push(e.key),o.push(...s.openedKeys),r.push(...s.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=Ue(a,n.search)),!o&&Array.isArray(e.activeIncludes))for(var r of e.activeIncludes){var l,s=void 0,c=r.includes("?");if(c&&(s=(0,Pe.parsePath)(r)),(o=!!(0,De.matchPath)(t,{path:c?s.pathname:r,exact:!0}))&&null!==(l=s)&&void 0!==l&&l.search&&(o=Ue(a,s.search)),o)break}if(o&&Array.isArray(e.activeExcludes))for(var h of e.activeExcludes)if(!(o=!(0,De.matchPath)(t,{path:h,exact:!0})))break;return o}(e,t,a)){i.push(String(e.key));for(var c=e.key.split("."),h=0;h<c.length;h++)r.push(c.slice(0,h+1).join("."))}l+=1})),i.length&&""!==n&&o.push(n),{selectedKeys:i,openedKeys:o,matchedKeys:r}}function Ue(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 We,Be,Ke,je,ze,Ge,Ve,Ye,He=a(3430),Xe=(0,T.wrapBrick)("visual-builder.workbench-action"),{defineElement:qe,property:Je}=(0,R.createDecorators)(),$e=new WeakMap,Qe=new WeakMap;class Ze extends T.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,$e,Ke(this)),(0,k.A)(this,Qe,(je(this),ze(this))),Ge(this)}get appId(){return(0,w.A)($e,this)}set appId(e){(0,L.A)($e,this,e)}get menu(){return(0,w.A)(Qe,this)}set menu(e){(0,L.A)(Qe,this,e)}render(){return I().createElement(tt,{appId:this.appId,menu:this.menu})}}We=Ze,({e:[Ke,je,ze,Ge],c:[Ve,Be]}=(0,y.A)(We,[qe("visual-builder.workbench-action-list",{styleTexts:[He.A]})],[[Je(),1,"appId"],[Je({attribute:!1}),1,"menu"]],0,void 0,T.ReactNextElement)),Be();var et=new Map;function tt(e){var t,{appId:a,menu:n}=e,i=(0,De.getHistory)(),[o,r]=(0,O.useState)(),[l,s]=(0,O.useState)(i.location);return(0,O.useEffect)((()=>{var e=i.listen((e=>{s(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}=l,{selectedKeys:i}=Fe(null!==(e=null==n?void 0:n.menuItems)&&void 0!==e?e:[],t,a,"");r(Number(i[0]))}),[n,l]),I().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)),I().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(l.pathname).concat(l.search))})(e)})}})).filter(Boolean))}var at,nt,it,ot,rt,lt,st,ct,ht,dt,pt,ut,At,bt,mt,Et,vt,gt,ft,kt,Nt,xt,Lt,wt,yt,Ot,It,Rt,Tt,Ct,Mt,_t,St,Dt,Pt,Ft,Ut,Wt,Bt,Kt,jt,zt,Gt,Vt,Yt,Ht,Xt,qt,Jt,$t,Qt,Zt,ea,ta,aa,na,ia,oa,ra=a(1030),la=a(4940),sa=a(7758),ca=a(9406),ha=a(675),da=a(7995),pa=a(6275);function ua(e){return e.key}a(6329);var Aa,{defineElement:ba,property:ma,event:Ea}=(0,R.createDecorators)(),va=new WeakMap,ga=new WeakMap,fa=new WeakMap,ka=new WeakMap,Na=new WeakMap,xa=new WeakMap,La=new WeakMap,wa=new WeakMap,ya=new WeakMap,Oa=new WeakMap,Ia=new WeakMap,Ra=new WeakMap,Ta=new WeakMap,Ca=new WeakMap,Ma=new WeakMap,_a=new WeakMap,Sa=new WeakMap,Da=new WeakMap,Pa=new WeakMap,Fa=new WeakSet,Ua=new WeakMap,Wa=new WeakMap,Ba=new WeakMap,Ka=new WeakMap,ja=new WeakMap,za=new WeakMap,Ga=new WeakMap,Va=new WeakMap,Ya=new WeakMap;class Ha extends T.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,Fa),(0,k.A)(this,va,it(this)),(0,k.A)(this,ga,(ot(this),rt(this))),(0,k.A)(this,fa,(lt(this),st(this))),(0,k.A)(this,ka,(ct(this),ht(this))),(0,k.A)(this,Na,(dt(this),pt(this))),(0,k.A)(this,xa,(ut(this),At(this))),(0,k.A)(this,La,(bt(this),mt(this))),(0,k.A)(this,wa,(Et(this),vt(this))),(0,k.A)(this,ya,(gt(this),ft(this))),(0,k.A)(this,Oa,(kt(this),Nt(this))),(0,k.A)(this,Ia,(xt(this),Lt(this))),(0,k.A)(this,Ra,(wt(this),yt(this))),(0,k.A)(this,Ta,(Ot(this),It(this))),(0,k.A)(this,Ca,(Rt(this),Tt(this))),(0,k.A)(this,Ma,(Ct(this),Mt(this))),(0,k.A)(this,_a,(_t(this),St(this))),(0,k.A)(this,Sa,(Dt(this),Pt(this))),(0,k.A)(this,Da,(Ft(this),Ut(this))),(0,k.A)(this,Pa,(Wt(this),Bt(this))),(0,k.A)(this,Ua,(zt(this),e=>{(0,x.A)(Fa,this,Kt).emit(e)})),(0,k.A)(this,Wa,Gt(this)),(0,k.A)(this,Ba,(Ht(this),e=>()=>{(0,x.A)(Fa,this,Vt).emit(e.data)})),(0,k.A)(this,Ka,Xt(this)),(0,k.A)(this,ja,($t(this),e=>{(0,x.A)(Fa,this,qt).emit(e)})),(0,k.A)(this,za,Qt(this)),(0,k.A)(this,Ga,(ta(this),e=>t=>{t.preventDefault(),(0,x.A)(Fa,this,Zt).emit({active:!0,node:null==e?void 0:e.data,x:t.clientX,y:t.clientY})})),(0,k.A)(this,Va,aa(this)),(0,k.A)(this,Ya,(oa(this),(e,t)=>{(0,x.A)(Fa,this,na).emit({nodeId:e,collapsed:t})}))}get nodes(){return(0,w.A)(va,this)}set nodes(e){(0,L.A)(va,this,e)}get actions(){return(0,w.A)(ga,this)}set actions(e){(0,L.A)(ga,this,e)}get actionsHidden(){return(0,w.A)(fa,this)}set actionsHidden(e){(0,L.A)(fa,this,e)}get placeholder(){return(0,w.A)(ka,this)}set placeholder(e){(0,L.A)(ka,this,e)}get isTransformName(){return(0,w.A)(Na,this)}set isTransformName(e){(0,L.A)(Na,this,e)}get searchPlaceholder(){return(0,w.A)(xa,this)}set searchPlaceholder(e){(0,L.A)(xa,this,e)}get noSearch(){return(0,w.A)(La,this)}set noSearch(e){(0,L.A)(La,this,e)}get activeKey(){return(0,w.A)(wa,this)}set activeKey(e){(0,L.A)(wa,this,e)}get showMatchedNodeOnly(){return(0,w.A)(ya,this)}set showMatchedNodeOnly(e){(0,L.A)(ya,this,e)}get matchNodeDataFields(){return(0,w.A)(Oa,this)}set matchNodeDataFields(e){(0,L.A)(Oa,this,e)}get fixedActionsFor(){return(0,w.A)(Ia,this)}set fixedActionsFor(e){(0,L.A)(Ia,this,e)}get collapsible(){return(0,w.A)(Ra,this)}set collapsible(e){(0,L.A)(Ra,this,e)}get collapsedNodes(){return(0,w.A)(Ta,this)}set collapsedNodes(e){(0,L.A)(Ta,this,e)}get allowDrag(){return(0,w.A)(Ca,this)}set allowDrag(e){(0,L.A)(Ca,this,e)}get allowDragToRoot(){return(0,w.A)(Ma,this)}set allowDragToRoot(e){(0,L.A)(Ma,this,e)}get allowDragToInside(){return(0,w.A)(_a,this)}set allowDragToInside(e){(0,L.A)(_a,this,e)}get nodeKey(){return(0,w.A)(Sa,this)}set nodeKey(e){(0,L.A)(Sa,this,e)}get skipNotify(){return(0,w.A)(Da,this)}set skipNotify(e){(0,L.A)(Da,this,e)}render(){return I().createElement(la.e.Provider,{value:{actions:this.actions,actionsHidden:this.actionsHidden,onActionClick:(0,w.A)(Ua,this)}},I().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:ua,onNodeToggle:(0,w.A)(Ya,this),skipNotify:this.skipNotify,clickFactory:(0,w.A)(Ba,this),contextMenuFactory:(0,w.A)(Ga,this),matchNode:(e,t)=>{var a;return(0,ha.U)(e.name,t)||!(null===(a=this.matchNodeDataFields)||void 0===a||!a.length)&&(0,ha.U)("*"===this.matchNodeDataFields?e.data:(0,ra.pick)(e.data,this.matchNodeDataFields),t)}}},I().createElement(sa.cU,{nodes:this.nodes,placeholder:this.placeholder,searchPlaceholder:this.searchPlaceholder,noSearch:this.noSearch,dropEmit:(0,w.A)(ja,this),allowDrag:this.allowDrag,allowDragToInside:this.allowDragToInside,allowDragToRoot:this.allowDragToRoot})))}}at=Ha,({e:[it,ot,rt,lt,st,ct,ht,dt,pt,ut,At,bt,mt,Et,vt,gt,ft,kt,Nt,xt,Lt,wt,yt,Ot,It,Rt,Tt,Ct,Mt,_t,St,Dt,Pt,Ft,Ut,Wt,Bt,Kt,jt,zt,Gt,Vt,Yt,Ht,Xt,qt,Jt,$t,Qt,Zt,ea,ta,aa,na,ia,oa],c:[Aa,nt]}=(0,y.A)(at,[ba("visual-builder.workbench-tree",{styleTexts:[da.A,pa.A]})],[[ma({attribute:!1}),1,"nodes"],[ma({attribute:!1}),1,"actions"],[ma({type:Boolean}),1,"actionsHidden"],[ma(),1,"placeholder"],[ma({type:Boolean}),1,"isTransformName"],[ma(),1,"searchPlaceholder"],[ma({type:Boolean}),1,"noSearch"],[ma({attribute:!1}),1,"activeKey"],[ma({type:Boolean}),1,"showMatchedNodeOnly"],[ma({attribute:!1}),1,"matchNodeDataFields"],[ma({attribute:!1}),1,"fixedActionsFor"],[ma({type:Boolean}),1,"collapsible"],[ma({attribute:!1}),1,"collapsedNodes"],[ma({type:Boolean}),1,"allowDrag"],[ma({type:Boolean}),1,"allowDragToRoot"],[ma({type:Boolean}),1,"allowDragToInside"],[ma({type:String}),1,"nodeKey"],[ma({type:Boolean}),1,"skipNotify"],[Ea({type:"action.click"}),1,"actionClickEvent",e=>(0,w.A)(Pa,e),(e,t)=>(0,L.A)(Pa,e,t)],[Ea({type:"node.click"}),1,"nodeClickEvent",e=>(0,w.A)(Wa,e),(e,t)=>(0,L.A)(Wa,e,t)],[Ea({type:"node.drop"}),1,"nodeDropEvent",e=>(0,w.A)(Ka,e),(e,t)=>(0,L.A)(Ka,e,t)],[Ea({type:"context.menu"}),1,"nodeContextMenuEvent",e=>(0,w.A)(za,e),(e,t)=>(0,L.A)(za,e,t)],[Ea({type:"node.toggle"}),1,"nodeToggleEvent",e=>(0,w.A)(Va,e),(e,t)=>(0,L.A)(Va,e,t)]],0,(e=>Ya.has((0,N.A)(e))),T.ReactNextElement)),nt();var Xa=a(6223),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,ln,sn,cn,hn,dn,pn,un,An,bn=a(9740),mn=a(155),En=a.n(mn),vn=a(1361),gn=a(5502),fn=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",Nn=a(6330),xn=a(9124),Ln=function(){var e=(0,Nn.A)((function*(e,t,a){return(yield xn.http.get("api/gateway/next_builder.workspace.GetChangeHistory/api/v1/next-builder/workspace/".concat(e,"/changes"),(0,bn.A)((0,bn.A)({},a),{},{params:t}))).data}));return function(t,a,n){return e.apply(this,arguments)}}(),wn=a(8799),yn={add:"".concat(kn,":").concat(fn.ADD),edit:"".concat(kn,":").concat(fn.EDIT),delete:"".concat(kn,":").concat(fn.DELETE),batch_delete:"".concat(kn,":").concat(fn.DELETE),import:"".concat(kn,":").concat(fn.IMPORT),clone:"".concat(kn,":").concat(fn.CLONE),append_relation:"".concat(kn,":").concat(fn.APPEND_RELATION),update_relation:"".concat(kn,":").concat(fn.UPDATE_RELATION),remove_relation:"".concat(kn,":").concat(fn.REMOVE_RELATION),rollback:"".concat(kn,":").concat(fn.ROLLBACK),rollback_all:"".concat(kn,":").concat(fn.ROLLBACK_ALL)},On={add:"".concat(kn,":").concat(fn.ADD_FULL),edit:"".concat(kn,":").concat(fn.EDIT_FULL),delete:"".concat(kn,":").concat(fn.DELETE_FULL),batch_delete:"".concat(kn,":").concat(fn.DELETE_FULL),import:"".concat(kn,":").concat(fn.IMPORT_FULL),clone:"".concat(kn,":").concat(fn.CLONE_FULL),append_relation:"".concat(kn,":").concat(fn.APPEND_RELATION_FULL),update_relation:"".concat(kn,":").concat(fn.UPDATE_RELATION_FULL),remove_relation:"".concat(kn,":").concat(fn.REMOVE_RELATION_FULL),rollback:"".concat(kn,":").concat(fn.ROLLBACK_FULL),rollback_all:"".concat(kn,":").concat(fn.ROLLBACK_ALL_FULL)},In={project:"".concat(kn,":").concat(fn.PROJECT),userGroup:"".concat(kn,":").concat(fn.USER),permission:"".concat(kn,":").concat(fn.PERMISSION),brick:"".concat(kn,":").concat(fn.BRICK),route:"".concat(kn,":").concat(fn.ROUTE),template:"".concat(kn,":").concat(fn.TEMPLATE),snippet:"".concat(kn,":").concat(fn.SNIPPET),i18n:"".concat(kn,":").concat(fn.I18N),image:"".concat(kn,":").concat(fn.IMAGE),function:"".concat(kn,":").concat(fn.FUNCTION),menu:"".concat(kn,":").concat(fn.MENU),menuItem:"".concat(kn,":").concat(fn.MENU_ITEM),workflow:"".concat(kn,":").concat(fn.WORKFLOW)},Rn={PROJECT_MICRO_APP:"".concat(kn,":").concat(fn.PROJECT),"MICRO_APP_USER_GROUP@EASYOPS":"".concat(kn,":").concat(fn.USER),MICRO_APP_RESOURCE_PERMISSION:"".concat(kn,":").concat(fn.PERMISSION),STORYBOARD_BRICK:"".concat(kn,":").concat(fn.BRICK),STORYBOARD_ROUTE:"".concat(kn,":").concat(fn.ROUTE),STORYBOARD_TEMPLATE:"".concat(kn,":").concat(fn.TEMPLATE),STORYBOARD_SNIPPET:"".concat(kn,":").concat(fn.SNIPPET),STORYBOARD_I18N:"".concat(kn,":").concat(fn.I18N),MICRO_APP_RESOURCE_IMAGE:"".concat(kn,":").concat(fn.IMAGE),STORYBOARD_FUNCTION:"".concat(kn,":").concat(fn.FUNCTION),MICRO_APP_RESOURCE_MENU:"".concat(kn,":").concat(fn.MENU),MICRO_APP_RESOURCE_MENU_ITEM:"".concat(kn,":").concat(fn.MENU_ITEM),"WORKFLOW_DEF@EASYOPS":"".concat(kn,":").concat(fn.WORKFLOW)};function Tn(e){var t,a,n,i,o,r,l,s,c,h,d,p,u,A,b,m,E,v="rollback"!==e.action||e.rollBackIdInfo?e.action:"rollback_all",g=wn.i18n.t(null!==(t=In[e.category])&&void 0!==t?t:e.category),f=wn.i18n.t(null!==(a=yn[v])&&void 0!==a?a:v),k=wn.i18n.t(null!==(n=Rn[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),N=wn.i18n.t(null!==(r=Rn[null===(l=e.abstract)||void 0===l?void 0:l.rightObjectId])&&void 0!==r?r:null===(s=e.abstract)||void 0===s?void 0:s.rightObjectId),x=Cn(null===(c=e.abstract)||void 0===c?void 0:c.nodes,null===(h=e.abstract)||void 0===h?void 0:h.nodesCount),L=Cn(null===(d=e.abstract)||void 0===d?void 0:d.leftNodes,null===(p=e.abstract)||void 0===p?void 0:p.leftNodesCount),w=Cn(null===(u=e.abstract)||void 0===u?void 0:u.rightNodes,null===(A=e.abstract)||void 0===A?void 0:A.rightNodesCount),y="rollback"===v?Tn(e.rollBackIdInfo).abstract:null;return{category:g,action:f,leftObjectId:k,rightObjectId:N,nodes:x,leftNodes:L,rightNodes:w,abstract:wn.i18n.t(null!==(b=On[v])&&void 0!==b?b:v,{category:g,nodes:x,leftNodes:L,rightNodes:w,nodeChanges:null===(m=e.abstract)||void 0===m||null===(m=m.nodeChanges)||void 0===m?void 0:m.join(", "),relationChanges:null===(E=e.abstract)||void 0===E||null===(E=E.relationChanges)||void 0===E?void 0:E.join(", "),leftObjectId:k,rightObjectId:N,rollbackAbstract:y}),rollbackAbstract:y}}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 wn.i18n.t("".concat(kn,":").concat(fn.NODE),{nodes:e.join(a),context:t>e.length?"ellipsis":void 0,count:t})}(0,gn.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 Mn,{defineElement:_n,property:Sn,event:Dn}=(0,R.createDecorators)(),Pn=(0,T.wrapBrick)("eo-button"),Fn=(0,T.wrapBrick)("eo-link"),Un=(0,T.wrapBrick)("eo-icon"),Wn=(0,T.wrapBrick)("eo-easyops-avatar"),Bn=(0,T.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",beforeVisibleChange:"before.visible.change"}),Kn=new WeakMap,jn=new WeakMap,zn=new WeakMap,Gn=new WeakSet,Vn=new WeakMap,Yn=new WeakMap,Hn=new WeakMap,Xn=new WeakMap,qn=new WeakMap;class Jn extends T.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,Gn),(0,k.A)(this,Kn,Qa(this)),(0,k.A)(this,jn,(Za(this),en(this))),(0,k.A)(this,zn,(tn(this),an(this))),(0,k.A)(this,Vn,(rn(this),e=>{(0,x.A)(Gn,this,nn).emit(e)})),(0,k.A)(this,Yn,ln(this)),(0,k.A)(this,Hn,(hn(this),e=>{(0,x.A)(Gn,this,sn).emit(e)})),(0,k.A)(this,Xn,dn(this)),(0,k.A)(this,qn,(An(this),()=>{(0,x.A)(Gn,this,pn).emit()}))}get appId(){return(0,w.A)(Kn,this)}set appId(e){(0,L.A)(Kn,this,e)}get projectId(){return(0,w.A)(jn,this)}set projectId(e){(0,L.A)(jn,this,e)}render(){return I().createElement($n,{appId:this.appId,projectId:this.projectId,onHistoryItemClick:(0,w.A)(Vn,this),onRollback:(0,w.A)(Hn,this),onRollbackAll:(0,w.A)(qn,this)})}}function $n(e){var{appId:t,onHistoryItemClick:a,onRollback:n,onRollbackAll:i}=e,{t:o}=(0,gn.useTranslation)(kn),[r,l]=(0,O.useState)(!1),[s,c]=(0,O.useState)(!0),[h,d]=(0,O.useState)(!1),[p,u]=(0,O.useState)([]),A=(0,O.useRef)(""),b=e=>{l(!0),Ln(t,{ts:A.current,limit:20}).then((t=>{u((a=>{var n=t.list.map((e=>(0,bn.A)((0,bn.A)({},e),{},{translation:Tn(e)})));return e?n:a.concat(n)})),A.current=t.ts,d(t.list.length<20),c(t.list.length<20)})).catch((e=>{(0,De.handleHttpError)(e)})).finally((()=>{l(!1)}))};return I().createElement(Bn,{placement:"bottom",trigger:"click",arrow:!0,arrowColor:"var(--color-fill-bg-container-4)",beforeVisibleChange:e=>{e.detail&&(c(!0),d(!1),u([]),A.current="",b(!0))}},I().createElement(Pn,{slot:"anchor",shape:"circle",className:"history-action",icon:{lib:"antd",icon:"history",theme:"outlined"}}),I().createElement("div",null,I().createElement("div",{className:"history-title"},"History"),I().createElement("div",{className:"history-list"},p.length?I().createElement(I().Fragment,null,p.map(((e,t)=>I().createElement(Qn,{key:"".concat(e.uniqueKey,"-").concat(e.ts),data:e,enableRollback:0!==t&&"rollback"!==e.action,current:0===t,onHistoryItemClick:a,onRollback:n}))),!s&&I().createElement("span",{className:"load-more-container"},I().createElement(Fn,{className:"load-more",disabled:r,onClick:()=>b()},o(fn.LOAD_MORE))),h&&I().createElement("span",{className:"end-container"},"The End",I().createElement(Un,{className:"rollback-all",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>i()}))):I().createElement("div",{className:"empty"},o(r?fn.LOADING:fn.NO_DATA))),I().createElement("slot",null)))}function Qn(e){var{data:t,enableRollback:a,current:n,onHistoryItemClick:i,onRollback:o}=e,r=En()(Number(t.ts)/1e6),l=En().duration(r.diff(En()())),s=l.days()<=-1?r.format("YYYY-MM-DD HH:mm:ss"):l.humanize(!0,{ss:0,s:60,m:60,h:24});return I().createElement("div",{className:"item-container"},I().createElement("div",{className:"item-title"},I().createElement("div",{className:"title-left",onClick:()=>i((0,bn.A)((0,bn.A)({},t),{},{enableRollback:a}))},I().createElement("div",{className:"topic",title:t.translation.abstract},t.translation.abstract),n&&I().createElement("div",{className:"branch"},"(current)")),I().createElement("div",{className:"title-right"},a&&I().createElement(Un,{className:"rollback",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>o(t)}))),I().createElement("div",{className:"item-info"},I().createElement(Wn,{className:"avatar",nameOrInstanceId:t.user,size:"xs"}),I().createElement("div",{className:"time"},s),I().createElement("div",{className:"operator"},t.user)))}Ja=Jn,({e:[Qa,Za,en,tn,an,nn,on,rn,ln,sn,cn,hn,dn,pn,un,An],c:[Mn,$a]}=(0,y.A)(Ja,[_n("visual-builder.workbench-history-action",{styleTexts:[vn.A]})],[[Sn(),1,"appId"],[Sn(),1,"projectId"],[Dn({type:"history.item.click"}),1,"historyItemClickEvent",e=>(0,w.A)(zn,e),(e,t)=>(0,L.A)(zn,e,t)],[Dn({type:"rollback"}),1,"rollbackEvent",e=>(0,w.A)(Yn,e),(e,t)=>(0,L.A)(Yn,e,t)],[Dn({type:"rollback.all"}),1,"rollbackAllEvent",e=>(0,w.A)(Xn,e),(e,t)=>(0,L.A)(Xn,e,t)]],0,(e=>qn.has((0,N.A)(e))),T.ReactNextElement)),$a();var Zn,ei,ti,ai,ni,ii,oi,ri,li,si,ci,hi,di,pi,ui,Ai,bi,mi,Ei,vi,gi,fi,ki,Ni,xi,Li,wi,yi,Oi,Ii,Ri,Ti,Ci,Mi,_i,Si,Di,Pi,Fi,Ui,Wi,Bi,Ki,ji,zi,Gi,Vi,Yi,Hi,Xi,qi,Ji,$i,Qi,Zi,eo=a(2381),{defineElement:to,property:ao,event:no}=(0,R.createDecorators)(),io=(0,T.wrapBrick)("eo-icon"),oo=(0,T.wrapBrick)("eo-tooltip"),ro=new Set,lo=new WeakMap,so=new WeakMap,co=new WeakMap,ho=new WeakMap,po=new WeakMap,uo=new WeakMap,Ao=new WeakMap,bo=new WeakMap,mo=new WeakMap,Eo=new WeakSet,vo=new WeakMap,go=new WeakMap,fo=new WeakMap,ko=new WeakMap,No=new WeakMap,xo=new WeakMap,Lo=new WeakMap,wo=new WeakMap,yo=new WeakMap,Oo=new WeakMap,Io=new WeakMap,Ro=new WeakMap,To=new WeakMap,Co=new WeakMap,Mo=new WeakMap,_o=new WeakMap,So=new WeakMap;class Do extends T.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,Eo),(0,k.A)(this,lo,ti(this)),(0,k.A)(this,so,(ai(this),ni(this))),(0,k.A)(this,co,(ii(this),oi(this))),(0,k.A)(this,ho,(ri(this),li(this))),(0,k.A)(this,po,(si(this),ci(this))),(0,k.A)(this,uo,(hi(this),di(this))),(0,k.A)(this,Ao,(pi(this),ui(this))),(0,k.A)(this,bo,(Ai(this),bi(this))),(0,k.A)(this,mo,(mi(this),Ei(this))),(0,k.A)(this,vo,(fi(this),e=>{(0,x.A)(Eo,this,vi).emit(e)})),(0,k.A)(this,go,ki(this)),(0,k.A)(this,fo,(Li(this),e=>{(0,x.A)(Eo,this,Ni).emit(e)})),(0,k.A)(this,ko,wi(this)),(0,k.A)(this,No,(Ii(this),()=>{(0,x.A)(Eo,this,yi).emit()})),(0,k.A)(this,xo,Ri(this)),(0,k.A)(this,Lo,(Mi(this),()=>{(0,x.A)(Eo,this,Ti).emit()})),(0,k.A)(this,wo,_i(this)),(0,k.A)(this,yo,(Pi(this),e=>{(0,x.A)(Eo,this,Si).emit(e)})),(0,k.A)(this,Oo,Fi(this)),(0,k.A)(this,Io,(Bi(this),()=>{(0,x.A)(Eo,this,Ui).emit()})),(0,k.A)(this,Ro,Ki(this)),(0,k.A)(this,To,(Gi(this),e=>{(0,x.A)(Eo,this,ji).emit(e)})),(0,k.A)(this,Co,Vi(this)),(0,k.A)(this,Mo,(Xi(this),e=>{(0,x.A)(Eo,this,Yi).emit(e)})),(0,k.A)(this,_o,qi(this)),(0,k.A)(this,So,(Qi(this),e=>{(0,x.A)(Eo,this,Ji).emit(e)}))}get label(){return(0,w.A)(lo,this)}set label(e){(0,L.A)(lo,this,e)}get type(){return(0,w.A)(so,this)}set type(e){(0,L.A)(so,this,e)}get external(){return(0,w.A)(co,this)}set external(e){(0,L.A)(co,this,e)}get subNodes(){return(0,w.A)(ho,this)}set subNodes(e){(0,L.A)(ho,this,e)}get active(){return(0,w.A)(po,this)}set active(e){(0,L.A)(po,this,e)}get notSynced(){return(0,w.A)(uo,this)}set notSynced(e){(0,L.A)(uo,this,e)}get disableChildAppend(){return(0,w.A)(Ao,this)}set disableChildAppend(e){(0,L.A)(Ao,this,e)}get autoFocusOnce(){return(0,w.A)(bo,this)}set autoFocusOnce(e){(0,L.A)(bo,this,e)}render(){return I().createElement(Po,{label:this.label,type:this.type,external:this.external,subNodes:this.subNodes,autoFocusOnce:this.autoFocusOnce,onLabelEditingChange:(0,w.A)(vo,this),onLabelChange:(0,w.A)(fo,this),onNodeClick:(0,w.A)(No,this),onNodeDoubleClick:(0,w.A)(Lo,this),onNodeContextMenu:(0,w.A)(yo,this),onChildAppend:(0,w.A)(Io,this),onExternalClick:(0,w.A)(To,this),onSubNodeDoubleClick:(0,w.A)(Mo,this),onSubNodeContextMenu:(0,w.A)(So,this)})}}function Po(e){var t,{label:a,type:n,external:i,subNodes:o,autoFocusOnce:r,onLabelEditingChange:l,onLabelChange:s,onNodeClick:c,onNodeDoubleClick:h,onNodeContextMenu:d,onChildAppend:p,onExternalClick:u,onSubNodeDoubleClick:A,onSubNodeContextMenu:b}=e,m="board"===n?"board":"page",[E,v]=(0,O.useState)(a),[g,f]=(0,O.useState)(!1),k=(0,O.useRef)(!1),[N,x]=(0,O.useState)(!1),L=(0,O.useRef)(null);(0,O.useEffect)((()=>{v(a)}),[a]);var w=(0,O.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),f(!0)}),[]);(0,O.useEffect)((()=>{r&&!ro.has(r)&&(ro.add(r),setTimeout((()=>{f(!0)}),1))}),[r]),(0,O.useEffect)((()=>{var e,t;g&&(null===(e=L.current)||void 0===e||e.focus({preventScroll:!0}),null===(t=L.current)||void 0===t||t.select())}),[g]),(0,O.useEffect)((()=>{k.current?null==l||l(g):k.current=!0}),[g,l]);var y=(0,O.useCallback)((e=>{v(e.target.value)}),[]),R=(0,O.useCallback)((e=>{var t,a=e.key||e.keyCode||e.which;"Enter"!==a&&13!==a||null===(t=L.current)||void 0===t||t.blur()}),[]),T=(0,O.useCallback)((()=>{f(!1),x(!0)}),[]);(0,O.useEffect)((()=>{N&&(null==s||s(E),x(!1))}),[E,s,N]);var C=(0,O.useCallback)((e=>{e.stopPropagation(),null==p||p()}),[p]),M=(0,O.useCallback)((e=>{e.stopPropagation(),null==u||u(i)}),[i,u]),_=(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 I().createElement(I().Fragment,null,I().createElement("div",{className:S()("node",m,{"editing-label":g}),style:{height:"board"===m?70:130+D},onClick:c,onDoubleClick:h,onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==d||d({clientX:e.clientX,clientY:e.clientY})}},I().createElement("input",{className:"label-input",value:E,ref:L,onChange:y,onKeyDown:R,onBlur:T,onDoubleClick:_,onContextMenu:_,onMouseDown:_}),I().createElement("div",{className:"label",onDoubleClick:w,onMouseDown:_},E),"board"===m?I().createElement("div",{className:"icon-container"},I().createElement(io,{lib:"antd",icon:"unordered-list"})):I().createElement("div",{className:"thumbnail-container",style:{height:98+D}},I().createElement("div",{className:"thumbnail-placeholder"},I().createElement(io,{lib:"antd",icon:"ellipsis"})),i&&I().createElement("div",{className:"external",onClick:M,onDoubleClick:_,onMouseDown:_},I().createElement(io,{lib:"antd",icon:"desktop"}),I().createElement("span",{className:"external-label"},i.label)),null!=o&&o.length?I().createElement("div",{className:"sub-nodes"},o.map((e=>I().createElement(Fo,{key:e.id,subNode:e,onSubNodeDoubleClick:A,onSubNodeContextMenu:b})))):null)),I().createElement("div",{className:"add-button",role:"button",onClick:C,onMouseDown:_},I().createElement(io,{lib:"fa",icon:"plus"})))}function Fo(e){var{subNode:t,onSubNodeDoubleClick:a,onSubNodeContextMenu:n}=e;return I().createElement(oo,{key:t.id,content:t.label},I().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})}},I().createElement("div",{className:"sub-node-skeleton-title"}),I().createElement("div",{className:"sub-node-skeleton-content"}),I().createElement("div",{className:"sub-node-skeleton-button"})))}Zn=Do,({e:[ti,ai,ni,ii,oi,ri,li,si,ci,hi,di,pi,ui,Ai,bi,mi,Ei,vi,gi,fi,ki,Ni,xi,Li,wi,yi,Oi,Ii,Ri,Ti,Ci,Mi,_i,Si,Di,Pi,Fi,Ui,Wi,Bi,Ki,ji,zi,Gi,Vi,Yi,Hi,Xi,qi,Ji,$i,Qi],c:[Zi,ei]}=(0,y.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,w.A)(mo,e),(e,t)=>(0,L.A)(mo,e,t)],[no({type:"label.change"}),1,"labelChange",e=>(0,w.A)(go,e),(e,t)=>(0,L.A)(go,e,t)],[no({type:"node.click"}),1,"nodeClick",e=>(0,w.A)(ko,e),(e,t)=>(0,L.A)(ko,e,t)],[no({type:"node.dblclick"}),1,"nodeDoubleClick",e=>(0,w.A)(xo,e),(e,t)=>(0,L.A)(xo,e,t)],[no({type:"node.contextmenu"}),1,"nodeContextMenu",e=>(0,w.A)(wo,e),(e,t)=>(0,L.A)(wo,e,t)],[no({type:"child.append"}),1,"childAppend",e=>(0,w.A)(Oo,e),(e,t)=>(0,L.A)(Oo,e,t)],[no({type:"external.click"}),1,"externalClick",e=>(0,w.A)(Ro,e),(e,t)=>(0,L.A)(Ro,e,t)],[no({type:"subNode.dblclick"}),1,"subNodeDoubleClick",e=>(0,w.A)(Co,e),(e,t)=>(0,L.A)(Co,e,t)],[no({type:"subNode.contextmenu"}),1,"subNodeContextMenu",e=>(0,w.A)(_o,e),(e,t)=>(0,L.A)(_o,e,t)]],0,(e=>So.has((0,N.A)(e))),T.ReactNextElement)),ei();var Uo,Wo,Bo,Ko,jo,zo,Go,Vo,Yo,Ho,Xo=a(4845),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,R.createDecorators)(),er=new WeakMap,tr=new WeakSet,ar=new WeakMap,nr=new WeakMap,ir=new WeakMap,or=new WeakMap,rr=new WeakMap,lr=new WeakMap;class sr extends T.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,tr),(0,k.A)(this,er,(Wo(this),!1)),(0,k.A)(this,ar,"normal"),(0,k.A)(this,nr,!1),(0,k.A)(this,ir,Bo(this)),(0,k.A)(this,or,(Ko(this),jo(this))),(0,k.A)(this,rr,(zo(this),Go(this))),(0,k.A)(this,lr,(Vo(this),Yo(this))),Ho(this)}get isFormItemElement(){return!0}set validateState(e){$o(tr,pr,this,e),this._render()}get validateState(){return(0,x.A)(tr,this,dr)}set notRender(e){this.hidden=e,$o(tr,hr,this,e),this._render()}get notRender(){return(0,x.A)(tr,this,cr)}get $bindFormItem(){return(0,x.A)(tr,this,ur)}set $bindFormItem(e){$o(tr,Ar,this,e),this._render()}get helpBrick(){return(0,w.A)(ir,this)}set helpBrick(e){(0,L.A)(ir,this,e)}get labelBrick(){return(0,w.A)(or,this)}set labelBrick(e){(0,L.A)(or,this,e)}get labelCol(){return(0,w.A)(rr,this)}set labelCol(e){(0,L.A)(rr,this,e)}get wrapperCol(){return(0,w.A)(lr,this)}set wrapperCol(e){(0,L.A)(lr,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,w.A)(er,e)}function hr(e,t){(0,L.A)(er,e,t)}function dr(e){return(0,w.A)(ar,e)}function pr(e,t){(0,L.A)(ar,e,t)}function ur(e){return(0,w.A)(nr,e)}function Ar(e,t){(0,L.A)(nr,e,t)}Uo=sr,[Bo,Ko,jo,zo,Go,Vo,Yo,Ho,Wo]=(0,y.A)(Uo,[],[[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,T.ReactNextElement).e;var br=function(){var e=(0,Nn.A)((function*(e,t){return(yield xn.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)}}(),mr=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}({}),Er="bricks/visual-builder/contract-select",vr={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,gn.initializeReactI18n)(Er,vr);var gr,fr,kr,Nr,xr,Lr,wr,yr,Or,Ir,Rr,Tr,Cr,Mr,_r,Sr,Dr=(0,T.wrapBrick)("eo-icon"),Pr=(0,T.wrapBrick)("eo-input",{onChange:"change"});function Fr(e){var{itemsCount:t=20,onBlur:a}=e,[n,i]=(0,O.useState)(t),{t:o}=(0,gn.useTranslation)(Er),[r,l]=(0,O.useState)(!1);return I().createElement("div",{className:"options-tips",slot:e.slot},o(mr.CONTRACT_OPTIONS_TIPS_PREFIX)," ",r?I().createElement(Pr,{autoFocus:!0,inputStyle:{width:65},value:String(n),onBlur:()=>{l(!1),null==a||a(n)},onChange:e=>{i(Number(e.detail))}}):I().createElement("span",null,n," ",I().createElement(Dr,{icon:"edit",lib:"antd",onClick:()=>{l(!0)}}))," ",o(mr.CONTRACT_OPTIONS_TIPS_SUFFIX))}(0,gn.initializeReactI18n)(Er,vr);var Ur,{defineElement:Wr,property:Br,event:Kr}=(0,R.createDecorators)(),jr=(0,T.wrapBrick)("eo-form-item"),zr=(0,T.wrapBrick)("eo-auto-complete",{onChange:"change"}),Gr=new WeakMap,Vr=new WeakMap,Yr=new WeakMap,Hr=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)?"":wn.i18n.t("".concat(Er,":").concat(mr.CONTRACT_VALIDATE_MESSAGE))}function el(e){var{value:t,inputStyle:a,validateState:n,suffix:i,onChange:o}=e,[r,l]=(0,O.useState)(),[s,c]=(0,O.useState)(20),h=function(e){var{pageSize:t=20,q:a=""}=e,[n,i]=(0,O.useState)([]),[o,r]=(0,O.useState)(a),[l,s]=(0,O.useState)(t);return(0,O.useEffect)((()=>{r(a)}),[a]),(0,O.useEffect)((()=>{s(t)}),[t]),(0,O.useEffect)((()=>{(0,Nn.A)((function*(){try{var{list:e}=yield br({page:1,pageSize:l,fullContractName:o},{interceptorParams:{ignoreLoadingBar:!0}});i(e)}catch(e){console.error(e),i([])}}))()}),[o,l]),n}({q:r,pageSize:s}),[d,p]=(0,O.useState)($r(t)),[u,A]=(0,O.useState)([]);(0,O.useEffect)((()=>{p($r(t))}),[t]);var b=(0,O.useMemo)((()=>(0,ra.debounce)((e=>{l(e)}),200)),[]);return I().createElement("div",{className:"contract-wrapper"},I().createElement(zr,{className:"contract-selector",options:null==h?void 0:h.map((e=>({value:e.fullContractName,label:e.fullContractName}))),value:d.name,inputStyle:a,validateState:n,onChange:e=>{var t=e.detail;if(Qr(t))p($r(t)),null==o||o(t);else{var a,n,i=null===(a=h.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:"";A(i),p({name:t,version:r}),null==o||o("".concat(t,":").concat(r))}b(t)}},I().createElement(Fr,{onBlur:e=>c(e),slot:"options-toolbar"})),I().createElement(zr,{className:"version-selector",value:d.version,validateState:n,options:null==u?void 0:u.map((e=>({value:e,label:e}))),onChange:e=>{var t=e.detail;p({name:d.name,version:t}),null==o||o("".concat(d.name,":").concat(t))}}),null!=i&&i.useBrick?I().createElement(Xo.ReactUseMultipleBricks,i):null)}gr=class extends sr{constructor(){super(...arguments),(0,f.A)(this,Jr),(0,k.A)(this,Gr,kr(this)),(0,k.A)(this,Vr,(Nr(this),xr(this))),(0,k.A)(this,Yr,(Lr(this),wr(this))),(0,k.A)(this,Hr,(yr(this),Or(this))),(0,k.A)(this,Xr,(Ir(this),Rr(this))),(0,k.A)(this,qr,(Tr(this),Cr(this))),(0,ee.A)(this,"handleChange",(Sr(this),e=>{(0,x.A)(Jr,this,Mr).emit(e)}))}get name(){return(0,w.A)(Gr,this)}set name(e){(0,L.A)(Gr,this,e)}get required(){return(0,w.A)(Vr,this)}set required(e){(0,L.A)(Vr,this,e)}get label(){return(0,w.A)(Yr,this)}set label(e){(0,L.A)(Yr,this,e)}get value(){return(0,w.A)(Hr,this)}set value(e){(0,L.A)(Hr,this,e)}get suffix(){return(0,w.A)(Xr,this)}set suffix(e){(0,L.A)(Xr,this,e)}render(){return I().createElement(jr,{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},I().createElement(el,{value:this.value,suffix:this.suffix,validateState:this.validateState,onChange:this.handleChange}))}},({e:[kr,Nr,xr,Lr,wr,yr,Or,Ir,Rr,Tr,Cr,Mr,_r,Sr],c:[Ur,fr]}=(0,y.A)(gr,[Wr("visual-builder.contract-select",{styleTexts:[qo.A]})],[[Br(),1,"name"],[Br({type:Boolean}),1,"required"],[Br(),1,"label"],[Br({attribute:!1}),1,"value"],[Br({attribute:!1}),1,"suffix"],[Kr({type:"change"}),1,"changeEvent",e=>(0,w.A)(qr,e),(e,t)=>(0,L.A)(qr,e,t)]],0,(e=>Jr.has((0,N.A)(e))),sr)),fr()},6213:(e,t,a)=>{a.d(t,{A:()=>l});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 l=r.toString()},2381:(e,t,a)=>{a.d(t,{A:()=>l});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 l=r.toString()},9765:(e,t,a)=>{a.d(t,{A:()=>l});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 l=r.toString()},3430:(e,t,a)=>{a.d(t,{A:()=>l});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 l=r.toString()},5292:(e,t,a)=>{a.d(t,{A:()=>l});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 l=r.toString()},1361:(e,t,a)=>{a.d(t,{A:()=>l});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 l=r.toString()},7180:(e,t,a)=>{a.d(t,{A:()=>l});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 l=r.toString()},2150:(e,t,a)=>{a.d(t,{A:()=>l});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 l=r.toString()}}]);
|
|
3
|
-
//# sourceMappingURL=5123.6c1a26ba.js.map
|