@crystaldesign/diva-backoffice 25.8.0-beta.29 → 25.8.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/build/esm/index.js +499 -1422
  2. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts +1 -1
  3. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts.map +1 -1
  4. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts +1 -1
  5. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts.map +1 -1
  6. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
  7. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts +6 -8
  8. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
  9. package/build/types/backoffice/src/ui/Form/elements.d.ts.map +1 -1
  10. package/build/types/backoffice/src/ui/Form/index.d.ts.map +1 -1
  11. package/build/types/backoffice/src/ui/Form/types.d.ts +1 -5
  12. package/build/types/backoffice/src/ui/Form/types.d.ts.map +1 -1
  13. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/SeriesSelector.d.ts.map +1 -1
  14. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts +4 -4
  15. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts.map +1 -1
  16. package/build/types/backoffice/src/ui/IDMCommonComponents/SpreadsheetWrapper/index.d.ts +2 -2
  17. package/build/types/backoffice/src/ui/IDMCommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
  18. package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts +1 -1
  19. package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts.map +1 -1
  20. package/build/types/backoffice/src/ui/IDMCommonComponents/useTools.d.ts.map +1 -1
  21. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.d.ts +2 -2
  22. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.d.ts.map +1 -1
  23. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts +1 -2
  24. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
  25. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.d.ts.map +1 -1
  26. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts +0 -6
  27. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts.map +1 -1
  28. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts +0 -4
  29. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts.map +1 -1
  30. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts +1 -2
  31. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts.map +1 -1
  32. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  33. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
  34. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
  35. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts +3 -3
  36. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts.map +1 -1
  37. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts +3 -4
  38. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts.map +1 -1
  39. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts +3 -4
  40. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts.map +1 -1
  41. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts +3 -4
  42. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts.map +1 -1
  43. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts +3 -4
  44. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
  45. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts +3 -4
  46. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts.map +1 -1
  47. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
  48. package/build/types/backoffice/src/ui/SelectSimple/useSelectSimpleData.d.ts.map +1 -1
  49. package/package.json +9 -9
  50. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.d.ts +0 -37
  51. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.d.ts.map +0 -1
  52. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts +0 -8
  53. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import React, { createElement, createContext, useState, useEffect, useRef, useMemo, forwardRef, useImperativeHandle, useCallback, createRef, useReducer, useContext, memo, useDeferredValue } from 'react';
3
3
  import 'antd/dist/reset.css';
4
- import { Form as Form$1, Button, Input, Popover, Typography, Divider, Progress, Select as Select$1, Avatar, Spin, Radio, Space, Dropdown, DatePicker, Checkbox, InputNumber, Modal as Modal$2, Tabs, Cascader, Descriptions, Row, Col, Tooltip as Tooltip$1, Collapse, List as List$1, Skeleton, Alert, Card, Upload as Upload$2, Table as Table$1, Switch, Popconfirm, Image, Slider, Breadcrumb, Result as Result$1, message, Layout, Drawer, ConfigProvider, theme } from 'antd';
4
+ import { Form as Form$1, Button, Input, Popover, Typography, Divider, Progress, Select as Select$1, Avatar, Spin, Radio, Space, Dropdown, DatePicker, Checkbox, InputNumber, Modal as Modal$2, Cascader, Descriptions, Row, Col, Tooltip as Tooltip$1, Collapse, List as List$1, Skeleton, Alert, Card, Upload as Upload$2, Table as Table$1, Switch, Popconfirm, Tabs, Image, Slider, Breadcrumb, Result as Result$1, message, Layout, Drawer, ConfigProvider, theme } from 'antd';
5
5
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
6
6
  import { observer } from 'mobx-react-lite';
7
7
  import { getLogger, DivaError, useTranslation, useDivaCore, DivaUtils } from '@crystaldesign/diva-core';
@@ -119,11 +119,9 @@ import Descriptions$1 from 'antd/es/descriptions';
119
119
  import { Spreadsheet as Spreadsheet$1 } from '@crystaldesign/spreadsheet';
120
120
  import EditOutlined from '@ant-design/icons/lib/icons/EditOutlined';
121
121
  import Checkbox$1 from 'antd/es/checkbox/Checkbox';
122
- import WarningOutlined from '@ant-design/icons/lib/icons/WarningOutlined';
123
122
  import Modal$3 from 'antd/es/modal';
124
123
  import Spin$1 from 'antd/es/spin';
125
124
  import Flex from 'antd/es/flex';
126
- import { useTranslation as useTranslation$1 } from 'react-i18next';
127
125
  import JSZip from 'jszip';
128
126
  import { DropzoneAreaBase } from 'react-mui-dropzone';
129
127
  import Switch$1 from 'antd/es/switch';
@@ -5484,11 +5482,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
5484
5482
  field: 'pos',
5485
5483
  sorter: 3,
5486
5484
  filter: 'advanced'
