@next-bricks/visual-builder 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +1 -1
- package/dist/chunks/1045.8b4d10c4.js +2 -0
- package/dist/chunks/1045.8b4d10c4.js.map +1 -0
- package/dist/chunks/{114.145a58c4.js → 114.3b4811fb.js} +2 -2
- package/dist/chunks/{114.145a58c4.js.map → 114.3b4811fb.js.map} +1 -1
- package/dist/chunks/3426.10d61df1.js +2 -0
- package/dist/chunks/3426.10d61df1.js.map +1 -0
- package/dist/chunks/3801.80b3cda4.js +3 -0
- package/dist/chunks/{3801.477a0f99.js.map → 3801.80b3cda4.js.map} +1 -1
- package/dist/chunks/{7115.6fc785ff.js → 7115.299b2dc9.js} +2 -2
- package/dist/chunks/{7115.6fc785ff.js.map → 7115.299b2dc9.js.map} +1 -1
- package/dist/chunks/7224.054dc871.js +3 -0
- package/dist/chunks/{7224.92a43c9e.js.map → 7224.054dc871.js.map} +1 -1
- package/dist/chunks/{7733.edd149d7.js → 7733.afc7df10.js} +2 -2
- package/dist/chunks/{7733.edd149d7.js.map → 7733.afc7df10.js.map} +1 -1
- package/dist/chunks/{9496.6ff45070.js → 9496.cfa9e0c9.js} +2 -2
- package/dist/chunks/{9496.6ff45070.js.map → 9496.cfa9e0c9.js.map} +1 -1
- package/dist/chunks/chat-conversation.5688d761.js +3 -0
- package/dist/chunks/{chat-conversation.c20e6c44.js.map → chat-conversation.5688d761.js.map} +1 -1
- package/dist/chunks/chat-preview.f0a52048.js +2 -0
- package/dist/chunks/{chat-preview.a36a3a25.js.map → chat-preview.f0a52048.js.map} +1 -1
- package/dist/chunks/contract-select.188e9d91.js +3 -0
- package/dist/chunks/{contract-select.ea76b415.js.map → contract-select.188e9d91.js.map} +1 -1
- package/dist/chunks/main.e85cc270.js +2 -0
- package/dist/chunks/{main.6d351f9e.js.map → main.e85cc270.js.map} +1 -1
- package/dist/chunks/page-arch-node.e0fc3b8c.js +3 -0
- package/dist/chunks/{page-arch-node.23766062.js.map → page-arch-node.e0fc3b8c.js.map} +1 -1
- package/dist/chunks/workbench-action-list.d93b089b.js +2 -0
- package/dist/chunks/{workbench-action-list.5e477975.js.map → workbench-action-list.d93b089b.js.map} +1 -1
- package/dist/chunks/workbench-action.499a3618.js +3 -0
- package/dist/chunks/{workbench-action.ce202905.js.map → workbench-action.499a3618.js.map} +1 -1
- package/dist/chunks/workbench-history-action.27b038a9.js +3 -0
- package/dist/chunks/{workbench-history-action.1e2ead8a.js.map → workbench-history-action.27b038a9.js.map} +1 -1
- package/dist/chunks/workbench-pane.43cca8ce.js +3 -0
- package/dist/chunks/{workbench-pane.5d9055cf.js.map → workbench-pane.43cca8ce.js.map} +1 -1
- package/dist/chunks/workbench-sidebar.f5e7a07e.js +2 -0
- package/dist/chunks/{workbench-sidebar.12dddbe0.js.map → workbench-sidebar.f5e7a07e.js.map} +1 -1
- package/dist/chunks/workbench-tree.97608c87.js +2 -0
- package/dist/chunks/{workbench-tree.87fa8a9f.js.map → workbench-tree.97608c87.js.map} +1 -1
- package/dist/index.f96d3eea.js +2 -0
- package/dist/{index.692b726a.js.map → index.f96d3eea.js.map} +1 -1
- package/package.json +2 -2
- package/dist/chunks/1045.cb75d16d.js +0 -2
- package/dist/chunks/1045.cb75d16d.js.map +0 -1
- package/dist/chunks/3426.d6cca3b4.js +0 -2
- package/dist/chunks/3426.d6cca3b4.js.map +0 -1
- package/dist/chunks/3801.477a0f99.js +0 -3
- package/dist/chunks/7224.92a43c9e.js +0 -3
- package/dist/chunks/chat-conversation.c20e6c44.js +0 -3
- package/dist/chunks/chat-preview.a36a3a25.js +0 -2
- package/dist/chunks/contract-select.ea76b415.js +0 -3
- package/dist/chunks/main.6d351f9e.js +0 -2
- package/dist/chunks/page-arch-node.23766062.js +0 -3
- package/dist/chunks/workbench-action-list.5e477975.js +0 -2
- package/dist/chunks/workbench-action.ce202905.js +0 -3
- package/dist/chunks/workbench-history-action.1e2ead8a.js +0 -3
- package/dist/chunks/workbench-pane.5d9055cf.js +0 -3
- package/dist/chunks/workbench-sidebar.12dddbe0.js +0 -2
- package/dist/chunks/workbench-tree.87fa8a9f.js +0 -2
- package/dist/index.692b726a.js +0 -2
- /package/dist/chunks/{3801.477a0f99.js.LICENSE.txt → 3801.80b3cda4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{7224.92a43c9e.js.LICENSE.txt → 7224.054dc871.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-conversation.c20e6c44.js.LICENSE.txt → chat-conversation.5688d761.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{contract-select.ea76b415.js.LICENSE.txt → contract-select.188e9d91.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{page-arch-node.23766062.js.LICENSE.txt → page-arch-node.e0fc3b8c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-action.ce202905.js.LICENSE.txt → workbench-action.499a3618.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.1e2ead8a.js.LICENSE.txt → workbench-history-action.27b038a9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-pane.5d9055cf.js.LICENSE.txt → workbench-pane.43cca8ce.js.LICENSE.txt} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 3801.477a0f99.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[3801,2052],{4940:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,l:()=>a});var o=n(8769),r=(0,o.createContext)({});function a(){return(0,o.useContext)(r)}},7758:(e,t,n)=>{"use strict";n.d(t,{cU:()=>S});var o=n(9575),r=n(9740),a=n(8769),i=n.n(a),l=n(1030),c=n.n(l),s=n(3373),d=n.n(s),u=n(9406),p=n(4940),f=function(e){return e.inside="inside",e.top="top",e.bottom="bottom",e}({}),h=(0,a.createContext)({});function v(){return(0,a.useContext)(h)}var g=n(720),m=n(9924),b=(0,g.wrapBrick)("eo-icon");function x(e){var{data:t,className:n,gap:o,isFirst:r,isLast:l,actions:c,actionsHidden:s,onActionClick:u}=e,p=(0,a.useMemo)((()=>null==c?void 0:c.filter((e=>(0,m.checkIfByTransform)(e,t)))),[c,t]);return s||null==p||!p.length?null:i().createElement("div",{className:d()("actionsBar",n),style:{gap:o}},p.map((e=>i().createElement(y,{key:e.action,action:e,data:t,isFirst:r,isLast:l,onActionClick:u}))))}function y(e){var{action:t,data:n,isFirst:o,isLast:r,onActionClick:l}=e,c=o&&"move-up"===t.action||r&&"move-down"===t.action,s=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),c||null==l||l({action:t.action,data:n})}),[t.action,n,c,l]),u=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation()}),[]);return i().createElement("a",{className:d()("action",{disabled:c}),title:t.title,role:"button",onClick:s,onContextMenu:u,onMouseDown:u},i().createElement(b,t.icon))}var w=(0,g.wrapBrick)("eo-link"),k=(0,g.wrapBrick)("eo-icon"),E=10,A="0 0 0 1px #ba6d30",C=(0,a.createContext)(!1);function S(e){var{nodes:t,placeholder:n,searchPlaceholder:o,isDrag:r,noSearch:l,allowDrag:s,allowDragToRoot:p,allowDragToInside:v,dropEmit:g}=e,[m,b]=(0,a.useState)(""),[x,y]=(0,a.useState)(r),[w,E]=(0,a.useState)(),[A,S]=(0,a.useState)(),[N,I]=(0,a.useState)(),[M,j]=(0,a.useState)(),[D,R]=(0,a.useState)(),[B,P]=(0,a.useState)(),{nodeKey:O,onBrickDrop:T,contextMenuFactory:F,matchNode:z}=(0,u.o)(),_=(0,a.useMemo)((()=>{var e;return function(e,t){var n=(e,o,r,a)=>{var i=e.shift();if(i){e.length>0&&e.splice(0,1,"".concat(i,"/").concat(e[0]));var l=o.find((e=>e&&e.key===i&&e.isContainer));if(l)o[a]=null,n(e,l.children,r);else{var c=i.split("/"),s={name:c.pop(),key:i,parentPath:c?c.join("/"):c,originKey:r.key,data:{[t]:i,isContainer:!0},children:[],icon:{icon:"folder",lib:"antd",theme:"filled",color:"orange"},isContainer:!0};"number"==typeof a?o[a]=s:o.push(s),n(e,s.children,r)}}else o.push(r)};return e.forEach(((t,o)=>{if(t.path){var r=t.path.split("/").filter(Boolean);n(r,e,t,o)}})),e.filter(Boolean)}(null!==(e=null==t?void 0:t.slice())&&void 0!==e?e:[],O)}),[t,O]),K=(0,a.useCallback)((e=>{b(e.target.value)}),[]),W=(0,a.useMemo)((()=>null==F?void 0:F()),[F]),$=null==m?void 0:m.trim().toLowerCase(),H=(0,a.useMemo)((()=>{if(l||!$||!_)return _;var e=t=>{var n;t.matchedSelf=z(t,$);var o=null===(n=t.children)||void 0===n?void 0:n.map(e).includes(!0);return t.matched=t.matchedSelf||o,t.matched};return _.forEach(e),_.slice()}),[l,$,_,z]),U=function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;n;){if(n.draggable&&(t||n!==e)&&"A"!==n.tagName)return n;n=n.parentElement}},Y=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var r of e)if(r.data[n]===t&&(o=r),r.children&&(o=Y(r.children,t,n,o)),o)break;return o},V=()=>{S(null),j(null),I(null),R(null),y(!1)};return(0,a.useEffect)((()=>{y(r)}),[r]),(0,a.useEffect)((()=>(window.addEventListener("dragend",V),()=>{window.removeEventListener("dragend",V)})),[]),i().createElement("div",{style:{height:"100%"},className:"tree-wrapper",onContextMenu:W},null!=_&&_.length?i().createElement("div",null,!l&&i().createElement("div",{className:"searchBox",onContextMenu:e=>e.stopPropagation()},i().createElement("span",{className:d()("filter-input-wrapper",{focus:B})},i().createElement("span",{className:"prefix"},i().createElement(k,{icon:"search",lib:"antd",theme:"outlined"})),i().createElement("input",{value:m,onChange:K,onFocus:()=>P(!0),onBlur:()=>P(!1),autoComplete:"off",placeholder:o}),i().createElement("span",{className:"suffix"},m?i().createElement(k,{className:"clear-button",icon:"close-circle",lib:"antd",theme:"filled",onClick:()=>{b("")}}):null))),i().createElement(C.Provider,{value:!!m},i().createElement(h.Provider,{value:{allow:s,allowDragToRoot:p,dragElement:A,dragOverElement:M,dragStatus:D,onDragStart:(e,t)=>{var n;if(e.stopPropagation(),s){var o=e.target;null!==(n=o.dataset)&&void 0!==n&&n.container||(y(!0),function(e,t){var n=document.createElement("canvas");document.body.append(n);var o=n.getContext("2d");n.width=o.measureText(t).width+60,n.height=20,n.style.position="absolute",n.style.left="-100%",n.style.zIndex="-100",o.fillStyle="#333333",o.fillRect(0,0,n.width,n.height),o.fillStyle="#999999",o.font="bold 14px Arial",o.fillText(t,20,15),e.dataTransfer.setDragImage(n,0,0)}(e,o.innerText),S(o),E(t))}}}},i().createElement("div",{className:d()({hightlight:r}),onDragOver:e=>{if(e.preventDefault(),x&&"workbenchTree-placeholder-dom"!==e.target.className){var t=(e=>{var t=U(e.target),n=t.dataset.uid;if(!(t===A||null!=n&&n.includes(":"))){var o,{top:r,bottom:a}=t.getBoundingClientRect(),i=v?5:10;return o=e.clientY<r+i?f.top:e.clientY>a-i?f.bottom:v?f.inside:D,{element:t,node:Y(_,n,O),status:o}}})(e);!t||null!=A&&A.contains(t.element)||(j(t.element),I(t.node),R(t.status))}},onDrop:e=>{if(x){if(T){var t=M;[f.top,f.bottom].includes(D)&&(t=U(t,!1)),T(e,{curElement:A,overElement:M,parentElement:t,overStatus:D})}else if(p||1!==Number(M.dataset.level)){var n=N,o=(e,t)=>{for(var r=0;r<e.length;r++){if(e[r].key===t){n=e[r];break}e[r].children&&o(e[r].children,t)}},r=M.dataset.uid;o(_,r);var a=e=>{var t=!1,{container:o,uid:r}=M.dataset,i=o?n.originKey:r,l=e.filter((e=>(e.children&&(e.children=a(e.children)),e.key===i&&(t=!0),e.key!==w.key)));return t&&l.splice(l.findIndex((e=>e.key===i))+("bottom"===D?1:0),0,w),l},i=function(e){var t=[],n=e=>{e.forEach((e=>{e.isContainer?n(e.children):t.push(c().omit(e,["path","icon"]))}))};return n(e),t}(_),l=w.isContainer?i.find((e=>e.key===w.originKey)):w;l.data.path=n.parentPath||n.path,g({nodes:a(i),curNode:l,overNode:n,status:D})}V()}}},i().createElement(L,{nodes:H,level:1}))))):i().createElement("div",{className:"placeholder"},n))}function L(e){var{nodes:t,level:n}=e,o=t.length-1;return i().createElement("ul",{className:"tree"},t.filter((e=>(0,m.checkIfOfComputed)(e))).map(((e,t)=>i().createElement(I,{key:e.key,node:e,level:n,isFirst:0===t,isLast:t===o}))))}function N(e){var{style:t}=e,{dragStatus:n}=v(),o=(0,r.A)({height:22,border:"1px dashed goldenrod",opacity:n===f.inside?"0":"1"},t);return i().createElement("li",{className:"workbenchTree-placeholder-dom",style:o})}function I(e){var t,n,c,{node:s,level:h,isFirst:g,isLast:m}=e,b=!(null!==(t=s.children)&&void 0!==t&&t.length),y=s.isContainer,{hoverKey:S,activeKey:I,basePaddingLeft:M,showMatchedNodeOnly:j,fixedActionsFor:D,collapsible:R,collapsedNodes:B,nodeKey:P,clickFactory:O,mouseEnterFactory:T,mouseLeaveFactory:F,contextMenuFactory:z,onNodeToggle:_,getCollapsedId:K,skipNotify:W}=(0,u.o)(),{allow:$,allowDragToRoot:H,onDragStart:U,dragElement:Y,dragOverElement:V,dragStatus:q}=v(),{actions:G,actionsHidden:J,onActionClick:Q}=(0,p.l)(),X=h*E+M-2,Z=(0,a.useContext)(C),[ee,te]=(0,a.useState)(null),[ne,oe]=(0,a.useState)(!1),[re,ae]=(0,a.useState)(null!==(n=null==B?void 0:B.includes(null==K?void 0:K(s)))&&void 0!==n&&n),ie=(0,a.useMemo)((()=>null==T?void 0:T(s)),[T,s]),le=(0,a.useMemo)((()=>null==F?void 0:F(s)),[F,s]),ce=(0,a.useCallback)((e=>{var t;e.stopPropagation(),null==z||null===(t=z(s))||void 0===t||t(e)}),[z,s]),se=I&&s.key===I,de=(0,a.useMemo)((()=>se?e=>{var t;null==e||null===(t=e.scrollIntoView)||void 0===t||t.call(e,{block:"center",inline:"center"})}:null),[]),ue=(0,a.useMemo)((()=>{return y?s.key:s.data?"mount-point"===(e=s.data).type?e.parent[P]||"".concat(e.parent.$$uid,":").concat(e.mountPoint):e[P]||e.$$uid:void 0;var e}),[P,s,y]);(0,a.useEffect)((()=>{q!==f.inside&&[f.top,f.bottom].includes(q)&&te(q)}),[q]);var pe=(0,a.useMemo)((()=>!!Y&&Y.dataset.uid===String(ue)),[Y,ue]),fe=(0,a.useMemo)((()=>!!V&&V.dataset.uid===String(ue)),[V,ue]),he=(0,a.useMemo)((()=>{var e={opacity:pe?.2:1};return fe&&q===f.inside&&(e={boxShadow:A,background:"rgba(255, 255, 255, 0.1)"}),Object.assign({},e)}),[fe,pe,q]),ve=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),oe(!0),ae((e=>!e))}),[]),ge=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation()}),[]),me=(0,a.useCallback)((e=>{var t;if(!y)return null==O||null===(t=O(s))||void 0===t?void 0:t();ve(e)}),[O,ve,y,s]);(0,a.useEffect)((()=>{ne&&(null==_||_(null==K?void 0:K(s),re))}),[ne,re,K,s,_]);var be=R&&!b&&!Z;return Z&&j&&!s.matched?null:i().createElement(i().Fragment,null,fe&&(H||1!==h)&&ee===f.top&&i().createElement(N,{style:{marginLeft:X}}),i().createElement("li",(0,o.A)({draggable:$,onDragStart:e=>U(e,s),"data-uid":ue,"data-level":h,style:he},y?{"data-container":y}:{}),i().createElement(w,(0,o.A)({tabIndex:0,onMouseEnter:ie,onMouseLeave:le,onContextMenu:ce,onClick:me},W?{url:{pathname:(0,l.get)(s.link,"url","href"),state:{notify:!1}}}:(0,r.A)({},(0,l.pick)(s.link,["url","href"]))),i().createElement("span",{className:d()("nodeLabelRow",{active:se,hover:S&&s.key===S,matched:Z&&s.matchedSelf&&!j,fixedActions:D&&[].concat(D).some((e=>(0,l.isMatch)(s.data,e))),collapsed:be&&re,collapsible:be})},i().createElement("span",{className:d()("nodeLabel",{unreachable:s.unreachable}),style:{paddingLeft:X,color:s.labelColor},ref:de},i().createElement("span",{className:"nodeIconWrapper"},be&&i().createElement("span",{className:"collapseIcon",onClick:ve,onMouseDown:ge,title:re?"Expand":"Collapse",role:"button"},i().createElement(k,{lib:"antd",theme:"outlined",icon:re?"right":"down"})),i().createElement("span",{className:"nodeIcon"},i().createElement(k,(0,o.A)({},s.icon,{style:{fontSize:null!==(c=s.icon)&&void 0!==c&&c.imgSrc?14:null}})))),i().createElement("span",{className:"nodeName"},s.name)),i().createElement(x,{className:"nodeActionsBar",data:s.data,isFirst:g,isLast:m,actions:G,onActionClick:Q,actionsHidden:J}),s.badge&&i().createElement("span",{className:"badge"},i().createElement(k,s.badge)))),b||i().createElement(L,{nodes:s.children,level:h+1})),fe&&(H||1!==h)&&ee===f.bottom&&i().createElement(N,{style:{marginLeft:X}}))}},9406:(e,t,n)=>{"use strict";n.d(t,{N:()=>r,o:()=>a});var o=n(8769),r=(0,o.createContext)({});function a(){return(0,o.useContext)(r)}},675:(e,t,n)=>{"use strict";function o(e,t){switch(typeof e){case"string":return e.toLowerCase().includes(t);case"boolean":case"number":return String(e).includes(t);case"object":return null===e?"null".includes(t):(Array.isArray(e)?e:Object.entries(e).flat()).some((e=>o(e,t)));default:return!1}}n.d(t,{U:()=>o})},6275:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(6758),r=n.n(o),a=n(935),i=n.n(a)()(r());i.push([e.id,".actionsBar{display:flex;align-items:center;padding:0 3px}.action{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:5px}.action:hover{color:#fff;background-color:rgba(90,93,94,0.31)}.action{color:#c5c5c5}.disabled,\n.disabled:hover{color:var(--color-disabled-text);cursor:not-allowed;background-color:initial}",""]);const l=i.toString()},7995:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(6758),r=n.n(o),a=n(935),i=n.n(a)()(r());i.push([e.id,':host-context(html[data-theme="light"]),\n:host-context(html[data-override-theme="light"]){--search-box-background:#fff;--node-color:#595959;--node-color-focus:#595959;--node-background-active:#e0eeff;--node-background-focus:#e0eeff;--node-icon-background-hover:#fff}:host-context(html[data-theme="dark-v2"]),\n:host-context(html[data-override-theme="dark-v2"]){--search-box-background:#181818;--node-color:#c5c5c5;--node-color-focus:#fff;--node-background-active:rgba(255,255,255,0.08);--node-background-focus:#1a7aff;--node-icon-background-hover:rgba(90,93,94,0.31)}.searchBox{position:-webkit-sticky;position:sticky;top:0;background-color:var(--search-box-background);padding:5px 10px 10px;z-index:1}.searchBox .filter-input-wrapper{background-color:var(--search-box-background);border:1px solid rgba(255,255,255,0.2);position:relative;width:100%;min-width:0;padding:2px 7px;color:var(--antd-input-color);font-size:14px;line-height:1.5715;display:inline-flex;border-radius:3px;transition:all 0.3s;box-sizing:border-box}.searchBox .filter-input-wrapper.focus{background-color:var(--search-box-background);border:1px solid rgba(255,255,255,0.2);border-right-width:1px!important;outline:0;box-shadow:0 0 0 2px rgba(0,113,235,0.2)}.searchBox .filter-input-wrapper input{text-overflow:ellipsis;border:none;outline:none;border-radius:3px;background-color:var(--search-box-background);box-sizing:border-box;margin:0;padding:0;color:var(--antd-text-color);font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;width:100%;min-width:0;color:var(--antd-input-color);font-size:14px;line-height:1.5715;background-image:none;transition:all 0.3s}.prefix{margin-right:4px}.suffix{margin-left:4px}.searchBox .prefix,\n.searchBox .suffix{display:flex;flex:none;align-items:center}.clear-button{cursor:pointer}.tree{list-style:none;margin:0;padding:0}.placeholder{color:var(--antd-input-placeholder-color);padding:0 15px}.nodeLabelRow{display:flex;cursor:pointer;height:22px;padding-right:10px}.nodeLabelRow:hover,\n.nodeLabelRow.hover{background-color:rgba(255,255,255,0.12)}.nodeLabelRow:focus{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:var(--node-background-focus)}.nodeLabelRow.active:focus{background-color:var(--node-background-focus)}.nodeLabel{display:flex;align-items:center;min-width:0;flex:1}.unreachable{opacity:0.3}.nodeAction,\n.nodeAction:hover,\n.nodeLabelRow .nodeLabel{color:var(--node-color)}.nodeLabelRow:focus .nodeLabel{color:var(--node-color-focus)}.nodeLabelRow.matched .nodeLabel{color:var(--palette-orange-6)}.nodeLabelRow.active{background-color:var(--node-background-active)}.nodeIconWrapper{display:flex;width:24px;flex-shrink:0}.nodeIcon,\n.collapseIcon{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:5px;font-size:13px}.collapseIcon{display:none}.nodeLabelRow.collapsed .nodeIcon,\n.nodeLabelRow.collapsible .nodeIconWrapper:hover .nodeIcon{display:none}.nodeLabelRow.collapsed .collapseIcon,\n.nodeLabelRow.collapsible .nodeIconWrapper:hover .collapseIcon{display:flex}.nodeLabelRow.collapsible .nodeIcon:hover,\n.nodeLabelRow.collapsible .collapseIcon:hover{background-color:var(--node-icon-background-hover)}.nodeName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nodeLabelRow:not(:hover, .fixedActions) .nodeActionsBar{display:none}.badge{margin:0 3px}.collapsed + .tree{display:none}.hightlight{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:#fcd93f}',""]);const l=i.toString()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(i[c]=!0)}for(var s=0;s<e.length;s++){var d=[].concat(e[s]);o&&i[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),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3373:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},2740:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(7545),r=n(6902);function a(e,t,n){"symbol"==(0,o.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var i=n(1369);function l(e,t,n,l,c,s){var d,u,p,f,h,v,g,m=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,x=Object.create,y=[x(null),x(null)],w=t.length;function k(t,n,o){return function(r,a){n&&(a=r,r=e);for(var i=0;i<t.length;i++)a=t[i].apply(r,o?[a]:[]);return o?a:r}}function E(e,t,n,o){if("function"!=typeof e&&(o||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(o?"":" or undefined"));return e}function A(e,t,n,r,i,l,c,s,p,f,h){function v(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(t[0]),m=t[3],x=!c,w=1===i,A=3===i,C=4===i,S=2===i;function L(t,n,o){return function(r,a){return n&&(a=r,r=e),o&&o(r),N[t].call(r,a)}}if(!x){var N={},I=[],M=A?"get":C||w?"set":"value";if(p?(f||w?N={get:a((function(){return m(this)}),r,"get"),set:function(e){t[4](this,e)}}:N[M]=m,f||a(N[M],r,S?"":M)):f||(N=Object.getOwnPropertyDescriptor(e,r)),!f&&!p){if((u=y[+s][r])&&7!=(u^i))throw Error("Decorating two elements with the same name ("+N[M].name+") is not supported yet");y[+s][r]=i<3?1:i}}for(var j=e,D=g.length-1;D>=0;D-=n?2:1){var R=E(g[D],"A decorator","be",!0),B=n?g[D-1]:void 0,P={},O={kind:["field","accessor","method","getter","setter","class"][i],name:r,metadata:d,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");E(t,"An initializer","be",!0),l.push(t)}.bind(null,P)};if(x)u=R.call(B,j,O),P.v=1,E(u,"class decorators","return")&&(j=u);else if(O.static=s,O.private=p,u=O.access={has:p?h.bind():function(e){return r in e}},C||(u.get=p?S?function(e){return v(e),N.value}:L("get",0,v):function(e){return e[r]}),S||A||(u.set=p?L("set",0,v):function(e,t){e[r]=t}),j=R.call(B,w?{get:N.get,set:N.set}:N[M],O),P.v=1,w){if("object"==(0,o.A)(j)&&j)(u=E(j.get,"accessor.get"))&&(N.get=u),(u=E(j.set,"accessor.set"))&&(N.set=u),(u=E(j.init,"accessor.init"))&&I.unshift(u);else if(void 0!==j)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(j,(f?"field":"method")+" decorators","return")&&(f?I.unshift(j):N[M]=j)}return i<2&&c.push(k(I,s,1),k(l,s,0)),f||x||(p?w?c.splice(-1,0,L("get",s),L("set",s)):c.push(S?N[M]:E.call.bind(N[M])):b(e,r,N)),j}function C(e){return b(e,m,{configurable:!0,enumerable:!0,value:d})}return void 0!==s&&(d=s[m]),d=x(null==d?null:d),h=[],v=function(e){e&&h.push(k(e))},g=function(t,o){for(var a=0;a<n.length;a++){var l=n[a],s=l[1],d=7&s;if((8&s)==t&&!d==o){var u=l[2],v=!!l[3],g=16&s;A(t?e:e.prototype,l,g,v?"#"+u:(0,i.A)(u),d,d<2?[]:t?f=f||[]:p=p||[],h,!!t,v,o,t&&v?function(t){return(0,r.A)(t)===e}:c)}}},g(8,0),g(0,0),g(8,1),g(0,1),v(p),v(f),u=h,w||C(e),{e:u,get c(){var n=[];return w&&[C(e=A(e,[t],l,e.name,5,n)),k(n,1)]}}}},2559:(e,t,n)=>{"use strict";function o(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")}n.d(t,{A:()=>o})},6902:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(7545);function r(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,o.A)(e):"null"));return e}},2016:(e,t,n)=>{"use strict";function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>o})},829:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2559);function r(e,t){return e.get((0,o.A)(e,t))}},918:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2016);function r(e,t,n){(0,o.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2559);function r(e,t,n){return e.set((0,o.A)(e,t),n),n}},5536:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2559);function r(e,t,n){return n((0,o.A)(e,t))}},4635:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2016);function r(e,t){(0,o.A)(e,t),t.add(e)}},9575:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{A:()=>o})}}]);
|
|
3
|
-
//# sourceMappingURL=3801.477a0f99.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 7224.92a43c9e.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[7224],{7224:(e,t,a)=>{a.r(t);var n,i,o,r,s,l,c,h,d,u,p,A,b,m,v,g,E,f=a(4635),k=a(918),N=a(6902),y=a(5536),x=a(6121),w=a(829),L=a(2740),O=a(8769),R=a.n(O),I=a(3443),T=a(720),C=a(7180),M=a(9765),_=a(3373),S=a.n(_),D=(0,T.wrapBrick)("eo-icon"),{defineElement:P,property:W,event:F}=(0,I.createDecorators)(),U=new WeakMap,B=new WeakMap,K=new WeakMap,j=new WeakMap,z=new WeakSet,G=new WeakMap,V=new WeakMap,H=new WeakMap;class Y extends T.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,z),(0,k.A)(this,U,o(this)),(0,k.A)(this,B,(r(this),s(this))),(0,k.A)(this,K,(l(this),c(this))),(0,k.A)(this,j,(h(this),d(this))),(0,k.A)(this,G,(A(this),e=>{e!==this.active&&(this.active=e,(0,y.A)(z,this,u).emit(e))})),(0,k.A)(this,V,b(this)),(0,k.A)(this,H,(g(this),()=>{(0,y.A)(z,this,m).emit()}))}get titleLabel(){return(0,w.A)(U,this)}set titleLabel(e){(0,x.A)(U,this,e)}get active(){return(0,w.A)(B,this)}set active(e){(0,x.A)(B,this,e)}get badge(){return(0,w.A)(K,this)}set badge(e){(0,x.A)(K,this,e)}render(){return R().createElement(X,{titleLabel:this.titleLabel,active:this.active,badge:this.badge,onActiveChange:(0,w.A)(G,this),onFirstActivated:(0,w.A)(H,this)})}}function X(e){var{titleLabel:t,active:a,badge:n,onActiveChange:i,onFirstActivated:o}=e,[r,s]=(0,O.useState)(a),[l,c]=(0,O.useState)(!1);(0,O.useEffect)((()=>{s(a)}),[a]),(0,O.useEffect)((()=>{null==i||i(r)}),[r,i]);var h=(0,O.useCallback)((()=>{s((e=>!e)),l||r||(c(!0),null==o||o())}),[l,r,o]),d=(0,O.useRef)(),[u,p]=(0,O.useState)(!1),A=(0,O.useMemo)((()=>{return e=()=>{p(d.current.scrollTop>0)},n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t&&a(),t=requestAnimationFrame((()=>{e(...i)}))},n.cancel=a=()=>cancelAnimationFrame(t),n;var e,t,a,n}),[]);return R().createElement("div",{className:S()("pane",{scrolled:u})},R().createElement("div",{className:"pane-header",tabIndex:0,onClick:h},R().createElement("div",{className:"pane-title"},R().createElement("span",{className:"title-icon"},r?R().createElement(D,{lib:"antd",theme:"outlined",icon:"down"}):R().createElement(D,{lib:"antd",theme:"outlined",icon:"right"})),R().createElement("div",{className:"title-label"},t),R().createElement("slot",{name:"title"})),R().createElement("slot",{name:"actions"}),n&&R().createElement("div",{className:"badge"},n),R().createElement("div",{className:"pane-scroll-shadow"})),R().createElement("div",{className:"pane-body custom-scrollbar-container",onScroll:A,ref:d},R().createElement("slot",null,R().createElement("div",{style:{padding:"10px 20px",color:"var(--text-color-secondary)"}},"No content"))))}n=Y,({e:[o,r,s,l,c,h,d,u,p,A,b,m,v,g],c:[E,i]}=(0,L.A)(n,[P("visual-builder.workbench-pane",{styleTexts:[C.A,M.A]})],[[W(),1,"titleLabel"],[W({type:Boolean}),1,"active"],[W({type:Number}),1,"badge"],[F({type:"active.change"}),1,"activeChangeEvent",e=>(0,w.A)(j,e),(e,t)=>(0,x.A)(j,e,t)],[F({type:"active.firstActivated"}),1,"activeFirstActivatedEvent",e=>(0,w.A)(V,e),(e,t)=>(0,x.A)(V,e,t)]],0,(e=>H.has((0,N.A)(e))),T.ReactNextElement)),i();var q,J,$,Q,Z,ee=a(4586),te=a(2150),{defineElement:ae,property:ne}=(0,I.createDecorators)(),ie=new WeakMap,oe=new WeakMap,re=new WeakMap,se=new WeakMap;class le extends T.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,ie,$(this)),(0,k.A)(this,oe,(Q(this),()=>{var e;return null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])")})),(0,k.A)(this,re,(()=>{var e=(0,w.A)(oe,this).call(this).assignedNodes();for(var t of e){var a;t.active?t.style.flex=String(null!==(a=t.activeFlex)&&void 0!==a?a:"1"):t.style.flex="initial"}})),(0,k.A)(this,se,(e=>{var t=e.target.assignedNodes();for(var a of t)a.addEventListener("active.change",(0,w.A)(re,this))})),(0,ee.A)(this,"refCallback",(()=>{(0,w.A)(re,this).call(this);var e=(0,w.A)(oe,this).call(this);null==e||e.addEventListener("slotchange",(e=>{(0,w.A)(se,this).call(this,e)}))}))}get titleLabel(){return(0,w.A)(ie,this)}set titleLabel(e){(0,x.A)(ie,this,e)}render(){return R().createElement(ce,{titleLabel:this.titleLabel,refCallback:this.refCallback})}}function ce(e){var{titleLabel:t,refCallback:a}=e;return R().createElement("div",{className:"sidebar",ref:a},R().createElement("div",{className:"title-container"},R().createElement("div",{className:"title-label"},t),R().createElement("slot",{name:"titleToolbar"})),R().createElement("div",{className:"pane-container"},R().createElement("slot",null)))}q=le,({e:[$,Q],c:[Z,J]}=(0,L.A)(q,[ae("visual-builder.workbench-sidebar",{styleTexts:[te.A]})],[[ne(),1,"titleLabel"]],0,void 0,T.ReactNextElement)),J();var he,de,ue,pe,Ae,be,me,ve,ge,Ee,fe,ke,Ne,ye=a(5292),{defineElement:xe,property:we}=(0,I.createDecorators)(),Le=(0,T.wrapBrick)("eo-link"),Oe=(0,T.wrapBrick)("eo-icon"),Re=new WeakMap,Ie=new WeakMap,Te=new WeakMap,Ce=new WeakMap,Me=new WeakMap;class _e extends T.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,Re,ue(this)),(0,k.A)(this,Ie,(pe(this),Ae(this))),(0,k.A)(this,Te,(be(this),me(this))),(0,k.A)(this,Ce,(ve(this),ge(this))),(0,k.A)(this,Me,(Ee(this),fe(this))),ke(this)}get icon(){return(0,w.A)(Re,this)}set icon(e){(0,x.A)(Re,this,e)}get to(){return(0,w.A)(Ie,this)}set to(e){(0,x.A)(Ie,this,e)}get active(){return(0,w.A)(Te,this)}set active(e){(0,x.A)(Te,this,e)}get href(){return(0,w.A)(Ce,this)}set href(e){(0,x.A)(Ce,this,e)}get target(){return(0,w.A)(Me,this)}set target(e){(0,x.A)(Me,this,e)}render(){return R().createElement(Se,{to:this.to,icon:this.icon,active:this.active,href:this.href,target:this.target})}}function Se(e){var{icon:t,to:a,active:n,href:i,target:o}=e;return R().createElement(Le,{className:S()("action",{active:n}),url:a,href:i,target:o},R().createElement(Oe,t))}he=_e,({e:[ue,pe,Ae,be,me,ve,ge,Ee,fe,ke],c:[Ne,de]}=(0,L.A)(he,[xe("visual-builder.workbench-action",{styleTexts:[ye.A]})],[[we({attribute:!1}),1,"icon"],[we(),1,"to"],[we({type:Boolean}),1,"active"],[we(),1,"href"],[we(),1,"target"]],0,void 0,T.ReactNextElement)),de();var De=a(9924),Pe=a(1201);function We(e,t,a,n){var i=[],o=[],r=[],s=0;return e.forEach((e=>{if(e.key=""===n?"".concat(s):"".concat(n,".").concat(s),function(e){return"group"===e.type}(e)||function(e,t){return Boolean("subMenu"===e.type||void 0)}(e)){var l=We(e.items,t,a,e.key);i.push(...l.selectedKeys),(l.selectedKeys.length||e.defaultExpanded)&&o.push(e.key),o.push(...l.openedKeys),r.push(...l.matchedKeys)}else if(function(e,t,a){if(!e.to)return!1;var n="object"==typeof e.to?e.to:(0,Pe.parsePath)(e.to),i=n.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),o=!!(0,De.matchPath)(t,{path:i,exact:e.exact});if(o&&e.activeMatchSearch&&(o=Fe(a,n.search)),!o&&Array.isArray(e.activeIncludes))for(var r of e.activeIncludes){var s,l=void 0,c=r.includes("?");if(c&&(l=(0,Pe.parsePath)(r)),(o=!!(0,De.matchPath)(t,{path:c?l.pathname:r,exact:!0}))&&null!==(s=l)&&void 0!==s&&s.search&&(o=Fe(a,l.search)),o)break}if(o&&Array.isArray(e.activeExcludes))for(var h of e.activeExcludes)if(!(o=!(0,De.matchPath)(t,{path:h,exact:!0})))break;return o}(e,t,a)){i.push(String(e.key));for(var c=e.key.split("."),h=0;h<c.length;h++)r.push(c.slice(0,h+1).join("."))}s+=1})),i.length&&""!==n&&o.push(n),{selectedKeys:i,openedKeys:o,matchedKeys:r}}function Fe(e,t){var a=new URLSearchParams(e),n=new URLSearchParams(t);for(var[i,o]of n.entries()){var r;if((null!==(r=a.get(i))&&void 0!==r?r:"")!==o)return!1}return!0}var Ue,Be,Ke,je,ze,Ge,Ve,He,Ye=a(3430),Xe=(0,T.wrapBrick)("visual-builder.workbench-action"),{defineElement:qe,property:Je}=(0,I.createDecorators)(),$e=new WeakMap,Qe=new WeakMap;class Ze extends T.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,$e,Ke(this)),(0,k.A)(this,Qe,(je(this),ze(this))),Ge(this)}get appId(){return(0,w.A)($e,this)}set appId(e){(0,x.A)($e,this,e)}get menu(){return(0,w.A)(Qe,this)}set menu(e){(0,x.A)(Qe,this,e)}render(){return R().createElement(tt,{appId:this.appId,menu:this.menu})}}Ue=Ze,({e:[Ke,je,ze,Ge],c:[Ve,Be]}=(0,L.A)(Ue,[qe("visual-builder.workbench-action-list",{styleTexts:[Ye.A]})],[[Je(),1,"appId"],[Je({attribute:!1}),1,"menu"]],0,void 0,T.ReactNextElement)),Be();var et=new Map;function tt(e){var t,{appId:a,menu:n}=e,i=(0,De.getHistory)(),[o,r]=(0,O.useState)(),[s,l]=(0,O.useState)(i.location);return(0,O.useEffect)((()=>{var e=i.listen((e=>{l(e)}));return e}),[i]),(0,O.useEffect)((()=>{He||(He=a),He!==a&&(et.clear(),He=a)}),[a]),(0,O.useEffect)((()=>{var e,{pathname:t,search:a}=s,{selectedKeys:i}=We(null!==(e=null==n?void 0:n.menuItems)&&void 0!==e?e:[],t,a,"");r(Number(i[0]))}),[n,s]),R().createElement("div",{className:"workBenchActionList"},null==n||null===(t=n.menuItems)||void 0===t?void 0:t.map(((e,t)=>{if((e=>"default"===e.type||!e.type)(e)){var a=e.to;return o!==t&&et.has(t)&&(a=et.get(t)),R().createElement(Xe,{key:t,icon:e.icon,to:a,href:e.href,target:e.target,active:o===t,onClick:()=>(e=>{e.href||et.set(o,"".concat(s.pathname).concat(s.search))})(e)})}})).filter(Boolean))}var at,nt,it,ot,rt,st,lt,ct,ht,dt,ut,pt,At,bt,mt,vt,gt,Et,ft,kt,Nt,yt,xt,wt,Lt,Ot,Rt,It,Tt,Ct,Mt,_t,St,Dt,Pt,Wt,Ft,Ut,Bt,Kt,jt,zt,Gt,Vt,Ht,Yt,Xt,qt,Jt,$t,Qt,Zt,ea,ta,aa,na,ia,oa,ra=a(1030),sa=a(4940),la=a(7758),ca=a(9406),ha=a(675),da=a(7995),ua=a(6275);function pa(e){return e.key}a(6329);var Aa,{defineElement:ba,property:ma,event:va}=(0,I.createDecorators)(),ga=new WeakMap,Ea=new WeakMap,fa=new WeakMap,ka=new WeakMap,Na=new WeakMap,ya=new WeakMap,xa=new WeakMap,wa=new WeakMap,La=new WeakMap,Oa=new WeakMap,Ra=new WeakMap,Ia=new WeakMap,Ta=new WeakMap,Ca=new WeakMap,Ma=new WeakMap,_a=new WeakMap,Sa=new WeakMap,Da=new WeakMap,Pa=new WeakMap,Wa=new WeakSet,Fa=new WeakMap,Ua=new WeakMap,Ba=new WeakMap,Ka=new WeakMap,ja=new WeakMap,za=new WeakMap,Ga=new WeakMap,Va=new WeakMap,Ha=new WeakMap;class Ya extends T.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,Wa),(0,k.A)(this,ga,it(this)),(0,k.A)(this,Ea,(ot(this),rt(this))),(0,k.A)(this,fa,(st(this),lt(this))),(0,k.A)(this,ka,(ct(this),ht(this))),(0,k.A)(this,Na,(dt(this),ut(this))),(0,k.A)(this,ya,(pt(this),At(this))),(0,k.A)(this,xa,(bt(this),mt(this))),(0,k.A)(this,wa,(vt(this),gt(this))),(0,k.A)(this,La,(Et(this),ft(this))),(0,k.A)(this,Oa,(kt(this),Nt(this))),(0,k.A)(this,Ra,(yt(this),xt(this))),(0,k.A)(this,Ia,(wt(this),Lt(this))),(0,k.A)(this,Ta,(Ot(this),Rt(this))),(0,k.A)(this,Ca,(It(this),Tt(this))),(0,k.A)(this,Ma,(Ct(this),Mt(this))),(0,k.A)(this,_a,(_t(this),St(this))),(0,k.A)(this,Sa,(Dt(this),Pt(this))),(0,k.A)(this,Da,(Wt(this),Ft(this))),(0,k.A)(this,Pa,(Ut(this),Bt(this))),(0,k.A)(this,Fa,(zt(this),e=>{(0,y.A)(Wa,this,Kt).emit(e)})),(0,k.A)(this,Ua,Gt(this)),(0,k.A)(this,Ba,(Yt(this),e=>()=>{(0,y.A)(Wa,this,Vt).emit(e.data)})),(0,k.A)(this,Ka,Xt(this)),(0,k.A)(this,ja,($t(this),e=>{(0,y.A)(Wa,this,qt).emit(e)})),(0,k.A)(this,za,Qt(this)),(0,k.A)(this,Ga,(ta(this),e=>t=>{t.preventDefault(),(0,y.A)(Wa,this,Zt).emit({active:!0,node:null==e?void 0:e.data,x:t.clientX,y:t.clientY})})),(0,k.A)(this,Va,aa(this)),(0,k.A)(this,Ha,(oa(this),(e,t)=>{(0,y.A)(Wa,this,na).emit({nodeId:e,collapsed:t})}))}get nodes(){return(0,w.A)(ga,this)}set nodes(e){(0,x.A)(ga,this,e)}get actions(){return(0,w.A)(Ea,this)}set actions(e){(0,x.A)(Ea,this,e)}get actionsHidden(){return(0,w.A)(fa,this)}set actionsHidden(e){(0,x.A)(fa,this,e)}get placeholder(){return(0,w.A)(ka,this)}set placeholder(e){(0,x.A)(ka,this,e)}get isTransformName(){return(0,w.A)(Na,this)}set isTransformName(e){(0,x.A)(Na,this,e)}get searchPlaceholder(){return(0,w.A)(ya,this)}set searchPlaceholder(e){(0,x.A)(ya,this,e)}get noSearch(){return(0,w.A)(xa,this)}set noSearch(e){(0,x.A)(xa,this,e)}get activeKey(){return(0,w.A)(wa,this)}set activeKey(e){(0,x.A)(wa,this,e)}get showMatchedNodeOnly(){return(0,w.A)(La,this)}set showMatchedNodeOnly(e){(0,x.A)(La,this,e)}get matchNodeDataFields(){return(0,w.A)(Oa,this)}set matchNodeDataFields(e){(0,x.A)(Oa,this,e)}get fixedActionsFor(){return(0,w.A)(Ra,this)}set fixedActionsFor(e){(0,x.A)(Ra,this,e)}get collapsible(){return(0,w.A)(Ia,this)}set collapsible(e){(0,x.A)(Ia,this,e)}get collapsedNodes(){return(0,w.A)(Ta,this)}set collapsedNodes(e){(0,x.A)(Ta,this,e)}get allowDrag(){return(0,w.A)(Ca,this)}set allowDrag(e){(0,x.A)(Ca,this,e)}get allowDragToRoot(){return(0,w.A)(Ma,this)}set allowDragToRoot(e){(0,x.A)(Ma,this,e)}get allowDragToInside(){return(0,w.A)(_a,this)}set allowDragToInside(e){(0,x.A)(_a,this,e)}get nodeKey(){return(0,w.A)(Sa,this)}set nodeKey(e){(0,x.A)(Sa,this,e)}get skipNotify(){return(0,w.A)(Da,this)}set skipNotify(e){(0,x.A)(Da,this,e)}render(){return R().createElement(sa.e.Provider,{value:{actions:this.actions,actionsHidden:this.actionsHidden,onActionClick:(0,w.A)(Fa,this)}},R().createElement(ca.N.Provider,{value:{activeKey:this.activeKey,basePaddingLeft:5,showMatchedNodeOnly:this.showMatchedNodeOnly,isTransformName:this.isTransformName,fixedActionsFor:this.fixedActionsFor,nodeKey:this.nodeKey,collapsible:this.collapsible,collapsedNodes:this.collapsedNodes,getCollapsedId:pa,onNodeToggle:(0,w.A)(Ha,this),skipNotify:this.skipNotify,clickFactory:(0,w.A)(Ba,this),contextMenuFactory:(0,w.A)(Ga,this),matchNode:(e,t)=>{var a;return(0,ha.U)(e.name,t)||!(null===(a=this.matchNodeDataFields)||void 0===a||!a.length)&&(0,ha.U)("*"===this.matchNodeDataFields?e.data:(0,ra.pick)(e.data,this.matchNodeDataFields),t)}}},R().createElement(la.cU,{nodes:this.nodes,placeholder:this.placeholder,searchPlaceholder:this.searchPlaceholder,noSearch:this.noSearch,dropEmit:(0,w.A)(ja,this),allowDrag:this.allowDrag,allowDragToInside:this.allowDragToInside,allowDragToRoot:this.allowDragToRoot})))}}at=Ya,({e:[it,ot,rt,st,lt,ct,ht,dt,ut,pt,At,bt,mt,vt,gt,Et,ft,kt,Nt,yt,xt,wt,Lt,Ot,Rt,It,Tt,Ct,Mt,_t,St,Dt,Pt,Wt,Ft,Ut,Bt,Kt,jt,zt,Gt,Vt,Ht,Yt,Xt,qt,Jt,$t,Qt,Zt,ea,ta,aa,na,ia,oa],c:[Aa,nt]}=(0,L.A)(at,[ba("visual-builder.workbench-tree",{styleTexts:[da.A,ua.A]})],[[ma({attribute:!1}),1,"nodes"],[ma({attribute:!1}),1,"actions"],[ma({type:Boolean}),1,"actionsHidden"],[ma(),1,"placeholder"],[ma({type:Boolean}),1,"isTransformName"],[ma(),1,"searchPlaceholder"],[ma({type:Boolean}),1,"noSearch"],[ma({attribute:!1}),1,"activeKey"],[ma({type:Boolean}),1,"showMatchedNodeOnly"],[ma({attribute:!1}),1,"matchNodeDataFields"],[ma({attribute:!1}),1,"fixedActionsFor"],[ma({type:Boolean}),1,"collapsible"],[ma({attribute:!1}),1,"collapsedNodes"],[ma({type:Boolean}),1,"allowDrag"],[ma({type:Boolean}),1,"allowDragToRoot"],[ma({type:Boolean}),1,"allowDragToInside"],[ma({type:String}),1,"nodeKey"],[ma({type:Boolean}),1,"skipNotify"],[va({type:"action.click"}),1,"actionClickEvent",e=>(0,w.A)(Pa,e),(e,t)=>(0,x.A)(Pa,e,t)],[va({type:"node.click"}),1,"nodeClickEvent",e=>(0,w.A)(Ua,e),(e,t)=>(0,x.A)(Ua,e,t)],[va({type:"node.drop"}),1,"nodeDropEvent",e=>(0,w.A)(Ka,e),(e,t)=>(0,x.A)(Ka,e,t)],[va({type:"context.menu"}),1,"nodeContextMenuEvent",e=>(0,w.A)(za,e),(e,t)=>(0,x.A)(za,e,t)],[va({type:"node.toggle"}),1,"nodeToggleEvent",e=>(0,w.A)(Va,e),(e,t)=>(0,x.A)(Va,e,t)]],0,(e=>Ha.has((0,N.A)(e))),T.ReactNextElement)),nt();var Xa=a(244),qa=a(9027);a(6788),customElements.define("visual-builder.inject-preview-agent",(0,Xa.createProviderClass)((function(e,t){return(0,qa.A)(e,t)})));var Ja,$a,Qa,Za,en,tn,an,nn,on,rn,sn,ln,cn,hn,dn,un,pn,An,bn=a(9740),mn=a(155),vn=a.n(mn),gn=a(1361),En=a(5502),fn=function(e){return e.LOAD_MORE="LOAD_MORE",e.LOADING="LOADING",e.NO_DATA="NO_DATA",e.NODE="NODE",e.ADD="ADD",e.EDIT="EDIT",e.DELETE="DELETE",e.IMPORT="IMPORT",e.CLONE="CLONE",e.APPEND_RELATION="APPEND_RELATION",e.UPDATE_RELATION="UPDATE_RELATION",e.REMOVE_RELATION="REMOVE_RELATION",e.ROLLBACK="ROLLBACK",e.ROLLBACK_ALL="ROLLBACK_ALL",e.ADD_FULL="ADD_FULL",e.EDIT_FULL="EDIT_FULL",e.DELETE_FULL="DELETE_FULL",e.IMPORT_FULL="IMPORT_FULL",e.CLONE_FULL="CLONE_FULL",e.APPEND_RELATION_FULL="APPEND_RELATION_FULL",e.UPDATE_RELATION_FULL="UPDATE_RELATION_FULL",e.REMOVE_RELATION_FULL="REMOVE_RELATION_FULL",e.ROLLBACK_FULL="ROLLBACK_FULL",e.ROLLBACK_ALL_FULL="ROLLBACK_ALL_FULL",e.PROJECT="PROJECT",e.USER="USER",e.PERMISSION="PERMISSION",e.BRICK="BRICK",e.ROUTE="ROUTE",e.TEMPLATE="TEMPLATE",e.SNIPPET="SNIPPET",e.I18N="I18N",e.IMAGE="IMAGE",e.FUNCTION="FUNCTION",e.MENU="MENU",e.MENU_ITEM="MENU_ITEM",e.WORKFLOW="WORKFLOW",e}({}),kn="bricks/visual-builder/workbench-history-action",Nn=a(6330),yn=a(5381),xn=function(){var e=(0,Nn.A)((function*(e,t,a){return(yield yn.http.get("api/gateway/next_builder.workspace.GetChangeHistory/api/v1/next-builder/workspace/".concat(e,"/changes"),(0,bn.A)((0,bn.A)({},a),{},{params:t}))).data}));return function(t,a,n){return e.apply(this,arguments)}}(),wn=a(8799),Ln={add:"".concat(kn,":").concat(fn.ADD),edit:"".concat(kn,":").concat(fn.EDIT),delete:"".concat(kn,":").concat(fn.DELETE),batch_delete:"".concat(kn,":").concat(fn.DELETE),import:"".concat(kn,":").concat(fn.IMPORT),clone:"".concat(kn,":").concat(fn.CLONE),append_relation:"".concat(kn,":").concat(fn.APPEND_RELATION),update_relation:"".concat(kn,":").concat(fn.UPDATE_RELATION),remove_relation:"".concat(kn,":").concat(fn.REMOVE_RELATION),rollback:"".concat(kn,":").concat(fn.ROLLBACK),rollback_all:"".concat(kn,":").concat(fn.ROLLBACK_ALL)},On={add:"".concat(kn,":").concat(fn.ADD_FULL),edit:"".concat(kn,":").concat(fn.EDIT_FULL),delete:"".concat(kn,":").concat(fn.DELETE_FULL),batch_delete:"".concat(kn,":").concat(fn.DELETE_FULL),import:"".concat(kn,":").concat(fn.IMPORT_FULL),clone:"".concat(kn,":").concat(fn.CLONE_FULL),append_relation:"".concat(kn,":").concat(fn.APPEND_RELATION_FULL),update_relation:"".concat(kn,":").concat(fn.UPDATE_RELATION_FULL),remove_relation:"".concat(kn,":").concat(fn.REMOVE_RELATION_FULL),rollback:"".concat(kn,":").concat(fn.ROLLBACK_FULL),rollback_all:"".concat(kn,":").concat(fn.ROLLBACK_ALL_FULL)},Rn={project:"".concat(kn,":").concat(fn.PROJECT),userGroup:"".concat(kn,":").concat(fn.USER),permission:"".concat(kn,":").concat(fn.PERMISSION),brick:"".concat(kn,":").concat(fn.BRICK),route:"".concat(kn,":").concat(fn.ROUTE),template:"".concat(kn,":").concat(fn.TEMPLATE),snippet:"".concat(kn,":").concat(fn.SNIPPET),i18n:"".concat(kn,":").concat(fn.I18N),image:"".concat(kn,":").concat(fn.IMAGE),function:"".concat(kn,":").concat(fn.FUNCTION),menu:"".concat(kn,":").concat(fn.MENU),menuItem:"".concat(kn,":").concat(fn.MENU_ITEM),workflow:"".concat(kn,":").concat(fn.WORKFLOW)},In={PROJECT_MICRO_APP:"".concat(kn,":").concat(fn.PROJECT),"MICRO_APP_USER_GROUP@EASYOPS":"".concat(kn,":").concat(fn.USER),MICRO_APP_RESOURCE_PERMISSION:"".concat(kn,":").concat(fn.PERMISSION),STORYBOARD_BRICK:"".concat(kn,":").concat(fn.BRICK),STORYBOARD_ROUTE:"".concat(kn,":").concat(fn.ROUTE),STORYBOARD_TEMPLATE:"".concat(kn,":").concat(fn.TEMPLATE),STORYBOARD_SNIPPET:"".concat(kn,":").concat(fn.SNIPPET),STORYBOARD_I18N:"".concat(kn,":").concat(fn.I18N),MICRO_APP_RESOURCE_IMAGE:"".concat(kn,":").concat(fn.IMAGE),STORYBOARD_FUNCTION:"".concat(kn,":").concat(fn.FUNCTION),MICRO_APP_RESOURCE_MENU:"".concat(kn,":").concat(fn.MENU),MICRO_APP_RESOURCE_MENU_ITEM:"".concat(kn,":").concat(fn.MENU_ITEM),"WORKFLOW_DEF@EASYOPS":"".concat(kn,":").concat(fn.WORKFLOW)};function Tn(e){var t,a,n,i,o,r,s,l,c,h,d,u,p,A,b,m,v,g="rollback"!==e.action||e.rollBackIdInfo?e.action:"rollback_all",E=wn.i18n.t(null!==(t=Rn[e.category])&&void 0!==t?t:e.category),f=wn.i18n.t(null!==(a=Ln[g])&&void 0!==a?a:g),k=wn.i18n.t(null!==(n=In[null===(i=e.abstract)||void 0===i?void 0:i.leftObjectId])&&void 0!==n?n:null===(o=e.abstract)||void 0===o?void 0:o.leftObjectId),N=wn.i18n.t(null!==(r=In[null===(s=e.abstract)||void 0===s?void 0:s.rightObjectId])&&void 0!==r?r:null===(l=e.abstract)||void 0===l?void 0:l.rightObjectId),y=Cn(null===(c=e.abstract)||void 0===c?void 0:c.nodes,null===(h=e.abstract)||void 0===h?void 0:h.nodesCount),x=Cn(null===(d=e.abstract)||void 0===d?void 0:d.leftNodes,null===(u=e.abstract)||void 0===u?void 0:u.leftNodesCount),w=Cn(null===(p=e.abstract)||void 0===p?void 0:p.rightNodes,null===(A=e.abstract)||void 0===A?void 0:A.rightNodesCount),L="rollback"===g?Tn(e.rollBackIdInfo).abstract:null;return{category:E,action:f,leftObjectId:k,rightObjectId:N,nodes:y,leftNodes:x,rightNodes:w,abstract:wn.i18n.t(null!==(b=On[g])&&void 0!==b?b:g,{category:E,nodes:y,leftNodes:x,rightNodes:w,nodeChanges:null===(m=e.abstract)||void 0===m||null===(m=m.nodeChanges)||void 0===m?void 0:m.join(", "),relationChanges:null===(v=e.abstract)||void 0===v||null===(v=v.relationChanges)||void 0===v?void 0:v.join(", "),leftObjectId:k,rightObjectId:N,rollbackAbstract:L}),rollbackAbstract:L}}function Cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ";return wn.i18n.t("".concat(kn,":").concat(fn.NODE),{nodes:e.join(a),context:t>e.length?"ellipsis":void 0,count:t})}(0,En.initializeReactI18n)(kn,{en:{LOAD_MORE:"Load more",LOADING:"Loading",NO_DATA:"No data",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }} etc., a total of {{ count }} items",ADD:"Add node",EDIT:"Edit node",DELETE:"Delete node",IMPORT:"Batch import node",CLONE:"Clone node",APPEND_RELATION:"Append Relation",UPDATE_RELATION:"Update Relation",REMOVE_RELATION:"Remove Relation",ROLLBACK:"Rollback",ROLLBACK_ALL:"Rollback all operations",ADD_FULL:"Add {{ category }} ({{ nodes }})",EDIT_FULL:"Edit {{ nodeChanges }} of {{ category }} ({{ nodes }})",DELETE_FULL:"Delete {{ category }} ({{ nodes }})",IMPORT_FULL:"Batch Import {{ category }} ({{ nodes }})",CLONE_FULL:"Clone {{ category }} ({{ nodes }})",APPEND_RELATION_FULL:"Append the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",UPDATE_RELATION_FULL:"Update the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",REMOVE_RELATION_FULL:"Remove the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",ROLLBACK_FULL:"Rollback to [{{ rollbackAbstract }}]",ROLLBACK_ALL_FULL:"Rollback all operations",PROJECT:"Project",USER:"User Group",PERMISSION:"Permission",BRICK:"Brick",ROUTE:"Route",TEMPLATE:"Template",SNIPPET:"Snippet",I18N:"I18N",IMAGE:"Image",FUNCTION:"Function",MENU:"Menu",MENU_ITEM:"Menu item",WORKFLOW:"Workflow"},zh:{LOAD_MORE:"加载更多",LOADING:"加载中",NO_DATA:"没有数据",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }}等共{{ count }}项",ADD:"新增节点",EDIT:"编辑节点",DELETE:"删除节点",IMPORT:"批量导入节点",CLONE:"克隆节点",APPEND_RELATION:"添加关系",UPDATE_RELATION:"更新关系",REMOVE_RELATION:"移除关系",ROLLBACK:"回滚",ROLLBACK_ALL:"回滚全部操作",ADD_FULL:"新增{{ category }}({{ nodes }})",EDIT_FULL:"编辑{{ category }}({{ nodes }})的 {{ nodeChanges }}",DELETE_FULL:"删除{{ category }}({{ nodes }})",IMPORT_FULL:"批量导入{{ category }}({{ nodes }})",CLONE_FULL:"克隆{{ category }}({{ nodes }})",APPEND_RELATION_FULL:"添加{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",UPDATE_RELATION_FULL:"更新{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",REMOVE_RELATION_FULL:"移除{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",ROLLBACK_FULL:"回滚到【{{ rollbackAbstract }}】",ROLLBACK_ALL_FULL:"回滚全部操作",PROJECT:"项目",USER:"用户组",PERMISSION:"权限点",BRICK:"构件",ROUTE:"路由",TEMPLATE:"模版",SNIPPET:"片段",I18N:"国际化",IMAGE:"图片",FUNCTION:"函数",MENU:"菜单",MENU_ITEM:"菜单项",WORKFLOW:"工作流"}});var Mn,{defineElement:_n,property:Sn,event:Dn}=(0,I.createDecorators)(),Pn=(0,T.wrapBrick)("eo-button"),Wn=(0,T.wrapBrick)("eo-link"),Fn=(0,T.wrapBrick)("eo-icon"),Un=(0,T.wrapBrick)("eo-easyops-avatar"),Bn=(0,T.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",beforeVisibleChange:"before.visible.change"}),Kn=new WeakMap,jn=new WeakMap,zn=new WeakMap,Gn=new WeakSet,Vn=new WeakMap,Hn=new WeakMap,Yn=new WeakMap,Xn=new WeakMap,qn=new WeakMap;class Jn extends T.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,Gn),(0,k.A)(this,Kn,Qa(this)),(0,k.A)(this,jn,(Za(this),en(this))),(0,k.A)(this,zn,(tn(this),an(this))),(0,k.A)(this,Vn,(rn(this),e=>{(0,y.A)(Gn,this,nn).emit(e)})),(0,k.A)(this,Hn,sn(this)),(0,k.A)(this,Yn,(hn(this),e=>{(0,y.A)(Gn,this,ln).emit(e)})),(0,k.A)(this,Xn,dn(this)),(0,k.A)(this,qn,(An(this),()=>{(0,y.A)(Gn,this,un).emit()}))}get appId(){return(0,w.A)(Kn,this)}set appId(e){(0,x.A)(Kn,this,e)}get projectId(){return(0,w.A)(jn,this)}set projectId(e){(0,x.A)(jn,this,e)}render(){return R().createElement($n,{appId:this.appId,projectId:this.projectId,onHistoryItemClick:(0,w.A)(Vn,this),onRollback:(0,w.A)(Yn,this),onRollbackAll:(0,w.A)(qn,this)})}}function $n(e){var{appId:t,onHistoryItemClick:a,onRollback:n,onRollbackAll:i}=e,{t:o}=(0,En.useTranslation)(kn),[r,s]=(0,O.useState)(!1),[l,c]=(0,O.useState)(!0),[h,d]=(0,O.useState)(!1),[u,p]=(0,O.useState)([]),A=(0,O.useRef)(""),b=e=>{s(!0),xn(t,{ts:A.current,limit:20}).then((t=>{p((a=>{var n=t.list.map((e=>(0,bn.A)((0,bn.A)({},e),{},{translation:Tn(e)})));return e?n:a.concat(n)})),A.current=t.ts,d(t.list.length<20),c(t.list.length<20)})).catch((e=>{(0,De.handleHttpError)(e)})).finally((()=>{s(!1)}))};return R().createElement(Bn,{placement:"bottom",trigger:"click",arrow:!0,arrowColor:"var(--color-fill-bg-container-4)",beforeVisibleChange:e=>{e.detail&&(c(!0),d(!1),p([]),A.current="",b(!0))}},R().createElement(Pn,{slot:"anchor",shape:"circle",className:"history-action",icon:{lib:"antd",icon:"history",theme:"outlined"}}),R().createElement("div",null,R().createElement("div",{className:"history-title"},"History"),R().createElement("div",{className:"history-list"},u.length?R().createElement(R().Fragment,null,u.map(((e,t)=>R().createElement(Qn,{key:"".concat(e.uniqueKey,"-").concat(e.ts),data:e,enableRollback:0!==t&&"rollback"!==e.action,current:0===t,onHistoryItemClick:a,onRollback:n}))),!l&&R().createElement("span",{className:"load-more-container"},R().createElement(Wn,{className:"load-more",disabled:r,onClick:()=>b()},o(fn.LOAD_MORE))),h&&R().createElement("span",{className:"end-container"},"The End",R().createElement(Fn,{className:"rollback-all",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>i()}))):R().createElement("div",{className:"empty"},o(r?fn.LOADING:fn.NO_DATA))),R().createElement("slot",null)))}function Qn(e){var{data:t,enableRollback:a,current:n,onHistoryItemClick:i,onRollback:o}=e,r=vn()(Number(t.ts)/1e6),s=vn().duration(r.diff(vn()())),l=s.days()<=-1?r.format("YYYY-MM-DD HH:mm:ss"):s.humanize(!0,{ss:0,s:60,m:60,h:24});return R().createElement("div",{className:"item-container"},R().createElement("div",{className:"item-title"},R().createElement("div",{className:"title-left",onClick:()=>i((0,bn.A)((0,bn.A)({},t),{},{enableRollback:a}))},R().createElement("div",{className:"topic",title:t.translation.abstract},t.translation.abstract),n&&R().createElement("div",{className:"branch"},"(current)")),R().createElement("div",{className:"title-right"},a&&R().createElement(Fn,{className:"rollback",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>o(t)}))),R().createElement("div",{className:"item-info"},R().createElement(Un,{className:"avatar",nameOrInstanceId:t.user,size:"xs"}),R().createElement("div",{className:"time"},l),R().createElement("div",{className:"operator"},t.user)))}Ja=Jn,({e:[Qa,Za,en,tn,an,nn,on,rn,sn,ln,cn,hn,dn,un,pn,An],c:[Mn,$a]}=(0,L.A)(Ja,[_n("visual-builder.workbench-history-action",{styleTexts:[gn.A]})],[[Sn(),1,"appId"],[Sn(),1,"projectId"],[Dn({type:"history.item.click"}),1,"historyItemClickEvent",e=>(0,w.A)(zn,e),(e,t)=>(0,x.A)(zn,e,t)],[Dn({type:"rollback"}),1,"rollbackEvent",e=>(0,w.A)(Hn,e),(e,t)=>(0,x.A)(Hn,e,t)],[Dn({type:"rollback.all"}),1,"rollbackAllEvent",e=>(0,w.A)(Xn,e),(e,t)=>(0,x.A)(Xn,e,t)]],0,(e=>qn.has((0,N.A)(e))),T.ReactNextElement)),$a();var Zn,ei,ti,ai,ni,ii,oi,ri,si,li,ci,hi,di,ui,pi,Ai,bi,mi,vi,gi,Ei,fi,ki,Ni,yi,xi,wi,Li,Oi,Ri,Ii,Ti,Ci,Mi,_i,Si,Di,Pi,Wi,Fi,Ui,Bi,Ki,ji,zi,Gi,Vi,Hi,Yi,Xi,qi,Ji,$i,Qi,Zi,eo=a(2381),{defineElement:to,property:ao,event:no}=(0,I.createDecorators)(),io=(0,T.wrapBrick)("eo-icon"),oo=(0,T.wrapBrick)("eo-tooltip"),ro=new Set,so=new WeakMap,lo=new WeakMap,co=new WeakMap,ho=new WeakMap,uo=new WeakMap,po=new WeakMap,Ao=new WeakMap,bo=new WeakMap,mo=new WeakMap,vo=new WeakSet,go=new WeakMap,Eo=new WeakMap,fo=new WeakMap,ko=new WeakMap,No=new WeakMap,yo=new WeakMap,xo=new WeakMap,wo=new WeakMap,Lo=new WeakMap,Oo=new WeakMap,Ro=new WeakMap,Io=new WeakMap,To=new WeakMap,Co=new WeakMap,Mo=new WeakMap,_o=new WeakMap,So=new WeakMap;class Do extends T.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,vo),(0,k.A)(this,so,ti(this)),(0,k.A)(this,lo,(ai(this),ni(this))),(0,k.A)(this,co,(ii(this),oi(this))),(0,k.A)(this,ho,(ri(this),si(this))),(0,k.A)(this,uo,(li(this),ci(this))),(0,k.A)(this,po,(hi(this),di(this))),(0,k.A)(this,Ao,(ui(this),pi(this))),(0,k.A)(this,bo,(Ai(this),bi(this))),(0,k.A)(this,mo,(mi(this),vi(this))),(0,k.A)(this,go,(fi(this),e=>{(0,y.A)(vo,this,gi).emit(e)})),(0,k.A)(this,Eo,ki(this)),(0,k.A)(this,fo,(xi(this),e=>{(0,y.A)(vo,this,Ni).emit(e)})),(0,k.A)(this,ko,wi(this)),(0,k.A)(this,No,(Ri(this),()=>{(0,y.A)(vo,this,Li).emit()})),(0,k.A)(this,yo,Ii(this)),(0,k.A)(this,xo,(Mi(this),()=>{(0,y.A)(vo,this,Ti).emit()})),(0,k.A)(this,wo,_i(this)),(0,k.A)(this,Lo,(Pi(this),e=>{(0,y.A)(vo,this,Si).emit(e)})),(0,k.A)(this,Oo,Wi(this)),(0,k.A)(this,Ro,(Bi(this),()=>{(0,y.A)(vo,this,Fi).emit()})),(0,k.A)(this,Io,Ki(this)),(0,k.A)(this,To,(Gi(this),e=>{(0,y.A)(vo,this,ji).emit(e)})),(0,k.A)(this,Co,Vi(this)),(0,k.A)(this,Mo,(Xi(this),e=>{(0,y.A)(vo,this,Hi).emit(e)})),(0,k.A)(this,_o,qi(this)),(0,k.A)(this,So,(Qi(this),e=>{(0,y.A)(vo,this,Ji).emit(e)}))}get label(){return(0,w.A)(so,this)}set label(e){(0,x.A)(so,this,e)}get type(){return(0,w.A)(lo,this)}set type(e){(0,x.A)(lo,this,e)}get external(){return(0,w.A)(co,this)}set external(e){(0,x.A)(co,this,e)}get subNodes(){return(0,w.A)(ho,this)}set subNodes(e){(0,x.A)(ho,this,e)}get active(){return(0,w.A)(uo,this)}set active(e){(0,x.A)(uo,this,e)}get notSynced(){return(0,w.A)(po,this)}set notSynced(e){(0,x.A)(po,this,e)}get disableChildAppend(){return(0,w.A)(Ao,this)}set disableChildAppend(e){(0,x.A)(Ao,this,e)}get autoFocusOnce(){return(0,w.A)(bo,this)}set autoFocusOnce(e){(0,x.A)(bo,this,e)}render(){return R().createElement(Po,{label:this.label,type:this.type,external:this.external,subNodes:this.subNodes,autoFocusOnce:this.autoFocusOnce,onLabelEditingChange:(0,w.A)(go,this),onLabelChange:(0,w.A)(fo,this),onNodeClick:(0,w.A)(No,this),onNodeDoubleClick:(0,w.A)(xo,this),onNodeContextMenu:(0,w.A)(Lo,this),onChildAppend:(0,w.A)(Ro,this),onExternalClick:(0,w.A)(To,this),onSubNodeDoubleClick:(0,w.A)(Mo,this),onSubNodeContextMenu:(0,w.A)(So,this)})}}function Po(e){var t,{label:a,type:n,external:i,subNodes:o,autoFocusOnce:r,onLabelEditingChange:s,onLabelChange:l,onNodeClick:c,onNodeDoubleClick:h,onNodeContextMenu:d,onChildAppend:u,onExternalClick:p,onSubNodeDoubleClick:A,onSubNodeContextMenu:b}=e,m="board"===n?"board":"page",[v,g]=(0,O.useState)(a),[E,f]=(0,O.useState)(!1),k=(0,O.useRef)(!1),[N,y]=(0,O.useState)(!1),x=(0,O.useRef)(null);(0,O.useEffect)((()=>{g(a)}),[a]);var w=(0,O.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),f(!0)}),[]);(0,O.useEffect)((()=>{r&&!ro.has(r)&&(ro.add(r),setTimeout((()=>{f(!0)}),1))}),[r]),(0,O.useEffect)((()=>{var e,t;E&&(null===(e=x.current)||void 0===e||e.focus({preventScroll:!0}),null===(t=x.current)||void 0===t||t.select())}),[E]),(0,O.useEffect)((()=>{k.current?null==s||s(E):k.current=!0}),[E,s]);var L=(0,O.useCallback)((e=>{g(e.target.value)}),[]),I=(0,O.useCallback)((e=>{var t,a=e.key||e.keyCode||e.which;"Enter"!==a&&13!==a||null===(t=x.current)||void 0===t||t.blur()}),[]),T=(0,O.useCallback)((()=>{f(!1),y(!0)}),[]);(0,O.useEffect)((()=>{N&&(null==l||l(v),y(!1))}),[v,l,N]);var C=(0,O.useCallback)((e=>{e.stopPropagation(),null==u||u()}),[u]),M=(0,O.useCallback)((e=>{e.stopPropagation(),null==p||p(i)}),[i,p]),_=(0,O.useCallback)((e=>{e.stopPropagation()}),[]),D=38*Math.max(0,Math.floor((null!==(t=null==o?void 0:o.length)&&void 0!==t?t:0)-3));return R().createElement(R().Fragment,null,R().createElement("div",{className:S()("node",m,{"editing-label":E}),style:{height:"board"===m?70:130+D},onClick:c,onDoubleClick:h,onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==d||d({clientX:e.clientX,clientY:e.clientY})}},R().createElement("input",{className:"label-input",value:v,ref:x,onChange:L,onKeyDown:I,onBlur:T,onDoubleClick:_,onContextMenu:_,onMouseDown:_}),R().createElement("div",{className:"label",onDoubleClick:w,onMouseDown:_},v),"board"===m?R().createElement("div",{className:"icon-container"},R().createElement(io,{lib:"antd",icon:"unordered-list"})):R().createElement("div",{className:"thumbnail-container",style:{height:98+D}},R().createElement("div",{className:"thumbnail-placeholder"},R().createElement(io,{lib:"antd",icon:"ellipsis"})),i&&R().createElement("div",{className:"external",onClick:M,onDoubleClick:_,onMouseDown:_},R().createElement(io,{lib:"antd",icon:"desktop"}),R().createElement("span",{className:"external-label"},i.label)),null!=o&&o.length?R().createElement("div",{className:"sub-nodes"},o.map((e=>R().createElement(Wo,{key:e.id,subNode:e,onSubNodeDoubleClick:A,onSubNodeContextMenu:b})))):null)),R().createElement("div",{className:"add-button",role:"button",onClick:C,onMouseDown:_},R().createElement(io,{lib:"fa",icon:"plus"})))}function Wo(e){var{subNode:t,onSubNodeDoubleClick:a,onSubNodeContextMenu:n}=e;return R().createElement(oo,{key:t.id,content:t.label},R().createElement("div",{className:"sub-node",onDoubleClick:e=>{e.stopPropagation(),null==a||a(t)},onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==n||n({node:t,clientX:e.clientX,clientY:e.clientY})}},R().createElement("div",{className:"sub-node-skeleton-title"}),R().createElement("div",{className:"sub-node-skeleton-content"}),R().createElement("div",{className:"sub-node-skeleton-button"})))}Zn=Do,({e:[ti,ai,ni,ii,oi,ri,si,li,ci,hi,di,ui,pi,Ai,bi,mi,vi,gi,Ei,fi,ki,Ni,yi,xi,wi,Li,Oi,Ri,Ii,Ti,Ci,Mi,_i,Si,Di,Pi,Wi,Fi,Ui,Bi,Ki,ji,zi,Gi,Vi,Hi,Yi,Xi,qi,Ji,$i,Qi],c:[Zi,ei]}=(0,L.A)(Zn,[to("visual-builder.page-arch-node",{styleTexts:[eo.A]})],[[ao(),1,"label"],[ao(),1,"type"],[ao({attribute:!1}),1,"external"],[ao({attribute:!1}),1,"subNodes"],[ao({type:Boolean,render:!1}),1,"active"],[ao({type:Boolean,render:!1}),1,"notSynced"],[ao({type:Boolean,render:!1}),1,"disableChildAppend"],[ao(),1,"autoFocusOnce"],[no({type:"label.editing.change"}),1,"labelEditingChange",e=>(0,w.A)(mo,e),(e,t)=>(0,x.A)(mo,e,t)],[no({type:"label.change"}),1,"labelChange",e=>(0,w.A)(Eo,e),(e,t)=>(0,x.A)(Eo,e,t)],[no({type:"node.click"}),1,"nodeClick",e=>(0,w.A)(ko,e),(e,t)=>(0,x.A)(ko,e,t)],[no({type:"node.dblclick"}),1,"nodeDoubleClick",e=>(0,w.A)(yo,e),(e,t)=>(0,x.A)(yo,e,t)],[no({type:"node.contextmenu"}),1,"nodeContextMenu",e=>(0,w.A)(wo,e),(e,t)=>(0,x.A)(wo,e,t)],[no({type:"child.append"}),1,"childAppend",e=>(0,w.A)(Oo,e),(e,t)=>(0,x.A)(Oo,e,t)],[no({type:"external.click"}),1,"externalClick",e=>(0,w.A)(Io,e),(e,t)=>(0,x.A)(Io,e,t)],[no({type:"subNode.dblclick"}),1,"subNodeDoubleClick",e=>(0,w.A)(Co,e),(e,t)=>(0,x.A)(Co,e,t)],[no({type:"subNode.contextmenu"}),1,"subNodeContextMenu",e=>(0,w.A)(_o,e),(e,t)=>(0,x.A)(_o,e,t)]],0,(e=>So.has((0,N.A)(e))),T.ReactNextElement)),ei();var Fo,Uo,Bo,Ko,jo,zo,Go,Vo,Ho,Yo,Xo=a(4845),qo=a(6213),Jo=a(2559);function $o(e,t,a,n){return t((0,Jo.A)(e,a),n),n}var{method:Qo,property:Zo}=(0,I.createDecorators)(),er=new WeakMap,tr=new WeakSet,ar=new WeakMap,nr=new WeakMap,ir=new WeakMap,or=new WeakMap,rr=new WeakMap,sr=new WeakMap;class lr extends T.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,tr),(0,k.A)(this,er,(Uo(this),!1)),(0,k.A)(this,ar,"normal"),(0,k.A)(this,nr,!1),(0,k.A)(this,ir,Bo(this)),(0,k.A)(this,or,(Ko(this),jo(this))),(0,k.A)(this,rr,(zo(this),Go(this))),(0,k.A)(this,sr,(Vo(this),Ho(this))),Yo(this)}get isFormItemElement(){return!0}set validateState(e){$o(tr,ur,this,e),this._render()}get validateState(){return(0,y.A)(tr,this,dr)}set notRender(e){this.hidden=e,$o(tr,hr,this,e),this._render()}get notRender(){return(0,y.A)(tr,this,cr)}get $bindFormItem(){return(0,y.A)(tr,this,pr)}set $bindFormItem(e){$o(tr,Ar,this,e),this._render()}get helpBrick(){return(0,w.A)(ir,this)}set helpBrick(e){(0,x.A)(ir,this,e)}get labelBrick(){return(0,w.A)(or,this)}set labelBrick(e){(0,x.A)(or,this,e)}get labelCol(){return(0,w.A)(rr,this)}set labelCol(e){(0,x.A)(rr,this,e)}get wrapperCol(){return(0,w.A)(sr,this)}set wrapperCol(e){(0,x.A)(sr,this,e)}setNotRender(e){this.notRender=e}getFormElement(){for(var e=this;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function cr(e){return(0,w.A)(er,e)}function hr(e,t){(0,x.A)(er,e,t)}function dr(e){return(0,w.A)(ar,e)}function ur(e,t){(0,x.A)(ar,e,t)}function pr(e){return(0,w.A)(nr,e)}function Ar(e,t){(0,x.A)(nr,e,t)}Fo=lr,[Bo,Ko,jo,zo,Go,Vo,Ho,Yo,Uo]=(0,L.A)(Fo,[],[[Zo({attribute:!1}),1,"helpBrick"],[Zo({attribute:!1}),1,"labelBrick"],[Zo({attribute:!1}),1,"labelCol"],[Zo({attribute:!1}),1,"wrapperCol"],[Qo(),2,"setNotRender"],[Qo(),2,"getFormElement"]],0,void 0,T.ReactNextElement).e;var br=function(){var e=(0,Nn.A)((function*(e,t){return(yield yn.http.post("api/gateway/next_builder.contract_center.SearchContract/api/v1/contract/search",e,t)).data}));return function(t,a){return e.apply(this,arguments)}}(),mr=function(e){return e.CONTRACT_OPTIONS_TIPS_PREFIX="CONTRACT_OPTIONS_TIPS_PREFIX",e.CONTRACT_OPTIONS_TIPS_SUFFIX="CONTRACT_OPTIONS_TIPS_SUFFIX",e.CONTRACT_VALIDATE_MESSAGE="CONTRACT_VALIDATE_MESSAGE",e}({}),vr="bricks/visual-builder/contract-select",gr={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,En.initializeReactI18n)(vr,gr);var Er,fr,kr,Nr,yr,xr,wr,Lr,Or,Rr,Ir,Tr,Cr,Mr,_r,Sr,Dr=(0,T.wrapBrick)("eo-icon"),Pr=(0,T.wrapBrick)("eo-input",{onChange:"change"});function Wr(e){var{itemsCount:t=20,onBlur:a}=e,[n,i]=(0,O.useState)(t),{t:o}=(0,En.useTranslation)(vr),[r,s]=(0,O.useState)(!1);return R().createElement("div",{className:"options-tips",slot:e.slot},o(mr.CONTRACT_OPTIONS_TIPS_PREFIX)," ",r?R().createElement(Pr,{autoFocus:!0,inputStyle:{width:65},value:String(n),onBlur:()=>{s(!1),null==a||a(n)},onChange:e=>{i(Number(e.detail))}}):R().createElement("span",null,n," ",R().createElement(Dr,{icon:"edit",lib:"antd",onClick:()=>{s(!0)}}))," ",o(mr.CONTRACT_OPTIONS_TIPS_SUFFIX))}(0,En.initializeReactI18n)(vr,gr);var Fr,{defineElement:Ur,property:Br,event:Kr}=(0,I.createDecorators)(),jr=(0,T.wrapBrick)("eo-form-item"),zr=(0,T.wrapBrick)("eo-auto-complete",{onChange:"change"}),Gr=new WeakMap,Vr=new WeakMap,Hr=new WeakMap,Yr=new WeakMap,Xr=new WeakMap,qr=new WeakMap,Jr=new WeakSet;function $r(e){if("string"!=typeof e)return{name:"",version:""};var[t,a]=e.split(":");return{name:t,version:a}}function Qr(e){return/.*@.*:\d+\.\d+\.\d+/.test(e)}function Zr(e){return(0,ra.isNil)(e)||Qr(e)?"":wn.i18n.t("".concat(vr,":").concat(mr.CONTRACT_VALIDATE_MESSAGE))}function es(e){var{value:t,inputStyle:a,validateState:n,suffix:i,onChange:o}=e,[r,s]=(0,O.useState)(),[l,c]=(0,O.useState)(20),h=function(e){var{pageSize:t=20,q:a=""}=e,[n,i]=(0,O.useState)([]),[o,r]=(0,O.useState)(a),[s,l]=(0,O.useState)(t);return(0,O.useEffect)((()=>{r(a)}),[a]),(0,O.useEffect)((()=>{l(t)}),[t]),(0,O.useEffect)((()=>{(0,Nn.A)((function*(){try{var{list:e}=yield br({page:1,pageSize:s,fullContractName:o},{interceptorParams:{ignoreLoadingBar:!0}});i(e)}catch(e){console.error(e),i([])}}))()}),[o,s]),n}({q:r,pageSize:l}),[d,u]=(0,O.useState)($r(t)),[p,A]=(0,O.useState)([]);(0,O.useEffect)((()=>{u($r(t))}),[t]);var b=(0,O.useMemo)((()=>(0,ra.debounce)((e=>{s(e)}),200)),[]);return R().createElement("div",{className:"contract-wrapper"},R().createElement(zr,{className:"contract-selector",options:null==h?void 0:h.map((e=>({value:e.fullContractName,label:e.fullContractName}))),value:d.name,inputStyle:a,validateState:n,onChange:e=>{var t=e.detail;if(Qr(t))u($r(t)),null==o||o(t);else{var a,n,i=null===(a=h.find((e=>e.fullContractName===t)))||void 0===a?void 0:a.version,r=null!==(n=null==i?void 0:i[0])&&void 0!==n?n:"";A(i),u({name:t,version:r}),null==o||o("".concat(t,":").concat(r))}b(t)}},R().createElement(Wr,{onBlur:e=>c(e),slot:"options-toolbar"})),R().createElement(zr,{className:"version-selector",value:d.version,validateState:n,options:null==p?void 0:p.map((e=>({value:e,label:e}))),onChange:e=>{var t=e.detail;u({name:d.name,version:t}),null==o||o("".concat(d.name,":").concat(t))}}),null!=i&&i.useBrick?R().createElement(Xo.ReactUseMultipleBricks,i):null)}Er=class extends lr{constructor(){super(...arguments),(0,f.A)(this,Jr),(0,k.A)(this,Gr,kr(this)),(0,k.A)(this,Vr,(Nr(this),yr(this))),(0,k.A)(this,Hr,(xr(this),wr(this))),(0,k.A)(this,Yr,(Lr(this),Or(this))),(0,k.A)(this,Xr,(Rr(this),Ir(this))),(0,k.A)(this,qr,(Tr(this),Cr(this))),(0,ee.A)(this,"handleChange",(Sr(this),e=>{(0,y.A)(Jr,this,Mr).emit(e)}))}get name(){return(0,w.A)(Gr,this)}set name(e){(0,x.A)(Gr,this,e)}get required(){return(0,w.A)(Vr,this)}set required(e){(0,x.A)(Vr,this,e)}get label(){return(0,w.A)(Hr,this)}set label(e){(0,x.A)(Hr,this,e)}get value(){return(0,w.A)(Yr,this)}set value(e){(0,x.A)(Yr,this,e)}get suffix(){return(0,w.A)(Xr,this)}set suffix(e){(0,x.A)(Xr,this,e)}render(){return R().createElement(jr,{curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,labelBrick:this.labelBrick,helpBrick:this.helpBrick,notRender:this.notRender,trigger:"handleChange",validator:Zr},R().createElement(es,{value:this.value,suffix:this.suffix,validateState:this.validateState,onChange:this.handleChange}))}},({e:[kr,Nr,yr,xr,wr,Lr,Or,Rr,Ir,Tr,Cr,Mr,_r,Sr],c:[Fr,fr]}=(0,L.A)(Er,[Ur("visual-builder.contract-select",{styleTexts:[qo.A]})],[[Br(),1,"name"],[Br({type:Boolean}),1,"required"],[Br(),1,"label"],[Br({attribute:!1}),1,"value"],[Br({attribute:!1}),1,"suffix"],[Kr({type:"change"}),1,"changeEvent",e=>(0,w.A)(qr,e),(e,t)=>(0,x.A)(qr,e,t)]],0,(e=>Jr.has((0,N.A)(e))),lr)),fr();var ts,as,ns,is,os,rs,ss,ls,cs,hs=a(7236),{defineElement:ds,property:us,event:ps}=(0,I.createDecorators)(),As=(0,O.forwardRef)(fs),bs=new WeakMap,ms=new WeakMap,vs=new WeakSet,gs=new WeakMap;class Es extends T.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,vs),(0,k.A)(this,bs,ns(this)),(0,k.A)(this,ms,(is(this),os(this))),(0,k.A)(this,gs,(ls(this),e=>{(0,y.A)(vs,this,rs).emit(e)}))}get messages(){return(0,w.A)(bs,this)}set messages(e){(0,x.A)(bs,this,e)}render(){return R().createElement(As,{messages:this.messages,onStoryboardUpdate:(0,w.A)(gs,this)})}}function fs(e){var{messages:t,onStoryboardUpdate:a}=e,n=(0,O.useMemo)((()=>/(?:^|\n)```easy_cmd_vb_block_(page|storyboard)\n([\s\S]*?)\n```(?:$|\n)/gm),[]),i=(0,O.useRef)(new Map),[o,r]=(0,O.useState)([]),s=(0,O.useRef)(null);(0,O.useEffect)((()=>{var e=function(){var e,t;if("assistant"!==a.role)return 1;n.lastIndex=null!==(e=i.current.get(a.key))&&void 0!==e?e:0;for(var o=[];t=n.exec(a.content);){i.current.set(a.key,n.lastIndex);var[,s,l]=t;try{var c=JSON.parse(l);"page"===s?o.push(...c):o.push((0,bn.A)((0,bn.A)({},c),{},{type:"storyboard"}))}catch(e){console.error("parse storyboard failed:",e)}}r((e=>[...e,...o]))};for(var a of null!=t?t:[])e()}),[n,t]);var[l,c]=(0,O.useState)([]);return(0,O.useEffect)((()=>{var e=[],t=new Map;for(var a of o)"block"===a.type?e.push(a):a.storyboard&&t.set(a.uuid,a.storyboard);e.sort(((e,t)=>e.seq-t.seq));var n={brick:"eo-content-layout",children:[]},i={brick:"eo-main-view",children:[{brick:"eo-page-title",slot:"pageTitle",properties:{pageTitle:"测试页面"}}]},r=!1;for(var s of e)if("全局操作区"===s.name)for(var l of s.children){var h=t.get(l);h&&(i.children.push((0,bn.A)((0,bn.A)({},h),{},{slot:"toolbar"})),r=!0)}else{var d=t.get(s.uuid);if(d){var u=(0,bn.A)((0,bn.A)({},d),{},{children:[]});for(var p of(r=!0,n.children.push(u),s.children)){var A=t.get(p);A&&u.children.push(A)}}else if(!s.hasContainer)for(var b of s.children){var m=t.get(b);m&&(n.children.push(m),r=!0)}}i.children.push(n),c((e=>r?[i]:0===e.length?e:[]))}),[o]),(0,O.useEffect)((()=>{null==a||a(l)}),[a,l]),(0,O.useEffect)((()=>{setTimeout((()=>{var e,t;null===(e=s.current)||void 0===e||e.scrollTo(0,null===(t=s.current)||void 0===t?void 0:t.scrollHeight)}),0)}),[l]),R().createElement("div",{className:"chat",ref:s},null==t?void 0:t.map(((e,t)=>{var a;return R().createElement("p",{key:null!==(a=e.key)&&void 0!==a?a:"index-".concat(t),className:S()({failed:e.failed})},(0,ra.upperFirst)(e.role),": ",e.content,e.partial&&R().createElement(ks,null))})))}function ks(){var[e,t]=(0,O.useState)(1);return(0,O.useEffect)((()=>{setInterval((()=>{t((e=>(e+1)%4))}),500)}),[]),R().createElement(R().Fragment,null,R().createElement("span",null,".".repeat(e)),R().createElement("span",{className:"invisible-dots"},".".repeat(3-e)))}ts=Es,({e:[ns,is,os,rs,ss,ls],c:[cs,as]}=(0,L.A)(ts,[ds("visual-builder.chat-conversation",{styleTexts:[hs.A]})],[[us({attribute:!1}),1,"messages"],[ps({type:"storyboard.update"}),1,"storyboardUpdate",e=>(0,w.A)(ms,e),(e,t)=>(0,x.A)(ms,e,t)]],0,(e=>gs.has((0,N.A)(e))),T.ReactNextElement)),as();var Ns,ys,xs,ws,Ls,Os=a(1732),Rs=a(1563),{defineElement:Is,property:Ts}=(0,I.createDecorators)(),Cs=new WeakMap;class Ms extends T.ReactNextElement{constructor(){super(...arguments),(0,k.A)(this,Cs,xs(this)),ws(this)}get storyboard(){return(0,w.A)(Cs,this)}set storyboard(e){(0,x.A)(Cs,this,e)}render(){return R().createElement(_s,{storyboard:this.storyboard})}}function _s(e){var{storyboard:t}=e,a=(0,O.useRef)(),[n,i]=(0,O.useState)(!1),o=(0,O.useCallback)((()=>{var e=()=>{var t;null!==(t=a.current)&&void 0!==t&&null!==(t=t.contentWindow)&&void 0!==t&&t._preview_only_render?i(!0):setTimeout(e,100)};e()}),[]);return(0,O.useEffect)((()=>{var e;if(n){var i=null===(e=a.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;i&&i("yaml",{yaml:(0,Os.safeDump)(t,{schema:Os.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0})})}}),[n,t]),R().createElement("iframe",{ref:a,src:"".concat((0,De.getBasePath)(),"_brick-preview-v3_/preview/"),loading:"lazy",onLoad:o})}Ns=Ms,({e:[xs,ws],c:[Ls,ys]}=(0,L.A)(Ns,[Is("visual-builder.chat-preview",{styleTexts:[Rs.A]})],[[Ts({attribute:!1}),1,"storyboard"]],0,void 0,T.ReactNextElement)),ys()},7236:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.chat{height:100%;max-height:100%;overflow-y:auto;white-space:pre-wrap}.chat > p{background-color:var(--palette-gray-3);border-radius:6px;padding:1em}.chat > p:not(:last-child){margin-bottom:1em}.invisible-dots{opacity:0}.failed{color:var(--color-error)}",""]);const s=r.toString()},1563:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{display:block}:host([hidden]){display:none}iframe{display:block;border:none;margin:0;width:100%;height:100%}",""]);const s=r.toString()},6213:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.contract-wrapper{display:flex;gap:4px}.contract-selector{flex:1}.version-selector{width:100px}.options-tips{padding:0px 10px;font-weight:400;color:#999;white-space:nowrap;font-style:italic}",""]);const s=r.toString()},2381:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{--local-node-outline-style:solid;display:block}:host([hidden]){display:none}:host([not-synced]){--local-node-outline-style:dashed}*{box-sizing:border-box}.node{width:168px;max-width:none;height:130px;position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.node.board{height:70px;max-width:168px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding-bottom:4px}.label,\n.label-input{width:100%;height:24px;padding:3px;border:none;line-height:18px;font-size:var(--sub-title-font-size-small);color:var(--color-header-text);font-weight:var(--font-weight-500);text-align:center;font-family:inherit;cursor:text;-webkit-user-select:text;-moz-user-select:text;user-select:text}.label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.node.editing-label .label{height:0}.node:not(.editing-label) .label-input{display:none}.add-button,\n.icon-container,\n.thumbnail-container,\n.thumbnail-placeholder{display:flex;align-items:center;justify-content:center}.thumbnail-container{height:98px;outline:1px var(--local-node-outline-style) var(--palette-gray-4);opacity:1;border:4px solid transparent;border-radius:4px;width:100%;position:relative;flex-direction:column}.thumbnail-placeholder{color:var(--palette-gray-5);font-size:36px;flex:1}.icon-container{font-size:20px;background-color:var(--palette-teal-6);color:var(--palette-gray-4);width:36px;height:36px;border-radius:50%;outline-offset:4px}:host([active]) .thumbnail-container,\n:host([active]) .icon-container{outline:2px var(--local-node-outline-style) var(--palette-blue-3)}:host(:not([active])) .node:hover .thumbnail-container,\n:host(:not([active])) .node:hover .icon-container{outline:1px var(--local-node-outline-style) var(--palette-blue-3)}.add-button{position:absolute;bottom:-26px;left:calc(50% - 12px);width:24px;height:24px;background:var(--palette-gray-3);color:var(--palette-gray-6);border-radius:50%;cursor:pointer}:host([not-synced]) .add-button,\n:host([disable-child-append]) .add-button,\n:host(:not([active])) .add-button{display:none}.add-button:hover{background:var(--palette-blue-5);color:var(--palette-gray-2)}.external{position:absolute;top:4px;left:4px;padding:0 10px;display:flex;align-items:center;gap:6px;background:var(--palette-purple-4);font-size:12px;line-height:20px;height:22px;cursor:pointer;color:var(--palette-gray-1);border-radius:9999px;right:4px;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}.external-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.external:hover{background:var(--palette-purple-5)}.sub-nodes{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:6px;gap:6px;width:100%}.sub-node{background-color:var(--palette-gray-2);border-radius:4px;padding:6px;display:flex;flex-direction:column;justify-content:space-between;height:32px}.sub-node-skeleton-title{width:18px;height:4px;border-radius:2px;align-self:flex-start;background-color:var(--palette-gray-4)}.sub-node-skeleton-content{width:100%;height:4px;border-radius:2px;background-color:var(--palette-gray-4)}.sub-node-skeleton-button{width:18px;height:4px;border-radius:2px;align-self:flex-end;background-color:var(--palette-blue-3)}.sub-node:hover{background-color:var(--palette-gray-3)}.sub-node:hover .sub-node-skeleton-title,\n.sub-node:hover .sub-node-skeleton-content{background-color:var(--palette-gray-5)}.sub-node:hover .sub-node-skeleton-button{background-color:var(--palette-blue-4)}",""]);const s=r.toString()},9765:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,".custom-scrollbar-container{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.15) rgba(255,255,255,0.03)}.custom-scrollbar-container::-webkit-scrollbar{width:8px;height:8px;background-color:transparent;position:absolute}.custom-scrollbar-container::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0);border-radius:4px}.custom-scrollbar-container:hover::-webkit-scrollbar-track{background-color:rgba(255,255,255,0.03)}.custom-scrollbar-container:hover::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.15)}",""]);const s=r.toString()},3430:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,'.workBenchActionList{display:flex;flex-direction:column;width:-webkit-min-content;width:-moz-min-content;width:min-content;height:100%;background-color:#4297ff}:host-context(html[data-theme="dark-v2"]) .workBenchActionList,\n:host-context([data-override-theme="dark-v2"]) .workBenchActionList{background-color:#323237}',""]);const s=r.toString()},5292:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,'.action::part(link){display:flex;justify-content:center;align-items:center;width:48px;height:48px;font-size:24px;color:rgba(255,255,255,0.4);position:relative;transition:none}.action.active::part(link)::before{content:"";position:absolute;top:0;bottom:0;left:0;width:2px;background-color:white}.action.active::part(link),\n.action::part(link):hover{color:white}',""]);const s=r.toString()},1361:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,":host{display:inline-block}:host([hidden]){display:none}eo-popover::part(popup){width:800px;max-width:60vw;padding:10px;background:var(--color-fill-bg-container-4);border-radius:var(--medius-border-radius);box-shadow:var(--feedback-container-shadow);z-index:1000}.history-title{font-size:var(--title-font-size);font-weight:var(--font-weight-500);color:var(--color-strong-text);margin-bottom:5px}.history-list{max-height:500px;overflow-y:auto}.item-container{padding:10px 0;display:flex;flex-direction:column;gap:5px}.empty{padding:5px 0 10px 0;font-size:14px;color:var(--text-color-secondary);text-align:center}.item-container:not(:last-of-type){border-bottom:1px solid var(--color-border-divider-line)}.item-title{display:flex;align-items:center;justify-content:space-between;gap:5px}.title-left,\n.title-right{display:flex;align-items:center}.title-left{cursor:pointer;overflow:hidden;gap:5px}.topic{font-size:14px;color:var(--text-color-title);font-weight:var(--font-weight-500);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.branch{font-size:14px;color:var(--text-color-secondary)}.rollback{margin-right:5px;font-size:14px;color:var(--text-color-secondary);cursor:pointer}.rollback:hover{color:var(--color-brand)}.item-info{display:flex;align-items:center;gap:5px}.time,\n.operator{font-size:14px;color:var(--text-color-secondary)}.load-more-container{display:block;text-align:center}.end-container{display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px;color:var(--color-brand)}.rollback-all{cursor:pointer}",""]);const s=r.toString()},7180:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,':host{display:block;--pane-color:#595959}:host-context(html[data-theme="dark-v2"]),\n:host-context([data-override-theme="dark-v2"]){--pane-color:#ccc}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.pane{display:flex;flex-direction:column;color:var(--pane-color);height:100%}.pane-header{display:flex;align-items:center;cursor:pointer;border-top:1px solid transparent;position:relative}.pane-header:focus{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:#007fd4}:host(:not(:first-child)) .pane-header{border-top-color:rgba(204,204,204,0.2)}.pane-scroll-shadow{display:none;position:absolute;bottom:-3px;left:0;right:0;height:3px;box-shadow:#000000 0 6px 6px -6px inset;z-index:1}.scrolled .pane-scroll-shadow{display:block}.pane-title{display:flex;align-items:center;font-size:13px;line-height:24px;height:25px;min-width:0;flex:1}.title-icon{display:flex;justify-content:center;align-items:center;width:24px;padding-right:2px;line-height:1;flex-shrink:0}.title-label{text-transform:uppercase;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-body{flex-grow:1;min-height:0;display:none;overflow:hidden;overflow-y:auto;overflow-y:overlay}:host([active]) .pane-body{display:initial}:host(:not(:hover)) ::slotted([slot="actions"]){display:none}.badge{background-color:rgb(77,77,77);color:rgb(255,255,255);border-radius:11px;height:18px;padding:3px 6px;line-height:13px;margin:0 3px;font-size:12px}',""]);const s=r.toString()},2150:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6758),i=a.n(n),o=a(935),r=a.n(o)()(i());r.push([e.id,':host{--sidebar-background:#fff;--title-container-background:#fff;--title-container-color:#595959;display:block;outline-color:rgba(83,89,93,0.5);background-color:var(--sidebar-background);height:100%}:host-context(html[data-theme="dark-v2"]),\n:host-context([data-override-theme="dark-v2"]){--sidebar-background:#181818;--title-container-background:#181818;--title-container-color:rgb(187,187,187);background-color:var(--sidebar-background)}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.sidebar{display:flex;flex-direction:column;height:100%}.title-container{display:flex;padding:0 8px 8px 8px;color:var(--title-container-color);background:var(--title-container-background)}.title-label{font-weight:300;line-height:44px;padding-left:12px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-container{flex-grow:1;min-height:0;display:flex;flex-direction:column}::slotted([slot="panes"]){transition:flex 0.2s;min-height:25px}',""]);const s=r.toString()}}]);
|
|
3
|
-
//# sourceMappingURL=7224.92a43c9e.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see chat-conversation.c20e6c44.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[3555,1369,2052],{4705:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ChatConversation:()=>f,ChatConversationComponent:()=>_,LegacyChatConversationComponent:()=>R});var n,o,i,a,s,c,u,l,f,p=r(9740),d=r(4635),v=r(918),h=r(6902),b=r(5536),y=r(6121),m=r(829),g=r(2740),A=r(8769),w=r.n(A),j=r(3443),O=r(720),S=(r(6329),r(1030)),E=r(3373),k=r.n(E),x=r(7236),{defineElement:P,property:C,event:T}=(0,j.createDecorators)(),_=(0,A.forwardRef)(R),D=new WeakMap,M=new WeakMap,N=new WeakSet,z=new WeakMap;class I extends O.ReactNextElement{constructor(){super(...arguments),(0,d.A)(this,N),(0,v.A)(this,D,i(this)),(0,v.A)(this,M,(a(this),s(this))),(0,v.A)(this,z,(l(this),e=>{(0,b.A)(N,this,c).emit(e)}))}get messages(){return(0,m.A)(D,this)}set messages(e){(0,y.A)(D,this,e)}render(){return w().createElement(_,{messages:this.messages,onStoryboardUpdate:(0,m.A)(z,this)})}}function R(e){var{messages:t,onStoryboardUpdate:r}=e,n=(0,A.useMemo)((()=>/(?:^|\n)```easy_cmd_vb_block_(page|storyboard)\n([\s\S]*?)\n```(?:$|\n)/gm),[]),o=(0,A.useRef)(new Map),[i,a]=(0,A.useState)([]),s=(0,A.useRef)(null);(0,A.useEffect)((()=>{var e=function(){var e,t;if("assistant"!==r.role)return 1;n.lastIndex=null!==(e=o.current.get(r.key))&&void 0!==e?e:0;for(var i=[];t=n.exec(r.content);){o.current.set(r.key,n.lastIndex);var[,s,c]=t;try{var u=JSON.parse(c);"page"===s?i.push(...u):i.push((0,p.A)((0,p.A)({},u),{},{type:"storyboard"}))}catch(e){console.error("parse storyboard failed:",e)}}a((e=>[...e,...i]))};for(var r of null!=t?t:[])e()}),[n,t]);var[c,u]=(0,A.useState)([]);return(0,A.useEffect)((()=>{var e=[],t=new Map;for(var r of i)"block"===r.type?e.push(r):r.storyboard&&t.set(r.uuid,r.storyboard);e.sort(((e,t)=>e.seq-t.seq));var n={brick:"eo-content-layout",children:[]},o={brick:"eo-main-view",children:[{brick:"eo-page-title",slot:"pageTitle",properties:{pageTitle:"测试页面"}}]},a=!1;for(var s of e)if("全局操作区"===s.name)for(var c of s.children){var l=t.get(c);l&&(o.children.push((0,p.A)((0,p.A)({},l),{},{slot:"toolbar"})),a=!0)}else{var f=t.get(s.uuid);if(f){var d=(0,p.A)((0,p.A)({},f),{},{children:[]});for(var v of(a=!0,n.children.push(d),s.children)){var h=t.get(v);h&&d.children.push(h)}}else if(!s.hasContainer)for(var b of s.children){var y=t.get(b);y&&(n.children.push(y),a=!0)}}o.children.push(n),u((e=>a?[o]:0===e.length?e:[]))}),[i]),(0,A.useEffect)((()=>{null==r||r(c)}),[r,c]),(0,A.useEffect)((()=>{setTimeout((()=>{var e,t;null===(e=s.current)||void 0===e||e.scrollTo(0,null===(t=s.current)||void 0===t?void 0:t.scrollHeight)}),0)}),[c]),w().createElement("div",{className:"chat",ref:s},null==t?void 0:t.map(((e,t)=>{var r;return w().createElement("p",{key:null!==(r=e.key)&&void 0!==r?r:"index-".concat(t),className:k()({failed:e.failed})},(0,S.upperFirst)(e.role),": ",e.content,e.partial&&w().createElement(W,null))})))}function W(){var[e,t]=(0,A.useState)(1);return(0,A.useEffect)((()=>{setInterval((()=>{t((e=>(e+1)%4))}),500)}),[]),w().createElement(w().Fragment,null,w().createElement("span",null,".".repeat(e)),w().createElement("span",{className:"invisible-dots"},".".repeat(3-e)))}n=I,({e:[i,a,s,c,u,l],c:[f,o]}=(0,g.A)(n,[P("visual-builder.chat-conversation",{styleTexts:[x.A]})],[[C({attribute:!1}),1,"messages"],[T({type:"storyboard.update"}),1,"storyboardUpdate",e=>(0,m.A)(M,e),(e,t)=>(0,y.A)(M,e,t)]],0,(e=>z.has((0,h.A)(e))),O.ReactNextElement)),o()},7236:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6758),o=r.n(n),i=r(935),a=r.n(i)()(o());a.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.chat{height:100%;max-height:100%;overflow-y:auto;white-space:pre-wrap}.chat > p{background-color:var(--palette-gray-3);border-radius:6px;padding:1em}.chat > p:not(:last-child){margin-bottom:1em}.invisible-dots{opacity:0}.failed{color:var(--color-error)}",""]);const s=a.toString()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);n&&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),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),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=>{"use strict";e.exports=function(e){return e[1]}},3373:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},2740:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(7545),o=r(6902);function i(e,t,r){"symbol"==(0,n.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch(e){}return e}var a=r(1369);function s(e,t,r,s,c,u){var l,f,p,d,v,h,b,y=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,g=Object.create,A=[g(null),g(null)],w=t.length;function j(t,r,n){return function(o,i){r&&(i=o,o=e);for(var a=0;a<t.length;a++)i=t[a].apply(o,n?[i]:[]);return n?i:o}}function O(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function S(e,t,r,o,a,s,c,u,p,d,v){function h(e){if(!v(e))throw new TypeError("Attempted to access private element on non-instance")}var b=[].concat(t[0]),y=t[3],g=!c,w=1===a,S=3===a,E=4===a,k=2===a;function x(t,r,n){return function(o,i){return r&&(i=o,o=e),n&&n(o),P[t].call(o,i)}}if(!g){var P={},C=[],T=S?"get":E||w?"set":"value";if(p?(d||w?P={get:i((function(){return y(this)}),o,"get"),set:function(e){t[4](this,e)}}:P[T]=y,d||i(P[T],o,k?"":T)):d||(P=Object.getOwnPropertyDescriptor(e,o)),!d&&!p){if((f=A[+u][o])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+P[T].name+") is not supported yet");A[+u][o]=a<3?1:a}}for(var _=e,D=b.length-1;D>=0;D-=r?2:1){var M=O(b[D],"A decorator","be",!0),N=r?b[D-1]:void 0,z={},I={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:l,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");O(t,"An initializer","be",!0),s.push(t)}.bind(null,z)};if(g)f=M.call(N,_,I),z.v=1,O(f,"class decorators","return")&&(_=f);else if(I.static=u,I.private=p,f=I.access={has:p?v.bind():function(e){return o in e}},E||(f.get=p?k?function(e){return h(e),P.value}:x("get",0,h):function(e){return e[o]}),k||S||(f.set=p?x("set",0,h):function(e,t){e[o]=t}),_=M.call(N,w?{get:P.get,set:P.set}:P[T],I),z.v=1,w){if("object"==(0,n.A)(_)&&_)(f=O(_.get,"accessor.get"))&&(P.get=f),(f=O(_.set,"accessor.set"))&&(P.set=f),(f=O(_.init,"accessor.init"))&&C.unshift(f);else if(void 0!==_)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else O(_,(d?"field":"method")+" decorators","return")&&(d?C.unshift(_):P[T]=_)}return a<2&&c.push(j(C,u,1),j(s,u,0)),d||g||(p?w?c.splice(-1,0,x("get",u),x("set",u)):c.push(k?P[T]:O.call.bind(P[T])):m(e,o,P)),_}function E(e){return m(e,y,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[y]),l=g(null==l?null:l),v=[],h=function(e){e&&v.push(j(e))},b=function(t,n){for(var i=0;i<r.length;i++){var s=r[i],u=s[1],l=7&u;if((8&u)==t&&!l==n){var f=s[2],h=!!s[3],b=16&u;S(t?e:e.prototype,s,b,h?"#"+f:(0,a.A)(f),l,l<2?[]:t?d=d||[]:p=p||[],v,!!t,h,n,t&&h?function(t){return(0,o.A)(t)===e}:c)}}},b(8,0),b(0,0),b(8,1),b(0,1),h(p),h(d),f=v,w||E(e),{e:f,get c(){var r=[];return w&&[E(e=S(e,[t],s,e.name,5,r)),j(r,1)]}}}},2559:(e,t,r)=>{"use strict";function n(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}r.d(t,{A:()=>n})},6902:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(7545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,n.A)(e):"null"));return e}},2016:(e,t,r)=>{"use strict";function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>n})},829:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2559);function o(e,t){return e.get((0,n.A)(e,t))}},918:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2016);function o(e,t,r){(0,n.A)(e,t),t.set(e,r)}},6121:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2559);function o(e,t,r){return e.set((0,n.A)(e,t),r),r}},5536:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2559);function o(e,t,r){return r((0,n.A)(e,t))}},4635:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2016);function o(e,t){(0,n.A)(e,t),t.add(e)}},4586:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(1369);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},9740:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(4586);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},1369:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(7545);function o(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},7545:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}r.d(t,{A:()=>n})}}]);
|
|
3
|
-
//# sourceMappingURL=chat-conversation.c20e6c44.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],{44:(t,e,r)=>{r.r(e),r.d(e,{ChatPreview:()=>c,ChatPreviewComponent:()=>E});var n,o,i,a,c,u=r(918),s=r(6121),l=r(829),f=r(2740),d=r(8769),v=r.n(d),p=r(3443),h=r(720),m=(r(6329),r(9924)),b=r(1732),y=r(1563),{defineElement:g,property:w}=(0,p.createDecorators)(),A=new WeakMap;class _ extends h.ReactNextElement{constructor(){super(...arguments),(0,u.A)(this,A,i(this)),a(this)}get storyboard(){return(0,l.A)(A,this)}set storyboard(t){(0,s.A)(A,this,t)}render(){return v().createElement(E,{storyboard:this.storyboard})}}function E(t){var{storyboard:e}=t,r=(0,d.useRef)(),[n,o]=(0,d.useState)(!1),i=(0,d.useCallback)((()=>{var t=()=>{var e;null!==(e=r.current)&&void 0!==e&&null!==(e=e.contentWindow)&&void 0!==e&&e._preview_only_render?o(!0):setTimeout(t,100)};t()}),[]);return(0,d.useEffect)((()=>{var t;if(n){var o=null===(t=r.current)||void 0===t||null===(t=t.contentWindow)||void 0===t?void 0:t._preview_only_render;o&&o("yaml",{yaml:(0,b.safeDump)(e,{schema:b.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0})})}}),[n,e]),v().createElement("iframe",{ref:r,src:"".concat((0,m.getBasePath)(),"_brick-preview-v3_/preview/"),loading:"lazy",onLoad:i})}n=_,({e:[i,a],c:[c,o]}=(0,f.A)(n,[g("visual-builder.chat-preview",{styleTexts:[y.A]})],[[w({attribute:!1}),1,"storyboard"]],0,void 0,h.ReactNextElement)),o()},1563:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(6758),o=r.n(n),i=r(935),a=r.n(i)()(o());a.push([t.id,":host{display:block}:host([hidden]){display:none}iframe{display:block;border:none;margin:0;width:100%;height:100%}",""]);const c=a.toString()},935:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var c=0;c<this.length;c++){var u=this[c][0];null!=u&&(a[u]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);n&&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),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),e.push(l))}},e}},6758:t=>{t.exports=function(t){return t[1]}},2740:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(7545),o=r(6902);function i(t,e,r){"symbol"==(0,n.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:r?r+" "+e:e})}catch(t){}return t}var a=r(1369);function c(t,e,r,c,u,s){var l,f,d,v,p,h,m,b=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,g=Object.create,w=[g(null),g(null)],A=e.length;function _(e,r,n){return function(o,i){r&&(i=o,o=t);for(var a=0;a<e.length;a++)i=e[a].apply(o,n?[i]:[]);return n?i:o}}function E(t,e,r,n){if("function"!=typeof t&&(n||void 0!==t))throw new TypeError(e+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return t}function S(t,e,r,o,a,c,u,s,d,v,p){function h(t){if(!p(t))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(e[0]),b=e[3],g=!u,A=1===a,S=3===a,j=4===a,k=2===a;function C(e,r,n){return function(o,i){return r&&(i=o,o=t),n&&n(o),P[e].call(o,i)}}if(!g){var P={},T=[],x=S?"get":j||A?"set":"value";if(d?(v||A?P={get:i((function(){return b(this)}),o,"get"),set:function(t){e[4](this,t)}}:P[x]=b,v||i(P[x],o,k?"":x)):v||(P=Object.getOwnPropertyDescriptor(t,o)),!v&&!d){if((f=w[+s][o])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+P[x].name+") is not supported yet");w[+s][o]=a<3?1:a}}for(var O=t,z=m.length-1;z>=0;z-=r?2:1){var D=E(m[z],"A decorator","be",!0),R=r?m[z-1]:void 0,I={},M={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:l,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");E(e,"An initializer","be",!0),c.push(e)}.bind(null,I)};if(g)f=D.call(R,O,M),I.v=1,E(f,"class decorators","return")&&(O=f);else if(M.static=s,M.private=d,f=M.access={has:d?p.bind():function(t){return o in t}},j||(f.get=d?k?function(t){return h(t),P.value}:C("get",0,h):function(t){return t[o]}),k||S||(f.set=d?C("set",0,h):function(t,e){t[o]=e}),O=D.call(R,A?{get:P.get,set:P.set}:P[x],M),I.v=1,A){if("object"==(0,n.A)(O)&&O)(f=E(O.get,"accessor.get"))&&(P.get=f),(f=E(O.set,"accessor.set"))&&(P.set=f),(f=E(O.init,"accessor.init"))&&T.unshift(f);else if(void 0!==O)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(O,(v?"field":"method")+" decorators","return")&&(v?T.unshift(O):P[x]=O)}return a<2&&u.push(_(T,s,1),_(c,s,0)),v||g||(d?A?u.splice(-1,0,C("get",s),C("set",s)):u.push(k?P[x]:E.call.bind(P[x])):y(t,o,P)),O}function j(t){return y(t,b,{configurable:!0,enumerable:!0,value:l})}return void 0!==s&&(l=s[b]),l=g(null==l?null:l),p=[],h=function(t){t&&p.push(_(t))},m=function(e,n){for(var i=0;i<r.length;i++){var c=r[i],s=c[1],l=7&s;if((8&s)==e&&!l==n){var f=c[2],h=!!c[3],m=16&s;S(e?t:t.prototype,c,m,h?"#"+f:(0,a.A)(f),l,l<2?[]:e?v=v||[]:d=d||[],p,!!e,h,n,e&&h?function(e){return(0,o.A)(e)===t}:u)}}},m(8,0),m(0,0),m(8,1),m(0,1),h(d),h(v),f=p,A||j(t),{e:f,get c(){var r=[];return A&&[j(t=S(t,[e],c,t.name,5,r)),_(r,1)]}}}},2559:(t,e,r)=>{function n(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}r.d(e,{A:()=>n})},6902:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(7545);function o(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,n.A)(t):"null"));return t}},2016:(t,e,r)=>{function n(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(e,{A:()=>n})},829:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(2559);function o(t,e){return t.get((0,n.A)(t,e))}},918:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(2016);function o(t,e,r){(0,n.A)(t,e),e.set(t,r)}},6121:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(2559);function o(t,e,r){return t.set((0,n.A)(t,e),r),r}},1369:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(7545);function o(t){var e=function(t,e){if("object"!=(0,n.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(e)?e:e+""}},7545:(t,e,r)=>{function n(t){return n="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},n(t)}r.d(e,{A:()=>n})}}]);
|
|
2
|
-
//# sourceMappingURL=chat-preview.a36a3a25.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see contract-select.ea76b415.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[3046,1369,2052],{1722:(e,t,n)=>{n.d(t,{I:()=>a,K:()=>r,NS:()=>i});var r=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}({}),i="bricks/visual-builder/contract-select",a={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:"请填写正确的契约名称"}}},4680:(e,t,n)=>{n.r(t),n.d(t,{EoContractSelect:()=>X,EoContractSelectComponent:()=>re,checkContractRule:()=>ne});var r,i,a,o,s,c,l,u,h,f,d,p,v,A,m,g,S=n(4586),b=n(4635),T=n(918),y=n(6902),C=n(5536),E=n(6121),w=n(829),_=n(2740),N=n(8769),I=n.n(N),O=n(3443),k=n(720),P=n(4845),R=(n(6329),n(6213)),x=n(1030),F=n(426),B=n(3065),M=n(1722),W=n(5502),j=n(8799),z=n(2480);(0,W.initializeReactI18n)(M.NS,M.I);var X,{defineElement:D,property:L,event:q}=(0,O.createDecorators)(),U=(0,k.wrapBrick)("eo-form-item"),G=(0,k.wrapBrick)("eo-auto-complete",{onChange:"change"}),V=new WeakMap,K=new WeakMap,$=new WeakMap,H=new WeakMap,J=new WeakMap,Q=new WeakMap,Y=new WeakSet;class Z extends F.N{constructor(){super(...arguments),(0,b.A)(this,Y),(0,T.A)(this,V,a(this)),(0,T.A)(this,K,(o(this),s(this))),(0,T.A)(this,$,(c(this),l(this))),(0,T.A)(this,H,(u(this),h(this))),(0,T.A)(this,J,(f(this),d(this))),(0,T.A)(this,Q,(p(this),v(this))),(0,S.A)(this,"handleChange",(g(this),e=>{(0,C.A)(Y,this,A).emit(e)}))}get name(){return(0,w.A)(V,this)}set name(e){(0,E.A)(V,this,e)}get required(){return(0,w.A)(K,this)}set required(e){(0,E.A)(K,this,e)}get label(){return(0,w.A)($,this)}set label(e){(0,E.A)($,this,e)}get value(){return(0,w.A)(H,this)}set value(e){(0,E.A)(H,this,e)}get suffix(){return(0,w.A)(J,this)}set suffix(e){(0,E.A)(J,this,e)}render(){return I().createElement(U,{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:ne},I().createElement(re,{value:this.value,suffix:this.suffix,validateState:this.validateState,onChange:this.handleChange}))}}function ee(e){if("string"!=typeof e)return{name:"",version:""};var[t,n]=e.split(":");return{name:t,version:n}}function te(e){return/.*@.*:\d+\.\d+\.\d+/.test(e)}function ne(e){return(0,x.isNil)(e)||te(e)?"":j.i18n.t("".concat(M.NS,":").concat(M.K.CONTRACT_VALIDATE_MESSAGE))}function re(e){var{value:t,inputStyle:n,validateState:r,suffix:i,onChange:a}=e,[o,s]=(0,N.useState)(),[c,l]=(0,N.useState)(20),u=(0,B.E)({q:o,pageSize:c}),[h,f]=(0,N.useState)(ee(t)),[d,p]=(0,N.useState)([]);(0,N.useEffect)((()=>{f(ee(t))}),[t]);var v=(0,N.useMemo)((()=>(0,x.debounce)((e=>{s(e)}),200)),[]);return I().createElement("div",{className:"contract-wrapper"},I().createElement(G,{className:"contract-selector",options:null==u?void 0:u.map((e=>({value:e.fullContractName,label:e.fullContractName}))),value:h.name,inputStyle:n,validateState:r,onChange:e=>{var t=e.detail;if(te(t))f(ee(t)),null==a||a(t);else{var n,r,i=null===(n=u.find((e=>e.fullContractName===t)))||void 0===n?void 0:n.version,o=null!==(r=null==i?void 0:i[0])&&void 0!==r?r:"";p(i),f({name:t,version:o}),null==a||a("".concat(t,":").concat(o))}v(t)}},I().createElement(z.L,{onBlur:e=>l(e),slot:"options-toolbar"})),I().createElement(G,{className:"version-selector",value:h.version,validateState:r,options:null==d?void 0:d.map((e=>({value:e,label:e}))),onChange:e=>{var t=e.detail;f({name:h.name,version:t}),null==a||a("".concat(h.name,":").concat(t))}}),null!=i&&i.useBrick?I().createElement(P.ReactUseMultipleBricks,i):null)}r=Z,({e:[a,o,s,c,l,u,h,f,d,p,v,A,m,g],c:[X,i]}=(0,_.A)(r,[D("visual-builder.contract-select",{styleTexts:[R.A]})],[[L(),1,"name"],[L({type:Boolean}),1,"required"],[L(),1,"label"],[L({attribute:!1}),1,"value"],[L({attribute:!1}),1,"suffix"],[q({type:"change"}),1,"changeEvent",e=>(0,w.A)(Q,e),(e,t)=>(0,E.A)(Q,e,t)]],0,(e=>Y.has((0,y.A)(e))),F.N)),i()},2480:(e,t,n)=>{n.d(t,{L:()=>u});var r=n(8769),i=n.n(r),a=n(1722),o=n(5502),s=n(720);(0,o.initializeReactI18n)(a.NS,a.I);var c=(0,s.wrapBrick)("eo-icon"),l=(0,s.wrapBrick)("eo-input",{onChange:"change"});function u(e){var{itemsCount:t=20,onBlur:n}=e,[s,u]=(0,r.useState)(t),{t:h}=(0,o.useTranslation)(a.NS),[f,d]=(0,r.useState)(!1);return i().createElement("div",{className:"options-tips",slot:e.slot},h(a.K.CONTRACT_OPTIONS_TIPS_PREFIX)," ",f?i().createElement(l,{autoFocus:!0,inputStyle:{width:65},value:String(s),onBlur:()=>{d(!1),null==n||n(s)},onChange:e=>{u(Number(e.detail))}}):i().createElement("span",null,s," ",i().createElement(c,{icon:"edit",lib:"antd",onClick:()=>{d(!0)}}))," ",h(a.K.CONTRACT_OPTIONS_TIPS_SUFFIX))}},3065:(e,t,n)=>{n.d(t,{E:()=>o});var r=n(6330),i=n(8769),a=n(4244);function o(e){var{pageSize:t=20,q:n=""}=e,[o,s]=(0,i.useState)([]),[c,l]=(0,i.useState)(n),[u,h]=(0,i.useState)(t);return(0,i.useEffect)((()=>{l(n)}),[n]),(0,i.useEffect)((()=>{h(t)}),[t]),(0,i.useEffect)((()=>{(0,r.A)((function*(){try{var{list:e}=yield(0,a.f)({page:1,pageSize:u,fullContractName:c},{interceptorParams:{ignoreLoadingBar:!0}});s(e)}catch(e){console.error(e),s([])}}))()}),[c,u]),o}},6213:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),i=n.n(r),a=n(935),o=n.n(a)()(i());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()},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,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(o[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&o[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},6758:e=>{e.exports=function(e){return e[1]}},2740:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7545),i=n(6902);function a(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}var o=n(1369);function s(e,t,n,s,c,l){var u,h,f,d,p,v,A,m=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,S=Object.create,b=[S(null),S(null)],T=t.length;function y(t,n,r){return function(i,a){n&&(a=i,i=e);for(var o=0;o<t.length;o++)a=t[o].apply(i,r?[a]:[]);return r?a:i}}function C(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,i,o,s,c,l,f,d,p){function v(e){if(!p(e))throw new TypeError("Attempted to access private element on non-instance")}var A=[].concat(t[0]),m=t[3],S=!c,T=1===o,E=3===o,w=4===o,_=2===o;function N(t,n,r){return function(i,a){return n&&(a=i,i=e),r&&r(i),I[t].call(i,a)}}if(!S){var I={},O=[],k=E?"get":w||T?"set":"value";if(f?(d||T?I={get:a((function(){return m(this)}),i,"get"),set:function(e){t[4](this,e)}}:I[k]=m,d||a(I[k],i,_?"":k)):d||(I=Object.getOwnPropertyDescriptor(e,i)),!d&&!f){if((h=b[+l][i])&&7!=(h^o))throw Error("Decorating two elements with the same name ("+I[k].name+") is not supported yet");b[+l][i]=o<3?1:o}}for(var P=e,R=A.length-1;R>=0;R-=n?2:1){var x=C(A[R],"A decorator","be",!0),F=n?A[R-1]:void 0,B={},M={kind:["field","accessor","method","getter","setter","class"][o],name:i,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");C(t,"An initializer","be",!0),s.push(t)}.bind(null,B)};if(S)h=x.call(F,P,M),B.v=1,C(h,"class decorators","return")&&(P=h);else if(M.static=l,M.private=f,h=M.access={has:f?p.bind():function(e){return i in e}},w||(h.get=f?_?function(e){return v(e),I.value}:N("get",0,v):function(e){return e[i]}),_||E||(h.set=f?N("set",0,v):function(e,t){e[i]=t}),P=x.call(F,T?{get:I.get,set:I.set}:I[k],M),B.v=1,T){if("object"==(0,r.A)(P)&&P)(h=C(P.get,"accessor.get"))&&(I.get=h),(h=C(P.set,"accessor.set"))&&(I.set=h),(h=C(P.init,"accessor.init"))&&O.unshift(h);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else C(P,(d?"field":"method")+" decorators","return")&&(d?O.unshift(P):I[k]=P)}return o<2&&c.push(y(O,l,1),y(s,l,0)),d||S||(f?T?c.splice(-1,0,N("get",l),N("set",l)):c.push(_?I[k]:C.call.bind(I[k])):g(e,i,I)),P}function w(e){return g(e,m,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[m]),u=S(null==u?null:u),p=[],v=function(e){e&&p.push(y(e))},A=function(t,r){for(var a=0;a<n.length;a++){var s=n[a],l=s[1],u=7&l;if((8&l)==t&&!u==r){var h=s[2],v=!!s[3],A=16&l;E(t?e:e.prototype,s,A,v?"#"+h:(0,o.A)(h),u,u<2?[]:t?d=d||[]:f=f||[],p,!!t,v,r,t&&v?function(t){return(0,i.A)(t)===e}:c)}}},A(8,0),A(0,0),A(8,1),A(0,1),v(f),v(d),h=p,T||w(e),{e:h,get c(){var n=[];return T&&[w(e=E(e,[t],s,e.name,5,n)),y(n,1)]}}}},2559:(e,t,n)=>{function r(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")}n.d(t,{A:()=>r})},6330:(e,t,n)=>{function r(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,c,"next",e)}function c(e){r(o,i,a,s,c,"throw",e)}s(void 0)}))}}n.d(t,{A:()=>i})},6902:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(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})},829:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return e.set((0,r.A)(e,t),n),n}},5536:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return n((0,r.A)(e,t))}},4635:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t){(0,r.A)(e,t),t.add(e)}},9492:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n,i){return t((0,r.A)(e,n),i),i}},4586:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(1369);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},1369:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(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 i=n.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t: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})},4244:(e,t,n)=>{n.d(t,{f:()=>a});var r=n(6330),i=n(5381),a=function(){var e=(0,r.A)((function*(e,t){return(yield i.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)}}()},426:(e,t,n)=>{n.d(t,{N:()=>R});var r,i,a,o,s,c,l,u,h,f,d=n(4635),p=n(918),v=n(5536),A=n(9492),m=n(6121),g=n(829),S=n(2740),b=n(3443),T=n(720),{method:y,property:C}=(0,b.createDecorators)(),E=new WeakMap,w=new WeakSet,_=new WeakMap,N=new WeakMap,I=new WeakMap,O=new WeakMap,k=new WeakMap,P=new WeakMap;class R extends T.ReactNextElement{constructor(){super(...arguments),(0,d.A)(this,w),(0,p.A)(this,E,(i(this),!1)),(0,p.A)(this,_,"normal"),(0,p.A)(this,N,!1),(0,p.A)(this,I,a(this)),(0,p.A)(this,O,(o(this),s(this))),(0,p.A)(this,k,(c(this),l(this))),(0,p.A)(this,P,(u(this),h(this))),f(this)}get isFormItemElement(){return!0}set validateState(e){(0,A.A)(w,M,this,e),this._render()}get validateState(){return(0,v.A)(w,this,B)}set notRender(e){this.hidden=e,(0,A.A)(w,F,this,e),this._render()}get notRender(){return(0,v.A)(w,this,x)}get $bindFormItem(){return(0,v.A)(w,this,W)}set $bindFormItem(e){(0,A.A)(w,j,this,e),this._render()}get helpBrick(){return(0,g.A)(I,this)}set helpBrick(e){(0,m.A)(I,this,e)}get labelBrick(){return(0,g.A)(O,this)}set labelBrick(e){(0,m.A)(O,this,e)}get labelCol(){return(0,g.A)(k,this)}set labelCol(e){(0,m.A)(k,this,e)}get wrapperCol(){return(0,g.A)(P,this)}set wrapperCol(e){(0,m.A)(P,this,e)}setNotRender(e){this.notRender=e}getFormElement(){for(var e=this;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function x(e){return(0,g.A)(E,e)}function F(e,t){(0,m.A)(E,e,t)}function B(e){return(0,g.A)(_,e)}function M(e,t){(0,m.A)(_,e,t)}function W(e){return(0,g.A)(N,e)}function j(e,t){(0,m.A)(N,e,t)}r=R,[a,o,s,c,l,u,h,f,i]=(0,S.A)(r,[],[[C({attribute:!1}),1,"helpBrick"],[C({attribute:!1}),1,"labelBrick"],[C({attribute:!1}),1,"labelCol"],[C({attribute:!1}),1,"wrapperCol"],[y(),2,"setNotRender"],[y(),2,"getFormElement"]],0,void 0,T.ReactNextElement).e}}]);
|
|
3
|
-
//# sourceMappingURL=contract-select.ea76b415.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{var e,t,r,n,a,o,l,i,c,u,d,s,f,h,p,m,b,v,x,g,y,P,k,w={7934:(e,t,r)=>{Promise.all([r.e(9933),r.e(8769),r.e(3443),r.e(720),r.e(1030),r.e(9924),r.e(244),r.e(6329),r.e(155),r.e(8799),r.e(5381),r.e(5502),r.e(3801),r.e(9027),r.e(1732),r.e(1201),r.e(4845),r.e(7224)]).then(r.bind(r,7224))}},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+"."+{114:"145a58c4",155:"041f6dc7",244:"3ab3cd03",478:"7e1cd06e",720:"b1602109",725:"a7257e8d",726:"f472432c",790:"69ae2267",871:"c4a66cce",1030:"8c162fd1",1045:"cb75d16d",1122:"fdaac24b",1201:"f09a5b56",1204:"61efce7b",1369:"012de1c7",1370:"38d83fd9",1732:"cda004b1",1889:"ca990b9a",1940:"58a6ed6b",2052:"5926f210",2277:"fda4d32d",2652:"c69240d2",3144:"c6a8a081",3171:"d4871dd3",3426:"d6cca3b4",3443:"6c29906a",3620:"d1c28662",3801:"477a0f99",3933:"3fc2f29b",4001:"32ea01ef",4041:"b50c80d7",4208:"60ea8c03",4658:"4b685c97",4741:"cf0d2915",4845:"38dd0c23",5250:"dc33943a",5381:"5c96153f",5384:"db165893",5399:"9c916ecb",5502:"490bfb21",5552:"ae721844",6314:"1f843756",6329:"c32abc54",6519:"538410d7",6773:"f4d1ef05",7115:"6fc785ff",7203:"695d0246",7224:"92a43c9e",7721:"b491f7fa",7727:"980722e4",7733:"edd149d7",7780:"1ca43b02",7825:"ba97230b",8097:"2a833d82",8769:"e0e7e7a6",8799:"cd3b4564",8989:"712b21ae",9027:"c54a843b",9496:"6ff45070",9515:"07ef90ca",9542:"3e5012b2",9559:"35450382",9755:"ed8add01",9844:"bc9b1bf6",9924:"ab322b13",9933:"e92bd957"}[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"),u=0;u<c.length;u++){var d=c[u];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 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.4",(()=>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.15",(()=>Promise.all([S.e(1122),S.e(725)]).then((()=>()=>S(1122))))),i("@next-core/element","1.2.5",(()=>S.e(1045).then((()=>()=>S(1045))))),i("@next-core/http","1.2.1",(()=>S.e(8989).then((()=>()=>S(8989))))),i("@next-core/i18n/react","1.0.43",(()=>Promise.all([S.e(8799),S.e(7825),S.e(8097)]).then((()=>()=>S(8097))))),i("@next-core/i18n","1.0.43",(()=>Promise.all([S.e(244),S.e(8799),S.e(9755),S.e(5552)]).then((()=>()=>S(5552))))),i("@next-core/inject","1.0.33",(()=>Promise.all([S.e(1030),S.e(4001),S.e(2277)]).then((()=>()=>S(2277))))),i("@next-core/loader","1.5.7",(()=>S.e(5399).then((()=>()=>S(5399))))),i("@next-core/pipes","2.0.19",(()=>S.e(6519).then((()=>()=>S(6519))))),i("@next-core/react-element","1.0.24",(()=>Promise.all([S.e(8769),S.e(3443),S.e(4208),S.e(114)]).then((()=>()=>S(114))))),i("@next-core/react-runtime","1.4.7",(()=>Promise.all([S.e(8769),S.e(720),S.e(1030),S.e(9924),S.e(7115)]).then((()=>()=>S(7115))))),i("@next-core/runtime","1.41.1",(()=>Promise.all([S.e(2652),S.e(1030),S.e(244),S.e(155),S.e(5381),S.e(7203),S.e(7727),S.e(1369)]).then((()=>()=>S(2652))))),i("@next-core/supply","2.1.14",(()=>Promise.all([S.e(1030),S.e(155),S.e(4001),S.e(9559)]).then((()=>()=>S(9559))))),i("@next-core/theme","1.5.0",(()=>Promise.all([S.e(1889),S.e(2052)]).then((()=>()=>S(1889))))),i("@next-core/utils/general","1.7.1",(()=>S.e(871).then((()=>()=>S(871))))),i("@next-core/utils/storyboard","1.7.1",(()=>Promise.all([S.e(244),S.e(7203),S.e(3933)]).then((()=>()=>S(3933))))),i("history","4.10.1",(()=>S.e(5384).then((()=>()=>S(5384))))),i("i18next-browser-languagedetector","7.2.1",(()=>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.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),i("moment","2.30.1",(()=>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 u,d,s=i<e.length?(typeof e[i])[0]:"";if(l>=t.length||"o"==(d=(typeof(u=t[l]))[0]))return!c||("u"==s?i>n&&!a:""==s!=a);if("u"==d){if(!c||"u"!=s)return!1}else if(c)if(s==d)if(i<=n){if(u!=e[i])return!1}else{if(a?u>e[i]:u<e[i])return!1;u!=e[i]&&(c=!1)}else if("s"!=s&&"n"!=s){if(a||i<=n)return!1;c=!1,i--}else{if(i<=n||d<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)+")",u=(e,t,r,n)=>{var a=i(e,r);return h(e[r][a])},d=(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()),m=(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())),b=p(((e,t,r,n)=>t&&S.o(t,r)?u(t,0,r):n())),v=p(((e,t,r,n,a)=>t&&S.o(t,r)?d(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))))),3443:()=>x("default","@next-core/element",[1,1,2,5],(()=>S.e(3426).then((()=>()=>S(1045))))),720:()=>x("default","@next-core/react-element",[1,1,0,24],(()=>Promise.all([S.e(3443),S.e(4208),S.e(7733)]).then((()=>()=>S(114))))),1030:()=>v("default","lodash",[1,4,17,21],(()=>S.e(5250).then((()=>()=>S(5250))))),9924:()=>v("default","@next-core/runtime",[1,1,41,1],(()=>Promise.all([S.e(2652),S.e(1030),S.e(244),S.e(155),S.e(5381),S.e(7203),S.e(7727)]).then((()=>()=>S(2652))))),244:()=>v("default","@next-core/utils/general",[1,1,7,1],(()=>S.e(871).then((()=>()=>S(871))))),6329:()=>v("default","@next-core/theme",[1,1,5,0],(()=>S.e(1889).then((()=>()=>S(1889))))),155:()=>v("default","moment",[1,2,29,4],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(9420))))),8799:()=>b("default","@next-core/i18n",(()=>Promise.all([S.e(244),S.e(9755),S.e(3171)]).then((()=>()=>S(5552))))),5381:()=>v("default","@next-core/http",[1,1,2,1],(()=>S.e(1370).then((()=>()=>S(8989))))),5502:()=>b("default","@next-core/i18n/react",(()=>Promise.all([S.e(7825),S.e(478)]).then((()=>()=>S(8097))))),1732:()=>b("default","js-yaml",(()=>S.e(9515).then((()=>()=>S(9515))))),1201:()=>v("default","history",[1,4,7,11],(()=>S.e(5384).then((()=>()=>S(5384))))),4845:()=>m("default","@next-core/react-runtime",(()=>Promise.all([S.e(9924),S.e(9496)]).then((()=>()=>S(7115))))),1204:()=>v("default","js-yaml",[1,3,14,0],(()=>S.e(9515).then((()=>()=>S(9515))))),725:()=>v("default","@babel/parser",[1,7,24,4],(()=>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))))),7072:()=>v("default","i18next-browser-languagedetector",[1,7,2,1],(()=>S.e(726).then((()=>()=>S(726))))),4001:()=>v("default","@next-core/pipes",[1,2,0,19],(()=>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:()=>m("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))))),7203:()=>v("default","@next-core/cook",[1,2,2,15],(()=>Promise.all([S.e(1122),S.e(725)]).then((()=>()=>S(1122))))),597:()=>v("default","moment/locale/zh-cn.js",[1,2,29,4],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),2498:()=>v("default","@next-core/inject",[1,1,0,33],(()=>Promise.all([S.e(4001),S.e(4658)]).then((()=>()=>S(2277))))),2590:()=>v("default","@next-core/utils/storyboard",[1,1,7,1],(()=>S.e(6314).then((()=>()=>S(3933))))),2890:()=>v("default","history",[1,4,10,1],(()=>S.e(5384).then((()=>()=>S(5384))))),3904:()=>v("default","@next-core/loader",[1,1,5,7],(()=>S.e(7780).then((()=>()=>S(5399))))),6801:()=>v("default","@next-core/supply",[1,2,1,14],(()=>Promise.all([S.e(4001),S.e(1940)]).then((()=>()=>S(9559))))),6865:()=>v("default","@next-core/i18n",[1,1,0,43],(()=>Promise.all([S.e(8799),S.e(9755),S.e(790)]).then((()=>()=>S(5552)))))},P={155:[155],244:[244],720:[720],725:[725],1030:[1030],1201:[1201],1204:[1204],1732:[1732],3443:[3443],4001:[4001],4208:[454,9435],4845:[4845],5381:[5381],5502:[5502],6329:[6329],6519:[161],7203:[7203],7727:[597,2498,2590,2890,3904,6801,6865],7825:[7825],8769:[8769],8799:[8799],9755:[2350,7072],9924:[9924]},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|732)|4(001|208|845)|7(2(0|03|5)|727|825)|87[69]9|244|3443|5381|5502|6329|9755|9924)$/.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.6d351f9e.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see page-arch-node.23766062.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[4892,1369,2052],{5014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PageArchNode:()=>oe,PageArchNodeComponent:()=>Ze});var o,i,r,a,l,s,c,u,d,p,h,b,f,v,g,m,A,x,y,k,w,C,E,N,M,S,W,D,j,P,z,O,T,_,F,B,L,R,X,Y,I,K,q,G,H,J,Q,U,V,Z,$,ee,te,ne,oe,ie=n(4635),re=n(918),ae=n(6902),le=n(5536),se=n(6121),ce=n(829),ue=n(2740),de=n(8769),pe=n.n(de),he=n(3443),be=n(720),fe=(n(6329),n(3373)),ve=n.n(fe),ge=n(2381),{defineElement:me,property:Ae,event:xe}=(0,he.createDecorators)(),ye=(0,be.wrapBrick)("eo-icon"),ke=(0,be.wrapBrick)("eo-tooltip"),we=new Set,Ce=new WeakMap,Ee=new WeakMap,Ne=new WeakMap,Me=new WeakMap,Se=new WeakMap,We=new WeakMap,De=new WeakMap,je=new WeakMap,Pe=new WeakMap,ze=new WeakSet,Oe=new WeakMap,Te=new WeakMap,_e=new WeakMap,Fe=new WeakMap,Be=new WeakMap,Le=new WeakMap,Re=new WeakMap,Xe=new WeakMap,Ye=new WeakMap,Ie=new WeakMap,Ke=new WeakMap,qe=new WeakMap,Ge=new WeakMap,He=new WeakMap,Je=new WeakMap,Qe=new WeakMap,Ue=new WeakMap;class Ve extends be.ReactNextElement{constructor(){super(...arguments),(0,ie.A)(this,ze),(0,re.A)(this,Ce,r(this)),(0,re.A)(this,Ee,(a(this),l(this))),(0,re.A)(this,Ne,(s(this),c(this))),(0,re.A)(this,Me,(u(this),d(this))),(0,re.A)(this,Se,(p(this),h(this))),(0,re.A)(this,We,(b(this),f(this))),(0,re.A)(this,De,(v(this),g(this))),(0,re.A)(this,je,(m(this),A(this))),(0,re.A)(this,Pe,(x(this),y(this))),(0,re.A)(this,Oe,(C(this),e=>{(0,le.A)(ze,this,k).emit(e)})),(0,re.A)(this,Te,E(this)),(0,re.A)(this,_e,(S(this),e=>{(0,le.A)(ze,this,N).emit(e)})),(0,re.A)(this,Fe,W(this)),(0,re.A)(this,Be,(P(this),()=>{(0,le.A)(ze,this,D).emit()})),(0,re.A)(this,Le,z(this)),(0,re.A)(this,Re,(_(this),()=>{(0,le.A)(ze,this,O).emit()})),(0,re.A)(this,Xe,F(this)),(0,re.A)(this,Ye,(R(this),e=>{(0,le.A)(ze,this,B).emit(e)})),(0,re.A)(this,Ie,X(this)),(0,re.A)(this,Ke,(K(this),()=>{(0,le.A)(ze,this,Y).emit()})),(0,re.A)(this,qe,q(this)),(0,re.A)(this,Ge,(J(this),e=>{(0,le.A)(ze,this,G).emit(e)})),(0,re.A)(this,He,Q(this)),(0,re.A)(this,Je,(Z(this),e=>{(0,le.A)(ze,this,U).emit(e)})),(0,re.A)(this,Qe,$(this)),(0,re.A)(this,Ue,(ne(this),e=>{(0,le.A)(ze,this,ee).emit(e)}))}get label(){return(0,ce.A)(Ce,this)}set label(e){(0,se.A)(Ce,this,e)}get type(){return(0,ce.A)(Ee,this)}set type(e){(0,se.A)(Ee,this,e)}get external(){return(0,ce.A)(Ne,this)}set external(e){(0,se.A)(Ne,this,e)}get subNodes(){return(0,ce.A)(Me,this)}set subNodes(e){(0,se.A)(Me,this,e)}get active(){return(0,ce.A)(Se,this)}set active(e){(0,se.A)(Se,this,e)}get notSynced(){return(0,ce.A)(We,this)}set notSynced(e){(0,se.A)(We,this,e)}get disableChildAppend(){return(0,ce.A)(De,this)}set disableChildAppend(e){(0,se.A)(De,this,e)}get autoFocusOnce(){return(0,ce.A)(je,this)}set autoFocusOnce(e){(0,se.A)(je,this,e)}render(){return pe().createElement(Ze,{label:this.label,type:this.type,external:this.external,subNodes:this.subNodes,autoFocusOnce:this.autoFocusOnce,onLabelEditingChange:(0,ce.A)(Oe,this),onLabelChange:(0,ce.A)(_e,this),onNodeClick:(0,ce.A)(Be,this),onNodeDoubleClick:(0,ce.A)(Re,this),onNodeContextMenu:(0,ce.A)(Ye,this),onChildAppend:(0,ce.A)(Ke,this),onExternalClick:(0,ce.A)(Ge,this),onSubNodeDoubleClick:(0,ce.A)(Je,this),onSubNodeContextMenu:(0,ce.A)(Ue,this)})}}function Ze(e){var t,{label:n,type:o,external:i,subNodes:r,autoFocusOnce:a,onLabelEditingChange:l,onLabelChange:s,onNodeClick:c,onNodeDoubleClick:u,onNodeContextMenu:d,onChildAppend:p,onExternalClick:h,onSubNodeDoubleClick:b,onSubNodeContextMenu:f}=e,v="board"===o?"board":"page",[g,m]=(0,de.useState)(n),[A,x]=(0,de.useState)(!1),y=(0,de.useRef)(!1),[k,w]=(0,de.useState)(!1),C=(0,de.useRef)(null);(0,de.useEffect)((()=>{m(n)}),[n]);var E=(0,de.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),x(!0)}),[]);(0,de.useEffect)((()=>{a&&!we.has(a)&&(we.add(a),setTimeout((()=>{x(!0)}),1))}),[a]),(0,de.useEffect)((()=>{var e,t;A&&(null===(e=C.current)||void 0===e||e.focus({preventScroll:!0}),null===(t=C.current)||void 0===t||t.select())}),[A]),(0,de.useEffect)((()=>{y.current?null==l||l(A):y.current=!0}),[A,l]);var N=(0,de.useCallback)((e=>{m(e.target.value)}),[]),M=(0,de.useCallback)((e=>{var t,n=e.key||e.keyCode||e.which;"Enter"!==n&&13!==n||null===(t=C.current)||void 0===t||t.blur()}),[]),S=(0,de.useCallback)((()=>{x(!1),w(!0)}),[]);(0,de.useEffect)((()=>{k&&(null==s||s(g),w(!1))}),[g,s,k]);var W=(0,de.useCallback)((e=>{e.stopPropagation(),null==p||p()}),[p]),D=(0,de.useCallback)((e=>{e.stopPropagation(),null==h||h(i)}),[i,h]),j=(0,de.useCallback)((e=>{e.stopPropagation()}),[]),P=38*Math.max(0,Math.floor((null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)-3));return pe().createElement(pe().Fragment,null,pe().createElement("div",{className:ve()("node",v,{"editing-label":A}),style:{height:"board"===v?70:130+P},onClick:c,onDoubleClick:u,onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==d||d({clientX:e.clientX,clientY:e.clientY})}},pe().createElement("input",{className:"label-input",value:g,ref:C,onChange:N,onKeyDown:M,onBlur:S,onDoubleClick:j,onContextMenu:j,onMouseDown:j}),pe().createElement("div",{className:"label",onDoubleClick:E,onMouseDown:j},g),"board"===v?pe().createElement("div",{className:"icon-container"},pe().createElement(ye,{lib:"antd",icon:"unordered-list"})):pe().createElement("div",{className:"thumbnail-container",style:{height:98+P}},pe().createElement("div",{className:"thumbnail-placeholder"},pe().createElement(ye,{lib:"antd",icon:"ellipsis"})),i&&pe().createElement("div",{className:"external",onClick:D,onDoubleClick:j,onMouseDown:j},pe().createElement(ye,{lib:"antd",icon:"desktop"}),pe().createElement("span",{className:"external-label"},i.label)),null!=r&&r.length?pe().createElement("div",{className:"sub-nodes"},r.map((e=>pe().createElement($e,{key:e.id,subNode:e,onSubNodeDoubleClick:b,onSubNodeContextMenu:f})))):null)),pe().createElement("div",{className:"add-button",role:"button",onClick:W,onMouseDown:j},pe().createElement(ye,{lib:"fa",icon:"plus"})))}function $e(e){var{subNode:t,onSubNodeDoubleClick:n,onSubNodeContextMenu:o}=e;return pe().createElement(ke,{key:t.id,content:t.label},pe().createElement("div",{className:"sub-node",onDoubleClick:e=>{e.stopPropagation(),null==n||n(t)},onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==o||o({node:t,clientX:e.clientX,clientY:e.clientY})}},pe().createElement("div",{className:"sub-node-skeleton-title"}),pe().createElement("div",{className:"sub-node-skeleton-content"}),pe().createElement("div",{className:"sub-node-skeleton-button"})))}o=Ve,({e:[r,a,l,s,c,u,d,p,h,b,f,v,g,m,A,x,y,k,w,C,E,N,M,S,W,D,j,P,z,O,T,_,F,B,L,R,X,Y,I,K,q,G,H,J,Q,U,V,Z,$,ee,te,ne],c:[oe,i]}=(0,ue.A)(o,[me("visual-builder.page-arch-node",{styleTexts:[ge.A]})],[[Ae(),1,"label"],[Ae(),1,"type"],[Ae({attribute:!1}),1,"external"],[Ae({attribute:!1}),1,"subNodes"],[Ae({type:Boolean,render:!1}),1,"active"],[Ae({type:Boolean,render:!1}),1,"notSynced"],[Ae({type:Boolean,render:!1}),1,"disableChildAppend"],[Ae(),1,"autoFocusOnce"],[xe({type:"label.editing.change"}),1,"labelEditingChange",e=>(0,ce.A)(Pe,e),(e,t)=>(0,se.A)(Pe,e,t)],[xe({type:"label.change"}),1,"labelChange",e=>(0,ce.A)(Te,e),(e,t)=>(0,se.A)(Te,e,t)],[xe({type:"node.click"}),1,"nodeClick",e=>(0,ce.A)(Fe,e),(e,t)=>(0,se.A)(Fe,e,t)],[xe({type:"node.dblclick"}),1,"nodeDoubleClick",e=>(0,ce.A)(Le,e),(e,t)=>(0,se.A)(Le,e,t)],[xe({type:"node.contextmenu"}),1,"nodeContextMenu",e=>(0,ce.A)(Xe,e),(e,t)=>(0,se.A)(Xe,e,t)],[xe({type:"child.append"}),1,"childAppend",e=>(0,ce.A)(Ie,e),(e,t)=>(0,se.A)(Ie,e,t)],[xe({type:"external.click"}),1,"externalClick",e=>(0,ce.A)(qe,e),(e,t)=>(0,se.A)(qe,e,t)],[xe({type:"subNode.dblclick"}),1,"subNodeDoubleClick",e=>(0,ce.A)(He,e),(e,t)=>(0,se.A)(He,e,t)],[xe({type:"subNode.contextmenu"}),1,"subNodeContextMenu",e=>(0,ce.A)(Qe,e),(e,t)=>(0,se.A)(Qe,e,t)]],0,(e=>Ue.has((0,ae.A)(e))),be.ReactNextElement)),i()},2381:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(6758),i=n.n(o),r=n(935),a=n.n(r)()(i());a.push([e.id,":host{--local-node-outline-style:solid;display:block}:host([hidden]){display:none}:host([not-synced]){--local-node-outline-style:dashed}*{box-sizing:border-box}.node{width:168px;max-width:none;height:130px;position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.node.board{height:70px;max-width:168px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding-bottom:4px}.label,\n.label-input{width:100%;height:24px;padding:3px;border:none;line-height:18px;font-size:var(--sub-title-font-size-small);color:var(--color-header-text);font-weight:var(--font-weight-500);text-align:center;font-family:inherit;cursor:text;-webkit-user-select:text;-moz-user-select:text;user-select:text}.label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.node.editing-label .label{height:0}.node:not(.editing-label) .label-input{display:none}.add-button,\n.icon-container,\n.thumbnail-container,\n.thumbnail-placeholder{display:flex;align-items:center;justify-content:center}.thumbnail-container{height:98px;outline:1px var(--local-node-outline-style) var(--palette-gray-4);opacity:1;border:4px solid transparent;border-radius:4px;width:100%;position:relative;flex-direction:column}.thumbnail-placeholder{color:var(--palette-gray-5);font-size:36px;flex:1}.icon-container{font-size:20px;background-color:var(--palette-teal-6);color:var(--palette-gray-4);width:36px;height:36px;border-radius:50%;outline-offset:4px}:host([active]) .thumbnail-container,\n:host([active]) .icon-container{outline:2px var(--local-node-outline-style) var(--palette-blue-3)}:host(:not([active])) .node:hover .thumbnail-container,\n:host(:not([active])) .node:hover .icon-container{outline:1px var(--local-node-outline-style) var(--palette-blue-3)}.add-button{position:absolute;bottom:-26px;left:calc(50% - 12px);width:24px;height:24px;background:var(--palette-gray-3);color:var(--palette-gray-6);border-radius:50%;cursor:pointer}:host([not-synced]) .add-button,\n:host([disable-child-append]) .add-button,\n:host(:not([active])) .add-button{display:none}.add-button:hover{background:var(--palette-blue-5);color:var(--palette-gray-2)}.external{position:absolute;top:4px;left:4px;padding:0 10px;display:flex;align-items:center;gap:6px;background:var(--palette-purple-4);font-size:12px;line-height:20px;height:22px;cursor:pointer;color:var(--palette-gray-1);border-radius:9999px;right:4px;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}.external-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.external:hover{background:var(--palette-purple-5)}.sub-nodes{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:6px;gap:6px;width:100%}.sub-node{background-color:var(--palette-gray-2);border-radius:4px;padding:6px;display:flex;flex-direction:column;justify-content:space-between;height:32px}.sub-node-skeleton-title{width:18px;height:4px;border-radius:2px;align-self:flex-start;background-color:var(--palette-gray-4)}.sub-node-skeleton-content{width:100%;height:4px;border-radius:2px;background-color:var(--palette-gray-4)}.sub-node-skeleton-button{width:18px;height:4px;border-radius:2px;align-self:flex-end;background-color:var(--palette-blue-3)}.sub-node:hover{background-color:var(--palette-gray-3)}.sub-node:hover .sub-node-skeleton-title,\n.sub-node:hover .sub-node-skeleton-content{background-color:var(--palette-gray-5)}.sub-node:hover .sub-node-skeleton-button{background-color:var(--palette-blue-4)}",""]);const l=a.toString()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,i,r){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&a[u[0]]||(void 0!==r&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3373:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},2740:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(7545),i=n(6902);function r(e,t,n){"symbol"==(0,o.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(1369);function l(e,t,n,l,s,c){var u,d,p,h,b,f,v,g=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,A=Object.create,x=[A(null),A(null)],y=t.length;function k(t,n,o){return function(i,r){n&&(r=i,i=e);for(var a=0;a<t.length;a++)r=t[a].apply(i,o?[r]:[]);return o?r:i}}function w(e,t,n,o){if("function"!=typeof e&&(o||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(o?"":" or undefined"));return e}function C(e,t,n,i,a,l,s,c,p,h,b){function f(e){if(!b(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),g=t[3],A=!s,y=1===a,C=3===a,E=4===a,N=2===a;function M(t,n,o){return function(i,r){return n&&(r=i,i=e),o&&o(i),S[t].call(i,r)}}if(!A){var S={},W=[],D=C?"get":E||y?"set":"value";if(p?(h||y?S={get:r((function(){return g(this)}),i,"get"),set:function(e){t[4](this,e)}}:S[D]=g,h||r(S[D],i,N?"":D)):h||(S=Object.getOwnPropertyDescriptor(e,i)),!h&&!p){if((d=x[+c][i])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+S[D].name+") is not supported yet");x[+c][i]=a<3?1:a}}for(var j=e,P=v.length-1;P>=0;P-=n?2:1){var z=w(v[P],"A decorator","be",!0),O=n?v[P-1]:void 0,T={},_={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");w(t,"An initializer","be",!0),l.push(t)}.bind(null,T)};if(A)d=z.call(O,j,_),T.v=1,w(d,"class decorators","return")&&(j=d);else if(_.static=c,_.private=p,d=_.access={has:p?b.bind():function(e){return i in e}},E||(d.get=p?N?function(e){return f(e),S.value}:M("get",0,f):function(e){return e[i]}),N||C||(d.set=p?M("set",0,f):function(e,t){e[i]=t}),j=z.call(O,y?{get:S.get,set:S.set}:S[D],_),T.v=1,y){if("object"==(0,o.A)(j)&&j)(d=w(j.get,"accessor.get"))&&(S.get=d),(d=w(j.set,"accessor.set"))&&(S.set=d),(d=w(j.init,"accessor.init"))&&W.unshift(d);else if(void 0!==j)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else w(j,(h?"field":"method")+" decorators","return")&&(h?W.unshift(j):S[D]=j)}return a<2&&s.push(k(W,c,1),k(l,c,0)),h||A||(p?y?s.splice(-1,0,M("get",c),M("set",c)):s.push(N?S[D]:w.call.bind(S[D])):m(e,i,S)),j}function E(e){return m(e,g,{configurable:!0,enumerable:!0,value:u})}return void 0!==c&&(u=c[g]),u=A(null==u?null:u),b=[],f=function(e){e&&b.push(k(e))},v=function(t,o){for(var r=0;r<n.length;r++){var l=n[r],c=l[1],u=7&c;if((8&c)==t&&!u==o){var d=l[2],f=!!l[3],v=16&c;C(t?e:e.prototype,l,v,f?"#"+d:(0,a.A)(d),u,u<2?[]:t?h=h||[]:p=p||[],b,!!t,f,o,t&&f?function(t){return(0,i.A)(t)===e}:s)}}},v(8,0),v(0,0),v(8,1),v(0,1),f(p),f(h),d=b,y||E(e),{e:d,get c(){var n=[];return y&&[E(e=C(e,[t],l,e.name,5,n)),k(n,1)]}}}},2559:(e,t,n)=>{"use strict";function o(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")}n.d(t,{A:()=>o})},6902:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(7545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,o.A)(e):"null"));return e}},2016:(e,t,n)=>{"use strict";function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>o})},829:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(2559);function i(e,t){return e.get((0,o.A)(e,t))}},918:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(2016);function i(e,t,n){(0,o.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(2559);function i(e,t,n){return e.set((0,o.A)(e,t),n),n}},5536:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(2559);function i(e,t,n){return n((0,o.A)(e,t))}},4635:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(2016);function i(e,t){(0,o.A)(e,t),t.add(e)}},1369:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(7545);function i(e){var t=function(e,t){if("object"!=(0,o.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,o.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,o.A)(t)?t:t+""}},7545:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}n.d(t,{A:()=>o})}}]);
|
|
3
|
-
//# sourceMappingURL=page-arch-node.23766062.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[3021,1369,2052],{6860:(t,e,n)=>{n.r(e),n.d(e,{WorkbenchActionList:()=>u,WorkbenchActionListComponent:()=>L});var r,o,i,a,c,s,u,l,f=n(918),h=n(6121),d=n(829),p=n(2740),v=n(8769),m=n.n(v),y=n(3443),b=n(9924),g=n(720),A=n(764),w=n(3430),k=(0,g.wrapBrick)("visual-builder.workbench-action"),{defineElement:E,property:x}=(0,y.createDecorators)(),S=new WeakMap,j=new WeakMap;class P extends g.ReactNextElement{constructor(){super(...arguments),(0,f.A)(this,S,i(this)),(0,f.A)(this,j,(a(this),c(this))),s(this)}get appId(){return(0,d.A)(S,this)}set appId(t){(0,h.A)(S,this,t)}get menu(){return(0,d.A)(j,this)}set menu(t){(0,h.A)(j,this,t)}render(){return m().createElement(L,{appId:this.appId,menu:this.menu})}}r=P,({e:[i,a,c,s],c:[u,o]}=(0,p.A)(r,[E("visual-builder.workbench-action-list",{styleTexts:[w.A]})],[[x(),1,"appId"],[x({attribute:!1}),1,"menu"]],0,void 0,g.ReactNextElement)),o();var I=new Map;function L(t){var e,{appId:n,menu:r}=t,o=(0,b.getHistory)(),[i,a]=(0,v.useState)(),[c,s]=(0,v.useState)(o.location);return(0,v.useEffect)((()=>{var t=o.listen((t=>{s(t)}));return t}),[o]),(0,v.useEffect)((()=>{l||(l=n),l!==n&&(I.clear(),l=n)}),[n]),(0,v.useEffect)((()=>{var t,{pathname:e,search:n}=c,{selectedKeys:o}=(0,A.LP)(null!==(t=null==r?void 0:r.menuItems)&&void 0!==t?t:[],e,n,"");a(Number(o[0]))}),[r,c]),m().createElement("div",{className:"workBenchActionList"},null==r||null===(e=r.menuItems)||void 0===e?void 0:e.map(((t,e)=>{if((t=>"default"===t.type||!t.type)(t)){var n=t.to;return i!==e&&I.has(e)&&(n=I.get(e)),m().createElement(k,{key:e,icon:t.icon,to:n,href:t.href,target:t.target,active:i===e,onClick:()=>(t=>{t.href||I.set(i,"".concat(c.pathname).concat(c.search))})(t)})}})).filter(Boolean))}},3430:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(6758),o=n.n(r),i=n(935),a=n.n(i)()(o());a.push([t.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:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,i){"string"==typeof t&&(t=[[null,t,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<t.length;u++){var l=[].concat(t[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)),e.push(l))}},e}},6758:t=>{t.exports=function(t){return t[1]}},2740:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(7545),o=n(6902);function i(t,e,n){"symbol"==(0,r.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:n?n+" "+e:e})}catch(t){}return t}var a=n(1369);function c(t,e,n,c,s,u){var l,f,h,d,p,v,m,y=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,g=Object.create,A=[g(null),g(null)],w=e.length;function k(e,n,r){return function(o,i){n&&(i=o,o=t);for(var a=0;a<e.length;a++)i=e[a].apply(o,r?[i]:[]);return r?i:o}}function E(t,e,n,r){if("function"!=typeof t&&(r||void 0!==t))throw new TypeError(e+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return t}function x(t,e,n,o,a,c,s,u,h,d,p){function v(t){if(!p(t))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(e[0]),y=e[3],g=!s,w=1===a,x=3===a,S=4===a,j=2===a;function P(e,n,r){return function(o,i){return n&&(i=o,o=t),r&&r(o),I[e].call(o,i)}}if(!g){var I={},L=[],K=x?"get":S||w?"set":"value";if(h?(d||w?I={get:i((function(){return y(this)}),o,"get"),set:function(t){e[4](this,t)}}:I[K]=y,d||i(I[K],o,j?"":K)):d||(I=Object.getOwnPropertyDescriptor(t,o)),!d&&!h){if((f=A[+u][o])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+I[K].name+") is not supported yet");A[+u][o]=a<3?1:a}}for(var T=t,_=m.length-1;_>=0;_-=n?2:1){var B=E(m[_],"A decorator","be",!0),O=n?m[_-1]:void 0,z={},C={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:l,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");E(e,"An initializer","be",!0),c.push(e)}.bind(null,z)};if(g)f=B.call(O,T,C),z.v=1,E(f,"class decorators","return")&&(T=f);else if(C.static=u,C.private=h,f=C.access={has:h?p.bind():function(t){return o in t}},S||(f.get=h?j?function(t){return v(t),I.value}:P("get",0,v):function(t){return t[o]}),j||x||(f.set=h?P("set",0,v):function(t,e){t[o]=e}),T=B.call(O,w?{get:I.get,set:I.set}:I[K],C),z.v=1,w){if("object"==(0,r.A)(T)&&T)(f=E(T.get,"accessor.get"))&&(I.get=f),(f=E(T.set,"accessor.set"))&&(I.set=f),(f=E(T.init,"accessor.init"))&&L.unshift(f);else if(void 0!==T)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(T,(d?"field":"method")+" decorators","return")&&(d?L.unshift(T):I[K]=T)}return a<2&&s.push(k(L,u,1),k(c,u,0)),d||g||(h?w?s.splice(-1,0,P("get",u),P("set",u)):s.push(j?I[K]:E.call.bind(I[K])):b(t,o,I)),T}function S(t){return b(t,y,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[y]),l=g(null==l?null:l),p=[],v=function(t){t&&p.push(k(t))},m=function(e,r){for(var i=0;i<n.length;i++){var c=n[i],u=c[1],l=7&u;if((8&u)==e&&!l==r){var f=c[2],v=!!c[3],m=16&u;x(e?t:t.prototype,c,m,v?"#"+f:(0,a.A)(f),l,l<2?[]:e?d=d||[]:h=h||[],p,!!e,v,r,e&&v?function(e){return(0,o.A)(e)===t}:s)}}},m(8,0),m(0,0),m(8,1),m(0,1),v(h),v(d),f=p,w||S(t),{e:f,get c(){var n=[];return w&&[S(t=x(t,[e],c,t.name,5,n)),k(n,1)]}}}},2559:(t,e,n)=>{function r(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")}n.d(e,{A:()=>r})},6902:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(7545);function o(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,r.A)(t):"null"));return t}},2016:(t,e,n)=>{function r(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>r})},829:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(2559);function o(t,e){return t.get((0,r.A)(t,e))}},918:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(2016);function o(t,e,n){(0,r.A)(t,e),e.set(t,n)}},6121:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(2559);function o(t,e,n){return t.set((0,r.A)(t,e),n),n}},1369:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(7545);function o(t){var e=function(t,e){if("object"!=(0,r.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.A)(e)?e:e+""}},7545:(t,e,n)=>{function r(t){return r="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},r(t)}n.d(e,{A:()=>r})},764:(t,e,n)=>{n.d(e,{LP:()=>i});var r=n(1201),o=n(9924);function i(t,e,n,c){var s=[],u=[],l=[],f=0;return t.forEach((t=>{if(t.key=""===c?"".concat(f):"".concat(c,".").concat(f),function(t){return"group"===t.type}(t)||function(t,e){return Boolean("subMenu"===t.type||void 0)}(t)){var h=i(t.items,e,n,t.key);s.push(...h.selectedKeys),(h.selectedKeys.length||t.defaultExpanded)&&u.push(t.key),u.push(...h.openedKeys),l.push(...h.matchedKeys)}else if(function(t,e,n){if(!t.to)return!1;var i="object"==typeof t.to?t.to:(0,r.parsePath)(t.to),c=i.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),s=!!(0,o.matchPath)(e,{path:c,exact:t.exact});if(s&&t.activeMatchSearch&&(s=a(n,i.search)),!s&&Array.isArray(t.activeIncludes))for(var u of t.activeIncludes){var l,f=void 0,h=u.includes("?");if(h&&(f=(0,r.parsePath)(u)),(s=!!(0,o.matchPath)(e,{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(t.activeExcludes))for(var d of t.activeExcludes)if(!(s=!(0,o.matchPath)(e,{path:d,exact:!0})))break;return s}(t,e,n)){s.push(String(t.key));for(var d=t.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(t,e){var n=new URLSearchParams(t),r=new URLSearchParams(e);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.5e477975.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see workbench-action.ce202905.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[5425,1369,2052],{1959:(t,e,r)=>{"use strict";r.r(e),r.d(e,{WorkbenchAction:()=>d});var n,i,o,c,a,s,u,l,f,h,p,v,d,g=r(918),b=r(6121),y=r(829),m=r(2740),A=r(8769),w=r.n(A),k=r(3443),S=r(720),j=r(5292),x=r(3373),E=r.n(x),{defineElement:O,property:T}=(0,k.createDecorators)(),_=(0,S.wrapBrick)("eo-link"),P=(0,S.wrapBrick)("eo-icon"),W=new WeakMap,z=new WeakMap,M=new WeakMap,B=new WeakMap,C=new WeakMap;class D extends S.ReactNextElement{constructor(){super(...arguments),(0,g.A)(this,W,o(this)),(0,g.A)(this,z,(c(this),a(this))),(0,g.A)(this,M,(s(this),u(this))),(0,g.A)(this,B,(l(this),f(this))),(0,g.A)(this,C,(h(this),p(this))),v(this)}get icon(){return(0,y.A)(W,this)}set icon(t){(0,b.A)(W,this,t)}get to(){return(0,y.A)(z,this)}set to(t){(0,b.A)(z,this,t)}get active(){return(0,y.A)(M,this)}set active(t){(0,b.A)(M,this,t)}get href(){return(0,y.A)(B,this)}set href(t){(0,b.A)(B,this,t)}get target(){return(0,y.A)(C,this)}set target(t){(0,b.A)(C,this,t)}render(){return w().createElement(N,{to:this.to,icon:this.icon,active:this.active,href:this.href,target:this.target})}}function N(t){var{icon:e,to:r,active:n,href:i,target:o}=t;return w().createElement(_,{className:E()("action",{active:n}),url:r,href:i,target:o},w().createElement(P,e))}n=D,({e:[o,c,a,s,u,l,f,h,p,v],c:[d,i]}=(0,m.A)(n,[O("visual-builder.workbench-action",{styleTexts:[j.A]})],[[T({attribute:!1}),1,"icon"],[T(),1,"to"],[T({type:Boolean}),1,"active"],[T(),1,"href"],[T(),1,"target"]],0,void 0,S.ReactNextElement)),i()},5292:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(6758),i=r.n(n),o=r(935),c=r.n(o)()(i());c.push([t.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 a=c.toString()},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var c={};if(n)for(var a=0;a<this.length;a++){var s=this[a][0];null!=s&&(c[s]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);n&&c[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},6758:t=>{"use strict";t.exports=function(t){return t[1]}},3373:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=c(t,o(r)))}return t}function o(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=c(e,r));return e}function c(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},2740:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(7545),i=r(6902);function o(t,e,r){"symbol"==(0,n.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:r?r+" "+e:e})}catch(t){}return t}var c=r(1369);function a(t,e,r,a,s,u){var l,f,h,p,v,d,g,b=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,m=Object.create,A=[m(null),m(null)],w=e.length;function k(e,r,n){return function(i,o){r&&(o=i,i=t);for(var c=0;c<e.length;c++)o=e[c].apply(i,n?[o]:[]);return n?o:i}}function S(t,e,r,n){if("function"!=typeof t&&(n||void 0!==t))throw new TypeError(e+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return t}function j(t,e,r,i,c,a,s,u,h,p,v){function d(t){if(!v(t))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(e[0]),b=e[3],m=!s,w=1===c,j=3===c,x=4===c,E=2===c;function O(e,r,n){return function(i,o){return r&&(o=i,i=t),n&&n(i),T[e].call(i,o)}}if(!m){var T={},_=[],P=j?"get":x||w?"set":"value";if(h?(p||w?T={get:o((function(){return b(this)}),i,"get"),set:function(t){e[4](this,t)}}:T[P]=b,p||o(T[P],i,E?"":P)):p||(T=Object.getOwnPropertyDescriptor(t,i)),!p&&!h){if((f=A[+u][i])&&7!=(f^c))throw Error("Decorating two elements with the same name ("+T[P].name+") is not supported yet");A[+u][i]=c<3?1:c}}for(var W=t,z=g.length-1;z>=0;z-=r?2:1){var M=S(g[z],"A decorator","be",!0),B=r?g[z-1]:void 0,C={},D={kind:["field","accessor","method","getter","setter","class"][c],name:i,metadata:l,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");S(e,"An initializer","be",!0),a.push(e)}.bind(null,C)};if(m)f=M.call(B,W,D),C.v=1,S(f,"class decorators","return")&&(W=f);else if(D.static=u,D.private=h,f=D.access={has:h?v.bind():function(t){return i in t}},x||(f.get=h?E?function(t){return d(t),T.value}:O("get",0,d):function(t){return t[i]}),E||j||(f.set=h?O("set",0,d):function(t,e){t[i]=e}),W=M.call(B,w?{get:T.get,set:T.set}:T[P],D),C.v=1,w){if("object"==(0,n.A)(W)&&W)(f=S(W.get,"accessor.get"))&&(T.get=f),(f=S(W.set,"accessor.set"))&&(T.set=f),(f=S(W.init,"accessor.init"))&&_.unshift(f);else if(void 0!==W)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else S(W,(p?"field":"method")+" decorators","return")&&(p?_.unshift(W):T[P]=W)}return c<2&&s.push(k(_,u,1),k(a,u,0)),p||m||(h?w?s.splice(-1,0,O("get",u),O("set",u)):s.push(E?T[P]:S.call.bind(T[P])):y(t,i,T)),W}function x(t){return y(t,b,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[b]),l=m(null==l?null:l),v=[],d=function(t){t&&v.push(k(t))},g=function(e,n){for(var o=0;o<r.length;o++){var a=r[o],u=a[1],l=7&u;if((8&u)==e&&!l==n){var f=a[2],d=!!a[3],g=16&u;j(e?t:t.prototype,a,g,d?"#"+f:(0,c.A)(f),l,l<2?[]:e?p=p||[]:h=h||[],v,!!e,d,n,e&&d?function(e){return(0,i.A)(e)===t}:s)}}},g(8,0),g(0,0),g(8,1),g(0,1),d(h),d(p),f=v,w||x(t),{e:f,get c(){var r=[];return w&&[x(t=j(t,[e],a,t.name,5,r)),k(r,1)]}}}},2559:(t,e,r)=>{"use strict";function n(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}r.d(e,{A:()=>n})},6902:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7545);function i(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,n.A)(t):"null"));return t}},2016:(t,e,r)=>{"use strict";function n(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(e,{A:()=>n})},829:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(2559);function i(t,e){return t.get((0,n.A)(t,e))}},918:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(2016);function i(t,e,r){(0,n.A)(t,e),e.set(t,r)}},6121:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(2559);function i(t,e,r){return t.set((0,n.A)(t,e),r),r}},1369:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7545);function i(t){var e=function(t,e){if("object"!=(0,n.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!=(0,n.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(e)?e:e+""}},7545:(t,e,r)=>{"use strict";function n(t){return n="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},n(t)}r.d(e,{A:()=>n})}}]);
|
|
3
|
-
//# sourceMappingURL=workbench-action.ce202905.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see workbench-history-action.1e2ead8a.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:()=>c,K:()=>o,NS:()=>a});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}({}),a="bricks/visual-builder/workbench-history-action",c={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:()=>B,WorkbenchHistoryActionComponent:()=>rt});var o,a,c,r,i,l,s,d,E,u,L,A,O,p,N,f,b,h,v=n(9740),R=n(4635),I=n(918),m=n(6902),_=n(5536),T=n(6121),g=n(829),y=n(2740),S=n(8769),P=n.n(S),U=n(3443),D=n(720),C=n(9924),k=(n(6329),n(155)),K=n.n(k),M=n(1361),w=n(5502),F=n(6156),j=n(4107),x=n(8675);(0,w.initializeReactI18n)(F.NS,F.I);var B,{defineElement:W,property:z,event:G}=(0,U.createDecorators)(),V=(0,D.wrapBrick)("eo-button"),Y=(0,D.wrapBrick)("eo-link"),H=(0,D.wrapBrick)("eo-icon"),J=(0,D.wrapBrick)("eo-easyops-avatar"),q=(0,D.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",beforeVisibleChange:"before.visible.change"}),Q=new WeakMap,X=new WeakMap,Z=new WeakMap,$=new WeakSet,tt=new WeakMap,et=new WeakMap,nt=new WeakMap,ot=new WeakMap,at=new WeakMap;class ct extends D.ReactNextElement{constructor(){super(...arguments),(0,R.A)(this,$),(0,I.A)(this,Q,c(this)),(0,I.A)(this,X,(r(this),i(this))),(0,I.A)(this,Z,(l(this),s(this))),(0,I.A)(this,tt,(u(this),t=>{(0,_.A)($,this,d).emit(t)})),(0,I.A)(this,et,L(this)),(0,I.A)(this,nt,(p(this),t=>{(0,_.A)($,this,A).emit(t)})),(0,I.A)(this,ot,N(this)),(0,I.A)(this,at,(h(this),()=>{(0,_.A)($,this,f).emit()}))}get appId(){return(0,g.A)(Q,this)}set appId(t){(0,T.A)(Q,this,t)}get projectId(){return(0,g.A)(X,this)}set projectId(t){(0,T.A)(X,this,t)}render(){return P().createElement(rt,{appId:this.appId,projectId:this.projectId,onHistoryItemClick:(0,g.A)(tt,this),onRollback:(0,g.A)(nt,this),onRollbackAll:(0,g.A)(at,this)})}}function rt(t){var{appId:e,onHistoryItemClick:n,onRollback:o,onRollbackAll:a}=t,{t:c}=(0,w.useTranslation)(F.NS),[r,i]=(0,S.useState)(!1),[l,s]=(0,S.useState)(!0),[d,E]=(0,S.useState)(!1),[u,L]=(0,S.useState)([]),A=(0,S.useRef)(""),O=t=>{i(!0),(0,j.R)(e,{ts:A.current,limit:20}).then((e=>{L((n=>{var o=e.list.map((t=>(0,v.A)((0,v.A)({},t),{},{translation:(0,x.B)(t)})));return t?o:n.concat(o)})),A.current=e.ts,E(e.list.length<20),s(e.list.length<20)})).catch((t=>{(0,C.handleHttpError)(t)})).finally((()=>{i(!1)}))};return P().createElement(q,{placement:"bottom",trigger:"click",arrow:!0,arrowColor:"var(--color-fill-bg-container-4)",beforeVisibleChange:t=>{t.detail&&(s(!0),E(!1),L([]),A.current="",O(!0))}},P().createElement(V,{slot:"anchor",shape:"circle",className:"history-action",icon:{lib:"antd",icon:"history",theme:"outlined"}}),P().createElement("div",null,P().createElement("div",{className:"history-title"},"History"),P().createElement("div",{className:"history-list"},u.length?P().createElement(P().Fragment,null,u.map(((t,e)=>P().createElement(it,{key:"".concat(t.uniqueKey,"-").concat(t.ts),data:t,enableRollback:0!==e&&"rollback"!==t.action,current:0===e,onHistoryItemClick:n,onRollback:o}))),!l&&P().createElement("span",{className:"load-more-container"},P().createElement(Y,{className:"load-more",disabled:r,onClick:()=>O()},c(F.K.LOAD_MORE))),d&&P().createElement("span",{className:"end-container"},"The End",P().createElement(H,{className:"rollback-all",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>a()}))):P().createElement("div",{className:"empty"},c(r?F.K.LOADING:F.K.NO_DATA))),P().createElement("slot",null)))}function it(t){var{data:e,enableRollback:n,current:o,onHistoryItemClick:a,onRollback:c}=t,r=K()(Number(e.ts)/1e6),i=K().duration(r.diff(K()())),l=i.days()<=-1?r.format("YYYY-MM-DD HH:mm:ss"):i.humanize(!0,{ss:0,s:60,m:60,h:24});return P().createElement("div",{className:"item-container"},P().createElement("div",{className:"item-title"},P().createElement("div",{className:"title-left",onClick:()=>a((0,v.A)((0,v.A)({},e),{},{enableRollback:n}))},P().createElement("div",{className:"topic",title:e.translation.abstract},e.translation.abstract),o&&P().createElement("div",{className:"branch"},"(current)")),P().createElement("div",{className:"title-right"},n&&P().createElement(H,{className:"rollback",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>c(e)}))),P().createElement("div",{className:"item-info"},P().createElement(J,{className:"avatar",nameOrInstanceId:e.user,size:"xs"}),P().createElement("div",{className:"time"},l),P().createElement("div",{className:"operator"},e.user)))}o=ct,({e:[c,r,i,l,s,d,E,u,L,A,O,p,N,f,b,h],c:[B,a]}=(0,y.A)(o,[W("visual-builder.workbench-history-action",{styleTexts:[M.A]})],[[z(),1,"appId"],[z(),1,"projectId"],[G({type:"history.item.click"}),1,"historyItemClickEvent",t=>(0,g.A)(Z,t),(t,e)=>(0,T.A)(Z,t,e)],[G({type:"rollback"}),1,"rollbackEvent",t=>(0,g.A)(et,t),(t,e)=>(0,T.A)(et,t,e)],[G({type:"rollback.all"}),1,"rollbackAllEvent",t=>(0,g.A)(ot,t),(t,e)=>(0,T.A)(ot,t,e)]],0,(t=>at.has((0,m.A)(t))),D.ReactNextElement)),a()},8675:(t,e,n)=>{n.d(e,{B:()=>s});var o=n(6156),a=n(8799),c={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,A,O,p,N,f,b,h,v,R,I,m,_="rollback"!==t.action||t.rollBackIdInfo?t.action:"rollback_all",T=a.i18n.t(null!==(e=i[t.category])&&void 0!==e?e:t.category),g=a.i18n.t(null!==(n=c[_])&&void 0!==n?n:_),y=a.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=a.i18n.t(null!==(L=l[null===(A=t.abstract)||void 0===A?void 0:A.rightObjectId])&&void 0!==L?L:null===(O=t.abstract)||void 0===O?void 0:O.rightObjectId),P=d(null===(p=t.abstract)||void 0===p?void 0:p.nodes,null===(N=t.abstract)||void 0===N?void 0:N.nodesCount),U=d(null===(f=t.abstract)||void 0===f?void 0:f.leftNodes,null===(b=t.abstract)||void 0===b?void 0:b.leftNodesCount),D=d(null===(h=t.abstract)||void 0===h?void 0:h.rightNodes,null===(v=t.abstract)||void 0===v?void 0:v.rightNodesCount),C="rollback"===_?s(t.rollBackIdInfo).abstract:null;return{category:T,action:g,leftObjectId:y,rightObjectId:S,nodes:P,leftNodes:U,rightNodes:D,abstract:a.i18n.t(null!==(R=r[_])&&void 0!==R?R:_,{category:T,nodes:P,leftNodes:U,rightNodes:D,nodeChanges:null===(I=t.abstract)||void 0===I||null===(I=I.nodeChanges)||void 0===I?void 0:I.join(", "),relationChanges:null===(m=t.abstract)||void 0===m||null===(m=m.relationChanges)||void 0===m?void 0:m.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 a.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),a=n.n(o),c=n(935),r=n.n(c)()(a());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,a,c){"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!==c&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=c),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),a&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=a):d[4]="".concat(a)),e.push(d))}},e}},6758:t=>{t.exports=function(t){return t[1]}},2740:(t,e,n)=>{n.d(e,{A:()=>i});var o=n(7545),a=n(6902);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}var r=n(1369);function i(t,e,n,i,l,s){var d,E,u,L,A,O,p,N=Symbol.metadata||Symbol.for("Symbol.metadata"),f=Object.defineProperty,b=Object.create,h=[b(null),b(null)],v=e.length;function R(e,n,o){return function(a,c){n&&(c=a,a=t);for(var r=0;r<e.length;r++)c=e[r].apply(a,o?[c]:[]);return o?c:a}}function I(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 m(t,e,n,a,r,i,l,s,u,L,A){function O(t){if(!A(t))throw new TypeError("Attempted to access private element on non-instance")}var p=[].concat(e[0]),N=e[3],b=!l,v=1===r,m=3===r,_=4===r,T=2===r;function g(e,n,o){return function(a,c){return n&&(c=a,a=t),o&&o(a),y[e].call(a,c)}}if(!b){var y={},S=[],P=m?"get":_||v?"set":"value";if(u?(L||v?y={get:c((function(){return N(this)}),a,"get"),set:function(t){e[4](this,t)}}:y[P]=N,L||c(y[P],a,T?"":P)):L||(y=Object.getOwnPropertyDescriptor(t,a)),!L&&!u){if((E=h[+s][a])&&7!=(E^r))throw Error("Decorating two elements with the same name ("+y[P].name+") is not supported yet");h[+s][a]=r<3?1:r}}for(var U=t,D=p.length-1;D>=0;D-=n?2:1){var C=I(p[D],"A decorator","be",!0),k=n?p[D-1]:void 0,K={},M={kind:["field","accessor","method","getter","setter","class"][r],name:a,metadata:d,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");I(e,"An initializer","be",!0),i.push(e)}.bind(null,K)};if(b)E=C.call(k,U,M),K.v=1,I(E,"class decorators","return")&&(U=E);else if(M.static=s,M.private=u,E=M.access={has:u?A.bind():function(t){return a in t}},_||(E.get=u?T?function(t){return O(t),y.value}:g("get",0,O):function(t){return t[a]}),T||m||(E.set=u?g("set",0,O):function(t,e){t[a]=e}),U=C.call(k,v?{get:y.get,set:y.set}:y[P],M),K.v=1,v){if("object"==(0,o.A)(U)&&U)(E=I(U.get,"accessor.get"))&&(y.get=E),(E=I(U.set,"accessor.set"))&&(y.set=E),(E=I(U.init,"accessor.init"))&&S.unshift(E);else if(void 0!==U)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else I(U,(L?"field":"method")+" decorators","return")&&(L?S.unshift(U):y[P]=U)}return r<2&&l.push(R(S,s,1),R(i,s,0)),L||b||(u?v?l.splice(-1,0,g("get",s),g("set",s)):l.push(T?y[P]:I.call.bind(y[P])):f(t,a,y)),U}function _(t){return f(t,N,{configurable:!0,enumerable:!0,value:d})}return void 0!==s&&(d=s[N]),d=b(null==d?null:d),A=[],O=function(t){t&&A.push(R(t))},p=function(e,o){for(var c=0;c<n.length;c++){var i=n[c],s=i[1],d=7&s;if((8&s)==e&&!d==o){var E=i[2],O=!!i[3],p=16&s;m(e?t:t.prototype,i,p,O?"#"+E:(0,r.A)(E),d,d<2?[]:e?L=L||[]:u=u||[],A,!!e,O,o,e&&O?function(e){return(0,a.A)(e)===t}:l)}}},p(8,0),p(0,0),p(8,1),p(0,1),O(u),O(L),E=A,v||_(t),{e:E,get c(){var n=[];return v&&[_(t=m(t,[e],i,t.name,5,n)),R(n,1)]}}}},2559:(t,e,n)=>{function o(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")}n.d(e,{A:()=>o})},6330:(t,e,n)=>{function o(t,e,n,o,a,c,r){try{var i=t[c](r),l=i.value}catch(t){return void n(t)}i.done?e(l):Promise.resolve(l).then(o,a)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(a,c){var r=t.apply(e,n);function i(t){o(r,a,c,i,l,"next",t)}function l(t){o(r,a,c,i,l,"throw",t)}i(void 0)}))}}n.d(e,{A:()=>a})},6902:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(7545);function a(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})},829:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(2559);function a(t,e){return t.get((0,o.A)(t,e))}},918:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(2016);function a(t,e,n){(0,o.A)(t,e),e.set(t,n)}},6121:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(2559);function a(t,e,n){return t.set((0,o.A)(t,e),n),n}},5536:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(2559);function a(t,e,n){return n((0,o.A)(t,e))}},4635:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(2016);function a(t,e){(0,o.A)(t,e),e.add(t)}},4586:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(1369);function a(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:()=>c});var o=n(4586);function a(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 c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,o.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},1369:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(7545);function a(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 a=n.call(t,"string");if("object"!=(0,o.A)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,o.A)(e)?e: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),a=n(6330),c=n(5381),r=function(){var t=(0,a.A)((function*(t,e,n){return(yield c.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.1e2ead8a.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see workbench-pane.5d9055cf.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[7997,1369,2052],{3147:(t,e,r)=>{"use strict";r.r(e),r.d(e,{WorkbenchPane:()=>y});var n,i,o,a,c,s,l,u,d,p,h,f,b,v,m,g,y,A=r(4635),w=r(918),x=r(6902),k=r(5536),E=r(6121),S=r(829),j=r(2740),N=r(8769),T=r.n(N),W=r(3443),z=r(720),C=r(7180),M=r(9765),O=r(7290),P=r(3373),_=r.n(P),L=(0,z.wrapBrick)("eo-icon"),{defineElement:F,property:D,event:I}=(0,W.createDecorators)(),R=new WeakMap,B=new WeakMap,G=new WeakMap,q=new WeakMap,H=new WeakSet,J=new WeakMap,K=new WeakMap,Q=new WeakMap;class U extends z.ReactNextElement{constructor(){super(...arguments),(0,A.A)(this,H),(0,w.A)(this,R,o(this)),(0,w.A)(this,B,(a(this),c(this))),(0,w.A)(this,G,(s(this),l(this))),(0,w.A)(this,q,(u(this),d(this))),(0,w.A)(this,J,(f(this),t=>{t!==this.active&&(this.active=t,(0,k.A)(H,this,p).emit(t))})),(0,w.A)(this,K,b(this)),(0,w.A)(this,Q,(g(this),()=>{(0,k.A)(H,this,v).emit()}))}get titleLabel(){return(0,S.A)(R,this)}set titleLabel(t){(0,E.A)(R,this,t)}get active(){return(0,S.A)(B,this)}set active(t){(0,E.A)(B,this,t)}get badge(){return(0,S.A)(G,this)}set badge(t){(0,E.A)(G,this,t)}render(){return T().createElement(V,{titleLabel:this.titleLabel,active:this.active,badge:this.badge,onActiveChange:(0,S.A)(J,this),onFirstActivated:(0,S.A)(Q,this)})}}function V(t){var{titleLabel:e,active:r,badge:n,onActiveChange:i,onFirstActivated:o}=t,[a,c]=(0,N.useState)(r),[s,l]=(0,N.useState)(!1);(0,N.useEffect)((()=>{c(r)}),[r]),(0,N.useEffect)((()=>{null==i||i(a)}),[a,i]);var u=(0,N.useCallback)((()=>{c((t=>!t)),s||a||(l(!0),null==o||o())}),[s,a,o]),d=(0,N.useRef)(),[p,h]=(0,N.useState)(!1),f=(0,N.useMemo)((()=>(0,O.G)((()=>{h(d.current.scrollTop>0)}))),[]);return T().createElement("div",{className:_()("pane",{scrolled:p})},T().createElement("div",{className:"pane-header",tabIndex:0,onClick:u},T().createElement("div",{className:"pane-title"},T().createElement("span",{className:"title-icon"},a?T().createElement(L,{lib:"antd",theme:"outlined",icon:"down"}):T().createElement(L,{lib:"antd",theme:"outlined",icon:"right"})),T().createElement("div",{className:"title-label"},e),T().createElement("slot",{name:"title"})),T().createElement("slot",{name:"actions"}),n&&T().createElement("div",{className:"badge"},n),T().createElement("div",{className:"pane-scroll-shadow"})),T().createElement("div",{className:"pane-body custom-scrollbar-container",onScroll:f,ref:d},T().createElement("slot",null,T().createElement("div",{style:{padding:"10px 20px",color:"var(--text-color-secondary)"}},"No content"))))}n=U,({e:[o,a,c,s,l,u,d,p,h,f,b,v,m,g],c:[y,i]}=(0,j.A)(n,[F("visual-builder.workbench-pane",{styleTexts:[C.A,M.A]})],[[D(),1,"titleLabel"],[D({type:Boolean}),1,"active"],[D({type:Number}),1,"badge"],[I({type:"active.change"}),1,"activeChangeEvent",t=>(0,S.A)(q,t),(t,e)=>(0,E.A)(q,t,e)],[I({type:"active.firstActivated"}),1,"activeFirstActivatedEvent",t=>(0,S.A)(K,t),(t,e)=>(0,E.A)(K,t,e)]],0,(t=>Q.has((0,x.A)(t))),z.ReactNextElement)),i()},9765:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(6758),i=r.n(n),o=r(935),a=r.n(o)()(i());a.push([t.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 c=a.toString()},7180:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(6758),i=r.n(n),o=r(935),a=r.n(o)()(i());a.push([t.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 c=a.toString()},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},6758:t=>{"use strict";t.exports=function(t){return t[1]}},3373:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=a(t,o(r)))}return t}function o(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=a(e,r));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},2740:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(7545),i=r(6902);function o(t,e,r){"symbol"==(0,n.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:r?r+" "+e:e})}catch(t){}return t}var a=r(1369);function c(t,e,r,c,s,l){var u,d,p,h,f,b,v,m=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,y=Object.create,A=[y(null),y(null)],w=e.length;function x(e,r,n){return function(i,o){r&&(o=i,i=t);for(var a=0;a<e.length;a++)o=e[a].apply(i,n?[o]:[]);return n?o:i}}function k(t,e,r,n){if("function"!=typeof t&&(n||void 0!==t))throw new TypeError(e+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return t}function E(t,e,r,i,a,c,s,l,p,h,f){function b(t){if(!f(t))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(e[0]),m=e[3],y=!s,w=1===a,E=3===a,S=4===a,j=2===a;function N(e,r,n){return function(i,o){return r&&(o=i,i=t),n&&n(i),T[e].call(i,o)}}if(!y){var T={},W=[],z=E?"get":S||w?"set":"value";if(p?(h||w?T={get:o((function(){return m(this)}),i,"get"),set:function(t){e[4](this,t)}}:T[z]=m,h||o(T[z],i,j?"":z)):h||(T=Object.getOwnPropertyDescriptor(t,i)),!h&&!p){if((d=A[+l][i])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+T[z].name+") is not supported yet");A[+l][i]=a<3?1:a}}for(var C=t,M=v.length-1;M>=0;M-=r?2:1){var O=k(v[M],"A decorator","be",!0),P=r?v[M-1]:void 0,_={},L={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:u,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");k(e,"An initializer","be",!0),c.push(e)}.bind(null,_)};if(y)d=O.call(P,C,L),_.v=1,k(d,"class decorators","return")&&(C=d);else if(L.static=l,L.private=p,d=L.access={has:p?f.bind():function(t){return i in t}},S||(d.get=p?j?function(t){return b(t),T.value}:N("get",0,b):function(t){return t[i]}),j||E||(d.set=p?N("set",0,b):function(t,e){t[i]=e}),C=O.call(P,w?{get:T.get,set:T.set}:T[z],L),_.v=1,w){if("object"==(0,n.A)(C)&&C)(d=k(C.get,"accessor.get"))&&(T.get=d),(d=k(C.set,"accessor.set"))&&(T.set=d),(d=k(C.init,"accessor.init"))&&W.unshift(d);else if(void 0!==C)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else k(C,(h?"field":"method")+" decorators","return")&&(h?W.unshift(C):T[z]=C)}return a<2&&s.push(x(W,l,1),x(c,l,0)),h||y||(p?w?s.splice(-1,0,N("get",l),N("set",l)):s.push(j?T[z]:k.call.bind(T[z])):g(t,i,T)),C}function S(t){return g(t,m,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[m]),u=y(null==u?null:u),f=[],b=function(t){t&&f.push(x(t))},v=function(e,n){for(var o=0;o<r.length;o++){var c=r[o],l=c[1],u=7&l;if((8&l)==e&&!u==n){var d=c[2],b=!!c[3],v=16&l;E(e?t:t.prototype,c,v,b?"#"+d:(0,a.A)(d),u,u<2?[]:e?h=h||[]:p=p||[],f,!!e,b,n,e&&b?function(e){return(0,i.A)(e)===t}:s)}}},v(8,0),v(0,0),v(8,1),v(0,1),b(p),b(h),d=f,w||S(t),{e:d,get c(){var r=[];return w&&[S(t=E(t,[e],c,t.name,5,r)),x(r,1)]}}}},2559:(t,e,r)=>{"use strict";function n(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}r.d(e,{A:()=>n})},6902:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7545);function i(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,n.A)(t):"null"));return t}},2016:(t,e,r)=>{"use strict";function n(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(e,{A:()=>n})},829:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(2559);function i(t,e){return t.get((0,n.A)(t,e))}},918:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(2016);function i(t,e,r){(0,n.A)(t,e),e.set(t,r)}},6121:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(2559);function i(t,e,r){return t.set((0,n.A)(t,e),r),r}},5536:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(2559);function i(t,e,r){return r((0,n.A)(t,e))}},4635:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(2016);function i(t,e){(0,n.A)(t,e),e.add(t)}},1369:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7545);function i(t){var e=function(t,e){if("object"!=(0,n.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!=(0,n.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(e)?e:e+""}},7545:(t,e,r)=>{"use strict";function n(t){return n="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},n(t)}r.d(e,{A:()=>n})},7290:(t,e,r)=>{"use strict";function n(t){var e,r=()=>cancelAnimationFrame(e),n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];e&&r(),e=requestAnimationFrame((()=>{t(...i)}))};return n.cancel=r,n}r.d(e,{G:()=>n})}}]);
|
|
3
|
-
//# sourceMappingURL=workbench-pane.5d9055cf.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[8137,1369,2052],{7775:(e,t,n)=>{n.r(t),n.d(t,{WorkbenchSidebar:()=>c});var r,i,o,a,c,l=n(4586),s=n(918),u=n(6121),f=n(829),d=n(2740),h=n(8769),v=n.n(h),b=n(3443),p=n(720),m=n(2150),{defineElement:g,property:y}=(0,b.createDecorators)(),A=new WeakMap,w=new WeakMap,k=new WeakMap,x=new WeakMap;class E extends p.ReactNextElement{constructor(){super(...arguments),(0,s.A)(this,A,o(this)),(0,s.A)(this,w,(a(this),()=>{var e;return null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])")})),(0,s.A)(this,k,(()=>{var e=(0,f.A)(w,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,s.A)(this,x,(e=>{var t=e.target.assignedNodes();for(var n of t)n.addEventListener("active.change",(0,f.A)(k,this))})),(0,l.A)(this,"refCallback",(()=>{(0,f.A)(k,this).call(this);var e=(0,f.A)(w,this).call(this);null==e||e.addEventListener("slotchange",(e=>{(0,f.A)(x,this).call(this,e)}))}))}get titleLabel(){return(0,f.A)(A,this)}set titleLabel(e){(0,u.A)(A,this,e)}render(){return v().createElement(S,{titleLabel:this.titleLabel,refCallback:this.refCallback})}}function S(e){var{titleLabel:t,refCallback:n}=e;return v().createElement("div",{className:"sidebar",ref:n},v().createElement("div",{className:"title-container"},v().createElement("div",{className:"title-label"},t),v().createElement("slot",{name:"titleToolbar"})),v().createElement("div",{className:"pane-container"},v().createElement("slot",null)))}r=E,({e:[o,a],c:[c,i]}=(0,d.A)(r,[g("visual-builder.workbench-sidebar",{styleTexts:[m.A]})],[[y(),1,"titleLabel"]],0,void 0,p.ReactNextElement)),i()},2150:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(6758),i=n.n(r),o=n(935),a=n.n(o)()(i());a.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 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,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var l=this[c][0];null!=l&&(a[l]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},6758:e=>{e.exports=function(e){return e[1]}},2740:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(7545),i=n(6902);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}var a=n(1369);function c(e,t,n,c,l,s){var u,f,d,h,v,b,p,m=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,y=Object.create,A=[y(null),y(null)],w=t.length;function k(t,n,r){return function(i,o){n&&(o=i,i=e);for(var a=0;a<t.length;a++)o=t[a].apply(i,r?[o]:[]);return r?o:i}}function x(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,i,a,c,l,s,d,h,v){function b(e){if(!v(e))throw new TypeError("Attempted to access private element on non-instance")}var p=[].concat(t[0]),m=t[3],y=!l,w=1===a,E=3===a,S=4===a,j=2===a;function T(t,n,r){return function(i,o){return n&&(o=i,i=e),r&&r(i),L[t].call(i,o)}}if(!y){var L={},N=[],_=E?"get":S||w?"set":"value";if(d?(h||w?L={get:o((function(){return m(this)}),i,"get"),set:function(e){t[4](this,e)}}:L[_]=m,h||o(L[_],i,j?"":_)):h||(L=Object.getOwnPropertyDescriptor(e,i)),!h&&!d){if((f=A[+s][i])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+L[_].name+") is not supported yet");A[+s][i]=a<3?1:a}}for(var C=e,O=p.length-1;O>=0;O-=n?2:1){var P=x(p[O],"A decorator","be",!0),z=n?p[O-1]:void 0,W={},M={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");x(t,"An initializer","be",!0),c.push(t)}.bind(null,W)};if(y)f=P.call(z,C,M),W.v=1,x(f,"class decorators","return")&&(C=f);else if(M.static=s,M.private=d,f=M.access={has:d?v.bind():function(e){return i in e}},S||(f.get=d?j?function(e){return b(e),L.value}:T("get",0,b):function(e){return e[i]}),j||E||(f.set=d?T("set",0,b):function(e,t){e[i]=t}),C=P.call(z,w?{get:L.get,set:L.set}:L[_],M),W.v=1,w){if("object"==(0,r.A)(C)&&C)(f=x(C.get,"accessor.get"))&&(L.get=f),(f=x(C.set,"accessor.set"))&&(L.set=f),(f=x(C.init,"accessor.init"))&&N.unshift(f);else if(void 0!==C)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else x(C,(h?"field":"method")+" decorators","return")&&(h?N.unshift(C):L[_]=C)}return a<2&&l.push(k(N,s,1),k(c,s,0)),h||y||(d?w?l.splice(-1,0,T("get",s),T("set",s)):l.push(j?L[_]:x.call.bind(L[_])):g(e,i,L)),C}function S(e){return g(e,m,{configurable:!0,enumerable:!0,value:u})}return void 0!==s&&(u=s[m]),u=y(null==u?null:u),v=[],b=function(e){e&&v.push(k(e))},p=function(t,r){for(var o=0;o<n.length;o++){var c=n[o],s=c[1],u=7&s;if((8&s)==t&&!u==r){var f=c[2],b=!!c[3],p=16&s;E(t?e:e.prototype,c,p,b?"#"+f:(0,a.A)(f),u,u<2?[]:t?h=h||[]:d=d||[],v,!!t,b,r,t&&b?function(t){return(0,i.A)(t)===e}:l)}}},p(8,0),p(0,0),p(8,1),p(0,1),b(d),b(h),f=v,w||S(e),{e:f,get c(){var n=[];return w&&[S(e=E(e,[t],c,e.name,5,n)),k(n,1)]}}}},2559:(e,t,n)=>{function r(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")}n.d(t,{A:()=>r})},6902:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(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})},829:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return e.set((0,r.A)(e,t),n),n}},4586:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(1369);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},1369:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(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 i=n.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t: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})}}]);
|
|
2
|
-
//# sourceMappingURL=workbench-sidebar.12dddbe0.js.map
|