@carbon/ibmdotcom-services 2.13.1 → 2.14.0-rc.1

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 (99) hide show
  1. package/README.md +3 -3
  2. package/es/services/DDO/DDO.js +2 -2
  3. package/es/services/Locale/Locale.js +1 -1
  4. package/es/services/VideoPlayer/VideoPlayer.js +2 -2
  5. package/es/services/global/global.js +2 -2
  6. package/lib/services/DDO/DDO.js +8 -3
  7. package/lib/services/Locale/Locale.js +1 -1
  8. package/lib/services/VideoPlayer/VideoPlayer.js +7 -2
  9. package/lib/services/global/global.js +2 -2
  10. package/package.json +4 -4
  11. package/telemetry.yml +1 -1
  12. package/umd/ibmdotcom-services.js +3 -3
  13. package/umd/ibmdotcom-services.min.js +1 -1
  14. package/es/internal/vendor/@carbon/ibmdotcom-utilities/index.js +0 -8
  15. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +0 -569
  16. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/index.js +0 -8
  17. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/altlangs/altlangs.js +0 -34
  18. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/altlangs/index.js +0 -8
  19. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/calculateTotalWidth/calculateTotalWidth.js +0 -30
  20. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/calculateTotalWidth/index.js +0 -8
  21. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/decodeString/decodeString.js +0 -26
  22. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/decodeString/index.js +0 -8
  23. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/deprecate/deprecate.js +0 -21
  24. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/deprecate/index.js +0 -8
  25. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/escaperegexp/escaperegexp.js +0 -23
  26. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/escaperegexp/index.js +0 -8
  27. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/featureflag/featureflag.js +0 -21
  28. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/featureflag/index.js +0 -8
  29. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +0 -101
  30. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/formatVideoCaption/formatVideoCaption.js +0 -46
  31. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/formatVideoCaption/index.js +0 -8
  32. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/index.js +0 -24
  33. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/index.js +0 -8
  34. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +0 -132
  35. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/index.js +0 -8
  36. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex.js +0 -112
  37. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/index.js +0 -8
  38. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +0 -88
  39. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/on/index.js +0 -8
  40. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/on/on.js +0 -27
  41. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/index.js +0 -8
  42. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +0 -40
  43. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/index.js +0 -8
  44. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +0 -43
  45. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/sameHeight/index.js +0 -8
  46. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/sameHeight/sameHeight.js +0 -48
  47. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/serialize/index.js +0 -8
  48. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/serialize/serialize.js +0 -36
  49. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/index.js +0 -8
  50. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +0 -22
  51. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/index.js +0 -8
  52. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/smoothScroll.js +0 -39
  53. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/stripHTML/index.js +0 -8
  54. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/stripHTML/stripHTML.js +0 -23
  55. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/uniqueid/index.js +0 -8
  56. package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/uniqueid/uniqueid.js +0 -34
  57. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/index.js +0 -16
  58. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +0 -576
  59. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/index.js +0 -13
  60. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/altlangs/altlangs.js +0 -40
  61. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/altlangs/index.js +0 -13
  62. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/calculateTotalWidth/calculateTotalWidth.js +0 -36
  63. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/calculateTotalWidth/index.js +0 -13
  64. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/decodeString/decodeString.js +0 -32
  65. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/decodeString/index.js +0 -13
  66. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/deprecate/deprecate.js +0 -27
  67. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/deprecate/index.js +0 -13
  68. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/escaperegexp/escaperegexp.js +0 -29
  69. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/escaperegexp/index.js +0 -13
  70. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/featureflag/featureflag.js +0 -27
  71. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/featureflag/index.js +0 -13
  72. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +0 -106
  73. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/formatVideoCaption/formatVideoCaption.js +0 -53
  74. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/formatVideoCaption/index.js +0 -16
  75. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/index.js +0 -192
  76. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/index.js +0 -13
  77. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +0 -138
  78. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/index.js +0 -13
  79. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex.js +0 -118
  80. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/index.js +0 -13
  81. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +0 -95
  82. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/on/index.js +0 -13
  83. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/on/on.js +0 -33
  84. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/index.js +0 -13
  85. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +0 -46
  86. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/index.js +0 -13
  87. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +0 -50
  88. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/sameHeight/index.js +0 -13
  89. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/sameHeight/sameHeight.js +0 -53
  90. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/serialize/index.js +0 -13
  91. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/serialize/serialize.js +0 -42
  92. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/index.js +0 -13
  93. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +0 -28
  94. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/index.js +0 -13
  95. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/smoothScroll.js +0 -45
  96. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/stripHTML/index.js +0 -13
  97. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/stripHTML/stripHTML.js +0 -29
  98. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/uniqueid/index.js +0 -13
  99. package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/uniqueid/uniqueid.js +0 -40
package/README.md CHANGED
@@ -46,9 +46,9 @@ and our
46
46
 
47
47
  ## <picture><source height="20" width="20" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-dark.svg"><source height="20" width="20" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"><img height="20" width="20" alt="IBM Telemetry" src="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"></picture> IBM Telemetry
48
48
 
