@next-bricks/visual-builder 1.7.5 → 1.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +13 -13
- package/dist/chunks/5669.e20bf98b.js +2 -0
- package/dist/chunks/{5669.c0bcd8ec.js.map → 5669.e20bf98b.js.map} +1 -1
- package/dist/chunks/7222.13288913.js +3 -0
- package/dist/chunks/{7222.964f447f.js.map → 7222.13288913.js.map} +1 -1
- package/dist/chunks/8050.108f7edc.js +2 -0
- package/dist/chunks/{8050.0d264d7c.js.map → 8050.108f7edc.js.map} +1 -1
- package/dist/chunks/875.31570c4b.js +2 -0
- package/dist/chunks/875.31570c4b.js.map +1 -0
- package/dist/chunks/9027.b94fda3c.js +2 -0
- package/dist/chunks/{9027.56cad5a3.js.map → 9027.b94fda3c.js.map} +1 -1
- package/dist/chunks/9636.80de5582.js +3 -0
- package/dist/chunks/{9636.ecf3c18b.js.map → 9636.80de5582.js.map} +1 -1
- package/dist/chunks/main.4863bcd9.js +2 -0
- package/dist/chunks/{main.e09279cd.js.map → main.4863bcd9.js.map} +1 -1
- package/dist/chunks/workbench-action-list.130824bc.js +2 -0
- package/dist/chunks/{workbench-action-list.0b3ea2ad.js.map → workbench-action-list.130824bc.js.map} +1 -1
- package/dist/chunks/workbench-history-action.7fe7032c.js +3 -0
- package/dist/chunks/{workbench-history-action.cfd701d2.js.map → workbench-history-action.7fe7032c.js.map} +1 -1
- package/dist/index.463a3c02.js +2 -0
- package/dist/{index.a47867cb.js.map → index.463a3c02.js.map} +1 -1
- package/dist/manifest.json +67 -67
- package/dist/types.json +57 -57
- package/package.json +3 -3
- package/dist/chunks/5669.c0bcd8ec.js +0 -2
- package/dist/chunks/7222.964f447f.js +0 -3
- package/dist/chunks/8050.0d264d7c.js +0 -2
- package/dist/chunks/875.ac8439b8.js +0 -2
- package/dist/chunks/875.ac8439b8.js.map +0 -1
- package/dist/chunks/9027.56cad5a3.js +0 -2
- package/dist/chunks/9636.ecf3c18b.js +0 -3
- package/dist/chunks/main.e09279cd.js +0 -2
- package/dist/chunks/workbench-action-list.0b3ea2ad.js +0 -2
- package/dist/chunks/workbench-history-action.cfd701d2.js +0 -3
- package/dist/index.a47867cb.js +0 -2
- /package/dist/chunks/{7222.964f447f.js.LICENSE.txt → 7222.13288913.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9636.ecf3c18b.js.LICENSE.txt → 9636.80de5582.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.cfd701d2.js.LICENSE.txt → workbench-history-action.7fe7032c.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[9027],{6788:(e,t,n)=>{n.d(t,{b:()=>i});var r=n(8438),a=n(2153),o=n(6946);function i(e){var t=function(e){var t=new Set;return(0,a.h)(e,(e=>{switch(e.type){case"Resolvable":case"EventHandler":var n,r=null===(n=e.raw)||void 0===n?void 0:n.useProvider;r&&t.add(r)}})),t}((0,o.lN)(e)),n=[];for(var r of t)r.includes("@")&&n.push(r);return n}customElements.define("visual-builder.collect-used-contracts",(0,r.createProviderClass)(i))},9027:(e,t,n)=>{n.d(t,{A:()=>R});var r,a=n(6330),o=n(9740),i=n(4),s=n(1030),d=n(8317),l=n.n(d);function p(){return(p=(0,a.A)((function*(e,t){var n,r=yield l()(document.body,{logging:!1,scale:1,width:window.innerWidth,height:window.innerHeight,foreignObjectRendering:!0}),a=document.createElement("canvas");return function(e,t,n,r){var a=n/r,{width:o,height:i}=e,s=o/i,d=s>=a,l=d?n:r*s,p=d?n/s:r;t.width=l,t.height=p,t.getContext("2d").drawImage(e,0,0,o,i,0,0,l,p),t.toDataURL()}(r,a,e,t),yield(n=a,new Promise((function(e,t){n.toBlob((function(n){n?e(n):t()}))})))}))).apply(this,arguments)}function c(e){var t;e.preventDefault(),e.stopPropagation(),(t=y(e.composedPath())).length>0&&window.parent.postMessage({sender:"previewer",type:"select-brick",iidList:t},r)}function u(e){e.preventDefault(),e.stopPropagation()}var v=(0,s.throttle)((e=>{var t=y(e);t.length>0&&window.parent.postMessage({sender:"previewer",type:"hover-on-brick",iidList:t},r)}),100,{leading:!1});function h(e){e.preventDefault(),e.stopPropagation(),v(e.composedPath())}function w(e){e.preventDefault(),e.stopPropagation(),v(e.composedPath())}function m(e){e.preventDefault(),e.stopPropagation(),window.parent.postMessage({sender:"previewer",type:"hover-on-brick",iidList:[]},r)}function g(e){var t,n,a;e.preventDefault(),e.stopPropagation(),t=e.composedPath(),n={x:e.clientX,y:e.clientY},(a=y(t)).length>0&&window.parent.postMessage({sender:"previewer",type:"context-menu-on-brick",iidList:a,position:n},r)}function y(e){var t=[];for(var n of e)n instanceof HTMLElement&&"string"==typeof n.dataset.iid&&t.push(n.dataset.iid);return t}var f=n(6788);function b(e){var t=typeof e;switch(t){case"string":case"boolean":case"number":return{type:t,value:e};case"undefined":return{type:t}}return null===e?{type:"null"}:Array.isArray(e)?{type:"array",length:e.length}:{type:"object"}}var S=!1,E=i.getHistory,L=i.matchPath,k=i.__secret_internals,I=!1;try{var x,P=window.dll;if(P&&null!==(x=window.BRICK_NEXT_VERSIONS)&&void 0!==x&&null!==(x=x["brick-container"])&&void 0!==x&&x.startsWith("2.")){var{getHistory:C,developHelper:A}=P("tYg3"),{matchPath:T}=P("A+yw");E=C,L=T,k=(0,o.A)((0,o.A)({},A),{},{getContextValue(e,t){var{tplStateStoreId:n}=t;return A.getContextValue(e,{tplContextId:n})},getAllContextValues(e){var{tplStateStoreId:t}=e,n=A.getAllContextValues({tplContextId:t});return Object.fromEntries([...n].map((e=>{var[t,n]=e;return[t,n.value]})))}}),I=!0}}catch(e){console.error("Try to use v2 runtime APIs failed:",e)}var D=null,N=null;function R(e,t){return _.apply(this,arguments)}function _(){return _=(0,a.A)((function*(e,t){var n,d;if(!S){S=!0;var l,v,y,I,x=t=>{window.parent.postMessage((0,o.A)({sender:"previewer"},t),e)};x({type:"preview-started"}),r=e;var P,C=(e,t,n)=>{var r=M(t);x({type:"highlight-brick",highlightType:e,outlines:r,iid:t,alias:n})};t.templateId&&(P=t.settings);var A=()=>{k.updateTemplatePreviewSettings(t.appId,t.templateId,P),E().reload()},T=()=>{k.updateSnippetPreviewSettings(t.appId,JSON.parse(t.snippetData)),E().reload()},R=E();window.addEventListener("message",function(){var n=(0,a.A)((function*(n){var a,o,d,{data:b,origin:S}=n;if(S===e&&b&&"preview-container"===b.sender)if("builder"===b.forwardedFor)switch(b.type){case"hover-on-brick":l=b.iid,v=b.alias,C("hover",b.iid,b.alias);break;case"hover-on-main":C("hover","#main-mount-point","root");break;case"hover-on-context":d=b.highlightNodes.map((e=>M(e.iid,e.alias))).flat(),x({type:"highlight-context",outlines:d});break;case"select-brick":y=b.iid,I=b.alias,C("active",b.iid,b.alias);break;case"hover-on-iframe":(e=>{var t=document.elementFromPoint(e.x,e.y);if("BODY"===(null==t?void 0:t.tagName))window.parent.postMessage({sender:"previewer",type:"hover-on-main",isDirection:!0,position:{x:e.x,y:e.y}},r);else{var n=function(e){for(var t=[],n=e;n;)"string"==typeof n.dataset.iid&&t.push(n.dataset.iid),n=n.parentElement;return t}(t);window.parent.postMessage({sender:"previewer",type:"hover-on-brick",iidList:n,isDirection:!0,position:{x:e.x,y:e.y}},r)}})(b.position)}else switch(b.type){case"toggle-inspecting":b.enabled?(window.addEventListener("click",c,!0),window.addEventListener("mousedown",u,!0),window.addEventListener("mouseover",u,!0),window.addEventListener("mouseup",u,!0),window.addEventListener("pointerdown",h,!0),window.addEventListener("pointermove",w,!0),window.addEventListener("pointerup",u,!0),window.addEventListener("pointerleave",m,!0),window.addEventListener("contextmenu",g,!0)):(window.removeEventListener("click",c,!0),window.removeEventListener("mousedown",u,!0),window.removeEventListener("mouseover",u,!0),window.removeEventListener("mouseup",u,!0),window.removeEventListener("pointerdown",h,!0),window.removeEventListener("pointermove",w,!0),window.removeEventListener("pointerup",u,!0),window.removeEventListener("pointerleave",m,!0),window.removeEventListener("contextmenu",g,!0));break;case"refresh":if(null!==(a=b.options)&&void 0!==a&&a.updateStoryboardType){var L,D;"route"===b.options.updateStoryboardType?k.updateStoryboardByRoute(t.appId,b.storyboardPatch):"template"===b.options.updateStoryboardType?k.updateStoryboardByTemplate(t.appId,b.storyboardPatch,b.options.settings):"snippet"===b.options.updateStoryboardType&&k.updateStoryboardBySnippet(t.appId,b.storyboardPatch);var N=yield null===(L=(D=k).getAddedContracts)||void 0===L?void 0:L.call(D,b.storyboardPatch,{appId:t.appId,updateStoryboardType:b.options.updateStoryboardType,formId:t.formId,collectUsedContracts:f.b});(0,s.isEmpty)(N)?E().reload():x({type:"contract-update",data:{add:N}});break}k.updateStoryboard(t.appId,b.storyboardPatch),t.templateId?(P=b.settings,A()):null!==(o=b.options)&&void 0!==o&&o.snippetData?(t.snippetData=b.options.snippetData,T()):E().reload();break;case"reload":location.reload();break;case"back":R.goBack();break;case"forward":R.goForward();break;case"capture":(function(e,t){return p.apply(this,arguments)})(b.maxWidth,b.maxHeight).then((e=>{x({type:"capture-ok",screenshot:e})}),(()=>{x({type:"capture-failed"})}));break;case"inspect-data-value":((e,t)=>{try{var n,r,a,{dataType:o}=t;if("state"===o&&!(n=O()))return void x({type:"inspect-data-value-error",data:{error:{message:"tplStateStoreId not found, unable to preview STATE value"}}});if(e)a="inspect-single-data-value-success",r=k.getContextValue(e,{tplStateStoreId:n});else{a="inspect-all-data-values-success";var i=k.getAllContextValues({tplStateStoreId:n});r=Object.entries(i).map((e=>{var[t,n]=e;return{name:t,value:n}}))}x({type:a,data:{name:e,value:r}})}catch(e){x({type:"inspect-data-value-error",data:{message:e.message}})}})(b.name,b.option);break;case"update-preview-url":var _=b.previewUrl.startsWith(window.origin)?b.previewUrl.substring(window.origin.length):b.previewUrl,H=(0,i.getBasePath)(),B=_.startsWith(H)?_.substring(H.length-1):_;E().push(B);break;case"update-preview-route":t.routePath=b.routePath,t.routeExact=b.routeExact,V()}}));return function(e){return n.apply(this,arguments)}}()),window.addEventListener("scroll",(()=>{x({type:"scroll",scroll:{x:window.scrollX,y:window.scrollY}})}));var _,H,B=!0,q=e=>{x({type:"url-change",url:location.origin+R.createHref(e)}),_=e,V()};q(R.location),R.listen(q),t.templateId&&A(),t.snippetData&&T(),null===(n=(d=k).addRealTimeDataInspectHook)||void 0===n||n.call(d,(e=>{var{changeType:t,tplStateStoreId:n,detail:r}=e;x({type:"real-time-data-inspect-change",changeType:t,tplStateStoreId:n,detail:"update"===t?{name:r.name,annotation:b(r.value)}:{data:Object.fromEntries(Object.entries(r.data).map((e=>{var[t,n]=e;return[t,b(n)]})))}})})),window.addEventListener("route.render",(()=>{W(!0)})),j(),W(!0),new MutationObserver((0,s.throttle)((()=>{j(),W(),l&&C("hover",l,v),y&&C("active",y,I)}),100,{leading:!1})).observe(document.body,{subtree:!0,childList:!0})}function V(){if(t.routePath){var e=!!L(_.pathname,{path:t.routePath,exact:t.routeExact});if(x({type:"route-match-change",match:e}),t.templateId&&!B&&e){var n=document.querySelector("#main-mount-point"),r=new MutationObserver((()=>{1===n.childNodes.length&&"SPAN"===n.firstChild.tagName&&0===n.firstChild.childNodes.length&&(A(),r.disconnect())}));r.observe(n,{childList:!0})}if(t.snippetData&&!B&&e){var a=document.querySelector("#main-mount-point"),o=new MutationObserver((()=>{1===a.childNodes.length&&"SPAN"===a.firstChild.tagName&&0===a.firstChild.childNodes.length&&(T(),o.disconnect())}));o.observe(a,{childList:!0})}B=e}}function j(){var e,t,n,r=document.querySelector("eo-page-view"),a=null!==(e=null==r||null===(t=r.shadowRoot)||void 0===t?void 0:t.querySelector(".content"))&&void 0!==e?e:null;a!==D&&(null===(n=D)||void 0===n||n.removeEventListener("scroll",U),null==a||a.addEventListener("scroll",U),D=a,N=r)}function U(){x({type:"content-scroll",scroll:{x:this.scrollLeft,y:this.scrollTop}})}function W(e){var n,r,a=t.templateId?O():void 0;(H!==a||e)&&(H=a,null===(n=(r=k).setRealTimeDataInspectRoot)||void 0===n||n.call(r,{tplStateStoreId:a}))}})),_.apply(this,arguments)}function M(e,t){if(!e)return[];var n=e.includes("#"),r=function(e,t){var n=[];return function r(a){var o=a.querySelectorAll(t?e:'[data-iid="'.concat(e,'"]'));if(n.push(...o),!(a===document&&o.length>0))for(var i of a.querySelectorAll("*"))i.shadowRoot&&r(i.shadowRoot)}(document),n}(e,n),a=function(e,t){return e.map((e=>{var n,r=null===(n=N)||void 0===n?void 0:n.contains(e),{width:a,height:o,left:i,top:s}=e.getBoundingClientRect();return{width:a,height:o,left:i+window.scrollX+(r?D.scrollLeft:0),top:s+window.scrollY+(r?D.scrollTop:0),alias:t,hasContentScroll:r}}))}(r,t);return n?a.map((e=>(0,o.A)((0,o.A)({},e),{},{height:window.innerHeight-e.top}))):a}function O(){var e,t=document.querySelector("#main-mount-point");return null==t||null===(e=t.firstChild)||void 0===e?void 0:e.dataset[I?"tplContextId":"tplStateStoreId"]}}}]);
|
|
2
|
-
//# sourceMappingURL=9027.56cad5a3.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9636.ecf3c18b.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[9636],{9636:(e,t,n)=>{n.r(t);var r,a,i,o,s,c,l,u,d,h,p,f,m,b,v,g,E=n(4635),w=n(918),A=n(1369),y=n(8449),k=n(6902),N=n(8769),x=n.n(N),O=n(9929),L=n(9938),T=n(7180),I=n(9765),R=n(3373),C=n.n(R);function M(e,t,n){return n(D(e,t))}function _(e,t,n){return e.set(D(e,t),n),n}function S(e,t){return e.get(D(e,t))}function D(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var P,F=(0,L.wrapBrick)("eo-icon"),{defineElement:U,property:W,event:j}=(0,O.createDecorators)(),B=new WeakMap,z=new WeakMap,K=new WeakMap,G=new WeakMap,V=new WeakSet,Y=new WeakMap,H=new WeakMap,X=new WeakMap;class q extends L.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,V),(0,w.A)(this,B,a(this)),(0,w.A)(this,z,(i(this),o(this))),(0,w.A)(this,K,(s(this),c(this))),(0,w.A)(this,G,(l(this),u(this))),(0,w.A)(this,Y,(p(this),e=>{e!==this.active&&(this.active=e,M(V,this,d).emit(e))})),(0,w.A)(this,H,f(this)),(0,w.A)(this,X,(v(this),()=>{M(V,this,m).emit()}))}get titleLabel(){return S(B,this)}set titleLabel(e){_(B,this,e)}get active(){return S(z,this)}set active(e){_(z,this,e)}get badge(){return S(K,this)}set badge(e){_(K,this,e)}render(){return x().createElement(J,{titleLabel:this.titleLabel,active:this.active,badge:this.badge,onActiveChange:S(Y,this),onFirstActivated:S(X,this)})}}function J(e){var{titleLabel:t,active:n,badge:r,onActiveChange:a,onFirstActivated:i}=e,[o,s]=(0,N.useState)(n),[c,l]=(0,N.useState)(!1);(0,N.useEffect)((()=>{s(n)}),[n]),(0,N.useEffect)((()=>{null==a||a(o)}),[o,a]);var u=(0,N.useCallback)((()=>{s((e=>!e)),c||o||(l(!0),null==i||i())}),[c,o,i]),d=(0,N.useRef)(),[h,p]=(0,N.useState)(!1),f=(0,N.useMemo)((()=>{return e=()=>{p(d.current.scrollTop>0)},r=function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];t&&n(),t=requestAnimationFrame((()=>{e(...a)}))},r.cancel=n=()=>cancelAnimationFrame(t),r;var e,t,n,r}),[]);return x().createElement("div",{className:C()("pane",{scrolled:h})},x().createElement("div",{className:"pane-header",tabIndex:0,onClick:u},x().createElement("div",{className:"pane-title"},x().createElement("span",{className:"title-icon"},o?x().createElement(F,{lib:"antd",theme:"outlined",icon:"down"}):x().createElement(F,{lib:"antd",theme:"outlined",icon:"right"})),x().createElement("div",{className:"title-label"},t),x().createElement("slot",{name:"title"})),x().createElement("slot",{name:"actions"}),r&&x().createElement("div",{className:"badge"},r),x().createElement("div",{className:"pane-scroll-shadow"})),x().createElement("div",{className:"pane-body custom-scrollbar-container",onScroll:f,ref:d},x().createElement("slot",null,x().createElement("div",{style:{padding:"10px 20px",color:"var(--text-color-secondary)"}},"No content"))))}g=q,({e:[a,i,o,s,c,l,u,d,h,p,f,m,b,v],c:[P,r]}=function(e,t,n,r,a,i){var o,s,c,l,u,d,h,p=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,m=Object.create,b=[m(null),m(null)],v=t.length;function g(t,n,r){return function(a,i){n&&(i=a,a=e);for(var o=0;o<t.length;o++)i=t[o].apply(a,r?[i]:[]);return r?i:a}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function w(e,t,n,r,a,i,c,l,u,d,h){function p(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),v=t[3],w=!c,A=1===a,k=3===a,N=4===a,x=2===a;function O(t,n,r){return function(a,i){return n&&(i=a,a=e),r&&r(a),L[t].call(a,i)}}if(!w){var L={},T=[],I=k?"get":N||A?"set":"value";if(u?(d||A?L={get:(0,y.A)((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:L[I]=v,d||(0,y.A)(L[I],r,x?"":I)):d||(L=Object.getOwnPropertyDescriptor(e,r)),!d&&!u){if((s=b[+l][r])&&7!=(s^a))throw new Error("Decorating two elements with the same name ("+L[I].name+") is not supported yet");b[+l][r]=a<3?1:a}}for(var R=e,C=m.length-1;C>=0;C-=n?2:1){var M=m[C],_=n?m[C-1]:void 0,S={},D={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),i.push(t)}.bind(null,S)};if(w)s=M.call(_,R,D),S.v=1,E(s,"class decorators","return")&&(R=s);else if(D.static=l,D.private=u,s=D.access={has:u?h.bind():function(e){return r in e}},N||(s.get=u?x?function(e){return p(e),L.value}:O("get",0,p):function(e){return e[r]}),x||k||(s.set=u?O("set",0,p):function(e,t){e[r]=t}),R=M.call(_,A?{get:L.get,set:L.set}:L[I],D),S.v=1,A){if("object"==typeof R&&R)(s=E(R.get,"accessor.get"))&&(L.get=s),(s=E(R.set,"accessor.set"))&&(L.set=s),(s=E(R.init,"accessor.init"))&&T.unshift(s);else if(void 0!==R)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(R,(d?"field":"method")+" decorators","return")&&(d?T.unshift(R):L[I]=R)}return a<2&&c.push(g(T,l,1),g(i,l,0)),d||w||(u?A?c.splice(-1,0,O("get",l),O("set",l)):c.push(x?L[I]:E.call.bind(L[I])):f(e,r,L)),R}function N(e){return f(e,p,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[p]),o=m(null==o?null:o),u=[],d=function(e){e&&u.push(g(e))},(h=function(t,r){for(var i=0;i<n.length;i++){var o=n[i],s=o[1],d=7&s;if((8&s)==t&&!d==r){var h=o[2],p=!!o[3],f=16&s;w(t?e:e.prototype,o,f,p?"#"+h:(0,A.A)(h),d,d<2?[]:t?l=l||[]:c=c||[],u,!!t,p,r,t&&p?function(t){return(0,k.A)(t)===e}:a)}}})(8,0),h(0,0),h(8,1),h(0,1),d(c),d(l),s=u,v||N(e),{e:s,get c(){var n=[];return v&&[N(e=w(e,[t],0,e.name,5,n)),g(n,1)]}}}(g,[U("visual-builder.workbench-pane",{styleTexts:[T.A,I.A]})],[[W(),1,"titleLabel"],[W({type:Boolean}),1,"active"],[W({type:Number}),1,"badge"],[j({type:"active.change"}),1,"activeChangeEvent",e=>S(G,e),(e,t)=>_(G,e,t)],[j({type:"active.firstActivated"}),1,"activeFirstActivatedEvent",e=>S(H,e),(e,t)=>_(H,e,t)]],0,(e=>X.has((0,k.A)(e))),L.ReactNextElement)),r();var $,Q,Z,ee,te=n(4586),ne=n(2150);function re(e,t){return e.get(ae(e,t))}function ae(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var ie,{defineElement:oe,property:se}=(0,O.createDecorators)(),ce=new WeakMap,le=new WeakMap,ue=new WeakMap,de=new WeakMap;class he extends L.ReactNextElement{constructor(){super(...arguments),(0,w.A)(this,ce,Q(this)),(0,w.A)(this,le,(Z(this),()=>{var e;return null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])")})),(0,w.A)(this,ue,(()=>{var e=re(le,this).call(this).assignedNodes();for(var t of e){var n;t.active?t.style.flex=String(null!==(n=t.activeFlex)&&void 0!==n?n:"1"):t.style.flex="initial"}})),(0,w.A)(this,de,(e=>{var t=e.target.assignedNodes();for(var n of t)n.addEventListener("active.change",re(ue,this))})),(0,te.A)(this,"refCallback",(()=>{re(ue,this).call(this);var e=re(le,this).call(this);null==e||e.addEventListener("slotchange",(e=>{re(de,this).call(this,e)}))}))}get titleLabel(){return re(ce,this)}set titleLabel(e){var t,n;n=e,(t=ce).set(ae(t,this),n)}render(){return x().createElement(pe,{titleLabel:this.titleLabel,refCallback:this.refCallback})}}function pe(e){var{titleLabel:t,refCallback:n}=e;return x().createElement("div",{className:"sidebar",ref:n},x().createElement("div",{className:"title-container"},x().createElement("div",{className:"title-label"},t),x().createElement("slot",{name:"titleToolbar"})),x().createElement("div",{className:"pane-container"},x().createElement("slot",null)))}ee=he,({e:[Q,Z],c:[ie,$]}=function(e,t,n,r,a,i){var o,s,c,l,u,d,h,p=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,m=Object.create,b=[m(null),m(null)],v=t.length;function g(t,n,r){return function(a,i){n&&(i=a,a=e);for(var o=0;o<t.length;o++)i=t[o].apply(a,r?[i]:[]);return r?i:a}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function w(e,t,n,r,a,i,c,l,u,d,h){function p(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),v=t[3],w=!c,A=1===a,k=3===a,N=4===a,x=2===a;function O(t,n,r){return function(a,i){return n&&(i=a,a=e),r&&r(a),L[t].call(a,i)}}if(!w){var L={},T=[],I=k?"get":N||A?"set":"value";if(u?(d||A?L={get:(0,y.A)((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:L[I]=v,d||(0,y.A)(L[I],r,x?"":I)):d||(L=Object.getOwnPropertyDescriptor(e,r)),!d&&!u){if((s=b[+l][r])&&7!=(s^a))throw new Error("Decorating two elements with the same name ("+L[I].name+") is not supported yet");b[+l][r]=a<3?1:a}}for(var R=e,C=m.length-1;C>=0;C-=n?2:1){var M=m[C],_=n?m[C-1]:void 0,S={},D={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),i.push(t)}.bind(null,S)};if(w)s=M.call(_,R,D),S.v=1,E(s,"class decorators","return")&&(R=s);else if(D.static=l,D.private=u,s=D.access={has:u?h.bind():function(e){return r in e}},N||(s.get=u?x?function(e){return p(e),L.value}:O("get",0,p):function(e){return e[r]}),x||k||(s.set=u?O("set",0,p):function(e,t){e[r]=t}),R=M.call(_,A?{get:L.get,set:L.set}:L[I],D),S.v=1,A){if("object"==typeof R&&R)(s=E(R.get,"accessor.get"))&&(L.get=s),(s=E(R.set,"accessor.set"))&&(L.set=s),(s=E(R.init,"accessor.init"))&&T.unshift(s);else if(void 0!==R)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(R,(d?"field":"method")+" decorators","return")&&(d?T.unshift(R):L[I]=R)}return a<2&&c.push(g(T,l,1),g(i,l,0)),d||w||(u?A?c.splice(-1,0,O("get",l),O("set",l)):c.push(x?L[I]:E.call.bind(L[I])):f(e,r,L)),R}function N(e){return f(e,p,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[p]),o=m(null==o?null:o),u=[],d=function(e){e&&u.push(g(e))},(h=function(t,r){for(var a=0;a<n.length;a++){var i=n[a],o=i[1],s=7&o;if((8&o)==t&&!s==r){var d=i[2],h=!!i[3],p=16&o;w(t?e:e.prototype,i,p,h?"#"+d:(0,A.A)(d),s,s<2?[]:t?l=l||[]:c=c||[],u,!!t,h,r,t&&h?function(t){return(0,k.A)(t)===e}:undefined)}}})(8,0),h(0,0),h(8,1),h(0,1),d(c),d(l),s=u,v||N(e),{e:s,get c(){var n=[];return v&&[N(e=w(e,[t],0,e.name,5,n)),g(n,1)]}}}(ee,[oe("visual-builder.workbench-sidebar",{styleTexts:[ne.A]})],[[se(),1,"titleLabel"]],0,0,L.ReactNextElement)),$();var fe,me,be,ve,ge,Ee,we,Ae,ye,ke,Ne,xe,Oe=n(5292);function Le(e,t,n){return e.set(Ie(e,t),n),n}function Te(e,t){return e.get(Ie(e,t))}function Ie(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Re,{defineElement:Ce,property:Me}=(0,O.createDecorators)(),_e=(0,L.wrapBrick)("eo-link"),Se=(0,L.wrapBrick)("eo-icon"),De=new WeakMap,Pe=new WeakMap,Fe=new WeakMap,Ue=new WeakMap,We=new WeakMap;class je extends L.ReactNextElement{constructor(){super(...arguments),(0,w.A)(this,De,me(this)),(0,w.A)(this,Pe,(be(this),ve(this))),(0,w.A)(this,Fe,(ge(this),Ee(this))),(0,w.A)(this,Ue,(we(this),Ae(this))),(0,w.A)(this,We,(ye(this),ke(this))),Ne(this)}get icon(){return Te(De,this)}set icon(e){Le(De,this,e)}get to(){return Te(Pe,this)}set to(e){Le(Pe,this,e)}get active(){return Te(Fe,this)}set active(e){Le(Fe,this,e)}get href(){return Te(Ue,this)}set href(e){Le(Ue,this,e)}get target(){return Te(We,this)}set target(e){Le(We,this,e)}render(){return x().createElement(Be,{to:this.to,icon:this.icon,active:this.active,href:this.href,target:this.target})}}function Be(e){var{icon:t,to:n,active:r,href:a,target:i}=e;return x().createElement(_e,{className:C()("action",{active:r}),url:n,href:a,target:i},x().createElement(Se,t))}xe=je,({e:[me,be,ve,ge,Ee,we,Ae,ye,ke,Ne],c:[Re,fe]}=function(e,t,n,r,a,i){var o,s,c,l,u,d,h,p=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,m=Object.create,b=[m(null),m(null)],v=t.length;function g(t,n,r){return function(a,i){n&&(i=a,a=e);for(var o=0;o<t.length;o++)i=t[o].apply(a,r?[i]:[]);return r?i:a}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function w(e,t,n,r,a,i,c,l,u,d,h){function p(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),v=t[3],w=!c,A=1===a,k=3===a,N=4===a,x=2===a;function O(t,n,r){return function(a,i){return n&&(i=a,a=e),r&&r(a),L[t].call(a,i)}}if(!w){var L={},T=[],I=k?"get":N||A?"set":"value";if(u?(d||A?L={get:(0,y.A)((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:L[I]=v,d||(0,y.A)(L[I],r,x?"":I)):d||(L=Object.getOwnPropertyDescriptor(e,r)),!d&&!u){if((s=b[+l][r])&&7!=(s^a))throw new Error("Decorating two elements with the same name ("+L[I].name+") is not supported yet");b[+l][r]=a<3?1:a}}for(var R=e,C=m.length-1;C>=0;C-=n?2:1){var M=m[C],_=n?m[C-1]:void 0,S={},D={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),i.push(t)}.bind(null,S)};if(w)s=M.call(_,R,D),S.v=1,E(s,"class decorators","return")&&(R=s);else if(D.static=l,D.private=u,s=D.access={has:u?h.bind():function(e){return r in e}},N||(s.get=u?x?function(e){return p(e),L.value}:O("get",0,p):function(e){return e[r]}),x||k||(s.set=u?O("set",0,p):function(e,t){e[r]=t}),R=M.call(_,A?{get:L.get,set:L.set}:L[I],D),S.v=1,A){if("object"==typeof R&&R)(s=E(R.get,"accessor.get"))&&(L.get=s),(s=E(R.set,"accessor.set"))&&(L.set=s),(s=E(R.init,"accessor.init"))&&T.unshift(s);else if(void 0!==R)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(R,(d?"field":"method")+" decorators","return")&&(d?T.unshift(R):L[I]=R)}return a<2&&c.push(g(T,l,1),g(i,l,0)),d||w||(u?A?c.splice(-1,0,O("get",l),O("set",l)):c.push(x?L[I]:E.call.bind(L[I])):f(e,r,L)),R}function N(e){return f(e,p,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[p]),o=m(null==o?null:o),u=[],d=function(e){e&&u.push(g(e))},(h=function(t,r){for(var a=0;a<n.length;a++){var i=n[a],o=i[1],s=7&o;if((8&o)==t&&!s==r){var d=i[2],h=!!i[3],p=16&o;w(t?e:e.prototype,i,p,h?"#"+d:(0,A.A)(d),s,s<2?[]:t?l=l||[]:c=c||[],u,!!t,h,r,t&&h?function(t){return(0,k.A)(t)===e}:undefined)}}})(8,0),h(0,0),h(8,1),h(0,1),d(c),d(l),s=u,v||N(e),{e:s,get c(){var n=[];return v&&[N(e=w(e,[t],0,e.name,5,n)),g(n,1)]}}}(xe,[Ce("visual-builder.workbench-action",{styleTexts:[Oe.A]})],[[Me({attribute:!1}),1,"icon"],[Me(),1,"to"],[Me({type:Boolean}),1,"active"],[Me(),1,"href"],[Me(),1,"target"]],0,0,L.ReactNextElement)),fe();var ze=n(4),Ke=n(1201);function Ge(e,t,n,r){var a=[],i=[],o=[],s=0;return e.forEach((e=>{if(e.key=""===r?"".concat(s):"".concat(r,".").concat(s),function(e){return"group"===e.type}(e)||function(e,t){return Boolean("subMenu"===e.type||void 0)}(e)){var c=Ge(e.items,t,n,e.key);a.push(...c.selectedKeys),(c.selectedKeys.length||e.defaultExpanded)&&i.push(e.key),i.push(...c.openedKeys),o.push(...c.matchedKeys)}else if(function(e,t,n){if(!e.to)return!1;var r="object"==typeof e.to?e.to:(0,Ke.parsePath)(e.to),a=r.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),i=!!(0,ze.matchPath)(t,{path:a,exact:e.exact});if(i&&e.activeMatchSearch&&(i=Ve(n,r.search)),!i&&Array.isArray(e.activeIncludes))for(var o of e.activeIncludes){var s,c=void 0,l=o.includes("?");if(l&&(c=(0,Ke.parsePath)(o)),(i=!!(0,ze.matchPath)(t,{path:l?c.pathname:o,exact:!0}))&&null!==(s=c)&&void 0!==s&&s.search&&(i=Ve(n,c.search)),i)break}if(i&&Array.isArray(e.activeExcludes))for(var u of e.activeExcludes)if(!(i=!(0,ze.matchPath)(t,{path:u,exact:!0})))break;return i}(e,t,n)){a.push(String(e.key));for(var l=e.key.split("."),u=0;u<l.length;u++)o.push(l.slice(0,u+1).join("."))}s+=1})),a.length&&""!==r&&i.push(r),{selectedKeys:a,openedKeys:i,matchedKeys:o}}function Ve(e,t){var n=new URLSearchParams(e),r=new URLSearchParams(t);for(var[a,i]of r.entries()){var o;if((null!==(o=n.get(a))&&void 0!==o?o:"")!==i)return!1}return!0}var Ye,He,Xe,qe,Je,$e,Qe=n(3430);function Ze(e,t,n){return e.set(tt(e,t),n),n}function et(e,t){return e.get(tt(e,t))}function tt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var nt,rt,at=(0,L.wrapBrick)("visual-builder.workbench-action"),{defineElement:it,property:ot}=(0,O.createDecorators)(),st=new WeakMap,ct=new WeakMap;class lt extends L.ReactNextElement{constructor(){super(...arguments),(0,w.A)(this,st,He(this)),(0,w.A)(this,ct,(Xe(this),qe(this))),Je(this)}get appId(){return et(st,this)}set appId(e){Ze(st,this,e)}get menu(){return et(ct,this)}set menu(e){Ze(ct,this,e)}render(){return x().createElement(dt,{appId:this.appId,menu:this.menu})}}$e=lt,({e:[He,Xe,qe,Je],c:[nt,Ye]}=function(e,t,n,r,a,i){var o,s,c,l,u,d,h,p=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,m=Object.create,b=[m(null),m(null)],v=t.length;function g(t,n,r){return function(a,i){n&&(i=a,a=e);for(var o=0;o<t.length;o++)i=t[o].apply(a,r?[i]:[]);return r?i:a}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function w(e,t,n,r,a,i,c,l,u,d,h){function p(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),v=t[3],w=!c,A=1===a,k=3===a,N=4===a,x=2===a;function O(t,n,r){return function(a,i){return n&&(i=a,a=e),r&&r(a),L[t].call(a,i)}}if(!w){var L={},T=[],I=k?"get":N||A?"set":"value";if(u?(d||A?L={get:(0,y.A)((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:L[I]=v,d||(0,y.A)(L[I],r,x?"":I)):d||(L=Object.getOwnPropertyDescriptor(e,r)),!d&&!u){if((s=b[+l][r])&&7!=(s^a))throw new Error("Decorating two elements with the same name ("+L[I].name+") is not supported yet");b[+l][r]=a<3?1:a}}for(var R=e,C=m.length-1;C>=0;C-=n?2:1){var M=m[C],_=n?m[C-1]:void 0,S={},D={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),i.push(t)}.bind(null,S)};if(w)s=M.call(_,R,D),S.v=1,E(s,"class decorators","return")&&(R=s);else if(D.static=l,D.private=u,s=D.access={has:u?h.bind():function(e){return r in e}},N||(s.get=u?x?function(e){return p(e),L.value}:O("get",0,p):function(e){return e[r]}),x||k||(s.set=u?O("set",0,p):function(e,t){e[r]=t}),R=M.call(_,A?{get:L.get,set:L.set}:L[I],D),S.v=1,A){if("object"==typeof R&&R)(s=E(R.get,"accessor.get"))&&(L.get=s),(s=E(R.set,"accessor.set"))&&(L.set=s),(s=E(R.init,"accessor.init"))&&T.unshift(s);else if(void 0!==R)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(R,(d?"field":"method")+" decorators","return")&&(d?T.unshift(R):L[I]=R)}return a<2&&c.push(g(T,l,1),g(i,l,0)),d||w||(u?A?c.splice(-1,0,O("get",l),O("set",l)):c.push(x?L[I]:E.call.bind(L[I])):f(e,r,L)),R}function N(e){return f(e,p,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[p]),o=m(null==o?null:o),u=[],d=function(e){e&&u.push(g(e))},(h=function(t,r){for(var a=0;a<n.length;a++){var i=n[a],o=i[1],s=7&o;if((8&o)==t&&!s==r){var d=i[2],h=!!i[3],p=16&o;w(t?e:e.prototype,i,p,h?"#"+d:(0,A.A)(d),s,s<2?[]:t?l=l||[]:c=c||[],u,!!t,h,r,t&&h?function(t){return(0,k.A)(t)===e}:undefined)}}})(8,0),h(0,0),h(8,1),h(0,1),d(c),d(l),s=u,v||N(e),{e:s,get c(){var n=[];return v&&[N(e=w(e,[t],0,e.name,5,n)),g(n,1)]}}}($e,[it("visual-builder.workbench-action-list",{styleTexts:[Qe.A]})],[[ot(),1,"appId"],[ot({attribute:!1}),1,"menu"]],0,0,L.ReactNextElement)),Ye();var ut=new Map;function dt(e){var t,{appId:n,menu:r}=e,a=(0,ze.getHistory)(),[i,o]=(0,N.useState)(),[s,c]=(0,N.useState)(a.location);return(0,N.useEffect)((()=>{var e=a.listen((e=>{c(e)}));return e}),[a]),(0,N.useEffect)((()=>{rt||(rt=n),rt!==n&&(ut.clear(),rt=n)}),[n]),(0,N.useEffect)((()=>{var e,{pathname:t,search:n}=s,{selectedKeys:a}=Ge(null!==(e=null==r?void 0:r.menuItems)&&void 0!==e?e:[],t,n,"");o(Number(a[0]))}),[r,s]),x().createElement("div",{className:"workBenchActionList"},null==r||null===(t=r.menuItems)||void 0===t?void 0:t.map(((e,t)=>{if((e=>"default"===e.type||!e.type)(e)){var n=e.to;return i!==t&&ut.has(t)&&(n=ut.get(t)),x().createElement(at,{key:t,icon:e.icon,to:n,href:e.href,target:e.target,active:i===t,onClick:()=>(e=>{e.href||ut.set(i,"".concat(s.pathname).concat(s.search))})(e)})}})).filter(Boolean))}var ht,pt,ft,mt,bt,vt,gt,Et,wt,At,yt,kt,Nt,xt,Ot,Lt,Tt,It,Rt,Ct,Mt,_t,St,Dt,Pt,Ft,Ut,Wt,jt,Bt,zt,Kt,Gt,Vt,Yt,Ht,Xt,qt,Jt,$t,Qt,Zt,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,hn,pn,fn,mn,bn,vn=n(1030),gn=n(2559),En=n(7758),wn=n(9406),An=n(675),yn=n(7995),kn=n(6275);function Nn(e,t,n){return n(Ln(e,t))}function xn(e,t,n){return e.set(Ln(e,t),n),n}function On(e,t){return e.get(Ln(e,t))}function Ln(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Tn(e){return e.key}n(330);var In,{defineElement:Rn,property:Cn,event:Mn}=(0,O.createDecorators)(),_n=new WeakMap,Sn=new WeakMap,Dn=new WeakMap,Pn=new WeakMap,Fn=new WeakMap,Un=new WeakMap,Wn=new WeakMap,jn=new WeakMap,Bn=new WeakMap,zn=new WeakMap,Kn=new WeakMap,Gn=new WeakMap,Vn=new WeakMap,Yn=new WeakMap,Hn=new WeakMap,Xn=new WeakMap,qn=new WeakMap,Jn=new WeakMap,$n=new WeakMap,Qn=new WeakSet,Zn=new WeakMap,er=new WeakMap,tr=new WeakMap,nr=new WeakMap,rr=new WeakMap,ar=new WeakMap,ir=new WeakMap,or=new WeakMap,sr=new WeakMap;class cr extends L.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,Qn),(0,w.A)(this,_n,pt(this)),(0,w.A)(this,Sn,(ft(this),mt(this))),(0,w.A)(this,Dn,(bt(this),vt(this))),(0,w.A)(this,Pn,(gt(this),Et(this))),(0,w.A)(this,Fn,(wt(this),At(this))),(0,w.A)(this,Un,(yt(this),kt(this))),(0,w.A)(this,Wn,(Nt(this),xt(this))),(0,w.A)(this,jn,(Ot(this),Lt(this))),(0,w.A)(this,Bn,(Tt(this),It(this))),(0,w.A)(this,zn,(Rt(this),Ct(this))),(0,w.A)(this,Kn,(Mt(this),_t(this))),(0,w.A)(this,Gn,(St(this),Dt(this))),(0,w.A)(this,Vn,(Pt(this),Ft(this))),(0,w.A)(this,Yn,(Ut(this),Wt(this))),(0,w.A)(this,Hn,(jt(this),Bt(this))),(0,w.A)(this,Xn,(zt(this),Kt(this))),(0,w.A)(this,qn,(Gt(this),Vt(this))),(0,w.A)(this,Jn,(Yt(this),Ht(this))),(0,w.A)(this,$n,(Xt(this),qt(this))),(0,w.A)(this,Zn,(Qt(this),e=>{Nn(Qn,this,Jt).emit(e)})),(0,w.A)(this,er,Zt(this)),(0,w.A)(this,tr,(nn(this),e=>()=>{Nn(Qn,this,en).emit(e.data)})),(0,w.A)(this,nr,rn(this)),(0,w.A)(this,rr,(sn(this),e=>{Nn(Qn,this,an).emit(e)})),(0,w.A)(this,ar,cn(this)),(0,w.A)(this,ir,(dn(this),e=>t=>{t.preventDefault(),Nn(Qn,this,ln).emit({active:!0,node:null==e?void 0:e.data,x:t.clientX,y:t.clientY})})),(0,w.A)(this,or,hn(this)),(0,w.A)(this,sr,(mn(this),(e,t)=>{Nn(Qn,this,pn).emit({nodeId:e,collapsed:t})}))}get nodes(){return On(_n,this)}set nodes(e){xn(_n,this,e)}get actions(){return On(Sn,this)}set actions(e){xn(Sn,this,e)}get actionsHidden(){return On(Dn,this)}set actionsHidden(e){xn(Dn,this,e)}get placeholder(){return On(Pn,this)}set placeholder(e){xn(Pn,this,e)}get isTransformName(){return On(Fn,this)}set isTransformName(e){xn(Fn,this,e)}get searchPlaceholder(){return On(Un,this)}set searchPlaceholder(e){xn(Un,this,e)}get noSearch(){return On(Wn,this)}set noSearch(e){xn(Wn,this,e)}get activeKey(){return On(jn,this)}set activeKey(e){xn(jn,this,e)}get showMatchedNodeOnly(){return On(Bn,this)}set showMatchedNodeOnly(e){xn(Bn,this,e)}get matchNodeDataFields(){return On(zn,this)}set matchNodeDataFields(e){xn(zn,this,e)}get fixedActionsFor(){return On(Kn,this)}set fixedActionsFor(e){xn(Kn,this,e)}get collapsible(){return On(Gn,this)}set collapsible(e){xn(Gn,this,e)}get collapsedNodes(){return On(Vn,this)}set collapsedNodes(e){xn(Vn,this,e)}get allowDrag(){return On(Yn,this)}set allowDrag(e){xn(Yn,this,e)}get allowDragToRoot(){return On(Hn,this)}set allowDragToRoot(e){xn(Hn,this,e)}get allowDragToInside(){return On(Xn,this)}set allowDragToInside(e){xn(Xn,this,e)}get nodeKey(){return On(qn,this)}set nodeKey(e){xn(qn,this,e)}get skipNotify(){return On(Jn,this)}set skipNotify(e){xn(Jn,this,e)}render(){return x().createElement(gn.e.Provider,{value:{actions:this.actions,actionsHidden:this.actionsHidden,onActionClick:On(Zn,this)}},x().createElement(wn.N.Provider,{value:{activeKey:this.activeKey,basePaddingLeft:5,showMatchedNodeOnly:this.showMatchedNodeOnly,isTransformName:this.isTransformName,fixedActionsFor:this.fixedActionsFor,nodeKey:this.nodeKey,collapsible:this.collapsible,collapsedNodes:this.collapsedNodes,getCollapsedId:Tn,onNodeToggle:On(sr,this),skipNotify:this.skipNotify,clickFactory:On(tr,this),contextMenuFactory:On(ir,this),matchNode:(e,t)=>{var n;return(0,An.U)(e.name,t)||!(null===(n=this.matchNodeDataFields)||void 0===n||!n.length)&&(0,An.U)("*"===this.matchNodeDataFields?e.data:(0,vn.pick)(e.data,this.matchNodeDataFields),t)}}},x().createElement(En.cU,{nodes:this.nodes,placeholder:this.placeholder,searchPlaceholder:this.searchPlaceholder,noSearch:this.noSearch,dropEmit:On(rr,this),allowDrag:this.allowDrag,allowDragToInside:this.allowDragToInside,allowDragToRoot:this.allowDragToRoot})))}}bn=cr,({e:[pt,ft,mt,bt,vt,gt,Et,wt,At,yt,kt,Nt,xt,Ot,Lt,Tt,It,Rt,Ct,Mt,_t,St,Dt,Pt,Ft,Ut,Wt,jt,Bt,zt,Kt,Gt,Vt,Yt,Ht,Xt,qt,Jt,$t,Qt,Zt,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,hn,pn,fn,mn],c:[In,ht]}=function(e,t,n,r,a,i){var o,s,c,l,u,d,h,p=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,m=Object.create,b=[m(null),m(null)],v=t.length;function g(t,n,r){return function(a,i){n&&(i=a,a=e);for(var o=0;o<t.length;o++)i=t[o].apply(a,r?[i]:[]);return r?i:a}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function w(e,t,n,r,a,i,c,l,u,d,h){function p(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),v=t[3],w=!c,A=1===a,k=3===a,N=4===a,x=2===a;function O(t,n,r){return function(a,i){return n&&(i=a,a=e),r&&r(a),L[t].call(a,i)}}if(!w){var L={},T=[],I=k?"get":N||A?"set":"value";if(u?(d||A?L={get:(0,y.A)((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:L[I]=v,d||(0,y.A)(L[I],r,x?"":I)):d||(L=Object.getOwnPropertyDescriptor(e,r)),!d&&!u){if((s=b[+l][r])&&7!=(s^a))throw new Error("Decorating two elements with the same name ("+L[I].name+") is not supported yet");b[+l][r]=a<3?1:a}}for(var R=e,C=m.length-1;C>=0;C-=n?2:1){var M=m[C],_=n?m[C-1]:void 0,S={},D={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),i.push(t)}.bind(null,S)};if(w)s=M.call(_,R,D),S.v=1,E(s,"class decorators","return")&&(R=s);else if(D.static=l,D.private=u,s=D.access={has:u?h.bind():function(e){return r in e}},N||(s.get=u?x?function(e){return p(e),L.value}:O("get",0,p):function(e){return e[r]}),x||k||(s.set=u?O("set",0,p):function(e,t){e[r]=t}),R=M.call(_,A?{get:L.get,set:L.set}:L[I],D),S.v=1,A){if("object"==typeof R&&R)(s=E(R.get,"accessor.get"))&&(L.get=s),(s=E(R.set,"accessor.set"))&&(L.set=s),(s=E(R.init,"accessor.init"))&&T.unshift(s);else if(void 0!==R)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(R,(d?"field":"method")+" decorators","return")&&(d?T.unshift(R):L[I]=R)}return a<2&&c.push(g(T,l,1),g(i,l,0)),d||w||(u?A?c.splice(-1,0,O("get",l),O("set",l)):c.push(x?L[I]:E.call.bind(L[I])):f(e,r,L)),R}function N(e){return f(e,p,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[p]),o=m(null==o?null:o),u=[],d=function(e){e&&u.push(g(e))},(h=function(t,r){for(var i=0;i<n.length;i++){var o=n[i],s=o[1],d=7&s;if((8&s)==t&&!d==r){var h=o[2],p=!!o[3],f=16&s;w(t?e:e.prototype,o,f,p?"#"+h:(0,A.A)(h),d,d<2?[]:t?l=l||[]:c=c||[],u,!!t,p,r,t&&p?function(t){return(0,k.A)(t)===e}:a)}}})(8,0),h(0,0),h(8,1),h(0,1),d(c),d(l),s=u,v||N(e),{e:s,get c(){var n=[];return v&&[N(e=w(e,[t],0,e.name,5,n)),g(n,1)]}}}(bn,[Rn("visual-builder.workbench-tree",{styleTexts:[yn.A,kn.A]})],[[Cn({attribute:!1}),1,"nodes"],[Cn({attribute:!1}),1,"actions"],[Cn({type:Boolean}),1,"actionsHidden"],[Cn(),1,"placeholder"],[Cn({type:Boolean}),1,"isTransformName"],[Cn(),1,"searchPlaceholder"],[Cn({type:Boolean}),1,"noSearch"],[Cn({attribute:!1}),1,"activeKey"],[Cn({type:Boolean}),1,"showMatchedNodeOnly"],[Cn({attribute:!1}),1,"matchNodeDataFields"],[Cn({attribute:!1}),1,"fixedActionsFor"],[Cn({type:Boolean}),1,"collapsible"],[Cn({attribute:!1}),1,"collapsedNodes"],[Cn({type:Boolean}),1,"allowDrag"],[Cn({type:Boolean}),1,"allowDragToRoot"],[Cn({type:Boolean}),1,"allowDragToInside"],[Cn({type:String}),1,"nodeKey"],[Cn({type:Boolean}),1,"skipNotify"],[Mn({type:"action.click"}),1,"actionClickEvent",e=>On($n,e),(e,t)=>xn($n,e,t)],[Mn({type:"node.click"}),1,"nodeClickEvent",e=>On(er,e),(e,t)=>xn(er,e,t)],[Mn({type:"node.drop"}),1,"nodeDropEvent",e=>On(nr,e),(e,t)=>xn(nr,e,t)],[Mn({type:"context.menu"}),1,"nodeContextMenuEvent",e=>On(ar,e),(e,t)=>xn(ar,e,t)],[Mn({type:"node.toggle"}),1,"nodeToggleEvent",e=>On(or,e),(e,t)=>xn(or,e,t)]],0,(e=>sr.has((0,k.A)(e))),L.ReactNextElement)),ht();var lr=n(8438),ur=n(9027);n(6788),customElements.define("visual-builder.inject-preview-agent",(0,lr.createProviderClass)((function(e,t){return(0,ur.A)(e,t)})));var dr,hr,pr,fr,mr,br,vr,gr,Er,wr,Ar,yr,kr,Nr,xr,Or,Lr,Tr,Ir=n(9740),Rr=n(155),Cr=n.n(Rr),Mr=n(1361),_r=n(5502),Sr=function(e){return e.LOAD_MORE="LOAD_MORE",e.LOADING="LOADING",e.NO_DATA="NO_DATA",e.NODE="NODE",e.ADD="ADD",e.EDIT="EDIT",e.DELETE="DELETE",e.IMPORT="IMPORT",e.CLONE="CLONE",e.APPEND_RELATION="APPEND_RELATION",e.UPDATE_RELATION="UPDATE_RELATION",e.REMOVE_RELATION="REMOVE_RELATION",e.ROLLBACK="ROLLBACK",e.ROLLBACK_ALL="ROLLBACK_ALL",e.ADD_FULL="ADD_FULL",e.EDIT_FULL="EDIT_FULL",e.DELETE_FULL="DELETE_FULL",e.IMPORT_FULL="IMPORT_FULL",e.CLONE_FULL="CLONE_FULL",e.APPEND_RELATION_FULL="APPEND_RELATION_FULL",e.UPDATE_RELATION_FULL="UPDATE_RELATION_FULL",e.REMOVE_RELATION_FULL="REMOVE_RELATION_FULL",e.ROLLBACK_FULL="ROLLBACK_FULL",e.ROLLBACK_ALL_FULL="ROLLBACK_ALL_FULL",e.PROJECT="PROJECT",e.USER="USER",e.PERMISSION="PERMISSION",e.BRICK="BRICK",e.ROUTE="ROUTE",e.TEMPLATE="TEMPLATE",e.SNIPPET="SNIPPET",e.I18N="I18N",e.IMAGE="IMAGE",e.FUNCTION="FUNCTION",e.MENU="MENU",e.MENU_ITEM="MENU_ITEM",e.WORKFLOW="WORKFLOW",e}({}),Dr="bricks/visual-builder/workbench-history-action",Pr=n(6330),Fr=n(5290),Ur=function(){var e=(0,Pr.A)((function*(e,t,n){return(yield Fr.http.get("api/gateway/next_builder.workspace.GetChangeHistory/api/v1/next-builder/workspace/".concat(e,"/changes"),(0,Ir.A)((0,Ir.A)({},n),{},{params:t}))).data}));return function(t,n,r){return e.apply(this,arguments)}}(),Wr=n(8799),jr={add:"".concat(Dr,":").concat(Sr.ADD),edit:"".concat(Dr,":").concat(Sr.EDIT),delete:"".concat(Dr,":").concat(Sr.DELETE),batch_delete:"".concat(Dr,":").concat(Sr.DELETE),import:"".concat(Dr,":").concat(Sr.IMPORT),clone:"".concat(Dr,":").concat(Sr.CLONE),append_relation:"".concat(Dr,":").concat(Sr.APPEND_RELATION),update_relation:"".concat(Dr,":").concat(Sr.UPDATE_RELATION),remove_relation:"".concat(Dr,":").concat(Sr.REMOVE_RELATION),rollback:"".concat(Dr,":").concat(Sr.ROLLBACK),rollback_all:"".concat(Dr,":").concat(Sr.ROLLBACK_ALL)},Br={add:"".concat(Dr,":").concat(Sr.ADD_FULL),edit:"".concat(Dr,":").concat(Sr.EDIT_FULL),delete:"".concat(Dr,":").concat(Sr.DELETE_FULL),batch_delete:"".concat(Dr,":").concat(Sr.DELETE_FULL),import:"".concat(Dr,":").concat(Sr.IMPORT_FULL),clone:"".concat(Dr,":").concat(Sr.CLONE_FULL),append_relation:"".concat(Dr,":").concat(Sr.APPEND_RELATION_FULL),update_relation:"".concat(Dr,":").concat(Sr.UPDATE_RELATION_FULL),remove_relation:"".concat(Dr,":").concat(Sr.REMOVE_RELATION_FULL),rollback:"".concat(Dr,":").concat(Sr.ROLLBACK_FULL),rollback_all:"".concat(Dr,":").concat(Sr.ROLLBACK_ALL_FULL)},zr={project:"".concat(Dr,":").concat(Sr.PROJECT),userGroup:"".concat(Dr,":").concat(Sr.USER),permission:"".concat(Dr,":").concat(Sr.PERMISSION),brick:"".concat(Dr,":").concat(Sr.BRICK),route:"".concat(Dr,":").concat(Sr.ROUTE),template:"".concat(Dr,":").concat(Sr.TEMPLATE),snippet:"".concat(Dr,":").concat(Sr.SNIPPET),i18n:"".concat(Dr,":").concat(Sr.I18N),image:"".concat(Dr,":").concat(Sr.IMAGE),function:"".concat(Dr,":").concat(Sr.FUNCTION),menu:"".concat(Dr,":").concat(Sr.MENU),menuItem:"".concat(Dr,":").concat(Sr.MENU_ITEM),workflow:"".concat(Dr,":").concat(Sr.WORKFLOW)},Kr={PROJECT_MICRO_APP:"".concat(Dr,":").concat(Sr.PROJECT),"MICRO_APP_USER_GROUP@EASYOPS":"".concat(Dr,":").concat(Sr.USER),MICRO_APP_RESOURCE_PERMISSION:"".concat(Dr,":").concat(Sr.PERMISSION),STORYBOARD_BRICK:"".concat(Dr,":").concat(Sr.BRICK),STORYBOARD_ROUTE:"".concat(Dr,":").concat(Sr.ROUTE),STORYBOARD_TEMPLATE:"".concat(Dr,":").concat(Sr.TEMPLATE),STORYBOARD_SNIPPET:"".concat(Dr,":").concat(Sr.SNIPPET),STORYBOARD_I18N:"".concat(Dr,":").concat(Sr.I18N),MICRO_APP_RESOURCE_IMAGE:"".concat(Dr,":").concat(Sr.IMAGE),STORYBOARD_FUNCTION:"".concat(Dr,":").concat(Sr.FUNCTION),MICRO_APP_RESOURCE_MENU:"".concat(Dr,":").concat(Sr.MENU),MICRO_APP_RESOURCE_MENU_ITEM:"".concat(Dr,":").concat(Sr.MENU_ITEM),"WORKFLOW_DEF@EASYOPS":"".concat(Dr,":").concat(Sr.WORKFLOW)};function Gr(e){var t,n,r,a,i,o,s,c,l,u,d,h,p,f,m,b,v,g="rollback"!==e.action||e.rollBackIdInfo?e.action:"rollback_all",E=Wr.i18n.t(null!==(t=zr[e.category])&&void 0!==t?t:e.category),w=Wr.i18n.t(null!==(n=jr[g])&&void 0!==n?n:g),A=Wr.i18n.t(null!==(r=Kr[null===(a=e.abstract)||void 0===a?void 0:a.leftObjectId])&&void 0!==r?r:null===(i=e.abstract)||void 0===i?void 0:i.leftObjectId),y=Wr.i18n.t(null!==(o=Kr[null===(s=e.abstract)||void 0===s?void 0:s.rightObjectId])&&void 0!==o?o:null===(c=e.abstract)||void 0===c?void 0:c.rightObjectId),k=Vr(null===(l=e.abstract)||void 0===l?void 0:l.nodes,null===(u=e.abstract)||void 0===u?void 0:u.nodesCount),N=Vr(null===(d=e.abstract)||void 0===d?void 0:d.leftNodes,null===(h=e.abstract)||void 0===h?void 0:h.leftNodesCount),x=Vr(null===(p=e.abstract)||void 0===p?void 0:p.rightNodes,null===(f=e.abstract)||void 0===f?void 0:f.rightNodesCount),O="rollback"===g?Gr(e.rollBackIdInfo).abstract:null;return{category:E,action:w,leftObjectId:A,rightObjectId:y,nodes:k,leftNodes:N,rightNodes:x,abstract:Wr.i18n.t(null!==(m=Br[g])&&void 0!==m?m:g,{category:E,nodes:k,leftNodes:N,rightNodes:x,nodeChanges:null===(b=e.abstract)||void 0===b||null===(b=b.nodeChanges)||void 0===b?void 0:b.join(", "),relationChanges:null===(v=e.abstract)||void 0===v||null===(v=v.relationChanges)||void 0===v?void 0:v.join(", "),leftObjectId:A,rightObjectId:y,rollbackAbstract:O}),rollbackAbstract:O}}function Vr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ";return Wr.i18n.t("".concat(Dr,":").concat(Sr.NODE),{nodes:e.join(n),context:t>e.length?"ellipsis":void 0,count:t})}function Yr(e,t,n){return n(qr(e,t))}function Hr(e,t,n){return e.set(qr(e,t),n),n}function Xr(e,t){return e.get(qr(e,t))}function qr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(0,_r.initializeReactI18n)(Dr,{en:{LOAD_MORE:"Load more",LOADING:"Loading",NO_DATA:"No data",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }} etc., a total of {{ count }} items",ADD:"Add node",EDIT:"Edit node",DELETE:"Delete node",IMPORT:"Batch import node",CLONE:"Clone node",APPEND_RELATION:"Append Relation",UPDATE_RELATION:"Update Relation",REMOVE_RELATION:"Remove Relation",ROLLBACK:"Rollback",ROLLBACK_ALL:"Rollback all operations",ADD_FULL:"Add {{ category }} ({{ nodes }})",EDIT_FULL:"Edit {{ nodeChanges }} of {{ category }} ({{ nodes }})",DELETE_FULL:"Delete {{ category }} ({{ nodes }})",IMPORT_FULL:"Batch Import {{ category }} ({{ nodes }})",CLONE_FULL:"Clone {{ category }} ({{ nodes }})",APPEND_RELATION_FULL:"Append the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",UPDATE_RELATION_FULL:"Update the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",REMOVE_RELATION_FULL:"Remove the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",ROLLBACK_FULL:"Rollback to [{{ rollbackAbstract }}]",ROLLBACK_ALL_FULL:"Rollback all operations",PROJECT:"Project",USER:"User Group",PERMISSION:"Permission",BRICK:"Brick",ROUTE:"Route",TEMPLATE:"Template",SNIPPET:"Snippet",I18N:"I18N",IMAGE:"Image",FUNCTION:"Function",MENU:"Menu",MENU_ITEM:"Menu item",WORKFLOW:"Workflow"},zh:{LOAD_MORE:"加载更多",LOADING:"加载中",NO_DATA:"没有数据",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }}等共{{ count }}项",ADD:"新增节点",EDIT:"编辑节点",DELETE:"删除节点",IMPORT:"批量导入节点",CLONE:"克隆节点",APPEND_RELATION:"添加关系",UPDATE_RELATION:"更新关系",REMOVE_RELATION:"移除关系",ROLLBACK:"回滚",ROLLBACK_ALL:"回滚全部操作",ADD_FULL:"新增{{ category }}({{ nodes }})",EDIT_FULL:"编辑{{ category }}({{ nodes }})的 {{ nodeChanges }}",DELETE_FULL:"删除{{ category }}({{ nodes }})",IMPORT_FULL:"批量导入{{ category }}({{ nodes }})",CLONE_FULL:"克隆{{ category }}({{ nodes }})",APPEND_RELATION_FULL:"添加{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",UPDATE_RELATION_FULL:"更新{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",REMOVE_RELATION_FULL:"移除{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",ROLLBACK_FULL:"回滚到【{{ rollbackAbstract }}】",ROLLBACK_ALL_FULL:"回滚全部操作",PROJECT:"项目",USER:"用户组",PERMISSION:"权限点",BRICK:"构件",ROUTE:"路由",TEMPLATE:"模版",SNIPPET:"片段",I18N:"国际化",IMAGE:"图片",FUNCTION:"函数",MENU:"菜单",MENU_ITEM:"菜单项",WORKFLOW:"工作流"}});var Jr,{defineElement:$r,property:Qr,event:Zr}=(0,O.createDecorators)(),ea=(0,L.wrapBrick)("eo-button"),ta=(0,L.wrapBrick)("eo-link"),na=(0,L.wrapBrick)("eo-icon"),ra=(0,L.wrapBrick)("eo-easyops-avatar"),aa=(0,L.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",beforeVisibleChange:"before.visible.change"}),ia=new WeakMap,oa=new WeakMap,sa=new WeakMap,ca=new WeakSet,la=new WeakMap,ua=new WeakMap,da=new WeakMap,ha=new WeakMap,pa=new WeakMap;class fa extends L.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,ca),(0,w.A)(this,ia,hr(this)),(0,w.A)(this,oa,(pr(this),fr(this))),(0,w.A)(this,sa,(mr(this),br(this))),(0,w.A)(this,la,(Er(this),e=>{Yr(ca,this,vr).emit(e)})),(0,w.A)(this,ua,wr(this)),(0,w.A)(this,da,(kr(this),e=>{Yr(ca,this,Ar).emit(e)})),(0,w.A)(this,ha,Nr(this)),(0,w.A)(this,pa,(Lr(this),()=>{Yr(ca,this,xr).emit()}))}get appId(){return Xr(ia,this)}set appId(e){Hr(ia,this,e)}get projectId(){return Xr(oa,this)}set projectId(e){Hr(oa,this,e)}render(){return x().createElement(ma,{appId:this.appId,projectId:this.projectId,onHistoryItemClick:Xr(la,this),onRollback:Xr(da,this),onRollbackAll:Xr(pa,this)})}}function ma(e){var{appId:t,onHistoryItemClick:n,onRollback:r,onRollbackAll:a}=e,{t:i}=(0,_r.useTranslation)(Dr),[o,s]=(0,N.useState)(!1),[c,l]=(0,N.useState)(!0),[u,d]=(0,N.useState)(!1),[h,p]=(0,N.useState)([]),f=(0,N.useRef)(""),m=e=>{s(!0),Ur(t,{ts:f.current,limit:20}).then((t=>{p((n=>{var r=t.list.map((e=>(0,Ir.A)((0,Ir.A)({},e),{},{translation:Gr(e)})));return e?r:n.concat(r)})),f.current=t.ts,d(t.list.length<20),l(t.list.length<20)})).catch((e=>{(0,ze.handleHttpError)(e)})).finally((()=>{s(!1)}))};return x().createElement(aa,{placement:"bottom",trigger:"click",arrow:!0,arrowColor:"var(--color-fill-bg-container-4)",beforeVisibleChange:e=>{e.detail&&(l(!0),d(!1),p([]),f.current="",m(!0))}},x().createElement(ea,{slot:"anchor",shape:"circle",className:"history-action",icon:{lib:"antd",icon:"history",theme:"outlined"}}),x().createElement("div",null,x().createElement("div",{className:"history-title"},"History"),x().createElement("div",{className:"history-list"},h.length?x().createElement(x().Fragment,null,h.map(((e,t)=>x().createElement(ba,{key:"".concat(e.uniqueKey,"-").concat(e.ts),data:e,enableRollback:0!==t&&"rollback"!==e.action,current:0===t,onHistoryItemClick:n,onRollback:r}))),!c&&x().createElement("span",{className:"load-more-container"},x().createElement(ta,{className:"load-more",disabled:o,onClick:()=>m()},i(Sr.LOAD_MORE))),u&&x().createElement("span",{className:"end-container"},"The End",x().createElement(na,{className:"rollback-all",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>a()}))):x().createElement("div",{className:"empty"},i(o?Sr.LOADING:Sr.NO_DATA))),x().createElement("slot",null)))}function ba(e){var{data:t,enableRollback:n,current:r,onHistoryItemClick:a,onRollback:i}=e,o=Cr()(Number(t.ts)/1e6),s=Cr().duration(o.diff(Cr()())),c=s.days()<=-1?o.format("YYYY-MM-DD HH:mm:ss"):s.humanize(!0,{ss:0,s:60,m:60,h:24});return x().createElement("div",{className:"item-container"},x().createElement("div",{className:"item-title"},x().createElement("div",{className:"title-left",onClick:()=>a((0,Ir.A)((0,Ir.A)({},t),{},{enableRollback:n}))},x().createElement("div",{className:"topic",title:t.translation.abstract},t.translation.abstract),r&&x().createElement("div",{className:"branch"},"(current)")),x().createElement("div",{className:"title-right"},n&&x().createElement(na,{className:"rollback",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>i(t)}))),x().createElement("div",{className:"item-info"},x().createElement(ra,{className:"avatar",nameOrInstanceId:t.user,size:"xs"}),x().createElement("div",{className:"time"},c),x().createElement("div",{className:"operator"},t.user)))}Tr=fa,({e:[hr,pr,fr,mr,br,vr,gr,Er,wr,Ar,yr,kr,Nr,xr,Or,Lr],c:[Jr,dr]}=function(e,t,n,r,a,i){var o,s,c,l,u,d,h,p=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,m=Object.create,b=[m(null),m(null)],v=t.length;function g(t,n,r){return function(a,i){n&&(i=a,a=e);for(var o=0;o<t.length;o++)i=t[o].apply(a,r?[i]:[]);return r?i:a}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function w(e,t,n,r,a,i,c,l,u,d,h){function p(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),v=t[3],w=!c,A=1===a,k=3===a,N=4===a,x=2===a;function O(t,n,r){return function(a,i){return n&&(i=a,a=e),r&&r(a),L[t].call(a,i)}}if(!w){var L={},T=[],I=k?"get":N||A?"set":"value";if(u?(d||A?L={get:(0,y.A)((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:L[I]=v,d||(0,y.A)(L[I],r,x?"":I)):d||(L=Object.getOwnPropertyDescriptor(e,r)),!d&&!u){if((s=b[+l][r])&&7!=(s^a))throw new Error("Decorating two elements with the same name ("+L[I].name+") is not supported yet");b[+l][r]=a<3?1:a}}for(var R=e,C=m.length-1;C>=0;C-=n?2:1){var M=m[C],_=n?m[C-1]:void 0,S={},D={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),i.push(t)}.bind(null,S)};if(w)s=M.call(_,R,D),S.v=1,E(s,"class decorators","return")&&(R=s);else if(D.static=l,D.private=u,s=D.access={has:u?h.bind():function(e){return r in e}},N||(s.get=u?x?function(e){return p(e),L.value}:O("get",0,p):function(e){return e[r]}),x||k||(s.set=u?O("set",0,p):function(e,t){e[r]=t}),R=M.call(_,A?{get:L.get,set:L.set}:L[I],D),S.v=1,A){if("object"==typeof R&&R)(s=E(R.get,"accessor.get"))&&(L.get=s),(s=E(R.set,"accessor.set"))&&(L.set=s),(s=E(R.init,"accessor.init"))&&T.unshift(s);else if(void 0!==R)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(R,(d?"field":"method")+" decorators","return")&&(d?T.unshift(R):L[I]=R)}return a<2&&c.push(g(T,l,1),g(i,l,0)),d||w||(u?A?c.splice(-1,0,O("get",l),O("set",l)):c.push(x?L[I]:E.call.bind(L[I])):f(e,r,L)),R}function N(e){return f(e,p,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[p]),o=m(null==o?null:o),u=[],d=function(e){e&&u.push(g(e))},(h=function(t,r){for(var i=0;i<n.length;i++){var o=n[i],s=o[1],d=7&s;if((8&s)==t&&!d==r){var h=o[2],p=!!o[3],f=16&s;w(t?e:e.prototype,o,f,p?"#"+h:(0,A.A)(h),d,d<2?[]:t?l=l||[]:c=c||[],u,!!t,p,r,t&&p?function(t){return(0,k.A)(t)===e}:a)}}})(8,0),h(0,0),h(8,1),h(0,1),d(c),d(l),s=u,v||N(e),{e:s,get c(){var n=[];return v&&[N(e=w(e,[t],0,e.name,5,n)),g(n,1)]}}}(Tr,[$r("visual-builder.workbench-history-action",{styleTexts:[Mr.A]})],[[Qr(),1,"appId"],[Qr(),1,"projectId"],[Zr({type:"history.item.click"}),1,"historyItemClickEvent",e=>Xr(sa,e),(e,t)=>Hr(sa,e,t)],[Zr({type:"rollback"}),1,"rollbackEvent",e=>Xr(ua,e),(e,t)=>Hr(ua,e,t)],[Zr({type:"rollback.all"}),1,"rollbackAllEvent",e=>Xr(ha,e),(e,t)=>Hr(ha,e,t)]],0,(e=>pa.has((0,k.A)(e))),L.ReactNextElement)),dr();var va,ga,Ea,wa,Aa,ya,ka,Na,xa,Oa,La,Ta,Ia,Ra,Ca,Ma,_a,Sa,Da,Pa,Fa,Ua,Wa,ja,Ba,za,Ka,Ga,Va,Ya,Ha,Xa,qa,Ja,$a,Qa,Za,ei,ti,ni,ri,ai,ii,oi,si,ci,li,ui,di,hi,pi,fi,mi,bi,vi=n(2381);function gi(e,t,n){return n(Ai(e,t))}function Ei(e,t,n){return e.set(Ai(e,t),n),n}function wi(e,t){return e.get(Ai(e,t))}function Ai(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var yi,{defineElement:ki,property:Ni,event:xi}=(0,O.createDecorators)(),Oi=(0,L.wrapBrick)("eo-icon"),Li=(0,L.wrapBrick)("eo-tooltip"),Ti=new Set,Ii=new WeakMap,Ri=new WeakMap,Ci=new WeakMap,Mi=new WeakMap,_i=new WeakMap,Si=new WeakMap,Di=new WeakMap,Pi=new WeakMap,Fi=new WeakMap,Ui=new WeakSet,Wi=new WeakMap,ji=new WeakMap,Bi=new WeakMap,zi=new WeakMap,Ki=new WeakMap,Gi=new WeakMap,Vi=new WeakMap,Yi=new WeakMap,Hi=new WeakMap,Xi=new WeakMap,qi=new WeakMap,Ji=new WeakMap,$i=new WeakMap,Qi=new WeakMap,Zi=new WeakMap,eo=new WeakMap,to=new WeakMap;class no extends L.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,Ui),(0,w.A)(this,Ii,ga(this)),(0,w.A)(this,Ri,(Ea(this),wa(this))),(0,w.A)(this,Ci,(Aa(this),ya(this))),(0,w.A)(this,Mi,(ka(this),Na(this))),(0,w.A)(this,_i,(xa(this),Oa(this))),(0,w.A)(this,Si,(La(this),Ta(this))),(0,w.A)(this,Di,(Ia(this),Ra(this))),(0,w.A)(this,Pi,(Ca(this),Ma(this))),(0,w.A)(this,Fi,(_a(this),Sa(this))),(0,w.A)(this,Wi,(Fa(this),e=>{gi(Ui,this,Da).emit(e)})),(0,w.A)(this,ji,Ua(this)),(0,w.A)(this,Bi,(Ba(this),e=>{gi(Ui,this,Wa).emit(e)})),(0,w.A)(this,zi,za(this)),(0,w.A)(this,Ki,(Va(this),()=>{gi(Ui,this,Ka).emit()})),(0,w.A)(this,Gi,Ya(this)),(0,w.A)(this,Vi,(qa(this),()=>{gi(Ui,this,Ha).emit()})),(0,w.A)(this,Yi,Ja(this)),(0,w.A)(this,Hi,(Za(this),e=>{gi(Ui,this,$a).emit(e)})),(0,w.A)(this,Xi,ei(this)),(0,w.A)(this,qi,(ri(this),()=>{gi(Ui,this,ti).emit()})),(0,w.A)(this,Ji,ai(this)),(0,w.A)(this,$i,(si(this),e=>{gi(Ui,this,ii).emit(e)})),(0,w.A)(this,Qi,ci(this)),(0,w.A)(this,Zi,(di(this),e=>{gi(Ui,this,li).emit(e)})),(0,w.A)(this,eo,hi(this)),(0,w.A)(this,to,(mi(this),e=>{gi(Ui,this,pi).emit(e)}))}get label(){return wi(Ii,this)}set label(e){Ei(Ii,this,e)}get type(){return wi(Ri,this)}set type(e){Ei(Ri,this,e)}get external(){return wi(Ci,this)}set external(e){Ei(Ci,this,e)}get subNodes(){return wi(Mi,this)}set subNodes(e){Ei(Mi,this,e)}get active(){return wi(_i,this)}set active(e){Ei(_i,this,e)}get notSynced(){return wi(Si,this)}set notSynced(e){Ei(Si,this,e)}get disableChildAppend(){return wi(Di,this)}set disableChildAppend(e){Ei(Di,this,e)}get autoFocusOnce(){return wi(Pi,this)}set autoFocusOnce(e){Ei(Pi,this,e)}render(){return x().createElement(ro,{label:this.label,type:this.type,external:this.external,subNodes:this.subNodes,autoFocusOnce:this.autoFocusOnce,onLabelEditingChange:wi(Wi,this),onLabelChange:wi(Bi,this),onNodeClick:wi(Ki,this),onNodeDoubleClick:wi(Vi,this),onNodeContextMenu:wi(Hi,this),onChildAppend:wi(qi,this),onExternalClick:wi($i,this),onSubNodeDoubleClick:wi(Zi,this),onSubNodeContextMenu:wi(to,this)})}}function ro(e){var t,{label:n,type:r,external:a,subNodes:i,autoFocusOnce:o,onLabelEditingChange:s,onLabelChange:c,onNodeClick:l,onNodeDoubleClick:u,onNodeContextMenu:d,onChildAppend:h,onExternalClick:p,onSubNodeDoubleClick:f,onSubNodeContextMenu:m}=e,b="board"===r?"board":"page",[v,g]=(0,N.useState)(n),[E,w]=(0,N.useState)(!1),A=(0,N.useRef)(!1),[y,k]=(0,N.useState)(!1),O=(0,N.useRef)(null);(0,N.useEffect)((()=>{g(n)}),[n]);var L=(0,N.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),w(!0)}),[]);(0,N.useEffect)((()=>{o&&!Ti.has(o)&&(Ti.add(o),setTimeout((()=>{w(!0)}),1))}),[o]),(0,N.useEffect)((()=>{var e,t;E&&(null===(e=O.current)||void 0===e||e.focus({preventScroll:!0}),null===(t=O.current)||void 0===t||t.select())}),[E]),(0,N.useEffect)((()=>{A.current?null==s||s(E):A.current=!0}),[E,s]);var T=(0,N.useCallback)((e=>{g(e.target.value)}),[]),I=(0,N.useCallback)((e=>{var t,n=e.key||e.keyCode||e.which;"Enter"!==n&&13!==n||null===(t=O.current)||void 0===t||t.blur()}),[]),R=(0,N.useCallback)((()=>{w(!1),k(!0)}),[]);(0,N.useEffect)((()=>{y&&(null==c||c(v),k(!1))}),[v,c,y]);var M=(0,N.useCallback)((e=>{e.stopPropagation(),null==h||h()}),[h]),_=(0,N.useCallback)((e=>{e.stopPropagation(),null==p||p(a)}),[a,p]),S=(0,N.useCallback)((e=>{e.stopPropagation()}),[]),D=38*Math.max(0,Math.floor((null!==(t=null==i?void 0:i.length)&&void 0!==t?t:0)-3));return x().createElement(x().Fragment,null,x().createElement("div",{className:C()("node",b,{"editing-label":E}),style:{height:"board"===b?70:130+D},onClick:l,onDoubleClick:u,onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==d||d({clientX:e.clientX,clientY:e.clientY})}},x().createElement("input",{className:"label-input",value:v,ref:O,onChange:T,onKeyDown:I,onBlur:R,onDoubleClick:S,onContextMenu:S,onMouseDown:S}),x().createElement("div",{className:"label",onDoubleClick:L,onMouseDown:S},v),"board"===b?x().createElement("div",{className:"icon-container"},x().createElement(Oi,{lib:"antd",icon:"unordered-list"})):x().createElement("div",{className:"thumbnail-container",style:{height:98+D}},x().createElement("div",{className:"thumbnail-placeholder"},x().createElement(Oi,{lib:"antd",icon:"ellipsis"})),a&&x().createElement("div",{className:"external",onClick:_,onDoubleClick:S,onMouseDown:S},x().createElement(Oi,{lib:"antd",icon:"desktop"}),x().createElement("span",{className:"external-label"},a.label)),null!=i&&i.length?x().createElement("div",{className:"sub-nodes"},i.map((e=>x().createElement(ao,{key:e.id,subNode:e,onSubNodeDoubleClick:f,onSubNodeContextMenu:m})))):null)),x().createElement("div",{className:"add-button",role:"button",onClick:M,onMouseDown:S},x().createElement(Oi,{lib:"fa",icon:"plus"})))}function ao(e){var{subNode:t,onSubNodeDoubleClick:n,onSubNodeContextMenu:r}=e;return x().createElement(Li,{key:t.id,content:t.label},x().createElement("div",{className:"sub-node",onDoubleClick:e=>{e.stopPropagation(),null==n||n(t)},onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==r||r({node:t,clientX:e.clientX,clientY:e.clientY})}},x().createElement("div",{className:"sub-node-skeleton-title"}),x().createElement("div",{className:"sub-node-skeleton-content"}),x().createElement("div",{className:"sub-node-skeleton-button"})))}bi=no,({e:[ga,Ea,wa,Aa,ya,ka,Na,xa,Oa,La,Ta,Ia,Ra,Ca,Ma,_a,Sa,Da,Pa,Fa,Ua,Wa,ja,Ba,za,Ka,Ga,Va,Ya,Ha,Xa,qa,Ja,$a,Qa,Za,ei,ti,ni,ri,ai,ii,oi,si,ci,li,ui,di,hi,pi,fi,mi],c:[yi,va]}=function(e,t,n,r,a,i){var o,s,c,l,u,d,h,p=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,m=Object.create,b=[m(null),m(null)],v=t.length;function g(t,n,r){return function(a,i){n&&(i=a,a=e);for(var o=0;o<t.length;o++)i=t[o].apply(a,r?[i]:[]);return r?i:a}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function w(e,t,n,r,a,i,c,l,u,d,h){function p(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),v=t[3],w=!c,A=1===a,k=3===a,N=4===a,x=2===a;function O(t,n,r){return function(a,i){return n&&(i=a,a=e),r&&r(a),L[t].call(a,i)}}if(!w){var L={},T=[],I=k?"get":N||A?"set":"value";if(u?(d||A?L={get:(0,y.A)((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:L[I]=v,d||(0,y.A)(L[I],r,x?"":I)):d||(L=Object.getOwnPropertyDescriptor(e,r)),!d&&!u){if((s=b[+l][r])&&7!=(s^a))throw new Error("Decorating two elements with the same name ("+L[I].name+") is not supported yet");b[+l][r]=a<3?1:a}}for(var R=e,C=m.length-1;C>=0;C-=n?2:1){var M=m[C],_=n?m[C-1]:void 0,S={},D={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),i.push(t)}.bind(null,S)};if(w)s=M.call(_,R,D),S.v=1,E(s,"class decorators","return")&&(R=s);else if(D.static=l,D.private=u,s=D.access={has:u?h.bind():function(e){return r in e}},N||(s.get=u?x?function(e){return p(e),L.value}:O("get",0,p):function(e){return e[r]}),x||k||(s.set=u?O("set",0,p):function(e,t){e[r]=t}),R=M.call(_,A?{get:L.get,set:L.set}:L[I],D),S.v=1,A){if("object"==typeof R&&R)(s=E(R.get,"accessor.get"))&&(L.get=s),(s=E(R.set,"accessor.set"))&&(L.set=s),(s=E(R.init,"accessor.init"))&&T.unshift(s);else if(void 0!==R)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(R,(d?"field":"method")+" decorators","return")&&(d?T.unshift(R):L[I]=R)}return a<2&&c.push(g(T,l,1),g(i,l,0)),d||w||(u?A?c.splice(-1,0,O("get",l),O("set",l)):c.push(x?L[I]:E.call.bind(L[I])):f(e,r,L)),R}function N(e){return f(e,p,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[p]),o=m(null==o?null:o),u=[],d=function(e){e&&u.push(g(e))},(h=function(t,r){for(var i=0;i<n.length;i++){var o=n[i],s=o[1],d=7&s;if((8&s)==t&&!d==r){var h=o[2],p=!!o[3],f=16&s;w(t?e:e.prototype,o,f,p?"#"+h:(0,A.A)(h),d,d<2?[]:t?l=l||[]:c=c||[],u,!!t,p,r,t&&p?function(t){return(0,k.A)(t)===e}:a)}}})(8,0),h(0,0),h(8,1),h(0,1),d(c),d(l),s=u,v||N(e),{e:s,get c(){var n=[];return v&&[N(e=w(e,[t],0,e.name,5,n)),g(n,1)]}}}(bi,[ki("visual-builder.page-arch-node",{styleTexts:[vi.A]})],[[Ni(),1,"label"],[Ni(),1,"type"],[Ni({attribute:!1}),1,"external"],[Ni({attribute:!1}),1,"subNodes"],[Ni({type:Boolean,render:!1}),1,"active"],[Ni({type:Boolean,render:!1}),1,"notSynced"],[Ni({type:Boolean,render:!1}),1,"disableChildAppend"],[Ni(),1,"autoFocusOnce"],[xi({type:"label.editing.change"}),1,"labelEditingChange",e=>wi(Fi,e),(e,t)=>Ei(Fi,e,t)],[xi({type:"label.change"}),1,"labelChange",e=>wi(ji,e),(e,t)=>Ei(ji,e,t)],[xi({type:"node.click"}),1,"nodeClick",e=>wi(zi,e),(e,t)=>Ei(zi,e,t)],[xi({type:"node.dblclick"}),1,"nodeDoubleClick",e=>wi(Gi,e),(e,t)=>Ei(Gi,e,t)],[xi({type:"node.contextmenu"}),1,"nodeContextMenu",e=>wi(Yi,e),(e,t)=>Ei(Yi,e,t)],[xi({type:"child.append"}),1,"childAppend",e=>wi(Xi,e),(e,t)=>Ei(Xi,e,t)],[xi({type:"external.click"}),1,"externalClick",e=>wi(Ji,e),(e,t)=>Ei(Ji,e,t)],[xi({type:"subNode.dblclick"}),1,"subNodeDoubleClick",e=>wi(Qi,e),(e,t)=>Ei(Qi,e,t)],[xi({type:"subNode.contextmenu"}),1,"subNodeContextMenu",e=>wi(eo,e),(e,t)=>Ei(eo,e,t)]],0,(e=>to.has((0,k.A)(e))),L.ReactNextElement)),va();var io,oo,so,co,lo,uo,ho,po,fo,mo,bo=n(4845),vo=n(6213);function go(e,t,n){return n(yo(e,t))}function Eo(e,t,n,r){return t(yo(e,n),r),r}function wo(e,t,n){return e.set(yo(e,t),n),n}function Ao(e,t){return e.get(yo(e,t))}function yo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var{method:ko,property:No}=(0,O.createDecorators)(),xo=new WeakMap,Oo=new WeakSet,Lo=new WeakMap,To=new WeakMap,Io=new WeakMap,Ro=new WeakMap,Co=new WeakMap,Mo=new WeakMap;class _o extends L.ReactNextElement{constructor(){super(...arguments),(0,E.A)(this,Oo),(0,w.A)(this,xo,(io(this),!1)),(0,w.A)(this,Lo,"normal"),(0,w.A)(this,To,!1),(0,w.A)(this,Io,oo(this)),(0,w.A)(this,Ro,(so(this),co(this))),(0,w.A)(this,Co,(lo(this),uo(this))),(0,w.A)(this,Mo,(ho(this),po(this))),fo(this)}get isFormItemElement(){return!0}set validateState(e){Eo(Oo,Fo,this,e),this._render()}get validateState(){return go(Oo,this,Po)}set notRender(e){this.hidden=e,Eo(Oo,Do,this,e),this._render()}get notRender(){return go(Oo,this,So)}get $bindFormItem(){return go(Oo,this,Uo)}set $bindFormItem(e){Eo(Oo,Wo,this,e),this._render()}get helpBrick(){return Ao(Io,this)}set helpBrick(e){wo(Io,this,e)}get labelBrick(){return Ao(Ro,this)}set labelBrick(e){wo(Ro,this,e)}get labelCol(){return Ao(Co,this)}set labelCol(e){wo(Co,this,e)}get wrapperCol(){return Ao(Mo,this)}set wrapperCol(e){wo(Mo,this,e)}setNotRender(e){this.notRender=e}getFormElement(){for(var e=this;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function So(e){return Ao(xo,e)}function Do(e,t){wo(xo,e,t)}function Po(e){return Ao(Lo,e)}function Fo(e,t){wo(Lo,e,t)}function Uo(e){return Ao(To,e)}function Wo(e,t){wo(To,e,t)}mo=_o,[oo,so,co,lo,uo,ho,po,fo,io]=function(e,t,n,r,a,i){var o,s,c,l,u,d,h,p=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,m=Object.create,b=[m(null),m(null)],v=t.length;function g(t,n,r){return function(a,i){n&&(i=a,a=e);for(var o=0;o<t.length;o++)i=t[o].apply(a,r?[i]:[]);return r?i:a}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function w(e,t,n,r,a,i,c,l,u,d,h){function p(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),v=t[3],w=!c,A=1===a,k=3===a,N=4===a,x=2===a;function O(t,n,r){return function(a,i){return n&&(i=a,a=e),r&&r(a),L[t].call(a,i)}}if(!w){var L={},T=[],I=k?"get":N||A?"set":"value";if(u?(d||A?L={get:(0,y.A)((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:L[I]=v,d||(0,y.A)(L[I],r,x?"":I)):d||(L=Object.getOwnPropertyDescriptor(e,r)),!d&&!u){if((s=b[+l][r])&&7!=(s^a))throw new Error("Decorating two elements with the same name ("+L[I].name+") is not supported yet");b[+l][r]=a<3?1:a}}for(var R=e,C=m.length-1;C>=0;C-=n?2:1){var M=m[C],_=n?m[C-1]:void 0,S={},D={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),i.push(t)}.bind(null,S)};if(w)s=M.call(_,R,D),S.v=1,E(s,"class decorators","return")&&(R=s);else if(D.static=l,D.private=u,s=D.access={has:u?h.bind():function(e){return r in e}},N||(s.get=u?x?function(e){return p(e),L.value}:O("get",0,p):function(e){return e[r]}),x||k||(s.set=u?O("set",0,p):function(e,t){e[r]=t}),R=M.call(_,A?{get:L.get,set:L.set}:L[I],D),S.v=1,A){if("object"==typeof R&&R)(s=E(R.get,"accessor.get"))&&(L.get=s),(s=E(R.set,"accessor.set"))&&(L.set=s),(s=E(R.init,"accessor.init"))&&T.unshift(s);else if(void 0!==R)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(R,(d?"field":"method")+" decorators","return")&&(d?T.unshift(R):L[I]=R)}return a<2&&c.push(g(T,l,1),g(i,l,0)),d||w||(u?A?c.splice(-1,0,O("get",l),O("set",l)):c.push(x?L[I]:E.call.bind(L[I])):f(e,r,L)),R}function N(e){return f(e,p,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[p]),o=m(null==o?null:o),u=[],d=function(e){e&&u.push(g(e))},(h=function(t,r){for(var a=0;a<n.length;a++){var i=n[a],o=i[1],s=7&o;if((8&o)==t&&!s==r){var d=i[2],h=!!i[3],p=16&o;w(t?e:e.prototype,i,p,h?"#"+d:(0,A.A)(d),s,s<2?[]:t?l=l||[]:c=c||[],u,!!t,h,r,t&&h?function(t){return(0,k.A)(t)===e}:undefined)}}})(8,0),h(0,0),h(8,1),h(0,1),d(c),d(l),s=u,v||N(e),{e:s,get c(){var n=[];return v&&[N(e=w(e,[t],0,e.name,5,n)),g(n,1)]}}}(mo,[],[[No({attribute:!1}),1,"helpBrick"],[No({attribute:!1}),1,"labelBrick"],[No({attribute:!1}),1,"labelCol"],[No({attribute:!1}),1,"wrapperCol"],[ko(),2,"setNotRender"],[ko(),2,"getFormElement"]],0,0,L.ReactNextElement).e;var jo=function(){var e=(0,Pr.A)((function*(e,t){return(yield Fr.http.post("api/gateway/next_builder.contract_center.SearchContract/api/v1/contract/search",e,t)).data}));return function(t,n){return e.apply(this,arguments)}}(),Bo=function(e){return e.CONTRACT_OPTIONS_TIPS_PREFIX="CONTRACT_OPTIONS_TIPS_PREFIX",e.CONTRACT_OPTIONS_TIPS_SUFFIX="CONTRACT_OPTIONS_TIPS_SUFFIX",e.CONTRACT_VALIDATE_MESSAGE="CONTRACT_VALIDATE_MESSAGE",e}({}),zo="bricks/visual-builder/contract-select",Ko={en:{CONTRACT_OPTIONS_TIPS_PREFIX:"Only the first",CONTRACT_OPTIONS_TIPS_SUFFIX:"items are displayed, please search for more results",CONTRACT_VALIDATE_MESSAGE:"Please fill in the correct contract name "},zh:{CONTRACT_OPTIONS_TIPS_PREFIX:"仅展示前",CONTRACT_OPTIONS_TIPS_SUFFIX:"项,更多结果请搜索",CONTRACT_VALIDATE_MESSAGE:"请填写正确的契约名称"}};(0,_r.initializeReactI18n)(zo,Ko);var Go,Vo,Yo,Ho,Xo,qo,Jo,$o,Qo,Zo,es,ts,ns,rs,as,is,os=(0,L.wrapBrick)("eo-icon"),ss=(0,L.wrapBrick)("eo-input",{onChange:"change"});function cs(e){var{itemsCount:t=20,onBlur:n}=e,[r,a]=(0,N.useState)(t),{t:i}=(0,_r.useTranslation)(zo),[o,s]=(0,N.useState)(!1);return x().createElement("div",{className:"options-tips",slot:e.slot},i(Bo.CONTRACT_OPTIONS_TIPS_PREFIX)," ",o?x().createElement(ss,{autoFocus:!0,inputStyle:{width:65},value:String(r),onBlur:()=>{s(!1),null==n||n(r)},onChange:e=>{a(Number(e.detail))}}):x().createElement("span",null,r," ",x().createElement(os,{icon:"edit",lib:"antd",onClick:()=>{s(!0)}}))," ",i(Bo.CONTRACT_OPTIONS_TIPS_SUFFIX))}function ls(e,t,n){return e.set(ds(e,t),n),n}function us(e,t){return e.get(ds(e,t))}function ds(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(0,_r.initializeReactI18n)(zo,Ko);var hs,{defineElement:ps,property:fs,event:ms}=(0,O.createDecorators)(),bs=(0,L.wrapBrick)("eo-form-item"),vs=(0,L.wrapBrick)("eo-auto-complete",{onChange:"change"}),gs=new WeakMap,Es=new WeakMap,ws=new WeakMap,As=new WeakMap,ys=new WeakMap,ks=new WeakMap,Ns=new WeakSet;function xs(e){if("string"!=typeof e)return{name:"",version:""};var[t,n]=e.split(":");return{name:t,version:n}}function Os(e){return/.*@.*:\d+\.\d+\.\d+/.test(e)}function Ls(e){return(0,vn.isNil)(e)||Os(e)?"":Wr.i18n.t("".concat(zo,":").concat(Bo.CONTRACT_VALIDATE_MESSAGE))}function Ts(e){var{value:t,inputStyle:n,validateState:r,suffix:a,onChange:i}=e,[o,s]=(0,N.useState)(),[c,l]=(0,N.useState)(20),u=function(e){var{pageSize:t=20,q:n=""}=e,[r,a]=(0,N.useState)([]),[i,o]=(0,N.useState)(n),[s,c]=(0,N.useState)(t);return(0,N.useEffect)((()=>{o(n)}),[n]),(0,N.useEffect)((()=>{c(t)}),[t]),(0,N.useEffect)((()=>{(0,Pr.A)((function*(){try{var{list:e}=yield jo({page:1,pageSize:s,fullContractName:i},{interceptorParams:{ignoreLoadingBar:!0}});a(e)}catch(e){console.error(e),a([])}}))()}),[i,s]),r}({q:o,pageSize:c}),[d,h]=(0,N.useState)(xs(t)),[p,f]=(0,N.useState)([]);(0,N.useEffect)((()=>{h(xs(t))}),[t]);var m=(0,N.useMemo)((()=>(0,vn.debounce)((e=>{s(e)}),200)),[]);return x().createElement("div",{className:"contract-wrapper"},x().createElement(vs,{className:"contract-selector",options:null==u?void 0:u.map((e=>({value:e.fullContractName,label:e.fullContractName}))),value:d.name,inputStyle:n,validateState:r,onChange:e=>{var t=e.detail;if(Os(t))h(xs(t)),null==i||i(t);else{var n,r,a=null===(n=u.find((e=>e.fullContractName===t)))||void 0===n?void 0:n.version,o=null!==(r=null==a?void 0:a[0])&&void 0!==r?r:"";f(a),h({name:t,version:o}),null==i||i("".concat(t,":").concat(o))}m(t)}},x().createElement(cs,{onBlur:e=>l(e),slot:"options-toolbar"})),x().createElement(vs,{className:"version-selector",value:d.version,validateState:r,options:null==p?void 0:p.map((e=>({value:e,label:e}))),onChange:e=>{var t=e.detail;h({name:d.name,version:t}),null==i||i("".concat(d.name,":").concat(t))}}),null!=a&&a.useBrick?x().createElement(bo.ReactUseMultipleBricks,a):null)}is=class extends _o{constructor(){super(...arguments),(0,E.A)(this,Ns),(0,w.A)(this,gs,Vo(this)),(0,w.A)(this,Es,(Yo(this),Ho(this))),(0,w.A)(this,ws,(Xo(this),qo(this))),(0,w.A)(this,As,(Jo(this),$o(this))),(0,w.A)(this,ys,(Qo(this),Zo(this))),(0,w.A)(this,ks,(es(this),ts(this))),(0,te.A)(this,"handleChange",(as(this),e=>{var t,n;(t=Ns,this,n=ns,n(ds(t,this))).emit(e)}))}get name(){return us(gs,this)}set name(e){ls(gs,this,e)}get required(){return us(Es,this)}set required(e){ls(Es,this,e)}get label(){return us(ws,this)}set label(e){ls(ws,this,e)}get value(){return us(As,this)}set value(e){ls(As,this,e)}get suffix(){return us(ys,this)}set suffix(e){ls(ys,this,e)}render(){return x().createElement(bs,{curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,labelBrick:this.labelBrick,helpBrick:this.helpBrick,notRender:this.notRender,trigger:"handleChange",validator:Ls},x().createElement(Ts,{value:this.value,suffix:this.suffix,validateState:this.validateState,onChange:this.handleChange}))}},({e:[Vo,Yo,Ho,Xo,qo,Jo,$o,Qo,Zo,es,ts,ns,rs,as],c:[hs,Go]}=function(e,t,n,r,a,i){var o,s,c,l,u,d,h,p=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,m=Object.create,b=[m(null),m(null)],v=t.length;function g(t,n,r){return function(a,i){n&&(i=a,a=e);for(var o=0;o<t.length;o++)i=t[o].apply(a,r?[i]:[]);return r?i:a}}function E(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function w(e,t,n,r,a,i,c,l,u,d,h){function p(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),v=t[3],w=!c,A=1===a,k=3===a,N=4===a,x=2===a;function O(t,n,r){return function(a,i){return n&&(i=a,a=e),r&&r(a),L[t].call(a,i)}}if(!w){var L={},T=[],I=k?"get":N||A?"set":"value";if(u?(d||A?L={get:(0,y.A)((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:L[I]=v,d||(0,y.A)(L[I],r,x?"":I)):d||(L=Object.getOwnPropertyDescriptor(e,r)),!d&&!u){if((s=b[+l][r])&&7!=(s^a))throw new Error("Decorating two elements with the same name ("+L[I].name+") is not supported yet");b[+l][r]=a<3?1:a}}for(var R=e,C=m.length-1;C>=0;C-=n?2:1){var M=m[C],_=n?m[C-1]:void 0,S={},D={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:o,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),i.push(t)}.bind(null,S)};if(w)s=M.call(_,R,D),S.v=1,E(s,"class decorators","return")&&(R=s);else if(D.static=l,D.private=u,s=D.access={has:u?h.bind():function(e){return r in e}},N||(s.get=u?x?function(e){return p(e),L.value}:O("get",0,p):function(e){return e[r]}),x||k||(s.set=u?O("set",0,p):function(e,t){e[r]=t}),R=M.call(_,A?{get:L.get,set:L.set}:L[I],D),S.v=1,A){if("object"==typeof R&&R)(s=E(R.get,"accessor.get"))&&(L.get=s),(s=E(R.set,"accessor.set"))&&(L.set=s),(s=E(R.init,"accessor.init"))&&T.unshift(s);else if(void 0!==R)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(R,(d?"field":"method")+" decorators","return")&&(d?T.unshift(R):L[I]=R)}return a<2&&c.push(g(T,l,1),g(i,l,0)),d||w||(u?A?c.splice(-1,0,O("get",l),O("set",l)):c.push(x?L[I]:E.call.bind(L[I])):f(e,r,L)),R}function N(e){return f(e,p,{configurable:!0,enumerable:!0,value:o})}return void 0!==i&&(o=i[p]),o=m(null==o?null:o),u=[],d=function(e){e&&u.push(g(e))},(h=function(t,r){for(var i=0;i<n.length;i++){var o=n[i],s=o[1],d=7&s;if((8&s)==t&&!d==r){var h=o[2],p=!!o[3],f=16&s;w(t?e:e.prototype,o,f,p?"#"+h:(0,A.A)(h),d,d<2?[]:t?l=l||[]:c=c||[],u,!!t,p,r,t&&p?function(t){return(0,k.A)(t)===e}:a)}}})(8,0),h(0,0),h(8,1),h(0,1),d(c),d(l),s=u,v||N(e),{e:s,get c(){var n=[];return v&&[N(e=w(e,[t],0,e.name,5,n)),g(n,1)]}}}(is,[ps("visual-builder.contract-select",{styleTexts:[vo.A]})],[[fs(),1,"name"],[fs({type:Boolean}),1,"required"],[fs(),1,"label"],[fs({attribute:!1}),1,"value"],[fs({attribute:!1}),1,"suffix"],[ms({type:"change"}),1,"changeEvent",e=>us(ks,e),(e,t)=>ls(ks,e,t)]],0,(e=>Ns.has((0,k.A)(e))),_o)),Go()},6213:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),a=n.n(r),i=n(935),o=n.n(i)()(a());o.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.contract-wrapper{display:flex;gap:4px}.contract-selector{flex:1}.version-selector{width:100px}.options-tips{padding:0px 10px;font-weight:400;color:#999;white-space:nowrap;font-style:italic}",""]);const s=o.toString()},2381:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),a=n.n(r),i=n(935),o=n.n(i)()(a());o.push([e.id,":host{--local-node-outline-style:solid;display:block}:host([hidden]){display:none}:host([not-synced]){--local-node-outline-style:dashed}*{box-sizing:border-box}.node{width:168px;max-width:none;height:130px;position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.node.board{height:70px;max-width:168px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding-bottom:4px}.label,\n.label-input{width:100%;height:24px;padding:3px;border:none;line-height:18px;font-size:var(--sub-title-font-size-small);color:var(--color-header-text);font-weight:var(--font-weight-500);text-align:center;font-family:inherit;cursor:text;-webkit-user-select:text;-moz-user-select:text;user-select:text}.label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.node.editing-label .label{height:0}.node:not(.editing-label) .label-input{display:none}.add-button,\n.icon-container,\n.thumbnail-container,\n.thumbnail-placeholder{display:flex;align-items:center;justify-content:center}.thumbnail-container{height:98px;outline:1px var(--local-node-outline-style) var(--palette-gray-4);opacity:1;border:4px solid transparent;border-radius:4px;width:100%;position:relative;flex-direction:column}.thumbnail-placeholder{color:var(--palette-gray-5);font-size:36px;flex:1}.icon-container{font-size:20px;background-color:var(--palette-teal-6);color:var(--palette-gray-4);width:36px;height:36px;border-radius:50%;outline-offset:4px}:host([active]) .thumbnail-container,\n:host([active]) .icon-container{outline:2px var(--local-node-outline-style) var(--palette-blue-3)}:host(:not([active])) .node:hover .thumbnail-container,\n:host(:not([active])) .node:hover .icon-container{outline:1px var(--local-node-outline-style) var(--palette-blue-3)}.add-button{position:absolute;bottom:-26px;left:calc(50% - 12px);width:24px;height:24px;background:var(--palette-gray-3);color:var(--palette-gray-6);border-radius:50%;cursor:pointer}:host([not-synced]) .add-button,\n:host([disable-child-append]) .add-button,\n:host(:not([active])) .add-button{display:none}.add-button:hover{background:var(--palette-blue-5);color:var(--palette-gray-2)}.external{position:absolute;top:4px;left:4px;padding:0 10px;display:flex;align-items:center;gap:6px;background:var(--palette-purple-4);font-size:12px;line-height:20px;height:22px;cursor:pointer;color:var(--palette-gray-1);border-radius:9999px;right:4px;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}.external-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.external:hover{background:var(--palette-purple-5)}.sub-nodes{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:6px;gap:6px;width:100%}.sub-node{background-color:var(--palette-gray-2);border-radius:4px;padding:6px;display:flex;flex-direction:column;justify-content:space-between;height:32px}.sub-node-skeleton-title{width:18px;height:4px;border-radius:2px;align-self:flex-start;background-color:var(--palette-gray-4)}.sub-node-skeleton-content{width:100%;height:4px;border-radius:2px;background-color:var(--palette-gray-4)}.sub-node-skeleton-button{width:18px;height:4px;border-radius:2px;align-self:flex-end;background-color:var(--palette-blue-3)}.sub-node:hover{background-color:var(--palette-gray-3)}.sub-node:hover .sub-node-skeleton-title,\n.sub-node:hover .sub-node-skeleton-content{background-color:var(--palette-gray-5)}.sub-node:hover .sub-node-skeleton-button{background-color:var(--palette-blue-4)}",""]);const s=o.toString()},9765:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),a=n.n(r),i=n(935),o=n.n(i)()(a());o.push([e.id,".custom-scrollbar-container{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.15) rgba(255,255,255,0.03)}.custom-scrollbar-container::-webkit-scrollbar{width:8px;height:8px;background-color:transparent;position:absolute}.custom-scrollbar-container::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0);border-radius:4px}.custom-scrollbar-container:hover::-webkit-scrollbar-track{background-color:rgba(255,255,255,0.03)}.custom-scrollbar-container:hover::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.15)}",""]);const s=o.toString()},3430:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),a=n.n(r),i=n(935),o=n.n(i)()(a());o.push([e.id,'.workBenchActionList{display:flex;flex-direction:column;width:-webkit-min-content;width:-moz-min-content;width:min-content;height:100%;background-color:#4297ff}:host-context(html[data-theme="dark-v2"]) .workBenchActionList,\n:host-context([data-override-theme="dark-v2"]) .workBenchActionList{background-color:#323237}',""]);const s=o.toString()},5292:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),a=n.n(r),i=n(935),o=n.n(i)()(a());o.push([e.id,'.action::part(link){display:flex;justify-content:center;align-items:center;width:48px;height:48px;font-size:24px;color:rgba(255,255,255,0.4);position:relative;transition:none}.action.active::part(link)::before{content:"";position:absolute;top:0;bottom:0;left:0;width:2px;background-color:white}.action.active::part(link),\n.action::part(link):hover{color:white}',""]);const s=o.toString()},1361:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),a=n.n(r),i=n(935),o=n.n(i)()(a());o.push([e.id,":host{display:inline-block}:host([hidden]){display:none}eo-popover::part(popup){width:800px;max-width:60vw;padding:10px;background:var(--color-fill-bg-container-4);border-radius:var(--medius-border-radius);box-shadow:var(--feedback-container-shadow);z-index:1000}.history-title{font-size:var(--title-font-size);font-weight:var(--font-weight-500);color:var(--color-strong-text);margin-bottom:5px}.history-list{max-height:500px;overflow-y:auto}.item-container{padding:10px 0;display:flex;flex-direction:column;gap:5px}.empty{padding:5px 0 10px 0;font-size:14px;color:var(--text-color-secondary);text-align:center}.item-container:not(:last-of-type){border-bottom:1px solid var(--color-border-divider-line)}.item-title{display:flex;align-items:center;justify-content:space-between;gap:5px}.title-left,\n.title-right{display:flex;align-items:center}.title-left{cursor:pointer;overflow:hidden;gap:5px}.topic{font-size:14px;color:var(--text-color-title);font-weight:var(--font-weight-500);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.branch{font-size:14px;color:var(--text-color-secondary)}.rollback{margin-right:5px;font-size:14px;color:var(--text-color-secondary);cursor:pointer}.rollback:hover{color:var(--color-brand)}.item-info{display:flex;align-items:center;gap:5px}.time,\n.operator{font-size:14px;color:var(--text-color-secondary)}.load-more-container{display:block;text-align:center}.end-container{display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px;color:var(--color-brand)}.rollback-all{cursor:pointer}",""]);const s=o.toString()},7180:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),a=n.n(r),i=n(935),o=n.n(i)()(a());o.push([e.id,':host{display:block;--pane-color:#595959}:host-context(html[data-theme="dark-v2"]),\n:host-context([data-override-theme="dark-v2"]){--pane-color:#ccc}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.pane{display:flex;flex-direction:column;color:var(--pane-color);height:100%}.pane-header{display:flex;align-items:center;cursor:pointer;border-top:1px solid transparent;position:relative}.pane-header:focus{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:#007fd4}:host(:not(:first-child)) .pane-header{border-top-color:rgba(204,204,204,0.2)}.pane-scroll-shadow{display:none;position:absolute;bottom:-3px;left:0;right:0;height:3px;box-shadow:#000000 0 6px 6px -6px inset;z-index:1}.scrolled .pane-scroll-shadow{display:block}.pane-title{display:flex;align-items:center;font-size:13px;line-height:24px;height:25px;min-width:0;flex:1}.title-icon{display:flex;justify-content:center;align-items:center;width:24px;padding-right:2px;line-height:1;flex-shrink:0}.title-label{text-transform:uppercase;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-body{flex-grow:1;min-height:0;display:none;overflow:hidden;overflow-y:auto;overflow-y:overlay}:host([active]) .pane-body{display:initial}:host(:not(:hover)) ::slotted([slot="actions"]){display:none}.badge{background-color:rgb(77,77,77);color:rgb(255,255,255);border-radius:11px;height:18px;padding:3px 6px;line-height:13px;margin:0 3px;font-size:12px}',""]);const s=o.toString()},2150:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),a=n.n(r),i=n(935),o=n.n(i)()(a());o.push([e.id,':host{--sidebar-background:#fff;--title-container-background:#fff;--title-container-color:#595959;display:block;outline-color:rgba(83,89,93,0.5);background-color:var(--sidebar-background);height:100%}:host-context(html[data-theme="dark-v2"]),\n:host-context([data-override-theme="dark-v2"]){--sidebar-background:#181818;--title-container-background:#181818;--title-container-color:rgb(187,187,187);background-color:var(--sidebar-background)}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.sidebar{display:flex;flex-direction:column;height:100%}.title-container{display:flex;padding:0 8px 8px 8px;color:var(--title-container-color);background:var(--title-container-background)}.title-label{font-weight:300;line-height:44px;padding-left:12px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-container{flex-grow:1;min-height:0;display:flex;flex-direction:column}::slotted([slot="panes"]){transition:flex 0.2s;min-height:25px}',""]);const s=o.toString()}}]);
|
|
3
|
-
//# sourceMappingURL=9636.ecf3c18b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{var e,t,r,n,a,o,l,i,c,d,u,s,f,h,p,b,m,v,x,g,y,P,k,w={7934:(e,t,r)=>{Promise.all([r.e(9933),r.e(8769),r.e(9929),r.e(1030),r.e(9938),r.e(8438),r.e(4),r.e(155),r.e(8799),r.e(330),r.e(5290),r.e(5502),r.e(7222),r.e(9027),r.e(1201),r.e(4845),r.e(9636)]).then(r.bind(r,9636))}},j={};function S(e){var t=j[e];if(void 0!==t)return t.exports;var r=j[e]={id:e,loaded:!1,exports:{}};return w[e].call(r.exports,r,r.exports,S),r.loaded=!0,r.exports}S.m=w,S.c=j,S.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return S.d(t,{a:t}),t},S.d=(e,t)=>{for(var r in t)S.o(t,r)&&!S.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce(((t,r)=>(S.f[r](e,t),t)),[])),S.u=e=>"chunks/"+e+"."+{4:"7fcf0cc5",114:"3a6120a3",155:"041f6dc7",330:"50fd68e4",478:"7e1cd06e",726:"6245fb60",790:"ab211a8a",875:"ac8439b8",1030:"8c162fd1",1045:"ce2da47a",1122:"9dff69fc",1201:"f09a5b56",1204:"61efce7b",1369:"e7a76cb0",1370:"485fc795",1889:"7e3787d5",1940:"d765c481",2052:"5926f210",2277:"07982a9b",2617:"1d5bf314",3144:"c6a8a081",3171:"1241a7c9",3426:"7237505a",3620:"c914fb59",3933:"3d3e3539",4041:"b50c80d7",4165:"d7886475",4208:"60ea8c03",4658:"dab790af",4741:"cf0d2915",4845:"38dd0c23",5250:"dc33943a",5290:"7b5bc336",5384:"db165893",5399:"96679376",5481:"fc9a1001",5502:"490bfb21",5552:"b400883c",5669:"c0bcd8ec",6314:"647629e1",6519:"538410d7",6773:"c1867a35",7222:"964f447f",7452:"4d9d3581",7721:"ac7a50ec",7733:"dd86deb1",7780:"1ca43b02",7825:"ba97230b",8050:"0d264d7c",8097:"2a833d82",8438:"ad13619b",8442:"54ac48a0",8769:"e0e7e7a6",8799:"cd3b4564",8989:"b5c0084e",9027:"56cad5a3",9259:"951e38a1",9515:"07ef90ca",9542:"08c9e959",9559:"31bf8623",9636:"ecf3c18b",9844:"bc9b1bf6",9929:"ed27d04d",9933:"b27f4803",9938:"671b6de6"}[e]+".js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@next-bricks/visual-builder:",S.l=(r,n,a,o)=>{if(e[r])e[r].push(n);else{var l,i;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+a){l=u;break}}l||(i=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,S.nc&&l.setAttribute("nonce",S.nc),l.setAttribute("data-webpack",t+a),l.src=r),e[r]=[n];var s=(t,n)=>{l.onerror=l.onload=null,clearTimeout(f);var a=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(n))),t)return t(n)},f=setTimeout(s.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=s.bind(null,l.onerror),l.onload=s.bind(null,l.onload),i&&document.head.appendChild(l)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{S.S={};var e={},t={};S.I=(r,n)=>{n||(n=[]);var a=t[r];if(a||(a=t[r]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[r])return e[r];S.o(S.S,r)||(S.S[r]={});var o=S.S[r],l="@next-bricks/visual-builder",i=(e,t,r,n)=>{var a=o[e]=o[e]||{},i=a[t];(!i||!i.loaded&&(!n!=!i.eager?n:l>i.from))&&(a[t]={get:r,from:l,eager:!!n})},c=[];return"default"===r&&(i("@babel/parser","7.24.0",(()=>S.e(6773).then((()=>()=>S(6773))))),i("@easyops-cn/brick-next-pipes","0.6.0",(()=>Promise.all([S.e(4741),S.e(1030),S.e(155),S.e(1204)]).then((()=>()=>S(4741))))),i("@next-core/cook","2.2.13",(()=>Promise.all([S.e(1122),S.e(2617)]).then((()=>()=>S(1122))))),i("@next-core/element","1.2.3",(()=>S.e(1045).then((()=>()=>S(1045))))),i("@next-core/http","1.1.10",(()=>S.e(8989).then((()=>()=>S(8989))))),i("@next-core/i18n/react","1.0.39",(()=>Promise.all([S.e(8799),S.e(7825),S.e(8097)]).then((()=>()=>S(8097))))),i("@next-core/i18n","1.0.39",(()=>Promise.all([S.e(8438),S.e(8799),S.e(8442),S.e(5552)]).then((()=>()=>S(5552))))),i("@next-core/inject","1.0.29",(()=>Promise.all([S.e(1030),S.e(9259),S.e(2277)]).then((()=>()=>S(2277))))),i("@next-core/loader","1.5.5",(()=>S.e(5399).then((()=>()=>S(5399))))),i("@next-core/pipes","2.0.17",(()=>S.e(6519).then((()=>()=>S(6519))))),i("@next-core/react-element","1.0.22",(()=>Promise.all([S.e(8769),S.e(9929),S.e(4208),S.e(114)]).then((()=>()=>S(114))))),i("@next-core/react-runtime","1.3.0",(()=>Promise.all([S.e(8769),S.e(1030),S.e(9938),S.e(4),S.e(8050)]).then((()=>()=>S(8050))))),i("@next-core/runtime","1.35.0",(()=>Promise.all([S.e(875),S.e(1030),S.e(8438),S.e(155),S.e(5290),S.e(5481),S.e(4165),S.e(1369)]).then((()=>()=>S(3256))))),i("@next-core/supply","2.1.12",(()=>Promise.all([S.e(1030),S.e(155),S.e(9259),S.e(9559)]).then((()=>()=>S(9559))))),i("@next-core/theme","1.4.8",(()=>Promise.all([S.e(1889),S.e(2052)]).then((()=>()=>S(1889))))),i("@next-core/utils/general","1.6.11",(()=>S.e(7452).then((()=>()=>S(7452))))),i("@next-core/utils/storyboard","1.6.11",(()=>Promise.all([S.e(8438),S.e(5481),S.e(3933)]).then((()=>()=>S(3933))))),i("history","4.10.1",(()=>S.e(5384).then((()=>()=>S(5384))))),i("i18next-browser-languagedetector","7.2.0",(()=>S.e(726).then((()=>()=>S(726))))),i("i18next","22.5.1",(()=>S.e(9542).then((()=>()=>S(9542))))),i("js-yaml","3.14.1",(()=>S.e(9515).then((()=>()=>S(9515))))),i("lodash","4.17.21",(()=>S.e(5250).then((()=>()=>S(5250))))),i("moment/locale/zh-cn.js","2.29.4",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),i("moment","2.29.4",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(9420))))),i("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([S.e(3144),S.e(8769)]).then((()=>()=>S(3144))))),i("react-i18next","12.3.1",(()=>Promise.all([S.e(3620),S.e(8769)]).then((()=>()=>S(3620))))),i("react","0.0.0-experimental-ee8509801-20230117",(()=>S.e(4041).then((()=>()=>S(4041)))))),e[r]=c.length?Promise.all(c).then((()=>e[r]=1)):1}}})(),(()=>{var e;S.g.importScripts&&(e=S.g.location+"");var t=S.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e+"../"})(),r=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=r[1]?t(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,t(r[2]))),r[3]&&(n.push([]),n.push.apply(n,t(r[3]))),n},n=(e,t)=>{e=r(e),t=r(t);for(var n=0;;){if(n>=e.length)return n<t.length&&"u"!=(typeof t[n])[0];var a=e[n],o=(typeof a)[0];if(n>=t.length)return"u"==o;var l=t[n],i=(typeof l)[0];if(o!=i)return"o"==o&&"n"==i||"s"==i||"u"==o;if("o"!=o&&"u"!=o&&a!=l)return a<l;n++}},a=e=>{var t=e[0],r="";if(1===e.length)return"*";if(t+.5){r+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,r+="u"==(typeof(i=e[o]))[0]?"-":(n>0?".":"")+(n=2,i);return r}var l=[];for(o=1;o<e.length;o++){var i=e[o];l.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?l.pop()+" "+l.pop():a(i))}return c();function c(){return l.pop().replace(/^\((.+)\)$/,"$1")}},o=(e,t)=>{if(0 in e){t=r(t);var n=e[0],a=n<0;a&&(n=-n-1);for(var l=0,i=1,c=!0;;i++,l++){var d,u,s=i<e.length?(typeof e[i])[0]:"";if(l>=t.length||"o"==(u=(typeof(d=t[l]))[0]))return!c||("u"==s?i>n&&!a:""==s!=a);if("u"==u){if(!c||"u"!=s)return!1}else if(c)if(s==u)if(i<=n){if(d!=e[i])return!1}else{if(a?d>e[i]:d<e[i])return!1;d!=e[i]&&(c=!1)}else if("s"!=s&&"n"!=s){if(a||i<=n)return!1;c=!1,i--}else{if(i<=n||u<s!=a)return!1;c=!1}else"s"!=s&&"n"!=s&&(c=!1,i--)}}var f=[],h=f.pop.bind(f);for(l=1;l<e.length;l++){var p=e[l];f.push(1==p?h()|h():2==p?h()&h():p?o(p,t):!h())}return!!h()},l=(e,t)=>{var r=e[t];return(t=Object.keys(r).reduce(((e,t)=>!e||n(e,t)?t:e),0))&&r[t]},i=(e,t)=>{var r=e[t];return Object.keys(r).reduce(((e,t)=>!e||!r[e].loaded&&n(e,t)?t:e),0)},c=(e,t,r,n)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+a(n)+")",d=(e,t,r,n)=>{var a=i(e,r);return h(e[r][a])},u=(e,t,r,n)=>{var a=i(e,r);return o(n,a)||f(c(e,r,a,n)),h(e[r][a])},s=(e,t,r)=>{var a=e[t];return(t=Object.keys(a).reduce(((e,t)=>!o(r,t)||e&&!n(e,t)?e:t),0))&&a[t]},f=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},h=e=>(e.loaded=1,e.get()),b=(p=e=>function(t,r,n,a){var o=S.I(t);return o&&o.then?o.then(e.bind(e,t,S.S[t],r,n,a)):e(t,S.S[t],r,n,a)})(((e,t,r,n)=>t&&S.o(t,r)?h(l(t,r)):n())),m=p(((e,t,r,n)=>t&&S.o(t,r)?d(t,0,r):n())),v=p(((e,t,r,n,a)=>t&&S.o(t,r)?u(t,0,r,n):a())),x=p(((e,t,r,n,a)=>{var o=t&&S.o(t,r)&&s(t,r,n);return o?h(o):a()})),g={},y={8769:()=>x("default","react",[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(4041).then((()=>()=>S(4041))))),9929:()=>x("default","@next-core/element",[1,1,2,3],(()=>S.e(3426).then((()=>()=>S(1045))))),1030:()=>v("default","lodash",[1,4,17,21],(()=>S.e(5250).then((()=>()=>S(5250))))),9938:()=>x("default","@next-core/react-element",[1,1,0,22],(()=>Promise.all([S.e(9929),S.e(4208),S.e(7733)]).then((()=>()=>S(114))))),8438:()=>v("default","@next-core/utils/general",[1,1,6,11],(()=>S.e(7452).then((()=>()=>S(7452))))),4:()=>v("default","@next-core/runtime",[1,1,35,0],(()=>Promise.all([S.e(875),S.e(1030),S.e(8438),S.e(155),S.e(5290),S.e(5481),S.e(4165)]).then((()=>()=>S(3256))))),155:()=>v("default","moment",[1,2,29,4],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(9420))))),8799:()=>m("default","@next-core/i18n",(()=>Promise.all([S.e(8438),S.e(8442),S.e(3171)]).then((()=>()=>S(5552))))),330:()=>v("default","@next-core/theme",[1,1,4,8],(()=>S.e(1889).then((()=>()=>S(1889))))),5290:()=>v("default","@next-core/http",[1,1,1,10],(()=>S.e(1370).then((()=>()=>S(8989))))),5502:()=>m("default","@next-core/i18n/react",(()=>Promise.all([S.e(7825),S.e(478)]).then((()=>()=>S(8097))))),1201:()=>v("default","history",[1,4,7,11],(()=>S.e(5384).then((()=>()=>S(5384))))),4845:()=>b("default","@next-core/react-runtime",(()=>Promise.all([S.e(4),S.e(5669)]).then((()=>()=>S(8050))))),1204:()=>v("default","js-yaml",[1,3,14,0],(()=>S.e(9515).then((()=>()=>S(9515))))),2617:()=>v("default","@babel/parser",[1,7,24,0],(()=>S.e(6773).then((()=>()=>S(6773))))),7825:()=>v("default","react-i18next",[1,12,3,1],(()=>Promise.all([S.e(3620),S.e(8769)]).then((()=>()=>S(3620))))),2350:()=>v("default","i18next",[1,22,5,1],(()=>S.e(9542).then((()=>()=>S(9542))))),6837:()=>v("default","i18next-browser-languagedetector",[1,7,2,0],(()=>S.e(726).then((()=>()=>S(726))))),9259:()=>v("default","@next-core/pipes",[1,2,0,17],(()=>S.e(6519).then((()=>()=>S(6519))))),161:()=>v("default","@easyops-cn/brick-next-pipes",[2,0,6,0],(()=>Promise.all([S.e(4741),S.e(1030),S.e(155),S.e(1204)]).then((()=>()=>S(4741))))),454:()=>b("default","react-dom",(()=>S.e(3144).then((()=>()=>S(3144))))),9435:()=>x("default","react-dom",[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(3144).then((()=>()=>S(3144))))),5481:()=>v("default","@next-core/cook",[1,2,2,13],(()=>Promise.all([S.e(1122),S.e(2617)]).then((()=>()=>S(1122))))),50:()=>v("default","@next-core/utils/storyboard",[1,1,6,11],(()=>S.e(6314).then((()=>()=>S(3933))))),597:()=>v("default","moment/locale/zh-cn.js",[1,2,29,4],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),2890:()=>v("default","history",[1,4,10,1],(()=>S.e(5384).then((()=>()=>S(5384))))),5435:()=>v("default","@next-core/inject",[1,1,0,29],(()=>Promise.all([S.e(9259),S.e(4658)]).then((()=>()=>S(2277))))),6154:()=>v("default","@next-core/loader",[1,1,5,5],(()=>S.e(7780).then((()=>()=>S(5399))))),7058:()=>v("default","@next-core/i18n",[1,1,0,39],(()=>Promise.all([S.e(8799),S.e(8442),S.e(790)]).then((()=>()=>S(5552))))),7731:()=>v("default","@next-core/supply",[1,2,1,12],(()=>Promise.all([S.e(9259),S.e(1940)]).then((()=>()=>S(9559)))))},P={4:[4],155:[155],330:[330],1030:[1030],1201:[1201],1204:[1204],2617:[2617],4165:[50,597,2890,5435,6154,7058,7731],4208:[454,9435],4845:[4845],5290:[5290],5481:[5481],5502:[5502],6519:[161],7825:[7825],8438:[8438],8442:[2350,6837],8769:[8769],8799:[8799],9259:[9259],9929:[9929],9938:[9938]},k={},S.f.consumes=(e,t)=>{S.o(P,e)&&P[e].forEach((e=>{if(S.o(g,e))return t.push(g[e]);if(!k[e]){var r=t=>{g[e]=0,S.m[e]=r=>{delete S.c[e],r.exports=t()}};k[e]=!0;var n=t=>{delete g[e],S.m[e]=r=>{throw delete S.c[e],t}};try{var a=y[e]();a.then?t.push(g[e]=a.then(r).catch(n)):r(a)}catch(e){n(e)}}}))},(()=>{var e={8792:0};S.f.j=(t,r)=>{var n=S.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(1(20[14]|030|55)|4(|165|208|845)|5(290|481|502)|8(438|442|769|799)|9(259|929|938)|2617|330|7825)$/.test(t))e[t]=0;else{var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var o=S.p+S.u(t),l=new Error;S.l(o,(r=>{if(S.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",l.name="ChunkLoadError",l.type=a,l.request=o,n[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[o,l,i]=r,c=0;if(o.some((t=>0!==e[t]))){for(n in l)S.o(l,n)&&(S.m[n]=l[n]);i&&i(S)}for(t&&t(r);c<o.length;c++)a=o[c],S.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),S.nc=void 0,S(7934)})();
|
|
2
|
-
//# sourceMappingURL=main.e09279cd.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[5402,1369,2052],{6860:(e,t,n)=>{n.r(t),n.d(t,{WorkbenchActionList:()=>E,WorkbenchActionListComponent:()=>_});var r,o,i,a,c,s,u=n(918),l=n(1369),f=n(8449),h=n(6902),d=n(8769),p=n.n(d),v=n(9929),m=n(4),y=n(9938),b=n(764),g=n(3430);function w(e,t,n){return e.set(A(e,t),n),n}function k(e,t){return e.get(A(e,t))}function A(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var E,x,S=(0,y.wrapBrick)("visual-builder.workbench-action"),{defineElement:j,property:P}=(0,v.createDecorators)(),I=new WeakMap,L=new WeakMap;class K extends y.ReactNextElement{constructor(){super(...arguments),(0,u.A)(this,I,o(this)),(0,u.A)(this,L,(i(this),a(this))),c(this)}get appId(){return k(I,this)}set appId(e){w(I,this,e)}get menu(){return k(L,this)}set menu(e){w(L,this,e)}render(){return p().createElement(_,{appId:this.appId,menu:this.menu})}}s=K,({e:[o,i,a,c],c:[E,r]}=function(e,t,n,r,o,i){var a,c,s,u,d,p,v,m=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,b=Object.create,g=[b(null),b(null)],w=t.length;function k(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a<t.length;a++)i=t[a].apply(o,r?[i]:[]);return r?i:o}}function A(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function E(e,t,n,r,o,i,s,u,l,h,d){function p(e){if(!d(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),m=t[3],b=!s,w=1===o,E=3===o,x=4===o,S=2===o;function j(t,n,r){return function(o,i){return n&&(i=o,o=e),r&&r(o),P[t].call(o,i)}}if(!b){var P={},I=[],L=E?"get":x||w?"set":"value";if(l?(h||w?P={get:(0,f.A)((function(){return m(this)}),r,"get"),set:function(e){t[4](this,e)}}:P[L]=m,h||(0,f.A)(P[L],r,S?"":L)):h||(P=Object.getOwnPropertyDescriptor(e,r)),!h&&!l){if((c=g[+u][r])&&7!=(c^o))throw new Error("Decorating two elements with the same name ("+P[L].name+") is not supported yet");g[+u][r]=o<3?1:o}}for(var K=e,T=v.length-1;T>=0;T-=n?2:1){var _=v[T],B=n?v[T-1]:void 0,O={},z={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");A(t,"An initializer","be",!0),i.push(t)}.bind(null,O)};if(b)c=_.call(B,K,z),O.v=1,A(c,"class decorators","return")&&(K=c);else if(z.static=u,z.private=l,c=z.access={has:l?d.bind():function(e){return r in e}},x||(c.get=l?S?function(e){return p(e),P.value}:j("get",0,p):function(e){return e[r]}),S||E||(c.set=l?j("set",0,p):function(e,t){e[r]=t}),K=_.call(B,w?{get:P.get,set:P.set}:P[L],z),O.v=1,w){if("object"==typeof K&&K)(c=A(K.get,"accessor.get"))&&(P.get=c),(c=A(K.set,"accessor.set"))&&(P.set=c),(c=A(K.init,"accessor.init"))&&I.unshift(c);else if(void 0!==K)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else A(K,(h?"field":"method")+" decorators","return")&&(h?I.unshift(K):P[L]=K)}return o<2&&s.push(k(I,u,1),k(i,u,0)),h||b||(l?w?s.splice(-1,0,j("get",u),j("set",u)):s.push(S?P[L]:A.call.bind(P[L])):y(e,r,P)),K}function x(e){return y(e,m,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[m]),a=b(null==a?null:a),d=[],p=function(e){e&&d.push(k(e))},(v=function(t,r){for(var o=0;o<n.length;o++){var i=n[o],a=i[1],c=7&a;if((8&a)==t&&!c==r){var f=i[2],p=!!i[3],v=16&a;E(t?e:e.prototype,i,v,p?"#"+f:(0,l.A)(f),c,c<2?[]:t?u=u||[]:s=s||[],d,!!t,p,r,t&&p?function(t){return(0,h.A)(t)===e}:undefined)}}})(8,0),v(0,0),v(8,1),v(0,1),p(s),p(u),c=d,w||x(e),{e:c,get c(){var n=[];return w&&[x(e=E(e,[t],0,e.name,5,n)),k(n,1)]}}}(s,[j("visual-builder.workbench-action-list",{styleTexts:[g.A]})],[[P(),1,"appId"],[P({attribute:!1}),1,"menu"]],0,0,y.ReactNextElement)),r();var T=new Map;function _(e){var t,{appId:n,menu:r}=e,o=(0,m.getHistory)(),[i,a]=(0,d.useState)(),[c,s]=(0,d.useState)(o.location);return(0,d.useEffect)((()=>{var e=o.listen((e=>{s(e)}));return e}),[o]),(0,d.useEffect)((()=>{x||(x=n),x!==n&&(T.clear(),x=n)}),[n]),(0,d.useEffect)((()=>{var e,{pathname:t,search:n}=c,{selectedKeys:o}=(0,b.LP)(null!==(e=null==r?void 0:r.menuItems)&&void 0!==e?e:[],t,n,"");a(Number(o[0]))}),[r,c]),p().createElement("div",{className:"workBenchActionList"},null==r||null===(t=r.menuItems)||void 0===t?void 0:t.map(((e,t)=>{if((e=>"default"===e.type||!e.type)(e)){var n=e.to;return i!==t&&T.has(t)&&(n=T.get(t)),p().createElement(S,{key:t,icon:e.icon,to:n,href:e.href,target:e.target,active:i===t,onClick:()=>(e=>{e.href||T.set(i,"".concat(c.pathname).concat(c.search))})(e)})}})).filter(Boolean))}},3430:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(6758),o=n.n(r),i=n(935),a=n.n(i)()(o());a.push([e.id,'.workBenchActionList{display:flex;flex-direction:column;width:-webkit-min-content;width:-moz-min-content;width:min-content;height:100%;background-color:#4297ff}:host-context(html[data-theme="dark-v2"]) .workBenchActionList,\n:host-context([data-override-theme="dark-v2"]) .workBenchActionList{background-color:#323237}',""]);const c=a.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},6758:e=>{e.exports=function(e){return e[1]}},6902:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},2016:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},918:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2016);function o(e,t,n){(0,r.A)(e,t),t.set(e,n)}},8449:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}},1369:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:String(t)}},7545:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},764:(e,t,n)=>{n.d(t,{LP:()=>i});var r=n(1201),o=n(4);function i(e,t,n,c){var s=[],u=[],l=[],f=0;return e.forEach((e=>{if(e.key=""===c?"".concat(f):"".concat(c,".").concat(f),function(e){return"group"===e.type}(e)||function(e,t){return Boolean("subMenu"===e.type||void 0)}(e)){var h=i(e.items,t,n,e.key);s.push(...h.selectedKeys),(h.selectedKeys.length||e.defaultExpanded)&&u.push(e.key),u.push(...h.openedKeys),l.push(...h.matchedKeys)}else if(function(e,t,n){if(!e.to)return!1;var i="object"==typeof e.to?e.to:(0,r.parsePath)(e.to),c=i.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),s=!!(0,o.matchPath)(t,{path:c,exact:e.exact});if(s&&e.activeMatchSearch&&(s=a(n,i.search)),!s&&Array.isArray(e.activeIncludes))for(var u of e.activeIncludes){var l,f=void 0,h=u.includes("?");if(h&&(f=(0,r.parsePath)(u)),(s=!!(0,o.matchPath)(t,{path:h?f.pathname:u,exact:!0}))&&null!==(l=f)&&void 0!==l&&l.search&&(s=a(n,f.search)),s)break}if(s&&Array.isArray(e.activeExcludes))for(var d of e.activeExcludes)if(!(s=!(0,o.matchPath)(t,{path:d,exact:!0})))break;return s}(e,t,n)){s.push(String(e.key));for(var d=e.key.split("."),p=0;p<d.length;p++)l.push(d.slice(0,p+1).join("."))}f+=1})),s.length&&""!==c&&u.push(c),{selectedKeys:s,openedKeys:u,matchedKeys:l}}function a(e,t){var n=new URLSearchParams(e),r=new URLSearchParams(t);for(var[o,i]of r.entries()){var a;if((null!==(a=n.get(o))&&void 0!==a?a:"")!==i)return!1}return!0}}}]);
|
|
2
|
-
//# sourceMappingURL=workbench-action-list.0b3ea2ad.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see workbench-history-action.cfd701d2.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[2080,1369,2052],{6156:(t,e,n)=>{n.d(e,{I:()=>a,K:()=>o,NS:()=>c});var o=function(t){return t.LOAD_MORE="LOAD_MORE",t.LOADING="LOADING",t.NO_DATA="NO_DATA",t.NODE="NODE",t.ADD="ADD",t.EDIT="EDIT",t.DELETE="DELETE",t.IMPORT="IMPORT",t.CLONE="CLONE",t.APPEND_RELATION="APPEND_RELATION",t.UPDATE_RELATION="UPDATE_RELATION",t.REMOVE_RELATION="REMOVE_RELATION",t.ROLLBACK="ROLLBACK",t.ROLLBACK_ALL="ROLLBACK_ALL",t.ADD_FULL="ADD_FULL",t.EDIT_FULL="EDIT_FULL",t.DELETE_FULL="DELETE_FULL",t.IMPORT_FULL="IMPORT_FULL",t.CLONE_FULL="CLONE_FULL",t.APPEND_RELATION_FULL="APPEND_RELATION_FULL",t.UPDATE_RELATION_FULL="UPDATE_RELATION_FULL",t.REMOVE_RELATION_FULL="REMOVE_RELATION_FULL",t.ROLLBACK_FULL="ROLLBACK_FULL",t.ROLLBACK_ALL_FULL="ROLLBACK_ALL_FULL",t.PROJECT="PROJECT",t.USER="USER",t.PERMISSION="PERMISSION",t.BRICK="BRICK",t.ROUTE="ROUTE",t.TEMPLATE="TEMPLATE",t.SNIPPET="SNIPPET",t.I18N="I18N",t.IMAGE="IMAGE",t.FUNCTION="FUNCTION",t.MENU="MENU",t.MENU_ITEM="MENU_ITEM",t.WORKFLOW="WORKFLOW",t}({}),c="bricks/visual-builder/workbench-history-action",a={en:{LOAD_MORE:"Load more",LOADING:"Loading",NO_DATA:"No data",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }} etc., a total of {{ count }} items",ADD:"Add node",EDIT:"Edit node",DELETE:"Delete node",IMPORT:"Batch import node",CLONE:"Clone node",APPEND_RELATION:"Append Relation",UPDATE_RELATION:"Update Relation",REMOVE_RELATION:"Remove Relation",ROLLBACK:"Rollback",ROLLBACK_ALL:"Rollback all operations",ADD_FULL:"Add {{ category }} ({{ nodes }})",EDIT_FULL:"Edit {{ nodeChanges }} of {{ category }} ({{ nodes }})",DELETE_FULL:"Delete {{ category }} ({{ nodes }})",IMPORT_FULL:"Batch Import {{ category }} ({{ nodes }})",CLONE_FULL:"Clone {{ category }} ({{ nodes }})",APPEND_RELATION_FULL:"Append the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",UPDATE_RELATION_FULL:"Update the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",REMOVE_RELATION_FULL:"Remove the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",ROLLBACK_FULL:"Rollback to [{{ rollbackAbstract }}]",ROLLBACK_ALL_FULL:"Rollback all operations",PROJECT:"Project",USER:"User Group",PERMISSION:"Permission",BRICK:"Brick",ROUTE:"Route",TEMPLATE:"Template",SNIPPET:"Snippet",I18N:"I18N",IMAGE:"Image",FUNCTION:"Function",MENU:"Menu",MENU_ITEM:"Menu item",WORKFLOW:"Workflow"},zh:{LOAD_MORE:"加载更多",LOADING:"加载中",NO_DATA:"没有数据",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }}等共{{ count }}项",ADD:"新增节点",EDIT:"编辑节点",DELETE:"删除节点",IMPORT:"批量导入节点",CLONE:"克隆节点",APPEND_RELATION:"添加关系",UPDATE_RELATION:"更新关系",REMOVE_RELATION:"移除关系",ROLLBACK:"回滚",ROLLBACK_ALL:"回滚全部操作",ADD_FULL:"新增{{ category }}({{ nodes }})",EDIT_FULL:"编辑{{ category }}({{ nodes }})的 {{ nodeChanges }}",DELETE_FULL:"删除{{ category }}({{ nodes }})",IMPORT_FULL:"批量导入{{ category }}({{ nodes }})",CLONE_FULL:"克隆{{ category }}({{ nodes }})",APPEND_RELATION_FULL:"添加{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",UPDATE_RELATION_FULL:"更新{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",REMOVE_RELATION_FULL:"移除{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",ROLLBACK_FULL:"回滚到【{{ rollbackAbstract }}】",ROLLBACK_ALL_FULL:"回滚全部操作",PROJECT:"项目",USER:"用户组",PERMISSION:"权限点",BRICK:"构件",ROUTE:"路由",TEMPLATE:"模版",SNIPPET:"片段",I18N:"国际化",IMAGE:"图片",FUNCTION:"函数",MENU:"菜单",MENU_ITEM:"菜单项",WORKFLOW:"工作流"}}},4754:(t,e,n)=>{n.r(e),n.d(e,{WorkbenchHistoryAction:()=>z,WorkbenchHistoryActionComponent:()=>lt});var o,c,a,r,i,l,s,d,E,u,L,O,p,N,A,f,h,b,R=n(9740),I=n(4635),m=n(918),v=n(1369),_=n(8449),T=n(6902),g=n(8769),y=n.n(g),S=n(9929),P=n(9938),U=n(4),D=(n(330),n(155)),C=n.n(D),k=n(1361),K=n(5502),M=n(6156),w=n(4107),F=n(8675);function j(t,e,n){return n(W(t,e))}function x(t,e,n){return t.set(W(t,e),n),n}function B(t,e){return t.get(W(t,e))}function W(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}(0,K.initializeReactI18n)(M.NS,M.I);var z,{defineElement:G,property:V,event:Y}=(0,S.createDecorators)(),H=(0,P.wrapBrick)("eo-button"),J=(0,P.wrapBrick)("eo-link"),q=(0,P.wrapBrick)("eo-icon"),Q=(0,P.wrapBrick)("eo-easyops-avatar"),X=(0,P.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",beforeVisibleChange:"before.visible.change"}),Z=new WeakMap,$=new WeakMap,tt=new WeakMap,et=new WeakSet,nt=new WeakMap,ot=new WeakMap,ct=new WeakMap,at=new WeakMap,rt=new WeakMap;class it extends P.ReactNextElement{constructor(){super(...arguments),(0,I.A)(this,et),(0,m.A)(this,Z,c(this)),(0,m.A)(this,$,(a(this),r(this))),(0,m.A)(this,tt,(i(this),l(this))),(0,m.A)(this,nt,(E(this),t=>{j(et,this,s).emit(t)})),(0,m.A)(this,ot,u(this)),(0,m.A)(this,ct,(p(this),t=>{j(et,this,L).emit(t)})),(0,m.A)(this,at,N(this)),(0,m.A)(this,rt,(h(this),()=>{j(et,this,A).emit()}))}get appId(){return B(Z,this)}set appId(t){x(Z,this,t)}get projectId(){return B($,this)}set projectId(t){x($,this,t)}render(){return y().createElement(lt,{appId:this.appId,projectId:this.projectId,onHistoryItemClick:B(nt,this),onRollback:B(ct,this),onRollbackAll:B(rt,this)})}}function lt(t){var{appId:e,onHistoryItemClick:n,onRollback:o,onRollbackAll:c}=t,{t:a}=(0,K.useTranslation)(M.NS),[r,i]=(0,g.useState)(!1),[l,s]=(0,g.useState)(!0),[d,E]=(0,g.useState)(!1),[u,L]=(0,g.useState)([]),O=(0,g.useRef)(""),p=t=>{i(!0),(0,w.R)(e,{ts:O.current,limit:20}).then((e=>{L((n=>{var o=e.list.map((t=>(0,R.A)((0,R.A)({},t),{},{translation:(0,F.B)(t)})));return t?o:n.concat(o)})),O.current=e.ts,E(e.list.length<20),s(e.list.length<20)})).catch((t=>{(0,U.handleHttpError)(t)})).finally((()=>{i(!1)}))};return y().createElement(X,{placement:"bottom",trigger:"click",arrow:!0,arrowColor:"var(--color-fill-bg-container-4)",beforeVisibleChange:t=>{t.detail&&(s(!0),E(!1),L([]),O.current="",p(!0))}},y().createElement(H,{slot:"anchor",shape:"circle",className:"history-action",icon:{lib:"antd",icon:"history",theme:"outlined"}}),y().createElement("div",null,y().createElement("div",{className:"history-title"},"History"),y().createElement("div",{className:"history-list"},u.length?y().createElement(y().Fragment,null,u.map(((t,e)=>y().createElement(st,{key:"".concat(t.uniqueKey,"-").concat(t.ts),data:t,enableRollback:0!==e&&"rollback"!==t.action,current:0===e,onHistoryItemClick:n,onRollback:o}))),!l&&y().createElement("span",{className:"load-more-container"},y().createElement(J,{className:"load-more",disabled:r,onClick:()=>p()},a(M.K.LOAD_MORE))),d&&y().createElement("span",{className:"end-container"},"The End",y().createElement(q,{className:"rollback-all",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>c()}))):y().createElement("div",{className:"empty"},a(r?M.K.LOADING:M.K.NO_DATA))),y().createElement("slot",null)))}function st(t){var{data:e,enableRollback:n,current:o,onHistoryItemClick:c,onRollback:a}=t,r=C()(Number(e.ts)/1e6),i=C().duration(r.diff(C()())),l=i.days()<=-1?r.format("YYYY-MM-DD HH:mm:ss"):i.humanize(!0,{ss:0,s:60,m:60,h:24});return y().createElement("div",{className:"item-container"},y().createElement("div",{className:"item-title"},y().createElement("div",{className:"title-left",onClick:()=>c((0,R.A)((0,R.A)({},e),{},{enableRollback:n}))},y().createElement("div",{className:"topic",title:e.translation.abstract},e.translation.abstract),o&&y().createElement("div",{className:"branch"},"(current)")),y().createElement("div",{className:"title-right"},n&&y().createElement(q,{className:"rollback",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>a(e)}))),y().createElement("div",{className:"item-info"},y().createElement(Q,{className:"avatar",nameOrInstanceId:e.user,size:"xs"}),y().createElement("div",{className:"time"},l),y().createElement("div",{className:"operator"},e.user)))}b=it,({e:[c,a,r,i,l,s,d,E,u,L,O,p,N,A,f,h],c:[z,o]}=function(t,e,n,o,c,a){var r,i,l,s,d,E,u,L=Symbol.metadata||Symbol.for("Symbol.metadata"),O=Object.defineProperty,p=Object.create,N=[p(null),p(null)],A=e.length;function f(e,n,o){return function(c,a){n&&(a=c,c=t);for(var r=0;r<e.length;r++)a=e[r].apply(c,o?[a]:[]);return o?a:c}}function h(t,e,n,o){if("function"!=typeof t&&(o||void 0!==t))throw new TypeError(e+" must "+(n||"be")+" a function"+(o?"":" or undefined"));return t}function b(t,e,n,o,c,a,l,s,d,E,u){function L(t){if(!u(t))throw new TypeError("Attempted to access private element on non-instance")}var p=[].concat(e[0]),A=e[3],b=!l,R=1===c,I=3===c,m=4===c,v=2===c;function T(e,n,o){return function(c,a){return n&&(a=c,c=t),o&&o(c),g[e].call(c,a)}}if(!b){var g={},y=[],S=I?"get":m||R?"set":"value";if(d?(E||R?g={get:(0,_.A)((function(){return A(this)}),o,"get"),set:function(t){e[4](this,t)}}:g[S]=A,E||(0,_.A)(g[S],o,v?"":S)):E||(g=Object.getOwnPropertyDescriptor(t,o)),!E&&!d){if((i=N[+s][o])&&7!=(i^c))throw new Error("Decorating two elements with the same name ("+g[S].name+") is not supported yet");N[+s][o]=c<3?1:c}}for(var P=t,U=p.length-1;U>=0;U-=n?2:1){var D=p[U],C=n?p[U-1]:void 0,k={},K={kind:["field","accessor","method","getter","setter","class"][c],name:o,metadata:r,addInitializer:function(t,e){if(t.v)throw new Error("attempted to call addInitializer after decoration was finished");h(e,"An initializer","be",!0),a.push(e)}.bind(null,k)};if(b)i=D.call(C,P,K),k.v=1,h(i,"class decorators","return")&&(P=i);else if(K.static=s,K.private=d,i=K.access={has:d?u.bind():function(t){return o in t}},m||(i.get=d?v?function(t){return L(t),g.value}:T("get",0,L):function(t){return t[o]}),v||I||(i.set=d?T("set",0,L):function(t,e){t[o]=e}),P=D.call(C,R?{get:g.get,set:g.set}:g[S],K),k.v=1,R){if("object"==typeof P&&P)(i=h(P.get,"accessor.get"))&&(g.get=i),(i=h(P.set,"accessor.set"))&&(g.set=i),(i=h(P.init,"accessor.init"))&&y.unshift(i);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else h(P,(E?"field":"method")+" decorators","return")&&(E?y.unshift(P):g[S]=P)}return c<2&&l.push(f(y,s,1),f(a,s,0)),E||b||(d?R?l.splice(-1,0,T("get",s),T("set",s)):l.push(v?g[S]:h.call.bind(g[S])):O(t,o,g)),P}function R(t){return O(t,L,{configurable:!0,enumerable:!0,value:r})}return void 0!==a&&(r=a[L]),r=p(null==r?null:r),d=[],E=function(t){t&&d.push(f(t))},(u=function(e,o){for(var a=0;a<n.length;a++){var r=n[a],i=r[1],E=7&i;if((8&i)==e&&!E==o){var u=r[2],L=!!r[3],O=16&i;b(e?t:t.prototype,r,O,L?"#"+u:(0,v.A)(u),E,E<2?[]:e?s=s||[]:l=l||[],d,!!e,L,o,e&&L?function(e){return(0,T.A)(e)===t}:c)}}})(8,0),u(0,0),u(8,1),u(0,1),E(l),E(s),i=d,A||R(t),{e:i,get c(){var n=[];return A&&[R(t=b(t,[e],0,t.name,5,n)),f(n,1)]}}}(b,[G("visual-builder.workbench-history-action",{styleTexts:[k.A]})],[[V(),1,"appId"],[V(),1,"projectId"],[Y({type:"history.item.click"}),1,"historyItemClickEvent",t=>B(tt,t),(t,e)=>x(tt,t,e)],[Y({type:"rollback"}),1,"rollbackEvent",t=>B(ot,t),(t,e)=>x(ot,t,e)],[Y({type:"rollback.all"}),1,"rollbackAllEvent",t=>B(at,t),(t,e)=>x(at,t,e)]],0,(t=>rt.has((0,T.A)(t))),P.ReactNextElement)),o()},8675:(t,e,n)=>{n.d(e,{B:()=>s});var o=n(6156),c=n(8799),a={add:"".concat(o.NS,":").concat(o.K.ADD),edit:"".concat(o.NS,":").concat(o.K.EDIT),delete:"".concat(o.NS,":").concat(o.K.DELETE),batch_delete:"".concat(o.NS,":").concat(o.K.DELETE),import:"".concat(o.NS,":").concat(o.K.IMPORT),clone:"".concat(o.NS,":").concat(o.K.CLONE),append_relation:"".concat(o.NS,":").concat(o.K.APPEND_RELATION),update_relation:"".concat(o.NS,":").concat(o.K.UPDATE_RELATION),remove_relation:"".concat(o.NS,":").concat(o.K.REMOVE_RELATION),rollback:"".concat(o.NS,":").concat(o.K.ROLLBACK),rollback_all:"".concat(o.NS,":").concat(o.K.ROLLBACK_ALL)},r={add:"".concat(o.NS,":").concat(o.K.ADD_FULL),edit:"".concat(o.NS,":").concat(o.K.EDIT_FULL),delete:"".concat(o.NS,":").concat(o.K.DELETE_FULL),batch_delete:"".concat(o.NS,":").concat(o.K.DELETE_FULL),import:"".concat(o.NS,":").concat(o.K.IMPORT_FULL),clone:"".concat(o.NS,":").concat(o.K.CLONE_FULL),append_relation:"".concat(o.NS,":").concat(o.K.APPEND_RELATION_FULL),update_relation:"".concat(o.NS,":").concat(o.K.UPDATE_RELATION_FULL),remove_relation:"".concat(o.NS,":").concat(o.K.REMOVE_RELATION_FULL),rollback:"".concat(o.NS,":").concat(o.K.ROLLBACK_FULL),rollback_all:"".concat(o.NS,":").concat(o.K.ROLLBACK_ALL_FULL)},i={project:"".concat(o.NS,":").concat(o.K.PROJECT),userGroup:"".concat(o.NS,":").concat(o.K.USER),permission:"".concat(o.NS,":").concat(o.K.PERMISSION),brick:"".concat(o.NS,":").concat(o.K.BRICK),route:"".concat(o.NS,":").concat(o.K.ROUTE),template:"".concat(o.NS,":").concat(o.K.TEMPLATE),snippet:"".concat(o.NS,":").concat(o.K.SNIPPET),i18n:"".concat(o.NS,":").concat(o.K.I18N),image:"".concat(o.NS,":").concat(o.K.IMAGE),function:"".concat(o.NS,":").concat(o.K.FUNCTION),menu:"".concat(o.NS,":").concat(o.K.MENU),menuItem:"".concat(o.NS,":").concat(o.K.MENU_ITEM),workflow:"".concat(o.NS,":").concat(o.K.WORKFLOW)},l={PROJECT_MICRO_APP:"".concat(o.NS,":").concat(o.K.PROJECT),"MICRO_APP_USER_GROUP@EASYOPS":"".concat(o.NS,":").concat(o.K.USER),MICRO_APP_RESOURCE_PERMISSION:"".concat(o.NS,":").concat(o.K.PERMISSION),STORYBOARD_BRICK:"".concat(o.NS,":").concat(o.K.BRICK),STORYBOARD_ROUTE:"".concat(o.NS,":").concat(o.K.ROUTE),STORYBOARD_TEMPLATE:"".concat(o.NS,":").concat(o.K.TEMPLATE),STORYBOARD_SNIPPET:"".concat(o.NS,":").concat(o.K.SNIPPET),STORYBOARD_I18N:"".concat(o.NS,":").concat(o.K.I18N),MICRO_APP_RESOURCE_IMAGE:"".concat(o.NS,":").concat(o.K.IMAGE),STORYBOARD_FUNCTION:"".concat(o.NS,":").concat(o.K.FUNCTION),MICRO_APP_RESOURCE_MENU:"".concat(o.NS,":").concat(o.K.MENU),MICRO_APP_RESOURCE_MENU_ITEM:"".concat(o.NS,":").concat(o.K.MENU_ITEM),"WORKFLOW_DEF@EASYOPS":"".concat(o.NS,":").concat(o.K.WORKFLOW)};function s(t){var e,n,o,E,u,L,O,p,N,A,f,h,b,R,I,m,v,_="rollback"!==t.action||t.rollBackIdInfo?t.action:"rollback_all",T=c.i18n.t(null!==(e=i[t.category])&&void 0!==e?e:t.category),g=c.i18n.t(null!==(n=a[_])&&void 0!==n?n:_),y=c.i18n.t(null!==(o=l[null===(E=t.abstract)||void 0===E?void 0:E.leftObjectId])&&void 0!==o?o:null===(u=t.abstract)||void 0===u?void 0:u.leftObjectId),S=c.i18n.t(null!==(L=l[null===(O=t.abstract)||void 0===O?void 0:O.rightObjectId])&&void 0!==L?L:null===(p=t.abstract)||void 0===p?void 0:p.rightObjectId),P=d(null===(N=t.abstract)||void 0===N?void 0:N.nodes,null===(A=t.abstract)||void 0===A?void 0:A.nodesCount),U=d(null===(f=t.abstract)||void 0===f?void 0:f.leftNodes,null===(h=t.abstract)||void 0===h?void 0:h.leftNodesCount),D=d(null===(b=t.abstract)||void 0===b?void 0:b.rightNodes,null===(R=t.abstract)||void 0===R?void 0:R.rightNodesCount),C="rollback"===_?s(t.rollBackIdInfo).abstract:null;return{category:T,action:g,leftObjectId:y,rightObjectId:S,nodes:P,leftNodes:U,rightNodes:D,abstract:c.i18n.t(null!==(I=r[_])&&void 0!==I?I:_,{category:T,nodes:P,leftNodes:U,rightNodes:D,nodeChanges:null===(m=t.abstract)||void 0===m||null===(m=m.nodeChanges)||void 0===m?void 0:m.join(", "),relationChanges:null===(v=t.abstract)||void 0===v||null===(v=v.relationChanges)||void 0===v?void 0:v.join(", "),leftObjectId:y,rightObjectId:S,rollbackAbstract:C}),rollbackAbstract:C}}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ";return c.i18n.t("".concat(o.NS,":").concat(o.K.NODE),{nodes:t.join(n),context:e>t.length?"ellipsis":void 0,count:e})}},1361:(t,e,n)=>{n.d(e,{A:()=>i});var o=n(6758),c=n.n(o),a=n(935),r=n.n(a)()(c());r.push([t.id,":host{display:inline-block}:host([hidden]){display:none}eo-popover::part(popup){width:800px;max-width:60vw;padding:10px;background:var(--color-fill-bg-container-4);border-radius:var(--medius-border-radius);box-shadow:var(--feedback-container-shadow);z-index:1000}.history-title{font-size:var(--title-font-size);font-weight:var(--font-weight-500);color:var(--color-strong-text);margin-bottom:5px}.history-list{max-height:500px;overflow-y:auto}.item-container{padding:10px 0;display:flex;flex-direction:column;gap:5px}.empty{padding:5px 0 10px 0;font-size:14px;color:var(--text-color-secondary);text-align:center}.item-container:not(:last-of-type){border-bottom:1px solid var(--color-border-divider-line)}.item-title{display:flex;align-items:center;justify-content:space-between;gap:5px}.title-left,\n.title-right{display:flex;align-items:center}.title-left{cursor:pointer;overflow:hidden;gap:5px}.topic{font-size:14px;color:var(--text-color-title);font-weight:var(--font-weight-500);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.branch{font-size:14px;color:var(--text-color-secondary)}.rollback{margin-right:5px;font-size:14px;color:var(--text-color-secondary);cursor:pointer}.rollback:hover{color:var(--color-brand)}.item-info{display:flex;align-items:center;gap:5px}.time,\n.operator{font-size:14px;color:var(--text-color-secondary)}.load-more-container{display:block;text-align:center}.end-container{display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px;color:var(--color-brand)}.rollback-all{cursor:pointer}",""]);const i=r.toString()},935:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,o,c,a){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(o)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(r[l]=!0)}for(var s=0;s<t.length;s++){var d=[].concat(t[s]);o&&r[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),c&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=c):d[4]="".concat(c)),e.push(d))}},e}},6758:t=>{t.exports=function(t){return t[1]}},6330:(t,e,n)=>{function o(t,e,n,o,c,a,r){try{var i=t[a](r),l=i.value}catch(t){return void n(t)}i.done?e(l):Promise.resolve(l).then(o,c)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(c,a){var r=t.apply(e,n);function i(t){o(r,c,a,i,l,"next",t)}function l(t){o(r,c,a,i,l,"throw",t)}i(void 0)}))}}n.d(e,{A:()=>c})},6902:(t,e,n)=>{n.d(e,{A:()=>c});var o=n(7545);function c(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,o.A)(t):"null"));return t}},2016:(t,e,n)=>{function o(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>o})},918:(t,e,n)=>{n.d(e,{A:()=>c});var o=n(2016);function c(t,e,n){(0,o.A)(t,e),e.set(t,n)}},4635:(t,e,n)=>{n.d(e,{A:()=>c});var o=n(2016);function c(t,e){(0,o.A)(t,e),e.add(t)}},4586:(t,e,n)=>{n.d(e,{A:()=>c});var o=n(1369);function c(t,e,n){return(e=(0,o.A)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},9740:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(4586);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,o.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},8449:(t,e,n)=>{n.d(e,{A:()=>c});var o=n(7545);function c(t,e,n){"symbol"==(0,o.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:n?n+" "+e:e})}catch(t){}return t}},1369:(t,e,n)=>{n.d(e,{A:()=>c});var o=n(7545);function c(t){var e=function(t,e){if("object"!=(0,o.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var c=n.call(t,"string");if("object"!=(0,o.A)(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,o.A)(e)?e:String(e)}},7545:(t,e,n)=>{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n.d(e,{A:()=>o})},4107:(t,e,n)=>{n.d(e,{R:()=>r});var o=n(9740),c=n(6330),a=n(5290),r=function(){var t=(0,c.A)((function*(t,e,n){return(yield a.http.get("api/gateway/next_builder.workspace.GetChangeHistory/api/v1/next-builder/workspace/".concat(t,"/changes"),(0,o.A)((0,o.A)({},n),{},{params:e}))).data}));return function(e,n,o){return t.apply(this,arguments)}}()}}]);
|
|
3
|
-
//# sourceMappingURL=workbench-history-action.cfd701d2.js.map
|
package/dist/index.a47867cb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t,r,n,a,o,l,i,c,s,d,u,h,f,b,p,m,v,x,g,P,y,w,k={9220:(e,t,r)=>{var n={"./workbench-pane":()=>Promise.all([r.e(8769),r.e(9929),r.e(9938),r.e(7997)]).then((()=>()=>r(3147))),"./workbench-tree":()=>Promise.all([r.e(8769),r.e(9929),r.e(1030),r.e(9938),r.e(4),r.e(330),r.e(7222),r.e(5299)]).then((()=>()=>r(577))),"./inject-preview-agent":()=>Promise.all([r.e(9933),r.e(1030),r.e(8438),r.e(4),r.e(9027),r.e(4963)]).then((()=>()=>r(7030))),"./workbench-history-action":()=>Promise.all([r.e(8769),r.e(9929),r.e(9938),r.e(4),r.e(155),r.e(8799),r.e(330),r.e(5290),r.e(5502),r.e(2080)]).then((()=>()=>r(4754))),"./page-arch-node":()=>Promise.all([r.e(8769),r.e(9929),r.e(9938),r.e(330),r.e(4892)]).then((()=>()=>r(5014))),"./contract-select":()=>Promise.all([r.e(8769),r.e(9929),r.e(1030),r.e(9938),r.e(8799),r.e(330),r.e(5290),r.e(5502),r.e(4845),r.e(3046)]).then((()=>()=>r(4680))),"./workbench-sidebar":()=>Promise.all([r.e(8769),r.e(9929),r.e(9938),r.e(8137)]).then((()=>()=>r(7775))),"./workbench-action":()=>Promise.all([r.e(8769),r.e(9929),r.e(9938),r.e(5425)]).then((()=>()=>r(1959))),"./workbench-action-list":()=>Promise.all([r.e(8769),r.e(9929),r.e(9938),r.e(4),r.e(1201),r.e(5402)]).then((()=>()=>r(6860))),"./collect-used-contracts":()=>Promise.all([r.e(9933),r.e(1030),r.e(8438),r.e(4),r.e(9027),r.e(4963)]).then((()=>()=>r(7030)))},a=(e,t)=>(r.R=t,t=r.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),r.R=void 0,t),o=(e,t)=>{if(r.S){var n="default",a=r.S[n];if(a&&a!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return r.S[n]=e,r.I(n,t)}};r.d(t,{get:()=>a,init:()=>o})}},j={};function S(e){var t=j[e];if(void 0!==t)return t.exports;var r=j[e]={id:e,loaded:!1,exports:{}};return k[e].call(r.exports,r,r.exports,S),r.loaded=!0,r.exports}S.m=k,S.c=j,S.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return S.d(t,{a:t}),t},S.d=(e,t)=>{for(var r in t)S.o(t,r)&&!S.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce(((t,r)=>(S.f[r](e,t),t)),[])),S.u=e=>"chunks/"+({2080:"workbench-history-action",3046:"contract-select",4892:"page-arch-node",4963:"inject-preview-agent",5299:"workbench-tree",5402:"workbench-action-list",5425:"workbench-action",7997:"workbench-pane",8137:"workbench-sidebar"}[e]||e)+"."+{4:"7fcf0cc5",114:"3a6120a3",155:"041f6dc7",330:"50fd68e4",478:"7e1cd06e",726:"6245fb60",790:"ab211a8a",875:"ac8439b8",1030:"8c162fd1",1045:"ce2da47a",1122:"9dff69fc",1201:"f09a5b56",1204:"61efce7b",1369:"e7a76cb0",1370:"485fc795",1889:"7e3787d5",1940:"d765c481",2052:"5926f210",2080:"cfd701d2",2277:"07982a9b",2617:"1d5bf314",3046:"0e1ce8cf",3144:"c6a8a081",3171:"1241a7c9",3426:"7237505a",3620:"c914fb59",3933:"3d3e3539",4041:"b50c80d7",4165:"d7886475",4208:"60ea8c03",4658:"dab790af",4741:"cf0d2915",4845:"38dd0c23",4892:"df92dd44",4963:"20f69b9f",5250:"dc33943a",5290:"7b5bc336",5299:"5762e4e3",5384:"db165893",5399:"96679376",5402:"0b3ea2ad",5425:"843cf56a",5481:"fc9a1001",5502:"490bfb21",5552:"b400883c",5669:"c0bcd8ec",6314:"647629e1",6519:"538410d7",6773:"c1867a35",7222:"964f447f",7452:"4d9d3581",7721:"ac7a50ec",7733:"dd86deb1",7780:"1ca43b02",7825:"ba97230b",7997:"a4e71fb1",8050:"0d264d7c",8097:"2a833d82",8137:"cc37406d",8438:"ad13619b",8442:"54ac48a0",8769:"e0e7e7a6",8799:"cd3b4564",8989:"b5c0084e",9027:"56cad5a3",9259:"951e38a1",9515:"07ef90ca",9542:"08c9e959",9559:"31bf8623",9844:"bc9b1bf6",9929:"ed27d04d",9933:"b27f4803",9938:"671b6de6"}[e]+".js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@next-bricks/visual-builder:",S.l=(r,n,a,o)=>{if(e[r])e[r].push(n);else{var l,i;if(void 0!==a)for(var c=document.getElementsByTagName("script"),s=0;s<c.length;s++){var d=c[s];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){l=d;break}}l||(i=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,S.nc&&l.setAttribute("nonce",S.nc),l.setAttribute("data-webpack",t+a),l.src=r),e[r]=[n];var u=(t,n)=>{l.onerror=l.onload=null,clearTimeout(h);var a=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(n))),t)return t(n)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=u.bind(null,l.onerror),l.onload=u.bind(null,l.onload),i&&document.head.appendChild(l)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{S.S={};var e={},t={};S.I=(r,n)=>{n||(n=[]);var a=t[r];if(a||(a=t[r]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[r])return e[r];S.o(S.S,r)||(S.S[r]={});var o=S.S[r],l="@next-bricks/visual-builder",i=(e,t,r,n)=>{var a=o[e]=o[e]||{},i=a[t];(!i||!i.loaded&&(!n!=!i.eager?n:l>i.from))&&(a[t]={get:r,from:l,eager:!!n})},c=[];return"default"===r&&(i("@babel/parser","7.24.0",(()=>S.e(6773).then((()=>()=>S(6773))))),i("@easyops-cn/brick-next-pipes","0.6.0",(()=>Promise.all([S.e(4741),S.e(1030),S.e(155),S.e(1204)]).then((()=>()=>S(4741))))),i("@next-core/cook","2.2.13",(()=>Promise.all([S.e(1122),S.e(2617)]).then((()=>()=>S(1122))))),i("@next-core/element","1.2.3",(()=>S.e(1045).then((()=>()=>S(1045))))),i("@next-core/http","1.1.10",(()=>S.e(8989).then((()=>()=>S(8989))))),i("@next-core/i18n/react","1.0.39",(()=>Promise.all([S.e(8799),S.e(7825),S.e(8097)]).then((()=>()=>S(8097))))),i("@next-core/i18n","1.0.39",(()=>Promise.all([S.e(8438),S.e(8799),S.e(8442),S.e(5552)]).then((()=>()=>S(5552))))),i("@next-core/inject","1.0.29",(()=>Promise.all([S.e(1030),S.e(9259),S.e(2277)]).then((()=>()=>S(2277))))),i("@next-core/loader","1.5.5",(()=>S.e(5399).then((()=>()=>S(5399))))),i("@next-core/pipes","2.0.17",(()=>S.e(6519).then((()=>()=>S(6519))))),i("@next-core/react-element","1.0.22",(()=>Promise.all([S.e(8769),S.e(9929),S.e(4208),S.e(114)]).then((()=>()=>S(114))))),i("@next-core/react-runtime","1.3.0",(()=>Promise.all([S.e(8769),S.e(1030),S.e(9938),S.e(4),S.e(8050)]).then((()=>()=>S(8050))))),i("@next-core/runtime","1.35.0",(()=>Promise.all([S.e(875),S.e(1030),S.e(8438),S.e(155),S.e(5290),S.e(5481),S.e(4165),S.e(1369)]).then((()=>()=>S(3256))))),i("@next-core/supply","2.1.12",(()=>Promise.all([S.e(1030),S.e(155),S.e(9259),S.e(9559)]).then((()=>()=>S(9559))))),i("@next-core/theme","1.4.8",(()=>Promise.all([S.e(1889),S.e(2052)]).then((()=>()=>S(1889))))),i("@next-core/utils/general","1.6.11",(()=>S.e(7452).then((()=>()=>S(7452))))),i("@next-core/utils/storyboard","1.6.11",(()=>Promise.all([S.e(8438),S.e(5481),S.e(3933)]).then((()=>()=>S(3933))))),i("history","4.10.1",(()=>S.e(5384).then((()=>()=>S(5384))))),i("i18next-browser-languagedetector","7.2.0",(()=>S.e(726).then((()=>()=>S(726))))),i("i18next","22.5.1",(()=>S.e(9542).then((()=>()=>S(9542))))),i("js-yaml","3.14.1",(()=>S.e(9515).then((()=>()=>S(9515))))),i("lodash","4.17.21",(()=>S.e(5250).then((()=>()=>S(5250))))),i("moment/locale/zh-cn.js","2.29.4",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),i("moment","2.29.4",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(9420))))),i("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([S.e(3144),S.e(8769)]).then((()=>()=>S(3144))))),i("react-i18next","12.3.1",(()=>Promise.all([S.e(3620),S.e(8769)]).then((()=>()=>S(3620))))),i("react","0.0.0-experimental-ee8509801-20230117",(()=>S.e(4041).then((()=>()=>S(4041)))))),e[r]=c.length?Promise.all(c).then((()=>e[r]=1)):1}}})(),(()=>{var e;S.g.importScripts&&(e=S.g.location+"");var t=S.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e})(),r=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=r[1]?t(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,t(r[2]))),r[3]&&(n.push([]),n.push.apply(n,t(r[3]))),n},n=(e,t)=>{e=r(e),t=r(t);for(var n=0;;){if(n>=e.length)return n<t.length&&"u"!=(typeof t[n])[0];var a=e[n],o=(typeof a)[0];if(n>=t.length)return"u"==o;var l=t[n],i=(typeof l)[0];if(o!=i)return"o"==o&&"n"==i||"s"==i||"u"==o;if("o"!=o&&"u"!=o&&a!=l)return a<l;n++}},a=e=>{var t=e[0],r="";if(1===e.length)return"*";if(t+.5){r+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,r+="u"==(typeof(i=e[o]))[0]?"-":(n>0?".":"")+(n=2,i);return r}var l=[];for(o=1;o<e.length;o++){var i=e[o];l.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?l.pop()+" "+l.pop():a(i))}return c();function c(){return l.pop().replace(/^\((.+)\)$/,"$1")}},o=(e,t)=>{if(0 in e){t=r(t);var n=e[0],a=n<0;a&&(n=-n-1);for(var l=0,i=1,c=!0;;i++,l++){var s,d,u=i<e.length?(typeof e[i])[0]:"";if(l>=t.length||"o"==(d=(typeof(s=t[l]))[0]))return!c||("u"==u?i>n&&!a:""==u!=a);if("u"==d){if(!c||"u"!=u)return!1}else if(c)if(u==d)if(i<=n){if(s!=e[i])return!1}else{if(a?s>e[i]:s<e[i])return!1;s!=e[i]&&(c=!1)}else if("s"!=u&&"n"!=u){if(a||i<=n)return!1;c=!1,i--}else{if(i<=n||d<u!=a)return!1;c=!1}else"s"!=u&&"n"!=u&&(c=!1,i--)}}var h=[],f=h.pop.bind(h);for(l=1;l<e.length;l++){var b=e[l];h.push(1==b?f()|f():2==b?f()&f():b?o(b,t):!f())}return!!f()},l=(e,t)=>{var r=e[t];return(t=Object.keys(r).reduce(((e,t)=>!e||n(e,t)?t:e),0))&&r[t]},i=(e,t)=>{var r=e[t];return Object.keys(r).reduce(((e,t)=>!e||!r[e].loaded&&n(e,t)?t:e),0)},c=(e,t,r,n)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+a(n)+")",s=(e,t,r,n)=>{var a=i(e,r);return f(e[r][a])},d=(e,t,r,n)=>{var a=i(e,r);return o(n,a)||h(c(e,r,a,n)),f(e[r][a])},u=(e,t,r)=>{var a=e[t];return(t=Object.keys(a).reduce(((e,t)=>!o(r,t)||e&&!n(e,t)?e:t),0))&&a[t]},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},f=e=>(e.loaded=1,e.get()),p=(b=e=>function(t,r,n,a){var o=S.I(t);return o&&o.then?o.then(e.bind(e,t,S.S[t],r,n,a)):e(t,S.S[t],r,n,a)})(((e,t,r,n)=>t&&S.o(t,r)?f(l(t,r)):n())),m=b(((e,t,r,n)=>t&&S.o(t,r)?s(t,0,r):n())),v=b(((e,t,r,n,a)=>t&&S.o(t,r)?d(t,0,r,n):a())),x=b(((e,t,r,n,a)=>{var o=t&&S.o(t,r)&&u(t,r,n);return o?f(o):a()})),g={},P={1030:()=>v("default","lodash",[1,4,17,21],(()=>S.e(5250).then((()=>()=>S(5250))))),155:()=>v("default","moment",[1,2,29,4],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(9420))))),1204:()=>v("default","js-yaml",[1,3,14,0],(()=>S.e(9515).then((()=>()=>S(9515))))),2617:()=>v("default","@babel/parser",[1,7,24,0],(()=>S.e(6773).then((()=>()=>S(6773))))),8799:()=>m("default","@next-core/i18n",(()=>Promise.all([S.e(8438),S.e(8442),S.e(3171)]).then((()=>()=>S(5552))))),7825:()=>v("default","react-i18next",[1,12,3,1],(()=>Promise.all([S.e(3620),S.e(8769)]).then((()=>()=>S(3620))))),8438:()=>v("default","@next-core/utils/general",[1,1,6,11],(()=>S.e(7452).then((()=>()=>S(7452))))),2350:()=>v("default","i18next",[1,22,5,1],(()=>S.e(9542).then((()=>()=>S(9542))))),6837:()=>v("default","i18next-browser-languagedetector",[1,7,2,0],(()=>S.e(726).then((()=>()=>S(726))))),9259:()=>v("default","@next-core/pipes",[1,2,0,17],(()=>S.e(6519).then((()=>()=>S(6519))))),161:()=>v("default","@easyops-cn/brick-next-pipes",[2,0,6,0],(()=>Promise.all([S.e(4741),S.e(1030),S.e(155),S.e(1204)]).then((()=>()=>S(4741))))),8769:()=>x("default","react",[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(4041).then((()=>()=>S(4041))))),9929:()=>x("default","@next-core/element",[1,1,2,3],(()=>S.e(3426).then((()=>()=>S(1045))))),454:()=>p("default","react-dom",(()=>S.e(3144).then((()=>()=>S(3144))))),9435:()=>x("default","react-dom",[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(3144).then((()=>()=>S(3144))))),9938:()=>x("default","@next-core/react-element",[1,1,0,22],(()=>Promise.all([S.e(9929),S.e(4208),S.e(7733)]).then((()=>()=>S(114))))),4:()=>v("default","@next-core/runtime",[1,1,35,0],(()=>Promise.all([S.e(875),S.e(1030),S.e(8438),S.e(155),S.e(5290),S.e(5481),S.e(4165)]).then((()=>()=>S(3256))))),5290:()=>v("default","@next-core/http",[1,1,1,10],(()=>S.e(1370).then((()=>()=>S(8989))))),5481:()=>v("default","@next-core/cook",[1,2,2,13],(()=>Promise.all([S.e(1122),S.e(2617)]).then((()=>()=>S(1122))))),50:()=>v("default","@next-core/utils/storyboard",[1,1,6,11],(()=>S.e(6314).then((()=>()=>S(3933))))),597:()=>v("default","moment/locale/zh-cn.js",[1,2,29,4],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),2890:()=>v("default","history",[1,4,10,1],(()=>S.e(5384).then((()=>()=>S(5384))))),5435:()=>v("default","@next-core/inject",[1,1,0,29],(()=>Promise.all([S.e(9259),S.e(4658)]).then((()=>()=>S(2277))))),6154:()=>v("default","@next-core/loader",[1,1,5,5],(()=>S.e(7780).then((()=>()=>S(5399))))),7058:()=>v("default","@next-core/i18n",[1,1,0,39],(()=>Promise.all([S.e(8799),S.e(8442),S.e(790)]).then((()=>()=>S(5552))))),7731:()=>v("default","@next-core/supply",[1,2,1,12],(()=>Promise.all([S.e(9259),S.e(1940)]).then((()=>()=>S(9559))))),330:()=>v("default","@next-core/theme",[1,1,4,8],(()=>S.e(1889).then((()=>()=>S(1889))))),5502:()=>m("default","@next-core/i18n/react",(()=>Promise.all([S.e(7825),S.e(478)]).then((()=>()=>S(8097))))),4845:()=>p("default","@next-core/react-runtime",(()=>Promise.all([S.e(4),S.e(5669)]).then((()=>()=>S(8050))))),1201:()=>v("default","history",[1,4,7,11],(()=>S.e(5384).then((()=>()=>S(5384)))))},y={4:[4],155:[155],330:[330],1030:[1030],1201:[1201],1204:[1204],2617:[2617],4165:[50,597,2890,5435,6154,7058,7731],4208:[454,9435],4845:[4845],5290:[5290],5481:[5481],5502:[5502],6519:[161],7825:[7825],8438:[8438],8442:[2350,6837],8769:[8769],8799:[8799],9259:[9259],9929:[9929],9938:[9938]},w={},S.f.consumes=(e,t)=>{S.o(y,e)&&y[e].forEach((e=>{if(S.o(g,e))return t.push(g[e]);if(!w[e]){var r=t=>{g[e]=0,S.m[e]=r=>{delete S.c[e],r.exports=t()}};w[e]=!0;var n=t=>{delete g[e],S.m[e]=r=>{throw delete S.c[e],t}};try{var a=P[e]();a.then?t.push(g[e]=a.then(r).catch(n)):r(a)}catch(e){n(e)}}}))},(()=>{var e={7994:0};S.f.j=(t,r)=>{var n=S.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(1(20[14]|030|55)|4(|165|208|845)|5(290|481|502)|8(438|442|769|799)|9(259|929|938)|2617|330|7825)$/.test(t))e[t]=0;else{var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var o=S.p+S.u(t),l=new Error;S.l(o,(r=>{if(S.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",l.name="ChunkLoadError",l.type=a,l.request=o,n[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[o,l,i]=r,c=0;if(o.some((t=>0!==e[t]))){for(n in l)S.o(l,n)&&(S.m[n]=l[n]);i&&i(S)}for(t&&t(r);c<o.length;c++)a=o[c],S.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),S.nc=void 0;var _=S(9220);window["bricks/visual-builder"]=_})();
|
|
2
|
-
//# sourceMappingURL=index.a47867cb.js.map
|
|
File without changes
|
|
File without changes
|