@crystaldesign/diva-backoffice 25.8.0-beta.9 → 25.8.0-rc.0

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 +1455 -505
  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 +8 -6
  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 +7 -1
  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/PriceFactorHeaderComponent.d.ts +37 -0
  22. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.d.ts.map +1 -0
  23. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.d.ts +2 -2
  24. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.d.ts.map +1 -1
  25. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts +8 -0
  26. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts.map +1 -0
  27. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts +2 -1
  28. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
  29. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.d.ts.map +1 -1
  30. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts +6 -0
  31. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts.map +1 -1
  32. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts +4 -0
  33. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts.map +1 -1
  34. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts +2 -1
  35. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts.map +1 -1
  36. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  37. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
  38. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
  39. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts +3 -3
  40. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts.map +1 -1
  41. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts +4 -3
  42. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts.map +1 -1
  43. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts +4 -3
  44. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts.map +1 -1
  45. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts +4 -3
  46. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts.map +1 -1
  47. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts +4 -3
  48. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
  49. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts +4 -3
  50. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts.map +1 -1
  51. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
  52. package/build/types/backoffice/src/ui/SelectSimple/useSelectSimpleData.d.ts.map +1 -1
  53. package/package.json +9 -9
@@ -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, 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';
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';
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,9 +119,11 @@ 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';
122
123
  import Modal$3 from 'antd/es/modal';
123
124
  import Spin$1 from 'antd/es/spin';
124
125
  import Flex from 'antd/es/flex';
126
+ import { useTranslation as useTranslation$1 } from 'react-i18next';
125
127
  import JSZip from 'jszip';
126
128
  import { DropzoneAreaBase } from 'react-mui-dropzone';
127
129
  import Switch$1 from 'antd/es/switch';
@@ -5482,6 +5484,11 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
5482
5484
  field: 'pos',
5483
5485
  sorter: 3,
5484
5486
  filter: 'advanced'
5487
+ }, {
5488
+ title: t('backoffice.form.renderjob.items.functionType'),
5489
+ field: 'functionType',
5490
+ sorter: 3,
5491
+ filter: 'advanced'
5485
5492
  }, {
5486
5493
  title: t('backoffice.table.viewpoints.columns.title.rot'),
5487
5494
  field: 'rot',
@@ -7648,10 +7655,12 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7648
7655
  create: '${authService}/v2/organizations/${parentId}'
7649
7656
  },
7650
7657
  triggerRerender: true,
