@charisol/plexo-sdk 2.0.22 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,20 +28,20 @@ var b = () => ({
28
28
  buttonPaddingRight: "14px",
29
29
  buttonFontSize: "13px",
30
30
  buttonFontWeight: "700"
31
- }), x = (e) => e.type === "form_container" ? {
31
+ }), ne = (e) => e.type === "form_container" ? {
32
32
  ...e,
33
33
  style: {
34
34
  ...b(),
35
35
  ...e.style || {}
36
36
  }
37
- } : e, S = (e) => {
37
+ } : e, x = (e) => {
38
38
  let t = JSON.parse(JSON.stringify(e));
39
39
  return (Array.isArray(t?.body?.rows) ? t.body.rows : []).forEach((e) => {
40
40
  (Array.isArray(e?.columns) ? e.columns : []).forEach((e) => {
41
- e.elements = (Array.isArray(e?.elements) ? e.elements : []).map((e) => x(e));
41
+ e.elements = (Array.isArray(e?.elements) ? e.elements : []).map((e) => ne(e));
42
42
  });
43
43
  }), t;
44
- }, C = ee((n) => ({
44
+ }, re = ee((n) => ({
45
45
  template: { body: {
46
46
  style: { background: "#0b0f19" },
47
47
  rows: []
@@ -91,7 +91,7 @@ var b = () => ({
91
91
  hydrateTemplate: (e) => n(() => ({
92
92
  past: [],
93
93
  future: [],
94
- template: S(e),
94
+ template: x(e),
95
95
  selectedElementId: null,
96
96
  selectedRowId: null,
97
97
  selectedColumnId: null
@@ -187,7 +187,7 @@ var b = () => ({
187
187
  return null;
188
188
  }, c = s(r.body.rows, i);
189
189
  if (!c) return {};
190
- let l = x(a), u = t(c);
190
+ let l = ne(a), u = t(c);
191
191
  return c.elements.push(l), c.childOrder = e(u, l.id, o), {
192
192
  past: [...n.past, JSON.parse(JSON.stringify(n.template))],
193
193
  future: [],
@@ -612,10 +612,10 @@ var b = () => ({
612
612
  template: l
613
613
  };
614
614
  })
615
- })), w = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), T = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), E = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), D = (e) => {
616
- let t = E(e);
615
+ })), S = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), C = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), w = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), ie = (e) => {
616
+ let t = w(e);
617
617
  return t.charAt(0).toUpperCase() + t.slice(1);
618
- }, O = {
618
+ }, T = {
619
619
  xmlns: "http://www.w3.org/2000/svg",
620
620
  width: 24,
621
621
  height: 24,
@@ -625,11 +625,11 @@ var b = () => ({
625
625
  strokeWidth: 2,
626
626
  strokeLinecap: "round",
627
627
  strokeLinejoin: "round"
628
- }, k = (e) => {
628
+ }, E = (e) => {
629
629
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
630
630
  return !1;
631
- }, A = s({});
632
- function ne({ children: e, size: t, color: n, strokeWidth: r, absoluteStrokeWidth: i, className: a }) {
631
+ }, D = s({});
632
+ function O({ children: e, size: t, color: n, strokeWidth: r, absoluteStrokeWidth: i, className: a }) {
633
633
  let o = m(() => ({
634
634
  size: t,
635
635
  color: n,
@@ -643,30 +643,30 @@ function ne({ children: e, size: t, color: n, strokeWidth: r, absoluteStrokeWidt
643
643
  i,
644
644
  a
645
645
  ]);
646
- return c(A.Provider, { value: o }, e);
646
+ return c(D.Provider, { value: o }, e);
647
647
  }
648
- var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, l) => {
649
- let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = j() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
648
+ var k = () => d(D), ae = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, l) => {
649
+ let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = k() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
650
650
  return c("svg", {
651
651
  ref: l,
652
- ...O,
653
- width: t ?? u ?? O.width,
654
- height: t ?? u ?? O.height,
652
+ ...T,
653
+ width: t ?? u ?? T.width,
654
+ height: t ?? u ?? T.height,
655
655
  stroke: e ?? p,
656
656
  strokeWidth: h,
657
- className: w("lucide", m, i),
658
- ...!a && !k(s) && { "aria-hidden": "true" },
657
+ className: S("lucide", m, i),
658
+ ...!a && !E(s) && { "aria-hidden": "true" },
659
659
  ...s
660
660
  }, [...o.map(([e, t]) => c(e, t)), ...Array.isArray(a) ? a : [a]]);
661
- }), M = (e, t) => {
662
- let n = l(({ className: n, ...r }, i) => c(re, {
661
+ }), A = (e, t) => {
662
+ let n = l(({ className: n, ...r }, i) => c(ae, {
663
663
  ref: i,
664
664
  iconNode: t,
665
- className: w(`lucide-${T(D(e))}`, `lucide-${e}`, n),
665
+ className: S(`lucide-${C(ie(e))}`, `lucide-${e}`, n),
666
666
  ...r
667
667
  }));
668
- return n.displayName = D(e), n;
669
- }, N = M("align-center-vertical", [
668
+ return n.displayName = ie(e), n;
669
+ }, j = A("align-center-vertical", [
670
670
  ["path", {
671
671
  d: "M12 2v20",
672
672
  key: "t6zp3m"
@@ -687,7 +687,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
687
687
  d: "M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",
688
688
  key: "1euafb"
689
689
  }]
690
- ]), P = M("align-end-vertical", [
690
+ ]), M = A("align-end-vertical", [
691
691
  ["rect", {
692
692
  width: "16",
693
693
  height: "6",
@@ -708,7 +708,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
708
708
  d: "M22 22V2",
709
709
  key: "12ipfv"
710
710
  }]
711
- ]), F = M("align-horizontal-distribute-center", [
711
+ ]), N = A("align-horizontal-distribute-center", [
712
712
  ["rect", {
713
713
  width: "6",
714
714
  height: "14",
@@ -741,7 +741,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
741
741
  d: "M7 5V2",
742
742
  key: "liy1u9"
743
743
  }]
744
- ]), ie = M("align-start-vertical", [
744
+ ]), oe = A("align-start-vertical", [
745
745
  ["rect", {
746
746
  width: "9",
747
747
  height: "6",
@@ -762,7 +762,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
762
762
  d: "M2 2v20",
763
763
  key: "1ivd8o"
764
764
  }]
765
- ]), I = M("align-vertical-distribute-center", [
765
+ ]), P = A("align-vertical-distribute-center", [
766
766
  ["path", {
767
767
  d: "M22 17h-3",
768
768
  key: "1lwga1"
@@ -795,7 +795,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
795
795
  rx: "2",
796
796
  key: "we8e9z"
797
797
  }]
798
- ]), L = M("anchor", [
798
+ ]), F = A("anchor", [
799
799
  ["path", {
800
800
  d: "M12 6v16",
801
801
  key: "nqf5sj"
@@ -814,7 +814,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
814
814
  r: "2",
815
815
  key: "muu5ef"
816
816
  }]
817
- ]), ae = M("arrow-down-to-line", [
817
+ ]), se = A("arrow-down-to-line", [
818
818
  ["path", {
819
819
  d: "M12 17V3",
820
820
  key: "1cwfxf"
@@ -827,34 +827,34 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
827
827
  d: "M19 21H5",
828
828
  key: "150jfl"
829
829
  }]
830
- ]), R = M("arrow-down", [["path", {
830
+ ]), I = A("arrow-down", [["path", {
831
831
  d: "M12 5v14",
832
832
  key: "s699le"
833
833
  }], ["path", {
834
834
  d: "m19 12-7 7-7-7",
835
835
  key: "1idqje"
836
- }]]), z = M("arrow-left", [["path", {
836
+ }]]), L = A("arrow-left", [["path", {
837
837
  d: "m12 19-7-7 7-7",
838
838
  key: "1l729n"
839
839
  }], ["path", {
840
840
  d: "M19 12H5",
841
841
  key: "x3x0zl"
842
- }]]), oe = M("arrow-right", [["path", {
842
+ }]]), ce = A("arrow-right", [["path", {
843
843
  d: "M5 12h14",
844
844
  key: "1ays0h"
845
845
  }], ["path", {
846
846
  d: "m12 5 7 7-7 7",
847
847
  key: "xquz4c"
848
- }]]), B = M("arrow-up", [["path", {
848
+ }]]), R = A("arrow-up", [["path", {
849
849
  d: "m5 12 7-7 7 7",
850
850
  key: "hav0vg"
851
851
  }], ["path", {
852
852
  d: "M12 19V5",
853
853
  key: "x0mq9r"
854
- }]]), V = M("bold", [["path", {
854
+ }]]), z = A("bold", [["path", {
855
855
  d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
856
856
  key: "mg9rjx"
857
- }]]), H = M("box", [
857
+ }]]), B = A("box", [
858
858
  ["path", {
859
859
  d: "M21 8a2 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
860
860
  key: "hh9hay"
@@ -867,7 +867,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
867
867
  d: "M12 22V12",
868
868
  key: "d0xqtd"
869
869
  }]
870
- ]), U = M("boxes", [
870
+ ]), V = A("boxes", [
871
871
  ["path", {
872
872
  d: "M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",
873
873
  key: "lc1i9w"
@@ -916,7 +916,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
916
916
  d: "M12 13.5V8",
917
917
  key: "1io7kd"
918
918
  }]
919
- ]), W = M("calendar-check", [
919
+ ]), H = A("calendar-check", [
920
920
  ["path", {
921
921
  d: "M8 2v4",
922
922
  key: "1cmpym"
@@ -941,7 +941,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
941
941
  d: "m9 16 2 2 4-4",
942
942
  key: "19s6y9"
943
943
  }]
944
- ]), G = M("calendar", [
944
+ ]), U = A("calendar", [
945
945
  ["path", {
946
946
  d: "M8 2v4",
947
947
  key: "1cmpym"
@@ -962,31 +962,31 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
962
962
  d: "M3 10h18",
963
963
  key: "8toen8"
964
964
  }]
965
- ]), K = M("check", [["path", {
965
+ ]), W = A("check", [["path", {
966
966
  d: "M20 6 9 17l-5-5",
967
967
  key: "1gmf2c"
968
- }]]), q = M("chevron-down", [["path", {
968
+ }]]), G = A("chevron-down", [["path", {
969
969
  d: "m6 9 6 6 6-6",
970
970
  key: "qrunsl"
971
- }]]), se = M("chevron-right", [["path", {
971
+ }]]), le = A("chevron-right", [["path", {
972
972
  d: "m9 18 6-6-6-6",
973
973
  key: "mthhwq"
974
- }]]), J = M("chevron-up", [["path", {
974
+ }]]), K = A("chevron-up", [["path", {
975
975
  d: "m18 15-6-6-6 6",
976
976
  key: "153udz"
977
- }]]), ce = M("chevrons-down", [["path", {
977
+ }]]), ue = A("chevrons-down", [["path", {
978
978
  d: "m7 6 5 5 5-5",
979
979
  key: "1lc07p"
980
980
  }], ["path", {
981
981
  d: "m7 13 5 5 5-5",
982
982
  key: "1d48rs"
983
- }]]), Y = M("chevrons-up", [["path", {
983
+ }]]), q = A("chevrons-up", [["path", {
984
984
  d: "m17 11-5-5-5 5",
985
985
  key: "e8nh98"
986
986
  }], ["path", {
987
987
  d: "m17 18-5-5-5 5",
988
988
  key: "2avn1x"
989
- }]]), X = M("circle-question-mark", [
989
+ }]]), J = A("circle-question-mark", [
990
990
  ["circle", {
991
991
  cx: "12",
992
992
  cy: "12",
@@ -1001,7 +1001,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1001
1001
  d: "M12 17h.01",
1002
1002
  key: "p32p05"
1003
1003
  }]
1004
- ]), le = M("clock", [["circle", {
1004
+ ]), Y = A("clock", [["circle", {
1005
1005
  cx: "12",
1006
1006
  cy: "12",
1007
1007
  r: "10",
@@ -1009,7 +1009,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1009
1009
  }], ["path", {
1010
1010
  d: "M12 6v6l4 2",
1011
1011
  key: "mmk7yg"
1012
- }]]), ue = M("code-xml", [
1012
+ }]]), de = A("code-xml", [
1013
1013
  ["path", {
1014
1014
  d: "m18 16 4-4-4-4",
1015
1015
  key: "1inbqp"
@@ -1022,7 +1022,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1022
1022
  d: "m14.5 4-5 16",
1023
1023
  key: "e7oirm"
1024
1024
  }]
1025
- ]), de = M("columns-2", [["rect", {
1025
+ ]), fe = A("columns-2", [["rect", {
1026
1026
  width: "18",
1027
1027
  height: "18",
1028
1028
  x: "3",
@@ -1032,7 +1032,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1032
1032
  }], ["path", {
1033
1033
  d: "M12 3v18",
1034
1034
  key: "108xh3"
1035
- }]]), Z = M("columns-3", [
1035
+ }]]), X = A("columns-3", [
1036
1036
  ["rect", {
1037
1037
  width: "18",
1038
1038
  height: "18",
@@ -1049,10 +1049,10 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1049
1049
  d: "M15 3v18",
1050
1050
  key: "14nvp0"
1051
1051
  }]
1052
- ]), fe = M("command", [["path", {
1052
+ ]), pe = A("command", [["path", {
1053
1053
  d: "M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",
1054
1054
  key: "11bfej"
1055
- }]]), pe = M("copy", [["rect", {
1055
+ }]]), me = A("copy", [["rect", {
1056
1056
  width: "14",
1057
1057
  height: "14",
1058
1058
  x: "8",
@@ -1063,7 +1063,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1063
1063
  }], ["path", {
1064
1064
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
1065
1065
  key: "zix9uf"
1066
- }]]), Q = M("credit-card", [["rect", {
1066
+ }]]), Z = A("credit-card", [["rect", {
1067
1067
  width: "20",
1068
1068
  height: "14",
1069
1069
  x: "2",
@@ -1076,7 +1076,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1076
1076
  y1: "10",
1077
1077
  y2: "10",
1078
1078
  key: "1b3vmo"
1079
- }]]), me = M("ellipsis-vertical", [
1079
+ }]]), he = A("ellipsis-vertical", [
1080
1080
  ["circle", {
1081
1081
  cx: "12",
1082
1082
  cy: "12",
@@ -1095,7 +1095,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1095
1095
  r: "1",
1096
1096
  key: "lyex9k"
1097
1097
  }]
1098
- ]), he = M("ellipsis", [
1098
+ ]), ge = A("ellipsis", [
1099
1099
  ["circle", {
1100
1100
  cx: "12",
1101
1101
  cy: "12",
@@ -1114,7 +1114,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1114
1114
  r: "1",
1115
1115
  key: "1pcz8c"
1116
1116
  }]
1117
- ]), ge = M("external-link", [
1117
+ ]), _e = A("external-link", [
1118
1118
  ["path", {
1119
1119
  d: "M15 3h6v6",
1120
1120
  key: "1q9fwt"
@@ -1127,7 +1127,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1127
1127
  d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",
1128
1128
  key: "a6xqqp"
1129
1129
  }]
1130
- ]), _e = M("eye-off", [
1130
+ ]), ve = A("eye-off", [
1131
1131
  ["path", {
1132
1132
  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",
1133
1133
  key: "ct8e1f"
@@ -1144,7 +1144,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1144
1144
  d: "m2 2 20 20",
1145
1145
  key: "1ooewy"
1146
1146
  }]
1147
- ]), ve = M("eye", [["path", {
1147
+ ]), ye = A("eye", [["path", {
1148
1148
  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",
1149
1149
  key: "1nclc0"
1150
1150
  }], ["circle", {
@@ -1152,7 +1152,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1152
1152
  cy: "12",
1153
1153
  r: "3",
1154
1154
  key: "1v7zrd"
1155
- }]]), ye = M("file-code-corner", [
1155
+ }]]), be = A("file-code-corner", [
1156
1156
  ["path", {
1157
1157
  d: "M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",
1158
1158
  key: "1wthlu"
@@ -1169,7 +1169,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1169
1169
  d: "m9 22 3-3-3-3",
1170
1170
  key: "lsp7cz"
1171
1171
  }]
1172
- ]), be = M("file-text", [
1172
+ ]), xe = A("file-text", [
1173
1173
  ["path", {
1174
1174
  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",
1175
1175
  key: "1oefj6"
@@ -1190,7 +1190,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1190
1190
  d: "M16 17H8",
1191
1191
  key: "z1uh3a"
1192
1192
  }]
1193
- ]), xe = M("globe", [
1193
+ ]), Se = A("globe", [
1194
1194
  ["circle", {
1195
1195
  cx: "12",
1196
1196
  cy: "12",
@@ -1205,7 +1205,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1205
1205
  d: "M2 12h20",
1206
1206
  key: "9i4pu4"
1207
1207
  }]
1208
- ]), Se = M("grid-3x3", [
1208
+ ]), Ce = A("grid-3x3", [
1209
1209
  ["rect", {
1210
1210
  width: "18",
1211
1211
  height: "18",
@@ -1230,7 +1230,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1230
1230
  d: "M15 3v18",
1231
1231
  key: "14nvp0"
1232
1232
  }]
1233
- ]), Ce = M("grip-vertical", [
1233
+ ]), we = A("grip-vertical", [
1234
1234
  ["circle", {
1235
1235
  cx: "9",
1236
1236
  cy: "12",
@@ -1267,7 +1267,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1267
1267
  r: "1",
1268
1268
  key: "f4zoj3"
1269
1269
  }]
1270
- ]), we = M("group", [
1270
+ ]), Q = A("group", [
1271
1271
  ["path", {
1272
1272
  d: "M3 7V5c0-1.1.9-2 2-2h2",
1273
1273
  key: "adw53z"
@@ -1300,7 +1300,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1300
1300
  rx: "1",
1301
1301
  key: "1qlmkx"
1302
1302
  }]
1303
- ]), Te = M("hand", [
1303
+ ]), Te = A("hand", [
1304
1304
  ["path", {
1305
1305
  d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",
1306
1306
  key: "1fvzgz"
@@ -1317,7 +1317,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1317
1317
  d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",
1318
1318
  key: "1s1gnw"
1319
1319
  }]
1320
- ]), Ee = M("heading", [
1320
+ ]), Ee = A("heading", [
1321
1321
  ["path", {
1322
1322
  d: "M6 12h12",
1323
1323
  key: "8npq4p"
@@ -1330,13 +1330,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1330
1330
  d: "M18 20V4",
1331
1331
  key: "o2hl4u"
1332
1332
  }]
1333
- ]), De = M("house", [["path", {
1333
+ ]), De = A("house", [["path", {
1334
1334
  d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",
1335
1335
  key: "5wwlr5"
1336
1336
  }], ["path", {
1337
1337
  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",
1338
1338
  key: "r6nss1"
1339
- }]]), Oe = M("image", [
1339
+ }]]), Oe = A("image", [
1340
1340
  ["rect", {
1341
1341
  width: "18",
1342
1342
  height: "18",
@@ -1356,7 +1356,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1356
1356
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
1357
1357
  key: "1xmnt7"
1358
1358
  }]
1359
- ]), ke = M("info", [
1359
+ ]), ke = A("info", [
1360
1360
  ["circle", {
1361
1361
  cx: "12",
1362
1362
  cy: "12",
@@ -1371,7 +1371,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1371
1371
  d: "M12 8h.01",
1372
1372
  key: "e9boi3"
1373
1373
  }]
1374
- ]), Ae = M("italic", [
1374
+ ]), Ae = A("italic", [
1375
1375
  ["line", {
1376
1376
  x1: "19",
1377
1377
  x2: "10",
@@ -1393,7 +1393,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1393
1393
  y2: "20",
1394
1394
  key: "uljnxc"
1395
1395
  }]
1396
- ]), je = M("keyboard", [
1396
+ ]), je = A("keyboard", [
1397
1397
  ["path", {
1398
1398
  d: "M10 8h.01",
1399
1399
  key: "1r9ogq"
@@ -1434,7 +1434,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1434
1434
  rx: "2",
1435
1435
  key: "18n3k1"
1436
1436
  }]
1437
- ]), Me = M("layers", [
1437
+ ]), Me = A("layers", [
1438
1438
  ["path", {
1439
1439
  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",
1440
1440
  key: "zw3jo"
@@ -1447,7 +1447,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1447
1447
  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",
1448
1448
  key: "kqbvx6"
1449
1449
  }]
1450
- ]), Ne = M("layout-template", [
1450
+ ]), Ne = A("layout-template", [
1451
1451
  ["rect", {
1452
1452
  width: "18",
1453
1453
  height: "7",
@@ -1472,7 +1472,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1472
1472
  rx: "1",
1473
1473
  key: "q5h2i8"
1474
1474
  }]
1475
- ]), Pe = M("link-2-off", [
1475
+ ]), Pe = A("link-2-off", [
1476
1476
  ["path", {
1477
1477
  d: "M9 17H7A5 5 0 0 1 7 7",
1478
1478
  key: "10o201"
@@ -1495,10 +1495,26 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1495
1495
  y2: "22",
1496
1496
  key: "a6p6uj"
1497
1497
  }]
1498
- ]), Fe = M("loader-circle", [["path", {
1498
+ ]), Fe = A("link-2", [
1499
+ ["path", {
1500
+ d: "M9 17H7A5 5 0 0 1 7 7h2",
1501
+ key: "8i5ue5"
1502
+ }],
1503
+ ["path", {
1504
+ d: "M15 7h2a5 5 0 1 1 0 10h-2",
1505
+ key: "1b9ql8"
1506
+ }],
1507
+ ["line", {
1508
+ x1: "8",
1509
+ x2: "16",
1510
+ y1: "12",
1511
+ y2: "12",
1512
+ key: "1jonct"
1513
+ }]
1514
+ ]), Ie = A("loader-circle", [["path", {
1499
1515
  d: "M21 12a9 9 0 1 1-6.219-8.56",
1500
1516
  key: "13zald"
1501
- }]]), Ie = M("lock-open", [["rect", {
1517
+ }]]), Le = A("lock-open", [["rect", {
1502
1518
  width: "18",
1503
1519
  height: "11",
1504
1520
  x: "3",
@@ -1509,7 +1525,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1509
1525
  }], ["path", {
1510
1526
  d: "M7 11V7a5 5 0 0 1 9.9-1",
1511
1527
  key: "1mm8w8"
1512
- }]]), Le = M("lock", [["rect", {
1528
+ }]]), Re = A("lock", [["rect", {
1513
1529
  width: "18",
1514
1530
  height: "11",
1515
1531
  x: "3",
@@ -1520,7 +1536,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1520
1536
  }], ["path", {
1521
1537
  d: "M7 11V7a5 5 0 0 1 10 0v4",
1522
1538
  key: "fwvmzm"
1523
- }]]), Re = M("magnet", [
1539
+ }]]), ze = A("magnet", [
1524
1540
  ["path", {
1525
1541
  d: "m12 15 4 4",
1526
1542
  key: "lnac28"
@@ -1533,7 +1549,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1533
1549
  d: "m5 8 4 4",
1534
1550
  key: "j6kj7e"
1535
1551
  }]
1536
- ]), ze = M("maximize-2", [
1552
+ ]), Be = A("maximize-2", [
1537
1553
  ["path", {
1538
1554
  d: "M15 3h6v6",
1539
1555
  key: "1q9fwt"
@@ -1550,7 +1566,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1550
1566
  d: "M9 21H3v-6",
1551
1567
  key: "wtvkvv"
1552
1568
  }]
1553
- ]), Be = M("maximize", [
1569
+ ]), Ve = A("maximize", [
1554
1570
  ["path", {
1555
1571
  d: "M8 3H5a2 2 0 0 0-2 2v3",
1556
1572
  key: "1dcmit"
@@ -1567,7 +1583,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1567
1583
  d: "M16 21h3a2 2 0 0 0 2-2v-3",
1568
1584
  key: "18trek"
1569
1585
  }]
1570
- ]), Ve = M("menu", [
1586
+ ]), He = A("menu", [
1571
1587
  ["path", {
1572
1588
  d: "M4 5h16",
1573
1589
  key: "1tepv9"
@@ -1580,13 +1596,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1580
1596
  d: "M4 19h16",
1581
1597
  key: "1djgab"
1582
1598
  }]
1583
- ]), He = M("message-square", [["path", {
1599
+ ]), Ue = A("message-square", [["path", {
1584
1600
  d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
1585
1601
  key: "18887p"
1586
- }]]), Ue = M("minus", [["path", {
1602
+ }]]), We = A("minus", [["path", {
1587
1603
  d: "M5 12h14",
1588
1604
  key: "1ays0h"
1589
- }]]), We = M("monitor", [
1605
+ }]]), Ge = A("monitor", [
1590
1606
  ["rect", {
1591
1607
  width: "20",
1592
1608
  height: "14",
@@ -1609,13 +1625,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1609
1625
  y2: "21",
1610
1626
  key: "vw1qmm"
1611
1627
  }]
1612
- ]), Ge = M("mouse-pointer", [["path", {
1628
+ ]), Ke = A("mouse-pointer", [["path", {
1613
1629
  d: "M12.586 12.586 19 19",
1614
1630
  key: "ea5xo7"
1615
1631
  }], ["path", {
1616
1632
  d: "M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z",
1617
1633
  key: "277e5u"
1618
- }]]), Ke = M("move-vertical", [
1634
+ }]]), qe = A("move-vertical", [
1619
1635
  ["path", {
1620
1636
  d: "M12 2v20",
1621
1637
  key: "t6zp3m"
@@ -1628,7 +1644,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1628
1644
  d: "m8 6 4-4 4 4",
1629
1645
  key: "ybng9g"
1630
1646
  }]
1631
- ]), qe = M("move", [
1647
+ ]), Je = A("move", [
1632
1648
  ["path", {
1633
1649
  d: "M12 2v20",
1634
1650
  key: "t6zp3m"
@@ -1653,7 +1669,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1653
1669
  d: "m9 5 3-3 3 3",
1654
1670
  key: "l8vdw6"
1655
1671
  }]
1656
- ]), Je = M("newspaper", [
1672
+ ]), Ye = A("newspaper", [
1657
1673
  ["path", {
1658
1674
  d: "M15 18h-5",
1659
1675
  key: "95g1m2"
@@ -1674,7 +1690,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1674
1690
  rx: "1",
1675
1691
  key: "aywv1n"
1676
1692
  }]
1677
- ]), Ye = M("package-check", [
1693
+ ]), Xe = A("package-check", [
1678
1694
  ["path", {
1679
1695
  d: "M12 22V12",
1680
1696
  key: "d0xqtd"
@@ -1695,7 +1711,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1695
1711
  d: "m7.5 4.27 8.997 5.148",
1696
1712
  key: "9yrvtv"
1697
1713
  }]
1698
- ]), Xe = M("palette", [
1714
+ ]), Ze = A("palette", [
1699
1715
  ["path", {
1700
1716
  d: "M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",
1701
1717
  key: "e79jfc"
@@ -1728,7 +1744,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1728
1744
  fill: "currentColor",
1729
1745
  key: "fotxhn"
1730
1746
  }]
1731
- ]), Ze = M("panel-left-close", [
1747
+ ]), Qe = A("panel-left-close", [
1732
1748
  ["rect", {
1733
1749
  width: "18",
1734
1750
  height: "18",
@@ -1745,7 +1761,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1745
1761
  d: "m16 15-3-3 3-3",
1746
1762
  key: "14y99z"
1747
1763
  }]
1748
- ]), Qe = M("panel-left-open", [
1764
+ ]), $e = A("panel-left-open", [
1749
1765
  ["rect", {
1750
1766
  width: "18",
1751
1767
  height: "18",
@@ -1762,25 +1778,25 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1762
1778
  d: "m14 9 3 3-3 3",
1763
1779
  key: "8010ee"
1764
1780
  }]
1765
- ]), $e = M("pen-line", [["path", {
1781
+ ]), et = A("pen-line", [["path", {
1766
1782
  d: "M13 21h8",
1767
1783
  key: "1jsn5i"
1768
1784
  }], ["path", {
1769
1785
  d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
1770
1786
  key: "1a8usu"
1771
- }]]), et = M("plus", [["path", {
1787
+ }]]), tt = A("plus", [["path", {
1772
1788
  d: "M5 12h14",
1773
1789
  key: "1ays0h"
1774
1790
  }], ["path", {
1775
1791
  d: "M12 5v14",
1776
1792
  key: "s699le"
1777
- }]]), tt = M("redo-2", [["path", {
1793
+ }]]), nt = A("redo-2", [["path", {
1778
1794
  d: "m15 14 5-5-5-5",
1779
1795
  key: "12vg1m"
1780
1796
  }], ["path", {
1781
1797
  d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",
1782
1798
  key: "6uklza"
1783
- }]]), nt = M("refresh-cw", [
1799
+ }]]), rt = A("refresh-cw", [
1784
1800
  ["path", {
1785
1801
  d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",
1786
1802
  key: "v9h5vc"
@@ -1797,7 +1813,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1797
1813
  d: "M8 16H3v5",
1798
1814
  key: "1cv678"
1799
1815
  }]
1800
- ]), rt = M("repeat", [
1816
+ ]), it = A("repeat", [
1801
1817
  ["path", {
1802
1818
  d: "m17 2 4 4-4 4",
1803
1819
  key: "nntrym"
@@ -1814,13 +1830,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1814
1830
  d: "M21 13v1a4 4 0 0 1-4 4H3",
1815
1831
  key: "1rx37r"
1816
1832
  }]
1817
- ]), it = M("rotate-ccw", [["path", {
1833
+ ]), at = A("rotate-ccw", [["path", {
1818
1834
  d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
1819
1835
  key: "1357e3"
1820
1836
  }], ["path", {
1821
1837
  d: "M3 3v5h5",
1822
1838
  key: "1xhq8a"
1823
- }]]), at = M("search", [["path", {
1839
+ }]]), ot = A("search", [["path", {
1824
1840
  d: "m21 21-4.34-4.34",
1825
1841
  key: "14j7rj"
1826
1842
  }], ["circle", {
@@ -1828,13 +1844,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1828
1844
  cy: "11",
1829
1845
  r: "8",
1830
1846
  key: "4ej97u"
1831
- }]]), ot = M("send", [["path", {
1847
+ }]]), st = A("send", [["path", {
1832
1848
  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",
1833
1849
  key: "1ffxy3"
1834
1850
  }], ["path", {
1835
1851
  d: "m21.854 2.147-10.94 10.939",
1836
1852
  key: "12cjpa"
1837
- }]]), st = M("settings", [["path", {
1853
+ }]]), ct = A("settings", [["path", {
1838
1854
  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",
1839
1855
  key: "1i5ecw"
1840
1856
  }], ["circle", {
@@ -1842,7 +1858,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1842
1858
  cy: "12",
1843
1859
  r: "3",
1844
1860
  key: "1v7zrd"
1845
- }]]), ct = M("share-2", [
1861
+ }]]), lt = A("share-2", [
1846
1862
  ["circle", {
1847
1863
  cx: "18",
1848
1864
  cy: "5",
@@ -1875,7 +1891,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1875
1891
  y2: "10.49",
1876
1892
  key: "1n3mei"
1877
1893
  }]
1878
- ]), lt = M("shopping-bag", [
1894
+ ]), ut = A("shopping-bag", [
1879
1895
  ["path", {
1880
1896
  d: "M16 10a4 4 0 0 1-8 0",
1881
1897
  key: "1ltviw"
@@ -1888,7 +1904,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1888
1904
  d: "M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",
1889
1905
  key: "o988cm"
1890
1906
  }]
1891
- ]), ut = M("shopping-cart", [
1907
+ ]), dt = A("shopping-cart", [
1892
1908
  ["circle", {
1893
1909
  cx: "8",
1894
1910
  cy: "21",
@@ -1905,7 +1921,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1905
1921
  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",
1906
1922
  key: "9zh506"
1907
1923
  }]
1908
- ]), dt = M("sliders-horizontal", [
1924
+ ]), ft = A("sliders-horizontal", [
1909
1925
  ["path", {
1910
1926
  d: "M10 5H3",
1911
1927
  key: "1qgfaw"
@@ -1942,7 +1958,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1942
1958
  d: "M8 12H3",
1943
1959
  key: "a7s4jb"
1944
1960
  }]
1945
- ]), ft = M("sliders-vertical", [
1961
+ ]), pt = A("sliders-vertical", [
1946
1962
  ["path", {
1947
1963
  d: "M10 8h4",
1948
1964
  key: "1sr2af"
@@ -1979,7 +1995,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1979
1995
  d: "M5 21v-7",
1980
1996
  key: "1w1uti"
1981
1997
  }]
1982
- ]), pt = M("smartphone", [["rect", {
1998
+ ]), mt = A("smartphone", [["rect", {
1983
1999
  width: "14",
1984
2000
  height: "20",
1985
2001
  x: "5",
@@ -1990,7 +2006,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
1990
2006
  }], ["path", {
1991
2007
  d: "M12 18h.01",
1992
2008
  key: "mhygvu"
1993
- }]]), mt = M("smile", [
2009
+ }]]), ht = A("smile", [
1994
2010
  ["circle", {
1995
2011
  cx: "12",
1996
2012
  cy: "12",
@@ -2015,13 +2031,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2015
2031
  y2: "9",
2016
2032
  key: "1p4y9e"
2017
2033
  }]
2018
- ]), ht = M("square-check-big", [["path", {
2034
+ ]), gt = A("square-check-big", [["path", {
2019
2035
  d: "M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",
2020
2036
  key: "2acyp4"
2021
2037
  }], ["path", {
2022
2038
  d: "m9 11 3 3L22 4",
2023
2039
  key: "1pflzl"
2024
- }]]), gt = M("square-chevron-down", [["rect", {
2040
+ }]]), _t = A("square-chevron-down", [["rect", {
2025
2041
  width: "18",
2026
2042
  height: "18",
2027
2043
  x: "3",
@@ -2031,17 +2047,17 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2031
2047
  }], ["path", {
2032
2048
  d: "m16 10-4 4-4-4",
2033
2049
  key: "894hmk"
2034
- }]]), _t = M("square", [["rect", {
2050
+ }]]), vt = A("square", [["rect", {
2035
2051
  width: "18",
2036
2052
  height: "18",
2037
2053
  x: "3",
2038
2054
  y: "3",
2039
2055
  rx: "2",
2040
2056
  key: "afitv7"
2041
- }]]), vt = M("star", [["path", {
2057
+ }]]), yt = A("star", [["path", {
2042
2058
  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",
2043
2059
  key: "r04s7s"
2044
- }]]), yt = M("store", [
2060
+ }]]), bt = A("store", [
2045
2061
  ["path", {
2046
2062
  d: "M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",
2047
2063
  key: "slp6dd"
@@ -2054,7 +2070,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2054
2070
  d: "M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",
2055
2071
  key: "wn3emo"
2056
2072
  }]
2057
- ]), bt = M("table", [
2073
+ ]), xt = A("table", [
2058
2074
  ["path", {
2059
2075
  d: "M12 3v18",
2060
2076
  key: "108xh3"
@@ -2075,7 +2091,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2075
2091
  d: "M3 15h18",
2076
2092
  key: "5xshup"
2077
2093
  }]
2078
- ]), xt = M("tablet", [["rect", {
2094
+ ]), St = A("tablet", [["rect", {
2079
2095
  width: "16",
2080
2096
  height: "20",
2081
2097
  x: "4",
@@ -2089,7 +2105,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2089
2105
  y1: "18",
2090
2106
  y2: "18",
2091
2107
  key: "1dp563"
2092
- }]]), St = M("tag", [["path", {
2108
+ }]]), Ct = A("tag", [["path", {
2093
2109
  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",
2094
2110
  key: "vktsd0"
2095
2111
  }], ["circle", {
@@ -2098,7 +2114,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2098
2114
  r: ".5",
2099
2115
  fill: "currentColor",
2100
2116
  key: "kqv944"
2101
- }]]), Ct = M("tags", [
2117
+ }]]), wt = A("tags", [
2102
2118
  ["path", {
2103
2119
  d: "M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",
2104
2120
  key: "16rjxf"
@@ -2114,7 +2130,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2114
2130
  fill: "currentColor",
2115
2131
  key: "12ikhr"
2116
2132
  }]
2117
- ]), wt = M("text-align-center", [
2133
+ ]), Tt = A("text-align-center", [
2118
2134
  ["path", {
2119
2135
  d: "M21 5H3",
2120
2136
  key: "1fi0y6"
@@ -2127,7 +2143,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2127
2143
  d: "M19 19H5",
2128
2144
  key: "vjpgq2"
2129
2145
  }]
2130
- ]), Tt = M("text-align-end", [
2146
+ ]), Et = A("text-align-end", [
2131
2147
  ["path", {
2132
2148
  d: "M21 5H3",
2133
2149
  key: "1fi0y6"
@@ -2140,7 +2156,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2140
2156
  d: "M21 19H7",
2141
2157
  key: "4cu937"
2142
2158
  }]
2143
- ]), Et = M("text-align-start", [
2159
+ ]), Dt = A("text-align-start", [
2144
2160
  ["path", {
2145
2161
  d: "M21 5H3",
2146
2162
  key: "1fi0y6"
@@ -2153,7 +2169,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2153
2169
  d: "M17 19H3",
2154
2170
  key: "z6ezky"
2155
2171
  }]
2156
- ]), Dt = M("trash-2", [
2172
+ ]), Ot = A("trash-2", [
2157
2173
  ["path", {
2158
2174
  d: "M10 11v6",
2159
2175
  key: "nco0om"
@@ -2174,7 +2190,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2174
2190
  d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
2175
2191
  key: "e791ji"
2176
2192
  }]
2177
- ]), Ot = M("triangle-alert", [
2193
+ ]), kt = A("triangle-alert", [
2178
2194
  ["path", {
2179
2195
  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",
2180
2196
  key: "wmoenq"
@@ -2187,7 +2203,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2187
2203
  d: "M12 17h.01",
2188
2204
  key: "p32p05"
2189
2205
  }]
2190
- ]), kt = M("truck", [
2206
+ ]), At = A("truck", [
2191
2207
  ["path", {
2192
2208
  d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",
2193
2209
  key: "wrbu53"
@@ -2212,7 +2228,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2212
2228
  r: "2",
2213
2229
  key: "19iecd"
2214
2230
  }]
2215
- ]), At = M("underline", [["path", {
2231
+ ]), jt = A("underline", [["path", {
2216
2232
  d: "M6 4v6a6 6 0 0 0 12 0V4",
2217
2233
  key: "9kb039"
2218
2234
  }], ["line", {
@@ -2221,13 +2237,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2221
2237
  y1: "20",
2222
2238
  y2: "20",
2223
2239
  key: "nun2al"
2224
- }]]), jt = M("undo-2", [["path", {
2240
+ }]]), Mt = A("undo-2", [["path", {
2225
2241
  d: "M9 14 4 9l5-5",
2226
2242
  key: "102s5s"
2227
2243
  }], ["path", {
2228
2244
  d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",
2229
2245
  key: "f3b9sd"
2230
- }]]), Mt = M("ungroup", [["rect", {
2246
+ }]]), Nt = A("ungroup", [["rect", {
2231
2247
  x: "11",
2232
2248
  y: "14",
2233
2249
  width: "10",
@@ -2241,7 +2257,10 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2241
2257
  height: "7",
2242
2258
  rx: "2",
2243
2259
  key: "1ljebb"
2244
- }]]), Nt = M("upload", [
2260
+ }]]), Pt = A("unlink-2", [["path", {
2261
+ d: "M15 7h2a5 5 0 0 1 0 10h-2m-6 0H7A5 5 0 0 1 7 7h2",
2262
+ key: "1re2ne"
2263
+ }]]), Ft = A("upload", [
2245
2264
  ["path", {
2246
2265
  d: "M12 3v12",
2247
2266
  key: "1x0j5s"
@@ -2254,7 +2273,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2254
2273
  d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
2255
2274
  key: "ih7n3h"
2256
2275
  }]
2257
- ]), Pt = M("user-plus", [
2276
+ ]), It = A("user-plus", [
2258
2277
  ["path", {
2259
2278
  d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
2260
2279
  key: "1yyitq"
@@ -2279,7 +2298,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2279
2298
  y2: "11",
2280
2299
  key: "1shjgl"
2281
2300
  }]
2282
- ]), Ft = M("user", [["path", {
2301
+ ]), Lt = A("user", [["path", {
2283
2302
  d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",
2284
2303
  key: "975kel"
2285
2304
  }], ["circle", {
@@ -2287,7 +2306,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2287
2306
  cy: "7",
2288
2307
  r: "4",
2289
2308
  key: "17ys0d"
2290
- }]]), It = M("video", [["path", {
2309
+ }]]), Rt = A("video", [["path", {
2291
2310
  d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
2292
2311
  key: "ftymec"
2293
2312
  }], ["rect", {
@@ -2297,7 +2316,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2297
2316
  height: "12",
2298
2317
  rx: "2",
2299
2318
  key: "158x01"
2300
- }]]), Lt = M("wand-sparkles", [
2319
+ }]]), zt = A("wand-sparkles", [
2301
2320
  ["path", {
2302
2321
  d: "m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",
2303
2322
  key: "ul74o6"
@@ -2330,13 +2349,13 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2330
2349
  d: "M11 3H9",
2331
2350
  key: "1obp7u"
2332
2351
  }]
2333
- ]), Rt = M("x", [["path", {
2352
+ ]), Bt = A("x", [["path", {
2334
2353
  d: "M18 6 6 18",
2335
2354
  key: "1bl5f8"
2336
2355
  }], ["path", {
2337
2356
  d: "m6 6 12 12",
2338
2357
  key: "d8bk6v"
2339
- }]]), zt = M("zoom-in", [
2358
+ }]]), Vt = A("zoom-in", [
2340
2359
  ["circle", {
2341
2360
  cx: "11",
2342
2361
  cy: "11",
@@ -2364,7 +2383,7 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2364
2383
  y2: "11",
2365
2384
  key: "durymu"
2366
2385
  }]
2367
- ]), Bt = M("zoom-out", [
2386
+ ]), Ht = A("zoom-out", [
2368
2387
  ["circle", {
2369
2388
  cx: "11",
2370
2389
  cy: "11",
@@ -2385,11 +2404,11 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2385
2404
  y2: "11",
2386
2405
  key: "durymu"
2387
2406
  }]
2388
- ]), Vt = ({ filter: e, onSelect: t, currentValue: n }) => {
2407
+ ]), Ut = ({ filter: e, onSelect: t, currentValue: n }) => {
2389
2408
  let [r, i] = g(!1), a = h(null), o = h(null), [s, c] = g({
2390
2409
  top: 0,
2391
2410
  left: 0
2392
- }), l = C((e) => e.strataTokens), u = C((e) => e.builderTheme), d = l.filter(e);
2411
+ }), l = re((e) => e.strataTokens), u = re((e) => e.builderTheme), d = l.filter(e);
2393
2412
  return f(() => {
2394
2413
  if (!r) return;
2395
2414
  let e = (e) => {
@@ -2479,15 +2498,15 @@ var j = () => d(A), re = l(({ color: e, size: t, strokeWidth: n, absoluteStrokeW
2479
2498
  }, e.key);
2480
2499
  })
2481
2500
  }), document.body)] });
2482
- }, Ht = {
2501
+ }, Wt = {
2483
2502
  backgroundImage: "linear-gradient(45deg, #8884 25%, transparent 25%), linear-gradient(-45deg, #8884 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #8884 75%), linear-gradient(-45deg, transparent 75%, #8884 75%)",
2484
2503
  backgroundSize: "8px 8px",
2485
2504
  backgroundPosition: "0 0, 0 4px, 4px -4px, -4px 0",
2486
2505
  backgroundColor: "#fff"
2487
- }, Ut = 232, $ = (e, t, n) => Math.min(n, Math.max(t, e)), Wt = [], Gt = (e) => {
2488
- Wt = [e, ...Wt.filter((t) => t !== e)].slice(0, 8);
2489
- }, Kt = (e) => (e || "").trim().toLowerCase().startsWith("rgb") ? "rgba" : "hex";
2490
- function qt(e, t, n) {
2506
+ }, Gt = 232, $ = (e, t, n) => Math.min(n, Math.max(t, e)), Kt = [], qt = (e) => {
2507
+ Kt = [e, ...Kt.filter((t) => t !== e)].slice(0, 8);
2508
+ }, Jt = (e) => (e || "").trim().toLowerCase().startsWith("rgb") ? "rgba" : "hex";
2509
+ function Yt(e, t, n) {
2491
2510
  let r = h(null), i = h(!1), a = (t) => {
2492
2511
  let n = r.current?.getBoundingClientRect();
2493
2512
  !n || !n.width || !n.height || e($((t.clientX - n.left) / n.width, 0, 1), $((t.clientY - n.top) / n.height, 0, 1));
@@ -2522,139 +2541,139 @@ function qt(e, t, n) {
2522
2541
  }
2523
2542
  };
2524
2543
  }
2525
- var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, compact: d, accentColor: _, swatches: ee, tokens: b, resolve: x }) => {
2526
- let S = c || "var(--builder-text-color, #e2e8f0)", C = l || "var(--builder-background-color, #0e1526)", w = _ || "var(--theme-accent, #6366f1)", T = "rgba(128,128,128,0.35)", [E, D] = g(!1), [O, k] = g(null), [A, ne] = g(() => Kt(t)), [j, re] = g(null), M = h(null), N = h(null), P = h(null), F = b?.find((e) => e.value === t), ie = m(() => /^\s*var\(/.test(t) ? x?.(t) ?? F?.color ?? t : t, [
2544
+ var Xt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, compact: d, accentColor: _, swatches: ee, tokens: b, resolve: ne }) => {
2545
+ let x = c || "var(--builder-text-color, #e2e8f0)", re = l || "var(--builder-background-color, #0e1526)", S = _ || "var(--theme-accent, #6366f1)", C = "rgba(128,128,128,0.35)", [w, ie] = g(!1), [T, E] = g(null), [D, O] = g(() => Jt(t)), [k, ae] = g(null), A = h(null), j = h(null), M = h(null), N = b?.find((e) => e.value === t), oe = m(() => /^\s*var\(/.test(t) ? ne?.(t) ?? N?.color ?? t : t, [
2527
2546
  t,
2528
- x,
2529
- F
2530
- ]), I = m(() => n(ie), [ie]), L = !t || t.trim().toLowerCase() === "transparent", ae = !L && !I, R = h(I ?? {
2547
+ ne,
2548
+ N
2549
+ ]), P = m(() => n(oe), [oe]), F = !t || t.trim().toLowerCase() === "transparent", se = !F && !P, I = h(P ?? {
2531
2550
  r: 255,
2532
2551
  g: 255,
2533
2552
  b: 255
2534
2553
  });
2535
- I && !L && (R.current = I);
2536
- let [z, oe] = g(() => a(R.current)), [B, V] = g(() => L ? 0 : I?.a ?? 1), H = h(z);
2537
- H.current = z;
2538
- let U = h(B);
2539
- U.current = B;
2540
- let W = h(A);
2541
- W.current = A;
2542
- let G = h(null);
2554
+ P && !F && (I.current = P);
2555
+ let [L, ce] = g(() => a(I.current)), [R, z] = g(() => F ? 0 : P?.a ?? 1), B = h(L);
2556
+ B.current = L;
2557
+ let V = h(R);
2558
+ V.current = R;
2559
+ let H = h(D);
2560
+ H.current = D;
2561
+ let U = h(null);
2543
2562
  f(() => {
2544
- t === G.current && !F || (I && !L ? (oe((e) => a(I, e)), V(I.a), F || ne(Kt(t))) : L && V(0));
2563
+ t === U.current && !N || (P && !F ? (ce((e) => a(P, e)), z(P.a), N || O(Jt(t))) : F && z(0));
2545
2564
  }, [
2546
2565
  t,
2547
- I,
2548
- L,
2549
- F
2566
+ P,
2567
+ F,
2568
+ N
2550
2569
  ]);
2551
- let K = u((e, t, n = W.current) => {
2570
+ let W = u((e, t, n = H.current) => {
2552
2571
  let a = r(e.h, e.s, e.v);
2553
- R.current = a;
2572
+ I.current = a;
2554
2573
  let c = {
2555
2574
  ...a,
2556
2575
  a: t
2557
2576
  }, l = n === "rgba" ? o(c) : i(c);
2558
- G.current = l, oe(e), V(t), s(l);
2559
- }, [s]), q = u((e, t) => {
2577
+ U.current = l, ce(e), z(t), s(l);
2578
+ }, [s]), G = u((e, t) => {
2560
2579
  if (t.trim().toLowerCase() === "transparent") {
2561
- G.current = "transparent", V(0), s("transparent");
2580
+ U.current = "transparent", z(0), s("transparent");
2562
2581
  return;
2563
2582
  }
2564
- let n = /^\s*rgb/i.test(t) ? "rgba" : W.current;
2565
- n !== W.current && ne(n), K(a(e, H.current), e.a, n);
2566
- }, [K, s]), se = () => {
2567
- if (O === null) return;
2568
- let e = n(O);
2569
- e && O.trim() && q(e, O), k(null);
2570
- }, J = O !== null && O.trim() !== "" && !n(O), ce = O ?? F?.label ?? t, Y = u(() => {
2571
- let e = N.current?.getBoundingClientRect();
2583
+ let n = /^\s*rgb/i.test(t) ? "rgba" : H.current;
2584
+ n !== H.current && O(n), W(a(e, B.current), e.a, n);
2585
+ }, [W, s]), le = () => {
2586
+ if (T === null) return;
2587
+ let e = n(T);
2588
+ e && T.trim() && G(e, T), E(null);
2589
+ }, K = T !== null && T.trim() !== "" && !n(T), ue = T ?? N?.label ?? t, q = u(() => {
2590
+ let e = j.current?.getBoundingClientRect();
2572
2591
  if (!e) return;
2573
- let t = P.current?.offsetHeight ?? 340, n = $(e.right - Ut, 8, Math.max(8, window.innerWidth - Ut - 8)), r = e.bottom + 6, i = r + t > window.innerHeight - 8 ? Math.max(8, e.top - t - 6) : r;
2574
- re({
2592
+ let t = M.current?.offsetHeight ?? 340, n = $(e.right - Gt, 8, Math.max(8, window.innerWidth - Gt - 8)), r = e.bottom + 6, i = r + t > window.innerHeight - 8 ? Math.max(8, e.top - t - 6) : r;
2593
+ ae({
2575
2594
  top: i,
2576
2595
  left: n
2577
2596
  });
2578
2597
  }, []);
2579
2598
  p(() => {
2580
- E && Y();
2581
- }, [E, Y]);
2582
- let X = u((e = !1) => {
2583
- D(!1), !L && I && Gt(i({
2584
- ...R.current,
2599
+ w && q();
2600
+ }, [w, q]);
2601
+ let J = u((e = !1) => {
2602
+ ie(!1), !F && P && qt(i({
2603
+ ...I.current,
2585
2604
  a: 1
2586
- })), e && N.current?.focus();
2587
- }, [L, I]);
2605
+ })), e && j.current?.focus();
2606
+ }, [F, P]);
2588
2607
  f(() => {
2589
- if (!E) return;
2608
+ if (!w) return;
2590
2609
  let e = (e) => {
2591
2610
  let t = e.target;
2592
- P.current?.contains(t) || N.current?.contains(t) || X();
2611
+ M.current?.contains(t) || j.current?.contains(t) || J();
2593
2612
  }, t = (e) => {
2594
- e.key === "Escape" && (e.stopPropagation(), X(!0));
2613
+ e.key === "Escape" && (e.stopPropagation(), J(!0));
2595
2614
  }, n = (e) => {
2596
- P.current?.contains(e.target) || X();
2615
+ M.current?.contains(e.target) || J();
2597
2616
  };
2598
- return document.addEventListener("pointerdown", e, !0), document.addEventListener("keydown", t, !0), window.addEventListener("scroll", n, !0), window.addEventListener("resize", Y), () => {
2599
- document.removeEventListener("pointerdown", e, !0), document.removeEventListener("keydown", t, !0), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", Y);
2617
+ return document.addEventListener("pointerdown", e, !0), document.addEventListener("keydown", t, !0), window.addEventListener("scroll", n, !0), window.addEventListener("resize", q), () => {
2618
+ document.removeEventListener("pointerdown", e, !0), document.removeEventListener("keydown", t, !0), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", q);
2600
2619
  };
2601
2620
  }, [
2602
- E,
2603
- X,
2604
- Y
2621
+ w,
2622
+ J,
2623
+ q
2605
2624
  ]);
2606
- let le = qt((e, t) => K({
2607
- ...H.current,
2625
+ let Y = Yt((e, t) => W({
2626
+ ...B.current,
2608
2627
  s: e * 100,
2609
2628
  v: (1 - t) * 100
2610
- }, U.current === 0 ? 1 : U.current), (e, t) => K({
2611
- ...H.current,
2612
- s: $(H.current.s + e, 0, 100),
2613
- v: $(H.current.v + t, 0, 100)
2614
- }, U.current === 0 ? 1 : U.current), () => void 0), ue = qt((e) => K({
2615
- ...H.current,
2629
+ }, V.current === 0 ? 1 : V.current), (e, t) => W({
2630
+ ...B.current,
2631
+ s: $(B.current.s + e, 0, 100),
2632
+ v: $(B.current.v + t, 0, 100)
2633
+ }, V.current === 0 ? 1 : V.current), () => void 0), de = Yt((e) => W({
2634
+ ...B.current,
2616
2635
  h: e * 360
2617
- }, U.current === 0 ? 1 : U.current), (e) => K({
2618
- ...H.current,
2619
- h: $(H.current.h + e * 2, 0, 360)
2620
- }, U.current === 0 ? 1 : U.current), () => void 0), de = qt((e) => K(H.current, Math.round(e * 100) / 100), (e) => K(H.current, $(Math.round((U.current + e / 100) * 100) / 100, 0, 1)), () => void 0), Z = r(z.h, z.s, z.v), fe = `rgb(${Z.r}, ${Z.g}, ${Z.b})`, pe = L ? "transparent" : ae ? t : I ? o(I) : "transparent", Q = L, me = typeof window < "u" && "EyeDropper" in window, he = async () => {
2636
+ }, V.current === 0 ? 1 : V.current), (e) => W({
2637
+ ...B.current,
2638
+ h: $(B.current.h + e * 2, 0, 360)
2639
+ }, V.current === 0 ? 1 : V.current), () => void 0), fe = Yt((e) => W(B.current, Math.round(e * 100) / 100), (e) => W(B.current, $(Math.round((V.current + e / 100) * 100) / 100, 0, 1)), () => void 0), X = r(L.h, L.s, L.v), pe = `rgb(${X.r}, ${X.g}, ${X.b})`, me = F ? "transparent" : se ? t : P ? o(P) : "transparent", Z = F, he = typeof window < "u" && "EyeDropper" in window, ge = async () => {
2621
2640
  try {
2622
2641
  let e = window.EyeDropper, t = await new e().open(), r = n(t.sRGBHex);
2623
- r && q({
2642
+ r && G({
2624
2643
  ...r,
2625
- a: U.current === 0 ? 1 : U.current
2644
+ a: V.current === 0 ? 1 : V.current
2626
2645
  }, t.sRGBHex);
2627
2646
  } catch {}
2628
- }, ge = () => {
2629
- let e = A === "hex" ? "rgba" : "hex";
2630
- ne(e), !L && I && K(H.current, U.current === 0 ? 1 : U.current, e);
2631
- }, _e = (e) => {
2632
- e ? (G.current = "transparent", V(0), s("transparent")) : K(H.current, 1);
2633
- }, ve = [...ee ?? [], ...Wt.filter((e) => !(ee ?? []).includes(e))].slice(0, 14), ye = /* @__PURE__ */ v("input", {
2647
+ }, _e = () => {
2648
+ let e = D === "hex" ? "rgba" : "hex";
2649
+ O(e), !F && P && W(B.current, V.current === 0 ? 1 : V.current, e);
2650
+ }, ve = (e) => {
2651
+ e ? (U.current = "transparent", z(0), s("transparent")) : W(B.current, 1);
2652
+ }, ye = [...ee ?? [], ...Kt.filter((e) => !(ee ?? []).includes(e))].slice(0, 14), be = /* @__PURE__ */ v("input", {
2634
2653
  type: "text",
2635
- value: ce,
2654
+ value: ue,
2636
2655
  spellCheck: !1,
2637
2656
  autoComplete: "off",
2638
2657
  "aria-label": e ? `${e} colour code` : "Colour code",
2639
- "aria-invalid": J || void 0,
2658
+ "aria-invalid": K || void 0,
2640
2659
  placeholder: "#3b82f6",
2641
2660
  onFocus: (e) => e.currentTarget.select(),
2642
2661
  onChange: (e) => {
2643
2662
  let t = e.target.value;
2644
- k(t);
2663
+ E(t);
2645
2664
  let c = n(t);
2646
2665
  if (c && t.trim()) {
2647
- let e = /^\s*rgb/i.test(t) ? "rgba" : W.current;
2648
- if (t.trim().toLowerCase() === "transparent") G.current = "transparent", s("transparent");
2666
+ let e = /^\s*rgb/i.test(t) ? "rgba" : H.current;
2667
+ if (t.trim().toLowerCase() === "transparent") U.current = "transparent", s("transparent");
2649
2668
  else {
2650
- let t = a(c, H.current), n = r(t.h, t.s, t.v), l = e === "rgba" ? o({
2669
+ let t = a(c, B.current), n = r(t.h, t.s, t.v), l = e === "rgba" ? o({
2651
2670
  ...n,
2652
2671
  a: c.a
2653
2672
  }) : i({
2654
2673
  ...n,
2655
2674
  a: c.a
2656
2675
  });
2657
- G.current = l, oe(t), V(c.a), s(l);
2676
+ U.current = l, ce(t), z(c.a), s(l);
2658
2677
  }
2659
2678
  }
2660
2679
  },
@@ -2663,82 +2682,83 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2663
2682
  if (!t) return;
2664
2683
  e.preventDefault();
2665
2684
  let r = n(t);
2666
- r ? (q(r, t), k(null)) : k(t);
2685
+ r ? (G(r, t), E(null)) : E(t);
2667
2686
  },
2668
- onBlur: se,
2687
+ onBlur: le,
2669
2688
  onKeyDown: (e) => {
2670
- e.key === "Enter" ? (e.preventDefault(), se(), e.target.blur()) : e.key === "Escape" && (k(null), e.target.blur());
2689
+ e.key === "Enter" ? (e.preventDefault(), le(), e.target.blur()) : e.key === "Escape" && (E(null), e.target.blur());
2671
2690
  },
2672
2691
  className: `${d ? "flex-1 min-w-0" : "w-24"} bg-transparent font-mono text-xs outline-none rounded px-1.5 py-1 border`,
2673
2692
  style: {
2674
- color: S,
2675
- borderColor: J ? "#f43f5e" : "transparent"
2693
+ color: N && T === null ? S : x,
2694
+ borderColor: K ? "#f43f5e" : "transparent"
2676
2695
  },
2696
+ title: N ? `${N.hint ? `${N.hint} · ` : ""}${N.label} in Strata` : void 0,
2677
2697
  onMouseEnter: (e) => {
2678
- J || (e.currentTarget.style.borderColor = T);
2698
+ K || (e.currentTarget.style.borderColor = C);
2679
2699
  },
2680
2700
  onMouseLeave: (e) => {
2681
- !J && document.activeElement !== e.currentTarget && (e.currentTarget.style.borderColor = "transparent");
2701
+ !K && document.activeElement !== e.currentTarget && (e.currentTarget.style.borderColor = "transparent");
2682
2702
  }
2683
- }), be = /* @__PURE__ */ y("button", {
2684
- ref: N,
2703
+ }), xe = /* @__PURE__ */ y("button", {
2704
+ ref: j,
2685
2705
  type: "button",
2686
- onClick: () => D((e) => !e),
2706
+ onClick: () => ie((e) => !e),
2687
2707
  "aria-haspopup": "dialog",
2688
- "aria-expanded": E,
2708
+ "aria-expanded": w,
2689
2709
  "aria-label": `${e ?? "Colour"}: ${t || "none"}. Open colour picker`,
2690
2710
  className: "relative w-6 h-6 rounded-md overflow-hidden shrink-0 focus:outline-none",
2691
2711
  style: {
2692
- ...Ht,
2693
- border: `1px solid ${T}`,
2694
- boxShadow: E ? `0 0 0 2px ${w}` : void 0
2712
+ ...Wt,
2713
+ border: `1px solid ${C}`,
2714
+ boxShadow: w ? `0 0 0 2px ${S}` : void 0
2695
2715
  },
2696
2716
  children: [/* @__PURE__ */ v("span", {
2697
2717
  className: "absolute inset-0",
2698
- style: { backgroundColor: pe }
2699
- }), L && /* @__PURE__ */ v("span", { className: "absolute left-0 right-0 top-1/2 h-0.5 bg-rose-500 rotate-45 scale-110" })]
2700
- }), xe = M.current?.closest(".plexo-editor") ?? (typeof document < "u" ? document.body : null), Se = E && xe ? te.createPortal(/* @__PURE__ */ y("div", {
2701
- ref: P,
2718
+ style: { backgroundColor: me }
2719
+ }), F && /* @__PURE__ */ v("span", { className: "absolute left-0 right-0 top-1/2 h-0.5 bg-rose-500 rotate-45 scale-110" })]
2720
+ }), Se = A.current?.closest(".plexo-editor") ?? (typeof document < "u" ? document.body : null), Ce = w && Se ? te.createPortal(/* @__PURE__ */ y("div", {
2721
+ ref: M,
2702
2722
  role: "dialog",
2703
2723
  "aria-label": "Colour picker",
2704
2724
  tabIndex: -1,
2705
2725
  style: {
2706
2726
  position: "fixed",
2707
- top: j?.top ?? 0,
2708
- left: j?.left ?? 0,
2709
- visibility: j ? "visible" : "hidden",
2727
+ top: k?.top ?? 0,
2728
+ left: k?.left ?? 0,
2729
+ visibility: k ? "visible" : "hidden",
2710
2730
  zIndex: 2147483e3,
2711
- width: Ut,
2731
+ width: Gt,
2712
2732
  boxSizing: "border-box",
2713
2733
  padding: 12,
2714
2734
  display: "flex",
2715
2735
  flexDirection: "column",
2716
2736
  gap: 12,
2717
2737
  borderRadius: 12,
2718
- border: `1px solid ${T}`,
2738
+ border: `1px solid ${C}`,
2719
2739
  boxShadow: "0 16px 40px rgba(0,0,0,0.45)",
2720
- backgroundColor: C,
2721
- color: S,
2740
+ backgroundColor: re,
2741
+ color: x,
2722
2742
  fontSize: 12
2723
2743
  },
2724
2744
  children: [
2725
2745
  /* @__PURE__ */ y("div", {
2726
- ref: le.ref,
2727
- ...le.props,
2746
+ ref: Y.ref,
2747
+ ...Y.props,
2728
2748
  role: "slider",
2729
2749
  "aria-label": "Saturation and brightness",
2730
- "aria-valuetext": `Saturation ${Math.round(z.s)}%, brightness ${Math.round(z.v)}%`,
2731
- "aria-valuenow": Math.round(z.s),
2750
+ "aria-valuetext": `Saturation ${Math.round(L.s)}%, brightness ${Math.round(L.v)}%`,
2751
+ "aria-valuenow": Math.round(L.s),
2732
2752
  style: {
2733
- ...le.props.style,
2753
+ ...Y.props.style,
2734
2754
  position: "relative",
2735
2755
  height: 120,
2736
2756
  borderRadius: 8,
2737
2757
  cursor: "crosshair",
2738
2758
  overflow: "hidden",
2739
- opacity: Q ? .35 : 1,
2740
- pointerEvents: Q ? "none" : "auto",
2741
- backgroundColor: `hsl(${z.h}, 100%, 50%)`
2759
+ opacity: Z ? .35 : 1,
2760
+ pointerEvents: Z ? "none" : "auto",
2761
+ backgroundColor: `hsl(${L.h}, 100%, 50%)`
2742
2762
  },
2743
2763
  children: [
2744
2764
  /* @__PURE__ */ v("div", { style: {
@@ -2753,8 +2773,8 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2753
2773
  } }),
2754
2774
  /* @__PURE__ */ v("div", { style: {
2755
2775
  position: "absolute",
2756
- left: `${z.s}%`,
2757
- bottom: `${z.v}%`,
2776
+ left: `${L.s}%`,
2777
+ bottom: `${L.v}%`,
2758
2778
  width: 14,
2759
2779
  height: 14,
2760
2780
  marginLeft: -7,
@@ -2762,7 +2782,7 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2762
2782
  borderRadius: 999,
2763
2783
  border: "2px solid #fff",
2764
2784
  boxShadow: "0 0 0 1px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.4)",
2765
- backgroundColor: fe,
2785
+ backgroundColor: pe,
2766
2786
  pointerEvents: "none"
2767
2787
  } })
2768
2788
  ]
@@ -2773,9 +2793,9 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2773
2793
  alignItems: "center",
2774
2794
  gap: 8
2775
2795
  },
2776
- children: [me && /* @__PURE__ */ v("button", {
2796
+ children: [he && /* @__PURE__ */ v("button", {
2777
2797
  type: "button",
2778
- onClick: he,
2798
+ onClick: ge,
2779
2799
  title: "Pick a colour from the screen",
2780
2800
  "aria-label": "Pick a colour from the screen",
2781
2801
  style: {
@@ -2786,9 +2806,9 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2786
2806
  height: 28,
2787
2807
  flex: "none",
2788
2808
  borderRadius: 8,
2789
- border: `1px solid ${T}`,
2809
+ border: `1px solid ${C}`,
2790
2810
  background: "transparent",
2791
- color: S,
2811
+ color: x,
2792
2812
  cursor: "pointer"
2793
2813
  },
2794
2814
  children: /* @__PURE__ */ y("svg", {
@@ -2808,28 +2828,28 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2808
2828
  ]
2809
2829
  })
2810
2830
  }), /* @__PURE__ */ v("div", {
2811
- ref: ue.ref,
2812
- ...ue.props,
2831
+ ref: de.ref,
2832
+ ...de.props,
2813
2833
  role: "slider",
2814
2834
  "aria-label": "Hue",
2815
2835
  "aria-valuemin": 0,
2816
2836
  "aria-valuemax": 360,
2817
- "aria-valuenow": Math.round(z.h),
2837
+ "aria-valuenow": Math.round(L.h),
2818
2838
  style: {
2819
- ...ue.props.style,
2839
+ ...de.props.style,
2820
2840
  position: "relative",
2821
2841
  flex: 1,
2822
2842
  height: 10,
2823
2843
  borderRadius: 999,
2824
2844
  cursor: "pointer",
2825
- opacity: Q ? .35 : 1,
2826
- pointerEvents: Q ? "none" : "auto",
2845
+ opacity: Z ? .35 : 1,
2846
+ pointerEvents: Z ? "none" : "auto",
2827
2847
  background: "linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)"
2828
2848
  },
2829
2849
  children: /* @__PURE__ */ v("div", { style: {
2830
2850
  position: "absolute",
2831
2851
  top: "50%",
2832
- left: `${z.h / 360 * 100}%`,
2852
+ left: `${L.h / 360 * 100}%`,
2833
2853
  width: 14,
2834
2854
  height: 14,
2835
2855
  marginLeft: -7,
@@ -2837,7 +2857,7 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2837
2857
  borderRadius: 999,
2838
2858
  border: "2px solid #fff",
2839
2859
  boxShadow: "0 0 0 1px rgba(0,0,0,0.4)",
2840
- backgroundColor: `hsl(${z.h}, 100%, 50%)`,
2860
+ backgroundColor: `hsl(${L.h}, 100%, 50%)`,
2841
2861
  pointerEvents: "none"
2842
2862
  } })
2843
2863
  })]
@@ -2860,35 +2880,35 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2860
2880
  fontWeight: 500,
2861
2881
  opacity: .8
2862
2882
  },
2863
- children: [Math.round(B * 100), "%"]
2883
+ children: [Math.round(R * 100), "%"]
2864
2884
  })]
2865
2885
  }), /* @__PURE__ */ y("div", {
2866
- ref: de.ref,
2867
- ...de.props,
2886
+ ref: fe.ref,
2887
+ ...fe.props,
2868
2888
  role: "slider",
2869
2889
  "aria-label": "Opacity",
2870
2890
  "aria-valuemin": 0,
2871
2891
  "aria-valuemax": 100,
2872
- "aria-valuenow": Math.round(B * 100),
2892
+ "aria-valuenow": Math.round(R * 100),
2873
2893
  style: {
2874
- ...de.props.style,
2875
- ...Ht,
2894
+ ...fe.props.style,
2895
+ ...Wt,
2876
2896
  position: "relative",
2877
2897
  height: 10,
2878
2898
  borderRadius: 999,
2879
2899
  cursor: "pointer",
2880
- opacity: Q ? .35 : 1,
2881
- pointerEvents: Q ? "none" : "auto"
2900
+ opacity: Z ? .35 : 1,
2901
+ pointerEvents: Z ? "none" : "auto"
2882
2902
  },
2883
2903
  children: [/* @__PURE__ */ v("div", { style: {
2884
2904
  position: "absolute",
2885
2905
  inset: 0,
2886
2906
  borderRadius: 999,
2887
- background: `linear-gradient(to right, rgba(${Z.r},${Z.g},${Z.b},0), ${fe})`
2907
+ background: `linear-gradient(to right, rgba(${X.r},${X.g},${X.b},0), ${pe})`
2888
2908
  } }), /* @__PURE__ */ v("div", { style: {
2889
2909
  position: "absolute",
2890
2910
  top: "50%",
2891
- left: `${B * 100}%`,
2911
+ left: `${R * 100}%`,
2892
2912
  width: 14,
2893
2913
  height: 14,
2894
2914
  marginLeft: -7,
@@ -2896,7 +2916,7 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2896
2916
  borderRadius: 999,
2897
2917
  border: "2px solid #fff",
2898
2918
  boxShadow: "0 0 0 1px rgba(0,0,0,0.4)",
2899
- backgroundColor: fe,
2919
+ backgroundColor: pe,
2900
2920
  pointerEvents: "none"
2901
2921
  } })]
2902
2922
  })]
@@ -2913,75 +2933,101 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2913
2933
  children: "Brand colours"
2914
2934
  }),
2915
2935
  /* @__PURE__ */ v("div", {
2936
+ role: "listbox",
2937
+ "aria-label": "Brand colours",
2916
2938
  style: {
2917
2939
  display: "flex",
2918
- flexWrap: "wrap",
2919
- gap: 6
2940
+ flexDirection: "column",
2941
+ gap: 2,
2942
+ maxHeight: 132,
2943
+ overflowY: "auto"
2920
2944
  },
2921
2945
  children: b.map((e) => {
2922
2946
  let n = e.value === t;
2923
- return /* @__PURE__ */ v("button", {
2947
+ return /* @__PURE__ */ y("button", {
2924
2948
  type: "button",
2925
- title: e.label,
2949
+ role: "option",
2950
+ "aria-selected": n,
2951
+ title: e.hint ? `${e.hint} — ${e.label}` : e.label,
2926
2952
  "aria-label": `Use ${e.label}`,
2927
- "aria-pressed": n,
2928
2953
  onClick: () => {
2929
- G.current = e.value, s(e.value);
2954
+ U.current = e.value, s(e.value);
2930
2955
  },
2931
2956
  style: {
2932
- ...Ht,
2933
- position: "relative",
2934
- width: 22,
2935
- height: 22,
2936
- borderRadius: 7,
2937
- border: `1px solid ${T}`,
2938
- boxShadow: n ? `0 0 0 2px ${w}` : void 0,
2939
- padding: 0,
2957
+ display: "flex",
2958
+ alignItems: "center",
2959
+ gap: 8,
2960
+ padding: "3px 4px",
2961
+ borderRadius: 6,
2962
+ border: "none",
2963
+ background: n ? "rgba(128,128,128,0.18)" : "transparent",
2964
+ color: x,
2940
2965
  cursor: "pointer",
2941
- overflow: "hidden"
2966
+ textAlign: "left"
2942
2967
  },
2943
- children: /* @__PURE__ */ v("span", { style: {
2944
- position: "absolute",
2945
- inset: 0,
2946
- backgroundColor: e.color
2947
- } })
2968
+ children: [/* @__PURE__ */ v("span", {
2969
+ style: {
2970
+ ...Wt,
2971
+ position: "relative",
2972
+ width: 18,
2973
+ height: 18,
2974
+ borderRadius: 5,
2975
+ border: `1px solid ${C}`,
2976
+ flex: "none",
2977
+ overflow: "hidden"
2978
+ },
2979
+ children: /* @__PURE__ */ v("span", { style: {
2980
+ position: "absolute",
2981
+ inset: 0,
2982
+ backgroundColor: e.color
2983
+ } })
2984
+ }), /* @__PURE__ */ v("span", {
2985
+ style: {
2986
+ fontFamily: "ui-monospace, monospace",
2987
+ fontSize: 10.5,
2988
+ overflow: "hidden",
2989
+ textOverflow: "ellipsis",
2990
+ whiteSpace: "nowrap"
2991
+ },
2992
+ children: e.label
2993
+ })]
2948
2994
  }, e.value);
2949
2995
  })
2950
2996
  }),
2951
- F && /* @__PURE__ */ y("div", {
2997
+ N && /* @__PURE__ */ y("div", {
2952
2998
  style: {
2953
2999
  fontSize: 11,
2954
3000
  opacity: .7
2955
3001
  },
2956
3002
  children: [
2957
3003
  "Using “",
2958
- F.label,
2959
- "” — it changes if your brand does."
3004
+ N.label,
3005
+ "” — it changes if your brand does. Use the unlink button to keep this colour."
2960
3006
  ]
2961
3007
  })
2962
3008
  ]
2963
3009
  }),
2964
- ve.length > 0 && /* @__PURE__ */ v("div", {
3010
+ ye.length > 0 && /* @__PURE__ */ v("div", {
2965
3011
  style: {
2966
3012
  display: "flex",
2967
3013
  flexWrap: "wrap",
2968
3014
  gap: 6
2969
3015
  },
2970
- children: ve.map((e) => /* @__PURE__ */ v("button", {
3016
+ children: ye.map((e) => /* @__PURE__ */ v("button", {
2971
3017
  type: "button",
2972
3018
  title: e,
2973
3019
  "aria-label": `Use ${e}`,
2974
3020
  onClick: () => {
2975
3021
  let t = n(e);
2976
- t && q(t, e);
3022
+ t && G(t, e);
2977
3023
  },
2978
3024
  style: {
2979
- ...Ht,
3025
+ ...Wt,
2980
3026
  position: "relative",
2981
3027
  width: 20,
2982
3028
  height: 20,
2983
3029
  borderRadius: 6,
2984
- border: `1px solid ${T}`,
3030
+ border: `1px solid ${C}`,
2985
3031
  padding: 0,
2986
3032
  cursor: "pointer",
2987
3033
  overflow: "hidden"
@@ -2999,24 +3045,24 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
2999
3045
  alignItems: "center",
3000
3046
  justifyContent: "space-between",
3001
3047
  paddingTop: 10,
3002
- borderTop: `1px solid ${T}`
3048
+ borderTop: `1px solid ${C}`
3003
3049
  },
3004
3050
  children: [/* @__PURE__ */ v("button", {
3005
3051
  type: "button",
3006
- onClick: ge,
3007
- title: `Write colours as ${A === "hex" ? "RGBA" : "HEX"}`,
3052
+ onClick: _e,
3053
+ title: `Write colours as ${D === "hex" ? "RGBA" : "HEX"}`,
3008
3054
  style: {
3009
3055
  padding: "3px 8px",
3010
3056
  borderRadius: 6,
3011
- border: `1px solid ${T}`,
3057
+ border: `1px solid ${C}`,
3012
3058
  background: "transparent",
3013
- color: S,
3059
+ color: x,
3014
3060
  cursor: "pointer",
3015
3061
  fontSize: 10,
3016
3062
  fontWeight: 700,
3017
3063
  letterSpacing: "0.05em"
3018
3064
  },
3019
- children: A === "hex" ? "HEX" : "RGBA"
3065
+ children: D === "hex" ? "HEX" : "RGBA"
3020
3066
  }), /* @__PURE__ */ y("label", {
3021
3067
  style: {
3022
3068
  display: "flex",
@@ -3028,9 +3074,9 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
3028
3074
  children: ["Transparent", /* @__PURE__ */ v("button", {
3029
3075
  type: "button",
3030
3076
  role: "switch",
3031
- "aria-checked": L,
3077
+ "aria-checked": F,
3032
3078
  "aria-label": "Transparent",
3033
- onClick: () => _e(!L),
3079
+ onClick: () => ve(!F),
3034
3080
  style: {
3035
3081
  position: "relative",
3036
3082
  width: 30,
@@ -3039,13 +3085,13 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
3039
3085
  border: 0,
3040
3086
  padding: 0,
3041
3087
  cursor: "pointer",
3042
- backgroundColor: L ? w : "rgba(128,128,128,0.4)",
3088
+ backgroundColor: F ? S : "rgba(128,128,128,0.4)",
3043
3089
  transition: "background-color .15s"
3044
3090
  },
3045
3091
  children: /* @__PURE__ */ v("span", { style: {
3046
3092
  position: "absolute",
3047
3093
  top: 2,
3048
- left: L ? 14 : 2,
3094
+ left: F ? 14 : 2,
3049
3095
  width: 14,
3050
3096
  height: 14,
3051
3097
  borderRadius: 999,
@@ -3056,7 +3102,7 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
3056
3102
  })]
3057
3103
  })]
3058
3104
  }),
3059
- ae && !F && /* @__PURE__ */ v("p", {
3105
+ se && !N && /* @__PURE__ */ v("p", {
3060
3106
  style: {
3061
3107
  margin: 0,
3062
3108
  fontSize: 11,
@@ -3065,53 +3111,94 @@ var Jt = ({ label: e, value: t, onChange: s, textColor: c, backgroundColor: l, c
3065
3111
  children: "This colour comes from a setting the picker can't show. Picking a colour replaces it."
3066
3112
  })
3067
3113
  ]
3068
- }), xe) : null, Ce = /* @__PURE__ */ v(Vt, {
3114
+ }), Se) : null, we = (e) => {
3115
+ let t = n(e);
3116
+ return !!t && !!P && i(t) === i(P);
3117
+ }, Q = !N && !F && P ? b?.find((e) => we(e.color)) : void 0, Te = N ? /* @__PURE__ */ v("button", {
3118
+ type: "button",
3119
+ onClick: () => {
3120
+ let e = P ? i(P) : N.color;
3121
+ U.current = e, s(e);
3122
+ },
3123
+ title: `Linked to ${N.label}. Unlink to keep this colour even if the brand changes.`,
3124
+ "aria-label": `Unlink from ${N.label}`,
3125
+ className: "shrink-0 w-6 h-6 rounded-md flex items-center justify-center cursor-pointer",
3126
+ style: {
3127
+ color: S,
3128
+ border: `1px solid ${C}`,
3129
+ background: "transparent"
3130
+ },
3131
+ children: /* @__PURE__ */ v(Pt, {
3132
+ width: 13,
3133
+ height: 13
3134
+ })
3135
+ }) : Q ? /* @__PURE__ */ v("button", {
3136
+ type: "button",
3137
+ onClick: () => {
3138
+ U.current = Q.value, s(Q.value);
3139
+ },
3140
+ title: `This is ${Q.label}. Link it so it follows the brand.`,
3141
+ "aria-label": `Link to ${Q.label}`,
3142
+ className: "shrink-0 w-6 h-6 rounded-md flex items-center justify-center cursor-pointer",
3143
+ style: {
3144
+ color: x,
3145
+ opacity: .7,
3146
+ border: `1px solid ${C}`,
3147
+ background: "transparent"
3148
+ },
3149
+ children: /* @__PURE__ */ v(Fe, {
3150
+ width: 13,
3151
+ height: 13
3152
+ })
3153
+ }) : null, Ee = /* @__PURE__ */ v(Ut, {
3069
3154
  filter: (e) => e.type === "color" || /^#[0-9a-fA-F]{3,8}$|^rgba?\(|^hsla?\(/.test(e.value),
3070
3155
  onSelect: s,
3071
3156
  currentValue: t
3072
3157
  });
3073
3158
  return d ? /* @__PURE__ */ y("div", {
3074
- ref: M,
3159
+ ref: A,
3075
3160
  className: "relative flex items-center gap-1.5 w-full min-w-0",
3076
3161
  children: [
3162
+ xe,
3077
3163
  be,
3078
- ye,
3079
- Ce,
3080
- J && /* @__PURE__ */ v("span", {
3164
+ Te,
3165
+ Ee,
3166
+ K && /* @__PURE__ */ v("span", {
3081
3167
  className: "sr-only",
3082
3168
  role: "alert",
3083
3169
  children: "That isn't a colour. Try something like #3b82f6."
3084
3170
  }),
3085
- Se
3171
+ Ce
3086
3172
  ]
3087
3173
  }) : /* @__PURE__ */ y("div", {
3088
- ref: M,
3174
+ ref: A,
3089
3175
  className: "relative flex flex-col border-b border-slate-800/10 last:border-b-0 py-3",
3090
3176
  children: [
3091
3177
  /* @__PURE__ */ y("div", {
3092
3178
  className: "flex items-center justify-between gap-2",
3093
3179
  children: [e && /* @__PURE__ */ v("span", {
3094
3180
  className: "text-sm font-semibold leading-5 tracking-[0.01em]",
3095
- style: { color: S },
3181
+ style: { color: x },
3096
3182
  children: e
3097
3183
  }), /* @__PURE__ */ y("div", {
3098
3184
  className: "flex items-center gap-2 min-w-0",
3099
3185
  children: [
3100
- ye,
3101
- Ce,
3102
- be
3186
+ be,
3187
+ Te,
3188
+ Ee,
3189
+ xe
3103
3190
  ]
3104
3191
  })]
3105
3192
  }),
3106
- J && /* @__PURE__ */ v("p", {
3193
+ K && /* @__PURE__ */ v("p", {
3107
3194
  role: "alert",
3108
3195
  className: "text-[11px] text-right mt-1",
3109
3196
  style: { color: "#fb7185" },
3110
3197
  children: "That isn't a colour. Try something like #3b82f6."
3111
3198
  }),
3112
- Se
3199
+ Ce
3113
3200
  ]
3114
3201
  });
3115
3202
  };
3116
3203
  //#endregion
3117
- export { We as $, ae as $t, pt as A, Q as At, rt as B, J as Bt, bt as C, be as Ct, gt as D, ge as Dt, _t as E, _e as Et, ct as F, ue as Ft, Qe as G, W as Gt, tt as H, q as Ht, st as I, le as It, Ye as J, V as Jt, Ze as K, U as Kt, ot as L, X as Lt, dt as M, fe as Mt, ut as N, Z as Nt, ht as O, he as Ot, lt as P, de as Pt, Ge as Q, R as Qt, at as R, Y as Rt, xt as S, xe as St, vt as T, ve as Tt, et as U, K as Ut, nt as V, se as Vt, $e as W, G as Wt, qe as X, oe as Xt, Je as Y, B as Yt, Ke as Z, z as Zt, Et as _, Ee as _t, Rt as a, N as an, Re as at, Ct as b, Ce as bt, Ft as c, ne as cn, Fe as ct, Mt as d, Me as dt, L as en, Ue as et, jt as f, je as ft, Dt as g, De as gt, Ot as h, Oe as ht, zt as i, P as in, ze as it, ft as j, pe as jt, mt as k, me as kt, Pt as l, j as ln, Pe as lt, kt as m, ke as mt, Vt as n, ie as nn, Ve as nt, Lt as o, M as on, Le as ot, At as p, Ae as pt, Xe as q, H as qt, Bt as r, F as rn, Be as rt, It as s, re as sn, Ie as st, Jt as t, I as tn, He as tt, Nt as u, C as un, Ne as ut, Tt as v, Te as vt, yt as w, ye as wt, St as x, Se as xt, wt as y, we as yt, it as z, ce as zt };
3204
+ export { Ke as $, L as $t, ht as A, ge as At, at as B, q as Bt, St as C, Ce as Ct, vt as D, ye as Dt, yt as E, be as Et, ut as F, X as Ft, et as G, W as Gt, rt as H, K as Ht, lt as I, fe as It, Ze as J, V as Jt, $e as K, U as Kt, ct as L, de as Lt, pt as M, Z as Mt, ft as N, me as Nt, _t as O, ve as Ot, dt as P, pe as Pt, qe as Q, ce as Qt, st as R, Y as Rt, Ct as S, we as St, bt as T, xe as Tt, nt as U, le as Ut, it as V, ue as Vt, tt as W, G as Wt, Ye as X, z as Xt, Xe as Y, B as Yt, Je as Z, R as Zt, Ot as _, Oe as _t, Bt as a, N as an, Be as at, Tt as b, Te as bt, Lt as c, A as cn, Le as ct, Pt as d, k as dn, Pe as dt, I as en, Ge as et, Nt as f, re as fn, Ne as ft, kt as g, ke as gt, At as h, Ae as ht, Vt as i, oe as in, Ve as it, mt as j, he as jt, gt as k, _e as kt, It as l, ae as ln, Ie as lt, jt as m, je as mt, Ut as n, F as nn, Ue as nt, zt as o, M as on, ze as ot, Mt as p, Me as pt, Qe as q, H as qt, Ht as r, P as rn, He as rt, Rt as s, j as sn, Re as st, Xt as t, se as tn, We as tt, Ft as u, O as un, Fe as ut, Dt as v, De as vt, xt as w, Se as wt, wt as x, Q as xt, Et as y, Ee as yt, ot as z, J as zt };