@crystaldesign/diva-backoffice 25.8.0-beta.8 → 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 -491
  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,6 +7913,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7890
7913
  }, {
7891
7914
  name: 'homepage',
7892
7915
  label: t('backoffice.form.organizationdetails.items.homepage'),
7916
+ tabgroup: t('backoffice.subtitle.generally'),
7893
7917
  type: 'input',
7894
7918
  hidden: function hidden(data) {
7895
7919
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7900,6 +7924,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7900
7924
  catalogCodex: ['defaultCatalog', 'catalogCodex'],
7901
7925
  label: t('backoffice.form.organizationdetails.items.selectClientRelationCatalog'),
7902
7926
  type: 'selectClientRelationCatalog',
7927
+ tabgroup: t('backoffice.subtitle.generally'),
7903
7928
  apiInterface: {
7904
7929
  read: '${authService}/v2/organizations/${organizationId}'
7905
7930
  },
@@ -7908,15 +7933,18 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7908
7933
  }
7909
7934
  }, {
7910
7935
  name: ['defaultCatalog', 'accountId'],
7911
- hidden: true
7936
+ hidden: true,
7937
+ tabgroup: t('backoffice.subtitle.generally')
7912
7938
  },
7913
7939
  // these fields are needed otherwise they dont get saved
7914
7940
  {
7915
7941
  name: ['defaultCatalog', 'catalogCodex'],
7916
- hidden: true
7942
+ hidden: true,
7943
+ tabgroup: t('backoffice.subtitle.generally')
7917
7944
  }, {
7918
7945
  name: ['settings', 'sendOrders'],
7919
7946
  label: t('backoffice.form.organizationdetails.items.settings.sendOrders'),
7947
+ tabgroup: t('backoffice.subtitle.generally'),
7920
7948
  type: 'radio',
7921
7949
  optionType: 'button',
7922
7950
  options: [{
@@ -7933,11 +7961,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7933
7961
  }, {
7934
7962
  name: ['settings', 'sendOrdersEmail'],
7935
7963
  label: t('backoffice.form.organizationdetails.items.settings.sendOrdersEmail'),
7964
+ tabgroup: t('backoffice.subtitle.generally'),
7936
7965
  type: 'input',
7937
7966
  permission: 'backoffice_admin_organizations'
7938
7967
  }, {
7939
7968
  name: 'iwofurn',
7940
7969
  label: t('backoffice.form.organizationdetails.items.iwofurn'),
7970
+ tabgroup: t('backoffice.subtitle.generally'),
7941
7971
  type: 'checkbox',
7942
7972
  hidden: function hidden(data) {
7943
7973
  return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
@@ -7955,6 +7985,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7955
7985
  }
7956
7986
  }, {
7957
7987
  name: t('backoffice.subtitle.iwofurn'),
7988
+ tabgroup: t('backoffice.subtitle.generally'),
7958
7989
  type: 'subTitle',
7959
7990
  orientation: 'left',
7960
7991
  style: {
@@ -7967,6 +7998,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7967
7998
  }, {
7968
7999
  name: ['iwoFurnOptions', 'iwofurnUsername'],
7969
8000
  label: t('backoffice.form.organizationdetails.items.iwoFurnOptions.iwofurnUsername'),
8001
+ tabgroup: t('backoffice.subtitle.generally'),
7970
8002
  type: 'input',
7971
8003
  syncDataWithUserInput: true,
7972
8004
  required: function required(data) {
@@ -7978,6 +8010,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7978
8010
  }, {
7979
8011
  name: ['iwoFurnOptions', 'pwdHash'],
7980
8012
  label: t('backoffice.form.organizationdetails.items.iwoFurnOptions.pwdHash'),
8013
+ tabgroup: t('backoffice.subtitle.generally'),
7981
8014
  type: 'password',
7982
8015
  syncDataWithUserInput: true,
7983
8016
  required: function required(data) {
@@ -7989,6 +8022,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7989
8022
  }, {
7990
8023
  name: ['iwoFurnOptions', 'iwofurnSenderGLN'],
7991
8024
  label: t('backoffice.form.organizationdetails.items.iwofurnSenderGLN'),
8025
+ tabgroup: t('backoffice.subtitle.generally'),
7992
8026
  type: 'input',
7993
8027
  required: function required(data) {
7994
8028
  return data === null || data === void 0 ? void 0 : data.iwofurn;
@@ -7999,6 +8033,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7999
8033
  }, {
8000
8034
  name: ['iwoFurnOptions', 'iwofurnRecipientGLN'],
8001
8035
  label: t('backoffice.form.organizationdetails.items.iwofurnRecipientGLN'),
8036
+ tabgroup: t('backoffice.subtitle.generally'),
8002
8037
  type: 'input',
8003
8038
  required: function required(data) {
8004
8039
  return data === null || data === void 0 ? void 0 : data.iwofurn;
@@ -8009,6 +8044,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8009
8044
  }, {
8010
8045
  name: ['iwoFurnOptions', 'sendIWOBasketEKPriceType'],
8011
8046
  label: t('backoffice.form.organizationdetails.items.sendIWOBasketEKPriceType'),
8047
+ tabgroup: t('backoffice.subtitle.generally'),
8012
8048
  type: 'input',
8013
8049
  hidden: function hidden(data) {
8014
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';
@@ -8028,6 +8064,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8028
8064
  }
8029
8065
  }, {
8030
8066
  name: t('backoffice.form.organizationdetails.items.licenses'),
8067
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8031
8068
  type: 'subTitle',
8032
8069
  orientation: 'left',
8033
8070
  style: {
@@ -8037,6 +8074,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8037
8074
  }, {
8038
8075
  name: 'Info',
8039
8076
  type: 'text',
8077
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8040
8078
  style: {
8041
8079
  marginBottom: '30px'
8042
8080
  },
@@ -8045,6 +8083,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8045
8083
  }, {
8046
8084
  name: ['settings', 'enable3DExport'],
8047
8085
  label: t('backoffice.form.organizationdetails.items.settings.enable3DExport'),
8086
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8048
8087
  type: 'radio',
8049
8088
  optionType: 'button',
8050
8089
  options: [{
@@ -8062,6 +8101,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8062
8101
  name: ['settings', 'renderjobSeparateMaterials'],
8063
8102
  label: t('backoffice.form.organizationdetails.items.settings.renderjobSeparateMaterials'),
8064
8103
  permission: 'backoffice_admin_organizations',
8104
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8065
8105
  type: 'radio',
8066
8106
  optionType: 'button',
8067
8107
  options: [{
@@ -8078,6 +8118,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8078
8118
  name: ['settings', 'enableAR'],
8079
8119
  label: t('backoffice.form.organizationdetails.items.settings.enableAR'),
8080
8120
  permission: 'backoffice_admin_organizations',
8121
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8081
8122
  type: 'radio',
8082
8123
  optionType: 'button',
8083
8124
  options: [{
@@ -8094,6 +8135,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8094
8135
  name: ['settings', 'enableRTV'],
8095
8136
  label: t('backoffice.form.organizationdetails.items.settings.enableRTV'),
8096
8137
  permission: 'backoffice_admin_organizations',
8138
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8097
8139
  type: 'radio',
8098
8140
  optionType: 'button',
8099
8141
  options: [{
@@ -8111,6 +8153,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8111
8153
  label: t('backoffice.form.organizationdetails.items.settings.forceRTV'),
8112
8154
  permission: 'backoffice_admin_organizations',
8113
8155
  type: 'radio',
8156
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8114
8157
  optionType: 'button',
8115
8158
  options: [{
8116
8159
  label: t('backoffice.form.organizationdetails.items.vererbt'),
@@ -8125,6 +8168,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8125
8168
  }, {
8126
8169
  name: ['settings', 'enableVKMarketing'],
8127
8170
  label: t('backoffice.form.organizationdetails.items.settings.enableVKMarketing'),
8171
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8128
8172
  permission: 'backoffice_admin_organizations',
8129
8173
  type: 'radio',
8130
8174
  hidden: function hidden(data) {
@@ -8145,6 +8189,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8145
8189
  name: ['settings', 'pricePreview'],
8146
8190
  label: t('backoffice.form.organizationdetails.items.settings.pricePreview'),
8147
8191
  permission: 'backoffice_admin_organizations',
8192
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8148
8193
  type: 'radio',
8149
8194
  optionType: 'button',
8150
8195
  options: [{
@@ -8163,6 +8208,31 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8163
8208
  label: t('backoffice.form.organizationdetails.items.fromCurrentPriceHideCurrent'),
8164
8209
  value: 'fromCurrentPriceHideCurrent'
8165
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
+ }
8166
8236
  }, {
8167
8237
  name: t('backoffice.subtitle.advanced'),
8168
8238
  type: 'subTitle',
@@ -8554,6 +8624,131 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8554
8624
  label: t('backoffice.currentorg.items.shopType.store'),
8555
8625
  value: 'store'
8556
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: []
8557
8752
  }]
8558
8753
  },
8559
8754
  FromAffilateOrganizationDetails: {
@@ -9322,6 +9517,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9322
9517
  name: 'divaNr',
9323
9518
  label: t('backoffice.form.createorupdateviewpoints.items.divaNr'),
9324
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'
9325
9527
  }]
9326
9528
  },
9327
9529
  FormCreateOrUpdateRenderPackages: {
@@ -9410,6 +9612,9 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9410
9612
  label: t('Presets'),
9411
9613
  type: 'array',
9412
9614
  items: [{
9615
+ type: 'divider',
9616
+ name: ''
9617
+ }, {
9413
9618
  type: 'radio',
9414
9619
  name: 'job',
9415
9620
  label: t('Job'),
@@ -9460,6 +9665,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9460
9665
  }
9461
9666
  return hidden;
9462
9667
  }
9668
+ }, {
9669
+ name: 'functionType',
9670
+ label: 'FunctionType',
9671
+ type: 'select',
9672
+ required: true,
9673
+ values: functionTypeValues,
9674
+ mode: 'single'
9463
9675
  }, {
9464
9676
  name: 'preset',
9465
9677
  label: t('Preset'),
@@ -9667,7 +9879,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9667
9879
  op: 'gt',
9668
9880
  value: 3
9669
9881
  },
9670
- 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
9671
9883
  }, {
9672
9884
  name: 'priority',
9673
9885
  label: t('backoffice.form.renderjob.items.priority'),
@@ -9927,7 +10139,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9927
10139
  value: 3
9928
10140
  },
9929
10141
  allowClear: true,
9930
- 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
9931
10143
  }, {
9932
10144
  name: 'priority',
9933
10145
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10102,7 +10314,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10102
10314
  value: 3
10103
10315
  },
10104
10316
  allowClear: true,
10105
- 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
10106
10318
  }, {
10107
10319
  name: 'priority',
10108
10320
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10244,7 +10456,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10244
10456
  value: 3
10245
10457
  },
10246
10458
  allowClear: true,
10247
- 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
10248
10460
  }, {
10249
10461
  name: 'priority',
10250
10462
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10403,7 +10615,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10403
10615
  type: 'select',
10404
10616
  mode: 'single',
10405
10617
  allowClear: true,
10406
- 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
10407
10619
  }, {
10408
10620
  name: 'priority',
10409
10621
  label: t('backoffice.form.renderjob.items.priority'),
@@ -13266,6 +13478,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
13266
13478
  }
13267
13479
  };
13268
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'];
13269
13482
 
13270
13483
  function styleInject(css, ref) {
13271
13484
  if ( ref === void 0 ) ref = {};
@@ -13300,8 +13513,8 @@ var navMinified = "nav-minified-tSt-a";
13300
13513
  var navOverlay = "nav-overlay-rKJNC";
13301
13514
  var navSettings = "nav-settings-82cjv";
13302
13515
  var menuLabel = "menu-label-4dXQk";
13303
- 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";
13304
- 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);
13305
13518
 
13306
13519
  function MenuLabel (_ref) {
13307
13520
  var disabled = _ref.disabled,
@@ -17024,7 +17237,7 @@ var JsonEditor$2 = function JsonEditor(_ref) {
17024
17237
  });
17025
17238
  };
17026
17239
 
17027
- var _excluded$3 = ["key", "name"];
17240
+ var _excluded$4 = ["key", "name"];
17028
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; }
17029
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; }
17030
17243
  var FormList$2 = function FormList(_ref) {
@@ -17060,7 +17273,7 @@ var FormList$2 = function FormList(_ref) {
17060
17273
  children: [fields.map(function (_ref3) {
17061
17274
  var key = _ref3.key,
17062
17275
  name = _ref3.name,
17063
- restField = _objectWithoutProperties(_ref3, _excluded$3);
17276
+ restField = _objectWithoutProperties(_ref3, _excluded$4);
17064
17277
  return /*#__PURE__*/jsxs("div", {
17065
17278
  id: key.toString(),
17066
17279
  style: {
@@ -17256,8 +17469,8 @@ var Result = function Result(_ref) {
17256
17469
 
17257
17470
  var success = "success-tRJ7j";
17258
17471
  var error = "error-MtAFB";
17259
- 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";
17260
- 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);
17261
17474
 
17262
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";
17263
17476
 
@@ -17319,10 +17532,10 @@ var CustomButton = function CustomButton(_ref) {
17319
17532
  };
17320
17533
  var CustomButton$1 = observer(CustomButton);
17321
17534
 
17322
- var wrapper$7 = "wrapper-GVe2h";
17535
+ var wrapper$6 = "wrapper-GVe2h";
17323
17536
  var buttonGroup = "button-group-GYt-T";
17324
- 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";
17325
- 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);
17326
17539
 
17327
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; }
17328
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; }
@@ -17336,7 +17549,7 @@ var SubTitle = function SubTitle(_ref) {
17336
17549
  orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
17337
17550
  style: _objectSpread$T({}, item.style),
17338
17551
  children: /*#__PURE__*/jsxs("div", {
17339
- className: wrapper$7,
17552
+ className: wrapper$6,
17340
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) {
17341
17554
  return /*#__PURE__*/jsx("div", {
17342
17555
  className: buttonGroup,
@@ -17495,14 +17708,29 @@ function useSelectSimpleData (_ref) {
17495
17708
  });
17496
17709
  return selected.value;
17497
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
+ };
17498
17725
  useEffect(function () {
17499
17726
  if (configuredOptions) {
17500
17727
  if (apiHandler.canReadList) LOG$a.warn('If options are provided, apiInterface will not be used');
17501
- setOptions(configuredOptions);
17728
+ setLoadedOptions(configuredOptions);
17502
17729
  setLoading(false);
17503
17730
  return;
17504
17731
  }
17505
- if (options) {
17732
+ if (sharedState !== null && sharedState !== void 0 && sharedState.options) {
17733
+ setLoadedOptions(sharedState.options);
17506
17734
  setLoading(false);
17507
17735
  return;
17508
17736
  }
@@ -17514,25 +17742,11 @@ function useSelectSimpleData (_ref) {
17514
17742
  var options = data.data.map(function (item) {
17515
17743
  return parseDataEntry(item, selectMapping);
17516
17744
  });
17517
- setOptions(options);
17745
+ setLoadedOptions(options);
17518
17746
  })["finally"](function () {
17519
17747
  setLoading(false);
17520
17748
  });
17521
17749
  }, []);
17522
- useEffect(function () {
17523
- var _options$;
17524
- // set the selected option only after the options are loaded
17525
- if (value && options) {
17526
- LOG$a.debug('value changed', value);
17527
- var _selected = findByValue(value, options, selectMapping);
17528
- var selectedValues = Array.isArray(_selected) ? _selected.map(function (item) {
17529
- return item.value;
17530
- }) : _selected === null || _selected === void 0 ? void 0 : _selected.value;
17531
- onSelectionChanged(selectedValues, _selected);
17532
- } else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
17533
- onSelectionChanged(options[0].value, options[0]);
17534
- }
17535
- }, [value, options]);
17536
17750
  var onSelectionChanged = function onSelectionChanged(value, option) {
17537
17751
  setSelected(option);
17538
17752
  onChange === null || onChange === void 0 || onChange(parseReturnData(option, selectMapping));
@@ -17597,11 +17811,11 @@ function parseReturnData(options, selectMapping) {
17597
17811
  return (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? options.value : options.data;
17598
17812
  }
17599
17813
 
17600
- var wrapper$6 = "wrapper-4xyke";
17601
- 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";
17602
- 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);
17603
17817
 
17604
- 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"];
17605
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; }
17606
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; }
17607
17821
  var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
@@ -17615,7 +17829,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
17615
17829
  autoSelectFirst = _ref.autoSelectFirst,
17616
17830
  title = _ref.title,
17617
17831
  sharedState = _ref.sharedState,
17618
- selectProps = _objectWithoutProperties(_ref, _excluded$2);
17832
+ selectProps = _objectWithoutProperties(_ref, _excluded$3);
17619
17833
  var state = useSelectSimpleData({
17620
17834
  apiInterface: apiInterface,
17621
17835
  selectMapping: selectMapping,
@@ -17629,7 +17843,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
17629
17843
  });
17630
17844
  return /*#__PURE__*/jsxs("div", {
17631
17845
  ref: ref,
17632
- className: classnames(title ? wrapper$6 : undefined),
17846
+ className: classnames(title ? wrapper$5 : undefined),
17633
17847
  children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$S(_objectSpread$S({}, selectProps), {}, {
17634
17848
  showSearch: search,
17635
17849
  loading: state.loading,
@@ -18483,8 +18697,8 @@ var customSelect = "custom-select-ESUJX";
18483
18697
  var customSelectOption = "custom-select-option-dUA7N";
18484
18698
  var avatarWrapper = "avatar-wrapper-Vg-xe";
18485
18699
  var selectTextWrapper = "select-text-wrapper-hPSZW";
18486
- 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";
18487
- 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);
18488
18702
 
18489
18703
  var Selector = function Selector(_ref) {
18490
18704
  var items = _ref.items,
@@ -19028,8 +19242,8 @@ function useSelectData (_ref) {
19028
19242
  };
19029
19243
  }
19030
19244
 
19031
- var css_248z$s = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
19032
- 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);
19033
19247
 
19034
19248
  var SelectWrapper = function SelectWrapper(_ref) {
19035
19249
  var onChange = _ref.onChange,
@@ -19108,11 +19322,11 @@ var SelectWrapper = function SelectWrapper(_ref) {
19108
19322
  };
19109
19323
  var Select = observer(SelectWrapper);
19110
19324
 
19111
- var wrapper$5 = "wrapper-WStAk";
19325
+ var wrapper$4 = "wrapper-WStAk";
19112
19326
  var headerWrapper = "header-wrapper-gWQuH";
19113
19327
  var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
19114
- 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";
19115
- 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);
19116
19330
 
19117
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; }
19118
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; }
@@ -19316,7 +19530,7 @@ var Translation = function Translation(_ref) {
19316
19530
  _onChange = _useTranslationHook.onChange,
19317
19531
  autoTranslate = _useTranslationHook.autoTranslate;
19318
19532
  return /*#__PURE__*/jsxs("div", {
19319
- className: wrapper$5,
19533
+ className: wrapper$4,
19320
19534
  children: [/*#__PURE__*/jsxs("div", {
19321
19535
  className: headerWrapper,
19322
19536
  children: [/*#__PURE__*/jsx("div", {
@@ -19895,6 +20109,8 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
19895
20109
  item: item,
19896
20110
  data: state.data
19897
20111
  });
20112
+ case 'divider':
20113
+ return /*#__PURE__*/jsx(Divider, {});
19898
20114
  case 'apiKey':
19899
20115
  return /*#__PURE__*/jsx(ApiKey, {
19900
20116
  value: item.value,
@@ -20190,7 +20406,7 @@ function ModalProgressBar(_ref) {
20190
20406
 
20191
20407
  var LOG$7 = getLogger('Backoffice', 'Form');
20192
20408
  var FormWrapper$1 = function FormWrapper(_ref, ref) {
20193
- var _state$selectedItems2;
20409
+ var _state$configuration$2;
20194
20410
  var id = _ref.id,
20195
20411
  data = _ref.data,
20196
20412
  onChange = _ref.onChange,
@@ -20203,6 +20419,10 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20203
20419
  var _Form$useForm = Form$1.useForm(),
20204
20420
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
20205
20421
  form = _Form$useForm2[0];
20422
+ var _useState = useState('0'),
20423
+ _useState2 = _slicedToArray(_useState, 2),
20424
+ activeTabKey = _useState2[0],
20425
+ setActiveTabKey = _useState2[1];
20206
20426
  var _useTranslation = useTranslation(),
20207
20427
  t = _useTranslation.t;
20208
20428
  var root = useStore();
@@ -20319,6 +20539,29 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20319
20539
  onError === null || onError === void 0 || onError(errorText !== null && errorText !== void 0 ? errorText : 'Es konnte nicht gespeichert werden, versuchen Sie es später nochmal.');
20320
20540
  }
20321
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
+ };
20322
20565
  var onFinishFailed = function onFinishFailed(data) {
20323
20566
  if (data.errorFields.length) {
20324
20567
  onError === null || onError === void 0 || onError("Folgende Felder wurden nicht korrekt bef\xFCllt: ".concat(data.errorFields.map(function (f) {
@@ -20333,18 +20576,60 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20333
20576
  onErrorInternal('An unexpected error prevented finishing');
20334
20577
  }
20335
20578
  };
20336
- return /*#__PURE__*/jsxs(Fragment, {
20337
- children: [/*#__PURE__*/jsxs(Spin, {
20338
- spinning: state.loading,
20339
- children: [state.configuration.presetApiInterface && /*#__PURE__*/jsx(Presets, {
20340
- state: state,
20341
- apiHandler: state.presetApiHandler,
20342
- form: form,
20343
- root: state.root,
20344
- setUsedPreset: state.setUsedPreset,
20345
- presets: state.preset.presets,
20346
- setPresets: state.preset.setPresets
20347
- }), /*#__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, {
20348
20633
  autoComplete: "off",
20349
20634
  form: form,
20350
20635
  onFinish: onFinish,
@@ -20360,30 +20645,98 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20360
20645
  if (changedFields[0] === undefined) return;
20361
20646
  state.changedFields.current.push(changedFields[0]);
20362
20647
  },
20363
- children: [state.configuration.itemSelector && /*#__PURE__*/jsx(Form$1.Item, {
20648
+ children: [state.configuration.itemSelector && index === 0 && /*#__PURE__*/jsx(Form$1.Item, {
20364
20649
  name: state.configuration.itemSelector.name,
20365
20650
  rules: state.getRules(state.configuration.itemSelector, state.data),
20366
20651
  label: state.configuration.itemSelector.label ? t(state.configuration.itemSelector.label, state.configuration.itemSelector.label) : state.configuration.itemSelector.name,
20367
20652
  valuePropName: state.configuration.itemSelector.type == 'checkbox' ? 'checked' : 'value',
20368
20653
  children: getElement(state.configuration.itemSelector, setCanSave, state, state.configuration.itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
20369
- }, state.configuration.itemSelector.name.toString()), (_state$selectedItems2 = state.selectedItems) === null || _state$selectedItems2 === void 0 ? void 0 : _state$selectedItems2.map(function (item) {
20370
- var _state$hiddenRequired, _state$hiddenRequired2, _state$hiddenRequired3;
20371
- return /*#__PURE__*/jsxs("div", {
20372
- 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, {
20373
- name: item.name,
20374
- rules: state.getRules(item, state.data),
20375
- label: getLabel(item, t),
20376
- valuePropName: item.type == 'checkbox' ? 'checked' : 'value',
20377
- initialValue: item === null || item === void 0 ? void 0 : item.defaultValue,
20378
- hasFeedback: !!state.fieldErrors[item.name.toString()],
20379
- validateStatus: !!state.fieldErrors[item.name.toString()] ? 'error' : undefined,
20380
- help: state.fieldErrors[item.name.toString()],
20381
- hidden: (_state$hiddenRequired2 = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired2 === void 0 ? void 0 : _state$hiddenRequired2.hidden,
20382
- 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)
20383
- }, Array.isArray(item.name) ? item.name.join('.') : item.name)]
20384
- }, item.name.toString());
20385
- })]
20386
- }, 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
+ })]
20387
20740
  }), state.configuration.showProgressBar && /*#__PURE__*/jsx(ModalProgressBar, {
20388
20741
  isOpen: state.progressBarOpen,
20389
20742
  percent: state.progressBarPercentage
@@ -21158,8 +21511,8 @@ var skeleton = "skeleton--xCI0";
21158
21511
  var filterField = "filterField-1kU1O";
21159
21512
  var parentScroll = "parent-scroll-GmaL9";
21160
21513
  var parent = "parent-NZJ3S";
21161
- 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";
21162
- 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);
21163
21516
 
21164
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; }
21165
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; }
@@ -22404,8 +22757,8 @@ var newscroller = "newscroller-INKeD";
22404
22757
  var antCollapseHeader = "ant-collapse-header--6FgU";
22405
22758
  var itemTitle = "item-title--BTvC";
22406
22759
  var itemDesc = "item-desc-DBiiF";
22407
- 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";
22408
- 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);
22409
22762
 
22410
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; }
22411
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; }
@@ -23817,8 +24170,8 @@ var jsoneditor = "jsoneditor-WMs15";
23817
24170
  var preview = "preview-9wK81";
23818
24171
  var previewButton = "preview-button-vupuG";
23819
24172
  var editButton = "edit-button-m6r3M";
23820
- 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";
23821
- 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);
23822
24175
 
23823
24176
  var JsonEditor = function JsonEditor(_ref, ref) {
23824
24177
  var id = _ref.id,
@@ -24597,19 +24950,19 @@ function reducer(state, action) {
24597
24950
 
24598
24951
  var grid = "grid-sGemi";
24599
24952
  var textWrapper = "text-wrapper-xsPXE";
24600
- 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";
24601
- 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);
24602
24955
 
24603
- var wrapper$4 = "wrapper-p-gR3";
24956
+ var wrapper$3 = "wrapper-p-gR3";
24604
24957
  var container$6 = "container-DoZqe";
24605
- 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";
24606
- 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);
24607
24960
 
24608
24961
  var ToolTipInfo = function ToolTipInfo(props) {
24609
24962
  var _useTranslation = useTranslation(),
24610
24963
  t = _useTranslation.t;
24611
24964
  return /*#__PURE__*/jsx("div", {
24612
- className: wrapper$4,
24965
+ className: wrapper$3,
24613
24966
  children: /*#__PURE__*/jsx(Card, {
24614
24967
  title: t('backoffice.tooltipinfo.useroverview'),
24615
24968
  styles: {
@@ -24806,8 +25159,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
24806
25159
  var small = "small-NY1-k";
24807
25160
  var medium = "medium---QcO";
24808
25161
  var big = "big--E39S";
24809
- 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";
24810
- 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);
24811
25164
 
24812
25165
  var MediaUpload = observer(function (_ref) {
24813
25166
  var id = _ref.id;
@@ -24933,8 +25286,8 @@ var editableRow = "editable-row-9BEHi";
24933
25286
  var checkbox = "checkbox-H7R-w";
24934
25287
  var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
24935
25288
  var contentWidth = "content-width-hGyVI";
24936
- 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";
24937
- 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);
24938
25291
 
24939
25292
  function BooleanCell (_ref) {
24940
25293
  var children = _ref.children,
@@ -25615,7 +25968,7 @@ function LinkCell (_ref) {
25615
25968
  }
25616
25969
  }
25617
25970
 
25618
- var _excluded$1 = ["index"],
25971
+ var _excluded$2 = ["index"],
25619
25972
  _excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
25620
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; }
25621
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; }
@@ -25623,7 +25976,7 @@ var LOG$4 = getLogger('Backoffice', 'CellRenderer');
25623
25976
  var EditableContext = /*#__PURE__*/React.createContext(null);
25624
25977
  var CustomRow = function CustomRow(_ref) {
25625
25978
  _ref.index;
25626
- var props = _objectWithoutProperties(_ref, _excluded$1);
25979
+ var props = _objectWithoutProperties(_ref, _excluded$2);
25627
25980
  var _Form$useForm = Form$1.useForm(),
25628
25981
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
25629
25982
  form = _Form$useForm2[0];
@@ -25923,8 +26276,8 @@ function useAGHistogram (_ref) {
25923
26276
  var container$5 = "container-2r-OJ";
25924
26277
  var column1 = "column1-9viTK";
25925
26278
  var spinner = "spinner-00VcK";
25926
- 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";
25927
- 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);
25928
26281
 
25929
26282
  var Panel = Collapse.Panel;
25930
26283
  function AGHistogram (_ref) {
@@ -27512,7 +27865,7 @@ function filter(f, data) {
27512
27865
  }) : result;
27513
27866
  }
27514
27867
 
27515
- var _excluded = ["_id"];
27868
+ var _excluded$1 = ["_id"];
27516
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; }
27517
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; }
27518
27871
  function useTableData$1 (_ref) {
@@ -27596,7 +27949,7 @@ function useTableData$1 (_ref) {
27596
27949
  setState(newState);
27597
27950
  var formData = new FormData();
27598
27951
  processedDataRow._id;
27599
- var value = _objectWithoutProperties(processedDataRow, _excluded);
27952
+ var value = _objectWithoutProperties(processedDataRow, _excluded$1);
27600
27953
  apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
27601
27954
  filterContex: filterContex,
27602
27955
  value: JSON.stringify([value])
@@ -28902,8 +29255,8 @@ var loader = "loader-LaXZy";
28902
29255
  var flex = "flex-yQdda";
28903
29256
  var bar = "bar-Y663f";
28904
29257
  var value = "value-FCA-6";
28905
- 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";
28906
- 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);
28907
29260
 
28908
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; }
28909
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; }
@@ -29848,8 +30201,8 @@ var retailerChild = "retailer-child-5ll0K";
29848
30201
  var supplier = "supplier-8sm0I";
29849
30202
  var dealer = "dealer-xgnku";
29850
30203
  var association = "association-b8uVW";
29851
- 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";
29852
- 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);
29853
30206
 
29854
30207
  function getColorClass(data) {
29855
30208
  switch (data.type) {
@@ -30082,8 +30435,8 @@ var openClass = "open-class--gGXs";
30082
30435
  var breadcrumb = "breadcrumb-Z0VvH";
30083
30436
  var selected = "selected-w-sfW";
30084
30437
  var disabled$2 = "disabled-0nado";
30085
- 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";
30086
- 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);
30087
30440
 
30088
30441
  var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
30089
30442
  var open = _ref.open,
@@ -30116,8 +30469,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
30116
30469
 
30117
30470
  var collapsibleInner = "collapsible-inner-rI8kI";
30118
30471
  var toolbarLeft = "toolbar-left-X9WRo";
30119
- 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";
30120
- 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);
30121
30474
 
30122
30475
  var Legend = function Legend(props) {
30123
30476
  return /*#__PURE__*/jsx(List$1, {
@@ -30171,8 +30524,8 @@ var Legend = function Legend(props) {
30171
30524
  var buttonsWrapper = "buttons-wrapper-Bubkr";
30172
30525
  var mask = "mask-ssagp";
30173
30526
  var transformWrapper = "transform-wrapper--8t0v";
30174
- 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";
30175
- 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);
30176
30529
 
30177
30530
  var ZoomWrapper = function ZoomWrapper(_ref) {
30178
30531
  var _children = _ref.children,
@@ -31078,6 +31431,7 @@ var useEnricherContext = function useEnricherContext() {
31078
31431
  exclusivitiesSeriesSelectorState: createDefaultSelectState('exclusivitiesSeriesSelectorState'),
31079
31432
  exclusivitiesFeatureSelectorState: createDefaultSelectState('exclusivitiesFeatureSelectorState'),
31080
31433
  selectedSerie: undefined,
31434
+ selectedItem: undefined,
31081
31435
  selectedFeature: undefined
31082
31436
  };
31083
31437
  return root.contextStore.getContext('enricher', initialState);
@@ -31089,6 +31443,11 @@ var useEnricherContext = function useEnricherContext() {
31089
31443
  selectedSerie: serie
31090
31444
  });
31091
31445
  }, [root.contextStore]);
31446
+ var setSelectedItem = useCallback(function (item) {
31447
+ root.contextStore.updateContext('enricher', {
31448
+ selectedItem: item
31449
+ });
31450
+ }, [root.contextStore]);
31092
31451
  var setSelectedFeature = useCallback(function (feature) {
31093
31452
  root.contextStore.updateContext('enricher', {
31094
31453
  selectedFeature: feature
@@ -31124,7 +31483,10 @@ var useEnricherContext = function useEnricherContext() {
31124
31483
  root.contextStore.updateContext('enricher', {
31125
31484
  selectedPackage: newPackage,
31126
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
31127
31488
  selectedSerie: undefined,
31489
+ selectedItem: undefined,
31128
31490
  selectedFeature: undefined,
31129
31491
  lookupSeriesSelectorState: createDefaultSelectState('lookupSeriesSelectorState'),
31130
31492
  lookupFeatureSelectorState: createDefaultSelectState('lookupFeatureSelectorState'),
@@ -31152,6 +31514,7 @@ var useEnricherContext = function useEnricherContext() {
31152
31514
  // Return context + handlers
31153
31515
  return _objectSpread$g(_objectSpread$g({}, getContext()), {}, {
31154
31516
  setSelectedSerie: setSelectedSerie,
31517
+ setSelectedItem: setSelectedItem,
31155
31518
  setSelectedFeature: setSelectedFeature,
31156
31519
  setSelectedPackage: setSelectedPackage
31157
31520
  });
@@ -31170,14 +31533,7 @@ var PackageSelector = function PackageSelector(_ref) {
31170
31533
  return /*#__PURE__*/jsx(SimpleSelect, {
31171
31534
  sharedState: packageSelectorState,
31172
31535
  apiInterface: {
31173
- read: "".concat(enricherService, "/packages?fields=name;_id;isoLanguageIds;isApi&filter=organizationId==\"").concat(organizationId, "\"")
31174
- },
31175
- apiMapping: {
31176
- type: 'query',
31177
- map: [{
31178
- globalValue: 'organizationId',
31179
- targetField: 'organizationId'
31180
- }]
31536
+ read: "".concat(enricherService, "/packages?fields=name;_id;isoLanguageIds;isApi;organizationId&organizationId=").concat(organizationId)
31181
31537
  },
31182
31538
  selectMapping: {
31183
31539
  label: '${name}',
@@ -31207,7 +31563,11 @@ function useModule$1 (currentModules) {
31207
31563
  setSelectedPackage = _useEnricherContext.setSelectedPackage,
31208
31564
  organizationId = _useEnricherContext.organizationId,
31209
31565
  selectedSerie = _useEnricherContext.selectedSerie,
31210
- selectedFeature = _useEnricherContext.selectedFeature;
31566
+ selectedFeature = _useEnricherContext.selectedFeature,
31567
+ selectedItem = _useEnricherContext.selectedItem,
31568
+ setSelectedSerie = _useEnricherContext.setSelectedSerie,
31569
+ setSelectedItem = _useEnricherContext.setSelectedItem,
31570
+ viewOnly = _useEnricherContext.viewOnly;
31211
31571
  var location = useLocation();
31212
31572
  var _useSearchParams = useSearchParams(),
31213
31573
  _useSearchParams2 = _slicedToArray(_useSearchParams, 1),
@@ -31417,8 +31777,12 @@ function useModule$1 (currentModules) {
31417
31777
  organizationId: organizationId,
31418
31778
  apiConfig: root.configurationStore.apiConfig,
31419
31779
  setSelectedPackage: setSelectedPackage,
31780
+ setSelectedSerie: setSelectedSerie,
31781
+ setSelectedItem: setSelectedItem,
31420
31782
  selectedSerie: selectedSerie,
31421
- selectedFeature: selectedFeature
31783
+ selectedFeature: selectedFeature,
31784
+ selectedItem: selectedItem,
31785
+ viewOnly: viewOnly
31422
31786
  };
31423
31787
  }
31424
31788
 
@@ -31546,14 +31910,12 @@ var useTools = function useTools(_ref) {
31546
31910
  initItem: item === null || item === void 0 ? void 0 : item.typeNo,
31547
31911
  setSerie: setSerie,
31548
31912
  setArticle: setArticle
31549
- }, serie ? {
31550
- initSerie: {
31551
- serieNo: serie.serieNo,
31552
- serieId: serie._id
31553
- }
31913
+ }, initSerie ? {
31914
+ initSerie: initSerie
31554
31915
  } : {}) : isApi2 ? {
31555
31916
  // open configurator for api2 package (configurator light)
31556
- loadMask: true
31917
+ loadMask: true,
31918
+ initItem: item === null || item === void 0 ? void 0 : item.typeNo
31557
31919
  } : _objectSpread$f({
31558
31920
  // open configurator for idm package
31559
31921
  useEnricherService: true,
@@ -31563,14 +31925,20 @@ var useTools = function useTools(_ref) {
31563
31925
  initItem: item === null || item === void 0 ? void 0 : item.typeNo,
31564
31926
  setSerie: setSerie,
31565
31927
  setArticle: setArticle
31566
- }, serie ? {
31567
- initSerie: {
31568
- serieNo: serie.serieNo,
31569
- serieId: serie._id
31570
- }
31928
+ }, initSerie ? {
31929
+ initSerie: initSerie
31571
31930
  } : {})
31572
31931
  });
31573
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]);
31574
31942
  useEffect(function () {
31575
31943
  var _root$contentStore$ri;
31576
31944
  var tools = [];
@@ -31612,7 +31980,8 @@ var TableGroups = observer(function () {
31612
31980
  packageId = _useModule.packageId,
31613
31981
  organizationId = _useModule.organizationId,
31614
31982
  apiConfig = _useModule.apiConfig,
31615
- selectedPackage = _useModule.selectedPackage;
31983
+ selectedPackage = _useModule.selectedPackage,
31984
+ viewOnly = _useModule.viewOnly;
31616
31985
  useTools({
31617
31986
  packageId: packageId,
31618
31987
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -31626,10 +31995,10 @@ var TableGroups = observer(function () {
31626
31995
  var apiInterface = useMemo(function () {
31627
31996
  return {
31628
31997
  read: apiConfig.enricherService + '/packages/${packageId}/groups',
31629
- create: apiConfig.enricherService + '/packages/${packageId}/groups',
31630
- restore: apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31631
- "delete": apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31632
- 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}',
31633
32002
  bulk: apiConfig.enricherService + '/packages/${packageId}/groups/bulk'
31634
32003
  };
31635
32004
  }, []);
@@ -31643,7 +32012,7 @@ var TableGroups = observer(function () {
31643
32012
  field: 'serieNos',
31644
32013
  headerName: 'backoffice.idmEnricher.groups.label.serieNos',
31645
32014
  cellDataType: 'lookup',
31646
- editable: true,
32015
+ editable: !viewOnly,
31647
32016
  customParams: {
31648
32017
  filterCellType: 'number',
31649
32018
  nameField: 'serieNosDisplayTexts',
@@ -31666,7 +32035,7 @@ var TableGroups = observer(function () {
31666
32035
  field: 'typeNos',
31667
32036
  headerName: 'backoffice.idmEnricher.groups.label.typeNos',
31668
32037
  cellDataType: 'lookup',
31669
- editable: true,
32038
+ editable: !viewOnly,
31670
32039
  customParams: {
31671
32040
  nameField: 'typeNosDisplayTexts',
31672
32041
  displayLabelTemplate: '${name} (${value})',
@@ -31721,7 +32090,7 @@ var TableGroups = observer(function () {
31721
32090
  cellDataType: 'objectId'
31722
32091
  }]
31723
32092
  };
31724
- }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
32093
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
31725
32094
  return /*#__PURE__*/jsxs(Fragment, {
31726
32095
  children: [/*#__PURE__*/jsx(Descriptions$1, {
31727
32096
  title: /*#__PURE__*/jsxs("div", {
@@ -31743,22 +32112,28 @@ var TableGroups = observer(function () {
31743
32112
  });
31744
32113
 
31745
32114
  function PublishCustomCell (_ref) {
32115
+ var _data$published, _data$removedOrganiza;
31746
32116
  var data = _ref.data,
31747
32117
  apiConfig = _ref.apiConfig,
31748
32118
  context = _ref.context,
31749
32119
  api = _ref.api,
31750
- modalState = _ref.modalState;
32120
+ modalState = _ref.modalState,
32121
+ organizationId = _ref.organizationId;
31751
32122
  var _useTranslation = useTranslation(),
31752
32123
  t = _useTranslation.t;
31753
32124
  var _React$useState = React.useState(false),
31754
32125
  _React$useState2 = _slicedToArray(_React$useState, 2),
31755
32126
  loading = _React$useState2[0],
31756
32127
  isLoading = _React$useState2[1];
31757
- var unpublishedChanges = hasUnpublishedChanges(data.publishDate, data.lastUpdatedDate);
31758
- 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);
31759
32134
  var _onChange = /*#__PURE__*/function () {
31760
32135
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(publish) {
31761
- var loadingTimeout, response;
32136
+ var loadingTimeout, response, _errorText, errorText, json;
31762
32137
  return _regeneratorRuntime.wrap(function _callee$(_context) {
31763
32138
  while (1) switch (_context.prev = _context.next) {
31764
32139
  case 0:
@@ -31773,7 +32148,7 @@ function PublishCustomCell (_ref) {
31773
32148
  }
31774
32149
  _context.next = 6;
31775
32150
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
31776
- update: apiConfig.enricherService + '/packages/${_id}/publish',
32151
+ update: apiConfig.enricherService + '/packages/${_id}/publish?organizationId=' + organizationId,
31777
32152
  usePut: true
31778
32153
  }, undefined, true);
31779
32154
  case 6:
@@ -31783,7 +32158,7 @@ function PublishCustomCell (_ref) {
31783
32158
  case 9:
31784
32159
  _context.next = 11;
31785
32160
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
31786
- update: apiConfig.enricherService + '/packages/${_id}/unpublish',
32161
+ update: apiConfig.enricherService + '/packages/${_id}/unpublish?organizationId=' + organizationId,
31787
32162
  usePut: true
31788
32163
  }, undefined, true);
31789
32164
  case 11:
@@ -31795,7 +32170,7 @@ function PublishCustomCell (_ref) {
31795
32170
  break;
31796
32171
  }
31797
32172
  modalState.showWarningModal(t("backoffice.idmEnricher.packages.label.warning.".concat(publish ? 'publishing' : 'unpublishing')));
31798
- _context.next = 22;
32173
+ _context.next = 34;
31799
32174
  break;
31800
32175
  case 17:
31801
32176
  if (!(response.status == 200)) {
@@ -31803,30 +32178,46 @@ function PublishCustomCell (_ref) {
31803
32178
  break;
31804
32179
  }
31805
32180
  modalState.closeModal();
31806
- _context.next = 22;
32181
+ _context.next = 34;
31807
32182
  break;
31808
32183
  case 21:
31809
- throw new Error("Server errror: ".concat(response.statusText, " (").concat(response.status, ")"));
31810
- 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:
31811
32202
  context === null || context === void 0 || context.reset({
31812
32203
  context: context,
31813
32204
  api: api
31814
32205
  });
31815
- _context.next = 28;
32206
+ _context.next = 40;
31816
32207
  break;
31817
- case 25:
31818
- _context.prev = 25;
31819
- _context.t0 = _context["catch"](2);
31820
- modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.t0 instanceof Error ? _context.t0.message : String(_context.t0)));
31821
- case 28:
31822
- _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;
31823
32214
  isLoading(false);
31824
- return _context.finish(28);
31825
- case 31:
32215
+ return _context.finish(40);
32216
+ case 43:
31826
32217
  case "end":
31827
32218
  return _context.stop();
31828
32219
  }
31829
- }, _callee, null, [[2, 25, 28, 31]]);
32220
+ }, _callee, null, [[2, 37, 40, 43], [21, 28]]);
31830
32221
  }));
31831
32222
  return function onChange(_x) {
31832
32223
  return _ref2.apply(this, arguments);
@@ -31838,9 +32229,9 @@ function PublishCustomCell (_ref) {
31838
32229
  children: /*#__PURE__*/jsxs(Space$1, {
31839
32230
  size: "middle",
31840
32231
  children: [/*#__PURE__*/jsx(Tooltip, {
31841
- 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'),
31842
32233
  children: /*#__PURE__*/jsx(Checkbox$1, {
31843
- checked: !!data.isPublished,
32234
+ checked: !!publishedData,
31844
32235
  disabled: disabled,
31845
32236
  indeterminate: unpublishedChanges,
31846
32237
  onChange: function onChange(e) {
@@ -31856,6 +32247,12 @@ function PublishCustomCell (_ref) {
31856
32247
  return _onChange(true);
31857
32248
  }
31858
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
+ })
31859
32256
  })]
31860
32257
  })
31861
32258
  });
@@ -32177,6 +32574,7 @@ var useLoadingModal = function useLoadingModal() {
32177
32574
  };
32178
32575
 
32179
32576
  var TablePackages = observer(function () {
32577
+ var _root$dataStore$curre;
32180
32578
  var root = useStore();
32181
32579
  var _useTranslation = useTranslation(),
32182
32580
  t = _useTranslation.t,
@@ -32193,20 +32591,14 @@ var TablePackages = observer(function () {
32193
32591
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
32194
32592
  });
32195
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;
32196
32595
  var apiConfig = root.configurationStore.apiConfig;
32197
32596
  var applicationData = useMemo(function () {
32198
32597
  return {
32199
- organizationId: organizationId
32200
- };
32201
- }, [organizationId]);
32202
- var preFilter = useMemo(function () {
32203
- return {
32204
- colId: 'organizationId',
32205
- filterType: 'text',
32206
- type: 'equals',
32207
- filter: organizationId
32598
+ organizationId: organizationId,
32599
+ organizationDisplayText: organizationDisplayText
32208
32600
  };
32209
- }, [organizationId]);
32601
+ }, [organizationId, organizationDisplayText]);
32210
32602
  var rowActions = useMemo(function () {
32211
32603
  return [{
32212
32604
  icon: /*#__PURE__*/jsx(EditOutlined, {}),
@@ -32221,8 +32613,9 @@ var TablePackages = observer(function () {
32221
32613
  }, {
32222
32614
  icon: /*#__PURE__*/jsx(DownloadOutlined, {}),
32223
32615
  disabled: function disabled(_ref3) {
32616
+ var _selectedNodes$0$data;
32224
32617
  var selectedNodes = _ref3.selectedNodes;
32225
- return !selectedNodes[0].data.isPublished;
32618
+ return !((_selectedNodes$0$data = selectedNodes[0].data.published) !== null && _selectedNodes$0$data !== void 0 && _selectedNodes$0$data[organizationId]);
32226
32619
  },
32227
32620
  action: function () {
32228
32621
  var _action = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref4) {
@@ -32266,14 +32659,18 @@ var TablePackages = observer(function () {
32266
32659
  }, [apiConfig.enricherService, root.dataStore.jwt]);
32267
32660
  var apiInterface = useMemo(function () {
32268
32661
  return {
32269
- read: apiConfig.enricherService + '/packages?organizationId=${organizationId}',
32662
+ read: apiConfig.enricherService + '/packages?organizationId=' + organizationId,
32270
32663
  create: apiConfig.enricherService + '/packages',
32271
32664
  restore: apiConfig.enricherService + '/packages/${_id}',
32272
32665
  "delete": apiConfig.enricherService + '/packages/${_id}',
32273
32666
  update: apiConfig.enricherService + '/packages/${_id}',
32274
- bulk: apiConfig.enricherService + '/packages/bulk?organizationId=${organizationId}'
32667
+ bulk: apiConfig.enricherService + '/packages/bulk?organizationId=' + organizationId
32275
32668
  };
32276
- }, [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]);
32277
32674
  var configuration = useMemo(function () {
32278
32675
  return {
32279
32676
  type: 'dotnetSSM',
@@ -32281,15 +32678,15 @@ var TablePackages = observer(function () {
32281
32678
  dateFormat: 'DD.MM.YYYY, HH:mm:ss',
32282
32679
  floatingFilter: true,
32283
32680
  colDef: [{
32284
- field: 'isPublished',
32681
+ field: "published.".concat(organizationId),
32285
32682
  //the cell should refresh on changes of this fields
32286
32683
  valueGetter: function valueGetter(_ref5) {
32684
+ var _data$published, _data$published2;
32287
32685
  var data = _ref5.data;
32288
32686
  return {
32289
- isPublished: data === null || data === void 0 ? void 0 : data.isPublished,
32290
32687
  name: data === null || data === void 0 ? void 0 : data.name,
32291
- basedCatalogId: data === null || data === void 0 ? void 0 : data.basedCatalogId,
32292
- 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
32293
32690
  };
32294
32691
  },
32295
32692
  headerName: 'backoffice.idmEnricher.packages.label.published',
@@ -32300,19 +32697,22 @@ var TablePackages = observer(function () {
32300
32697
  lockPinned: true,
32301
32698
  cellRendererParams: {
32302
32699
  apiConfig: apiConfig,
32303
- modalState: modalState
32304
- }
32700
+ modalState: modalState,
32701
+ organizationId: organizationId
32702
+ },
32703
+ isDictionary: true
32305
32704
  }, {
32306
32705
  headerName: 'backoffice.idmEnricher.packages.label.name',
32307
32706
  field: 'name',
32308
- required: true
32707
+ required: true,
32708
+ editable: isEditable
32309
32709
  }, {
32310
32710
  headerName: 'backoffice.idmEnricher.packages.label.catalogId',
32311
32711
  field: 'basedCatalogId',
32312
32712
  cellDataType: 'lookup',
32313
32713
  editable: function editable(_ref6) {
32314
32714
  var data = _ref6.data;
32315
- return !data.basedCatalogId && !data.basedPackageId;
32715
+ return isEditable(data) && !data.basedCatalogId && !data.basedPackageId;
32316
32716
  },
32317
32717
  customParams: {
32318
32718
  filterCellType: 'objectId',
@@ -32340,7 +32740,7 @@ var TablePackages = observer(function () {
32340
32740
  cellDataType: 'lookup',
32341
32741
  editable: function editable(_ref7) {
32342
32742
  var data = _ref7.data;
32343
- return !data.basedCatalogId && !data.basedPackageId;
32743
+ return isEditable(data) && !data.basedCatalogId && !data.basedPackageId;
32344
32744
  },
32345
32745
  customParams: {
32346
32746
  filterCellType: 'objectId',
@@ -32369,13 +32769,43 @@ var TablePackages = observer(function () {
32369
32769
  field: 'isoLanguageIds',
32370
32770
  headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
32371
32771
  cellDataType: 'enum',
32372
- editable: true,
32772
+ editable: isEditable,
32373
32773
  required: true,
32374
32774
  customParams: {
32375
32775
  enumData: getLanguageKey(t),
32376
32776
  multiple: true
32377
32777
  },
32378
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']
32379
32809
  }, {
32380
32810
  headerName: 'backoffice.idmEnricher.packages.label.isApi2',
32381
32811
  field: 'isApi',
@@ -32393,9 +32823,10 @@ var TablePackages = observer(function () {
32393
32823
  editable: false
32394
32824
  }, {
32395
32825
  headerName: 'backoffice.idmEnricher.packages.label.publishDate',
32396
- field: 'publishDate',
32826
+ field: "published.".concat(organizationId, ".publishDate"),
32397
32827
  cellDataType: 'dateString',
32398
- editable: false
32828
+ editable: false,
32829
+ isDictionary: true
32399
32830
  }, {
32400
32831
  headerName: 'backoffice.idmEnricher.general.label.createdBy',
32401
32832
  field: 'createdByDisplayText',
@@ -32406,8 +32837,9 @@ var TablePackages = observer(function () {
32406
32837
  editable: false
32407
32838
  }, {
32408
32839
  headerName: 'backoffice.idmEnricher.packages.label.publishedBy',
32409
- field: 'publishedByDisplayText',
32410
- editable: false
32840
+ field: "published.".concat(organizationId, ".publishedByDisplayText"),
32841
+ editable: false,
32842
+ isDictionary: true
32411
32843
  }, {
32412
32844
  headerName: 'backoffice.idmEnricher.general.label._id',
32413
32845
  field: '_id',
@@ -32420,9 +32852,26 @@ var TablePackages = observer(function () {
32420
32852
  lockVisible: true,
32421
32853
  suppressColumnsToolPanel: true,
32422
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
32423
32868
  }]
32424
32869
  };
32425
- }, [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]);
32426
32875
  return /*#__PURE__*/jsxs(Fragment, {
32427
32876
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32428
32877
  title: t('backoffice.menu.items.label.IDMEnricherTablePackages')
@@ -32430,8 +32879,8 @@ var TablePackages = observer(function () {
32430
32879
  gridId: 'packages-grid',
32431
32880
  applicationData: applicationData,
32432
32881
  rowActions: rowActions,
32433
- preFilter: preFilter,
32434
- configuration: configuration
32882
+ configuration: configuration,
32883
+ isRowEditable: isRowEditable
32435
32884
  }), contextHolder]
32436
32885
  });
32437
32886
  });
@@ -32443,7 +32892,8 @@ var TableProperties = observer(function () {
32443
32892
  packageId = _useModule.packageId,
32444
32893
  organizationId = _useModule.organizationId,
32445
32894
  apiConfig = _useModule.apiConfig,
32446
- selectedPackage = _useModule.selectedPackage;
32895
+ selectedPackage = _useModule.selectedPackage,
32896
+ viewOnly = _useModule.viewOnly;
32447
32897
  useTools({
32448
32898
  packageId: packageId,
32449
32899
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -32457,10 +32907,10 @@ var TableProperties = observer(function () {
32457
32907
  var apiInterface = useMemo(function () {
32458
32908
  return {
32459
32909
  read: apiConfig.enricherService + '/packages/${packageId}/properties',
32460
- create: apiConfig.enricherService + '/packages/${packageId}/properties',
32461
- restore: apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32462
- "delete": apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32463
- 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}',
32464
32914
  bulk: apiConfig.enricherService + '/packages/${packageId}/properties/bulk'
32465
32915
  };
32466
32916
  }, []);
@@ -32478,7 +32928,7 @@ var TableProperties = observer(function () {
32478
32928
  field: 'featureNos',
32479
32929
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
32480
32930
  cellDataType: 'lookup',
32481
- editable: true,
32931
+ editable: !viewOnly,
32482
32932
  customParams: {
32483
32933
  nameField: 'featureNosDisplayTexts',
32484
32934
  displayLabelTemplate: '${name} (${value})',
@@ -32496,7 +32946,7 @@ var TableProperties = observer(function () {
32496
32946
  field: 'optionKeys',
32497
32947
  headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
32498
32948
  cellDataType: 'lookup',
32499
- editable: true,
32949
+ editable: !viewOnly,
32500
32950
  customParams: {
32501
32951
  nameField: 'optionKeysDisplayTexts',
32502
32952
  displayLabelTemplate: '${name} (${value})',
@@ -32520,7 +32970,7 @@ var TableProperties = observer(function () {
32520
32970
  field: 'serieNos',
32521
32971
  headerName: 'backoffice.idmEnricher.renaming.label.serieNos',
32522
32972
  cellDataType: 'lookup',
32523
- editable: true,
32973
+ editable: !viewOnly,
32524
32974
  customParams: {
32525
32975
  filterCellType: 'number',
32526
32976
  nameField: 'serieNosDisplayTexts',
@@ -32543,7 +32993,7 @@ var TableProperties = observer(function () {
32543
32993
  field: 'typeNos',
32544
32994
  headerName: 'backoffice.idmEnricher.properties.label.typeNos',
32545
32995
  cellDataType: 'lookup',
32546
- editable: true,
32996
+ editable: !viewOnly,
32547
32997
  customParams: {
32548
32998
  nameField: 'typeNosDisplayTexts',
32549
32999
  displayLabelTemplate: '${name} (${value})',
@@ -32598,7 +33048,7 @@ var TableProperties = observer(function () {
32598
33048
  cellDataType: 'objectId'
32599
33049
  }]
32600
33050
  };
32601
- }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
33051
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
32602
33052
  return /*#__PURE__*/jsxs(Fragment, {
32603
33053
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32604
33054
  title: /*#__PURE__*/jsxs("div", {
@@ -32619,7 +33069,7 @@ var TableProperties = observer(function () {
32619
33069
  });
32620
33070
  });
32621
33071
 
32622
- var getConfig$6 = function getConfig(isoLanguageIds, t) {
33072
+ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
32623
33073
  return {
32624
33074
  colDef: [{
32625
33075
  field: 'translatedName',
@@ -32629,7 +33079,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32629
33079
  placeHolderField: 'origName',
32630
33080
  combinedField: 'name'
32631
33081
  },
32632
- additionalFields: ['origName', 'name']
33082
+ additionalFields: ['origName', 'name'],
33083
+ editable: !viewOnly
32633
33084
  }, {
32634
33085
  field: 'translatedComment',
32635
33086
  cellDataType: 'withPlaceholder',
@@ -32638,14 +33089,15 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32638
33089
  placeHolderField: 'origComment',
32639
33090
  combinedField: 'comment'
32640
33091
  },
32641
- additionalFields: ['origComment', 'comment']
33092
+ additionalFields: ['origComment', 'comment'],
33093
+ editable: !viewOnly
32642
33094
  }, createTranslatedColumnConfig('translatedCatalogName', 'backoffice.idmEnricher.renaming.label.catalogName', isoLanguageIds, false, 'withPlaceholder', {
32643
33095
  placeHolderField: 'origCatalogName',
32644
33096
  combinedField: 'catalogName'
32645
- }, ['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', {
32646
33098
  placeHolderField: 'origCatalogInfo',
32647
33099
  combinedField: 'catalogInfo'
32648
- }, ['origCatalogInfo', 'catalogInfo']), {
33100
+ }, ['origCatalogInfo', 'catalogInfo'], !viewOnly), {
32649
33101
  headerName: 'backoffice.idmEnricher.renaming.label.contactperson',
32650
33102
  field: 'translatedContactPersonNo1',
32651
33103
  cellDataType: 'withPlaceholder',
@@ -32653,7 +33105,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32653
33105
  placeHolderField: 'origContactPersonNo1',
32654
33106
  combinedField: 'contactPersonNo1'
32655
33107
  },
32656
- additionalFields: ['origContactPersonNo1', 'contactPersonNo1']
33108
+ additionalFields: ['origContactPersonNo1', 'contactPersonNo1'],
33109
+ editable: !viewOnly
32657
33110
  }, {
32658
33111
  headerName: 'backoffice.idmEnricher.renaming.label.contactrole',
32659
33112
  field: 'translatedContactRole1',
@@ -32662,7 +33115,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32662
33115
  placeHolderField: 'origContactRole1',
32663
33116
  combinedField: 'contactRole1'
32664
33117
  },
32665
- additionalFields: ['origContactRole1', 'contactRole1']
33118
+ additionalFields: ['origContactRole1', 'contactRole1'],
33119
+ editable: !viewOnly
32666
33120
  }, {
32667
33121
  headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname',
32668
33122
  field: 'translatedContactName1',
@@ -32671,7 +33125,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32671
33125
  placeHolderField: 'origContactName1',
32672
33126
  combinedField: 'contactName1'
32673
33127
  },
32674
- additionalFields: ['origContactName1', 'contactName1']
33128
+ additionalFields: ['origContactName1', 'contactName1'],
33129
+ editable: !viewOnly
32675
33130
  }, {
32676
33131
  headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname',
32677
33132
  field: 'translatedFirstName1',
@@ -32680,7 +33135,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32680
33135
  placeHolderField: 'origFirstName1',
32681
33136
  combinedField: 'firstName1'
32682
33137
  },
32683
- additionalFields: ['origFirstName1', 'firstName1']
33138
+ additionalFields: ['origFirstName1', 'firstName1'],
33139
+ editable: !viewOnly
32684
33140
  }, {
32685
33141
  headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address',
32686
33142
  field: 'translatedFormOfAddress1',
@@ -32692,7 +33148,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32692
33148
  enumData: getFormOfAddressKey(t),
32693
33149
  displayLabelTemplate: '${name} (${value})'
32694
33150
  },
32695
- additionalFields: ['origFormOfAddress1', 'formOfAddress1']
33151
+ additionalFields: ['origFormOfAddress1', 'formOfAddress1'],
33152
+ editable: !viewOnly
32696
33153
  }, {
32697
33154
  headerName: 'backoffice.idmEnricher.renaming.label.translated.department',
32698
33155
  field: 'translatedDepartment1',
@@ -32701,7 +33158,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32701
33158
  placeHolderField: 'origDepartment1',
32702
33159
  combinedField: 'department1'
32703
33160
  },
32704
- additionalFields: ['origDepartment1', 'department1']
33161
+ additionalFields: ['origDepartment1', 'department1'],
33162
+ editable: !viewOnly
32705
33163
  }, {
32706
33164
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone',
32707
33165
  field: 'translatedTelephone1',
@@ -32710,7 +33168,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32710
33168
  placeHolderField: 'origTelephone1',
32711
33169
  combinedField: 'telephone1'
32712
33170
  },
32713
- additionalFields: ['origTelephone1', 'telephone1']
33171
+ additionalFields: ['origTelephone1', 'telephone1'],
33172
+ editable: !viewOnly
32714
33173
  }, {
32715
33174
  headerName: 'backoffice.idmEnricher.renaming.label.translated.fax',
32716
33175
  field: 'translatedFax1',
@@ -32719,7 +33178,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32719
33178
  placeHolderField: 'origFax1',
32720
33179
  combinedField: 'fax1'
32721
33180
  },
32722
- additionalFields: ['origFax1', 'fax1']
33181
+ additionalFields: ['origFax1', 'fax1'],
33182
+ editable: !viewOnly
32723
33183
  }, {
32724
33184
  field: 'translatedEmail1',
32725
33185
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
@@ -32728,7 +33188,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32728
33188
  placeHolderField: 'origEmail1',
32729
33189
  combinedField: 'email1'
32730
33190
  },
32731
- additionalFields: ['origEmail1', 'email1']
33191
+ additionalFields: ['origEmail1', 'email1'],
33192
+ editable: !viewOnly
32732
33193
  }, {
32733
33194
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
32734
33195
  field: 'translatedStreet1',
@@ -32737,7 +33198,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32737
33198
  placeHolderField: 'origStreet1',
32738
33199
  combinedField: 'street1'
32739
33200
  },
32740
- additionalFields: ['origStreet1', 'street1']
33201
+ additionalFields: ['origStreet1', 'street1'],
33202
+ editable: !viewOnly
32741
33203
  }, {
32742
33204
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
32743
33205
  field: 'translatedZipCodeStreet1',
@@ -32746,7 +33208,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32746
33208
  placeHolderField: 'origZipCodeStreet1',
32747
33209
  combinedField: 'zipCodeStreet1'
32748
33210
  },
32749
- additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1']
33211
+ additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1'],
33212
+ editable: !viewOnly
32750
33213
  }, {
32751
33214
  field: 'translatedCity1',
32752
33215
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
@@ -32755,7 +33218,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32755
33218
  placeHolderField: 'origCity1',
32756
33219
  combinedField: 'city1'
32757
33220
  },
32758
- additionalFields: ['origCity1', 'city1']
33221
+ additionalFields: ['origCity1', 'city1'],
33222
+ editable: !viewOnly
32759
33223
  }, {
32760
33224
  field: 'translatedIsoCountryId1',
32761
33225
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
@@ -32766,7 +33230,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32766
33230
  combinedField: 'isoCountryId1',
32767
33231
  enumData: getCountryKey(t)
32768
33232
  },
32769
- additionalFields: ['origIsoCountryId1', 'isoCountryId1']
33233
+ additionalFields: ['origIsoCountryId1', 'isoCountryId1'],
33234
+ editable: !viewOnly
32770
33235
  }, {
32771
33236
  field: 'translatedContactPersonNo2',
32772
33237
  headerName: 'backoffice.idmEnricher.renaming.label.contactperson2',
@@ -32775,7 +33240,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32775
33240
  placeHolderField: 'origContactPersonNo2',
32776
33241
  combinedField: 'contactPersonNo2'
32777
33242
  },
32778
- additionalFields: ['origContactPersonNo2', 'contactPersonNo2']
33243
+ additionalFields: ['origContactPersonNo2', 'contactPersonNo2'],
33244
+ editable: !viewOnly
32779
33245
  }, {
32780
33246
  headerName: 'backoffice.idmEnricher.renaming.label.contactrole2',
32781
33247
  field: 'translatedContactRole2',
@@ -32784,7 +33250,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32784
33250
  placeHolderField: 'origContactRole2',
32785
33251
  combinedField: 'contactRole2'
32786
33252
  },
32787
- additionalFields: ['origContactRole2', 'contactRole2']
33253
+ additionalFields: ['origContactRole2', 'contactRole2'],
33254
+ editable: !viewOnly
32788
33255
  }, {
32789
33256
  headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname2',
32790
33257
  field: 'translatedContactName2',
@@ -32793,7 +33260,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32793
33260
  placeHolderField: 'origContactName2',
32794
33261
  combinedField: 'contactName2'
32795
33262
  },
32796
- additionalFields: ['origContactName2', 'contactName2']
33263
+ additionalFields: ['origContactName2', 'contactName2'],
33264
+ editable: !viewOnly
32797
33265
  }, {
32798
33266
  headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname2',
32799
33267
  field: 'translatedFirstName2',
@@ -32802,7 +33270,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32802
33270
  placeHolderField: 'origFirstName2',
32803
33271
  combinedField: 'firstName2'
32804
33272
  },
32805
- additionalFields: ['origFirstName2', 'firstName2']
33273
+ additionalFields: ['origFirstName2', 'firstName2'],
33274
+ editable: !viewOnly
32806
33275
  }, {
32807
33276
  headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address2',
32808
33277
  field: 'translatedFormOfAddress2',
@@ -32814,7 +33283,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32814
33283
  enumData: getFormOfAddressKey(t),
32815
33284
  displayLabelTemplate: '${name} (${value})'
32816
33285
  },
32817
- additionalFields: ['origFormOfAddress2', 'formOfAddress2']
33286
+ additionalFields: ['origFormOfAddress2', 'formOfAddress2'],
33287
+ editable: !viewOnly
32818
33288
  }, {
32819
33289
  headerName: 'backoffice.idmEnricher.renaming.label.translated.department2',
32820
33290
  field: 'translatedDepartment2',
@@ -32823,7 +33293,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32823
33293
  placeHolderField: 'origDepartment2',
32824
33294
  combinedField: 'department2'
32825
33295
  },
32826
- additionalFields: ['origDepartment2', 'department2']
33296
+ additionalFields: ['origDepartment2', 'department2'],
33297
+ editable: !viewOnly
32827
33298
  }, {
32828
33299
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone2',
32829
33300
  field: 'translatedTelephone2',
@@ -32832,7 +33303,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32832
33303
  placeHolderField: 'origTelephone2',
32833
33304
  combinedField: 'telephone2'
32834
33305
  },
32835
- additionalFields: ['origTelephone2', 'telephone2']
33306
+ additionalFields: ['origTelephone2', 'telephone2'],
33307
+ editable: !viewOnly
32836
33308
  }, {
32837
33309
  headerName: 'backoffice.idmEnricher.renaming.label.translated.fax2',
32838
33310
  field: 'translatedFax2',
@@ -32841,7 +33313,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32841
33313
  placeHolderField: 'origFax2',
32842
33314
  combinedField: 'fax2'
32843
33315
  },
32844
- additionalFields: ['origFax2', 'fax2']
33316
+ additionalFields: ['origFax2', 'fax2'],
33317
+ editable: !viewOnly
32845
33318
  }, {
32846
33319
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email2',
32847
33320
  field: 'translatedEmail2',
@@ -32850,7 +33323,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32850
33323
  placeHolderField: 'origEmail2',
32851
33324
  combinedField: 'email2'
32852
33325
  },
32853
- additionalFields: ['origEmail2', 'email2']
33326
+ additionalFields: ['origEmail2', 'email2'],
33327
+ editable: !viewOnly
32854
33328
  }, {
32855
33329
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street2',
32856
33330
  field: 'translatedStreet2',
@@ -32859,7 +33333,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32859
33333
  placeHolderField: 'origStreet2',
32860
33334
  combinedField: 'street2'
32861
33335
  },
32862
- additionalFields: ['origStreet2', 'street2']
33336
+ additionalFields: ['origStreet2', 'street2'],
33337
+ editable: !viewOnly
32863
33338
  }, {
32864
33339
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip2',
32865
33340
  field: 'translatedZipCodeStreet2',
@@ -32868,7 +33343,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32868
33343
  placeHolderField: 'origZipCodeStreet2',
32869
33344
  combinedField: 'zipCodeStreet2'
32870
33345
  },
32871
- additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2']
33346
+ additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2'],
33347
+ editable: !viewOnly
32872
33348
  }, {
32873
33349
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city2',
32874
33350
  field: 'translatedCity2',
@@ -32877,11 +33353,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32877
33353
  placeHolderField: 'origCity2',
32878
33354
  combinedField: 'city2'
32879
33355
  },
32880
- additionalFields: ['origCity2', 'city2']
33356
+ additionalFields: ['origCity2', 'city2'],
33357
+ editable: !viewOnly
32881
33358
  }, {
32882
33359
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country2',
32883
33360
  field: 'translatedIsoCountryId2',
32884
- editable: true,
32885
33361
  cellDataType: 'withPlaceholder',
32886
33362
  type: ['withPlaceholderEnum'],
32887
33363
  customParams: {
@@ -32889,7 +33365,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32889
33365
  combinedField: 'isoCountryId2',
32890
33366
  enumData: getCountryKey(t)
32891
33367
  },
32892
- additionalFields: ['origIsoCountryId2', 'isoCountryId2']
33368
+ additionalFields: ['origIsoCountryId2', 'isoCountryId2'],
33369
+ editable: !viewOnly
32893
33370
  }, {
32894
33371
  headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename',
32895
33372
  field: 'translatedManufactureName1',
@@ -32898,7 +33375,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32898
33375
  placeHolderField: 'origManufactureName1',
32899
33376
  combinedField: 'manufactureName1'
32900
33377
  },
32901
- additionalFields: ['origManufactureName1', 'manufactureName1']
33378
+ additionalFields: ['origManufactureName1', 'manufactureName1'],
33379
+ editable: !viewOnly
32902
33380
  }, {
32903
33381
  headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename2',
32904
33382
  field: 'translatedManufactureName2',
@@ -32907,7 +33385,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32907
33385
  placeHolderField: 'origManufactureName2',
32908
33386
  combinedField: 'manufactureName2'
32909
33387
  },
32910
- additionalFields: ['origManufactureName2', 'manufactureName2']
33388
+ additionalFields: ['origManufactureName2', 'manufactureName2'],
33389
+ editable: !viewOnly
32911
33390
  }, {
32912
33391
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
32913
33392
  field: 'translatedEmail',
@@ -32916,7 +33395,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32916
33395
  placeHolderField: 'origEmail',
32917
33396
  combinedField: 'email'
32918
33397
  },
32919
- additionalFields: ['origEmail', 'email']
33398
+ additionalFields: ['origEmail', 'email'],
33399
+ editable: !viewOnly
32920
33400
  }, {
32921
33401
  headerName: 'backoffice.idmEnricher.renaming.label.translated.internetaddress',
32922
33402
  field: 'translatedInternetAddress',
@@ -32925,7 +33405,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32925
33405
  placeHolderField: 'origInternetAddress',
32926
33406
  combinedField: 'internetAddress'
32927
33407
  },
32928
- additionalFields: ['origInternetAddress', 'internetAddress']
33408
+ additionalFields: ['origInternetAddress', 'internetAddress'],
33409
+ editable: !viewOnly
32929
33410
  }, {
32930
33411
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
32931
33412
  field: 'translatedStreet',
@@ -32934,7 +33415,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32934
33415
  placeHolderField: 'origStreet',
32935
33416
  combinedField: 'street'
32936
33417
  },
32937
- additionalFields: ['origStreet', 'street']
33418
+ additionalFields: ['origStreet', 'street'],
33419
+ editable: !viewOnly
32938
33420
  }, {
32939
33421
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
32940
33422
  field: 'translatedZipCodeStreet',
@@ -32943,7 +33425,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32943
33425
  placeHolderField: 'origZipCodeStreet',
32944
33426
  combinedField: 'zipCodeStreet'
32945
33427
  },
32946
- additionalFields: ['origZipCodeStreet', 'zipCodeStreet']
33428
+ additionalFields: ['origZipCodeStreet', 'zipCodeStreet'],
33429
+ editable: !viewOnly
32947
33430
  }, {
32948
33431
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
32949
33432
  field: 'translatedCity',
@@ -32952,11 +33435,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32952
33435
  placeHolderField: 'origCity',
32953
33436
  combinedField: 'city'
32954
33437
  },
32955
- additionalFields: ['origCity', 'city']
33438
+ additionalFields: ['origCity', 'city'],
33439
+ editable: !viewOnly
32956
33440
  }, {
32957
33441
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
32958
33442
  field: 'translatedContactSupplierIsoCountryId',
32959
- editable: true,
32960
33443
  cellDataType: 'withPlaceholder',
32961
33444
  type: ['withPlaceholderEnum'],
32962
33445
  customParams: {
@@ -32964,7 +33447,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32964
33447
  combinedField: 'contactSupplierIsoCountryId',
32965
33448
  enumData: getCountryKey(t)
32966
33449
  },
32967
- additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId']
33450
+ additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId'],
33451
+ editable: !viewOnly
32968
33452
  }, {
32969
33453
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zippostbox',
32970
33454
  field: 'translatedZipCodePostBox',
@@ -32973,7 +33457,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32973
33457
  placeHolderField: 'origZipCodePostBox',
32974
33458
  combinedField: 'zipCodePostBox'
32975
33459
  },
32976
- additionalFields: ['origZipCodePostBox', 'zipCodePostBox']
33460
+ additionalFields: ['origZipCodePostBox', 'zipCodePostBox'],
33461
+ editable: !viewOnly
32977
33462
  }, {
32978
33463
  headerName: 'backoffice.idmEnricher.renaming.label.translated.postbox',
32979
33464
  field: 'translatedPostBox',
@@ -32982,7 +33467,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32982
33467
  placeHolderField: 'origPostBox',
32983
33468
  combinedField: 'postBox'
32984
33469
  },
32985
- additionalFields: ['origPostBox', 'postBox']
33470
+ additionalFields: ['origPostBox', 'postBox'],
33471
+ editable: !viewOnly
32986
33472
  }, {
32987
33473
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephoneswitchboard',
32988
33474
  field: 'translatedTelephoneSwitchboard',
@@ -32991,7 +33477,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32991
33477
  placeHolderField: 'origTelephoneSwitchboard',
32992
33478
  combinedField: 'telephoneSwitchboard'
32993
33479
  },
32994
- additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard']
33480
+ additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard'],
33481
+ editable: !viewOnly
32995
33482
  }, {
32996
33483
  headerName: 'backoffice.idmEnricher.renaming.label.translated.faxswitchboard',
32997
33484
  field: 'translatedFaxSwitchboard',
@@ -33000,12 +33487,13 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
33000
33487
  placeHolderField: 'origFaxSwitchboard',
33001
33488
  combinedField: 'faxSwitchboard'
33002
33489
  },
33003
- additionalFields: ['origFaxSwitchboard', 'faxSwitchboard']
33490
+ additionalFields: ['origFaxSwitchboard', 'faxSwitchboard'],
33491
+ editable: !viewOnly
33004
33492
  }]
33005
33493
  };
33006
33494
  };
33007
33495
 
33008
- var getConfig$5 = function getConfig(isoLanguageIds) {
33496
+ var getConfig$5 = function getConfig(isoLanguageIds, t, viewOnly) {
33009
33497
  return {
33010
33498
  colDef: [{
33011
33499
  headerName: 'backoffice.idmEnricher.renaming.label.detailinfo_nr',
@@ -33014,17 +33502,17 @@ var getConfig$5 = function getConfig(isoLanguageIds) {
33014
33502
  }, createTranslatedColumnConfig('translatedExternalName', 'backoffice.idmEnricher.renaming.label.externalName', isoLanguageIds, false, 'withPlaceholder', {
33015
33503
  placeHolderField: 'origExternalName',
33016
33504
  combinedField: 'externalName'
33017
- }, ['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', {
33018
33506
  placeHolderField: 'origInternalName',
33019
33507
  combinedField: 'internalName'
33020
- }, ['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', {
33021
33509
  placeHolderField: 'origToolTip',
33022
33510
  combinedField: 'toolTip'
33023
- }, ['origToolTip', 'toolTip'])]
33511
+ }, ['origToolTip', 'toolTip'], !viewOnly)]
33024
33512
  };
33025
33513
  };
33026
33514
 
33027
- var getConfig$4 = function getConfig(isoLanguageIds) {
33515
+ var getConfig$4 = function getConfig(isoLanguageIds, t, viewOnly) {
33028
33516
  return {
33029
33517
  colDef: [{
33030
33518
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
@@ -33035,11 +33523,11 @@ var getConfig$4 = function getConfig(isoLanguageIds) {
33035
33523
  }, createTranslatedColumnConfig('translatedFeatureText', 'backoffice.idmEnricher.renaming.label.featuretext', isoLanguageIds, false, 'withPlaceholder', {
33036
33524
  placeHolderField: 'origFeatureText',
33037
33525
  combinedField: 'featureText'
33038
- }, ['origFeatureText', 'featureText'])]
33526
+ }, ['origFeatureText', 'featureText'], !viewOnly)]
33039
33527
  };
33040
33528
  };
33041
33529
 
33042
- var getConfig$3 = function getConfig(isoLanguageIds) {
33530
+ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33043
33531
  return {
33044
33532
  colDef: [{
33045
33533
  headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
@@ -33050,13 +33538,13 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33050
33538
  }, createTranslatedColumnConfig('translatedShortText', 'backoffice.idmEnricher.renaming.label.shortText', isoLanguageIds, false, 'withPlaceholder', {
33051
33539
  placeHolderField: 'origShortText',
33052
33540
  combinedField: 'shortText'
33053
- }, ['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', {
33054
33542
  placeHolderField: 'origFullText',
33055
33543
  combinedField: 'fullText'
33056
- }, ['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', {
33057
33545
  placeHolderField: 'origPlanningAdvice',
33058
33546
  combinedField: 'planningAdvice'
33059
- }, ['origPlanningAdvice', 'planningAdvice']), {
33547
+ }, ['origPlanningAdvice', 'planningAdvice'], !viewOnly), {
33060
33548
  headerName: 'backoffice.idmEnricher.renaming.label.translatedSalesNumber',
33061
33549
  field: 'translatedSalesNumber',
33062
33550
  cellDataType: 'withPlaceholder',
@@ -33064,7 +33552,8 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33064
33552
  placeHolderField: 'origSalesNumber',
33065
33553
  combinedField: 'salesNumber'
33066
33554
  },
33067
- additionalFields: ['origSalesNumber', 'salesNumber']
33555
+ additionalFields: ['origSalesNumber', 'salesNumber'],
33556
+ editable: !viewOnly
33068
33557
  }, {
33069
33558
  field: 'sequenceNo',
33070
33559
  headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
@@ -33078,7 +33567,8 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33078
33567
  placeHolderField: 'origEdpNumber',
33079
33568
  combinedField: 'edpNumber'
33080
33569
  },
33081
- additionalFields: ['origEdpNumber', 'edpNumber']
33570
+ additionalFields: ['origEdpNumber', 'edpNumber'],
33571
+ editable: !viewOnly
33082
33572
  }, {
33083
33573
  headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
33084
33574
  field: 'translatedEanNumber',
@@ -33087,12 +33577,13 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33087
33577
  placeHolderField: 'origEanNumber',
33088
33578
  combinedField: 'eanNumber'
33089
33579
  },
33090
- additionalFields: ['origEanNumber', 'eanNumber']
33580
+ additionalFields: ['origEanNumber', 'eanNumber'],
33581
+ editable: !viewOnly
33091
33582
  }]
33092
33583
  };
33093
33584
  };
33094
33585
 
33095
- var getConfig$2 = function getConfig(isoLanguageIds) {
33586
+ var getConfig$2 = function getConfig(isoLanguageIds, t, viewOnly) {
33096
33587
  return {
33097
33588
  colDef: [{
33098
33589
  headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
@@ -33103,10 +33594,10 @@ var getConfig$2 = function getConfig(isoLanguageIds) {
33103
33594
  }, createTranslatedColumnConfig('translatedOptionText', 'backoffice.idmEnricher.renaming.label.optionText', isoLanguageIds, false, 'withPlaceholder', {
33104
33595
  placeHolderField: 'origOptionText',
33105
33596
  combinedField: 'optionText'
33106
- }, ['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', {
33107
33598
  placeHolderField: 'origOptionCommentText',
33108
33599
  combinedField: 'optionCommentText'
33109
- }, ['origOptionCommentText', 'optionCommentText']), {
33600
+ }, ['origOptionCommentText', 'optionCommentText'], !viewOnly), {
33110
33601
  field: 'featureNos',
33111
33602
  headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
33112
33603
  cellDataType: 'lookup',
@@ -33131,7 +33622,7 @@ var getConfig$2 = function getConfig(isoLanguageIds) {
33131
33622
  };
33132
33623
  };
33133
33624
 
33134
- var getConfig$1 = function getConfig(isoLanguageIds) {
33625
+ var getConfig$1 = function getConfig(isoLanguageIds, t, viewOnly) {
33135
33626
  return {
33136
33627
  colDef: [{
33137
33628
  headerName: 'backoffice.idmEnricher.renaming.label.serieNo',
@@ -33142,10 +33633,10 @@ var getConfig$1 = function getConfig(isoLanguageIds) {
33142
33633
  }, createTranslatedColumnConfig('translatedSeriesName', 'backoffice.idmEnricher.renaming.label.serieName', isoLanguageIds, false, 'withPlaceholder', {
33143
33634
  placeHolderField: 'origSeriesName',
33144
33635
  combinedField: 'seriesName'
33145
- }, ['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', {
33146
33637
  placeHolderField: 'origSeriesFullText',
33147
33638
  combinedField: 'seriesFullText'
33148
- }, ['origSeriesFullText', 'seriesFullText'])]
33639
+ }, ['origSeriesFullText', 'seriesFullText'], !viewOnly)]
33149
33640
  };
33150
33641
  };
33151
33642
 
@@ -33233,11 +33724,20 @@ var RenamingTable = observer(function (_ref) {
33233
33724
  packageId = _useModule.packageId,
33234
33725
  apiConfig = _useModule.apiConfig,
33235
33726
  selectedPackage = _useModule.selectedPackage,
33236
- selectedSerie = _useModule.selectedSerie;
33237
- useTools({
33238
- packageId: packageId,
33239
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
33240
- });
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;
33241
33741
  var baseConfiguration = useMemo(function () {
33242
33742
  return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
33243
33743
  }, [selectedPackage, i18n.language]);
@@ -33246,6 +33746,31 @@ var RenamingTable = observer(function (_ref) {
33246
33746
  packageId: packageId
33247
33747
  };
33248
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]);
33249
33774
  var prevPreFilter = useRef();
33250
33775
  var preFilter = useMemo(function () {
33251
33776
  if (type === 'items' && selectedSerie) {
@@ -33266,7 +33791,7 @@ var RenamingTable = observer(function (_ref) {
33266
33791
  var apiInterface = useMemo(function () {
33267
33792
  return {
33268
33793
  read: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type,
33269
- update: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/${_id}',
33794
+ update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/${_id}',
33270
33795
  bulk: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/bulk'
33271
33796
  };
33272
33797
  }, [type]);
@@ -33292,7 +33817,7 @@ var RenamingTable = observer(function (_ref) {
33292
33817
  cellDataType: 'objectId'
33293
33818
  }])
33294
33819
  };
33295
- }, [apiInterface, baseConfiguration.colDef]);
33820
+ }, [apiInterface, baseConfiguration.colDef, viewOnly]);
33296
33821
  var showTable = useMemo(function () {
33297
33822
  return selectedPackage && (!['items'].includes(type) || type === 'items' && preFilter);
33298
33823
  }, [type, preFilter, selectedPackage]);
@@ -33315,7 +33840,8 @@ var RenamingTable = observer(function (_ref) {
33315
33840
  gridId: 'renaming-grid_' + type,
33316
33841
  applicationData: applicationData,
33317
33842
  preFilter: preFilter,
33318
- configuration: configuration
33843
+ configuration: configuration,
33844
+ hooks: hooks
33319
33845
  })]
33320
33846
  });
33321
33847
  });
@@ -33797,11 +34323,45 @@ var ExclusivityTable = observer(function (_ref) {
33797
34323
  apiConfig = _useModule.apiConfig,
33798
34324
  organizationId = _useModule.organizationId,
33799
34325
  selectedPackage = _useModule.selectedPackage,
33800
- selectedSerie = _useModule.selectedSerie;
33801
- useTools({
33802
- packageId: packageId,
33803
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
33804
- });
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]);
33805
34365
  var apiInterface = useMemo(function () {
33806
34366
  var patchId = '${_id}';
33807
34367
  if (type === 'eitems') patchId = '${typeNo}';
@@ -33815,7 +34375,7 @@ var ExclusivityTable = observer(function (_ref) {
33815
34375
  var listType = type === 'eitems' ? 'items' : 'options';
33816
34376
  return {
33817
34377
  read: !['eitems'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
33818
- 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
33819
34379
  };
33820
34380
  }, [type]);
33821
34381
  var oldDataRef = useRef();
@@ -33844,7 +34404,7 @@ var ExclusivityTable = observer(function (_ref) {
33844
34404
  floatingFilter: true,
33845
34405
  colDef: [{
33846
34406
  field: 'active',
33847
- editable: true,
34407
+ editable: !viewOnly,
33848
34408
  cellDataType: 'boolean',
33849
34409
  pinned: 'left',
33850
34410
  lockPinned: true
@@ -33860,11 +34420,11 @@ var ExclusivityTable = observer(function (_ref) {
33860
34420
  }, {
33861
34421
  headerName: 'backoffice.idmEnricher.general.label._id',
33862
34422
  field: '_id',
33863
- editable: true,
34423
+ editable: false,
33864
34424
  cellDataType: 'objectId'
33865
34425
  }])
33866
34426
  };
33867
- }, [apiInterface, selectedSerie, config.colDef]);
34427
+ }, [apiInterface, selectedSerie, config.colDef, viewOnly]);
33868
34428
  return /*#__PURE__*/jsxs(Fragment, {
33869
34429
  children: [/*#__PURE__*/jsx(Descriptions$1, {
33870
34430
  title: /*#__PURE__*/jsxs("div", {
@@ -33883,7 +34443,8 @@ var ExclusivityTable = observer(function (_ref) {
33883
34443
  }), showTable && /*#__PURE__*/jsx(Spreadsheet, {
33884
34444
  gridId: 'crud-grid_exclusivity_' + type,
33885
34445
  applicationData: applicationData,
33886
- configuration: configuration
34446
+ configuration: configuration,
34447
+ hooks: hooks
33887
34448
  })]
33888
34449
  });
33889
34450
  });
@@ -33895,7 +34456,8 @@ var TableTabGroups = observer(function () {
33895
34456
  packageId = _useModule.packageId,
33896
34457
  organizationId = _useModule.organizationId,
33897
34458
  apiConfig = _useModule.apiConfig,
33898
- selectedPackage = _useModule.selectedPackage;
34459
+ selectedPackage = _useModule.selectedPackage,
34460
+ viewOnly = _useModule.viewOnly;
33899
34461
  useTools({
33900
34462
  packageId: packageId,
33901
34463
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -33910,10 +34472,10 @@ var TableTabGroups = observer(function () {
33910
34472
  return {
33911
34473
  //TODO: Es gibt globale Tabgroups, die vordefiniert sind und pro Enricher Paket nochmals angepasst werden können -endpoint anpassen?
33912
34474
  read: apiConfig.enricherService + '/packages/${packageId}/tabgroups',
33913
- create: apiConfig.enricherService + '/packages/${packageId}/tabgroups',
33914
- restore: apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
33915
- "delete": apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
33916
- 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}',
33917
34479
  bulk: apiConfig.enricherService + '/packages/${packageId}/tabgroups/bulk'
33918
34480
  };
33919
34481
  }, []);
@@ -33927,7 +34489,7 @@ var TableTabGroups = observer(function () {
33927
34489
  field: 'featureNos',
33928
34490
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
33929
34491
  cellDataType: 'lookup',
33930
- editable: true,
34492
+ editable: !viewOnly,
33931
34493
  customParams: {
33932
34494
  nameField: 'featureNosDisplayTexts',
33933
34495
  displayLabelTemplate: '${name} (${value})',
@@ -33941,7 +34503,7 @@ var TableTabGroups = observer(function () {
33941
34503
  },
33942
34504
  additionalFields: ['featureNosDisplayTexts'],
33943
34505
  isDictionary: true
33944
- }, 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), {
33945
34507
  field: 'organizationId',
33946
34508
  editable: false,
33947
34509
  hide: true,
@@ -33971,7 +34533,7 @@ var TableTabGroups = observer(function () {
33971
34533
  cellDataType: 'objectId'
33972
34534
  }]
33973
34535
  };
33974
- }, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
34536
+ }, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
33975
34537
  return /*#__PURE__*/jsxs(Fragment, {
33976
34538
  children: [/*#__PURE__*/jsx(Descriptions$1, {
33977
34539
  title: /*#__PURE__*/jsxs("div", {
@@ -33999,7 +34561,8 @@ var TablePartlistPos = observer(function () {
33999
34561
  packageId = _useModule.packageId,
34000
34562
  organizationId = _useModule.organizationId,
34001
34563
  apiConfig = _useModule.apiConfig,
34002
- selectedPackage = _useModule.selectedPackage;
34564
+ selectedPackage = _useModule.selectedPackage,
34565
+ viewOnly = _useModule.viewOnly;
34003
34566
  useTools({
34004
34567
  packageId: packageId,
34005
34568
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -34025,10 +34588,10 @@ var TablePartlistPos = observer(function () {
34025
34588
  var apiInterface = useMemo(function () {
34026
34589
  return {
34027
34590
  read: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34028
- create: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34029
- restore: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34030
- "delete": apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34031
- 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}',
34032
34595
  bulk: apiConfig.enricherService + '/packages/${packageId}/partlistpos/bulk'
34033
34596
  };
34034
34597
  }, []);
@@ -34041,12 +34604,12 @@ var TablePartlistPos = observer(function () {
34041
34604
  colDef: [{
34042
34605
  headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
34043
34606
  field: 'retailPrefix',
34044
- editable: true,
34607
+ editable: !viewOnly,
34045
34608
  pinned: 'left'
34046
34609
  }, {
34047
34610
  headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
34048
34611
  field: 'retailArtilceNumber',
34049
- editable: true,
34612
+ editable: !viewOnly,
34050
34613
  pinned: 'left'
34051
34614
  }, {
34052
34615
  headerName: 'backoffice.idmEnricher.partlistpos.label.partlistKey',
@@ -34148,7 +34711,7 @@ var TablePartlistPos = observer(function () {
34148
34711
  cellDataType: 'objectId'
34149
34712
  }]
34150
34713
  };
34151
- }, [apiInterface, posInvisibility]);
34714
+ }, [apiInterface, posInvisibility, viewOnly]);
34152
34715
  return /*#__PURE__*/jsxs(Fragment, {
34153
34716
  children: [/*#__PURE__*/jsx(Descriptions$1, {
34154
34717
  title: /*#__PURE__*/jsxs("div", {
@@ -34449,8 +35012,8 @@ var space = "space-T5Mkd";
34449
35012
  var input$1 = "input-SK-Fo";
34450
35013
  var addButton$1 = "addButton-AVN8Y";
34451
35014
  var helpText = "helpText-QYQQF";
34452
- 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";
34453
- 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);
34454
35017
 
34455
35018
  function PriceFactorCellRenderer(props) {
34456
35019
  var data = props.data,
@@ -34666,8 +35229,8 @@ var difference = "difference-xT9ZP";
34666
35229
  var differencePositive = "differencePositive-hGhZO";
34667
35230
  var differenceNegative = "differenceNegative-3CEZA";
34668
35231
  var differenceNeutral = "differenceNeutral-wx8oE";
34669
- 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";
34670
- 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);
34671
35234
 
34672
35235
  function PriceDisplayCellRenderer(props) {
34673
35236
  var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
@@ -34733,59 +35296,129 @@ function getPriceFeatureGroups(selectedSerie, language) {
34733
35296
  if (!(selectedSerie !== null && selectedSerie !== void 0 && selectedSerie.pricefeaturegroups)) {
34734
35297
  return [];
34735
35298
  }
34736
- 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) {
34737
35300
  var _selectedSerie$pricef2, _selectedSerie$pricef3;
34738
35301
  return {
34739
- id: priceFeatureGroups,
34740
- 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,
34741
35304
  keys: [],
34742
35305
  keysDisplayTexts: []
34743
35306
  };
34744
35307
  });
34745
- (_selectedSerie$pricef4 = selectedSerie.pricefeaturegroupsKeys) === null || _selectedSerie$pricef4 === void 0 || _selectedSerie$pricef4.forEach(function (priceFeatureGroupKey, i) {
34746
- var pfgSplit = priceFeatureGroupKey.split('_');
34747
- 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];
34748
35311
  var pfg = priceFeatureGroups.find(function (pfg) {
34749
35312
  return pfg.id == pfgId;
34750
35313
  });
34751
35314
  if (pfg) {
34752
35315
  var _selectedSerie$pricef5;
34753
- pfg.keys.push(priceFeatureGroupKey);
35316
+ pfg.keys.push(priceGroupKey);
34754
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()]);
34755
35318
  }
34756
35319
  });
34757
35320
  return priceFeatureGroups;
34758
35321
  }
34759
35322
 
34760
- var wrapper$3 = "wrapper-5t6RT";
34761
35323
  var input = "input-leHam";
34762
35324
  var disabled$1 = "disabled-Llkqu";
34763
- 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";
34764
- 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);
34765
35327
 
35328
+ var _excluded = ["onSave", "value"];
34766
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; }
34767
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; }
34768
- function PriceFactorInput(props) {
34769
- return /*#__PURE__*/jsxs("div", {
34770
- className: classnames(wrapper$3, props.className),
34771
- children: [props.title, /*#__PURE__*/jsx(Tooltip$1, {
34772
- title: props.tooltip,
34773
- children: /*#__PURE__*/jsx("div", {
34774
- id: "price-factor-input",
34775
- className: classnames(input, _defineProperty({}, disabled$1, props.disabled)),
34776
- children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
34777
- isNotInAGGrid: true
34778
- }))
34779
- })
34780
- })]
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
+ })
34781
35355
  });
34782
35356
  }
34783
35357
 
34784
35358
  var inputHeader = "input-header--4KDP";
34785
35359
  var factorInput = "factor-input-MX85Z";
34786
- 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";
34787
35403
  styleInject(css_248z$a);
34788
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
+
34789
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; }
34790
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; }
34791
35424
  var Prices = observer(function (_ref) {
@@ -34794,11 +35427,89 @@ var Prices = observer(function (_ref) {
34794
35427
  packageId = _ref.packageId,
34795
35428
  apiConfig = _ref.apiConfig,
34796
35429
  pricelist = _ref.pricelist,
34797
- setNodeDataValue = _ref.setNodeDataValue;
35430
+ setNodeDataValue = _ref.setNodeDataValue,
35431
+ viewOnly = _ref.viewOnly;
34798
35432
  var _useTranslation = useTranslation(),
34799
35433
  t = _useTranslation.t;
35434
+ var root = useStore();
35435
+ var spreadsheetRef = useRef(null);
34800
35436
  var _useEnricherContext = useEnricherContext(['pricelists']),
34801
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]);
34802
35513
  var updatePgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
34803
35514
  if (!selectedSerie) return;
34804
35515
 
@@ -34922,6 +35633,34 @@ var Prices = observer(function (_ref) {
34922
35633
  seriePricefactors: newFactors
34923
35634
  });
34924
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
+ }
34925
35664
  var applicationData = useMemo(function () {
34926
35665
  return {
34927
35666
  organizationId: organizationId,
@@ -34932,10 +35671,10 @@ var Prices = observer(function (_ref) {
34932
35671
  }, [organizationId, packageId, selectedSerie, pricelist]);
34933
35672
  var apiInterface = useMemo(function () {
34934
35673
  return {
34935
- read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices',
34936
- 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}'
34937
35676
  };
34938
- }, []);
35677
+ }, [onlyManual]);
34939
35678
  var priceFeatureGroups = usePriceFeatureGroupsFromSerie(selectedSerie);
34940
35679
  var configuration = useMemo(function () {
34941
35680
  var _priceFeatureGroups$m;
@@ -35033,16 +35772,57 @@ var Prices = observer(function (_ref) {
35033
35772
  sortable: false,
35034
35773
  editable: false
35035
35774
  }].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups === null || priceFeatureGroups === void 0 ? void 0 : priceFeatureGroups.map(function (priceFeatureGroup) {
35036
- var _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
35775
+ var _pricelist$pfgPricefa, _pricelist$pfgPricefa2, _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
35037
35776
  return {
35038
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
+ },
35039
35819
  marryChildren: true,
35040
- children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceFeatureGroupItem, j) {
35041
- 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;
35042
35822
  return {
35043
- headerName: priceFeatureGroupItem,
35044
- field: "prices.".concat(priceFeatureGroupItem),
35045
- editable: true,
35823
+ headerName: priceGroup,
35824
+ field: "prices.".concat(priceGroup),
35825
+ editable: !viewOnly,
35046
35826
  filter: false,
35047
35827
  sortable: false,
35048
35828
  isDictionary: true,
@@ -35051,31 +35831,49 @@ var Prices = observer(function (_ref) {
35051
35831
  cellRenderer: PriceDisplayCellRenderer,
35052
35832
  cellRendererParams: {
35053
35833
  commas: pricelist.commas,
35054
- item: priceFeatureGroupItem
35834
+ item: priceGroup
35055
35835
  },
35056
- additionalFields: ["origPrices.".concat(priceFeatureGroupItem)],
35836
+ additionalFields: ["origPrices.".concat(priceGroup)],
35057
35837
  headerClass: inputHeader,
35058
35838
  headerComponentParams: {
35059
- additionalElement: /*#__PURE__*/jsx(PriceFactorInput, {
35839
+ additionalElement: /*#__PURE__*/jsx(PriceFactorHeaderComponent, {
35060
35840
  onSave: (/*#__PURE__*/function () {
35061
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, value) {
35062
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
35063
- 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) {
35064
35844
  case 0:
35065
- updatePgPriceFactor(priceFeatureGroupItem, value);
35845
+ updatePgPriceFactor(priceGroup, value);
35066
35846
  case 1:
35067
35847
  case "end":
35068
- return _context3.stop();
35848
+ return _context5.stop();
35069
35849
  }
35070
- }, _callee3);
35850
+ }, _callee5);
35071
35851
  }));
35072
- return function (_x5, _x6) {
35073
- return _ref4.apply(this, arguments);
35852
+ return function (_x8, _x9) {
35853
+ return _ref6.apply(this, arguments);
35074
35854
  };
35075
35855
  }()),
35076
- 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],
35077
- className: factorInput,
35078
- tooltip: t('backoffice.idmCatalog.prices.priceFactor.label.pfg')
35856
+ value: (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 || (_pricelist$pgPricefac = _pricelist$pgPricefac[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[priceGroup],
35857
+ onPriorityChange: (/*#__PURE__*/function () {
35858
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(value) {
35859
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
35860
+ while (1) switch (_context6.prev = _context6.next) {
35861
+ case 0:
35862
+ updatePgPriority(priceGroup, value);
35863
+ case 1:
35864
+ case "end":
35865
+ return _context6.stop();
35866
+ }
35867
+ }, _callee6);
35868
+ }));
35869
+ return function (_x10) {
35870
+ return _ref7.apply(this, arguments);
35871
+ };
35872
+ }()),
35873
+ priority: !!((_pricelist$pgPricefac2 = pricelist.pgPricefactorsPriority) !== null && _pricelist$pgPricefac2 !== void 0 && (_pricelist$pgPricefac2 = _pricelist$pgPricefac2[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) !== null && _pricelist$pgPricefac2 !== void 0 && _pricelist$pgPricefac2.includes(priceGroup)),
35874
+ priorityForced: !!((_pricelist$pfgPricefa3 = pricelist.pfgPricefactorsPriority) !== null && _pricelist$pfgPricefa3 !== void 0 && (_pricelist$pfgPricefa3 = _pricelist$pfgPricefa3[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) !== null && _pricelist$pfgPricefa3 !== void 0 && _pricelist$pfgPricefa3.includes(priceFeatureGroup.id)),
35875
+ inputTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pg',
35876
+ checkboxTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pgPriority'
35079
35877
  })
35080
35878
  }
35081
35879
  };
@@ -35126,7 +35924,7 @@ var Prices = observer(function (_ref) {
35126
35924
  cellDataType: 'objectId'
35127
35925
  }])
35128
35926
  };
35129
- }, [apiInterface, selectedSerie, pricelist, priceFeatureGroups]);
35927
+ }, [apiInterface, selectedSerie, pricelist, priceFeatureGroups, viewOnly]);
35130
35928
  return /*#__PURE__*/jsxs(Fragment, {
35131
35929
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35132
35930
  title: /*#__PURE__*/jsx("div", {
@@ -35134,26 +35932,55 @@ var Prices = observer(function (_ref) {
35134
35932
  style: {
35135
35933
  "float": 'right'
35136
35934
  },
35137
- children: [/*#__PURE__*/jsx(PriceFactorInput, {
35138
- 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, {
35139
35962
  title: t('backoffice.idmCatalog.prices.priceFactor.label.series'),
35140
- onSave: (/*#__PURE__*/function () {
35141
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_, value) {
35142
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
35143
- while (1) switch (_context4.prev = _context4.next) {
35144
- case 0:
35145
- updateSeriePriceFactor(value);
35146
- case 1:
35147
- case "end":
35148
- return _context4.stop();
35149
- }
35150
- }, _callee4);
35151
- }));
35152
- return function (_x7, _x8) {
35153
- return _ref5.apply(this, arguments);
35154
- };
35155
- }()),
35156
- 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
+ })
35157
35984
  }), /*#__PURE__*/jsx(SeriesSelector$3, {
35158
35985
  modules: ['pricelists'],
35159
35986
  dataSet: "lookup"
@@ -35161,6 +35988,7 @@ var Prices = observer(function (_ref) {
35161
35988
  })
35162
35989
  })
35163
35990
  }), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
35991
+ ref: spreadsheetRef,
35164
35992
  gridId: 'crud-grid_enricherprices',
35165
35993
  applicationData: applicationData,
35166
35994
  configuration: configuration
@@ -35178,7 +36006,8 @@ var TablePriceList = observer(function () {
35178
36006
  packageId = _useModule.packageId,
35179
36007
  organizationId = _useModule.organizationId,
35180
36008
  apiConfig = _useModule.apiConfig,
35181
- selectedPackage = _useModule.selectedPackage;
36009
+ selectedPackage = _useModule.selectedPackage,
36010
+ viewOnly = _useModule.viewOnly;
35182
36011
  var _React$useState = React.useState(),
35183
36012
  _React$useState2 = _slicedToArray(_React$useState, 2),
35184
36013
  selectedPriceList = _React$useState2[0],
@@ -35206,7 +36035,8 @@ var TablePriceList = observer(function () {
35206
36035
  packageId: packageId,
35207
36036
  apiConfig: apiConfig,
35208
36037
  pricelist: selectedPriceList,
35209
- setNodeDataValue: setNodeDataValue
36038
+ setNodeDataValue: setNodeDataValue,
36039
+ viewOnly: viewOnly
35210
36040
  },
35211
36041
  startWidth: 300,
35212
36042
  defaultPinned: false,
@@ -35230,10 +36060,10 @@ var TablePriceList = observer(function () {
35230
36060
  var apiInterface = useMemo(function () {
35231
36061
  return {
35232
36062
  read: apiConfig.enricherService + '/packages/${packageId}/pricelists',
35233
- create: apiConfig.enricherService + '/packages/${packageId}/pricelists',
35234
- restore: apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
35235
- "delete": apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
35236
- 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}'
35237
36067
  };
35238
36068
  }, []);
35239
36069
  var hooks = useMemo(function () {
@@ -35278,11 +36108,11 @@ var TablePriceList = observer(function () {
35278
36108
  colDef: [{
35279
36109
  headerName: 'backoffice.idmEnricher.pricelists.label.name',
35280
36110
  field: 'name',
35281
- editable: true
36111
+ editable: !viewOnly
35282
36112
  }, {
35283
36113
  headerName: 'backoffice.idmEnricher.pricelists.label.basedPricelistId',
35284
36114
  field: 'basedPricelistId',
35285
- editable: true,
36115
+ editable: !viewOnly,
35286
36116
  cellDataType: 'lookup',
35287
36117
  customParams: {
35288
36118
  filterCellType: 'id',
@@ -35312,7 +36142,7 @@ var TablePriceList = observer(function () {
35312
36142
  }, {
35313
36143
  headerName: 'backoffice.idmEnricher.pricelists.label.rounding',
35314
36144
  field: 'rounding',
35315
- editable: true,
36145
+ editable: !viewOnly,
35316
36146
  cellDataType: 'enum',
35317
36147
  customParams: {
35318
36148
  enumData: roundingOptions,
@@ -35321,25 +36151,25 @@ var TablePriceList = observer(function () {
35321
36151
  }, {
35322
36152
  headerName: 'backoffice.idmEnricher.pricelists.label.commas',
35323
36153
  field: 'commas',
35324
- editable: true,
36154
+ editable: !viewOnly,
35325
36155
  cellDataType: 'number'
35326
36156
  }, {
35327
36157
  headerName: 'backoffice.idmEnricher.pricelists.label.currency',
35328
36158
  field: 'currency',
35329
36159
  cellDataType: 'enum',
35330
- editable: true,
36160
+ editable: !viewOnly,
35331
36161
  customParams: {
35332
36162
  enumData: getCurrencyKey(t)
35333
36163
  }
35334
36164
  }, {
35335
36165
  headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
35336
36166
  field: 'forPublishing',
35337
- editable: true,
36167
+ editable: !viewOnly,
35338
36168
  cellDataType: 'boolean'
35339
36169
  }, {
35340
36170
  headerName: 'backoffice.idmEnricher.pricelists.label.validFrom',
35341
36171
  field: 'validFrom',
35342
- editable: true,
36172
+ editable: !viewOnly,
35343
36173
  cellDataType: 'dateString',
35344
36174
  customParams: {
35345
36175
  dateFormat: 'DD.MM.YYYY'
@@ -35347,7 +36177,7 @@ var TablePriceList = observer(function () {
35347
36177
  }, {
35348
36178
  headerName: 'backoffice.idmEnricher.pricelists.label.validTo',
35349
36179
  field: 'validTo',
35350
- editable: true,
36180
+ editable: !viewOnly,
35351
36181
  cellDataType: 'dateString',
35352
36182
  customParams: {
35353
36183
  dateFormat: 'DD.MM.YYYY'
@@ -35405,9 +36235,24 @@ var TablePriceList = observer(function () {
35405
36235
  cellDataType: 'object',
35406
36236
  editable: false,
35407
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
35408
36253
  }]
35409
36254
  };
35410
- }, [apiInterface, i18n.language]);
36255
+ }, [apiInterface, i18n.language, viewOnly]);
35411
36256
  return /*#__PURE__*/jsxs(Fragment, {
35412
36257
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35413
36258
  title: /*#__PURE__*/jsxs("div", {
@@ -35896,24 +36741,34 @@ var useCatalogContext = function useCatalogContext() {
35896
36741
  root.contextStore.clearContext('catalog');
35897
36742
  }
35898
36743
 
35899
- // Only update if catalog changed
35900
- // 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
35901
36745
  var currentCatalog = getContext().selectedCatalog;
35902
- if (currentCatalog._id === newCatalog._id && currentCatalog.name === newCatalog.name && JSON.stringify(currentCatalog.isoLanguageIds) === JSON.stringify(newCatalog.isoLanguageIds)) {
35903
- 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;
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;
35904
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
+ });
35905
36771
 
35906
- // Update any field catalog changed
35907
- root.contextStore.updateContext('catalog', {
35908
- selectedCatalog: newCatalog,
35909
- catalogId: newCatalog._id,
35910
- selectedSerie: undefined,
35911
- selectedItem: undefined,
35912
- selectedFeature: undefined,
35913
- seriesSelectorState: createDefaultSelectState('seriesSelectorState'),
35914
- featureSelectorState: createDefaultSelectState('featureSelectorState')
35915
- });
35916
- if (currentCatalog._id !== newCatalog._id) {
35917
36772
  // Update URL only if the id changed
35918
36773
  navigate(path + newCatalog._id + (modules.length ? '/' + modules.join('/') : '') + (searchParams ? '?' + searchParams.toString() : ''));
35919
36774
  }
@@ -36742,27 +37597,22 @@ var CatalogSelector$1 = observer(CatalogSelector);
36742
37597
  var SeriesSelector = function SeriesSelector(_ref) {
36743
37598
  var modules = _ref.modules;
36744
37599
  var _useTranslation = useTranslation(),
36745
- t = _useTranslation.t,
36746
- i18n = _useTranslation.i18n;
36747
- var _useCatalogContext = useCatalogContext(modules),
36748
- catalogId = _useCatalogContext.catalogId,
36749
- idmService = _useCatalogContext.idmService,
36750
- selectedSerie = _useCatalogContext.selectedSerie,
36751
- setSelectedSerie = _useCatalogContext.setSelectedSerie,
36752
- 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;
36753
37608
  return /*#__PURE__*/jsx(SimpleSelect, {
36754
37609
  sharedState: seriesSelectorState,
36755
- apiInterface: {
36756
- read: idmService + '/v3.0/catalogs/' + catalogId + "/series?fields=seriesName[".concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts")
36757
- },
36758
- selectMapping: {
36759
- label: "${seriesName.".concat(i18n.language.toLocaleUpperCase(), "}"),
36760
- value: '${_id}'
36761
- },
37610
+ apiInterface: apiInterface,
37611
+ selectMapping: selectMapping,
36762
37612
  autoSelectFirst: true,
36763
37613
  title: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries'),
36764
37614
  value: selectedSerie,
36765
- onChange: setSelectedSerie,
37615
+ onChange: onChange,
36766
37616
  search: true,
36767
37617
  style: {
36768
37618
  width: 200
@@ -36771,6 +37621,95 @@ var SeriesSelector = function SeriesSelector(_ref) {
36771
37621
  }, catalogId);
36772
37622
  };
36773
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
+ };
36774
37713
 
36775
37714
  function useModule (currentModules) {
36776
37715
  var root = useStore();
@@ -37220,18 +38159,19 @@ var TableItems = observer(function () {
37220
38159
  apiConfig = _useModule.apiConfig,
37221
38160
  organizationId = _useModule.organizationId;
37222
38161
  useTools({
37223
- catalogId: catalogId,
37224
- serie: selectedSerie,
37225
- setSerie: setSelectedSerie,
37226
- setArticle: setSelectedItem,
37227
- item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
37228
- });
38162
+ catalogId: catalogId,
38163
+ serie: selectedSerie,
38164
+ setSerie: setSelectedSerie,
38165
+ setArticle: setSelectedItem,
38166
+ item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
38167
+ });
37229
38168
  var hooks = useMemo(function () {
37230
38169
  return {
37231
38170
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37232
38171
  // Check if all selections are from the same node
37233
38172
  if (event.selection.length == 1) {
37234
- 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);
37235
38175
  }
37236
38176
  }
37237
38177
  };
@@ -37264,9 +38204,9 @@ var TableSeries = observer(function () {
37264
38204
  var _useTranslation = useTranslation(),
37265
38205
  t = _useTranslation.t;
37266
38206
  var _useModule = useModule(['series']),
37267
- setGlobalSelectedSerie = _useModule.setSelectedSerie,
37268
38207
  selectedCatalog = _useModule.selectedCatalog,
37269
38208
  selectedGlobalSerie = _useModule.selectedSerie,
38209
+ setGlobalSelectedSerie = _useModule.setSelectedSerie,
37270
38210
  catalogId = _useModule.catalogId,
37271
38211
  organizationId = _useModule.organizationId,
37272
38212
  apiConfig = _useModule.apiConfig;
@@ -37310,8 +38250,9 @@ var TableSeries = observer(function () {
37310
38250
  return {
37311
38251
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37312
38252
  if (event.selection.length == 1) {
37313
- setGlobalSelectedSerie(event.selection[0].node.data);
37314
- 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);
37315
38256
  } else {
37316
38257
  setSelectedSerie(null);
37317
38258
  }
@@ -37647,8 +38588,9 @@ var TableFeatures = observer(function () {
37647
38588
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37648
38589
  // Check if all selections are from the same node
37649
38590
  if (event.selection.length == 1) {
38591
+ var _event$selection$;
37650
38592
  updateConfigurator({
37651
- 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
37652
38594
  });
37653
38595
  }
37654
38596
  }
@@ -37855,8 +38797,9 @@ var TableOptions = observer(function () {
37855
38797
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37856
38798
  // Check if all selections are from the same node
37857
38799
  if (event.selection.length == 1) {
38800
+ var _event$selection$;
37858
38801
  updateConfigurator({
37859
- 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
37860
38803
  });
37861
38804
  }
37862
38805
  }
@@ -41488,7 +42431,7 @@ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
41488
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; }
41489
42432
  var ArticleSelection = function ArticleSelection(_ref) {
41490
42433
  var _ref$state = _ref.state,
41491
- articleList = _ref$state.articleList,
42434
+ itemList = _ref$state.itemList,
41492
42435
  articleCodex = _ref$state.articleCodex,
41493
42436
  setArticleCodex = _ref$state.setArticleCodex,
41494
42437
  setDoReset = _ref$state.setDoReset,
@@ -41500,7 +42443,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
41500
42443
  var groups = [];
41501
42444
  var _loop = function _loop() {
41502
42445
  var _mask$articles;
41503
- var article = articleList[i];
42446
+ var article = itemList[i];
41504
42447
  if (mask !== null && mask !== void 0 && (_mask$articles = mask.articles) !== null && _mask$articles !== void 0 && _mask$articles[article.value].hidden) return 1; // continue
41505
42448
  if (!article.groupName) article.groupName = 'NONE';
41506
42449
  var group = groups.find(function (g) {
@@ -41516,7 +42459,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
41516
42459
  });
41517
42460
  }
41518
42461
  };
41519
- for (var i = 0; i < articleList.length; i++) {
42462
+ for (var i = 0; i < itemList.length; i++) {
41520
42463
  if (_loop()) continue;
41521
42464
  }
41522
42465
  return groups.map(function (g) {
@@ -41524,7 +42467,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
41524
42467
  label: t('configuration.group.' + g.label, g.label)
41525
42468
  });
41526
42469
  });
41527
- }, [articleList]);
42470
+ }, [itemList]);
41528
42471
  return /*#__PURE__*/jsxs("div", {
41529
42472
  className: wrapper$1,
41530
42473
  children: [/*#__PURE__*/jsx(Select$1, {
@@ -41571,26 +42514,30 @@ function useWysiwyg$1(_ref) {
41571
42514
  setArticleCodex = _useState6[1];
41572
42515
  var _useState7 = useState([]),
41573
42516
  _useState8 = _slicedToArray(_useState7, 2),
41574
- articleList = _useState8[0],
41575
- setArticleList = _useState8[1];
42517
+ itemList = _useState8[0],
42518
+ setItemList = _useState8[1];
41576
42519
  var _useState9 = useState({
41577
42520
  catalogCodex: (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.catalogCodex
41578
42521
  }),
41579
42522
  _useState10 = _slicedToArray(_useState9, 2),
41580
- catalog = _useState10[0],
41581
- setCatalog = _useState10[1];
42523
+ serie = _useState10[0],
42524
+ setSerie = _useState10[1];
41582
42525
  var _useState11 = useState([]),
41583
42526
  _useState12 = _slicedToArray(_useState11, 2),
41584
- catalogList = _useState12[0],
41585
- setCatalogList = _useState12[1];
41586
- var _useState13 = useState(),
42527
+ serieList = _useState12[0],
42528
+ setSerieList = _useState12[1];
42529
+ var _useState13 = useState(tool.parameters.catalogId),
41587
42530
  _useState14 = _slicedToArray(_useState13, 2),
41588
- currentNav = _useState14[0],
41589
- setCurrentNav = _useState14[1];
42531
+ catalogId = _useState14[0],
42532
+ setCatalogId = _useState14[1];
41590
42533
  var _useState15 = useState(),
41591
42534
  _useState16 = _slicedToArray(_useState15, 2),
41592
- doNavigate = _useState16[0],
41593
- 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];
41594
42541
  useEffect(function () {
41595
42542
  if (!toolbar.hidden) setDoReset(true);
41596
42543
  }, [toolbar.hidden]);
@@ -41653,7 +42600,8 @@ function useWysiwyg$1(_ref) {
41653
42600
  });
41654
42601
  case 3:
41655
42602
  d = _context2.sent;
41656
- _context2.next = 6;
42603
+ setCatalogId(d._id);
42604
+ _context2.next = 7;
41657
42605
  return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs/' + d._id + '/series', {
41658
42606
  method: 'GET',
41659
42607
  headers: _objectSpread$4({}, jwt ? {
@@ -41668,10 +42616,10 @@ function useWysiwyg$1(_ref) {
41668
42616
  return undefined;
41669
42617
  }
41670
42618
  });
41671
- case 6:
42619
+ case 7:
41672
42620
  s = _context2.sent;
41673
- setCatalogList(s.data);
41674
- case 8:
42621
+ setSerieList(s.data);
42622
+ case 9:
41675
42623
  case "end":
41676
42624
  return _context2.stop();
41677
42625
  }
@@ -41705,7 +42653,7 @@ function useWysiwyg$1(_ref) {
41705
42653
  });
41706
42654
  case 3:
41707
42655
  l = _context3.sent;
41708
- setCatalogList(l.data);
42656
+ setSerieList(l.data);
41709
42657
  case 5:
41710
42658
  case "end":
41711
42659
  return _context3.stop();
@@ -41720,7 +42668,7 @@ function useWysiwyg$1(_ref) {
41720
42668
  if (doReset) {
41721
42669
  var _tool$elementProps, _tool$elementProps3;
41722
42670
  if (currentNav) setDoNavigate(currentNav);
41723
- 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) {
41724
42672
  var _tool$elementProps2;
41725
42673
  if ((_tool$elementProps2 = tool.elementProps) !== null && _tool$elementProps2 !== void 0 && _tool$elementProps2.loadPackage) {
41726
42674
  loadPackage(tool.parameters.packageId);
@@ -41739,20 +42687,20 @@ function useWysiwyg$1(_ref) {
41739
42687
  }, [doReset]);
41740
42688
  useEffect(function () {
41741
42689
  setArticleCodex(undefined);
41742
- if (catalog !== null && catalog !== void 0 && catalog.catalogCodex) {
42690
+ if (serie !== null && serie !== void 0 && serie.catalogCodex) {
41743
42691
  var _tool$parameters$pack;
41744
42692
  setMask({
41745
- catalogCodex: catalog.catalogCodex,
42693
+ catalogCodex: serie.catalogCodex,
41746
42694
  accountId: (_tool$parameters$pack = tool.parameters.packageId) !== null && _tool$parameters$pack !== void 0 ? _tool$parameters$pack : tool.parameters.catalogId
41747
42695
  });
41748
42696
  }
41749
- }, [catalog]);
42697
+ }, [serie]);
41750
42698
  useEffect(function () {
41751
42699
  setDoReset(true);
41752
42700
  setArticleCodex(undefined);
41753
- setCatalog(undefined);
41754
- setArticleList([]);
41755
- setCatalogList([]);
42701
+ setSerie(undefined);
42702
+ setItemList([]);
42703
+ setSerieList([]);
41756
42704
  }, [tool.parameters.catalogId, tool.parameters.packageId]);
41757
42705
  var onEventCalled = /*#__PURE__*/function () {
41758
42706
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
@@ -41771,7 +42719,7 @@ function useWysiwyg$1(_ref) {
41771
42719
  groupName: article.groupName
41772
42720
  });
41773
42721
  }
41774
- setArticleList(articles);
42722
+ setItemList(articles);
41775
42723
  if (articleCodex === undefined && articles !== null && articles !== void 0 && (_articles$ = articles[0]) !== null && _articles$ !== void 0 && _articles$.value) setArticleCodex(articles[0].value);
41776
42724
  }
41777
42725
  if (e.type === 'navigatedToOption') {
@@ -41878,20 +42826,21 @@ function useWysiwyg$1(_ref) {
41878
42826
  };
41879
42827
  }, []);
41880
42828
  return {
41881
- articleList: articleList,
41882
- setArticleList: setArticleList,
42829
+ itemList: itemList,
42830
+ setItemList: setItemList,
41883
42831
  articleCodex: articleCodex,
41884
42832
  setArticleCodex: setArticleCodex,
41885
- catalogList: catalogList,
41886
- setCatalogList: setCatalogList,
41887
- catalog: catalog,
41888
- setCatalog: setCatalog,
42833
+ serieList: serieList,
42834
+ setSerieList: setSerieList,
42835
+ serie: serie,
42836
+ setSerie: setSerie,
41889
42837
  settings: settings,
41890
42838
  mask: mask,
41891
42839
  doReset: doReset,
41892
42840
  setDoReset: setDoReset,
41893
42841
  doNavigate: doNavigate,
41894
- setDoNavigate: setDoNavigate
42842
+ setDoNavigate: setDoNavigate,
42843
+ catalogId: catalogId
41895
42844
  };
41896
42845
  }
41897
42846
 
@@ -41943,27 +42892,27 @@ styleInject(css_248z$2);
41943
42892
 
41944
42893
  var CatalogSelection = function CatalogSelection(_ref) {
41945
42894
  var _ref$state = _ref.state,
41946
- catalogList = _ref$state.catalogList,
41947
- catalog = _ref$state.catalog,
41948
- setCatalog = _ref$state.setCatalog,
42895
+ serieList = _ref$state.serieList,
42896
+ serie = _ref$state.serie,
42897
+ setSerie = _ref$state.setSerie,
41949
42898
  setArticleCodex = _ref$state.setArticleCodex,
41950
- setSerie = _ref.setSerie;
42899
+ setSerieProp = _ref.setSerie;
41951
42900
  var _useTranslation = useTranslation(),
41952
42901
  t = _useTranslation.t,
41953
42902
  language = _useTranslation.i18n.language;
41954
42903
  var options = useMemo(function () {
41955
42904
  var groups = [];
41956
- for (var i = 0; i < catalogList.length; i++) {
41957
- var c = catalogList[i];
42905
+ for (var i = 0; i < serieList.length; i++) {
42906
+ var c = serieList[i];
41958
42907
  groups.push({
41959
42908
  value: c.serieNo.toString(),
41960
42909
  label: c.seriesName[language.toUpperCase()]
41961
42910
  });
41962
42911
  }
41963
42912
  return groups;
41964
- }, [catalogList]);
42913
+ }, [serieList]);
41965
42914
  var onChange = function onChange(val) {
41966
- var cat = catalogList.find(function (c) {
42915
+ var cat = serieList.find(function (c) {
41967
42916
  return c.serieNo.toString() == val;
41968
42917
  });
41969
42918
  var catalog = cat ? {
@@ -41971,15 +42920,15 @@ var CatalogSelection = function CatalogSelection(_ref) {
41971
42920
  serieId: cat._id,
41972
42921
  accountId: cat.catalogId
41973
42922
  } : undefined;
41974
- setCatalog(catalog);
42923
+ setSerie(catalog);
41975
42924
  setArticleCodex(undefined);
41976
- setSerie === null || setSerie === void 0 || setSerie(cat);
42925
+ setSerieProp === null || setSerieProp === void 0 || setSerieProp(cat);
41977
42926
  };
41978
42927
  return /*#__PURE__*/jsx("div", {
41979
42928
  className: wrapper,
41980
42929
  children: /*#__PURE__*/jsx(Select$1, {
41981
42930
  placeholder: t('backoffice.configurator.serie.placeholder'),
41982
- value: catalog === null || catalog === void 0 ? void 0 : catalog.catalogCodex,
42931
+ value: serie === null || serie === void 0 ? void 0 : serie.catalogCodex,
41983
42932
  options: options,
41984
42933
  onChange: onChange,
41985
42934
  className: select
@@ -41991,7 +42940,7 @@ var CatalogSelection$1 = observer(CatalogSelection);
41991
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; }
41992
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; }
41993
42942
  var Wsyiwyg = function Wsyiwyg(_ref) {
41994
- 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;
41995
42944
  var tool = _ref.tool,
41996
42945
  toolbar = _ref.toolbar;
41997
42946
  var _useDivaCore = useDivaCore(),
@@ -42010,17 +42959,32 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
42010
42959
  }, [tool.parameters]);
42011
42960
  useEffect(function () {
42012
42961
  if (tool.elementProps.initSerie) {
42013
- state.setCatalog({
42014
- serieId: tool.elementProps.initSerie.serieId,
42015
- catalogCodex: tool.elementProps.initSerie.serieNo.toString()
42016
- });
42017
- 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
+ }
42018
42982
  }
42019
42983
  if (tool.elementProps.initItem) {
42020
42984
  state.setArticleCodex(tool.elementProps.initItem);
42021
42985
  }
42022
- }, [tool.elementProps.initItem, tool.elementProps.initSerie]);
42023
- 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)) {
42024
42988
  if (tool.elementProps.showCatalogSelection) {
42025
42989
  return /*#__PURE__*/jsx(CatalogSelection$1, {
42026
42990
  state: state,
@@ -42058,11 +43022,11 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
42058
43022
  resetArticle: '',
42059
43023
  disableToggle: '1',
42060
43024
  startDivaNr: 'DIVA-000000',
42061
- 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
42062
- }, (_state$catalog3 = state.catalog) !== null && _state$catalog3 !== void 0 && _state$catalog3.serieId ? {
42063
- 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
42064
43028
  } : {}), {}, {
42065
- 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,
42066
43030
  returnTo: 'DONT_SAVE_BASKET',
42067
43031
  organizationId: organizationId,
42068
43032
  no3DConnection: 'true'