@next-bricks/visual-builder 1.31.1 → 1.32.1

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 (34) hide show
  1. package/dist/bricks.json +6 -6
  2. package/dist/chunks/2528.6af6d36b.js +3 -0
  3. package/dist/chunks/{9130.117ac8b0.js.LICENSE.txt → 2528.6af6d36b.js.LICENSE.txt} +4 -0
  4. package/dist/chunks/2528.6af6d36b.js.map +1 -0
  5. package/dist/chunks/7150.ebb95d53.js +3 -0
  6. package/dist/chunks/7150.ebb95d53.js.map +1 -0
  7. package/dist/chunks/9080.c73b20aa.js +2 -0
  8. package/dist/chunks/9080.c73b20aa.js.map +1 -0
  9. package/dist/chunks/{chat-conversation.5600ab79.js → chat-conversation.918f65c5.js} +3 -3
  10. package/dist/chunks/{chat-conversation.5600ab79.js.map → chat-conversation.918f65c5.js.map} +1 -1
  11. package/dist/chunks/{main.1896b359.js → main.5435b169.js} +2 -2
  12. package/dist/chunks/{main.1896b359.js.map → main.5435b169.js.map} +1 -1
  13. package/dist/chunks/property-editor.a3793d5c.js +2 -0
  14. package/dist/chunks/property-editor.a3793d5c.js.map +1 -0
  15. package/dist/examples.json +3 -3
  16. package/dist/index.bd6e026e.js +2 -0
  17. package/dist/{index.742c3f79.js.map → index.bd6e026e.js.map} +1 -1
  18. package/dist/manifest.json +80 -80
  19. package/dist/types.json +0 -161
  20. package/dist-types/property-editor/components/common/CustomOptionsComponent.d.ts +10 -0
  21. package/dist-types/property-editor/index.d.ts +23 -53
  22. package/dist-types/property-editor/utils/formilySchemaFormatter.d.ts +4 -1
  23. package/package.json +2 -2
  24. package/dist/chunks/5021.ec378b1d.js +0 -2
  25. package/dist/chunks/5021.ec378b1d.js.map +0 -1
  26. package/dist/chunks/7150.5a68b243.js +0 -3
  27. package/dist/chunks/7150.5a68b243.js.map +0 -1
  28. package/dist/chunks/9130.117ac8b0.js +0 -3
  29. package/dist/chunks/9130.117ac8b0.js.map +0 -1
  30. package/dist/chunks/property-editor.3bc75a4d.js +0 -2
  31. package/dist/chunks/property-editor.3bc75a4d.js.map +0 -1
  32. package/dist/index.742c3f79.js +0 -2
  33. /package/dist/chunks/{7150.5a68b243.js.LICENSE.txt → 7150.ebb95d53.js.LICENSE.txt} +0 -0
  34. /package/dist/chunks/{chat-conversation.5600ab79.js.LICENSE.txt → chat-conversation.918f65c5.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";(globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[9080],{2803:(e,t,o)=>{o.d(t,{M:()=>x});var n=o(9575),a=o(8769),r=o.n(a),l=o(9708),i=o(1389),s=o(7091),p=o(3373),c=o.n(p),m=o(1030),u=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,s.mN)(),o=(0,s.Mt)(),i=(0,s.Ov)(),[p,v]=(0,a.useState)("string"==typeof o.value&&(0,d.isEvaluable)(o.value)?"advanced":"normal"),x=(0,a.useMemo)((()=>"advanced"===p),[p]),g=(0,a.useMemo)((()=>o.component),[o]),y=(0,a.useCallback)((()=>{const e=x?"normal":"advanced",n="advanced"===e;v(e),o.setComponent(n?"CodeEditor":g[0],{...n?{...i??{},lineNumbers:"off",glyphMargin:!1}:g[1]});const a=t.getValuesIn(o.props.name);if(n&&(0,m.isObject)(a))t.setInitialValues({[o.props.name]:b().safeDump(a)});else if(!n&&a&&"string"==typeof a){let e;try{e=b().load(a)}catch{e=null}t.setInitialValues({[o.props.name]:e},"overwrite")}}),[t,o,x,g,i]);return(0,s.Uf)((()=>{(0,u.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,n.A)({},e,{layout:x?null:e.layout||"vertical"}),e.children),r().createElement("div",{className:"advanced-mode-check-wrapper"},r().createElement(h,{content:"normal"===p?"使用表达式":"关闭表达式"},r().createElement(f,{className:c()({isActive:x}),lib:"fa",icon:"code",onClick:y}))))}},3768:(e,t,o)=>{o.d(t,{H:()=>r});var n=o(8769),a=o.n(n);function r(e){return a().createElement("div",{className:"custom-category-title"},e.text)}},6110:(e,t,o)=>{o.d(t,{i:()=>I});var n=o(9708),a=o(9646),r=o(7070),l=o(8769),i=o.n(l),s=o(2591),p=o.n(s),c=o(1740),m=o.n(c),u=o(8128),d=o.n(u),v=o(855),b=o.n(v),f=o(3051),h=o.n(f),x=o(3656),g=o.n(x),y=o(3607),E={};E.styleTagTransform=g(),E.setAttributes=b(),E.insert=d().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=h(),p()(y.A,E);const C=y.A&&y.A.locals?y.A.locals:void 0;var A=o(3373),k=o.n(A),W=function(e){return e[e.top=0]="top",e[e.right=1]="right",e[e.bottom=2]="bottom",e[e.left=3]="left",e}(W||{});function I(e){let{onChange:t,value:o,mode:s}=e;const[p,c]=(0,l.useState)(),[m,u]=(0,l.useState)(!1),[d,v]=(0,l.useState)(),b=(0,l.useMemo)((()=>"in"===s),[s]),f=e=>{v(e)},h=()=>{v(null)},x=(0,l.useCallback)(((e,n)=>{const a=n.match(/\d+/),r=Number(null!==a?a[0]:0),l=m?`${r}px`:`${(o??"0px 0px 0px 0px").match(/(\d+px)/g).map(((t,o)=>W[e]===o?`${r}px`:t)).join(" ")}`;t(l)}),[m,t,o]),g=e=>{u(e)},y=(0,l.useCallback)((e=>{const t=(e??"0px 0px 0px 0px").match(/(\d+)/g);1===t.length?(u(!0),c({top:t[0],right:t[0],bottom:t[0],left:t[0]})):c({top:t[0],right:t[1],bottom:t[2]??t[0],left:t[3]??t[1]})}),[]);return(0,l.useEffect)((()=>{y(o)}),[o,y]),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||m})}),i().createElement("div",{className:k()(C.right,C.line,C.horizontal,{[C.active]:"right"===d||m})}),i().createElement("div",{className:k()(C.left,C.line,C.horizontal,{[C.active]:"left"===d||m})}),i().createElement("div",{className:k()(C.bottom,C.line,C.vertical,{[C.active]:"bottom"===d||m})}),i().createElement("div",{className:"connect-btn"},m?i().createElement(a.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(n.pd,{prefix:"上",placeholder:"0",value:null==p?void 0:p.top,onFocus:()=>f("top"),onBlur:h,onChange:e=>x("top",e.target.value)}),i().createElement(n.pd,{prefix:"左",placeholder:"0",value:null==p?void 0:p.left,onFocus:()=>f("left"),onChange:e=>x("left",e.target.value),onBlur:h})),i().createElement("div",{className:C.inputWrapper},i().createElement(n.pd,{prefix:"下",placeholder:"0",value:null==p?void 0:p.bottom,onFocus:()=>f("bottom"),onBlur:h,onChange:e=>x("bottom",e.target.value)}),i().createElement(n.pd,{prefix:"右",placeholder:"0",value:null==p?void 0:p.right,onFocus:()=>f("right"),onBlur:h,onChange:e=>x("right",e.target.value)}))))}},3824:(e,t,o)=>{o.d(t,{S:()=>m});var n=o(9575),a=o(8769),r=o.n(a),l=o(1389),i=o(1732),s=o.n(i),p=o(1030);const c=(0,l.wrapBrick)("vs.code-editor",{onChange:"code.change",tokenClick:"token.click"});function m(e){const[t,o]=(0,a.useState)(),[l,i]=(0,a.useState)(),m=(0,a.useCallback)((t=>{var o;i(t.detail?t.detail:void 0);const n=t.detail?s().safeLoad(t.detail):void 0;null==e||null===(o=e.onChange)||void 0===o||o.call(e,n)}),[e]);return(0,a.useEffect)((()=>{if(e.value&&!t){let t=e.value;t&&"string"!=typeof t&&(t=(0,p.isEmpty)(t)?"":s().safeDump(Array.isArray(t)?t:{...t,style:(0,p.isEmpty)(t.style)?void 0:t.style},{skipInvalid:!0})),o(t)}}),[e.value,t]),r().createElement(c,(0,n.A)({minLines:e.minLines??1,automaticLayout:"fit-content",language:"brick_next_yaml",theme:"vs-dark"},e,{value:l??t,onChange:m}))}},5067:(e,t,o)=>{o.d(t,{h:()=>u});var n=o(9575),a=o(8769),r=o.n(a),l=o(5346),i=o(7856);const s=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)}})),p=e=>[{label:"系统默认",colors:e.map((e=>e.colors)).flat()}],c=(e,t)=>{let o=t;return e.forEach((e=>{const t=e.label,n=e.colors.findIndex((e=>"string"==typeof e?e===o:e.toHsbString()===o));n>=0&&(o=`var(--palette-${t}-${n+1})`)})),o},m=(e,t)=>{const[,o,n]=t.match(/^var\(--palette-(\w+)-(\d+)\)$/)??[];let a=t;return o&&n&&e.forEach((e=>{const t=e.colors[Number(n)-1];e.label===o&&t&&(a="string"==typeof t?t:t.toHsbString())})),a};function u(e){const[t,o]=(0,a.useState)(),i=(0,a.useMemo)((()=>p(s)),[]);return(0,a.useEffect)((()=>{if(e.value){const t=m(s,e.value);o(t)}else o(e.value??"")}),[e.value]),r().createElement(l.A,(0,n.A)({getPopupContainer:()=>document.body,showText:!0,presets:i},e,{value:t,onChange:(t,o)=>{var n,a;n=o,null===(a=e.onChange)||void 0===a||a.call(e,c(s,n))}}))}},5944:(e,t,o)=>{o.d(t,{F:()=>M});var n=o(8769),a=o.n(n),r=o(2591),l=o.n(r),i=o(1740),s=o.n(i),p=o(8128),c=o.n(p),m=o(855),u=o.n(m),d=o(3051),v=o.n(d),b=o(3656),f=o.n(b),h=o(803),x={};x.styleTagTransform=f(),x.setAttributes=u(),x.insert=c().bind(null,"head"),x.domAPI=s(),x.insertStyleElement=v(),l()(h.A,x);const g=h.A&&h.A.locals?h.A.locals:void 0;var y=o(1469),E=o(7091),C=o(9650),A=o(8144),k=o(3995),W=o(2080),I=o(5908),T=o(1030);const S="$custom_wrapper",w="$option_id";function M(e){let{schema:t,displayLabel:o,value:r,onChange:l}=e;const[i,s]=(0,n.useState)(),[p,c]=(0,n.useState)(!1),[m,u]=(0,n.useState)([]),d=(0,n.useMemo)((()=>(0,k.cV)({name:S,type:"void",children:t},{isDefault:!1})),[t]),v=(0,n.useMemo)((()=>(0,I.DG)()),[]),b=(0,n.useCallback)((()=>{let e=m;e=i?m.map((e=>e[w]===i[w]?v.values:e)):m.concat(v.values),u(e),l(e.map((e=>(0,T.omit)(e,[w])))),c(!1)}),[v,l,m,i]),f=()=>{c(!1)},h=(0,n.useCallback)((()=>{const e=m.filter((e=>e[w]!==i[w]));u(e),l(e.map((e=>(0,T.omit)(e,[w])))),c(!1)}),[m,i,l]);return(0,n.useEffect)((()=>{r&&u(r.map((e=>({...e,[w]:Math.random()}))))}),[r]),a().createElement("div",{className:g.actionOptionsWrapper},a().createElement(C.A,{title:(i?"编辑":"新增")+"数据",open:p,onOk:b,onCancel:f,footer:()=>a().createElement("div",{className:g.modalFooter},a().createElement("div",null,i&&a().createElement(A.Ay,{danger:!0,type:"primary",onClick:h},"删除")),a().createElement("div",null,a().createElement(A.Ay,{type:"text",onClick:f},"取消"),a().createElement(A.Ay,{type:"primary",onClick:b},"确认")))},a().createElement(E.Op,{form:v},a().createElement(W.SchemaField,{schema:null==d?void 0:d[S]}))),a().createElement("div",{className:g.optionList},m.length?m.map(((e,t)=>a().createElement("div",{className:g.optionItem,key:t,onClick:()=>{return s(t=e),v.setValues(t,"overwrite"),void c(!0);var t}},e[o]))):a().createElement("div",{className:g.emptyItem},"无数据")),a().createElement(y.A,{className:g.addIcon,onClick:()=>{s(null),v.reset(),c(!0)}}))}},8409:(e,t,o)=>{o.d(t,{v:()=>W});var n=o(7091),a=o(8769),r=o.n(a),l=o(2591),i=o.n(l),s=o(1740),p=o.n(s),c=o(8128),m=o.n(c),u=o(855),d=o.n(u),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=m().bind(null,"head"),g.domAPI=p(),g.insertStyleElement=b(),i()(x.A,g);const y=x.A&&x.A.locals?x.A.locals:void 0;var E=o(3373),C=o.n(E);const A=(0,a.createContext)({}),k=()=>{const e=(0,n.Mt)(),t=(0,n.X0)(),o=[];return t.mapProperties(((t,n)=>{var a;const r=e.query(e.address.concat(n)).take();if("none"!==(null==r?void 0:r.display)&&"hidden"!==(null==r?void 0:r.display)&&(null===(a=t["x-component"])||void 0===a?void 0:a.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)||n;o.push({name:n,props:{...null==t?void 0:t["x-component-props"],...null==r?void 0:r.componentProps,key:e},schema:t})}})),o};function W(e){var t;const o=k(),[n,l]=(0,a.useState)(null===(t=o[0])||void 0===t?void 0:t.name);return r().createElement(A.Provider,{value:{activeTab:n}},r().createElement("div",{className:y.customTabWrapper},r().createElement("div",{className:y.customTabList},o.map((e=>{var t,o;return r().createElement("div",{className:C()(y.customTabItem,{[y.active]:n===(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:y.customTabItemLabel},e.props.title))}))),e.children))}W.TabPanel=function(e){const{activeTab:t}=(0,a.useContext)(A);return(0,a.useMemo)((()=>e.tab===t),[t,e.tab])?r().createElement("div",{className:y.customTabPanel},e.children):null}},2513:(e,t,o)=>{o.d(t,{r:()=>l});var n=o(8769),a=o.n(n);const r=(0,o(1389).wrapBrick)("eo-icon-select",{onChange:"change"});function l(e){return a().createElement(r,e)}},966:(e,t,o)=>{o.d(t,{U:()=>i});var n=o(9575),a=o(8769),r=o.n(a),l=o(9708);function i(e){const[t,o]=(0,a.useState)(),i=(0,a.useCallback)((t=>{e.onChange(t?`${t}${e.suffix}`:void 0)}),[e]);return(0,a.useEffect)((()=>{const t=(e.value??"").replace(e.suffix,"");o(t)}),[e.suffix,e.value]),r().createElement(l.pd,(0,n.A)({},e,{value:t,onChange:e=>i(e.target.value)}))}},1477:(e,t,o)=>{o.d(t,{r:()=>c});var n=o(9575),a=o(8769),r=o.n(a),l=o(9708),i=o(7091),s=o(5908),p=o(2080);function c(e){const[t,o]=(0,a.useState)(!0),c=(0,i.mN)(),m=(0,i.Mt)(),{url:u,href:d}=e.transform??{url:"url",href:"href"},v=(0,a.useMemo)((()=>(0,s.fA)(p.ADVANCED_CHANGE_KEY,((e,t)=>o=>{o(e,t)}))),[]),b=(0,a.useCallback)((()=>{const n=!t;o(n),c.setValues({[n?u:d]:e.value}),c.deleteValuesIn(n?d:u)}),[t,c,u,e.value,d]),f=(0,a.useCallback)((o=>{e.onChange(o),c.setValues({[t?u:d]:o})}),[e,c,t,u,d]),h=(0,a.useMemo)((()=>t?"内链":"外链"),[t]),x=(0,a.useCallback)((e=>{const{values:t}=e.getState(),n=m.props.name;e.setValuesIn(n,t[u]??t[d]),o(!t[d])}),[m.props.name,d,u]);return(0,a.useEffect)((()=>{c.addEffects("onAdvancedChange",(()=>{(0,s.oJ)(x),v(((e,t)=>{const o=m.props.name;e&&t.deleteValuesIn(o)}))}))}),[c,m,v,x]),(0,a.useEffect)((()=>{x(c)}),[]),r().createElement(l.pd,(0,n.A)({},e,{suffix:r().createElement("div",{style:{cursor:"pointer"},slot:"suffix",onClick:b},h),onChange:e=>f(e.target.value)}))}},4287:(e,t,o)=>{o.d(t,{p:()=>c});var n=o(9575),a=o(8769),r=o.n(a),l=o(5524),i=o(1979),s=o(6394),p=o(4514);function c(e){return r().createElement(l.Ay.Group,(0,n.A)({},e,{size:"small"}),r().createElement(l.Ay.Button,{value:"left"},r().createElement(i.A,null)),!e.hideCenter&&r().createElement(l.Ay.Button,{value:"center"},r().createElement(s.A,null)),r().createElement(l.Ay.Button,{value:"right"},r().createElement(p.A,null)))}},5768:(e,t,o)=>{o.d(t,{_:()=>A});var n=o(8769),a=o.n(n),r=o(9708),l=o(4808),i=o(1469),s=o(2591),p=o.n(s),c=o(1740),m=o.n(c),u=o(8128),d=o.n(u),v=o(855),b=o.n(v),f=o(3051),h=o.n(f),x=o(3656),g=o.n(x),y=o(767),E={};E.styleTagTransform=g(),E.setAttributes=b(),E.insert=d().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=h(),p()(y.A,E);const C=y.A&&y.A.locals?y.A.locals:void 0;function A(e){return a().createElement("div",{className:C.useChildrenSelectWrapper},a().createElement(r.l6,e),a().createElement(l.A,{title:"点击添加子节点"},a().createElement(i.A,{className:C.plusIcon,onClick:()=>{var t;null==e||null===(t=e.triggerAction)||void 0===t||t.call(e,"add-slot")}})))}},3995:(e,t,o)=>{o.d(t,{qZ:()=>l,N4:()=>r,cV:()=>s});var n=o(1030);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"}}}]},r="#normal_form",l="#advanced_form";function i(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 s(e,t){const{isDefault:o=!0}="object"==typeof t?t:{},s=e=>{let t,o={};e.children&&(t=e.children.map(s));const{name:a,type:r,component:l,decorator:p}=e,c="string"===r?{name:"FormItem"}:"boolean"===r?{name:"FormItem",props:{layout:"horizontal"}}:{},m="string"===r?{name:"Input"}:"boolean"===r?{name:"Switch",props:{size:"small"}}:{},u={type:r??"void",...(0,n.omit)(e,["children","component","decorator"]),...i({...c,..."string"==typeof p?{name:p}:p},"decorator"),...i({...m,..."string"==typeof l?{name:l}:l},"component")};if("string"==typeof a?o[a]=u:o=u,t){u.properties={};for(const e of t)"string"==typeof e.name?u.properties[e.name]=e:u.properties={...u.properties,...e}}return o};return o?{type:"object",properties:{[r]:{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:s({...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:s(a)}}},[l]:{name:l,type:"string","x-decorator":"FormItemWithoutAdvanced","x-component":"CodeEditor","x-component-props":{extraLibs:"{{extraLibs}}",links:"{{links}}",tokenClick:"{{tokenClick}}",minLines:5,glyphMargin:!1}}}}:s(e)}},6265:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(6758),a=o.n(n),r=o(935),l=o.n(r)()(a());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 n=o(6758),a=o.n(n),r=o(935),l=o.n(r)()(a());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:()=>c});var n=o(6758),a=o.n(n),r=o(935),l=o.n(r),i=o(6265),s=o(7621),p=l()(a());p.i(i.A),p.i(s.A),p.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 c=p},3607:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(6758),a=o.n(n),r=o(935),l=o.n(r)()(a());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 n=o(6758),a=o.n(n),r=o(935),l=o.n(r)()(a());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},803:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(6758),a=o.n(n),r=o(935),l=o.n(r)()(a());l.push([e.id,".actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .emptyItem--gMv4r0f7,\n .actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .optionItem--xEPQt9Mw{border:1px solid var(--palette-gray-6);display:flex;justify-content:center;align-items:center;font-size:14px;border-top:none}.actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .emptyItem--gMv4r0f7:first-child, .actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .optionItem--xEPQt9Mw:first-child{border-top:1px solid var(--palette-gray-6)}.actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .emptyItem--gMv4r0f7:last-child, .actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .optionItem--xEPQt9Mw:last-child{border-bottom:none}.actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .optionItem--xEPQt9Mw{cursor:pointer}.actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .optionItem--xEPQt9Mw:hover{background-color:var(--palette-gray-5)}.actionOptionsWrapper--HuwosiuP .addIcon--ptNA7JRE{width:100%;border:1px solid var(--palette-gray-6);display:flex;justify-content:center;align-items:center;padding:4px;font-size:22px}.modalFooter--eRxlWgTL{display:flex;justify-content:space-between}",""]),l.locals={actionOptionsWrapper:"actionOptionsWrapper--HuwosiuP",optionList:"optionList--lJm6W8Kr",emptyItem:"emptyItem--gMv4r0f7",optionItem:"optionItem--xEPQt9Mw",addIcon:"addIcon--ptNA7JRE",modalFooter:"modalFooter--eRxlWgTL"};const i=l},767:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(6758),a=o.n(n),r=o(935),l=o.n(r)()(a());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 n=o(2591),a=o.n(n),r=o(1740),l=o.n(r),i=o(8128),s=o.n(i),p=o(855),c=o.n(p),m=o(3051),u=o.n(m),d=o(3656),v=o.n(d),b=o(3276),f={};f.styleTagTransform=v(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=u(),a()(b.A,f),b.A&&b.A.locals&&b.A.locals}}]);
