@next-bricks/visual-builder 1.28.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/bricks.json +1 -1
  2. package/dist/chunks/5021.e1903483.js +2 -0
  3. package/dist/chunks/5021.e1903483.js.map +1 -0
  4. package/dist/chunks/7150.ac864502.js +3 -0
  5. package/dist/chunks/7150.ac864502.js.map +1 -0
  6. package/dist/chunks/9130.51e9c8f2.js +3 -0
  7. package/dist/chunks/9130.51e9c8f2.js.map +1 -0
  8. package/dist/chunks/{main.588724c8.js → main.5596cdaa.js} +2 -2
  9. package/dist/chunks/{main.588724c8.js.map → main.5596cdaa.js.map} +1 -1
  10. package/dist/chunks/property-editor.6e901980.js +2 -0
  11. package/dist/chunks/property-editor.6e901980.js.map +1 -0
  12. package/dist/index.3659828c.js +2 -0
  13. package/dist/{index.4688d6d6.js.map → index.3659828c.js.map} +1 -1
  14. package/dist/manifest.json +12 -1
  15. package/dist/types.json +60 -2
  16. package/dist-types/property-editor/components/common/BoxSizeComponent.d.ts +8 -0
  17. package/dist-types/property-editor/components/common/CustomTab.d.ts +5 -0
  18. package/dist-types/property-editor/components/common/InputWithUnitComponent.d.ts +7 -0
  19. package/dist-types/property-editor/components/common/UseChildrenSelectComponent.d.ts +7 -0
  20. package/dist-types/property-editor/index.d.ts +62 -13
  21. package/dist-types/property-editor/schema/styles.schema.d.ts +2 -0
  22. package/package.json +2 -2
  23. package/dist/chunks/3807.9408a4a3.js +0 -3
  24. package/dist/chunks/3807.9408a4a3.js.map +0 -1
  25. package/dist/chunks/9992.cbc677c3.js +0 -3
  26. package/dist/chunks/9992.cbc677c3.js.map +0 -1
  27. package/dist/chunks/property-editor.3726e2db.js +0 -2
  28. package/dist/chunks/property-editor.3726e2db.js.map +0 -1
  29. package/dist/index.4688d6d6.js +0 -2
  30. /package/dist/chunks/{3807.9408a4a3.js.LICENSE.txt → 7150.ac864502.js.LICENSE.txt} +0 -0
  31. /package/dist/chunks/{9992.cbc677c3.js.LICENSE.txt → 9130.51e9c8f2.js.LICENSE.txt} +0 -0
package/dist/bricks.json CHANGED
@@ -76,5 +76,5 @@
76
76
  "eo-tooltip"
77
77
  ]
78
78
  },
79
- "filePath": "bricks/visual-builder/dist/index.4688d6d6.js"
79
+ "filePath": "bricks/visual-builder/dist/index.3659828c.js"
80
80
  }