49
- This package uses IBM Telemetry to collect metrics data. By installing this
50
- package as a dependency you are agreeing to telemetry collection. To opt out,
51
- see
49
+ This package uses IBM Telemetry to collect de-identified and anonymized metrics
50
+ data. By installing this package as a dependency you are agreeing to telemetry
51
+ collection. To opt out, see
52
52
  [Opting out of IBM Telemetry data collection](https://github.com/ibm-telemetry/telemetry-js/tree/main#opting-out-of-ibm-telemetry-data-collection).
53
53
  For more information on the data being collected, please see the
54
54
  [IBM Telemetry documentation](https://github.com/ibm-telemetry/telemetry-js/tree/main#ibm-telemetry-collection-basics).
@@ -3,13 +3,13 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  /**
6
- * Copyright IBM Corp. 2020, 2023
6
+ * Copyright IBM Corp. 2020, 2024
7
7
  *
8
8
  * This source code is licensed under the Apache-2.0 license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  */
11
11
 
12
- import settings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';
12
+ import settings from '@carbon/ibmdotcom-utilities/es/utilities/settings/settings.js';
13
13
  import root from 'window-or-global';
14
14
 
15
15
  /**
@@ -12,7 +12,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
12
12
 
13
13
  import axios from 'axios';
14
14
  import { DDOAPI } from '../DDO';
15
- import ipcinfoCookie from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie';
15
+ import ipcinfoCookie from '@carbon/ibmdotcom-utilities/es/utilities/ipcinfoCookie/ipcinfoCookie.js';
16
16
  import root from 'window-or-global';
17
17
 
18
18
  /**
@@ -8,13 +8,13 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
9
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  /**
11
- * Copyright IBM Corp. 2020, 2023
11
+ * Copyright IBM Corp. 2020, 2024
12
12
  *
13
13
  * This source code is licensed under the Apache-2.0 license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
16
 
17
- import deprecate from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/deprecate/deprecate';
17
+ import deprecate from '@carbon/ibmdotcom-utilities/es/utilities/deprecate/deprecate.js';
18
18
  import KalturaPlayerAPI from '../KalturaPlayer/KalturaPlayer';
19
19
 
20
20
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2020, 2023
2
+ * Copyright IBM Corp. 2020, 2024
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { AnalyticsAPI } from '../Analytics';
9
9
  import { DDOAPI } from '../DDO';
10
- import loadNonLatinPlex from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex';
10
+ import loadNonLatinPlex from '@carbon/ibmdotcom-utilities/es/utilities/loadNonLatinPlex/loadNonLatinPlex.js';
11
11
  import { LocaleAPI } from '../Locale';
12
12
 
13
13
  /**
@@ -9,14 +9,19 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
10
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
11
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
- var _settings = _interopRequireDefault(require("../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings"));
12
+ var _settings = _interopRequireDefault(require("@carbon/ibmdotcom-utilities/lib/utilities/settings/settings.js"));
13
13
  var _windowOrGlobal = _interopRequireDefault(require("window-or-global"));
14
14
  /**
15
- * Copyright IBM Corp. 2020, 2023
15
+ * Copyright IBM Corp. 2020, 2024
16
16
  *
17
17
  * This source code is licensed under the Apache-2.0 license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */
19
+ */ /**
20
+ * Copyright IBM Corp. 2020, 2024
21
+ *
22
+ * This source code is licensed under the Apache-2.0 license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ */
20
25
 
21
26
  /**
22
27
  * Returns boolean if the isDataLayerReady flag is true
@@ -12,7 +12,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
12
12
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
13
  var _axios = _interopRequireDefault(require("axios"));
14
14
  var _DDO = require("../DDO");
15
- var _ipcinfoCookie = _interopRequireDefault(require("../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie"));
15
+ var _ipcinfoCookie = _interopRequireDefault(require("@carbon/ibmdotcom-utilities/lib/utilities/ipcinfoCookie/ipcinfoCookie.js"));
16
16
  var _windowOrGlobal = _interopRequireDefault(require("window-or-global"));
17
17
  /**
18
18
  * Copyright IBM Corp. 2020, 2024
@@ -12,11 +12,16 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
12
12
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
14
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
- var _deprecate = _interopRequireDefault(require("../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/deprecate/deprecate"));
15
+ var _deprecate = _interopRequireDefault(require("@carbon/ibmdotcom-utilities/lib/utilities/deprecate/deprecate.js"));
16
16
  var _KalturaPlayer = _interopRequireDefault(require("../KalturaPlayer/KalturaPlayer"));
17
17
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
18
18
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
19
- * Copyright IBM Corp. 2020, 2023
19
+ * Copyright IBM Corp. 2020, 2024
20
+ *
21
+ * This source code is licensed under the Apache-2.0 license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ */ /**
24
+ * Copyright IBM Corp. 2020, 2024
20
25
  *
21
26
  * This source code is licensed under the Apache-2.0 license found in the
22
27
  * LICENSE file in the root directory of this source tree.
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.globalInit = globalInit;
8
8
  var _Analytics = require("../Analytics");
9
9
  var _DDO = require("../DDO");
10
- var _loadNonLatinPlex = _interopRequireDefault(require("../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex"));
10
+ var _loadNonLatinPlex = _interopRequireDefault(require("@carbon/ibmdotcom-utilities/lib/utilities/loadNonLatinPlex/loadNonLatinPlex.js"));
11
11
  var _Locale = require("../Locale");
12
12
  /**
13
- * Copyright IBM Corp. 2020, 2023
13
+ * Copyright IBM Corp. 2020, 2024
14
14
  *
15
15
  * This source code is licensed under the Apache-2.0 license found in the
16
16
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibmdotcom-services",
3
3
  "description": "Carbon for IBM.com Services",
4
- "version": "2.13.1",
4
+ "version": "2.14.0-rc.1",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -35,7 +35,7 @@
35
35
  "access": "public"
36
36
  },
37
37
  "scripts": {
38
- "build": "yarn clean && gulp vendor && node scripts/build.js",
38
+ "build": "yarn clean && node scripts/build.js",
39
39
  "ci-check": "yarn build && yarn test",
40
40
  "clean": "rimraf es lib umd",
41
41
  "contributors:add": "all-contributors add",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@babel/runtime": "^7.16.3",
50
- "@carbon/ibmdotcom-utilities": "2.13.1",
50
+ "@carbon/ibmdotcom-utilities": "2.14.0-rc.1",
51
51
  "@ibm/telemetry-js": "^1.5.0",
52
52
  "axios": "^1.6.8",
53
53
  "marked": "^4.0.10",
@@ -89,5 +89,5 @@
89
89
  "rollup-plugin-sizes": "^1.0.4",
90
90
  "whatwg-fetch": "^2.0.3"
91
91
  },
92
- "gitHead": "cd33b403f3d07e106a3c9fb4ff0b951ca929b011"
92
+ "gitHead": "f43d0d1f569111571d55e423a7837ebf2c1f9db0"
93
93
  }
package/telemetry.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  # yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema@v1/dist/config.schema.json
2
2
  version: 1
3
3
  projectId: e68866bc-10f8-4c87-81b1-a3776d4e801e
4
- endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.cloud/v1/metrics
4
+ endpoint: https://www-api.ibm.com/ibm-telemetry/v1/metrics
5
5
  collect:
6
6
  npm:
7
7
  dependencies: null
@@ -4867,10 +4867,10 @@
4867
4867
  * @type {object} Settings object
4868
4868
  * @property {string} [stablePrefix=c4d] stable prefix
4869
4869
  * @property {string} [prefix=cds] core Carbon prefix
4870
- * Carbon for IBM.com v2.13.1',
4870
+ * Carbon for IBM.com v2.14.0',
4871
4871
  */
4872
4872
  var settings = {
4873
- version: 'Carbon for IBM.com v2.13.1',
4873
+ version: 'Carbon for IBM.com v2.14.0',
4874
4874
  stablePrefix: 'c4d',
4875
4875
  prefix: 'cds'
4876
4876
  };
@@ -5906,7 +5906,7 @@
5906
5906
  }();
5907
5907
 
5908
5908
  /**
5909
- * Copyright IBM Corp. 2020, 2023
5909
+ * Copyright IBM Corp. 2020, 2024
5910
5910
  *
5911
5911
  * This source code is licensed under the Apache-2.0 license found in the
5912
5912
  * LICENSE file in the root directory of this source tree.
@@ -7,4 +7,4 @@ e.exports=r=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exp
7
7
  *
8
8
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
9
9
  * Released under the MIT license
10
- */!function(e){var t;t=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function o(){}function a(t,r,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(r);/^[\{\[]/.test(i)&&(r=i)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in a)a[c]&&(s+="; "+c,!0!==a[c]&&(s+="="+a[c].split(";")[0]));return document.cookie=t+"="+r+s}}function i(e,r){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var s=a[i].split("="),c=s.slice(1).join("=");r||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(s[0]);if(c=(n.read||n)(c,u)||t(c),r)try{c=JSON.parse(c)}catch(e){}if(o[u]=c,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,r){a(t,"",e(r,{expires:-1}))},o.defaults={},o.withConverter=r,o}((function(){}))},e.exports=t()}(gr);var br=gr.exports,xr=function(){return l((function e(){o(this,e)}),null,[{key:"checkCookie",value:function(){return{user:"1"===br.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkAPI",value:(e=y(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mr.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}]);var e}(),wr="Carbon for IBM.com v2.13.1";var Er;function Or(){return Er||(Er=new Promise((function(e,t){var r=0;!function n(){f.digitalData&&f.digitalData.page&&f.digitalData.page.isDataLayerReady?e():++r<50?setTimeout((function(){n()}),100):t(new Error("Timeout polling for digital data object."))}()}))),Er}var Sr=function(){return l((function e(){o(this,e)}),null,[{key:"isReady",value:function(){return Or()}},{key:"getAll",value:(n=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData})).catch((function(){return null}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setVersion",value:(r=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){f.digitalData.page.pageInfo.version=wr}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLanguage",value:(t=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData.page.pageInfo.language}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getLocation",value:(e=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData.user.location.country.toLowerCase()}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,t,r,n}(),kr="https://1.www.s81c.com/common/carbon/plex",Tr={ar:{entry:"sans-arabic",family:"IBM Plex Sans Arabic"},ja:{entry:"sans-jp",family:"IBM Plex Sans JP"},ko:{entry:"sans-kr",family:"IBM Plex Sans KR"}},Ar={100:"thin",200:"extralight",300:"light",400:"regular",450:"text",500:"medium",600:"semibold",700:"bold"};function Rr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Tr[e]&&(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length){var r=document.createElement("link");r.href="".concat(kr,"/").concat(Tr[e].entry,".css"),r.type="text/css",r.rel="stylesheet",r.media="screen,print",document.getElementsByTagName("head")[0].appendChild(r)}else t.forEach((function(t){var r=document.createElement("link");r.href="".concat(kr,"/").concat(Tr[e].entry,"-").concat(Ar[t],".css"),r.type="text/css",r.rel="stylesheet",r.media="screen,print",document.getElementsByTagName("head")[0].appendChild(r)}))}(e,t),function(e){document.body.style.fontFamily="".concat(Tr[e].family,",IBM Plex Sans,Helvetica Neue,Arial,sans-serif")}(e))}function Pr(e){return Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pr(e)}function _r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jr(n.key),n)}}function jr(e){var t=function(e,t){if("object"!=Pr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Pr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pr(t)?t:t+""}var Cr="ipcInfo",Lr=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},r=[{key:"get",value:function(){var e,t,r=br.withConverter({read:function(e){return decodeURIComponent(e)}}).get(Cr);if(r)return r.split(";").map((function(r){var n=r.split("=");"cc"===n[0]&&(e=n[1]),"lc"===n[0]&&(t=n[1])})),{cc:e,lc:t}}},{key:"set",value:function(e){var t=e.cc,r=e.lc,n="cc=".concat(t,";lc=").concat(r);br.withConverter({write:function(e){return encodeURIComponent(e)}}).set(Cr,n,{expires:365,domain:".ibm.com"})}}],(t=null)&&_r(e.prototype,t),r&&_r(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),Ir=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",Nr={lc:"en",cc:"us"},Dr="".concat(Ir,"/common/js/dynamicnav/www/countrylist/jsononly"),Mr={headers:{"Content-Type":"application/json; charset=utf-8"}},Ur="cds-countrylist",Fr={};function Br(){var e;if(null!==(e=f.document)&&void 0!==e&&null!==(e=e.documentElement)&&void 0!==e&&e.lang){var t=f.document.documentElement.lang.toLowerCase(),r={};if(-1===t.indexOf("-"))r.lc=t;else{var n=t.split("-");r.cc=n[1],r.lc=n[0]}return r}return!1}var qr=function(){var e=y(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((t=Lr.get())&&t.cc&&t.lc)){e.next=5;break}return e.next=4,zr.getList(t);case 4:return e.abrupt("return",t);case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Hr=function(){var e=y(b.mark((function e(){var t,r,n,o,a;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Sr.getLocation();case 3:if(t=e.sent,r=f.navigator.language,n=r.split("-")[0],!t||!n){e.next=13;break}return e.next=9,zr.getList({cc:t,lc:n});case 9:return o=e.sent,a=zr.verifyLocale(t,n,o),Lr.set(a),e.abrupt("return",a);case 13:e.next=17;break;case 15:e.prev=15,e.t0=e.catch(0);case 17:return e.abrupt("return",!1);case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(){return e.apply(this,arguments)}}();function Jr(){var e,t=Object.assign({},f.digitalData||{});if(null!==(e=t.page)&&void 0!==e&&null!==(e=e.pageInfo)&&void 0!==e&&e.language){var r,n,o={};return null!==(r=t.page)&&void 0!==r&&null!==(r=r.pageInfo)&&void 0!==r&&r.language.includes("-")&&null!==(n=t.page)&&void 0!==n&&null!==(n=n.pageInfo)&&void 0!==n&&null!==(n=n.ibm)&&void 0!==n&&n.country?(o.lc=t.page.pageInfo.language.substring(0,2).toLowerCase(),o.cc=t.page.pageInfo.ibm.country.toLowerCase().trim(),o.cc.indexOf(",")>-1&&(o.cc=o.cc.substring(0,o.cc.indexOf(",")).trim()),"gb"===o.cc&&(o.cc="uk"),"zz"===o.cc&&(o.cc="us")):o.lc=t.page.pageInfo.language.substring(0,2).toLowerCase(),o}return!1}var zr=function(){return l((function e(){o(this,e)}),null,[{key:"clearCache",value:function(){if("undefined"!=typeof sessionStorage){Object.keys(Fr).forEach((function(e){return delete Fr[e]}));for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf(Ur)&&sessionStorage.removeItem(t)}}}},{key:"getLocale",value:(n=y(b.mark((function e(){var t,r,n,o;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,r=[Jr,Br,qr,Hr];case 2:if(!(t<r.length)){e.next=12;break}return n=r[t],e.next=6,n();case 6:if(!(o=e.sent)){e.next=9;break}return e.abrupt("return",o);case 9:t++,e.next=2;break;case 12:return e.abrupt("return",Nr);case 13:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"getLang",value:(r=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getLocale());case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLangDisplay",value:(t=y(b.mark((function e(t){var r,n,o,a;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,this.getLocale();case 6:e.t0=e.sent;case 7:return r=e.t0,e.next=10,this.getList(r);case 10:if(n=e.sent,o=[],n.regionList.forEach((function(e){o=o.concat(e.countryList)})),!(a=o.filter((function(e){if(-1!==e.locale.findIndex((function(e){return e[0]==="".concat(r.lc,"-").concat(r.cc)}))){var t,n=e.locale.filter((function(e){return e.includes("".concat(r.lc,"-").concat(r.cc))}));return(t=e.locale).splice.apply(t,[0,e.locale.length].concat(vt(n))),e}}))).length){e.next=18;break}return e.abrupt("return","".concat(a[0].name," — ").concat(a[0].locale[0][1]));case 18:return e.abrupt("return","United States — English");case 19:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getList",value:(e=y(b.mark((function e(t){var r,n,o=this;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cc,n=t.lc,e.abrupt("return",new Promise((function(e,t){o.fetchList(r,n,e,t)})));case 2:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})},{key:"fetchList",value:function(e,t,r,n){var o=this,a="undefined"!==e?"".concat(t,"-").concat(e):"".concat(t),i="".concat(Ur,"-").concat(a),s=this.getSessionCache(i);if(s)r(s);else{if(!Fr[a]){var c="".concat(Dr,"/").concat("undefined"!==e?"".concat(e).concat(t):"".concat(t),"-utf8.json");Fr[a]=mr.get(c,Mr).then((function(e){var t=e.data;return t.timestamp=Date.now(),sessionStorage.setItem("".concat(Ur,"-").concat(a),JSON.stringify(t)),t}))}Fr[a].then(r,(function(a){e===Nr.cc&&t===Nr.lc?n(a):o.fetchList(Nr.cc,Nr.lc,r,n)}))}}},{key:"verifyLocale",value:function(e,t,r){var n,o;return!(r&&r.regionList.forEach((function(r){return r.countryList.forEach((function(r){var a=r.locale[0][0].split("-"),i=a[0],s=a[1];s===e&&i===t?o={cc:e,lc:t}:s!==e||n||(n=i)}))})))&&n&&(o={cc:e,lc:n}),o}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]);var e,t,r,n}(),Kr=!1;var Wr=process&&process.env.MARKETING_SEARCH_HOST||"https://www.ibm.com",Vr=process&&process.env.MARKETING_SEARCH_VERSION||"v3",Gr="".concat(Wr,"/marketplace/api/search/").concat(Vr,"/combined_suggestions"),$r=function(){return l((function e(){o(this,e)}),null,[{key:"getResults",value:(e=y(b.mark((function e(t){var r;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(Gr,"?locale=").concat("en","-").concat("us","&q=").concat(encodeURIComponent(t)),e.next=5,mr.get(r,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}]);var e}(),Xr=function(){return l((function e(){o(this,e)}),null,[{key:"setMastheadLogo",value:function(e){if(void 0===e)return!1;var t=(new Date).getTime(),r=e.end?Date.parse(e.end):null,n=!!(r&&t>r);return!(null===e.svg||n||e.denylist&&-1!==e.denylist.indexOf(location.pathname))&&!(!e.allowlist||0!=e.allowlist.length&&-1===e.allowlist.indexOf(location.pathname)||!e.svg)}}])}(),Yr=process&&(process.env.REACT_APP_PROFILE_HOST||process.env.PROFILE_HOST)||"https://login.ibm.com",Qr=process&&process.env.PROFILE_VERSION||"v1",Zr="".concat(Yr,"/").concat(Qr,"/mgmt/idaas/user/status/"),en=function(){return l((function e(){o(this,e)}),null,[{key:"getUserStatus",value:(t=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mr.get(Zr,{headers:{"Content-Type":"application/json; charset=utf-8"},withCredentials:!0}).then((function(e){return e.data})).catch((function(e){return console.log("Failed Profile Network Call",e),{user:"Unauthenticated"}}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"checkCloudCookie",value:function(){return{user:"1"===br.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkCloudDocsAPI",value:(e=y(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mr.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}]);var e,t}(),tn=process&&process.env.SEARCH_TYPEAHEAD_API||"https://www-api.ibm.com",rn=process&&process.env.SEARCH_TYPEAHEAD_VERSION||"v1",nn="".concat(tn,"/search/typeahead/").concat(rn),on=function(){return l((function e(){o(this,e)}),null,[{key:"getResults",value:(e=y(b.mark((function e(t){var r,n,o,a,i=arguments;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:"",e.next=3,zr.getLang();case 3:return n=e.sent,o=["lang=".concat(n.lc).concat(n.cc?"&cc=".concat(n.cc):""),"query=".concat(encodeURIComponent(t)),"".concat(r?"appid=".concat(r):"")].filter((function(e){return e})).join("&"),a="".concat(nn,"?").concat(o),e.next=8,mr.get(a,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data.response}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}]);var e}(),an=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",sn="/common/carbon-for-ibm-dotcom/translations/masthead-footer/v2.1",cn=process&&(process.env.REACT_APP_C4D_TRANSLATION_ENDPOINT||process.env.C4D_TRANSLATION_ENDPOINT)||sn,un={},ln="en",fn="us",pn=function(){return l((function e(){o(this,e)}),null,[{key:"clearCache",value:function(e){var t=this.getSessionKey(e);if("undefined"!=typeof sessionStorage){Object.keys(un).forEach((function(e){return delete un[e]}));for(var r=0;r<sessionStorage.length;++r){var n=sessionStorage.key(r);0===n.indexOf(t)&&sessionStorage.removeItem(n)}}}},{key:"getTranslation",value:(e=y(b.mark((function e(t,r){var n,o,a,i=this;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="en",o="us",!(t&&t.lc&&t.cc)){e.next=7;break}n=t.lc,o=t.cc,e.next=12;break;case 7:return e.next=9,zr.getLocale();case 9:a=e.sent,n=a.lc,o=a.cc;case 12:return e.abrupt("return",new Promise((function(e,t){i.fetchTranslation(n,o,r,e,t)})));case 13:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})},{key:"fetchTranslation",value:function(e,t,r,n,o){var a=this,i=this.getSessionKey(r),s="".concat(i,"-").concat(t,"-").concat(e),c=this.getSessionCache(s);if(c)n(c);else{var u="undefined"!==t?"".concat(t,"-").concat(e):"".concat(e);if(!un[u]){var l=r||cn,f="undefined"!==t?"".concat(t).concat(e):"".concat(e),p=/((http(s?)):\/\/)/g.test(r)?"":an,d="".concat(p).concat(l,"/").concat(f,".json");un[u]=mr.get(d,{headers:{"Content-Type":"text/plain",origin:an}}).then((function(e){return a.transformData(e.data)})).then((function(e){return e.timestamp=Date.now(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("".concat(i,"-").concat(u),JSON.stringify(e)),e}))}un[u].then(n,(function(i){t===fn&&e===ln?o(i):a.fetchTranslation(ln,fn,r,n,o)}))}}},{key:"getSessionKey",value:function(e){var t="c4d-translation";(sn!==cn||e)&&(t=(e||cn).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,""));return t}},{key:"transformData",value:function(e){var t,r=null===(t=e.profileMenu)||void 0===t?void 0:t.signedout;if(r){var n="state=https%3A%2F%2Fwww.ibm.com",o=r.findIndex((function(e){var t;return-1!==(null===(t=e.url)||void 0===t?void 0:t.indexOf(n))}));if(-1!==o&&f.location){var a=encodeURIComponent(f.location.href);e.profileMenu.signedout[o].url=r[o].url.replace(n,"state=".concat(a))}}return e.footerMenu.push(e.socialFollow),e}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]);var e}();function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(r),!0).forEach((function(t){Me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vn=process&&(process.env.REACT_APP_KALTURA_PARTNER_ID||process.env.KALTURA_PARTNER_ID)||1773841,yn=process&&(process.env.REACT_APP_KALTURA_UICONF_ID||process.env.KALTURA_UICONF_ID)||27941801,mn="https://cdnapisec.kaltura.com/p/".concat(vn,"/sp/").concat(vn,"00/embedIframeJs/uiconf_id/").concat(yn,"/partner_id/").concat(vn),gn="https://cdnsecakmi.kaltura.com/p/".concat(vn,"/thumbnail/entry_id/"),bn=0,xn=!1;function wn(e,t){f.kWidget?(xn=!1,e()):xn?++bn<50?setTimeout((function(){wn(e,t)}),100):t():(!function(){xn=!0;var e=document.createElement("script");e.src=mn,e.async=!0,document.body.appendChild(e)}(),wn(e,t))}var En={},On=function(){function e(){o(this,e)}return l(e,null,[{key:"checkScript",value:function(){return new Promise((function(e,t){wn(e,t)}))}},{key:"getThumbnailUrl",value:function(e){var t=e.mediaId,r=e.height,n=e.width,o=gn+t;return r&&(o+="/height/".concat(r)),n&&(o+="/width/".concat(n)),o}},{key:"embedMedia",value:(r=y(b.mark((function e(t,r){var n,o,a,i,s=arguments;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>2&&void 0!==s[2]?s[2]:{},o=!(s.length>3&&void 0!==s[3])||s[3],a=s.length>4&&void 0!==s[4]?s[4]:function(){},i=this.fireEvent,e.next=6,this.checkScript().then((function(){var e=new Promise((function(e){var s;if(!document.getElementById(r)&&document.querySelector("cds-tabs-extended-media")){var c=document.createElement("div");c.classList.add("bx--video-player__video"),c.setAttribute("id",r),document.body.append(c),s=!0}f.kWidget.embed({targetId:r,wid:"_"+vn,uiconf_id:yn,entry_id:t,flashvars:hn(hn({},{autoPlay:!0,closedCaptions:{plugin:!0},titleLabel:{plugin:!0,align:"left",text:"{mediaProxy.entry.name}"},ibm:{template:"idl"}}),n),params:{wmode:"transparent"},readyCallback:function(r){var n=document.getElementById(r);o&&(n.addJsListener("playerPaused.ibm",(function(){i({playerState:1,kdp:n,mediaId:t})})),n.addJsListener("playerPlayed.ibm",(function(){i({playerState:2,kdp:n,mediaId:t})})),n.addJsListener("playerPlayEnd.ibm",(function(){i({playerState:3,kdp:n,mediaId:t})})),n.addJsListener("IbmCtaEvent.ibm",(function(e){var r=(null==e?void 0:e.customMetricsData)||{};i({playerState:101,kdp:n,mediaId:t,customMetricsData:r})}))),a(n),e(n)}}),s&&document.querySelector("cds-tabs-extended-media").shadowRoot.querySelector(".bx--accordion__item--active cds-video-player").lastChild.parentElement.appendChild(document.getElementById(r))}));return{kWidget:function(){return e}}}));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"fireEvent",value:function(e){var t=e.playerState,r=e.kdp,n=e.mediaId,o=e.customMetricsData,a=void 0===o?{}:o,i=Math.round(r.evaluate("{video.player.currentTime}"));2===t&&0===i&&(t=0);var s={playerType:"kaltura",title:r.evaluate("{mediaProxy.entry.name}"),currentTime:i,duration:r.evaluate("{mediaProxy.entry.duration}"),playerState:t,mediaId:n,customMetricsData:a};h.videoPlayerStats(s)}},{key:"api",value:(t=y(b.mark((function e(t){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkScript().then((function(){return En&&En[t]?En[t]:new Promise((function(e){return new f.kWidget.api({wid:"_"+vn}).doRequest({service:"media",action:"get",entryId:t},(function(t){En[t.id]=t,e(t)}))}))}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getMediaDuration",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(arguments.length>1?arguments[1]:void 0){var r=Math.floor(t/1e3%60),n=Math.floor(t/6e4%60),o=Math.floor(t/36e5%24);return o=o>0?o+":":"",r=r<10?"0"+r:r,t&&"("+o+n+":"+r+")"}var a=(null==f||null===(e=f.kWidget)||void 0===e?void 0:e.seconds2Measurements(t))||{},i=(null==a?void 0:a.hours)||0,s=(null==a?void 0:a.minutes)||0,c=(null==a?void 0:a.seconds)||0;return s=(i>0?"0"+s:s).toString().slice(-2),(i=i>0?i+":":"")+s+":"+(c=("0"+c).slice(-2))}},{key:"getMediaDurationFormatted",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=t;(arguments.length>1?arguments[1]:void 0)||(r=1e3*t);var n=Math.floor(r/1e3%60),o=Math.floor(r/6e4%60),a=Math.floor(r/36e5%24),i=e.formatTime(n,"second"),s=a||o?e.formatTime(o,"minute"):"",c=a?e.formatTime(a,"hour"):"";return"".concat(c," ").concat(s," ").concat(i).trim()}},{key:"formatTime",value:function(e,t){var r=f.document.documentElement.lang||f.navigator.language;return new Intl.NumberFormat(r,{style:"unit",unitDisplay:"long",unit:t}).format(e)}}]);var t,r}();e.AnalyticsAPI=h,e.CloudAccountAuthAPI=xr,e.DDOAPI=Sr,e.KalturaPlayerAPI=On,e.LocaleAPI=zr,e.MarketingSearchAPI=$r,e.MastheadLogo=Xr,e.ProfileAPI=en,e.SearchTypeaheadAPI=on,e.TranslationAPI=pn,e.globalInit=function(){Kr||(Kr=!0,Sr.setVersion().catch((function(e){console.error("Error setting the version of the library in the DDO:",e)})),zr.getLang().then((function(e){Rr(e.lc)})),h.initAll())},Object.defineProperty(e,"__esModule",{value:!0})}));
10
+ */!function(e){var t;t=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function o(){}function a(t,r,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(r);/^[\{\[]/.test(i)&&(r=i)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in a)a[c]&&(s+="; "+c,!0!==a[c]&&(s+="="+a[c].split(";")[0]));return document.cookie=t+"="+r+s}}function i(e,r){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var s=a[i].split("="),c=s.slice(1).join("=");r||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(s[0]);if(c=(n.read||n)(c,u)||t(c),r)try{c=JSON.parse(c)}catch(e){}if(o[u]=c,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,r){a(t,"",e(r,{expires:-1}))},o.defaults={},o.withConverter=r,o}((function(){}))},e.exports=t()}(gr);var br=gr.exports,xr=function(){return l((function e(){o(this,e)}),null,[{key:"checkCookie",value:function(){return{user:"1"===br.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkAPI",value:(e=y(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mr.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}]);var e}(),wr="Carbon for IBM.com v2.14.0";var Er;function Or(){return Er||(Er=new Promise((function(e,t){var r=0;!function n(){f.digitalData&&f.digitalData.page&&f.digitalData.page.isDataLayerReady?e():++r<50?setTimeout((function(){n()}),100):t(new Error("Timeout polling for digital data object."))}()}))),Er}var Sr=function(){return l((function e(){o(this,e)}),null,[{key:"isReady",value:function(){return Or()}},{key:"getAll",value:(n=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData})).catch((function(){return null}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setVersion",value:(r=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){f.digitalData.page.pageInfo.version=wr}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLanguage",value:(t=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData.page.pageInfo.language}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getLocation",value:(e=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData.user.location.country.toLowerCase()}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,t,r,n}(),kr="https://1.www.s81c.com/common/carbon/plex",Tr={ar:{entry:"sans-arabic",family:"IBM Plex Sans Arabic"},ja:{entry:"sans-jp",family:"IBM Plex Sans JP"},ko:{entry:"sans-kr",family:"IBM Plex Sans KR"}},Ar={100:"thin",200:"extralight",300:"light",400:"regular",450:"text",500:"medium",600:"semibold",700:"bold"};function Rr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Tr[e]&&(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length){var r=document.createElement("link");r.href="".concat(kr,"/").concat(Tr[e].entry,".css"),r.type="text/css",r.rel="stylesheet",r.media="screen,print",document.getElementsByTagName("head")[0].appendChild(r)}else t.forEach((function(t){var r=document.createElement("link");r.href="".concat(kr,"/").concat(Tr[e].entry,"-").concat(Ar[t],".css"),r.type="text/css",r.rel="stylesheet",r.media="screen,print",document.getElementsByTagName("head")[0].appendChild(r)}))}(e,t),function(e){document.body.style.fontFamily="".concat(Tr[e].family,",IBM Plex Sans,Helvetica Neue,Arial,sans-serif")}(e))}function Pr(e){return Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pr(e)}function _r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jr(n.key),n)}}function jr(e){var t=function(e,t){if("object"!=Pr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Pr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pr(t)?t:t+""}var Cr="ipcInfo",Lr=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},r=[{key:"get",value:function(){var e,t,r=br.withConverter({read:function(e){return decodeURIComponent(e)}}).get(Cr);if(r)return r.split(";").map((function(r){var n=r.split("=");"cc"===n[0]&&(e=n[1]),"lc"===n[0]&&(t=n[1])})),{cc:e,lc:t}}},{key:"set",value:function(e){var t=e.cc,r=e.lc,n="cc=".concat(t,";lc=").concat(r);br.withConverter({write:function(e){return encodeURIComponent(e)}}).set(Cr,n,{expires:365,domain:".ibm.com"})}}],(t=null)&&_r(e.prototype,t),r&&_r(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),Ir=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",Nr={lc:"en",cc:"us"},Dr="".concat(Ir,"/common/js/dynamicnav/www/countrylist/jsononly"),Mr={headers:{"Content-Type":"application/json; charset=utf-8"}},Ur="cds-countrylist",Fr={};function Br(){var e;if(null!==(e=f.document)&&void 0!==e&&null!==(e=e.documentElement)&&void 0!==e&&e.lang){var t=f.document.documentElement.lang.toLowerCase(),r={};if(-1===t.indexOf("-"))r.lc=t;else{var n=t.split("-");r.cc=n[1],r.lc=n[0]}return r}return!1}var qr=function(){var e=y(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((t=Lr.get())&&t.cc&&t.lc)){e.next=5;break}return e.next=4,zr.getList(t);case 4:return e.abrupt("return",t);case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Hr=function(){var e=y(b.mark((function e(){var t,r,n,o,a;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Sr.getLocation();case 3:if(t=e.sent,r=f.navigator.language,n=r.split("-")[0],!t||!n){e.next=13;break}return e.next=9,zr.getList({cc:t,lc:n});case 9:return o=e.sent,a=zr.verifyLocale(t,n,o),Lr.set(a),e.abrupt("return",a);case 13:e.next=17;break;case 15:e.prev=15,e.t0=e.catch(0);case 17:return e.abrupt("return",!1);case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(){return e.apply(this,arguments)}}();function Jr(){var e,t=Object.assign({},f.digitalData||{});if(null!==(e=t.page)&&void 0!==e&&null!==(e=e.pageInfo)&&void 0!==e&&e.language){var r,n,o={};return null!==(r=t.page)&&void 0!==r&&null!==(r=r.pageInfo)&&void 0!==r&&r.language.includes("-")&&null!==(n=t.page)&&void 0!==n&&null!==(n=n.pageInfo)&&void 0!==n&&null!==(n=n.ibm)&&void 0!==n&&n.country?(o.lc=t.page.pageInfo.language.substring(0,2).toLowerCase(),o.cc=t.page.pageInfo.ibm.country.toLowerCase().trim(),o.cc.indexOf(",")>-1&&(o.cc=o.cc.substring(0,o.cc.indexOf(",")).trim()),"gb"===o.cc&&(o.cc="uk"),"zz"===o.cc&&(o.cc="us")):o.lc=t.page.pageInfo.language.substring(0,2).toLowerCase(),o}return!1}var zr=function(){return l((function e(){o(this,e)}),null,[{key:"clearCache",value:function(){if("undefined"!=typeof sessionStorage){Object.keys(Fr).forEach((function(e){return delete Fr[e]}));for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf(Ur)&&sessionStorage.removeItem(t)}}}},{key:"getLocale",value:(n=y(b.mark((function e(){var t,r,n,o;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,r=[Jr,Br,qr,Hr];case 2:if(!(t<r.length)){e.next=12;break}return n=r[t],e.next=6,n();case 6:if(!(o=e.sent)){e.next=9;break}return e.abrupt("return",o);case 9:t++,e.next=2;break;case 12:return e.abrupt("return",Nr);case 13:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"getLang",value:(r=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getLocale());case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLangDisplay",value:(t=y(b.mark((function e(t){var r,n,o,a;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,this.getLocale();case 6:e.t0=e.sent;case 7:return r=e.t0,e.next=10,this.getList(r);case 10:if(n=e.sent,o=[],n.regionList.forEach((function(e){o=o.concat(e.countryList)})),!(a=o.filter((function(e){if(-1!==e.locale.findIndex((function(e){return e[0]==="".concat(r.lc,"-").concat(r.cc)}))){var t,n=e.locale.filter((function(e){return e.includes("".concat(r.lc,"-").concat(r.cc))}));return(t=e.locale).splice.apply(t,[0,e.locale.length].concat(vt(n))),e}}))).length){e.next=18;break}return e.abrupt("return","".concat(a[0].name," — ").concat(a[0].locale[0][1]));case 18:return e.abrupt("return","United States — English");case 19:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getList",value:(e=y(b.mark((function e(t){var r,n,o=this;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cc,n=t.lc,e.abrupt("return",new Promise((function(e,t){o.fetchList(r,n,e,t)})));case 2:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})},{key:"fetchList",value:function(e,t,r,n){var o=this,a="undefined"!==e?"".concat(t,"-").concat(e):"".concat(t),i="".concat(Ur,"-").concat(a),s=this.getSessionCache(i);if(s)r(s);else{if(!Fr[a]){var c="".concat(Dr,"/").concat("undefined"!==e?"".concat(e).concat(t):"".concat(t),"-utf8.json");Fr[a]=mr.get(c,Mr).then((function(e){var t=e.data;return t.timestamp=Date.now(),sessionStorage.setItem("".concat(Ur,"-").concat(a),JSON.stringify(t)),t}))}Fr[a].then(r,(function(a){e===Nr.cc&&t===Nr.lc?n(a):o.fetchList(Nr.cc,Nr.lc,r,n)}))}}},{key:"verifyLocale",value:function(e,t,r){var n,o;return!(r&&r.regionList.forEach((function(r){return r.countryList.forEach((function(r){var a=r.locale[0][0].split("-"),i=a[0],s=a[1];s===e&&i===t?o={cc:e,lc:t}:s!==e||n||(n=i)}))})))&&n&&(o={cc:e,lc:n}),o}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]);var e,t,r,n}(),Kr=!1;var Wr=process&&process.env.MARKETING_SEARCH_HOST||"https://www.ibm.com",Vr=process&&process.env.MARKETING_SEARCH_VERSION||"v3",Gr="".concat(Wr,"/marketplace/api/search/").concat(Vr,"/combined_suggestions"),$r=function(){return l((function e(){o(this,e)}),null,[{key:"getResults",value:(e=y(b.mark((function e(t){var r;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(Gr,"?locale=").concat("en","-").concat("us","&q=").concat(encodeURIComponent(t)),e.next=5,mr.get(r,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}]);var e}(),Xr=function(){return l((function e(){o(this,e)}),null,[{key:"setMastheadLogo",value:function(e){if(void 0===e)return!1;var t=(new Date).getTime(),r=e.end?Date.parse(e.end):null,n=!!(r&&t>r);return!(null===e.svg||n||e.denylist&&-1!==e.denylist.indexOf(location.pathname))&&!(!e.allowlist||0!=e.allowlist.length&&-1===e.allowlist.indexOf(location.pathname)||!e.svg)}}])}(),Yr=process&&(process.env.REACT_APP_PROFILE_HOST||process.env.PROFILE_HOST)||"https://login.ibm.com",Qr=process&&process.env.PROFILE_VERSION||"v1",Zr="".concat(Yr,"/").concat(Qr,"/mgmt/idaas/user/status/"),en=function(){return l((function e(){o(this,e)}),null,[{key:"getUserStatus",value:(t=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mr.get(Zr,{headers:{"Content-Type":"application/json; charset=utf-8"},withCredentials:!0}).then((function(e){return e.data})).catch((function(e){return console.log("Failed Profile Network Call",e),{user:"Unauthenticated"}}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"checkCloudCookie",value:function(){return{user:"1"===br.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkCloudDocsAPI",value:(e=y(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mr.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}]);var e,t}(),tn=process&&process.env.SEARCH_TYPEAHEAD_API||"https://www-api.ibm.com",rn=process&&process.env.SEARCH_TYPEAHEAD_VERSION||"v1",nn="".concat(tn,"/search/typeahead/").concat(rn),on=function(){return l((function e(){o(this,e)}),null,[{key:"getResults",value:(e=y(b.mark((function e(t){var r,n,o,a,i=arguments;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:"",e.next=3,zr.getLang();case 3:return n=e.sent,o=["lang=".concat(n.lc).concat(n.cc?"&cc=".concat(n.cc):""),"query=".concat(encodeURIComponent(t)),"".concat(r?"appid=".concat(r):"")].filter((function(e){return e})).join("&"),a="".concat(nn,"?").concat(o),e.next=8,mr.get(a,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data.response}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}]);var e}(),an=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",sn="/common/carbon-for-ibm-dotcom/translations/masthead-footer/v2.1",cn=process&&(process.env.REACT_APP_C4D_TRANSLATION_ENDPOINT||process.env.C4D_TRANSLATION_ENDPOINT)||sn,un={},ln="en",fn="us",pn=function(){return l((function e(){o(this,e)}),null,[{key:"clearCache",value:function(e){var t=this.getSessionKey(e);if("undefined"!=typeof sessionStorage){Object.keys(un).forEach((function(e){return delete un[e]}));for(var r=0;r<sessionStorage.length;++r){var n=sessionStorage.key(r);0===n.indexOf(t)&&sessionStorage.removeItem(n)}}}},{key:"getTranslation",value:(e=y(b.mark((function e(t,r){var n,o,a,i=this;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="en",o="us",!(t&&t.lc&&t.cc)){e.next=7;break}n=t.lc,o=t.cc,e.next=12;break;case 7:return e.next=9,zr.getLocale();case 9:a=e.sent,n=a.lc,o=a.cc;case 12:return e.abrupt("return",new Promise((function(e,t){i.fetchTranslation(n,o,r,e,t)})));case 13:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})},{key:"fetchTranslation",value:function(e,t,r,n,o){var a=this,i=this.getSessionKey(r),s="".concat(i,"-").concat(t,"-").concat(e),c=this.getSessionCache(s);if(c)n(c);else{var u="undefined"!==t?"".concat(t,"-").concat(e):"".concat(e);if(!un[u]){var l=r||cn,f="undefined"!==t?"".concat(t).concat(e):"".concat(e),p=/((http(s?)):\/\/)/g.test(r)?"":an,d="".concat(p).concat(l,"/").concat(f,".json");un[u]=mr.get(d,{headers:{"Content-Type":"text/plain",origin:an}}).then((function(e){return a.transformData(e.data)})).then((function(e){return e.timestamp=Date.now(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("".concat(i,"-").concat(u),JSON.stringify(e)),e}))}un[u].then(n,(function(i){t===fn&&e===ln?o(i):a.fetchTranslation(ln,fn,r,n,o)}))}}},{key:"getSessionKey",value:function(e){var t="c4d-translation";(sn!==cn||e)&&(t=(e||cn).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,""));return t}},{key:"transformData",value:function(e){var t,r=null===(t=e.profileMenu)||void 0===t?void 0:t.signedout;if(r){var n="state=https%3A%2F%2Fwww.ibm.com",o=r.findIndex((function(e){var t;return-1!==(null===(t=e.url)||void 0===t?void 0:t.indexOf(n))}));if(-1!==o&&f.location){var a=encodeURIComponent(f.location.href);e.profileMenu.signedout[o].url=r[o].url.replace(n,"state=".concat(a))}}return e.footerMenu.push(e.socialFollow),e}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]);var e}();function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(r),!0).forEach((function(t){Me(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vn=process&&(process.env.REACT_APP_KALTURA_PARTNER_ID||process.env.KALTURA_PARTNER_ID)||1773841,yn=process&&(process.env.REACT_APP_KALTURA_UICONF_ID||process.env.KALTURA_UICONF_ID)||27941801,mn="https://cdnapisec.kaltura.com/p/".concat(vn,"/sp/").concat(vn,"00/embedIframeJs/uiconf_id/").concat(yn,"/partner_id/").concat(vn),gn="https://cdnsecakmi.kaltura.com/p/".concat(vn,"/thumbnail/entry_id/"),bn=0,xn=!1;function wn(e,t){f.kWidget?(xn=!1,e()):xn?++bn<50?setTimeout((function(){wn(e,t)}),100):t():(!function(){xn=!0;var e=document.createElement("script");e.src=mn,e.async=!0,document.body.appendChild(e)}(),wn(e,t))}var En={},On=function(){function e(){o(this,e)}return l(e,null,[{key:"checkScript",value:function(){return new Promise((function(e,t){wn(e,t)}))}},{key:"getThumbnailUrl",value:function(e){var t=e.mediaId,r=e.height,n=e.width,o=gn+t;return r&&(o+="/height/".concat(r)),n&&(o+="/width/".concat(n)),o}},{key:"embedMedia",value:(r=y(b.mark((function e(t,r){var n,o,a,i,s=arguments;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>2&&void 0!==s[2]?s[2]:{},o=!(s.length>3&&void 0!==s[3])||s[3],a=s.length>4&&void 0!==s[4]?s[4]:function(){},i=this.fireEvent,e.next=6,this.checkScript().then((function(){var e=new Promise((function(e){var s;if(!document.getElementById(r)&&document.querySelector("cds-tabs-extended-media")){var c=document.createElement("div");c.classList.add("bx--video-player__video"),c.setAttribute("id",r),document.body.append(c),s=!0}f.kWidget.embed({targetId:r,wid:"_"+vn,uiconf_id:yn,entry_id:t,flashvars:hn(hn({},{autoPlay:!0,closedCaptions:{plugin:!0},titleLabel:{plugin:!0,align:"left",text:"{mediaProxy.entry.name}"},ibm:{template:"idl"}}),n),params:{wmode:"transparent"},readyCallback:function(r){var n=document.getElementById(r);o&&(n.addJsListener("playerPaused.ibm",(function(){i({playerState:1,kdp:n,mediaId:t})})),n.addJsListener("playerPlayed.ibm",(function(){i({playerState:2,kdp:n,mediaId:t})})),n.addJsListener("playerPlayEnd.ibm",(function(){i({playerState:3,kdp:n,mediaId:t})})),n.addJsListener("IbmCtaEvent.ibm",(function(e){var r=(null==e?void 0:e.customMetricsData)||{};i({playerState:101,kdp:n,mediaId:t,customMetricsData:r})}))),a(n),e(n)}}),s&&document.querySelector("cds-tabs-extended-media").shadowRoot.querySelector(".bx--accordion__item--active cds-video-player").lastChild.parentElement.appendChild(document.getElementById(r))}));return{kWidget:function(){return e}}}));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"fireEvent",value:function(e){var t=e.playerState,r=e.kdp,n=e.mediaId,o=e.customMetricsData,a=void 0===o?{}:o,i=Math.round(r.evaluate("{video.player.currentTime}"));2===t&&0===i&&(t=0);var s={playerType:"kaltura",title:r.evaluate("{mediaProxy.entry.name}"),currentTime:i,duration:r.evaluate("{mediaProxy.entry.duration}"),playerState:t,mediaId:n,customMetricsData:a};h.videoPlayerStats(s)}},{key:"api",value:(t=y(b.mark((function e(t){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkScript().then((function(){return En&&En[t]?En[t]:new Promise((function(e){return new f.kWidget.api({wid:"_"+vn}).doRequest({service:"media",action:"get",entryId:t},(function(t){En[t.id]=t,e(t)}))}))}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getMediaDuration",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(arguments.length>1?arguments[1]:void 0){var r=Math.floor(t/1e3%60),n=Math.floor(t/6e4%60),o=Math.floor(t/36e5%24);return o=o>0?o+":":"",r=r<10?"0"+r:r,t&&"("+o+n+":"+r+")"}var a=(null==f||null===(e=f.kWidget)||void 0===e?void 0:e.seconds2Measurements(t))||{},i=(null==a?void 0:a.hours)||0,s=(null==a?void 0:a.minutes)||0,c=(null==a?void 0:a.seconds)||0;return s=(i>0?"0"+s:s).toString().slice(-2),(i=i>0?i+":":"")+s+":"+(c=("0"+c).slice(-2))}},{key:"getMediaDurationFormatted",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=t;(arguments.length>1?arguments[1]:void 0)||(r=1e3*t);var n=Math.floor(r/1e3%60),o=Math.floor(r/6e4%60),a=Math.floor(r/36e5%24),i=e.formatTime(n,"second"),s=a||o?e.formatTime(o,"minute"):"",c=a?e.formatTime(a,"hour"):"";return"".concat(c," ").concat(s," ").concat(i).trim()}},{key:"formatTime",value:function(e,t){var r=f.document.documentElement.lang||f.navigator.language;return new Intl.NumberFormat(r,{style:"unit",unitDisplay:"long",unit:t}).format(e)}}]);var t,r}();e.AnalyticsAPI=h,e.CloudAccountAuthAPI=xr,e.DDOAPI=Sr,e.KalturaPlayerAPI=On,e.LocaleAPI=zr,e.MarketingSearchAPI=$r,e.MastheadLogo=Xr,e.ProfileAPI=en,e.SearchTypeaheadAPI=on,e.TranslationAPI=pn,e.globalInit=function(){Kr||(Kr=!0,Sr.setVersion().catch((function(e){console.error("Error setting the version of the library in the DDO:",e)})),zr.getLang().then((function(e){Rr(e.lc)})),h.initAll())},Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,8 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2016, 2018
3
- *
4
- * This source code is licensed under the Apache-2.0 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- export * from './utilities';