7658
+ enableSearch: true,
7651
7659
  items: [{
7652
7660
  name: 'type',
7653
7661
  label: t('backoffice.form.organizationdetails.items.type'),
7654
7662
  type: 'radio',
7663
+ showInAllTabs: true,
7655
7664
  options: [{
7656
7665
  value: undefined,
7657
7666
  label: t('backoffice.form.SHELL'),
@@ -7739,6 +7748,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7739
7748
  permission: 'backoffice_admin_organizations'
7740
7749
  }, {
7741
7750
  name: t('backoffice.subtitle.generally'),
7751
+ tabgroup: t('backoffice.subtitle.generally'),
7742
7752
  type: 'subTitle',
7743
7753
  orientation: 'left',
7744
7754
  style: {
@@ -7746,11 +7756,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7746
7756
  }
7747
7757
  }, {
7748
7758
  name: '_id',
7759
+ tabgroup: t('backoffice.subtitle.generally'),
7749
7760
  label: 'ID',
7750
7761
  type: 'input',
7751
7762
  readonly: true
7752
7763
  }, {
7753
7764
  name: 'displayName',
7765
+ tabgroup: t('backoffice.subtitle.generally'),
7754
7766
  label: t('backoffice.form.organizationdetails.items.displayName'),
7755
7767
  required: true,
7756
7768
  type: 'input',
@@ -7762,6 +7774,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7762
7774
  }, {
7763
7775
  label: t('backoffice.form.organizationdetails.items.internalId'),
7764
7776
  name: 'internalId',
7777
+ tabgroup: t('backoffice.subtitle.generally'),
7765
7778
  type: 'input',
7766
7779
  hidden: function hidden(data) {
7767
7780
  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';
@@ -7769,6 +7782,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7769
7782
  }, {
7770
7783
  name: 'description',
7771
7784
  label: t('backoffice.form.organizationdetails.items.description'),
7785
+ tabgroup: t('backoffice.subtitle.generally'),
7772
7786
  type: 'textarea'
7773
7787
  }, {
7774
7788
  name: 'street',
@@ -7776,6 +7790,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7776
7790
  required: function required(data) {
7777
7791
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7778
7792
  },
7793
+ tabgroup: t('backoffice.subtitle.generally'),
7779
7794
  type: 'input',
7780
7795
  hidden: function hidden(data) {
7781
7796
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7786,6 +7801,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7786
7801
  required: function required(data) {
7787
7802
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7788
7803
  },
7804
+ tabgroup: t('backoffice.subtitle.generally'),
7789
7805
  type: 'input',
7790
7806
  hidden: function hidden(data) {
7791
7807
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7796,6 +7812,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7796
7812
  required: function required(data) {
7797
7813
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7798
7814
  },
7815
+ tabgroup: t('backoffice.subtitle.generally'),
7799
7816
  type: 'input',
7800
7817
  hidden: function hidden(data) {
7801
7818
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7803,6 +7820,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7803
7820
  }, {
7804
7821
  label: t('backoffice.form.organizationdetails.items.region'),
7805
7822
  name: 'region',
7823
+ tabgroup: t('backoffice.subtitle.generally'),
7806
7824
  type: 'input',
7807
7825
  hidden: function hidden(data) {
7808
7826
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7810,6 +7828,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7810
7828
  }, {
7811
7829
  name: 'countryCode',
7812
7830
  label: t('backoffice.form.organizationdetails.items.countryCode'),
7831
+ tabgroup: t('backoffice.subtitle.generally'),
7813
7832
  type: 'selectSimple',
7814
7833
  apiInterface: {
7815
7834
  read: {
@@ -7828,6 +7847,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7828
7847
  }, {
7829
7848
  name: 'contact',
7830
7849
  label: 'backoffice.organization.contact',
7850
+ tabgroup: t('backoffice.subtitle.generally'),
7831
7851
  type: 'select',
7832
7852
  mode: 'single',
7833
7853
  selectMapping: {
@@ -7869,6 +7889,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7869
7889
  }, {
7870
7890
  name: 'email',
7871
7891
  label: t('backoffice.form.organizationdetails.items.email'),
7892
+ tabgroup: t('backoffice.subtitle.generally'),
7872
7893
  type: 'input',
7873
7894
  hidden: function hidden(data) {
7874
7895
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7876,6 +7897,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7876
7897
  }, {
7877
7898
  name: 'phone',
7878
7899
  label: t('backoffice.form.organizationdetails.items.phone'),
7900
+ tabgroup: t('backoffice.subtitle.generally'),
7879
7901
  type: 'input',
7880
7902
  hidden: function hidden(data) {
7881
7903
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7883,6 +7905,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7883
7905
  }, {
7884
7906
  name: 'fax',
7885
7907
  label: t('backoffice.form.organizationdetails.items.fax'),
7908
+ tabgroup: t('backoffice.subtitle.generally'),
7886
7909
  type: 'input',
7887
7910
  hidden: function hidden(data) {
7888
7911
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7890,20 +7913,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7890
7913
  }, {
7891
7914
  name: 'homepage',
7892
7915
  label: t('backoffice.form.organizationdetails.items.homepage'),
7893
- type: 'input',
7894
- hidden: function hidden(data) {
7895
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
7896
- }
7897
- }, {
7898
- name: 'privacyPolicyUrl',
7899
- label: t('backoffice.form.organizationdetails.items.privacyPolicyUrl'),
7900
- type: 'input',
7901
- hidden: function hidden(data) {
7902
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
7903
- }
7904
- }, {
7905
- name: 'termsAndConditionsUrl',
7906
- label: t('backoffice.form.organizationdetails.items.termsAndConditionsUrl'),
7916
+ tabgroup: t('backoffice.subtitle.generally'),
7907
7917
  type: 'input',
7908
7918
  hidden: function hidden(data) {
7909
7919
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7914,6 +7924,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7914
7924
  catalogCodex: ['defaultCatalog', 'catalogCodex'],
7915
7925
  label: t('backoffice.form.organizationdetails.items.selectClientRelationCatalog'),
7916
7926
  type: 'selectClientRelationCatalog',
7927
+ tabgroup: t('backoffice.subtitle.generally'),
7917
7928
  apiInterface: {
7918
7929
  read: '${authService}/v2/organizations/${organizationId}'
7919
7930
  },
@@ -7922,15 +7933,18 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7922
7933
  }
7923
7934
  }, {
7924
7935
  name: ['defaultCatalog', 'accountId'],
7925
- hidden: true
7936
+ hidden: true,
7937
+ tabgroup: t('backoffice.subtitle.generally')
7926
7938
  },
7927
7939
  // these fields are needed otherwise they dont get saved
7928
7940
  {
7929
7941
  name: ['defaultCatalog', 'catalogCodex'],
7930
- hidden: true
7942
+ hidden: true,
7943
+ tabgroup: t('backoffice.subtitle.generally')
7931
7944
  }, {
7932
7945
  name: ['settings', 'sendOrders'],
7933
7946
  label: t('backoffice.form.organizationdetails.items.settings.sendOrders'),
7947
+ tabgroup: t('backoffice.subtitle.generally'),
7934
7948
  type: 'radio',
7935
7949
  optionType: 'button',
7936
7950
  options: [{
@@ -7947,11 +7961,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7947
7961
  }, {
7948
7962
  name: ['settings', 'sendOrdersEmail'],
7949
7963
  label: t('backoffice.form.organizationdetails.items.settings.sendOrdersEmail'),
7964
+ tabgroup: t('backoffice.subtitle.generally'),
7950
7965
  type: 'input',
7951
7966
  permission: 'backoffice_admin_organizations'
7952
7967
  }, {
7953
7968
  name: 'iwofurn',
7954
7969
  label: t('backoffice.form.organizationdetails.items.iwofurn'),
7970
+ tabgroup: t('backoffice.subtitle.generally'),
7955
7971
  type: 'checkbox',
7956
7972
  hidden: function hidden(data) {
7957
7973
  return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
@@ -7969,6 +7985,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7969
7985
  }
7970
7986
  }, {
7971
7987
  name: t('backoffice.subtitle.iwofurn'),
7988
+ tabgroup: t('backoffice.subtitle.generally'),
7972
7989
  type: 'subTitle',
7973
7990
  orientation: 'left',
7974
7991
  style: {
@@ -7981,6 +7998,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7981
7998
  }, {
7982
7999
  name: ['iwoFurnOptions', 'iwofurnUsername'],
7983
8000
  label: t('backoffice.form.organizationdetails.items.iwoFurnOptions.iwofurnUsername'),
8001
+ tabgroup: t('backoffice.subtitle.generally'),
7984
8002
  type: 'input',
7985
8003
  syncDataWithUserInput: true,
7986
8004
  required: function required(data) {
@@ -7992,6 +8010,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7992
8010
  }, {
7993
8011
  name: ['iwoFurnOptions', 'pwdHash'],
7994
8012
  label: t('backoffice.form.organizationdetails.items.iwoFurnOptions.pwdHash'),
8013
+ tabgroup: t('backoffice.subtitle.generally'),
7995
8014
  type: 'password',
7996
8015
  syncDataWithUserInput: true,
7997
8016
  required: function required(data) {
@@ -8003,6 +8022,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8003
8022
  }, {
8004
8023
  name: ['iwoFurnOptions', 'iwofurnSenderGLN'],
8005
8024
  label: t('backoffice.form.organizationdetails.items.iwofurnSenderGLN'),
8025
+ tabgroup: t('backoffice.subtitle.generally'),
8006
8026
  type: 'input',
8007
8027
  required: function required(data) {
8008
8028
  return data === null || data === void 0 ? void 0 : data.iwofurn;
@@ -8013,6 +8033,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8013
8033
  }, {
8014
8034
  name: ['iwoFurnOptions', 'iwofurnRecipientGLN'],
8015
8035
  label: t('backoffice.form.organizationdetails.items.iwofurnRecipientGLN'),
8036
+ tabgroup: t('backoffice.subtitle.generally'),
8016
8037
  type: 'input',
8017
8038
  required: function required(data) {
8018
8039
  return data === null || data === void 0 ? void 0 : data.iwofurn;
@@ -8023,6 +8044,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8023
8044
  }, {
8024
8045
  name: ['iwoFurnOptions', 'sendIWOBasketEKPriceType'],
8025
8046
  label: t('backoffice.form.organizationdetails.items.sendIWOBasketEKPriceType'),
8047
+ tabgroup: t('backoffice.subtitle.generally'),
8026
8048
  type: 'input',
8027
8049
  hidden: function hidden(data) {
8028
8050
  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';
@@ -8042,6 +8064,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8042
8064
  }
8043
8065
  }, {
8044
8066
  name: t('backoffice.form.organizationdetails.items.licenses'),
8067
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8045
8068
  type: 'subTitle',
8046
8069
  orientation: 'left',
8047
8070
  style: {
@@ -8051,6 +8074,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8051
8074
  }, {
8052
8075
  name: 'Info',
8053
8076
  type: 'text',
8077
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8054
8078
  style: {
8055
8079
  marginBottom: '30px'
8056
8080
  },
@@ -8059,6 +8083,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8059
8083
  }, {
8060
8084
  name: ['settings', 'enable3DExport'],
8061
8085
  label: t('backoffice.form.organizationdetails.items.settings.enable3DExport'),
8086
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8062
8087
  type: 'radio',
8063
8088
  optionType: 'button',
8064
8089
  options: [{
@@ -8076,6 +8101,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8076
8101
  name: ['settings', 'renderjobSeparateMaterials'],
8077
8102
  label: t('backoffice.form.organizationdetails.items.settings.renderjobSeparateMaterials'),
8078
8103
  permission: 'backoffice_admin_organizations',
8104
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8079
8105
  type: 'radio',
8080
8106
  optionType: 'button',
8081
8107
  options: [{
@@ -8092,6 +8118,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8092
8118
  name: ['settings', 'enableAR'],
8093
8119
  label: t('backoffice.form.organizationdetails.items.settings.enableAR'),
8094
8120
  permission: 'backoffice_admin_organizations',
8121
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8095
8122
  type: 'radio',
8096
8123
  optionType: 'button',
8097
8124
  options: [{
@@ -8108,6 +8135,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8108
8135
  name: ['settings', 'enableRTV'],
8109
8136
  label: t('backoffice.form.organizationdetails.items.settings.enableRTV'),
8110
8137
  permission: 'backoffice_admin_organizations',
8138
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8111
8139
  type: 'radio',
8112
8140
  optionType: 'button',
8113
8141
  options: [{
@@ -8125,6 +8153,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8125
8153
  label: t('backoffice.form.organizationdetails.items.settings.forceRTV'),
8126
8154
  permission: 'backoffice_admin_organizations',
8127
8155
  type: 'radio',
8156
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8128
8157
  optionType: 'button',
8129
8158
  options: [{
8130
8159
  label: t('backoffice.form.organizationdetails.items.vererbt'),
@@ -8139,6 +8168,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8139
8168
  }, {
8140
8169
  name: ['settings', 'enableVKMarketing'],
8141
8170
  label: t('backoffice.form.organizationdetails.items.settings.enableVKMarketing'),
8171
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8142
8172
  permission: 'backoffice_admin_organizations',
8143
8173
  type: 'radio',
8144
8174
  hidden: function hidden(data) {
@@ -8159,6 +8189,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8159
8189
  name: ['settings', 'pricePreview'],
8160
8190
  label: t('backoffice.form.organizationdetails.items.settings.pricePreview'),
8161
8191
  permission: 'backoffice_admin_organizations',
8192
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8162
8193
  type: 'radio',
8163
8194
  optionType: 'button',
8164
8195
  options: [{
@@ -8177,6 +8208,31 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8177
8208
  label: t('backoffice.form.organizationdetails.items.fromCurrentPriceHideCurrent'),
8178
8209
  value: 'fromCurrentPriceHideCurrent'
8179
8210
  }]
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
+ }
8180
8236
  }, {
8181
8237
  name: t('backoffice.subtitle.advanced'),
8182
8238
  type: 'subTitle',
@@ -8568,6 +8624,131 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8568
8624
  label: t('backoffice.currentorg.items.shopType.store'),
8569
8625
  value: 'store'
8570
8626
  }]
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: []
8571
8752
  }]
8572
8753
  },
8573
8754
  FromAffilateOrganizationDetails: {
@@ -9336,6 +9517,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9336
9517
  name: 'divaNr',
9337
9518
  label: t('backoffice.form.createorupdateviewpoints.items.divaNr'),
9338
9519
  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'
9339
9527
  }]
9340
9528
  },
9341
9529
  FormCreateOrUpdateRenderPackages: {
@@ -9424,6 +9612,9 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9424
9612
  label: t('Presets'),
9425
9613
  type: 'array',
9426
9614
  items: [{
9615
+ type: 'divider',
9616
+ name: ''
9617
+ }, {
9427
9618
  type: 'radio',
9428
9619
  name: 'job',
9429
9620
  label: t('Job'),
@@ -9474,6 +9665,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9474
9665
  }
9475
9666
  return hidden;
9476
9667
  }
9668
+ }, {
9669
+ name: 'functionType',
9670
+ label: 'FunctionType',
9671
+ type: 'select',
9672
+ required: true,
9673
+ values: functionTypeValues,
9674
+ mode: 'single'
9477
9675
  }, {
9478
9676
  name: 'preset',
9479
9677
  label: t('Preset'),
@@ -9681,7 +9879,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9681
9879
  op: 'gt',
9682
9880
  value: 3
9683
9881
  },
9684
- 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']
9882
+ values: functionTypeValues
9685
9883
  }, {
9686
9884
  name: 'priority',
9687
9885
  label: t('backoffice.form.renderjob.items.priority'),
@@ -9941,7 +10139,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9941
10139
  value: 3
9942
10140
  },
9943
10141
  allowClear: true,
9944
- 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']
10142
+ values: functionTypeValues
9945
10143
  }, {
9946
10144
  name: 'priority',
9947
10145
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10116,7 +10314,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10116
10314
  value: 3
10117
10315
  },
10118
10316
  allowClear: true,
10119
- 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']
10317
+ values: functionTypeValues
10120
10318
  }, {
10121
10319
  name: 'priority',
10122
10320
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10258,7 +10456,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10258
10456
  value: 3
10259
10457
  },
10260
10458
  allowClear: true,
10261
- 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']
10459
+ values: functionTypeValues
10262
10460
  }, {
10263
10461
  name: 'priority',
10264
10462
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10417,7 +10615,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10417
10615
  type: 'select',
10418
10616
  mode: 'single',
10419
10617
  allowClear: true,
10420
- 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']
10618
+ values: functionTypeValues
10421
10619
  }, {
10422
10620
  name: 'priority',
10423
10621
  label: t('backoffice.form.renderjob.items.priority'),
@@ -13280,6 +13478,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
13280
13478
  }
13281
13479
  };
13282
13480
  }
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'];
13283
13482
 
13284
13483
  function styleInject(css, ref) {
13285
13484
  if ( ref === void 0 ) ref = {};
@@ -13314,8 +13513,8 @@ var navMinified = "nav-minified-tSt-a";
13314
13513
  var navOverlay = "nav-overlay-rKJNC";
13315
13514
  var navSettings = "nav-settings-82cjv";
13316
13515
  var menuLabel = "menu-label-4dXQk";
13317
- 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";
13318
- styleInject(css_248z$x);
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);
13319
13518
 
13320
13519
  function MenuLabel (_ref) {
13321
13520
  var disabled = _ref.disabled,
@@ -17038,7 +17237,7 @@ var JsonEditor$2 = function JsonEditor(_ref) {
17038
17237
  });
17039
17238
  };
17040
17239
 
17041
- var _excluded$3 = ["key", "name"];
17240
+ var _excluded$4 = ["key", "name"];
17042
17241
  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; }
17043
17242
  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; }
17044
17243
  var FormList$2 = function FormList(_ref) {
@@ -17074,7 +17273,7 @@ var FormList$2 = function FormList(_ref) {
17074
17273
  children: [fields.map(function (_ref3) {
17075
17274
  var key = _ref3.key,
17076
17275
  name = _ref3.name,
17077
- restField = _objectWithoutProperties(_ref3, _excluded$3);
17276
+ restField = _objectWithoutProperties(_ref3, _excluded$4);
17078
17277
  return /*#__PURE__*/jsxs("div", {
17079
17278
  id: key.toString(),
17080
17279
  style: {
@@ -17270,8 +17469,8 @@ var Result = function Result(_ref) {
17270
17469
 
17271
17470
  var success = "success-tRJ7j";
17272
17471
  var error = "error-MtAFB";
17273
- 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";
17274
- styleInject(css_248z$w);
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);
17275
17474
 
17276
17475
  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";
17277
17476
 
@@ -17333,10 +17532,10 @@ var CustomButton = function CustomButton(_ref) {
17333
17532
  };
17334
17533
  var CustomButton$1 = observer(CustomButton);
17335
17534
 
17336
- var wrapper$7 = "wrapper-GVe2h";
17535
+ var wrapper$6 = "wrapper-GVe2h";
17337
17536
  var buttonGroup = "button-group-GYt-T";
17338
- 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";
17339
- styleInject(css_248z$v);
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);
17340
17539
 
17341
17540
  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; }
17342
17541
  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; }
@@ -17350,7 +17549,7 @@ var SubTitle = function SubTitle(_ref) {
17350
17549
  orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
17351
17550
  style: _objectSpread$T({}, item.style),
17352
17551
  children: /*#__PURE__*/jsxs("div", {
17353
- className: wrapper$7,
17552
+ className: wrapper$6,
17354
17553
  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) {
17355
17554
  return /*#__PURE__*/jsx("div", {
17356
17555
  className: buttonGroup,
@@ -17509,14 +17708,29 @@ function useSelectSimpleData (_ref) {
17509
17708
  });
17510
17709
  return selected.value;
17511
17710
  }, [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
+ };
17512
17725
  useEffect(function () {
17513
17726
  if (configuredOptions) {
17514
17727
  if (apiHandler.canReadList) LOG$a.warn('If options are provided, apiInterface will not be used');
17515
- setOptions(configuredOptions);
17728
+ setLoadedOptions(configuredOptions);
17516
17729
  setLoading(false);
17517
17730
  return;
17518
17731
  }
17519
- if (options) {
17732
+ if (sharedState !== null && sharedState !== void 0 && sharedState.options) {
17733
+ setLoadedOptions(sharedState.options);
17520
17734
  setLoading(false);
17521
17735
  return;
17522
17736
  }
@@ -17528,25 +17742,11 @@ function useSelectSimpleData (_ref) {
17528
17742
  var options = data.data.map(function (item) {
17529
17743
  return parseDataEntry(item, selectMapping);
17530
17744
  });
17531
- setOptions(options);
17745
+ setLoadedOptions(options);
17532
17746
  })["finally"](function () {
17533
17747
  setLoading(false);
17534
17748
  });
17535
17749
  }, []);
17536
- useEffect(function () {
17537
- var _options$;
17538
- // set the selected option only after the options are loaded
17539
- if (value && options) {
17540
- LOG$a.debug('value changed', value);
17541
- var _selected = findByValue(value, options, selectMapping);
17542
- var selectedValues = Array.isArray(_selected) ? _selected.map(function (item) {
17543
- return item.value;
17544
- }) : _selected === null || _selected === void 0 ? void 0 : _selected.value;
17545
- onSelectionChanged(selectedValues, _selected);
17546
- } else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
17547
- onSelectionChanged(options[0].value, options[0]);
17548
- }
17549
- }, [value, options]);
17550
17750
  var onSelectionChanged = function onSelectionChanged(value, option) {
17551
17751
  setSelected(option);
17552
17752
  onChange === null || onChange === void 0 || onChange(parseReturnData(option, selectMapping));
@@ -17611,11 +17811,11 @@ function parseReturnData(options, selectMapping) {
17611
17811
  return (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? options.value : options.data;
17612
17812
  }
17613
17813
 
17614
- var wrapper$6 = "wrapper-4xyke";
17615
- 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";
17616
- styleInject(css_248z$u);
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);
17617
17817
 
17618
- var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
17818
+ var _excluded$3 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
17619
17819
  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; }
17620
17820
  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; }
17621
17821
  var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
@@ -17629,7 +17829,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
17629
17829
  autoSelectFirst = _ref.autoSelectFirst,
17630
17830
  title = _ref.title,
17631
17831
  sharedState = _ref.sharedState,
17632
- selectProps = _objectWithoutProperties(_ref, _excluded$2);
17832
+ selectProps = _objectWithoutProperties(_ref, _excluded$3);
17633
17833
  var state = useSelectSimpleData({
17634
17834
  apiInterface: apiInterface,
17635
17835
  selectMapping: selectMapping,
@@ -17643,7 +17843,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
17643
17843
  });
17644
17844
  return /*#__PURE__*/jsxs("div", {
17645
17845
  ref: ref,
17646
- className: classnames(title ? wrapper$6 : undefined),
17846
+ className: classnames(title ? wrapper$5 : undefined),
17647
17847
  children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$S(_objectSpread$S({}, selectProps), {}, {
17648
17848
  showSearch: search,
17649
17849
  loading: state.loading,
@@ -18497,8 +18697,8 @@ var customSelect = "custom-select-ESUJX";
18497
18697
  var customSelectOption = "custom-select-option-dUA7N";
18498
18698
  var avatarWrapper = "avatar-wrapper-Vg-xe";
18499
18699
  var selectTextWrapper = "select-text-wrapper-hPSZW";
18500
- 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";
18501
- styleInject(css_248z$t);
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);
18502
18702
 
18503
18703
  var Selector = function Selector(_ref) {
18504
18704
  var items = _ref.items,
@@ -19042,8 +19242,8 @@ function useSelectData (_ref) {
19042
19242
  };
19043
19243
  }
19044
19244
 
19045
- var css_248z$s = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
19046
- styleInject(css_248z$s);
19245
+ var css_248z$t = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
19246
+ styleInject(css_248z$t);
19047
19247
 
19048
19248
  var SelectWrapper = function SelectWrapper(_ref) {
19049
19249
  var onChange = _ref.onChange,
@@ -19122,11 +19322,11 @@ var SelectWrapper = function SelectWrapper(_ref) {
19122
19322
  };
19123
19323
  var Select = observer(SelectWrapper);
19124
19324
 
19125
- var wrapper$5 = "wrapper-WStAk";
19325
+ var wrapper$4 = "wrapper-WStAk";
19126
19326
  var headerWrapper = "header-wrapper-gWQuH";
19127
19327
  var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
19128
- 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";
19129
- styleInject(css_248z$r);
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);
19130
19330
 
19131
19331
  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; }
19132
19332
  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; }
@@ -19330,7 +19530,7 @@ var Translation = function Translation(_ref) {
19330
19530
  _onChange = _useTranslationHook.onChange,
19331
19531
  autoTranslate = _useTranslationHook.autoTranslate;
19332
19532
  return /*#__PURE__*/jsxs("div", {
19333
- className: wrapper$5,
19533
+ className: wrapper$4,
19334
19534
  children: [/*#__PURE__*/jsxs("div", {
19335
19535
  className: headerWrapper,
19336
19536
  children: [/*#__PURE__*/jsx("div", {
@@ -19909,6 +20109,8 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
19909
20109
  item: item,
19910
20110
  data: state.data
19911
20111
  });
20112
+ case 'divider':
20113
+ return /*#__PURE__*/jsx(Divider, {});
19912
20114
  case 'apiKey':
19913
20115
  return /*#__PURE__*/jsx(ApiKey, {
19914
20116
  value: item.value,
@@ -20204,7 +20406,7 @@ function ModalProgressBar(_ref) {
20204
20406
 
20205
20407
  var LOG$7 = getLogger('Backoffice', 'Form');
20206
20408
  var FormWrapper$1 = function FormWrapper(_ref, ref) {
20207
- var _state$selectedItems2;
20409
+ var _state$configuration$2;
20208
20410
  var id = _ref.id,
20209
20411
  data = _ref.data,
20210
20412
  onChange = _ref.onChange,
@@ -20217,6 +20419,10 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20217
20419
  var _Form$useForm = Form$1.useForm(),
20218
20420
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
20219
20421
  form = _Form$useForm2[0];
20422
+ var _useState = useState('0'),
20423
+ _useState2 = _slicedToArray(_useState, 2),
20424
+ activeTabKey = _useState2[0],
20425
+ setActiveTabKey = _useState2[1];
20220
20426
  var _useTranslation = useTranslation(),
20221
20427
  t = _useTranslation.t;
20222
20428
  var root = useStore();
@@ -20333,6 +20539,29 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20333
20539
  onError === null || onError === void 0 || onError(errorText !== null && errorText !== void 0 ? errorText : 'Es konnte nicht gespeichert werden, versuchen Sie es später nochmal.');
20334
20540
  }
20335
20541
  };
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
+ };
20336
20565
  var onFinishFailed = function onFinishFailed(data) {
20337
20566
  if (data.errorFields.length) {
20338
20567
  onError === null || onError === void 0 || onError("Folgende Felder wurden nicht korrekt bef\xFCllt: ".concat(data.errorFields.map(function (f) {
@@ -20347,18 +20576,60 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20347
20576
  onErrorInternal('An unexpected error prevented finishing');
20348
20577
  }
20349
20578
  };
20350
- return /*#__PURE__*/jsxs(Fragment, {
20351
- children: [/*#__PURE__*/jsxs(Spin, {
20352
- spinning: state.loading,
20353
- children: [state.configuration.presetApiInterface && /*#__PURE__*/jsx(Presets, {
20354
- state: state,
20355
- apiHandler: state.presetApiHandler,
20356
- form: form,
20357
- root: state.root,
20358
- setUsedPreset: state.setUsedPreset,
20359
- presets: state.preset.presets,
20360
- setPresets: state.preset.setPresets
20361
- }), /*#__PURE__*/jsxs(Form$1, {
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, {
20362
20633
  autoComplete: "off",
20363
20634
  form: form,
20364
20635
  onFinish: onFinish,
@@ -20374,30 +20645,98 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20374
20645
  if (changedFields[0] === undefined) return;
20375
20646
  state.changedFields.current.push(changedFields[0]);
20376
20647
  },
20377
- children: [state.configuration.itemSelector && /*#__PURE__*/jsx(Form$1.Item, {
20648
+ children: [state.configuration.itemSelector && index === 0 && /*#__PURE__*/jsx(Form$1.Item, {
20378
20649
  name: state.configuration.itemSelector.name,
20379
20650
  rules: state.getRules(state.configuration.itemSelector, state.data),
20380
20651
  label: state.configuration.itemSelector.label ? t(state.configuration.itemSelector.label, state.configuration.itemSelector.label) : state.configuration.itemSelector.name,
20381
20652
  valuePropName: state.configuration.itemSelector.type == 'checkbox' ? 'checked' : 'value',
20382
20653
  children: getElement(state.configuration.itemSelector, setCanSave, state, state.configuration.itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
20383
- }, state.configuration.itemSelector.name.toString()), (_state$selectedItems2 = state.selectedItems) === null || _state$selectedItems2 === void 0 ? void 0 : _state$selectedItems2.map(function (item) {
20384
- var _state$hiddenRequired, _state$hiddenRequired2, _state$hiddenRequired3;
20385
- return /*#__PURE__*/jsxs("div", {
20386
- 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, {
20387
- name: item.name,
20388
- rules: state.getRules(item, state.data),
20389
- label: getLabel(item, t),
20390
- valuePropName: item.type == 'checkbox' ? 'checked' : 'value',
20391
- initialValue: item === null || item === void 0 ? void 0 : item.defaultValue,
20392
- hasFeedback: !!state.fieldErrors[item.name.toString()],
20393
- validateStatus: !!state.fieldErrors[item.name.toString()] ? 'error' : undefined,
20394
- help: state.fieldErrors[item.name.toString()],
20395
- hidden: (_state$hiddenRequired2 = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired2 === void 0 ? void 0 : _state$hiddenRequired2.hidden,
20396
- 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)
20397
- }, Array.isArray(item.name) ? item.name.join('.') : item.name)]
20398
- }, item.name.toString());
20399
- })]
20400
- }, state.selectedItemsIndex.toString())]
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
+ })]
20401
20740
  }), state.configuration.showProgressBar && /*#__PURE__*/jsx(ModalProgressBar, {
20402
20741
  isOpen: state.progressBarOpen,
20403
20742
  percent: state.progressBarPercentage
@@ -21172,8 +21511,8 @@ var skeleton = "skeleton--xCI0";
21172
21511
  var filterField = "filterField-1kU1O";
21173
21512
  var parentScroll = "parent-scroll-GmaL9";
21174
21513
  var parent = "parent-NZJ3S";
21175
- 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";
21176
- styleInject(css_248z$q);
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);
21177
21516
 
21178
21517
  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; }
21179
21518
  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; }
@@ -22418,8 +22757,8 @@ var newscroller = "newscroller-INKeD";
22418
22757
  var antCollapseHeader = "ant-collapse-header--6FgU";
22419
22758
  var itemTitle = "item-title--BTvC";
22420
22759
  var itemDesc = "item-desc-DBiiF";
22421
- 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";
22422
- styleInject(css_248z$p);
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);
22423
22762
 
22424
22763
  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; }
22425
22764
  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; }
@@ -23831,8 +24170,8 @@ var jsoneditor = "jsoneditor-WMs15";
23831
24170
  var preview = "preview-9wK81";
23832
24171
  var previewButton = "preview-button-vupuG";
23833
24172
  var editButton = "edit-button-m6r3M";
23834
- 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";
23835
- styleInject(css_248z$o);
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);
23836
24175
 
23837
24176
  var JsonEditor = function JsonEditor(_ref, ref) {
23838
24177
  var id = _ref.id,
@@ -24611,19 +24950,19 @@ function reducer(state, action) {
24611
24950
 
24612
24951
  var grid = "grid-sGemi";
24613
24952
  var textWrapper = "text-wrapper-xsPXE";
24614
- 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";
24615
- styleInject(css_248z$n);
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);
24616
24955
 
24617
- var wrapper$4 = "wrapper-p-gR3";
24956
+ var wrapper$3 = "wrapper-p-gR3";
24618
24957
  var container$6 = "container-DoZqe";
24619
- 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";
24620
- styleInject(css_248z$m);
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);
24621
24960
 
24622
24961
  var ToolTipInfo = function ToolTipInfo(props) {
24623
24962
  var _useTranslation = useTranslation(),
24624
24963
  t = _useTranslation.t;
24625
24964
  return /*#__PURE__*/jsx("div", {
24626
- className: wrapper$4,
24965
+ className: wrapper$3,
24627
24966
  children: /*#__PURE__*/jsx(Card, {
24628
24967
  title: t('backoffice.tooltipinfo.useroverview'),
24629
24968
  styles: {
@@ -24820,8 +25159,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
24820
25159
  var small = "small-NY1-k";
24821
25160
  var medium = "medium---QcO";
24822
25161
  var big = "big--E39S";
24823
- 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";
24824
- styleInject(css_248z$l);
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);
24825
25164
 
24826
25165
  var MediaUpload = observer(function (_ref) {
24827
25166
  var id = _ref.id;
@@ -24947,8 +25286,8 @@ var editableRow = "editable-row-9BEHi";
24947
25286
  var checkbox = "checkbox-H7R-w";
24948
25287
  var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
24949
25288
  var contentWidth = "content-width-hGyVI";
24950
- 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";
24951
- styleInject(css_248z$k);
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);
24952
25291
 
24953
25292
  function BooleanCell (_ref) {
24954
25293
  var children = _ref.children,
@@ -25629,7 +25968,7 @@ function LinkCell (_ref) {
25629
25968
  }
25630
25969
  }
25631
25970
 
25632
- var _excluded$1 = ["index"],
25971
+ var _excluded$2 = ["index"],
25633
25972
  _excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
25634
25973
  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; }
25635
25974
  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; }
@@ -25637,7 +25976,7 @@ var LOG$4 = getLogger('Backoffice', 'CellRenderer');
25637
25976
  var EditableContext = /*#__PURE__*/React.createContext(null);
25638
25977
  var CustomRow = function CustomRow(_ref) {
25639
25978
  _ref.index;
25640
- var props = _objectWithoutProperties(_ref, _excluded$1);
25979
+ var props = _objectWithoutProperties(_ref, _excluded$2);
25641
25980
  var _Form$useForm = Form$1.useForm(),
25642
25981
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
25643
25982
  form = _Form$useForm2[0];
@@ -25937,8 +26276,8 @@ function useAGHistogram (_ref) {
25937
26276
  var container$5 = "container-2r-OJ";
25938
26277
  var column1 = "column1-9viTK";
25939
26278
  var spinner = "spinner-00VcK";
25940
- 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";
25941
- styleInject(css_248z$j);
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);
25942
26281
 
25943
26282
  var Panel = Collapse.Panel;
25944
26283
  function AGHistogram (_ref) {
@@ -27526,7 +27865,7 @@ function filter(f, data) {
27526
27865
  }) : result;
27527
27866
  }
27528
27867
 
27529
- var _excluded = ["_id"];
27868
+ var _excluded$1 = ["_id"];
27530
27869
  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; }
27531
27870
  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; }
27532
27871
  function useTableData$1 (_ref) {
@@ -27610,7 +27949,7 @@ function useTableData$1 (_ref) {
27610
27949
  setState(newState);
27611
27950
  var formData = new FormData();
27612
27951
  processedDataRow._id;
27613
- var value = _objectWithoutProperties(processedDataRow, _excluded);
27952
+ var value = _objectWithoutProperties(processedDataRow, _excluded$1);
27614
27953
  apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
27615
27954
  filterContex: filterContex,
27616
27955
  value: JSON.stringify([value])
@@ -28916,8 +29255,8 @@ var loader = "loader-LaXZy";
28916
29255
  var flex = "flex-yQdda";
28917
29256
  var bar = "bar-Y663f";
28918
29257
  var value = "value-FCA-6";
28919
- 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";
28920
- styleInject(css_248z$i);
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);
28921
29260
 
28922
29261
  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; }
28923
29262
  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; }
@@ -29862,8 +30201,8 @@ var retailerChild = "retailer-child-5ll0K";
29862
30201
  var supplier = "supplier-8sm0I";
29863
30202
  var dealer = "dealer-xgnku";
29864
30203
  var association = "association-b8uVW";
29865
- 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";
29866
- styleInject(css_248z$h);
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);
29867
30206
 
29868
30207
  function getColorClass(data) {
29869
30208
  switch (data.type) {
@@ -30096,8 +30435,8 @@ var openClass = "open-class--gGXs";
30096
30435
  var breadcrumb = "breadcrumb-Z0VvH";
30097
30436
  var selected = "selected-w-sfW";
30098
30437
  var disabled$2 = "disabled-0nado";
30099
- 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";
30100
- styleInject(css_248z$g);
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);
30101
30440
 
30102
30441
  var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
30103
30442
  var open = _ref.open,
@@ -30130,8 +30469,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
30130
30469
 
30131
30470
  var collapsibleInner = "collapsible-inner-rI8kI";
30132
30471
  var toolbarLeft = "toolbar-left-X9WRo";
30133
- 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";
30134
- styleInject(css_248z$f);
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);
30135
30474
 
30136
30475
  var Legend = function Legend(props) {
30137
30476
  return /*#__PURE__*/jsx(List$1, {
@@ -30185,8 +30524,8 @@ var Legend = function Legend(props) {
30185
30524
  var buttonsWrapper = "buttons-wrapper-Bubkr";
30186
30525
  var mask = "mask-ssagp";
30187
30526
  var transformWrapper = "transform-wrapper--8t0v";
30188
- 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";
30189
- styleInject(css_248z$e);
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);
30190
30529
 
30191
30530
  var ZoomWrapper = function ZoomWrapper(_ref) {
30192
30531
  var _children = _ref.children,
@@ -31092,6 +31431,7 @@ var useEnricherContext = function useEnricherContext() {
31092
31431
  exclusivitiesSeriesSelectorState: createDefaultSelectState('exclusivitiesSeriesSelectorState'),
31093
31432
  exclusivitiesFeatureSelectorState: createDefaultSelectState('exclusivitiesFeatureSelectorState'),
31094
31433
  selectedSerie: undefined,
31434
+ selectedItem: undefined,
31095
31435
  selectedFeature: undefined
31096
31436
  };
31097
31437
  return root.contextStore.getContext('enricher', initialState);
@@ -31103,6 +31443,11 @@ var useEnricherContext = function useEnricherContext() {
31103
31443
  selectedSerie: serie
31104
31444
  });
31105
31445
  }, [root.contextStore]);
31446
+ var setSelectedItem = useCallback(function (item) {
31447
+ root.contextStore.updateContext('enricher', {
31448
+ selectedItem: item
31449
+ });
31450
+ }, [root.contextStore]);
31106
31451
  var setSelectedFeature = useCallback(function (feature) {
31107
31452
  root.contextStore.updateContext('enricher', {
31108
31453
  selectedFeature: feature
@@ -31138,7 +31483,10 @@ var useEnricherContext = function useEnricherContext() {
31138
31483
  root.contextStore.updateContext('enricher', {
31139
31484
  selectedPackage: newPackage,
31140
31485
  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
31141
31488
  selectedSerie: undefined,
31489
+ selectedItem: undefined,
31142
31490
  selectedFeature: undefined,
31143
31491
  lookupSeriesSelectorState: createDefaultSelectState('lookupSeriesSelectorState'),
31144
31492
  lookupFeatureSelectorState: createDefaultSelectState('lookupFeatureSelectorState'),
@@ -31166,6 +31514,7 @@ var useEnricherContext = function useEnricherContext() {
31166
31514
  // Return context + handlers
31167
31515
  return _objectSpread$g(_objectSpread$g({}, getContext()), {}, {
31168
31516
  setSelectedSerie: setSelectedSerie,
31517
+ setSelectedItem: setSelectedItem,
31169
31518
  setSelectedFeature: setSelectedFeature,
31170
31519
  setSelectedPackage: setSelectedPackage
31171
31520
  });
@@ -31184,14 +31533,7 @@ var PackageSelector = function PackageSelector(_ref) {
31184
31533
  return /*#__PURE__*/jsx(SimpleSelect, {
31185
31534
  sharedState: packageSelectorState,
31186
31535
  apiInterface: {
31187
- read: "".concat(enricherService, "/packages?fields=name;_id;isoLanguageIds;isApi&filter=organizationId==\"").concat(organizationId, "\"")
31188
- },
31189
- apiMapping: {
31190
- type: 'query',
31191
- map: [{
31192
- globalValue: 'organizationId',
31193
- targetField: 'organizationId'
31194
- }]
31536
+ read: "".concat(enricherService, "/packages?fields=name;_id;isoLanguageIds;isApi;organizationId&organizationId=").concat(organizationId)
31195
31537
  },
31196
31538
  selectMapping: {
31197
31539
  label: '${name}',
@@ -31221,7 +31563,11 @@ function useModule$1 (currentModules) {
31221
31563
  setSelectedPackage = _useEnricherContext.setSelectedPackage,
31222
31564
  organizationId = _useEnricherContext.organizationId,
31223
31565
  selectedSerie = _useEnricherContext.selectedSerie,
31224
- selectedFeature = _useEnricherContext.selectedFeature;
31566
+ selectedFeature = _useEnricherContext.selectedFeature,
31567
+ selectedItem = _useEnricherContext.selectedItem,
31568
+ setSelectedSerie = _useEnricherContext.setSelectedSerie,
31569
+ setSelectedItem = _useEnricherContext.setSelectedItem,
31570
+ viewOnly = _useEnricherContext.viewOnly;
31225
31571
  var location = useLocation();
31226
31572
  var _useSearchParams = useSearchParams(),
31227
31573
  _useSearchParams2 = _slicedToArray(_useSearchParams, 1),
@@ -31431,8 +31777,12 @@ function useModule$1 (currentModules) {
31431
31777
  organizationId: organizationId,
31432
31778
  apiConfig: root.configurationStore.apiConfig,
31433
31779
  setSelectedPackage: setSelectedPackage,
31780
+ setSelectedSerie: setSelectedSerie,
31781
+ setSelectedItem: setSelectedItem,
31434
31782
  selectedSerie: selectedSerie,
31435
- selectedFeature: selectedFeature
31783
+ selectedFeature: selectedFeature,
31784
+ selectedItem: selectedItem,
31785
+ viewOnly: viewOnly
31436
31786
  };
31437
31787
  }
31438
31788
 
@@ -31560,14 +31910,12 @@ var useTools = function useTools(_ref) {
31560
31910
  initItem: item === null || item === void 0 ? void 0 : item.typeNo,
31561
31911
  setSerie: setSerie,
31562
31912
  setArticle: setArticle
31563
- }, serie ? {
31564
- initSerie: {
31565
- serieNo: serie.serieNo,
31566
- serieId: serie._id
31567
- }
31913
+ }, initSerie ? {
31914
+ initSerie: initSerie
31568
31915
  } : {}) : isApi2 ? {
31569
31916
  // open configurator for api2 package (configurator light)
31570
- loadMask: true
31917
+ loadMask: true,
31918
+ initItem: item === null || item === void 0 ? void 0 : item.typeNo
31571
31919
  } : _objectSpread$f({
31572
31920
  // open configurator for idm package
31573
31921
  useEnricherService: true,
@@ -31577,14 +31925,20 @@ var useTools = function useTools(_ref) {
31577
31925
  initItem: item === null || item === void 0 ? void 0 : item.typeNo,
31578
31926
  setSerie: setSerie,
31579
31927
  setArticle: setArticle
31580
- }, serie ? {
31581
- initSerie: {
31582
- serieNo: serie.serieNo,
31583
- serieId: serie._id
31584
- }
31928
+ }, initSerie ? {
31929
+ initSerie: initSerie
31585
31930
  } : {})
31586
31931
  });
31587
31932
  }, [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]);
31588
31942
  useEffect(function () {
31589
31943
  var _root$contentStore$ri;
31590
31944
  var tools = [];
@@ -31626,7 +31980,8 @@ var TableGroups = observer(function () {
31626
31980
  packageId = _useModule.packageId,
31627
31981
  organizationId = _useModule.organizationId,
31628
31982
  apiConfig = _useModule.apiConfig,
31629
- selectedPackage = _useModule.selectedPackage;
31983
+ selectedPackage = _useModule.selectedPackage,
31984
+ viewOnly = _useModule.viewOnly;
31630
31985
  useTools({
31631
31986
  packageId: packageId,
31632
31987
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -31640,10 +31995,10 @@ var TableGroups = observer(function () {
31640
31995
  var apiInterface = useMemo(function () {
31641
31996
  return {
31642
31997
  read: apiConfig.enricherService + '/packages/${packageId}/groups',
31643
- create: apiConfig.enricherService + '/packages/${packageId}/groups',
31644
- restore: apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31645
- "delete": apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31646
- update: apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
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}',
31647
32002
  bulk: apiConfig.enricherService + '/packages/${packageId}/groups/bulk'
31648
32003
  };
31649
32004
  }, []);
@@ -31657,7 +32012,7 @@ var TableGroups = observer(function () {
31657
32012
  field: 'serieNos',
31658
32013
  headerName: 'backoffice.idmEnricher.groups.label.serieNos',
31659
32014
  cellDataType: 'lookup',
31660
- editable: true,
32015
+ editable: !viewOnly,
31661
32016
  customParams: {
31662
32017
  filterCellType: 'number',
31663
32018
  nameField: 'serieNosDisplayTexts',
@@ -31680,7 +32035,7 @@ var TableGroups = observer(function () {
31680
32035
  field: 'typeNos',
31681
32036
  headerName: 'backoffice.idmEnricher.groups.label.typeNos',
31682
32037
  cellDataType: 'lookup',
31683
- editable: true,
32038
+ editable: !viewOnly,
31684
32039
  customParams: {
31685
32040
  nameField: 'typeNosDisplayTexts',
31686
32041
  displayLabelTemplate: '${name} (${value})',
@@ -31735,7 +32090,7 @@ var TableGroups = observer(function () {
31735
32090
  cellDataType: 'objectId'
31736
32091
  }]
31737
32092
  };
31738
- }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
32093
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
31739
32094
  return /*#__PURE__*/jsxs(Fragment, {
31740
32095
  children: [/*#__PURE__*/jsx(Descriptions$1, {
31741
32096
  title: /*#__PURE__*/jsxs("div", {
@@ -31757,22 +32112,28 @@ var TableGroups = observer(function () {
31757
32112
  });
31758
32113
 
31759
32114
  function PublishCustomCell (_ref) {
32115
+ var _data$published, _data$removedOrganiza;
31760
32116
  var data = _ref.data,
31761
32117
  apiConfig = _ref.apiConfig,
31762
32118
  context = _ref.context,
31763
32119
  api = _ref.api,
31764
- modalState = _ref.modalState;
32120
+ modalState = _ref.modalState,
32121
+ organizationId = _ref.organizationId;
31765
32122
  var _useTranslation = useTranslation(),
31766
32123
  t = _useTranslation.t;
31767
32124
  var _React$useState = React.useState(false),
31768
32125
  _React$useState2 = _slicedToArray(_React$useState, 2),
31769
32126
  loading = _React$useState2[0],
31770
32127
  isLoading = _React$useState2[1];
31771
- var unpublishedChanges = hasUnpublishedChanges(data.publishDate, data.lastUpdatedDate);
31772
- var disabled = !data.basedCatalogId && !data.basedPackageId || !data.name;
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);
31773
32134
  var _onChange = /*#__PURE__*/function () {
31774
32135
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(publish) {
31775
- var loadingTimeout, response;
32136
+ var loadingTimeout, response, _errorText, errorText, json;
31776
32137
  return _regeneratorRuntime.wrap(function _callee$(_context) {
31777
32138
  while (1) switch (_context.prev = _context.next) {
31778
32139
  case 0:
@@ -31787,7 +32148,7 @@ function PublishCustomCell (_ref) {
31787
32148
  }
31788
32149
  _context.next = 6;
31789
32150
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
31790
- update: apiConfig.enricherService + '/packages/${_id}/publish',
32151
+ update: apiConfig.enricherService + '/packages/${_id}/publish?organizationId=' + organizationId,
31791
32152
  usePut: true
31792
32153
  }, undefined, true);
31793
32154
  case 6:
@@ -31797,7 +32158,7 @@ function PublishCustomCell (_ref) {
31797
32158
  case 9:
31798
32159
  _context.next = 11;
31799
32160
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
31800
- update: apiConfig.enricherService + '/packages/${_id}/unpublish',
32161
+ update: apiConfig.enricherService + '/packages/${_id}/unpublish?organizationId=' + organizationId,
31801
32162
  usePut: true
31802
32163
  }, undefined, true);
31803
32164
  case 11:
@@ -31809,7 +32170,7 @@ function PublishCustomCell (_ref) {
31809
32170
  break;
31810
32171
  }
31811
32172
  modalState.showWarningModal(t("backoffice.idmEnricher.packages.label.warning.".concat(publish ? 'publishing' : 'unpublishing')));
31812
- _context.next = 22;
32173
+ _context.next = 34;
31813
32174
  break;
31814
32175
  case 17:
31815
32176
  if (!(response.status == 200)) {
@@ -31817,30 +32178,46 @@ function PublishCustomCell (_ref) {
31817
32178
  break;
31818
32179
  }
31819
32180
  modalState.closeModal();
31820
- _context.next = 22;
32181
+ _context.next = 34;
31821
32182
  break;
31822
32183
  case 21:
31823
- throw new Error("Server errror: ".concat(response.statusText, " (").concat(response.status, ")"));
31824
- case 22:
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:
31825
32202
  context === null || context === void 0 || context.reset({
31826
32203
  context: context,
31827
32204
  api: api
31828
32205
  });
31829
- _context.next = 28;
32206
+ _context.next = 40;
31830
32207
  break;
31831
- case 25:
31832
- _context.prev = 25;
31833
- _context.t0 = _context["catch"](2);
31834
- modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.t0 instanceof Error ? _context.t0.message : String(_context.t0)));
31835
- case 28:
31836
- _context.prev = 28;
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;
31837
32214
  isLoading(false);
31838
- return _context.finish(28);
31839
- case 31:
32215
+ return _context.finish(40);
32216
+ case 43:
31840
32217
  case "end":
31841
32218
  return _context.stop();
31842
32219
  }
31843
- }, _callee, null, [[2, 25, 28, 31]]);
32220
+ }, _callee, null, [[2, 37, 40, 43], [21, 28]]);
31844
32221
  }));
31845
32222
  return function onChange(_x) {
31846
32223
  return _ref2.apply(this, arguments);
@@ -31852,9 +32229,9 @@ function PublishCustomCell (_ref) {
31852
32229
  children: /*#__PURE__*/jsxs(Space$1, {
31853
32230
  size: "middle",
31854
32231
  children: [/*#__PURE__*/jsx(Tooltip, {
31855
- title: !!data.isPublished ? t('backoffice.idmEnricher.packages.label.unpublish') : t('backoffice.idmEnricher.packages.label.publish'),
32232
+ title: !!publishedData ? t('backoffice.idmEnricher.packages.label.unpublish') : t('backoffice.idmEnricher.packages.label.publish'),
31856
32233
  children: /*#__PURE__*/jsx(Checkbox$1, {
31857
- checked: !!data.isPublished,
32234
+ checked: !!publishedData,
31858
32235
  disabled: disabled,
31859
32236
  indeterminate: unpublishedChanges,
31860
32237
  onChange: function onChange(e) {
@@ -31870,6 +32247,12 @@ function PublishCustomCell (_ref) {
31870
32247
  return _onChange(true);
31871
32248
  }
31872
32249
  })
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
+ })
31873
32256
  })]
31874
32257
  })
31875
32258
  });
@@ -32191,6 +32574,7 @@ var useLoadingModal = function useLoadingModal() {
32191
32574
  };
32192
32575
 
32193
32576
  var TablePackages = observer(function () {
32577
+ var _root$dataStore$curre;
32194
32578
  var root = useStore();
32195
32579
  var _useTranslation = useTranslation(),
32196
32580
  t = _useTranslation.t,
@@ -32207,20 +32591,14 @@ var TablePackages = observer(function () {
32207
32591
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
32208
32592
  });
32209
32593
  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;
32210
32595
  var apiConfig = root.configurationStore.apiConfig;
32211
32596
  var applicationData = useMemo(function () {
32212
32597
  return {
32213
- organizationId: organizationId
32214
- };
32215
- }, [organizationId]);
32216
- var preFilter = useMemo(function () {
32217
- return {
32218
- colId: 'organizationId',
32219
- filterType: 'text',
32220
- type: 'equals',
32221
- filter: organizationId
32598
+ organizationId: organizationId,
32599
+ organizationDisplayText: organizationDisplayText
32222
32600
  };
32223
- }, [organizationId]);
32601
+ }, [organizationId, organizationDisplayText]);
32224
32602
  var rowActions = useMemo(function () {
32225
32603
  return [{
32226
32604
  icon: /*#__PURE__*/jsx(EditOutlined, {}),
@@ -32235,8 +32613,9 @@ var TablePackages = observer(function () {
32235
32613
  }, {
32236
32614
  icon: /*#__PURE__*/jsx(DownloadOutlined, {}),
32237
32615
  disabled: function disabled(_ref3) {
32616
+ var _selectedNodes$0$data;
32238
32617
  var selectedNodes = _ref3.selectedNodes;
32239
- return !selectedNodes[0].data.isPublished;
32618
+ return !((_selectedNodes$0$data = selectedNodes[0].data.published) !== null && _selectedNodes$0$data !== void 0 && _selectedNodes$0$data[organizationId]);
32240
32619
  },
32241
32620
  action: function () {
32242
32621
  var _action = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref4) {
@@ -32280,14 +32659,18 @@ var TablePackages = observer(function () {
32280
32659
  }, [apiConfig.enricherService, root.dataStore.jwt]);
32281
32660
  var apiInterface = useMemo(function () {
32282
32661
  return {
32283
- read: apiConfig.enricherService + '/packages?organizationId=${organizationId}',
32662
+ read: apiConfig.enricherService + '/packages?organizationId=' + organizationId,
32284
32663
  create: apiConfig.enricherService + '/packages',
32285
32664
  restore: apiConfig.enricherService + '/packages/${_id}',
32286
32665
  "delete": apiConfig.enricherService + '/packages/${_id}',
32287
32666
  update: apiConfig.enricherService + '/packages/${_id}',
32288
- bulk: apiConfig.enricherService + '/packages/bulk?organizationId=${organizationId}'
32667
+ bulk: apiConfig.enricherService + '/packages/bulk?organizationId=' + organizationId
32289
32668
  };
32290
- }, [apiConfig.enricherService]);
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]);
32291
32674
  var configuration = useMemo(function () {
32292
32675
  return {
32293
32676
  type: 'dotnetSSM',
@@ -32295,15 +32678,15 @@ var TablePackages = observer(function () {
32295
32678
  dateFormat: 'DD.MM.YYYY, HH:mm:ss',
32296
32679
  floatingFilter: true,
32297
32680
  colDef: [{
32298
- field: 'isPublished',
32681
+ field: "published.".concat(organizationId),
32299
32682
  //the cell should refresh on changes of this fields
32300
32683
  valueGetter: function valueGetter(_ref5) {
32684
+ var _data$published, _data$published2;
32301
32685
  var data = _ref5.data;
32302
32686
  return {
32303
- isPublished: data === null || data === void 0 ? void 0 : data.isPublished,
32304
32687
  name: data === null || data === void 0 ? void 0 : data.name,
32305
- basedCatalogId: data === null || data === void 0 ? void 0 : data.basedCatalogId,
32306
- basedPackageId: data === null || data === void 0 ? void 0 : data.basedPackageId
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
32307
32690
  };
32308
32691
  },
32309
32692
  headerName: 'backoffice.idmEnricher.packages.label.published',
@@ -32314,19 +32697,22 @@ var TablePackages = observer(function () {
32314
32697
  lockPinned: true,
32315
32698
  cellRendererParams: {
32316
32699
  apiConfig: apiConfig,
32317
- modalState: modalState
32318
- }
32700
+ modalState: modalState,
32701
+ organizationId: organizationId
32702
+ },
32703
+ isDictionary: true
32319
32704
  }, {
32320
32705
  headerName: 'backoffice.idmEnricher.packages.label.name',
32321
32706
  field: 'name',
32322
- required: true
32707
+ required: true,
32708
+ editable: isEditable
32323
32709
  }, {
32324
32710
  headerName: 'backoffice.idmEnricher.packages.label.catalogId',
32325
32711
  field: 'basedCatalogId',
32326
32712
  cellDataType: 'lookup',
32327
32713
  editable: function editable(_ref6) {
32328
32714
  var data = _ref6.data;
32329
- return !data.basedCatalogId && !data.basedPackageId;
32715
+ return isEditable(data) && !data.basedCatalogId && !data.basedPackageId;
32330
32716
  },
32331
32717
  customParams: {
32332
32718
  filterCellType: 'objectId',
@@ -32354,7 +32740,7 @@ var TablePackages = observer(function () {
32354
32740
  cellDataType: 'lookup',
32355
32741
  editable: function editable(_ref7) {
32356
32742
  var data = _ref7.data;
32357
- return !data.basedCatalogId && !data.basedPackageId;
32743
+ return isEditable(data) && !data.basedCatalogId && !data.basedPackageId;
32358
32744
  },
32359
32745
  customParams: {
32360
32746
  filterCellType: 'objectId',
@@ -32383,13 +32769,43 @@ var TablePackages = observer(function () {
32383
32769
  field: 'isoLanguageIds',
32384
32770
  headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
32385
32771
  cellDataType: 'enum',
32386
- editable: true,
32772
+ editable: isEditable,
32387
32773
  required: true,
32388
32774
  customParams: {
32389
32775
  enumData: getLanguageKey(t),
32390
32776
  multiple: true
32391
32777
  },
32392
32778
  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']
32393
32809
  }, {
32394
32810
  headerName: 'backoffice.idmEnricher.packages.label.isApi2',
32395
32811
  field: 'isApi',
@@ -32407,9 +32823,10 @@ var TablePackages = observer(function () {
32407
32823
  editable: false
32408
32824
  }, {
32409
32825
  headerName: 'backoffice.idmEnricher.packages.label.publishDate',
32410
- field: 'publishDate',
32826
+ field: "published.".concat(organizationId, ".publishDate"),
32411
32827
  cellDataType: 'dateString',
32412
- editable: false
32828
+ editable: false,
32829
+ isDictionary: true
32413
32830
  }, {
32414
32831
  headerName: 'backoffice.idmEnricher.general.label.createdBy',
32415
32832
  field: 'createdByDisplayText',
@@ -32420,8 +32837,9 @@ var TablePackages = observer(function () {
32420
32837
  editable: false
32421
32838
  }, {
32422
32839
  headerName: 'backoffice.idmEnricher.packages.label.publishedBy',
32423
- field: 'publishedByDisplayText',
32424
- editable: false
32840
+ field: "published.".concat(organizationId, ".publishedByDisplayText"),
32841
+ editable: false,
32842
+ isDictionary: true
32425
32843
  }, {
32426
32844
  headerName: 'backoffice.idmEnricher.general.label._id',
32427
32845
  field: '_id',
@@ -32434,9 +32852,26 @@ var TablePackages = observer(function () {
32434
32852
  lockVisible: true,
32435
32853
  suppressColumnsToolPanel: true,
32436
32854
  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
32437
32868
  }]
32438
32869
  };
32439
- }, [apiInterface, apiConfig, i18n.language]);
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]);
32440
32875
  return /*#__PURE__*/jsxs(Fragment, {
32441
32876
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32442
32877
  title: t('backoffice.menu.items.label.IDMEnricherTablePackages')
@@ -32444,8 +32879,8 @@ var TablePackages = observer(function () {
32444
32879
  gridId: 'packages-grid',
32445
32880
  applicationData: applicationData,
32446
32881
  rowActions: rowActions,
32447
- preFilter: preFilter,
32448
- configuration: configuration
32882
+ configuration: configuration,
32883
+ isRowEditable: isRowEditable
32449
32884
  }), contextHolder]
32450
32885
  });
32451
32886
  });
@@ -32457,7 +32892,8 @@ var TableProperties = observer(function () {
32457
32892
  packageId = _useModule.packageId,
32458
32893
  organizationId = _useModule.organizationId,
32459
32894
  apiConfig = _useModule.apiConfig,
32460
- selectedPackage = _useModule.selectedPackage;
32895
+ selectedPackage = _useModule.selectedPackage,
32896
+ viewOnly = _useModule.viewOnly;
32461
32897
  useTools({
32462
32898
  packageId: packageId,
32463
32899
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -32471,10 +32907,10 @@ var TableProperties = observer(function () {
32471
32907
  var apiInterface = useMemo(function () {
32472
32908
  return {
32473
32909
  read: apiConfig.enricherService + '/packages/${packageId}/properties',
32474
- create: apiConfig.enricherService + '/packages/${packageId}/properties',
32475
- restore: apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32476
- "delete": apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32477
- update: apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
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}',
32478
32914
  bulk: apiConfig.enricherService + '/packages/${packageId}/properties/bulk'
32479
32915
  };
32480
32916
  }, []);
@@ -32492,7 +32928,7 @@ var TableProperties = observer(function () {
32492
32928
  field: 'featureNos',
32493
32929
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
32494
32930
  cellDataType: 'lookup',
32495
- editable: true,
32931
+ editable: !viewOnly,
32496
32932
  customParams: {
32497
32933
  nameField: 'featureNosDisplayTexts',
32498
32934
  displayLabelTemplate: '${name} (${value})',
@@ -32510,7 +32946,7 @@ var TableProperties = observer(function () {
32510
32946
  field: 'optionKeys',
32511
32947
  headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
32512
32948
  cellDataType: 'lookup',
32513
- editable: true,
32949
+ editable: !viewOnly,
32514
32950
  customParams: {
32515
32951
  nameField: 'optionKeysDisplayTexts',
32516
32952
  displayLabelTemplate: '${name} (${value})',
@@ -32534,7 +32970,7 @@ var TableProperties = observer(function () {
32534
32970
  field: 'serieNos',
32535
32971
  headerName: 'backoffice.idmEnricher.renaming.label.serieNos',
32536
32972
  cellDataType: 'lookup',
32537
- editable: true,
32973
+ editable: !viewOnly,
32538
32974
  customParams: {
32539
32975
  filterCellType: 'number',
32540
32976
  nameField: 'serieNosDisplayTexts',
@@ -32557,7 +32993,7 @@ var TableProperties = observer(function () {
32557
32993
  field: 'typeNos',
32558
32994
  headerName: 'backoffice.idmEnricher.properties.label.typeNos',
32559
32995
  cellDataType: 'lookup',
32560
- editable: true,
32996
+ editable: !viewOnly,
32561
32997
  customParams: {
32562
32998
  nameField: 'typeNosDisplayTexts',
32563
32999
  displayLabelTemplate: '${name} (${value})',
@@ -32612,7 +33048,7 @@ var TableProperties = observer(function () {
32612
33048
  cellDataType: 'objectId'
32613
33049
  }]
32614
33050
  };
32615
- }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
33051
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
32616
33052
  return /*#__PURE__*/jsxs(Fragment, {
32617
33053
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32618
33054
  title: /*#__PURE__*/jsxs("div", {
@@ -32633,7 +33069,7 @@ var TableProperties = observer(function () {
32633
33069
  });
32634
33070
  });
32635
33071
 
32636
- var getConfig$6 = function getConfig(isoLanguageIds, t) {
33072
+ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
32637
33073
  return {
32638
33074
  colDef: [{
32639
33075
  field: 'translatedName',
@@ -32643,7 +33079,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32643
33079
  placeHolderField: 'origName',
32644
33080
  combinedField: 'name'
32645
33081
  },
32646
- additionalFields: ['origName', 'name']
33082
+ additionalFields: ['origName', 'name'],
33083
+ editable: !viewOnly
32647
33084
  }, {
32648
33085
  field: 'translatedComment',
32649
33086
  cellDataType: 'withPlaceholder',
@@ -32652,14 +33089,15 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32652
33089
  placeHolderField: 'origComment',
32653
33090
  combinedField: 'comment'
32654
33091
  },
32655
- additionalFields: ['origComment', 'comment']
33092
+ additionalFields: ['origComment', 'comment'],
33093
+ editable: !viewOnly
32656
33094
  }, createTranslatedColumnConfig('translatedCatalogName', 'backoffice.idmEnricher.renaming.label.catalogName', isoLanguageIds, false, 'withPlaceholder', {
32657
33095
  placeHolderField: 'origCatalogName',
32658
33096
  combinedField: 'catalogName'
32659
- }, ['origCatalogName', 'catalogName']), createTranslatedColumnConfig('translatedCatalogInfo', 'backoffice.idmEnricher.renaming.label.catalogInfo', isoLanguageIds, false, 'withPlaceholder', {
33097
+ }, ['origCatalogName', 'catalogName'], !viewOnly), createTranslatedColumnConfig('translatedCatalogInfo', 'backoffice.idmEnricher.renaming.label.catalogInfo', isoLanguageIds, false, 'withPlaceholder', {
32660
33098
  placeHolderField: 'origCatalogInfo',
32661
33099
  combinedField: 'catalogInfo'
32662
- }, ['origCatalogInfo', 'catalogInfo']), {
33100
+ }, ['origCatalogInfo', 'catalogInfo'], !viewOnly), {
32663
33101
  headerName: 'backoffice.idmEnricher.renaming.label.contactperson',
32664
33102
  field: 'translatedContactPersonNo1',
32665
33103
  cellDataType: 'withPlaceholder',
@@ -32667,7 +33105,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32667
33105
  placeHolderField: 'origContactPersonNo1',
32668
33106
  combinedField: 'contactPersonNo1'
32669
33107
  },
32670
- additionalFields: ['origContactPersonNo1', 'contactPersonNo1']
33108
+ additionalFields: ['origContactPersonNo1', 'contactPersonNo1'],
33109
+ editable: !viewOnly
32671
33110
  }, {
32672
33111
  headerName: 'backoffice.idmEnricher.renaming.label.contactrole',
32673
33112
  field: 'translatedContactRole1',
@@ -32676,7 +33115,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32676
33115
  placeHolderField: 'origContactRole1',
32677
33116
  combinedField: 'contactRole1'
32678
33117
  },
32679
- additionalFields: ['origContactRole1', 'contactRole1']
33118
+ additionalFields: ['origContactRole1', 'contactRole1'],
33119
+ editable: !viewOnly
32680
33120
  }, {
32681
33121
  headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname',
32682
33122
  field: 'translatedContactName1',
@@ -32685,7 +33125,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32685
33125
  placeHolderField: 'origContactName1',
32686
33126
  combinedField: 'contactName1'
32687
33127
  },
32688
- additionalFields: ['origContactName1', 'contactName1']
33128
+ additionalFields: ['origContactName1', 'contactName1'],
33129
+ editable: !viewOnly
32689
33130
  }, {
32690
33131
  headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname',
32691
33132
  field: 'translatedFirstName1',
@@ -32694,7 +33135,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32694
33135
  placeHolderField: 'origFirstName1',
32695
33136
  combinedField: 'firstName1'
32696
33137
  },
32697
- additionalFields: ['origFirstName1', 'firstName1']
33138
+ additionalFields: ['origFirstName1', 'firstName1'],
33139
+ editable: !viewOnly
32698
33140
  }, {
32699
33141
  headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address',
32700
33142
  field: 'translatedFormOfAddress1',
@@ -32706,7 +33148,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32706
33148
  enumData: getFormOfAddressKey(t),
32707
33149
  displayLabelTemplate: '${name} (${value})'
32708
33150
  },
32709
- additionalFields: ['origFormOfAddress1', 'formOfAddress1']
33151
+ additionalFields: ['origFormOfAddress1', 'formOfAddress1'],
33152
+ editable: !viewOnly
32710
33153
  }, {
32711
33154
  headerName: 'backoffice.idmEnricher.renaming.label.translated.department',
32712
33155
  field: 'translatedDepartment1',
@@ -32715,7 +33158,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32715
33158
  placeHolderField: 'origDepartment1',
32716
33159
  combinedField: 'department1'
32717
33160
  },
32718
- additionalFields: ['origDepartment1', 'department1']
33161
+ additionalFields: ['origDepartment1', 'department1'],
33162
+ editable: !viewOnly
32719
33163
  }, {
32720
33164
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone',
32721
33165
  field: 'translatedTelephone1',
@@ -32724,7 +33168,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32724
33168
  placeHolderField: 'origTelephone1',
32725
33169
  combinedField: 'telephone1'
32726
33170
  },
32727
- additionalFields: ['origTelephone1', 'telephone1']
33171
+ additionalFields: ['origTelephone1', 'telephone1'],
33172
+ editable: !viewOnly
32728
33173
  }, {
32729
33174
  headerName: 'backoffice.idmEnricher.renaming.label.translated.fax',
32730
33175
  field: 'translatedFax1',
@@ -32733,7 +33178,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32733
33178
  placeHolderField: 'origFax1',
32734
33179
  combinedField: 'fax1'
32735
33180
  },
32736
- additionalFields: ['origFax1', 'fax1']
33181
+ additionalFields: ['origFax1', 'fax1'],
33182
+ editable: !viewOnly
32737
33183
  }, {
32738
33184
  field: 'translatedEmail1',
32739
33185
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
@@ -32742,7 +33188,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32742
33188
  placeHolderField: 'origEmail1',
32743
33189
  combinedField: 'email1'
32744
33190
  },
32745
- additionalFields: ['origEmail1', 'email1']
33191
+ additionalFields: ['origEmail1', 'email1'],
33192
+ editable: !viewOnly
32746
33193
  }, {
32747
33194
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
32748
33195
  field: 'translatedStreet1',
@@ -32751,7 +33198,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32751
33198
  placeHolderField: 'origStreet1',
32752
33199
  combinedField: 'street1'
32753
33200
  },
32754
- additionalFields: ['origStreet1', 'street1']
33201
+ additionalFields: ['origStreet1', 'street1'],
33202
+ editable: !viewOnly
32755
33203
  }, {
32756
33204
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
32757
33205
  field: 'translatedZipCodeStreet1',
@@ -32760,7 +33208,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32760
33208
  placeHolderField: 'origZipCodeStreet1',
32761
33209
  combinedField: 'zipCodeStreet1'
32762
33210
  },
32763
- additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1']
33211
+ additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1'],
33212
+ editable: !viewOnly
32764
33213
  }, {
32765
33214
  field: 'translatedCity1',
32766
33215
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
@@ -32769,7 +33218,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32769
33218
  placeHolderField: 'origCity1',
32770
33219
  combinedField: 'city1'
32771
33220
  },
32772
- additionalFields: ['origCity1', 'city1']
33221
+ additionalFields: ['origCity1', 'city1'],
33222
+ editable: !viewOnly
32773
33223
  }, {
32774
33224
  field: 'translatedIsoCountryId1',
32775
33225
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
@@ -32780,7 +33230,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32780
33230
  combinedField: 'isoCountryId1',
32781
33231
  enumData: getCountryKey(t)
32782
33232
  },
32783
- additionalFields: ['origIsoCountryId1', 'isoCountryId1']
33233
+ additionalFields: ['origIsoCountryId1', 'isoCountryId1'],
33234
+ editable: !viewOnly
32784
33235
  }, {
32785
33236
  field: 'translatedContactPersonNo2',
32786
33237
  headerName: 'backoffice.idmEnricher.renaming.label.contactperson2',
@@ -32789,7 +33240,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32789
33240
  placeHolderField: 'origContactPersonNo2',
32790
33241
  combinedField: 'contactPersonNo2'
32791
33242
  },
32792
- additionalFields: ['origContactPersonNo2', 'contactPersonNo2']
33243
+ additionalFields: ['origContactPersonNo2', 'contactPersonNo2'],
33244
+ editable: !viewOnly
32793
33245
  }, {
32794
33246
  headerName: 'backoffice.idmEnricher.renaming.label.contactrole2',
32795
33247
  field: 'translatedContactRole2',
@@ -32798,7 +33250,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32798
33250
  placeHolderField: 'origContactRole2',
32799
33251
  combinedField: 'contactRole2'
32800
33252
  },
32801
- additionalFields: ['origContactRole2', 'contactRole2']
33253
+ additionalFields: ['origContactRole2', 'contactRole2'],
33254
+ editable: !viewOnly
32802
33255
  }, {
32803
33256
  headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname2',
32804
33257
  field: 'translatedContactName2',
@@ -32807,7 +33260,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32807
33260
  placeHolderField: 'origContactName2',
32808
33261
  combinedField: 'contactName2'
32809
33262
  },
32810
- additionalFields: ['origContactName2', 'contactName2']
33263
+ additionalFields: ['origContactName2', 'contactName2'],
33264
+ editable: !viewOnly
32811
33265
  }, {
32812
33266
  headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname2',
32813
33267
  field: 'translatedFirstName2',
@@ -32816,7 +33270,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32816
33270
  placeHolderField: 'origFirstName2',
32817
33271
  combinedField: 'firstName2'
32818
33272
  },
32819
- additionalFields: ['origFirstName2', 'firstName2']
33273
+ additionalFields: ['origFirstName2', 'firstName2'],
33274
+ editable: !viewOnly
32820
33275
  }, {
32821
33276
  headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address2',
32822
33277
  field: 'translatedFormOfAddress2',
@@ -32828,7 +33283,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32828
33283
  enumData: getFormOfAddressKey(t),
32829
33284
  displayLabelTemplate: '${name} (${value})'
32830
33285
  },
32831
- additionalFields: ['origFormOfAddress2', 'formOfAddress2']
33286
+ additionalFields: ['origFormOfAddress2', 'formOfAddress2'],
33287
+ editable: !viewOnly
32832
33288
  }, {
32833
33289
  headerName: 'backoffice.idmEnricher.renaming.label.translated.department2',
32834
33290
  field: 'translatedDepartment2',
@@ -32837,7 +33293,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32837
33293
  placeHolderField: 'origDepartment2',
32838
33294
  combinedField: 'department2'
32839
33295
  },
32840
- additionalFields: ['origDepartment2', 'department2']
33296
+ additionalFields: ['origDepartment2', 'department2'],
33297
+ editable: !viewOnly
32841
33298
  }, {
32842
33299
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone2',
32843
33300
  field: 'translatedTelephone2',
@@ -32846,7 +33303,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32846
33303
  placeHolderField: 'origTelephone2',
32847
33304
  combinedField: 'telephone2'
32848
33305
  },
32849
- additionalFields: ['origTelephone2', 'telephone2']
33306
+ additionalFields: ['origTelephone2', 'telephone2'],
33307
+ editable: !viewOnly
32850
33308
  }, {
32851
33309
  headerName: 'backoffice.idmEnricher.renaming.label.translated.fax2',
32852
33310
  field: 'translatedFax2',
@@ -32855,7 +33313,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32855
33313
  placeHolderField: 'origFax2',
32856
33314
  combinedField: 'fax2'
32857
33315
  },
32858
- additionalFields: ['origFax2', 'fax2']
33316
+ additionalFields: ['origFax2', 'fax2'],
33317
+ editable: !viewOnly
32859
33318
  }, {
32860
33319
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email2',
32861
33320
  field: 'translatedEmail2',
@@ -32864,7 +33323,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32864
33323
  placeHolderField: 'origEmail2',
32865
33324
  combinedField: 'email2'
32866
33325
  },
32867
- additionalFields: ['origEmail2', 'email2']
33326
+ additionalFields: ['origEmail2', 'email2'],
33327
+ editable: !viewOnly
32868
33328
  }, {
32869
33329
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street2',
32870
33330
  field: 'translatedStreet2',
@@ -32873,7 +33333,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32873
33333
  placeHolderField: 'origStreet2',
32874
33334
  combinedField: 'street2'
32875
33335
  },
32876
- additionalFields: ['origStreet2', 'street2']
33336
+ additionalFields: ['origStreet2', 'street2'],
33337
+ editable: !viewOnly
32877
33338
  }, {
32878
33339
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip2',
32879
33340
  field: 'translatedZipCodeStreet2',
@@ -32882,7 +33343,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32882
33343
  placeHolderField: 'origZipCodeStreet2',
32883
33344
  combinedField: 'zipCodeStreet2'
32884
33345
  },
32885
- additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2']
33346
+ additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2'],
33347
+ editable: !viewOnly
32886
33348
  }, {
32887
33349
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city2',
32888
33350
  field: 'translatedCity2',
@@ -32891,11 +33353,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32891
33353
  placeHolderField: 'origCity2',
32892
33354
  combinedField: 'city2'
32893
33355
  },
32894
- additionalFields: ['origCity2', 'city2']
33356
+ additionalFields: ['origCity2', 'city2'],
33357
+ editable: !viewOnly
32895
33358
  }, {
32896
33359
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country2',
32897
33360
  field: 'translatedIsoCountryId2',
32898
- editable: true,
32899
33361
  cellDataType: 'withPlaceholder',
32900
33362
  type: ['withPlaceholderEnum'],
32901
33363
  customParams: {
@@ -32903,7 +33365,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32903
33365
  combinedField: 'isoCountryId2',
32904
33366
  enumData: getCountryKey(t)
32905
33367
  },
32906
- additionalFields: ['origIsoCountryId2', 'isoCountryId2']
33368
+ additionalFields: ['origIsoCountryId2', 'isoCountryId2'],
33369
+ editable: !viewOnly
32907
33370
  }, {
32908
33371
  headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename',
32909
33372
  field: 'translatedManufactureName1',
@@ -32912,7 +33375,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32912
33375
  placeHolderField: 'origManufactureName1',
32913
33376
  combinedField: 'manufactureName1'
32914
33377
  },
32915
- additionalFields: ['origManufactureName1', 'manufactureName1']
33378
+ additionalFields: ['origManufactureName1', 'manufactureName1'],
33379
+ editable: !viewOnly
32916
33380
  }, {
32917
33381
  headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename2',
32918
33382
  field: 'translatedManufactureName2',
@@ -32921,7 +33385,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32921
33385
  placeHolderField: 'origManufactureName2',
32922
33386
  combinedField: 'manufactureName2'
32923
33387
  },
32924
- additionalFields: ['origManufactureName2', 'manufactureName2']
33388
+ additionalFields: ['origManufactureName2', 'manufactureName2'],
33389
+ editable: !viewOnly
32925
33390
  }, {
32926
33391
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
32927
33392
  field: 'translatedEmail',
@@ -32930,7 +33395,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32930
33395
  placeHolderField: 'origEmail',
32931
33396
  combinedField: 'email'
32932
33397
  },
32933
- additionalFields: ['origEmail', 'email']
33398
+ additionalFields: ['origEmail', 'email'],
33399
+ editable: !viewOnly
32934
33400
  }, {
32935
33401
  headerName: 'backoffice.idmEnricher.renaming.label.translated.internetaddress',
32936
33402
  field: 'translatedInternetAddress',
@@ -32939,7 +33405,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32939
33405
  placeHolderField: 'origInternetAddress',
32940
33406
  combinedField: 'internetAddress'
32941
33407
  },
32942
- additionalFields: ['origInternetAddress', 'internetAddress']
33408
+ additionalFields: ['origInternetAddress', 'internetAddress'],
33409
+ editable: !viewOnly
32943
33410
  }, {
32944
33411
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
32945
33412
  field: 'translatedStreet',
@@ -32948,7 +33415,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32948
33415
  placeHolderField: 'origStreet',
32949
33416
  combinedField: 'street'
32950
33417
  },
32951
- additionalFields: ['origStreet', 'street']
33418
+ additionalFields: ['origStreet', 'street'],
33419
+ editable: !viewOnly
32952
33420
  }, {
32953
33421
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
32954
33422
  field: 'translatedZipCodeStreet',
@@ -32957,7 +33425,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32957
33425
  placeHolderField: 'origZipCodeStreet',
32958
33426
  combinedField: 'zipCodeStreet'
32959
33427
  },
32960
- additionalFields: ['origZipCodeStreet', 'zipCodeStreet']
33428
+ additionalFields: ['origZipCodeStreet', 'zipCodeStreet'],
33429
+ editable: !viewOnly
32961
33430
  }, {
32962
33431
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
32963
33432
  field: 'translatedCity',
@@ -32966,11 +33435,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32966
33435
  placeHolderField: 'origCity',
32967
33436
  combinedField: 'city'
32968
33437
  },
32969
- additionalFields: ['origCity', 'city']
33438
+ additionalFields: ['origCity', 'city'],
33439
+ editable: !viewOnly
32970
33440
  }, {
32971
33441
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
32972
33442
  field: 'translatedContactSupplierIsoCountryId',
32973
- editable: true,
32974
33443
  cellDataType: 'withPlaceholder',
32975
33444
  type: ['withPlaceholderEnum'],
32976
33445
  customParams: {
@@ -32978,7 +33447,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32978
33447
  combinedField: 'contactSupplierIsoCountryId',
32979
33448
  enumData: getCountryKey(t)
32980
33449
  },
32981
- additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId']
33450
+ additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId'],
33451
+ editable: !viewOnly
32982
33452
  }, {
32983
33453
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zippostbox',
32984
33454
  field: 'translatedZipCodePostBox',
@@ -32987,7 +33457,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32987
33457
  placeHolderField: 'origZipCodePostBox',
32988
33458
  combinedField: 'zipCodePostBox'
32989
33459
  },
32990
- additionalFields: ['origZipCodePostBox', 'zipCodePostBox']
33460
+ additionalFields: ['origZipCodePostBox', 'zipCodePostBox'],
33461
+ editable: !viewOnly
32991
33462
  }, {
32992
33463
  headerName: 'backoffice.idmEnricher.renaming.label.translated.postbox',
32993
33464
  field: 'translatedPostBox',
@@ -32996,7 +33467,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32996
33467
  placeHolderField: 'origPostBox',
32997
33468
  combinedField: 'postBox'
32998
33469
  },
32999
- additionalFields: ['origPostBox', 'postBox']
33470
+ additionalFields: ['origPostBox', 'postBox'],
33471
+ editable: !viewOnly
33000
33472
  }, {
33001
33473
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephoneswitchboard',
33002
33474
  field: 'translatedTelephoneSwitchboard',
@@ -33005,7 +33477,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
33005
33477
  placeHolderField: 'origTelephoneSwitchboard',
33006
33478
  combinedField: 'telephoneSwitchboard'
33007
33479
  },
33008
- additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard']
33480
+ additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard'],
33481
+ editable: !viewOnly
33009
33482
  }, {
33010
33483
  headerName: 'backoffice.idmEnricher.renaming.label.translated.faxswitchboard',
33011
33484
  field: 'translatedFaxSwitchboard',
@@ -33014,12 +33487,13 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
33014
33487
  placeHolderField: 'origFaxSwitchboard',
33015
33488
  combinedField: 'faxSwitchboard'
33016
33489
  },
33017
- additionalFields: ['origFaxSwitchboard', 'faxSwitchboard']
33490
+ additionalFields: ['origFaxSwitchboard', 'faxSwitchboard'],
33491
+ editable: !viewOnly
33018
33492
  }]
33019
33493
  };
33020
33494
  };
33021
33495
 
33022
- var getConfig$5 = function getConfig(isoLanguageIds) {
33496
+ var getConfig$5 = function getConfig(isoLanguageIds, t, viewOnly) {
33023
33497
  return {
33024
33498
  colDef: [{
33025
33499
  headerName: 'backoffice.idmEnricher.renaming.label.detailinfo_nr',
@@ -33028,17 +33502,17 @@ var getConfig$5 = function getConfig(isoLanguageIds) {
33028
33502
  }, createTranslatedColumnConfig('translatedExternalName', 'backoffice.idmEnricher.renaming.label.externalName', isoLanguageIds, false, 'withPlaceholder', {
33029
33503
  placeHolderField: 'origExternalName',
33030
33504
  combinedField: 'externalName'
33031
- }, ['origExternalName', 'externalName']), createTranslatedColumnConfig('translatedInternalName', 'backoffice.idmEnricher.renaming.label.internalName', isoLanguageIds, false, 'withPlaceholder', {
33505
+ }, ['origExternalName', 'externalName'], !viewOnly), createTranslatedColumnConfig('translatedInternalName', 'backoffice.idmEnricher.renaming.label.internalName', isoLanguageIds, false, 'withPlaceholder', {
33032
33506
  placeHolderField: 'origInternalName',
33033
33507
  combinedField: 'internalName'
33034
- }, ['origInternalName', 'internalName']), createTranslatedColumnConfig('translatedToolTip', 'backoffice.idmEnricher.renaming.label.tooltip', isoLanguageIds, false, 'withPlaceholder', {
33508
+ }, ['origInternalName', 'internalName'], !viewOnly), createTranslatedColumnConfig('translatedToolTip', 'backoffice.idmEnricher.renaming.label.tooltip', isoLanguageIds, false, 'withPlaceholder', {
33035
33509
  placeHolderField: 'origToolTip',
33036
33510
  combinedField: 'toolTip'
33037
- }, ['origToolTip', 'toolTip'])]
33511
+ }, ['origToolTip', 'toolTip'], !viewOnly)]
33038
33512
  };
33039
33513
  };
33040
33514
 
33041
- var getConfig$4 = function getConfig(isoLanguageIds) {
33515
+ var getConfig$4 = function getConfig(isoLanguageIds, t, viewOnly) {
33042
33516
  return {
33043
33517
  colDef: [{
33044
33518
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
@@ -33049,11 +33523,11 @@ var getConfig$4 = function getConfig(isoLanguageIds) {
33049
33523
  }, createTranslatedColumnConfig('translatedFeatureText', 'backoffice.idmEnricher.renaming.label.featuretext', isoLanguageIds, false, 'withPlaceholder', {
33050
33524
  placeHolderField: 'origFeatureText',
33051
33525
  combinedField: 'featureText'
33052
- }, ['origFeatureText', 'featureText'])]
33526
+ }, ['origFeatureText', 'featureText'], !viewOnly)]
33053
33527
  };
33054
33528
  };
33055
33529
 
33056
- var getConfig$3 = function getConfig(isoLanguageIds) {
33530
+ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33057
33531
  return {
33058
33532
  colDef: [{
33059
33533
  headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
@@ -33064,13 +33538,13 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33064
33538
  }, createTranslatedColumnConfig('translatedShortText', 'backoffice.idmEnricher.renaming.label.shortText', isoLanguageIds, false, 'withPlaceholder', {
33065
33539
  placeHolderField: 'origShortText',
33066
33540
  combinedField: 'shortText'
33067
- }, ['origShortText', 'shortText']), createTranslatedColumnConfig('translatedFullText', 'backoffice.idmEnricher.renaming.label.fullText', isoLanguageIds, false, 'withPlaceholder', {
33541
+ }, ['origShortText', 'shortText'], !viewOnly), createTranslatedColumnConfig('translatedFullText', 'backoffice.idmEnricher.renaming.label.fullText', isoLanguageIds, false, 'withPlaceholder', {
33068
33542
  placeHolderField: 'origFullText',
33069
33543
  combinedField: 'fullText'
33070
- }, ['origFullText', 'fullText']), createTranslatedColumnConfig('translatedPlanningAdvice', 'backoffice.idmEnricher.renaming.label.planningAdvice', isoLanguageIds, false, 'withPlaceholder', {
33544
+ }, ['origFullText', 'fullText'], !viewOnly), createTranslatedColumnConfig('translatedPlanningAdvice', 'backoffice.idmEnricher.renaming.label.planningAdvice', isoLanguageIds, false, 'withPlaceholder', {
33071
33545
  placeHolderField: 'origPlanningAdvice',
33072
33546
  combinedField: 'planningAdvice'
33073
- }, ['origPlanningAdvice', 'planningAdvice']), {
33547
+ }, ['origPlanningAdvice', 'planningAdvice'], !viewOnly), {
33074
33548
  headerName: 'backoffice.idmEnricher.renaming.label.translatedSalesNumber',
33075
33549
  field: 'translatedSalesNumber',
33076
33550
  cellDataType: 'withPlaceholder',
@@ -33078,7 +33552,8 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33078
33552
  placeHolderField: 'origSalesNumber',
33079
33553
  combinedField: 'salesNumber'
33080
33554
  },
33081
- additionalFields: ['origSalesNumber', 'salesNumber']
33555
+ additionalFields: ['origSalesNumber', 'salesNumber'],
33556
+ editable: !viewOnly
33082
33557
  }, {
33083
33558
  field: 'sequenceNo',
33084
33559
  headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
@@ -33092,7 +33567,8 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33092
33567
  placeHolderField: 'origEdpNumber',
33093
33568
  combinedField: 'edpNumber'
33094
33569
  },
33095
- additionalFields: ['origEdpNumber', 'edpNumber']
33570
+ additionalFields: ['origEdpNumber', 'edpNumber'],
33571
+ editable: !viewOnly
33096
33572
  }, {
33097
33573
  headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
33098
33574
  field: 'translatedEanNumber',
@@ -33101,12 +33577,13 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33101
33577
  placeHolderField: 'origEanNumber',
33102
33578
  combinedField: 'eanNumber'
33103
33579
  },
33104
- additionalFields: ['origEanNumber', 'eanNumber']
33580
+ additionalFields: ['origEanNumber', 'eanNumber'],
33581
+ editable: !viewOnly
33105
33582
  }]
33106
33583
  };
33107
33584
  };
33108
33585
 
33109
- var getConfig$2 = function getConfig(isoLanguageIds) {
33586
+ var getConfig$2 = function getConfig(isoLanguageIds, t, viewOnly) {
33110
33587
  return {
33111
33588
  colDef: [{
33112
33589
  headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
@@ -33117,10 +33594,10 @@ var getConfig$2 = function getConfig(isoLanguageIds) {
33117
33594
  }, createTranslatedColumnConfig('translatedOptionText', 'backoffice.idmEnricher.renaming.label.optionText', isoLanguageIds, false, 'withPlaceholder', {
33118
33595
  placeHolderField: 'origOptionText',
33119
33596
  combinedField: 'optionText'
33120
- }, ['origOptionText', 'optionText']), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, false, 'withPlaceholder', {
33597
+ }, ['origOptionText', 'optionText'], !viewOnly), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, false, 'withPlaceholder', {
33121
33598
  placeHolderField: 'origOptionCommentText',
33122
33599
  combinedField: 'optionCommentText'
33123
- }, ['origOptionCommentText', 'optionCommentText']), {
33600
+ }, ['origOptionCommentText', 'optionCommentText'], !viewOnly), {
33124
33601
  field: 'featureNos',
33125
33602
  headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
33126
33603
  cellDataType: 'lookup',
@@ -33145,7 +33622,7 @@ var getConfig$2 = function getConfig(isoLanguageIds) {
33145
33622
  };
33146
33623
  };
33147
33624
 
33148
- var getConfig$1 = function getConfig(isoLanguageIds) {
33625
+ var getConfig$1 = function getConfig(isoLanguageIds, t, viewOnly) {
33149
33626
  return {
33150
33627
  colDef: [{
33151
33628
  headerName: 'backoffice.idmEnricher.renaming.label.serieNo',
@@ -33156,10 +33633,10 @@ var getConfig$1 = function getConfig(isoLanguageIds) {
33156
33633
  }, createTranslatedColumnConfig('translatedSeriesName', 'backoffice.idmEnricher.renaming.label.serieName', isoLanguageIds, false, 'withPlaceholder', {
33157
33634
  placeHolderField: 'origSeriesName',
33158
33635
  combinedField: 'seriesName'
33159
- }, ['origSeriesName', 'seriesName']), createTranslatedColumnConfig('translatedSeriesFullText', 'backoffice.idmEnricher.renaming.label.serieFullText', isoLanguageIds, false, 'withPlaceholder', {
33636
+ }, ['origSeriesName', 'seriesName'], !viewOnly), createTranslatedColumnConfig('translatedSeriesFullText', 'backoffice.idmEnricher.renaming.label.serieFullText', isoLanguageIds, false, 'withPlaceholder', {
33160
33637
  placeHolderField: 'origSeriesFullText',
33161
33638
  combinedField: 'seriesFullText'
33162
- }, ['origSeriesFullText', 'seriesFullText'])]
33639
+ }, ['origSeriesFullText', 'seriesFullText'], !viewOnly)]
33163
33640
  };
33164
33641
  };
33165
33642
 
@@ -33247,11 +33724,20 @@ var RenamingTable = observer(function (_ref) {
33247
33724
  packageId = _useModule.packageId,
33248
33725
  apiConfig = _useModule.apiConfig,
33249
33726
  selectedPackage = _useModule.selectedPackage,
33250
- selectedSerie = _useModule.selectedSerie;
33251
- useTools({
33252
- packageId: packageId,
33253
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
33254
- });
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;
33255
33741
  var baseConfiguration = useMemo(function () {
33256
33742
  return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
33257
33743
  }, [selectedPackage, i18n.language]);
@@ -33260,6 +33746,31 @@ var RenamingTable = observer(function (_ref) {
33260
33746
  packageId: packageId
33261
33747
  };
33262
33748
  }, [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]);
33263
33774
  var prevPreFilter = useRef();
33264
33775
  var preFilter = useMemo(function () {
33265
33776
  if (type === 'items' && selectedSerie) {
@@ -33280,7 +33791,7 @@ var RenamingTable = observer(function (_ref) {
33280
33791
  var apiInterface = useMemo(function () {
33281
33792
  return {
33282
33793
  read: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type,
33283
- update: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/${_id}',
33794
+ update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/${_id}',
33284
33795
  bulk: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/bulk'
33285
33796
  };
33286
33797
  }, [type]);
@@ -33306,7 +33817,7 @@ var RenamingTable = observer(function (_ref) {
33306
33817
  cellDataType: 'objectId'
33307
33818
  }])
33308
33819
  };
33309
- }, [apiInterface, baseConfiguration.colDef]);
33820
+ }, [apiInterface, baseConfiguration.colDef, viewOnly]);
33310
33821
  var showTable = useMemo(function () {
33311
33822
  return selectedPackage && (!['items'].includes(type) || type === 'items' && preFilter);
33312
33823
  }, [type, preFilter, selectedPackage]);
@@ -33329,7 +33840,8 @@ var RenamingTable = observer(function (_ref) {
33329
33840
  gridId: 'renaming-grid_' + type,
33330
33841
  applicationData: applicationData,
33331
33842
  preFilter: preFilter,
33332
- configuration: configuration
33843
+ configuration: configuration,
33844
+ hooks: hooks
33333
33845
  })]
33334
33846
  });
33335
33847
  });
@@ -33811,11 +34323,45 @@ var ExclusivityTable = observer(function (_ref) {
33811
34323
  apiConfig = _useModule.apiConfig,
33812
34324
  organizationId = _useModule.organizationId,
33813
34325
  selectedPackage = _useModule.selectedPackage,
33814
- selectedSerie = _useModule.selectedSerie;
33815
- useTools({
33816
- packageId: packageId,
33817
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
33818
- });
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]);
33819
34365
  var apiInterface = useMemo(function () {
33820
34366
  var patchId = '${_id}';
33821
34367
  if (type === 'eitems') patchId = '${typeNo}';
@@ -33829,7 +34375,7 @@ var ExclusivityTable = observer(function (_ref) {
33829
34375
  var listType = type === 'eitems' ? 'items' : 'options';
33830
34376
  return {
33831
34377
  read: !['eitems'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
33832
- 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
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
33833
34379
  };
33834
34380
  }, [type]);
33835
34381
  var oldDataRef = useRef();
@@ -33858,7 +34404,7 @@ var ExclusivityTable = observer(function (_ref) {
33858
34404
  floatingFilter: true,
33859
34405
  colDef: [{
33860
34406
  field: 'active',
33861
- editable: true,
34407
+ editable: !viewOnly,
33862
34408
  cellDataType: 'boolean',
33863
34409
  pinned: 'left',
33864
34410
  lockPinned: true
@@ -33874,11 +34420,11 @@ var ExclusivityTable = observer(function (_ref) {
33874
34420
  }, {
33875
34421
  headerName: 'backoffice.idmEnricher.general.label._id',
33876
34422
  field: '_id',
33877
- editable: true,
34423
+ editable: false,
33878
34424
  cellDataType: 'objectId'
33879
34425
  }])
33880
34426
  };
33881
- }, [apiInterface, selectedSerie, config.colDef]);
34427
+ }, [apiInterface, selectedSerie, config.colDef, viewOnly]);
33882
34428
  return /*#__PURE__*/jsxs(Fragment, {
33883
34429
  children: [/*#__PURE__*/jsx(Descriptions$1, {
33884
34430
  title: /*#__PURE__*/jsxs("div", {
@@ -33897,7 +34443,8 @@ var ExclusivityTable = observer(function (_ref) {
33897
34443
  }), showTable && /*#__PURE__*/jsx(Spreadsheet, {
33898
34444
  gridId: 'crud-grid_exclusivity_' + type,
33899
34445
  applicationData: applicationData,
33900
- configuration: configuration
34446
+ configuration: configuration,
34447
+ hooks: hooks
33901
34448
  })]
33902
34449
  });
33903
34450
  });
@@ -33909,7 +34456,8 @@ var TableTabGroups = observer(function () {
33909
34456
  packageId = _useModule.packageId,
33910
34457
  organizationId = _useModule.organizationId,
33911
34458
  apiConfig = _useModule.apiConfig,
33912
- selectedPackage = _useModule.selectedPackage;
34459
+ selectedPackage = _useModule.selectedPackage,
34460
+ viewOnly = _useModule.viewOnly;
33913
34461
  useTools({
33914
34462
  packageId: packageId,
33915
34463
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -33924,10 +34472,10 @@ var TableTabGroups = observer(function () {
33924
34472
  return {
33925
34473
  //TODO: Es gibt globale Tabgroups, die vordefiniert sind und pro Enricher Paket nochmals angepasst werden können -endpoint anpassen?
33926
34474
  read: apiConfig.enricherService + '/packages/${packageId}/tabgroups',
33927
- create: apiConfig.enricherService + '/packages/${packageId}/tabgroups',
33928
- restore: apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
33929
- "delete": apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
33930
- update: apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
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}',
33931
34479
  bulk: apiConfig.enricherService + '/packages/${packageId}/tabgroups/bulk'
33932
34480
  };
33933
34481
  }, []);
@@ -33941,7 +34489,7 @@ var TableTabGroups = observer(function () {
33941
34489
  field: 'featureNos',
33942
34490
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
33943
34491
  cellDataType: 'lookup',
33944
- editable: true,
34492
+ editable: !viewOnly,
33945
34493
  customParams: {
33946
34494
  nameField: 'featureNosDisplayTexts',
33947
34495
  displayLabelTemplate: '${name} (${value})',
@@ -33955,7 +34503,7 @@ var TableTabGroups = observer(function () {
33955
34503
  },
33956
34504
  additionalFields: ['featureNosDisplayTexts'],
33957
34505
  isDictionary: true
33958
- }, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.tabgroups.label.name', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, true), {
34506
+ }, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.tabgroups.label.name', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, !viewOnly), {
33959
34507
  field: 'organizationId',
33960
34508
  editable: false,
33961
34509
  hide: true,
@@ -33985,7 +34533,7 @@ var TableTabGroups = observer(function () {
33985
34533
  cellDataType: 'objectId'
33986
34534
  }]
33987
34535
  };
33988
- }, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
34536
+ }, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
33989
34537
  return /*#__PURE__*/jsxs(Fragment, {
33990
34538
  children: [/*#__PURE__*/jsx(Descriptions$1, {
33991
34539
  title: /*#__PURE__*/jsxs("div", {
@@ -34013,7 +34561,8 @@ var TablePartlistPos = observer(function () {
34013
34561
  packageId = _useModule.packageId,
34014
34562
  organizationId = _useModule.organizationId,
34015
34563
  apiConfig = _useModule.apiConfig,
34016
- selectedPackage = _useModule.selectedPackage;
34564
+ selectedPackage = _useModule.selectedPackage,
34565
+ viewOnly = _useModule.viewOnly;
34017
34566
  useTools({
34018
34567
  packageId: packageId,
34019
34568
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -34039,10 +34588,10 @@ var TablePartlistPos = observer(function () {
34039
34588
  var apiInterface = useMemo(function () {
34040
34589
  return {
34041
34590
  read: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34042
- create: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34043
- restore: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34044
- "delete": apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34045
- update: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
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}',
34046
34595
  bulk: apiConfig.enricherService + '/packages/${packageId}/partlistpos/bulk'
34047
34596
  };
34048
34597
  }, []);
@@ -34055,12 +34604,12 @@ var TablePartlistPos = observer(function () {
34055
34604
  colDef: [{
34056
34605
  headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
34057
34606
  field: 'retailPrefix',
34058
- editable: true,
34607
+ editable: !viewOnly,
34059
34608
  pinned: 'left'
34060
34609
  }, {
34061
34610
  headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
34062
34611
  field: 'retailArtilceNumber',
34063
- editable: true,
34612
+ editable: !viewOnly,
34064
34613
  pinned: 'left'
34065
34614
  }, {
34066
34615
  headerName: 'backoffice.idmEnricher.partlistpos.label.partlistKey',
@@ -34162,7 +34711,7 @@ var TablePartlistPos = observer(function () {
34162
34711
  cellDataType: 'objectId'
34163
34712
  }]
34164
34713
  };
34165
- }, [apiInterface, posInvisibility]);
34714
+ }, [apiInterface, posInvisibility, viewOnly]);
34166
34715
  return /*#__PURE__*/jsxs(Fragment, {
34167
34716
  children: [/*#__PURE__*/jsx(Descriptions$1, {
34168
34717
  title: /*#__PURE__*/jsxs("div", {
@@ -34463,8 +35012,8 @@ var space = "space-T5Mkd";
34463
35012
  var input$1 = "input-SK-Fo";
34464
35013
  var addButton$1 = "addButton-AVN8Y";
34465
35014
  var helpText = "helpText-QYQQF";
34466
- 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";
34467
- styleInject(css_248z$d);
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);
34468
35017
 
34469
35018
  function PriceFactorCellRenderer(props) {
34470
35019
  var data = props.data,
@@ -34680,8 +35229,8 @@ var difference = "difference-xT9ZP";
34680
35229
  var differencePositive = "differencePositive-hGhZO";
34681
35230
  var differenceNegative = "differenceNegative-3CEZA";
34682
35231
  var differenceNeutral = "differenceNeutral-wx8oE";
34683
- 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";
34684
- styleInject(css_248z$c);
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);
34685
35234
 
34686
35235
  function PriceDisplayCellRenderer(props) {
34687
35236
  var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
@@ -34747,59 +35296,129 @@ function getPriceFeatureGroups(selectedSerie, language) {
34747
35296
  if (!(selectedSerie !== null && selectedSerie !== void 0 && selectedSerie.pricefeaturegroups)) {
34748
35297
  return [];
34749
35298
  }
34750
- var priceFeatureGroups = (_selectedSerie$pricef = selectedSerie.pricefeaturegroups) === null || _selectedSerie$pricef === void 0 ? void 0 : _selectedSerie$pricef.map(function (priceFeatureGroups, i) {
35299
+ var priceFeatureGroups = (_selectedSerie$pricef = selectedSerie.pricefeaturegroups) === null || _selectedSerie$pricef === void 0 ? void 0 : _selectedSerie$pricef.map(function (priceFeatureGroupKey, i) {
34751
35300
  var _selectedSerie$pricef2, _selectedSerie$pricef3;
34752
35301
  return {
34753
- id: priceFeatureGroups,
34754
- 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,
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,
34755
35304
  keys: [],
34756
35305
  keysDisplayTexts: []
34757
35306
  };
34758
35307
  });
34759
- (_selectedSerie$pricef4 = selectedSerie.pricefeaturegroupsKeys) === null || _selectedSerie$pricef4 === void 0 || _selectedSerie$pricef4.forEach(function (priceFeatureGroupKey, i) {
34760
- var pfgSplit = priceFeatureGroupKey.split('_');
34761
- var pfgId = pfgSplit[0].replace('PRFG', '');
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];
34762
35311
  var pfg = priceFeatureGroups.find(function (pfg) {
34763
35312
  return pfg.id == pfgId;
34764
35313
  });
34765
35314
  if (pfg) {
34766
35315
  var _selectedSerie$pricef5;
34767
- pfg.keys.push(priceFeatureGroupKey);
35316
+ pfg.keys.push(priceGroupKey);
34768
35317
  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()]);
34769
35318
  }
34770
35319
  });
34771
35320
  return priceFeatureGroups;
34772
35321
  }
34773
35322
 
34774
- var wrapper$3 = "wrapper-5t6RT";
34775
35323
  var input = "input-leHam";
34776
35324
  var disabled$1 = "disabled-Llkqu";
34777
- 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";
34778
- styleInject(css_248z$b);
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);
34779
35327
 
35328
+ var _excluded = ["onSave", "value"];
34780
35329
  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; }
34781
35330
  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; }
34782
- function PriceFactorInput(props) {
34783
- return /*#__PURE__*/jsxs("div", {
34784
- className: classnames(wrapper$3, props.className),
34785
- children: [props.title, /*#__PURE__*/jsx(Tooltip$1, {
34786
- title: props.tooltip,
34787
- children: /*#__PURE__*/jsx("div", {
34788
- id: "price-factor-input",
34789
- className: classnames(input, _defineProperty({}, disabled$1, props.disabled)),
34790
- children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
34791
- isNotInAGGrid: true
34792
- }))
34793
- })
34794
- })]
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
+ })
34795
35355
  });
34796
35356
  }
34797
35357
 
34798
35358
  var inputHeader = "input-header--4KDP";
34799
35359
  var factorInput = "factor-input-MX85Z";
34800
- 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";
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";
34801
35403
  styleInject(css_248z$a);
34802
35404
 
35405
+ function Setting(_ref) {
35406
+ var title = _ref.title,
35407
+ tooltip = _ref.tooltip,
35408
+ className = _ref.className,
35409
+ children = _ref.children;
35410
+ return /*#__PURE__*/jsxs("div", {
35411
+ className: classnames(root, className),
35412
+ children: [title, /*#__PURE__*/jsx(Tooltip$1, {
35413
+ title: tooltip,
35414
+ children: /*#__PURE__*/jsx("div", {
35415
+ className: contentWrapper$1,
35416
+ children: children
35417
+ })
35418
+ })]
35419
+ });
35420
+ }
35421
+
34803
35422
  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; }
34804
35423
  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; }
34805
35424
  var Prices = observer(function (_ref) {
@@ -34808,11 +35427,89 @@ var Prices = observer(function (_ref) {
34808
35427
  packageId = _ref.packageId,
34809
35428
  apiConfig = _ref.apiConfig,
34810
35429
  pricelist = _ref.pricelist,
34811
- setNodeDataValue = _ref.setNodeDataValue;
35430
+ setNodeDataValue = _ref.setNodeDataValue,
35431
+ viewOnly = _ref.viewOnly;
34812
35432
  var _useTranslation = useTranslation(),
34813
35433
  t = _useTranslation.t;
35434
+ var root = useStore();
35435
+ var spreadsheetRef = useRef(null);
34814
35436
  var _useEnricherContext = useEnricherContext(['pricelists']),
34815
35437
  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]);
34816
35513
  var updatePgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
34817
35514
  if (!selectedSerie) return;
34818
35515
 
@@ -34936,6 +35633,34 @@ var Prices = observer(function (_ref) {
34936
35633
  seriePricefactors: newFactors
34937
35634
  });
34938
35635
  }, [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
+ }
34939
35664
  var applicationData = useMemo(function () {
34940
35665
  return {
34941
35666
  organizationId: organizationId,
@@ -34946,10 +35671,10 @@ var Prices = observer(function (_ref) {
34946
35671
  }, [organizationId, packageId, selectedSerie, pricelist]);
34947
35672
  var apiInterface = useMemo(function () {
34948
35673
  return {
34949
- read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices',
34950
- update: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices/${_id}'
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}'
34951
35676
  };
34952
- }, []);
35677
+ }, [onlyManual]);
34953
35678
  var priceFeatureGroups = usePriceFeatureGroupsFromSerie(selectedSerie);
34954
35679
  var configuration = useMemo(function () {
34955
35680
  var _priceFeatureGroups$m;
@@ -35047,16 +35772,57 @@ var Prices = observer(function (_ref) {
35047
35772
  sortable: false,
35048
35773
  editable: false
35049
35774
  }].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups === null || priceFeatureGroups === void 0 ? void 0 : priceFeatureGroups.map(function (priceFeatureGroup) {
35050
- var _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
35775
+ var _pricelist$pfgPricefa, _pricelist$pfgPricefa2, _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
35051
35776
  return {
35052
35777
  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
+ },
35053
35819
  marryChildren: true,
35054
- children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceFeatureGroupItem, j) {
35055
- var _priceFeatureGroup$ke3, _pricelist$pgPricefac;
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;
35056
35822
  return {
35057
- headerName: priceFeatureGroupItem,
35058
- field: "prices.".concat(priceFeatureGroupItem),
35059
- editable: true,
35823
+ headerName: priceGroup,
35824
+ field: "prices.".concat(priceGroup),
35825
+ editable: !viewOnly,
35060
35826
  filter: false,
35061
35827
  sortable: false,
35062
35828
  isDictionary: true,
@@ -35065,31 +35831,49 @@ var Prices = observer(function (_ref) {
35065
35831
  cellRenderer: PriceDisplayCellRenderer,
35066
35832
  cellRendererParams: {
35067
35833
  commas: pricelist.commas,
35068
- item: priceFeatureGroupItem
35834
+ item: priceGroup
35069
35835
  },
35070
- additionalFields: ["origPrices.".concat(priceFeatureGroupItem)],
35836
+ additionalFields: ["origPrices.".concat(priceGroup)],
35071
35837
  headerClass: inputHeader,
35072
35838
  headerComponentParams: {
35073
- additionalElement: /*#__PURE__*/jsx(PriceFactorInput, {
35839
+ additionalElement: /*#__PURE__*/jsx(PriceFactorHeaderComponent, {
35074
35840
  onSave: (/*#__PURE__*/function () {
35075
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, value) {
35076
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
35077
- while (1) switch (_context3.prev = _context3.next) {
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) {
35844
+ case 0:
35845
+ updatePgPriceFactor(priceGroup, value);
35846
+ case 1:
35847
+ case "end":
35848
+ return _context5.stop();
35849
+ }
35850
+ }, _callee5);
35851
+ }));
35852
+ return function (_x8, _x9) {
35853
+ return _ref6.apply(this, arguments);
35854
+ };
35855
+ }()),
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) {
35078
35861
  case 0:
35079
- updatePgPriceFactor(priceFeatureGroupItem, value);
35862
+ updatePgPriority(priceGroup, value);
35080
35863
  case 1:
35081
35864
  case "end":
35082
- return _context3.stop();
35865
+ return _context6.stop();
35083
35866
  }
35084
- }, _callee3);
35867
+ }, _callee6);
35085
35868
  }));
35086
- return function (_x5, _x6) {
35087
- return _ref4.apply(this, arguments);
35869
+ return function (_x10) {
35870
+ return _ref7.apply(this, arguments);
35088
35871
  };
35089
35872
  }()),
35090
- 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],
35091
- className: factorInput,
35092
- tooltip: t('backoffice.idmCatalog.prices.priceFactor.label.pfg')
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'
35093
35877
  })
35094
35878
  }
35095
35879
  };
@@ -35140,7 +35924,7 @@ var Prices = observer(function (_ref) {
35140
35924
  cellDataType: 'objectId'
35141
35925
  }])
35142
35926
  };
35143
- }, [apiInterface, selectedSerie, pricelist, priceFeatureGroups]);
35927
+ }, [apiInterface, selectedSerie, pricelist, priceFeatureGroups, viewOnly]);
35144
35928
  return /*#__PURE__*/jsxs(Fragment, {
35145
35929
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35146
35930
  title: /*#__PURE__*/jsx("div", {
@@ -35148,26 +35932,55 @@ var Prices = observer(function (_ref) {
35148
35932
  style: {
35149
35933
  "float": 'right'
35150
35934
  },
35151
- children: [/*#__PURE__*/jsx(PriceFactorInput, {
35152
- value: (_pricelist$seriePrice = pricelist.seriePricefactors) === null || _pricelist$seriePrice === void 0 ? void 0 : _pricelist$seriePrice[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo],
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, {
35153
35962
  title: t('backoffice.idmCatalog.prices.priceFactor.label.series'),
35154
- onSave: (/*#__PURE__*/function () {
35155
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_, value) {
35156
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
35157
- while (1) switch (_context4.prev = _context4.next) {
35158
- case 0:
35159
- updateSeriePriceFactor(value);
35160
- case 1:
35161
- case "end":
35162
- return _context4.stop();
35163
- }
35164
- }, _callee4);
35165
- }));
35166
- return function (_x7, _x8) {
35167
- return _ref5.apply(this, arguments);
35168
- };
35169
- }()),
35170
- disabled: !selectedSerie
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
+ })
35171
35984
  }), /*#__PURE__*/jsx(SeriesSelector$3, {
35172
35985
  modules: ['pricelists'],
35173
35986
  dataSet: "lookup"
@@ -35175,6 +35988,7 @@ var Prices = observer(function (_ref) {
35175
35988
  })
35176
35989
  })
35177
35990
  }), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
35991
+ ref: spreadsheetRef,
35178
35992
  gridId: 'crud-grid_enricherprices',
35179
35993
  applicationData: applicationData,
35180
35994
  configuration: configuration
@@ -35192,7 +36006,8 @@ var TablePriceList = observer(function () {
35192
36006
  packageId = _useModule.packageId,
35193
36007
  organizationId = _useModule.organizationId,
35194
36008
  apiConfig = _useModule.apiConfig,
35195
- selectedPackage = _useModule.selectedPackage;
36009
+ selectedPackage = _useModule.selectedPackage,
36010
+ viewOnly = _useModule.viewOnly;
35196
36011
  var _React$useState = React.useState(),
35197
36012
  _React$useState2 = _slicedToArray(_React$useState, 2),
35198
36013
  selectedPriceList = _React$useState2[0],
@@ -35220,7 +36035,8 @@ var TablePriceList = observer(function () {
35220
36035
  packageId: packageId,
35221
36036
  apiConfig: apiConfig,
35222
36037
  pricelist: selectedPriceList,
35223
- setNodeDataValue: setNodeDataValue
36038
+ setNodeDataValue: setNodeDataValue,
36039
+ viewOnly: viewOnly
35224
36040
  },
35225
36041
  startWidth: 300,
35226
36042
  defaultPinned: false,
@@ -35244,10 +36060,10 @@ var TablePriceList = observer(function () {
35244
36060
  var apiInterface = useMemo(function () {
35245
36061
  return {
35246
36062
  read: apiConfig.enricherService + '/packages/${packageId}/pricelists',
35247
- create: apiConfig.enricherService + '/packages/${packageId}/pricelists',
35248
- restore: apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
35249
- "delete": apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
35250
- update: apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}'
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}'
35251
36067
  };
35252
36068
  }, []);
35253
36069
  var hooks = useMemo(function () {
@@ -35292,11 +36108,11 @@ var TablePriceList = observer(function () {
35292
36108
  colDef: [{
35293
36109
  headerName: 'backoffice.idmEnricher.pricelists.label.name',
35294
36110
  field: 'name',
35295
- editable: true
36111
+ editable: !viewOnly
35296
36112
  }, {
35297
36113
  headerName: 'backoffice.idmEnricher.pricelists.label.basedPricelistId',
35298
36114
  field: 'basedPricelistId',
35299
- editable: true,
36115
+ editable: !viewOnly,
35300
36116
  cellDataType: 'lookup',
35301
36117
  customParams: {
35302
36118
  filterCellType: 'id',
@@ -35326,7 +36142,7 @@ var TablePriceList = observer(function () {
35326
36142
  }, {
35327
36143
  headerName: 'backoffice.idmEnricher.pricelists.label.rounding',
35328
36144
  field: 'rounding',
35329
- editable: true,
36145
+ editable: !viewOnly,
35330
36146
  cellDataType: 'enum',
35331
36147
  customParams: {
35332
36148
  enumData: roundingOptions,
@@ -35335,25 +36151,25 @@ var TablePriceList = observer(function () {
35335
36151
  }, {
35336
36152
  headerName: 'backoffice.idmEnricher.pricelists.label.commas',
35337
36153
  field: 'commas',
35338
- editable: true,
36154
+ editable: !viewOnly,
35339
36155
  cellDataType: 'number'
35340
36156
  }, {
35341
36157
  headerName: 'backoffice.idmEnricher.pricelists.label.currency',
35342
36158
  field: 'currency',
35343
36159
  cellDataType: 'enum',
35344
- editable: true,
36160
+ editable: !viewOnly,
35345
36161
  customParams: {
35346
36162
  enumData: getCurrencyKey(t)
35347
36163
  }
35348
36164
  }, {
35349
36165
  headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
35350
36166
  field: 'forPublishing',
35351
- editable: true,
36167
+ editable: !viewOnly,
35352
36168
  cellDataType: 'boolean'
35353
36169
  }, {
35354
36170
  headerName: 'backoffice.idmEnricher.pricelists.label.validFrom',
35355
36171
  field: 'validFrom',
35356
- editable: true,
36172
+ editable: !viewOnly,
35357
36173
  cellDataType: 'dateString',
35358
36174
  customParams: {
35359
36175
  dateFormat: 'DD.MM.YYYY'
@@ -35361,7 +36177,7 @@ var TablePriceList = observer(function () {
35361
36177
  }, {
35362
36178
  headerName: 'backoffice.idmEnricher.pricelists.label.validTo',
35363
36179
  field: 'validTo',
35364
- editable: true,
36180
+ editable: !viewOnly,
35365
36181
  cellDataType: 'dateString',
35366
36182
  customParams: {
35367
36183
  dateFormat: 'DD.MM.YYYY'
@@ -35419,9 +36235,24 @@ var TablePriceList = observer(function () {
35419
36235
  cellDataType: 'object',
35420
36236
  editable: false,
35421
36237
  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
35422
36253
  }]
35423
36254
  };
35424
- }, [apiInterface, i18n.language]);
36255
+ }, [apiInterface, i18n.language, viewOnly]);
35425
36256
  return /*#__PURE__*/jsxs(Fragment, {
35426
36257
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35427
36258
  title: /*#__PURE__*/jsxs("div", {
@@ -35910,24 +36741,34 @@ var useCatalogContext = function useCatalogContext() {
35910
36741
  root.contextStore.clearContext('catalog');
35911
36742
  }
35912
36743
 
35913
- // Only update if catalog changed
35914
- // 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
36744
+ // initally only the id is set so we need to update it again if we get the full catalog form the selector
35915
36745
  var currentCatalog = getContext().selectedCatalog;
35916
- if (currentCatalog._id === newCatalog._id && currentCatalog.name === newCatalog.name && JSON.stringify(currentCatalog.isoLanguageIds) === JSON.stringify(newCatalog.isoLanguageIds)) {
35917
- return; // No changes detected
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;
35918
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;
36759
+ }
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
+ });
35919
36771
 
35920
- // Update any field catalog changed
35921
- root.contextStore.updateContext('catalog', {
35922
- selectedCatalog: newCatalog,
35923
- catalogId: newCatalog._id,
35924
- selectedSerie: undefined,
35925
- selectedItem: undefined,
35926
- selectedFeature: undefined,
35927
- seriesSelectorState: createDefaultSelectState('seriesSelectorState'),
35928
- featureSelectorState: createDefaultSelectState('featureSelectorState')
35929
- });
35930
- if (currentCatalog._id !== newCatalog._id) {
35931
36772
  // Update URL only if the id changed
35932
36773
  navigate(path + newCatalog._id + (modules.length ? '/' + modules.join('/') : '') + (searchParams ? '?' + searchParams.toString() : ''));
35933
36774
  }
@@ -36756,27 +37597,22 @@ var CatalogSelector$1 = observer(CatalogSelector);
36756
37597
  var SeriesSelector = function SeriesSelector(_ref) {
36757
37598
  var modules = _ref.modules;
36758
37599
  var _useTranslation = useTranslation(),
36759
- t = _useTranslation.t,
36760
- i18n = _useTranslation.i18n;
36761
- var _useCatalogContext = useCatalogContext(modules),
36762
- catalogId = _useCatalogContext.catalogId,
36763
- idmService = _useCatalogContext.idmService,
36764
- selectedSerie = _useCatalogContext.selectedSerie,
36765
- setSelectedSerie = _useCatalogContext.setSelectedSerie,
36766
- seriesSelectorState = _useCatalogContext.seriesSelectorState;
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;
36767
37608
  return /*#__PURE__*/jsx(SimpleSelect, {
36768
37609
  sharedState: seriesSelectorState,
36769
- apiInterface: {
36770
- read: idmService + '/v3.0/catalogs/' + catalogId + "/series?fields=seriesName[".concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts")
36771
- },
36772
- selectMapping: {
36773
- label: "${seriesName.".concat(i18n.language.toLocaleUpperCase(), "}"),
36774
- value: '${_id}'
36775
- },
37610
+ apiInterface: apiInterface,
37611
+ selectMapping: selectMapping,
36776
37612
  autoSelectFirst: true,
36777
37613
  title: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries'),
36778
37614
  value: selectedSerie,
36779
- onChange: setSelectedSerie,
37615
+ onChange: onChange,
36780
37616
  search: true,
36781
37617
  style: {
36782
37618
  width: 200
@@ -36785,6 +37621,95 @@ var SeriesSelector = function SeriesSelector(_ref) {
36785
37621
  }, catalogId);
36786
37622
  };
36787
37623
  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
+ };
36788
37713
 
36789
37714
  function useModule (currentModules) {
36790
37715
  var root = useStore();
@@ -37234,18 +38159,19 @@ var TableItems = observer(function () {
37234
38159
  apiConfig = _useModule.apiConfig,
37235
38160
  organizationId = _useModule.organizationId;
37236
38161
  useTools({
37237
- catalogId: catalogId,
37238
- serie: selectedSerie,
37239
- setSerie: setSelectedSerie,
37240
- setArticle: setSelectedItem,
37241
- item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
37242
- });
38162
+ catalogId: catalogId,
38163
+ serie: selectedSerie,
38164
+ setSerie: setSelectedSerie,
38165
+ setArticle: setSelectedItem,
38166
+ item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
38167
+ });
37243
38168
  var hooks = useMemo(function () {
37244
38169
  return {
37245
38170
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37246
38171
  // Check if all selections are from the same node
37247
38172
  if (event.selection.length == 1) {
37248
- setSelectedItem(event.selection[0].node.data);
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);
37249
38175
  }
37250
38176
  }
37251
38177
  };
@@ -37278,9 +38204,9 @@ var TableSeries = observer(function () {
37278
38204
  var _useTranslation = useTranslation(),
37279
38205
  t = _useTranslation.t;
37280
38206
  var _useModule = useModule(['series']),
37281
- setGlobalSelectedSerie = _useModule.setSelectedSerie,
37282
38207
  selectedCatalog = _useModule.selectedCatalog,
37283
38208
  selectedGlobalSerie = _useModule.selectedSerie,
38209
+ setGlobalSelectedSerie = _useModule.setSelectedSerie,
37284
38210
  catalogId = _useModule.catalogId,
37285
38211
  organizationId = _useModule.organizationId,
37286
38212
  apiConfig = _useModule.apiConfig;
@@ -37324,8 +38250,9 @@ var TableSeries = observer(function () {
37324
38250
  return {
37325
38251
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37326
38252
  if (event.selection.length == 1) {
37327
- setGlobalSelectedSerie(event.selection[0].node.data);
37328
- setSelectedSerie(event.selection[0].node.data);
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);
37329
38256
  } else {
37330
38257
  setSelectedSerie(null);
37331
38258
  }
@@ -37661,8 +38588,9 @@ var TableFeatures = observer(function () {
37661
38588
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37662
38589
  // Check if all selections are from the same node
37663
38590
  if (event.selection.length == 1) {
38591
+ var _event$selection$;
37664
38592
  updateConfigurator({
37665
- opt: event.selection[0].node.data.featureNo
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
37666
38594
  });
37667
38595
  }
37668
38596
  }
@@ -37869,8 +38797,9 @@ var TableOptions = observer(function () {
37869
38797
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37870
38798
  // Check if all selections are from the same node
37871
38799
  if (event.selection.length == 1) {
38800
+ var _event$selection$;
37872
38801
  updateConfigurator({
37873
- opv: event.selection[0].node.data.optionKey
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
37874
38803
  });
37875
38804
  }
37876
38805
  }
@@ -41502,7 +42431,7 @@ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
41502
42431
  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; }
41503
42432
  var ArticleSelection = function ArticleSelection(_ref) {
41504
42433
  var _ref$state = _ref.state,
41505
- articleList = _ref$state.articleList,
42434
+ itemList = _ref$state.itemList,
41506
42435
  articleCodex = _ref$state.articleCodex,
41507
42436
  setArticleCodex = _ref$state.setArticleCodex,
41508
42437
  setDoReset = _ref$state.setDoReset,
@@ -41514,7 +42443,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
41514
42443
  var groups = [];
41515
42444
  var _loop = function _loop() {
41516
42445
  var _mask$articles;
41517
- var article = articleList[i];
42446
+ var article = itemList[i];
41518
42447
  if (mask !== null && mask !== void 0 && (_mask$articles = mask.articles) !== null && _mask$articles !== void 0 && _mask$articles[article.value].hidden) return 1; // continue
41519
42448
  if (!article.groupName) article.groupName = 'NONE';
41520
42449
  var group = groups.find(function (g) {
@@ -41530,7 +42459,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
41530
42459
  });
41531
42460
  }
41532
42461
  };
41533
- for (var i = 0; i < articleList.length; i++) {
42462
+ for (var i = 0; i < itemList.length; i++) {
41534
42463
  if (_loop()) continue;
41535
42464
  }
41536
42465
  return groups.map(function (g) {
@@ -41538,7 +42467,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
41538
42467
  label: t('configuration.group.' + g.label, g.label)
41539
42468
  });
41540
42469
  });
41541
- }, [articleList]);
42470
+ }, [itemList]);
41542
42471
  return /*#__PURE__*/jsxs("div", {
41543
42472
  className: wrapper$1,
41544
42473
  children: [/*#__PURE__*/jsx(Select$1, {
@@ -41585,26 +42514,30 @@ function useWysiwyg$1(_ref) {
41585
42514
  setArticleCodex = _useState6[1];
41586
42515
  var _useState7 = useState([]),
41587
42516
  _useState8 = _slicedToArray(_useState7, 2),
41588
- articleList = _useState8[0],
41589
- setArticleList = _useState8[1];
42517
+ itemList = _useState8[0],
42518
+ setItemList = _useState8[1];
41590
42519
  var _useState9 = useState({
41591
42520
  catalogCodex: (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.catalogCodex
41592
42521
  }),
41593
42522
  _useState10 = _slicedToArray(_useState9, 2),
41594
- catalog = _useState10[0],
41595
- setCatalog = _useState10[1];
42523
+ serie = _useState10[0],
42524
+ setSerie = _useState10[1];
41596
42525
  var _useState11 = useState([]),
41597
42526
  _useState12 = _slicedToArray(_useState11, 2),
41598
- catalogList = _useState12[0],
41599
- setCatalogList = _useState12[1];
41600
- var _useState13 = useState(),
42527
+ serieList = _useState12[0],
42528
+ setSerieList = _useState12[1];
42529
+ var _useState13 = useState(tool.parameters.catalogId),
41601
42530
  _useState14 = _slicedToArray(_useState13, 2),
41602
- currentNav = _useState14[0],
41603
- setCurrentNav = _useState14[1];
42531
+ catalogId = _useState14[0],
42532
+ setCatalogId = _useState14[1];
41604
42533
  var _useState15 = useState(),
41605
42534
  _useState16 = _slicedToArray(_useState15, 2),
41606
- doNavigate = _useState16[0],
41607
- setDoNavigate = _useState16[1];
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];
41608
42541
  useEffect(function () {
41609
42542
  if (!toolbar.hidden) setDoReset(true);
41610
42543
  }, [toolbar.hidden]);
@@ -41667,7 +42600,8 @@ function useWysiwyg$1(_ref) {
41667
42600
  });
41668
42601
  case 3:
41669
42602
  d = _context2.sent;
41670
- _context2.next = 6;
42603
+ setCatalogId(d._id);
42604
+ _context2.next = 7;
41671
42605
  return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs/' + d._id + '/series', {
41672
42606
  method: 'GET',
41673
42607
  headers: _objectSpread$4({}, jwt ? {
@@ -41682,10 +42616,10 @@ function useWysiwyg$1(_ref) {
41682
42616
  return undefined;
41683
42617
  }
41684
42618
  });
41685
- case 6:
42619
+ case 7:
41686
42620
  s = _context2.sent;
41687
- setCatalogList(s.data);
41688
- case 8:
42621
+ setSerieList(s.data);
42622
+ case 9:
41689
42623
  case "end":
41690
42624
  return _context2.stop();
41691
42625
  }
@@ -41719,7 +42653,7 @@ function useWysiwyg$1(_ref) {
41719
42653
  });
41720
42654
  case 3:
41721
42655
  l = _context3.sent;
41722
- setCatalogList(l.data);
42656
+ setSerieList(l.data);
41723
42657
  case 5:
41724
42658
  case "end":
41725
42659
  return _context3.stop();
@@ -41734,7 +42668,7 @@ function useWysiwyg$1(_ref) {
41734
42668
  if (doReset) {
41735
42669
  var _tool$elementProps, _tool$elementProps3;
41736
42670
  if (currentNav) setDoNavigate(currentNav);
41737
- if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !catalogList.length) {
42671
+ if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !serieList.length) {
41738
42672
  var _tool$elementProps2;
41739
42673
  if ((_tool$elementProps2 = tool.elementProps) !== null && _tool$elementProps2 !== void 0 && _tool$elementProps2.loadPackage) {
41740
42674
  loadPackage(tool.parameters.packageId);
@@ -41753,20 +42687,20 @@ function useWysiwyg$1(_ref) {
41753
42687
  }, [doReset]);
41754
42688
  useEffect(function () {
41755
42689
  setArticleCodex(undefined);
41756
- if (catalog !== null && catalog !== void 0 && catalog.catalogCodex) {
42690
+ if (serie !== null && serie !== void 0 && serie.catalogCodex) {
41757
42691
  var _tool$parameters$pack;
41758
42692
  setMask({
41759
- catalogCodex: catalog.catalogCodex,
42693
+ catalogCodex: serie.catalogCodex,
41760
42694
  accountId: (_tool$parameters$pack = tool.parameters.packageId) !== null && _tool$parameters$pack !== void 0 ? _tool$parameters$pack : tool.parameters.catalogId
41761
42695
  });
41762
42696
  }
41763
- }, [catalog]);
42697
+ }, [serie]);
41764
42698
  useEffect(function () {
41765
42699
  setDoReset(true);
41766
42700
  setArticleCodex(undefined);
41767
- setCatalog(undefined);
41768
- setArticleList([]);
41769
- setCatalogList([]);
42701
+ setSerie(undefined);
42702
+ setItemList([]);
42703
+ setSerieList([]);
41770
42704
  }, [tool.parameters.catalogId, tool.parameters.packageId]);
41771
42705
  var onEventCalled = /*#__PURE__*/function () {
41772
42706
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
@@ -41785,7 +42719,7 @@ function useWysiwyg$1(_ref) {
41785
42719
  groupName: article.groupName
41786
42720
  });
41787
42721
  }
41788
- setArticleList(articles);
42722
+ setItemList(articles);
41789
42723
  if (articleCodex === undefined && articles !== null && articles !== void 0 && (_articles$ = articles[0]) !== null && _articles$ !== void 0 && _articles$.value) setArticleCodex(articles[0].value);
41790
42724
  }
41791
42725
  if (e.type === 'navigatedToOption') {
@@ -41892,20 +42826,21 @@ function useWysiwyg$1(_ref) {
41892
42826
  };
41893
42827
  }, []);
41894
42828
  return {
41895
- articleList: articleList,
41896
- setArticleList: setArticleList,
42829
+ itemList: itemList,
42830
+ setItemList: setItemList,
41897
42831
  articleCodex: articleCodex,
41898
42832
  setArticleCodex: setArticleCodex,
41899
- catalogList: catalogList,
41900
- setCatalogList: setCatalogList,
41901
- catalog: catalog,
41902
- setCatalog: setCatalog,
42833
+ serieList: serieList,
42834
+ setSerieList: setSerieList,
42835
+ serie: serie,
42836
+ setSerie: setSerie,
41903
42837
  settings: settings,
41904
42838
  mask: mask,
41905
42839
  doReset: doReset,
41906
42840
  setDoReset: setDoReset,
41907
42841
  doNavigate: doNavigate,
41908
- setDoNavigate: setDoNavigate
42842
+ setDoNavigate: setDoNavigate,
42843
+ catalogId: catalogId
41909
42844
  };
41910
42845
  }
41911
42846
 
@@ -41957,27 +42892,27 @@ styleInject(css_248z$2);
41957
42892
 
41958
42893
  var CatalogSelection = function CatalogSelection(_ref) {
41959
42894
  var _ref$state = _ref.state,
41960
- catalogList = _ref$state.catalogList,
41961
- catalog = _ref$state.catalog,
41962
- setCatalog = _ref$state.setCatalog,
42895
+ serieList = _ref$state.serieList,
42896
+ serie = _ref$state.serie,
42897
+ setSerie = _ref$state.setSerie,
41963
42898
  setArticleCodex = _ref$state.setArticleCodex,
41964
- setSerie = _ref.setSerie;
42899
+ setSerieProp = _ref.setSerie;
41965
42900
  var _useTranslation = useTranslation(),
41966
42901
  t = _useTranslation.t,
41967
42902
  language = _useTranslation.i18n.language;
41968
42903
  var options = useMemo(function () {
41969
42904
  var groups = [];
41970
- for (var i = 0; i < catalogList.length; i++) {
41971
- var c = catalogList[i];
42905
+ for (var i = 0; i < serieList.length; i++) {
42906
+ var c = serieList[i];
41972
42907
  groups.push({
41973
42908
  value: c.serieNo.toString(),
41974
42909
  label: c.seriesName[language.toUpperCase()]
41975
42910
  });
41976
42911
  }
41977
42912
  return groups;
41978
- }, [catalogList]);
42913
+ }, [serieList]);
41979
42914
  var onChange = function onChange(val) {
41980
- var cat = catalogList.find(function (c) {
42915
+ var cat = serieList.find(function (c) {
41981
42916
  return c.serieNo.toString() == val;
41982
42917
  });
41983
42918
  var catalog = cat ? {
@@ -41985,15 +42920,15 @@ var CatalogSelection = function CatalogSelection(_ref) {
41985
42920
  serieId: cat._id,
41986
42921
  accountId: cat.catalogId
41987
42922
  } : undefined;
41988
- setCatalog(catalog);
42923
+ setSerie(catalog);
41989
42924
  setArticleCodex(undefined);
41990
- setSerie === null || setSerie === void 0 || setSerie(cat);
42925
+ setSerieProp === null || setSerieProp === void 0 || setSerieProp(cat);
41991
42926
  };
41992
42927
  return /*#__PURE__*/jsx("div", {
41993
42928
  className: wrapper,
41994
42929
  children: /*#__PURE__*/jsx(Select$1, {
41995
42930
  placeholder: t('backoffice.configurator.serie.placeholder'),
41996
- value: catalog === null || catalog === void 0 ? void 0 : catalog.catalogCodex,
42931
+ value: serie === null || serie === void 0 ? void 0 : serie.catalogCodex,
41997
42932
  options: options,
41998
42933
  onChange: onChange,
41999
42934
  className: select
@@ -42005,7 +42940,7 @@ var CatalogSelection$1 = observer(CatalogSelection);
42005
42940
  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; }
42006
42941
  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; }
42007
42942
  var Wsyiwyg = function Wsyiwyg(_ref) {
42008
- var _state$catalog, _tool$parameters, _state$articleCodex, _state$catalog$catalo, _state$catalog2, _state$mask2, _state$catalog3, _state$catalog$accoun, _state$catalog4, _state$mask3;
42943
+ var _state$serie, _tool$parameters, _state$articleCodex, _state$serie$catalogC, _state$serie2, _state$mask2, _state$serie3, _state$serie$accountI, _state$serie4, _state$mask3;
42009
42944
  var tool = _ref.tool,
42010
42945
  toolbar = _ref.toolbar;
42011
42946
  var _useDivaCore = useDivaCore(),
@@ -42024,17 +42959,32 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
42024
42959
  }, [tool.parameters]);
42025
42960
  useEffect(function () {
42026
42961
  if (tool.elementProps.initSerie) {
42027
- state.setCatalog({
42028
- serieId: tool.elementProps.initSerie.serieId,
42029
- catalogCodex: tool.elementProps.initSerie.serieNo.toString()
42030
- });
42031
- state.setArticleCodex(undefined);
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
+ }
42032
42982
  }
42033
42983
  if (tool.elementProps.initItem) {
42034
42984
  state.setArticleCodex(tool.elementProps.initItem);
42035
42985
  }
42036
- }, [tool.elementProps.initItem, tool.elementProps.initSerie]);
42037
- if (!((_state$catalog = state.catalog) !== null && _state$catalog !== void 0 && _state$catalog.catalogCodex)) {
42986
+ }, [tool.elementProps.initItem, tool.elementProps.initSerie, state.serieList]);
42987
+ if (!((_state$serie = state.serie) !== null && _state$serie !== void 0 && _state$serie.catalogCodex)) {
42038
42988
  if (tool.elementProps.showCatalogSelection) {
42039
42989
  return /*#__PURE__*/jsx(CatalogSelection$1, {
42040
42990
  state: state,
@@ -42072,11 +43022,11 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
42072
43022
  resetArticle: '',
42073
43023
  disableToggle: '1',
42074
43024
  startDivaNr: 'DIVA-000000',
42075
- 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
42076
- }, (_state$catalog3 = state.catalog) !== null && _state$catalog3 !== void 0 && _state$catalog3.serieId ? {
42077
- serieId: state.catalog.serieId
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
42078
43028
  } : {}), {}, {
42079
- 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,
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,
42080
43030
  returnTo: 'DONT_SAVE_BASKET',
42081
43031
  organizationId: organizationId,
42082
43032
  no3DConnection: 'true'