@bigbinary/neeto-themes-frontend 1.1.23 → 1.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import React__default, { useEffect, forwardRef, useImperativeHandle, Fragment, u
4
4
  import i18next, { t as t$6 } from 'i18next';
5
5
  import { withImmutableActions, useMutationWithInvalidation, useDebounce, useFuncDebounce, withT, withTitle } from '@bigbinary/neeto-commons-frontend/react-utils';
6
6
  import Spinner$1 from '@bigbinary/neetoui/Spinner';
7
- import { create as create$3 } from 'zustand';
7
+ import { create as create$2 } from 'zustand';
8
8
  import { isNotPresent, snakeToCamelCase, filterBy, isPresent, isNot, findBy, noop as noop$3, keysToCamelCase, findIndexBy, toLabelAndValue, humanize, isNotEmpty } from '@bigbinary/neeto-cist';
9
9
  import Alert from '@bigbinary/neetoui/Alert';
10
10
  import { useTranslation, Trans } from 'react-i18next';
@@ -33,19 +33,19 @@ import MoreDropdown from '@bigbinary/neeto-molecules/MoreDropdown';
33
33
  import Tag from '@bigbinary/neetoui/Tag';
34
34
 
35
35
  /** @type {import("neetocommons/react-utils").ZustandStoreHook} */
36
- var useConfigStore = create$3(withImmutableActions(function (set) {
36
+ var useConfigStore = create$2(withImmutableActions(function (set) {
37
37
  return {
38
- themeConfig: [],
38
+ themePropertiesSchema: [],
39
39
  entityType: "",
40
40
  entityId: "",
41
41
  variableNamesMap: {},
42
- isFetchingConfig: true,
42
+ isFetchingSchema: true,
43
43
  setConfigState: set
44
44
  };
45
45
  }));
46
46
 
47
47
  /** @type {import("neetocommons/react-utils").ZustandStoreHook} */
48
- var useThemeStore = create$3(withImmutableActions(function (set) {
48
+ var useThemeStore = create$2(withImmutableActions(function (set) {
49
49
  return {
50
50
  currentTheme: {},
51
51
  isCurrentThemeLoading: true,
@@ -479,22 +479,16 @@ var WHITE = "255, 255, 255";
479
479
  var BLACK = "0, 0, 0";
480
480
 
481
481
  var show$1 = function show(entityId) {
482
- return axios.get("".concat(BASE_URL, "/api/v1/theme/entities/").concat(entityId));
483
- };
484
- var create$2 = function create(payload) {
485
- return axios.post("".concat(BASE_URL, "/api/v1/theme/entities"), {
486
- entity: payload
487
- });
482
+ return axios.get("".concat(BASE_URL, "/api/v1/entities/").concat(entityId));
488
483
  };
489
484
  var entitiesApi = {
490
- show: show$1,
491
- create: create$2
485
+ show: show$1
492
486
  };
493
487
 
494
488
  var QUERY_KEYS$1 = {
495
489
  THEMES_LIST: "themes-list",
496
490
  THEME_DETAILS: "theme-details",
497
- CONFIG_DETAILS: "config-details"
491
+ SCHEMA_DETAILS: "schema-details"
498
492
  };
499
493
 
500
494
  var useShowThemeEntity = function useShowThemeEntity(entityId) {
@@ -504,14 +498,37 @@ var useShowThemeEntity = function useShowThemeEntity(entityId) {
504
498
  enabled: !!entityId
505
499
  });
506
500
  };
507
- var useCreateThemeEntity = function useCreateThemeEntity(_ref) {
508
- var onSuccess = _ref.onSuccess;
509
- return useMutationWithInvalidation(entitiesApi.create, {
510
- keysToInvalidate: [QUERY_KEYS$1.THEMES_LIST, QUERY_KEYS$1.THEME_ENTITY_DETAILS],
511
- onSuccess: onSuccess
512
- });
513
- };
514
501
 
502
+ function _objectWithoutPropertiesLoose$6(source, excluded) {
503
+ if (source == null) return {};
504
+ var target = {};
505
+ var sourceKeys = Object.keys(source);
506
+ var key, i;
507
+ for (i = 0; i < sourceKeys.length; i++) {
508
+ key = sourceKeys[i];
509
+ if (excluded.indexOf(key) >= 0) continue;
510
+ target[key] = source[key];
511
+ }
512
+ return target;
513
+ }
514
+
515
+ function _objectWithoutProperties$6(source, excluded) {
516
+ if (source == null) return {};
517
+ var target = _objectWithoutPropertiesLoose$6(source, excluded);
518
+ var key, i;
519
+ if (Object.getOwnPropertySymbols) {
520
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
521
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
522
+ key = sourceSymbolKeys[i];
523
+ if (excluded.indexOf(key) >= 0) continue;
524
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
525
+ target[key] = source[key];
526
+ }
527
+ }
528
+ return target;
529
+ }
530
+
531
+ var _excluded$9 = ["themeId"];
515
532
  var list$1 = function list() {
516
533
  return axios.get("".concat(BASE_URL, "/api/v1/themes"));
517
534
  };
@@ -536,13 +553,21 @@ var destroy = function destroy(id) {
536
553
  var clone = function clone(id) {
537
554
  return axios.post("".concat(BASE_URL, "/api/v1/themes/").concat(id, "/clone"));
538
555
  };
556
+ var apply = function apply(_ref2) {
557
+ var themeId = _ref2.themeId,
558
+ payload = _objectWithoutProperties$6(_ref2, _excluded$9);
559
+ return axios.post("".concat(BASE_URL, "/api/v1/themes/").concat(themeId, "/apply"), {
560
+ entity: payload
561
+ });
562
+ };
539
563
  var themesApi = {
540
564
  list: list$1,
541
565
  show: show,
542
566
  create: create$1,
543
567
  update: update$1,
544
568
  destroy: destroy,
545
- clone: clone
569
+ clone: clone,
570
+ apply: apply
546
571
  };
547
572
 
548
573
  var useListThemes = function useListThemes() {
@@ -573,6 +598,13 @@ var useCloneTheme = function useCloneTheme() {
573
598
  keysToInvalidate: [QUERY_KEYS$1.THEMES_LIST]
574
599
  });
575
600
  };
601
+ var useApplyTheme = function useApplyTheme(_ref) {
602
+ var onSuccess = _ref.onSuccess;
603
+ return useMutationWithInvalidation(themesApi.apply, {
604
+ keysToInvalidate: [QUERY_KEYS$1.THEMES_LIST, QUERY_KEYS$1.THEME_ENTITY_DETAILS],
605
+ onSuccess: onSuccess
606
+ });
607
+ };
576
608
 
577
609
  var root = document.querySelector(":root");
578
610
  var setVariable = function setVariable(name, value, variableNamesMap) {
@@ -605,15 +637,15 @@ var setTheme = function setTheme(theme, variableNamesMap, themeConfig) {
605
637
  };
606
638
 
607
639
  var list = function list() {
608
- return axios.get("".concat(BASE_URL, "/api/v1/theme/configs"));
640
+ return axios.get("".concat(BASE_URL, "/api/v1/schema"));
609
641
  };
610
- var configsApi = {
642
+ var schemasApi = {
611
643
  list: list
612
644
  };
613
645
 
614
- var useListConfigs = function useListConfigs(_ref) {
646
+ var useListSchema = function useListSchema(_ref) {
615
647
  var onSuccess = _ref.onSuccess;
616
- return useQuery(QUERY_KEYS$1.CONFIG_DETAILS, configsApi.list, {
648
+ return useQuery(QUERY_KEYS$1.SCHEMA_DETAILS, schemasApi.list, {
617
649
  onSuccess: onSuccess
618
650
  });
619
651
  };
@@ -628,42 +660,42 @@ var useThemeUtils = function useThemeUtils() {
628
660
  }, shallow),
629
661
  previewingTheme = _useThemeStore.previewingTheme,
630
662
  currentTheme = _useThemeStore.currentTheme;
631
- var _useListConfigs = useListConfigs({
663
+ var _useListSchema = useListSchema({
632
664
  onSuccess: function onSuccess(_ref) {
633
- var _ref$config = _ref.config,
634
- themeConfig = _ref$config === void 0 ? [] : _ref$config,
665
+ var _ref$schema = _ref.schema,
666
+ themePropertiesSchema = _ref$schema === void 0 ? [] : _ref$schema,
635
667
  _ref$variableNamesMap = _ref.variableNamesMap,
636
668
  variableNamesMap = _ref$variableNamesMap === void 0 ? {} : _ref$variableNamesMap;
637
669
  return setConfigState({
638
- themeConfig: themeConfig,
670
+ themePropertiesSchema: themePropertiesSchema,
639
671
  variableNamesMap: variableNamesMap
640
672
  });
641
673
  }
642
674
  }),
643
- isFetchingConfig = _useListConfigs.isLoading,
644
- _useListConfigs$data = _useListConfigs.data,
645
- _useListConfigs$data2 = _useListConfigs$data === void 0 ? {} : _useListConfigs$data,
646
- _useListConfigs$data3 = _useListConfigs$data2.config,
647
- themeConfig = _useListConfigs$data3 === void 0 ? [] : _useListConfigs$data3,
648
- _useListConfigs$data4 = _useListConfigs$data2.variableNamesMap,
649
- variableNamesMap = _useListConfigs$data4 === void 0 ? {} : _useListConfigs$data4;
675
+ isFetchingSchema = _useListSchema.isLoading,
676
+ _useListSchema$data = _useListSchema.data,
677
+ _useListSchema$data2 = _useListSchema$data === void 0 ? {} : _useListSchema$data,
678
+ _useListSchema$data2$ = _useListSchema$data2.schema,
679
+ themePropertiesSchema = _useListSchema$data2$ === void 0 ? [] : _useListSchema$data2$,
680
+ _useListSchema$data2$2 = _useListSchema$data2.variableNamesMap,
681
+ variableNamesMap = _useListSchema$data2$2 === void 0 ? {} : _useListSchema$data2$2;
650
682
  useEffect(function () {
651
683
  return setConfigState({
652
- isFetchingConfig: isFetchingConfig
684
+ isFetchingSchema: isFetchingSchema
653
685
  });
654
- }, [isFetchingConfig]);
686
+ }, [isFetchingSchema]);
655
687
  var setVariable$1 = function setVariable$1(name, value) {
656
688
  return setVariable(name, value, variableNamesMap);
657
689
  };
658
690
  var setTheme$1 = function setTheme$1(theme) {
659
- return setTheme(theme, variableNamesMap, themeConfig);
691
+ return setTheme(theme, variableNamesMap, themePropertiesSchema);
660
692
  };
661
693
  return {
662
694
  setTheme: setTheme$1,
663
695
  setVariable: setVariable$1,
664
696
  previewingTheme: previewingTheme,
665
697
  currentTheme: currentTheme,
666
- isFetchingConfig: isFetchingConfig
698
+ isFetchingSchema: isFetchingSchema
667
699
  };
668
700
  };
669
701
 
@@ -784,11 +816,11 @@ var OVERLAY_OPACITY_SLIDER_MARKS = {
784
816
  };
785
817
  var HUNDRED = 100;
786
818
 
787
- var buildInitialValues = function buildInitialValues(theme, themeConfig) {
819
+ var buildInitialValues = function buildInitialValues(theme, themePropertiesSchema) {
788
820
  if (isPresent(theme)) return theme;
789
821
  return {
790
822
  name: t$6("neetoThemes.build.leftSideBar.themes.createTheme.newThemeName"),
791
- properties: themeConfig.map(function (_ref) {
823
+ properties: themePropertiesSchema.map(function (_ref) {
792
824
  var key = _ref.key,
793
825
  kind = _ref.kind,
794
826
  defaultValue = _ref.defaultValue;
@@ -835,27 +867,27 @@ var buildInitialValues = function buildInitialValues(theme, themeConfig) {
835
867
  }).filter(isNot(null))
836
868
  };
837
869
  };
838
- var buildImageData = function buildImageData(values, themeConfig) {
870
+ var buildImageData = function buildImageData(values, themePropertiesSchema) {
839
871
  return filterBy({
840
872
  kind: "image"
841
- }, themeConfig).reduce(function (acc, item) {
873
+ }, themePropertiesSchema).reduce(function (acc, item) {
842
874
  var _values$snakeToCamelC;
843
875
  var signedId = (_values$snakeToCamelC = values[snakeToCamelCase(item.key)]) === null || _values$snakeToCamelC === void 0 ? void 0 : _values$snakeToCamelC.signedId;
844
876
  acc[item.key] = signedId;
845
877
  return acc;
846
878
  }, {});
847
879
  };
848
- var isPropertyVisible = function isPropertyVisible(key, formikValues, themeConfig) {
880
+ var isPropertyVisible = function isPropertyVisible(key, formikValues, themePropertiesSchema) {
849
881
  var _findBy;
850
882
  var property = findBy({
851
883
  key: key
852
- }, themeConfig);
884
+ }, themePropertiesSchema);
853
885
  if (isNotPresent(property)) return false;
854
886
  var conditionalKey = property === null || property === void 0 ? void 0 : property.dependsOn;
855
887
  if (isNotPresent(conditionalKey)) return true;
856
888
  var dependentProperty = findBy({
857
889
  key: conditionalKey
858
- }, themeConfig);
890
+ }, themePropertiesSchema);
859
891
  if (dependentProperty.kind === "image") {
860
892
  var _formikValues$snakeTo;
861
893
  return isPresent((_formikValues$snakeTo = formikValues[snakeToCamelCase(conditionalKey)]) === null || _formikValues$snakeTo === void 0 ? void 0 : _formikValues$snakeTo.url);
@@ -2790,9 +2822,9 @@ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) {
2790
2822
 
2791
2823
  function _defineProperty$1$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2792
2824
 
2793
- function _objectWithoutProperties$1$1(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$6(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
2825
+ function _objectWithoutProperties$1$1(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$5(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
2794
2826
 
2795
- function _objectWithoutPropertiesLoose$6(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2827
+ function _objectWithoutPropertiesLoose$5(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2796
2828
  /**
2797
2829
  * Convenience wrapper component for the `useDropzone` hook
2798
2830
  *
@@ -6183,7 +6215,7 @@ var _reactInfiniteScroller2 = _interopRequireDefault(_reactInfiniteScroller);
6183
6215
 
6184
6216
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6185
6217
 
6186
- function _objectWithoutProperties$6(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
6218
+ function _objectWithoutProperties$5(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
6187
6219
 
6188
6220
  function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6189
6221
 
@@ -6287,7 +6319,7 @@ var MasonryInfiniteScroller = (_temp2 = _class = function (_Component) {
6287
6319
  _props.packed;
6288
6320
  _props.position;
6289
6321
  _props.sizes;
6290
- var props = _objectWithoutProperties$6(_props, ['children', 'className', 'style', 'pack', 'packed', 'position', 'sizes']);
6322
+ var props = _objectWithoutProperties$5(_props, ['children', 'className', 'style', 'pack', 'packed', 'position', 'sizes']);
6291
6323
 
6292
6324
  return _react2.default.createElement(
6293
6325
  _reactInfiniteScroller2.default,
@@ -13866,7 +13898,7 @@ function supportRef$3(nodeOrComponent) {
13866
13898
  }
13867
13899
  /* eslint-enable */
13868
13900
 
13869
- function _objectWithoutPropertiesLoose$5(source, excluded) {
13901
+ function _objectWithoutPropertiesLoose$4(source, excluded) {
13870
13902
  if (source == null) return {};
13871
13903
  var target = {};
13872
13904
  var sourceKeys = Object.keys(source);
@@ -13879,9 +13911,9 @@ function _objectWithoutPropertiesLoose$5(source, excluded) {
13879
13911
  return target;
13880
13912
  }
13881
13913
 
13882
- function _objectWithoutProperties$5(source, excluded) {
13914
+ function _objectWithoutProperties$4(source, excluded) {
13883
13915
  if (source == null) return {};
13884
- var target = _objectWithoutPropertiesLoose$5(source, excluded);
13916
+ var target = _objectWithoutPropertiesLoose$4(source, excluded);
13885
13917
  var key, i;
13886
13918
  if (Object.getOwnPropertySymbols) {
13887
13919
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -13899,7 +13931,7 @@ var _excluded$7 = ["children"];
13899
13931
  var Context$1 = /*#__PURE__*/React.createContext({});
13900
13932
  function MotionProvider(_ref) {
13901
13933
  var children = _ref.children,
13902
- props = _objectWithoutProperties$5(_ref, _excluded$7);
13934
+ props = _objectWithoutProperties$4(_ref, _excluded$7);
13903
13935
  return /*#__PURE__*/React.createElement(Context$1.Provider, {
13904
13936
  value: props
13905
13937
  }, children);
@@ -14712,7 +14744,7 @@ function genCSSMotionList$1(transitionSupport) {
14712
14744
  children = _this$props.children,
14713
14745
  _onVisibleChanged = _this$props.onVisibleChanged,
14714
14746
  onAllRemoved = _this$props.onAllRemoved,
14715
- restProps = _objectWithoutProperties$5(_this$props, _excluded$6);
14747
+ restProps = _objectWithoutProperties$4(_this$props, _excluded$6);
14716
14748
  var Component = component || React.Fragment;
14717
14749
  var motionProps = {};
14718
14750
  MOTION_PROP_NAMES$1.forEach(function (prop) {
@@ -14722,7 +14754,7 @@ function genCSSMotionList$1(transitionSupport) {
14722
14754
  delete restProps.keys;
14723
14755
  return /*#__PURE__*/React.createElement(Component, restProps, keyEntities.map(function (_ref2, index) {
14724
14756
  var status = _ref2.status,
14725
- eventProps = _objectWithoutProperties$5(_ref2, _excluded2$1);
14757
+ eventProps = _objectWithoutProperties$4(_ref2, _excluded2$1);
14726
14758
  var visible = status === STATUS_ADD$1 || status === STATUS_KEEP$1;
14727
14759
  return /*#__PURE__*/React.createElement(CSSMotion, _extends$6({}, motionProps, {
14728
14760
  key: eventProps.key,
@@ -16510,7 +16542,7 @@ function supportRef$1(nodeOrComponent) {
16510
16542
  }
16511
16543
  /* eslint-enable */
16512
16544
 
16513
- function _objectWithoutPropertiesLoose$4(source, excluded) {
16545
+ function _objectWithoutPropertiesLoose$3(source, excluded) {
16514
16546
  if (source == null) return {};
16515
16547
  var target = {};
16516
16548
  var sourceKeys = Object.keys(source);
@@ -16523,9 +16555,9 @@ function _objectWithoutPropertiesLoose$4(source, excluded) {
16523
16555
  return target;
16524
16556
  }
16525
16557
 
16526
- function _objectWithoutProperties$4(source, excluded) {
16558
+ function _objectWithoutProperties$3(source, excluded) {
16527
16559
  if (source == null) return {};
16528
- var target = _objectWithoutPropertiesLoose$4(source, excluded);
16560
+ var target = _objectWithoutPropertiesLoose$3(source, excluded);
16529
16561
  var key, i;
16530
16562
  if (Object.getOwnPropertySymbols) {
16531
16563
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -17461,7 +17493,7 @@ function genCSSMotionList(transitionSupport) {
17461
17493
  children = _this$props.children,
17462
17494
  _onVisibleChanged = _this$props.onVisibleChanged,
17463
17495
  onAllRemoved = _this$props.onAllRemoved,
17464
- restProps = _objectWithoutProperties$4(_this$props, _excluded$5);
17496
+ restProps = _objectWithoutProperties$3(_this$props, _excluded$5);
17465
17497
  var Component = component || React.Fragment;
17466
17498
  var motionProps = {};
17467
17499
  MOTION_PROP_NAMES.forEach(function (prop) {
@@ -17471,7 +17503,7 @@ function genCSSMotionList(transitionSupport) {
17471
17503
  delete restProps.keys;
17472
17504
  return /*#__PURE__*/React.createElement(Component, restProps, keyEntities.map(function (_ref2) {
17473
17505
  var status = _ref2.status,
17474
- eventProps = _objectWithoutProperties$4(_ref2, _excluded2);
17506
+ eventProps = _objectWithoutProperties$3(_ref2, _excluded2);
17475
17507
  var visible = status === STATUS_ADD || status === STATUS_KEEP;
17476
17508
  return /*#__PURE__*/React.createElement(CSSMotion$1, _extends$4({}, motionProps, {
17477
17509
  key: eventProps.key,
@@ -17995,7 +18027,7 @@ function _slicedToArray$2(arr, i) {
17995
18027
  return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$2();
17996
18028
  }
17997
18029
 
17998
- function _objectWithoutPropertiesLoose$3(source, excluded) {
18030
+ function _objectWithoutPropertiesLoose$2(source, excluded) {
17999
18031
  if (source == null) return {};
18000
18032
  var target = {};
18001
18033
  var sourceKeys = Object.keys(source);
@@ -18008,9 +18040,9 @@ function _objectWithoutPropertiesLoose$3(source, excluded) {
18008
18040
  return target;
18009
18041
  }
18010
18042
 
18011
- function _objectWithoutProperties$3(source, excluded) {
18043
+ function _objectWithoutProperties$2(source, excluded) {
18012
18044
  if (source == null) return {};
18013
- var target = _objectWithoutPropertiesLoose$3(source, excluded);
18045
+ var target = _objectWithoutPropertiesLoose$2(source, excluded);
18014
18046
  var key, i;
18015
18047
  if (Object.getOwnPropertySymbols) {
18016
18048
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -19984,7 +20016,7 @@ function generateTrigger() {
19984
20016
  maskAnimation = props.maskAnimation,
19985
20017
  className = props.className,
19986
20018
  getTriggerDOMNode = props.getTriggerDOMNode,
19987
- restProps = _objectWithoutProperties$3(props, _excluded$4);
20019
+ restProps = _objectWithoutProperties$2(props, _excluded$4);
19988
20020
  var mergedAutoDestroy = autoDestroy || destroyPopupOnHide || false;
19989
20021
 
19990
20022
  // =========================== Mobile ===========================
@@ -20531,7 +20563,7 @@ function _objectSpread2$1(target) {
20531
20563
  return target;
20532
20564
  }
20533
20565
 
20534
- function _objectWithoutPropertiesLoose$2(source, excluded) {
20566
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
20535
20567
  if (source == null) return {};
20536
20568
  var target = {};
20537
20569
  var sourceKeys = Object.keys(source);
@@ -20544,9 +20576,9 @@ function _objectWithoutPropertiesLoose$2(source, excluded) {
20544
20576
  return target;
20545
20577
  }
20546
20578
 
20547
- function _objectWithoutProperties$2(source, excluded) {
20579
+ function _objectWithoutProperties$1(source, excluded) {
20548
20580
  if (source == null) return {};
20549
- var target = _objectWithoutPropertiesLoose$2(source, excluded);
20581
+ var target = _objectWithoutPropertiesLoose$1(source, excluded);
20550
20582
  var key, i;
20551
20583
  if (Object.getOwnPropertySymbols) {
20552
20584
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -20676,7 +20708,7 @@ var Tooltip$2 = function Tooltip(props, ref) {
20676
20708
  id = props.id,
20677
20709
  _props$showArrow = props.showArrow,
20678
20710
  showArrow = _props$showArrow === void 0 ? true : _props$showArrow,
20679
- restProps = _objectWithoutProperties$2(props, _excluded$3);
20711
+ restProps = _objectWithoutProperties$1(props, _excluded$3);
20680
20712
  var triggerRef = useRef(null);
20681
20713
  useImperativeHandle(ref, function () {
20682
20714
  return triggerRef.current;
@@ -21600,7 +21632,7 @@ function _extends() {
21600
21632
  return _extends.apply(this, arguments);
21601
21633
  }
21602
21634
 
21603
- function _objectWithoutPropertiesLoose$1(source, excluded) {
21635
+ function _objectWithoutPropertiesLoose(source, excluded) {
21604
21636
  if (source == null) return {};
21605
21637
  var target = {};
21606
21638
  var sourceKeys = Object.keys(source);
@@ -21613,9 +21645,9 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
21613
21645
  return target;
21614
21646
  }
21615
21647
 
21616
- function _objectWithoutProperties$1(source, excluded) {
21648
+ function _objectWithoutProperties(source, excluded) {
21617
21649
  if (source == null) return {};
21618
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
21650
+ var target = _objectWithoutPropertiesLoose(source, excluded);
21619
21651
  var key, i;
21620
21652
  if (Object.getOwnPropertySymbols) {
21621
21653
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -21672,7 +21704,7 @@ var Handle = /*#__PURE__*/React.forwardRef(function (props, ref) {
21672
21704
  render = props.render,
21673
21705
  dragging = props.dragging,
21674
21706
  onOffsetChange = props.onOffsetChange,
21675
- restProps = _objectWithoutProperties$1(props, _excluded$2);
21707
+ restProps = _objectWithoutProperties(props, _excluded$2);
21676
21708
  var _React$useContext = React.useContext(SliderContext),
21677
21709
  min = _React$useContext.min,
21678
21710
  max = _React$useContext.max,
@@ -21782,7 +21814,7 @@ var Handles = /*#__PURE__*/React.forwardRef(function (props, ref) {
21782
21814
  values = props.values,
21783
21815
  handleRender = props.handleRender,
21784
21816
  draggingIndex = props.draggingIndex,
21785
- restProps = _objectWithoutProperties$1(props, _excluded$1);
21817
+ restProps = _objectWithoutProperties(props, _excluded$1);
21786
21818
  var handlesRef = React.useRef({});
21787
21819
  React.useImperativeHandle(ref, function () {
21788
21820
  return {
@@ -23325,42 +23357,13 @@ var SliderBlock = function SliderBlock(_ref) {
23325
23357
  });
23326
23358
  };
23327
23359
 
23328
- function _objectWithoutPropertiesLoose(source, excluded) {
23329
- if (source == null) return {};
23330
- var target = {};
23331
- var sourceKeys = Object.keys(source);
23332
- var key, i;
23333
- for (i = 0; i < sourceKeys.length; i++) {
23334
- key = sourceKeys[i];
23335
- if (excluded.indexOf(key) >= 0) continue;
23336
- target[key] = source[key];
23337
- }
23338
- return target;
23339
- }
23340
-
23341
- function _objectWithoutProperties(source, excluded) {
23342
- if (source == null) return {};
23343
- var target = _objectWithoutPropertiesLoose(source, excluded);
23344
- var key, i;
23345
- if (Object.getOwnPropertySymbols) {
23346
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
23347
- for (i = 0; i < sourceSymbolKeys.length; i++) {
23348
- key = sourceSymbolKeys[i];
23349
- if (excluded.indexOf(key) >= 0) continue;
23350
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
23351
- target[key] = source[key];
23352
- }
23353
- }
23354
- return target;
23355
- }
23356
-
23357
23360
  var _excluded = ["label", "name"];
23358
23361
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23359
23362
  function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$9(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23360
23363
  var SwitchBlock = function SwitchBlock(_ref) {
23361
23364
  var label = _ref.label,
23362
23365
  name = _ref.name,
23363
- switchProps = _objectWithoutProperties(_ref, _excluded);
23366
+ switchProps = _objectWithoutProperties$6(_ref, _excluded);
23364
23367
  return /*#__PURE__*/jsxs("div", {
23365
23368
  className: "flex items-center justify-between py-3 first:pt-0 last:pb-0",
23366
23369
  children: [/*#__PURE__*/jsx(Typography, {
@@ -23377,10 +23380,10 @@ var Properties = function Properties() {
23377
23380
  t = _useTranslation.t;
23378
23381
  var _useConfigStore = useConfigStore(function (store) {
23379
23382
  return {
23380
- themeConfig: store["themeConfig"]
23383
+ themePropertiesSchema: store["themePropertiesSchema"]
23381
23384
  };
23382
23385
  }, shallow),
23383
- themeConfig = _useConfigStore.themeConfig;
23386
+ themePropertiesSchema = _useConfigStore.themePropertiesSchema;
23384
23387
  var _useThemeStore = useThemeStore(function (store) {
23385
23388
  return {
23386
23389
  setThemeState: store["setThemeState"]
@@ -23436,7 +23439,7 @@ var Properties = function Properties() {
23436
23439
  var key = _ref2.key,
23437
23440
  value = _ref2.value,
23438
23441
  kind = _ref2.kind;
23439
- return isPropertyVisible(key, values, themeConfig) && /*#__PURE__*/jsx(FontPickerBlock, {
23442
+ return isPropertyVisible(key, values, themePropertiesSchema) && /*#__PURE__*/jsx(FontPickerBlock, {
23440
23443
  label: buildLabel(key, kind),
23441
23444
  options: FONT_OPTIONS,
23442
23445
  value: findBy({
@@ -23455,7 +23458,7 @@ var Properties = function Properties() {
23455
23458
  var key = _ref4.key,
23456
23459
  value = _ref4.value,
23457
23460
  kind = _ref4.kind;
23458
- return isPropertyVisible(key, values, themeConfig) && /*#__PURE__*/jsx(ColorBlock, {
23461
+ return isPropertyVisible(key, values, themePropertiesSchema) && /*#__PURE__*/jsx(ColorBlock, {
23459
23462
  color: value,
23460
23463
  label: buildLabel(key, kind),
23461
23464
  onChange: handleColorChange(key)
@@ -23466,7 +23469,7 @@ var Properties = function Properties() {
23466
23469
  var key = _ref5.key,
23467
23470
  value = _ref5.value,
23468
23471
  kind = _ref5.kind;
23469
- return isPropertyVisible(key, values, themeConfig) && /*#__PURE__*/jsx(SliderBlock, {
23472
+ return isPropertyVisible(key, values, themePropertiesSchema) && /*#__PURE__*/jsx(SliderBlock, {
23470
23473
  label: buildLabel(key, kind),
23471
23474
  marks: OVERLAY_OPACITY_SLIDER_MARKS,
23472
23475
  max: HUNDRED,
@@ -23488,8 +23491,8 @@ var Properties = function Properties() {
23488
23491
  }, values.properties);
23489
23492
  var options = (_findBy = findBy({
23490
23493
  key: key
23491
- }, themeConfig)) === null || _findBy === void 0 || (_findBy = _findBy.options) === null || _findBy === void 0 ? void 0 : _findBy.map(toLabelAndValue);
23492
- return isPropertyVisible(key, values, themeConfig) && /*#__PURE__*/jsx(SelectBlock, {
23494
+ }, themePropertiesSchema)) === null || _findBy === void 0 || (_findBy = _findBy.options) === null || _findBy === void 0 ? void 0 : _findBy.map(toLabelAndValue);
23495
+ return isPropertyVisible(key, values, themePropertiesSchema) && /*#__PURE__*/jsx(SelectBlock, {
23493
23496
  label: buildLabel(key, kind),
23494
23497
  options: options || POSITION_OPTIONS,
23495
23498
  placeholder: "left",
@@ -23507,7 +23510,7 @@ var Properties = function Properties() {
23507
23510
  var index = findIndexBy({
23508
23511
  key: key
23509
23512
  }, values.properties);
23510
- return isPropertyVisible(key, values, themeConfig) && /*#__PURE__*/jsx(SwitchBlock, {
23513
+ return isPropertyVisible(key, values, themePropertiesSchema) && /*#__PURE__*/jsx(SwitchBlock, {
23511
23514
  checked: value !== "false",
23512
23515
  label: buildLabel(key, kind),
23513
23516
  onChange: function onChange(e) {
@@ -23541,10 +23544,10 @@ var Customize = function Customize(_ref) {
23541
23544
  t = _useTranslation.t;
23542
23545
  var _useConfigStore = useConfigStore(function (store) {
23543
23546
  return {
23544
- themeConfig: store["themeConfig"]
23547
+ themePropertiesSchema: store["themePropertiesSchema"]
23545
23548
  };
23546
23549
  }, shallow),
23547
- themeConfig = _useConfigStore.themeConfig;
23550
+ themePropertiesSchema = _useConfigStore.themePropertiesSchema;
23548
23551
  var _useCreateTheme = useCreateTheme(),
23549
23552
  createTheme = _useCreateTheme.mutate,
23550
23553
  isCreating = _useCreateTheme.isLoading;
@@ -23554,7 +23557,7 @@ var Customize = function Customize(_ref) {
23554
23557
  var isSubmitting = isCreating || isUpdating;
23555
23558
  var onSubmit = function onSubmit(values, _ref2) {
23556
23559
  var resetForm = _ref2.resetForm;
23557
- var imageData = buildImageData(values, themeConfig);
23560
+ var imageData = buildImageData(values, themePropertiesSchema);
23558
23561
  var themeToSave = _objectSpread({
23559
23562
  propertiesAttributes: values.properties,
23560
23563
  name: values.name
@@ -23577,7 +23580,7 @@ var Customize = function Customize(_ref) {
23577
23580
  };
23578
23581
  return /*#__PURE__*/jsx(Form, {
23579
23582
  formikProps: {
23580
- initialValues: buildInitialValues(theme, themeConfig),
23583
+ initialValues: buildInitialValues(theme, themePropertiesSchema),
23581
23584
  validationSchema: THEME_VALIDATION_SCHEMA,
23582
23585
  onSubmit: onSubmit
23583
23586
  },
@@ -23589,7 +23592,7 @@ var Customize = function Customize(_ref) {
23589
23592
  className: "flex flex-col gap-6 p-4",
23590
23593
  children: [/*#__PURE__*/jsx(ThemeMeta, {}), /*#__PURE__*/jsx(Properties, {}), filterBy({
23591
23594
  kind: "image"
23592
- }, themeConfig).map(function (_ref5) {
23595
+ }, themePropertiesSchema).map(function (_ref5) {
23593
23596
  var key = _ref5.key;
23594
23597
  return /*#__PURE__*/jsx(Images, {
23595
23598
  attribute: key
@@ -23624,14 +23627,14 @@ var Thumbnail = function Thumbnail(_ref) {
23624
23627
  theme = _ref.theme;
23625
23628
  var _useConfigStore = useConfigStore(function (store) {
23626
23629
  return {
23627
- themeConfig: store["themeConfig"]
23630
+ themePropertiesSchema: store["themePropertiesSchema"]
23628
23631
  };
23629
23632
  }, shallow),
23630
- _useConfigStore$theme = _useConfigStore.themeConfig,
23631
- themeConfig = _useConfigStore$theme === void 0 ? [] : _useConfigStore$theme;
23632
- var _themeConfig = _slicedToArray$9(themeConfig, 2),
23633
- colorObject1 = _themeConfig[0],
23634
- colorObject2 = _themeConfig[1];
23633
+ _useConfigStore$theme = _useConfigStore.themePropertiesSchema,
23634
+ themePropertiesSchema = _useConfigStore$theme === void 0 ? [] : _useConfigStore$theme;
23635
+ var _themePropertiesSchem = _slicedToArray$9(themePropertiesSchema, 2),
23636
+ colorObject1 = _themePropertiesSchem[0],
23637
+ colorObject2 = _themePropertiesSchem[1];
23635
23638
  var primaryLabel = humanize(colorObject1 === null || colorObject1 === void 0 ? void 0 : colorObject1.key);
23636
23639
  var secondaryLabel = humanize(colorObject2 === null || colorObject2 === void 0 ? void 0 : colorObject2.key);
23637
23640
  var primaryColor = findBy({
@@ -23642,11 +23645,11 @@ var Thumbnail = function Thumbnail(_ref) {
23642
23645
  }, theme.properties).value;
23643
23646
  var backgroundImageUrl = (_theme$snakeToCamelCa = theme[snakeToCamelCase(findBy({
23644
23647
  useAsCardBackground: true
23645
- }, themeConfig).key)]) === null || _theme$snakeToCamelCa === void 0 ? void 0 : _theme$snakeToCamelCa.url;
23648
+ }, themePropertiesSchema).key)]) === null || _theme$snakeToCamelCa === void 0 ? void 0 : _theme$snakeToCamelCa.url;
23646
23649
  var buttonBackgroundColor = (_findBy = findBy({
23647
23650
  key: (_findBy2 = findBy({
23648
23651
  useAsCardButtonBackground: true
23649
- }, themeConfig)) === null || _findBy2 === void 0 ? void 0 : _findBy2.key
23652
+ }, themePropertiesSchema)) === null || _findBy2 === void 0 ? void 0 : _findBy2.key
23650
23653
  }, theme.properties)) === null || _findBy === void 0 ? void 0 : _findBy.value;
23651
23654
  return /*#__PURE__*/jsx("div", {
23652
23655
  className: classNames("neeto-themes-theme-thumbnail neeto-ui-rounded-lg border transition-all duration-300 ease-in-out", {
@@ -23702,7 +23705,7 @@ var Card = function Card(_ref) {
23702
23705
  onSetPreviewTheme = _ref.onSetPreviewTheme,
23703
23706
  onDeleteTheme = _ref.onDeleteTheme,
23704
23707
  onEditTheme = _ref.onEditTheme,
23705
- onApplyTheme = _ref.onApplyTheme,
23708
+ applyTheme = _ref.applyTheme,
23706
23709
  theme = _ref.theme,
23707
23710
  isApplyingTheme = _ref.isApplyingTheme,
23708
23711
  onCloneTheme = _ref.onCloneTheme,
@@ -23725,7 +23728,7 @@ var Card = function Card(_ref) {
23725
23728
  var handleApplyThemeClick = function handleApplyThemeClick() {
23726
23729
  if (isApplyingTheme) return;
23727
23730
  setThemeBeingApplied(theme);
23728
- onApplyTheme({
23731
+ applyTheme({
23729
23732
  themeId: theme.id,
23730
23733
  entityId: entityId,
23731
23734
  entityType: entityType
@@ -23851,7 +23854,7 @@ var Themes = function Themes(_ref) {
23851
23854
  setThemeBeingApplied = _useState4[1];
23852
23855
  var _useCloneTheme = useCloneTheme(),
23853
23856
  cloneTheme = _useCloneTheme.mutate;
23854
- var _useCreateThemeEntity = useCreateThemeEntity({
23857
+ var _useApplyTheme = useApplyTheme({
23855
23858
  onSuccess: function onSuccess(_ref2) {
23856
23859
  var theme = _ref2.theme;
23857
23860
  setTheme(theme);
@@ -23861,8 +23864,8 @@ var Themes = function Themes(_ref) {
23861
23864
  setThemeBeingApplied({});
23862
23865
  }
23863
23866
  }),
23864
- onApplyTheme = _useCreateThemeEntity.mutate,
23865
- isApplyingTheme = _useCreateThemeEntity.isLoading;
23867
+ applyTheme = _useApplyTheme.mutate,
23868
+ isApplyingTheme = _useApplyTheme.isLoading;
23866
23869
  useEffect(function () {
23867
23870
  if (didScrollActiveThemeIntoView.current || !(currentTheme !== null && currentTheme !== void 0 && currentTheme.id)) return;
23868
23871
  didScrollActiveThemeIntoView.current = true;
@@ -23922,7 +23925,7 @@ var Themes = function Themes(_ref) {
23922
23925
  className: "flex flex-col gap-4 px-4 pb-10 lg:px-5 xl:px-6",
23923
23926
  children: filteredDefaultThemes.map(function (theme) {
23924
23927
  return /*#__PURE__*/createElement(Card$1, {
23925
- onApplyTheme: onApplyTheme,
23928
+ applyTheme: applyTheme,
23926
23929
  setThemeBeingApplied: setThemeBeingApplied,
23927
23930
  theme: theme,
23928
23931
  thumbnail: thumbnail,
@@ -23950,8 +23953,8 @@ var Themes = function Themes(_ref) {
23950
23953
  var isActive = (currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme.id) === theme.id;
23951
23954
  var isPreviewing = (previewingTheme === null || previewingTheme === void 0 ? void 0 : previewingTheme.id) === theme.id;
23952
23955
  return /*#__PURE__*/createElement(Card$1, {
23956
+ applyTheme: applyTheme,
23953
23957
  isPreviewing: isPreviewing,
23954
- onApplyTheme: onApplyTheme,
23955
23958
  onEditTheme: onEditTheme,
23956
23959
  setThemeBeingApplied: setThemeBeingApplied,
23957
23960
  theme: theme,
@@ -24050,12 +24053,12 @@ var Sidebar = function Sidebar(_ref) {
24050
24053
  return {
24051
24054
  entityType: store["entityType"],
24052
24055
  entityId: store["entityId"],
24053
- isFetchingConfig: store["isFetchingConfig"]
24056
+ isFetchingSchema: store["isFetchingSchema"]
24054
24057
  };
24055
24058
  }, shallow),
24056
24059
  entityType = _useConfigStore.entityType,
24057
24060
  entityId = _useConfigStore.entityId,
24058
- isFetchingConfig = _useConfigStore.isFetchingConfig;
24061
+ isFetchingSchema = _useConfigStore.isFetchingSchema;
24059
24062
  var _useThemeStore = useThemeStore(function (store) {
24060
24063
  return {
24061
24064
  setThemeState: store["setThemeState"]
@@ -24167,7 +24170,7 @@ var Sidebar = function Sidebar(_ref) {
24167
24170
  themeToHighlight: themeToHighlight,
24168
24171
  themes: themes,
24169
24172
  thumbnail: thumbnail,
24170
- isLoading: isLoading || isFetchingConfig,
24173
+ isLoading: isLoading || isFetchingSchema,
24171
24174
  onDeleteTheme: handleDelete,
24172
24175
  onEditTheme: handleEditTheme
24173
24176
  }) : /*#__PURE__*/jsx(Customize, {
@@ -24189,7 +24192,7 @@ var Sidebar = function Sidebar(_ref) {
24189
24192
  });
24190
24193
  };
24191
24194
 
24192
- var NeetoThemes = function NeetoThemes(_ref) {
24195
+ var NeetoThemesBuilder = function NeetoThemesBuilder(_ref) {
24193
24196
  var children = _ref.children,
24194
24197
  entityType = _ref.entityType,
24195
24198
  entityId = _ref.entityId,
@@ -24225,12 +24228,12 @@ var NeetoThemes = function NeetoThemes(_ref) {
24225
24228
  })]
24226
24229
  });
24227
24230
  };
24228
- var index = withTitle(NeetoThemes, t$6("neetoThemes.common.design"));
24231
+ var index = withTitle(NeetoThemesBuilder, t$6("neetoThemes.common.design"));
24229
24232
 
24230
24233
  var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
24231
24234
 
24232
24235
  var css = ".neeto-themes__wrapper{display:flex;width:100%}.neeto-themes__wrapper .neeto-themes-sidebar{background-color:rgb(var(--neeto-ui-white));box-shadow:var(--neeto-ui-shadow-s);height:calc(100vh - 64px);width:240px}@media (min-width:1024px){.neeto-themes__wrapper .neeto-themes-sidebar{width:280px}}@media (min-width:1280px){.neeto-themes__wrapper .neeto-themes-sidebar{width:320px}}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-themes-sidebar__header{padding-bottom:8px;padding-top:16px}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-themes-sidebar__scroll{height:calc(100vh - 120px);overflow-y:auto}.neeto-themes__wrapper .neeto-themes-sidebar .neeto-themes-sidebar__scroll .neeto-ui-colorpicker__target .neeto-ui-colorpicker-target__code{display:none}.neeto-themes__wrapper .neeto-themes-preview__wrapper{flex-grow:1;height:calc(100vh - 64px);position:relative}.neeto-themes-theme-thumbnail--active{border-color:rgb(var(--neeto-ui-primary-500))!important;box-shadow:0 0 0 1px rgb(var(--neeto-ui-primary-500))!important}.neeto-themes-theme-thumbnail--preview-active{border-color:rgb(var(--neeto-ui-gray-700));box-shadow:0 0 0 1px rgb(var(--neeto-ui-gray-700))}.neeto-themes-theme-thumbnail--highlight-active{border-color:rgb(var(--neeto-ui-success-500));box-shadow:0 0 0 1px rgb(var(--neeto-ui-success-500));transition:border-color box-shadow .1s .1s}\n/*# sourceMappingURL=data:application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VpLWdyYXktNzAwKSk7XG59XG5cbi5uZWV0by10aGVtZXMtdGhlbWUtdGh1bWJuYWlsLS1oaWdobGlnaHQtYWN0aXZlIHtcbiAgdHJhbnNpdGlvbjogYm9yZGVyLWNvbG9yIDEwMG1zIGJveC1zaGFkb3cgMTAwbXM7XG4gIGJvcmRlci1jb2xvcjogcmdiKHZhcigtLW5lZXRvLXVpLXN1Y2Nlc3MtNTAwKSk7XG4gIGJveC1zaGFkb3c6IDBweCAwcHggMHB4IDFweCByZ2IodmFyKC0tbmVldG8tdWktc3VjY2Vzcy01MDApKTtcbn0iXX0= */";
24233
24236
  n(css,{});
24234
24237
 
24235
- export { index as NeetoThemes, setTheme, useThemeUtils };
24238
+ export { index as NeetoThemesBuilder, setTheme, useThemeUtils };
24236
24239
  //# sourceMappingURL=index.js.map