2
+ //# sourceMappingURL=9080.c73b20aa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunks/9080.c73b20aa.js","mappings":"0SAmBA,MAAMA,GAAcC,EAAAA,EAAAA,WAAyC,WACvDC,GAAiBD,EAAAA,EAAAA,WAAmC,cASnD,SAASE,EAAiBC,GAC/B,MAAMC,GAAOC,EAAAA,EAAAA,MACPC,GAAQC,EAAAA,EAAAA,MACRC,GAAQC,EAAAA,EAAAA,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ack:///./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/CutomOptionsComponent.module.css?273b","webpack:///./src/property-editor/components/common/CustomOptionsComponent.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/utils/formilySchemaFormatter.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/CutomOptionsComponent.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 | string;\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 if (realValue.length === 1) {\n setConnect(true);\n\n setTransformValue({\n top: realValue[0],\n right: realValue[0],\n bottom: realValue[0],\n left: realValue[0],\n });\n } else {\n setTransformValue({\n top: realValue[0],\n right: realValue[1],\n bottom: realValue[2] ?? realValue[0],\n left: realValue[3] ?? realValue[1],\n });\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 as any;\n if (value && typeof value !== \"string\") {\n if (isEmpty(value)) {\n value = \"\";\n } else {\n value = yaml.safeDump(\n Array.isArray(value)\n ? value\n : {\n ...value,\n style: isEmpty(value.style) ? undefined : value.style,\n },\n {\n skipInvalid: true,\n }\n );\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 } else {\n setValue((props.value as string) ?? \"\");\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]!./CutomOptionsComponent.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]!./CutomOptionsComponent.module.css\";\n export default content && content.locals ? content.locals : undefined;\n","import React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport styles from \"./CutomOptionsComponent.module.css\";\nimport { PlusCircleOutlined } from \"@ant-design/icons\";\nimport { FormProvider } from \"@formily/react\";\nimport { Modal, Button } from \"antd\";\nimport {\n DataNode,\n formilySchemaFormatter,\n} from \"../../utils/formilySchemaFormatter\";\nimport { SchemaField } from \"../..\";\nimport { createForm } from \"@formily/core\";\nimport { omit } from \"lodash\";\n\ninterface ActionOptionsComponentProps {\n onChange: (value: any[]) => void;\n displayLabel: string;\n schema: DataNode[];\n value: any;\n}\n\nconst CUSTOM_WRAPPER = \"$custom_wrapper\";\nconst OPTION_ID = \"$option_id\";\n\nexport function CustomOptionsComponent({\n schema,\n displayLabel,\n value,\n onChange,\n}: ActionOptionsComponentProps) {\n const [editItem, setEditItem] = useState<any>();\n const [isModalOpen, setIsModalOpen] = useState<boolean>(false);\n const [options, setOptions] = useState<any[]>([]);\n const formatSchema: any = useMemo(\n () =>\n formilySchemaFormatter(\n {\n name: CUSTOM_WRAPPER,\n type: \"void\",\n children: schema,\n },\n {\n isDefault: false,\n }\n ),\n [schema]\n );\n\n const form = useMemo(() => createForm(), []);\n\n const handleAddAction = () => {\n setEditItem(null);\n form.reset();\n setIsModalOpen(true);\n };\n\n const handleEditItem = (data: any) => {\n setEditItem(data);\n form.setValues(data, \"overwrite\");\n setIsModalOpen(true);\n };\n\n const handleOk = useCallback(() => {\n let newOptions = options;\n if (editItem) {\n newOptions = options.map((item) => {\n if (item[OPTION_ID] === editItem[OPTION_ID]) {\n return form.values;\n }\n return item;\n });\n } else {\n newOptions = options.concat(form.values);\n }\n setOptions(newOptions);\n\n onChange(newOptions.map((item) => omit(item, [OPTION_ID])));\n setIsModalOpen(false);\n }, [form, onChange, options, editItem]);\n\n const handleCancel = () => {\n setIsModalOpen(false);\n };\n\n const handleDelete = useCallback(() => {\n const newOptions = options.filter(\n (item) => item[OPTION_ID] !== editItem[OPTION_ID]\n );\n setOptions(newOptions);\n\n onChange(newOptions.map((item) => omit(item, [OPTION_ID])));\n\n setIsModalOpen(false);\n }, [options, editItem, onChange]);\n\n useEffect(() => {\n if (value) {\n setOptions(\n value.map((item: any) => ({\n ...item,\n [OPTION_ID]: Math.random(),\n }))\n );\n }\n }, [value]);\n\n return (\n <div className={styles.actionOptionsWrapper}>\n <Modal\n title={`${editItem ? \"编辑\" : \"新增\"}数据`}\n open={isModalOpen}\n onOk={handleOk}\n onCancel={handleCancel}\n footer={() => (\n <div className={styles.modalFooter}>\n <div>\n {editItem && (\n <Button danger type=\"primary\" onClick={handleDelete}>\n 删除\n </Button>\n )}\n </div>\n <div>\n <Button type=\"text\" onClick={handleCancel}>\n 取消\n </Button>\n <Button type=\"primary\" onClick={handleOk}>\n 确认\n </Button>\n </div>\n </div>\n )}\n >\n <FormProvider form={form}>\n <SchemaField schema={formatSchema?.[CUSTOM_WRAPPER]} />\n </FormProvider>\n </Modal>\n <div className={styles.optionList}>\n {options.length ? (\n options.map((item, index) => {\n return (\n <div\n className={styles.optionItem}\n key={index}\n onClick={() => handleEditItem(item)}\n >\n {item[displayLabel]}\n </div>\n );\n })\n ) : (\n <div className={styles.emptyItem}>无数据</div>\n )}\n </div>\n <PlusCircleOutlined\n className={styles.addIcon}\n onClick={handleAddAction}\n />\n </div>\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 (value: string) => {\n props.onChange(value);\n\n form.setValues({ [mode ? url : href]: value });\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={(event) => handleChange(event.target.value)}\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 {!props.hideCenter && (\n <Radio.Button value=\"center\">\n <AlignCenterOutlined />\n </Radio.Button>\n )}\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","import type { ISchema } from \"@formily/react\";\nimport { omit } from \"lodash\";\nimport { stylesSchema } from \"../schema/styles.schema\";\n\nexport const NORMAL_FORM_KEY = \"#normal_form\";\nexport const ADVANCED_FORM_KEY = \"#advanced_form\";\n\ntype ComponentType =\n | string\n | {\n name: string;\n props?: Record<string, any>;\n };\n\nexport interface DataNode {\n type: \"void\" | \"string\" | \"object\" | \"boolean\" | \"array\";\n name: string;\n title?: string;\n props?: Record<string, any>;\n decorator?: ComponentType;\n component?: ComponentType;\n children?: DataNode[];\n [k: string]: any;\n}\n\nfunction transformComponent(\n data: ComponentType,\n key: \"decorator\" | \"component\"\n): Record<string, any> {\n if (!data) return {};\n if (typeof data === \"string\") {\n return {\n [`x-${key}`]: data,\n };\n }\n return {\n [`x-${key}`]: data.name,\n [`x-${key}-props`]: {\n ...(data.name === \"CodeEditor\"\n ? {\n extraLibs: \"{{extraLibs}}\",\n links: \"{{links}}\",\n tokenClick: \"{{tokenClick}}\",\n lineNumbers: \"off\",\n glyphMargin: false,\n }\n : {}),\n ...(data.props ?? {}),\n },\n };\n}\n\ntype formilySchemaFormatterOptions = {\n isDefault: boolean;\n};\n\nexport function formilySchemaFormatter(\n data: DataNode,\n options?: formilySchemaFormatterOptions | boolean\n): ISchema {\n const { isDefault = true } = typeof options === \"object\" ? options : {};\n\n const walk = (data: DataNode): Record<string, any> => {\n let children: Record<string, any>[] | undefined;\n let result: Record<string, any> = {};\n if (data.children) {\n children = data.children.map(walk);\n }\n const { name, type, component, decorator } = data;\n\n const defaultDecorator: Record<string, any> =\n type === \"string\"\n ? {\n name: \"FormItem\",\n }\n : type === \"boolean\"\n ? {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n },\n }\n : {};\n\n const defaultComponent: Record<string, any> =\n type === \"string\"\n ? {\n name: \"Input\",\n }\n : type === \"boolean\"\n ? {\n name: \"Switch\",\n props: {\n size: \"small\",\n },\n }\n : {};\n\n const childNode: Record<string, any> = {\n type: type ?? \"void\",\n ...omit(data, [\"children\", \"component\", \"decorator\"]),\n ...transformComponent(\n {\n ...defaultDecorator,\n ...(typeof decorator === \"string\" ? { name: decorator } : decorator),\n },\n \"decorator\"\n ),\n ...transformComponent(\n {\n ...defaultComponent,\n ...(typeof component === \"string\" ? { name: component } : component),\n },\n \"component\"\n ),\n };\n\n if (typeof name === \"string\") {\n result[name] = childNode;\n } else {\n result = childNode;\n }\n\n if (children) {\n childNode.properties = {};\n for (const item of children) {\n if (typeof item.name === \"string\") {\n childNode.properties[item.name] = item;\n } else {\n childNode.properties = {\n ...childNode.properties,\n ...item,\n };\n }\n }\n }\n return result;\n };\n\n const defaultFields = [\n {\n name: \"id\",\n title: \"id\",\n type: \"string\",\n decorator: {\n name: \"FormItem\",\n props: {\n layout: \"horizontal\",\n },\n },\n },\n {\n name: \"hidden\",\n title: \"隐藏\",\n type: \"boolean\",\n },\n ] as DataNode[];\n\n if (!isDefault) {\n return walk(data);\n }\n\n return {\n type: \"object\",\n properties: {\n [NORMAL_FORM_KEY]: {\n type: \"void\",\n \"x-component\": \"CustomTab\",\n \"x-component-props\": {\n activeTab: \"property\",\n },\n properties: {\n property: {\n type: \"void\",\n \"x-component\": \"CustomTab.TabPanel\",\n \"x-component-props\": {\n title: \"属性\",\n tab: \"property\",\n },\n properties: walk({\n ...data,\n children: [...defaultFields, ...data.children],\n }),\n },\n style: {\n type: \"object\",\n name: \"style\",\n \"x-component\": \"CustomTab.TabPanel\",\n \"x-component-props\": {\n title: \"样式\",\n tab: \"style\",\n },\n properties: walk(stylesSchema),\n },\n },\n },\n [ADVANCED_FORM_KEY]: {\n name: ADVANCED_FORM_KEY,\n type: \"string\",\n \"x-decorator\": \"FormItemWithoutAdvanced\",\n \"x-component\": \"CodeEditor\",\n \"x-component-props\": {\n extraLibs: \"{{extraLibs}}\",\n links: \"{{links}}\",\n tokenClick: \"{{tokenClick}}\",\n minLines: 5,\n glyphMargin: false,\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, `.actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .emptyItem--gMv4r0f7,\n .actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .optionItem--xEPQt9Mw{border:1px solid var(--palette-gray-6);display:flex;justify-content:center;align-items:center;font-size:14px;border-top:none}.actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .emptyItem--gMv4r0f7:first-child, .actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .optionItem--xEPQt9Mw:first-child{border-top:1px solid var(--palette-gray-6)}.actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .emptyItem--gMv4r0f7:last-child, .actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .optionItem--xEPQt9Mw:last-child{border-bottom:none}.actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .optionItem--xEPQt9Mw{cursor:pointer}.actionOptionsWrapper--HuwosiuP .optionList--lJm6W8Kr .optionItem--xEPQt9Mw:hover{background-color:var(--palette-gray-5)}.actionOptionsWrapper--HuwosiuP .addIcon--ptNA7JRE{width:100%;border:1px solid var(--palette-gray-6);display:flex;justify-content:center;align-items:center;padding:4px;font-size:22px}.modalFooter--eRxlWgTL{display:flex;justify-content:space-between}`, \"\"]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"actionOptionsWrapper\": `actionOptionsWrapper--HuwosiuP`,\n\t\"optionList\": `optionList--lJm6W8Kr`,\n\t\"emptyItem\": `emptyItem--gMv4r0f7`,\n\t\"optionItem\": `optionItem--xEPQt9Mw`,\n\t\"addIcon\": `addIcon--ptNA7JRE`,\n\t\"modalFooter\": `modalFooter--eRxlWgTL`\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","length","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","isEmpty","Array","isArray","skipInvalid","minLines","automaticLayout","language","theme","presets","Object","entries","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","CUSTOM_WRAPPER","OPTION_ID","CustomOptionsComponent","schema","displayLabel","editItem","setEditItem","isModalOpen","setIsModalOpen","setOptions","formatSchema","formilySchemaFormatter","type","isDefault","createForm","handleOk","newOptions","values","concat","omit","handleCancel","handleDelete","filter","Math","random","actionOptionsWrapper","Modal","title","open","onOk","onCancel","footer","modalFooter","Button","danger","FormProvider","SchemaField","optionList","optionItem","handleEditItem","data","setValues","emptyItem","PlusCircleOutlined","addIcon","handleAddAction","reset","CustomTabContext","createContext","useTabs","tabsField","useFieldSchema","tabs","mapProperties","_schema$xComponent","query","address","take","display","indexOf","_field$componentProps","_schema$xComponentP","componentProps","push","CustomTab","_tabs$","activeTab","setActiveTab","Provider","customTabWrapper","customTabList","_item$props","_item$props2","customTabItem","customTabItemLabel","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","deleteValuesIn","suffixText","computedLink","getState","fieldName","setValuesIn","addEffects","onFormInitialValuesChange","cursor","slot","TextAlignRadioComponent","Radio","size","AlignLeftOutlined","hideCenter","AlignCenterOutlined","AlignRightOutlined","UseChildrenSelectComponent","useChildrenSelectWrapper","Select","Tooltip","plusIcon","handlePlusIconClick","_props$triggerAction","triggerAction","stylesSchema","decorator","NORMAL_FORM_KEY","ADVANCED_FORM_KEY","transformComponent","extraLibs","links","walk","result","defaultDecorator","defaultComponent","childNode","properties","property","___CSS_LOADER_EXPORT___","module","id","i"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- /*! For license information please see chat-conversation.5600ab79.js.LICENSE.txt */
2
- (globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[3555,2052],{7035:(e,t,n)=>{"use strict";n.d(t,{V:()=>l});var r=n(8769),o=n.n(r),s=n(3373),a=n.n(s),i=n(7384);const c=(0,n(1389).wrapBrick)("eo-avatar");function l(e){let{message:t}=e;const n=(0,r.useMemo)((()=>{const e=[];if("assistant"===t.role){const n=/(?:^|\n)```(easy_cmd_\S+)\n([\s\S]*?)\n```(?:$|\n)/gm;let r,o=0;for(;r=n.exec(t.content);){const[s,a,i]=r,c=r.index,l=t.content.slice(o,c).trim();l.length>0&&e.push({type:"markdown",content:l}),e.push({type:"command",command:a,content:i.trim(),raw:s}),o=n.lastIndex}const s=t.content.slice(o).trim();s.length>0&&e.push({type:"markdown",content:s})}else e.push({type:"plain",content:t.content});return e}),[t.content,t.role]),s=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=s.current;e&&setTimeout((()=>{const n=e.parentElement.querySelectorAll(".texting");for(const e of n)e.classList.remove("texting");if(!t.partial)return;let r=e;for(;r;){const e=r.lastChild;if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE||"DETAILS"===(null==e?void 0:e.tagName)&&!e.open){var o;if((null==e?void 0:e.nodeType)!==Node.TEXT_NODE||0!==e.textContent.trim().length||(null===(o=e.previousSibling)||void 0===o?void 0:o.nodeType)!==Node.ELEMENT_NODE)break;r=e.previousSibling}else r=e}r.classList.add("texting")}),1)}),[t.partial,t.content]),o().createElement("div",{className:a()("message",{failed:t.failed})},o().createElement("div",{className:"avatar"},o().createElement(c,{icon:{lib:"easyops",icon:"assistant"===t.role?"robot":"account"},size:"small",className:`role-${t.role}`})),o().createElement("div",{className:"main"},o().createElement("div",{className:"label"},"assistant"===t.role?"Assistant":"You"),o().createElement("div",{className:"content",ref:s},n.map(((e,t)=>o().createElement(u,{key:t,chunk:e}))))))}function u(e){let{chunk:t}=e;return o().createElement(o().Fragment,null,"markdown"===t.type?o().createElement("div",{className:"markdown"},o().createElement(i.N,{content:t.content})):"command"===t.type?o().createElement(o().Fragment,null,o().createElement("details",{className:"command"},o().createElement("summary",null,"```",t.command),o().createElement("pre",null,o().createElement("code",null,t.content)))):o().createElement("div",{className:"plain"},t.content))}},4705:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ChatConversation:()=>_,ChatConversationComponent:()=>$});var r,o=n(4635),s=n(918),a=n(6902),i=n(5536),c=n(6121),l=n(829),u=n(2740),d=n(8769),f=n.n(d),p=n(4782),m=n(1389),h=(n(9583),n(7035)),g=n(7236);let v,y,b,w,A,E,k,x,N;const{defineElement:S,property:T,event:j}=(0,p.createDecorators)();let _;var C=new WeakMap,B=new WeakMap,O=new WeakMap,M=new WeakSet,L=new WeakMap;class P extends m.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,M),(0,s.A)(this,C,y(this)),(0,s.A)(this,B,(b(this),w(this))),(0,s.A)(this,O,(A(this),E(this))),(0,s.A)(this,L,(N(this),e=>{(0,i.A)(M,this,k).emit(e)}))}get messages(){return(0,l.A)(C,this)}set messages(e){(0,c.A)(C,this,e)}get errorBoundary(){return(0,l.A)(B,this)}set errorBoundary(e){(0,c.A)(B,this,e)}render(){return f().createElement($,{host:this,messages:this.messages,errorBoundary:this.errorBoundary,onStoryboardUpdate:(0,l.A)(L,this)})}}function $(e){let{messages:t,host:n,errorBoundary:r,onStoryboardUpdate:o}=e;const s=(0,d.useMemo)((()=>/(?:^|\n)```easy_cmd_vb_block_(page|storyboard)\n([\s\S]*?)\n```(?:$|\n)/gm),[]),a=(0,d.useRef)(new Map),[i,c]=(0,d.useState)([]),l=(0,d.useRef)(!1);(0,d.useEffect)((()=>{for(const e of t??[]){if("assistant"!==e.role)continue;let t;s.lastIndex=a.current.get(e.key)??0;const n=[];let r=!1;for(;t=s.exec(e.content);){a.current.set(e.key,s.lastIndex);const[,o,i]=t;try{const e=JSON.parse(i);"page"===o?(r=!0,n.push(...e)):n.push({...e,type:"item"})}catch(e){console.error("parse storyboard failed:",e)}}r?c(n):n.length>0&&c((e=>[...e,...n]))}}),[s,t]);const[u,p]=(0,d.useState)([]);(0,d.useEffect)((()=>{const e=[],t=new Map;for(const n of i)"block"===n.type?e.push(n):n.storyboard&&t.set(n.uuid,n.storyboard);e.sort(((e,t)=>e.seq-t.seq));const n={brick:"eo-content-layout",children:[]},o={brick:"eo-main-view",children:[{brick:"eo-page-title",slot:"pageTitle",properties:{pageTitle:"测试页面"}}]};let s=!1;for(const a of e)if("全局操作区"===a.name)for(const e of a.children){const n=t.get(e);n&&(o.children.push({...n,properties:{...n.properties,slot:void 0},errorBoundary:r,slot:"toolbar",iid:`item:${e}`,meta:{type:"item",uuid:e,block:{uuid:a.uuid,name:a.name}}}),s=!0)}else{const e=t.get(a.uuid);if(e){const o={...e,children:[],errorBoundary:r,iid:`block:${a.uuid}`,meta:{type:"block",uuid:a.uuid,name:a.name}};s=!0,n.children.push(o);for(const e of a.children){const n=t.get(e);n&&o.children.push({...n,errorBoundary:r,iid:`item:${e}`,meta:{type:"item",uuid:e}})}}else if(!a.hasContainer)for(const e of a.children){const o=t.get(e);o&&(n.children.push({...o,errorBoundary:r,iid:`item:${e}`,meta:{type:"item",uuid:e}}),s=!0)}}o.children.push(n),p((e=>s?[o]:0===e.length?e:[]))}),[i,r]),(0,d.useEffect)((()=>{null==o||o(u)}),[o,u]);const m=(0,d.useMemo)((()=>{let e=n;for(;e;){const t=getComputedStyle(e,null).getPropertyValue("overflow-y");if("auto"===t||"scroll"===t)return e;if(e.parentNode instanceof ShadowRoot)e=e.parentNode.host;else{if(!(e.parentNode instanceof Element))break;e=e.parentNode}}return document.scrollingElement||document.documentElement}),[n]);return(0,d.useEffect)((()=>{l.current||setTimeout((()=>{m.scrollTo(0,m.scrollHeight)}),1)}),[t,m]),(0,d.useEffect)((()=>{const e=()=>{l.current=m.scrollTop+m.clientHeight+6<m.scrollHeight};return m.addEventListener("scroll",e),()=>{m.removeEventListener("scroll",e)}}),[m]),f().createElement(f().Fragment,null,null==t?void 0:t.map(((e,t)=>f().createElement(h.V,{key:e.key??`index-${t}`,message:e}))))}r=P,({e:[y,b,w,A,E,k,x,N],c:[_,v]}=(0,u.A)(r,[S("visual-builder.chat-conversation",{styleTexts:[g.A]})],[[T({attribute:!1}),1,"messages"],[T({type:Boolean}),1,"errorBoundary"],[j({type:"storyboard.update"}),1,"storyboardUpdate",e=>(0,l.A)(O,e),(e,t)=>(0,c.A)(O,e,t)]],0,(e=>L.has((0,a.A)(e))),m.ReactNextElement)),v()},7236:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6758),o=n.n(r),s=n(935),a=n.n(s),i=n(6131),c=a()(o());c.i(i.A),c.push([e.id,':host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.message{display:flex;gap:8px}.main{flex:1;min-width:0}.label{font-weight:bold;line-height:28px}.message:not(:last-child){margin-bottom:2em}.invisible-dots{opacity:0}.failed .content{color:var(--color-error)}.command:not(:first-child){margin-top:1em}.command:not(:last-child){margin-bottom:1em}pre{white-space:pre-wrap;background-color:var(--palette-gray-3);border-radius:6px;padding:1em}.markdown > :first-child{margin-top:0}.markdown > :last-child{margin-bottom:0}.avatar{align-self:flex-start;display:flex;align-items:center;justify-content:center}.texting::after{content:" ";animation:texting 2s infinite;white-space:pre}@keyframes texting{0%{content:" "}25%{content:". "}50%{content:".. "}75%{content:"..."}100%{content:" "}}pre[class*="language-"]{overflow:visible}pre[class*="language-"],\ncode[class*="language-"]{white-space:pre-wrap}eo-avatar.role-assistant::part(avatar-icon){background-color:var(--palette-blue-5)}.content{word-wrap:break-word}.plain{white-space:pre-wrap}',""]);const l=c.toString()},6131:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6758),o=n.n(r),s=n(935),a=n.n(s),i=n(7745),c=a()(o());c.i(i.A),c.push([e.id,"",""]);const l=c.toString()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(a[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&a[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,s(n)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},2740:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7545),o=n(6902);function s(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(1369);function i(e,t,n,i,c,l){var u,d,f,p,m,h,g,v=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,b=Object.create,w=[b(null),b(null)],A=t.length;function E(t,n,r){return function(o,s){n&&(s=o,o=e);for(var a=0;a<t.length;a++)s=t[a].apply(o,r?[s]:[]);return r?s:o}}function k(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function x(e,t,n,o,a,i,c,l,f,p,m){function h(e){if(!m(e))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(t[0]),v=t[3],b=!c,A=1===a,x=3===a,N=4===a,S=2===a;function T(t,n,r){return function(o,s){return n&&(s=o,o=e),r&&r(o),j[t].call(o,s)}}if(!b){var j={},_=[],C=x?"get":N||A?"set":"value";if(f?(p||A?j={get:s((function(){return v(this)}),o,"get"),set:function(e){t[4](this,e)}}:j[C]=v,p||s(j[C],o,S?"":C)):p||(j=Object.getOwnPropertyDescriptor(e,o)),!p&&!f){if((d=w[+l][o])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+j[C].name+") is not supported yet");w[+l][o]=a<3?1:a}}for(var B=e,O=g.length-1;O>=0;O-=n?2:1){var M=k(g[O],"A decorator","be",!0),L=n?g[O-1]:void 0,P={},$={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");k(t,"An initializer","be",!0),i.push(t)}.bind(null,P)};if(b)d=M.call(L,B,$),P.v=1,k(d,"class decorators","return")&&(B=d);else if($.static=l,$.private=f,d=$.access={has:f?m.bind():function(e){return o in e}},N||(d.get=f?S?function(e){return h(e),j.value}:T("get",0,h):function(e){return e[o]}),S||x||(d.set=f?T("set",0,h):function(e,t){e[o]=t}),B=M.call(L,A?{get:j.get,set:j.set}:j[C],$),P.v=1,A){if("object"==(0,r.A)(B)&&B)(d=k(B.get,"accessor.get"))&&(j.get=d),(d=k(B.set,"accessor.set"))&&(j.set=d),(d=k(B.init,"accessor.init"))&&_.unshift(d);else if(void 0!==B)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else k(B,(p?"field":"method")+" decorators","return")&&(p?_.unshift(B):j[C]=B)}return a<2&&c.push(E(_,l,1),E(i,l,0)),p||b||(f?A?c.splice(-1,0,T("get",l),T("set",l)):c.push(S?j[C]:k.call.bind(j[C])):y(e,o,j)),B}function N(e){return y(e,v,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[v]),u=b(null==u?null:u),m=[],h=function(e){e&&m.push(E(e))},g=function(t,r){for(var s=0;s<n.length;s++){var i=n[s],l=i[1],u=7&l;if((8&l)==t&&!u==r){var d=i[2],h=!!i[3],g=16&l;x(t?e:e.prototype,i,g,h?"#"+d:(0,a.A)(d),u,u<2?[]:t?p=p||[]:f=f||[],m,!!t,h,r,t&&h?function(t){return(0,o.A)(t)===e}:c)}}},g(8,0),g(0,0),g(8,1),g(0,1),h(f),h(p),d=m,A||N(e),{e:d,get c(){var n=[];return A&&[N(e=x(e,[t],i,e.name,5,n)),E(n,1)]}}}},2559:(e,t,n)=>{"use strict";function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},6902:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},2016:(e,t,n)=>{"use strict";function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},829:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2559);function o(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2016);function o(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return e.set((0,r.A)(e,t),n),n}},5536:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return n((0,r.A)(e,t))}},4635:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2016);function o(e,t){(0,r.A)(e,t),t.add(e)}},1369:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7545);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},7545:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},7384:(e,t,n)=>{"use strict";n.d(t,{N:()=>d});var r=n(8769),o=n(1085),s=n(3091),a=n(7447),i=n(3640),c=n(4360),l=n(1250);const u={Fragment:o.Fragment,jsx:o.jsx,jsxs:o.jsxs};function d(e){let{content:t}=e;const[n,o]=(0,r.useState)(null);return(0,r.useEffect)((()=>{let e=!1;return(0,s.l)().use(a.A).use(i.A).use([l.N]).use(c.A,u).process(t).then((t=>{e||o(t.result)})).catch((t=>{e||(console.error("Convert markdown failed:",t),o(null))})),()=>{e=!0}}),[t]),n}},1250:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(3544),o=n(4650),s=n(9830);function a(){function e(e,t,n){if(!n||"pre"!==n.tagName||"code"!==e.tagName)return;const r=function(e){const t=e.properties.className||[];for(const e of t)if("language-"===e.slice(0,9))return e.slice(9).toLowerCase();return null}(e);if(null===r)return;let a;try{n.properties.className=(n.properties.className||[]).concat("language-"+r),a=s.L.highlight((0,o.d)(e),r)}catch{return}e.children=a.children}return t=>{(0,r.YR)(t,"element",e)}}}}]);
3
- //# sourceMappingURL=chat-conversation.5600ab79.js.map
1
+ /*! For license information please see chat-conversation.918f65c5.js.LICENSE.txt */
2
+ (globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[3555,2052],{7035:(e,t,n)=>{"use strict";n.d(t,{V:()=>l});var r=n(8769),o=n.n(r),s=n(3373),a=n.n(s),i=n(7384);const c=(0,n(1389).wrapBrick)("eo-avatar");function l(e){let{message:t}=e;const n=(0,r.useMemo)((()=>{const e=[];if("assistant"===t.role){const n=/(?:^|\n)```(easy_cmd_\S+)\n([\s\S]*?)\n```(?:$|\n)/gm;let r,o=0;for(;r=n.exec(t.content);){const[s,a,i]=r,c=r.index,l=t.content.slice(o,c).trim();l.length>0&&e.push({type:"markdown",content:l}),e.push({type:"command",command:a,content:i.trim(),raw:s}),o=n.lastIndex}const s=t.content.slice(o).trim();s.length>0&&e.push({type:"markdown",content:s})}else e.push({type:"plain",content:t.content});return e}),[t.content,t.role]),s=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=s.current;e&&setTimeout((()=>{const n=e.parentElement.querySelectorAll(".texting");for(const e of n)e.classList.remove("texting");if(!t.partial)return;let r=e;for(;r;){const e=r.lastChild;if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE||"DETAILS"===(null==e?void 0:e.tagName)&&!e.open){var o;if((null==e?void 0:e.nodeType)!==Node.TEXT_NODE||0!==e.textContent.trim().length||(null===(o=e.previousSibling)||void 0===o?void 0:o.nodeType)!==Node.ELEMENT_NODE)break;r=e.previousSibling}else r=e}r.classList.add("texting")}),1)}),[t.partial,t.content]),o().createElement("div",{className:a()("message",{failed:t.failed})},o().createElement("div",{className:"avatar"},o().createElement(c,{icon:{lib:"easyops",icon:"assistant"===t.role?"robot":"account"},size:"small",className:`role-${t.role}`})),o().createElement("div",{className:"main"},o().createElement("div",{className:"label"},"assistant"===t.role?"Assistant":"You"),o().createElement("div",{className:"content",ref:s},n.map(((e,t)=>o().createElement(u,{key:t,chunk:e}))))))}function u(e){let{chunk:t}=e;return o().createElement(o().Fragment,null,"markdown"===t.type?o().createElement("div",{className:"markdown"},o().createElement(i.N,{content:t.content})):"command"===t.type?o().createElement(o().Fragment,null,o().createElement("details",{className:"command"},o().createElement("summary",null,"```",t.command),o().createElement("pre",null,o().createElement("code",null,t.content)))):o().createElement("div",{className:"plain"},t.content))}},4705:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ChatConversation:()=>_,ChatConversationComponent:()=>$});var r,o=n(4635),s=n(918),a=n(6902),i=n(5536),c=n(6121),l=n(829),u=n(2740),d=n(8769),f=n.n(d),p=n(4782),m=n(1389),h=(n(9583),n(7035)),g=n(7236);let v,y,b,w,A,E,k,x,N;const{defineElement:S,property:T,event:j}=(0,p.createDecorators)();let _;var C=new WeakMap,B=new WeakMap,O=new WeakMap,M=new WeakSet,L=new WeakMap;class P extends m.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,M),(0,s.A)(this,C,y(this)),(0,s.A)(this,B,(b(this),w(this))),(0,s.A)(this,O,(A(this),E(this))),(0,s.A)(this,L,(N(this),e=>{(0,i.A)(M,this,k).emit(e)}))}get messages(){return(0,l.A)(C,this)}set messages(e){(0,c.A)(C,this,e)}get errorBoundary(){return(0,l.A)(B,this)}set errorBoundary(e){(0,c.A)(B,this,e)}render(){return f().createElement($,{host:this,messages:this.messages,errorBoundary:this.errorBoundary,onStoryboardUpdate:(0,l.A)(L,this)})}}function $(e){let{messages:t,host:n,errorBoundary:r,onStoryboardUpdate:o}=e;const s=(0,d.useMemo)((()=>/(?:^|\n)```easy_cmd_vb_block_(page|storyboard)\n([\s\S]*?)\n```(?:$|\n)/gm),[]),a=(0,d.useRef)(new Map),[i,c]=(0,d.useState)([]),l=(0,d.useRef)(!1);(0,d.useEffect)((()=>{for(const e of t??[]){if("assistant"!==e.role)continue;let t;s.lastIndex=a.current.get(e.key)??0;const n=[];let r=!1;for(;t=s.exec(e.content);){a.current.set(e.key,s.lastIndex);const[,o,i]=t;try{const e=JSON.parse(i);"page"===o?(r=!0,n.push(...e)):n.push({...e,type:"item"})}catch(e){console.error("parse storyboard failed:",e)}}r?c(n):n.length>0&&c((e=>[...e,...n]))}}),[s,t]);const[u,p]=(0,d.useState)([]);(0,d.useEffect)((()=>{const e=[],t=new Map;for(const n of i)"block"===n.type?e.push(n):n.storyboard&&t.set(n.uuid,n.storyboard);e.sort(((e,t)=>e.seq-t.seq));const n={brick:"eo-content-layout",children:[]},o={brick:"eo-main-view",children:[{brick:"eo-page-title",slot:"pageTitle",properties:{pageTitle:"测试页面"}}]};let s=!1;for(const a of e)if("全局操作区"===a.name)for(const e of a.children){const n=t.get(e);n&&(o.children.push({...n,properties:{...n.properties,slot:void 0},errorBoundary:r,slot:"toolbar",iid:`item:${e}`,meta:{type:"item",uuid:e,block:{uuid:a.uuid,name:a.name}}}),s=!0)}else{const e=t.get(a.uuid);if(e){const o={...e,children:[],errorBoundary:r,iid:`block:${a.uuid}`,meta:{type:"block",uuid:a.uuid,name:a.name}};s=!0,n.children.push(o);for(const e of a.children){const n=t.get(e);n&&o.children.push({...n,errorBoundary:r,iid:`item:${e}`,meta:{type:"item",uuid:e}})}}else if(!a.hasContainer)for(const e of a.children){const o=t.get(e);o&&(n.children.push({...o,errorBoundary:r,iid:`item:${e}`,meta:{type:"item",uuid:e}}),s=!0)}}o.children.push(n),p((e=>s?[o]:0===e.length?e:[]))}),[i,r]),(0,d.useEffect)((()=>{null==o||o(u)}),[o,u]);const m=(0,d.useMemo)((()=>{let e=n;for(;e;){const t=getComputedStyle(e,null).getPropertyValue("overflow-y");if("auto"===t||"scroll"===t)return e;if(e.parentNode instanceof ShadowRoot)e=e.parentNode.host;else{if(!(e.parentNode instanceof Element))break;e=e.parentNode}}return document.scrollingElement||document.documentElement}),[n]);return(0,d.useEffect)((()=>{l.current||setTimeout((()=>{m.scrollTo(0,m.scrollHeight)}),1)}),[t,m]),(0,d.useEffect)((()=>{const e=()=>{l.current=m.scrollTop+m.clientHeight+6<m.scrollHeight};return m.addEventListener("scroll",e),()=>{m.removeEventListener("scroll",e)}}),[m]),f().createElement(f().Fragment,null,null==t?void 0:t.map(((e,t)=>f().createElement(h.V,{key:e.key??`index-${t}`,message:e}))))}r=P,({e:[y,b,w,A,E,k,x,N],c:[_,v]}=(0,u.A)(r,[S("visual-builder.chat-conversation",{styleTexts:[g.A]})],[[T({attribute:!1}),1,"messages"],[T({type:Boolean}),1,"errorBoundary"],[j({type:"storyboard.update"}),1,"storyboardUpdate",e=>(0,l.A)(O,e),(e,t)=>(0,c.A)(O,e,t)]],0,(e=>L.has((0,a.A)(e))),m.ReactNextElement)),v()},7236:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6758),o=n.n(r),s=n(935),a=n.n(s),i=n(8512),c=a()(o());c.i(i.A),c.push([e.id,':host{display:block}:host([hidden]){display:none}*{box-sizing:border-box}.message{display:flex;gap:8px}.main{flex:1;min-width:0}.label{font-weight:bold;line-height:28px}.message:not(:last-child){margin-bottom:2em}.invisible-dots{opacity:0}.failed .content{color:var(--color-error)}.command:not(:first-child){margin-top:1em}.command:not(:last-child){margin-bottom:1em}pre{white-space:pre-wrap;background-color:var(--palette-gray-3);border-radius:6px;padding:1em}.markdown > :first-child{margin-top:0}.markdown > :last-child{margin-bottom:0}.avatar{align-self:flex-start;display:flex;align-items:center;justify-content:center}.texting::after{content:" ";animation:texting 2s infinite;white-space:pre}@keyframes texting{0%{content:" "}25%{content:". "}50%{content:".. "}75%{content:"..."}100%{content:" "}}pre[class*="language-"]{overflow:visible}pre[class*="language-"],\ncode[class*="language-"]{white-space:pre-wrap}eo-avatar.role-assistant::part(avatar-icon){background-color:var(--palette-blue-5)}.content{word-wrap:break-word}.plain{white-space:pre-wrap}',""]);const l=c.toString()},8512:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6758),o=n.n(r),s=n(935),a=n.n(s),i=n(7745),c=a()(o());c.i(i.A),c.push([e.id,"",""]);const l=c.toString()},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(a[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&a[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,s(n)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},2740:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7545),o=n(6902);function s(e,t,n){"symbol"==(0,r.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(1369);function i(e,t,n,i,c,l){var u,d,f,p,m,h,g,v=Symbol.metadata||Symbol.for("Symbol.metadata"),y=Object.defineProperty,b=Object.create,w=[b(null),b(null)],A=t.length;function E(t,n,r){return function(o,s){n&&(s=o,o=e);for(var a=0;a<t.length;a++)s=t[a].apply(o,r?[s]:[]);return r?s:o}}function k(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function x(e,t,n,o,a,i,c,l,f,p,m){function h(e){if(!m(e))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(t[0]),v=t[3],b=!c,A=1===a,x=3===a,N=4===a,S=2===a;function T(t,n,r){return function(o,s){return n&&(s=o,o=e),r&&r(o),j[t].call(o,s)}}if(!b){var j={},_=[],C=x?"get":N||A?"set":"value";if(f?(p||A?j={get:s((function(){return v(this)}),o,"get"),set:function(e){t[4](this,e)}}:j[C]=v,p||s(j[C],o,S?"":C)):p||(j=Object.getOwnPropertyDescriptor(e,o)),!p&&!f){if((d=w[+l][o])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+j[C].name+") is not supported yet");w[+l][o]=a<3?1:a}}for(var B=e,O=g.length-1;O>=0;O-=n?2:1){var M=k(g[O],"A decorator","be",!0),L=n?g[O-1]:void 0,P={},$={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:u,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");k(t,"An initializer","be",!0),i.push(t)}.bind(null,P)};if(b)d=M.call(L,B,$),P.v=1,k(d,"class decorators","return")&&(B=d);else if($.static=l,$.private=f,d=$.access={has:f?m.bind():function(e){return o in e}},N||(d.get=f?S?function(e){return h(e),j.value}:T("get",0,h):function(e){return e[o]}),S||x||(d.set=f?T("set",0,h):function(e,t){e[o]=t}),B=M.call(L,A?{get:j.get,set:j.set}:j[C],$),P.v=1,A){if("object"==(0,r.A)(B)&&B)(d=k(B.get,"accessor.get"))&&(j.get=d),(d=k(B.set,"accessor.set"))&&(j.set=d),(d=k(B.init,"accessor.init"))&&_.unshift(d);else if(void 0!==B)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else k(B,(p?"field":"method")+" decorators","return")&&(p?_.unshift(B):j[C]=B)}return a<2&&c.push(E(_,l,1),E(i,l,0)),p||b||(f?A?c.splice(-1,0,T("get",l),T("set",l)):c.push(S?j[C]:k.call.bind(j[C])):y(e,o,j)),B}function N(e){return y(e,v,{configurable:!0,enumerable:!0,value:u})}return void 0!==l&&(u=l[v]),u=b(null==u?null:u),m=[],h=function(e){e&&m.push(E(e))},g=function(t,r){for(var s=0;s<n.length;s++){var i=n[s],l=i[1],u=7&l;if((8&l)==t&&!u==r){var d=i[2],h=!!i[3],g=16&l;x(t?e:e.prototype,i,g,h?"#"+d:(0,a.A)(d),u,u<2?[]:t?p=p||[]:f=f||[],m,!!t,h,r,t&&h?function(t){return(0,o.A)(t)===e}:c)}}},g(8,0),g(0,0),g(8,1),g(0,1),h(f),h(p),d=m,A||N(e),{e:d,get c(){var n=[];return A&&[N(e=x(e,[t],i,e.name,5,n)),E(n,1)]}}}},2559:(e,t,n)=>{"use strict";function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},6902:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,r.A)(e):"null"));return e}},2016:(e,t,n)=>{"use strict";function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},829:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2559);function o(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2016);function o(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return e.set((0,r.A)(e,t),n),n}},5536:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2559);function o(e,t,n){return n((0,r.A)(e,t))}},4635:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2016);function o(e,t){(0,r.A)(e,t),t.add(e)}},1369:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7545);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},7545:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},7384:(e,t,n)=>{"use strict";n.d(t,{N:()=>d});var r=n(8769),o=n(1085),s=n(3091),a=n(7447),i=n(3640),c=n(4360),l=n(1250);const u={Fragment:o.Fragment,jsx:o.jsx,jsxs:o.jsxs};function d(e){let{content:t}=e;const[n,o]=(0,r.useState)(null);return(0,r.useEffect)((()=>{let e=!1;return(0,s.l)().use(a.A).use(i.A).use([l.N]).use(c.A,u).process(t).then((t=>{e||o(t.result)})).catch((t=>{e||(console.error("Convert markdown failed:",t),o(null))})),()=>{e=!0}}),[t]),n}},1250:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(3544),o=n(4650),s=n(9830);function a(){function e(e,t,n){if(!n||"pre"!==n.tagName||"code"!==e.tagName)return;const r=function(e){const t=e.properties.className||[];for(const e of t)if("language-"===e.slice(0,9))return e.slice(9).toLowerCase();return null}(e);if(null===r)return;let a;try{n.properties.className=(n.properties.className||[]).concat("language-"+r),a=s.L.highlight((0,o.d)(e),r)}catch{return}e.children=a.children}return t=>{(0,r.YR)(t,"element",e)}}}}]);
3
+ //# sourceMappingURL=chat-conversation.918f65c5.js.map