5487
- }, {
5488
- title: t('backoffice.form.renderjob.items.functionType'),
5489
- field: 'functionType',
5490
- sorter: 3,
5491
- filter: 'advanced'
5492
5485
  }, {
5493
5486
  title: t('backoffice.table.viewpoints.columns.title.rot'),
5494
5487
  field: 'rot',
@@ -7659,7 +7652,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7659
7652
  name: 'type',
7660
7653
  label: t('backoffice.form.organizationdetails.items.type'),
7661
7654
  type: 'radio',
7662
- tabgroup: t('backoffice.subtitle.generally'),
7663
7655
  options: [{
7664
7656
  value: undefined,
7665
7657
  label: t('backoffice.form.SHELL'),
@@ -7747,7 +7739,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7747
7739
  permission: 'backoffice_admin_organizations'
7748
7740
  }, {
7749
7741
  name: t('backoffice.subtitle.generally'),
7750
- tabgroup: t('backoffice.subtitle.generally'),
7751
7742
  type: 'subTitle',
7752
7743
  orientation: 'left',
7753
7744
  style: {
@@ -7755,13 +7746,11 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7755
7746
  }
7756
7747
  }, {
7757
7748
  name: '_id',
7758
- tabgroup: t('backoffice.subtitle.generally'),
7759
7749
  label: 'ID',
7760
7750
  type: 'input',
7761
7751
  readonly: true
7762
7752
  }, {
7763
7753
  name: 'displayName',
7764
- tabgroup: t('backoffice.subtitle.generally'),
7765
7754
  label: t('backoffice.form.organizationdetails.items.displayName'),
7766
7755
  required: true,
7767
7756
  type: 'input',
@@ -7773,7 +7762,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7773
7762
  }, {
7774
7763
  label: t('backoffice.form.organizationdetails.items.internalId'),
7775
7764
  name: 'internalId',
7776
- tabgroup: t('backoffice.subtitle.generally'),
7777
7765
  type: 'input',
7778
7766
  hidden: function hidden(data) {
7779
7767
  return (data === null || data === void 0 ? void 0 : data.type) === 'ASSOCIATION' || (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
@@ -7781,7 +7769,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7781
7769
  }, {
7782
7770
  name: 'description',
7783
7771
  label: t('backoffice.form.organizationdetails.items.description'),
7784
- tabgroup: t('backoffice.subtitle.generally'),
7785
7772
  type: 'textarea'
7786
7773
  }, {
7787
7774
  name: 'street',
@@ -7789,7 +7776,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7789
7776
  required: function required(data) {
7790
7777
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7791
7778
  },
7792
- tabgroup: t('backoffice.subtitle.generally'),
7793
7779
  type: 'input',
7794
7780
  hidden: function hidden(data) {
7795
7781
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7800,7 +7786,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7800
7786
  required: function required(data) {
7801
7787
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7802
7788
  },
7803
- tabgroup: t('backoffice.subtitle.generally'),
7804
7789
  type: 'input',
7805
7790
  hidden: function hidden(data) {
7806
7791
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7811,7 +7796,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7811
7796
  required: function required(data) {
7812
7797
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7813
7798
  },
7814
- tabgroup: t('backoffice.subtitle.generally'),
7815
7799
  type: 'input',
7816
7800
  hidden: function hidden(data) {
7817
7801
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7819,7 +7803,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7819
7803
  }, {
7820
7804
  label: t('backoffice.form.organizationdetails.items.region'),
7821
7805
  name: 'region',
7822
- tabgroup: t('backoffice.subtitle.generally'),
7823
7806
  type: 'input',
7824
7807
  hidden: function hidden(data) {
7825
7808
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7827,7 +7810,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7827
7810
  }, {
7828
7811
  name: 'countryCode',
7829
7812
  label: t('backoffice.form.organizationdetails.items.countryCode'),
7830
- tabgroup: t('backoffice.subtitle.generally'),
7831
7813
  type: 'selectSimple',
7832
7814
  apiInterface: {
7833
7815
  read: {
@@ -7846,7 +7828,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7846
7828
  }, {
7847
7829
  name: 'contact',
7848
7830
  label: 'backoffice.organization.contact',
7849
- tabgroup: t('backoffice.subtitle.generally'),
7850
7831
  type: 'select',
7851
7832
  mode: 'single',
7852
7833
  selectMapping: {
@@ -7888,7 +7869,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7888
7869
  }, {
7889
7870
  name: 'email',
7890
7871
  label: t('backoffice.form.organizationdetails.items.email'),
7891
- tabgroup: t('backoffice.subtitle.generally'),
7892
7872
  type: 'input',
7893
7873
  hidden: function hidden(data) {
7894
7874
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7896,7 +7876,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7896
7876
  }, {
7897
7877
  name: 'phone',
7898
7878
  label: t('backoffice.form.organizationdetails.items.phone'),
7899
- tabgroup: t('backoffice.subtitle.generally'),
7900
7879
  type: 'input',
7901
7880
  hidden: function hidden(data) {
7902
7881
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7904,7 +7883,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7904
7883
  }, {
7905
7884
  name: 'fax',
7906
7885
  label: t('backoffice.form.organizationdetails.items.fax'),
7907
- tabgroup: t('backoffice.subtitle.generally'),
7908
7886
  type: 'input',
7909
7887
  hidden: function hidden(data) {
7910
7888
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7912,7 +7890,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7912
7890
  }, {
7913
7891
  name: 'homepage',
7914
7892
  label: t('backoffice.form.organizationdetails.items.homepage'),
7915
- tabgroup: t('backoffice.subtitle.generally'),
7916
7893
  type: 'input',
7917
7894
  hidden: function hidden(data) {
7918
7895
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7923,7 +7900,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7923
7900
  catalogCodex: ['defaultCatalog', 'catalogCodex'],
7924
7901
  label: t('backoffice.form.organizationdetails.items.selectClientRelationCatalog'),
7925
7902
  type: 'selectClientRelationCatalog',
7926
- tabgroup: t('backoffice.subtitle.generally'),
7927
7903
  apiInterface: {
7928
7904
  read: '${authService}/v2/organizations/${organizationId}'
7929
7905
  },
@@ -7932,18 +7908,15 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7932
7908
  }
7933
7909
  }, {
7934
7910
  name: ['defaultCatalog', 'accountId'],
7935
- hidden: true,
7936
- tabgroup: t('backoffice.subtitle.generally')
7911
+ hidden: true
7937
7912
  },
7938
7913
  // these fields are needed otherwise they dont get saved
7939
7914
  {
7940
7915
  name: ['defaultCatalog', 'catalogCodex'],
7941
- hidden: true,
7942
- tabgroup: t('backoffice.subtitle.generally')
7916
+ hidden: true
7943
7917
  }, {
7944
7918
  name: ['settings', 'sendOrders'],
7945
7919
  label: t('backoffice.form.organizationdetails.items.settings.sendOrders'),
7946
- tabgroup: t('backoffice.subtitle.generally'),
7947
7920
  type: 'radio',
7948
7921
  optionType: 'button',
7949
7922
  options: [{
@@ -7960,13 +7933,11 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7960
7933
  }, {
7961
7934
  name: ['settings', 'sendOrdersEmail'],
7962
7935
  label: t('backoffice.form.organizationdetails.items.settings.sendOrdersEmail'),
7963
- tabgroup: t('backoffice.subtitle.generally'),
7964
7936
  type: 'input',
7965
7937
  permission: 'backoffice_admin_organizations'
7966
7938
  }, {
7967
7939
  name: 'iwofurn',
7968
7940
  label: t('backoffice.form.organizationdetails.items.iwofurn'),
7969
- tabgroup: t('backoffice.subtitle.generally'),
7970
7941
  type: 'checkbox',
7971
7942
  hidden: function hidden(data) {
7972
7943
  return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
@@ -7984,7 +7955,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7984
7955
  }
7985
7956
  }, {
7986
7957
  name: t('backoffice.subtitle.iwofurn'),
7987
- tabgroup: t('backoffice.subtitle.generally'),
7988
7958
  type: 'subTitle',
7989
7959
  orientation: 'left',
7990
7960
  style: {
@@ -7997,7 +7967,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7997
7967
  }, {
7998
7968
  name: ['iwoFurnOptions', 'iwofurnUsername'],
7999
7969
  label: t('backoffice.form.organizationdetails.items.iwoFurnOptions.iwofurnUsername'),
8000
- tabgroup: t('backoffice.subtitle.generally'),
8001
7970
  type: 'input',
8002
7971
  syncDataWithUserInput: true,
8003
7972
  required: function required(data) {
@@ -8009,7 +7978,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8009
7978
  }, {
8010
7979
  name: ['iwoFurnOptions', 'pwdHash'],
8011
7980
  label: t('backoffice.form.organizationdetails.items.iwoFurnOptions.pwdHash'),
8012
- tabgroup: t('backoffice.subtitle.generally'),
8013
7981
  type: 'password',
8014
7982
  syncDataWithUserInput: true,
8015
7983
  required: function required(data) {
@@ -8021,7 +7989,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8021
7989
  }, {
8022
7990
  name: ['iwoFurnOptions', 'iwofurnSenderGLN'],
8023
7991
  label: t('backoffice.form.organizationdetails.items.iwofurnSenderGLN'),
8024
- tabgroup: t('backoffice.subtitle.generally'),
8025
7992
  type: 'input',
8026
7993
  required: function required(data) {
8027
7994
  return data === null || data === void 0 ? void 0 : data.iwofurn;
@@ -8032,7 +7999,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8032
7999
  }, {
8033
8000
  name: ['iwoFurnOptions', 'iwofurnRecipientGLN'],
8034
8001
  label: t('backoffice.form.organizationdetails.items.iwofurnRecipientGLN'),
8035
- tabgroup: t('backoffice.subtitle.generally'),
8036
8002
  type: 'input',
8037
8003
  required: function required(data) {
8038
8004
  return data === null || data === void 0 ? void 0 : data.iwofurn;
@@ -8043,7 +8009,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8043
8009
  }, {
8044
8010
  name: ['iwoFurnOptions', 'sendIWOBasketEKPriceType'],
8045
8011
  label: t('backoffice.form.organizationdetails.items.sendIWOBasketEKPriceType'),
8046
- tabgroup: t('backoffice.subtitle.generally'),
8047
8012
  type: 'input',
8048
8013
  hidden: function hidden(data) {
8049
8014
  return !(data !== null && data !== void 0 && data.iwofurn) || (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
@@ -8063,7 +8028,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8063
8028
  }
8064
8029
  }, {
8065
8030
  name: t('backoffice.form.organizationdetails.items.licenses'),
8066
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8067
8031
  type: 'subTitle',
8068
8032
  orientation: 'left',
8069
8033
  style: {
@@ -8073,7 +8037,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8073
8037
  }, {
8074
8038
  name: 'Info',
8075
8039
  type: 'text',
8076
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8077
8040
  style: {
8078
8041
  marginBottom: '30px'
8079
8042
  },
@@ -8082,7 +8045,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8082
8045
  }, {
8083
8046
  name: ['settings', 'enable3DExport'],
8084
8047
  label: t('backoffice.form.organizationdetails.items.settings.enable3DExport'),
8085
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8086
8048
  type: 'radio',
8087
8049
  optionType: 'button',
8088
8050
  options: [{
@@ -8100,7 +8062,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8100
8062
  name: ['settings', 'renderjobSeparateMaterials'],
8101
8063
  label: t('backoffice.form.organizationdetails.items.settings.renderjobSeparateMaterials'),
8102
8064
  permission: 'backoffice_admin_organizations',
8103
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8104
8065
  type: 'radio',
8105
8066
  optionType: 'button',
8106
8067
  options: [{
@@ -8117,7 +8078,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8117
8078
  name: ['settings', 'enableAR'],
8118
8079
  label: t('backoffice.form.organizationdetails.items.settings.enableAR'),
8119
8080
  permission: 'backoffice_admin_organizations',
8120
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8121
8081
  type: 'radio',
8122
8082
  optionType: 'button',
8123
8083
  options: [{
@@ -8134,7 +8094,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8134
8094
  name: ['settings', 'enableRTV'],
8135
8095
  label: t('backoffice.form.organizationdetails.items.settings.enableRTV'),
8136
8096
  permission: 'backoffice_admin_organizations',
8137
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8138
8097
  type: 'radio',
8139
8098
  optionType: 'button',
8140
8099
  options: [{
@@ -8152,7 +8111,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8152
8111
  label: t('backoffice.form.organizationdetails.items.settings.forceRTV'),
8153
8112
  permission: 'backoffice_admin_organizations',
8154
8113
  type: 'radio',
8155
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8156
8114
  optionType: 'button',
8157
8115
  options: [{
8158
8116
  label: t('backoffice.form.organizationdetails.items.vererbt'),
@@ -8167,7 +8125,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8167
8125
  }, {
8168
8126
  name: ['settings', 'enableVKMarketing'],
8169
8127
  label: t('backoffice.form.organizationdetails.items.settings.enableVKMarketing'),
8170
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8171
8128
  permission: 'backoffice_admin_organizations',
8172
8129
  type: 'radio',
8173
8130
  hidden: function hidden(data) {
@@ -8188,7 +8145,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8188
8145
  name: ['settings', 'pricePreview'],
8189
8146
  label: t('backoffice.form.organizationdetails.items.settings.pricePreview'),
8190
8147
  permission: 'backoffice_admin_organizations',
8191
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8192
8148
  type: 'radio',
8193
8149
  optionType: 'button',
8194
8150
  options: [{
@@ -8207,31 +8163,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8207
8163
  label: t('backoffice.form.organizationdetails.items.fromCurrentPriceHideCurrent'),
8208
8164
  value: 'fromCurrentPriceHideCurrent'
8209
8165
  }]
8210
- }, {
8211
- name: t('backoffice.subtitle.configurator'),
8212
- type: 'subTitle',
8213
- orientation: 'left',
8214
- style: {
8215
- marginBottom: '40px'
8216
- },
8217
- permission: 'backoffice_admin_organizations',
8218
- hidden: function hidden(data) {
8219
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8220
- }
8221
- }, {
8222
- name: 'privacyPolicyUrl',
8223
- label: t('backoffice.form.organizationdetails.items.privacyPolicyUrl'),
8224
- type: 'input',
8225
- hidden: function hidden(data) {
8226
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8227
- }
8228
- }, {
8229
- name: 'termsAndConditionsUrl',
8230
- label: t('backoffice.form.organizationdetails.items.termsAndConditionsUrl'),
8231
- type: 'input',
8232
- hidden: function hidden(data) {
8233
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8234
- }
8235
8166
  }, {
8236
8167
  name: t('backoffice.subtitle.advanced'),
8237
8168
  type: 'subTitle',
@@ -8623,117 +8554,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8623
8554
  label: t('backoffice.currentorg.items.shopType.store'),
8624
8555
  value: 'store'
8625
8556
  }]
8626
- }, {
8627
- type: 'subTitle',
8628
- name: t('backoffice.form.organizationdetails.socialUrls'),
8629
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData')
8630
- }, {
8631
- name: ['socialUrls', 'facebook'],
8632
- label: t('backoffice.form.organizationdetails.items.facebookUrl'),
8633
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8634
- type: 'input',
8635
- hidden: function hidden(data) {
8636
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8637
- }
8638
- }, {
8639
- name: ['socialUrls', 'instagram'],
8640
- label: t('backoffice.form.organizationdetails.items.instagramUrl'),
8641
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8642
- type: 'input',
8643
- hidden: function hidden(data) {
8644
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8645
- }
8646
- }, {
8647
- name: ['socialUrls', 'x'],
8648
- label: t('backoffice.form.organizationdetails.items.xUrl'),
8649
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8650
- type: 'input',
8651
- hidden: function hidden(data) {
8652
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8653
- }
8654
- }, {
8655
- name: ['socialUrls', 'linkedin'],
8656
- label: t('backoffice.form.organizationdetails.items.linkedinUrl'),
8657
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8658
- type: 'input',
8659
- hidden: function hidden(data) {
8660
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8661
- }
8662
- }, {
8663
- name: ['socialUrls', 'youtube'],
8664
- label: t('backoffice.form.organizationdetails.items.youtubeUrl'),
8665
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8666
- type: 'input',
8667
- hidden: function hidden(data) {
8668
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8669
- }
8670
- }, {
8671
- type: 'subTitle',
8672
- name: t('backoffice.form.organizationdetails.additionalContactData'),
8673
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData')
8674
- }, {
8675
- name: ['additionalContactData'],
8676
- label: t('Zusätzliche Kontaktdaten'),
8677
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8678
- type: 'array',
8679
- items: [{
8680
- name: 'street',
8681
- label: t('backoffice.form.organizationdetails.items.street'),
8682
- type: 'input',
8683
- hidden: function hidden(data) {
8684
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8685
- }
8686
- }, {
8687
- label: t('backoffice.form.organizationdetails.items.zipCode'),
8688
- name: 'zipCode',
8689
- type: 'input',
8690
- hidden: function hidden(data) {
8691
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8692
- }
8693
- }, {
8694
- label: t('backoffice.form.organizationdetails.items.city'),
8695
- name: 'city',
8696
- type: 'input',
8697
- hidden: function hidden(data) {
8698
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8699
- }
8700
- }, {
8701
- name: 'countryCode',
8702
- label: t('backoffice.form.organizationdetails.items.countryCode'),
8703
- type: 'selectSimple',
8704
- apiInterface: {
8705
- read: {
8706
- list: '/country_codes.json',
8707
- "public": true
8708
- }
8709
- },
8710
- selectMapping: {
8711
- label: "${".concat(lang, "}"),
8712
- value: '${code}',
8713
- externalValue: 'value'
8714
- },
8715
- placeholder: t('backoffice.form.organizationdetails.items.selectCountryCode'),
8716
- allowClear: true,
8717
- search: true
8718
- }, {
8719
- name: 'email',
8720
- label: t('backoffice.form.organizationdetails.items.email'),
8721
- type: 'input',
8722
- hidden: function hidden(data) {
8723
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8724
- }
8725
- }, {
8726
- name: 'phone',
8727
- label: t('backoffice.form.organizationdetails.items.phone'),
8728
- type: 'input',
8729
- hidden: function hidden(data) {
8730
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8731
- }
8732
- }, {
8733
- type: 'divider',
8734
- name: ''
8735
- }],
8736
- initialValue: []
8737
8557
  }]
8738
8558
  },
8739
8559
  FromAffilateOrganizationDetails: {
@@ -8989,14 +8809,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8989
8809
  }, {
8990
8810
  name: 'mediaItemRefVideo',
8991
8811
  hidden: true
8992
- }, {
8993
- name: 'loop',
8994
- type: 'checkbox',
8995
- label: t('backoffice.form.contentItem.loop'),
8996
- doTranslate: false,
8997
- hidden: function hidden(d) {
8998
- return (d === null || d === void 0 ? void 0 : d.type) !== 'Video';
8999
- }
9000
8812
  }]
9001
8813
  });
9002
8814
  translationItems.push({
@@ -9055,12 +8867,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9055
8867
  label: t('backoffice.form.api2servers.items.url'),
9056
8868
  doTranslate: true
9057
8869
  });
9058
- translationItems.push({
9059
- name: [].concat(_toConsumableArray(p), ['loop']),
9060
- type: 'checkbox',
9061
- label: t('backoffice.form.contentItem.loop'),
9062
- doTranslate: false
9063
- });
9064
8870
  break;
9065
8871
  case 'Wrapper':
9066
8872
  translationItems.push({
@@ -9296,12 +9102,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9296
9102
  label: t('backoffice.form.api2servers.items.url'),
9297
9103
  doTranslate: true
9298
9104
  });
9299
- translationItems.push({
9300
- name: [].concat(_toConsumableArray(p), ['loop']),
9301
- type: 'checkbox',
9302
- label: t('backoffice.form.contentItem.loop'),
9303
- doTranslate: false
9304
- });
9305
9105
  break;
9306
9106
  case 'Wrapper':
9307
9107
  translationItems.push({
@@ -9502,13 +9302,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9502
9302
  name: 'divaNr',
9503
9303
  label: t('backoffice.form.createorupdateviewpoints.items.divaNr'),
9504
9304
  type: 'input'
9505
- }, {
9506
- name: 'functionType',
9507
- label: t('backoffice.form.createorupdateviewpoints.items.functionType'),
9508
- type: 'select',
9509
- required: true,
9510
- values: functionTypeValues,
9511
- mode: 'single'
9512
9305
  }]
9513
9306
  },
9514
9307
  FormCreateOrUpdateRenderPackages: {
@@ -9597,9 +9390,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9597
9390
  label: t('Presets'),
9598
9391
  type: 'array',
9599
9392
  items: [{
9600
- type: 'divider',
9601
- name: ''
9602
- }, {
9603
9393
  type: 'radio',
9604
9394
  name: 'job',
9605
9395
  label: t('Job'),
@@ -9650,13 +9440,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9650
9440
  }
9651
9441
  return hidden;
9652
9442
  }
9653
- }, {
9654
- name: 'functionType',
9655
- label: 'FunctionType',
9656
- type: 'select',
9657
- required: true,
9658
- values: functionTypeValues,
9659
- mode: 'single'
9660
9443
  }, {
9661
9444
  name: 'preset',
9662
9445
  label: t('Preset'),
@@ -9864,7 +9647,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9864
9647
  op: 'gt',
9865
9648
  value: 3
9866
9649
  },
9867
- values: functionTypeValues
9650
+ values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
9868
9651
  }, {
9869
9652
  name: 'priority',
9870
9653
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10124,7 +9907,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10124
9907
  value: 3
10125
9908
  },
10126
9909
  allowClear: true,
10127
- values: functionTypeValues
9910
+ values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
10128
9911
  }, {
10129
9912
  name: 'priority',
10130
9913
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10299,7 +10082,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10299
10082
  value: 3
10300
10083
  },
10301
10084
  allowClear: true,
10302
- values: functionTypeValues
10085
+ values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
10303
10086
  }, {
10304
10087
  name: 'priority',
10305
10088
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10441,7 +10224,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10441
10224
  value: 3
10442
10225
  },
10443
10226
  allowClear: true,
10444
- values: functionTypeValues
10227
+ values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
10445
10228
  }, {
10446
10229
  name: 'priority',
10447
10230
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10600,7 +10383,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10600
10383
  type: 'select',
10601
10384
  mode: 'single',
10602
10385
  allowClear: true,
10603
- values: functionTypeValues
10386
+ values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
10604
10387
  }, {
10605
10388
  name: 'priority',
10606
10389
  label: t('backoffice.form.renderjob.items.priority'),
@@ -13463,7 +13246,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
13463
13246
  }
13464
13247
  };
13465
13248
  }
13466
- var functionTypeValues = ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV'];
13467
13249
 
13468
13250
  function styleInject(css, ref) {
13469
13251
  if ( ref === void 0 ) ref = {};
@@ -13498,8 +13280,8 @@ var navMinified = "nav-minified-tSt-a";
13498
13280
  var navOverlay = "nav-overlay-rKJNC";
13499
13281
  var navSettings = "nav-settings-82cjv";
13500
13282
  var menuLabel = "menu-label-4dXQk";
13501
- var css_248z$y = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline !important;\n display: initial !important;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
13502
- styleInject(css_248z$y);
13283
+ var css_248z$x = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline !important;\n display: initial !important;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
13284
+ styleInject(css_248z$x);
13503
13285
 
13504
13286
  function MenuLabel (_ref) {
13505
13287
  var disabled = _ref.disabled,
@@ -17222,7 +17004,7 @@ var JsonEditor$2 = function JsonEditor(_ref) {
17222
17004
  });
17223
17005
  };
17224
17006
 
17225
- var _excluded$4 = ["key", "name"];
17007
+ var _excluded$3 = ["key", "name"];
17226
17008
  function ownKeys$U(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; }
17227
17009
  function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$U(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$U(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17228
17010
  var FormList$2 = function FormList(_ref) {
@@ -17258,7 +17040,7 @@ var FormList$2 = function FormList(_ref) {
17258
17040
  children: [fields.map(function (_ref3) {
17259
17041
  var key = _ref3.key,
17260
17042
  name = _ref3.name,
17261
- restField = _objectWithoutProperties(_ref3, _excluded$4);
17043
+ restField = _objectWithoutProperties(_ref3, _excluded$3);
17262
17044
  return /*#__PURE__*/jsxs("div", {
17263
17045
  id: key.toString(),
17264
17046
  style: {
@@ -17454,8 +17236,8 @@ var Result = function Result(_ref) {
17454
17236
 
17455
17237
  var success = "success-tRJ7j";
17456
17238
  var error = "error-MtAFB";
17457
- var css_248z$x = ".success-tRJ7j {\n color: #fff !important;\n background-color: #449d44 !important;\n border-color: #398439 !important;\n}\n\n.error-MtAFB {\n color: #fff !important;\n background-color: #c9302c !important;\n border-color: #ac2925 !important;\n}\n";
17458
- styleInject(css_248z$x);
17239
+ var css_248z$w = ".success-tRJ7j {\n color: #fff !important;\n background-color: #449d44 !important;\n border-color: #398439 !important;\n}\n\n.error-MtAFB {\n color: #fff !important;\n background-color: #c9302c !important;\n border-color: #ac2925 !important;\n}\n";
17240
+ styleInject(css_248z$w);
17459
17241
 
17460
17242
  var azureIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248px%22%20height%3D%2248px%22%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6a%22%20x1%3D%22-1254.397%22%20x2%3D%22-1261.911%22%20y1%3D%22877.268%22%20y2%3D%22899.466%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23114a8b%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230669bc%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6a%29%22%20d%3D%22M17.634%2C6h11.305L17.203%2C40.773c-0.247%2C0.733-0.934%2C1.226-1.708%2C1.226H6.697%20c-0.994%2C0-1.8-0.806-1.8-1.8c0-0.196%2C0.032-0.39%2C0.094-0.576L15.926%2C7.227C16.173%2C6.494%2C16.86%2C6%2C17.634%2C6L17.634%2C6z%22%2F%3E%20%3Cpath%20fill%3D%22%230078d4%22%20d%3D%22M34.062%2C29.324H16.135c-0.458-0.001-0.83%2C0.371-0.831%2C0.829c0%2C0.231%2C0.095%2C0.451%2C0.264%2C0.608%20l11.52%2C10.752C27.423%2C41.826%2C27.865%2C42%2C28.324%2C42h10.151L34.062%2C29.324z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6b%22%20x1%3D%22-1252.05%22%20x2%3D%22-1253.788%22%20y1%3D%22887.612%22%20y2%3D%22888.2%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-opacity%3D%22.3%22%2F%3E%20%20%3Cstop%20offset%3D%22.071%22%20stop-opacity%3D%22.2%22%2F%3E%20%20%3Cstop%20offset%3D%22.321%22%20stop-opacity%3D%22.1%22%2F%3E%20%20%3Cstop%20offset%3D%22.623%22%20stop-opacity%3D%22.05%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-opacity%3D%220%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6b%29%22%20d%3D%22M17.634%2C6c-0.783-0.003-1.476%2C0.504-1.712%2C1.25L5.005%2C39.595%20c-0.335%2C0.934%2C0.151%2C1.964%2C1.085%2C2.299C6.286%2C41.964%2C6.493%2C42%2C6.702%2C42h9.026c0.684-0.122%2C1.25-0.603%2C1.481-1.259l2.177-6.416%20l7.776%2C7.253c0.326%2C0.27%2C0.735%2C0.419%2C1.158%2C0.422h10.114l-4.436-12.676l-12.931%2C0.003L28.98%2C6H17.634z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6c%22%20x1%3D%22-1252.952%22%20x2%3D%22-1244.704%22%20y1%3D%22876.6%22%20y2%3D%22898.575%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233ccbf4%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%232892df%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6c%29%22%20d%3D%22M32.074%2C7.225C31.827%2C6.493%2C31.141%2C6%2C30.368%2C6h-12.6c0.772%2C0%2C1.459%2C0.493%2C1.705%2C1.224%20l10.935%2C32.399c0.318%2C0.942-0.188%2C1.963-1.13%2C2.281C29.093%2C41.968%2C28.899%2C42%2C28.703%2C42h12.6c0.994%2C0%2C1.8-0.806%2C1.8-1.801%20c0-0.196-0.032-0.39-0.095-0.575L32.074%2C7.225z%22%2F%3E%3C%2Fsvg%3E";
17461
17243
 
@@ -17517,10 +17299,10 @@ var CustomButton = function CustomButton(_ref) {
17517
17299
  };
17518
17300
  var CustomButton$1 = observer(CustomButton);
17519
17301
 
17520
- var wrapper$6 = "wrapper-GVe2h";
17302
+ var wrapper$7 = "wrapper-GVe2h";
17521
17303
  var buttonGroup = "button-group-GYt-T";
17522
- var css_248z$w = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
17523
- styleInject(css_248z$w);
17304
+ var css_248z$v = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
17305
+ styleInject(css_248z$v);
17524
17306
 
17525
17307
  function ownKeys$T(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; }
17526
17308
  function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$T(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$T(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -17534,7 +17316,7 @@ var SubTitle = function SubTitle(_ref) {
17534
17316
  orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
17535
17317
  style: _objectSpread$T({}, item.style),
17536
17318
  children: /*#__PURE__*/jsxs("div", {
17537
- className: wrapper$6,
17319
+ className: wrapper$7,
17538
17320
  children: [Array.isArray(item.name) ? t(item.name[0].toString()) : t(item.name), ((_item$buttonIds = item.buttonIds) === null || _item$buttonIds === void 0 ? void 0 : _item$buttonIds.length) && item.buttonIds.map(function (b) {
17539
17321
  return /*#__PURE__*/jsx("div", {
17540
17322
  className: buttonGroup,
@@ -17693,29 +17475,14 @@ function useSelectSimpleData (_ref) {
17693
17475
  });
17694
17476
  return selected.value;
17695
17477
  }, [selected]);
17696
- var setLoadedOptions = function setLoadedOptions(options) {
17697
- var _options$;
17698
- setOptions(options);
17699
- if (value && options) {
17700
- LOG$a.debug('value changed', toJS(value), toJS(options));
17701
- var _selected = findByValue(value, options, selectMapping);
17702
- var selectedValues = Array.isArray(_selected) ? _selected.map(function (item) {
17703
- return item.value;
17704
- }) : _selected === null || _selected === void 0 ? void 0 : _selected.value;
17705
- onSelectionChanged(selectedValues, _selected);
17706
- } else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
17707
- onSelectionChanged(options[0].value, options[0]);
17708
- }
17709
- };
17710
17478
  useEffect(function () {
17711
17479
  if (configuredOptions) {
17712
17480
  if (apiHandler.canReadList) LOG$a.warn('If options are provided, apiInterface will not be used');
17713
- setLoadedOptions(configuredOptions);
17481
+ setOptions(configuredOptions);
17714
17482
  setLoading(false);
17715
17483
  return;
17716
17484
  }
17717
- if (sharedState !== null && sharedState !== void 0 && sharedState.options) {
17718
- setLoadedOptions(sharedState.options);
17485
+ if (options) {
17719
17486
  setLoading(false);
17720
17487
  return;
17721
17488
  }
@@ -17727,11 +17494,25 @@ function useSelectSimpleData (_ref) {
17727
17494
  var options = data.data.map(function (item) {
17728
17495
  return parseDataEntry(item, selectMapping);
17729
17496
  });
17730
- setLoadedOptions(options);
17497
+ setOptions(options);
17731
17498
  })["finally"](function () {
17732
17499
  setLoading(false);
17733
17500
  });
17734
17501
  }, []);
17502
+ useEffect(function () {
17503
+ var _options$;
17504
+ // set the selected option only after the options are loaded
17505
+ if (value && options) {
17506
+ LOG$a.debug('value changed', value);
17507
+ var _selected = findByValue(value, options, selectMapping);
17508
+ var selectedValues = Array.isArray(_selected) ? _selected.map(function (item) {
17509
+ return item.value;
17510
+ }) : _selected === null || _selected === void 0 ? void 0 : _selected.value;
17511
+ onSelectionChanged(selectedValues, _selected);
17512
+ } else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
17513
+ onSelectionChanged(options[0].value, options[0]);
17514
+ }
17515
+ }, [value, options]);
17735
17516
  var onSelectionChanged = function onSelectionChanged(value, option) {
17736
17517
  setSelected(option);
17737
17518
  onChange === null || onChange === void 0 || onChange(parseReturnData(option, selectMapping));
@@ -17796,11 +17577,11 @@ function parseReturnData(options, selectMapping) {
17796
17577
  return (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? options.value : options.data;
17797
17578
  }
17798
17579
 
17799
- var wrapper$5 = "wrapper-4xyke";
17800
- var css_248z$v = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
17801
- styleInject(css_248z$v);
17580
+ var wrapper$6 = "wrapper-4xyke";
17581
+ var css_248z$u = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
17582
+ styleInject(css_248z$u);
17802
17583
 
17803
- var _excluded$3 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
17584
+ var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
17804
17585
  function ownKeys$S(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; }
17805
17586
  function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17806
17587
  var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
@@ -17814,7 +17595,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
17814
17595
  autoSelectFirst = _ref.autoSelectFirst,
17815
17596
  title = _ref.title,
17816
17597
  sharedState = _ref.sharedState,
17817
- selectProps = _objectWithoutProperties(_ref, _excluded$3);
17598
+ selectProps = _objectWithoutProperties(_ref, _excluded$2);
17818
17599
  var state = useSelectSimpleData({
17819
17600
  apiInterface: apiInterface,
17820
17601
  selectMapping: selectMapping,
@@ -17828,7 +17609,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
17828
17609
  });
17829
17610
  return /*#__PURE__*/jsxs("div", {
17830
17611
  ref: ref,
17831
- className: classnames(title ? wrapper$5 : undefined),
17612
+ className: classnames(title ? wrapper$6 : undefined),
17832
17613
  children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$S(_objectSpread$S({}, selectProps), {}, {
17833
17614
  showSearch: search,
17834
17615
  loading: state.loading,
@@ -18682,8 +18463,8 @@ var customSelect = "custom-select-ESUJX";
18682
18463
  var customSelectOption = "custom-select-option-dUA7N";
18683
18464
  var avatarWrapper = "avatar-wrapper-Vg-xe";
18684
18465
  var selectTextWrapper = "select-text-wrapper-hPSZW";
18685
- var css_248z$u = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N.ant-select-item {\n margin: 0px 12px;\n padding: 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.custom-select-option-dUA7N .ant-select-item-option-content {\n display: flex;\n align-items: center;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 30px;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
18686
- styleInject(css_248z$u);
18466
+ var css_248z$t = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N.ant-select-item {\n margin: 0px 12px;\n padding: 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.custom-select-option-dUA7N .ant-select-item-option-content {\n display: flex;\n align-items: center;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 30px;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
18467
+ styleInject(css_248z$t);
18687
18468
 
18688
18469
  var Selector = function Selector(_ref) {
18689
18470
  var items = _ref.items,
@@ -19227,8 +19008,8 @@ function useSelectData (_ref) {
19227
19008
  };
19228
19009
  }
19229
19010
 
19230
- var css_248z$t = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
19231
- styleInject(css_248z$t);
19011
+ var css_248z$s = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
19012
+ styleInject(css_248z$s);
19232
19013
 
19233
19014
  var SelectWrapper = function SelectWrapper(_ref) {
19234
19015
  var onChange = _ref.onChange,
@@ -19307,11 +19088,11 @@ var SelectWrapper = function SelectWrapper(_ref) {
19307
19088
  };
19308
19089
  var Select = observer(SelectWrapper);
19309
19090
 
19310
- var wrapper$4 = "wrapper-WStAk";
19091
+ var wrapper$5 = "wrapper-WStAk";
19311
19092
  var headerWrapper = "header-wrapper-gWQuH";
19312
19093
  var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
19313
- var css_248z$s = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
19314
- styleInject(css_248z$s);
19094
+ var css_248z$r = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
19095
+ styleInject(css_248z$r);
19315
19096
 
19316
19097
  function ownKeys$P(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; }
19317
19098
  function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -19515,7 +19296,7 @@ var Translation = function Translation(_ref) {
19515
19296
  _onChange = _useTranslationHook.onChange,
19516
19297
  autoTranslate = _useTranslationHook.autoTranslate;
19517
19298
  return /*#__PURE__*/jsxs("div", {
19518
- className: wrapper$4,
19299
+ className: wrapper$5,
19519
19300
  children: [/*#__PURE__*/jsxs("div", {
19520
19301
  className: headerWrapper,
19521
19302
  children: [/*#__PURE__*/jsx("div", {
@@ -20094,8 +19875,6 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
20094
19875
  item: item,
20095
19876
  data: state.data
20096
19877
  });
20097
- case 'divider':
20098
- return /*#__PURE__*/jsx(Divider, {});
20099
19878
  case 'apiKey':
20100
19879
  return /*#__PURE__*/jsx(ApiKey, {
20101
19880
  value: item.value,
@@ -20391,6 +20170,7 @@ function ModalProgressBar(_ref) {
20391
20170
 
20392
20171
  var LOG$7 = getLogger('Backoffice', 'Form');
20393
20172
  var FormWrapper$1 = function FormWrapper(_ref, ref) {
20173
+ var _state$selectedItems2;
20394
20174
  var id = _ref.id,
20395
20175
  data = _ref.data,
20396
20176
  onChange = _ref.onChange,
@@ -20533,59 +20313,18 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20533
20313
  onErrorInternal('An unexpected error prevented finishing');
20534
20314
  }
20535
20315
  };
20536
-
20537
- // Group items by tabgroup
20538
- var groupItemsByTabGroup = function groupItemsByTabGroup() {
20539
- if (!state.selectedItems) return [];
20540
- var groups = {};
20541
- state.selectedItems.forEach(function (item) {
20542
- var tabGroup = item.tabgroup || 'default';
20543
- if (!groups[tabGroup]) {
20544
- groups[tabGroup] = [];
20545
- }
20546
- groups[tabGroup].push(item);
20547
- });
20548
- return Object.entries(groups).map(function (_ref7) {
20549
- var _ref8 = _slicedToArray(_ref7, 2),
20550
- tabGroup = _ref8[0],
20551
- items = _ref8[1];
20552
- return {
20553
- tabGroup: tabGroup,
20554
- items: items
20555
- };
20556
- });
20557
- };
20558
- var renderFormItems = function renderFormItems(items) {
20559
- return /*#__PURE__*/jsx(Fragment, {
20560
- children: items.map(function (item) {
20561
- var _state$hiddenRequired, _state$hiddenRequired2, _state$hiddenRequired3;
20562
- return /*#__PURE__*/jsxs("div", {
20563
- children: [item.marker && /*#__PURE__*/jsx(InfoCircleOutlined, {}), ['subTitle', 'array', 'text'].includes(item.type) ? getElement(item, setCanSave, state, item.name, state.onInputChanged, onErrorInternal, undefined, undefined, (_state$hiddenRequired = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired === void 0 ? void 0 : _state$hiddenRequired.hidden) : /*#__PURE__*/jsx(Form$1.Item, {
20564
- name: item.name,
20565
- rules: state.getRules(item, state.data),
20566
- label: getLabel(item, t),
20567
- valuePropName: item.type == 'checkbox' ? 'checked' : 'value',
20568
- initialValue: item === null || item === void 0 ? void 0 : item.defaultValue,
20569
- hasFeedback: !!state.fieldErrors[item.name.toString()],
20570
- validateStatus: !!state.fieldErrors[item.name.toString()] ? 'error' : undefined,
20571
- help: state.fieldErrors[item.name.toString()],
20572
- hidden: (_state$hiddenRequired2 = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired2 === void 0 ? void 0 : _state$hiddenRequired2.hidden,
20573
- children: getElement(item, setCanSave, state, item.name, state.onInputChanged, onErrorInternal, root, form, (_state$hiddenRequired3 = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired3 === void 0 ? void 0 : _state$hiddenRequired3.hidden)
20574
- }, Array.isArray(item.name) ? item.name.join('.') : item.name)]
20575
- }, item.name.toString());
20576
- })
20577
- });
20578
- };
20579
- var tabGroups = useMemo(function () {
20580
- return groupItemsByTabGroup();
20581
- }, [state.selectedItems]);
20582
-
20583
- // Create tab items dynamically
20584
- var tabItems = tabGroups.map(function (group, index) {
20585
- return {
20586
- key: group.tabGroup === 'default' ? '99' : index.toString(),
20587
- label: group.tabGroup === 'default' ? t('backoffice.menu.items.label.systemOther') : group.tabGroup,
20588
- children: /*#__PURE__*/jsxs(Form$1, {
20316
+ return /*#__PURE__*/jsxs(Fragment, {
20317
+ children: [/*#__PURE__*/jsxs(Spin, {
20318
+ spinning: state.loading,
20319
+ children: [state.configuration.presetApiInterface && /*#__PURE__*/jsx(Presets, {
20320
+ state: state,
20321
+ apiHandler: state.presetApiHandler,
20322
+ form: form,
20323
+ root: state.root,
20324
+ setUsedPreset: state.setUsedPreset,
20325
+ presets: state.preset.presets,
20326
+ setPresets: state.preset.setPresets
20327
+ }), /*#__PURE__*/jsxs(Form$1, {
20589
20328
  autoComplete: "off",
20590
20329
  form: form,
20591
20330
  onFinish: onFinish,
@@ -20601,78 +20340,30 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20601
20340
  if (changedFields[0] === undefined) return;
20602
20341
  state.changedFields.current.push(changedFields[0]);
20603
20342
  },
20604
- children: [state.configuration.itemSelector && index === 0 && /*#__PURE__*/jsx(Form$1.Item, {
20343
+ children: [state.configuration.itemSelector && /*#__PURE__*/jsx(Form$1.Item, {
20605
20344
  name: state.configuration.itemSelector.name,
20606
20345
  rules: state.getRules(state.configuration.itemSelector, state.data),
20607
20346
  label: state.configuration.itemSelector.label ? t(state.configuration.itemSelector.label, state.configuration.itemSelector.label) : state.configuration.itemSelector.name,
20608
20347
  valuePropName: state.configuration.itemSelector.type == 'checkbox' ? 'checked' : 'value',
20609
20348
  children: getElement(state.configuration.itemSelector, setCanSave, state, state.configuration.itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
20610
- }, state.configuration.itemSelector.name.toString()), renderFormItems(group.items)]
20611
- }, "".concat(state.selectedItemsIndex.toString(), "-").concat(index))
20612
- };
20613
- });
20614
-
20615
- // If no tabgroups are defined, fall back to single form
20616
- var hasTabGroups = tabGroups.length > 1 || tabGroups.length === 1 && tabGroups[0].tabGroup !== 'default';
20617
- if (!hasTabGroups) {
20618
- var singleForm = /*#__PURE__*/jsxs(Form$1, {
20619
- autoComplete: "off",
20620
- form: form,
20621
- onFinish: onFinish,
20622
- onFinishFailed: onFinishFailed,
20623
- layout: "horizontal",
20624
- onValuesChange: function onValuesChange(a, data) {
20625
- state.updateHiddenRequiredDisabled(data, a);
20626
- },
20627
- labelCol: {
20628
- span: 4
20629
- },
20630
- onFieldsChange: function onFieldsChange(changedFields) {
20631
- if (changedFields[0] === undefined) return;
20632
- state.changedFields.current.push(changedFields[0]);
20633
- },
20634
- children: [state.configuration.itemSelector && /*#__PURE__*/jsx(Form$1.Item, {
20635
- name: state.configuration.itemSelector.name,
20636
- rules: state.getRules(state.configuration.itemSelector, state.data),
20637
- label: state.configuration.itemSelector.label ? t(state.configuration.itemSelector.label, state.configuration.itemSelector.label) : state.configuration.itemSelector.name,
20638
- valuePropName: state.configuration.itemSelector.type == 'checkbox' ? 'checked' : 'value',
20639
- children: getElement(state.configuration.itemSelector, setCanSave, state, state.configuration.itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
20640
- }, state.configuration.itemSelector.name.toString()), renderFormItems(state.selectedItems || [])]
20641
- }, state.selectedItemsIndex.toString());
20642
- return /*#__PURE__*/jsxs(Fragment, {
20643
- children: [/*#__PURE__*/jsxs(Spin, {
20644
- spinning: state.loading,
20645
- children: [state.configuration.presetApiInterface && /*#__PURE__*/jsx(Presets, {
20646
- state: state,
20647
- apiHandler: state.presetApiHandler,
20648
- form: form,
20649
- root: state.root,
20650
- setUsedPreset: state.setUsedPreset,
20651
- presets: state.preset.presets,
20652
- setPresets: state.preset.setPresets
20653
- }), singleForm]
20654
- }), state.configuration.showProgressBar && /*#__PURE__*/jsx(ModalProgressBar, {
20655
- isOpen: state.progressBarOpen,
20656
- percent: state.progressBarPercentage
20657
- })]
20658
- });
20659
- }
20660
- return /*#__PURE__*/jsxs(Fragment, {
20661
- children: [/*#__PURE__*/jsxs(Spin, {
20662
- spinning: state.loading,
20663
- children: [state.configuration.presetApiInterface && /*#__PURE__*/jsx(Presets, {
20664
- state: state,
20665
- apiHandler: state.presetApiHandler,
20666
- form: form,
20667
- root: state.root,
20668
- setUsedPreset: state.setUsedPreset,
20669
- presets: state.preset.presets,
20670
- setPresets: state.preset.setPresets
20671
- }), /*#__PURE__*/jsx(Tabs, {
20672
- items: _toConsumableArray(tabItems).sort(function (a, b) {
20673
- return a.key.localeCompare(b.key);
20674
- })
20675
- })]
20349
+ }, state.configuration.itemSelector.name.toString()), (_state$selectedItems2 = state.selectedItems) === null || _state$selectedItems2 === void 0 ? void 0 : _state$selectedItems2.map(function (item) {
20350
+ var _state$hiddenRequired, _state$hiddenRequired2, _state$hiddenRequired3;
20351
+ return /*#__PURE__*/jsxs("div", {
20352
+ children: [item.marker && /*#__PURE__*/jsx(InfoCircleOutlined, {}), ['subTitle', 'array', 'text'].includes(item.type) ? getElement(item, setCanSave, state, item.name, state.onInputChanged, onErrorInternal, undefined, undefined, (_state$hiddenRequired = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired === void 0 ? void 0 : _state$hiddenRequired.hidden) : /*#__PURE__*/jsx(Form$1.Item, {
20353
+ name: item.name,
20354
+ rules: state.getRules(item, state.data),
20355
+ label: getLabel(item, t),
20356
+ valuePropName: item.type == 'checkbox' ? 'checked' : 'value',
20357
+ initialValue: item === null || item === void 0 ? void 0 : item.defaultValue,
20358
+ hasFeedback: !!state.fieldErrors[item.name.toString()],
20359
+ validateStatus: !!state.fieldErrors[item.name.toString()] ? 'error' : undefined,
20360
+ help: state.fieldErrors[item.name.toString()],
20361
+ hidden: (_state$hiddenRequired2 = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired2 === void 0 ? void 0 : _state$hiddenRequired2.hidden,
20362
+ children: getElement(item, setCanSave, state, item.name, state.onInputChanged, onErrorInternal, root, form, (_state$hiddenRequired3 = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired3 === void 0 ? void 0 : _state$hiddenRequired3.hidden)
20363
+ }, Array.isArray(item.name) ? item.name.join('.') : item.name)]
20364
+ }, item.name.toString());
20365
+ })]
20366
+ }, state.selectedItemsIndex.toString())]
20676
20367
  }), state.configuration.showProgressBar && /*#__PURE__*/jsx(ModalProgressBar, {
20677
20368
  isOpen: state.progressBarOpen,
20678
20369
  percent: state.progressBarPercentage
@@ -21447,8 +21138,8 @@ var skeleton = "skeleton--xCI0";
21447
21138
  var filterField = "filterField-1kU1O";
21448
21139
  var parentScroll = "parent-scroll-GmaL9";
21449
21140
  var parent = "parent-NZJ3S";
21450
- var css_248z$r = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n height: 100%;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: auto;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.parent-scroll-GmaL9 .ant-spin-container {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component__outerdiv {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component {\n height: 100% !important;\n}\n";
21451
- styleInject(css_248z$r);
21141
+ var css_248z$q = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n height: 100%;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: auto;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.parent-scroll-GmaL9 .ant-spin-container {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component__outerdiv {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component {\n height: 100% !important;\n}\n";
21142
+ styleInject(css_248z$q);
21452
21143
 
21453
21144
  function ownKeys$K(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; }
21454
21145
  function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -22693,8 +22384,8 @@ var newscroller = "newscroller-INKeD";
22693
22384
  var antCollapseHeader = "ant-collapse-header--6FgU";
22694
22385
  var itemTitle = "item-title--BTvC";
22695
22386
  var itemDesc = "item-desc-DBiiF";
22696
- var css_248z$q = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
22697
- styleInject(css_248z$q);
22387
+ var css_248z$p = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
22388
+ styleInject(css_248z$p);
22698
22389
 
22699
22390
  function ownKeys$H(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; }
22700
22391
  function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -24106,8 +23797,8 @@ var jsoneditor = "jsoneditor-WMs15";
24106
23797
  var preview = "preview-9wK81";
24107
23798
  var previewButton = "preview-button-vupuG";
24108
23799
  var editButton = "edit-button-m6r3M";
24109
- var css_248z$p = ".jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-transform {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-repair {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-poweredBy {\n display: none;\n}\n.jsoneditor-WMs15 .preview-9wK81 {\n background-color: #f19e34;\n}\n\n.jsoneditor-WMs15 .preview-button-vupuG {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 19.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 502 502%22 style%3D%22enable-background%3Anew 0 0 502 502%3B%22 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cg%3E%09%09%09%3Cpath d%3D%22M478.482%2C448.601l-101.6-101.599c8.089-15.262%2C12.339-32.29%2C12.339-49.717c0-35.689-18.182-69.164-47.804-88.743V92.53%09%09%09%09c0-2.652-1.054-5.196-2.929-7.071l-82.529-82.53C254.083%2C1.054%2C251.54%2C0%2C248.888%2C0H24.371c-5.522%2C0-10%2C4.477-10%2C10v427.735%09%09%09%09c0%2C5.523%2C4.478%2C10%2C10%2C10h307.046c5.522%2C0%2C10-4.477%2C10-10v-37.722l92.825%2C92.825c5.908%2C5.908%2C13.764%2C9.162%2C22.119%2C9.162%09%09%09%09c8.356%2C0%2C16.212-3.254%2C22.12-9.162C490.678%2C480.642%2C490.678%2C460.797%2C478.482%2C448.601z M307.276%2C82.53h-48.387V34.143%09%09%09%09l24.193%2C24.193L307.276%2C82.53z M321.417%2C396.377v31.358H34.371V20h204.517v72.53c0%2C5.523%2C4.478%2C10%2C10%2C10h72.529v95.662%09%09%09%09l0.009%2C0.014c-12.214-4.741-25.275-7.215-38.499-7.215c-58.61%2C0-106.294%2C47.683-106.294%2C106.293s47.684%2C106.293%2C106.294%2C106.293%09%09%09%09c13.224%2C0%2C26.285-2.474%2C38.499-7.215L321.417%2C396.377z M328.948%2C370.291c-0.848%2C0.536-1.706%2C1.057-2.574%2C1.563%09%09%09%09c-13.131%2C7.67-28.154%2C11.724-43.446%2C11.724c-47.583%2C0-86.294-38.711-86.294-86.293c0-47.582%2C38.711-86.293%2C86.294-86.293%09%09%09%09c15.291%2C0%2C30.315%2C4.054%2C43.447%2C11.724c26.428%2C15.435%2C42.846%2C44.008%2C42.846%2C74.569c0%2C16.35-4.595%2C32.264-13.289%2C46.022%09%09%09%09C349.097%2C354.125%2C339.766%2C363.455%2C328.948%2C370.291z M464.339%2C478.696c-2.131%2C2.131-4.964%2C3.304-7.978%2C3.304%09%09%09%09c-3.014%2C0-5.847-1.173-7.977-3.304l-98.706-98.706l-0.008-0.001c5.856-4.74%2C11.221-10.104%2C15.961-15.96l0.001%2C0.008%09%09%09%09l98.707%2C98.707C468.737%2C467.142%2C468.737%2C474.298%2C464.339%2C478.696z%22%2F%3E%09%09%09%3Cpath d%3D%22M246.838%2C238.403c-20.641%2C12.674-32.964%2C34.686-32.964%2C58.882c0%2C5.523%2C4.478%2C10%2C10%2C10c5.522%2C0%2C10-4.477%2C10-10%09%09%09%09c0-17.19%2C8.759-32.83%2C23.429-41.838c4.707-2.89%2C6.179-9.048%2C3.289-13.754C257.702%2C236.986%2C251.544%2C235.513%2C246.838%2C238.403z%22%2F%3E%09%09%09%3Cpath d%3D%22M317.708%2C237.624c-10.52-6.145-22.547-9.392-34.781-9.392c-5.522%2C0-10%2C4.477-10%2C10s4.478%2C10%2C10%2C10%09%09%09%09c8.693%2C0%2C17.232%2C2.304%2C24.693%2C6.662c1.586%2C0.926%2C3.321%2C1.367%2C5.034%2C1.367c3.438%2C0%2C6.785-1.775%2C8.645-4.958%09%09%09%09C324.085%2C246.533%2C322.477%2C240.409%2C317.708%2C237.624z%22%2F%3E%09%09%3C%2Fg%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-size: 20px;\n background-repeat: no-repeat;\n background-position: center;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:hover {\n border: 0;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:disabled {\n opacity: 0.3;\n}\n\n.jsoneditor-WMs15 .edit-button-m6r3M {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 16.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Capa_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%22494.936px%22 height%3D%22494.936px%22 viewBox%3D%220 0 494.936 494.936%22 style%3D%22enable-background%3Anew 0 0 494.936 494.936%3B%22%09 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cpath d%3D%22M389.844%2C182.85c-6.743%2C0-12.21%2C5.467-12.21%2C12.21v222.968c0%2C23.562-19.174%2C42.735-42.736%2C42.735H67.157%09%09%09c-23.562%2C0-42.736-19.174-42.736-42.735V150.285c0-23.562%2C19.174-42.735%2C42.736-42.735h267.741c6.743%2C0%2C12.21-5.467%2C12.21-12.21%09%09%09s-5.467-12.21-12.21-12.21H67.157C30.126%2C83.13%2C0%2C113.255%2C0%2C150.285v267.743c0%2C37.029%2C30.126%2C67.155%2C67.157%2C67.155h267.741%09%09%09c37.03%2C0%2C67.156-30.126%2C67.156-67.155V195.061C402.054%2C188.318%2C396.587%2C182.85%2C389.844%2C182.85z%22%2F%3E%09%09%3Cpath d%3D%22M483.876%2C20.791c-14.72-14.72-38.669-14.714-53.377%2C0L221.352%2C229.944c-0.28%2C0.28-3.434%2C3.559-4.251%2C5.396l-28.963%2C65.069%09%09%09c-2.057%2C4.619-1.056%2C10.027%2C2.521%2C13.6c2.337%2C2.336%2C5.461%2C3.576%2C8.639%2C3.576c1.675%2C0%2C3.362-0.346%2C4.96-1.057l65.07-28.963%09%09%09c1.83-0.815%2C5.114-3.97%2C5.396-4.25L483.876%2C74.169c7.131-7.131%2C11.06-16.61%2C11.06-26.692%09%09%09C494.936%2C37.396%2C491.007%2C27.915%2C483.876%2C20.791z M466.61%2C56.897L257.457%2C266.05c-0.035%2C0.036-0.055%2C0.078-0.089%2C0.107%09%09%09l-33.989%2C15.131L238.51%2C247.3c0.03-0.036%2C0.071-0.055%2C0.107-0.09L447.765%2C38.058c5.038-5.039%2C13.819-5.033%2C18.846%2C0.005%09%09%09c2.518%2C2.51%2C3.905%2C5.855%2C3.905%2C9.414C470.516%2C51.036%2C469.127%2C54.38%2C466.61%2C56.897z%22%2F%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n";
24110
- styleInject(css_248z$p);
23800
+ var css_248z$o = ".jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-transform {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-repair {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-poweredBy {\n display: none;\n}\n.jsoneditor-WMs15 .preview-9wK81 {\n background-color: #f19e34;\n}\n\n.jsoneditor-WMs15 .preview-button-vupuG {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 19.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 502 502%22 style%3D%22enable-background%3Anew 0 0 502 502%3B%22 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cg%3E%09%09%09%3Cpath d%3D%22M478.482%2C448.601l-101.6-101.599c8.089-15.262%2C12.339-32.29%2C12.339-49.717c0-35.689-18.182-69.164-47.804-88.743V92.53%09%09%09%09c0-2.652-1.054-5.196-2.929-7.071l-82.529-82.53C254.083%2C1.054%2C251.54%2C0%2C248.888%2C0H24.371c-5.522%2C0-10%2C4.477-10%2C10v427.735%09%09%09%09c0%2C5.523%2C4.478%2C10%2C10%2C10h307.046c5.522%2C0%2C10-4.477%2C10-10v-37.722l92.825%2C92.825c5.908%2C5.908%2C13.764%2C9.162%2C22.119%2C9.162%09%09%09%09c8.356%2C0%2C16.212-3.254%2C22.12-9.162C490.678%2C480.642%2C490.678%2C460.797%2C478.482%2C448.601z M307.276%2C82.53h-48.387V34.143%09%09%09%09l24.193%2C24.193L307.276%2C82.53z M321.417%2C396.377v31.358H34.371V20h204.517v72.53c0%2C5.523%2C4.478%2C10%2C10%2C10h72.529v95.662%09%09%09%09l0.009%2C0.014c-12.214-4.741-25.275-7.215-38.499-7.215c-58.61%2C0-106.294%2C47.683-106.294%2C106.293s47.684%2C106.293%2C106.294%2C106.293%09%09%09%09c13.224%2C0%2C26.285-2.474%2C38.499-7.215L321.417%2C396.377z M328.948%2C370.291c-0.848%2C0.536-1.706%2C1.057-2.574%2C1.563%09%09%09%09c-13.131%2C7.67-28.154%2C11.724-43.446%2C11.724c-47.583%2C0-86.294-38.711-86.294-86.293c0-47.582%2C38.711-86.293%2C86.294-86.293%09%09%09%09c15.291%2C0%2C30.315%2C4.054%2C43.447%2C11.724c26.428%2C15.435%2C42.846%2C44.008%2C42.846%2C74.569c0%2C16.35-4.595%2C32.264-13.289%2C46.022%09%09%09%09C349.097%2C354.125%2C339.766%2C363.455%2C328.948%2C370.291z M464.339%2C478.696c-2.131%2C2.131-4.964%2C3.304-7.978%2C3.304%09%09%09%09c-3.014%2C0-5.847-1.173-7.977-3.304l-98.706-98.706l-0.008-0.001c5.856-4.74%2C11.221-10.104%2C15.961-15.96l0.001%2C0.008%09%09%09%09l98.707%2C98.707C468.737%2C467.142%2C468.737%2C474.298%2C464.339%2C478.696z%22%2F%3E%09%09%09%3Cpath d%3D%22M246.838%2C238.403c-20.641%2C12.674-32.964%2C34.686-32.964%2C58.882c0%2C5.523%2C4.478%2C10%2C10%2C10c5.522%2C0%2C10-4.477%2C10-10%09%09%09%09c0-17.19%2C8.759-32.83%2C23.429-41.838c4.707-2.89%2C6.179-9.048%2C3.289-13.754C257.702%2C236.986%2C251.544%2C235.513%2C246.838%2C238.403z%22%2F%3E%09%09%09%3Cpath d%3D%22M317.708%2C237.624c-10.52-6.145-22.547-9.392-34.781-9.392c-5.522%2C0-10%2C4.477-10%2C10s4.478%2C10%2C10%2C10%09%09%09%09c8.693%2C0%2C17.232%2C2.304%2C24.693%2C6.662c1.586%2C0.926%2C3.321%2C1.367%2C5.034%2C1.367c3.438%2C0%2C6.785-1.775%2C8.645-4.958%09%09%09%09C324.085%2C246.533%2C322.477%2C240.409%2C317.708%2C237.624z%22%2F%3E%09%09%3C%2Fg%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-size: 20px;\n background-repeat: no-repeat;\n background-position: center;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:hover {\n border: 0;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:disabled {\n opacity: 0.3;\n}\n\n.jsoneditor-WMs15 .edit-button-m6r3M {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 16.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Capa_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%22494.936px%22 height%3D%22494.936px%22 viewBox%3D%220 0 494.936 494.936%22 style%3D%22enable-background%3Anew 0 0 494.936 494.936%3B%22%09 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cpath d%3D%22M389.844%2C182.85c-6.743%2C0-12.21%2C5.467-12.21%2C12.21v222.968c0%2C23.562-19.174%2C42.735-42.736%2C42.735H67.157%09%09%09c-23.562%2C0-42.736-19.174-42.736-42.735V150.285c0-23.562%2C19.174-42.735%2C42.736-42.735h267.741c6.743%2C0%2C12.21-5.467%2C12.21-12.21%09%09%09s-5.467-12.21-12.21-12.21H67.157C30.126%2C83.13%2C0%2C113.255%2C0%2C150.285v267.743c0%2C37.029%2C30.126%2C67.155%2C67.157%2C67.155h267.741%09%09%09c37.03%2C0%2C67.156-30.126%2C67.156-67.155V195.061C402.054%2C188.318%2C396.587%2C182.85%2C389.844%2C182.85z%22%2F%3E%09%09%3Cpath d%3D%22M483.876%2C20.791c-14.72-14.72-38.669-14.714-53.377%2C0L221.352%2C229.944c-0.28%2C0.28-3.434%2C3.559-4.251%2C5.396l-28.963%2C65.069%09%09%09c-2.057%2C4.619-1.056%2C10.027%2C2.521%2C13.6c2.337%2C2.336%2C5.461%2C3.576%2C8.639%2C3.576c1.675%2C0%2C3.362-0.346%2C4.96-1.057l65.07-28.963%09%09%09c1.83-0.815%2C5.114-3.97%2C5.396-4.25L483.876%2C74.169c7.131-7.131%2C11.06-16.61%2C11.06-26.692%09%09%09C494.936%2C37.396%2C491.007%2C27.915%2C483.876%2C20.791z M466.61%2C56.897L257.457%2C266.05c-0.035%2C0.036-0.055%2C0.078-0.089%2C0.107%09%09%09l-33.989%2C15.131L238.51%2C247.3c0.03-0.036%2C0.071-0.055%2C0.107-0.09L447.765%2C38.058c5.038-5.039%2C13.819-5.033%2C18.846%2C0.005%09%09%09c2.518%2C2.51%2C3.905%2C5.855%2C3.905%2C9.414C470.516%2C51.036%2C469.127%2C54.38%2C466.61%2C56.897z%22%2F%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n";
23801
+ styleInject(css_248z$o);
24111
23802
 
24112
23803
  var JsonEditor = function JsonEditor(_ref, ref) {
24113
23804
  var id = _ref.id,
@@ -24886,19 +24577,19 @@ function reducer(state, action) {
24886
24577
 
24887
24578
  var grid = "grid-sGemi";
24888
24579
  var textWrapper = "text-wrapper-xsPXE";
24889
- var css_248z$o = ".grid-sGemi {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n grid-auto-rows: min-content;\n grid-gap: 10px;\n}\n\n.text-wrapper-xsPXE {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n";
24890
- styleInject(css_248z$o);
24580
+ var css_248z$n = ".grid-sGemi {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n grid-auto-rows: min-content;\n grid-gap: 10px;\n}\n\n.text-wrapper-xsPXE {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n";
24581
+ styleInject(css_248z$n);
24891
24582
 
24892
- var wrapper$3 = "wrapper-p-gR3";
24583
+ var wrapper$4 = "wrapper-p-gR3";
24893
24584
  var container$6 = "container-DoZqe";
24894
- var css_248z$n = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
24895
- styleInject(css_248z$n);
24585
+ var css_248z$m = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
24586
+ styleInject(css_248z$m);
24896
24587
 
24897
24588
  var ToolTipInfo = function ToolTipInfo(props) {
24898
24589
  var _useTranslation = useTranslation(),
24899
24590
  t = _useTranslation.t;
24900
24591
  return /*#__PURE__*/jsx("div", {
24901
- className: wrapper$3,
24592
+ className: wrapper$4,
24902
24593
  children: /*#__PURE__*/jsx(Card, {
24903
24594
  title: t('backoffice.tooltipinfo.useroverview'),
24904
24595
  styles: {
@@ -25095,8 +24786,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
25095
24786
  var small = "small-NY1-k";
25096
24787
  var medium = "medium---QcO";
25097
24788
  var big = "big--E39S";
25098
- var css_248z$m = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-table-wrapper, .diva-component-DIVA_BACKOFFICE_NEW .ant-table {\n height: inherit;\n overflow: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-drawer-body .ant-spin-nested-loading {\n width: 100%;\n height: 80%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-spin-container {\n display: flex;\n flex-direction: column;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-space-item .andt-table .ant-spin-container {\n height: calc(60vh - 90px);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-table-container {\n height: calc(100% - 80px);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
25099
- styleInject(css_248z$m);
24789
+ var css_248z$l = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-table-wrapper, .diva-component-DIVA_BACKOFFICE_NEW .ant-table {\n height: inherit;\n overflow: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-drawer-body .ant-spin-nested-loading {\n width: 100%;\n height: 80%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-spin-container {\n display: flex;\n flex-direction: column;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-space-item .andt-table .ant-spin-container {\n height: calc(60vh - 90px);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-table-container {\n height: calc(100% - 80px);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
24790
+ styleInject(css_248z$l);
25100
24791
 
25101
24792
  var MediaUpload = observer(function (_ref) {
25102
24793
  var id = _ref.id;
@@ -25222,8 +24913,8 @@ var editableRow = "editable-row-9BEHi";
25222
24913
  var checkbox = "checkbox-H7R-w";
25223
24914
  var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
25224
24915
  var contentWidth = "content-width-hGyVI";
25225
- var css_248z$l = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n";
25226
- styleInject(css_248z$l);
24916
+ var css_248z$k = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n";
24917
+ styleInject(css_248z$k);
25227
24918
 
25228
24919
  function BooleanCell (_ref) {
25229
24920
  var children = _ref.children,
@@ -25904,7 +25595,7 @@ function LinkCell (_ref) {
25904
25595
  }
25905
25596
  }
25906
25597
 
25907
- var _excluded$2 = ["index"],
25598
+ var _excluded$1 = ["index"],
25908
25599
  _excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
25909
25600
  function ownKeys$y(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; }
25910
25601
  function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -25912,7 +25603,7 @@ var LOG$4 = getLogger('Backoffice', 'CellRenderer');
25912
25603
  var EditableContext = /*#__PURE__*/React.createContext(null);
25913
25604
  var CustomRow = function CustomRow(_ref) {
25914
25605
  _ref.index;
25915
- var props = _objectWithoutProperties(_ref, _excluded$2);
25606
+ var props = _objectWithoutProperties(_ref, _excluded$1);
25916
25607
  var _Form$useForm = Form$1.useForm(),
25917
25608
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
25918
25609
  form = _Form$useForm2[0];
@@ -26212,8 +25903,8 @@ function useAGHistogram (_ref) {
26212
25903
  var container$5 = "container-2r-OJ";
26213
25904
  var column1 = "column1-9viTK";
26214
25905
  var spinner = "spinner-00VcK";
26215
- var css_248z$k = ".container-2r-OJ {\n display: flex;\n gap: 40px; /* Distribute the columns evenly */\n}\n\n.column-yZ2Qc {\n padding: 10px;\n}\n\n.column1-9viTK .column-yZ2Qc {\n flex: 8;\n}\n\n.column2-pCnEz .column-yZ2Qc {\n flex: 1;\n}\n\n.column3-QZDVv .column-yZ2Qc {\n flex: 3;\n}\n\n.spinner-00VcK {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
26216
- styleInject(css_248z$k);
25906
+ var css_248z$j = ".container-2r-OJ {\n display: flex;\n gap: 40px; /* Distribute the columns evenly */\n}\n\n.column-yZ2Qc {\n padding: 10px;\n}\n\n.column1-9viTK .column-yZ2Qc {\n flex: 8;\n}\n\n.column2-pCnEz .column-yZ2Qc {\n flex: 1;\n}\n\n.column3-QZDVv .column-yZ2Qc {\n flex: 3;\n}\n\n.spinner-00VcK {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
25907
+ styleInject(css_248z$j);
26217
25908
 
26218
25909
  var Panel = Collapse.Panel;
26219
25910
  function AGHistogram (_ref) {
@@ -27801,7 +27492,7 @@ function filter(f, data) {
27801
27492
  }) : result;
27802
27493
  }
27803
27494
 
27804
- var _excluded$1 = ["_id"];
27495
+ var _excluded = ["_id"];
27805
27496
  function ownKeys$t(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; }
27806
27497
  function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27807
27498
  function useTableData$1 (_ref) {
@@ -27885,7 +27576,7 @@ function useTableData$1 (_ref) {
27885
27576
  setState(newState);
27886
27577
  var formData = new FormData();
27887
27578
  processedDataRow._id;
27888
- var value = _objectWithoutProperties(processedDataRow, _excluded$1);
27579
+ var value = _objectWithoutProperties(processedDataRow, _excluded);
27889
27580
  apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
27890
27581
  filterContex: filterContex,
27891
27582
  value: JSON.stringify([value])
@@ -29191,8 +28882,8 @@ var loader = "loader-LaXZy";
29191
28882
  var flex = "flex-yQdda";
29192
28883
  var bar = "bar-Y663f";
29193
28884
  var value = "value-FCA-6";
29194
- var css_248z$j = ".overlay-lm0tm {\n position: absolute;\n z-index: 1;\n background-color: rgba(247,247,247,0.45882);\n height: 60vh;\n width: 100%;\n}\n.loader-LaXZy {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50px;\n height: 50px;\n border: 3px solid rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n border-top-color: #fff;\n animation: spin-qUdpu 1s ease-in-out infinite;\n -webkit-animation: spin-qUdpu 1s ease-in-out infinite;\n}\n.flex-yQdda {\n display: flex;\n}\n\n.bar-Y663f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 7%;\n}\n\n.value-FCA-6 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n@keyframes spin-qUdpu {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n";
29195
- styleInject(css_248z$j);
28885
+ var css_248z$i = ".overlay-lm0tm {\n position: absolute;\n z-index: 1;\n background-color: rgba(247,247,247,0.45882);\n height: 60vh;\n width: 100%;\n}\n.loader-LaXZy {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50px;\n height: 50px;\n border: 3px solid rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n border-top-color: #fff;\n animation: spin-qUdpu 1s ease-in-out infinite;\n -webkit-animation: spin-qUdpu 1s ease-in-out infinite;\n}\n.flex-yQdda {\n display: flex;\n}\n\n.bar-Y663f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 7%;\n}\n\n.value-FCA-6 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n@keyframes spin-qUdpu {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n";
28886
+ styleInject(css_248z$i);
29196
28887
 
29197
28888
  function ownKeys$p(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; }
29198
28889
  function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -30137,8 +29828,8 @@ var retailerChild = "retailer-child-5ll0K";
30137
29828
  var supplier = "supplier-8sm0I";
30138
29829
  var dealer = "dealer-xgnku";
30139
29830
  var association = "association-b8uVW";
30140
- var css_248z$i = ".label-rYNbb {\n width: 225px;\n background-color: #fff;\n cursor: pointer;\n padding: 10px 15px;\n border-radius: 5px;\n display: flex;\n gap: 12px;\n flex-direction: column;\n font-weight: 500;\n}\n\n.not-clickable-wHc5V {\n cursor: inherit;\n color: grey;\n}\n\n.selected-34dYg {\n font-weight: 630;\n}\n\n.description-iFui2 {\n font-weight: 300;\n font-size: small;\n margin-top: -8px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .org-tree-node-label .org-tree-node-label-inner {\n padding: 0;\n padding: initial;\n}\n\n.darkmode .org-tree-container {\n background-color: rgb(20, 20, 20);\n}\n\n.org-tree-container .org-tree-node-label .ant-btn-default:disabled, .org-tree-container .org-tree-node-label .ant-btn-primary:disabled {\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.25);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.retailer-YNzAh {\n border-bottom: #81c784 solid 5px;\n}\n\n.retailer-child-5ll0K {\n border-bottom: #c8e6c9 solid 5px;\n}\n\n.supplier-8sm0I {\n border-bottom: #ba68c8 solid 5px;\n}\n\n.dealer-xgnku {\n border-bottom: #e1bee7 solid 5px;\n}\n\n.association-b8uVW {\n border-bottom: #fff176 solid 5px;\n}\n";
30141
- styleInject(css_248z$i);
29831
+ var css_248z$h = ".label-rYNbb {\n width: 225px;\n background-color: #fff;\n cursor: pointer;\n padding: 10px 15px;\n border-radius: 5px;\n display: flex;\n gap: 12px;\n flex-direction: column;\n font-weight: 500;\n}\n\n.not-clickable-wHc5V {\n cursor: inherit;\n color: grey;\n}\n\n.selected-34dYg {\n font-weight: 630;\n}\n\n.description-iFui2 {\n font-weight: 300;\n font-size: small;\n margin-top: -8px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .org-tree-node-label .org-tree-node-label-inner {\n padding: 0;\n padding: initial;\n}\n\n.darkmode .org-tree-container {\n background-color: rgb(20, 20, 20);\n}\n\n.org-tree-container .org-tree-node-label .ant-btn-default:disabled, .org-tree-container .org-tree-node-label .ant-btn-primary:disabled {\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.25);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.retailer-YNzAh {\n border-bottom: #81c784 solid 5px;\n}\n\n.retailer-child-5ll0K {\n border-bottom: #c8e6c9 solid 5px;\n}\n\n.supplier-8sm0I {\n border-bottom: #ba68c8 solid 5px;\n}\n\n.dealer-xgnku {\n border-bottom: #e1bee7 solid 5px;\n}\n\n.association-b8uVW {\n border-bottom: #fff176 solid 5px;\n}\n";
29832
+ styleInject(css_248z$h);
30142
29833
 
30143
29834
  function getColorClass(data) {
30144
29835
  switch (data.type) {
@@ -30371,8 +30062,8 @@ var openClass = "open-class--gGXs";
30371
30062
  var breadcrumb = "breadcrumb-Z0VvH";
30372
30063
  var selected = "selected-w-sfW";
30373
30064
  var disabled$2 = "disabled-0nado";
30374
- var css_248z$h = ".trigger-wrapper-OkPRc {\n width: 100%;\n padding: 12px 0px;\n display: flex;\n gap: 32px;\n}\n\n.arrow-Rd0hp {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2213%22 viewBox%3D%220 0 8 13%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0.947266 1.14893L6.94727 6.29178L0.947266 11.9489%22 stroke%3D%22%236F6F6F%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E %3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n transform: rotateZ(0deg);\n transition: all 0.35s ease;\n width: 20.8px;\n height: 22.4px;\n cursor: pointer;\n}\n\n.open-class--gGXs {\n transform: rotateZ(90deg);\n}\n\n.breadcrumb-Z0VvH {\n transition: color 0.3s;\n}\n.breadcrumb-Z0VvH:hover:not(.selected-w-sfW) {\n cursor: pointer;\n color: #000;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.disabled-0nado {\n pointer-events: none;\n color: lightgray;\n}\n\n.darkmode .selected-w-sfW {\n color: #fff;\n font-weight: 400;\n}\n";
30375
- styleInject(css_248z$h);
30065
+ var css_248z$g = ".trigger-wrapper-OkPRc {\n width: 100%;\n padding: 12px 0px;\n display: flex;\n gap: 32px;\n}\n\n.arrow-Rd0hp {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2213%22 viewBox%3D%220 0 8 13%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0.947266 1.14893L6.94727 6.29178L0.947266 11.9489%22 stroke%3D%22%236F6F6F%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E %3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n transform: rotateZ(0deg);\n transition: all 0.35s ease;\n width: 20.8px;\n height: 22.4px;\n cursor: pointer;\n}\n\n.open-class--gGXs {\n transform: rotateZ(90deg);\n}\n\n.breadcrumb-Z0VvH {\n transition: color 0.3s;\n}\n.breadcrumb-Z0VvH:hover:not(.selected-w-sfW) {\n cursor: pointer;\n color: #000;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.disabled-0nado {\n pointer-events: none;\n color: lightgray;\n}\n\n.darkmode .selected-w-sfW {\n color: #fff;\n font-weight: 400;\n}\n";
30066
+ styleInject(css_248z$g);
30376
30067
 
30377
30068
  var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
30378
30069
  var open = _ref.open,
@@ -30405,8 +30096,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
30405
30096
 
30406
30097
  var collapsibleInner = "collapsible-inner-rI8kI";
30407
30098
  var toolbarLeft = "toolbar-left-X9WRo";
30408
- var css_248z$g = ".collapsible-inner-rI8kI {\n overflow: auto;\n padding: 32px 0;\n position: relative;\n}\n\n.toolbar-left-X9WRo {\n position: absolute;\n right: 22px;\n top: 10px;\n display: flex;\n gap: 10px;\n}\n";
30409
- styleInject(css_248z$g);
30099
+ var css_248z$f = ".collapsible-inner-rI8kI {\n overflow: auto;\n padding: 32px 0;\n position: relative;\n}\n\n.toolbar-left-X9WRo {\n position: absolute;\n right: 22px;\n top: 10px;\n display: flex;\n gap: 10px;\n}\n";
30100
+ styleInject(css_248z$f);
30410
30101
 
30411
30102
  var Legend = function Legend(props) {
30412
30103
  return /*#__PURE__*/jsx(List$1, {
@@ -30460,8 +30151,8 @@ var Legend = function Legend(props) {
30460
30151
  var buttonsWrapper = "buttons-wrapper-Bubkr";
30461
30152
  var mask = "mask-ssagp";
30462
30153
  var transformWrapper = "transform-wrapper--8t0v";
30463
- var css_248z$f = ".buttons-wrapper-Bubkr {\n display: flex;\n gap: 6px;\n}\n\n.buttons-wrapper-Bubkr button {\n min-width: 24px;\n}\n\n.mask-ssagp {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-backdrop-filter: blur(3px);\n backdrop-filter: blur(3px);\n}\n.mask-ssagp p {\n font-size: 18px;\n font-weight: bold;\n background: rgba(255, 255, 255, 0.4);\n padding: 10px;\n border-radius: 5px;\n}\n\n.transform-wrapper--8t0v .ant-modal-mask,\n.transform-wrapper--8t0v .ant-modal-wrap {\n position: absolute;\n}\n";
30464
- styleInject(css_248z$f);
30154
+ var css_248z$e = ".buttons-wrapper-Bubkr {\n display: flex;\n gap: 6px;\n}\n\n.buttons-wrapper-Bubkr button {\n min-width: 24px;\n}\n\n.mask-ssagp {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-backdrop-filter: blur(3px);\n backdrop-filter: blur(3px);\n}\n.mask-ssagp p {\n font-size: 18px;\n font-weight: bold;\n background: rgba(255, 255, 255, 0.4);\n padding: 10px;\n border-radius: 5px;\n}\n\n.transform-wrapper--8t0v .ant-modal-mask,\n.transform-wrapper--8t0v .ant-modal-wrap {\n position: absolute;\n}\n";
30155
+ styleInject(css_248z$e);
30465
30156
 
30466
30157
  var ZoomWrapper = function ZoomWrapper(_ref) {
30467
30158
  var _children = _ref.children,
@@ -31367,7 +31058,6 @@ var useEnricherContext = function useEnricherContext() {
31367
31058
  exclusivitiesSeriesSelectorState: createDefaultSelectState('exclusivitiesSeriesSelectorState'),
31368
31059
  exclusivitiesFeatureSelectorState: createDefaultSelectState('exclusivitiesFeatureSelectorState'),
31369
31060
  selectedSerie: undefined,
31370
- selectedItem: undefined,
31371
31061
  selectedFeature: undefined
31372
31062
  };
31373
31063
  return root.contextStore.getContext('enricher', initialState);
@@ -31379,11 +31069,6 @@ var useEnricherContext = function useEnricherContext() {
31379
31069
  selectedSerie: serie
31380
31070
  });
31381
31071
  }, [root.contextStore]);
31382
- var setSelectedItem = useCallback(function (item) {
31383
- root.contextStore.updateContext('enricher', {
31384
- selectedItem: item
31385
- });
31386
- }, [root.contextStore]);
31387
31072
  var setSelectedFeature = useCallback(function (feature) {
31388
31073
  root.contextStore.updateContext('enricher', {
31389
31074
  selectedFeature: feature
@@ -31419,10 +31104,7 @@ var useEnricherContext = function useEnricherContext() {
31419
31104
  root.contextStore.updateContext('enricher', {
31420
31105
  selectedPackage: newPackage,
31421
31106
  packageId: newPackage._id,
31422
- viewOnly: newPackage.organizationId !== root.dataStore.organizationId,
31423
- //if the package is not created in the current organization, it can only be viewed
31424
31107
  selectedSerie: undefined,
31425
- selectedItem: undefined,
31426
31108
  selectedFeature: undefined,
31427
31109
  lookupSeriesSelectorState: createDefaultSelectState('lookupSeriesSelectorState'),
31428
31110
  lookupFeatureSelectorState: createDefaultSelectState('lookupFeatureSelectorState'),
@@ -31450,7 +31132,6 @@ var useEnricherContext = function useEnricherContext() {
31450
31132
  // Return context + handlers
31451
31133
  return _objectSpread$g(_objectSpread$g({}, getContext()), {}, {
31452
31134
  setSelectedSerie: setSelectedSerie,
31453
- setSelectedItem: setSelectedItem,
31454
31135
  setSelectedFeature: setSelectedFeature,
31455
31136
  setSelectedPackage: setSelectedPackage
31456
31137
  });
@@ -31469,7 +31150,14 @@ var PackageSelector = function PackageSelector(_ref) {
31469
31150
  return /*#__PURE__*/jsx(SimpleSelect, {
31470
31151
  sharedState: packageSelectorState,
31471
31152
  apiInterface: {
31472
- read: "".concat(enricherService, "/packages?fields=name;_id;isoLanguageIds;isApi;organizationId&organizationId=").concat(organizationId)
31153
+ read: "".concat(enricherService, "/packages?fields=name;_id;isoLanguageIds;isApi&filter=organizationId==\"").concat(organizationId, "\"")
31154
+ },
31155
+ apiMapping: {
31156
+ type: 'query',
31157
+ map: [{
31158
+ globalValue: 'organizationId',
31159
+ targetField: 'organizationId'
31160
+ }]
31473
31161
  },
31474
31162
  selectMapping: {
31475
31163
  label: '${name}',
@@ -31499,11 +31187,7 @@ function useModule$1 (currentModules) {
31499
31187
  setSelectedPackage = _useEnricherContext.setSelectedPackage,
31500
31188
  organizationId = _useEnricherContext.organizationId,
31501
31189
  selectedSerie = _useEnricherContext.selectedSerie,
31502
- selectedFeature = _useEnricherContext.selectedFeature,
31503
- selectedItem = _useEnricherContext.selectedItem,
31504
- setSelectedSerie = _useEnricherContext.setSelectedSerie,
31505
- setSelectedItem = _useEnricherContext.setSelectedItem,
31506
- viewOnly = _useEnricherContext.viewOnly;
31190
+ selectedFeature = _useEnricherContext.selectedFeature;
31507
31191
  var location = useLocation();
31508
31192
  var _useSearchParams = useSearchParams(),
31509
31193
  _useSearchParams2 = _slicedToArray(_useSearchParams, 1),
@@ -31713,12 +31397,8 @@ function useModule$1 (currentModules) {
31713
31397
  organizationId: organizationId,
31714
31398
  apiConfig: root.configurationStore.apiConfig,
31715
31399
  setSelectedPackage: setSelectedPackage,
31716
- setSelectedSerie: setSelectedSerie,
31717
- setSelectedItem: setSelectedItem,
31718
31400
  selectedSerie: selectedSerie,
31719
- selectedFeature: selectedFeature,
31720
- selectedItem: selectedItem,
31721
- viewOnly: viewOnly
31401
+ selectedFeature: selectedFeature
31722
31402
  };
31723
31403
  }
31724
31404
 
@@ -31846,12 +31526,14 @@ var useTools = function useTools(_ref) {
31846
31526
  initItem: item === null || item === void 0 ? void 0 : item.typeNo,
31847
31527
  setSerie: setSerie,
31848
31528
  setArticle: setArticle
31849
- }, initSerie ? {
31850
- initSerie: initSerie
31529
+ }, serie ? {
31530
+ initSerie: {
31531
+ serieNo: serie.serieNo,
31532
+ serieId: serie._id
31533
+ }
31851
31534
  } : {}) : isApi2 ? {
31852
31535
  // open configurator for api2 package (configurator light)
31853
- loadMask: true,
31854
- initItem: item === null || item === void 0 ? void 0 : item.typeNo
31536
+ loadMask: true
31855
31537
  } : _objectSpread$f({
31856
31538
  // open configurator for idm package
31857
31539
  useEnricherService: true,
@@ -31861,20 +31543,14 @@ var useTools = function useTools(_ref) {
31861
31543
  initItem: item === null || item === void 0 ? void 0 : item.typeNo,
31862
31544
  setSerie: setSerie,
31863
31545
  setArticle: setArticle
31864
- }, initSerie ? {
31865
- initSerie: initSerie
31546
+ }, serie ? {
31547
+ initSerie: {
31548
+ serieNo: serie.serieNo,
31549
+ serieId: serie._id
31550
+ }
31866
31551
  } : {})
31867
31552
  });
31868
31553
  }, [catalogId, packageId, isApi2, serie, item, setSerie, setArticle]);
31869
- var initSerie = useMemo(function () {
31870
- if (serie) {
31871
- return {
31872
- serieNo: serie.serieNo,
31873
- serieId: serie._id
31874
- };
31875
- }
31876
- return undefined;
31877
- }, [serie]);
31878
31554
  useEffect(function () {
31879
31555
  var _root$contentStore$ri;
31880
31556
  var tools = [];
@@ -31916,11 +31592,10 @@ var TableGroups = observer(function () {
31916
31592
  packageId = _useModule.packageId,
31917
31593
  organizationId = _useModule.organizationId,
31918
31594
  apiConfig = _useModule.apiConfig,
31919
- selectedPackage = _useModule.selectedPackage,
31920
- viewOnly = _useModule.viewOnly;
31595
+ selectedPackage = _useModule.selectedPackage;
31921
31596
  useTools({
31922
31597
  packageId: packageId,
31923
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
31598
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
31924
31599
  });
31925
31600
  var applicationData = useMemo(function () {
31926
31601
  return {
@@ -31931,10 +31606,10 @@ var TableGroups = observer(function () {
31931
31606
  var apiInterface = useMemo(function () {
31932
31607
  return {
31933
31608
  read: apiConfig.enricherService + '/packages/${packageId}/groups',
31934
- create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/groups',
31935
- restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31936
- "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31937
- update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31609
+ create: apiConfig.enricherService + '/packages/${packageId}/groups',
31610
+ restore: apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31611
+ "delete": apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31612
+ update: apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31938
31613
  bulk: apiConfig.enricherService + '/packages/${packageId}/groups/bulk'
31939
31614
  };
31940
31615
  }, []);
@@ -31948,7 +31623,7 @@ var TableGroups = observer(function () {
31948
31623
  field: 'serieNos',
31949
31624
  headerName: 'backoffice.idmEnricher.groups.label.serieNos',
31950
31625
  cellDataType: 'lookup',
31951
- editable: !viewOnly,
31626
+ editable: true,
31952
31627
  customParams: {
31953
31628
  filterCellType: 'number',
31954
31629
  nameField: 'serieNosDisplayTexts',
@@ -31971,7 +31646,7 @@ var TableGroups = observer(function () {
31971
31646
  field: 'typeNos',
31972
31647
  headerName: 'backoffice.idmEnricher.groups.label.typeNos',
31973
31648
  cellDataType: 'lookup',
31974
- editable: !viewOnly,
31649
+ editable: true,
31975
31650
  customParams: {
31976
31651
  nameField: 'typeNosDisplayTexts',
31977
31652
  displayLabelTemplate: '${name} (${value})',
@@ -32026,7 +31701,7 @@ var TableGroups = observer(function () {
32026
31701
  cellDataType: 'objectId'
32027
31702
  }]
32028
31703
  };
32029
- }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
31704
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
32030
31705
  return /*#__PURE__*/jsxs(Fragment, {
32031
31706
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32032
31707
  title: /*#__PURE__*/jsxs("div", {
@@ -32048,28 +31723,22 @@ var TableGroups = observer(function () {
32048
31723
  });
32049
31724
 
32050
31725
  function PublishCustomCell (_ref) {
32051
- var _data$published, _data$removedOrganiza;
32052
31726
  var data = _ref.data,
32053
31727
  apiConfig = _ref.apiConfig,
32054
31728
  context = _ref.context,
32055
31729
  api = _ref.api,
32056
- modalState = _ref.modalState,
32057
- organizationId = _ref.organizationId;
31730
+ modalState = _ref.modalState;
32058
31731
  var _useTranslation = useTranslation(),
32059
31732
  t = _useTranslation.t;
32060
31733
  var _React$useState = React.useState(false),
32061
31734
  _React$useState2 = _slicedToArray(_React$useState, 2),
32062
31735
  loading = _React$useState2[0],
32063
31736
  isLoading = _React$useState2[1];
32064
- var publishedData = (_data$published = data.published) === null || _data$published === void 0 ? void 0 : _data$published[organizationId];
32065
- var isReleaseWithdrawn = !!((_data$removedOrganiza = data.removedOrganizationIds) !== null && _data$removedOrganiza !== void 0 && _data$removedOrganiza.find(function (id) {
32066
- return id === organizationId;
32067
- }));
32068
- var unpublishedChanges = hasUnpublishedChanges(publishedData === null || publishedData === void 0 ? void 0 : publishedData.publishDate, publishedData === null || publishedData === void 0 ? void 0 : publishedData.lastUpdatedDate);
32069
- var disabled = !(data !== null && data !== void 0 && data.basedCatalogId) && !(data !== null && data !== void 0 && data.basedPackageId) || !(data !== null && data !== void 0 && data.name);
31737
+ var unpublishedChanges = hasUnpublishedChanges(data.publishDate, data.lastUpdatedDate);
31738
+ var disabled = !data.basedCatalogId && !data.basedPackageId || !data.name;
32070
31739
  var _onChange = /*#__PURE__*/function () {
32071
31740
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(publish) {
32072
- var loadingTimeout, response, _errorText, errorText, json;
31741
+ var loadingTimeout, response;
32073
31742
  return _regeneratorRuntime.wrap(function _callee$(_context) {
32074
31743
  while (1) switch (_context.prev = _context.next) {
32075
31744
  case 0:
@@ -32084,7 +31753,7 @@ function PublishCustomCell (_ref) {
32084
31753
  }
32085
31754
  _context.next = 6;
32086
31755
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
32087
- update: apiConfig.enricherService + '/packages/${_id}/publish?organizationId=' + organizationId,
31756
+ update: apiConfig.enricherService + '/packages/${_id}/publish',
32088
31757
  usePut: true
32089
31758
  }, undefined, true);
32090
31759
  case 6:
@@ -32094,7 +31763,7 @@ function PublishCustomCell (_ref) {
32094
31763
  case 9:
32095
31764
  _context.next = 11;
32096
31765
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
32097
- update: apiConfig.enricherService + '/packages/${_id}/unpublish?organizationId=' + organizationId,
31766
+ update: apiConfig.enricherService + '/packages/${_id}/unpublish',
32098
31767
  usePut: true
32099
31768
  }, undefined, true);
32100
31769
  case 11:
@@ -32106,7 +31775,7 @@ function PublishCustomCell (_ref) {
32106
31775
  break;
32107
31776
  }
32108
31777
  modalState.showWarningModal(t("backoffice.idmEnricher.packages.label.warning.".concat(publish ? 'publishing' : 'unpublishing')));
32109
- _context.next = 34;
31778
+ _context.next = 22;
32110
31779
  break;
32111
31780
  case 17:
32112
31781
  if (!(response.status == 200)) {
@@ -32114,46 +31783,30 @@ function PublishCustomCell (_ref) {
32114
31783
  break;
32115
31784
  }
32116
31785
  modalState.closeModal();
32117
- _context.next = 34;
31786
+ _context.next = 22;
32118
31787
  break;
32119
31788
  case 21:
32120
- _context.prev = 21;
32121
- _context.next = 24;
32122
- return response.json();
32123
- case 24:
32124
- json = _context.sent;
32125
- errorText = json.error;
32126
- _context.next = 33;
32127
- break;
32128
- case 28:
32129
- _context.prev = 28;
32130
- _context.t0 = _context["catch"](21);
32131
- _context.next = 32;
32132
- return response.text();
32133
- case 32:
32134
- errorText = _context.sent;
32135
- case 33:
32136
- throw new Error((_errorText = errorText) !== null && _errorText !== void 0 ? _errorText : "Server error (".concat(response.status, ")"));
32137
- case 34:
31789
+ throw new Error("Server errror: ".concat(response.statusText, " (").concat(response.status, ")"));
31790
+ case 22:
32138
31791
  context === null || context === void 0 || context.reset({
32139
31792
  context: context,
32140
31793
  api: api
32141
31794
  });
32142
- _context.next = 40;
31795
+ _context.next = 28;
32143
31796
  break;
32144
- case 37:
32145
- _context.prev = 37;
32146
- _context.t1 = _context["catch"](2);
32147
- modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.t1 instanceof Error ? _context.t1.message : String(_context.t1)));
32148
- case 40:
32149
- _context.prev = 40;
31797
+ case 25:
31798
+ _context.prev = 25;
31799
+ _context.t0 = _context["catch"](2);
31800
+ modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.t0 instanceof Error ? _context.t0.message : String(_context.t0)));
31801
+ case 28:
31802
+ _context.prev = 28;
32150
31803
  isLoading(false);
32151
- return _context.finish(40);
32152
- case 43:
31804
+ return _context.finish(28);
31805
+ case 31:
32153
31806
  case "end":
32154
31807
  return _context.stop();
32155
31808
  }
32156
- }, _callee, null, [[2, 37, 40, 43], [21, 28]]);
31809
+ }, _callee, null, [[2, 25, 28, 31]]);
32157
31810
  }));
32158
31811
  return function onChange(_x) {
32159
31812
  return _ref2.apply(this, arguments);
@@ -32165,9 +31818,9 @@ function PublishCustomCell (_ref) {
32165
31818
  children: /*#__PURE__*/jsxs(Space$1, {
32166
31819
  size: "middle",
32167
31820
  children: [/*#__PURE__*/jsx(Tooltip, {
32168
- title: !!publishedData ? t('backoffice.idmEnricher.packages.label.unpublish') : t('backoffice.idmEnricher.packages.label.publish'),
31821
+ title: !!data.isPublished ? t('backoffice.idmEnricher.packages.label.unpublish') : t('backoffice.idmEnricher.packages.label.publish'),
32169
31822
  children: /*#__PURE__*/jsx(Checkbox$1, {
32170
- checked: !!publishedData,
31823
+ checked: !!data.isPublished,
32171
31824
  disabled: disabled,
32172
31825
  indeterminate: unpublishedChanges,
32173
31826
  onChange: function onChange(e) {
@@ -32183,12 +31836,6 @@ function PublishCustomCell (_ref) {
32183
31836
  return _onChange(true);
32184
31837
  }
32185
31838
  })
32186
- }), isReleaseWithdrawn && /*#__PURE__*/jsx(Tooltip, {
32187
- title: t('backoffice.idmEnricher.packages.label.releaseWithdrawn'),
32188
- children: /*#__PURE__*/jsx(Button$1, {
32189
- shape: "circle",
32190
- icon: /*#__PURE__*/jsx(WarningOutlined, {})
32191
- })
32192
31839
  })]
32193
31840
  })
32194
31841
  });
@@ -32510,7 +32157,6 @@ var useLoadingModal = function useLoadingModal() {
32510
32157
  };
32511
32158
 
32512
32159
  var TablePackages = observer(function () {
32513
- var _root$dataStore$curre;
32514
32160
  var root = useStore();
32515
32161
  var _useTranslation = useTranslation(),
32516
32162
  t = _useTranslation.t,
@@ -32521,20 +32167,23 @@ var TablePackages = observer(function () {
32521
32167
  closeModal = modalState.closeModal,
32522
32168
  contextHolder = modalState.contextHolder;
32523
32169
  var _useEnricherContext = useEnricherContext([]),
32524
- setSelectedPackage = _useEnricherContext.setSelectedPackage,
32525
- selectedPackage = _useEnricherContext.selectedPackage;
32526
- useTools({
32527
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
32528
- });
32170
+ setSelectedPackage = _useEnricherContext.setSelectedPackage;
32171
+ useTools({});
32529
32172
  var organizationId = root.dataStore.organizationId;
32530
- var organizationDisplayText = (_root$dataStore$curre = root.dataStore.currentOrganization) === null || _root$dataStore$curre === void 0 ? void 0 : _root$dataStore$curre.displayName;
32531
32173
  var apiConfig = root.configurationStore.apiConfig;
32532
32174
  var applicationData = useMemo(function () {
32533
32175
  return {
32534
- organizationId: organizationId,
32535
- organizationDisplayText: organizationDisplayText
32176
+ organizationId: organizationId
32536
32177
  };
32537
- }, [organizationId, organizationDisplayText]);
32178
+ }, [organizationId]);
32179
+ var preFilter = useMemo(function () {
32180
+ return {
32181
+ colId: 'organizationId',
32182
+ filterType: 'text',
32183
+ type: 'equals',
32184
+ filter: organizationId
32185
+ };
32186
+ }, [organizationId]);
32538
32187
  var rowActions = useMemo(function () {
32539
32188
  return [{
32540
32189
  icon: /*#__PURE__*/jsx(EditOutlined, {}),
@@ -32549,9 +32198,8 @@ var TablePackages = observer(function () {
32549
32198
  }, {
32550
32199
  icon: /*#__PURE__*/jsx(DownloadOutlined, {}),
32551
32200
  disabled: function disabled(_ref3) {
32552
- var _selectedNodes$0$data;
32553
32201
  var selectedNodes = _ref3.selectedNodes;
32554
- return !((_selectedNodes$0$data = selectedNodes[0].data.published) !== null && _selectedNodes$0$data !== void 0 && _selectedNodes$0$data[organizationId]);
32202
+ return !selectedNodes[0].data.isPublished;
32555
32203
  },
32556
32204
  action: function () {
32557
32205
  var _action = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref4) {
@@ -32595,18 +32243,14 @@ var TablePackages = observer(function () {
32595
32243
  }, [apiConfig.enricherService, root.dataStore.jwt]);
32596
32244
  var apiInterface = useMemo(function () {
32597
32245
  return {
32598
- read: apiConfig.enricherService + '/packages?organizationId=' + organizationId,
32246
+ read: apiConfig.enricherService + '/packages?organizationId=${organizationId}',
32599
32247
  create: apiConfig.enricherService + '/packages',
32600
32248
  restore: apiConfig.enricherService + '/packages/${_id}',
32601
32249
  "delete": apiConfig.enricherService + '/packages/${_id}',
32602
32250
  update: apiConfig.enricherService + '/packages/${_id}',
32603
- bulk: apiConfig.enricherService + '/packages/bulk?organizationId=' + organizationId
32251
+ bulk: apiConfig.enricherService + '/packages/bulk?organizationId=${organizationId}'
32604
32252
  };
32605
- }, [apiConfig.enricherService, organizationId]);
32606
- var isEditable = useCallback(function (params) {
32607
- var _params$data, _params$data2;
32608
- return ((_params$data = params.data) === null || _params$data === void 0 ? void 0 : _params$data.organizationId) === organizationId || !((_params$data2 = params.data) !== null && _params$data2 !== void 0 && _params$data2._id);
32609
- }, [organizationId]);
32253
+ }, [apiConfig.enricherService]);
32610
32254
  var configuration = useMemo(function () {
32611
32255
  return {
32612
32256
  type: 'dotnetSSM',
@@ -32614,15 +32258,15 @@ var TablePackages = observer(function () {
32614
32258
  dateFormat: 'DD.MM.YYYY, HH:mm:ss',
32615
32259
  floatingFilter: true,
32616
32260
  colDef: [{
32617
- field: "published.".concat(organizationId),
32261
+ field: 'isPublished',
32618
32262
  //the cell should refresh on changes of this fields
32619
32263
  valueGetter: function valueGetter(_ref5) {
32620
- var _data$published, _data$published2;
32621
32264
  var data = _ref5.data;
32622
32265
  return {
32266
+ isPublished: data === null || data === void 0 ? void 0 : data.isPublished,
32623
32267
  name: data === null || data === void 0 ? void 0 : data.name,
32624
- basedCatalogId: data === null || data === void 0 || (_data$published = data.published) === null || _data$published === void 0 || (_data$published = _data$published[organizationId]) === null || _data$published === void 0 ? void 0 : _data$published.basedCatalogId,
32625
- basedPackageId: data === null || data === void 0 || (_data$published2 = data.published) === null || _data$published2 === void 0 || (_data$published2 = _data$published2[organizationId]) === null || _data$published2 === void 0 ? void 0 : _data$published2.basedPackageId
32268
+ basedCatalogId: data === null || data === void 0 ? void 0 : data.basedCatalogId,
32269
+ basedPackageId: data === null || data === void 0 ? void 0 : data.basedPackageId
32626
32270
  };
32627
32271
  },
32628
32272
  headerName: 'backoffice.idmEnricher.packages.label.published',
@@ -32633,22 +32277,19 @@ var TablePackages = observer(function () {
32633
32277
  lockPinned: true,
32634
32278
  cellRendererParams: {
32635
32279
  apiConfig: apiConfig,
32636
- modalState: modalState,
32637
- organizationId: organizationId
32638
- },
32639
- isDictionary: true
32280
+ modalState: modalState
32281
+ }
32640
32282
  }, {
32641
32283
  headerName: 'backoffice.idmEnricher.packages.label.name',
32642
32284
  field: 'name',
32643
- required: true,
32644
- editable: isEditable
32285
+ required: true
32645
32286
  }, {
32646
32287
  headerName: 'backoffice.idmEnricher.packages.label.catalogId',
32647
32288
  field: 'basedCatalogId',
32648
32289
  cellDataType: 'lookup',
32649
32290
  editable: function editable(_ref6) {
32650
32291
  var data = _ref6.data;
32651
- return isEditable(data) && !data.basedCatalogId && !data.basedPackageId;
32292
+ return !data.basedCatalogId && !data.basedPackageId;
32652
32293
  },
32653
32294
  customParams: {
32654
32295
  filterCellType: 'objectId',
@@ -32676,7 +32317,7 @@ var TablePackages = observer(function () {
32676
32317
  cellDataType: 'lookup',
32677
32318
  editable: function editable(_ref7) {
32678
32319
  var data = _ref7.data;
32679
- return isEditable(data) && !data.basedCatalogId && !data.basedPackageId;
32320
+ return !data.basedCatalogId && !data.basedPackageId;
32680
32321
  },
32681
32322
  customParams: {
32682
32323
  filterCellType: 'objectId',
@@ -32705,43 +32346,13 @@ var TablePackages = observer(function () {
32705
32346
  field: 'isoLanguageIds',
32706
32347
  headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
32707
32348
  cellDataType: 'enum',
32708
- editable: isEditable,
32349
+ editable: true,
32709
32350
  required: true,
32710
32351
  customParams: {
32711
32352
  enumData: getLanguageKey(t),
32712
32353
  multiple: true
32713
32354
  },
32714
32355
  defaultValue: ['DE']
32715
- }, {
32716
- field: 'allowedOrganizationIds',
32717
- headerName: 'backoffice.idmEnricher.packages.label.allowedOrganizationIds',
32718
- cellDataType: 'lookup',
32719
- editable: isEditable,
32720
- cellRendererSelector: function cellRendererSelector(params) {
32721
- var _params$data3, _params$data4;
32722
- if (((_params$data3 = params.data) === null || _params$data3 === void 0 ? void 0 : _params$data3.organizationId) === organizationId || !((_params$data4 = params.data) !== null && _params$data4 !== void 0 && _params$data4._id)) {
32723
- return undefined;
32724
- }
32725
- return {
32726
- component: function component() {
32727
- var _params$data$organiza, _params$data5, _params$data6;
32728
- return /*#__PURE__*/jsxs("p", {
32729
- children: ["Freigegeben durch ", (_params$data$organiza = (_params$data5 = params.data) === null || _params$data5 === void 0 ? void 0 : _params$data5.organizationDisplayText) !== null && _params$data$organiza !== void 0 ? _params$data$organiza : (_params$data6 = params.data) === null || _params$data6 === void 0 ? void 0 : _params$data6.organizationId]
32730
- });
32731
- }
32732
- };
32733
- },
32734
- customParams: {
32735
- nameField: 'allowedOrganizationsDisplayTexts',
32736
- apiInterface: {
32737
- read: apiConfig.authService + "/clientrelationtargets/organization/".concat(organizationId, "/organizations")
32738
- },
32739
- lookupValue: 'displayName',
32740
- lookupKey: '_id',
32741
- serverType: 'nodejs',
32742
- multiple: true
32743
- },
32744
- additionalFields: ['allowedOrganizationsDisplayTexts']
32745
32356
  }, {
32746
32357
  headerName: 'backoffice.idmEnricher.packages.label.isApi2',
32747
32358
  field: 'isApi',
@@ -32759,10 +32370,9 @@ var TablePackages = observer(function () {
32759
32370
  editable: false
32760
32371
  }, {
32761
32372
  headerName: 'backoffice.idmEnricher.packages.label.publishDate',
32762
- field: "published.".concat(organizationId, ".publishDate"),
32373
+ field: 'publishDate',
32763
32374
  cellDataType: 'dateString',
32764
- editable: false,
32765
- isDictionary: true
32375
+ editable: false
32766
32376
  }, {
32767
32377
  headerName: 'backoffice.idmEnricher.general.label.createdBy',
32768
32378
  field: 'createdByDisplayText',
@@ -32773,9 +32383,8 @@ var TablePackages = observer(function () {
32773
32383
  editable: false
32774
32384
  }, {
32775
32385
  headerName: 'backoffice.idmEnricher.packages.label.publishedBy',
32776
- field: "published.".concat(organizationId, ".publishedByDisplayText"),
32777
- editable: false,
32778
- isDictionary: true
32386
+ field: 'publishedByDisplayText',
32387
+ editable: false
32779
32388
  }, {
32780
32389
  headerName: 'backoffice.idmEnricher.general.label._id',
32781
32390
  field: '_id',
@@ -32788,26 +32397,9 @@ var TablePackages = observer(function () {
32788
32397
  lockVisible: true,
32789
32398
  suppressColumnsToolPanel: true,
32790
32399
  defaultValue: '${organizationId}'
32791
- }, {
32792
- field: 'organizationDisplayText',
32793
- editable: false,
32794
- hide: true,
32795
- lockVisible: true,
32796
- suppressColumnsToolPanel: true,
32797
- defaultValue: '${organizationDisplayText}'
32798
- }, {
32799
- field: 'removedOrganizationIds',
32800
- editable: false,
32801
- hide: true,
32802
- lockVisible: true,
32803
- suppressColumnsToolPanel: true
32804
32400
  }]
32805
32401
  };
32806
- }, [apiInterface, apiConfig, i18n.language, organizationId]);
32807
- var isRowEditable = useCallback(function (node) {
32808
- var _node$data, _node$data2;
32809
- return ((_node$data = node.data) === null || _node$data === void 0 ? void 0 : _node$data.organizationId) === organizationId || !((_node$data2 = node.data) !== null && _node$data2 !== void 0 && _node$data2._id);
32810
- }, [organizationId]);
32402
+ }, [apiInterface, apiConfig, i18n.language]);
32811
32403
  return /*#__PURE__*/jsxs(Fragment, {
32812
32404
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32813
32405
  title: t('backoffice.menu.items.label.IDMEnricherTablePackages')
@@ -32815,8 +32407,8 @@ var TablePackages = observer(function () {
32815
32407
  gridId: 'packages-grid',
32816
32408
  applicationData: applicationData,
32817
32409
  rowActions: rowActions,
32818
- configuration: configuration,
32819
- isRowEditable: isRowEditable
32410
+ preFilter: preFilter,
32411
+ configuration: configuration
32820
32412
  }), contextHolder]
32821
32413
  });
32822
32414
  });
@@ -32828,11 +32420,10 @@ var TableProperties = observer(function () {
32828
32420
  packageId = _useModule.packageId,
32829
32421
  organizationId = _useModule.organizationId,
32830
32422
  apiConfig = _useModule.apiConfig,
32831
- selectedPackage = _useModule.selectedPackage,
32832
- viewOnly = _useModule.viewOnly;
32423
+ selectedPackage = _useModule.selectedPackage;
32833
32424
  useTools({
32834
32425
  packageId: packageId,
32835
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
32426
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
32836
32427
  });
32837
32428
  var applicationData = useMemo(function () {
32838
32429
  return {
@@ -32843,10 +32434,10 @@ var TableProperties = observer(function () {
32843
32434
  var apiInterface = useMemo(function () {
32844
32435
  return {
32845
32436
  read: apiConfig.enricherService + '/packages/${packageId}/properties',
32846
- create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/properties',
32847
- restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32848
- "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32849
- update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32437
+ create: apiConfig.enricherService + '/packages/${packageId}/properties',
32438
+ restore: apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32439
+ "delete": apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32440
+ update: apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32850
32441
  bulk: apiConfig.enricherService + '/packages/${packageId}/properties/bulk'
32851
32442
  };
32852
32443
  }, []);
@@ -32864,7 +32455,7 @@ var TableProperties = observer(function () {
32864
32455
  field: 'featureNos',
32865
32456
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
32866
32457
  cellDataType: 'lookup',
32867
- editable: !viewOnly,
32458
+ editable: true,
32868
32459
  customParams: {
32869
32460
  nameField: 'featureNosDisplayTexts',
32870
32461
  displayLabelTemplate: '${name} (${value})',
@@ -32882,7 +32473,7 @@ var TableProperties = observer(function () {
32882
32473
  field: 'optionKeys',
32883
32474
  headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
32884
32475
  cellDataType: 'lookup',
32885
- editable: !viewOnly,
32476
+ editable: true,
32886
32477
  customParams: {
32887
32478
  nameField: 'optionKeysDisplayTexts',
32888
32479
  displayLabelTemplate: '${name} (${value})',
@@ -32906,7 +32497,7 @@ var TableProperties = observer(function () {
32906
32497
  field: 'serieNos',
32907
32498
  headerName: 'backoffice.idmEnricher.renaming.label.serieNos',
32908
32499
  cellDataType: 'lookup',
32909
- editable: !viewOnly,
32500
+ editable: true,
32910
32501
  customParams: {
32911
32502
  filterCellType: 'number',
32912
32503
  nameField: 'serieNosDisplayTexts',
@@ -32929,7 +32520,7 @@ var TableProperties = observer(function () {
32929
32520
  field: 'typeNos',
32930
32521
  headerName: 'backoffice.idmEnricher.properties.label.typeNos',
32931
32522
  cellDataType: 'lookup',
32932
- editable: !viewOnly,
32523
+ editable: true,
32933
32524
  customParams: {
32934
32525
  nameField: 'typeNosDisplayTexts',
32935
32526
  displayLabelTemplate: '${name} (${value})',
@@ -32984,7 +32575,7 @@ var TableProperties = observer(function () {
32984
32575
  cellDataType: 'objectId'
32985
32576
  }]
32986
32577
  };
32987
- }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
32578
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
32988
32579
  return /*#__PURE__*/jsxs(Fragment, {
32989
32580
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32990
32581
  title: /*#__PURE__*/jsxs("div", {
@@ -33005,7 +32596,7 @@ var TableProperties = observer(function () {
33005
32596
  });
33006
32597
  });
33007
32598
 
33008
- var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
32599
+ var getConfig$6 = function getConfig(isoLanguageIds, t) {
33009
32600
  return {
33010
32601
  colDef: [{
33011
32602
  field: 'translatedName',
@@ -33015,8 +32606,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33015
32606
  placeHolderField: 'origName',
33016
32607
  combinedField: 'name'
33017
32608
  },
33018
- additionalFields: ['origName', 'name'],
33019
- editable: !viewOnly
32609
+ additionalFields: ['origName', 'name']
33020
32610
  }, {
33021
32611
  field: 'translatedComment',
33022
32612
  cellDataType: 'withPlaceholder',
@@ -33025,15 +32615,14 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33025
32615
  placeHolderField: 'origComment',
33026
32616
  combinedField: 'comment'
33027
32617
  },
33028
- additionalFields: ['origComment', 'comment'],
33029
- editable: !viewOnly
32618
+ additionalFields: ['origComment', 'comment']
33030
32619
  }, createTranslatedColumnConfig('translatedCatalogName', 'backoffice.idmEnricher.renaming.label.catalogName', isoLanguageIds, false, 'withPlaceholder', {
33031
32620
  placeHolderField: 'origCatalogName',
33032
32621
  combinedField: 'catalogName'
33033
- }, ['origCatalogName', 'catalogName'], !viewOnly), createTranslatedColumnConfig('translatedCatalogInfo', 'backoffice.idmEnricher.renaming.label.catalogInfo', isoLanguageIds, false, 'withPlaceholder', {
32622
+ }, ['origCatalogName', 'catalogName']), createTranslatedColumnConfig('translatedCatalogInfo', 'backoffice.idmEnricher.renaming.label.catalogInfo', isoLanguageIds, false, 'withPlaceholder', {
33034
32623
  placeHolderField: 'origCatalogInfo',
33035
32624
  combinedField: 'catalogInfo'
33036
- }, ['origCatalogInfo', 'catalogInfo'], !viewOnly), {
32625
+ }, ['origCatalogInfo', 'catalogInfo']), {
33037
32626
  headerName: 'backoffice.idmEnricher.renaming.label.contactperson',
33038
32627
  field: 'translatedContactPersonNo1',
33039
32628
  cellDataType: 'withPlaceholder',
@@ -33041,8 +32630,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33041
32630
  placeHolderField: 'origContactPersonNo1',
33042
32631
  combinedField: 'contactPersonNo1'
33043
32632
  },
33044
- additionalFields: ['origContactPersonNo1', 'contactPersonNo1'],
33045
- editable: !viewOnly
32633
+ additionalFields: ['origContactPersonNo1', 'contactPersonNo1']
33046
32634
  }, {
33047
32635
  headerName: 'backoffice.idmEnricher.renaming.label.contactrole',
33048
32636
  field: 'translatedContactRole1',
@@ -33051,8 +32639,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33051
32639
  placeHolderField: 'origContactRole1',
33052
32640
  combinedField: 'contactRole1'
33053
32641
  },
33054
- additionalFields: ['origContactRole1', 'contactRole1'],
33055
- editable: !viewOnly
32642
+ additionalFields: ['origContactRole1', 'contactRole1']
33056
32643
  }, {
33057
32644
  headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname',
33058
32645
  field: 'translatedContactName1',
@@ -33061,8 +32648,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33061
32648
  placeHolderField: 'origContactName1',
33062
32649
  combinedField: 'contactName1'
33063
32650
  },
33064
- additionalFields: ['origContactName1', 'contactName1'],
33065
- editable: !viewOnly
32651
+ additionalFields: ['origContactName1', 'contactName1']
33066
32652
  }, {
33067
32653
  headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname',
33068
32654
  field: 'translatedFirstName1',
@@ -33071,8 +32657,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33071
32657
  placeHolderField: 'origFirstName1',
33072
32658
  combinedField: 'firstName1'
33073
32659
  },
33074
- additionalFields: ['origFirstName1', 'firstName1'],
33075
- editable: !viewOnly
32660
+ additionalFields: ['origFirstName1', 'firstName1']
33076
32661
  }, {
33077
32662
  headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address',
33078
32663
  field: 'translatedFormOfAddress1',
@@ -33084,8 +32669,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33084
32669
  enumData: getFormOfAddressKey(t),
33085
32670
  displayLabelTemplate: '${name} (${value})'
33086
32671
  },
33087
- additionalFields: ['origFormOfAddress1', 'formOfAddress1'],
33088
- editable: !viewOnly
32672
+ additionalFields: ['origFormOfAddress1', 'formOfAddress1']
33089
32673
  }, {
33090
32674
  headerName: 'backoffice.idmEnricher.renaming.label.translated.department',
33091
32675
  field: 'translatedDepartment1',
@@ -33094,8 +32678,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33094
32678
  placeHolderField: 'origDepartment1',
33095
32679
  combinedField: 'department1'
33096
32680
  },
33097
- additionalFields: ['origDepartment1', 'department1'],
33098
- editable: !viewOnly
32681
+ additionalFields: ['origDepartment1', 'department1']
33099
32682
  }, {
33100
32683
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone',
33101
32684
  field: 'translatedTelephone1',
@@ -33104,8 +32687,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33104
32687
  placeHolderField: 'origTelephone1',
33105
32688
  combinedField: 'telephone1'
33106
32689
  },
33107
- additionalFields: ['origTelephone1', 'telephone1'],
33108
- editable: !viewOnly
32690
+ additionalFields: ['origTelephone1', 'telephone1']
33109
32691
  }, {
33110
32692
  headerName: 'backoffice.idmEnricher.renaming.label.translated.fax',
33111
32693
  field: 'translatedFax1',
@@ -33114,8 +32696,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33114
32696
  placeHolderField: 'origFax1',
33115
32697
  combinedField: 'fax1'
33116
32698
  },
33117
- additionalFields: ['origFax1', 'fax1'],
33118
- editable: !viewOnly
32699
+ additionalFields: ['origFax1', 'fax1']
33119
32700
  }, {
33120
32701
  field: 'translatedEmail1',
33121
32702
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
@@ -33124,8 +32705,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33124
32705
  placeHolderField: 'origEmail1',
33125
32706
  combinedField: 'email1'
33126
32707
  },
33127
- additionalFields: ['origEmail1', 'email1'],
33128
- editable: !viewOnly
32708
+ additionalFields: ['origEmail1', 'email1']
33129
32709
  }, {
33130
32710
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
33131
32711
  field: 'translatedStreet1',
@@ -33134,8 +32714,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33134
32714
  placeHolderField: 'origStreet1',
33135
32715
  combinedField: 'street1'
33136
32716
  },
33137
- additionalFields: ['origStreet1', 'street1'],
33138
- editable: !viewOnly
32717
+ additionalFields: ['origStreet1', 'street1']
33139
32718
  }, {
33140
32719
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
33141
32720
  field: 'translatedZipCodeStreet1',
@@ -33144,8 +32723,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33144
32723
  placeHolderField: 'origZipCodeStreet1',
33145
32724
  combinedField: 'zipCodeStreet1'
33146
32725
  },
33147
- additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1'],
33148
- editable: !viewOnly
32726
+ additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1']
33149
32727
  }, {
33150
32728
  field: 'translatedCity1',
33151
32729
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
@@ -33154,8 +32732,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33154
32732
  placeHolderField: 'origCity1',
33155
32733
  combinedField: 'city1'
33156
32734
  },
33157
- additionalFields: ['origCity1', 'city1'],
33158
- editable: !viewOnly
32735
+ additionalFields: ['origCity1', 'city1']
33159
32736
  }, {
33160
32737
  field: 'translatedIsoCountryId1',
33161
32738
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
@@ -33166,8 +32743,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33166
32743
  combinedField: 'isoCountryId1',
33167
32744
  enumData: getCountryKey(t)
33168
32745
  },
33169
- additionalFields: ['origIsoCountryId1', 'isoCountryId1'],
33170
- editable: !viewOnly
32746
+ additionalFields: ['origIsoCountryId1', 'isoCountryId1']
33171
32747
  }, {
33172
32748
  field: 'translatedContactPersonNo2',
33173
32749
  headerName: 'backoffice.idmEnricher.renaming.label.contactperson2',
@@ -33176,8 +32752,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33176
32752
  placeHolderField: 'origContactPersonNo2',
33177
32753
  combinedField: 'contactPersonNo2'
33178
32754
  },
33179
- additionalFields: ['origContactPersonNo2', 'contactPersonNo2'],
33180
- editable: !viewOnly
32755
+ additionalFields: ['origContactPersonNo2', 'contactPersonNo2']
33181
32756
  }, {
33182
32757
  headerName: 'backoffice.idmEnricher.renaming.label.contactrole2',
33183
32758
  field: 'translatedContactRole2',
@@ -33186,8 +32761,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33186
32761
  placeHolderField: 'origContactRole2',
33187
32762
  combinedField: 'contactRole2'
33188
32763
  },
33189
- additionalFields: ['origContactRole2', 'contactRole2'],
33190
- editable: !viewOnly
32764
+ additionalFields: ['origContactRole2', 'contactRole2']
33191
32765
  }, {
33192
32766
  headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname2',
33193
32767
  field: 'translatedContactName2',
@@ -33196,8 +32770,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33196
32770
  placeHolderField: 'origContactName2',
33197
32771
  combinedField: 'contactName2'
33198
32772
  },
33199
- additionalFields: ['origContactName2', 'contactName2'],
33200
- editable: !viewOnly
32773
+ additionalFields: ['origContactName2', 'contactName2']
33201
32774
  }, {
33202
32775
  headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname2',
33203
32776
  field: 'translatedFirstName2',
@@ -33206,8 +32779,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33206
32779
  placeHolderField: 'origFirstName2',
33207
32780
  combinedField: 'firstName2'
33208
32781
  },
33209
- additionalFields: ['origFirstName2', 'firstName2'],
33210
- editable: !viewOnly
32782
+ additionalFields: ['origFirstName2', 'firstName2']
33211
32783
  }, {
33212
32784
  headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address2',
33213
32785
  field: 'translatedFormOfAddress2',
@@ -33219,8 +32791,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33219
32791
  enumData: getFormOfAddressKey(t),
33220
32792
  displayLabelTemplate: '${name} (${value})'
33221
32793
  },
33222
- additionalFields: ['origFormOfAddress2', 'formOfAddress2'],
33223
- editable: !viewOnly
32794
+ additionalFields: ['origFormOfAddress2', 'formOfAddress2']
33224
32795
  }, {
33225
32796
  headerName: 'backoffice.idmEnricher.renaming.label.translated.department2',
33226
32797
  field: 'translatedDepartment2',
@@ -33229,8 +32800,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33229
32800
  placeHolderField: 'origDepartment2',
33230
32801
  combinedField: 'department2'
33231
32802
  },
33232
- additionalFields: ['origDepartment2', 'department2'],
33233
- editable: !viewOnly
32803
+ additionalFields: ['origDepartment2', 'department2']
33234
32804
  }, {
33235
32805
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone2',
33236
32806
  field: 'translatedTelephone2',
@@ -33239,8 +32809,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33239
32809
  placeHolderField: 'origTelephone2',
33240
32810
  combinedField: 'telephone2'
33241
32811
  },
33242
- additionalFields: ['origTelephone2', 'telephone2'],
33243
- editable: !viewOnly
32812
+ additionalFields: ['origTelephone2', 'telephone2']
33244
32813
  }, {
33245
32814
  headerName: 'backoffice.idmEnricher.renaming.label.translated.fax2',
33246
32815
  field: 'translatedFax2',
@@ -33249,8 +32818,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33249
32818
  placeHolderField: 'origFax2',
33250
32819
  combinedField: 'fax2'
33251
32820
  },
33252
- additionalFields: ['origFax2', 'fax2'],
33253
- editable: !viewOnly
32821
+ additionalFields: ['origFax2', 'fax2']
33254
32822
  }, {
33255
32823
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email2',
33256
32824
  field: 'translatedEmail2',
@@ -33259,8 +32827,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33259
32827
  placeHolderField: 'origEmail2',
33260
32828
  combinedField: 'email2'
33261
32829
  },
33262
- additionalFields: ['origEmail2', 'email2'],
33263
- editable: !viewOnly
32830
+ additionalFields: ['origEmail2', 'email2']
33264
32831
  }, {
33265
32832
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street2',
33266
32833
  field: 'translatedStreet2',
@@ -33269,8 +32836,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33269
32836
  placeHolderField: 'origStreet2',
33270
32837
  combinedField: 'street2'
33271
32838
  },
33272
- additionalFields: ['origStreet2', 'street2'],
33273
- editable: !viewOnly
32839
+ additionalFields: ['origStreet2', 'street2']
33274
32840
  }, {
33275
32841
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip2',
33276
32842
  field: 'translatedZipCodeStreet2',
@@ -33279,8 +32845,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33279
32845
  placeHolderField: 'origZipCodeStreet2',
33280
32846
  combinedField: 'zipCodeStreet2'
33281
32847
  },
33282
- additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2'],
33283
- editable: !viewOnly
32848
+ additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2']
33284
32849
  }, {
33285
32850
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city2',
33286
32851
  field: 'translatedCity2',
@@ -33289,11 +32854,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33289
32854
  placeHolderField: 'origCity2',
33290
32855
  combinedField: 'city2'
33291
32856
  },
33292
- additionalFields: ['origCity2', 'city2'],
33293
- editable: !viewOnly
32857
+ additionalFields: ['origCity2', 'city2']
33294
32858
  }, {
33295
32859
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country2',
33296
32860
  field: 'translatedIsoCountryId2',
32861
+ editable: true,
33297
32862
  cellDataType: 'withPlaceholder',
33298
32863
  type: ['withPlaceholderEnum'],
33299
32864
  customParams: {
@@ -33301,8 +32866,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33301
32866
  combinedField: 'isoCountryId2',
33302
32867
  enumData: getCountryKey(t)
33303
32868
  },
33304
- additionalFields: ['origIsoCountryId2', 'isoCountryId2'],
33305
- editable: !viewOnly
32869
+ additionalFields: ['origIsoCountryId2', 'isoCountryId2']
33306
32870
  }, {
33307
32871
  headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename',
33308
32872
  field: 'translatedManufactureName1',
@@ -33311,8 +32875,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33311
32875
  placeHolderField: 'origManufactureName1',
33312
32876
  combinedField: 'manufactureName1'
33313
32877
  },
33314
- additionalFields: ['origManufactureName1', 'manufactureName1'],
33315
- editable: !viewOnly
32878
+ additionalFields: ['origManufactureName1', 'manufactureName1']
33316
32879
  }, {
33317
32880
  headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename2',
33318
32881
  field: 'translatedManufactureName2',
@@ -33321,8 +32884,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33321
32884
  placeHolderField: 'origManufactureName2',
33322
32885
  combinedField: 'manufactureName2'
33323
32886
  },
33324
- additionalFields: ['origManufactureName2', 'manufactureName2'],
33325
- editable: !viewOnly
32887
+ additionalFields: ['origManufactureName2', 'manufactureName2']
33326
32888
  }, {
33327
32889
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
33328
32890
  field: 'translatedEmail',
@@ -33331,8 +32893,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33331
32893
  placeHolderField: 'origEmail',
33332
32894
  combinedField: 'email'
33333
32895
  },
33334
- additionalFields: ['origEmail', 'email'],
33335
- editable: !viewOnly
32896
+ additionalFields: ['origEmail', 'email']
33336
32897
  }, {
33337
32898
  headerName: 'backoffice.idmEnricher.renaming.label.translated.internetaddress',
33338
32899
  field: 'translatedInternetAddress',
@@ -33341,8 +32902,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33341
32902
  placeHolderField: 'origInternetAddress',
33342
32903
  combinedField: 'internetAddress'
33343
32904
  },
33344
- additionalFields: ['origInternetAddress', 'internetAddress'],
33345
- editable: !viewOnly
32905
+ additionalFields: ['origInternetAddress', 'internetAddress']
33346
32906
  }, {
33347
32907
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
33348
32908
  field: 'translatedStreet',
@@ -33351,8 +32911,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33351
32911
  placeHolderField: 'origStreet',
33352
32912
  combinedField: 'street'
33353
32913
  },
33354
- additionalFields: ['origStreet', 'street'],
33355
- editable: !viewOnly
32914
+ additionalFields: ['origStreet', 'street']
33356
32915
  }, {
33357
32916
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
33358
32917
  field: 'translatedZipCodeStreet',
@@ -33361,8 +32920,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33361
32920
  placeHolderField: 'origZipCodeStreet',
33362
32921
  combinedField: 'zipCodeStreet'
33363
32922
  },
33364
- additionalFields: ['origZipCodeStreet', 'zipCodeStreet'],
33365
- editable: !viewOnly
32923
+ additionalFields: ['origZipCodeStreet', 'zipCodeStreet']
33366
32924
  }, {
33367
32925
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
33368
32926
  field: 'translatedCity',
@@ -33371,11 +32929,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33371
32929
  placeHolderField: 'origCity',
33372
32930
  combinedField: 'city'
33373
32931
  },
33374
- additionalFields: ['origCity', 'city'],
33375
- editable: !viewOnly
32932
+ additionalFields: ['origCity', 'city']
33376
32933
  }, {
33377
32934
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
33378
32935
  field: 'translatedContactSupplierIsoCountryId',
32936
+ editable: true,
33379
32937
  cellDataType: 'withPlaceholder',
33380
32938
  type: ['withPlaceholderEnum'],
33381
32939
  customParams: {
@@ -33383,8 +32941,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33383
32941
  combinedField: 'contactSupplierIsoCountryId',
33384
32942
  enumData: getCountryKey(t)
33385
32943
  },
33386
- additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId'],
33387
- editable: !viewOnly
32944
+ additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId']
33388
32945
  }, {
33389
32946
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zippostbox',
33390
32947
  field: 'translatedZipCodePostBox',
@@ -33393,8 +32950,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33393
32950
  placeHolderField: 'origZipCodePostBox',
33394
32951
  combinedField: 'zipCodePostBox'
33395
32952
  },
33396
- additionalFields: ['origZipCodePostBox', 'zipCodePostBox'],
33397
- editable: !viewOnly
32953
+ additionalFields: ['origZipCodePostBox', 'zipCodePostBox']
33398
32954
  }, {
33399
32955
  headerName: 'backoffice.idmEnricher.renaming.label.translated.postbox',
33400
32956
  field: 'translatedPostBox',
@@ -33403,8 +32959,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33403
32959
  placeHolderField: 'origPostBox',
33404
32960
  combinedField: 'postBox'
33405
32961
  },
33406
- additionalFields: ['origPostBox', 'postBox'],
33407
- editable: !viewOnly
32962
+ additionalFields: ['origPostBox', 'postBox']
33408
32963
  }, {
33409
32964
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephoneswitchboard',
33410
32965
  field: 'translatedTelephoneSwitchboard',
@@ -33413,8 +32968,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33413
32968
  placeHolderField: 'origTelephoneSwitchboard',
33414
32969
  combinedField: 'telephoneSwitchboard'
33415
32970
  },
33416
- additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard'],
33417
- editable: !viewOnly
32971
+ additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard']
33418
32972
  }, {
33419
32973
  headerName: 'backoffice.idmEnricher.renaming.label.translated.faxswitchboard',
33420
32974
  field: 'translatedFaxSwitchboard',
@@ -33423,13 +32977,12 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33423
32977
  placeHolderField: 'origFaxSwitchboard',
33424
32978
  combinedField: 'faxSwitchboard'
33425
32979
  },
33426
- additionalFields: ['origFaxSwitchboard', 'faxSwitchboard'],
33427
- editable: !viewOnly
32980
+ additionalFields: ['origFaxSwitchboard', 'faxSwitchboard']
33428
32981
  }]
33429
32982
  };
33430
32983
  };
33431
32984
 
33432
- var getConfig$5 = function getConfig(isoLanguageIds, t, viewOnly) {
32985
+ var getConfig$5 = function getConfig(isoLanguageIds) {
33433
32986
  return {
33434
32987
  colDef: [{
33435
32988
  headerName: 'backoffice.idmEnricher.renaming.label.detailinfo_nr',
@@ -33438,17 +32991,17 @@ var getConfig$5 = function getConfig(isoLanguageIds, t, viewOnly) {
33438
32991
  }, createTranslatedColumnConfig('translatedExternalName', 'backoffice.idmEnricher.renaming.label.externalName', isoLanguageIds, false, 'withPlaceholder', {
33439
32992
  placeHolderField: 'origExternalName',
33440
32993
  combinedField: 'externalName'
33441
- }, ['origExternalName', 'externalName'], !viewOnly), createTranslatedColumnConfig('translatedInternalName', 'backoffice.idmEnricher.renaming.label.internalName', isoLanguageIds, false, 'withPlaceholder', {
32994
+ }, ['origExternalName', 'externalName']), createTranslatedColumnConfig('translatedInternalName', 'backoffice.idmEnricher.renaming.label.internalName', isoLanguageIds, false, 'withPlaceholder', {
33442
32995
  placeHolderField: 'origInternalName',
33443
32996
  combinedField: 'internalName'
33444
- }, ['origInternalName', 'internalName'], !viewOnly), createTranslatedColumnConfig('translatedToolTip', 'backoffice.idmEnricher.renaming.label.tooltip', isoLanguageIds, false, 'withPlaceholder', {
32997
+ }, ['origInternalName', 'internalName']), createTranslatedColumnConfig('translatedToolTip', 'backoffice.idmEnricher.renaming.label.tooltip', isoLanguageIds, false, 'withPlaceholder', {
33445
32998
  placeHolderField: 'origToolTip',
33446
32999
  combinedField: 'toolTip'
33447
- }, ['origToolTip', 'toolTip'], !viewOnly)]
33000
+ }, ['origToolTip', 'toolTip'])]
33448
33001
  };
33449
33002
  };
33450
33003
 
33451
- var getConfig$4 = function getConfig(isoLanguageIds, t, viewOnly) {
33004
+ var getConfig$4 = function getConfig(isoLanguageIds) {
33452
33005
  return {
33453
33006
  colDef: [{
33454
33007
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
@@ -33459,11 +33012,11 @@ var getConfig$4 = function getConfig(isoLanguageIds, t, viewOnly) {
33459
33012
  }, createTranslatedColumnConfig('translatedFeatureText', 'backoffice.idmEnricher.renaming.label.featuretext', isoLanguageIds, false, 'withPlaceholder', {
33460
33013
  placeHolderField: 'origFeatureText',
33461
33014
  combinedField: 'featureText'
33462
- }, ['origFeatureText', 'featureText'], !viewOnly)]
33015
+ }, ['origFeatureText', 'featureText'])]
33463
33016
  };
33464
33017
  };
33465
33018
 
33466
- var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33019
+ var getConfig$3 = function getConfig(isoLanguageIds) {
33467
33020
  return {
33468
33021
  colDef: [{
33469
33022
  headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
@@ -33474,13 +33027,13 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33474
33027
  }, createTranslatedColumnConfig('translatedShortText', 'backoffice.idmEnricher.renaming.label.shortText', isoLanguageIds, false, 'withPlaceholder', {
33475
33028
  placeHolderField: 'origShortText',
33476
33029
  combinedField: 'shortText'
33477
- }, ['origShortText', 'shortText'], !viewOnly), createTranslatedColumnConfig('translatedFullText', 'backoffice.idmEnricher.renaming.label.fullText', isoLanguageIds, false, 'withPlaceholder', {
33030
+ }, ['origShortText', 'shortText']), createTranslatedColumnConfig('translatedFullText', 'backoffice.idmEnricher.renaming.label.fullText', isoLanguageIds, false, 'withPlaceholder', {
33478
33031
  placeHolderField: 'origFullText',
33479
33032
  combinedField: 'fullText'
33480
- }, ['origFullText', 'fullText'], !viewOnly), createTranslatedColumnConfig('translatedPlanningAdvice', 'backoffice.idmEnricher.renaming.label.planningAdvice', isoLanguageIds, false, 'withPlaceholder', {
33033
+ }, ['origFullText', 'fullText']), createTranslatedColumnConfig('translatedPlanningAdvice', 'backoffice.idmEnricher.renaming.label.planningAdvice', isoLanguageIds, false, 'withPlaceholder', {
33481
33034
  placeHolderField: 'origPlanningAdvice',
33482
33035
  combinedField: 'planningAdvice'
33483
- }, ['origPlanningAdvice', 'planningAdvice'], !viewOnly), {
33036
+ }, ['origPlanningAdvice', 'planningAdvice']), {
33484
33037
  headerName: 'backoffice.idmEnricher.renaming.label.translatedSalesNumber',
33485
33038
  field: 'translatedSalesNumber',
33486
33039
  cellDataType: 'withPlaceholder',
@@ -33488,8 +33041,7 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33488
33041
  placeHolderField: 'origSalesNumber',
33489
33042
  combinedField: 'salesNumber'
33490
33043
  },
33491
- additionalFields: ['origSalesNumber', 'salesNumber'],
33492
- editable: !viewOnly
33044
+ additionalFields: ['origSalesNumber', 'salesNumber']
33493
33045
  }, {
33494
33046
  field: 'sequenceNo',
33495
33047
  headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
@@ -33503,8 +33055,7 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33503
33055
  placeHolderField: 'origEdpNumber',
33504
33056
  combinedField: 'edpNumber'
33505
33057
  },
33506
- additionalFields: ['origEdpNumber', 'edpNumber'],
33507
- editable: !viewOnly
33058
+ additionalFields: ['origEdpNumber', 'edpNumber']
33508
33059
  }, {
33509
33060
  headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
33510
33061
  field: 'translatedEanNumber',
@@ -33513,13 +33064,12 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33513
33064
  placeHolderField: 'origEanNumber',
33514
33065
  combinedField: 'eanNumber'
33515
33066
  },
33516
- additionalFields: ['origEanNumber', 'eanNumber'],
33517
- editable: !viewOnly
33067
+ additionalFields: ['origEanNumber', 'eanNumber']
33518
33068
  }]
33519
33069
  };
33520
33070
  };
33521
33071
 
33522
- var getConfig$2 = function getConfig(isoLanguageIds, t, viewOnly) {
33072
+ var getConfig$2 = function getConfig(isoLanguageIds) {
33523
33073
  return {
33524
33074
  colDef: [{
33525
33075
  headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
@@ -33530,10 +33080,10 @@ var getConfig$2 = function getConfig(isoLanguageIds, t, viewOnly) {
33530
33080
  }, createTranslatedColumnConfig('translatedOptionText', 'backoffice.idmEnricher.renaming.label.optionText', isoLanguageIds, false, 'withPlaceholder', {
33531
33081
  placeHolderField: 'origOptionText',
33532
33082
  combinedField: 'optionText'
33533
- }, ['origOptionText', 'optionText'], !viewOnly), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, false, 'withPlaceholder', {
33083
+ }, ['origOptionText', 'optionText']), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, false, 'withPlaceholder', {
33534
33084
  placeHolderField: 'origOptionCommentText',
33535
33085
  combinedField: 'optionCommentText'
33536
- }, ['origOptionCommentText', 'optionCommentText'], !viewOnly), {
33086
+ }, ['origOptionCommentText', 'optionCommentText']), {
33537
33087
  field: 'featureNos',
33538
33088
  headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
33539
33089
  cellDataType: 'lookup',
@@ -33558,7 +33108,7 @@ var getConfig$2 = function getConfig(isoLanguageIds, t, viewOnly) {
33558
33108
  };
33559
33109
  };
33560
33110
 
33561
- var getConfig$1 = function getConfig(isoLanguageIds, t, viewOnly) {
33111
+ var getConfig$1 = function getConfig(isoLanguageIds) {
33562
33112
  return {
33563
33113
  colDef: [{
33564
33114
  headerName: 'backoffice.idmEnricher.renaming.label.serieNo',
@@ -33569,10 +33119,10 @@ var getConfig$1 = function getConfig(isoLanguageIds, t, viewOnly) {
33569
33119
  }, createTranslatedColumnConfig('translatedSeriesName', 'backoffice.idmEnricher.renaming.label.serieName', isoLanguageIds, false, 'withPlaceholder', {
33570
33120
  placeHolderField: 'origSeriesName',
33571
33121
  combinedField: 'seriesName'
33572
- }, ['origSeriesName', 'seriesName'], !viewOnly), createTranslatedColumnConfig('translatedSeriesFullText', 'backoffice.idmEnricher.renaming.label.serieFullText', isoLanguageIds, false, 'withPlaceholder', {
33122
+ }, ['origSeriesName', 'seriesName']), createTranslatedColumnConfig('translatedSeriesFullText', 'backoffice.idmEnricher.renaming.label.serieFullText', isoLanguageIds, false, 'withPlaceholder', {
33573
33123
  placeHolderField: 'origSeriesFullText',
33574
33124
  combinedField: 'seriesFullText'
33575
- }, ['origSeriesFullText', 'seriesFullText'], !viewOnly)]
33125
+ }, ['origSeriesFullText', 'seriesFullText'])]
33576
33126
  };
33577
33127
  };
33578
33128
 
@@ -33660,53 +33210,19 @@ var RenamingTable = observer(function (_ref) {
33660
33210
  packageId = _useModule.packageId,
33661
33211
  apiConfig = _useModule.apiConfig,
33662
33212
  selectedPackage = _useModule.selectedPackage,
33663
- selectedItem = _useModule.selectedItem,
33664
- setSelectedItem = _useModule.setSelectedItem,
33665
- selectedSerie = _useModule.selectedSerie,
33666
- setSelectedSerie = _useModule.setSelectedSerie,
33667
- viewOnly = _useModule.viewOnly;
33213
+ selectedSerie = _useModule.selectedSerie;
33214
+ useTools({
33215
+ packageId: packageId,
33216
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
33217
+ });
33668
33218
  var baseConfiguration = useMemo(function () {
33669
- return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t, viewOnly);
33219
+ return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
33670
33220
  }, [selectedPackage, i18n.language]);
33671
- var _useTools = useTools({
33672
- packageId: packageId,
33673
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
33674
- setArticle: setSelectedItem,
33675
- setSerie: setSelectedSerie,
33676
- serie: selectedSerie,
33677
- item: selectedItem
33678
- }),
33679
- updateConfigurator = _useTools.updateConfigurator;
33680
33221
  var applicationData = useMemo(function () {
33681
33222
  return {
33682
33223
  packageId: packageId
33683
33224
  };
33684
33225
  }, [packageId]);
33685
- var hooks = useMemo(function () {
33686
- return {
33687
- onCellSelectionChanged: function onCellSelectionChanged(event) {
33688
- var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
33689
- switch (type) {
33690
- case 'features':
33691
- updateConfigurator({
33692
- opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
33693
- });
33694
- break;
33695
- case 'options':
33696
- updateConfigurator({
33697
- opv: (_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.data) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.optionKey
33698
- });
33699
- break;
33700
- case 'items':
33701
- setSelectedItem((_event$selection$3 = event.selection[0]) === null || _event$selection$3 === void 0 || (_event$selection$3 = _event$selection$3.node) === null || _event$selection$3 === void 0 ? void 0 : _event$selection$3.data);
33702
- break;
33703
- case 'series':
33704
- setSelectedSerie((_event$selection$4 = event.selection[0]) === null || _event$selection$4 === void 0 || (_event$selection$4 = _event$selection$4.node) === null || _event$selection$4 === void 0 ? void 0 : _event$selection$4.data);
33705
- break;
33706
- }
33707
- }
33708
- };
33709
- }, [updateConfigurator, type]);
33710
33226
  var prevPreFilter = useRef();
33711
33227
  var preFilter = useMemo(function () {
33712
33228
  if (type === 'items' && selectedSerie) {
@@ -33727,7 +33243,7 @@ var RenamingTable = observer(function (_ref) {
33727
33243
  var apiInterface = useMemo(function () {
33728
33244
  return {
33729
33245
  read: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type,
33730
- update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/${_id}',
33246
+ update: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/${_id}',
33731
33247
  bulk: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/bulk'
33732
33248
  };
33733
33249
  }, [type]);
@@ -33753,7 +33269,7 @@ var RenamingTable = observer(function (_ref) {
33753
33269
  cellDataType: 'objectId'
33754
33270
  }])
33755
33271
  };
33756
- }, [apiInterface, baseConfiguration.colDef, viewOnly]);
33272
+ }, [apiInterface, baseConfiguration.colDef]);
33757
33273
  var showTable = useMemo(function () {
33758
33274
  return selectedPackage && (!['items'].includes(type) || type === 'items' && preFilter);
33759
33275
  }, [type, preFilter, selectedPackage]);
@@ -33776,8 +33292,7 @@ var RenamingTable = observer(function (_ref) {
33776
33292
  gridId: 'renaming-grid_' + type,
33777
33293
  applicationData: applicationData,
33778
33294
  preFilter: preFilter,
33779
- configuration: configuration,
33780
- hooks: hooks
33295
+ configuration: configuration
33781
33296
  })]
33782
33297
  });
33783
33298
  });
@@ -34259,45 +33774,11 @@ var ExclusivityTable = observer(function (_ref) {
34259
33774
  apiConfig = _useModule.apiConfig,
34260
33775
  organizationId = _useModule.organizationId,
34261
33776
  selectedPackage = _useModule.selectedPackage,
34262
- selectedSerie = _useModule.selectedSerie,
34263
- setSelectedSerie = _useModule.setSelectedSerie,
34264
- setSelectedItem = _useModule.setSelectedItem,
34265
- selectedItem = _useModule.selectedItem,
34266
- viewOnly = _useModule.viewOnly;
34267
- var _useTools = useTools({
34268
- packageId: packageId,
34269
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
34270
- setArticle: setSelectedItem,
34271
- setSerie: setSelectedSerie,
34272
- serie: selectedSerie,
34273
- item: selectedItem
34274
- }),
34275
- updateConfigurator = _useTools.updateConfigurator;
34276
- var hooks = useMemo(function () {
34277
- return {
34278
- onCellSelectionChanged: function onCellSelectionChanged(event) {
34279
- var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
34280
- switch (type) {
34281
- case 'efeatures':
34282
- updateConfigurator({
34283
- opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
34284
- });
34285
- break;
34286
- case 'eoptions':
34287
- updateConfigurator({
34288
- opv: (_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.data) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.optionKey
34289
- });
34290
- break;
34291
- case 'eitems':
34292
- setSelectedItem((_event$selection$3 = event.selection[0]) === null || _event$selection$3 === void 0 || (_event$selection$3 = _event$selection$3.node) === null || _event$selection$3 === void 0 ? void 0 : _event$selection$3.data);
34293
- break;
34294
- case 'eseries':
34295
- setSelectedSerie((_event$selection$4 = event.selection[0]) === null || _event$selection$4 === void 0 || (_event$selection$4 = _event$selection$4.node) === null || _event$selection$4 === void 0 ? void 0 : _event$selection$4.data);
34296
- break;
34297
- }
34298
- }
34299
- };
34300
- }, [updateConfigurator, type]);
33777
+ selectedSerie = _useModule.selectedSerie;
33778
+ useTools({
33779
+ packageId: packageId,
33780
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
33781
+ });
34301
33782
  var apiInterface = useMemo(function () {
34302
33783
  var patchId = '${_id}';
34303
33784
  if (type === 'eitems') patchId = '${typeNo}';
@@ -34311,7 +33792,7 @@ var ExclusivityTable = observer(function (_ref) {
34311
33792
  var listType = type === 'eitems' ? 'items' : 'options';
34312
33793
  return {
34313
33794
  read: !['eitems'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
34314
- update: viewOnly ? undefined : !['eitems', 'eoptions'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : type === 'eoptions' ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId + '?featureNos=' + patchId2 : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
33795
+ update: !['eitems', 'eoptions'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : type === 'eoptions' ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId + '?featureNos=' + patchId2 : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
34315
33796
  };
34316
33797
  }, [type]);
34317
33798
  var oldDataRef = useRef();
@@ -34340,7 +33821,7 @@ var ExclusivityTable = observer(function (_ref) {
34340
33821
  floatingFilter: true,
34341
33822
  colDef: [{
34342
33823
  field: 'active',
34343
- editable: !viewOnly,
33824
+ editable: true,
34344
33825
  cellDataType: 'boolean',
34345
33826
  pinned: 'left',
34346
33827
  lockPinned: true
@@ -34356,11 +33837,11 @@ var ExclusivityTable = observer(function (_ref) {
34356
33837
  }, {
34357
33838
  headerName: 'backoffice.idmEnricher.general.label._id',
34358
33839
  field: '_id',
34359
- editable: false,
33840
+ editable: true,
34360
33841
  cellDataType: 'objectId'
34361
33842
  }])
34362
33843
  };
34363
- }, [apiInterface, selectedSerie, config.colDef, viewOnly]);
33844
+ }, [apiInterface, selectedSerie, config.colDef]);
34364
33845
  return /*#__PURE__*/jsxs(Fragment, {
34365
33846
  children: [/*#__PURE__*/jsx(Descriptions$1, {
34366
33847
  title: /*#__PURE__*/jsxs("div", {
@@ -34379,8 +33860,7 @@ var ExclusivityTable = observer(function (_ref) {
34379
33860
  }), showTable && /*#__PURE__*/jsx(Spreadsheet, {
34380
33861
  gridId: 'crud-grid_exclusivity_' + type,
34381
33862
  applicationData: applicationData,
34382
- configuration: configuration,
34383
- hooks: hooks
33863
+ configuration: configuration
34384
33864
  })]
34385
33865
  });
34386
33866
  });
@@ -34392,11 +33872,10 @@ var TableTabGroups = observer(function () {
34392
33872
  packageId = _useModule.packageId,
34393
33873
  organizationId = _useModule.organizationId,
34394
33874
  apiConfig = _useModule.apiConfig,
34395
- selectedPackage = _useModule.selectedPackage,
34396
- viewOnly = _useModule.viewOnly;
33875
+ selectedPackage = _useModule.selectedPackage;
34397
33876
  useTools({
34398
33877
  packageId: packageId,
34399
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
33878
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
34400
33879
  });
34401
33880
  var applicationData = useMemo(function () {
34402
33881
  return {
@@ -34408,10 +33887,10 @@ var TableTabGroups = observer(function () {
34408
33887
  return {
34409
33888
  //TODO: Es gibt globale Tabgroups, die vordefiniert sind und pro Enricher Paket nochmals angepasst werden können -endpoint anpassen?
34410
33889
  read: apiConfig.enricherService + '/packages/${packageId}/tabgroups',
34411
- create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/tabgroups',
34412
- restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
34413
- "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
34414
- update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
33890
+ create: apiConfig.enricherService + '/packages/${packageId}/tabgroups',
33891
+ restore: apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
33892
+ "delete": apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
33893
+ update: apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
34415
33894
  bulk: apiConfig.enricherService + '/packages/${packageId}/tabgroups/bulk'
34416
33895
  };
34417
33896
  }, []);
@@ -34425,7 +33904,7 @@ var TableTabGroups = observer(function () {
34425
33904
  field: 'featureNos',
34426
33905
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
34427
33906
  cellDataType: 'lookup',
34428
- editable: !viewOnly,
33907
+ editable: true,
34429
33908
  customParams: {
34430
33909
  nameField: 'featureNosDisplayTexts',
34431
33910
  displayLabelTemplate: '${name} (${value})',
@@ -34439,7 +33918,7 @@ var TableTabGroups = observer(function () {
34439
33918
  },
34440
33919
  additionalFields: ['featureNosDisplayTexts'],
34441
33920
  isDictionary: true
34442
- }, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.tabgroups.label.name', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, !viewOnly), {
33921
+ }, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.tabgroups.label.name', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, true), {
34443
33922
  field: 'organizationId',
34444
33923
  editable: false,
34445
33924
  hide: true,
@@ -34469,7 +33948,7 @@ var TableTabGroups = observer(function () {
34469
33948
  cellDataType: 'objectId'
34470
33949
  }]
34471
33950
  };
34472
- }, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
33951
+ }, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
34473
33952
  return /*#__PURE__*/jsxs(Fragment, {
34474
33953
  children: [/*#__PURE__*/jsx(Descriptions$1, {
34475
33954
  title: /*#__PURE__*/jsxs("div", {
@@ -34497,11 +33976,10 @@ var TablePartlistPos = observer(function () {
34497
33976
  packageId = _useModule.packageId,
34498
33977
  organizationId = _useModule.organizationId,
34499
33978
  apiConfig = _useModule.apiConfig,
34500
- selectedPackage = _useModule.selectedPackage,
34501
- viewOnly = _useModule.viewOnly;
33979
+ selectedPackage = _useModule.selectedPackage;
34502
33980
  useTools({
34503
33981
  packageId: packageId,
34504
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
33982
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
34505
33983
  });
34506
33984
  var posInvisibility = useMemo(function () {
34507
33985
  return [{
@@ -34524,10 +34002,10 @@ var TablePartlistPos = observer(function () {
34524
34002
  var apiInterface = useMemo(function () {
34525
34003
  return {
34526
34004
  read: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34527
- create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34528
- restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34529
- "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34530
- update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34005
+ create: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34006
+ restore: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34007
+ "delete": apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34008
+ update: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34531
34009
  bulk: apiConfig.enricherService + '/packages/${packageId}/partlistpos/bulk'
34532
34010
  };
34533
34011
  }, []);
@@ -34540,12 +34018,12 @@ var TablePartlistPos = observer(function () {
34540
34018
  colDef: [{
34541
34019
  headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
34542
34020
  field: 'retailPrefix',
34543
- editable: !viewOnly,
34021
+ editable: true,
34544
34022
  pinned: 'left'
34545
34023
  }, {
34546
34024
  headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
34547
34025
  field: 'retailArtilceNumber',
34548
- editable: !viewOnly,
34026
+ editable: true,
34549
34027
  pinned: 'left'
34550
34028
  }, {
34551
34029
  headerName: 'backoffice.idmEnricher.partlistpos.label.partlistKey',
@@ -34647,7 +34125,7 @@ var TablePartlistPos = observer(function () {
34647
34125
  cellDataType: 'objectId'
34648
34126
  }]
34649
34127
  };
34650
- }, [apiInterface, posInvisibility, viewOnly]);
34128
+ }, [apiInterface, posInvisibility]);
34651
34129
  return /*#__PURE__*/jsxs(Fragment, {
34652
34130
  children: [/*#__PURE__*/jsx(Descriptions$1, {
34653
34131
  title: /*#__PURE__*/jsxs("div", {
@@ -34948,8 +34426,8 @@ var space = "space-T5Mkd";
34948
34426
  var input$1 = "input-SK-Fo";
34949
34427
  var addButton$1 = "addButton-AVN8Y";
34950
34428
  var helpText = "helpText-QYQQF";
34951
- var css_248z$e = ".cell-Noc7s {\n min-width: 50px;\n height: 100%;\n}\n\n.typeSelector-Y8Yly {\n margin-bottom: 16px;\n}\n\n.space-T5Mkd {\n width: 100%;\n}\n\n.input-SK-Fo {\n width: 120px;\n}\n\n.addButton-AVN8Y {\n margin-top: 16px;\n text-align: right;\n}\n\n.helpText-QYQQF {\n margin-top: 8px;\n font-size: 12px;\n color: #666;\n}\n";
34952
- styleInject(css_248z$e);
34429
+ var css_248z$d = ".cell-Noc7s {\n min-width: 50px;\n height: 100%;\n}\n\n.typeSelector-Y8Yly {\n margin-bottom: 16px;\n}\n\n.space-T5Mkd {\n width: 100%;\n}\n\n.input-SK-Fo {\n width: 120px;\n}\n\n.addButton-AVN8Y {\n margin-top: 16px;\n text-align: right;\n}\n\n.helpText-QYQQF {\n margin-top: 8px;\n font-size: 12px;\n color: #666;\n}\n";
34430
+ styleInject(css_248z$d);
34953
34431
 
34954
34432
  function PriceFactorCellRenderer(props) {
34955
34433
  var data = props.data,
@@ -35165,8 +34643,8 @@ var difference = "difference-xT9ZP";
35165
34643
  var differencePositive = "differencePositive-hGhZO";
35166
34644
  var differenceNegative = "differenceNegative-3CEZA";
35167
34645
  var differenceNeutral = "differenceNeutral-wx8oE";
35168
- var css_248z$d = ".container-T4Tzz {\n display: flex;\n align-items: center;\n}\n\n.price-NjOOy {\n font-weight: normal;\n}\n\n.priceManual-i7wtQ {\n font-weight: bold;\n}\n\n.originalPrice-V8MP5 {\n color: #8c8c8c;\n margin: 0 8px;\n}\n\n.difference-xT9ZP {\n margin-left: 8px;\n}\n\n.differencePositive-hGhZO {\n color: #52c41a;\n}\n\n.differenceNegative-3CEZA {\n color: #ff4d4f;\n}\n\n.differenceNeutral-wx8oE {\n color: inherit;\n}\n";
35169
- styleInject(css_248z$d);
34646
+ var css_248z$c = ".container-T4Tzz {\n display: flex;\n align-items: center;\n}\n\n.price-NjOOy {\n font-weight: normal;\n}\n\n.priceManual-i7wtQ {\n font-weight: bold;\n}\n\n.originalPrice-V8MP5 {\n color: #8c8c8c;\n margin: 0 8px;\n}\n\n.difference-xT9ZP {\n margin-left: 8px;\n}\n\n.differencePositive-hGhZO {\n color: #52c41a;\n}\n\n.differenceNegative-3CEZA {\n color: #ff4d4f;\n}\n\n.differenceNeutral-wx8oE {\n color: inherit;\n}\n";
34647
+ styleInject(css_248z$c);
35170
34648
 
35171
34649
  function PriceDisplayCellRenderer(props) {
35172
34650
  var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
@@ -35232,129 +34710,59 @@ function getPriceFeatureGroups(selectedSerie, language) {
35232
34710
  if (!(selectedSerie !== null && selectedSerie !== void 0 && selectedSerie.pricefeaturegroups)) {
35233
34711
  return [];
35234
34712
  }
35235
- var priceFeatureGroups = (_selectedSerie$pricef = selectedSerie.pricefeaturegroups) === null || _selectedSerie$pricef === void 0 ? void 0 : _selectedSerie$pricef.map(function (priceFeatureGroupKey, i) {
34713
+ var priceFeatureGroups = (_selectedSerie$pricef = selectedSerie.pricefeaturegroups) === null || _selectedSerie$pricef === void 0 ? void 0 : _selectedSerie$pricef.map(function (priceFeatureGroups, i) {
35236
34714
  var _selectedSerie$pricef2, _selectedSerie$pricef3;
35237
34715
  return {
35238
- id: 'PRFG' + priceFeatureGroupKey,
35239
- displayText: (_selectedSerie$pricef2 = (_selectedSerie$pricef3 = selectedSerie.pricefeaturegroupsDisplayTexts) === null || _selectedSerie$pricef3 === void 0 || (_selectedSerie$pricef3 = _selectedSerie$pricef3[i]) === null || _selectedSerie$pricef3 === void 0 ? void 0 : _selectedSerie$pricef3[language.toUpperCase()]) !== null && _selectedSerie$pricef2 !== void 0 ? _selectedSerie$pricef2 : priceFeatureGroupKey,
34716
+ id: priceFeatureGroups,
34717
+ displayText: (_selectedSerie$pricef2 = (_selectedSerie$pricef3 = selectedSerie.pricefeaturegroupsDisplayTexts) === null || _selectedSerie$pricef3 === void 0 || (_selectedSerie$pricef3 = _selectedSerie$pricef3[i]) === null || _selectedSerie$pricef3 === void 0 ? void 0 : _selectedSerie$pricef3[language.toUpperCase()]) !== null && _selectedSerie$pricef2 !== void 0 ? _selectedSerie$pricef2 : priceFeatureGroups,
35240
34718
  keys: [],
35241
34719
  keysDisplayTexts: []
35242
34720
  };
35243
34721
  });
35244
- (_selectedSerie$pricef4 = selectedSerie.pricefeaturegroupsKeys) === null || _selectedSerie$pricef4 === void 0 || _selectedSerie$pricef4.forEach(function (priceGroupKey, i) {
35245
- var pfgSplit = priceGroupKey.split('_');
35246
- var pfgId = pfgSplit[0];
34722
+ (_selectedSerie$pricef4 = selectedSerie.pricefeaturegroupsKeys) === null || _selectedSerie$pricef4 === void 0 || _selectedSerie$pricef4.forEach(function (priceFeatureGroupKey, i) {
34723
+ var pfgSplit = priceFeatureGroupKey.split('_');
34724
+ var pfgId = pfgSplit[0].replace('PRFG', '');
35247
34725
  var pfg = priceFeatureGroups.find(function (pfg) {
35248
34726
  return pfg.id == pfgId;
35249
34727
  });
35250
34728
  if (pfg) {
35251
34729
  var _selectedSerie$pricef5;
35252
- pfg.keys.push(priceGroupKey);
34730
+ pfg.keys.push(priceFeatureGroupKey);
35253
34731
  pfg.keysDisplayTexts.push((_selectedSerie$pricef5 = selectedSerie.pricefeaturegroupsKeysDisplayTexts) === null || _selectedSerie$pricef5 === void 0 || (_selectedSerie$pricef5 = _selectedSerie$pricef5[i]) === null || _selectedSerie$pricef5 === void 0 ? void 0 : _selectedSerie$pricef5[language.toUpperCase()]);
35254
34732
  }
35255
34733
  });
35256
34734
  return priceFeatureGroups;
35257
34735
  }
35258
34736
 
34737
+ var wrapper$3 = "wrapper-5t6RT";
35259
34738
  var input = "input-leHam";
35260
34739
  var disabled$1 = "disabled-Llkqu";
35261
- var css_248z$c = ".input-leHam {\n position: relative;\n width: 200px;\n height: 32px;\n border: 1px solid #d9d9d9;\n background: #ffffff;\n padding: 0 11px;\n border-radius: 6px;\n font-size: 14px;\n line-height: 30px;\n cursor: pointer;\n}\n\n.darkmode .input-leHam {\n background: #141414;\n border: 1px solid #424242;\n}\n\n.input-leHam.disabled-Llkqu {\n cursor: default;\n color: rgba(0, 0, 0, 0.25);\n}\n\n.darkmode .input-leHam.disabled-Llkqu {\n color: rgba(255, 255, 255, 0.25);\n}\n\n.input-leHam:hover {\n border-color: #4096ff;\n}\n";
35262
- styleInject(css_248z$c);
34740
+ var css_248z$b = ".wrapper-5t6RT {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.input-leHam {\n position: relative;\n width: 200px;\n height: 32px;\n border: 1px solid #d9d9d9;\n background: #ffffff;\n padding: 0 11px;\n border-radius: 6px;\n font-size: 14px;\n line-height: 30px;\n cursor: pointer;\n}\n\n.darkmode .input-leHam {\n background: #141414;\n border: 1px solid #424242;\n}\n\n.input-leHam.disabled-Llkqu {\n cursor: default;\n color: rgba(0, 0, 0, 0.25);\n}\n\n.darkmode .input-leHam.disabled-Llkqu {\n color: rgba(255, 255, 255, 0.25);\n}\n\n.input-leHam:hover {\n border-color: #4096ff;\n}\n";
34741
+ styleInject(css_248z$b);
35263
34742
 
35264
- var _excluded = ["onSave", "value"];
35265
34743
  function ownKeys$d(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; }
35266
34744
  function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
35267
- function PriceFactorInput(_ref) {
35268
- var _onSave = _ref.onSave,
35269
- value = _ref.value,
35270
- props = _objectWithoutProperties(_ref, _excluded);
35271
- var _useState = useState(value),
35272
- _useState2 = _slicedToArray(_useState, 2),
35273
- innerValue = _useState2[0],
35274
- setInnerValue = _useState2[1];
35275
- useEffect(function () {
35276
- setInnerValue(value);
35277
- }, [value]);
35278
- return /*#__PURE__*/jsx(Tooltip$1, {
35279
- title: props.tooltip,
35280
- children: /*#__PURE__*/jsx("div", {
35281
- className: classnames(input, 'price-factor-input', props.className, _defineProperty({}, disabled$1, props.disabled)),
35282
- children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
35283
- isNotInAGGrid: true,
35284
- value: innerValue,
35285
- onSave: function onSave(data, value) {
35286
- setInnerValue(value);
35287
- return _onSave(data, value);
35288
- }
35289
- }))
35290
- })
35291
- });
35292
- }
35293
-
35294
- var inputHeader = "input-header--4KDP";
35295
- var factorInput = "factor-input-MX85Z";
35296
- var css_248z$b = ".input-header--4KDP .ag-header-cell-text {\n width: 100%;\n}\n\n.input-header--4KDP .ag-header-group-cell-label {\n width: 100%;\n max-width: 250px;\n}\n\n.input-header--4KDP .ag-header-group-text {\n width: 100%;\n}\n\n.factor-input-MX85Z {\n min-height: 0;\n flex: 1;\n}\n\n.factor-input-MX85Z .price-factor-input {\n width: 100%;\n background-color: var(--ag-input-background-color);\n border: var(--ag-input-border);\n border-radius: var(--ag-input-border-radius);\n color: var(--ag-input-text-color);\n height: var(--ag-input-height);\n line-height: var(--ag-input-height);\n font-size: var(--ag-font-size);\n}\n\n.factor-input-MX85Z .price-factor-input:hover {\n border-color: #4096ff;\n}\n";
35297
- styleInject(css_248z$b);
35298
-
35299
- function PriceFactorHeaderComponent(_ref) {
35300
- var onSave = _ref.onSave,
35301
- onPriorityChange = _ref.onPriorityChange,
35302
- priority = _ref.priority,
35303
- priorityForced = _ref.priorityForced,
35304
- value = _ref.value,
35305
- inputTooltip = _ref.inputTooltip,
35306
- checkboxTooltip = _ref.checkboxTooltip;
35307
- var _useTranslation = useTranslation$1(),
35308
- t = _useTranslation.t;
35309
- var _useState = useState(priority || priorityForced),
35310
- _useState2 = _slicedToArray(_useState, 2),
35311
- innerChecked = _useState2[0],
35312
- setInnerChecked = _useState2[1];
35313
- useEffect(function () {
35314
- setInnerChecked(priority || priorityForced);
35315
- }, [priority, priorityForced]);
35316
- return /*#__PURE__*/jsxs(Fragment, {
35317
- children: [/*#__PURE__*/jsx(PriceFactorInput, {
35318
- onSave: onSave,
35319
- value: value,
35320
- className: factorInput,
35321
- tooltip: t(inputTooltip)
35322
- }), /*#__PURE__*/jsx(Tooltip$1, {
35323
- title: t("".concat(checkboxTooltip, ".").concat(priorityForced ? 'forced' : priority ? 'true' : 'false')),
35324
- children: /*#__PURE__*/jsx(Checkbox, {
35325
- checked: innerChecked,
35326
- disabled: priorityForced,
35327
- onChange: function onChange(e) {
35328
- setInnerChecked(e.target.checked);
35329
- onPriorityChange(e.target.checked);
35330
- }
35331
- })
35332
- })]
35333
- });
35334
- }
35335
-
35336
- var root = "root-WJLKp";
35337
- var contentWrapper$1 = "content-wrapper-Ki4Pt";
35338
- var css_248z$a = ".root-WJLKp {\n display: flex;\n flex-direction: column;\n height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.content-wrapper-Ki4Pt {\n height: 34px;\n display: flex;\n align-items: center;\n}\n";
35339
- styleInject(css_248z$a);
35340
-
35341
- function Setting(_ref) {
35342
- var title = _ref.title,
35343
- tooltip = _ref.tooltip,
35344
- className = _ref.className,
35345
- children = _ref.children;
34745
+ function PriceFactorInput(props) {
35346
34746
  return /*#__PURE__*/jsxs("div", {
35347
- className: classnames(root, className),
35348
- children: [title, /*#__PURE__*/jsx(Tooltip$1, {
35349
- title: tooltip,
34747
+ className: classnames(wrapper$3, props.className),
34748
+ children: [props.title, /*#__PURE__*/jsx(Tooltip$1, {
34749
+ title: props.tooltip,
35350
34750
  children: /*#__PURE__*/jsx("div", {
35351
- className: contentWrapper$1,
35352
- children: children
34751
+ id: "price-factor-input",
34752
+ className: classnames(input, _defineProperty({}, disabled$1, props.disabled)),
34753
+ children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
34754
+ isNotInAGGrid: true
34755
+ }))
35353
34756
  })
35354
34757
  })]
35355
34758
  });
35356
34759
  }
35357
34760
 
34761
+ var inputHeader = "input-header--4KDP";
34762
+ var factorInput = "factor-input-MX85Z";
34763
+ var css_248z$a = ".input-header--4KDP .ag-header-cell-text {\n width: 100%;\n}\n\n.factor-input-MX85Z {\n min-height: 0;\n flex: 1;\n}\n\n.factor-input-MX85Z #price-factor-input {\n width: 100%;\n background-color: var(--ag-input-background-color);\n border: var(--ag-input-border);\n border-radius: var(--ag-input-border-radius);\n color: var(--ag-input-text-color);\n height: var(--ag-input-height);\n line-height: var(--ag-input-height);\n font-size: var(--ag-font-size);\n}\n\n.factor-input-MX85Z #price-factor-input:hover {\n border-color: #4096ff;\n}\n";
34764
+ styleInject(css_248z$a);
34765
+
35358
34766
  function ownKeys$c(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; }
35359
34767
  function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
35360
34768
  var Prices = observer(function (_ref) {
@@ -35363,89 +34771,11 @@ var Prices = observer(function (_ref) {
35363
34771
  packageId = _ref.packageId,
35364
34772
  apiConfig = _ref.apiConfig,
35365
34773
  pricelist = _ref.pricelist,
35366
- setNodeDataValue = _ref.setNodeDataValue,
35367
- viewOnly = _ref.viewOnly;
34774
+ setNodeDataValue = _ref.setNodeDataValue;
35368
34775
  var _useTranslation = useTranslation(),
35369
34776
  t = _useTranslation.t;
35370
- var root = useStore();
35371
- var spreadsheetRef = useRef(null);
35372
34777
  var _useEnricherContext = useEnricherContext(['pricelists']),
35373
34778
  selectedSerie = _useEnricherContext.selectedSerie;
35374
- var _useState = useState(false),
35375
- _useState2 = _slicedToArray(_useState, 2),
35376
- onlyManual = _useState2[0],
35377
- setOnlyManual = _useState2[1];
35378
- var updatePfgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
35379
- if (!selectedSerie) return;
35380
-
35381
- // Create copies of the objects to modify
35382
- var newFactors = _objectSpread$c({}, pricelist.pfgPricefactors);
35383
- var serieFactors = _objectSpread$c({}, newFactors[selectedSerie.serieNo]);
35384
- if (value.length === 0) {
35385
- // Remove the empty price feature group
35386
- delete serieFactors[priceFeatureGroupItem];
35387
-
35388
- // If serie factors is now empty, remove the entire serie entry
35389
- if (Object.keys(serieFactors).length === 0) {
35390
- delete newFactors[selectedSerie.serieNo];
35391
- } else {
35392
- newFactors[selectedSerie.serieNo] = serieFactors;
35393
- }
35394
-
35395
- // If no more series exist, set pfgPricefactors to undefined
35396
- if (Object.keys(newFactors).length === 0) {
35397
- setNodeDataValue({
35398
- pfgPricefactors: undefined
35399
- });
35400
- return;
35401
- }
35402
- } else {
35403
- // Add/update the value
35404
- serieFactors[priceFeatureGroupItem] = value;
35405
- newFactors[selectedSerie.serieNo] = serieFactors;
35406
- }
35407
- setNodeDataValue({
35408
- pfgPricefactors: newFactors
35409
- });
35410
- }, [selectedSerie]);
35411
- var updatePfgPriority = useCallback(function (priceFeatureGroupItem, value) {
35412
- var _newPriority$selected;
35413
- if (!selectedSerie) return;
35414
- var newPriority = _objectSpread$c({}, pricelist.pfgPricefactorsPriority);
35415
- var seriesPriority = new Set((_newPriority$selected = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected !== void 0 ? _newPriority$selected : []);
35416
- if (value === true) {
35417
- seriesPriority.add(priceFeatureGroupItem);
35418
- } else {
35419
- seriesPriority["delete"](priceFeatureGroupItem);
35420
- }
35421
- if (seriesPriority.size === 0) {
35422
- delete newPriority[selectedSerie.serieNo];
35423
- } else {
35424
- newPriority[selectedSerie.serieNo] = Array.from(seriesPriority);
35425
- }
35426
- setNodeDataValue({
35427
- pfgPricefactorsPriority: newPriority
35428
- });
35429
- }, [selectedSerie]);
35430
- var updatePgPriority = useCallback(function (priceFeatureGroupItem, value) {
35431
- var _newPriority$selected2;
35432
- if (!selectedSerie) return;
35433
- var newPriority = _objectSpread$c({}, pricelist.pgPricefactorsPriority);
35434
- var seriesPriority = new Set((_newPriority$selected2 = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected2 !== void 0 ? _newPriority$selected2 : []);
35435
- if (value === true) {
35436
- seriesPriority.add(priceFeatureGroupItem);
35437
- } else {
35438
- seriesPriority["delete"](priceFeatureGroupItem);
35439
- }
35440
- if (seriesPriority.size === 0) {
35441
- delete newPriority[selectedSerie.serieNo];
35442
- } else {
35443
- newPriority[selectedSerie.serieNo] = Array.from(seriesPriority);
35444
- }
35445
- setNodeDataValue({
35446
- pgPricefactorsPriority: newPriority
35447
- });
35448
- }, [selectedSerie]);
35449
34779
  var updatePgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
35450
34780
  if (!selectedSerie) return;
35451
34781
 
@@ -35569,34 +34899,6 @@ var Prices = observer(function (_ref) {
35569
34899
  seriePricefactors: newFactors
35570
34900
  });
35571
34901
  }, [pricelist, selectedSerie, setNodeDataValue]);
35572
- function deleteManualPrices() {
35573
- return _deleteManualPrices.apply(this, arguments);
35574
- }
35575
- function _deleteManualPrices() {
35576
- _deleteManualPrices = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
35577
- var _spreadsheetRef$curre;
35578
- var api;
35579
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
35580
- while (1) switch (_context8.prev = _context8.next) {
35581
- case 0:
35582
- api = new _default$d({
35583
- type: 'AGGrid',
35584
- apiInterface: {
35585
- "delete": apiConfig.enricherService + "/packages/".concat(packageId, "/pricelists/").concat(pricelist._id, "/serie/").concat(selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo, "/prices/manual")
35586
- }
35587
- }, root);
35588
- _context8.next = 3;
35589
- return api["delete"]();
35590
- case 3:
35591
- (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 || _spreadsheetRef$curre.refresh();
35592
- case 4:
35593
- case "end":
35594
- return _context8.stop();
35595
- }
35596
- }, _callee8);
35597
- }));
35598
- return _deleteManualPrices.apply(this, arguments);
35599
- }
35600
34902
  var applicationData = useMemo(function () {
35601
34903
  return {
35602
34904
  organizationId: organizationId,
@@ -35607,10 +34909,10 @@ var Prices = observer(function (_ref) {
35607
34909
  }, [organizationId, packageId, selectedSerie, pricelist]);
35608
34910
  var apiInterface = useMemo(function () {
35609
34911
  return {
35610
- read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices' + (onlyManual ? '?onlyManual=true' : ''),
35611
- update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices/${_id}'
34912
+ read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices',
34913
+ update: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices/${_id}'
35612
34914
  };
35613
- }, [onlyManual]);
34915
+ }, []);
35614
34916
  var priceFeatureGroups = usePriceFeatureGroupsFromSerie(selectedSerie);
35615
34917
  var configuration = useMemo(function () {
35616
34918
  var _priceFeatureGroups$m;
@@ -35708,57 +35010,16 @@ var Prices = observer(function (_ref) {
35708
35010
  sortable: false,
35709
35011
  editable: false
35710
35012
  }].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups === null || priceFeatureGroups === void 0 ? void 0 : priceFeatureGroups.map(function (priceFeatureGroup) {
35711
- var _pricelist$pfgPricefa, _pricelist$pfgPricefa2, _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
35013
+ var _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
35712
35014
  return {
35713
35015
  headerName: priceFeatureGroup.displayText,
35714
- headerClass: inputHeader,
35715
- headerGroupComponentParams: {
35716
- additionalElement: /*#__PURE__*/jsx(PriceFactorHeaderComponent, {
35717
- onSave: (/*#__PURE__*/function () {
35718
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, value) {
35719
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
35720
- while (1) switch (_context3.prev = _context3.next) {
35721
- case 0:
35722
- updatePfgPriceFactor(priceFeatureGroup.id, value);
35723
- case 1:
35724
- case "end":
35725
- return _context3.stop();
35726
- }
35727
- }, _callee3);
35728
- }));
35729
- return function (_x5, _x6) {
35730
- return _ref4.apply(this, arguments);
35731
- };
35732
- }()),
35733
- value: (_pricelist$pfgPricefa = pricelist.pfgPricefactors) === null || _pricelist$pfgPricefa === void 0 || (_pricelist$pfgPricefa = _pricelist$pfgPricefa[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pfgPricefa === void 0 ? void 0 : _pricelist$pfgPricefa[priceFeatureGroup.id],
35734
- onPriorityChange: (/*#__PURE__*/function () {
35735
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(value) {
35736
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
35737
- while (1) switch (_context4.prev = _context4.next) {
35738
- case 0:
35739
- updatePfgPriority(priceFeatureGroup.id, value);
35740
- case 1:
35741
- case "end":
35742
- return _context4.stop();
35743
- }
35744
- }, _callee4);
35745
- }));
35746
- return function (_x7) {
35747
- return _ref5.apply(this, arguments);
35748
- };
35749
- }()),
35750
- priority: !!((_pricelist$pfgPricefa2 = pricelist.pfgPricefactorsPriority) !== null && _pricelist$pfgPricefa2 !== void 0 && (_pricelist$pfgPricefa2 = _pricelist$pfgPricefa2[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) !== null && _pricelist$pfgPricefa2 !== void 0 && _pricelist$pfgPricefa2.includes(priceFeatureGroup.id)),
35751
- inputTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pfg',
35752
- checkboxTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pfgPriority'
35753
- })
35754
- },
35755
35016
  marryChildren: true,
35756
- children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceGroup, j) {
35757
- var _priceFeatureGroup$ke3, _pricelist$pgPricefac, _pricelist$pgPricefac2, _pricelist$pfgPricefa3;
35017
+ children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceFeatureGroupItem, j) {
35018
+ var _priceFeatureGroup$ke3, _pricelist$pgPricefac;
35758
35019
  return {
35759
- headerName: priceGroup,
35760
- field: "prices.".concat(priceGroup),
35761
- editable: !viewOnly,
35020
+ headerName: priceFeatureGroupItem,
35021
+ field: "prices.".concat(priceFeatureGroupItem),
35022
+ editable: true,
35762
35023
  filter: false,
35763
35024
  sortable: false,
35764
35025
  isDictionary: true,
@@ -35767,49 +35028,31 @@ var Prices = observer(function (_ref) {
35767
35028
  cellRenderer: PriceDisplayCellRenderer,
35768
35029
  cellRendererParams: {
35769
35030
  commas: pricelist.commas,
35770
- item: priceGroup
35031
+ item: priceFeatureGroupItem
35771
35032
  },
35772
- additionalFields: ["origPrices.".concat(priceGroup)],
35033
+ additionalFields: ["origPrices.".concat(priceFeatureGroupItem)],
35773
35034
  headerClass: inputHeader,
35774
35035
  headerComponentParams: {
35775
- additionalElement: /*#__PURE__*/jsx(PriceFactorHeaderComponent, {
35036
+ additionalElement: /*#__PURE__*/jsx(PriceFactorInput, {
35776
35037
  onSave: (/*#__PURE__*/function () {
35777
- var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(data, value) {
35778
- return _regeneratorRuntime.wrap(function _callee5$(_context5) {
35779
- while (1) switch (_context5.prev = _context5.next) {
35780
- case 0:
35781
- updatePgPriceFactor(priceGroup, value);
35782
- case 1:
35783
- case "end":
35784
- return _context5.stop();
35785
- }
35786
- }, _callee5);
35787
- }));
35788
- return function (_x8, _x9) {
35789
- return _ref6.apply(this, arguments);
35790
- };
35791
- }()),
35792
- value: (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 || (_pricelist$pgPricefac = _pricelist$pgPricefac[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[priceGroup],
35793
- onPriorityChange: (/*#__PURE__*/function () {
35794
- var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(value) {
35795
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
35796
- while (1) switch (_context6.prev = _context6.next) {
35038
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, value) {
35039
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
35040
+ while (1) switch (_context3.prev = _context3.next) {
35797
35041
  case 0:
35798
- updatePgPriority(priceGroup, value);
35042
+ updatePgPriceFactor(priceFeatureGroupItem, value);
35799
35043
  case 1:
35800
35044
  case "end":
35801
- return _context6.stop();
35045
+ return _context3.stop();
35802
35046
  }
35803
- }, _callee6);
35047
+ }, _callee3);
35804
35048
  }));
35805
- return function (_x10) {
35806
- return _ref7.apply(this, arguments);
35049
+ return function (_x5, _x6) {
35050
+ return _ref4.apply(this, arguments);
35807
35051
  };
35808
35052
  }()),
35809
- priority: !!((_pricelist$pgPricefac2 = pricelist.pgPricefactorsPriority) !== null && _pricelist$pgPricefac2 !== void 0 && (_pricelist$pgPricefac2 = _pricelist$pgPricefac2[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) !== null && _pricelist$pgPricefac2 !== void 0 && _pricelist$pgPricefac2.includes(priceGroup)),
35810
- priorityForced: !!((_pricelist$pfgPricefa3 = pricelist.pfgPricefactorsPriority) !== null && _pricelist$pfgPricefa3 !== void 0 && (_pricelist$pfgPricefa3 = _pricelist$pfgPricefa3[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) !== null && _pricelist$pfgPricefa3 !== void 0 && _pricelist$pfgPricefa3.includes(priceFeatureGroup.id)),
35811
- inputTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pg',
35812
- checkboxTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pgPriority'
35053
+ value: (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 || (_pricelist$pgPricefac = _pricelist$pgPricefac[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[priceFeatureGroupItem],
35054
+ className: factorInput,
35055
+ tooltip: t('backoffice.idmCatalog.prices.priceFactor.label.pfg')
35813
35056
  })
35814
35057
  }
35815
35058
  };
@@ -35860,7 +35103,7 @@ var Prices = observer(function (_ref) {
35860
35103
  cellDataType: 'objectId'
35861
35104
  }])
35862
35105
  };
35863
- }, [apiInterface, selectedSerie, pricelist, priceFeatureGroups, viewOnly]);
35106
+ }, [apiInterface, selectedSerie, pricelist, priceFeatureGroups]);
35864
35107
  return /*#__PURE__*/jsxs(Fragment, {
35865
35108
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35866
35109
  title: /*#__PURE__*/jsx("div", {
@@ -35868,55 +35111,26 @@ var Prices = observer(function (_ref) {
35868
35111
  style: {
35869
35112
  "float": 'right'
35870
35113
  },
35871
- children: [/*#__PURE__*/jsx(Setting, {
35872
- title: t('backoffice.idmCatalog.prices.manual.title'),
35873
- tooltip: t('backoffice.idmCatalog.prices.manual.tooltip'),
35874
- children: /*#__PURE__*/jsx(Switch, {
35875
- checked: onlyManual,
35876
- onChange: function onChange(e) {
35877
- return setOnlyManual(e);
35878
- },
35879
- disabled: !selectedSerie,
35880
- checkedChildren: 'Manuelle',
35881
- unCheckedChildren: 'Alle'
35882
- })
35883
- }), /*#__PURE__*/jsx(Setting, {
35884
- tooltip: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
35885
- children: /*#__PURE__*/jsx(Popconfirm, {
35886
- rootClassName: "ag-custom-component-popup",
35887
- title: t('backoffice.idmCatalog.prices.manual.delete.title'),
35888
- description: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
35889
- onConfirm: deleteManualPrices,
35890
- okText: t('action.delete'),
35891
- cancelText: t('backoffice.cancel'),
35892
- children: /*#__PURE__*/jsx(Button, {
35893
- danger: true,
35894
- children: t('backoffice.idmCatalog.prices.manual.delete.title')
35895
- })
35896
- })
35897
- }), /*#__PURE__*/jsx(Setting, {
35114
+ children: [/*#__PURE__*/jsx(PriceFactorInput, {
35115
+ value: (_pricelist$seriePrice = pricelist.seriePricefactors) === null || _pricelist$seriePrice === void 0 ? void 0 : _pricelist$seriePrice[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo],
35898
35116
  title: t('backoffice.idmCatalog.prices.priceFactor.label.series'),
35899
- tooltip: t('backoffice.idmCatalog.prices.priceFactor.tooltip.series'),
35900
- children: /*#__PURE__*/jsx(PriceFactorInput, {
35901
- value: (_pricelist$seriePrice = pricelist.seriePricefactors) === null || _pricelist$seriePrice === void 0 ? void 0 : _pricelist$seriePrice[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo],
35902
- onSave: (/*#__PURE__*/function () {
35903
- var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(_, value) {
35904
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
35905
- while (1) switch (_context7.prev = _context7.next) {
35906
- case 0:
35907
- updateSeriePriceFactor(value);
35908
- case 1:
35909
- case "end":
35910
- return _context7.stop();
35911
- }
35912
- }, _callee7);
35913
- }));
35914
- return function (_x11, _x12) {
35915
- return _ref8.apply(this, arguments);
35916
- };
35917
- }()),
35918
- disabled: !selectedSerie
35919
- })
35117
+ onSave: (/*#__PURE__*/function () {
35118
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_, value) {
35119
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
35120
+ while (1) switch (_context4.prev = _context4.next) {
35121
+ case 0:
35122
+ updateSeriePriceFactor(value);
35123
+ case 1:
35124
+ case "end":
35125
+ return _context4.stop();
35126
+ }
35127
+ }, _callee4);
35128
+ }));
35129
+ return function (_x7, _x8) {
35130
+ return _ref5.apply(this, arguments);
35131
+ };
35132
+ }()),
35133
+ disabled: !selectedSerie
35920
35134
  }), /*#__PURE__*/jsx(SeriesSelector$3, {
35921
35135
  modules: ['pricelists'],
35922
35136
  dataSet: "lookup"
@@ -35924,7 +35138,6 @@ var Prices = observer(function (_ref) {
35924
35138
  })
35925
35139
  })
35926
35140
  }), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
35927
- ref: spreadsheetRef,
35928
35141
  gridId: 'crud-grid_enricherprices',
35929
35142
  applicationData: applicationData,
35930
35143
  configuration: configuration
@@ -35942,8 +35155,7 @@ var TablePriceList = observer(function () {
35942
35155
  packageId = _useModule.packageId,
35943
35156
  organizationId = _useModule.organizationId,
35944
35157
  apiConfig = _useModule.apiConfig,
35945
- selectedPackage = _useModule.selectedPackage,
35946
- viewOnly = _useModule.viewOnly;
35158
+ selectedPackage = _useModule.selectedPackage;
35947
35159
  var _React$useState = React.useState(),
35948
35160
  _React$useState2 = _slicedToArray(_React$useState, 2),
35949
35161
  selectedPriceList = _React$useState2[0],
@@ -35954,7 +35166,7 @@ var TablePriceList = observer(function () {
35954
35166
  setSelectedNodeId = _React$useState4[1];
35955
35167
  useTools({
35956
35168
  packageId: packageId,
35957
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
35169
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
35958
35170
  });
35959
35171
  var setNodeDataValue = useCallback(function (data) {
35960
35172
  spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
@@ -35971,8 +35183,7 @@ var TablePriceList = observer(function () {
35971
35183
  packageId: packageId,
35972
35184
  apiConfig: apiConfig,
35973
35185
  pricelist: selectedPriceList,
35974
- setNodeDataValue: setNodeDataValue,
35975
- viewOnly: viewOnly
35186
+ setNodeDataValue: setNodeDataValue
35976
35187
  },
35977
35188
  startWidth: 300,
35978
35189
  defaultPinned: false,
@@ -35996,10 +35207,10 @@ var TablePriceList = observer(function () {
35996
35207
  var apiInterface = useMemo(function () {
35997
35208
  return {
35998
35209
  read: apiConfig.enricherService + '/packages/${packageId}/pricelists',
35999
- create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists',
36000
- restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
36001
- "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
36002
- update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}'
35210
+ create: apiConfig.enricherService + '/packages/${packageId}/pricelists',
35211
+ restore: apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
35212
+ "delete": apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
35213
+ update: apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}'
36003
35214
  };
36004
35215
  }, []);
36005
35216
  var hooks = useMemo(function () {
@@ -36044,11 +35255,11 @@ var TablePriceList = observer(function () {
36044
35255
  colDef: [{
36045
35256
  headerName: 'backoffice.idmEnricher.pricelists.label.name',
36046
35257
  field: 'name',
36047
- editable: !viewOnly
35258
+ editable: true
36048
35259
  }, {
36049
35260
  headerName: 'backoffice.idmEnricher.pricelists.label.basedPricelistId',
36050
35261
  field: 'basedPricelistId',
36051
- editable: !viewOnly,
35262
+ editable: true,
36052
35263
  cellDataType: 'lookup',
36053
35264
  customParams: {
36054
35265
  filterCellType: 'id',
@@ -36078,7 +35289,7 @@ var TablePriceList = observer(function () {
36078
35289
  }, {
36079
35290
  headerName: 'backoffice.idmEnricher.pricelists.label.rounding',
36080
35291
  field: 'rounding',
36081
- editable: !viewOnly,
35292
+ editable: true,
36082
35293
  cellDataType: 'enum',
36083
35294
  customParams: {
36084
35295
  enumData: roundingOptions,
@@ -36087,25 +35298,25 @@ var TablePriceList = observer(function () {
36087
35298
  }, {
36088
35299
  headerName: 'backoffice.idmEnricher.pricelists.label.commas',
36089
35300
  field: 'commas',
36090
- editable: !viewOnly,
35301
+ editable: true,
36091
35302
  cellDataType: 'number'
36092
35303
  }, {
36093
35304
  headerName: 'backoffice.idmEnricher.pricelists.label.currency',
36094
35305
  field: 'currency',
36095
35306
  cellDataType: 'enum',
36096
- editable: !viewOnly,
35307
+ editable: true,
36097
35308
  customParams: {
36098
35309
  enumData: getCurrencyKey(t)
36099
35310
  }
36100
35311
  }, {
36101
35312
  headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
36102
35313
  field: 'forPublishing',
36103
- editable: !viewOnly,
35314
+ editable: true,
36104
35315
  cellDataType: 'boolean'
36105
35316
  }, {
36106
35317
  headerName: 'backoffice.idmEnricher.pricelists.label.validFrom',
36107
35318
  field: 'validFrom',
36108
- editable: !viewOnly,
35319
+ editable: true,
36109
35320
  cellDataType: 'dateString',
36110
35321
  customParams: {
36111
35322
  dateFormat: 'DD.MM.YYYY'
@@ -36113,7 +35324,7 @@ var TablePriceList = observer(function () {
36113
35324
  }, {
36114
35325
  headerName: 'backoffice.idmEnricher.pricelists.label.validTo',
36115
35326
  field: 'validTo',
36116
- editable: !viewOnly,
35327
+ editable: true,
36117
35328
  cellDataType: 'dateString',
36118
35329
  customParams: {
36119
35330
  dateFormat: 'DD.MM.YYYY'
@@ -36171,24 +35382,9 @@ var TablePriceList = observer(function () {
36171
35382
  cellDataType: 'object',
36172
35383
  editable: false,
36173
35384
  hide: true
36174
- }, {
36175
- field: 'pfgPricefactors',
36176
- cellDataType: 'object',
36177
- editable: false,
36178
- hide: true
36179
- }, {
36180
- field: 'pgPricefactorsPriority',
36181
- cellDataType: 'object',
36182
- editable: false,
36183
- hide: true
36184
- }, {
36185
- field: 'pfgPricefactorsPriority',
36186
- cellDataType: 'object',
36187
- editable: false,
36188
- hide: true
36189
35385
  }]
36190
35386
  };
36191
- }, [apiInterface, i18n.language, viewOnly]);
35387
+ }, [apiInterface, i18n.language]);
36192
35388
  return /*#__PURE__*/jsxs(Fragment, {
36193
35389
  children: [/*#__PURE__*/jsx(Descriptions$1, {
36194
35390
  title: /*#__PURE__*/jsxs("div", {
@@ -36677,34 +35873,24 @@ var useCatalogContext = function useCatalogContext() {
36677
35873
  root.contextStore.clearContext('catalog');
36678
35874
  }
36679
35875
 
36680
- // initally only the id is set so we need to update it again if we get the full catalog form the selector
35876
+ // Only update if catalog changed
35877
+ // initally ony the id is set so we need to update it again if we get the full catalog form the selector, so only checking for id is not enough
36681
35878
  var currentCatalog = getContext().selectedCatalog;
36682
- var catalogChanged = currentCatalog._id !== newCatalog._id;
36683
- var catalogDataOnlyChanged = currentCatalog.name === newCatalog.name && JSON.stringify(currentCatalog.isoLanguageIds) === JSON.stringify(newCatalog.isoLanguageIds);
36684
- if (!catalogChanged && !catalogDataOnlyChanged) {
36685
- // No changes detected
36686
- return;
36687
- }
36688
- if (!catalogChanged && catalogDataOnlyChanged) {
36689
- // Only the data changed, so we only need to update the context of the catalog
36690
- root.contextStore.updateContext('catalog', {
36691
- selectedCatalog: newCatalog,
36692
- catalogId: newCatalog._id
36693
- });
36694
- return;
35879
+ if (currentCatalog._id === newCatalog._id && currentCatalog.name === newCatalog.name && JSON.stringify(currentCatalog.isoLanguageIds) === JSON.stringify(newCatalog.isoLanguageIds)) {
35880
+ return; // No changes detected
36695
35881
  }
36696
- if (catalogChanged) {
36697
- // The catalog changed, so we need to rest the full context
36698
- root.contextStore.updateContext('catalog', {
36699
- selectedCatalog: newCatalog,
36700
- catalogId: newCatalog._id,
36701
- selectedSerie: undefined,
36702
- selectedItem: undefined,
36703
- selectedFeature: undefined,
36704
- seriesSelectorState: createDefaultSelectState('seriesSelectorState'),
36705
- featureSelectorState: createDefaultSelectState('featureSelectorState')
36706
- });
36707
35882
 
35883
+ // Update any field catalog changed
35884
+ root.contextStore.updateContext('catalog', {
35885
+ selectedCatalog: newCatalog,
35886
+ catalogId: newCatalog._id,
35887
+ selectedSerie: undefined,
35888
+ selectedItem: undefined,
35889
+ selectedFeature: undefined,
35890
+ seriesSelectorState: createDefaultSelectState('seriesSelectorState'),
35891
+ featureSelectorState: createDefaultSelectState('featureSelectorState')
35892
+ });
35893
+ if (currentCatalog._id !== newCatalog._id) {
36708
35894
  // Update URL only if the id changed
36709
35895
  navigate(path + newCatalog._id + (modules.length ? '/' + modules.join('/') : '') + (searchParams ? '?' + searchParams.toString() : ''));
36710
35896
  }
@@ -37533,22 +36719,27 @@ var CatalogSelector$1 = observer(CatalogSelector);
37533
36719
  var SeriesSelector = function SeriesSelector(_ref) {
37534
36720
  var modules = _ref.modules;
37535
36721
  var _useTranslation = useTranslation(),
37536
- t = _useTranslation.t;
37537
- var _useSeriesSelector = useSeriesSelector(modules),
37538
- catalogId = _useSeriesSelector.catalogId,
37539
- seriesSelectorState = _useSeriesSelector.seriesSelectorState,
37540
- apiInterface = _useSeriesSelector.apiInterface,
37541
- selectedSerie = _useSeriesSelector.selectedSerie,
37542
- onChange = _useSeriesSelector.onChange,
37543
- selectMapping = _useSeriesSelector.selectMapping;
36722
+ t = _useTranslation.t,
36723
+ i18n = _useTranslation.i18n;
36724
+ var _useCatalogContext = useCatalogContext(modules),
36725
+ catalogId = _useCatalogContext.catalogId,
36726
+ idmService = _useCatalogContext.idmService,
36727
+ selectedSerie = _useCatalogContext.selectedSerie,
36728
+ setSelectedSerie = _useCatalogContext.setSelectedSerie,
36729
+ seriesSelectorState = _useCatalogContext.seriesSelectorState;
37544
36730
  return /*#__PURE__*/jsx(SimpleSelect, {
37545
36731
  sharedState: seriesSelectorState,
37546
- apiInterface: apiInterface,
37547
- selectMapping: selectMapping,
36732
+ apiInterface: {
36733
+ read: idmService + '/v3.0/catalogs/' + catalogId + "/series?fields=seriesName[".concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts")
36734
+ },
36735
+ selectMapping: {
36736
+ label: "${seriesName.".concat(i18n.language.toLocaleUpperCase(), "}"),
36737
+ value: '${_id}'
36738
+ },
37548
36739
  autoSelectFirst: true,
37549
36740
  title: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries'),
37550
36741
  value: selectedSerie,
37551
- onChange: onChange,
36742
+ onChange: setSelectedSerie,
37552
36743
  search: true,
37553
36744
  style: {
37554
36745
  width: 200
@@ -37557,95 +36748,6 @@ var SeriesSelector = function SeriesSelector(_ref) {
37557
36748
  }, catalogId);
37558
36749
  };
37559
36750
  var SeriesSelector$1 = observer(SeriesSelector);
37560
- var useSeriesSelector = function useSeriesSelector(modules) {
37561
- var _useTranslation2 = useTranslation(),
37562
- i18n = _useTranslation2.i18n;
37563
- var root = useStore();
37564
- var _useCatalogContext = useCatalogContext(modules),
37565
- catalogId = _useCatalogContext.catalogId,
37566
- idmService = _useCatalogContext.idmService,
37567
- selectedSerie = _useCatalogContext.selectedSerie,
37568
- setSelectedSerie = _useCatalogContext.setSelectedSerie,
37569
- seriesSelectorState = _useCatalogContext.seriesSelectorState;
37570
- var _useState = useState(selectedSerie),
37571
- _useState2 = _slicedToArray(_useState, 2),
37572
- selected = _useState2[0],
37573
- setSelected = _useState2[1];
37574
- var apiInterface = {
37575
- read: idmService + "/v3.0/catalogs/".concat(catalogId, "/series?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id")
37576
- };
37577
- var selectMapping = {
37578
- label: "${seriesName.".concat(i18n.language.toLocaleUpperCase(), "}"),
37579
- value: '${_id}'
37580
- };
37581
- var fetchSerie = /*#__PURE__*/function () {
37582
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(newSerie) {
37583
- var _seriesSelectorState$, _seriesSelectorState$2;
37584
- var isLoaded, api, serie, option;
37585
- return _regeneratorRuntime.wrap(function _callee$(_context) {
37586
- while (1) switch (_context.prev = _context.next) {
37587
- case 0:
37588
- if (newSerie) {
37589
- _context.next = 2;
37590
- break;
37591
- }
37592
- return _context.abrupt("return");
37593
- case 2:
37594
- // if the extend series data is already loaded, use it
37595
- isLoaded = !!((_seriesSelectorState$ = seriesSelectorState.options) !== null && _seriesSelectorState$ !== void 0 && (_seriesSelectorState$ = _seriesSelectorState$.find(function (option) {
37596
- return option.value === (newSerie === null || newSerie === void 0 ? void 0 : newSerie._id);
37597
- })) !== null && _seriesSelectorState$ !== void 0 && (_seriesSelectorState$ = _seriesSelectorState$.data) !== null && _seriesSelectorState$ !== void 0 && _seriesSelectorState$.serieNo);
37598
- if (!isLoaded) {
37599
- _context.next = 6;
37600
- break;
37601
- }
37602
- setSelectedSerie(newSerie);
37603
- return _context.abrupt("return");
37604
- case 6:
37605
- //fetching of pricefeatruegroups is slow, so we can't fetch it in the list, but only for the selected serie
37606
- seriesSelectorState.setLoading(true);
37607
- api = new _default$d({
37608
- type: 'SelectSimple',
37609
- apiInterface: {
37610
- read: idmService + "/v3.0/catalogs/".concat(catalogId, "/series/").concat(newSerie._id, "?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts")
37611
- }
37612
- }, root);
37613
- _context.next = 10;
37614
- return api.read();
37615
- case 10:
37616
- serie = _context.sent;
37617
- //save the extended series data in the options, without triggering state change
37618
- option = (_seriesSelectorState$2 = seriesSelectorState.options) === null || _seriesSelectorState$2 === void 0 ? void 0 : _seriesSelectorState$2.find(function (option) {
37619
- return option.value === newSerie._id;
37620
- });
37621
- if (option) {
37622
- option.data = serie;
37623
- }
37624
- setSelectedSerie(serie);
37625
- seriesSelectorState.setLoading(false);
37626
- case 15:
37627
- case "end":
37628
- return _context.stop();
37629
- }
37630
- }, _callee);
37631
- }));
37632
- return function fetchSerie(_x) {
37633
- return _ref2.apply(this, arguments);
37634
- };
37635
- }();
37636
- var onChange = function onChange(value) {
37637
- setSelected(value);
37638
- fetchSerie(value);
37639
- };
37640
- return {
37641
- catalogId: catalogId,
37642
- seriesSelectorState: seriesSelectorState,
37643
- apiInterface: apiInterface,
37644
- selectMapping: selectMapping,
37645
- selectedSerie: selected,
37646
- onChange: onChange
37647
- };
37648
- };
37649
36751
 
37650
36752
  function useModule (currentModules) {
37651
36753
  var root = useStore();
@@ -38095,19 +37197,18 @@ var TableItems = observer(function () {
38095
37197
  apiConfig = _useModule.apiConfig,
38096
37198
  organizationId = _useModule.organizationId;
38097
37199
  useTools({
38098
- catalogId: catalogId,
38099
- serie: selectedSerie,
38100
- setSerie: setSelectedSerie,
38101
- setArticle: setSelectedItem,
38102
- item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
38103
- });
37200
+ catalogId: catalogId,
37201
+ serie: selectedSerie,
37202
+ setSerie: setSelectedSerie,
37203
+ setArticle: setSelectedItem,
37204
+ item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
37205
+ });
38104
37206
  var hooks = useMemo(function () {
38105
37207
  return {
38106
37208
  onCellSelectionChanged: function onCellSelectionChanged(event) {
38107
37209
  // Check if all selections are from the same node
38108
37210
  if (event.selection.length == 1) {
38109
- var _event$selection$;
38110
- setSelectedItem((_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.data);
37211
+ setSelectedItem(event.selection[0].node.data);
38111
37212
  }
38112
37213
  }
38113
37214
  };
@@ -38140,9 +37241,9 @@ var TableSeries = observer(function () {
38140
37241
  var _useTranslation = useTranslation(),
38141
37242
  t = _useTranslation.t;
38142
37243
  var _useModule = useModule(['series']),
37244
+ setGlobalSelectedSerie = _useModule.setSelectedSerie,
38143
37245
  selectedCatalog = _useModule.selectedCatalog,
38144
37246
  selectedGlobalSerie = _useModule.selectedSerie,
38145
- setGlobalSelectedSerie = _useModule.setSelectedSerie,
38146
37247
  catalogId = _useModule.catalogId,
38147
37248
  organizationId = _useModule.organizationId,
38148
37249
  apiConfig = _useModule.apiConfig;
@@ -38186,9 +37287,8 @@ var TableSeries = observer(function () {
38186
37287
  return {
38187
37288
  onCellSelectionChanged: function onCellSelectionChanged(event) {
38188
37289
  if (event.selection.length == 1) {
38189
- var _event$selection$, _event$selection$2;
38190
- setGlobalSelectedSerie((_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.data);
38191
- setSelectedSerie((_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.data);
37290
+ setGlobalSelectedSerie(event.selection[0].node.data);
37291
+ setSelectedSerie(event.selection[0].node.data);
38192
37292
  } else {
38193
37293
  setSelectedSerie(null);
38194
37294
  }
@@ -38524,9 +37624,8 @@ var TableFeatures = observer(function () {
38524
37624
  onCellSelectionChanged: function onCellSelectionChanged(event) {
38525
37625
  // Check if all selections are from the same node
38526
37626
  if (event.selection.length == 1) {
38527
- var _event$selection$;
38528
37627
  updateConfigurator({
38529
- opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
37628
+ opt: event.selection[0].node.data.featureNo
38530
37629
  });
38531
37630
  }
38532
37631
  }
@@ -38733,9 +37832,8 @@ var TableOptions = observer(function () {
38733
37832
  onCellSelectionChanged: function onCellSelectionChanged(event) {
38734
37833
  // Check if all selections are from the same node
38735
37834
  if (event.selection.length == 1) {
38736
- var _event$selection$;
38737
37835
  updateConfigurator({
38738
- opv: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.optionKey
37836
+ opv: event.selection[0].node.data.optionKey
38739
37837
  });
38740
37838
  }
38741
37839
  }
@@ -42367,7 +41465,7 @@ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
42367
41465
  function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
42368
41466
  var ArticleSelection = function ArticleSelection(_ref) {
42369
41467
  var _ref$state = _ref.state,
42370
- itemList = _ref$state.itemList,
41468
+ articleList = _ref$state.articleList,
42371
41469
  articleCodex = _ref$state.articleCodex,
42372
41470
  setArticleCodex = _ref$state.setArticleCodex,
42373
41471
  setDoReset = _ref$state.setDoReset,
@@ -42379,7 +41477,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
42379
41477
  var groups = [];
42380
41478
  var _loop = function _loop() {
42381
41479
  var _mask$articles;
42382
- var article = itemList[i];
41480
+ var article = articleList[i];
42383
41481
  if (mask !== null && mask !== void 0 && (_mask$articles = mask.articles) !== null && _mask$articles !== void 0 && _mask$articles[article.value].hidden) return 1; // continue
42384
41482
  if (!article.groupName) article.groupName = 'NONE';
42385
41483
  var group = groups.find(function (g) {
@@ -42395,7 +41493,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
42395
41493
  });
42396
41494
  }
42397
41495
  };
42398
- for (var i = 0; i < itemList.length; i++) {
41496
+ for (var i = 0; i < articleList.length; i++) {
42399
41497
  if (_loop()) continue;
42400
41498
  }
42401
41499
  return groups.map(function (g) {
@@ -42403,7 +41501,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
42403
41501
  label: t('configuration.group.' + g.label, g.label)
42404
41502
  });
42405
41503
  });
42406
- }, [itemList]);
41504
+ }, [articleList]);
42407
41505
  return /*#__PURE__*/jsxs("div", {
42408
41506
  className: wrapper$1,
42409
41507
  children: [/*#__PURE__*/jsx(Select$1, {
@@ -42450,30 +41548,26 @@ function useWysiwyg$1(_ref) {
42450
41548
  setArticleCodex = _useState6[1];
42451
41549
  var _useState7 = useState([]),
42452
41550
  _useState8 = _slicedToArray(_useState7, 2),
42453
- itemList = _useState8[0],
42454
- setItemList = _useState8[1];
41551
+ articleList = _useState8[0],
41552
+ setArticleList = _useState8[1];
42455
41553
  var _useState9 = useState({
42456
41554
  catalogCodex: (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.catalogCodex
42457
41555
  }),
42458
41556
  _useState10 = _slicedToArray(_useState9, 2),
42459
- serie = _useState10[0],
42460
- setSerie = _useState10[1];
41557
+ catalog = _useState10[0],
41558
+ setCatalog = _useState10[1];
42461
41559
  var _useState11 = useState([]),
42462
41560
  _useState12 = _slicedToArray(_useState11, 2),
42463
- serieList = _useState12[0],
42464
- setSerieList = _useState12[1];
42465
- var _useState13 = useState(tool.parameters.catalogId),
41561
+ catalogList = _useState12[0],
41562
+ setCatalogList = _useState12[1];
41563
+ var _useState13 = useState(),
42466
41564
  _useState14 = _slicedToArray(_useState13, 2),
42467
- catalogId = _useState14[0],
42468
- setCatalogId = _useState14[1];
41565
+ currentNav = _useState14[0],
41566
+ setCurrentNav = _useState14[1];
42469
41567
  var _useState15 = useState(),
42470
41568
  _useState16 = _slicedToArray(_useState15, 2),
42471
- currentNav = _useState16[0],
42472
- setCurrentNav = _useState16[1];
42473
- var _useState17 = useState(),
42474
- _useState18 = _slicedToArray(_useState17, 2),
42475
- doNavigate = _useState18[0],
42476
- setDoNavigate = _useState18[1];
41569
+ doNavigate = _useState16[0],
41570
+ setDoNavigate = _useState16[1];
42477
41571
  useEffect(function () {
42478
41572
  if (!toolbar.hidden) setDoReset(true);
42479
41573
  }, [toolbar.hidden]);
@@ -42536,8 +41630,7 @@ function useWysiwyg$1(_ref) {
42536
41630
  });
42537
41631
  case 3:
42538
41632
  d = _context2.sent;
42539
- setCatalogId(d._id);
42540
- _context2.next = 7;
41633
+ _context2.next = 6;
42541
41634
  return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs/' + d._id + '/series', {
42542
41635
  method: 'GET',
42543
41636
  headers: _objectSpread$4({}, jwt ? {
@@ -42552,10 +41645,10 @@ function useWysiwyg$1(_ref) {
42552
41645
  return undefined;
42553
41646
  }
42554
41647
  });
42555
- case 7:
41648
+ case 6:
42556
41649
  s = _context2.sent;
42557
- setSerieList(s.data);
42558
- case 9:
41650
+ setCatalogList(s.data);
41651
+ case 8:
42559
41652
  case "end":
42560
41653
  return _context2.stop();
42561
41654
  }
@@ -42589,7 +41682,7 @@ function useWysiwyg$1(_ref) {
42589
41682
  });
42590
41683
  case 3:
42591
41684
  l = _context3.sent;
42592
- setSerieList(l.data);
41685
+ setCatalogList(l.data);
42593
41686
  case 5:
42594
41687
  case "end":
42595
41688
  return _context3.stop();
@@ -42604,7 +41697,7 @@ function useWysiwyg$1(_ref) {
42604
41697
  if (doReset) {
42605
41698
  var _tool$elementProps, _tool$elementProps3;
42606
41699
  if (currentNav) setDoNavigate(currentNav);
42607
- if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !serieList.length) {
41700
+ if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !catalogList.length) {
42608
41701
  var _tool$elementProps2;
42609
41702
  if ((_tool$elementProps2 = tool.elementProps) !== null && _tool$elementProps2 !== void 0 && _tool$elementProps2.loadPackage) {
42610
41703
  loadPackage(tool.parameters.packageId);
@@ -42623,20 +41716,20 @@ function useWysiwyg$1(_ref) {
42623
41716
  }, [doReset]);
42624
41717
  useEffect(function () {
42625
41718
  setArticleCodex(undefined);
42626
- if (serie !== null && serie !== void 0 && serie.catalogCodex) {
41719
+ if (catalog !== null && catalog !== void 0 && catalog.catalogCodex) {
42627
41720
  var _tool$parameters$pack;
42628
41721
  setMask({
42629
- catalogCodex: serie.catalogCodex,
41722
+ catalogCodex: catalog.catalogCodex,
42630
41723
  accountId: (_tool$parameters$pack = tool.parameters.packageId) !== null && _tool$parameters$pack !== void 0 ? _tool$parameters$pack : tool.parameters.catalogId
42631
41724
  });
42632
41725
  }
42633
- }, [serie]);
41726
+ }, [catalog]);
42634
41727
  useEffect(function () {
42635
41728
  setDoReset(true);
42636
41729
  setArticleCodex(undefined);
42637
- setSerie(undefined);
42638
- setItemList([]);
42639
- setSerieList([]);
41730
+ setCatalog(undefined);
41731
+ setArticleList([]);
41732
+ setCatalogList([]);
42640
41733
  }, [tool.parameters.catalogId, tool.parameters.packageId]);
42641
41734
  var onEventCalled = /*#__PURE__*/function () {
42642
41735
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
@@ -42655,7 +41748,7 @@ function useWysiwyg$1(_ref) {
42655
41748
  groupName: article.groupName
42656
41749
  });
42657
41750
  }
42658
- setItemList(articles);
41751
+ setArticleList(articles);
42659
41752
  if (articleCodex === undefined && articles !== null && articles !== void 0 && (_articles$ = articles[0]) !== null && _articles$ !== void 0 && _articles$.value) setArticleCodex(articles[0].value);
42660
41753
  }
42661
41754
  if (e.type === 'navigatedToOption') {
@@ -42762,21 +41855,20 @@ function useWysiwyg$1(_ref) {
42762
41855
  };
42763
41856
  }, []);
42764
41857
  return {
42765
- itemList: itemList,
42766
- setItemList: setItemList,
41858
+ articleList: articleList,
41859
+ setArticleList: setArticleList,
42767
41860
  articleCodex: articleCodex,
42768
41861
  setArticleCodex: setArticleCodex,
42769
- serieList: serieList,
42770
- setSerieList: setSerieList,
42771
- serie: serie,
42772
- setSerie: setSerie,
41862
+ catalogList: catalogList,
41863
+ setCatalogList: setCatalogList,
41864
+ catalog: catalog,
41865
+ setCatalog: setCatalog,
42773
41866
  settings: settings,
42774
41867
  mask: mask,
42775
41868
  doReset: doReset,
42776
41869
  setDoReset: setDoReset,
42777
41870
  doNavigate: doNavigate,
42778
- setDoNavigate: setDoNavigate,
42779
- catalogId: catalogId
41871
+ setDoNavigate: setDoNavigate
42780
41872
  };
42781
41873
  }
42782
41874
 
@@ -42828,27 +41920,27 @@ styleInject(css_248z$2);
42828
41920
 
42829
41921
  var CatalogSelection = function CatalogSelection(_ref) {
42830
41922
  var _ref$state = _ref.state,
42831
- serieList = _ref$state.serieList,
42832
- serie = _ref$state.serie,
42833
- setSerie = _ref$state.setSerie,
41923
+ catalogList = _ref$state.catalogList,
41924
+ catalog = _ref$state.catalog,
41925
+ setCatalog = _ref$state.setCatalog,
42834
41926
  setArticleCodex = _ref$state.setArticleCodex,
42835
- setSerieProp = _ref.setSerie;
41927
+ setSerie = _ref.setSerie;
42836
41928
  var _useTranslation = useTranslation(),
42837
41929
  t = _useTranslation.t,
42838
41930
  language = _useTranslation.i18n.language;
42839
41931
  var options = useMemo(function () {
42840
41932
  var groups = [];
42841
- for (var i = 0; i < serieList.length; i++) {
42842
- var c = serieList[i];
41933
+ for (var i = 0; i < catalogList.length; i++) {
41934
+ var c = catalogList[i];
42843
41935
  groups.push({
42844
41936
  value: c.serieNo.toString(),
42845
41937
  label: c.seriesName[language.toUpperCase()]
42846
41938
  });
42847
41939
  }
42848
41940
  return groups;
42849
- }, [serieList]);
41941
+ }, [catalogList]);
42850
41942
  var onChange = function onChange(val) {
42851
- var cat = serieList.find(function (c) {
41943
+ var cat = catalogList.find(function (c) {
42852
41944
  return c.serieNo.toString() == val;
42853
41945
  });
42854
41946
  var catalog = cat ? {
@@ -42856,15 +41948,15 @@ var CatalogSelection = function CatalogSelection(_ref) {
42856
41948
  serieId: cat._id,
42857
41949
  accountId: cat.catalogId
42858
41950
  } : undefined;
42859
- setSerie(catalog);
41951
+ setCatalog(catalog);
42860
41952
  setArticleCodex(undefined);
42861
- setSerieProp === null || setSerieProp === void 0 || setSerieProp(cat);
41953
+ setSerie === null || setSerie === void 0 || setSerie(cat);
42862
41954
  };
42863
41955
  return /*#__PURE__*/jsx("div", {
42864
41956
  className: wrapper,
42865
41957
  children: /*#__PURE__*/jsx(Select$1, {
42866
41958
  placeholder: t('backoffice.configurator.serie.placeholder'),
42867
- value: serie === null || serie === void 0 ? void 0 : serie.catalogCodex,
41959
+ value: catalog === null || catalog === void 0 ? void 0 : catalog.catalogCodex,
42868
41960
  options: options,
42869
41961
  onChange: onChange,
42870
41962
  className: select
@@ -42876,7 +41968,7 @@ var CatalogSelection$1 = observer(CatalogSelection);
42876
41968
  function ownKeys$3(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; }
42877
41969
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
42878
41970
  var Wsyiwyg = function Wsyiwyg(_ref) {
42879
- var _state$serie, _tool$parameters, _state$articleCodex, _state$serie$catalogC, _state$serie2, _state$mask2, _state$serie3, _state$serie$accountI, _state$serie4, _state$mask3;
41971
+ var _state$catalog, _tool$parameters, _state$articleCodex, _state$catalog$catalo, _state$catalog2, _state$mask2, _state$catalog3, _state$catalog$accoun, _state$catalog4, _state$mask3;
42880
41972
  var tool = _ref.tool,
42881
41973
  toolbar = _ref.toolbar;
42882
41974
  var _useDivaCore = useDivaCore(),
@@ -42895,32 +41987,17 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
42895
41987
  }, [tool.parameters]);
42896
41988
  useEffect(function () {
42897
41989
  if (tool.elementProps.initSerie) {
42898
- if (tool.elementProps.useEnricherService) {
42899
- var _state$serieList$find;
42900
- var serie = {
42901
- serieId: (_state$serieList$find = state.serieList.find(function (s) {
42902
- return s.serieNo == tool.elementProps.initSerie.serieNo;
42903
- })) === null || _state$serieList$find === void 0 ? void 0 : _state$serieList$find._id,
42904
- catalogCodex: tool.elementProps.initSerie.serieNo.toString(),
42905
- accountId: state.catalogId
42906
- };
42907
- if (JSON.stringify(state.serie) !== JSON.stringify(serie)) {
42908
- state.setSerie(serie);
42909
- state.setArticleCodex(undefined);
42910
- }
42911
- } else {
42912
- state.setSerie({
42913
- serieId: tool.elementProps.initSerie.serieId,
42914
- catalogCodex: tool.elementProps.initSerie.serieNo.toString()
42915
- });
42916
- state.setArticleCodex(undefined);
42917
- }
41990
+ state.setCatalog({
41991
+ serieId: tool.elementProps.initSerie.serieId,
41992
+ catalogCodex: tool.elementProps.initSerie.serieNo.toString()
41993
+ });
41994
+ state.setArticleCodex(undefined);
42918
41995
  }
42919
41996
  if (tool.elementProps.initItem) {
42920
41997
  state.setArticleCodex(tool.elementProps.initItem);
42921
41998
  }
42922
- }, [tool.elementProps.initItem, tool.elementProps.initSerie, state.serieList]);
42923
- if (!((_state$serie = state.serie) !== null && _state$serie !== void 0 && _state$serie.catalogCodex)) {
41999
+ }, [tool.elementProps.initItem, tool.elementProps.initSerie]);
42000
+ if (!((_state$catalog = state.catalog) !== null && _state$catalog !== void 0 && _state$catalog.catalogCodex)) {
42924
42001
  if (tool.elementProps.showCatalogSelection) {
42925
42002
  return /*#__PURE__*/jsx(CatalogSelection$1, {
42926
42003
  state: state,
@@ -42958,11 +42035,11 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
42958
42035
  resetArticle: '',
42959
42036
  disableToggle: '1',
42960
42037
  startDivaNr: 'DIVA-000000',
42961
- catalogCodex: (_state$serie$catalogC = (_state$serie2 = state.serie) === null || _state$serie2 === void 0 ? void 0 : _state$serie2.catalogCodex) !== null && _state$serie$catalogC !== void 0 ? _state$serie$catalogC : (_state$mask2 = state.mask) === null || _state$mask2 === void 0 ? void 0 : _state$mask2.catalogCodex
42962
- }, (_state$serie3 = state.serie) !== null && _state$serie3 !== void 0 && _state$serie3.serieId ? {
42963
- serieId: state.serie.serieId
42038
+ catalogCodex: (_state$catalog$catalo = (_state$catalog2 = state.catalog) === null || _state$catalog2 === void 0 ? void 0 : _state$catalog2.catalogCodex) !== null && _state$catalog$catalo !== void 0 ? _state$catalog$catalo : (_state$mask2 = state.mask) === null || _state$mask2 === void 0 ? void 0 : _state$mask2.catalogCodex
42039
+ }, (_state$catalog3 = state.catalog) !== null && _state$catalog3 !== void 0 && _state$catalog3.serieId ? {
42040
+ serieId: state.catalog.serieId
42964
42041
  } : {}), {}, {
42965
- accountGuid: (_state$serie$accountI = (_state$serie4 = state.serie) === null || _state$serie4 === void 0 ? void 0 : _state$serie4.accountId) !== null && _state$serie$accountI !== void 0 ? _state$serie$accountI : (_state$mask3 = state.mask) === null || _state$mask3 === void 0 ? void 0 : _state$mask3.accountId,
42042
+ accountGuid: (_state$catalog$accoun = (_state$catalog4 = state.catalog) === null || _state$catalog4 === void 0 ? void 0 : _state$catalog4.accountId) !== null && _state$catalog$accoun !== void 0 ? _state$catalog$accoun : (_state$mask3 = state.mask) === null || _state$mask3 === void 0 ? void 0 : _state$mask3.accountId,
42966
42043
  returnTo: 'DONT_SAVE_BASKET',
42967
42044
  organizationId: organizationId,
42968
42045
  no3DConnection: 'true'