@pol-studios/ui 1.0.7 → 1.0.9

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.
@@ -583,9 +583,9 @@ var require_moment = __commonJS({
583
583
  }
584
584
  var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, match1to2NoLeadingZero = /^[1-9]\d?/, match1to2HasZero = /^([1-9]\d|\d)/, regexes;
585
585
  regexes = {};
586
- function addRegexToken(token2, regex2, strictRegex) {
587
- regexes[token2] = isFunction27(regex2) ? regex2 : function(isStrict, localeData2) {
588
- return isStrict && strictRegex ? strictRegex : regex2;
586
+ function addRegexToken(token2, regex, strictRegex) {
587
+ regexes[token2] = isFunction27(regex) ? regex : function(isStrict, localeData2) {
588
+ return isStrict && strictRegex ? strictRegex : regex;
589
589
  };
590
590
  }
591
591
  function getParseRegexForToken(token2, config2) {
@@ -890,7 +890,7 @@ var require_moment = __commonJS({
890
890
  }
891
891
  }
892
892
  function localeMonthsParse(monthName, format6, strict) {
893
- var i16, mom, regex2;
893
+ var i16, mom, regex;
894
894
  if (this._monthsParseExact) {
895
895
  return handleStrictParse.call(this, monthName, format6, strict);
896
896
  }
@@ -912,8 +912,8 @@ var require_moment = __commonJS({
912
912
  );
913
913
  }
914
914
  if (!strict && !this._monthsParse[i16]) {
915
- regex2 = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, "");
916
- this._monthsParse[i16] = new RegExp(regex2.replace(".", ""), "i");
915
+ regex = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, "");
916
+ this._monthsParse[i16] = new RegExp(regex.replace(".", ""), "i");
917
917
  }
918
918
  if (strict && format6 === "MMMM" && this._longMonthsParse[i16].test(monthName)) {
919
919
  return i16;
@@ -1256,7 +1256,7 @@ var require_moment = __commonJS({
1256
1256
  }
1257
1257
  }
1258
1258
  function localeWeekdaysParse(weekdayName, format6, strict) {
1259
- var i16, mom, regex2;
1259
+ var i16, mom, regex;
1260
1260
  if (this._weekdaysParseExact) {
1261
1261
  return handleStrictParse$1.call(this, weekdayName, format6, strict);
1262
1262
  }
@@ -1283,8 +1283,8 @@ var require_moment = __commonJS({
1283
1283
  );
1284
1284
  }
1285
1285
  if (!this._weekdaysParse[i16]) {
1286
- regex2 = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, "");
1287
- this._weekdaysParse[i16] = new RegExp(regex2.replace(".", ""), "i");
1286
+ regex = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, "");
1287
+ this._weekdaysParse[i16] = new RegExp(regex.replace(".", ""), "i");
1288
1288
  }
1289
1289
  if (strict && format6 === "dddd" && this._fullWeekdaysParse[i16].test(weekdayName)) {
1290
1290
  return i16;
@@ -2329,14 +2329,14 @@ var require_moment = __commonJS({
2329
2329
  }
2330
2330
  return diffs + lengthDiff;
2331
2331
  }
2332
- function offset4(token2, separator2) {
2332
+ function offset4(token2, separator) {
2333
2333
  addFormatToken(token2, 0, 0, function() {
2334
2334
  var offset5 = this.utcOffset(), sign3 = "+";
2335
2335
  if (offset5 < 0) {
2336
2336
  offset5 = -offset5;
2337
2337
  sign3 = "-";
2338
2338
  }
2339
- return sign3 + zeroFill(~~(offset5 / 60), 2) + separator2 + zeroFill(~~offset5 % 60, 2);
2339
+ return sign3 + zeroFill(~~(offset5 / 60), 2) + separator + zeroFill(~~offset5 % 60, 2);
2340
2340
  });
2341
2341
  }
2342
2342
  offset4("Z", ":");
@@ -19209,7 +19209,7 @@ var require_pdf = __commonJS({
19209
19209
  style.transform = transform;
19210
19210
  }
19211
19211
  }
19212
- function render2(task) {
19212
+ function render(task) {
19213
19213
  if (task._canceled) {
19214
19214
  return;
19215
19215
  }
@@ -19348,7 +19348,7 @@ var require_pdf = __commonJS({
19348
19348
  }
19349
19349
  capability.promise.then(() => {
19350
19350
  styleCache = null;
19351
- render2(this);
19351
+ render(this);
19352
19352
  }, this._capability.reject);
19353
19353
  }
19354
19354
  }
@@ -21091,7 +21091,7 @@ var require_pdf = __commonJS({
21091
21091
  allFields.push(...fields);
21092
21092
  }
21093
21093
  }
21094
- const storage2 = this.annotationStorage;
21094
+ const storage = this.annotationStorage;
21095
21095
  const allIds = [];
21096
21096
  for (const field of allFields) {
21097
21097
  const {
@@ -21101,7 +21101,7 @@ var require_pdf = __commonJS({
21101
21101
  switch (field.type) {
21102
21102
  case "text": {
21103
21103
  const value = field.defaultValue || "";
21104
- storage2.setValue(id, {
21104
+ storage.setValue(id, {
21105
21105
  value
21106
21106
  });
21107
21107
  break;
@@ -21109,7 +21109,7 @@ var require_pdf = __commonJS({
21109
21109
  case "checkbox":
21110
21110
  case "radiobutton": {
21111
21111
  const value = field.defaultValue === field.exportValues;
21112
- storage2.setValue(id, {
21112
+ storage.setValue(id, {
21113
21113
  value
21114
21114
  });
21115
21115
  break;
@@ -21117,7 +21117,7 @@ var require_pdf = __commonJS({
21117
21117
  case "combobox":
21118
21118
  case "listbox": {
21119
21119
  const value = field.defaultValue || "";
21120
- storage2.setValue(id, {
21120
+ storage.setValue(id, {
21121
21121
  value
21122
21122
  });
21123
21123
  break;
@@ -21296,27 +21296,27 @@ var require_pdf = __commonJS({
21296
21296
  });
21297
21297
  }
21298
21298
  setPropertyOnSiblings(base, key2, value, keyInStorage) {
21299
- const storage2 = this.annotationStorage;
21299
+ const storage = this.annotationStorage;
21300
21300
  for (const element2 of this._getElementsByName(base.name, base.id)) {
21301
21301
  if (element2.domElement) {
21302
21302
  element2.domElement[key2] = value;
21303
21303
  }
21304
- storage2.setValue(element2.id, {
21304
+ storage.setValue(element2.id, {
21305
21305
  [keyInStorage]: value
21306
21306
  });
21307
21307
  }
21308
21308
  }
21309
21309
  render() {
21310
- const storage2 = this.annotationStorage;
21310
+ const storage = this.annotationStorage;
21311
21311
  const id = this.data.id;
21312
21312
  this.container.classList.add("textWidgetAnnotation");
21313
21313
  let element2 = null;
21314
21314
  if (this.renderForms) {
21315
- const storedData = storage2.getValue(id, {
21315
+ const storedData = storage.getValue(id, {
21316
21316
  value: this.data.fieldValue
21317
21317
  });
21318
21318
  let textContent = storedData.value || "";
21319
- const maxLen = storage2.getValue(id, {
21319
+ const maxLen = storage.getValue(id, {
21320
21320
  charLimit: this.data.maxLen
21321
21321
  }).charLimit;
21322
21322
  if (maxLen && textContent.length > maxLen) {
@@ -21360,7 +21360,7 @@ var require_pdf = __commonJS({
21360
21360
  element2.maxLength = maxLen;
21361
21361
  }
21362
21362
  element2.addEventListener("input", (event) => {
21363
- storage2.setValue(id, {
21363
+ storage.setValue(id, {
21364
21364
  value: event.target.value
21365
21365
  });
21366
21366
  this.setPropertyOnSiblings(element2, "value", event.target.value, "value");
@@ -21400,7 +21400,7 @@ var require_pdf = __commonJS({
21400
21400
  const actions = {
21401
21401
  value(event) {
21402
21402
  elementData.userValue = event.detail.value ?? "";
21403
- storage2.setValue(id, {
21403
+ storage.setValue(id, {
21404
21404
  value: elementData.userValue.toString()
21405
21405
  });
21406
21406
  event.target.value = elementData.userValue;
@@ -21413,7 +21413,7 @@ var require_pdf = __commonJS({
21413
21413
  if (formattedValue !== null && formattedValue !== void 0 && event.target !== document.activeElement) {
21414
21414
  event.target.value = formattedValue;
21415
21415
  }
21416
- storage2.setValue(id, {
21416
+ storage.setValue(id, {
21417
21417
  formattedValue
21418
21418
  });
21419
21419
  },
@@ -21438,7 +21438,7 @@ var require_pdf = __commonJS({
21438
21438
  }
21439
21439
  value = value.slice(0, charLimit);
21440
21440
  target.value = elementData.userValue = value;
21441
- storage2.setValue(id, {
21441
+ storage.setValue(id, {
21442
21442
  value
21443
21443
  });
21444
21444
  this.linkService.eventBus?.dispatch("dispatcheventinsandbox", {
@@ -21610,15 +21610,15 @@ var require_pdf = __commonJS({
21610
21610
  });
21611
21611
  }
21612
21612
  render() {
21613
- const storage2 = this.annotationStorage;
21613
+ const storage = this.annotationStorage;
21614
21614
  const data = this.data;
21615
21615
  const id = data.id;
21616
- let value = storage2.getValue(id, {
21616
+ let value = storage.getValue(id, {
21617
21617
  value: data.exportValue === data.fieldValue
21618
21618
  }).value;
21619
21619
  if (typeof value === "string") {
21620
21620
  value = value !== "Off";
21621
- storage2.setValue(id, {
21621
+ storage.setValue(id, {
21622
21622
  value
21623
21623
  });
21624
21624
  }
@@ -21645,11 +21645,11 @@ var require_pdf = __commonJS({
21645
21645
  if (checkbox.domElement) {
21646
21646
  checkbox.domElement.checked = curChecked;
21647
21647
  }
21648
- storage2.setValue(checkbox.id, {
21648
+ storage.setValue(checkbox.id, {
21649
21649
  value: curChecked
21650
21650
  });
21651
21651
  }
21652
- storage2.setValue(id, {
21652
+ storage.setValue(id, {
21653
21653
  value: checked
21654
21654
  });
21655
21655
  });
@@ -21662,7 +21662,7 @@ var require_pdf = __commonJS({
21662
21662
  const actions = {
21663
21663
  value(event) {
21664
21664
  event.target.checked = event.detail.value !== "Off";
21665
- storage2.setValue(id, {
21665
+ storage.setValue(id, {
21666
21666
  value: event.target.checked
21667
21667
  });
21668
21668
  }
@@ -21685,15 +21685,15 @@ var require_pdf = __commonJS({
21685
21685
  }
21686
21686
  render() {
21687
21687
  this.container.classList.add("buttonWidgetAnnotation", "radioButton");
21688
- const storage2 = this.annotationStorage;
21688
+ const storage = this.annotationStorage;
21689
21689
  const data = this.data;
21690
21690
  const id = data.id;
21691
- let value = storage2.getValue(id, {
21691
+ let value = storage.getValue(id, {
21692
21692
  value: data.fieldValue === data.buttonValue
21693
21693
  }).value;
21694
21694
  if (typeof value === "string") {
21695
21695
  value = value !== data.buttonValue;
21696
- storage2.setValue(id, {
21696
+ storage.setValue(id, {
21697
21697
  value
21698
21698
  });
21699
21699
  }
@@ -21714,11 +21714,11 @@ var require_pdf = __commonJS({
21714
21714
  checked
21715
21715
  } = event.target;
21716
21716
  for (const radio of this._getElementsByName(name2, id)) {
21717
- storage2.setValue(radio.id, {
21717
+ storage.setValue(radio.id, {
21718
21718
  value: false
21719
21719
  });
21720
21720
  }
21721
- storage2.setValue(id, {
21721
+ storage.setValue(id, {
21722
21722
  value: checked
21723
21723
  });
21724
21724
  });
@@ -21737,7 +21737,7 @@ var require_pdf = __commonJS({
21737
21737
  if (radio.domElement) {
21738
21738
  radio.domElement.checked = curChecked;
21739
21739
  }
21740
- storage2.setValue(radio.id, {
21740
+ storage.setValue(radio.id, {
21741
21741
  value: curChecked
21742
21742
  });
21743
21743
  }
@@ -21783,9 +21783,9 @@ var require_pdf = __commonJS({
21783
21783
  }
21784
21784
  render() {
21785
21785
  this.container.classList.add("choiceWidgetAnnotation");
21786
- const storage2 = this.annotationStorage;
21786
+ const storage = this.annotationStorage;
21787
21787
  const id = this.data.id;
21788
- const storedData = storage2.getValue(id, {
21788
+ const storedData = storage.getValue(id, {
21789
21789
  value: this.data.fieldValue
21790
21790
  });
21791
21791
  const selectElement = document.createElement("select");
@@ -21863,7 +21863,7 @@ var require_pdf = __commonJS({
21863
21863
  for (const option of selectElement.options) {
21864
21864
  option.selected = values.has(option.value);
21865
21865
  }
21866
- storage2.setValue(id, {
21866
+ storage.setValue(id, {
21867
21867
  value: getValue(true)
21868
21868
  });
21869
21869
  selectedValues = getValue(false);
@@ -21882,7 +21882,7 @@ var require_pdf = __commonJS({
21882
21882
  options[0].selected = true;
21883
21883
  }
21884
21884
  }
21885
- storage2.setValue(id, {
21885
+ storage.setValue(id, {
21886
21886
  value: getValue(true),
21887
21887
  items: getItems(event)
21888
21888
  });
@@ -21892,7 +21892,7 @@ var require_pdf = __commonJS({
21892
21892
  while (selectElement.length !== 0) {
21893
21893
  selectElement.remove(0);
21894
21894
  }
21895
- storage2.setValue(id, {
21895
+ storage.setValue(id, {
21896
21896
  value: null,
21897
21897
  items: []
21898
21898
  });
@@ -21913,7 +21913,7 @@ var require_pdf = __commonJS({
21913
21913
  } else {
21914
21914
  selectElement.append(optionElement);
21915
21915
  }
21916
- storage2.setValue(id, {
21916
+ storage.setValue(id, {
21917
21917
  value: getValue(true),
21918
21918
  items: getItems(event)
21919
21919
  });
@@ -21939,7 +21939,7 @@ var require_pdf = __commonJS({
21939
21939
  if (selectElement.options.length > 0) {
21940
21940
  selectElement.options[0].selected = true;
21941
21941
  }
21942
- storage2.setValue(id, {
21942
+ storage.setValue(id, {
21943
21943
  value: getValue(true),
21944
21944
  items: getItems(event)
21945
21945
  });
@@ -21950,7 +21950,7 @@ var require_pdf = __commonJS({
21950
21950
  for (const option of event.target.options) {
21951
21951
  option.selected = indices.has(option.index);
21952
21952
  }
21953
- storage2.setValue(id, {
21953
+ storage.setValue(id, {
21954
21954
  value: getValue(true)
21955
21955
  });
21956
21956
  selectedValues = getValue(false);
@@ -21963,7 +21963,7 @@ var require_pdf = __commonJS({
21963
21963
  });
21964
21964
  selectElement.addEventListener("input", (event) => {
21965
21965
  const exportValue = getValue(true);
21966
- storage2.setValue(id, {
21966
+ storage.setValue(id, {
21967
21967
  value: exportValue
21968
21968
  });
21969
21969
  event.preventDefault();
@@ -21983,7 +21983,7 @@ var require_pdf = __commonJS({
21983
21983
  this._setEventListeners(selectElement, null, [["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"], ["input", "Action"], ["input", "Validate"]], (event) => event.target.value);
21984
21984
  } else {
21985
21985
  selectElement.addEventListener("input", function(event) {
21986
- storage2.setValue(id, {
21986
+ storage.setValue(id, {
21987
21987
  value: getValue(true)
21988
21988
  });
21989
21989
  });
@@ -22961,8 +22961,8 @@ var require_pdf = __commonJS({
22961
22961
  exports2.XfaLayer = void 0;
22962
22962
  var _xfa_text2 = __w_pdfjs_require__2(25);
22963
22963
  class XfaLayer {
22964
- static setupStorage(html4, id, element2, storage2, intent) {
22965
- const storedData = storage2.getValue(id, {
22964
+ static setupStorage(html4, id, element2, storage, intent) {
22965
+ const storedData = storage.getValue(id, {
22966
22966
  value: null
22967
22967
  });
22968
22968
  switch (element2.name) {
@@ -22974,7 +22974,7 @@ var require_pdf = __commonJS({
22974
22974
  break;
22975
22975
  }
22976
22976
  html4.addEventListener("input", (event) => {
22977
- storage2.setValue(id, {
22977
+ storage.setValue(id, {
22978
22978
  value: event.target.value
22979
22979
  });
22980
22980
  });
@@ -22990,7 +22990,7 @@ var require_pdf = __commonJS({
22990
22990
  break;
22991
22991
  }
22992
22992
  html4.addEventListener("change", (event) => {
22993
- storage2.setValue(id, {
22993
+ storage.setValue(id, {
22994
22994
  value: event.target.checked ? event.target.getAttribute("xfaOn") : event.target.getAttribute("xfaOff")
22995
22995
  });
22996
22996
  });
@@ -23002,7 +23002,7 @@ var require_pdf = __commonJS({
23002
23002
  break;
23003
23003
  }
23004
23004
  html4.addEventListener("input", (event) => {
23005
- storage2.setValue(id, {
23005
+ storage.setValue(id, {
23006
23006
  value: event.target.value
23007
23007
  });
23008
23008
  });
@@ -23022,7 +23022,7 @@ var require_pdf = __commonJS({
23022
23022
  html4.addEventListener("input", (event) => {
23023
23023
  const options = event.target.options;
23024
23024
  const value = options.selectedIndex === -1 ? "" : options[options.selectedIndex].value;
23025
- storage2.setValue(id, {
23025
+ storage.setValue(id, {
23026
23026
  value
23027
23027
  });
23028
23028
  });
@@ -23032,7 +23032,7 @@ var require_pdf = __commonJS({
23032
23032
  static setAttributes({
23033
23033
  html: html4,
23034
23034
  element: element2,
23035
- storage: storage2 = null,
23035
+ storage = null,
23036
23036
  intent,
23037
23037
  linkService
23038
23038
  }) {
@@ -23073,12 +23073,12 @@ var require_pdf = __commonJS({
23073
23073
  if (isHTMLAnchorElement) {
23074
23074
  linkService.addLinkAttributes(html4, attributes.href, attributes.newWindow);
23075
23075
  }
23076
- if (storage2 && attributes.dataId) {
23077
- this.setupStorage(html4, attributes.dataId, element2, storage2);
23076
+ if (storage && attributes.dataId) {
23077
+ this.setupStorage(html4, attributes.dataId, element2, storage);
23078
23078
  }
23079
23079
  }
23080
23080
  static render(parameters) {
23081
- const storage2 = parameters.annotationStorage;
23081
+ const storage = parameters.annotationStorage;
23082
23082
  const linkService = parameters.linkService;
23083
23083
  const root3 = parameters.xfaHtml;
23084
23084
  const intent = parameters.intent || "display";
@@ -23127,7 +23127,7 @@ var require_pdf = __commonJS({
23127
23127
  this.setAttributes({
23128
23128
  html: childHtml,
23129
23129
  element: child,
23130
- storage: storage2,
23130
+ storage,
23131
23131
  intent,
23132
23132
  linkService
23133
23133
  });
@@ -24705,16 +24705,16 @@ var init_dist = __esm({
24705
24705
  var require_use_sync_external_store_with_selector_production = __commonJS({
24706
24706
  "../../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js"(exports2) {
24707
24707
  "use strict";
24708
- var React185 = __require("react");
24708
+ var React184 = __require("react");
24709
24709
  function is2(x10, y14) {
24710
24710
  return x10 === y14 && (0 !== x10 || 1 / x10 === 1 / y14) || x10 !== x10 && y14 !== y14;
24711
24711
  }
24712
24712
  var objectIs = "function" === typeof Object.is ? Object.is : is2;
24713
- var useSyncExternalStore3 = React185.useSyncExternalStore;
24714
- var useRef62 = React185.useRef;
24715
- var useEffect93 = React185.useEffect;
24716
- var useMemo103 = React185.useMemo;
24717
- var useDebugValue = React185.useDebugValue;
24713
+ var useSyncExternalStore3 = React184.useSyncExternalStore;
24714
+ var useRef62 = React184.useRef;
24715
+ var useEffect93 = React184.useEffect;
24716
+ var useMemo103 = React184.useMemo;
24717
+ var useDebugValue = React184.useDebugValue;
24718
24718
  exports2.useSyncExternalStoreWithSelector = function(subscribe2, getSnapshot2, getServerSnapshot2, selector, isEqual9) {
24719
24719
  var instRef = useRef62(null);
24720
24720
  if (null === instRef.current) {
@@ -24778,7 +24778,7 @@ var require_use_sync_external_store_with_selector_development = __commonJS({
24778
24778
  return x10 === y14 && (0 !== x10 || 1 / x10 === 1 / y14) || x10 !== x10 && y14 !== y14;
24779
24779
  }
24780
24780
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
24781
- var React185 = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is2, useSyncExternalStore3 = React185.useSyncExternalStore, useRef62 = React185.useRef, useEffect93 = React185.useEffect, useMemo103 = React185.useMemo, useDebugValue = React185.useDebugValue;
24781
+ var React184 = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is2, useSyncExternalStore3 = React184.useSyncExternalStore, useRef62 = React184.useRef, useEffect93 = React184.useEffect, useMemo103 = React184.useMemo, useDebugValue = React184.useDebugValue;
24782
24782
  exports2.useSyncExternalStoreWithSelector = function(subscribe2, getSnapshot2, getServerSnapshot2, selector, isEqual9) {
24783
24783
  var instRef = useRef62(null);
24784
24784
  if (null === instRef.current) {
@@ -30621,7 +30621,7 @@ var module2 = null;
30621
30621
  modulePromise.then((x10) => module2 = x10);
30622
30622
  var LucideIconLoader = React13.forwardRef(
30623
30623
  ({ name: name2, ...props }, ref) => {
30624
- const [IconComponent2, setIconComponent] = useState5(module2 === null ? null : module2[name2]);
30624
+ const [IconComponent, setIconComponent] = useState5(module2 === null ? null : module2[name2]);
30625
30625
  const [isLoaded, setIsLoaded] = useState5(module2 !== null);
30626
30626
  useLayoutEffect(() => {
30627
30627
  setIconComponent(null);
@@ -30634,7 +30634,7 @@ var LucideIconLoader = React13.forwardRef(
30634
30634
  setIconComponent(() => module2["CircleAlert"]);
30635
30635
  }
30636
30636
  }, [name2, isLoaded]);
30637
- return IconComponent2 ? /* @__PURE__ */ jsx21(IconComponent2, { ...props, ref }) : /* @__PURE__ */ jsx21(
30637
+ return IconComponent ? /* @__PURE__ */ jsx21(IconComponent, { ...props, ref }) : /* @__PURE__ */ jsx21(
30638
30638
  Skeleton2,
30639
30639
  {
30640
30640
  className: cn17(" icon-hover-effect rounded-full", props.className),
@@ -34348,7 +34348,7 @@ function Highlight({
34348
34348
  container.addEventListener("scroll", onScroll, { passive: true });
34349
34349
  return () => container.removeEventListener("scroll", onScroll);
34350
34350
  }, [mode, activeValue]);
34351
- const render2 = (children2) => {
34351
+ const render = (children2) => {
34352
34352
  if (mode === "parent") {
34353
34353
  return /* @__PURE__ */ jsxs28(
34354
34354
  Component12,
@@ -34417,7 +34417,7 @@ function Highlight({
34417
34417
  setActiveClassName: setActiveClassNameState,
34418
34418
  forceUpdateBounds: props?.forceUpdateBounds
34419
34419
  },
34420
- children: enabled ? controlledItems ? render2(children) : render2(
34420
+ children: enabled ? controlledItems ? render(children) : render(
34421
34421
  React25.Children.map(children, (child, index4) => /* @__PURE__ */ jsx52(HighlightItem, { className: props?.itemsClassName, children: child }, index4))
34422
34422
  ) : children
34423
34423
  }
@@ -43785,7 +43785,7 @@ var module3 = null;
43785
43785
  modulePromise2.then((x10) => module3 = x10);
43786
43786
  var LucideIconLoader2 = React41.forwardRef(
43787
43787
  ({ name: name2, ...props }, ref) => {
43788
- const [IconComponent2, setIconComponent] = useState23(module3 === null ? null : module3[name2]);
43788
+ const [IconComponent, setIconComponent] = useState23(module3 === null ? null : module3[name2]);
43789
43789
  const [isLoaded, setIsLoaded] = useState23(module3 !== null);
43790
43790
  useLayoutEffect7(() => {
43791
43791
  setIconComponent(null);
@@ -43798,7 +43798,7 @@ var LucideIconLoader2 = React41.forwardRef(
43798
43798
  setIconComponent(() => module3["CircleAlert"]);
43799
43799
  }
43800
43800
  }, [name2, isLoaded]);
43801
- return IconComponent2 ? /* @__PURE__ */ jsx77(IconComponent2, { ...props, ref }) : /* @__PURE__ */ jsx77(
43801
+ return IconComponent ? /* @__PURE__ */ jsx77(IconComponent, { ...props, ref }) : /* @__PURE__ */ jsx77(
43802
43802
  Skeleton_default,
43803
43803
  {
43804
43804
  className: cn61(" icon-hover-effect rounded-full", props.className),
@@ -53419,9 +53419,9 @@ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
53419
53419
  function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
53420
53420
  let ctx = (0, $670gB$useContext)($b5e257d569688ac6$var$SSRContext);
53421
53421
  if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM && process.env.NODE_ENV !== "production") console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
53422
- let counter2 = $b5e257d569688ac6$var$useCounter(!!defaultId);
53422
+ let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);
53423
53423
  let prefix2 = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ctx.prefix}`;
53424
- return defaultId || `${prefix2}-${counter2}`;
53424
+ return defaultId || `${prefix2}-${counter}`;
53425
53425
  }
53426
53426
  function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
53427
53427
  let id = (0, $670gB$react).useId();
@@ -67560,16 +67560,16 @@ var $453cc9f0df89c0a5$var$cache = /* @__PURE__ */ new WeakMap();
67560
67560
  function $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {
67561
67561
  let count3 = $453cc9f0df89c0a5$var$cache.get(collection);
67562
67562
  if (count3 != null) return count3;
67563
- let counter2 = 0;
67563
+ let counter = 0;
67564
67564
  let countItems = (items) => {
67565
67565
  for (let item of items) {
67566
67566
  if (item.type === "section") countItems((0, $c5a24bc478652b5f$export$1005530eda016c13)(item, collection));
67567
- else if (item.type === "item") counter2++;
67567
+ else if (item.type === "item") counter++;
67568
67568
  }
67569
67569
  };
67570
67570
  countItems(collection);
67571
- $453cc9f0df89c0a5$var$cache.set(collection, counter2);
67572
- return counter2;
67571
+ $453cc9f0df89c0a5$var$cache.set(collection, counter);
67572
+ return counter;
67573
67573
  }
67574
67574
 
67575
67575
  // ../../../node_modules/.pnpm/@react-stately+selection@3.20.4_react@19.1.1/node_modules/@react-stately/selection/dist/SelectionManager.mjs
@@ -83923,7 +83923,7 @@ var Symbols = function Symbols2(_ref) {
83923
83923
  size: size4,
83924
83924
  sizeType
83925
83925
  });
83926
- var getPath6 = function getPath7() {
83926
+ var getPath5 = function getPath6() {
83927
83927
  var symbolFactory = getSymbolFactory(type);
83928
83928
  var symbol = Symbol2().type(symbolFactory).size(calculateAreaSize(size4, sizeType, type));
83929
83929
  return symbol();
@@ -83934,7 +83934,7 @@ var Symbols = function Symbols2(_ref) {
83934
83934
  return /* @__PURE__ */ React97.createElement("path", _extends3({}, filteredProps, {
83935
83935
  className: clsx_default("recharts-symbols", className),
83936
83936
  transform: "translate(".concat(cx, ", ").concat(cy, ")"),
83937
- d: getPath6()
83937
+ d: getPath5()
83938
83938
  }));
83939
83939
  }
83940
83940
  return null;
@@ -84200,7 +84200,7 @@ var DefaultLegendContent = /* @__PURE__ */ (function(_PureComponent) {
84200
84200
  }
84201
84201
  }, {
84202
84202
  key: "render",
84203
- value: function render2() {
84203
+ value: function render() {
84204
84204
  var _this$props2 = this.props, payload = _this$props2.payload, layout = _this$props2.layout, align = _this$props2.align;
84205
84205
  if (!payload || !payload.length) {
84206
84206
  return null;
@@ -84506,7 +84506,7 @@ var Legend = /* @__PURE__ */ (function(_PureComponent) {
84506
84506
  }
84507
84507
  }, {
84508
84508
  key: "render",
84509
- value: function render2() {
84509
+ value: function render() {
84510
84510
  var _this2 = this;
84511
84511
  var _this$props2 = this.props, content3 = _this$props2.content, width = _this$props2.width, height = _this$props2.height, wrapperStyle = _this$props2.wrapperStyle, payloadUniqBy = _this$props2.payloadUniqBy, payload = _this$props2.payload;
84512
84512
  var outerStyle = _objectSpread5(_objectSpread5({
@@ -84670,7 +84670,7 @@ function defaultFormatter(value) {
84670
84670
  return Array.isArray(value) && isNumOrStr(value[0]) && isNumOrStr(value[1]) ? value.join(" ~ ") : value;
84671
84671
  }
84672
84672
  var DefaultTooltipContent = function DefaultTooltipContent2(props) {
84673
- var _props$separator = props.separator, separator2 = _props$separator === void 0 ? " : " : _props$separator, _props$contentStyle = props.contentStyle, contentStyle = _props$contentStyle === void 0 ? {} : _props$contentStyle, _props$itemStyle = props.itemStyle, itemStyle = _props$itemStyle === void 0 ? {} : _props$itemStyle, _props$labelStyle = props.labelStyle, labelStyle = _props$labelStyle === void 0 ? {} : _props$labelStyle, payload = props.payload, formatter = props.formatter, itemSorter = props.itemSorter, wrapperClassName = props.wrapperClassName, labelClassName = props.labelClassName, label = props.label, labelFormatter = props.labelFormatter, _props$accessibilityL = props.accessibilityLayer, accessibilityLayer = _props$accessibilityL === void 0 ? false : _props$accessibilityL;
84673
+ var _props$separator = props.separator, separator = _props$separator === void 0 ? " : " : _props$separator, _props$contentStyle = props.contentStyle, contentStyle = _props$contentStyle === void 0 ? {} : _props$contentStyle, _props$itemStyle = props.itemStyle, itemStyle = _props$itemStyle === void 0 ? {} : _props$itemStyle, _props$labelStyle = props.labelStyle, labelStyle = _props$labelStyle === void 0 ? {} : _props$labelStyle, payload = props.payload, formatter = props.formatter, itemSorter = props.itemSorter, wrapperClassName = props.wrapperClassName, labelClassName = props.labelClassName, label = props.label, labelFormatter = props.labelFormatter, _props$accessibilityL = props.accessibilityLayer, accessibilityLayer = _props$accessibilityL === void 0 ? false : _props$accessibilityL;
84674
84674
  var renderContent3 = function renderContent4() {
84675
84675
  if (payload && payload.length) {
84676
84676
  var listStyle = {
@@ -84711,7 +84711,7 @@ var DefaultTooltipContent = function DefaultTooltipContent2(props) {
84711
84711
  className: "recharts-tooltip-item-name"
84712
84712
  }, finalName) : null, isNumOrStr(finalName) ? /* @__PURE__ */ React100.createElement("span", {
84713
84713
  className: "recharts-tooltip-item-separator"
84714
- }, separator2) : null, /* @__PURE__ */ React100.createElement("span", {
84714
+ }, separator) : null, /* @__PURE__ */ React100.createElement("span", {
84715
84715
  className: "recharts-tooltip-item-value"
84716
84716
  }, finalValue), /* @__PURE__ */ React100.createElement("span", {
84717
84717
  className: "recharts-tooltip-item-unit"
@@ -85078,7 +85078,7 @@ var TooltipBoundingBox = /* @__PURE__ */ (function(_PureComponent) {
85078
85078
  }
85079
85079
  }, {
85080
85080
  key: "render",
85081
- value: function render2() {
85081
+ value: function render() {
85082
85082
  var _this2 = this;
85083
85083
  var _this$props = this.props, active = _this$props.active, allowEscapeViewBox = _this$props.allowEscapeViewBox, animationDuration = _this$props.animationDuration, animationEasing = _this$props.animationEasing, children = _this$props.children, coordinate = _this$props.coordinate, hasPayload = _this$props.hasPayload, isAnimationActive = _this$props.isAnimationActive, offset4 = _this$props.offset, position3 = _this$props.position, reverseDirection = _this$props.reverseDirection, useTranslate3d = _this$props.useTranslate3d, viewBox = _this$props.viewBox, wrapperStyle = _this$props.wrapperStyle;
85084
85084
  var _getTooltipTranslate = getTooltipTranslate({
@@ -85280,7 +85280,7 @@ var Tooltip5 = /* @__PURE__ */ (function(_PureComponent) {
85280
85280
  _inherits4(Tooltip8, _PureComponent);
85281
85281
  return _createClass4(Tooltip8, [{
85282
85282
  key: "render",
85283
- value: function render2() {
85283
+ value: function render() {
85284
85284
  var _this = this;
85285
85285
  var _this$props = this.props, active = _this$props.active, allowEscapeViewBox = _this$props.allowEscapeViewBox, animationDuration = _this$props.animationDuration, animationEasing = _this$props.animationEasing, content3 = _this$props.content, coordinate = _this$props.coordinate, filterNull = _this$props.filterNull, isAnimationActive = _this$props.isAnimationActive, offset4 = _this$props.offset, payload = _this$props.payload, payloadUniqBy = _this$props.payloadUniqBy, position3 = _this$props.position, reverseDirection = _this$props.reverseDirection, useTranslate3d = _this$props.useTranslate3d, viewBox = _this$props.viewBox, wrapperStyle = _this$props.wrapperStyle;
85286
85286
  var finalPayload = payload !== null && payload !== void 0 ? payload : [];
@@ -90868,7 +90868,7 @@ var ErrorBar = /* @__PURE__ */ (function(_React$Component) {
90868
90868
  _inherits5(ErrorBar2, _React$Component);
90869
90869
  return _createClass6(ErrorBar2, [{
90870
90870
  key: "render",
90871
- value: function render2() {
90871
+ value: function render() {
90872
90872
  var _this$props = this.props, offset4 = _this$props.offset, layout = _this$props.layout, width = _this$props.width, dataKey = _this$props.dataKey, data = _this$props.data, dataPointFormatter = _this$props.dataPointFormatter, xAxis = _this$props.xAxis, yAxis = _this$props.yAxis, others = _objectWithoutProperties8(_this$props, _excluded11);
90873
90873
  var svgProps = filterProps(others, false);
90874
90874
  !!(this.props.direction === "x" && xAxis.type !== "number") ? process.env.NODE_ENV !== "production" ? invariant2(false, 'ErrorBar requires Axis type property to be "number".') : invariant2(false) : void 0;
@@ -94257,7 +94257,7 @@ var calStepperVals = function calStepperVals2(easing, preVals, steps) {
94257
94257
  }
94258
94258
  return calStepperVals2(easing, nextStepVals, steps - 1);
94259
94259
  };
94260
- var configUpdate_default = (function(from, to2, easing, duration, render2) {
94260
+ var configUpdate_default = (function(from, to2, easing, duration, render) {
94261
94261
  var interKeys = getIntersectionKeys(from, to2);
94262
94262
  var timingStyle = interKeys.reduce(function(res, key2) {
94263
94263
  return _objectSpread19(_objectSpread19({}, res), {}, _defineProperty21({}, key2, [from[key2], to2[key2]]));
@@ -94290,7 +94290,7 @@ var configUpdate_default = (function(from, to2, easing, duration, render2) {
94290
94290
  var deltaTime = now - preTime;
94291
94291
  var steps = deltaTime / easing.dt;
94292
94292
  stepperStyle = calStepperVals(easing, stepperStyle, steps);
94293
- render2(_objectSpread19(_objectSpread19(_objectSpread19({}, from), to2), getCurrStyle(stepperStyle)));
94293
+ render(_objectSpread19(_objectSpread19(_objectSpread19({}, from), to2), getCurrStyle(stepperStyle)));
94294
94294
  preTime = now;
94295
94295
  if (!shouldStopAnimation()) {
94296
94296
  cafId = requestAnimationFrame(update);
@@ -94304,14 +94304,14 @@ var configUpdate_default = (function(from, to2, easing, duration, render2) {
94304
94304
  var currStyle = mapObject(function(key2, val) {
94305
94305
  return alpha.apply(void 0, _toConsumableArray9(val).concat([easing(t19)]));
94306
94306
  }, timingStyle);
94307
- render2(_objectSpread19(_objectSpread19(_objectSpread19({}, from), to2), currStyle));
94307
+ render(_objectSpread19(_objectSpread19(_objectSpread19({}, from), to2), currStyle));
94308
94308
  if (t19 < 1) {
94309
94309
  cafId = requestAnimationFrame(update);
94310
94310
  } else {
94311
94311
  var finalStyle = mapObject(function(key2, val) {
94312
94312
  return alpha.apply(void 0, _toConsumableArray9(val).concat([easing(1)]));
94313
94313
  }, timingStyle);
94314
- render2(_objectSpread19(_objectSpread19(_objectSpread19({}, from), to2), finalStyle));
94314
+ render(_objectSpread19(_objectSpread19(_objectSpread19({}, from), to2), finalStyle));
94315
94315
  }
94316
94316
  };
94317
94317
  update = easing.isStepper ? stepperUpdate : timingUpdate;
@@ -94702,7 +94702,7 @@ var Animate = /* @__PURE__ */ (function(_PureComponent) {
94702
94702
  }
94703
94703
  }, {
94704
94704
  key: "render",
94705
- value: function render2() {
94705
+ value: function render() {
94706
94706
  var _this$props4 = this.props, children = _this$props4.children, begin = _this$props4.begin, duration = _this$props4.duration, attributeName = _this$props4.attributeName, easing = _this$props4.easing, isActive = _this$props4.isActive, steps = _this$props4.steps, from = _this$props4.from, to2 = _this$props4.to, canBegin = _this$props4.canBegin, onAnimationEnd2 = _this$props4.onAnimationEnd, shouldReAnimate = _this$props4.shouldReAnimate, onAnimationReStart = _this$props4.onAnimationReStart, others = _objectWithoutProperties11(_this$props4, _excluded14);
94707
94707
  var count3 = Children7.count(children);
94708
94708
  var stateStyle = this.state.style;
@@ -95577,7 +95577,7 @@ var PolarRadiusAxis = /* @__PURE__ */ (function(_PureComponent) {
95577
95577
  }
95578
95578
  }, {
95579
95579
  key: "render",
95580
- value: function render2() {
95580
+ value: function render() {
95581
95581
  var _this$props5 = this.props, ticks2 = _this$props5.ticks, axisLine = _this$props5.axisLine, tick = _this$props5.tick;
95582
95582
  if (!ticks2 || !ticks2.length) {
95583
95583
  return null;
@@ -95872,7 +95872,7 @@ var PolarAngleAxis = /* @__PURE__ */ (function(_PureComponent) {
95872
95872
  }
95873
95873
  }, {
95874
95874
  key: "render",
95875
- value: function render2() {
95875
+ value: function render() {
95876
95876
  var _this$props4 = this.props, ticks2 = _this$props4.ticks, radius = _this$props4.radius, axisLine = _this$props4.axisLine;
95877
95877
  if (radius <= 0 || !ticks2 || !ticks2.length) {
95878
95878
  return null;
@@ -96711,7 +96711,7 @@ var Pie = /* @__PURE__ */ (function(_PureComponent) {
96711
96711
  }
96712
96712
  }, {
96713
96713
  key: "render",
96714
- value: function render2() {
96714
+ value: function render() {
96715
96715
  var _this5 = this;
96716
96716
  var _this$props5 = this.props, hide4 = _this$props5.hide, sectors = _this$props5.sectors, className = _this$props5.className, label = _this$props5.label, cx = _this$props5.cx, cy = _this$props5.cy, innerRadius = _this$props5.innerRadius, outerRadius = _this$props5.outerRadius, isAnimationActive = _this$props5.isAnimationActive;
96717
96717
  var isAnimationFinished = this.state.isAnimationFinished;
@@ -97343,7 +97343,7 @@ var RadialBar = /* @__PURE__ */ (function(_PureComponent) {
97343
97343
  }
97344
97344
  }, {
97345
97345
  key: "render",
97346
- value: function render2() {
97346
+ value: function render() {
97347
97347
  var _this$props5 = this.props, hide4 = _this$props5.hide, data = _this$props5.data, className = _this$props5.className, background = _this$props5.background, isAnimationActive = _this$props5.isAnimationActive;
97348
97348
  if (hide4 || !data || !data.length) {
97349
97349
  return null;
@@ -98048,7 +98048,7 @@ var Brush = /* @__PURE__ */ (function(_PureComponent) {
98048
98048
  }
98049
98049
  }, {
98050
98050
  key: "render",
98051
- value: function render2() {
98051
+ value: function render() {
98052
98052
  var _this$props11 = this.props, data = _this$props11.data, className = _this$props11.className, children = _this$props11.children, x10 = _this$props11.x, y14 = _this$props11.y, width = _this$props11.width, height = _this$props11.height, alwaysShowText = _this$props11.alwaysShowText;
98053
98053
  var _this$state5 = this.state, startX = _this$state5.startX, endX = _this$state5.endX, isTextActive = _this$state5.isTextActive, isSlideMoving = _this$state5.isSlideMoving, isTravellerMoving = _this$state5.isTravellerMoving, isTravellerFocused = _this$state5.isTravellerFocused;
98054
98054
  if (!data || !data.length || !isNumber2(x10) || !isNumber2(y14) || !isNumber2(width) || !isNumber2(height) || width <= 0 || height <= 0) {
@@ -98691,7 +98691,7 @@ var Bar = /* @__PURE__ */ (function(_PureComponent) {
98691
98691
  }
98692
98692
  }, {
98693
98693
  key: "render",
98694
- value: function render2() {
98694
+ value: function render() {
98695
98695
  var _this$props6 = this.props, hide4 = _this$props6.hide, data = _this$props6.data, className = _this$props6.className, xAxis = _this$props6.xAxis, yAxis = _this$props6.yAxis, left = _this$props6.left, top = _this$props6.top, width = _this$props6.width, height = _this$props6.height, isAnimationActive = _this$props6.isAnimationActive, background = _this$props6.background, id = _this$props6.id;
98696
98696
  if (hide4 || !data || !data.length) {
98697
98697
  return null;
@@ -99530,7 +99530,7 @@ var ReferenceLine = /* @__PURE__ */ (function(_React$Component) {
99530
99530
  _inherits13(ReferenceLine2, _React$Component);
99531
99531
  return _createClass15(ReferenceLine2, [{
99532
99532
  key: "render",
99533
- value: function render2() {
99533
+ value: function render() {
99534
99534
  return /* @__PURE__ */ React126.createElement(ReferenceLineImpl, this.props);
99535
99535
  }
99536
99536
  }]);
@@ -99710,7 +99710,7 @@ var ReferenceDot = /* @__PURE__ */ (function(_React$Component) {
99710
99710
  _inherits14(ReferenceDot2, _React$Component);
99711
99711
  return _createClass16(ReferenceDot2, [{
99712
99712
  key: "render",
99713
- value: function render2() {
99713
+ value: function render() {
99714
99714
  var _this$props = this.props, x10 = _this$props.x, y14 = _this$props.y, r17 = _this$props.r, alwaysShow = _this$props.alwaysShow, clipPathId = _this$props.clipPathId;
99715
99715
  var isX = isNumOrStr(x10);
99716
99716
  var isY = isNumOrStr(y14);
@@ -99943,7 +99943,7 @@ var ReferenceArea = /* @__PURE__ */ (function(_React$Component) {
99943
99943
  _inherits15(ReferenceArea2, _React$Component);
99944
99944
  return _createClass17(ReferenceArea2, [{
99945
99945
  key: "render",
99946
- value: function render2() {
99946
+ value: function render() {
99947
99947
  var _this$props = this.props, x1 = _this$props.x1, x22 = _this$props.x2, y1 = _this$props.y1, y22 = _this$props.y2, className = _this$props.className, alwaysShow = _this$props.alwaysShow, clipPathId = _this$props.clipPathId;
99948
99948
  warn4(alwaysShow === void 0, 'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');
99949
99949
  var hasX1 = isNumOrStr(x1);
@@ -100649,7 +100649,7 @@ var CartesianAxis = /* @__PURE__ */ (function(_Component) {
100649
100649
  )
100650
100650
  }, {
100651
100651
  key: "render",
100652
- value: function render2() {
100652
+ value: function render() {
100653
100653
  var _this3 = this;
100654
100654
  var _this$props7 = this.props, axisLine = _this$props7.axisLine, width = _this$props7.width, height = _this$props7.height, ticksGenerator = _this$props7.ticksGenerator, className = _this$props7.className, hide4 = _this$props7.hide;
100655
100655
  if (hide4) {
@@ -101536,7 +101536,7 @@ var Line = /* @__PURE__ */ (function(_PureComponent) {
101536
101536
  }
101537
101537
  }, {
101538
101538
  key: "render",
101539
- value: function render2() {
101539
+ value: function render() {
101540
101540
  var _filterProps;
101541
101541
  var _this$props6 = this.props, hide4 = _this$props6.hide, dot = _this$props6.dot, points = _this$props6.points, className = _this$props6.className, xAxis = _this$props6.xAxis, yAxis = _this$props6.yAxis, top = _this$props6.top, left = _this$props6.left, width = _this$props6.width, height = _this$props6.height, isAnimationActive = _this$props6.isAnimationActive, id = _this$props6.id;
101542
101542
  if (hide4 || !points || !points.length) {
@@ -102088,7 +102088,7 @@ var Area = /* @__PURE__ */ (function(_PureComponent) {
102088
102088
  }
102089
102089
  }, {
102090
102090
  key: "render",
102091
- value: function render2() {
102091
+ value: function render() {
102092
102092
  var _filterProps;
102093
102093
  var _this$props7 = this.props, hide4 = _this$props7.hide, dot = _this$props7.dot, points = _this$props7.points, className = _this$props7.className, top = _this$props7.top, left = _this$props7.left, xAxis = _this$props7.xAxis, yAxis = _this$props7.yAxis, width = _this$props7.width, height = _this$props7.height, isAnimationActive = _this$props7.isAnimationActive, id = _this$props7.id;
102094
102094
  if (hide4 || !points || !points.length) {
@@ -102399,7 +102399,7 @@ var ZAxis = /* @__PURE__ */ (function(_React$Component) {
102399
102399
  _inherits19(ZAxis2, _React$Component);
102400
102400
  return _createClass21(ZAxis2, [{
102401
102401
  key: "render",
102402
- value: function render2() {
102402
+ value: function render() {
102403
102403
  return null;
102404
102404
  }
102405
102405
  }]);
@@ -102788,7 +102788,7 @@ var Scatter = /* @__PURE__ */ (function(_PureComponent) {
102788
102788
  }
102789
102789
  }, {
102790
102790
  key: "render",
102791
- value: function render2() {
102791
+ value: function render() {
102792
102792
  var _this$props6 = this.props, hide4 = _this$props6.hide, points = _this$props6.points, line = _this$props6.line, className = _this$props6.className, xAxis = _this$props6.xAxis, yAxis = _this$props6.yAxis, left = _this$props6.left, top = _this$props6.top, width = _this$props6.width, height = _this$props6.height, id = _this$props6.id, isAnimationActive = _this$props6.isAnimationActive;
102793
102793
  if (hide4 || !points || !points.length) {
102794
102794
  return null;
@@ -103083,7 +103083,7 @@ var XAxis = /* @__PURE__ */ (function(_React$Component) {
103083
103083
  _inherits21(XAxis2, _React$Component);
103084
103084
  return _createClass23(XAxis2, [{
103085
103085
  key: "render",
103086
- value: function render2() {
103086
+ value: function render() {
103087
103087
  return /* @__PURE__ */ React136.createElement(XAxisImpl, this.props);
103088
103088
  }
103089
103089
  }]);
@@ -103256,7 +103256,7 @@ var YAxis = /* @__PURE__ */ (function(_React$Component) {
103256
103256
  _inherits22(YAxis2, _React$Component);
103257
103257
  return _createClass24(YAxis2, [{
103258
103258
  key: "render",
103259
- value: function render2() {
103259
+ value: function render() {
103260
103260
  return /* @__PURE__ */ React137.createElement(YAxisImpl, this.props);
103261
103261
  }
103262
103262
  }]);
@@ -103474,7 +103474,7 @@ var AccessibilityManager = /* @__PURE__ */ (function() {
103474
103474
  }, {
103475
103475
  key: "spoofMouse",
103476
103476
  value: function spoofMouse() {
103477
- var _window2, _window22;
103477
+ var _window, _window2;
103478
103478
  if (this.layout !== "horizontal") {
103479
103479
  return;
103480
103480
  }
@@ -103483,8 +103483,8 @@ var AccessibilityManager = /* @__PURE__ */ (function() {
103483
103483
  }
103484
103484
  var _this$container$getBo = this.container.getBoundingClientRect(), x10 = _this$container$getBo.x, y14 = _this$container$getBo.y, height = _this$container$getBo.height;
103485
103485
  var coordinate = this.coordinateList[this.activeIndex].coordinate;
103486
- var scrollOffsetX = ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.scrollX) || 0;
103487
- var scrollOffsetY = ((_window22 = window) === null || _window22 === void 0 ? void 0 : _window22.scrollY) || 0;
103486
+ var scrollOffsetX = ((_window = window) === null || _window === void 0 ? void 0 : _window.scrollX) || 0;
103487
+ var scrollOffsetY = ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.scrollY) || 0;
103488
103488
  var pageX = x10 + coordinate + scrollOffsetX;
103489
103489
  var pageY = y14 + this.offset.top + height / 2 + scrollOffsetY;
103490
103490
  this.mouseHandlerCallback({
@@ -105329,7 +105329,7 @@ var generateCategoricalChart = function generateCategoricalChart2(_ref6) {
105329
105329
  }
105330
105330
  }, {
105331
105331
  key: "render",
105332
- value: function render2() {
105332
+ value: function render() {
105333
105333
  var _this3 = this;
105334
105334
  if (!validateWidthHeight(this)) {
105335
105335
  return null;
@@ -118147,7 +118147,7 @@ var useTheme = () => {
118147
118147
  var ThemeProvider_default = ThemeProvider2;
118148
118148
 
118149
118149
  // src/components/FilterBuilder/FilterBuilder.tsx
118150
- import React155, {
118150
+ import React154, {
118151
118151
  useCallback as useCallback51,
118152
118152
  useEffect as useEffect71,
118153
118153
  useMemo as useMemo82,
@@ -118158,7 +118158,11 @@ import {
118158
118158
  useDbQuery as useDbQuery5,
118159
118159
  useSupabase as useSupabase7
118160
118160
  } from "@pol-studios/db";
118161
- import { genId as genId2, getDefaultCondition as getDefaultCondition2, getDefaultValue as getDefaultValue2 } from "@pol-studios/hooks";
118161
+ import {
118162
+ genId as genId2,
118163
+ getDefaultCondition as getDefaultCondition2,
118164
+ getDefaultValue as getDefaultValue2
118165
+ } from "@pol-studios/hooks";
118162
118166
 
118163
118167
  // src/components/FilterBuilder/Context.tsx
118164
118168
  import { createContext as createContext23, useContext as useContext32 } from "react";
@@ -120554,1798 +120558,14 @@ var Slider = React150.forwardRef(({ className, ...props }, ref) => /* @__PURE__
120554
120558
  ));
120555
120559
  Slider.displayName = SliderPrimitive.Root.displayName;
120556
120560
 
120557
- // ../../../node_modules/.pnpm/@iconify+react@4.1.1_react@19.1.1/node_modules/@iconify/react/dist/iconify.mjs
120558
- import React151 from "react";
120559
- var matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/;
120560
- var stringToIcon = (value, validate, allowSimpleName, provider = "") => {
120561
- const colonSeparated = value.split(":");
120562
- if (value.slice(0, 1) === "@") {
120563
- if (colonSeparated.length < 2 || colonSeparated.length > 3) {
120564
- return null;
120565
- }
120566
- provider = colonSeparated.shift().slice(1);
120567
- }
120568
- if (colonSeparated.length > 3 || !colonSeparated.length) {
120569
- return null;
120570
- }
120571
- if (colonSeparated.length > 1) {
120572
- const name22 = colonSeparated.pop();
120573
- const prefix2 = colonSeparated.pop();
120574
- const result = {
120575
- // Allow provider without '@': "provider:prefix:name"
120576
- provider: colonSeparated.length > 0 ? colonSeparated[0] : provider,
120577
- prefix: prefix2,
120578
- name: name22
120579
- };
120580
- return validate && !validateIconName(result) ? null : result;
120581
- }
120582
- const name2 = colonSeparated[0];
120583
- const dashSeparated = name2.split("-");
120584
- if (dashSeparated.length > 1) {
120585
- const result = {
120586
- provider,
120587
- prefix: dashSeparated.shift(),
120588
- name: dashSeparated.join("-")
120589
- };
120590
- return validate && !validateIconName(result) ? null : result;
120591
- }
120592
- if (allowSimpleName && provider === "") {
120593
- const result = {
120594
- provider,
120595
- prefix: "",
120596
- name: name2
120597
- };
120598
- return validate && !validateIconName(result, allowSimpleName) ? null : result;
120599
- }
120600
- return null;
120601
- };
120602
- var validateIconName = (icon, allowSimpleName) => {
120603
- if (!icon) {
120604
- return false;
120605
- }
120606
- return !!((icon.provider === "" || icon.provider.match(matchIconName)) && (allowSimpleName && icon.prefix === "" || icon.prefix.match(matchIconName)) && icon.name.match(matchIconName));
120607
- };
120608
- var defaultIconDimensions = Object.freeze(
120609
- {
120610
- left: 0,
120611
- top: 0,
120612
- width: 16,
120613
- height: 16
120614
- }
120615
- );
120616
- var defaultIconTransformations = Object.freeze({
120617
- rotate: 0,
120618
- vFlip: false,
120619
- hFlip: false
120620
- });
120621
- var defaultIconProps = Object.freeze({
120622
- ...defaultIconDimensions,
120623
- ...defaultIconTransformations
120624
- });
120625
- var defaultExtendedIconProps = Object.freeze({
120626
- ...defaultIconProps,
120627
- body: "",
120628
- hidden: false
120629
- });
120630
- function mergeIconTransformations(obj1, obj2) {
120631
- const result = {};
120632
- if (!obj1.hFlip !== !obj2.hFlip) {
120633
- result.hFlip = true;
120634
- }
120635
- if (!obj1.vFlip !== !obj2.vFlip) {
120636
- result.vFlip = true;
120637
- }
120638
- const rotate = ((obj1.rotate || 0) + (obj2.rotate || 0)) % 4;
120639
- if (rotate) {
120640
- result.rotate = rotate;
120641
- }
120642
- return result;
120643
- }
120644
- function mergeIconData(parent, child) {
120645
- const result = mergeIconTransformations(parent, child);
120646
- for (const key2 in defaultExtendedIconProps) {
120647
- if (key2 in defaultIconTransformations) {
120648
- if (key2 in parent && !(key2 in result)) {
120649
- result[key2] = defaultIconTransformations[key2];
120650
- }
120651
- } else if (key2 in child) {
120652
- result[key2] = child[key2];
120653
- } else if (key2 in parent) {
120654
- result[key2] = parent[key2];
120655
- }
120656
- }
120657
- return result;
120658
- }
120659
- function getIconsTree(data, names) {
120660
- const icons = data.icons;
120661
- const aliases = data.aliases || /* @__PURE__ */ Object.create(null);
120662
- const resolved = /* @__PURE__ */ Object.create(null);
120663
- function resolve(name2) {
120664
- if (icons[name2]) {
120665
- return resolved[name2] = [];
120666
- }
120667
- if (!(name2 in resolved)) {
120668
- resolved[name2] = null;
120669
- const parent = aliases[name2] && aliases[name2].parent;
120670
- const value = parent && resolve(parent);
120671
- if (value) {
120672
- resolved[name2] = [parent].concat(value);
120673
- }
120674
- }
120675
- return resolved[name2];
120676
- }
120677
- (names || Object.keys(icons).concat(Object.keys(aliases))).forEach(resolve);
120678
- return resolved;
120679
- }
120680
- function internalGetIconData(data, name2, tree) {
120681
- const icons = data.icons;
120682
- const aliases = data.aliases || /* @__PURE__ */ Object.create(null);
120683
- let currentProps = {};
120684
- function parse4(name22) {
120685
- currentProps = mergeIconData(
120686
- icons[name22] || aliases[name22],
120687
- currentProps
120688
- );
120689
- }
120690
- parse4(name2);
120691
- tree.forEach(parse4);
120692
- return mergeIconData(data, currentProps);
120693
- }
120694
- function parseIconSet(data, callback) {
120695
- const names = [];
120696
- if (typeof data !== "object" || typeof data.icons !== "object") {
120697
- return names;
120698
- }
120699
- if (data.not_found instanceof Array) {
120700
- data.not_found.forEach((name2) => {
120701
- callback(name2, null);
120702
- names.push(name2);
120703
- });
120704
- }
120705
- const tree = getIconsTree(data);
120706
- for (const name2 in tree) {
120707
- const item = tree[name2];
120708
- if (item) {
120709
- callback(name2, internalGetIconData(data, name2, item));
120710
- names.push(name2);
120711
- }
120712
- }
120713
- return names;
120714
- }
120715
- var optionalPropertyDefaults = {
120716
- provider: "",
120717
- aliases: {},
120718
- not_found: {},
120719
- ...defaultIconDimensions
120720
- };
120721
- function checkOptionalProps(item, defaults2) {
120722
- for (const prop in defaults2) {
120723
- if (prop in item && typeof item[prop] !== typeof defaults2[prop]) {
120724
- return false;
120725
- }
120726
- }
120727
- return true;
120728
- }
120729
- function quicklyValidateIconSet(obj) {
120730
- if (typeof obj !== "object" || obj === null) {
120731
- return null;
120732
- }
120733
- const data = obj;
120734
- if (typeof data.prefix !== "string" || !obj.icons || typeof obj.icons !== "object") {
120735
- return null;
120736
- }
120737
- if (!checkOptionalProps(obj, optionalPropertyDefaults)) {
120738
- return null;
120739
- }
120740
- const icons = data.icons;
120741
- for (const name2 in icons) {
120742
- const icon = icons[name2];
120743
- if (!name2.match(matchIconName) || typeof icon.body !== "string" || !checkOptionalProps(
120744
- icon,
120745
- defaultExtendedIconProps
120746
- )) {
120747
- return null;
120748
- }
120749
- }
120750
- const aliases = data.aliases || /* @__PURE__ */ Object.create(null);
120751
- for (const name2 in aliases) {
120752
- const icon = aliases[name2];
120753
- const parent = icon.parent;
120754
- if (!name2.match(matchIconName) || typeof parent !== "string" || !icons[parent] && !aliases[parent] || !checkOptionalProps(
120755
- icon,
120756
- defaultExtendedIconProps
120757
- )) {
120758
- return null;
120759
- }
120760
- }
120761
- return data;
120762
- }
120763
- var dataStorage = /* @__PURE__ */ Object.create(null);
120764
- function newStorage(provider, prefix2) {
120765
- return {
120766
- provider,
120767
- prefix: prefix2,
120768
- icons: /* @__PURE__ */ Object.create(null),
120769
- missing: /* @__PURE__ */ new Set()
120770
- };
120771
- }
120772
- function getStorage(provider, prefix2) {
120773
- const providerStorage = dataStorage[provider] || (dataStorage[provider] = /* @__PURE__ */ Object.create(null));
120774
- return providerStorage[prefix2] || (providerStorage[prefix2] = newStorage(provider, prefix2));
120775
- }
120776
- function addIconSet(storage2, data) {
120777
- if (!quicklyValidateIconSet(data)) {
120778
- return [];
120779
- }
120780
- return parseIconSet(data, (name2, icon) => {
120781
- if (icon) {
120782
- storage2.icons[name2] = icon;
120783
- } else {
120784
- storage2.missing.add(name2);
120785
- }
120786
- });
120787
- }
120788
- function addIconToStorage(storage2, name2, icon) {
120789
- try {
120790
- if (typeof icon.body === "string") {
120791
- storage2.icons[name2] = { ...icon };
120792
- return true;
120793
- }
120794
- } catch (err) {
120795
- }
120796
- return false;
120797
- }
120798
- var simpleNames = false;
120799
- function allowSimpleNames(allow) {
120800
- if (typeof allow === "boolean") {
120801
- simpleNames = allow;
120802
- }
120803
- return simpleNames;
120804
- }
120805
- function getIconData(name2) {
120806
- const icon = typeof name2 === "string" ? stringToIcon(name2, true, simpleNames) : name2;
120807
- if (icon) {
120808
- const storage2 = getStorage(icon.provider, icon.prefix);
120809
- const iconName = icon.name;
120810
- return storage2.icons[iconName] || (storage2.missing.has(iconName) ? null : void 0);
120811
- }
120812
- }
120813
- function addIcon(name2, data) {
120814
- const icon = stringToIcon(name2, true, simpleNames);
120815
- if (!icon) {
120816
- return false;
120817
- }
120818
- const storage2 = getStorage(icon.provider, icon.prefix);
120819
- return addIconToStorage(storage2, icon.name, data);
120820
- }
120821
- function addCollection(data, provider) {
120822
- if (typeof data !== "object") {
120823
- return false;
120824
- }
120825
- if (typeof provider !== "string") {
120826
- provider = data.provider || "";
120827
- }
120828
- if (simpleNames && !provider && !data.prefix) {
120829
- let added = false;
120830
- if (quicklyValidateIconSet(data)) {
120831
- data.prefix = "";
120832
- parseIconSet(data, (name2, icon) => {
120833
- if (icon && addIcon(name2, icon)) {
120834
- added = true;
120835
- }
120836
- });
120837
- }
120838
- return added;
120839
- }
120840
- const prefix2 = data.prefix;
120841
- if (!validateIconName({
120842
- provider,
120843
- prefix: prefix2,
120844
- name: "a"
120845
- })) {
120846
- return false;
120847
- }
120848
- const storage2 = getStorage(provider, prefix2);
120849
- return !!addIconSet(storage2, data);
120850
- }
120851
- var defaultIconSizeCustomisations = Object.freeze({
120852
- width: null,
120853
- height: null
120854
- });
120855
- var defaultIconCustomisations = Object.freeze({
120856
- // Dimensions
120857
- ...defaultIconSizeCustomisations,
120858
- // Transformations
120859
- ...defaultIconTransformations
120860
- });
120861
- var unitsSplit = /(-?[0-9.]*[0-9]+[0-9.]*)/g;
120862
- var unitsTest = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
120863
- function calculateSize(size4, ratio, precision) {
120864
- if (ratio === 1) {
120865
- return size4;
120866
- }
120867
- precision = precision || 100;
120868
- if (typeof size4 === "number") {
120869
- return Math.ceil(size4 * ratio * precision) / precision;
120870
- }
120871
- if (typeof size4 !== "string") {
120872
- return size4;
120873
- }
120874
- const oldParts = size4.split(unitsSplit);
120875
- if (oldParts === null || !oldParts.length) {
120876
- return size4;
120877
- }
120878
- const newParts = [];
120879
- let code2 = oldParts.shift();
120880
- let isNumber4 = unitsTest.test(code2);
120881
- while (true) {
120882
- if (isNumber4) {
120883
- const num = parseFloat(code2);
120884
- if (isNaN(num)) {
120885
- newParts.push(code2);
120886
- } else {
120887
- newParts.push(Math.ceil(num * ratio * precision) / precision);
120888
- }
120889
- } else {
120890
- newParts.push(code2);
120891
- }
120892
- code2 = oldParts.shift();
120893
- if (code2 === void 0) {
120894
- return newParts.join("");
120895
- }
120896
- isNumber4 = !isNumber4;
120897
- }
120898
- }
120899
- var isUnsetKeyword = (value) => value === "unset" || value === "undefined" || value === "none";
120900
- function iconToSVG(icon, customisations) {
120901
- const fullIcon = {
120902
- ...defaultIconProps,
120903
- ...icon
120904
- };
120905
- const fullCustomisations = {
120906
- ...defaultIconCustomisations,
120907
- ...customisations
120908
- };
120909
- const box = {
120910
- left: fullIcon.left,
120911
- top: fullIcon.top,
120912
- width: fullIcon.width,
120913
- height: fullIcon.height
120914
- };
120915
- let body = fullIcon.body;
120916
- [fullIcon, fullCustomisations].forEach((props) => {
120917
- const transformations = [];
120918
- const hFlip = props.hFlip;
120919
- const vFlip = props.vFlip;
120920
- let rotation = props.rotate;
120921
- if (hFlip) {
120922
- if (vFlip) {
120923
- rotation += 2;
120924
- } else {
120925
- transformations.push(
120926
- "translate(" + (box.width + box.left).toString() + " " + (0 - box.top).toString() + ")"
120927
- );
120928
- transformations.push("scale(-1 1)");
120929
- box.top = box.left = 0;
120930
- }
120931
- } else if (vFlip) {
120932
- transformations.push(
120933
- "translate(" + (0 - box.left).toString() + " " + (box.height + box.top).toString() + ")"
120934
- );
120935
- transformations.push("scale(1 -1)");
120936
- box.top = box.left = 0;
120937
- }
120938
- let tempValue;
120939
- if (rotation < 0) {
120940
- rotation -= Math.floor(rotation / 4) * 4;
120941
- }
120942
- rotation = rotation % 4;
120943
- switch (rotation) {
120944
- case 1:
120945
- tempValue = box.height / 2 + box.top;
120946
- transformations.unshift(
120947
- "rotate(90 " + tempValue.toString() + " " + tempValue.toString() + ")"
120948
- );
120949
- break;
120950
- case 2:
120951
- transformations.unshift(
120952
- "rotate(180 " + (box.width / 2 + box.left).toString() + " " + (box.height / 2 + box.top).toString() + ")"
120953
- );
120954
- break;
120955
- case 3:
120956
- tempValue = box.width / 2 + box.left;
120957
- transformations.unshift(
120958
- "rotate(-90 " + tempValue.toString() + " " + tempValue.toString() + ")"
120959
- );
120960
- break;
120961
- }
120962
- if (rotation % 2 === 1) {
120963
- if (box.left !== box.top) {
120964
- tempValue = box.left;
120965
- box.left = box.top;
120966
- box.top = tempValue;
120967
- }
120968
- if (box.width !== box.height) {
120969
- tempValue = box.width;
120970
- box.width = box.height;
120971
- box.height = tempValue;
120972
- }
120973
- }
120974
- if (transformations.length) {
120975
- body = '<g transform="' + transformations.join(" ") + '">' + body + "</g>";
120976
- }
120977
- });
120978
- const customisationsWidth = fullCustomisations.width;
120979
- const customisationsHeight = fullCustomisations.height;
120980
- const boxWidth = box.width;
120981
- const boxHeight = box.height;
120982
- let width;
120983
- let height;
120984
- if (customisationsWidth === null) {
120985
- height = customisationsHeight === null ? "1em" : customisationsHeight === "auto" ? boxHeight : customisationsHeight;
120986
- width = calculateSize(height, boxWidth / boxHeight);
120987
- } else {
120988
- width = customisationsWidth === "auto" ? boxWidth : customisationsWidth;
120989
- height = customisationsHeight === null ? calculateSize(width, boxHeight / boxWidth) : customisationsHeight === "auto" ? boxHeight : customisationsHeight;
120990
- }
120991
- const attributes = {};
120992
- const setAttr = (prop, value) => {
120993
- if (!isUnsetKeyword(value)) {
120994
- attributes[prop] = value.toString();
120995
- }
120996
- };
120997
- setAttr("width", width);
120998
- setAttr("height", height);
120999
- attributes.viewBox = box.left.toString() + " " + box.top.toString() + " " + boxWidth.toString() + " " + boxHeight.toString();
121000
- return {
121001
- attributes,
121002
- body
121003
- };
121004
- }
121005
- var regex = /\sid="(\S+)"/g;
121006
- var randomPrefix = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
121007
- var counter = 0;
121008
- function replaceIDs(body, prefix2 = randomPrefix) {
121009
- const ids2 = [];
121010
- let match;
121011
- while (match = regex.exec(body)) {
121012
- ids2.push(match[1]);
121013
- }
121014
- if (!ids2.length) {
121015
- return body;
121016
- }
121017
- const suffix = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
121018
- ids2.forEach((id) => {
121019
- const newID = typeof prefix2 === "function" ? prefix2(id) : prefix2 + (counter++).toString();
121020
- const escapedID = id.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
121021
- body = body.replace(
121022
- // Allowed characters before id: [#;"]
121023
- // Allowed characters after id: [)"], .[a-z]
121024
- new RegExp('([#;"])(' + escapedID + ')([")]|\\.[a-z])', "g"),
121025
- "$1" + newID + suffix + "$3"
121026
- );
121027
- });
121028
- body = body.replace(new RegExp(suffix, "g"), "");
121029
- return body;
121030
- }
121031
- var storage = /* @__PURE__ */ Object.create(null);
121032
- function setAPIModule(provider, item) {
121033
- storage[provider] = item;
121034
- }
121035
- function getAPIModule(provider) {
121036
- return storage[provider] || storage[""];
121037
- }
121038
- function createAPIConfig(source) {
121039
- let resources;
121040
- if (typeof source.resources === "string") {
121041
- resources = [source.resources];
121042
- } else {
121043
- resources = source.resources;
121044
- if (!(resources instanceof Array) || !resources.length) {
121045
- return null;
121046
- }
121047
- }
121048
- const result = {
121049
- // API hosts
121050
- resources,
121051
- // Root path
121052
- path: source.path || "/",
121053
- // URL length limit
121054
- maxURL: source.maxURL || 500,
121055
- // Timeout before next host is used.
121056
- rotate: source.rotate || 750,
121057
- // Timeout before failing query.
121058
- timeout: source.timeout || 5e3,
121059
- // Randomise default API end point.
121060
- random: source.random === true,
121061
- // Start index
121062
- index: source.index || 0,
121063
- // Receive data after time out (used if time out kicks in first, then API module sends data anyway).
121064
- dataAfterTimeout: source.dataAfterTimeout !== false
121065
- };
121066
- return result;
121067
- }
121068
- var configStorage = /* @__PURE__ */ Object.create(null);
121069
- var fallBackAPISources = [
121070
- "https://api.simplesvg.com",
121071
- "https://api.unisvg.com"
121072
- ];
121073
- var fallBackAPI = [];
121074
- while (fallBackAPISources.length > 0) {
121075
- if (fallBackAPISources.length === 1) {
121076
- fallBackAPI.push(fallBackAPISources.shift());
121077
- } else {
121078
- if (Math.random() > 0.5) {
121079
- fallBackAPI.push(fallBackAPISources.shift());
121080
- } else {
121081
- fallBackAPI.push(fallBackAPISources.pop());
121082
- }
121083
- }
121084
- }
121085
- configStorage[""] = createAPIConfig({
121086
- resources: ["https://api.iconify.design"].concat(fallBackAPI)
121087
- });
121088
- function addAPIProvider(provider, customConfig) {
121089
- const config2 = createAPIConfig(customConfig);
121090
- if (config2 === null) {
121091
- return false;
121092
- }
121093
- configStorage[provider] = config2;
121094
- return true;
121095
- }
121096
- function getAPIConfig(provider) {
121097
- return configStorage[provider];
121098
- }
121099
- var detectFetch = () => {
121100
- let callback;
121101
- try {
121102
- callback = fetch;
121103
- if (typeof callback === "function") {
121104
- return callback;
121105
- }
121106
- } catch (err) {
121107
- }
121108
- };
121109
- var fetchModule = detectFetch();
121110
- function calculateMaxLength(provider, prefix2) {
121111
- const config2 = getAPIConfig(provider);
121112
- if (!config2) {
121113
- return 0;
121114
- }
121115
- let result;
121116
- if (!config2.maxURL) {
121117
- result = 0;
121118
- } else {
121119
- let maxHostLength = 0;
121120
- config2.resources.forEach((item) => {
121121
- const host = item;
121122
- maxHostLength = Math.max(maxHostLength, host.length);
121123
- });
121124
- const url = prefix2 + ".json?icons=";
121125
- result = config2.maxURL - maxHostLength - config2.path.length - url.length;
121126
- }
121127
- return result;
121128
- }
121129
- function shouldAbort(status) {
121130
- return status === 404;
121131
- }
121132
- var prepare = (provider, prefix2, icons) => {
121133
- const results = [];
121134
- const maxLength = calculateMaxLength(provider, prefix2);
121135
- const type = "icons";
121136
- let item = {
121137
- type,
121138
- provider,
121139
- prefix: prefix2,
121140
- icons: []
121141
- };
121142
- let length = 0;
121143
- icons.forEach((name2, index4) => {
121144
- length += name2.length + 1;
121145
- if (length >= maxLength && index4 > 0) {
121146
- results.push(item);
121147
- item = {
121148
- type,
121149
- provider,
121150
- prefix: prefix2,
121151
- icons: []
121152
- };
121153
- length = name2.length;
121154
- }
121155
- item.icons.push(name2);
121156
- });
121157
- results.push(item);
121158
- return results;
121159
- };
121160
- function getPath5(provider) {
121161
- if (typeof provider === "string") {
121162
- const config2 = getAPIConfig(provider);
121163
- if (config2) {
121164
- return config2.path;
121165
- }
121166
- }
121167
- return "/";
121168
- }
121169
- var send = (host, params, callback) => {
121170
- if (!fetchModule) {
121171
- callback("abort", 424);
121172
- return;
121173
- }
121174
- let path2 = getPath5(params.provider);
121175
- switch (params.type) {
121176
- case "icons": {
121177
- const prefix2 = params.prefix;
121178
- const icons = params.icons;
121179
- const iconsList = icons.join(",");
121180
- const urlParams = new URLSearchParams({
121181
- icons: iconsList
121182
- });
121183
- path2 += prefix2 + ".json?" + urlParams.toString();
121184
- break;
121185
- }
121186
- case "custom": {
121187
- const uri = params.uri;
121188
- path2 += uri.slice(0, 1) === "/" ? uri.slice(1) : uri;
121189
- break;
121190
- }
121191
- default:
121192
- callback("abort", 400);
121193
- return;
121194
- }
121195
- let defaultError = 503;
121196
- fetchModule(host + path2).then((response) => {
121197
- const status = response.status;
121198
- if (status !== 200) {
121199
- setTimeout(() => {
121200
- callback(shouldAbort(status) ? "abort" : "next", status);
121201
- });
121202
- return;
121203
- }
121204
- defaultError = 501;
121205
- return response.json();
121206
- }).then((data) => {
121207
- if (typeof data !== "object" || data === null) {
121208
- setTimeout(() => {
121209
- if (data === 404) {
121210
- callback("abort", data);
121211
- } else {
121212
- callback("next", defaultError);
121213
- }
121214
- });
121215
- return;
121216
- }
121217
- setTimeout(() => {
121218
- callback("success", data);
121219
- });
121220
- }).catch(() => {
121221
- callback("next", defaultError);
121222
- });
121223
- };
121224
- var fetchAPIModule = {
121225
- prepare,
121226
- send
121227
- };
121228
- function sortIcons(icons) {
121229
- const result = {
121230
- loaded: [],
121231
- missing: [],
121232
- pending: []
121233
- };
121234
- const storage2 = /* @__PURE__ */ Object.create(null);
121235
- icons.sort((a27, b9) => {
121236
- if (a27.provider !== b9.provider) {
121237
- return a27.provider.localeCompare(b9.provider);
121238
- }
121239
- if (a27.prefix !== b9.prefix) {
121240
- return a27.prefix.localeCompare(b9.prefix);
121241
- }
121242
- return a27.name.localeCompare(b9.name);
121243
- });
121244
- let lastIcon = {
121245
- provider: "",
121246
- prefix: "",
121247
- name: ""
121248
- };
121249
- icons.forEach((icon) => {
121250
- if (lastIcon.name === icon.name && lastIcon.prefix === icon.prefix && lastIcon.provider === icon.provider) {
121251
- return;
121252
- }
121253
- lastIcon = icon;
121254
- const provider = icon.provider;
121255
- const prefix2 = icon.prefix;
121256
- const name2 = icon.name;
121257
- const providerStorage = storage2[provider] || (storage2[provider] = /* @__PURE__ */ Object.create(null));
121258
- const localStorage2 = providerStorage[prefix2] || (providerStorage[prefix2] = getStorage(provider, prefix2));
121259
- let list3;
121260
- if (name2 in localStorage2.icons) {
121261
- list3 = result.loaded;
121262
- } else if (prefix2 === "" || localStorage2.missing.has(name2)) {
121263
- list3 = result.missing;
121264
- } else {
121265
- list3 = result.pending;
121266
- }
121267
- const item = {
121268
- provider,
121269
- prefix: prefix2,
121270
- name: name2
121271
- };
121272
- list3.push(item);
121273
- });
121274
- return result;
121275
- }
121276
- function removeCallback(storages, id) {
121277
- storages.forEach((storage2) => {
121278
- const items = storage2.loaderCallbacks;
121279
- if (items) {
121280
- storage2.loaderCallbacks = items.filter((row) => row.id !== id);
121281
- }
121282
- });
121283
- }
121284
- function updateCallbacks(storage2) {
121285
- if (!storage2.pendingCallbacksFlag) {
121286
- storage2.pendingCallbacksFlag = true;
121287
- setTimeout(() => {
121288
- storage2.pendingCallbacksFlag = false;
121289
- const items = storage2.loaderCallbacks ? storage2.loaderCallbacks.slice(0) : [];
121290
- if (!items.length) {
121291
- return;
121292
- }
121293
- let hasPending = false;
121294
- const provider = storage2.provider;
121295
- const prefix2 = storage2.prefix;
121296
- items.forEach((item) => {
121297
- const icons = item.icons;
121298
- const oldLength = icons.pending.length;
121299
- icons.pending = icons.pending.filter((icon) => {
121300
- if (icon.prefix !== prefix2) {
121301
- return true;
121302
- }
121303
- const name2 = icon.name;
121304
- if (storage2.icons[name2]) {
121305
- icons.loaded.push({
121306
- provider,
121307
- prefix: prefix2,
121308
- name: name2
121309
- });
121310
- } else if (storage2.missing.has(name2)) {
121311
- icons.missing.push({
121312
- provider,
121313
- prefix: prefix2,
121314
- name: name2
121315
- });
121316
- } else {
121317
- hasPending = true;
121318
- return true;
121319
- }
121320
- return false;
121321
- });
121322
- if (icons.pending.length !== oldLength) {
121323
- if (!hasPending) {
121324
- removeCallback([storage2], item.id);
121325
- }
121326
- item.callback(
121327
- icons.loaded.slice(0),
121328
- icons.missing.slice(0),
121329
- icons.pending.slice(0),
121330
- item.abort
121331
- );
121332
- }
121333
- });
121334
- });
121335
- }
121336
- }
121337
- var idCounter2 = 0;
121338
- function storeCallback(callback, icons, pendingSources) {
121339
- const id = idCounter2++;
121340
- const abort = removeCallback.bind(null, pendingSources, id);
121341
- if (!icons.pending.length) {
121342
- return abort;
121343
- }
121344
- const item = {
121345
- id,
121346
- icons,
121347
- callback,
121348
- abort
121349
- };
121350
- pendingSources.forEach((storage2) => {
121351
- (storage2.loaderCallbacks || (storage2.loaderCallbacks = [])).push(item);
121352
- });
121353
- return abort;
121354
- }
121355
- function listToIcons(list3, validate = true, simpleNames2 = false) {
121356
- const result = [];
121357
- list3.forEach((item) => {
121358
- const icon = typeof item === "string" ? stringToIcon(item, validate, simpleNames2) : item;
121359
- if (icon) {
121360
- result.push(icon);
121361
- }
121362
- });
121363
- return result;
121364
- }
121365
- var defaultConfig = {
121366
- resources: [],
121367
- index: 0,
121368
- timeout: 2e3,
121369
- rotate: 750,
121370
- random: false,
121371
- dataAfterTimeout: false
121372
- };
121373
- function sendQuery(config2, payload, query, done) {
121374
- const resourcesCount = config2.resources.length;
121375
- const startIndex = config2.random ? Math.floor(Math.random() * resourcesCount) : config2.index;
121376
- let resources;
121377
- if (config2.random) {
121378
- let list3 = config2.resources.slice(0);
121379
- resources = [];
121380
- while (list3.length > 1) {
121381
- const nextIndex = Math.floor(Math.random() * list3.length);
121382
- resources.push(list3[nextIndex]);
121383
- list3 = list3.slice(0, nextIndex).concat(list3.slice(nextIndex + 1));
121384
- }
121385
- resources = resources.concat(list3);
121386
- } else {
121387
- resources = config2.resources.slice(startIndex).concat(config2.resources.slice(0, startIndex));
121388
- }
121389
- const startTime = Date.now();
121390
- let status = "pending";
121391
- let queriesSent = 0;
121392
- let lastError;
121393
- let timer = null;
121394
- let queue = [];
121395
- let doneCallbacks = [];
121396
- if (typeof done === "function") {
121397
- doneCallbacks.push(done);
121398
- }
121399
- function resetTimer() {
121400
- if (timer) {
121401
- clearTimeout(timer);
121402
- timer = null;
121403
- }
121404
- }
121405
- function abort() {
121406
- if (status === "pending") {
121407
- status = "aborted";
121408
- }
121409
- resetTimer();
121410
- queue.forEach((item) => {
121411
- if (item.status === "pending") {
121412
- item.status = "aborted";
121413
- }
121414
- });
121415
- queue = [];
121416
- }
121417
- function subscribe2(callback, overwrite) {
121418
- if (overwrite) {
121419
- doneCallbacks = [];
121420
- }
121421
- if (typeof callback === "function") {
121422
- doneCallbacks.push(callback);
121423
- }
121424
- }
121425
- function getQueryStatus() {
121426
- return {
121427
- startTime,
121428
- payload,
121429
- status,
121430
- queriesSent,
121431
- queriesPending: queue.length,
121432
- subscribe: subscribe2,
121433
- abort
121434
- };
121435
- }
121436
- function failQuery() {
121437
- status = "failed";
121438
- doneCallbacks.forEach((callback) => {
121439
- callback(void 0, lastError);
121440
- });
121441
- }
121442
- function clearQueue() {
121443
- queue.forEach((item) => {
121444
- if (item.status === "pending") {
121445
- item.status = "aborted";
121446
- }
121447
- });
121448
- queue = [];
121449
- }
121450
- function moduleResponse(item, response, data) {
121451
- const isError = response !== "success";
121452
- queue = queue.filter((queued) => queued !== item);
121453
- switch (status) {
121454
- case "pending":
121455
- break;
121456
- case "failed":
121457
- if (isError || !config2.dataAfterTimeout) {
121458
- return;
121459
- }
121460
- break;
121461
- default:
121462
- return;
121463
- }
121464
- if (response === "abort") {
121465
- lastError = data;
121466
- failQuery();
121467
- return;
121468
- }
121469
- if (isError) {
121470
- lastError = data;
121471
- if (!queue.length) {
121472
- if (!resources.length) {
121473
- failQuery();
121474
- } else {
121475
- execNext();
121476
- }
121477
- }
121478
- return;
121479
- }
121480
- resetTimer();
121481
- clearQueue();
121482
- if (!config2.random) {
121483
- const index4 = config2.resources.indexOf(item.resource);
121484
- if (index4 !== -1 && index4 !== config2.index) {
121485
- config2.index = index4;
121486
- }
121487
- }
121488
- status = "completed";
121489
- doneCallbacks.forEach((callback) => {
121490
- callback(data);
121491
- });
121492
- }
121493
- function execNext() {
121494
- if (status !== "pending") {
121495
- return;
121496
- }
121497
- resetTimer();
121498
- const resource = resources.shift();
121499
- if (resource === void 0) {
121500
- if (queue.length) {
121501
- timer = setTimeout(() => {
121502
- resetTimer();
121503
- if (status === "pending") {
121504
- clearQueue();
121505
- failQuery();
121506
- }
121507
- }, config2.timeout);
121508
- return;
121509
- }
121510
- failQuery();
121511
- return;
121512
- }
121513
- const item = {
121514
- status: "pending",
121515
- resource,
121516
- callback: (status2, data) => {
121517
- moduleResponse(item, status2, data);
121518
- }
121519
- };
121520
- queue.push(item);
121521
- queriesSent++;
121522
- timer = setTimeout(execNext, config2.rotate);
121523
- query(resource, payload, item.callback);
121524
- }
121525
- setTimeout(execNext);
121526
- return getQueryStatus;
121527
- }
121528
- function initRedundancy(cfg) {
121529
- const config2 = {
121530
- ...defaultConfig,
121531
- ...cfg
121532
- };
121533
- let queries = [];
121534
- function cleanup() {
121535
- queries = queries.filter((item) => item().status === "pending");
121536
- }
121537
- function query(payload, queryCallback, doneCallback) {
121538
- const query2 = sendQuery(
121539
- config2,
121540
- payload,
121541
- queryCallback,
121542
- (data, error2) => {
121543
- cleanup();
121544
- if (doneCallback) {
121545
- doneCallback(data, error2);
121546
- }
121547
- }
121548
- );
121549
- queries.push(query2);
121550
- return query2;
121551
- }
121552
- function find4(callback) {
121553
- return queries.find((value) => {
121554
- return callback(value);
121555
- }) || null;
121556
- }
121557
- const instance = {
121558
- query,
121559
- find: find4,
121560
- setIndex: (index4) => {
121561
- config2.index = index4;
121562
- },
121563
- getIndex: () => config2.index,
121564
- cleanup
121565
- };
121566
- return instance;
121567
- }
121568
- function emptyCallback$1() {
121569
- }
121570
- var redundancyCache = /* @__PURE__ */ Object.create(null);
121571
- function getRedundancyCache(provider) {
121572
- if (!redundancyCache[provider]) {
121573
- const config2 = getAPIConfig(provider);
121574
- if (!config2) {
121575
- return;
121576
- }
121577
- const redundancy = initRedundancy(config2);
121578
- const cachedReundancy = {
121579
- config: config2,
121580
- redundancy
121581
- };
121582
- redundancyCache[provider] = cachedReundancy;
121583
- }
121584
- return redundancyCache[provider];
121585
- }
121586
- function sendAPIQuery(target, query, callback) {
121587
- let redundancy;
121588
- let send2;
121589
- if (typeof target === "string") {
121590
- const api = getAPIModule(target);
121591
- if (!api) {
121592
- callback(void 0, 424);
121593
- return emptyCallback$1;
121594
- }
121595
- send2 = api.send;
121596
- const cached = getRedundancyCache(target);
121597
- if (cached) {
121598
- redundancy = cached.redundancy;
121599
- }
121600
- } else {
121601
- const config2 = createAPIConfig(target);
121602
- if (config2) {
121603
- redundancy = initRedundancy(config2);
121604
- const moduleKey = target.resources ? target.resources[0] : "";
121605
- const api = getAPIModule(moduleKey);
121606
- if (api) {
121607
- send2 = api.send;
121608
- }
121609
- }
121610
- }
121611
- if (!redundancy || !send2) {
121612
- callback(void 0, 424);
121613
- return emptyCallback$1;
121614
- }
121615
- return redundancy.query(query, send2, callback)().abort;
121616
- }
121617
- var browserCacheVersion = "iconify2";
121618
- var browserCachePrefix = "iconify";
121619
- var browserCacheCountKey = browserCachePrefix + "-count";
121620
- var browserCacheVersionKey = browserCachePrefix + "-version";
121621
- var browserStorageHour = 36e5;
121622
- var browserStorageCacheExpiration = 168;
121623
- function getStoredItem(func, key2) {
121624
- try {
121625
- return func.getItem(key2);
121626
- } catch (err) {
121627
- }
121628
- }
121629
- function setStoredItem(func, key2, value) {
121630
- try {
121631
- func.setItem(key2, value);
121632
- return true;
121633
- } catch (err) {
121634
- }
121635
- }
121636
- function removeStoredItem(func, key2) {
121637
- try {
121638
- func.removeItem(key2);
121639
- } catch (err) {
121640
- }
121641
- }
121642
- function setBrowserStorageItemsCount(storage2, value) {
121643
- return setStoredItem(storage2, browserCacheCountKey, value.toString());
121644
- }
121645
- function getBrowserStorageItemsCount(storage2) {
121646
- return parseInt(getStoredItem(storage2, browserCacheCountKey)) || 0;
121647
- }
121648
- var browserStorageConfig = {
121649
- local: true,
121650
- session: true
121651
- };
121652
- var browserStorageEmptyItems = {
121653
- local: /* @__PURE__ */ new Set(),
121654
- session: /* @__PURE__ */ new Set()
121655
- };
121656
- var browserStorageStatus = false;
121657
- function setBrowserStorageStatus(status) {
121658
- browserStorageStatus = status;
121659
- }
121660
- var _window = typeof window === "undefined" ? {} : window;
121661
- function getBrowserStorage(key2) {
121662
- const attr = key2 + "Storage";
121663
- try {
121664
- if (_window && _window[attr] && typeof _window[attr].length === "number") {
121665
- return _window[attr];
121666
- }
121667
- } catch (err) {
121668
- }
121669
- browserStorageConfig[key2] = false;
121670
- }
121671
- function iterateBrowserStorage(key2, callback) {
121672
- const func = getBrowserStorage(key2);
121673
- if (!func) {
121674
- return;
121675
- }
121676
- const version2 = getStoredItem(func, browserCacheVersionKey);
121677
- if (version2 !== browserCacheVersion) {
121678
- if (version2) {
121679
- const total2 = getBrowserStorageItemsCount(func);
121680
- for (let i16 = 0; i16 < total2; i16++) {
121681
- removeStoredItem(func, browserCachePrefix + i16.toString());
121682
- }
121683
- }
121684
- setStoredItem(func, browserCacheVersionKey, browserCacheVersion);
121685
- setBrowserStorageItemsCount(func, 0);
121686
- return;
121687
- }
121688
- const minTime = Math.floor(Date.now() / browserStorageHour) - browserStorageCacheExpiration;
121689
- const parseItem = (index4) => {
121690
- const name2 = browserCachePrefix + index4.toString();
121691
- const item = getStoredItem(func, name2);
121692
- if (typeof item !== "string") {
121693
- return;
121694
- }
121695
- try {
121696
- const data = JSON.parse(item);
121697
- if (typeof data === "object" && typeof data.cached === "number" && data.cached > minTime && typeof data.provider === "string" && typeof data.data === "object" && typeof data.data.prefix === "string" && // Valid item: run callback
121698
- callback(data, index4)) {
121699
- return true;
121700
- }
121701
- } catch (err) {
121702
- }
121703
- removeStoredItem(func, name2);
121704
- };
121705
- let total = getBrowserStorageItemsCount(func);
121706
- for (let i16 = total - 1; i16 >= 0; i16--) {
121707
- if (!parseItem(i16)) {
121708
- if (i16 === total - 1) {
121709
- total--;
121710
- setBrowserStorageItemsCount(func, total);
121711
- } else {
121712
- browserStorageEmptyItems[key2].add(i16);
121713
- }
121714
- }
121715
- }
121716
- }
121717
- function initBrowserStorage() {
121718
- if (browserStorageStatus) {
121719
- return;
121720
- }
121721
- setBrowserStorageStatus(true);
121722
- for (const key2 in browserStorageConfig) {
121723
- iterateBrowserStorage(key2, (item) => {
121724
- const iconSet = item.data;
121725
- const provider = item.provider;
121726
- const prefix2 = iconSet.prefix;
121727
- const storage2 = getStorage(
121728
- provider,
121729
- prefix2
121730
- );
121731
- if (!addIconSet(storage2, iconSet).length) {
121732
- return false;
121733
- }
121734
- const lastModified = iconSet.lastModified || -1;
121735
- storage2.lastModifiedCached = storage2.lastModifiedCached ? Math.min(storage2.lastModifiedCached, lastModified) : lastModified;
121736
- return true;
121737
- });
121738
- }
121739
- }
121740
- function updateLastModified(storage2, lastModified) {
121741
- const lastValue = storage2.lastModifiedCached;
121742
- if (
121743
- // Matches or newer
121744
- lastValue && lastValue >= lastModified
121745
- ) {
121746
- return lastValue === lastModified;
121747
- }
121748
- storage2.lastModifiedCached = lastModified;
121749
- if (lastValue) {
121750
- for (const key2 in browserStorageConfig) {
121751
- iterateBrowserStorage(key2, (item) => {
121752
- const iconSet = item.data;
121753
- return item.provider !== storage2.provider || iconSet.prefix !== storage2.prefix || iconSet.lastModified === lastModified;
121754
- });
121755
- }
121756
- }
121757
- return true;
121758
- }
121759
- function storeInBrowserStorage(storage2, data) {
121760
- if (!browserStorageStatus) {
121761
- initBrowserStorage();
121762
- }
121763
- function store(key2) {
121764
- let func;
121765
- if (!browserStorageConfig[key2] || !(func = getBrowserStorage(key2))) {
121766
- return;
121767
- }
121768
- const set2 = browserStorageEmptyItems[key2];
121769
- let index4;
121770
- if (set2.size) {
121771
- set2.delete(index4 = Array.from(set2).shift());
121772
- } else {
121773
- index4 = getBrowserStorageItemsCount(func);
121774
- if (!setBrowserStorageItemsCount(func, index4 + 1)) {
121775
- return;
121776
- }
121777
- }
121778
- const item = {
121779
- cached: Math.floor(Date.now() / browserStorageHour),
121780
- provider: storage2.provider,
121781
- data
121782
- };
121783
- return setStoredItem(
121784
- func,
121785
- browserCachePrefix + index4.toString(),
121786
- JSON.stringify(item)
121787
- );
121788
- }
121789
- if (data.lastModified && !updateLastModified(storage2, data.lastModified)) {
121790
- return;
121791
- }
121792
- if (!Object.keys(data.icons).length) {
121793
- return;
121794
- }
121795
- if (data.not_found) {
121796
- data = Object.assign({}, data);
121797
- delete data.not_found;
121798
- }
121799
- if (!store("local")) {
121800
- store("session");
121801
- }
121802
- }
121803
- function emptyCallback() {
121804
- }
121805
- function loadedNewIcons(storage2) {
121806
- if (!storage2.iconsLoaderFlag) {
121807
- storage2.iconsLoaderFlag = true;
121808
- setTimeout(() => {
121809
- storage2.iconsLoaderFlag = false;
121810
- updateCallbacks(storage2);
121811
- });
121812
- }
121813
- }
121814
- function loadNewIcons(storage2, icons) {
121815
- if (!storage2.iconsToLoad) {
121816
- storage2.iconsToLoad = icons;
121817
- } else {
121818
- storage2.iconsToLoad = storage2.iconsToLoad.concat(icons).sort();
121819
- }
121820
- if (!storage2.iconsQueueFlag) {
121821
- storage2.iconsQueueFlag = true;
121822
- setTimeout(() => {
121823
- storage2.iconsQueueFlag = false;
121824
- const { provider, prefix: prefix2 } = storage2;
121825
- const icons2 = storage2.iconsToLoad;
121826
- delete storage2.iconsToLoad;
121827
- let api;
121828
- if (!icons2 || !(api = getAPIModule(provider))) {
121829
- return;
121830
- }
121831
- const params = api.prepare(provider, prefix2, icons2);
121832
- params.forEach((item) => {
121833
- sendAPIQuery(provider, item, (data) => {
121834
- if (typeof data !== "object") {
121835
- item.icons.forEach((name2) => {
121836
- storage2.missing.add(name2);
121837
- });
121838
- } else {
121839
- try {
121840
- const parsed = addIconSet(
121841
- storage2,
121842
- data
121843
- );
121844
- if (!parsed.length) {
121845
- return;
121846
- }
121847
- const pending = storage2.pendingIcons;
121848
- if (pending) {
121849
- parsed.forEach((name2) => {
121850
- pending.delete(name2);
121851
- });
121852
- }
121853
- storeInBrowserStorage(storage2, data);
121854
- } catch (err) {
121855
- console.error(err);
121856
- }
121857
- }
121858
- loadedNewIcons(storage2);
121859
- });
121860
- });
121861
- });
121862
- }
121863
- }
121864
- var loadIcons = (icons, callback) => {
121865
- const cleanedIcons = listToIcons(icons, true, allowSimpleNames());
121866
- const sortedIcons = sortIcons(cleanedIcons);
121867
- if (!sortedIcons.pending.length) {
121868
- let callCallback = true;
121869
- if (callback) {
121870
- setTimeout(() => {
121871
- if (callCallback) {
121872
- callback(
121873
- sortedIcons.loaded,
121874
- sortedIcons.missing,
121875
- sortedIcons.pending,
121876
- emptyCallback
121877
- );
121878
- }
121879
- });
121880
- }
121881
- return () => {
121882
- callCallback = false;
121883
- };
121884
- }
121885
- const newIcons = /* @__PURE__ */ Object.create(null);
121886
- const sources = [];
121887
- let lastProvider, lastPrefix;
121888
- sortedIcons.pending.forEach((icon) => {
121889
- const { provider, prefix: prefix2 } = icon;
121890
- if (prefix2 === lastPrefix && provider === lastProvider) {
121891
- return;
121892
- }
121893
- lastProvider = provider;
121894
- lastPrefix = prefix2;
121895
- sources.push(getStorage(provider, prefix2));
121896
- const providerNewIcons = newIcons[provider] || (newIcons[provider] = /* @__PURE__ */ Object.create(null));
121897
- if (!providerNewIcons[prefix2]) {
121898
- providerNewIcons[prefix2] = [];
121899
- }
121900
- });
121901
- sortedIcons.pending.forEach((icon) => {
121902
- const { provider, prefix: prefix2, name: name2 } = icon;
121903
- const storage2 = getStorage(provider, prefix2);
121904
- const pendingQueue = storage2.pendingIcons || (storage2.pendingIcons = /* @__PURE__ */ new Set());
121905
- if (!pendingQueue.has(name2)) {
121906
- pendingQueue.add(name2);
121907
- newIcons[provider][prefix2].push(name2);
121908
- }
121909
- });
121910
- sources.forEach((storage2) => {
121911
- const { provider, prefix: prefix2 } = storage2;
121912
- if (newIcons[provider][prefix2].length) {
121913
- loadNewIcons(storage2, newIcons[provider][prefix2]);
121914
- }
121915
- });
121916
- return callback ? storeCallback(callback, sortedIcons, sources) : emptyCallback;
121917
- };
121918
- function mergeCustomisations(defaults2, item) {
121919
- const result = {
121920
- ...defaults2
121921
- };
121922
- for (const key2 in item) {
121923
- const value = item[key2];
121924
- const valueType = typeof value;
121925
- if (key2 in defaultIconSizeCustomisations) {
121926
- if (value === null || value && (valueType === "string" || valueType === "number")) {
121927
- result[key2] = value;
121928
- }
121929
- } else if (valueType === typeof result[key2]) {
121930
- result[key2] = key2 === "rotate" ? value % 4 : value;
121931
- }
121932
- }
121933
- return result;
121934
- }
121935
- var separator = /[\s,]+/;
121936
- function flipFromString(custom, flip4) {
121937
- flip4.split(separator).forEach((str) => {
121938
- const value = str.trim();
121939
- switch (value) {
121940
- case "horizontal":
121941
- custom.hFlip = true;
121942
- break;
121943
- case "vertical":
121944
- custom.vFlip = true;
121945
- break;
121946
- }
121947
- });
121948
- }
121949
- function rotateFromString(value, defaultValue3 = 0) {
121950
- const units = value.replace(/^-?[0-9.]*/, "");
121951
- function cleanup(value2) {
121952
- while (value2 < 0) {
121953
- value2 += 4;
121954
- }
121955
- return value2 % 4;
121956
- }
121957
- if (units === "") {
121958
- const num = parseInt(value);
121959
- return isNaN(num) ? 0 : cleanup(num);
121960
- } else if (units !== value) {
121961
- let split = 0;
121962
- switch (units) {
121963
- case "%":
121964
- split = 25;
121965
- break;
121966
- case "deg":
121967
- split = 90;
121968
- }
121969
- if (split) {
121970
- let num = parseFloat(value.slice(0, value.length - units.length));
121971
- if (isNaN(num)) {
121972
- return 0;
121973
- }
121974
- num = num / split;
121975
- return num % 1 === 0 ? cleanup(num) : 0;
121976
- }
121977
- }
121978
- return defaultValue3;
121979
- }
121980
- function iconToHTML(body, attributes) {
121981
- let renderAttribsHTML = body.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
121982
- for (const attr in attributes) {
121983
- renderAttribsHTML += " " + attr + '="' + attributes[attr] + '"';
121984
- }
121985
- return '<svg xmlns="http://www.w3.org/2000/svg"' + renderAttribsHTML + ">" + body + "</svg>";
121986
- }
121987
- function encodeSVGforURL(svg3) {
121988
- return svg3.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
121989
- }
121990
- function svgToData(svg3) {
121991
- return "data:image/svg+xml," + encodeSVGforURL(svg3);
121992
- }
121993
- function svgToURL(svg3) {
121994
- return 'url("' + svgToData(svg3) + '")';
121995
- }
121996
- var policy;
121997
- function createPolicy() {
121998
- try {
121999
- policy = window.trustedTypes.createPolicy("iconify", {
122000
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
122001
- createHTML: (s14) => s14
122002
- });
122003
- } catch (err) {
122004
- policy = null;
122005
- }
122006
- }
122007
- function cleanUpInnerHTML(html4) {
122008
- if (policy === void 0) {
122009
- createPolicy();
122010
- }
122011
- return policy ? policy.createHTML(html4) : html4;
122012
- }
122013
- var defaultExtendedIconCustomisations = {
122014
- ...defaultIconCustomisations,
122015
- inline: false
122016
- };
122017
- var svgDefaults = {
122018
- "xmlns": "http://www.w3.org/2000/svg",
122019
- "xmlnsXlink": "http://www.w3.org/1999/xlink",
122020
- "aria-hidden": true,
122021
- "role": "img"
122022
- };
122023
- var commonProps = {
122024
- display: "inline-block"
122025
- };
122026
- var monotoneProps = {
122027
- backgroundColor: "currentColor"
122028
- };
122029
- var coloredProps = {
122030
- backgroundColor: "transparent"
122031
- };
122032
- var propsToAdd = {
122033
- Image: "var(--svg)",
122034
- Repeat: "no-repeat",
122035
- Size: "100% 100%"
122036
- };
122037
- var propsToAddTo = {
122038
- WebkitMask: monotoneProps,
122039
- mask: monotoneProps,
122040
- background: coloredProps
122041
- };
122042
- for (const prefix2 in propsToAddTo) {
122043
- const list3 = propsToAddTo[prefix2];
122044
- for (const prop in propsToAdd) {
122045
- list3[prefix2 + prop] = propsToAdd[prop];
122046
- }
122047
- }
122048
- var inlineDefaults = {
122049
- ...defaultExtendedIconCustomisations,
122050
- inline: true
122051
- };
122052
- function fixSize(value) {
122053
- return value + (value.match(/^[-0-9.]+$/) ? "px" : "");
122054
- }
122055
- var render = (icon, props, inline4, ref) => {
122056
- const defaultProps6 = inline4 ? inlineDefaults : defaultExtendedIconCustomisations;
122057
- const customisations = mergeCustomisations(defaultProps6, props);
122058
- const mode = props.mode || "svg";
122059
- const style = {};
122060
- const customStyle = props.style || {};
122061
- const componentProps = {
122062
- ...mode === "svg" ? svgDefaults : {},
122063
- ref
122064
- };
122065
- for (let key2 in props) {
122066
- const value = props[key2];
122067
- if (value === void 0) {
122068
- continue;
122069
- }
122070
- switch (key2) {
122071
- // Properties to ignore
122072
- case "icon":
122073
- case "style":
122074
- case "children":
122075
- case "onLoad":
122076
- case "mode":
122077
- case "_ref":
122078
- case "_inline":
122079
- break;
122080
- // Boolean attributes
122081
- case "inline":
122082
- case "hFlip":
122083
- case "vFlip":
122084
- customisations[key2] = value === true || value === "true" || value === 1;
122085
- break;
122086
- // Flip as string: 'horizontal,vertical'
122087
- case "flip":
122088
- if (typeof value === "string") {
122089
- flipFromString(customisations, value);
122090
- }
122091
- break;
122092
- // Color: copy to style
122093
- case "color":
122094
- style.color = value;
122095
- break;
122096
- // Rotation as string
122097
- case "rotate":
122098
- if (typeof value === "string") {
122099
- customisations[key2] = rotateFromString(value);
122100
- } else if (typeof value === "number") {
122101
- customisations[key2] = value;
122102
- }
122103
- break;
122104
- // Remove aria-hidden
122105
- case "ariaHidden":
122106
- case "aria-hidden":
122107
- if (value !== true && value !== "true") {
122108
- delete componentProps["aria-hidden"];
122109
- }
122110
- break;
122111
- // Copy missing property if it does not exist in customisations
122112
- default:
122113
- if (defaultProps6[key2] === void 0) {
122114
- componentProps[key2] = value;
122115
- }
122116
- }
122117
- }
122118
- const item = iconToSVG(icon, customisations);
122119
- const renderAttribs = item.attributes;
122120
- if (customisations.inline) {
122121
- style.verticalAlign = "-0.125em";
122122
- }
122123
- if (mode === "svg") {
122124
- componentProps.style = {
122125
- ...style,
122126
- ...customStyle
122127
- };
122128
- Object.assign(componentProps, renderAttribs);
122129
- let localCounter = 0;
122130
- let id = props.id;
122131
- if (typeof id === "string") {
122132
- id = id.replace(/-/g, "_");
122133
- }
122134
- componentProps.dangerouslySetInnerHTML = {
122135
- __html: cleanUpInnerHTML(replaceIDs(item.body, id ? () => id + "ID" + localCounter++ : "iconifyReact"))
122136
- };
122137
- return React151.createElement("svg", componentProps);
122138
- }
122139
- const { body, width, height } = icon;
122140
- const useMask = mode === "mask" || (mode === "bg" ? false : body.indexOf("currentColor") !== -1);
122141
- const html4 = iconToHTML(body, {
122142
- ...renderAttribs,
122143
- width: width + "",
122144
- height: height + ""
122145
- });
122146
- componentProps.style = {
122147
- ...style,
122148
- "--svg": svgToURL(html4),
122149
- "width": fixSize(renderAttribs.width),
122150
- "height": fixSize(renderAttribs.height),
122151
- ...commonProps,
122152
- ...useMask ? monotoneProps : coloredProps,
122153
- ...customStyle
122154
- };
122155
- return React151.createElement("span", componentProps);
122156
- };
122157
- allowSimpleNames(true);
122158
- setAPIModule("", fetchAPIModule);
122159
- if (typeof document !== "undefined" && typeof window !== "undefined") {
122160
- initBrowserStorage();
122161
- const _window2 = window;
122162
- if (_window2.IconifyPreload !== void 0) {
122163
- const preload = _window2.IconifyPreload;
122164
- const err = "Invalid IconifyPreload syntax.";
122165
- if (typeof preload === "object" && preload !== null) {
122166
- (preload instanceof Array ? preload : [preload]).forEach((item) => {
122167
- try {
122168
- if (
122169
- // Check if item is an object and not null/array
122170
- typeof item !== "object" || item === null || item instanceof Array || // Check for 'icons' and 'prefix'
122171
- typeof item.icons !== "object" || typeof item.prefix !== "string" || // Add icon set
122172
- !addCollection(item)
122173
- ) {
122174
- console.error(err);
122175
- }
122176
- } catch (e8) {
122177
- console.error(err);
122178
- }
122179
- });
122180
- }
122181
- }
122182
- if (_window2.IconifyProviders !== void 0) {
122183
- const providers = _window2.IconifyProviders;
122184
- if (typeof providers === "object" && providers !== null) {
122185
- for (let key2 in providers) {
122186
- const err = "IconifyProviders[" + key2 + "] is invalid.";
122187
- try {
122188
- const value = providers[key2];
122189
- if (typeof value !== "object" || !value || value.resources === void 0) {
122190
- continue;
122191
- }
122192
- if (!addAPIProvider(key2, value)) {
122193
- console.error(err);
122194
- }
122195
- } catch (e8) {
122196
- console.error(err);
122197
- }
122198
- }
122199
- }
122200
- }
122201
- }
122202
- var IconComponent = class extends React151.Component {
122203
- constructor(props) {
122204
- super(props);
122205
- this.state = {
122206
- // Render placeholder before component is mounted
122207
- icon: null
122208
- };
122209
- }
122210
- /**
122211
- * Abort loading icon
122212
- */
122213
- _abortLoading() {
122214
- if (this._loading) {
122215
- this._loading.abort();
122216
- this._loading = null;
122217
- }
122218
- }
122219
- /**
122220
- * Update state
122221
- */
122222
- _setData(icon) {
122223
- if (this.state.icon !== icon) {
122224
- this.setState({
122225
- icon
122226
- });
122227
- }
122228
- }
122229
- /**
122230
- * Check if icon should be loaded
122231
- */
122232
- _checkIcon(changed) {
122233
- const state = this.state;
122234
- const icon = this.props.icon;
122235
- if (typeof icon === "object" && icon !== null && typeof icon.body === "string") {
122236
- this._icon = "";
122237
- this._abortLoading();
122238
- if (changed || state.icon === null) {
122239
- this._setData({
122240
- data: icon
122241
- });
122242
- }
122243
- return;
122244
- }
122245
- let iconName;
122246
- if (typeof icon !== "string" || (iconName = stringToIcon(icon, false, true)) === null) {
122247
- this._abortLoading();
122248
- this._setData(null);
122249
- return;
122250
- }
122251
- const data = getIconData(iconName);
122252
- if (!data) {
122253
- if (!this._loading || this._loading.name !== icon) {
122254
- this._abortLoading();
122255
- this._icon = "";
122256
- this._setData(null);
122257
- if (data !== null) {
122258
- this._loading = {
122259
- name: icon,
122260
- abort: loadIcons([iconName], this._checkIcon.bind(this, false))
122261
- };
122262
- }
122263
- }
122264
- return;
122265
- }
122266
- if (this._icon !== icon || state.icon === null) {
122267
- this._abortLoading();
122268
- this._icon = icon;
122269
- const classes = ["iconify"];
122270
- if (iconName.prefix !== "") {
122271
- classes.push("iconify--" + iconName.prefix);
122272
- }
122273
- if (iconName.provider !== "") {
122274
- classes.push("iconify--" + iconName.provider);
122275
- }
122276
- this._setData({
122277
- data,
122278
- classes
122279
- });
122280
- if (this.props.onLoad) {
122281
- this.props.onLoad(icon);
122282
- }
122283
- }
122284
- }
122285
- /**
122286
- * Component mounted
122287
- */
122288
- componentDidMount() {
122289
- this._checkIcon(false);
122290
- }
122291
- /**
122292
- * Component updated
122293
- */
122294
- componentDidUpdate(oldProps) {
122295
- if (oldProps.icon !== this.props.icon) {
122296
- this._checkIcon(true);
122297
- }
122298
- }
122299
- /**
122300
- * Abort loading
122301
- */
122302
- componentWillUnmount() {
122303
- this._abortLoading();
122304
- }
122305
- /**
122306
- * Render
122307
- */
122308
- render() {
122309
- const props = this.props;
122310
- const icon = this.state.icon;
122311
- if (icon === null) {
122312
- return props.children ? props.children : React151.createElement("span", {});
122313
- }
122314
- let newProps = props;
122315
- if (icon.classes) {
122316
- newProps = {
122317
- ...props,
122318
- className: (typeof props.className === "string" ? props.className + " " : "") + icon.classes.join(" ")
122319
- };
122320
- }
122321
- return render({
122322
- ...defaultIconProps,
122323
- ...icon.data
122324
- }, newProps, props._inline, props._ref);
122325
- }
122326
- };
122327
- var Icon3 = React151.forwardRef(function Icon4(props, ref) {
122328
- const newProps = {
122329
- ...props,
122330
- _ref: ref,
122331
- _inline: false
122332
- };
122333
- return React151.createElement(IconComponent, newProps);
122334
- });
122335
- var InlineIcon = React151.forwardRef(function InlineIcon2(props, ref) {
122336
- const newProps = {
122337
- ...props,
122338
- _ref: ref,
122339
- _inline: true
122340
- };
122341
- return React151.createElement(IconComponent, newProps);
122342
- });
120561
+ // src/components/FilterBuilder/FilterBuilder.tsx
120562
+ import { Icon as Icon4 } from "@iconify/react";
122343
120563
 
122344
120564
  // src/animate-primitives/components/radix/accordion.tsx
122345
120565
  import { ChevronDownIcon as ChevronDownIcon4 } from "lucide-react";
122346
120566
 
122347
120567
  // src/animate-primitives/primitives/radix/accordion.tsx
122348
- import * as React152 from "react";
120568
+ import * as React151 from "react";
122349
120569
  import { Accordion as AccordionPrimitive } from "radix-ui";
122350
120570
  import { motion as motion26, AnimatePresence as AnimatePresence23 } from "motion/react";
122351
120571
  import { jsx as jsx217 } from "react/jsx-runtime";
@@ -122368,10 +120588,10 @@ function Accordion(props) {
122368
120588
  }
122369
120589
  function AccordionItem(props) {
122370
120590
  const { value } = useAccordion();
122371
- const [isOpen, setIsOpen] = React152.useState(
120591
+ const [isOpen, setIsOpen] = React151.useState(
122372
120592
  value?.includes(props?.value) ?? false
122373
120593
  );
122374
- React152.useEffect(() => {
120594
+ React151.useEffect(() => {
122375
120595
  setIsOpen(value?.includes(props?.value) ?? false);
122376
120596
  }, [value, props?.value]);
122377
120597
  return /* @__PURE__ */ jsx217(AccordionItemProvider, { value: { isOpen, setIsOpen, value: props.value }, children: /* @__PURE__ */ jsx217(AccordionPrimitive.Item, { "data-slot": "accordion-item", ...props }) });
@@ -122475,10 +120695,11 @@ function AccordionContent2({
122475
120695
  import { useDevice } from "@pol-studios/hooks";
122476
120696
 
122477
120697
  // src/components/FilterBuilder/MobileFilterDrawer.tsx
122478
- import React154, { useState as useState80, useEffect as useEffect70 } from "react";
120698
+ import React153, { useState as useState80, useEffect as useEffect70 } from "react";
120699
+ import { Icon as Icon3 } from "@iconify/react";
122479
120700
 
122480
120701
  // src/components/FilterBuilder/Preview/FilterPreview.tsx
122481
- import React153 from "react";
120702
+ import React152 from "react";
122482
120703
  import { jsx as jsx219, jsxs as jsxs129 } from "react/jsx-runtime";
122483
120704
  function isFilterState(filter) {
122484
120705
  return "field" in filter && typeof filter.field === "string";
@@ -122507,7 +120728,7 @@ function RenderFilters({ filters, setFilters, depth = 0 }) {
122507
120728
  return 0;
122508
120729
  }).map((filter, index4) => {
122509
120730
  if (filter.id === SEARCH_ID) {
122510
- return /* @__PURE__ */ jsx219(React153.Fragment, { children: /* @__PURE__ */ jsxs129("div", { className: "flex items-start space-x-3", children: [
120731
+ return /* @__PURE__ */ jsx219(React152.Fragment, { children: /* @__PURE__ */ jsxs129("div", { className: "flex items-start space-x-3", children: [
122511
120732
  index4 > 0 && /* @__PURE__ */ jsx219(
122512
120733
  "span",
122513
120734
  {
@@ -122522,12 +120743,12 @@ function RenderFilters({ filters, setFilters, depth = 0 }) {
122522
120743
  ] }) }, index4);
122523
120744
  }
122524
120745
  if (isFilterGroup(filter)) {
122525
- return /* @__PURE__ */ jsx219(React153.Fragment, { children: /* @__PURE__ */ jsxs129("div", { className: "flex items-start", children: [
120746
+ return /* @__PURE__ */ jsx219(React152.Fragment, { children: /* @__PURE__ */ jsxs129("div", { className: "flex items-start", children: [
122526
120747
  index4 > 0 && /* @__PURE__ */ jsx219("span", { className: "mx-2 text-sm font-medium text-muted-600", children: filters.op }),
122527
120748
  RenderFilters({ filters: filter, setFilters, depth: depth + 1 })
122528
120749
  ] }) }, index4);
122529
120750
  } else if (isFilterState(filter)) {
122530
- return /* @__PURE__ */ jsx219(React153.Fragment, { children: /* @__PURE__ */ jsxs129("div", { className: "flex items-start space-x-3", children: [
120751
+ return /* @__PURE__ */ jsx219(React152.Fragment, { children: /* @__PURE__ */ jsxs129("div", { className: "flex items-start space-x-3", children: [
122531
120752
  index4 > 0 && /* @__PURE__ */ jsx219(
122532
120753
  "span",
122533
120754
  {
@@ -122687,7 +120908,7 @@ function MobileFilterDrawer({
122687
120908
  hasRecommendedFilters && propOptions && /* @__PURE__ */ jsxs130("div", { className: "pb-2", children: [
122688
120909
  /* @__PURE__ */ jsx220("div", { className: filterStyles.recommendedHeader, children: "Recommended" }),
122689
120910
  /* @__PURE__ */ jsx220("div", { className: "space-y-1", children: renderOptionsGroups(propOptions, 0, "recommended").map(
122690
- (item, index4) => React154.cloneElement(item, { key: index4 })
120911
+ (item, index4) => React153.cloneElement(item, { key: index4 })
122691
120912
  ) })
122692
120913
  ] }),
122693
120914
  hasRecommendedFilters && propOptions ? /* @__PURE__ */ jsx220(
@@ -122704,16 +120925,16 @@ function MobileFilterDrawer({
122704
120925
  /* @__PURE__ */ jsx220("span", { className: "text-xs bg-muted-200 text-muted-700 px-2 py-1 rounded-full font-medium", children: filterOptions.length })
122705
120926
  ] }) }),
122706
120927
  /* @__PURE__ */ jsx220(AccordionContent2, { className: "pb-0 pt-0", children: /* @__PURE__ */ jsx220("div", { className: "space-y-1", children: renderOptionsGroups(propOptions, 0, "all").map(
122707
- (item, index4) => React154.cloneElement(item, { key: index4 })
120928
+ (item, index4) => React153.cloneElement(item, { key: index4 })
122708
120929
  ) }) })
122709
120930
  ] })
122710
120931
  }
122711
120932
  ) : (
122712
120933
  // No recommended filters - render normally
122713
120934
  /* @__PURE__ */ jsx220(Accordion2, { type: "multiple", className: "space-y-1", children: propOptions ? renderOptionsGroups(propOptions).map(
122714
- (item, index4) => React154.cloneElement(item, { key: index4 })
120935
+ (item, index4) => React153.cloneElement(item, { key: index4 })
122715
120936
  ) : renderNestedOptions(children).map(
122716
- (item, index4) => React154.cloneElement(item, { key: index4 })
120937
+ (item, index4) => React153.cloneElement(item, { key: index4 })
122717
120938
  ) })
122718
120939
  )
122719
120940
  ] }),
@@ -123030,7 +121251,7 @@ function MobileFilterDrawer({
123030
121251
  }
123031
121252
 
123032
121253
  // src/components/FilterBuilder/FilterBuilder.tsx
123033
- import { useSchema } from "@pol-studios/filters";
121254
+ import { useSchema } from "@pol-studios/ui/filters";
123034
121255
  import { Fragment as Fragment41, jsx as jsx221, jsxs as jsxs131 } from "react/jsx-runtime";
123035
121256
  function isFilterConfig(option) {
123036
121257
  return option && typeof option === "object" && "field" in option && !("property" in option || option.property === void 0);
@@ -123374,24 +121595,24 @@ function _FilterBuilder({
123374
121595
  return flattenOptions(propOptions);
123375
121596
  }
123376
121597
  const extractOptions = (child) => {
123377
- if (React155.isValidElement(child)) {
121598
+ if (React154.isValidElement(child)) {
123378
121599
  if (child.type === _FilterBuilder.Option) {
123379
121600
  return [child.props.value];
123380
121601
  }
123381
121602
  if (child.type === _FilterBuilder.NestedOptions) {
123382
- return React155.Children.toArray(child.props.children).flatMap(
121603
+ return React154.Children.toArray(child.props.children).flatMap(
123383
121604
  extractOptions
123384
121605
  );
123385
121606
  }
123386
- if (child.type === React155.Fragment) {
123387
- return React155.Children.toArray(child.props.children).flatMap(
121607
+ if (child.type === React154.Fragment) {
121608
+ return React154.Children.toArray(child.props.children).flatMap(
123388
121609
  extractOptions
123389
121610
  );
123390
121611
  }
123391
121612
  }
123392
121613
  return [];
123393
121614
  };
123394
- const res = React155.Children.toArray(children).flatMap(extractOptions);
121615
+ const res = React154.Children.toArray(children).flatMap(extractOptions);
123395
121616
  if (customColumns.data) {
123396
121617
  const customColumnsOptions = customColumns.data.map(
123397
121618
  (col) => {
@@ -123722,7 +121943,10 @@ function _FilterBuilder({
123722
121943
  setFilters((layer) => ({
123723
121944
  ...layer,
123724
121945
  isReady: true,
123725
- filters: [...layer.filters.filter((x10) => x10.id !== AI_SEARCH_ID), newLayer]
121946
+ filters: [
121947
+ ...layer.filters.filter((x10) => x10.id !== AI_SEARCH_ID),
121948
+ newLayer
121949
+ ]
123726
121950
  }));
123727
121951
  }
123728
121952
  const countAdvancedFiltersInGroups = (groups) => {
@@ -123833,7 +122057,7 @@ function _FilterBuilder({
123833
122057
  }
123834
122058
  ),
123835
122059
  /* @__PURE__ */ jsx221("div", { className: "", children: /* @__PURE__ */ jsx221("div", { className: "pl-2 mt-2", children: renderedChildren.map(
123836
- (childItem, index4) => React155.cloneElement(childItem, { key: index4 })
122060
+ (childItem, index4) => React154.cloneElement(childItem, { key: index4 })
123837
122061
  ) }) })
123838
122062
  ]
123839
122063
  },
@@ -123858,8 +122082,8 @@ function _FilterBuilder({
123858
122082
  };
123859
122083
  const renderNestedOptions = (children2, level = 0) => {
123860
122084
  const items = [];
123861
- React155.Children.forEach(children2, (child) => {
123862
- if (!React155.isValidElement(child)) return;
122085
+ React154.Children.forEach(children2, (child) => {
122086
+ if (!React154.isValidElement(child)) return;
123863
122087
  const childWithChildren = child;
123864
122088
  if (childWithChildren.type === FilterBuilder.NestedOptions) {
123865
122089
  const isAdvanced = childWithChildren.props.advanced === true;
@@ -123883,7 +122107,7 @@ function _FilterBuilder({
123883
122107
  style: { top: `${currentLevel * 41}px` },
123884
122108
  children: /* @__PURE__ */ jsxs131("div", { className: "flex items-center justify-between w-full", children: [
123885
122109
  /* @__PURE__ */ jsx221("span", { className: "text-muted-800 text-xs md:text-sm font-semibold tracking-tight", children: childWithChildren.props.title }),
123886
- /* @__PURE__ */ jsx221("span", { className: "text-xs text-muted-600 bg-muted-100 px-2 md:px-2.5 py-1 rounded-full font-medium", children: React155.Children.count(childWithChildren.props.children) })
122110
+ /* @__PURE__ */ jsx221("span", { className: "text-xs text-muted-600 bg-muted-100 px-2 md:px-2.5 py-1 rounded-full font-medium", children: React154.Children.count(childWithChildren.props.children) })
123887
122111
  ] })
123888
122112
  }
123889
122113
  ),
@@ -123891,14 +122115,14 @@ function _FilterBuilder({
123891
122115
  childWithChildren.props.children,
123892
122116
  currentLevel + 1
123893
122117
  ).map(
123894
- (item, index4) => React155.cloneElement(item, { key: index4 })
122118
+ (item, index4) => React154.cloneElement(item, { key: index4 })
123895
122119
  ) }) })
123896
122120
  ]
123897
122121
  },
123898
122122
  childWithChildren.props.title
123899
122123
  )
123900
122124
  );
123901
- } else if (childWithChildren.type === React155.Fragment) {
122125
+ } else if (childWithChildren.type === React154.Fragment) {
123902
122126
  items.push(
123903
122127
  ...renderNestedOptions(childWithChildren.props.children, level)
123904
122128
  );
@@ -124125,7 +122349,9 @@ function _FilterBuilder({
124125
122349
  }
124126
122350
  ),
124127
122351
  /* @__PURE__ */ jsx221("span", { className: "text-sm font-medium", children: "Filter" }),
124128
- normalizedFilters.filters?.filter((f15) => f15.id !== SEARCH_ID && f15.id !== AI_SEARCH_ID).length > 0 && /* @__PURE__ */ jsx221("span", { className: "flex items-center justify-center min-w-5 h-5 px-1.5 text-xs font-semibold rounded-full bg-primary-500 text-white", children: normalizedFilters.filters.filter(
122352
+ normalizedFilters.filters?.filter(
122353
+ (f15) => f15.id !== SEARCH_ID && f15.id !== AI_SEARCH_ID
122354
+ ).length > 0 && /* @__PURE__ */ jsx221("span", { className: "flex items-center justify-center min-w-5 h-5 px-1.5 text-xs font-semibold rounded-full bg-primary-500 text-white", children: normalizedFilters.filters.filter(
124129
122355
  (f15) => f15.id !== SEARCH_ID && f15.id !== AI_SEARCH_ID
124130
122356
  ).length })
124131
122357
  ]
@@ -124140,7 +122366,9 @@ function _FilterBuilder({
124140
122366
  ),
124141
122367
  children: [
124142
122368
  /* @__PURE__ */ jsxs131("div", { className: "flex flex-col gap-2 w-full", children: [
124143
- normalizedFilters.filters?.filter((f15) => f15.id !== SEARCH_ID && f15.id !== AI_SEARCH_ID).length > 0 && /* @__PURE__ */ jsxs131("div", { className: "border-b border-muted-200/50 p-3", children: [
122369
+ normalizedFilters.filters?.filter(
122370
+ (f15) => f15.id !== SEARCH_ID && f15.id !== AI_SEARCH_ID
122371
+ ).length > 0 && /* @__PURE__ */ jsxs131("div", { className: "border-b border-muted-200/50 p-3", children: [
124144
122372
  /* @__PURE__ */ jsxs131("div", { className: "flex items-center justify-between mb-2", children: [
124145
122373
  /* @__PURE__ */ jsx221("span", { className: "text-xs font-medium text-muted-500 uppercase tracking-wide", children: "Active Filters" }),
124146
122374
  /* @__PURE__ */ jsx221(
@@ -124151,7 +122379,9 @@ function _FilterBuilder({
124151
122379
  clearSelectedQuery();
124152
122380
  setFilters((prev) => ({
124153
122381
  ...prev,
124154
- filters: prev.filters.filter((f15) => f15.id === AI_SEARCH_ID || f15.id === SEARCH_ID),
122382
+ filters: prev.filters.filter(
122383
+ (f15) => f15.id === AI_SEARCH_ID || f15.id === SEARCH_ID
122384
+ ),
124155
122385
  isReady: true
124156
122386
  }));
124157
122387
  },
@@ -124160,7 +122390,9 @@ function _FilterBuilder({
124160
122390
  }
124161
122391
  )
124162
122392
  ] }),
124163
- /* @__PURE__ */ jsx221("div", { className: "flex flex-wrap gap-2", children: normalizedFilters.filters?.filter((f15) => f15.id !== SEARCH_ID && f15.id !== AI_SEARCH_ID).map((filter, idx) => {
122393
+ /* @__PURE__ */ jsx221("div", { className: "flex flex-wrap gap-2", children: normalizedFilters.filters?.filter(
122394
+ (f15) => f15.id !== SEARCH_ID && f15.id !== AI_SEARCH_ID
122395
+ ).map((filter, idx) => {
124164
122396
  const filterState = filter;
124165
122397
  if (!filterState.info) return null;
124166
122398
  return /* @__PURE__ */ jsx221(
@@ -124184,7 +122416,13 @@ function _FilterBuilder({
124184
122416
  }) })
124185
122417
  ] }),
124186
122418
  /* @__PURE__ */ jsx221("div", { className: filterStyles.popoverHeader, children: /* @__PURE__ */ jsxs131("div", { className: "relative w-full mt-2", children: [
124187
- /* @__PURE__ */ jsx221(Icon3, { icon: "lucide:search", className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-400 h-4 w-4" }),
122419
+ /* @__PURE__ */ jsx221(
122420
+ Icon4,
122421
+ {
122422
+ icon: "lucide:search",
122423
+ className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-400 h-4 w-4"
122424
+ }
122425
+ ),
124188
122426
  /* @__PURE__ */ jsx221(
124189
122427
  Input,
124190
122428
  {
@@ -124200,7 +122438,7 @@ function _FilterBuilder({
124200
122438
  type: "button",
124201
122439
  onClick: () => setColumnSearch(""),
124202
122440
  className: "absolute right-2 top-1/2 -translate-y-1/2 text-muted-400 hover:text-muted-600",
124203
- children: /* @__PURE__ */ jsx221(Icon3, { icon: "lucide:x", className: "h-4 w-4" })
122441
+ children: /* @__PURE__ */ jsx221(Icon4, { icon: "lucide:x", className: "h-4 w-4" })
124204
122442
  }
124205
122443
  )
124206
122444
  ] }) })
@@ -124210,7 +122448,7 @@ function _FilterBuilder({
124210
122448
  hasRecommendedFilters && propOptions && /* @__PURE__ */ jsxs131("div", { className: "pb-2", children: [
124211
122449
  /* @__PURE__ */ jsx221("div", { className: filterStyles.recommendedHeader, children: "Recommended" }),
124212
122450
  /* @__PURE__ */ jsx221("div", { className: "space-y-1", children: renderOptionsGroups(propOptions, 0, "recommended").map(
124213
- (item, index4) => React155.cloneElement(item, { key: index4 })
122451
+ (item, index4) => React154.cloneElement(item, { key: index4 })
124214
122452
  ) })
124215
122453
  ] }),
124216
122454
  hasRecommendedFilters && propOptions ? /* @__PURE__ */ jsx221(
@@ -124222,21 +122460,27 @@ function _FilterBuilder({
124222
122460
  value: allFiltersExpanded,
124223
122461
  onValueChange: setAllFiltersExpanded,
124224
122462
  children: /* @__PURE__ */ jsxs131(AccordionItem2, { value: "all-filters", className: "border-b-0", children: [
124225
- /* @__PURE__ */ jsx221(AccordionTrigger2, { className: filterStyles.allFiltersHeader, children: /* @__PURE__ */ jsxs131("div", { className: "flex items-center justify-between w-full pr-2", children: [
124226
- /* @__PURE__ */ jsx221("span", { children: "All Filters" }),
124227
- /* @__PURE__ */ jsx221("span", { className: "text-xs bg-muted-200 text-muted-700 px-2 py-1 rounded-full font-medium", children: filterOptions.length })
124228
- ] }) }),
122463
+ /* @__PURE__ */ jsx221(
122464
+ AccordionTrigger2,
122465
+ {
122466
+ className: filterStyles.allFiltersHeader,
122467
+ children: /* @__PURE__ */ jsxs131("div", { className: "flex items-center justify-between w-full pr-2", children: [
122468
+ /* @__PURE__ */ jsx221("span", { children: "All Filters" }),
122469
+ /* @__PURE__ */ jsx221("span", { className: "text-xs bg-muted-200 text-muted-700 px-2 py-1 rounded-full font-medium", children: filterOptions.length })
122470
+ ] })
122471
+ }
122472
+ ),
124229
122473
  /* @__PURE__ */ jsx221(AccordionContent2, { className: "pb-0 pt-0", children: /* @__PURE__ */ jsx221("div", { className: "space-y-1", children: renderOptionsGroups(propOptions, 0, "all").map(
124230
- (item, index4) => React155.cloneElement(item, { key: index4 })
122474
+ (item, index4) => React154.cloneElement(item, { key: index4 })
124231
122475
  ) }) })
124232
122476
  ] })
124233
122477
  }
124234
122478
  ) : (
124235
122479
  // No recommended filters - render normally
124236
122480
  /* @__PURE__ */ jsx221(Accordion2, { type: "multiple", className: "space-y-1", children: propOptions ? renderOptionsGroups(propOptions).map(
124237
- (item, index4) => React155.cloneElement(item, { key: index4 })
122481
+ (item, index4) => React154.cloneElement(item, { key: index4 })
124238
122482
  ) : renderNestedOptions(children).map(
124239
- (item, index4) => React155.cloneElement(item, { key: index4 })
122483
+ (item, index4) => React154.cloneElement(item, { key: index4 })
124240
122484
  ) })
124241
122485
  )
124242
122486
  ] }),
@@ -124337,7 +122581,13 @@ function _FilterBuilder({
124337
122581
  transition: { type: "spring", stiffness: 400, damping: 35 },
124338
122582
  className: "flex items-center overflow-hidden",
124339
122583
  children: /* @__PURE__ */ jsxs131("div", { className: "relative min-w-[180px]", children: [
124340
- /* @__PURE__ */ jsx221(Icon3, { icon: "lucide:search", className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-500 h-4 w-4" }),
122584
+ /* @__PURE__ */ jsx221(
122585
+ Icon4,
122586
+ {
122587
+ icon: "lucide:search",
122588
+ className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-500 h-4 w-4"
122589
+ }
122590
+ ),
124341
122591
  /* @__PURE__ */ jsx221(
124342
122592
  Input,
124343
122593
  {
@@ -124361,11 +122611,13 @@ function _FilterBuilder({
124361
122611
  setFilters((layer) => ({
124362
122612
  ...layer,
124363
122613
  isReady: true,
124364
- filters: layer.filters.filter((x10) => x10.id !== SEARCH_ID)
122614
+ filters: layer.filters.filter(
122615
+ (x10) => x10.id !== SEARCH_ID
122616
+ )
124365
122617
  }));
124366
122618
  },
124367
122619
  className: "absolute right-2 top-1/2 -translate-y-1/2 text-muted-400 hover:text-muted-600",
124368
- children: /* @__PURE__ */ jsx221(Icon3, { icon: "lucide:x", className: "h-4 w-4" })
122620
+ children: /* @__PURE__ */ jsx221(Icon4, { icon: "lucide:x", className: "h-4 w-4" })
124369
122621
  }
124370
122622
  )
124371
122623
  ] })
@@ -124435,10 +122687,7 @@ function _FilterBuilder({
124435
122687
  /* @__PURE__ */ jsx221(
124436
122688
  PopoverContent2,
124437
122689
  {
124438
- className: cn124(
124439
- filterStyles.popover,
124440
- "w-72 p-4"
124441
- ),
122690
+ className: cn124(filterStyles.popover, "w-72 p-4"),
124442
122691
  align: "start",
124443
122692
  sideOffset: 8,
124444
122693
  children: /* @__PURE__ */ jsxs131("div", { className: "flex flex-col gap-3", children: [
@@ -124454,7 +122703,13 @@ function _FilterBuilder({
124454
122703
  /* @__PURE__ */ jsx221("span", { className: "text-sm font-medium text-muted-800", children: "AI Search" })
124455
122704
  ] }),
124456
122705
  /* @__PURE__ */ jsxs131("div", { className: "relative", children: [
124457
- /* @__PURE__ */ jsx221(Icon3, { icon: "lucide:search", className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-500 h-4 w-4" }),
122706
+ /* @__PURE__ */ jsx221(
122707
+ Icon4,
122708
+ {
122709
+ icon: "lucide:search",
122710
+ className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-500 h-4 w-4"
122711
+ }
122712
+ ),
124458
122713
  /* @__PURE__ */ jsx221(
124459
122714
  Input,
124460
122715
  {
@@ -124482,7 +122737,7 @@ function _FilterBuilder({
124482
122737
  }));
124483
122738
  },
124484
122739
  className: "absolute right-2 top-1/2 -translate-y-1/2 text-muted-400 hover:text-muted-600",
124485
- children: /* @__PURE__ */ jsx221(Icon3, { icon: "lucide:x", className: "h-4 w-4" })
122740
+ children: /* @__PURE__ */ jsx221(Icon4, { icon: "lucide:x", className: "h-4 w-4" })
124486
122741
  }
124487
122742
  )
124488
122743
  ] }),
@@ -124547,7 +122802,7 @@ FilterBuilder.NestedOptions = ({ title, children, level = 0 }) => {
124547
122802
  var FilterBuilder_default = FilterBuilder;
124548
122803
 
124549
122804
  // src/components/FilterBuilder/AutoFilterBuilder.tsx
124550
- import React156 from "react";
122805
+ import React155 from "react";
124551
122806
 
124552
122807
  // src/components/FilterBuilder/generateFilterOptions.ts
124553
122808
  function formatColumnName(name2) {
@@ -124855,7 +123110,7 @@ function generateFilterOptionsFromConfig(config2, schema) {
124855
123110
  import {
124856
123111
  useSchema as useSchema2,
124857
123112
  SchemaProvider
124858
- } from "@pol-studios/filters";
123113
+ } from "@pol-studios/ui/filters";
124859
123114
  import { jsx as jsx222 } from "react/jsx-runtime";
124860
123115
  function AutoFilterBuilder({
124861
123116
  config: config2,
@@ -124867,10 +123122,10 @@ function AutoFilterBuilder({
124867
123122
  ...props
124868
123123
  }) {
124869
123124
  const schemaMetadata = useSchema2();
124870
- const mainTableOptions = React156.useMemo(() => {
123125
+ const mainTableOptions = React155.useMemo(() => {
124871
123126
  return generateFilterOptionsFromConfig(config2, schemaMetadata);
124872
123127
  }, [config2, schemaMetadata]);
124873
- const optionsProp = React156.useMemo(() => {
123128
+ const optionsProp = React155.useMemo(() => {
124874
123129
  const root3 = [];
124875
123130
  const markRecommended = (option) => {
124876
123131
  if (!config2.recommendedColumns?.length) return option;
@@ -124936,7 +123191,12 @@ function AutoFilterBuilder({
124936
123191
  root3.push(...buildGroups(config2.nestedRelationships));
124937
123192
  }
124938
123193
  return root3;
124939
- }, [mainTableOptions, config2.customOptions, config2.nestedRelationships, config2.recommendedColumns]);
123194
+ }, [
123195
+ mainTableOptions,
123196
+ config2.customOptions,
123197
+ config2.nestedRelationships,
123198
+ config2.recommendedColumns
123199
+ ]);
124940
123200
  const getFullTableName = () => {
124941
123201
  return config2.schema ? `${config2.schema}.${config2.table}` : config2.table;
124942
123202
  };
@@ -129895,10 +128155,10 @@ function markdownSpace(code2) {
129895
128155
  }
129896
128156
  var unicodePunctuation = regexCheck(/\p{P}|\p{S}/u);
129897
128157
  var unicodeWhitespace = regexCheck(/\s/);
129898
- function regexCheck(regex2) {
128158
+ function regexCheck(regex) {
129899
128159
  return check;
129900
128160
  function check(code2) {
129901
- return code2 !== null && code2 > -1 && regex2.test(String.fromCharCode(code2));
128161
+ return code2 !== null && code2 > -1 && regex.test(String.fromCharCode(code2));
129902
128162
  }
129903
128163
  }
129904
128164
 
@@ -134636,14 +132896,14 @@ function footnoteReference(state, node2) {
134636
132896
  const id = String(node2.identifier).toUpperCase();
134637
132897
  const safeId = normalizeUri(id.toLowerCase());
134638
132898
  const index4 = state.footnoteOrder.indexOf(id);
134639
- let counter2;
132899
+ let counter;
134640
132900
  let reuseCounter = state.footnoteCounts.get(id);
134641
132901
  if (reuseCounter === void 0) {
134642
132902
  reuseCounter = 0;
134643
132903
  state.footnoteOrder.push(id);
134644
- counter2 = state.footnoteOrder.length;
132904
+ counter = state.footnoteOrder.length;
134645
132905
  } else {
134646
- counter2 = index4 + 1;
132906
+ counter = index4 + 1;
134647
132907
  }
134648
132908
  reuseCounter += 1;
134649
132909
  state.footnoteCounts.set(id, reuseCounter);
@@ -134656,7 +132916,7 @@ function footnoteReference(state, node2) {
134656
132916
  dataFootnoteRef: true,
134657
132917
  ariaDescribedBy: ["footnote-label"]
134658
132918
  },
134659
- children: [{ type: "text", value: String(counter2) }]
132919
+ children: [{ type: "text", value: String(counter) }]
134660
132920
  };
134661
132921
  state.patch(node2, link2);
134662
132922
  const sup = {
@@ -137984,11 +136244,11 @@ import { ChevronDown as ChevronDown7, ChevronUp as ChevronUp3, X as X15, MoreVer
137984
136244
  import { CommentProvider as CommentSectionProvider, useComments as useCommentSection } from "@pol-studios/features";
137985
136245
 
137986
136246
  // src/primitives/separator.tsx
137987
- import * as React157 from "react";
136247
+ import * as React156 from "react";
137988
136248
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
137989
136249
  import { cn as cn128 } from "@pol-studios/utils";
137990
136250
  import { jsx as jsx236 } from "react/jsx-runtime";
137991
- var Separator2 = React157.forwardRef(
136251
+ var Separator2 = React156.forwardRef(
137992
136252
  ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx236(
137993
136253
  SeparatorPrimitive.Root,
137994
136254
  {
@@ -138585,11 +136845,11 @@ var Protected = ({ accessLevel, children }) => {
138585
136845
  var Protected_default = Protected;
138586
136846
 
138587
136847
  // src/primitives/avatar.tsx
138588
- import * as React160 from "react";
136848
+ import * as React159 from "react";
138589
136849
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
138590
136850
  import { cn as cn129 } from "@pol-studios/utils";
138591
136851
  import { jsx as jsx240 } from "react/jsx-runtime";
138592
- var Avatar = React160.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx240(
136852
+ var Avatar = React159.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx240(
138593
136853
  AvatarPrimitive.Root,
138594
136854
  {
138595
136855
  ref,
@@ -138601,7 +136861,7 @@ var Avatar = React160.forwardRef(({ className, ...props }, ref) => /* @__PURE__
138601
136861
  }
138602
136862
  ));
138603
136863
  Avatar.displayName = AvatarPrimitive.Root.displayName;
138604
- var AvatarImage = React160.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx240(
136864
+ var AvatarImage = React159.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx240(
138605
136865
  AvatarPrimitive.Image,
138606
136866
  {
138607
136867
  ref,
@@ -138610,7 +136870,7 @@ var AvatarImage = React160.forwardRef(({ className, ...props }, ref) => /* @__PU
138610
136870
  }
138611
136871
  ));
138612
136872
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
138613
- var AvatarFallback = React160.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx240(
136873
+ var AvatarFallback = React159.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx240(
138614
136874
  AvatarPrimitive.Fallback,
138615
136875
  {
138616
136876
  ref,
@@ -138699,10 +136959,10 @@ function CardRow({
138699
136959
  }
138700
136960
 
138701
136961
  // src/cards/GlassmorphicCard.tsx
138702
- import React161 from "react";
136962
+ import React160 from "react";
138703
136963
  import { cn as cn132 } from "@pol-studios/utils";
138704
136964
  import { jsx as jsx244 } from "react/jsx-runtime";
138705
- var GlassmorphicCard = React161.forwardRef(
136965
+ var GlassmorphicCard = React160.forwardRef(
138706
136966
  ({ children, className, intensity = "medium", ...props }, ref) => {
138707
136967
  const intensityStyles = {
138708
136968
  subtle: [
@@ -139294,11 +137554,11 @@ var TimeActivityDropdownContext = createContext27(
139294
137554
  import { redirect } from "@tanstack/react-router";
139295
137555
 
139296
137556
  // src/charts/CircleChartCard.tsx
139297
- import React165 from "react";
137557
+ import React164 from "react";
139298
137558
  import { Link as Link4 } from "@tanstack/react-router";
139299
137559
  import { jsx as jsx250, jsxs as jsxs147 } from "react/jsx-runtime";
139300
137560
  import { createElement as createElement25 } from "react";
139301
- var CircleChartCard = React165.forwardRef(({ className, title, categories, color: color3, chartData, ...props }, ref) => {
137561
+ var CircleChartCard = React164.forwardRef(({ className, title, categories, color: color3, chartData, ...props }, ref) => {
139302
137562
  function getColor(name2, index4) {
139303
137563
  const category = categories.find(
139304
137564
  (c14) => c14.name.toLowerCase() === name2.toLowerCase()
@@ -141399,7 +139659,7 @@ var ChartRenderer = ({
141399
139659
  observer.observe(containerRef.current);
141400
139660
  return () => observer.disconnect();
141401
139661
  }, [containerRef]);
141402
- const commonProps2 = {
139662
+ const commonProps = {
141403
139663
  data: data.top ? data.top.map((d7) => ({
141404
139664
  name: d7.name,
141405
139665
  value: d7.value,
@@ -141431,12 +139691,12 @@ var ChartRenderer = ({
141431
139691
  };
141432
139692
  switch (chart.type) {
141433
139693
  case "pie":
141434
- return /* @__PURE__ */ jsx259(RechartsPieChart, { ...commonProps2, showLegend: showLegend ?? true });
139694
+ return /* @__PURE__ */ jsx259(RechartsPieChart, { ...commonProps, showLegend: showLegend ?? true });
141435
139695
  case "bar":
141436
139696
  return /* @__PURE__ */ jsx259("div", { className: "w-full overflow-x-auto", children: /* @__PURE__ */ jsx259("div", { style: { minWidth: chart.responsive?.minWidth || "100%" }, children: /* @__PURE__ */ jsx259(
141437
139697
  RechartsBarChart,
141438
139698
  {
141439
- ...commonProps2,
139699
+ ...commonProps,
141440
139700
  showLegend: showLegend ?? true,
141441
139701
  yAxisLabel: chart.yAxisLabel,
141442
139702
  xAxisLabel: chart.xAxisLabel ?? chart.title.replace("", "s"),
@@ -141583,7 +139843,7 @@ var ChartGridView = ({
141583
139843
  var ChartGridView_default = ChartGridView;
141584
139844
 
141585
139845
  // src/charts/generator/Sidebar.tsx
141586
- import React175 from "react";
139846
+ import React174 from "react";
141587
139847
 
141588
139848
  // src/charts/generator/types.ts
141589
139849
  function hasTopValuesData(data) {
@@ -141636,7 +139896,7 @@ var ChartSidebar = ({
141636
139896
  displayData,
141637
139897
  tabConfig
141638
139898
  }) => {
141639
- const TopValuesSection = React175.useCallback(
139899
+ const TopValuesSection = React174.useCallback(
141640
139900
  () => /* @__PURE__ */ jsxs158("div", { className: "space-y-3", children: [
141641
139901
  /* @__PURE__ */ jsx262("h3", { className: "text-sm font-semibold text-muted-700 uppercase tracking-wide", children: "Chart Display" }),
141642
139902
  /* @__PURE__ */ jsxs158("div", { className: "space-y-2", children: [
@@ -141660,7 +139920,7 @@ var ChartSidebar = ({
141660
139920
  ] }),
141661
139921
  [topValuesLimit, setTopValuesLimit]
141662
139922
  );
141663
- const FilterModeSection = React175.useCallback(
139923
+ const FilterModeSection = React174.useCallback(
141664
139924
  () => /* @__PURE__ */ jsxs158("div", { className: "space-y-3", children: [
141665
139925
  /* @__PURE__ */ jsxs158("div", { className: "flex items-center justify-between gap-2", children: [
141666
139926
  /* @__PURE__ */ jsx262("h3", { className: "text-sm font-semibold text-muted-700 uppercase tracking-wide", children: "Filter Mode" }),
@@ -141697,7 +139957,7 @@ var ChartSidebar = ({
141697
139957
  ] }),
141698
139958
  [filterMode, setFilterMode, isFilterLoading, displayData.length]
141699
139959
  );
141700
- const NavigationSection = React175.useCallback(
139960
+ const NavigationSection = React174.useCallback(
141701
139961
  () => /* @__PURE__ */ jsxs158("div", { className: "space-y-3", children: [
141702
139962
  /* @__PURE__ */ jsx262("h3", { className: "text-sm font-semibold text-muted-700 uppercase tracking-wide", children: "Views" }),
141703
139963
  /* @__PURE__ */ jsx262("div", { className: "space-y-2", children: tabConfig.map((tab2) => /* @__PURE__ */ jsxs158(
@@ -141727,7 +139987,7 @@ var ChartSidebar = ({
141727
139987
  isFilterLoading
141728
139988
  ]
141729
139989
  );
141730
- const sidebarContent = React175.useMemo(
139990
+ const sidebarContent = React174.useMemo(
141731
139991
  () => /* @__PURE__ */ jsxs158(Fragment47, { children: [
141732
139992
  /* @__PURE__ */ jsx262(TopValuesSection, {}),
141733
139993
  /* @__PURE__ */ jsx262(FilterModeSection, {}),
@@ -141771,7 +140031,7 @@ var StatsView = ({
141771
140031
  ];
141772
140032
  return /* @__PURE__ */ jsx263("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6", children: statKeys.map((key2, index4) => {
141773
140033
  const value = stats[key2];
141774
- const IconComponent2 = iconMap[index4 % iconMap.length];
140034
+ const IconComponent = iconMap[index4 % iconMap.length];
141775
140035
  const isNumeric = typeof value === "number";
141776
140036
  const displayValue = isNumeric ? value.toLocaleString() : String(value);
141777
140037
  return /* @__PURE__ */ jsxs159(
@@ -141779,7 +140039,7 @@ var StatsView = ({
141779
140039
  {
141780
140040
  className: "bg-gradient-to-br from-primary-50 to-primary-100 border border-primary-200 rounded-2xl p-6 text-center hover:shadow-lg transition-all duration-200 hover:scale-[1.02]",
141781
140041
  children: [
141782
- /* @__PURE__ */ jsx263("div", { className: "flex justify-center mb-3", children: /* @__PURE__ */ jsx263(IconComponent2, { className: "h-8 w-8 text-primary-600" }) }),
140042
+ /* @__PURE__ */ jsx263("div", { className: "flex justify-center mb-3", children: /* @__PURE__ */ jsx263(IconComponent, { className: "h-8 w-8 text-primary-600" }) }),
141783
140043
  /* @__PURE__ */ jsx263("div", { className: "text-4xl font-bold text-primary-700 mb-2", children: displayValue }),
141784
140044
  /* @__PURE__ */ jsx263("div", { className: "text-lg text-primary-600 font-medium", children: key2.replace(/([A-Z])/g, " $1").replace(/^./, (str) => str.toUpperCase()) })
141785
140045
  ]
@@ -142145,7 +140405,7 @@ var resolveBreadcrumbLabel = async (label, supabase, pathname) => {
142145
140405
  import { cn as cn138 } from "@pol-studios/utils";
142146
140406
 
142147
140407
  // src/nav/aceternity/Breadcrumbs.tsx
142148
- import React178, { useEffect as useEffect85, useState as useState102 } from "react";
140408
+ import React177, { useEffect as useEffect85, useState as useState102 } from "react";
142149
140409
  import { Link as Link5 } from "@tanstack/react-router";
142150
140410
  import { cn as cn137 } from "@pol-studios/utils";
142151
140411
  import { jsx as jsx267, jsxs as jsxs163 } from "react/jsx-runtime";
@@ -142207,7 +140467,7 @@ var Breadcrumbs = ({
142207
140467
  children: displaySegments.map((segment, index4) => {
142208
140468
  const isLast = index4 === displaySegments.length - 1;
142209
140469
  const isClickable = segment.href && !isLast;
142210
- return /* @__PURE__ */ jsxs163(React178.Fragment, { children: [
140470
+ return /* @__PURE__ */ jsxs163(React177.Fragment, { children: [
142211
140471
  index4 > 0 && /* @__PURE__ */ jsx267("span", { className: "text-muted-400", children: "/" }),
142212
140472
  isClickable ? /* @__PURE__ */ jsx267(
142213
140473
  Link5,
@@ -142295,10 +140555,10 @@ function DataTableSkeleton({ variant = "rich" }) {
142295
140555
  function DataTableEmpty({
142296
140556
  message,
142297
140557
  icon,
142298
- IconComponent: IconComponent2
140558
+ IconComponent
142299
140559
  }) {
142300
140560
  return /* @__PURE__ */ jsxs165("div", { className: "flex flex-col items-center justify-center h-full py-12 px-4", children: [
142301
- /* @__PURE__ */ jsx269("div", { className: "p-4 rounded-2xl bg-muted/10 mb-4", children: IconComponent2 && /* @__PURE__ */ jsx269(IconComponent2, { name: icon, size: "2.5rem", className: "text-muted-foreground" }) }),
140561
+ /* @__PURE__ */ jsx269("div", { className: "p-4 rounded-2xl bg-muted/10 mb-4", children: IconComponent && /* @__PURE__ */ jsx269(IconComponent, { name: icon, size: "2.5rem", className: "text-muted-foreground" }) }),
142302
140562
  /* @__PURE__ */ jsx269("p", { className: "text-sm font-medium text-muted-foreground text-center max-w-xs", children: message })
142303
140563
  ] });
142304
140564
  }
@@ -142307,14 +140567,14 @@ function DataTableHeader({
142307
140567
  titleIcon,
142308
140568
  itemCount,
142309
140569
  actions,
142310
- IconComponent: IconComponent2,
140570
+ IconComponent,
142311
140571
  HeadingComponent
142312
140572
  }) {
142313
140573
  const [showActions, setShowActions] = useState103(false);
142314
140574
  const TitleComponent = HeadingComponent || (({ children, className }) => /* @__PURE__ */ jsx269("h4", { className, children }));
142315
140575
  return /* @__PURE__ */ jsxs165("div", { className: "flex items-center justify-between w-full pb-4 border-b border-white/10", children: [
142316
140576
  /* @__PURE__ */ jsxs165("div", { className: "flex items-center gap-3 w-full", children: [
142317
- titleIcon && IconComponent2 && /* @__PURE__ */ jsx269("div", { className: "p-2 rounded-lg bg-muted/10", children: /* @__PURE__ */ jsx269(IconComponent2, { name: titleIcon, size: "1.25rem", className: "text-foreground" }) }),
140577
+ titleIcon && IconComponent && /* @__PURE__ */ jsx269("div", { className: "p-2 rounded-lg bg-muted/10", children: /* @__PURE__ */ jsx269(IconComponent, { name: titleIcon, size: "1.25rem", className: "text-foreground" }) }),
142318
140578
  /* @__PURE__ */ jsxs165("div", { className: "flex items-center gap-2 w-full", children: [
142319
140579
  /* @__PURE__ */ jsx269(TitleComponent, { size: 4, className: "font-semibold", children: title }),
142320
140580
  /* @__PURE__ */ jsx269("span", { className: "px-2.5 py-0.5 ml-auto rounded-md bg-muted/20 text-muted-foreground text-xs font-medium", children: itemCount })
@@ -142333,7 +140593,7 @@ function DataTableHeader({
142333
140593
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sapphire-500"
142334
140594
  ),
142335
140595
  "aria-label": "Actions",
142336
- children: IconComponent2 && /* @__PURE__ */ jsx269(IconComponent2, { name: "MoreVertical", size: "1rem", className: "text-muted-foreground" })
140596
+ children: IconComponent && /* @__PURE__ */ jsx269(IconComponent, { name: "MoreVertical", size: "1rem", className: "text-muted-foreground" })
142337
140597
  }
142338
140598
  ),
142339
140599
  showActions && /* @__PURE__ */ jsx269(
@@ -142361,7 +140621,7 @@ function DataTableHeader({
142361
140621
  "transition-colors duration-150"
142362
140622
  ),
142363
140623
  children: [
142364
- action.icon && IconComponent2 && /* @__PURE__ */ jsx269(IconComponent2, { name: action.icon, size: "0.875rem" }),
140624
+ action.icon && IconComponent && /* @__PURE__ */ jsx269(IconComponent, { name: action.icon, size: "0.875rem" }),
142365
140625
  action.label
142366
140626
  ]
142367
140627
  },
@@ -142380,7 +140640,7 @@ function DataTableRow({
142380
140640
  onItemClick,
142381
140641
  isFocused,
142382
140642
  onFocus,
142383
- IconComponent: IconComponent2
140643
+ IconComponent
142384
140644
  }) {
142385
140645
  const barWidthPercent = maxCount > 0 ? item.count / maxCount * 100 : 0;
142386
140646
  const badgeColors = {
@@ -142394,7 +140654,7 @@ function DataTableRow({
142394
140654
  };
142395
140655
  const rowHeightClass = variant === "compact" ? "min-h-11" : variant === "rich" ? "min-h-14" : "min-h-18";
142396
140656
  const rowContent = /* @__PURE__ */ jsxs165(Fragment48, { children: [
142397
- item.icon && IconComponent2 && /* @__PURE__ */ jsx269("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx269(
140657
+ item.icon && IconComponent && /* @__PURE__ */ jsx269("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx269(
142398
140658
  "div",
142399
140659
  {
142400
140660
  className: cn139(
@@ -142404,7 +140664,7 @@ function DataTableRow({
142404
140664
  variant === "feature" && "bg-muted/10"
142405
140665
  ),
142406
140666
  children: /* @__PURE__ */ jsx269(
142407
- IconComponent2,
140667
+ IconComponent,
142408
140668
  {
142409
140669
  name: item.icon,
142410
140670
  size: variant === "feature" ? "1.5rem" : "1rem",
@@ -142449,8 +140709,8 @@ function DataTableRow({
142449
140709
  children: item.count
142450
140710
  }
142451
140711
  ),
142452
- (item.showChevron || item.href) && IconComponent2 && /* @__PURE__ */ jsx269(
142453
- IconComponent2,
140712
+ (item.showChevron || item.href) && IconComponent && /* @__PURE__ */ jsx269(
140713
+ IconComponent,
142454
140714
  {
142455
140715
  name: "ChevronRight",
142456
140716
  size: "1rem",
@@ -142519,7 +140779,7 @@ function DataTable({
142519
140779
  onItemClick,
142520
140780
  className,
142521
140781
  isLoading = false,
142522
- IconComponent: IconComponent2,
140782
+ IconComponent,
142523
140783
  HeadingComponent
142524
140784
  }) {
142525
140785
  const [focusedIndex, setFocusedIndex] = useState103(-1);
@@ -142576,7 +140836,7 @@ function DataTable({
142576
140836
  titleIcon,
142577
140837
  itemCount: data.length,
142578
140838
  actions,
142579
- IconComponent: IconComponent2,
140839
+ IconComponent,
142580
140840
  HeadingComponent
142581
140841
  }
142582
140842
  ),
@@ -142596,7 +140856,7 @@ function DataTable({
142596
140856
  ),
142597
140857
  children: /* @__PURE__ */ jsx269(DataTableSkeleton, { variant })
142598
140858
  }
142599
- ) : isEmpty2 ? /* @__PURE__ */ jsx269(DataTableEmpty, { message: emptyMessage, icon: emptyIcon, IconComponent: IconComponent2 }) : /* @__PURE__ */ jsx269(
140859
+ ) : isEmpty2 ? /* @__PURE__ */ jsx269(DataTableEmpty, { message: emptyMessage, icon: emptyIcon, IconComponent }) : /* @__PURE__ */ jsx269(
142600
140860
  "div",
142601
140861
  {
142602
140862
  ref: scrollAreaRef,
@@ -142621,7 +140881,7 @@ function DataTable({
142621
140881
  onItemClick,
142622
140882
  isFocused: focusedIndex === index4,
142623
140883
  onFocus: () => setFocusedIndex(index4),
142624
- IconComponent: IconComponent2
140884
+ IconComponent
142625
140885
  },
142626
140886
  `${item.label}-${index4}`
142627
140887
  )) })
@@ -142634,7 +140894,7 @@ function DataTable({
142634
140894
 
142635
140895
  // src/data/entity-table/EntityTableView.tsx
142636
140896
  import { cn as cn141, isUsable as isUsable39 } from "@pol-studios/utils";
142637
- import React181, {
140897
+ import React180, {
142638
140898
  useEffect as useEffect88,
142639
140899
  useMemo as useMemo97,
142640
140900
  useCallback as useCallback64,
@@ -142650,7 +140910,7 @@ import { Link as Link7, useRouter as useRouter3 } from "@tanstack/react-router";
142650
140910
  import { useState as useState105, useEffect as useEffect87 } from "react";
142651
140911
 
142652
140912
  // ../../../node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/@tanstack/react-table/build/lib/index.mjs
142653
- import * as React179 from "react";
140913
+ import * as React178 from "react";
142654
140914
 
142655
140915
  // ../../../node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.mjs
142656
140916
  function functionalUpdate(updater, input2) {
@@ -145415,10 +143675,10 @@ function useReactTable(options) {
145415
143675
  renderFallbackValue: null,
145416
143676
  ...options
145417
143677
  };
145418
- const [tableRef] = React179.useState(() => ({
143678
+ const [tableRef] = React178.useState(() => ({
145419
143679
  current: createTable(resolvedOptions)
145420
143680
  }));
145421
- const [state, setState] = React179.useState(() => tableRef.current.initialState);
143681
+ const [state, setState] = React178.useState(() => tableRef.current.initialState);
145422
143682
  tableRef.current.setOptions((prev) => ({
145423
143683
  ...prev,
145424
143684
  ...options,
@@ -146306,7 +144566,7 @@ function EntityTableView({
146306
144566
  /* @__PURE__ */ jsx271("div", { className: cn141("h-full flex-1 overflow-auto min-h-full", className), children: tableWrapper ? tableWrapper(tableElement) : tableElement })
146307
144567
  ] });
146308
144568
  }
146309
- var ComponentStackReporter = class extends React181.Component {
144569
+ var ComponentStackReporter = class extends React180.Component {
146310
144570
  state = { hasError: false };
146311
144571
  static getDerivedStateFromError() {
146312
144572
  return { hasError: true };
@@ -146523,7 +144783,7 @@ import {
146523
144783
  usePartialAdvancedQuery,
146524
144784
  useSupabase as useSupabase15
146525
144785
  } from "@pol-studios/db";
146526
- import { FilterBuilder as FilterBuilder2 } from "@pol-studios/filters";
144786
+ import { FilterBuilder as FilterBuilder2 } from "@pol-studios/ui/filters";
146527
144787
  import { isUsable as isUsable42 } from "@pol-studios/utils";
146528
144788
  import { Fragment as Fragment50, jsx as jsx274, jsxs as jsxs170 } from "react/jsx-runtime";
146529
144789
  function EntityTablePaginatedPage({
@@ -146537,10 +144797,13 @@ function EntityTablePaginatedPage({
146537
144797
  const tableName = typeof relation === "object" ? relation.table : relation;
146538
144798
  const schemaName = typeof relation === "object" ? relation.schema : "public";
146539
144799
  const supabase = useSupabase15();
146540
- const orderBy = useMemo99(() => ({
146541
- field: "id",
146542
- isAscending: false
146543
- }), []);
144800
+ const orderBy = useMemo99(
144801
+ () => ({
144802
+ field: "id",
144803
+ isAscending: false
144804
+ }),
144805
+ []
144806
+ );
146544
144807
  const [request, filters, setFilters] = usePartialAdvancedQuery(
146545
144808
  supabase.schema(schemaName).from(tableName).select(query, { count: "exact" }).order(orderBy.field, { ascending: orderBy.isAscending }),
146546
144809
  50,
@@ -147332,7 +145595,7 @@ var OptionManager = ({
147332
145595
  };
147333
145596
 
147334
145597
  // src/data/entity-table/ColumnSortAndVisibilityManager.tsx
147335
- import React184, { useCallback as useCallback67, useEffect as useEffect92, useMemo as useMemo102, useRef as useRef61, useState as useState112 } from "react";
145598
+ import React183, { useCallback as useCallback67, useEffect as useEffect92, useMemo as useMemo102, useRef as useRef61, useState as useState112 } from "react";
147336
145599
  import { useReducedMotion } from "@pol-studios/hooks";
147337
145600
  import { cn as cn146 } from "@pol-studios/utils";
147338
145601
  import { motion as motion29, AnimatePresence as AnimatePresence25, Reorder } from "framer-motion";
@@ -147488,7 +145751,7 @@ function DraggableColumnItem({
147488
145751
  }
147489
145752
  );
147490
145753
  }
147491
- var VirtualColumnItem = React184.memo(function VirtualColumnItem2({
145754
+ var VirtualColumnItem = React183.memo(function VirtualColumnItem2({
147492
145755
  column,
147493
145756
  enabled,
147494
145757
  onToggle,