@easy-editor/setters 0.1.0 → 0.1.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.
package/dist/index.min.js CHANGED
@@ -1,27 +1,27 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react/jsx-runtime")):"function"==typeof define&&define.amd?define(["exports","react","react/jsx-runtime"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).EasyEditorSetters={},e.React,e.jsxRuntime)}(this,function(e,t,a){"use strict";function r(e){var t,a,l="";if("string"==typeof e||"number"==typeof e)l+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(a=r(e[t]))&&(l&&(l+=" "),l+=a)}else for(a in e)e[a]&&(l&&(l+=" "),l+=a);return l}function l(...e){return function(){for(var e,t,a=0,l="",n=arguments.length;a<n;a++)(e=arguments[a])&&(t=r(e))&&(l&&(l+=" "),l+=t);return l}(e)}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("react/jsx-runtime")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","react/jsx-runtime"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).EasyEditorSetters={},e.React,e.ReactDOM,e.jsxRuntime)}(this,function(e,t,a,r){"use strict";const l=e=>{const{open:r,onClose:l,trigger:n,children:c,width:s="trigger"}=e,o=t.useRef(null),[i,h]=t.useState({top:0,left:0}),[d,p]=t.useState(0);return t.useEffect(()=>{if(r&&o.current){const e=o.current.getBoundingClientRect(),t=e.width;"trigger"===s&&p(t),h({top:e.bottom+4,left:e.left})}},[r,s]),t.useEffect(()=>{const e=e=>{const t=e.target,a=document.querySelector(".es-popover-portal");a&&!a.contains(t)&&o.current&&!o.current.contains(t)&&l()};if(r)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[r,l]),React.createElement(React.Fragment,null,React.createElement("div",{ref:o},n),r?a.createPortal(React.createElement("div",{className:"es-popover-portal",style:{position:"fixed",top:i.top,left:i.left,width:d||"auto",zIndex:1e3}},c),document.body):"")};function n(e){var t,a,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(a=n(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function c(...e){return function(){for(var e,t,a=0,r="",l=arguments.length;a<l;a++)(e=arguments[a])&&(t=n(e))&&(r&&(r+=" "),r+=t);return r}(e)}
2
2
  /**
3
3
  * @license lucide-react v0.561.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
7
- */const n=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},c=(...e)=>e.filter((e,t,a)=>Boolean(e)&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim(),s=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
7
+ */const s=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},o=(...e)=>e.filter((e,t,a)=>Boolean(e)&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim(),i=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
8
8
  /**
9
9
  * @license lucide-react v0.561.0 - ISC
10
10
  *
11
11
  * This source code is licensed under the ISC license.
12
12
  * See the LICENSE file in the root directory of this source tree.
13
13
  */
14
- var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
14
+ var h={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
15
15
  /**
16
16
  * @license lucide-react v0.561.0 - ISC
17
17
  *
18
18
  * This source code is licensed under the ISC license.
19
19
  * See the LICENSE file in the root directory of this source tree.
20
- */const i=t.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:n="",children:i,iconNode:h,...d},u)=>t.createElement("svg",{ref:u,...o,width:a,height:a,stroke:e,strokeWidth:l?24*Number(r)/Number(a):r,className:c("lucide",n),...!i&&!s(d)&&{"aria-hidden":"true"},...d},[...h.map(([e,a])=>t.createElement(e,a)),...Array.isArray(i)?i:[i]])),h=(e,a)=>{const r=t.forwardRef(({className:r,...l},s)=>{return t.createElement(i,{ref:s,iconNode:a,className:c(`lucide-${o=n(e),o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...l});var o});return r.displayName=n(e),r},d=h("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),u=h("align-end-horizontal",[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]]),p=h("align-end-vertical",[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]]),m=h("align-horizontal-distribute-center",[["rect",{width:"6",height:"14",x:"4",y:"5",rx:"2",key:"1wwnby"}],["rect",{width:"6",height:"10",x:"14",y:"7",rx:"2",key:"1fe6j6"}],["path",{d:"M17 22v-5",key:"4b6g73"}],["path",{d:"M17 7V2",key:"hnrr36"}],["path",{d:"M7 22v-3",key:"1r4jpn"}],["path",{d:"M7 5V2",key:"liy1u9"}]]),y=h("align-start-horizontal",[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]]),v=h("align-start-vertical",[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]]),g=h("align-vertical-distribute-center",[["path",{d:"M22 17h-3",key:"1lwga1"}],["path",{d:"M22 7h-5",key:"o2endc"}],["path",{d:"M5 17H2",key:"1gx9xc"}],["path",{d:"M7 7H2",key:"6bq26l"}],["rect",{x:"5",y:"14",width:"14",height:"6",rx:"2",key:"1qrzuf"}],["rect",{x:"7",y:"4",width:"10",height:"6",rx:"2",key:"we8e9z"}]]),k=h("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),b=h("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),f=h("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),x=h("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),w=h("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),N=h("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),R=h("chart-no-axes-column-increasing",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21V3",key:"11j9sm"}]]),E=h("chart-no-axes-column",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]]),M=h("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]),C=h("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),S=h("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),A=h("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),j=h("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),z=h("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),L=h("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),V=h("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),B=h("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),I=h("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),H=h("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),q=h("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),P=h("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]),T=h("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]),D=h("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),F=h("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),U=h("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),O=h("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),W=h("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Y=h("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),X=h("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),G=h("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),$=h("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),K=h("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),J=h("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),Z=h("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),Q=h("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),_=h("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),ee=h("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),te=h("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]),ae=h("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),re=h("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),le=h("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),ne=h("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),ce=h("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),se=h("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]),oe=h("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),ie=h("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]),he=h("lock-open",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]),de=h("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),ue=h("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),pe=h("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),me=h("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),ye=h("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]),ve=h("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),ge=h("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),ke=h("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]),be=h("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),fe=h("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),xe=h("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),we=h("move",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]]),Ne=h("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),Re=h("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),Ee=h("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Me=h("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),Ce=h("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]),Se=h("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),Ae=h("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),je=h("power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]),ze=h("printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]),Le=h("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),Ve=h("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),Be=h("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Ie=h("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),He=h("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]),qe=h("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]),Pe=h("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Te=h("share",[["path",{d:"M12 2v13",key:"1km8f5"}],["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}]]),De=h("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),Fe=h("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]),Ue=h("sliders-vertical",[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]]),Oe=h("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),We=h("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),Ye=h("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),Xe=h("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),Ge=h("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),$e=h("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]),Ke=h("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]),Je=h("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),Ze=h("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),Qe=h("thumbs-up",[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]]),_e=h("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),et=h("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),tt=h("trending-down",[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]]),at=h("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]),rt=h("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),lt=h("triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]),nt=h("truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]),ct=h("tv",[["path",{d:"m17 2-5 5-5-5",key:"16satq"}],["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",key:"1e6viu"}]]),st=h("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]),ot=h("unlink",[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]]),it=h("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]),ht=h("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),dt=h("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),ut=h("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),pt=h("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]),mt=h("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),yt=h("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),vt=h("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),gt=h("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);
20
+ */const d=t.forwardRef(({color:e="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:n="",children:c,iconNode:s,...d},p)=>t.createElement("svg",{ref:p,...h,width:a,height:a,stroke:e,strokeWidth:l?24*Number(r)/Number(a):r,className:o("lucide",n),...!c&&!i(d)&&{"aria-hidden":"true"},...d},[...s.map(([e,a])=>t.createElement(e,a)),...Array.isArray(c)?c:[c]])),p=(e,a)=>{const r=t.forwardRef(({className:r,...l},n)=>{return t.createElement(d,{ref:n,iconNode:a,className:o(`lucide-${c=s(e),c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...l});var c});return r.displayName=s(e),r},u=p("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),m=p("align-end-horizontal",[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]]),y=p("align-end-vertical",[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]]),v=p("align-horizontal-distribute-center",[["rect",{width:"6",height:"14",x:"4",y:"5",rx:"2",key:"1wwnby"}],["rect",{width:"6",height:"10",x:"14",y:"7",rx:"2",key:"1fe6j6"}],["path",{d:"M17 22v-5",key:"4b6g73"}],["path",{d:"M17 7V2",key:"hnrr36"}],["path",{d:"M7 22v-3",key:"1r4jpn"}],["path",{d:"M7 5V2",key:"liy1u9"}]]),g=p("align-start-horizontal",[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]]),k=p("align-start-vertical",[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]]),b=p("align-vertical-distribute-center",[["path",{d:"M22 17h-3",key:"1lwga1"}],["path",{d:"M22 7h-5",key:"o2endc"}],["path",{d:"M5 17H2",key:"1gx9xc"}],["path",{d:"M7 7H2",key:"6bq26l"}],["rect",{x:"5",y:"14",width:"14",height:"6",rx:"2",key:"1qrzuf"}],["rect",{x:"7",y:"4",width:"10",height:"6",rx:"2",key:"we8e9z"}]]),x=p("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),f=p("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),w=p("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),R=p("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),N=p("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),E=p("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),M=p("chart-no-axes-column-increasing",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21V3",key:"11j9sm"}]]),C=p("chart-no-axes-column",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]]),S=p("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]),A=p("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),j=p("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),z=p("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),V=p("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),L=p("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),I=p("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),B=p("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),q=p("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),P=p("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),H=p("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),T=p("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),D=p("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]),F=p("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]),U=p("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),O=p("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),W=p("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),X=p("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),Y=p("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),G=p("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),$=p("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),K=p("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),J=p("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),Z=p("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),Q=p("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),_=p("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),ee=p("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),te=p("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),ae=p("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),re=p("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]),le=p("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),ne=p("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),ce=p("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),se=p("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),oe=p("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),ie=p("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]),he=p("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),de=p("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]),pe=p("lock-open",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]),ue=p("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),me=p("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),ye=p("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),ve=p("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),ge=p("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]),ke=p("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),be=p("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),xe=p("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]),fe=p("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),we=p("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),Re=p("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),Ne=p("move",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]]),Ee=p("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),Me=p("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),Ce=p("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Se=p("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),Ae=p("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]),je=p("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),ze=p("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Ve=p("power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]),Le=p("printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]),Ie=p("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),Be=p("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),qe=p("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Pe=p("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),He=p("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]),Te=p("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]),De=p("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Fe=p("share",[["path",{d:"M12 2v13",key:"1km8f5"}],["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}]]),Ue=p("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),Oe=p("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]),We=p("sliders-vertical",[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]]),Xe=p("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),Ye=p("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),Ge=p("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),$e=p("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),Ke=p("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),Je=p("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]),Ze=p("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]),Qe=p("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),_e=p("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),et=p("thumbs-up",[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]]),tt=p("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),at=p("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),rt=p("trending-down",[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]]),lt=p("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]),nt=p("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),ct=p("triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]),st=p("truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]),ot=p("tv",[["path",{d:"m17 2-5 5-5-5",key:"16satq"}],["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",key:"1e6viu"}]]),it=p("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]),ht=p("unlink",[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]]),dt=p("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]),pt=p("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),ut=p("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),mt=p("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),yt=p("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]),vt=p("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),gt=p("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),kt=p("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),bt=p("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);
21
21
  /**
22
22
  * @license lucide-react v0.561.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */var kt="es-container-K2hFq",bt="es-visualWrapper-4dHVX",ft="es-previewBox-LDujZ",xt="es-previewElement-Bu8GM",wt="es-grid-BmRRU",Nt="es-gridButton-6Vtr7",Rt="es-gridButtonSelected-fOpOm",Et="es-section-SaHDo",Mt="es-sectionLabel-hDWO0",Ct="es-buttonGroup-Nj258",St="es-alignButton-zAvz2",At="es-alignButtonSelected-kGGHJ",jt="es-alignIcon-mFjSX",zt="es-alignIconRotated-z4AwW";const Lt={horizontal:"left",vertical:"top"},Vt=[{value:"left",icon:v,label:"左对齐"},{value:"center",icon:g,label:"水平居中"},{value:"right",icon:p,label:"右对齐"},{value:"stretch",icon:ve,label:"水平拉伸"}],Bt=[{value:"top",icon:y,label:"顶部对齐"},{value:"center",icon:m,label:"垂直居中"},{value:"bottom",icon:u,label:"底部对齐"},{value:"stretch",icon:ve,label:"垂直拉伸"}],It=[{h:"left",v:"top"},{h:"center",v:"top"},{h:"right",v:"top"},{h:"left",v:"center"},{h:"center",v:"center"},{h:"right",v:"center"},{h:"left",v:"bottom"},{h:"center",v:"bottom"},{h:"right",v:"bottom"}],Ht=(e,t)=>{const a={position:"absolute"};return"left"===e?(a.left="4px",a.width="30%"):"center"===e?(a.left="50%",a.transform="translateX(-50%)",a.width="30%"):"right"===e?(a.right="4px",a.width="30%"):(a.left="4px",a.right="4px",a.width="auto"),"top"===t?(a.top="4px",a.height="30%"):"center"===t?(a.top="50%",a.transform="center"===e?"translate(-50%, -50%)":"translateY(-50%)",a.height="30%"):"bottom"===t?(a.bottom="4px",a.height="30%"):(a.top="4px",a.bottom="4px",a.height="auto"),a},qt=e=>{const{value:a,initialValue:r,onChange:n,showHorizontal:c=!0,showVertical:s=!0}=e,o=a??r??Lt,i=t.useCallback(e=>{n({...o,...e})},[o,n]),h=t.useCallback((e,t)=>{n({horizontal:e,vertical:t})},[n]);return React.createElement("div",{className:kt},!0===c&&!0===s?React.createElement("div",{className:bt},React.createElement("div",{className:ft},React.createElement("div",{className:xt,style:Ht(o.horizontal,o.vertical)})),React.createElement("div",{className:wt},It.map(e=>{return React.createElement("button",{"aria-label":`Align ${e.h} ${e.v}`,className:l(Nt,(t=e.h,a=e.v,o.horizontal===t&&o.vertical===a?Rt:"")),key:`${e.h}-${e.v}`,onClick:()=>h(e.h,e.v),type:"button"});var t,a}))):null,!0===c?React.createElement("div",{className:Et},React.createElement("span",{className:Mt},"水平对齐"),React.createElement("div",{className:Ct},Vt.map(e=>{const t=e.icon,a="stretch"===e.value;return React.createElement("button",{"aria-label":e.label,className:l(St,o.horizontal===e.value?At:""),key:e.value,onClick:()=>i({horizontal:e.value}),title:e.label,type:"button"},React.createElement(t,{className:l(jt,a?zt:"")}))}))):null,!0===s?React.createElement("div",{className:Et},React.createElement("span",{className:Mt},"垂直对齐"),React.createElement("div",{className:Ct},Bt.map(e=>{const t=e.icon;return React.createElement("button",{"aria-label":e.label,className:l(St,o.vertical===e.value?At:""),key:e.value,onClick:()=>i({vertical:e.value}),title:e.label,type:"button"},React.createElement(t,{className:jt}))}))):null)};var Pt="es-container-KSlB-",Tt="es-item-xDCpZ",Dt="es-dragHandle-lOaFv",Ft="es-input-ItzPT",Ut="es-removeButton-ymAlo",Ot="es-removeIcon-ld51f",Wt="es-addButton-U1VQX",Yt="es-addIcon-6qJub";const Xt=e=>{const{value:a,initialValue:r,itemSetter:l="string",maxItems:n,minItems:c=0,placeholder:s,addButtonText:o="添加项",onChange:i}=e,h=a??r??[],d=t.useCallback(()=>{if(n&&h.length>=n)return;const e="number"===l?0:"";i([...h,e])},[h,n,l,i]),u=t.useCallback(e=>{if(h.length<=c)return;const t=h.filter((t,a)=>a!==e);i(t)},[h,c,i]),p=t.useCallback((e,t)=>{const a=[...h];a[e]=t,i(a)},[h,i]),m=!n||h.length<n,y=h.length>c;return React.createElement("div",{className:Pt},h.map((e,t)=>React.createElement("div",{className:Tt,key:`item-${String(e)}-${t}`},React.createElement(ee,{className:Dt}),React.createElement("input",{className:Ft,onChange:e=>{const a="number"===l?+e.target.value:e.target.value;p(t,a)},placeholder:s,type:"number"===l?"number":"text",value:e}),React.createElement("button",{className:Ut,disabled:!y,onClick:()=>u(t),type:"button"},React.createElement(_e,{className:Ot})))),React.createElement("button",{className:Wt,disabled:!m,onClick:d,type:"button"},React.createElement(Ae,{className:Yt}),o))};function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Gt.apply(null,arguments)}function $t(e,t){if(null==e)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;a[r]=e[r]}return a}var Kt=255,Jt=100,Zt=e=>{var{r:t,g:a,b:r,a:l}=e,n=Math.max(t,a,r),c=n-Math.min(t,a,r),s=c?n===t?(a-r)/c:n===a?2+(r-t)/c:4+(t-a)/c:0;return{h:60*(s<0?s+6:s),s:n?c/n*Jt:0,v:n/Kt*Jt,a:l}},Qt=e=>{var{h:t,s:a,l:r,a:l}=_t(e);return"hsla("+t+", "+a+"%, "+r+"%, "+l+")"},_t=e=>{var{h:t,s:a,v:r,a:l}=e,n=(200-a)*r/Jt;return{h:t,s:n>0&&n<200?a*r/Jt/(n<=Jt?n:200-n)*Jt:0,l:n/2,a:l}},ea=e=>{var t,{r:a,g:r,b:l}=e;return"#"+(t=(a<<16|r<<8|l).toString(16),new Array(7-t.length).join("0")+t)},ta=e=>Zt(aa(e)),aa=e=>{var t=e.replace("#","");/^#?/.test(e)&&3===t.length&&(e="#"+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var a=new RegExp("[A-Za-z0-9]{2}","g"),[r,l,n=0,c]=e.match(a).map(e=>parseInt(e,16));return{r:r,g:l,b:n,a:(null!=c?c:255)/Kt}},ra=e=>{var{h:t,s:a,v:r,a:l}=e,n=t/60,c=a/Jt,s=r/Jt,o=Math.floor(n)%6,i=n-Math.floor(n),h=Kt*s*(1-c),d=Kt*s*(1-c*i),u=Kt*s*(1-c*(1-i));s*=Kt;var p={};switch(o){case 0:p.r=s,p.g=u,p.b=h;break;case 1:p.r=d,p.g=s,p.b=h;break;case 2:p.r=h,p.g=s,p.b=u;break;case 3:p.r=h,p.g=d,p.b=s;break;case 4:p.r=u,p.g=h,p.b=s;break;case 5:p.r=s,p.g=h,p.b=d}return p.r=Math.round(p.r),p.g=Math.round(p.g),p.b=Math.round(p.b),Gt({},p,{a:l})},la=e=>{var{r:t,g:a,b:r,a:l}=ra(e);return"rgba("+t+", "+a+", "+r+", "+l+")"},na=e=>ea(ra(e)),ca=e=>{var t,a,r,l,n,c,s,o,i;return"string"==typeof e&&sa(e)?(c=ta(e),o=e):"string"!=typeof e&&(c=e),c&&(r=(e=>{var{h:t,s:a,v:r}=e;return{h:t,s:a,v:r}})(c),n=_t(c),i=(e=>{var{r:t,g:a,b:r,a:l}=e,n="number"==typeof l&&(255*l|256).toString(16).slice(1);return""+ea({r:t,g:a,b:r})+(n||"")})(l=ra(c)),o=na(c),a=(e=>{var{h:t,s:a,l:r}=e;return{h:t,s:a,l:r}})(n),t=(e=>{var{r:t,g:a,b:r}=e;return{r:t,g:a,b:r}})(l),s=(e=>{var{r:t,g:a,b:r}=e,l=function(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},n=l(t/255),c=l(a/255),s=l(r/255),o={};return o.x=.4124*n+.3576*c+.1805*s,o.y=.2126*n+.7152*c+.0722*s,o.bri=.0193*n+.1192*c+.9505*s,o})(t)),{rgb:t,hsl:a,hsv:r,rgba:l,hsla:n,hsva:c,hex:o,hexa:i,xy:s}},sa=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function oa(e){var a=t.useRef(e);return t.useEffect(()=>{a.current=e}),t.useCallback((e,t)=>a.current&&a.current(e,t),[])}var ia=e=>"touches"in e,ha=e=>{!ia(e)&&e.preventDefault&&e.preventDefault()},da=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e<t?t:e},ua=(e,t)=>{var a=e.getBoundingClientRect(),r=ia(t)?t.touches[0]:t;return{left:da((r.pageX-(a.left+window.pageXOffset))/a.width),top:da((r.pageY-(a.top+window.pageYOffset))/a.height),width:a.width,height:a.height,x:r.pageX-(a.left+window.pageXOffset),y:r.pageY-(a.top+window.pageYOffset)}},pa=["prefixCls","className","onMove","onDown"],ma=t.forwardRef((e,r)=>{var{prefixCls:l="w-color-interactive",className:n,onMove:c,onDown:s}=e,o=$t(e,pa),i=t.useRef(null),h=t.useRef(!1),[d,u]=t.useState(!1),p=oa(c),m=oa(s),y=t.useCallback(e=>{(ha(e),i.current)&&((ia(e)?e.touches.length>0:e.buttons>0)?null==p||p(ua(i.current,e),e):u(!1))},[p]),v=t.useCallback(()=>u(!1),[]),g=t.useCallback(e=>{e?(window.addEventListener(h.current?"touchmove":"mousemove",y),window.addEventListener(h.current?"touchend":"mouseup",v)):(window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",v),window.removeEventListener("touchmove",y),window.removeEventListener("touchend",v))},[y,v]);t.useEffect(()=>(g(d),()=>{g(!1)}),[d,y,v,g]);var k=t.useCallback(e=>{var t=document.activeElement;null==t||t.blur(),ha(e.nativeEvent),(e=>!(h.current&&!ia(e)||(h.current=ia(e),0)))(e.nativeEvent)&&i.current&&(null==m||m(ua(i.current,e.nativeEvent),e.nativeEvent),u(!0))},[m]);return a.jsx("div",Gt({},o,{className:[l,n||""].filter(Boolean).join(" "),style:Gt({},o.style,{touchAction:"none"}),ref:i,tabIndex:0,onMouseDown:k,onTouchStart:k}))});ma.displayName="Interactive";var ya=e=>{var{className:r,color:l,left:n,top:c,prefixCls:s}=e,o={position:"absolute",top:c,left:n},i={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:l};return t.useMemo(()=>a.jsx("div",{className:s+"-pointer "+(r||""),style:o,children:a.jsx("div",{className:s+"-fill",style:i})}),[c,n,l,r,s])},va=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],ga=t.forwardRef((e,r)=>{var l,{prefixCls:n="w-color-saturation",radius:c=0,pointer:s,className:o,hue:i=0,style:h,hsva:d,onChange:u}=e,p=$t(e,va),m=Gt({width:200,height:200,borderRadius:c},h,{position:"relative"}),y=(e,t)=>{u&&d&&u({h:d.h,s:100*e.left,v:100*(1-e.top),a:d.a})},v=t.useCallback(e=>{if(d&&u){var t=d.s,a=d.v,r=!1;switch(e.key){case"ArrowLeft":t=Math.max(0,d.s-1),r=!0,e.preventDefault();break;case"ArrowRight":t=Math.min(100,d.s+1),r=!0,e.preventDefault();break;case"ArrowUp":a=Math.min(100,d.v+1),r=!0,e.preventDefault();break;case"ArrowDown":a=Math.max(0,d.v-1),r=!0,e.preventDefault();break;default:return}r&&u({h:d.h,s:t,v:a,a:d.a})}},[d,u]),g=t.useMemo(()=>{if(!d)return null;var e={top:100-d.v+"%",left:d.s+"%",color:Qt(d)};return s&&"function"==typeof s?s(Gt({prefixCls:n},e)):a.jsx(ya,Gt({prefixCls:n},e))},[d,s,n]),k=t.useCallback(e=>{e.target.focus()},[]);return a.jsx(ma,Gt({className:[n,o||""].filter(Boolean).join(" ")},p,{style:Gt({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+(null!=(l=null==d?void 0:d.h)?l:i)+", 100%, 50%))"},m,{outline:"none"}),ref:r,onMove:y,onDown:y,onKeyDown:v,onClick:k,children:g}))});ga.displayName="Saturation";var ka=["className","prefixCls","left","top","style","fillProps"],ba=e=>{var{className:t,prefixCls:r,left:l,top:n,style:c,fillProps:s}=e,o=$t(e,ka),i=Gt({},c,{position:"absolute",left:l,top:n}),h=Gt({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},null==s?void 0:s.style,{transform:l?"translate(-9px, -1px)":"translate(-1px, -9px)"});return a.jsx("div",Gt({className:r+"-pointer "+(t||""),style:i},o,{children:a.jsx("div",Gt({className:r+"-fill"},s,{style:h}))}))},fa=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],xa=t.forwardRef((e,r)=>{var{prefixCls:l="w-color-alpha",className:n,hsva:c,background:s,bgProps:o={},innerProps:i={},pointerProps:h={},radius:d=0,width:u,height:p=16,direction:m="horizontal",style:y,onChange:v,pointer:g}=e,k=$t(e,fa),b=e=>{v&&v(Gt({},c,{a:"horizontal"===m?e.left:e.top}),e)},f=Qt(Object.assign({},c,{a:1})),x="linear-gradient(to "+("horizontal"===m?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+f+" 100%)",w={};"horizontal"===m?w.left=100*c.a+"%":w.top=100*c.a+"%";var N=Gt({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:d,background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==) left center",backgroundColor:"var(--alpha-background-color)"},{width:u,height:p},y,{position:"relative"}),R=t.useCallback(e=>{var t=.01,a=c.a,r=a;switch(e.key){case"ArrowLeft":"horizontal"===m&&(r=Math.max(0,a-t),e.preventDefault());break;case"ArrowRight":"horizontal"===m&&(r=Math.min(1,a+t),e.preventDefault());break;case"ArrowUp":"vertical"===m&&(r=Math.max(0,a-t),e.preventDefault());break;case"ArrowDown":"vertical"===m&&(r=Math.min(1,a+t),e.preventDefault());break;default:return}if(r!==a){var l={left:"horizontal"===m?r:c.a,top:"vertical"===m?r:c.a,width:0,height:0,x:0,y:0};v&&v(Gt({},c,{a:r}),l)}},[c,m,v]),E=t.useCallback(e=>{e.target.focus()},[]),M=g&&"function"==typeof g?g(Gt({prefixCls:l},h,w)):a.jsx(ba,Gt({},h,{prefixCls:l},w));return a.jsxs("div",Gt({},k,{className:[l,l+"-"+m,n||""].filter(Boolean).join(" "),style:N,ref:r,children:[a.jsx("div",Gt({},o,{style:Gt({inset:0,position:"absolute",background:s||x,borderRadius:d},o.style)})),a.jsx(ma,Gt({},i,{style:Gt({},i.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:b,onDown:b,onClick:E,onKeyDown:R,children:M}))]}))});xa.displayName="Alpha";var wa=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],Na=t.forwardRef((e,r)=>{var{prefixCls:l="w-color-editable-input",placement:n="bottom",label:c,value:s,className:o,style:i,labelStyle:h,inputStyle:d,onChange:u,onBlur:p,renderInput:m}=e,y=$t(e,wa),[v,g]=t.useState(s),k=t.useRef(!1);t.useEffect(()=>{e.value!==v&&(k.current||g(e.value))},[e.value]);var b={};"bottom"===n&&(b.flexDirection="column"),"top"===n&&(b.flexDirection="column-reverse"),"left"===n&&(b.flexDirection="row-reverse");var f=Gt({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},b,i),x=Gt({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},d),w=Gt({value:v,onChange:function(e,t){var a=(t||e.target.value).trim().replace(/^#/,"");/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(a)&&u&&u(e,a);var r=(e=>Number(String(e).replace(/%/g,"")))(a);isNaN(r)||u&&u(e,r),g(a)},onBlur:function(t){k.current=!1,g(e.value),p&&p(t)},autoComplete:"off",onFocus:()=>k.current=!0},y,{style:x,onFocusCapture:e=>{var t=e.target;t.setSelectionRange(t.value.length,t.value.length)}});return a.jsxs("div",{className:[l,o||""].filter(Boolean).join(" "),style:f,children:[m?m(w,r):a.jsx("input",Gt({ref:r},w)),c&&a.jsx("span",{style:Gt({color:"var(--editable-input-label-color)",textTransform:"capitalize"},h),children:c})]})});Na.displayName="EditableInput";var Ra=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],Ea=t.forwardRef((e,t)=>{var{prefixCls:r="w-color-editable-input-rgba",hsva:l,placement:n="bottom",rProps:c={},gProps:s={},bProps:o={},aProps:i={},className:h,style:d,onChange:u}=e,p=$t(e,Ra),m=l?ra(l):{};function y(e){var t=Number(e.target.value);t&&t>255&&(e.target.value="255"),t&&t<0&&(e.target.value="0")}var v=(e,t,a)=>{"number"==typeof e&&("a"===t&&(e<0&&(e=0),e>100&&(e=100),u&&u(ca(Zt(Gt({},m,{a:e/100}))))),e>255&&(e=255,a.target.value="255"),e<0&&(e=0,a.target.value="0"),"r"===t&&u&&u(ca(Zt(Gt({},m,{r:e})))),"g"===t&&u&&u(ca(Zt(Gt({},m,{g:e})))),"b"===t&&u&&u(ca(Zt(Gt({},m,{b:e})))))},g=m.a?Math.round(100*m.a)/100:0;return a.jsxs("div",Gt({ref:t,className:[r,h||""].filter(Boolean).join(" ")},p,{style:Gt({fontSize:11,display:"flex"},d),children:[a.jsx(Na,Gt({label:"R",value:m.r||0,onBlur:y,placement:n,onChange:(e,t)=>v(t,"r",e)},c,{style:Gt({},c.style)})),a.jsx(Na,Gt({label:"G",value:m.g||0,onBlur:y,placement:n,onChange:(e,t)=>v(t,"g",e)},s,{style:Gt({marginLeft:5},c.style)})),a.jsx(Na,Gt({label:"B",value:m.b||0,onBlur:y,placement:n,onChange:(e,t)=>v(t,"b",e)},o,{style:Gt({marginLeft:5},o.style)})),i&&a.jsx(Na,Gt({label:"A",value:parseInt(String(100*g),10),onBlur:e=>{var t=Number(e.target.value);t&&t>100&&(e.target.value="100"),t&&t<0&&(e.target.value="0")},placement:n,onChange:(e,t)=>v(t,"a",e)},i,{style:Gt({marginLeft:5},i.style)}))]}))});Ea.displayName="EditableInputRGBA";var Ma=["prefixCls","className","hue","onChange","direction"],Ca=t.forwardRef((e,t)=>{var{prefixCls:r="w-color-hue",className:l,hue:n=0,onChange:c,direction:s="horizontal"}=e,o=$t(e,Ma);return a.jsx(xa,Gt({ref:t,className:r+" "+(l||"")},o,{direction:s,background:"linear-gradient(to "+("horizontal"===s?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:n,s:100,v:100,a:n/360},onChange:(e,t)=>{c&&c({h:"horizontal"===s?360*t.left:360*t.top})}}))});Ca.displayName="Hue";var Sa=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],Aa=t.forwardRef((e,r)=>{var{prefixCls:l="w-color-swatch",className:n,color:c,colors:s=[],style:o,rectProps:i={},onChange:h,addonAfter:d,addonBefore:u,rectRender:p}=e,m=$t(e,Sa),y=Gt({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},i.style),v=(e,t)=>{h&&h(ta(e),ca(ta(e)),t)};return a.jsxs("div",Gt({ref:r},m,{className:[l,n||""].filter(Boolean).join(" "),style:Gt({display:"flex",flexWrap:"wrap",position:"relative"},o),children:[u&&t.isValidElement(u)&&u,s&&Array.isArray(s)&&s.map((e,r)=>{var l="",n="";"string"==typeof e&&(l=e,n=e),"object"==typeof e&&e.color&&(l=e.title||e.color,n=e.color);var s=c&&c.toLocaleLowerCase()===n.toLocaleLowerCase(),o=p&&p({title:l,color:n,checked:!!s,style:Gt({},y,{background:n}),onClick:e=>v(n,e)});if(o)return a.jsx(t.Fragment,{children:o},r);var h=i.children&&t.isValidElement(i.children)?t.cloneElement(i.children,{color:n,checked:s}):null;return a.jsx("div",Gt({tabIndex:0,title:l,onClick:e=>v(n,e)},i,{children:h,style:Gt({},y,{background:n})}),r)}),d&&t.isValidElement(d)&&d]}))});Aa.displayName="Swatch";var ja=["prefixCls","className","onChange","width","presetColors","color","editableDisable","disableAlpha","style"],za=["#D0021B","#F5A623","#f8e61b","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],La=e=>a.jsx("div",{style:{boxShadow:"rgb(0 0 0 / 60%) 0px 0px 2px",width:4,top:1,bottom:1,left:e.left,borderRadius:1,position:"absolute",backgroundColor:"#fff"}}),Va=t.forwardRef((e,r)=>{var{prefixCls:l="w-color-sketch",className:n,onChange:c,width:s=218,presetColors:o=za,color:i,editableDisable:h=!0,disableAlpha:d=!1,style:u}=e,p=$t(e,ja),[m,y]=t.useState({h:209,s:36,v:90,a:1});t.useEffect(()=>{"string"==typeof i&&sa(i)&&y(ta(i)),"object"==typeof i&&y(i)},[i]);var v=e=>{y(e),c&&c(ca(e))},g=Gt({"--sketch-background":"rgb(255, 255, 255)","--sketch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px","--sketch-swatch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset","--sketch-alpha-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset","--sketch-swatch-border-top":"1px solid rgb(238, 238, 238)",background:"var(--sketch-background)",borderRadius:4,boxShadow:"var(--sketch-box-shadow)",width:s},u),k={borderRadius:2,background:la(m),boxShadow:"var(--sketch-alpha-box-shadow)"};return a.jsxs("div",Gt({},p,{className:l+" "+(n||""),ref:r,style:g,children:[a.jsxs("div",{style:{padding:"10px 10px 8px"},children:[a.jsx(ga,{hsva:m,style:{width:"auto",height:150},onChange:e=>v(Gt({},m,e,{a:m.a}))}),a.jsxs("div",{style:{display:"flex",marginTop:4},children:[a.jsxs("div",{style:{flex:1},children:[a.jsx(Ca,{width:"auto",height:10,hue:m.h,pointer:La,innerProps:{style:{marginLeft:1,marginRight:5}},onChange:e=>v(Gt({},m,e))}),!d&&a.jsx(xa,{width:"auto",height:10,hsva:m,pointer:La,style:{marginTop:4},innerProps:{style:{marginLeft:1,marginRight:5}},onChange:e=>v(Gt({},m,{a:e.a}))})]}),!d&&a.jsx(xa,{width:24,height:24,hsva:m,radius:2,style:{marginLeft:4},bgProps:{style:{background:"transparent"}},innerProps:{style:k},pointer:()=>a.jsx(t.Fragment,{})})]})]}),h&&a.jsxs("div",{style:{display:"flex",margin:"0 10px 3px 10px"},children:[a.jsx(Na,{label:"Hex",value:na(m).replace(/^#/,"").toLocaleUpperCase(),onChange:(e,t)=>{var a;"string"==typeof(a=t)&&sa(a)&&/(3|6)/.test(String(a.length))&&v(ta(a))},style:{minWidth:58}}),a.jsx(Ea,{hsva:m,style:{marginLeft:6},aProps:!d&&{},onChange:e=>v(e.hsva)})]}),o&&o.length>0&&a.jsx(Aa,{style:{borderTop:"var(--sketch-swatch-border-top)",paddingTop:10,paddingLeft:10},colors:o,color:na(m),onChange:e=>v(e),rectProps:{style:{marginRight:10,marginBottom:10,borderRadius:3,boxShadow:"var(--sketch-swatch-box-shadow)"}}})]}))});Va.displayName="Sketch";var Ba="es-trigger-w-aUi",Ia="es-colorPreview-SUgiJ",Ha="es-colorValue-cYdRP",qa="es-popover-SfIUB",Pa="es-popoverHidden-GCAC8";const Ta=e=>{const{value:a,initialValue:r,onChange:n,disableAlpha:c=!1}=e,[s,o]=t.useState(!1),i=t.useRef(null);return t.useEffect(()=>{const e=e=>{i.current&&!i.current.contains(e.target)&&o(!1)};return s&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[s]),React.createElement("div",{ref:i,style:{position:"relative"}},React.createElement("button",{"aria-label":"Select color",className:Ba,onClick:()=>o(!s),type:"button"},React.createElement("div",{"aria-label":"Current color",className:Ia,style:{backgroundColor:a??r}}),React.createElement("span",{className:Ha},a??r)),React.createElement("div",{className:l(qa,!s&&Pa)},React.createElement(Va,{color:a,disableAlpha:c,onChange:e=>n(e.hexa),presetColors:[]})))};var Da="es-container-df9wM",Fa="es-trigger-fTNvQ",Ua="es-triggerIcon-1mdQ0",Oa="es-triggerIconPrimary-opifh",Wa="es-triggerIconMuted-CWgDl",Ya="es-triggerText-WeQRu",Xa="es-popover-z8oiW",Ga="es-popoverHidden-kLhMd",$a="es-tabsList-liSeY",Ka="es-tabTrigger-6j7K-",Ja="es-tabTriggerActive-g6hcl",Za="es-tabTriggerIcon-dRSAp",Qa="es-tabContent--H166",_a="es-tabContentActive-Fjdu5",er="es-section-eDYxd",tr="es-sectionLabel--LHE8",ar="es-input--OymK",rr="es-inputMono-pCJz3",lr="es-textarea-iurkc",nr="es-booleanButtons-0bM8P",cr="es-booleanButton-3fXcB",sr="es-booleanButtonActive-zGWrZ",or="es-datasourceList-VIRXb",ir="es-datasourceButton-giz6D",hr="es-datasourceButtonActive-m5WPP",dr="es-datasourceIcon-q9Omt",ur="es-emptyState-rI2si",pr="es-hint-zfWLZ",mr="es-preview-tUInw";const yr={type:"static",staticValue:""},vr=e=>{const{value:a,initialValue:r,onChange:n,dataType:c="any",showPreview:s=!0,dataSources:o=[]}=e,i=a??r??yr,[h,d]=t.useState(!1),[u,p]=t.useState(i.type),m=t.useRef(null);t.useEffect(()=>{const e=e=>{m.current&&!m.current.contains(e.target)&&d(!1)};return h&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[h]);const y=t.useCallback(e=>{n({...i,...e})},[i,n]),v=t.useCallback(e=>{p(e),y({type:e})},[y]),g=t.useCallback(e=>{y({staticValue:e})},[y]),k=t.useCallback(e=>{y({datasourceId:e,datasourcePath:""})},[y]),b=t.useCallback(e=>{y({datasourcePath:e})},[y]),f=t.useMemo(()=>{switch(c){case"number":return React.createElement("input",{className:ar,onChange:e=>g(Number(e.target.value)),placeholder:"输入数值",type:"number",value:i.staticValue??""});case"boolean":return React.createElement("div",{className:nr},React.createElement("button",{className:l(cr,!0===i.staticValue?sr:""),onClick:()=>g(!0),type:"button"},"True"),React.createElement("button",{className:l(cr,!1===i.staticValue?sr:""),onClick:()=>g(!1),type:"button"},"False"));case"array":case"object":return React.createElement("textarea",{className:lr,onChange:e=>{try{const t=JSON.parse(e.target.value);g(t)}catch{g(e.target.value)}},placeholder:"array"===c?'["item1", "item2"]':'{"key": "value"}',value:"string"==typeof i.staticValue?i.staticValue:JSON.stringify(i.staticValue,null,2)??""});default:return React.createElement("input",{className:ar,onChange:e=>g(e.target.value),placeholder:"输入值",type:"text",value:i.staticValue??""})}},[c,i.staticValue,g]),x=t.useMemo(()=>{if("datasource"===i.type&&i.datasourceId){const e=o.find(e=>e.id===i.datasourceId);return{icon:React.createElement(ce,{className:l(Ua,Oa)}),text:`${e?.name??i.datasourceId}${i.datasourcePath?`.${i.datasourcePath}`:""}`}}return{icon:React.createElement(G,{className:l(Ua,Wa)}),text:"静态数据"}},[i,o]);return React.createElement("div",{className:Da,ref:m},React.createElement("button",{"aria-label":"Data binding",className:Fa,onClick:()=>d(!h),type:"button"},x.icon,React.createElement("span",{className:Ya},x.text)),React.createElement("div",{className:l(Xa,!1===h?Ga:"")},React.createElement("div",{className:$a,role:"tablist"},React.createElement("button",{"aria-selected":"static"===u,className:l(Ka,"static"===u?Ja:""),onClick:()=>v("static"),role:"tab",type:"button"},React.createElement(G,{className:Za}),"静态数据"),React.createElement("button",{"aria-selected":"datasource"===u,className:l(Ka,"datasource"===u?Ja:""),onClick:()=>v("datasource"),role:"tab",type:"button"},React.createElement(F,{className:Za}),"数据源")),React.createElement("div",{className:l(Qa,"static"===u?_a:""),role:"tabpanel"},React.createElement("div",{className:er},React.createElement("span",{className:tr},"值 (",c,")"),f)),React.createElement("div",{className:l(Qa,"datasource"===u?_a:""),role:"tabpanel"},React.createElement("div",{className:er},React.createElement("span",{className:tr},"数据源"),o.length>0?React.createElement("div",{className:or},o.map(e=>React.createElement("button",{className:l(ir,i.datasourceId===e.id?hr:""),key:e.id,onClick:()=>k(e.id),type:"button"},React.createElement(F,{className:dr}),e.name))):React.createElement("div",{className:ur},"暂无可用数据源"),i.datasourceId?React.createElement(React.Fragment,null,React.createElement("span",{className:tr},"数据路径"),React.createElement("input",{className:l(ar,rr),onChange:e=>b(e.target.value),placeholder:"data.list[0].name",type:"text",value:i.datasourcePath??""}),React.createElement("span",{className:pr},"使用点号访问嵌套属性,如: data.items[0].value")):null,!0===s&&i.datasourceId?React.createElement(React.Fragment,null,React.createElement("span",{className:tr},"数据预览"),React.createElement("div",{className:mr},"绑定后可在预览模式查看数据")):null))))};var gr="es-container-4VZqD",kr="es-trigger-rmYLl",br="es-triggerIcon-ktlTS",fr="es-triggerText-B63By",xr="es-popover-d9HQQ",wr="es-popoverHidden-fDKLq",Nr="es-content-3MmL0",Rr="es-header-VoKF3",Er="es-headerTitle-vDZR8",Mr="es-headerCount-stTlN",Cr="es-mappingList-SLqhN",Sr="es-mappingItem-xtRLl",Ar="es-mappingHeader-LwKiY",jr="es-mappingTitle-IMhzw",zr="es-mappingRequired-tP6L-",Lr="es-mappingType-nyqrh",Vr="es-mappingRow-lFfhT",Br="es-select-R4pIl",Ir="es-input--LohJ",Hr="es-arrowIcon-QqWMM",qr="es-targetField-gSvGk",Pr="es-transformRow-O6MAG",Tr="es-transformIcon-beXzy",Dr="es-transformInput-SyN2q",Fr="es-clearButton-Pm-uP",Ur="es-helpText-IHqjo";const Or={mappings:[]},Wr=e=>{const{value:a,initialValue:r,onChange:n,targetFields:c,sourceFields:s=[]}=e,o=a??r??Or,[i,h]=t.useState(!1),d=t.useRef(null);t.useEffect(()=>{const e=e=>{d.current&&!d.current.contains(e.target)&&h(!1)};return i&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[i]);const u=t.useCallback(e=>o.mappings.find(t=>t.targetField===e),[o.mappings]),p=t.useCallback((e,t)=>{const a=o.mappings.findIndex(t=>t.targetField===e),r=[...o.mappings];a>=0?r[a]={...r[a],...t}:r.push({targetField:e,sourceField:t.sourceField??"",transform:t.transform}),n({mappings:r})},[o.mappings,n]),m=t.useCallback(e=>{const t=o.mappings.filter(t=>t.targetField!==e);n({mappings:t})},[o.mappings,n]),y=o.mappings.filter(e=>e.sourceField).length;return React.createElement("div",{className:gr,ref:d},React.createElement("button",{"aria-label":"Data mapping",className:kr,onClick:()=>h(!i),type:"button"},React.createElement(qe,{className:br}),React.createElement("span",{className:fr},"字段映射 (",y,"/",c.length,")")),React.createElement("div",{className:l(xr,!1===i?wr:"")},React.createElement("div",{className:Nr},React.createElement("div",{className:Rr},React.createElement("span",{className:Er},"字段映射配置"),React.createElement("span",{className:Mr},y,"/",c.length," 已映射")),React.createElement("div",{className:Cr},c.map(e=>{const t=u(e.name);return React.createElement("div",{className:Sr,key:e.name},React.createElement("div",{className:Ar},React.createElement("span",{className:jr},e.label,e.required?React.createElement("span",{className:zr},"*"):null),React.createElement("span",{className:Lr},e.type)),React.createElement("div",{className:Vr},s.length>0?React.createElement("select",{className:Br,onChange:t=>p(e.name,{sourceField:t.target.value}),value:t?.sourceField??""},React.createElement("option",{value:""},"选择字段"),s.map(e=>React.createElement("option",{key:e,value:e},e))):React.createElement("input",{className:Ir,onChange:t=>p(e.name,{sourceField:t.target.value}),placeholder:"源字段路径",type:"text",value:t?.sourceField??""}),React.createElement(f,{className:Hr}),React.createElement("div",{className:qr},e.name)),t?.sourceField?React.createElement("div",{className:Pr},React.createElement(T,{className:Tr}),React.createElement("input",{className:Dr,onChange:t=>p(e.name,{transform:t.target.value}),placeholder:"转换表达式 (可选)",type:"text",value:t?.transform??""})):null,t?.sourceField?React.createElement("button",{className:Fr,onClick:()=>m(e.name),type:"button"},"清除映射"):null)})),React.createElement("div",{className:Ur},React.createElement("p",null,"• 源字段: 数据源中的字段路径"),React.createElement("p",null,"• 转换表达式: 如 value * 100, value.toFixed(2)")))))};var Yr="es-container-pcCYY",Xr="es-trigger-IjziC",Gr="es-triggerIcon-t21hp",$r="es-triggerText-WQ-5H",Kr="es-popover-h2Vn-",Jr="es-popoverHidden-EiA3W",Zr="es-searchWrapper-jUGP6",Qr="es-searchIcon-Qu4Cl",_r="es-searchInput-YUlsM",el="es-section-mWvKy",tl="es-sectionTitle-4m6ZV",al="es-iconGrid-hvHqv",rl="es-iconButton-3y2jO",ll="es-iconButtonSelected-01Ozi",nl="es-iconButtonIcon-ur-nS",cl="es-emptyMessage-dWKQh";const sl={Activity:d,AlertCircle:V,AlertTriangle:rt,ArrowDown:k,ArrowLeft:b,ArrowRight:f,ArrowUp:x,BarChart:R,BarChart2:E,Bell:w,Calendar:N,Check:C,CheckCircle:B,ChevronDown:S,ChevronLeft:A,ChevronRight:j,ChevronUp:z,Circle:H,Clock:q,Cloud:P,Code:T,Copy:D,Database:F,Download:U,Edit:We,Eye:X,EyeOff:Y,File:K,FileText:$,Filter:Z,Folder:J,Globe:Q,Grid:_,Heart:te,Home:ae,Image:re,Info:le,Layers:ne,Layout:Me,Link:se,List:oe,Loader:ie,Lock:de,LogOut:ue,Mail:pe,Map:ye,MapPin:me,Menu:ge,MessageCircle:ke,Minus:be,Monitor:fe,Moon:xe,MoreHorizontal:W,MoreVertical:O,Move:we,Music:Ne,Package:Re,Pause:Ce,PieChart:M,Play:Se,Plus:Ae,Power:je,Printer:ze,RefreshCw:Le,Save:Ve,Search:Be,Send:Ie,Server:He,Settings:Pe,Share:Te,Shield:De,ShoppingCart:Fe,Sidebar:Ee,Sliders:Ue,Smartphone:Oe,Square:Ye,Star:Xe,Sun:Ge,Table:$e,Tag:Ke,Target:Je,Terminal:Ze,ThumbsUp:Qe,Trash:et,TrendingDown:tt,TrendingUp:at,Triangle:lt,Truck:nt,Tv:ct,Type:st,Unlock:he,Upload:it,User:ht,Users:dt,Video:ut,Wifi:pt,X:mt,XCircle:I,Zap:yt,ZoomIn:vt,ZoomOut:gt},ol=Object.keys(sl),il={name:"Circle"},hl=e=>{const{value:a,initialValue:r,onChange:n,recent:c=!0}=e,s=a??r??il,[o,i]=t.useState(!1),[h,d]=t.useState(""),[u,p]=t.useState([]),m=t.useRef(null);t.useEffect(()=>{const e=e=>{m.current&&!m.current.contains(e.target)&&i(!1)};return o&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[o]);const y=t.useCallback(e=>sl[e]||H,[]),v=t.useMemo(()=>{if(!h)return ol;const e=h.toLowerCase();return ol.filter(t=>t.toLowerCase().includes(e))},[h]),g=t.useCallback(e=>{n({name:e}),p(t=>[e,...t.filter(t=>t!==e)].slice(0,8)),i(!1)},[n]),k=y(s.name);return React.createElement("div",{className:Yr,ref:m},React.createElement("button",{"aria-label":"Select icon",className:Xr,onClick:()=>i(!o),type:"button"},React.createElement(k,{className:Gr}),React.createElement("span",{className:$r},s.name)),React.createElement("div",{className:l(Kr,!1===o?Jr:"")},React.createElement("div",{className:Zr},React.createElement(Be,{className:Qr}),React.createElement("input",{className:_r,onChange:e=>d(e.target.value),placeholder:"搜索图标...",type:"text",value:h})),!0===c&&u.length>0&&""===h?React.createElement("div",{className:el},React.createElement("div",{className:tl},"最近使用"),React.createElement("div",{className:al},u.map(e=>{const t=y(e);return React.createElement("button",{"aria-label":e,className:l(rl,s.name===e?ll:""),key:e,onClick:()=>g(e),title:e,type:"button"},React.createElement(t,{className:nl}))}))):null,React.createElement("div",{className:al},v.map(e=>{const t=y(e);return React.createElement("button",{"aria-label":e,className:l(rl,s.name===e?ll:""),key:e,onClick:()=>g(e),title:e,type:"button"},React.createElement(t,{className:nl}))})),0===v.length?React.createElement("div",{className:cl},"未找到匹配的图标"):null))};var dl="es-container-CUmyq",ul="es-textarea-hn1hD",pl="es-textareaError-O2GWs",ml="es-error-wjKcS";const yl=e=>{const{value:a,initialValue:r,placeholder:n,rows:c=6,onChange:s}=e,[o,i]=t.useState(""),[h,d]=t.useState(null);t.useEffect(()=>{const e=a??r;if(void 0!==e)try{i(JSON.stringify(e,null,2)),d(null)}catch{i(String(e))}else i("")},[a,r]);const u=t.useCallback(e=>{if(i(e),!e.trim())return d(null),void s(void 0);try{const t=JSON.parse(e);d(null),s(t)}catch(e){d(e.message)}},[s]),p=1.5*c*14;return React.createElement("div",{className:dl},React.createElement("textarea",{className:l(ul,h?pl:null),onChange:e=>u(e.target.value),placeholder:n||"输入 JSON 数据",spellCheck:!1,style:{minHeight:p},value:o}),h?React.createElement("div",{className:ml},h):null)};var vl="es-container-som8X",gl="es-id-VnRzV",kl="es-title-B-JkN";const bl=e=>{const{selected:t}=e;return React.createElement("div",{className:vl},React.createElement("p",{className:gl},t.id),React.createElement("p",{className:kl},t.componentMeta.title))};var fl="es-container-d6iPo",xl="es-input-hzqco",wl="es-inputWithSuffix-dzHIR",Nl="es-suffix--jLoo";const Rl=e=>{const{value:t,initialValue:a,placeholder:r,onChange:n,suffix:c}=e;return React.createElement("div",{className:fl},React.createElement("input",{className:l(xl,c?wl:""),onChange:e=>n(+e.target.value),placeholder:r||"",type:"number",value:t??a??""}),c?React.createElement("span",{"aria-label":`Unit: ${c}`,className:Nl},c):null)};var El="es-container-RzrEe",Ml="es-field-AaNu3",Cl="es-label-zWfmB",Sl="es-input-fv7wH",Al="es-customField-hV2yY",jl="es-customFieldInputs-efA5X",zl="es-keyInput-MXoPV",Ll="es-removeButton-s7K9l",Vl="es-removeIcon-Ostpz",Bl="es-addButton-Wgly5",Il="es-addIcon-61nc3";const Hl=e=>{const{value:a,initialValue:r,fields:l=[],allowCustomFields:n=!1,addFieldText:c="添加字段",onChange:s}=e,o=a??r??{},i=t.useCallback((e,t)=>{s({...o,[e]:t})},[o,s]),h=t.useCallback(()=>{const e=`field_${Date.now()}`;s({...o,[e]:""})},[o,s]),d=t.useCallback(e=>{const t={...o};delete t[e],s(t)},[o,s]),u=l.map(e=>e.key),p=Object.keys(o).filter(e=>!u.includes(e));return React.createElement("div",{className:El},l.map(e=>React.createElement("div",{className:Ml,key:e.key},React.createElement("span",{className:Cl},e.label),React.createElement("input",{className:Sl,onChange:t=>{const a="number"===e.type?+t.target.value:t.target.value;i(e.key,a)},placeholder:e.placeholder,type:"number"===e.type?"number":"text",value:o[e.key]??""}))),p.map(e=>React.createElement("div",{className:Al,key:e},React.createElement("div",{className:jl},React.createElement("input",{className:zl,onChange:t=>{const a=t.target.value;if(a&&a!==e){const t={...o};t[a]=t[e],delete t[e],s(t)}},placeholder:"字段名",type:"text",value:e}),React.createElement("input",{className:Sl,onChange:t=>i(e,t.target.value),placeholder:"值",type:"text",value:o[e]??""})),React.createElement("button",{className:Ll,onClick:()=>d(e),type:"button"},React.createElement(_e,{className:Vl})))),n?React.createElement("button",{className:Bl,onClick:h,type:"button"},React.createElement(Ae,{className:Il}),c):null)};var ql="es-container-YWSlG",Pl="es-inputWrapper-B2wKI",Tl="es-input--qUrU",Dl="es-suffix-2c3Cd";const Fl=e=>{const{value:t,onChange:a}=e,r=(e,r)=>{a({...t,[e]:r})};return React.createElement("div",{className:ql},React.createElement("div",{className:Pl},React.createElement("input",{className:Tl,onChange:e=>r("x",Number(e.target.value)),type:"number",value:Ol(t.x)}),React.createElement("span",{"aria-label":"Unit: X",className:Dl},"X")),React.createElement("div",{className:Pl},React.createElement("input",{className:Tl,onChange:e=>r("y",Number(e.target.value)),type:"number",value:Ol(t.y)}),React.createElement("span",{"aria-label":"Unit: Y",className:Dl},"Y")),React.createElement("div",{className:Pl},React.createElement("input",{className:Tl,onChange:e=>r("width",Number(e.target.value)),type:"number",value:Ol(t.width)}),React.createElement("span",{"aria-label":"Unit: W",className:Dl},"W")),React.createElement("div",{className:Pl},React.createElement("input",{className:Tl,onChange:e=>r("height",Number(e.target.value)),type:"number",value:Ol(t.height)}),React.createElement("span",{"aria-label":"Unit: H",className:Dl},"H")))},Ul=/(\.\d{2})\d+$/,Ol=e=>e.toString().replace(Ul,"$1");var Wl="es-container-lamwH",Yl="es-containerSm-mndNj",Xl="es-segment-JmKWl",Gl="es-segmentSelected-fumXM",$l="es-segmentDisabled-Md5LF";const Kl=e=>{const{value:t,initialValue:a,options:r=[],onChange:n,size:c="md"}=e,s=t??a??r[0]?.value??"";return React.createElement("div",{className:l(Wl,"sm"===c?Yl:"")},r.map(e=>React.createElement("button",{className:l(Xl,s===e.value?Gl:"",!0===e.disabled?$l:""),disabled:e.disabled,key:e.value,onClick:()=>!e.disabled&&n(e.value),type:"button"},e.label)))};var Jl="es-container-HI7-c",Zl="es-trigger-YRz9p",Ql="es-triggerValue-k-g2-",_l="es-placeholder-F8-XP",en="es-chevron-UbZv-",tn="es-chevronOpen-Yui-r",an="es-dropdown-l2sra",rn="es-dropdownHidden-S8Y4U",ln="es-option-cv-7C",nn="es-optionSelected-K4e5h",cn="es-optionDisabled-72jrC";const sn=e=>{const{value:a,initialValue:r,options:n=[],placeholder:c,onChange:s}=e,[o,i]=t.useState(!1),h=t.useRef(null),d=a??r??"",u=n.find(e=>e.value===d);t.useEffect(()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&i(!1)};return o&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[o]);return React.createElement("div",{className:Jl,ref:h},React.createElement("button",{"aria-expanded":o,"aria-haspopup":"listbox",className:Zl,onClick:()=>i(!o),type:"button"},React.createElement("span",{className:l(Ql,u?"":_l)},u?.label||c||"请选择"),React.createElement(S,{className:l(en,o?tn:"")})),React.createElement("div",{className:l(an,!1===o?rn:""),role:"listbox"},n.map(e=>React.createElement("button",{"aria-selected":e.value===d,className:l(ln,e.value===d?nn:"",!0===e.disabled?cn:""),key:e.value,onClick:()=>{return t=e.value,void(e.disabled||(s(t),i(!1)));var t},role:"option",type:"button"},e.label))))};var on="es-container-PG1Uy",hn="es-slider-pypb6",dn="es-track-X2NtH",un="es-range-AVV8x",pn="es-thumb-YMQR-",mn="es-value-JiWPV";const yn=e=>{const{value:a,initialValue:r,min:l=0,max:n=100,step:c=1,showValue:s=!0,suffix:o,onChange:i}=e,h=a??r??l,d=t.useRef(null),u=(h-l)/(n-l)*100,p=t.useCallback(e=>{if(!d.current)return;const t=d.current.getBoundingClientRect(),a=Math.max(0,Math.min(1,(e-t.left)/t.width)),r=l+a*(n-l),s=Math.round(r/c)*c,o=Math.max(l,Math.min(n,s));i(o)},[l,n,c,i]);return React.createElement("div",{className:on},React.createElement("div",{className:hn},React.createElement("div",{className:dn,onMouseDown:e=>{p(e.clientX);const t=e=>{p(e.clientX)},a=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",a)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",a)},ref:d,role:"presentation"},React.createElement("div",{className:un,style:{width:`${u}%`}}),React.createElement("div",{"aria-valuemax":n,"aria-valuemin":l,"aria-valuenow":h,className:pn,role:"slider",style:{left:`${u}%`},tabIndex:0}))),!0===s?React.createElement("span",{className:mn},h,o):null)};var vn="es-container-XqQza",gn="es-boxModel-8RFjI",kn="es-inputTop-bqsmI",bn="es-inputRight-TV3E-",fn="es-inputBottom-dP-wA",xn="es-inputLeft-sygc3",wn="es-spacingInput-KAWdK",Nn="es-linkButton-v1n0k",Rn="es-linkButtonActive-Vge1n",En="es-linkIcon-K0j9e",Mn="es-presets-CPVVc",Cn="es-presetButton-vUc7S",Sn="es-modeLabel-Vh1Cf";const An={top:0,right:0,bottom:0,left:0},jn=[0,4,8,12,16,24,32],zn=e=>{const{value:a,initialValue:r,onChange:n,mode:c="padding",linked:s=!1,min:o=0,max:i=100}=e,h=a??r??An,[d,u]=t.useState(s),p=t.useCallback(e=>{if(d){const t=Object.values(e)[0];n({top:t,right:t,bottom:t,left:t})}else n({...h,...e})},[h,d,n]),m=t.useCallback(e=>{n({top:e,right:e,bottom:e,left:e})},[n]),y=t.useCallback(()=>{u(e=>!e)},[]);return React.createElement("div",{className:vn},React.createElement("div",{className:gn},React.createElement("div",{className:kn},React.createElement("input",{className:wn,max:i,min:o,onChange:e=>p({top:Number(e.target.value)}),type:"number",value:h.top})),React.createElement("div",{className:bn},React.createElement("input",{className:wn,max:i,min:o,onChange:e=>p({right:Number(e.target.value)}),type:"number",value:h.right})),React.createElement("div",{className:fn},React.createElement("input",{className:wn,max:i,min:o,onChange:e=>p({bottom:Number(e.target.value)}),type:"number",value:h.bottom})),React.createElement("div",{className:xn},React.createElement("input",{className:wn,max:i,min:o,onChange:e=>p({left:Number(e.target.value)}),type:"number",value:h.left})),React.createElement("button",{"aria-label":d?"Unlink values":"Link values",className:l(Nn,d?Rn:""),onClick:y,type:"button"},d?React.createElement(se,{className:En}):React.createElement(ot,{className:En}))),React.createElement("div",{className:Mn},jn.map(e=>React.createElement("button",{className:Cn,key:e,onClick:()=>m(e),type:"button"},e))),React.createElement("div",{className:Sn},"padding"===c?"内边距":"外边距"," (px)"))};var Ln="es-container-weN0F",Vn="es-input-C8N67",Bn="es-inputWithSuffix-tdJcI",In="es-suffix-HGRiQ";const Hn=e=>{const{value:t,initialValue:a,placeholder:r,onChange:n,suffix:c}=e;return React.createElement("div",{className:Ln},React.createElement("input",{className:l(Vn,c?Bn:""),onChange:e=>n(e.target.value),placeholder:r||"",type:"text",value:t||a||""}),c?React.createElement("span",{"aria-label":`Unit: ${c}`,className:In},c):null)};var qn="es-switch-2DV6T",Pn="es-switchChecked-eI65V",Tn="es-switchThumb-GDlBx",Dn="es-switchThumbChecked-uA5kV",Fn="es-checkboxWrapper-l-KtW",Un="es-checkboxInput-4Z9KK",On="es-checkbox-G1P36",Wn="es-checkboxChecked-7XJoC",Yn="es-checkIcon-3KIBH",Xn="es-segmented-IaxAM",Gn="es-segmentedButton-mbZ5z",$n="es-segmentedButtonSelected-u4m2T";const Kn=e=>{const{value:t,initialValue:a,onChange:r,mode:n="switch",trueLabel:c="是",falseLabel:s="否"}=e,o=t??a??!1;return"segmented"===n?React.createElement("div",{className:Xn},React.createElement("button",{className:l(Gn,!1===o?$n:""),onClick:()=>r(!1),type:"button"},s),React.createElement("button",{className:l(Gn,!0===o?$n:""),onClick:()=>r(!0),type:"button"},c)):"checkbox"===n?React.createElement("label",{className:Fn},React.createElement("input",{checked:o,className:Un,onChange:e=>r(e.target.checked),type:"checkbox"}),React.createElement("span",{className:l(On,o?Wn:"")},o?React.createElement(C,{className:Yn}):null)):React.createElement("button",{"aria-checked":o,className:l(qn,o?Pn:""),onClick:()=>r(!o),role:"switch",type:"button"},React.createElement("span",{className:l(Tn,o?Dn:"")}))};var Jn="es-container-ftwPX",Zn="es-textarea-sJPy9",Qn="es-counter-02NEu";const _n=e=>{const{value:t,initialValue:a,placeholder:r,rows:l=3,maxLength:n,onChange:c}=e;return React.createElement("div",{className:Jn},React.createElement("textarea",{className:Zn,maxLength:n,onChange:e=>c(e.target.value),placeholder:r||"",rows:l,value:t??a??""}),n?React.createElement("div",{className:Qn},(t??a??"").length,"/",n):null)};var ec="es-container-EDh0-",tc="es-row-MOm-T",ac="es-label-1o-jT",rc="es-hiddenInput-03Dx-",lc="es-uploadArea-1HYbh",nc="es-uploadIcon-Ck7gF",cc="es-clearButton-N-9cs",sc="es-clearIcon-LHlF6",oc="es-fileInfo-71Jtf",ic="es-fileName-B2hHy",hc="es-fileSize-pINcz",dc="es-error-A8MID";const uc=e=>{const{value:a,onChange:r,accept:l=".jpg,.jpeg,.png,.gif",maxSize:n=10485760}=e,[c,s]=t.useState(""),o=t.useRef(null);return React.createElement("div",{className:ec},React.createElement("div",{className:tc},React.createElement("label",{className:ac},React.createElement("input",{accept:l,className:rc,onChange:async e=>{const t=e.target.files?.[0];if(s(""),!t)return void r(null);const a=`.${t.name.split(".").pop()?.toLowerCase()}`;if(!l.includes(a))return s(`仅支持 ${l} 格式文件`),void r(null);if(t.size>n)return s(`文件大小不能超过 ${n/1024/1024}MB`),void r(null);try{const[e,a]=await Promise.all([new Promise((e,a)=>{const r=new FileReader;r.onload=()=>e(r.result),r.onerror=e=>a(e),r.readAsDataURL(t)}),new Promise((e,a)=>{const r=new Image;r.onload=()=>e({width:r.naturalWidth,height:r.naturalHeight}),r.onerror=a,r.src=URL.createObjectURL(t)})]);r({raw:{name:t.name,size:t.size,type:t.type,width:a.width,height:a.height},base64:e})}catch(e){s("文件读取失败,请重试"),r(null)}},ref:o,type:"file"}),React.createElement("div",{className:lc},React.createElement(it,{className:nc}),React.createElement("span",null,a?"更换文件":"点击上传"))),a?React.createElement("button",{"aria-label":"清除文件",className:cc,onClick:()=>{r(null),o.current&&(o.current.value="")},type:"button"},React.createElement(mt,{className:sc})):null),a?React.createElement("div",{className:oc},React.createElement("span",{className:ic},a.raw?.name),React.createElement("span",{className:hc},(a.raw?.size/1024).toFixed(1),"KB")):null,c?React.createElement("p",{className:dc,role:"alert"},c):null)};var pc="es-container-gjha7",mc="es-header-iE--w",yc="es-title-qTdCp",vc="es-toggleButton-g6dI2",gc="es-toggleIcon-cjnM4",kc="es-content-GYYgk",bc="es-contentHidden-WAYSW",fc="es-srOnly-EI1Tc";const xc=e=>{const{field:a,children:r,initialValue:n,icon:c=!0}=e,[s,o]=t.useState(n??!0);return React.createElement("div",{className:pc},React.createElement("div",{className:mc},React.createElement("h4",{className:yc},a.title),c?React.createElement("button",{"aria-expanded":s,className:vc,onClick:()=>o(!s),type:"button"},React.createElement(L,{className:gc}),React.createElement("span",{className:fc},"Toggle")):null),React.createElement("div",{className:l(kc,!1===s?bc:"")},r))};var wc="es-container-4LWRO",Nc="es-tabsList-L72im",Rc="es-tabTrigger-u3S3S",Ec="es-tabTriggerActive-xCpU6",Mc="es-tabContent-Pj2Us",Cc="es-tabContentActive-NJtXh";const Sc=e=>{const{tabs:a,initialValue:r,children:n}=e,c=t.useMemo(()=>{if(a)return a;if(Array.isArray(n)&&n.length>0)return n.map(e=>({label:e.props.field.config.title,value:e.props.field.config.key}));throw new Error("TabSetter: children or tabs must be an array")},[a,n]),s=t.useMemo(()=>c[0]?.value,[c]),[o,i]=t.useState(r??s);return t.createElement("div",{className:wc},t.createElement("div",{className:Nc,role:"tablist",style:{gridTemplateColumns:`repeat(${c.length}, minmax(0, 1fr))`}},c.map(e=>t.createElement("button",{"aria-selected":o===e.value,className:l(Rc,o===e.value?Ec:""),key:e.value,onClick:()=>i(e.value),role:"tab",type:"button"},e.label))),Array.isArray(n)?n.map(e=>t.createElement("div",{className:l(Mc,o===e.props.field.config.key?Cc:""),key:e.props.field.config.key,role:"tabpanel"},e)):null)},Ac={ColorSetter:Ta,NodeIdSetter:bl,NumberSetter:Rl,RectSetter:Fl,StringSetter:Hn,SwitchSetter:Kn,UploadSetter:uc,SegmentedSetter:Kl,CollapseSetter:xc,TabSetter:Sc,SpacingSetter:zn,AlignSetter:qt,IconSetter:hl,DataBindingSetter:vr,DataMappingSetter:Wr,SelectSetter:sn,SliderSetter:yn,TextAreaSetter:_n,ArraySetter:Xt,JsonSetter:yl,ObjectSetter:Hl};e.AlignSetter=qt,e.ArraySetter=Xt,e.CollapseSetter=xc,e.ColorSetter=Ta,e.DataBindingSetter=vr,e.DataMappingSetter=Wr,e.IconSetter=hl,e.JsonSetter=yl,e.NodeIdSetter=bl,e.NumberSetter=Rl,e.ObjectSetter=Hl,e.RectSetter=Fl,e.SegmentedSetter=Kl,e.SelectSetter=sn,e.SliderSetter=yn,e.SpacingSetter=zn,e.StringSetter=Hn,e.SwitchSetter=Kn,e.TabSetter=Sc,e.TextAreaSetter=_n,e.UploadSetter=uc,e.default=Ac,e.setterMap=Ac,Object.defineProperty(e,"__esModule",{value:!0})});
26
+ */var xt="es-container-K2hFq",ft="es-visualWrapper-4dHVX",wt="es-previewBox-LDujZ",Rt="es-previewElement-Bu8GM",Nt="es-grid-BmRRU",Et="es-gridButton-6Vtr7",Mt="es-gridButtonSelected-fOpOm",Ct="es-section-SaHDo",St="es-sectionLabel-hDWO0",At="es-buttonGroup-Nj258",jt="es-alignButton-zAvz2",zt="es-alignButtonSelected-kGGHJ",Vt="es-alignIcon-mFjSX",Lt="es-alignIconRotated-z4AwW";const It={horizontal:"left",vertical:"top"},Bt=[{value:"left",icon:k,label:"左对齐"},{value:"center",icon:b,label:"水平居中"},{value:"right",icon:y,label:"右对齐"},{value:"stretch",icon:ke,label:"水平拉伸"}],qt=[{value:"top",icon:g,label:"顶部对齐"},{value:"center",icon:v,label:"垂直居中"},{value:"bottom",icon:m,label:"底部对齐"},{value:"stretch",icon:ke,label:"垂直拉伸"}],Pt=[{h:"left",v:"top"},{h:"center",v:"top"},{h:"right",v:"top"},{h:"left",v:"center"},{h:"center",v:"center"},{h:"right",v:"center"},{h:"left",v:"bottom"},{h:"center",v:"bottom"},{h:"right",v:"bottom"}],Ht=(e,t)=>{const a={position:"absolute"};return"left"===e?(a.left="4px",a.width="30%"):"center"===e?(a.left="50%",a.transform="translateX(-50%)",a.width="30%"):"right"===e?(a.right="4px",a.width="30%"):(a.left="4px",a.right="4px",a.width="auto"),"top"===t?(a.top="4px",a.height="30%"):"center"===t?(a.top="50%",a.transform="center"===e?"translate(-50%, -50%)":"translateY(-50%)",a.height="30%"):"bottom"===t?(a.bottom="4px",a.height="30%"):(a.top="4px",a.bottom="4px",a.height="auto"),a},Tt=e=>{const{value:a,initialValue:r,onChange:l,showHorizontal:n=!0,showVertical:s=!0}=e,o=a??r??It,i=t.useCallback(e=>{l({...o,...e})},[o,l]),h=t.useCallback((e,t)=>{l({horizontal:e,vertical:t})},[l]);return React.createElement("div",{className:xt},!0===n&&!0===s?React.createElement("div",{className:ft},React.createElement("div",{className:wt},React.createElement("div",{className:Rt,style:Ht(o.horizontal,o.vertical)})),React.createElement("div",{className:Nt},Pt.map(e=>{return React.createElement("button",{"aria-label":`Align ${e.h} ${e.v}`,className:c(Et,(t=e.h,a=e.v,o.horizontal===t&&o.vertical===a?Mt:"")),key:`${e.h}-${e.v}`,onClick:()=>h(e.h,e.v),type:"button"});var t,a}))):null,!0===n?React.createElement("div",{className:Ct},React.createElement("span",{className:St},"水平对齐"),React.createElement("div",{className:At},Bt.map(e=>{const t=e.icon,a="stretch"===e.value;return React.createElement("button",{"aria-label":e.label,className:c(jt,o.horizontal===e.value?zt:""),key:e.value,onClick:()=>i({horizontal:e.value}),title:e.label,type:"button"},React.createElement(t,{className:c(Vt,a?Lt:"")}))}))):null,!0===s?React.createElement("div",{className:Ct},React.createElement("span",{className:St},"垂直对齐"),React.createElement("div",{className:At},qt.map(e=>{const t=e.icon;return React.createElement("button",{"aria-label":e.label,className:c(jt,o.vertical===e.value?zt:""),key:e.value,onClick:()=>i({vertical:e.value}),title:e.label,type:"button"},React.createElement(t,{className:Vt}))}))):null)};var Dt="es-container-KSlB-",Ft="es-item-xDCpZ",Ut="es-dragHandle-lOaFv",Ot="es-input-ItzPT",Wt="es-removeButton-ymAlo",Xt="es-removeIcon-ld51f",Yt="es-addButton-U1VQX",Gt="es-addIcon-6qJub";const $t=e=>{const{value:a,initialValue:r,itemSetter:l="string",maxItems:n,minItems:c=0,placeholder:s,addButtonText:o="添加项",onChange:i}=e,h=a??r??[],d=t.useCallback(()=>{if(n&&h.length>=n)return;const e="number"===l?0:"";i([...h,e])},[h,n,l,i]),p=t.useCallback(e=>{if(h.length<=c)return;const t=h.filter((t,a)=>a!==e);i(t)},[h,c,i]),u=t.useCallback((e,t)=>{const a=[...h];a[e]=t,i(a)},[h,i]),m=!n||h.length<n,y=h.length>c;return React.createElement("div",{className:Dt},h.map((e,t)=>React.createElement("div",{className:Ft,key:`item-${String(e)}-${t}`},React.createElement(ae,{className:Ut}),React.createElement("input",{className:Ot,onChange:e=>{const a="number"===l?+e.target.value:e.target.value;u(t,a)},placeholder:s,type:"number"===l?"number":"text",value:e}),React.createElement("button",{className:Wt,disabled:!y,onClick:()=>p(t),type:"button"},React.createElement(tt,{className:Xt})))),React.createElement("button",{className:Yt,disabled:!m,onClick:d,type:"button"},React.createElement(ze,{className:Gt}),o))};function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},Kt.apply(null,arguments)}function Jt(e,t){if(null==e)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;a[r]=e[r]}return a}var Zt=255,Qt=100,_t=e=>{var{r:t,g:a,b:r,a:l}=e,n=Math.max(t,a,r),c=n-Math.min(t,a,r),s=c?n===t?(a-r)/c:n===a?2+(r-t)/c:4+(t-a)/c:0;return{h:60*(s<0?s+6:s),s:n?c/n*Qt:0,v:n/Zt*Qt,a:l}},ea=e=>{var{h:t,s:a,l:r,a:l}=ta(e);return"hsla("+t+", "+a+"%, "+r+"%, "+l+")"},ta=e=>{var{h:t,s:a,v:r,a:l}=e,n=(200-a)*r/Qt;return{h:t,s:n>0&&n<200?a*r/Qt/(n<=Qt?n:200-n)*Qt:0,l:n/2,a:l}},aa=e=>{var t,{r:a,g:r,b:l}=e;return"#"+(t=(a<<16|r<<8|l).toString(16),new Array(7-t.length).join("0")+t)},ra=e=>_t(la(e)),la=e=>{var t=e.replace("#","");/^#?/.test(e)&&3===t.length&&(e="#"+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var a=new RegExp("[A-Za-z0-9]{2}","g"),[r,l,n=0,c]=e.match(a).map(e=>parseInt(e,16));return{r:r,g:l,b:n,a:(null!=c?c:255)/Zt}},na=e=>{var{h:t,s:a,v:r,a:l}=e,n=t/60,c=a/Qt,s=r/Qt,o=Math.floor(n)%6,i=n-Math.floor(n),h=Zt*s*(1-c),d=Zt*s*(1-c*i),p=Zt*s*(1-c*(1-i));s*=Zt;var u={};switch(o){case 0:u.r=s,u.g=p,u.b=h;break;case 1:u.r=d,u.g=s,u.b=h;break;case 2:u.r=h,u.g=s,u.b=p;break;case 3:u.r=h,u.g=d,u.b=s;break;case 4:u.r=p,u.g=h,u.b=s;break;case 5:u.r=s,u.g=h,u.b=d}return u.r=Math.round(u.r),u.g=Math.round(u.g),u.b=Math.round(u.b),Kt({},u,{a:l})},ca=e=>{var{r:t,g:a,b:r,a:l}=na(e);return"rgba("+t+", "+a+", "+r+", "+l+")"},sa=e=>aa(na(e)),oa=e=>{var t,a,r,l,n,c,s,o,i;return"string"==typeof e&&ia(e)?(c=ra(e),o=e):"string"!=typeof e&&(c=e),c&&(r=(e=>{var{h:t,s:a,v:r}=e;return{h:t,s:a,v:r}})(c),n=ta(c),i=(e=>{var{r:t,g:a,b:r,a:l}=e,n="number"==typeof l&&(255*l|256).toString(16).slice(1);return""+aa({r:t,g:a,b:r})+(n||"")})(l=na(c)),o=sa(c),a=(e=>{var{h:t,s:a,l:r}=e;return{h:t,s:a,l:r}})(n),t=(e=>{var{r:t,g:a,b:r}=e;return{r:t,g:a,b:r}})(l),s=(e=>{var{r:t,g:a,b:r}=e,l=function(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},n=l(t/255),c=l(a/255),s=l(r/255),o={};return o.x=.4124*n+.3576*c+.1805*s,o.y=.2126*n+.7152*c+.0722*s,o.bri=.0193*n+.1192*c+.9505*s,o})(t)),{rgb:t,hsl:a,hsv:r,rgba:l,hsla:n,hsva:c,hex:o,hexa:i,xy:s}},ia=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function ha(e){var a=t.useRef(e);return t.useEffect(()=>{a.current=e}),t.useCallback((e,t)=>a.current&&a.current(e,t),[])}var da=e=>"touches"in e,pa=e=>{!da(e)&&e.preventDefault&&e.preventDefault()},ua=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e<t?t:e},ma=(e,t)=>{var a=e.getBoundingClientRect(),r=da(t)?t.touches[0]:t;return{left:ua((r.pageX-(a.left+window.pageXOffset))/a.width),top:ua((r.pageY-(a.top+window.pageYOffset))/a.height),width:a.width,height:a.height,x:r.pageX-(a.left+window.pageXOffset),y:r.pageY-(a.top+window.pageYOffset)}},ya=["prefixCls","className","onMove","onDown"],va=t.forwardRef((e,a)=>{var{prefixCls:l="w-color-interactive",className:n,onMove:c,onDown:s}=e,o=Jt(e,ya),i=t.useRef(null),h=t.useRef(!1),[d,p]=t.useState(!1),u=ha(c),m=ha(s),y=t.useCallback(e=>{(pa(e),i.current)&&((da(e)?e.touches.length>0:e.buttons>0)?null==u||u(ma(i.current,e),e):p(!1))},[u]),v=t.useCallback(()=>p(!1),[]),g=t.useCallback(e=>{e?(window.addEventListener(h.current?"touchmove":"mousemove",y),window.addEventListener(h.current?"touchend":"mouseup",v)):(window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",v),window.removeEventListener("touchmove",y),window.removeEventListener("touchend",v))},[y,v]);t.useEffect(()=>(g(d),()=>{g(!1)}),[d,y,v,g]);var k=t.useCallback(e=>{var t=document.activeElement;null==t||t.blur(),pa(e.nativeEvent),(e=>!(h.current&&!da(e)||(h.current=da(e),0)))(e.nativeEvent)&&i.current&&(null==m||m(ma(i.current,e.nativeEvent),e.nativeEvent),p(!0))},[m]);return r.jsx("div",Kt({},o,{className:[l,n||""].filter(Boolean).join(" "),style:Kt({},o.style,{touchAction:"none"}),ref:i,tabIndex:0,onMouseDown:k,onTouchStart:k}))});va.displayName="Interactive";var ga=e=>{var{className:a,color:l,left:n,top:c,prefixCls:s}=e,o={position:"absolute",top:c,left:n},i={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:l};return t.useMemo(()=>r.jsx("div",{className:s+"-pointer "+(a||""),style:o,children:r.jsx("div",{className:s+"-fill",style:i})}),[c,n,l,a,s])},ka=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],ba=t.forwardRef((e,a)=>{var l,{prefixCls:n="w-color-saturation",radius:c=0,pointer:s,className:o,hue:i=0,style:h,hsva:d,onChange:p}=e,u=Jt(e,ka),m=Kt({width:200,height:200,borderRadius:c},h,{position:"relative"}),y=(e,t)=>{p&&d&&p({h:d.h,s:100*e.left,v:100*(1-e.top),a:d.a})},v=t.useCallback(e=>{if(d&&p){var t=d.s,a=d.v,r=!1;switch(e.key){case"ArrowLeft":t=Math.max(0,d.s-1),r=!0,e.preventDefault();break;case"ArrowRight":t=Math.min(100,d.s+1),r=!0,e.preventDefault();break;case"ArrowUp":a=Math.min(100,d.v+1),r=!0,e.preventDefault();break;case"ArrowDown":a=Math.max(0,d.v-1),r=!0,e.preventDefault();break;default:return}r&&p({h:d.h,s:t,v:a,a:d.a})}},[d,p]),g=t.useMemo(()=>{if(!d)return null;var e={top:100-d.v+"%",left:d.s+"%",color:ea(d)};return s&&"function"==typeof s?s(Kt({prefixCls:n},e)):r.jsx(ga,Kt({prefixCls:n},e))},[d,s,n]),k=t.useCallback(e=>{e.target.focus()},[]);return r.jsx(va,Kt({className:[n,o||""].filter(Boolean).join(" ")},u,{style:Kt({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+(null!=(l=null==d?void 0:d.h)?l:i)+", 100%, 50%))"},m,{outline:"none"}),ref:a,onMove:y,onDown:y,onKeyDown:v,onClick:k,children:g}))});ba.displayName="Saturation";var xa=["className","prefixCls","left","top","style","fillProps"],fa=e=>{var{className:t,prefixCls:a,left:l,top:n,style:c,fillProps:s}=e,o=Jt(e,xa),i=Kt({},c,{position:"absolute",left:l,top:n}),h=Kt({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},null==s?void 0:s.style,{transform:l?"translate(-9px, -1px)":"translate(-1px, -9px)"});return r.jsx("div",Kt({className:a+"-pointer "+(t||""),style:i},o,{children:r.jsx("div",Kt({className:a+"-fill"},s,{style:h}))}))},wa=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],Ra=t.forwardRef((e,a)=>{var{prefixCls:l="w-color-alpha",className:n,hsva:c,background:s,bgProps:o={},innerProps:i={},pointerProps:h={},radius:d=0,width:p,height:u=16,direction:m="horizontal",style:y,onChange:v,pointer:g}=e,k=Jt(e,wa),b=e=>{v&&v(Kt({},c,{a:"horizontal"===m?e.left:e.top}),e)},x=ea(Object.assign({},c,{a:1})),f="linear-gradient(to "+("horizontal"===m?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+x+" 100%)",w={};"horizontal"===m?w.left=100*c.a+"%":w.top=100*c.a+"%";var R=Kt({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:d,background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==) left center",backgroundColor:"var(--alpha-background-color)"},{width:p,height:u},y,{position:"relative"}),N=t.useCallback(e=>{var t=.01,a=c.a,r=a;switch(e.key){case"ArrowLeft":"horizontal"===m&&(r=Math.max(0,a-t),e.preventDefault());break;case"ArrowRight":"horizontal"===m&&(r=Math.min(1,a+t),e.preventDefault());break;case"ArrowUp":"vertical"===m&&(r=Math.max(0,a-t),e.preventDefault());break;case"ArrowDown":"vertical"===m&&(r=Math.min(1,a+t),e.preventDefault());break;default:return}if(r!==a){var l={left:"horizontal"===m?r:c.a,top:"vertical"===m?r:c.a,width:0,height:0,x:0,y:0};v&&v(Kt({},c,{a:r}),l)}},[c,m,v]),E=t.useCallback(e=>{e.target.focus()},[]),M=g&&"function"==typeof g?g(Kt({prefixCls:l},h,w)):r.jsx(fa,Kt({},h,{prefixCls:l},w));return r.jsxs("div",Kt({},k,{className:[l,l+"-"+m,n||""].filter(Boolean).join(" "),style:R,ref:a,children:[r.jsx("div",Kt({},o,{style:Kt({inset:0,position:"absolute",background:s||f,borderRadius:d},o.style)})),r.jsx(va,Kt({},i,{style:Kt({},i.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:b,onDown:b,onClick:E,onKeyDown:N,children:M}))]}))});Ra.displayName="Alpha";var Na=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],Ea=t.forwardRef((e,a)=>{var{prefixCls:l="w-color-editable-input",placement:n="bottom",label:c,value:s,className:o,style:i,labelStyle:h,inputStyle:d,onChange:p,onBlur:u,renderInput:m}=e,y=Jt(e,Na),[v,g]=t.useState(s),k=t.useRef(!1);t.useEffect(()=>{e.value!==v&&(k.current||g(e.value))},[e.value]);var b={};"bottom"===n&&(b.flexDirection="column"),"top"===n&&(b.flexDirection="column-reverse"),"left"===n&&(b.flexDirection="row-reverse");var x=Kt({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},b,i),f=Kt({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},d),w=Kt({value:v,onChange:function(e,t){var a=(t||e.target.value).trim().replace(/^#/,"");/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(a)&&p&&p(e,a);var r=(e=>Number(String(e).replace(/%/g,"")))(a);isNaN(r)||p&&p(e,r),g(a)},onBlur:function(t){k.current=!1,g(e.value),u&&u(t)},autoComplete:"off",onFocus:()=>k.current=!0},y,{style:f,onFocusCapture:e=>{var t=e.target;t.setSelectionRange(t.value.length,t.value.length)}});return r.jsxs("div",{className:[l,o||""].filter(Boolean).join(" "),style:x,children:[m?m(w,a):r.jsx("input",Kt({ref:a},w)),c&&r.jsx("span",{style:Kt({color:"var(--editable-input-label-color)",textTransform:"capitalize"},h),children:c})]})});Ea.displayName="EditableInput";var Ma=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],Ca=t.forwardRef((e,t)=>{var{prefixCls:a="w-color-editable-input-rgba",hsva:l,placement:n="bottom",rProps:c={},gProps:s={},bProps:o={},aProps:i={},className:h,style:d,onChange:p}=e,u=Jt(e,Ma),m=l?na(l):{};function y(e){var t=Number(e.target.value);t&&t>255&&(e.target.value="255"),t&&t<0&&(e.target.value="0")}var v=(e,t,a)=>{"number"==typeof e&&("a"===t&&(e<0&&(e=0),e>100&&(e=100),p&&p(oa(_t(Kt({},m,{a:e/100}))))),e>255&&(e=255,a.target.value="255"),e<0&&(e=0,a.target.value="0"),"r"===t&&p&&p(oa(_t(Kt({},m,{r:e})))),"g"===t&&p&&p(oa(_t(Kt({},m,{g:e})))),"b"===t&&p&&p(oa(_t(Kt({},m,{b:e})))))},g=m.a?Math.round(100*m.a)/100:0;return r.jsxs("div",Kt({ref:t,className:[a,h||""].filter(Boolean).join(" ")},u,{style:Kt({fontSize:11,display:"flex"},d),children:[r.jsx(Ea,Kt({label:"R",value:m.r||0,onBlur:y,placement:n,onChange:(e,t)=>v(t,"r",e)},c,{style:Kt({},c.style)})),r.jsx(Ea,Kt({label:"G",value:m.g||0,onBlur:y,placement:n,onChange:(e,t)=>v(t,"g",e)},s,{style:Kt({marginLeft:5},c.style)})),r.jsx(Ea,Kt({label:"B",value:m.b||0,onBlur:y,placement:n,onChange:(e,t)=>v(t,"b",e)},o,{style:Kt({marginLeft:5},o.style)})),i&&r.jsx(Ea,Kt({label:"A",value:parseInt(String(100*g),10),onBlur:e=>{var t=Number(e.target.value);t&&t>100&&(e.target.value="100"),t&&t<0&&(e.target.value="0")},placement:n,onChange:(e,t)=>v(t,"a",e)},i,{style:Kt({marginLeft:5},i.style)}))]}))});Ca.displayName="EditableInputRGBA";var Sa=["prefixCls","className","hue","onChange","direction"],Aa=t.forwardRef((e,t)=>{var{prefixCls:a="w-color-hue",className:l,hue:n=0,onChange:c,direction:s="horizontal"}=e,o=Jt(e,Sa);return r.jsx(Ra,Kt({ref:t,className:a+" "+(l||"")},o,{direction:s,background:"linear-gradient(to "+("horizontal"===s?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:n,s:100,v:100,a:n/360},onChange:(e,t)=>{c&&c({h:"horizontal"===s?360*t.left:360*t.top})}}))});Aa.displayName="Hue";var ja=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],za=t.forwardRef((e,a)=>{var{prefixCls:l="w-color-swatch",className:n,color:c,colors:s=[],style:o,rectProps:i={},onChange:h,addonAfter:d,addonBefore:p,rectRender:u}=e,m=Jt(e,ja),y=Kt({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},i.style),v=(e,t)=>{h&&h(ra(e),oa(ra(e)),t)};return r.jsxs("div",Kt({ref:a},m,{className:[l,n||""].filter(Boolean).join(" "),style:Kt({display:"flex",flexWrap:"wrap",position:"relative"},o),children:[p&&t.isValidElement(p)&&p,s&&Array.isArray(s)&&s.map((e,a)=>{var l="",n="";"string"==typeof e&&(l=e,n=e),"object"==typeof e&&e.color&&(l=e.title||e.color,n=e.color);var s=c&&c.toLocaleLowerCase()===n.toLocaleLowerCase(),o=u&&u({title:l,color:n,checked:!!s,style:Kt({},y,{background:n}),onClick:e=>v(n,e)});if(o)return r.jsx(t.Fragment,{children:o},a);var h=i.children&&t.isValidElement(i.children)?t.cloneElement(i.children,{color:n,checked:s}):null;return r.jsx("div",Kt({tabIndex:0,title:l,onClick:e=>v(n,e)},i,{children:h,style:Kt({},y,{background:n})}),a)}),d&&t.isValidElement(d)&&d]}))});za.displayName="Swatch";var Va=["prefixCls","className","onChange","width","presetColors","color","editableDisable","disableAlpha","style"],La=["#D0021B","#F5A623","#f8e61b","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],Ia=e=>r.jsx("div",{style:{boxShadow:"rgb(0 0 0 / 60%) 0px 0px 2px",width:4,top:1,bottom:1,left:e.left,borderRadius:1,position:"absolute",backgroundColor:"#fff"}}),Ba=t.forwardRef((e,a)=>{var{prefixCls:l="w-color-sketch",className:n,onChange:c,width:s=218,presetColors:o=La,color:i,editableDisable:h=!0,disableAlpha:d=!1,style:p}=e,u=Jt(e,Va),[m,y]=t.useState({h:209,s:36,v:90,a:1});t.useEffect(()=>{"string"==typeof i&&ia(i)&&y(ra(i)),"object"==typeof i&&y(i)},[i]);var v=e=>{y(e),c&&c(oa(e))},g=Kt({"--sketch-background":"rgb(255, 255, 255)","--sketch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px","--sketch-swatch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset","--sketch-alpha-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset","--sketch-swatch-border-top":"1px solid rgb(238, 238, 238)",background:"var(--sketch-background)",borderRadius:4,boxShadow:"var(--sketch-box-shadow)",width:s},p),k={borderRadius:2,background:ca(m),boxShadow:"var(--sketch-alpha-box-shadow)"};return r.jsxs("div",Kt({},u,{className:l+" "+(n||""),ref:a,style:g,children:[r.jsxs("div",{style:{padding:"10px 10px 8px"},children:[r.jsx(ba,{hsva:m,style:{width:"auto",height:150},onChange:e=>v(Kt({},m,e,{a:m.a}))}),r.jsxs("div",{style:{display:"flex",marginTop:4},children:[r.jsxs("div",{style:{flex:1},children:[r.jsx(Aa,{width:"auto",height:10,hue:m.h,pointer:Ia,innerProps:{style:{marginLeft:1,marginRight:5}},onChange:e=>v(Kt({},m,e))}),!d&&r.jsx(Ra,{width:"auto",height:10,hsva:m,pointer:Ia,style:{marginTop:4},innerProps:{style:{marginLeft:1,marginRight:5}},onChange:e=>v(Kt({},m,{a:e.a}))})]}),!d&&r.jsx(Ra,{width:24,height:24,hsva:m,radius:2,style:{marginLeft:4},bgProps:{style:{background:"transparent"}},innerProps:{style:k},pointer:()=>r.jsx(t.Fragment,{})})]})]}),h&&r.jsxs("div",{style:{display:"flex",margin:"0 10px 3px 10px"},children:[r.jsx(Ea,{label:"Hex",value:sa(m).replace(/^#/,"").toLocaleUpperCase(),onChange:(e,t)=>{var a;"string"==typeof(a=t)&&ia(a)&&/(3|6)/.test(String(a.length))&&v(ra(a))},style:{minWidth:58}}),r.jsx(Ca,{hsva:m,style:{marginLeft:6},aProps:!d&&{},onChange:e=>v(e.hsva)})]}),o&&o.length>0&&r.jsx(za,{style:{borderTop:"var(--sketch-swatch-border-top)",paddingTop:10,paddingLeft:10},colors:o,color:sa(m),onChange:e=>v(e),rectProps:{style:{marginRight:10,marginBottom:10,borderRadius:3,boxShadow:"var(--sketch-swatch-box-shadow)"}}})]}))});Ba.displayName="Sketch";var qa="es-trigger-w-aUi",Pa="es-colorPreview-SUgiJ",Ha="es-colorValue-cYdRP",Ta="es-popover-SfIUB";const Da=e=>{const{value:a,initialValue:r,onChange:n,disableAlpha:c=!1}=e,[s,o]=t.useState(!1);return React.createElement(l,{onClose:()=>o(!1),open:s,trigger:React.createElement("button",{"aria-label":"Select color",className:qa,onClick:()=>o(!0),type:"button"},React.createElement("div",{"aria-label":"Current color",className:Pa,style:{backgroundColor:a??r}}),React.createElement("span",{className:Ha},a??r))},React.createElement("div",{className:Ta},React.createElement(Ba,{color:a,disableAlpha:c,onChange:e=>n(e.hexa),presetColors:[]})))};var Fa="es-trigger-fTNvQ",Ua="es-triggerIcon-1mdQ0",Oa="es-triggerIconPrimary-opifh",Wa="es-triggerIconMuted-CWgDl",Xa="es-triggerText-WeQRu",Ya="es-popoverContent-6qE--",Ga="es-tabsList-liSeY",$a="es-tabTrigger-6j7K-",Ka="es-tabTriggerActive-g6hcl",Ja="es-tabTriggerIcon-dRSAp",Za="es-tabContent--H166",Qa="es-tabContentActive-Fjdu5",_a="es-section-eDYxd",er="es-sectionLabel--LHE8",tr="es-input--OymK",ar="es-inputMono-pCJz3",rr="es-textarea-iurkc",lr="es-booleanButtons-0bM8P",nr="es-booleanButton-3fXcB",cr="es-booleanButtonActive-zGWrZ",sr="es-datasourceList-VIRXb",or="es-datasourceButton-giz6D",ir="es-datasourceButtonActive-m5WPP",hr="es-datasourceIcon-q9Omt",dr="es-emptyState-rI2si",pr="es-hint-zfWLZ",ur="es-preview-tUInw";const mr={type:"static",staticValue:""},yr=e=>{const{value:a,initialValue:r,onChange:n,dataType:s="any",showPreview:o=!0,dataSources:i=[]}=e,h=a??r??mr,[d,p]=t.useState(!1),[u,m]=t.useState(h.type),y=t.useCallback(e=>{n({...h,...e})},[h,n]),v=t.useCallback(e=>{m(e),y({type:e})},[y]),g=t.useCallback(e=>{y({staticValue:e})},[y]),k=t.useCallback(e=>{y({datasourceId:e,datasourcePath:""})},[y]),b=t.useCallback(e=>{y({datasourcePath:e})},[y]),x=t.useMemo(()=>{switch(s){case"number":return React.createElement("input",{className:tr,onChange:e=>g(Number(e.target.value)),placeholder:"输入数值",type:"number",value:h.staticValue??""});case"boolean":return React.createElement("div",{className:lr},React.createElement("button",{className:c(nr,!0===h.staticValue?cr:""),onClick:()=>g(!0),type:"button"},"True"),React.createElement("button",{className:c(nr,!1===h.staticValue?cr:""),onClick:()=>g(!1),type:"button"},"False"));case"array":case"object":return React.createElement("textarea",{className:rr,onChange:e=>{try{const t=JSON.parse(e.target.value);g(t)}catch{g(e.target.value)}},placeholder:"array"===s?'["item1", "item2"]':'{"key": "value"}',value:"string"==typeof h.staticValue?h.staticValue:JSON.stringify(h.staticValue,null,2)??""});default:return React.createElement("input",{className:tr,onChange:e=>g(e.target.value),placeholder:"输入值",type:"text",value:h.staticValue??""})}},[s,h.staticValue,g]),f=t.useMemo(()=>{if("datasource"===h.type&&h.datasourceId){const e=i.find(e=>e.id===h.datasourceId);return{icon:React.createElement(oe,{className:c(Ua,Oa)}),text:`${e?.name??h.datasourceId}${h.datasourcePath?`.${h.datasourcePath}`:""}`}}return{icon:React.createElement(K,{className:c(Ua,Wa)}),text:"静态数据"}},[h,i]);return React.createElement(l,{onClose:()=>p(!1),open:d,trigger:React.createElement("button",{"aria-label":"Data binding",className:Fa,onClick:()=>p(!0),type:"button"},f.icon,React.createElement("span",{className:Xa},f.text)),width:300},React.createElement("div",{className:Ya},React.createElement("div",{className:Ga,role:"tablist"},React.createElement("button",{"aria-selected":"static"===u,className:c($a,"static"===u?Ka:""),onClick:()=>v("static"),role:"tab",type:"button"},React.createElement(K,{className:Ja}),"静态数据"),React.createElement("button",{"aria-selected":"datasource"===u,className:c($a,"datasource"===u?Ka:""),onClick:()=>v("datasource"),role:"tab",type:"button"},React.createElement(O,{className:Ja}),"数据源")),React.createElement("div",{className:c(Za,"static"===u?Qa:""),role:"tabpanel"},React.createElement("div",{className:_a},React.createElement("span",{className:er},"值 (",s,")"),x)),React.createElement("div",{className:c(Za,"datasource"===u?Qa:""),role:"tabpanel"},React.createElement("div",{className:_a},React.createElement("span",{className:er},"数据源"),i.length>0?React.createElement("div",{className:sr},i.map(e=>React.createElement("button",{className:c(or,h.datasourceId===e.id?ir:""),key:e.id,onClick:()=>k(e.id),type:"button"},React.createElement(O,{className:hr}),e.name))):React.createElement("div",{className:dr},"暂无可用数据源"),h.datasourceId?React.createElement(React.Fragment,null,React.createElement("span",{className:er},"数据路径"),React.createElement("input",{className:c(tr,ar),onChange:e=>b(e.target.value),placeholder:"data.list[0].name",type:"text",value:h.datasourcePath??""}),React.createElement("span",{className:pr},"使用点号访问嵌套属性,如: data.items[0].value")):null,!0===o&&h.datasourceId?React.createElement(React.Fragment,null,React.createElement("span",{className:er},"数据预览"),React.createElement("div",{className:ur},"绑定后可在预览模式查看数据")):null))))};var vr="es-trigger-rmYLl",gr="es-triggerIcon-ktlTS",kr="es-triggerText-B63By",br="es-popoverContent-IIcFY",xr="es-header-VoKF3",fr="es-headerTitle-vDZR8",wr="es-headerCount-stTlN",Rr="es-mappingList-SLqhN",Nr="es-mappingItem-xtRLl",Er="es-mappingHeader-LwKiY",Mr="es-mappingTitle-IMhzw",Cr="es-mappingRequired-tP6L-",Sr="es-mappingType-nyqrh",Ar="es-mappingRow-lFfhT",jr="es-select-R4pIl",zr="es-input--LohJ",Vr="es-arrowIcon-QqWMM",Lr="es-targetField-gSvGk",Ir="es-transformRow-O6MAG",Br="es-transformIcon-beXzy",qr="es-transformInput-SyN2q",Pr="es-clearButton-Pm-uP",Hr="es-helpText-IHqjo";const Tr={mappings:[]},Dr=e=>{const{value:a,initialValue:r,onChange:n,targetFields:c,sourceFields:s=[]}=e,o=a??r??Tr,[i,h]=t.useState(!1),d=t.useCallback(e=>o.mappings.find(t=>t.targetField===e),[o.mappings]),p=t.useCallback((e,t)=>{const a=o.mappings.findIndex(t=>t.targetField===e),r=[...o.mappings];a>=0?r[a]={...r[a],...t}:r.push({targetField:e,sourceField:t.sourceField??"",transform:t.transform}),n({mappings:r})},[o.mappings,n]),u=t.useCallback(e=>{const t=o.mappings.filter(t=>t.targetField!==e);n({mappings:t})},[o.mappings,n]),m=o.mappings.filter(e=>e.sourceField).length;return React.createElement(l,{onClose:()=>h(!1),open:i,trigger:React.createElement("button",{"aria-label":"Data mapping",className:vr,onClick:()=>h(!0),type:"button"},React.createElement(Te,{className:gr}),React.createElement("span",{className:kr},"字段映射 (",m,"/",c.length,")")),width:320},React.createElement("div",{className:br},React.createElement("div",{className:xr},React.createElement("span",{className:fr},"字段映射配置"),React.createElement("span",{className:wr},m,"/",c.length," 已映射")),React.createElement("div",{className:Rr},c.map(e=>{const t=d(e.name);return React.createElement("div",{className:Nr,key:e.name},React.createElement("div",{className:Er},React.createElement("span",{className:Mr},e.label,e.required?React.createElement("span",{className:Cr},"*"):null),React.createElement("span",{className:Sr},e.type)),React.createElement("div",{className:Ar},s.length>0?React.createElement("select",{className:jr,onChange:t=>p(e.name,{sourceField:t.target.value}),value:t?.sourceField??""},React.createElement("option",{value:""},"选择字段"),s.map(e=>React.createElement("option",{key:e,value:e},e))):React.createElement("input",{className:zr,onChange:t=>p(e.name,{sourceField:t.target.value}),placeholder:"源字段路径",type:"text",value:t?.sourceField??""}),React.createElement(w,{className:Vr}),React.createElement("div",{className:Lr},e.name)),t?.sourceField?React.createElement("div",{className:Ir},React.createElement(F,{className:Br}),React.createElement("input",{className:qr,onChange:t=>p(e.name,{transform:t.target.value}),placeholder:"转换表达式 (可选)",type:"text",value:t?.transform??""})):null,t?.sourceField?React.createElement("button",{className:Pr,onClick:()=>u(e.name),type:"button"},"清除映射"):null)})),React.createElement("div",{className:Hr},React.createElement("p",null,"• 源字段: 数据源中的字段路径"),React.createElement("p",null,"• 转换表达式: 如 value * 100, value.toFixed(2)"))))};var Fr="es-trigger-IjziC",Ur="es-triggerIcon-t21hp",Or="es-triggerText-WQ-5H",Wr="es-popover-h2Vn-",Xr="es-searchWrapper-jUGP6",Yr="es-searchIcon-Qu4Cl",Gr="es-searchInput-YUlsM",$r="es-section-mWvKy",Kr="es-sectionTitle-4m6ZV",Jr="es-iconGrid-hvHqv",Zr="es-iconButton-3y2jO",Qr="es-iconButtonSelected-01Ozi",_r="es-iconButtonIcon-ur-nS",el="es-emptyMessage-dWKQh";const tl={Activity:u,AlertCircle:B,AlertTriangle:nt,ArrowDown:x,ArrowLeft:f,ArrowRight:w,ArrowUp:R,BarChart:M,BarChart2:C,Bell:N,Calendar:E,Check:A,CheckCircle:q,ChevronDown:j,ChevronLeft:z,ChevronRight:V,ChevronUp:L,Circle:H,Clock:T,Cloud:D,Code:F,Copy:U,Database:O,Download:W,Edit:Ye,Eye:$,EyeOff:G,File:Z,FileText:J,Filter:_,Folder:Q,Globe:ee,Grid:te,Heart:re,Home:le,Image:ne,Info:ce,Layers:se,Layout:Se,Link:ie,List:he,Loader:de,Lock:ue,LogOut:me,Mail:ye,Map:ge,MapPin:ve,Menu:be,MessageCircle:xe,Minus:fe,Monitor:we,Moon:Re,MoreHorizontal:Y,MoreVertical:X,Move:Ne,Music:Ee,Package:Me,Pause:Ae,PieChart:S,Play:je,Plus:ze,Power:Ve,Printer:Le,RefreshCw:Ie,Save:Be,Search:qe,Send:Pe,Server:He,Settings:De,Share:Fe,Shield:Ue,ShoppingCart:Oe,Sidebar:Ce,Sliders:We,Smartphone:Xe,Square:Ge,Star:$e,Sun:Ke,Table:Je,Tag:Ze,Target:Qe,Terminal:_e,ThumbsUp:et,Trash:at,TrendingDown:rt,TrendingUp:lt,Triangle:ct,Truck:st,Tv:ot,Type:it,Unlock:pe,Upload:dt,User:pt,Users:ut,Video:mt,Wifi:yt,X:vt,XCircle:P,Zap:gt,ZoomIn:kt,ZoomOut:bt},al=Object.keys(tl),rl={name:"Circle"},ll=e=>{const{value:a,initialValue:r,onChange:n,recent:s=!0}=e,o=a??r??rl,[i,h]=t.useState(!1),[d,p]=t.useState(""),[u,m]=t.useState([]),y=t.useCallback(e=>tl[e]||H,[]),v=t.useMemo(()=>{if(!d)return al;const e=d.toLowerCase();return al.filter(t=>t.toLowerCase().includes(e))},[d]),g=t.useCallback(e=>{n({name:e}),m(t=>[e,...t.filter(t=>t!==e)].slice(0,8)),h(!1)},[n]),k=y(o.name);return React.createElement(l,{onClose:()=>h(!1),open:i,trigger:React.createElement("button",{"aria-label":"Select icon",className:Fr,onClick:()=>h(!0),type:"button"},React.createElement(k,{className:Ur}),React.createElement("span",{className:Or},o.name))},React.createElement("div",{className:Wr},React.createElement("div",{className:Xr},React.createElement(qe,{className:Yr}),React.createElement("input",{className:Gr,onChange:e=>p(e.target.value),placeholder:"搜索图标...",type:"text",value:d})),!0===s&&u.length>0&&""===d?React.createElement("div",{className:$r},React.createElement("div",{className:Kr},"最近使用"),React.createElement("div",{className:Jr},u.map(e=>{const t=y(e);return React.createElement("button",{"aria-label":e,className:c(Zr,o.name===e?Qr:""),key:e,onClick:()=>g(e),title:e,type:"button"},React.createElement(t,{className:_r}))}))):null,React.createElement("div",{className:Jr},v.map(e=>{const t=y(e);return React.createElement("button",{"aria-label":e,className:c(Zr,o.name===e?Qr:""),key:e,onClick:()=>g(e),title:e,type:"button"},React.createElement(t,{className:_r}))})),0===v.length?React.createElement("div",{className:el},"未找到匹配的图标"):null))};var nl="es-container-CUmyq",cl="es-textarea-hn1hD",sl="es-textareaError-O2GWs",ol="es-error-wjKcS";const il=e=>{const{value:a,initialValue:r,placeholder:l,rows:n=6,onChange:s}=e,[o,i]=t.useState(""),[h,d]=t.useState(null);t.useEffect(()=>{const e=a??r;if(void 0!==e)try{i(JSON.stringify(e,null,2)),d(null)}catch{i(String(e))}else i("")},[a,r]);const p=t.useCallback(e=>{if(i(e),!e.trim())return d(null),void s(void 0);try{const t=JSON.parse(e);d(null),s(t)}catch(e){d(e.message)}},[s]),u=1.5*n*14;return React.createElement("div",{className:nl},React.createElement("textarea",{className:c(cl,h?sl:null),onChange:e=>p(e.target.value),placeholder:l||"输入 JSON 数据",spellCheck:!1,style:{minHeight:u},value:o}),h?React.createElement("div",{className:ol},h):null)};var hl="es-container-som8X",dl="es-id-VnRzV",pl="es-title-B-JkN";const ul=e=>{const{selected:t}=e;return React.createElement("div",{className:hl},React.createElement("p",{className:dl},t.id),React.createElement("p",{className:pl},t.componentMeta.title))};var ml="es-container-d6iPo",yl="es-input-hzqco",vl="es-inputWithSuffix-dzHIR",gl="es-suffix--jLoo";const kl=e=>{const{value:t,initialValue:a,placeholder:r,onChange:l,suffix:n}=e;return React.createElement("div",{className:ml},React.createElement("input",{className:c(yl,n?vl:""),onChange:e=>l(+e.target.value),placeholder:r||"",type:"number",value:t??a??""}),n?React.createElement("span",{"aria-label":`Unit: ${n}`,className:gl},n):null)};var bl="es-container-RzrEe",xl="es-field-AaNu3",fl="es-label-zWfmB",wl="es-input-fv7wH",Rl="es-customField-hV2yY",Nl="es-customFieldInputs-efA5X",El="es-keyInput-MXoPV",Ml="es-removeButton-s7K9l",Cl="es-removeIcon-Ostpz",Sl="es-addButton-Wgly5",Al="es-addIcon-61nc3";const jl=e=>{const{value:a,initialValue:r,fields:l=[],allowCustomFields:n=!1,addFieldText:c="添加字段",onChange:s}=e,o=a??r??{},i=t.useCallback((e,t)=>{s({...o,[e]:t})},[o,s]),h=t.useCallback(()=>{const e=`field_${Date.now()}`;s({...o,[e]:""})},[o,s]),d=t.useCallback(e=>{const t={...o};delete t[e],s(t)},[o,s]),p=l.map(e=>e.key),u=Object.keys(o).filter(e=>!p.includes(e));return React.createElement("div",{className:bl},l.map(e=>React.createElement("div",{className:xl,key:e.key},React.createElement("span",{className:fl},e.label),React.createElement("input",{className:wl,onChange:t=>{const a="number"===e.type?+t.target.value:t.target.value;i(e.key,a)},placeholder:e.placeholder,type:"number"===e.type?"number":"text",value:o[e.key]??""}))),u.map(e=>React.createElement("div",{className:Rl,key:e},React.createElement("div",{className:Nl},React.createElement("input",{className:El,onChange:t=>{const a=t.target.value;if(a&&a!==e){const t={...o};t[a]=t[e],delete t[e],s(t)}},placeholder:"字段名",type:"text",value:e}),React.createElement("input",{className:wl,onChange:t=>i(e,t.target.value),placeholder:"值",type:"text",value:o[e]??""})),React.createElement("button",{className:Ml,onClick:()=>d(e),type:"button"},React.createElement(tt,{className:Cl})))),n?React.createElement("button",{className:Sl,onClick:h,type:"button"},React.createElement(ze,{className:Al}),c):null)};var zl="es-container-YWSlG",Vl="es-inputWrapper-B2wKI",Ll="es-input--qUrU",Il="es-suffix-2c3Cd";const Bl=e=>{const{value:t,onChange:a}=e,r=(e,r)=>{a({...t,[e]:r})};return React.createElement("div",{className:zl},React.createElement("div",{className:Vl},React.createElement("input",{className:Ll,onChange:e=>r("x",Number(e.target.value)),type:"number",value:Pl(t.x)}),React.createElement("span",{"aria-label":"Unit: X",className:Il},"X")),React.createElement("div",{className:Vl},React.createElement("input",{className:Ll,onChange:e=>r("y",Number(e.target.value)),type:"number",value:Pl(t.y)}),React.createElement("span",{"aria-label":"Unit: Y",className:Il},"Y")),React.createElement("div",{className:Vl},React.createElement("input",{className:Ll,onChange:e=>r("width",Number(e.target.value)),type:"number",value:Pl(t.width)}),React.createElement("span",{"aria-label":"Unit: W",className:Il},"W")),React.createElement("div",{className:Vl},React.createElement("input",{className:Ll,onChange:e=>r("height",Number(e.target.value)),type:"number",value:Pl(t.height)}),React.createElement("span",{"aria-label":"Unit: H",className:Il},"H")))},ql=/(\.\d{2})\d+$/,Pl=e=>e.toString().replace(ql,"$1");var Hl="es-container-lamwH",Tl="es-containerSm-mndNj",Dl="es-segment-JmKWl",Fl="es-segmentSelected-fumXM",Ul="es-segmentDisabled-Md5LF";const Ol=e=>{const{value:t,initialValue:a,options:r=[],onChange:l,size:n="md"}=e,s=t??a??r[0]?.value??"";return React.createElement("div",{className:c(Hl,"sm"===n?Tl:"")},r.map(e=>React.createElement("button",{className:c(Dl,s===e.value?Fl:"",!0===e.disabled?Ul:""),disabled:e.disabled,key:e.value,onClick:()=>!e.disabled&&l(e.value),type:"button"},e.label)))};var Wl="es-trigger-YRz9p",Xl="es-triggerValue-k-g2-",Yl="es-placeholder-F8-XP",Gl="es-chevron-UbZv-",$l="es-chevronOpen-Yui-r",Kl="es-dropdown-l2sra",Jl="es-option-cv-7C",Zl="es-optionSelected-K4e5h",Ql="es-optionDisabled-72jrC";const _l=e=>{const{value:a,initialValue:r,options:n=[],placeholder:s,onChange:o}=e,[i,h]=t.useState(!1),d=a??r??"",p=n.find(e=>e.value===d);return React.createElement(l,{onClose:()=>h(!1),open:i,trigger:React.createElement("button",{"aria-expanded":i,"aria-haspopup":"listbox",className:Wl,onClick:()=>h(!0),type:"button"},React.createElement("span",{className:c(Xl,p?"":Yl)},p?.label||s||"请选择"),React.createElement(j,{className:c(Gl,i?$l:"")}))},React.createElement("div",{className:Kl,role:"listbox"},n.map(e=>React.createElement("button",{"aria-selected":e.value===d,className:c(Jl,e.value===d?Zl:"",!0===e.disabled?Ql:""),key:e.value,onClick:()=>{return t=e.value,void(e.disabled||(o(t),h(!1)));var t},role:"option",type:"button"},e.label))))};var en="es-container-PG1Uy",tn="es-slider-pypb6",an="es-track-X2NtH",rn="es-range-AVV8x",ln="es-thumb-YMQR-",nn="es-value-JiWPV";const cn=e=>{const{value:a,initialValue:r,min:l=0,max:n=100,step:c=1,showValue:s=!0,suffix:o,onChange:i}=e,h=a??r??l,d=t.useRef(null),p=(h-l)/(n-l)*100,u=t.useCallback(e=>{if(!d.current)return;const t=d.current.getBoundingClientRect(),a=Math.max(0,Math.min(1,(e-t.left)/t.width)),r=l+a*(n-l),s=Math.round(r/c)*c,o=Math.max(l,Math.min(n,s));i(o)},[l,n,c,i]);return React.createElement("div",{className:en},React.createElement("div",{className:tn},React.createElement("div",{className:an,onMouseDown:e=>{u(e.clientX);const t=e=>{u(e.clientX)},a=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",a)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",a)},ref:d,role:"presentation"},React.createElement("div",{className:rn,style:{width:`${p}%`}}),React.createElement("div",{"aria-valuemax":n,"aria-valuemin":l,"aria-valuenow":h,className:ln,role:"slider",style:{left:`${p}%`},tabIndex:0}))),!0===s?React.createElement("span",{className:nn},h,o):null)};var sn="es-container-XqQza",on="es-boxModel-8RFjI",hn="es-inputTop-bqsmI",dn="es-inputRight-TV3E-",pn="es-inputBottom-dP-wA",un="es-inputLeft-sygc3",mn="es-spacingInput-KAWdK",yn="es-linkButton-v1n0k",vn="es-linkButtonActive-Vge1n",gn="es-linkIcon-K0j9e",kn="es-presets-CPVVc",bn="es-presetButton-vUc7S",xn="es-modeLabel-Vh1Cf";const fn={top:0,right:0,bottom:0,left:0},wn=[0,4,8,12,16,24,32],Rn=e=>{const{value:a,initialValue:r,onChange:l,mode:n="padding",linked:s=!1,min:o=0,max:i=100}=e,h=a??r??fn,[d,p]=t.useState(s),u=t.useCallback(e=>{if(d){const t=Object.values(e)[0];l({top:t,right:t,bottom:t,left:t})}else l({...h,...e})},[h,d,l]),m=t.useCallback(e=>{l({top:e,right:e,bottom:e,left:e})},[l]),y=t.useCallback(()=>{p(e=>!e)},[]);return React.createElement("div",{className:sn},React.createElement("div",{className:on},React.createElement("div",{className:hn},React.createElement("input",{className:mn,max:i,min:o,onChange:e=>u({top:Number(e.target.value)}),type:"number",value:h.top})),React.createElement("div",{className:dn},React.createElement("input",{className:mn,max:i,min:o,onChange:e=>u({right:Number(e.target.value)}),type:"number",value:h.right})),React.createElement("div",{className:pn},React.createElement("input",{className:mn,max:i,min:o,onChange:e=>u({bottom:Number(e.target.value)}),type:"number",value:h.bottom})),React.createElement("div",{className:un},React.createElement("input",{className:mn,max:i,min:o,onChange:e=>u({left:Number(e.target.value)}),type:"number",value:h.left})),React.createElement("button",{"aria-label":d?"Unlink values":"Link values",className:c(yn,d?vn:""),onClick:y,type:"button"},d?React.createElement(ie,{className:gn}):React.createElement(ht,{className:gn}))),React.createElement("div",{className:kn},wn.map(e=>React.createElement("button",{className:bn,key:e,onClick:()=>m(e),type:"button"},e))),React.createElement("div",{className:xn},"padding"===n?"内边距":"外边距"," (px)"))};var Nn="es-container-weN0F",En="es-input-C8N67",Mn="es-inputWithSuffix-tdJcI",Cn="es-suffix-HGRiQ";const Sn=e=>{const{value:t,initialValue:a,placeholder:r,onChange:l,suffix:n}=e;return React.createElement("div",{className:Nn},React.createElement("input",{className:c(En,n?Mn:""),onChange:e=>l(e.target.value),placeholder:r||"",type:"text",value:t||a||""}),n?React.createElement("span",{"aria-label":`Unit: ${n}`,className:Cn},n):null)};var An="es-switch-2DV6T",jn="es-switchChecked-eI65V",zn="es-switchThumb-GDlBx",Vn="es-switchThumbChecked-uA5kV",Ln="es-checkboxWrapper-l-KtW",In="es-checkboxInput-4Z9KK",Bn="es-checkbox-G1P36",qn="es-checkboxChecked-7XJoC",Pn="es-checkIcon-3KIBH",Hn="es-segmented-IaxAM",Tn="es-segmentedButton-mbZ5z",Dn="es-segmentedButtonSelected-u4m2T";const Fn=e=>{const{value:t,initialValue:a,onChange:r,mode:l="switch",trueLabel:n="是",falseLabel:s="否"}=e,o=t??a??!1;return"segmented"===l?React.createElement("div",{className:Hn},React.createElement("button",{className:c(Tn,!1===o?Dn:""),onClick:()=>r(!1),type:"button"},s),React.createElement("button",{className:c(Tn,!0===o?Dn:""),onClick:()=>r(!0),type:"button"},n)):"checkbox"===l?React.createElement("label",{className:Ln},React.createElement("input",{checked:o,className:In,onChange:e=>r(e.target.checked),type:"checkbox"}),React.createElement("span",{className:c(Bn,o?qn:"")},o?React.createElement(A,{className:Pn}):null)):React.createElement("button",{"aria-checked":o,className:c(An,o?jn:""),onClick:()=>r(!o),role:"switch",type:"button"},React.createElement("span",{className:c(zn,o?Vn:"")}))};var Un="es-container-ftwPX",On="es-textarea-sJPy9",Wn="es-counter-02NEu";const Xn=e=>{const{value:t,initialValue:a,placeholder:r,rows:l=3,maxLength:n,onChange:c}=e;return React.createElement("div",{className:Un},React.createElement("textarea",{className:On,maxLength:n,onChange:e=>c(e.target.value),placeholder:r||"",rows:l,value:t??a??""}),n?React.createElement("div",{className:Wn},(t??a??"").length,"/",n):null)};var Yn="es-container-EDh0-",Gn="es-row-MOm-T",$n="es-label-1o-jT",Kn="es-hiddenInput-03Dx-",Jn="es-uploadArea-1HYbh",Zn="es-uploadIcon-Ck7gF",Qn="es-clearButton-N-9cs",_n="es-clearIcon-LHlF6",ec="es-fileInfo-71Jtf",tc="es-fileName-B2hHy",ac="es-fileSize-pINcz",rc="es-error-A8MID";const lc=e=>{const{value:a,onChange:r,accept:l=".jpg,.jpeg,.png,.gif",maxSize:n=10485760}=e,[c,s]=t.useState(""),o=t.useRef(null);return React.createElement("div",{className:Yn},React.createElement("div",{className:Gn},React.createElement("label",{className:$n},React.createElement("input",{accept:l,className:Kn,onChange:async e=>{const t=e.target.files?.[0];if(s(""),!t)return void r(null);const a=`.${t.name.split(".").pop()?.toLowerCase()}`;if(!l.includes(a))return s(`仅支持 ${l} 格式文件`),void r(null);if(t.size>n)return s(`文件大小不能超过 ${n/1024/1024}MB`),void r(null);try{const[e,a]=await Promise.all([new Promise((e,a)=>{const r=new FileReader;r.onload=()=>e(r.result),r.onerror=e=>a(e),r.readAsDataURL(t)}),new Promise((e,a)=>{const r=new Image;r.onload=()=>e({width:r.naturalWidth,height:r.naturalHeight}),r.onerror=a,r.src=URL.createObjectURL(t)})]);r({raw:{name:t.name,size:t.size,type:t.type,width:a.width,height:a.height},base64:e})}catch(e){s("文件读取失败,请重试"),r(null)}},ref:o,type:"file"}),React.createElement("div",{className:Jn},React.createElement(dt,{className:Zn}),React.createElement("span",null,a?"更换文件":"点击上传"))),a?React.createElement("button",{"aria-label":"清除文件",className:Qn,onClick:()=>{r(null),o.current&&(o.current.value="")},type:"button"},React.createElement(vt,{className:_n})):null),a?React.createElement("div",{className:ec},React.createElement("span",{className:tc},a.raw?.name),React.createElement("span",{className:ac},(a.raw?.size/1024).toFixed(1),"KB")):null,c?React.createElement("p",{className:rc,role:"alert"},c):null)};var nc="es-container-gjha7",cc="es-header-iE--w",sc="es-title-qTdCp",oc="es-toggleButton-g6dI2",ic="es-toggleIcon-cjnM4",hc="es-content-GYYgk",dc="es-contentHidden-WAYSW",pc="es-srOnly-EI1Tc";const uc=e=>{const{field:a,children:r,initialValue:l,icon:n=!0}=e,[s,o]=t.useState(l??!0);return React.createElement("div",{className:nc},React.createElement("div",{className:cc},React.createElement("h4",{className:sc},a.title),n?React.createElement("button",{"aria-expanded":s,className:oc,onClick:()=>o(!s),type:"button"},React.createElement(I,{className:ic}),React.createElement("span",{className:pc},"Toggle")):null),React.createElement("div",{className:c(hc,!1===s?dc:"")},r))};var mc="es-container-4LWRO",yc="es-tabsList-L72im",vc="es-tabTrigger-u3S3S",gc="es-tabTriggerActive-xCpU6",kc="es-tabContent-Pj2Us",bc="es-tabContentActive-NJtXh";const xc=e=>{const{tabs:a,initialValue:r,children:l}=e,n=t.useMemo(()=>{if(a)return a;if(Array.isArray(l)&&l.length>0)return l.map(e=>({label:e.props.field.config.title,value:e.props.field.config.key}));throw new Error("TabSetter: children or tabs must be an array")},[a,l]),s=t.useMemo(()=>n[0]?.value,[n]),[o,i]=t.useState(r??s);return t.createElement("div",{className:mc},t.createElement("div",{className:yc,role:"tablist",style:{gridTemplateColumns:`repeat(${n.length}, minmax(0, 1fr))`}},n.map(e=>t.createElement("button",{"aria-selected":o===e.value,className:c(vc,o===e.value?gc:""),key:e.value,onClick:()=>i(e.value),role:"tab",type:"button"},e.label))),Array.isArray(l)?l.map(e=>t.createElement("div",{className:c(kc,o===e.props.field.config.key?bc:""),key:e.props.field.config.key,role:"tabpanel"},e)):null)},fc={ColorSetter:Da,NodeIdSetter:ul,NumberSetter:kl,RectSetter:Bl,StringSetter:Sn,SwitchSetter:Fn,UploadSetter:lc,SegmentedSetter:Ol,CollapseSetter:uc,TabSetter:xc,SpacingSetter:Rn,AlignSetter:Tt,IconSetter:ll,DataBindingSetter:yr,DataMappingSetter:Dr,SelectSetter:_l,SliderSetter:cn,TextAreaSetter:Xn,ArraySetter:$t,JsonSetter:il,ObjectSetter:jl};e.AlignSetter=Tt,e.ArraySetter=$t,e.CollapseSetter=uc,e.ColorSetter=Da,e.DataBindingSetter=yr,e.DataMappingSetter=Dr,e.IconSetter=ll,e.JsonSetter=il,e.NodeIdSetter=ul,e.NumberSetter=kl,e.ObjectSetter=jl,e.Popover=l,e.RectSetter=Bl,e.SegmentedSetter=Ol,e.SelectSetter=_l,e.SliderSetter=cn,e.SpacingSetter=Rn,e.StringSetter=Sn,e.SwitchSetter=Fn,e.TabSetter=xc,e.TextAreaSetter=Xn,e.UploadSetter=lc,e.default=fc,e.setterMap=fc,Object.defineProperty(e,"__esModule",{value:!0})});
27
27
  //# sourceMappingURL=index.min.js.map