@next-bricks/visual-builder 1.36.1 → 1.36.3
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 +9 -9
- package/dist/chunks/2980.6f48b859.js +2 -0
- package/dist/chunks/{2980.86aa3c5b.js.map → 2980.6f48b859.js.map} +1 -1
- package/dist/chunks/4837.e38fc790.js +2 -0
- package/dist/chunks/{7218.163468a5.js.map → 4837.e38fc790.js.map} +1 -1
- package/dist/chunks/5656.5d531c50.js +3 -0
- package/dist/chunks/{5656.4b31dbc4.js.map → 5656.5d531c50.js.map} +1 -1
- package/dist/chunks/{718.ce596d7d.js → 718.b8ccd5c4.js} +3 -3
- package/dist/chunks/718.b8ccd5c4.js.map +1 -0
- package/dist/chunks/7218.7a81f9f4.js +2 -0
- package/dist/chunks/{4837.bc21d4bb.js.map → 7218.7a81f9f4.js.map} +1 -1
- package/dist/chunks/chat-conversation.438df1f6.js.map +1 -1
- package/dist/chunks/chat-preview.ee27ae96.js +3 -0
- package/dist/chunks/{chat-preview.0ee9b1ac.js.map → chat-preview.ee27ae96.js.map} +1 -1
- package/dist/chunks/check-editor-by-name.274a267e.js +2 -0
- package/dist/chunks/{check-editor-by-name.66abd437.js.map → check-editor-by-name.274a267e.js.map} +1 -1
- package/dist/chunks/contract-select.b931211f.js +3 -0
- package/dist/chunks/{contract-select.39759636.js.map → contract-select.b931211f.js.map} +1 -1
- package/dist/chunks/main.d7d072ac.js +2 -0
- package/dist/chunks/{main.728acdd7.js.map → main.d7d072ac.js.map} +1 -1
- package/dist/chunks/pre-generated-container.1ff2427c.js +2 -0
- package/dist/chunks/{pre-generated-container.fd7db719.js.map → pre-generated-container.1ff2427c.js.map} +1 -1
- package/dist/chunks/pre-generated-preview.c472d95e.js +3 -0
- package/dist/chunks/{pre-generated-preview.f09452bf.js.map → pre-generated-preview.c472d95e.js.map} +1 -1
- package/dist/chunks/property-editor.e4d6b26b.js +2 -0
- package/dist/chunks/{property-editor.ebc63508.js.map → property-editor.e4d6b26b.js.map} +1 -1
- package/dist/chunks/raw-data-preview.28ca39b5.js +3 -0
- package/dist/chunks/{raw-data-preview.a9da1ecb.js.map → raw-data-preview.28ca39b5.js.map} +1 -1
- package/dist/chunks/workbench-action-list.4d784167.js +2 -0
- package/dist/chunks/{workbench-action-list.19d9ee9d.js.map → workbench-action-list.4d784167.js.map} +1 -1
- package/dist/chunks/workbench-history-action.7e0bc6e8.js +3 -0
- package/dist/chunks/{workbench-history-action.ef06b6ef.js.map → workbench-history-action.7e0bc6e8.js.map} +1 -1
- package/dist/index.fc1cf387.js +2 -0
- package/dist/index.fc1cf387.js.map +1 -0
- package/dist/manifest.json +85 -85
- package/dist/types.json +71 -71
- package/package.json +2 -2
- package/dist/chunks/2980.86aa3c5b.js +0 -2
- package/dist/chunks/4837.bc21d4bb.js +0 -2
- package/dist/chunks/5656.4b31dbc4.js +0 -3
- package/dist/chunks/718.ce596d7d.js.map +0 -1
- package/dist/chunks/7218.163468a5.js +0 -2
- package/dist/chunks/chat-preview.0ee9b1ac.js +0 -3
- package/dist/chunks/check-editor-by-name.66abd437.js +0 -2
- package/dist/chunks/contract-select.39759636.js +0 -3
- package/dist/chunks/main.728acdd7.js +0 -2
- package/dist/chunks/pre-generated-container.fd7db719.js +0 -2
- package/dist/chunks/pre-generated-preview.f09452bf.js +0 -3
- package/dist/chunks/property-editor.ebc63508.js +0 -2
- package/dist/chunks/raw-data-preview.a9da1ecb.js +0 -3
- package/dist/chunks/workbench-action-list.19d9ee9d.js +0 -2
- package/dist/chunks/workbench-history-action.ef06b6ef.js +0 -3
- package/dist/index.2698f81b.js +0 -2
- package/dist/index.2698f81b.js.map +0 -1
- /package/dist/chunks/{5656.4b31dbc4.js.LICENSE.txt → 5656.5d531c50.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{718.ce596d7d.js.LICENSE.txt → 718.b8ccd5c4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-preview.0ee9b1ac.js.LICENSE.txt → chat-preview.ee27ae96.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{contract-select.39759636.js.LICENSE.txt → contract-select.b931211f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{pre-generated-preview.f09452bf.js.LICENSE.txt → pre-generated-preview.c472d95e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{raw-data-preview.a9da1ecb.js.LICENSE.txt → raw-data-preview.28ca39b5.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.ef06b6ef.js.LICENSE.txt → workbench-history-action.7e0bc6e8.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([[7218,4837],{4837:(e,r,t)=>{t.r(r),t.d(r,{ReactUseBrick:()=>c,ReactUseMultipleBricks:()=>u,asyncWrapBrick:()=>k,useCurrentApp:()=>l,useCurrentTheme:()=>i,useLazyWrapBrick:()=>h,useNavConfig:()=>_,useProvider:()=>v,useRecentApps:()=>o,useRouteRender:()=>d});var n=t(8769),s=t(8581);let c=function(e){let{useBrick:r,data:t,errorBoundary:c,refCallback:u,ignoredCallback:a}=e;const[i,o]=(0,n.useState)(null),l=(0,n.useRef)(),[d,f]=(0,n.useState)(),p=(0,n.useRef)(0),g=(0,n.useMemo)((()=>{var e;return null===(e=s.__secret_internals.getRenderId)||void 0===e?void 0:e.call(s.__secret_internals)}),[]);(0,n.useEffect)((()=>{let e=!1;return async function(){try{const n=await s.__secret_internals.renderUseBrick(r,t,c);if(e)return;o(n),f(++p.current)}catch(n){!e&&function(e){var r;const t=null===(r=s.__secret_internals.getRenderId)||void 0===r?void 0:r.call(s.__secret_internals);return!e||!t||e===t}(g)&&(console.error("Render useBrick failed:",r,"with data:",t),(0,s.handleHttpError)(n))}}(),()=>{e=!0}}),[t,r,g,c]);const y=(0,n.useCallback)((e=>{e?l.current=s.__secret_internals.mountUseBrick(i,e):(s.__secret_internals.unmountUseBrick(i,l.current),l.current=void 0),null==u||u(e)}),[u,i]);if(!i)return null;const{tagName:v}=i;if(null===v)return null==a||a(),null;const m=v;return n.createElement(m,{key:d,ref:y})},u=function(e){let{useBrick:r,data:t,errorBoundary:s}=e;return Array.isArray(r)?n.createElement(n.Fragment,null,r.map(((e,r)=>n.createElement(c,{key:r,useBrick:e,data:t,errorBoundary:s})))):n.createElement(c,{useBrick:r,data:t,errorBoundary:s})};const a=(0,s.getV2RuntimeFromDll)();if(a){const{SingleBrickAsComponentFactory:e,BrickAsComponentFactory:r}=a;e&&r&&(c=e(n),u=r(n))}function i(){const[e,r]=(0,n.useState)(s.getCurrentTheme);return(0,n.useEffect)((()=>{const e=e=>{r(e.detail)};return window.addEventListener("theme.change",e),()=>{window.removeEventListener("theme.change",e)}}),[]),e}function o(){const[e,r]=n.useState((()=>(0,s.getRuntime)().getRecentApps()));return n.useEffect((()=>{const e=e=>{r(e.detail)};return window.addEventListener("app.change",e),()=>window.removeEventListener("app.change",e)}),[]),e}function l(){return o().currentApp}function d(){const[e,r]=n.useState(null);return n.useEffect((()=>{const e=e=>{r(e.detail)};return window.addEventListener("route.render",e),()=>window.removeEventListener("route.render",e)}),[]),e}const f={provider:"",customOptions:{onError:()=>{},transform:(e,r)=>r,data:void 0,loading:!1,suspense:!1,cache:!0},dependencies:void 0},p=Object.entries(f).reduce(((e,r)=>{let[t,n]=r;return"[object Object]"===Object.prototype.toString.call(n)?{...e,...n}:{...e,[t]:n}}),{});var g=t(1030);const y=new Map;function v(){const{provider:e,customOptions:r,dependencies:t,requestInit:c}=function(e,r,t){const s=(0,n.useMemo)((()=>"string"==typeof e?e:f.provider),[e,r]),c=(0,n.useMemo)((()=>{let t={};return(0,g.isObject)(e)?t=e:(0,g.isObject)(r)&&(t=r),{...p,...t}}),[e,r]),u=(0,n.useMemo)((()=>{const e=[...Object.keys(f),...Object.keys(f.customOptions)],{args:r=null,...t}=Object.keys(c).reduce(((r,t)=>(e.includes(t)||(r[t]=c[t]),r)),{});return{options:{...t},args:r}}),[c]),a=(0,n.useMemo)((()=>Array.isArray(r)?r:Array.isArray(t)?t:p.dependencies),[r,t]),i=c.loading||Array.isArray(a);return{provider:s,customOptions:(0,n.useMemo)((()=>({...Object.keys(f.customOptions).reduce(((e,r)=>(e[r]=c[r],e)),{}),loading:i})),[c]),requestInit:u,dependencies:a}}(...arguments),{onError:u,transform:a,suspense:i,cache:o,...l}=r,[d,v]=(0,n.useState)(l.loading),m=(0,n.useRef)("pending"),k=(0,n.useRef)(),_=(0,n.useRef)(!1),h=(0,n.useRef)(),w=(0,n.useRef)(),b=(0,n.useRef)(l.data),B=(0,n.useReducer)((()=>({})),[])[1],E=(0,n.useCallback)((async(e,r)=>{try{h.current=void 0,i||v(!0);const t=await async function(e,r,t){let n;const c=function(e){const r=e=>Object.keys(e).sort().map((r=>({[r]:e[r]})));for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];try{const t="object"!=typeof(c=n)||null===c||Array.isArray(c)?n.map((e=>function(e){return"string"==typeof e}(e)?e:r(e))):r(n);return JSON.stringify({provider:e,args:t})}catch(r){return JSON.stringify({provider:e,args:n})}var c}(e,...t);return!r&&y.has(c)&&y.delete(c),y.has(c)?n=y.get(c):(n=(0,s.fetchByProvider)(e,t),r&&y.set(c,n)),n}(e,o,r);w.current=t,b.current=a(b.current,t)}catch(e){h.current=e,b.current=void 0}return i||v(!1),h.current&&u(h.current),b.current}),[e,r,t,c,i,a,l.data,u,o]),O=(0,n.useCallback)((async(r,t)=>{let n=e,s=[];return(0,g.isString)(r)&&(n=r),(0,g.isObject)(r)?s=r:(0,g.isObject)(t)&&(s=t),i?(async()=>(k.current=E(n,s).then((e=>(m.current="success",e)),(e=>(m.current="error",e.current=e,e))),B(),await k.current))():E(n,s)}),[E]),R=(0,n.useMemo)((()=>Object.defineProperties({query:O},{loading:{get:()=>d},data:{get:()=>b.current},error:{get:()=>h.current}})),[O]);if((0,n.useEffect)((()=>(_.current=!0,Array.isArray(t)&&e&&R.query(e,c.args),()=>_.current=!1)),t),i&&k.current)switch(m.current){case"pending":throw k.current;case"error":throw h.current}return Object.assign([R,w.current,d,h.current],{request:R,...R,response:w.current,data:b.current,loading:d,error:h.current})}var m=t(1389);async function k(e,r){return await s.__secret_internals.loadBricks([e]),(0,m.wrapBrick)(e,r)}function _(){const[e,r]=(0,n.useState)((()=>(0,s.getRuntime)().getNavConfig()));return(0,n.useEffect)((()=>{const e=e=>{r(e.detail)};return window.addEventListener("navConfig.change",e),()=>window.removeEventListener("navConfig.change",e)}),[]),e}function h(e,r){return(0,n.useMemo)((()=>null!=e?(0,n.lazy)((async()=>({default:await k(e,r)}))):null),[e,r])}}}]);
|
|
2
|
-
//# sourceMappingURL=7218.163468a5.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see chat-preview.0ee9b1ac.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[5402,2052],{9047:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var r=n(8769),i=n.n(r);function o(e){let{variant:t,width:n,height:r,left:o,top:a,label:s}=e;return i().createElement("div",{className:"outline "+t,style:{width:n+8,height:r+8,left:o-4,top:a-4}},i().createElement("div",{className:"label"},s))}},44:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ChatPreview:()=>D,ChatPreviewComponent:()=>Y});var r,i=n(9575),o=n(4635),a=n(918),s=n(6902),c=n(5536),u=n(6121),l=n(829),p=n(2740),d=n(8769),h=n.n(d),f=n(4782),v=n(1389),g=(n(6477),n(8581)),b=n(1732),y=n(3373),m=n.n(y),w=n(9047),A=n(1563);let k,x,E,S,_,j,T,O,P,C,M,W,z,V,B,N;const{defineElement:R,property:I,event:L,method:$}=(0,f.createDecorators)();let D;var q=new WeakMap,H=new WeakMap,J=new WeakMap,U=new WeakMap,F=new WeakMap,G=new WeakMap,K=new WeakSet,Q=new WeakMap;class X extends v.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,K),(0,a.A)(this,q,(k(this),E(this))),(0,a.A)(this,H,(S(this),_(this))),(0,a.A)(this,J,(j(this),T(this))),(0,a.A)(this,U,(O(this),P(this))),(0,a.A)(this,F,(C(this),M(this))),(0,a.A)(this,G,(W(this),z(this))),(0,a.A)(this,Q,(N(this),e=>{(0,c.A)(K,this,V).emit(e)}))}get storyboard(){return(0,l.A)(q,this)}set storyboard(e){(0,u.A)(q,this,e)}get theme(){return(0,l.A)(H,this)}set theme(e){(0,u.A)(H,this,e)}get uiVersion(){return(0,l.A)(J,this)}set uiVersion(e){(0,u.A)(J,this,e)}get app(){return(0,l.A)(U,this)}set app(e){(0,u.A)(U,this,e)}get inspecting(){return(0,l.A)(F,this)}set inspecting(e){(0,u.A)(F,this,e)}select(e){var t;const n=null===(t=this.shadowRoot)||void 0===t||null===(t=t.querySelector("iframe"))||void 0===t?void 0:t.contentWindow;null==n||n.postMessage({channel:"chat-preview",type:"select",payload:e},location.origin)}render(){return h().createElement(Y,{storyboard:this.storyboard,theme:this.theme,uiVersion:this.uiVersion,app:this.app,inspecting:this.inspecting,onActiveTargetChange:(0,l.A)(Q,this)})}}function Y(e){let{storyboard:t,theme:n,uiVersion:r,app:o,inspecting:a,onActiveTargetChange:s}=e;const c=(0,d.useRef)(),[u,l]=(0,d.useState)(!1),[p,f]=(0,d.useState)(!1),[v,y]=(0,d.useState)({x:0,y:0}),[A,k]=(0,d.useState)([]),[x,E]=(0,d.useState)([]),[S,_]=(0,d.useState)([]),[j,T]=(0,d.useState)([]),O=(0,d.useCallback)((()=>{const e=()=>{var t;const n=null===(t=c.current)||void 0===t?void 0:t.contentWindow;null!=n&&n._preview_only_render?l(!0):setTimeout(e,100)};e()}),[]);(0,d.useEffect)((()=>{var e;if(!u)return;const t=g.__secret_internals.getBrickPackagesById("bricks/visual-builder");if(!t)throw new Error("Cannot find preview agent package: bricks/visual-builder");(null===(e=c.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_inject)("visual-builder.inject-chat-preview-agent",{...t,filePath:`${location.origin}${(0,g.getBasePath)()}${window.PUBLIC_ROOT??""}${t.filePath}`})}),[u]),(0,d.useEffect)((()=>{var e;if(!u)return;const i=null===(e=c.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;i&&i("yaml",{yaml:(0,b.safeDump)(t,{schema:b.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0})},{app:o,theme:n,uiVersion:r})}),[o,u,t,n,r]);const P=(0,d.useMemo)((()=>{if(p)return()=>{setTimeout((()=>{window.postMessage({channel:"chat-preview",type:"inspect-hover",payload:{outlines:[]}})}),100)}}),[p]);(0,d.useEffect)((()=>{const e=e=>{var t;if("chat-preview"===(null===(t=e.data)||void 0===t?void 0:t.channel))switch(e.data.type){case"initialized":f(!0);break;case"inspect-hover":k(e.data.payload.outlines);break;case"scroll":y(e.data.payload);break;case"inspect-active":E(e.data.payload.outlines)}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}}),[]),(0,d.useEffect)((()=>{var e;p&&(null===(e=c.current)||void 0===e||null===(e=e.contentWindow)||void 0===e||e.postMessage({channel:"chat-preview",type:"toggle-inspecting",payload:{inspecting:a}},location.origin))}),[p,a]);const C=(0,d.useCallback)((e=>e.map((e=>{var t,n;const r=(null==c||null===(t=c.current)||void 0===t?void 0:t.offsetLeft)??0,i=(null==c||null===(n=c.current)||void 0===n?void 0:n.offsetTop)??0,{width:o,height:a,left:s,top:u,...l}=e;return{width:1*o,height:1*a,left:1*(s-v.x)+r,top:1*(u-v.y)+i,...l}}))),[v.x,v.y]);return(0,d.useEffect)((()=>{s(x[0])}),[x,s]),(0,d.useEffect)((()=>{T(C(x))}),[x,C]),(0,d.useEffect)((()=>{_(C(A))}),[A,C]),h().createElement("div",{className:m()("container",{inspecting:a})},h().createElement("iframe",{ref:c,src:`${(0,g.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:O,onMouseOut:P}),S.map(((e,t)=>h().createElement(w.e,(0,i.A)({key:t,variant:"hover"},e)))),j.map(((e,t)=>h().createElement(w.e,(0,i.A)({key:t,variant:"active"},e)))))}r=X,({e:[E,S,_,j,T,O,P,C,M,W,z,V,B,N,k],c:[D,x]}=(0,p.A)(r,[R("visual-builder.chat-preview",{styleTexts:[A.A]})],[[I({attribute:!1}),1,"storyboard"],[I(),1,"theme"],[I(),1,"uiVersion"],[I(),1,"app"],[I({type:Boolean}),1,"inspecting"],[L({type:"activeTarget.change"}),1,"activeTargetChangeEvent",e=>(0,l.A)(G,e),(e,t)=>(0,u.A)(G,e,t)],[$(),2,"select"]],0,(e=>Q.has((0,s.A)(e))),v.ReactNextElement)),x()},1563:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6758),i=n.n(r),o=n(935),a=n.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;box-shadow:rgba(204,204,204,0.2) 0px 0px 0px 1px}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}.outline{position:absolute;border-style:solid;border-width:2px;border-radius:0 4px 4px;pointer-events:none}.label{position:absolute;left:-2px;top:-20px;height:18px;line-height:16px;padding:2px 5px 0;font-size:12px;border-radius:4px 4px 0 0;white-space:nowrap}.outline.hover{border-color:rgba(var(--palette-blue-6-channel),0.3)}.outline.hover .label{background:rgba(var(--palette-blue-6-channel),0.3)}.outline.active{border-color:var(--palette-blue-6)}.outline.active .label{background:var(--palette-blue-6)}.container:not(.inspecting) .outline{display:none}",""]);const s=a.toString()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);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)),t.push(l))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}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 n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},2740:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(7545),i=n(6902);function o(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(1369);function s(e,t,n,s,c,u){var l,p,d,h,f,v,g,b=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,m=Object.create,w=[m(null),m(null)],A=t.length;function k(t,n,r){return function(i,o){n&&(o=i,i=e);for(var a=0;a<t.length;a++)o=t[a].apply(i,r?[o]:[]);return r?o:i}}function x(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function E(e,t,n,i,a,s,c,u,d,h,f){function v(e){if(!f(e))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(t[0]),b=t[3],m=!c,A=1===a,E=3===a,S=4===a,_=2===a;function j(t,n,r){return function(i,o){return n&&(o=i,i=e),r&&r(i),T[t].call(i,o)}}if(!m){var T={},O=[],P=E?"get":S||A?"set":"value";if(d?(h||A?T={get:o((function(){return b(this)}),i,"get"),set:function(e){t[4](this,e)}}:T[P]=b,h||o(T[P],i,_?"":P)):h||(T=Object.getOwnPropertyDescriptor(e,i)),!h&&!d){if((p=w[+u][i])&&7!=(p^a))throw Error("Decorating two elements with the same name ("+T[P].name+") is not supported yet");w[+u][i]=a<3?1:a}}for(var C=e,M=g.length-1;M>=0;M-=n?2:1){var W=x(g[M],"A decorator","be",!0),z=n?g[M-1]:void 0,V={},B={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");x(t,"An initializer","be",!0),s.push(t)}.bind(null,V)};if(m)p=W.call(z,C,B),V.v=1,x(p,"class decorators","return")&&(C=p);else if(B.static=u,B.private=d,p=B.access={has:d?f.bind():function(e){return i in e}},S||(p.get=d?_?function(e){return v(e),T.value}:j("get",0,v):function(e){return e[i]}),_||E||(p.set=d?j("set",0,v):function(e,t){e[i]=t}),C=W.call(z,A?{get:T.get,set:T.set}:T[P],B),V.v=1,A){if("object"==(0,r.A)(C)&&C)(p=x(C.get,"accessor.get"))&&(T.get=p),(p=x(C.set,"accessor.set"))&&(T.set=p),(p=x(C.init,"accessor.init"))&&O.unshift(p);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?O.unshift(C):T[P]=C)}return a<2&&c.push(k(O,u,1),k(s,u,0)),h||m||(d?A?c.splice(-1,0,j("get",u),j("set",u)):c.push(_?T[P]:x.call.bind(T[P])):y(e,i,T)),C}function S(e){return y(e,b,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[b]),l=m(null==l?null:l),f=[],v=function(e){e&&f.push(k(e))},g=function(t,r){for(var o=0;o<n.length;o++){var s=n[o],u=s[1],l=7&u;if((8&u)==t&&!l==r){var p=s[2],v=!!s[3],g=16&u;E(t?e:e.prototype,s,g,v?"#"+p:(0,a.A)(p),l,l<2?[]:t?h=h||[]:d=d||[],f,!!t,v,r,t&&v?function(t){return(0,i.A)(t)===e}:c)}}},g(8,0),g(0,0),g(8,1),g(0,1),v(d),v(h),p=f,A||S(e),{e:p,get c(){var n=[];return A&&[S(e=E(e,[t],s,e.name,5,n)),k(n,1)]}}}},2559:(e,t,n)=>{"use strict";function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},6902:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},2016:(e,t,n)=>{"use strict";function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},829:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2559);function i(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2016);function i(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return e.set((0,r.A)(e,t),n),n}},5536:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return n((0,r.A)(e,t))}},4635:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2016);function i(e,t){(0,r.A)(e,t),t.add(e)}},9575:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},1369:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7545);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},7545:(e,t,n)=>{"use strict";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})}}]);
|
|
3
|
-
//# sourceMappingURL=chat-preview.0ee9b1ac.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[5055],{7950:(e,r,t)=>{t.r(r),t.d(r,{checkEditorByName:()=>a});var i=t(8581),s=t(279);async function a(e){try{await i.__secret_internals.loadEditors([e])}catch{return!1}return!!i.customEditors.get(e)}customElements.define("visual-builder.check-editor-by-name",(0,s.createProviderClass)(a))}}]);
|
|
2
|
-
//# sourceMappingURL=check-editor-by-name.66abd437.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see contract-select.39759636.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[3046,4586,2052],{1722:(e,t,n)=>{n.d(t,{I:()=>a,K:()=>r,NS:()=>i});let r=function(e){return e.CONTRACT_OPTIONS_TIPS_PREFIX="CONTRACT_OPTIONS_TIPS_PREFIX",e.CONTRACT_OPTIONS_TIPS_SUFFIX="CONTRACT_OPTIONS_TIPS_SUFFIX",e.CONTRACT_VALIDATE_MESSAGE="CONTRACT_VALIDATE_MESSAGE",e}({});const i="bricks/visual-builder/contract-select",a={en:{CONTRACT_OPTIONS_TIPS_PREFIX:"Only the first",CONTRACT_OPTIONS_TIPS_SUFFIX:"items are displayed, please search for more results",CONTRACT_VALIDATE_MESSAGE:"Please fill in the correct contract name "},zh:{CONTRACT_OPTIONS_TIPS_PREFIX:"仅展示前",CONTRACT_OPTIONS_TIPS_SUFFIX:"项,更多结果请搜索",CONTRACT_VALIDATE_MESSAGE:"请填写正确的契约名称"}}},4680:(e,t,n)=>{n.r(t),n.d(t,{EoContractSelect:()=>U,EoContractSelectComponent:()=>re,checkContractRule:()=>ne});var r,i=n(4586),a=n(4635),o=n(918),s=n(6902),c=n(5536),l=n(6121),u=n(829),h=n(2740),f=n(8769),d=n.n(f),p=n(4782),A=n(1389),v=n(4047),m=(n(6477),n(6213)),g=n(1030),S=n(426),b=n(3065),T=n(1722),y=n(5502),C=n(8799),E=n(2480);let w,_,N,I,O,k,P,R,x,F,B,M,W,j,z;(0,y.initializeReactI18n)(T.NS,T.I);const{defineElement:X,property:D,event:L}=(0,p.createDecorators)(),$=(0,A.wrapBrick)("eo-form-item"),q=(0,A.wrapBrick)("eo-auto-complete",{onChange:"change"});let U;var G=new WeakMap,V=new WeakMap,K=new WeakMap,H=new WeakMap,J=new WeakMap,Q=new WeakMap,Y=new WeakSet;class Z extends S.N{constructor(){super(...arguments),(0,a.A)(this,Y),(0,o.A)(this,G,_(this)),(0,o.A)(this,V,(N(this),I(this))),(0,o.A)(this,K,(O(this),k(this))),(0,o.A)(this,H,(P(this),R(this))),(0,o.A)(this,J,(x(this),F(this))),(0,o.A)(this,Q,(B(this),M(this))),(0,i.A)(this,"handleChange",(z(this),e=>{(0,c.A)(Y,this,W).emit(e)}))}get name(){return(0,u.A)(G,this)}set name(e){(0,l.A)(G,this,e)}get required(){return(0,u.A)(V,this)}set required(e){(0,l.A)(V,this,e)}get label(){return(0,u.A)(K,this)}set label(e){(0,l.A)(K,this,e)}get value(){return(0,u.A)(H,this)}set value(e){(0,l.A)(H,this,e)}get suffix(){return(0,u.A)(J,this)}set suffix(e){(0,l.A)(J,this,e)}render(){return d().createElement($,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,labelBrick:this.labelBrick,helpBrick:this.helpBrick,notRender:this.notRender,trigger:"handleChange",validator:ne},d().createElement(re,{value:this.value,suffix:this.suffix,validateState:this.validateState,onChange:this.handleChange}))}}function ee(e){if("string"!=typeof e)return{name:"",version:""};const[t,n]=e.split(":");return{name:t,version:n}}function te(e){return/.*@.*:\d+\.\d+\.\d+/.test(e)}function ne(e){return(0,g.isNil)(e)||te(e)?"":C.i18n.t(`${T.NS}:${T.K.CONTRACT_VALIDATE_MESSAGE}`)}function re(e){let{value:t,inputStyle:n,validateState:r,suffix:i,onChange:a}=e;const[o,s]=(0,f.useState)(),[c,l]=(0,f.useState)(20),u=(0,b.E)({q:o,pageSize:c}),[h,p]=(0,f.useState)(ee(t)),[A,m]=(0,f.useState)([]);(0,f.useEffect)((()=>{p(ee(t))}),[t]);const S=(0,f.useMemo)((()=>(0,g.debounce)((e=>{s(e)}),200)),[]);return d().createElement("div",{className:"contract-wrapper"},d().createElement(q,{className:"contract-selector",options:null==u?void 0:u.map((e=>({value:e.fullContractName,label:e.fullContractName}))),value:h.name,inputStyle:n,validateState:r,onChange:e=>{const t=e.detail;if(te(t))p(ee(t)),null==a||a(t);else{var n;const e=null===(n=u.find((e=>e.fullContractName===t)))||void 0===n?void 0:n.version,r=(null==e?void 0:e[0])??"";m(e),p({name:t,version:r}),null==a||a(`${t}:${r}`)}S(t)}},d().createElement(E.L,{onBlur:e=>l(e),slot:"options-toolbar"})),d().createElement(q,{className:"version-selector",value:h.version,validateState:r,options:null==A?void 0:A.map((e=>({value:e,label:e}))),onChange:e=>{const t=e.detail;p({name:h.name,version:t}),null==a||a(`${h.name}:${t}`)}}),null!=i&&i.useBrick?d().createElement(v.ReactUseMultipleBricks,i):null)}r=Z,({e:[_,N,I,O,k,P,R,x,F,B,M,W,j,z],c:[U,w]}=(0,h.A)(r,[X("visual-builder.contract-select",{styleTexts:[m.A]})],[[D(),1,"name"],[D({type:Boolean}),1,"required"],[D(),1,"label"],[D({attribute:!1}),1,"value"],[D({attribute:!1}),1,"suffix"],[L({type:"change"}),1,"changeEvent",e=>(0,u.A)(Q,e),(e,t)=>(0,l.A)(Q,e,t)]],0,(e=>Y.has((0,s.A)(e))),S.N)),w()},2480:(e,t,n)=>{n.d(t,{L:()=>u});var r=n(8769),i=n.n(r),a=n(1722),o=n(5502),s=n(1389);(0,o.initializeReactI18n)(a.NS,a.I);const c=(0,s.wrapBrick)("eo-icon"),l=(0,s.wrapBrick)("eo-input",{onChange:"change"});function u(e){const{itemsCount:t=20,onBlur:n}=e,[s,u]=(0,r.useState)(t),{t:h}=(0,o.useTranslation)(a.NS),[f,d]=(0,r.useState)(!1);return i().createElement("div",{className:"options-tips",slot:e.slot},h(a.K.CONTRACT_OPTIONS_TIPS_PREFIX)," ",f?i().createElement(l,{autoFocus:!0,inputStyle:{width:65},value:String(s),onBlur:()=>{d(!1),null==n||n(s)},onChange:e=>{u(Number(e.detail))}}):i().createElement("span",null,s," ",i().createElement(c,{icon:"edit",lib:"antd",onClick:()=>{d(!0)}}))," ",h(a.K.CONTRACT_OPTIONS_TIPS_SUFFIX))}},3065:(e,t,n)=>{n.d(t,{E:()=>a});var r=n(8769),i=n(4244);function a(e){let{pageSize:t=20,q:n=""}=e;const[a,o]=(0,r.useState)([]),[s,c]=(0,r.useState)(n),[l,u]=(0,r.useState)(t);return(0,r.useEffect)((()=>{c(n)}),[n]),(0,r.useEffect)((()=>{u(t)}),[t]),(0,r.useEffect)((()=>{(async()=>{try{const{list:e}=await(0,i.f)({page:1,pageSize:l,fullContractName:s},{interceptorParams:{ignoreLoadingBar:!0}});o(e)}catch(e){console.error(e),o([])}})()}),[s,l]),a}},6213:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6758),i=n.n(r),a=n(935),o=n.n(a)()(i());o.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.contract-wrapper{display:flex;gap:4px}.contract-selector{flex:1}.version-selector{width:100px}.options-tips{padding:0px 10px;font-weight:400;color:#999;white-space:nowrap;font-style:italic}",""]);const s=o.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(o[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&o[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},6758:e=>{e.exports=function(e){return e[1]}},2740:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7545),i=n(6902);function a(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var o=n(1369);function s(e,t,n,s,c,l){var u,h,f,d,p,A,v,m=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,S=Object.create,b=[S(null),S(null)],T=t.length;function y(t,n,r){return function(i,a){n&&(a=i,i=e);for(var o=0;o<t.length;o++)a=t[o].apply(i,r?[a]:[]);return r?a:i}}function C(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function E(e,t,n,i,o,s,c,l,f,d,p){function A(e){if(!p(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),m=t[3],S=!c,T=1===o,E=3===o,w=4===o,_=2===o;function N(t,n,r){return function(i,a){return n&&(a=i,i=e),r&&r(i),I[t].call(i,a)}}if(!S){var I={},O=[],k=E?"get":w||T?"set":"value";if(f?(d||T?I={get:a((function(){return m(this)}),i,"get"),set:function(e){t[4](this,e)}}:I[k]=m,d||a(I[k],i,_?"":k)):d||(I=Object.getOwnPropertyDescriptor(e,i)),!d&&!f){if((h=b[+l][i])&&7!=(h^o))throw Error("Decorating two elements with the same name ("+I[k].name+") is not supported yet");b[+l][i]=o<3?1:o}}for(var P=e,R=v.length-1;R>=0;R-=n?2:1){var x=C(v[R],"A decorator","be",!0),F=n?v[R-1]:void 0,B={},M={kind:["field","accessor","method","getter","setter","class"][o],name:i,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");C(t,"An initializer","be",!0),s.push(t)}.bind(null,B)};if(S)h=x.call(F,P,M),B.v=1,C(h,"class decorators","return")&&(P=h);else if(M.static=l,M.private=f,h=M.access={has:f?p.bind():function(e){return i in e}},w||(h.get=f?_?function(e){return A(e),I.value}:N("get",0,A):function(e){return e[i]}),_||E||(h.set=f?N("set",0,A):function(e,t){e[i]=t}),P=x.call(F,T?{get:I.get,set:I.set}:I[k],M),B.v=1,T){if("object"==(0,r.A)(P)&&P)(h=C(P.get,"accessor.get"))&&(I.get=h),(h=C(P.set,"accessor.set"))&&(I.set=h),(h=C(P.init,"accessor.init"))&&O.unshift(h);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else C(P,(d?"field":"method")+" decorators","return")&&(d?O.unshift(P):I[k]=P)}return o<2&&c.push(y(O,l,1),y(s,l,0)),d||S||(f?T?c.splice(-1,0,N("get",l),N("set",l)):c.push(_?I[k]:C.call.bind(I[k])):g(e,i,I)),P}function w(e){return g(e,m,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[m]),u=S(null==u?null:u),p=[],A=function(e){e&&p.push(y(e))},v=function(t,r){for(var a=0;a<n.length;a++){var s=n[a],l=s[1],u=7&l;if((8&l)==t&&!u==r){var h=s[2],A=!!s[3],v=16&l;E(t?e:e.prototype,s,v,A?"#"+h:(0,o.A)(h),u,u<2?[]:t?d=d||[]:f=f||[],p,!!t,A,r,t&&A?function(t){return(0,i.A)(t)===e}:c)}}},v(8,0),v(0,0),v(8,1),v(0,1),A(f),A(d),h=p,T||w(e),{e:h,get c(){var n=[];return T&&[w(e=E(e,[t],s,e.name,5,n)),y(n,1)]}}}},2559:(e,t,n)=>{function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},6330:(e,t,n)=>{function r(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,c,"next",e)}function c(e){r(o,i,a,s,c,"throw",e)}s(void 0)}))}}n.d(t,{A:()=>i})},6902:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},2016:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},829:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return e.set((0,r.A)(e,t),n),n}},5536:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return n((0,r.A)(e,t))}},4635:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t){(0,r.A)(e,t),t.add(e)}},9492:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n,i){return t((0,r.A)(e,n),i),i}},4586:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(1369);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},1369:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7545);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},7545:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},4244:(e,t,n)=>{n.d(t,{f:()=>a});var r=n(6330),i=n(9422),a=function(){var e=(0,r.A)((function*(e,t){return(yield i.http.post("api/gateway/next_builder.contract_center.SearchContract/api/v1/contract/search",e,t)).data}));return function(t,n){return e.apply(this,arguments)}}()},426:(e,t,n)=>{n.d(t,{N:()=>R});var r,i=n(4635),a=n(918),o=n(5536),s=n(9492),c=n(6121),l=n(829),u=n(2740),h=n(4782),f=n(1389);let d,p,A,v,m,g,S,b,T;const{method:y,property:C}=(0,h.createDecorators)();var E=new WeakMap,w=new WeakSet,_=new WeakMap,N=new WeakMap,I=new WeakMap,O=new WeakMap,k=new WeakMap,P=new WeakMap;class R extends f.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,w),(0,a.A)(this,E,(d(this),!1)),(0,a.A)(this,_,"normal"),(0,a.A)(this,N,!1),(0,a.A)(this,I,p(this)),(0,a.A)(this,O,(A(this),v(this))),(0,a.A)(this,k,(m(this),g(this))),(0,a.A)(this,P,(S(this),b(this))),T(this)}get isFormItemElement(){return!0}set validateState(e){(0,s.A)(w,M,this,e),this._render()}get validateState(){return(0,o.A)(w,this,B)}set notRender(e){this.hidden=e,(0,s.A)(w,F,this,e),this._render()}get notRender(){return(0,o.A)(w,this,x)}get $bindFormItem(){return(0,o.A)(w,this,W)}set $bindFormItem(e){(0,s.A)(w,j,this,e),this._render()}get helpBrick(){return(0,l.A)(I,this)}set helpBrick(e){(0,c.A)(I,this,e)}get labelBrick(){return(0,l.A)(O,this)}set labelBrick(e){(0,c.A)(O,this,e)}get labelCol(){return(0,l.A)(k,this)}set labelCol(e){(0,c.A)(k,this,e)}get wrapperCol(){return(0,l.A)(P,this)}set wrapperCol(e){(0,c.A)(P,this,e)}setNotRender(e){this.notRender=e}getFormElement(){let e=this;for(;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function x(e){return(0,l.A)(E,e)}function F(e,t){(0,c.A)(E,e,t)}function B(e){return(0,l.A)(_,e)}function M(e,t){(0,c.A)(_,e,t)}function W(e){return(0,l.A)(N,e)}function j(e,t){(0,c.A)(N,e,t)}r=R,[p,A,v,m,g,S,b,T,d]=(0,u.A)(r,[],[[C({attribute:!1}),1,"helpBrick"],[C({attribute:!1}),1,"labelBrick"],[C({attribute:!1}),1,"labelCol"],[C({attribute:!1}),1,"wrapperCol"],[y(),2,"setNotRender"],[y(),2,"getFormElement"]],0,void 0,f.ReactNextElement).e}}]);
|
|
3
|
-
//# sourceMappingURL=contract-select.39759636.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{var e,t,r,n,a,o,l,i,c,u,d,f,s,h,p,m,b,v,x,g,y,P,j,k={7934:(e,t,r)=>{Promise.all([r.e(7507),r.e(5814),r.e(5659),r.e(8769),r.e(4782),r.e(1389),r.e(1030),r.e(279),r.e(6477),r.e(8581),r.e(8799),r.e(155),r.e(1732),r.e(9422),r.e(9435),r.e(877),r.e(4047),r.e(5502),r.e(9080),r.e(2980),r.e(1201),r.e(5656)]).then(r.bind(r,5656))}},w={};function _(e){var t=w[e];if(void 0!==t)return t.exports;var r=w[e]={id:e,loaded:!1,exports:{}};return k[e].call(r.exports,r,r.exports,_),r.loaded=!0,r.exports}_.m=k,_.c=w,_.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return _.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,_.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);_.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,_.d(a,o),a},_.d=(e,t)=>{for(var r in t)_.o(t,r)&&!_.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},_.f={},_.e=e=>Promise.all(Object.keys(_.f).reduce(((t,r)=>(_.f[r](e,t),t)),[])),_.u=e=>"chunks/"+e+"."+{114:"c25646f6",155:"1ebf01ec",279:"be3de74f",718:"ce596d7d",726:"e407e050",790:"733521cc",871:"f5ada237",877:"135dbf61",1030:"7081f53a",1045:"26b1cdc0",1122:"1fbe95be",1201:"8950a28b",1204:"e10067e0",1389:"335daf5b",1732:"469e9cc0",1760:"2a46b24a",1889:"e1d839b8",1940:"fa7d69c6",2052:"f1624476",2201:"0a5797e4",2277:"e16c7cbf",2980:"86aa3c5b",3144:"0096b9c3",3171:"fb82432a",3680:"a3dc1198",3933:"67a1dc9c",4041:"468489fa",4047:"3568e66a",4285:"4d6d9649",4586:"6b85a822",4658:"e9f4df8f",4672:"7ebaa373",4782:"8f5581d6",4837:"bc21d4bb",5250:"f22684c9",5384:"7fbe2a84",5399:"be09f124",5502:"4cbb4b84",5552:"07444449",5656:"4b31dbc4",5659:"9000e441",5814:"71e5fb63",6314:"fb0eb5d4",6477:"7c5762c4",6519:"ddef7177",6773:"9ed5373b",7218:"163468a5",7304:"12ca6e2d",7434:"4ddb3aab",7507:"c0a5c220",7721:"6dd8673d",7733:"4fc7b710",8097:"f37c5904",8581:"d880f426",8769:"09488b9c",8799:"cf82abdb",8897:"c40a5de5",8989:"74e3337d",9080:"b97eaf67",9422:"a1ba863d",9435:"ddacadb1",9515:"80c4b472",9559:"34ed0b2d",9755:"12af1881",9844:"4328557b"}[e]+".js",_.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),_.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@next-bricks/visual-builder:",_.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"),u=0;u<c.length;u++){var d=c[u];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,_.nc&&l.setAttribute("nonce",_.nc),l.setAttribute("data-webpack",n+a),l.src=e),r[e]=[t];var f=(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(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),i&&document.head.appendChild(l)}},_.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{_.S={};var e={},t={};_.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];_.o(_.S,r)||(_.S[r]={});var o=_.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.25.3",(()=>_.e(6773).then((()=>()=>_(6773))))),i("@easyops-cn/brick-next-pipes","0.6.0",(()=>Promise.all([_.e(3680),_.e(1030),_.e(155),_.e(1204)]).then((()=>()=>_(3680))))),i("@next-core/cook","2.4.8",(()=>Promise.all([_.e(1122),_.e(1760),_.e(4586)]).then((()=>()=>_(1122))))),i("@next-core/element","1.2.11",(()=>_.e(1045).then((()=>()=>_(1045))))),i("@next-core/http","1.2.6",(()=>_.e(8989).then((()=>()=>_(8989))))),i("@next-core/i18n/react","1.0.62",(()=>Promise.all([_.e(8799),_.e(8097)]).then((()=>()=>_(8097))))),i("@next-core/i18n","1.0.62",(()=>Promise.all([_.e(279),_.e(8799),_.e(9755),_.e(5552)]).then((()=>()=>_(5552))))),i("@next-core/inject","1.0.41",(()=>Promise.all([_.e(1030),_.e(4285),_.e(2277)]).then((()=>()=>_(2277))))),i("@next-core/loader","1.6.7",(()=>_.e(5399).then((()=>()=>_(5399))))),i("@next-core/pipes","2.0.24",(()=>_.e(6519).then((()=>()=>_(6519))))),i("@next-core/react-element","1.0.30",(()=>Promise.all([_.e(8769),_.e(4782),_.e(9435),_.e(114)]).then((()=>()=>_(114))))),i("@next-core/react-runtime","1.6.34",(()=>Promise.all([_.e(8769),_.e(1389),_.e(1030),_.e(8581),_.e(4837)]).then((()=>()=>_(4837))))),i("@next-core/runtime","1.54.11",(()=>Promise.all([_.e(7507),_.e(718),_.e(1030),_.e(279),_.e(155),_.e(9422),_.e(877),_.e(8897),_.e(4672)]).then((()=>()=>_(718))))),i("@next-core/supply","2.1.20",(()=>Promise.all([_.e(1030),_.e(155),_.e(4285),_.e(9559)]).then((()=>()=>_(9559))))),i("@next-core/theme","1.5.4",(()=>Promise.all([_.e(1889),_.e(2052)]).then((()=>()=>_(1889))))),i("@next-core/utils/general","1.7.20",(()=>_.e(871).then((()=>()=>_(871))))),i("@next-core/utils/storyboard","1.7.20",(()=>Promise.all([_.e(279),_.e(8897),_.e(3933)]).then((()=>()=>_(3933))))),i("history","4.10.1",(()=>_.e(5384).then((()=>()=>_(5384))))),i("i18next-browser-languagedetector","7.2.1",(()=>_.e(726).then((()=>()=>_(726))))),i("i18next","22.5.1",(()=>_.e(7304).then((()=>()=>_(7304))))),i("js-yaml","3.14.1",(()=>_.e(9515).then((()=>()=>_(9515))))),i("lodash","4.17.21",(()=>_.e(5250).then((()=>()=>_(5250))))),i("moment/locale/zh-cn.js","2.30.1",(()=>Promise.all([_.e(7721),_.e(9844)]).then((()=>()=>_(1329))))),i("moment","2.30.1",(()=>Promise.all([_.e(7721),_.e(9844)]).then((()=>()=>_(9420))))),i("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([_.e(3144),_.e(8769)]).then((()=>()=>_(3144))))),i("react-i18next","12.3.1",(()=>Promise.all([_.e(7434),_.e(8769)]).then((()=>()=>_(7434))))),i("react","0.0.0-experimental-ee8509801-20230117",(()=>_.e(4041).then((()=>()=>_(4041)))))),e[r]=c.length?Promise.all(c).then((()=>e[r]=1)):1}}})(),(()=>{var e;_.g.importScripts&&(e=_.g.location+"");var t=_.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),_.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 u,d,f=l<e.length?(typeof e[l])[0]:"";if(o>=t.length||"o"==(d=(typeof(u=t[o]))[0]))return!c||("u"==f?l>r&&!n:""==f!=n);if("u"==d){if(!c||"u"!=f)return!1}else if(c)if(f==d)if(l<=r){if(u!=e[l])return!1}else{if(n?u>e[l]:u<e[l])return!1;u!=e[l]&&(c=!1)}else if("s"!=f&&"n"!=f){if(n||l<=r)return!1;c=!1,l--}else{if(l<=r||d<f!=n)return!1;c=!1}else"s"!=f&&"n"!=f&&(c=!1,l--)}}var s=[],h=s.pop.bind(s);for(o=1;o<e.length;o++){var p=e[o];s.push(1==p?h()|h():2==p?h()&h():p?i(p,t):!h())}return!!h()},c=(e,t)=>{var r=e[t];return Object.keys(r).reduce(((e,t)=>!e||!r[e].loaded&&o(e,t)?t:e),0)},u=(e,t,r,n)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+l(n)+")",d=(e,t,r,n)=>{var a=c(e,r);return p(e[r][a])},f=(e,t,r,n)=>{var a=c(e,r);return i(n,a)||h(u(e,r,a,n)),p(e[r][a])},s=(e,t,r)=>{var n=e[t];return(t=Object.keys(n).reduce(((e,t)=>!i(r,t)||e&&!o(e,t)?e:t),0))&&n[t]},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},p=e=>(e.loaded=1,e.get()),b=(m=e=>function(t,r,n,a){var o=_.I(t);return o&&o.then?o.then(e.bind(e,t,_.S[t],r,n,a)):e(t,_.S[t],r,n,a)})(((e,t,r,n)=>t&&_.o(t,r)?d(t,0,r):n())),v=m(((e,t,r,n,a)=>t&&_.o(t,r)?f(t,0,r,n):a())),x=m(((e,t,r,n,a)=>{var o=t&&_.o(t,r)&&s(t,r,n);return o?p(o):a()})),g={},y={8769:()=>x("default","react",[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>_.e(4041).then((()=>()=>_(4041))))),4782:()=>x("default","@next-core/element",[1,1,2,11],(()=>_.e(1045).then((()=>()=>_(1045))))),1389:()=>x("default","@next-core/react-element",[1,1,0,30],(()=>Promise.all([_.e(4782),_.e(9435),_.e(7733)]).then((()=>()=>_(114))))),1030:()=>v("default","lodash",[1,4,17,21],(()=>_.e(5250).then((()=>()=>_(5250))))),279:()=>v("default","@next-core/utils/general",[1,1,7,20],(()=>_.e(871).then((()=>()=>_(871))))),6477:()=>v("default","@next-core/theme",[1,1,5,4],(()=>_.e(1889).then((()=>()=>_(1889))))),8581:()=>v("default","@next-core/runtime",[1,1,54,11],(()=>Promise.all([_.e(7507),_.e(718),_.e(1030),_.e(279),_.e(155),_.e(9422),_.e(877),_.e(8897),_.e(4672)]).then((()=>()=>_(718))))),8799:()=>b("default","@next-core/i18n",(()=>Promise.all([_.e(279),_.e(9755),_.e(3171)]).then((()=>()=>_(5552))))),155:()=>v("default","moment",[1,2,29,4],(()=>Promise.all([_.e(7721),_.e(9844)]).then((()=>()=>_(9420))))),1732:()=>b("default","js-yaml",(()=>_.e(9515).then((()=>()=>_(9515))))),9422:()=>v("default","@next-core/http",[1,1,2,6],(()=>_.e(8989).then((()=>()=>_(8989))))),9435:()=>x("default","react-dom",[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>_.e(3144).then((()=>()=>_(3144))))),877:()=>v("default","@next-core/utils/storyboard",[1,1,7,20],(()=>Promise.all([_.e(8897),_.e(6314)]).then((()=>()=>_(3933))))),4047:()=>x("default","@next-core/react-runtime",[1,1,6,34],(()=>Promise.all([_.e(1030),_.e(8581),_.e(7218)]).then((()=>()=>_(4837))))),5502:()=>b("default","@next-core/i18n/react",(()=>Promise.all([_.e(8799),_.e(8097)]).then((()=>()=>_(8097))))),1431:()=>b("default","@next-core/cook",(()=>Promise.all([_.e(1122),_.e(1760)]).then((()=>()=>_(1122))))),1201:()=>v("default","history",[1,4,7,11],(()=>_.e(5384).then((()=>()=>_(5384))))),1204:()=>v("default","js-yaml",[1,3,14,0],(()=>_.e(9515).then((()=>()=>_(9515))))),1760:()=>v("default","@babel/parser",[1,7,24,7],(()=>_.e(6773).then((()=>()=>_(6773))))),7825:()=>v("default","react-i18next",[1,12,3,1],(()=>Promise.all([_.e(7434),_.e(8769)]).then((()=>()=>_(7434))))),2350:()=>v("default","i18next",[1,22,5,1],(()=>_.e(7304).then((()=>()=>_(7304))))),7072:()=>v("default","i18next-browser-languagedetector",[1,7,2,1],(()=>_.e(726).then((()=>()=>_(726))))),4285:()=>v("default","@next-core/pipes",[1,2,0,24],(()=>_.e(6519).then((()=>()=>_(6519))))),161:()=>v("default","@easyops-cn/brick-next-pipes",[2,0,6,0],(()=>Promise.all([_.e(3680),_.e(1030),_.e(155),_.e(1204)]).then((()=>()=>_(3680))))),8897:()=>v("default","@next-core/cook",[1,2,4,8],(()=>Promise.all([_.e(1122),_.e(1760),_.e(4586)]).then((()=>()=>_(1122))))),597:()=>v("default","moment/locale/zh-cn.js",[1,2,29,4],(()=>Promise.all([_.e(7721),_.e(9844)]).then((()=>()=>_(1329))))),1680:()=>v("default","@next-core/supply",[1,2,1,20],(()=>Promise.all([_.e(4285),_.e(1940)]).then((()=>()=>_(9559))))),2890:()=>v("default","history",[1,4,10,1],(()=>_.e(5384).then((()=>()=>_(5384))))),7318:()=>v("default","@next-core/i18n",[1,1,0,62],(()=>Promise.all([_.e(8799),_.e(9755),_.e(790)]).then((()=>()=>_(5552))))),8965:()=>v("default","@next-core/inject",[1,1,0,41],(()=>Promise.all([_.e(4285),_.e(4658)]).then((()=>()=>_(2277))))),9424:()=>v("default","@next-core/loader",[1,1,6,7],(()=>_.e(5399).then((()=>()=>_(5399)))))},P={155:[155],279:[279],877:[877],1030:[1030],1201:[1201],1204:[1204],1389:[1389],1732:[1732],1760:[1760],4047:[4047],4285:[4285],4672:[597,1680,2890,7318,8965,9424],4782:[4782],5502:[5502],6477:[6477],6519:[161],8097:[7825],8581:[8581],8769:[8769],8799:[8799],8897:[8897],9080:[1431],9422:[9422],9435:[9435],9755:[2350,7072]},j={},_.f.consumes=(e,t)=>{_.o(P,e)&&P[e].forEach((e=>{if(_.o(g,e))return t.push(g[e]);if(!j[e]){var r=t=>{g[e]=0,_.m[e]=r=>{delete _.c[e],r.exports=t()}};j[e]=!0;var n=t=>{delete g[e],_.m[e]=r=>{throw delete _.c[e],t}};try{var a=y[e]();a.then?t.push(g[e]=a.then(r).catch(n)):r(a)}catch(e){n(e)}}}))},(()=>{var e={8792:0};_.f.j=(t,r)=>{var n=_.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(1(20[14]|030|389|55|732|760)|4(047|285|672|782)|8(7(69|7|99)|581|897)|9(422|435|755)|279|5502|6477)$/.test(t))e[t]=0;else{var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var o=_.p+_.u(t),l=new Error;_.l(o,(r=>{if(_.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)_.o(l,n)&&(_.m[n]=l[n]);i&&i(_)}for(t&&t(r);c<o.length;c++)a=o[c],_.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))})(),_.nc=void 0,_(7934)})();
|
|
2
|
-
//# sourceMappingURL=main.728acdd7.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[8356,2052],{8366:(t,e,r)=>{r.r(e),r.d(e,{PreGeneratedContainer:()=>w,PreGeneratedContainerComponent:()=>j});var n,o=r(918),i=r(6121),a=r(829),c=r(2740),u=r(8769),s=r.n(u),l=r(4782),f=r(1389),d=r(4047),h=(r(6477),r(4967));let p,v,b,m,y;const{defineElement:g,property:A}=(0,l.createDecorators)();let w;var k=new WeakMap,S=new WeakMap;class E extends f.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,k,v(this)),(0,o.A)(this,S,(b(this),m(this))),y(this)}get useBrick(){return(0,a.A)(k,this)}set useBrick(t){(0,i.A)(k,this,t)}get dataSource(){return(0,a.A)(S,this)}set dataSource(t){(0,i.A)(S,this,t)}render(){return s().createElement(j,{useBrick:this.useBrick,dataSource:this.dataSource})}}function j(t){let{useBrick:e,dataSource:r}=t;return s().createElement(d.ReactUseMultipleBricks,{useBrick:e,data:r,errorBoundary:!0})}n=E,({e:[v,b,m,y],c:[w,p]}=(0,c.A)(n,[g("visual-builder.pre-generated-container",{styleTexts:[h.A]})],[[A({attribute:!1}),1,"useBrick"],[A({attribute:!1}),1,"dataSource"]],0,void 0,f.ReactNextElement)),p()},4967:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(6758),o=r.n(n),i=r(935),a=r.n(i)()(o());a.push([t.id,":host{display:inline-block}:host([hidden]){display:none}",""]);const c=a.toString()},935:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var c=0;c<this.length;c++){var u=this[c][0];null!=u&&(a[u]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);n&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),e.push(l))}},e}},6758:t=>{t.exports=function(t){return t[1]}},2740:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(7545),o=r(6902);function i(t,e,r){"symbol"==(0,n.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:r?r+" "+e:e})}catch(t){}return t}var a=r(1369);function c(t,e,r,c,u,s){var l,f,d,h,p,v,b,m=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,g=Object.create,A=[g(null),g(null)],w=e.length;function k(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 E(t,e,r,o,a,c,u,s,d,h,p){function v(t){if(!p(t))throw new TypeError("Attempted to access private element on non-instance")}var b=[].concat(e[0]),m=e[3],g=!u,w=1===a,E=3===a,j=4===a,T=2===a;function B(e,r,n){return function(o,i){return r&&(i=o,o=t),n&&n(o),x[e].call(o,i)}}if(!g){var x={},P=[],_=E?"get":j||w?"set":"value";if(d?(h||w?x={get:i((function(){return m(this)}),o,"get"),set:function(t){e[4](this,t)}}:x[_]=m,h||i(x[_],o,T?"":_)):h||(x=Object.getOwnPropertyDescriptor(t,o)),!h&&!d){if((f=A[+s][o])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+x[_].name+") is not supported yet");A[+s][o]=a<3?1:a}}for(var C=t,O=b.length-1;O>=0;O-=r?2:1){var z=S(b[O],"A decorator","be",!0),D=r?b[O-1]:void 0,M={},R={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:l,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");S(e,"An initializer","be",!0),c.push(e)}.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(t){return o in t}},j||(f.get=d?T?function(t){return v(t),x.value}:B("get",0,v):function(t){return t[o]}),T||E||(f.set=d?B("set",0,v):function(t,e){t[o]=e}),C=z.call(D,w?{get:x.get,set:x.set}:x[_],R),M.v=1,w){if("object"==(0,n.A)(C)&&C)(f=S(C.get,"accessor.get"))&&(x.get=f),(f=S(C.set,"accessor.set"))&&(x.set=f),(f=S(C.init,"accessor.init"))&&P.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?P.unshift(C):x[_]=C)}return a<2&&u.push(k(P,s,1),k(c,s,0)),h||g||(d?w?u.splice(-1,0,B("get",s),B("set",s)):u.push(T?x[_]:S.call.bind(x[_])):y(t,o,x)),C}function j(t){return y(t,m,{configurable:!0,enumerable:!0,value:l})}return void 0!==s&&(l=s[m]),l=g(null==l?null:l),p=[],v=function(t){t&&p.push(k(t))},b=function(e,n){for(var i=0;i<r.length;i++){var c=r[i],s=c[1],l=7&s;if((8&s)==e&&!l==n){var f=c[2],v=!!c[3],b=16&s;E(e?t:t.prototype,c,b,v?"#"+f:(0,a.A)(f),l,l<2?[]:e?h=h||[]:d=d||[],p,!!e,v,n,e&&v?function(e){return(0,o.A)(e)===t}:u)}}},b(8,0),b(0,0),b(8,1),b(0,1),v(d),v(h),f=p,w||j(t),{e:f,get c(){var r=[];return w&&[j(t=E(t,[e],c,t.name,5,r)),k(r,1)]}}}},2559:(t,e,r)=>{function n(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}r.d(e,{A:()=>n})},6902:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(7545);function o(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,n.A)(t):"null"));return t}},2016:(t,e,r)=>{function n(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(e,{A:()=>n})},829:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(2559);function o(t,e){return t.get((0,n.A)(t,e))}},918:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(2016);function o(t,e,r){(0,n.A)(t,e),e.set(t,r)}},6121:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(2559);function o(t,e,r){return t.set((0,n.A)(t,e),r),r}},1369:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(7545);function o(t){var e=function(t,e){if("object"!=(0,n.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(e)?e:e+""}},7545:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{A:()=>n})}}]);
|
|
2
|
-
//# sourceMappingURL=pre-generated-container.fd7db719.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see pre-generated-preview.f09452bf.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[105,2052],{9191:(e,t,r)=>{"use strict";r.r(t),r.d(t,{PreGeneratedPreview:()=>N,PreGeneratedPreviewComponent:()=>V});var n,o=r(918),i=r(6121),a=r(829),s=r(2740),c=r(8769),l=r.n(c),u=r(4782),d=r(1389),p=(r(6477),r(3373)),f=r.n(p),h=r(8581),v=r(1732),b=r(279),m=r(4014),g=r(8918);let y,w,k,A,x,S,_,E,P,j,C;const{defineElement:T,property:M}=(0,u.createDecorators)();let N;var O=new WeakMap,z=new WeakMap,B=new WeakMap,D=new WeakMap,I=new WeakMap;class W extends d.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,O,w(this)),(0,o.A)(this,z,(k(this),A(this))),(0,o.A)(this,B,(x(this),S(this))),(0,o.A)(this,D,(_(this),E(this))),(0,o.A)(this,I,(P(this),j(this))),C(this)}get generations(){return(0,a.A)(O,this)}set generations(e){(0,i.A)(O,this,e)}get category(){return(0,a.A)(z,this)}set category(e){(0,i.A)(z,this,e)}get theme(){return(0,a.A)(B,this)}set theme(e){(0,i.A)(B,this,e)}get uiVersion(){return(0,a.A)(D,this)}set uiVersion(e){(0,i.A)(D,this,e)}get app(){return(0,a.A)(I,this)}set app(e){(0,i.A)(I,this,e)}render(){return l().createElement(V,{generations:this.generations,category:this.category,theme:this.theme,uiVersion:this.uiVersion,app:this.app})}}function V(e){let{generations:t,category:r,theme:n,uiVersion:o,app:i}=e;const a=(0,c.useRef)(),[s,u]=(0,c.useState)(!1),[d,p]=(0,c.useState)(!1),m=(0,c.useCallback)((()=>{const e=()=>{var t;const r=null===(t=a.current)||void 0===t?void 0:t.contentWindow;null!=r&&r._preview_only_render?u(!0):setTimeout(e,100)};e()}),[]);return(0,c.useEffect)((()=>{if(!s)return;const e=h.__secret_internals.getBrickPackagesById("bricks/visual-builder");if(!e)throw new Error("Cannot find preview agent package: bricks/visual-builder");const t=a.current.contentWindow._preview_only_inject,r={...e,filePath:`${location.origin}${(0,h.getBasePath)()}${window.PUBLIC_ROOT??""}${e.filePath}`};Promise.allSettled(["visual-builder.pre-generated-table-view","visual-builder.pre-generated-container"].map((e=>t(e,r,void 0,!0)))).then((()=>{p(!0)}))}),[s]),(0,c.useEffect)((()=>{var e;if(!d)return;const s=null===(e=a.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;if(!s)return;const c=new Map,l=new Map;for(const e of t){let t=c.get(e.propertyId);t||c.set(e.propertyId,t=new Map);let r=t.get(e.rwType);r||t.set(e.rwType,r=new Map),r.set(e.displayLevel??0,e),l.set(e.propertyId,e.mockData)}const u=[{brick:"div",properties:{textContent:"属性",className:"head-cell"}},{brick:"div",properties:{textContent:"类别",className:"head-cell"}},{brick:"div",properties:{textContent:"展示等级",className:"head-cell last-col-cell",style:{gridColumn:"span 5",textAlign:"center"}}}],p={brick:"visual-builder.pre-generated-table-view",properties:{style:{gridTemplateColumns:"120px 80px repeat(5, 1fr)"}},children:u};let h=0;for(const[e,t]of c){let n=0;const o=h===c.size-1;for(const[i,a]of t){if(0===n){let r;for(const t of a.values()){r=t.propertyName??e;break}u.push({brick:"div",properties:{textContent:r,className:f()("body-cell",{"last-row-cell":o}),style:{gridRow:`span ${t.size}`}}})}const s=o&&n===t.size-1;u.push({brick:"div",properties:{textContent:i,className:f()("body-cell",{"last-row-cell":s})}});for(let t=-2;t<3;t++){var m;const n=a.get(t),o=(null==n?void 0:n.category)??r;let i;if(null!=n&&null!==(m=n.mockData)&&void 0!==m&&m.length){const t=n.mockData[Math.floor(Math.random()*n.mockData.length)];switch(o){case"detail-item":case"form-item":case"card-item":i={[e]:t};break;case"table-column":i={cellData:t}}}const c=[].concat((null==n?void 0:n.storyboard)??[]).filter((e=>!!(0,b.isObject)(e)||(console.error("Unexpected type of storyboard:",typeof e),!1)));let l;switch(c.forEach(R),o){case"form-item":l={brick:"eo-form",properties:{layout:"inline",values:i,className:"form-container"},children:c.map((e=>({...e,errorBoundary:!0})))};break;case"card-item":l={brick:":forEach",dataSource:[i],children:c.map((e=>({...e,errorBoundary:!0})))};break;default:l={brick:"visual-builder.pre-generated-container",properties:{useBrick:c,dataSource:i},errorBoundary:!0}}u.push({brick:"div",properties:{className:f()("body-cell",{"last-col-cell":2===t,"last-row-cell":s})},children:[{...l,errorBoundary:!0}]})}n++}h++}s("yaml",{yaml:(0,v.safeDump)(p,{schema:v.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0})},{app:i,theme:n,uiVersion:o,styleText:g.A})}),[i,d,t,n,o,r]),l().createElement("div",{className:f()("container")},l().createElement("iframe",{ref:a,src:`${(0,h.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:m}))}function R(e){var t;null!==(t=e.properties)&&void 0!==t&&t.prefix&&(console.error("Unexpected readonly property of 'prefix' in:",e),delete e.properties.prefix)}n=W,({e:[w,k,A,x,S,_,E,P,j,C],c:[N,y]}=(0,s.A)(n,[T("visual-builder.pre-generated-preview",{styleTexts:[m.A]})],[[M({attribute:!1}),1,"generations"],[M(),1,"category"],[M(),1,"theme"],[M(),1,"uiVersion"],[M(),1,"app"]],0,void 0,d.ReactNextElement)),y()},8918:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6758),o=r.n(n),i=r(935),a=r.n(i)()(o());a.push([e.id,"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}.head-cell,\n.body-cell{background:var(--body-background)}.last-col-cell{border-right-color:transparent}.last-row-cell{border-bottom-color:transparent}.form-container > ::part(message){display:none}",""]);const s=a.toString()},4014:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6758),o=r.n(n),i=r(935),a=r.n(i)()(o());a.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.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()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[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)),t.push(u))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3373:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},2740:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(7545),o=r(6902);function i(e,t,r){"symbol"==(0,n.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch(e){}return e}var a=r(1369);function s(e,t,r,s,c,l){var u,d,p,f,h,v,b,m=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,y=Object.create,w=[y(null),y(null)],k=t.length;function A(t,r,n){return function(o,i){r&&(i=o,o=e);for(var a=0;a<t.length;a++)i=t[a].apply(o,n?[i]:[]);return n?i:o}}function x(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function S(e,t,r,o,a,s,c,l,p,f,h){function v(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var b=[].concat(t[0]),m=t[3],y=!c,k=1===a,S=3===a,_=4===a,E=2===a;function P(t,r,n){return function(o,i){return r&&(i=o,o=e),n&&n(o),j[t].call(o,i)}}if(!y){var j={},C=[],T=S?"get":_||k?"set":"value";if(p?(f||k?j={get:i((function(){return m(this)}),o,"get"),set:function(e){t[4](this,e)}}:j[T]=m,f||i(j[T],o,E?"":T)):f||(j=Object.getOwnPropertyDescriptor(e,o)),!f&&!p){if((d=w[+l][o])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+j[T].name+") is not supported yet");w[+l][o]=a<3?1:a}}for(var M=e,N=b.length-1;N>=0;N-=r?2:1){var O=x(b[N],"A decorator","be",!0),z=r?b[N-1]:void 0,B={},D={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),s.push(t)}.bind(null,B)};if(y)d=O.call(z,M,D),B.v=1,x(d,"class decorators","return")&&(M=d);else if(D.static=l,D.private=p,d=D.access={has:p?h.bind():function(e){return o in e}},_||(d.get=p?E?function(e){return v(e),j.value}:P("get",0,v):function(e){return e[o]}),E||S||(d.set=p?P("set",0,v):function(e,t){e[o]=t}),M=O.call(z,k?{get:j.get,set:j.set}:j[T],D),B.v=1,k){if("object"==(0,n.A)(M)&&M)(d=x(M.get,"accessor.get"))&&(j.get=d),(d=x(M.set,"accessor.set"))&&(j.set=d),(d=x(M.init,"accessor.init"))&&C.unshift(d);else if(void 0!==M)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else x(M,(f?"field":"method")+" decorators","return")&&(f?C.unshift(M):j[T]=M)}return a<2&&c.push(A(C,l,1),A(s,l,0)),f||y||(p?k?c.splice(-1,0,P("get",l),P("set",l)):c.push(E?j[T]:x.call.bind(j[T])):g(e,o,j)),M}function _(e){return g(e,m,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[m]),u=y(null==u?null:u),h=[],v=function(e){e&&h.push(A(e))},b=function(t,n){for(var i=0;i<r.length;i++){var s=r[i],l=s[1],u=7&l;if((8&l)==t&&!u==n){var d=s[2],v=!!s[3],b=16&l;S(t?e:e.prototype,s,b,v?"#"+d:(0,a.A)(d),u,u<2?[]:t?f=f||[]:p=p||[],h,!!t,v,n,t&&v?function(t){return(0,o.A)(t)===e}:c)}}},b(8,0),b(0,0),b(8,1),b(0,1),v(p),v(f),d=h,k||_(e),{e:d,get c(){var r=[];return k&&[_(e=S(e,[t],s,e.name,5,r)),A(r,1)]}}}},2559:(e,t,r)=>{"use strict";function n(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}r.d(t,{A:()=>n})},6902:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(7545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,n.A)(e):"null"));return e}},2016:(e,t,r)=>{"use strict";function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>n})},829:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2559);function o(e,t){return e.get((0,n.A)(e,t))}},918:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2016);function o(e,t,r){(0,n.A)(e,t),t.set(e,r)}},6121:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2559);function o(e,t,r){return e.set((0,n.A)(e,t),r),r}},1369:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(7545);function o(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},7545:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})}}]);
|
|
3
|
-
//# sourceMappingURL=pre-generated-preview.f09452bf.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[5238],{2080:(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(4635),n=i(918),r=i(6902),o=i(5536),l=i(6121),h=i(829),d=i(2740),c=i(8769),u=i.n(c),A=i(4782),m=i(1389),p=(i(6477),i(5908)),v=i(7091),k=i(8788),g=i(6768),f=i(6257),E=i(9708),b=i(4047),M=i(3768),y=i(2803),w=i(3824),C=i(2513),S=i(5067),W=i(1477),_=i(4287),F=i(966),x=i(5768),I=i(6110),L=i(5944),N=i(8409),V=i(8581),P=i(3995),T=(i(74),i(1030)),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,pe,ve,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,v.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,pe).emit(e)})),(0,n.A)(this,Ge,void 0),(0,n.A)(this,Je,(0,p.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{const e=q().omit(t.values,[P.qZ]);t.notify(We,e),(0,o.A)(Be,this,se).emit((0,h.A)(Ge,this)??e)}})).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,p.DG)()),[M]),W=(0,c.useRef)(null),_=(0,c.useRef)(!1),F=(0,c.useMemo)((()=>(0,p.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)=>{if(t){const t=q().omit(e,[P.qZ]);return{[P.qZ]:q().isEmpty(t)?"":t}}return e[P.qZ]??e}),[]);return(0,c.useEffect)((()=>{x()}),[x]),(0,c.useEffect)((()=>{M&&S.setInitialValues(s,"overwrite")}),[M,S]),(0,c.useEffect)((()=>{_.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 e=S.getState().values,t=I(W.current??e,i);S.setValues(t,"overwrite"),_.current=!1}),[i,S,I,M]),(0,c.useEffect)((()=>{S.addEffects("onValueChange",(()=>{(0,p.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(v.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:p.yd,onFieldValueChange:p.$l,onFieldInitialValueChange:p.J4,onFormInitialValuesChange:p.oJ,onFormValidateSuccess:p.zu,onFormValuesChange:p.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,pe,ve,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.ebc63508.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see raw-data-preview.a9da1ecb.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[1279,2052],{1304:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(1030);function i(e,t){const r=`[${JSON.stringify(t)}]`;let i;switch(e.display){case"link":case"text":i=function(e,t){var r;if("struct-list"===e.type&&e.countOnly)return{brick:"span",properties:{textContent:`<% \`\${DATA${t}.length}\` %>`}};const i=`<% ${o(e,t)} %>`;switch(null===(r=e.formatter)||void 0===r?void 0:r.type){case"number":return{brick:"eo-formatter-number",errorBoundary:!0,properties:{value:i,type:e.formatter.format,...(0,n.pick)(e.formatter,["currency","originalUnit","decimals","thousandsSeparator"])}};case"date-time":return{brick:"eo-humanize-time",errorBoundary:!0,properties:{value:i,type:"date"===e.type?"date":void 0,formatter:e.formatter.format}};case"cost-time":return{brick:"eo-humanize-time",errorBoundary:!0,properties:{value:i,isCostTime:!0}};default:return{brick:"span",errorBoundary:!0,properties:{textContent:i,style:s(e.style)}}}}(e,r),"struct-list"!==e.type||e.countOnly?"link"===e.display&&(i={brick:"eo-link",errorBoundary:!0,children:[i]}):i={brick:"eo-tag",errorBoundary:!0,children:[i]};break;case"tag":{var c,l,u,p,d;const t="background"===(null===(c=e.style)||void 0===c?void 0:c.variant)?"-inverse":"",n=o(e,r);i={brick:"eo-tag",errorBoundary:!0,properties:{textContent:`<% ${n} %>`,size:a(null===(l=e.style)||void 0===l?void 0:l.size),color:null!==(u=e.style)&&void 0!==u&&u.background?`${e.style.background}${t}`:null!==(p=e.style)&&void 0!==p&&p.palette?`<% \`\${(${JSON.stringify(e.style.palette)})[${n}] ?? "gray"}${t}\` %>`:`gray${t}`,outline:"outline"===(null===(d=e.style)||void 0===d?void 0:d.variant)}};break}default:return null}if("struct-list"!==e.type||e.countOnly)return i;const f=Number(e.maxItems)||3;return{brick:"span",errorBoundary:!0,properties:{style:{display:"inline-flex",gap:"0.5em"}},children:[{brick:":forEach",dataSource:`<% DATA${r}.slice(0, ${f}) %>`,children:[i]},{brick:"eo-link",if:`<% DATA${r}.length > ${f} %>`,properties:{textContent:`<% \`+ \${DATA${r}.length - ${f}} 项\` %>`}}]}}function o(e,t){return"struct"!==e.type&&"struct-list"!==e.type||!e.field?`DATA${t}`:`${"struct"===e.type?`DATA${t}`:"ITEM"}[${JSON.stringify(e.field)}]`}function a(e){switch(e){case"large":case"medium":case"small":return e;case"x-large":return"large"}}function s(e){if(!e)return;const t={};switch(e.size){case"small":t.fontSize="var(--sub-title-font-size-small)";break;case"medium":t.fontSize="var(--normal-font-size)";break;case"large":t.fontSize="var(--card-title-font-size)";break;case"x-large":t.fontSize="var(--title-font-size-larger)"}switch(e.fontWeight){case"bold":case"normal":t.fontWeight=e.fontWeight}return e.color&&(t.color=e.color),t}},7797:(e,t,r)=>{"use strict";r.r(t),r.d(t,{RawDataPreview:()=>X,RawDataPreviewComponent:()=>re});var n,i=r(4635),o=r(918),a=r(6902),s=r(5536),c=r(6121),l=r(829),u=r(2740),p=r(8769),d=r.n(p),f=r(4782),y=r(1389),h=(r(6477),r(3373)),g=r.n(h),v=r(8581),m=r(1732),b=r(1304),w=r(9034),A=r(4162);let k,S,x,T,E,$,C,N,O,_,I,z,P,W,j,B,M,D,V;const{defineElement:J,property:R,event:U}=(0,f.createDecorators)();let X;var L=new WeakMap,K=new WeakMap,H=new WeakMap,q=new WeakMap,F=new WeakMap,G=new WeakMap,Q=new WeakMap,Y=new WeakMap,Z=new WeakSet,ee=new WeakMap;class te extends y.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,Z),(0,o.A)(this,L,S(this)),(0,o.A)(this,K,(x(this),T(this))),(0,o.A)(this,H,(E(this),$(this))),(0,o.A)(this,q,(C(this),N(this))),(0,o.A)(this,F,(O(this),_(this))),(0,o.A)(this,G,(I(this),z(this))),(0,o.A)(this,Q,(P(this),W(this))),(0,o.A)(this,Y,(j(this),B(this))),(0,o.A)(this,ee,(V(this),e=>{(0,s.A)(Z,this,M).emit(e)}))}get previewUrl(){return(0,l.A)(L,this)}set previewUrl(e){(0,c.A)(L,this,e)}get generations(){return(0,l.A)(K,this)}set generations(e){(0,c.A)(K,this,e)}get busy(){return(0,l.A)(H,this)}set busy(e){(0,c.A)(H,this,e)}get category(){return(0,l.A)(q,this)}set category(e){(0,c.A)(q,this,e)}get theme(){return(0,l.A)(F,this)}set theme(e){(0,c.A)(F,this,e)}get uiVersion(){return(0,l.A)(G,this)}set uiVersion(e){(0,c.A)(G,this,e)}get app(){return(0,l.A)(Q,this)}set app(e){(0,c.A)(Q,this,e)}render(){return d().createElement(re,{previewUrl:this.previewUrl,generations:this.generations,busy:this.busy,category:this.category,theme:this.theme,uiVersion:this.uiVersion,app:this.app,onComment:(0,l.A)(ee,this)})}}function re(e){let{previewUrl:t,generations:r,busy:n,category:i,theme:o,uiVersion:a,app:s,onComment:c}=e;const l=(0,p.useRef)(),[u,f]=(0,p.useState)(!1),[y,h]=(0,p.useState)(!1),w=(0,p.useRef)([]),k=(0,p.useCallback)((()=>{const e=()=>{var t;const r=null===(t=l.current)||void 0===t?void 0:t.contentWindow;null!=r&&r._preview_only_render?f(!0):setTimeout(e,100)};e()}),[]);return(0,p.useEffect)((()=>{u&&l.current.contentWindow.postMessage({channel:"raw-data-preview",type:"busy",payload:n},location.origin)}),[n,u]),(0,p.useEffect)((()=>{if(u){const e=l.current.contentWindow,t=e=>{let{data:t}=e;if("raw-data-preview"===(null==t?void 0:t.channel))switch(t.type){case"comment":c(t.payload);break;case"updatePropertyToggleState":w.current=t.payload}};return e.addEventListener("message",t),()=>{e.removeEventListener("message",t)}}}),[c,u]),(0,p.useEffect)((()=>{if(!u)return;const e=v.__secret_internals.getBrickPackagesById("bricks/visual-builder");if(!e)throw new Error("Cannot find preview agent package: bricks/visual-builder");const r=l.current.contentWindow._preview_only_inject,n={...e,filePath:t?new URL(e.filePath,new URL(t,location.origin)).toString():`${location.origin}${(0,v.getBasePath)()}${window.PUBLIC_ROOT??""}${e.filePath}`};Promise.allSettled(["visual-builder.pre-generated-table-view","visual-builder.pre-generated-container"].map((e=>r(e,n,void 0,!0)))).then((()=>{h(!0)}))}),[t,u]),(0,p.useEffect)((()=>{var e;if(!y)return;const t=null===(e=l.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;if(!t)return;const n=[{brick:"div",properties:{textContent:"属性",className:"head-cell"}},{brick:"div",properties:{textContent:"",className:"head-cell"}},{brick:"div",properties:{textContent:"视觉重量 (由低至高)",className:"head-cell last-col-cell",style:{gridColumn:"span 4",textAlign:"center"}}},{brick:"div",properties:{textContent:"批注",className:"head-cell"}}],i={brick:"visual-builder.pre-generated-table-view",context:[{name:"propertyToggleState",value:w.current,onChange:{action:"window.postMessage",args:[{channel:"raw-data-preview",type:"updatePropertyToggleState",payload:"<% CTX.propertyToggleState %>"}]}},{name:"busy"}],properties:{style:{gridTemplateColumns:"auto 32px repeat(5, 1fr)"}},children:n};for(let e=0,t=r.length;e<t;e++){var c;const i=r[e],o=e===t-1,a=new Map;for(const e of i.candidates??[])a.set(e.visualWeight??0,e);n.push({brick:"div",properties:{className:g()("body-cell",{"last-row-cell":o}),style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},children:[{brick:"span",properties:{textContent:`${i.propertyName??i.propertyId}`}},{brick:"eo-button",properties:{type:"text",icon:`<%=\n {\n lib: "fa",\n prefix: "fas",\n icon: CTX.propertyToggleState.includes(${JSON.stringify(i.propertyId)}) ? "chevron-up" : "chevron-down",\n }\n %>`},events:{click:{action:"context.replace",args:["propertyToggleState",`<%\n CTX.propertyToggleState.includes(${JSON.stringify(i.propertyId)})\n ? CTX.propertyToggleState.filter((id) => id !== ${JSON.stringify(i.propertyId)})\n : CTX.propertyToggleState.concat(${JSON.stringify(i.propertyId)})\n %>`]}}}]},{brick:"div",properties:{className:g()("body-cell",{"last-row-cell":o})},children:null!==(c=i.candidates)&&void 0!==c&&c.length?[{brick:"eo-icon",properties:{lib:"fa",...i.generationId?{prefix:"far",icon:"circle-check",style:{color:"var(--palette-green-6)"}}:{prefix:"fas",icon:"circle",style:{color:"var(--palette-gray-6)",transformOrigin:"center center",transform:"scale(0.5)"}}}}]:void 0});const s=(i.mockData??[]).slice();s.sort(((e,t)=>{const r=null==e?void 0:e[i.propertyId],n=null==t?void 0:t[i.propertyId],o=Array.isArray(r),a=Array.isArray(n);if(o||a)return(a?n.length:-1)-(o?r.length:-1);const s=null==r,c=null==n;if(s||c)return(c?0:1)-(s?0:1);const l="string"==typeof r&&0===r.length,u="string"==typeof n&&0===n.length;return l||u?(u?0:1)-(l?0:1):0}));for(let e=-1;e<3;e++){const t=a.get(e);let r;t&&(r=(0,b.w)(t,i.propertyId)),n.push({brick:"div",properties:{className:g()("body-cell",{"last-row-cell":o})},children:[{brick:"div",properties:{style:{display:"flex",flexDirection:"column",gap:"8px"}},children:r?s.map(((e,t)=>({brick:"visual-builder.pre-generated-container",if:0===t||`<%= CTX.propertyToggleState.includes(${JSON.stringify(i.propertyId)}) %>`,properties:{useBrick:[r],dataSource:e},errorBoundary:!0}))):void 0}]})}n.push({brick:"div",properties:{className:g()("body-cell",{"last-col-cell":!0,"last-row-cell":o})},children:i.candidates?[{brick:"eo-textarea",properties:{value:i.comment?`<% ${JSON.stringify(i.comment)} %>`:void 0,placeholder:"不合预期?请补充说明 (按住 ⌘ 或 ctrl 并回车提交)",autoSize:!0,style:{width:"100%"},disabled:"<%= CTX.busy %>"},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:i.propertyInstanceId}}]}}}]:void 0})}t("yaml",{yaml:(0,m.safeDump)([i,{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:s,theme:o,uiVersion:a,styleText:A.A})}),[s,y,r,o,a,i]),d().createElement("div",{className:g()("container")},d().createElement("iframe",{ref:l,src:t??`${(0,v.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:k}))}n=te,({e:[S,x,T,E,$,C,N,O,_,I,z,P,W,j,B,M,D,V],c:[X,k]}=(0,u.A)(n,[J("visual-builder.raw-data-preview",{styleTexts:[w.A]})],[[R(),1,"previewUrl"],[R({attribute:!1}),1,"generations"],[R({type:Boolean}),1,"busy"],[R(),1,"category"],[R(),1,"theme"],[R(),1,"uiVersion"],[R(),1,"app"],[U({type:"comment"}),1,"commentEvent",e=>(0,l.A)(Y,e),(e,t)=>(0,c.A)(Y,e,t)]],0,(e=>ee.has((0,a.A)(e))),y.ReactNextElement)),k()},4162:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6758),i=r.n(n),o=r(935),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}.head-cell,\n.body-cell{background:var(--body-background)}.body-cell{display:flex;align-items:center}.last-col-cell{border-right-color:transparent}.last-row-cell{border-bottom-color:transparent}.form-container > ::part(message){display:none}",""]);const s=a.toString()},9034:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6758),i=r.n(n),o=r(935),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()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,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 l=0;l<e.length;l++){var u=[].concat(e[l]);n&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3373:(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)}()},2740:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(7545),i=r(6902);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(1369);function s(e,t,r,s,c,l){var u,p,d,f,y,h,g,v=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,l,d,f,y){function h(e){if(!y(e))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(t[0]),v=t[3],b=!c,A=1===a,x=3===a,T=4===a,E=2===a;function $(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={},N=[],O=x?"get":T||A?"set":"value";if(d?(f||A?C={get:o((function(){return v(this)}),i,"get"),set:function(e){t[4](this,e)}}:C[O]=v,f||o(C[O],i,E?"":O)):f||(C=Object.getOwnPropertyDescriptor(e,i)),!f&&!d){if((p=w[+l][i])&&7!=(p^a))throw Error("Decorating two elements with the same name ("+C[O].name+") is not supported yet");w[+l][i]=a<3?1:a}}for(var _=e,I=g.length-1;I>=0;I-=r?2:1){var z=S(g[I],"A decorator","be",!0),P=r?g[I-1]:void 0,W={},j={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");S(t,"An initializer","be",!0),s.push(t)}.bind(null,W)};if(b)p=z.call(P,_,j),W.v=1,S(p,"class decorators","return")&&(_=p);else if(j.static=l,j.private=d,p=j.access={has:d?y.bind():function(e){return i in e}},T||(p.get=d?E?function(e){return h(e),C.value}:$("get",0,h):function(e){return e[i]}),E||x||(p.set=d?$("set",0,h):function(e,t){e[i]=t}),_=z.call(P,A?{get:C.get,set:C.set}:C[O],j),W.v=1,A){if("object"==(0,n.A)(_)&&_)(p=S(_.get,"accessor.get"))&&(C.get=p),(p=S(_.set,"accessor.set"))&&(C.set=p),(p=S(_.init,"accessor.init"))&&N.unshift(p);else if(void 0!==_)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else S(_,(f?"field":"method")+" decorators","return")&&(f?N.unshift(_):C[O]=_)}return a<2&&c.push(k(N,l,1),k(s,l,0)),f||b||(d?A?c.splice(-1,0,$("get",l),$("set",l)):c.push(E?C[O]:S.call.bind(C[O])):m(e,i,C)),_}function T(e){return m(e,v,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[v]),u=b(null==u?null:u),y=[],h=function(e){e&&y.push(k(e))},g=function(t,n){for(var o=0;o<r.length;o++){var s=r[o],l=s[1],u=7&l;if((8&l)==t&&!u==n){var p=s[2],h=!!s[3],g=16&l;x(t?e:e.prototype,s,g,h?"#"+p:(0,a.A)(p),u,u<2?[]:t?f=f||[]:d=d||[],y,!!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(d),h(f),p=y,A||T(e),{e:p,get c(){var r=[];return A&&[T(e=x(e,[t],s,e.name,5,r)),k(r,1)]}}}},2559:(e,t,r)=>{"use strict";function n(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}r.d(t,{A:()=>n})},6902:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(7545);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}},2016:(e,t,r)=>{"use strict";function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>n})},829:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2559);function i(e,t){return e.get((0,n.A)(e,t))}},918:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2016);function i(e,t,r){(0,n.A)(e,t),t.set(e,r)}},6121:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2559);function i(e,t,r){return e.set((0,n.A)(e,t),r),r}},5536:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2559);function i(e,t,r){return r((0,n.A)(e,t))}},4635:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2016);function i(e,t){(0,n.A)(e,t),t.add(e)}},1369:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(7545);function i(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.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+""}},7545:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})}}]);
|
|
3
|
-
//# sourceMappingURL=raw-data-preview.a9da1ecb.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[3021,2052],{6860:(t,e,n)=>{n.r(e),n.d(e,{WorkbenchActionList:()=>E,WorkbenchActionListComponent:()=>L});var r,o=n(918),i=n(6121),a=n(829),c=n(2740),s=n(8769),u=n.n(s),l=n(4782),f=n(8581),h=n(1389),p=n(764),d=n(3430);let m,v,y,b,g;const A=(0,h.wrapBrick)("visual-builder.workbench-action"),{defineElement:w,property:k}=(0,l.createDecorators)();let E;var x=new WeakMap,S=new WeakMap;class j extends h.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,x,v(this)),(0,o.A)(this,S,(y(this),b(this))),g(this)}get appId(){return(0,a.A)(x,this)}set appId(t){(0,i.A)(x,this,t)}get menu(){return(0,a.A)(S,this)}set menu(t){(0,i.A)(S,this,t)}render(){return u().createElement(L,{appId:this.appId,menu:this.menu})}}let P;r=j,({e:[v,y,b,g],c:[E,m]}=(0,c.A)(r,[w("visual-builder.workbench-action-list",{styleTexts:[d.A]})],[[k(),1,"appId"],[k({attribute:!1}),1,"menu"]],0,void 0,h.ReactNextElement)),m();const I=new Map;function L(t){var e;let{appId:n,menu:r}=t;const o=(0,f.getHistory)(),[i,a]=(0,s.useState)(),[c,l]=(0,s.useState)(o.location);return(0,s.useEffect)((()=>{const t=o.listen((t=>{l(t)}));return t}),[o]),(0,s.useEffect)((()=>{P||(P=n),P!==n&&(I.clear(),P=n)}),[n]),(0,s.useEffect)((()=>{const{pathname:t,search:e}=c,{selectedKeys:n}=(0,p.LP)((null==r?void 0:r.menuItems)??[],t,e,"");a(Number(n[0]))}),[r,c]),u().createElement("div",{className:"workBenchActionList"},null==r||null===(e=r.menuItems)||void 0===e?void 0:e.map(((t,e)=>{if((t=>"default"===t.type||!t.type)(t)){let n=t.to;return i!==e&&I.has(e)&&(n=I.get(e)),u().createElement(A,{key:e,icon:t.icon,to:n,href:t.href,target:t.target,active:i===e,onClick:()=>(t=>{t.href||I.set(i,`${c.pathname}${c.search}`)})(t)})}})).filter(Boolean))}},3430:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(6758),o=n.n(r),i=n(935),a=n.n(i)()(o());a.push([t.id,'.workBenchActionList{display:flex;flex-direction:column;width:min-content;height:100%;background-color:#4297ff}:host-context(html[data-theme="dark-v2"]) .workBenchActionList,\n:host-context([data-override-theme="dark-v2"]) .workBenchActionList{background-color:#323237}',""]);const c=a.toString()},935:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),e.push(l))}},e}},6758:t=>{t.exports=function(t){return t[1]}},2740:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(7545),o=n(6902);function i(t,e,n){"symbol"==(0,r.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:n?n+" "+e:e})}catch(t){}return t}var a=n(1369);function c(t,e,n,c,s,u){var l,f,h,p,d,m,v,y=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,g=Object.create,A=[g(null),g(null)],w=e.length;function k(e,n,r){return function(o,i){n&&(i=o,o=t);for(var a=0;a<e.length;a++)i=e[a].apply(o,r?[i]:[]);return r?i:o}}function E(t,e,n,r){if("function"!=typeof t&&(r||void 0!==t))throw new TypeError(e+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return t}function x(t,e,n,o,a,c,s,u,h,p,d){function m(t){if(!d(t))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(e[0]),y=e[3],g=!s,w=1===a,x=3===a,S=4===a,j=2===a;function P(e,n,r){return function(o,i){return n&&(i=o,o=t),r&&r(o),I[e].call(o,i)}}if(!g){var I={},L=[],T=x?"get":S||w?"set":"value";if(h?(p||w?I={get:i((function(){return y(this)}),o,"get"),set:function(t){e[4](this,t)}}:I[T]=y,p||i(I[T],o,j?"":T)):p||(I=Object.getOwnPropertyDescriptor(t,o)),!p&&!h){if((f=A[+u][o])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+I[T].name+") is not supported yet");A[+u][o]=a<3?1:a}}for(var K=t,O=v.length-1;O>=0;O-=n?2:1){var _=E(v[O],"A decorator","be",!0),B=n?v[O-1]:void 0,$={},C={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:l,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");E(e,"An initializer","be",!0),c.push(e)}.bind(null,$)};if(g)f=_.call(B,K,C),$.v=1,E(f,"class decorators","return")&&(K=f);else if(C.static=u,C.private=h,f=C.access={has:h?d.bind():function(t){return o in t}},S||(f.get=h?j?function(t){return m(t),I.value}:P("get",0,m):function(t){return t[o]}),j||x||(f.set=h?P("set",0,m):function(t,e){t[o]=e}),K=_.call(B,w?{get:I.get,set:I.set}:I[T],C),$.v=1,w){if("object"==(0,r.A)(K)&&K)(f=E(K.get,"accessor.get"))&&(I.get=f),(f=E(K.set,"accessor.set"))&&(I.set=f),(f=E(K.init,"accessor.init"))&&L.unshift(f);else if(void 0!==K)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(K,(p?"field":"method")+" decorators","return")&&(p?L.unshift(K):I[T]=K)}return a<2&&s.push(k(L,u,1),k(c,u,0)),p||g||(h?w?s.splice(-1,0,P("get",u),P("set",u)):s.push(j?I[T]:E.call.bind(I[T])):b(t,o,I)),K}function S(t){return b(t,y,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[y]),l=g(null==l?null:l),d=[],m=function(t){t&&d.push(k(t))},v=function(e,r){for(var i=0;i<n.length;i++){var c=n[i],u=c[1],l=7&u;if((8&u)==e&&!l==r){var f=c[2],m=!!c[3],v=16&u;x(e?t:t.prototype,c,v,m?"#"+f:(0,a.A)(f),l,l<2?[]:e?p=p||[]:h=h||[],d,!!e,m,r,e&&m?function(e){return(0,o.A)(e)===t}:s)}}},v(8,0),v(0,0),v(8,1),v(0,1),m(h),m(p),f=d,w||S(t),{e:f,get c(){var n=[];return w&&[S(t=x(t,[e],c,t.name,5,n)),k(n,1)]}}}},2559:(t,e,n)=>{function r(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>r})},6902:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(7545);function o(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,r.A)(t):"null"));return t}},2016:(t,e,n)=>{function r(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>r})},829:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(2559);function o(t,e){return t.get((0,r.A)(t,e))}},918:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(2016);function o(t,e,n){(0,r.A)(t,e),e.set(t,n)}},6121:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(2559);function o(t,e,n){return t.set((0,r.A)(t,e),n),n}},1369:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(7545);function o(t){var e=function(t,e){if("object"!=(0,r.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.A)(e)?e:e+""}},7545:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>r})},764:(t,e,n)=>{n.d(e,{LP:()=>a});var r=n(1201),o=n(8581),i=n(1030);function a(t,e,n,s){const u=[],l=[],f=[];let h=0;return t&&t.forEach((t=>{if(t.key=""===s?`${h}`:`${s}.${h}`,function(t){return"group"===t.type}(t)||function(t,e){return Boolean("subMenu"===t.type||void 0)}(t)){const r=a(t.items,e,n,t.key);u.push(...r.selectedKeys),(r.selectedKeys.length||t.defaultExpanded)&&l.push(t.key),l.push(...r.openedKeys),f.push(...r.matchedKeys)}else if(function(t,e,n){if(!t.to)return!1;const a="object"==typeof t.to?t.to:(0,r.parsePath)(t.to),s=a.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");let u=!!(0,o.matchPath)(e,{path:s,exact:t.exact});if(u&&t.activeMatchSearch&&(u=c(n,a.search)),!u&&Array.isArray(t.activeIncludes))for(const a of t.activeIncludes){let t,s=!0;(0,i.isObject)(a)?(t=Array.isArray(a.path)?a.path:[a.path],s=a.exact):t=[a];for(const i of t){var l;let t;const a=i.includes("?");if(a&&(t=(0,r.parsePath)(i)),u=!!(0,o.matchPath)(e,{path:a?t.pathname:i,exact:s}),u&&null!==(l=t)&&void 0!==l&&l.search&&(u=c(n,t.search)),u)break}if(u)break}if(u&&Array.isArray(t.activeExcludes))for(const n of t.activeExcludes){let t,r=!0;(0,i.isObject)(n)?(t=Array.isArray(n.path)?n.path:[n.path],r=n.exact):t=[n];for(const n of t)if(u=!(0,o.matchPath)(e,{path:n,exact:r}),!u)break;if(!u)break}return u}(t,e,n)){u.push(String(t.key));const e=t.key.split(".");for(let t=0;t<e.length;t++)f.push(e.slice(0,t+1).join("."))}h+=1})),u.length&&""!==s&&l.push(s),{selectedKeys:u,openedKeys:l,matchedKeys:f}}function c(t,e){const n=new URLSearchParams(t),r=new URLSearchParams(e);for(const[t,e]of r.entries())if((n.get(t)??"")!==e)return!1;return!0}}}]);
|
|
2
|
-
//# sourceMappingURL=workbench-action-list.19d9ee9d.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see workbench-history-action.ef06b6ef.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[2080,4586,2052],{6156:(e,t,n)=>{n.d(t,{I:()=>i,K:()=>o,NS:()=>r});let o=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",i={en:{LOAD_MORE:"Load more",LOADING:"Loading",NO_DATA:"No data",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }} etc., a total of {{ count }} items",ADD:"Add node",EDIT:"Edit node",DELETE:"Delete node",IMPORT:"Batch import node",CLONE:"Clone node",APPEND_RELATION:"Append Relation",UPDATE_RELATION:"Update Relation",REMOVE_RELATION:"Remove Relation",ROLLBACK:"Rollback",ROLLBACK_ALL:"Rollback all operations",ADD_FULL:"Add {{ category }} ({{ nodes }})",EDIT_FULL:"Edit {{ nodeChanges }} of {{ category }} ({{ nodes }})",DELETE_FULL:"Delete {{ category }} ({{ nodes }})",IMPORT_FULL:"Batch Import {{ category }} ({{ nodes }})",CLONE_FULL:"Clone {{ category }} ({{ nodes }})",APPEND_RELATION_FULL:"Append the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",UPDATE_RELATION_FULL:"Update the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",REMOVE_RELATION_FULL:"Remove the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",ROLLBACK_FULL:"Rollback to [{{ rollbackAbstract }}]",ROLLBACK_ALL_FULL:"Rollback all operations",PROJECT:"Project",USER:"User Group",PERMISSION:"Permission",BRICK:"Brick",ROUTE:"Route",TEMPLATE:"Template",SNIPPET:"Snippet",I18N:"I18N",IMAGE:"Image",FUNCTION:"Function",MENU:"Menu",MENU_ITEM:"Menu item",WORKFLOW:"Workflow"},zh:{LOAD_MORE:"加载更多",LOADING:"加载中",NO_DATA:"没有数据",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }}等共{{ count }}项",ADD:"新增节点",EDIT:"编辑节点",DELETE:"删除节点",IMPORT:"批量导入节点",CLONE:"克隆节点",APPEND_RELATION:"添加关系",UPDATE_RELATION:"更新关系",REMOVE_RELATION:"移除关系",ROLLBACK:"回滚",ROLLBACK_ALL:"回滚全部操作",ADD_FULL:"新增{{ category }}({{ nodes }})",EDIT_FULL:"编辑{{ category }}({{ nodes }})的 {{ nodeChanges }}",DELETE_FULL:"删除{{ category }}({{ nodes }})",IMPORT_FULL:"批量导入{{ category }}({{ nodes }})",CLONE_FULL:"克隆{{ category }}({{ nodes }})",APPEND_RELATION_FULL:"添加{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",UPDATE_RELATION_FULL:"更新{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",REMOVE_RELATION_FULL:"移除{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",ROLLBACK_FULL:"回滚到【{{ rollbackAbstract }}】",ROLLBACK_ALL_FULL:"回滚全部操作",PROJECT:"项目",USER:"用户组",PERMISSION:"权限点",BRICK:"构件",ROUTE:"路由",TEMPLATE:"模版",SNIPPET:"片段",I18N:"国际化",IMAGE:"图片",FUNCTION:"函数",MENU:"菜单",MENU_ITEM:"菜单项",WORKFLOW:"工作流"}}},4754:(e,t,n)=>{n.r(t),n.d(t,{WorkbenchHistoryAction:()=>H,WorkbenchHistoryActionComponent:()=>ie});var o,r=n(4635),i=n(918),a=n(6902),l=n(5536),c=n(6121),s=n(829),d=n(2740),E=n(8769),u=n.n(E),L=n(4782),O=n(1389),A=n(8581),p=(n(6477),n(155)),N=n.n(p),b=n(1361),h=n(5502),f=n(6156),R=n(4107),I=n(8675);let m,v,_,T,g,y,S,P,U,D,$,C,k,K,M,w,F;(0,h.initializeReactI18n)(f.NS,f.I);const{defineElement:j,property:x,event:B}=(0,L.createDecorators)(),W=(0,O.wrapBrick)("eo-button"),z=(0,O.wrapBrick)("eo-link"),G=(0,O.wrapBrick)("eo-icon"),V=(0,O.wrapBrick)("eo-easyops-avatar"),Y=(0,O.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",beforeVisibleChange:"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,ne=new WeakMap,oe=new WeakMap;class re extends O.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,X),(0,i.A)(this,J,v(this)),(0,i.A)(this,q,(_(this),T(this))),(0,i.A)(this,Q,(g(this),y(this))),(0,i.A)(this,Z,(U(this),e=>{(0,l.A)(X,this,S).emit(e)})),(0,i.A)(this,ee,D(this)),(0,i.A)(this,te,(k(this),e=>{(0,l.A)(X,this,$).emit(e)})),(0,i.A)(this,ne,K(this)),(0,i.A)(this,oe,(F(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 u().createElement(ie,{appId:this.appId,projectId:this.projectId,onHistoryItemClick:(0,s.A)(Z,this),onRollback:(0,s.A)(te,this),onRollbackAll:(0,s.A)(oe,this)})}}function ie(e){const{appId:t,onHistoryItemClick:n,onRollback:o,onRollbackAll:r}=e,{t:i}=(0,h.useTranslation)(f.NS),[a,l]=(0,E.useState)(!1),[c,s]=(0,E.useState)(!0),[d,L]=(0,E.useState)(!1),[O,p]=(0,E.useState)([]),N=(0,E.useRef)(""),b=e=>{l(!0),(0,R.R)(t,{ts:N.current,limit:20}).then((t=>{p((n=>{const o=t.list.map((e=>({...e,translation:(0,I.B)(e)})));return e?o:n.concat(o)})),N.current=t.ts,L(t.list.length<20),s(t.list.length<20)})).catch((e=>{(0,A.handleHttpError)(e)})).finally((()=>{l(!1)}))};return u().createElement(Y,{placement:"bottom",trigger:"click",arrow:!0,arrowColor:"var(--color-fill-bg-container-4)",beforeVisibleChange:e=>{e.detail&&(s(!0),L(!1),p([]),N.current="",b(!0))}},u().createElement(W,{slot:"anchor",shape:"circle",className:"history-action",icon:{lib:"antd",icon:"history",theme:"outlined"}}),u().createElement("div",null,u().createElement("div",{className:"history-title"},"History"),u().createElement("div",{className:"history-list"},O.length?u().createElement(u().Fragment,null,O.map(((e,t)=>u().createElement(ae,{key:`${e.uniqueKey}-${e.ts}`,data:e,enableRollback:0!==t&&"rollback"!==e.action,current:0===t,onHistoryItemClick:n,onRollback:o}))),!c&&u().createElement("span",{className:"load-more-container"},u().createElement(z,{className:"load-more",disabled:a,onClick:()=>b()},i(f.K.LOAD_MORE))),d&&u().createElement("span",{className:"end-container"},"The End",u().createElement(G,{className:"rollback-all",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>r()}))):u().createElement("div",{className:"empty"},i(a?f.K.LOADING:f.K.NO_DATA))),u().createElement("slot",null)))}function ae(e){const{data:t,enableRollback:n,current:o,onHistoryItemClick:r,onRollback:i}=e,a=N()(Number(t.ts)/1e6),l=N().duration(a.diff(N()())),c=l.days()<=-1?a.format("YYYY-MM-DD HH:mm:ss"):l.humanize(!0,{ss:0,s:60,m:60,h:24});return u().createElement("div",{className:"item-container"},u().createElement("div",{className:"item-title"},u().createElement("div",{className:"title-left",onClick:()=>r({...t,enableRollback:n})},u().createElement("div",{className:"topic",title:t.translation.abstract},t.translation.abstract),o&&u().createElement("div",{className:"branch"},"(current)")),u().createElement("div",{className:"title-right"},n&&u().createElement(G,{className:"rollback",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>i(t)}))),u().createElement("div",{className:"item-info"},u().createElement(V,{className:"avatar",nameOrInstanceId:t.user,size:"xs"}),u().createElement("div",{className:"time"},c),u().createElement("div",{className:"operator"},t.user)))}o=re,({e:[v,_,T,g,y,S,P,U,D,$,C,k,K,M,w,F],c:[H,m]}=(0,d.A)(o,[j("visual-builder.workbench-history-action",{styleTexts:[b.A]})],[[x(),1,"appId"],[x(),1,"projectId"],[B({type:"history.item.click"}),1,"historyItemClickEvent",e=>(0,s.A)(Q,e),(e,t)=>(0,c.A)(Q,e,t)],[B({type:"rollback"}),1,"rollbackEvent",e=>(0,s.A)(ee,e),(e,t)=>(0,c.A)(ee,e,t)],[B({type:"rollback.all"}),1,"rollbackAllEvent",e=>(0,s.A)(ne,e),(e,t)=>(0,c.A)(ne,e,t)]],0,(e=>oe.has((0,a.A)(e))),O.ReactNextElement)),m()},8675:(e,t,n)=>{n.d(t,{B:()=>s});var o=n(6156),r=n(8799);const i={add:`${o.NS}:${o.K.ADD}`,edit:`${o.NS}:${o.K.EDIT}`,delete:`${o.NS}:${o.K.DELETE}`,batch_delete:`${o.NS}:${o.K.DELETE}`,import:`${o.NS}:${o.K.IMPORT}`,clone:`${o.NS}:${o.K.CLONE}`,append_relation:`${o.NS}:${o.K.APPEND_RELATION}`,update_relation:`${o.NS}:${o.K.UPDATE_RELATION}`,remove_relation:`${o.NS}:${o.K.REMOVE_RELATION}`,rollback:`${o.NS}:${o.K.ROLLBACK}`,rollback_all:`${o.NS}:${o.K.ROLLBACK_ALL}`},a={add:`${o.NS}:${o.K.ADD_FULL}`,edit:`${o.NS}:${o.K.EDIT_FULL}`,delete:`${o.NS}:${o.K.DELETE_FULL}`,batch_delete:`${o.NS}:${o.K.DELETE_FULL}`,import:`${o.NS}:${o.K.IMPORT_FULL}`,clone:`${o.NS}:${o.K.CLONE_FULL}`,append_relation:`${o.NS}:${o.K.APPEND_RELATION_FULL}`,update_relation:`${o.NS}:${o.K.UPDATE_RELATION_FULL}`,remove_relation:`${o.NS}:${o.K.REMOVE_RELATION_FULL}`,rollback:`${o.NS}:${o.K.ROLLBACK_FULL}`,rollback_all:`${o.NS}:${o.K.ROLLBACK_ALL_FULL}`},l={project:`${o.NS}:${o.K.PROJECT}`,userGroup:`${o.NS}:${o.K.USER}`,permission:`${o.NS}:${o.K.PERMISSION}`,brick:`${o.NS}:${o.K.BRICK}`,route:`${o.NS}:${o.K.ROUTE}`,template:`${o.NS}:${o.K.TEMPLATE}`,snippet:`${o.NS}:${o.K.SNIPPET}`,i18n:`${o.NS}:${o.K.I18N}`,image:`${o.NS}:${o.K.IMAGE}`,function:`${o.NS}:${o.K.FUNCTION}`,menu:`${o.NS}:${o.K.MENU}`,menuItem:`${o.NS}:${o.K.MENU_ITEM}`,workflow:`${o.NS}:${o.K.WORKFLOW}`},c={PROJECT_MICRO_APP:`${o.NS}:${o.K.PROJECT}`,"MICRO_APP_USER_GROUP@EASYOPS":`${o.NS}:${o.K.USER}`,MICRO_APP_RESOURCE_PERMISSION:`${o.NS}:${o.K.PERMISSION}`,STORYBOARD_BRICK:`${o.NS}:${o.K.BRICK}`,STORYBOARD_ROUTE:`${o.NS}:${o.K.ROUTE}`,STORYBOARD_TEMPLATE:`${o.NS}:${o.K.TEMPLATE}`,STORYBOARD_SNIPPET:`${o.NS}:${o.K.SNIPPET}`,STORYBOARD_I18N:`${o.NS}:${o.K.I18N}`,MICRO_APP_RESOURCE_IMAGE:`${o.NS}:${o.K.IMAGE}`,STORYBOARD_FUNCTION:`${o.NS}:${o.K.FUNCTION}`,MICRO_APP_RESOURCE_MENU:`${o.NS}:${o.K.MENU}`,MICRO_APP_RESOURCE_MENU_ITEM:`${o.NS}:${o.K.MENU_ITEM}`,"WORKFLOW_DEF@EASYOPS":`${o.NS}:${o.K.WORKFLOW}`};function s(e){var t,n,o,E,u,L,O,A,p,N,b,h;const f="rollback"!==e.action||e.rollBackIdInfo?e.action:"rollback_all",R=r.i18n.t(l[e.category]??e.category),I=r.i18n.t(i[f]??f),m=r.i18n.t(c[null===(t=e.abstract)||void 0===t?void 0:t.leftObjectId]??(null===(n=e.abstract)||void 0===n?void 0:n.leftObjectId)),v=r.i18n.t(c[null===(o=e.abstract)||void 0===o?void 0:o.rightObjectId]??(null===(E=e.abstract)||void 0===E?void 0:E.rightObjectId)),_=d(null===(u=e.abstract)||void 0===u?void 0:u.nodes,null===(L=e.abstract)||void 0===L?void 0:L.nodesCount),T=d(null===(O=e.abstract)||void 0===O?void 0:O.leftNodes,null===(A=e.abstract)||void 0===A?void 0:A.leftNodesCount),g=d(null===(p=e.abstract)||void 0===p?void 0:p.rightNodes,null===(N=e.abstract)||void 0===N?void 0:N.rightNodesCount),y="rollback"===f?s(e.rollBackIdInfo).abstract:null;return{category:R,action:I,leftObjectId:m,rightObjectId:v,nodes:_,leftNodes:T,rightNodes:g,abstract:r.i18n.t(a[f]??f,{category:R,nodes:_,leftNodes:T,rightNodes:g,nodeChanges:null===(b=e.abstract)||void 0===b||null===(b=b.nodeChanges)||void 0===b?void 0:b.join(", "),relationChanges:null===(h=e.abstract)||void 0===h||null===(h=h.relationChanges)||void 0===h?void 0:h.join(", "),leftObjectId:m,rightObjectId:v,rollbackAbstract:y}),rollbackAbstract:y}}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ";return r.i18n.t(`${o.NS}:${o.K.NODE}`,{nodes:e.join(n),context:t>e.length?"ellipsis":void 0,count:t})}},1361:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(6758),r=n.n(o),i=n(935),a=n.n(i)()(r());a.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=a.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(a[c]=!0)}for(var s=0;s<e.length;s++){var d=[].concat(e[s]);o&&a[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},6758:e=>{e.exports=function(e){return e[1]}},2740:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(7545),r=n(6902);function i(e,t,n){"symbol"==(0,o.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(1369);function l(e,t,n,l,c,s){var d,E,u,L,O,A,p,N=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,h=Object.create,f=[h(null),h(null)],R=t.length;function I(t,n,o){return function(r,i){n&&(i=r,r=e);for(var a=0;a<t.length;a++)i=t[a].apply(r,o?[i]:[]);return o?i:r}}function m(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 v(e,t,n,r,a,l,c,s,u,L,O){function A(e){if(!O(e))throw new TypeError("Attempted to access private element on non-instance")}var p=[].concat(t[0]),N=t[3],h=!c,R=1===a,v=3===a,_=4===a,T=2===a;function g(t,n,o){return function(r,i){return n&&(i=r,r=e),o&&o(r),y[t].call(r,i)}}if(!h){var y={},S=[],P=v?"get":_||R?"set":"value";if(u?(L||R?y={get:i((function(){return N(this)}),r,"get"),set:function(e){t[4](this,e)}}:y[P]=N,L||i(y[P],r,T?"":P)):L||(y=Object.getOwnPropertyDescriptor(e,r)),!L&&!u){if((E=f[+s][r])&&7!=(E^a))throw Error("Decorating two elements with the same name ("+y[P].name+") is not supported yet");f[+s][r]=a<3?1:a}}for(var U=e,D=p.length-1;D>=0;D-=n?2:1){var $=m(p[D],"A decorator","be",!0),C=n?p[D-1]:void 0,k={},K={kind:["field","accessor","method","getter","setter","class"][a],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(h)E=$.call(C,U,K),k.v=1,m(E,"class decorators","return")&&(U=E);else if(K.static=s,K.private=u,E=K.access={has:u?O.bind():function(e){return r in e}},_||(E.get=u?T?function(e){return A(e),y.value}:g("get",0,A):function(e){return e[r]}),T||v||(E.set=u?g("set",0,A):function(e,t){e[r]=t}),U=$.call(C,R?{get:y.get,set:y.set}:y[P],K),k.v=1,R){if("object"==(0,o.A)(U)&&U)(E=m(U.get,"accessor.get"))&&(y.get=E),(E=m(U.set,"accessor.set"))&&(y.set=E),(E=m(U.init,"accessor.init"))&&S.unshift(E);else if(void 0!==U)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else m(U,(L?"field":"method")+" decorators","return")&&(L?S.unshift(U):y[P]=U)}return a<2&&c.push(I(S,s,1),I(l,s,0)),L||h||(u?R?c.splice(-1,0,g("get",s),g("set",s)):c.push(T?y[P]:m.call.bind(y[P])):b(e,r,y)),U}function _(e){return b(e,N,{configurable:!0,enumerable:!0,value:d})}return void 0!==s&&(d=s[N]),d=h(null==d?null:d),O=[],A=function(e){e&&O.push(I(e))},p=function(t,o){for(var i=0;i<n.length;i++){var l=n[i],s=l[1],d=7&s;if((8&s)==t&&!d==o){var E=l[2],A=!!l[3],p=16&s;v(t?e:e.prototype,l,p,A?"#"+E:(0,a.A)(E),d,d<2?[]:t?L=L||[]:u=u||[],O,!!t,A,o,t&&A?function(t){return(0,r.A)(t)===e}:c)}}},p(8,0),p(0,0),p(8,1),p(0,1),A(u),A(L),E=O,R||_(e),{e:E,get c(){var n=[];return R&&[_(e=v(e,[t],l,e.name,5,n)),I(n,1)]}}}},2559:(e,t,n)=>{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})},6330:(e,t,n)=>{function o(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function l(e){o(a,r,i,l,c,"next",e)}function c(e){o(a,r,i,l,c,"throw",e)}l(void 0)}))}}n.d(t,{A:()=>r})},6902:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(7545);function r(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,o.A)(e):"null"));return e}},2016:(e,t,n)=>{function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>o})},829:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(2559);function r(e,t){return e.get((0,o.A)(e,t))}},918:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(2016);function r(e,t,n){(0,o.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(2559);function r(e,t,n){return e.set((0,o.A)(e,t),n),n}},5536:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(2559);function r(e,t,n){return n((0,o.A)(e,t))}},4635:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(2016);function r(e,t){(0,o.A)(e,t),t.add(e)}},4586:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(1369);function r(e,t,n){return(t=(0,o.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},9740:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(4586);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},1369:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(7545);function r(e){var t=function(e,t){if("object"!=(0,o.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=(0,o.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,o.A)(t)?t:t+""}},7545:(e,t,n)=>{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})},4107:(e,t,n)=>{n.d(t,{R:()=>a});var o=n(9740),r=n(6330),i=n(9422),a=function(){var e=(0,r.A)((function*(e,t,n){return(yield i.http.get("api/gateway/next_builder.workspace.GetChangeHistory/api/v1/next-builder/workspace/".concat(e,"/changes"),(0,o.A)((0,o.A)({},n),{},{params:t}))).data}));return function(t,n,o){return e.apply(this,arguments)}}()}}]);
|
|
3
|
-
//# sourceMappingURL=workbench-history-action.ef06b6ef.js.map
|
package/dist/index.2698f81b.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t,r,n,a,o,l,i,c,d,s,h,f,u,p,b,m,v,g,P,x,y,w,k={8159:(e,t,r)=>{var n={"./workbench-pane":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(7997)]).then((()=>()=>r(3147))),"./workbench-action":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(5425)]).then((()=>()=>r(1959))),"./workbench-sidebar":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(8137)]).then((()=>()=>r(7775))),"./workbench-action-list":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(1030),r.e(8581),r.e(1201),r.e(3021)]).then((()=>()=>r(6860))),"./workbench-tree":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(1030),r.e(6477),r.e(8581),r.e(2980),r.e(5299)]).then((()=>()=>r(577))),"./workbench-history-action":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(6477),r.e(8581),r.e(8799),r.e(155),r.e(9422),r.e(5502),r.e(2080)]).then((()=>()=>r(4754))),"./contract-select":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(1030),r.e(6477),r.e(8799),r.e(9422),r.e(4047),r.e(5502),r.e(3046)]).then((()=>()=>r(4680))),"./page-arch-node":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(6477),r.e(4892)]).then((()=>()=>r(5014))),"./generate-snippets-context-menu":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(279),r.e(6477),r.e(5502),r.e(8689)]).then((()=>()=>r(3199))),"./chat-conversation":()=>Promise.all([r.e(5659),r.e(8769),r.e(4782),r.e(1389),r.e(6477),r.e(3555)]).then((()=>()=>r(4705))),"./chat-preview":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(6477),r.e(8581),r.e(1732),r.e(5402)]).then((()=>()=>r(44))),"./check-editor-by-name":()=>Promise.all([r.e(279),r.e(8581),r.e(5055)]).then((()=>()=>r(7950))),"./batch-update-raw-data-generated-view":()=>Promise.all([r.e(279),r.e(9422),r.e(4905)]).then((()=>()=>r(9548))),"./get-data-deps":()=>Promise.all([r.e(279),r.e(877),r.e(281)]).then((()=>()=>r(2651))),"./get-dependency-tree":()=>Promise.all([r.e(1030),r.e(279),r.e(877),r.e(4426)]).then((()=>()=>r(6573))),"./inject-chat-preview-agent":()=>Promise.all([r.e(1030),r.e(279),r.e(1040)]).then((()=>()=>r(4839))),"./parse-path":()=>Promise.all([r.e(1030),r.e(279),r.e(6620)]).then((()=>()=>r(3227))),"./pre-generated-table-view":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(6477),r.e(5689)]).then((()=>()=>r(5111))),"./pre-generated-container":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(6477),r.e(4047),r.e(8356)]).then((()=>()=>r(8366))),"./pre-generated-preview":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(279),r.e(6477),r.e(8581),r.e(1732),r.e(105)]).then((()=>()=>r(9191))),"./property-editor":()=>Promise.all([r.e(7507),r.e(5814),r.e(8769),r.e(4782),r.e(1389),r.e(1030),r.e(6477),r.e(8581),r.e(1732),r.e(9435),r.e(4047),r.e(9080),r.e(5238)]).then((()=>()=>r(2080))),"./raw-data-preview":()=>Promise.all([r.e(8769),r.e(4782),r.e(1389),r.e(1030),r.e(6477),r.e(8581),r.e(1732),r.e(1279)]).then((()=>()=>r(7797)))},a=(e,t)=>(r.R=t,t=r.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),r.R=void 0,t),o=(e,t)=>{if(r.S){var n="default",a=r.S[n];if(a&&a!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return r.S[n]=e,r.I(n,t)}};r.d(t,{get:()=>a,init:()=>o})}},j={};function _(e){var t=j[e];if(void 0!==t)return t.exports;var r=j[e]={id:e,loaded:!1,exports:{}};return k[e].call(r.exports,r,r.exports,_),r.loaded=!0,r.exports}_.m=k,_.c=j,_.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return _.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,_.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);_.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,_.d(a,o),a},_.d=(e,t)=>{for(var r in t)_.o(t,r)&&!_.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},_.f={},_.e=e=>Promise.all(Object.keys(_.f).reduce(((t,r)=>(_.f[r](e,t),t)),[])),_.u=e=>"chunks/"+({105:"pre-generated-preview",281:"get-data-deps",1040:"inject-chat-preview-agent",1279:"raw-data-preview",2080:"workbench-history-action",3021:"workbench-action-list",3046:"contract-select",3555:"chat-conversation",4426:"get-dependency-tree",4892:"page-arch-node",4905:"batch-update-raw-data-generated-view",5055:"check-editor-by-name",5238:"property-editor",5299:"workbench-tree",5402:"chat-preview",5425:"workbench-action",5689:"pre-generated-table-view",6620:"parse-path",7997:"workbench-pane",8137:"workbench-sidebar",8356:"pre-generated-container",8689:"generate-snippets-context-menu"}[e]||e)+"."+{105:"f09452bf",114:"c25646f6",155:"1ebf01ec",279:"be3de74f",281:"d278d3ae",718:"ce596d7d",726:"e407e050",790:"733521cc",871:"f5ada237",877:"135dbf61",1030:"7081f53a",1040:"a410cac2",1045:"26b1cdc0",1122:"1fbe95be",1201:"8950a28b",1204:"e10067e0",1279:"a9da1ecb",1389:"335daf5b",1732:"469e9cc0",1760:"2a46b24a",1889:"e1d839b8",1940:"fa7d69c6",2052:"f1624476",2080:"ef06b6ef",2201:"0a5797e4",2277:"e16c7cbf",2980:"86aa3c5b",3021:"19d9ee9d",3046:"39759636",3144:"0096b9c3",3171:"fb82432a",3555:"438df1f6",3680:"a3dc1198",3933:"67a1dc9c",4041:"468489fa",4047:"3568e66a",4285:"4d6d9649",4426:"1441e3c8",4586:"6b85a822",4658:"e9f4df8f",4672:"7ebaa373",4782:"8f5581d6",4837:"bc21d4bb",4892:"fa33f131",4905:"d729bc1b",5055:"66abd437",5238:"ebc63508",5250:"f22684c9",5299:"c44a96ab",5384:"7fbe2a84",5399:"be09f124",5402:"0ee9b1ac",5425:"fecc0cc7",5502:"4cbb4b84",5552:"07444449",5659:"9000e441",5689:"ea897a30",5814:"71e5fb63",6314:"fb0eb5d4",6477:"7c5762c4",6519:"ddef7177",6620:"e260969b",6773:"9ed5373b",7218:"163468a5",7304:"12ca6e2d",7434:"4ddb3aab",7507:"c0a5c220",7721:"6dd8673d",7733:"4fc7b710",7997:"76c5f450",8097:"f37c5904",8137:"9ff63381",8356:"fd7db719",8581:"d880f426",8689:"63e8786f",8769:"09488b9c",8799:"cf82abdb",8897:"c40a5de5",8989:"74e3337d",9080:"b97eaf67",9422:"a1ba863d",9435:"ddacadb1",9515:"80c4b472",9559:"34ed0b2d",9755:"12af1881",9844:"4328557b"}[e]+".js",_.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),_.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@next-bricks/visual-builder:",_.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"),d=0;d<c.length;d++){var s=c[d];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==n+a){l=s;break}}l||(i=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,_.nc&&l.setAttribute("nonce",_.nc),l.setAttribute("data-webpack",n+a),l.src=e),r[e]=[t];var h=(t,n)=>{l.onerror=l.onload=null,clearTimeout(f);var a=r[e];if(delete r[e],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(n))),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=h.bind(null,l.onerror),l.onload=h.bind(null,l.onload),i&&document.head.appendChild(l)}},_.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{_.S={};var e={},t={};_.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];_.o(_.S,r)||(_.S[r]={});var o=_.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.25.3",(()=>_.e(6773).then((()=>()=>_(6773))))),i("@easyops-cn/brick-next-pipes","0.6.0",(()=>Promise.all([_.e(3680),_.e(1030),_.e(155),_.e(1204)]).then((()=>()=>_(3680))))),i("@next-core/cook","2.4.8",(()=>Promise.all([_.e(1122),_.e(1760),_.e(4586)]).then((()=>()=>_(1122))))),i("@next-core/element","1.2.11",(()=>_.e(1045).then((()=>()=>_(1045))))),i("@next-core/http","1.2.6",(()=>_.e(8989).then((()=>()=>_(8989))))),i("@next-core/i18n/react","1.0.62",(()=>Promise.all([_.e(8799),_.e(8097)]).then((()=>()=>_(8097))))),i("@next-core/i18n","1.0.62",(()=>Promise.all([_.e(279),_.e(8799),_.e(9755),_.e(5552)]).then((()=>()=>_(5552))))),i("@next-core/inject","1.0.41",(()=>Promise.all([_.e(1030),_.e(4285),_.e(2277)]).then((()=>()=>_(2277))))),i("@next-core/loader","1.6.7",(()=>_.e(5399).then((()=>()=>_(5399))))),i("@next-core/pipes","2.0.24",(()=>_.e(6519).then((()=>()=>_(6519))))),i("@next-core/react-element","1.0.30",(()=>Promise.all([_.e(8769),_.e(4782),_.e(9435),_.e(114)]).then((()=>()=>_(114))))),i("@next-core/react-runtime","1.6.34",(()=>Promise.all([_.e(8769),_.e(1389),_.e(1030),_.e(8581),_.e(4837)]).then((()=>()=>_(4837))))),i("@next-core/runtime","1.54.11",(()=>Promise.all([_.e(7507),_.e(718),_.e(1030),_.e(279),_.e(155),_.e(9422),_.e(877),_.e(8897),_.e(4672)]).then((()=>()=>_(718))))),i("@next-core/supply","2.1.20",(()=>Promise.all([_.e(1030),_.e(155),_.e(4285),_.e(9559)]).then((()=>()=>_(9559))))),i("@next-core/theme","1.5.4",(()=>Promise.all([_.e(1889),_.e(2052)]).then((()=>()=>_(1889))))),i("@next-core/utils/general","1.7.20",(()=>_.e(871).then((()=>()=>_(871))))),i("@next-core/utils/storyboard","1.7.20",(()=>Promise.all([_.e(279),_.e(8897),_.e(3933)]).then((()=>()=>_(3933))))),i("history","4.10.1",(()=>_.e(5384).then((()=>()=>_(5384))))),i("i18next-browser-languagedetector","7.2.1",(()=>_.e(726).then((()=>()=>_(726))))),i("i18next","22.5.1",(()=>_.e(7304).then((()=>()=>_(7304))))),i("js-yaml","3.14.1",(()=>_.e(9515).then((()=>()=>_(9515))))),i("lodash","4.17.21",(()=>_.e(5250).then((()=>()=>_(5250))))),i("moment/locale/zh-cn.js","2.30.1",(()=>Promise.all([_.e(7721),_.e(9844)]).then((()=>()=>_(1329))))),i("moment","2.30.1",(()=>Promise.all([_.e(7721),_.e(9844)]).then((()=>()=>_(9420))))),i("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([_.e(3144),_.e(8769)]).then((()=>()=>_(3144))))),i("react-i18next","12.3.1",(()=>Promise.all([_.e(7434),_.e(8769)]).then((()=>()=>_(7434))))),i("react","0.0.0-experimental-ee8509801-20230117",(()=>_.e(4041).then((()=>()=>_(4041)))))),e[r]=c.length?Promise.all(c).then((()=>e[r]=1)):1}}})(),(()=>{var e;_.g.importScripts&&(e=_.g.location+"");var t=_.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),_.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 d,s,h=l<e.length?(typeof e[l])[0]:"";if(o>=t.length||"o"==(s=(typeof(d=t[o]))[0]))return!c||("u"==h?l>r&&!n:""==h!=n);if("u"==s){if(!c||"u"!=h)return!1}else if(c)if(h==s)if(l<=r){if(d!=e[l])return!1}else{if(n?d>e[l]:d<e[l])return!1;d!=e[l]&&(c=!1)}else if("s"!=h&&"n"!=h){if(n||l<=r)return!1;c=!1,l--}else{if(l<=r||s<h!=n)return!1;c=!1}else"s"!=h&&"n"!=h&&(c=!1,l--)}}var f=[],u=f.pop.bind(f);for(o=1;o<e.length;o++){var p=e[o];f.push(1==p?u()|u():2==p?u()&u():p?i(p,t):!u())}return!!u()},c=(e,t)=>{var r=e[t];return Object.keys(r).reduce(((e,t)=>!e||!r[e].loaded&&o(e,t)?t:e),0)},d=(e,t,r,n)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+l(n)+")",s=(e,t,r,n)=>{var a=c(e,r);return p(e[r][a])},h=(e,t,r,n)=>{var a=c(e,r);return i(n,a)||u(d(e,r,a,n)),p(e[r][a])},f=(e,t,r)=>{var n=e[t];return(t=Object.keys(n).reduce(((e,t)=>!i(r,t)||e&&!o(e,t)?e:t),0))&&n[t]},u=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},p=e=>(e.loaded=1,e.get()),m=(b=e=>function(t,r,n,a){var o=_.I(t);return o&&o.then?o.then(e.bind(e,t,_.S[t],r,n,a)):e(t,_.S[t],r,n,a)})(((e,t,r,n)=>t&&_.o(t,r)?s(t,0,r):n())),v=b(((e,t,r,n,a)=>t&&_.o(t,r)?h(t,0,r,n):a())),g=b(((e,t,r,n,a)=>{var o=t&&_.o(t,r)&&f(t,r,n);return o?p(o):a()})),P={},x={1030:()=>v("default","lodash",[1,4,17,21],(()=>_.e(5250).then((()=>()=>_(5250))))),155:()=>v("default","moment",[1,2,29,4],(()=>Promise.all([_.e(7721),_.e(9844)]).then((()=>()=>_(9420))))),1204:()=>v("default","js-yaml",[1,3,14,0],(()=>_.e(9515).then((()=>()=>_(9515))))),1760:()=>v("default","@babel/parser",[1,7,24,7],(()=>_.e(6773).then((()=>()=>_(6773))))),8799:()=>m("default","@next-core/i18n",(()=>Promise.all([_.e(279),_.e(9755),_.e(3171)]).then((()=>()=>_(5552))))),7825:()=>v("default","react-i18next",[1,12,3,1],(()=>Promise.all([_.e(7434),_.e(8769)]).then((()=>()=>_(7434))))),279:()=>v("default","@next-core/utils/general",[1,1,7,20],(()=>_.e(871).then((()=>()=>_(871))))),2350:()=>v("default","i18next",[1,22,5,1],(()=>_.e(7304).then((()=>()=>_(7304))))),7072:()=>v("default","i18next-browser-languagedetector",[1,7,2,1],(()=>_.e(726).then((()=>()=>_(726))))),4285:()=>v("default","@next-core/pipes",[1,2,0,24],(()=>_.e(6519).then((()=>()=>_(6519))))),161:()=>v("default","@easyops-cn/brick-next-pipes",[2,0,6,0],(()=>Promise.all([_.e(3680),_.e(1030),_.e(155),_.e(1204)]).then((()=>()=>_(3680))))),8769:()=>g("default","react",[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>_.e(4041).then((()=>()=>_(4041))))),4782:()=>g("default","@next-core/element",[1,1,2,11],(()=>_.e(1045).then((()=>()=>_(1045))))),9435:()=>g("default","react-dom",[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>_.e(3144).then((()=>()=>_(3144))))),1389:()=>g("default","@next-core/react-element",[1,1,0,30],(()=>Promise.all([_.e(4782),_.e(9435),_.e(7733)]).then((()=>()=>_(114))))),8581:()=>v("default","@next-core/runtime",[1,1,54,11],(()=>Promise.all([_.e(7507),_.e(718),_.e(1030),_.e(279),_.e(155),_.e(9422),_.e(877),_.e(8897),_.e(4672)]).then((()=>()=>_(718))))),9422:()=>v("default","@next-core/http",[1,1,2,6],(()=>_.e(8989).then((()=>()=>_(8989))))),877:()=>v("default","@next-core/utils/storyboard",[1,1,7,20],(()=>Promise.all([_.e(8897),_.e(6314)]).then((()=>()=>_(3933))))),8897:()=>v("default","@next-core/cook",[1,2,4,8],(()=>Promise.all([_.e(1122),_.e(1760),_.e(4586)]).then((()=>()=>_(1122))))),597:()=>v("default","moment/locale/zh-cn.js",[1,2,29,4],(()=>Promise.all([_.e(7721),_.e(9844)]).then((()=>()=>_(1329))))),1680:()=>v("default","@next-core/supply",[1,2,1,20],(()=>Promise.all([_.e(4285),_.e(1940)]).then((()=>()=>_(9559))))),2890:()=>v("default","history",[1,4,10,1],(()=>_.e(5384).then((()=>()=>_(5384))))),7318:()=>v("default","@next-core/i18n",[1,1,0,62],(()=>Promise.all([_.e(8799),_.e(9755),_.e(790)]).then((()=>()=>_(5552))))),8965:()=>v("default","@next-core/inject",[1,1,0,41],(()=>Promise.all([_.e(4285),_.e(4658)]).then((()=>()=>_(2277))))),9424:()=>v("default","@next-core/loader",[1,1,6,7],(()=>_.e(5399).then((()=>()=>_(5399))))),1201:()=>v("default","history",[1,4,7,11],(()=>_.e(5384).then((()=>()=>_(5384))))),6477:()=>v("default","@next-core/theme",[1,1,5,4],(()=>_.e(1889).then((()=>()=>_(1889))))),5502:()=>m("default","@next-core/i18n/react",(()=>Promise.all([_.e(8799),_.e(8097)]).then((()=>()=>_(8097))))),4047:()=>g("default","@next-core/react-runtime",[1,1,6,34],(()=>Promise.all([_.e(1030),_.e(8581),_.e(7218)]).then((()=>()=>_(4837))))),1732:()=>m("default","js-yaml",(()=>_.e(9515).then((()=>()=>_(9515))))),1431:()=>m("default","@next-core/cook",(()=>Promise.all([_.e(1122),_.e(1760)]).then((()=>()=>_(1122)))))},y={155:[155],279:[279],877:[877],1030:[1030],1201:[1201],1204:[1204],1389:[1389],1732:[1732],1760:[1760],4047:[4047],4285:[4285],4672:[597,1680,2890,7318,8965,9424],4782:[4782],5502:[5502],6477:[6477],6519:[161],8097:[7825],8581:[8581],8769:[8769],8799:[8799],8897:[8897],9080:[1431],9422:[9422],9435:[9435],9755:[2350,7072]},w={},_.f.consumes=(e,t)=>{_.o(y,e)&&y[e].forEach((e=>{if(_.o(P,e))return t.push(P[e]);if(!w[e]){var r=t=>{P[e]=0,_.m[e]=r=>{delete _.c[e],r.exports=t()}};w[e]=!0;var n=t=>{delete P[e],_.m[e]=r=>{throw delete _.c[e],t}};try{var a=x[e]();a.then?t.push(P[e]=a.then(r).catch(n)):r(a)}catch(e){n(e)}}}))},(()=>{var e={7994:0};_.f.j=(t,r)=>{var n=_.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(1(20[14]|030|389|55|732|760)|4(047|285|672|782)|8(7(69|7|99)|581|897)|9(422|435|755)|279|5502|6477)$/.test(t))e[t]=0;else{var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var o=_.p+_.u(t),l=new Error;_.l(o,(r=>{if(_.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)_.o(l,n)&&(_.m[n]=l[n]);i&&i(_)}for(t&&t(r);c<o.length;c++)a=o[c],_.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))})(),_.nc=void 0;var O=_(8159);window["bricks/visual-builder"]=O})();
|
|
2
|
-
//# sourceMappingURL=index.2698f81b.js.map
|