@next-bricks/visual-builder 1.39.7 → 1.39.9
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/114.be7c654a.js +2 -0
- package/dist/chunks/{114.4b04703b.js.map → 114.be7c654a.js.map} +1 -1
- package/dist/chunks/1889.66ac8bcc.js +2 -0
- package/dist/chunks/1889.66ac8bcc.js.map +1 -0
- package/dist/chunks/2475.34e54f88.js +3 -0
- package/dist/chunks/2475.34e54f88.js.map +1 -0
- package/dist/chunks/{2980.858c327f.js → 2980.fa224d07.js} +2 -2
- package/dist/chunks/{2980.858c327f.js.map → 2980.fa224d07.js.map} +1 -1
- package/dist/chunks/{3171.a0060867.js → 3171.1e6913a1.js} +2 -2
- package/dist/chunks/{3171.a0060867.js.map → 3171.1e6913a1.js.map} +1 -1
- package/dist/chunks/3623.9c58c964.js +2 -0
- package/dist/chunks/3623.9c58c964.js.map +1 -0
- package/dist/chunks/{3744.f6265c04.js → 3744.1ce3c5fa.js} +2 -2
- package/dist/chunks/{3744.f6265c04.js.map → 3744.1ce3c5fa.js.map} +1 -1
- package/dist/chunks/{4228.bba47479.js → 4228.283cf308.js} +2 -2
- package/dist/chunks/{4228.bba47479.js.map → 4228.283cf308.js.map} +1 -1
- package/dist/chunks/4291.1d4bf1e0.js +2 -0
- package/dist/chunks/4291.1d4bf1e0.js.map +1 -0
- package/dist/chunks/{4765.a8431815.js → 4765.a42492b9.js} +2 -2
- package/dist/chunks/{4765.a8431815.js.map → 4765.a42492b9.js.map} +1 -1
- package/dist/chunks/{7218.f6372435.js → 4837.74a58a37.js} +2 -2
- package/dist/chunks/{4837.44891bd8.js.map → 4837.74a58a37.js.map} +1 -1
- package/dist/chunks/{5522.7cc41a07.js → 5522.a511ccf6.js} +3 -3
- package/dist/chunks/{5522.7cc41a07.js.map → 5522.a511ccf6.js.map} +1 -1
- package/dist/chunks/{5552.c4fe27dc.js → 5552.08fd5ac1.js} +2 -2
- package/dist/chunks/{5552.c4fe27dc.js.map → 5552.08fd5ac1.js.map} +1 -1
- package/dist/chunks/{6530.e464c901.js → 6530.b658ef2b.js} +2 -2
- package/dist/chunks/6530.b658ef2b.js.map +1 -0
- package/dist/chunks/{7146.366e659e.js → 7146.078b8ac4.js} +2 -2
- package/dist/chunks/{7146.366e659e.js.map → 7146.078b8ac4.js.map} +1 -1
- package/dist/chunks/{4837.44891bd8.js → 7218.e0a312fb.js} +2 -2
- package/dist/chunks/{7218.f6372435.js.map → 7218.e0a312fb.js.map} +1 -1
- package/dist/chunks/7733.951f3132.js +2 -0
- package/dist/chunks/{7733.da9dc338.js.map → 7733.951f3132.js.map} +1 -1
- package/dist/chunks/{9080.e8687386.js → 9080.0b863051.js} +2 -2
- package/dist/chunks/{9080.e8687386.js.map → 9080.0b863051.js.map} +1 -1
- package/dist/chunks/{batch-update-raw-data-generated-view.132fdea5.js → batch-update-raw-data-generated-view.d031fa7c.js} +3 -3
- package/dist/chunks/{batch-update-raw-data-generated-view.132fdea5.js.map → batch-update-raw-data-generated-view.d031fa7c.js.map} +1 -1
- package/dist/chunks/chat-conversation.f2e17e56.js +3 -0
- package/dist/chunks/chat-conversation.f2e17e56.js.map +1 -0
- package/dist/chunks/chat-preview.fee87267.js +3 -0
- package/dist/chunks/{chat-preview.0c493f29.js.map → chat-preview.fee87267.js.map} +1 -1
- package/dist/chunks/{check-editor-by-name.ee5b7b3f.js → check-editor-by-name.6e2dbb64.js} +2 -2
- package/dist/chunks/{check-editor-by-name.ee5b7b3f.js.map → check-editor-by-name.6e2dbb64.js.map} +1 -1
- package/dist/chunks/contract-select.12a96d54.js +3 -0
- package/dist/chunks/{contract-select.fe63ada2.js.map → contract-select.12a96d54.js.map} +1 -1
- package/dist/chunks/generate-snippets-context-menu.b7dad236.js +2 -0
- package/dist/chunks/{generate-snippets-context-menu.c0aea3e5.js.map → generate-snippets-context-menu.b7dad236.js.map} +1 -1
- package/dist/chunks/{get-config-by-data-for-ai.70c6aadd.js → get-config-by-data-for-ai.c97aaf83.js} +3 -3
- package/dist/chunks/{get-config-by-data-for-ai.70c6aadd.js.map → get-config-by-data-for-ai.c97aaf83.js.map} +1 -1
- package/dist/chunks/get-data-deps.84dd8d22.js +2 -0
- package/dist/chunks/{get-data-deps.fa194b75.js.map → get-data-deps.84dd8d22.js.map} +1 -1
- package/dist/chunks/{get-dependency-tree.924c776e.js → get-dependency-tree.8f7e6c4f.js} +2 -2
- package/dist/chunks/{get-dependency-tree.924c776e.js.map → get-dependency-tree.8f7e6c4f.js.map} +1 -1
- package/dist/chunks/{get-raw-data-system-prompts.39d1e783.js → get-raw-data-system-prompts.b114707f.js} +2 -2
- package/dist/chunks/{get-raw-data-system-prompts.39d1e783.js.map → get-raw-data-system-prompts.b114707f.js.map} +1 -1
- package/dist/chunks/get-usage-member-statistics.4be301d2.js +2 -0
- package/dist/chunks/{get-usage-member-statistics.eaa99c53.js.map → get-usage-member-statistics.4be301d2.js.map} +1 -1
- package/dist/chunks/{inject-chat-preview-agent.8b0fe673.js → inject-chat-preview-agent.c2d213c2.js} +2 -2
- package/dist/chunks/{inject-chat-preview-agent.8b0fe673.js.map → inject-chat-preview-agent.c2d213c2.js.map} +1 -1
- package/dist/chunks/main.d1103202.js +2 -0
- package/dist/chunks/{main.a8fcb5d6.js.map → main.d1103202.js.map} +1 -1
- package/dist/chunks/page-arch-node.57481be9.js +3 -0
- package/dist/chunks/{page-arch-node.534ded26.js.map → page-arch-node.57481be9.js.map} +1 -1
- package/dist/chunks/{parse-path.133cb8ef.js → parse-path.2c755de8.js} +2 -2
- package/dist/chunks/{parse-path.133cb8ef.js.map → parse-path.2c755de8.js.map} +1 -1
- package/dist/chunks/pre-generated-config-preview.ec5b2d6d.js +2 -0
- package/dist/chunks/{pre-generated-config-preview.87199dcf.js.map → pre-generated-config-preview.ec5b2d6d.js.map} +1 -1
- package/dist/chunks/pre-generated-config.0f0b72a4.js +2 -0
- package/dist/chunks/{pre-generated-config.4fb27d28.js.map → pre-generated-config.0f0b72a4.js.map} +1 -1
- package/dist/chunks/pre-generated-container.48467dfe.js +2 -0
- package/dist/chunks/{pre-generated-container.c8ed336b.js.map → pre-generated-container.48467dfe.js.map} +1 -1
- package/dist/chunks/{pre-generated-preview.7e0febcf.js → pre-generated-preview.8827e523.js} +3 -3
- package/dist/chunks/{pre-generated-preview.7e0febcf.js.map → pre-generated-preview.8827e523.js.map} +1 -1
- package/dist/chunks/pre-generated-table-view.aebbc5c2.js +2 -0
- package/dist/chunks/{pre-generated-table-view.f9516521.js.map → pre-generated-table-view.aebbc5c2.js.map} +1 -1
- package/dist/chunks/property-editor.6c93e52f.js +2 -0
- package/dist/chunks/{property-editor.7045ca95.js.map → property-editor.6c93e52f.js.map} +1 -1
- package/dist/chunks/raw-data-preview.6f1b6613.js +3 -0
- package/dist/chunks/{raw-data-preview.6f49113a.js.map → raw-data-preview.6f1b6613.js.map} +1 -1
- package/dist/chunks/raw-metric-preview.4b3c31d2.js +3 -0
- package/dist/chunks/{raw-metric-preview.dc642439.js.map → raw-metric-preview.4b3c31d2.js.map} +1 -1
- package/dist/chunks/{workbench-action-list.9ee292c8.js → workbench-action-list.4957b2ff.js} +2 -2
- package/dist/chunks/{workbench-action-list.9ee292c8.js.map → workbench-action-list.4957b2ff.js.map} +1 -1
- package/dist/chunks/{workbench-action.8e9c0507.js → workbench-action.005f76b5.js} +3 -3
- package/dist/chunks/{workbench-action.8e9c0507.js.map → workbench-action.005f76b5.js.map} +1 -1
- package/dist/chunks/workbench-history-action.7137d177.js +3 -0
- package/dist/chunks/{workbench-history-action.2f710853.js.map → workbench-history-action.7137d177.js.map} +1 -1
- package/dist/chunks/workbench-pane.1cb1ad53.js +3 -0
- package/dist/chunks/{workbench-pane.62f4b081.js.map → workbench-pane.1cb1ad53.js.map} +1 -1
- package/dist/chunks/workbench-sidebar.d0076cb0.js +2 -0
- package/dist/chunks/{workbench-sidebar.53689e68.js.map → workbench-sidebar.d0076cb0.js.map} +1 -1
- package/dist/chunks/{workbench-tree.61546af3.js → workbench-tree.636b214f.js} +3 -3
- package/dist/chunks/{workbench-tree.61546af3.js.map → workbench-tree.636b214f.js.map} +1 -1
- package/dist/index.b7e2292c.js +2 -0
- package/dist/index.b7e2292c.js.map +1 -0
- package/package.json +3 -3
- package/dist/chunks/114.4b04703b.js +0 -2
- package/dist/chunks/1889.57985ee5.js +0 -2
- package/dist/chunks/1889.57985ee5.js.map +0 -1
- package/dist/chunks/3623.c6955147.js +0 -2
- package/dist/chunks/3623.c6955147.js.map +0 -1
- package/dist/chunks/4291.0571a42d.js +0 -2
- package/dist/chunks/4291.0571a42d.js.map +0 -1
- package/dist/chunks/5247.0c4d653d.js +0 -3
- package/dist/chunks/5247.0c4d653d.js.map +0 -1
- package/dist/chunks/6530.e464c901.js.map +0 -1
- package/dist/chunks/7733.da9dc338.js +0 -2
- package/dist/chunks/chat-conversation.c0add67d.js +0 -3
- package/dist/chunks/chat-conversation.c0add67d.js.map +0 -1
- package/dist/chunks/chat-preview.0c493f29.js +0 -3
- package/dist/chunks/contract-select.fe63ada2.js +0 -3
- package/dist/chunks/generate-snippets-context-menu.c0aea3e5.js +0 -2
- package/dist/chunks/get-data-deps.fa194b75.js +0 -2
- package/dist/chunks/get-usage-member-statistics.eaa99c53.js +0 -2
- package/dist/chunks/main.a8fcb5d6.js +0 -2
- package/dist/chunks/page-arch-node.534ded26.js +0 -3
- package/dist/chunks/pre-generated-config-preview.87199dcf.js +0 -2
- package/dist/chunks/pre-generated-config.4fb27d28.js +0 -2
- package/dist/chunks/pre-generated-container.c8ed336b.js +0 -2
- package/dist/chunks/pre-generated-table-view.f9516521.js +0 -2
- package/dist/chunks/property-editor.7045ca95.js +0 -2
- package/dist/chunks/raw-data-preview.6f49113a.js +0 -3
- package/dist/chunks/raw-metric-preview.dc642439.js +0 -3
- package/dist/chunks/workbench-history-action.2f710853.js +0 -3
- package/dist/chunks/workbench-pane.62f4b081.js +0 -3
- package/dist/chunks/workbench-sidebar.53689e68.js +0 -2
- package/dist/index.c7ed311c.js +0 -2
- package/dist/index.c7ed311c.js.map +0 -1
- /package/dist/chunks/{5247.0c4d653d.js.LICENSE.txt → 2475.34e54f88.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5522.7cc41a07.js.LICENSE.txt → 5522.a511ccf6.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{batch-update-raw-data-generated-view.132fdea5.js.LICENSE.txt → batch-update-raw-data-generated-view.d031fa7c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-conversation.c0add67d.js.LICENSE.txt → chat-conversation.f2e17e56.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-preview.0c493f29.js.LICENSE.txt → chat-preview.fee87267.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{contract-select.fe63ada2.js.LICENSE.txt → contract-select.12a96d54.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{get-config-by-data-for-ai.70c6aadd.js.LICENSE.txt → get-config-by-data-for-ai.c97aaf83.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{page-arch-node.534ded26.js.LICENSE.txt → page-arch-node.57481be9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{pre-generated-preview.7e0febcf.js.LICENSE.txt → pre-generated-preview.8827e523.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{raw-data-preview.6f49113a.js.LICENSE.txt → raw-data-preview.6f1b6613.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{raw-metric-preview.dc642439.js.LICENSE.txt → raw-metric-preview.4b3c31d2.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-action.8e9c0507.js.LICENSE.txt → workbench-action.005f76b5.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.2f710853.js.LICENSE.txt → workbench-history-action.7137d177.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-pane.62f4b081.js.LICENSE.txt → workbench-pane.1cb1ad53.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-tree.61546af3.js.LICENSE.txt → workbench-tree.636b214f.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[8689],{5536:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(12559);function r(t,e,n){return n((0,i.A)(t,e))}},11369:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(17545);function r(t){var e=function(t){if("object"!=(0,i.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=(0,i.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,i.A)(e)?e:e+""}},12559:(t,e,n)=>{function i(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:()=>i})},13199:(t,e,n)=>{n.r(e),n.d(e,{GenerateSnippetsContextMenu:()=>J,GenerateSnippetsContextMenuComponent:()=>tt});var i,r=n(74635),o=n(70918),a=n(26902),s=n(5536),c=n(86121),l=n(70829),u=n(62740),d=n(18769),p=n.n(d),m=n(7921),h=n(11280),f=n(94558),v=(n(65168),n(69704)),g=n(75413),b=n(47540);let y,A,w,k,E,x,S,C,j,D,T,M,I,W,z,N;const _=(0,h.wrapBrick)("eo-menu"),O=(0,h.wrapBrick)("eo-menu-item"),P=(0,h.wrapBrick)("eo-tooltip"),B=(0,f.unwrapProvider)("basic.lock-body-scroll");(0,v.initializeReactI18n)(g.NS,g.I);const{defineElement:R,property:G,event:L,method:F}=(0,m.createDecorators)(),H=8;let J;var q=new WeakMap,K=new WeakMap,Q=new WeakMap,U=new WeakMap,V=new WeakSet,X=new WeakMap,Y=new WeakMap,Z=new WeakMap;class $ extends h.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,V),(0,o.A)(this,q,(y(this),w(this))),(0,o.A)(this,K,(k(this),E(this))),(0,o.A)(this,Q,(x(this),S(this))),(0,o.A)(this,U,(C(this),j(this))),(0,o.A)(this,X,(M(this),I(this))),(0,o.A)(this,Y,(N(this),t=>{(0,s.A)(V,this,D).emit(t)})),(0,o.A)(this,Z,(t=>{(0,s.A)(V,this,W).emit(t)}))}get options(){return(0,l.A)(q,this)}set options(t){(0,c.A)(q,this,t)}get active(){return(0,l.A)(K,this)}set active(t){(0,c.A)(K,this,t)}get position(){return(0,l.A)(Q,this)}set position(t){(0,c.A)(Q,this,t)}open(t){let{position:e}=t;this.active=!0,this.position=e}close(){this.active=!1,this.position=void 0}disconnectedCallback(){super.disconnectedCallback(),B(this,!1)}render(){return p().createElement(tt,{active:this.active,element:this,position:this.position,onItemDragStart:(0,l.A)(Y,this),onItemDragEnd:(0,l.A)(Z,this),options:this.options})}}function tt(t){var e,n;let{element:i,active:r,onItemDragEnd:o,onItemDragStart:a,options:s,position:c}=t;const[l,u]=(0,d.useState)(!1),m=(0,d.useRef)(null),[h,f]=(0,d.useState)(null),v=(0,d.useCallback)((t=>{t.preventDefault(),null==i||i.close()}),[i]),g=(0,d.useCallback)(((t,e)=>{var n;u(!0),e.dragConf&&(null===(n=t.dataTransfer)||void 0===n||n.setData(e.dragConf.format,JSON.stringify(e.dragConf.data))),t.target.classList.add("dragging"),null==a||a(e)}),[a]),b=(0,d.useCallback)(((t,e)=>{u(!1),t.target.classList.remove("dragging"),null==i||i.close(),null==o||o(e)}),[i,o]);return(0,d.useEffect)((()=>{B(i,r)}),[r,i]),(0,d.useEffect)((()=>{if(r&&m.current&&c){const t=m.current.getBoundingClientRect(),e=t.width+H,n=t.height+H,{clientWidth:i,clientHeight:r}=document.documentElement,o=[...c];i>e&&c[0]+e>i&&(o[0]=c[0]-e),r>n&&c[1]+n>r&&(o[1]=r-n),f(o)}else f(null)}),[r,c]),p().createElement(p().Fragment,null,!l&&p().createElement("div",{className:"mask",onClick:v,onContextMenu:v}),p().createElement("div",{className:"container",ref:m,style:{left:null===(e=null!=h?h:c)||void 0===e?void 0:e[0],top:null===(n=null!=h?h:c)||void 0===n?void 0:n[1],visibility:h?"visible":"hidden"}},null==s?void 0:s.map(((t,e)=>{var n,i;return p().createElement("div",{key:e},p().createElement("div",{className:"title"},t.title),(null===(n=t.children)||void 0===n?void 0:n.length)&&p().createElement(_,null,null===(i=t.children)||void 0===i?void 0:i.map(((t,e)=>p().createElement(P,{content:t.tooltip,hoist:!0,placement:"left",key:e},p().createElement(O,{disabled:t.disabled,icon:t.icon,draggable:!t.disabled,onDragStart:e=>g(e,t),onDragEnd:e=>b(e,t)},t.text))))))}))))}i=$,({e:[w,k,E,x,S,C,j,D,T,M,I,W,z,N,y],c:[J,A]}=(0,u.A)(i,[R("visual-builder.generate-snippets-context-menu",{styleTexts:[b.A]})],[[G({attribute:!1}),1,"options"],[G({type:Boolean}),1,"active"],[G({attribute:!1}),1,"position"],[L({type:"item.drag.start"}),1,"itemDragStartEvent",t=>(0,l.A)(U,t),(t,e)=>(0,c.A)(U,t,e)],[L({type:"item.drag.end"}),1,"itemDragEndEvent",t=>(0,l.A)(X,t),(t,e)=>(0,c.A)(X,t,e)],[F(),2,"open"],[F(),2,"close"]],0,(t=>Z.has((0,a.A)(t))),h.ReactNextElement)),A()},17545:(t,e,n)=>{function i(t){return i="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},i(t)}n.d(e,{A:()=>i})},26902:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(17545);function r(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,i.A)(t):"null"));return t}},36758:t=>{t.exports=function(t){return t[1]}},40935:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);i&&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),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},47540:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(36758),r=n.n(i),o=n(40935),a=n.n(o)()(r());a.push([t.id,":host{display:inline-block}:host([hidden]){display:none}.mask,\n.container{display:none;position:fixed;z-index:1}.mask{top:0;bottom:0;left:0;right:0;z-index:1}:host([active]) .mask,\n:host([active]) .container{display:block}.container{background:var(--antd-dropdown-menu-bg);border-radius:var(--medius-border-radius);padding:5px}.container .title{padding:5px 12px;cursor:default;color:var(--color-secondary-text);border-bottom:1px solid var(--color-text-divider-line)}.container eo-menu{border:none;padding:5px 0}.container eo-menu eo-menu-item:not([disabled]):hover::part(menu-item){background-color:var(--left-sidebar-item-hover-bg)}.container eo-menu eo-menu-item[disabled]::part(menu-item){cursor:not-allowed}.container eo-menu eo-menu-item::part(menu-item){cursor:grab;padding:5px 12px;border-radius:var(--medius-border-radius);min-width:max-content}.container eo-menu eo-menu-item.dragging{opacity:0.5}.container eo-menu eo-tooltip{display:block}",""]);const s=a.toString()},62740:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(17545),r=n(26902);function o(t,e,n){"symbol"==(0,i.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(11369);function s(t,e,n,s,c,l){var u,d,p,m,h,f,v,g=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,y=Object.create,A=[y(null),y(null)],w=e.length;function k(e,n,i){return function(r,o){n&&(o=r,r=t);for(var a=0;a<e.length;a++)o=e[a].apply(r,i?[o]:[]);return i?o:r}}function E(t,e,n,i){if("function"!=typeof t&&(i||void 0!==t))throw new TypeError(e+" must "+(n||"be")+" a function"+(i?"":" or undefined"));return t}function x(t,e,n,r,a,s,c,l,p,m,h){function f(t){if(!h(t))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(e[0]),g=e[3],y=!c,w=1===a,x=3===a,S=4===a,C=2===a;function j(e,n,i){return function(r,o){return n&&(o=r,r=t),i&&i(r),D[e].call(r,o)}}if(!y){var D={},T=[],M=x?"get":S||w?"set":"value";if(p?(m||w?D={get:o((function(){return g(this)}),r,"get"),set:function(t){e[4](this,t)}}:D[M]=g,m||o(D[M],r,C?"":M)):m||(D=Object.getOwnPropertyDescriptor(t,r)),!m&&!p){if((d=A[+l][r])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+D[M].name+") is not supported yet");A[+l][r]=a<3?1:a}}for(var I=t,W=v.length-1;W>=0;W-=n?2:1){var z=E(v[W],"A decorator","be",!0),N=n?v[W-1]:void 0,_={},O={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:u,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");E(e,"An initializer","be",!0),s.push(e)}.bind(null,_)};if(y)d=z.call(N,I,O),_.v=1,E(d,"class decorators","return")&&(I=d);else if(O.static=l,O.private=p,d=O.access={has:p?h.bind():function(t){return r in t}},S||(d.get=p?C?function(t){return f(t),D.value}:j("get",0,f):function(t){return t[r]}),C||x||(d.set=p?j("set",0,f):function(t,e){t[r]=e}),I=z.call(N,w?{get:D.get,set:D.set}:D[M],O),_.v=1,w){if("object"==(0,i.A)(I)&&I)(d=E(I.get,"accessor.get"))&&(D.get=d),(d=E(I.set,"accessor.set"))&&(D.set=d),(d=E(I.init,"accessor.init"))&&T.unshift(d);else if(void 0!==I)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(I,(m?"field":"method")+" decorators","return")&&(m?T.unshift(I):D[M]=I)}return a<2&&c.push(k(T,l,1),k(s,l,0)),m||y||(p?w?c.splice(-1,0,j("get",l),j("set",l)):c.push(C?D[M]:E.call.bind(D[M])):b(t,r,D)),I}function S(t){return b(t,g,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[g]),u=y(null==u?null:u),h=[],f=function(t){t&&h.push(k(t))},v=function(e,i){for(var o=0;o<n.length;o++){var s=n[o],l=s[1],u=7&l;if((8&l)==e&&!u==i){var d=s[2],f=!!s[3],v=16&l;x(e?t:t.prototype,s,v,f?"#"+d:(0,a.A)(d),u,u<2?[]:e?m=m||[]:p=p||[],h,!!e,f,i,e&&f?function(e){return(0,r.A)(e)===t}:c)}}},v(8,0),v(0,0),v(8,1),v(0,1),f(p),f(m),d=h,w||S(t),{e:d,get c(){var n=[];return w&&[S(t=x(t,[e],s,t.name,5,n)),k(n,1)]}}}},70829:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(12559);function r(t,e){return t.get((0,i.A)(t,e))}},70918:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(72016);function r(t,e,n){(0,i.A)(t,e),e.set(t,n)}},72016:(t,e,n)=>{function i(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>i})},74635:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(72016);function r(t,e){(0,i.A)(t,e),e.add(t)}},75413:(t,e,n)=>{n.d(e,{I:()=>r,NS:()=>i});const i="bricks/visual-builder/generate-snippets-context-menu",r={en:{},zh:{}}},86121:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(12559);function r(t,e,n){return t.set((0,i.A)(t,e),n),n}}}]);
|
|
2
|
-
//# sourceMappingURL=generate-snippets-context-menu.c0aea3e5.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[281],{82651:(e,s,t)=>{t.r(s),t.d(s,{getDataDependency:()=>r});var a=t(94558),l=t(7e4);function r(e,s){const t=new Map;for(const a of e){const e=(0,l.collectMemberUsage)([a.if,a.value,a.resolve],s);t.set(a,e)}return t}customElements.define("visual-builder.get-data-deps",(0,a.createProviderClass)(r))}}]);
|
|
2
|
-
//# sourceMappingURL=get-data-deps.fa194b75.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[8930],{11253:(e,s,r)=>{r.r(s),r.d(s,{getUsageMemberStatistics:()=>i});var t=r(94558),n=r(7e4);async function i(e,s){const{includesFnDeps:r=!1,fnList:t}=s||{},i={usedProperties:new Set,hasNonStaticUsage:!1},a={usedArgs:new Set},o=(0,n.beforeVisitGlobalMember)(i,"FN");(0,n.traverseStoryboardExpressions)(e,((e,s)=>{o(e,s),(0,n.collectAppGetMenuUsage)(a,e,s)}),{matchExpressionString:e=>e.includes("FN")||e.includes("APP.getMenu")});const c=new Set(i.usedProperties);if(r){const e=t.filter((e=>i.usedProperties.has(e.name)));for(const s of e){const e=(0,n.collectMemberUsageInFunction)(s,"FN",!0);Array.from(e).filter((e=>e!==s.name)).forEach((e=>c.add(e)))}}return{functions:Array.from(c),menus:Array.from(a.usedArgs)}}customElements.define("visual-builder.get-usage-member-statistics",(0,t.createProviderClass)(i))}}]);
|
|
2
|
-
//# sourceMappingURL=get-usage-member-statistics.eaa99c53.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{var e,t,r,n,a,o,l,i,c,f,d,u,s,h,b,p,m,v,g,x,y,P,j,k,w,O={17934:(e,t,r)=>{Promise.all([r.e(6724),r.e(7085),r.e(36),r.e(5522),r.e(8769),r.e(7921),r.e(1280),r.e(1030),r.e(4558),r.e(5168),r.e(9475),r.e(5310),r.e(9733),r.e(7372),r.e(1302),r.e(0),r.e(1321),r.e(1304),r.e(9435),r.e(8247),r.e(9704),r.e(1732),r.e(9080),r.e(2980),r.e(6117),r.e(3623)]).then(r.bind(r,33623))}},_={};function S(e){var t=_[e];if(void 0!==t)return t.exports;var r=_[e]={id:e,loaded:!1,exports:{}};return O[e].call(r.exports,r,r.exports,S),r.loaded=!0,r.exports}S.m=O,S.c=_,S.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return S.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,S.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);S.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var l=2&n&&r;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,S.d(a,o),a},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+"."+{36:"b158228e",114:"4b04703b",721:"5e936e74",726:"7981d71b",871:"1ae57c39",879:"4cd65368",934:"22d82dfd",1045:"f6079c60",1120:"84e1f4e2",1122:"a8308217",1136:"4f0b1e92",1215:"08ccbe4b",1304:"9f954ce8",1889:"57985ee5",1931:"fe848969",1940:"83be4317",2201:"183c08d5",2260:"e95c679f",2277:"9f4c867f",2432:"441a5d12",2449:"87bdc3cc",2508:"296baae6",2510:"b6d69957",2593:"df61f6b7",2980:"858c327f",3003:"e32ddbbf",3144:"e5fd4b44",3171:"a0060867",3208:"eac2c02b",3331:"239025dc",3419:"c2f3d911",3623:"c6955147",3744:"f6265c04",3816:"e40a812c",3935:"805b65af",4041:"3d9fe4ae",4190:"f1eff80b",4228:"bba47479",4281:"21dbb21a",4291:"0571a42d",4474:"5fa28436",4491:"5f3df91f",4609:"8899c4ff",4658:"57e36763",4735:"8d0f300f",4765:"a8431815",4837:"44891bd8",5032:"14e135c9",5065:"3f848a74",5191:"b3f695a9",5247:"0c4d653d",5250:"0dec9a62",5307:"62131522",5384:"45dea840",5399:"e52faadf",5498:"80b037e7",5522:"7cc41a07",5548:"beaec5e7",5552:"c4fe27dc",5727:"980ab440",5807:"04aa197a",5936:"66c57ecb",6023:"e4a7cc11",6029:"b4b3ca71",6117:"3cc1a111",6161:"b2b012b5",6519:"c1bca104",6530:"e464c901",6724:"cc08f7ba",6773:"e881fa4a",7085:"c58ac475",7146:"366e659e",7218:"f6372435",7302:"c8e3d725",7304:"b718a086",7353:"98eda42f",7434:"81701c75",7721:"d323d3d3",7733:"da9dc338",7842:"d1cfdaf6",8097:"b8f8b6bd",8231:"1cadac50",8263:"3a99285a",8311:"3484d7d3",8348:"c5a36c3c",8588:"07565372",8633:"2bc1caca",8755:"11b4f58d",8757:"4deac642",8936:"6a1bd22d",8989:"8ff46009",9034:"0fc83a41",9080:"e8687386",9251:"5e3a3027",9263:"625c7625",9515:"1e95d269",9559:"040c34a4",9634:"aa4c8bd4",9831:"2a40e13c",9844:"1b1e3089"}[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),r={},n="@next-bricks/visual-builder:",S.l=(e,t,a,o)=>{if(r[e])r[e].push(t);else{var l,i;if(void 0!==a)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var d=c[f];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+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",n+a),l.src=e),r[e]=[t];var u=(t,n)=>{l.onerror=l.onload=null,clearTimeout(s);var a=r[e];if(delete r[e],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(n))),t)return t(n)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=u.bind(null,l.onerror),l.onload=u.bind(null,l.onload),i&&document.head.appendChild(l)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{S.S={};var e={},t={};S.I=(r,n)=>{n||(n=[]);var a=t[r];if(a||(a=t[r]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[r])return e[r];S.o(S.S,r)||(S.S[r]={});var o=S.S[r],l="@next-bricks/visual-builder",i=(e,t,r,n)=>{var a=o[e]=o[e]||{},i=a[t];(!i||!i.loaded&&(!n!=!i.eager?n:l>i.from))&&(a[t]={get:r,from:l,eager:!!n})},c=[];return"default"===r&&(i("@babel/parser","7.27.2",(()=>S.e(6773).then((()=>()=>S(46773))))),i("@easyops-cn/brick-next-pipes","0.7.3",(()=>Promise.all([S.e(4291),S.e(1030),S.e(5310),S.e(1302)]).then((()=>()=>S(54291))))),i("@next-core/cook","2.5.10",(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(61122))))),i("@next-core/element","1.2.18",(()=>S.e(1045).then((()=>()=>S(21045))))),i("@next-core/http","1.2.13",(()=>S.e(8989).then((()=>()=>S(48989))))),i("@next-core/i18n/react","1.0.83",(()=>Promise.all([S.e(9733),S.e(8097)]).then((()=>()=>S(88097))))),i("@next-core/i18n","1.0.83",(()=>Promise.all([S.e(4558),S.e(9733),S.e(671),S.e(5552)]).then((()=>()=>S(75552))))),i("@next-core/inject","1.0.58",(()=>Promise.all([S.e(1030),S.e(9933),S.e(2277)]).then((()=>()=>S(72277))))),i("@next-core/loader","1.6.16",(()=>S.e(5399).then((()=>()=>S(35399))))),i("@next-core/pipes","2.0.34",(()=>S.e(6519).then((()=>()=>S(76519))))),i("@next-core/react-element","1.0.37",(()=>Promise.all([S.e(8769),S.e(7921),S.e(9435),S.e(114)]).then((()=>()=>S(20114))))),i("@next-core/react-runtime","1.7.28",(()=>Promise.all([S.e(8769),S.e(1280),S.e(1030),S.e(9475),S.e(4837)]).then((()=>()=>S(64837))))),i("@next-core/runtime","1.65.6",(()=>Promise.all([S.e(5247),S.e(1030),S.e(4558),S.e(9733),S.e(7372),S.e(1302),S.e(0),S.e(1321),S.e(1732),S.e(9718)]).then((()=>()=>S(25247))))),i("@next-core/supply","2.3.7",(()=>Promise.all([S.e(1030),S.e(1302),S.e(9933),S.e(9559)]).then((()=>()=>S(49559))))),i("@next-core/theme","1.6.0",(()=>S.e(1889).then((()=>()=>S(51889))))),i("@next-core/utils/general","1.8.4",(()=>S.e(871).then((()=>()=>S(40871))))),i("@next-core/utils/storyboard","1.8.4",(()=>Promise.all([S.e(1030),S.e(4558),S.e(1321),S.e(7146)]).then((()=>()=>S(97146))))),i("history","4.10.1",(()=>S.e(3003).then((()=>()=>S(65384))))),i("i18next-browser-languagedetector","7.2.2",(()=>S.e(726).then((()=>()=>S(50726))))),i("i18next","22.5.1",(()=>S.e(7304).then((()=>()=>S(47304))))),i("js-yaml","3.14.1",(()=>S.e(9515).then((()=>()=>S(19515))))),i("lodash","4.17.21",(()=>S.e(5250).then((()=>()=>S(45250))))),i("moment/locale/zh-cn.js","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(61329))))),i("moment","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(99420))))),i("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([S.e(3144),S.e(8769)]).then((()=>()=>S(43144))))),i("react-i18next","12.3.1",(()=>Promise.all([S.e(7434),S.e(8769)]).then((()=>()=>S(97434))))),i("react","0.0.0-experimental-ee8509801-20230117",(()=>S.e(4041).then((()=>()=>S(14041)))))),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&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(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(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e+"../"})(),a=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},o=(e,t)=>{e=a(e),t=a(t);for(var r=0;;){if(r>=e.length)return r<t.length&&"u"!=(typeof t[r])[0];var n=e[r],o=(typeof n)[0];if(r>=t.length)return"u"==o;var l=t[r],i=(typeof l)[0];if(o!=i)return"o"==o&&"n"==i||"s"==i||"u"==o;if("o"!=o&&"u"!=o&&n!=l)return n<l;r++}},l=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,a=1;a<e.length;a++)n--,r+="u"==(typeof(i=e[a]))[0]?"-":(n>0?".":"")+(n=2,i);return r}var o=[];for(a=1;a<e.length;a++){var i=e[a];o.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?o.pop()+" "+o.pop():l(i))}return c();function c(){return o.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,t)=>{if(0 in e){t=a(t);var r=e[0],n=r<0;n&&(r=-r-1);for(var o=0,l=1,c=!0;;l++,o++){var f,d,u=l<e.length?(typeof e[l])[0]:"";if(o>=t.length||"o"==(d=(typeof(f=t[o]))[0]))return!c||("u"==u?l>r&&!n:""==u!=n);if("u"==d){if(!c||"u"!=u)return!1}else if(c)if(u==d)if(l<=r){if(f!=e[l])return!1}else{if(n?f>e[l]:f<e[l])return!1;f!=e[l]&&(c=!1)}else if("s"!=u&&"n"!=u){if(n||l<=r)return!1;c=!1,l--}else{if(l<=r||d<u!=n)return!1;c=!1}else"s"!=u&&"n"!=u&&(c=!1,l--)}}var s=[],h=s.pop.bind(s);for(o=1;o<e.length;o++){var b=e[o];s.push(1==b?h()|h():2==b?h()&h():b?i(b,t):!h())}return!!h()},c=(e,t)=>e&&S.o(e,t),f=e=>(e.loaded=1,e.get()),d=e=>Object.keys(e).reduce(((t,r)=>(e[r].eager&&(t[r]=e[r]),t)),{}),u=(e,t,r,n)=>{var a=n?d(e[t]):e[t];return(t=Object.keys(a).reduce(((e,t)=>!i(r,t)||e&&!o(e,t)?e:t),0))&&a[t]},s=(e,t,r)=>{var n=r?d(e[t]):e[t];return Object.keys(n).reduce(((e,t)=>!e||!n[e].loaded&&o(e,t)?t:e),0)},h=(e,t,r,n)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+l(n)+")",b=(e,t,r,n,a)=>{var o=e[r];return"No satisfying version ("+l(n)+")"+(a?" for eager consumption":"")+" of shared module "+r+" found in shared scope "+t+".\nAvailable versions: "+Object.keys(o).map((e=>e+" from "+o[e].from)).join(", ")},p=e=>{throw new Error(e)},m=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},g=(e,t,r)=>r?r():((e,t)=>p("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),x=(v=e=>function(t,r,n,a,o){var l=S.I(t);return l&&l.then&&!n?l.then(e.bind(e,t,S.S[t],r,!1,a,o)):e(t,S.S[t],r,n,a,o)})(((e,t,r,n,a,o)=>{if(!c(t,r))return g(e,r,o);var l=u(t,r,a,n);return l?f(l):o?o():void p(b(t,e,r,a,n))})),y=v(((e,t,r,n,a,o)=>{if(!c(t,r))return g(e,r,o);var l=s(t,r,n);return i(a,l)||m(h(t,r,l,a)),f(t[r][l])})),P={},j={18769:()=>x("default","react",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(4041).then((()=>()=>S(14041))))),7921:()=>x("default","@next-core/element",!1,[1,1,2,18],(()=>S.e(1045).then((()=>()=>S(21045))))),11280:()=>x("default","@next-core/react-element",!1,[1,1,0,37],(()=>Promise.all([S.e(7921),S.e(9435),S.e(7733)]).then((()=>()=>S(20114))))),41030:()=>y("default","lodash",!1,[1,4,17,21],(()=>S.e(5250).then((()=>()=>S(45250))))),94558:()=>y("default","@next-core/utils/general",!1,[1,1,8,4],(()=>S.e(871).then((()=>()=>S(40871))))),65168:()=>y("default","@next-core/theme",!1,[1,1,6,0],(()=>S.e(1889).then((()=>()=>S(51889))))),29475:()=>y("default","@next-core/runtime",!1,[1,1,65,6],(()=>Promise.all([S.e(5247),S.e(1030),S.e(4558),S.e(9733),S.e(7372),S.e(1302),S.e(0),S.e(1321),S.e(1732),S.e(9718)]).then((()=>()=>S(25247))))),55310:()=>y("default","js-yaml",!1,[0],(()=>S.e(9515).then((()=>()=>S(19515))))),99733:()=>y("default","@next-core/i18n",!1,[0],(()=>Promise.all([S.e(4558),S.e(671),S.e(3171)]).then((()=>()=>S(75552))))),57372:()=>y("default","@next-core/http",!1,[1,1,2,13],(()=>S.e(8989).then((()=>()=>S(48989))))),21302:()=>y("default","moment",!1,[1,2,30,1],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(99420))))),7e4:()=>y("default","@next-core/utils/storyboard",!1,[1,1,8,4],(()=>Promise.all([S.e(1030),S.e(1321),S.e(4765)]).then((()=>()=>S(97146))))),71321:()=>y("default","@next-core/cook",!1,[0],(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(61122))))),59435:()=>x("default","react-dom",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(3144).then((()=>()=>S(43144))))),28247:()=>x("default","@next-core/react-runtime",!1,[1,1,7,28],(()=>Promise.all([S.e(1030),S.e(9475),S.e(7218)]).then((()=>()=>S(64837))))),69704:()=>y("default","@next-core/i18n/react",!1,[0],(()=>Promise.all([S.e(9733),S.e(8097)]).then((()=>()=>S(88097))))),11732:()=>y("default","history",!1,[0],(()=>S.e(3003).then((()=>()=>S(65384))))),40580:()=>y("default","@babel/parser",!1,[0],(()=>S.e(6773).then((()=>()=>S(46773))))),47825:()=>y("default","react-i18next",!1,[1,12,3,1],(()=>Promise.all([S.e(7434),S.e(8769)]).then((()=>()=>S(97434))))),848:()=>y("default","i18next-browser-languagedetector",!1,[0],(()=>S.e(726).then((()=>()=>S(50726))))),75630:()=>y("default","i18next",!1,[0],(()=>S.e(7304).then((()=>()=>S(47304))))),59933:()=>y("default","@next-core/pipes",!1,[0],(()=>S.e(6519).then((()=>()=>S(76519))))),58377:()=>y("default","@easyops-cn/brick-next-pipes",!1,[0],(()=>Promise.all([S.e(4291),S.e(1030),S.e(5310),S.e(1302)]).then((()=>()=>S(54291))))),26036:()=>y("default","moment/locale/zh-cn.js",!1,[1,2,30,1],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(61329))))),29283:()=>y("default","@next-core/inject",!1,[0],(()=>Promise.all([S.e(9933),S.e(4658)]).then((()=>()=>S(72277))))),45599:()=>y("default","@next-core/loader",!1,[0],(()=>S.e(5399).then((()=>()=>S(35399))))),94167:()=>y("default","@next-core/supply",!1,[0],(()=>Promise.all([S.e(9933),S.e(1940)]).then((()=>()=>S(49559)))))},k={0:[7e4],580:[40580],671:[848,75630],1030:[41030],1280:[11280],1302:[21302],1321:[71321],1732:[11732],4558:[94558],5168:[65168],5310:[55310],6519:[58377],7372:[57372],7921:[7921],8097:[47825],8247:[28247],8769:[18769],9435:[59435],9475:[29475],9704:[69704],9718:[26036,29283,45599,94167],9733:[99733],9933:[59933]},w={},S.f.consumes=(e,t)=>{S.o(k,e)&&k[e].forEach((e=>{if(S.o(P,e))return t.push(P[e]);if(!w[e]){var r=t=>{P[e]=0,S.m[e]=r=>{delete S.c[e],r.exports=t()}};w[e]=!0;var n=t=>{delete P[e],S.m[e]=r=>{throw delete S.c[e],t}};try{var a=j[e]();a.then?t.push(P[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(030|280|302|321|732)|5(168|310|80)|9(7(04|18|33)|435|475|933)|0|4558|671|7372|7921|8247|8769)$/.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=globalThis.webpackChunk_next_bricks_visual_builder=globalThis.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(17934)})();
|
|
2
|
-
//# sourceMappingURL=main.a8fcb5d6.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see page-arch-node.534ded26.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[4892],{5014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PageArchNode:()=>we,PageArchNodeComponent:()=>Ze});var o,i=n(74635),r=n(70918),a=n(26902),l=n(5536),s=n(86121),c=n(70829),u=n(62740),d=n(18769),h=n.n(d),p=n(7921),b=n(11280),f=(n(65168),n(53373)),v=n.n(f),g=n(62381);let m,A,y,x,k,w,C,E,N,M,S,W,D,j,P,O,z,T,_,F,B,L,R,X,Y,I,K,q,G,H,J,Q,U,V,Z,$,ee,te,ne,oe,ie,re,ae,le,se,ce,ue,de,he,pe,be,fe,ve;const{defineElement:ge,property:me,event:Ae}=(0,p.createDecorators)(),ye=(0,b.wrapBrick)("eo-icon"),xe=(0,b.wrapBrick)("eo-tooltip"),ke=new Set;let we;var 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,Oe=new WeakSet,ze=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 b.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,Oe),(0,r.A)(this,Ce,A(this)),(0,r.A)(this,Ee,(y(this),x(this))),(0,r.A)(this,Ne,(k(this),w(this))),(0,r.A)(this,Me,(C(this),E(this))),(0,r.A)(this,Se,(N(this),M(this))),(0,r.A)(this,We,(S(this),W(this))),(0,r.A)(this,De,(D(this),j(this))),(0,r.A)(this,je,(P(this),O(this))),(0,r.A)(this,Pe,(z(this),T(this))),(0,r.A)(this,ze,(B(this),e=>{(0,l.A)(Oe,this,_).emit(e)})),(0,r.A)(this,Te,L(this)),(0,r.A)(this,_e,(Y(this),e=>{(0,l.A)(Oe,this,R).emit(e)})),(0,r.A)(this,Fe,I(this)),(0,r.A)(this,Be,(G(this),()=>{(0,l.A)(Oe,this,K).emit()})),(0,r.A)(this,Le,H(this)),(0,r.A)(this,Re,(U(this),()=>{(0,l.A)(Oe,this,J).emit()})),(0,r.A)(this,Xe,V(this)),(0,r.A)(this,Ye,(ee(this),e=>{(0,l.A)(Oe,this,Z).emit(e)})),(0,r.A)(this,Ie,te(this)),(0,r.A)(this,Ke,(ie(this),()=>{(0,l.A)(Oe,this,ne).emit()})),(0,r.A)(this,qe,re(this)),(0,r.A)(this,Ge,(se(this),e=>{(0,l.A)(Oe,this,ae).emit(e)})),(0,r.A)(this,He,ce(this)),(0,r.A)(this,Je,(he(this),e=>{(0,l.A)(Oe,this,ue).emit(e)})),(0,r.A)(this,Qe,pe(this)),(0,r.A)(this,Ue,(ve(this),e=>{(0,l.A)(Oe,this,be).emit(e)}))}get label(){return(0,c.A)(Ce,this)}set label(e){(0,s.A)(Ce,this,e)}get type(){return(0,c.A)(Ee,this)}set type(e){(0,s.A)(Ee,this,e)}get external(){return(0,c.A)(Ne,this)}set external(e){(0,s.A)(Ne,this,e)}get subNodes(){return(0,c.A)(Me,this)}set subNodes(e){(0,s.A)(Me,this,e)}get active(){return(0,c.A)(Se,this)}set active(e){(0,s.A)(Se,this,e)}get notSynced(){return(0,c.A)(We,this)}set notSynced(e){(0,s.A)(We,this,e)}get disableChildAppend(){return(0,c.A)(De,this)}set disableChildAppend(e){(0,s.A)(De,this,e)}get autoFocusOnce(){return(0,c.A)(je,this)}set autoFocusOnce(e){(0,s.A)(je,this,e)}render(){return h().createElement(Ze,{label:this.label,type:this.type,external:this.external,subNodes:this.subNodes,autoFocusOnce:this.autoFocusOnce,onLabelEditingChange:(0,c.A)(ze,this),onLabelChange:(0,c.A)(_e,this),onNodeClick:(0,c.A)(Be,this),onNodeDoubleClick:(0,c.A)(Re,this),onNodeContextMenu:(0,c.A)(Ye,this),onChildAppend:(0,c.A)(Ke,this),onExternalClick:(0,c.A)(Ge,this),onSubNodeDoubleClick:(0,c.A)(Je,this),onSubNodeContextMenu:(0,c.A)(Ue,this)})}}function Ze(e){var t;let{label:n,type:o,external:i,subNodes:r,autoFocusOnce:a,onLabelEditingChange:l,onLabelChange:s,onNodeClick:c,onNodeDoubleClick:u,onNodeContextMenu:p,onChildAppend:b,onExternalClick:f,onSubNodeDoubleClick:g,onSubNodeContextMenu:m}=e;const A="board"===o?"board":"page",[y,x]=(0,d.useState)(n),[k,w]=(0,d.useState)(!1),C=(0,d.useRef)(!1),[E,N]=(0,d.useState)(!1),M=(0,d.useRef)(null);(0,d.useEffect)((()=>{x(n)}),[n]);const S=(0,d.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),w(!0)}),[]);(0,d.useEffect)((()=>{a&&!ke.has(a)&&(ke.add(a),setTimeout((()=>{w(!0)}),1))}),[a]),(0,d.useEffect)((()=>{var e,t;k&&(null===(e=M.current)||void 0===e||e.focus({preventScroll:!0}),null===(t=M.current)||void 0===t||t.select())}),[k]),(0,d.useEffect)((()=>{C.current?null==l||l(k):C.current=!0}),[k,l]);const W=(0,d.useCallback)((e=>{x(e.target.value)}),[]),D=(0,d.useCallback)((e=>{const t=e.key||e.keyCode||e.which;var n;"Enter"!==t&&13!==t||null===(n=M.current)||void 0===n||n.blur()}),[]),j=(0,d.useCallback)((()=>{w(!1),N(!0)}),[]);(0,d.useEffect)((()=>{E&&(null==s||s(y),N(!1))}),[y,s,E]);const P=(0,d.useCallback)((e=>{e.stopPropagation(),null==b||b()}),[b]),O=(0,d.useCallback)((e=>{e.stopPropagation(),null==f||f(i)}),[i,f]),z=(0,d.useCallback)((e=>{e.stopPropagation()}),[]),T=38*Math.max(0,Math.floor((null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)-3));return h().createElement(h().Fragment,null,h().createElement("div",{className:v()("node",A,{"editing-label":k}),style:{height:"board"===A?70:130+T},onClick:c,onDoubleClick:u,onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==p||p({clientX:e.clientX,clientY:e.clientY})}},h().createElement("input",{className:"label-input",value:y,ref:M,onChange:W,onKeyDown:D,onBlur:j,onDoubleClick:z,onContextMenu:z,onMouseDown:z}),h().createElement("div",{className:"label",onDoubleClick:S,onMouseDown:z},y),"board"===A?h().createElement("div",{className:"icon-container"},h().createElement(ye,{lib:"antd",icon:"unordered-list"})):h().createElement("div",{className:"thumbnail-container",style:{height:98+T}},h().createElement("div",{className:"thumbnail-placeholder"},h().createElement(ye,{lib:"antd",icon:"ellipsis"})),i&&h().createElement("div",{className:"external",onClick:O,onDoubleClick:z,onMouseDown:z},h().createElement(ye,{lib:"antd",icon:"desktop"}),h().createElement("span",{className:"external-label"},i.label)),null!=r&&r.length?h().createElement("div",{className:"sub-nodes"},r.map((e=>h().createElement($e,{key:e.id,subNode:e,onSubNodeDoubleClick:g,onSubNodeContextMenu:m})))):null)),h().createElement("div",{className:"add-button",role:"button",onClick:P,onMouseDown:z},h().createElement(ye,{lib:"fa",icon:"plus"})))}function $e(e){let{subNode:t,onSubNodeDoubleClick:n,onSubNodeContextMenu:o}=e;return h().createElement(xe,{key:t.id,content:t.label},h().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})}},h().createElement("div",{className:"sub-node-skeleton-title"}),h().createElement("div",{className:"sub-node-skeleton-content"}),h().createElement("div",{className:"sub-node-skeleton-button"})))}o=Ve,({e:[A,y,x,k,w,C,E,N,M,S,W,D,j,P,O,z,T,_,F,B,L,R,X,Y,I,K,q,G,H,J,Q,U,V,Z,$,ee,te,ne,oe,ie,re,ae,le,se,ce,ue,de,he,pe,be,fe,ve],c:[we,m]}=(0,u.A)(o,[ge("visual-builder.page-arch-node",{styleTexts:[g.A]})],[[me(),1,"label"],[me(),1,"type"],[me({attribute:!1}),1,"external"],[me({attribute:!1}),1,"subNodes"],[me({type:Boolean,render:!1}),1,"active"],[me({type:Boolean,render:!1}),1,"notSynced"],[me({type:Boolean,render:!1}),1,"disableChildAppend"],[me(),1,"autoFocusOnce"],[Ae({type:"label.editing.change"}),1,"labelEditingChange",e=>(0,c.A)(Pe,e),(e,t)=>(0,s.A)(Pe,e,t)],[Ae({type:"label.change"}),1,"labelChange",e=>(0,c.A)(Te,e),(e,t)=>(0,s.A)(Te,e,t)],[Ae({type:"node.click"}),1,"nodeClick",e=>(0,c.A)(Fe,e),(e,t)=>(0,s.A)(Fe,e,t)],[Ae({type:"node.dblclick"}),1,"nodeDoubleClick",e=>(0,c.A)(Le,e),(e,t)=>(0,s.A)(Le,e,t)],[Ae({type:"node.contextmenu"}),1,"nodeContextMenu",e=>(0,c.A)(Xe,e),(e,t)=>(0,s.A)(Xe,e,t)],[Ae({type:"child.append"}),1,"childAppend",e=>(0,c.A)(Ie,e),(e,t)=>(0,s.A)(Ie,e,t)],[Ae({type:"external.click"}),1,"externalClick",e=>(0,c.A)(qe,e),(e,t)=>(0,s.A)(qe,e,t)],[Ae({type:"subNode.dblclick"}),1,"subNodeDoubleClick",e=>(0,c.A)(He,e),(e,t)=>(0,s.A)(He,e,t)],[Ae({type:"subNode.contextmenu"}),1,"subNodeContextMenu",e=>(0,c.A)(Qe,e),(e,t)=>(0,s.A)(Qe,e,t)]],0,(e=>Ue.has((0,a.A)(e))),b.ReactNextElement)),m()},5536:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(12559);function i(e,t,n){return n((0,o.A)(e,t))}},11369:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(17545);function i(e){var t=function(e){if("object"!=(0,o.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,o.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,o.A)(t)?t:t+""}},12559:(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})},17545:(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})},26902:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(17545);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}},36758:e=>{"use strict";e.exports=function(e){return e[1]}},40935: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}},53373:(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)}()},62381:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(36758),i=n.n(o),r=n(40935),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;user-select:none}.node.board{height:70px;max-width:168px;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;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:-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;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()},62740:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(17545),i=n(26902);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(11369);function l(e,t,n,l,s,c){var u,d,h,p,b,f,v,g=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,A=Object.create,y=[A(null),A(null)],x=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,h,p,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,x=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||x?"set":"value";if(h?(p||x?S={get:r((function(){return g(this)}),i,"get"),set:function(e){t[4](this,e)}}:S[D]=g,p||r(S[D],i,N?"":D)):p||(S=Object.getOwnPropertyDescriptor(e,i)),!p&&!h){if((d=y[+c][i])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+S[D].name+") is not supported yet");y[+c][i]=a<3?1:a}}for(var j=e,P=v.length-1;P>=0;P-=n?2:1){var O=w(v[P],"A decorator","be",!0),z=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=O.call(z,j,_),T.v=1,w(d,"class decorators","return")&&(j=d);else if(_.static=c,_.private=h,d=_.access={has:h?b.bind():function(e){return i in e}},E||(d.get=h?N?function(e){return f(e),S.value}:M("get",0,f):function(e){return e[i]}),N||C||(d.set=h?M("set",0,f):function(e,t){e[i]=t}),j=O.call(z,x?{get:S.get,set:S.set}:S[D],_),T.v=1,x){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,(p?"field":"method")+" decorators","return")&&(p?W.unshift(j):S[D]=j)}return a<2&&s.push(k(W,c,1),k(l,c,0)),p||A||(h?x?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?p=p||[]:h=h||[],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(h),f(p),d=b,x||E(e),{e:d,get c(){var n=[];return x&&[E(e=C(e,[t],l,e.name,5,n)),k(n,1)]}}}},70829:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(12559);function i(e,t){return e.get((0,o.A)(e,t))}},70918:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(72016);function i(e,t,n){(0,o.A)(e,t),t.set(e,n)}},72016:(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})},74635:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(72016);function i(e,t){(0,o.A)(e,t),t.add(e)}},86121:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(12559);function i(e,t,n){return e.set((0,o.A)(e,t),n),n}}}]);
|
|
3
|
-
//# sourceMappingURL=page-arch-node.534ded26.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[154],{11369:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(17545);function i(t){var e=function(t){if("object"!=(0,r.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.A)(e)?e:e+""}},12559:(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})},17545:(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})},18488:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o)()(i());a.push([t.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container,\niframe{width:100%;height:100%}.container{position:relative}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}",""]);const c=a.toString()},26902:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(17545);function i(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}},30500:(t,e,n)=>{n.r(e),n.d(e,{PreGeneratedConfigPreview:()=>L,PreGeneratedConfigPreviewComponent:()=>W});var r,i=n(70918),o=n(86121),a=n(70829),c=n(62740),s=n(18769),u=n.n(s),l=n(7921),d=n(11280),f=n(29475),p=n(55310),v=(n(65168),n(18488)),h=n(92120),m=n(61304);let b,g,y,w,A,k,E,S,_;const{defineElement:x,property:j}=(0,l.createDecorators)();let L;var T=new WeakMap,P=new WeakMap,z=new WeakMap,C=new WeakMap;class O extends d.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,T,g(this)),(0,i.A)(this,P,(y(this),w(this))),(0,i.A)(this,z,(A(this),k(this))),(0,i.A)(this,C,(E(this),S(this))),_(this)}get previewUrl(){return(0,a.A)(T,this)}set previewUrl(t){(0,o.A)(T,this,t)}get container(){return(0,a.A)(P,this)}set container(t){(0,o.A)(P,this,t)}get attrList(){return(0,a.A)(z,this)}set attrList(t){(0,o.A)(z,this,t)}get mockList(){return(0,a.A)(C,this)}set mockList(t){(0,o.A)(C,this,t)}render(){return u().createElement(W,{root:this,previewUrl:this.previewUrl,container:this.container,attrList:this.attrList,mockList:this.mockList})}}function W(t){let{root:e,previewUrl:n,container:r,attrList:i,mockList:o}=t;const a=(0,s.useRef)(),[c,l]=(0,s.useState)(!1),d=(0,s.useCallback)((()=>{const t=()=>{var e;const n=null===(e=a.current)||void 0===e?void 0:e.contentWindow;null!=n&&n._preview_only_render?l(!0):setTimeout(t,100)};t()}),[]);return(0,s.useEffect)((()=>{var t;const n=null===(t=a.current)||void 0===t?void 0:t.contentWindow;if(!c||!n)return;const r=new ResizeObserver((()=>{e.style.height=`${n.document.body.scrollHeight}px`}));return r.observe(n.document.body),()=>r.disconnect()}),[c,e]),(0,s.useEffect)((()=>{var t,e;const n=null===(t=a.current)||void 0===t||null===(t=t.contentWindow)||void 0===t?void 0:t._preview_only_render;if(!c||!n||!i)return;let s;s="descriptions"===r?{brick:"eo-descriptions",errorBoundary:!0,properties:{column:2,list:i.map((t=>{const e={label:t.name};return t.config&&(e.useBrick=(0,m.w)(t.config,t.id)),e})),dataSource:null==o?void 0:o[0]}}:{brick:"eo-next-table",errorBoundary:!0,properties:{rowKey:null===(e=i[0])||void 0===e?void 0:e.id,columns:i.map((t=>{const e={title:t.name,dataIndex:t.id,key:t.id};return t.config&&(e.useBrick=(0,m.m)(t.config,".cellData")),e})),dataSource:{list:o,page:1,pageSize:20}}},n("yaml",{yaml:(0,p.safeDump)([s],{skipInvalid:!0})},{theme:"light",uiVersion:"8.2",styleText:h.A})}),[c,i,o,r]),u().createElement("div",{className:"container"},u().createElement("iframe",{ref:a,src:null!=n?n:`${(0,f.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:d}))}r=O,({e:[g,y,w,A,k,E,S,_],c:[L,b]}=(0,c.A)(r,[x("visual-builder.pre-generated-config-preview",{styleTexts:[v.A]})],[[j(),1,"previewUrl"],[j(),1,"container"],[j({attribute:!1}),1,"attrList"],[j({attribute:!1}),1,"mockList"]],0,void 0,d.ReactNextElement)),b()},36758:t=>{t.exports=function(t){return t[1]}},40935: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,i,o){"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!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},62740:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(17545),i=n(26902);function o(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(11369);function c(t,e,n,c,s,u){var l,d,f,p,v,h,m,b=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,y=Object.create,w=[y(null),y(null)],A=e.length;function k(e,n,r){return function(i,o){n&&(o=i,i=t);for(var a=0;a<e.length;a++)o=e[a].apply(i,r?[o]:[]);return r?o:i}}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 S(t,e,n,i,a,c,s,u,f,p,v){function h(t){if(!v(t))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(e[0]),b=e[3],y=!s,A=1===a,S=3===a,_=4===a,x=2===a;function j(e,n,r){return function(i,o){return n&&(o=i,i=t),r&&r(i),L[e].call(i,o)}}if(!y){var L={},T=[],P=S?"get":_||A?"set":"value";if(f?(p||A?L={get:o((function(){return b(this)}),i,"get"),set:function(t){e[4](this,t)}}:L[P]=b,p||o(L[P],i,x?"":P)):p||(L=Object.getOwnPropertyDescriptor(t,i)),!p&&!f){if((d=w[+u][i])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+L[P].name+") is not supported yet");w[+u][i]=a<3?1:a}}for(var z=t,C=m.length-1;C>=0;C-=n?2:1){var O=E(m[C],"A decorator","be",!0),W=n?m[C-1]:void 0,U={},B={kind:["field","accessor","method","getter","setter","class"][a],name:i,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,U)};if(y)d=O.call(W,z,B),U.v=1,E(d,"class decorators","return")&&(z=d);else if(B.static=u,B.private=f,d=B.access={has:f?v.bind():function(t){return i in t}},_||(d.get=f?x?function(t){return h(t),L.value}:j("get",0,h):function(t){return t[i]}),x||S||(d.set=f?j("set",0,h):function(t,e){t[i]=e}),z=O.call(W,A?{get:L.get,set:L.set}:L[P],B),U.v=1,A){if("object"==(0,r.A)(z)&&z)(d=E(z.get,"accessor.get"))&&(L.get=d),(d=E(z.set,"accessor.set"))&&(L.set=d),(d=E(z.init,"accessor.init"))&&T.unshift(d);else if(void 0!==z)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(z,(p?"field":"method")+" decorators","return")&&(p?T.unshift(z):L[P]=z)}return a<2&&s.push(k(T,u,1),k(c,u,0)),p||y||(f?A?s.splice(-1,0,j("get",u),j("set",u)):s.push(x?L[P]:E.call.bind(L[P])):g(t,i,L)),z}function _(t){return g(t,b,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[b]),l=y(null==l?null:l),v=[],h=function(t){t&&v.push(k(t))},m=function(e,r){for(var o=0;o<n.length;o++){var c=n[o],u=c[1],l=7&u;if((8&u)==e&&!l==r){var d=c[2],h=!!c[3],m=16&u;S(e?t:t.prototype,c,m,h?"#"+d:(0,a.A)(d),l,l<2?[]:e?p=p||[]:f=f||[],v,!!e,h,r,e&&h?function(e){return(0,i.A)(e)===t}:s)}}},m(8,0),m(0,0),m(8,1),m(0,1),h(f),h(p),d=v,A||_(t),{e:d,get c(){var n=[];return A&&[_(t=S(t,[e],c,t.name,5,n)),k(n,1)]}}}},70829:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(12559);function i(t,e){return t.get((0,r.A)(t,e))}},70918:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(72016);function i(t,e,n){(0,r.A)(t,e),e.set(t,n)}},72016:(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})},86121:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(12559);function i(t,e,n){return t.set((0,r.A)(t,e),n),n}},92120:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o)()(i());a.push([t.id,"#preview-root{padding:0}",""]);const c=a.toString()}}]);
|
|
2
|
-
//# sourceMappingURL=pre-generated-config-preview.87199dcf.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[2369],{5536:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(12559);function r(e,t,i){return i((0,n.A)(e,t))}},11369:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(17545);function r(e){var t=function(e){if("object"!=(0,n.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=(0,n.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},12559:(e,t,i)=>{function n(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}i.d(t,{A:()=>n})},17545:(e,t,i)=>{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)}i.d(t,{A:()=>n})},18488:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(36758),r=i.n(n),a=i(40935),o=i.n(a)()(r());o.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container,\niframe{width:100%;height:100%}.container{position:relative}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}",""]);const s=o.toString()},26902:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(17545);function r(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}},33415:(e,t,i)=>{i.r(t),i.d(t,{PreGeneratedConfig:()=>R,PreGeneratedConfigComponent:()=>ee});var n,r=i(74635),a=i(70918),o=i(26902),s=i(5536),l=i(86121),c=i(70829),d=i(62740),u=i(18769),p=i.n(u),g=i(7921),h=i(11280),v=i(29475),m=i(55310),f=i(41030),y=(i(65168),i(99733)),w=i(93757),b=i(61304),k=i(78396),A=i(40116),M=i(40887),T=i(18488),x=i(92120);let C,E,S,I,W,$,D,_,N,O,X,L,P,z,B;(0,y.initializeI18n)(w.NS,w.I);const{defineElement:K,property:j,event:F}=(0,g.createDecorators)();let R;var U=new WeakMap,G=new WeakMap,J=new WeakMap,V=new WeakMap,H=new WeakMap,q=new WeakMap,Q=new WeakSet,Y=new WeakMap;class Z extends h.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Q),(0,a.A)(this,U,E(this)),(0,a.A)(this,G,(S(this),I(this))),(0,a.A)(this,J,(W(this),$(this))),(0,a.A)(this,V,(D(this),_(this))),(0,a.A)(this,H,(N(this),O(this))),(0,a.A)(this,q,(X(this),L(this))),(0,a.A)(this,Y,(B(this),e=>{(0,s.A)(Q,this,P).emit(e)}))}get previewUrl(){return(0,c.A)(U,this)}set previewUrl(e){(0,l.A)(U,this,e)}get attrList(){return(0,c.A)(G,this)}set attrList(e){(0,l.A)(G,this,e)}get mockList(){return(0,c.A)(J,this)}set mockList(e){(0,l.A)(J,this,e)}get metricGroups(){return(0,c.A)(V,this)}set metricGroups(e){(0,l.A)(V,this,e)}get containerConfig(){return(0,c.A)(H,this)}set containerConfig(e){(0,l.A)(H,this,e)}render(){return p().createElement(ee,{previewUrl:this.previewUrl,attrList:this.attrList,mockList:this.mockList,metricGroups:this.metricGroups,containerConfig:this.containerConfig,onBrickChange:(0,c.A)(Y,this),root:this})}}function ee(e){let{previewUrl:t,attrList:i,mockList:n,metricGroups:r,containerConfig:a,root:o,onBrickChange:s}=e;const l=(0,u.useRef)(),[c,d]=(0,u.useState)(!1),[g,h]=(0,u.useState)(!1),[y,w]=(0,u.useState)(null),[T,C]=(0,u.useState)(null),E=(0,u.useRef)(null),S=(0,u.useRef)(null),I=(0,u.useMemo)((()=>(0,f.uniqueId)("event-agent-")),[]),W="chart"===(null==a?void 0:a.type)?"chart":"grouped-chart"===(null==a?void 0:a.type)?"grouped-chart":"default",$=(0,u.useMemo)((()=>"default"===W?i:null==i?void 0:i.filter((e=>e.metricKey))),[i,W]),D=(0,u.useMemo)((()=>"grouped-chart"===W?function(e,t){var i,n;const r=new Map(e.map((e=>[e.id,e]))),a=[];t.forEach(((e,t)=>{const i=[];for(const t of e.metrics){const e=r.get(t);e&&(r.delete(t),i.push(e))}i.length&&a.push({id:t,group:e.group,metrics:i,counter:e.counter})}));const o=(null!==(i=null===(n=a[a.length-1])||void 0===n?void 0:n.id)&&void 0!==i?i:-1)+1;return a.push(...[...r.values()].map(((e,t)=>({id:o+t,group:"",metrics:[e]})))),a}($,r):$),[r,$,W]);(0,u.useEffect)((()=>{C(null),E.current=null,S.current=null}),[D]),(0,u.useEffect)((()=>{if(y){const e=y.selectedIds.sort(((e,t)=>y.orderedIds.indexOf(e)-y.orderedIds.indexOf(t))).map((e=>D.find((t=>t.id===e)))).filter(Boolean),t=new Map(y.weightMapLiteral),i=new Map(y.groupMapLiteral),n=e.map((e=>{var n;const a=te(W,$,r,e,i),o="grouped-chart"===a.viewType?null===(n=a.metric.candidates)||void 0===n?void 0:n.filter((e=>"small"!==e.size)):e.candidates;return{candidate:null==o?void 0:o.find((i=>i.visualWeight===t.get(e.id))),meta:a}})),o=(0,A.M)(n,a);s(o)}}),[y,a,D,r,s,$,W]);const _=(0,u.useCallback)((()=>{const e=()=>{var t;const i=null===(t=l.current)||void 0===t?void 0:t.contentWindow;null!=i&&i._preview_only_render?d(!0):setTimeout(e,100)};e()}),[]);return(0,u.useEffect)((()=>{var e;const t=null===(e=l.current)||void 0===e?void 0:e.contentWindow;if(!c||!t)return;const i=new ResizeObserver((()=>{o.style.height=`${t.document.body.scrollHeight}px`}));return i.observe(t.document.body),()=>i.disconnect()}),[c,o]),(0,u.useEffect)((()=>{var e;if(!c)return;const t=null===(e=l.current)||void 0===e?void 0:e.contentWindow,i=e=>{let{data:t}=e;if("pre-generated-config"===(null==t?void 0:t.channel))switch(t.type){case"config-change":w(t.payload);break;case"group-change":C((e=>new Map([...null!=e?e:[],[t.payload.id,t.payload.metrics]])));break;case"order-change":S.current=t.payload.orderedIds;break;case"selection-change":E.current=t.payload.selectedIds}};return t.addEventListener("message",i),()=>{t.removeEventListener("message",i)}}),[c]),(0,u.useEffect)((()=>{var e;if(!c)return;const i=v.__secret_internals.getBrickPackagesById("bricks/visual-builder");if(!i)throw new Error("Cannot find preview agent package: bricks/visual-builder");const n=l.current.contentWindow._preview_only_inject,r={...i,filePath:t?new URL(i.filePath,new URL(t,location.origin)).toString():`${location.origin}${(0,v.getBasePath)()}${null!==(e=window.PUBLIC_ROOT)&&void 0!==e?e:""}${i.filePath}`};Promise.allSettled([n("visual-builder.pre-generated-container",r,void 0,!0)]).then((()=>{h(!0)}))}),[t,c]),(0,u.useEffect)((()=>{var e,t,i,a,o;if(!g)return;const s=null===(e=l.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;if(!s)return;const c=S.current,d=E.current,u=c?c.map((e=>D.find((t=>t.id===e)))).filter(Boolean):D,p=d?u.filter((e=>d.includes(e.id))):null!==(t=null==u?void 0:u.slice(0,5))&&void 0!==t?t:[],h=null!=d?d:p.map((e=>e.id));s("yaml",{yaml:(0,m.safeDump)([{brick:"eo-next-table",errorBoundary:!0,properties:{injectChartV2Styles:!0,pagination:!1,rowSelection:!0,rowKey:"id",rowDraggable:!0,bordered:!0,dataSource:{list:u},selectedRowKeys:h,columns:[..."chart"===W?[{title:"指标名",dataIndex:"id",key:"id",width:"20%"},{title:"指标别名",dataIndex:"name",key:"name",width:"20%"}]:"grouped-chart"===W?[{title:"指标组",dataIndex:"id",key:"id",width:"40%",useBrick:{brick:"eo-select",properties:{options:"<% CTX.metricOptions %>",mode:"multiple",value:"<% CTX.groupMap.get(DATA.cellData) ?? DATA.rowData.metrics.map((metric) => metric.id) %>",dropdownHoist:!0},events:{change:{action:"window.postMessage",args:[{channel:"pre-generated-config",type:"group-change",payload:"<% { id: DATA.cellData, metrics: EVENT.detail.value } %>"}]}}}}]:[{title:"ID",dataIndex:"id",key:"id",width:"20%"},{title:"名称",dataIndex:"name",key:"name",width:"20%"}],{title:"预览",dataIndex:"preview",key:"preview",useBrick:{brick:"div",children:null==D?void 0:D.flatMap((e=>{var t,i,a;const o=te(W,$,r,e,T);let s,l;var c,d;"grouped-chart"===o.viewType?(l=null==n?void 0:n.map((e=>(0,f.pick)(e,["time",...o.groupedMetricKeys]))),s=null===(c=o.metric.candidates)||void 0===c?void 0:c.filter((e=>"small"!==e.size))):(s=e.candidates,l="chart"===o.viewType?null==n?void 0:n.map((e=>(0,f.pick)(e,["time",o.metric.metricKey]))):null!==(d=null==n?void 0:n[0])&&void 0!==d?d:{});const u=null===(t=s)||void 0===t?void 0:t.map((t=>{const i=`<%=\n DATA.rowData.id === ${JSON.stringify(e.id)} &&\n ${JSON.stringify(t.visualWeight)} === CTX.weightMap.get(${JSON.stringify(e.id)})\n %>`,n="default"===o.viewType?(0,b.w)(t,e.id):(0,k.r)({...t,min:o.counterMetricKey?void 0:t.min},"<% DATA %>",o.metric.metricKey,{unit:o.metric.unit},o.groupedMetricKeys,o.counterMetricKey);if(n)return{if:i,brick:"visual-builder.pre-generated-container",properties:{useBrick:n,dataSource:l}}})).filter(Boolean);return null!=u&&u.length?u:{if:`<% DATA.rowData.id === ${JSON.stringify(e.id)} %>`,brick:"span",properties:{textContent:null!==(i=null==n||null===(a=n[0])||void 0===a?void 0:a[e.id])&&void 0!==i?i:""}}}))}},{dataIndex:"operations",key:"operations",width:81,headerBrick:{useBrick:{brick:"eo-mini-actions",properties:{actions:'<%=\n [\n {\n icon: {\n lib: "antd",\n icon: "minus",\n },\n event: "minus",\n disabled: [...CTX.weightMap].every(([id, v]) => v <= CTX.availableWeights.get(id)[0]),\n },\n {\n icon: {\n lib: "antd",\n icon: "plus",\n },\n event: "plus",\n disabled: [...CTX.weightMap].every(([id, v]) => v >= CTX.availableWeights.get(id).slice(-1)[0]),\n },\n ]\n %>'},events:{minus:{action:"context.replace",args:["weightMap","<% FN.updateWeightMap(CTX.weightMap, CTX.availableWeights, null, -1) %>"]},plus:{action:"context.replace",args:["weightMap","<% FN.updateWeightMap(CTX.weightMap, CTX.availableWeights, null, 1) %>"]}}}},useBrick:{if:"<% CTX.availableWeights.get(DATA.rowData.id)?.length %>",brick:"eo-mini-actions",properties:{actions:'<%=\n [\n {\n icon: {\n lib: "antd",\n icon: "minus",\n },\n event: "minus",\n disabled: CTX.weightMap.get(DATA.rowData.id) <= CTX.availableWeights.get(DATA.rowData.id)[0],\n },\n {\n icon: {\n lib: "antd",\n icon: "plus",\n },\n event: "plus",\n disabled: CTX.weightMap.get(DATA.rowData.id) >= CTX.availableWeights.get(DATA.rowData.id).slice(-1)[0],\n },\n ]\n %>'},events:{minus:{action:"context.replace",args:["weightMap","<% FN.updateWeightMap(CTX.weightMap, CTX.availableWeights, DATA.rowData.id, -1) %>"]},plus:{action:"context.replace",args:["weightMap","<% FN.updateWeightMap(CTX.weightMap, CTX.availableWeights, DATA.rowData.id, 1) %>"]}}}}]},events:{"row.select":{action:"context.replace",args:["selectedItems","<%= EVENT.detail.rows %>"]},"row.drag":{action:"context.replace",args:["orderedIds","<%= EVENT.detail.list.map((attr) => attr.id) %>"]}}},{brick:"eo-event-agent",properties:{id:I},events:{trigger:{action:"window.postMessage",args:[{channel:"pre-generated-config",type:"config-change",payload:"<% FN.getPreConfig(CTX.selectedItems, CTX.orderedIds, CTX.weightMap, CTX.groupMap) %>"}]}},lifeCycle:{onPageLoad:{target:`#${I}`,method:"trigger"}},portal:!0,errorBoundary:!0}],{skipInvalid:!0})},{theme:"light",uiVersion:"8.2",styleText:x.A,context:[{name:"orderedIds",value:null!==(i=null==$?void 0:$.map((e=>e.id)))&&void 0!==i?i:[],onChange:[{target:`#${I}`,method:"trigger"},..."grouped-chart"===W?[{action:"window.postMessage",args:[{channel:"pre-generated-config",type:"order-change",payload:{orderedIds:"<% EVENT.detail %>"}}]}]:[]]},{name:"selectedItems",value:p,onChange:[{target:`#${I}`,method:"trigger"},..."grouped-chart"===W?[{action:"window.postMessage",args:[{channel:"pre-generated-config",type:"selection-change",payload:{selectedIds:"<% EVENT.detail.map((item) => item.id) %>"}}]}]:[]]},{name:"availableWeights",value:`<% new Map(${JSON.stringify(null!==(a=null==D?void 0:D.map((e=>{var t,i;return[e.id,null!==(t=null===(i=("grouped-chart"===W?e.metrics[0]:e).candidates)||void 0===i?void 0:i.filter((e=>"grouped-chart"!==W||"small"!==e.size)).map((e=>e.visualWeight)).sort(((e,t)=>e-t)))&&void 0!==t?t:[]]})))&&void 0!==a?a:[])}) %>`},{name:"weightMap",value:`<% new Map(${JSON.stringify(null!==(o=null==D?void 0:D.map((e=>{var t,i,n,r;return[e.id,null===(n=null===(i=("grouped-chart"===W?e.metrics[0]:e).candidates)||void 0===i?void 0:i.filter((e=>"grouped-chart"!==W||"small"!==e.size)),r="grouped-chart"===W?2:0,t=null==n?void 0:n.reduce(((e,t)=>!e||Math.abs(t.visualWeight-r)<Math.abs(e.visualWeight-r)?t:e)))||void 0===t?void 0:t.visualWeight]})))&&void 0!==o?o:[])}) %>`,onChange:{target:`#${I}`,method:"trigger"}},{name:"groupMap",value:`<% new Map(${JSON.stringify([...null!=T?T:[]])}) %>`},..."grouped-chart"===W?[{name:"metricOptions",value:null==$?void 0:$.map((e=>({label:e.metricKey,value:e.id})))}]:[]],functions:[{name:"updateWeightMap",source:M},{name:"getPreConfig",source:"\n function getPreConfig(selectedItems, orderedIds, weightMap, groupMap) {\n return {\n selectedIds: selectedItems.map((item) => item.id),\n orderedIds,\n weightMapLiteral: [...weightMap],\n groupMapLiteral: [...groupMap],\n };\n }\n "}]})}),[i,a,g,r,n,I,D,W,$,T]),p().createElement("div",{className:"container"},p().createElement("iframe",{ref:l,src:null!=t?t:`${(0,v.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:_}))}function te(e,t,i,n,r){if("grouped-chart"===e){var a;const o=n,s=null==r?void 0:r.get(o.id);let l;l=s?t.filter((e=>s.includes(e.id))):o.metrics;const c=l[0],d=l.map((e=>e.metricKey));let u;if(o.counter&&2===l.length)for(const e of i)if(2===e.metrics.length&&e.counter===o.counter&&l.every((t=>e.metrics.includes(t.id)))){u=l.find((e=>e.id===o.counter));break}return{viewType:e,metric:c,groupedMetricKeys:d,counterMetricKey:null===(a=u)||void 0===a?void 0:a.metricKey}}return"chart"===e?{viewType:e,metric:n}:{viewType:e,attr:n}}n=Z,({e:[E,S,I,W,$,D,_,N,O,X,L,P,z,B],c:[R,C]}=(0,d.A)(n,[K("visual-builder.pre-generated-config",{styleTexts:[T.A]})],[[j(),1,"previewUrl"],[j({attribute:!1}),1,"attrList"],[j({attribute:!1}),1,"mockList"],[j({attribute:!1}),1,"metricGroups"],[j({attribute:!1}),1,"containerConfig"],[F({type:"brick.change"}),1,"brickChangeEvent",e=>(0,c.A)(q,e),(e,t)=>(0,l.A)(q,e,t)]],0,(e=>Y.has((0,o.A)(e))),h.ReactNextElement)),C()},36758:e=>{e.exports=function(e){return e[1]}},40116:(e,t,i)=>{i.d(t,{M:()=>l});var n=i(94558),r=i(98027),a=i(61304),o=i(41030),s=i(78396);function l(e,t){var i;let{type:n,dataName:l,dataType:d,settings:u}=t;if(!n||!l||0===e.length)return null;const p=`${"state"===d?"STATE":"CTX"}${(0,r._)(l)}`;if("chart"===n||"grouped-chart"===n){const t=e,i=`<%= ${p}${null!=u&&u.pagination||null!=u&&u.wrapper?".list":""} %>`,n=t.map((e=>{let{candidate:t,meta:n}=e;return(0,s.r)({...t,min:n.counterMetricKey?void 0:t.min},i,n.metric.metricKey,{unit:n.metric.unit},n.groupedMetricKeys,n.counterMetricKey)}));return 1===n.length?n[0]:{brick:"eo-grid-layout",properties:{templateColumns:"repeat(auto-fill, minmax(500px, 1fr))",gap:"var(--card-content-gap)"},slots:{"":{type:"bricks",bricks:n}}}}const g=e;if("cards"===n)return{brick:"eo-grid-layout",properties:{templateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:"var(--card-content-gap)"},slots:{"":{type:"bricks",bricks:[{brick:":forEach",dataSource:`<%= ${p}${null!=u&&u.pagination||null!=u&&u.wrapper?".list":""} %>`,slots:{"":{type:"bricks",bricks:[{brick:"eo-card-item",properties:{cardTitle:(0,o.has)(null==u?void 0:u.fields,"title")&&"string"==typeof u.fields.title?`<% ITEM${(0,r._)(u.fields.title)} %>`:void 0,description:(0,o.has)(null==u?void 0:u.fields,"description")&&"string"==typeof u.fields.description?`<% ITEM${(0,r._)(u.fields.description)} %>`:void 0}}]}}}]}}};const h=`<%= ${null!=u&&u.pagination?null!=u&&null!==(i=u.fields)&&void 0!==i&&i.pageSize?`{...${p},pageSize: ${p}${(0,r._)(u.fields.pageSize)}}`:p:null!=u&&u.wrapper?p:`{ list: ${p} }`} %>`,v=new Map;for(const e of g)if(e.candidate){const t="table"===n?(0,a.m)(e.candidate,".cellData"):(0,a.w)(e.candidate,e.meta.attr.id);t&&v.set(e.meta.attr.id,c(t))}const m=Object.fromEntries(g.map((e=>{const t=v.get(e.meta.attr.id);return t?[`[${e.meta.attr.id}]`,{type:"bricks",bricks:[t]}]:null})).filter(Boolean));switch(n){case"table":return{brick:"eo-next-table",properties:{rowKey:"instanceId",columns:g.map((e=>{let{meta:{attr:t}}=e;const i={title:t.name,dataIndex:t.id,key:t.id};return v.has(t.id)&&(i.useChildren=`[${t.id}]`),i})),dataSource:h,...null!=u&&u.pagination?null:{pagination:!1}},slots:m};case"descriptions":return{brick:"eo-descriptions",properties:{column:2,list:g.map((e=>{let{candidate:t,meta:{attr:i}}=e;const n={label:i.name};return t&&(n.useChildren=`[${i.id}]`),n})),dataSource:h},slots:m}}return null}function c(e){const{children:t,slots:i,...n}=e;return{...n,slots:d(t,i)}}function d(e,t){let i=t;if(Array.isArray(e)&&!i){i={};for(const{slot:t,...r}of e){const e=null!=t?t:"";(0,n.hasOwnProperty)(i,e)||(i[e]={type:"bricks",bricks:[]}),i[e].bricks.push(c(r))}}return i}},40887:e=>{e.exports="/**\n * @param {Map<string, number>} weightMap\n * @param {Map<string, number[]>} availableWeights\n * @param {string | null} key\n * @param {1 | -1} direction\n * @returns {Map<string, number>}\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction updateWeightMap(weightMap, availableWeights, key, direction) {\n return new Map([...weightMap].map(_ref => {\n let [k, v] = _ref;\n if (key === null || k === key) {\n const weights = availableWeights.get(k);\n const index = weights.indexOf(v);\n const nextIndex = Math.max(0, Math.min(index + direction, weights.length - 1));\n return [k, weights[nextIndex]];\n }\n return [k, v];\n }));\n}"},40935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,n,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);n&&o[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),i&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=i):d[2]=i),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},62740:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(17545),r=i(26902);function a(e,t,i){"symbol"==(0,n.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:i?i+" "+t:t})}catch(e){}return e}var o=i(11369);function s(e,t,i,s,l,c){var d,u,p,g,h,v,m,f=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,w=Object.create,b=[w(null),w(null)],k=t.length;function A(t,i,n){return function(r,a){i&&(a=r,r=e);for(var o=0;o<t.length;o++)a=t[o].apply(r,n?[a]:[]);return n?a:r}}function M(e,t,i,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(i||"be")+" a function"+(n?"":" or undefined"));return e}function T(e,t,i,r,o,s,l,c,p,g,h){function v(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),f=t[3],w=!l,k=1===o,T=3===o,x=4===o,C=2===o;function E(t,i,n){return function(r,a){return i&&(a=r,r=e),n&&n(r),S[t].call(r,a)}}if(!w){var S={},I=[],W=T?"get":x||k?"set":"value";if(p?(g||k?S={get:a((function(){return f(this)}),r,"get"),set:function(e){t[4](this,e)}}:S[W]=f,g||a(S[W],r,C?"":W)):g||(S=Object.getOwnPropertyDescriptor(e,r)),!g&&!p){if((u=b[+c][r])&&7!=(u^o))throw Error("Decorating two elements with the same name ("+S[W].name+") is not supported yet");b[+c][r]=o<3?1:o}}for(var $=e,D=m.length-1;D>=0;D-=i?2:1){var _=M(m[D],"A decorator","be",!0),N=i?m[D-1]:void 0,O={},X={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:d,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");M(t,"An initializer","be",!0),s.push(t)}.bind(null,O)};if(w)u=_.call(N,$,X),O.v=1,M(u,"class decorators","return")&&($=u);else if(X.static=c,X.private=p,u=X.access={has:p?h.bind():function(e){return r in e}},x||(u.get=p?C?function(e){return v(e),S.value}:E("get",0,v):function(e){return e[r]}),C||T||(u.set=p?E("set",0,v):function(e,t){e[r]=t}),$=_.call(N,k?{get:S.get,set:S.set}:S[W],X),O.v=1,k){if("object"==(0,n.A)($)&&$)(u=M($.get,"accessor.get"))&&(S.get=u),(u=M($.set,"accessor.set"))&&(S.set=u),(u=M($.init,"accessor.init"))&&I.unshift(u);else if(void 0!==$)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else M($,(g?"field":"method")+" decorators","return")&&(g?I.unshift($):S[W]=$)}return o<2&&l.push(A(I,c,1),A(s,c,0)),g||w||(p?k?l.splice(-1,0,E("get",c),E("set",c)):l.push(C?S[W]:M.call.bind(S[W])):y(e,r,S)),$}function x(e){return y(e,f,{configurable:!0,enumerable:!0,value:d})}return void 0!==c&&(d=c[f]),d=w(null==d?null:d),h=[],v=function(e){e&&h.push(A(e))},m=function(t,n){for(var a=0;a<i.length;a++){var s=i[a],c=s[1],d=7&c;if((8&c)==t&&!d==n){var u=s[2],v=!!s[3],m=16&c;T(t?e:e.prototype,s,m,v?"#"+u:(0,o.A)(u),d,d<2?[]:t?g=g||[]:p=p||[],h,!!t,v,n,t&&v?function(t){return(0,r.A)(t)===e}:l)}}},m(8,0),m(0,0),m(8,1),m(0,1),v(p),v(g),u=h,k||x(e),{e:u,get c(){var i=[];return k&&[x(e=T(e,[t],s,e.name,5,i)),A(i,1)]}}}},70829:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(12559);function r(e,t){return e.get((0,n.A)(e,t))}},70918:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(72016);function r(e,t,i){(0,n.A)(e,t),t.set(e,i)}},72016:(e,t,i)=>{function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}i.d(t,{A:()=>n})},74635:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(72016);function r(e,t){(0,n.A)(e,t),t.add(e)}},78396:(e,t,i)=>{function n(e,t,i,n,r,a){let o=null;const s="bibytes"===n.unit?"bytes":n.unit;if("small"===e.size)switch(e.chartType){case"line":o={brick:"eo-mini-line-chart",properties:{data:t,xField:"time",yField:i,width:"auto",showArea:!0}};break;case"gauge":{var l;const r="percent(1)"===n.unit,a="percent(100)"===n.unit||"%"===n.unit;o={brick:"chart-v2.gauge-chart",properties:{data:t,xField:"time",yField:i,height:100,axis:{yAxis:{unit:s,precision:e.precision,min:e.min,max:null!==(l=e.max)&&void 0!==l?l:r?1:a?100:void 0}},thresholdColors:r||a?[{value:20,color:"cyan"},{value:90,color:"yellow"},{value:100,color:"red"}].map((e=>{let{value:t,color:i}=e;return{value:a?t:t/100,color:`<% THEME.getCssPropertyValue(${JSON.stringify(`--palette-${i}-5`)}) %>`}})):void 0}};break}}else switch(e.chartType){case"line":case"area":o={brick:"chart-v2.time-series-chart",properties:{data:t,xField:"time",yFields:null!=r?r:[i],height:"large"===e.size?230:200,timeFormat:"HH:mm",areaOpacity:"line"===e.chartType?0:void 0,axis:{yAxis:{unit:s,precision:e.precision,min:e.min,max:e.max,shape:"smooth"}},...a?{forceAbsoluteNumbers:!0,series:{[a]:{isNegative:!0}}}:null,areaShape:"smooth",legends:"large"===e.size}}}return o}i.d(t,{r:()=>n})},86121:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(12559);function r(e,t,i){return e.set((0,n.A)(e,t),i),i}},92120:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(36758),r=i.n(n),a=i(40935),o=i.n(a)()(r());o.push([e.id,"#preview-root{padding:0}",""]);const s=o.toString()},93757:(e,t,i)=>{i.d(t,{I:()=>a,NS:()=>r});var n=i(99733);const r="bricks/visual-builder/pre-generated-config",a={en:{},zh:{}};n.i18n.getFixedT(null,r)}}]);
|
|
2
|
-
//# sourceMappingURL=pre-generated-config.4fb27d28.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[8356],{8366:(e,t,r)=>{r.r(t),r.d(t,{PreGeneratedContainer:()=>A,PreGeneratedContainerComponent:()=>E});var n,i=r(70918),o=r(86121),a=r(70829),u=r(62740),c=r(18769),s=r.n(c),l=r(7921),f=r(11280),d=r(28247);let h,p,b,v,m;r(65168);const{defineElement:y,property:g}=(0,l.createDecorators)();let A;var w=new WeakMap,k=new WeakMap;class S extends f.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,w,p(this)),(0,i.A)(this,k,(b(this),v(this))),m(this)}get useBrick(){return(0,a.A)(w,this)}set useBrick(e){(0,o.A)(w,this,e)}get dataSource(){return(0,a.A)(k,this)}set dataSource(e){(0,o.A)(k,this,e)}render(){return s().createElement(E,{useBrick:this.useBrick,dataSource:this.dataSource})}}function E(e){let{useBrick:t,dataSource:r}=e;return t?s().createElement(d.ReactUseMultipleBricks,{useBrick:t,data:r,errorBoundary:!0}):null}n=S,({e:[p,b,v,m],c:[A,h]}=(0,u.A)(n,[y("visual-builder.pre-generated-container",{shadowOptions:!1})],[[g({attribute:!1}),1,"useBrick"],[g({attribute:!1}),1,"dataSource"]],0,void 0,f.ReactNextElement)),h()},11369:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(17545);function i(e){var t=function(e){if("object"!=(0,n.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=(0,n.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},12559:(e,t,r)=>{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})},17545:(e,t,r)=>{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})},26902:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(17545);function i(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}},62740:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(17545),i=r(26902);function o(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(11369);function u(e,t,r,u,c,s){var l,f,d,h,p,b,v,m=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,g=Object.create,A=[g(null),g(null)],w=t.length;function k(t,r,n){return function(i,o){r&&(o=i,i=e);for(var a=0;a<t.length;a++)o=t[a].apply(i,n?[o]:[]);return n?o:i}}function S(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 E(e,t,r,i,a,u,c,s,d,h,p){function b(e){if(!p(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),m=t[3],g=!c,w=1===a,E=3===a,j=4===a,B=2===a;function T(t,r,n){return function(i,o){return r&&(o=i,i=e),n&&n(i),P[t].call(i,o)}}if(!g){var P={},_=[],O=E?"get":j||w?"set":"value";if(d?(h||w?P={get:o((function(){return m(this)}),i,"get"),set:function(e){t[4](this,e)}}:P[O]=m,h||o(P[O],i,B?"":O)):h||(P=Object.getOwnPropertyDescriptor(e,i)),!h&&!d){if((f=A[+s][i])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+P[O].name+") is not supported yet");A[+s][i]=a<3?1:a}}for(var C=e,x=v.length-1;x>=0;x-=r?2:1){var z=S(v[x],"A decorator","be",!0),D=r?v[x-1]:void 0,M={},R={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:l,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");S(t,"An initializer","be",!0),u.push(t)}.bind(null,M)};if(g)f=z.call(D,C,R),M.v=1,S(f,"class decorators","return")&&(C=f);else if(R.static=s,R.private=d,f=R.access={has:d?p.bind():function(e){return i in e}},j||(f.get=d?B?function(e){return b(e),P.value}:T("get",0,b):function(e){return e[i]}),B||E||(f.set=d?T("set",0,b):function(e,t){e[i]=t}),C=z.call(D,w?{get:P.get,set:P.set}:P[O],R),M.v=1,w){if("object"==(0,n.A)(C)&&C)(f=S(C.get,"accessor.get"))&&(P.get=f),(f=S(C.set,"accessor.set"))&&(P.set=f),(f=S(C.init,"accessor.init"))&&_.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 S(C,(h?"field":"method")+" decorators","return")&&(h?_.unshift(C):P[O]=C)}return a<2&&c.push(k(_,s,1),k(u,s,0)),h||g||(d?w?c.splice(-1,0,T("get",s),T("set",s)):c.push(B?P[O]:S.call.bind(P[O])):y(e,i,P)),C}function j(e){return y(e,m,{configurable:!0,enumerable:!0,value:l})}return void 0!==s&&(l=s[m]),l=g(null==l?null:l),p=[],b=function(e){e&&p.push(k(e))},v=function(t,n){for(var o=0;o<r.length;o++){var u=r[o],s=u[1],l=7&s;if((8&s)==t&&!l==n){var f=u[2],b=!!u[3],v=16&s;E(t?e:e.prototype,u,v,b?"#"+f:(0,a.A)(f),l,l<2?[]:t?h=h||[]:d=d||[],p,!!t,b,n,t&&b?function(t){return(0,i.A)(t)===e}:c)}}},v(8,0),v(0,0),v(8,1),v(0,1),b(d),b(h),f=p,w||j(e),{e:f,get c(){var r=[];return w&&[j(e=E(e,[t],u,e.name,5,r)),k(r,1)]}}}},70829:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(12559);function i(e,t){return e.get((0,n.A)(e,t))}},70918:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(72016);function i(e,t,r){(0,n.A)(e,t),t.set(e,r)}},72016:(e,t,r)=>{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})},86121:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(12559);function i(e,t,r){return e.set((0,n.A)(e,t),r),r}}}]);
|
|
2
|
-
//# sourceMappingURL=pre-generated-container.c8ed336b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[5689],{11369:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(17545);function o(t){var e=function(t){if("object"!=(0,n.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=(0,n.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(e)?e:e+""}},17545:(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})},26902:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(17545);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}},36758:t=>{t.exports=function(t){return t[1]}},40935: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 l=0;l<t.length;l++){var s=[].concat(t[l]);n&&a[s[0]]||(void 0!==i&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),r&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=r):s[2]=r),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),e.push(s))}},e}},55111:(t,e,r)=>{r.r(e),r.d(e,{PreGeneratedTableView:()=>d,PreGeneratedTableViewComponent:()=>v});var n,o=r(62740),i=r(18769),a=r.n(i),c=r(7921),u=r(11280),l=(r(65168),r(99216));let s;const{defineElement:f}=(0,c.createDecorators)();let d;class p extends u.ReactNextElement{render(){return a().createElement(v,null)}}function v(){return a().createElement("slot",null)}n=p,[d,s]=(0,o.A)(n,[f("visual-builder.pre-generated-table-view",{styleTexts:[l.A]})],[],0,void 0,u.ReactNextElement).c,s()},62740:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(17545),o=r(26902);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(11369);function c(t,e,r,c,u,l){var s,f,d,p,v,b,h,m=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,y=Object.create,w=[y(null),y(null)],A=e.length;function E(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 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,o,a,c,u,l,d,p,v){function b(t){if(!v(t))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(e[0]),m=e[3],y=!u,A=1===a,j=3===a,x=4===a,T=2===a;function k(e,r,n){return function(o,i){return r&&(i=o,o=t),n&&n(o),_[e].call(o,i)}}if(!y){var _={},P=[],O=j?"get":x||A?"set":"value";if(d?(p||A?_={get:i((function(){return m(this)}),o,"get"),set:function(t){e[4](this,t)}}:_[O]=m,p||i(_[O],o,T?"":O)):p||(_=Object.getOwnPropertyDescriptor(t,o)),!p&&!d){if((f=w[+l][o])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+_[O].name+") is not supported yet");w[+l][o]=a<3?1:a}}for(var z=t,C=h.length-1;C>=0;C-=r?2:1){var D=S(h[C],"A decorator","be",!0),G=r?h[C-1]:void 0,I={},N={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:s,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");S(e,"An initializer","be",!0),c.push(e)}.bind(null,I)};if(y)f=D.call(G,z,N),I.v=1,S(f,"class decorators","return")&&(z=f);else if(N.static=l,N.private=d,f=N.access={has:d?v.bind():function(t){return o in t}},x||(f.get=d?T?function(t){return b(t),_.value}:k("get",0,b):function(t){return t[o]}),T||j||(f.set=d?k("set",0,b):function(t,e){t[o]=e}),z=D.call(G,A?{get:_.get,set:_.set}:_[O],N),I.v=1,A){if("object"==(0,n.A)(z)&&z)(f=S(z.get,"accessor.get"))&&(_.get=f),(f=S(z.set,"accessor.set"))&&(_.set=f),(f=S(z.init,"accessor.init"))&&P.unshift(f);else if(void 0!==z)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else S(z,(p?"field":"method")+" decorators","return")&&(p?P.unshift(z):_[O]=z)}return a<2&&u.push(E(P,l,1),E(c,l,0)),p||y||(d?A?u.splice(-1,0,k("get",l),k("set",l)):u.push(T?_[O]:S.call.bind(_[O])):g(t,o,_)),z}function x(t){return g(t,m,{configurable:!0,enumerable:!0,value:s})}return void 0!==l&&(s=l[m]),s=y(null==s?null:s),v=[],b=function(t){t&&v.push(E(t))},h=function(e,n){for(var i=0;i<r.length;i++){var c=r[i],l=c[1],s=7&l;if((8&l)==e&&!s==n){var f=c[2],b=!!c[3],h=16&l;j(e?t:t.prototype,c,h,b?"#"+f:(0,a.A)(f),s,s<2?[]:e?p=p||[]:d=d||[],v,!!e,b,n,e&&b?function(e){return(0,o.A)(e)===t}:u)}}},h(8,0),h(0,0),h(8,1),h(0,1),b(d),b(p),f=v,A||x(t),{e:f,get c(){var r=[];return A&&[x(t=j(t,[e],c,t.name,5,r)),E(r,1)]}}}},99216:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(36758),o=r.n(n),i=r(40935),a=r.n(i)()(o());a.push([t.id,":host{display:grid;width:100%}:host([hidden]){display:none}::slotted(*){padding:4px 8px;border:1px solid var(--theme-gray-border-color);border-left-color:transparent;border-top-color:transparent;min-width:0;word-break:break-word}",""]);const c=a.toString()}}]);
|
|
2
|
-
//# sourceMappingURL=pre-generated-table-view.f9516521.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[5238],{22080:(e,t,i)=>{i.r(t),i.d(t,{ADVANCED_CHANGE_KEY:()=>_e,BEFORE_SUBMIT_KEY:()=>We,LegacyPropertyEditor:()=>et,PropertyEditor:()=>Ie,SchemaField:()=>Fe});var s,a=i(74635),n=i(70918),r=i(26902),o=i(5536),l=i(86121),h=i(70829),d=i(62740),c=i(18769),u=i.n(c),A=i(7921),m=i(11280),v=(i(65168),i(25908)),p=i(37091),k=i(7428),g=i(16768),f=i(81034),E=i(69708),b=i(28247),M=i(33768),y=i(42803),w=i(93824),C=i(72513),S=i(75067),W=i(21477),_=i(74287),F=i(40966),x=i(45768),I=i(26110),L=i(55944),N=i(68409),V=i(29475),P=i(43995),T=(i(60074),i(41030)),q=i.n(T);let R,Z,U,O,B,D,H,Y,$,z,G,J,K,j,Q,X,ee,te,ie,se,ae,ne,re,oe,le,he,de,ce,ue,Ae,me,ve,pe,ke,ge,fe,Ee,be;const{defineElement:Me,property:ye,method:we,event:Ce}=(0,A.createDecorators)(),Se=u().forwardRef(et),We="before_submit",_e="on_advanced_change",Fe=(0,p.Uy)({components:{FormLayout:E.Hb,Input:E.pd,FormItem:y.M,FormItemWithoutAdvanced:E.eI,FormCollapse:E.w9,NumberPicker:E.Y_,Radio:E.sx,Select:E.l6,Switch:E.dO,CategoryTitle:M.H,CodeEditor:w.S,IconSelect:C.r,ColorPicker:S.h,UseChildrenSelect:x._,InputWithUrl:W.r,InputWithUnit:F.U,TextAlignRadio:_.p,CustomOptions:L.F,BoxSize:I.i,CustomTab:N.v}});let xe,Ie;var Le=new WeakMap,Ne=new WeakMap,Ve=new WeakMap,Pe=new WeakMap,Te=new WeakMap,qe=new WeakMap,Re=new WeakMap,Ze=new WeakMap,Ue=new WeakMap,Oe=new WeakMap,Be=new WeakSet,De=new WeakMap,He=new WeakMap,Ye=new WeakMap,$e=new WeakMap,ze=new WeakMap,Ge=new WeakMap,Je=new WeakMap,Ke=new WeakMap,je=new WeakMap,Qe=new WeakMap;class Xe extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Be),(0,n.A)(this,Le,(R(this),(0,c.createRef)())),(0,n.A)(this,Ne,U(this)),(0,n.A)(this,Ve,(O(this),B(this))),(0,n.A)(this,Pe,(D(this),H(this))),(0,n.A)(this,Te,(Y(this),$(this))),(0,n.A)(this,qe,(z(this),G(this))),(0,n.A)(this,Re,(J(this),K(this))),(0,n.A)(this,Ze,(j(this),Q(this))),(0,n.A)(this,Ue,(X(this),ee(this))),(0,n.A)(this,Oe,(te(this),ie(this))),(0,n.A)(this,De,(ne(this),re(this))),(0,n.A)(this,He,(he(this),de(this))),(0,n.A)(this,Ye,(Ae(this),e=>{(0,o.A)(Be,this,ce).emit(e)})),(0,n.A)(this,$e,me(this)),(0,n.A)(this,ze,(ke(this),e=>{(0,o.A)(Be,this,ve).emit(e)})),(0,n.A)(this,Ge,void 0),(0,n.A)(this,Je,(0,v.fA)(We,((e,t)=>i=>{(0,l.A)(Ge,this,i(e,t))}))),(0,n.A)(this,Ke,ge(this)),(0,n.A)(this,je,(be(this),e=>{(0,o.A)(Be,this,fe).emit(e)})),(0,n.A)(this,Qe,(e=>{const t="string"==typeof e&&"undefined"===e?void 0:(0,T.omit)(e,["dataset.testid"]),i=[];(0,T.isEmpty)(null==t?void 0:t.dataset)&&i.push("dataset"),(0,T.isEmpty)(null==t?void 0:t.style)&&i.push("style");const s=(0,T.omit)(t,i);if(!(0,T.isEmpty)(s))return s}))}get editorName(){return(0,h.A)(Ne,this)}set editorName(e){(0,l.A)(Ne,this,e)}get values(){return(0,h.A)(Ve,this)}set values(e){(0,l.A)(Ve,this,e)}get advancedMode(){return(0,h.A)(Pe,this)}set advancedMode(e){(0,l.A)(Pe,this,e)}get dataList(){return(0,h.A)(Te,this)}set dataList(e){(0,l.A)(Te,this,e)}get editorPackages(){return(0,h.A)(qe,this)}set editorPackages(e){(0,l.A)(qe,this,e)}get links(){return(0,h.A)(Re,this)}set links(e){(0,l.A)(Re,this,e)}get extraLibs(){return(0,h.A)(Ze,this)}set extraLibs(e){(0,l.A)(Ze,this,e)}get childSlots(){return(0,h.A)(Ue,this)}set childSlots(e){(0,l.A)(Ue,this,e)}validate(){var e;const t=null===(e=(0,h.A)(Le,this).current)||void 0===e?void 0:e.getFormInstance();(0,l.A)(Ge,this,null),t.validate().then((()=>{if(this.advancedMode)(0,o.A)(Be,this,se).emit(t.values[P.qZ]);else{var e;const i=q().omit(t.values,[P.qZ]);t.notify(We,i),(0,o.A)(Be,this,se).emit(null!==(e=(0,h.A)(Ge,this))&&void 0!==e?e:i)}})).catch((e=>{(0,o.A)(Be,this,oe).emit(e)}))}render(){return u().createElement(Se,{ref:(0,h.A)(Le,this),editorName:this.editorName,values:(0,h.A)(Qe,this).call(this,this.values),advancedMode:this.advancedMode,dataList:this.dataList,extraLibs:this.extraLibs,links:this.links,childSlots:this.childSlots,editorPackages:this.editorPackages,handleValuesChange:(0,h.A)(Ye,this),handleTokenClick:(0,h.A)(ze,this),handleTriggerAction:(0,h.A)(je,this),onSubmitEffect:(0,h.A)(Je,this)})}}function et(e,t){let{advancedMode:i,values:s,editorName:a,dataList:n,editorPackages:r,extraLibs:o,childSlots:l,links:h,handleValuesChange:d,handleTokenClick:A,handleTriggerAction:m,onSubmitEffect:E}=e;const[M,y]=(0,c.useState)(xe),w=(0,b.useCurrentTheme)(),C=(0,c.useMemo)((()=>(0,f.VC)()),[]),S=(0,c.useMemo)((()=>(0,v.DG)()),[M]),W=(0,c.useRef)(null),_=(0,c.useRef)(!1),F=(0,c.useMemo)((()=>(0,v.fA)(_e,((e,t)=>i=>{const s=!e&&t.values[P.qZ]?t.values[P.qZ]:t.values;W.current=i(e,t,s)}))),[]);(0,c.useImperativeHandle)(t,(()=>({getFormInstance:()=>S})));const x=(0,c.useCallback)((async()=>{V.customEditors.get(a)?y((()=>{var e;return null===(e=V.customEditors.get(a))||void 0===e?void 0:e(u())})):(await V.__secret_internals.loadEditors([a],r),xe=()=>{var e;return null===(e=V.customEditors.get(a))||void 0===e?void 0:e(u())},y(xe))}),[a,r]),I=(0,c.useCallback)(((e,t)=>{var i;if(t){const t=q().omit(e,[P.qZ]);return{[P.qZ]:q().isEmpty(t)?"":t}}return null!==(i=e[P.qZ])&&void 0!==i?i:e}),[]);return(0,c.useEffect)((()=>{x()}),[x]),(0,c.useEffect)((()=>{M&&S.setInitialValues(s,"overwrite")}),[M,S]),(0,c.useEffect)((()=>{var e;_.current=!0,W.current=null,S.notify(_e,i),S.query(P.N4).take((e=>{e.display=i?"hidden":"visible"})),S.query(P.qZ).take((e=>{e.display=i?"visible":"hidden"}));const t=S.getState().values,s=I(null!==(e=W.current)&&void 0!==e?e:t,i);S.setValues(s,"overwrite"),_.current=!1}),[i,S,I,M]),(0,c.useEffect)((()=>{S.addEffects("onValueChange",(()=>{(0,v.A$)((e=>{_.current||d(e.values)}))}))}),[S,d]),M?u().createElement("div",{className:"property-form-wrapper"},u().createElement(k.Ay,{prefixCls:"antdV5",theme:{algorithm:"dark-v2"===w?g.A.darkAlgorithm:g.A.defaultAlgorithm,components:{InputNumber:{handleVisible:!0}}},getPopupContainer:e=>e},u().createElement(f.N7,{cache:C},u().createElement(p.Op,{form:S},u().createElement(M,{advancedMode:i,SchemaFieldComponent:Fe,form:S,scope:{dataList:n,advancedMode:i,childSlots:l,extraLibs:o,links:h,tokenClick:e=>A(e.detail),triggerAction:m},effects:{onFieldInit:v.yd,onFieldValueChange:v.$l,onFieldInitialValueChange:v.J4,onFormInitialValuesChange:v.oJ,onFormValidateSuccess:v.zu,onFormValuesChange:v.A$,onSubmit:E,onAdvancedChange:F},formilySchemaFormatter:P.cV}))))):null}s=Xe,({e:[U,O,B,D,H,Y,$,z,G,J,K,j,Q,X,ee,te,ie,se,ae,ne,re,oe,le,he,de,ce,ue,Ae,me,ve,pe,ke,ge,fe,Ee,be,R],c:[Ie,Z]}=(0,d.A)(s,[Me("visual-builder.property-editor",{shadowOptions:!1,dependencies:["eo-icon-select","vs.code-editor","eo-tooltip"]})],[[ye(),1,"editorName"],[ye({attribute:!1}),1,"values"],[ye({type:Boolean}),1,"advancedMode"],[ye({attribute:!1}),1,"dataList"],[ye({attribute:!1}),1,"editorPackages"],[ye({attribute:!1}),1,"links"],[ye({attribute:!1}),1,"extraLibs"],[ye({attribute:!1}),1,"childSlots"],[Ce({type:"validate.success"}),1,"successEvent",e=>(0,h.A)(Oe,e),(e,t)=>(0,l.A)(Oe,e,t)],[Ce({type:"validate.error"}),1,"errorEvent",e=>(0,h.A)(De,e),(e,t)=>(0,l.A)(De,e,t)],[we(),2,"validate"],[Ce({type:"values.change"}),1,"valuesChangeEvent",e=>(0,h.A)(He,e),(e,t)=>(0,l.A)(He,e,t)],[Ce({type:"token.click"}),1,"tokenClick",e=>(0,h.A)($e,e),(e,t)=>(0,l.A)($e,e,t)],[Ce({type:"trigger.action"}),1,"triggerActionEvent",e=>(0,h.A)(Ke,e),(e,t)=>(0,l.A)(Ke,e,t)]],0,(e=>Qe.has((0,r.A)(e))),m.ReactNextElement)),Z()}}]);
|
|
2
|
-
//# sourceMappingURL=property-editor.7045ca95.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see raw-data-preview.6f49113a.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[1279],{2183:(e,t,r)=>{"use strict";r.d(t,{q:()=>o});let n=r(29475).__secret_internals;try{var i;const e=window.dll;if(e&&null!==(i=window.BRICK_NEXT_VERSIONS)&&void 0!==i&&null!==(i=i["brick-container"])&&void 0!==i&&i.startsWith("2.")){const{developHelper:t}=e("tYg3");n={getBrickPackagesById(e){var r;return null===(r=t.getBrickPackages)||void 0===r?void 0:r.call(t).find((t=>t.id===e))}}}}catch(e){console.error("Try to use v2 runtime APIs failed:",e)}const o=n},5536:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(12559);function i(e,t,r){return r((0,n.A)(e,t))}},11369:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(17545);function i(e){var t=function(e){if("object"!=(0,n.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=(0,n.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},12559:(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})},17545:(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})},26902:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(17545);function i(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}},36758:e=>{"use strict";e.exports=function(e){return e[1]}},40935: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,i,o){"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 p=0;p<e.length;p++){var l=[].concat(e[p]);n&&a[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)),t.push(l))}},t}},47797:(e,t,r)=>{"use strict";r.r(t),r.d(t,{RawDataPreview:()=>te,RawDataPreviewComponent:()=>me});var n,i=r(74635),o=r(70918),a=r(26902),s=r(5536),c=r(86121),p=r(70829),l=r(62740),d=r(18769),u=r.n(d),y=r(7921),v=r(11280),h=(r(65168),r(53373)),g=r.n(h),f=r(29475),m=r(55310),b=r(2183),w=r(61304),A=r(59034),k=r(94162);let S,x,E,T,N,C,I,O,P,_,$,M,W,X,J,V,j,R,B,U,z,D,L,K,q,H,Y,F,G;const{defineElement:Q,property:Z,event:ee}=(0,y.createDecorators)();let te;var re=new WeakMap,ne=new WeakMap,ie=new WeakMap,oe=new WeakMap,ae=new WeakMap,se=new WeakMap,ce=new WeakMap,pe=new WeakMap,le=new WeakMap,de=new WeakSet,ue=new WeakMap,ye=new WeakMap,ve=new WeakMap,he=new WeakMap,ge=new WeakMap;class fe extends v.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,de),(0,o.A)(this,re,x(this)),(0,o.A)(this,ne,(E(this),T(this))),(0,o.A)(this,ie,(N(this),C(this))),(0,o.A)(this,oe,(I(this),O(this))),(0,o.A)(this,ae,(P(this),_(this))),(0,o.A)(this,se,($(this),M(this))),(0,o.A)(this,ce,(W(this),X(this))),(0,o.A)(this,pe,(J(this),V(this))),(0,o.A)(this,le,(j(this),R(this))),(0,o.A)(this,ue,(z(this),e=>{(0,s.A)(de,this,B).emit(e)})),(0,o.A)(this,ye,D(this)),(0,o.A)(this,ve,(q(this),e=>{(0,s.A)(de,this,L).emit(e)})),(0,o.A)(this,he,H(this)),(0,o.A)(this,ge,(G(this),e=>{(0,s.A)(de,this,Y).emit(e)}))}get previewUrl(){return(0,p.A)(re,this)}set previewUrl(e){(0,c.A)(re,this,e)}get generations(){return(0,p.A)(ne,this)}set generations(e){(0,c.A)(ne,this,e)}get mocks(){return(0,p.A)(ie,this)}set mocks(e){(0,c.A)(ie,this,e)}get busy(){return(0,p.A)(oe,this)}set busy(e){(0,c.A)(oe,this,e)}get category(){return(0,p.A)(ae,this)}set category(e){(0,c.A)(ae,this,e)}get theme(){return(0,p.A)(se,this)}set theme(e){(0,c.A)(se,this,e)}get uiVersion(){return(0,p.A)(ce,this)}set uiVersion(e){(0,c.A)(ce,this,e)}get app(){return(0,p.A)(pe,this)}set app(e){(0,c.A)(pe,this,e)}render(){return u().createElement(me,{previewUrl:this.previewUrl,generations:this.generations,mocks:this.mocks,busy:this.busy,category:this.category,theme:this.theme,uiVersion:this.uiVersion,app:this.app,onComment:(0,p.A)(ue,this),onApprove:(0,p.A)(ve,this),onViewAttrPrompt:(0,p.A)(ge,this)})}}function me(e){let{previewUrl:t,generations:r,mocks:n,busy:i,category:o,theme:a,uiVersion:s,app:c,onComment:p,onApprove:l,onViewAttrPrompt:y}=e;const v=(0,d.useRef)(),[h,A]=(0,d.useState)(!1),[S,x]=(0,d.useState)(!1),E=(0,d.useRef)([]),T=(0,d.useRef)([]),N=(0,d.useRef)([]);(0,d.useEffect)((()=>{var e;N.current=null!==(e=null==r?void 0:r.filter((e=>e.approved)).map((e=>e.propertyId)))&&void 0!==e?e:[]}),[r]);const C=(0,d.useCallback)((()=>{const e=()=>{var t;const r=null===(t=v.current)||void 0===t?void 0:t.contentWindow;null!=r&&r._preview_only_render?A(!0):setTimeout(e,100)};e()}),[]);return(0,d.useEffect)((()=>{h&&v.current.contentWindow.postMessage({channel:"raw-data-preview",type:"busy",payload:i},location.origin)}),[i,h]),(0,d.useEffect)((()=>{if(h){const e=v.current.contentWindow,t=e=>{let{data:t}=e;if("raw-data-preview"===(null==t?void 0:t.channel))switch(t.type){case"comment":p(t.payload);break;case"approve":l(t.payload);break;case"viewAttrPrompt":y(t.payload);break;case"updatePropertyToggleState":E.current=t.payload;break;case"updatePropertyExpandState":T.current=t.payload;break;case"updatePropertyApproveState":N.current=t.payload}};return e.addEventListener("message",t),()=>{e.removeEventListener("message",t)}}}),[l,p,y,h]),(0,d.useEffect)((()=>{var e;if(!h)return;const r=b.q.getBrickPackagesById("bricks/visual-builder");if(!r)throw new Error("Cannot find preview agent package: bricks/visual-builder");const n=v.current.contentWindow._preview_only_inject,i={...r,filePath:t?new URL(r.filePath,new URL(t,location.origin)).toString():`${location.origin}${(0,f.getBasePath)()}${null!==(e=window.PUBLIC_ROOT)&&void 0!==e?e:""}${r.filePath}`};Promise.allSettled(["visual-builder.pre-generated-table-view","visual-builder.pre-generated-container"].map((e=>n(e,i,void 0,!0)))).then((()=>{x(!0)}))}),[t,h]),(0,d.useEffect)((()=>{var e;if(!S)return;const t=null===(e=v.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;if(!t)return;const i=[{brick:"div",properties:{textContent:"属性",className:"head-cell"}},{brick:"div",properties:{textContent:"",className:"head-cell"}},{brick:"div",properties:{textContent:"类型",className:"head-cell"}},{brick:"div",properties:{textContent:"原始数据",className:"head-cell"}},{brick:"div",properties:{textContent:"视觉重量 (由低至高)",className:"head-cell",style:{gridColumn:"span 4",textAlign:"center"}}},{brick:"div",properties:{textContent:"确认",className:"head-cell"}},{brick:"div",properties:{className:"head-cell last-col-cell"},children:[{brick:"span",properties:{textContent:"批注"}},{brick:"span",properties:{className:"tips",textContent:"(补充提示词,按住 ⌘ 或 ctrl + 回车提交)"}}]}],o={brick:"visual-builder.pre-generated-table-view",context:[{name:"propertyToggleState",value:E.current,onChange:{action:"window.postMessage",args:[{channel:"raw-data-preview",type:"updatePropertyToggleState",payload:"<% CTX.propertyToggleState %>"}]}},{name:"propertyExpandState",value:T.current,onChange:{action:"window.postMessage",args:[{channel:"raw-data-preview",type:"updatePropertyExpandState",payload:"<% CTX.propertyExpandState %>"}]}},{name:"propertyApproveState",value:N.current,onChange:{action:"window.postMessage",args:[{channel:"raw-data-preview",type:"updatePropertyApproveState",payload:"<% CTX.propertyApproveState %>"}]}},{name:"busy"}],properties:{style:{gridTemplateColumns:"minmax(120px, 0.5fr) 32px auto repeat(5, 1fr) auto 1fr"}},children:i};for(let e=0,t=r.length;e<t;e++){var p,l;const o=r[e],a=e===t-1,s=new Map;for(const e of null!==(d=o.candidates)&&void 0!==d?d:[]){var d,u;s.set(null!==(u=e.visualWeight)&&void 0!==u?u:0,e)}i.push({brick:"div",properties:{className:g()("body-cell",{"last-row-cell":a})},children:[{brick:"span",properties:{textContent:`${null!==(p=o.propertyName)&&void 0!==p?p:o.propertyId}`}},{brick:"eo-button",properties:{className:"btn-toggle",type:"text",icon:`<%=\n {\n lib: "fa",\n prefix: "fas",\n icon: CTX.propertyToggleState.includes(${JSON.stringify(o.propertyId)}) ? "chevron-up" : "chevron-down",\n }\n %>`},events:{click:{action:"context.replace",args:["propertyToggleState",`<%\n CTX.propertyToggleState.includes(${JSON.stringify(o.propertyId)})\n ? CTX.propertyToggleState.filter((id) => id !== ${JSON.stringify(o.propertyId)})\n : CTX.propertyToggleState.concat(${JSON.stringify(o.propertyId)})\n %>`]}}}]},{brick:"div",properties:{className:g()("body-cell",{"last-row-cell":a})},children:null!==(l=o.candidates)&&void 0!==l&&l.length?[{brick:"eo-icon",properties:{lib:"fa",prefix:"fas",icon:"circle",style:{color:o.generationId?"var(--palette-green-6)":"var(--palette-gray-6)",transformOrigin:"center center",transform:"scale(0.5)"}}}]:void 0},{brick:"div",properties:{className:g()("body-cell",{"last-row-cell":a})},children:[{brick:"eo-link",properties:{type:"text",textContent:o.propertyType},events:{click:{action:"window.postMessage",args:[{channel:"raw-data-preview",type:"viewAttrPrompt",payload:o}]}}}]});let c=o.propertyValues;if(!c){var y,h;const e=(null!==(y=null!==(h=o.mockData)&&void 0!==h?h:n)&&void 0!==y?y:[]).slice();e.sort(((e,t)=>{const r=null==e?void 0:e[o.propertyId],n=null==t?void 0:t[o.propertyId],i=Array.isArray(r),a=Array.isArray(n);if(i||a)return(a?n.length:-1)-(i?r.length:-1);const s=null==r,c=null==n;if(s||c)return(c?0:1)-(s?0:1);const p="string"==typeof r&&0===r.length,l="string"==typeof n&&0===n.length;return p||l?(l?0:1)-(p?0:1):0})),c=e.map((e=>e[o.propertyId]))}i.push({brick:"div",properties:{className:g()("body-cell",{"last-row-cell":a})},children:[{brick:"div",properties:{className:"list"},children:c.map(((e,t)=>({brick:"div",if:0===t||`<%= CTX.propertyToggleState.includes(${JSON.stringify(o.propertyId)}) %>`,properties:{className:`<%= \`raw-content\${ CTX.propertyExpandState.includes(${JSON.stringify(o.propertyId)}) ? " expand" : "" }\` %>`,textContent:void 0===e?"":"string"==typeof e?e:JSON.stringify(e,null,2)}})))},{brick:"eo-button",properties:{className:"btn-toggle",type:"text",icon:`<%=\n {\n lib: "fa",\n prefix: "fas",\n icon: CTX.propertyExpandState.includes(${JSON.stringify(o.propertyId)}) ? "chevron-up" : "chevron-down",\n }\n %>`},events:{click:{action:"context.replace",args:["propertyExpandState",`<%\n CTX.propertyExpandState.includes(${JSON.stringify(o.propertyId)})\n ? CTX.propertyExpandState.filter((id) => id !== ${JSON.stringify(o.propertyId)})\n : CTX.propertyExpandState.concat(${JSON.stringify(o.propertyId)})\n %>`]}}}]});for(let e=-1;e<3;e++){const t=s.get(e);let r;t&&(r=(0,w.w)(t,o.propertyId)),i.push({brick:"div",properties:{className:g()("body-cell",{"last-row-cell":a})},children:[{brick:"div",properties:{className:"list"},children:r?c.map(((e,t)=>({brick:"visual-builder.pre-generated-container",if:0===t||`<%= CTX.propertyToggleState.includes(${JSON.stringify(o.propertyId)}) %>`,properties:{useBrick:[r],dataSource:{[o.propertyId]:e}},errorBoundary:!0}))):void 0}]})}i.push({brick:"div",properties:{className:g()("body-cell",{"last-row-cell":a})},children:o.candidates?[{brick:"eo-checkbox",properties:{value:`<%= CTX.propertyApproveState.includes(${JSON.stringify(o.propertyId)}) ? ["approved"] : [] %>`,options:[{label:"",value:"approved"}],disabled:`<%= CTX.busy || ${JSON.stringify(!o.generationId)} %>`},events:{change:[{action:"window.postMessage",args:[{channel:"raw-data-preview",type:"approve",payload:{approved:"<% EVENT.detail.length > 0 %>",propertyInstanceId:o.propertyInstanceId}}]},{action:"context.replace",args:["propertyApproveState",`<%\n EVENT.detail.length > 0\n ? CTX.propertyApproveState.concat(${JSON.stringify(o.propertyId)})\n : CTX.propertyApproveState.filter((id) => id !== ${JSON.stringify(o.propertyId)})\n %>`]}]}}]:void 0},{brick:"div",properties:{className:g()("body-cell",{"last-col-cell":!0,"last-row-cell":a})},children:o.candidates?[{brick:"eo-textarea",properties:{value:o.comment?`<% ${JSON.stringify(o.comment)} %>`:void 0,autoSize:!0,style:{width:"100%"},disabled:`<%= CTX.busy || ${JSON.stringify(!o.generationId)} || CTX.propertyApproveState.includes(${JSON.stringify(o.propertyId)}) %>`},events:{keydown:{if:"<% EVENT.code === 'Enter' && (EVENT.metaKey || EVENT.ctrlKey) %>",action:"window.postMessage",args:[{channel:"raw-data-preview",type:"comment",payload:{comment:"<% EVENT.target.value %>",propertyInstanceId:o.propertyInstanceId}}]}}}]:void 0})}t("yaml",{yaml:(0,m.safeDump)([o,{brick:"eo-message-listener",properties:{sameOrigin:!0},events:{message:{if:"<% EVENT.detail.data?.channel === 'raw-data-preview' && EVENT.detail.data.type === 'busy' %>",action:"context.replace",args:["busy","<% EVENT.detail.data.payload %>"]}},portal:!0,errorBoundary:!0}],{schema:m.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0})},{app:c,theme:a,uiVersion:s,styleText:k.A})}),[c,S,r,a,s,o,n]),u().createElement("div",{className:g()("container")},u().createElement("iframe",{ref:v,src:null!=t?t:`${(0,f.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:C}))}n=fe,({e:[x,E,T,N,C,I,O,P,_,$,M,W,X,J,V,j,R,B,U,z,D,L,K,q,H,Y,F,G],c:[te,S]}=(0,l.A)(n,[Q("visual-builder.raw-data-preview",{styleTexts:[A.A]})],[[Z(),1,"previewUrl"],[Z({attribute:!1}),1,"generations"],[Z({attribute:!1}),1,"mocks"],[Z({type:Boolean}),1,"busy"],[Z(),1,"category"],[Z(),1,"theme"],[Z(),1,"uiVersion"],[Z(),1,"app"],[ee({type:"comment"}),1,"commentEvent",e=>(0,p.A)(le,e),(e,t)=>(0,c.A)(le,e,t)],[ee({type:"approve"}),1,"approveEvent",e=>(0,p.A)(ye,e),(e,t)=>(0,c.A)(ye,e,t)],[ee({type:"view.attr.prompt"}),1,"viewAttrPromptEvent",e=>(0,p.A)(he,e),(e,t)=>(0,c.A)(he,e,t)]],0,(e=>ge.has((0,a.A)(e))),v.ReactNextElement)),S()},53373:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(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 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?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},59034:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(36758),i=r.n(n),o=r(40935),a=r.n(o)()(i());a.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container,\niframe{width:100%;height:100%;border-radius:4px}.container{position:relative}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}",""]);const s=a.toString()},62740:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(17545),i=r(26902);function o(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(11369);function s(e,t,r,s,c,p){var l,d,u,y,v,h,g,f=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,b=Object.create,w=[b(null),b(null)],A=t.length;function k(t,r,n){return function(i,o){r&&(o=i,i=e);for(var a=0;a<t.length;a++)o=t[a].apply(i,n?[o]:[]);return n?o:i}}function S(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 x(e,t,r,i,a,s,c,p,u,y,v){function h(e){if(!v(e))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(t[0]),f=t[3],b=!c,A=1===a,x=3===a,E=4===a,T=2===a;function N(t,r,n){return function(i,o){return r&&(o=i,i=e),n&&n(i),C[t].call(i,o)}}if(!b){var C={},I=[],O=x?"get":E||A?"set":"value";if(u?(y||A?C={get:o((function(){return f(this)}),i,"get"),set:function(e){t[4](this,e)}}:C[O]=f,y||o(C[O],i,T?"":O)):y||(C=Object.getOwnPropertyDescriptor(e,i)),!y&&!u){if((d=w[+p][i])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+C[O].name+") is not supported yet");w[+p][i]=a<3?1:a}}for(var P=e,_=g.length-1;_>=0;_-=r?2:1){var $=S(g[_],"A decorator","be",!0),M=r?g[_-1]:void 0,W={},X={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:l,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");S(t,"An initializer","be",!0),s.push(t)}.bind(null,W)};if(b)d=$.call(M,P,X),W.v=1,S(d,"class decorators","return")&&(P=d);else if(X.static=p,X.private=u,d=X.access={has:u?v.bind():function(e){return i in e}},E||(d.get=u?T?function(e){return h(e),C.value}:N("get",0,h):function(e){return e[i]}),T||x||(d.set=u?N("set",0,h):function(e,t){e[i]=t}),P=$.call(M,A?{get:C.get,set:C.set}:C[O],X),W.v=1,A){if("object"==(0,n.A)(P)&&P)(d=S(P.get,"accessor.get"))&&(C.get=d),(d=S(P.set,"accessor.set"))&&(C.set=d),(d=S(P.init,"accessor.init"))&&I.unshift(d);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else S(P,(y?"field":"method")+" decorators","return")&&(y?I.unshift(P):C[O]=P)}return a<2&&c.push(k(I,p,1),k(s,p,0)),y||b||(u?A?c.splice(-1,0,N("get",p),N("set",p)):c.push(T?C[O]:S.call.bind(C[O])):m(e,i,C)),P}function E(e){return m(e,f,{configurable:!0,enumerable:!0,value:l})}return void 0!==p&&(l=p[f]),l=b(null==l?null:l),v=[],h=function(e){e&&v.push(k(e))},g=function(t,n){for(var o=0;o<r.length;o++){var s=r[o],p=s[1],l=7&p;if((8&p)==t&&!l==n){var d=s[2],h=!!s[3],g=16&p;x(t?e:e.prototype,s,g,h?"#"+d:(0,a.A)(d),l,l<2?[]:t?y=y||[]:u=u||[],v,!!t,h,n,t&&h?function(t){return(0,i.A)(t)===e}:c)}}},g(8,0),g(0,0),g(8,1),g(0,1),h(u),h(y),d=v,A||E(e),{e:d,get c(){var r=[];return A&&[E(e=x(e,[t],s,e.name,5,r)),k(r,1)]}}}},70829:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(12559);function i(e,t){return e.get((0,n.A)(e,t))}},70918:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(72016);function i(e,t,r){(0,n.A)(e,t),t.set(e,r)}},72016:(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})},74635:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(72016);function i(e,t){(0,n.A)(e,t),t.add(e)}},86121:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(12559);function i(e,t,r){return e.set((0,n.A)(e,t),r),r}},94162:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(36758),i=r.n(n),o=r(40935),a=r.n(o)()(i());a.push([e.id,"body{background-color:transparent}#preview-root{padding:0;height:auto;max-height:100vh;overflow-y:auto;border:1px solid var(--theme-gray-border-color);border-radius:4px;background:var(--body-background)}.head-cell{position:sticky;top:0;z-index:1;font-weight:bold;align-content:center}.head-cell,\n.body-cell{background:var(--body-background)}.body-cell{display:flex;align-items:center;justify-content:space-between}.last-col-cell{border-right-color:transparent}.last-row-cell{border-bottom-color:transparent}.form-container > ::part(message){display:none}.list{display:flex;flex-direction:column;gap:8px;width:100%}.raw-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-color-secondary)}.raw-content.expand{white-space:pre-wrap}.tips{color:var(--text-color-secondary);font-weight:normal}.body-cell:not(:hover) .btn-toggle{visibility:hidden}",""]);const s=a.toString()}}]);
|
|
3
|
-
//# sourceMappingURL=raw-data-preview.6f49113a.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see raw-metric-preview.dc642439.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[9555],{2183:(e,t,r)=>{"use strict";r.d(t,{q:()=>o});let i=r(29475).__secret_internals;try{var n;const e=window.dll;if(e&&null!==(n=window.BRICK_NEXT_VERSIONS)&&void 0!==n&&null!==(n=n["brick-container"])&&void 0!==n&&n.startsWith("2.")){const{developHelper:t}=e("tYg3");i={getBrickPackagesById(e){var r;return null===(r=t.getBrickPackages)||void 0===r?void 0:r.call(t).find((t=>t.id===e))}}}}catch(e){console.error("Try to use v2 runtime APIs failed:",e)}const o=i},11369:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(17545);function n(e){var t=function(e){if("object"!=(0,i.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=(0,i.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,i.A)(t)?t:t+""}},12559:(e,t,r)=>{"use strict";function i(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:()=>i})},17545:(e,t,r)=>{"use strict";function i(e){return i="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},i(e)}r.d(t,{A:()=>i})},19802:(e,t,r)=>{"use strict";function i(e){const t=[];for(let r=-1;r<3;r++){const i="percent(1)"===e.unit,n="percent(100)"===e.unit||"%"===e.unit,o=r<=0?"small":1===r?"medium":"large";if(i||n||r>=0){const a=-1===r?"gauge":2===r?"area":"line";t.push({visualWeight:r,chartType:a,size:o,min:0,precision:i||n?1:"double"===e.dataType?2:0})}}return t}r.d(t,{e:()=>i})},26902:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(17545);function n(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,i.A)(e):"null"));return e}},36758:e=>{"use strict";e.exports=function(e){return e[1]}},38350:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(36758),n=r.n(i),o=r(40935),a=r.n(o)()(n());a.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container,\niframe{width:100%;height:100%;border-radius:4px}.container{position:relative}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}",""]);const s=a.toString()},40935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",i=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),i&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),i&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,i,n,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);i&&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),n&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=n):u[4]="".concat(n)),t.push(u))}},t}},53373:(e,t)=>{var r;!function(){"use strict";var i={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.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)i.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?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},54982:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(36758),n=r.n(i),o=r(40935),a=r.n(o)()(n());a.push([e.id,"#preview-root{overflow-y:initial;max-height:initial}.body-cell.large-chart-cell{padding:16px}",""]);const s=a.toString()},56689:(e,t,r)=>{"use strict";r.r(t),r.d(t,{RawMetricPreview:()=>W,RawMetricPreviewComponent:()=>K});var i,n=r(70918),o=r(86121),a=r(70829),s=r(62740),l=r(18769),c=r.n(l),u=r(7921),p=r(11280),d=(r(65168),r(53373)),h=r.n(d),v=r(29475),f=r(55310),m=r(2183),g=r(38350),y=r(94162),b=r(54982),w=r(78396),k=r(19802);let x,A,E,N,S,T,_,C,P,j,z,I,B,O,V;const{defineElement:M,property:R}=(0,u.createDecorators)();let W;var U=new WeakMap,$=new WeakMap,D=new WeakMap,F=new WeakMap,L=new WeakMap,H=new WeakMap,q=new WeakMap;class J extends p.ReactNextElement{constructor(){super(...arguments),(0,n.A)(this,U,A(this)),(0,n.A)(this,$,(E(this),N(this))),(0,n.A)(this,D,(S(this),T(this))),(0,n.A)(this,F,(_(this),C(this))),(0,n.A)(this,L,(P(this),j(this))),(0,n.A)(this,H,(z(this),I(this))),(0,n.A)(this,q,(B(this),O(this))),V(this)}get previewUrl(){return(0,a.A)(U,this)}set previewUrl(e){(0,o.A)(U,this,e)}get generations(){return(0,a.A)($,this)}set generations(e){(0,o.A)($,this,e)}get grouped(){return(0,a.A)(D,this)}set grouped(e){(0,o.A)(D,this,e)}get busy(){return(0,a.A)(F,this)}set busy(e){(0,o.A)(F,this,e)}get theme(){return(0,a.A)(L,this)}set theme(e){(0,o.A)(L,this,e)}get uiVersion(){return(0,a.A)(H,this)}set uiVersion(e){(0,o.A)(H,this,e)}get app(){return(0,a.A)(q,this)}set app(e){(0,o.A)(q,this,e)}render(){return c().createElement(K,{root:this,previewUrl:this.previewUrl,generations:this.generations,grouped:this.grouped,busy:this.busy,theme:this.theme,uiVersion:this.uiVersion,app:this.app})}}function K(e){let{root:t,previewUrl:r,generations:i,grouped:n,busy:o,theme:a,uiVersion:s,app:u}=e;const p=(0,l.useRef)(),[d,g]=(0,l.useState)(!1),[x,A]=(0,l.useState)(!1),E=(0,l.useCallback)((()=>{const e=()=>{var t;const r=null===(t=p.current)||void 0===t?void 0:t.contentWindow;null!=r&&r._preview_only_render?g(!0):setTimeout(e,100)};e()}),[]);return(0,l.useEffect)((()=>{d&&p.current.contentWindow.postMessage({channel:"raw-metric-preview",type:"busy",payload:o},location.origin)}),[o,d]),(0,l.useEffect)((()=>{if(d){const e=p.current.contentWindow,r=e=>{let{data:r}=e;"raw-metric-preview"===(null==r?void 0:r.channel)&&"resize"===r.type&&(t.style.height=`${r.payload.height+2}px`)};return e.addEventListener("message",r),()=>{e.removeEventListener("message",r)}}}),[d,t]),(0,l.useEffect)((()=>{var e;if(!d)return;const t=m.q.getBrickPackagesById("bricks/visual-builder");if(!t)throw new Error("Cannot find preview agent package: bricks/visual-builder");const i=p.current.contentWindow._preview_only_inject,n={...t,filePath:r?new URL(t.filePath,new URL(r,location.origin)).toString():`${location.origin}${(0,v.getBasePath)()}${null!==(e=window.PUBLIC_ROOT)&&void 0!==e?e:""}${t.filePath}`};Promise.allSettled(["visual-builder.pre-generated-table-view","visual-builder.pre-generated-container"].map((e=>i(e,n,void 0,!0)))).then((()=>{A(!0)}))}),[r,d]),(0,l.useEffect)((()=>{var e;if(!x)return;const t=null===(e=p.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;if(!t)return;const r=[...n?[{brick:"div",properties:{textContent:"分组",className:"head-cell"}}]:[],{brick:"div",properties:{textContent:"指标",className:"head-cell"}},{brick:"div",properties:{textContent:"别名",className:"head-cell"}},{brick:"div",properties:{textContent:"",className:"head-cell"}},{brick:"div",properties:{textContent:"视觉重量 (由低至高)",className:"head-cell",style:{gridColumn:"span 4",textAlign:"center"}}}],o={brick:"visual-builder.pre-generated-table-view",context:[{name:"busy"}],properties:{style:{gridTemplateColumns:(n?"minmax(129px, 0.5fr) ":"")+"minmax(120px, 0.8fr) minmax(120px, 0.5fr) 32px repeat(2, 0.6fr) repeat(2, 1fr)"}},children:r},l=new Set,c=new Map;for(const e of i){const t=e.groupIndex;if(null!=t){var d;const r=null!==(d=c.get(t))&&void 0!==d?d:[];c.set(t,r.concat(e))}}for(let e=0,t=i.length;e<t;e++){var v,m,g;const o=i[e],a=e===t-1;let s,u=!1,p=!1;if(n){const{groupIndex:i}=o;if(null==i)r.push({brick:"div",properties:{textContent:"",className:h()("body-cell",{"last-row-cell":a})}});else if(l.has(i))p=!0;else{l.add(i),s=c.get(i);const n=s.length;u=e+n-1==t-1,r.push({brick:"div",properties:{textContent:o.group,className:h()("body-cell",{"last-row-cell":u}),style:{gridRow:`span ${n}`}}})}}r.push({brick:"div",properties:{className:h()("body-cell",{"last-row-cell":a})},children:[{brick:"span",properties:{textContent:`${o.propertyId}`}}]},{brick:"div",properties:{className:h()("body-cell",{"last-row-cell":a})},children:[{brick:"span",properties:{textContent:`${o.propertyName||""}`}}]},{brick:"div",properties:{className:h()("body-cell",{"last-row-cell":a})},children:null!==(v=o.candidates)&&void 0!==v&&v.length||o.mockData?[{brick:"eo-icon",properties:{lib:"fa",prefix:null!==(m=o.candidates)&&void 0!==m&&m.length?"fas":"far",icon:"circle",style:{color:o.generationId&&null!==(g=o.candidates)&&void 0!==g&&g.length?"var(--palette-green-6)":"var(--palette-gray-6)",transformOrigin:"center center",transform:"scale(0.5)"}}}]:void 0});const d=o.propertyName||o.propertyId,f={name:o.propertyId,displayName:o.propertyName,unit:o.propertyUnit,dataType:o.propertyDataType},y=(0,k.e)(f);for(let e=-1;e<3;e++){var A;const t=y.find((t=>t.visualWeight===e)),i="percent(1)"===o.propertyUnit,n="percent(100)"===o.propertyUnit||"%"===o.propertyUnit;let l;const c=e<=0?"small":1===e?"medium":"large",v="small"!==c&&p,f=o.counter?null===(A=s)||void 0===A?void 0:A.find((e=>e.propertyId===o.counter)):void 0,m=(null==f?void 0:f.propertyName)||(null==f?void 0:f.propertyId);if(v)continue;const g="small"!==c&&s;var E;o.mockData&&(i||n||e>=0)&&(l=(0,w.r)({...t,min:m?void 0:t.min},"<% DATA %>",d,{unit:o.propertyUnit},null===(E=s)||void 0===E?void 0:E.map((e=>e.propertyName||e.propertyId)),m)),r.push({brick:"div",properties:{className:h()("body-cell",{"last-row-cell":a||u,"large-chart-cell":"small"!==c}),style:{justifyContent:"center",...g?{gridRow:`span ${s.length}`}:null}},children:[{brick:"div",properties:{className:"list"},children:l?[{brick:"visual-builder.pre-generated-container",properties:{useBrick:[l],dataSource:o.mockData.map(((e,t)=>({time:Math.round(+new Date/1e3)-86400+300*t,...g?Object.fromEntries(s.map((e=>{var r;return[e.propertyName||e.propertyId,null===(r=e.mockData)||void 0===r?void 0:r[t]]}))):{[d]:e}})))},errorBoundary:!0}]:void 0}]})}}t("yaml",{yaml:(0,f.safeDump)([{brick:"sl-resize-observer",children:[o],events:{"sl-resize":{action:"window.postMessage",args:[{channel:"raw-metric-preview",type:"resize",payload:"<%\n EVENT.detail.entries[0].borderBoxSize\n ? { width: EVENT.detail.entries[0].borderBoxSize[0].inlineSize, height: EVENT.detail.entries[0].borderBoxSize[0].blockSize }\n : { width: EVENT.detail.entries[0].contentRect.width, height: EVENT.detail.entries[0].contentRect.height }\n %>"}]}}},{brick:"eo-message-listener",properties:{sameOrigin:!0},events:{message:{if:"<% EVENT.detail.data?.channel === 'raw-metric-preview' && EVENT.detail.data.type === 'busy' %>",action:"context.replace",args:["busy","<% EVENT.detail.data.payload %>"]}},portal:!0,errorBoundary:!0}],{schema:f.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0})},{app:u,theme:a,uiVersion:s,styleText:[y.A,b.A].join("\n")})}),[u,x,i,a,s,n]),c().createElement("div",{className:h()("container")},c().createElement("iframe",{ref:p,src:null!=r?r:`${(0,v.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:E}))}i=J,({e:[A,E,N,S,T,_,C,P,j,z,I,B,O,V],c:[W,x]}=(0,s.A)(i,[M("visual-builder.raw-metric-preview",{styleTexts:[g.A]})],[[R(),1,"previewUrl"],[R({attribute:!1}),1,"generations"],[R({type:Boolean}),1,"grouped"],[R({type:Boolean}),1,"busy"],[R(),1,"theme"],[R(),1,"uiVersion"],[R(),1,"app"]],0,void 0,p.ReactNextElement)),x()},62740:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(17545),n=r(26902);function o(e,t,r){"symbol"==(0,i.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(11369);function s(e,t,r,s,l,c){var u,p,d,h,v,f,m,g=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,b=Object.create,w=[b(null),b(null)],k=t.length;function x(t,r,i){return function(n,o){r&&(o=n,n=e);for(var a=0;a<t.length;a++)o=t[a].apply(n,i?[o]:[]);return i?o:n}}function A(e,t,r,i){if("function"!=typeof e&&(i||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(i?"":" or undefined"));return e}function E(e,t,r,n,a,s,l,c,d,h,v){function f(e){if(!v(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),g=t[3],b=!l,k=1===a,E=3===a,N=4===a,S=2===a;function T(t,r,i){return function(n,o){return r&&(o=n,n=e),i&&i(n),_[t].call(n,o)}}if(!b){var _={},C=[],P=E?"get":N||k?"set":"value";if(d?(h||k?_={get:o((function(){return g(this)}),n,"get"),set:function(e){t[4](this,e)}}:_[P]=g,h||o(_[P],n,S?"":P)):h||(_=Object.getOwnPropertyDescriptor(e,n)),!h&&!d){if((p=w[+c][n])&&7!=(p^a))throw Error("Decorating two elements with the same name ("+_[P].name+") is not supported yet");w[+c][n]=a<3?1:a}}for(var j=e,z=m.length-1;z>=0;z-=r?2:1){var I=A(m[z],"A decorator","be",!0),B=r?m[z-1]:void 0,O={},V={kind:["field","accessor","method","getter","setter","class"][a],name:n,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");A(t,"An initializer","be",!0),s.push(t)}.bind(null,O)};if(b)p=I.call(B,j,V),O.v=1,A(p,"class decorators","return")&&(j=p);else if(V.static=c,V.private=d,p=V.access={has:d?v.bind():function(e){return n in e}},N||(p.get=d?S?function(e){return f(e),_.value}:T("get",0,f):function(e){return e[n]}),S||E||(p.set=d?T("set",0,f):function(e,t){e[n]=t}),j=I.call(B,k?{get:_.get,set:_.set}:_[P],V),O.v=1,k){if("object"==(0,i.A)(j)&&j)(p=A(j.get,"accessor.get"))&&(_.get=p),(p=A(j.set,"accessor.set"))&&(_.set=p),(p=A(j.init,"accessor.init"))&&C.unshift(p);else if(void 0!==j)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else A(j,(h?"field":"method")+" decorators","return")&&(h?C.unshift(j):_[P]=j)}return a<2&&l.push(x(C,c,1),x(s,c,0)),h||b||(d?k?l.splice(-1,0,T("get",c),T("set",c)):l.push(S?_[P]:A.call.bind(_[P])):y(e,n,_)),j}function N(e){return y(e,g,{configurable:!0,enumerable:!0,value:u})}return void 0!==c&&(u=c[g]),u=b(null==u?null:u),v=[],f=function(e){e&&v.push(x(e))},m=function(t,i){for(var o=0;o<r.length;o++){var s=r[o],c=s[1],u=7&c;if((8&c)==t&&!u==i){var p=s[2],f=!!s[3],m=16&c;E(t?e:e.prototype,s,m,f?"#"+p:(0,a.A)(p),u,u<2?[]:t?h=h||[]:d=d||[],v,!!t,f,i,t&&f?function(t){return(0,n.A)(t)===e}:l)}}},m(8,0),m(0,0),m(8,1),m(0,1),f(d),f(h),p=v,k||N(e),{e:p,get c(){var r=[];return k&&[N(e=E(e,[t],s,e.name,5,r)),x(r,1)]}}}},70829:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(12559);function n(e,t){return e.get((0,i.A)(e,t))}},70918:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(72016);function n(e,t,r){(0,i.A)(e,t),t.set(e,r)}},72016:(e,t,r)=>{"use strict";function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>i})},78396:(e,t,r)=>{"use strict";function i(e,t,r,i,n,o){let a=null;const s="bibytes"===i.unit?"bytes":i.unit;if("small"===e.size)switch(e.chartType){case"line":a={brick:"eo-mini-line-chart",properties:{data:t,xField:"time",yField:r,width:"auto",showArea:!0}};break;case"gauge":{var l;const n="percent(1)"===i.unit,o="percent(100)"===i.unit||"%"===i.unit;a={brick:"chart-v2.gauge-chart",properties:{data:t,xField:"time",yField:r,height:100,axis:{yAxis:{unit:s,precision:e.precision,min:e.min,max:null!==(l=e.max)&&void 0!==l?l:n?1:o?100:void 0}},thresholdColors:n||o?[{value:20,color:"cyan"},{value:90,color:"yellow"},{value:100,color:"red"}].map((e=>{let{value:t,color:r}=e;return{value:o?t:t/100,color:`<% THEME.getCssPropertyValue(${JSON.stringify(`--palette-${r}-5`)}) %>`}})):void 0}};break}}else switch(e.chartType){case"line":case"area":a={brick:"chart-v2.time-series-chart",properties:{data:t,xField:"time",yFields:null!=n?n:[r],height:"large"===e.size?230:200,timeFormat:"HH:mm",areaOpacity:"line"===e.chartType?0:void 0,axis:{yAxis:{unit:s,precision:e.precision,min:e.min,max:e.max,shape:"smooth"}},...o?{forceAbsoluteNumbers:!0,series:{[o]:{isNegative:!0}}}:null,areaShape:"smooth",legends:"large"===e.size}}}return a}r.d(t,{r:()=>i})},86121:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(12559);function n(e,t,r){return e.set((0,i.A)(e,t),r),r}},94162:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(36758),n=r.n(i),o=r(40935),a=r.n(o)()(n());a.push([e.id,"body{background-color:transparent}#preview-root{padding:0;height:auto;max-height:100vh;overflow-y:auto;border:1px solid var(--theme-gray-border-color);border-radius:4px;background:var(--body-background)}.head-cell{position:sticky;top:0;z-index:1;font-weight:bold;align-content:center}.head-cell,\n.body-cell{background:var(--body-background)}.body-cell{display:flex;align-items:center;justify-content:space-between}.last-col-cell{border-right-color:transparent}.last-row-cell{border-bottom-color:transparent}.form-container > ::part(message){display:none}.list{display:flex;flex-direction:column;gap:8px;width:100%}.raw-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-color-secondary)}.raw-content.expand{white-space:pre-wrap}.tips{color:var(--text-color-secondary);font-weight:normal}.body-cell:not(:hover) .btn-toggle{visibility:hidden}",""]);const s=a.toString()}}]);
|
|
3
|
-
//# sourceMappingURL=raw-metric-preview.dc642439.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see workbench-history-action.2f710853.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[2080],{5536:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(12559);function r(e,t,o){return o((0,n.A)(e,t))}},11369:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(17545);function r(e){var t=function(e){if("object"!=(0,n.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.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+""}},12559:(e,t,o)=>{function n(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}o.d(t,{A:()=>n})},17545:(e,t,o)=>{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)}o.d(t,{A:()=>n})},18675:(e,t,o)=>{o.d(t,{B:()=>s});var n=o(86156),r=o(99733);const a={add:`${n.NS}:${n.K.ADD}`,edit:`${n.NS}:${n.K.EDIT}`,delete:`${n.NS}:${n.K.DELETE}`,batch_delete:`${n.NS}:${n.K.DELETE}`,import:`${n.NS}:${n.K.IMPORT}`,clone:`${n.NS}:${n.K.CLONE}`,append_relation:`${n.NS}:${n.K.APPEND_RELATION}`,update_relation:`${n.NS}:${n.K.UPDATE_RELATION}`,remove_relation:`${n.NS}:${n.K.REMOVE_RELATION}`,rollback:`${n.NS}:${n.K.ROLLBACK}`,rollback_all:`${n.NS}:${n.K.ROLLBACK_ALL}`},i={add:`${n.NS}:${n.K.ADD_FULL}`,edit:`${n.NS}:${n.K.EDIT_FULL}`,delete:`${n.NS}:${n.K.DELETE_FULL}`,batch_delete:`${n.NS}:${n.K.DELETE_FULL}`,import:`${n.NS}:${n.K.IMPORT_FULL}`,clone:`${n.NS}:${n.K.CLONE_FULL}`,append_relation:`${n.NS}:${n.K.APPEND_RELATION_FULL}`,update_relation:`${n.NS}:${n.K.UPDATE_RELATION_FULL}`,remove_relation:`${n.NS}:${n.K.REMOVE_RELATION_FULL}`,rollback:`${n.NS}:${n.K.ROLLBACK_FULL}`,rollback_all:`${n.NS}:${n.K.ROLLBACK_ALL_FULL}`},l={project:`${n.NS}:${n.K.PROJECT}`,userGroup:`${n.NS}:${n.K.USER}`,permission:`${n.NS}:${n.K.PERMISSION}`,brick:`${n.NS}:${n.K.BRICK}`,route:`${n.NS}:${n.K.ROUTE}`,template:`${n.NS}:${n.K.TEMPLATE}`,snippet:`${n.NS}:${n.K.SNIPPET}`,i18n:`${n.NS}:${n.K.I18N}`,image:`${n.NS}:${n.K.IMAGE}`,function:`${n.NS}:${n.K.FUNCTION}`,menu:`${n.NS}:${n.K.MENU}`,menuItem:`${n.NS}:${n.K.MENU_ITEM}`,workflow:`${n.NS}:${n.K.WORKFLOW}`},c={PROJECT_MICRO_APP:`${n.NS}:${n.K.PROJECT}`,"MICRO_APP_USER_GROUP@EASYOPS":`${n.NS}:${n.K.USER}`,MICRO_APP_RESOURCE_PERMISSION:`${n.NS}:${n.K.PERMISSION}`,STORYBOARD_BRICK:`${n.NS}:${n.K.BRICK}`,STORYBOARD_ROUTE:`${n.NS}:${n.K.ROUTE}`,STORYBOARD_TEMPLATE:`${n.NS}:${n.K.TEMPLATE}`,STORYBOARD_SNIPPET:`${n.NS}:${n.K.SNIPPET}`,STORYBOARD_I18N:`${n.NS}:${n.K.I18N}`,MICRO_APP_RESOURCE_IMAGE:`${n.NS}:${n.K.IMAGE}`,STORYBOARD_FUNCTION:`${n.NS}:${n.K.FUNCTION}`,MICRO_APP_RESOURCE_MENU:`${n.NS}:${n.K.MENU}`,MICRO_APP_RESOURCE_MENU_ITEM:`${n.NS}:${n.K.MENU_ITEM}`,"WORKFLOW_DEF@EASYOPS":`${n.NS}:${n.K.WORKFLOW}`};function s(e){var t,o,n,E,L,u,N,A,O,p,h,R,b,I,f,m,_;const v="rollback"!==e.action||e.rollBackIdInfo?e.action:"rollback_all",T=r.i18n.t(null!==(t=l[e.category])&&void 0!==t?t:e.category),g=r.i18n.t(null!==(o=a[v])&&void 0!==o?o:v),S=r.i18n.t(null!==(n=c[null===(E=e.abstract)||void 0===E?void 0:E.leftObjectId])&&void 0!==n?n:null===(L=e.abstract)||void 0===L?void 0:L.leftObjectId),U=r.i18n.t(null!==(u=c[null===(N=e.abstract)||void 0===N?void 0:N.rightObjectId])&&void 0!==u?u:null===(A=e.abstract)||void 0===A?void 0:A.rightObjectId),$=d(null===(O=e.abstract)||void 0===O?void 0:O.nodes,null===(p=e.abstract)||void 0===p?void 0:p.nodesCount),y=d(null===(h=e.abstract)||void 0===h?void 0:h.leftNodes,null===(R=e.abstract)||void 0===R?void 0:R.leftNodesCount),D=d(null===(b=e.abstract)||void 0===b?void 0:b.rightNodes,null===(I=e.abstract)||void 0===I?void 0:I.rightNodesCount),P="rollback"===v?s(e.rollBackIdInfo).abstract:null;return{category:T,action:g,leftObjectId:S,rightObjectId:U,nodes:$,leftNodes:y,rightNodes:D,abstract:r.i18n.t(null!==(f=i[v])&&void 0!==f?f:v,{category:T,nodes:$,leftNodes:y,rightNodes:D,nodeChanges:null===(m=e.abstract)||void 0===m||null===(m=m.nodeChanges)||void 0===m?void 0:m.join(", "),relationChanges:null===(_=e.abstract)||void 0===_||null===(_=_.relationChanges)||void 0===_?void 0:_.join(", "),leftObjectId:S,rightObjectId:U,rollbackAbstract:P}),rollbackAbstract:P}}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ";return r.i18n.t(`${n.NS}:${n.K.NODE}`,{nodes:e.join(o),context:t>e.length?"ellipsis":void 0,count:t})}},26902:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(17545);function r(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}},34107:(e,t,o)=>{o.d(t,{R:()=>r});var n=o(57372);const r=async(e,t,o)=>(await n.http.get(`api/gateway/next_builder.workspace.GetChangeHistory/api/v1/next-builder/workspace/${e}/changes`,{...o,params:t})).data},34754:(e,t,o)=>{o.r(t),o.d(t,{WorkbenchHistoryAction:()=>H,WorkbenchHistoryActionComponent:()=>ae});var n,r=o(74635),a=o(70918),i=o(26902),l=o(5536),c=o(86121),s=o(70829),d=o(62740),E=o(18769),L=o.n(E),u=o(7921),N=o(11280),A=o(29475),O=(o(65168),o(21302)),p=o.n(O),h=o(91361),R=o(69704),b=o(86156),I=o(34107),f=o(18675);let m,_,v,T,g,S,U,$,y,D,P,C,K,k,M,F,w;(0,R.initializeReactI18n)(b.NS,b.I);const{defineElement:x,property:B,event:j}=(0,u.createDecorators)(),W=(0,N.wrapBrick)("eo-button"),z=(0,N.wrapBrick)("eo-link"),G=(0,N.wrapBrick)("eo-icon"),V=(0,N.wrapBrick)("eo-easyops-avatar"),Y=(0,N.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",onBeforeVisibleChange:"before.visible.change"});let H;var J=new WeakMap,q=new WeakMap,Q=new WeakMap,X=new WeakSet,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,oe=new WeakMap,ne=new WeakMap;class re extends N.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,X),(0,a.A)(this,J,_(this)),(0,a.A)(this,q,(v(this),T(this))),(0,a.A)(this,Q,(g(this),S(this))),(0,a.A)(this,Z,(y(this),e=>{(0,l.A)(X,this,U).emit(e)})),(0,a.A)(this,ee,D(this)),(0,a.A)(this,te,(K(this),e=>{(0,l.A)(X,this,P).emit(e)})),(0,a.A)(this,oe,k(this)),(0,a.A)(this,ne,(w(this),()=>{(0,l.A)(X,this,M).emit()}))}get appId(){return(0,s.A)(J,this)}set appId(e){(0,c.A)(J,this,e)}get projectId(){return(0,s.A)(q,this)}set projectId(e){(0,c.A)(q,this,e)}render(){return L().createElement(ae,{appId:this.appId,projectId:this.projectId,onHistoryItemClick:(0,s.A)(Z,this),onRollback:(0,s.A)(te,this),onRollbackAll:(0,s.A)(ne,this)})}}function ae(e){const{appId:t,onHistoryItemClick:o,onRollback:n,onRollbackAll:r}=e,{t:a}=(0,R.useTranslation)(b.NS),[i,l]=(0,E.useState)(!1),[c,s]=(0,E.useState)(!0),[d,u]=(0,E.useState)(!1),[N,O]=(0,E.useState)([]),p=(0,E.useRef)(""),h=e=>{l(!0),(0,I.R)(t,{ts:p.current,limit:20}).then((t=>{O((o=>{const n=t.list.map((e=>({...e,translation:(0,f.B)(e)})));return e?n:o.concat(n)})),p.current=t.ts,u(t.list.length<20),s(t.list.length<20)})).catch((e=>{(0,A.handleHttpError)(e)})).finally((()=>{l(!1)}))};return L().createElement(Y,{placement:"bottom",trigger:"click",arrow:!0,arrowColor:"var(--color-fill-bg-container-4)",onBeforeVisibleChange:e=>{e.detail&&(s(!0),u(!1),O([]),p.current="",h(!0))}},L().createElement(W,{slot:"anchor",shape:"circle",className:"history-action",icon:{lib:"antd",icon:"history",theme:"outlined"}}),L().createElement("div",null,L().createElement("div",{className:"history-title"},"History"),L().createElement("div",{className:"history-list"},N.length?L().createElement(L().Fragment,null,N.map(((e,t)=>L().createElement(ie,{key:`${e.uniqueKey}-${e.ts}`,data:e,enableRollback:0!==t&&"rollback"!==e.action,current:0===t,onHistoryItemClick:o,onRollback:n}))),!c&&L().createElement("span",{className:"load-more-container"},L().createElement(z,{className:"load-more",disabled:i,onClick:()=>h()},a(b.K.LOAD_MORE))),d&&L().createElement("span",{className:"end-container"},"The End",L().createElement(G,{className:"rollback-all",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>r()}))):L().createElement("div",{className:"empty"},a(i?b.K.LOADING:b.K.NO_DATA))),L().createElement("slot",null)))}function ie(e){const{data:t,enableRollback:o,current:n,onHistoryItemClick:r,onRollback:a}=e,i=p()(Number(t.ts)/1e6),l=p().duration(i.diff(p()())),c=l.days()<=-1?i.format("YYYY-MM-DD HH:mm:ss"):l.humanize(!0,{ss:0,s:60,m:60,h:24});return L().createElement("div",{className:"item-container"},L().createElement("div",{className:"item-title"},L().createElement("div",{className:"title-left",onClick:()=>r({...t,enableRollback:o})},L().createElement("div",{className:"topic",title:t.translation.abstract},t.translation.abstract),n&&L().createElement("div",{className:"branch"},"(current)")),L().createElement("div",{className:"title-right"},o&&L().createElement(G,{className:"rollback",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>a(t)}))),L().createElement("div",{className:"item-info"},L().createElement(V,{className:"avatar",nameOrInstanceId:t.user,size:"xs"}),L().createElement("div",{className:"time"},c),L().createElement("div",{className:"operator"},t.user)))}n=re,({e:[_,v,T,g,S,U,$,y,D,P,C,K,k,M,F,w],c:[H,m]}=(0,d.A)(n,[x("visual-builder.workbench-history-action",{styleTexts:[h.A]})],[[B(),1,"appId"],[B(),1,"projectId"],[j({type:"history.item.click"}),1,"historyItemClickEvent",e=>(0,s.A)(Q,e),(e,t)=>(0,c.A)(Q,e,t)],[j({type:"rollback"}),1,"rollbackEvent",e=>(0,s.A)(ee,e),(e,t)=>(0,c.A)(ee,e,t)],[j({type:"rollback.all"}),1,"rollbackAllEvent",e=>(0,s.A)(oe,e),(e,t)=>(0,c.A)(oe,e,t)]],0,(e=>ne.has((0,i.A)(e))),N.ReactNextElement)),m()},36758:e=>{e.exports=function(e){return e[1]}},40935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(n)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]);n&&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),o&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=o):d[2]=o),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},62740:(e,t,o)=>{o.d(t,{A:()=>l});var n=o(17545),r=o(26902);function a(e,t,o){"symbol"==(0,n.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:o?o+" "+t:t})}catch(e){}return e}var i=o(11369);function l(e,t,o,l,c,s){var d,E,L,u,N,A,O,p=Symbol.metadata||Symbol.for("Symbol.metadata"),h=Object.defineProperty,R=Object.create,b=[R(null),R(null)],I=t.length;function f(t,o,n){return function(r,a){o&&(a=r,r=e);for(var i=0;i<t.length;i++)a=t[i].apply(r,n?[a]:[]);return n?a:r}}function m(e,t,o,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(o||"be")+" a function"+(n?"":" or undefined"));return e}function _(e,t,o,r,i,l,c,s,L,u,N){function A(e){if(!N(e))throw new TypeError("Attempted to access private element on non-instance")}var O=[].concat(t[0]),p=t[3],R=!c,I=1===i,_=3===i,v=4===i,T=2===i;function g(t,o,n){return function(r,a){return o&&(a=r,r=e),n&&n(r),S[t].call(r,a)}}if(!R){var S={},U=[],$=_?"get":v||I?"set":"value";if(L?(u||I?S={get:a((function(){return p(this)}),r,"get"),set:function(e){t[4](this,e)}}:S[$]=p,u||a(S[$],r,T?"":$)):u||(S=Object.getOwnPropertyDescriptor(e,r)),!u&&!L){if((E=b[+s][r])&&7!=(E^i))throw Error("Decorating two elements with the same name ("+S[$].name+") is not supported yet");b[+s][r]=i<3?1:i}}for(var y=e,D=O.length-1;D>=0;D-=o?2:1){var P=m(O[D],"A decorator","be",!0),C=o?O[D-1]:void 0,K={},k={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");m(t,"An initializer","be",!0),l.push(t)}.bind(null,K)};if(R)E=P.call(C,y,k),K.v=1,m(E,"class decorators","return")&&(y=E);else if(k.static=s,k.private=L,E=k.access={has:L?N.bind():function(e){return r in e}},v||(E.get=L?T?function(e){return A(e),S.value}:g("get",0,A):function(e){return e[r]}),T||_||(E.set=L?g("set",0,A):function(e,t){e[r]=t}),y=P.call(C,I?{get:S.get,set:S.set}:S[$],k),K.v=1,I){if("object"==(0,n.A)(y)&&y)(E=m(y.get,"accessor.get"))&&(S.get=E),(E=m(y.set,"accessor.set"))&&(S.set=E),(E=m(y.init,"accessor.init"))&&U.unshift(E);else if(void 0!==y)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else m(y,(u?"field":"method")+" decorators","return")&&(u?U.unshift(y):S[$]=y)}return i<2&&c.push(f(U,s,1),f(l,s,0)),u||R||(L?I?c.splice(-1,0,g("get",s),g("set",s)):c.push(T?S[$]:m.call.bind(S[$])):h(e,r,S)),y}function v(e){return h(e,p,{configurable:!0,enumerable:!0,value:d})}return void 0!==s&&(d=s[p]),d=R(null==d?null:d),N=[],A=function(e){e&&N.push(f(e))},O=function(t,n){for(var a=0;a<o.length;a++){var l=o[a],s=l[1],d=7&s;if((8&s)==t&&!d==n){var E=l[2],A=!!l[3],O=16&s;_(t?e:e.prototype,l,O,A?"#"+E:(0,i.A)(E),d,d<2?[]:t?u=u||[]:L=L||[],N,!!t,A,n,t&&A?function(t){return(0,r.A)(t)===e}:c)}}},O(8,0),O(0,0),O(8,1),O(0,1),A(L),A(u),E=N,I||v(e),{e:E,get c(){var o=[];return I&&[v(e=_(e,[t],l,e.name,5,o)),f(o,1)]}}}},70829:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(12559);function r(e,t){return e.get((0,n.A)(e,t))}},70918:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(72016);function r(e,t,o){(0,n.A)(e,t),t.set(e,o)}},72016:(e,t,o)=>{function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}o.d(t,{A:()=>n})},74635:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(72016);function r(e,t){(0,n.A)(e,t),t.add(e)}},86121:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(12559);function r(e,t,o){return e.set((0,n.A)(e,t),o),o}},86156:(e,t,o)=>{o.d(t,{I:()=>a,K:()=>n,NS:()=>r});let n=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}({});const r="bricks/visual-builder/workbench-history-action",a={en:{LOAD_MORE:"Load more",LOADING:"Loading",NO_DATA:"No data",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }} etc., a total of {{ count }} items",ADD:"Add node",EDIT:"Edit node",DELETE:"Delete node",IMPORT:"Batch import node",CLONE:"Clone node",APPEND_RELATION:"Append Relation",UPDATE_RELATION:"Update Relation",REMOVE_RELATION:"Remove Relation",ROLLBACK:"Rollback",ROLLBACK_ALL:"Rollback all operations",ADD_FULL:"Add {{ category }} ({{ nodes }})",EDIT_FULL:"Edit {{ nodeChanges }} of {{ category }} ({{ nodes }})",DELETE_FULL:"Delete {{ category }} ({{ nodes }})",IMPORT_FULL:"Batch Import {{ category }} ({{ nodes }})",CLONE_FULL:"Clone {{ category }} ({{ nodes }})",APPEND_RELATION_FULL:"Append the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",UPDATE_RELATION_FULL:"Update the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",REMOVE_RELATION_FULL:"Remove the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",ROLLBACK_FULL:"Rollback to [{{ rollbackAbstract }}]",ROLLBACK_ALL_FULL:"Rollback all operations",PROJECT:"Project",USER:"User Group",PERMISSION:"Permission",BRICK:"Brick",ROUTE:"Route",TEMPLATE:"Template",SNIPPET:"Snippet",I18N:"I18N",IMAGE:"Image",FUNCTION:"Function",MENU:"Menu",MENU_ITEM:"Menu item",WORKFLOW:"Workflow"},zh:{LOAD_MORE:"加载更多",LOADING:"加载中",NO_DATA:"没有数据",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }}等共{{ count }}项",ADD:"新增节点",EDIT:"编辑节点",DELETE:"删除节点",IMPORT:"批量导入节点",CLONE:"克隆节点",APPEND_RELATION:"添加关系",UPDATE_RELATION:"更新关系",REMOVE_RELATION:"移除关系",ROLLBACK:"回滚",ROLLBACK_ALL:"回滚全部操作",ADD_FULL:"新增{{ category }}({{ nodes }})",EDIT_FULL:"编辑{{ category }}({{ nodes }})的 {{ nodeChanges }}",DELETE_FULL:"删除{{ category }}({{ nodes }})",IMPORT_FULL:"批量导入{{ category }}({{ nodes }})",CLONE_FULL:"克隆{{ category }}({{ nodes }})",APPEND_RELATION_FULL:"添加{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",UPDATE_RELATION_FULL:"更新{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",REMOVE_RELATION_FULL:"移除{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",ROLLBACK_FULL:"回滚到【{{ rollbackAbstract }}】",ROLLBACK_ALL_FULL:"回滚全部操作",PROJECT:"项目",USER:"用户组",PERMISSION:"权限点",BRICK:"构件",ROUTE:"路由",TEMPLATE:"模版",SNIPPET:"片段",I18N:"国际化",IMAGE:"图片",FUNCTION:"函数",MENU:"菜单",MENU_ITEM:"菜单项",WORKFLOW:"工作流"}}},91361:(e,t,o)=>{o.d(t,{A:()=>l});var n=o(36758),r=o.n(n),a=o(40935),i=o.n(a)()(r());i.push([e.id,":host{display:inline-block}:host([hidden]){display:none}eo-popover::part(popup){width:800px;max-width:60vw;padding:10px;background:var(--color-fill-bg-container-4);border-radius:var(--medius-border-radius);box-shadow:var(--feedback-container-shadow);z-index:1000}.history-title{font-size:var(--title-font-size);font-weight:var(--font-weight-500);color:var(--color-strong-text);margin-bottom:5px}.history-list{max-height:500px;overflow-y:auto}.item-container{padding:10px 0;display:flex;flex-direction:column;gap:5px}.empty{padding:5px 0 10px 0;font-size:14px;color:var(--text-color-secondary);text-align:center}.item-container:not(:last-of-type){border-bottom:1px solid var(--color-border-divider-line)}.item-title{display:flex;align-items:center;justify-content:space-between;gap:5px}.title-left,\n.title-right{display:flex;align-items:center}.title-left{cursor:pointer;overflow:hidden;gap:5px}.topic{font-size:14px;color:var(--text-color-title);font-weight:var(--font-weight-500);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.branch{font-size:14px;color:var(--text-color-secondary)}.rollback{margin-right:5px;font-size:14px;color:var(--text-color-secondary);cursor:pointer}.rollback:hover{color:var(--color-brand)}.item-info{display:flex;align-items:center;gap:5px}.time,\n.operator{font-size:14px;color:var(--text-color-secondary)}.load-more-container{display:block;text-align:center}.end-container{display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px;color:var(--color-brand)}.rollback-all{cursor:pointer}",""]);const l=i.toString()}}]);
|
|
3
|
-
//# sourceMappingURL=workbench-history-action.2f710853.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see workbench-pane.62f4b081.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[7997],{5536:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(12559);function o(t,e,r){return r((0,n.A)(t,e))}},11369:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(17545);function o(t){var e=function(t){if("object"!=(0,n.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=(0,n.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(e)?e:e+""}},12559:(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})},17180:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(36758),o=r.n(n),i=r(40935),a=r.n(i)()(o());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()},17545:(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})},18013:(t,e,r)=>{"use strict";function n(t){let e;const r=()=>cancelAnimationFrame(e),n=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];e&&r(),e=requestAnimationFrame((()=>{t(...o)}))};return n.cancel=r,n}r.d(e,{G:()=>n})},26902:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(17545);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}},36758:t=>{"use strict";t.exports=function(t){return t[1]}},40935: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,o,i){"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!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),e.push(u))}},e}},53147:(t,e,r)=>{"use strict";r.r(e),r.d(e,{WorkbenchPane:()=>I});var n,o=r(74635),i=r(70918),a=r(26902),c=r(5536),s=r(86121),l=r(70829),u=r(62740),d=r(18769),p=r.n(d),h=r(7921),f=r(11280),b=r(17180),v=r(69765),m=r(18013),g=r(53373),y=r.n(g);let A,w,x,k,E,S,j,N,T,W,z,C,M,O,P;const _=(0,f.wrapBrick)("eo-icon"),{defineElement:L,property:F,event:D}=(0,h.createDecorators)();let I;var 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 f.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,H),(0,i.A)(this,R,w(this)),(0,i.A)(this,B,(x(this),k(this))),(0,i.A)(this,G,(E(this),S(this))),(0,i.A)(this,q,(j(this),N(this))),(0,i.A)(this,J,(z(this),t=>{t!==this.active&&(this.active=t,(0,c.A)(H,this,T).emit(t))})),(0,i.A)(this,K,C(this)),(0,i.A)(this,Q,(P(this),()=>{(0,c.A)(H,this,M).emit()}))}get titleLabel(){return(0,l.A)(R,this)}set titleLabel(t){(0,s.A)(R,this,t)}get active(){return(0,l.A)(B,this)}set active(t){(0,s.A)(B,this,t)}get badge(){return(0,l.A)(G,this)}set badge(t){(0,s.A)(G,this,t)}render(){return p().createElement(V,{titleLabel:this.titleLabel,active:this.active,badge:this.badge,onActiveChange:(0,l.A)(J,this),onFirstActivated:(0,l.A)(Q,this)})}}function V(t){let{titleLabel:e,active:r,badge:n,onActiveChange:o,onFirstActivated:i}=t;const[a,c]=(0,d.useState)(r),[s,l]=(0,d.useState)(!1);(0,d.useEffect)((()=>{c(r)}),[r]),(0,d.useEffect)((()=>{null==o||o(a)}),[a,o]);const u=(0,d.useCallback)((()=>{c((t=>!t)),s||a||(l(!0),null==i||i())}),[s,a,i]),h=(0,d.useRef)(),[f,b]=(0,d.useState)(!1),v=(0,d.useMemo)((()=>(0,m.G)((()=>{b(h.current.scrollTop>0)}))),[]);return p().createElement("div",{className:y()("pane",{scrolled:f})},p().createElement("div",{className:"pane-header",tabIndex:0,onClick:u},p().createElement("div",{className:"pane-title"},p().createElement("span",{className:"title-icon"},a?p().createElement(_,{lib:"antd",theme:"outlined",icon:"down"}):p().createElement(_,{lib:"antd",theme:"outlined",icon:"right"})),p().createElement("div",{className:"title-label"},e),p().createElement("slot",{name:"title"})),p().createElement("slot",{name:"actions"}),n&&p().createElement("div",{className:"badge"},n),p().createElement("div",{className:"pane-scroll-shadow"})),p().createElement("div",{className:"pane-body custom-scrollbar-container",onScroll:v,ref:h},p().createElement("slot",null,p().createElement("div",{style:{padding:"10px 20px",color:"var(--text-color-secondary)"}},"No content"))))}n=U,({e:[w,x,k,E,S,j,N,T,W,z,C,M,O,P],c:[I,A]}=(0,u.A)(n,[L("visual-builder.workbench-pane",{styleTexts:[b.A,v.A]})],[[F(),1,"titleLabel"],[F({type:Boolean}),1,"active"],[F({type:Number}),1,"badge"],[D({type:"active.change"}),1,"activeChangeEvent",t=>(0,l.A)(q,t),(t,e)=>(0,s.A)(q,t,e)],[D({type:"active.firstActivated"}),1,"activeFirstActivatedEvent",t=>(0,l.A)(K,t),(t,e)=>(0,s.A)(K,t,e)]],0,(t=>Q.has((0,a.A)(t))),f.ReactNextElement)),A()},53373:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=a(t,i(r)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.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?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},62740:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(17545),o=r(26902);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(11369);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(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 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,o,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(o,i){return r&&(i=o,o=t),n&&n(o),T[e].call(o,i)}}if(!y){var T={},W=[],z=E?"get":S||w?"set":"value";if(p?(h||w?T={get:i((function(){return m(this)}),o,"get"),set:function(t){e[4](this,t)}}:T[z]=m,h||i(T[z],o,j?"":z)):h||(T=Object.getOwnPropertyDescriptor(t,o)),!h&&!p){if((d=A[+l][o])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+T[z].name+") is not supported yet");A[+l][o]=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:o,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 o in t}},S||(d.get=p?j?function(t){return b(t),T.value}:N("get",0,b):function(t){return t[o]}),j||E||(d.set=p?N("set",0,b):function(t,e){t[o]=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,o,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 i=0;i<r.length;i++){var c=r[i],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,o.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)]}}}},69765:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(36758),o=r.n(n),i=r(40935),a=r.n(i)()(o());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()},70829:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(12559);function o(t,e){return t.get((0,n.A)(t,e))}},70918:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(72016);function o(t,e,r){(0,n.A)(t,e),e.set(t,r)}},72016:(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})},74635:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(72016);function o(t,e){(0,n.A)(t,e),e.add(t)}},86121:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(12559);function o(t,e,r){return t.set((0,n.A)(t,e),r),r}}}]);
|
|
3
|
-
//# sourceMappingURL=workbench-pane.62f4b081.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[8137],{7775:(e,t,n)=>{n.r(t),n.d(t,{WorkbenchSidebar:()=>y});var r,o=n(24586),i=n(70918),a=n(86121),c=n(70829),l=n(62740),s=n(18769),u=n.n(s),d=n(7921),f=n(11280),h=n(92150);let b,p,v;const{defineElement:g,property:m}=(0,d.createDecorators)();let y;var A=new WeakMap,w=new WeakMap,k=new WeakMap,x=new WeakMap;class E extends f.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,A,p(this)),(0,i.A)(this,w,(v(this),()=>{var e;return null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])")})),(0,i.A)(this,k,(()=>{const e=(0,c.A)(w,this).call(this).assignedNodes();for(const n of e){var t;n.active?n.style.flex=String(null!==(t=n.activeFlex)&&void 0!==t?t:"1"):n.style.flex="initial"}})),(0,i.A)(this,x,(e=>{const t=e.target.assignedNodes();for(const e of t)e.addEventListener("active.change",(0,c.A)(k,this))})),(0,o.A)(this,"refCallback",(()=>{(0,c.A)(k,this).call(this);const e=(0,c.A)(w,this).call(this);null==e||e.addEventListener("slotchange",(e=>{(0,c.A)(x,this).call(this,e)}))}))}get titleLabel(){return(0,c.A)(A,this)}set titleLabel(e){(0,a.A)(A,this,e)}render(){return u().createElement(S,{titleLabel:this.titleLabel,refCallback:this.refCallback})}}function S(e){let{titleLabel:t,refCallback:n}=e;return u().createElement("div",{className:"sidebar",ref:n},u().createElement("div",{className:"title-container"},u().createElement("div",{className:"title-label"},t),u().createElement("slot",{name:"titleToolbar"})),u().createElement("div",{className:"pane-container"},u().createElement("slot",null)))}r=E,({e:[p,v],c:[y,b]}=(0,l.A)(r,[g("visual-builder.workbench-sidebar",{styleTexts:[h.A]})],[[m(),1,"titleLabel"]],0,void 0,f.ReactNextElement)),b()},11369:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(17545);function o(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},12559:(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})},17545:(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})},24586:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(11369);function o(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}},26902:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(17545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},36758:e=>{e.exports=function(e){return e[1]}},40935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var 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!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},62740:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(17545),o=n(26902);function i(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(11369);function c(e,t,n,c,l,s){var u,d,f,h,b,p,v,g=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,y=Object.create,A=[y(null),y(null)],w=t.length;function k(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a<t.length;a++)i=t[a].apply(o,r?[i]:[]);return r?i:o}}function 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,o,a,c,l,s,f,h,b){function p(e){if(!b(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),g=t[3],y=!l,w=1===a,E=3===a,S=4===a,j=2===a;function T(t,n,r){return function(o,i){return n&&(i=o,o=e),r&&r(o),L[t].call(o,i)}}if(!y){var L={},N=[],_=E?"get":S||w?"set":"value";if(f?(h||w?L={get:i((function(){return g(this)}),o,"get"),set:function(e){t[4](this,e)}}:L[_]=g,h||i(L[_],o,j?"":_)):h||(L=Object.getOwnPropertyDescriptor(e,o)),!h&&!f){if((d=A[+s][o])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+L[_].name+") is not supported yet");A[+s][o]=a<3?1:a}}for(var C=e,O=v.length-1;O>=0;O-=n?2:1){var P=x(v[O],"A decorator","be",!0),z=n?v[O-1]:void 0,W={},M={kind:["field","accessor","method","getter","setter","class"][a],name:o,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)d=P.call(z,C,M),W.v=1,x(d,"class decorators","return")&&(C=d);else if(M.static=s,M.private=f,d=M.access={has:f?b.bind():function(e){return o in e}},S||(d.get=f?j?function(e){return p(e),L.value}:T("get",0,p):function(e){return e[o]}),j||E||(d.set=f?T("set",0,p):function(e,t){e[o]=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)(d=x(C.get,"accessor.get"))&&(L.get=d),(d=x(C.set,"accessor.set"))&&(L.set=d),(d=x(C.init,"accessor.init"))&&N.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 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||(f?w?l.splice(-1,0,T("get",s),T("set",s)):l.push(j?L[_]:x.call.bind(L[_])):m(e,o,L)),C}function S(e){return m(e,g,{configurable:!0,enumerable:!0,value:u})}return void 0!==s&&(u=s[g]),u=y(null==u?null:u),b=[],p=function(e){e&&b.push(k(e))},v=function(t,r){for(var i=0;i<n.length;i++){var c=n[i],s=c[1],u=7&s;if((8&s)==t&&!u==r){var d=c[2],p=!!c[3],v=16&s;E(t?e:e.prototype,c,v,p?"#"+d:(0,a.A)(d),u,u<2?[]:t?h=h||[]:f=f||[],b,!!t,p,r,t&&p?function(t){return(0,o.A)(t)===e}:l)}}},v(8,0),v(0,0),v(8,1),v(0,1),p(f),p(h),d=b,w||S(e),{e:d,get c(){var n=[];return w&&[S(e=E(e,[t],c,e.name,5,n)),k(n,1)]}}}},70829:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(12559);function o(e,t){return e.get((0,r.A)(e,t))}},70918:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(72016);function o(e,t,n){(0,r.A)(e,t),t.set(e,n)}},72016:(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})},86121:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(12559);function o(e,t,n){return e.set((0,r.A)(e,t),n),n}},92150:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(36758),o=n.n(r),i=n(40935),a=n.n(i)()(o());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()}}]);
|
|
2
|
-
//# sourceMappingURL=workbench-sidebar.53689e68.js.map
|