@@ -0,0 +1,2 @@
1
+ "use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[5021],{2803:(e,t,o)=>{o.d(t,{M:()=>x});var a=o(9575),n=o(8769),r=o.n(n),l=o(9193),i=o(4223),c=o(7091),s=o(3373),p=o.n(s),u=o(1030),m=o(5908),d=o(1431),v=o(1732),b=o.n(v);const f=(0,i.wrapBrick)("eo-icon"),h=(0,i.wrapBrick)("eo-tooltip");function x(e){const t=(0,c.mN)(),o=(0,c.Mt)(),i=(0,c.Ov)(),[s,v]=(0,n.useState)("string"==typeof o.value&&(0,d.isEvaluable)(o.value)?"advanced":"normal"),x=(0,n.useMemo)((()=>"advanced"===s),[s]),g=(0,n.useMemo)((()=>o.component),[o]),E=(0,n.useCallback)((()=>{const e=x?"normal":"advanced",a="advanced"===e;v(e),o.setComponent(a?"CodeEditor":g[0],{...a?{...i??{},lineNumbers:"off",glyphMargin:!1}:g[1]});const n=t.getValuesIn(o.props.name);if(a&&(0,u.isObject)(n))t.setInitialValues({[o.props.name]:b().safeDump(n)});else if(!a&&n&&"string"==typeof n){let e;try{e=b().load(n)}catch{e=null}t.setInitialValues({[o.props.name]:e},"overwrite")}}),[t,o,x,g,i]);return(0,c.Uf)((()=>{(0,m.J4)(o.props.name,(e=>{let{value:t}=e;"string"==typeof t&&(0,d.isEvaluable)(t)&&(v("advanced"),o.setComponent("CodeEditor",{...i??{},lineNumbers:"off",glyphMargin:!1}))}))})),r().createElement("div",{className:"advanced-form-item"},r().createElement(l.eI,(0,a.A)({},e,{layout:x?null:e.layout||"vertical"}),e.children),r().createElement("div",{className:"advanced-mode-check-wrapper"},r().createElement(h,{content:"normal"===s?"使用表达式":"关闭表达式"},r().createElement(f,{className:p()({isActive:x}),lib:"fa",icon:"code",onClick:E}))))}},3768:(e,t,o)=>{o.d(t,{H:()=>r});var a=o(8769),n=o.n(a);function r(e){return n().createElement("div",{className:"custom-category-title"},e.text)}},6110:(e,t,o)=>{o.d(t,{i:()=>T});var a=o(9193),n=o(9646),r=o(7070),l=o(8769),i=o.n(l),c=o(2591),s=o.n(c),p=o(1740),u=o.n(p),m=o(8128),d=o.n(m),v=o(855),b=o.n(v),f=o(3051),h=o.n(f),x=o(3656),g=o.n(x),E=o(3607),y={};y.styleTagTransform=g(),y.setAttributes=b(),y.insert=d().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=h(),s()(E.A,y);const C=E.A&&E.A.locals?E.A.locals:void 0;var A=o(3373),k=o.n(A),S=function(e){return e[e.top=0]="top",e[e.right=1]="right",e[e.bottom=2]="bottom",e[e.left=3]="left",e}(S||{});function T(e){let{onChange:t,value:o,mode:c}=e;const[s,p]=(0,l.useState)(),[u,m]=(0,l.useState)(!1),[d,v]=(0,l.useState)(),b=(0,l.useMemo)((()=>"in"===c),[c]),f=e=>{v(e)},h=()=>{v(null)},x=(0,l.useCallback)(((e,a)=>{const n=a.match(/\d+/),r=Number(null!==n?n[0]:0),l=u?`${r}px`:`${(o??"0px 0px 0px 0px").match(/(\d+px)/g).map(((t,o)=>S[e]===o?`${r}px`:t)).join(" ")}`;t(l)}),[u,t,o]),g=e=>{m(e)},E=(0,l.useCallback)((e=>{const t=(e??"0px 0px 0px 0px").match(/(\d+)/g);p({top:+t[0],right:+t[1],bottom:+t[2],left:+t[3]})}),[]);return(0,l.useEffect)((()=>{E(o)}),[o,E]),i().createElement("div",{className:C.boxSizeComponent},i().createElement("div",{className:C.leftWrapper},i().createElement("div",{className:C.outBox},i().createElement("div",{className:C.inBox,style:{position:b?"relative":"initial"}},i().createElement("div",{className:k()(C.top,C.line,C.vertical,{[C.active]:"top"===d||u})}),i().createElement("div",{className:k()(C.right,C.line,C.horizontal,{[C.active]:"right"===d||u})}),i().createElement("div",{className:k()(C.left,C.line,C.horizontal,{[C.active]:"left"===d||u})}),i().createElement("div",{className:k()(C.bottom,C.line,C.vertical,{[C.active]:"bottom"===d||u})}),i().createElement("div",{className:"connect-btn"},u?i().createElement(n.A,{style:{color:"var(--color-brand)"},onClick:()=>g(!1)}):i().createElement(r.A,{onClick:()=>g(!0)}))))),i().createElement("div",{className:C.rightWrapper},i().createElement("div",{className:C.inputWrapper},i().createElement(a.pd,{prefix:"上",placeholder:"0",value:null==s?void 0:s.top,onFocus:()=>f("top"),onBlur:h,onChange:e=>x("top",e.target.value)}),i().createElement(a.pd,{prefix:"左",placeholder:"0",value:null==s?void 0:s.left,onFocus:()=>f("left"),onChange:e=>x("left",e.target.value),onBlur:h})),i().createElement("div",{className:C.inputWrapper},i().createElement(a.pd,{prefix:"下",placeholder:"0",value:null==s?void 0:s.bottom,onFocus:()=>f("bottom"),onBlur:h,onChange:e=>x("bottom",e.target.value)}),i().createElement(a.pd,{prefix:"右",placeholder:"0",value:null==s?void 0:s.right,onFocus:()=>f("right"),onBlur:h,onChange:e=>x("right",e.target.value)}))))}},3824:(e,t,o)=>{o.d(t,{S:()=>u});var a=o(9575),n=o(8769),r=o.n(n),l=o(4223),i=o(1732),c=o.n(i),s=o(1030);const p=(0,l.wrapBrick)("vs.code-editor",{onChange:"code.change",tokenClick:"token.click"});function u(e){const[t,o]=(0,n.useState)(),[l,i]=(0,n.useState)(),u=(0,n.useCallback)((t=>{var o;i(t.detail?t.detail:void 0);const a=t.detail?c().safeLoad(t.detail):void 0;null==e||null===(o=e.onChange)||void 0===o||o.call(e,a)}),[e]);return(0,n.useEffect)((()=>{if(e.value&&!t){let t=e.value;if(t&&"string"!=typeof t){const e=Object.fromEntries(Object.entries(t).map((e=>{let[t,o]=e;return(0,s.isEmpty)(o)?null:[t,o]})).filter(Boolean));t=c().safeDump(e,{skipInvalid:!0})}o(t)}}),[e.value,t]),r().createElement(p,(0,a.A)({minLines:e.minLines??1,automaticLayout:"fit-content",language:"brick_next_yaml",theme:"vs-dark"},e,{value:l??t,onChange:u}))}},5067:(e,t,o)=>{o.d(t,{h:()=>m});var a=o(9575),n=o(8769),r=o.n(n),l=o(5346),i=o(7856);const c=Object.entries({amber:"#f7bf02",yellow:"#fadb14",orange:"#e38306",pink:"#ff1a79",red:"#f24c25",blue:"#1a7aff",indigo:"#3844e8","deep-purple":"#6641f9","gray-blue":"#778dc3",purple:"#893ad8",cyan:"#21d4f3",teal:"#1dc897",green:"#08BF33"}).map((e=>{let[t,o]=e;return{label:t,colors:(0,i.cM)(o)}})),s=e=>[{label:"系统默认",colors:e.map((e=>e.colors)).flat()}],p=(e,t)=>{let o=t;return e.forEach((e=>{const t=e.label,a=e.colors.findIndex((e=>"string"==typeof e?e===o:e.toHsbString()===o));a>=0&&(o=`var(--palette-${t}-${a+1})`)})),o},u=(e,t)=>{const[,o,a]=t.match(/^var\(--palette-(\w+)-(\d+)\)$/)??[];let n=t;return o&&a&&e.forEach((e=>{const t=e.colors[Number(a)-1];e.label===o&&t&&(n="string"==typeof t?t:t.toHsbString())})),n};function m(e){const[t,o]=(0,n.useState)(),i=(0,n.useMemo)((()=>s(c)),[]);return(0,n.useEffect)((()=>{if(e.value){const t=u(c,e.value);o(t)}}),[e.value]),r().createElement(l.A,(0,a.A)({getPopupContainer:()=>document.body,showText:!0,presets:i},e,{value:t,onChange:(t,o)=>{var a,n;a=o,null===(n=e.onChange)||void 0===n||n.call(e,p(c,a))}}))}},8409:(e,t,o)=>{o.d(t,{v:()=>S});var a=o(7091),n=o(8769),r=o.n(n),l=o(2591),i=o.n(l),c=o(1740),s=o.n(c),p=o(8128),u=o.n(p),m=o(855),d=o.n(m),v=o(3051),b=o.n(v),f=o(3656),h=o.n(f),x=o(244),g={};g.styleTagTransform=h(),g.setAttributes=d(),g.insert=u().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=b(),i()(x.A,g);const E=x.A&&x.A.locals?x.A.locals:void 0;var y=o(3373),C=o.n(y);const A=(0,n.createContext)({}),k=()=>{const e=(0,a.Mt)(),t=(0,a.X0)(),o=[];return t.mapProperties(((t,a)=>{var n;const r=e.query(e.address.concat(a)).take();if("none"!==(null==r?void 0:r.display)&&"hidden"!==(null==r?void 0:r.display)&&(null===(n=t["x-component"])||void 0===n?void 0:n.indexOf("CustomTab.TabPanel"))>-1){var l,i;const e=(null==r||null===(l=r.componentProps)||void 0===l?void 0:l.key)||(null==t||null===(i=t["x-component-props"])||void 0===i?void 0:i.key)||a;o.push({name:a,props:{...null==t?void 0:t["x-component-props"],...null==r?void 0:r.componentProps,key:e},schema:t})}})),o};function S(e){var t;const o=k(),[a,l]=(0,n.useState)(null===(t=o[0])||void 0===t?void 0:t.name);return r().createElement(A.Provider,{value:{activeTab:a}},r().createElement("div",{className:E.customTabWrapper},r().createElement("div",{className:E.customTabList},o.map((e=>{var t,o;return r().createElement("div",{className:C()(E.customTabItem,{[E.active]:a===(null===(t=e.props)||void 0===t?void 0:t.key)}),key:null===(o=e.props)||void 0===o?void 0:o.key,onClick:()=>l(e.props.key)},r().createElement("div",{className:E.customTabItemLabel},e.props.title))}))),e.children))}S.TabPanel=function(e){const{activeTab:t}=(0,n.useContext)(A);return(0,n.useMemo)((()=>e.tab===t),[t,e.tab])?r().createElement("div",{className:E.customTabPanel},e.children):null}},2513:(e,t,o)=>{o.d(t,{r:()=>l});var a=o(8769),n=o.n(a);const r=(0,o(4223).wrapBrick)("eo-icon-select",{onChange:"change"});function l(e){return n().createElement(r,e)}},966:(e,t,o)=>{o.d(t,{U:()=>i});var a=o(9575),n=o(8769),r=o.n(n),l=o(9193);function i(e){const[t,o]=(0,n.useState)(),i=(0,n.useCallback)((t=>{e.onChange(t?`${t}${e.suffix}`:void 0)}),[e]);return(0,n.useEffect)((()=>{const t=(e.value??"").replace(e.suffix,"");o(t)}),[e.suffix,e.value]),r().createElement(l.pd,(0,a.A)({},e,{value:t,onChange:e=>i(e.target.value)}))}},1477:(e,t,o)=>{o.d(t,{r:()=>p});var a=o(9575),n=o(8769),r=o.n(n),l=o(9193),i=o(7091),c=o(5908),s=o(47);function p(e){const[t,o]=(0,n.useState)(!0),p=(0,i.mN)(),u=(0,i.Mt)(),{url:m,href:d}=e.transform??{url:"url",href:"href"},v=(0,n.useMemo)((()=>(0,c.fA)(s.ADVANCED_CHANGE_KEY,((e,t)=>o=>{o(e,t)}))),[]),b=(0,n.useCallback)((()=>{const a=!t;o(a),p.setValues({[a?m:d]:e.value}),p.deleteValuesIn(a?d:m)}),[t,p,m,e.value,d]),f=(0,n.useCallback)((o=>{e.onChange(o.detail),p.setValues({[t?m:d]:o.detail})}),[e,p,t,m,d]),h=(0,n.useMemo)((()=>t?"内链":"外链"),[t]),x=(0,n.useCallback)((e=>{const{values:t}=e.getState(),a=u.props.name;e.setValuesIn(a,t[m]??t[d]),o(!t[d])}),[u.props.name,d,m]);return(0,n.useEffect)((()=>{p.addEffects("onAdvancedChange",(()=>{(0,c.oJ)(x),v(((e,t)=>{const o=u.props.name;e&&t.deleteValuesIn(o)}))}))}),[p,u,v,x]),(0,n.useEffect)((()=>{x(p)}),[]),r().createElement(l.pd,(0,a.A)({},e,{suffix:r().createElement("div",{style:{cursor:"pointer"},slot:"suffix",onClick:b},h),onChange:f}))}},4287:(e,t,o)=>{o.d(t,{p:()=>p});var a=o(9575),n=o(8769),r=o.n(n),l=o(5524),i=o(1979),c=o(6394),s=o(4514);function p(e){return r().createElement(l.Ay.Group,(0,a.A)({},e,{size:"small"}),r().createElement(l.Ay.Button,{value:"left"},r().createElement(i.A,null)),r().createElement(l.Ay.Button,{value:"center"},r().createElement(c.A,null)),r().createElement(l.Ay.Button,{value:"right"},r().createElement(s.A,null)))}},5768:(e,t,o)=>{o.d(t,{_:()=>A});var a=o(8769),n=o.n(a),r=o(9193),l=o(4808),i=o(1469),c=o(2591),s=o.n(c),p=o(1740),u=o.n(p),m=o(8128),d=o.n(m),v=o(855),b=o.n(v),f=o(3051),h=o.n(f),x=o(3656),g=o.n(x),E=o(767),y={};y.styleTagTransform=g(),y.setAttributes=b(),y.insert=d().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=h(),s()(E.A,y);const C=E.A&&E.A.locals?E.A.locals:void 0;function A(e){return n().createElement("div",{className:C.useChildrenSelectWrapper},n().createElement(r.l6,e),n().createElement(l.A,{title:"点击添加子节点"},n().createElement(i.A,{className:C.plusIcon,onClick:()=>{var t;null==e||null===(t=e.triggerAction)||void 0===t||t.call(e,"add-slot")}})))}},8897:(e,t,o)=>{o.d(t,{O:()=>a});const a={type:"void",name:"style",children:[{name:"width",title:"宽度",type:"string",decorator:{name:"FormItemWithoutAdvanced",props:{layout:"vertail"}},component:{name:"InputWithUnit",props:{suffix:"px"}}},{name:"height",title:"高度",type:"string",decorator:{name:"FormItemWithoutAdvanced",props:{layout:"vertail"}},component:{name:"InputWithUnit",props:{suffix:"px"}}},{type:"string",name:"textAlign",title:"对齐",decorator:{name:"FormItemWithoutAdvanced",props:{layout:"vertail"}},component:"TextAlignRadio"},{type:"string",name:"background",title:"背景",decorator:{name:"FormItemWithoutAdvanced",props:{layout:"vertail"}},component:"ColorPicker"},{type:"string",name:"margin",title:"外边距(px)",decorator:{name:"FormItemWithoutAdvanced"},component:"BoxSize"},{type:"string",name:"padding",title:"内边距(px)",decorator:{name:"FormItemWithoutAdvanced"},component:{name:"BoxSize",props:{mode:"in"}}}]}},6265:(e,t,o)=>{o.d(t,{A:()=>i});var a=o(6758),n=o.n(a),r=o(935),l=o.n(r)()(n());l.push([e.id,'.advanced-form-item{position:relative}.advanced-form-item .advanced-mode-check-wrapper{position:absolute;top:6px;right:6px;line-height:0;z-index:1}.advanced-form-item .advanced-mode-check-wrapper eo-icon[icon="code"]{cursor:pointer;padding:2px 4px;background:var(--palette-gray-7);border-radius:6px}.advanced-form-item .advanced-mode-check-wrapper eo-icon.isActive[icon="code"]{background:var(--color-brand);color:#fff}',""]);const i=l},7621:(e,t,o)=>{o.d(t,{A:()=>i});var a=o(6758),n=o.n(a),r=o(935),l=o.n(r)()(n());l.push([e.id,".custom-category-title{font-size:14px;font-weight:600;line-height:14px;margin-bottom:12px;border-left:2px solid;padding-left:6px;border-color:#8d8d8d;margin-top:18px}.custom-category-title:first-child{margin-top:0}",""]);const i=l},3276:(e,t,o)=>{o.d(t,{A:()=>p});var a=o(6758),n=o.n(a),r=o(935),l=o.n(r),i=o(6265),c=o(7621),s=l()(n());s.i(i.A),s.i(c.A),s.push([e.id,".property-form-wrapper .antdV5-formily-item-feedback-layout-loose{margin-bottom:10px}.property-form-wrapper .antdV5-formily-item .antdV5-formily-item-control{align-self:center}",""]);const p=s},3607:(e,t,o)=>{o.d(t,{A:()=>i});var a=o(6758),n=o.n(a),r=o(935),l=o.n(r)()(n());l.push([e.id,".boxSizeComponent--a96YEG0R{display:flex;gap:8px}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he{width:80px}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF{border:1px solid var(--palette-gray-6);height:80px;padding:10px;border-radius:6px;position:relative}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .inBox--VAdQyQ8u{border:1px dashed var(--palette-gray-5);height:100%;border-radius:6px;display:flex;align-items:center;justify-content:center}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .inBox--VAdQyQ8u .connect-btn--iG4M5iHm{cursor:pointer}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .line--MEU6xbQI{position:absolute;background-color:var(--palette-gray-6)}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .line--MEU6xbQI.active--kwDvPu6c{background-color:var(--color-brand)}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .vertical--PTCuTBBU{left:50%;width:2px;height:10px}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .horizontal--C56jlFEU{top:50%;width:10px;height:2px}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .top--IAYy5_q3{top:0}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .right--lywbhIOD{right:0}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .bottom--bcHIN61S{bottom:0}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .left--ZqcFMgN_{left:0}.boxSizeComponent--a96YEG0R .rightWrapper--VEyni1eJ{flex:1;display:flex;flex-direction:column;gap:12px}.boxSizeComponent--a96YEG0R .rightWrapper--VEyni1eJ .inputWrapper--dlSjkwzs{display:flex;gap:12px}.boxSizeComponent--a96YEG0R .rightWrapper--VEyni1eJ .inputWrapper--dlSjkwzs .antdV5-input{text-align:right}",""]),l.locals={boxSizeComponent:"boxSizeComponent--a96YEG0R",leftWrapper:"leftWrapper--YJoTo4he",outBox:"outBox--bSstM0ZF",inBox:"inBox--VAdQyQ8u","connect-btn":"connect-btn--iG4M5iHm",line:"line--MEU6xbQI",active:"active--kwDvPu6c",vertical:"vertical--PTCuTBBU",horizontal:"horizontal--C56jlFEU",top:"top--IAYy5_q3",right:"right--lywbhIOD",bottom:"bottom--bcHIN61S",left:"left--ZqcFMgN_",rightWrapper:"rightWrapper--VEyni1eJ",inputWrapper:"inputWrapper--dlSjkwzs"};const i=l},244:(e,t,o)=>{o.d(t,{A:()=>i});var a=o(6758),n=o.n(a),r=o(935),l=o.n(r)()(n());l.push([e.id,".customTabWrapper--rhCkGBJ2 .customTabList--yAojeBWG{position:relative;display:flex;align-items:stretch;justify-items:flex-start;margin-bottom:8px}.customTabWrapper--rhCkGBJ2 .customTabList--yAojeBWG .customTabItem--Zjxji9O5{position:relative;text-align:center;cursor:pointer;transition:all 0.2s cubic-bezier(0.645,0.045,0.355,1);border-radius:4px;transform:translateZ(0)}.customTabWrapper--rhCkGBJ2 .customTabList--yAojeBWG .customTabItem--Zjxji9O5.active--ULNnDJEv{background-color:var(--palette-gray-6);box-shadow:0 1px 2px 0 rgba(0,0,0,0.03),0 1px 6px -1px rgba(0,0,0,0.02),0 2px 4px 0 rgba(0,0,0,0.02);color:#fff}.customTabWrapper--rhCkGBJ2 .customTabList--yAojeBWG .customTabItem--Zjxji9O5 .customTabItemLabel--scejdE0w{padding:2px 12px}",""]),l.locals={customTabWrapper:"customTabWrapper--rhCkGBJ2",customTabList:"customTabList--yAojeBWG",customTabItem:"customTabItem--Zjxji9O5",active:"active--ULNnDJEv",customTabItemLabel:"customTabItemLabel--scejdE0w"};const i=l},767:(e,t,o)=>{o.d(t,{A:()=>i});var a=o(6758),n=o.n(a),r=o(935),l=o.n(r)()(n());l.push([e.id,".useChildrenSelectWrapper--IczULak5{display:flex;gap:12px}.useChildrenSelectWrapper--IczULak5 .plusIcon--CyQgp1bl{cursor:pointer;font-size:22px;color:var(--color-brand)}",""]),l.locals={useChildrenSelectWrapper:"useChildrenSelectWrapper--IczULak5",plusIcon:"plusIcon--CyQgp1bl"};const i=l},74:(e,t,o)=>{var a=o(2591),n=o.n(a),r=o(1740),l=o.n(r),i=o(8128),c=o.n(i),s=o(855),p=o.n(s),u=o(3051),m=o.n(u),d=o(3656),v=o.n(d),b=o(3276),f={};f.styleTagTransform=v(),f.setAttributes=p(),f.insert=c().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=m(),n()(b.A,f),b.A&&b.A.locals&&b.A.locals}}]);
2
+ //# sourceMappingURL=5021.e1903483.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunks/5021.e1903483.js","mappings":"0SAmBA,MAAMA,GAAcC,EAAAA,EAAAA,WAAyC,WACvDC,GAAiBD,EAAAA,EAAAA,WAAmC,cASnD,SAASE,EAAiBC,GAC/B,MA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AO,CACLO,KAAM,S,kEChFZiP,E,MAA0B,GAA4B,KAE1DA,EAAwBlE,KAAK,CAACmE,EAAOC,GAAI,saAAua,KAEhd,S,kECJIF,E,MAA0B,GAA4B,KAE1DA,EAAwBlE,KAAK,CAACmE,EAAOC,GAAI,yNAA0N,KAEnQ,S,+FCFIF,EAA0B,IAA4B,KAC1DA,EAAwBG,EAAE,KAC1BH,EAAwBG,EAAE,KAE1BH,EAAwBlE,KAAK,CAACmE,EAAOC,GAAI,mLAAoL,KAE7N,S,kECRIF,E,MAA0B,GAA4B,KAE1DA,EAAwBlE,KAAK,CAACmE,EAAOC,GAAI,2xDAA4xD,KAEr0DF,EAAwBpM,OAAS,CAChC,iBAAoB,6BACpB,YAAe,wBACf,OAAU,mBACV,MAAS,kBACT,cAAe,wBACf,KAAQ,iBACR,OAAU,mBACV,SAAY,qBACZ,WAAc,uBACd,IAAO,gBACP,MAAS,kBACT,OAAU,mBACV,KAAQ,iBACR,aAAgB,yBAChB,aAAgB,0BAEjB,S,iECrBIoM,E,MAA0B,GAA4B,KAE1DA,EAAwBlE,KAAK,CAACmE,EAAOC,GAAI,0uBAA2uB,KAEpxBF,EAAwBpM,OAAS,CAChC,iBAAoB,6BACpB,cAAiB,0BACjB,cAAiB,0BACjB,OAAU,mBACV,mBAAsB,gCAEvB,S,iECXIoM,E,MAA0B,GAA4B,KAE1DA,EAAwBlE,KAAK,CAACmE,EAAOC,GAAI,4KAA6K,KAEtNF,EAAwBpM,OAAS,CAChC,yBAA4B,qCAC5B,SAAY,sBAEb,S,8ICAIN,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IACxBF,EAAQG,OAAS,SAAc,KAAM,QACrCH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKJ,KAAW,IAAQM,QAAS,IAAQA,M","sources":["webpack:///./src/property-editor/components/AdvancedFormItem/index.tsx","webpack:///./src/property-editor/components/CategoryTitle/index.tsx","webpack:///./src/property-editor/components/common/BoxSizeComponent.module.css?766a","webpack:///./src/property-editor/components/common/BoxSizeComponent.tsx","webpack:///./src/property-editor/components/common/CodeEditorComponent.tsx","webpack:///./src/property-editor/utils/colorTransform.ts","webpack:///./src/property-editor/components/common/ColorPickerComponent.tsx","webpack:///./src/property-editor/components/common/CustomTab.module.css?aeb2","webpack:///./src/property-editor/components/common/CustomTab.tsx","webpack:///./src/property-editor/components/common/IconSelectComponent.tsx","webpack:///./src/property-editor/components/common/InputWithUnitComponent.tsx","webpack:///./src/property-editor/components/common/InputWithUrlComponent.tsx","webpack:///./src/property-editor/components/common/TextAlignRadioComponent.tsx","webpack:///./src/property-editor/components/common/UseChildrenSelectComponent.module.css?b0be","webpack:///./src/property-editor/components/common/UseChildrenSelectComponent.tsx","webpack:///./src/property-editor/schema/styles.schema.ts","webpack:///./src/property-editor/components/AdvancedFormItem/AdvancedFormItem.shadow.css","webpack:///./src/property-editor/components/CategoryTitle/CategoryTitle.shadow.css","webpack:///./src/property-editor/style.css","webpack:///./src/property-editor/components/common/BoxSizeComponent.module.css","webpack:///./src/property-editor/components/common/CustomTab.module.css","webpack:///./src/property-editor/components/common/UseChildrenSelectComponent.module.css","webpack:///./src/property-editor/style.css?280e"],"sourcesContent":["import React, { useCallback, useMemo, useState } from \"react\";\nimport { FormItem, IFormItemProps } from \"@formily/antd-v5\";\nimport { wrapBrick } from \"@next-core/react-element\";\nimport { GeneralIcon, GeneralIconProps } from \"@next-bricks/icons/general-icon\";\nimport {\n useExpressionScope,\n useField,\n useForm,\n useFormEffects,\n} from \"@formily/react\";\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { EoTooltip, ToolTipProps } from \"@next-bricks/basic/src/tooltip\";\nimport classNames from \"classnames\";\nimport { isObject } from \"lodash\";\nimport { onFieldInitialValueChange } from \"@formily/core\";\nimport { isEvaluable } from \"@next-core/cook\";\nimport yaml from \"js-yaml\";\n\nconst WrappedIcon = wrapBrick<GeneralIcon, GeneralIconProps>(\"eo-icon\");\nconst WrappedToolTip = wrapBrick<EoTooltip, ToolTipProps>(\"eo-tooltip\");\n\ntype Mode = \"normal\" | \"advanced\";\n\ninterface AdvancedFormItemProps extends IFormItemProps {\n children: React.ReactElement;\n formEffect?: () => void;\n}\n\nexport function AdvancedFormItem(props: AdvancedFormItemProps) {\n const form = useForm();\n const field = useField();\n const scope = useExpressionScope();\n const [mode, setMode] = useState<Mode>(\n typeof (field as any).value === \"string\" &&\n isEvaluable((field as any).value)\n ? \"advanced\"\n : \"normal\"\n );\n const isAdvanced = useMemo(() => mode === \"advanced\", [mode]);\n const fieldOriginComponent = useMemo<any>(() => field.component, [field]);\n\n const handleModeCheck = useCallback(() => {\n const updateMode = isAdvanced ? \"normal\" : \"advanced\";\n const isAdvancedMode = updateMode === \"advanced\";\n setMode(updateMode);\n field.setComponent(\n isAdvancedMode ? \"CodeEditor\" : fieldOriginComponent[0],\n {\n ...(isAdvancedMode\n ? { ...(scope ?? {}), lineNumbers: \"off\", glyphMargin: false }\n : fieldOriginComponent[1]),\n }\n );\n\n const value = form.getValuesIn(field.props.name);\n if (isAdvancedMode && isObject(value)) {\n form.setInitialValues({\n [field.props.name as string]: yaml.safeDump(value),\n });\n } else if (!isAdvancedMode && value && typeof value === \"string\") {\n let newValue: any;\n try {\n newValue = yaml.load(value);\n } catch {\n newValue = null;\n }\n form.setInitialValues(\n {\n [field.props.name as string]: newValue,\n },\n \"overwrite\"\n );\n }\n }, [form, field, isAdvanced, fieldOriginComponent, scope]);\n\n useFormEffects(() => {\n onFieldInitialValueChange(field.props.name, ({ value }) => {\n if (typeof value === \"string\" && isEvaluable(value)) {\n setMode(\"advanced\");\n\n field.setComponent(\"CodeEditor\", {\n ...(scope ?? {}),\n lineNumbers: \"off\",\n glyphMargin: false,\n });\n }\n });\n });\n\n return (\n <div className=\"advanced-form-item\">\n <FormItem\n {...{\n ...props,\n layout: isAdvanced ? null : props.layout || \"vertical\",\n }}\n >\n {props.children}\n </FormItem>\n <div className=\"advanced-mode-check-wrapper\">\n <WrappedToolTip\n content={mode === \"normal\" ? \"使用表达式\" : \"关闭表达式\"}\n >\n <WrappedIcon\n className={classNames({\n isActive: isAdvanced,\n })}\n lib=\"fa\"\n icon=\"code\"\n onClick={handleModeCheck}\n />\n </WrappedToolTip>\n </div>\n </div>\n );\n}\n","import React from \"react\";\n\ninterface categoryTitleProps {\n text: string;\n}\nexport function CategoryTitle(props: categoryTitleProps): React.ReactElement {\n return <div className=\"custom-category-title\">{props.text}</div>;\n}\n","\n import API from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!./BoxSizeComponent.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!./BoxSizeComponent.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { Input } from \"@formily/antd-v5\";\nimport { DisconnectOutlined, LinkOutlined } from \"@ant-design/icons\";\nimport React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport styles from \"./BoxSizeComponent.module.css\";\nimport classNames from \"classnames\";\n\ntype Direction = \"top\" | \"bottom\" | \"left\" | \"right\";\n\nenum DirectionEnum {\n top = 0,\n right = 1,\n bottom = 2,\n left = 3,\n}\n\ntype BoxValue = {\n [key in Direction]: number;\n};\n\ninterface BoxSizeComponentProps {\n onChange: (value: string) => void;\n value: string;\n mode: \"in\" | \"out\";\n}\n\nexport function BoxSizeComponent({\n onChange,\n value,\n mode,\n}: BoxSizeComponentProps) {\n const [tranformValue, setTransformValue] = useState<BoxValue>();\n const [connect, setConnect] = useState<boolean>(false);\n const [direction, setDirection] = useState<Direction>();\n const isInMode = useMemo(() => mode === \"in\", [mode]);\n\n const handleFocus = (direction: Direction) => {\n setDirection(direction);\n };\n\n const handleBlur = () => {\n setDirection(null);\n };\n\n const handleChange = useCallback(\n (direction: Direction, inputValue: string) => {\n const newValue = inputValue.match(/\\d+/);\n\n const realValue = Number(newValue !== null ? newValue[0] : 0);\n\n const changeValue = connect\n ? `${realValue}px`\n : `${(value ?? \"0px 0px 0px 0px\")\n .match(/(\\d+px)/g)\n .map((item, index) => {\n if (DirectionEnum[direction] === index) {\n return `${realValue}px`;\n }\n return item;\n })\n .join(\" \")}`;\n onChange(changeValue);\n },\n [connect, onChange, value]\n );\n\n const handleConnectClick = (isConnect: boolean) => {\n setConnect(isConnect);\n };\n\n const transfrom = useCallback((value: string) => {\n const realValue = (value ?? \"0px 0px 0px 0px\").match(/(\\d+)/g);\n\n setTransformValue({\n top: +realValue[0],\n right: +realValue[1],\n bottom: +realValue[2],\n left: +realValue[3],\n });\n }, []);\n\n useEffect(() => {\n transfrom(value);\n }, [value, transfrom]);\n\n return (\n <div className={styles.boxSizeComponent}>\n <div className={styles.leftWrapper}>\n <div className={styles.outBox}>\n <div\n className={styles.inBox}\n style={{\n position: isInMode ? \"relative\" : \"initial\",\n }}\n >\n <div\n className={classNames(styles.top, styles.line, styles.vertical, {\n [styles.active]: direction === \"top\" || connect,\n })}\n />\n <div\n className={classNames(\n styles.right,\n styles.line,\n styles.horizontal,\n { [styles.active]: direction === \"right\" || connect }\n )}\n />\n <div\n className={classNames(\n styles.left,\n styles.line,\n styles.horizontal,\n { [styles.active]: direction === \"left\" || connect }\n )}\n />\n <div\n className={classNames(\n styles.bottom,\n styles.line,\n styles.vertical,\n { [styles.active]: direction === \"bottom\" || connect }\n )}\n />\n\n <div className=\"connect-btn\">\n {connect ? (\n <LinkOutlined\n style={{ color: \"var(--color-brand)\" }}\n onClick={() => handleConnectClick(false)}\n />\n ) : (\n <DisconnectOutlined onClick={() => handleConnectClick(true)} />\n )}\n </div>\n </div>\n </div>\n </div>\n <div className={styles.rightWrapper}>\n <div className={styles.inputWrapper}>\n <Input\n prefix={\"上\"}\n placeholder=\"0\"\n value={tranformValue?.top}\n onFocus={() => handleFocus(\"top\")}\n onBlur={handleBlur}\n onChange={(event) => handleChange(\"top\", event.target.value)}\n />\n <Input\n prefix={\"左\"}\n placeholder=\"0\"\n value={tranformValue?.left}\n onFocus={() => handleFocus(\"left\")}\n onChange={(event) => handleChange(\"left\", event.target.value)}\n onBlur={handleBlur}\n />\n </div>\n <div className={styles.inputWrapper}>\n <Input\n prefix={\"下\"}\n placeholder=\"0\"\n value={tranformValue?.bottom}\n onFocus={() => handleFocus(\"bottom\")}\n onBlur={handleBlur}\n onChange={(event) => handleChange(\"bottom\", event.target.value)}\n />\n <Input\n prefix={\"右\"}\n placeholder=\"0\"\n value={tranformValue?.right}\n onFocus={() => handleFocus(\"right\")}\n onBlur={handleBlur}\n onChange={(event) => handleChange(\"right\", event.target.value)}\n />\n </div>\n </div>\n </div>\n );\n}\n","import React, { useCallback, useEffect, useState } from \"react\";\nimport { wrapBrick } from \"@next-core/react-element\";\nimport { CodeEditor, CodeEditorProps } from \"@next-bricks/vs/code-editor\";\nimport yaml from \"js-yaml\";\nimport { isEmpty } from \"lodash\";\n\ninterface CodeEditorComponentProps extends CodeEditorProps {\n onChange?: (value?: any) => void;\n tokenClick?: (value?: any) => void;\n scope: any;\n}\n\ninterface CodeEditorEvents {\n \"code.change\"?: (value?: any) => void;\n \"token.click\"?: (value?: any) => void;\n}\n\ninterface CodeEditorEventsMapping {\n onChange: \"code.change\";\n tokenClick: \"token.click\";\n}\n\nconst WrappedCodeEditor = wrapBrick<\n CodeEditor,\n CodeEditorProps,\n CodeEditorEvents,\n CodeEditorEventsMapping\n>(\"vs.code-editor\", {\n onChange: \"code.change\",\n tokenClick: \"token.click\",\n});\n\nexport function CodeEditorComponent(\n props: CodeEditorComponentProps\n): React.ReactElement {\n const [initValue, setInitValue] = useState<string>();\n const [value, setValue] = useState<string>();\n\n const handleChange = useCallback(\n (event: any) => {\n setValue(event.detail ? event.detail : undefined);\n const value = event.detail ? yaml.safeLoad(event.detail) : undefined;\n props?.onChange?.(value);\n },\n [props]\n );\n\n useEffect(() => {\n if (props.value && !initValue) {\n let value = props.value;\n if (value && typeof value !== \"string\") {\n const filterValue = Object.fromEntries(\n Object.entries(value)\n .map(([k, v]) => {\n if (isEmpty(v)) {\n return null;\n }\n return [k, v];\n })\n .filter(Boolean)\n );\n value = yaml.safeDump(filterValue, {\n skipInvalid: true,\n });\n }\n\n setInitValue(value);\n }\n }, [props.value, initValue]);\n\n return (\n <WrappedCodeEditor\n minLines={props.minLines ?? 1}\n automaticLayout=\"fit-content\"\n language={\"brick_next_yaml\"}\n theme={\"vs-dark\"}\n {...props}\n value={value ?? initValue}\n onChange={handleChange}\n />\n );\n}\n","import { generate } from \"@ant-design/colors\";\nimport type { ColorPickerProps } from \"antd\";\n\nexport type Presets = Required<ColorPickerProps>[\"presets\"];\n\nexport type ColorItem = {\n metaColor: {\n format?: string;\n originalInput: string;\n };\n};\n\nconst genPresets = (presets: Record<string, string>): Presets =>\n Object.entries(presets).map(([label, colors]) => ({\n label,\n colors: generate(colors),\n }));\n\nexport const presets = genPresets({\n amber: \"#f7bf02\",\n yellow: \"#fadb14\",\n orange: \"#e38306\",\n pink: \"#ff1a79\",\n red: \"#f24c25\",\n blue: \"#1a7aff\",\n indigo: \"#3844e8\",\n \"deep-purple\": \"#6641f9\",\n \"gray-blue\": \"#778dc3\",\n purple: \"#893ad8\",\n cyan: \"#21d4f3\",\n teal: \"#1dc897\",\n green: \"#08BF33\",\n});\n\nexport const compressPresets = (presets: Presets): Presets => {\n return [\n {\n label: \"系统默认\",\n colors: presets.map((item) => item.colors).flat(),\n },\n ];\n};\n\nexport const trasnformColorToCssVariables = (\n presets: Presets,\n color: string\n) => {\n let matchColor = color;\n presets.forEach((preset) => {\n const key = preset.label;\n\n const index = preset.colors.findIndex((item) =>\n typeof item === \"string\"\n ? item === matchColor\n : item.toHsbString() === matchColor\n );\n\n if (index >= 0) {\n matchColor = `var(--palette-${key}-${index + 1})`;\n }\n });\n\n return matchColor;\n};\n\nexport const transformCssVariablesToColor = (\n presets: Presets,\n color: string\n) => {\n const [, key, index] = color.match(/^var\\(--palette-(\\w+)-(\\d+)\\)$/) ?? [];\n\n let matchColor = color;\n if (key && index) {\n presets.forEach((preset) => {\n const color = preset.colors[Number(index) - 1];\n if (preset.label === key && color) {\n matchColor = typeof color === \"string\" ? color : color.toHsbString();\n }\n });\n }\n\n return matchColor;\n};\n","import React, { useEffect, useMemo, useState } from \"react\";\nimport { ColorPicker } from \"antd\";\nimport { ColorPickerProps } from \"antd/lib/color-picker\";\nimport {\n compressPresets,\n presets,\n transformCssVariablesToColor,\n trasnformColorToCssVariables,\n} from \"../../utils/colorTransform\";\ninterface ColorPickerComponentProps extends Omit<ColorPickerProps, \"onChange\"> {\n onChange?: (value: string) => void;\n}\n\nexport function ColorPickerComponent(\n props: ColorPickerComponentProps\n): React.ReactElement {\n const [value, setValue] = useState<string>();\n const transformPresets = useMemo(() => compressPresets(presets), []);\n\n const handleChange = (color: string) => {\n props.onChange?.(trasnformColorToCssVariables(presets, color));\n };\n\n useEffect(() => {\n if (props.value) {\n const value = transformCssVariablesToColor(\n presets,\n props.value as string\n );\n setValue(value);\n }\n }, [props.value]);\n\n return (\n <ColorPicker\n getPopupContainer={() => document.body}\n showText={true}\n presets={transformPresets}\n {...props}\n value={value}\n onChange={(_, hex) => {\n handleChange(hex);\n }}\n />\n );\n}\n","\n import API from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!./CustomTab.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!./CustomTab.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import { Schema, SchemaKey, useField, useFieldSchema } from \"@formily/react\";\nimport React, { createContext, useContext, useMemo, useState } from \"react\";\nimport styles from \"./CustomTab.module.css\";\nimport classNames from \"classnames\";\n\ninterface CustomTabContextProps {\n activeTab?: string;\n}\n\nconst CustomTabContext = createContext<CustomTabContextProps>({});\nconst useCustonTabContext = () => useContext(CustomTabContext);\n\nconst useTabs = () => {\n const tabsField = useField();\n const schema = useFieldSchema();\n const tabs: { name: SchemaKey; props: any; schema: Schema }[] = [];\n schema.mapProperties((schema, name) => {\n const field = tabsField.query(tabsField.address.concat(name)).take();\n if (field?.display === \"none\" || field?.display === \"hidden\") return;\n if (schema[\"x-component\"]?.indexOf(\"CustomTab.TabPanel\") > -1) {\n const key =\n field?.componentProps?.key ||\n schema?.[\"x-component-props\"]?.key ||\n name;\n tabs.push({\n name,\n props: {\n ...schema?.[\"x-component-props\"],\n ...field?.componentProps,\n key,\n },\n schema,\n });\n }\n });\n return tabs;\n};\n\nexport function CustomTab(props: any) {\n const tabs = useTabs();\n const [activeTab, setActiveTab] = useState<string>(tabs[0]?.name as string);\n\n return (\n <CustomTabContext.Provider\n value={{\n activeTab: activeTab,\n }}\n >\n <div className={styles.customTabWrapper}>\n <div className={styles.customTabList}>\n {tabs.map((item) => {\n return (\n <div\n className={classNames(styles.customTabItem, {\n [styles.active]: activeTab === item.props?.key,\n })}\n key={item.props?.key}\n onClick={() => setActiveTab(item.props.key)}\n >\n <div className={styles.customTabItemLabel}>\n {item.props.title}\n </div>\n </div>\n );\n })}\n </div>\n {props.children}\n </div>\n </CustomTabContext.Provider>\n );\n}\n\nCustomTab.TabPanel = function TabPanel(props: any) {\n const { activeTab } = useCustonTabContext();\n\n const isActive = useMemo(\n () => props.tab === activeTab,\n [activeTab, props.tab]\n );\n\n if (!isActive) return null;\n\n return <div className={styles.customTabPanel}>{props.children}</div>;\n};\n","import React from \"react\";\nimport { IconSelect, IconSelectProps } from \"@next-bricks/form/icon-select\";\nimport { wrapBrick } from \"@next-core/react-element\";\ninterface IconSelectComponentProps extends IconSelectProps {\n onChange?: (value?: any) => void;\n}\ninterface IconSelectEvents {\n change?: (value?: any) => void;\n}\nexport interface IconSelectEventsMapping {\n onChange: \"change\";\n}\nconst WrappedIconSelect = wrapBrick<\n IconSelect,\n IconSelectProps,\n IconSelectEvents,\n IconSelectEventsMapping\n>(\"eo-icon-select\", {\n onChange: \"change\",\n});\nexport function IconSelectComponent(props: IconSelectComponentProps) {\n return <WrappedIconSelect {...props} />;\n}\n","import React, { useCallback, useEffect, useState } from \"react\";\nimport { Input } from \"@formily/antd-v5\";\nimport { InputProps } from \"antd\";\n\ntype InputWithUnitComponentProps = InputProps & {\n onChange: (value: string) => void;\n};\n\nexport function InputWithUnitComponent(props: InputWithUnitComponentProps) {\n const [transformValue, setTransfromValue] = useState<string>();\n const handleChange = useCallback(\n (value: string) => {\n props.onChange(value ? `${value}${props.suffix as string}` : undefined);\n },\n [props]\n );\n\n useEffect(() => {\n const realValue = ((props.value as string) ?? \"\").replace(\n props.suffix as string,\n \"\"\n );\n setTransfromValue(realValue);\n }, [props.suffix, props.value]);\n\n return (\n <Input\n {...props}\n value={transformValue}\n onChange={(e) => handleChange(e.target.value)}\n />\n );\n}\n","import React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { Input } from \"@formily/antd-v5\";\nimport { useField, useForm } from \"@formily/react\";\nimport {\n createEffectHook,\n Form,\n onFormInitialValuesChange,\n} from \"@formily/core\";\nimport { ADVANCED_CHANGE_KEY } from \"../../index.js\";\n\ninterface InputWithUrlComponentProps {\n onChange: (value: string) => void;\n value: string;\n name: string;\n advancedMode?: boolean;\n transform: {\n url: string;\n href: string;\n };\n}\n\nexport function InputWithUrlComponent(props: InputWithUrlComponentProps) {\n const [mode, setMode] = useState<boolean>(true);\n const form = useForm();\n const field = useField();\n const { url, href } = props.transform ?? { url: \"url\", href: \"href\" };\n\n const onAdvancedChangeEffect = useMemo(\n () =>\n createEffectHook(\n ADVANCED_CHANGE_KEY,\n (advancedMode, form) => (listener) => {\n listener(advancedMode, form);\n }\n ),\n []\n );\n\n const handleModeClick = useCallback(() => {\n const realMode = !mode;\n setMode(realMode);\n\n form.setValues({ [realMode ? url : href]: props.value });\n form.deleteValuesIn(realMode ? href : url);\n }, [mode, form, url, props.value, href]);\n\n const handleChange = useCallback(\n (event: CustomEvent<string>) => {\n props.onChange(event.detail);\n\n form.setValues({ [mode ? url : href]: event.detail });\n },\n [props, form, mode, url, href]\n );\n\n const suffixText = useMemo(() => `${mode ? \"内链\" : \"外链\"}`, [mode]);\n\n const computedLink = useCallback(\n (form: Form) => {\n const { values } = form.getState();\n const fieldName = field.props.name;\n\n form.setValuesIn(fieldName, values[url] ?? values[href]);\n\n setMode(!values[href]);\n },\n [field.props.name, href, url]\n );\n\n useEffect(() => {\n form.addEffects(\"onAdvancedChange\", () => {\n onFormInitialValuesChange(computedLink),\n onAdvancedChangeEffect((advancedMode: boolean, form: Form) => {\n const fieldName = field.props.name;\n if (advancedMode) {\n form.deleteValuesIn(fieldName);\n }\n });\n });\n }, [form, field, onAdvancedChangeEffect, computedLink]);\n\n useEffect(() => {\n computedLink(form);\n }, []);\n\n return (\n <Input\n {...props}\n suffix={\n <div\n style={{ cursor: \"pointer\" }}\n slot=\"suffix\"\n onClick={handleModeClick}\n >\n {suffixText}\n </div>\n }\n onChange={handleChange as any}\n />\n );\n}\n","import React from \"react\";\nimport { Radio } from \"antd\";\nimport {\n AlignLeftOutlined,\n AlignCenterOutlined,\n AlignRightOutlined,\n} from \"@ant-design/icons\";\n\nexport function TextAlignRadioComponent(props: any): React.ReactElement {\n return (\n <Radio.Group {...props} size=\"small\">\n <Radio.Button value=\"left\">\n <AlignLeftOutlined />\n </Radio.Button>\n <Radio.Button value=\"center\">\n <AlignCenterOutlined />\n </Radio.Button>\n <Radio.Button value=\"right\">\n <AlignRightOutlined />\n </Radio.Button>\n </Radio.Group>\n );\n}\n","\n import API from \"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!./UseChildrenSelectComponent.module.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!./UseChildrenSelectComponent.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import React from \"react\";\nimport { Select } from \"@formily/antd-v5\";\nimport { Tooltip, SelectProps } from \"antd\";\nimport { PlusCircleOutlined } from \"@ant-design/icons\";\nimport styles from \"./UseChildrenSelectComponent.module.css\";\n\ntype UseChildrenSelectComponentProps = SelectProps & {\n triggerAction: (action: string) => void;\n};\n\nexport function UseChildrenSelectComponent(\n props: UseChildrenSelectComponentProps\n) {\n const handlePlusIconClick = () => {\n props?.triggerAction?.(\"add-slot\");\n };\n\n return (\n <div className={styles.useChildrenSelectWrapper}>\n <Select {...props} />\n <Tooltip title=\"点击添加子节点\">\n <PlusCircleOutlined\n className={styles.plusIcon}\n onClick={handlePlusIconClick}\n />\n </Tooltip>\n </div>\n );\n}\n","import { DataNode } from \"../utils/formilySchemaFormatter\";\n\nexport const stylesSchema: DataNode = {\n type: \"void\",\n name: \"style\",\n children: [\n {\n name: \"width\",\n title: \"宽度\",\n type: \"string\",\n decorator: {\n name: \"FormItemWithoutAdvanced\",\n props: {\n layout: \"vertail\",\n },\n },\n component: {\n name: \"InputWithUnit\",\n props: {\n suffix: \"px\",\n },\n },\n },\n {\n name: \"height\",\n title: \"高度\",\n type: \"string\",\n decorator: {\n name: \"FormItemWithoutAdvanced\",\n props: {\n layout: \"vertail\",\n },\n },\n component: {\n name: \"InputWithUnit\",\n props: {\n suffix: \"px\",\n },\n },\n },\n {\n type: \"string\",\n name: \"textAlign\",\n title: \"对齐\",\n decorator: {\n name: \"FormItemWithoutAdvanced\",\n props: {\n layout: \"vertail\",\n },\n },\n component: \"TextAlignRadio\",\n },\n {\n type: \"string\",\n name: \"background\",\n title: \"背景\",\n decorator: {\n name: \"FormItemWithoutAdvanced\",\n props: {\n layout: \"vertail\",\n },\n },\n component: \"ColorPicker\",\n },\n {\n type: \"string\",\n name: \"margin\",\n title: \"外边距(px)\",\n decorator: {\n name: \"FormItemWithoutAdvanced\",\n },\n component: \"BoxSize\",\n },\n {\n type: \"string\",\n name: \"padding\",\n title: \"内边距(px)\",\n decorator: {\n name: \"FormItemWithoutAdvanced\",\n },\n component: {\n name: \"BoxSize\",\n props: {\n mode: \"in\",\n },\n },\n },\n ],\n};\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.advanced-form-item{position:relative}.advanced-form-item .advanced-mode-check-wrapper{position:absolute;top:6px;right:6px;line-height:0;z-index:1}.advanced-form-item .advanced-mode-check-wrapper eo-icon[icon=\"code\"]{cursor:pointer;padding:2px 4px;background:var(--palette-gray-7);border-radius:6px}.advanced-form-item .advanced-mode-check-wrapper eo-icon.isActive[icon=\"code\"]{background:var(--color-brand);color:#fff}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.custom-category-title{font-size:14px;font-weight:600;line-height:14px;margin-bottom:12px;border-left:2px solid;padding-left:6px;border-color:#8d8d8d;margin-top:18px}.custom-category-title:first-child{margin-top:0}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_AT_RULE_IMPORT_0___ from \"-!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./components/AdvancedFormItem/AdvancedFormItem.shadow.css\";\nimport ___CSS_LOADER_AT_RULE_IMPORT_1___ from \"-!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./components/CategoryTitle/CategoryTitle.shadow.css\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_0___);\n___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_1___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.property-form-wrapper .antdV5-formily-item-feedback-layout-loose{margin-bottom:10px}.property-form-wrapper .antdV5-formily-item .antdV5-formily-item-control{align-self:center}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.boxSizeComponent--a96YEG0R{display:flex;gap:8px}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he{width:80px}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF{border:1px solid var(--palette-gray-6);height:80px;padding:10px;border-radius:6px;position:relative}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .inBox--VAdQyQ8u{border:1px dashed var(--palette-gray-5);height:100%;border-radius:6px;display:flex;align-items:center;justify-content:center}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .inBox--VAdQyQ8u .connect-btn--iG4M5iHm{cursor:pointer}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .line--MEU6xbQI{position:absolute;background-color:var(--palette-gray-6)}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .line--MEU6xbQI.active--kwDvPu6c{background-color:var(--color-brand)}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .vertical--PTCuTBBU{left:50%;width:2px;height:10px}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .horizontal--C56jlFEU{top:50%;width:10px;height:2px}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .top--IAYy5_q3{top:0}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .right--lywbhIOD{right:0}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .bottom--bcHIN61S{bottom:0}.boxSizeComponent--a96YEG0R .leftWrapper--YJoTo4he .outBox--bSstM0ZF .left--ZqcFMgN_{left:0}.boxSizeComponent--a96YEG0R .rightWrapper--VEyni1eJ{flex:1;display:flex;flex-direction:column;gap:12px}.boxSizeComponent--a96YEG0R .rightWrapper--VEyni1eJ .inputWrapper--dlSjkwzs{display:flex;gap:12px}.boxSizeComponent--a96YEG0R .rightWrapper--VEyni1eJ .inputWrapper--dlSjkwzs .antdV5-input{text-align:right}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"boxSizeComponent\": `boxSizeComponent--a96YEG0R`,\n\t\"leftWrapper\": `leftWrapper--YJoTo4he`,\n\t\"outBox\": `outBox--bSstM0ZF`,\n\t\"inBox\": `inBox--VAdQyQ8u`,\n\t\"connect-btn\": `connect-btn--iG4M5iHm`,\n\t\"line\": `line--MEU6xbQI`,\n\t\"active\": `active--kwDvPu6c`,\n\t\"vertical\": `vertical--PTCuTBBU`,\n\t\"horizontal\": `horizontal--C56jlFEU`,\n\t\"top\": `top--IAYy5_q3`,\n\t\"right\": `right--lywbhIOD`,\n\t\"bottom\": `bottom--bcHIN61S`,\n\t\"left\": `left--ZqcFMgN_`,\n\t\"rightWrapper\": `rightWrapper--VEyni1eJ`,\n\t\"inputWrapper\": `inputWrapper--dlSjkwzs`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.customTabWrapper--rhCkGBJ2 .customTabList--yAojeBWG{position:relative;display:flex;align-items:stretch;justify-items:flex-start;margin-bottom:8px}.customTabWrapper--rhCkGBJ2 .customTabList--yAojeBWG .customTabItem--Zjxji9O5{position:relative;text-align:center;cursor:pointer;transition:all 0.2s cubic-bezier(0.645,0.045,0.355,1);border-radius:4px;transform:translateZ(0)}.customTabWrapper--rhCkGBJ2 .customTabList--yAojeBWG .customTabItem--Zjxji9O5.active--ULNnDJEv{background-color:var(--palette-gray-6);box-shadow:0 1px 2px 0 rgba(0,0,0,0.03),0 1px 6px -1px rgba(0,0,0,0.02),0 2px 4px 0 rgba(0,0,0,0.02);color:#fff}.customTabWrapper--rhCkGBJ2 .customTabList--yAojeBWG .customTabItem--Zjxji9O5 .customTabItemLabel--scejdE0w{padding:2px 12px}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"customTabWrapper\": `customTabWrapper--rhCkGBJ2`,\n\t\"customTabList\": `customTabList--yAojeBWG`,\n\t\"customTabItem\": `customTabItem--Zjxji9O5`,\n\t\"active\": `active--ULNnDJEv`,\n\t\"customTabItemLabel\": `customTabItemLabel--scejdE0w`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.useChildrenSelectWrapper--IczULak5{display:flex;gap:12px}.useChildrenSelectWrapper--IczULak5 .plusIcon--CyQgp1bl{cursor:pointer;font-size:22px;color:var(--color-brand)}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"useChildrenSelectWrapper\": `useChildrenSelectWrapper--IczULak5`,\n\t\"plusIcon\": `plusIcon--CyQgp1bl`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./style.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./style.css\";\n export default content && content.locals ? content.locals : undefined;\n"],"names":["WrappedIcon","wrapBrick","WrappedToolTip","AdvancedFormItem","props","form","useForm","field","useField","scope","useExpressionScope","mode","setMode","useState","value","isEvaluable","isAdvanced","useMemo","fieldOriginComponent","component","handleModeCheck","useCallback","updateMode","isAdvancedMode","setComponent","lineNumbers","glyphMargin","getValuesIn","name","isObject","setInitialValues","yaml","newValue","useFormEffects","onFieldInitialValueChange","_ref","React","className","FormItem","_extends","layout","children","content","classNames","isActive","lib","icon","onClick","CategoryTitle","text","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","DirectionEnum","BoxSizeComponent","onChange","tranformValue","setTransformValue","connect","setConnect","direction","setDirection","isInMode","handleFocus","handleBlur","handleChange","inputValue","match","realValue","Number","changeValue","map","item","index","join","handleConnectClick","isConnect","transfrom","top","right","bottom","left","useEffect","styles","boxSizeComponent","leftWrapper","outBox","inBox","style","position","line","vertical","active","horizontal","LinkOutlined","color","DisconnectOutlined","rightWrapper","inputWrapper","Input","prefix","placeholder","onFocus","onBlur","event","target","WrappedCodeEditor","tokenClick","CodeEditorComponent","initValue","setInitValue","setValue","_props$onChange","detail","call","filterValue","Object","fromEntries","entries","k","v","isEmpty","filter","Boolean","skipInvalid","minLines","automaticLayout","language","theme","presets","amber","yellow","orange","pink","red","blue","indigo","purple","cyan","teal","green","label","colors","generate","compressPresets","flat","trasnformColorToCssVariables","matchColor","forEach","preset","key","findIndex","toHsbString","transformCssVariablesToColor","ColorPickerComponent","transformPresets","ColorPicker","getPopupContainer","document","body","showText","_","hex","CustomTabContext","createContext","useTabs","tabsField","schema","useFieldSchema","tabs","mapProperties","_schema$xComponent","query","address","concat","take","display","indexOf","_field$componentProps","_schema$xComponentP","componentProps","push","CustomTab","_tabs$","activeTab","setActiveTab","Provider","customTabWrapper","customTabList","_item$props","_item$props2","customTabItem","customTabItemLabel","title","TabPanel","useContext","tab","customTabPanel","WrappedIconSelect","IconSelectComponent","InputWithUnitComponent","transformValue","setTransfromValue","suffix","replace","e","InputWithUrlComponent","url","href","transform","onAdvancedChangeEffect","createEffectHook","ADVANCED_CHANGE_KEY","advancedMode","listener","handleModeClick","realMode","setValues","deleteValuesIn","suffixText","computedLink","values","getState","fieldName","setValuesIn","addEffects","onFormInitialValuesChange","cursor","slot","TextAlignRadioComponent","Radio","size","AlignLeftOutlined","AlignCenterOutlined","AlignRightOutlined","UseChildrenSelectComponent","useChildrenSelectWrapper","Select","Tooltip","PlusCircleOutlined","plusIcon","handlePlusIconClick","_props$triggerAction","triggerAction","stylesSchema","type","decorator","___CSS_LOADER_EXPORT___","module","id","i"],"sourceRoot":""}
@@ -0,0 +1,3 @@
1
+ /*! For license information please see 7150.ac864502.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[7150],{7150:(e,t,n)=>{n.r(t);var i,a=n(4635),o=n(918),r=n(6902),s=n(5536),l=n(6121),c=n(829),d=n(2740),h=n(8769),p=n.n(h),u=n(1929),m=n(4223),g=n(7180),A=n(9765),v=n(3373),b=n.n(v);let f,E,k,y,w,x,N,L,M,C,T,R,O,I,_;const S=(0,m.wrapBrick)("eo-icon"),{defineElement:D,property:P,event:W}=(0,u.createDecorators)();let $;var F=new WeakMap,B=new WeakMap,U=new WeakMap,z=new WeakMap,K=new WeakSet,j=new WeakMap,V=new WeakMap,H=new WeakMap;class Y extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,K),(0,o.A)(this,F,E(this)),(0,o.A)(this,B,(k(this),y(this))),(0,o.A)(this,U,(w(this),x(this))),(0,o.A)(this,z,(N(this),L(this))),(0,o.A)(this,j,(T(this),e=>{e!==this.active&&(this.active=e,(0,s.A)(K,this,M).emit(e))})),(0,o.A)(this,V,R(this)),(0,o.A)(this,H,(_(this),()=>{(0,s.A)(K,this,O).emit()}))}get titleLabel(){return(0,c.A)(F,this)}set titleLabel(e){(0,l.A)(F,this,e)}get active(){return(0,c.A)(B,this)}set active(e){(0,l.A)(B,this,e)}get badge(){return(0,c.A)(U,this)}set badge(e){(0,l.A)(U,this,e)}render(){return p().createElement(G,{titleLabel:this.titleLabel,active:this.active,badge:this.badge,onActiveChange:(0,c.A)(j,this),onFirstActivated:(0,c.A)(H,this)})}}function G(e){let{titleLabel:t,active:n,badge:i,onActiveChange:a,onFirstActivated:o}=e;const[r,s]=(0,h.useState)(n),[l,c]=(0,h.useState)(!1);(0,h.useEffect)((()=>{s(n)}),[n]),(0,h.useEffect)((()=>{null==a||a(r)}),[r,a]);const d=(0,h.useCallback)((()=>{s((e=>!e)),l||r||(c(!0),null==o||o())}),[l,r,o]),u=(0,h.useRef)(),[m,g]=(0,h.useState)(!1),A=(0,h.useMemo)((()=>function(e){let t;const n=()=>cancelAnimationFrame(t),i=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];t&&n(),t=requestAnimationFrame((()=>{(()=>{g(u.current.scrollTop>0)})(...i)}))};return i.cancel=n,i}()),[]);return p().createElement("div",{className:b()("pane",{scrolled:m})},p().createElement("div",{className:"pane-header",tabIndex:0,onClick:d},p().createElement("div",{className:"pane-title"},p().createElement("span",{className:"title-icon"},r?p().createElement(S,{lib:"antd",theme:"outlined",icon:"down"}):p().createElement(S,{lib:"antd",theme:"outlined",icon:"right"})),p().createElement("div",{className:"title-label"},t),p().createElement("slot",{name:"title"})),p().createElement("slot",{name:"actions"}),i&&p().createElement("div",{className:"badge"},i),p().createElement("div",{className:"pane-scroll-shadow"})),p().createElement("div",{className:"pane-body custom-scrollbar-container",onScroll:A,ref:u},p().createElement("slot",null,p().createElement("div",{style:{padding:"10px 20px",color:"var(--text-color-secondary)"}},"No content"))))}i=Y,({e:[E,k,y,w,x,N,L,M,C,T,R,O,I,_],c:[$,f]}=(0,d.A)(i,[D("visual-builder.workbench-pane",{styleTexts:[g.A,A.A]})],[[P(),1,"titleLabel"],[P({type:Boolean}),1,"active"],[P({type:Number}),1,"badge"],[W({type:"active.change"}),1,"activeChangeEvent",e=>(0,c.A)(z,e),(e,t)=>(0,l.A)(z,e,t)],[W({type:"active.firstActivated"}),1,"activeFirstActivatedEvent",e=>(0,c.A)(V,e),(e,t)=>(0,l.A)(V,e,t)]],0,(e=>H.has((0,r.A)(e))),m.ReactNextElement)),f();var X,q=n(4586),J=n(2150);let Q,Z,ee;const{defineElement:te,property:ne}=(0,u.createDecorators)();let ie;var ae=new WeakMap,oe=new WeakMap,re=new WeakMap,se=new WeakMap;class le extends m.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,ae,Z(this)),(0,o.A)(this,oe,(ee(this),()=>{var e;return null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])")})),(0,o.A)(this,re,(()=>{const e=(0,c.A)(oe,this).call(this).assignedNodes();for(const t of e)t.active?t.style.flex=String(t.activeFlex??"1"):t.style.flex="initial"})),(0,o.A)(this,se,(e=>{const t=e.target.assignedNodes();for(const e of t)e.addEventListener("active.change",(0,c.A)(re,this))})),(0,q.A)(this,"refCallback",(()=>{(0,c.A)(re,this).call(this);const e=(0,c.A)(oe,this).call(this);null==e||e.addEventListener("slotchange",(e=>{(0,c.A)(se,this).call(this,e)}))}))}get titleLabel(){return(0,c.A)(ae,this)}set titleLabel(e){(0,l.A)(ae,this,e)}render(){return p().createElement(ce,{titleLabel:this.titleLabel,refCallback:this.refCallback})}}function ce(e){let{titleLabel:t,refCallback:n}=e;return p().createElement("div",{className:"sidebar",ref:n},p().createElement("div",{className:"title-container"},p().createElement("div",{className:"title-label"},t),p().createElement("slot",{name:"titleToolbar"})),p().createElement("div",{className:"pane-container"},p().createElement("slot",null)))}X=le,({e:[Z,ee],c:[ie,Q]}=(0,d.A)(X,[te("visual-builder.workbench-sidebar",{styleTexts:[J.A]})],[[ne(),1,"titleLabel"]],0,void 0,m.ReactNextElement)),Q();var de,he=n(5292);let pe,ue,me,ge,Ae,ve,be,fe,Ee,ke,ye;const{defineElement:we,property:xe}=(0,u.createDecorators)(),Ne=(0,m.wrapBrick)("eo-link"),Le=(0,m.wrapBrick)("eo-icon");let Me;var Ce=new WeakMap,Te=new WeakMap,Re=new WeakMap,Oe=new WeakMap,Ie=new WeakMap;class _e extends m.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,Ce,ue(this)),(0,o.A)(this,Te,(me(this),ge(this))),(0,o.A)(this,Re,(Ae(this),ve(this))),(0,o.A)(this,Oe,(be(this),fe(this))),(0,o.A)(this,Ie,(Ee(this),ke(this))),ye(this)}get icon(){return(0,c.A)(Ce,this)}set icon(e){(0,l.A)(Ce,this,e)}get to(){return(0,c.A)(Te,this)}set to(e){(0,l.A)(Te,this,e)}get active(){return(0,c.A)(Re,this)}set active(e){(0,l.A)(Re,this,e)}get href(){return(0,c.A)(Oe,this)}set href(e){(0,l.A)(Oe,this,e)}get target(){return(0,c.A)(Ie,this)}set target(e){(0,l.A)(Ie,this,e)}render(){return p().createElement(Se,{to:this.to,icon:this.icon,active:this.active,href:this.href,target:this.target})}}function Se(e){let{icon:t,to:n,active:i,href:a,target:o}=e;return p().createElement(Ne,{className:b()("action",{active:i}),url:n,href:a,target:o},p().createElement(Le,t))}de=_e,({e:[ue,me,ge,Ae,ve,be,fe,Ee,ke,ye],c:[Me,pe]}=(0,d.A)(de,[we("visual-builder.workbench-action",{styleTexts:[he.A]})],[[xe({attribute:!1}),1,"icon"],[xe(),1,"to"],[xe({type:Boolean}),1,"active"],[xe(),1,"href"],[xe(),1,"target"]],0,void 0,m.ReactNextElement)),pe();var De=n(6916),Pe=n(1201);function We(e,t,n,i){const a=[],o=[],r=[];let s=0;return e&&e.forEach((e=>{if(e.key=""===i?`${s}`:`${i}.${s}`,function(e){return"group"===e.type}(e)||function(e,t){return Boolean("subMenu"===e.type||void 0)}(e)){const i=We(e.items,t,n,e.key);a.push(...i.selectedKeys),(i.selectedKeys.length||e.defaultExpanded)&&o.push(e.key),o.push(...i.openedKeys),r.push(...i.matchedKeys)}else if(function(e,t,n){if(!e.to)return!1;const i="object"==typeof e.to?e.to:(0,Pe.parsePath)(e.to),a=i.pathname.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");let o=!!(0,De.matchPath)(t,{path:a,exact:e.exact});if(o&&e.activeMatchSearch&&(o=$e(n,i.search)),!o&&Array.isArray(e.activeIncludes))for(const i of e.activeIncludes){var r;let e;const a=i.includes("?");if(a&&(e=(0,Pe.parsePath)(i)),o=!!(0,De.matchPath)(t,{path:a?e.pathname:i,exact:!0}),o&&null!==(r=e)&&void 0!==r&&r.search&&(o=$e(n,e.search)),o)break}if(o&&Array.isArray(e.activeExcludes))for(const n of e.activeExcludes)if(o=!(0,De.matchPath)(t,{path:n,exact:!0}),!o)break;return o}(e,t,n)){a.push(String(e.key));const t=e.key.split(".");for(let e=0;e<t.length;e++)r.push(t.slice(0,e+1).join("."))}s+=1})),a.length&&""!==i&&o.push(i),{selectedKeys:a,openedKeys:o,matchedKeys:r}}function $e(e,t){const n=new URLSearchParams(e),i=new URLSearchParams(t);for(const[e,t]of i.entries())if((n.get(e)??"")!==t)return!1;return!0}var Fe,Be=n(3430);let Ue,ze,Ke,je,Ve;const He=(0,m.wrapBrick)("visual-builder.workbench-action"),{defineElement:Ye,property:Ge}=(0,u.createDecorators)();let Xe;var qe=new WeakMap,Je=new WeakMap;class Qe extends m.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,qe,ze(this)),(0,o.A)(this,Je,(Ke(this),je(this))),Ve(this)}get appId(){return(0,c.A)(qe,this)}set appId(e){(0,l.A)(qe,this,e)}get menu(){return(0,c.A)(Je,this)}set menu(e){(0,l.A)(Je,this,e)}render(){return p().createElement(tt,{appId:this.appId,menu:this.menu})}}let Ze;Fe=Qe,({e:[ze,Ke,je,Ve],c:[Xe,Ue]}=(0,d.A)(Fe,[Ye("visual-builder.workbench-action-list",{styleTexts:[Be.A]})],[[Ge(),1,"appId"],[Ge({attribute:!1}),1,"menu"]],0,void 0,m.ReactNextElement)),Ue();const et=new Map;function tt(e){var t;let{appId:n,menu:i}=e;const a=(0,De.getHistory)(),[o,r]=(0,h.useState)(),[s,l]=(0,h.useState)(a.location);return(0,h.useEffect)((()=>{const e=a.listen((e=>{l(e)}));return e}),[a]),(0,h.useEffect)((()=>{Ze||(Ze=n),Ze!==n&&(et.clear(),Ze=n)}),[n]),(0,h.useEffect)((()=>{const{pathname:e,search:t}=s,{selectedKeys:n}=We((null==i?void 0:i.menuItems)??[],e,t,"");r(Number(n[0]))}),[i,s]),p().createElement("div",{className:"workBenchActionList"},null==i||null===(t=i.menuItems)||void 0===t?void 0:t.map(((e,t)=>{if((e=>"default"===e.type||!e.type)(e)){let n=e.to;return o!==t&&et.has(t)&&(n=et.get(t)),p().createElement(He,{key:t,icon:e.icon,to:n,href:e.href,target:e.target,active:o===t,onClick:()=>(e=>{e.href||et.set(o,`${s.pathname}${s.search}`)})(e)})}})).filter(Boolean))}var nt,it=n(1030),at=n(4940),ot=n(7758),rt=n(9406),st=n(675),lt=n(7995),ct=n(6275);let dt,ht,pt,ut,mt,gt,At,vt,bt,ft,Et,kt,yt,wt,xt,Nt,Lt,Mt,Ct,Tt,Rt,Ot,It,_t,St,Dt,Pt,Wt,$t,Ft,Bt,Ut,zt,Kt,jt,Vt,Ht,Yt,Gt,Xt,qt,Jt,Qt,Zt,en,tn,nn,an,on,rn,sn,ln,cn,dn,hn,pn,un;function mn(e){return e.key}n(9583);const{defineElement:gn,property:An,event:vn}=(0,u.createDecorators)();let bn;var fn=new WeakMap,En=new WeakMap,kn=new WeakMap,yn=new WeakMap,wn=new WeakMap,xn=new WeakMap,Nn=new WeakMap,Ln=new WeakMap,Mn=new WeakMap,Cn=new WeakMap,Tn=new WeakMap,Rn=new WeakMap,On=new WeakMap,In=new WeakMap,_n=new WeakMap,Sn=new WeakMap,Dn=new WeakMap,Pn=new WeakMap,Wn=new WeakMap,$n=new WeakSet,Fn=new WeakMap,Bn=new WeakMap,Un=new WeakMap,zn=new WeakMap,Kn=new WeakMap,jn=new WeakMap,Vn=new WeakMap,Hn=new WeakMap,Yn=new WeakMap;class Gn extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,$n),(0,o.A)(this,fn,ht(this)),(0,o.A)(this,En,(pt(this),ut(this))),(0,o.A)(this,kn,(mt(this),gt(this))),(0,o.A)(this,yn,(At(this),vt(this))),(0,o.A)(this,wn,(bt(this),ft(this))),(0,o.A)(this,xn,(Et(this),kt(this))),(0,o.A)(this,Nn,(yt(this),wt(this))),(0,o.A)(this,Ln,(xt(this),Nt(this))),(0,o.A)(this,Mn,(Lt(this),Mt(this))),(0,o.A)(this,Cn,(Ct(this),Tt(this))),(0,o.A)(this,Tn,(Rt(this),Ot(this))),(0,o.A)(this,Rn,(It(this),_t(this))),(0,o.A)(this,On,(St(this),Dt(this))),(0,o.A)(this,In,(Pt(this),Wt(this))),(0,o.A)(this,_n,($t(this),Ft(this))),(0,o.A)(this,Sn,(Bt(this),Ut(this))),(0,o.A)(this,Dn,(zt(this),Kt(this))),(0,o.A)(this,Pn,(jt(this),Vt(this))),(0,o.A)(this,Wn,(Ht(this),Yt(this))),(0,o.A)(this,Fn,(qt(this),e=>{(0,s.A)($n,this,Gt).emit(e)})),(0,o.A)(this,Bn,Jt(this)),(0,o.A)(this,Un,(en(this),e=>()=>{(0,s.A)($n,this,Qt).emit(e.data)})),(0,o.A)(this,zn,tn(this)),(0,o.A)(this,Kn,(on(this),e=>{(0,s.A)($n,this,nn).emit(e)})),(0,o.A)(this,jn,rn(this)),(0,o.A)(this,Vn,(cn(this),e=>t=>{t.preventDefault(),(0,s.A)($n,this,sn).emit({active:!0,node:null==e?void 0:e.data,x:t.clientX,y:t.clientY})})),(0,o.A)(this,Hn,dn(this)),(0,o.A)(this,Yn,(un(this),(e,t)=>{(0,s.A)($n,this,hn).emit({nodeId:e,collapsed:t})}))}get nodes(){return(0,c.A)(fn,this)}set nodes(e){(0,l.A)(fn,this,e)}get actions(){return(0,c.A)(En,this)}set actions(e){(0,l.A)(En,this,e)}get actionsHidden(){return(0,c.A)(kn,this)}set actionsHidden(e){(0,l.A)(kn,this,e)}get placeholder(){return(0,c.A)(yn,this)}set placeholder(e){(0,l.A)(yn,this,e)}get isTransformName(){return(0,c.A)(wn,this)}set isTransformName(e){(0,l.A)(wn,this,e)}get searchPlaceholder(){return(0,c.A)(xn,this)}set searchPlaceholder(e){(0,l.A)(xn,this,e)}get noSearch(){return(0,c.A)(Nn,this)}set noSearch(e){(0,l.A)(Nn,this,e)}get activeKey(){return(0,c.A)(Ln,this)}set activeKey(e){(0,l.A)(Ln,this,e)}get showMatchedNodeOnly(){return(0,c.A)(Mn,this)}set showMatchedNodeOnly(e){(0,l.A)(Mn,this,e)}get matchNodeDataFields(){return(0,c.A)(Cn,this)}set matchNodeDataFields(e){(0,l.A)(Cn,this,e)}get fixedActionsFor(){return(0,c.A)(Tn,this)}set fixedActionsFor(e){(0,l.A)(Tn,this,e)}get collapsible(){return(0,c.A)(Rn,this)}set collapsible(e){(0,l.A)(Rn,this,e)}get collapsedNodes(){return(0,c.A)(On,this)}set collapsedNodes(e){(0,l.A)(On,this,e)}get allowDrag(){return(0,c.A)(In,this)}set allowDrag(e){(0,l.A)(In,this,e)}get allowDragToRoot(){return(0,c.A)(_n,this)}set allowDragToRoot(e){(0,l.A)(_n,this,e)}get allowDragToInside(){return(0,c.A)(Sn,this)}set allowDragToInside(e){(0,l.A)(Sn,this,e)}get nodeKey(){return(0,c.A)(Dn,this)}set nodeKey(e){(0,l.A)(Dn,this,e)}get skipNotify(){return(0,c.A)(Pn,this)}set skipNotify(e){(0,l.A)(Pn,this,e)}render(){return p().createElement(at.e.Provider,{value:{actions:this.actions,actionsHidden:this.actionsHidden,onActionClick:(0,c.A)(Fn,this)}},p().createElement(rt.N.Provider,{value:{activeKey:this.activeKey,basePaddingLeft:5,showMatchedNodeOnly:this.showMatchedNodeOnly,isTransformName:this.isTransformName,fixedActionsFor:this.fixedActionsFor,nodeKey:this.nodeKey,collapsible:this.collapsible,collapsedNodes:this.collapsedNodes,getCollapsedId:mn,onNodeToggle:(0,c.A)(Yn,this),skipNotify:this.skipNotify,clickFactory:(0,c.A)(Un,this),contextMenuFactory:(0,c.A)(Vn,this),matchNode:(e,t)=>{var n;return(0,st.U)(e.name,t)||!(null===(n=this.matchNodeDataFields)||void 0===n||!n.length)&&(0,st.U)("*"===this.matchNodeDataFields?e.data:(0,it.pick)(e.data,this.matchNodeDataFields),t)}}},p().createElement(ot.cU,{nodes:this.nodes,placeholder:this.placeholder,searchPlaceholder:this.searchPlaceholder,noSearch:this.noSearch,dropEmit:(0,c.A)(Kn,this),allowDrag:this.allowDrag,allowDragToInside:this.allowDragToInside,allowDragToRoot:this.allowDragToRoot})))}}nt=Gn,({e:[ht,pt,ut,mt,gt,At,vt,bt,ft,Et,kt,yt,wt,xt,Nt,Lt,Mt,Ct,Tt,Rt,Ot,It,_t,St,Dt,Pt,Wt,$t,Ft,Bt,Ut,zt,Kt,jt,Vt,Ht,Yt,Gt,Xt,qt,Jt,Qt,Zt,en,tn,nn,an,on,rn,sn,ln,cn,dn,hn,pn,un],c:[bn,dt]}=(0,d.A)(nt,[gn("visual-builder.workbench-tree",{styleTexts:[lt.A,ct.A]})],[[An({attribute:!1}),1,"nodes"],[An({attribute:!1}),1,"actions"],[An({type:Boolean}),1,"actionsHidden"],[An(),1,"placeholder"],[An({type:Boolean}),1,"isTransformName"],[An(),1,"searchPlaceholder"],[An({type:Boolean}),1,"noSearch"],[An({attribute:!1}),1,"activeKey"],[An({type:Boolean}),1,"showMatchedNodeOnly"],[An({attribute:!1}),1,"matchNodeDataFields"],[An({attribute:!1}),1,"fixedActionsFor"],[An({type:Boolean}),1,"collapsible"],[An({attribute:!1}),1,"collapsedNodes"],[An({type:Boolean}),1,"allowDrag"],[An({type:Boolean}),1,"allowDragToRoot"],[An({type:Boolean}),1,"allowDragToInside"],[An({type:String}),1,"nodeKey"],[An({type:Boolean}),1,"skipNotify"],[vn({type:"action.click"}),1,"actionClickEvent",e=>(0,c.A)(Wn,e),(e,t)=>(0,l.A)(Wn,e,t)],[vn({type:"node.click"}),1,"nodeClickEvent",e=>(0,c.A)(Bn,e),(e,t)=>(0,l.A)(Bn,e,t)],[vn({type:"node.drop"}),1,"nodeDropEvent",e=>(0,c.A)(zn,e),(e,t)=>(0,l.A)(zn,e,t)],[vn({type:"context.menu"}),1,"nodeContextMenuEvent",e=>(0,c.A)(jn,e),(e,t)=>(0,l.A)(jn,e,t)],[vn({type:"node.toggle"}),1,"nodeToggleEvent",e=>(0,c.A)(Hn,e),(e,t)=>(0,l.A)(Hn,e,t)]],0,(e=>Yn.has((0,r.A)(e))),m.ReactNextElement)),dt();var Xn=n(8896),qn=n(9027);n(6788),customElements.define("visual-builder.inject-preview-agent",(0,Xn.createProviderClass)((function(e,t){return(0,qn.A)(e,t)})));var Jn=n(155),Qn=n.n(Jn),Zn=n(1361),ei=n(5502);let ti=function(e){return e.LOAD_MORE="LOAD_MORE",e.LOADING="LOADING",e.NO_DATA="NO_DATA",e.NODE="NODE",e.ADD="ADD",e.EDIT="EDIT",e.DELETE="DELETE",e.IMPORT="IMPORT",e.CLONE="CLONE",e.APPEND_RELATION="APPEND_RELATION",e.UPDATE_RELATION="UPDATE_RELATION",e.REMOVE_RELATION="REMOVE_RELATION",e.ROLLBACK="ROLLBACK",e.ROLLBACK_ALL="ROLLBACK_ALL",e.ADD_FULL="ADD_FULL",e.EDIT_FULL="EDIT_FULL",e.DELETE_FULL="DELETE_FULL",e.IMPORT_FULL="IMPORT_FULL",e.CLONE_FULL="CLONE_FULL",e.APPEND_RELATION_FULL="APPEND_RELATION_FULL",e.UPDATE_RELATION_FULL="UPDATE_RELATION_FULL",e.REMOVE_RELATION_FULL="REMOVE_RELATION_FULL",e.ROLLBACK_FULL="ROLLBACK_FULL",e.ROLLBACK_ALL_FULL="ROLLBACK_ALL_FULL",e.PROJECT="PROJECT",e.USER="USER",e.PERMISSION="PERMISSION",e.BRICK="BRICK",e.ROUTE="ROUTE",e.TEMPLATE="TEMPLATE",e.SNIPPET="SNIPPET",e.I18N="I18N",e.IMAGE="IMAGE",e.FUNCTION="FUNCTION",e.MENU="MENU",e.MENU_ITEM="MENU_ITEM",e.WORKFLOW="WORKFLOW",e}({});const ni="bricks/visual-builder/workbench-history-action";var ii=n(9740),ai=n(6330),oi=n(3465),ri=function(){var e=(0,ai.A)((function*(e,t,n){return(yield oi.http.get("api/gateway/next_builder.workspace.GetChangeHistory/api/v1/next-builder/workspace/".concat(e,"/changes"),(0,ii.A)((0,ii.A)({},n),{},{params:t}))).data}));return function(t,n,i){return e.apply(this,arguments)}}(),si=n(8799);const li={add:`${ni}:${ti.ADD}`,edit:`${ni}:${ti.EDIT}`,delete:`${ni}:${ti.DELETE}`,batch_delete:`${ni}:${ti.DELETE}`,import:`${ni}:${ti.IMPORT}`,clone:`${ni}:${ti.CLONE}`,append_relation:`${ni}:${ti.APPEND_RELATION}`,update_relation:`${ni}:${ti.UPDATE_RELATION}`,remove_relation:`${ni}:${ti.REMOVE_RELATION}`,rollback:`${ni}:${ti.ROLLBACK}`,rollback_all:`${ni}:${ti.ROLLBACK_ALL}`},ci={add:`${ni}:${ti.ADD_FULL}`,edit:`${ni}:${ti.EDIT_FULL}`,delete:`${ni}:${ti.DELETE_FULL}`,batch_delete:`${ni}:${ti.DELETE_FULL}`,import:`${ni}:${ti.IMPORT_FULL}`,clone:`${ni}:${ti.CLONE_FULL}`,append_relation:`${ni}:${ti.APPEND_RELATION_FULL}`,update_relation:`${ni}:${ti.UPDATE_RELATION_FULL}`,remove_relation:`${ni}:${ti.REMOVE_RELATION_FULL}`,rollback:`${ni}:${ti.ROLLBACK_FULL}`,rollback_all:`${ni}:${ti.ROLLBACK_ALL_FULL}`},di={project:`${ni}:${ti.PROJECT}`,userGroup:`${ni}:${ti.USER}`,permission:`${ni}:${ti.PERMISSION}`,brick:`${ni}:${ti.BRICK}`,route:`${ni}:${ti.ROUTE}`,template:`${ni}:${ti.TEMPLATE}`,snippet:`${ni}:${ti.SNIPPET}`,i18n:`${ni}:${ti.I18N}`,image:`${ni}:${ti.IMAGE}`,function:`${ni}:${ti.FUNCTION}`,menu:`${ni}:${ti.MENU}`,menuItem:`${ni}:${ti.MENU_ITEM}`,workflow:`${ni}:${ti.WORKFLOW}`},hi={PROJECT_MICRO_APP:`${ni}:${ti.PROJECT}`,"MICRO_APP_USER_GROUP@EASYOPS":`${ni}:${ti.USER}`,MICRO_APP_RESOURCE_PERMISSION:`${ni}:${ti.PERMISSION}`,STORYBOARD_BRICK:`${ni}:${ti.BRICK}`,STORYBOARD_ROUTE:`${ni}:${ti.ROUTE}`,STORYBOARD_TEMPLATE:`${ni}:${ti.TEMPLATE}`,STORYBOARD_SNIPPET:`${ni}:${ti.SNIPPET}`,STORYBOARD_I18N:`${ni}:${ti.I18N}`,MICRO_APP_RESOURCE_IMAGE:`${ni}:${ti.IMAGE}`,STORYBOARD_FUNCTION:`${ni}:${ti.FUNCTION}`,MICRO_APP_RESOURCE_MENU:`${ni}:${ti.MENU}`,MICRO_APP_RESOURCE_MENU_ITEM:`${ni}:${ti.MENU_ITEM}`,"WORKFLOW_DEF@EASYOPS":`${ni}:${ti.WORKFLOW}`};function pi(e){var t,n,i,a,o,r,s,l,c,d,h,p;const u="rollback"!==e.action||e.rollBackIdInfo?e.action:"rollback_all",m=si.i18n.t(di[e.category]??e.category),g=si.i18n.t(li[u]??u),A=si.i18n.t(hi[null===(t=e.abstract)||void 0===t?void 0:t.leftObjectId]??(null===(n=e.abstract)||void 0===n?void 0:n.leftObjectId)),v=si.i18n.t(hi[null===(i=e.abstract)||void 0===i?void 0:i.rightObjectId]??(null===(a=e.abstract)||void 0===a?void 0:a.rightObjectId)),b=ui(null===(o=e.abstract)||void 0===o?void 0:o.nodes,null===(r=e.abstract)||void 0===r?void 0:r.nodesCount),f=ui(null===(s=e.abstract)||void 0===s?void 0:s.leftNodes,null===(l=e.abstract)||void 0===l?void 0:l.leftNodesCount),E=ui(null===(c=e.abstract)||void 0===c?void 0:c.rightNodes,null===(d=e.abstract)||void 0===d?void 0:d.rightNodesCount),k="rollback"===u?pi(e.rollBackIdInfo).abstract:null;return{category:m,action:g,leftObjectId:A,rightObjectId:v,nodes:b,leftNodes:f,rightNodes:E,abstract:si.i18n.t(ci[u]??u,{category:m,nodes:b,leftNodes:f,rightNodes:E,nodeChanges:null===(h=e.abstract)||void 0===h||null===(h=h.nodeChanges)||void 0===h?void 0:h.join(", "),relationChanges:null===(p=e.abstract)||void 0===p||null===(p=p.relationChanges)||void 0===p?void 0:p.join(", "),leftObjectId:A,rightObjectId:v,rollbackAbstract:k}),rollbackAbstract:k}}function ui(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ";return si.i18n.t(`${ni}:${ti.NODE}`,{nodes:e.join(n),context:t>e.length?"ellipsis":void 0,count:t})}var mi;let gi,Ai,vi,bi,fi,Ei,ki,yi,wi,xi,Ni,Li,Mi,Ci,Ti,Ri,Oi;(0,ei.initializeReactI18n)(ni,{en:{LOAD_MORE:"Load more",LOADING:"Loading",NO_DATA:"No data",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }} etc., a total of {{ count }} items",ADD:"Add node",EDIT:"Edit node",DELETE:"Delete node",IMPORT:"Batch import node",CLONE:"Clone node",APPEND_RELATION:"Append Relation",UPDATE_RELATION:"Update Relation",REMOVE_RELATION:"Remove Relation",ROLLBACK:"Rollback",ROLLBACK_ALL:"Rollback all operations",ADD_FULL:"Add {{ category }} ({{ nodes }})",EDIT_FULL:"Edit {{ nodeChanges }} of {{ category }} ({{ nodes }})",DELETE_FULL:"Delete {{ category }} ({{ nodes }})",IMPORT_FULL:"Batch Import {{ category }} ({{ nodes }})",CLONE_FULL:"Clone {{ category }} ({{ nodes }})",APPEND_RELATION_FULL:"Append the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",UPDATE_RELATION_FULL:"Update the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",REMOVE_RELATION_FULL:"Remove the relation between {{ leftObjectId }} ({{ leftNodes }}) and {{ rightObjectId }} ({{ rightNodes }})",ROLLBACK_FULL:"Rollback to [{{ rollbackAbstract }}]",ROLLBACK_ALL_FULL:"Rollback all operations",PROJECT:"Project",USER:"User Group",PERMISSION:"Permission",BRICK:"Brick",ROUTE:"Route",TEMPLATE:"Template",SNIPPET:"Snippet",I18N:"I18N",IMAGE:"Image",FUNCTION:"Function",MENU:"Menu",MENU_ITEM:"Menu item",WORKFLOW:"Workflow"},zh:{LOAD_MORE:"加载更多",LOADING:"加载中",NO_DATA:"没有数据",NODE:"{{ nodes }}",NODE_ellipsis:"{{ nodes }}等共{{ count }}项",ADD:"新增节点",EDIT:"编辑节点",DELETE:"删除节点",IMPORT:"批量导入节点",CLONE:"克隆节点",APPEND_RELATION:"添加关系",UPDATE_RELATION:"更新关系",REMOVE_RELATION:"移除关系",ROLLBACK:"回滚",ROLLBACK_ALL:"回滚全部操作",ADD_FULL:"新增{{ category }}({{ nodes }})",EDIT_FULL:"编辑{{ category }}({{ nodes }})的 {{ nodeChanges }}",DELETE_FULL:"删除{{ category }}({{ nodes }})",IMPORT_FULL:"批量导入{{ category }}({{ nodes }})",CLONE_FULL:"克隆{{ category }}({{ nodes }})",APPEND_RELATION_FULL:"添加{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",UPDATE_RELATION_FULL:"更新{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",REMOVE_RELATION_FULL:"移除{{ leftObjectId }}({{ leftNodes }})和{{ rightObjectId }}({{ rightNodes }})的关系",ROLLBACK_FULL:"回滚到【{{ rollbackAbstract }}】",ROLLBACK_ALL_FULL:"回滚全部操作",PROJECT:"项目",USER:"用户组",PERMISSION:"权限点",BRICK:"构件",ROUTE:"路由",TEMPLATE:"模版",SNIPPET:"片段",I18N:"国际化",IMAGE:"图片",FUNCTION:"函数",MENU:"菜单",MENU_ITEM:"菜单项",WORKFLOW:"工作流"}});const{defineElement:Ii,property:_i,event:Si}=(0,u.createDecorators)(),Di=(0,m.wrapBrick)("eo-button"),Pi=(0,m.wrapBrick)("eo-link"),Wi=(0,m.wrapBrick)("eo-icon"),$i=(0,m.wrapBrick)("eo-easyops-avatar"),Fi=(0,m.wrapBrick)("eo-popover",{onVisibleChange:"visible.change",beforeVisibleChange:"before.visible.change"});let Bi;var Ui=new WeakMap,zi=new WeakMap,Ki=new WeakMap,ji=new WeakSet,Vi=new WeakMap,Hi=new WeakMap,Yi=new WeakMap,Gi=new WeakMap,Xi=new WeakMap;class qi extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,ji),(0,o.A)(this,Ui,Ai(this)),(0,o.A)(this,zi,(vi(this),bi(this))),(0,o.A)(this,Ki,(fi(this),Ei(this))),(0,o.A)(this,Vi,(wi(this),e=>{(0,s.A)(ji,this,ki).emit(e)})),(0,o.A)(this,Hi,xi(this)),(0,o.A)(this,Yi,(Mi(this),e=>{(0,s.A)(ji,this,Ni).emit(e)})),(0,o.A)(this,Gi,Ci(this)),(0,o.A)(this,Xi,(Oi(this),()=>{(0,s.A)(ji,this,Ti).emit()}))}get appId(){return(0,c.A)(Ui,this)}set appId(e){(0,l.A)(Ui,this,e)}get projectId(){return(0,c.A)(zi,this)}set projectId(e){(0,l.A)(zi,this,e)}render(){return p().createElement(Ji,{appId:this.appId,projectId:this.projectId,onHistoryItemClick:(0,c.A)(Vi,this),onRollback:(0,c.A)(Yi,this),onRollbackAll:(0,c.A)(Xi,this)})}}function Ji(e){const{appId:t,onHistoryItemClick:n,onRollback:i,onRollbackAll:a}=e,{t:o}=(0,ei.useTranslation)(ni),[r,s]=(0,h.useState)(!1),[l,c]=(0,h.useState)(!0),[d,u]=(0,h.useState)(!1),[m,g]=(0,h.useState)([]),A=(0,h.useRef)(""),v=e=>{s(!0),ri(t,{ts:A.current,limit:20}).then((t=>{g((n=>{const i=t.list.map((e=>({...e,translation:pi(e)})));return e?i:n.concat(i)})),A.current=t.ts,u(t.list.length<20),c(t.list.length<20)})).catch((e=>{(0,De.handleHttpError)(e)})).finally((()=>{s(!1)}))};return p().createElement(Fi,{placement:"bottom",trigger:"click",arrow:!0,arrowColor:"var(--color-fill-bg-container-4)",beforeVisibleChange:e=>{e.detail&&(c(!0),u(!1),g([]),A.current="",v(!0))}},p().createElement(Di,{slot:"anchor",shape:"circle",className:"history-action",icon:{lib:"antd",icon:"history",theme:"outlined"}}),p().createElement("div",null,p().createElement("div",{className:"history-title"},"History"),p().createElement("div",{className:"history-list"},m.length?p().createElement(p().Fragment,null,m.map(((e,t)=>p().createElement(Qi,{key:`${e.uniqueKey}-${e.ts}`,data:e,enableRollback:0!==t&&"rollback"!==e.action,current:0===t,onHistoryItemClick:n,onRollback:i}))),!l&&p().createElement("span",{className:"load-more-container"},p().createElement(Pi,{className:"load-more",disabled:r,onClick:()=>v()},o(ti.LOAD_MORE))),d&&p().createElement("span",{className:"end-container"},"The End",p().createElement(Wi,{className:"rollback-all",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>a()}))):p().createElement("div",{className:"empty"},o(r?ti.LOADING:ti.NO_DATA))),p().createElement("slot",null)))}function Qi(e){const{data:t,enableRollback:n,current:i,onHistoryItemClick:a,onRollback:o}=e,r=Qn()(Number(t.ts)/1e6),s=Qn().duration(r.diff(Qn()())),l=s.days()<=-1?r.format("YYYY-MM-DD HH:mm:ss"):s.humanize(!0,{ss:0,s:60,m:60,h:24});return p().createElement("div",{className:"item-container"},p().createElement("div",{className:"item-title"},p().createElement("div",{className:"title-left",onClick:()=>a({...t,enableRollback:n})},p().createElement("div",{className:"topic",title:t.translation.abstract},t.translation.abstract),i&&p().createElement("div",{className:"branch"},"(current)")),p().createElement("div",{className:"title-right"},n&&p().createElement(Wi,{className:"rollback",lib:"antd",icon:"rollback",theme:"outlined",onClick:()=>o(t)}))),p().createElement("div",{className:"item-info"},p().createElement($i,{className:"avatar",nameOrInstanceId:t.user,size:"xs"}),p().createElement("div",{className:"time"},l),p().createElement("div",{className:"operator"},t.user)))}mi=qi,({e:[Ai,vi,bi,fi,Ei,ki,yi,wi,xi,Ni,Li,Mi,Ci,Ti,Ri,Oi],c:[Bi,gi]}=(0,d.A)(mi,[Ii("visual-builder.workbench-history-action",{styleTexts:[Zn.A]})],[[_i(),1,"appId"],[_i(),1,"projectId"],[Si({type:"history.item.click"}),1,"historyItemClickEvent",e=>(0,c.A)(Ki,e),(e,t)=>(0,l.A)(Ki,e,t)],[Si({type:"rollback"}),1,"rollbackEvent",e=>(0,c.A)(Hi,e),(e,t)=>(0,l.A)(Hi,e,t)],[Si({type:"rollback.all"}),1,"rollbackAllEvent",e=>(0,c.A)(Gi,e),(e,t)=>(0,l.A)(Gi,e,t)]],0,(e=>Xi.has((0,r.A)(e))),m.ReactNextElement)),gi();var Zi,ea=n(2381);let ta,na,ia,aa,oa,ra,sa,la,ca,da,ha,pa,ua,ma,ga,Aa,va,ba,fa,Ea,ka,ya,wa,xa,Na,La,Ma,Ca,Ta,Ra,Oa,Ia,_a,Sa,Da,Pa,Wa,$a,Fa,Ba,Ua,za,Ka,ja,Va,Ha,Ya,Ga,Xa,qa,Ja,Qa,Za;const{defineElement:eo,property:to,event:no}=(0,u.createDecorators)(),io=(0,m.wrapBrick)("eo-icon"),ao=(0,m.wrapBrick)("eo-tooltip"),oo=new Set;let ro;var so=new WeakMap,lo=new WeakMap,co=new WeakMap,ho=new WeakMap,po=new WeakMap,uo=new WeakMap,mo=new WeakMap,go=new WeakMap,Ao=new WeakMap,vo=new WeakSet,bo=new WeakMap,fo=new WeakMap,Eo=new WeakMap,ko=new WeakMap,yo=new WeakMap,wo=new WeakMap,xo=new WeakMap,No=new WeakMap,Lo=new WeakMap,Mo=new WeakMap,Co=new WeakMap,To=new WeakMap,Ro=new WeakMap,Oo=new WeakMap,Io=new WeakMap,_o=new WeakMap,So=new WeakMap;class Do extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,vo),(0,o.A)(this,so,na(this)),(0,o.A)(this,lo,(ia(this),aa(this))),(0,o.A)(this,co,(oa(this),ra(this))),(0,o.A)(this,ho,(sa(this),la(this))),(0,o.A)(this,po,(ca(this),da(this))),(0,o.A)(this,uo,(ha(this),pa(this))),(0,o.A)(this,mo,(ua(this),ma(this))),(0,o.A)(this,go,(ga(this),Aa(this))),(0,o.A)(this,Ao,(va(this),ba(this))),(0,o.A)(this,bo,(ka(this),e=>{(0,s.A)(vo,this,fa).emit(e)})),(0,o.A)(this,fo,ya(this)),(0,o.A)(this,Eo,(Na(this),e=>{(0,s.A)(vo,this,wa).emit(e)})),(0,o.A)(this,ko,La(this)),(0,o.A)(this,yo,(Ta(this),()=>{(0,s.A)(vo,this,Ma).emit()})),(0,o.A)(this,wo,Ra(this)),(0,o.A)(this,xo,(_a(this),()=>{(0,s.A)(vo,this,Oa).emit()})),(0,o.A)(this,No,Sa(this)),(0,o.A)(this,Lo,(Wa(this),e=>{(0,s.A)(vo,this,Da).emit(e)})),(0,o.A)(this,Mo,$a(this)),(0,o.A)(this,Co,(Ua(this),()=>{(0,s.A)(vo,this,Fa).emit()})),(0,o.A)(this,To,za(this)),(0,o.A)(this,Ro,(Va(this),e=>{(0,s.A)(vo,this,Ka).emit(e)})),(0,o.A)(this,Oo,Ha(this)),(0,o.A)(this,Io,(Xa(this),e=>{(0,s.A)(vo,this,Ya).emit(e)})),(0,o.A)(this,_o,qa(this)),(0,o.A)(this,So,(Za(this),e=>{(0,s.A)(vo,this,Ja).emit(e)}))}get label(){return(0,c.A)(so,this)}set label(e){(0,l.A)(so,this,e)}get type(){return(0,c.A)(lo,this)}set type(e){(0,l.A)(lo,this,e)}get external(){return(0,c.A)(co,this)}set external(e){(0,l.A)(co,this,e)}get subNodes(){return(0,c.A)(ho,this)}set subNodes(e){(0,l.A)(ho,this,e)}get active(){return(0,c.A)(po,this)}set active(e){(0,l.A)(po,this,e)}get notSynced(){return(0,c.A)(uo,this)}set notSynced(e){(0,l.A)(uo,this,e)}get disableChildAppend(){return(0,c.A)(mo,this)}set disableChildAppend(e){(0,l.A)(mo,this,e)}get autoFocusOnce(){return(0,c.A)(go,this)}set autoFocusOnce(e){(0,l.A)(go,this,e)}render(){return p().createElement(Po,{label:this.label,type:this.type,external:this.external,subNodes:this.subNodes,autoFocusOnce:this.autoFocusOnce,onLabelEditingChange:(0,c.A)(bo,this),onLabelChange:(0,c.A)(Eo,this),onNodeClick:(0,c.A)(yo,this),onNodeDoubleClick:(0,c.A)(xo,this),onNodeContextMenu:(0,c.A)(Lo,this),onChildAppend:(0,c.A)(Co,this),onExternalClick:(0,c.A)(Ro,this),onSubNodeDoubleClick:(0,c.A)(Io,this),onSubNodeContextMenu:(0,c.A)(So,this)})}}function Po(e){let{label:t,type:n,external:i,subNodes:a,autoFocusOnce:o,onLabelEditingChange:r,onLabelChange:s,onNodeClick:l,onNodeDoubleClick:c,onNodeContextMenu:d,onChildAppend:u,onExternalClick:m,onSubNodeDoubleClick:g,onSubNodeContextMenu:A}=e;const v="board"===n?"board":"page",[f,E]=(0,h.useState)(t),[k,y]=(0,h.useState)(!1),w=(0,h.useRef)(!1),[x,N]=(0,h.useState)(!1),L=(0,h.useRef)(null);(0,h.useEffect)((()=>{E(t)}),[t]);const M=(0,h.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),y(!0)}),[]);(0,h.useEffect)((()=>{o&&!oo.has(o)&&(oo.add(o),setTimeout((()=>{y(!0)}),1))}),[o]),(0,h.useEffect)((()=>{var e,t;k&&(null===(e=L.current)||void 0===e||e.focus({preventScroll:!0}),null===(t=L.current)||void 0===t||t.select())}),[k]),(0,h.useEffect)((()=>{w.current?null==r||r(k):w.current=!0}),[k,r]);const C=(0,h.useCallback)((e=>{E(e.target.value)}),[]),T=(0,h.useCallback)((e=>{const t=e.key||e.keyCode||e.which;var n;"Enter"!==t&&13!==t||null===(n=L.current)||void 0===n||n.blur()}),[]),R=(0,h.useCallback)((()=>{y(!1),N(!0)}),[]);(0,h.useEffect)((()=>{x&&(null==s||s(f),N(!1))}),[f,s,x]);const O=(0,h.useCallback)((e=>{e.stopPropagation(),null==u||u()}),[u]),I=(0,h.useCallback)((e=>{e.stopPropagation(),null==m||m(i)}),[i,m]),_=(0,h.useCallback)((e=>{e.stopPropagation()}),[]),S=38*Math.max(0,Math.floor(((null==a?void 0:a.length)??0)-3));return p().createElement(p().Fragment,null,p().createElement("div",{className:b()("node",v,{"editing-label":k}),style:{height:"board"===v?70:130+S},onClick:l,onDoubleClick:c,onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==d||d({clientX:e.clientX,clientY:e.clientY})}},p().createElement("input",{className:"label-input",value:f,ref:L,onChange:C,onKeyDown:T,onBlur:R,onDoubleClick:_,onContextMenu:_,onMouseDown:_}),p().createElement("div",{className:"label",onDoubleClick:M,onMouseDown:_},f),"board"===v?p().createElement("div",{className:"icon-container"},p().createElement(io,{lib:"antd",icon:"unordered-list"})):p().createElement("div",{className:"thumbnail-container",style:{height:98+S}},p().createElement("div",{className:"thumbnail-placeholder"},p().createElement(io,{lib:"antd",icon:"ellipsis"})),i&&p().createElement("div",{className:"external",onClick:I,onDoubleClick:_,onMouseDown:_},p().createElement(io,{lib:"antd",icon:"desktop"}),p().createElement("span",{className:"external-label"},i.label)),null!=a&&a.length?p().createElement("div",{className:"sub-nodes"},a.map((e=>p().createElement(Wo,{key:e.id,subNode:e,onSubNodeDoubleClick:g,onSubNodeContextMenu:A})))):null)),p().createElement("div",{className:"add-button",role:"button",onClick:O,onMouseDown:_},p().createElement(io,{lib:"fa",icon:"plus"})))}function Wo(e){let{subNode:t,onSubNodeDoubleClick:n,onSubNodeContextMenu:i}=e;return p().createElement(ao,{key:t.id,content:t.label},p().createElement("div",{className:"sub-node",onDoubleClick:e=>{e.stopPropagation(),null==n||n(t)},onContextMenu:e=>{e.stopPropagation(),e.preventDefault(),null==i||i({node:t,clientX:e.clientX,clientY:e.clientY})}},p().createElement("div",{className:"sub-node-skeleton-title"}),p().createElement("div",{className:"sub-node-skeleton-content"}),p().createElement("div",{className:"sub-node-skeleton-button"})))}Zi=Do,({e:[na,ia,aa,oa,ra,sa,la,ca,da,ha,pa,ua,ma,ga,Aa,va,ba,fa,Ea,ka,ya,wa,xa,Na,La,Ma,Ca,Ta,Ra,Oa,Ia,_a,Sa,Da,Pa,Wa,$a,Fa,Ba,Ua,za,Ka,ja,Va,Ha,Ya,Ga,Xa,qa,Ja,Qa,Za],c:[ro,ta]}=(0,d.A)(Zi,[eo("visual-builder.page-arch-node",{styleTexts:[ea.A]})],[[to(),1,"label"],[to(),1,"type"],[to({attribute:!1}),1,"external"],[to({attribute:!1}),1,"subNodes"],[to({type:Boolean,render:!1}),1,"active"],[to({type:Boolean,render:!1}),1,"notSynced"],[to({type:Boolean,render:!1}),1,"disableChildAppend"],[to(),1,"autoFocusOnce"],[no({type:"label.editing.change"}),1,"labelEditingChange",e=>(0,c.A)(Ao,e),(e,t)=>(0,l.A)(Ao,e,t)],[no({type:"label.change"}),1,"labelChange",e=>(0,c.A)(fo,e),(e,t)=>(0,l.A)(fo,e,t)],[no({type:"node.click"}),1,"nodeClick",e=>(0,c.A)(ko,e),(e,t)=>(0,l.A)(ko,e,t)],[no({type:"node.dblclick"}),1,"nodeDoubleClick",e=>(0,c.A)(wo,e),(e,t)=>(0,l.A)(wo,e,t)],[no({type:"node.contextmenu"}),1,"nodeContextMenu",e=>(0,c.A)(No,e),(e,t)=>(0,l.A)(No,e,t)],[no({type:"child.append"}),1,"childAppend",e=>(0,c.A)(Mo,e),(e,t)=>(0,l.A)(Mo,e,t)],[no({type:"external.click"}),1,"externalClick",e=>(0,c.A)(To,e),(e,t)=>(0,l.A)(To,e,t)],[no({type:"subNode.dblclick"}),1,"subNodeDoubleClick",e=>(0,c.A)(Oo,e),(e,t)=>(0,l.A)(Oo,e,t)],[no({type:"subNode.contextmenu"}),1,"subNodeContextMenu",e=>(0,c.A)(_o,e),(e,t)=>(0,l.A)(_o,e,t)]],0,(e=>So.has((0,r.A)(e))),m.ReactNextElement)),ta();var $o,Fo=n(6484),Bo=n(6213),Uo=n(2559);function zo(e,t,n,i){return t((0,Uo.A)(e,n),i),i}let Ko,jo,Vo,Ho,Yo,Go,Xo,qo,Jo;const{method:Qo,property:Zo}=(0,u.createDecorators)();var er=new WeakMap,tr=new WeakSet,nr=new WeakMap,ir=new WeakMap,ar=new WeakMap,or=new WeakMap,rr=new WeakMap,sr=new WeakMap;class lr extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,tr),(0,o.A)(this,er,(Ko(this),!1)),(0,o.A)(this,nr,"normal"),(0,o.A)(this,ir,!1),(0,o.A)(this,ar,jo(this)),(0,o.A)(this,or,(Vo(this),Ho(this))),(0,o.A)(this,rr,(Yo(this),Go(this))),(0,o.A)(this,sr,(Xo(this),qo(this))),Jo(this)}get isFormItemElement(){return!0}set validateState(e){zo(tr,pr,this,e),this._render()}get validateState(){return(0,s.A)(tr,this,hr)}set notRender(e){this.hidden=e,zo(tr,dr,this,e),this._render()}get notRender(){return(0,s.A)(tr,this,cr)}get $bindFormItem(){return(0,s.A)(tr,this,ur)}set $bindFormItem(e){zo(tr,mr,this,e),this._render()}get helpBrick(){return(0,c.A)(ar,this)}set helpBrick(e){(0,l.A)(ar,this,e)}get labelBrick(){return(0,c.A)(or,this)}set labelBrick(e){(0,l.A)(or,this,e)}get labelCol(){return(0,c.A)(rr,this)}set labelCol(e){(0,l.A)(rr,this,e)}get wrapperCol(){return(0,c.A)(sr,this)}set wrapperCol(e){(0,l.A)(sr,this,e)}setNotRender(e){this.notRender=e}getFormElement(){let e=this;for(;(e=e.parentNode)&&e&&!e.isFormElement;);return e}}function cr(e){return(0,c.A)(er,e)}function dr(e,t){(0,l.A)(er,e,t)}function hr(e){return(0,c.A)(nr,e)}function pr(e,t){(0,l.A)(nr,e,t)}function ur(e){return(0,c.A)(ir,e)}function mr(e,t){(0,l.A)(ir,e,t)}$o=lr,[jo,Vo,Ho,Yo,Go,Xo,qo,Jo,Ko]=(0,d.A)($o,[],[[Zo({attribute:!1}),1,"helpBrick"],[Zo({attribute:!1}),1,"labelBrick"],[Zo({attribute:!1}),1,"labelCol"],[Zo({attribute:!1}),1,"wrapperCol"],[Qo(),2,"setNotRender"],[Qo(),2,"getFormElement"]],0,void 0,m.ReactNextElement).e;var gr=function(){var e=(0,ai.A)((function*(e,t){return(yield oi.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)}}();let Ar=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 vr="bricks/visual-builder/contract-select",br={en:{CONTRACT_OPTIONS_TIPS_PREFIX:"Only the first",CONTRACT_OPTIONS_TIPS_SUFFIX:"items are displayed, please search for more results",CONTRACT_VALIDATE_MESSAGE:"Please fill in the correct contract name "},zh:{CONTRACT_OPTIONS_TIPS_PREFIX:"仅展示前",CONTRACT_OPTIONS_TIPS_SUFFIX:"项,更多结果请搜索",CONTRACT_VALIDATE_MESSAGE:"请填写正确的契约名称"}};(0,ei.initializeReactI18n)(vr,br);const fr=(0,m.wrapBrick)("eo-icon"),Er=(0,m.wrapBrick)("eo-input",{onChange:"change"});function kr(e){const{itemsCount:t=20,onBlur:n}=e,[i,a]=(0,h.useState)(t),{t:o}=(0,ei.useTranslation)(vr),[r,s]=(0,h.useState)(!1);return p().createElement("div",{className:"options-tips",slot:e.slot},o(Ar.CONTRACT_OPTIONS_TIPS_PREFIX)," ",r?p().createElement(Er,{autoFocus:!0,inputStyle:{width:65},value:String(i),onBlur:()=>{s(!1),null==n||n(i)},onChange:e=>{a(Number(e.detail))}}):p().createElement("span",null,i," ",p().createElement(fr,{icon:"edit",lib:"antd",onClick:()=>{s(!0)}}))," ",o(Ar.CONTRACT_OPTIONS_TIPS_SUFFIX))}var yr;let wr,xr,Nr,Lr,Mr,Cr,Tr,Rr,Or,Ir,_r,Sr,Dr,Pr,Wr;(0,ei.initializeReactI18n)(vr,br);const{defineElement:$r,property:Fr,event:Br}=(0,u.createDecorators)(),Ur=(0,m.wrapBrick)("eo-form-item"),zr=(0,m.wrapBrick)("eo-auto-complete",{onChange:"change"});let Kr;var jr=new WeakMap,Vr=new WeakMap,Hr=new WeakMap,Yr=new WeakMap,Gr=new WeakMap,Xr=new WeakMap,qr=new WeakSet;function Jr(e){if("string"!=typeof e)return{name:"",version:""};const[t,n]=e.split(":");return{name:t,version:n}}function Qr(e){return/.*@.*:\d+\.\d+\.\d+/.test(e)}function Zr(e){return(0,it.isNil)(e)||Qr(e)?"":si.i18n.t(`${vr}:${Ar.CONTRACT_VALIDATE_MESSAGE}`)}function es(e){let{value:t,inputStyle:n,validateState:i,suffix:a,onChange:o}=e;const[r,s]=(0,h.useState)(),[l,c]=(0,h.useState)(20),d=function(e){let{pageSize:t=20,q:n=""}=e;const[i,a]=(0,h.useState)([]),[o,r]=(0,h.useState)(n),[s,l]=(0,h.useState)(t);return(0,h.useEffect)((()=>{r(n)}),[n]),(0,h.useEffect)((()=>{l(t)}),[t]),(0,h.useEffect)((()=>{(async()=>{try{const{list:e}=await gr({page:1,pageSize:s,fullContractName:o},{interceptorParams:{ignoreLoadingBar:!0}});a(e)}catch(e){console.error(e),a([])}})()}),[o,s]),i}({q:r,pageSize:l}),[u,m]=(0,h.useState)(Jr(t)),[g,A]=(0,h.useState)([]);(0,h.useEffect)((()=>{m(Jr(t))}),[t]);const v=(0,h.useMemo)((()=>(0,it.debounce)((e=>{s(e)}),200)),[]);return p().createElement("div",{className:"contract-wrapper"},p().createElement(zr,{className:"contract-selector",options:null==d?void 0:d.map((e=>({value:e.fullContractName,label:e.fullContractName}))),value:u.name,inputStyle:n,validateState:i,onChange:e=>{const t=e.detail;if(Qr(t))m(Jr(t)),null==o||o(t);else{var n;const e=null===(n=d.find((e=>e.fullContractName===t)))||void 0===n?void 0:n.version,i=(null==e?void 0:e[0])??"";A(e),m({name:t,version:i}),null==o||o(`${t}:${i}`)}v(t)}},p().createElement(kr,{onBlur:e=>c(e),slot:"options-toolbar"})),p().createElement(zr,{className:"version-selector",value:u.version,validateState:i,options:null==g?void 0:g.map((e=>({value:e,label:e}))),onChange:e=>{const t=e.detail;m({name:u.name,version:t}),null==o||o(`${u.name}:${t}`)}}),null!=a&&a.useBrick?p().createElement(Fo.ReactUseMultipleBricks,a):null)}yr=class extends lr{constructor(){super(...arguments),(0,a.A)(this,qr),(0,o.A)(this,jr,xr(this)),(0,o.A)(this,Vr,(Nr(this),Lr(this))),(0,o.A)(this,Hr,(Mr(this),Cr(this))),(0,o.A)(this,Yr,(Tr(this),Rr(this))),(0,o.A)(this,Gr,(Or(this),Ir(this))),(0,o.A)(this,Xr,(_r(this),Sr(this))),(0,q.A)(this,"handleChange",(Wr(this),e=>{(0,s.A)(qr,this,Dr).emit(e)}))}get name(){return(0,c.A)(jr,this)}set name(e){(0,l.A)(jr,this,e)}get required(){return(0,c.A)(Vr,this)}set required(e){(0,l.A)(Vr,this,e)}get label(){return(0,c.A)(Hr,this)}set label(e){(0,l.A)(Hr,this,e)}get value(){return(0,c.A)(Yr,this)}set value(e){(0,l.A)(Yr,this,e)}get suffix(){return(0,c.A)(Gr,this)}set suffix(e){(0,l.A)(Gr,this,e)}render(){return p().createElement(Ur,{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:Zr},p().createElement(es,{value:this.value,suffix:this.suffix,validateState:this.validateState,onChange:this.handleChange}))}},({e:[xr,Nr,Lr,Mr,Cr,Tr,Rr,Or,Ir,_r,Sr,Dr,Pr,Wr],c:[Kr,wr]}=(0,d.A)(yr,[$r("visual-builder.contract-select",{styleTexts:[Bo.A]})],[[Fr(),1,"name"],[Fr({type:Boolean}),1,"required"],[Fr(),1,"label"],[Fr({attribute:!1}),1,"value"],[Fr({attribute:!1}),1,"suffix"],[Br({type:"change"}),1,"changeEvent",e=>(0,c.A)(Xr,e),(e,t)=>(0,l.A)(Xr,e,t)]],0,(e=>qr.has((0,r.A)(e))),lr)),wr();var ts,ns=n(7540);let is,as,os,rs,ss,ls,cs,ds,hs,ps,us,ms,gs,As,vs,bs;const fs=(0,m.wrapBrick)("eo-menu"),Es=(0,m.wrapBrick)("eo-menu-item"),ks=(0,m.wrapBrick)("eo-tooltip"),ys=(0,Xn.unwrapProvider)("basic.lock-body-scroll");(0,ei.initializeReactI18n)("bricks/visual-builder/generate-snippets-context-menu",{en:{},zh:{}});const{defineElement:ws,property:xs,event:Ns,method:Ls}=(0,u.createDecorators)();let Ms;var Cs=new WeakMap,Ts=new WeakMap,Rs=new WeakMap,Os=new WeakMap,Is=new WeakSet,_s=new WeakMap,Ss=new WeakMap,Ds=new WeakMap;class Ps extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Is),(0,o.A)(this,Cs,(is(this),os(this))),(0,o.A)(this,Ts,(rs(this),ss(this))),(0,o.A)(this,Rs,(ls(this),cs(this))),(0,o.A)(this,Os,(ds(this),hs(this))),(0,o.A)(this,_s,(ms(this),gs(this))),(0,o.A)(this,Ss,(bs(this),e=>{(0,s.A)(Is,this,ps).emit(e)})),(0,o.A)(this,Ds,(e=>{(0,s.A)(Is,this,As).emit(e)}))}get options(){return(0,c.A)(Cs,this)}set options(e){(0,l.A)(Cs,this,e)}get active(){return(0,c.A)(Ts,this)}set active(e){(0,l.A)(Ts,this,e)}get position(){return(0,c.A)(Rs,this)}set position(e){(0,l.A)(Rs,this,e)}open(e){let{position:t}=e;this.active=!0,this.position=t}close(){this.active=!1,this.position=void 0}disconnectedCallback(){super.disconnectedCallback(),ys(this,!1)}render(){return p().createElement(Ws,{active:this.active,element:this,position:this.position,onItemDragStart:(0,c.A)(Ss,this),onItemDragEnd:(0,c.A)(Ds,this),options:this.options})}}function Ws(e){var t,n;let{element:i,active:a,onItemDragEnd:o,onItemDragStart:r,options:s,position:l}=e;const[c,d]=(0,h.useState)(!1),u=(0,h.useRef)(null),[m,g]=(0,h.useState)(null),A=(0,h.useCallback)((e=>{e.preventDefault(),null==i||i.close()}),[i]),v=(0,h.useCallback)(((e,t)=>{var n;d(!0),t.dragConf&&(null===(n=e.dataTransfer)||void 0===n||n.setData(t.dragConf.format,JSON.stringify(t.dragConf.data))),e.target.classList.add("dragging"),null==r||r(t)}),[r]),b=(0,h.useCallback)(((e,t)=>{d(!1),e.target.classList.remove("dragging"),null==i||i.close(),null==o||o(t)}),[i,o]);return(0,h.useEffect)((()=>{ys(i,a)}),[a,i]),(0,h.useEffect)((()=>{if(a&&u.current&&l){const e=u.current.getBoundingClientRect(),t=e.width+8,n=e.height+8,{clientWidth:i,clientHeight:a}=document.documentElement,o=[...l];i>t&&l[0]+t>i&&(o[0]=l[0]-t),a>n&&l[1]+n>a&&(o[1]=a-n),g(o)}else g(null)}),[a,l]),p().createElement(p().Fragment,null,!c&&p().createElement("div",{className:"mask",onClick:A,onContextMenu:A}),p().createElement("div",{className:"container",ref:u,style:{left:null===(t=m??l)||void 0===t?void 0:t[0],top:null===(n=m??l)||void 0===n?void 0:n[1],visibility:m?"visible":"hidden"}},null==s?void 0:s.map(((e,t)=>{var n,i;return p().createElement("div",{key:t},p().createElement("div",{className:"title"},e.title),(null===(n=e.children)||void 0===n?void 0:n.length)&&p().createElement(fs,null,null===(i=e.children)||void 0===i?void 0:i.map(((e,t)=>p().createElement(ks,{content:e.tooltip,hoist:!0,placement:"left",key:t},p().createElement(Es,{disabled:e.disabled,icon:e.icon,draggable:!e.disabled,onDragStart:t=>v(t,e),onDragEnd:t=>b(t,e)},e.text))))))}))))}ts=Ps,({e:[os,rs,ss,ls,cs,ds,hs,ps,us,ms,gs,As,vs,bs,is],c:[Ms,as]}=(0,d.A)(ts,[ws("visual-builder.generate-snippets-context-menu",{styleTexts:[ns.A]})],[[xs({attribute:!1}),1,"options"],[xs({type:Boolean}),1,"active"],[xs({attribute:!1}),1,"position"],[Ns({type:"item.drag.start"}),1,"itemDragStartEvent",e=>(0,c.A)(Os,e),(e,t)=>(0,l.A)(Os,e,t)],[Ns({type:"item.drag.end"}),1,"itemDragEndEvent",e=>(0,c.A)(_s,e),(e,t)=>(0,l.A)(_s,e,t)],[Ls(),2,"open"],[Ls(),2,"close"]],0,(e=>Ds.has((0,r.A)(e))),m.ReactNextElement)),as();var $s=n(1085),Fs=n(3091),Bs=n(7447),Us=n(3640),zs=n(4360),Ks=n(3544),js=n(4650),Vs=n(9830);function Hs(){function e(e,t,n){if(!n||"pre"!==n.tagName||"code"!==e.tagName)return;const i=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===i)return;let a;try{n.properties.className=(n.properties.className||[]).concat("language-"+i),a=Vs.L.highlight((0,js.d)(e),i)}catch{return}e.children=a.children}return t=>{(0,Ks.YR)(t,"element",e)}}const Ys={Fragment:$s.Fragment,jsx:$s.jsx,jsxs:$s.jsxs};function Gs(e){let{content:t}=e;const[n,i]=(0,h.useState)(null);return(0,h.useEffect)((()=>{let e=!1;return(0,Fs.l)().use(Bs.A).use(Us.A).use([Hs]).use(zs.A,Ys).process(t).then((t=>{e||i(t.result)})).catch((t=>{e||(console.error("Convert markdown failed:",t),i(null))})),()=>{e=!0}}),[t]),n}const Xs=(0,m.wrapBrick)("eo-avatar");function qs(e){let{message:t}=e;const n=(0,h.useMemo)((()=>{const e=[];if("assistant"===t.role){const n=/(?:^|\n)```(easy_cmd_\S+)\n([\s\S]*?)\n```(?:$|\n)/gm;let i,a=0;for(;i=n.exec(t.content);){const[o,r,s]=i,l=i.index,c=t.content.slice(a,l).trim();c.length>0&&e.push({type:"markdown",content:c}),e.push({type:"command",command:r,content:s.trim(),raw:o}),a=n.lastIndex}const o=t.content.slice(a).trim();o.length>0&&e.push({type:"markdown",content:o})}else e.push({type:"plain",content:t.content});return e}),[t.content,t.role]),i=(0,h.useRef)(null);return(0,h.useEffect)((()=>{const e=i.current;e&&setTimeout((()=>{const n=e.parentElement.querySelectorAll(".texting");for(const e of n)e.classList.remove("texting");if(!t.partial)return;let i=e;for(;i;){const e=i.lastChild;if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE||"DETAILS"===(null==e?void 0:e.tagName)&&!e.open){var a;if((null==e?void 0:e.nodeType)!==Node.TEXT_NODE||0!==e.textContent.trim().length||(null===(a=e.previousSibling)||void 0===a?void 0:a.nodeType)!==Node.ELEMENT_NODE)break;i=e.previousSibling}else i=e}i.classList.add("texting")}),1)}),[t.partial,t.content]),p().createElement("div",{className:b()("message",{failed:t.failed})},p().createElement("div",{className:"avatar"},p().createElement(Xs,{icon:{lib:"easyops",icon:"assistant"===t.role?"robot":"account"},size:"small",className:`role-${t.role}`})),p().createElement("div",{className:"main"},p().createElement("div",{className:"label"},"assistant"===t.role?"Assistant":"You"),p().createElement("div",{className:"content",ref:i},n.map(((e,t)=>p().createElement(Js,{key:t,chunk:e}))))))}function Js(e){let{chunk:t}=e;return p().createElement(p().Fragment,null,"markdown"===t.type?p().createElement("div",{className:"markdown"},p().createElement(Gs,{content:t.content})):"command"===t.type?p().createElement(p().Fragment,null,p().createElement("details",{className:"command"},p().createElement("summary",null,"```",t.command),p().createElement("pre",null,p().createElement("code",null,t.content)))):p().createElement("div",{className:"plain"},t.content))}var Qs,Zs=n(7236);let el,tl,nl,il,al,ol,rl,sl,ll;const{defineElement:cl,property:dl,event:hl}=(0,u.createDecorators)();let pl;var ul=new WeakMap,ml=new WeakMap,gl=new WeakMap,Al=new WeakSet,vl=new WeakMap;class bl extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Al),(0,o.A)(this,ul,tl(this)),(0,o.A)(this,ml,(nl(this),il(this))),(0,o.A)(this,gl,(al(this),ol(this))),(0,o.A)(this,vl,(ll(this),e=>{(0,s.A)(Al,this,rl).emit(e)}))}get messages(){return(0,c.A)(ul,this)}set messages(e){(0,l.A)(ul,this,e)}get errorBoundary(){return(0,c.A)(ml,this)}set errorBoundary(e){(0,l.A)(ml,this,e)}render(){return p().createElement(fl,{host:this,messages:this.messages,errorBoundary:this.errorBoundary,onStoryboardUpdate:(0,c.A)(vl,this)})}}function fl(e){let{messages:t,host:n,errorBoundary:i,onStoryboardUpdate:a}=e;const o=(0,h.useMemo)((()=>/(?:^|\n)```easy_cmd_vb_block_(page|storyboard)\n([\s\S]*?)\n```(?:$|\n)/gm),[]),r=(0,h.useRef)(new Map),[s,l]=(0,h.useState)([]),c=(0,h.useRef)(!1);(0,h.useEffect)((()=>{for(const e of t??[]){if("assistant"!==e.role)continue;let t;o.lastIndex=r.current.get(e.key)??0;const n=[];let i=!1;for(;t=o.exec(e.content);){r.current.set(e.key,o.lastIndex);const[,a,s]=t;try{const e=JSON.parse(s);"page"===a?(i=!0,n.push(...e)):n.push({...e,type:"item"})}catch(e){console.error("parse storyboard failed:",e)}}i?l(n):n.length>0&&l((e=>[...e,...n]))}}),[o,t]);const[d,u]=(0,h.useState)([]);(0,h.useEffect)((()=>{const e=[],t=new Map;for(const n of s)"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:[]},a={brick:"eo-main-view",children:[{brick:"eo-page-title",slot:"pageTitle",properties:{pageTitle:"测试页面"}}]};let o=!1;for(const r of e)if("全局操作区"===r.name)for(const e of r.children){const n=t.get(e);n&&(a.children.push({...n,properties:{...n.properties,slot:void 0},errorBoundary:i,slot:"toolbar",iid:`item:${e}`,meta:{type:"item",uuid:e,block:{uuid:r.uuid,name:r.name}}}),o=!0)}else{const e=t.get(r.uuid);if(e){const a={...e,children:[],errorBoundary:i,iid:`block:${r.uuid}`,meta:{type:"block",uuid:r.uuid,name:r.name}};o=!0,n.children.push(a);for(const e of r.children){const n=t.get(e);n&&a.children.push({...n,errorBoundary:i,iid:`item:${e}`,meta:{type:"item",uuid:e}})}}else if(!r.hasContainer)for(const e of r.children){const a=t.get(e);a&&(n.children.push({...a,errorBoundary:i,iid:`item:${e}`,meta:{type:"item",uuid:e}}),o=!0)}}a.children.push(n),u((e=>o?[a]:0===e.length?e:[]))}),[s,i]),(0,h.useEffect)((()=>{null==a||a(d)}),[a,d]);const m=(0,h.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,h.useEffect)((()=>{c.current||setTimeout((()=>{m.scrollTo(0,m.scrollHeight)}),1)}),[t,m]),(0,h.useEffect)((()=>{const e=()=>{c.current=m.scrollTop+m.clientHeight+6<m.scrollHeight};return m.addEventListener("scroll",e),()=>{m.removeEventListener("scroll",e)}}),[m]),p().createElement(p().Fragment,null,null==t?void 0:t.map(((e,t)=>p().createElement(qs,{key:e.key??`index-${t}`,message:e}))))}Qs=bl,({e:[tl,nl,il,al,ol,rl,sl,ll],c:[pl,el]}=(0,d.A)(Qs,[cl("visual-builder.chat-conversation",{styleTexts:[Zs.A]})],[[dl({attribute:!1}),1,"messages"],[dl({type:Boolean}),1,"errorBoundary"],[hl({type:"storyboard.update"}),1,"storyboardUpdate",e=>(0,c.A)(gl,e),(e,t)=>(0,l.A)(gl,e,t)]],0,(e=>vl.has((0,r.A)(e))),m.ReactNextElement)),el();var El=n(9575),kl=n(1732);function yl(e){let{variant:t,width:n,height:i,left:a,top:o,label:r}=e;return p().createElement("div",{className:"outline "+t,style:{width:n+8,height:i+8,left:a-4,top:o-4}},p().createElement("div",{className:"label"},r))}var wl,xl=n(1563);let Nl,Ll,Ml,Cl,Tl,Rl,Ol,Il,_l,Sl,Dl,Pl,Wl,$l,Fl,Bl;const{defineElement:Ul,property:zl,event:Kl,method:jl}=(0,u.createDecorators)();let Vl;var Hl=new WeakMap,Yl=new WeakMap,Gl=new WeakMap,Xl=new WeakMap,ql=new WeakMap,Jl=new WeakMap,Ql=new WeakSet,Zl=new WeakMap;class ec extends m.ReactNextElement{constructor(){super(...arguments),(0,a.A)(this,Ql),(0,o.A)(this,Hl,(Nl(this),Ml(this))),(0,o.A)(this,Yl,(Cl(this),Tl(this))),(0,o.A)(this,Gl,(Rl(this),Ol(this))),(0,o.A)(this,Xl,(Il(this),_l(this))),(0,o.A)(this,ql,(Sl(this),Dl(this))),(0,o.A)(this,Jl,(Pl(this),Wl(this))),(0,o.A)(this,Zl,(Bl(this),e=>{(0,s.A)(Ql,this,$l).emit(e)}))}get storyboard(){return(0,c.A)(Hl,this)}set storyboard(e){(0,l.A)(Hl,this,e)}get theme(){return(0,c.A)(Yl,this)}set theme(e){(0,l.A)(Yl,this,e)}get uiVersion(){return(0,c.A)(Gl,this)}set uiVersion(e){(0,l.A)(Gl,this,e)}get app(){return(0,c.A)(Xl,this)}set app(e){(0,l.A)(Xl,this,e)}get inspecting(){return(0,c.A)(ql,this)}set inspecting(e){(0,l.A)(ql,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 p().createElement(tc,{storyboard:this.storyboard,theme:this.theme,uiVersion:this.uiVersion,app:this.app,inspecting:this.inspecting,onActiveTargetChange:(0,c.A)(Zl,this)})}}function tc(e){let{storyboard:t,theme:n,uiVersion:i,app:a,inspecting:o,onActiveTargetChange:r}=e;const s=(0,h.useRef)(),[l,c]=(0,h.useState)(!1),[d,u]=(0,h.useState)(!1),[m,g]=(0,h.useState)({x:0,y:0}),[A,v]=(0,h.useState)([]),[f,E]=(0,h.useState)([]),[k,y]=(0,h.useState)([]),[w,x]=(0,h.useState)([]),N=(0,h.useCallback)((()=>{const e=()=>{var t;const n=null===(t=s.current)||void 0===t?void 0:t.contentWindow;null!=n&&n._preview_only_render?c(!0):setTimeout(e,100)};e()}),[]);(0,h.useEffect)((()=>{var e;if(!l)return;const t=De.__secret_internals.getBrickPackagesById("bricks/visual-builder");if(!t)throw new Error("Cannot find preview agent package: bricks/visual-builder");(null===(e=s.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_inject)("visual-builder.inject-chat-preview-agent",{...t,filePath:`${location.origin}${(0,De.getBasePath)()}${window.PUBLIC_ROOT??""}${t.filePath}`})}),[l]),(0,h.useEffect)((()=>{var e;if(!l)return;const o=null===(e=s.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;o&&o("yaml",{yaml:(0,kl.safeDump)(t,{schema:kl.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0})},{app:a,theme:n,uiVersion:i})}),[a,l,t,n,i]);const L=(0,h.useMemo)((()=>{if(d)return()=>{setTimeout((()=>{window.postMessage({channel:"chat-preview",type:"inspect-hover",payload:{outlines:[]}})}),100)}}),[d]);(0,h.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":u(!0);break;case"inspect-hover":v(e.data.payload.outlines);break;case"scroll":g(e.data.payload);break;case"inspect-active":E(e.data.payload.outlines)}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}}),[]),(0,h.useEffect)((()=>{var e;d&&(null===(e=s.current)||void 0===e||null===(e=e.contentWindow)||void 0===e||e.postMessage({channel:"chat-preview",type:"toggle-inspecting",payload:{inspecting:o}},location.origin))}),[d,o]);const M=(0,h.useCallback)((e=>e.map((e=>{var t,n;const i=(null==s||null===(t=s.current)||void 0===t?void 0:t.offsetLeft)??0,a=(null==s||null===(n=s.current)||void 0===n?void 0:n.offsetTop)??0,{width:o,height:r,left:l,top:c,...d}=e;return{width:1*o,height:1*r,left:1*(l-m.x)+i,top:1*(c-m.y)+a,...d}}))),[m.x,m.y]);return(0,h.useEffect)((()=>{r(f[0])}),[f,r]),(0,h.useEffect)((()=>{x(M(f))}),[f,M]),(0,h.useEffect)((()=>{y(M(A))}),[A,M]),p().createElement("div",{className:b()("container",{inspecting:o})},p().createElement("iframe",{ref:s,src:`${(0,De.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:N,onMouseOut:L}),k.map(((e,t)=>p().createElement(yl,(0,El.A)({key:t,variant:"hover"},e)))),w.map(((e,t)=>p().createElement(yl,(0,El.A)({key:t,variant:"active"},e)))))}wl=ec,({e:[Ml,Cl,Tl,Rl,Ol,Il,_l,Sl,Dl,Pl,Wl,$l,Fl,Bl,Nl],c:[Vl,Ll]}=(0,d.A)(wl,[Ul("visual-builder.chat-preview",{styleTexts:[xl.A]})],[[zl({attribute:!1}),1,"storyboard"],[zl(),1,"theme"],[zl(),1,"uiVersion"],[zl(),1,"app"],[zl({type:Boolean}),1,"inspecting"],[Kl({type:"activeTarget.change"}),1,"activeTargetChangeEvent",e=>(0,c.A)(Jl,e),(e,t)=>(0,l.A)(Jl,e,t)],[jl(),2,"select"]],0,(e=>Zl.has((0,r.A)(e))),m.ReactNextElement)),Ll();let nc=!1;const ic="item:";let ac=null;function oc(e){e.preventDefault(),e.stopPropagation(),function(e){const t=dc(e.composedPath());window.parent.postMessage({channel:"chat-preview",type:"inspect-active",payload:{outlines:t.map(hc)}},location.origin)}(e)}function rc(e){e.preventDefault(),e.stopPropagation()}const sc=(0,it.debounce)(((e,t,n)=>{let i=dc(e);if(0===i.length)for(const a of e)if(a instanceof HTMLElement&&a.shadowRoot){i=dc(a.shadowRoot.elementsFromPoint(t,n));break}const a=i.length>0?i[0].element:null;a!==ac&&(ac=a,window.parent.postMessage({channel:"chat-preview",type:"inspect-hover",payload:{outlines:i.map(hc)}},location.origin))}),20,{leading:!0});function lc(e){sc(e.composedPath(),e.clientX,e.clientY)}function cc(e){e.preventDefault(),e.stopPropagation(),ac=null,window.parent.postMessage({channel:"chat-preview",type:"inspect-hover",payload:{outlines:[]}},location.origin)}function dc(e){const t=[];return e.forEach((e=>{let n;if(e.nodeType===Node.ELEMENT_NODE&&e instanceof HTMLElement&&(n=e.dataset.iid)&&n.startsWith(ic)){const i=n.substring(ic.length);t.push({type:"item",uuid:i,label:pc(e),element:e})}})),t}function hc(e){const{element:t,type:n,uuid:i,label:a}=e,{width:o,height:r,left:s,top:l}=t.getBoundingClientRect();return{width:o,height:r,left:s+window.scrollX,top:l+window.scrollY,type:n,uuid:i,label:a}}function pc(e){return e.tagName.toLowerCase().split(".").pop()}let uc=!1;function mc(e){window.parent.postMessage({channel:"chat-preview",...e},location.origin)}customElements.define("visual-builder.inject-chat-preview-agent",(0,Xn.createProviderClass)((async function(){uc||(uc=!0,n.e(2201).then(n.bind(n,2201)),mc({type:"initialized"}),window.addEventListener("message",(e=>{var t;if("chat-preview"===(null===(t=e.data)||void 0===t?void 0:t.channel))switch(e.data.type){case"toggle-inspecting":!function(e){if(nc===e)return;nc=e;const t=e?"addEventListener":"removeEventListener";window[t]("click",oc,!0),window[t]("mousedown",rc,!0),window[t]("mouseover",rc,!0),window[t]("mouseup",rc,!0),window[t]("pointerdown",rc,!0),window[t]("pointerover",rc,!0),window[t]("pointerup",rc,!0),window[t]("pointerleave",cc,!0),window[t]("pointermove",lc,!0)}(e.data.payload.inspecting);break;case"select":!function(e){const t=`${e.type}:${e.uuid}`,n=(0,qn.w)(t);window.parent.postMessage({channel:"chat-preview",type:"inspect-active",payload:{outlines:n.map((t=>hc({...e,element:t,label:pc(t)})))}},location.origin)}(e.data.payload)}})),window.addEventListener("scroll",(()=>{mc({type:"scroll",payload:{x:window.scrollX,y:window.scrollY}})})))})));var gc,Ac=n(4014),vc=n(8918);let bc,fc,Ec,kc,yc,wc,xc,Nc,Lc,Mc,Cc;const{defineElement:Tc,property:Rc}=(0,u.createDecorators)();let Oc;var Ic=new WeakMap,_c=new WeakMap,Sc=new WeakMap,Dc=new WeakMap,Pc=new WeakMap;class Wc extends m.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,Ic,fc(this)),(0,o.A)(this,_c,(Ec(this),kc(this))),(0,o.A)(this,Sc,(yc(this),wc(this))),(0,o.A)(this,Dc,(xc(this),Nc(this))),(0,o.A)(this,Pc,(Lc(this),Mc(this))),Cc(this)}get generations(){return(0,c.A)(Ic,this)}set generations(e){(0,l.A)(Ic,this,e)}get category(){return(0,c.A)(_c,this)}set category(e){(0,l.A)(_c,this,e)}get theme(){return(0,c.A)(Sc,this)}set theme(e){(0,l.A)(Sc,this,e)}get uiVersion(){return(0,c.A)(Dc,this)}set uiVersion(e){(0,l.A)(Dc,this,e)}get app(){return(0,c.A)(Pc,this)}set app(e){(0,l.A)(Pc,this,e)}render(){return p().createElement($c,{generations:this.generations,category:this.category,theme:this.theme,uiVersion:this.uiVersion,app:this.app})}}function $c(e){let{generations:t,category:n,theme:i,uiVersion:a,app:o}=e;const r=(0,h.useRef)(),[s,l]=(0,h.useState)(!1),[c,d]=(0,h.useState)(!1),u=(0,h.useCallback)((()=>{const e=()=>{var t;const n=null===(t=r.current)||void 0===t?void 0:t.contentWindow;null!=n&&n._preview_only_render?l(!0):setTimeout(e,100)};e()}),[]);return(0,h.useEffect)((()=>{if(!s)return;const e=De.__secret_internals.getBrickPackagesById("bricks/visual-builder");if(!e)throw new Error("Cannot find preview agent package: bricks/visual-builder");const t=r.current.contentWindow._preview_only_inject,n={...e,filePath:`${location.origin}${(0,De.getBasePath)()}${window.PUBLIC_ROOT??""}${e.filePath}`};Promise.allSettled(["visual-builder.pre-generated-table-view","visual-builder.pre-generated-container"].map((e=>t(e,n,void 0,!0)))).then((()=>{d(!0)}))}),[s]),(0,h.useEffect)((()=>{var e;if(!c)return;const s=null===(e=r.current)||void 0===e||null===(e=e.contentWindow)||void 0===e?void 0:e._preview_only_render;if(!s)return;const l=new Map,d=new Map;for(const e of t){let t=l.get(e.propertyId);t||l.set(e.propertyId,t=new Map);let n=t.get(e.rwType);n||t.set(e.rwType,n=new Map),n.set(e.displayLevel??0,e),d.set(e.propertyId,e.mockData)}const h=[{brick:"div",properties:{textContent:"属性",className:"head-cell"}},{brick:"div",properties:{textContent:"类别",className:"head-cell"}},{brick:"div",properties:{textContent:"展示等级",className:"head-cell last-col-cell",style:{gridColumn:"span 5",textAlign:"center"}}}],p={brick:"visual-builder.pre-generated-table-view",properties:{style:{gridTemplateColumns:"120px 80px repeat(5, 1fr)"}},children:h};let u=0;for(const[e,t]of l){let i=0;const a=u===l.size-1;for(const[o,r]of t){if(0===i){let n;for(const t of r.values()){n=t.propertyName??e;break}h.push({brick:"div",properties:{textContent:n,className:a?"last-row-cell":void 0,style:{gridRow:`span ${t.size}`}}})}const s=a&&i===t.size-1;h.push({brick:"div",properties:{textContent:o,className:s?"last-row-cell":void 0}});for(let t=-2;t<3;t++){var m;const i=r.get(t);let a;if(null!=i&&null!==(m=i.mockData)&&void 0!==m&&m.length){const t=i.mockData[Math.floor(Math.random()*i.mockData.length)];switch(i.category??n){case"detail-item":a={[e]:t};break;case"table-column":a={cellData:t}}}const o=[];2===t&&o.push("last-col-cell"),s&&o.push("last-row-cell"),h.push({brick:"div",...o?{properties:{className:o.join(" ")}}:null,children:[{brick:"visual-builder.pre-generated-container",properties:{useBrick:(null==i?void 0:i.storyboard)??[],dataSource:a},errorBoundary:!0}]})}i++}u++}s("yaml",{yaml:(0,kl.safeDump)(p,{schema:kl.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0})},{app:o,theme:i,uiVersion:a,styleText:vc.A})}),[o,c,t,i,a,n]),p().createElement("div",{className:b()("container")},p().createElement("iframe",{ref:r,src:`${(0,De.getBasePath)()}_brick-preview-v3_/preview/`,loading:"lazy",onLoad:u}))}gc=Wc,({e:[fc,Ec,kc,yc,wc,xc,Nc,Lc,Mc,Cc],c:[Oc,bc]}=(0,d.A)(gc,[Tc("visual-builder.pre-generated-preview",{styleTexts:[Ac.A]})],[[Rc({attribute:!1}),1,"generations"],[Rc(),1,"category"],[Rc(),1,"theme"],[Rc(),1,"uiVersion"],[Rc(),1,"app"]],0,void 0,m.ReactNextElement)),bc();var Fc,Bc=n(9216);let Uc;const{defineElement:zc}=(0,u.createDecorators)();let Kc;class jc extends m.ReactNextElement{render(){return p().createElement(Vc,null)}}function Vc(){return p().createElement("slot",null)}Fc=jc,[Kc,Uc]=(0,d.A)(Fc,[zc("visual-builder.pre-generated-table-view",{styleTexts:[Bc.A]})],[],0,void 0,m.ReactNextElement).c,Uc();var Hc,Yc=n(4967);let Gc,Xc,qc,Jc,Qc;const{defineElement:Zc,property:ed}=(0,u.createDecorators)();let td;var nd=new WeakMap,id=new WeakMap;class ad extends m.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,nd,Xc(this)),(0,o.A)(this,id,(qc(this),Jc(this))),Qc(this)}get useBrick(){return(0,c.A)(nd,this)}set useBrick(e){(0,l.A)(nd,this,e)}get dataSource(){return(0,c.A)(id,this)}set dataSource(e){(0,l.A)(id,this,e)}render(){return p().createElement(od,{useBrick:this.useBrick,dataSource:this.dataSource})}}function od(e){let{useBrick:t,dataSource:n}=e;return p().createElement(Fo.ReactUseMultipleBricks,{useBrick:t,data:n,errorBoundary:!0})}Hc=ad,({e:[Xc,qc,Jc,Qc],c:[td,Gc]}=(0,d.A)(Hc,[Zc("visual-builder.pre-generated-container",{styleTexts:[Yc.A]})],[[ed({attribute:!1}),1,"useBrick"],[ed({attribute:!1}),1,"dataSource"]],0,void 0,m.ReactNextElement)),Gc(),n(47),customElements.define("visual-builder.check-editor-by-name",(0,Xn.createProviderClass)((async function(e){try{await De.__secret_internals.loadEditors([e])}catch{return!1}return!!De.customEditors.get(e)})));var rd=n(9680);function sd(e,t){const n=new Map;for(const i of e){const e=(0,rd.collectMemberUsage)([i.if,i.value,i.resolve],t);n.set(i,e)}return n}function ld(e,t){e.forEach((n=>{!function(e,t){var n;const{dependencyList:i,nodeList:a,parents:o,result:r}=t,s=(0,it.cloneDeep)(e);r.push(s);const l=i.find((e=>e.node.key===s.key));if(null!==(n=l.deps)&&void 0!==n&&n.length&&!o.some((e=>e.key===s.key))){const e=s.children=[];!function(e,t){const n=[];e.deps.forEach((e=>{const i=t.nodeList.filter((t=>t.name===e));n.push(...i)})),ld(n,t)}(l,{dependencyList:i,nodeList:a,parents:[...o,s],result:e})}}(n,{...t,nodeList:e})}))}customElements.define("visual-builder.get-data-deps",(0,Xn.createProviderClass)(sd)),customElements.define("visual-builder.get-dependency-tree",(0,Xn.createProviderClass)((function(e,t){const n=e,i=sd(n.map((e=>e.data)),t.dataType),a=[];for(const[e,t]of i)a.push({deps:Array.from(t.usedProperties),node:n.find((t=>t.data===e))});const o=[];return ld(n,{result:o,dependencyList:a,parents:[]}),o})));var cd=n(264);customElements.define("visual-builder.parse-path",(0,Xn.createProviderClass)((async function(e,t){const n=[];return{regexp:(0,cd.MM)(e,n,(0,it.defaults)(t,{end:!1,strict:!1,sensitive:!0})),keys:n}})))},47:(e,t,n)=>{n.d(t,{ADVANCED_CHANGE_KEY:()=>Oe});var i=n(4635),a=n(918),o=n(6902),r=n(5536),s=n(6121),l=n(829),c=n(2740),d=n(8769),h=n.n(d),p=n(1929),u=n(4223),m=(n(9583),n(5908)),g=n(7091),A=n(50),v=n(6768),b=n(8621),f=n(9193),E=n(6484),k=n(3768),y=n(2803),w=n(3824),x=n(2513),N=n(5067),L=n(1477),M=n(4287),C=n(966),T=n(5768),R=n(6110),O=n(8409),I=n(6916),_=n(1030),S=n.n(_),D=n(8897);const P="#normal_form",W="#advanced_form";function $(e,t){return e?"string"==typeof e?{[`x-${t}`]:e}:{[`x-${t}`]:e.name,[`x-${t}-props`]:{..."CodeEditor"===e.name?{extraLibs:"{{extraLibs}}",links:"{{links}}",tokenClick:"{{tokenClick}}",lineNumbers:"off",glyphMargin:!1}:{},...e.props??{}}}:{}}function F(e){const t=e=>{let n,i={};e.children&&(n=e.children.map(t));const{name:a,type:o,component:r,decorator:s}=e,l="string"===o?{name:"FormItem"}:"boolean"===o?{name:"FormItem",props:{layout:"horizontal"}}:{},c="string"===o?{name:"Input"}:"boolean"===o?{name:"Switch",props:{size:"small"}}:{},d={type:o??"void",...(0,_.omit)(e,["children","component","decorator"]),...$({...l,..."string"==typeof s?{name:s}:s},"decorator"),...$({...c,..."string"==typeof r?{name:r}:r},"component")};if("string"==typeof a?i[a]=d:i=d,n){d.properties={};for(const e of n)"string"==typeof e.name?d.properties[e.name]=e:d.properties={...d.properties,...e}}return i};return{type:"object",properties:{[P]:{type:"void","x-component":"CustomTab","x-component-props":{activeTab:"property"},properties:{property:{type:"void","x-component":"CustomTab.TabPanel","x-component-props":{title:"属性",tab:"property"},properties:t({...e,children:[{name:"id",title:"id",type:"string",decorator:{name:"FormItem",props:{layout:"horizontal"}}},{name:"hidden",title:"隐藏",type:"boolean"},...e.children]})},style:{type:"object",name:"style","x-component":"CustomTab.TabPanel","x-component-props":{title:"样式",tab:"style"},properties:t(D.O)}}},[W]:{name:W,type:"string","x-decorator":"FormItemWithoutAdvanced","x-component":"CodeEditor","x-component-props":{extraLibs:"{{extraLibs}}",links:"{{links}}",tokenClick:"{{tokenClick}}",minLines:5,glyphMargin:!1}}}}}var B;let U,z,K,j,V,H,Y,G,X,q,J,Q,Z,ee,te,ne,ie,ae,oe,re,se,le,ce,de,he,pe,ue,me,ge,Ae,ve,be,fe,Ee,ke,ye,we,xe;n(74);const{defineElement:Ne,property:Le,method:Me,event:Ce}=(0,p.createDecorators)(),Te=h().forwardRef(tt),Re="before_submit",Oe="on_advanced_change",Ie=(0,g.Uy)({components:{FormLayout:f.Hb,Input:f.pd,FormItem:y.M,FormItemWithoutAdvanced:f.eI,FormCollapse:f.w9,NumberPicker:f.Y_,Radio:f.sx,Select:f.l6,Switch:f.dO,CategoryTitle:k.H,CodeEditor:w.S,IconSelect:x.r,ColorPicker:N.h,UseChildrenSelect:T._,InputWithUrl:L.r,InputWithUnit:C.U,TextAlignRadio:M.p,BoxSize:R.i,CustomTab:O.v}});let _e;var Se=new WeakMap,De=new WeakMap,Pe=new WeakMap,We=new WeakMap,$e=new WeakMap,Fe=new WeakMap,Be=new WeakMap,Ue=new WeakMap,ze=new WeakMap,Ke=new WeakMap,je=new WeakSet,Ve=new WeakMap,He=new WeakMap,Ye=new WeakMap,Ge=new WeakMap,Xe=new WeakMap,qe=new WeakMap,Je=new WeakMap,Qe=new WeakMap,Ze=new WeakMap;class et extends u.ReactNextElement{constructor(){super(...arguments),(0,i.A)(this,je),(0,a.A)(this,Se,(U(this),(0,d.createRef)())),(0,a.A)(this,De,K(this)),(0,a.A)(this,Pe,(j(this),V(this))),(0,a.A)(this,We,(H(this),Y(this))),(0,a.A)(this,$e,(G(this),X(this))),(0,a.A)(this,Fe,(q(this),J(this))),(0,a.A)(this,Be,(Q(this),Z(this))),(0,a.A)(this,Ue,(ee(this),te(this))),(0,a.A)(this,ze,(ne(this),ie(this))),(0,a.A)(this,Ke,(ae(this),oe(this))),(0,a.A)(this,Ve,(le(this),ce(this))),(0,a.A)(this,He,(pe(this),ue(this))),(0,a.A)(this,Ye,(Ae(this),e=>{(0,r.A)(je,this,me).emit(e)})),(0,a.A)(this,Ge,ve(this)),(0,a.A)(this,Xe,(Ee(this),e=>{(0,r.A)(je,this,be).emit(e)})),(0,a.A)(this,qe,void 0),(0,a.A)(this,Je,(0,m.fA)(Re,((e,t)=>n=>{(0,s.A)(qe,this,n(e,t))}))),(0,a.A)(this,Qe,ke(this)),(0,a.A)(this,Ze,(xe(this),e=>{(0,r.A)(je,this,ye).emit(e)}))}get editorName(){return(0,l.A)(De,this)}set editorName(e){(0,s.A)(De,this,e)}get values(){return(0,l.A)(Pe,this)}set values(e){(0,s.A)(Pe,this,e)}get advancedMode(){return(0,l.A)(We,this)}set advancedMode(e){(0,s.A)(We,this,e)}get dataList(){return(0,l.A)($e,this)}set dataList(e){(0,s.A)($e,this,e)}get editorPackages(){return(0,l.A)(Fe,this)}set editorPackages(e){(0,s.A)(Fe,this,e)}get links(){return(0,l.A)(Be,this)}set links(e){(0,s.A)(Be,this,e)}get extraLibs(){return(0,l.A)(Ue,this)}set extraLibs(e){(0,s.A)(Ue,this,e)}get childSlots(){return(0,l.A)(ze,this)}set childSlots(e){(0,s.A)(ze,this,e)}validate(){var e;const t=null===(e=(0,l.A)(Se,this).current)||void 0===e?void 0:e.getFormInstance();(0,s.A)(qe,this,null);const n=()=>this.advancedMode?t.values[W]:S().omit(t.values,[W]);t.validate().then((()=>{t.notify(Re,n()),(0,r.A)(je,this,re).emit((0,l.A)(qe,this)??n())})).catch((e=>{(0,r.A)(je,this,de).emit(e)}))}render(){return h().createElement(Te,{ref:(0,l.A)(Se,this),editorName:this.editorName,values:this.values,advancedMode:this.advancedMode,dataList:this.dataList,extraLibs:this.extraLibs,links:this.links,childSlots:this.childSlots,editorPackages:this.editorPackages,handleValuesChange:(0,l.A)(Ye,this),handleTokenClick:(0,l.A)(Xe,this),handleTriggerAction:(0,l.A)(Ze,this),onSubmitEffect:(0,l.A)(Je,this)})}}function tt(e,t){let{advancedMode:n,values:i,editorName:a,dataList:o,editorPackages:r,extraLibs:s,childSlots:l,links:c,handleValuesChange:p,handleTokenClick:u,handleTriggerAction:f,onSubmitEffect:k}=e;const[y,w]=(0,d.useState)((()=>{var e;return null===(e=I.customEditors.get(a))||void 0===e?void 0:e(h())})),x=(0,E.useCurrentTheme)(),N=(0,d.useMemo)((()=>(0,b.VC)()),[]),L=(0,d.useMemo)((()=>(0,m.DG)()),[y]),M=(0,d.useRef)(null),C=(0,d.useMemo)((()=>(0,m.fA)(Oe,((e,t)=>n=>{M.current=n(e,t)}))),[]);(0,d.useImperativeHandle)(t,(()=>({getFormInstance:()=>L})));const T=(0,d.useCallback)((async()=>{I.customEditors.get(a)?w((()=>{var e;return null===(e=I.customEditors.get(a))||void 0===e?void 0:e(h())})):(await I.__secret_internals.loadEditors([a],r),w((()=>{var e;return null===(e=I.customEditors.get(a))||void 0===e?void 0:e(h())})))}),[a,r]),R=(0,d.useCallback)(((e,t)=>{if(t){const t=S().omit(e,[W]);return{[W]:S().isEmpty(t)?"":t}}return e[W]??e}),[]);return(0,d.useEffect)((()=>{T()}),[T]),(0,d.useEffect)((()=>{y&&L.setInitialValues(i)}),[y,L]),(0,d.useEffect)((()=>{M.current=null,L.notify(Oe,n),L.query(P).take((e=>{e.display=n?"hidden":"visible"})),L.query(W).take((e=>{e.display=n?"visible":"hidden"}));const{values:e}=L.getState(),t=R(M.current??e,n);L.setValues(t,"overwrite")}),[n,L,R,y]),(0,d.useEffect)((()=>{L.addEffects("onValueChange",(()=>{(0,m.A$)((e=>{p(e.values)}))}))}),[L]),y?h().createElement("div",{className:"property-form-wrapper"},h().createElement(A.Ay,{prefixCls:"antdV5",theme:{algorithm:"dark-v2"===x?v.A.darkAlgorithm:v.A.defaultAlgorithm,components:{InputNumber:{handleVisible:!0}}},getPopupContainer:e=>e},h().createElement(b.N7,{cache:N},h().createElement(g.Op,{form:L},h().createElement(y,{advancedMode:n,SchemaFieldComponent:Ie,form:L,scope:{dataList:o,advancedMode:n,childSlots:l,extraLibs:s,links:c,tokenClick:e=>u(e.detail),triggerAction:f},effects:{onFieldInit:m.yd,onFieldValueChange:m.$l,onFieldInitialValueChange:m.J4,onFormInitialValuesChange:m.oJ,onFormValidateSuccess:m.zu,onSubmit:k,onAdvancedChange:C},formilySchemaFormatter:F}))))):null}B=et,({e:[K,j,V,H,Y,G,X,q,J,Q,Z,ee,te,ne,ie,ae,oe,re,se,le,ce,de,he,pe,ue,me,ge,Ae,ve,be,fe,Ee,ke,ye,we,xe,U],c:[_e,z]}=(0,c.A)(B,[Ne("visual-builder.property-editor",{shadowOptions:!1,dependencies:["eo-icon-select","vs.code-editor","eo-tooltip"]})],[[Le(),1,"editorName"],[Le({attribute:!1}),1,"values"],[Le({type:Boolean}),1,"advancedMode"],[Le({attribute:!1}),1,"dataList"],[Le({attribute:!1}),1,"editorPackages"],[Le({attribute:!1}),1,"links"],[Le({attribute:!1}),1,"extraLibs"],[Le({attribute:!1}),1,"childSlots"],[Ce({type:"validate.success"}),1,"successEvent",e=>(0,l.A)(Ke,e),(e,t)=>(0,s.A)(Ke,e,t)],[Ce({type:"validate.error"}),1,"errorEvent",e=>(0,l.A)(Ve,e),(e,t)=>(0,s.A)(Ve,e,t)],[Me(),2,"validate"],[Ce({type:"values.change"}),1,"valuesChangeEvent",e=>(0,l.A)(He,e),(e,t)=>(0,s.A)(He,e,t)],[Ce({type:"token.click"}),1,"tokenClick",e=>(0,l.A)(Ge,e),(e,t)=>(0,s.A)(Ge,e,t)],[Ce({type:"trigger.action"}),1,"triggerActionEvent",e=>(0,l.A)(Qe,e),(e,t)=>(0,s.A)(Qe,e,t)]],0,(e=>Ze.has((0,o.A)(e))),u.ReactNextElement)),z()},7236:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o),s=n(6131),l=r()(a());l.i(s.A),l.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 c=l.toString()},1563:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.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=r.toString()},6213:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.contract-wrapper{display:flex;gap:4px}.contract-selector{flex:1}.version-selector{width:100px}.options-tips{padding:0px 10px;font-weight:400;color:#999;white-space:nowrap;font-style:italic}",""]);const s=r.toString()},7540:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.id,":host{display:inline-block}:host([hidden]){display:none}.mask,\n.container{display:none;position:fixed;z-index:1}.mask{top:0;bottom:0;left:0;right:0;z-index:1}:host([active]) .mask,\n:host([active]) .container{display:block}.container{background:var(--antd-dropdown-menu-bg);border-radius:var(--medius-border-radius);padding:5px}.container .title{padding:5px 12px;cursor:default;color:var(--color-secondary-text);border-bottom:1px solid var(--color-text-divider-line)}.container eo-menu{border:none;padding:5px 0}.container eo-menu eo-menu-item:not([disabled]):hover::part(menu-item){background-color:var(--left-sidebar-item-hover-bg)}.container eo-menu eo-menu-item[disabled]::part(menu-item){cursor:not-allowed}.container eo-menu eo-menu-item::part(menu-item){cursor:grab;padding:5px 12px;border-radius:var(--medius-border-radius);min-width:max-content}.container eo-menu eo-menu-item.dragging{opacity:0.5}.container eo-menu eo-tooltip{display:block}",""]);const s=r.toString()},2381:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.id,":host{--local-node-outline-style:solid;display:block}:host([hidden]){display:none}:host([not-synced]){--local-node-outline-style:dashed}*{box-sizing:border-box}.node{width:168px;max-width:none;height:130px;position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;cursor:pointer;-webkit-user-select:none;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 s=r.toString()},4967:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.id,":host{display:inline-block}:host([hidden]){display:none}",""]);const s=r.toString()},8918:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.id,"#preview-root{padding:0;height:100vh;overflow-y:auto;border:1px solid var(--theme-gray-border-color);border-radius:4px}.head-cell{position:sticky;top:0;background:var(--body-background);z-index:1;font-weight:bold}.last-col-cell{border-right-color:transparent}.last-row-cell{border-bottom-color:transparent}",""]);const s=r.toString()},4014:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.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=r.toString()},9216:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.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 s=r.toString()},9765:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.id,".custom-scrollbar-container{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.15) rgba(255,255,255,0.03)}.custom-scrollbar-container::-webkit-scrollbar{width:8px;height:8px;background-color:transparent;position:absolute}.custom-scrollbar-container::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0);border-radius:4px}.custom-scrollbar-container:hover::-webkit-scrollbar-track{background-color:rgba(255,255,255,0.03)}.custom-scrollbar-container:hover::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.15)}",""]);const s=r.toString()},3430:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.id,'.workBenchActionList{display:flex;flex-direction:column;width:min-content;height:100%;background-color:#4297ff}:host-context(html[data-theme="dark-v2"]) .workBenchActionList,\n:host-context([data-override-theme="dark-v2"]) .workBenchActionList{background-color:#323237}',""]);const s=r.toString()},5292:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.id,'.action::part(link){display:flex;justify-content:center;align-items:center;width:48px;height:48px;font-size:24px;color:rgba(255,255,255,0.4);position:relative;transition:none}.action.active::part(link)::before{content:"";position:absolute;top:0;bottom:0;left:0;width:2px;background-color:white}.action.active::part(link),\n.action::part(link):hover{color:white}',""]);const s=r.toString()},1361:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.id,":host{display:inline-block}:host([hidden]){display:none}eo-popover::part(popup){width:800px;max-width:60vw;padding:10px;background:var(--color-fill-bg-container-4);border-radius:var(--medius-border-radius);box-shadow:var(--feedback-container-shadow);z-index:1000}.history-title{font-size:var(--title-font-size);font-weight:var(--font-weight-500);color:var(--color-strong-text);margin-bottom:5px}.history-list{max-height:500px;overflow-y:auto}.item-container{padding:10px 0;display:flex;flex-direction:column;gap:5px}.empty{padding:5px 0 10px 0;font-size:14px;color:var(--text-color-secondary);text-align:center}.item-container:not(:last-of-type){border-bottom:1px solid var(--color-border-divider-line)}.item-title{display:flex;align-items:center;justify-content:space-between;gap:5px}.title-left,\n.title-right{display:flex;align-items:center}.title-left{cursor:pointer;overflow:hidden;gap:5px}.topic{font-size:14px;color:var(--text-color-title);font-weight:var(--font-weight-500);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.branch{font-size:14px;color:var(--text-color-secondary)}.rollback{margin-right:5px;font-size:14px;color:var(--text-color-secondary);cursor:pointer}.rollback:hover{color:var(--color-brand)}.item-info{display:flex;align-items:center;gap:5px}.time,\n.operator{font-size:14px;color:var(--text-color-secondary)}.load-more-container{display:block;text-align:center}.end-container{display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px;color:var(--color-brand)}.rollback-all{cursor:pointer}",""]);const s=r.toString()},7180:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.id,':host{display:block;--pane-color:#595959}:host-context(html[data-theme="dark-v2"]),\n:host-context([data-override-theme="dark-v2"]){--pane-color:#ccc}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.pane{display:flex;flex-direction:column;color:var(--pane-color);height:100%}.pane-header{display:flex;align-items:center;cursor:pointer;border-top:1px solid transparent;position:relative}.pane-header:focus{outline-width:1px;outline-style:solid;outline-offset:-1px;outline-color:#007fd4}:host(:not(:first-child)) .pane-header{border-top-color:rgba(204,204,204,0.2)}.pane-scroll-shadow{display:none;position:absolute;bottom:-3px;left:0;right:0;height:3px;box-shadow:#000000 0 6px 6px -6px inset;z-index:1}.scrolled .pane-scroll-shadow{display:block}.pane-title{display:flex;align-items:center;font-size:13px;line-height:24px;height:25px;min-width:0;flex:1}.title-icon{display:flex;justify-content:center;align-items:center;width:24px;padding-right:2px;line-height:1;flex-shrink:0}.title-label{text-transform:uppercase;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-body{flex-grow:1;min-height:0;display:none;overflow:hidden;overflow-y:auto;overflow-y:overlay}:host([active]) .pane-body{display:initial}:host(:not(:hover)) ::slotted([slot="actions"]){display:none}.badge{background-color:rgb(77,77,77);color:rgb(255,255,255);border-radius:11px;height:18px;padding:3px 6px;line-height:13px;margin:0 3px;font-size:12px}',""]);const s=r.toString()},2150:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o)()(a());r.push([e.id,':host{--sidebar-background:#fff;--title-container-background:#fff;--title-container-color:#595959;display:block;outline-color:rgba(83,89,93,0.5);background-color:var(--sidebar-background);height:100%}:host-context(html[data-theme="dark-v2"]),\n:host-context([data-override-theme="dark-v2"]){--sidebar-background:#181818;--title-container-background:#181818;--title-container-color:rgb(187,187,187);background-color:var(--sidebar-background)}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.sidebar{display:flex;flex-direction:column;height:100%}.title-container{display:flex;padding:0 8px 8px 8px;color:var(--title-container-color);background:var(--title-container-background)}.title-label{font-weight:300;line-height:44px;padding-left:12px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-container{flex-grow:1;min-height:0;display:flex;flex-direction:column}::slotted([slot="panes"]){transition:flex 0.2s;min-height:25px}',""]);const s=r.toString()},6131:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(6758),a=n.n(i),o=n(935),r=n.n(o),s=n(7745),l=r()(a());l.i(s.A),l.push([e.id,"",""]);const c=l.toString()},264:(e,t,n)=>{function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function o(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var o=n.strict,r=void 0!==o&&o,s=n.start,l=void 0===s||s,c=n.end,d=void 0===c||c,h=n.encode,p=void 0===h?function(e){return e}:h,u=n.delimiter,m=void 0===u?"/#?":u,g=n.endsWith,A="[".concat(i(void 0===g?"":g),"]|$"),v="[".concat(i(m),"]"),b=l?"^":"",f=0,E=e;f<E.length;f++){var k=E[f];if("string"==typeof k)b+=i(p(k));else{var y=i(p(k.prefix)),w=i(p(k.suffix));if(k.pattern)if(t&&t.push(k),y||w)if("+"===k.modifier||"*"===k.modifier){var x="*"===k.modifier?"?":"";b+="(?:".concat(y,"((?:").concat(k.pattern,")(?:").concat(w).concat(y,"(?:").concat(k.pattern,"))*)").concat(w,")").concat(x)}else b+="(?:".concat(y,"(").concat(k.pattern,")").concat(w,")").concat(k.modifier);else"+"===k.modifier||"*"===k.modifier?b+="((?:".concat(k.pattern,")").concat(k.modifier,")"):b+="(".concat(k.pattern,")").concat(k.modifier);else b+="(?:".concat(y).concat(w,")").concat(k.modifier)}}if(d)r||(b+="".concat(v,"?")),b+=n.endsWith?"(?=".concat(A,")"):"$";else{var N=e[e.length-1],L="string"==typeof N?v.indexOf(N[N.length-1])>-1:void 0===N;r||(b+="(?:".concat(v,"(?=").concat(A,"))?")),L||(b+="(?=".concat(v,"|").concat(A,")"))}return new RegExp(b,a(n))}(function(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var i=e[n];if("*"!==i&&"+"!==i&&"?"!==i)if("\\"!==i)if("{"!==i)if("}"!==i)if(":"!==i)if("("!==i)t.push({type:"CHAR",index:n,value:e[n++]});else{var a=1,o="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--a){s++;break}}else if("("===e[s]&&(a++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));o+=e[s++]}else o+=e[s++]+e[s++];if(a)throw new TypeError("Unbalanced pattern at ".concat(n));if(!o)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:o}),n=s}else{for(var r="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;r+=e[s++]}if(!r)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:r}),n=s}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),a=t.prefixes,o=void 0===a?"./":a,r="[^".concat(i(t.delimiter||"/#?"),"]+?"),s=[],l=0,c=0,d="",h=function(e){if(c<n.length&&n[c].type===e)return n[c++].value},p=function(e){var t=h(e);if(void 0!==t)return t;var i=n[c],a=i.type,o=i.index;throw new TypeError("Unexpected ".concat(a," at ").concat(o,", expected ").concat(e))},u=function(){for(var e,t="";e=h("CHAR")||h("ESCAPED_CHAR");)t+=e;return t};c<n.length;){var m=h("CHAR"),g=h("NAME"),A=h("PATTERN");if(g||A){var v=m||"";-1===o.indexOf(v)&&(d+=v,v=""),d&&(s.push(d),d=""),s.push({name:g||l++,prefix:v,suffix:"",pattern:A||r,modifier:h("MODIFIER")||""})}else{var b=m||h("ESCAPED_CHAR");if(b)d+=b;else if(d&&(s.push(d),d=""),h("OPEN")){v=u();var f=h("NAME")||"",E=h("PATTERN")||"",k=u();p("CLOSE"),s.push({name:f||(E?l++:""),pattern:f&&!E?r:E,prefix:v,suffix:k,modifier:h("MODIFIER")||""})}else p("END")}}return s}(e,n),t,n)}function r(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,i=0,a=n.exec(e.source);a;)t.push({name:a[1]||i++,prefix:"",suffix:"",modifier:"",pattern:""}),a=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var i=e.map((function(e){return r(e,t,n).source}));return new RegExp("(?:".concat(i.join("|"),")"),a(n))}(e,t,n):o(e,t,n)}n.d(t,{MM:()=>r})}}]);
3
+ //# sourceMappingURL=7150.ac864502.js.map