@next-bricks/visual-builder 1.36.21 → 1.36.23
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 +19 -19
- package/dist/chunks/1045.b07d6bc1.js +2 -0
- package/dist/chunks/1045.b07d6bc1.js.map +1 -0
- package/dist/chunks/114.5d52bda5.js +2 -0
- package/dist/chunks/{114.cf000627.js.map → 114.5d52bda5.js.map} +1 -1
- package/dist/chunks/{1940.7463e189.js → 1940.4c2fe754.js} +2 -2
- package/dist/chunks/{1940.7463e189.js.map → 1940.4c2fe754.js.map} +1 -1
- package/dist/chunks/{2277.3aa5ee83.js → 2277.4f4be3e7.js} +2 -2
- package/dist/chunks/{2277.3aa5ee83.js.map → 2277.4f4be3e7.js.map} +1 -1
- package/dist/chunks/{2980.6171be86.js → 2980.37ace8ee.js} +2 -2
- package/dist/chunks/{2980.6171be86.js.map → 2980.37ace8ee.js.map} +1 -1
- package/dist/chunks/{3171.76f5ef5e.js → 3171.017f5b19.js} +2 -2
- package/dist/chunks/{3171.76f5ef5e.js.map → 3171.017f5b19.js.map} +1 -1
- package/dist/chunks/3933.257d907f.js +2 -0
- package/dist/chunks/{3933.6543fa09.js.map → 3933.257d907f.js.map} +1 -1
- package/dist/chunks/{4658.e6a14e7e.js → 4658.30989e4b.js} +2 -2
- package/dist/chunks/{4658.e6a14e7e.js.map → 4658.30989e4b.js.map} +1 -1
- package/dist/chunks/{4837.992e342d.js → 4837.7a91eefb.js} +2 -2
- package/dist/chunks/{7218.0ced1cfb.js.map → 4837.7a91eefb.js.map} +1 -1
- package/dist/chunks/{5347.dee2580d.js → 5347.5c87fd76.js} +3 -3
- package/dist/chunks/{5347.dee2580d.js.map → 5347.5c87fd76.js.map} +1 -1
- package/dist/chunks/{5552.6eeb729f.js → 5552.5c9bad76.js} +2 -2
- package/dist/chunks/{5552.6eeb729f.js.map → 5552.5c9bad76.js.map} +1 -1
- package/dist/chunks/{5559.46d76c74.js → 5559.7a0f1c64.js} +3 -3
- package/dist/chunks/{5559.46d76c74.js.map → 5559.7a0f1c64.js.map} +1 -1
- package/dist/chunks/5832.69de73db.js +3 -0
- package/dist/chunks/5832.69de73db.js.map +1 -0
- package/dist/chunks/6314.0ed2e21b.js +2 -0
- package/dist/chunks/{6314.88036f7d.js.map → 6314.0ed2e21b.js.map} +1 -1
- package/dist/chunks/{7218.0ced1cfb.js → 7218.61762add.js} +2 -2
- package/dist/chunks/{4837.992e342d.js.map → 7218.61762add.js.map} +1 -1
- package/dist/chunks/7733.846aba0b.js +2 -0
- package/dist/chunks/{7733.4f17e0d0.js.map → 7733.846aba0b.js.map} +1 -1
- package/dist/chunks/{790.0aa66d1e.js → 790.16f204e3.js} +2 -2
- package/dist/chunks/{790.0aa66d1e.js.map → 790.16f204e3.js.map} +1 -1
- package/dist/chunks/{9080.2e2c451c.js → 9080.fe1678a6.js} +2 -2
- package/dist/chunks/{9080.2e2c451c.js.map → 9080.fe1678a6.js.map} +1 -1
- package/dist/chunks/{9559.3a75207b.js → 9559.732dee70.js} +2 -2
- package/dist/chunks/{9559.3a75207b.js.map → 9559.732dee70.js.map} +1 -1
- package/dist/chunks/batch-update-raw-data-generated-view.37ceca96.js +3 -0
- package/dist/chunks/{batch-update-raw-data-generated-view.77d9153a.js.map → batch-update-raw-data-generated-view.37ceca96.js.map} +1 -1
- package/dist/chunks/chat-conversation.760c5dab.js +3 -0
- package/dist/chunks/{chat-conversation.c9597045.js.map → chat-conversation.760c5dab.js.map} +1 -1
- package/dist/chunks/chat-preview.3b97952d.js +3 -0
- package/dist/chunks/{chat-preview.ba426465.js.map → chat-preview.3b97952d.js.map} +1 -1
- package/dist/chunks/check-editor-by-name.ad822a3a.js +2 -0
- package/dist/chunks/{check-editor-by-name.b3924a03.js.map → check-editor-by-name.ad822a3a.js.map} +1 -1
- package/dist/chunks/contract-select.54a64843.js +3 -0
- package/dist/chunks/{contract-select.6920e6ac.js.map → contract-select.54a64843.js.map} +1 -1
- package/dist/chunks/{generate-snippets-context-menu.64ec5d69.js → generate-snippets-context-menu.54011bec.js} +2 -2
- package/dist/chunks/{generate-snippets-context-menu.64ec5d69.js.map → generate-snippets-context-menu.54011bec.js.map} +1 -1
- package/dist/chunks/get-data-deps.eedbfdef.js +2 -0
- package/dist/chunks/{get-data-deps.c4a17516.js.map → get-data-deps.eedbfdef.js.map} +1 -1
- package/dist/chunks/get-dependency-tree.defac84a.js +2 -0
- package/dist/chunks/{get-dependency-tree.acf3f10a.js.map → get-dependency-tree.defac84a.js.map} +1 -1
- package/dist/chunks/get-raw-data-system-prompts.2113dd98.js +2 -0
- package/dist/chunks/{get-raw-data-system-prompts.31d8f5e6.js.map → get-raw-data-system-prompts.2113dd98.js.map} +1 -1
- package/dist/chunks/{inject-chat-preview-agent.81adb527.js → inject-chat-preview-agent.c1102b60.js} +2 -2
- package/dist/chunks/{inject-chat-preview-agent.81adb527.js.map → inject-chat-preview-agent.c1102b60.js.map} +1 -1
- package/dist/chunks/main.e42d68e4.js +2 -0
- package/dist/chunks/{main.ea38e361.js.map → main.e42d68e4.js.map} +1 -1
- package/dist/chunks/page-arch-node.0cab3fd2.js +3 -0
- package/dist/chunks/{page-arch-node.3d9866d1.js.map → page-arch-node.0cab3fd2.js.map} +1 -1
- package/dist/chunks/parse-path.40e14063.js +2 -0
- package/dist/chunks/{parse-path.092a6965.js.map → parse-path.40e14063.js.map} +1 -1
- package/dist/chunks/pre-generated-container.d6912f86.js +2 -0
- package/dist/chunks/{pre-generated-container.2c45d3cb.js.map → pre-generated-container.d6912f86.js.map} +1 -1
- package/dist/chunks/{pre-generated-preview.67d3bfca.js → pre-generated-preview.101136df.js} +3 -3
- package/dist/chunks/{pre-generated-preview.67d3bfca.js.map → pre-generated-preview.101136df.js.map} +1 -1
- package/dist/chunks/pre-generated-table-view.bb111149.js +2 -0
- package/dist/chunks/{pre-generated-table-view.c777ecd8.js.map → pre-generated-table-view.bb111149.js.map} +1 -1
- package/dist/chunks/property-editor.d3190c36.js +2 -0
- package/dist/chunks/{property-editor.5c7fc207.js.map → property-editor.d3190c36.js.map} +1 -1
- package/dist/chunks/raw-data-preview.6eb0cc7e.js +3 -0
- package/dist/chunks/{raw-data-preview.bb695b37.js.map → raw-data-preview.6eb0cc7e.js.map} +1 -1
- package/dist/chunks/workbench-action-list.084368dc.js +2 -0
- package/dist/chunks/workbench-action-list.084368dc.js.map +1 -0
- package/dist/chunks/workbench-action.a7d98bcb.js +3 -0
- package/dist/chunks/{workbench-action.6d901765.js.map → workbench-action.a7d98bcb.js.map} +1 -1
- package/dist/chunks/workbench-history-action.0d6c20e7.js +3 -0
- package/dist/chunks/{workbench-history-action.3353d805.js.map → workbench-history-action.0d6c20e7.js.map} +1 -1
- package/dist/chunks/workbench-pane.9c343f5a.js +3 -0
- package/dist/chunks/{workbench-pane.7680aac3.js.map → workbench-pane.9c343f5a.js.map} +1 -1
- package/dist/chunks/workbench-sidebar.2ece73aa.js +2 -0
- package/dist/chunks/{workbench-sidebar.fbf1aaae.js.map → workbench-sidebar.2ece73aa.js.map} +1 -1
- package/dist/chunks/workbench-tree.3249ec5b.js +3 -0
- package/dist/chunks/{workbench-tree.bbcc6f86.js.map → workbench-tree.3249ec5b.js.map} +1 -1
- package/dist/index.60f0a3e0.js +2 -0
- package/dist/index.60f0a3e0.js.map +1 -0
- package/dist/manifest.json +95 -95
- package/dist/types.json +148 -148
- package/package.json +3 -3
- package/dist/chunks/1045.26b1cdc0.js +0 -2
- package/dist/chunks/1045.26b1cdc0.js.map +0 -1
- package/dist/chunks/114.cf000627.js +0 -2
- package/dist/chunks/3933.6543fa09.js +0 -2
- package/dist/chunks/5832.945b0f83.js +0 -3
- package/dist/chunks/5832.945b0f83.js.map +0 -1
- package/dist/chunks/6314.88036f7d.js +0 -2
- package/dist/chunks/7733.4f17e0d0.js +0 -2
- package/dist/chunks/batch-update-raw-data-generated-view.77d9153a.js +0 -3
- package/dist/chunks/chat-conversation.c9597045.js +0 -3
- package/dist/chunks/chat-preview.ba426465.js +0 -3
- package/dist/chunks/check-editor-by-name.b3924a03.js +0 -2
- package/dist/chunks/contract-select.6920e6ac.js +0 -3
- package/dist/chunks/get-data-deps.c4a17516.js +0 -2
- package/dist/chunks/get-dependency-tree.acf3f10a.js +0 -2
- package/dist/chunks/get-raw-data-system-prompts.31d8f5e6.js +0 -2
- package/dist/chunks/main.ea38e361.js +0 -2
- package/dist/chunks/page-arch-node.3d9866d1.js +0 -3
- package/dist/chunks/parse-path.092a6965.js +0 -2
- package/dist/chunks/pre-generated-container.2c45d3cb.js +0 -2
- package/dist/chunks/pre-generated-table-view.c777ecd8.js +0 -2
- package/dist/chunks/property-editor.5c7fc207.js +0 -2
- package/dist/chunks/raw-data-preview.bb695b37.js +0 -3
- package/dist/chunks/workbench-action-list.4c26b861.js +0 -2
- package/dist/chunks/workbench-action-list.4c26b861.js.map +0 -1
- package/dist/chunks/workbench-action.6d901765.js +0 -3
- package/dist/chunks/workbench-history-action.3353d805.js +0 -3
- package/dist/chunks/workbench-pane.7680aac3.js +0 -3
- package/dist/chunks/workbench-sidebar.fbf1aaae.js +0 -2
- package/dist/chunks/workbench-tree.bbcc6f86.js +0 -3
- package/dist/index.2328f639.js +0 -2
- package/dist/index.2328f639.js.map +0 -1
- /package/dist/chunks/{5347.dee2580d.js.LICENSE.txt → 5347.5c87fd76.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5559.46d76c74.js.LICENSE.txt → 5559.7a0f1c64.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5832.945b0f83.js.LICENSE.txt → 5832.69de73db.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{batch-update-raw-data-generated-view.77d9153a.js.LICENSE.txt → batch-update-raw-data-generated-view.37ceca96.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-conversation.c9597045.js.LICENSE.txt → chat-conversation.760c5dab.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{chat-preview.ba426465.js.LICENSE.txt → chat-preview.3b97952d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{contract-select.6920e6ac.js.LICENSE.txt → contract-select.54a64843.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{page-arch-node.3d9866d1.js.LICENSE.txt → page-arch-node.0cab3fd2.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{pre-generated-preview.67d3bfca.js.LICENSE.txt → pre-generated-preview.101136df.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{raw-data-preview.bb695b37.js.LICENSE.txt → raw-data-preview.6eb0cc7e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-action.6d901765.js.LICENSE.txt → workbench-action.a7d98bcb.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.3353d805.js.LICENSE.txt → workbench-history-action.0d6c20e7.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-pane.7680aac3.js.LICENSE.txt → workbench-pane.9c343f5a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-tree.bbcc6f86.js.LICENSE.txt → workbench-tree.3249ec5b.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[6314,3933],{3933:(e,t,o)=>{function n(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,s){if("string"==typeof t?r.name===t:t.includes(r.name)){const t=[];for(let i=1;i<=o;i++){const o=s[s.length-i];if("MemberExpression"===(null==o?void 0:o.node.type)&&"object"===o.key){const s=o.node;s.computed||"Identifier"!==s.property.type?s.computed&&"Literal"===s.property.type&&"string"==typeof s.property.value?t.push(n?`${r.name}.${s.property.value}`:s.property.value):e.hasNonStaticUsage=!0:t.push(n?`${r.name}.${s.property.name}`:s.property.name)}else e.hasNonStaticUsage=!0}t.length===o&&e.usedProperties.add(t.join("."))}}}function r(e,t){return function(o,n,r){if(n.name===e){const e=r[r.length-1],n=r[r.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==e?void 0:e.node.type)&&"object"===e.key&&(e.node.computed?"Literal"===e.node.property.type&&e.node.property.value===t:"Identifier"===e.node.property.type&&e.node.property.name===t)){const e=n.node.arguments;if(e.length>0){const t=e[0];"Literal"===t.type&&"string"==typeof t.value?o.usedArgs.add(t.value):o.hasNonStaticUsage=!0}}}}}o.r(t),o.d(t,{beforeVisitGlobalMember:()=>n,collectAppGetMenuUsage:()=>s,collectInstalledAppsHasUsage:()=>i,collectMemberUsage:()=>p,collectMemberUsageInFunction:()=>S,createProviderClass:()=>c.createProviderClass,scanPermissionActionsInAny:()=>P,scanPermissionActionsInStoryboard:()=>m,strictCollectMemberUsage:()=>l,track:()=>f,trackAll:()=>y,traverseStoryboardExpressions:()=>u,traverseStoryboardFunction:()=>g,traverseStoryboardFunctions:()=>h,unwrapProvider:()=>c.unwrapProvider});const s=r("APP","getMenu"),i=r("INSTALLED_APPS","has");var a=o(8395),c=o(6511);function u(e,t,o){const n=new WeakSet,{matchExpressionString:r,visitNotMatchedExpressionString:s,visitNonExpressionString:i,visitObject:u}="string"==typeof o?{matchExpressionString:e=>e.includes(o)}:o;!function e(o){if("string"==typeof o)if((0,a.isEvaluable)(o))if(r(o))try{(0,a.preevaluate)(o,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal(e,n){t(e,n,o)}}})}catch(e){console.error("Parse storyboard expression failed:",e)}else null==s||s(o);else null==i||i(o);else if((0,c.isObject)(o)){if(n.has(o))return;n.add(o),null==u||u(o);for(const t of Array.isArray(o)?o:Object.values(o))e(t)}}(e)}function l(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const{hasNonStaticUsage:n,nonStaticUsage:r,usedProperties:s}=p(e,t,o);if(n)throw new Error(`Non-static usage of ${t} is prohibited, check your expression: "${r}"`);return s}function p(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r={usedProperties:new Set,hasNonStaticUsage:!1},s=n(r,t,o);return u(e,((e,t,o)=>{s(e,t),r.hasNonStaticUsage&&(r.nonStaticUsage=o)}),t),r}const d=["CTX","STATE","FORM_STATE"];function f(e,t,o){if(e.includes(t)){const r={usedProperties:new Set,hasNonStaticUsage:!1},{expression:s}=(0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(r,o)}});let i;if("SequenceExpression"===s.type&&(i=s.expressions[0])&&"Literal"===i.type&&i.value===t){if(r.usedProperties.size>0)return r.usedProperties;console.warn(`You are using "${t}" but no \`${o}\` usage found in your expression: ${JSON.stringify(e)}`)}}return!1}function y(e){if(d.some((t=>e.includes(t)))){const t={usedProperties:new Set,hasNonStaticUsage:!1};if((0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(t,d,1,!0)}}),t.usedProperties.size>0){const e=[...t.usedProperties],o={context:!1,state:!1,formState:!1},n={CTX:"context",STATE:"state",FORM_STATE:"formState"};return e.forEach((e=>{const[t,r]=e.split(".");o[n[t]]||(o[n[t]]=[]),o[n[t]].push(r)})),o}console.warn(`You are using track all but no "CTX" or "STATE" or "FORM_STATE" usage found in your expression: ${JSON.stringify(e)}`)}return!1}function h(e,t,o){if(Array.isArray(e))for(const n of e)null!=o&&o.matchSource&&!o.matchSource(n.source)||g(n,t)}function g(e,t,o){try{(0,a.precookFunction)(e.source,{typescript:e.typescript,withParent:!0,hooks:{beforeVisitGlobal:t},cacheKey:e})}catch(t){o||console.error(`Parse storyboard function "${e.name}" failed:`,t)}}function S(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const s={usedProperties:new Set,hasNonStaticUsage:!1};if(e.source.includes(t)&&g(e,n(s,t,r),o),s.hasNonStaticUsage&&!o)throw new Error(`Non-static usage of ${t} is prohibited, check your function: "${e.name}"`);return s.usedProperties.delete(e.name),s.usedProperties}const b="PERMISSIONS",v="check";function m(e){var t;const o=new Set,n=k(o),{customTemplates:r,functions:s}=null!==(t=e.meta)&&void 0!==t?t:{};return u([e.routes,r],n,b),h(s,n,{matchSource:e=>e.includes(b)}),Array.from(o)}function P(e){const t=new Set;return u(e,k(t),b),Array.from(t)}function k(e){return function(t,o){if(t.name===b){const t=o[o.length-1],n=o[o.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==t?void 0:t.node.type)&&"object"===t.key&&(t.node.computed?"Literal"===t.node.property.type&&t.node.property.value===v:"Identifier"===t.node.property.type&&t.node.property.name===v))for(const t of n.node.arguments)"Literal"===t.type&&"string"==typeof t.value&&e.add(t.value)}}}}}]);
|
|
2
|
-
//# sourceMappingURL=6314.88036f7d.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[7733,114],{5873:(e,t,n)=>{var r=n(9435);t.H=r.createRoot,r.hydrateRoot},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})},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:()=>s});var r=n(2559);function s(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(2016);function s(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(2559);function s(e,t,n){return e.set((0,r.A)(e,t),n),n}},4635:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(2016);function s(e,t){(0,r.A)(e,t),t.add(e)}},9575:(e,t,n)=>{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})},114:(e,t,n)=>{n.r(t),n.d(t,{ReactNextElement:()=>p,wrapBrick:()=>y,wrapLocalBrick:()=>v});var r=n(4635),s=n(918),i=n(2559),o=n(6121),a=n(829),c=n(8769),l=n(5873),h=n(9435),u=n(300),d=new WeakMap,f=new WeakSet;class p extends u.NextElement{constructor(){super(...arguments),(0,r.A)(this,f),(0,s.A)(this,d,void 0)}connectedCallback(){super._markConnectedCallbackCalled(),(0,i.A)(f,this,A).call(this),this._render()}disconnectedCallback(){var e;null===(e=(0,a.A)(d,this))||void 0===e||e.render(null)}_render(){const e=()=>{if(!this.isConnected||!(0,a.A)(d,this))return;const e=this.constructor;var t;e.shadowOptions?(0,a.A)(d,this).render((0,u.supportsAdoptingStyleSheets)()||null===(t=e.styleTexts)||void 0===t||!t.length?this.render():c.createElement(c.Fragment,null,c.createElement("style",null,e.styleTexts.join("\n")),this.render())):(0,a.A)(d,this).render(this.render())};window.BRICK_NEXT_VERSIONS&&!window.DISABLE_REACT_FLUSH_SYNC?(0,h.flushSync)(e):e()}}function A(){if((0,a.A)(d,this))return;const e=this.constructor;if(e.shadowOptions){const n=this.attachShadow(e.shadowOptions);var t;if((0,u.supportsAdoptingStyleSheets)()&&null!==(t=e.styleTexts)&&void 0!==t&&t.length){const t=new CSSStyleSheet;t.replaceSync(e.styleTexts.join("")),n.adoptedStyleSheets=[t]}(0,o.A)(d,this,(0,l.H)(n))}else(0,o.A)(d,this,(0,l.H)(this))}var w=n(9575);function v(e,t){return(0,c.forwardRef)((function(n,r){let{children:s,...i}=n;const o="string"==typeof e?e:e.__tagName,a=b(i,t);return c.createElement(o,(0,w.A)({},a,{ref:r}),s)}))}function y(e,t){return(0,c.forwardRef)((function(n,r){let{children:s,...i}=n;const o=b(i,t);return c.createElement(e,(0,w.A)({},o,{ref:r}),s)}))}function b(e,t){let n;if(t){n={};for(const[r,s]of Object.entries(e))Object.prototype.hasOwnProperty.call(t,r)?n[`on${t[r]}`]=s:n[r]=s}else n=e;return n}}}]);
|
|
2
|
-
//# sourceMappingURL=7733.4f17e0d0.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see batch-update-raw-data-generated-view.77d9153a.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[4905],{9548:(t,e,n)=>{n.r(e),n.d(e,{batchUpdateRawDataGeneratedView:()=>i});var a=n(6511),r=n(780);async function i(t){return Promise.allSettled(t.map((t=>{let{attrInstanceId:e,...n}=t;return(0,r._)("RAW_DATA_GENERATED_VIEW@EASYOPS",{...n,attr:[e]})})))}customElements.define("visual-builder.batch-update-raw-data-generated-view",(0,a.createProviderClass)(i))},6330:(t,e,n)=>{function a(t,e,n,a,r,i,u){try{var c=t[i](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(a,r)}function r(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var u=t.apply(e,n);function c(t){a(u,r,i,c,s,"next",t)}function s(t){a(u,r,i,c,s,"throw",t)}c(void 0)}))}}n.d(e,{A:()=>r})},780:(t,e,n)=>{n.d(e,{_:()=>i});var a=n(6330),r=n(108),i=function(){var t=(0,a.A)((function*(t,e,n){return(yield r.http.post("api/gateway/cmdb.instance.CreateInstance/v2/object/".concat(t,"/instance"),e,n)).data}));return function(e,n,a){return t.apply(this,arguments)}}()}}]);
|
|
3
|
-
//# sourceMappingURL=batch-update-raw-data-generated-view.77d9153a.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see chat-conversation.c9597045.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[3555,2052],{9416:(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(4295).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(300),m=n(4295),h=(n(6477),n(9416)),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.c9597045.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see chat-preview.ba426465.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[5402,2052],{9047:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var r=n(8769),i=n.n(r);function o(e){let{variant:t,width:n,height:r,left:o,top:a,label:s}=e;return i().createElement("div",{className:"outline "+t,style:{width:n+8,height:r+8,left:o-4,top:a-4}},i().createElement("div",{className:"label"},s))}},44:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ChatPreview:()=>D,ChatPreviewComponent:()=>Y});var r,i=n(9575),o=n(4635),a=n(918),s=n(6902),c=n(5536),u=n(6121),l=n(829),p=n(2740),d=n(8769),h=n.n(d),f=n(300),v=n(4295),g=(n(6477),n(4899)),b=n(1732),y=n(3373),m=n.n(y),w=n(9047),A=n(1563);let k,x,E,S,_,j,T,O,P,C,M,W,z,V,B,N;const{defineElement:R,property:I,event:L,method:$}=(0,f.createDecorators)();let D;var q=new WeakMap,H=new WeakMap,J=new WeakMap,U=new WeakMap,F=new WeakMap,G=new WeakMap,K=new WeakSet,Q=new WeakMap;class X extends v.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,K),(0,a.A)(this,q,(k(this),E(this))),(0,a.A)(this,H,(S(this),_(this))),(0,a.A)(this,J,(j(this),T(this))),(0,a.A)(this,U,(O(this),P(this))),(0,a.A)(this,F,(C(this),M(this))),(0,a.A)(this,G,(W(this),z(this))),(0,a.A)(this,Q,(N(this),e=>{(0,c.A)(K,this,V).emit(e)}))}get storyboard(){return(0,l.A)(q,this)}set storyboard(e){(0,u.A)(q,this,e)}get theme(){return(0,l.A)(H,this)}set theme(e){(0,u.A)(H,this,e)}get uiVersion(){return(0,l.A)(J,this)}set uiVersion(e){(0,u.A)(J,this,e)}get app(){return(0,l.A)(U,this)}set app(e){(0,u.A)(U,this,e)}get inspecting(){return(0,l.A)(F,this)}set inspecting(e){(0,u.A)(F,this,e)}select(e){var t;const n=null===(t=this.shadowRoot)||void 0===t||null===(t=t.querySelector("iframe"))||void 0===t?void 0:t.contentWindow;null==n||n.postMessage({channel:"chat-preview",type:"select",payload:e},location.origin)}render(){return h().createElement(Y,{storyboard:this.storyboard,theme:this.theme,uiVersion:this.uiVersion,app:this.app,inspecting:this.inspecting,onActiveTargetChange:(0,l.A)(Q,this)})}}function Y(e){let{storyboard:t,theme:n,uiVersion:r,app:o,inspecting:a,onActiveTargetChange:s}=e;const c=(0,d.useRef)(),[u,l]=(0,d.useState)(!1),[p,f]=(0,d.useState)(!1),[v,y]=(0,d.useState)({x:0,y:0}),[A,k]=(0,d.useState)([]),[x,E]=(0,d.useState)([]),[S,_]=(0,d.useState)([]),[j,T]=(0,d.useState)([]),O=(0,d.useCallback)((()=>{const e=()=>{var t;const n=null===(t=c.current)||void 0===t?void 0:t.contentWindow;null!=n&&n._preview_only_render?l(!0):setTimeout(e,100)};e()}),[]);(0,d.useEffect)((()=>{var e,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.ba426465.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[5055],{7950:(e,r,t)=>{t.r(r),t.d(r,{checkEditorByName:()=>a});var i=t(4899),s=t(6511);async function a(e){try{await i.__secret_internals.loadEditors([e])}catch{return!1}return!!i.customEditors.get(e)}customElements.define("visual-builder.check-editor-by-name",(0,s.createProviderClass)(a))}}]);
|
|
2
|
-
//# sourceMappingURL=check-editor-by-name.b3924a03.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see contract-select.6920e6ac.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[3046,4586,2052],{1722:(e,t,n)=>{n.d(t,{I:()=>a,K:()=>r,NS:()=>i});let r=function(e){return e.CONTRACT_OPTIONS_TIPS_PREFIX="CONTRACT_OPTIONS_TIPS_PREFIX",e.CONTRACT_OPTIONS_TIPS_SUFFIX="CONTRACT_OPTIONS_TIPS_SUFFIX",e.CONTRACT_VALIDATE_MESSAGE="CONTRACT_VALIDATE_MESSAGE",e}({});const i="bricks/visual-builder/contract-select",a={en:{CONTRACT_OPTIONS_TIPS_PREFIX:"Only the first",CONTRACT_OPTIONS_TIPS_SUFFIX:"items are displayed, please search for more results",CONTRACT_VALIDATE_MESSAGE:"Please fill in the correct contract name "},zh:{CONTRACT_OPTIONS_TIPS_PREFIX:"仅展示前",CONTRACT_OPTIONS_TIPS_SUFFIX:"项,更多结果请搜索",CONTRACT_VALIDATE_MESSAGE:"请填写正确的契约名称"}}},4680:(e,t,n)=>{n.r(t),n.d(t,{EoContractSelect:()=>U,EoContractSelectComponent:()=>re,checkContractRule:()=>ne});var r,i=n(4586),a=n(4635),o=n(918),s=n(6902),c=n(5536),l=n(6121),u=n(829),h=n(2740),f=n(8769),d=n.n(f),p=n(300),A=n(4295),v=n(6235),m=(n(6477),n(6213)),g=n(1030),S=n(426),b=n(3065),T=n(1722),y=n(5502),C=n(8799),E=n(2480);let w,_,N,I,O,k,P,R,x,F,B,M,W,j,z;(0,y.initializeReactI18n)(T.NS,T.I);const{defineElement:X,property:D,event:L}=(0,p.createDecorators)(),$=(0,A.wrapBrick)("eo-form-item"),q=(0,A.wrapBrick)("eo-auto-complete",{onChange:"change"});let U;var G=new WeakMap,V=new WeakMap,K=new WeakMap,H=new WeakMap,J=new WeakMap,Q=new WeakMap,Y=new WeakSet;class Z extends S.N{constructor(){super(...arguments),(0,a.A)(this,Y),(0,o.A)(this,G,_(this)),(0,o.A)(this,V,(N(this),I(this))),(0,o.A)(this,K,(O(this),k(this))),(0,o.A)(this,H,(P(this),R(this))),(0,o.A)(this,J,(x(this),F(this))),(0,o.A)(this,Q,(B(this),M(this))),(0,i.A)(this,"handleChange",(z(this),e=>{(0,c.A)(Y,this,W).emit(e)}))}get name(){return(0,u.A)(G,this)}set name(e){(0,l.A)(G,this,e)}get required(){return(0,u.A)(V,this)}set required(e){(0,l.A)(V,this,e)}get label(){return(0,u.A)(K,this)}set label(e){(0,l.A)(K,this,e)}get value(){return(0,u.A)(H,this)}set value(e){(0,l.A)(H,this,e)}get suffix(){return(0,u.A)(J,this)}set suffix(e){(0,l.A)(J,this,e)}render(){return d().createElement($,{exportparts:"message",curElement:this,formElement:this.getFormElement(),name:this.name,label:this.label,required:this.required,labelBrick:this.labelBrick,helpBrick:this.helpBrick,notRender:this.notRender,trigger:"handleChange",validator:ne},d().createElement(re,{value:this.value,suffix:this.suffix,validateState:this.validateState,onChange:this.handleChange}))}}function ee(e){if("string"!=typeof e)return{name:"",version:""};const[t,n]=e.split(":");return{name:t,version:n}}function te(e){return/.*@.*:\d+\.\d+\.\d+/.test(e)}function ne(e){return(0,g.isNil)(e)||te(e)?"":C.i18n.t(`${T.NS}:${T.K.CONTRACT_VALIDATE_MESSAGE}`)}function re(e){let{value:t,inputStyle:n,validateState:r,suffix:i,onChange:a}=e;const[o,s]=(0,f.useState)(),[c,l]=(0,f.useState)(20),u=(0,b.E)({q:o,pageSize:c}),[h,p]=(0,f.useState)(ee(t)),[A,m]=(0,f.useState)([]);(0,f.useEffect)((()=>{p(ee(t))}),[t]);const S=(0,f.useMemo)((()=>(0,g.debounce)((e=>{s(e)}),200)),[]);return d().createElement("div",{className:"contract-wrapper"},d().createElement(q,{className:"contract-selector",options:null==u?void 0:u.map((e=>({value:e.fullContractName,label:e.fullContractName}))),value:h.name,inputStyle:n,validateState:r,onChange:e=>{const t=e.detail;if(te(t))p(ee(t)),null==a||a(t);else{var n,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(5502),s=n(4295);(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(108),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(300),f=n(4295);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.6920e6ac.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[281],{2651:(e,s,t)=>{t.r(s),t.d(s,{getDataDependency:()=>r});var a=t(6511),l=t(9845);function r(e,s){const t=new Map;for(const a of e){const e=(0,l.collectMemberUsage)([a.if,a.value,a.resolve],s);t.set(a,e)}return t}customElements.define("visual-builder.get-data-deps",(0,a.createProviderClass)(r))}}]);
|
|
2
|
-
//# sourceMappingURL=get-data-deps.c4a17516.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[4426,281],{2651:(e,n,t)=>{t.r(n),t.d(n,{getDataDependency:()=>o});var s=t(6511),r=t(9845);function o(e,n){const t=new Map;for(const s of e){const e=(0,r.collectMemberUsage)([s.if,s.value,s.resolve],n);t.set(s,e)}return t}customElements.define("visual-builder.get-data-deps",(0,s.createProviderClass)(o))},6573:(e,n,t)=>{t.r(n),t.d(n,{getDependencyTree:()=>a});var s=t(6511),r=t(2651),o=t(1030);function d(e,n){e.forEach((t=>{!function(e,n){var t;const{dependencyList:s,nodeList:r,parents:a,result:c}=n,i=(0,o.cloneDeep)(e);c.push(i);const u=s.find((e=>e.node.key===i.key));if(null!==(t=u.deps)&&void 0!==t&&t.length&&!a.some((e=>e.key===i.key))){const e=i.children=[];!function(e,n){const t=[];e.deps.forEach((e=>{const s=n.nodeList.filter((n=>n.name===e));t.push(...s)})),d(t,n)}(u,{dependencyList:s,nodeList:r,parents:[...a,i],result:e})}}(t,{...n,nodeList:e})}))}function a(e,n){const t=e,s=(0,r.getDataDependency)(t.map((e=>e.data)),n.dataType),o=[];for(const[e,n]of s)o.push({deps:Array.from(n.usedProperties),node:t.find((n=>n.data===e))});const a=[];return d(t,{result:a,dependencyList:o,parents:[]}),a}customElements.define("visual-builder.get-dependency-tree",(0,s.createProviderClass)(a))}}]);
|
|
2
|
-
//# sourceMappingURL=get-dependency-tree.acf3f10a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[7031],{5457:(e,t,s)=>{s.r(t),s.d(t,{getRawDataSystemPrompts:()=>o});var r=s(6511),a=s(3084),u=s(7710),i=s(5799),l=s(4671),n=s(8397),b=s(3404),c=s(3287);function o(){return{boolean:a,"date-time":u,enum:i,number:l,others:n,"struct-list":b,struct:c}}customElements.define("visual-builder.get-raw-data-system-prompts",(0,r.createProviderClass)(o))}}]);
|
|
2
|
-
//# sourceMappingURL=get-raw-data-system-prompts.31d8f5e6.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{var e,t,r,n,a,o,l,i,c,u,s,f,d,h,p,m,b,v,g,x,y,P,j,k,w,O,_={7934:(e,t,r)=>{Promise.all([r.e(7507),r.e(5559),r.e(5659),r.e(8769),r.e(300),r.e(4295),r.e(1030),r.e(6511),r.e(6477),r.e(4899),r.e(8799),r.e(155),r.e(1732),r.e(108),r.e(9435),r.e(9845),r.e(6235),r.e(5502),r.e(9080),r.e(2980),r.e(1722),r.e(1201),r.e(5832)]).then(r.bind(r,5832))}},S={};function E(e){var t=S[e];if(void 0!==t)return t.exports;var r=S[e]={id:e,loaded:!1,exports:{}};return _[e].call(r.exports,r,r.exports,E),r.loaded=!0,r.exports}E.m=_,E.c=S,E.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return E.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,E.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);E.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,E.d(a,o),a},E.d=(e,t)=>{for(var r in t)E.o(t,r)&&!E.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},E.f={},E.e=e=>Promise.all(Object.keys(E.f).reduce(((t,r)=>(E.f[r](e,t),t)),[])),E.u=e=>"chunks/"+e+"."+{108:"2e9e924a",114:"cf000627",155:"1ebf01ec",300:"0740b6da",726:"e407e050",790:"0aa66d1e",871:"fff582b1",1030:"7081f53a",1045:"26b1cdc0",1122:"7e99ff7d",1201:"8950a28b",1204:"e10067e0",1722:"59f0e4b2",1732:"469e9cc0",1744:"4ed843b0",1889:"c21de868",1940:"7463e189",2052:"f1624476",2201:"0a5797e4",2277:"3aa5ee83",2980:"6171be86",3144:"0096b9c3",3171:"76f5ef5e",3340:"1e9223ac",3933:"6543fa09",4041:"468489fa",4291:"da2890c6",4295:"bee57864",4586:"6b85a822",4658:"e6a14e7e",4813:"7ff10ef9",4837:"992e342d",4899:"ef0a074c",5250:"f22684c9",5347:"dee2580d",5384:"7fbe2a84",5399:"2121beed",5502:"4cbb4b84",5552:"6eeb729f",5559:"46d76c74",5659:"9000e441",5832:"945b0f83",6235:"77328baa",6314:"88036f7d",6477:"7c5762c4",6511:"a7d25340",6519:"94d78769",6773:"9ed5373b",7218:"0ced1cfb",7304:"12ca6e2d",7434:"4ddb3aab",7507:"c0a5c220",7721:"6dd8673d",7733:"4f17e0d0",8097:"f37c5904",8395:"6e428e29",8769:"09488b9c",8799:"cf82abdb",8989:"74e3337d",9080:"2e2c451c",9435:"ddacadb1",9515:"80c4b472",9559:"3a75207b",9755:"12af1881",9844:"4328557b",9845:"a9569392"}[e]+".js",E.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),E.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="@next-bricks/visual-builder:",E.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,E.nc&&l.setAttribute("nonce",E.nc),l.setAttribute("data-webpack",n+a),l.src=e),r[e]=[t];var f=(t,n)=>{l.onerror=l.onload=null,clearTimeout(d);var a=r[e];if(delete r[e],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((e=>e(n))),t)return t(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),i&&document.head.appendChild(l)}},E.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},E.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{E.S={};var e={},t={};E.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];E.o(E.S,r)||(E.S[r]={});var o=E.S[r],l="@next-bricks/visual-builder",i=(e,t,r,n)=>{var a=o[e]=o[e]||{},i=a[t];(!i||!i.loaded&&(!n!=!i.eager?n:l>i.from))&&(a[t]={get:r,from:l,eager:!!n})},c=[];return"default"===r&&(i("@babel/parser","7.25.3",(()=>E.e(6773).then((()=>()=>E(6773))))),i("@easyops-cn/brick-next-pipes","0.7.1",(()=>Promise.all([E.e(4291),E.e(1030),E.e(155),E.e(1204)]).then((()=>()=>E(4291))))),i("@next-core/cook","2.5.3",(()=>Promise.all([E.e(1122),E.e(3340),E.e(4586)]).then((()=>()=>E(1122))))),i("@next-core/element","1.2.13",(()=>E.e(1045).then((()=>()=>E(1045))))),i("@next-core/http","1.2.8",(()=>E.e(8989).then((()=>()=>E(8989))))),i("@next-core/i18n/react","1.0.70",(()=>Promise.all([E.e(8799),E.e(8097)]).then((()=>()=>E(8097))))),i("@next-core/i18n","1.0.70",(()=>Promise.all([E.e(6511),E.e(8799),E.e(9755),E.e(5552)]).then((()=>()=>E(5552))))),i("@next-core/inject","1.0.48",(()=>Promise.all([E.e(1030),E.e(1744),E.e(2277)]).then((()=>()=>E(2277))))),i("@next-core/loader","1.6.11",(()=>E.e(5399).then((()=>()=>E(5399))))),i("@next-core/pipes","2.0.27",(()=>E.e(6519).then((()=>()=>E(6519))))),i("@next-core/react-element","1.0.32",(()=>Promise.all([E.e(8769),E.e(300),E.e(9435),E.e(114)]).then((()=>()=>E(114))))),i("@next-core/react-runtime","1.7.4",(()=>Promise.all([E.e(8769),E.e(4295),E.e(1030),E.e(4899),E.e(4837)]).then((()=>()=>E(4837))))),i("@next-core/runtime","1.58.2",(()=>Promise.all([E.e(7507),E.e(5347),E.e(1030),E.e(6511),E.e(155),E.e(108),E.e(9845),E.e(8395),E.e(4813)]).then((()=>()=>E(5347))))),i("@next-core/supply","2.3.0",(()=>Promise.all([E.e(1030),E.e(155),E.e(1744),E.e(9559)]).then((()=>()=>E(9559))))),i("@next-core/theme","1.5.4",(()=>Promise.all([E.e(1889),E.e(2052)]).then((()=>()=>E(1889))))),i("@next-core/utils/general","1.7.28",(()=>E.e(871).then((()=>()=>E(871))))),i("@next-core/utils/storyboard","1.7.28",(()=>Promise.all([E.e(6511),E.e(8395),E.e(3933)]).then((()=>()=>E(3933))))),i("history","4.10.1",(()=>E.e(5384).then((()=>()=>E(5384))))),i("i18next-browser-languagedetector","7.2.1",(()=>E.e(726).then((()=>()=>E(726))))),i("i18next","22.5.1",(()=>E.e(7304).then((()=>()=>E(7304))))),i("js-yaml","3.14.1",(()=>E.e(9515).then((()=>()=>E(9515))))),i("lodash","4.17.21",(()=>E.e(5250).then((()=>()=>E(5250))))),i("moment/locale/zh-cn.js","2.30.1",(()=>Promise.all([E.e(7721),E.e(9844)]).then((()=>()=>E(1329))))),i("moment","2.30.1",(()=>Promise.all([E.e(7721),E.e(9844)]).then((()=>()=>E(9420))))),i("react-dom","0.0.0-experimental-ee8509801-20230117",(()=>Promise.all([E.e(3144),E.e(8769)]).then((()=>()=>E(3144))))),i("react-i18next","12.3.1",(()=>Promise.all([E.e(7434),E.e(8769)]).then((()=>()=>E(7434))))),i("react","0.0.0-experimental-ee8509801-20230117",(()=>E.e(4041).then((()=>()=>E(4041)))))),e[r]=c.length?Promise.all(c).then((()=>e[r]=1)):1}}})(),(()=>{var e;E.g.importScripts&&(e=E.g.location+"");var t=E.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(/\/[^\/]+$/,"/"),E.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,f=l<e.length?(typeof e[l])[0]:"";if(o>=t.length||"o"==(s=(typeof(u=t[o]))[0]))return!c||("u"==f?l>r&&!n:""==f!=n);if("u"==s){if(!c||"u"!=f)return!1}else if(c)if(f==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"!=f&&"n"!=f){if(n||l<=r)return!1;c=!1,l--}else{if(l<=r||s<f!=n)return!1;c=!1}else"s"!=f&&"n"!=f&&(c=!1,l--)}}var d=[],h=d.pop.bind(d);for(o=1;o<e.length;o++){var p=e[o];d.push(1==p?h()|h():2==p?h()&h():p?i(p,t):!h())}return!!h()},c=(e,t)=>e&&E.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)),{}),f=(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]},d=(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=E.I(t);return l&&l.then&&!n?l.then(e.bind(e,t,E.S[t],r,!1,a,o)):e(t,E.S[t],r,n,a,o)})(((e,t,r,n,a,o)=>{if(!c(t,r))return g(e,r,o);var l=f(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)=>{if(!c(t,r))return g(e,r,a);var o=d(t,r,n);return u(t[r][o])})),P=v(((e,t,r,n,a,o)=>{if(!c(t,r))return g(e,r,o);var l=d(t,r,n);return i(a,l)||b(h(t,r,l,a)),u(t[r][l])})),j={},k={8769:()=>x("default","react",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>E.e(4041).then((()=>()=>E(4041))))),300:()=>x("default","@next-core/element",!1,[1,1,2,13],(()=>E.e(1045).then((()=>()=>E(1045))))),4295:()=>x("default","@next-core/react-element",!1,[1,1,0,32],(()=>Promise.all([E.e(300),E.e(9435),E.e(7733)]).then((()=>()=>E(114))))),1030:()=>P("default","lodash",!1,[1,4,17,21],(()=>E.e(5250).then((()=>()=>E(5250))))),6511:()=>P("default","@next-core/utils/general",!1,[1,1,7,28],(()=>E.e(871).then((()=>()=>E(871))))),6477:()=>P("default","@next-core/theme",!1,[1,1,5,4],(()=>E.e(1889).then((()=>()=>E(1889))))),4899:()=>P("default","@next-core/runtime",!1,[1,1,58,2],(()=>Promise.all([E.e(7507),E.e(5347),E.e(1030),E.e(6511),E.e(155),E.e(108),E.e(9845),E.e(8395),E.e(4813)]).then((()=>()=>E(5347))))),8799:()=>y("default","@next-core/i18n",!1,(()=>Promise.all([E.e(6511),E.e(9755),E.e(3171)]).then((()=>()=>E(5552))))),155:()=>P("default","moment",!1,[1,2,29,4],(()=>Promise.all([E.e(7721),E.e(9844)]).then((()=>()=>E(9420))))),1732:()=>y("default","js-yaml",!1,(()=>E.e(9515).then((()=>()=>E(9515))))),108:()=>P("default","@next-core/http",!1,[1,1,2,8],(()=>E.e(8989).then((()=>()=>E(8989))))),9435:()=>x("default","react-dom",!1,[6,0,0,0,,"experimental-ee8509801-20230117"],(()=>E.e(3144).then((()=>()=>E(3144))))),9845:()=>P("default","@next-core/utils/storyboard",!1,[1,1,7,28],(()=>Promise.all([E.e(8395),E.e(6314)]).then((()=>()=>E(3933))))),6235:()=>x("default","@next-core/react-runtime",!1,[1,1,7,4],(()=>Promise.all([E.e(1030),E.e(4899),E.e(7218)]).then((()=>()=>E(4837))))),5502:()=>y("default","@next-core/i18n/react",!1,(()=>Promise.all([E.e(8799),E.e(8097)]).then((()=>()=>E(8097))))),1431:()=>y("default","@next-core/cook",!1,(()=>Promise.all([E.e(1122),E.e(3340)]).then((()=>()=>E(1122))))),1201:()=>P("default","history",!1,[1,4,7,11],(()=>E.e(5384).then((()=>()=>E(5384))))),1204:()=>P("default","js-yaml",!1,[1,3,14,0],(()=>E.e(9515).then((()=>()=>E(9515))))),3340:()=>P("default","@babel/parser",!1,[1,7,25,6],(()=>E.e(6773).then((()=>()=>E(6773))))),7825:()=>P("default","react-i18next",!1,[1,12,3,1],(()=>Promise.all([E.e(7434),E.e(8769)]).then((()=>()=>E(7434))))),2350:()=>P("default","i18next",!1,[1,22,5,1],(()=>E.e(7304).then((()=>()=>E(7304))))),7072:()=>P("default","i18next-browser-languagedetector",!1,[1,7,2,1],(()=>E.e(726).then((()=>()=>E(726))))),1744:()=>P("default","@next-core/pipes",!1,[1,2,0,27],(()=>E.e(6519).then((()=>()=>E(6519))))),3669:()=>P("default","@easyops-cn/brick-next-pipes",!1,[2,0,7,1],(()=>Promise.all([E.e(4291),E.e(1030),E.e(155),E.e(1204)]).then((()=>()=>E(4291))))),8395:()=>P("default","@next-core/cook",!1,[1,2,5,3],(()=>Promise.all([E.e(1122),E.e(3340),E.e(4586)]).then((()=>()=>E(1122))))),597:()=>P("default","moment/locale/zh-cn.js",!1,[1,2,29,4],(()=>Promise.all([E.e(7721),E.e(9844)]).then((()=>()=>E(1329))))),1524:()=>P("default","@next-core/inject",!1,[1,1,0,48],(()=>Promise.all([E.e(1744),E.e(4658)]).then((()=>()=>E(2277))))),2890:()=>P("default","history",!1,[1,4,10,1],(()=>E.e(5384).then((()=>()=>E(5384))))),3551:()=>P("default","@next-core/i18n",!1,[1,1,0,70],(()=>Promise.all([E.e(8799),E.e(9755),E.e(790)]).then((()=>()=>E(5552))))),4838:()=>P("default","@next-core/supply",!1,[1,2,3,0],(()=>Promise.all([E.e(1744),E.e(1940)]).then((()=>()=>E(9559))))),5868:()=>P("default","@next-core/loader",!1,[1,1,6,11],(()=>E.e(5399).then((()=>()=>E(5399)))))},w={108:[108],155:[155],300:[300],1030:[1030],1201:[1201],1204:[1204],1732:[1732],1744:[1744],3340:[3340],4295:[4295],4813:[597,1524,2890,3551,4838,5868],4899:[4899],5502:[5502],6235:[6235],6477:[6477],6511:[6511],6519:[3669],8097:[7825],8395:[8395],8769:[8769],8799:[8799],9080:[1431],9435:[9435],9755:[2350,7072],9845:[9845]},O={},E.f.consumes=(e,t)=>{E.o(w,e)&&w[e].forEach((e=>{if(E.o(j,e))return t.push(j[e]);if(!O[e]){var r=t=>{j[e]=0,E.m[e]=r=>{delete E.c[e],r.exports=t()}};O[e]=!0;var n=t=>{delete j[e],E.m[e]=r=>{throw delete E.c[e],t}};try{var a=k[e]();a.then?t.push(j[e]=a.then(r).catch(n)):r(a)}catch(e){n(e)}}}))},(()=>{var e={8792:0};E.f.j=(t,r)=>{var n=E.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(1(20[14]|030|08|55|732|744)|4(295|813|899)|6(235|477|511)|8(395|769|799)|9(43|75|84)5|300|3340|5502)$/.test(t))e[t]=0;else{var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var o=E.p+E.u(t),l=new Error;E.l(o,(r=>{if(E.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)E.o(l,n)&&(E.m[n]=l[n]);i&&i(E)}for(t&&t(r);c<o.length;c++)a=o[c],E.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))})(),E.nc=void 0,E(7934)})();
|
|
2
|
-
//# sourceMappingURL=main.ea38e361.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see page-arch-node.3d9866d1.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[4892,2052],{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(300),b=n(4295),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.3d9866d1.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[6620],{3227:(e,t,n)=>{n.r(t),n.d(t,{parsePath:()=>o});var r=n(6511),i=n(1030),a=n(264);async function o(e,t){const n=[];return{regexp:(0,a.MM)(e,n,(0,i.defaults)(t,{end:!1,strict:!1,sensitive:!0})),keys:n}}customElements.define("visual-builder.parse-path",(0,r.createProviderClass)(o))},264:(e,t,n)=>{function r(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function a(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var a=n.strict,o=void 0!==a&&a,c=n.start,f=void 0===c||c,s=n.end,u=void 0===s||s,p=n.encode,d=void 0===p?function(e){return e}:p,l=n.delimiter,v=void 0===l?"/#?":l,h=n.endsWith,x="[".concat(r(void 0===h?"":h),"]|$"),E="[".concat(r(v),"]"),g=f?"^":"",m=0,w=e;m<w.length;m++){var y=w[m];if("string"==typeof y)g+=r(d(y));else{var A=r(d(y.prefix)),C=r(d(y.suffix));if(y.pattern)if(t&&t.push(y),A||C)if("+"===y.modifier||"*"===y.modifier){var T="*"===y.modifier?"?":"";g+="(?:".concat(A,"((?:").concat(y.pattern,")(?:").concat(C).concat(A,"(?:").concat(y.pattern,"))*)").concat(C,")").concat(T)}else g+="(?:".concat(A,"(").concat(y.pattern,")").concat(C,")").concat(y.modifier);else{if("+"===y.modifier||"*"===y.modifier)throw new TypeError('Can not repeat "'.concat(y.name,'" without a prefix and suffix'));g+="(".concat(y.pattern,")").concat(y.modifier)}else g+="(?:".concat(A).concat(C,")").concat(y.modifier)}}if(u)o||(g+="".concat(E,"?")),g+=n.endsWith?"(?=".concat(x,")"):"$";else{var R=e[e.length-1],b="string"==typeof R?E.indexOf(R[R.length-1])>-1:void 0===R;o||(g+="(?:".concat(E,"(?=").concat(x,"))?")),b||(g+="(?=".concat(E,"|").concat(x,")"))}return new RegExp(g,i(n))}(function(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var i=1,a="";if("?"===e[c=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(c));for(;c<e.length;)if("\\"!==e[c]){if(")"===e[c]){if(0==--i){c++;break}}else if("("===e[c]&&(i++,"?"!==e[c+1]))throw new TypeError("Capturing groups are not allowed at ".concat(c));a+=e[c++]}else a+=e[c++]+e[c++];if(i)throw new TypeError("Unbalanced pattern at ".concat(n));if(!a)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:a}),n=c}else{for(var o="",c=n+1;c<e.length;){var f=e.charCodeAt(c);if(!(f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||95===f))break;o+=e[c++]}if(!o)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:o}),n=c}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),i=t.prefixes,a=void 0===i?"./":i,o=t.delimiter,c=void 0===o?"/#?":o,f=[],s=0,u=0,p="",d=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},l=function(e){var t=d(e);if(void 0!==t)return t;var r=n[u],i=r.type,a=r.index;throw new TypeError("Unexpected ".concat(i," at ").concat(a,", expected ").concat(e))},v=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},h=function(e){var t=f[f.length-1],n=e||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var t=0,n=c;t<n.length;t++){var r=n[t];if(e.indexOf(r)>-1)return!0}return!1}(n)?"[^".concat(r(c),"]+?"):"(?:(?!".concat(r(n),")[^").concat(r(c),"])+?")};u<n.length;){var x=d("CHAR"),E=d("NAME"),g=d("PATTERN");if(E||g){var m=x||"";-1===a.indexOf(m)&&(p+=m,m=""),p&&(f.push(p),p=""),f.push({name:E||s++,prefix:m,suffix:"",pattern:g||h(m),modifier:d("MODIFIER")||""})}else{var w=x||d("ESCAPED_CHAR");if(w)p+=w;else if(p&&(f.push(p),p=""),d("OPEN")){m=v();var y=d("NAME")||"",A=d("PATTERN")||"",C=v();l("CLOSE"),f.push({name:y||(A?s++:""),pattern:y&&!A?h(m):A,prefix:m,suffix:C,modifier:d("MODIFIER")||""})}else l("END")}}return f}(e,n),t,n)}function o(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=n.exec(e.source);i;)t.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return o(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(e,t,n):a(e,t,n)}n.d(t,{MM:()=>o})}}]);
|
|
2
|
-
//# sourceMappingURL=parse-path.092a6965.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[8356,2052],{8366:(t,e,r)=>{r.r(e),r.d(e,{PreGeneratedContainer:()=>w,PreGeneratedContainerComponent:()=>j});var n,o=r(918),i=r(6121),a=r(829),c=r(2740),u=r(8769),s=r.n(u),l=r(300),f=r(4295),d=r(6235),h=(r(6477),r(4967));let p,v,b,m,y;const{defineElement:g,property:A}=(0,l.createDecorators)();let w;var k=new WeakMap,S=new WeakMap;class E extends f.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,k,v(this)),(0,o.A)(this,S,(b(this),m(this))),y(this)}get useBrick(){return(0,a.A)(k,this)}set useBrick(t){(0,i.A)(k,this,t)}get dataSource(){return(0,a.A)(S,this)}set dataSource(t){(0,i.A)(S,this,t)}render(){return s().createElement(j,{useBrick:this.useBrick,dataSource:this.dataSource})}}function j(t){let{useBrick:e,dataSource:r}=t;return s().createElement(d.ReactUseMultipleBricks,{useBrick:e,data:r,errorBoundary:!0})}n=E,({e:[v,b,m,y],c:[w,p]}=(0,c.A)(n,[g("visual-builder.pre-generated-container",{styleTexts:[h.A]})],[[A({attribute:!1}),1,"useBrick"],[A({attribute:!1}),1,"dataSource"]],0,void 0,f.ReactNextElement)),p()},4967:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(6758),o=r.n(n),i=r(935),a=r.n(i)()(o());a.push([t.id,":host{display:inline-block}:host([hidden]){display:none}",""]);const c=a.toString()},935:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var c=0;c<this.length;c++){var u=this[c][0];null!=u&&(a[u]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);n&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),e.push(l))}},e}},6758:t=>{t.exports=function(t){return t[1]}},2740:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(7545),o=r(6902);function i(t,e,r){"symbol"==(0,n.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:r?r+" "+e:e})}catch(t){}return t}var a=r(1369);function c(t,e,r,c,u,s){var l,f,d,h,p,v,b,m=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,g=Object.create,A=[g(null),g(null)],w=e.length;function k(e,r,n){return function(o,i){r&&(i=o,o=t);for(var a=0;a<e.length;a++)i=e[a].apply(o,n?[i]:[]);return n?i:o}}function S(t,e,r,n){if("function"!=typeof t&&(n||void 0!==t))throw new TypeError(e+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return t}function E(t,e,r,o,a,c,u,s,d,h,p){function v(t){if(!p(t))throw new TypeError("Attempted to access private element on non-instance")}var b=[].concat(e[0]),m=e[3],g=!u,w=1===a,E=3===a,j=4===a,T=2===a;function B(e,r,n){return function(o,i){return r&&(i=o,o=t),n&&n(o),x[e].call(o,i)}}if(!g){var x={},P=[],_=E?"get":j||w?"set":"value";if(d?(h||w?x={get:i((function(){return m(this)}),o,"get"),set:function(t){e[4](this,t)}}:x[_]=m,h||i(x[_],o,T?"":_)):h||(x=Object.getOwnPropertyDescriptor(t,o)),!h&&!d){if((f=A[+s][o])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+x[_].name+") is not supported yet");A[+s][o]=a<3?1:a}}for(var C=t,O=b.length-1;O>=0;O-=r?2:1){var z=S(b[O],"A decorator","be",!0),D=r?b[O-1]:void 0,M={},R={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:l,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");S(e,"An initializer","be",!0),c.push(e)}.bind(null,M)};if(g)f=z.call(D,C,R),M.v=1,S(f,"class decorators","return")&&(C=f);else if(R.static=s,R.private=d,f=R.access={has:d?p.bind():function(t){return o in t}},j||(f.get=d?T?function(t){return v(t),x.value}:B("get",0,v):function(t){return t[o]}),T||E||(f.set=d?B("set",0,v):function(t,e){t[o]=e}),C=z.call(D,w?{get:x.get,set:x.set}:x[_],R),M.v=1,w){if("object"==(0,n.A)(C)&&C)(f=S(C.get,"accessor.get"))&&(x.get=f),(f=S(C.set,"accessor.set"))&&(x.set=f),(f=S(C.init,"accessor.init"))&&P.unshift(f);else if(void 0!==C)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else S(C,(h?"field":"method")+" decorators","return")&&(h?P.unshift(C):x[_]=C)}return a<2&&u.push(k(P,s,1),k(c,s,0)),h||g||(d?w?u.splice(-1,0,B("get",s),B("set",s)):u.push(T?x[_]:S.call.bind(x[_])):y(t,o,x)),C}function j(t){return y(t,m,{configurable:!0,enumerable:!0,value:l})}return void 0!==s&&(l=s[m]),l=g(null==l?null:l),p=[],v=function(t){t&&p.push(k(t))},b=function(e,n){for(var i=0;i<r.length;i++){var c=r[i],s=c[1],l=7&s;if((8&s)==e&&!l==n){var f=c[2],v=!!c[3],b=16&s;E(e?t:t.prototype,c,b,v?"#"+f:(0,a.A)(f),l,l<2?[]:e?h=h||[]:d=d||[],p,!!e,v,n,e&&v?function(e){return(0,o.A)(e)===t}:u)}}},b(8,0),b(0,0),b(8,1),b(0,1),v(d),v(h),f=p,w||j(t),{e:f,get c(){var r=[];return w&&[j(t=E(t,[e],c,t.name,5,r)),k(r,1)]}}}},2559:(t,e,r)=>{function n(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}r.d(e,{A:()=>n})},6902:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(7545);function o(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,n.A)(t):"null"));return t}},2016:(t,e,r)=>{function n(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(e,{A:()=>n})},829:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(2559);function o(t,e){return t.get((0,n.A)(t,e))}},918:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(2016);function o(t,e,r){(0,n.A)(t,e),e.set(t,r)}},6121:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(2559);function o(t,e,r){return t.set((0,n.A)(t,e),r),r}},1369:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(7545);function o(t){var e=function(t,e){if("object"!=(0,n.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(e)?e:e+""}},7545:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{A:()=>n})}}]);
|
|
2
|
-
//# sourceMappingURL=pre-generated-container.2c45d3cb.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[5689,2052],{5111:(t,e,r)=>{r.r(e),r.d(e,{PreGeneratedTableView:()=>d,PreGeneratedTableViewComponent:()=>v});var n,o=r(2740),i=r(8769),a=r.n(i),c=r(300),u=r(4295),l=(r(6477),r(9216));let s;const{defineElement:f}=(0,c.createDecorators)();let d;class p extends u.ReactNextElement{render(){return a().createElement(v,null)}}function v(){return a().createElement("slot",null)}n=p,[d,s]=(0,o.A)(n,[f("visual-builder.pre-generated-table-view",{styleTexts:[l.A]})],[],0,void 0,u.ReactNextElement).c,s()},9216:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(6758),o=r.n(n),i=r(935),a=r.n(i)()(o());a.push([t.id,":host{display:grid;width:100%}:host([hidden]){display:none}::slotted(*){padding:4px 8px;border:1px solid var(--theme-gray-border-color);border-left-color:transparent;border-top-color:transparent;min-width:0;word-break:break-word}",""]);const c=a.toString()},935:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var c=0;c<this.length;c++){var u=this[c][0];null!=u&&(a[u]=!0)}for(var l=0;l<t.length;l++){var s=[].concat(t[l]);n&&a[s[0]]||(void 0!==i&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),r&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=r):s[2]=r),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),e.push(s))}},e}},6758:t=>{t.exports=function(t){return t[1]}},2740:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(7545),o=r(6902);function i(t,e,r){"symbol"==(0,n.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:r?r+" "+e:e})}catch(t){}return t}var a=r(1369);function c(t,e,r,c,u,l){var s,f,d,p,v,b,h,m=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,y=Object.create,w=[y(null),y(null)],A=e.length;function E(e,r,n){return function(o,i){r&&(i=o,o=t);for(var a=0;a<e.length;a++)i=e[a].apply(o,n?[i]:[]);return n?i:o}}function S(t,e,r,n){if("function"!=typeof t&&(n||void 0!==t))throw new TypeError(e+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return t}function j(t,e,r,o,a,c,u,l,d,p,v){function b(t){if(!v(t))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(e[0]),m=e[3],y=!u,A=1===a,j=3===a,x=4===a,T=2===a;function k(e,r,n){return function(o,i){return r&&(i=o,o=t),n&&n(o),_[e].call(o,i)}}if(!y){var _={},P=[],O=j?"get":x||A?"set":"value";if(d?(p||A?_={get:i((function(){return m(this)}),o,"get"),set:function(t){e[4](this,t)}}:_[O]=m,p||i(_[O],o,T?"":O)):p||(_=Object.getOwnPropertyDescriptor(t,o)),!p&&!d){if((f=w[+l][o])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+_[O].name+") is not supported yet");w[+l][o]=a<3?1:a}}for(var z=t,C=h.length-1;C>=0;C-=r?2:1){var D=S(h[C],"A decorator","be",!0),G=r?h[C-1]:void 0,I={},N={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:s,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");S(e,"An initializer","be",!0),c.push(e)}.bind(null,I)};if(y)f=D.call(G,z,N),I.v=1,S(f,"class decorators","return")&&(z=f);else if(N.static=l,N.private=d,f=N.access={has:d?v.bind():function(t){return o in t}},x||(f.get=d?T?function(t){return b(t),_.value}:k("get",0,b):function(t){return t[o]}),T||j||(f.set=d?k("set",0,b):function(t,e){t[o]=e}),z=D.call(G,A?{get:_.get,set:_.set}:_[O],N),I.v=1,A){if("object"==(0,n.A)(z)&&z)(f=S(z.get,"accessor.get"))&&(_.get=f),(f=S(z.set,"accessor.set"))&&(_.set=f),(f=S(z.init,"accessor.init"))&&P.unshift(f);else if(void 0!==z)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else S(z,(p?"field":"method")+" decorators","return")&&(p?P.unshift(z):_[O]=z)}return a<2&&u.push(E(P,l,1),E(c,l,0)),p||y||(d?A?u.splice(-1,0,k("get",l),k("set",l)):u.push(T?_[O]:S.call.bind(_[O])):g(t,o,_)),z}function x(t){return g(t,m,{configurable:!0,enumerable:!0,value:s})}return void 0!==l&&(s=l[m]),s=y(null==s?null:s),v=[],b=function(t){t&&v.push(E(t))},h=function(e,n){for(var i=0;i<r.length;i++){var c=r[i],l=c[1],s=7&l;if((8&l)==e&&!s==n){var f=c[2],b=!!c[3],h=16&l;j(e?t:t.prototype,c,h,b?"#"+f:(0,a.A)(f),s,s<2?[]:e?p=p||[]:d=d||[],v,!!e,b,n,e&&b?function(e){return(0,o.A)(e)===t}:u)}}},h(8,0),h(0,0),h(8,1),h(0,1),b(d),b(p),f=v,A||x(t),{e:f,get c(){var r=[];return A&&[x(t=j(t,[e],c,t.name,5,r)),E(r,1)]}}}},6902:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(7545);function o(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,n.A)(t):"null"));return t}},1369:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(7545);function o(t){var e=function(t,e){if("object"!=(0,n.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(e)?e:e+""}},7545:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{A:()=>n})}}]);
|
|
2
|
-
//# sourceMappingURL=pre-generated-table-view.c777ecd8.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[5238],{2080:(e,t,i)=>{i.r(t),i.d(t,{ADVANCED_CHANGE_KEY:()=>_e,BEFORE_SUBMIT_KEY:()=>We,LegacyPropertyEditor:()=>et,PropertyEditor:()=>Ie,SchemaField:()=>Fe});var s,a=i(4635),n=i(918),r=i(6902),o=i(5536),l=i(6121),h=i(829),d=i(2740),c=i(8769),u=i.n(c),A=i(300),m=i(4295),v=(i(6477),i(5908)),p=i(7091),k=i(8788),g=i(6768),f=i(5694),E=i(9708),b=i(6235),M=i(3768),y=i(2803),w=i(3824),C=i(2513),S=i(5067),W=i(1477),_=i(4287),F=i(966),x=i(5768),I=i(6110),L=i(5944),N=i(8409),V=i(4899),P=i(3995),T=(i(74),i(1030)),q=i.n(T);let R,Z,U,O,B,D,H,Y,$,z,G,J,K,j,Q,X,ee,te,ie,se,ae,ne,re,oe,le,he,de,ce,ue,Ae,me,ve,pe,ke,ge,fe,Ee,be;const{defineElement:Me,property:ye,method:we,event:Ce}=(0,A.createDecorators)(),Se=u().forwardRef(et),We="before_submit",_e="on_advanced_change",Fe=(0,p.Uy)({components:{FormLayout:E.Hb,Input:E.pd,FormItem:y.M,FormItemWithoutAdvanced:E.eI,FormCollapse:E.w9,NumberPicker:E.Y_,Radio:E.sx,Select:E.l6,Switch:E.dO,CategoryTitle:M.H,CodeEditor:w.S,IconSelect:C.r,ColorPicker:S.h,UseChildrenSelect:x._,InputWithUrl:W.r,InputWithUnit:F.U,TextAlignRadio:_.p,CustomOptions:L.F,BoxSize:I.i,CustomTab:N.v}});let xe,Ie;var Le=new WeakMap,Ne=new WeakMap,Ve=new WeakMap,Pe=new WeakMap,Te=new WeakMap,qe=new WeakMap,Re=new WeakMap,Ze=new WeakMap,Ue=new WeakMap,Oe=new WeakMap,Be=new WeakSet,De=new WeakMap,He=new WeakMap,Ye=new WeakMap,$e=new WeakMap,ze=new WeakMap,Ge=new WeakMap,Je=new WeakMap,Ke=new WeakMap,je=new WeakMap,Qe=new WeakMap;class Xe extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Be),(0,n.A)(this,Le,(R(this),(0,c.createRef)())),(0,n.A)(this,Ne,U(this)),(0,n.A)(this,Ve,(O(this),B(this))),(0,n.A)(this,Pe,(D(this),H(this))),(0,n.A)(this,Te,(Y(this),$(this))),(0,n.A)(this,qe,(z(this),G(this))),(0,n.A)(this,Re,(J(this),K(this))),(0,n.A)(this,Ze,(j(this),Q(this))),(0,n.A)(this,Ue,(X(this),ee(this))),(0,n.A)(this,Oe,(te(this),ie(this))),(0,n.A)(this,De,(ne(this),re(this))),(0,n.A)(this,He,(he(this),de(this))),(0,n.A)(this,Ye,(Ae(this),e=>{(0,o.A)(Be,this,ce).emit(e)})),(0,n.A)(this,$e,me(this)),(0,n.A)(this,ze,(ke(this),e=>{(0,o.A)(Be,this,ve).emit(e)})),(0,n.A)(this,Ge,void 0),(0,n.A)(this,Je,(0,v.fA)(We,((e,t)=>i=>{(0,l.A)(Ge,this,i(e,t))}))),(0,n.A)(this,Ke,ge(this)),(0,n.A)(this,je,(be(this),e=>{(0,o.A)(Be,this,fe).emit(e)})),(0,n.A)(this,Qe,(e=>{const t="string"==typeof e&&"undefined"===e?void 0:(0,T.omit)(e,["dataset.testid"]),i=[];(0,T.isEmpty)(null==t?void 0:t.dataset)&&i.push("dataset"),(0,T.isEmpty)(null==t?void 0:t.style)&&i.push("style");const s=(0,T.omit)(t,i);if(!(0,T.isEmpty)(s))return s}))}get editorName(){return(0,h.A)(Ne,this)}set editorName(e){(0,l.A)(Ne,this,e)}get values(){return(0,h.A)(Ve,this)}set values(e){(0,l.A)(Ve,this,e)}get advancedMode(){return(0,h.A)(Pe,this)}set advancedMode(e){(0,l.A)(Pe,this,e)}get dataList(){return(0,h.A)(Te,this)}set dataList(e){(0,l.A)(Te,this,e)}get editorPackages(){return(0,h.A)(qe,this)}set editorPackages(e){(0,l.A)(qe,this,e)}get links(){return(0,h.A)(Re,this)}set links(e){(0,l.A)(Re,this,e)}get extraLibs(){return(0,h.A)(Ze,this)}set extraLibs(e){(0,l.A)(Ze,this,e)}get childSlots(){return(0,h.A)(Ue,this)}set childSlots(e){(0,l.A)(Ue,this,e)}validate(){var e;const t=null===(e=(0,h.A)(Le,this).current)||void 0===e?void 0:e.getFormInstance();(0,l.A)(Ge,this,null),t.validate().then((()=>{if(this.advancedMode)(0,o.A)(Be,this,se).emit(t.values[P.qZ]);else{var e;const i=q().omit(t.values,[P.qZ]);t.notify(We,i),(0,o.A)(Be,this,se).emit(null!==(e=(0,h.A)(Ge,this))&&void 0!==e?e:i)}})).catch((e=>{(0,o.A)(Be,this,oe).emit(e)}))}render(){return u().createElement(Se,{ref:(0,h.A)(Le,this),editorName:this.editorName,values:(0,h.A)(Qe,this).call(this,this.values),advancedMode:this.advancedMode,dataList:this.dataList,extraLibs:this.extraLibs,links:this.links,childSlots:this.childSlots,editorPackages:this.editorPackages,handleValuesChange:(0,h.A)(Ye,this),handleTokenClick:(0,h.A)(ze,this),handleTriggerAction:(0,h.A)(je,this),onSubmitEffect:(0,h.A)(Je,this)})}}function et(e,t){let{advancedMode:i,values:s,editorName:a,dataList:n,editorPackages:r,extraLibs:o,childSlots:l,links:h,handleValuesChange:d,handleTokenClick:A,handleTriggerAction:m,onSubmitEffect:E}=e;const[M,y]=(0,c.useState)(xe),w=(0,b.useCurrentTheme)(),C=(0,c.useMemo)((()=>(0,f.VC)()),[]),S=(0,c.useMemo)((()=>(0,v.DG)()),[M]),W=(0,c.useRef)(null),_=(0,c.useRef)(!1),F=(0,c.useMemo)((()=>(0,v.fA)(_e,((e,t)=>i=>{const s=!e&&t.values[P.qZ]?t.values[P.qZ]:t.values;W.current=i(e,t,s)}))),[]);(0,c.useImperativeHandle)(t,(()=>({getFormInstance:()=>S})));const x=(0,c.useCallback)((async()=>{V.customEditors.get(a)?y((()=>{var e;return null===(e=V.customEditors.get(a))||void 0===e?void 0:e(u())})):(await V.__secret_internals.loadEditors([a],r),xe=()=>{var e;return null===(e=V.customEditors.get(a))||void 0===e?void 0:e(u())},y(xe))}),[a,r]),I=(0,c.useCallback)(((e,t)=>{var i;if(t){const t=q().omit(e,[P.qZ]);return{[P.qZ]:q().isEmpty(t)?"":t}}return null!==(i=e[P.qZ])&&void 0!==i?i:e}),[]);return(0,c.useEffect)((()=>{x()}),[x]),(0,c.useEffect)((()=>{M&&S.setInitialValues(s,"overwrite")}),[M,S]),(0,c.useEffect)((()=>{var e;_.current=!0,W.current=null,S.notify(_e,i),S.query(P.N4).take((e=>{e.display=i?"hidden":"visible"})),S.query(P.qZ).take((e=>{e.display=i?"visible":"hidden"}));const t=S.getState().values,s=I(null!==(e=W.current)&&void 0!==e?e:t,i);S.setValues(s,"overwrite"),_.current=!1}),[i,S,I,M]),(0,c.useEffect)((()=>{S.addEffects("onValueChange",(()=>{(0,v.A$)((e=>{_.current||d(e.values)}))}))}),[S,d]),M?u().createElement("div",{className:"property-form-wrapper"},u().createElement(k.Ay,{prefixCls:"antdV5",theme:{algorithm:"dark-v2"===w?g.A.darkAlgorithm:g.A.defaultAlgorithm,components:{InputNumber:{handleVisible:!0}}},getPopupContainer:e=>e},u().createElement(f.N7,{cache:C},u().createElement(p.Op,{form:S},u().createElement(M,{advancedMode:i,SchemaFieldComponent:Fe,form:S,scope:{dataList:n,advancedMode:i,childSlots:l,extraLibs:o,links:h,tokenClick:e=>A(e.detail),triggerAction:m},effects:{onFieldInit:v.yd,onFieldValueChange:v.$l,onFieldInitialValueChange:v.J4,onFormInitialValuesChange:v.oJ,onFormValidateSuccess:v.zu,onFormValuesChange:v.A$,onSubmit:E,onAdvancedChange:F},formilySchemaFormatter:P.cV}))))):null}s=Xe,({e:[U,O,B,D,H,Y,$,z,G,J,K,j,Q,X,ee,te,ie,se,ae,ne,re,oe,le,he,de,ce,ue,Ae,me,ve,pe,ke,ge,fe,Ee,be,R],c:[Ie,Z]}=(0,d.A)(s,[Me("visual-builder.property-editor",{shadowOptions:!1,dependencies:["eo-icon-select","vs.code-editor","eo-tooltip"]})],[[ye(),1,"editorName"],[ye({attribute:!1}),1,"values"],[ye({type:Boolean}),1,"advancedMode"],[ye({attribute:!1}),1,"dataList"],[ye({attribute:!1}),1,"editorPackages"],[ye({attribute:!1}),1,"links"],[ye({attribute:!1}),1,"extraLibs"],[ye({attribute:!1}),1,"childSlots"],[Ce({type:"validate.success"}),1,"successEvent",e=>(0,h.A)(Oe,e),(e,t)=>(0,l.A)(Oe,e,t)],[Ce({type:"validate.error"}),1,"errorEvent",e=>(0,h.A)(De,e),(e,t)=>(0,l.A)(De,e,t)],[we(),2,"validate"],[Ce({type:"values.change"}),1,"valuesChangeEvent",e=>(0,h.A)(He,e),(e,t)=>(0,l.A)(He,e,t)],[Ce({type:"token.click"}),1,"tokenClick",e=>(0,h.A)($e,e),(e,t)=>(0,l.A)($e,e,t)],[Ce({type:"trigger.action"}),1,"triggerActionEvent",e=>(0,h.A)(Ke,e),(e,t)=>(0,l.A)(Ke,e,t)]],0,(e=>Qe.has((0,r.A)(e))),m.ReactNextElement)),Z()}}]);
|
|
2
|
-
//# sourceMappingURL=property-editor.5c7fc207.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see raw-data-preview.bb695b37.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[1279,2052],{1304:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(1030);function i(e,t){const r=`[${JSON.stringify(t)}]`;let n;switch(e.display){case"link":case"text":n=a(e,r),"struct-list"!==e.type||e.countOnly?"link"===e.display&&(n={brick:"eo-link",errorBoundary:!0,children:[n]}):n={brick:"eo-tag",errorBoundary:!0,children:[n]};break;case"tag":{var i,c,p,d,u;const t="background"===(null===(i=e.style)||void 0===i?void 0:i.variant)?"-inverse":"",o=s(e,r);n={brick:"eo-tag",errorBoundary:!0,properties:{textContent:`<% ${o} %>`,size:l(null===(c=e.style)||void 0===c?void 0:c.size),color:null!==(p=e.style)&&void 0!==p&&p.background?`${e.style.background}${t}`:null!==(d=e.style)&&void 0!==d&&d.palette?`<% \`\${(${JSON.stringify(e.style.palette)})[${o}] ?? "gray"}${t}\` %>`:`gray${t}`,outline:"outline"===(null===(u=e.style)||void 0===u?void 0:u.variant)}};break}case"icon":n=o(e,r);break;case"icon+text":n={brick:"span",errorBoundary:!0,properties:{style:{display:"inline-flex",alignItems:"center",gap:"0.5em"}},children:[o(e,r),a(e,r)]};break;default:return null}if("struct-list"!==e.type||e.countOnly)return n;const y=Number(e.maxItems)||3;return{brick:"span",errorBoundary:!0,properties:{style:{display:"inline-flex",alignItems:"center",gap:"0.5em"}},children:[{brick:":forEach",dataSource:`<% DATA${r}.slice(0, ${y}) %>`,children:[n]},{brick:"eo-link",if:`<% DATA${r}.length > ${y} %>`,properties:{textContent:`<% \`+ \${DATA${r}.length - ${y}}\` %>`}}]}}function o(e,t){if("boolean"===e.type){var r,n,i,o,a,l;const p=s(e,t),d=null!==(r=null===(n=e.true)||void 0===n?void 0:n.icon)&&void 0!==r?r:"check",u=null!==(i=null===(o=e.false)||void 0===o?void 0:o.icon)&&void 0!==i?i:"xmark",y=c(null===(a=e.true)||void 0===a?void 0:a.style),v=c(null===(l=e.false)||void 0===l?void 0:l.style);return{brick:"eo-icon",errorBoundary:!0,properties:{lib:"fa",prefix:"fas",icon:`<% ${p} ? ${JSON.stringify(d)} : ${JSON.stringify(u)} %>`,style:`<% ${p} ? ${JSON.stringify(y)} : ${JSON.stringify(v)} %>`}}}return{brick:"eo-icon",errorBoundary:!0,properties:{lib:"fa",prefix:"fas",icon:e.icon,style:c(e.style)}}}function a(e,t){var r;if("struct-list"===e.type&&e.countOnly)return{brick:"span",properties:{textContent:`<% \`\${DATA${t}.length}\` %>`}};const i=s(e,t),o=`<% ${i} %>`;switch(null===(r=e.formatter)||void 0===r?void 0:r.type){case"number":return{brick:"eo-formatter-number",errorBoundary:!0,properties:{value:o,type:e.formatter.format,...(0,n.pick)(e.formatter,["currency","originalUnit","decimals","thousandsSeparator"]),style:c(e.style)}};case"date":case"date-time":return{brick:"eo-humanize-time",errorBoundary:!0,properties:{value:o,type:"date"===e.type?"date":void 0,formatter:e.formatter.format,style:c(e.style)}};case"cost-time":return{brick:"eo-humanize-time",errorBoundary:!0,properties:{value:o,isCostTime:!0,style:c(e.style)}};default:{let t,r;if("boolean"===e.type){var a,l,p,d,u,y;const n=null!==(a=null===(l=e.true)||void 0===l?void 0:l.text)&&void 0!==a?a:"Yes",o=null!==(p=null===(d=e.false)||void 0===d?void 0:d.text)&&void 0!==p?p:"No",s=c(null===(u=e.true)||void 0===u?void 0:u.style),v=c(null===(y=e.false)||void 0===y?void 0:y.style);t=`<% ${i} ? ${JSON.stringify(n)} : ${JSON.stringify(o)} %>`,r=`<% ${i} ? ${JSON.stringify(s)} : ${JSON.stringify(v)} %>`}else t=o,r=c(e.style);return{brick:"span",errorBoundary:!0,properties:{textContent:t,style:r}}}}}function s(e,t){return"struct"!==e.type&&"struct-list"!==e.type||!e.field?`DATA${t}`:`${"struct"===e.type?`DATA${t}`:"ITEM"}[${JSON.stringify(e.field)}]`}function l(e){switch(e){case"large":case"medium":case"small":return e;case"x-large":return"large"}}function c(e){if(!e)return;const t={};switch(e.size){case"small":t.fontSize="var(--sub-title-font-size-small)";break;case"medium":t.fontSize="var(--normal-font-size)";break;case"large":t.fontSize="var(--card-title-font-size)";break;case"x-large":t.fontSize="var(--title-font-size-larger)"}switch(e.fontWeight){case"bold":case"normal":t.fontWeight=e.fontWeight}return e.color&&(t.color=e.color),t}},7797:(e,t,r)=>{"use strict";r.r(t),r.d(t,{RawDataPreview:()=>ee,RawDataPreviewComponent:()=>ge});var n,i=r(4635),o=r(918),a=r(6902),s=r(5536),l=r(6121),c=r(829),p=r(2740),d=r(8769),u=r.n(d),y=r(300),v=r(4295),f=(r(6477),r(3373)),h=r.n(f),g=r(4899),m=r(1732),b=r(1304),w=r(9034),k=r(4162);let A,S,x,N,T,E,$,C,O,I,J,P,M,W,_,z,B,X,V,j,D,R,U,L,K,H,Y,q,F;const{defineElement:G,property:Q,event:Z}=(0,y.createDecorators)();let ee;var te=new WeakMap,re=new WeakMap,ne=new WeakMap,ie=new WeakMap,oe=new WeakMap,ae=new WeakMap,se=new WeakMap,le=new WeakMap,ce=new WeakMap,pe=new WeakSet,de=new WeakMap,ue=new WeakMap,ye=new WeakMap,ve=new WeakMap,fe=new WeakMap;class he extends v.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,pe),(0,o.A)(this,te,S(this)),(0,o.A)(this,re,(x(this),N(this))),(0,o.A)(this,ne,(T(this),E(this))),(0,o.A)(this,ie,($(this),C(this))),(0,o.A)(this,oe,(O(this),I(this))),(0,o.A)(this,ae,(J(this),P(this))),(0,o.A)(this,se,(M(this),W(this))),(0,o.A)(this,le,(_(this),z(this))),(0,o.A)(this,ce,(B(this),X(this))),(0,o.A)(this,de,(D(this),e=>{(0,s.A)(pe,this,V).emit(e)})),(0,o.A)(this,ue,R(this)),(0,o.A)(this,ye,(K(this),e=>{(0,s.A)(pe,this,U).emit(e)})),(0,o.A)(this,ve,H(this)),(0,o.A)(this,fe,(F(this),e=>{(0,s.A)(pe,this,Y).emit(e)}))}get previewUrl(){return(0,c.A)(te,this)}set previewUrl(e){(0,l.A)(te,this,e)}get generations(){return(0,c.A)(re,this)}set generations(e){(0,l.A)(re,this,e)}get mocks(){return(0,c.A)(ne,this)}set mocks(e){(0,l.A)(ne,this,e)}get busy(){return(0,c.A)(ie,this)}set busy(e){(0,l.A)(ie,this,e)}get category(){return(0,c.A)(oe,this)}set category(e){(0,l.A)(oe,this,e)}get theme(){return(0,c.A)(ae,this)}set theme(e){(0,l.A)(ae,this,e)}get uiVersion(){return(0,c.A)(se,this)}set uiVersion(e){(0,l.A)(se,this,e)}get app(){return(0,c.A)(le,this)}set app(e){(0,l.A)(le,this,e)}render(){return u().createElement(ge,{previewUrl:this.previewUrl,generations:this.generations,mocks:this.mocks,busy:this.busy,category:this.category,theme:this.theme,uiVersion:this.uiVersion,app:this.app,onComment:(0,c.A)(de,this),onApprove:(0,c.A)(ye,this),onViewAttrPrompt:(0,c.A)(fe,this)})}}function ge(e){let{previewUrl:t,generations:r,mocks:n,busy:i,category:o,theme:a,uiVersion:s,app:l,onComment:c,onApprove:p,onViewAttrPrompt:y}=e;const v=(0,d.useRef)(),[f,w]=(0,d.useState)(!1),[A,S]=(0,d.useState)(!1),x=(0,d.useRef)([]),N=(0,d.useRef)([]),T=(0,d.useRef)([]);(0,d.useEffect)((()=>{var e;T.current=null!==(e=null==r?void 0:r.filter((e=>e.approved)).map((e=>e.propertyId)))&&void 0!==e?e:[]}),[r]);const E=(0,d.useCallback)((()=>{const e=()=>{var t;const r=null===(t=v.current)||void 0===t?void 0:t.contentWindow;null!=r&&r._preview_only_render?w(!0):setTimeout(e,100)};e()}),[]);return(0,d.useEffect)((()=>{f&&v.current.contentWindow.postMessage({channel:"raw-data-preview",type:"busy",payload:i},location.origin)}),[i,f]),(0,d.useEffect)((()=>{if(f){const e=v.current.contentWindow,t=e=>{let{data:t}=e;if("raw-data-preview"===(null==t?void 0:t.channel))switch(t.type){case"comment":c(t.payload);break;case"approve":p(t.payload);break;case"viewAttrPrompt":y(t.payload);break;case"updatePropertyToggleState":x.current=t.payload;break;case"updatePropertyExpandState":N.current=t.payload;break;case"updatePropertyApproveState":T.current=t.payload}};return e.addEventListener("message",t),()=>{e.removeEventListener("message",t)}}}),[p,c,f]),(0,d.useEffect)((()=>{var e;if(!f)return;const r=g.__secret_internals.getBrickPackagesById("bricks/visual-builder");if(!r)throw new Error("Cannot find preview agent package: bricks/visual-builder");const n=v.current.contentWindow._preview_only_inject,i={...r,filePath:t?new URL(r.filePath,new URL(t,location.origin)).toString():`${location.origin}${(0,g.getBasePath)()}${null!==(e=window.PUBLIC_ROOT)&&void 0!==e?e:""}${r.filePath}`};Promise.allSettled(["visual-builder.pre-generated-table-view","visual-builder.pre-generated-container"].map((e=>n(e,i,void 0,!0)))).then((()=>{S(!0)}))}),[t,f]),(0,d.useEffect)((()=>{var e;if(!A)return;const t=null===(e=v.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;if(!t)return;const i=[{brick:"div",properties:{textContent:"属性",className:"head-cell"}},{brick:"div",properties:{textContent:"",className:"head-cell"}},{brick:"div",properties:{textContent:"类型",className:"head-cell"}},{brick:"div",properties:{textContent:"原始数据",className:"head-cell"}},{brick:"div",properties:{textContent:"视觉重量 (由低至高)",className:"head-cell",style:{gridColumn:"span 4",textAlign:"center"}}},{brick:"div",properties:{textContent:"确认",className:"head-cell"}},{brick:"div",properties:{className:"head-cell last-col-cell"},children:[{brick:"span",properties:{textContent:"批注"}},{brick:"span",properties:{className:"tips",textContent:"(补充提示词,按住 ⌘ 或 ctrl + 回车提交)"}}]}],o={brick:"visual-builder.pre-generated-table-view",context:[{name:"propertyToggleState",value:x.current,onChange:{action:"window.postMessage",args:[{channel:"raw-data-preview",type:"updatePropertyToggleState",payload:"<% CTX.propertyToggleState %>"}]}},{name:"propertyExpandState",value:N.current,onChange:{action:"window.postMessage",args:[{channel:"raw-data-preview",type:"updatePropertyExpandState",payload:"<% CTX.propertyExpandState %>"}]}},{name:"propertyApproveState",value:T.current,onChange:{action:"window.postMessage",args:[{channel:"raw-data-preview",type:"updatePropertyApproveState",payload:"<% CTX.propertyApproveState %>"}]}},{name:"busy"}],properties:{style:{gridTemplateColumns:"minmax(120px, 0.5fr) 32px auto repeat(5, 1fr) auto 1fr"}},children:i};for(let e=0,t=r.length;e<t;e++){var c,p;const o=r[e],a=e===t-1,s=new Map;for(const e of null!==(d=o.candidates)&&void 0!==d?d:[]){var d,u;s.set(null!==(u=e.visualWeight)&&void 0!==u?u:0,e)}i.push({brick:"div",properties:{className:h()("body-cell",{"last-row-cell":a})},children:[{brick:"span",properties:{textContent:`${null!==(c=o.propertyName)&&void 0!==c?c:o.propertyId}`}},{brick:"eo-button",properties:{className:"btn-toggle",type:"text",icon:`<%=\n {\n lib: "fa",\n prefix: "fas",\n icon: CTX.propertyToggleState.includes(${JSON.stringify(o.propertyId)}) ? "chevron-up" : "chevron-down",\n }\n %>`},events:{click:{action:"context.replace",args:["propertyToggleState",`<%\n CTX.propertyToggleState.includes(${JSON.stringify(o.propertyId)})\n ? CTX.propertyToggleState.filter((id) => id !== ${JSON.stringify(o.propertyId)})\n : CTX.propertyToggleState.concat(${JSON.stringify(o.propertyId)})\n %>`]}}}]},{brick:"div",properties:{className:h()("body-cell",{"last-row-cell":a})},children:null!==(p=o.candidates)&&void 0!==p&&p.length?[{brick:"eo-icon",properties:{lib:"fa",prefix:"fas",icon:"circle",style:{color:o.generationId?"var(--palette-green-6)":"var(--palette-gray-6)",transformOrigin:"center center",transform:"scale(0.5)"}}}]:void 0},{brick:"div",properties:{className:h()("body-cell",{"last-row-cell":a})},children:[{brick:"eo-link",properties:{type:"text",textContent:o.propertyType},events:{click:{action:"window.postMessage",args:[{channel:"raw-data-preview",type:"viewAttrPrompt",payload:o}]}}}]});let l=o.propertyValues;if(!l){var y,f;const e=(null!==(y=null!==(f=o.mockData)&&void 0!==f?f:n)&&void 0!==y?y:[]).slice();e.sort(((e,t)=>{const r=null==e?void 0:e[o.propertyId],n=null==t?void 0:t[o.propertyId],i=Array.isArray(r),a=Array.isArray(n);if(i||a)return(a?n.length:-1)-(i?r.length:-1);const s=null==r,l=null==n;if(s||l)return(l?0:1)-(s?0:1);const c="string"==typeof r&&0===r.length,p="string"==typeof n&&0===n.length;return c||p?(p?0:1)-(c?0:1):0})),l=e.map((e=>e[o.propertyId]))}i.push({brick:"div",properties:{className:h()("body-cell",{"last-row-cell":a})},children:[{brick:"div",properties:{className:"list"},children:l.map(((e,t)=>({brick:"div",if:0===t||`<%= CTX.propertyToggleState.includes(${JSON.stringify(o.propertyId)}) %>`,properties:{className:`<%= \`raw-content\${ CTX.propertyExpandState.includes(${JSON.stringify(o.propertyId)}) ? " expand" : "" }\` %>`,textContent:void 0===e?"":"string"==typeof e?e:JSON.stringify(e,null,2)}})))},{brick:"eo-button",properties:{className:"btn-toggle",type:"text",icon:`<%=\n {\n lib: "fa",\n prefix: "fas",\n icon: CTX.propertyExpandState.includes(${JSON.stringify(o.propertyId)}) ? "chevron-up" : "chevron-down",\n }\n %>`},events:{click:{action:"context.replace",args:["propertyExpandState",`<%\n CTX.propertyExpandState.includes(${JSON.stringify(o.propertyId)})\n ? CTX.propertyExpandState.filter((id) => id !== ${JSON.stringify(o.propertyId)})\n : CTX.propertyExpandState.concat(${JSON.stringify(o.propertyId)})\n %>`]}}}]});for(let e=-1;e<3;e++){const t=s.get(e);let r;t&&(r=(0,b.w)(t,o.propertyId)),i.push({brick:"div",properties:{className:h()("body-cell",{"last-row-cell":a})},children:[{brick:"div",properties:{className:"list"},children:r?l.map(((e,t)=>({brick:"visual-builder.pre-generated-container",if:0===t||`<%= CTX.propertyToggleState.includes(${JSON.stringify(o.propertyId)}) %>`,properties:{useBrick:[r],dataSource:{[o.propertyId]:e}},errorBoundary:!0}))):void 0}]})}i.push({brick:"div",properties:{className:h()("body-cell",{"last-row-cell":a})},children:o.candidates?[{brick:"eo-checkbox",properties:{value:`<%= CTX.propertyApproveState.includes(${JSON.stringify(o.propertyId)}) ? ["approved"] : [] %>`,options:[{label:"",value:"approved"}],disabled:"<%= CTX.busy %>"},events:{change:[{action:"window.postMessage",args:[{channel:"raw-data-preview",type:"approve",payload:{approved:"<% EVENT.detail.length > 0 %>",propertyInstanceId:o.propertyInstanceId}}]},{action:"context.replace",args:["propertyApproveState",`<%\n EVENT.detail.length > 0\n ? CTX.propertyApproveState.concat(${JSON.stringify(o.propertyId)})\n : CTX.propertyApproveState.filter((id) => id !== ${JSON.stringify(o.propertyId)})\n %>`]}]}}]:void 0},{brick:"div",properties:{className:h()("body-cell",{"last-col-cell":!0,"last-row-cell":a})},children:o.candidates?[{brick:"eo-textarea",properties:{value:o.comment?`<% ${JSON.stringify(o.comment)} %>`:void 0,autoSize:!0,style:{width:"100%"},disabled:`<%= CTX.busy || CTX.propertyApproveState.includes(${JSON.stringify(o.propertyId)}) %>`},events:{keydown:{if:"<% EVENT.code === 'Enter' && (EVENT.metaKey || EVENT.ctrlKey) %>",action:"window.postMessage",args:[{channel:"raw-data-preview",type:"comment",payload:{comment:"<% EVENT.target.value %>",propertyInstanceId:o.propertyInstanceId}}]}}}]:void 0})}t("yaml",{yaml:(0,m.safeDump)([o,{brick:"eo-message-listener",properties:{sameOrigin:!0},events:{message:{if:"<% EVENT.detail.data?.channel === 'raw-data-preview' && EVENT.detail.data.type === 'busy' %>",action:"context.replace",args:["busy","<% EVENT.detail.data.payload %>"]}},portal:!0,errorBoundary:!0}],{schema:m.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0})},{app:l,theme:a,uiVersion:s,styleText:k.A})}),[l,A,r,a,s,o,n]),u().createElement("div",{className:h()("container")},u().createElement("iframe",{ref:v,src:null!=t?t:`${(0,g.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:E}))}n=he,({e:[S,x,N,T,E,$,C,O,I,J,P,M,W,_,z,B,X,V,j,D,R,U,L,K,H,Y,q,F],c:[ee,A]}=(0,p.A)(n,[G("visual-builder.raw-data-preview",{styleTexts:[w.A]})],[[Q(),1,"previewUrl"],[Q({attribute:!1}),1,"generations"],[Q({attribute:!1}),1,"mocks"],[Q({type:Boolean}),1,"busy"],[Q(),1,"category"],[Q(),1,"theme"],[Q(),1,"uiVersion"],[Q(),1,"app"],[Z({type:"comment"}),1,"commentEvent",e=>(0,c.A)(ce,e),(e,t)=>(0,l.A)(ce,e,t)],[Z({type:"approve"}),1,"approveEvent",e=>(0,c.A)(ue,e),(e,t)=>(0,l.A)(ue,e,t)],[Z({type:"view.attr.prompt"}),1,"viewAttrPromptEvent",e=>(0,c.A)(ve,e),(e,t)=>(0,l.A)(ve,e,t)]],0,(e=>fe.has((0,a.A)(e))),v.ReactNextElement)),A()},4162:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6758),i=r.n(n),o=r(935),a=r.n(o)()(i());a.push([e.id,"body{background-color:transparent}#preview-root{padding:0;height:auto;max-height:100vh;overflow-y:auto;border:1px solid var(--theme-gray-border-color);border-radius:4px;background:var(--body-background)}.head-cell{position:sticky;top:0;z-index:1;font-weight:bold}.head-cell,\n.body-cell{background:var(--body-background)}.body-cell{display:flex;align-items:center;justify-content:space-between}.last-col-cell{border-right-color:transparent}.last-row-cell{border-bottom-color:transparent}.form-container > ::part(message){display:none}.list{display:flex;flex-direction:column;gap:8px;overflow:hidden}.raw-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-color-secondary)}.raw-content.expand{white-space:pre-wrap}.tips{color:var(--text-color-secondary);font-weight:normal}.body-cell:not(:hover) .btn-toggle{visibility:hidden}",""]);const s=a.toString()},9034:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6758),i=r.n(n),o=r(935),a=r.n(o)()(i());a.push([e.id,":host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.container,\niframe{width:100%;height:100%;border-radius:4px}.container{position:relative}iframe{display:block;border:none;margin:0;padding:0;transform-origin:0% 0%;-webkit-user-select:none;user-select:none}",""]);const s=a.toString()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var p=[].concat(e[c]);n&&a[p[0]]||(void 0!==o&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=o),r&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=r):p[2]=r),i&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=i):p[4]="".concat(i)),t.push(p))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3373:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},2740:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(7545),i=r(6902);function o(e,t,r){"symbol"==(0,n.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:r?r+" "+t:t})}catch(e){}return e}var a=r(1369);function s(e,t,r,s,l,c){var p,d,u,y,v,f,h,g=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,b=Object.create,w=[b(null),b(null)],k=t.length;function A(t,r,n){return function(i,o){r&&(o=i,i=e);for(var a=0;a<t.length;a++)o=t[a].apply(i,n?[o]:[]);return n?o:i}}function S(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function x(e,t,r,i,a,s,l,c,u,y,v){function f(e){if(!v(e))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(t[0]),g=t[3],b=!l,k=1===a,x=3===a,N=4===a,T=2===a;function E(t,r,n){return function(i,o){return r&&(o=i,i=e),n&&n(i),$[t].call(i,o)}}if(!b){var $={},C=[],O=x?"get":N||k?"set":"value";if(u?(y||k?$={get:o((function(){return g(this)}),i,"get"),set:function(e){t[4](this,e)}}:$[O]=g,y||o($[O],i,T?"":O)):y||($=Object.getOwnPropertyDescriptor(e,i)),!y&&!u){if((d=w[+c][i])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+$[O].name+") is not supported yet");w[+c][i]=a<3?1:a}}for(var I=e,J=h.length-1;J>=0;J-=r?2:1){var P=S(h[J],"A decorator","be",!0),M=r?h[J-1]:void 0,W={},_={kind:["field","accessor","method","getter","setter","class"][a],name:i,metadata:p,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");S(t,"An initializer","be",!0),s.push(t)}.bind(null,W)};if(b)d=P.call(M,I,_),W.v=1,S(d,"class decorators","return")&&(I=d);else if(_.static=c,_.private=u,d=_.access={has:u?v.bind():function(e){return i in e}},N||(d.get=u?T?function(e){return f(e),$.value}:E("get",0,f):function(e){return e[i]}),T||x||(d.set=u?E("set",0,f):function(e,t){e[i]=t}),I=P.call(M,k?{get:$.get,set:$.set}:$[O],_),W.v=1,k){if("object"==(0,n.A)(I)&&I)(d=S(I.get,"accessor.get"))&&($.get=d),(d=S(I.set,"accessor.set"))&&($.set=d),(d=S(I.init,"accessor.init"))&&C.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 S(I,(y?"field":"method")+" decorators","return")&&(y?C.unshift(I):$[O]=I)}return a<2&&l.push(A(C,c,1),A(s,c,0)),y||b||(u?k?l.splice(-1,0,E("get",c),E("set",c)):l.push(T?$[O]:S.call.bind($[O])):m(e,i,$)),I}function N(e){return m(e,g,{configurable:!0,enumerable:!0,value:p})}return void 0!==c&&(p=c[g]),p=b(null==p?null:p),v=[],f=function(e){e&&v.push(A(e))},h=function(t,n){for(var o=0;o<r.length;o++){var s=r[o],c=s[1],p=7&c;if((8&c)==t&&!p==n){var d=s[2],f=!!s[3],h=16&c;x(t?e:e.prototype,s,h,f?"#"+d:(0,a.A)(d),p,p<2?[]:t?y=y||[]:u=u||[],v,!!t,f,n,t&&f?function(t){return(0,i.A)(t)===e}:l)}}},h(8,0),h(0,0),h(8,1),h(0,1),f(u),f(y),d=v,k||N(e),{e:d,get c(){var r=[];return k&&[N(e=x(e,[t],s,e.name,5,r)),A(r,1)]}}}},2559:(e,t,r)=>{"use strict";function n(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}r.d(t,{A:()=>n})},6902:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(7545);function i(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,n.A)(e):"null"));return e}},2016:(e,t,r)=>{"use strict";function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(t,{A:()=>n})},829:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2559);function i(e,t){return e.get((0,n.A)(e,t))}},918:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2016);function i(e,t,r){(0,n.A)(e,t),t.set(e,r)}},6121:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2559);function i(e,t,r){return e.set((0,n.A)(e,t),r),r}},5536:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2559);function i(e,t,r){return r((0,n.A)(e,t))}},4635:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2016);function i(e,t){(0,n.A)(e,t),t.add(e)}},1369:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(7545);function i(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!=(0,n.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},7545:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})}}]);
|
|
3
|
-
//# sourceMappingURL=raw-data-preview.bb695b37.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[3021,2052],{6860:(e,t,n)=>{n.r(t),n.d(t,{WorkbenchActionList:()=>x,WorkbenchActionListComponent:()=>P});var r,o=n(918),a=n(6121),i=n(829),c=n(2740),s=n(8769),u=n.n(s),l=n(300),f=n(4899),p=n(4295),d=n(764),h=(n(5769),n(3430));let v,m,y,b,g;const A=(0,p.wrapBrick)("visual-builder.workbench-action"),{defineElement:w,property:k}=(0,l.createDecorators)();let x;var E=new WeakMap,S=new WeakMap;class T extends p.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,E,m(this)),(0,o.A)(this,S,(y(this),b(this))),g(this)}get appId(){return(0,i.A)(E,this)}set appId(e){(0,a.A)(E,this,e)}get menu(){return(0,i.A)(S,this)}set menu(e){(0,a.A)(S,this,e)}render(){return u().createElement(P,{appId:this.appId,menu:this.menu})}}let j;r=T,({e:[m,y,b,g],c:[x,v]}=(0,c.A)(r,[w("visual-builder.workbench-action-list",{styleTexts:[h.A]})],[[k(),1,"appId"],[k({attribute:!1}),1,"menu"]],0,void 0,p.ReactNextElement)),v();const I=new Map;function P(e){var t;let{appId:n,menu:r}=e;const o=(0,f.getHistory)(),[a,i]=(0,s.useState)(),[c,l]=(0,s.useState)(o.location);return(0,s.useEffect)((()=>{const e=o.listen((e=>{l(e)}));return e}),[o]),(0,s.useEffect)((()=>{j||(j=n),j!==n&&(I.clear(),j=n)}),[n]),(0,s.useEffect)((()=>{var e;const{pathname:t,search:n}=c,{selectedKeys:o}=(0,d.LP)(null!==(e=null==r?void 0:r.menuItems)&&void 0!==e?e:[],t,n,"");i(Number(o[0]))}),[r,c]),u().createElement(u().Fragment,null,null==r||null===(t=r.menuItems)||void 0===t?void 0:t.map(((e,t)=>{if((e=>"default"===e.type||!e.type)(e)){let n=e.to;return a!==t&&I.has(t)&&(n=I.get(t)),u().createElement(A,{key:t,icon:e.icon,to:n,href:e.href,target:e.target,tooltip:e.text,active:a===t,onClick:()=>(e=>{e.href||I.set(a,`${c.pathname}${c.search}`)})(e)})}})).filter(Boolean))}},607:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(6758),o=n.n(r),a=n(935),i=n.n(a)()(o());i.push([e.id,':root{--vb-workbench-action-list-background:#f8f8f8}html[data-theme="dark"],\nhtml[data-theme="dark-v2"]{--vb-workbench-action-list-background:#323237}',""]);const c=i},3430:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(6758),o=n.n(r),a=n(935),i=n.n(a)()(o());i.push([e.id,":host{display:flex;flex-direction:column;height:100%;overflow-y:auto;scrollbar-width:none;background-color:var(--vb-workbench-action-list-background)}:host([hidden]){display:none}",""]);const c=i.toString()},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(i[s]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&i[l[0]]||(void 0!==a&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},6758:e=>{e.exports=function(e){return e[1]}},5769:(e,t,n)=>{var r=n(2591),o=n.n(r),a=n(1740),i=n.n(a),c=n(8128),s=n.n(c),u=n(855),l=n.n(u),f=n(3051),p=n.n(f),d=n(3656),h=n.n(d),v=n(607),m={};m.styleTagTransform=h(),m.setAttributes=l(),m.insert=s().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=p(),o()(v.A,m),v.A&&v.A.locals&&v.A.locals},2591:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],c=0;c<e.length;c++){var s=e[c],u=r.base?s[0]+r.base:s[0],l=a[u]||0,f="".concat(u," ").concat(l);a[u]=l+1;var p=n(f),d={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var h=o(d,r);r.byIndex=c,t.splice(c,0,{identifier:f,updater:h,references:1})}i.push(f)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var c=n(a[i]);t[c].references--}for(var s=r(e,o),u=0;u<a.length;u++){var l=n(a[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}a=s}}},8128:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},3051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},3656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},2740:(e,t,n)=>{n.d(t,{A:()=>c});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 i=n(1369);function c(e,t,n,c,s,u){var l,f,p,d,h,v,m,y=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,g=Object.create,A=[g(null),g(null)],w=t.length;function k(t,n,r){return function(o,a){n&&(a=o,o=e);for(var i=0;i<t.length;i++)a=t[i].apply(o,r?[a]:[]);return r?a:o}}function x(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function E(e,t,n,o,i,c,s,u,p,d,h){function v(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),y=t[3],g=!s,w=1===i,E=3===i,S=4===i,T=2===i;function j(t,n,r){return function(o,a){return n&&(a=o,o=e),r&&r(o),I[t].call(o,a)}}if(!g){var I={},P=[],C=E?"get":S||w?"set":"value";if(p?(d||w?I={get:a((function(){return y(this)}),o,"get"),set:function(e){t[4](this,e)}}:I[C]=y,d||a(I[C],o,T?"":C)):d||(I=Object.getOwnPropertyDescriptor(e,o)),!d&&!p){if((f=A[+u][o])&&7!=(f^i))throw Error("Decorating two elements with the same name ("+I[C].name+") is not supported yet");A[+u][o]=i<3?1:i}}for(var M=e,L=m.length-1;L>=0;L-=n?2:1){var O=x(m[L],"A decorator","be",!0),K=n?m[L-1]:void 0,_={},N={kind:["field","accessor","method","getter","setter","class"][i],name:o,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),c.push(t)}.bind(null,_)};if(g)f=O.call(K,M,N),_.v=1,x(f,"class decorators","return")&&(M=f);else if(N.static=u,N.private=p,f=N.access={has:p?h.bind():function(e){return o in e}},S||(f.get=p?T?function(e){return v(e),I.value}:j("get",0,v):function(e){return e[o]}),T||E||(f.set=p?j("set",0,v):function(e,t){e[o]=t}),M=O.call(K,w?{get:I.get,set:I.set}:I[C],N),_.v=1,w){if("object"==(0,r.A)(M)&&M)(f=x(M.get,"accessor.get"))&&(I.get=f),(f=x(M.set,"accessor.set"))&&(I.set=f),(f=x(M.init,"accessor.init"))&&P.unshift(f);else if(void 0!==M)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else x(M,(d?"field":"method")+" decorators","return")&&(d?P.unshift(M):I[C]=M)}return i<2&&s.push(k(P,u,1),k(c,u,0)),d||g||(p?w?s.splice(-1,0,j("get",u),j("set",u)):s.push(T?I[C]:x.call.bind(I[C])):b(e,o,I)),M}function S(e){return b(e,y,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[y]),l=g(null==l?null:l),h=[],v=function(e){e&&h.push(k(e))},m=function(t,r){for(var a=0;a<n.length;a++){var c=n[a],u=c[1],l=7&u;if((8&u)==t&&!l==r){var f=c[2],v=!!c[3],m=16&u;E(t?e:e.prototype,c,m,v?"#"+f:(0,i.A)(f),l,l<2?[]:t?d=d||[]:p=p||[],h,!!t,v,r,t&&v?function(t){return(0,o.A)(t)===e}:s)}}},m(8,0),m(0,0),m(8,1),m(0,1),v(p),v(d),f=h,w||S(e),{e:f,get c(){var n=[];return w&&[S(e=E(e,[t],c,e.name,5,n)),k(n,1)]}}}},2559:(e,t,n)=>{function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},6902:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},2016:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},829:(e,t,n)=>{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)=>{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)=>{n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return e.set((0,r.A)(e,t),n),n}},1369:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7545);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},7545:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},764:(e,t,n)=>{n.d(t,{LP:()=>i});var r=n(1201),o=n(4899),a=n(1030);function i(e,t,n,s){const u=[],l=[],f=[];let p=0;return e&&e.forEach((e=>{if(e.key=""===s?`${p}`:`${s}.${p}`,function(e){return"group"===e.type}(e)||function(e,t){return Boolean("subMenu"===e.type||void 0)}(e)){const r=i(e.items,t,n,e.key);u.push(...r.selectedKeys),(r.selectedKeys.length||e.defaultExpanded)&&l.push(e.key),l.push(...r.openedKeys),f.push(...r.matchedKeys)}else if(function(e,t,n){if(!e.to)return!1;const i="object"==typeof e.to?e.to:(0,r.parsePath)(e.to),s=i.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");let u=!!(0,o.matchPath)(t,{path:s,exact:e.exact});if(u&&e.activeMatchSearch&&(u=c(n,i.search)),!u&&Array.isArray(e.activeIncludes))for(const i of e.activeIncludes){let e,s=!0;(0,a.isObject)(i)?(e=Array.isArray(i.path)?i.path:[i.path],s=i.exact):e=[i];for(const a of e){var l;let e;const i=a.includes("?");if(i&&(e=(0,r.parsePath)(a)),u=!!(0,o.matchPath)(t,{path:i?e.pathname:a,exact:s}),u&&null!==(l=e)&&void 0!==l&&l.search&&(u=c(n,e.search)),u)break}if(u)break}if(u&&Array.isArray(e.activeExcludes))for(const n of e.activeExcludes){let e,r=!0;(0,a.isObject)(n)?(e=Array.isArray(n.path)?n.path:[n.path],r=n.exact):e=[n];for(const n of e)if(u=!(0,o.matchPath)(t,{path:n,exact:r}),!u)break;if(!u)break}return u}(e,t,n)){u.push(String(e.key));const t=e.key.split(".");for(let e=0;e<t.length;e++)f.push(t.slice(0,e+1).join("."))}p+=1})),u.length&&""!==s&&l.push(s),{selectedKeys:u,openedKeys:l,matchedKeys:f}}function c(e,t){const n=new URLSearchParams(e),r=new URLSearchParams(t);for(const[e,t]of r.entries()){var o;if((null!==(o=n.get(e))&&void 0!==o?o:"")!==t)return!1}return!0}}}]);
|
|
2
|
-
//# sourceMappingURL=workbench-action-list.4c26b861.js.map
|