@crystaldesign/diva-backoffice 25.8.0-beta.32 → 25.8.0-beta.4

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 +498 -1485
  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 -7
  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',
@@ -7655,12 +7648,10 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7655
7648
  create: '${authService}/v2/organizations/${parentId}'
7656
7649
  },
7657
7650
  triggerRerender: true,
7658
- enableSearch: true,
7659
7651
  items: [{
7660
7652
  name: 'type',
7661
7653
  label: t('backoffice.form.organizationdetails.items.type'),
7662
7654
  type: 'radio',
7663
- showInAllTabs: true,
7664
7655
  options: [{
7665
7656
  value: undefined,
7666
7657
  label: t('backoffice.form.SHELL'),
@@ -7748,7 +7739,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7748
7739
  permission: 'backoffice_admin_organizations'
7749
7740
  }, {
7750
7741
  name: t('backoffice.subtitle.generally'),
7751
- tabgroup: t('backoffice.subtitle.generally'),
7752
7742
  type: 'subTitle',
7753
7743
  orientation: 'left',
7754
7744
  style: {
@@ -7756,13 +7746,11 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7756
7746
  }
7757
7747
  }, {
7758
7748
  name: '_id',
7759
- tabgroup: t('backoffice.subtitle.generally'),
7760
7749
  label: 'ID',
7761
7750
  type: 'input',
7762
7751
  readonly: true
7763
7752
  }, {
7764
7753
  name: 'displayName',
7765
- tabgroup: t('backoffice.subtitle.generally'),
7766
7754
  label: t('backoffice.form.organizationdetails.items.displayName'),
7767
7755
  required: true,
7768
7756
  type: 'input',
@@ -7774,7 +7762,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7774
7762
  }, {
7775
7763
  label: t('backoffice.form.organizationdetails.items.internalId'),
7776
7764
  name: 'internalId',
7777
- tabgroup: t('backoffice.subtitle.generally'),
7778
7765
  type: 'input',
7779
7766
  hidden: function hidden(data) {
7780
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';
@@ -7782,7 +7769,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7782
7769
  }, {
7783
7770
  name: 'description',
7784
7771
  label: t('backoffice.form.organizationdetails.items.description'),
7785
- tabgroup: t('backoffice.subtitle.generally'),
7786
7772
  type: 'textarea'
7787
7773
  }, {
7788
7774
  name: 'street',
@@ -7790,7 +7776,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7790
7776
  required: function required(data) {
7791
7777
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7792
7778
  },
7793
- tabgroup: t('backoffice.subtitle.generally'),
7794
7779
  type: 'input',
7795
7780
  hidden: function hidden(data) {
7796
7781
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7801,7 +7786,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7801
7786
  required: function required(data) {
7802
7787
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7803
7788
  },
7804
- tabgroup: t('backoffice.subtitle.generally'),
7805
7789
  type: 'input',
7806
7790
  hidden: function hidden(data) {
7807
7791
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7812,7 +7796,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7812
7796
  required: function required(data) {
7813
7797
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7814
7798
  },
7815
- tabgroup: t('backoffice.subtitle.generally'),
7816
7799
  type: 'input',
7817
7800
  hidden: function hidden(data) {
7818
7801
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7820,7 +7803,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7820
7803
  }, {
7821
7804
  label: t('backoffice.form.organizationdetails.items.region'),
7822
7805
  name: 'region',
7823
- tabgroup: t('backoffice.subtitle.generally'),
7824
7806
  type: 'input',
7825
7807
  hidden: function hidden(data) {
7826
7808
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7828,7 +7810,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7828
7810
  }, {
7829
7811
  name: 'countryCode',
7830
7812
  label: t('backoffice.form.organizationdetails.items.countryCode'),
7831
- tabgroup: t('backoffice.subtitle.generally'),
7832
7813
  type: 'selectSimple',
7833
7814
  apiInterface: {
7834
7815
  read: {
@@ -7847,7 +7828,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7847
7828
  }, {
7848
7829
  name: 'contact',
7849
7830
  label: 'backoffice.organization.contact',
7850
- tabgroup: t('backoffice.subtitle.generally'),
7851
7831
  type: 'select',
7852
7832
  mode: 'single',
7853
7833
  selectMapping: {
@@ -7889,7 +7869,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7889
7869
  }, {
7890
7870
  name: 'email',
7891
7871
  label: t('backoffice.form.organizationdetails.items.email'),
7892
- tabgroup: t('backoffice.subtitle.generally'),
7893
7872
  type: 'input',
7894
7873
  hidden: function hidden(data) {
7895
7874
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7897,7 +7876,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7897
7876
  }, {
7898
7877
  name: 'phone',
7899
7878
  label: t('backoffice.form.organizationdetails.items.phone'),
7900
- tabgroup: t('backoffice.subtitle.generally'),
7901
7879
  type: 'input',
7902
7880
  hidden: function hidden(data) {
7903
7881
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7905,7 +7883,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7905
7883
  }, {
7906
7884
  name: 'fax',
7907
7885
  label: t('backoffice.form.organizationdetails.items.fax'),
7908
- tabgroup: t('backoffice.subtitle.generally'),
7909
7886
  type: 'input',
7910
7887
  hidden: function hidden(data) {
7911
7888
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7913,7 +7890,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7913
7890
  }, {
7914
7891
  name: 'homepage',
7915
7892
  label: t('backoffice.form.organizationdetails.items.homepage'),
7916
- tabgroup: t('backoffice.subtitle.generally'),
7917
7893
  type: 'input',
7918
7894
  hidden: function hidden(data) {
7919
7895
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7924,7 +7900,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7924
7900
  catalogCodex: ['defaultCatalog', 'catalogCodex'],
7925
7901
  label: t('backoffice.form.organizationdetails.items.selectClientRelationCatalog'),
7926
7902
  type: 'selectClientRelationCatalog',
7927
- tabgroup: t('backoffice.subtitle.generally'),
7928
7903
  apiInterface: {
7929
7904
  read: '${authService}/v2/organizations/${organizationId}'
7930
7905
  },
@@ -7933,18 +7908,15 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7933
7908
  }
7934
7909
  }, {
7935
7910
  name: ['defaultCatalog', 'accountId'],
7936
- hidden: true,
7937
- tabgroup: t('backoffice.subtitle.generally')
7911
+ hidden: true
7938
7912
  },
7939
7913
  // these fields are needed otherwise they dont get saved
7940
7914
  {
7941
7915
  name: ['defaultCatalog', 'catalogCodex'],
7942
- hidden: true,
7943
- tabgroup: t('backoffice.subtitle.generally')
7916
+ hidden: true
7944
7917
  }, {
7945
7918
  name: ['settings', 'sendOrders'],
7946
7919
  label: t('backoffice.form.organizationdetails.items.settings.sendOrders'),
7947
- tabgroup: t('backoffice.subtitle.generally'),
7948
7920
  type: 'radio',
7949
7921
  optionType: 'button',
7950
7922
  options: [{
@@ -7961,13 +7933,11 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7961
7933
  }, {
7962
7934
  name: ['settings', 'sendOrdersEmail'],
7963
7935
  label: t('backoffice.form.organizationdetails.items.settings.sendOrdersEmail'),
7964
- tabgroup: t('backoffice.subtitle.generally'),
7965
7936
  type: 'input',
7966
7937
  permission: 'backoffice_admin_organizations'
7967
7938
  }, {
7968
7939
  name: 'iwofurn',
7969
7940
  label: t('backoffice.form.organizationdetails.items.iwofurn'),
7970
- tabgroup: t('backoffice.subtitle.generally'),
7971
7941
  type: 'checkbox',
7972
7942
  hidden: function hidden(data) {
7973
7943
  return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
@@ -7985,7 +7955,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7985
7955
  }
7986
7956
  }, {
7987
7957
  name: t('backoffice.subtitle.iwofurn'),
7988
- tabgroup: t('backoffice.subtitle.generally'),
7989
7958
  type: 'subTitle',
7990
7959
  orientation: 'left',
7991
7960
  style: {
@@ -7998,7 +7967,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7998
7967
  }, {
7999
7968
  name: ['iwoFurnOptions', 'iwofurnUsername'],
8000
7969
  label: t('backoffice.form.organizationdetails.items.iwoFurnOptions.iwofurnUsername'),
8001
- tabgroup: t('backoffice.subtitle.generally'),
8002
7970
  type: 'input',
8003
7971
  syncDataWithUserInput: true,
8004
7972
  required: function required(data) {
@@ -8010,7 +7978,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8010
7978
  }, {
8011
7979
  name: ['iwoFurnOptions', 'pwdHash'],
8012
7980
  label: t('backoffice.form.organizationdetails.items.iwoFurnOptions.pwdHash'),
8013
- tabgroup: t('backoffice.subtitle.generally'),
8014
7981
  type: 'password',
8015
7982
  syncDataWithUserInput: true,
8016
7983
  required: function required(data) {
@@ -8022,7 +7989,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8022
7989
  }, {
8023
7990
  name: ['iwoFurnOptions', 'iwofurnSenderGLN'],
8024
7991
  label: t('backoffice.form.organizationdetails.items.iwofurnSenderGLN'),
8025
- tabgroup: t('backoffice.subtitle.generally'),
8026
7992
  type: 'input',
8027
7993
  required: function required(data) {
8028
7994
  return data === null || data === void 0 ? void 0 : data.iwofurn;
@@ -8033,7 +7999,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8033
7999
  }, {
8034
8000
  name: ['iwoFurnOptions', 'iwofurnRecipientGLN'],
8035
8001
  label: t('backoffice.form.organizationdetails.items.iwofurnRecipientGLN'),
8036
- tabgroup: t('backoffice.subtitle.generally'),
8037
8002
  type: 'input',
8038
8003
  required: function required(data) {
8039
8004
  return data === null || data === void 0 ? void 0 : data.iwofurn;
@@ -8044,7 +8009,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8044
8009
  }, {
8045
8010
  name: ['iwoFurnOptions', 'sendIWOBasketEKPriceType'],
8046
8011
  label: t('backoffice.form.organizationdetails.items.sendIWOBasketEKPriceType'),
8047
- tabgroup: t('backoffice.subtitle.generally'),
8048
8012
  type: 'input',
8049
8013
  hidden: function hidden(data) {
8050
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';
@@ -8064,7 +8028,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8064
8028
  }
8065
8029
  }, {
8066
8030
  name: t('backoffice.form.organizationdetails.items.licenses'),
8067
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8068
8031
  type: 'subTitle',
8069
8032
  orientation: 'left',
8070
8033
  style: {
@@ -8074,7 +8037,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8074
8037
  }, {
8075
8038
  name: 'Info',
8076
8039
  type: 'text',
8077
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8078
8040
  style: {
8079
8041
  marginBottom: '30px'
8080
8042
  },
@@ -8083,7 +8045,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8083
8045
  }, {
8084
8046
  name: ['settings', 'enable3DExport'],
8085
8047
  label: t('backoffice.form.organizationdetails.items.settings.enable3DExport'),
8086
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8087
8048
  type: 'radio',
8088
8049
  optionType: 'button',
8089
8050
  options: [{
@@ -8101,7 +8062,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8101
8062
  name: ['settings', 'renderjobSeparateMaterials'],
8102
8063
  label: t('backoffice.form.organizationdetails.items.settings.renderjobSeparateMaterials'),
8103
8064
  permission: 'backoffice_admin_organizations',
8104
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8105
8065
  type: 'radio',
8106
8066
  optionType: 'button',
8107
8067
  options: [{
@@ -8118,7 +8078,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8118
8078
  name: ['settings', 'enableAR'],
8119
8079
  label: t('backoffice.form.organizationdetails.items.settings.enableAR'),
8120
8080
  permission: 'backoffice_admin_organizations',
8121
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8122
8081
  type: 'radio',
8123
8082
  optionType: 'button',
8124
8083
  options: [{
@@ -8135,7 +8094,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8135
8094
  name: ['settings', 'enableRTV'],
8136
8095
  label: t('backoffice.form.organizationdetails.items.settings.enableRTV'),
8137
8096
  permission: 'backoffice_admin_organizations',
8138
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8139
8097
  type: 'radio',
8140
8098
  optionType: 'button',
8141
8099
  options: [{
@@ -8153,7 +8111,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8153
8111
  label: t('backoffice.form.organizationdetails.items.settings.forceRTV'),
8154
8112
  permission: 'backoffice_admin_organizations',
8155
8113
  type: 'radio',
8156
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8157
8114
  optionType: 'button',
8158
8115
  options: [{
8159
8116
  label: t('backoffice.form.organizationdetails.items.vererbt'),
@@ -8168,7 +8125,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8168
8125
  }, {
8169
8126
  name: ['settings', 'enableVKMarketing'],
8170
8127
  label: t('backoffice.form.organizationdetails.items.settings.enableVKMarketing'),
8171
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8172
8128
  permission: 'backoffice_admin_organizations',
8173
8129
  type: 'radio',
8174
8130
  hidden: function hidden(data) {
@@ -8189,7 +8145,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8189
8145
  name: ['settings', 'pricePreview'],
8190
8146
  label: t('backoffice.form.organizationdetails.items.settings.pricePreview'),
8191
8147
  permission: 'backoffice_admin_organizations',
8192
- tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8193
8148
  type: 'radio',
8194
8149
  optionType: 'button',
8195
8150
  options: [{
@@ -8208,31 +8163,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8208
8163
  label: t('backoffice.form.organizationdetails.items.fromCurrentPriceHideCurrent'),
8209
8164
  value: 'fromCurrentPriceHideCurrent'
8210
8165
  }]
8211
- }, {
8212
- name: t('backoffice.subtitle.configurator'),
8213
- type: 'subTitle',
8214
- orientation: 'left',
8215
- style: {
8216
- marginBottom: '40px'
8217
- },
8218
- permission: 'backoffice_admin_organizations',
8219
- hidden: function hidden(data) {
8220
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8221
- }
8222
- }, {
8223
- name: 'privacyPolicyUrl',
8224
- label: t('backoffice.form.organizationdetails.items.privacyPolicyUrl'),
8225
- type: 'input',
8226
- hidden: function hidden(data) {
8227
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8228
- }
8229
- }, {
8230
- name: 'termsAndConditionsUrl',
8231
- label: t('backoffice.form.organizationdetails.items.termsAndConditionsUrl'),
8232
- type: 'input',
8233
- hidden: function hidden(data) {
8234
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8235
- }
8236
8166
  }, {
8237
8167
  name: t('backoffice.subtitle.advanced'),
8238
8168
  type: 'subTitle',
@@ -8624,131 +8554,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8624
8554
  label: t('backoffice.currentorg.items.shopType.store'),
8625
8555
  value: 'store'
8626
8556
  }]
8627
- }, {
8628
- type: 'subTitle',
8629
- name: t('backoffice.form.organizationdetails.socialUrls'),
8630
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData')
8631
- }, {
8632
- name: ['socialUrls', 'facebook'],
8633
- label: t('backoffice.form.organizationdetails.items.facebookUrl'),
8634
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8635
- type: 'input',
8636
- hidden: function hidden(data) {
8637
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8638
- }
8639
- }, {
8640
- name: ['socialUrls', 'instagram'],
8641
- label: t('backoffice.form.organizationdetails.items.instagramUrl'),
8642
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8643
- type: 'input',
8644
- hidden: function hidden(data) {
8645
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8646
- }
8647
- }, {
8648
- name: ['socialUrls', 'x'],
8649
- label: t('backoffice.form.organizationdetails.items.xUrl'),
8650
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8651
- type: 'input',
8652
- hidden: function hidden(data) {
8653
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8654
- }
8655
- }, {
8656
- name: ['socialUrls', 'linkedin'],
8657
- label: t('backoffice.form.organizationdetails.items.linkedinUrl'),
8658
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8659
- type: 'input',
8660
- hidden: function hidden(data) {
8661
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8662
- }
8663
- }, {
8664
- name: ['socialUrls', 'youtube'],
8665
- label: t('backoffice.form.organizationdetails.items.youtubeUrl'),
8666
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8667
- type: 'input',
8668
- hidden: function hidden(data) {
8669
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8670
- }
8671
- }, {
8672
- type: 'subTitle',
8673
- name: t('backoffice.form.organizationdetails.additionalContactData'),
8674
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData')
8675
- }, {
8676
- name: ['additionalContactData'],
8677
- label: t('Zusätzliche Kontaktdaten'),
8678
- tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8679
- type: 'array',
8680
- items: [{
8681
- name: 'description',
8682
- label: t('backoffice.form.organizationdetails.items.description'),
8683
- type: 'input',
8684
- hidden: function hidden(data) {
8685
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8686
- }
8687
- }, {
8688
- name: 'street',
8689
- label: t('backoffice.form.organizationdetails.items.street'),
8690
- type: 'input',
8691
- hidden: function hidden(data) {
8692
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8693
- }
8694
- }, {
8695
- label: t('backoffice.form.organizationdetails.items.zipCode'),
8696
- name: 'zipCode',
8697
- type: 'input',
8698
- hidden: function hidden(data) {
8699
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8700
- }
8701
- }, {
8702
- label: t('backoffice.form.organizationdetails.items.city'),
8703
- name: 'city',
8704
- type: 'input',
8705
- hidden: function hidden(data) {
8706
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8707
- }
8708
- }, {
8709
- name: 'countryCode',
8710
- label: t('backoffice.form.organizationdetails.items.countryCode'),
8711
- type: 'selectSimple',
8712
- apiInterface: {
8713
- read: {
8714
- list: '/country_codes.json',
8715
- "public": true
8716
- }
8717
- },
8718
- selectMapping: {
8719
- label: "${".concat(lang, "}"),
8720
- value: '${code}',
8721
- externalValue: 'value'
8722
- },
8723
- placeholder: t('backoffice.form.organizationdetails.items.selectCountryCode'),
8724
- allowClear: true,
8725
- search: true
8726
- }, {
8727
- name: 'email',
8728
- label: t('backoffice.form.organizationdetails.items.email'),
8729
- type: 'input',
8730
- hidden: function hidden(data) {
8731
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8732
- }
8733
- }, {
8734
- name: 'phone',
8735
- label: t('backoffice.form.organizationdetails.items.phone'),
8736
- type: 'input',
8737
- hidden: function hidden(data) {
8738
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8739
- }
8740
- }, {
8741
- name: 'info',
8742
- label: t('backoffice.form.organizationdetails.items.info'),
8743
- type: 'textarea',
8744
- hidden: function hidden(data) {
8745
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8746
- }
8747
- }, {
8748
- type: 'divider',
8749
- name: ''
8750
- }],
8751
- initialValue: []
8752
8557
  }]
8753
8558
  },
8754
8559
  FromAffilateOrganizationDetails: {
@@ -9004,14 +8809,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9004
8809
  }, {
9005
8810
  name: 'mediaItemRefVideo',
9006
8811
  hidden: true
9007
- }, {
9008
- name: 'loop',
9009
- type: 'checkbox',
9010
- label: t('backoffice.form.contentItem.loop'),
9011
- doTranslate: false,
9012
- hidden: function hidden(d) {
9013
- return (d === null || d === void 0 ? void 0 : d.type) !== 'Video';
9014
- }
9015
8812
  }]
9016
8813
  });
9017
8814
  translationItems.push({
@@ -9070,12 +8867,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9070
8867
  label: t('backoffice.form.api2servers.items.url'),
9071
8868
  doTranslate: true
9072
8869
  });
9073
- translationItems.push({
9074
- name: [].concat(_toConsumableArray(p), ['loop']),
9075
- type: 'checkbox',
9076
- label: t('backoffice.form.contentItem.loop'),
9077
- doTranslate: false
9078
- });
9079
8870
  break;
9080
8871
  case 'Wrapper':
9081
8872
  translationItems.push({
@@ -9311,12 +9102,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9311
9102
  label: t('backoffice.form.api2servers.items.url'),
9312
9103
  doTranslate: true
9313
9104
  });
9314
- translationItems.push({
9315
- name: [].concat(_toConsumableArray(p), ['loop']),
9316
- type: 'checkbox',
9317
- label: t('backoffice.form.contentItem.loop'),
9318
- doTranslate: false
9319
- });
9320
9105
  break;
9321
9106
  case 'Wrapper':
9322
9107
  translationItems.push({
@@ -9517,13 +9302,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9517
9302
  name: 'divaNr',
9518
9303
  label: t('backoffice.form.createorupdateviewpoints.items.divaNr'),
9519
9304
  type: 'input'
9520
- }, {
9521
- name: 'functionType',
9522
- label: t('backoffice.form.createorupdateviewpoints.items.functionType'),
9523
- type: 'select',
9524
- required: true,
9525
- values: functionTypeValues,
9526
- mode: 'single'
9527
9305
  }]
9528
9306
  },
9529
9307
  FormCreateOrUpdateRenderPackages: {
@@ -9612,9 +9390,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9612
9390
  label: t('Presets'),
9613
9391
  type: 'array',
9614
9392
  items: [{
9615
- type: 'divider',
9616
- name: ''
9617
- }, {
9618
9393
  type: 'radio',
9619
9394
  name: 'job',
9620
9395
  label: t('Job'),
@@ -9665,13 +9440,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9665
9440
  }
9666
9441
  return hidden;
9667
9442
  }
9668
- }, {
9669
- name: 'functionType',
9670
- label: 'FunctionType',
9671
- type: 'select',
9672
- required: true,
9673
- values: functionTypeValues,
9674
- mode: 'single'
9675
9443
  }, {
9676
9444
  name: 'preset',
9677
9445
  label: t('Preset'),
@@ -9879,7 +9647,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9879
9647
  op: 'gt',
9880
9648
  value: 3
9881
9649
  },
9882
- 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']
9883
9651
  }, {
9884
9652
  name: 'priority',
9885
9653
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10139,7 +9907,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10139
9907
  value: 3
10140
9908
  },
10141
9909
  allowClear: true,
10142
- 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']
10143
9911
  }, {
10144
9912
  name: 'priority',
10145
9913
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10314,7 +10082,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10314
10082
  value: 3
10315
10083
  },
10316
10084
  allowClear: true,
10317
- 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']
10318
10086
  }, {
10319
10087
  name: 'priority',
10320
10088
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10456,7 +10224,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10456
10224
  value: 3
10457
10225
  },
10458
10226
  allowClear: true,
10459
- 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']
10460
10228
  }, {
10461
10229
  name: 'priority',
10462
10230
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10615,7 +10383,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10615
10383
  type: 'select',
10616
10384
  mode: 'single',
10617
10385
  allowClear: true,
10618
- 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']
10619
10387
  }, {
10620
10388
  name: 'priority',
10621
10389
  label: t('backoffice.form.renderjob.items.priority'),
@@ -13478,7 +13246,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
13478
13246
  }
13479
13247
  };
13480
13248
  }
13481
- 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'];
13482
13249
 
13483
13250
  function styleInject(css, ref) {
13484
13251
  if ( ref === void 0 ) ref = {};
@@ -13513,8 +13280,8 @@ var navMinified = "nav-minified-tSt-a";
13513
13280
  var navOverlay = "nav-overlay-rKJNC";
13514
13281
  var navSettings = "nav-settings-82cjv";
13515
13282
  var menuLabel = "menu-label-4dXQk";
13516
- 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";
13517
- 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);
13518
13285
 
13519
13286
  function MenuLabel (_ref) {
13520
13287
  var disabled = _ref.disabled,
@@ -17237,7 +17004,7 @@ var JsonEditor$2 = function JsonEditor(_ref) {
17237
17004
  });
17238
17005
  };
17239
17006
 
17240
- var _excluded$4 = ["key", "name"];
17007
+ var _excluded$3 = ["key", "name"];
17241
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; }
17242
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; }
17243
17010
  var FormList$2 = function FormList(_ref) {
@@ -17273,7 +17040,7 @@ var FormList$2 = function FormList(_ref) {
17273
17040
  children: [fields.map(function (_ref3) {
17274
17041
  var key = _ref3.key,
17275
17042
  name = _ref3.name,
17276
- restField = _objectWithoutProperties(_ref3, _excluded$4);
17043
+ restField = _objectWithoutProperties(_ref3, _excluded$3);
17277
17044
  return /*#__PURE__*/jsxs("div", {
17278
17045
  id: key.toString(),
17279
17046
  style: {
@@ -17469,8 +17236,8 @@ var Result = function Result(_ref) {
17469
17236
 
17470
17237
  var success = "success-tRJ7j";
17471
17238
  var error = "error-MtAFB";
17472
- 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";
17473
- 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);
17474
17241
 
17475
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";
17476
17243
 
@@ -17532,10 +17299,10 @@ var CustomButton = function CustomButton(_ref) {
17532
17299
  };
17533
17300
  var CustomButton$1 = observer(CustomButton);
17534
17301
 
17535
- var wrapper$6 = "wrapper-GVe2h";
17302
+ var wrapper$7 = "wrapper-GVe2h";
17536
17303
  var buttonGroup = "button-group-GYt-T";
17537
- 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";
17538
- 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);
17539
17306
 
17540
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; }
17541
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; }
@@ -17549,7 +17316,7 @@ var SubTitle = function SubTitle(_ref) {
17549
17316
  orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
17550
17317
  style: _objectSpread$T({}, item.style),
17551
17318
  children: /*#__PURE__*/jsxs("div", {
17552
- className: wrapper$6,
17319
+ className: wrapper$7,
17553
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) {
17554
17321
  return /*#__PURE__*/jsx("div", {
17555
17322
  className: buttonGroup,
@@ -17708,29 +17475,14 @@ function useSelectSimpleData (_ref) {
17708
17475
  });
17709
17476
  return selected.value;
17710
17477
  }, [selected]);
17711
- var setLoadedOptions = function setLoadedOptions(options) {
17712
- var _options$;
17713
- setOptions(options);
17714
- if (value && options) {
17715
- LOG$a.debug('value changed', toJS(value), toJS(options));
17716
- var _selected = findByValue(value, options, selectMapping);
17717
- var selectedValues = Array.isArray(_selected) ? _selected.map(function (item) {
17718
- return item.value;
17719
- }) : _selected === null || _selected === void 0 ? void 0 : _selected.value;
17720
- onSelectionChanged(selectedValues, _selected);
17721
- } else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
17722
- onSelectionChanged(options[0].value, options[0]);
17723
- }
17724
- };
17725
17478
  useEffect(function () {
17726
17479
  if (configuredOptions) {
17727
17480
  if (apiHandler.canReadList) LOG$a.warn('If options are provided, apiInterface will not be used');
17728
- setLoadedOptions(configuredOptions);
17481
+ setOptions(configuredOptions);
17729
17482
  setLoading(false);
17730
17483
  return;
17731
17484
  }
17732
- if (sharedState !== null && sharedState !== void 0 && sharedState.options) {
17733
- setLoadedOptions(sharedState.options);
17485
+ if (options) {
17734
17486
  setLoading(false);
17735
17487
  return;
17736
17488
  }
@@ -17742,11 +17494,25 @@ function useSelectSimpleData (_ref) {
17742
17494
  var options = data.data.map(function (item) {
17743
17495
  return parseDataEntry(item, selectMapping);
17744
17496
  });
17745
- setLoadedOptions(options);
17497
+ setOptions(options);
17746
17498
  })["finally"](function () {
17747
17499
  setLoading(false);
17748
17500
  });
17749
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]);
17750
17516
  var onSelectionChanged = function onSelectionChanged(value, option) {
17751
17517
  setSelected(option);
17752
17518
  onChange === null || onChange === void 0 || onChange(parseReturnData(option, selectMapping));
@@ -17811,11 +17577,11 @@ function parseReturnData(options, selectMapping) {
17811
17577
  return (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? options.value : options.data;
17812
17578
  }
17813
17579
 
17814
- var wrapper$5 = "wrapper-4xyke";
17815
- 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";
17816
- 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);
17817
17583
 
17818
- 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"];
17819
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; }
17820
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; }
17821
17587
  var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
@@ -17829,7 +17595,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
17829
17595
  autoSelectFirst = _ref.autoSelectFirst,
17830
17596
  title = _ref.title,
17831
17597
  sharedState = _ref.sharedState,
17832
- selectProps = _objectWithoutProperties(_ref, _excluded$3);
17598
+ selectProps = _objectWithoutProperties(_ref, _excluded$2);
17833
17599
  var state = useSelectSimpleData({
17834
17600
  apiInterface: apiInterface,
17835
17601
  selectMapping: selectMapping,
@@ -17843,7 +17609,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
17843
17609
  });
17844
17610
  return /*#__PURE__*/jsxs("div", {
17845
17611
  ref: ref,
17846
- className: classnames(title ? wrapper$5 : undefined),
17612
+ className: classnames(title ? wrapper$6 : undefined),
17847
17613
  children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$S(_objectSpread$S({}, selectProps), {}, {
17848
17614
  showSearch: search,
17849
17615
  loading: state.loading,
@@ -18697,8 +18463,8 @@ var customSelect = "custom-select-ESUJX";
18697
18463
  var customSelectOption = "custom-select-option-dUA7N";
18698
18464
  var avatarWrapper = "avatar-wrapper-Vg-xe";
18699
18465
  var selectTextWrapper = "select-text-wrapper-hPSZW";
18700
- 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";
18701
- 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);
18702
18468
 
18703
18469
  var Selector = function Selector(_ref) {
18704
18470
  var items = _ref.items,
@@ -19242,8 +19008,8 @@ function useSelectData (_ref) {
19242
19008
  };
19243
19009
  }
19244
19010
 
19245
- var css_248z$t = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
19246
- 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);
19247
19013
 
19248
19014
  var SelectWrapper = function SelectWrapper(_ref) {
19249
19015
  var onChange = _ref.onChange,
@@ -19322,11 +19088,11 @@ var SelectWrapper = function SelectWrapper(_ref) {
19322
19088
  };
19323
19089
  var Select = observer(SelectWrapper);
19324
19090
 
19325
- var wrapper$4 = "wrapper-WStAk";
19091
+ var wrapper$5 = "wrapper-WStAk";
19326
19092
  var headerWrapper = "header-wrapper-gWQuH";
19327
19093
  var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
19328
- 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";
19329
- 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);
19330
19096
 
19331
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; }
19332
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; }
@@ -19530,7 +19296,7 @@ var Translation = function Translation(_ref) {
19530
19296
  _onChange = _useTranslationHook.onChange,
19531
19297
  autoTranslate = _useTranslationHook.autoTranslate;
19532
19298
  return /*#__PURE__*/jsxs("div", {
19533
- className: wrapper$4,
19299
+ className: wrapper$5,
19534
19300
  children: [/*#__PURE__*/jsxs("div", {
19535
19301
  className: headerWrapper,
19536
19302
  children: [/*#__PURE__*/jsx("div", {
@@ -20109,8 +19875,6 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
20109
19875
  item: item,
20110
19876
  data: state.data
20111
19877
  });
20112
- case 'divider':
20113
- return /*#__PURE__*/jsx(Divider, {});
20114
19878
  case 'apiKey':
20115
19879
  return /*#__PURE__*/jsx(ApiKey, {
20116
19880
  value: item.value,
@@ -20406,7 +20170,7 @@ function ModalProgressBar(_ref) {
20406
20170
 
20407
20171
  var LOG$7 = getLogger('Backoffice', 'Form');
20408
20172
  var FormWrapper$1 = function FormWrapper(_ref, ref) {
20409
- var _state$configuration$2;
20173
+ var _state$selectedItems2;
20410
20174
  var id = _ref.id,
20411
20175
  data = _ref.data,
20412
20176
  onChange = _ref.onChange,
@@ -20419,10 +20183,6 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20419
20183
  var _Form$useForm = Form$1.useForm(),
20420
20184
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
20421
20185
  form = _Form$useForm2[0];
20422
- var _useState = useState('0'),
20423
- _useState2 = _slicedToArray(_useState, 2),
20424
- activeTabKey = _useState2[0],
20425
- setActiveTabKey = _useState2[1];
20426
20186
  var _useTranslation = useTranslation(),
20427
20187
  t = _useTranslation.t;
20428
20188
  var root = useStore();
@@ -20539,29 +20299,6 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20539
20299
  onError === null || onError === void 0 || onError(errorText !== null && errorText !== void 0 ? errorText : 'Es konnte nicht gespeichert werden, versuchen Sie es später nochmal.');
20540
20300
  }
20541
20301
  };
20542
- var handleSearchChange = function handleSearchChange(e) {
20543
- var searchValue = e.target.value.toLowerCase();
20544
- if (searchValue.length <= 2) {
20545
- return;
20546
- }
20547
- // Filter items based on search value
20548
- var filteredItems = tabGroups.filter(function (group) {
20549
- return group.items.some(function (item) {
20550
- return (item.label || item.name.toString()).toLowerCase().includes(searchValue);
20551
- });
20552
- });
20553
-
20554
- // If we find matches in a different tab, switch to that tab
20555
- if (filteredItems.length > 0) {
20556
- var targetTabIndex = tabGroups.findIndex(function (g) {
20557
- return g === filteredItems[0];
20558
- });
20559
- if (targetTabIndex >= 0) {
20560
- var targetTabKey = tabGroups[targetTabIndex].tabGroup === 'default' ? '99' : targetTabIndex.toString();
20561
- setActiveTabKey(targetTabKey);
20562
- }
20563
- }
20564
- };
20565
20302
  var onFinishFailed = function onFinishFailed(data) {
20566
20303
  if (data.errorFields.length) {
20567
20304
  onError === null || onError === void 0 || onError("Folgende Felder wurden nicht korrekt bef\xFCllt: ".concat(data.errorFields.map(function (f) {
@@ -20576,60 +20313,18 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20576
20313
  onErrorInternal('An unexpected error prevented finishing');
20577
20314
  }
20578
20315
  };
20579
-
20580
- // Group items by tabgroup
20581
- var groupItemsByTabGroup = function groupItemsByTabGroup() {
20582
- if (!state.selectedItems) return [];
20583
- var groups = {};
20584
- state.selectedItems.forEach(function (item) {
20585
- if (item.showInAllTabs) return;
20586
- var tabGroup = item.tabgroup || 'default';
20587
- if (!groups[tabGroup]) {
20588
- groups[tabGroup] = [];
20589
- }
20590
- groups[tabGroup].push(item);
20591
- });
20592
- return Object.entries(groups).map(function (_ref7) {
20593
- var _ref8 = _slicedToArray(_ref7, 2),
20594
- tabGroup = _ref8[0],
20595
- items = _ref8[1];
20596
- return {
20597
- tabGroup: tabGroup,
20598
- items: items
20599
- };
20600
- });
20601
- };
20602
- var renderFormItems = function renderFormItems(items) {
20603
- return /*#__PURE__*/jsx(Fragment, {
20604
- children: items.map(function (item) {
20605
- var _state$hiddenRequired, _state$hiddenRequired2, _state$hiddenRequired3;
20606
- return /*#__PURE__*/jsxs("div", {
20607
- 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, {
20608
- name: item.name,
20609
- rules: state.getRules(item, state.data),
20610
- label: getLabel(item, t),
20611
- valuePropName: item.type == 'checkbox' ? 'checked' : 'value',
20612
- initialValue: item === null || item === void 0 ? void 0 : item.defaultValue,
20613
- hasFeedback: !!state.fieldErrors[item.name.toString()],
20614
- validateStatus: !!state.fieldErrors[item.name.toString()] ? 'error' : undefined,
20615
- help: state.fieldErrors[item.name.toString()],
20616
- hidden: (_state$hiddenRequired2 = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired2 === void 0 ? void 0 : _state$hiddenRequired2.hidden,
20617
- 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)
20618
- }, Array.isArray(item.name) ? item.name.join('.') : item.name)]
20619
- }, item.name.toString());
20620
- })
20621
- });
20622
- };
20623
- var tabGroups = useMemo(function () {
20624
- return groupItemsByTabGroup();
20625
- }, [state.selectedItems]);
20626
-
20627
- // Create tab items dynamically
20628
- var tabItems = tabGroups.map(function (group, index) {
20629
- return {
20630
- key: group.tabGroup === 'default' ? '99' : index.toString(),
20631
- label: group.tabGroup === 'default' ? t('backoffice.menu.items.label.systemOther') : group.tabGroup,
20632
- 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, {
20633
20328
  autoComplete: "off",
20634
20329
  form: form,
20635
20330
  onFinish: onFinish,
@@ -20645,98 +20340,30 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20645
20340
  if (changedFields[0] === undefined) return;
20646
20341
  state.changedFields.current.push(changedFields[0]);
20647
20342
  },
20648
- children: [state.configuration.itemSelector && index === 0 && /*#__PURE__*/jsx(Form$1.Item, {
20343
+ children: [state.configuration.itemSelector && /*#__PURE__*/jsx(Form$1.Item, {
20649
20344
  name: state.configuration.itemSelector.name,
20650
20345
  rules: state.getRules(state.configuration.itemSelector, state.data),
20651
20346
  label: state.configuration.itemSelector.label ? t(state.configuration.itemSelector.label, state.configuration.itemSelector.label) : state.configuration.itemSelector.name,
20652
20347
  valuePropName: state.configuration.itemSelector.type == 'checkbox' ? 'checked' : 'value',
20653
20348
  children: getElement(state.configuration.itemSelector, setCanSave, state, state.configuration.itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
20654
- }, state.configuration.itemSelector.name.toString()), renderFormItems(group.items)]
20655
- }, "".concat(state.selectedItemsIndex.toString(), "-").concat(index))
20656
- };
20657
- });
20658
-
20659
- // If no tabgroups are defined, fall back to single form
20660
- var hasTabGroups = tabGroups.length > 1 || tabGroups.length === 1 && tabGroups[0].tabGroup !== 'default';
20661
- if (!hasTabGroups) {
20662
- var singleForm = /*#__PURE__*/jsxs(Form$1, {
20663
- autoComplete: "off",
20664
- form: form,
20665
- onFinish: onFinish,
20666
- onFinishFailed: onFinishFailed,
20667
- layout: "horizontal",
20668
- onValuesChange: function onValuesChange(a, data) {
20669
- state.updateHiddenRequiredDisabled(data, a);
20670
- },
20671
- labelCol: {
20672
- span: 4
20673
- },
20674
- onFieldsChange: function onFieldsChange(changedFields) {
20675
- if (changedFields[0] === undefined) return;
20676
- state.changedFields.current.push(changedFields[0]);
20677
- },
20678
- children: [state.configuration.itemSelector && /*#__PURE__*/jsx(Form$1.Item, {
20679
- name: state.configuration.itemSelector.name,
20680
- rules: state.getRules(state.configuration.itemSelector, state.data),
20681
- label: state.configuration.itemSelector.label ? t(state.configuration.itemSelector.label, state.configuration.itemSelector.label) : state.configuration.itemSelector.name,
20682
- valuePropName: state.configuration.itemSelector.type == 'checkbox' ? 'checked' : 'value',
20683
- children: getElement(state.configuration.itemSelector, setCanSave, state, state.configuration.itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
20684
- }, state.configuration.itemSelector.name.toString()), renderFormItems(state.selectedItems || [])]
20685
- }, state.selectedItemsIndex.toString());
20686
- return /*#__PURE__*/jsxs(Fragment, {
20687
- children: [/*#__PURE__*/jsxs(Spin, {
20688
- spinning: state.loading,
20689
- children: [state.configuration.presetApiInterface && /*#__PURE__*/jsx(Presets, {
20690
- state: state,
20691
- apiHandler: state.presetApiHandler,
20692
- form: form,
20693
- root: state.root,
20694
- setUsedPreset: state.setUsedPreset,
20695
- presets: state.preset.presets,
20696
- setPresets: state.preset.setPresets
20697
- }), singleForm]
20698
- }), state.configuration.showProgressBar && /*#__PURE__*/jsx(ModalProgressBar, {
20699
- isOpen: state.progressBarOpen,
20700
- percent: state.progressBarPercentage
20701
- })]
20702
- });
20703
- }
20704
- return /*#__PURE__*/jsxs(Fragment, {
20705
- children: [/*#__PURE__*/jsxs(Spin, {
20706
- spinning: state.loading,
20707
- children: [state.configuration.presetApiInterface && /*#__PURE__*/jsx(Presets, {
20708
- state: state,
20709
- apiHandler: state.presetApiHandler,
20710
- form: form,
20711
- root: state.root,
20712
- setUsedPreset: state.setUsedPreset,
20713
- presets: state.preset.presets,
20714
- setPresets: state.preset.setPresets
20715
- }), state.configuration.enableSearch && /*#__PURE__*/jsxs(Fragment, {
20716
- children: [/*#__PURE__*/jsx(Form$1.Item, {
20717
- name: "iconSearch",
20718
- label: t('backoffice.form.organizationdetails.searchitems'),
20719
- labelCol: {
20720
- span: 4
20721
- },
20722
- children: /*#__PURE__*/jsx(Input.Search, {
20723
- placeholder: t('backoffice.form.organizationdetails.searchitems'),
20724
- onChange: handleSearchChange,
20725
- style: {
20726
- width: '100%'
20727
- },
20728
- allowClear: true
20729
- })
20730
- }), /*#__PURE__*/jsx(Divider, {})]
20731
- }), (_state$configuration$2 = state.configuration.items) === null || _state$configuration$2 === void 0 ? void 0 : _state$configuration$2.map(function (item) {
20732
- return item.showInAllTabs ? renderFormItems([item]) : null;
20733
- }), /*#__PURE__*/jsx(Tabs, {
20734
- activeKey: activeTabKey,
20735
- onChange: setActiveTabKey,
20736
- items: _toConsumableArray(tabItems).sort(function (a, b) {
20737
- return a.key.localeCompare(b.key);
20738
- })
20739
- })]
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())]
20740
20367
  }), state.configuration.showProgressBar && /*#__PURE__*/jsx(ModalProgressBar, {
20741
20368
  isOpen: state.progressBarOpen,
20742
20369
  percent: state.progressBarPercentage
@@ -21511,8 +21138,8 @@ var skeleton = "skeleton--xCI0";
21511
21138
  var filterField = "filterField-1kU1O";
21512
21139
  var parentScroll = "parent-scroll-GmaL9";
21513
21140
  var parent = "parent-NZJ3S";
21514
- 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";
21515
- 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);
21516
21143
 
21517
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; }
21518
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; }
@@ -22757,8 +22384,8 @@ var newscroller = "newscroller-INKeD";
22757
22384
  var antCollapseHeader = "ant-collapse-header--6FgU";
22758
22385
  var itemTitle = "item-title--BTvC";
22759
22386
  var itemDesc = "item-desc-DBiiF";
22760
- 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";
22761
- 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);
22762
22389
 
22763
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; }
22764
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; }
@@ -24170,8 +23797,8 @@ var jsoneditor = "jsoneditor-WMs15";
24170
23797
  var preview = "preview-9wK81";
24171
23798
  var previewButton = "preview-button-vupuG";
24172
23799
  var editButton = "edit-button-m6r3M";
24173
- 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";
24174
- 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);
24175
23802
 
24176
23803
  var JsonEditor = function JsonEditor(_ref, ref) {
24177
23804
  var id = _ref.id,
@@ -24950,19 +24577,19 @@ function reducer(state, action) {
24950
24577
 
24951
24578
  var grid = "grid-sGemi";
24952
24579
  var textWrapper = "text-wrapper-xsPXE";
24953
- 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";
24954
- 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);
24955
24582
 
24956
- var wrapper$3 = "wrapper-p-gR3";
24583
+ var wrapper$4 = "wrapper-p-gR3";
24957
24584
  var container$6 = "container-DoZqe";
24958
- 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";
24959
- 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);
24960
24587
 
24961
24588
  var ToolTipInfo = function ToolTipInfo(props) {
24962
24589
  var _useTranslation = useTranslation(),
24963
24590
  t = _useTranslation.t;
24964
24591
  return /*#__PURE__*/jsx("div", {
24965
- className: wrapper$3,
24592
+ className: wrapper$4,
24966
24593
  children: /*#__PURE__*/jsx(Card, {
24967
24594
  title: t('backoffice.tooltipinfo.useroverview'),
24968
24595
  styles: {
@@ -25159,8 +24786,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
25159
24786
  var small = "small-NY1-k";
25160
24787
  var medium = "medium---QcO";
25161
24788
  var big = "big--E39S";
25162
- 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";
25163
- 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);
25164
24791
 
25165
24792
  var MediaUpload = observer(function (_ref) {
25166
24793
  var id = _ref.id;
@@ -25286,8 +24913,8 @@ var editableRow = "editable-row-9BEHi";
25286
24913
  var checkbox = "checkbox-H7R-w";
25287
24914
  var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
25288
24915
  var contentWidth = "content-width-hGyVI";
25289
- 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";
25290
- 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);
25291
24918
 
25292
24919
  function BooleanCell (_ref) {
25293
24920
  var children = _ref.children,
@@ -25968,7 +25595,7 @@ function LinkCell (_ref) {
25968
25595
  }
25969
25596
  }
25970
25597
 
25971
- var _excluded$2 = ["index"],
25598
+ var _excluded$1 = ["index"],
25972
25599
  _excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
25973
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; }
25974
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; }
@@ -25976,7 +25603,7 @@ var LOG$4 = getLogger('Backoffice', 'CellRenderer');
25976
25603
  var EditableContext = /*#__PURE__*/React.createContext(null);
25977
25604
  var CustomRow = function CustomRow(_ref) {
25978
25605
  _ref.index;
25979
- var props = _objectWithoutProperties(_ref, _excluded$2);
25606
+ var props = _objectWithoutProperties(_ref, _excluded$1);
25980
25607
  var _Form$useForm = Form$1.useForm(),
25981
25608
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
25982
25609
  form = _Form$useForm2[0];
@@ -26276,8 +25903,8 @@ function useAGHistogram (_ref) {
26276
25903
  var container$5 = "container-2r-OJ";
26277
25904
  var column1 = "column1-9viTK";
26278
25905
  var spinner = "spinner-00VcK";
26279
- 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";
26280
- 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);
26281
25908
 
26282
25909
  var Panel = Collapse.Panel;
26283
25910
  function AGHistogram (_ref) {
@@ -27865,7 +27492,7 @@ function filter(f, data) {
27865
27492
  }) : result;
27866
27493
  }
27867
27494
 
27868
- var _excluded$1 = ["_id"];
27495
+ var _excluded = ["_id"];
27869
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; }
27870
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; }
27871
27498
  function useTableData$1 (_ref) {
@@ -27949,7 +27576,7 @@ function useTableData$1 (_ref) {
27949
27576
  setState(newState);
27950
27577
  var formData = new FormData();
27951
27578
  processedDataRow._id;
27952
- var value = _objectWithoutProperties(processedDataRow, _excluded$1);
27579
+ var value = _objectWithoutProperties(processedDataRow, _excluded);
27953
27580
  apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
27954
27581
  filterContex: filterContex,
27955
27582
  value: JSON.stringify([value])
@@ -29255,8 +28882,8 @@ var loader = "loader-LaXZy";
29255
28882
  var flex = "flex-yQdda";
29256
28883
  var bar = "bar-Y663f";
29257
28884
  var value = "value-FCA-6";
29258
- 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";
29259
- 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);
29260
28887
 
29261
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; }
29262
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; }
@@ -30201,8 +29828,8 @@ var retailerChild = "retailer-child-5ll0K";
30201
29828
  var supplier = "supplier-8sm0I";
30202
29829
  var dealer = "dealer-xgnku";
30203
29830
  var association = "association-b8uVW";
30204
- 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";
30205
- 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);
30206
29833
 
30207
29834
  function getColorClass(data) {
30208
29835
  switch (data.type) {
@@ -30435,8 +30062,8 @@ var openClass = "open-class--gGXs";
30435
30062
  var breadcrumb = "breadcrumb-Z0VvH";
30436
30063
  var selected = "selected-w-sfW";
30437
30064
  var disabled$2 = "disabled-0nado";
30438
- 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";
30439
- 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);
30440
30067
 
30441
30068
  var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
30442
30069
  var open = _ref.open,
@@ -30469,8 +30096,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
30469
30096
 
30470
30097
  var collapsibleInner = "collapsible-inner-rI8kI";
30471
30098
  var toolbarLeft = "toolbar-left-X9WRo";
30472
- 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";
30473
- 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);
30474
30101
 
30475
30102
  var Legend = function Legend(props) {
30476
30103
  return /*#__PURE__*/jsx(List$1, {
@@ -30524,8 +30151,8 @@ var Legend = function Legend(props) {
30524
30151
  var buttonsWrapper = "buttons-wrapper-Bubkr";
30525
30152
  var mask = "mask-ssagp";
30526
30153
  var transformWrapper = "transform-wrapper--8t0v";
30527
- 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";
30528
- 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);
30529
30156
 
30530
30157
  var ZoomWrapper = function ZoomWrapper(_ref) {
30531
30158
  var _children = _ref.children,
@@ -31431,7 +31058,6 @@ var useEnricherContext = function useEnricherContext() {
31431
31058
  exclusivitiesSeriesSelectorState: createDefaultSelectState('exclusivitiesSeriesSelectorState'),
31432
31059
  exclusivitiesFeatureSelectorState: createDefaultSelectState('exclusivitiesFeatureSelectorState'),
31433
31060
  selectedSerie: undefined,
31434
- selectedItem: undefined,
31435
31061
  selectedFeature: undefined
31436
31062
  };
31437
31063
  return root.contextStore.getContext('enricher', initialState);
@@ -31443,11 +31069,6 @@ var useEnricherContext = function useEnricherContext() {
31443
31069
  selectedSerie: serie
31444
31070
  });
31445
31071
  }, [root.contextStore]);
31446
- var setSelectedItem = useCallback(function (item) {
31447
- root.contextStore.updateContext('enricher', {
31448
- selectedItem: item
31449
- });
31450
- }, [root.contextStore]);
31451
31072
  var setSelectedFeature = useCallback(function (feature) {
31452
31073
  root.contextStore.updateContext('enricher', {
31453
31074
  selectedFeature: feature
@@ -31483,10 +31104,7 @@ var useEnricherContext = function useEnricherContext() {
31483
31104
  root.contextStore.updateContext('enricher', {
31484
31105
  selectedPackage: newPackage,
31485
31106
  packageId: newPackage._id,
31486
- viewOnly: newPackage.organizationId !== root.dataStore.organizationId,
31487
- //if the package is not created in the current organization, it can only be viewed
31488
31107
  selectedSerie: undefined,
31489
- selectedItem: undefined,
31490
31108
  selectedFeature: undefined,
31491
31109
  lookupSeriesSelectorState: createDefaultSelectState('lookupSeriesSelectorState'),
31492
31110
  lookupFeatureSelectorState: createDefaultSelectState('lookupFeatureSelectorState'),
@@ -31514,7 +31132,6 @@ var useEnricherContext = function useEnricherContext() {
31514
31132
  // Return context + handlers
31515
31133
  return _objectSpread$g(_objectSpread$g({}, getContext()), {}, {
31516
31134
  setSelectedSerie: setSelectedSerie,
31517
- setSelectedItem: setSelectedItem,
31518
31135
  setSelectedFeature: setSelectedFeature,
31519
31136
  setSelectedPackage: setSelectedPackage
31520
31137
  });
@@ -31533,7 +31150,14 @@ var PackageSelector = function PackageSelector(_ref) {
31533
31150
  return /*#__PURE__*/jsx(SimpleSelect, {
31534
31151
  sharedState: packageSelectorState,
31535
31152
  apiInterface: {
31536
- 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
+ }]
31537
31161
  },
31538
31162
  selectMapping: {
31539
31163
  label: '${name}',
@@ -31563,11 +31187,7 @@ function useModule$1 (currentModules) {
31563
31187
  setSelectedPackage = _useEnricherContext.setSelectedPackage,
31564
31188
  organizationId = _useEnricherContext.organizationId,
31565
31189
  selectedSerie = _useEnricherContext.selectedSerie,
31566
- selectedFeature = _useEnricherContext.selectedFeature,
31567
- selectedItem = _useEnricherContext.selectedItem,
31568
- setSelectedSerie = _useEnricherContext.setSelectedSerie,
31569
- setSelectedItem = _useEnricherContext.setSelectedItem,
31570
- viewOnly = _useEnricherContext.viewOnly;
31190
+ selectedFeature = _useEnricherContext.selectedFeature;
31571
31191
  var location = useLocation();
31572
31192
  var _useSearchParams = useSearchParams(),
31573
31193
  _useSearchParams2 = _slicedToArray(_useSearchParams, 1),
@@ -31777,12 +31397,8 @@ function useModule$1 (currentModules) {
31777
31397
  organizationId: organizationId,
31778
31398
  apiConfig: root.configurationStore.apiConfig,
31779
31399
  setSelectedPackage: setSelectedPackage,
31780
- setSelectedSerie: setSelectedSerie,
31781
- setSelectedItem: setSelectedItem,
31782
31400
  selectedSerie: selectedSerie,
31783
- selectedFeature: selectedFeature,
31784
- selectedItem: selectedItem,
31785
- viewOnly: viewOnly
31401
+ selectedFeature: selectedFeature
31786
31402
  };
31787
31403
  }
31788
31404
 
@@ -31910,12 +31526,14 @@ var useTools = function useTools(_ref) {
31910
31526
  initItem: item === null || item === void 0 ? void 0 : item.typeNo,
31911
31527
  setSerie: setSerie,
31912
31528
  setArticle: setArticle
31913
- }, initSerie ? {
31914
- initSerie: initSerie
31529
+ }, serie ? {
31530
+ initSerie: {
31531
+ serieNo: serie.serieNo,
31532
+ serieId: serie._id
31533
+ }
31915
31534
  } : {}) : isApi2 ? {
31916
31535
  // open configurator for api2 package (configurator light)
31917
- loadMask: true,
31918
- initItem: item === null || item === void 0 ? void 0 : item.typeNo
31536
+ loadMask: true
31919
31537
  } : _objectSpread$f({
31920
31538
  // open configurator for idm package
31921
31539
  useEnricherService: true,
@@ -31925,20 +31543,14 @@ var useTools = function useTools(_ref) {
31925
31543
  initItem: item === null || item === void 0 ? void 0 : item.typeNo,
31926
31544
  setSerie: setSerie,
31927
31545
  setArticle: setArticle
31928
- }, initSerie ? {
31929
- initSerie: initSerie
31546
+ }, serie ? {
31547
+ initSerie: {
31548
+ serieNo: serie.serieNo,
31549
+ serieId: serie._id
31550
+ }
31930
31551
  } : {})
31931
31552
  });
31932
31553
  }, [catalogId, packageId, isApi2, serie, item, setSerie, setArticle]);
31933
- var initSerie = useMemo(function () {
31934
- if (serie) {
31935
- return {
31936
- serieNo: serie.serieNo,
31937
- serieId: serie._id
31938
- };
31939
- }
31940
- return undefined;
31941
- }, [serie]);
31942
31554
  useEffect(function () {
31943
31555
  var _root$contentStore$ri;
31944
31556
  var tools = [];
@@ -31980,11 +31592,10 @@ var TableGroups = observer(function () {
31980
31592
  packageId = _useModule.packageId,
31981
31593
  organizationId = _useModule.organizationId,
31982
31594
  apiConfig = _useModule.apiConfig,
31983
- selectedPackage = _useModule.selectedPackage,
31984
- viewOnly = _useModule.viewOnly;
31595
+ selectedPackage = _useModule.selectedPackage;
31985
31596
  useTools({
31986
31597
  packageId: packageId,
31987
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
31598
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
31988
31599
  });
31989
31600
  var applicationData = useMemo(function () {
31990
31601
  return {
@@ -31995,10 +31606,10 @@ var TableGroups = observer(function () {
31995
31606
  var apiInterface = useMemo(function () {
31996
31607
  return {
31997
31608
  read: apiConfig.enricherService + '/packages/${packageId}/groups',
31998
- create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/groups',
31999
- restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
32000
- "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
32001
- 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}',
32002
31613
  bulk: apiConfig.enricherService + '/packages/${packageId}/groups/bulk'
32003
31614
  };
32004
31615
  }, []);
@@ -32012,7 +31623,7 @@ var TableGroups = observer(function () {
32012
31623
  field: 'serieNos',
32013
31624
  headerName: 'backoffice.idmEnricher.groups.label.serieNos',
32014
31625
  cellDataType: 'lookup',
32015
- editable: !viewOnly,
31626
+ editable: true,
32016
31627
  customParams: {
32017
31628
  filterCellType: 'number',
32018
31629
  nameField: 'serieNosDisplayTexts',
@@ -32035,7 +31646,7 @@ var TableGroups = observer(function () {
32035
31646
  field: 'typeNos',
32036
31647
  headerName: 'backoffice.idmEnricher.groups.label.typeNos',
32037
31648
  cellDataType: 'lookup',
32038
- editable: !viewOnly,
31649
+ editable: true,
32039
31650
  customParams: {
32040
31651
  nameField: 'typeNosDisplayTexts',
32041
31652
  displayLabelTemplate: '${name} (${value})',
@@ -32090,7 +31701,7 @@ var TableGroups = observer(function () {
32090
31701
  cellDataType: 'objectId'
32091
31702
  }]
32092
31703
  };
32093
- }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
31704
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
32094
31705
  return /*#__PURE__*/jsxs(Fragment, {
32095
31706
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32096
31707
  title: /*#__PURE__*/jsxs("div", {
@@ -32112,28 +31723,22 @@ var TableGroups = observer(function () {
32112
31723
  });
32113
31724
 
32114
31725
  function PublishCustomCell (_ref) {
32115
- var _data$published, _data$removedOrganiza;
32116
31726
  var data = _ref.data,
32117
31727
  apiConfig = _ref.apiConfig,
32118
31728
  context = _ref.context,
32119
31729
  api = _ref.api,
32120
- modalState = _ref.modalState,
32121
- organizationId = _ref.organizationId;
31730
+ modalState = _ref.modalState;
32122
31731
  var _useTranslation = useTranslation(),
32123
31732
  t = _useTranslation.t;
32124
31733
  var _React$useState = React.useState(false),
32125
31734
  _React$useState2 = _slicedToArray(_React$useState, 2),
32126
31735
  loading = _React$useState2[0],
32127
31736
  isLoading = _React$useState2[1];
32128
- var publishedData = (_data$published = data.published) === null || _data$published === void 0 ? void 0 : _data$published[organizationId];
32129
- var isReleaseWithdrawn = !!((_data$removedOrganiza = data.removedOrganizationIds) !== null && _data$removedOrganiza !== void 0 && _data$removedOrganiza.find(function (id) {
32130
- return id === organizationId;
32131
- }));
32132
- var unpublishedChanges = hasUnpublishedChanges(publishedData === null || publishedData === void 0 ? void 0 : publishedData.publishDate, publishedData === null || publishedData === void 0 ? void 0 : publishedData.lastUpdatedDate);
32133
- 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;
32134
31739
  var _onChange = /*#__PURE__*/function () {
32135
31740
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(publish) {
32136
- var loadingTimeout, response, _errorText, errorText, json;
31741
+ var loadingTimeout, response;
32137
31742
  return _regeneratorRuntime.wrap(function _callee$(_context) {
32138
31743
  while (1) switch (_context.prev = _context.next) {
32139
31744
  case 0:
@@ -32148,7 +31753,7 @@ function PublishCustomCell (_ref) {
32148
31753
  }
32149
31754
  _context.next = 6;
32150
31755
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
32151
- update: apiConfig.enricherService + '/packages/${_id}/publish?organizationId=' + organizationId,
31756
+ update: apiConfig.enricherService + '/packages/${_id}/publish',
32152
31757
  usePut: true
32153
31758
  }, undefined, true);
32154
31759
  case 6:
@@ -32158,7 +31763,7 @@ function PublishCustomCell (_ref) {
32158
31763
  case 9:
32159
31764
  _context.next = 11;
32160
31765
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
32161
- update: apiConfig.enricherService + '/packages/${_id}/unpublish?organizationId=' + organizationId,
31766
+ update: apiConfig.enricherService + '/packages/${_id}/unpublish',
32162
31767
  usePut: true
32163
31768
  }, undefined, true);
32164
31769
  case 11:
@@ -32170,7 +31775,7 @@ function PublishCustomCell (_ref) {
32170
31775
  break;
32171
31776
  }
32172
31777
  modalState.showWarningModal(t("backoffice.idmEnricher.packages.label.warning.".concat(publish ? 'publishing' : 'unpublishing')));
32173
- _context.next = 34;
31778
+ _context.next = 22;
32174
31779
  break;
32175
31780
  case 17:
32176
31781
  if (!(response.status == 200)) {
@@ -32178,46 +31783,30 @@ function PublishCustomCell (_ref) {
32178
31783
  break;
32179
31784
  }
32180
31785
  modalState.closeModal();
32181
- _context.next = 34;
31786
+ _context.next = 22;
32182
31787
  break;
32183
31788
  case 21:
32184
- _context.prev = 21;
32185
- _context.next = 24;
32186
- return response.json();
32187
- case 24:
32188
- json = _context.sent;
32189
- errorText = json.error;
32190
- _context.next = 33;
32191
- break;
32192
- case 28:
32193
- _context.prev = 28;
32194
- _context.t0 = _context["catch"](21);
32195
- _context.next = 32;
32196
- return response.text();
32197
- case 32:
32198
- errorText = _context.sent;
32199
- case 33:
32200
- throw new Error((_errorText = errorText) !== null && _errorText !== void 0 ? _errorText : "Server error (".concat(response.status, ")"));
32201
- case 34:
31789
+ throw new Error("Server errror: ".concat(response.statusText, " (").concat(response.status, ")"));
31790
+ case 22:
32202
31791
  context === null || context === void 0 || context.reset({
32203
31792
  context: context,
32204
31793
  api: api
32205
31794
  });
32206
- _context.next = 40;
31795
+ _context.next = 28;
32207
31796
  break;
32208
- case 37:
32209
- _context.prev = 37;
32210
- _context.t1 = _context["catch"](2);
32211
- modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.t1 instanceof Error ? _context.t1.message : String(_context.t1)));
32212
- case 40:
32213
- _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;
32214
31803
  isLoading(false);
32215
- return _context.finish(40);
32216
- case 43:
31804
+ return _context.finish(28);
31805
+ case 31:
32217
31806
  case "end":
32218
31807
  return _context.stop();
32219
31808
  }
32220
- }, _callee, null, [[2, 37, 40, 43], [21, 28]]);
31809
+ }, _callee, null, [[2, 25, 28, 31]]);
32221
31810
  }));
32222
31811
  return function onChange(_x) {
32223
31812
  return _ref2.apply(this, arguments);
@@ -32229,9 +31818,9 @@ function PublishCustomCell (_ref) {
32229
31818
  children: /*#__PURE__*/jsxs(Space$1, {
32230
31819
  size: "middle",
32231
31820
  children: [/*#__PURE__*/jsx(Tooltip, {
32232
- 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'),
32233
31822
  children: /*#__PURE__*/jsx(Checkbox$1, {
32234
- checked: !!publishedData,
31823
+ checked: !!data.isPublished,
32235
31824
  disabled: disabled,
32236
31825
  indeterminate: unpublishedChanges,
32237
31826
  onChange: function onChange(e) {
@@ -32247,12 +31836,6 @@ function PublishCustomCell (_ref) {
32247
31836
  return _onChange(true);
32248
31837
  }
32249
31838
  })
32250
- }), isReleaseWithdrawn && /*#__PURE__*/jsx(Tooltip, {
32251
- title: t('backoffice.idmEnricher.packages.label.releaseWithdrawn'),
32252
- children: /*#__PURE__*/jsx(Button$1, {
32253
- shape: "circle",
32254
- icon: /*#__PURE__*/jsx(WarningOutlined, {})
32255
- })
32256
31839
  })]
32257
31840
  })
32258
31841
  });
@@ -32574,7 +32157,6 @@ var useLoadingModal = function useLoadingModal() {
32574
32157
  };
32575
32158
 
32576
32159
  var TablePackages = observer(function () {
32577
- var _root$dataStore$curre;
32578
32160
  var root = useStore();
32579
32161
  var _useTranslation = useTranslation(),
32580
32162
  t = _useTranslation.t,
@@ -32585,20 +32167,23 @@ var TablePackages = observer(function () {
32585
32167
  closeModal = modalState.closeModal,
32586
32168
  contextHolder = modalState.contextHolder;
32587
32169
  var _useEnricherContext = useEnricherContext([]),
32588
- setSelectedPackage = _useEnricherContext.setSelectedPackage,
32589
- selectedPackage = _useEnricherContext.selectedPackage;
32590
- useTools({
32591
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
32592
- });
32170
+ setSelectedPackage = _useEnricherContext.setSelectedPackage;
32171
+ useTools({});
32593
32172
  var organizationId = root.dataStore.organizationId;
32594
- var organizationDisplayText = (_root$dataStore$curre = root.dataStore.currentOrganization) === null || _root$dataStore$curre === void 0 ? void 0 : _root$dataStore$curre.displayName;
32595
32173
  var apiConfig = root.configurationStore.apiConfig;
32596
32174
  var applicationData = useMemo(function () {
32597
32175
  return {
32598
- organizationId: organizationId,
32599
- organizationDisplayText: organizationDisplayText
32176
+ organizationId: organizationId
32600
32177
  };
32601
- }, [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]);
32602
32187
  var rowActions = useMemo(function () {
32603
32188
  return [{
32604
32189
  icon: /*#__PURE__*/jsx(EditOutlined, {}),
@@ -32613,9 +32198,8 @@ var TablePackages = observer(function () {
32613
32198
  }, {
32614
32199
  icon: /*#__PURE__*/jsx(DownloadOutlined, {}),
32615
32200
  disabled: function disabled(_ref3) {
32616
- var _selectedNodes$0$data;
32617
32201
  var selectedNodes = _ref3.selectedNodes;
32618
- return !((_selectedNodes$0$data = selectedNodes[0].data.published) !== null && _selectedNodes$0$data !== void 0 && _selectedNodes$0$data[organizationId]);
32202
+ return !selectedNodes[0].data.isPublished;
32619
32203
  },
32620
32204
  action: function () {
32621
32205
  var _action = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref4) {
@@ -32659,18 +32243,14 @@ var TablePackages = observer(function () {
32659
32243
  }, [apiConfig.enricherService, root.dataStore.jwt]);
32660
32244
  var apiInterface = useMemo(function () {
32661
32245
  return {
32662
- read: apiConfig.enricherService + '/packages?organizationId=' + organizationId,
32246
+ read: apiConfig.enricherService + '/packages?organizationId=${organizationId}',
32663
32247
  create: apiConfig.enricherService + '/packages',
32664
32248
  restore: apiConfig.enricherService + '/packages/${_id}',
32665
32249
  "delete": apiConfig.enricherService + '/packages/${_id}',
32666
32250
  update: apiConfig.enricherService + '/packages/${_id}',
32667
- bulk: apiConfig.enricherService + '/packages/bulk?organizationId=' + organizationId
32251
+ bulk: apiConfig.enricherService + '/packages/bulk?organizationId=${organizationId}'
32668
32252
  };
32669
- }, [apiConfig.enricherService, organizationId]);
32670
- var isEditable = useCallback(function (params) {
32671
- var _params$data, _params$data2;
32672
- 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);
32673
- }, [organizationId]);
32253
+ }, [apiConfig.enricherService]);
32674
32254
  var configuration = useMemo(function () {
32675
32255
  return {
32676
32256
  type: 'dotnetSSM',
@@ -32678,15 +32258,15 @@ var TablePackages = observer(function () {
32678
32258
  dateFormat: 'DD.MM.YYYY, HH:mm:ss',
32679
32259
  floatingFilter: true,
32680
32260
  colDef: [{
32681
- field: "published.".concat(organizationId),
32261
+ field: 'isPublished',
32682
32262
  //the cell should refresh on changes of this fields
32683
32263
  valueGetter: function valueGetter(_ref5) {
32684
- var _data$published, _data$published2;
32685
32264
  var data = _ref5.data;
32686
32265
  return {
32266
+ isPublished: data === null || data === void 0 ? void 0 : data.isPublished,
32687
32267
  name: data === null || data === void 0 ? void 0 : data.name,
32688
- 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,
32689
- 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
32690
32270
  };
32691
32271
  },
32692
32272
  headerName: 'backoffice.idmEnricher.packages.label.published',
@@ -32697,22 +32277,19 @@ var TablePackages = observer(function () {
32697
32277
  lockPinned: true,
32698
32278
  cellRendererParams: {
32699
32279
  apiConfig: apiConfig,
32700
- modalState: modalState,
32701
- organizationId: organizationId
32702
- },
32703
- isDictionary: true
32280
+ modalState: modalState
32281
+ }
32704
32282
  }, {
32705
32283
  headerName: 'backoffice.idmEnricher.packages.label.name',
32706
32284
  field: 'name',
32707
- required: true,
32708
- editable: isEditable
32285
+ required: true
32709
32286
  }, {
32710
32287
  headerName: 'backoffice.idmEnricher.packages.label.catalogId',
32711
32288
  field: 'basedCatalogId',
32712
32289
  cellDataType: 'lookup',
32713
32290
  editable: function editable(_ref6) {
32714
32291
  var data = _ref6.data;
32715
- return isEditable(data) && !data.basedCatalogId && !data.basedPackageId;
32292
+ return !data.basedCatalogId && !data.basedPackageId;
32716
32293
  },
32717
32294
  customParams: {
32718
32295
  filterCellType: 'objectId',
@@ -32740,7 +32317,7 @@ var TablePackages = observer(function () {
32740
32317
  cellDataType: 'lookup',
32741
32318
  editable: function editable(_ref7) {
32742
32319
  var data = _ref7.data;
32743
- return isEditable(data) && !data.basedCatalogId && !data.basedPackageId;
32320
+ return !data.basedCatalogId && !data.basedPackageId;
32744
32321
  },
32745
32322
  customParams: {
32746
32323
  filterCellType: 'objectId',
@@ -32769,43 +32346,13 @@ var TablePackages = observer(function () {
32769
32346
  field: 'isoLanguageIds',
32770
32347
  headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
32771
32348
  cellDataType: 'enum',
32772
- editable: isEditable,
32349
+ editable: true,
32773
32350
  required: true,
32774
32351
  customParams: {
32775
32352
  enumData: getLanguageKey(t),
32776
32353
  multiple: true
32777
32354
  },
32778
32355
  defaultValue: ['DE']
32779
- }, {
32780
- field: 'allowedOrganizationIds',
32781
- headerName: 'backoffice.idmEnricher.packages.label.allowedOrganizationIds',
32782
- cellDataType: 'lookup',
32783
- editable: isEditable,
32784
- cellRendererSelector: function cellRendererSelector(params) {
32785
- var _params$data3, _params$data4;
32786
- 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)) {
32787
- return undefined;
32788
- }
32789
- return {
32790
- component: function component() {
32791
- var _params$data$organiza, _params$data5, _params$data6;
32792
- return /*#__PURE__*/jsxs("p", {
32793
- 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]
32794
- });
32795
- }
32796
- };
32797
- },
32798
- customParams: {
32799
- nameField: 'allowedOrganizationsDisplayTexts',
32800
- apiInterface: {
32801
- read: apiConfig.authService + "/clientrelationtargets/organization/".concat(organizationId, "/organizations")
32802
- },
32803
- lookupValue: 'displayName',
32804
- lookupKey: '_id',
32805
- serverType: 'nodejs',
32806
- multiple: true
32807
- },
32808
- additionalFields: ['allowedOrganizationsDisplayTexts']
32809
32356
  }, {
32810
32357
  headerName: 'backoffice.idmEnricher.packages.label.isApi2',
32811
32358
  field: 'isApi',
@@ -32823,10 +32370,9 @@ var TablePackages = observer(function () {
32823
32370
  editable: false
32824
32371
  }, {
32825
32372
  headerName: 'backoffice.idmEnricher.packages.label.publishDate',
32826
- field: "published.".concat(organizationId, ".publishDate"),
32373
+ field: 'publishDate',
32827
32374
  cellDataType: 'dateString',
32828
- editable: false,
32829
- isDictionary: true
32375
+ editable: false
32830
32376
  }, {
32831
32377
  headerName: 'backoffice.idmEnricher.general.label.createdBy',
32832
32378
  field: 'createdByDisplayText',
@@ -32837,9 +32383,8 @@ var TablePackages = observer(function () {
32837
32383
  editable: false
32838
32384
  }, {
32839
32385
  headerName: 'backoffice.idmEnricher.packages.label.publishedBy',
32840
- field: "published.".concat(organizationId, ".publishedByDisplayText"),
32841
- editable: false,
32842
- isDictionary: true
32386
+ field: 'publishedByDisplayText',
32387
+ editable: false
32843
32388
  }, {
32844
32389
  headerName: 'backoffice.idmEnricher.general.label._id',
32845
32390
  field: '_id',
@@ -32852,26 +32397,9 @@ var TablePackages = observer(function () {
32852
32397
  lockVisible: true,
32853
32398
  suppressColumnsToolPanel: true,
32854
32399
  defaultValue: '${organizationId}'
32855
- }, {
32856
- field: 'organizationDisplayText',
32857
- editable: false,
32858
- hide: true,
32859
- lockVisible: true,
32860
- suppressColumnsToolPanel: true,
32861
- defaultValue: '${organizationDisplayText}'
32862
- }, {
32863
- field: 'removedOrganizationIds',
32864
- editable: false,
32865
- hide: true,
32866
- lockVisible: true,
32867
- suppressColumnsToolPanel: true
32868
32400
  }]
32869
32401
  };
32870
- }, [apiInterface, apiConfig, i18n.language, organizationId]);
32871
- var isRowEditable = useCallback(function (node) {
32872
- var _node$data, _node$data2;
32873
- 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);
32874
- }, [organizationId]);
32402
+ }, [apiInterface, apiConfig, i18n.language]);
32875
32403
  return /*#__PURE__*/jsxs(Fragment, {
32876
32404
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32877
32405
  title: t('backoffice.menu.items.label.IDMEnricherTablePackages')
@@ -32879,8 +32407,8 @@ var TablePackages = observer(function () {
32879
32407
  gridId: 'packages-grid',
32880
32408
  applicationData: applicationData,
32881
32409
  rowActions: rowActions,
32882
- configuration: configuration,
32883
- isRowEditable: isRowEditable
32410
+ preFilter: preFilter,
32411
+ configuration: configuration
32884
32412
  }), contextHolder]
32885
32413
  });
32886
32414
  });
@@ -32892,11 +32420,10 @@ var TableProperties = observer(function () {
32892
32420
  packageId = _useModule.packageId,
32893
32421
  organizationId = _useModule.organizationId,
32894
32422
  apiConfig = _useModule.apiConfig,
32895
- selectedPackage = _useModule.selectedPackage,
32896
- viewOnly = _useModule.viewOnly;
32423
+ selectedPackage = _useModule.selectedPackage;
32897
32424
  useTools({
32898
32425
  packageId: packageId,
32899
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
32426
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
32900
32427
  });
32901
32428
  var applicationData = useMemo(function () {
32902
32429
  return {
@@ -32907,10 +32434,10 @@ var TableProperties = observer(function () {
32907
32434
  var apiInterface = useMemo(function () {
32908
32435
  return {
32909
32436
  read: apiConfig.enricherService + '/packages/${packageId}/properties',
32910
- create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/properties',
32911
- restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32912
- "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32913
- 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}',
32914
32441
  bulk: apiConfig.enricherService + '/packages/${packageId}/properties/bulk'
32915
32442
  };
32916
32443
  }, []);
@@ -32928,7 +32455,7 @@ var TableProperties = observer(function () {
32928
32455
  field: 'featureNos',
32929
32456
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
32930
32457
  cellDataType: 'lookup',
32931
- editable: !viewOnly,
32458
+ editable: true,
32932
32459
  customParams: {
32933
32460
  nameField: 'featureNosDisplayTexts',
32934
32461
  displayLabelTemplate: '${name} (${value})',
@@ -32946,7 +32473,7 @@ var TableProperties = observer(function () {
32946
32473
  field: 'optionKeys',
32947
32474
  headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
32948
32475
  cellDataType: 'lookup',
32949
- editable: !viewOnly,
32476
+ editable: true,
32950
32477
  customParams: {
32951
32478
  nameField: 'optionKeysDisplayTexts',
32952
32479
  displayLabelTemplate: '${name} (${value})',
@@ -32970,7 +32497,7 @@ var TableProperties = observer(function () {
32970
32497
  field: 'serieNos',
32971
32498
  headerName: 'backoffice.idmEnricher.renaming.label.serieNos',
32972
32499
  cellDataType: 'lookup',
32973
- editable: !viewOnly,
32500
+ editable: true,
32974
32501
  customParams: {
32975
32502
  filterCellType: 'number',
32976
32503
  nameField: 'serieNosDisplayTexts',
@@ -32993,7 +32520,7 @@ var TableProperties = observer(function () {
32993
32520
  field: 'typeNos',
32994
32521
  headerName: 'backoffice.idmEnricher.properties.label.typeNos',
32995
32522
  cellDataType: 'lookup',
32996
- editable: !viewOnly,
32523
+ editable: true,
32997
32524
  customParams: {
32998
32525
  nameField: 'typeNosDisplayTexts',
32999
32526
  displayLabelTemplate: '${name} (${value})',
@@ -33048,7 +32575,7 @@ var TableProperties = observer(function () {
33048
32575
  cellDataType: 'objectId'
33049
32576
  }]
33050
32577
  };
33051
- }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
32578
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
33052
32579
  return /*#__PURE__*/jsxs(Fragment, {
33053
32580
  children: [/*#__PURE__*/jsx(Descriptions$1, {
33054
32581
  title: /*#__PURE__*/jsxs("div", {
@@ -33069,7 +32596,7 @@ var TableProperties = observer(function () {
33069
32596
  });
33070
32597
  });
33071
32598
 
33072
- var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
32599
+ var getConfig$6 = function getConfig(isoLanguageIds, t) {
33073
32600
  return {
33074
32601
  colDef: [{
33075
32602
  field: 'translatedName',
@@ -33079,8 +32606,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33079
32606
  placeHolderField: 'origName',
33080
32607
  combinedField: 'name'
33081
32608
  },
33082
- additionalFields: ['origName', 'name'],
33083
- editable: !viewOnly
32609
+ additionalFields: ['origName', 'name']
33084
32610
  }, {
33085
32611
  field: 'translatedComment',
33086
32612
  cellDataType: 'withPlaceholder',
@@ -33089,15 +32615,14 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33089
32615
  placeHolderField: 'origComment',
33090
32616
  combinedField: 'comment'
33091
32617
  },
33092
- additionalFields: ['origComment', 'comment'],
33093
- editable: !viewOnly
32618
+ additionalFields: ['origComment', 'comment']
33094
32619
  }, createTranslatedColumnConfig('translatedCatalogName', 'backoffice.idmEnricher.renaming.label.catalogName', isoLanguageIds, false, 'withPlaceholder', {
33095
32620
  placeHolderField: 'origCatalogName',
33096
32621
  combinedField: 'catalogName'
33097
- }, ['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', {
33098
32623
  placeHolderField: 'origCatalogInfo',
33099
32624
  combinedField: 'catalogInfo'
33100
- }, ['origCatalogInfo', 'catalogInfo'], !viewOnly), {
32625
+ }, ['origCatalogInfo', 'catalogInfo']), {
33101
32626
  headerName: 'backoffice.idmEnricher.renaming.label.contactperson',
33102
32627
  field: 'translatedContactPersonNo1',
33103
32628
  cellDataType: 'withPlaceholder',
@@ -33105,8 +32630,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33105
32630
  placeHolderField: 'origContactPersonNo1',
33106
32631
  combinedField: 'contactPersonNo1'
33107
32632
  },
33108
- additionalFields: ['origContactPersonNo1', 'contactPersonNo1'],
33109
- editable: !viewOnly
32633
+ additionalFields: ['origContactPersonNo1', 'contactPersonNo1']
33110
32634
  }, {
33111
32635
  headerName: 'backoffice.idmEnricher.renaming.label.contactrole',
33112
32636
  field: 'translatedContactRole1',
@@ -33115,8 +32639,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33115
32639
  placeHolderField: 'origContactRole1',
33116
32640
  combinedField: 'contactRole1'
33117
32641
  },
33118
- additionalFields: ['origContactRole1', 'contactRole1'],
33119
- editable: !viewOnly
32642
+ additionalFields: ['origContactRole1', 'contactRole1']
33120
32643
  }, {
33121
32644
  headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname',
33122
32645
  field: 'translatedContactName1',
@@ -33125,8 +32648,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33125
32648
  placeHolderField: 'origContactName1',
33126
32649
  combinedField: 'contactName1'
33127
32650
  },
33128
- additionalFields: ['origContactName1', 'contactName1'],
33129
- editable: !viewOnly
32651
+ additionalFields: ['origContactName1', 'contactName1']
33130
32652
  }, {
33131
32653
  headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname',
33132
32654
  field: 'translatedFirstName1',
@@ -33135,8 +32657,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33135
32657
  placeHolderField: 'origFirstName1',
33136
32658
  combinedField: 'firstName1'
33137
32659
  },
33138
- additionalFields: ['origFirstName1', 'firstName1'],
33139
- editable: !viewOnly
32660
+ additionalFields: ['origFirstName1', 'firstName1']
33140
32661
  }, {
33141
32662
  headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address',
33142
32663
  field: 'translatedFormOfAddress1',
@@ -33148,8 +32669,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33148
32669
  enumData: getFormOfAddressKey(t),
33149
32670
  displayLabelTemplate: '${name} (${value})'
33150
32671
  },
33151
- additionalFields: ['origFormOfAddress1', 'formOfAddress1'],
33152
- editable: !viewOnly
32672
+ additionalFields: ['origFormOfAddress1', 'formOfAddress1']
33153
32673
  }, {
33154
32674
  headerName: 'backoffice.idmEnricher.renaming.label.translated.department',
33155
32675
  field: 'translatedDepartment1',
@@ -33158,8 +32678,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33158
32678
  placeHolderField: 'origDepartment1',
33159
32679
  combinedField: 'department1'
33160
32680
  },
33161
- additionalFields: ['origDepartment1', 'department1'],
33162
- editable: !viewOnly
32681
+ additionalFields: ['origDepartment1', 'department1']
33163
32682
  }, {
33164
32683
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone',
33165
32684
  field: 'translatedTelephone1',
@@ -33168,8 +32687,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33168
32687
  placeHolderField: 'origTelephone1',
33169
32688
  combinedField: 'telephone1'
33170
32689
  },
33171
- additionalFields: ['origTelephone1', 'telephone1'],
33172
- editable: !viewOnly
32690
+ additionalFields: ['origTelephone1', 'telephone1']
33173
32691
  }, {
33174
32692
  headerName: 'backoffice.idmEnricher.renaming.label.translated.fax',
33175
32693
  field: 'translatedFax1',
@@ -33178,8 +32696,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33178
32696
  placeHolderField: 'origFax1',
33179
32697
  combinedField: 'fax1'
33180
32698
  },
33181
- additionalFields: ['origFax1', 'fax1'],
33182
- editable: !viewOnly
32699
+ additionalFields: ['origFax1', 'fax1']
33183
32700
  }, {
33184
32701
  field: 'translatedEmail1',
33185
32702
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
@@ -33188,8 +32705,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33188
32705
  placeHolderField: 'origEmail1',
33189
32706
  combinedField: 'email1'
33190
32707
  },
33191
- additionalFields: ['origEmail1', 'email1'],
33192
- editable: !viewOnly
32708
+ additionalFields: ['origEmail1', 'email1']
33193
32709
  }, {
33194
32710
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
33195
32711
  field: 'translatedStreet1',
@@ -33198,8 +32714,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33198
32714
  placeHolderField: 'origStreet1',
33199
32715
  combinedField: 'street1'
33200
32716
  },
33201
- additionalFields: ['origStreet1', 'street1'],
33202
- editable: !viewOnly
32717
+ additionalFields: ['origStreet1', 'street1']
33203
32718
  }, {
33204
32719
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
33205
32720
  field: 'translatedZipCodeStreet1',
@@ -33208,8 +32723,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33208
32723
  placeHolderField: 'origZipCodeStreet1',
33209
32724
  combinedField: 'zipCodeStreet1'
33210
32725
  },
33211
- additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1'],
33212
- editable: !viewOnly
32726
+ additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1']
33213
32727
  }, {
33214
32728
  field: 'translatedCity1',
33215
32729
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
@@ -33218,8 +32732,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33218
32732
  placeHolderField: 'origCity1',
33219
32733
  combinedField: 'city1'
33220
32734
  },
33221
- additionalFields: ['origCity1', 'city1'],
33222
- editable: !viewOnly
32735
+ additionalFields: ['origCity1', 'city1']
33223
32736
  }, {
33224
32737
  field: 'translatedIsoCountryId1',
33225
32738
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
@@ -33230,8 +32743,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33230
32743
  combinedField: 'isoCountryId1',
33231
32744
  enumData: getCountryKey(t)
33232
32745
  },
33233
- additionalFields: ['origIsoCountryId1', 'isoCountryId1'],
33234
- editable: !viewOnly
32746
+ additionalFields: ['origIsoCountryId1', 'isoCountryId1']
33235
32747
  }, {
33236
32748
  field: 'translatedContactPersonNo2',
33237
32749
  headerName: 'backoffice.idmEnricher.renaming.label.contactperson2',
@@ -33240,8 +32752,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33240
32752
  placeHolderField: 'origContactPersonNo2',
33241
32753
  combinedField: 'contactPersonNo2'
33242
32754
  },
33243
- additionalFields: ['origContactPersonNo2', 'contactPersonNo2'],
33244
- editable: !viewOnly
32755
+ additionalFields: ['origContactPersonNo2', 'contactPersonNo2']
33245
32756
  }, {
33246
32757
  headerName: 'backoffice.idmEnricher.renaming.label.contactrole2',
33247
32758
  field: 'translatedContactRole2',
@@ -33250,8 +32761,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33250
32761
  placeHolderField: 'origContactRole2',
33251
32762
  combinedField: 'contactRole2'
33252
32763
  },
33253
- additionalFields: ['origContactRole2', 'contactRole2'],
33254
- editable: !viewOnly
32764
+ additionalFields: ['origContactRole2', 'contactRole2']
33255
32765
  }, {
33256
32766
  headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname2',
33257
32767
  field: 'translatedContactName2',
@@ -33260,8 +32770,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33260
32770
  placeHolderField: 'origContactName2',
33261
32771
  combinedField: 'contactName2'
33262
32772
  },
33263
- additionalFields: ['origContactName2', 'contactName2'],
33264
- editable: !viewOnly
32773
+ additionalFields: ['origContactName2', 'contactName2']
33265
32774
  }, {
33266
32775
  headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname2',
33267
32776
  field: 'translatedFirstName2',
@@ -33270,8 +32779,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33270
32779
  placeHolderField: 'origFirstName2',
33271
32780
  combinedField: 'firstName2'
33272
32781
  },
33273
- additionalFields: ['origFirstName2', 'firstName2'],
33274
- editable: !viewOnly
32782
+ additionalFields: ['origFirstName2', 'firstName2']
33275
32783
  }, {
33276
32784
  headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address2',
33277
32785
  field: 'translatedFormOfAddress2',
@@ -33283,8 +32791,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33283
32791
  enumData: getFormOfAddressKey(t),
33284
32792
  displayLabelTemplate: '${name} (${value})'
33285
32793
  },
33286
- additionalFields: ['origFormOfAddress2', 'formOfAddress2'],
33287
- editable: !viewOnly
32794
+ additionalFields: ['origFormOfAddress2', 'formOfAddress2']
33288
32795
  }, {
33289
32796
  headerName: 'backoffice.idmEnricher.renaming.label.translated.department2',
33290
32797
  field: 'translatedDepartment2',
@@ -33293,8 +32800,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33293
32800
  placeHolderField: 'origDepartment2',
33294
32801
  combinedField: 'department2'
33295
32802
  },
33296
- additionalFields: ['origDepartment2', 'department2'],
33297
- editable: !viewOnly
32803
+ additionalFields: ['origDepartment2', 'department2']
33298
32804
  }, {
33299
32805
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone2',
33300
32806
  field: 'translatedTelephone2',
@@ -33303,8 +32809,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33303
32809
  placeHolderField: 'origTelephone2',
33304
32810
  combinedField: 'telephone2'
33305
32811
  },
33306
- additionalFields: ['origTelephone2', 'telephone2'],
33307
- editable: !viewOnly
32812
+ additionalFields: ['origTelephone2', 'telephone2']
33308
32813
  }, {
33309
32814
  headerName: 'backoffice.idmEnricher.renaming.label.translated.fax2',
33310
32815
  field: 'translatedFax2',
@@ -33313,8 +32818,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33313
32818
  placeHolderField: 'origFax2',
33314
32819
  combinedField: 'fax2'
33315
32820
  },
33316
- additionalFields: ['origFax2', 'fax2'],
33317
- editable: !viewOnly
32821
+ additionalFields: ['origFax2', 'fax2']
33318
32822
  }, {
33319
32823
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email2',
33320
32824
  field: 'translatedEmail2',
@@ -33323,8 +32827,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33323
32827
  placeHolderField: 'origEmail2',
33324
32828
  combinedField: 'email2'
33325
32829
  },
33326
- additionalFields: ['origEmail2', 'email2'],
33327
- editable: !viewOnly
32830
+ additionalFields: ['origEmail2', 'email2']
33328
32831
  }, {
33329
32832
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street2',
33330
32833
  field: 'translatedStreet2',
@@ -33333,8 +32836,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33333
32836
  placeHolderField: 'origStreet2',
33334
32837
  combinedField: 'street2'
33335
32838
  },
33336
- additionalFields: ['origStreet2', 'street2'],
33337
- editable: !viewOnly
32839
+ additionalFields: ['origStreet2', 'street2']
33338
32840
  }, {
33339
32841
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip2',
33340
32842
  field: 'translatedZipCodeStreet2',
@@ -33343,8 +32845,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33343
32845
  placeHolderField: 'origZipCodeStreet2',
33344
32846
  combinedField: 'zipCodeStreet2'
33345
32847
  },
33346
- additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2'],
33347
- editable: !viewOnly
32848
+ additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2']
33348
32849
  }, {
33349
32850
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city2',
33350
32851
  field: 'translatedCity2',
@@ -33353,11 +32854,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33353
32854
  placeHolderField: 'origCity2',
33354
32855
  combinedField: 'city2'
33355
32856
  },
33356
- additionalFields: ['origCity2', 'city2'],
33357
- editable: !viewOnly
32857
+ additionalFields: ['origCity2', 'city2']
33358
32858
  }, {
33359
32859
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country2',
33360
32860
  field: 'translatedIsoCountryId2',
32861
+ editable: true,
33361
32862
  cellDataType: 'withPlaceholder',
33362
32863
  type: ['withPlaceholderEnum'],
33363
32864
  customParams: {
@@ -33365,8 +32866,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33365
32866
  combinedField: 'isoCountryId2',
33366
32867
  enumData: getCountryKey(t)
33367
32868
  },
33368
- additionalFields: ['origIsoCountryId2', 'isoCountryId2'],
33369
- editable: !viewOnly
32869
+ additionalFields: ['origIsoCountryId2', 'isoCountryId2']
33370
32870
  }, {
33371
32871
  headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename',
33372
32872
  field: 'translatedManufactureName1',
@@ -33375,8 +32875,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33375
32875
  placeHolderField: 'origManufactureName1',
33376
32876
  combinedField: 'manufactureName1'
33377
32877
  },
33378
- additionalFields: ['origManufactureName1', 'manufactureName1'],
33379
- editable: !viewOnly
32878
+ additionalFields: ['origManufactureName1', 'manufactureName1']
33380
32879
  }, {
33381
32880
  headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename2',
33382
32881
  field: 'translatedManufactureName2',
@@ -33385,8 +32884,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33385
32884
  placeHolderField: 'origManufactureName2',
33386
32885
  combinedField: 'manufactureName2'
33387
32886
  },
33388
- additionalFields: ['origManufactureName2', 'manufactureName2'],
33389
- editable: !viewOnly
32887
+ additionalFields: ['origManufactureName2', 'manufactureName2']
33390
32888
  }, {
33391
32889
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
33392
32890
  field: 'translatedEmail',
@@ -33395,8 +32893,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33395
32893
  placeHolderField: 'origEmail',
33396
32894
  combinedField: 'email'
33397
32895
  },
33398
- additionalFields: ['origEmail', 'email'],
33399
- editable: !viewOnly
32896
+ additionalFields: ['origEmail', 'email']
33400
32897
  }, {
33401
32898
  headerName: 'backoffice.idmEnricher.renaming.label.translated.internetaddress',
33402
32899
  field: 'translatedInternetAddress',
@@ -33405,8 +32902,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33405
32902
  placeHolderField: 'origInternetAddress',
33406
32903
  combinedField: 'internetAddress'
33407
32904
  },
33408
- additionalFields: ['origInternetAddress', 'internetAddress'],
33409
- editable: !viewOnly
32905
+ additionalFields: ['origInternetAddress', 'internetAddress']
33410
32906
  }, {
33411
32907
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
33412
32908
  field: 'translatedStreet',
@@ -33415,8 +32911,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33415
32911
  placeHolderField: 'origStreet',
33416
32912
  combinedField: 'street'
33417
32913
  },
33418
- additionalFields: ['origStreet', 'street'],
33419
- editable: !viewOnly
32914
+ additionalFields: ['origStreet', 'street']
33420
32915
  }, {
33421
32916
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
33422
32917
  field: 'translatedZipCodeStreet',
@@ -33425,8 +32920,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33425
32920
  placeHolderField: 'origZipCodeStreet',
33426
32921
  combinedField: 'zipCodeStreet'
33427
32922
  },
33428
- additionalFields: ['origZipCodeStreet', 'zipCodeStreet'],
33429
- editable: !viewOnly
32923
+ additionalFields: ['origZipCodeStreet', 'zipCodeStreet']
33430
32924
  }, {
33431
32925
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
33432
32926
  field: 'translatedCity',
@@ -33435,11 +32929,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33435
32929
  placeHolderField: 'origCity',
33436
32930
  combinedField: 'city'
33437
32931
  },
33438
- additionalFields: ['origCity', 'city'],
33439
- editable: !viewOnly
32932
+ additionalFields: ['origCity', 'city']
33440
32933
  }, {
33441
32934
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
33442
32935
  field: 'translatedContactSupplierIsoCountryId',
32936
+ editable: true,
33443
32937
  cellDataType: 'withPlaceholder',
33444
32938
  type: ['withPlaceholderEnum'],
33445
32939
  customParams: {
@@ -33447,8 +32941,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33447
32941
  combinedField: 'contactSupplierIsoCountryId',
33448
32942
  enumData: getCountryKey(t)
33449
32943
  },
33450
- additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId'],
33451
- editable: !viewOnly
32944
+ additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId']
33452
32945
  }, {
33453
32946
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zippostbox',
33454
32947
  field: 'translatedZipCodePostBox',
@@ -33457,8 +32950,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33457
32950
  placeHolderField: 'origZipCodePostBox',
33458
32951
  combinedField: 'zipCodePostBox'
33459
32952
  },
33460
- additionalFields: ['origZipCodePostBox', 'zipCodePostBox'],
33461
- editable: !viewOnly
32953
+ additionalFields: ['origZipCodePostBox', 'zipCodePostBox']
33462
32954
  }, {
33463
32955
  headerName: 'backoffice.idmEnricher.renaming.label.translated.postbox',
33464
32956
  field: 'translatedPostBox',
@@ -33467,8 +32959,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33467
32959
  placeHolderField: 'origPostBox',
33468
32960
  combinedField: 'postBox'
33469
32961
  },
33470
- additionalFields: ['origPostBox', 'postBox'],
33471
- editable: !viewOnly
32962
+ additionalFields: ['origPostBox', 'postBox']
33472
32963
  }, {
33473
32964
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephoneswitchboard',
33474
32965
  field: 'translatedTelephoneSwitchboard',
@@ -33477,8 +32968,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33477
32968
  placeHolderField: 'origTelephoneSwitchboard',
33478
32969
  combinedField: 'telephoneSwitchboard'
33479
32970
  },
33480
- additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard'],
33481
- editable: !viewOnly
32971
+ additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard']
33482
32972
  }, {
33483
32973
  headerName: 'backoffice.idmEnricher.renaming.label.translated.faxswitchboard',
33484
32974
  field: 'translatedFaxSwitchboard',
@@ -33487,13 +32977,12 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
33487
32977
  placeHolderField: 'origFaxSwitchboard',
33488
32978
  combinedField: 'faxSwitchboard'
33489
32979
  },
33490
- additionalFields: ['origFaxSwitchboard', 'faxSwitchboard'],
33491
- editable: !viewOnly
32980
+ additionalFields: ['origFaxSwitchboard', 'faxSwitchboard']
33492
32981
  }]
33493
32982
  };
33494
32983
  };
33495
32984
 
33496
- var getConfig$5 = function getConfig(isoLanguageIds, t, viewOnly) {
32985
+ var getConfig$5 = function getConfig(isoLanguageIds) {
33497
32986
  return {
33498
32987
  colDef: [{
33499
32988
  headerName: 'backoffice.idmEnricher.renaming.label.detailinfo_nr',
@@ -33502,17 +32991,17 @@ var getConfig$5 = function getConfig(isoLanguageIds, t, viewOnly) {
33502
32991
  }, createTranslatedColumnConfig('translatedExternalName', 'backoffice.idmEnricher.renaming.label.externalName', isoLanguageIds, false, 'withPlaceholder', {
33503
32992
  placeHolderField: 'origExternalName',
33504
32993
  combinedField: 'externalName'
33505
- }, ['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', {
33506
32995
  placeHolderField: 'origInternalName',
33507
32996
  combinedField: 'internalName'
33508
- }, ['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', {
33509
32998
  placeHolderField: 'origToolTip',
33510
32999
  combinedField: 'toolTip'
33511
- }, ['origToolTip', 'toolTip'], !viewOnly)]
33000
+ }, ['origToolTip', 'toolTip'])]
33512
33001
  };
33513
33002
  };
33514
33003
 
33515
- var getConfig$4 = function getConfig(isoLanguageIds, t, viewOnly) {
33004
+ var getConfig$4 = function getConfig(isoLanguageIds) {
33516
33005
  return {
33517
33006
  colDef: [{
33518
33007
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
@@ -33523,11 +33012,11 @@ var getConfig$4 = function getConfig(isoLanguageIds, t, viewOnly) {
33523
33012
  }, createTranslatedColumnConfig('translatedFeatureText', 'backoffice.idmEnricher.renaming.label.featuretext', isoLanguageIds, false, 'withPlaceholder', {
33524
33013
  placeHolderField: 'origFeatureText',
33525
33014
  combinedField: 'featureText'
33526
- }, ['origFeatureText', 'featureText'], !viewOnly)]
33015
+ }, ['origFeatureText', 'featureText'])]
33527
33016
  };
33528
33017
  };
33529
33018
 
33530
- var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33019
+ var getConfig$3 = function getConfig(isoLanguageIds) {
33531
33020
  return {
33532
33021
  colDef: [{
33533
33022
  headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
@@ -33538,13 +33027,13 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33538
33027
  }, createTranslatedColumnConfig('translatedShortText', 'backoffice.idmEnricher.renaming.label.shortText', isoLanguageIds, false, 'withPlaceholder', {
33539
33028
  placeHolderField: 'origShortText',
33540
33029
  combinedField: 'shortText'
33541
- }, ['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', {
33542
33031
  placeHolderField: 'origFullText',
33543
33032
  combinedField: 'fullText'
33544
- }, ['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', {
33545
33034
  placeHolderField: 'origPlanningAdvice',
33546
33035
  combinedField: 'planningAdvice'
33547
- }, ['origPlanningAdvice', 'planningAdvice'], !viewOnly), {
33036
+ }, ['origPlanningAdvice', 'planningAdvice']), {
33548
33037
  headerName: 'backoffice.idmEnricher.renaming.label.translatedSalesNumber',
33549
33038
  field: 'translatedSalesNumber',
33550
33039
  cellDataType: 'withPlaceholder',
@@ -33552,8 +33041,7 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33552
33041
  placeHolderField: 'origSalesNumber',
33553
33042
  combinedField: 'salesNumber'
33554
33043
  },
33555
- additionalFields: ['origSalesNumber', 'salesNumber'],
33556
- editable: !viewOnly
33044
+ additionalFields: ['origSalesNumber', 'salesNumber']
33557
33045
  }, {
33558
33046
  field: 'sequenceNo',
33559
33047
  headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
@@ -33567,8 +33055,7 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33567
33055
  placeHolderField: 'origEdpNumber',
33568
33056
  combinedField: 'edpNumber'
33569
33057
  },
33570
- additionalFields: ['origEdpNumber', 'edpNumber'],
33571
- editable: !viewOnly
33058
+ additionalFields: ['origEdpNumber', 'edpNumber']
33572
33059
  }, {
33573
33060
  headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
33574
33061
  field: 'translatedEanNumber',
@@ -33577,13 +33064,12 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33577
33064
  placeHolderField: 'origEanNumber',
33578
33065
  combinedField: 'eanNumber'
33579
33066
  },
33580
- additionalFields: ['origEanNumber', 'eanNumber'],
33581
- editable: !viewOnly
33067
+ additionalFields: ['origEanNumber', 'eanNumber']
33582
33068
  }]
33583
33069
  };
33584
33070
  };
33585
33071
 
33586
- var getConfig$2 = function getConfig(isoLanguageIds, t, viewOnly) {
33072
+ var getConfig$2 = function getConfig(isoLanguageIds) {
33587
33073
  return {
33588
33074
  colDef: [{
33589
33075
  headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
@@ -33594,10 +33080,10 @@ var getConfig$2 = function getConfig(isoLanguageIds, t, viewOnly) {
33594
33080
  }, createTranslatedColumnConfig('translatedOptionText', 'backoffice.idmEnricher.renaming.label.optionText', isoLanguageIds, false, 'withPlaceholder', {
33595
33081
  placeHolderField: 'origOptionText',
33596
33082
  combinedField: 'optionText'
33597
- }, ['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', {
33598
33084
  placeHolderField: 'origOptionCommentText',
33599
33085
  combinedField: 'optionCommentText'
33600
- }, ['origOptionCommentText', 'optionCommentText'], !viewOnly), {
33086
+ }, ['origOptionCommentText', 'optionCommentText']), {
33601
33087
  field: 'featureNos',
33602
33088
  headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
33603
33089
  cellDataType: 'lookup',
@@ -33622,7 +33108,7 @@ var getConfig$2 = function getConfig(isoLanguageIds, t, viewOnly) {
33622
33108
  };
33623
33109
  };
33624
33110
 
33625
- var getConfig$1 = function getConfig(isoLanguageIds, t, viewOnly) {
33111
+ var getConfig$1 = function getConfig(isoLanguageIds) {
33626
33112
  return {
33627
33113
  colDef: [{
33628
33114
  headerName: 'backoffice.idmEnricher.renaming.label.serieNo',
@@ -33633,10 +33119,10 @@ var getConfig$1 = function getConfig(isoLanguageIds, t, viewOnly) {
33633
33119
  }, createTranslatedColumnConfig('translatedSeriesName', 'backoffice.idmEnricher.renaming.label.serieName', isoLanguageIds, false, 'withPlaceholder', {
33634
33120
  placeHolderField: 'origSeriesName',
33635
33121
  combinedField: 'seriesName'
33636
- }, ['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', {
33637
33123
  placeHolderField: 'origSeriesFullText',
33638
33124
  combinedField: 'seriesFullText'
33639
- }, ['origSeriesFullText', 'seriesFullText'], !viewOnly)]
33125
+ }, ['origSeriesFullText', 'seriesFullText'])]
33640
33126
  };
33641
33127
  };
33642
33128
 
@@ -33724,20 +33210,11 @@ var RenamingTable = observer(function (_ref) {
33724
33210
  packageId = _useModule.packageId,
33725
33211
  apiConfig = _useModule.apiConfig,
33726
33212
  selectedPackage = _useModule.selectedPackage,
33727
- selectedItem = _useModule.selectedItem,
33728
- setSelectedItem = _useModule.setSelectedItem,
33729
- selectedSerie = _useModule.selectedSerie,
33730
- setSelectedSerie = _useModule.setSelectedSerie,
33731
- viewOnly = _useModule.viewOnly;
33732
- var _useTools = useTools({
33733
- packageId: packageId,
33734
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
33735
- setArticle: setSelectedItem,
33736
- setSerie: setSelectedSerie,
33737
- serie: selectedSerie,
33738
- item: selectedItem
33739
- }),
33740
- updateConfigurator = _useTools.updateConfigurator;
33213
+ selectedSerie = _useModule.selectedSerie;
33214
+ useTools({
33215
+ packageId: packageId,
33216
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
33217
+ });
33741
33218
  var baseConfiguration = useMemo(function () {
33742
33219
  return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
33743
33220
  }, [selectedPackage, i18n.language]);
@@ -33746,31 +33223,6 @@ var RenamingTable = observer(function (_ref) {
33746
33223
  packageId: packageId
33747
33224
  };
33748
33225
  }, [packageId]);
33749
- var hooks = useMemo(function () {
33750
- return {
33751
- onCellSelectionChanged: function onCellSelectionChanged(event) {
33752
- var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
33753
- switch (type) {
33754
- case 'features':
33755
- updateConfigurator({
33756
- 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
33757
- });
33758
- break;
33759
- case 'options':
33760
- updateConfigurator({
33761
- 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
33762
- });
33763
- break;
33764
- case 'items':
33765
- 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);
33766
- break;
33767
- case 'series':
33768
- 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);
33769
- break;
33770
- }
33771
- }
33772
- };
33773
- }, [updateConfigurator, type]);
33774
33226
  var prevPreFilter = useRef();
33775
33227
  var preFilter = useMemo(function () {
33776
33228
  if (type === 'items' && selectedSerie) {
@@ -33791,7 +33243,7 @@ var RenamingTable = observer(function (_ref) {
33791
33243
  var apiInterface = useMemo(function () {
33792
33244
  return {
33793
33245
  read: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type,
33794
- update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/${_id}',
33246
+ update: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/${_id}',
33795
33247
  bulk: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/bulk'
33796
33248
  };
33797
33249
  }, [type]);
@@ -33817,7 +33269,7 @@ var RenamingTable = observer(function (_ref) {
33817
33269
  cellDataType: 'objectId'
33818
33270
  }])
33819
33271
  };
33820
- }, [apiInterface, baseConfiguration.colDef, viewOnly]);
33272
+ }, [apiInterface, baseConfiguration.colDef]);
33821
33273
  var showTable = useMemo(function () {
33822
33274
  return selectedPackage && (!['items'].includes(type) || type === 'items' && preFilter);
33823
33275
  }, [type, preFilter, selectedPackage]);
@@ -33840,8 +33292,7 @@ var RenamingTable = observer(function (_ref) {
33840
33292
  gridId: 'renaming-grid_' + type,
33841
33293
  applicationData: applicationData,
33842
33294
  preFilter: preFilter,
33843
- configuration: configuration,
33844
- hooks: hooks
33295
+ configuration: configuration
33845
33296
  })]
33846
33297
  });
33847
33298
  });
@@ -34323,45 +33774,11 @@ var ExclusivityTable = observer(function (_ref) {
34323
33774
  apiConfig = _useModule.apiConfig,
34324
33775
  organizationId = _useModule.organizationId,
34325
33776
  selectedPackage = _useModule.selectedPackage,
34326
- selectedSerie = _useModule.selectedSerie,
34327
- setSelectedSerie = _useModule.setSelectedSerie,
34328
- setSelectedItem = _useModule.setSelectedItem,
34329
- selectedItem = _useModule.selectedItem,
34330
- viewOnly = _useModule.viewOnly;
34331
- var _useTools = useTools({
34332
- packageId: packageId,
34333
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
34334
- setArticle: setSelectedItem,
34335
- setSerie: setSelectedSerie,
34336
- serie: selectedSerie,
34337
- item: selectedItem
34338
- }),
34339
- updateConfigurator = _useTools.updateConfigurator;
34340
- var hooks = useMemo(function () {
34341
- return {
34342
- onCellSelectionChanged: function onCellSelectionChanged(event) {
34343
- var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
34344
- switch (type) {
34345
- case 'efeatures':
34346
- updateConfigurator({
34347
- 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
34348
- });
34349
- break;
34350
- case 'eoptions':
34351
- updateConfigurator({
34352
- 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
34353
- });
34354
- break;
34355
- case 'eitems':
34356
- 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);
34357
- break;
34358
- case 'eseries':
34359
- 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);
34360
- break;
34361
- }
34362
- }
34363
- };
34364
- }, [updateConfigurator, type]);
33777
+ selectedSerie = _useModule.selectedSerie;
33778
+ useTools({
33779
+ packageId: packageId,
33780
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
33781
+ });
34365
33782
  var apiInterface = useMemo(function () {
34366
33783
  var patchId = '${_id}';
34367
33784
  if (type === 'eitems') patchId = '${typeNo}';
@@ -34375,7 +33792,7 @@ var ExclusivityTable = observer(function (_ref) {
34375
33792
  var listType = type === 'eitems' ? 'items' : 'options';
34376
33793
  return {
34377
33794
  read: !['eitems'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
34378
- 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
34379
33796
  };
34380
33797
  }, [type]);
34381
33798
  var oldDataRef = useRef();
@@ -34404,7 +33821,7 @@ var ExclusivityTable = observer(function (_ref) {
34404
33821
  floatingFilter: true,
34405
33822
  colDef: [{
34406
33823
  field: 'active',
34407
- editable: !viewOnly,
33824
+ editable: true,
34408
33825
  cellDataType: 'boolean',
34409
33826
  pinned: 'left',
34410
33827
  lockPinned: true
@@ -34420,11 +33837,11 @@ var ExclusivityTable = observer(function (_ref) {
34420
33837
  }, {
34421
33838
  headerName: 'backoffice.idmEnricher.general.label._id',
34422
33839
  field: '_id',
34423
- editable: false,
33840
+ editable: true,
34424
33841
  cellDataType: 'objectId'
34425
33842
  }])
34426
33843
  };
34427
- }, [apiInterface, selectedSerie, config.colDef, viewOnly]);
33844
+ }, [apiInterface, selectedSerie, config.colDef]);
34428
33845
  return /*#__PURE__*/jsxs(Fragment, {
34429
33846
  children: [/*#__PURE__*/jsx(Descriptions$1, {
34430
33847
  title: /*#__PURE__*/jsxs("div", {
@@ -34443,8 +33860,7 @@ var ExclusivityTable = observer(function (_ref) {
34443
33860
  }), showTable && /*#__PURE__*/jsx(Spreadsheet, {
34444
33861
  gridId: 'crud-grid_exclusivity_' + type,
34445
33862
  applicationData: applicationData,
34446
- configuration: configuration,
34447
- hooks: hooks
33863
+ configuration: configuration
34448
33864
  })]
34449
33865
  });
34450
33866
  });
@@ -34456,11 +33872,10 @@ var TableTabGroups = observer(function () {
34456
33872
  packageId = _useModule.packageId,
34457
33873
  organizationId = _useModule.organizationId,
34458
33874
  apiConfig = _useModule.apiConfig,
34459
- selectedPackage = _useModule.selectedPackage,
34460
- viewOnly = _useModule.viewOnly;
33875
+ selectedPackage = _useModule.selectedPackage;
34461
33876
  useTools({
34462
33877
  packageId: packageId,
34463
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
33878
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
34464
33879
  });
34465
33880
  var applicationData = useMemo(function () {
34466
33881
  return {
@@ -34472,10 +33887,10 @@ var TableTabGroups = observer(function () {
34472
33887
  return {
34473
33888
  //TODO: Es gibt globale Tabgroups, die vordefiniert sind und pro Enricher Paket nochmals angepasst werden können -endpoint anpassen?
34474
33889
  read: apiConfig.enricherService + '/packages/${packageId}/tabgroups',
34475
- create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/tabgroups',
34476
- restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
34477
- "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
34478
- 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}',
34479
33894
  bulk: apiConfig.enricherService + '/packages/${packageId}/tabgroups/bulk'
34480
33895
  };
34481
33896
  }, []);
@@ -34489,7 +33904,7 @@ var TableTabGroups = observer(function () {
34489
33904
  field: 'featureNos',
34490
33905
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
34491
33906
  cellDataType: 'lookup',
34492
- editable: !viewOnly,
33907
+ editable: true,
34493
33908
  customParams: {
34494
33909
  nameField: 'featureNosDisplayTexts',
34495
33910
  displayLabelTemplate: '${name} (${value})',
@@ -34503,7 +33918,7 @@ var TableTabGroups = observer(function () {
34503
33918
  },
34504
33919
  additionalFields: ['featureNosDisplayTexts'],
34505
33920
  isDictionary: true
34506
- }, 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), {
34507
33922
  field: 'organizationId',
34508
33923
  editable: false,
34509
33924
  hide: true,
@@ -34533,7 +33948,7 @@ var TableTabGroups = observer(function () {
34533
33948
  cellDataType: 'objectId'
34534
33949
  }]
34535
33950
  };
34536
- }, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
33951
+ }, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
34537
33952
  return /*#__PURE__*/jsxs(Fragment, {
34538
33953
  children: [/*#__PURE__*/jsx(Descriptions$1, {
34539
33954
  title: /*#__PURE__*/jsxs("div", {
@@ -34561,11 +33976,10 @@ var TablePartlistPos = observer(function () {
34561
33976
  packageId = _useModule.packageId,
34562
33977
  organizationId = _useModule.organizationId,
34563
33978
  apiConfig = _useModule.apiConfig,
34564
- selectedPackage = _useModule.selectedPackage,
34565
- viewOnly = _useModule.viewOnly;
33979
+ selectedPackage = _useModule.selectedPackage;
34566
33980
  useTools({
34567
33981
  packageId: packageId,
34568
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
33982
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
34569
33983
  });
34570
33984
  var posInvisibility = useMemo(function () {
34571
33985
  return [{
@@ -34588,10 +34002,10 @@ var TablePartlistPos = observer(function () {
34588
34002
  var apiInterface = useMemo(function () {
34589
34003
  return {
34590
34004
  read: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34591
- create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34592
- restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34593
- "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34594
- 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}',
34595
34009
  bulk: apiConfig.enricherService + '/packages/${packageId}/partlistpos/bulk'
34596
34010
  };
34597
34011
  }, []);
@@ -34604,12 +34018,12 @@ var TablePartlistPos = observer(function () {
34604
34018
  colDef: [{
34605
34019
  headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
34606
34020
  field: 'retailPrefix',
34607
- editable: !viewOnly,
34021
+ editable: true,
34608
34022
  pinned: 'left'
34609
34023
  }, {
34610
34024
  headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
34611
34025
  field: 'retailArtilceNumber',
34612
- editable: !viewOnly,
34026
+ editable: true,
34613
34027
  pinned: 'left'
34614
34028
  }, {
34615
34029
  headerName: 'backoffice.idmEnricher.partlistpos.label.partlistKey',
@@ -34711,7 +34125,7 @@ var TablePartlistPos = observer(function () {
34711
34125
  cellDataType: 'objectId'
34712
34126
  }]
34713
34127
  };
34714
- }, [apiInterface, posInvisibility, viewOnly]);
34128
+ }, [apiInterface, posInvisibility]);
34715
34129
  return /*#__PURE__*/jsxs(Fragment, {
34716
34130
  children: [/*#__PURE__*/jsx(Descriptions$1, {
34717
34131
  title: /*#__PURE__*/jsxs("div", {
@@ -35012,8 +34426,8 @@ var space = "space-T5Mkd";
35012
34426
  var input$1 = "input-SK-Fo";
35013
34427
  var addButton$1 = "addButton-AVN8Y";
35014
34428
  var helpText = "helpText-QYQQF";
35015
- 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";
35016
- 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);
35017
34431
 
35018
34432
  function PriceFactorCellRenderer(props) {
35019
34433
  var data = props.data,
@@ -35229,8 +34643,8 @@ var difference = "difference-xT9ZP";
35229
34643
  var differencePositive = "differencePositive-hGhZO";
35230
34644
  var differenceNegative = "differenceNegative-3CEZA";
35231
34645
  var differenceNeutral = "differenceNeutral-wx8oE";
35232
- 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";
35233
- 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);
35234
34648
 
35235
34649
  function PriceDisplayCellRenderer(props) {
35236
34650
  var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
@@ -35296,129 +34710,59 @@ function getPriceFeatureGroups(selectedSerie, language) {
35296
34710
  if (!(selectedSerie !== null && selectedSerie !== void 0 && selectedSerie.pricefeaturegroups)) {
35297
34711
  return [];
35298
34712
  }
35299
- 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) {
35300
34714
  var _selectedSerie$pricef2, _selectedSerie$pricef3;
35301
34715
  return {
35302
- id: 'PRFG' + priceFeatureGroupKey,
35303
- 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,
35304
34718
  keys: [],
35305
34719
  keysDisplayTexts: []
35306
34720
  };
35307
34721
  });
35308
- (_selectedSerie$pricef4 = selectedSerie.pricefeaturegroupsKeys) === null || _selectedSerie$pricef4 === void 0 || _selectedSerie$pricef4.forEach(function (priceGroupKey, i) {
35309
- var pfgSplit = priceGroupKey.split('_');
35310
- 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', '');
35311
34725
  var pfg = priceFeatureGroups.find(function (pfg) {
35312
34726
  return pfg.id == pfgId;
35313
34727
  });
35314
34728
  if (pfg) {
35315
34729
  var _selectedSerie$pricef5;
35316
- pfg.keys.push(priceGroupKey);
34730
+ pfg.keys.push(priceFeatureGroupKey);
35317
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()]);
35318
34732
  }
35319
34733
  });
35320
34734
  return priceFeatureGroups;
35321
34735
  }
35322
34736
 
34737
+ var wrapper$3 = "wrapper-5t6RT";
35323
34738
  var input = "input-leHam";
35324
34739
  var disabled$1 = "disabled-Llkqu";
35325
- 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";
35326
- 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);
35327
34742
 
35328
- var _excluded = ["onSave", "value"];
35329
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; }
35330
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; }
35331
- function PriceFactorInput(_ref) {
35332
- var _onSave = _ref.onSave,
35333
- value = _ref.value,
35334
- props = _objectWithoutProperties(_ref, _excluded);
35335
- var _useState = useState(value),
35336
- _useState2 = _slicedToArray(_useState, 2),
35337
- innerValue = _useState2[0],
35338
- setInnerValue = _useState2[1];
35339
- useEffect(function () {
35340
- setInnerValue(value);
35341
- }, [value]);
35342
- return /*#__PURE__*/jsx(Tooltip$1, {
35343
- title: props.tooltip,
35344
- children: /*#__PURE__*/jsx("div", {
35345
- className: classnames(input, 'price-factor-input', props.className, _defineProperty({}, disabled$1, props.disabled)),
35346
- children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
35347
- isNotInAGGrid: true,
35348
- value: innerValue,
35349
- onSave: function onSave(data, value) {
35350
- setInnerValue(value);
35351
- return _onSave(data, value);
35352
- }
35353
- }))
35354
- })
35355
- });
35356
- }
35357
-
35358
- var inputHeader = "input-header--4KDP";
35359
- var factorInput = "factor-input-MX85Z";
35360
- 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";
35361
- styleInject(css_248z$b);
35362
-
35363
- function PriceFactorHeaderComponent(_ref) {
35364
- var onSave = _ref.onSave,
35365
- onPriorityChange = _ref.onPriorityChange,
35366
- priority = _ref.priority,
35367
- priorityForced = _ref.priorityForced,
35368
- value = _ref.value,
35369
- inputTooltip = _ref.inputTooltip,
35370
- checkboxTooltip = _ref.checkboxTooltip;
35371
- var _useTranslation = useTranslation$1(),
35372
- t = _useTranslation.t;
35373
- var _useState = useState(priority || priorityForced),
35374
- _useState2 = _slicedToArray(_useState, 2),
35375
- innerChecked = _useState2[0],
35376
- setInnerChecked = _useState2[1];
35377
- useEffect(function () {
35378
- setInnerChecked(priority || priorityForced);
35379
- }, [priority, priorityForced]);
35380
- return /*#__PURE__*/jsxs(Fragment, {
35381
- children: [/*#__PURE__*/jsx(PriceFactorInput, {
35382
- onSave: onSave,
35383
- value: value,
35384
- className: factorInput,
35385
- tooltip: t(inputTooltip)
35386
- }), /*#__PURE__*/jsx(Tooltip$1, {
35387
- title: t("".concat(checkboxTooltip, ".").concat(priorityForced ? 'forced' : priority ? 'true' : 'false')),
35388
- children: /*#__PURE__*/jsx(Checkbox, {
35389
- checked: innerChecked,
35390
- disabled: priorityForced,
35391
- onChange: function onChange(e) {
35392
- setInnerChecked(e.target.checked);
35393
- onPriorityChange(e.target.checked);
35394
- }
35395
- })
35396
- })]
35397
- });
35398
- }
35399
-
35400
- var root = "root-WJLKp";
35401
- var contentWrapper$1 = "content-wrapper-Ki4Pt";
35402
- 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";
35403
- styleInject(css_248z$a);
35404
-
35405
- function Setting(_ref) {
35406
- var title = _ref.title,
35407
- tooltip = _ref.tooltip,
35408
- className = _ref.className,
35409
- children = _ref.children;
34745
+ function PriceFactorInput(props) {
35410
34746
  return /*#__PURE__*/jsxs("div", {
35411
- className: classnames(root, className),
35412
- children: [title, /*#__PURE__*/jsx(Tooltip$1, {
35413
- title: tooltip,
34747
+ className: classnames(wrapper$3, props.className),
34748
+ children: [props.title, /*#__PURE__*/jsx(Tooltip$1, {
34749
+ title: props.tooltip,
35414
34750
  children: /*#__PURE__*/jsx("div", {
35415
- className: contentWrapper$1,
35416
- 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
+ }))
35417
34756
  })
35418
34757
  })]
35419
34758
  });
35420
34759
  }
35421
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
+
35422
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; }
35423
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; }
35424
34768
  var Prices = observer(function (_ref) {
@@ -35427,89 +34771,11 @@ var Prices = observer(function (_ref) {
35427
34771
  packageId = _ref.packageId,
35428
34772
  apiConfig = _ref.apiConfig,
35429
34773
  pricelist = _ref.pricelist,
35430
- setNodeDataValue = _ref.setNodeDataValue,
35431
- viewOnly = _ref.viewOnly;
34774
+ setNodeDataValue = _ref.setNodeDataValue;
35432
34775
  var _useTranslation = useTranslation(),
35433
34776
  t = _useTranslation.t;
35434
- var root = useStore();
35435
- var spreadsheetRef = useRef(null);
35436
34777
  var _useEnricherContext = useEnricherContext(['pricelists']),
35437
34778
  selectedSerie = _useEnricherContext.selectedSerie;
35438
- var _useState = useState(false),
35439
- _useState2 = _slicedToArray(_useState, 2),
35440
- onlyManual = _useState2[0],
35441
- setOnlyManual = _useState2[1];
35442
- var updatePfgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
35443
- if (!selectedSerie) return;
35444
-
35445
- // Create copies of the objects to modify
35446
- var newFactors = _objectSpread$c({}, pricelist.pfgPricefactors);
35447
- var serieFactors = _objectSpread$c({}, newFactors[selectedSerie.serieNo]);
35448
- if (value.length === 0) {
35449
- // Remove the empty price feature group
35450
- delete serieFactors[priceFeatureGroupItem];
35451
-
35452
- // If serie factors is now empty, remove the entire serie entry
35453
- if (Object.keys(serieFactors).length === 0) {
35454
- delete newFactors[selectedSerie.serieNo];
35455
- } else {
35456
- newFactors[selectedSerie.serieNo] = serieFactors;
35457
- }
35458
-
35459
- // If no more series exist, set pfgPricefactors to undefined
35460
- if (Object.keys(newFactors).length === 0) {
35461
- setNodeDataValue({
35462
- pfgPricefactors: undefined
35463
- });
35464
- return;
35465
- }
35466
- } else {
35467
- // Add/update the value
35468
- serieFactors[priceFeatureGroupItem] = value;
35469
- newFactors[selectedSerie.serieNo] = serieFactors;
35470
- }
35471
- setNodeDataValue({
35472
- pfgPricefactors: newFactors
35473
- });
35474
- }, [selectedSerie]);
35475
- var updatePfgPriority = useCallback(function (priceFeatureGroupItem, value) {
35476
- var _newPriority$selected;
35477
- if (!selectedSerie) return;
35478
- var newPriority = _objectSpread$c({}, pricelist.pfgPricefactorsPriority);
35479
- var seriesPriority = new Set((_newPriority$selected = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected !== void 0 ? _newPriority$selected : []);
35480
- if (value === true) {
35481
- seriesPriority.add(priceFeatureGroupItem);
35482
- } else {
35483
- seriesPriority["delete"](priceFeatureGroupItem);
35484
- }
35485
- if (seriesPriority.size === 0) {
35486
- delete newPriority[selectedSerie.serieNo];
35487
- } else {
35488
- newPriority[selectedSerie.serieNo] = Array.from(seriesPriority);
35489
- }
35490
- setNodeDataValue({
35491
- pfgPricefactorsPriority: newPriority
35492
- });
35493
- }, [selectedSerie]);
35494
- var updatePgPriority = useCallback(function (priceFeatureGroupItem, value) {
35495
- var _newPriority$selected2;
35496
- if (!selectedSerie) return;
35497
- var newPriority = _objectSpread$c({}, pricelist.pgPricefactorsPriority);
35498
- var seriesPriority = new Set((_newPriority$selected2 = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected2 !== void 0 ? _newPriority$selected2 : []);
35499
- if (value === true) {
35500
- seriesPriority.add(priceFeatureGroupItem);
35501
- } else {
35502
- seriesPriority["delete"](priceFeatureGroupItem);
35503
- }
35504
- if (seriesPriority.size === 0) {
35505
- delete newPriority[selectedSerie.serieNo];
35506
- } else {
35507
- newPriority[selectedSerie.serieNo] = Array.from(seriesPriority);
35508
- }
35509
- setNodeDataValue({
35510
- pgPricefactorsPriority: newPriority
35511
- });
35512
- }, [selectedSerie]);
35513
34779
  var updatePgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
35514
34780
  if (!selectedSerie) return;
35515
34781
 
@@ -35633,34 +34899,6 @@ var Prices = observer(function (_ref) {
35633
34899
  seriePricefactors: newFactors
35634
34900
  });
35635
34901
  }, [pricelist, selectedSerie, setNodeDataValue]);
35636
- function deleteManualPrices() {
35637
- return _deleteManualPrices.apply(this, arguments);
35638
- }
35639
- function _deleteManualPrices() {
35640
- _deleteManualPrices = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
35641
- var _spreadsheetRef$curre;
35642
- var api;
35643
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
35644
- while (1) switch (_context8.prev = _context8.next) {
35645
- case 0:
35646
- api = new _default$d({
35647
- type: 'AGGrid',
35648
- apiInterface: {
35649
- "delete": apiConfig.enricherService + "/packages/".concat(packageId, "/pricelists/").concat(pricelist._id, "/serie/").concat(selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo, "/prices/manual")
35650
- }
35651
- }, root);
35652
- _context8.next = 3;
35653
- return api["delete"]();
35654
- case 3:
35655
- (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 || _spreadsheetRef$curre.refresh();
35656
- case 4:
35657
- case "end":
35658
- return _context8.stop();
35659
- }
35660
- }, _callee8);
35661
- }));
35662
- return _deleteManualPrices.apply(this, arguments);
35663
- }
35664
34902
  var applicationData = useMemo(function () {
35665
34903
  return {
35666
34904
  organizationId: organizationId,
@@ -35671,10 +34909,10 @@ var Prices = observer(function (_ref) {
35671
34909
  }, [organizationId, packageId, selectedSerie, pricelist]);
35672
34910
  var apiInterface = useMemo(function () {
35673
34911
  return {
35674
- read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices' + (onlyManual ? '?onlyManual=true' : ''),
35675
- 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}'
35676
34914
  };
35677
- }, [onlyManual]);
34915
+ }, []);
35678
34916
  var priceFeatureGroups = usePriceFeatureGroupsFromSerie(selectedSerie);
35679
34917
  var configuration = useMemo(function () {
35680
34918
  var _priceFeatureGroups$m;
@@ -35772,57 +35010,16 @@ var Prices = observer(function (_ref) {
35772
35010
  sortable: false,
35773
35011
  editable: false
35774
35012
  }].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups === null || priceFeatureGroups === void 0 ? void 0 : priceFeatureGroups.map(function (priceFeatureGroup) {
35775
- var _pricelist$pfgPricefa, _pricelist$pfgPricefa2, _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
35013
+ var _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
35776
35014
  return {
35777
35015
  headerName: priceFeatureGroup.displayText,
35778
- headerClass: inputHeader,
35779
- headerGroupComponentParams: {
35780
- additionalElement: /*#__PURE__*/jsx(PriceFactorHeaderComponent, {
35781
- onSave: (/*#__PURE__*/function () {
35782
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, value) {
35783
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
35784
- while (1) switch (_context3.prev = _context3.next) {
35785
- case 0:
35786
- updatePfgPriceFactor(priceFeatureGroup.id, value);
35787
- case 1:
35788
- case "end":
35789
- return _context3.stop();
35790
- }
35791
- }, _callee3);
35792
- }));
35793
- return function (_x5, _x6) {
35794
- return _ref4.apply(this, arguments);
35795
- };
35796
- }()),
35797
- 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],
35798
- onPriorityChange: (/*#__PURE__*/function () {
35799
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(value) {
35800
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
35801
- while (1) switch (_context4.prev = _context4.next) {
35802
- case 0:
35803
- updatePfgPriority(priceFeatureGroup.id, value);
35804
- case 1:
35805
- case "end":
35806
- return _context4.stop();
35807
- }
35808
- }, _callee4);
35809
- }));
35810
- return function (_x7) {
35811
- return _ref5.apply(this, arguments);
35812
- };
35813
- }()),
35814
- 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)),
35815
- inputTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pfg',
35816
- checkboxTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pfgPriority'
35817
- })
35818
- },
35819
35016
  marryChildren: true,
35820
- children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceGroup, j) {
35821
- 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;
35822
35019
  return {
35823
- headerName: priceGroup,
35824
- field: "prices.".concat(priceGroup),
35825
- editable: !viewOnly,
35020
+ headerName: priceFeatureGroupItem,
35021
+ field: "prices.".concat(priceFeatureGroupItem),
35022
+ editable: true,
35826
35023
  filter: false,
35827
35024
  sortable: false,
35828
35025
  isDictionary: true,
@@ -35831,49 +35028,31 @@ var Prices = observer(function (_ref) {
35831
35028
  cellRenderer: PriceDisplayCellRenderer,
35832
35029
  cellRendererParams: {
35833
35030
  commas: pricelist.commas,
35834
- item: priceGroup
35031
+ item: priceFeatureGroupItem
35835
35032
  },
35836
- additionalFields: ["origPrices.".concat(priceGroup)],
35033
+ additionalFields: ["origPrices.".concat(priceFeatureGroupItem)],
35837
35034
  headerClass: inputHeader,
35838
35035
  headerComponentParams: {
35839
- additionalElement: /*#__PURE__*/jsx(PriceFactorHeaderComponent, {
35036
+ additionalElement: /*#__PURE__*/jsx(PriceFactorInput, {
35840
35037
  onSave: (/*#__PURE__*/function () {
35841
- var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(data, value) {
35842
- return _regeneratorRuntime.wrap(function _callee5$(_context5) {
35843
- while (1) switch (_context5.prev = _context5.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) {
35844
35041
  case 0:
35845
- updatePgPriceFactor(priceGroup, value);
35042
+ updatePgPriceFactor(priceFeatureGroupItem, value);
35846
35043
  case 1:
35847
35044
  case "end":
35848
- return _context5.stop();
35045
+ return _context3.stop();
35849
35046
  }
35850
- }, _callee5);
35047
+ }, _callee3);
35851
35048
  }));
35852
- return function (_x8, _x9) {
35853
- return _ref6.apply(this, arguments);
35049
+ return function (_x5, _x6) {
35050
+ return _ref4.apply(this, arguments);
35854
35051
  };
35855
35052
  }()),
35856
- 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],
35857
- onPriorityChange: (/*#__PURE__*/function () {
35858
- var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(value) {
35859
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
35860
- while (1) switch (_context6.prev = _context6.next) {
35861
- case 0:
35862
- updatePgPriority(priceGroup, value);
35863
- case 1:
35864
- case "end":
35865
- return _context6.stop();
35866
- }
35867
- }, _callee6);
35868
- }));
35869
- return function (_x10) {
35870
- return _ref7.apply(this, arguments);
35871
- };
35872
- }()),
35873
- 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)),
35874
- 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)),
35875
- inputTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pg',
35876
- 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')
35877
35056
  })
35878
35057
  }
35879
35058
  };
@@ -35924,7 +35103,7 @@ var Prices = observer(function (_ref) {
35924
35103
  cellDataType: 'objectId'
35925
35104
  }])
35926
35105
  };
35927
- }, [apiInterface, selectedSerie, pricelist, priceFeatureGroups, viewOnly]);
35106
+ }, [apiInterface, selectedSerie, pricelist, priceFeatureGroups]);
35928
35107
  return /*#__PURE__*/jsxs(Fragment, {
35929
35108
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35930
35109
  title: /*#__PURE__*/jsx("div", {
@@ -35932,55 +35111,26 @@ var Prices = observer(function (_ref) {
35932
35111
  style: {
35933
35112
  "float": 'right'
35934
35113
  },
35935
- children: [/*#__PURE__*/jsx(Setting, {
35936
- title: t('backoffice.idmCatalog.prices.manual.title'),
35937
- tooltip: t('backoffice.idmCatalog.prices.manual.tooltip'),
35938
- children: /*#__PURE__*/jsx(Switch, {
35939
- checked: onlyManual,
35940
- onChange: function onChange(e) {
35941
- return setOnlyManual(e);
35942
- },
35943
- disabled: !selectedSerie,
35944
- checkedChildren: 'Manuelle',
35945
- unCheckedChildren: 'Alle'
35946
- })
35947
- }), /*#__PURE__*/jsx(Setting, {
35948
- tooltip: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
35949
- children: /*#__PURE__*/jsx(Popconfirm, {
35950
- rootClassName: "ag-custom-component-popup",
35951
- title: t('backoffice.idmCatalog.prices.manual.delete.title'),
35952
- description: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
35953
- onConfirm: deleteManualPrices,
35954
- okText: t('action.delete'),
35955
- cancelText: t('backoffice.cancel'),
35956
- children: /*#__PURE__*/jsx(Button, {
35957
- danger: true,
35958
- children: t('backoffice.idmCatalog.prices.manual.delete.title')
35959
- })
35960
- })
35961
- }), /*#__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],
35962
35116
  title: t('backoffice.idmCatalog.prices.priceFactor.label.series'),
35963
- tooltip: t('backoffice.idmCatalog.prices.priceFactor.tooltip.series'),
35964
- children: /*#__PURE__*/jsx(PriceFactorInput, {
35965
- value: (_pricelist$seriePrice = pricelist.seriePricefactors) === null || _pricelist$seriePrice === void 0 ? void 0 : _pricelist$seriePrice[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo],
35966
- onSave: (/*#__PURE__*/function () {
35967
- var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(_, value) {
35968
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
35969
- while (1) switch (_context7.prev = _context7.next) {
35970
- case 0:
35971
- updateSeriePriceFactor(value);
35972
- case 1:
35973
- case "end":
35974
- return _context7.stop();
35975
- }
35976
- }, _callee7);
35977
- }));
35978
- return function (_x11, _x12) {
35979
- return _ref8.apply(this, arguments);
35980
- };
35981
- }()),
35982
- disabled: !selectedSerie
35983
- })
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
35984
35134
  }), /*#__PURE__*/jsx(SeriesSelector$3, {
35985
35135
  modules: ['pricelists'],
35986
35136
  dataSet: "lookup"
@@ -35988,7 +35138,6 @@ var Prices = observer(function (_ref) {
35988
35138
  })
35989
35139
  })
35990
35140
  }), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
35991
- ref: spreadsheetRef,
35992
35141
  gridId: 'crud-grid_enricherprices',
35993
35142
  applicationData: applicationData,
35994
35143
  configuration: configuration
@@ -36006,8 +35155,7 @@ var TablePriceList = observer(function () {
36006
35155
  packageId = _useModule.packageId,
36007
35156
  organizationId = _useModule.organizationId,
36008
35157
  apiConfig = _useModule.apiConfig,
36009
- selectedPackage = _useModule.selectedPackage,
36010
- viewOnly = _useModule.viewOnly;
35158
+ selectedPackage = _useModule.selectedPackage;
36011
35159
  var _React$useState = React.useState(),
36012
35160
  _React$useState2 = _slicedToArray(_React$useState, 2),
36013
35161
  selectedPriceList = _React$useState2[0],
@@ -36018,7 +35166,7 @@ var TablePriceList = observer(function () {
36018
35166
  setSelectedNodeId = _React$useState4[1];
36019
35167
  useTools({
36020
35168
  packageId: packageId,
36021
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
35169
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
36022
35170
  });
36023
35171
  var setNodeDataValue = useCallback(function (data) {
36024
35172
  spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
@@ -36035,8 +35183,7 @@ var TablePriceList = observer(function () {
36035
35183
  packageId: packageId,
36036
35184
  apiConfig: apiConfig,
36037
35185
  pricelist: selectedPriceList,
36038
- setNodeDataValue: setNodeDataValue,
36039
- viewOnly: viewOnly
35186
+ setNodeDataValue: setNodeDataValue
36040
35187
  },
36041
35188
  startWidth: 300,
36042
35189
  defaultPinned: false,
@@ -36060,10 +35207,10 @@ var TablePriceList = observer(function () {
36060
35207
  var apiInterface = useMemo(function () {
36061
35208
  return {
36062
35209
  read: apiConfig.enricherService + '/packages/${packageId}/pricelists',
36063
- create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists',
36064
- restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
36065
- "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
36066
- 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}'
36067
35214
  };
36068
35215
  }, []);
36069
35216
  var hooks = useMemo(function () {
@@ -36108,11 +35255,11 @@ var TablePriceList = observer(function () {
36108
35255
  colDef: [{
36109
35256
  headerName: 'backoffice.idmEnricher.pricelists.label.name',
36110
35257
  field: 'name',
36111
- editable: !viewOnly
35258
+ editable: true
36112
35259
  }, {
36113
35260
  headerName: 'backoffice.idmEnricher.pricelists.label.basedPricelistId',
36114
35261
  field: 'basedPricelistId',
36115
- editable: !viewOnly,
35262
+ editable: true,
36116
35263
  cellDataType: 'lookup',
36117
35264
  customParams: {
36118
35265
  filterCellType: 'id',
@@ -36142,7 +35289,7 @@ var TablePriceList = observer(function () {
36142
35289
  }, {
36143
35290
  headerName: 'backoffice.idmEnricher.pricelists.label.rounding',
36144
35291
  field: 'rounding',
36145
- editable: !viewOnly,
35292
+ editable: true,
36146
35293
  cellDataType: 'enum',
36147
35294
  customParams: {
36148
35295
  enumData: roundingOptions,
@@ -36151,25 +35298,25 @@ var TablePriceList = observer(function () {
36151
35298
  }, {
36152
35299
  headerName: 'backoffice.idmEnricher.pricelists.label.commas',
36153
35300
  field: 'commas',
36154
- editable: !viewOnly,
35301
+ editable: true,
36155
35302
  cellDataType: 'number'
36156
35303
  }, {
36157
35304
  headerName: 'backoffice.idmEnricher.pricelists.label.currency',
36158
35305
  field: 'currency',
36159
35306
  cellDataType: 'enum',
36160
- editable: !viewOnly,
35307
+ editable: true,
36161
35308
  customParams: {
36162
35309
  enumData: getCurrencyKey(t)
36163
35310
  }
36164
35311
  }, {
36165
35312
  headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
36166
35313
  field: 'forPublishing',
36167
- editable: !viewOnly,
35314
+ editable: true,
36168
35315
  cellDataType: 'boolean'
36169
35316
  }, {
36170
35317
  headerName: 'backoffice.idmEnricher.pricelists.label.validFrom',
36171
35318
  field: 'validFrom',
36172
- editable: !viewOnly,
35319
+ editable: true,
36173
35320
  cellDataType: 'dateString',
36174
35321
  customParams: {
36175
35322
  dateFormat: 'DD.MM.YYYY'
@@ -36177,7 +35324,7 @@ var TablePriceList = observer(function () {
36177
35324
  }, {
36178
35325
  headerName: 'backoffice.idmEnricher.pricelists.label.validTo',
36179
35326
  field: 'validTo',
36180
- editable: !viewOnly,
35327
+ editable: true,
36181
35328
  cellDataType: 'dateString',
36182
35329
  customParams: {
36183
35330
  dateFormat: 'DD.MM.YYYY'
@@ -36235,24 +35382,9 @@ var TablePriceList = observer(function () {
36235
35382
  cellDataType: 'object',
36236
35383
  editable: false,
36237
35384
  hide: true
36238
- }, {
36239
- field: 'pfgPricefactors',
36240
- cellDataType: 'object',
36241
- editable: false,
36242
- hide: true
36243
- }, {
36244
- field: 'pgPricefactorsPriority',
36245
- cellDataType: 'object',
36246
- editable: false,
36247
- hide: true
36248
- }, {
36249
- field: 'pfgPricefactorsPriority',
36250
- cellDataType: 'object',
36251
- editable: false,
36252
- hide: true
36253
35385
  }]
36254
35386
  };
36255
- }, [apiInterface, i18n.language, viewOnly]);
35387
+ }, [apiInterface, i18n.language]);
36256
35388
  return /*#__PURE__*/jsxs(Fragment, {
36257
35389
  children: [/*#__PURE__*/jsx(Descriptions$1, {
36258
35390
  title: /*#__PURE__*/jsxs("div", {
@@ -36741,34 +35873,24 @@ var useCatalogContext = function useCatalogContext() {
36741
35873
  root.contextStore.clearContext('catalog');
36742
35874
  }
36743
35875
 
36744
- // 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
36745
35878
  var currentCatalog = getContext().selectedCatalog;
36746
- var catalogChanged = currentCatalog._id !== newCatalog._id;
36747
- var catalogDataOnlyChanged = currentCatalog.name === newCatalog.name && JSON.stringify(currentCatalog.isoLanguageIds) === JSON.stringify(newCatalog.isoLanguageIds);
36748
- if (!catalogChanged && !catalogDataOnlyChanged) {
36749
- // No changes detected
36750
- return;
36751
- }
36752
- if (!catalogChanged && catalogDataOnlyChanged) {
36753
- // Only the data changed, so we only need to update the context of the catalog
36754
- root.contextStore.updateContext('catalog', {
36755
- selectedCatalog: newCatalog,
36756
- catalogId: newCatalog._id
36757
- });
36758
- return;
35879
+ if (currentCatalog._id === newCatalog._id && currentCatalog.name === newCatalog.name && JSON.stringify(currentCatalog.isoLanguageIds) === JSON.stringify(newCatalog.isoLanguageIds)) {
35880
+ return; // No changes detected
36759
35881
  }
36760
- if (catalogChanged) {
36761
- // The catalog changed, so we need to rest the full context
36762
- root.contextStore.updateContext('catalog', {
36763
- selectedCatalog: newCatalog,
36764
- catalogId: newCatalog._id,
36765
- selectedSerie: undefined,
36766
- selectedItem: undefined,
36767
- selectedFeature: undefined,
36768
- seriesSelectorState: createDefaultSelectState('seriesSelectorState'),
36769
- featureSelectorState: createDefaultSelectState('featureSelectorState')
36770
- });
36771
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) {
36772
35894
  // Update URL only if the id changed
36773
35895
  navigate(path + newCatalog._id + (modules.length ? '/' + modules.join('/') : '') + (searchParams ? '?' + searchParams.toString() : ''));
36774
35896
  }
@@ -37597,22 +36719,27 @@ var CatalogSelector$1 = observer(CatalogSelector);
37597
36719
  var SeriesSelector = function SeriesSelector(_ref) {
37598
36720
  var modules = _ref.modules;
37599
36721
  var _useTranslation = useTranslation(),
37600
- t = _useTranslation.t;
37601
- var _useSeriesSelector = useSeriesSelector(modules),
37602
- catalogId = _useSeriesSelector.catalogId,
37603
- seriesSelectorState = _useSeriesSelector.seriesSelectorState,
37604
- apiInterface = _useSeriesSelector.apiInterface,
37605
- selectedSerie = _useSeriesSelector.selectedSerie,
37606
- onChange = _useSeriesSelector.onChange,
37607
- 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;
37608
36730
  return /*#__PURE__*/jsx(SimpleSelect, {
37609
36731
  sharedState: seriesSelectorState,
37610
- apiInterface: apiInterface,
37611
- 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
+ },
37612
36739
  autoSelectFirst: true,
37613
36740
  title: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries'),
37614
36741
  value: selectedSerie,
37615
- onChange: onChange,
36742
+ onChange: setSelectedSerie,
37616
36743
  search: true,
37617
36744
  style: {
37618
36745
  width: 200
@@ -37621,95 +36748,6 @@ var SeriesSelector = function SeriesSelector(_ref) {
37621
36748
  }, catalogId);
37622
36749
  };
37623
36750
  var SeriesSelector$1 = observer(SeriesSelector);
37624
- var useSeriesSelector = function useSeriesSelector(modules) {
37625
- var _useTranslation2 = useTranslation(),
37626
- i18n = _useTranslation2.i18n;
37627
- var root = useStore();
37628
- var _useCatalogContext = useCatalogContext(modules),
37629
- catalogId = _useCatalogContext.catalogId,
37630
- idmService = _useCatalogContext.idmService,
37631
- selectedSerie = _useCatalogContext.selectedSerie,
37632
- setSelectedSerie = _useCatalogContext.setSelectedSerie,
37633
- seriesSelectorState = _useCatalogContext.seriesSelectorState;
37634
- var _useState = useState(selectedSerie),
37635
- _useState2 = _slicedToArray(_useState, 2),
37636
- selected = _useState2[0],
37637
- setSelected = _useState2[1];
37638
- var apiInterface = {
37639
- read: idmService + "/v3.0/catalogs/".concat(catalogId, "/series?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id")
37640
- };
37641
- var selectMapping = {
37642
- label: "${seriesName.".concat(i18n.language.toLocaleUpperCase(), "}"),
37643
- value: '${_id}'
37644
- };
37645
- var fetchSerie = /*#__PURE__*/function () {
37646
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(newSerie) {
37647
- var _seriesSelectorState$, _seriesSelectorState$2;
37648
- var isLoaded, api, serie, option;
37649
- return _regeneratorRuntime.wrap(function _callee$(_context) {
37650
- while (1) switch (_context.prev = _context.next) {
37651
- case 0:
37652
- if (newSerie) {
37653
- _context.next = 2;
37654
- break;
37655
- }
37656
- return _context.abrupt("return");
37657
- case 2:
37658
- // if the extend series data is already loaded, use it
37659
- isLoaded = !!((_seriesSelectorState$ = seriesSelectorState.options) !== null && _seriesSelectorState$ !== void 0 && (_seriesSelectorState$ = _seriesSelectorState$.find(function (option) {
37660
- return option.value === (newSerie === null || newSerie === void 0 ? void 0 : newSerie._id);
37661
- })) !== null && _seriesSelectorState$ !== void 0 && (_seriesSelectorState$ = _seriesSelectorState$.data) !== null && _seriesSelectorState$ !== void 0 && _seriesSelectorState$.serieNo);
37662
- if (!isLoaded) {
37663
- _context.next = 6;
37664
- break;
37665
- }
37666
- setSelectedSerie(newSerie);
37667
- return _context.abrupt("return");
37668
- case 6:
37669
- //fetching of pricefeatruegroups is slow, so we can't fetch it in the list, but only for the selected serie
37670
- seriesSelectorState.setLoading(true);
37671
- api = new _default$d({
37672
- type: 'SelectSimple',
37673
- apiInterface: {
37674
- read: idmService + "/v3.0/catalogs/".concat(catalogId, "/series/").concat(newSerie._id, "?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts")
37675
- }
37676
- }, root);
37677
- _context.next = 10;
37678
- return api.read();
37679
- case 10:
37680
- serie = _context.sent;
37681
- //save the extended series data in the options, without triggering state change
37682
- option = (_seriesSelectorState$2 = seriesSelectorState.options) === null || _seriesSelectorState$2 === void 0 ? void 0 : _seriesSelectorState$2.find(function (option) {
37683
- return option.value === newSerie._id;
37684
- });
37685
- if (option) {
37686
- option.data = serie;
37687
- }
37688
- setSelectedSerie(serie);
37689
- seriesSelectorState.setLoading(false);
37690
- case 15:
37691
- case "end":
37692
- return _context.stop();
37693
- }
37694
- }, _callee);
37695
- }));
37696
- return function fetchSerie(_x) {
37697
- return _ref2.apply(this, arguments);
37698
- };
37699
- }();
37700
- var onChange = function onChange(value) {
37701
- setSelected(value);
37702
- fetchSerie(value);
37703
- };
37704
- return {
37705
- catalogId: catalogId,
37706
- seriesSelectorState: seriesSelectorState,
37707
- apiInterface: apiInterface,
37708
- selectMapping: selectMapping,
37709
- selectedSerie: selected,
37710
- onChange: onChange
37711
- };
37712
- };
37713
36751
 
37714
36752
  function useModule (currentModules) {
37715
36753
  var root = useStore();
@@ -38159,19 +37197,18 @@ var TableItems = observer(function () {
38159
37197
  apiConfig = _useModule.apiConfig,
38160
37198
  organizationId = _useModule.organizationId;
38161
37199
  useTools({
38162
- catalogId: catalogId,
38163
- serie: selectedSerie,
38164
- setSerie: setSelectedSerie,
38165
- setArticle: setSelectedItem,
38166
- item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
38167
- });
37200
+ catalogId: catalogId,
37201
+ serie: selectedSerie,
37202
+ setSerie: setSelectedSerie,
37203
+ setArticle: setSelectedItem,
37204
+ item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
37205
+ });
38168
37206
  var hooks = useMemo(function () {
38169
37207
  return {
38170
37208
  onCellSelectionChanged: function onCellSelectionChanged(event) {
38171
37209
  // Check if all selections are from the same node
38172
37210
  if (event.selection.length == 1) {
38173
- var _event$selection$;
38174
- 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);
38175
37212
  }
38176
37213
  }
38177
37214
  };
@@ -38204,9 +37241,9 @@ var TableSeries = observer(function () {
38204
37241
  var _useTranslation = useTranslation(),
38205
37242
  t = _useTranslation.t;
38206
37243
  var _useModule = useModule(['series']),
37244
+ setGlobalSelectedSerie = _useModule.setSelectedSerie,
38207
37245
  selectedCatalog = _useModule.selectedCatalog,
38208
37246
  selectedGlobalSerie = _useModule.selectedSerie,
38209
- setGlobalSelectedSerie = _useModule.setSelectedSerie,
38210
37247
  catalogId = _useModule.catalogId,
38211
37248
  organizationId = _useModule.organizationId,
38212
37249
  apiConfig = _useModule.apiConfig;
@@ -38250,9 +37287,8 @@ var TableSeries = observer(function () {
38250
37287
  return {
38251
37288
  onCellSelectionChanged: function onCellSelectionChanged(event) {
38252
37289
  if (event.selection.length == 1) {
38253
- var _event$selection$, _event$selection$2;
38254
- 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);
38255
- 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);
38256
37292
  } else {
38257
37293
  setSelectedSerie(null);
38258
37294
  }
@@ -38588,9 +37624,8 @@ var TableFeatures = observer(function () {
38588
37624
  onCellSelectionChanged: function onCellSelectionChanged(event) {
38589
37625
  // Check if all selections are from the same node
38590
37626
  if (event.selection.length == 1) {
38591
- var _event$selection$;
38592
37627
  updateConfigurator({
38593
- 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
38594
37629
  });
38595
37630
  }
38596
37631
  }
@@ -38797,9 +37832,8 @@ var TableOptions = observer(function () {
38797
37832
  onCellSelectionChanged: function onCellSelectionChanged(event) {
38798
37833
  // Check if all selections are from the same node
38799
37834
  if (event.selection.length == 1) {
38800
- var _event$selection$;
38801
37835
  updateConfigurator({
38802
- 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
38803
37837
  });
38804
37838
  }
38805
37839
  }
@@ -42431,7 +41465,7 @@ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
42431
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; }
42432
41466
  var ArticleSelection = function ArticleSelection(_ref) {
42433
41467
  var _ref$state = _ref.state,
42434
- itemList = _ref$state.itemList,
41468
+ articleList = _ref$state.articleList,
42435
41469
  articleCodex = _ref$state.articleCodex,
42436
41470
  setArticleCodex = _ref$state.setArticleCodex,
42437
41471
  setDoReset = _ref$state.setDoReset,
@@ -42443,7 +41477,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
42443
41477
  var groups = [];
42444
41478
  var _loop = function _loop() {
42445
41479
  var _mask$articles;
42446
- var article = itemList[i];
41480
+ var article = articleList[i];
42447
41481
  if (mask !== null && mask !== void 0 && (_mask$articles = mask.articles) !== null && _mask$articles !== void 0 && _mask$articles[article.value].hidden) return 1; // continue
42448
41482
  if (!article.groupName) article.groupName = 'NONE';
42449
41483
  var group = groups.find(function (g) {
@@ -42459,7 +41493,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
42459
41493
  });
42460
41494
  }
42461
41495
  };
42462
- for (var i = 0; i < itemList.length; i++) {
41496
+ for (var i = 0; i < articleList.length; i++) {
42463
41497
  if (_loop()) continue;
42464
41498
  }
42465
41499
  return groups.map(function (g) {
@@ -42467,7 +41501,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
42467
41501
  label: t('configuration.group.' + g.label, g.label)
42468
41502
  });
42469
41503
  });
42470
- }, [itemList]);
41504
+ }, [articleList]);
42471
41505
  return /*#__PURE__*/jsxs("div", {
42472
41506
  className: wrapper$1,
42473
41507
  children: [/*#__PURE__*/jsx(Select$1, {
@@ -42514,30 +41548,26 @@ function useWysiwyg$1(_ref) {
42514
41548
  setArticleCodex = _useState6[1];
42515
41549
  var _useState7 = useState([]),
42516
41550
  _useState8 = _slicedToArray(_useState7, 2),
42517
- itemList = _useState8[0],
42518
- setItemList = _useState8[1];
41551
+ articleList = _useState8[0],
41552
+ setArticleList = _useState8[1];
42519
41553
  var _useState9 = useState({
42520
41554
  catalogCodex: (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.catalogCodex
42521
41555
  }),
42522
41556
  _useState10 = _slicedToArray(_useState9, 2),
42523
- serie = _useState10[0],
42524
- setSerie = _useState10[1];
41557
+ catalog = _useState10[0],
41558
+ setCatalog = _useState10[1];
42525
41559
  var _useState11 = useState([]),
42526
41560
  _useState12 = _slicedToArray(_useState11, 2),
42527
- serieList = _useState12[0],
42528
- setSerieList = _useState12[1];
42529
- var _useState13 = useState(tool.parameters.catalogId),
41561
+ catalogList = _useState12[0],
41562
+ setCatalogList = _useState12[1];
41563
+ var _useState13 = useState(),
42530
41564
  _useState14 = _slicedToArray(_useState13, 2),
42531
- catalogId = _useState14[0],
42532
- setCatalogId = _useState14[1];
41565
+ currentNav = _useState14[0],
41566
+ setCurrentNav = _useState14[1];
42533
41567
  var _useState15 = useState(),
42534
41568
  _useState16 = _slicedToArray(_useState15, 2),
42535
- currentNav = _useState16[0],
42536
- setCurrentNav = _useState16[1];
42537
- var _useState17 = useState(),
42538
- _useState18 = _slicedToArray(_useState17, 2),
42539
- doNavigate = _useState18[0],
42540
- setDoNavigate = _useState18[1];
41569
+ doNavigate = _useState16[0],
41570
+ setDoNavigate = _useState16[1];
42541
41571
  useEffect(function () {
42542
41572
  if (!toolbar.hidden) setDoReset(true);
42543
41573
  }, [toolbar.hidden]);
@@ -42600,8 +41630,7 @@ function useWysiwyg$1(_ref) {
42600
41630
  });
42601
41631
  case 3:
42602
41632
  d = _context2.sent;
42603
- setCatalogId(d._id);
42604
- _context2.next = 7;
41633
+ _context2.next = 6;
42605
41634
  return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs/' + d._id + '/series', {
42606
41635
  method: 'GET',
42607
41636
  headers: _objectSpread$4({}, jwt ? {
@@ -42616,10 +41645,10 @@ function useWysiwyg$1(_ref) {
42616
41645
  return undefined;
42617
41646
  }
42618
41647
  });
42619
- case 7:
41648
+ case 6:
42620
41649
  s = _context2.sent;
42621
- setSerieList(s.data);
42622
- case 9:
41650
+ setCatalogList(s.data);
41651
+ case 8:
42623
41652
  case "end":
42624
41653
  return _context2.stop();
42625
41654
  }
@@ -42653,7 +41682,7 @@ function useWysiwyg$1(_ref) {
42653
41682
  });
42654
41683
  case 3:
42655
41684
  l = _context3.sent;
42656
- setSerieList(l.data);
41685
+ setCatalogList(l.data);
42657
41686
  case 5:
42658
41687
  case "end":
42659
41688
  return _context3.stop();
@@ -42668,7 +41697,7 @@ function useWysiwyg$1(_ref) {
42668
41697
  if (doReset) {
42669
41698
  var _tool$elementProps, _tool$elementProps3;
42670
41699
  if (currentNav) setDoNavigate(currentNav);
42671
- 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) {
42672
41701
  var _tool$elementProps2;
42673
41702
  if ((_tool$elementProps2 = tool.elementProps) !== null && _tool$elementProps2 !== void 0 && _tool$elementProps2.loadPackage) {
42674
41703
  loadPackage(tool.parameters.packageId);
@@ -42687,20 +41716,20 @@ function useWysiwyg$1(_ref) {
42687
41716
  }, [doReset]);
42688
41717
  useEffect(function () {
42689
41718
  setArticleCodex(undefined);
42690
- if (serie !== null && serie !== void 0 && serie.catalogCodex) {
41719
+ if (catalog !== null && catalog !== void 0 && catalog.catalogCodex) {
42691
41720
  var _tool$parameters$pack;
42692
41721
  setMask({
42693
- catalogCodex: serie.catalogCodex,
41722
+ catalogCodex: catalog.catalogCodex,
42694
41723
  accountId: (_tool$parameters$pack = tool.parameters.packageId) !== null && _tool$parameters$pack !== void 0 ? _tool$parameters$pack : tool.parameters.catalogId
42695
41724
  });
42696
41725
  }
42697
- }, [serie]);
41726
+ }, [catalog]);
42698
41727
  useEffect(function () {
42699
41728
  setDoReset(true);
42700
41729
  setArticleCodex(undefined);
42701
- setSerie(undefined);
42702
- setItemList([]);
42703
- setSerieList([]);
41730
+ setCatalog(undefined);
41731
+ setArticleList([]);
41732
+ setCatalogList([]);
42704
41733
  }, [tool.parameters.catalogId, tool.parameters.packageId]);
42705
41734
  var onEventCalled = /*#__PURE__*/function () {
42706
41735
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
@@ -42719,7 +41748,7 @@ function useWysiwyg$1(_ref) {
42719
41748
  groupName: article.groupName
42720
41749
  });
42721
41750
  }
42722
- setItemList(articles);
41751
+ setArticleList(articles);
42723
41752
  if (articleCodex === undefined && articles !== null && articles !== void 0 && (_articles$ = articles[0]) !== null && _articles$ !== void 0 && _articles$.value) setArticleCodex(articles[0].value);
42724
41753
  }
42725
41754
  if (e.type === 'navigatedToOption') {
@@ -42826,21 +41855,20 @@ function useWysiwyg$1(_ref) {
42826
41855
  };
42827
41856
  }, []);
42828
41857
  return {
42829
- itemList: itemList,
42830
- setItemList: setItemList,
41858
+ articleList: articleList,
41859
+ setArticleList: setArticleList,
42831
41860
  articleCodex: articleCodex,
42832
41861
  setArticleCodex: setArticleCodex,
42833
- serieList: serieList,
42834
- setSerieList: setSerieList,
42835
- serie: serie,
42836
- setSerie: setSerie,
41862
+ catalogList: catalogList,
41863
+ setCatalogList: setCatalogList,
41864
+ catalog: catalog,
41865
+ setCatalog: setCatalog,
42837
41866
  settings: settings,
42838
41867
  mask: mask,
42839
41868
  doReset: doReset,
42840
41869
  setDoReset: setDoReset,
42841
41870
  doNavigate: doNavigate,
42842
- setDoNavigate: setDoNavigate,
42843
- catalogId: catalogId
41871
+ setDoNavigate: setDoNavigate
42844
41872
  };
42845
41873
  }
42846
41874
 
@@ -42892,27 +41920,27 @@ styleInject(css_248z$2);
42892
41920
 
42893
41921
  var CatalogSelection = function CatalogSelection(_ref) {
42894
41922
  var _ref$state = _ref.state,
42895
- serieList = _ref$state.serieList,
42896
- serie = _ref$state.serie,
42897
- setSerie = _ref$state.setSerie,
41923
+ catalogList = _ref$state.catalogList,
41924
+ catalog = _ref$state.catalog,
41925
+ setCatalog = _ref$state.setCatalog,
42898
41926
  setArticleCodex = _ref$state.setArticleCodex,
42899
- setSerieProp = _ref.setSerie;
41927
+ setSerie = _ref.setSerie;
42900
41928
  var _useTranslation = useTranslation(),
42901
41929
  t = _useTranslation.t,
42902
41930
  language = _useTranslation.i18n.language;
42903
41931
  var options = useMemo(function () {
42904
41932
  var groups = [];
42905
- for (var i = 0; i < serieList.length; i++) {
42906
- var c = serieList[i];
41933
+ for (var i = 0; i < catalogList.length; i++) {
41934
+ var c = catalogList[i];
42907
41935
  groups.push({
42908
41936
  value: c.serieNo.toString(),
42909
41937
  label: c.seriesName[language.toUpperCase()]
42910
41938
  });
42911
41939
  }
42912
41940
  return groups;
42913
- }, [serieList]);
41941
+ }, [catalogList]);
42914
41942
  var onChange = function onChange(val) {
42915
- var cat = serieList.find(function (c) {
41943
+ var cat = catalogList.find(function (c) {
42916
41944
  return c.serieNo.toString() == val;
42917
41945
  });
42918
41946
  var catalog = cat ? {
@@ -42920,15 +41948,15 @@ var CatalogSelection = function CatalogSelection(_ref) {
42920
41948
  serieId: cat._id,
42921
41949
  accountId: cat.catalogId
42922
41950
  } : undefined;
42923
- setSerie(catalog);
41951
+ setCatalog(catalog);
42924
41952
  setArticleCodex(undefined);
42925
- setSerieProp === null || setSerieProp === void 0 || setSerieProp(cat);
41953
+ setSerie === null || setSerie === void 0 || setSerie(cat);
42926
41954
  };
42927
41955
  return /*#__PURE__*/jsx("div", {
42928
41956
  className: wrapper,
42929
41957
  children: /*#__PURE__*/jsx(Select$1, {
42930
41958
  placeholder: t('backoffice.configurator.serie.placeholder'),
42931
- value: serie === null || serie === void 0 ? void 0 : serie.catalogCodex,
41959
+ value: catalog === null || catalog === void 0 ? void 0 : catalog.catalogCodex,
42932
41960
  options: options,
42933
41961
  onChange: onChange,
42934
41962
  className: select
@@ -42940,7 +41968,7 @@ var CatalogSelection$1 = observer(CatalogSelection);
42940
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; }
42941
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; }
42942
41970
  var Wsyiwyg = function Wsyiwyg(_ref) {
42943
- 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;
42944
41972
  var tool = _ref.tool,
42945
41973
  toolbar = _ref.toolbar;
42946
41974
  var _useDivaCore = useDivaCore(),
@@ -42959,32 +41987,17 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
42959
41987
  }, [tool.parameters]);
42960
41988
  useEffect(function () {
42961
41989
  if (tool.elementProps.initSerie) {
42962
- if (tool.elementProps.useEnricherService) {
42963
- var _state$serieList$find;
42964
- var serie = {
42965
- serieId: (_state$serieList$find = state.serieList.find(function (s) {
42966
- return s.serieNo == tool.elementProps.initSerie.serieNo;
42967
- })) === null || _state$serieList$find === void 0 ? void 0 : _state$serieList$find._id,
42968
- catalogCodex: tool.elementProps.initSerie.serieNo.toString(),
42969
- accountId: state.catalogId
42970
- };
42971
- if (JSON.stringify(state.serie) !== JSON.stringify(serie)) {
42972
- state.setSerie(serie);
42973
- state.setArticleCodex(undefined);
42974
- }
42975
- } else {
42976
- state.setSerie({
42977
- serieId: tool.elementProps.initSerie.serieId,
42978
- catalogCodex: tool.elementProps.initSerie.serieNo.toString()
42979
- });
42980
- state.setArticleCodex(undefined);
42981
- }
41990
+ state.setCatalog({
41991
+ serieId: tool.elementProps.initSerie.serieId,
41992
+ catalogCodex: tool.elementProps.initSerie.serieNo.toString()
41993
+ });
41994
+ state.setArticleCodex(undefined);
42982
41995
  }
42983
41996
  if (tool.elementProps.initItem) {
42984
41997
  state.setArticleCodex(tool.elementProps.initItem);
42985
41998
  }
42986
- }, [tool.elementProps.initItem, tool.elementProps.initSerie, state.serieList]);
42987
- 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)) {
42988
42001
  if (tool.elementProps.showCatalogSelection) {
42989
42002
  return /*#__PURE__*/jsx(CatalogSelection$1, {
42990
42003
  state: state,
@@ -43022,11 +42035,11 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
43022
42035
  resetArticle: '',
43023
42036
  disableToggle: '1',
43024
42037
  startDivaNr: 'DIVA-000000',
43025
- 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
43026
- }, (_state$serie3 = state.serie) !== null && _state$serie3 !== void 0 && _state$serie3.serieId ? {
43027
- 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
43028
42041
  } : {}), {}, {
43029
- 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,
43030
42043
  returnTo: 'DONT_SAVE_BASKET',
43031
42044
  organizationId: organizationId,
43032
42045
  no3DConnection: 'true'