@next-bricks/visual-builder 1.37.4 → 1.38.0
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 +27 -26
- package/dist/chunks/{1889.c21de868.js → 1889.e5238f90.js} +2 -2
- package/dist/chunks/1889.e5238f90.js.map +1 -0
- package/dist/chunks/220.e0f746d5.js +2 -0
- package/dist/chunks/220.e0f746d5.js.map +1 -0
- package/dist/chunks/2201.3d4f3271.js +2 -0
- package/dist/chunks/{2201.21df7990.js.map → 2201.3d4f3271.js.map} +1 -1
- package/dist/chunks/7085.81897113.js +3 -0
- package/dist/chunks/{7085.593a28a6.js.map → 7085.81897113.js.map} +1 -1
- package/dist/chunks/chat-conversation.2429847e.js +3 -0
- package/dist/chunks/{chat-conversation.ede87265.js.map → chat-conversation.2429847e.js.map} +1 -1
- package/dist/chunks/chat-preview.18dbd7b9.js +3 -0
- package/dist/chunks/{chat-preview.ffd99bae.js.map → chat-preview.18dbd7b9.js.map} +1 -1
- package/dist/chunks/contract-select.aebbe874.js +3 -0
- package/dist/chunks/{contract-select.21ef3558.js.map → contract-select.aebbe874.js.map} +1 -1
- package/dist/chunks/generate-snippets-context-menu.d59571b6.js +2 -0
- package/dist/chunks/{generate-snippets-context-menu.19b2db8f.js.map → generate-snippets-context-menu.d59571b6.js.map} +1 -1
- package/dist/chunks/get-config-by-data-for-ai.9a56aa11.js +3 -0
- package/dist/chunks/get-config-by-data-for-ai.9a56aa11.js.map +1 -0
- package/dist/chunks/main.50ff22fd.js +2 -0
- package/dist/chunks/main.50ff22fd.js.map +1 -0
- package/dist/chunks/page-arch-node.54cda8e0.js +3 -0
- package/dist/chunks/{page-arch-node.6b2ea1fe.js.map → page-arch-node.54cda8e0.js.map} +1 -1
- package/dist/chunks/pre-generated-config-preview.77f2caaf.js +2 -0
- package/dist/chunks/{pre-generated-config-preview.dccb8a89.js.map → pre-generated-config-preview.77f2caaf.js.map} +1 -1
- package/dist/chunks/pre-generated-config.5ea466e4.js +2 -0
- package/dist/chunks/pre-generated-config.5ea466e4.js.map +1 -0
- package/dist/chunks/pre-generated-container.886b45a6.js +2 -0
- package/dist/chunks/pre-generated-container.886b45a6.js.map +1 -0
- package/dist/chunks/pre-generated-preview.679ccfb9.js +3 -0
- package/dist/chunks/{pre-generated-preview.2300448f.js.map → pre-generated-preview.679ccfb9.js.map} +1 -1
- package/dist/chunks/pre-generated-table-view.61080b88.js +2 -0
- package/dist/chunks/{pre-generated-table-view.5780ee3e.js.map → pre-generated-table-view.61080b88.js.map} +1 -1
- package/dist/chunks/raw-data-preview.09ee31ed.js +3 -0
- package/dist/chunks/raw-data-preview.09ee31ed.js.map +1 -0
- package/dist/chunks/raw-metric-preview.14336dee.js +3 -0
- package/dist/chunks/raw-metric-preview.14336dee.js.map +1 -0
- package/dist/chunks/workbench-action-list.2bb5fd96.js +2 -0
- package/dist/chunks/{workbench-action-list.af49c182.js.map → workbench-action-list.2bb5fd96.js.map} +1 -1
- package/dist/chunks/workbench-action.d437c289.js +3 -0
- package/dist/chunks/{workbench-action.8c7d1148.js.map → workbench-action.d437c289.js.map} +1 -1
- package/dist/chunks/workbench-history-action.9676bc4c.js +3 -0
- package/dist/chunks/{workbench-history-action.07fe5cc5.js.map → workbench-history-action.9676bc4c.js.map} +1 -1
- package/dist/chunks/workbench-pane.b0663c72.js +3 -0
- package/dist/chunks/{workbench-pane.c9d876e0.js.map → workbench-pane.b0663c72.js.map} +1 -1
- package/dist/chunks/workbench-sidebar.4f8979af.js +2 -0
- package/dist/chunks/{workbench-sidebar.9e1ea9f1.js.map → workbench-sidebar.4f8979af.js.map} +1 -1
- package/dist/chunks/workbench-tree.ee9e13e1.js +3 -0
- package/dist/chunks/workbench-tree.ee9e13e1.js.LICENSE.txt +5 -0
- package/dist/chunks/{workbench-tree.ce12c809.js.map → workbench-tree.ee9e13e1.js.map} +1 -1
- package/dist/examples.json +3 -6
- package/dist/index.f068c5ae.js +2 -0
- package/dist/index.f068c5ae.js.map +1 -0
- package/dist/manifest.json +164 -126
- package/dist/types.json +1736 -1335
- package/dist-types/bootstrap.d.ts +1 -0
- package/dist-types/data-providers/get-config-by-data-for-ai.d.ts +13 -0
- package/dist-types/data-providers/get-raw-metric-system-prompts.d.ts +1 -0
- package/dist-types/pre-generated-config/convertToBrickConf.d.ts +2 -2
- package/dist-types/pre-generated-config/index.d.ts +49 -6
- package/dist-types/raw-data-preview/index.d.ts +2 -2
- package/dist-types/raw-metric-preview/constants.d.ts +1 -0
- package/dist-types/raw-metric-preview/convert.d.ts +6 -0
- package/dist-types/raw-metric-preview/generateMetricCandidates.d.ts +8 -0
- package/dist-types/raw-metric-preview/index.d.ts +58 -0
- package/dist-types/raw-metric-preview/raw-metric-interfaces.d.ts +16 -0
- package/package.json +2 -2
- package/dist/chunks/1889.c21de868.js.map +0 -1
- package/dist/chunks/2052.f1624476.js +0 -2
- package/dist/chunks/2052.f1624476.js.map +0 -1
- package/dist/chunks/2201.21df7990.js +0 -2
- package/dist/chunks/2464.3e4124ec.js +0 -2
- package/dist/chunks/2464.3e4124ec.js.map +0 -1
- package/dist/chunks/7085.593a28a6.js +0 -3
- package/dist/chunks/chat-conversation.ede87265.js +0 -3
- package/dist/chunks/chat-preview.ffd99bae.js +0 -3
- package/dist/chunks/contract-select.21ef3558.js +0 -3
- package/dist/chunks/generate-snippets-context-menu.19b2db8f.js +0 -2
- package/dist/chunks/get-config-by-data-for-ai.846e0776.js +0 -3
- package/dist/chunks/get-config-by-data-for-ai.846e0776.js.map +0 -1
- package/dist/chunks/main.fc66b3d7.js +0 -2
- package/dist/chunks/main.fc66b3d7.js.map +0 -1
- package/dist/chunks/page-arch-node.6b2ea1fe.js +0 -3
- package/dist/chunks/pre-generated-config-preview.dccb8a89.js +0 -2
- package/dist/chunks/pre-generated-config.ab886943.js +0 -2
- package/dist/chunks/pre-generated-config.ab886943.js.map +0 -1
- package/dist/chunks/pre-generated-container.7a8711cd.js +0 -2
- package/dist/chunks/pre-generated-container.7a8711cd.js.map +0 -1
- package/dist/chunks/pre-generated-preview.2300448f.js +0 -3
- package/dist/chunks/pre-generated-table-view.5780ee3e.js +0 -2
- package/dist/chunks/raw-data-preview.7b191fed.js +0 -3
- package/dist/chunks/raw-data-preview.7b191fed.js.map +0 -1
- package/dist/chunks/workbench-action-list.af49c182.js +0 -2
- package/dist/chunks/workbench-action.8c7d1148.js +0 -3
- package/dist/chunks/workbench-history-action.07fe5cc5.js +0 -3
- package/dist/chunks/workbench-pane.c9d876e0.js +0 -3
- package/dist/chunks/workbench-sidebar.9e1ea9f1.js +0 -2
- package/dist/chunks/workbench-tree.ce12c809.js +0 -3
- package/dist/index.43083b10.js +0 -2
- package/dist/index.43083b10.js.map +0 -1
- package/docs/pre-generated-config.md +0 -3512
- /package/dist/chunks/{7085.593a28a6.js.LICENSE.txt → 7085.81897113.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-conversation.ede87265.js.LICENSE.txt → chat-conversation.2429847e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-preview.ffd99bae.js.LICENSE.txt → chat-preview.18dbd7b9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{contract-select.21ef3558.js.LICENSE.txt → contract-select.aebbe874.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{get-config-by-data-for-ai.846e0776.js.LICENSE.txt → get-config-by-data-for-ai.9a56aa11.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{page-arch-node.6b2ea1fe.js.LICENSE.txt → page-arch-node.54cda8e0.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{pre-generated-preview.2300448f.js.LICENSE.txt → pre-generated-preview.679ccfb9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{raw-data-preview.7b191fed.js.LICENSE.txt → raw-data-preview.09ee31ed.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-action.8c7d1148.js.LICENSE.txt → raw-metric-preview.14336dee.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-pane.c9d876e0.js.LICENSE.txt → workbench-action.d437c289.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.07fe5cc5.js.LICENSE.txt → workbench-history-action.9676bc4c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-tree.ce12c809.js.LICENSE.txt → workbench-pane.b0663c72.js.LICENSE.txt} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see chat-conversation.ede87265.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[2052,3555],{7035:(e,t,n)=>{"use strict";n.d(t,{V:()=>l});var r=n(8769),o=n.n(r),a=n(3373),s=n.n(a),i=n(7384);const c=(0,n(9006).wrapBrick)("eo-avatar");function l(e){let{message:t}=e;const n=(0,r.useMemo)((()=>{const e=[];if("assistant"===t.role){const n=/(?:^|\n)```(easy_cmd_\S+)\n([\s\S]*?)\n```(?:$|\n)/gm;let r,o=0;for(;r=n.exec(t.content);){const[a,s,i]=r,c=r.index,l=t.content.slice(o,c).trim();l.length>0&&e.push({type:"markdown",content:l}),e.push({type:"command",command:s,content:i.trim(),raw:a}),o=n.lastIndex}const a=t.content.slice(o).trim();a.length>0&&e.push({type:"markdown",content:a})}else e.push({type:"plain",content:t.content});return e}),[t.content,t.role]),a=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=a.current;e&&setTimeout((()=>{const n=e.parentElement.querySelectorAll(".texting");for(const e of n)e.classList.remove("texting");if(!t.partial)return;let r=e;for(;r;){const e=r.lastChild;if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE||"DETAILS"===(null==e?void 0:e.tagName)&&!e.open){var o;if((null==e?void 0:e.nodeType)!==Node.TEXT_NODE||0!==e.textContent.trim().length||(null===(o=e.previousSibling)||void 0===o?void 0:o.nodeType)!==Node.ELEMENT_NODE)break;r=e.previousSibling}else r=e}r.classList.add("texting")}),1)}),[t.partial,t.content]),o().createElement("div",{className:s()("message",{failed:t.failed})},o().createElement("div",{className:"avatar"},o().createElement(c,{icon:{lib:"easyops",icon:"assistant"===t.role?"robot":"account"},size:"small",className:`role-${t.role}`})),o().createElement("div",{className:"main"},o().createElement("div",{className:"label"},"assistant"===t.role?"Assistant":"You"),o().createElement("div",{className:"content",ref:a},n.map(((e,t)=>o().createElement(u,{key:t,chunk:e}))))))}function u(e){let{chunk:t}=e;return o().createElement(o().Fragment,null,"markdown"===t.type?o().createElement("div",{className:"markdown"},o().createElement(i.N,{content:t.content})):"command"===t.type?o().createElement(o().Fragment,null,o().createElement("details",{className:"command"},o().createElement("summary",null,"```",t.command),o().createElement("pre",null,o().createElement("code",null,t.content)))):o().createElement("div",{className:"plain"},t.content))}},4705:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ChatConversation:()=>_,ChatConversationComponent:()=>$});var r,o=n(4635),a=n(918),s=n(6902),i=n(5536),c=n(6121),l=n(829),u=n(2740),d=n(8769),f=n.n(d),p=n(1123),m=n(9006),h=(n(6477),n(7035)),g=n(7236);let v,y,b,w,A,E,k,x,N;const{defineElement:S,property:T,event:j}=(0,p.createDecorators)();let _;var C=new WeakMap,B=new WeakMap,O=new WeakMap,M=new WeakSet,L=new WeakMap;class P extends m.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,M),(0,a.A)(this,C,y(this)),(0,a.A)(this,B,(b(this),w(this))),(0,a.A)(this,O,(A(this),E(this))),(0,a.A)(this,L,(N(this),e=>{(0,i.A)(M,this,k).emit(e)}))}get messages(){return(0,l.A)(C,this)}set messages(e){(0,c.A)(C,this,e)}get errorBoundary(){return(0,l.A)(B,this)}set errorBoundary(e){(0,c.A)(B,this,e)}render(){return f().createElement($,{host:this,messages:this.messages,errorBoundary:this.errorBoundary,onStoryboardUpdate:(0,l.A)(L,this)})}}function $(e){let{messages:t,host:n,errorBoundary:r,onStoryboardUpdate:o}=e;const a=(0,d.useMemo)((()=>/(?:^|\n)```easy_cmd_vb_block_(page|storyboard)\n([\s\S]*?)\n```(?:$|\n)/gm),[]),s=(0,d.useRef)(new Map),[i,c]=(0,d.useState)([]),l=(0,d.useRef)(!1);(0,d.useEffect)((()=>{for(const n of null!=t?t:[]){var e;if("assistant"!==n.role)continue;let t;a.lastIndex=null!==(e=s.current.get(n.key))&&void 0!==e?e:0;const r=[];let o=!1;for(;t=a.exec(n.content);){s.current.set(n.key,a.lastIndex);const[,e,i]=t;try{const t=JSON.parse(i);"page"===e?(o=!0,r.push(...t)):r.push({...t,type:"item"})}catch(e){console.error("parse storyboard failed:",e)}}o?c(r):r.length>0&&c((e=>[...e,...r]))}}),[a,t]);const[u,p]=(0,d.useState)([]);(0,d.useEffect)((()=>{const e=[],t=new Map;for(const n of i)"block"===n.type?e.push(n):n.storyboard&&t.set(n.uuid,n.storyboard);e.sort(((e,t)=>e.seq-t.seq));const n={brick:"eo-content-layout",children:[]},o={brick:"eo-main-view",children:[{brick:"eo-page-title",slot:"pageTitle",properties:{pageTitle:"测试页面"}}]};let a=!1;for(const s of e)if("全局操作区"===s.name)for(const e of s.children){const n=t.get(e);n&&(o.children.push({...n,properties:{...n.properties,slot:void 0},errorBoundary:r,slot:"toolbar",iid:`item:${e}`,meta:{type:"item",uuid:e,block:{uuid:s.uuid,name:s.name}}}),a=!0)}else{const e=t.get(s.uuid);if(e){const o={...e,children:[],errorBoundary:r,iid:`block:${s.uuid}`,meta:{type:"block",uuid:s.uuid,name:s.name}};a=!0,n.children.push(o);for(const e of s.children){const n=t.get(e);n&&o.children.push({...n,errorBoundary:r,iid:`item:${e}`,meta:{type:"item",uuid:e}})}}else if(!s.hasContainer)for(const e of s.children){const o=t.get(e);o&&(n.children.push({...o,errorBoundary:r,iid:`item:${e}`,meta:{type:"item",uuid:e}}),a=!0)}}o.children.push(n),p((e=>a?[o]:0===e.length?e:[]))}),[i,r]),(0,d.useEffect)((()=>{null==o||o(u)}),[o,u]);const m=(0,d.useMemo)((()=>{let e=n;for(;e;){const t=getComputedStyle(e,null).getPropertyValue("overflow-y");if("auto"===t||"scroll"===t)return e;if(e.parentNode instanceof ShadowRoot)e=e.parentNode.host;else{if(!(e.parentNode instanceof Element))break;e=e.parentNode}}return document.scrollingElement||document.documentElement}),[n]);return(0,d.useEffect)((()=>{l.current||setTimeout((()=>{m.scrollTo(0,m.scrollHeight)}),1)}),[t,m]),(0,d.useEffect)((()=>{const e=()=>{l.current=m.scrollTop+m.clientHeight+6<m.scrollHeight};return m.addEventListener("scroll",e),()=>{m.removeEventListener("scroll",e)}}),[m]),f().createElement(f().Fragment,null,null==t?void 0:t.map(((e,t)=>{var n;return f().createElement(h.V,{key:null!==(n=e.key)&&void 0!==n?n:`index-${t}`,message:e})})))}r=P,({e:[y,b,w,A,E,k,x,N],c:[_,v]}=(0,u.A)(r,[S("visual-builder.chat-conversation",{styleTexts:[g.A]})],[[T({attribute:!1}),1,"messages"],[T({type:Boolean}),1,"errorBoundary"],[j({type:"storyboard.update"}),1,"storyboardUpdate",e=>(0,l.A)(O,e),(e,t)=>(0,c.A)(O,e,t)]],0,(e=>L.has((0,s.A)(e))),m.ReactNextElement)),v()},7236:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6758),o=n.n(r),a=n(935),s=n.n(a),i=n(6131),c=s()(o());c.i(i.A),c.push([e.id,':host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.message{display:flex;gap:8px}.main{flex:1;min-width:0}.label{font-weight:bold;line-height:28px}.message:not(:last-child){margin-bottom:2em}.invisible-dots{opacity:0}.failed .content{color:var(--color-error)}.command:not(:first-child){margin-top:1em}.command:not(:last-child){margin-bottom:1em}pre{white-space:pre-wrap;background-color:var(--palette-gray-3);border-radius:6px;padding:1em}.markdown > :first-child{margin-top:0}.markdown > :last-child{margin-bottom:0}.avatar{align-self:flex-start;display:flex;align-items:center;justify-content:center}.texting::after{content:" ";animation:texting 2s infinite;white-space:pre}@keyframes texting{0%{content:" "}25%{content:". "}50%{content:".. "}75%{content:"..."}100%{content:" "}}pre[class*="language-"]{overflow:visible}pre[class*="language-"],\ncode[class*="language-"]{white-space:pre-wrap}eo-avatar.role-assistant::part(avatar-icon){background-color:var(--palette-blue-5)}.content{word-wrap:break-word}.plain{white-space:pre-wrap}',""]);const l=c.toString()},6131:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6758),o=n.n(r),a=n(935),s=n.n(a),i=n(7745),c=s()(o());c.i(i.A),c.push([e.id,"",""]);const l=c.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,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&s[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),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 n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.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=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},2740:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7545),o=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 s=n(1369);function i(e,t,n,i,c,l){var u,d,f,p,m,h,g,v=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,b=Object.create,w=[b(null),b(null)],A=t.length;function E(t,n,r){return function(o,a){n&&(a=o,o=e);for(var s=0;s<t.length;s++)a=t[s].apply(o,r?[a]:[]);return r?a:o}}function k(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 x(e,t,n,o,s,i,c,l,f,p,m){function h(e){if(!m(e))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(t[0]),v=t[3],b=!c,A=1===s,x=3===s,N=4===s,S=2===s;function T(t,n,r){return function(o,a){return n&&(a=o,o=e),r&&r(o),j[t].call(o,a)}}if(!b){var j={},_=[],C=x?"get":N||A?"set":"value";if(f?(p||A?j={get:a((function(){return v(this)}),o,"get"),set:function(e){t[4](this,e)}}:j[C]=v,p||a(j[C],o,S?"":C)):p||(j=Object.getOwnPropertyDescriptor(e,o)),!p&&!f){if((d=w[+l][o])&&7!=(d^s))throw Error("Decorating two elements with the same name ("+j[C].name+") is not supported yet");w[+l][o]=s<3?1:s}}for(var B=e,O=g.length-1;O>=0;O-=n?2:1){var M=k(g[O],"A decorator","be",!0),L=n?g[O-1]:void 0,P={},$={kind:["field","accessor","method","getter","setter","class"][s],name:o,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");k(t,"An initializer","be",!0),i.push(t)}.bind(null,P)};if(b)d=M.call(L,B,$),P.v=1,k(d,"class decorators","return")&&(B=d);else if($.static=l,$.private=f,d=$.access={has:f?m.bind():function(e){return o in e}},N||(d.get=f?S?function(e){return h(e),j.value}:T("get",0,h):function(e){return e[o]}),S||x||(d.set=f?T("set",0,h):function(e,t){e[o]=t}),B=M.call(L,A?{get:j.get,set:j.set}:j[C],$),P.v=1,A){if("object"==(0,r.A)(B)&&B)(d=k(B.get,"accessor.get"))&&(j.get=d),(d=k(B.set,"accessor.set"))&&(j.set=d),(d=k(B.init,"accessor.init"))&&_.unshift(d);else if(void 0!==B)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else k(B,(p?"field":"method")+" decorators","return")&&(p?_.unshift(B):j[C]=B)}return s<2&&c.push(E(_,l,1),E(i,l,0)),p||b||(f?A?c.splice(-1,0,T("get",l),T("set",l)):c.push(S?j[C]:k.call.bind(j[C])):y(e,o,j)),B}function N(e){return y(e,v,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[v]),u=b(null==u?null:u),m=[],h=function(e){e&&m.push(E(e))},g=function(t,r){for(var a=0;a<n.length;a++){var i=n[a],l=i[1],u=7&l;if((8&l)==t&&!u==r){var d=i[2],h=!!i[3],g=16&l;x(t?e:e.prototype,i,g,h?"#"+d:(0,s.A)(d),u,u<2?[]:t?p=p||[]:f=f||[],m,!!t,h,r,t&&h?function(t){return(0,o.A)(t)===e}:c)}}},g(8,0),g(0,0),g(8,1),g(0,1),h(f),h(p),d=m,A||N(e),{e:d,get c(){var n=[];return A&&[N(e=x(e,[t],i,e.name,5,n)),E(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:()=>o});var r=n(7545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},2016:(e,t,n)=>{"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:()=>o});var r=n(2559);function o(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2016);function o(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return e.set((0,r.A)(e,t),n),n}},5536:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return n((0,r.A)(e,t))}},4635:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2016);function o(e,t){(0,r.A)(e,t),t.add(e)}},1369:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7545);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t: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})},7384:(e,t,n)=>{"use strict";n.d(t,{N:()=>d});var r=n(8769),o=n(1085),a=n(3091),s=n(7447),i=n(3640),c=n(4360),l=n(1250);const u={Fragment:o.Fragment,jsx:o.jsx,jsxs:o.jsxs};function d(e){let{content:t}=e;const[n,o]=(0,r.useState)(null);return(0,r.useEffect)((()=>{let e=!1;return(0,a.l)().use(s.A).use(i.A).use([l.N]).use(c.A,u).process(t).then((t=>{e||o(t.result)})).catch((t=>{e||(console.error("Convert markdown failed:",t),o(null))})),()=>{e=!0}}),[t]),n}},1250:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(3544),o=n(4650),a=n(9830);function s(){function e(e,t,n){if(!n||"pre"!==n.tagName||"code"!==e.tagName)return;const r=function(e){const t=e.properties.className||[];for(const e of t)if("language-"===e.slice(0,9))return e.slice(9).toLowerCase();return null}(e);if(null===r)return;let s;try{n.properties.className=(n.properties.className||[]).concat("language-"+r),s=a.L.highlight((0,o.d)(e),r)}catch{return}e.children=s.children}return t=>{(0,r.YR)(t,"element",e)}}}}]);
|
|
3
|
-
//# sourceMappingURL=chat-conversation.ede87265.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see chat-preview.ffd99bae.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[2052,5402],{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(1123),v=n(9006),g=(n(6477),n(2716)),b=n(5310),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,t;if(!u)return;const n=g.__secret_internals.getBrickPackagesById("bricks/visual-builder");if(!n)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",{...n,filePath:`${location.origin}${(0,g.getBasePath)()}${null!==(t=window.PUBLIC_ROOT)&&void 0!==t?t:""}${n.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,r,i;const o=null!==(t=null==c||null===(n=c.current)||void 0===n?void 0:n.offsetLeft)&&void 0!==t?t:0,a=null!==(r=null==c||null===(i=c.current)||void 0===i?void 0:i.offsetTop)&&void 0!==r?r:0,{width:s,height:u,left:l,top:p,...d}=e;return{width:1*s,height:1*u,left:1*(l-v.x)+o,top:1*(p-v.y)+a,...d}}))),[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.ffd99bae.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see contract-select.21ef3558.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[2052,3046],{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(1123),A=n(9006),v=n(3848),m=(n(6477),n(6213)),g=n(1030),S=n(426),b=n(3065),T=n(1722),y=n(9704),C=n(9733),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,r;const e=null===(n=u.find((e=>e.fullContractName===t)))||void 0===n?void 0:n.version,i=null!==(r=null==e?void 0:e[0])&&void 0!==r?r:"";m(e),p({name:t,version:i}),null==a||a(`${t}:${i}`)}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(9704),s=n(9006);(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(7970),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(1123),f=n(9006);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.21ef3558.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[2052,8689],{5413:(t,e,n)=>{n.d(e,{I:()=>r,NS:()=>i});const i="bricks/visual-builder/generate-snippets-context-menu",r={en:{},zh:{}}},3199:(t,e,n)=>{n.r(e),n.d(e,{GenerateSnippetsContextMenu:()=>J,GenerateSnippetsContextMenuComponent:()=>tt});var i,r=n(4635),o=n(918),a=n(6902),s=n(5536),c=n(6121),l=n(829),u=n(2740),d=n(8769),p=n.n(d),m=n(1123),h=n(9006),f=n(2729),v=(n(6477),n(9704)),g=n(5413),b=n(7540);let y,A,w,k,E,x,S,C,j,D,T,M,I,W,z,N;const _=(0,h.wrapBrick)("eo-menu"),O=(0,h.wrapBrick)("eo-menu-item"),P=(0,h.wrapBrick)("eo-tooltip"),B=(0,f.unwrapProvider)("basic.lock-body-scroll");(0,v.initializeReactI18n)(g.NS,g.I);const{defineElement:R,property:G,event:L,method:F}=(0,m.createDecorators)(),H=8;let J;var q=new WeakMap,K=new WeakMap,Q=new WeakMap,U=new WeakMap,V=new WeakSet,X=new WeakMap,Y=new WeakMap,Z=new WeakMap;class $ extends h.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,V),(0,o.A)(this,q,(y(this),w(this))),(0,o.A)(this,K,(k(this),E(this))),(0,o.A)(this,Q,(x(this),S(this))),(0,o.A)(this,U,(C(this),j(this))),(0,o.A)(this,X,(M(this),I(this))),(0,o.A)(this,Y,(N(this),t=>{(0,s.A)(V,this,D).emit(t)})),(0,o.A)(this,Z,(t=>{(0,s.A)(V,this,W).emit(t)}))}get options(){return(0,l.A)(q,this)}set options(t){(0,c.A)(q,this,t)}get active(){return(0,l.A)(K,this)}set active(t){(0,c.A)(K,this,t)}get position(){return(0,l.A)(Q,this)}set position(t){(0,c.A)(Q,this,t)}open(t){let{position:e}=t;this.active=!0,this.position=e}close(){this.active=!1,this.position=void 0}disconnectedCallback(){super.disconnectedCallback(),B(this,!1)}render(){return p().createElement(tt,{active:this.active,element:this,position:this.position,onItemDragStart:(0,l.A)(Y,this),onItemDragEnd:(0,l.A)(Z,this),options:this.options})}}function tt(t){var e,n;let{element:i,active:r,onItemDragEnd:o,onItemDragStart:a,options:s,position:c}=t;const[l,u]=(0,d.useState)(!1),m=(0,d.useRef)(null),[h,f]=(0,d.useState)(null),v=(0,d.useCallback)((t=>{t.preventDefault(),null==i||i.close()}),[i]),g=(0,d.useCallback)(((t,e)=>{var n;u(!0),e.dragConf&&(null===(n=t.dataTransfer)||void 0===n||n.setData(e.dragConf.format,JSON.stringify(e.dragConf.data))),t.target.classList.add("dragging"),null==a||a(e)}),[a]),b=(0,d.useCallback)(((t,e)=>{u(!1),t.target.classList.remove("dragging"),null==i||i.close(),null==o||o(e)}),[i,o]);return(0,d.useEffect)((()=>{B(i,r)}),[r,i]),(0,d.useEffect)((()=>{if(r&&m.current&&c){const t=m.current.getBoundingClientRect(),e=t.width+H,n=t.height+H,{clientWidth:i,clientHeight:r}=document.documentElement,o=[...c];i>e&&c[0]+e>i&&(o[0]=c[0]-e),r>n&&c[1]+n>r&&(o[1]=r-n),f(o)}else f(null)}),[r,c]),p().createElement(p().Fragment,null,!l&&p().createElement("div",{className:"mask",onClick:v,onContextMenu:v}),p().createElement("div",{className:"container",ref:m,style:{left:null===(e=null!=h?h:c)||void 0===e?void 0:e[0],top:null===(n=null!=h?h:c)||void 0===n?void 0:n[1],visibility:h?"visible":"hidden"}},null==s?void 0:s.map(((t,e)=>{var n,i;return p().createElement("div",{key:e},p().createElement("div",{className:"title"},t.title),(null===(n=t.children)||void 0===n?void 0:n.length)&&p().createElement(_,null,null===(i=t.children)||void 0===i?void 0:i.map(((t,e)=>p().createElement(P,{content:t.tooltip,hoist:!0,placement:"left",key:e},p().createElement(O,{disabled:t.disabled,icon:t.icon,draggable:!t.disabled,onDragStart:e=>g(e,t),onDragEnd:e=>b(e,t)},t.text))))))}))))}i=$,({e:[w,k,E,x,S,C,j,D,T,M,I,W,z,N,y],c:[J,A]}=(0,u.A)(i,[R("visual-builder.generate-snippets-context-menu",{styleTexts:[b.A]})],[[G({attribute:!1}),1,"options"],[G({type:Boolean}),1,"active"],[G({attribute:!1}),1,"position"],[L({type:"item.drag.start"}),1,"itemDragStartEvent",t=>(0,l.A)(U,t),(t,e)=>(0,c.A)(U,t,e)],[L({type:"item.drag.end"}),1,"itemDragEndEvent",t=>(0,l.A)(X,t),(t,e)=>(0,c.A)(X,t,e)],[F(),2,"open"],[F(),2,"close"]],0,(t=>Z.has((0,a.A)(t))),h.ReactNextElement)),A()},7540:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(6758),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":host{display:inline-block}:host([hidden]){display:none}.mask,\n.container{display:none;position:fixed;z-index:1}.mask{top:0;bottom:0;left:0;right:0;z-index:1}:host([active]) .mask,\n:host([active]) .container{display:block}.container{background:var(--antd-dropdown-menu-bg);border-radius:var(--medius-border-radius);padding:5px}.container .title{padding:5px 12px;cursor:default;color:var(--color-secondary-text);border-bottom:1px solid var(--color-text-divider-line)}.container eo-menu{border:none;padding:5px 0}.container eo-menu eo-menu-item:not([disabled]):hover::part(menu-item){background-color:var(--left-sidebar-item-hover-bg)}.container eo-menu eo-menu-item[disabled]::part(menu-item){cursor:not-allowed}.container eo-menu eo-menu-item::part(menu-item){cursor:grab;padding:5px 12px;border-radius:var(--medius-border-radius);min-width:max-content}.container eo-menu eo-menu-item.dragging{opacity:0.5}.container eo-menu eo-tooltip{display:block}",""]);const s=a.toString()},935:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);i&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},6758:t=>{t.exports=function(t){return t[1]}},2740:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(7545),r=n(6902);function o(t,e,n){"symbol"==(0,i.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:n?n+" "+e:e})}catch(t){}return t}var a=n(1369);function s(t,e,n,s,c,l){var u,d,p,m,h,f,v,g=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,y=Object.create,A=[y(null),y(null)],w=e.length;function k(e,n,i){return function(r,o){n&&(o=r,r=t);for(var a=0;a<e.length;a++)o=e[a].apply(r,i?[o]:[]);return i?o:r}}function E(t,e,n,i){if("function"!=typeof t&&(i||void 0!==t))throw new TypeError(e+" must "+(n||"be")+" a function"+(i?"":" or undefined"));return t}function x(t,e,n,r,a,s,c,l,p,m,h){function f(t){if(!h(t))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(e[0]),g=e[3],y=!c,w=1===a,x=3===a,S=4===a,C=2===a;function j(e,n,i){return function(r,o){return n&&(o=r,r=t),i&&i(r),D[e].call(r,o)}}if(!y){var D={},T=[],M=x?"get":S||w?"set":"value";if(p?(m||w?D={get:o((function(){return g(this)}),r,"get"),set:function(t){e[4](this,t)}}:D[M]=g,m||o(D[M],r,C?"":M)):m||(D=Object.getOwnPropertyDescriptor(t,r)),!m&&!p){if((d=A[+l][r])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+D[M].name+") is not supported yet");A[+l][r]=a<3?1:a}}for(var I=t,W=v.length-1;W>=0;W-=n?2:1){var z=E(v[W],"A decorator","be",!0),N=n?v[W-1]:void 0,_={},O={kind:["field","accessor","method","getter","setter","class"][a],name:r,metadata:u,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");E(e,"An initializer","be",!0),s.push(e)}.bind(null,_)};if(y)d=z.call(N,I,O),_.v=1,E(d,"class decorators","return")&&(I=d);else if(O.static=l,O.private=p,d=O.access={has:p?h.bind():function(t){return r in t}},S||(d.get=p?C?function(t){return f(t),D.value}:j("get",0,f):function(t){return t[r]}),C||x||(d.set=p?j("set",0,f):function(t,e){t[r]=e}),I=z.call(N,w?{get:D.get,set:D.set}:D[M],O),_.v=1,w){if("object"==(0,i.A)(I)&&I)(d=E(I.get,"accessor.get"))&&(D.get=d),(d=E(I.set,"accessor.set"))&&(D.set=d),(d=E(I.init,"accessor.init"))&&T.unshift(d);else if(void 0!==I)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(I,(m?"field":"method")+" decorators","return")&&(m?T.unshift(I):D[M]=I)}return a<2&&c.push(k(T,l,1),k(s,l,0)),m||y||(p?w?c.splice(-1,0,j("get",l),j("set",l)):c.push(C?D[M]:E.call.bind(D[M])):b(t,r,D)),I}function S(t){return b(t,g,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[g]),u=y(null==u?null:u),h=[],f=function(t){t&&h.push(k(t))},v=function(e,i){for(var o=0;o<n.length;o++){var s=n[o],l=s[1],u=7&l;if((8&l)==e&&!u==i){var d=s[2],f=!!s[3],v=16&l;x(e?t:t.prototype,s,v,f?"#"+d:(0,a.A)(d),u,u<2?[]:e?m=m||[]:p=p||[],h,!!e,f,i,e&&f?function(e){return(0,r.A)(e)===t}:c)}}},v(8,0),v(0,0),v(8,1),v(0,1),f(p),f(m),d=h,w||S(t),{e:d,get c(){var n=[];return w&&[S(t=x(t,[e],s,t.name,5,n)),k(n,1)]}}}},2559:(t,e,n)=>{function i(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>i})},6902:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(7545);function r(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,i.A)(t):"null"));return t}},2016:(t,e,n)=>{function i(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>i})},829:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(2559);function r(t,e){return t.get((0,i.A)(t,e))}},918:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(2016);function r(t,e,n){(0,i.A)(t,e),e.set(t,n)}},6121:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(2559);function r(t,e,n){return t.set((0,i.A)(t,e),n),n}},5536:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(2559);function r(t,e,n){return n((0,i.A)(t,e))}},4635:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(2016);function r(t,e){(0,i.A)(t,e),e.add(t)}},1369:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(7545);function r(t){var e=function(t,e){if("object"!=(0,i.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=(0,i.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,i.A)(e)?e:e+""}},7545:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,{A:()=>i})}}]);
|
|
2
|
-
//# sourceMappingURL=generate-snippets-context-menu.19b2db8f.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see get-config-by-data-for-ai.846e0776.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[884],{2983:(t,e,n)=>{n.r(e),n.d(e,{getConfigByDataForAi:()=>r});var a=n(2729),i=n(8406),s=n(1030);async function r(t){if(null==(null==t?void 0:t.value))return null;const{value:e}=t;let n,i,r="unknown",c=[];if(Array.isArray(e))e.length>0&&(r="list",n=e[0],c=e);else if((0,s.isObject)(e)){const t=e;(0,a.hasOwnProperty)(t,"list")&&Array.isArray(t.list)&&(0,a.hasOwnProperty)(t,"page")&&"number"==typeof t.page&&(0,a.hasOwnProperty)(t,"total")&&"number"==typeof t.total?(t.list.length>0&&(r="list-with-pagination",n=t.list[0],c=t.list),"number"==typeof t.page_size&&"number"!=typeof t.pageSize&&(i={pageSize:"page_size"})):(r="object",n=e,c=[n])}const u=new Set;for(const t of c){if(!(0,s.isObject)(t)){r="unknown";break}for(const e of Object.keys(t))u.add(e)}let d=[];if("unknown"!==r&&(0,s.isObject)(n)&&(0,a.hasOwnProperty)(n,"_object_id")&&"string"==typeof n._object_id){const t=n._object_id;d=await l(t,u)}else console.warn("Can not detect objectId with data:",t),d=[...u].map((t=>({id:t,name:t})));return 0===d.length&&(r="unknown"),{type:r,attrList:d,dataList:c,containerOptions:o(r,i)}}function o(t,e){switch(t){case"list":return[{label:"表格",value:"table"},{label:"卡片列表",value:"cards"}];case"list-with-pagination":return[{label:"表格",value:"table",settings:{pagination:!0,fields:e}},{label:"卡片列表",value:"cards",settings:{pagination:!0,fields:e}}];case"object":return[{label:"属性详情",value:"descriptions"}];default:return[]}}async function l(t,e){const n=[],[a,s]=t.split("@"),{list:r}=await(0,i.y)("MODEL_OBJECT",{fields:["name","objectId","attrList.id","attrList.name","attrList.generatedView.list","parentObjectIds"],query:{objectId:a,ignore:{$ne:!0},...s?{"space.name":s}:{space:{$exists:!1}}},page:1});if(0===r.length)console.warn("Can not find object by objectId:",t);else{const{attrList:t,parentObjectIds:a}=r[0];null!=a&&a.length&&n.push(...(await Promise.all(a.map((t=>l(t,e))))).flat()),n.push(...t.map((t=>{var n;return e.has(t.id)?{id:t.id,name:t.name,candidates:null===(n=t.generatedView)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.list}:null})).filter(Boolean))}return n}customElements.define("visual-builder.get-config-by-data-for-ai",(0,a.createProviderClass)(r))},6330:(t,e,n)=>{function a(t,e,n,a,i,s,r){try{var o=t[s](r),l=o.value}catch(t){return void n(t)}o.done?e(l):Promise.resolve(l).then(a,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,s){var r=t.apply(e,n);function o(t){a(r,i,s,o,l,"next",t)}function l(t){a(r,i,s,o,l,"throw",t)}o(void 0)}))}}n.d(e,{A:()=>i})},8406:(t,e,n)=>{n.d(e,{y:()=>s});var a=n(6330),i=n(7970),s=function(){var t=(0,a.A)((function*(t,e,n){return(yield i.http.post("api/gateway/cmdb.instance.PostSearchV3/v3/object/".concat(t,"/instance/_search"),e,n)).data}));return function(e,n,a){return t.apply(this,arguments)}}()}}]);
|
|
3
|
-
//# sourceMappingURL=get-config-by-data-for-ai.846e0776.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/get-config-by-data-for-ai.846e0776.js","mappings":";kOAoEOA,eAAeC,EACpBC,GAEA,GAAmB,OAAfA,aAAI,EAAJA,EAAMC,OACR,OAAO,KAGT,MAAM,MAAEA,GAAUD,EAElB,IAAIE,EAGAC,EAFAC,EAAmB,UACnBC,EAAsB,GAI1B,GAAIC,MAAMC,QAAQN,GAEZA,EAAMO,OAAS,IACjBJ,EAAO,OACPF,EAAQD,EAAM,GACdI,EAAWJ,QAER,IAAIQ,EAAAA,EAAAA,UAASR,GAAQ,CAC1B,MAAMS,EAAYT,GAEhBU,EAAAA,EAAAA,gBAAeD,EAAW,SAC1BJ,MAAMC,QAAQG,EAAUE,QACxBD,EAAAA,EAAAA,gBAAeD,EAAW,SACA,iBAAnBA,EAAUG,OACjBF,EAAAA,EAAAA,gBAAeD,EAAW,UACC,iBAApBA,EAAUI,OAGbJ,EAAUE,KAAKJ,OAAS,IAC1BJ,EAAO,uBACPF,EAAQQ,EAAUE,KAAK,GACvBP,EAAWK,EAAUE,MAGU,iBAAxBF,EAAUK,WACa,iBAAvBL,EAAUM,WAEjBb,EAAS,CAAEa,SAAU,gBAIvBZ,EAAO,SACPF,EAAQD,EACRI,EAAW,CAACH,GAEhB,CAEA,MAAMe,EAAO,IAAIC,IACjB,IAAK,MAAMC,KAAQd,EAAU,CAC3B,KAAII,EAAAA,EAAAA,UAASU,G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AoDC,OAAO9D,EAAU,qBAAsBzB,EAAMoF,IACxL,IACF,IACA,OAAO,SAAkCI,EAAIC,EAAKC,GAChD,OAAOP,EAAKH,MAAMH,KAAME,UAC1B,CACF,CARmD","sources":["webpack:///./src/data-providers/get-config-by-data-for-ai.ts","webpack:///../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack:///../../node_modules/@next-api-sdk/cmdb-sdk/dist/esm/api/cmdb/instance/postSearchV3.js"],"sourcesContent":["import { createProviderClass, hasOwnProperty } from \"@next-core/utils/general\";\nimport { InstanceApi_postSearchV3 } from \"@next-api-sdk/cmdb-sdk\";\nimport { isObject } from \"lodash\";\n\nexport interface Data {\n name: string;\n value: unknown;\n}\n\nexport type Config = NormalConfig | UnknownConfig;\n\nexport interface NormalConfig {\n type: ConfigType;\n attrList: Attr[];\n dataList: unknown[];\n containerOptions?: ContainerOption[];\n}\n\nexport interface UnknownConfig {\n type: \"unknown\";\n error: string;\n}\n\nexport interface Options {\n dataType?: \"context\" | \"state\";\n}\n\nexport type ConfigType = \"list\" | \"list-with-pagination\" | \"object\" | \"unknown\";\n\nexport interface Attr {\n id: string;\n name: string;\n candidates?: unknown[];\n}\n\nexport interface ContainerOption {\n label: string;\n value: string;\n settings?: unknown;\n}\n\ninterface ListWithPagination {\n list: DatumWithObjectId[];\n page: number;\n total: number;\n pageSize?: number;\n page_size?: number;\n}\n\ninterface DatumWithObjectId {\n _object_id: string;\n}\n\ninterface ModelObject {\n attrList: ModelAttr[];\n parentObjectIds?: string[];\n}\n\ninterface ModelAttr {\n id: string;\n name: string;\n generatedView?: ModelAttrGeneratedView[];\n}\n\ninterface ModelAttrGeneratedView {\n list?: unknown[];\n}\n\nexport async function getConfigByDataForAi(\n data: Data | undefined | null\n): Promise<Config> {\n if (data?.value == null) {\n return null;\n }\n\n const { value } = data;\n\n let datum: DatumWithObjectId | undefined;\n let type: ConfigType = \"unknown\";\n let dataList: unknown[] = [];\n let fields: Record<string, string> | undefined;\n\n // Detect value type\n if (Array.isArray(value)) {\n // It's a list without pagination\n if (value.length > 0) {\n type = \"list\";\n datum = value[0] as DatumWithObjectId;\n dataList = value;\n }\n } else if (isObject(value)) {\n const listValue = value as ListWithPagination;\n if (\n hasOwnProperty(listValue, \"list\") &&\n Array.isArray(listValue.list) &&\n hasOwnProperty(listValue, \"page\") &&\n typeof listValue.page === \"number\" &&\n hasOwnProperty(listValue, \"total\") &&\n typeof listValue.total === \"number\"\n ) {\n // It's a list with pagination\n if (listValue.list.length > 0) {\n type = \"list-with-pagination\";\n datum = listValue.list[0];\n dataList = listValue.list;\n }\n if (\n typeof listValue.page_size === \"number\" &&\n typeof listValue.pageSize !== \"number\"\n ) {\n fields = { pageSize: \"page_size\" };\n }\n } else {\n // It's a single object\n type = \"object\";\n datum = value as DatumWithObjectId;\n dataList = [datum];\n }\n }\n\n const keys = new Set<string>();\n for (const item of dataList) {\n if (isObject(item)) {\n for (const key of Object.keys(item)) {\n keys.add(key);\n }\n } else {\n type = \"unknown\";\n break;\n }\n }\n\n let attrList: Attr[] = [];\n\n if (\n type !== \"unknown\" &&\n isObject(datum) &&\n hasOwnProperty(datum, \"_object_id\") &&\n typeof datum._object_id === \"string\"\n ) {\n const objectId = datum._object_id;\n attrList = await getMergedAttrList(objectId, keys);\n } else {\n // eslint-disable-next-line no-console\n console.warn(\"Can not detect objectId with data:\", data);\n\n // Fallback to attributes retrieval by data keys\n attrList = [...keys].map((id) => ({ id, name: id }));\n }\n\n if (attrList.length === 0) {\n type = \"unknown\";\n }\n\n return {\n type,\n attrList,\n dataList,\n containerOptions: getAvailableContainersByType(type, fields),\n };\n}\n\nfunction getAvailableContainersByType(\n type: ConfigType,\n fields?: Record<string, string>\n): ContainerOption[] {\n switch (type) {\n case \"list\":\n return [\n {\n label: \"表格\",\n value: \"table\",\n },\n {\n label: \"卡片列表\",\n value: \"cards\",\n },\n // {\n // label: \"图表\",\n // value: \"chart\",\n // },\n ];\n case \"list-with-pagination\":\n return [\n {\n label: \"表格\",\n value: \"table\",\n settings: {\n pagination: true,\n fields,\n },\n },\n {\n label: \"卡片列表\",\n value: \"cards\",\n settings: {\n pagination: true,\n fields,\n },\n },\n // {\n // label: \"图表\",\n // value: \"chart\",\n // settings: {\n // pagination: true,\n // },\n // },\n ];\n case \"object\":\n return [\n {\n label: \"属性详情\",\n value: \"descriptions\",\n },\n ];\n default:\n return [];\n }\n}\n\nasync function getMergedAttrList(\n objectIdWithNamespace: string,\n keys: Set<string>\n): Promise<Attr[]> {\n const attrList: Attr[] = [];\n\n const [objectId, namespace] = objectIdWithNamespace.split(\"@\");\n\n const { list } = (await InstanceApi_postSearchV3(\"MODEL_OBJECT\", {\n fields: [\n \"name\",\n \"objectId\",\n \"attrList.id\",\n \"attrList.name\",\n \"attrList.generatedView.list\",\n \"parentObjectIds\",\n ],\n query: {\n objectId,\n ignore: { $ne: true },\n ...(namespace\n ? { \"space.name\": namespace }\n : { space: { $exists: false } }),\n },\n page: 1,\n })) as { list: ModelObject[] };\n\n if (list.length === 0) {\n // eslint-disable-next-line no-console\n console.warn(\"Can not find object by objectId:\", objectIdWithNamespace);\n } else {\n const { attrList: attrs, parentObjectIds } = list[0];\n\n if (parentObjectIds?.length) {\n attrList.push(\n ...(\n await Promise.all(\n parentObjectIds.map((parentId) => getMergedAttrList(parentId, keys))\n )\n ).flat()\n );\n }\n\n attrList.push(\n ...attrs\n .map<Attr>((attr) =>\n keys.has(attr.id)\n ? {\n id: attr.id,\n name: attr.name,\n candidates: attr.generatedView?.[0]?.list,\n }\n : null\n )\n .filter(Boolean)\n );\n }\n\n return attrList;\n}\n\ncustomElements.define(\n \"visual-builder.get-config-by-data-for-ai\",\n createProviderClass(getConfigByDataForAi)\n);\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport { http } from \"@next-core/http\";\n/**\n * @description 搜索实例V3 (支持多属性排序)\n * @endpoint POST /v3/object/:objectId/instance/_search\n */\nexport var InstanceApi_postSearchV3 = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (objectId, data, options) {\n return (/**! @contract easyops.api.cmdb.instance.PostSearchV3@1.1.0 */(yield http.post(\"api/gateway/cmdb.instance.PostSearchV3/v3/object/\".concat(objectId, \"/instance/_search\"), data, options)).data\n );\n });\n return function InstanceApi_postSearchV3(_x, _x2, _x3) {\n return _ref.apply(this, arguments);\n };\n}();\n//# sourceMappingURL=postSearchV3.js.map"],"names":["async","getConfigByDataForAi","data","value","datum","fields","type","dataList","Array","isArray","length","isObject","listValue","hasOwnProperty","list","page","total","page_size","pageSize","keys","Set","item","key","Object","add","attrList","_object_id","objectId","getMergedAttrList","console","warn","map","id","name","containerOptions","getAvailableContainersByType","label","settings","pagination","objectIdWithNamespace","namespace","split","InstanceApi_postSearchV3","query","ignore","$ne","space","$exists","attrs","parentObjectIds","push","Promise","all","parentId","flat","attr","_attr$generatedView","has","candidates","generatedView","filter","Boolean","customElements","define","createProviderClass","asyncGeneratorStep","gen","resolve","reject","_next","_throw","arg","info","error","done","then","_asyncToGenerator","fn","self","this","args","arguments","apply","err","undefined","_ref","options","http","post","concat","_x","_x2","_x3"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{var e,t,r,n,a,o,l,i,c,u,s,d,f,h,p,m,b,v,g,x,y,P,j,k,w,O={7934:(e,t,r)=>{Promise.all([r.e(7085),r.e(5659),r.e(5522),r.e(8769),r.e(1123),r.e(9006),r.e(1030),r.e(2729),r.e(6477),r.e(2716),r.e(5310),r.e(9733),r.e(7970),r.e(155),r.e(1321),r.e(1304),r.e(9435),r.e(3995),r.e(3848),r.e(9704),r.e(1732),r.e(9080),r.e(2980),r.e(6117),r.e(2464)]).then(r.bind(r,2464))}},_={};function S(e){var t=_[e];if(void 0!==t)return t.exports;var r=_[e]={id:e,loaded:!1,exports:{}};return O[e].call(r.exports,r,r.exports,S),r.loaded=!0,r.exports}S.m=O,S.c=_,S.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return S.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,S.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);S.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var l=2&n&&r;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,S.d(a,o),a},S.d=(e,t)=>{for(var r in t)S.o(t,r)&&!S.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce(((t,r)=>(S.f[r](e,t),t)),[])),S.u=e=>"chunks/"+e+"."+{114:"aaa7c484",726:"b2215460",871:"fff582b1",1045:"f6e80fec",1122:"ba17383d",1304:"a8196a2e",1889:"c21de868",1940:"94045d6e",2052:"f1624476",2201:"21df7990",2277:"73960d42",2464:"3e4124ec",2980:"b1bfe52c",3144:"0096b9c3",3171:"5cd02271",3933:"21c52045",4041:"468489fa",4291:"3c12fe9f",4658:"758b09ca",4837:"b122ae40",5250:"f22684c9",5384:"7fbe2a84",5399:"2121beed",5522:"ab1061cc",5552:"3773d6dd",5659:"9000e441",6117:"1d7ec00c",6314:"7cf962aa",6519:"11291cc6",6773:"9ed5373b",6840:"21d31b93",7085:"593a28a6",7218:"2d0daf7d",7304:"09d181ac",7434:"67a7c326",7721:"6dd8673d",7733:"8b0e5606",8097:"beaba572",8989:"0517d458",9080:"b51b1966",9515:"80c4b472",9559:"c6a42507",9844:"4328557b"}[e]+".js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@next-bricks/visual-builder:",S.l=(e,t,a,o)=>{if(r[e])r[e].push(t);else{var l,i;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var s=c[u];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,S.nc&&l.setAttribute("nonce",S.nc),l.setAttribute("data-webpack",n+a),l.src=e),r[e]=[t];var d=(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(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),i&&document.head.appendChild(l)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{S.S={};var e={},t={};S.I=(r,n)=>{n||(n=[]);var a=t[r];if(a||(a=t[r]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[r])return e[r];S.o(S.S,r)||(S.S[r]={});var o=S.S[r],l="@next-bricks/visual-builder",i=(e,t,r,n)=>{var a=o[e]=o[e]||{},i=a[t];(!i||!i.loaded&&(!n!=!i.eager?n:l>i.from))&&(a[t]={get:r,from:l,eager:!!n})},c=[];return"default"===r&&(i("@babel/parser","7.25.3",(()=>S.e(6773).then((()=>()=>S(6773))))),i("@easyops-cn/brick-next-pipes","0.7.1",(()=>Promise.all([S.e(4291),S.e(1030),S.e(5310),S.e(155)]).then((()=>()=>S(4291))))),i("@next-core/cook","2.5.6",(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(1122))))),i("@next-core/element","1.2.16",(()=>S.e(1045).then((()=>()=>S(1045))))),i("@next-core/http","1.2.11",(()=>S.e(8989).then((()=>()=>S(8989))))),i("@next-core/i18n/react","1.0.73",(()=>Promise.all([S.e(9733),S.e(8097)]).then((()=>()=>S(8097))))),i("@next-core/i18n","1.0.73",(()=>Promise.all([S.e(2729),S.e(9733),S.e(671),S.e(5552)]).then((()=>()=>S(5552))))),i("@next-core/inject","1.0.51",(()=>Promise.all([S.e(1030),S.e(9933),S.e(2277)]).then((()=>()=>S(2277))))),i("@next-core/loader","1.6.14",(()=>S.e(5399).then((()=>()=>S(5399))))),i("@next-core/pipes","2.0.30",(()=>S.e(6519).then((()=>()=>S(6519))))),i("@next-core/react-element","1.0.35",(()=>Promise.all([S.e(8769),S.e(1123),S.e(9435),S.e(114)]).then((()=>()=>S(114))))),i("@next-core/react-runtime","1.7.9",(()=>Promise.all([S.e(8769),S.e(9006),S.e(1030),S.e(2716),S.e(4837)]).then((()=>()=>S(4837))))),i("@next-core/runtime","1.59.2",(()=>Promise.all([S.e(6840),S.e(1030),S.e(2729),S.e(9733),S.e(7970),S.e(155),S.e(1321),S.e(3995),S.e(1732),S.e(6631)]).then((()=>()=>S(6840))))),i("@next-core/supply","2.3.3",(()=>Promise.all([S.e(1030),S.e(155),S.e(9933),S.e(9559)]).then((()=>()=>S(9559))))),i("@next-core/theme","1.5.4",(()=>Promise.all([S.e(1889),S.e(2052)]).then((()=>()=>S(1889))))),i("@next-core/utils/general","1.7.31",(()=>S.e(871).then((()=>()=>S(871))))),i("@next-core/utils/storyboard","1.7.31",(()=>Promise.all([S.e(2729),S.e(1321),S.e(3933)]).then((()=>()=>S(3933))))),i("history","4.10.1",(()=>S.e(5384).then((()=>()=>S(5384))))),i("i18next-browser-languagedetector","7.2.2",(()=>S.e(726).then((()=>()=>S(726))))),i("i18next","22.5.1",(()=>S.e(7304).then((()=>()=>S(7304))))),i("js-yaml","3.14.1",(()=>S.e(9515).then((()=>()=>S(9515))))),i("lodash","4.17.21",(()=>S.e(5250).then((()=>()=>S(5250))))),i("moment/locale/zh-cn.js","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),i("moment","2.30.1",(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(9420))))),i("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([S.e(3144),S.e(8769)]).then((()=>()=>S(3144))))),i("react-i18next","12.3.1",(()=>Promise.all([S.e(7434),S.e(8769)]).then((()=>()=>S(7434))))),i("react","0.0.0-experimental-ee8509801-20230117",(()=>S.e(4041).then((()=>()=>S(4041)))))),e[r]=c.length?Promise.all(c).then((()=>e[r]=1)):1}}})(),(()=>{var e;S.g.importScripts&&(e=S.g.location+"");var t=S.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e+"../"})(),a=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=r[1]?t(r[1]):[];return r[2]&&(n.length++,n.push.apply(n,t(r[2]))),r[3]&&(n.push([]),n.push.apply(n,t(r[3]))),n},o=(e,t)=>{e=a(e),t=a(t);for(var r=0;;){if(r>=e.length)return r<t.length&&"u"!=(typeof t[r])[0];var n=e[r],o=(typeof n)[0];if(r>=t.length)return"u"==o;var l=t[r],i=(typeof l)[0];if(o!=i)return"o"==o&&"n"==i||"s"==i||"u"==o;if("o"!=o&&"u"!=o&&n!=l)return n<l;r++}},l=e=>{var t=e[0],r="";if(1===e.length)return"*";if(t+.5){r+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,r+="u"==(typeof(i=e[a]))[0]?"-":(n>0?".":"")+(n=2,i);return r}var o=[];for(a=1;a<e.length;a++){var i=e[a];o.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?o.pop()+" "+o.pop():l(i))}return c();function c(){return o.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,t)=>{if(0 in e){t=a(t);var r=e[0],n=r<0;n&&(r=-r-1);for(var o=0,l=1,c=!0;;l++,o++){var u,s,d=l<e.length?(typeof e[l])[0]:"";if(o>=t.length||"o"==(s=(typeof(u=t[o]))[0]))return!c||("u"==d?l>r&&!n:""==d!=n);if("u"==s){if(!c||"u"!=d)return!1}else if(c)if(d==s)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"!=d&&"n"!=d){if(n||l<=r)return!1;c=!1,l--}else{if(l<=r||s<d!=n)return!1;c=!1}else"s"!=d&&"n"!=d&&(c=!1,l--)}}var f=[],h=f.pop.bind(f);for(o=1;o<e.length;o++){var p=e[o];f.push(1==p?h()|h():2==p?h()&h():p?i(p,t):!h())}return!!h()},c=(e,t)=>e&&S.o(e,t),u=e=>(e.loaded=1,e.get()),s=e=>Object.keys(e).reduce(((t,r)=>(e[r].eager&&(t[r]=e[r]),t)),{}),d=(e,t,r,n)=>{var a=n?s(e[t]):e[t];return(t=Object.keys(a).reduce(((e,t)=>!i(r,t)||e&&!o(e,t)?e:t),0))&&a[t]},f=(e,t,r)=>{var n=r?s(e[t]):e[t];return Object.keys(n).reduce(((e,t)=>!e||!n[e].loaded&&o(e,t)?t:e),0)},h=(e,t,r,n)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+l(n)+")",p=(e,t,r,n,a)=>{var o=e[r];return"No satisfying version ("+l(n)+")"+(a?" for eager consumption":"")+" of shared module "+r+" found in shared scope "+t+".\nAvailable versions: "+Object.keys(o).map((e=>e+" from "+o[e].from)).join(", ")},m=e=>{throw new Error(e)},b=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},g=(e,t,r)=>r?r():((e,t)=>m("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),x=(v=e=>function(t,r,n,a,o){var l=S.I(t);return l&&l.then&&!n?l.then(e.bind(e,t,S.S[t],r,!1,a,o)):e(t,S.S[t],r,n,a,o)})(((e,t,r,n,a,o)=>{if(!c(t,r))return g(e,r,o);var l=d(t,r,a,n);return l?u(l):o?o():void m(p(t,e,r,a,n))})),y=v(((e,t,r,n,a,o)=>{if(!c(t,r))return g(e,r,o);var l=f(t,r,n);return i(a,l)||b(h(t,r,l,a)),u(t[r][l])})),P={},j={8769:()=>x("default","react",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(4041).then((()=>()=>S(4041))))),1123:()=>x("default","@next-core/element",!1,[1,1,2,16],(()=>S.e(1045).then((()=>()=>S(1045))))),9006:()=>x("default","@next-core/react-element",!1,[1,1,0,35],(()=>Promise.all([S.e(1123),S.e(9435),S.e(7733)]).then((()=>()=>S(114))))),1030:()=>y("default","lodash",!1,[1,4,17,21],(()=>S.e(5250).then((()=>()=>S(5250))))),2729:()=>y("default","@next-core/utils/general",!1,[1,1,7,31],(()=>S.e(871).then((()=>()=>S(871))))),6477:()=>y("default","@next-core/theme",!1,[1,1,5,4],(()=>S.e(1889).then((()=>()=>S(1889))))),2716:()=>y("default","@next-core/runtime",!1,[1,1,59,2],(()=>Promise.all([S.e(6840),S.e(1030),S.e(2729),S.e(9733),S.e(7970),S.e(155),S.e(1321),S.e(3995),S.e(1732),S.e(6631)]).then((()=>()=>S(6840))))),5310:()=>y("default","js-yaml",!1,[0],(()=>S.e(9515).then((()=>()=>S(9515))))),9733:()=>y("default","@next-core/i18n",!1,[0],(()=>Promise.all([S.e(2729),S.e(671),S.e(3171)]).then((()=>()=>S(5552))))),7970:()=>y("default","@next-core/http",!1,[1,1,2,11],(()=>S.e(8989).then((()=>()=>S(8989))))),155:()=>y("default","moment",!1,[1,2,29,4],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(9420))))),1321:()=>y("default","@next-core/cook",!1,[0],(()=>Promise.all([S.e(1122),S.e(580)]).then((()=>()=>S(1122))))),9435:()=>x("default","react-dom",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>S.e(3144).then((()=>()=>S(3144))))),6376:()=>y("default","@next-core/utils/storyboard",!1,[1,1,7,31],(()=>Promise.all([S.e(1321),S.e(6314)]).then((()=>()=>S(3933))))),3848:()=>x("default","@next-core/react-runtime",!1,[1,1,7,9],(()=>Promise.all([S.e(1030),S.e(2716),S.e(7218)]).then((()=>()=>S(4837))))),9704:()=>y("default","@next-core/i18n/react",!1,[0],(()=>Promise.all([S.e(9733),S.e(8097)]).then((()=>()=>S(8097))))),1732:()=>y("default","history",!1,[0],(()=>S.e(5384).then((()=>()=>S(5384))))),580:()=>y("default","@babel/parser",!1,[0],(()=>S.e(6773).then((()=>()=>S(6773))))),7825:()=>y("default","react-i18next",!1,[1,12,3,1],(()=>Promise.all([S.e(7434),S.e(8769)]).then((()=>()=>S(7434))))),848:()=>y("default","i18next-browser-languagedetector",!1,[0],(()=>S.e(726).then((()=>()=>S(726))))),5630:()=>y("default","i18next",!1,[0],(()=>S.e(7304).then((()=>()=>S(7304))))),9933:()=>y("default","@next-core/pipes",!1,[0],(()=>S.e(6519).then((()=>()=>S(6519))))),8377:()=>y("default","@easyops-cn/brick-next-pipes",!1,[0],(()=>Promise.all([S.e(4291),S.e(1030),S.e(5310),S.e(155)]).then((()=>()=>S(4291))))),597:()=>y("default","moment/locale/zh-cn.js",!1,[1,2,29,4],(()=>Promise.all([S.e(7721),S.e(9844)]).then((()=>()=>S(1329))))),4167:()=>y("default","@next-core/supply",!1,[0],(()=>Promise.all([S.e(9933),S.e(1940)]).then((()=>()=>S(9559))))),5599:()=>y("default","@next-core/loader",!1,[0],(()=>S.e(5399).then((()=>()=>S(5399))))),9283:()=>y("default","@next-core/inject",!1,[0],(()=>Promise.all([S.e(9933),S.e(4658)]).then((()=>()=>S(2277)))))},k={155:[155],580:[580],671:[848,5630],1030:[1030],1123:[1123],1321:[1321],1732:[1732],2716:[2716],2729:[2729],3848:[3848],3995:[6376],5310:[5310],6477:[6477],6519:[8377],6631:[597,4167,5599,9283],7970:[7970],8097:[7825],8769:[8769],9006:[9006],9435:[9435],9704:[9704],9733:[9733],9933:[9933]},w={},S.f.consumes=(e,t)=>{S.o(k,e)&&k[e].forEach((e=>{if(S.o(P,e))return t.push(P[e]);if(!w[e]){var r=t=>{P[e]=0,S.m[e]=r=>{delete S.c[e],r.exports=t()}};w[e]=!0;var n=t=>{delete P[e],S.m[e]=r=>{throw delete S.c[e],t}};try{var a=j[e]();a.then?t.push(P[e]=a.then(r).catch(n)):r(a)}catch(e){n(e)}}}))},(()=>{var e={8792:0};S.f.j=(t,r)=>{var n=S.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(1(030|123|321|55|732)|27(16|29)|6(477|631|71)|9([79]33|006|435|704)|(531|58|797)0|3848|3995|8769)$/.test(t))e[t]=0;else{var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var o=S.p+S.u(t),l=new Error;S.l(o,(r=>{if(S.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",l.name="ChunkLoadError",l.type=a,l.request=o,n[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[o,l,i]=r,c=0;if(o.some((t=>0!==e[t]))){for(n in l)S.o(l,n)&&(S.m[n]=l[n]);i&&i(S)}for(t&&t(r);c<o.length;c++)a=o[c],S.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),S.nc=void 0,S(7934)})();
|
|
2
|
-
//# sourceMappingURL=main.fc66b3d7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/main.fc66b3d7.js","mappings":"UACIA,EADAC,ECAAC,EACAC,ECDAC,EAIAC,EAIAC,EAIAC,EAIAC,EAGAC,EAIAC,EAeAC,EAQAC,EAMAC,EAGAC,EAOAC,EAMAC,EAGAC,EAQAC,EAcAC,EAYAC,EAgBAC,EACAC,EA8BAC,EA2EAC,E,kBCnOJ,4R,GCCIC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CACjDK,GAAIL,EACJM,QAAQ,EACRH,QAAS,CAAC,GAUX,OANAI,EAAoBP,GAAUQ,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASJ,GAG3EK,EAAOE,QAAS,EAGTF,EAAOD,OACf,CAGAJ,EAAoBU,EAAIF,EAGxBR,EAAoBW,EAAIZ,EC9BxBC,EAAoBY,EAAKP,IACxB,IAAIQ,EAASR,GAAUA,EAAOS,WAC7B,IAAOT,EAAiB,QACxB,IAAM,EAEP,OADAL,EAAoBe,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ELNVtC,EAAW0C,OAAOC,eAAkBC,GAASF,OAAOC,eAAeC,GAASA,GAASA,EAAa,UAQtGnB,EAAoBoB,EAAI,SAASC,EAAOC,GAEvC,GADU,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EAAqBpE,KAAK,KAAM2E,EAAmBtG,KAAK2B,KAAK2E,G,KCrFvF/J,EAAoBsE,QAAKnE,ECGCH,EAAoB,K","sources":["webpack:///webpack/runtime/create fake namespace object","webpack:///webpack/runtime/load script","webpack:///webpack/runtime/consumes","webpack:///./src/index.ts","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/ensure chunk","webpack:///webpack/runtime/get javascript chunk filename","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/node module decorator","webpack:///webpack/runtime/sharing","webpack:///webpack/runtime/publicPath","webpack:///webpack/runtime/jsonp chunk loading","webpack:///webpack/runtime/nonce","webpack:///webpack/startup"],"sourcesContent":["var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"@next-bricks/visual-builder:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var parseVersion = (str) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar p=p=>{return p.split(\".\").map((p=>{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;\n}\nvar versionLt = (a, b) => {\n\t// see webpack/lib/util/semver.js for original code\n\ta=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&\"u\"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return\"u\"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return\"o\"==n&&\"n\"==f||(\"s\"==f||\"u\"==n);if(\"o\"!=n&&\"u\"!=n&&e!=t)return e<t;r++}\n}\nvar rangeToString = (range) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar r=range[0],n=\"\";if(1===range.length)return\"*\";if(r+.5){n+=0==r?\">=\":-1==r?\"<\":1==r?\"^\":2==r?\"~\":r>0?\"=\":\"!=\";for(var e=1,a=1;a<range.length;a++){e--,n+=\"u\"==(typeof(t=range[a]))[0]?\"-\":(e>0?\".\":\"\")+(e=2,t)}return n}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?\"not(\"+o()+\")\":1===t?\"(\"+o()+\" || \"+o()+\")\":2===t?g.pop()+\" \"+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,\"$1\")}\n}\nvar satisfy = (range, version) => {\n\t// see webpack/lib/util/semver.js for original code\n\tif(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:\"\";if(n>=version.length||\"o\"==(s=(typeof(f=version[n]))[0]))return!a||(\"u\"==g?i>e&&!r:\"\"==g!=r);if(\"u\"==s){if(!a||\"u\"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if(\"s\"!=g&&\"n\"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else\"s\"!=g&&\"n\"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();\n}\nvar exists = (scope, key) => {\n\treturn scope && __webpack_require__.o(scope, key);\n}\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar eagerOnly = (versions) => {\n\treturn Object.keys(versions).reduce((filtered, version) => {\n\t\t\tif (versions[version].eager) {\n\t\t\t\tfiltered[version] = versions[version];\n\t\t\t}\n\t\t\treturn filtered;\n\t}, {});\n};\nvar findLatestVersion = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key];\n};\nvar findSatisfyingVersion = (scope, key, requiredVersion, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\tif (!satisfy(requiredVersion, b)) return a;\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar findSingletonVersionKey = (scope, key, eager) => {\n\tvar versions = eager ? eagerOnly(scope[key]) : scope[key];\n\treturn Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;\n\t}, 0);\n};\nvar getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {\n\treturn \"Unsatisfied version \" + version + \" from \" + (version && scope[key][version].from) + \" of shared singleton module \" + key + \" (required \" + rangeToString(requiredVersion) + \")\"\n};\nvar getInvalidVersionMessage = (scope, scopeName, key, requiredVersion, eager) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \")\" + (eager ? \" for eager consumption\" : \"\") + \" of shared module \" + key + \" found in shared scope \" + scopeName + \".\\n\" +\n\t\t\"Available versions: \" + Object.keys(versions).map((key) => {\n\t\treturn key + \" from \" + versions[key].from;\n\t}).join(\", \");\n};\nvar fail = (msg) => {\n\tthrow new Error(msg);\n}\nvar failAsNotExist = (scopeName, key) => {\n\treturn fail(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n}\nvar warn = /*#__PURE__*/ (msg) => {\n\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n};\nvar init = (fn) => (function(scopeName, key, eager, c, d) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then && !eager) {\n\t\treturn promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], key, false, c, d));\n\t}\n\treturn fn(scopeName, __webpack_require__.S[scopeName], key, eager, c, d);\n});\n\nvar useFallback = (scopeName, key, fallback) => {\n\treturn fallback ? fallback() : failAsNotExist(scopeName, key);\n}\nvar load = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\twarn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager))\n\treturn get(findLatestVersion(scope, key, eager));\n});\nvar loadStrictVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar satisfyingVersion = findSatisfyingVersion(scope, key, requiredVersion, eager);\n\tif (satisfyingVersion) return get(satisfyingVersion);\n\tif (fallback) return fallback();\n\tfail(getInvalidVersionMessage(scope, scopeName, key, requiredVersion, eager));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key, eager, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\treturn get(scope[key][version]);\n});\nvar loadSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\twarn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar loadStrictSingletonVersion = /*#__PURE__*/ init((scopeName, scope, key, eager, requiredVersion, fallback) => {\n\tif (!exists(scope, key)) return useFallback(scopeName, key, fallback);\n\tvar version = findSingletonVersionKey(scope, key, eager);\n\tif (!satisfy(requiredVersion, version)) {\n\t\tfail(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\t}\n\treturn get(scope[key][version]);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t8769: () => (loadStrictVersion(\"default\", \"react\", false, [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(4041).then(() => (() => (__webpack_require__(4041))))))),\n\t1123: () => (loadStrictVersion(\"default\", \"@next-core/element\", false, [1,1,2,16], () => (__webpack_require__.e(1045).then(() => (() => (__webpack_require__(1045))))))),\n\t9006: () => (loadStrictVersion(\"default\", \"@next-core/react-element\", false, [1,1,0,35], () => (Promise.all([__webpack_require__.e(1123), __webpack_require__.e(9435), __webpack_require__.e(7733)]).then(() => (() => (__webpack_require__(114))))))),\n\t1030: () => (loadSingletonVersion(\"default\", \"lodash\", false, [1,4,17,21], () => (__webpack_require__.e(5250).then(() => (() => (__webpack_require__(5250))))))),\n\t2729: () => (loadSingletonVersion(\"default\", \"@next-core/utils/general\", false, [1,1,7,31], () => (__webpack_require__.e(871).then(() => (() => (__webpack_require__(871))))))),\n\t6477: () => (loadSingletonVersion(\"default\", \"@next-core/theme\", false, [1,1,5,4], () => (__webpack_require__.e(1889).then(() => (() => (__webpack_require__(1889))))))),\n\t2716: () => (loadSingletonVersion(\"default\", \"@next-core/runtime\", false, [1,1,59,2], () => (Promise.all([__webpack_require__.e(6840), __webpack_require__.e(1030), __webpack_require__.e(2729), __webpack_require__.e(9733), __webpack_require__.e(7970), __webpack_require__.e(155), __webpack_require__.e(1321), __webpack_require__.e(3995), __webpack_require__.e(1732), __webpack_require__.e(6631)]).then(() => (() => (__webpack_require__(6840))))))),\n\t5310: () => (loadSingletonVersion(\"default\", \"js-yaml\", false, [0], () => (__webpack_require__.e(9515).then(() => (() => (__webpack_require__(9515))))))),\n\t9733: () => (loadSingletonVersion(\"default\", \"@next-core/i18n\", false, [0], () => (Promise.all([__webpack_require__.e(2729), __webpack_require__.e(671), __webpack_require__.e(3171)]).then(() => (() => (__webpack_require__(5552))))))),\n\t7970: () => (loadSingletonVersion(\"default\", \"@next-core/http\", false, [1,1,2,11], () => (__webpack_require__.e(8989).then(() => (() => (__webpack_require__(8989))))))),\n\t155: () => (loadSingletonVersion(\"default\", \"moment\", false, [1,2,29,4], () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(9420))))))),\n\t1321: () => (loadSingletonVersion(\"default\", \"@next-core/cook\", false, [0], () => (Promise.all([__webpack_require__.e(1122), __webpack_require__.e(580)]).then(() => (() => (__webpack_require__(1122))))))),\n\t9435: () => (loadStrictVersion(\"default\", \"react-dom\", false, [6,0,0,0,,\"experimental-ee8509801-20230117\"], () => (__webpack_require__.e(3144).then(() => (() => (__webpack_require__(3144))))))),\n\t6376: () => (loadSingletonVersion(\"default\", \"@next-core/utils/storyboard\", false, [1,1,7,31], () => (Promise.all([__webpack_require__.e(1321), __webpack_require__.e(6314)]).then(() => (() => (__webpack_require__(3933))))))),\n\t3848: () => (loadStrictVersion(\"default\", \"@next-core/react-runtime\", false, [1,1,7,9], () => (Promise.all([__webpack_require__.e(1030), __webpack_require__.e(2716), __webpack_require__.e(7218)]).then(() => (() => (__webpack_require__(4837))))))),\n\t9704: () => (loadSingletonVersion(\"default\", \"@next-core/i18n/react\", false, [0], () => (Promise.all([__webpack_require__.e(9733), __webpack_require__.e(8097)]).then(() => (() => (__webpack_require__(8097))))))),\n\t1732: () => (loadSingletonVersion(\"default\", \"history\", false, [0], () => (__webpack_require__.e(5384).then(() => (() => (__webpack_require__(5384))))))),\n\t580: () => (loadSingletonVersion(\"default\", \"@babel/parser\", false, [0], () => (__webpack_require__.e(6773).then(() => (() => (__webpack_require__(6773))))))),\n\t7825: () => (loadSingletonVersion(\"default\", \"react-i18next\", false, [1,12,3,1], () => (Promise.all([__webpack_require__.e(7434), __webpack_require__.e(8769)]).then(() => (() => (__webpack_require__(7434))))))),\n\t848: () => (loadSingletonVersion(\"default\", \"i18next-browser-languagedetector\", false, [0], () => (__webpack_require__.e(726).then(() => (() => (__webpack_require__(726))))))),\n\t5630: () => (loadSingletonVersion(\"default\", \"i18next\", false, [0], () => (__webpack_require__.e(7304).then(() => (() => (__webpack_require__(7304))))))),\n\t9933: () => (loadSingletonVersion(\"default\", \"@next-core/pipes\", false, [0], () => (__webpack_require__.e(6519).then(() => (() => (__webpack_require__(6519))))))),\n\t8377: () => (loadSingletonVersion(\"default\", \"@easyops-cn/brick-next-pipes\", false, [0], () => (Promise.all([__webpack_require__.e(4291), __webpack_require__.e(1030), __webpack_require__.e(5310), __webpack_require__.e(155)]).then(() => (() => (__webpack_require__(4291))))))),\n\t597: () => (loadSingletonVersion(\"default\", \"moment/locale/zh-cn.js\", false, [1,2,29,4], () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(1329))))))),\n\t4167: () => (loadSingletonVersion(\"default\", \"@next-core/supply\", false, [0], () => (Promise.all([__webpack_require__.e(9933), __webpack_require__.e(1940)]).then(() => (() => (__webpack_require__(9559))))))),\n\t5599: () => (loadSingletonVersion(\"default\", \"@next-core/loader\", false, [0], () => (__webpack_require__.e(5399).then(() => (() => (__webpack_require__(5399))))))),\n\t9283: () => (loadSingletonVersion(\"default\", \"@next-core/inject\", false, [0], () => (Promise.all([__webpack_require__.e(9933), __webpack_require__.e(4658)]).then(() => (() => (__webpack_require__(2277)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"155\": [\n\t\t155\n\t],\n\t\"580\": [\n\t\t580\n\t],\n\t\"671\": [\n\t\t848,\n\t\t5630\n\t],\n\t\"1030\": [\n\t\t1030\n\t],\n\t\"1123\": [\n\t\t1123\n\t],\n\t\"1321\": [\n\t\t1321\n\t],\n\t\"1732\": [\n\t\t1732\n\t],\n\t\"2716\": [\n\t\t2716\n\t],\n\t\"2729\": [\n\t\t2729\n\t],\n\t\"3848\": [\n\t\t3848\n\t],\n\t\"3995\": [\n\t\t6376\n\t],\n\t\"5310\": [\n\t\t5310\n\t],\n\t\"6477\": [\n\t\t6477\n\t],\n\t\"6519\": [\n\t\t8377\n\t],\n\t\"6631\": [\n\t\t597,\n\t\t4167,\n\t\t5599,\n\t\t9283\n\t],\n\t\"7970\": [\n\t\t7970\n\t],\n\t\"8097\": [\n\t\t7825\n\t],\n\t\"8769\": [\n\t\t8769\n\t],\n\t\"9006\": [\n\t\t9006\n\t],\n\t\"9435\": [\n\t\t9435\n\t],\n\t\"9704\": [\n\t\t9704\n\t],\n\t\"9733\": [\n\t\t9733\n\t],\n\t\"9933\": [\n\t\t9933\n\t]\n};\nvar startedInstallModules = {};\n__webpack_require__.f.consumes = (chunkId, promises) => {\n\tif(__webpack_require__.o(chunkMapping, chunkId)) {\n\t\tchunkMapping[chunkId].forEach((id) => {\n\t\t\tif(__webpack_require__.o(installedModules, id)) return promises.push(installedModules[id]);\n\t\t\tif(!startedInstallModules[id]) {\n\t\t\tvar onFactory = (factory) => {\n\t\t\t\tinstalledModules[id] = 0;\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tmodule.exports = factory();\n\t\t\t\t}\n\t\t\t};\n\t\t\tstartedInstallModules[id] = true;\n\t\t\tvar onError = (error) => {\n\t\t\t\tdelete installedModules[id];\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tvar promise = moduleToHandlerMapping[id]();\n\t\t\t\tif(promise.then) {\n\t\t\t\t\tpromises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));\n\t\t\t\t} else onFactory(promise);\n\t\t\t} catch(e) { onError(e); }\n\t\t\t}\n\t\t});\n\t}\n}","import(\"./bootstrap.js\");\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"chunks/\" + chunkId + \".\" + {\"114\":\"aaa7c484\",\"726\":\"b2215460\",\"871\":\"fff582b1\",\"1045\":\"f6e80fec\",\"1122\":\"ba17383d\",\"1304\":\"a8196a2e\",\"1889\":\"c21de868\",\"1940\":\"94045d6e\",\"2052\":\"f1624476\",\"2201\":\"21df7990\",\"2277\":\"73960d42\",\"2464\":\"3e4124ec\",\"2980\":\"b1bfe52c\",\"3144\":\"0096b9c3\",\"3171\":\"5cd02271\",\"3933\":\"21c52045\",\"4041\":\"468489fa\",\"4291\":\"3c12fe9f\",\"4658\":\"758b09ca\",\"4837\":\"b122ae40\",\"5250\":\"f22684c9\",\"5384\":\"7fbe2a84\",\"5399\":\"2121beed\",\"5522\":\"ab1061cc\",\"5552\":\"3773d6dd\",\"5659\":\"9000e441\",\"6117\":\"1d7ec00c\",\"6314\":\"7cf962aa\",\"6519\":\"11291cc6\",\"6773\":\"9ed5373b\",\"6840\":\"21d31b93\",\"7085\":\"593a28a6\",\"7218\":\"2d0daf7d\",\"7304\":\"09d181ac\",\"7434\":\"67a7c326\",\"7721\":\"6dd8673d\",\"7733\":\"8b0e5606\",\"8097\":\"beaba572\",\"8989\":\"0517d458\",\"9080\":\"b51b1966\",\"9515\":\"80c4b472\",\"9559\":\"c6a42507\",\"9844\":\"4328557b\"}[chunkId] + \".js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => {\n\t\tif (typeof console !== \"undefined\" && console.warn) console.warn(msg);\n\t};\n\tvar uniqueName = \"@next-bricks/visual-builder\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult['catch'](handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t\tcase \"default\": {\n\t\t\tregister(\"@babel/parser\", \"7.25.3\", () => (__webpack_require__.e(6773).then(() => (() => (__webpack_require__(6773))))));\n\t\t\tregister(\"@easyops-cn/brick-next-pipes\", \"0.7.1\", () => (Promise.all([__webpack_require__.e(4291), __webpack_require__.e(1030), __webpack_require__.e(5310), __webpack_require__.e(155)]).then(() => (() => (__webpack_require__(4291))))));\n\t\t\tregister(\"@next-core/cook\", \"2.5.6\", () => (Promise.all([__webpack_require__.e(1122), __webpack_require__.e(580)]).then(() => (() => (__webpack_require__(1122))))));\n\t\t\tregister(\"@next-core/element\", \"1.2.16\", () => (__webpack_require__.e(1045).then(() => (() => (__webpack_require__(1045))))));\n\t\t\tregister(\"@next-core/http\", \"1.2.11\", () => (__webpack_require__.e(8989).then(() => (() => (__webpack_require__(8989))))));\n\t\t\tregister(\"@next-core/i18n/react\", \"1.0.73\", () => (Promise.all([__webpack_require__.e(9733), __webpack_require__.e(8097)]).then(() => (() => (__webpack_require__(8097))))));\n\t\t\tregister(\"@next-core/i18n\", \"1.0.73\", () => (Promise.all([__webpack_require__.e(2729), __webpack_require__.e(9733), __webpack_require__.e(671), __webpack_require__.e(5552)]).then(() => (() => (__webpack_require__(5552))))));\n\t\t\tregister(\"@next-core/inject\", \"1.0.51\", () => (Promise.all([__webpack_require__.e(1030), __webpack_require__.e(9933), __webpack_require__.e(2277)]).then(() => (() => (__webpack_require__(2277))))));\n\t\t\tregister(\"@next-core/loader\", \"1.6.14\", () => (__webpack_require__.e(5399).then(() => (() => (__webpack_require__(5399))))));\n\t\t\tregister(\"@next-core/pipes\", \"2.0.30\", () => (__webpack_require__.e(6519).then(() => (() => (__webpack_require__(6519))))));\n\t\t\tregister(\"@next-core/react-element\", \"1.0.35\", () => (Promise.all([__webpack_require__.e(8769), __webpack_require__.e(1123), __webpack_require__.e(9435), __webpack_require__.e(114)]).then(() => (() => (__webpack_require__(114))))));\n\t\t\tregister(\"@next-core/react-runtime\", \"1.7.9\", () => (Promise.all([__webpack_require__.e(8769), __webpack_require__.e(9006), __webpack_require__.e(1030), __webpack_require__.e(2716), __webpack_require__.e(4837)]).then(() => (() => (__webpack_require__(4837))))));\n\t\t\tregister(\"@next-core/runtime\", \"1.59.2\", () => (Promise.all([__webpack_require__.e(6840), __webpack_require__.e(1030), __webpack_require__.e(2729), __webpack_require__.e(9733), __webpack_require__.e(7970), __webpack_require__.e(155), __webpack_require__.e(1321), __webpack_require__.e(3995), __webpack_require__.e(1732), __webpack_require__.e(6631)]).then(() => (() => (__webpack_require__(6840))))));\n\t\t\tregister(\"@next-core/supply\", \"2.3.3\", () => (Promise.all([__webpack_require__.e(1030), __webpack_require__.e(155), __webpack_require__.e(9933), __webpack_require__.e(9559)]).then(() => (() => (__webpack_require__(9559))))));\n\t\t\tregister(\"@next-core/theme\", \"1.5.4\", () => (Promise.all([__webpack_require__.e(1889), __webpack_require__.e(2052)]).then(() => (() => (__webpack_require__(1889))))));\n\t\t\tregister(\"@next-core/utils/general\", \"1.7.31\", () => (__webpack_require__.e(871).then(() => (() => (__webpack_require__(871))))));\n\t\t\tregister(\"@next-core/utils/storyboard\", \"1.7.31\", () => (Promise.all([__webpack_require__.e(2729), __webpack_require__.e(1321), __webpack_require__.e(3933)]).then(() => (() => (__webpack_require__(3933))))));\n\t\t\tregister(\"history\", \"4.10.1\", () => (__webpack_require__.e(5384).then(() => (() => (__webpack_require__(5384))))));\n\t\t\tregister(\"i18next-browser-languagedetector\", \"7.2.2\", () => (__webpack_require__.e(726).then(() => (() => (__webpack_require__(726))))));\n\t\t\tregister(\"i18next\", \"22.5.1\", () => (__webpack_require__.e(7304).then(() => (() => (__webpack_require__(7304))))));\n\t\t\tregister(\"js-yaml\", \"3.14.1\", () => (__webpack_require__.e(9515).then(() => (() => (__webpack_require__(9515))))));\n\t\t\tregister(\"lodash\", \"4.17.21\", () => (__webpack_require__.e(5250).then(() => (() => (__webpack_require__(5250))))));\n\t\t\tregister(\"moment/locale/zh-cn.js\", \"2.30.1\", () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(1329))))));\n\t\t\tregister(\"moment\", \"2.30.1\", () => (Promise.all([__webpack_require__.e(7721), __webpack_require__.e(9844)]).then(() => (() => (__webpack_require__(9420))))));\n\t\t\tregister(\"react-dom\", \"0.0.0-experimental-ee8509801-20230117\", () => (Promise.all([__webpack_require__.e(3144), __webpack_require__.e(8769)]).then(() => (() => (__webpack_require__(3144))))));\n\t\t\tregister(\"react-i18next\", \"12.3.1\", () => (Promise.all([__webpack_require__.e(7434), __webpack_require__.e(8769)]).then(() => (() => (__webpack_require__(7434))))));\n\t\t\tregister(\"react\", \"0.0.0-experimental-ee8509801-20230117\", () => (__webpack_require__.e(4041).then(() => (() => (__webpack_require__(4041))))));\n\t\t}\n\t\tbreak;\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl + \"../\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t8792: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(1(030|123|321|55|732)|27(16|29)|6(477|631|71)|9([79]33|006|435|704)|(531|58|797)0|3848|3995|8769)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunk_next_bricks_visual_builder\"] = globalThis[\"webpackChunk_next_bricks_visual_builder\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__(7934);\n"],"names":["leafPrototypes","getProto","inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","exists","get","eagerOnly","findSatisfyingVersion","findSingletonVersionKey","getInvalidSingletonVersionMessage","getInvalidVersionMessage","fail","warn","init","useFallback","loadStrictVersion","loadSingletonVersion","installedModules","moduleToHandlerMapping","chunkMapping","startedInstallModules","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","id","loaded","__webpack_modules__","call","m","c","n","getter","__esModule","d","a","Object","getPrototypeOf","obj","t","value","mode","this","then","ns","create","r","def","current","indexOf","getOwnPropertyNames","forEach","key","definition","o","defineProperty","enumerable","f","e","chunkId","Promise","all","keys","reduce","promises","u","g","globalThis","Function","window","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","fn","setTimeout","bind","type","target","head","appendChild","Symbol","toStringTag","nmd","paths","children","S","initPromises","initTokens","I","name","initScope","initToken","scope","uniqueName","register","version","factory","eager","versions","activeVersion","from","scriptUrl","importScripts","location","currentScript","tagName","toUpperCase","test","Error","replace","p","str","split","map","exec","apply","b","range","pop","entry","filtered","requiredVersion","scopeName","join","msg","console","fallback","failAsNotExist","promise","satisfyingVersion","consumes","onFactory","onError","error","installedChunks","j","installedChunkData","resolve","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal"],"sourceRoot":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see page-arch-node.6b2ea1fe.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[2052,4892],{5014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PageArchNode:()=>we,PageArchNodeComponent:()=>Ze});var o,i=n(4635),r=n(918),a=n(6902),l=n(5536),s=n(6121),c=n(829),u=n(2740),d=n(8769),h=n.n(d),p=n(1123),b=n(9006),f=(n(6477),n(3373)),v=n.n(f),g=n(2381);let m,A,y,x,k,w,C,E,N,M,S,W,D,j,P,O,z,T,_,F,B,L,R,X,Y,I,K,q,G,H,J,Q,U,V,Z,$,ee,te,ne,oe,ie,re,ae,le,se,ce,ue,de,he,pe,be,fe,ve;const{defineElement:ge,property:me,event:Ae}=(0,p.createDecorators)(),ye=(0,b.wrapBrick)("eo-icon"),xe=(0,b.wrapBrick)("eo-tooltip"),ke=new Set;let we;var Ce=new WeakMap,Ee=new WeakMap,Ne=new WeakMap,Me=new WeakMap,Se=new WeakMap,We=new WeakMap,De=new WeakMap,je=new WeakMap,Pe=new WeakMap,Oe=new WeakSet,ze=new WeakMap,Te=new WeakMap,_e=new WeakMap,Fe=new WeakMap,Be=new WeakMap,Le=new WeakMap,Re=new WeakMap,Xe=new WeakMap,Ye=new WeakMap,Ie=new WeakMap,Ke=new WeakMap,qe=new WeakMap,Ge=new WeakMap,He=new WeakMap,Je=new WeakMap,Qe=new WeakMap,Ue=new WeakMap;class Ve extends b.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,Oe),(0,r.A)(this,Ce,A(this)),(0,r.A)(this,Ee,(y(this),x(this))),(0,r.A)(this,Ne,(k(this),w(this))),(0,r.A)(this,Me,(C(this),E(this))),(0,r.A)(this,Se,(N(this),M(this))),(0,r.A)(this,We,(S(this),W(this))),(0,r.A)(this,De,(D(this),j(this))),(0,r.A)(this,je,(P(this),O(this))),(0,r.A)(this,Pe,(z(this),T(this))),(0,r.A)(this,ze,(B(this),e=>{(0,l.A)(Oe,this,_).emit(e)})),(0,r.A)(this,Te,L(this)),(0,r.A)(this,_e,(Y(this),e=>{(0,l.A)(Oe,this,R).emit(e)})),(0,r.A)(this,Fe,I(this)),(0,r.A)(this,Be,(G(this),()=>{(0,l.A)(Oe,this,K).emit()})),(0,r.A)(this,Le,H(this)),(0,r.A)(this,Re,(U(this),()=>{(0,l.A)(Oe,this,J).emit()})),(0,r.A)(this,Xe,V(this)),(0,r.A)(this,Ye,(ee(this),e=>{(0,l.A)(Oe,this,Z).emit(e)})),(0,r.A)(this,Ie,te(this)),(0,r.A)(this,Ke,(ie(this),()=>{(0,l.A)(Oe,this,ne).emit()})),(0,r.A)(this,qe,re(this)),(0,r.A)(this,Ge,(se(this),e=>{(0,l.A)(Oe,this,ae).emit(e)})),(0,r.A)(this,He,ce(this)),(0,r.A)(this,Je,(he(this),e=>{(0,l.A)(Oe,this,ue).emit(e)})),(0,r.A)(this,Qe,pe(this)),(0,r.A)(this,Ue,(ve(this),e=>{(0,l.A)(Oe,this,be).emit(e)}))}get label(){return(0,c.A)(Ce,this)}set label(e){(0,s.A)(Ce,this,e)}get type(){return(0,c.A)(Ee,this)}set type(e){(0,s.A)(Ee,this,e)}get external(){return(0,c.A)(Ne,this)}set external(e){(0,s.A)(Ne,this,e)}get subNodes(){return(0,c.A)(Me,this)}set subNodes(e){(0,s.A)(Me,this,e)}get active(){return(0,c.A)(Se,this)}set active(e){(0,s.A)(Se,this,e)}get notSynced(){return(0,c.A)(We,this)}set notSynced(e){(0,s.A)(We,this,e)}get disableChildAppend(){return(0,c.A)(De,this)}set disableChildAppend(e){(0,s.A)(De,this,e)}get autoFocusOnce(){return(0,c.A)(je,this)}set autoFocusOnce(e){(0,s.A)(je,this,e)}render(){return h().createElement(Ze,{label:this.label,type:this.type,external:this.external,subNodes:this.subNodes,autoFocusOnce:this.autoFocusOnce,onLabelEditingChange:(0,c.A)(ze,this),onLabelChange:(0,c.A)(_e,this),onNodeClick:(0,c.A)(Be,this),onNodeDoubleClick:(0,c.A)(Re,this),onNodeContextMenu:(0,c.A)(Ye,this),onChildAppend:(0,c.A)(Ke,this),onExternalClick:(0,c.A)(Ge,this),onSubNodeDoubleClick:(0,c.A)(Je,this),onSubNodeContextMenu:(0,c.A)(Ue,this)})}}function Ze(e){var t;let{label:n,type:o,external:i,subNodes:r,autoFocusOnce:a,onLabelEditingChange:l,onLabelChange:s,onNodeClick:c,onNodeDoubleClick:u,onNodeContextMenu:p,onChildAppend:b,onExternalClick:f,onSubNodeDoubleClick:g,onSubNodeContextMenu:m}=e;const A="board"===o?"board":"page",[y,x]=(0,d.useState)(n),[k,w]=(0,d.useState)(!1),C=(0,d.useRef)(!1),[E,N]=(0,d.useState)(!1),M=(0,d.useRef)(null);(0,d.useEffect)((()=>{x(n)}),[n]);const S=(0,d.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),w(!0)}),[]);(0,d.useEffect)((()=>{a&&!ke.has(a)&&(ke.add(a),setTimeout((()=>{w(!0)}),1))}),[a]),(0,d.useEffect)((()=>{var e,t;k&&(null===(e=M.current)||void 0===e||e.focus({preventScroll:!0}),null===(t=M.current)||void 0===t||t.select())}),[k]),(0,d.useEffect)((()=>{C.current?null==l||l(k):C.current=!0}),[k,l]);const W=(0,d.useCallback)((e=>{x(e.target.value)}),[]),D=(0,d.useCallback)((e=>{const t=e.key||e.keyCode||e.which;var n;"Enter"!==t&&13!==t||null===(n=M.current)||void 0===n||n.blur()}),[]),j=(0,d.useCallback)((()=>{w(!1),N(!0)}),[]);(0,d.useEffect)((()=>{E&&(null==s||s(y),N(!1))}),[y,s,E]);const P=(0,d.useCallback)((e=>{e.stopPropagation(),null==b||b()}),[b]),O=(0,d.useCallback)((e=>{e.stopPropagation(),null==f||f(i)}),[i,f]),z=(0,d.useCallback)((e=>{e.stopPropagation()}),[]),T=38*Math.max(0,Math.floor((null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)-3));return h().createElement(h().Fragment,null,h().createElement("div",{className:v()("node",A,{"editing-label":k}),style:{height:"board"===A?70:130+T},onClick:c,onDoubleClick:u,onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==p||p({clientX:e.clientX,clientY:e.clientY})}},h().createElement("input",{className:"label-input",value:y,ref:M,onChange:W,onKeyDown:D,onBlur:j,onDoubleClick:z,onContextMenu:z,onMouseDown:z}),h().createElement("div",{className:"label",onDoubleClick:S,onMouseDown:z},y),"board"===A?h().createElement("div",{className:"icon-container"},h().createElement(ye,{lib:"antd",icon:"unordered-list"})):h().createElement("div",{className:"thumbnail-container",style:{height:98+T}},h().createElement("div",{className:"thumbnail-placeholder"},h().createElement(ye,{lib:"antd",icon:"ellipsis"})),i&&h().createElement("div",{className:"external",onClick:O,onDoubleClick:z,onMouseDown:z},h().createElement(ye,{lib:"antd",icon:"desktop"}),h().createElement("span",{className:"external-label"},i.label)),null!=r&&r.length?h().createElement("div",{className:"sub-nodes"},r.map((e=>h().createElement($e,{key:e.id,subNode:e,onSubNodeDoubleClick:g,onSubNodeContextMenu:m})))):null)),h().createElement("div",{className:"add-button",role:"button",onClick:P,onMouseDown:z},h().createElement(ye,{lib:"fa",icon:"plus"})))}function $e(e){let{subNode:t,onSubNodeDoubleClick:n,onSubNodeContextMenu:o}=e;return h().createElement(xe,{key:t.id,content:t.label},h().createElement("div",{className:"sub-node",onDoubleClick:e=>{e.stopPropagation(),null==n||n(t)},onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==o||o({node:t,clientX:e.clientX,clientY:e.clientY})}},h().createElement("div",{className:"sub-node-skeleton-title"}),h().createElement("div",{className:"sub-node-skeleton-content"}),h().createElement("div",{className:"sub-node-skeleton-button"})))}o=Ve,({e:[A,y,x,k,w,C,E,N,M,S,W,D,j,P,O,z,T,_,F,B,L,R,X,Y,I,K,q,G,H,J,Q,U,V,Z,$,ee,te,ne,oe,ie,re,ae,le,se,ce,ue,de,he,pe,be,fe,ve],c:[we,m]}=(0,u.A)(o,[ge("visual-builder.page-arch-node",{styleTexts:[g.A]})],[[me(),1,"label"],[me(),1,"type"],[me({attribute:!1}),1,"external"],[me({attribute:!1}),1,"subNodes"],[me({type:Boolean,render:!1}),1,"active"],[me({type:Boolean,render:!1}),1,"notSynced"],[me({type:Boolean,render:!1}),1,"disableChildAppend"],[me(),1,"autoFocusOnce"],[Ae({type:"label.editing.change"}),1,"labelEditingChange",e=>(0,c.A)(Pe,e),(e,t)=>(0,s.A)(Pe,e,t)],[Ae({type:"label.change"}),1,"labelChange",e=>(0,c.A)(Te,e),(e,t)=>(0,s.A)(Te,e,t)],[Ae({type:"node.click"}),1,"nodeClick",e=>(0,c.A)(Fe,e),(e,t)=>(0,s.A)(Fe,e,t)],[Ae({type:"node.dblclick"}),1,"nodeDoubleClick",e=>(0,c.A)(Le,e),(e,t)=>(0,s.A)(Le,e,t)],[Ae({type:"node.contextmenu"}),1,"nodeContextMenu",e=>(0,c.A)(Xe,e),(e,t)=>(0,s.A)(Xe,e,t)],[Ae({type:"child.append"}),1,"childAppend",e=>(0,c.A)(Ie,e),(e,t)=>(0,s.A)(Ie,e,t)],[Ae({type:"external.click"}),1,"externalClick",e=>(0,c.A)(qe,e),(e,t)=>(0,s.A)(qe,e,t)],[Ae({type:"subNode.dblclick"}),1,"subNodeDoubleClick",e=>(0,c.A)(He,e),(e,t)=>(0,s.A)(He,e,t)],[Ae({type:"subNode.contextmenu"}),1,"subNodeContextMenu",e=>(0,c.A)(Qe,e),(e,t)=>(0,s.A)(Qe,e,t)]],0,(e=>Ue.has((0,a.A)(e))),b.ReactNextElement)),m()},2381:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(6758),i=n.n(o),r=n(935),a=n.n(r)()(i());a.push([e.id,":host{--local-node-outline-style:solid;display:block}:host([hidden]){display:none}:host([not-synced]){--local-node-outline-style:dashed}*{box-sizing:border-box}.node{width:168px;max-width:none;height:130px;position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.node.board{height:70px;max-width:168px;width:-moz-fit-content;width:fit-content;padding-bottom:4px}.label,\n.label-input{width:100%;height:24px;padding:3px;border:none;line-height:18px;font-size:var(--sub-title-font-size-small);color:var(--color-header-text);font-weight:var(--font-weight-500);text-align:center;font-family:inherit;cursor:text;-webkit-user-select:text;user-select:text}.label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.node.editing-label .label{height:0}.node:not(.editing-label) .label-input{display:none}.add-button,\n.icon-container,\n.thumbnail-container,\n.thumbnail-placeholder{display:flex;align-items:center;justify-content:center}.thumbnail-container{height:98px;outline:1px var(--local-node-outline-style) var(--palette-gray-4);opacity:1;border:4px solid transparent;border-radius:4px;width:100%;position:relative;flex-direction:column}.thumbnail-placeholder{color:var(--palette-gray-5);font-size:36px;flex:1}.icon-container{font-size:20px;background-color:var(--palette-teal-6);color:var(--palette-gray-4);width:36px;height:36px;border-radius:50%;outline-offset:4px}:host([active]) .thumbnail-container,\n:host([active]) .icon-container{outline:2px var(--local-node-outline-style) var(--palette-blue-3)}:host(:not([active])) .node:hover .thumbnail-container,\n:host(:not([active])) .node:hover .icon-container{outline:1px var(--local-node-outline-style) var(--palette-blue-3)}.add-button{position:absolute;bottom:-26px;left:calc(50% - 12px);width:24px;height:24px;background:var(--palette-gray-3);color:var(--palette-gray-6);border-radius:50%;cursor:pointer}:host([not-synced]) .add-button,\n:host([disable-child-append]) .add-button,\n:host(:not([active])) .add-button{display:none}.add-button:hover{background:var(--palette-blue-5);color:var(--palette-gray-2)}.external{position:absolute;top:4px;left:4px;padding:0 10px;display:flex;align-items:center;gap:6px;background:var(--palette-purple-4);font-size:12px;line-height:20px;height:22px;cursor:pointer;color:var(--palette-gray-1);border-radius:9999px;right:4px;max-width:-moz-fit-content;max-width:fit-content}.external-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.external:hover{background:var(--palette-purple-5)}.sub-nodes{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;width:100%}.sub-node{background-color:var(--palette-gray-2);border-radius:4px;padding:6px;display:flex;flex-direction:column;justify-content:space-between;height:32px}.sub-node-skeleton-title{width:18px;height:4px;border-radius:2px;align-self:flex-start;background-color:var(--palette-gray-4)}.sub-node-skeleton-content{width:100%;height:4px;border-radius:2px;background-color:var(--palette-gray-4)}.sub-node-skeleton-button{width:18px;height:4px;border-radius:2px;align-self:flex-end;background-color:var(--palette-blue-3)}.sub-node:hover{background-color:var(--palette-gray-3)}.sub-node:hover .sub-node-skeleton-title,\n.sub-node:hover .sub-node-skeleton-content{background-color:var(--palette-gray-5)}.sub-node:hover .sub-node-skeleton-button{background-color:var(--palette-blue-4)}",""]);const l=a.toString()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,i,r){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&a[u[0]]||(void 0!==r&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3373:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},2740:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(7545),i=n(6902);function r(e,t,n){"symbol"==(0,o.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(1369);function l(e,t,n,l,s,c){var u,d,h,p,b,f,v,g=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,A=Object.create,y=[A(null),A(null)],x=t.length;function k(t,n,o){return function(i,r){n&&(r=i,i=e);for(var a=0;a<t.length;a++)r=t[a].apply(i,o?[r]:[]);return o?r:i}}function w(e,t,n,o){if("function"!=typeof e&&(o||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(o?"":" or undefined"));return e}function C(e,t,n,i,a,l,s,c,h,p,b){function f(e){if(!b(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),g=t[3],A=!s,x=1===a,C=3===a,E=4===a,N=2===a;function M(t,n,o){return function(i,r){return n&&(r=i,i=e),o&&o(i),S[t].call(i,r)}}if(!A){var S={},W=[],D=C?"get":E||x?"set":"value";if(h?(p||x?S={get:r((function(){return g(this)}),i,"get"),set:function(e){t[4](this,e)}}:S[D]=g,p||r(S[D],i,N?"":D)):p||(S=Object.getOwnPropertyDescriptor(e,i)),!p&&!h){if((d=y[+c][i])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+S[D].name+") is not supported yet");y[+c][i]=a<3?1:a}}for(var j=e,P=v.length-1;P>=0;P-=n?2:1){var O=w(v[P],"A decorator","be",!0),z=n?v[P-1]:void 0,T={},_={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");w(t,"An initializer","be",!0),l.push(t)}.bind(null,T)};if(A)d=O.call(z,j,_),T.v=1,w(d,"class decorators","return")&&(j=d);else if(_.static=c,_.private=h,d=_.access={has:h?b.bind():function(e){return i in e}},E||(d.get=h?N?function(e){return f(e),S.value}:M("get",0,f):function(e){return e[i]}),N||C||(d.set=h?M("set",0,f):function(e,t){e[i]=t}),j=O.call(z,x?{get:S.get,set:S.set}:S[D],_),T.v=1,x){if("object"==(0,o.A)(j)&&j)(d=w(j.get,"accessor.get"))&&(S.get=d),(d=w(j.set,"accessor.set"))&&(S.set=d),(d=w(j.init,"accessor.init"))&&W.unshift(d);else if(void 0!==j)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else w(j,(p?"field":"method")+" decorators","return")&&(p?W.unshift(j):S[D]=j)}return a<2&&s.push(k(W,c,1),k(l,c,0)),p||A||(h?x?s.splice(-1,0,M("get",c),M("set",c)):s.push(N?S[D]:w.call.bind(S[D])):m(e,i,S)),j}function E(e){return m(e,g,{configurable:!0,enumerable:!0,value:u})}return void 0!==c&&(u=c[g]),u=A(null==u?null:u),b=[],f=function(e){e&&b.push(k(e))},v=function(t,o){for(var r=0;r<n.length;r++){var l=n[r],c=l[1],u=7&c;if((8&c)==t&&!u==o){var d=l[2],f=!!l[3],v=16&c;C(t?e:e.prototype,l,v,f?"#"+d:(0,a.A)(d),u,u<2?[]:t?p=p||[]:h=h||[],b,!!t,f,o,t&&f?function(t){return(0,i.A)(t)===e}:s)}}},v(8,0),v(0,0),v(8,1),v(0,1),f(h),f(p),d=b,x||E(e),{e:d,get c(){var n=[];return x&&[E(e=C(e,[t],l,e.name,5,n)),k(n,1)]}}}},2559:(e,t,n)=>{"use strict";function o(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>o})},6902:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(7545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,o.A)(e):"null"));return e}},2016:(e,t,n)=>{"use strict";function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>o})},829:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(2559);function i(e,t){return e.get((0,o.A)(e,t))}},918:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(2016);function i(e,t,n){(0,o.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(2559);function i(e,t,n){return e.set((0,o.A)(e,t),n),n}},5536:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(2559);function i(e,t,n){return n((0,o.A)(e,t))}},4635:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(2016);function i(e,t){(0,o.A)(e,t),t.add(e)}},1369:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(7545);function i(e){var t=function(e,t){if("object"!=(0,o.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,o.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,o.A)(t)?t:t+""}},7545:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(t,{A:()=>o})}}]);
|
|
3
|
-
//# sourceMappingURL=page-arch-node.6b2ea1fe.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[154,2052],{500:(t,e,n)=>{n.r(e),n.d(e,{PreGeneratedConfigPreview:()=>L,PreGeneratedConfigPreviewComponent:()=>W});var r,i=n(918),o=n(6121),a=n(829),c=n(2740),s=n(8769),u=n.n(s),l=n(1123),d=n(9006),f=n(2716),p=n(5310),v=(n(6477),n(8488)),h=n(2120),m=n(1304);let b,g,y,w,A,k,E,S,_;const{defineElement:x,property:j}=(0,l.createDecorators)();let L;var T=new WeakMap,P=new WeakMap,z=new WeakMap,C=new WeakMap;class O extends d.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,T,g(this)),(0,i.A)(this,P,(y(this),w(this))),(0,i.A)(this,z,(A(this),k(this))),(0,i.A)(this,C,(E(this),S(this))),_(this)}get previewUrl(){return(0,a.A)(T,this)}set previewUrl(t){(0,o.A)(T,this,t)}get container(){return(0,a.A)(P,this)}set container(t){(0,o.A)(P,this,t)}get attrList(){return(0,a.A)(z,this)}set attrList(t){(0,o.A)(z,this,t)}get mockList(){return(0,a.A)(C,this)}set mockList(t){(0,o.A)(C,this,t)}render(){return u().createElement(W,{root:this,previewUrl:this.previewUrl,container:this.container,attrList:this.attrList,mockList:this.mockList})}}function W(t){let{root:e,previewUrl:n,container:r,attrList:i,mockList:o}=t;const a=(0,s.useRef)(),[c,l]=(0,s.useState)(!1),d=(0,s.useCallback)((()=>{const t=()=>{var e;const n=null===(e=a.current)||void 0===e?void 0:e.contentWindow;null!=n&&n._preview_only_render?l(!0):setTimeout(t,100)};t()}),[]);return(0,s.useEffect)((()=>{var t;const n=null===(t=a.current)||void 0===t?void 0:t.contentWindow;if(!c||!n)return;const r=new ResizeObserver((()=>{e.style.height=`${n.document.body.scrollHeight}px`}));return r.observe(n.document.body),()=>r.disconnect()}),[c,e]),(0,s.useEffect)((()=>{var t,e;const n=null===(t=a.current)||void 0===t||null===(t=t.contentWindow)||void 0===t?void 0:t._preview_only_render;if(!c||!n||!i)return;let s;s="descriptions"===r?{brick:"eo-descriptions",errorBoundary:!0,properties:{column:2,list:i.map((t=>{const e={label:t.name};return t.config&&(e.useBrick=(0,m.w)(t.config,t.id)),e})),dataSource:null==o?void 0:o[0]}}:{brick:"eo-next-table",errorBoundary:!0,properties:{rowKey:null===(e=i[0])||void 0===e?void 0:e.id,columns:i.map((t=>{const e={title:t.name,dataIndex:t.id,key:t.id};return t.config&&(e.useBrick=(0,m.m)(t.config,".cellData")),e})),dataSource:{list:o,page:1,pageSize:20}}},n("yaml",{yaml:(0,p.safeDump)([s],{skipInvalid:!0})},{theme:"light",uiVersion:"8.2",styleText:h.A})}),[c,i,o,r]),u().createElement("div",{className:"container"},u().createElement("iframe",{ref:a,src:null!=n?n:`${(0,f.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:d}))}r=O,({e:[g,y,w,A,k,E,S,_],c:[L,b]}=(0,c.A)(r,[x("visual-builder.pre-generated-config-preview",{styleTexts:[v.A]})],[[j(),1,"previewUrl"],[j(),1,"container"],[j({attribute:!1}),1,"attrList"],[j({attribute:!1}),1,"mockList"]],0,void 0,d.ReactNextElement)),b()},2120:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(6758),i=n.n(r),o=n(935),a=n.n(o)()(i());a.push([t.id,"#preview-root{padding:0}",""]);const c=a.toString()},8488:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(6758),i=n.n(r),o=n(935),a=n.n(o)()(i());a.push([t.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container,\niframe{width:100%;height:100%}.container{position:relative}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}",""]);const c=a.toString()},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,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},6758:t=>{t.exports=function(t){return t[1]}},2740:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(7545),i=n(6902);function o(t,e,n){"symbol"==(0,r.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:n?n+" "+e:e})}catch(t){}return t}var a=n(1369);function c(t,e,n,c,s,u){var l,d,f,p,v,h,m,b=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,y=Object.create,w=[y(null),y(null)],A=e.length;function k(e,n,r){return function(i,o){n&&(o=i,i=t);for(var a=0;a<e.length;a++)o=e[a].apply(i,r?[o]:[]);return r?o:i}}function E(t,e,n,r){if("function"!=typeof t&&(r||void 0!==t))throw new TypeError(e+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return t}function S(t,e,n,i,a,c,s,u,f,p,v){function h(t){if(!v(t))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(e[0]),b=e[3],y=!s,A=1===a,S=3===a,_=4===a,x=2===a;function j(e,n,r){return function(i,o){return n&&(o=i,i=t),r&&r(i),L[e].call(i,o)}}if(!y){var L={},T=[],P=S?"get":_||A?"set":"value";if(f?(p||A?L={get:o((function(){return b(this)}),i,"get"),set:function(t){e[4](this,t)}}:L[P]=b,p||o(L[P],i,x?"":P)):p||(L=Object.getOwnPropertyDescriptor(t,i)),!p&&!f){if((d=w[+u][i])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+L[P].name+") is not supported yet");w[+u][i]=a<3?1:a}}for(var z=t,C=m.length-1;C>=0;C-=n?2:1){var O=E(m[C],"A decorator","be",!0),W=n?m[C-1]:void 0,U={},B={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:l,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");E(e,"An initializer","be",!0),c.push(e)}.bind(null,U)};if(y)d=O.call(W,z,B),U.v=1,E(d,"class decorators","return")&&(z=d);else if(B.static=u,B.private=f,d=B.access={has:f?v.bind():function(t){return i in t}},_||(d.get=f?x?function(t){return h(t),L.value}:j("get",0,h):function(t){return t[i]}),x||S||(d.set=f?j("set",0,h):function(t,e){t[i]=e}),z=O.call(W,A?{get:L.get,set:L.set}:L[P],B),U.v=1,A){if("object"==(0,r.A)(z)&&z)(d=E(z.get,"accessor.get"))&&(L.get=d),(d=E(z.set,"accessor.set"))&&(L.set=d),(d=E(z.init,"accessor.init"))&&T.unshift(d);else if(void 0!==z)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else E(z,(p?"field":"method")+" decorators","return")&&(p?T.unshift(z):L[P]=z)}return a<2&&s.push(k(T,u,1),k(c,u,0)),p||y||(f?A?s.splice(-1,0,j("get",u),j("set",u)):s.push(x?L[P]:E.call.bind(L[P])):g(t,i,L)),z}function _(t){return g(t,b,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[b]),l=y(null==l?null:l),v=[],h=function(t){t&&v.push(k(t))},m=function(e,r){for(var o=0;o<n.length;o++){var c=n[o],u=c[1],l=7&u;if((8&u)==e&&!l==r){var d=c[2],h=!!c[3],m=16&u;S(e?t:t.prototype,c,m,h?"#"+d:(0,a.A)(d),l,l<2?[]:e?p=p||[]:f=f||[],v,!!e,h,r,e&&h?function(e){return(0,i.A)(e)===t}:s)}}},m(8,0),m(0,0),m(8,1),m(0,1),h(f),h(p),d=v,A||_(t),{e:d,get c(){var n=[];return A&&[_(t=S(t,[e],c,t.name,5,n)),k(n,1)]}}}},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:()=>i});var r=n(7545);function i(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,r.A)(t):"null"));return t}},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:()=>i});var r=n(2559);function i(t,e){return t.get((0,r.A)(t,e))}},918:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(2016);function i(t,e,n){(0,r.A)(t,e),e.set(t,n)}},6121:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(2559);function i(t,e,n){return t.set((0,r.A)(t,e),n),n}},1369:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(7545);function i(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 i=n.call(t,"string");if("object"!=(0,r.A)(i))return i;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})}}]);
|
|
2
|
-
//# sourceMappingURL=pre-generated-config-preview.dccb8a89.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[2052,2369],{116:(e,t,n)=>{n.d(t,{M:()=>s});var i=n(2729),r=n(8027),a=n(1304),o=n(1030);function s(e,t){var n;let{type:i,dataName:s,dataType:c,settings:d}=t;if(!i||!s)return null;const u=`${"state"===c?"STATE":"CTX"}${(0,r._)(s)}`;if("chart"===i){var p,g;const e=`<%= ${u}${null!=d&&d.pagination?".list":""} %>`;return{brick:"eo-mini-line-chart",properties:{width:600,height:200,xField:null===(p=d.fields)||void 0===p?void 0:p.xField,yField:null===(g=d.fields)||void 0===g?void 0:g.yField,lineColor:"var(--palette-orange-6)",data:e}}}if("cards"===i)return{brick:"eo-grid-layout",properties:{templateColumns:"repeat(auto-fill, minmax(260px, 1fr))",gap:"var(--card-content-gap)"},slots:{"":{type:"bricks",bricks:[{brick:":forEach",dataSource:`<%= ${u}${null!=d&&d.pagination?".list":""} %>`,slots:{"":{type:"bricks",bricks:[{brick:"eo-card-item",properties:{cardTitle:(0,o.has)(null==d?void 0:d.fields,"title")&&"string"==typeof d.fields.title?`<% ITEM${(0,r._)(d.fields.title)} %>`:void 0,description:(0,o.has)(null==d?void 0:d.fields,"description")&&"string"==typeof d.fields.description?`<% ITEM${(0,r._)(d.fields.description)} %>`:void 0}}]}}}]}}};const f=`<%= ${null!=d&&d.pagination?null!=d&&null!==(n=d.fields)&&void 0!==n&&n.pageSize?`{...${u},pageSize: ${u}${(0,r._)(d.fields.pageSize)}}`:u:`{ list: ${u} }`} %>`,h=new Map;for(const t of e)if(t.config){const e="table"===i?(0,a.m)(t.config,".cellData"):(0,a.w)(t.config,t.id);e&&h.set(t.id,l(e))}const v=Object.fromEntries(e.map((e=>{const t=h.get(e.id);return t?[`[${e.id}]`,{type:"bricks",bricks:[t]}]:null})).filter(Boolean));switch(i){case"table":return{brick:"eo-next-table",properties:{rowKey:"instanceId",columns:e.map((e=>{const t={title:e.name,dataIndex:e.id,key:e.id};return h.has(e.id)&&(t.useChildren=`[${e.id}]`),t})),dataSource:f,...null!=d&&d.pagination?null:{pagination:!1}},slots:v};case"descriptions":return{brick:"eo-descriptions",properties:{column:2,list:e.map((e=>{const t={label:e.name};return e.config&&(t.useChildren=`[${e.id}]`),t})),dataSource:f},slots:v}}return null}function l(e){const{children:t,slots:n,...i}=e;return{...i,slots:c(t,n)}}function c(e,t){let n=t;if(Array.isArray(e)&&!n){n={};for(const{slot:t,...r}of e){const e=null!=t?t:"";(0,i.hasOwnProperty)(n,e)||(n[e]={type:"bricks",bricks:[]}),n[e].bricks.push(l(r))}}return n}},3757:(e,t,n)=>{n.d(t,{I:()=>a,NS:()=>r});var i=n(9733);const r="bricks/visual-builder/pre-generated-config",a={en:{},zh:{}};i.i18n.getFixedT(null,r)},3415:(e,t,n)=>{n.r(t),n.d(t,{PreGeneratedConfig:()=>J,PreGeneratedConfigComponent:()=>ne});var i,r=n(4635),a=n(918),o=n(6902),s=n(5536),l=n(6121),c=n(829),d=n(2740),u=n(8769),p=n.n(u),g=n(1123),f=n(9006),h=n(2716),v=n(5310),m=n(1030),b=(n(6477),n(9733)),w=n(3757),y=n(1304),A=n(116),k=n(887),T=n(8488),C=n(2120);let M,x,E,S,W,$,_,I,D,N,O,L,P,X,j,B,z;(0,b.initializeI18n)(w.NS,w.I);const{defineElement:F,property:U,event:R}=(0,g.createDecorators)();let J;var V=new WeakMap,K=new WeakMap,G=new WeakMap,q=new WeakMap,H=new WeakMap,Q=new WeakSet,Y=new WeakMap,Z=new WeakMap,ee=new WeakMap;class te extends f.ReactNextElement{constructor(){super(...arguments),(0,r.A)(this,Q),(0,a.A)(this,V,x(this)),(0,a.A)(this,K,(E(this),S(this))),(0,a.A)(this,G,(W(this),$(this))),(0,a.A)(this,q,(_(this),I(this))),(0,a.A)(this,H,(D(this),N(this))),(0,a.A)(this,Y,(P(this),X(this))),(0,a.A)(this,Z,(z(this),e=>{(0,s.A)(Q,this,O).emit(e)})),(0,a.A)(this,ee,(e=>{(0,s.A)(Q,this,j).emit(e)}))}get previewUrl(){return(0,c.A)(V,this)}set previewUrl(e){(0,l.A)(V,this,e)}get attrList(){return(0,c.A)(K,this)}set attrList(e){(0,l.A)(K,this,e)}get mockList(){return(0,c.A)(G,this)}set mockList(e){(0,l.A)(G,this,e)}get containerConfig(){return(0,c.A)(q,this)}set containerConfig(e){(0,l.A)(q,this,e)}render(){return p().createElement(ne,{previewUrl:this.previewUrl,attrList:this.attrList,mockList:this.mockList,containerConfig:this.containerConfig,onChange:(0,c.A)(Z,this),onBrickChange:(0,c.A)(ee,this),root:this})}}function ne(e){let{previewUrl:t,attrList:n,mockList:i,containerConfig:r,root:a,onChange:o,onBrickChange:s}=e;const l=(0,u.useRef)(),[c,d]=(0,u.useState)(!1),[g,f]=(0,u.useState)(!1),[b,w]=(0,u.useState)(null);(0,u.useEffect)((()=>{b&&o(b)}),[b,o]),(0,u.useEffect)((()=>{if(b){const e=(0,A.M)(b,r);s(e)}}),[b,r,s]);const T=(0,u.useCallback)((()=>{const e=()=>{var t;const n=null===(t=l.current)||void 0===t?void 0:t.contentWindow;null!=n&&n._preview_only_render?d(!0):setTimeout(e,100)};e()}),[]);return(0,u.useEffect)((()=>{var e;const t=null===(e=l.current)||void 0===e?void 0:e.contentWindow;if(!c||!t)return;const n=new ResizeObserver((()=>{a.style.height=`${t.document.body.scrollHeight}px`}));return n.observe(t.document.body),()=>n.disconnect()}),[c,a]),(0,u.useEffect)((()=>{var e;if(!c)return;const t=null===(e=l.current)||void 0===e?void 0:e.contentWindow,n=e=>{let{data:t}=e;"pre-generated-config"===(null==t?void 0:t.channel)&&"config-change"===t.type&&w(t.payload)};return t.addEventListener("message",n),()=>{t.removeEventListener("message",n)}}),[c]),(0,u.useEffect)((()=>{var e;if(!c)return;const n=h.__secret_internals.getBrickPackagesById("bricks/visual-builder");if(!n)throw new Error("Cannot find preview agent package: bricks/visual-builder");const i=l.current.contentWindow._preview_only_inject,r={...n,filePath:t?new URL(n.filePath,new URL(t,location.origin)).toString():`${location.origin}${(0,h.getBasePath)()}${null!==(e=window.PUBLIC_ROOT)&&void 0!==e?e:""}${n.filePath}`};Promise.allSettled([i("visual-builder.pre-generated-container",r,void 0,!0)]).then((()=>{f(!0)}))}),[t,c]),(0,u.useEffect)((()=>{var e,t,r,a,o;if(!g)return;const s=null===(e=l.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;if(!s)return;const c=null!==(t=null==n?void 0:n.slice(0,5))&&void 0!==t?t:[],d=c.map((e=>e.id)),u=(0,m.uniqueId)("event-agent-");s("yaml",{yaml:(0,v.safeDump)([{brick:"eo-next-table",errorBoundary:!0,properties:{pagination:!1,rowSelection:!0,rowKey:"id",rowDraggable:!0,bordered:!0,dataSource:{list:n},selectedRowKeys:d,columns:[{title:"ID",dataIndex:"id",key:"id",width:"20%"},{title:"Name",dataIndex:"name",key:"name",width:"20%"},{title:"Preview",dataIndex:"preview",key:"preview",colSpan:2,useBrick:{brick:"div",children:null==n?void 0:n.flatMap((e=>{var t,n,r;const a=null===(t=e.candidates)||void 0===t?void 0:t.map((t=>{const n=`<%=\n DATA.rowData.id === ${JSON.stringify(e.id)} &&\n ${JSON.stringify(t.visualWeight)} === CTX.weightMap.get(${JSON.stringify(e.id)})\n %>`,r=(0,y.w)(t,e.id);var a;if(r)return{if:n,brick:"visual-builder.pre-generated-container",properties:{useBrick:r,dataSource:null!==(a=null==i?void 0:i[0])&&void 0!==a?a:{}}}})).filter(Boolean);return null!=a&&a.length?a:{if:`<% DATA.rowData.id === ${JSON.stringify(e.id)} %>`,brick:"span",properties:{textContent:null!==(n=null==i||null===(r=i[0])||void 0===r?void 0:r[e.id])&&void 0!==n?n:""}}}))}},{dataIndex:"operations",key:"operations",colSpan:0,width:81,useBrick:{if:"<% CTX.availableWeights.get(DATA.rowData.id)?.length %>",brick:"eo-mini-actions",properties:{actions:'<%=\n [\n {\n icon: {\n lib: "antd",\n icon: "minus",\n },\n event: "minus",\n disabled: CTX.weightMap.get(DATA.rowData.id) <= CTX.availableWeights.get(DATA.rowData.id)[0],\n },\n {\n icon: {\n lib: "antd",\n icon: "plus",\n },\n event: "plus",\n disabled: CTX.weightMap.get(DATA.rowData.id) >= CTX.availableWeights.get(DATA.rowData.id).slice(-1)[0],\n },\n ]\n %>'},events:{minus:{action:"context.replace",args:["weightMap","<% FN.updateWeightMap(CTX.weightMap, CTX.availableWeights, DATA.rowData.id, -1) %>"]},plus:{action:"context.replace",args:["weightMap","<% FN.updateWeightMap(CTX.weightMap, CTX.availableWeights, DATA.rowData.id, 1) %>"]}}}}]},events:{"row.select":{action:"context.replace",args:["selectedAttrs","<%= EVENT.detail.rows %>"]},"row.drag":{action:"context.replace",args:["orderedAttrIds","<%= EVENT.detail.list.map((attr) => attr.id) %>"]}}},{brick:"eo-event-agent",properties:{id:u},events:{trigger:{action:"window.postMessage",args:[{channel:"pre-generated-config",type:"config-change",payload:"<% FN.getConfig(CTX.selectedAttrs, CTX.orderedAttrIds, CTX.weightMap) %>"}]}},lifeCycle:{onPageLoad:{target:`#${u}`,method:"trigger"}},portal:!0,errorBoundary:!0},{brick:"eo-message-listener",properties:{sameOrigin:!0},events:{message:{if:"<% EVENT.detail.data?.channel === 'pre-generated-config' && EVENT.detail.data.type === 'get-config' %>",action:"window.postMessage",args:[{channel:"pre-generated-config",type:"get-config-response",id:"<%= EVENT.detail.data.id %>",payload:"<% FN.getConfig(CTX.selectedAttrs, CTX.orderedAttrIds, CTX.weightMap) %>"}]}},portal:!0,errorBoundary:!0}],{skipInvalid:!0})},{theme:"light",uiVersion:"8.2",styleText:C.A,context:[{name:"orderedAttrIds",value:null!==(r=null==n?void 0:n.map((e=>e.id)))&&void 0!==r?r:[],onChange:{target:`#${u}`,method:"trigger"}},{name:"selectedAttrs",value:c,onChange:{target:`#${u}`,method:"trigger"}},{name:"availableWeights",value:`<% new Map(${JSON.stringify(null!==(a=null==n?void 0:n.map((e=>{var t,n;return[e.id,null!==(t=null===(n=e.candidates)||void 0===n?void 0:n.map((e=>e.visualWeight)).sort(((e,t)=>e-t)))&&void 0!==t?t:[]]})))&&void 0!==a?a:[])}) %>`},{name:"weightMap",value:`<% new Map(${JSON.stringify(null!==(o=null==n?void 0:n.map((e=>{var t,n;return[e.id,null===(n=e.candidates,0,t=null==n?void 0:n.reduce(((e,t)=>!e||Math.abs(t.visualWeight-0)<Math.abs(e.visualWeight-0)?t:e)))||void 0===t?void 0:t.visualWeight]})))&&void 0!==o?o:[])}) %>`,onChange:{target:`#${u}`,method:"trigger"}}],functions:[{name:"updateWeightMap",source:k},{name:"getConfig",source:"\n function getConfig(selectedAttrs, orderedAttrIds, weightMap) {\n return selectedAttrs.map((attr) => ({\n id: attr.id,\n name: attr.name,\n config: attr.candidates?.find((can) => can.visualWeight === weightMap.get(attr.id)),\n })).sort((a, b) => orderedAttrIds.indexOf(a.id) - orderedAttrIds.indexOf(b.id));\n }\n "}]})}),[n,g,i]),p().createElement("div",{className:"container"},p().createElement("iframe",{ref:l,src:null!=t?t:`${(0,h.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:T}))}i=te,({e:[x,E,S,W,$,_,I,D,N,O,L,P,X,j,B,z],c:[J,M]}=(0,d.A)(i,[F("visual-builder.pre-generated-config",{styleTexts:[T.A]})],[[U(),1,"previewUrl"],[U({attribute:!1}),1,"attrList"],[U({attribute:!1}),1,"mockList"],[U({attribute:!1}),1,"containerConfig"],[R({type:"change"}),1,"changeEvent",e=>(0,c.A)(H,e),(e,t)=>(0,l.A)(H,e,t)],[R({type:"brick.change"}),1,"brickChangeEvent",e=>(0,c.A)(Y,e),(e,t)=>(0,l.A)(Y,e,t)]],0,(e=>ee.has((0,o.A)(e))),f.ReactNextElement)),M()},2120:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),r=n.n(i),a=n(935),o=n.n(a)()(r());o.push([e.id,"#preview-root{padding:0}",""]);const s=o.toString()},8488:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),r=n.n(i),a=n(935),o=n.n(a)()(r());o.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container,\niframe{width:100%;height:100%}.container{position:relative}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}",""]);const s=o.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);i&&o[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),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]}},887:e=>{e.exports="/**\n * @param {Map<string, number>} weightMap\n * @param {Map<string, number[]>} availableWeights\n * @param {string} key\n * @param {1 | -1} direction\n * @returns {Map<string, number>}\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction updateWeightMap(weightMap, availableWeights, key, direction) {\n return new Map([...weightMap].map(_ref => {\n let [k, v] = _ref;\n if (k === key) {\n const weights = availableWeights.get(k);\n const index = weights.indexOf(v);\n const nextIndex = Math.max(0, Math.min(index + direction, weights.length - 1));\n return [k, weights[nextIndex]];\n }\n return [k, v];\n }));\n}"},2740:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(7545),r=n(6902);function a(e,t,n){"symbol"==(0,i.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,l,c){var d,u,p,g,f,h,v,m=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,w=Object.create,y=[w(null),w(null)],A=t.length;function k(t,n,i){return function(r,a){n&&(a=r,r=e);for(var o=0;o<t.length;o++)a=t[o].apply(r,i?[a]:[]);return i?a:r}}function T(e,t,n,i){if("function"!=typeof e&&(i||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(i?"":" or undefined"));return e}function C(e,t,n,r,o,s,l,c,p,g,f){function h(e){if(!f(e))throw new TypeError("Attempted to access private element on non-instance")}var v=[].concat(t[0]),m=t[3],w=!l,A=1===o,C=3===o,M=4===o,x=2===o;function E(t,n,i){return function(r,a){return n&&(a=r,r=e),i&&i(r),S[t].call(r,a)}}if(!w){var S={},W=[],$=C?"get":M||A?"set":"value";if(p?(g||A?S={get:a((function(){return m(this)}),r,"get"),set:function(e){t[4](this,e)}}:S[$]=m,g||a(S[$],r,x?"":$)):g||(S=Object.getOwnPropertyDescriptor(e,r)),!g&&!p){if((u=y[+c][r])&&7!=(u^o))throw Error("Decorating two elements with the same name ("+S[$].name+") is not supported yet");y[+c][r]=o<3?1:o}}for(var _=e,I=v.length-1;I>=0;I-=n?2:1){var D=T(v[I],"A decorator","be",!0),N=n?v[I-1]:void 0,O={},L={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:d,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");T(t,"An initializer","be",!0),s.push(t)}.bind(null,O)};if(w)u=D.call(N,_,L),O.v=1,T(u,"class decorators","return")&&(_=u);else if(L.static=c,L.private=p,u=L.access={has:p?f.bind():function(e){return r in e}},M||(u.get=p?x?function(e){return h(e),S.value}:E("get",0,h):function(e){return e[r]}),x||C||(u.set=p?E("set",0,h):function(e,t){e[r]=t}),_=D.call(N,A?{get:S.get,set:S.set}:S[$],L),O.v=1,A){if("object"==(0,i.A)(_)&&_)(u=T(_.get,"accessor.get"))&&(S.get=u),(u=T(_.set,"accessor.set"))&&(S.set=u),(u=T(_.init,"accessor.init"))&&W.unshift(u);else if(void 0!==_)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else T(_,(g?"field":"method")+" decorators","return")&&(g?W.unshift(_):S[$]=_)}return o<2&&l.push(k(W,c,1),k(s,c,0)),g||w||(p?A?l.splice(-1,0,E("get",c),E("set",c)):l.push(x?S[$]:T.call.bind(S[$])):b(e,r,S)),_}function M(e){return b(e,m,{configurable:!0,enumerable:!0,value:d})}return void 0!==c&&(d=c[m]),d=w(null==d?null:d),f=[],h=function(e){e&&f.push(k(e))},v=function(t,i){for(var a=0;a<n.length;a++){var s=n[a],c=s[1],d=7&c;if((8&c)==t&&!d==i){var u=s[2],h=!!s[3],v=16&c;C(t?e:e.prototype,s,v,h?"#"+u:(0,o.A)(u),d,d<2?[]:t?g=g||[]:p=p||[],f,!!t,h,i,t&&h?function(t){return(0,r.A)(t)===e}:l)}}},v(8,0),v(0,0),v(8,1),v(0,1),h(p),h(g),u=f,A||M(e),{e:u,get c(){var n=[];return A&&[M(e=C(e,[t],s,e.name,5,n)),k(n,1)]}}}},2559:(e,t,n)=>{function i(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:()=>i})},6902:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(7545);function r(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,i.A)(e):"null"));return e}},2016:(e,t,n)=>{function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>i})},829:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(2559);function r(e,t){return e.get((0,i.A)(e,t))}},918:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(2016);function r(e,t,n){(0,i.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(2559);function r(e,t,n){return e.set((0,i.A)(e,t),n),n}},5536:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(2559);function r(e,t,n){return n((0,i.A)(e,t))}},4635:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(2016);function r(e,t){(0,i.A)(e,t),t.add(e)}},1369:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(7545);function r(e){var t=function(e,t){if("object"!=(0,i.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=(0,i.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,i.A)(t)?t:t+""}},7545:(e,t,n)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(t,{A:()=>i})}}]);
|
|
2
|
-
//# sourceMappingURL=pre-generated-config.ab886943.js.map
|