@next-bricks/ai-portal 0.50.0 → 0.50.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/bricks.json +1 -1
  2. package/dist/chunks/2142.c02a98d9.js +2 -0
  3. package/dist/chunks/2142.c02a98d9.js.map +1 -0
  4. package/dist/chunks/3735.0389cba2.js +15 -0
  5. package/dist/chunks/3735.0389cba2.js.map +1 -0
  6. package/dist/chunks/3832.9b48b5f5.js +2 -0
  7. package/dist/chunks/3832.9b48b5f5.js.map +1 -0
  8. package/dist/chunks/6201.01557568.js +2 -0
  9. package/dist/chunks/6201.01557568.js.map +1 -0
  10. package/dist/chunks/7580.5dca4f97.js +3 -0
  11. package/dist/chunks/7580.5dca4f97.js.map +1 -0
  12. package/dist/chunks/8414.8b8390cb.js +2 -0
  13. package/dist/chunks/8414.8b8390cb.js.map +1 -0
  14. package/dist/chunks/{8717.debf076f.js → 8717.4f49d4f6.js} +2 -2
  15. package/dist/chunks/{8717.debf076f.js.map → 8717.4f49d4f6.js.map} +1 -1
  16. package/dist/chunks/8889.746f8129.js +3 -0
  17. package/dist/chunks/8889.746f8129.js.map +1 -0
  18. package/dist/chunks/{cruise-canvas.f4b9384f.js → cruise-canvas.3600fc3c.js} +2 -2
  19. package/dist/chunks/{cruise-canvas.f4b9384f.js.map → cruise-canvas.3600fc3c.js.map} +1 -1
  20. package/dist/chunks/{elevo-sidebar.d95cf869.js → elevo-sidebar.cbec3024.js} +3 -3
  21. package/dist/chunks/elevo-sidebar.cbec3024.js.map +1 -0
  22. package/dist/chunks/main.bd40fdc0.js +2 -0
  23. package/dist/chunks/main.bd40fdc0.js.map +1 -0
  24. package/dist/chunks/{preview-container.8e831edb.js → preview-container.631389f7.js} +2 -2
  25. package/dist/chunks/{preview-container.8e831edb.js.map → preview-container.631389f7.js.map} +1 -1
  26. package/dist/chunks/show-case.be5d82fd.js +2 -0
  27. package/dist/chunks/show-case.be5d82fd.js.map +1 -0
  28. package/dist/index.546d6b1e.js +2 -0
  29. package/dist/index.546d6b1e.js.map +1 -0
  30. package/dist-types/cruise-canvas/interfaces.d.ts +1 -5
  31. package/dist-types/elevo-sidebar/bricks.d.ts +3 -1
  32. package/dist-types/shared/CreatedView/CreatedView.d.ts +2 -1
  33. package/dist-types/shared/CreatedView/ViewToolbar.d.ts +7 -0
  34. package/package.json +2 -2
  35. package/dist/chunks/4957.f878df32.js +0 -3
  36. package/dist/chunks/4957.f878df32.js.map +0 -1
  37. package/dist/chunks/5521.ef48a4d3.js +0 -2
  38. package/dist/chunks/5521.ef48a4d3.js.map +0 -1
  39. package/dist/chunks/6725.024b973c.js +0 -2
  40. package/dist/chunks/6725.024b973c.js.map +0 -1
  41. package/dist/chunks/7245.597bf395.js +0 -2
  42. package/dist/chunks/7245.597bf395.js.map +0 -1
  43. package/dist/chunks/7589.a2830718.js +0 -2
  44. package/dist/chunks/7589.a2830718.js.map +0 -1
  45. package/dist/chunks/8882.1dd288fd.js +0 -3
  46. package/dist/chunks/8882.1dd288fd.js.map +0 -1
  47. package/dist/chunks/8889.d377e773.js +0 -3
  48. package/dist/chunks/8889.d377e773.js.map +0 -1
  49. package/dist/chunks/9360.96ec6cfa.js +0 -2
  50. package/dist/chunks/9360.96ec6cfa.js.map +0 -1
  51. package/dist/chunks/elevo-sidebar.d95cf869.js.map +0 -1
  52. package/dist/chunks/main.b7a210d1.js +0 -2
  53. package/dist/chunks/main.b7a210d1.js.map +0 -1
  54. package/dist/chunks/show-case.22cdff4b.js +0 -2
  55. package/dist/chunks/show-case.22cdff4b.js.map +0 -1
  56. package/dist/index.83b29e4e.js +0 -2
  57. package/dist/index.83b29e4e.js.map +0 -1
  58. /package/dist/chunks/{4957.f878df32.js.LICENSE.txt → 3735.0389cba2.js.LICENSE.txt} +0 -0
  59. /package/dist/chunks/{8882.1dd288fd.js.LICENSE.txt → 7580.5dca4f97.js.LICENSE.txt} +0 -0
  60. /package/dist/chunks/{8889.d377e773.js.LICENSE.txt → 8889.746f8129.js.LICENSE.txt} +0 -0
  61. /package/dist/chunks/{elevo-sidebar.d95cf869.js.LICENSE.txt → elevo-sidebar.cbec3024.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunks/8882.1dd288fd.js","mappings":";2IA4DAA,EAAOC,QAjBP,SAAgBC,GACd,GAAwB,oBAAbC,SACT,MAAO,CACLC,OAAQ,WAAmB,EAC3BC,OAAQ,WAAmB,GAG/B,IAAIC,EAAeJ,EAAQK,mBAAmBL,GAC9C,MAAO,CACLE,OAAQ,SAAgBI,IAjD5B,SAAeF,EAAcJ,EAASM,GACpC,IAAIC,EAAM,GACND,EAAIE,WACND,GAAO,cAAcE,OAAOH,EAAIE,SAAU,QAExCF,EAAII,QACNH,GAAO,UAAUE,OAAOH,EAAII,MAAO,OAErC,IAAIC,OAAiC,IAAdL,EAAIM,MACvBD,IACFJ,GAAO,SAASE,OAAOH,EAAIM,MAAMC,OAAS,EAAI,IAAIJ,OAAOH,EAAIM,OAAS,GAAI,OAE5EL,GAAOD,EAAIC,IACPI,IACFJ,GAAO,KAELD,EAAII,QACNH,GAAO,KAELD,EAAIE,WACND,GAAO,KAET,IAAIO,EAAYR,EAAIQ,UAChBA,GAA6B,oBAATC,OACtBR,GAAO,uDAAuDE,OAAOM,KAAKC,SAASC,mBAAmBC,KAAKC,UAAUL,MAAe,QAKtId,EAAQoB,kBAAkBb,EAAKH,EAAcJ,EAAQA,QACvD,CAoBMqB,CAAMjB,EAAcJ,EAASM,EAC/B,EACAH,OAAQ,YArBZ,SAA4BC,GAE1B,GAAgC,OAA5BA,EAAakB,WACf,OAAO,EAETlB,EAAakB,WAAWC,YAAYnB,EACtC,CAgBMoB,CAAmBpB,EACrB,EAEJ,6DCrDWqB,EAAwC,WACjD,IAAIC,GAAO,QAAkB,UAAWC,EAAUC,EAAM5B,GACtD,aAA6E,EAAA6B,KAAKC,KAAK,oDAAoDrB,OAAOkB,EAA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AIoQ,EAAO,CAAC,EA+BZ7W,EAAOC,QAPP,SAA0B6W,EAAQC,GAChC,IAAIrP,EAtBN,SAAmBA,GACjB,QAA4B,IAAjBmP,EAAKnP,GAAyB,CACvC,IAAIsP,EAAc7W,SAAS8W,cAAcvP,GAGzC,GAAIwP,OAAOC,mBAAqBH,aAAuBE,OAAOC,kBAC5D,IAGEH,EAAcA,EAAYI,gBAAgBC,IAC5C,CAAE,MAAO3M,GAEPsM,EAAc,IAChB,CAEFH,EAAKnP,GAAUsP,CACjB,CACA,OAAOH,EAAKnP,EACd,CAIe4P,CAAUR,GACvB,IAAKpP,EACH,MAAM,IAAIrD,MAAM,2GAElBqD,EAAOoO,YAAYiB,EACrB,aCvBA/W,EAAOC,QANP,SAA4BC,GAC1B,IAAIqX,EAAUpX,SAASqX,cAAc,SAGrC,OAFAtX,EAAQuX,cAAcF,EAASrX,EAAQwX,YACvCxX,EAAQ4W,OAAOS,EAASrX,EAAQA,SACzBqX,CACT","sources":["webpack:///../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack:///../../node_modules/@next-api-sdk/cmdb-sdk/dist/esm/api/cmdb/instance/postSearchV3.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack:///../../node_modules/comlink/dist/esm/comlink.mjs","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack:///../../node_modules/@next-api-sdk/cmdb-sdk/dist/esm/api/cmdb/instance/getDetail.js","webpack:///../../node_modules/@babel/types/lib/index.js","webpack:///../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack:///../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack:///../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack:///../../node_modules/style-loader/dist/runtime/insertStyleElement.js"],"sourcesContent":["\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport { http } from \"@next-core/http\";\n/**\n * @description 搜索实例V3 (支持多属性排序)\n * @endpoint POST /v3/object/:objectId/instance/_search\n */\nexport var InstanceApi_postSearchV3 = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (objectId, data, options) {\n return (/**! @contract easyops.api.cmdb.instance.PostSearchV3@1.1.0 */(yield http.post(\"api/gateway/cmdb.instance.PostSearchV3/v3/object/\".concat(objectId, \"/instance/_search\"), data, options)).data\n );\n });\n return function InstanceApi_postSearchV3(_x, _x2, _x3) {\n return _ref.apply(this, arguments);\n };\n}();\n//# sourceMappingURL=postSearchV3.js.map","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}","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nconst proxyMarker = Symbol(\"Comlink.proxy\");\nconst createEndpoint = Symbol(\"Comlink.endpoint\");\nconst releaseProxy = Symbol(\"Comlink.releaseProxy\");\nconst finalizer = Symbol(\"Comlink.finalizer\");\nconst throwMarker = Symbol(\"Comlink.thrown\");\nconst isObject = (val) => (typeof val === \"object\" && val !== null) || typeof val === \"function\";\n/**\n * Internal transfer handle to handle objects marked to proxy.\n */\nconst proxyTransferHandler = {\n canHandle: (val) => isObject(val) && val[proxyMarker],\n serialize(obj) {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port1);\n return [port2, [port2]];\n },\n deserialize(port) {\n port.start();\n return wrap(port);\n },\n};\n/**\n * Internal transfer handler to handle thrown exceptions.\n */\nconst throwTransferHandler = {\n canHandle: (value) => isObject(value) && throwMarker in value,\n serialize({ value }) {\n let serialized;\n if (value instanceof Error) {\n serialized = {\n isError: true,\n value: {\n message: value.message,\n name: value.name,\n stack: value.stack,\n },\n };\n }\n else {\n serialized = { isError: false, value };\n }\n return [serialized, []];\n },\n deserialize(serialized) {\n if (serialized.isError) {\n throw Object.assign(new Error(serialized.value.message), serialized.value);\n }\n throw serialized.value;\n },\n};\n/**\n * Allows customizing the serialization of certain values.\n */\nconst transferHandlers = new Map([\n [\"proxy\", proxyTransferHandler],\n [\"throw\", throwTransferHandler],\n]);\nfunction isAllowedOrigin(allowedOrigins, origin) {\n for (const allowedOrigin of allowedOrigins) {\n if (origin === allowedOrigin || allowedOrigin === \"*\") {\n return true;\n }\n if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {\n return true;\n }\n }\n return false;\n}\nfunction expose(obj, ep = globalThis, allowedOrigins = [\"*\"]) {\n ep.addEventListener(\"message\", function callback(ev) {\n if (!ev || !ev.data) {\n return;\n }\n if (!isAllowedOrigin(allowedOrigins, ev.origin)) {\n console.warn(`Invalid origin '${ev.origin}' for comlink proxy`);\n return;\n }\n const { id, type, path } = Object.assign({ path: [] }, ev.data);\n const argumentList = (ev.data.argumentList || []).map(fromWireValue);\n let returnValue;\n try {\n const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);\n const rawValue = path.reduce((obj, prop) => obj[prop], obj);\n switch (type) {\n case \"GET\" /* MessageType.GET */:\n {\n returnValue = rawValue;\n }\n break;\n case \"SET\" /* MessageType.SET */:\n {\n parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);\n returnValue = true;\n }\n break;\n case \"APPLY\" /* MessageType.APPLY */:\n {\n returnValue = rawValue.apply(parent, argumentList);\n }\n break;\n case \"CONSTRUCT\" /* MessageType.CONSTRUCT */:\n {\n const value = new rawValue(...argumentList);\n returnValue = proxy(value);\n }\n break;\n case \"ENDPOINT\" /* MessageType.ENDPOINT */:\n {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port2);\n returnValue = transfer(port1, [port1]);\n }\n break;\n case \"RELEASE\" /* MessageType.RELEASE */:\n {\n returnValue = undefined;\n }\n break;\n default:\n return;\n }\n }\n catch (value) {\n returnValue = { value, [throwMarker]: 0 };\n }\n Promise.resolve(returnValue)\n .catch((value) => {\n return { value, [throwMarker]: 0 };\n })\n .then((returnValue) => {\n const [wireValue, transferables] = toWireValue(returnValue);\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n if (type === \"RELEASE\" /* MessageType.RELEASE */) {\n // detach and deactive after sending release response above.\n ep.removeEventListener(\"message\", callback);\n closeEndPoint(ep);\n if (finalizer in obj && typeof obj[finalizer] === \"function\") {\n obj[finalizer]();\n }\n }\n })\n .catch((error) => {\n // Send Serialization Error To Caller\n const [wireValue, transferables] = toWireValue({\n value: new TypeError(\"Unserializable return value\"),\n [throwMarker]: 0,\n });\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n });\n });\n if (ep.start) {\n ep.start();\n }\n}\nfunction isMessagePort(endpoint) {\n return endpoint.constructor.name === \"MessagePort\";\n}\nfunction closeEndPoint(endpoint) {\n if (isMessagePort(endpoint))\n endpoint.close();\n}\nfunction wrap(ep, target) {\n const pendingListeners = new Map();\n ep.addEventListener(\"message\", function handleMessage(ev) {\n const { data } = ev;\n if (!data || !data.id) {\n return;\n }\n const resolver = pendingListeners.get(data.id);\n if (!resolver) {\n return;\n }\n try {\n resolver(data);\n }\n finally {\n pendingListeners.delete(data.id);\n }\n });\n return createProxy(ep, pendingListeners, [], target);\n}\nfunction throwIfProxyReleased(isReleased) {\n if (isReleased) {\n throw new Error(\"Proxy has been released and is not useable\");\n }\n}\nfunction releaseEndpoint(ep) {\n return requestResponseMessage(ep, new Map(), {\n type: \"RELEASE\" /* MessageType.RELEASE */,\n }).then(() => {\n closeEndPoint(ep);\n });\n}\nconst proxyCounter = new WeakMap();\nconst proxyFinalizers = \"FinalizationRegistry\" in globalThis &&\n new FinalizationRegistry((ep) => {\n const newCount = (proxyCounter.get(ep) || 0) - 1;\n proxyCounter.set(ep, newCount);\n if (newCount === 0) {\n releaseEndpoint(ep);\n }\n });\nfunction registerProxy(proxy, ep) {\n const newCount = (proxyCounter.get(ep) || 0) + 1;\n proxyCounter.set(ep, newCount);\n if (proxyFinalizers) {\n proxyFinalizers.register(proxy, ep, proxy);\n }\n}\nfunction unregisterProxy(proxy) {\n if (proxyFinalizers) {\n proxyFinalizers.unregister(proxy);\n }\n}\nfunction createProxy(ep, pendingListeners, path = [], target = function () { }) {\n let isProxyReleased = false;\n const proxy = new Proxy(target, {\n get(_target, prop) {\n throwIfProxyReleased(isProxyReleased);\n if (prop === releaseProxy) {\n return () => {\n unregisterProxy(proxy);\n releaseEndpoint(ep);\n pendingListeners.clear();\n isProxyReleased = true;\n };\n }\n if (prop === \"then\") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, pendingListeners, {\n type: \"GET\" /* MessageType.GET */,\n path: path.map((p) => p.toString()),\n }).then(fromWireValue);\n return r.then.bind(r);\n }\n return createProxy(ep, pendingListeners, [...path, prop]);\n },\n set(_target, prop, rawValue) {\n throwIfProxyReleased(isProxyReleased);\n // FIXME: ES6 Proxy Handler `set` methods are supposed to return a\n // boolean. To show good will, we return true asynchronously ¯\\_(ツ)_/¯\n const [value, transferables] = toWireValue(rawValue);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"SET\" /* MessageType.SET */,\n path: [...path, prop].map((p) => p.toString()),\n value,\n }, transferables).then(fromWireValue);\n },\n apply(_target, _thisArg, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const last = path[path.length - 1];\n if (last === createEndpoint) {\n return requestResponseMessage(ep, pendingListeners, {\n type: \"ENDPOINT\" /* MessageType.ENDPOINT */,\n }).then(fromWireValue);\n }\n // We just pretend that `bind()` didn’t happen.\n if (last === \"bind\") {\n return createProxy(ep, pendingListeners, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"APPLY\" /* MessageType.APPLY */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n construct(_target, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"CONSTRUCT\" /* MessageType.CONSTRUCT */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n });\n registerProxy(proxy, ep);\n return proxy;\n}\nfunction myFlat(arr) {\n return Array.prototype.concat.apply([], arr);\n}\nfunction processArguments(argumentList) {\n const processed = argumentList.map(toWireValue);\n return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];\n}\nconst transferCache = new WeakMap();\nfunction transfer(obj, transfers) {\n transferCache.set(obj, transfers);\n return obj;\n}\nfunction proxy(obj) {\n return Object.assign(obj, { [proxyMarker]: true });\n}\nfunction windowEndpoint(w, context = globalThis, targetOrigin = \"*\") {\n return {\n postMessage: (msg, transferables) => w.postMessage(msg, targetOrigin, transferables),\n addEventListener: context.addEventListener.bind(context),\n removeEventListener: context.removeEventListener.bind(context),\n };\n}\nfunction toWireValue(value) {\n for (const [name, handler] of transferHandlers) {\n if (handler.canHandle(value)) {\n const [serializedValue, transferables] = handler.serialize(value);\n return [\n {\n type: \"HANDLER\" /* WireValueType.HANDLER */,\n name,\n value: serializedValue,\n },\n transferables,\n ];\n }\n }\n return [\n {\n type: \"RAW\" /* WireValueType.RAW */,\n value,\n },\n transferCache.get(value) || [],\n ];\n}\nfunction fromWireValue(value) {\n switch (value.type) {\n case \"HANDLER\" /* WireValueType.HANDLER */:\n return transferHandlers.get(value.name).deserialize(value.value);\n case \"RAW\" /* WireValueType.RAW */:\n return value.value;\n }\n}\nfunction requestResponseMessage(ep, pendingListeners, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n pendingListeners.set(id, resolve);\n if (ep.start) {\n ep.start();\n }\n ep.postMessage(Object.assign({ id }, msg), transfers);\n });\n}\nfunction generateUUID() {\n return new Array(4)\n .fill(0)\n .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))\n .join(\"-\");\n}\n\nexport { createEndpoint, expose, finalizer, proxy, proxyMarker, releaseProxy, transfer, transferHandlers, windowEndpoint, wrap };\n//# sourceMappingURL=comlink.mjs.map\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 _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport { http } from \"@next-core/http\";\n/**\n * @description 获取实例详情\n * @endpoint GET /object/:objectId/instance/:instanceId\n */\nexport var InstanceApi_getDetail = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (objectId, instanceId, params, options) {\n return (/**! @contract easyops.api.cmdb.instance.GetDetail@1.0.0 */(yield http.get(\"api/gateway/cmdb.instance.GetDetail/object/\".concat(objectId, \"/instance/\").concat(instanceId), _objectSpread(_objectSpread({}, options), {}, {\n params\n }))).data\n );\n });\n return function InstanceApi_getDetail(_x, _x2, _x3, _x4) {\n return _ref.apply(this, arguments);\n };\n}();\n//# sourceMappingURL=getDetail.js.map","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n react: true,\n assertNode: true,\n createTypeAnnotationBasedOnTypeof: true,\n createUnionTypeAnnotation: true,\n createFlowUnionType: true,\n createTSUnionType: true,\n cloneNode: true,\n clone: true,\n cloneDeep: true,\n cloneDeepWithoutLoc: true,\n cloneWithoutLoc: true,\n addComment: true,\n addComments: true,\n inheritInnerComments: true,\n inheritLeadingComments: true,\n inheritsComments: true,\n inheritTrailingComments: true,\n removeComments: true,\n ensureBlock: true,\n toBindingIdentifierName: true,\n toBlock: true,\n toComputedKey: true,\n toExpression: true,\n toIdentifier: true,\n toKeyAlias: true,\n toStatement: true,\n valueToNode: true,\n appendToMemberExpression: true,\n inherits: true,\n prependToMemberExpression: true,\n removeProperties: true,\n removePropertiesDeep: true,\n removeTypeDuplicates: true,\n getAssignmentIdentifiers: true,\n getBindingIdentifiers: true,\n getOuterBindingIdentifiers: true,\n getFunctionName: true,\n traverse: true,\n traverseFast: true,\n shallowEqual: true,\n is: true,\n isBinding: true,\n isBlockScoped: true,\n isImmutable: true,\n isLet: true,\n isNode: true,\n isNodesEquivalent: true,\n isPlaceholderType: true,\n isReferenced: true,\n isScope: true,\n isSpecifierDefault: true,\n isType: true,\n isValidES3Identifier: true,\n isValidIdentifier: true,\n isVar: true,\n matchesPattern: true,\n validate: true,\n buildMatchMemberExpression: true,\n __internal__deprecationWarning: true\n};\nObject.defineProperty(exports, \"__internal__deprecationWarning\", {\n enumerable: true,\n get: function () {\n return _deprecationWarning.default;\n }\n});\nObject.defineProperty(exports, \"addComment\", {\n enumerable: true,\n get: function () {\n return _addComment.default;\n }\n});\nObject.defineProperty(exports, \"addComments\", {\n enumerable: true,\n get: function () {\n return _addComments.default;\n }\n});\nObject.defineProperty(exports, \"appendToMemberExpression\", {\n enumerable: true,\n get: function () {\n return _appendToMemberExpression.default;\n }\n});\nObject.defineProperty(exports, \"assertNode\", {\n enumerable: true,\n get: function () {\n return _assertNode.default;\n }\n});\nObject.defineProperty(exports, \"buildMatchMemberExpression\", {\n enumerable: true,\n get: function () {\n return _buildMatchMemberExpression.default;\n }\n});\nObject.defineProperty(exports, \"clone\", {\n enumerable: true,\n get: function () {\n return _clone.default;\n }\n});\nObject.defineProperty(exports, \"cloneDeep\", {\n enumerable: true,\n get: function () {\n return _cloneDeep.default;\n }\n});\nObject.defineProperty(exports, \"cloneDeepWithoutLoc\", {\n enumerable: true,\n get: function () {\n return _cloneDeepWithoutLoc.default;\n }\n});\nObject.defineProperty(exports, \"cloneNode\", {\n enumerable: true,\n get: function () {\n return _cloneNode.default;\n }\n});\nObject.defineProperty(exports, \"cloneWithoutLoc\", {\n enumerable: true,\n get: function () {\n return _cloneWithoutLoc.default;\n }\n});\nObject.defineProperty(exports, \"createFlowUnionType\", {\n enumerable: true,\n get: function () {\n return _createFlowUnionType.default;\n }\n});\nObject.defineProperty(exports, \"createTSUnionType\", {\n enumerable: true,\n get: function () {\n return _createTSUnionType.default;\n }\n});\nObject.defineProperty(exports, \"createTypeAnnotationBasedOnTypeof\", {\n enumerable: true,\n get: function () {\n return _createTypeAnnotationBasedOnTypeof.default;\n }\n});\nObject.defineProperty(exports, \"createUnionTypeAnnotation\", {\n enumerable: true,\n get: function () {\n return _createFlowUnionType.default;\n }\n});\nObject.defineProperty(exports, \"ensureBlock\", {\n enumerable: true,\n get: function () {\n return _ensureBlock.default;\n }\n});\nObject.defineProperty(exports, \"getAssignmentIdentifiers\", {\n enumerable: true,\n get: function () {\n return _getAssignmentIdentifiers.default;\n }\n});\nObject.defineProperty(exports, \"getBindingIdentifiers\", {\n enumerable: true,\n get: function () {\n return _getBindingIdentifiers.default;\n }\n});\nObject.defineProperty(exports, \"getFunctionName\", {\n enumerable: true,\n get: function () {\n return _getFunctionName.default;\n }\n});\nObject.defineProperty(exports, \"getOuterBindingIdentifiers\", {\n enumerable: true,\n get: function () {\n return _getOuterBindingIdentifiers.default;\n }\n});\nObject.defineProperty(exports, \"inheritInnerComments\", {\n enumerable: true,\n get: function () {\n return _inheritInnerComments.default;\n }\n});\nObject.defineProperty(exports, \"inheritLeadingComments\", {\n enumerable: true,\n get: function () {\n return _inheritLeadingComments.default;\n }\n});\nObject.defineProperty(exports, \"inheritTrailingComments\", {\n enumerable: true,\n get: function () {\n return _inheritTrailingComments.default;\n }\n});\nObject.defineProperty(exports, \"inherits\", {\n enumerable: true,\n get: function () {\n return _inherits.default;\n }\n});\nObject.defineProperty(exports, \"inheritsComments\", {\n enumerable: true,\n get: function () {\n return _inheritsComments.default;\n }\n});\nObject.defineProperty(exports, \"is\", {\n enumerable: true,\n get: function () {\n return _is.default;\n }\n});\nObject.defineProperty(exports, \"isBinding\", {\n enumerable: true,\n get: function () {\n return _isBinding.default;\n }\n});\nObject.defineProperty(exports, \"isBlockScoped\", {\n enumerable: true,\n get: function () {\n return _isBlockScoped.default;\n }\n});\nObject.defineProperty(exports, \"isImmutable\", {\n enumerable: true,\n get: function () {\n return _isImmutable.default;\n }\n});\nObject.defineProperty(exports, \"isLet\", {\n enumerable: true,\n get: function () {\n return _isLet.default;\n }\n});\nObject.defineProperty(exports, \"isNode\", {\n enumerable: true,\n get: function () {\n return _isNode.default;\n }\n});\nObject.defineProperty(exports, \"isNodesEquivalent\", {\n enumerable: true,\n get: function () {\n return _isNodesEquivalent.default;\n }\n});\nObject.defineProperty(exports, \"isPlaceholderType\", {\n enumerable: true,\n get: function () {\n return _isPlaceholderType.default;\n }\n});\nObject.defineProperty(exports, \"isReferenced\", {\n enumerable: true,\n get: function () {\n return _isReferenced.default;\n }\n});\nObject.defineProperty(exports, \"isScope\", {\n enumerable: true,\n get: function () {\n return _isScope.default;\n }\n});\nObject.defineProperty(exports, \"isSpecifierDefault\", {\n enumerable: true,\n get: function () {\n return _isSpecifierDefault.default;\n }\n});\nObject.defineProperty(exports, \"isType\", {\n enumerable: true,\n get: function () {\n return _isType.default;\n }\n});\nObject.defineProperty(exports, \"isValidES3Identifier\", {\n enumerable: true,\n get: function () {\n return _isValidES3Identifier.default;\n }\n});\nObject.defineProperty(exports, \"isValidIdentifier\", {\n enumerable: true,\n get: function () {\n return _isValidIdentifier.default;\n }\n});\nObject.defineProperty(exports, \"isVar\", {\n enumerable: true,\n get: function () {\n return _isVar.default;\n }\n});\nObject.defineProperty(exports, \"matchesPattern\", {\n enumerable: true,\n get: function () {\n return _matchesPattern.default;\n }\n});\nObject.defineProperty(exports, \"prependToMemberExpression\", {\n enumerable: true,\n get: function () {\n return _prependToMemberExpression.default;\n }\n});\nexports.react = void 0;\nObject.defineProperty(exports, \"removeComments\", {\n enumerable: true,\n get: function () {\n return _removeComments.default;\n }\n});\nObject.defineProperty(exports, \"removeProperties\", {\n enumerable: true,\n get: function () {\n return _removeProperties.default;\n }\n});\nObject.defineProperty(exports, \"removePropertiesDeep\", {\n enumerable: true,\n get: function () {\n return _removePropertiesDeep.default;\n }\n});\nObject.defineProperty(exports, \"removeTypeDuplicates\", {\n enumerable: true,\n get: function () {\n return _removeTypeDuplicates.default;\n }\n});\nObject.defineProperty(exports, \"shallowEqual\", {\n enumerable: true,\n get: function () {\n return _shallowEqual.default;\n }\n});\nObject.defineProperty(exports, \"toBindingIdentifierName\", {\n enumerable: true,\n get: function () {\n return _toBindingIdentifierName.default;\n }\n});\nObject.defineProperty(exports, \"toBlock\", {\n enumerable: true,\n get: function () {\n return _toBlock.default;\n }\n});\nObject.defineProperty(exports, \"toComputedKey\", {\n enumerable: true,\n get: function () {\n return _toComputedKey.default;\n }\n});\nObject.defineProperty(exports, \"toExpression\", {\n enumerable: true,\n get: function () {\n return _toExpression.default;\n }\n});\nObject.defineProperty(exports, \"toIdentifier\", {\n enumerable: true,\n get: function () {\n return _toIdentifier.default;\n }\n});\nObject.defineProperty(exports, \"toKeyAlias\", {\n enumerable: true,\n get: function () {\n return _toKeyAlias.default;\n }\n});\nObject.defineProperty(exports, \"toStatement\", {\n enumerable: true,\n get: function () {\n return _toStatement.default;\n }\n});\nObject.defineProperty(exports, \"traverse\", {\n enumerable: true,\n get: function () {\n return _traverse.default;\n }\n});\nObject.defineProperty(exports, \"traverseFast\", {\n enumerable: true,\n get: function () {\n return _traverseFast.default;\n }\n});\nObject.defineProperty(exports, \"validate\", {\n enumerable: true,\n get: function () {\n return _validate.default;\n }\n});\nObject.defineProperty(exports, \"valueToNode\", {\n enumerable: true,\n get: function () {\n return _valueToNode.default;\n }\n});\nvar _isReactComponent = require(\"./validators/react/isReactComponent.js\");\nvar _isCompatTag = require(\"./validators/react/isCompatTag.js\");\nvar _buildChildren = require(\"./builders/react/buildChildren.js\");\nvar _assertNode = require(\"./asserts/assertNode.js\");\nvar _index = require(\"./asserts/generated/index.js\");\nObject.keys(_index).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index[key];\n }\n });\n});\nvar _createTypeAnnotationBasedOnTypeof = require(\"./builders/flow/createTypeAnnotationBasedOnTypeof.js\");\nvar _createFlowUnionType = require(\"./builders/flow/createFlowUnionType.js\");\nvar _createTSUnionType = require(\"./builders/typescript/createTSUnionType.js\");\nvar _productions = require(\"./builders/productions.js\");\nObject.keys(_productions).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _productions[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _productions[key];\n }\n });\n});\nvar _index2 = require(\"./builders/generated/index.js\");\nObject.keys(_index2).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index2[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index2[key];\n }\n });\n});\nvar _cloneNode = require(\"./clone/cloneNode.js\");\nvar _clone = require(\"./clone/clone.js\");\nvar _cloneDeep = require(\"./clone/cloneDeep.js\");\nvar _cloneDeepWithoutLoc = require(\"./clone/cloneDeepWithoutLoc.js\");\nvar _cloneWithoutLoc = require(\"./clone/cloneWithoutLoc.js\");\nvar _addComment = require(\"./comments/addComment.js\");\nvar _addComments = require(\"./comments/addComments.js\");\nvar _inheritInnerComments = require(\"./comments/inheritInnerComments.js\");\nvar _inheritLeadingComments = require(\"./comments/inheritLeadingComments.js\");\nvar _inheritsComments = require(\"./comments/inheritsComments.js\");\nvar _inheritTrailingComments = require(\"./comments/inheritTrailingComments.js\");\nvar _removeComments = require(\"./comments/removeComments.js\");\nvar _index3 = require(\"./constants/generated/index.js\");\nObject.keys(_index3).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index3[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index3[key];\n }\n });\n});\nvar _index4 = require(\"./constants/index.js\");\nObject.keys(_index4).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index4[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index4[key];\n }\n });\n});\nvar _ensureBlock = require(\"./converters/ensureBlock.js\");\nvar _toBindingIdentifierName = require(\"./converters/toBindingIdentifierName.js\");\nvar _toBlock = require(\"./converters/toBlock.js\");\nvar _toComputedKey = require(\"./converters/toComputedKey.js\");\nvar _toExpression = require(\"./converters/toExpression.js\");\nvar _toIdentifier = require(\"./converters/toIdentifier.js\");\nvar _toKeyAlias = require(\"./converters/toKeyAlias.js\");\nvar _toStatement = require(\"./converters/toStatement.js\");\nvar _valueToNode = require(\"./converters/valueToNode.js\");\nvar _index5 = require(\"./definitions/index.js\");\nObject.keys(_index5).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index5[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index5[key];\n }\n });\n});\nvar _appendToMemberExpression = require(\"./modifications/appendToMemberExpression.js\");\nvar _inherits = require(\"./modifications/inherits.js\");\nvar _prependToMemberExpression = require(\"./modifications/prependToMemberExpression.js\");\nvar _removeProperties = require(\"./modifications/removeProperties.js\");\nvar _removePropertiesDeep = require(\"./modifications/removePropertiesDeep.js\");\nvar _removeTypeDuplicates = require(\"./modifications/flow/removeTypeDuplicates.js\");\nvar _getAssignmentIdentifiers = require(\"./retrievers/getAssignmentIdentifiers.js\");\nvar _getBindingIdentifiers = require(\"./retrievers/getBindingIdentifiers.js\");\nvar _getOuterBindingIdentifiers = require(\"./retrievers/getOuterBindingIdentifiers.js\");\nvar _getFunctionName = require(\"./retrievers/getFunctionName.js\");\nvar _traverse = require(\"./traverse/traverse.js\");\nObject.keys(_traverse).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _traverse[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _traverse[key];\n }\n });\n});\nvar _traverseFast = require(\"./traverse/traverseFast.js\");\nvar _shallowEqual = require(\"./utils/shallowEqual.js\");\nvar _is = require(\"./validators/is.js\");\nvar _isBinding = require(\"./validators/isBinding.js\");\nvar _isBlockScoped = require(\"./validators/isBlockScoped.js\");\nvar _isImmutable = require(\"./validators/isImmutable.js\");\nvar _isLet = require(\"./validators/isLet.js\");\nvar _isNode = require(\"./validators/isNode.js\");\nvar _isNodesEquivalent = require(\"./validators/isNodesEquivalent.js\");\nvar _isPlaceholderType = require(\"./validators/isPlaceholderType.js\");\nvar _isReferenced = require(\"./validators/isReferenced.js\");\nvar _isScope = require(\"./validators/isScope.js\");\nvar _isSpecifierDefault = require(\"./validators/isSpecifierDefault.js\");\nvar _isType = require(\"./validators/isType.js\");\nvar _isValidES3Identifier = require(\"./validators/isValidES3Identifier.js\");\nvar _isValidIdentifier = require(\"./validators/isValidIdentifier.js\");\nvar _isVar = require(\"./validators/isVar.js\");\nvar _matchesPattern = require(\"./validators/matchesPattern.js\");\nvar _validate = require(\"./validators/validate.js\");\nvar _buildMatchMemberExpression = require(\"./validators/buildMatchMemberExpression.js\");\nvar _index6 = require(\"./validators/generated/index.js\");\nObject.keys(_index6).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _index6[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return _index6[key];\n }\n });\n});\nvar _deprecationWarning = require(\"./utils/deprecationWarning.js\");\nvar _toSequenceExpression = require(\"./converters/toSequenceExpression.js\");\nconst react = exports.react = {\n isReactComponent: _isReactComponent.default,\n isCompatTag: _isCompatTag.default,\n buildChildren: _buildChildren.default\n};\n{\n exports.toSequenceExpression = _toSequenceExpression.default;\n}\nif (process.env.BABEL_TYPES_8_BREAKING) {\n console.warn(\"BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!\");\n}\n\n//# sourceMappingURL=index.js.map\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;"],"names":["module","exports","options","document","update","remove","styleElement","insertStyleElement","obj","css","supports","concat","media","needLayer","layer","length","sourceMap","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","InstanceApi_postSearchV3","_ref","objectId","data","http","post","_x","_x2","_x3","this","arguments","_defineProperty","key","value","Object","defineProperty","enumerable","configurable","writable","nonce","setAttribute","proxyMarker","Symbol","createEndpoint","releaseProxy","finalizer","throwMarker","isObject","val","transferHandlers","Map","canHandle","serialize","port1","port2","MessageChannel","expose","deserialize","port","start","wrap","serialized","Error","isError","message","name","stack","assign","ep","globalThis","allowedOrigins","addEventListener","callback","ev","origin","allowedOrigin","RegExp","test","isAllowedOrigin","console","warn","id","type","path","argumentList","map","fromWireValue","returnValue","parent","slice","reduce","prop","rawValue","proxy","transfers","transferCache","set","transfer","undefined","Promise","resolve","catch","then","wireValue","transferables","toWireValue","postMessage","removeEventListener","closeEndPoint","error","TypeError","endpoint","constructor","isMessagePort","close","target","pendingListeners","resolver","get","delete","createProxy","throwIfProxyReleased","isReleased","releaseEndpoint","requestResponseMessage","proxyCounter","WeakMap","proxyFinalizers","FinalizationRegistry","newCount","isProxyReleased","Proxy","_target","unregister","unregisterProxy","clear","r","p","toString","bind","_thisArg","rawArgumentList","last","processArguments","construct","register","registerProxy","processed","v","arr","Array","prototype","handler","serializedValue","msg","fill","Math","floor","random","Number","MAX_SAFE_INTEGER","join","ownKeys","e","t","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","_objectSpread2","forEach","getOwnPropertyDescriptors","defineProperties","InstanceApi_getDetail","instanceId","params","_x4","_exportNames","react","assertNode","createTypeAnnotationBasedOnTypeof","createUnionTypeAnnotation","createFlowUnionType","createTSUnionType","cloneNode","clone","cloneDeep","cloneDeepWithoutLoc","cloneWithoutLoc","addComment","addComments","inheritInnerComments","inheritLeadingComments","inheritsComments","inheritTrailingComments","removeComments","ensureBlock","toBindingIdentifierName","toBlock","toComputedKey","toExpression","toIdentifier","toKeyAlias","toStatement","valueToNode","appendToMemberExpression","inherits","prependToMemberExpression","removeProperties","removePropertiesDeep","removeTypeDuplicates","getAssignmentIdentifiers","getBindingIdentifiers","getOuterBindingIdentifiers","getFunctionName","traverse","traverseFast","shallowEqual","is","isBinding","isBlockScoped","isImmutable","isLet","isNode","isNodesEquivalent","isPlaceholderType","isReferenced","isScope","isSpecifierDefault","isType","isValidES3Identifier","isValidIdentifier","isVar","matchesPattern","validate","buildMatchMemberExpression","__internal__deprecationWarning","_deprecationWarning","default","_addComment","_addComments","_appendToMemberExpression","_assertNode","_buildMatchMemberExpression","_clone","_cloneDeep","_cloneDeepWithoutLoc","_cloneNode","_cloneWithoutLoc","_createFlowUnionType","_createTSUnionType","_createTypeAnnotationBasedOnTypeof","_ensureBlock","_getAssignmentIdentifiers","_getBindingIdentifiers","_getFunctionName","_getOuterBindingIdentifiers","_inheritInnerComments","_inheritLeadingComments","_inheritTrailingComments","_inherits","_inheritsComments","_is","_isBinding","_isBlockScoped","_isImmutable","_isLet","_isNode","_isNodesEquivalent","_isPlaceholderType","_isReferenced","_isScope","_isSpecifierDefault","_isType","_isValidES3Identifier","_isValidIdentifier","_isVar","_matchesPattern","_prependToMemberExpression","_removeComments","_removeProperties","_removePropertiesDeep","_removeTypeDuplicates","_shallowEqual","_toBindingIdentifierName","_toBlock","_toComputedKey","_toExpression","_toIdentifier","_toKeyAlias","_toStatement","_traverse","_traverseFast","_validate","_valueToNode","_isReactComponent","_isCompatTag","_buildChildren","_index","hasOwnProperty","call","_productions","_index2","_index3","_index4","_index5","_index6","_toSequenceExpression","isReactComponent","isCompatTag","buildChildren","toSequenceExpression","stylesInDOM","getIndexByIdentifier","identifier","result","i","modulesToDom","list","idCountMap","identifiers","item","base","count","indexByIdentifier","references","updater","addElementStyle","byIndex","splice","api","domAPI","newObj","lastIdentifiers","newList","index","newLastIdentifiers","_i","styleSheet","cssText","firstChild","appendChild","createTextNode","asyncGeneratorStep","gen","reject","_next","_throw","arg","info","done","_asyncToGenerator","fn","self","args","err","memo","insert","style","styleTarget","querySelector","window","HTMLIFrameElement","contentDocument","head","getTarget","element","createElement","setAttributes","attributes"],"sourceRoot":""}
@@ -1,3 +0,0 @@
1
- /*! For license information please see 8889.d377e773.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[8889],{24:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,':host{display:block;white-space:nowrap}.container{border-radius:var(--elevo-border-radius)}:host([hidden]){display:none}*{box-sizing:border-box}.label{font-weight:500;overflow:hidden;text-overflow:ellipsis}.stat{font-weight:600}.chart{min-width:0}.chart > *{display:block}:host(:not([size="small"])) .container{background:linear-gradient(164deg,rgba(105,153,253,0) 40%,rgba(105,153,253,0.05) 60%,rgba(105,153,253,0.32) 100%),#fff;padding:22px}:host(:not([size="small"])) .label{font-size:14px;height:22px;margin-bottom:16px}:host(:not([size="small"])) .stat-and-chart{display:flex;align-items:center;justify-content:end;position:relative}:host(:not([size="small"])) .stat{font-size:36px;color:#1d212a;position:absolute;left:0}:host(:not([size="small"])) .chart{width:calc(100% - 160px)}:host([size="small"]) .container{padding:11px 15px;display:flex;align-items:center;justify-content:end;position:relative;background:var(--elevo-component-background);-webkit-backdrop-filter:var(--elevo-component-backdrop-filter);backdrop-filter:var(--elevo-component-backdrop-filter)}:host([size="small"]) .label-and-stat{position:absolute;left:15px}:host([size="small"]) .label{font-size:12px;color:#8c8c8c;line-height:17px;height:17px;margin-bottom:7px}:host([size="small"]) .stat{font-size:20px;color:#262626;line-height:24px}:host([size="small"]) .chart{width:calc(100% - 90px)}',""]);const o=s.toString()},10335:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.goal-container{display:flex;flex-direction:column;gap:3px}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}",""]);const o=s.toString()},11816:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.button-container{display:flex;gap:6px}.action{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.action::part(button){height:28px;font-size:13px;padding:5px 10px}.action.active::part(button){color:var(--elevo-color-brand);background-color:rgba(var(--elevo-color-brand-rgb-channel),0.04);border-color:#c9d7ff}.icon{font-size:16px;margin-right:4px}.remove{padding:1px;font-size:14px;margin-left:10px}",""]);const o=s.toString()},14763:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,':host{display:block;color:#262626}:host([hidden]){display:none}*{box-sizing:border-box}ul{list-style:none;margin:0;padding:0}.activity{position:relative;padding-left:27px}.activity + .activity{margin-top:20px}.main{display:flex;align-items:flex-start}.action{flex:1;min-width:0;display:flex;align-items:center;margin-left:6px;word-break:break-word}.time{color:#8c8c8c;margin-left:12px}.action,\n.time{padding:1px 0}.guide-line{position:absolute;left:8px;top:0;bottom:-20px;width:0;background-color:#d8d8d8}.guide-line::before{content:"";position:absolute;top:0;bottom:0;left:3.5px;width:1px;background-color:#d8d8d8}.guide-line::after{content:"";position:absolute;top:8px;left:0;width:8px;height:8px;border-radius:8px;background-color:#d8d8d8}.activity:first-child .guide-line::before{top:12px}.activity:last-child .guide-line::before{height:12px;bottom:auto}.comment{position:relative;font-size:13px;color:#595959;background-color:#f3f3f3;border-radius:8px;padding:8px 12px;margin-top:10px}.comment::before{content:"";position:absolute;top:-6px;left:36px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #f3f3f3}.conversation{margin:0 7px 0 10px}.conversation::part(link){background:#f9f0ff;border-radius:3px;font-weight:500;font-size:12px;color:#aa64f5;display:flex;align-items:center;height:24px;padding:0 8px}.external-link-icon{color:#8c8c8c}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}',""]);const o=s.toString()},19428:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:flex;flex-direction:column;align-items:center;gap:26px}:host([hidden]){display:none}p{color:rgba(0,0,0,0.45);margin:0}",""]);const o=s.toString()},20124:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,':host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.tabs{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:32px;row-gap:10px;font-size:16px}.tabs a{color:rgba(38,38,38,0.65);cursor:pointer;padding:0 0 4px;display:block;position:relative}.tabs .active a{color:#262626;font-weight:500}.tabs .active a::after{content:"";position:absolute;bottom:0;left:0;right:0;height:4px;background-color:currentColor;border-radius:2px}',""]);const o=s.toString()},23677:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}ul{list-style:none;margin:0;padding:0}.link{display:block}.link::part(link){display:flex;align-items:center;padding:12px 24px;color:#262626;background:rgba(255,255,255,0.6);border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.item:not(:last-child){margin-bottom:4px}.link.actions-active::part(link),\n.link::part(link):hover{background:rgba(0,0,0,0.05);-webkit-backdrop-filter:none;backdrop-filter:none}.icon{font-size:20px;margin-right:8px}.title{font-weight:500;font-size:16px}.title,\n.description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment{color:#1a7aff;margin-left:8px}.header{display:flex;align-items:center}.description{color:#595959;padding-left:28px;line-height:20px}.time{color:rgba(0,0,0,0.45);margin:0 16px}.main{flex:1;min-width:0}.operations{display:flex;align-items:center;justify-content:center;width:32px;height:32px}.link.actions-active .avatar,\n.link:hover .avatar,\n.link:hover .time,\n.link:not(:hover):not(.actions-active) .actions{display:none}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}",""]);const o=s.toString()},25676:(e,t,i)=>{e.exports=i.p+"images/4b299d0b.png"},31653:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:inline-block}:host([hidden]){display:none}img{vertical-align:middle}",""]);const o=s.toString()},31748:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}h2{font-weight:500;margin:0;font-size:16px;line-height:22px}.groups,\n.list{list-style:none;margin:0;padding:0}.groups{margin-top:17px}.group + .group{margin-top:32px}.list{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.list .item{background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px}.heading{display:flex;align-items:center}.icon{font-size:24px;color:#333;margin-right:8px}.title{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.sticky-tabs{margin:0 -24px;padding:0 24px 10px}.non-sticky-tabs{padding:0 0 10px}",""]);const o=s.toString()},32360:(e,t,i)=>{e.exports=i.p+"images/72c24398.png"},40138:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,':host{display:inline-block}:host([hidden]){display:none}*{box-sizing:border-box}.trigger{display:flex;align-items:center;font-size:14px;cursor:pointer;position:relative;padding:4px 12px;border-radius:15px;color:var(--elevo-color-brand)}.trigger:hover{background-color:rgba(37,64,255,0.06)}.trigger::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;padding:1px;background:linear-gradient(145deg,rgba(37,64,255,1),rgba(180,95,248,1));border-radius:15px;-webkit-mask:linear-gradient(#fff 0,#fff 0) content-box,linear-gradient(#fff 0,#fff 0);mask:linear-gradient(#fff 0,#fff 0) content-box,linear-gradient(#fff 0,#fff 0);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:xor;-webkit-mask:linear-gradient(#fff 0,#fff 0) content-box,linear-gradient(#fff 0,#fff 0);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor}.trigger .label{margin-right:0}.label{max-width:650px;margin-right:0.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown{max-width:500px;border-radius:4px;background:var(--antd-dropdown-menu-bg);box-shadow:var(--antd-box-shadow-base)}.dropdown-inner{padding:9px 4px}.search-container{padding:3px;border-bottom:1px solid rgba(0,0,0,0.08)}.search::part(affix-wrapper){box-shadow:none;border:none}eo-menu{border:0;padding:0;background:none;border-radius:0}eo-menu-item::part(menu-item){padding:5px 8px;line-height:22px;border-radius:var(--medius-border-radius)}eo-menu-item:not([disabled]):hover::part(menu-item){background-color:var(--left-sidebar-item-hover-bg)}.active::part(menu-item){font-weight:600;background-color:var(--left-sidebar-item-hover-bg)}.empty{display:flex;justify-content:center;align-items:center;color:var(--color-secondary-text)}',""]);const o=s.toString()},42873:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:flex;flex-direction:column;align-items:center;max-width:1020px;width:100%}:host([hidden]){display:none}*{box-sizing:border-box}.tips{color:rgba(0,0,0,0.45);margin-bottom:27px}.cases{list-style:none;padding:0;margin:0;display:grid;width:100%;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;margin-top:36px}",""]);const o=s.toString()},45122:(e,t,i)=>{var n,a=i(74635),r=i(70918),s=i(26902),o=i(5536),l=i(86121),c=i(70829),d=i(62740),p=i(18769),h=i.n(p),u=i(90870),m=i(30981),g=(i(34419),i(68443)),b=i(2901),A=i(30291);let k,x,E,f,v,w,y,T,C,S,_,N,R,M,I,W,O,D,L,P,z,U,H,B,V,j,F,G,Y,K,J,$,q,X,Q,Z,ee,te,ie,ne,ae,re,se,oe,le,ce,de,pe,he,ue,me,ge,be,Ae,ke,xe,Ee,fe,ve,we,ye,Te;(0,g.initializeI18n)(b.NS,b.I);const{defineElement:Ce,property:Se,event:_e,method:Ne}=(0,u.createDecorators)(),Re=(0,p.forwardRef)(A.B);let Me;var Ie=new WeakMap,We=new WeakMap,Oe=new WeakMap,De=new WeakMap,Le=new WeakMap,Pe=new WeakMap,ze=new WeakMap,Ue=new WeakMap,He=new WeakMap,Be=new WeakMap,Ve=new WeakMap,je=new WeakMap,Fe=new WeakMap,Ge=new WeakMap,Ye=new WeakMap,Ke=new WeakMap,Je=new WeakMap,$e=new WeakMap,qe=new WeakMap,Xe=new WeakSet,Qe=new WeakMap,Ze=new WeakMap,et=new WeakMap,tt=new WeakMap,it=new WeakMap,nt=new WeakMap,at=new WeakMap,rt=new WeakMap,st=new WeakMap,ot=new WeakMap,lt=new WeakMap,ct=new WeakMap;class dt extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Xe),(0,r.A)(this,Ie,(k(this),E(this))),(0,r.A)(this,We,(f(this),v(this))),(0,r.A)(this,Oe,(w(this),y(this))),(0,r.A)(this,De,(T(this),C(this))),(0,r.A)(this,Le,(S(this),_(this))),(0,r.A)(this,Pe,(N(this),R(this))),(0,r.A)(this,ze,(M(this),I(this))),(0,r.A)(this,Ue,(W(this),O(this))),(0,r.A)(this,He,(D(this),L(this))),(0,r.A)(this,Be,(P(this),z(this))),(0,r.A)(this,Ve,(U(this),H(this))),(0,r.A)(this,je,(B(this),V(this))),(0,r.A)(this,Fe,(j(this),F(this))),(0,r.A)(this,Ge,(G(this),Y(this))),(0,r.A)(this,Ye,(K(this),J(this))),(0,r.A)(this,Ke,($(this),q(this))),(0,r.A)(this,Je,(X(this),Q(this))),(0,r.A)(this,$e,(Z(this),ee(this))),(0,r.A)(this,qe,(te(this),ie(this))),(0,r.A)(this,Qe,(re(this),()=>{(0,o.A)(Xe,this,ne).emit()})),(0,r.A)(this,Ze,se(this)),(0,r.A)(this,et,(ce(this),()=>{(0,o.A)(Xe,this,oe).emit()})),(0,r.A)(this,tt,de(this)),(0,r.A)(this,it,(ue(this),e=>{(0,o.A)(Xe,this,pe).emit(e)})),(0,r.A)(this,nt,me(this)),(0,r.A)(this,at,(Ae(this),e=>{(0,o.A)(Xe,this,ge).emit(e)})),(0,r.A)(this,rt,ke(this)),(0,r.A)(this,st,(fe(this),()=>{(0,o.A)(Xe,this,xe).emit("chat")})),(0,r.A)(this,ot,ve(this)),(0,r.A)(this,lt,(Te(this),e=>{(0,o.A)(Xe,this,we).emit(e)})),(0,r.A)(this,ct,(0,p.createRef)())}get conversationId(){return(0,c.A)(Ie,this)}set conversationId(e){(0,l.A)(Ie,this,e)}get initialRequest(){return(0,c.A)(We,this)}set initialRequest(e){(0,l.A)(We,this,e)}get replay(){return(0,c.A)(Oe,this)}set replay(e){(0,l.A)(Oe,this,e)}get replayDelay(){return(0,c.A)(De,this)}set replayDelay(e){(0,l.A)(De,this,e)}get supports(){return(0,c.A)(Le,this)}set supports(e){(0,l.A)(Le,this,e)}get showHiddenJobs(){return(0,c.A)(Pe,this)}set showHiddenJobs(e){(0,l.A)(Pe,this,e)}get showHumanActions(){return(0,c.A)(ze,this)}set showHumanActions(e){(0,l.A)(ze,this,e)}get showFeedback(){return(0,c.A)(Ue,this)}set showFeedback(e){(0,l.A)(Ue,this,e)}get showFeedbackAfterFailed(){return(0,c.A)(He,this)}set showFeedbackAfterFailed(e){(0,l.A)(He,this,e)}get showFeedbackOnView(){return(0,c.A)(Be,this)}set showFeedbackOnView(e){(0,l.A)(Be,this,e)}get showUiSwitch(){return(0,c.A)(Ve,this)}set showUiSwitch(e){(0,l.A)(Ve,this,e)}get hideMermaid(){return(0,c.A)(je,this)}set hideMermaid(e){(0,l.A)(je,this,e)}get showJsxEditor(){return(0,c.A)(Fe,this)}set showJsxEditor(e){(0,l.A)(Fe,this,e)}get previewUrlTemplate(){return(0,c.A)(Ge,this)}set previewUrlTemplate(e){(0,l.A)(Ge,this,e)}get showCases(){return(0,c.A)(Ye,this)}set showCases(e){(0,l.A)(Ye,this,e)}get exampleProjects(){return(0,c.A)(Ke,this)}set exampleProjects(e){(0,l.A)(Ke,this,e)}get tryItOutUrl(){return(0,c.A)(Je,this)}set tryItOutUrl(e){(0,l.A)(Je,this,e)}get separateInstructions(){return(0,c.A)($e,this)}set separateInstructions(e){(0,l.A)($e,this,e)}resumed(){var e,t;null===(e=(0,c.A)(ct,this).current)||void 0===e||null===(t=e.resumed)||void 0===t||t.call(e)}feedbackSubmitDone(){var e;null===(e=(0,c.A)(ct,this).current)||void 0===e||e.feedbackSubmitDone()}feedbackSubmitFailed(){var e;null===(e=(0,c.A)(ct,this).current)||void 0===e||e.feedbackSubmitFailed()}feedbackOnViewDone(e){var t;null===(t=(0,c.A)(ct,this).current)||void 0===t||t.feedbackOnViewDone(e)}render(){return h().createElement(Re,{conversationId:this.conversationId,initialRequest:this.initialRequest,replay:this.replay,replayDelay:this.replayDelay,supports:this.supports,showHiddenJobs:this.showHiddenJobs,showHumanActions:this.showHumanActions,showFeedback:this.showFeedback,showFeedbackAfterFailed:this.showFeedbackAfterFailed,showUiSwitch:this.showUiSwitch,showFeedbackOnView:this.showFeedbackOnView,showJsxEditor:this.showJsxEditor,previewUrlTemplate:this.previewUrlTemplate,showCases:this.showCases,exampleProjects:this.exampleProjects,tryItOutUrl:this.tryItOutUrl,separateInstructions:this.separateInstructions,onShare:(0,c.A)(Qe,this),onTerminate:(0,c.A)(et,this),onSubmitFeedback:(0,c.A)(it,this),onSwitchToChat:(0,c.A)(st,this),onFeedbackOnView:(0,c.A)(at,this),onDetailChange:(0,c.A)(lt,this),ref:(0,c.A)(ct,this)})}}n=dt,({e:[E,f,v,w,y,T,C,S,_,N,R,M,I,W,O,D,L,P,z,U,H,B,V,j,F,G,Y,K,J,$,q,X,Q,Z,ee,te,ie,ne,ae,re,se,oe,le,ce,de,pe,he,ue,me,ge,be,Ae,ke,xe,Ee,fe,ve,we,ye,Te,k],c:[Me,x]}=(0,d.A)(n,[Ce("ai-portal.cruise-canvas",{shadowOptions:!1})],[[Se(),1,"conversationId"],[Se({attribute:!1,render:!1}),1,"initialRequest"],[Se({type:Boolean,render:!1}),1,"replay"],[Se({type:Number,render:!1}),1,"replayDelay"],[Se({attribute:!1}),1,"supports"],[Se({type:Boolean}),1,"showHiddenJobs"],[Se({type:Boolean}),1,"showHumanActions"],[Se({type:Boolean}),1,"showFeedback"],[Se({type:Boolean}),1,"showFeedbackAfterFailed"],[Se({type:Boolean}),1,"showFeedbackOnView"],[Se({type:Boolean}),1,"showUiSwitch"],[Se({type:Boolean,render:!1}),1,"hideMermaid"],[Se({type:Boolean}),1,"showJsxEditor"],[Se(),1,"previewUrlTemplate"],[Se({attribute:!1}),1,"showCases"],[Se({attribute:!1}),1,"exampleProjects"],[Se(),1,"tryItOutUrl"],[Se({type:Boolean}),1,"separateInstructions"],[_e({type:"share"}),1,"shareEvent",e=>(0,c.A)(qe,e),(e,t)=>(0,l.A)(qe,e,t)],[_e({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(Ze,e),(e,t)=>(0,l.A)(Ze,e,t)],[_e({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(tt,e),(e,t)=>(0,l.A)(tt,e,t)],[_e({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)(nt,e),(e,t)=>(0,l.A)(nt,e,t)],[_e({type:"ui.switch"}),1,"switch",e=>(0,c.A)(rt,e),(e,t)=>(0,l.A)(rt,e,t)],[_e({type:"detail.change"}),1,"detailChange",e=>(0,c.A)(ot,e),(e,t)=>(0,l.A)(ot,e,t)],[Ne(),2,"resumed"],[Ne(),2,"feedbackSubmitDone"],[Ne(),2,"feedbackSubmitFailed"],[Ne(),2,"feedbackOnViewDone"]],0,(e=>ct.has((0,s.A)(e))),m.ReactNextElement)),x();var pt=i(24586);const ht=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"];function ut(e){const t=window.getComputedStyle(e);return`${ht.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";")};\n min-height: 0!important;\n max-height: none!important;\n height: 0!important;\n visibility: hidden!important;\n overflow: hidden!important;\n position: absolute!important;\n z-index: -1000!important;\n top: 0!important;\n left: 0!important;\n pointer-events: none!important;\n`}let mt,gt;var bt=i(89575),At=i(59435),kt=i(99126);let xt;const Et=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"metaKey":"ctrlKey",ft=p.forwardRef(vt);function vt(e,t){let{autoResize:i,minRows:n,maxRows:a,borderSize:r,paddingSize:s,containerRef:o,value:l,style:c,submitWhen:d,desiredSelectionRef:h,onChange:u,onSubmit:m,onKeyDown:g,onCompositionStart:b,onCompositionEnd:A,...k}=e;const x=null==i||i,[E,f]=(0,p.useState)(null!=l?l:""),v=(0,p.useRef)(null),[w,y]=(0,p.useState)(null);(0,p.useImperativeHandle)(t,(()=>({focus:()=>{const e=v.current;if(e){var t;const i=null===(t=e.value)||void 0===t?void 0:t.length;e.focus(),i&&e.setSelectionRange(i,i)}},element:v.current})),[]);const T=(0,p.useCallback)((()=>{const e=v.current;if(e&&x){const t=function(e,t){const{minRows:i=null,maxRows:n=null,borderSize:a=2,paddingSize:r=8}=null!=t?t:{};let s,o,l;xt||(xt=document.createElement("textarea"),xt.setAttribute("tab-index","-1"),xt.setAttribute("aria-hidden","true"),document.body.appendChild(xt)),xt.setAttribute("style",ut(e)),xt.value=e.value||e.placeholder||"";let c=xt.scrollHeight+a;if(null!==i||null!==n){const e=parseFloat(window.getComputedStyle(xt).getPropertyValue("line-height"));null!==i&&(s=e*i+r+a,c=Math.max(s,c)),null!==n&&(o=e*n+r+a,c<=o&&(l="hidden"),c=Math.min(o,c))}const d={height:c,overflowY:l,resize:"none"};return s&&(d.minHeight=s),o&&(d.maxHeight=o),d}(e,{minRows:n,maxRows:a,borderSize:r,paddingSize:s});(0,At.flushSync)((()=>{y(t)}))}}),[x,a,n,r,s]);(0,p.useEffect)((()=>{f(null!=l?l:"")}),[l]),(0,p.useEffect)((()=>{T()}),[T,E]);const C=(0,p.useRef)(!1),S=(0,p.useCallback)((e=>{C.current=!0,null==b||b(e)}),[b]),_=(0,p.useCallback)((e=>{C.current=!1,null==A||A(e)}),[A]),N=(0,p.useCallback)((e=>{C.current||!1!==(null==g?void 0:g(e))&&"Enter"===e.key&&("enter-without-shift"===d?!e.shiftKey:"enter-with-mod"===d&&e[Et])&&(e.preventDefault(),e.stopPropagation(),null==m||m(e))}),[g,m,d]);return(0,p.useLayoutEffect)((()=>{const e=null==h?void 0:h.current,t=v.current;if(e&&t){const{start:i,end:n}=e;h.current=null,t.setSelectionRange(i,n)}}),[h,E]),(0,p.useEffect)((()=>{const e=null==o?void 0:o.current;if(!e||!x)return;let t;const i=new kt.A((i=>{for(const n of i)if(n.target===e){const e=n.contentBoxSize?n.contentBoxSize[0]?n.contentBoxSize[0].inlineSize:n.contentBoxSize.inlineSize:n.contentRect.width;if(void 0!==e&&e!==t){const i=!t;t=e,i||requestAnimationFrame(T)}}}));return i.observe(e),()=>{i.disconnect()}}),[x,o,T]),p.createElement("textarea",(0,bt.A)({},k,{ref:v,value:E,style:{...c,...w},onChange:e=>{f(e.target.value),null==u||u(e)},onCompositionStart:S,onCompositionEnd:_,onKeyDown:N}))}let wt=function(e){return e.ASK_ANY_THING="ASK_ANYTHING",e.COMMON_TASKS="COMMON_TASKS",e}({});const yt="bricks/ai-portal/chat-box",Tt={en:{[wt.ASK_ANY_THING]:"Ask anything",[wt.COMMON_TASKS]:"Common tasks"},zh:{[wt.ASK_ANY_THING]:"询问任何问题",[wt.COMMON_TASKS]:"常用任务"}},Ct=g.i18n.getFixedT(null,yt);var St,_t=i(47008);let Nt,Rt,Mt,It,Wt,Ot,Dt,Lt,Pt,zt,Ut,Ht,Bt,Vt,jt,Ft,Gt,Yt;(0,g.initializeI18n)(yt,Tt);const Kt=(0,m.wrapBrick)("eo-icon"),Jt=(0,m.wrapBrick)("eo-actions",{onActionClick:"action.click",onItemDragEnd:"item.drag.end",onItemDragStart:"item.drag.start"}),{defineElement:$t,property:qt,event:Xt,method:Qt}=(0,u.createDecorators)(),Zt=(0,p.forwardRef)(pi);let ei;var ti=new WeakMap,ii=new WeakMap,ni=new WeakMap,ai=new WeakMap,ri=new WeakMap,si=new WeakSet,oi=new WeakMap,li=new WeakMap,ci=new WeakMap;class di extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,si),(0,pt.A)(this,"ref",(Nt(this),(0,p.createRef)())),(0,r.A)(this,ti,Mt(this)),(0,r.A)(this,ii,(It(this),Wt(this))),(0,r.A)(this,ni,(Ot(this),Dt(this))),(0,r.A)(this,ai,(Lt(this),Pt(this))),(0,r.A)(this,ri,(zt(this),Ut(this))),(0,r.A)(this,oi,(Vt(this),e=>{(0,o.A)(si,this,Ht).emit(e)})),(0,r.A)(this,li,jt(this)),(0,r.A)(this,ci,(Yt(this),e=>{(0,o.A)(si,this,Ft).emit(e)}))}get disabled(){return(0,c.A)(ti,this)}set disabled(e){(0,l.A)(ti,this,e)}get placeholder(){return(0,c.A)(ii,this)}set placeholder(e){(0,l.A)(ii,this,e)}get autoFocus(){return(0,c.A)(ni,this)}set autoFocus(e){(0,l.A)(ni,this,e)}get aiEmployees(){return(0,c.A)(ai,this)}set aiEmployees(e){(0,l.A)(ai,this,e)}setValue(e){var t;null===(t=this.ref.current)||void 0===t||t.setValue(e)}getValue(){var e;return null===(e=this.ref.current)||void 0===e?void 0:e.getValue()}focusOnInput(){var e;return null===(e=this.ref.current)||void 0===e?void 0:e.focusOnInput()}render(){return h().createElement(Zt,{disabled:this.disabled,placeholder:this.placeholder,autoFocus:this.autoFocus,aiEmployees:this.aiEmployees,onSubmit:(0,c.A)(oi,this),onEmployeeMention:(0,c.A)(ci,this),ref:this.ref})}}function pi(e,t){let{disabled:i,placeholder:n,autoFocus:a,aiEmployees:r,onSubmit:s,onEmployeeMention:o}=e;const l=(0,p.useRef)(null),c=(0,p.useRef)(null),[d,u]=(0,p.useState)(""),m=(0,p.useRef)(""),[g,b]=(0,p.useState)(null),[A,k]=(0,p.useState)(""),[x,E]=(0,p.useState)(0),f=(0,p.useRef)(null);(0,p.useEffect)((()=>{const e=window.__elevo_try_it_out;e&&delete window.__elevo_try_it_out,"string"==typeof(null==e?void 0:e.content)&&(m.current=e.content,u(e.content))}),[]),(0,p.useImperativeHandle)(t,(()=>({setValue:e=>{m.current=e,u(e)},getValue:()=>m.current,focusOnInput:()=>{var e;null===(e=c.current)||void 0===e||e.focus()}})));const v=(0,p.useCallback)((e=>{e.currentTarget.value&&s(e.currentTarget.value)}),[s]),w=(0,p.useCallback)((e=>{const{value:t,selectionStart:i,selectionEnd:n}=e.target;if(m.current=t,u(t),!A&&null!==i&&i===n&&null!=r&&r.length){const n=t.slice(0,i),a=n.lastIndexOf("@");if(a>=0){const t=n.slice(a+1).toLowerCase(),s=function(e,t){mt||(mt=document.createElement("div"),mt.setAttribute("tab-index","-1"),mt.setAttribute("aria-hidden","true"),document.body.appendChild(mt)),mt.setAttribute("style",ut(e)),mt.textContent=e.value.slice(0,t);const i=document.createElement("span");i.textContent="​",mt.appendChild(i);const n=i.getBoundingClientRect();return i.remove(),{top:n.top,left:n.left}}(e.currentTarget,i),o=r.filter((e=>e.employeeId.toLowerCase().includes(t)||e.name.toLowerCase().includes(t))).slice(0,10);if(o.length>0)return b({position:{left:s.left+10,top:s.top+22},range:{start:a,end:i},actions:o.map((e=>({key:e.employeeId,text:e.name,data:e})))}),void E(0)}}b(null)}),[r,A]);(0,p.useEffect)((()=>{A&&!d.includes(A)&&(k(""),o(null))}),[A,o,d]);const y=(0,p.useCallback)((()=>{s(m.current)}),[s]);(0,p.useEffect)((()=>{a&&Promise.resolve().then((()=>{var e;null===(e=c.current)||void 0===e||e.focus()}))}),[]);const T=(0,p.useMemo)((()=>{var e;const t=null===(e=c.current)||void 0===e?void 0:e.element;if(!A||!t)return"";const i=d.indexOf(A);return i<0?"":d.slice(0,i)}),[A,d]),C=(0,p.useMemo)((()=>{var e;const t=null===(e=c.current)||void 0===e?void 0:e.element;if(!A||!t)return null;const i=function(e,t,i){gt||(gt=document.createElement("div"),gt.setAttribute("tab-index","-1"),gt.setAttribute("aria-hidden","true"),document.body.appendChild(gt)),gt.setAttribute("style",ut(e)),gt.textContent=t;const n=document.createElement("span");n.textContent=i,gt.appendChild(n);const a=n.getBoundingClientRect();return n.remove(),a}(t,T,A.slice(0,-1));return{left:i.left-1,top:i.top-1,width:i.width+4,height:i.height+4}}),[A,T]),S=(0,p.useCallback)((e=>{const t=`@${e.text} `,i=`${m.current.slice(0,g.range.start)}${t}`,n=`${i}${m.current.slice(g.range.end)}`;m.current=n,f.current={start:i.length,end:i.length},u(n),k(t),b(null),o(e.data)}),[g,o]),_=(0,p.useCallback)((e=>{switch(e.key){case"Escape":if(!g)return;return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),b(null),!1;case"ArrowUp":case"ArrowDown":if(!g)return;return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),E((t=>{const i=t+("ArrowUp"===e.key?-1:1),n=g.actions.length;return(n+i)%n})),!1;case"Enter":if(!g)return;return e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),S(g.actions[x]),!1;case"Delete":case"Backspace":if(null!=A&&A.length){let{selectionStart:t,selectionEnd:i}=e.currentTarget;t===i&&("Backspace"===e.key?t-=1:i+=1);const n=T.length,a=n+A.length;if(t<a&&i>n){const r=Math.min(t,n),s=Math.max(i,a),o=`${m.current.slice(0,r)}${m.current.slice(s)}`;return m.current=o,f.current={start:r,end:r},u(o),e.preventDefault(),e.stopPropagation(),!1}}}}),[x,S,g,T.length,null==A?void 0:A.length]);return h().createElement("div",{className:"root"},h().createElement("div",{className:"container",ref:l},h().createElement(ft,{containerRef:l,ref:c,value:d,minRows:58/22,paddingSize:60,autoResize:!0,disabled:i,placeholder:null!=n?n:Ct(wt.ASK_ANY_THING),submitWhen:"enter-without-shift",desiredSelectionRef:f,onSubmit:v,onChange:w,onKeyDown:_}),h().createElement("div",{className:"actions-bar"},h().createElement("div",null,h().createElement("slot",{name:"actions"})),h().createElement("button",{className:"btn-send",disabled:!d,onClick:y},h().createElement(Kt,{lib:"fa",prefix:"fas",icon:"arrow-up"}))),g&&h().createElement(Jt,{className:"mentions",actions:g.actions,style:g.position,onActionClick:e=>S(e.detail),checkedKeys:[g.actions[x].key]}),C&&h().createElement("div",{className:"mention-overlay",style:C})))}St=di,({e:[Mt,It,Wt,Ot,Dt,Lt,Pt,zt,Ut,Ht,Bt,Vt,jt,Ft,Gt,Yt,Nt],c:[ei,Rt]}=(0,d.A)(St,[$t("ai-portal.chat-box",{styleTexts:[_t.A],shadowOptions:{delegatesFocus:!0}})],[[qt({type:Boolean}),1,"disabled"],[qt(),1,"placeholder"],[qt({type:Boolean}),1,"autoFocus"],[qt({attribute:!1}),1,"aiEmployees"],[Xt({type:"message.submit"}),1,"messageSubmit",e=>(0,c.A)(ri,e),(e,t)=>(0,l.A)(ri,e,t)],[Xt({type:"ai-employee.mention"}),1,"employeeMention",e=>(0,c.A)(li,e),(e,t)=>(0,l.A)(li,e,t)],[Qt(),2,"setValue"],[Qt(),2,"getValue"],[Qt(),2,"focusOnInput"]],0,(e=>ci.has((0,s.A)(e))),m.ReactNextElement)),Rt();var hi,ui=i(82165);let mi,gi,bi;const{defineElement:Ai,property:ki}=(0,u.createDecorators)();let xi;var Ei=new WeakMap;class fi extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Ei,gi(this)),bi(this)}get sticky(){return(0,c.A)(Ei,this)}set sticky(e){(0,l.A)(Ei,this,e)}render(){return h().createElement(vi,null)}}function vi(){return h().createElement("slot",null)}hi=fi,({e:[gi,bi],c:[xi,mi]}=(0,d.A)(hi,[Ai("ai-portal.home-container",{styleTexts:[ui.A]})],[[ki({type:Boolean,render:!1}),1,"sticky"]],0,void 0,m.ReactNextElement)),mi();var wi,yi=i(24);let Ti,Ci,Si,_i,Ni,Ri,Mi,Ii,Wi,Oi,Di,Li,Pi,zi,Ui,Hi,Bi,Vi,ji,Fi,Gi;const Yi=(0,m.wrapBrick)("eo-mini-line-chart"),{defineElement:Ki,property:Ji}=(0,u.createDecorators)();let $i;var qi=new WeakMap,Xi=new WeakMap,Qi=new WeakMap,Zi=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=new WeakMap,an=new WeakMap,rn=new WeakMap,sn=new WeakMap;class on extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,qi,Ci(this)),(0,r.A)(this,Xi,(Si(this),_i(this))),(0,r.A)(this,Qi,(Ni(this),Ri(this))),(0,r.A)(this,Zi,(Mi(this),Ii(this))),(0,r.A)(this,en,(Wi(this),Oi(this))),(0,r.A)(this,tn,(Di(this),Li(this))),(0,r.A)(this,nn,(Pi(this),zi(this))),(0,r.A)(this,an,(Ui(this),Hi(this))),(0,r.A)(this,rn,(Bi(this),Vi(this))),(0,r.A)(this,sn,(ji(this),Fi(this))),Gi(this)}get label(){return(0,c.A)(qi,this)}set label(e){(0,l.A)(qi,this,e)}get value(){return(0,c.A)(Xi,this)}set value(e){(0,l.A)(Xi,this,e)}get size(){return(0,c.A)(Qi,this)}set size(e){(0,l.A)(Qi,this,e)}get lineColor(){return(0,c.A)(Zi,this)}set lineColor(e){(0,l.A)(Zi,this,e)}get showArea(){return(0,c.A)(en,this)}set showArea(e){(0,l.A)(en,this,e)}get min(){return(0,c.A)(tn,this)}set min(e){(0,l.A)(tn,this,e)}get max(){return(0,c.A)(nn,this)}set max(e){(0,l.A)(nn,this,e)}get xField(){return(0,c.A)(an,this)}set xField(e){(0,l.A)(an,this,e)}get yField(){return(0,c.A)(rn,this)}set yField(e){(0,l.A)(rn,this,e)}get data(){return(0,c.A)(sn,this)}set data(e){(0,l.A)(sn,this,e)}render(){return h().createElement(ln,{label:this.label,value:this.value,size:this.size,lineColor:this.lineColor,showArea:this.showArea,min:this.min,max:this.max,xField:this.xField,yField:this.yField,data:this.data})}}function ln(e){let{label:t,value:i,size:n,...a}=e;return"small"===n?h().createElement("div",{className:"container"},h().createElement("div",{className:"label-and-stat"},h().createElement("div",{className:"label"},t),h().createElement("div",{className:"stat"},i)),h().createElement("div",{className:"chart"},h().createElement(Yi,(0,bt.A)({},a,{lineWidth:1.5,width:"auto",height:"55"})))):h().createElement("div",{className:"container"},h().createElement("div",{className:"label"},t),h().createElement("div",{className:"stat-and-chart"},h().createElement("div",{className:"chart"},h().createElement(Yi,(0,bt.A)({},a,{lineWidth:2,width:"auto",height:"92"}))),h().createElement("div",{className:"stat"},i)))}wi=on,({e:[Ci,Si,_i,Ni,Ri,Mi,Ii,Wi,Oi,Di,Li,Pi,zi,Ui,Hi,Bi,Vi,ji,Fi,Gi],c:[$i,Ti]}=(0,d.A)(wi,[Ki("ai-portal.stat-with-mini-chart",{styleTexts:[yi.A]})],[[Ji(),1,"label"],[Ji(),1,"value"],[Ji(),1,"size"],[Ji(),1,"lineColor"],[Ji({type:Boolean}),1,"showArea"],[Ji({type:Number}),1,"min"],[Ji({type:Number}),1,"max"],[Ji(),1,"xField"],[Ji(),1,"yField"],[Ji({attribute:!1}),1,"data"]],0,void 0,m.ReactNextElement)),Ti();var cn=i(51921),dn=i(53373),pn=i.n(dn);let hn=function(e){return e.NEW_CHAT="NEW_CHAT",e.LOGOUT="LOGOUT",e.TODAY="TODAY",e.YESTERDAY="YESTERDAY",e.PREVIOUS_7_DAYS="PREVIOUS_7_DAYS",e.PREVIOUS_30_DAYS="PREVIOUS_30_DAYS",e.SWITCH_LANGUAGE="SWITCH_LANGUAGE",e.PROJECTS="PROJECTS",e.HISTORY="HISTORY",e.CREATE_PROJECT="CREATE_PROJECT",e.MOVE_TO_PROJECT="MOVE_TO_PROJECT",e.UNTITLED="UNTITLED",e.UNNAMED="UNNAMED",e}({});const un="bricks/ai-portal/elevo-sidebar",mn={en:{[hn.NEW_CHAT]:"New chat",[hn.LOGOUT]:"Logout",[hn.TODAY]:"Today",[hn.YESTERDAY]:"Yesterday",[hn.PREVIOUS_7_DAYS]:"Previous 7 days",[hn.PREVIOUS_30_DAYS]:"Previous 30 days",[hn.SWITCH_LANGUAGE]:"中文",[hn.PROJECTS]:"Projects",[hn.HISTORY]:"Chats",[hn.CREATE_PROJECT]:"Create project",[hn.MOVE_TO_PROJECT]:"Move to project",[hn.UNTITLED]:"Untitled",[hn.UNNAMED]:"Unnamed"},zh:{[hn.NEW_CHAT]:"新对话",[hn.LOGOUT]:"登出",[hn.TODAY]:"今天",[hn.YESTERDAY]:"昨天",[hn.PREVIOUS_7_DAYS]:"过去7天",[hn.PREVIOUS_30_DAYS]:"过去30天",[hn.SWITCH_LANGUAGE]:"English",[hn.PROJECTS]:"项目",[hn.HISTORY]:"对话",[hn.CREATE_PROJECT]:"创建项目",[hn.MOVE_TO_PROJECT]:"移动到项目",[hn.UNTITLED]:"无标题",[hn.UNNAMED]:"未命名"}},gn=g.i18n.getFixedT(null,un);var bn=i(61408);const An=(0,m.wrapBrick)("eo-icon"),kn=(0,m.wrapBrick)("eo-link"),xn=(0,m.wrapBrick)("eo-dropdown-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),En=(0,m.wrapBrick)("eo-easyops-avatar"),fn=(0,m.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),vn=(0,m.wrapBrick)("ai-portal.icon-button");var wn=i(22919);const yn=async(e,t)=>(await wn.http.get("api/gateway/logic.llm.aiops_service/api/v1/elevo/conversations",{...t,params:e})).data;var Tn=i(41030),Cn=i(40177),Sn=i(65549);const _n={lib:"fa",icon:"plus"},Nn=(0,p.forwardRef)(Rn);function Rn(e,t){let{historyActiveId:i,historyActions:n,historyUrlTemplate:a,projectActiveId:r,projectUrlTemplate:s,projectActions:o,canAddProject:l,onActionClick:c,onHistoryClick:d,onProjectActionClick:u,onAddProject:m}=e;const g=(0,p.useRef)(null),[b,A]=(0,p.useState)(null),[k,x]=(0,p.useState)(!1),[E,f]=(0,p.useState)(!1),[v,w]=(0,p.useState)(null),[y,T]=(0,p.useState)(!1),[C,S]=(0,p.useState)(),[_,N]=(0,p.useState)(),[R,M]=(0,p.useState)(!1),I=(0,p.useRef)(!0),[W,O]=(0,p.useState)([]),D=(0,p.useMemo)((()=>[...null!=n?n:[],{isDropdown:!0,text:gn(hn.MOVE_TO_PROJECT),disabled:!(null!=b&&b.length),items:null==b?void 0:b.map((e=>({event:"move",key:e.instanceId,text:e.name,project:e})))}]),[n,b]);(0,p.useEffect)((()=>{(async()=>{try{const e=await(async()=>(await wn.http.get("api/gateway/logic.llm.aiops_service/api/v1/elevo/projects",{params:{page:1,page_size:3e3}})).data)();A(e.list)}catch(e){console.error("Error loading projects:",e),f(!0),A([])}})()}),[]),(0,p.useEffect)((()=>{Promise.all([yn({token:_,limit:30,onlyOwner:!0,onlyUnrelatedProject:!0},{interceptorParams:{ignoreLoadingBar:!0}}),...I.current?[]:[new Promise((e=>setTimeout(e,500)))]]).then((e=>{let[t]=e;I.current=!1,w((e=>[...null!=e?e:[],...t.conversations])),S(t.nextToken)})).catch((e=>{console.error("Error loading chat history:",e),w([]),M(!0)}))}),[_]);const[L,P]=(0,p.useState)(null),z=(0,p.useRef)(null);(0,p.useEffect)((()=>{const e=z.current,t=g.current;if(!e||!C||!t||y)return;const i=new IntersectionObserver((e=>{for(const t of e)t.isIntersecting&&N(C)}),{root:t});return i.observe(e),()=>{i.disconnect()}}),[C,y]);const U=(0,p.useRef)(0),H=(0,p.useCallback)((async()=>{try{const e=++U.current,t=await yn({limit:30,onlyOwner:!0,onlyUnrelatedProject:!0},{interceptorParams:{ignoreLoadingBar:!0}});if(e!==U.current)return;w((e=>{const i=null!=e?e:[],n=t.conversations,a=new Set(n.map((e=>e.conversationId))),r=new Map(n.map((e=>[e.conversationId,e])));let s=!1,o=!1,l=!0;for(const e of i){const t=r.get(e.conversationId);if(!t)break;if(s=!0,o=l&&t!==n[0]||!(0,Tn.isEqual)(t,e),o)break;l=!1}return s?o?[...n,...i.filter((e=>!a.has(e.conversationId)))]:e:(S(t.nextToken),n)}))}catch(e){console.error("Error pulling chat history:",e)}}),[]);(0,p.useImperativeHandle)(t,(()=>({pull:H,removeProject:e=>{A((t=>t?t.filter((t=>t.instanceId!==e)):t))},addProject:e=>{A((t=>t?[...t,e]:[e]))},moveConversation:e=>{O((t=>[...t,e]))}})),[H]);const B=(0,p.useMemo)((()=>v&&v.length?v.filter((e=>!W.includes(e.conversationId))):v),[v,W]);return h().createElement("div",{className:"history",ref:g},h().createElement("div",{className:pn()("section",{collapsed:k})},h().createElement("div",{className:"section-title"},h().createElement("div",{className:"section-label",onClick:()=>x((e=>!e))},gn(hn.PROJECTS),h().createElement(An,{lib:"fa",icon:"angle-down"})),l&&h().createElement(vn,{icon:_n,variant:"mini-light",tooltip:gn(hn.CREATE_PROJECT),onClick:m})),h().createElement("ul",{className:"items"},E?h().createElement("li",{className:"error"},"Failed to load project"):b?b.map((e=>h().createElement("li",{key:e.instanceId},h().createElement(kn,(0,bt.A)({className:pn()("item",{"actions-active":e.instanceId===L,active:e.instanceId===r}),onClick:d},s?{url:(0,Sn.Q)(s,e)}:null),h().createElement("div",{className:"item-title",title:e.name},e.name||gn(hn.UNNAMED)),h().createElement(fn,{className:"actions",actions:o,onActionClick:t=>{u({action:t.detail,project:e})},onVisibleChange:t=>{P(t.detail?e.instanceId:null)}}))))):h().createElement("li",{className:"loading"},h().createElement(An,{lib:"antd",theme:"outlined",icon:"loading-3-quarters",spinning:!0})))),h().createElement("div",{className:pn()("section",{collapsed:y})},h().createElement("div",{className:"section-title"},h().createElement("div",{className:"section-label",onClick:()=>T((e=>!e))},gn(hn.HISTORY),h().createElement(An,{lib:"fa",icon:"angle-down"}))),h().createElement("ul",{className:"items"},B?B.map((e=>h().createElement("li",{key:e.conversationId},h().createElement(kn,(0,bt.A)({className:pn()("item",{"actions-active":e.conversationId===L,active:e.conversationId===i}),onClick:d},a?{url:(0,Sn.Q)(a,e)}:null),h().createElement("div",{className:"item-title",title:e.title},e.title||gn(hn.UNTITLED)),h().createElement(fn,{className:"actions",actions:D,onActionClick:t=>{c({action:t.detail,item:e})},onVisibleChange:t=>{P(t.detail?e.conversationId:null)}}),!Cn.QB.includes(e.state)&&h().createElement("div",{className:"working"}))))):h().createElement("li",{className:"loading"},h().createElement(An,{lib:"antd",theme:"outlined",icon:"loading-3-quarters",spinning:!0})),R?h().createElement("li",{className:"error"},"Failed to load chat history"):null),!y&&C&&h().createElement("div",{className:"load-more",ref:z},h().createElement(An,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))))}var Mn;let In,Wn,On,Dn,Ln,Pn,zn,Un,Hn,Bn,Vn,jn,Fn,Gn,Yn,Kn,Jn,$n,qn,Xn,Qn,Zn,ea,ta,ia,na,aa,ra,sa,oa,la,ca,da,pa,ha,ua,ma,ga,ba,Aa,ka,xa,Ea,fa,va,wa;(0,g.initializeI18n)(un,mn);const ya={lib:"easyops",icon:"sidebar"},Ta=(0,m.wrapBrick)("ai-portal.elevo-logo"),{defineElement:Ca,property:Sa,event:_a,method:Na}=(0,u.createDecorators)(),Ra=(0,p.forwardRef)(nr);let Ma;var Ia=new WeakMap,Wa=new WeakMap,Oa=new WeakMap,Da=new WeakMap,La=new WeakMap,Pa=new WeakMap,za=new WeakMap,Ua=new WeakMap,Ha=new WeakMap,Ba=new WeakMap,Va=new WeakMap,ja=new WeakMap,Fa=new WeakMap,Ga=new WeakMap,Ya=new WeakMap,Ka=new WeakSet,Ja=new WeakMap,$a=new WeakMap,qa=new WeakMap,Xa=new WeakMap,Qa=new WeakMap,Za=new WeakMap,er=new WeakMap,tr=new WeakMap;class ir extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Ka),(0,r.A)(this,Ia,(In(this),On(this))),(0,r.A)(this,Wa,(Dn(this),Ln(this))),(0,r.A)(this,Oa,(Pn(this),zn(this))),(0,r.A)(this,Da,(Un(this),Hn(this))),(0,r.A)(this,La,(Bn(this),Vn(this))),(0,r.A)(this,Pa,(jn(this),Fn(this))),(0,r.A)(this,za,(Gn(this),Yn(this))),(0,r.A)(this,Ua,(Kn(this),Jn(this))),(0,r.A)(this,Ha,($n(this),qn(this))),(0,r.A)(this,Ba,(Xn(this),Qn(this))),(0,r.A)(this,Va,(Zn(this),ea(this))),(0,r.A)(this,ja,(ta(this),ia(this))),(0,r.A)(this,Fa,(na(this),aa(this))),(0,r.A)(this,Ga,(ra(this),sa(this,!0))),(0,r.A)(this,Ya,(oa(this),la(this))),(0,r.A)(this,Ja,(pa(this),()=>{(0,o.A)(Ka,this,ca).emit()})),(0,r.A)(this,$a,ha(this)),(0,r.A)(this,qa,(ga(this),e=>{(0,o.A)(Ka,this,ua).emit(e)})),(0,r.A)(this,Xa,ba(this)),(0,r.A)(this,Qa,(xa(this),e=>{(0,o.A)(Ka,this,Aa).emit(e)})),(0,r.A)(this,Za,Ea(this)),(0,r.A)(this,er,(wa(this),()=>{(0,o.A)(Ka,this,fa).emit()})),(0,r.A)(this,tr,(0,p.createRef)())}get userInstanceId(){return(0,c.A)(Ia,this)}set userInstanceId(e){(0,l.A)(Ia,this,e)}get behavior(){return(0,c.A)(Wa,this)}set behavior(e){(0,l.A)(Wa,this,e)}get bordered(){return(0,c.A)(Oa,this)}set bordered(e){(0,l.A)(Oa,this,e)}get logoUrl(){return(0,c.A)(Da,this)}set logoUrl(e){(0,l.A)(Da,this,e)}get newChatUrl(){return(0,c.A)(La,this)}set newChatUrl(e){(0,l.A)(La,this,e)}get newChatLinkWhenCollapsed(){return(0,c.A)(Pa,this)}set newChatLinkWhenCollapsed(e){(0,l.A)(Pa,this,e)}get historyActiveId(){return(0,c.A)(za,this)}set historyActiveId(e){(0,l.A)(za,this,e)}get historyUrlTemplate(){return(0,c.A)(Ua,this)}set historyUrlTemplate(e){(0,l.A)(Ua,this,e)}get historyActions(){return(0,c.A)(Ha,this)}set historyActions(e){(0,l.A)(Ha,this,e)}get projectActiveId(){return(0,c.A)(Ba,this)}set projectActiveId(e){(0,l.A)(Ba,this,e)}get projectUrlTemplate(){return(0,c.A)(Va,this)}set projectUrlTemplate(e){(0,l.A)(Va,this,e)}get projectActions(){return(0,c.A)(ja,this)}set projectActions(e){(0,l.A)(ja,this,e)}get links(){return(0,c.A)(Fa,this)}set links(e){(0,l.A)(Fa,this,e)}get canAddProject(){return(0,c.A)(Ga,this)}set canAddProject(e){(0,l.A)(Ga,this,e)}pullHistory(e){setTimeout((()=>{var e;null===(e=(0,c.A)(tr,this).current)||void 0===e||e.pull()}),e)}open(){var e;null===(e=(0,c.A)(tr,this).current)||void 0===e||e.open()}close(){var e;null===(e=(0,c.A)(tr,this).current)||void 0===e||e.close()}removeProject(e){var t,i;null===(t=(0,c.A)(tr,this).current)||void 0===t||null===(i=t.removeProject)||void 0===i||i.call(t,e)}addProject(e){var t,i;null===(t=(0,c.A)(tr,this).current)||void 0===t||null===(i=t.addProject)||void 0===i||i.call(t,e)}moveConversation(e){var t,i;null===(t=(0,c.A)(tr,this).current)||void 0===t||null===(i=t.moveConversation)||void 0===i||i.call(t,e)}render(){return h().createElement(Ra,{ref:(0,c.A)(tr,this),userInstanceId:this.userInstanceId,behavior:this.behavior,logoUrl:this.logoUrl,newChatUrl:this.newChatUrl,newChatLinkWhenCollapsed:this.newChatLinkWhenCollapsed,historyActiveId:this.historyActiveId,historyUrlTemplate:this.historyUrlTemplate,historyActions:this.historyActions,projectActiveId:this.projectActiveId,projectUrlTemplate:this.projectUrlTemplate,projectActions:this.projectActions,links:this.links,canAddProject:this.canAddProject,onLogout:(0,c.A)(Ja,this),onActionClick:(0,c.A)(qa,this),onProjectActionClick:(0,c.A)(Qa,this),onAddProject:(0,c.A)(er,this)})}}function nr(e,t){let{userInstanceId:i,behavior:n,logoUrl:a,newChatUrl:r,newChatLinkWhenCollapsed:s,historyActiveId:o,historyUrlTemplate:l,historyActions:c,projectActiveId:d,projectUrlTemplate:u,projectActions:m,links:b,canAddProject:A,onLogout:k,onActionClick:x,onProjectActionClick:E,onAddProject:f}=e;const[v,w]=(0,p.useState)("drawer"===n),y=(0,p.useCallback)((()=>{w(!0)}),[]),T=(0,p.useCallback)((()=>{w(!1)}),[]);(0,p.useEffect)((()=>{"drawer"===n&&w(!0)}),[n]);const C=(0,p.useCallback)((()=>{w(!0)}),[]),S=(0,p.useCallback)((()=>{"drawer"===n&&w(!0)}),[n]),_=(0,p.useMemo)((()=>[{key:"logout",icon:{lib:"fa",prefix:"fas",icon:"arrow-right-from-bracket"},text:gn(hn.LOGOUT)},{key:"switch-language",icon:{lib:"easyops",icon:"language"},text:gn(hn.SWITCH_LANGUAGE)}]),[]),N=(0,p.useRef)(null);return(0,p.useImperativeHandle)(t,(()=>({close:()=>{w(!0)},pull:()=>{var e;null===(e=N.current)||void 0===e||e.pull()},removeProject:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.removeProject)||void 0===i||i.call(t,e)},addProject:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.addProject)||void 0===i||i.call(t,e)},moveConversation:e=>{var t,i;null===(t=N.current)||void 0===t||null===(i=t.moveConversation)||void 0===i||i.call(t,e)},open:()=>{w(!1)}})),[]),h().createElement("div",{className:pn()("container",{collapsed:v})},"drawer"===n&&!v&&h().createElement("div",{className:"mask",onClick:C}),h().createElement("div",{className:"alternative"},h().createElement(vn,{icon:ya,variant:"light",onClick:T}),s&&h().createElement(kn,{className:"new-chat",url:r},h().createElement(An,{className:"new-chat-icon",lib:"easyops",icon:"new-chat"}),gn(hn.NEW_CHAT))),h().createElement("div",{className:"sidebar"},h().createElement("div",{className:"logo-bar"},h().createElement(kn,{url:a,className:"logo-link"},h().createElement(Ta,null)),h().createElement(vn,{icon:ya,variant:"light",onClick:y})),h().createElement(kn,{className:"new-chat",url:r},h().createElement(An,{className:"new-chat-icon",lib:"easyops",icon:"new-chat"}),gn(hn.NEW_CHAT)),null!=b&&b.length?h().createElement("div",{className:"links"},b.map(((e,t)=>h().createElement(kn,{className:"link",key:t,url:e.url},h().createElement(An,(0,bt.A)({className:"icon"},e.icon)),h().createElement("span",{className:"title"},e.title))))):null,h().createElement(Nn,{ref:N,canAddProject:A,historyActiveId:o,historyUrlTemplate:l,historyActions:c,projectActiveId:d,projectUrlTemplate:u,projectActions:m,onActionClick:x,onHistoryClick:S,onProjectActionClick:E,onAddProject:f}),h().createElement("div",{className:"footer"},h().createElement(xn,{className:"dropdown",actions:_,onActionClick:async e=>{"logout"===e.detail.key?k():(await g.i18n.changeLanguage(g.i18n.language&&"en"===g.i18n.language.split("-")[0]?"zh":"en"),(0,cn.getHistory)().reload())}},h().createElement("button",{className:"account"},h().createElement(En,{nameOrInstanceId:i,showName:!0,size:"xs"}))))))}Mn=ir,({e:[On,Dn,Ln,Pn,zn,Un,Hn,Bn,Vn,jn,Fn,Gn,Yn,Kn,Jn,$n,qn,Xn,Qn,Zn,ea,ta,ia,na,aa,ra,sa,oa,la,ca,da,pa,ha,ua,ma,ga,ba,Aa,ka,xa,Ea,fa,va,wa,In],c:[Ma,Wn]}=(0,d.A)(Mn,[Ca("ai-portal.elevo-sidebar",{styleTexts:[bn.A]})],[[Sa(),1,"userInstanceId"],[Sa(),1,"behavior"],[Sa({type:Boolean,render:!1}),1,"bordered"],[Sa(),1,"logoUrl"],[Sa(),1,"newChatUrl"],[Sa({type:Boolean}),1,"newChatLinkWhenCollapsed"],[Sa(),1,"historyActiveId"],[Sa(),1,"historyUrlTemplate"],[Sa({attribute:!1}),1,"historyActions"],[Sa(),1,"projectActiveId"],[Sa(),1,"projectUrlTemplate"],[Sa({attribute:!1}),1,"projectActions"],[Sa({attribute:!1}),1,"links"],[Sa({type:Boolean}),1,"canAddProject"],[_a({type:"logout"}),1,"logout",e=>(0,c.A)(Ya,e),(e,t)=>(0,l.A)(Ya,e,t)],[_a({type:"action.click"}),1,"actionClick",e=>(0,c.A)($a,e),(e,t)=>(0,l.A)($a,e,t)],[_a({type:"project.action.click"}),1,"projectActionClick",e=>(0,c.A)(Xa,e),(e,t)=>(0,l.A)(Xa,e,t)],[_a({type:"add.project"}),1,"addProject",e=>(0,c.A)(Za,e),(e,t)=>(0,l.A)(Za,e,t)],[Na(),2,"pullHistory"],[Na(),2,"open"],[Na(),2,"close"],[Na(),2,"removeProject"],[Na(),2,"addProject"],[Na(),2,"moveConversation"]],0,(e=>tr.has((0,s.A)(e))),m.ReactNextElement)),Wn();var ar,rr=i(47338);let sr,or,lr,cr,dr,pr,hr,ur,mr;const gr=(0,m.wrapBrick)("eo-icon"),br=(0,m.wrapBrick)("eo-tooltip"),{defineElement:Ar,property:kr}=(0,u.createDecorators)();let xr;var Er=new WeakMap,fr=new WeakMap,vr=new WeakMap,wr=new WeakMap;class yr extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Er,or(this)),(0,r.A)(this,fr,(lr(this),cr(this))),(0,r.A)(this,vr,(dr(this),pr(this))),(0,r.A)(this,wr,(hr(this),ur(this))),mr(this)}get icon(){return(0,c.A)(Er,this)}set icon(e){(0,l.A)(Er,this,e)}get tooltip(){return(0,c.A)(fr,this)}set tooltip(e){(0,l.A)(fr,this,e)}get disabled(){return(0,c.A)(vr,this)}set disabled(e){(0,l.A)(vr,this,e)}get variant(){return(0,c.A)(wr,this)}set variant(e){(0,l.A)(wr,this,e)}render(){return h().createElement(Tr,{icon:this.icon,tooltip:this.tooltip,disabled:this.disabled})}}function Tr(e){let{icon:t,tooltip:i,disabled:n}=e;const a=h().createElement("button",{disabled:n},h().createElement(gr,t));return i?h().createElement(br,{content:i},a):a}ar=yr,({e:[or,lr,cr,dr,pr,hr,ur,mr],c:[xr,sr]}=(0,d.A)(ar,[Ar("ai-portal.icon-button",{styleTexts:[rr.A]})],[[kr({attribute:!1}),1,"icon"],[kr(),1,"tooltip"],[kr({type:Boolean}),1,"disabled"],[kr({render:!1}),1,"variant"]],0,void 0,m.ReactNextElement)),sr();let Cr=function(e){return e.ALL="ALL",e.EXPLORE_EXCELLENT_CASES="EXPLORE_EXCELLENT_CASES",e}({});const Sr="bricks/ai-portal/show-cases",_r={en:{[Cr.ALL]:"All",[Cr.EXPLORE_EXCELLENT_CASES]:"Explore excellent cases"},zh:{[Cr.ALL]:"全部",[Cr.EXPLORE_EXCELLENT_CASES]:"探索优秀案例"}},Nr=g.i18n.getFixedT(null,Sr);var Rr,Mr=i(42873);let Ir,Wr,Or,Dr,Lr;(0,g.initializeI18n)(Sr,_r);const Pr=(0,m.wrapBrick)("ai-portal.show-case"),zr=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:Ur,property:Hr}=(0,u.createDecorators)();let Br;var Vr=new WeakMap,jr=new WeakMap;class Fr extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Vr,Wr(this)),(0,r.A)(this,jr,(Or(this),Dr(this))),Lr(this)}get list(){return(0,c.A)(Vr,this)}set list(e){(0,l.A)(Vr,this,e)}get limit(){return(0,c.A)(jr,this)}set limit(e){(0,l.A)(jr,this,e)}render(){return h().createElement(Gr,{list:this.list,limit:this.limit})}}function Gr(e){let{list:t,limit:i}=e;const n=(0,p.useMemo)((()=>["",...new Set(null==t?void 0:t.map((e=>e.scenario)).filter(Boolean))]),[t]),[a,r]=(0,p.useState)(""),s=(0,p.useMemo)((()=>{if(!t)return;let e=t;return a&&(e=e.filter((e=>e.scenario===a))),i&&(e=e.slice(0,i)),e}),[a,t,i]),o=(0,p.useMemo)((()=>n.map((e=>({id:e,label:""===e?Nr(Cr.ALL):e})))),[n]);return null!=t&&t.length?h().createElement(h().Fragment,null,h().createElement("div",{className:"tips"},`${Nr(Cr.EXPLORE_EXCELLENT_CASES)} ↓`),h().createElement(zr,{tabs:o,activeTab:a,onTabClick:e=>r(e.detail.id)}),h().createElement("ul",{className:"cases"},null==s?void 0:s.map((e=>h().createElement("li",{key:e.conversationId},h().createElement(Pr,{caseTitle:e.title,summary:e.summary,url:e.url})))))):null}Rr=Fr,({e:[Wr,Or,Dr,Lr],c:[Br,Ir]}=(0,d.A)(Rr,[Ur("ai-portal.show-cases",{styleTexts:[Mr.A]})],[[Hr({attribute:!1}),1,"list"],[Hr({type:Number}),1,"limit"]],0,void 0,m.ReactNextElement)),Ir();let Yr=function(e){return e.MCP_HUB="MCP_HUB",e.ALL="ALL",e.SERVER_cmdb="SERVER_cmdb",e.SERVER_cmdb_product_helper="SERVER_cmdb_product_helper",e.SERVER_alert="SERVER_alert",e.SERVER_web_builder="SERVER_web_builder",e.SERVER_web_builder2="SERVER_web_builder2",e.SERVER_host_troubleshooting="SERVER_host_troubleshooting",e.SERVER_system_inspection="SERVER_system_inspection",e.SERVER_grafana="SERVER_grafana",e.SERVER_kubernetes="SERVER_kubernetes",e.SERVER_llm="SERVER_llm",e}({});const Kr="bricks/ai-portal/mcp-tools",Jr={en:{[Yr.MCP_HUB]:"MCP Hub",[Yr.ALL]:"All",[Yr.SERVER_cmdb]:"CMDB",[Yr.SERVER_cmdb_product_helper]:"CMDB",[Yr.SERVER_alert]:"Alert",[Yr.SERVER_web_builder]:"View",[Yr.SERVER_web_builder2]:"View",[Yr.SERVER_host_troubleshooting]:"Host Troubleshooting",[Yr.SERVER_system_inspection]:"System Inspection",[Yr.SERVER_grafana]:"Grafana",[Yr.SERVER_kubernetes]:"Kubernetes",[Yr.SERVER_llm]:"LLM"},zh:{[Yr.MCP_HUB]:"MCP 中心",[Yr.ALL]:"全部",[Yr.SERVER_cmdb]:"CMDB",[Yr.SERVER_cmdb_product_helper]:"CMDB",[Yr.SERVER_alert]:"告警",[Yr.SERVER_web_builder]:"视图",[Yr.SERVER_web_builder2]:"视图",[Yr.SERVER_host_troubleshooting]:"主机故障排查",[Yr.SERVER_system_inspection]:"系统巡检",[Yr.SERVER_grafana]:"Grafana",[Yr.SERVER_kubernetes]:"Kubernetes",[Yr.SERVER_llm]:"大模型"}},$r=g.i18n.getFixedT(null,Kr);var qr,Xr=i(31748);let Qr,Zr,es,ts,is;(0,g.initializeI18n)(Kr,Jr);const ns={lib:"antd",icon:"tool"},as=new Map([["EasyOps平台",{servers:["cmdb","cmdb_product_helper"]}],["Grafana",{servers:["grafana"]}],["Kubernetes",{servers:["kubernetes"]}],["监控事件",{servers:["alert"]}],["浏览器",{servers:["playwright"]}],["低代码",{servers:["web-builder","web-builder2"]}],["大模型",{servers:["llm"]}],["故障排查",{servers:["host-troubleshooting"]}]]),rs=(0,m.wrapBrick)("eo-icon"),ss=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),os=(0,m.wrapBrick)("ai-portal.sticky-container"),{defineElement:ls,property:cs}=(0,u.createDecorators)();let ds;var ps=new WeakMap,hs=new WeakMap;class us extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,ps,Zr(this)),(0,r.A)(this,hs,(es(this),ts(this))),is(this)}get list(){return(0,c.A)(ps,this)}set list(e){(0,l.A)(ps,this,e)}get stickyTop(){return(0,c.A)(hs,this)}set stickyTop(e){(0,l.A)(hs,this,e)}render(){return h().createElement(ms,{list:this.list,stickyTop:this.stickyTop})}}function ms(e){let{list:t,stickyTop:i}=e;const[n,a]=(0,p.useMemo)((()=>{const e=new Map,i=new Map;null==t||t.forEach((t=>{const n=$r(`SERVER_${t.server.id.replaceAll("-","_")}`,t.server.name);let a=e.get(n);a||e.set(n,a=[]),a.push(t);const r=[...as.entries()].find((e=>{let[i,{servers:n}]=e;return n.includes(t.server.id)})),s=r?r[0]:"其他";let o=i.get(s);o||i.set(s,o=[]),o.push(n)}));const n=["CMDB"];return[new Map([...e.entries()].sort(((e,t)=>{let[i]=e,[a]=t;const r=n.indexOf(i),s=n.indexOf(a);return(r<0?n.length:r)-(s<0?n.length:s)}))),i]}),[t]),r=(0,p.useMemo)((()=>{const e=[...as.keys()],t=[...a.keys()];return t.sort(((t,i)=>{const n=e.indexOf(t),a=e.indexOf(i);return(n<0?e.length:n)-(a<0?e.length:a)})),["",...t]}),[a]),[s,o]=(0,p.useState)(""),l=(0,p.useMemo)((()=>{const e=[...n];if(!s)return e;const t=a.get(s);return e.filter((e=>{let[i]=e;return null==t?void 0:t.includes(i)}))}),[s,n,a]),c=(0,p.useMemo)((()=>r.map((e=>({id:e,label:""===e?$r(Yr.ALL):e})))),[r]),d=h().createElement(ss,{tabs:c,activeTab:s,onTabClick:e=>o(e.detail.id)});return h().createElement(h().Fragment,null,null==i?h().createElement("div",{className:"non-sticky-tabs"},d):h().createElement(os,{className:"sticky-tabs",style:{top:i}},d),h().createElement("ul",{className:"groups"},null==l?void 0:l.map((e=>{let[t,i]=e;return h().createElement("li",{key:t,className:"group"},h().createElement("h2",null,t),h().createElement("ul",{className:"list"},i.map(((e,t)=>{var i;return h().createElement("li",{key:t,className:"item"},h().createElement("div",{className:"heading"},h().createElement(rs,(0,bt.A)({className:"icon"},null!==(i=e.icon)&&void 0!==i?i:ns,{fallback:ns})),h().createElement("div",{className:"title"},e.title)),h().createElement("div",{className:"description"},e.description))}))))}))))}qr=us,({e:[Zr,es,ts,is],c:[ds,Qr]}=(0,d.A)(qr,[ls("ai-portal.mcp-tools",{styleTexts:[Xr.A]})],[[cs({attribute:!1}),1,"list"],[cs({type:Number}),1,"stickyTop"]],0,void 0,m.ReactNextElement)),Qr();var gs,bs=i(48952),As=i(68717);let ks,xs,Es,fs,vs,ws,ys,Ts,Cs,Ss,_s,Ns,Rs,Ms,Is,Ws,Os,Ds,Ls,Ps,zs,Us,Hs,Bs,Vs,js,Fs,Gs,Ys,Ks,Js,$s,qs,Xs,Qs,Zs,eo,to,io,no,ao,ro,so,oo,lo,co,po,ho,uo,mo,go,bo,Ao,ko,xo,Eo;(0,g.initializeI18n)(bs.NS,bs.I);const{defineElement:fo,property:vo,event:wo,method:yo}=(0,u.createDecorators)(),To=(0,p.forwardRef)(As.C);let Co;var So=new WeakMap,_o=new WeakMap,No=new WeakMap,Ro=new WeakMap,Mo=new WeakMap,Io=new WeakMap,Wo=new WeakMap,Oo=new WeakMap,Do=new WeakMap,Lo=new WeakMap,Po=new WeakMap,zo=new WeakMap,Uo=new WeakMap,Ho=new WeakMap,Bo=new WeakMap,Vo=new WeakMap,jo=new WeakSet,Fo=new WeakMap,Go=new WeakMap,Yo=new WeakMap,Ko=new WeakMap,Jo=new WeakMap,$o=new WeakMap,qo=new WeakMap,Xo=new WeakMap,Qo=new WeakMap,Zo=new WeakMap,el=new WeakMap,tl=new WeakMap;class il extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,jo),(0,r.A)(this,So,(ks(this),Es(this))),(0,r.A)(this,_o,(fs(this),vs(this))),(0,r.A)(this,No,(ws(this),ys(this))),(0,r.A)(this,Ro,(Ts(this),Cs(this))),(0,r.A)(this,Mo,(Ss(this),_s(this))),(0,r.A)(this,Io,(Ns(this),Rs(this))),(0,r.A)(this,Wo,(Ms(this),Is(this))),(0,r.A)(this,Oo,(Ws(this),Os(this))),(0,r.A)(this,Do,(Ds(this),Ls(this))),(0,r.A)(this,Lo,(Ps(this),zs(this))),(0,r.A)(this,Po,(Us(this),Hs(this))),(0,r.A)(this,zo,(Bs(this),Vs(this))),(0,r.A)(this,Uo,(js(this),Fs(this))),(0,r.A)(this,Ho,(Gs(this),Ys(this))),(0,r.A)(this,Bo,(Ks(this),Js(this))),(0,r.A)(this,Vo,($s(this),qs(this))),(0,r.A)(this,Fo,(Zs(this),()=>{(0,o.A)(jo,this,Xs).emit()})),(0,r.A)(this,Go,eo(this)),(0,r.A)(this,Yo,(no(this),()=>{(0,o.A)(jo,this,to).emit()})),(0,r.A)(this,Ko,ao(this)),(0,r.A)(this,Jo,(oo(this),e=>{(0,o.A)(jo,this,ro).emit(e)})),(0,r.A)(this,$o,lo(this)),(0,r.A)(this,qo,(ho(this),e=>{(0,o.A)(jo,this,co).emit(e)})),(0,r.A)(this,Xo,uo(this)),(0,r.A)(this,Qo,(bo(this),()=>{(0,o.A)(jo,this,mo).emit("canvas")})),(0,r.A)(this,Zo,Ao(this)),(0,r.A)(this,el,(Eo(this),e=>{(0,o.A)(jo,this,ko).emit(e)})),(0,r.A)(this,tl,(0,p.createRef)())}get conversationId(){return(0,c.A)(So,this)}set conversationId(e){(0,l.A)(So,this,e)}get initialRequest(){return(0,c.A)(_o,this)}set initialRequest(e){(0,l.A)(_o,this,e)}get replay(){return(0,c.A)(No,this)}set replay(e){(0,l.A)(No,this,e)}get replayDelay(){return(0,c.A)(Ro,this)}set replayDelay(e){(0,l.A)(Ro,this,e)}get supports(){return(0,c.A)(Mo,this)}set supports(e){(0,l.A)(Mo,this,e)}get showHumanActions(){return(0,c.A)(Io,this)}set showHumanActions(e){(0,l.A)(Io,this,e)}get showFeedback(){return(0,c.A)(Wo,this)}set showFeedback(e){(0,l.A)(Wo,this,e)}get showFeedbackAfterFailed(){return(0,c.A)(Oo,this)}set showFeedbackAfterFailed(e){(0,l.A)(Oo,this,e)}get showFeedbackOnView(){return(0,c.A)(Do,this)}set showFeedbackOnView(e){(0,l.A)(Do,this,e)}get showUiSwitch(){return(0,c.A)(Lo,this)}set showUiSwitch(e){(0,l.A)(Lo,this,e)}get hideMermaid(){return(0,c.A)(Po,this)}set hideMermaid(e){(0,l.A)(Po,this,e)}get previewUrlTemplate(){return(0,c.A)(zo,this)}set previewUrlTemplate(e){(0,l.A)(zo,this,e)}get showCases(){return(0,c.A)(Uo,this)}set showCases(e){(0,l.A)(Uo,this,e)}get exampleProjects(){return(0,c.A)(Ho,this)}set exampleProjects(e){(0,l.A)(Ho,this,e)}get tryItOutUrl(){return(0,c.A)(Bo,this)}set tryItOutUrl(e){(0,l.A)(Bo,this,e)}resumed(){var e,t;null===(e=(0,c.A)(tl,this).current)||void 0===e||null===(t=e.resumed)||void 0===t||t.call(e)}feedbackSubmitDone(){var e;null===(e=(0,c.A)(tl,this).current)||void 0===e||e.feedbackSubmitDone()}feedbackSubmitFailed(){var e;null===(e=(0,c.A)(tl,this).current)||void 0===e||e.feedbackSubmitFailed()}feedbackOnViewDone(e){var t;null===(t=(0,c.A)(tl,this).current)||void 0===t||t.feedbackOnViewDone(e)}render(){return h().createElement(To,{conversationId:this.conversationId,initialRequest:this.initialRequest,replay:this.replay,replayDelay:this.replayDelay,supports:this.supports,showHumanActions:this.showHumanActions,showFeedback:this.showFeedback,showFeedbackAfterFailed:this.showFeedbackAfterFailed,showFeedbackOnView:this.showFeedbackOnView,showUiSwitch:this.showUiSwitch,previewUrlTemplate:this.previewUrlTemplate,showCases:this.showCases,exampleProjects:this.exampleProjects,tryItOutUrl:this.tryItOutUrl,onShare:(0,c.A)(Fo,this),onTerminate:(0,c.A)(Yo,this),onSubmitFeedback:(0,c.A)(Jo,this),onSwitchToCanvas:(0,c.A)(Qo,this),onFeedbackOnView:(0,c.A)(qo,this),onDetailChange:(0,c.A)(el,this)})}}gs=il,({e:[Es,fs,vs,ws,ys,Ts,Cs,Ss,_s,Ns,Rs,Ms,Is,Ws,Os,Ds,Ls,Ps,zs,Us,Hs,Bs,Vs,js,Fs,Gs,Ys,Ks,Js,$s,qs,Xs,Qs,Zs,eo,to,io,no,ao,ro,so,oo,lo,co,po,ho,uo,mo,go,bo,Ao,ko,xo,Eo,ks],c:[Co,xs]}=(0,d.A)(gs,[fo("ai-portal.chat-stream",{shadowOptions:!1})],[[vo(),1,"conversationId"],[vo({attribute:!1,render:!1}),1,"initialRequest"],[vo({type:Boolean}),1,"replay"],[vo({type:Number}),1,"replayDelay"],[vo({attribute:!1}),1,"supports"],[vo({type:Boolean}),1,"showHumanActions"],[vo({type:Boolean}),1,"showFeedback"],[vo({type:Boolean}),1,"showFeedbackAfterFailed"],[vo({type:Boolean}),1,"showFeedbackOnView"],[vo({type:Boolean}),1,"showUiSwitch"],[vo({type:Boolean,render:!1}),1,"hideMermaid"],[vo(),1,"previewUrlTemplate"],[vo({attribute:!1}),1,"showCases"],[vo({attribute:!1}),1,"exampleProjects"],[vo(),1,"tryItOutUrl"],[wo({type:"share"}),1,"shareEvent",e=>(0,c.A)(Vo,e),(e,t)=>(0,l.A)(Vo,e,t)],[wo({type:"terminate"}),1,"terminateEvent",e=>(0,c.A)(Go,e),(e,t)=>(0,l.A)(Go,e,t)],[wo({type:"feedback.submit"}),1,"feedbackSubmitEvent",e=>(0,c.A)(Ko,e),(e,t)=>(0,l.A)(Ko,e,t)],[wo({type:"feedback.on.view"}),1,"feedbackOnViewEvent",e=>(0,c.A)($o,e),(e,t)=>(0,l.A)($o,e,t)],[wo({type:"ui.switch"}),1,"switch",e=>(0,c.A)(Xo,e),(e,t)=>(0,l.A)(Xo,e,t)],[wo({type:"detail.change"}),1,"detailChange",e=>(0,c.A)(Zo,e),(e,t)=>(0,l.A)(Zo,e,t)],[yo(),2,"resumed"],[yo(),2,"feedbackSubmitDone"],[yo(),2,"feedbackSubmitFailed"],[yo(),2,"feedbackOnViewDone"]],0,(e=>tl.has((0,s.A)(e))),m.ReactNextElement)),xs();let nl=function(e){return e.AI_EMPLOYEES="AI_EMPLOYEES",e.UNTITLED="UNTITLED",e}({});const al="bricks/ai-portal/ai-employees",rl=g.i18n.getFixedT(null,al);var sl,ol=i(98036);let ll,cl,dl,pl,hl,ul,ml,gl,bl;(0,g.initializeI18n)(al,{en:{AI_EMPLOYEES:"AI Employees",UNTITLED:"Untitled"},zh:{AI_EMPLOYEES:"Ai 数字人",UNTITLED:"未命名"}});const Al=(0,m.wrapBrick)("eo-link"),kl=(0,m.wrapBrick)("eo-icon"),xl=(0,m.wrapBrick)("ai-portal.tab-list",{onTabClick:"tab.click"}),{defineElement:El,property:fl}=(0,u.createDecorators)();let vl;var wl=new WeakMap,yl=new WeakMap,Tl=new WeakMap,Cl=new WeakMap;class Sl extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,wl,cl(this)),(0,r.A)(this,yl,(dl(this),pl(this))),(0,r.A)(this,Tl,(hl(this),ul(this))),(0,r.A)(this,Cl,(ml(this),gl(this,!0))),bl(this)}get list(){return(0,c.A)(wl,this)}set list(e){(0,l.A)(wl,this,e)}get industries(){return(0,c.A)(yl,this)}set industries(e){(0,l.A)(yl,this,e)}get urlTemplate(){return(0,c.A)(Tl,this)}set urlTemplate(e){(0,l.A)(Tl,this,e)}get withContainer(){return(0,c.A)(Cl,this)}set withContainer(e){(0,l.A)(Cl,this,e)}render(){return h().createElement(_l,{list:this.list,industries:this.industries,urlTemplate:this.urlTemplate,withContainer:this.withContainer})}}function _l(e){let{list:t,industries:i,urlTemplate:n,withContainer:a}=e;const r=(0,p.useMemo)((()=>[...new Set([...null!=i?i:[],...(null!=t?t:[]).map((e=>e.industry))])]),[i,t]),[s,o]=(0,p.useState)(r[0]),l=(0,p.useMemo)((()=>{const e=new Map;return null==t||t.forEach((t=>{if(t.industry!==s)return;let i=e.get(t.role);i||e.set(t.role,i=[]),i.push(t)})),[...e.entries()]}),[s,t]),c=(0,p.useMemo)((()=>r.map((e=>({id:e,label:e||rl(nl.UNTITLED)})))),[r]),d=h().createElement(h().Fragment,null,h().createElement(xl,{tabs:c,activeTab:s,onTabClick:e=>o(e.detail.id)}),h().createElement("ul",{className:"groups"},l.map((e=>{let[t,i]=e;return h().createElement("li",{key:t,className:"group"},h().createElement("h2",null,t),h().createElement("ul",{className:"list"},i.map(((e,t)=>h().createElement("li",{key:t},h().createElement(Al,(0,bt.A)({className:pn()("link",{clickable:!!n})},n?{url:(0,Sn.Q)(n,e)}:null),h().createElement("div",{className:"heading"},h().createElement("div",{className:"avatar"},e.avatar?h().createElement("img",{src:e.avatar}):h().createElement(kl,{lib:"antd",icon:"user"})),h().createElement("div",{className:"title"},e.name)),h().createElement("div",{className:"description"},e.description)))))))}))));return a?h().createElement("div",{className:"container"},h().createElement("h1",null,rl(nl.AI_EMPLOYEES)),d):d}sl=Sl,({e:[cl,dl,pl,hl,ul,ml,gl,bl],c:[vl,ll]}=(0,d.A)(sl,[El("ai-portal.ai-employees",{styleTexts:[ol.A]})],[[fl({attribute:!1}),1,"list"],[fl({attribute:!1}),1,"industries"],[fl(),1,"urlTemplate"],[fl({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),ll();let Nl=function(e){return e.AGENTS="AGENTS",e}({});const Rl="bricks/ai-portal/ai-agents",Ml=g.i18n.getFixedT(null,Rl);var Il,Wl=i(83059);let Ol,Dl,Ll,Pl,zl,Ul,Hl;const Bl={lib:"antd",icon:"tool"};(0,g.initializeI18n)(Rl,{en:{AGENTS:"Agents"},zh:{AGENTS:"智能体"}});const Vl=(0,m.wrapBrick)("eo-icon"),jl=(0,m.wrapBrick)("eo-link"),{defineElement:Fl,property:Gl}=(0,u.createDecorators)();let Yl;var Kl=new WeakMap,Jl=new WeakMap,$l=new WeakMap;class ql extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Kl,Dl(this)),(0,r.A)(this,Jl,(Ll(this),Pl(this))),(0,r.A)(this,$l,(zl(this),Ul(this,!0))),Hl(this)}get list(){return(0,c.A)(Kl,this)}set list(e){(0,l.A)(Kl,this,e)}get urlTemplate(){return(0,c.A)(Jl,this)}set urlTemplate(e){(0,l.A)(Jl,this,e)}get withContainer(){return(0,c.A)($l,this)}set withContainer(e){(0,l.A)($l,this,e)}render(){return h().createElement(Xl,{list:this.list,urlTemplate:this.urlTemplate,withContainer:this.withContainer})}}function Xl(e){let{list:t,urlTemplate:i,withContainer:n}=e;const a=h().createElement(h().Fragment,null,h().createElement("ul",{className:"list"},null==t?void 0:t.map(((e,t)=>{var n,a;return h().createElement("li",{key:t},h().createElement(jl,(0,bt.A)({className:pn()("link",{clickable:!!i})},i?{url:(0,Sn.Q)(i,e)}:null),h().createElement("div",{className:"heading"},h().createElement("div",{className:"icon"},h().createElement(Vl,(0,bt.A)({},null!==(n=e.icon)&&void 0!==n?n:Bl,{fallback:Bl}))),h().createElement("div",{className:"title"},e.name)),h().createElement("div",{className:"tags"},null===(a=e.tags)||void 0===a?void 0:a.map(((e,t)=>h().createElement("span",{key:t,className:"tag"},e)))),h().createElement("div",{className:"description"},e.description)))}))));return n?h().createElement("div",{className:"container"},h().createElement("h1",null,Ml(Nl.AGENTS)),a):a}Il=ql,({e:[Dl,Ll,Pl,zl,Ul,Hl],c:[Yl,Ol]}=(0,d.A)(Il,[Fl("ai-portal.ai-agents",{styleTexts:[Wl.A]})],[[Gl({attribute:!1}),1,"list"],[Gl(),1,"urlTemplate"],[Gl({type:Boolean}),1,"withContainer"]],0,void 0,m.ReactNextElement)),Ol();var Ql=i(49936);let Zl=null;customElements.define("ai-portal.save-request-store",(0,Ql.createProviderClass)((function(e){Zl=e}))),customElements.define("ai-portal.load-request-store",(0,Ql.createProviderClass)((function(){const e=Zl;return Zl=null,e}))),customElements.define("ai-portal.clear-request-store",(0,Ql.createProviderClass)((function(){Zl=null})));var ec,tc=i(49041);let ic,nc,ac,rc,sc,oc,lc,cc,dc;const pc=(0,m.wrapBrick)("eo-link"),hc=(0,m.wrapBrick)("ai-portal.sticky-container"),{defineElement:uc,property:mc}=(0,u.createDecorators)();let gc;var bc=new WeakMap,Ac=new WeakMap,kc=new WeakMap,xc=new WeakMap;class Ec extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,bc,nc(this)),(0,r.A)(this,Ac,(ac(this),rc(this))),(0,r.A)(this,kc,(sc(this),oc(this))),(0,r.A)(this,xc,(lc(this),cc(this))),dc(this)}get pageTitle(){return(0,c.A)(bc,this)}set pageTitle(e){(0,l.A)(bc,this,e)}get breadcrumbs(){return(0,c.A)(Ac,this)}set breadcrumbs(e){(0,l.A)(Ac,this,e)}get size(){return(0,c.A)(kc,this)}set size(e){(0,l.A)(kc,this,e)}get sticky(){return(0,c.A)(xc,this)}set sticky(e){(0,l.A)(xc,this,e)}render(){return h().createElement(fc,{pageTitle:this.pageTitle,breadcrumbs:this.breadcrumbs,sticky:this.sticky})}}function fc(e){let{breadcrumbs:t,pageTitle:i,sticky:n}=e;(0,p.useEffect)((()=>{"string"==typeof i&&(0,cn.getRuntime)().applyPageTitle(i)}),[i]);const a=i||null!=t&&t.length?h().createElement("div",{className:"header"},h().createElement("nav",null,null!=t&&t.length?h().createElement("ul",{className:"breadcrumbs"},t.map(((e,t)=>h().createElement("li",{key:t},h().createElement(pc,{url:e.url},e.text))))):null,i?h().createElement("h1",null,i):null),h().createElement("slot",{name:"toolbar"})):null;return h().createElement("div",{className:"container"},a&&n?h().createElement(hc,{className:"sticky-header"},a):h().createElement("div",{className:"non-sticky-header"},a),h().createElement("slot",null))}ec=Ec,({e:[nc,ac,rc,sc,oc,lc,cc,dc],c:[gc,ic]}=(0,d.A)(ec,[uc("ai-portal.page-container",{styleTexts:[tc.A]})],[[mc(),1,"pageTitle"],[mc({attribute:!1}),1,"breadcrumbs"],[mc({render:!1}),1,"size"],[mc({type:Boolean}),1,"sticky"]],0,void 0,m.ReactNextElement)),ic();var vc,wc=i(20124);let yc,Tc,Cc,Sc,_c,Nc,Rc,Mc,Ic;const{defineElement:Wc,property:Oc,event:Dc}=(0,u.createDecorators)();let Lc;var Pc=new WeakMap,zc=new WeakMap,Uc=new WeakMap,Hc=new WeakSet,Bc=new WeakMap;class Vc extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Hc),(0,r.A)(this,Pc,Tc(this)),(0,r.A)(this,zc,(Cc(this),Sc(this))),(0,r.A)(this,Uc,(_c(this),Nc(this))),(0,r.A)(this,Bc,(Ic(this),e=>{this.activeTab=e.id,(0,o.A)(Hc,this,Rc).emit(e)}))}get tabs(){return(0,c.A)(Pc,this)}set tabs(e){(0,l.A)(Pc,this,e)}get activeTab(){return(0,c.A)(zc,this)}set activeTab(e){(0,l.A)(zc,this,e)}render(){return h().createElement(jc,{tabs:this.tabs,activeTab:this.activeTab,onTabClick:(0,c.A)(Bc,this)})}}function jc(e){let{tabs:t,activeTab:i,onTabClick:n}=e;return h().createElement("ul",{className:"tabs",part:"tabs"},null==t?void 0:t.map((e=>h().createElement("li",{key:e.id,part:"tab",className:pn()("tab",{active:e.id===i})},h().createElement("a",{onClick:()=>n(e)},e.label)))))}vc=Vc,({e:[Tc,Cc,Sc,_c,Nc,Rc,Mc,Ic],c:[Lc,yc]}=(0,d.A)(vc,[Wc("ai-portal.tab-list",{styleTexts:[wc.A]})],[[Oc({attribute:!1}),1,"tabs"],[Oc({attribute:!1}),1,"activeTab"],[Dc({type:"tab.click"}),1,"tabClick",e=>(0,c.A)(Uc,e),(e,t)=>(0,l.A)(Uc,e,t)]],0,(e=>Bc.has((0,s.A)(e))),m.ReactNextElement)),yc();let Fc=function(e){return e.PLEASE_SELECT="PLEASE_SELECT",e.SEARCH_PLACEHOLDER="SEARCH_PLACEHOLDER",e.SEARCH_NO_DATA="SEARCH_NO_DATA",e}({});const Gc="bricks/ai-portal/dropdown-select",Yc=g.i18n.getFixedT(null,Gc);var Kc,Jc=i(40138);let $c,qc,Xc,Qc,Zc,ed,td,id,nd,ad,rd,sd,od,ld,cd,dd,pd,hd,ud,md,gd;(0,g.initializeI18n)(Gc,{en:{PLEASE_SELECT:"Please Select",SEARCH_PLACEHOLDER:"Search",SEARCH_NO_DATA:"No Data"},zh:{PLEASE_SELECT:"请选择",SEARCH_PLACEHOLDER:"搜索",SEARCH_NO_DATA:"暂无结果"}});const{defineElement:bd,property:Ad,event:kd}=(0,u.createDecorators)(),xd=(0,m.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",onBeforeVisibleChange:"before.visible.change"}),Ed=(0,m.wrapBrick)("eo-icon"),fd=(0,m.wrapBrick)("eo-loading-container"),vd=(0,m.wrapBrick)("eo-menu"),wd=(0,m.wrapBrick)("eo-menu-item"),yd=(0,m.wrapBrick)("eo-input",{onValueChange:"change"});let Td;var Cd=new WeakMap,Sd=new WeakMap,_d=new WeakMap,Nd=new WeakMap,Rd=new WeakMap,Md=new WeakMap,Id=new WeakMap,Wd=new WeakMap,Od=new WeakMap,Dd=new WeakSet,Ld=new WeakMap;class Pd extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Dd),(0,r.A)(this,Cd,qc(this)),(0,r.A)(this,Sd,(Xc(this),Qc(this))),(0,r.A)(this,_d,(Zc(this),ed(this))),(0,r.A)(this,Nd,(td(this),id(this))),(0,r.A)(this,Rd,(nd(this),ad(this))),(0,r.A)(this,Md,(rd(this),sd(this))),(0,r.A)(this,Id,(od(this),ld(this))),(0,r.A)(this,Wd,(cd(this),dd(this))),(0,r.A)(this,Od,(pd(this),hd(this))),(0,r.A)(this,Ld,(gd(this),e=>{(0,o.A)(Dd,this,ud).emit(e)}))}get value(){return(0,c.A)(Cd,this)}set value(e){(0,l.A)(Cd,this,e)}get options(){return(0,c.A)(Sd,this)}set options(e){(0,l.A)(Sd,this,e)}get labelMaxWidth(){return(0,c.A)(_d,this)}set labelMaxWidth(e){(0,l.A)(_d,this,e)}get loading(){return(0,c.A)(Nd,this)}set loading(e){(0,l.A)(Nd,this,e)}get searchPlaceholder(){return(0,c.A)(Rd,this)}set searchPlaceholder(e){(0,l.A)(Rd,this,e)}get dropdownContentStyle(){return(0,c.A)(Md,this)}set dropdownContentStyle(e){(0,l.A)(Md,this,e)}get dropdownMaxWidth(){return(0,c.A)(Id,this)}set dropdownMaxWidth(e){(0,l.A)(Id,this,e)}get showSearch(){return(0,c.A)(Wd,this)}set showSearch(e){(0,l.A)(Wd,this,e)}render(){return h().createElement(zd,{value:this.value,options:this.options,onChange:(0,c.A)(Ld,this),loading:this.loading,labelMaxWidth:this.labelMaxWidth,dropdownMaxWidth:this.dropdownMaxWidth,showSearch:this.showSearch,searchPlaceholder:this.searchPlaceholder,dropdownContentStyle:this.dropdownContentStyle})}}function zd(e){let{value:t,options:i,labelMaxWidth:n,dropdownMaxWidth:a,showSearch:r,loading:s,searchPlaceholder:o,dropdownContentStyle:l,onChange:c}=e;const[d,u]=(0,p.useState)(!1),[m,g]=(0,p.useState)(t),[b,A]=(0,p.useState)(""),[k,x]=(0,p.useState)(i);(0,p.useEffect)((()=>{x(i)}),[i]);const E=(0,p.useMemo)((()=>null==k?void 0:k.find((e=>e.value===m))),[k,m]),f=(0,p.useMemo)((()=>b&&k?null==k?void 0:k.filter((e=>e.label.toLowerCase().includes(b.toLowerCase()))):k),[k,b]),v=(0,p.useCallback)((e=>{u(e.detail),e.detail||A("")}),[]),w=(0,p.useMemo)((()=>(0,Tn.debounce)((e=>{A(e.detail)}),300)),[]);return h().createElement(xd,{placement:"bottom-start",trigger:"click",active:d,arrow:!1,distance:5,onBeforeVisibleChange:v},h().createElement("span",{slot:"anchor",className:"trigger"},h().createElement("span",{className:"label",style:{maxWidth:n}},E?null==E?void 0:E.label:Yc(Fc.PLEASE_SELECT)),h().createElement(Ed,{lib:"lucide",icon:d?"chevron-up":"chevron-down"})),h().createElement("div",{className:"dropdown",style:{maxWidth:a}},r&&h().createElement("div",{className:"search-container"},h().createElement(yd,{className:"search",value:b,placeholder:o||Yc(Fc.SEARCH_PLACEHOLDER),onValueChange:w},h().createElement(Ed,{slot:"prefix",lib:"antd",icon:"search"}))),h().createElement(fd,{loading:s,delay:500,style:{width:"100%"}},h().createElement("div",{className:"dropdown-inner",style:l},h().createElement("slot",{name:"prefix"}),!(null==f||!f.length)&&h().createElement(vd,null,null==f?void 0:f.map((e=>h().createElement(wd,{key:e.value,disabled:e.disabled,className:m===e.value?"active":void 0,onClick:t=>{t.preventDefault(),t.stopPropagation(),u(!1),m!==e.value&&(g(e.value),c(e))}},e.label)))),!(null!=f&&f.length)&&h().createElement("div",{className:"empty"},Yc(Fc.SEARCH_NO_DATA))))))}Kc=Pd,({e:[qc,Xc,Qc,Zc,ed,td,id,nd,ad,rd,sd,od,ld,cd,dd,pd,hd,ud,md,gd],c:[Td,$c]}=(0,d.A)(Kc,[bd("ai-portal.dropdown-select",{styleTexts:[Jc.A]})],[[Ad(),1,"value"],[Ad({attribute:!1}),1,"options"],[Ad({attribute:!1}),1,"labelMaxWidth"],[Ad({type:Boolean}),1,"loading"],[Ad({attribute:!1}),1,"searchPlaceholder"],[Ad({attribute:!1}),1,"dropdownContentStyle"],[Ad({attribute:!1}),1,"dropdownMaxWidth"],[Ad({type:Boolean}),1,"showSearch"],[kd({type:"change"}),1,"changeEvent",e=>(0,c.A)(Od,e),(e,t)=>(0,l.A)(Od,e,t)]],0,(e=>Ld.has((0,s.A)(e))),m.ReactNextElement)),$c();var Ud=i(79858),Hd=i(68648);let Bd=function(e){return e.UNTITLED="UNTITLED",e}({});const Vd="bricks/ai-portal/preview-container",jd=g.i18n.getFixedT(null,Vd);var Fd=i(72591),Gd=i.n(Fd),Yd=i(1740),Kd=i.n(Yd),Jd=i(88128),$d=i.n(Jd),qd=i(30855),Xd=i.n(qd),Qd=i(93051),Zd=i.n(Qd),ep=i(73656),tp=i.n(ep),ip=i(62522),np={};np.styleTagTransform=tp(),np.setAttributes=Xd(),np.insert=$d().bind(null,"head"),np.domAPI=Kd(),np.insertStyleElement=Zd(),Gd()(ip.A,np);const ap=ip.A&&ip.A.locals?ip.A.locals:void 0;var rp,sp=i(43100),op=i(23241);let lp,cp,dp,pp,hp;(0,g.initializeI18n)(Vd,{en:{UNTITLED:"Untitled"},zh:{UNTITLED:"无标题"}});const up=(0,m.wrapBrick)("eo-icon"),mp=(0,m.wrapBrick)("eo-page-title"),gp=(0,m.wrapBrick)("eo-main-view"),bp=(0,m.wrapBrick)("eo-narrow-view"),{defineElement:Ap,property:kp}=(0,u.createDecorators)();let xp;var Ep=new WeakMap,fp=new WeakMap,vp=new WeakMap;class wp extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Ep,cp(this)),(0,r.A)(this,fp,(dp(this),pp(this))),(0,r.A)(this,vp,(hp(this),(0,Tn.uniqueId)()))}get source(){return(0,c.A)(Ep,this)}set source(e){(0,l.A)(Ep,this,e)}get url(){return(0,c.A)(fp,this)}set url(e){(0,l.A)(fp,this,e)}render(){return h().createElement(p.Suspense,{fallback:h().createElement(up,{lib:"antd",icon:"loading-3-quarters",spinning:!0,className:ap.loading})},h().createElement(yp,{rootId:(0,c.A)(vp,this),source:this.source,url:this.url}))}}function yp(e){let{rootId:t,source:i,url:n}=e;const a=(0,p.useMemo)((()=>i?async function(e){const t=await(0,sp.f)();return await t.parse(e)}(i).catch((e=>(console.error("Failed to parse view:",e),null))):Promise.resolve(null)),[i]),r=(0,p.use)(a),s=(0,p.useMemo)((()=>r?(0,Ud.d)(r,{rootId:t,expanded:!0}).catch((e=>(console.error("Failed to convert view:",e),null))):Promise.resolve(null)),[r,t]),o=(0,p.use)(s),l=(0,p.useMemo)((()=>(0,Hd.W)(r)),[r]);return h().createElement(Tp,{rootId:t,pageTitle:l,convertedResult:o,url:n})}function Tp(e){let{rootId:t,pageTitle:i,convertedResult:n,url:a}=e;const r=(0,p.useRef)(null),s=(0,p.useRef)(null);return(0,p.useEffect)((()=>{const e=r.current;if(!e)return;const i=(0,op.d)(t),n=(0,cn.unstable_createRoot)(e,{portal:i,supportsUseChildren:!0});return s.current=n,()=>{n.unmount(),i.remove(),s.current=null}}),[t]),(0,p.useEffect)((()=>{var e;if(!n)return;const{brick:t,context:i,functions:r,templates:o}=n;null===(e=s.current)||void 0===e||e.render(t,{context:i,functions:r,templates:o,url:a})}),[n,a]),h().createElement(bp,{size:"large",className:ap.container},h().createElement(gp,null,h().createElement(mp,{slot:"pageTitle",pageTitle:i||jd(Bd.UNTITLED)}),h().createElement("div",{className:ap.main,ref:r,"data-root-id":t})))}rp=wp,({e:[cp,dp,pp,hp],c:[xp,lp]}=(0,d.A)(rp,[Ap("ai-portal.preview-container",{shadowOptions:!1})],[[kp({attribute:!1}),1,"source"],[kp(),1,"url"]],0,void 0,m.ReactNextElement)),lp();const Cp="bricks/ai-portal/action-buttons";g.i18n.getFixedT(null,Cp);var Sp,_p=i(11816);let Np,Rp,Mp,Ip,Wp,Op,Dp,Lp,Pp;(0,g.initializeI18n)(Cp,{en:{},zh:{}});const zp=(0,m.wrapBrick)("eo-icon"),Up=(0,m.wrapBrick)("eo-button"),{defineElement:Hp,property:Bp,event:Vp}=(0,u.createDecorators)();let jp;var Fp=new WeakMap,Gp=new WeakMap,Yp=new WeakMap,Kp=new WeakSet,Jp=new WeakMap;class $p extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Kp),(0,r.A)(this,Fp,Rp(this)),(0,r.A)(this,Gp,(Mp(this),Ip(this))),(0,r.A)(this,Yp,(Wp(this),Op(this))),(0,r.A)(this,Jp,(Pp(this),e=>{this.activeKey=e?e.key:null,(0,o.A)(Kp,this,Dp).emit(e)}))}get items(){return(0,c.A)(Fp,this)}set items(e){(0,l.A)(Fp,this,e)}get activeKey(){return(0,c.A)(Gp,this)}set activeKey(e){(0,l.A)(Gp,this,e)}render(){return h().createElement(qp,{items:this.items,activeKey:this.activeKey,onChange:(0,c.A)(Jp,this)})}}function qp(e){let{items:t,activeKey:i,onChange:n}=e;const[a,r]=(0,p.useState)(null!=i?i:null),s=(0,p.useRef)(!1);(0,p.useEffect)((()=>{r(null!=i?i:null)}),[i]),(0,p.useEffect)((()=>{var e;s.current?n(a&&null!==(e=null==t?void 0:t.find((e=>!e.hidden&&e.key===a)))&&void 0!==e?e:null):s.current=!0}),[a,t,n]);const o=(0,p.useMemo)((()=>null==t?void 0:t.filter((e=>!e.hidden&&!a||e.key===a))),[t,a]);return h().createElement("div",{className:"button-container"},null==o?void 0:o.map((e=>{const{text:t,icon:i,key:n}=e;return h().createElement(Up,{key:n,className:"action"+(a?" active":""),themeVariant:"elevo",type:"neutral",onClick:()=>{a||r(n)}},i?h().createElement(zp,(0,bt.A)({className:"icon"},i)):null,t,a?h().createElement(zp,{className:"remove",lib:"lucide",icon:"x",onClick:e=>{e.stopPropagation(),e.preventDefault(),r(null)}}):null)})))}Sp=$p,({e:[Rp,Mp,Ip,Wp,Op,Dp,Lp,Pp],c:[jp,Np]}=(0,d.A)(Sp,[Hp("ai-portal.action-buttons",{styleTexts:[_p.A]})],[[Bp({attribute:!1}),1,"items"],[Bp(),1,"activeKey"],[Vp({type:"change"}),1,"change",e=>(0,c.A)(Yp,e),(e,t)=>(0,l.A)(Yp,e,t)]],0,(e=>Jp.has((0,s.A)(e))),m.ReactNextElement)),Np();let Xp=function(e){return e.UN_START_STATUS="UN_START_STATUS",e.RUNNING_STATUS="RUNNING_STATUS",e.COMPLETED_STATUS="COMPLETED_STATUS",e.NEW_CHAT="NEW_CHAT",e}({});const Qp="bricks/ai-portal/goal-card-list",Zp={en:{UN_START_STATUS:"Not Start",RUNNING_STATUS:"Running",COMPLETED_STATUS:"Completed",NEW_CHAT:"New chat"},zh:{UN_START_STATUS:"未开始",RUNNING_STATUS:"运行中",COMPLETED_STATUS:"已完成",NEW_CHAT:"新对话"}},eh=g.i18n.getFixedT(null,Qp);var th=i(46342),ih=i(10335);let nh;(0,g.initializeI18n)(Qp,Zp);const ah=(0,m.wrapBrick)("eo-icon"),rh=(0,m.wrapBrick)("eo-dropdown-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),sh=(0,m.wrapBrick)("eo-easyops-avatar"),oh=(0,m.wrapBrick)("eo-button"),lh={ready:"uncheck-status",working:"active-status",completed:"check-status"},ch=[{key:"ready",icon:{icon:"uncheck-status",lib:"easyops",category:"colored-common"},text:eh(Xp.UN_START_STATUS)},{key:"working",icon:{icon:"active-status",lib:"easyops",category:"colored-common"},text:eh(Xp.RUNNING_STATUS)},{key:"completed",icon:{icon:"check-status",lib:"easyops",category:"colored-common"},text:eh(Xp.COMPLETED_STATUS)}];function dh(e){let{goalItem:t,idWidth:i,cardStyle:n,onStatusChange:a,onTitleChange:r,onClick:s,onNewChat:o,onAppendChild:l,onRevokeAppendChild:c,isActive:d}=e;const{state:u,id:m,title:g,conversations:b,owner:A,pending:k}=t,x=(0,p.useRef)(!1),E=(0,p.useCallback)((()=>{x.current=!0}),[]),f=(0,p.useCallback)((()=>{x.current=!1}),[]),[v,w]=(0,p.useState)(!1),y=(0,p.useCallback)((()=>{w(!0)}),[]),T=(0,p.useCallback)((e=>{w(!1);const t=e.currentTarget.textContent;!k||null!=t&&t.trim()?null!==t&&g!==t&&(null==r||r(t)):null==c||c()}),[k,g,c,r]),C=(0,p.useCallback)((e=>{x.current||"Enter"===e.key&&(e.preventDefault(),e.currentTarget.blur())}),[]),S=(0,p.useRef)(null);return(0,p.useEffect)((()=>{var e;k&&(null===(e=S.current)||void 0===e||e.focus())}),[k]),h().createElement("div",{className:pn()("goal-item",t.state,{editing:v},{active:d}),style:{paddingLeft:24*(t.level+1)+"px",...n},onClick:k?void 0:s},h().createElement("div",{className:"start"},h().createElement(rh,{actions:ch,disabled:k,onActionClick:e=>{var t;t=e.detail,null==a||a(t.key)}},h().createElement(ah,{className:"icon",lib:"easyops",category:"colored-common",icon:lh[u],onClick:e=>e.stopPropagation()})),h().createElement("span",{className:"serial-number",style:{width:i}},"#",k?"":m),h().createElement("span",{className:"title",ref:S,onClick:e=>e.stopPropagation(),onFocus:y,onBlur:T,onKeyDown:C,onCompositionStart:E,onCompositionEnd:f,contentEditable:(_=!0,_?function(){if("boolean"!=typeof nh){const e=document.createElement("div");e.setAttribute("contenteditable","PLAINTEXT-ONLY"),nh="plaintext-only"===e.contentEditable}return nh}()?"plaintext-only":"true":"false"),suppressContentEditableWarning:!0},g)),h().createElement("div",{className:"end"},h().createElement("div",{className:"info"},h().createElement("div",{className:"message"},h().createElement(ah,{lib:"easyops",category:"common",icon:"message"}),h().createElement("span",{className:"count"},b||0)),h().createElement(sh,{nameOrInstanceId:null==A?void 0:A.instanceId,size:"small"})),h().createElement("div",{className:"operation",onClick:e=>e.stopPropagation()},0===t.level&&h().createElement(oh,{className:"append-child",themeVariant:"elevo",type:"neutral",size:"small",onClick:l},h().createElement(ah,{lib:"lucide",icon:"plus"})),!k&&h().createElement(oh,{className:"new-chat",themeVariant:"elevo",type:"neutral",size:"small",onClick:o},eh(Xp.NEW_CHAT)))));var _}var ph;let hh,uh,mh,gh,bh,Ah,kh,xh,Eh,fh,vh,wh,yh,Th,Ch,Sh,_h,Nh,Rh,Mh,Ih,Wh,Oh,Dh;(0,g.initializeI18n)(Qp,Zp);const{defineElement:Lh,property:Ph,event:zh,method:Uh}=(0,u.createDecorators)(),Hh=(0,m.wrapBrick)("eo-icon"),Bh=(0,p.forwardRef)(nu);let Vh;var jh=new WeakMap,Fh=new WeakMap,Gh=new WeakMap,Yh=new WeakMap,Kh=new WeakSet,Jh=new WeakMap,$h=new WeakMap,qh=new WeakMap,Xh=new WeakMap,Qh=new WeakMap,Zh=new WeakMap,eu=new WeakMap,tu=new WeakMap;class iu extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Kh),(0,r.A)(this,jh,(hh(this),mh(this))),(0,r.A)(this,Fh,(gh(this),bh(this))),(0,r.A)(this,Gh,(Ah(this),kh(this))),(0,r.A)(this,Yh,(xh(this),Eh(this))),(0,r.A)(this,Jh,(wh(this),e=>{(0,o.A)(Kh,this,fh).emit(e)})),(0,r.A)(this,$h,yh(this)),(0,r.A)(this,qh,(Sh(this),e=>{(0,o.A)(Kh,this,Th).emit(e)})),(0,r.A)(this,Xh,_h(this)),(0,r.A)(this,Qh,(Mh(this),e=>{(0,o.A)(Kh,this,Nh).emit(e)})),(0,r.A)(this,Zh,Ih(this)),(0,r.A)(this,eu,(Dh(this),e=>{(0,o.A)(Kh,this,Wh).emit(e)})),(0,r.A)(this,tu,(0,p.createRef)())}get goalList(){return(0,c.A)(jh,this)}set goalList(e){(0,l.A)(jh,this,e)}get cardStyle(){return(0,c.A)(Fh,this)}set cardStyle(e){(0,l.A)(Fh,this,e)}get activeKey(){return(0,c.A)(Gh,this)}set activeKey(e){(0,l.A)(Gh,this,e)}appendChildDone(e,t){var i;null===(i=(0,c.A)(tu,this).current)||void 0===i||i.appendChildDone(e,t)}render(){return h().createElement(Bh,{ref:(0,c.A)(tu,this),goalList:this.goalList,cardStyle:this.cardStyle,onTitleChange:(0,c.A)(Qh,this),onStatusChange:(0,c.A)(qh,this),onItemClick:(0,c.A)(Jh,this),onNewChat:(0,c.A)(eu,this),activeKey:this.activeKey})}}function nu(e,t){let{goalList:i,cardStyle:n,onTitleChange:a,onStatusChange:r,onItemClick:s,onNewChat:o,activeKey:l}=e;const[c,d]=(0,p.useState)(i);(0,p.useEffect)((()=>{d(i)}),[i]);const u=(e,t,i,n)=>{const a={...e,[t]:i};d(null==c?void 0:c.map((e=>e.instanceId===a.instanceId?a:e))),null==n||n(a)};(0,p.useImperativeHandle)(t,(()=>({appendChildDone:(e,t)=>{d((i=>null==i?void 0:i.map((i=>i.instanceId===e?{...t,level:i.level}:i))))}})),[]);const m=(0,p.useMemo)((()=>{var e;return 10*((null!==(e=null==c?void 0:c.reduce(((e,t)=>Math.max(e,t.id)),0))&&void 0!==e?e:0).toString().length+1)}),[c]);return c?h().createElement("div",{className:"goal-container"},null==c?void 0:c.map((e=>h().createElement(dh,{key:e.instanceId,isActive:l===e.instanceId,goalItem:e,idWidth:m,cardStyle:n,onTitleChange:t=>((e,t)=>{u(t,"title",e,a)})(t,e),onStatusChange:t=>((e,t)=>{u(t,"state",e,r)})(t,e),onNewChat:()=>null==o?void 0:o(e),onClick:()=>null==s?void 0:s(e),onAppendChild:()=>(e=>{const t={instanceId:(0,Tn.uniqueId)("pending-"),pending:!0,id:0,title:"",state:"ready",level:1,pendingParentId:e.instanceId};d((i=>{var n;const a=null!==(n=null==i?void 0:i.findIndex((t=>t.instanceId===e.instanceId)))&&void 0!==n?n:-1;if(-1===a)return i;const r=i.slice(a+1).findIndex((e=>0===e.level))+1;return 0===r?[...i,t]:[...i.slice(0,a+r),t,...i.slice(a+r)]}))})(e),onRevokeAppendChild:()=>{d((t=>null==t?void 0:t.filter((t=>t.instanceId!==e.instanceId))))}})))):h().createElement("div",{className:"loading"},h().createElement(Hh,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}ph=iu,({e:[mh,gh,bh,Ah,kh,xh,Eh,fh,vh,wh,yh,Th,Ch,Sh,_h,Nh,Rh,Mh,Ih,Wh,Oh,Dh,hh],c:[Vh,uh]}=(0,d.A)(ph,[Lh("ai-portal.goal-card-list",{styleTexts:[ih.A,th.A]})],[[Ph({attribute:!1}),1,"goalList"],[Ph({attribute:!1}),1,"cardStyle"],[Ph(),1,"activeKey"],[zh({type:"item.click"}),1,"itemClickEvent",e=>(0,c.A)(Yh,e),(e,t)=>(0,l.A)(Yh,e,t)],[zh({type:"item.status.change"}),1,"itemStatusChangeEvent",e=>(0,c.A)($h,e),(e,t)=>(0,l.A)($h,e,t)],[zh({type:"item.title.change"}),1,"itemTitleChangeEvent",e=>(0,c.A)(Xh,e),(e,t)=>(0,l.A)(Xh,e,t)],[zh({type:"item.new.chat"}),1,"itemNewChatEvent",e=>(0,c.A)(Zh,e),(e,t)=>(0,l.A)(Zh,e,t)],[Uh(),2,"appendChildDone"]],0,(e=>tu.has((0,s.A)(e))),m.ReactNextElement)),uh();var au=i(62916);let ru=function(e){return e.PROJECT_OVERALL="PROJECT_OVERALL",e}({});const su="bricks/ai-portal/project-conversations",ou=g.i18n.getFixedT(null,su);var lu,cu=i(79286);let du,pu,hu,uu,mu,gu,bu,Au,ku,xu,Eu,fu,vu,wu,yu,Tu,Cu;(0,g.initializeI18n)(su,{en:{PROJECT_OVERALL:"Project overall"},zh:{PROJECT_OVERALL:"项目整体"}});const Su=(0,m.wrapBrick)("eo-link"),_u=(0,m.wrapBrick)("eo-icon"),Nu=(0,m.wrapBrick)("eo-easyops-avatar"),Ru=(0,m.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),{defineElement:Mu,property:Iu,event:Wu}=(0,u.createDecorators)();let Ou;var Du=new WeakMap,Lu=new WeakMap,Pu=new WeakMap,zu=new WeakMap,Uu=new WeakMap,Hu=new WeakSet,Bu=new WeakMap,Vu=new WeakMap,ju=new WeakMap;class Fu extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Hu),(0,r.A)(this,Du,pu(this)),(0,r.A)(this,Lu,(hu(this),uu(this))),(0,r.A)(this,Pu,(mu(this),gu(this))),(0,r.A)(this,zu,(bu(this),Au(this))),(0,r.A)(this,Uu,(ku(this),xu(this))),(0,r.A)(this,Bu,(vu(this),e=>{(0,o.A)(Hu,this,Eu).emit(e)})),(0,r.A)(this,Vu,wu(this)),(0,r.A)(this,ju,(Cu(this),e=>{(0,o.A)(Hu,this,yu).emit(e)}))}get list(){return(0,c.A)(Du,this)}set list(e){(0,l.A)(Du,this,e)}get urlTemplate(){return(0,c.A)(Lu,this)}set urlTemplate(e){(0,l.A)(Lu,this,e)}get actions(){return(0,c.A)(Pu,this)}set actions(e){(0,l.A)(Pu,this,e)}get goals(){return(0,c.A)(zu,this)}set goals(e){(0,l.A)(zu,this,e)}render(){return h().createElement(Gu,{list:this.list,urlTemplate:this.urlTemplate,actions:this.actions,goals:this.goals,onGoalClick:(0,c.A)(Bu,this),onActionClick:(0,c.A)(ju,this)})}}function Gu(e){let{list:t,urlTemplate:i,actions:n,goals:a,onGoalClick:r,onActionClick:s}=e;return t?h().createElement("ul",null,t.map((e=>h().createElement("li",{className:"item",key:e.conversationId},h().createElement(Yu,{conversation:e,urlTemplate:i,actions:n,goals:a,onGoalClick:r,onActionClick:s}))))):h().createElement("div",{className:"loading"},h().createElement(_u,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}function Yu(e){var t;let{conversation:i,urlTemplate:n,actions:a,goals:r,onGoalClick:s,onActionClick:o}=e;const l=(0,p.useRef)(null),c=g.i18n.language.split("-")[0];(0,p.useEffect)((()=>{const e=l.current;if(!e)return;const t=e=>{e.stopPropagation(),e.preventDefault(),s(i)};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[i,s]);const[d,u]=(0,p.useState)(!1);return h().createElement(Su,{className:pn()("link",{"actions-active":d}),url:(0,Sn.Q)(n,i)},h().createElement("div",{className:"main"},h().createElement("div",{className:"header"},h().createElement(_u,{className:"icon",lib:"easyops",category:"common",icon:"clock"}),h().createElement("div",{className:"title"},i.title)),i.description&&h().createElement("div",{className:"description"},i.description)),r&&h().createElement("div",{className:pn()("goal",{global:!i.goalInstanceId}),ref:l},i.goalInstanceId?null===(t=r.find((e=>e.instanceId===i.goalInstanceId)))||void 0===t?void 0:t.title:ou(ru.PROJECT_OVERALL)),h().createElement(Nu,{className:"avatar",size:"small",nameOrInstanceId:i.username}),h().createElement("div",{className:`operations lang-${c}`},h().createElement(Ru,{className:"actions",actions:a,onActionClick:e=>{o({action:e.detail,item:i})},onVisibleChange:e=>{u(e.detail)}}),h().createElement("div",{className:"time",title:(0,au.P)(1e3*i.startTime,au.c.full)},(0,au.P)(1e3*i.startTime,au.c.relative))))}lu=Fu,({e:[pu,hu,uu,mu,gu,bu,Au,ku,xu,Eu,fu,vu,wu,yu,Tu,Cu],c:[Ou,du]}=(0,d.A)(lu,[Mu("ai-portal.project-conversations",{styleTexts:[cu.A]})],[[Iu({attribute:!1}),1,"list"],[Iu(),1,"urlTemplate"],[Iu({attribute:!1}),1,"actions"],[Iu({attribute:!1}),1,"goals"],[Wu({type:"goal.click"}),1,"goalClick",e=>(0,c.A)(Uu,e),(e,t)=>(0,l.A)(Uu,e,t)],[Wu({type:"action.click"}),1,"actionClick",e=>(0,c.A)(Vu,e),(e,t)=>(0,l.A)(Vu,e,t)]],0,(e=>ju.has((0,s.A)(e))),m.ReactNextElement)),du();var Ku,Ju=i(23677);let $u,qu,Xu,Qu,Zu,em,tm,im,nm,am,rm,sm,om,lm,cm;const dm=(0,m.wrapBrick)("eo-link"),pm=(0,m.wrapBrick)("eo-icon"),hm=(0,m.wrapBrick)("eo-easyops-avatar"),um=(0,m.wrapBrick)("eo-mini-actions",{onActionClick:"action.click",onVisibleChange:"visible.change"}),{defineElement:mm,property:gm,event:bm}=(0,u.createDecorators)();let Am;var km=new WeakMap,xm=new WeakMap,Em=new WeakMap,fm=new WeakMap,vm=new WeakSet,wm=new WeakMap,ym=new WeakMap,Tm=new WeakMap;class Cm extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,vm),(0,r.A)(this,km,qu(this)),(0,r.A)(this,xm,(Xu(this),Qu(this))),(0,r.A)(this,Em,(Zu(this),em(this))),(0,r.A)(this,fm,(tm(this),im(this))),(0,r.A)(this,wm,(rm(this),sm(this))),(0,r.A)(this,ym,(cm(this),e=>{(0,o.A)(vm,this,nm).emit(e)})),(0,r.A)(this,Tm,(e=>{(0,o.A)(vm,this,om).emit(e)}))}get list(){return(0,c.A)(km,this)}set list(e){(0,l.A)(km,this,e)}get urlTemplate(){return(0,c.A)(xm,this)}set urlTemplate(e){(0,l.A)(xm,this,e)}get actions(){return(0,c.A)(Em,this)}set actions(e){(0,l.A)(Em,this,e)}render(){return h().createElement(Sm,{list:this.list,urlTemplate:this.urlTemplate,actions:this.actions,onActionClick:(0,c.A)(ym,this),onItemClick:(0,c.A)(Tm,this)})}}function Sm(e){let{list:t,urlTemplate:i,actions:n,onActionClick:a,onItemClick:r}=e;return t?h().createElement("ul",null,null==t?void 0:t.map((e=>h().createElement("li",{className:"item",key:e.instanceId},h().createElement(_m,{knowledge:e,urlTemplate:i,actions:n,onActionClick:a,onItemClick:r}))))):h().createElement("div",{className:"loading"},h().createElement(pm,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}function _m(e){let{knowledge:t,urlTemplate:i,actions:n,onActionClick:a,onItemClick:r}=e;const[s,o]=(0,p.useState)(!1);return h().createElement(dm,{className:pn()("link",{"actions-active":s}),url:(0,Sn.Q)(i,t),onClick:()=>null==r?void 0:r(t)},h().createElement("div",{className:"main"},h().createElement("div",{className:"header"},h().createElement(pm,{className:"icon",lib:"easyops",icon:"lightbulb",category:"common"}),h().createElement("span",{className:"title"},t.name),h().createElement(pm,{className:"attachment",lib:"lucide",icon:"paperclip"})),t.description&&h().createElement("div",{className:"description"},t.description)),h().createElement("div",{className:"time"},(0,au.P)(1e3*t.time,au.c.relative)),h().createElement("div",{className:"operations"},h().createElement(um,{className:"actions",actions:n,onActionClick:e=>{a({action:e.detail,item:t})},onVisibleChange:e=>{o(e.detail)}}),h().createElement(hm,{className:"avatar",size:"small",nameOrInstanceId:t.user})))}Ku=Cm,({e:[qu,Xu,Qu,Zu,em,tm,im,nm,am,rm,sm,om,lm,cm],c:[Am,$u]}=(0,d.A)(Ku,[mm("ai-portal.project-knowledges",{styleTexts:[Ju.A]})],[[gm({attribute:!1}),1,"list"],[gm(),1,"urlTemplate"],[gm({attribute:!1}),1,"actions"],[bm({type:"action.click"}),1,"actionClick",e=>(0,c.A)(fm,e),(e,t)=>(0,l.A)(fm,e,t)],[bm({type:"item.click"}),1,"itemClick",e=>(0,c.A)(wm,e),(e,t)=>(0,l.A)(wm,e,t)]],0,(e=>Tm.has((0,s.A)(e))),m.ReactNextElement)),$u();let Nm=function(e){return e.STARTED_A_CHAT="STARTED_A_CHAT",e.CREATED_THIS_GOAL="CREATED_THIS_GOAL",e.CHANGED_THE_GOAL_TITLE="CHANGED_THE_GOAL_TITLE",e.CHANGED_THE_GOAL_DESCRIPTION="CHANGED_THE_GOAL_DESCRIPTION",e.CHANGED_THE_GOAL="CHANGED_THE_GOAL",e.DELETED_THIS_GOAL="DELETED_THIS_GOAL",e.DECOMPOSED_THIS_GOAL="DECOMPOSED_THIS_GOAL",e.SET_OWNER="SET_OWNER",e.REMOVED_GOAL_PARTICIPANTS="REMOVED_GOAL_PARTICIPANTS",e.ADDED_GOAL_PARTICIPANTS="ADDED_GOAL_PARTICIPANTS",e.COMMENTED="COMMENTED",e.COMMA="COMMA",e.SEMICOLON="SEMICOLON",e}({});const Rm="bricks/ai-portal/activity-timeline",Mm=g.i18n.getFixedT(null,Rm);var Im,Wm=i(14763);let Om,Dm,Lm,Pm,zm;(0,g.initializeI18n)(Rm,{en:{STARTED_A_CHAT:"started a chat",CREATED_THIS_GOAL:"created this goal",CHANGED_THE_GOAL_TITLE:'changed the goal title to "{{ title }}"',CHANGED_THE_GOAL_DESCRIPTION:'changed the goal description to "{{ description }}"',CHANGED_THE_GOAL:"changed the goal",DELETED_THIS_GOAL:"deleted this goal",DECOMPOSED_THIS_GOAL:"decomposed this goal to {{ count }} sub-goal: ",DECOMPOSED_THIS_GOAL_plural:"decomposed this goal to {{ count }} sub-goals: ",SET_OWNER:"set {{ user }} as the owner",REMOVED_GOAL_PARTICIPANTS:"removed a goal participant: ",REMOVED_GOAL_PARTICIPANTS_plural:"removed {{ count }} goal participants: ",ADDED_GOAL_PARTICIPANTS:"added a goal participant: ",ADDED_GOAL_PARTICIPANTS_plural:"added {{ count }} goal participants: ",COMMENTED:"commented",COMMA:", ",SEMICOLON:"; "},zh:{STARTED_A_CHAT:"发起了对话",CREATED_THIS_GOAL:"创建了此目标",CHANGED_THE_GOAL_TITLE:"修改目标标题为 “{{ title }}”",CHANGED_THE_GOAL_DESCRIPTION:"修改目标描述为 “{{ description }}”",CHANGED_THE_GOAL:"修改了此目标",DELETED_THIS_GOAL:"删除了此目标",DECOMPOSED_THIS_GOAL:"将此目标分解为 {{ count }} 个子目标:",DECOMPOSED_THIS_GOAL_plural:"将此目标分解为 {{ count }} 个子目标:",SET_OWNER:"设定负责人为 {{ user }}",REMOVED_GOAL_PARTICIPANTS:"移除了目标参与成员:",ADDED_GOAL_PARTICIPANTS:"添加了目标参与成员:",COMMENTED:"评论",COMMA:",",SEMICOLON:";"}});const Um=(0,m.wrapBrick)("eo-link"),Hm=(0,m.wrapBrick)("eo-icon"),Bm=(0,m.wrapBrick)("eo-easyops-avatar"),{defineElement:Vm,property:jm}=(0,u.createDecorators)();let Fm;var Gm=new WeakMap,Ym=new WeakMap;class Km extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Gm,Dm(this)),(0,r.A)(this,Ym,(Lm(this),Pm(this))),zm(this)}get list(){return(0,c.A)(Gm,this)}set list(e){(0,l.A)(Gm,this,e)}get chatUrlTemplate(){return(0,c.A)(Ym,this)}set chatUrlTemplate(e){(0,l.A)(Ym,this,e)}render(){return h().createElement(Jm,{list:this.list,chatUrlTemplate:this.chatUrlTemplate})}}function Jm(e){let{list:t,chatUrlTemplate:i}=e;return t?h().createElement("ul",null,t.map(((e,t)=>{var n,a;return h().createElement("li",{className:"activity",key:t},h().createElement("div",{className:"guide-line"}),h().createElement("div",{className:"main"},h().createElement(Bm,{className:"avatar",nameOrInstanceId:e.user_id,size:"xs"}),h().createElement("span",{className:"action"},e.user_name," ","start_conversation"===e.action_type?h().createElement(h().Fragment,null,h().createElement("span",null,Mm(Nm.STARTED_A_CHAT)),h().createElement(Um,{className:"conversation",url:(0,Sn.Q)(i,e),target:"_blank"},null===(n=e.metadata)||void 0===n?void 0:n.conversation_title),h().createElement(Hm,{className:"external-link-icon",lib:"lucide",icon:"external-link"})):"create_goal"===e.action_type?Mm(Nm.CREATED_THIS_GOAL):"edit_goal"===e.action_type?e.metadata.after.title?Mm(Nm.CHANGED_THE_GOAL_TITLE,e.metadata.after):e.metadata.after.description?Mm(Nm.CHANGED_THE_GOAL_DESCRIPTION,e.metadata.after):Mm(Nm.CHANGED_THE_GOAL):"delete_goal"===e.action_type?Mm(Nm.DELETED_THIS_GOAL):"decompose_goals"===e.action_type?`${Mm(Nm.DECOMPOSED_THIS_GOAL,{count:e.metadata.sub_goals_count})}${e.metadata.sub_goals.map((e=>e.title)).join(Mm(Nm.COMMA))}`:"alter_owner"===e.action_type?Mm(Nm.SET_OWNER,{user:e.metadata.after.owner.user_name}):"alter_user"===e.action_type?function(e){const t=[],i=[],n=new Set(e.metadata.before.users.map((e=>e.user_name)));for(const t of e.metadata.after.users)n.has(t.user_name)||i.push(t.user_name);const a=new Set(e.metadata.after.users.map((e=>e.user_name)));for(const i of e.metadata.before.users)a.has(i.user_name)||t.push(i.user_name);const r=[];return t.length>0&&r.push(Mm(Nm.REMOVED_GOAL_PARTICIPANTS,{count:t.length})+t.join(Mm(Nm.COMMA))),i.length>0&&r.push(Mm(Nm.ADDED_GOAL_PARTICIPANTS,{count:i.length})+i.join(Mm(Nm.COMMA))),r.join(Mm(Nm.SEMICOLON))}(e):"add_comment"===e.action_type?Mm(Nm.COMMENTED):e.action_type),h().createElement("span",{className:"time",title:(0,au.P)(e.time,au.c.full)},(0,au.P)(e.time,au.c.relative))),"add_comment"===e.action_type&&h().createElement("div",{className:"comment"},null===(a=e.metadata)||void 0===a?void 0:a.comment_content))}))):h().createElement("div",{className:"loading"},h().createElement(Hm,{lib:"antd",icon:"loading-3-quarters",spinning:!0}))}Im=Km,({e:[Dm,Lm,Pm,zm],c:[Fm,Om]}=(0,d.A)(Im,[Vm("ai-portal.activity-timeline",{styleTexts:[Wm.A]})],[[jm({attribute:!1}),1,"list"],[jm(),1,"chatUrlTemplate"]],0,void 0,m.ReactNextElement)),Om();let $m=function(e){return e.TERMINATE_THE_TASK="TERMINATE_THE_TASK",e}({});const qm="bricks/ai-portal/chat-input",Xm=g.i18n.getFixedT(null,qm);var Qm,Zm=i(84479);let eg,tg,ig,ng,ag,rg,sg,og,lg,cg,dg,pg,hg,ug,mg,gg,bg,Ag,kg;(0,g.initializeI18n)(qm,{en:{TERMINATE_THE_TASK:"Terminate the task"},zh:{TERMINATE_THE_TASK:"终止任务"}});const xg={lib:"antd",icon:"loading-3-quarters",spinning:!0},Eg={lib:"fa",prefix:"far",icon:"circle-stop"},fg=(0,m.wrapBrick)("eo-icon"),vg=(0,m.wrapBrick)("ai-portal.icon-button"),{defineElement:wg,property:yg,event:Tg}=(0,u.createDecorators)();let Cg;var Sg=new WeakMap,_g=new WeakMap,Ng=new WeakMap,Rg=new WeakMap,Mg=new WeakMap,Ig=new WeakMap,Wg=new WeakSet,Og=new WeakMap,Dg=new WeakMap,Lg=new WeakMap;class Pg extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Wg),(0,r.A)(this,Sg,tg(this)),(0,r.A)(this,_g,(ig(this),ng(this))),(0,r.A)(this,Ng,(ag(this),rg(this))),(0,r.A)(this,Rg,(sg(this),og(this))),(0,r.A)(this,Mg,(lg(this),cg(this))),(0,r.A)(this,Ig,(dg(this),pg(this))),(0,r.A)(this,Og,(mg(this),e=>{(0,o.A)(Wg,this,hg).emit(e)})),(0,r.A)(this,Dg,gg(this)),(0,r.A)(this,Lg,(kg(this),()=>{(0,o.A)(Wg,this,bg).emit()}))}get placeholder(){return(0,c.A)(Sg,this)}set placeholder(e){(0,l.A)(Sg,this,e)}get autoFocus(){return(0,c.A)(_g,this)}set autoFocus(e){(0,l.A)(_g,this,e)}get submitDisabled(){return(0,c.A)(Ng,this)}set submitDisabled(e){(0,l.A)(Ng,this,e)}get supportsTerminate(){return(0,c.A)(Rg,this)}set supportsTerminate(e){(0,l.A)(Rg,this,e)}get terminating(){return(0,c.A)(Mg,this)}set terminating(e){(0,l.A)(Mg,this,e)}render(){return h().createElement(zg,{placeholder:this.placeholder,autoFocus:this.autoFocus,submitDisabled:this.submitDisabled,supportsTerminate:this.supportsTerminate,terminating:this.terminating,onSubmit:(0,c.A)(Og,this),onTerminate:(0,c.A)(Lg,this)})}}function zg(e){let{placeholder:t,autoFocus:i,submitDisabled:n,supportsTerminate:a,terminating:r,onSubmit:s,onTerminate:o}=e;const l=(0,p.useRef)(null),c=(0,p.useRef)(null),[d,u]=(0,p.useState)(""),m=(0,p.useRef)(""),[g,b]=(0,p.useState)(!1);(0,p.useEffect)((()=>{var e;i&&!n&&(null===(e=c.current)||void 0===e||e.focus())}),[i,n]);const A=(0,p.useCallback)((e=>{!n&&e&&(s(e),m.current="",u(""))}),[n,s]),k=(0,p.useCallback)((e=>{A(e.currentTarget.value)}),[A]),x=(0,p.useCallback)((e=>{m.current=e.target.value,u(e.target.value)}),[]),E=(0,p.useCallback)((()=>{A(m.current)}),[A]);(0,p.useEffect)((()=>{const e=null==l?void 0:l.current;if(!e)return;const t=new kt.A((t=>{for(const i of t)i.target===e&&(i.contentBoxSize?i.contentBoxSize[0]?i.contentBoxSize[0].blockSize:i.contentBoxSize.blockSize:i.contentRect.height)>52&&b(!0)}));return t.observe(e),()=>{t.disconnect()}}),[]),(0,p.useEffect)((()=>{d||b(!1)}),[d]);const f=(0,p.useCallback)((e=>{var t;for(const t of e.nativeEvent.composedPath())if(t instanceof HTMLTextAreaElement||t instanceof HTMLButtonElement)return;null===(t=c.current)||void 0===t||t.focus()}),[]);return h().createElement("div",{className:"container",onClick:f},h().createElement("div",{className:pn()("box",{wrap:g})},h().createElement("div",{className:"input",ref:l},h().createElement(ft,{containerRef:l,ref:c,value:d,minRows:1,maxRows:4,borderSize:0,paddingSize:16,autoResize:!0,placeholder:t,submitWhen:"enter-without-shift",onSubmit:k,onChange:x})),h().createElement("div",{className:"toolbar"},n&&a?h().createElement(h().Fragment,null,r?h().createElement(vg,{icon:xg,disabled:!0}):h().createElement(vg,{icon:Eg,tooltip:Xm($m.TERMINATE_THE_TASK),onClick:o})):h().createElement("button",{className:"btn-send",disabled:n||!d,onClick:E},h().createElement(fg,{lib:"fa",icon:"arrow-up"})))))}Qm=Pg,({e:[tg,ig,ng,ag,rg,sg,og,lg,cg,dg,pg,hg,ug,mg,gg,bg,Ag,kg],c:[Cg,eg]}=(0,d.A)(Qm,[wg("ai-portal.chat-input",{styleTexts:[Zm.A],shadowOptions:{delegatesFocus:!0}})],[[yg(),1,"placeholder"],[yg({type:Boolean}),1,"autoFocus"],[yg({type:Boolean}),1,"submitDisabled"],[yg({type:Boolean}),1,"supportsTerminate"],[yg({type:Boolean}),1,"terminating"],[Tg({type:"message.submit"}),1,"messageSubmit",e=>(0,c.A)(Ig,e),(e,t)=>(0,l.A)(Ig,e,t)],[Tg({type:"terminate"}),1,"terminate",e=>(0,c.A)(Dg,e),(e,t)=>(0,l.A)(Dg,e,t)]],0,(e=>Lg.has((0,s.A)(e))),m.ReactNextElement)),eg();const Ug=i.p+"images/e47076cc.png";var Hg,Bg=i(31653);let Vg;const{defineElement:jg}=(0,u.createDecorators)();let Fg;class Gg extends m.ReactNextElement{render(){return h().createElement("img",{className:"logo",alt:"Elevo",src:Ug,width:95,height:28})}}Hg=Gg,[Fg,Vg]=(0,d.A)(Hg,[jg("ai-portal.elevo-logo",{styleTexts:[Bg.A]})],[],0,void 0,m.ReactNextElement).c,Vg();let Yg=function(e){return e.WATCH_REPLAY="WATCH_REPLAY",e}({});const Kg="bricks/ai-portal/show-case",Jg={en:{[Yg.WATCH_REPLAY]:"Watch replay"},zh:{[Yg.WATCH_REPLAY]:"查看回放"}},$g=g.i18n.getFixedT(null,Kg);var qg,Xg=i(46122);let Qg,Zg,eb,tb,ib,nb,ab;(0,g.initializeI18n)(Kg,Jg);const rb=["purple","green","pink"],sb=(0,m.wrapBrick)("eo-icon"),ob=(0,m.wrapBrick)("eo-link"),{defineElement:lb,property:cb}=(0,u.createDecorators)();let db;var pb=new WeakMap,hb=new WeakMap,ub=new WeakMap;class mb extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,pb,Zg(this)),(0,r.A)(this,hb,(eb(this),tb(this))),(0,r.A)(this,ub,(ib(this),nb(this))),ab(this)}get caseTitle(){return(0,c.A)(pb,this)}set caseTitle(e){(0,l.A)(pb,this,e)}get summary(){return(0,c.A)(hb,this)}set summary(e){(0,l.A)(hb,this,e)}get url(){return(0,c.A)(ub,this)}set url(e){(0,l.A)(ub,this,e)}render(){return h().createElement(gb,{caseTitle:this.caseTitle,summary:this.summary,url:this.url})}}function gb(e){let{caseTitle:t,summary:i,url:n}=e;return h().createElement(ob,{className:`link ${rb[Math.floor(Math.random()*rb.length)]}`,url:n},h().createElement("span",{className:"title"},t),h().createElement("span",{className:"description"},i),h().createElement("span",{className:"mask"}),h().createElement("span",{className:"button"},h().createElement(sb,{lib:"easyops",icon:"replay"}),$g(Yg.WATCH_REPLAY)))}qg=mb,({e:[Zg,eb,tb,ib,nb,ab],c:[db,Qg]}=(0,d.A)(qg,[lb("ai-portal.show-case",{styleTexts:[Xg.A]})],[[cb(),1,"caseTitle"],[cb(),1,"summary"],[cb(),1,"url"]],0,void 0,m.ReactNextElement)),Qg(),customElements.define("ai-portal.call-tool",(0,Ql.createProviderClass)((async function(e,t){return(await wn.http.post(`api/gateway/logic.llm.aiops_service/api/v1/elevo/conversation/${e.conversationId}/step/${e.stepId}/view`,{params:t})).data})));const bb=i.p+"images/449e2e64.png",Ab=i.p+"images/fc2c99bb.png";var kb,xb=i(19428);let Eb,fb,vb,wb,yb;const{defineElement:Tb,property:Cb}=(0,u.createDecorators)();let Sb;var _b=new WeakMap,Nb=new WeakMap;class Rb extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,_b,fb(this)),(0,r.A)(this,Nb,(vb(this),wb(this))),yb(this)}get illustration(){return(0,c.A)(_b,this)}set illustration(e){(0,l.A)(_b,this,e)}get description(){return(0,c.A)(Nb,this)}set description(e){(0,l.A)(Nb,this,e)}render(){return h().createElement(Mb,{illustration:this.illustration,description:this.description})}}function Mb(e){let{illustration:t,description:i}=e;return h().createElement(h().Fragment,null,h().createElement("img",{src:Ib(t),width:184,height:138}),h().createElement("p",null,i))}function Ib(e){return"goals"===e?bb:Ab}kb=Rb,({e:[fb,vb,wb,yb],c:[Sb,Eb]}=(0,d.A)(kb,[Tb("ai-portal.blank-state",{styleTexts:[xb.A]})],[[Cb(),1,"illustration"],[Cb(),1,"description"]],0,void 0,m.ReactNextElement)),Eb();var Wb,Ob=i(81129);let Db,Lb,Pb;const{defineElement:zb,property:Ub}=(0,u.createDecorators)();let Hb;var Bb=new WeakMap;class Vb extends m.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Bb,Lb(this)),Pb(this)}get variant(){return(0,c.A)(Bb,this)}set variant(e){(0,l.A)(Bb,this,e)}render(){return h().createElement(jb,null)}}function jb(){return h().createElement("slot",null)}Wb=Vb,({e:[Lb,Pb],c:[Hb,Db]}=(0,d.A)(Wb,[zb("ai-portal.sticky-container",{styleTexts:[Ob.A]})],[[Ub({render:!1}),1,"variant"]],0,void 0,m.ReactNextElement)),Db()},46121:(e,t,i)=>{e.exports=i.p+"images/69cf3ae2.png"},46122:(e,t,i)=>{i.d(t,{A:()=>b});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(56791),i.b),d=new URL(i(88786),i.b),p=new URL(i(46121),i.b),h=s()(a()),u=l()(c),m=l()(d),g=l()(p);h.push([e.id,`:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.link{display:block;background:rgba(255,255,255,0.6);border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-size:cover;background-position:center;background-repeat:no-repeat;background-clip:padding-box;overflow:hidden}.purple{background-image:url(${u})}.green{background-image:url(${m})}.pink{background-image:url(${g})}.link::part(link){display:flex;flex-direction:column;gap:0;box-sizing:border-box;height:128px;padding:20px;position:relative}.title{width:100%;margin-bottom:8px;color:#262626;font-weight:500;font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description{width:100%;height:60px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;color:#18212f;line-height:20px}.link::part(link):hover{box-shadow:0px 4px 12px 0px rgba(96,96,138,0.15),0px 2px 4px 0px rgba(96,96,138,0.06)}.button{display:none;position:absolute;bottom:12px;left:20px;right:20px;height:32px;background:rgba(0,0,0,0.04);border-radius:8px;align-items:center;justify-content:center;gap:4px;color:#262626}.button:hover{background:rgba(0,0,0,0.08)}.link:hover .button{display:flex}.link:hover .description{-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.11) 51%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.11) 51%,rgba(0,0,0,0) 100%);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 60%;mask-size:100% 60%}`,""]);const b=h.toString()},46342:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,".goal-item{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;padding:12px 24px;background-color:rgba(255,255,255,0.6);border-radius:8px;-webkit-user-select:none;user-select:none;border:1px solid transparent}.goal-item:hover,.goal-item:has(.title:focus){background-color:rgba(0,0,0,0.05)}.goal-item:has(.title:focus) .end .operation{display:flex}.goal-item:hover:not(.does-not-exist) .end .operation{display:flex}.goal-item:has(.title:focus) .end .info{display:none}.goal-item:hover:not(.does-not-exist) .end .info{display:none}.goal-item.completed .serial-number,.goal-item.completed .title{color:#bfbfbf}.goal-item.active{background:rgba(37,64,255,0.1);border:1px solid #2540ff}.goal-item > *{-webkit-user-select:auto;user-select:auto}.goal-item .start,.goal-item .end{display:flex;align-items:center}.goal-item .start{flex:1;min-width:0;column-gap:16px;min-width:0}.goal-item .end{flex-shrink:0;column-gap:30px}.goal-item .end .operation{display:none;align-items:center;gap:8px}.goal-item .end .operation eo-button::part(button){height:28px}.goal-item .end .operation .new-chat::part(button){padding:5px 10px;font-size:13px}.goal-item .end .operation .append-child::part(button){padding:5px 8px;font-size:14px}.goal-item .end .info{display:inline-flex;align-items:center;column-gap:24px}.goal-item .serial-number{font-weight:400;color:var(--palette-gray-7);font-size:16px;overflow:visible}.goal-item .title{font-weight:500;padding:2px 4px;font-size:16px;color:var(--palette-gray-10);border:1px solid transparent;border-radius:8px;cursor:pointer;min-width:80px}.goal-item .title:hover{background-color:rgba(255,255,255,0.6);border:1px solid var(--palette-gray-5);cursor:text}.goal-item .title:focus{outline:none;background-color:rgba(255,255,255,0.6);border:1px solid var(--elevo-color-brand)}.goal-item .icon{border-radius:8px;padding:6px;position:relative;top:2px}.goal-item .icon:hover{background-color:rgba(0,0,0,0.04)}.goal-item .message{color:var(--palette-gray-7);display:inline-flex;align-items:center;column-gap:6px}.goal-item .message .count{font-weight:500;color:var(--palette-gray-10)}.goal-item:not(.editing) .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",""]);const o=s.toString()},47008:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(47336),i.b),d=s()(a()),p=l()(c);d.push([e.id,`:host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.root{color:#262626;background:url(${p}) no-repeat center bottom;background-size:100% 104px;padding:12px 12px 29px;margin:0 -12px}.container{position:relative;background:#ffffff;box-shadow:0px 2px 4px 0px rgba(38,45,65,0.1);border-radius:16px;border:1px solid #dadfe8}.container:has(textarea:focus){border-color:#b7c3d8}textarea{display:block;width:100%;padding:10px 16px 50px;color:var(--antd-input-color);border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.5);font:inherit;font-size:14px;line-height:22px;height:120px}textarea::placeholder{color:rgba(0,0,0,0.4)}.btn-send:focus,\ntextarea:focus{outline:none}.actions-bar{position:absolute;bottom:12px;left:14px;right:14px;display:flex;align-items:flex-end;justify-content:space-between;gap:6px}.btn-send{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--elevo-color-brand);border:none;border-radius:8px;color:#fff;flex-shrink:0}.btn-send[disabled]{background:rgba(0,0,0,0.15)}.btn-send:not([disabled]){cursor:pointer}.btn-send:not([disabled]):hover{background:#5166ff}.btn-send:not([disabled]):active{background:#1e33cc}.mentions{position:absolute}.mention-overlay{position:absolute;border-radius:4px;pointer-events:none;background:rgba(38,45,65,0.1)}`,""]);const h=d.toString()},47336:(e,t,i)=>{e.exports=i.p+"images/25c20165.png"},47338:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,':host{display:inline-block}:host([hidden]){display:none}:host,\neo-tooltip{vertical-align:middle}button{width:28px;height:28px;font-size:18px;border-radius:8px;display:flex;align-items:center;justify-content:center;border:none;background:none;color:#333}button:disabled{color:#8c8c8c}button:not(:disabled){cursor:pointer}button:focus{outline:none}button:not(:disabled):hover{background:rgba(0,0,0,0.04)}button:not(:disabled):active{background:rgba(0,0,0,0.08)}:host([variant="light"]) button{color:#595959}:host([variant="mini"]) button{width:24px;height:24px;font-size:16px;border-radius:4px}:host([variant="mini-light"]) button{color:#8c8c8c;width:20px;height:20px;font-size:14px;border-radius:4px}:host([variant="bordered"]) button{background:#ffffff;border-radius:8px;border:1px solid rgba(0,0,0,0.1);color:#595959;width:32px;height:32px;font-size:18px}:host([variant="bordered"]) button:not(:disabled):hover{background:rgba(0,0,0,0.04)}',""]);const o=s.toString()},49041:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(25676),i.b),d=s()(a()),p=l()(c);d.push([e.id,`:host{display:block;position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${p});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:0 54px 48px;overflow-y:auto}:host([hidden]){display:none}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto}:host([size="small"]) .container{max-width:1000px}.sticky-header{margin:0 -24px;padding:17px 24px 30px}.non-sticky-header{padding:17px 0 30px}.header{display:flex;justify-content:space-between;align-items:center}nav{font-weight:500;font-size:20px;line-height:28px;display:flex;min-width:0;white-space:nowrap;flex-wrap:wrap}h1{margin:0;font-size:inherit;line-height:inherit}.breadcrumbs{list-style:none;padding:0;margin:0;color:#bfbfbf}.breadcrumbs eo-link::part(link){color:inherit}.breadcrumbs eo-link::part(link):hover{color:#595959}.breadcrumbs li::after{content:"/";margin:0 8px}@media (max-width: 719px){:host{padding-left:24px;padding-right:24px}nav{margin-left:40px}}`,""]);const h=d.toString()},56791:(e,t,i)=>{e.exports=i.p+"images/3e0f6758.png"},61408:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,':host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.sidebar{position:relative;z-index:2;width:260px;height:100%;background:rgba(246,247,249,0.5);border:1px solid rgba(255,255,255,0.3);border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:23px 11px 0;display:flex;flex-direction:column;transition:transform 0.3s ease-in-out}.logo-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;margin-left:4px}.logo-link::part(link){display:block}.logo{vertical-align:middle}.new-chat::part(link){display:flex;gap:0;align-items:center;color:var(--elevo-color-brand);font-size:14px;text-align:left;cursor:pointer}.sidebar .new-chat::part(link){background:#f0f4ff;border-radius:8px;border:1px solid #c9d7ff;padding:9px 13px;font-weight:500;margin-bottom:16px}.sidebar .new-chat::part(link):hover{background:rgba(201,215,255,0.5)}.new-chat-icon{font-size:16px;margin-right:5px}.footer{border-top:1px solid rgba(0,0,0,0.04);padding:9px 12px;margin:0 -12px}.dropdown{display:block}.account{background:none;border:none;border-radius:8px;padding:6px 10px;display:block;width:100%;text-align:left;cursor:pointer}.account:hover{background:rgba(0,0,0,0.04)}.alternative{position:fixed;top:8px;left:8px;padding:6px 10px 6px 8px;display:flex;align-items:center;opacity:0;z-index:2;transition:opacity 0.2s ease-in-out;background:rgba(255,255,255,0);border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.alternative .new-chat::part(link){padding:4px;margin-left:16px;font-size:12px}.alternative .new-chat::part(link):hover{color:#7891ff}.alternative .new-chat::part(link):active{color:#0911b3}.container{width:270px;padding:10px 0 10px 10px;height:100%;transition:width 0.3s ease-in-out,padding 0.3s ease-in-out}.container.collapsed{width:0;padding:10px 0;overflow:visible}.container.collapsed .sidebar{transform:translateX(-100%)}.container.collapsed .alternative{opacity:1}:host([behavior="drawer"]){z-index:2;width:0}:host(:not([behavior="drawer"])) .alternative .new-chat{display:none}.mask{position:fixed;top:0;right:0;bottom:0;left:0}.links{border-bottom:1px solid rgba(0,0,0,0.06);padding-bottom:16px;margin-bottom:16px}.link{display:block}.link + .link{margin-top:4px}.link::part(link){display:flex;gap:0;align-items:center;padding:7px 10px;border-radius:8px;color:#000}.link::part(link):hover{background:rgba(0,0,0,0.04)}.link .icon{font-size:16px;margin-right:10px}.link .title{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.history{flex:1;min-height:0;overflow-y:auto;margin:0 -12px;padding:0 12px}.history ul{list-style:none;margin:0;padding:0}.history .section + .section{margin-top:14px}.history .section-title{display:flex;align-items:center;justify-content:space-between;height:30px;margin-bottom:6px;padding:0 8px}.history .section-label{display:flex;align-items:center;height:24px;padding:0 8px;margin-left:-8px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;font-size:12px;color:#8c8c8c;border-radius:8px}.history .section-label eo-icon{vertical-align:middle;margin-left:6px;transition:transform 0.2s ease-in-out}.history .section-label:hover{background:rgba(0,0,0,0.04)}.history .collapsed > ul{display:none}.history .collapsed .section-label eo-icon{transform:rotate(-90deg)}.history .error,.history .loading{display:flex;align-items:center;height:36px;padding:0 8px}.history .loading{justify-content:center}.history .error{color:var(--color-error)}.history .group + .group{margin-top:15px}.history .group-title{font-weight:500;font-size:12px;color:#000;padding:8px;height:36px;line-height:20px}.history .item{display:block}.history .item::part(link){display:flex;align-items:center;padding:0 8px;height:36px;border-radius:8px;color:#000}.history .item.active::part(link){background:rgba(0,0,0,0.06)}.history .item.actions-active::part(link),.history .item::part(link):hover{background:rgba(0,0,0,0.04)}.history .item-title{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.history .actions{cursor:auto}.history .item:not(:hover):not(.actions-active) .actions{display:none}.history .working{width:8px;height:8px;border-radius:8px;background:var(--elevo-color-brand);margin:0 7px}.history .item.actions-active .working,.history .item:hover .working,.history .item.active .working{display:none}.history .load-more{display:flex;justify-content:center;align-items:center;height:36px}',""]);const o=s.toString()},62522:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,"ai-portal\\.preview-container{display:block;background:rgba(247,248,250,1)}.loading--uD2jY9vX{position:absolute;top:50%;left:50%;font-size:48px;color:var(--palette-gray-5);margin:0 -24px}",""]),s.locals={loading:"loading--uD2jY9vX"};const o=s},79286:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}ul{list-style:none;margin:0;padding:0}.link{display:block}.link::part(link){display:flex;align-items:center;gap:16px;padding:12px 24px;color:#262626;background:rgba(255,255,255,0.6);border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.link.actions-active::part(link),\n.link::part(link):hover{background:rgba(0,0,0,0.05);-webkit-backdrop-filter:none;backdrop-filter:none}.item:not(:last-child){margin-bottom:4px}.icon{font-size:18px;margin-right:8px}.title{font-weight:500;font-size:16px}.title,\n.description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goal{background:#f0fff8;border-radius:4px;font-weight:500;font-size:12px;color:#1dc897;line-height:20px;padding:2px 8px;white-space:nowrap}.goal.global{background:#e6f4ff;color:#1a7aff}.header{display:flex;align-items:center}.description{color:#595959;margin-top:6px;padding-left:28px;line-height:20px}.time{color:rgba(0,0,0,0.45);white-space:nowrap}.main{flex:1;min-width:0}.operations{display:flex;align-items:center;justify-content:right;width:100px}.operations.lang-zh{width:64px}.link.actions-active .time,\n.link:hover .time,\n.link:not(:hover):not(.actions-active) .actions{display:none}.loading{display:flex;align-items:center;justify-content:center;padding:24px;font-size:20px;color:#595959}",""]);const o=s.toString()},81129:(e,t,i)=>{i.d(t,{A:()=>m});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(25676),i.b),d=new URL(i(32360),i.b),p=s()(a()),h=l()(c),u=l()(d);p.push([e.id,`:host{display:block;position:sticky;top:0}:host([hidden]){display:none}:host::before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background-color:rgb(205,206,207);background-image:url(${h});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed;pointer-events:none}:host([variant="home"])::before{background-color:#f1f1f1;background-image:url(${u})}`,""]);const m=p.toString()},82165:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(32360),i.b),d=s()(a()),p=l()(c);d.push([e.id,`:host{display:block;padding:24px 54px 72px}:host([sticky]){padding-top:0}:host([hidden]){display:none}:host::before{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background-color:#f1f1f1;background-image:url(${p});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}@media (max-width: 719px){:host{padding-left:24px;padding-right:24px}}`,""]);const h=d.toString()},83059:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(25676),i.b),d=s()(a()),p=l()(c);d.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${p});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:48px 24px;overflow-y:auto}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto}h1{font-weight:500;margin:0;font-size:20px;line-height:28px;margin-bottom:17px}.list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.link{display:block;height:100%}.link::part(link){display:block;height:100%;color:#262626;background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px;box-sizing:border-box}.link:not(.clickable)::part(link){cursor:auto}.clickable::part(link):hover{box-shadow:0px 4px 10px 0px rgba(0,0,0,0.1)}.heading{display:flex;align-items:center}.icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#ffffff;border-radius:12px;border:1px solid #e8e9ec;font-size:32px;color:#595959;margin-right:16px}.title{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clickable::part(link):hover .title{color:var(--elevo-color-brand)}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tags{display:flex;gap:6px;margin:16px 0 -3px}.tag{display:block;background:rgba(0,0,0,0.04);border-radius:4px;font-size:12px;line-height:22px;padding:0 7px}`,""]);const h=d.toString()},84479:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r)()(a());s.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container{background-color:#fff;border:2px solid #7891ff;border-radius:12px;box-shadow:0px 9px 28px 8px rgba(0,0,0,0.05),0px 6px 16px 0px rgba(0,0,0,0.08),0px 3px 6px -4px rgba(0,0,0,0.12);cursor:text}.container:not(:has(textarea:focus)){background-color:rgba(255,255,255,0.5);border-color:#99c4ff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.box{display:flex;flex-wrap:wrap;border-radius:10px;padding:8px}.input{min-width:0;flex:1}.wrap .input{flex-basis:100%}.input textarea{display:block;width:100%;padding:8px;font:inherit;font-size:16px;line-height:24px;color:var(--antd-input-color);border:none;background:none;height:24px;color:#262626}.input textarea::placeholder{color:#bfbfbf}.toolbar{padding:5px 0 5px 8px;margin-left:auto;display:flex;align-items:center;gap:2px}.btn-send:focus,\ntextarea:focus{outline:none}.btn-send{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--elevo-color-brand);border:none;border-radius:8px;color:#fff}.btn-send:disabled{background:rgba(0,0,0,0.15)}.btn-send:not(:disabled){cursor:pointer}.btn-send:not(:disabled):hover{background:#5166ff}.btn-send:not(:disabled):active{background:#1e33cc}",""]);const o=s.toString()},88786:(e,t,i)=>{e.exports=i.p+"images/e15a6988.png"},98036:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(36758),a=i.n(n),r=i(40935),s=i.n(r),o=i(20062),l=i.n(o),c=new URL(i(25676),i.b),d=s()(a()),p=l()(c);d.push([e.id,`:host{display:block}:host([hidden]){display:none}:host([with-container]){position:relative;width:100%;height:100%;overflow:hidden;background-color:rgb(205,206,207);background-image:url(${p});background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;color:#262626;padding:48px 24px;overflow-y:auto}*{box-sizing:border-box}.container{max-width:1400px;margin:0 auto;margin-bottom:17px}h1,\nh2{font-weight:500;margin:0}h1{font-size:20px;line-height:28px;margin-bottom:17px}h2{font-size:16px;line-height:22px}.groups,\n.list{list-style:none;margin:0;padding:0}.groups{margin-top:27px}.group + .group{margin-top:32px}.list{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.link{display:block;height:100%}.link::part(link){display:block;height:100%;color:#262626;background:rgba(255,255,255,0.9);box-shadow:0px 2px 5px 0px rgba(0,0,0,0.08);border-radius:12px;padding:20px 26px;box-sizing:border-box}.link:not(.clickable)::part(link){cursor:auto}.clickable::part(link):hover{box-shadow:0px 4px 10px 0px rgba(0,0,0,0.1)}.heading{display:flex;align-items:center}.avatar{width:48px;height:48px;border-radius:12px;margin-right:16px;background-color:#d5d6e6;display:flex;align-items:center;justify-content:center;font-size:24px}.avatar img{width:100%;height:100%}.title{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clickable::part(link):hover .title{color:var(--elevo-color-brand)}.description{margin-top:13px;font-size:13px;color:rgba(0,0,0,0.45);line-height:18px;height:54px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}`,""]);const h=d.toString()}}]);
3
- //# sourceMappingURL=8889.d377e773.js.map