@livetiles/reach-components-react 0.4.0-preview.181 → 0.4.0-preview.188
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.
- package/ChannelFilter.d.ts +5 -0
- package/FilterContext.d.ts +11 -0
- package/ToolbarFilterPanel.d.ts +3 -0
- package/common/{Hero.d.ts → hero/Hero.d.ts} +0 -0
- package/common/hero/HeroPaging.d.ts +10 -0
- package/common/hero/HeroSlide.d.ts +15 -0
- package/de.async.esm.esm.js +8 -10
- package/es.async.esm.esm.js +2 -4
- package/fr.async.esm.esm.js +2 -4
- package/index.d.ts +13 -1
- package/index.esm.js +1 -1
- package/index.esm2.js +964 -494
- package/index.umd.js +987 -531
- package/it.async.esm.esm.js +2 -4
- package/ja.async.esm.esm.js +2 -4
- package/package.json +1 -1
- package/tr.async.esm.esm.js +2 -4
- package/zh-CN.async.esm.esm.js +2 -4
- package/zh-TW.async.esm.esm.js +2 -4
package/index.esm2.js
CHANGED
|
@@ -934,7 +934,7 @@ var SPECIES$c = wellKnownSymbol$w('species');
|
|
|
934
934
|
|
|
935
935
|
// `SpeciesConstructor` abstract operation
|
|
936
936
|
// https://tc39.github.io/ecma262/#sec-speciesconstructor
|
|
937
|
-
var speciesConstructor$
|
|
937
|
+
var speciesConstructor$9 = function (O, defaultConstructor) {
|
|
938
938
|
var C = anObject$q(O).constructor;
|
|
939
939
|
var S;
|
|
940
940
|
return C === undefined || (S = anObject$q(C)[SPECIES$c]) == undefined ? defaultConstructor : aFunction$h(S);
|
|
@@ -1225,7 +1225,7 @@ var classof$i = classofRaw$9;
|
|
|
1225
1225
|
var inspectSource$a = inspectSource$d;
|
|
1226
1226
|
var iterate$6 = iterate$8.exports;
|
|
1227
1227
|
var checkCorrectnessOfIteration$5 = checkCorrectnessOfIteration$6;
|
|
1228
|
-
var speciesConstructor$
|
|
1228
|
+
var speciesConstructor$8 = speciesConstructor$9;
|
|
1229
1229
|
var task$5 = task$6.set;
|
|
1230
1230
|
var microtask$5 = microtask$6;
|
|
1231
1231
|
var promiseResolve$5 = promiseResolve$6;
|
|
@@ -1461,7 +1461,7 @@ if (FORCED$9) {
|
|
|
1461
1461
|
// https://tc39.github.io/ecma262/#sec-promise.prototype.then
|
|
1462
1462
|
then: function then(onFulfilled, onRejected) {
|
|
1463
1463
|
var state = getInternalPromiseState$4(this);
|
|
1464
|
-
var reaction = newPromiseCapability$6(speciesConstructor$
|
|
1464
|
+
var reaction = newPromiseCapability$6(speciesConstructor$8(this, PromiseConstructor$4));
|
|
1465
1465
|
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
|
1466
1466
|
reaction.fail = typeof onRejected == 'function' && onRejected;
|
|
1467
1467
|
reaction.domain = IS_NODE$5 ? process$6.domain : undefined;
|
|
@@ -13356,10 +13356,10 @@ var requireObjectCoercible$4$5 = function (it) {
|
|
|
13356
13356
|
|
|
13357
13357
|
|
|
13358
13358
|
var IndexedObject$1$3 = indexedObject$6;
|
|
13359
|
-
var requireObjectCoercible$3$
|
|
13359
|
+
var requireObjectCoercible$3$6 = requireObjectCoercible$4$5;
|
|
13360
13360
|
|
|
13361
13361
|
var toIndexedObject$4$4 = function (it) {
|
|
13362
|
-
return IndexedObject$1$3(requireObjectCoercible$3$
|
|
13362
|
+
return IndexedObject$1$3(requireObjectCoercible$3$6(it));
|
|
13363
13363
|
};
|
|
13364
13364
|
|
|
13365
13365
|
var check$7 = function (it) {
|
|
@@ -13512,8 +13512,8 @@ var uid$2$6 = function (key) {
|
|
|
13512
13512
|
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id$6 + postfix$6).toString(36);
|
|
13513
13513
|
};
|
|
13514
13514
|
|
|
13515
|
-
var fails$4$
|
|
13516
|
-
var nativeSymbol$6 = !!Object.getOwnPropertySymbols && !fails$4$
|
|
13515
|
+
var fails$4$7 = fails$8$4;
|
|
13516
|
+
var nativeSymbol$6 = !!Object.getOwnPropertySymbols && !fails$4$7(function () {
|
|
13517
13517
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
13518
13518
|
// eslint-disable-next-line no-undef
|
|
13519
13519
|
return !String(Symbol());
|
|
@@ -13549,11 +13549,11 @@ var toInteger$3$5 = function (argument) {
|
|
|
13549
13549
|
};
|
|
13550
13550
|
|
|
13551
13551
|
var toInteger$2$6 = toInteger$3$5;
|
|
13552
|
-
var min$1$
|
|
13552
|
+
var min$1$6 = Math.min; // `ToLength` abstract operation
|
|
13553
13553
|
// https://tc39.github.io/ecma262/#sec-tolength
|
|
13554
13554
|
|
|
13555
13555
|
var toLength$2$5 = function (argument) {
|
|
13556
|
-
return argument > 0 ? min$1$
|
|
13556
|
+
return argument > 0 ? min$1$6(toInteger$2$6(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
13557
13557
|
};
|
|
13558
13558
|
|
|
13559
13559
|
var toInteger$1$6 = toInteger$3$5;
|
|
@@ -13568,13 +13568,13 @@ var toAbsoluteIndex$1$6 = function (index, length) {
|
|
|
13568
13568
|
};
|
|
13569
13569
|
|
|
13570
13570
|
var toIndexedObject$3$6 = toIndexedObject$4$4;
|
|
13571
|
-
var toLength$1$
|
|
13571
|
+
var toLength$1$7 = toLength$2$5;
|
|
13572
13572
|
var toAbsoluteIndex$7 = toAbsoluteIndex$1$6; // `Array.prototype.{ indexOf, includes }` methods implementation
|
|
13573
13573
|
|
|
13574
13574
|
var createMethod$2$4 = function (IS_INCLUDES) {
|
|
13575
13575
|
return function ($this, el, fromIndex) {
|
|
13576
13576
|
var O = toIndexedObject$3$6($this);
|
|
13577
|
-
var length = toLength$1$
|
|
13577
|
+
var length = toLength$1$7(O.length);
|
|
13578
13578
|
var index = toAbsoluteIndex$7(fromIndex, length);
|
|
13579
13579
|
var value; // Array#includes uses SameValueZero equality algorithm
|
|
13580
13580
|
// eslint-disable-next-line no-self-compare
|
|
@@ -14158,7 +14158,7 @@ var aPossiblePrototype$1$4 = function (it) {
|
|
|
14158
14158
|
return it;
|
|
14159
14159
|
};
|
|
14160
14160
|
|
|
14161
|
-
var anObject$3$
|
|
14161
|
+
var anObject$3$7 = anObject$8$5;
|
|
14162
14162
|
var aPossiblePrototype$5 = aPossiblePrototype$1$4; // `Object.setPrototypeOf` method
|
|
14163
14163
|
// https://tc39.github.io/ecma262/#sec-object.setprototypeof
|
|
14164
14164
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
@@ -14179,7 +14179,7 @@ var objectSetPrototypeOf$4 = Object.setPrototypeOf || ('__proto__' in {} ? funct
|
|
|
14179
14179
|
}
|
|
14180
14180
|
|
|
14181
14181
|
return function setPrototypeOf(O, proto) {
|
|
14182
|
-
anObject$3$
|
|
14182
|
+
anObject$3$7(O);
|
|
14183
14183
|
aPossiblePrototype$5(proto);
|
|
14184
14184
|
if (CORRECT_SETTER) setter.call(O, proto);else O.__proto__ = proto;
|
|
14185
14185
|
return O;
|
|
@@ -17841,12 +17841,12 @@ var copyConstructorProperties$1$5 = function (target, source) {
|
|
|
17841
17841
|
}
|
|
17842
17842
|
};
|
|
17843
17843
|
|
|
17844
|
-
var fails$4$
|
|
17844
|
+
var fails$4$6 = fails$9$3;
|
|
17845
17845
|
var replacement$5 = /#|\.prototype\./;
|
|
17846
17846
|
|
|
17847
17847
|
var isForced$1$5 = function (feature, detection) {
|
|
17848
17848
|
var value = data$5[normalize$6(feature)];
|
|
17849
|
-
return value == POLYFILL$5 ? true : value == NATIVE$5 ? false : typeof detection == 'function' ? fails$4$
|
|
17849
|
+
return value == POLYFILL$5 ? true : value == NATIVE$5 ? false : typeof detection == 'function' ? fails$4$6(detection) : !!detection;
|
|
17850
17850
|
};
|
|
17851
17851
|
|
|
17852
17852
|
var normalize$6 = isForced$1$5.normalize = function (string) {
|
|
@@ -18303,11 +18303,11 @@ for (var COLLECTION_NAME$3 in DOMIterables$3) {
|
|
|
18303
18303
|
}
|
|
18304
18304
|
}
|
|
18305
18305
|
|
|
18306
|
-
var anObject$3$
|
|
18306
|
+
var anObject$3$6 = anObject$9$3; // `RegExp.prototype.flags` getter implementation
|
|
18307
18307
|
// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
|
|
18308
18308
|
|
|
18309
18309
|
var regexpFlags$1$5 = function () {
|
|
18310
|
-
var that = anObject$3$
|
|
18310
|
+
var that = anObject$3$6(this);
|
|
18311
18311
|
var result = '';
|
|
18312
18312
|
if (that.global) result += 'g';
|
|
18313
18313
|
if (that.ignoreCase) result += 'i';
|
|
@@ -18422,9 +18422,9 @@ if (PATCH$5) {
|
|
|
18422
18422
|
};
|
|
18423
18423
|
}
|
|
18424
18424
|
|
|
18425
|
-
var regexpExec$3$
|
|
18425
|
+
var regexpExec$3$4 = patchedExec$5;
|
|
18426
18426
|
var $$1$5 = _export$5;
|
|
18427
|
-
var exec$5 = regexpExec$3$
|
|
18427
|
+
var exec$5 = regexpExec$3$4;
|
|
18428
18428
|
$$1$5({
|
|
18429
18429
|
target: 'RegExp',
|
|
18430
18430
|
proto: true,
|
|
@@ -18436,7 +18436,7 @@ $$1$5({
|
|
|
18436
18436
|
var redefine$f = redefine$3$4.exports;
|
|
18437
18437
|
var fails$1$6 = fails$9$3;
|
|
18438
18438
|
var wellKnownSymbol$2$4 = wellKnownSymbol$8$4;
|
|
18439
|
-
var regexpExec$2$5 = regexpExec$3$
|
|
18439
|
+
var regexpExec$2$5 = regexpExec$3$4;
|
|
18440
18440
|
var createNonEnumerableProperty$e = createNonEnumerableProperty$8$3;
|
|
18441
18441
|
var SPECIES$1$4 = wellKnownSymbol$2$4('species');
|
|
18442
18442
|
var REPLACE_SUPPORTS_NAMED_GROUPS$5 = !fails$1$6(function () {
|
|
@@ -18604,11 +18604,11 @@ var speciesConstructor$1$4 = function (O, defaultConstructor) {
|
|
|
18604
18604
|
};
|
|
18605
18605
|
|
|
18606
18606
|
var toInteger$1$5 = toInteger$4$4;
|
|
18607
|
-
var requireObjectCoercible$3$
|
|
18607
|
+
var requireObjectCoercible$3$5 = requireObjectCoercible$6$3; // `String.prototype.{ codePointAt, at }` methods implementation
|
|
18608
18608
|
|
|
18609
18609
|
var createMethod$1$4 = function (CONVERT_TO_STRING) {
|
|
18610
18610
|
return function ($this, pos) {
|
|
18611
|
-
var S = String(requireObjectCoercible$3$
|
|
18611
|
+
var S = String(requireObjectCoercible$3$5($this));
|
|
18612
18612
|
var position = toInteger$1$5(pos);
|
|
18613
18613
|
var size = S.length;
|
|
18614
18614
|
var first, second;
|
|
@@ -18629,12 +18629,12 @@ var stringMultibyte$4 = {
|
|
|
18629
18629
|
var charAt$5 = stringMultibyte$4.charAt; // `AdvanceStringIndex` abstract operation
|
|
18630
18630
|
// https://tc39.github.io/ecma262/#sec-advancestringindex
|
|
18631
18631
|
|
|
18632
|
-
var advanceStringIndex$2$
|
|
18632
|
+
var advanceStringIndex$2$4 = function (S, index, unicode) {
|
|
18633
18633
|
return index + (unicode ? charAt$5(S, index).length : 1);
|
|
18634
18634
|
};
|
|
18635
18635
|
|
|
18636
18636
|
var classof$g = classofRaw$6;
|
|
18637
|
-
var regexpExec$1$5 = regexpExec$3$
|
|
18637
|
+
var regexpExec$1$5 = regexpExec$3$4; // `RegExpExec` abstract operation
|
|
18638
18638
|
// https://tc39.github.io/ecma262/#sec-regexpexec
|
|
18639
18639
|
|
|
18640
18640
|
var regexpExecAbstract$5 = function (R, S) {
|
|
@@ -18657,36 +18657,36 @@ var regexpExecAbstract$5 = function (R, S) {
|
|
|
18657
18657
|
return regexpExec$1$5.call(R, S);
|
|
18658
18658
|
};
|
|
18659
18659
|
|
|
18660
|
-
var fixRegExpWellKnownSymbolLogic$1$
|
|
18661
|
-
var isRegExp$
|
|
18660
|
+
var fixRegExpWellKnownSymbolLogic$1$4 = fixRegexpWellKnownSymbolLogic$5;
|
|
18661
|
+
var isRegExp$c = isRegexp$5;
|
|
18662
18662
|
var anObject$1$6 = anObject$9$3;
|
|
18663
18663
|
var requireObjectCoercible$2$6 = requireObjectCoercible$6$3;
|
|
18664
|
-
var speciesConstructor$
|
|
18665
|
-
var advanceStringIndex$1$4 = advanceStringIndex$2$
|
|
18666
|
-
var toLength$1$
|
|
18667
|
-
var callRegExpExec$
|
|
18668
|
-
var regexpExec$8 = regexpExec$3$
|
|
18664
|
+
var speciesConstructor$7 = speciesConstructor$1$4;
|
|
18665
|
+
var advanceStringIndex$1$4 = advanceStringIndex$2$4;
|
|
18666
|
+
var toLength$1$6 = toLength$3$4;
|
|
18667
|
+
var callRegExpExec$4 = regexpExecAbstract$5;
|
|
18668
|
+
var regexpExec$8 = regexpExec$3$4;
|
|
18669
18669
|
var fails$o = fails$9$3;
|
|
18670
|
-
var arrayPush$
|
|
18671
|
-
var min$1$
|
|
18672
|
-
var MAX_UINT32$
|
|
18670
|
+
var arrayPush$4 = [].push;
|
|
18671
|
+
var min$1$5 = Math.min;
|
|
18672
|
+
var MAX_UINT32$4 = 0xFFFFFFFF; // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
|
|
18673
18673
|
|
|
18674
|
-
var SUPPORTS_Y$
|
|
18675
|
-
return !RegExp(MAX_UINT32$
|
|
18674
|
+
var SUPPORTS_Y$4 = !fails$o(function () {
|
|
18675
|
+
return !RegExp(MAX_UINT32$4, 'y');
|
|
18676
18676
|
}); // @@split logic
|
|
18677
18677
|
|
|
18678
|
-
fixRegExpWellKnownSymbolLogic$1$
|
|
18678
|
+
fixRegExpWellKnownSymbolLogic$1$4('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
|
|
18679
18679
|
var internalSplit;
|
|
18680
18680
|
|
|
18681
18681
|
if ('abbc'.split(/(b)*/)[1] == 'c' || 'test'.split(/(?:)/, -1).length != 4 || 'ab'.split(/(?:ab)*/).length != 2 || '.'.split(/(.?)(.?)/).length != 4 || '.'.split(/()()/).length > 1 || ''.split(/.?/).length) {
|
|
18682
18682
|
// based on es5-shim implementation, need to rework it
|
|
18683
18683
|
internalSplit = function (separator, limit) {
|
|
18684
18684
|
var string = String(requireObjectCoercible$2$6(this));
|
|
18685
|
-
var lim = limit === undefined ? MAX_UINT32$
|
|
18685
|
+
var lim = limit === undefined ? MAX_UINT32$4 : limit >>> 0;
|
|
18686
18686
|
if (lim === 0) return [];
|
|
18687
18687
|
if (separator === undefined) return [string]; // If `separator` is not a regex, use native split
|
|
18688
18688
|
|
|
18689
|
-
if (!isRegExp$
|
|
18689
|
+
if (!isRegExp$c(separator)) {
|
|
18690
18690
|
return nativeSplit.call(string, separator, lim);
|
|
18691
18691
|
}
|
|
18692
18692
|
|
|
@@ -18702,7 +18702,7 @@ fixRegExpWellKnownSymbolLogic$1$3('split', 2, function (SPLIT, nativeSplit, mayb
|
|
|
18702
18702
|
|
|
18703
18703
|
if (lastIndex > lastLastIndex) {
|
|
18704
18704
|
output.push(string.slice(lastLastIndex, match.index));
|
|
18705
|
-
if (match.length > 1 && match.index < string.length) arrayPush$
|
|
18705
|
+
if (match.length > 1 && match.index < string.length) arrayPush$4.apply(output, match.slice(1));
|
|
18706
18706
|
lastLength = match[0].length;
|
|
18707
18707
|
lastLastIndex = lastIndex;
|
|
18708
18708
|
if (output.length >= lim) break;
|
|
@@ -18740,25 +18740,25 @@ fixRegExpWellKnownSymbolLogic$1$3('split', 2, function (SPLIT, nativeSplit, mayb
|
|
|
18740
18740
|
if (res.done) return res.value;
|
|
18741
18741
|
var rx = anObject$1$6(regexp);
|
|
18742
18742
|
var S = String(this);
|
|
18743
|
-
var C = speciesConstructor$
|
|
18743
|
+
var C = speciesConstructor$7(rx, RegExp);
|
|
18744
18744
|
var unicodeMatching = rx.unicode;
|
|
18745
|
-
var flags = (rx.ignoreCase ? 'i' : '') + (rx.multiline ? 'm' : '') + (rx.unicode ? 'u' : '') + (SUPPORTS_Y$
|
|
18745
|
+
var flags = (rx.ignoreCase ? 'i' : '') + (rx.multiline ? 'm' : '') + (rx.unicode ? 'u' : '') + (SUPPORTS_Y$4 ? 'y' : 'g'); // ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
18746
18746
|
// simulate the 'y' flag.
|
|
18747
18747
|
|
|
18748
|
-
var splitter = new C(SUPPORTS_Y$
|
|
18749
|
-
var lim = limit === undefined ? MAX_UINT32$
|
|
18748
|
+
var splitter = new C(SUPPORTS_Y$4 ? rx : '^(?:' + rx.source + ')', flags);
|
|
18749
|
+
var lim = limit === undefined ? MAX_UINT32$4 : limit >>> 0;
|
|
18750
18750
|
if (lim === 0) return [];
|
|
18751
|
-
if (S.length === 0) return callRegExpExec$
|
|
18751
|
+
if (S.length === 0) return callRegExpExec$4(splitter, S) === null ? [S] : [];
|
|
18752
18752
|
var p = 0;
|
|
18753
18753
|
var q = 0;
|
|
18754
18754
|
var A = [];
|
|
18755
18755
|
|
|
18756
18756
|
while (q < S.length) {
|
|
18757
|
-
splitter.lastIndex = SUPPORTS_Y$
|
|
18758
|
-
var z = callRegExpExec$
|
|
18757
|
+
splitter.lastIndex = SUPPORTS_Y$4 ? q : 0;
|
|
18758
|
+
var z = callRegExpExec$4(splitter, SUPPORTS_Y$4 ? S : S.slice(q));
|
|
18759
18759
|
var e;
|
|
18760
18760
|
|
|
18761
|
-
if (z === null || (e = min$1$
|
|
18761
|
+
if (z === null || (e = min$1$5(toLength$1$6(splitter.lastIndex + (SUPPORTS_Y$4 ? 0 : q)), S.length)) === p) {
|
|
18762
18762
|
q = advanceStringIndex$1$4(S, q, unicodeMatching);
|
|
18763
18763
|
} else {
|
|
18764
18764
|
A.push(S.slice(p, q));
|
|
@@ -18776,7 +18776,7 @@ fixRegExpWellKnownSymbolLogic$1$3('split', 2, function (SPLIT, nativeSplit, mayb
|
|
|
18776
18776
|
A.push(S.slice(p));
|
|
18777
18777
|
return A;
|
|
18778
18778
|
}];
|
|
18779
|
-
}, !SUPPORTS_Y$
|
|
18779
|
+
}, !SUPPORTS_Y$4);
|
|
18780
18780
|
var defaultFallbackLanguage = 'en';
|
|
18781
18781
|
var supportedUILanguages = new Set(['de', 'en', 'fr', 'es', 'zh-TW', 'zh-CN', 'ja', 'tr', 'it']);
|
|
18782
18782
|
|
|
@@ -18817,7 +18817,7 @@ var toObject$d = toObject$2$3;
|
|
|
18817
18817
|
var toLength$h = toLength$3$4;
|
|
18818
18818
|
var toInteger$a = toInteger$4$4;
|
|
18819
18819
|
var requireObjectCoercible$1$6 = requireObjectCoercible$6$3;
|
|
18820
|
-
var advanceStringIndex$7 = advanceStringIndex$2$
|
|
18820
|
+
var advanceStringIndex$7 = advanceStringIndex$2$4;
|
|
18821
18821
|
var regExpExec$7 = regexpExecAbstract$5;
|
|
18822
18822
|
var max$6 = Math.max;
|
|
18823
18823
|
var min$b = Math.min;
|
|
@@ -25094,10 +25094,10 @@ var documentCreateElement$5 = function (it) {
|
|
|
25094
25094
|
};
|
|
25095
25095
|
|
|
25096
25096
|
var DESCRIPTORS$3$4 = descriptors$4;
|
|
25097
|
-
var fails$4$
|
|
25097
|
+
var fails$4$5 = fails$7$4;
|
|
25098
25098
|
var createElement$5 = documentCreateElement$5; // Thank's IE8 for his funny defineProperty
|
|
25099
25099
|
|
|
25100
|
-
var ie8DomDefine$4 = !DESCRIPTORS$3$4 && !fails$4$
|
|
25100
|
+
var ie8DomDefine$4 = !DESCRIPTORS$3$4 && !fails$4$5(function () {
|
|
25101
25101
|
return Object.defineProperty(createElement$5('div'), 'a', {
|
|
25102
25102
|
get: function () {
|
|
25103
25103
|
return 7;
|
|
@@ -25137,15 +25137,15 @@ var anObject$4$4 = function (it) {
|
|
|
25137
25137
|
|
|
25138
25138
|
var DESCRIPTORS$1$4 = descriptors$4;
|
|
25139
25139
|
var IE8_DOM_DEFINE$5 = ie8DomDefine$4;
|
|
25140
|
-
var anObject$3$
|
|
25140
|
+
var anObject$3$5 = anObject$4$4;
|
|
25141
25141
|
var toPrimitive$7 = toPrimitive$2$4;
|
|
25142
25142
|
var nativeDefineProperty$4 = Object.defineProperty; // `Object.defineProperty` method
|
|
25143
25143
|
// https://tc39.github.io/ecma262/#sec-object.defineproperty
|
|
25144
25144
|
|
|
25145
25145
|
objectDefineProperty$4.f = DESCRIPTORS$1$4 ? nativeDefineProperty$4 : function defineProperty(O, P, Attributes) {
|
|
25146
|
-
anObject$3$
|
|
25146
|
+
anObject$3$5(O);
|
|
25147
25147
|
P = toPrimitive$7(P, true);
|
|
25148
|
-
anObject$3$
|
|
25148
|
+
anObject$3$5(Attributes);
|
|
25149
25149
|
if (IE8_DOM_DEFINE$5) try {
|
|
25150
25150
|
return nativeDefineProperty$4(O, P, Attributes);
|
|
25151
25151
|
} catch (error) {
|
|
@@ -25350,11 +25350,11 @@ var toInteger$2$4 = function (argument) {
|
|
|
25350
25350
|
};
|
|
25351
25351
|
|
|
25352
25352
|
var toInteger$1$4 = toInteger$2$4;
|
|
25353
|
-
var min$1$
|
|
25353
|
+
var min$1$4 = Math.min; // `ToLength` abstract operation
|
|
25354
25354
|
// https://tc39.github.io/ecma262/#sec-tolength
|
|
25355
25355
|
|
|
25356
|
-
var toLength$1$
|
|
25357
|
-
return argument > 0 ? min$1$
|
|
25356
|
+
var toLength$1$5 = function (argument) {
|
|
25357
|
+
return argument > 0 ? min$1$4(toInteger$1$4(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
25358
25358
|
};
|
|
25359
25359
|
|
|
25360
25360
|
var toInteger$9 = toInteger$2$4;
|
|
@@ -25369,7 +25369,7 @@ var toAbsoluteIndex$1$4 = function (index, length) {
|
|
|
25369
25369
|
};
|
|
25370
25370
|
|
|
25371
25371
|
var toIndexedObject$1$4 = toIndexedObject$3$4;
|
|
25372
|
-
var toLength$g = toLength$1$
|
|
25372
|
+
var toLength$g = toLength$1$5;
|
|
25373
25373
|
var toAbsoluteIndex$5 = toAbsoluteIndex$1$4; // `Array.prototype.{ indexOf, includes }` methods implementation
|
|
25374
25374
|
|
|
25375
25375
|
var createMethod$8 = function (IS_INCLUDES) {
|
|
@@ -40451,10 +40451,10 @@ var requireObjectCoercible$4$3 = function (it) {
|
|
|
40451
40451
|
|
|
40452
40452
|
|
|
40453
40453
|
var IndexedObject$5 = indexedObject$3;
|
|
40454
|
-
var requireObjectCoercible$3$
|
|
40454
|
+
var requireObjectCoercible$3$4 = requireObjectCoercible$4$3;
|
|
40455
40455
|
|
|
40456
40456
|
var toIndexedObject$3$3 = function (it) {
|
|
40457
|
-
return IndexedObject$5(requireObjectCoercible$3$
|
|
40457
|
+
return IndexedObject$5(requireObjectCoercible$3$4(it));
|
|
40458
40458
|
};
|
|
40459
40459
|
|
|
40460
40460
|
var isObject$8$3 = function (it) {
|
|
@@ -40492,10 +40492,10 @@ var documentCreateElement$1$3 = function (it) {
|
|
|
40492
40492
|
};
|
|
40493
40493
|
|
|
40494
40494
|
var DESCRIPTORS$5$3 = descriptors$3;
|
|
40495
|
-
var fails$4$
|
|
40495
|
+
var fails$4$4 = fails$7$3;
|
|
40496
40496
|
var createElement$1$3 = documentCreateElement$1$3; // Thank's IE8 for his funny defineProperty
|
|
40497
40497
|
|
|
40498
|
-
var ie8DomDefine$3 = !DESCRIPTORS$5$3 && !fails$4$
|
|
40498
|
+
var ie8DomDefine$3 = !DESCRIPTORS$5$3 && !fails$4$4(function () {
|
|
40499
40499
|
return Object.defineProperty(createElement$1$3('div'), 'a', {
|
|
40500
40500
|
get: function () {
|
|
40501
40501
|
return 7;
|
|
@@ -40757,13 +40757,13 @@ var toLength$5$3 = function (argument) {
|
|
|
40757
40757
|
|
|
40758
40758
|
var toInteger$2$3 = toInteger$4$3;
|
|
40759
40759
|
var max$4 = Math.max;
|
|
40760
|
-
var min$1$
|
|
40760
|
+
var min$1$3 = Math.min; // Helper for a popular repeating case of the spec:
|
|
40761
40761
|
// Let integer be ? ToInteger(index).
|
|
40762
40762
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
40763
40763
|
|
|
40764
40764
|
var toAbsoluteIndex$1$3 = function (index, length) {
|
|
40765
40765
|
var integer = toInteger$2$3(index);
|
|
40766
|
-
return integer < 0 ? max$4(integer + length, 0) : min$1$
|
|
40766
|
+
return integer < 0 ? max$4(integer + length, 0) : min$1$3(integer, length);
|
|
40767
40767
|
};
|
|
40768
40768
|
|
|
40769
40769
|
var toIndexedObject$1$3 = toIndexedObject$3$3;
|
|
@@ -41224,16 +41224,16 @@ var checkCorrectnessOfIteration$1$3 = function (exec, SKIP_CLOSING) {
|
|
|
41224
41224
|
return ITERATION_SUPPORT;
|
|
41225
41225
|
};
|
|
41226
41226
|
|
|
41227
|
-
var anObject$3$
|
|
41227
|
+
var anObject$3$4 = anObject$8$3;
|
|
41228
41228
|
var aFunction$3$3 = aFunction$5$3;
|
|
41229
41229
|
var wellKnownSymbol$5$3 = wellKnownSymbol$d$3;
|
|
41230
41230
|
var SPECIES$2$3 = wellKnownSymbol$5$3('species'); // `SpeciesConstructor` abstract operation
|
|
41231
41231
|
// https://tc39.github.io/ecma262/#sec-speciesconstructor
|
|
41232
41232
|
|
|
41233
41233
|
var speciesConstructor$1$3 = function (O, defaultConstructor) {
|
|
41234
|
-
var C = anObject$3$
|
|
41234
|
+
var C = anObject$3$4(O).constructor;
|
|
41235
41235
|
var S;
|
|
41236
|
-
return C === undefined || (S = anObject$3$
|
|
41236
|
+
return C === undefined || (S = anObject$3$4(C)[SPECIES$2$3]) == undefined ? defaultConstructor : aFunction$3$3(S);
|
|
41237
41237
|
};
|
|
41238
41238
|
|
|
41239
41239
|
var getBuiltIn$2$3 = getBuiltIn$5$3;
|
|
@@ -41525,7 +41525,7 @@ var classof$3$3 = classofRaw$1$3;
|
|
|
41525
41525
|
var inspectSource$6 = inspectSource$3$3;
|
|
41526
41526
|
var iterate$5 = iterate$2$3.exports;
|
|
41527
41527
|
var checkCorrectnessOfIteration$4 = checkCorrectnessOfIteration$1$3;
|
|
41528
|
-
var speciesConstructor$
|
|
41528
|
+
var speciesConstructor$6 = speciesConstructor$1$3;
|
|
41529
41529
|
var task$4 = task$1$3.set;
|
|
41530
41530
|
var microtask$4 = microtask$1$3;
|
|
41531
41531
|
var promiseResolve$4 = promiseResolve$1$3;
|
|
@@ -41785,7 +41785,7 @@ if (FORCED$1$3) {
|
|
|
41785
41785
|
// https://tc39.github.io/ecma262/#sec-promise.prototype.then
|
|
41786
41786
|
then: function then(onFulfilled, onRejected) {
|
|
41787
41787
|
var state = getInternalPromiseState$3(this);
|
|
41788
|
-
var reaction = newPromiseCapability$5(speciesConstructor$
|
|
41788
|
+
var reaction = newPromiseCapability$5(speciesConstructor$6(this, PromiseConstructor$3));
|
|
41789
41789
|
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
|
41790
41790
|
reaction.fail = typeof onRejected == 'function' && onRejected;
|
|
41791
41791
|
reaction.domain = IS_NODE$4 ? process$5.domain : undefined;
|
|
@@ -41936,10 +41936,10 @@ var isRegexp$4 = function (it) {
|
|
|
41936
41936
|
return isObject$1$3(it) && ((isRegExp = it[MATCH$1$3]) !== undefined ? !!isRegExp : classof$2$3(it) == 'RegExp');
|
|
41937
41937
|
};
|
|
41938
41938
|
|
|
41939
|
-
var isRegExp$
|
|
41939
|
+
var isRegExp$b = isRegexp$4;
|
|
41940
41940
|
|
|
41941
41941
|
var notARegexp$4 = function (it) {
|
|
41942
|
-
if (isRegExp$
|
|
41942
|
+
if (isRegExp$b(it)) {
|
|
41943
41943
|
throw TypeError("The method doesn't accept regular expressions");
|
|
41944
41944
|
}
|
|
41945
41945
|
|
|
@@ -42542,7 +42542,7 @@ var isArray$2$3 = Array.isArray || function isArray(arg) {
|
|
|
42542
42542
|
};
|
|
42543
42543
|
|
|
42544
42544
|
var isArray$1$3 = isArray$2$3;
|
|
42545
|
-
var toLength$1$
|
|
42545
|
+
var toLength$1$4 = toLength$5$3;
|
|
42546
42546
|
var bind$a = functionBindContext$3; // `FlattenIntoArray` abstract operation
|
|
42547
42547
|
// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
|
|
42548
42548
|
|
|
@@ -42557,7 +42557,7 @@ var flattenIntoArray$1$3 = function (target, original, source, sourceLen, start,
|
|
|
42557
42557
|
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
|
|
42558
42558
|
|
|
42559
42559
|
if (depth > 0 && isArray$1$3(element)) {
|
|
42560
|
-
targetIndex = flattenIntoArray$1$3(target, original, element, toLength$1$
|
|
42560
|
+
targetIndex = flattenIntoArray$1$3(target, original, element, toLength$1$4(element.length), targetIndex, depth - 1) - 1;
|
|
42561
42561
|
} else {
|
|
42562
42562
|
if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');
|
|
42563
42563
|
target[targetIndex] = element;
|
|
@@ -53019,9 +53019,9 @@ if (PATCH$3) {
|
|
|
53019
53019
|
};
|
|
53020
53020
|
}
|
|
53021
53021
|
|
|
53022
|
-
var regexpExec$3$
|
|
53022
|
+
var regexpExec$3$3 = patchedExec$3;
|
|
53023
53023
|
var $$6$2 = _export$2;
|
|
53024
|
-
var exec$3 = regexpExec$3$
|
|
53024
|
+
var exec$3 = regexpExec$3$3;
|
|
53025
53025
|
$$6$2({
|
|
53026
53026
|
target: 'RegExp',
|
|
53027
53027
|
proto: true,
|
|
@@ -53033,7 +53033,7 @@ $$6$2({
|
|
|
53033
53033
|
var redefine$1$3 = redefine$6$2.exports;
|
|
53034
53034
|
var fails$5$2 = fails$g$2;
|
|
53035
53035
|
var wellKnownSymbol$1$2 = wellKnownSymbol$h$2;
|
|
53036
|
-
var regexpExec$2$3 = regexpExec$3$
|
|
53036
|
+
var regexpExec$2$3 = regexpExec$3$3;
|
|
53037
53037
|
var createNonEnumerableProperty$b = createNonEnumerableProperty$8$2;
|
|
53038
53038
|
var SPECIES$1$2 = wellKnownSymbol$1$2('species');
|
|
53039
53039
|
var REPLACE_SUPPORTS_NAMED_GROUPS$3 = !fails$5$2(function () {
|
|
@@ -53200,7 +53200,7 @@ var advanceStringIndex$3$1 = function (S, index, unicode) {
|
|
|
53200
53200
|
};
|
|
53201
53201
|
|
|
53202
53202
|
var classof$1$2 = classofRaw$1$2;
|
|
53203
|
-
var regexpExec$1$3 = regexpExec$3$
|
|
53203
|
+
var regexpExec$1$3 = regexpExec$3$3; // `RegExpExec` abstract operation
|
|
53204
53204
|
// https://tc39.github.io/ecma262/#sec-regexpexec
|
|
53205
53205
|
|
|
53206
53206
|
var regexpExecAbstract$3 = function (R, S) {
|
|
@@ -53229,10 +53229,10 @@ var toObject$3$2 = toObject$6$2;
|
|
|
53229
53229
|
var toLength$4$2 = toLength$a$1;
|
|
53230
53230
|
var toInteger$7 = toInteger$4$2;
|
|
53231
53231
|
var requireObjectCoercible$4$2 = requireObjectCoercible$b$1;
|
|
53232
|
-
var advanceStringIndex$2$
|
|
53232
|
+
var advanceStringIndex$2$3 = advanceStringIndex$3$1;
|
|
53233
53233
|
var regExpExec$2$1 = regexpExecAbstract$3;
|
|
53234
53234
|
var max$3 = Math.max;
|
|
53235
|
-
var min$1$
|
|
53235
|
+
var min$1$2 = Math.min;
|
|
53236
53236
|
var floor$5 = Math.floor;
|
|
53237
53237
|
var SUBSTITUTION_SYMBOLS$2 = /\$([$&'`]|\d\d?|<[^>]*>)/g;
|
|
53238
53238
|
var SUBSTITUTION_SYMBOLS_NO_NAMED$2 = /\$([$&'`]|\d\d?)/g;
|
|
@@ -53279,7 +53279,7 @@ fixRegExpWellKnownSymbolLogic$3$1('replace', 2, function (REPLACE, nativeReplace
|
|
|
53279
53279
|
results.push(result);
|
|
53280
53280
|
if (!global) break;
|
|
53281
53281
|
var matchStr = String(result[0]);
|
|
53282
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex$2$
|
|
53282
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex$2$3(S, toLength$4$2(rx.lastIndex), fullUnicode);
|
|
53283
53283
|
}
|
|
53284
53284
|
|
|
53285
53285
|
var accumulatedResult = '';
|
|
@@ -53288,7 +53288,7 @@ fixRegExpWellKnownSymbolLogic$3$1('replace', 2, function (REPLACE, nativeReplace
|
|
|
53288
53288
|
for (var i = 0; i < results.length; i++) {
|
|
53289
53289
|
result = results[i];
|
|
53290
53290
|
var matched = String(result[0]);
|
|
53291
|
-
var position = max$3(min$1$
|
|
53291
|
+
var position = max$3(min$1$2(toInteger$7(result.index), S.length), 0);
|
|
53292
53292
|
var captures = []; // NOTE: This is equivalent to
|
|
53293
53293
|
// captures = result.slice(1).map(maybeToString)
|
|
53294
53294
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
@@ -53595,8 +53595,8 @@ var sameValue$1$2 = Object.is || function is(x, y) {
|
|
|
53595
53595
|
};
|
|
53596
53596
|
|
|
53597
53597
|
var fixRegExpWellKnownSymbolLogic$2$2 = fixRegexpWellKnownSymbolLogic$3;
|
|
53598
|
-
var anObject$3$
|
|
53599
|
-
var requireObjectCoercible$3$
|
|
53598
|
+
var anObject$3$3 = anObject$f$1;
|
|
53599
|
+
var requireObjectCoercible$3$3 = requireObjectCoercible$b$1;
|
|
53600
53600
|
var sameValue$3 = sameValue$1$2;
|
|
53601
53601
|
var regExpExec$1$2 = regexpExecAbstract$3; // @@search logic
|
|
53602
53602
|
|
|
@@ -53604,7 +53604,7 @@ fixRegExpWellKnownSymbolLogic$2$2('search', 1, function (SEARCH, nativeSearch, m
|
|
|
53604
53604
|
return [// `String.prototype.search` method
|
|
53605
53605
|
// https://tc39.github.io/ecma262/#sec-string.prototype.search
|
|
53606
53606
|
function search(regexp) {
|
|
53607
|
-
var O = requireObjectCoercible$3$
|
|
53607
|
+
var O = requireObjectCoercible$3$3(this);
|
|
53608
53608
|
var searcher = regexp == undefined ? undefined : regexp[SEARCH];
|
|
53609
53609
|
return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
|
|
53610
53610
|
}, // `RegExp.prototype[@@search]` method
|
|
@@ -53612,7 +53612,7 @@ fixRegExpWellKnownSymbolLogic$2$2('search', 1, function (SEARCH, nativeSearch, m
|
|
|
53612
53612
|
function (regexp) {
|
|
53613
53613
|
var res = maybeCallNative(nativeSearch, regexp, this);
|
|
53614
53614
|
if (res.done) return res.value;
|
|
53615
|
-
var rx = anObject$3$
|
|
53615
|
+
var rx = anObject$3$3(regexp);
|
|
53616
53616
|
var S = String(this);
|
|
53617
53617
|
var previousLastIndex = rx.lastIndex;
|
|
53618
53618
|
if (!sameValue$3(previousLastIndex, 0)) rx.lastIndex = 0;
|
|
@@ -53755,7 +53755,7 @@ var Plugins = function Plugins(_a) {
|
|
|
53755
53755
|
};
|
|
53756
53756
|
|
|
53757
53757
|
var DESCRIPTORS$c = descriptors$2;
|
|
53758
|
-
var fails$4$
|
|
53758
|
+
var fails$4$3 = fails$g$2;
|
|
53759
53759
|
var objectKeys$4 = objectKeys$2$2;
|
|
53760
53760
|
var getOwnPropertySymbolsModule$3 = objectGetOwnPropertySymbols$2;
|
|
53761
53761
|
var propertyIsEnumerableModule$3 = objectPropertyIsEnumerable$2;
|
|
@@ -53765,7 +53765,7 @@ var nativeAssign$2 = Object.assign;
|
|
|
53765
53765
|
var defineProperty$6 = Object.defineProperty; // `Object.assign` method
|
|
53766
53766
|
// https://tc39.github.io/ecma262/#sec-object.assign
|
|
53767
53767
|
|
|
53768
|
-
var objectAssign$3 = !nativeAssign$2 || fails$4$
|
|
53768
|
+
var objectAssign$3 = !nativeAssign$2 || fails$4$3(function () {
|
|
53769
53769
|
// should have correct order of operations (Edge bug)
|
|
53770
53770
|
if (DESCRIPTORS$c && nativeAssign$2({
|
|
53771
53771
|
b: 1
|
|
@@ -53906,14 +53906,14 @@ var defaultTheme = {
|
|
|
53906
53906
|
semanticColors: semanticColors,
|
|
53907
53907
|
textColors: textColors
|
|
53908
53908
|
};
|
|
53909
|
-
var fixRegExpWellKnownSymbolLogic$1$
|
|
53909
|
+
var fixRegExpWellKnownSymbolLogic$1$3 = fixRegexpWellKnownSymbolLogic$3;
|
|
53910
53910
|
var anObject$2$3 = anObject$f$1;
|
|
53911
|
-
var toLength$1$
|
|
53911
|
+
var toLength$1$3 = toLength$a$1;
|
|
53912
53912
|
var requireObjectCoercible$2$3 = requireObjectCoercible$b$1;
|
|
53913
53913
|
var advanceStringIndex$1$3 = advanceStringIndex$3$1;
|
|
53914
53914
|
var regExpExec$5 = regexpExecAbstract$3; // @@match logic
|
|
53915
53915
|
|
|
53916
|
-
fixRegExpWellKnownSymbolLogic$1$
|
|
53916
|
+
fixRegExpWellKnownSymbolLogic$1$3('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
|
|
53917
53917
|
return [// `String.prototype.match` method
|
|
53918
53918
|
// https://tc39.github.io/ecma262/#sec-string.prototype.match
|
|
53919
53919
|
function match(regexp) {
|
|
@@ -53937,7 +53937,7 @@ fixRegExpWellKnownSymbolLogic$1$2('match', 1, function (MATCH, nativeMatch, mayb
|
|
|
53937
53937
|
while ((result = regExpExec$5(rx, S)) !== null) {
|
|
53938
53938
|
var matchStr = String(result[0]);
|
|
53939
53939
|
A[n] = matchStr;
|
|
53940
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex$1$3(S, toLength$1$
|
|
53940
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex$1$3(S, toLength$1$3(rx.lastIndex), fullUnicode);
|
|
53941
53941
|
n++;
|
|
53942
53942
|
}
|
|
53943
53943
|
|
|
@@ -53996,21 +53996,21 @@ $$3$2({
|
|
|
53996
53996
|
parseInt: parseIntImplementation$1
|
|
53997
53997
|
});
|
|
53998
53998
|
var fixRegExpWellKnownSymbolLogic$6 = fixRegexpWellKnownSymbolLogic$3;
|
|
53999
|
-
var isRegExp$
|
|
53999
|
+
var isRegExp$a = isRegexp$3;
|
|
54000
54000
|
var anObject$1$3 = anObject$f$1;
|
|
54001
54001
|
var requireObjectCoercible$g = requireObjectCoercible$b$1;
|
|
54002
|
-
var speciesConstructor$
|
|
54002
|
+
var speciesConstructor$5 = speciesConstructor$2$2;
|
|
54003
54003
|
var advanceStringIndex$6 = advanceStringIndex$3$1;
|
|
54004
54004
|
var toLength$e = toLength$a$1;
|
|
54005
|
-
var callRegExpExec$
|
|
54006
|
-
var regexpExec$6 = regexpExec$3$
|
|
54005
|
+
var callRegExpExec$3 = regexpExecAbstract$3;
|
|
54006
|
+
var regexpExec$6 = regexpExec$3$3;
|
|
54007
54007
|
var fails$3$3 = fails$g$2;
|
|
54008
|
-
var arrayPush$
|
|
54008
|
+
var arrayPush$3 = [].push;
|
|
54009
54009
|
var min$8 = Math.min;
|
|
54010
|
-
var MAX_UINT32$
|
|
54010
|
+
var MAX_UINT32$3 = 0xFFFFFFFF; // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
|
|
54011
54011
|
|
|
54012
|
-
var SUPPORTS_Y$
|
|
54013
|
-
return !RegExp(MAX_UINT32$
|
|
54012
|
+
var SUPPORTS_Y$3 = !fails$3$3(function () {
|
|
54013
|
+
return !RegExp(MAX_UINT32$3, 'y');
|
|
54014
54014
|
}); // @@split logic
|
|
54015
54015
|
|
|
54016
54016
|
fixRegExpWellKnownSymbolLogic$6('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
|
|
@@ -54020,11 +54020,11 @@ fixRegExpWellKnownSymbolLogic$6('split', 2, function (SPLIT, nativeSplit, maybeC
|
|
|
54020
54020
|
// based on es5-shim implementation, need to rework it
|
|
54021
54021
|
internalSplit = function (separator, limit) {
|
|
54022
54022
|
var string = String(requireObjectCoercible$g(this));
|
|
54023
|
-
var lim = limit === undefined ? MAX_UINT32$
|
|
54023
|
+
var lim = limit === undefined ? MAX_UINT32$3 : limit >>> 0;
|
|
54024
54024
|
if (lim === 0) return [];
|
|
54025
54025
|
if (separator === undefined) return [string]; // If `separator` is not a regex, use native split
|
|
54026
54026
|
|
|
54027
|
-
if (!isRegExp$
|
|
54027
|
+
if (!isRegExp$a(separator)) {
|
|
54028
54028
|
return nativeSplit.call(string, separator, lim);
|
|
54029
54029
|
}
|
|
54030
54030
|
|
|
@@ -54040,7 +54040,7 @@ fixRegExpWellKnownSymbolLogic$6('split', 2, function (SPLIT, nativeSplit, maybeC
|
|
|
54040
54040
|
|
|
54041
54041
|
if (lastIndex > lastLastIndex) {
|
|
54042
54042
|
output.push(string.slice(lastLastIndex, match.index));
|
|
54043
|
-
if (match.length > 1 && match.index < string.length) arrayPush$
|
|
54043
|
+
if (match.length > 1 && match.index < string.length) arrayPush$3.apply(output, match.slice(1));
|
|
54044
54044
|
lastLength = match[0].length;
|
|
54045
54045
|
lastLastIndex = lastIndex;
|
|
54046
54046
|
if (output.length >= lim) break;
|
|
@@ -54078,25 +54078,25 @@ fixRegExpWellKnownSymbolLogic$6('split', 2, function (SPLIT, nativeSplit, maybeC
|
|
|
54078
54078
|
if (res.done) return res.value;
|
|
54079
54079
|
var rx = anObject$1$3(regexp);
|
|
54080
54080
|
var S = String(this);
|
|
54081
|
-
var C = speciesConstructor$
|
|
54081
|
+
var C = speciesConstructor$5(rx, RegExp);
|
|
54082
54082
|
var unicodeMatching = rx.unicode;
|
|
54083
|
-
var flags = (rx.ignoreCase ? 'i' : '') + (rx.multiline ? 'm' : '') + (rx.unicode ? 'u' : '') + (SUPPORTS_Y$
|
|
54083
|
+
var flags = (rx.ignoreCase ? 'i' : '') + (rx.multiline ? 'm' : '') + (rx.unicode ? 'u' : '') + (SUPPORTS_Y$3 ? 'y' : 'g'); // ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
54084
54084
|
// simulate the 'y' flag.
|
|
54085
54085
|
|
|
54086
|
-
var splitter = new C(SUPPORTS_Y$
|
|
54087
|
-
var lim = limit === undefined ? MAX_UINT32$
|
|
54086
|
+
var splitter = new C(SUPPORTS_Y$3 ? rx : '^(?:' + rx.source + ')', flags);
|
|
54087
|
+
var lim = limit === undefined ? MAX_UINT32$3 : limit >>> 0;
|
|
54088
54088
|
if (lim === 0) return [];
|
|
54089
|
-
if (S.length === 0) return callRegExpExec$
|
|
54089
|
+
if (S.length === 0) return callRegExpExec$3(splitter, S) === null ? [S] : [];
|
|
54090
54090
|
var p = 0;
|
|
54091
54091
|
var q = 0;
|
|
54092
54092
|
var A = [];
|
|
54093
54093
|
|
|
54094
54094
|
while (q < S.length) {
|
|
54095
|
-
splitter.lastIndex = SUPPORTS_Y$
|
|
54096
|
-
var z = callRegExpExec$
|
|
54095
|
+
splitter.lastIndex = SUPPORTS_Y$3 ? q : 0;
|
|
54096
|
+
var z = callRegExpExec$3(splitter, SUPPORTS_Y$3 ? S : S.slice(q));
|
|
54097
54097
|
var e;
|
|
54098
54098
|
|
|
54099
|
-
if (z === null || (e = min$8(toLength$e(splitter.lastIndex + (SUPPORTS_Y$
|
|
54099
|
+
if (z === null || (e = min$8(toLength$e(splitter.lastIndex + (SUPPORTS_Y$3 ? 0 : q)), S.length)) === p) {
|
|
54100
54100
|
q = advanceStringIndex$6(S, q, unicodeMatching);
|
|
54101
54101
|
} else {
|
|
54102
54102
|
A.push(S.slice(p, q));
|
|
@@ -54114,7 +54114,7 @@ fixRegExpWellKnownSymbolLogic$6('split', 2, function (SPLIT, nativeSplit, maybeC
|
|
|
54114
54114
|
A.push(S.slice(p));
|
|
54115
54115
|
return A;
|
|
54116
54116
|
}];
|
|
54117
|
-
}, !SUPPORTS_Y$
|
|
54117
|
+
}, !SUPPORTS_Y$3);
|
|
54118
54118
|
var fails$2$3 = fails$g$2;
|
|
54119
54119
|
var whitespaces$6 = whitespaces$3$1;
|
|
54120
54120
|
var non$3 = '\u200B\u0085\u180E'; // check that a method works with the correct list
|
|
@@ -66385,7 +66385,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
66385
66385
|
if (isString$1(obj)) {
|
|
66386
66386
|
return markBoxed(inspect(String(obj)));
|
|
66387
66387
|
}
|
|
66388
|
-
if (!isDate(obj) && !isRegExp$
|
|
66388
|
+
if (!isDate(obj) && !isRegExp$9(obj)) {
|
|
66389
66389
|
var ys = arrObjKeys(obj, inspect);
|
|
66390
66390
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
66391
66391
|
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
@@ -66412,7 +66412,7 @@ function quote(s) {
|
|
|
66412
66412
|
|
|
66413
66413
|
function isArray$8(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
66414
66414
|
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
66415
|
-
function isRegExp$
|
|
66415
|
+
function isRegExp$9(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
66416
66416
|
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
66417
66417
|
function isString$1(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
66418
66418
|
function isNumber$2(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
@@ -67016,7 +67016,7 @@ var compact$1 = function compact(value) {
|
|
|
67016
67016
|
return value;
|
|
67017
67017
|
};
|
|
67018
67018
|
|
|
67019
|
-
var isRegExp$
|
|
67019
|
+
var isRegExp$8 = function isRegExp(obj) {
|
|
67020
67020
|
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
67021
67021
|
};
|
|
67022
67022
|
|
|
@@ -67051,7 +67051,7 @@ var utils$3 = {
|
|
|
67051
67051
|
decode: decode,
|
|
67052
67052
|
encode: encode$1,
|
|
67053
67053
|
isBuffer: isBuffer,
|
|
67054
|
-
isRegExp: isRegExp$
|
|
67054
|
+
isRegExp: isRegExp$8,
|
|
67055
67055
|
maybeMap: maybeMap,
|
|
67056
67056
|
merge: merge$2
|
|
67057
67057
|
};
|
|
@@ -79308,9 +79308,9 @@ if (PATCH$2) {
|
|
|
79308
79308
|
};
|
|
79309
79309
|
}
|
|
79310
79310
|
|
|
79311
|
-
var regexpExec$3$
|
|
79311
|
+
var regexpExec$3$2 = patchedExec$2;
|
|
79312
79312
|
var $$4$1 = _export$1;
|
|
79313
|
-
var exec$2 = regexpExec$3$
|
|
79313
|
+
var exec$2 = regexpExec$3$2;
|
|
79314
79314
|
$$4$1({
|
|
79315
79315
|
target: 'RegExp',
|
|
79316
79316
|
proto: true,
|
|
@@ -79322,7 +79322,7 @@ $$4$1({
|
|
|
79322
79322
|
var redefine$3$1 = redefine$7$1.exports;
|
|
79323
79323
|
var fails$5$1 = fails$h$1;
|
|
79324
79324
|
var wellKnownSymbol$a$1 = wellKnownSymbol$i$1;
|
|
79325
|
-
var regexpExec$2$2 = regexpExec$3$
|
|
79325
|
+
var regexpExec$2$2 = regexpExec$3$2;
|
|
79326
79326
|
var createNonEnumerableProperty$a = createNonEnumerableProperty$8$1;
|
|
79327
79327
|
var SPECIES$4$1 = wellKnownSymbol$a$1('species');
|
|
79328
79328
|
var REPLACE_SUPPORTS_NAMED_GROUPS$2 = !fails$5$1(function () {
|
|
@@ -79466,7 +79466,7 @@ var sameValue$1$1 = Object.is || function is(x, y) {
|
|
|
79466
79466
|
};
|
|
79467
79467
|
|
|
79468
79468
|
var classof$6$1 = classofRaw$1$1;
|
|
79469
|
-
var regexpExec$1$2 = regexpExec$3$
|
|
79469
|
+
var regexpExec$1$2 = regexpExec$3$2; // `RegExpExec` abstract operation
|
|
79470
79470
|
// https://tc39.github.io/ecma262/#sec-regexpexec
|
|
79471
79471
|
|
|
79472
79472
|
var regexpExecAbstract$2 = function (R, S) {
|
|
@@ -79517,11 +79517,11 @@ fixRegExpWellKnownSymbolLogic$2$1('search', 1, function (SEARCH, nativeSearch, m
|
|
|
79517
79517
|
}];
|
|
79518
79518
|
});
|
|
79519
79519
|
var toInteger$1$1 = toInteger$4$1;
|
|
79520
|
-
var requireObjectCoercible$3$
|
|
79520
|
+
var requireObjectCoercible$3$2 = requireObjectCoercible$9$1; // `String.prototype.{ codePointAt, at }` methods implementation
|
|
79521
79521
|
|
|
79522
79522
|
var createMethod$1$2 = function (CONVERT_TO_STRING) {
|
|
79523
79523
|
return function ($this, pos) {
|
|
79524
|
-
var S = String(requireObjectCoercible$3$
|
|
79524
|
+
var S = String(requireObjectCoercible$3$2($this));
|
|
79525
79525
|
var position = toInteger$1$1(pos);
|
|
79526
79526
|
var size = S.length;
|
|
79527
79527
|
var first, second;
|
|
@@ -79542,20 +79542,20 @@ var stringMultibyte$2 = {
|
|
|
79542
79542
|
var charAt$3 = stringMultibyte$2.charAt; // `AdvanceStringIndex` abstract operation
|
|
79543
79543
|
// https://tc39.github.io/ecma262/#sec-advancestringindex
|
|
79544
79544
|
|
|
79545
|
-
var advanceStringIndex$2$
|
|
79545
|
+
var advanceStringIndex$2$2 = function (S, index, unicode) {
|
|
79546
79546
|
return index + (unicode ? charAt$3(S, index).length : 1);
|
|
79547
79547
|
};
|
|
79548
79548
|
|
|
79549
|
-
var fixRegExpWellKnownSymbolLogic$1$
|
|
79549
|
+
var fixRegExpWellKnownSymbolLogic$1$2 = fixRegexpWellKnownSymbolLogic$2;
|
|
79550
79550
|
var anObject$5$1 = anObject$e$1;
|
|
79551
79551
|
var toObject$3$1 = toObject$7$1;
|
|
79552
79552
|
var toLength$4$1 = toLength$8$1;
|
|
79553
79553
|
var toInteger$6 = toInteger$4$1;
|
|
79554
79554
|
var requireObjectCoercible$2$2 = requireObjectCoercible$9$1;
|
|
79555
|
-
var advanceStringIndex$1$2 = advanceStringIndex$2$
|
|
79555
|
+
var advanceStringIndex$1$2 = advanceStringIndex$2$2;
|
|
79556
79556
|
var regExpExec$4 = regexpExecAbstract$2;
|
|
79557
79557
|
var max = Math.max;
|
|
79558
|
-
var min$1 = Math.min;
|
|
79558
|
+
var min$1$1 = Math.min;
|
|
79559
79559
|
var floor$4 = Math.floor;
|
|
79560
79560
|
var SUBSTITUTION_SYMBOLS$1 = /\$([$&'`]|\d\d?|<[^>]*>)/g;
|
|
79561
79561
|
var SUBSTITUTION_SYMBOLS_NO_NAMED$1 = /\$([$&'`]|\d\d?)/g;
|
|
@@ -79565,7 +79565,7 @@ var maybeToString$1 = function (it) {
|
|
|
79565
79565
|
}; // @@replace logic
|
|
79566
79566
|
|
|
79567
79567
|
|
|
79568
|
-
fixRegExpWellKnownSymbolLogic$1$
|
|
79568
|
+
fixRegExpWellKnownSymbolLogic$1$2('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
|
|
79569
79569
|
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
|
79570
79570
|
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
|
79571
79571
|
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
@@ -79611,7 +79611,7 @@ fixRegExpWellKnownSymbolLogic$1$1('replace', 2, function (REPLACE, nativeReplace
|
|
|
79611
79611
|
for (var i = 0; i < results.length; i++) {
|
|
79612
79612
|
result = results[i];
|
|
79613
79613
|
var matched = String(result[0]);
|
|
79614
|
-
var position = max(min$1(toInteger$6(result.index), S.length), 0);
|
|
79614
|
+
var position = max(min$1$1(toInteger$6(result.index), S.length), 0);
|
|
79615
79615
|
var captures = []; // NOTE: This is equivalent to
|
|
79616
79616
|
// captures = result.slice(1).map(maybeToString)
|
|
79617
79617
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
@@ -79729,7 +79729,7 @@ var isRegExp$1$1 = isRegexp$2;
|
|
|
79729
79729
|
var getFlags$1 = regexpFlags$1$2;
|
|
79730
79730
|
var stickyHelpers$3 = regexpStickyHelpers$2;
|
|
79731
79731
|
var redefine$2$1 = redefine$7$1.exports;
|
|
79732
|
-
var fails$4$
|
|
79732
|
+
var fails$4$2 = fails$h$1;
|
|
79733
79733
|
var setInternalState$1$1 = internalState$1.set;
|
|
79734
79734
|
var setSpecies$1$1 = setSpecies$2$1;
|
|
79735
79735
|
var wellKnownSymbol$8$1 = wellKnownSymbol$i$1;
|
|
@@ -79741,7 +79741,7 @@ var re2$1 = /a/g; // "new" should create a new object, old webkit bug
|
|
|
79741
79741
|
|
|
79742
79742
|
var CORRECT_NEW$1 = new NativeRegExp$1(re1$1) !== re1$1;
|
|
79743
79743
|
var UNSUPPORTED_Y$3 = stickyHelpers$3.UNSUPPORTED_Y;
|
|
79744
|
-
var FORCED$2$1 = DESCRIPTORS$b && isForced$1$1('RegExp', !CORRECT_NEW$1 || UNSUPPORTED_Y$3 || fails$4$
|
|
79744
|
+
var FORCED$2$1 = DESCRIPTORS$b && isForced$1$1('RegExp', !CORRECT_NEW$1 || UNSUPPORTED_Y$3 || fails$4$2(function () {
|
|
79745
79745
|
re2$1[MATCH$5] = false; // RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
79746
79746
|
|
|
79747
79747
|
return NativeRegExp$1(re1$1) != re1$1 || NativeRegExp$1(re2$1) == re2$1 || NativeRegExp$1(re1$1, 'i') != '/a/i';
|
|
@@ -79918,7 +79918,7 @@ var callWithSafeIterationClosing$1$1 = function (iterator, fn, value, ENTRIES) {
|
|
|
79918
79918
|
}
|
|
79919
79919
|
};
|
|
79920
79920
|
|
|
79921
|
-
var anObject$3$
|
|
79921
|
+
var anObject$3$2 = anObject$e$1;
|
|
79922
79922
|
var isArrayIteratorMethod$3 = isArrayIteratorMethod$1$1;
|
|
79923
79923
|
var toLength$3$1 = toLength$8$1;
|
|
79924
79924
|
var bind$3$1 = functionBindContext$1;
|
|
@@ -79942,7 +79942,7 @@ var iterate$1$1 = iterate$2$1.exports = function (iterable, fn, that, AS_ENTRIES
|
|
|
79942
79942
|
|
|
79943
79943
|
if (isArrayIteratorMethod$3(iterFn)) {
|
|
79944
79944
|
for (index = 0, length = toLength$3$1(iterable.length); length > index; index++) {
|
|
79945
|
-
result = AS_ENTRIES ? boundFunction(anObject$3$
|
|
79945
|
+
result = AS_ENTRIES ? boundFunction(anObject$3$2(step = iterable[index])[0], step[1]) : boundFunction(iterable[index]);
|
|
79946
79946
|
if (result && result instanceof Result$1) return result;
|
|
79947
79947
|
}
|
|
79948
79948
|
|
|
@@ -81263,21 +81263,21 @@ var Host$p$1 = _styled.div.withConfig({
|
|
|
81263
81263
|
|
|
81264
81264
|
var templateObject_1$T$1;
|
|
81265
81265
|
var fixRegExpWellKnownSymbolLogic$5 = fixRegexpWellKnownSymbolLogic$2;
|
|
81266
|
-
var isRegExp$
|
|
81266
|
+
var isRegExp$7 = isRegexp$2;
|
|
81267
81267
|
var anObject$j = anObject$e$1;
|
|
81268
81268
|
var requireObjectCoercible$1$2 = requireObjectCoercible$9$1;
|
|
81269
|
-
var speciesConstructor$
|
|
81270
|
-
var advanceStringIndex$5 = advanceStringIndex$2$
|
|
81269
|
+
var speciesConstructor$4 = speciesConstructor$2$1;
|
|
81270
|
+
var advanceStringIndex$5 = advanceStringIndex$2$2;
|
|
81271
81271
|
var toLength$2$1 = toLength$8$1;
|
|
81272
|
-
var callRegExpExec$
|
|
81273
|
-
var regexpExec$5 = regexpExec$3$
|
|
81272
|
+
var callRegExpExec$2 = regexpExecAbstract$2;
|
|
81273
|
+
var regexpExec$5 = regexpExec$3$2;
|
|
81274
81274
|
var fails$1$2 = fails$h$1;
|
|
81275
|
-
var arrayPush$
|
|
81275
|
+
var arrayPush$2 = [].push;
|
|
81276
81276
|
var min$7 = Math.min;
|
|
81277
|
-
var MAX_UINT32$
|
|
81277
|
+
var MAX_UINT32$2 = 0xFFFFFFFF; // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
|
|
81278
81278
|
|
|
81279
|
-
var SUPPORTS_Y$
|
|
81280
|
-
return !RegExp(MAX_UINT32$
|
|
81279
|
+
var SUPPORTS_Y$2 = !fails$1$2(function () {
|
|
81280
|
+
return !RegExp(MAX_UINT32$2, 'y');
|
|
81281
81281
|
}); // @@split logic
|
|
81282
81282
|
|
|
81283
81283
|
fixRegExpWellKnownSymbolLogic$5('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
|
|
@@ -81287,11 +81287,11 @@ fixRegExpWellKnownSymbolLogic$5('split', 2, function (SPLIT, nativeSplit, maybeC
|
|
|
81287
81287
|
// based on es5-shim implementation, need to rework it
|
|
81288
81288
|
internalSplit = function (separator, limit) {
|
|
81289
81289
|
var string = String(requireObjectCoercible$1$2(this));
|
|
81290
|
-
var lim = limit === undefined ? MAX_UINT32$
|
|
81290
|
+
var lim = limit === undefined ? MAX_UINT32$2 : limit >>> 0;
|
|
81291
81291
|
if (lim === 0) return [];
|
|
81292
81292
|
if (separator === undefined) return [string]; // If `separator` is not a regex, use native split
|
|
81293
81293
|
|
|
81294
|
-
if (!isRegExp$
|
|
81294
|
+
if (!isRegExp$7(separator)) {
|
|
81295
81295
|
return nativeSplit.call(string, separator, lim);
|
|
81296
81296
|
}
|
|
81297
81297
|
|
|
@@ -81307,7 +81307,7 @@ fixRegExpWellKnownSymbolLogic$5('split', 2, function (SPLIT, nativeSplit, maybeC
|
|
|
81307
81307
|
|
|
81308
81308
|
if (lastIndex > lastLastIndex) {
|
|
81309
81309
|
output.push(string.slice(lastLastIndex, match.index));
|
|
81310
|
-
if (match.length > 1 && match.index < string.length) arrayPush$
|
|
81310
|
+
if (match.length > 1 && match.index < string.length) arrayPush$2.apply(output, match.slice(1));
|
|
81311
81311
|
lastLength = match[0].length;
|
|
81312
81312
|
lastLastIndex = lastIndex;
|
|
81313
81313
|
if (output.length >= lim) break;
|
|
@@ -81345,25 +81345,25 @@ fixRegExpWellKnownSymbolLogic$5('split', 2, function (SPLIT, nativeSplit, maybeC
|
|
|
81345
81345
|
if (res.done) return res.value;
|
|
81346
81346
|
var rx = anObject$j(regexp);
|
|
81347
81347
|
var S = String(this);
|
|
81348
|
-
var C = speciesConstructor$
|
|
81348
|
+
var C = speciesConstructor$4(rx, RegExp);
|
|
81349
81349
|
var unicodeMatching = rx.unicode;
|
|
81350
|
-
var flags = (rx.ignoreCase ? 'i' : '') + (rx.multiline ? 'm' : '') + (rx.unicode ? 'u' : '') + (SUPPORTS_Y$
|
|
81350
|
+
var flags = (rx.ignoreCase ? 'i' : '') + (rx.multiline ? 'm' : '') + (rx.unicode ? 'u' : '') + (SUPPORTS_Y$2 ? 'y' : 'g'); // ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
81351
81351
|
// simulate the 'y' flag.
|
|
81352
81352
|
|
|
81353
|
-
var splitter = new C(SUPPORTS_Y$
|
|
81354
|
-
var lim = limit === undefined ? MAX_UINT32$
|
|
81353
|
+
var splitter = new C(SUPPORTS_Y$2 ? rx : '^(?:' + rx.source + ')', flags);
|
|
81354
|
+
var lim = limit === undefined ? MAX_UINT32$2 : limit >>> 0;
|
|
81355
81355
|
if (lim === 0) return [];
|
|
81356
|
-
if (S.length === 0) return callRegExpExec$
|
|
81356
|
+
if (S.length === 0) return callRegExpExec$2(splitter, S) === null ? [S] : [];
|
|
81357
81357
|
var p = 0;
|
|
81358
81358
|
var q = 0;
|
|
81359
81359
|
var A = [];
|
|
81360
81360
|
|
|
81361
81361
|
while (q < S.length) {
|
|
81362
|
-
splitter.lastIndex = SUPPORTS_Y$
|
|
81363
|
-
var z = callRegExpExec$
|
|
81362
|
+
splitter.lastIndex = SUPPORTS_Y$2 ? q : 0;
|
|
81363
|
+
var z = callRegExpExec$2(splitter, SUPPORTS_Y$2 ? S : S.slice(q));
|
|
81364
81364
|
var e;
|
|
81365
81365
|
|
|
81366
|
-
if (z === null || (e = min$7(toLength$2$1(splitter.lastIndex + (SUPPORTS_Y$
|
|
81366
|
+
if (z === null || (e = min$7(toLength$2$1(splitter.lastIndex + (SUPPORTS_Y$2 ? 0 : q)), S.length)) === p) {
|
|
81367
81367
|
q = advanceStringIndex$5(S, q, unicodeMatching);
|
|
81368
81368
|
} else {
|
|
81369
81369
|
A.push(S.slice(p, q));
|
|
@@ -81381,7 +81381,7 @@ fixRegExpWellKnownSymbolLogic$5('split', 2, function (SPLIT, nativeSplit, maybeC
|
|
|
81381
81381
|
A.push(S.slice(p));
|
|
81382
81382
|
return A;
|
|
81383
81383
|
}];
|
|
81384
|
-
}, !SUPPORTS_Y$
|
|
81384
|
+
}, !SUPPORTS_Y$2);
|
|
81385
81385
|
var VideoMimeTypes;
|
|
81386
81386
|
|
|
81387
81387
|
(function (VideoMimeTypes) {
|
|
@@ -82429,10 +82429,10 @@ var SingleImageHost = _styled.a.withConfig({
|
|
|
82429
82429
|
var Gallery = _styled.div.withConfig({
|
|
82430
82430
|
displayName: "PhotoGrid__Gallery",
|
|
82431
82431
|
componentId: "sc-flk193-2"
|
|
82432
|
-
})(templateObject_6$7$
|
|
82432
|
+
})(templateObject_6$7$2 || (templateObject_6$7$2 = __makeTemplateObject$1(["\n width: 100%;\n height: 100%;\n overflow: hidden;\n\n background-color: ", ";\n\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n grid-template-rows: repeat(2, 1fr);\n\n // case: gallery with 3 images\n // the first image will span across the 2 grid tracks (2 rows)\n > a:first-child:nth-last-child(3) {\n grid-row: auto / span 2;\n }\n\n // case: gallery with 2 images\n // the images will span across the 2 grid tracks (2 rows)\n > a:first-child:nth-last-child(2),\n > a:nth-child(2):last-child {\n grid-row: auto / span 2;\n }\n\n ", "\n"], ["\n width: 100%;\n height: 100%;\n overflow: hidden;\n\n background-color: ", ";\n\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n grid-template-rows: repeat(2, 1fr);\n\n // case: gallery with 3 images\n // the first image will span across the 2 grid tracks (2 rows)\n > a:first-child:nth-last-child(3) {\n grid-row: auto / span 2;\n }\n\n // case: gallery with 2 images\n // the images will span across the 2 grid tracks (2 rows)\n > a:first-child:nth-last-child(2),\n > a:nth-child(2):last-child {\n grid-row: auto / span 2;\n }\n\n ", "\n"])), function (p) {
|
|
82433
82433
|
return p.backgroundColor;
|
|
82434
82434
|
}, function (p) {
|
|
82435
|
-
return p.applyRoundedCorners && css$2(templateObject_5$9$
|
|
82435
|
+
return p.applyRoundedCorners && css$2(templateObject_5$9$2 || (templateObject_5$9$2 = __makeTemplateObject$1(["\n border-radius: 10px;\n "], ["\n border-radius: 10px;\n "])));
|
|
82436
82436
|
});
|
|
82437
82437
|
|
|
82438
82438
|
var ImageItem = _styled.a.withConfig({
|
|
@@ -82450,7 +82450,7 @@ var MoreIndicator = _styled(DefaultButton).withConfig({
|
|
|
82450
82450
|
componentId: "sc-flk193-5"
|
|
82451
82451
|
})(templateObject_9$2$2 || (templateObject_9$2$2 = __makeTemplateObject$1(["\n && {\n margin: 0;\n padding: 0;\n border: 0;\n width: auto;\n height: auto;\n color: white;\n background: transparent;\n\n &:hover {\n background: transparent;\n }\n }\n\n position: absolute;\n bottom: 15px;\n right: 15px;\n\n font-size: ", "px;\n @media (min-width: ", "px) {\n font-size: ", "px;\n }\n\n @supports (filter: drop-shadow(0 1px 2px #000000cc)) {\n filter: drop-shadow(0 1px 2px #000000cc);\n }\n\n @supports not (filter: drop-shadow(0 1px 2px #000000cc)) {\n text-shadow: 0 1px 2px #000000cc;\n }\n"], ["\n && {\n margin: 0;\n padding: 0;\n border: 0;\n width: auto;\n height: auto;\n color: white;\n background: transparent;\n\n &:hover {\n background: transparent;\n }\n }\n\n position: absolute;\n bottom: 15px;\n right: 15px;\n\n font-size: ", "px;\n @media (min-width: ", "px) {\n font-size: ", "px;\n }\n\n @supports (filter: drop-shadow(0 1px 2px #000000cc)) {\n filter: drop-shadow(0 1px 2px #000000cc);\n }\n\n @supports not (filter: drop-shadow(0 1px 2px #000000cc)) {\n text-shadow: 0 1px 2px #000000cc;\n }\n"])), fontSizeMedium, minScreenSize.small, fontSizeLarge + 3);
|
|
82452
82452
|
|
|
82453
|
-
var templateObject_1$K$1, templateObject_2$v$1, templateObject_3$m$1, templateObject_4$e$1, templateObject_5$9$
|
|
82453
|
+
var templateObject_1$K$1, templateObject_2$v$1, templateObject_3$m$1, templateObject_4$e$1, templateObject_5$9$2, templateObject_6$7$2, templateObject_7$3$2, templateObject_8$3$2, templateObject_9$2$2;
|
|
82454
82454
|
|
|
82455
82455
|
function showPhoto(url, title) {
|
|
82456
82456
|
{
|
|
@@ -82525,11 +82525,11 @@ var Button = _styled(IconButton$1).withConfig({
|
|
|
82525
82525
|
var StyledLink$2 = _styled(Link$4).withConfig({
|
|
82526
82526
|
displayName: "IconHeaderButton__StyledLink",
|
|
82527
82527
|
componentId: "sc-1p61ffo-2"
|
|
82528
|
-
})(templateObject_6$6$
|
|
82529
|
-
return css$2(templateObject_5$8$
|
|
82528
|
+
})(templateObject_6$6$2 || (templateObject_6$6$2 = __makeTemplateObject$1(["\n && {\n height: 100%;\n ", ";\n }\n"], ["\n && {\n height: 100%;\n ", ";\n }\n"])), function (p) {
|
|
82529
|
+
return css$2(templateObject_5$8$2 || (templateObject_5$8$2 = __makeTemplateObject$1(["\n color: ", ";\n "], ["\n color: ", ";\n "])), p.theme.textColors.onPrimary);
|
|
82530
82530
|
});
|
|
82531
82531
|
|
|
82532
|
-
var templateObject_1$J$1, templateObject_2$u$1, templateObject_3$l$1, templateObject_4$d$1, templateObject_5$8$
|
|
82532
|
+
var templateObject_1$J$1, templateObject_2$u$1, templateObject_3$l$1, templateObject_4$d$1, templateObject_5$8$2, templateObject_6$6$2; // a string of all valid unicode whitespaces
|
|
82533
82533
|
// eslint-disable-next-line max-len
|
|
82534
82534
|
|
|
82535
82535
|
var whitespaces$2$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
@@ -82839,7 +82839,7 @@ var StyledTextField = _styled(TextField).withConfig({
|
|
|
82839
82839
|
var StyledSpinner$1$1 = _styled(Spinner$1).withConfig({
|
|
82840
82840
|
displayName: "Search__StyledSpinner",
|
|
82841
82841
|
componentId: "sc-17f35gt-1"
|
|
82842
|
-
})(templateObject_4$b$
|
|
82842
|
+
})(templateObject_4$b$2 || (templateObject_4$b$2 = __makeTemplateObject$1(["\n display: flex;\n align-items: center;\n padding-right: 8px;\n\n color: ", ";\n background-color: ", ";\n"], ["\n display: flex;\n align-items: center;\n padding-right: 8px;\n\n color: ", ";\n background-color: ", ";\n"])), function (p) {
|
|
82843
82843
|
return p.theme.textColors.onPrimary;
|
|
82844
82844
|
}, function (p) {
|
|
82845
82845
|
return p.theme.palette.themeDarker;
|
|
@@ -82913,7 +82913,7 @@ var SearchBox = function SearchBox(_a) {
|
|
|
82913
82913
|
}
|
|
82914
82914
|
};
|
|
82915
82915
|
|
|
82916
|
-
var templateObject_1$H$1, templateObject_2$s$1, templateObject_3$j$1, templateObject_4$b$
|
|
82916
|
+
var templateObject_1$H$1, templateObject_2$s$1, templateObject_3$j$1, templateObject_4$b$2, templateObject_5$6$2, templateObject_6$4$2, templateObject_7$2$2, templateObject_8$2$2;
|
|
82917
82917
|
var TableSortOrder;
|
|
82918
82918
|
|
|
82919
82919
|
(function (TableSortOrder) {
|
|
@@ -82929,7 +82929,7 @@ _styled(Icon).withConfig({
|
|
|
82929
82929
|
_styled.span.withConfig({
|
|
82930
82930
|
displayName: "SortableTable__Title",
|
|
82931
82931
|
componentId: "sc-6tqdpa-1"
|
|
82932
|
-
})(templateObject_4$a$
|
|
82932
|
+
})(templateObject_4$a$2 || (templateObject_4$a$2 = __makeTemplateObject$1(["\n position: relative;\n padding: 0 5px;\n ", "\n"], ["\n position: relative;\n padding: 0 5px;\n ", "\n"])), function (p) {
|
|
82933
82933
|
return p.orderBy ? css$2(templateObject_2$r$1 || (templateObject_2$r$1 = __makeTemplateObject$1(["\n padding-right: 18px;\n "], ["\n padding-right: 18px;\n "]))) : css$2(templateObject_3$i$1 || (templateObject_3$i$1 = __makeTemplateObject$1(["\n padding-left: 18px;\n "], ["\n padding-left: 18px;\n "])));
|
|
82934
82934
|
});
|
|
82935
82935
|
|
|
@@ -82972,7 +82972,7 @@ _styled(Spinner).withConfig({
|
|
|
82972
82972
|
componentId: "sc-6tqdpa-6"
|
|
82973
82973
|
})(templateObject_9$1$2 || (templateObject_9$1$2 = __makeTemplateObject$1(["\n margin: 80px 0 100px;\n"], ["\n margin: 80px 0 100px;\n"])));
|
|
82974
82974
|
|
|
82975
|
-
var templateObject_1$G$1, templateObject_2$r$1, templateObject_3$i$1, templateObject_4$a$
|
|
82975
|
+
var templateObject_1$G$1, templateObject_2$r$1, templateObject_3$i$1, templateObject_4$a$2, templateObject_5$5$2, templateObject_6$3$2, templateObject_7$1$2, templateObject_8$1$2, templateObject_9$1$2;
|
|
82976
82976
|
|
|
82977
82977
|
var ToggleWithLabel = function ToggleWithLabel(props) {
|
|
82978
82978
|
return jsx$1(StyledToggle, __assign$1({}, props, {
|
|
@@ -83500,7 +83500,7 @@ var ChannelList$1 = function ChannelList(_a) {
|
|
|
83500
83500
|
}
|
|
83501
83501
|
|
|
83502
83502
|
var showMoreIndicator = channels.length > visibleChannelsCount;
|
|
83503
|
-
return jsxs(Host$e$
|
|
83503
|
+
return jsxs(Host$e$2, __assign$1({
|
|
83504
83504
|
className: className,
|
|
83505
83505
|
"data-has-more-indicator": showMoreIndicator
|
|
83506
83506
|
}, {
|
|
@@ -83586,7 +83586,7 @@ var IndicatorWidth = 50; // We calculate the space available to show the channel
|
|
|
83586
83586
|
// The full width of the container => 100%
|
|
83587
83587
|
// Minus the indicator width which might not be there in the case we have 3 channels or less
|
|
83588
83588
|
|
|
83589
|
-
var Host$e$
|
|
83589
|
+
var Host$e$2 = _styled.div(templateObject_1$s$1 || (templateObject_1$s$1 = __makeTemplateObject$1(["\n display: flex;\n width: 100%;\n\n &[data-has-more-indicator='true'] {\n [data-channels] {\n width: calc(100% - ", "px);\n }\n }\n\n &[data-has-more-indicator='false'] {\n [data-channels] {\n width: 100%;\n }\n }\n"], ["\n display: flex;\n width: 100%;\n\n &[data-has-more-indicator='true'] {\n [data-channels] {\n width: calc(100% - ", "px);\n }\n }\n\n &[data-has-more-indicator='false'] {\n [data-channels] {\n width: 100%;\n }\n }\n"])), IndicatorWidth + BubbleGap);
|
|
83590
83590
|
|
|
83591
83591
|
var ChannelsHost = _styled.div(templateObject_2$m$1 || (templateObject_2$m$1 = __makeTemplateObject$1(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"]))); // Max channel width: Divide the space by the number of bubbles we need to display minus bubble gap - 6px
|
|
83592
83592
|
|
|
@@ -83809,7 +83809,7 @@ var LeftSide = _styled.div.withConfig({
|
|
|
83809
83809
|
var RightSide = _styled.div.withConfig({
|
|
83810
83810
|
displayName: "Toolbar__RightSide",
|
|
83811
83811
|
componentId: "sc-16ftbxt-2"
|
|
83812
|
-
})(templateObject_3$c$
|
|
83812
|
+
})(templateObject_3$c$2 || (templateObject_3$c$2 = __makeTemplateObject$1(["\n display: inline-flex;\n align-items: center;\n justify-content: flex-end;\n flex: 1 1 auto;\n margin-left: auto;\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: flex-end;\n flex: 1 1 auto;\n margin-left: auto;\n"])));
|
|
83813
83813
|
|
|
83814
83814
|
var Row = _styled.div.withConfig({
|
|
83815
83815
|
displayName: "Toolbar__Row",
|
|
@@ -83821,31 +83821,31 @@ var SearchInputRow = _styled.div.withConfig({
|
|
|
83821
83821
|
componentId: "sc-16ftbxt-4"
|
|
83822
83822
|
})(templateObject_5$3$2 || (templateObject_5$3$2 = __makeTemplateObject$1(["\n display: flex;\n width: 100%;\n @media (min-width: ", "px) {\n display: none;\n }\n"], ["\n display: flex;\n width: 100%;\n @media (min-width: ", "px) {\n display: none;\n }\n"])), minScreenSize.medium);
|
|
83823
83823
|
|
|
83824
|
-
var templateObject_1$o$1, templateObject_2$j$1, templateObject_3$c$
|
|
83824
|
+
var templateObject_1$o$1, templateObject_2$j$1, templateObject_3$c$2, templateObject_4$6$2, templateObject_5$3$2;
|
|
83825
83825
|
|
|
83826
83826
|
_styled(Toolbar$1).withConfig({
|
|
83827
83827
|
displayName: "ChromelessToolbar__StyledToolbar",
|
|
83828
83828
|
componentId: "sc-1vovywb-0"
|
|
83829
|
-
})(templateObject_1$n$
|
|
83829
|
+
})(templateObject_1$n$2 || (templateObject_1$n$2 = __makeTemplateObject$1(["\n margin-bottom: ", "px;\n"], ["\n margin-bottom: ", "px;\n"])), spacingM);
|
|
83830
83830
|
|
|
83831
83831
|
createGlobalStyle(templateObject_2$i$1 || (templateObject_2$i$1 = __makeTemplateObject$1(["\n [data-detail-page-container] {\n [data-content-toolbar] {\n @media (max-width: ", "px) {\n margin-top: ", "px;\n }\n }\n }\n"], ["\n [data-detail-page-container] {\n [data-content-toolbar] {\n @media (max-width: ", "px) {\n margin-top: ", "px;\n }\n }\n }\n"])), minScreenSize.large, spacingM);
|
|
83832
|
-
var templateObject_1$n$
|
|
83832
|
+
var templateObject_1$n$2, templateObject_2$i$1; // todo: Apply this to all pages and make sure it works in IE
|
|
83833
83833
|
|
|
83834
83834
|
_styled.p.withConfig({
|
|
83835
83835
|
displayName: "PageDescription",
|
|
83836
83836
|
componentId: "sc-xcsmz7-0"
|
|
83837
|
-
})(templateObject_1$m$
|
|
83837
|
+
})(templateObject_1$m$2 || (templateObject_1$m$2 = __makeTemplateObject$1(["\n display: flex;\n flex-wrap: wrap;\n margin: 0;\n line-height: 1.5em;\n span {\n flex: 1 1 100%;\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n margin: 0;\n line-height: 1.5em;\n span {\n flex: 1 1 100%;\n }\n"])));
|
|
83838
83838
|
|
|
83839
|
-
var templateObject_1$m$
|
|
83839
|
+
var templateObject_1$m$2;
|
|
83840
83840
|
|
|
83841
83841
|
_styled.div.withConfig({
|
|
83842
83842
|
displayName: "DragSource__Host",
|
|
83843
83843
|
componentId: "sc-qzjyds-0"
|
|
83844
|
-
})(templateObject_1$l$
|
|
83844
|
+
})(templateObject_1$l$2 || (templateObject_1$l$2 = __makeTemplateObject$1(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (p) {
|
|
83845
83845
|
return p.theme.palette.neutralTertiaryAlt;
|
|
83846
83846
|
});
|
|
83847
83847
|
|
|
83848
|
-
var templateObject_1$l$
|
|
83848
|
+
var templateObject_1$l$2;
|
|
83849
83849
|
|
|
83850
83850
|
var EmojiButton = function EmojiButton(_a) {
|
|
83851
83851
|
var onEmojiSelected = _a.onEmojiSelected,
|
|
@@ -83899,7 +83899,7 @@ var EmojiButton = function EmojiButton(_a) {
|
|
|
83899
83899
|
var ButtonWrapper = _styled.div.withConfig({
|
|
83900
83900
|
displayName: "EmojiButton__ButtonWrapper",
|
|
83901
83901
|
componentId: "sc-1eq2zlz-0"
|
|
83902
|
-
})(templateObject_1$k$
|
|
83902
|
+
})(templateObject_1$k$2 || (templateObject_1$k$2 = __makeTemplateObject$1([""], [""])));
|
|
83903
83903
|
|
|
83904
83904
|
var StyledCallout$2 = _styled(Callout).withConfig({
|
|
83905
83905
|
displayName: "EmojiButton__StyledCallout",
|
|
@@ -83929,11 +83929,11 @@ var EmojiPicker = function EmojiPicker(_a) {
|
|
|
83929
83929
|
var EmojiPickerSuspenseHost = _styled.div.withConfig({
|
|
83930
83930
|
displayName: "EmojiButton__EmojiPickerSuspenseHost",
|
|
83931
83931
|
componentId: "sc-1eq2zlz-2"
|
|
83932
|
-
})(templateObject_3$b$
|
|
83932
|
+
})(templateObject_3$b$2 || (templateObject_3$b$2 = __makeTemplateObject$1(["\n // we set an initial width which is similar to what the emoji picker will be once it's loaded\n // we have to do this so the callout is rendered in the correct place\n width: ", "px;\n height: 400px;\n"], ["\n // we set an initial width which is similar to what the emoji picker will be once it's loaded\n // we have to do this so the callout is rendered in the correct place\n width: ", "px;\n height: 400px;\n"])), function (p) {
|
|
83933
83933
|
return p.isSmaller ? 319 : 400;
|
|
83934
83934
|
});
|
|
83935
83935
|
|
|
83936
|
-
var templateObject_1$k$
|
|
83936
|
+
var templateObject_1$k$2, templateObject_2$h$1, templateObject_3$b$2;
|
|
83937
83937
|
|
|
83938
83938
|
var GiphyAttribution = function GiphyAttribution() {
|
|
83939
83939
|
var env = useConfiguration();
|
|
@@ -84164,9 +84164,9 @@ var GifView = function GifView(_a) {
|
|
|
84164
84164
|
|
|
84165
84165
|
var Host$8$1 = _styled.div(templateObject_1$f$2 || (templateObject_1$f$2 = __makeTemplateObject$1([""], [""])));
|
|
84166
84166
|
|
|
84167
|
-
var StyledGif = _styled(dist$4.Gif)(templateObject_2$d$
|
|
84167
|
+
var StyledGif = _styled(dist$4.Gif)(templateObject_2$d$2 || (templateObject_2$d$2 = __makeTemplateObject$1(["\n && {\n max-width: 100%;\n }\n\n @media (max-width: ", "px) {\n /* because the style is inline set we need to overwrite it via !important */\n width: auto !important;\n height: auto !important;\n > div {\n width: auto !important;\n height: auto !important;\n\n img {\n max-width: 100%;\n height: auto;\n }\n }\n }\n"], ["\n && {\n max-width: 100%;\n }\n\n @media (max-width: ", "px) {\n /* because the style is inline set we need to overwrite it via !important */\n width: auto !important;\n height: auto !important;\n > div {\n width: auto !important;\n height: auto !important;\n\n img {\n max-width: 100%;\n height: auto;\n }\n }\n }\n"])), maxScreenSize.small);
|
|
84168
84168
|
|
|
84169
|
-
var templateObject_1$f$2, templateObject_2$d$
|
|
84169
|
+
var templateObject_1$f$2, templateObject_2$d$2;
|
|
84170
84170
|
|
|
84171
84171
|
var GifEditList = function GifEditList(_a) {
|
|
84172
84172
|
var attachments = _a.attachments,
|
|
@@ -84217,9 +84217,9 @@ var Host$7$1 = _styled.div.withConfig({
|
|
|
84217
84217
|
var StyledAttachmentHost$1 = _styled(AttachmentHost).withConfig({
|
|
84218
84218
|
displayName: "GifEditList__StyledAttachmentHost",
|
|
84219
84219
|
componentId: "sc-95dldh-1"
|
|
84220
|
-
})(templateObject_2$c$
|
|
84220
|
+
})(templateObject_2$c$2 || (templateObject_2$c$2 = __makeTemplateObject$1(["\n width: auto;\n"], ["\n width: auto;\n"])));
|
|
84221
84221
|
|
|
84222
|
-
var templateObject_1$e$2, templateObject_2$c$
|
|
84222
|
+
var templateObject_1$e$2, templateObject_2$c$2;
|
|
84223
84223
|
|
|
84224
84224
|
var GifList = function GifList(_a) {
|
|
84225
84225
|
var attachments = _a.attachments,
|
|
@@ -84677,7 +84677,7 @@ var isArray$2$1 = Array.isArray || function isArray(arg) {
|
|
|
84677
84677
|
};
|
|
84678
84678
|
|
|
84679
84679
|
var isArray$1$1 = isArray$2$1;
|
|
84680
|
-
var toLength$1$
|
|
84680
|
+
var toLength$1$2 = toLength$8$1;
|
|
84681
84681
|
var bind$6 = functionBindContext$1; // `FlattenIntoArray` abstract operation
|
|
84682
84682
|
// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
|
|
84683
84683
|
|
|
@@ -84692,7 +84692,7 @@ var flattenIntoArray$1$1 = function (target, original, source, sourceLen, start,
|
|
|
84692
84692
|
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
|
|
84693
84693
|
|
|
84694
84694
|
if (depth > 0 && isArray$1$1(element)) {
|
|
84695
|
-
targetIndex = flattenIntoArray$1$1(target, original, element, toLength$1$
|
|
84695
|
+
targetIndex = flattenIntoArray$1$1(target, original, element, toLength$1$2(element.length), targetIndex, depth - 1) - 1;
|
|
84696
84696
|
} else {
|
|
84697
84697
|
if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');
|
|
84698
84698
|
target[targetIndex] = element;
|
|
@@ -87447,9 +87447,9 @@ var AuthenticationContextProvider = function AuthenticationContextProvider(_a) {
|
|
|
87447
87447
|
}), void 0);
|
|
87448
87448
|
};
|
|
87449
87449
|
|
|
87450
|
-
var version$1 = "0.4.0-preview.
|
|
87451
|
-
var buildId = "
|
|
87452
|
-
var commitId = "
|
|
87450
|
+
var version$1 = "0.4.0-preview.188";
|
|
87451
|
+
var buildId = "98082";
|
|
87452
|
+
var commitId = "4a5be48a5e285aeb336e6a87e33d0f85112c1cef";
|
|
87453
87453
|
var isCustomerBuild = false;
|
|
87454
87454
|
var buildInfo = {
|
|
87455
87455
|
version: version$1,
|
|
@@ -87471,10 +87471,10 @@ var isRegexp$1 = function (it) {
|
|
|
87471
87471
|
return isObject$e(it) && ((isRegExp = it[MATCH$4]) !== undefined ? !!isRegExp : classof$b(it) == 'RegExp');
|
|
87472
87472
|
};
|
|
87473
87473
|
|
|
87474
|
-
var isRegExp$
|
|
87474
|
+
var isRegExp$6 = isRegexp$1;
|
|
87475
87475
|
|
|
87476
87476
|
var notARegexp$1 = function (it) {
|
|
87477
|
-
if (isRegExp$
|
|
87477
|
+
if (isRegExp$6(it)) {
|
|
87478
87478
|
throw TypeError("The method doesn't accept regular expressions");
|
|
87479
87479
|
} return it;
|
|
87480
87480
|
};
|
|
@@ -88554,7 +88554,7 @@ function assign$2(obj /*from1, from2, from3, ...*/) {
|
|
|
88554
88554
|
function _class(obj) { return Object.prototype.toString.call(obj); }
|
|
88555
88555
|
function isString(obj) { return _class(obj) === '[object String]'; }
|
|
88556
88556
|
function isObject$d(obj) { return _class(obj) === '[object Object]'; }
|
|
88557
|
-
function isRegExp$
|
|
88557
|
+
function isRegExp$5(obj) { return _class(obj) === '[object RegExp]'; }
|
|
88558
88558
|
function isFunction(obj) { return _class(obj) === '[object Function]'; }
|
|
88559
88559
|
|
|
88560
88560
|
|
|
@@ -88725,7 +88725,7 @@ function compile(self) {
|
|
|
88725
88725
|
self.__compiled__[name] = compiled;
|
|
88726
88726
|
|
|
88727
88727
|
if (isObject$d(val)) {
|
|
88728
|
-
if (isRegExp$
|
|
88728
|
+
if (isRegExp$5(val.validate)) {
|
|
88729
88729
|
compiled.validate = createValidator(val.validate);
|
|
88730
88730
|
} else if (isFunction(val.validate)) {
|
|
88731
88731
|
compiled.validate = val.validate;
|
|
@@ -131208,8 +131208,8 @@ if(re.lastIndex>0&&(!re.multiline||re.multiline&&str[re.lastIndex-1]!=='\n')){so
|
|
|
131208
131208
|
// simulate the 'y' flag.
|
|
131209
131209
|
reCopy=new RegExp('^(?:'+source+')',flags);}if(NPCG_INCLUDED$1){reCopy=new RegExp('^'+source+'$(?!\\s)',flags);}if(UPDATES_LAST_INDEX_WRONG$1)lastIndex=re.lastIndex;match=nativeExec$1.call(sticky?reCopy:re,strCopy);if(sticky){if(match){match.input=match.input.slice(charsAdded);match[0]=match[0].slice(charsAdded);match.index=re.lastIndex;re.lastIndex+=match[0].length;}else re.lastIndex=0;}else if(UPDATES_LAST_INDEX_WRONG$1&&match){re.lastIndex=re.global?match.index+match[0].length:lastIndex;}if(NPCG_INCLUDED$1&&match&&match.length>1){// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
131210
131210
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
131211
|
-
nativeReplace$1.call(match[0],reCopy,function(){for(i=1;i<arguments.length-2;i++){if(arguments[i]===undefined)match[i]=undefined;}});}return match;};}var regexpExec$3=patchedExec$1;var $$f=_export;var exec$1=regexpExec$3;$$f({target:'RegExp',proto:true,forced:/./.exec!==exec$1},{exec:exec$1});// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
131212
|
-
var redefine$7=redefine$9.exports;var fails$b=fails$i;var wellKnownSymbol$i=wellKnownSymbol$l;var regexpExec$2$1=regexpExec$3;var createNonEnumerableProperty$3=createNonEnumerableProperty$8;var SPECIES$4=wellKnownSymbol$i('species');var REPLACE_SUPPORTS_NAMED_GROUPS$1=!fails$b(function(){// #replace needs built-in support for named groups.
|
|
131211
|
+
nativeReplace$1.call(match[0],reCopy,function(){for(i=1;i<arguments.length-2;i++){if(arguments[i]===undefined)match[i]=undefined;}});}return match;};}var regexpExec$3$1=patchedExec$1;var $$f=_export;var exec$1=regexpExec$3$1;$$f({target:'RegExp',proto:true,forced:/./.exec!==exec$1},{exec:exec$1});// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
131212
|
+
var redefine$7=redefine$9.exports;var fails$b=fails$i;var wellKnownSymbol$i=wellKnownSymbol$l;var regexpExec$2$1=regexpExec$3$1;var createNonEnumerableProperty$3=createNonEnumerableProperty$8;var SPECIES$4=wellKnownSymbol$i('species');var REPLACE_SUPPORTS_NAMED_GROUPS$1=!fails$b(function(){// #replace needs built-in support for named groups.
|
|
131213
131213
|
// #match works fine because it just return the exec results, even if it has
|
|
131214
131214
|
// a "grops" property.
|
|
131215
131215
|
var re=/./;re.exec=function(){var result=[];result.groups={a:'7'};return result;};return ''.replace(re,'$<a>')!=='7';});// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
@@ -131240,14 +131240,14 @@ codeAt:createMethod$2(false),// `String.prototype.at` method
|
|
|
131240
131240
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
131241
131241
|
charAt:createMethod$2(true)};var charAt$1=stringMultibyte$1.charAt;// `AdvanceStringIndex` abstract operation
|
|
131242
131242
|
// https://tc39.github.io/ecma262/#sec-advancestringindex
|
|
131243
|
-
var advanceStringIndex$3=function(S,index,unicode){return index+(unicode?charAt$1(S,index).length:1);};var classof$7=classofRaw$1;var regexpExec$1$1=regexpExec$3;// `RegExpExec` abstract operation
|
|
131243
|
+
var advanceStringIndex$3=function(S,index,unicode){return index+(unicode?charAt$1(S,index).length:1);};var classof$7=classofRaw$1;var regexpExec$1$1=regexpExec$3$1;// `RegExpExec` abstract operation
|
|
131244
131244
|
// https://tc39.github.io/ecma262/#sec-regexpexec
|
|
131245
|
-
var regexpExecAbstract$1=function(R,S){var exec=R.exec;if(typeof exec==='function'){var result=exec.call(R,S);if(typeof result!=='object'){throw TypeError('RegExp exec method returned something other than an Object or null');}return result;}if(classof$7(R)!=='RegExp'){throw TypeError('RegExp#exec called on incompatible receiver');}return regexpExec$1$1.call(R,S);};var fixRegExpWellKnownSymbolLogic$3=fixRegexpWellKnownSymbolLogic$1;var isRegExp$2=isRegexp;var anObject$c=anObject$h;var requireObjectCoercible$8=requireObjectCoercible$c;var speciesConstructor$1=speciesConstructor$2;var advanceStringIndex$2=advanceStringIndex$3;var toLength$9=toLength$b;var callRegExpExec=regexpExecAbstract$1;var regexpExec$4=regexpExec$3;var fails$a=fails$i;var arrayPush=[].push;var min$4=Math.min;var MAX_UINT32=0xFFFFFFFF;// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
|
|
131246
|
-
var SUPPORTS_Y=!fails$a(function(){return !RegExp(MAX_UINT32,'y');});// @@split logic
|
|
131245
|
+
var regexpExecAbstract$1=function(R,S){var exec=R.exec;if(typeof exec==='function'){var result=exec.call(R,S);if(typeof result!=='object'){throw TypeError('RegExp exec method returned something other than an Object or null');}return result;}if(classof$7(R)!=='RegExp'){throw TypeError('RegExp#exec called on incompatible receiver');}return regexpExec$1$1.call(R,S);};var fixRegExpWellKnownSymbolLogic$3=fixRegexpWellKnownSymbolLogic$1;var isRegExp$2=isRegexp;var anObject$c=anObject$h;var requireObjectCoercible$8=requireObjectCoercible$c;var speciesConstructor$1=speciesConstructor$2;var advanceStringIndex$2$1=advanceStringIndex$3;var toLength$9=toLength$b;var callRegExpExec$1=regexpExecAbstract$1;var regexpExec$4=regexpExec$3$1;var fails$a=fails$i;var arrayPush$1=[].push;var min$4=Math.min;var MAX_UINT32$1=0xFFFFFFFF;// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
|
|
131246
|
+
var SUPPORTS_Y$1=!fails$a(function(){return !RegExp(MAX_UINT32$1,'y');});// @@split logic
|
|
131247
131247
|
fixRegExpWellKnownSymbolLogic$3('split',2,function(SPLIT,nativeSplit,maybeCallNative){var internalSplit;if('abbc'.split(/(b)*/)[1]=='c'||'test'.split(/(?:)/,-1).length!=4||'ab'.split(/(?:ab)*/).length!=2||'.'.split(/(.?)(.?)/).length!=4||'.'.split(/()()/).length>1||''.split(/.?/).length){// based on es5-shim implementation, need to rework it
|
|
131248
|
-
internalSplit=function(separator,limit){var string=String(requireObjectCoercible$8(this));var lim=limit===undefined?MAX_UINT32:limit>>>0;if(lim===0)return [];if(separator===undefined)return [string];// If `separator` is not a regex, use native split
|
|
131248
|
+
internalSplit=function(separator,limit){var string=String(requireObjectCoercible$8(this));var lim=limit===undefined?MAX_UINT32$1:limit>>>0;if(lim===0)return [];if(separator===undefined)return [string];// If `separator` is not a regex, use native split
|
|
131249
131249
|
if(!isRegExp$2(separator)){return nativeSplit.call(string,separator,lim);}var output=[];var flags=(separator.ignoreCase?'i':'')+(separator.multiline?'m':'')+(separator.unicode?'u':'')+(separator.sticky?'y':'');var lastLastIndex=0;// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
131250
|
-
var separatorCopy=new RegExp(separator.source,flags+'g');var match,lastIndex,lastLength;while(match=regexpExec$4.call(separatorCopy,string)){lastIndex=separatorCopy.lastIndex;if(lastIndex>lastLastIndex){output.push(string.slice(lastLastIndex,match.index));if(match.length>1&&match.index<string.length)arrayPush.apply(output,match.slice(1));lastLength=match[0].length;lastLastIndex=lastIndex;if(output.length>=lim)break;}if(separatorCopy.lastIndex===match.index)separatorCopy.lastIndex++;// Avoid an infinite loop
|
|
131250
|
+
var separatorCopy=new RegExp(separator.source,flags+'g');var match,lastIndex,lastLength;while(match=regexpExec$4.call(separatorCopy,string)){lastIndex=separatorCopy.lastIndex;if(lastIndex>lastLastIndex){output.push(string.slice(lastLastIndex,match.index));if(match.length>1&&match.index<string.length)arrayPush$1.apply(output,match.slice(1));lastLength=match[0].length;lastLastIndex=lastIndex;if(output.length>=lim)break;}if(separatorCopy.lastIndex===match.index)separatorCopy.lastIndex++;// Avoid an infinite loop
|
|
131251
131251
|
}if(lastLastIndex===string.length){if(lastLength||!separatorCopy.test(''))output.push('');}else output.push(string.slice(lastLastIndex));return output.length>lim?output.slice(0,lim):output;};// Chakra, V8
|
|
131252
131252
|
}else if('0'.split(undefined,0).length){internalSplit=function(separator,limit){return separator===undefined&&limit===0?[]:nativeSplit.call(this,separator,limit);};}else internalSplit=nativeSplit;return [// `String.prototype.split` method
|
|
131253
131253
|
// https://tc39.github.io/ecma262/#sec-string.prototype.split
|
|
@@ -131256,9 +131256,9 @@ function split(separator,limit){var O=requireObjectCoercible$8(this);var splitte
|
|
|
131256
131256
|
//
|
|
131257
131257
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
131258
131258
|
// the 'y' flag.
|
|
131259
|
-
function(regexp,limit){var res=maybeCallNative(internalSplit,regexp,this,limit,internalSplit!==nativeSplit);if(res.done)return res.value;var rx=anObject$c(regexp);var S=String(this);var C=speciesConstructor$1(rx,RegExp);var unicodeMatching=rx.unicode;var flags=(rx.ignoreCase?'i':'')+(rx.multiline?'m':'')+(rx.unicode?'u':'')+(SUPPORTS_Y?'y':'g');// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
131259
|
+
function(regexp,limit){var res=maybeCallNative(internalSplit,regexp,this,limit,internalSplit!==nativeSplit);if(res.done)return res.value;var rx=anObject$c(regexp);var S=String(this);var C=speciesConstructor$1(rx,RegExp);var unicodeMatching=rx.unicode;var flags=(rx.ignoreCase?'i':'')+(rx.multiline?'m':'')+(rx.unicode?'u':'')+(SUPPORTS_Y$1?'y':'g');// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
131260
131260
|
// simulate the 'y' flag.
|
|
131261
|
-
var splitter=new C(SUPPORTS_Y?rx:'^(?:'+rx.source+')',flags);var lim=limit===undefined?MAX_UINT32:limit>>>0;if(lim===0)return [];if(S.length===0)return callRegExpExec(splitter,S)===null?[S]:[];var p=0;var q=0;var A=[];while(q<S.length){splitter.lastIndex=SUPPORTS_Y?q:0;var z=callRegExpExec(splitter,SUPPORTS_Y?S:S.slice(q));var e;if(z===null||(e=min$4(toLength$9(splitter.lastIndex+(SUPPORTS_Y?0:q)),S.length))===p){q=advanceStringIndex$2(S,q,unicodeMatching);}else {A.push(S.slice(p,q));if(A.length===lim)return A;for(var i=1;i<=z.length-1;i++){A.push(z[i]);if(A.length===lim)return A;}q=p=e;}}A.push(S.slice(p));return A;}];},!SUPPORTS_Y);var fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic$1;var anObject$b=anObject$h;var toLength$8=toLength$b;var requireObjectCoercible$7=requireObjectCoercible$c;var advanceStringIndex$1$1=advanceStringIndex$3;var regExpExec$2=regexpExecAbstract$1;// @@match logic
|
|
131261
|
+
var splitter=new C(SUPPORTS_Y$1?rx:'^(?:'+rx.source+')',flags);var lim=limit===undefined?MAX_UINT32$1:limit>>>0;if(lim===0)return [];if(S.length===0)return callRegExpExec$1(splitter,S)===null?[S]:[];var p=0;var q=0;var A=[];while(q<S.length){splitter.lastIndex=SUPPORTS_Y$1?q:0;var z=callRegExpExec$1(splitter,SUPPORTS_Y$1?S:S.slice(q));var e;if(z===null||(e=min$4(toLength$9(splitter.lastIndex+(SUPPORTS_Y$1?0:q)),S.length))===p){q=advanceStringIndex$2$1(S,q,unicodeMatching);}else {A.push(S.slice(p,q));if(A.length===lim)return A;for(var i=1;i<=z.length-1;i++){A.push(z[i]);if(A.length===lim)return A;}q=p=e;}}A.push(S.slice(p));return A;}];},!SUPPORTS_Y$1);var fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic$1;var anObject$b=anObject$h;var toLength$8=toLength$b;var requireObjectCoercible$7=requireObjectCoercible$c;var advanceStringIndex$1$1=advanceStringIndex$3;var regExpExec$2=regexpExecAbstract$1;// @@match logic
|
|
131262
131262
|
fixRegExpWellKnownSymbolLogic$2('match',1,function(MATCH,nativeMatch,maybeCallNative){return [// `String.prototype.match` method
|
|
131263
131263
|
// https://tc39.github.io/ecma262/#sec-string.prototype.match
|
|
131264
131264
|
function match(regexp){var O=requireObjectCoercible$7(this);var matcher=regexp==undefined?undefined:regexp[MATCH];return matcher!==undefined?matcher.call(regexp,O):new RegExp(regexp)[MATCH](String(O));},// `RegExp.prototype[@@match]` method
|
|
@@ -131548,12 +131548,12 @@ var CORRECT_NEW=new NativeRegExp(re1)!==re1;var UNSUPPORTED_Y$2=stickyHelpers$2.
|
|
|
131548
131548
|
return NativeRegExp(re1)!=re1||NativeRegExp(re2)==re2||NativeRegExp(re1,'i')!='/a/i';}));// `RegExp` constructor
|
|
131549
131549
|
// https://tc39.github.io/ecma262/#sec-regexp-constructor
|
|
131550
131550
|
if(FORCED$3){var RegExpWrapper=function RegExp(pattern,flags){var thisIsRegExp=this instanceof RegExpWrapper;var patternIsRegExp=isRegExp$1(pattern);var flagsAreUndefined=flags===undefined;var sticky;if(!thisIsRegExp&&patternIsRegExp&&pattern.constructor===RegExpWrapper&&flagsAreUndefined){return pattern;}if(CORRECT_NEW){if(patternIsRegExp&&!flagsAreUndefined)pattern=pattern.source;}else if(pattern instanceof RegExpWrapper){if(flagsAreUndefined)flags=getFlags.call(pattern);pattern=pattern.source;}if(UNSUPPORTED_Y$2){sticky=!!flags&&flags.indexOf('y')>-1;if(sticky)flags=flags.replace(/y/g,'');}var result=inheritIfRequired(CORRECT_NEW?new NativeRegExp(pattern,flags):NativeRegExp(pattern,flags),thisIsRegExp?this:RegExpPrototype$2,RegExpWrapper);if(UNSUPPORTED_Y$2&&sticky)setInternalState$1(result,{sticky:sticky});return result;};var proxy=function(key){key in RegExpWrapper||defineProperty$2(RegExpWrapper,key,{configurable:true,get:function(){return NativeRegExp[key];},set:function(it){NativeRegExp[key]=it;}});};var keys=getOwnPropertyNames(NativeRegExp);var index=0;while(keys.length>index)proxy(keys[index++]);RegExpPrototype$2.constructor=RegExpWrapper;RegExpWrapper.prototype=RegExpPrototype$2;redefine$2(global$9,'RegExp',RegExpWrapper);}// https://tc39.github.io/ecma262/#sec-get-regexp-@@species
|
|
131551
|
-
setSpecies$1('RegExp');var redefine$1$1=redefine$9.exports;var anObject$4=anObject$h;var fails$4=fails$i;var flags$1=regexpFlags$1$1;var TO_STRING$1='toString';var RegExpPrototype$1=RegExp.prototype;var nativeToString$1=RegExpPrototype$1[TO_STRING$1];var NOT_GENERIC$1=fails$4(function(){return nativeToString$1.call({source:'a',flags:'b'})!='/a/b';});// FF44- RegExp#toString has a wrong name
|
|
131551
|
+
setSpecies$1('RegExp');var redefine$1$1=redefine$9.exports;var anObject$4=anObject$h;var fails$4$1=fails$i;var flags$1=regexpFlags$1$1;var TO_STRING$1='toString';var RegExpPrototype$1=RegExp.prototype;var nativeToString$1=RegExpPrototype$1[TO_STRING$1];var NOT_GENERIC$1=fails$4$1(function(){return nativeToString$1.call({source:'a',flags:'b'})!='/a/b';});// FF44- RegExp#toString has a wrong name
|
|
131552
131552
|
var INCORRECT_NAME$1=nativeToString$1.name!=TO_STRING$1;// `RegExp.prototype.toString` method
|
|
131553
131553
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring
|
|
131554
131554
|
if(NOT_GENERIC$1||INCORRECT_NAME$1){redefine$1$1(RegExp.prototype,TO_STRING$1,function toString(){var R=anObject$4(this);var p=String(R.source);var rf=R.flags;var f=String(rf===undefined&&R instanceof RegExp&&!('flags'in RegExpPrototype$1)?flags$1.call(R):rf);return '/'+p+'/'+f;},{unsafe:true});}// Sources: https://webapps.stackexchange.com/questions/54443/format-for-id-of-youtube-video
|
|
131555
|
-
var videoRegex=/((https?:\/\/)?((www\.)?)?)(((youtube\.com|youtu\.?be)\/[^\s]{11,}.*?)|((vimeo\.com)\/(?:video\/)?[\d]{3,})|((player\.vimeo\.com\/external)\/(\S+)))/g;function getAllVideosFromString(content){var matches,url,type;return __generator(this,function(_a){switch(_a.label){case 0:videoRegex.lastIndex=0;_a.label=1;case 1:matches=videoRegex.exec(content);url=matches===null||matches===void 0?void 0:matches[0];if(!url){return [3/*break*/,3];}type=matches.filter(function(m){return !!m;}).some(function(m){return m.indexOf('vimeo')>-1;})?AttachmentType.VimeoVideo:AttachmentType.YouTubeVideo;return [4/*yield*/,{url:url,type:type}];case 2:_a.sent();return [3/*break*/,1];case 3:return [2/*return*/];}});}function getEmbeddedObjectsFromString(content){var embeddedObjectRegex,matches,url,subscriptionIdentifier,type,id;return __generator(this,function(_a){switch(_a.label){case 0:embeddedObjectRegex=new RegExp("/([^/]{3,})(/(redirect/)?(news|events|pages|posts)/([^\\s/?]+).*?)",'g');_a.label=1;case 1:matches=embeddedObjectRegex.exec(content);url=matches===null||matches===void 0?void 0:matches[2];if(!url){return [3/*break*/,3];}subscriptionIdentifier=matches[1];type=AttachmentType.News;switch(matches[4]){case'news':type=AttachmentType.News;break;case'events':type=AttachmentType.Event;break;case'pages':type=AttachmentType.Page;break;case'posts':type=AttachmentType.Post;break;default:type=AttachmentType.News;}id=matches[5];return [4/*yield*/,{url:url,subscriptionIdentifier:subscriptionIdentifier,type:type,id:id}];case 2:_a.sent();return [3/*break*/,1];case 3:return [2/*return*/];}});}var global$8=global$m;var nativePromiseConstructor=global$8.Promise;var iterate$2={exports:{}};var anObject$3=anObject$h;var isArrayIteratorMethod=isArrayIteratorMethod$2;var toLength$5=toLength$b;var bind$3=functionBindContext;var getIteratorMethod=getIteratorMethod$4;var callWithSafeIterationClosing=callWithSafeIterationClosing$2;var Result=function(stopped,result){this.stopped=stopped;this.result=result;};var iterate$1=iterate$2.exports=function(iterable,fn,that,AS_ENTRIES,IS_ITERATOR){var boundFunction=bind$3(fn,that,AS_ENTRIES?2:1);var iterator,iterFn,index,length,result,next,step;if(IS_ITERATOR){iterator=iterable;}else {iterFn=getIteratorMethod(iterable);if(typeof iterFn!='function')throw TypeError('Target is not iterable');// optimisation for array iterators
|
|
131556
|
-
if(isArrayIteratorMethod(iterFn)){for(index=0,length=toLength$5(iterable.length);length>index;index++){result=AS_ENTRIES?boundFunction(anObject$3(step=iterable[index])[0],step[1]):boundFunction(iterable[index]);if(result&&result instanceof Result)return result;}return new Result(false);}iterator=iterFn.call(iterable);}next=iterator.next;while(!(step=next.call(iterator)).done){result=callWithSafeIterationClosing(iterator,boundFunction,step.value,AS_ENTRIES);if(typeof result=='object'&&result&&result instanceof Result)return result;}return new Result(false);};iterate$1.stop=function(result){return new Result(true,result);};var wellKnownSymbol$3=wellKnownSymbol$l;var ITERATOR=wellKnownSymbol$3('iterator');var SAFE_CLOSING=false;try{var called=0;var iteratorWithReturn={next:function(){return {done:!!called++};},'return':function(){SAFE_CLOSING=true;}};iteratorWithReturn[ITERATOR]=function(){return this;};// eslint-disable-next-line no-throw-literal
|
|
131555
|
+
var videoRegex=/((https?:\/\/)?((www\.)?)?)(((youtube\.com|youtu\.?be)\/[^\s]{11,}.*?)|((vimeo\.com)\/(?:video\/)?[\d]{3,})|((player\.vimeo\.com\/external)\/(\S+)))/g;function getAllVideosFromString(content){var matches,url,type;return __generator(this,function(_a){switch(_a.label){case 0:videoRegex.lastIndex=0;_a.label=1;case 1:matches=videoRegex.exec(content);url=matches===null||matches===void 0?void 0:matches[0];if(!url){return [3/*break*/,3];}type=matches.filter(function(m){return !!m;}).some(function(m){return m.indexOf('vimeo')>-1;})?AttachmentType.VimeoVideo:AttachmentType.YouTubeVideo;return [4/*yield*/,{url:url,type:type}];case 2:_a.sent();return [3/*break*/,1];case 3:return [2/*return*/];}});}function getEmbeddedObjectsFromString(content){var embeddedObjectRegex,matches,url,subscriptionIdentifier,type,id;return __generator(this,function(_a){switch(_a.label){case 0:embeddedObjectRegex=new RegExp("/([^/]{3,})(/(redirect/)?(news|events|pages|posts)/([^\\s/?]+).*?)",'g');_a.label=1;case 1:matches=embeddedObjectRegex.exec(content);url=matches===null||matches===void 0?void 0:matches[2];if(!url){return [3/*break*/,3];}subscriptionIdentifier=matches[1];type=AttachmentType.News;switch(matches[4]){case'news':type=AttachmentType.News;break;case'events':type=AttachmentType.Event;break;case'pages':type=AttachmentType.Page;break;case'posts':type=AttachmentType.Post;break;default:type=AttachmentType.News;}id=matches[5];return [4/*yield*/,{url:url,subscriptionIdentifier:subscriptionIdentifier,type:type,id:id}];case 2:_a.sent();return [3/*break*/,1];case 3:return [2/*return*/];}});}var global$8=global$m;var nativePromiseConstructor=global$8.Promise;var iterate$2={exports:{}};var anObject$3$1=anObject$h;var isArrayIteratorMethod=isArrayIteratorMethod$2;var toLength$5=toLength$b;var bind$3=functionBindContext;var getIteratorMethod=getIteratorMethod$4;var callWithSafeIterationClosing=callWithSafeIterationClosing$2;var Result=function(stopped,result){this.stopped=stopped;this.result=result;};var iterate$1=iterate$2.exports=function(iterable,fn,that,AS_ENTRIES,IS_ITERATOR){var boundFunction=bind$3(fn,that,AS_ENTRIES?2:1);var iterator,iterFn,index,length,result,next,step;if(IS_ITERATOR){iterator=iterable;}else {iterFn=getIteratorMethod(iterable);if(typeof iterFn!='function')throw TypeError('Target is not iterable');// optimisation for array iterators
|
|
131556
|
+
if(isArrayIteratorMethod(iterFn)){for(index=0,length=toLength$5(iterable.length);length>index;index++){result=AS_ENTRIES?boundFunction(anObject$3$1(step=iterable[index])[0],step[1]):boundFunction(iterable[index]);if(result&&result instanceof Result)return result;}return new Result(false);}iterator=iterFn.call(iterable);}next=iterator.next;while(!(step=next.call(iterator)).done){result=callWithSafeIterationClosing(iterator,boundFunction,step.value,AS_ENTRIES);if(typeof result=='object'&&result&&result instanceof Result)return result;}return new Result(false);};iterate$1.stop=function(result){return new Result(true,result);};var wellKnownSymbol$3=wellKnownSymbol$l;var ITERATOR=wellKnownSymbol$3('iterator');var SAFE_CLOSING=false;try{var called=0;var iteratorWithReturn={next:function(){return {done:!!called++};},'return':function(){SAFE_CLOSING=true;}};iteratorWithReturn[ITERATOR]=function(){return this;};// eslint-disable-next-line no-throw-literal
|
|
131557
131557
|
Array.from(iteratorWithReturn,function(){throw 2;});}catch(error){/* empty */}var checkCorrectnessOfIteration$1=function(exec,SKIP_CLOSING){if(!SKIP_CLOSING&&!SAFE_CLOSING)return false;var ITERATION_SUPPORT=false;try{var object={};object[ITERATOR]=function(){return {next:function(){return {done:ITERATION_SUPPORT=true};}};};exec(object);}catch(error){/* empty */}return ITERATION_SUPPORT;};var getBuiltIn$1=getBuiltIn$6;var engineUserAgent=getBuiltIn$1('navigator','userAgent')||'';var userAgent$1=engineUserAgent;var engineIsIos=/(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1);var global$7=global$m;var fails$3$1=fails$i;var classof$3=classofRaw$1;var bind$2=functionBindContext;var html=html$2;var createElement=documentCreateElement$1;var IS_IOS$1=engineIsIos;var location$1=global$7.location;var set=global$7.setImmediate;var clear=global$7.clearImmediate;var process$3=global$7.process;var MessageChannel$1=global$7.MessageChannel;var Dispatch=global$7.Dispatch;var counter=0;var queue={};var ONREADYSTATECHANGE='onreadystatechange';var defer,channel,port;var run=function(id){// eslint-disable-next-line no-prototype-builtins
|
|
131558
131558
|
if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id];fn();}};var runner=function(id){return function(){run(id);};};var listener=function(event){run(event.data);};var post=function(id){// old engines have not location.origin
|
|
131559
131559
|
global$7.postMessage(id+'',location$1.protocol+'//'+location$1.host);};// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
@@ -131580,7 +131580,7 @@ promise=Promise$1.resolve(undefined);then=promise.then;notify$1=function(){then.
|
|
|
131580
131580
|
// - setTimeout
|
|
131581
131581
|
}else {notify$1=function(){// strange IE + webpack dev server bug - use .call(global)
|
|
131582
131582
|
macrotask.call(global$6,flush);};}}var microtask$1=queueMicrotask||function(fn){var task={fn:fn,next:undefined};if(last)last.next=task;if(!head){head=task;notify$1();}last=task;};var newPromiseCapability$2={};var aFunction$4=aFunction$7;var PromiseCapability=function(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(resolve!==undefined||reject!==undefined)throw TypeError('Bad Promise constructor');resolve=$$resolve;reject=$$reject;});this.resolve=aFunction$4(resolve);this.reject=aFunction$4(reject);};// 25.4.1.5 NewPromiseCapability(C)
|
|
131583
|
-
newPromiseCapability$2.f=function(C){return new PromiseCapability(C);};var anObject$2$1=anObject$h;var isObject$3=isObject$c;var newPromiseCapability$1=newPromiseCapability$2;var promiseResolve$1=function(C,x){anObject$2$1(C);if(isObject$3(x)&&x.constructor===C)return x;var promiseCapability=newPromiseCapability$1.f(C);var resolve=promiseCapability.resolve;resolve(x);return promiseCapability.promise;};var global$5=global$m;var hostReportErrors$1=function(a,b){var console=global$5.console;if(console&&console.error){arguments.length===1?console.error(a):console.error(a,b);}};var perform$1=function(exec){try{return {error:false,value:exec()};}catch(error){return {error:true,value:error};}};var global$4=global$m;var userAgent=engineUserAgent;var process$1=global$4.process;var versions=process$1&&process$1.versions;var v8=versions&&versions.v8;var match,version;if(v8){match=v8.split('.');version=match[0]+match[1];}else if(userAgent){match=userAgent.match(/Edge\/(\d+)/);if(!match||match[1]>=74){match=userAgent.match(/Chrome\/(\d+)/);if(match)version=match[1];}}var engineV8Version=version&&+version;var $$9=_export;var global$3=global$m;var getBuiltIn=getBuiltIn$6;var NativePromise=nativePromiseConstructor;var redefine$a=redefine$9.exports;var redefineAll=redefineAll$2;var setToStringTag=setToStringTag$5;var setSpecies=setSpecies$2;var isObject$2=isObject$c;var aFunction$3=aFunction$7;var anInstance=anInstance$3;var classof$1=classofRaw$1;var inspectSource=inspectSource$3;var iterate=iterate$2.exports;var checkCorrectnessOfIteration=checkCorrectnessOfIteration$1;var speciesConstructor=speciesConstructor$2;var task=task$1.set;var microtask=microtask$1;var promiseResolve=promiseResolve$1;var hostReportErrors=hostReportErrors$1;var newPromiseCapabilityModule=newPromiseCapability$2;var perform=perform$1;var InternalStateModule=internalState;var isForced=isForced_1;var wellKnownSymbol$2=wellKnownSymbol$l;var V8_VERSION=engineV8Version;var SPECIES$1=wellKnownSymbol$2('species');var PROMISE='Promise';var getInternalState=InternalStateModule.get;var setInternalState=InternalStateModule.set;var getInternalPromiseState=InternalStateModule.getterFor(PROMISE);var PromiseConstructor=NativePromise;var TypeError$1=global$3.TypeError;var document$1=global$3.document;var process$4=global$3.process;var $fetch=getBuiltIn('fetch');var newPromiseCapability=newPromiseCapabilityModule.f;var newGenericPromiseCapability=newPromiseCapability;var IS_NODE=classof$1(process$4)=='process';var DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$3.dispatchEvent);var UNHANDLED_REJECTION='unhandledrejection';var REJECTION_HANDLED='rejectionhandled';var PENDING=0;var FULFILLED=1;var REJECTED=2;var HANDLED=1;var UNHANDLED=2;var Internal,OwnPromiseCapability,PromiseWrapper,nativeThen;var FORCED$2=isForced(PROMISE,function(){var GLOBAL_CORE_JS_PROMISE=inspectSource(PromiseConstructor)!==String(PromiseConstructor);if(!GLOBAL_CORE_JS_PROMISE){// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
131583
|
+
newPromiseCapability$2.f=function(C){return new PromiseCapability(C);};var anObject$2$1=anObject$h;var isObject$3=isObject$c;var newPromiseCapability$1=newPromiseCapability$2;var promiseResolve$1=function(C,x){anObject$2$1(C);if(isObject$3(x)&&x.constructor===C)return x;var promiseCapability=newPromiseCapability$1.f(C);var resolve=promiseCapability.resolve;resolve(x);return promiseCapability.promise;};var global$5=global$m;var hostReportErrors$1=function(a,b){var console=global$5.console;if(console&&console.error){arguments.length===1?console.error(a):console.error(a,b);}};var perform$1=function(exec){try{return {error:false,value:exec()};}catch(error){return {error:true,value:error};}};var global$4=global$m;var userAgent=engineUserAgent;var process$1=global$4.process;var versions=process$1&&process$1.versions;var v8=versions&&versions.v8;var match,version;if(v8){match=v8.split('.');version=match[0]+match[1];}else if(userAgent){match=userAgent.match(/Edge\/(\d+)/);if(!match||match[1]>=74){match=userAgent.match(/Chrome\/(\d+)/);if(match)version=match[1];}}var engineV8Version=version&&+version;var $$9=_export;var global$3=global$m;var getBuiltIn=getBuiltIn$6;var NativePromise=nativePromiseConstructor;var redefine$a=redefine$9.exports;var redefineAll=redefineAll$2;var setToStringTag=setToStringTag$5;var setSpecies=setSpecies$2;var isObject$2=isObject$c;var aFunction$3=aFunction$7;var anInstance=anInstance$3;var classof$1=classofRaw$1;var inspectSource=inspectSource$3;var iterate=iterate$2.exports;var checkCorrectnessOfIteration=checkCorrectnessOfIteration$1;var speciesConstructor$3=speciesConstructor$2;var task=task$1.set;var microtask=microtask$1;var promiseResolve=promiseResolve$1;var hostReportErrors=hostReportErrors$1;var newPromiseCapabilityModule=newPromiseCapability$2;var perform=perform$1;var InternalStateModule=internalState;var isForced=isForced_1;var wellKnownSymbol$2=wellKnownSymbol$l;var V8_VERSION=engineV8Version;var SPECIES$1=wellKnownSymbol$2('species');var PROMISE='Promise';var getInternalState=InternalStateModule.get;var setInternalState=InternalStateModule.set;var getInternalPromiseState=InternalStateModule.getterFor(PROMISE);var PromiseConstructor=NativePromise;var TypeError$1=global$3.TypeError;var document$1=global$3.document;var process$4=global$3.process;var $fetch=getBuiltIn('fetch');var newPromiseCapability=newPromiseCapabilityModule.f;var newGenericPromiseCapability=newPromiseCapability;var IS_NODE=classof$1(process$4)=='process';var DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$3.dispatchEvent);var UNHANDLED_REJECTION='unhandledrejection';var REJECTION_HANDLED='rejectionhandled';var PENDING=0;var FULFILLED=1;var REJECTED=2;var HANDLED=1;var UNHANDLED=2;var Internal,OwnPromiseCapability,PromiseWrapper,nativeThen;var FORCED$2=isForced(PROMISE,function(){var GLOBAL_CORE_JS_PROMISE=inspectSource(PromiseConstructor)!==String(PromiseConstructor);if(!GLOBAL_CORE_JS_PROMISE){// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
131584
131584
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
131585
131585
|
// We can't detect it synchronously, so just check versions
|
|
131586
131586
|
if(V8_VERSION===66)return true;// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
@@ -131597,7 +131597,7 @@ if(FORCED$2){// 25.4.3.1 Promise(executor)
|
|
|
131597
131597
|
PromiseConstructor=function Promise(executor){anInstance(this,PromiseConstructor,PROMISE);aFunction$3(executor);Internal.call(this);var state=getInternalState(this);try{executor(bind$1(internalResolve,this,state),bind$1(internalReject,this,state));}catch(error){internalReject(this,state,error);}};// eslint-disable-next-line no-unused-vars
|
|
131598
131598
|
Internal=function Promise(executor){setInternalState(this,{type:PROMISE,done:false,notified:false,parent:false,reactions:[],rejection:false,state:PENDING,value:undefined});};Internal.prototype=redefineAll(PromiseConstructor.prototype,{// `Promise.prototype.then` method
|
|
131599
131599
|
// https://tc39.github.io/ecma262/#sec-promise.prototype.then
|
|
131600
|
-
then:function then(onFulfilled,onRejected){var state=getInternalPromiseState(this);var reaction=newPromiseCapability(speciesConstructor(this,PromiseConstructor));reaction.ok=typeof onFulfilled=='function'?onFulfilled:true;reaction.fail=typeof onRejected=='function'&&onRejected;reaction.domain=IS_NODE?process$4.domain:undefined;state.parent=true;state.reactions.push(reaction);if(state.state!=PENDING)notify(this,state,false);return reaction.promise;},// `Promise.prototype.catch` method
|
|
131600
|
+
then:function then(onFulfilled,onRejected){var state=getInternalPromiseState(this);var reaction=newPromiseCapability(speciesConstructor$3(this,PromiseConstructor));reaction.ok=typeof onFulfilled=='function'?onFulfilled:true;reaction.fail=typeof onRejected=='function'&&onRejected;reaction.domain=IS_NODE?process$4.domain:undefined;state.parent=true;state.reactions.push(reaction);if(state.state!=PENDING)notify(this,state,false);return reaction.promise;},// `Promise.prototype.catch` method
|
|
131601
131601
|
// https://tc39.github.io/ecma262/#sec-promise.prototype.catch
|
|
131602
131602
|
'catch':function(onRejected){return this.then(undefined,onRejected);}});OwnPromiseCapability=function(){var promise=new Internal();var state=getInternalState(promise);this.promise=promise;this.resolve=bind$1(internalResolve,promise,state);this.reject=bind$1(internalReject,promise,state);};newPromiseCapabilityModule.f=newPromiseCapability=function(C){return C===PromiseConstructor||C===PromiseWrapper?new OwnPromiseCapability(C):newGenericPromiseCapability(C);};if(typeof NativePromise=='function'){nativeThen=NativePromise.prototype.then;// wrap native Promise#then for native async functions
|
|
131603
131603
|
redefine$a(NativePromise.prototype,'then',function then(onFulfilled,onRejected){var that=this;return new PromiseConstructor(function(resolve,reject){nativeThen.call(that,resolve,reject);}).then(onFulfilled,onRejected);// https://github.com/zloirock/core-js/issues/640
|
|
@@ -131615,10 +131615,10 @@ all:function all(iterable){var C=this;var capability=newPromiseCapability(C);var
|
|
|
131615
131615
|
race:function race(iterable){var C=this;var capability=newPromiseCapability(C);var reject=capability.reject;var result=perform(function(){var $promiseResolve=aFunction$3(C.resolve);iterate(iterable,function(promise){$promiseResolve.call(C,promise).then(capability.resolve,reject);});});if(result.error)reject(result.value);return capability.promise;}});function useEventsApi(){var api=useApi();return useMemo(function(){return {getEvents:getEvents,getEvent:getEvent,getEventRecurrences:getEventRecurrences};function getEvents(filter,sortFieldBuilder){var queryString$1=queryString.stringify(__assign(__assign({},filter&&__assign({},filter)),sortFieldBuilder&&__assign({},sortFieldBuilder)));return api.custom("events?"+queryString$1).get().then(function(r){return r.body().data();});}function getEvent(id){return api.all('events').get(id).then(function(response){var eventItem=response.body().data();itemStatisticsCache[eventItem.id]=Promise.resolve(__assign({},eventItem.statistics));return eventItem;});}function getEventRecurrences(eventId,from,to){return api.all("editor/events/"+eventId+"/recurrences?"+queryString.stringify({from:from,to:to})).getAll().then(function(res){return res.body().map(function(e){return e.data();});});}},[api]);}// `SameValue` abstract operation
|
|
131616
131616
|
// https://tc39.github.io/ecma262/#sec-samevalue
|
|
131617
131617
|
var sameValue$1=Object.is||function is(x,y){// eslint-disable-next-line no-self-compare
|
|
131618
|
-
return x===y?x!==0||1/x===1/y:x!=x&&y!=y;};var fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic$1;var anObject$1$1=anObject$h;var requireObjectCoercible$3=requireObjectCoercible$c;var sameValue=sameValue$1;var regExpExec$1=regexpExecAbstract$1;// @@search logic
|
|
131619
|
-
fixRegExpWellKnownSymbolLogic$1('search',1,function(SEARCH,nativeSearch,maybeCallNative){return [// `String.prototype.search` method
|
|
131618
|
+
return x===y?x!==0||1/x===1/y:x!=x&&y!=y;};var fixRegExpWellKnownSymbolLogic$1$1=fixRegexpWellKnownSymbolLogic$1;var anObject$1$1=anObject$h;var requireObjectCoercible$3$1=requireObjectCoercible$c;var sameValue=sameValue$1;var regExpExec$1=regexpExecAbstract$1;// @@search logic
|
|
131619
|
+
fixRegExpWellKnownSymbolLogic$1$1('search',1,function(SEARCH,nativeSearch,maybeCallNative){return [// `String.prototype.search` method
|
|
131620
131620
|
// https://tc39.github.io/ecma262/#sec-string.prototype.search
|
|
131621
|
-
function search(regexp){var O=requireObjectCoercible$3(this);var searcher=regexp==undefined?undefined:regexp[SEARCH];return searcher!==undefined?searcher.call(regexp,O):new RegExp(regexp)[SEARCH](String(O));},// `RegExp.prototype[@@search]` method
|
|
131621
|
+
function search(regexp){var O=requireObjectCoercible$3$1(this);var searcher=regexp==undefined?undefined:regexp[SEARCH];return searcher!==undefined?searcher.call(regexp,O):new RegExp(regexp)[SEARCH](String(O));},// `RegExp.prototype[@@search]` method
|
|
131622
131622
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
|
|
131623
131623
|
function(regexp){var res=maybeCallNative(nativeSearch,regexp,this);if(res.done)return res.value;var rx=anObject$1$1(regexp);var S=String(this);var previousLastIndex=rx.lastIndex;if(!sameValue(previousLastIndex,0))rx.lastIndex=0;var result=regExpExec$1(rx,S);if(!sameValue(rx.lastIndex,previousLastIndex))rx.lastIndex=previousLastIndex;return result===null?-1:result.index;}];});var $$8=_export;var assign=objectAssign;// `Object.assign` method
|
|
131624
131624
|
// https://tc39.github.io/ecma262/#sec-object.assign
|
|
@@ -131756,7 +131756,7 @@ node.getAttribute('data-quote-authorname');var showAvatar=node.getAttribute('dat
|
|
|
131756
131756
|
if(node.querySelector('blockquote[data-quote-text]')==null){node.innerHTML='';}}};var InlineVideo=function InlineVideo(_a){var _b=_a.blockProps,id=_b.id,source=_b.source,url=_b.url,isDirectUrl=_b.isDirectUrl;var user=useCurrentUser();var token=useCurrentToken();var getVideoThumbnailUrl=useVideosApi().getVideoThumbnailUrl;var onOpenExternalLink=useContext(LinkContext).onOpenExternalLink;var isStreamVideo=source===VideoSource.MicrosoftStream;if(isStreamVideo&&env.isAnyMobileApp){return jsx$1(StreamButton,__assign({onClick:handleMicrosoftStreamClick},{children:jsx$1(FormattedMessage$1,{id:"Generic.watchMicrosoftStream"},void 0)}),void 0);}return jsx$1(InlineVideoViewer,{videoInfo:{id:id,source:source,url:url,isDirectUrl:isDirectUrl},videoThumbnailUrl:isDirectUrl?getVideoThumbnailUrl(token,user.subscription.id,source,id):null},void 0);function handleMicrosoftStreamClick(){return __awaiter(this,void 0,void 0,function(){var url;return __generator(this,function(_a){switch(_a.label){case 0:url=getMicrosoftStreamVideoUrl(id);return [4/*yield*/,onOpenExternalLink(url,true)];case 1:_a.sent();return [2/*return*/];}});});}};var InlineVideoViewer=_styled(VideoWithThumbnailView).withConfig({displayName:"InlineVideo__InlineVideoViewer",componentId:"sc-12qdsy1-0"})(templateObject_1$1u||(templateObject_1$1u=__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),spacingS+5);var StreamButton=_styled(PrimaryButton).withConfig({displayName:"InlineVideo__StreamButton",componentId:"sc-12qdsy1-1"})(templateObject_2$S||(templateObject_2$S=__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),spacingS+5);var InlineVideoMapper={component:InlineVideo,type:EntityType.Video,getPropsFromHtml:function(nodeName,node){if(nodeName!=='div'){return null;}var videoId=node.getAttribute('data-video-id');if(videoId==null){return null;}var source=node.getAttribute('data-video-source');return {id:videoId,source:parseInt(source,10),url:node.getAttribute('data-video-url'),isDirectUrl:node.getAttribute('data-is-direct-video-url')==='true'};},prepareRootNode:function(node){if(node.childNodes.length>0){node.innerHTML='';}}};var templateObject_1$1u,templateObject_2$S;var InlinePageListViewer=function InlinePageListViewer(_a){var items=_a.items,baseRoute=_a.baseRoute,filterBaseUrl=_a.filterBaseUrl,isInitialLoading=_a.isInitialLoading;var theme=useTheme$2();if(!items||items.length===0){return null;}return jsx$1(PagesList,__assign({"data-inline-page-list":true},{children:items.map(function(item){var isPublished=!item.hasHiddenAncestor&&(item.isCurrentPublishedVersion||!!item.publishedVersionId);return jsx$1(StyledPageItemTile,{item:item,baseRoute:baseRoute,filterBaseUrl:filterBaseUrl,styleDefinition:{backgroundColor:theme.palette.neutralLighter,bannerDefaultWidth:70,height:70,applyRoundedCorners:true,titleFontSize:fontSizeSmall,titleMargin:'0',contentPadding:spacingS-2+"px "+(spacingM-5)+"px"},additionalContent:jsx$1(StyledDocumentDownloadButton$2,{page:item},void 0),showBannerPlaceholder:true,isVisible:isPublished||isInitialLoading},item.id);})}),void 0);};var PagesList=_styled.div.withConfig({displayName:"InlinePageListViewer__PagesList",componentId:"sc-qn2xdx-0"})(templateObject_1$1t||(templateObject_1$1t=__makeTemplateObject(["\n a {\n &,\n :link,\n :visited {\n color: "," !important;\n text-decoration: none !important;\n }\n }\n\n > article:not(:first-child) {\n margin-top: ","px;\n }\n"],["\n a {\n &,\n :link,\n :visited {\n color: "," !important;\n text-decoration: none !important;\n }\n }\n\n > article:not(:first-child) {\n margin-top: ","px;\n }\n"])),function(p){return p.theme.textColors.default;},spacingS);var StyledPageItemTile=_styled(PageItemTile).withConfig({displayName:"InlinePageListViewer__StyledPageItemTile",componentId:"sc-qn2xdx-1"})(templateObject_2$R||(templateObject_2$R=__makeTemplateObject(["\n opacity: ",";\n"],["\n opacity: ",";\n"])),function(p){return p.isVisible?'1':'0.3';});var StyledDocumentDownloadButton$2=_styled(DocumentDownloadButton).withConfig({displayName:"InlinePageListViewer__StyledDocumentDownloadButton",componentId:"sc-qn2xdx-2"})(templateObject_3$z||(templateObject_3$z=__makeTemplateObject(["\n margin-left: auto;\n z-index: 1;\n\n > button {\n width: 22px;\n height: 22px;\n i {\n margin: 0;\n }\n }\n"],["\n margin-left: auto;\n z-index: 1;\n\n > button {\n width: 22px;\n height: 22px;\n i {\n margin: 0;\n }\n }\n"])));var templateObject_1$1t,templateObject_2$R,templateObject_3$z;var InlinePageListWithPaging=function InlinePageListWithPaging(_a){var pages=_a.pages,baseRoute=_a.baseRoute,_b=_a.pagingProps,getNextPage=_b.getNextPage,getFirstPage=_b.getFirstPage,getPrevPage=_b.getPrevPage,isFirstPage=_b.isFirstPage,isInitialLoading=_b.isInitialLoading,isLoadingNextPage=_b.isLoadingNextPage,hideNextButton=_b.hideNextButton,filterBaseUrl=_a.filterBaseUrl;return jsxs(Fragment,{children:[jsx$1(InlinePageListViewer,{items:pages,baseRoute:baseRoute,filterBaseUrl:filterBaseUrl,isInitialLoading:isInitialLoading},void 0),jsx$1(HorizontalPager,{onNextClick:getNextPage,onPrevClick:getPrevPage,onFirstClick:getFirstPage,hidePrevButton:isFirstPage||isInitialLoading,hideNextButton:hideNextButton,isLoadingNextPage:isLoadingNextPage},void 0)]},void 0);};function useItemLoaderByCurrentPage(currentPageId,pageSize,navigationContext,settings,getAllItemsHandler,deps){var _a=useState$2(getAllItems()),allItems=_a[0],setAllItems=_a[1];var allItemIdsString=allItems===null||allItems===void 0?void 0:allItems.map(function(i){return i.id;}).join(',');var _b=useItemLoaderWithPreFetch(pageSize,loadNextItems,[allItemIdsString]),items=_b.items,pagingProps=__rest(_b,["items"]);useEffect$1(function(){setAllItems(getAllItems());},__spreadArray([],deps||[]));var skeletonItems=getNextItems();var pageItems=pagingProps.isInitialLoading?skeletonItems:items;var hideNextButton=pagingProps.isInitialLoading?allItems.length<=pageSize:pagingProps.isLastPage;return {pageItems:pageItems,pagingProps:__assign(__assign({},pagingProps),{hideNextButton:hideNextButton})};function getAllItems(){var _a;var children=(_a=navigationContext===null||navigationContext===void 0?void 0:navigationContext.children)!==null&&_a!==void 0?_a:[];if(settings.showPages&&settings.showDocuments){return children;}var filteredChildren=children.filter(function(c){return c.pageType===(settings.showPages?PageType.Page:PageType.Document);});return filteredChildren;}function getNextItems(startIndex,paginationToken){if(startIndex===void 0){startIndex=0;}if(paginationToken===void 0){paginationToken=pageSize;}return allItems.slice(startIndex,paginationToken);}function loadNextItems(pageSize,paginationToken){return __awaiter(this,void 0,void 0,function(){var showSubpagesAndDocuments,pageType,result_1,fullAllItems,token,newPaginationToken;return __generator(this,function(_a){switch(_a.label){case 0:if(!!paginationToken)return [3/*break*/,2];showSubpagesAndDocuments=settings.showPages&&settings.showDocuments;pageType=settings.showPages?PageType.Page:PageType.Document;return [4/*yield*/,getAllItemsHandler(currentPageId,showSubpagesAndDocuments?undefined:pageType)];case 1:result_1=_a.sent();fullAllItems=allItems.map(function(i){return result_1.find(function(r){return r.id===i.id;});});setAllItems(fullAllItems);return [2/*return*/,{items:fullAllItems.slice(0,pageSize),paginationToken:pageSize,nextItem:fullAllItems[pageSize]}];case 2:token=parseInt(paginationToken);newPaginationToken=token+pageSize;return [2/*return*/,{items:getNextItems(token,newPaginationToken),paginationToken:newPaginationToken,nextItem:allItems[newPaginationToken]}];}});});}}var InlinePageListSkeleton=function InlinePageListSkeleton(_a){var isDataLoaded=_a.isDataLoaded,_b=_a.pageSize,pageSize=_b===void 0?5:_b,children=_a.children;var items=Array.from(Array(pageSize).keys());var uniqueId=createId();var palette=useContext(ThemeContext$1).theme.palette;return jsx$1(Shimmer,__assign({isDataLoaded:isDataLoaded,shimmerColors:{shimmer:palette.neutralTertiaryAlt,shimmerWave:palette.neutralTertiary},customElementsGroup:jsx$1(Fragment,{children:items.map(function(i){return jsx$1(PageItemShimmer,{},uniqueId+"-"+i);})},void 0)},{children:children}),void 0);};var PageItemShimmer=function PageItemShimmer(){var palette=useContext(ThemeContext$1).theme.palette;return jsxs(Host$y,{children:[jsxs(Inner$2$1,{children:[jsx$1(ShimmerElementsGroup,{styles:{root:{backgroundColor:palette.accent,borderRadius:5}},width:'70px',shimmerElements:[{type:ShimmerElementType.line,height:70,width:70}]},void 0),jsx$1(ShimmerElementsGroup,{backgroundColor:palette.neutralLighter,width:"calc(100% - 70px)",flexWrap:true,shimmerElements:[{type:ShimmerElementType.gap,width:'100%',height:spacingS},{type:ShimmerElementType.gap,width:spacingM+"px",height:spacingS},{type:ShimmerElementType.line,width:"calc(20% - "+spacingM+"px)",height:spacingS},{type:ShimmerElementType.gap,width:'80%',height:spacingS},{type:ShimmerElementType.gap,width:'100%',height:spacingS},{type:ShimmerElementType.gap,width:spacingM+"px",height:spacingS},{type:ShimmerElementType.line,width:"calc(100% - "+2*spacingM+"px",height:spacingS},{type:ShimmerElementType.gap,width:spacingM+"px",height:spacingS},{type:ShimmerElementType.gap,width:'100%',height:spacingS},{type:ShimmerElementType.gap,width:spacingM+"px",height:spacingS},{type:ShimmerElementType.line,width:"calc(40% - "+spacingM+"px)",height:spacingS},{type:ShimmerElementType.gap,width:'60%',height:spacingS},{type:ShimmerElementType.gap,width:'100%',height:spacingS}]},void 0)]},void 0),jsx$1(ShimmerElementsGroup,{shimmerElements:[{type:ShimmerElementType.gap,width:'100%',height:spacingS}]},void 0)]},void 0);};var Host$y=_styled.div.withConfig({displayName:"InlinePageListSkeleton__Host",componentId:"sc-13wpgyn-0"})(templateObject_1$1s||(templateObject_1$1s=__makeTemplateObject([""],[""])));var Inner$2$1=_styled.div.withConfig({displayName:"InlinePageListSkeleton__Inner",componentId:"sc-13wpgyn-1"})(templateObject_2$Q||(templateObject_2$Q=__makeTemplateObject(["\n display: flex;\n"],["\n display: flex;\n"])));var templateObject_1$1s,templateObject_2$Q;var InlineContact=function InlineContact(_a){var contact=__rest(_a.blockProps,[]);return jsx$1(InlineContactViewer,{contact:contact},void 0);};var InlineContactMapper={component:InlineContact,type:EntityType.Contact,getPropsFromHtml:function(nodeName,node){if(nodeName!=='div'){return null;}var contactId=node.getAttribute('data-contact-id');if(contactId==null){return null;}var properties={};Array.from(node.querySelectorAll('li')).forEach(function(childNode){var _a,_b;var propertyKey=childNode.getAttribute('data-contact-property');var shouldAutoLoad=(_a=childNode.getAttribute('data-auto-load'))!==null&&_a!==void 0?_a:childNode.getAttribute('data-from-directory');var propertyValue=(_b=childNode.getAttribute('data-contact-property-value'))!==null&&_b!==void 0?_b:childNode.innerText;properties[propertyKey]={value:propertyValue,shouldAutoLoad:shouldAutoLoad==='true'};});return {id:contactId,tenantId:node.getAttribute('data-contact-tenantid'),upn:node.getAttribute('data-contact-upn'),properties:properties};}};var InlineCodeViewer=function InlineCodeViewer(_a){var codeDetails=_a.codeDetails,showJsPlaceholder=_a.showJsPlaceholder,readOnly=_a.readOnly;var htmlContainerRef=useRef$1(null);var javascriptContainerRef=useRef$1(null);useEffect$1(function(){if(readOnly){return;}if(htmlContainerRef.current!=null){if(htmlContainerRef.current.innerHTML!==codeDetails.html){htmlContainerRef.current.innerHTML=codeDetails.html;refreshScripts(htmlContainerRef.current);}}if(javascriptContainerRef.current!=null){var oldScript=javascriptContainerRef.current.querySelector('script');var newScriptText=";\n (function() {\n try {\n "+codeDetails.javascript+";\n } catch (err) {\n console.error(err);\n }\n })();";if(!oldScript||oldScript.innerText!==newScriptText){oldScript===null||oldScript===void 0?void 0:oldScript.remove();var script=document.createElement('script');script.type='text/javascript';var scriptContent=document.createTextNode(newScriptText);script.appendChild(scriptContent);javascriptContainerRef.current.appendChild(script);}}// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
131757
131757
|
},[codeDetails.html,codeDetails.javascript]);if(readOnly){return jsxs(Host$x,{children:[jsx$1("div",{children:codeDetails.html&&JSON.stringify(codeDetails.html)},void 0),jsx$1("div",{children:codeDetails.javascript&&JSON.stringify(codeDetails.javascript)},void 0)]},void 0);}return jsxs(Host$x,{children:[codeDetails.html&&jsx$1("div",{ref:function(c){return htmlContainerRef.current=c;}},void 0),codeDetails.javascript&&jsx$1("div",__assign({ref:function(c){return javascriptContainerRef.current=c;}},{children:!codeDetails.html&&showJsPlaceholder&&jsx$1(JavascriptPlaceholder,{},void 0)}),void 0)]},void 0);};var Host$x=_styled.div.withConfig({displayName:"InlineCodeViewer__Host",componentId:"sc-q9v8du-0"})(templateObject_1$1r||(templateObject_1$1r=__makeTemplateObject(["\n /* Draft js is setting white-space: pre-wrap and it's causing extra spaces */\n /* fix: reset the white-space value (default one) */\n white-space: normal;\n"],["\n /* Draft js is setting white-space: pre-wrap and it's causing extra spaces */\n /* fix: reset the white-space value (default one) */\n white-space: normal;\n"])));var JavascriptPlaceholder=_styled.div.withConfig({displayName:"InlineCodeViewer__JavascriptPlaceholder",componentId:"sc-q9v8du-1"})(templateObject_2$P||(templateObject_2$P=__makeTemplateObject(["\n position: relative;\n height: 2em;\n\n &::before {\n position: absolute;\n content: '<!-- code -->';\n padding-top: 0.5em;\n padding-left: 1em;\n color: grey;\n }\n"],["\n position: relative;\n height: 2em;\n\n &::before {\n position: absolute;\n content: '<!-- code -->';\n padding-top: 0.5em;\n padding-left: 1em;\n color: grey;\n }\n"])));var templateObject_1$1r,templateObject_2$P;var InlineCode=function InlineCode(_a){var _b=_a.blockProps,id=_b.id,html=_b.html,javascript=_b.javascript;var features=useFeatures();if(!features.editorInlineMarkup){return null;}return jsx$1(InlineCodeViewer,{codeDetails:{id:id,html:html,javascript:javascript}},void 0);};var InlineCodeMapper={component:InlineCode,type:EntityType.InlineCode,getPropsFromHtml:function(nodeName,node){var _a,_b,_c,_d;if(nodeName!=='div'){return null;}var codeId=node.getAttribute('data-code-id');if(codeId==null){return null;}var html=(_b=(_a=node.querySelector('[data-code-html]'))===null||_a===void 0?void 0:_a.innerHTML)!==null&&_b!==void 0?_b:node.getAttribute('data-code-html');var javascript=(_d=(_c=node.querySelector('script[type="text/javascript"][data-code-javascript]'))===null||_c===void 0?void 0:_c.innerHTML)!==null&&_d!==void 0?_d:node.getAttribute('data-code-javascript');return {id:codeId,html:html,javascript:javascript};},prepareRootNode:function(node){// detect if we a have new (draftJS) content. If not remove innerHTML
|
|
131758
131758
|
// in order to ensure parsing old blocks
|
|
131759
|
-
if(node.querySelector('[data-code-html]')==null){node.innerHTML='';}}};var HeaderFormat=css$2(templateObject_1$1q||(templateObject_1$1q=__makeTemplateObject(["\n tr:first-child {\n td {\n border: solid 1px ",";\n }\n\n td,\n textarea {\n font-weight: bold;\n color: ",";\n background-color: ",";\n }\n }\n"],["\n tr:first-child {\n td {\n border: solid 1px ",";\n }\n\n td,\n textarea {\n font-weight: bold;\n color: ",";\n background-color: ",";\n }\n }\n"])),function(p){return p.theme.palette.neutralLight;},function(p){return p.theme.palette.neutralSecondaryAlt;},function(p){return p.theme.palette.neutralLight;});var FooterFormat=css$2(templateObject_2$O||(templateObject_2$O=__makeTemplateObject(["\n tr:last-child {\n background-color: ",";\n > td {\n border-bottom: solid 2px ",";\n }\n }\n\n tr:nth-last-child(2) {\n > td {\n border-bottom: solid 1px ",";\n }\n }\n"],["\n tr:last-child {\n background-color: ",";\n > td {\n border-bottom: solid 2px ",";\n }\n }\n\n tr:nth-last-child(2) {\n > td {\n border-bottom: solid 1px ",";\n }\n }\n"])),function(p){return p.theme.palette.white;},function(p){return p.theme.palette.neutralPrimary;},function(p){return p.theme.palette.neutralPrimary;});var Grid=css$2(templateObject_3$y||(templateObject_3$y=__makeTemplateObject(["\n && {\n tr > td {\n border-color: ",";\n border-style: solid;\n }\n }\n"],["\n && {\n tr > td {\n border-color: ",";\n border-style: solid;\n }\n }\n"])),function(p){return p.theme.palette.neutralLight;});var AlternateLines=css$2(templateObject_4$n||(templateObject_4$n=__makeTemplateObject(["\n tr:nth-child(odd) {\n background-color: ",";\n td {\n background-color: ",";\n }\n\n td,\n textarea {\n background-color: ",";\n }\n }\n"],["\n tr:nth-child(odd) {\n background-color: ",";\n td {\n background-color: ",";\n }\n\n td,\n textarea {\n background-color: ",";\n }\n }\n"])),function(p){return p.theme.palette.neutralLighter;},function(p){return p.theme.palette.neutralLighter;},function(p){return p.theme.palette.neutralLighter;});var Table=_styled.table.withConfig({displayName:"InlineTableStyles__Table",componentId:"sc-10dcamf-0"})(templateObject_5$m||(templateObject_5$m=__makeTemplateObject(["\n border-collapse: collapse;\n table-layout: fixed;\n width: 51px;\n\n tr {\n height: 43px;\n > td {\n border: solid 1px transparent;\n font-size: ","px;\n padding: 5px;\n vertical-align: top;\n\n &[data-multiline=\"true\"] {\n white-space: pre-wrap;\n }\n }\n\n textarea {\n font-size: ","px;\n border: none;\n padding: 0;\n }\n }\n }\n\n ","\n ","\n ","\n ","\n"],["\n border-collapse: collapse;\n table-layout: fixed;\n width: 51px;\n\n tr {\n height: 43px;\n > td {\n border: solid 1px transparent;\n font-size: ","px;\n padding: 5px;\n vertical-align: top;\n\n &[data-multiline=\"true\"] {\n white-space: pre-wrap;\n }\n }\n\n textarea {\n font-size: ","px;\n border: none;\n padding: 0;\n }\n }\n }\n\n ","\n ","\n ","\n ","\n"])),fontSizeNormal,fontSizeNormal,function(_a){var showGrid=_a.format.showGrid;return showGrid&&Grid;},function(_a){var alternateLines=_a.format.alternateLines;return alternateLines&&AlternateLines;},function(_a){var hasHeaderRow=_a.format.hasHeaderRow;return hasHeaderRow&&HeaderFormat;},function(_a){var hasFooterRow=_a.format.hasFooterRow;return hasFooterRow&&FooterFormat;});var templateObject_1$1q,templateObject_2$O,templateObject_3$y,templateObject_4$n,templateObject_5$m;var TableViewer=function TableViewer(_a){var tableDefinition=_a.blockProps.tableDefinition;var lastRowIndex=tableDefinition.rows.length-1;return jsx$1(Host$w,{children:jsx$1(Table,__assign({format:tableDefinition.format},{children:jsx$1("tbody",{children:tableDefinition.rows.map(function(r,rowIndex){return jsx$1("tr",{children:r.cells.map(function(c,index){var _a,_b,_c;return jsx$1("td",__assign({style:__assign(__assign({},cellStyleToCssProps(c.style,tableDefinition.format.alternateLines||tableDefinition.format.hasHeaderRow&&rowIndex===0||tableDefinition.format.hasFooterRow&&rowIndex===lastRowIndex)),rowIndex===0&&{width:(_b=(_a=tableDefinition.columns)===null||_a===void 0?void 0:_a[index])===null||_b===void 0?void 0:_b.width}),title:c.value,"data-multiline":c.isMultiline},{children:c.url?jsx$1(TextLink,__assign({url:c.url,style:{color:(_c=c.style.fontColor)!==null&&_c!==void 0?_c:null}},{children:c.value}),void 0):c.value}),index);})},rowIndex);})},void 0)}),void 0)},void 0);};function cssPropsToCellStyle(style,alternateLines,isHeaderRow){if(style==null){return {};}return {isBold:style.fontWeight==='bold',isItalic:style.fontStyle==='italic',textAlign:style.textAlign==='left'||style.textAlign==='right'||style.textAlign==='center'?style.textAlign:null,fontColor:style.color,backgroundColor:!alternateLines&&!isHeaderRow?style.backgroundColor:null};}function cellStyleToCssProps(cellStyle,disableCustomColors){if(cellStyle==null){return {};}return __assign(__assign(__assign(__assign(__assign({},cellStyle.isBold&&{fontWeight:'bold'}),cellStyle.isItalic&&{fontStyle:'italic'}),cellStyle.textAlign&&{textAlign:cellStyle.textAlign}),cellStyle.fontColor&&!disableCustomColors&&{color:cellStyle.fontColor}),cellStyle.backgroundColor&&!disableCustomColors&&{backgroundColor:cellStyle.backgroundColor});}var InlineTable={component:TableViewer,getPropsFromHtml:function(nodeName,node){if(nodeName!=='div'){return null;}var tableId=node.getAttribute('data-table-id');if(tableId==null){return null;}var table=node.querySelector('table');var body=table===null||table===void 0?void 0:table.querySelector('tbody');if(body==null){return null;}var firstRow=body.querySelector('tr:first-child');return {tableId:tableId,tableDefinition:{columns:Array.from(firstRow.querySelectorAll('td')).map(function(c){var _a,_b;return {width:(_b=(_a=c.style)===null||_a===void 0?void 0:_a.width)!==null&&_b!==void 0?_b:null};}),rows:Array.from(body.querySelectorAll('tr')).map(function(row){return {rowId:createId(),cells:Array.from(row.querySelectorAll('td')).map(function(cell){var _a,_b;return {cellId:createId(),value:cell.innerText,style:cssPropsToCellStyle(cell.style,table.classList.contains('condense-table--alternateLines'),table.classList.contains('condense-table--hasHeader')&&row.rowIndex===0),isMultiline:cell.innerText.includes('\n'),url:(_b=(_a=cell.querySelector('a'))===null||_a===void 0?void 0:_a.getAttribute('href'))!==null&&_b!==void 0?_b:null};})};}),format:{showGrid:table.classList.contains('condense-table--showGrid'),alternateLines:table.classList.contains('condense-table--alternateLines'),hasHeaderRow:table.classList.contains('condense-table--hasHeader'),hasFooterRow:table.classList.contains('condense-table--hasFooter')}}};},type:EntityType.Table};var Host$w=_styled.div.withConfig({displayName:"InlineTable__Host",componentId:"sc-8db5xf-0"})(templateObject_1$1p||(templateObject_1$1p=__makeTemplateObject(["\n width: 100%;\n overflow-x: auto;\n"],["\n width: 100%;\n overflow-x: auto;\n"])));var templateObject_1$1p;var ItemBodyWrapper=function ItemBodyWrapper(_a){var className=_a.className,children=_a.children;return jsx$1(Host$v,__assign({className:className,"data-body-wrapper":true},{children:children}),void 0);};var Host$v=_styled.div.withConfig({displayName:"ItemBodyWrapper__Host",componentId:"sc-6adwhw-0"})(templateObject_1$1o||(templateObject_1$1o=__makeTemplateObject(["\n && {\n p,\n ul,\n ol,\n pre,\n blockquote,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n -webkit-margin-before: 0;\n -webkit-margin-end: 0;\n -webkit-margin-after: 0;\n -webkit-margin-start: 0;\n\n -webkit-padding-before: 0;\n -webkit-padding-end: 0;\n -webkit-padding-after: 0;\n -webkit-padding-start: 0;\n }\n\n h1 {\n font-size: ","px;\n margin: ","px 0;\n }\n\n h2 {\n font-size: ","px;\n }\n\n h3 {\n font-size: ","px;\n }\n\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: ","px 0;\n }\n\n p,\n .paragraph,\n ul,\n ol {\n word-wrap: break-word;\n margin-bottom: 1em;\n line-height: 20px;\n }\n\n blockquote {\n line-height: 20px;\n }\n\n ul,\n ol {\n padding-left: 18px;\n }\n\n li {\n margin-bottom: 10px;\n }\n\n a {\n color: ",";\n text-decoration: underline;\n }\n\n .news-inline-file {\n position: relative;\n margin: 10px 3px;\n user-select: none;\n\n > a,\n button {\n max-width: 100%;\n display: inline-block;\n box-sizing: border-box;\n padding: 12px 20px;\n box-shadow: 0 2px 3px 2px #b7b7b7;\n width: auto;\n color: inherit;\n line-height: 1.5em;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n text-decoration: none;\n\n i {\n margin-right: 10px;\n font-size: 25px;\n vertical-align: bottom;\n }\n }\n }\n\n figure:not([data-inline-quote='true']) {\n margin: 0;\n }\n\n .news-inline-image {\n margin-bottom: 15px;\n\n figure {\n margin: 0;\n }\n\n figcaption {\n font-style: italic;\n }\n }\n\n /* news-inline-quote -\n required for backwards compatibility with old news */\n .news-inline-quote {\n max-width: 80%;\n\n figure {\n display: inline-block;\n\n blockquote {\n border-left: 0;\n font-size: 15px;\n }\n\n figcaption {\n text-align: right;\n margin-top: 10px;\n position: relative;\n\n > div {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n overflow: hidden;\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50px, -15px);\n }\n }\n }\n }\n\n .video-view-container {\n margin-bottom: 15px;\n }\n\n @media (max-width: ","px) {\n .news-inline-quote {\n max-width: 100%;\n\n figcaption {\n margin-right: 10px;\n }\n }\n\n h1 {\n font-size: ","px;\n }\n\n h2 {\n font-size: ","px;\n }\n\n h3 {\n font-size: ","px;\n }\n\n p,\n .paragraph,\n ul,\n ol,\n blockquote,\n figcaption,\n td {\n font-size: ","px;\n }\n }\n\n @media (min-width: ","px) {\n .news-inline-quote {\n figure {\n blockquote {\n font-size: 20px;\n }\n }\n }\n }\n }\n"],["\n && {\n p,\n ul,\n ol,\n pre,\n blockquote,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n -webkit-margin-before: 0;\n -webkit-margin-end: 0;\n -webkit-margin-after: 0;\n -webkit-margin-start: 0;\n\n -webkit-padding-before: 0;\n -webkit-padding-end: 0;\n -webkit-padding-after: 0;\n -webkit-padding-start: 0;\n }\n\n h1 {\n font-size: ","px;\n margin: ","px 0;\n }\n\n h2 {\n font-size: ","px;\n }\n\n h3 {\n font-size: ","px;\n }\n\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: ","px 0;\n }\n\n p,\n .paragraph,\n ul,\n ol {\n word-wrap: break-word;\n margin-bottom: 1em;\n line-height: 20px;\n }\n\n blockquote {\n line-height: 20px;\n }\n\n ul,\n ol {\n padding-left: 18px;\n }\n\n li {\n margin-bottom: 10px;\n }\n\n a {\n color: ",";\n text-decoration: underline;\n }\n\n .news-inline-file {\n position: relative;\n margin: 10px 3px;\n user-select: none;\n\n > a,\n button {\n max-width: 100%;\n display: inline-block;\n box-sizing: border-box;\n padding: 12px 20px;\n box-shadow: 0 2px 3px 2px #b7b7b7;\n width: auto;\n color: inherit;\n line-height: 1.5em;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n text-decoration: none;\n\n i {\n margin-right: 10px;\n font-size: 25px;\n vertical-align: bottom;\n }\n }\n }\n\n figure:not([data-inline-quote='true']) {\n margin: 0;\n }\n\n .news-inline-image {\n margin-bottom: 15px;\n\n figure {\n margin: 0;\n }\n\n figcaption {\n font-style: italic;\n }\n }\n\n /* news-inline-quote -\n required for backwards compatibility with old news */\n .news-inline-quote {\n max-width: 80%;\n\n figure {\n display: inline-block;\n\n blockquote {\n border-left: 0;\n font-size: 15px;\n }\n\n figcaption {\n text-align: right;\n margin-top: 10px;\n position: relative;\n\n > div {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n overflow: hidden;\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50px, -15px);\n }\n }\n }\n }\n\n .video-view-container {\n margin-bottom: 15px;\n }\n\n @media (max-width: ","px) {\n .news-inline-quote {\n max-width: 100%;\n\n figcaption {\n margin-right: 10px;\n }\n }\n\n h1 {\n font-size: ","px;\n }\n\n h2 {\n font-size: ","px;\n }\n\n h3 {\n font-size: ","px;\n }\n\n p,\n .paragraph,\n ul,\n ol,\n blockquote,\n figcaption,\n td {\n font-size: ","px;\n }\n }\n\n @media (min-width: ","px) {\n .news-inline-quote {\n figure {\n blockquote {\n font-size: 20px;\n }\n }\n }\n }\n }\n"])),fontSizeLarge-1,spacingS+2,fontSizeLarge-3,fontSizeLarge-5,spacingS,function(p){return p.theme.palette.accent;},maxScreenSize.medium,fontSizeLarge-3,fontSizeLarge-5,fontSizeMedium,fontSizeSmall,minScreenSize.small);var templateObject_1$1o;var InlineFileList=function InlineFileList(_a){var fileBlock=_a.blockProps;var _b=useDetailViewContext(),item=_b.item,resourceType=_b.resourceType;var getFileUrlWithToken=useFileApi().getFileUrlWithToken;if(!fileBlock.files||fileBlock.files.length===0){return null;}var files=fileBlock.files.map(function(f){if(f.pageId){return __assign({},f);}var getFileUrl=function getFileUrl(token){var _a;return ((_a=f.getDownloadUrl)===null||_a===void 0?void 0:_a.call(f,token))||getFileUrlWithToken(token||item.fileAccessToken,item.id,undefined,f.fileId,f.fileName,resourceType);};return __assign(__assign({},f),{getDownloadUrl:getFileUrl,accessToken:item.fileAccessToken});});var audioFiles=files.filter(function(f){return isAudioFile(f.fileName);});var videoFiles=files.filter(function(f){return isVideoFile(f.fileName);});var otherFiles=files.filter(function(f){return !audioFiles.includes(f)&&!videoFiles.includes(f);});return jsxs(Fragment,{children:[videoFiles.length>0&&jsx$1(FileListHost,__assign({"data-preload-video":browserInfo.name==='safari'},{children:videoFiles.map(function(f){var _a;return jsx$1(FileListItem,{children:jsx$1(VideoFileHost,__assign({"data-preload-video":browserInfo.name==='safari'},{children:jsx$1(VideoFile,{fileName:(_a=f.title)!==null&&_a!==void 0?_a:f.fileName,url:f.getDownloadUrl()},void 0)}),void 0)},f.fileId);})}),void 0),audioFiles.length>0&&jsx$1(FileListHost,{children:audioFiles.map(function(f){var _a;return jsx$1(FileListItem,{children:jsx$1(AudioFile,{fileName:(_a=f.title)!==null&&_a!==void 0?_a:f.fileName,url:f.getDownloadUrl()},void 0)},f.fileId);})},void 0),otherFiles.length>0&&jsx$1(FileListHost,{children:otherFiles.map(function(f){return jsx$1(FileListItem,{children:f.pageId?jsx$1(InlinePageDocument,{file:f},void 0):jsx$1(InlineFileDownloadButton,{getFileUrl:f.getDownloadUrl,fileAccessToken:item.fileAccessToken,fileName:f.fileName,title:f.title},void 0)},f.fileId);})},void 0)]},void 0);};var InlinePageDocument=function InlinePageDocument(_a){var file=_a.file;var pageId=file.pageId;var loadPage=usePagesApi().loadPage;var page=usePromise$2(function(){return loadPage(pageId);},undefined,[pageId])[0];var _b=useInlinePageDocument(file,page),fileUrl=_b.fileUrl,iconName=_b.iconName,title=_b.title,fileName=_b.fileName,onPageDocumentDownloadClick=_b.onPageDocumentDownloadClick;return jsx$1(InlinePageDocumentDownloadButton,{fileUrl:fileUrl,fileName:fileName,title:title,fileIconName:iconName,onClick:onPageDocumentDownloadClick},void 0);};var InlineFileMapper={component:InlineFileList,type:EntityType.File,getPropsFromHtml:function(nodeName,node){if(nodeName!=='div'){return null;}var blockId=node.getAttribute('data-file-block');if(!blockId){var fileId=node.getAttribute('data-file-id')||node.getAttribute('data-file-fileid');if(fileId==null){return null;}var title=node.getAttribute('data-file-title');var fileName=node.getAttribute('data-file-name');var pageId=node.getAttribute('data-inline-page-document-id');var extension=node.getAttribute('data-file-extension');return {blockId:createId(),files:[{fileId:fileId,title:title,fileName:fileName,pageId:pageId,extension:extension}]};}return {blockId:blockId,files:Array.from(node.querySelectorAll('[data-file-id], [data-file-fileid]')).map(function(fileNode){var _a;return {fileId:(_a=fileNode.getAttribute('data-file-id'))!==null&&_a!==void 0?_a:fileNode.getAttribute('data-file-fileid'),fileName:fileNode.getAttribute('data-file-name'),title:fileNode.getAttribute('data-file-title'),pageId:fileNode.getAttribute('data-inline-page-document-id'),extension:fileNode.getAttribute('data-file-extension')};})};}};var VideoFileHost=_styled.div.withConfig({displayName:"InlineFileList__VideoFileHost",componentId:"sc-16i3l51-0"})(templateObject_1$1n||(templateObject_1$1n=__makeTemplateObject(["\n width: 100%;\n\n video {\n width: 100%;\n border-radius: ","px;\n overflow: hidden;\n }\n\n &[data-preload-video='true'] {\n video {\n box-shadow: inset 0 0 0 0.5px #707070, 0 0 0 0.5px #707070;\n background-color: #e4e4e4;\n }\n }\n"],["\n width: 100%;\n\n video {\n width: 100%;\n border-radius: ","px;\n overflow: hidden;\n }\n\n &[data-preload-video='true'] {\n video {\n box-shadow: inset 0 0 0 0.5px #707070, 0 0 0 0.5px #707070;\n background-color: #e4e4e4;\n }\n }\n"])),videoAttachmentRoundedCornerSize);var templateObject_1$1n;var EventDetailViewPeopleInfo=function EventDetailViewPeopleInfo(){var item=useDetailViewContext().item;return jsx$1(StyledEventPeopleInfo,{item:item},void 0);};var StyledEventPeopleInfo=_styled(EventPeopleInfo).withConfig({displayName:"EventDetailViewPeopleInfo__StyledEventPeopleInfo",componentId:"sc-1d42bpm-0"})(templateObject_1$1m||(templateObject_1$1m=__makeTemplateObject(["\n margin: ","px 0;\n"],["\n margin: ","px 0;\n"])),spacingS);var templateObject_1$1m;var EventDetailViewLocationInfo=function EventDetailViewLocationInfo(){var item=useDetailViewContext().item;if(!item.locations||item.locations.length===0){return null;}return jsx$1(StyledEventLocationInfo,{locations:item.locations},void 0);};var StyledEventLocationInfo=_styled(EventLocationInfo).withConfig({displayName:"EventDetailViewLocationInfo__StyledEventLocationInfo",componentId:"sc-4kfe0w-0"})(templateObject_1$1l||(templateObject_1$1l=__makeTemplateObject(["\n margin: ","px 0;\n"],["\n margin: ","px 0;\n"])),spacingS);var templateObject_1$1l;var EventDetailViewMetaInfo=function EventDetailViewMetaInfo(_a){var allowFilterByChannels=_a.allowFilterByChannels;var _b=useDetailViewContext(),item=_b.item,userPreferredLanguage=_b.userPreferredLanguage;return jsxs(Fragment,{children:[jsx$1(EventDetailViewLocationInfo,{},void 0),jsx$1(EventDetailViewPeopleInfo,{},void 0),jsx$1(EventChannelsDisplay,{item:item,language:userPreferredLanguage,allowFilterByChannels:allowFilterByChannels},void 0)]},void 0);};var EventDetailViewDatesInfo=function EventDetailViewDatesInfo(_a){var className=_a.className;var item=useDetailViewContext().item;return jsx$1(Host$u,{children:jsx$1(DateTimeRange,{className:className,startDate:item.startDate,endDate:item.endDate},void 0)},void 0);};var Host$u=_styled.div.withConfig({displayName:"EventDetailViewDatesInfo__Host",componentId:"sc-3sblty-0"})(templateObject_1$1k||(templateObject_1$1k=__makeTemplateObject(["\n font-size: ","px;\n margin-bottom: ","px;\n font-weight: 500;\n"],["\n font-size: ","px;\n margin-bottom: ","px;\n font-weight: 500;\n"])),fontSizeSmall,spacingM);var templateObject_1$1k;var PollUserContext=/*#__PURE__*/createContext(null);var DetailViewPollsSubmitButton=function DetailViewPollsSubmitButton(_a){var isReadOnly=_a.isReadOnly;var formatMessage=useIntl().formatMessage;var _b=useContext(PollUserContext),submitPoll=_b.submitPoll,hasMissingUnsavedAnswer=_b.hasMissingUnsavedAnswer,hasMissingAnswers=_b.hasMissingAnswers,answers=_b.answers,resourceType=_b.resourceType,item=_b.item;var updatePollAnswers=useFeedbackApi().updatePollAnswers;if(!hasMissingUnsavedAnswer){return null;}return jsx$1("div",{children:jsx$1(PrimaryButton,{"data-poll-submit-button":true,onClick:function(){return submitPoll(function(){return updatePollAnswers(resourceType,item.id,answers);});},text:formatMessage({id:'Polls.display.submitButtonCaption'}),disabled:hasMissingAnswers||isReadOnly},void 0)},void 0);};var DetailViewCsvExportButton=function DetailViewCsvExportButton(_a){var path=_a.path,stringResource=_a.stringResource,className=_a.className;var user=useCurrentUser();var createApiUrl=useApiFactory().createApiUrl;var exchangeShortLivedToken=useFileAccessTokenApi().exchangeShortLivedToken;var _b=useDetailViewContext(),item=_b.item,resourceType=_b.resourceType;if(!hasMinRoleInSomeGroups(GroupRoles.Author,user,item)){return null;}return jsx$1(Host$t,__assign({className:className},{children:jsxs(DownloadButton$2,__assign({onClick:startDownload},{children:[jsx$1(LeftAlignedIcon,{iconName:"Download"},void 0),jsx$1(FormattedMessage$1,{id:stringResource},void 0)]}),void 0)}),void 0);function startDownload(){return __awaiter(this,void 0,void 0,function(){var token;return __generator(this,function(_a){switch(_a.label){case 0:return [4/*yield*/,exchangeShortLivedToken(item.fileAccessToken)];case 1:token=_a.sent();window.open(getFileUrlWithToken(item.id,token||item.fileAccessToken));return [2/*return*/];}});});}function getFileUrlWithToken(itemId,fileDownloadToken){return createApiUrl("/"+resourceType+"/"+itemId+"/"+path,{access_token:fileDownloadToken});}};var Host$t=_styled.div.withConfig({displayName:"DetailViewCsvExportButton__Host",componentId:"sc-n02scx-0"})(templateObject_1$1j||(templateObject_1$1j=__makeTemplateObject(["\n display: flex;\n"],["\n display: flex;\n"])));var DownloadButton$2=_styled(DefaultButton).withConfig({displayName:"DetailViewCsvExportButton__DownloadButton",componentId:"sc-n02scx-1"})(templateObject_2$N||(templateObject_2$N=__makeTemplateObject(["\n display: flex;\n align-items: center;\n align-self: flex-start;\n color: ",";\n border: 0;\n padding: 0;\n margin: 0;\n\n &:hover {\n background-color: initial;\n color: ",";\n }\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"],["\n display: flex;\n align-items: center;\n align-self: flex-start;\n color: ",";\n border: 0;\n padding: 0;\n margin: 0;\n\n &:hover {\n background-color: initial;\n color: ",";\n }\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"])),function(p){return p.theme.textColors.default;},function(p){return p.theme.textColors.default;},maxScreenSize.medium,fontSizeSmall);var LeftAlignedIcon=_styled(Icon).withConfig({displayName:"DetailViewCsvExportButton__LeftAlignedIcon",componentId:"sc-n02scx-2"})(templateObject_3$x||(templateObject_3$x=__makeTemplateObject(["\n margin-left: -2px; // remove the 2px space this icon has on the left side\n margin-right: 5px;\n color: ",";\n"],["\n margin-left: -2px; // remove the 2px space this icon has on the left side\n margin-right: 5px;\n color: ",";\n"])),function(p){return p.theme.textColors.default;});var templateObject_1$1j,templateObject_2$N,templateObject_3$x;var DetailViewPollExportButton=function DetailViewPollExportButton(_a){var className=_a.className;var features=useFeatures();if(!features.polls){return null;}return jsx$1(DetailViewCsvExportButton,{className:className,path:"feedback/poll/result/export",stringResource:"Polls.display.exportAsCsv"},void 0);};var PollTranslationContext=/*#__PURE__*/createContext(null);var PollTranslationContextProvider=function PollTranslationContextProvider(_a){var contents=_a.contents,language=_a.language,additionalTranslations=_a.additionalTranslations,children=_a.children;var user=useCurrentUser();var activeContents=Object.values(contents||{}).filter(function(c){return c.active;});var allLanguages=activeContents.map(function(c){return c.language;});var allTranslations=additionalTranslations||[];for(var _i=0,_b=activeContents.filter(function(c){return c.poll&&c.poll.questions;});_i<_b.length;_i++){var content=_b[_i];var language_1=content.language;for(var _c=0,_d=content.poll.questions;_c<_d.length;_c++){var question=_d[_c];allTranslations.push({language:language_1,id:question.questionId,text:question.text});for(var _e=0,_f=question.choices;_e<_f.length;_e++){var choice=_f[_e];allTranslations.push({language:language_1,id:choice.choiceId,text:choice.text});}}}return jsx$1(PollTranslationContext.Provider,__assign({value:{getAllTranslations:getAllTranslations,getTranslation:getTranslation}},{children:jsx$1(Fragment,{children:children},void 0)}),void 0);function getAllTranslations(id){return allTranslations.filter(function(t){return t.id===id&&t.text;});}function getTranslation(id){var preferredLanguage=NewsService.getUserPreferredLanguage(allLanguages,user);var translationItems=getAllTranslations(id);var translation=translationItems.find(function(t){return t.language===language;})||translationItems.find(function(t){return t.language===preferredLanguage;})||translationItems[0];return translation?translation.text:null;}};var PollUserInput=function PollUserInput(){var _a=useContext(PollUserContext),questions=_a.questions,getQuestionResult=_a.getQuestionResult,addAnswer=_a.addAnswer;return jsx$1("div",{children:questions.map(function(q){return jsx$1(QuestionInputItem,{question:q,onChange:function(choiceIds){return handleQuestionChange(q,choiceIds);},result:getQuestionResult(q.questionId)},q.questionId);})},void 0);function handleQuestionChange(question,choiceIds){addAnswer(question.questionId,choiceIds);}};var QuestionInput=function QuestionInput(_a){var question=_a.question,onChange=_a.onChange,result=_a.result,className=_a.className;var getTranslation=useContext(PollTranslationContext).getTranslation;var questionText=getTranslation(question.questionId);return jsxs("div",__assign({className:className,"data-question-id":question.questionId,"data-question-text":questionText},{children:[jsx$1(QuestionText,{children:questionText},void 0),question.isMultiChoice&&jsx$1(MultiChoiceQuestionInput,{question:question,onChange:onChange,result:result},void 0),!question.isMultiChoice&&jsx$1(SingleChoiceQuestionInput,{question:question,onChange:function(choiceId){return onChange([choiceId]);},result:result},void 0)]}),void 0);};var MultiChoiceQuestionInput=function MultiChoiceQuestionInput(_a){var question=_a.question,result=_a.result,onChange=_a.onChange;var getTranslation=useContext(PollTranslationContext).getTranslation;return jsx$1("div",{children:question.choices.map(function(c){return jsx$1(StyledCheckbox,{isResultMode:result.showResults,disabled:result.showResults||c.disabled,checked:result.userSelectedChoices.some(function(sc){return sc===c.choiceId;}),onChange:function(_,isChecked){return handleMultipleChoiceChange(c.choiceId,isChecked);},label:getTranslation(c.choiceId),onRenderLabel:function(_){return jsx$1(MultiChoiceLabel,{choice:c,result:result},void 0);}},c.choiceId);})},void 0);function handleMultipleChoiceChange(choiceId,isSelected){var choiceIds=result.userSelectedChoices.filter(function(c){return c!==choiceId;});if(isSelected){choiceIds.push(choiceId);}onChange(choiceIds);}};var SingleChoiceQuestionInput=function SingleChoiceQuestionInput(_a){var question=_a.question,onChange=_a.onChange,result=_a.result;var getTranslation=useContext(PollTranslationContext).getTranslation;return jsx$1(ChoiceInput,{isResultMode:result.showResults,selectedKey:result.userSelectedChoices[0],onChange:function(_,option){return onChange(option.key);},options:question.choices.map(function(c){return {key:c.choiceId,choiceId:c.choiceId,text:getTranslation(c.choiceId),disabled:result.showResults||c.disabled,onRenderLabel:function(_){return jsx$1(SingleChoiceLabel,{choice:c,result:result},void 0);}};})},void 0);};var ChoiceLabel=function ChoiceLabel(_a){var choice=_a.choice,result=_a.result,className=_a.className;var getTranslation=useContext(PollTranslationContext).getTranslation;var choiceText=getTranslation(choice.choiceId);return jsxs(ChoiceLabelHost,__assign({isResultMode:result.showResults,className:className,"data-choice-id":choice.choiceId,"data-choice-text":choiceText},{children:[choiceText,choice.description&&jsx$1(ChoiceLabelSecondaryText,__assign({"data-choice-secondary-text":true},{children:choice.description}),void 0),result.showResults&&jsx$1(ChoiceResult,{result:result,choiceId:choice.choiceId},void 0)]}),void 0);};var ChoiceResult=function ChoiceResult(_a){var choiceId=_a.choiceId,result=_a.result;var numberResult=result.choiceResults[choiceId]||0;var percent=numberResult/result.totalFeedbackCount;var palette=useContext(ThemeContext$1).theme.palette;return jsxs(ChoiceResultHost,__assign({"data-choice-result":numberResult},{children:[jsx$1(Bar,{percentComplete:percent,barHeight:10,styles:{progressBar:{backgroundColor:palette.accent}}},void 0),jsx$1("span",{children:jsx$1(FormattedNumber,{value:numberResult},void 0)},void 0)]}),void 0);};var ChoiceResultHost=_styled.div.withConfig({displayName:"PollUserInput__ChoiceResultHost",componentId:"sc-eeg1mx-0"})(templateObject_1$1i||(templateObject_1$1i=__makeTemplateObject(["\n display: flex;\n align-items: center;\n\n > span {\n padding-left: 10px;\n min-width: 44px;\n text-align: right;\n box-sizing: border-box;\n }\n"],["\n display: flex;\n align-items: center;\n\n > span {\n padding-left: 10px;\n min-width: 44px;\n text-align: right;\n box-sizing: border-box;\n }\n"])));var Bar=_styled(ProgressIndicator).withConfig({displayName:"PollUserInput__Bar",componentId:"sc-eeg1mx-1"})(templateObject_2$M||(templateObject_2$M=__makeTemplateObject(["\n flex: 1 0 auto;\n"],["\n flex: 1 0 auto;\n"])));var QuestionText=_styled.div.withConfig({displayName:"PollUserInput__QuestionText",componentId:"sc-eeg1mx-2"})(templateObject_3$w||(templateObject_3$w=__makeTemplateObject(["\n font-weight: bold;\n"],["\n font-weight: bold;\n"])));var QuestionInputItem=_styled(QuestionInput).withConfig({displayName:"PollUserInput__QuestionInputItem",componentId:"sc-eeg1mx-3"})(templateObject_4$m||(templateObject_4$m=__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),spacingL);var ChoiceLabelHost=_styled.span.withConfig({displayName:"PollUserInput__ChoiceLabelHost",componentId:"sc-eeg1mx-4"})(templateObject_5$l||(templateObject_5$l=__makeTemplateObject(["\n display: inline-block;\n ","\n ","\n"],["\n display: inline-block;\n ","\n ","\n"])),function(p){return p.isResultMode&&'max-width: 400px;';},function(p){return p.isResultMode&&'width: 100%;';});var ChoiceLabelSecondaryText=_styled.div.withConfig({displayName:"PollUserInput__ChoiceLabelSecondaryText",componentId:"sc-eeg1mx-5"})(templateObject_6$e||(templateObject_6$e=__makeTemplateObject(["\n opacity: 0.75;\n"],["\n opacity: 0.75;\n"])));var SingleChoiceLabel=_styled(ChoiceLabel).withConfig({displayName:"PollUserInput__SingleChoiceLabel",componentId:"sc-eeg1mx-6"})(templateObject_7$9||(templateObject_7$9=__makeTemplateObject(["\n padding-left: 30px;\n"],["\n padding-left: 30px;\n"])));var MultiChoiceLabel=_styled(ChoiceLabel).withConfig({displayName:"PollUserInput__MultiChoiceLabel",componentId:"sc-eeg1mx-7"})(templateObject_8$8||(templateObject_8$8=__makeTemplateObject(["\n padding-left: 5px;\n"],["\n padding-left: 5px;\n"])));var ChoiceInput=_styled(ChoiceGroup).withConfig({displayName:"PollUserInput__ChoiceInput",componentId:"sc-eeg1mx-8"})(templateObject_9$6||(templateObject_9$6=__makeTemplateObject(["\n .ms-ChoiceField-field,\n .ms-ChoiceField-wrapper {\n position: relative;\n flex: 1 1 auto;\n display: flex;\n }\n"],["\n .ms-ChoiceField-field,\n .ms-ChoiceField-wrapper {\n position: relative;\n flex: 1 1 auto;\n display: flex;\n }\n"])));var StyledCheckbox=_styled(Checkbox).withConfig({displayName:"PollUserInput__StyledCheckbox",componentId:"sc-eeg1mx-9"})(templateObject_10$5||(templateObject_10$5=__makeTemplateObject(["\n margin-top: 15px;\n .ms-Checkbox-label {\n display: flex;\n align-items: ",";\n flex: 1 1 auto;\n }\n"],["\n margin-top: 15px;\n .ms-Checkbox-label {\n display: flex;\n align-items: ",";\n flex: 1 1 auto;\n }\n"])),function(p){return p.isResultMode?'flex-start':'center';});var templateObject_1$1i,templateObject_2$M,templateObject_3$w,templateObject_4$m,templateObject_5$l,templateObject_6$e,templateObject_7$9,templateObject_8$8,templateObject_9$6,templateObject_10$5;var PollDisplay=function PollDisplay(_a){var children=_a.children,className=_a.className;var formatMessage=useIntl().formatMessage;return jsxs("section",__assign({className:className,"aria-label":formatMessage({id:'Polls.sectionLabel'}),"data-consumer-poll":true},{children:[jsx$1(PollUserInput,{},void 0),children]}),void 0);};var PollUserContextProvider=function PollUserContextProvider(_a){var _b;var item=_a.item,onBehalfOfUpn=_a.onBehalfOfUpn,resourceType=_a.resourceType,language=_a.language,getAdditionalQuestions=_a.getAdditionalQuestions,getAdditionalUserAnswers=_a.getAdditionalUserAnswers,getPollResults=_a.getPollResults,showResult=_a.showResult,children=_a.children;var poll=item.poll,itemId=item.id;var getFeedback=useFeedbackApi().getFeedback;var _c=useState$2(getAdditionalQuestions===null||getAdditionalQuestions===void 0?void 0:getAdditionalQuestions(null)),additionalQuestions=_c[0],setAdditionalQuestions=_c[1];var showError=useNotificationContext().showError;var questionDefinitions=(_b=poll===null||poll===void 0?void 0:poll.questions)!==null&&_b!==void 0?_b:[];var _d=usePromise$2(loadUserAnswers),userAnswers=_d[0],isLoading=_d[1],setUserAnswers=_d[3];var _e=useState$2([]),unsavedQuestionsIds=_e[0],setUnsavedQuestionsIds=_e[1];var _f=usePromise$2(function(){return getPollResults(itemId);},{answers:[]},[itemId]),pollResult=_f[0],isLoadingPollResult=_f[1],fetchPollResults=_f[5];useEffect$1(function(){var _a;if(isLoadingPollResult||!((_a=pollResult===null||pollResult===void 0?void 0:pollResult.answers)===null||_a===void 0?void 0:_a.length)){return;}getAdditionalQuestions&&setAdditionalQuestions(getAdditionalQuestions(pollResult));// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
131759
|
+
if(node.querySelector('[data-code-html]')==null){node.innerHTML='';}}};var HeaderFormat=css$2(templateObject_1$1q||(templateObject_1$1q=__makeTemplateObject(["\n tr:first-child {\n td {\n border: solid 1px ",";\n }\n\n td,\n textarea {\n font-weight: bold;\n color: ",";\n background-color: ",";\n }\n }\n"],["\n tr:first-child {\n td {\n border: solid 1px ",";\n }\n\n td,\n textarea {\n font-weight: bold;\n color: ",";\n background-color: ",";\n }\n }\n"])),function(p){return p.theme.palette.neutralLight;},function(p){return p.theme.palette.neutralSecondaryAlt;},function(p){return p.theme.palette.neutralLight;});var FooterFormat=css$2(templateObject_2$O||(templateObject_2$O=__makeTemplateObject(["\n tr:last-child {\n background-color: ",";\n > td {\n border-bottom: solid 2px ",";\n }\n }\n\n tr:nth-last-child(2) {\n > td {\n border-bottom: solid 1px ",";\n }\n }\n"],["\n tr:last-child {\n background-color: ",";\n > td {\n border-bottom: solid 2px ",";\n }\n }\n\n tr:nth-last-child(2) {\n > td {\n border-bottom: solid 1px ",";\n }\n }\n"])),function(p){return p.theme.palette.white;},function(p){return p.theme.palette.neutralPrimary;},function(p){return p.theme.palette.neutralPrimary;});var Grid=css$2(templateObject_3$y||(templateObject_3$y=__makeTemplateObject(["\n && {\n tr > td {\n border-color: ",";\n border-style: solid;\n }\n }\n"],["\n && {\n tr > td {\n border-color: ",";\n border-style: solid;\n }\n }\n"])),function(p){return p.theme.palette.neutralLight;});var AlternateLines=css$2(templateObject_4$n||(templateObject_4$n=__makeTemplateObject(["\n tr:nth-child(odd) {\n background-color: ",";\n td {\n background-color: ",";\n }\n\n td,\n textarea {\n background-color: ",";\n }\n }\n"],["\n tr:nth-child(odd) {\n background-color: ",";\n td {\n background-color: ",";\n }\n\n td,\n textarea {\n background-color: ",";\n }\n }\n"])),function(p){return p.theme.palette.neutralLighter;},function(p){return p.theme.palette.neutralLighter;},function(p){return p.theme.palette.neutralLighter;});var Table=_styled.table.withConfig({displayName:"InlineTableStyles__Table",componentId:"sc-10dcamf-0"})(templateObject_5$m||(templateObject_5$m=__makeTemplateObject(["\n border-collapse: collapse;\n table-layout: fixed;\n width: 51px;\n\n tr {\n height: 43px;\n > td {\n border: solid 1px transparent;\n font-size: ","px;\n padding: 5px;\n vertical-align: top;\n\n &[data-multiline=\"true\"] {\n white-space: pre-wrap;\n }\n }\n\n textarea {\n font-size: ","px;\n border: none;\n padding: 0;\n }\n }\n }\n\n ","\n ","\n ","\n ","\n"],["\n border-collapse: collapse;\n table-layout: fixed;\n width: 51px;\n\n tr {\n height: 43px;\n > td {\n border: solid 1px transparent;\n font-size: ","px;\n padding: 5px;\n vertical-align: top;\n\n &[data-multiline=\"true\"] {\n white-space: pre-wrap;\n }\n }\n\n textarea {\n font-size: ","px;\n border: none;\n padding: 0;\n }\n }\n }\n\n ","\n ","\n ","\n ","\n"])),fontSizeNormal,fontSizeNormal,function(_a){var showGrid=_a.format.showGrid;return showGrid&&Grid;},function(_a){var alternateLines=_a.format.alternateLines;return alternateLines&&AlternateLines;},function(_a){var hasHeaderRow=_a.format.hasHeaderRow;return hasHeaderRow&&HeaderFormat;},function(_a){var hasFooterRow=_a.format.hasFooterRow;return hasFooterRow&&FooterFormat;});var templateObject_1$1q,templateObject_2$O,templateObject_3$y,templateObject_4$n,templateObject_5$m;var TableViewer=function TableViewer(_a){var tableDefinition=_a.blockProps.tableDefinition;var lastRowIndex=tableDefinition.rows.length-1;return jsx$1(Host$w,{children:jsx$1(Table,__assign({format:tableDefinition.format},{children:jsx$1("tbody",{children:tableDefinition.rows.map(function(r,rowIndex){return jsx$1("tr",{children:r.cells.map(function(c,index){var _a,_b,_c;return jsx$1("td",__assign({style:__assign(__assign({},cellStyleToCssProps(c.style,tableDefinition.format.alternateLines||tableDefinition.format.hasHeaderRow&&rowIndex===0||tableDefinition.format.hasFooterRow&&rowIndex===lastRowIndex)),rowIndex===0&&{width:(_b=(_a=tableDefinition.columns)===null||_a===void 0?void 0:_a[index])===null||_b===void 0?void 0:_b.width}),title:c.value,"data-multiline":c.isMultiline},{children:c.url?jsx$1(TextLink,__assign({url:c.url,style:{color:(_c=c.style.fontColor)!==null&&_c!==void 0?_c:null}},{children:c.value}),void 0):c.value}),index);})},rowIndex);})},void 0)}),void 0)},void 0);};function cssPropsToCellStyle(style,alternateLines,isHeaderRow){if(style==null){return {};}return {isBold:style.fontWeight==='bold',isItalic:style.fontStyle==='italic',textAlign:style.textAlign==='left'||style.textAlign==='right'||style.textAlign==='center'?style.textAlign:null,fontColor:style.color,backgroundColor:!alternateLines&&!isHeaderRow?style.backgroundColor:null};}function cellStyleToCssProps(cellStyle,disableCustomColors){if(cellStyle==null){return {};}return __assign(__assign(__assign(__assign(__assign({},cellStyle.isBold&&{fontWeight:'bold'}),cellStyle.isItalic&&{fontStyle:'italic'}),cellStyle.textAlign&&{textAlign:cellStyle.textAlign}),cellStyle.fontColor&&!disableCustomColors&&{color:cellStyle.fontColor}),cellStyle.backgroundColor&&!disableCustomColors&&{backgroundColor:cellStyle.backgroundColor});}var InlineTable={component:TableViewer,getPropsFromHtml:function(nodeName,node){if(nodeName!=='div'){return null;}var tableId=node.getAttribute('data-table-id');if(tableId==null){return null;}var table=node.querySelector('table');var body=table===null||table===void 0?void 0:table.querySelector('tbody');if(body==null){return null;}var firstRow=body.querySelector('tr:first-child');return {tableId:tableId,tableDefinition:{columns:Array.from(firstRow.querySelectorAll('td')).map(function(c){var _a,_b;return {width:(_b=(_a=c.style)===null||_a===void 0?void 0:_a.width)!==null&&_b!==void 0?_b:null};}),rows:Array.from(body.querySelectorAll('tr')).map(function(row){return {rowId:createId(),cells:Array.from(row.querySelectorAll('td')).map(function(cell){var _a,_b;return {cellId:createId(),value:cell.innerText,style:cssPropsToCellStyle(cell.style,table.classList.contains('condense-table--alternateLines'),table.classList.contains('condense-table--hasHeader')&&row.rowIndex===0),isMultiline:cell.innerText.includes('\n'),url:(_b=(_a=cell.querySelector('a'))===null||_a===void 0?void 0:_a.getAttribute('href'))!==null&&_b!==void 0?_b:null};})};}),format:{showGrid:table.classList.contains('condense-table--showGrid'),alternateLines:table.classList.contains('condense-table--alternateLines'),hasHeaderRow:table.classList.contains('condense-table--hasHeader'),hasFooterRow:table.classList.contains('condense-table--hasFooter')}}};},type:EntityType.Table};var Host$w=_styled.div.withConfig({displayName:"InlineTable__Host",componentId:"sc-8db5xf-0"})(templateObject_1$1p||(templateObject_1$1p=__makeTemplateObject(["\n width: 100%;\n overflow-x: auto;\n"],["\n width: 100%;\n overflow-x: auto;\n"])));var templateObject_1$1p;var ItemBodyWrapper=function ItemBodyWrapper(_a){var className=_a.className,children=_a.children;return jsx$1(Host$v,__assign({className:className,"data-body-wrapper":true},{children:children}),void 0);};var Host$v=_styled.div.withConfig({displayName:"ItemBodyWrapper__Host",componentId:"sc-6adwhw-0"})(templateObject_1$1o||(templateObject_1$1o=__makeTemplateObject(["\n && {\n p,\n ul,\n ol,\n pre,\n blockquote,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n -webkit-margin-before: 0;\n -webkit-margin-end: 0;\n -webkit-margin-after: 0;\n -webkit-margin-start: 0;\n\n -webkit-padding-before: 0;\n -webkit-padding-end: 0;\n -webkit-padding-after: 0;\n -webkit-padding-start: 0;\n }\n\n h1 {\n font-size: ","px;\n margin: ","px 0;\n }\n\n h2 {\n font-size: ","px;\n }\n\n h3 {\n font-size: ","px;\n }\n\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: ","px 0;\n }\n\n p,\n .paragraph,\n ul,\n ol {\n word-wrap: break-word;\n margin-bottom: 1em;\n line-height: 20px;\n }\n\n blockquote {\n line-height: 20px;\n }\n\n ul,\n ol {\n padding-left: 18px;\n }\n\n li {\n margin-bottom: 10px;\n }\n\n a {\n color: ",";\n text-decoration: underline;\n }\n\n .news-inline-file {\n position: relative;\n margin: 10px 3px;\n user-select: none;\n\n > a,\n button {\n max-width: 100%;\n display: inline-block;\n box-sizing: border-box;\n padding: 12px 20px;\n box-shadow: 0 2px 3px 2px #b7b7b7;\n width: auto;\n color: inherit;\n line-height: 1.5em;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n text-decoration: none;\n\n i {\n margin-right: 10px;\n font-size: 25px;\n vertical-align: bottom;\n }\n }\n }\n\n figure:not([data-inline-quote='true']) {\n margin: 0;\n }\n\n .news-inline-image {\n margin-bottom: 15px;\n\n figure {\n margin: 0;\n }\n\n figcaption {\n font-style: italic;\n }\n }\n\n /* news-inline-quote -\n required for backwards compatibility with old news */\n .news-inline-quote {\n max-width: 80%;\n\n figure {\n display: inline-block;\n\n blockquote {\n border-left: 0;\n font-size: 15px;\n }\n\n figcaption {\n text-align: right;\n margin-top: 10px;\n position: relative;\n\n > div {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n overflow: hidden;\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50px, -15px);\n }\n }\n }\n }\n\n .video-view-container {\n margin-bottom: 15px;\n }\n\n @media (max-width: ","px) {\n .news-inline-quote {\n max-width: 100%;\n\n figcaption {\n margin-right: 10px;\n }\n }\n\n h1 {\n font-size: ","px;\n }\n\n h2 {\n font-size: ","px;\n }\n\n h3 {\n font-size: ","px;\n }\n\n p,\n .paragraph,\n ul,\n ol,\n blockquote,\n figcaption,\n td {\n font-size: ","px;\n }\n }\n\n @media (min-width: ","px) {\n .news-inline-quote {\n figure {\n blockquote {\n font-size: 20px;\n }\n }\n }\n }\n }\n"],["\n && {\n p,\n ul,\n ol,\n pre,\n blockquote,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n -webkit-margin-before: 0;\n -webkit-margin-end: 0;\n -webkit-margin-after: 0;\n -webkit-margin-start: 0;\n\n -webkit-padding-before: 0;\n -webkit-padding-end: 0;\n -webkit-padding-after: 0;\n -webkit-padding-start: 0;\n }\n\n h1 {\n font-size: ","px;\n margin: ","px 0;\n }\n\n h2 {\n font-size: ","px;\n }\n\n h3 {\n font-size: ","px;\n }\n\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: ","px 0;\n }\n\n p,\n .paragraph,\n ul,\n ol {\n word-wrap: break-word;\n margin-bottom: 1em;\n line-height: 20px;\n }\n\n blockquote {\n line-height: 20px;\n }\n\n ul,\n ol {\n padding-left: 18px;\n }\n\n li {\n margin-bottom: 10px;\n }\n\n a {\n color: ",";\n text-decoration: underline;\n }\n\n .news-inline-file {\n position: relative;\n margin: 10px 3px;\n user-select: none;\n\n > a,\n button {\n max-width: 100%;\n display: inline-block;\n box-sizing: border-box;\n padding: 12px 20px;\n box-shadow: 0 2px 3px 2px #b7b7b7;\n width: auto;\n color: inherit;\n line-height: 1.5em;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n text-decoration: none;\n\n i {\n margin-right: 10px;\n font-size: 25px;\n vertical-align: bottom;\n }\n }\n }\n\n figure:not([data-inline-quote='true']) {\n margin: 0;\n }\n\n .news-inline-image {\n margin-bottom: 15px;\n\n figure {\n margin: 0;\n }\n\n figcaption {\n font-style: italic;\n }\n }\n\n /* news-inline-quote -\n required for backwards compatibility with old news */\n .news-inline-quote {\n max-width: 80%;\n\n figure {\n display: inline-block;\n\n blockquote {\n border-left: 0;\n font-size: 15px;\n }\n\n figcaption {\n text-align: right;\n margin-top: 10px;\n position: relative;\n\n > div {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n overflow: hidden;\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50px, -15px);\n }\n }\n }\n }\n\n .video-view-container {\n margin-bottom: 15px;\n }\n\n @media (max-width: ","px) {\n .news-inline-quote {\n max-width: 100%;\n\n figcaption {\n margin-right: 10px;\n }\n }\n\n h1 {\n font-size: ","px;\n }\n\n h2 {\n font-size: ","px;\n }\n\n h3 {\n font-size: ","px;\n }\n\n p,\n .paragraph,\n ul,\n ol,\n blockquote,\n figcaption,\n td {\n font-size: ","px;\n }\n }\n\n @media (min-width: ","px) {\n .news-inline-quote {\n figure {\n blockquote {\n font-size: 20px;\n }\n }\n }\n }\n }\n"])),fontSizeLarge-1,spacingS+2,fontSizeLarge-3,fontSizeLarge-5,spacingS,function(p){return p.theme.palette.accent;},maxScreenSize.medium,fontSizeLarge-3,fontSizeLarge-5,fontSizeMedium,fontSizeSmall,minScreenSize.small);var templateObject_1$1o;var InlineFileList=function InlineFileList(_a){var fileBlock=_a.blockProps;var _b=useDetailViewContext(),item=_b.item,resourceType=_b.resourceType;var getFileUrlWithToken=useFileApi().getFileUrlWithToken;if(!fileBlock.files||fileBlock.files.length===0){return null;}var files=fileBlock.files.map(function(f){if(f.pageId){return __assign({},f);}var getFileUrl=function getFileUrl(token){var _a;return ((_a=f.getDownloadUrl)===null||_a===void 0?void 0:_a.call(f,token))||getFileUrlWithToken(token||item.fileAccessToken,item.id,undefined,f.fileId,f.fileName,resourceType);};return __assign(__assign({},f),{getDownloadUrl:getFileUrl,accessToken:item.fileAccessToken});});var audioFiles=files.filter(function(f){return isAudioFile(f.fileName);});var videoFiles=files.filter(function(f){return isVideoFile(f.fileName);});var otherFiles=files.filter(function(f){return !audioFiles.includes(f)&&!videoFiles.includes(f);});return jsxs(Fragment,{children:[videoFiles.length>0&&jsx$1(FileListHost,__assign({"data-preload-video":browserInfo.name==='safari'},{children:videoFiles.map(function(f){var _a;return jsx$1(FileListItem,{children:jsx$1(VideoFileHost,__assign({"data-preload-video":browserInfo.name==='safari'},{children:jsx$1(VideoFile,{fileName:(_a=f.title)!==null&&_a!==void 0?_a:f.fileName,url:f.getDownloadUrl()},void 0)}),void 0)},f.fileId);})}),void 0),audioFiles.length>0&&jsx$1(FileListHost,{children:audioFiles.map(function(f){var _a;return jsx$1(FileListItem,{children:jsx$1(AudioFile,{fileName:(_a=f.title)!==null&&_a!==void 0?_a:f.fileName,url:f.getDownloadUrl()},void 0)},f.fileId);})},void 0),otherFiles.length>0&&jsx$1(FileListHost,{children:otherFiles.map(function(f){return jsx$1(FileListItem,{children:f.pageId?jsx$1(InlinePageDocument,{file:f},void 0):jsx$1(InlineFileDownloadButton,{getFileUrl:f.getDownloadUrl,fileAccessToken:item.fileAccessToken,fileName:f.fileName,title:f.title},void 0)},f.fileId);})},void 0)]},void 0);};var InlinePageDocument=function InlinePageDocument(_a){var file=_a.file;var pageId=file.pageId;var loadPage=usePagesApi().loadPage;var page=usePromise$2(function(){return loadPage(pageId);},undefined,[pageId])[0];var _b=useInlinePageDocument(file,page),fileUrl=_b.fileUrl,iconName=_b.iconName,title=_b.title,fileName=_b.fileName,onPageDocumentDownloadClick=_b.onPageDocumentDownloadClick;return jsx$1(InlinePageDocumentDownloadButton,{fileUrl:fileUrl,fileName:fileName,title:title,fileIconName:iconName,onClick:onPageDocumentDownloadClick},void 0);};var InlineFileMapper={component:InlineFileList,type:EntityType.File,getPropsFromHtml:function(nodeName,node){if(nodeName!=='div'){return null;}var blockId=node.getAttribute('data-file-block');if(!blockId){var fileId=node.getAttribute('data-file-id')||node.getAttribute('data-file-fileid');if(fileId==null){return null;}var title=node.getAttribute('data-file-title');var fileName=node.getAttribute('data-file-name');var pageId=node.getAttribute('data-inline-page-document-id');var extension=node.getAttribute('data-file-extension');return {blockId:createId(),files:[{fileId:fileId,title:title,fileName:fileName,pageId:pageId,extension:extension}]};}return {blockId:blockId,files:Array.from(node.querySelectorAll('[data-file-id], [data-file-fileid]')).map(function(fileNode){var _a;return {fileId:(_a=fileNode.getAttribute('data-file-id'))!==null&&_a!==void 0?_a:fileNode.getAttribute('data-file-fileid'),fileName:fileNode.getAttribute('data-file-name'),title:fileNode.getAttribute('data-file-title'),pageId:fileNode.getAttribute('data-inline-page-document-id'),extension:fileNode.getAttribute('data-file-extension')};})};}};var VideoFileHost=_styled.div.withConfig({displayName:"InlineFileList__VideoFileHost",componentId:"sc-16i3l51-0"})(templateObject_1$1n||(templateObject_1$1n=__makeTemplateObject(["\n width: 100%;\n\n video {\n width: 100%;\n border-radius: ","px;\n overflow: hidden;\n }\n\n &[data-preload-video='true'] {\n video {\n box-shadow: inset 0 0 0 0.5px #707070, 0 0 0 0.5px #707070;\n background-color: #e4e4e4;\n }\n }\n"],["\n width: 100%;\n\n video {\n width: 100%;\n border-radius: ","px;\n overflow: hidden;\n }\n\n &[data-preload-video='true'] {\n video {\n box-shadow: inset 0 0 0 0.5px #707070, 0 0 0 0.5px #707070;\n background-color: #e4e4e4;\n }\n }\n"])),videoAttachmentRoundedCornerSize);var templateObject_1$1n;var EventDetailViewPeopleInfo=function EventDetailViewPeopleInfo(){var item=useDetailViewContext().item;return jsx$1(StyledEventPeopleInfo,{item:item},void 0);};var StyledEventPeopleInfo=_styled(EventPeopleInfo).withConfig({displayName:"EventDetailViewPeopleInfo__StyledEventPeopleInfo",componentId:"sc-1d42bpm-0"})(templateObject_1$1m||(templateObject_1$1m=__makeTemplateObject(["\n margin: ","px 0;\n"],["\n margin: ","px 0;\n"])),spacingS);var templateObject_1$1m;var EventDetailViewLocationInfo=function EventDetailViewLocationInfo(){var item=useDetailViewContext().item;if(!item.locations||item.locations.length===0){return null;}return jsx$1(StyledEventLocationInfo,{locations:item.locations},void 0);};var StyledEventLocationInfo=_styled(EventLocationInfo).withConfig({displayName:"EventDetailViewLocationInfo__StyledEventLocationInfo",componentId:"sc-4kfe0w-0"})(templateObject_1$1l||(templateObject_1$1l=__makeTemplateObject(["\n margin: ","px 0;\n"],["\n margin: ","px 0;\n"])),spacingS);var templateObject_1$1l;var EventDetailViewMetaInfo=function EventDetailViewMetaInfo(_a){var allowFilterByChannels=_a.allowFilterByChannels;var _b=useDetailViewContext(),item=_b.item,userPreferredLanguage=_b.userPreferredLanguage;return jsxs(Fragment,{children:[jsx$1(EventDetailViewLocationInfo,{},void 0),jsx$1(EventDetailViewPeopleInfo,{},void 0),jsx$1(EventChannelsDisplay,{item:item,language:userPreferredLanguage,allowFilterByChannels:allowFilterByChannels},void 0)]},void 0);};var EventDetailViewDatesInfo=function EventDetailViewDatesInfo(_a){var className=_a.className;var item=useDetailViewContext().item;return jsx$1(Host$u,{children:jsx$1(DateTimeRange,{className:className,startDate:item.startDate,endDate:item.endDate},void 0)},void 0);};var Host$u=_styled.div.withConfig({displayName:"EventDetailViewDatesInfo__Host",componentId:"sc-3sblty-0"})(templateObject_1$1k||(templateObject_1$1k=__makeTemplateObject(["\n font-size: ","px;\n margin-bottom: ","px;\n font-weight: 500;\n"],["\n font-size: ","px;\n margin-bottom: ","px;\n font-weight: 500;\n"])),fontSizeSmall,spacingM);var templateObject_1$1k;var PollUserContext=/*#__PURE__*/createContext(null);var DetailViewPollsSubmitButton=function DetailViewPollsSubmitButton(_a){var isReadOnly=_a.isReadOnly;var formatMessage=useIntl().formatMessage;var _b=useContext(PollUserContext),submitPoll=_b.submitPoll,hasMissingUnsavedAnswer=_b.hasMissingUnsavedAnswer,hasMissingAnswers=_b.hasMissingAnswers,answers=_b.answers,resourceType=_b.resourceType,item=_b.item;var updatePollAnswers=useFeedbackApi().updatePollAnswers;if(!hasMissingUnsavedAnswer){return null;}return jsx$1("div",{children:jsx$1(PrimaryButton,{"data-poll-submit-button":true,onClick:function(){return submitPoll(function(){return updatePollAnswers(resourceType,item.id,answers);});},text:formatMessage({id:'Polls.display.submitButtonCaption'}),disabled:hasMissingAnswers||isReadOnly},void 0)},void 0);};var DetailViewCsvExportButton=function DetailViewCsvExportButton(_a){var path=_a.path,stringResource=_a.stringResource,className=_a.className;var user=useCurrentUser();var createApiUrl=useApiFactory().createApiUrl;var exchangeShortLivedToken=useFileAccessTokenApi().exchangeShortLivedToken;var _b=useDetailViewContext(),item=_b.item,resourceType=_b.resourceType;if(!hasMinRoleInSomeGroups(GroupRoles.Author,user,item)){return null;}return jsx$1(Host$t,__assign({className:className},{children:jsxs(DownloadButton$2,__assign({onClick:startDownload},{children:[jsx$1(LeftAlignedIcon,{iconName:"Download"},void 0),jsx$1(FormattedMessage$1,{id:stringResource},void 0)]}),void 0)}),void 0);function startDownload(){return __awaiter(this,void 0,void 0,function(){var token;return __generator(this,function(_a){switch(_a.label){case 0:return [4/*yield*/,exchangeShortLivedToken(item.fileAccessToken)];case 1:token=_a.sent();window.open(getFileUrlWithToken(item.id,token||item.fileAccessToken));return [2/*return*/];}});});}function getFileUrlWithToken(itemId,fileDownloadToken){return createApiUrl("/"+resourceType+"/"+itemId+"/"+path,{access_token:fileDownloadToken});}};var Host$t=_styled.div.withConfig({displayName:"DetailViewCsvExportButton__Host",componentId:"sc-n02scx-0"})(templateObject_1$1j||(templateObject_1$1j=__makeTemplateObject(["\n display: flex;\n"],["\n display: flex;\n"])));var DownloadButton$2=_styled(DefaultButton).withConfig({displayName:"DetailViewCsvExportButton__DownloadButton",componentId:"sc-n02scx-1"})(templateObject_2$N||(templateObject_2$N=__makeTemplateObject(["\n display: flex;\n align-items: center;\n align-self: flex-start;\n color: ",";\n border: 0;\n padding: 0;\n margin: 0;\n\n &:hover {\n background-color: initial;\n color: ",";\n }\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"],["\n display: flex;\n align-items: center;\n align-self: flex-start;\n color: ",";\n border: 0;\n padding: 0;\n margin: 0;\n\n &:hover {\n background-color: initial;\n color: ",";\n }\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"])),function(p){return p.theme.textColors.default;},function(p){return p.theme.textColors.default;},maxScreenSize.medium,fontSizeSmall);var LeftAlignedIcon=_styled(Icon).withConfig({displayName:"DetailViewCsvExportButton__LeftAlignedIcon",componentId:"sc-n02scx-2"})(templateObject_3$x||(templateObject_3$x=__makeTemplateObject(["\n margin-left: -2px; // remove the 2px space this icon has on the left side\n margin-right: 5px;\n color: ",";\n"],["\n margin-left: -2px; // remove the 2px space this icon has on the left side\n margin-right: 5px;\n color: ",";\n"])),function(p){return p.theme.textColors.default;});var templateObject_1$1j,templateObject_2$N,templateObject_3$x;var DetailViewPollExportButton=function DetailViewPollExportButton(_a){var className=_a.className;var features=useFeatures();if(!features.polls){return null;}return jsx$1(DetailViewCsvExportButton,{className:className,path:"feedback/poll/result/export",stringResource:"Polls.display.exportAsCsv"},void 0);};var PollTranslationContext=/*#__PURE__*/createContext(null);var PollTranslationContextProvider=function PollTranslationContextProvider(_a){var contents=_a.contents,language=_a.language,additionalTranslations=_a.additionalTranslations,children=_a.children;var user=useCurrentUser();var activeContents=Object.values(contents||{}).filter(function(c){return c.active;});var allLanguages=activeContents.map(function(c){return c.language;});var allTranslations=additionalTranslations||[];for(var _i=0,_b=activeContents.filter(function(c){return c.poll&&c.poll.questions;});_i<_b.length;_i++){var content=_b[_i];var language_1=content.language;for(var _c=0,_d=content.poll.questions;_c<_d.length;_c++){var question=_d[_c];allTranslations.push({language:language_1,id:question.questionId,text:question.text});for(var _e=0,_f=question.choices;_e<_f.length;_e++){var choice=_f[_e];allTranslations.push({language:language_1,id:choice.choiceId,text:choice.text});}}}return jsx$1(PollTranslationContext.Provider,__assign({value:{getAllTranslations:getAllTranslations,getTranslation:getTranslation}},{children:jsx$1(Fragment,{children:children},void 0)}),void 0);function getAllTranslations(id){return allTranslations.filter(function(t){return t.id===id&&t.text;});}function getTranslation(id){var preferredLanguage=NewsService.getUserPreferredLanguage(allLanguages,user);var translationItems=getAllTranslations(id);var translation=translationItems.find(function(t){return t.language===language;})||translationItems.find(function(t){return t.language===preferredLanguage;})||translationItems[0];return translation?translation.text:null;}};var PollUserInput=function PollUserInput(){var _a=useContext(PollUserContext),questions=_a.questions,getQuestionResult=_a.getQuestionResult,addAnswer=_a.addAnswer;return jsx$1("div",{children:questions.map(function(q){return jsx$1(QuestionInputItem,{question:q,onChange:function(choiceIds){return handleQuestionChange(q,choiceIds);},result:getQuestionResult(q.questionId)},q.questionId);})},void 0);function handleQuestionChange(question,choiceIds){addAnswer(question.questionId,choiceIds);}};var QuestionInput=function QuestionInput(_a){var question=_a.question,onChange=_a.onChange,result=_a.result,className=_a.className;var getTranslation=useContext(PollTranslationContext).getTranslation;var questionText=getTranslation(question.questionId);return jsxs("div",__assign({className:className,"data-question-id":question.questionId,"data-question-text":questionText},{children:[jsx$1(QuestionText,{children:questionText},void 0),question.isMultiChoice&&jsx$1(MultiChoiceQuestionInput,{question:question,onChange:onChange,result:result},void 0),!question.isMultiChoice&&jsx$1(SingleChoiceQuestionInput,{question:question,onChange:function(choiceId){return onChange([choiceId]);},result:result},void 0)]}),void 0);};var MultiChoiceQuestionInput=function MultiChoiceQuestionInput(_a){var question=_a.question,result=_a.result,onChange=_a.onChange;var getTranslation=useContext(PollTranslationContext).getTranslation;return jsx$1("div",{children:question.choices.map(function(c){return jsx$1(StyledCheckbox$1,{isResultMode:result.showResults,disabled:result.showResults||c.disabled,checked:result.userSelectedChoices.some(function(sc){return sc===c.choiceId;}),onChange:function(_,isChecked){return handleMultipleChoiceChange(c.choiceId,isChecked);},label:getTranslation(c.choiceId),onRenderLabel:function(_){return jsx$1(MultiChoiceLabel,{choice:c,result:result},void 0);}},c.choiceId);})},void 0);function handleMultipleChoiceChange(choiceId,isSelected){var choiceIds=result.userSelectedChoices.filter(function(c){return c!==choiceId;});if(isSelected){choiceIds.push(choiceId);}onChange(choiceIds);}};var SingleChoiceQuestionInput=function SingleChoiceQuestionInput(_a){var question=_a.question,onChange=_a.onChange,result=_a.result;var getTranslation=useContext(PollTranslationContext).getTranslation;return jsx$1(ChoiceInput,{isResultMode:result.showResults,selectedKey:result.userSelectedChoices[0],onChange:function(_,option){return onChange(option.key);},options:question.choices.map(function(c){return {key:c.choiceId,choiceId:c.choiceId,text:getTranslation(c.choiceId),disabled:result.showResults||c.disabled,onRenderLabel:function(_){return jsx$1(SingleChoiceLabel,{choice:c,result:result},void 0);}};})},void 0);};var ChoiceLabel=function ChoiceLabel(_a){var choice=_a.choice,result=_a.result,className=_a.className;var getTranslation=useContext(PollTranslationContext).getTranslation;var choiceText=getTranslation(choice.choiceId);return jsxs(ChoiceLabelHost,__assign({isResultMode:result.showResults,className:className,"data-choice-id":choice.choiceId,"data-choice-text":choiceText},{children:[choiceText,choice.description&&jsx$1(ChoiceLabelSecondaryText,__assign({"data-choice-secondary-text":true},{children:choice.description}),void 0),result.showResults&&jsx$1(ChoiceResult,{result:result,choiceId:choice.choiceId},void 0)]}),void 0);};var ChoiceResult=function ChoiceResult(_a){var choiceId=_a.choiceId,result=_a.result;var numberResult=result.choiceResults[choiceId]||0;var percent=numberResult/result.totalFeedbackCount;var palette=useContext(ThemeContext$1).theme.palette;return jsxs(ChoiceResultHost,__assign({"data-choice-result":numberResult},{children:[jsx$1(Bar,{percentComplete:percent,barHeight:10,styles:{progressBar:{backgroundColor:palette.accent}}},void 0),jsx$1("span",{children:jsx$1(FormattedNumber,{value:numberResult},void 0)},void 0)]}),void 0);};var ChoiceResultHost=_styled.div.withConfig({displayName:"PollUserInput__ChoiceResultHost",componentId:"sc-eeg1mx-0"})(templateObject_1$1i||(templateObject_1$1i=__makeTemplateObject(["\n display: flex;\n align-items: center;\n\n > span {\n padding-left: 10px;\n min-width: 44px;\n text-align: right;\n box-sizing: border-box;\n }\n"],["\n display: flex;\n align-items: center;\n\n > span {\n padding-left: 10px;\n min-width: 44px;\n text-align: right;\n box-sizing: border-box;\n }\n"])));var Bar=_styled(ProgressIndicator).withConfig({displayName:"PollUserInput__Bar",componentId:"sc-eeg1mx-1"})(templateObject_2$M||(templateObject_2$M=__makeTemplateObject(["\n flex: 1 0 auto;\n"],["\n flex: 1 0 auto;\n"])));var QuestionText=_styled.div.withConfig({displayName:"PollUserInput__QuestionText",componentId:"sc-eeg1mx-2"})(templateObject_3$w||(templateObject_3$w=__makeTemplateObject(["\n font-weight: bold;\n"],["\n font-weight: bold;\n"])));var QuestionInputItem=_styled(QuestionInput).withConfig({displayName:"PollUserInput__QuestionInputItem",componentId:"sc-eeg1mx-3"})(templateObject_4$m||(templateObject_4$m=__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),spacingL);var ChoiceLabelHost=_styled.span.withConfig({displayName:"PollUserInput__ChoiceLabelHost",componentId:"sc-eeg1mx-4"})(templateObject_5$l||(templateObject_5$l=__makeTemplateObject(["\n display: inline-block;\n ","\n ","\n"],["\n display: inline-block;\n ","\n ","\n"])),function(p){return p.isResultMode&&'max-width: 400px;';},function(p){return p.isResultMode&&'width: 100%;';});var ChoiceLabelSecondaryText=_styled.div.withConfig({displayName:"PollUserInput__ChoiceLabelSecondaryText",componentId:"sc-eeg1mx-5"})(templateObject_6$e||(templateObject_6$e=__makeTemplateObject(["\n opacity: 0.75;\n"],["\n opacity: 0.75;\n"])));var SingleChoiceLabel=_styled(ChoiceLabel).withConfig({displayName:"PollUserInput__SingleChoiceLabel",componentId:"sc-eeg1mx-6"})(templateObject_7$9||(templateObject_7$9=__makeTemplateObject(["\n padding-left: 30px;\n"],["\n padding-left: 30px;\n"])));var MultiChoiceLabel=_styled(ChoiceLabel).withConfig({displayName:"PollUserInput__MultiChoiceLabel",componentId:"sc-eeg1mx-7"})(templateObject_8$8||(templateObject_8$8=__makeTemplateObject(["\n padding-left: 5px;\n"],["\n padding-left: 5px;\n"])));var ChoiceInput=_styled(ChoiceGroup).withConfig({displayName:"PollUserInput__ChoiceInput",componentId:"sc-eeg1mx-8"})(templateObject_9$6||(templateObject_9$6=__makeTemplateObject(["\n .ms-ChoiceField-field,\n .ms-ChoiceField-wrapper {\n position: relative;\n flex: 1 1 auto;\n display: flex;\n }\n"],["\n .ms-ChoiceField-field,\n .ms-ChoiceField-wrapper {\n position: relative;\n flex: 1 1 auto;\n display: flex;\n }\n"])));var StyledCheckbox$1=_styled(Checkbox).withConfig({displayName:"PollUserInput__StyledCheckbox",componentId:"sc-eeg1mx-9"})(templateObject_10$5||(templateObject_10$5=__makeTemplateObject(["\n margin-top: 15px;\n .ms-Checkbox-label {\n display: flex;\n align-items: ",";\n flex: 1 1 auto;\n }\n"],["\n margin-top: 15px;\n .ms-Checkbox-label {\n display: flex;\n align-items: ",";\n flex: 1 1 auto;\n }\n"])),function(p){return p.isResultMode?'flex-start':'center';});var templateObject_1$1i,templateObject_2$M,templateObject_3$w,templateObject_4$m,templateObject_5$l,templateObject_6$e,templateObject_7$9,templateObject_8$8,templateObject_9$6,templateObject_10$5;var PollDisplay=function PollDisplay(_a){var children=_a.children,className=_a.className;var formatMessage=useIntl().formatMessage;return jsxs("section",__assign({className:className,"aria-label":formatMessage({id:'Polls.sectionLabel'}),"data-consumer-poll":true},{children:[jsx$1(PollUserInput,{},void 0),children]}),void 0);};var PollUserContextProvider=function PollUserContextProvider(_a){var _b;var item=_a.item,onBehalfOfUpn=_a.onBehalfOfUpn,resourceType=_a.resourceType,language=_a.language,getAdditionalQuestions=_a.getAdditionalQuestions,getAdditionalUserAnswers=_a.getAdditionalUserAnswers,getPollResults=_a.getPollResults,showResult=_a.showResult,children=_a.children;var poll=item.poll,itemId=item.id;var getFeedback=useFeedbackApi().getFeedback;var _c=useState$2(getAdditionalQuestions===null||getAdditionalQuestions===void 0?void 0:getAdditionalQuestions(null)),additionalQuestions=_c[0],setAdditionalQuestions=_c[1];var showError=useNotificationContext().showError;var questionDefinitions=(_b=poll===null||poll===void 0?void 0:poll.questions)!==null&&_b!==void 0?_b:[];var _d=usePromise$2(loadUserAnswers),userAnswers=_d[0],isLoading=_d[1],setUserAnswers=_d[3];var _e=useState$2([]),unsavedQuestionsIds=_e[0],setUnsavedQuestionsIds=_e[1];var _f=usePromise$2(function(){return getPollResults(itemId);},{answers:[]},[itemId]),pollResult=_f[0],isLoadingPollResult=_f[1],fetchPollResults=_f[5];useEffect$1(function(){var _a;if(isLoadingPollResult||!((_a=pollResult===null||pollResult===void 0?void 0:pollResult.answers)===null||_a===void 0?void 0:_a.length)){return;}getAdditionalQuestions&&setAdditionalQuestions(getAdditionalQuestions(pollResult));// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
131760
131760
|
},[pollResult,isLoadingPollResult]);// If the pollResult and the choice input is rendered with showResults
|
|
131761
131761
|
// at the same time, we miss the animation of the bars when they fill up
|
|
131762
131762
|
// Delay the pollResult a bit so the users sees the animation
|
|
@@ -131796,21 +131796,21 @@ result.items.forEach(function(page){var _a;var node=convertToNavigationNode(page
|
|
|
131796
131796
|
// we don't want to add the same node again, instead we just need to
|
|
131797
131797
|
// append the children of the node
|
|
131798
131798
|
// we also know then that we don't have to traverse the tree further up and can stop
|
|
131799
|
-
var existingNode=allNodesById[node.id];if(existingNode){if(existingNode.id===page.id){existingNode.isSearchMatch=true;}ensureChildren.apply(void 0,__spreadArray([existingNode],node.children||[]));break;}allNodesById[node.id]=node;if(!((_a=node.parent)===null||_a===void 0?void 0:_a.id)){break;}ensureChildren(node.parent,node);node=node.parent;}});onSearchResultChange(Object.values(allNodesById).filter(function(n){var _a;return !((_a=n.parent)===null||_a===void 0?void 0:_a.id);}));return [2/*return*/];}});});}function ensureChildren(parent){var _a;var children=[];for(var _i=1;_i<arguments.length;_i++){children[_i-1]=arguments[_i];}if(!parent.children){parent.children=[];}parent.children=parent.children.concat(children).sort(function(a,b){return a.position-b.position;});parent.firstChildId=(_a=parent.children[0])===null||_a===void 0?void 0:_a.id;}};var StyledSearchBox=_styled(SearchBox$1).withConfig({displayName:"PageTocSearch__StyledSearchBox",componentId:"sc-1enxv6b-0"})(templateObject_1$T||(templateObject_1$T=__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),spacingM);var templateObject_1$T;function filterChildren(page,activePage){if(!activePage){return true;}if(activePage.status===WorkflowStatus.deleted){return page.status===WorkflowStatus.deleted;}return page.status!==WorkflowStatus.deleted&&activePage.isUnlinked===page.isUnlinked;}var ExternalPagesLinkButton=function ExternalPagesLinkButton(_a){var item=_a.item,disabled=_a.disabled,onClick=_a.onClick,className=_a.className;var user=useCurrentUser();var preferredContentLanguage=getPreferredContentLanguage(user);var url=getExternalContentUrl(item,preferredContentLanguage);var formatMessage=useIntl().formatMessage;var createPageClickHandler=usePagesClickHandler().createPageClickHandler;if(!item.useExternalContent){return null;}var resourceKey="ExternalLinkButton.pages"+(!url?'.noUrl':'')+".navigateTo";return jsx$1(Tooltip,__assign({className:className,resourceKey:resourceKey,values:url?{url:url}:undefined,width:url?400:undefined},{children:jsx$1(StyledIconButton$4,{iconProps:{iconName:'NavigateExternalInline',styles:{root:{fontSize:fontSizeMedium+4+"px",height:fontSizeMedium+4+"px"}}},onClick:handleClick,disabled:disabled,"aria-label":formatMessage({id:resourceKey},url?{url:url}:undefined)},void 0)}),void 0);function handleClick(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){if(onClick){onClick(e);return [2/*return*/];}createPageClickHandler(item)(e);return [2/*return*/];});});}};var StyledIconButton$4=_styled(IconButton).withConfig({displayName:"ExternalPagesLinkButton__StyledIconButton",componentId:"sc-1n1ybv7-0"})(templateObject_1$S||(templateObject_1$S=__makeTemplateObject(["\n && {\n padding-left: 0;\n padding-right: 0;\n margin: 0;\n\n &[disabled] {\n background-color: transparent;\n }\n }\n"],["\n && {\n padding-left: 0;\n padding-right: 0;\n margin: 0;\n\n &[disabled] {\n background-color: transparent;\n }\n }\n"])));var templateObject_1$S;var PageNode=function PageNode(_a){var node=_a.node,activePage=_a.activePage,navigationContext=_a.navigationContext,loadChildren=_a.loadChildren,basePath=_a.basePath,path=_a.path,className=_a.className,isRootNode=_a.isRootNode,hide=_a.hide,onPageSelected=_a.onPageSelected,selectedPageId=_a.selectedPageId;var user=useCurrentUser();var formatMessage=useIntl().formatMessage;var createPageClickHandler=usePagesClickHandler().createPageClickHandler;var buildPath=useSubscriptionHandlePathBuilder().buildPath;var nodesContainNavigation=navigationContext==null;var _b=useState$2(null),lazyLoadedChildren=_b[0],setLazyLoadedChildren=_b[1];var children=lazyLoadedChildren||getChildren(node.id).filter(function(n){return filterChildren(n,activePage);});var _c=useState$2(undefined),forceShowChildren=_c[0],setForceShowChildren=_c[1];var showChildren=forceShowChildren||children&&forceShowChildren!==false&&(nodesContainNavigation||path.some(function(p){return p===node.id;})||(activePage===null||activePage===void 0?void 0:activePage.id)===node.id);var title=getTitle(node,user,formatMessage);var isSelectedPageNode=(activePage===null||activePage===void 0?void 0:activePage.id)===node.id||selectedPageId===node.id;var iconName=getIconName();var isExpanded=iconName==='ChevronDown';var isHighlighted=isSelectedPageNode||path.some(function(p){return p===node.id;});var appBasePath=basePath?buildPath(basePath):null;var isSearchMatch=node.isSearchMatch?'true':null;var isDocument=node.pageType===PageType.Document;var detailViewUrl=""+NewsService.getNewsRoute(appBasePath,node.id,title)+(node.useExternalContent?"?"+queryString.stringify({noRedirect:true}):'');return jsxs(Fragment,{children:[jsxs(NodeWrapper,__assign({isFirstLevel:isRootNode,hide:hide,className:className,isActive:isSelectedPageNode,"data-page-toc-node":true,"data-is-active":isSelectedPageNode},{children:[!!iconName?jsx$1(StyledIconButton$3,{iconProps:{iconName:iconName},onClick:function(){return __awaiter(void 0,void 0,void 0,function(){var _a;return __generator(this,function(_b){switch(_b.label){case 0:if(!!(children===null||children===void 0?void 0:children.length))return [3/*break*/,2];_a=setLazyLoadedChildren;return [4/*yield*/,loadChildren(node.id)];case 1:_a.apply(void 0,[_b.sent()]);_b.label=2;case 2:setForceShowChildren(!showChildren);return [2/*return*/];}});});},isHighlighted:isHighlighted,isExpanded:isExpanded,ariaLabel:formatMessage({id:isExpanded?'AriaLabel.hideChildren':'AriaLabel.seeChildren'}),"data-toc-node-toggle-children":node.id},void 0):jsx$1(StyledIcon$3$1,{isHighlighted:isHighlighted},void 0),basePath?jsx$1(NodeTitleLink,__assign({onClick:createPageClickHandler(node,basePath,function(){return onPageSelected===null||onPageSelected===void 0?void 0:onPageSelected(node.id);},true),to:detailViewUrl,bold:isSearchMatch,"data-toc-node-title":node.id},{children:title}),void 0):onPageSelected?jsx$1(NodeTitleButton,__assign({onClick:function(){return onPageSelected(node.id);},disabled:isDocument,bold:isSearchMatch,"data-toc-node-title":node.id},{children:title}),void 0):jsx$1(NodeTitle,__assign({bold:isSearchMatch,"data-toc-node-title":node.id},{children:title}),void 0),jsx$1(StyledExternalLinkButton,{item:node},void 0),jsx$1(StyledDocumentDownloadButton$1,{page:node,basePath:basePath},void 0)]}),void 0),children.length>0&&jsx$1(ChildrenList,__assign({hide:hide},{children:children.map(function(c){return jsx$1("li",{children:jsx$1(PageNode,{hide:!showChildren,basePath:basePath,node:c,activePage:activePage,navigationContext:navigationContext,loadChildren:loadChildren,path:path,isRootNode:false,onPageSelected:onPageSelected,selectedPageId:selectedPageId},void 0)},c.id);})}),void 0)]},void 0);function getIconName(){var _a;if(!nodesContainNavigation&&!node.firstChildId||nodesContainNavigation&&!((_a=node.children)===null||_a===void 0?void 0:_a.length)){return null;}if(showChildren){return 'ChevronDown';}return 'ChevronRight';}function getChildren(nodeId){if(nodesContainNavigation){return node.children||[];}if((activePage===null||activePage===void 0?void 0:activePage.id)===nodeId){return navigationContext.children||[];}var result=navigationContext.parent;while(result!=null&&result.id!==nodeId){result=result.parent;}return result?result.children:[];}};var NodeWrapper=_styled.div.withConfig({displayName:"PageTocNode__NodeWrapper",componentId:"sc-1ftr1ym-0"})(templateObject_3$o||(templateObject_3$o=__makeTemplateObject(["\n display: inline-flex;\n min-width: 240px; /* this value is very important for the ToC in Panel: icon + title + external page icon */\n margin-right: 4px;\n\n ","\n ",";\n\n ","\n\n padding: ","px;\n\n @media (min-width: ","px) {\n padding: 0;\n }\n"],["\n display: inline-flex;\n min-width: 240px; /* this value is very important for the ToC in Panel: icon + title + external page icon */\n margin-right: 4px;\n\n ","\n ",";\n\n ","\n\n padding: ","px;\n\n @media (min-width: ","px) {\n padding: 0;\n }\n"])),function(p){return p.hide&&'display: none;';},function(p){return !p.isFirstLevel&&css$2(templateObject_1$R||(templateObject_1$R=__makeTemplateObject(["\n padding-left: ","px;\n margin-top: ","px;\n "],["\n padding-left: ","px;\n margin-top: ","px;\n "])),spacingS,spacingS+5);},function(p){return p.isActive&&css$2(templateObject_2$x||(templateObject_2$x=__makeTemplateObject(["\n position: relative;\n font-weight: bold;\n\n &::before {\n content: '';\n position: absolute;\n left: -9999px;\n right: -9999px;\n top: -3px;\n bottom: -3px;\n display: block;\n background-color: ",";\n }\n "],["\n position: relative;\n font-weight: bold;\n\n &::before {\n content: '';\n position: absolute;\n left: -9999px;\n right: -9999px;\n top: -3px;\n bottom: -3px;\n display: block;\n background-color: ",";\n }\n "])),function(p){return p.theme.palette.neutralQuaternaryAlt;});},spacingXs,minScreenSize.small);var IconNormalSize=20;var IconLargeSize=26;var IconBubbleStyle=function IconBubbleStyle(isHighlighted){return css$2(templateObject_6$8||(templateObject_6$8=__makeTemplateObject(["\n ",";\n "],["\n ",";\n "])),isHighlighted?css$2(templateObject_4$f||(templateObject_4$f=__makeTemplateObject(["\n background: ",";\n color: ",";\n "],["\n background: ",";\n color: ",";\n "])),function(p){return p.theme.palette.accent;},function(p){return p.theme.palette.white;}):css$2(templateObject_5$e||(templateObject_5$e=__makeTemplateObject(["\n background: ",";\n color: ",";\n "],["\n background: ",";\n color: ",";\n "])),function(p){return p.theme.palette.neutralQuaternary;},function(p){return p.theme.palette.black;}));};var StyledIconButton$3=_styled(IconButton$1).withConfig({displayName:"PageTocNode__StyledIconButton",componentId:"sc-1ftr1ym-1"})(templateObject_8$5||(templateObject_8$5=__makeTemplateObject(["\n && {\n margin: 0;\n padding: 0;\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n\n &,\n i {\n width: ","px;\n height: ","px;\n }\n\n i {\n margin: 0;\n font-size: 14px;\n line-height: ","px;\n }\n\n &&,\n &&:hover,\n &&:active,\n &&:focus {\n ","\n\n ","\n }\n\n @media (min-width: ","px) {\n &,\n i {\n width: ","px;\n height: ","px;\n }\n\n i {\n font-size: 10px;\n line-height: ","px;\n }\n }\n }\n"],["\n && {\n margin: 0;\n padding: 0;\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n\n &,\n i {\n width: ","px;\n height: ","px;\n }\n\n i {\n margin: 0;\n font-size: 14px;\n line-height: ","px;\n }\n\n &&,\n &&:hover,\n &&:active,\n &&:focus {\n ","\n\n ","\n }\n\n @media (min-width: ","px) {\n &,\n i {\n width: ","px;\n height: ","px;\n }\n\n i {\n font-size: 10px;\n line-height: ","px;\n }\n }\n }\n"])),IconLargeSize,IconLargeSize,IconLargeSize,function(p){return p.isExpanded&&css$2(templateObject_7$5||(templateObject_7$5=__makeTemplateObject(["\n i {\n transform: translate(0, 1px);\n }\n "],["\n i {\n transform: translate(0, 1px);\n }\n "])));},function(p){return IconBubbleStyle(p.isHighlighted);},minScreenSize.small,IconNormalSize,IconNormalSize,IconNormalSize);var StyledIcon$3$1=_styled(Icon).withConfig({displayName:"PageTocNode__StyledIcon",componentId:"sc-1ftr1ym-2"})(templateObject_9$3||(templateObject_9$3=__makeTemplateObject(["\n width: ","px;\n min-width: ","px;\n height: ","px;\n border-radius: 50%;\n z-index: 1;\n\n @media (min-width: ","px) {\n & {\n width: ","px;\n min-width: ","px;\n height: ","px;\n }\n }\n\n ","\n"],["\n width: ","px;\n min-width: ","px;\n height: ","px;\n border-radius: 50%;\n z-index: 1;\n\n @media (min-width: ","px) {\n & {\n width: ","px;\n min-width: ","px;\n height: ","px;\n }\n }\n\n ","\n"])),IconLargeSize,IconLargeSize,IconLargeSize,minScreenSize.small,IconNormalSize,IconNormalSize,IconNormalSize,function(p){return IconBubbleStyle(p.isHighlighted);});var NodeTitleStyle=css$2(templateObject_11$1$1||(templateObject_11$1$1=__makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n margin-left: ","px;\n z-index: 1;\n && {\n font-size: ","px;\n color: ",";\n\n ","\n }\n\n @media (min-width: ","px) {\n && {\n font-size: ","px;\n }\n }\n"],["\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n margin-left: ","px;\n z-index: 1;\n && {\n font-size: ","px;\n color: ",";\n\n ","\n }\n\n @media (min-width: ","px) {\n && {\n font-size: ","px;\n }\n }\n"])),spacingM,fontSizeNormal,function(p){return p.theme.textColors.default;},function(p){return p.bold&&css$2(templateObject_10$2$1||(templateObject_10$2$1=__makeTemplateObject(["\n font-weight: bold;\n "],["\n font-weight: bold;\n "])));},minScreenSize.small,fontSizeSmall);var NodeTitleLink=_styled(NavLink).withConfig({displayName:"PageTocNode__NodeTitleLink",componentId:"sc-1ftr1ym-3"})(templateObject_12$1$1||(templateObject_12$1$1=__makeTemplateObject(["\n ",";\n\n && {\n color: ",";\n }\n"],["\n ",";\n\n && {\n color: ",";\n }\n"])),NodeTitleStyle,function(p){return p.theme.textColors.default;});var NodeTitleButton=_styled(ActionButton).withConfig({displayName:"PageTocNode__NodeTitleButton",componentId:"sc-1ftr1ym-4"})(templateObject_13$1$1||(templateObject_13$1$1=__makeTemplateObject(["\n padding: 0;\n height: auto;\n text-align: left;\n ",";\n\n &[disabled] {\n color: ",";\n }\n"],["\n padding: 0;\n height: auto;\n text-align: left;\n ",";\n\n &[disabled] {\n color: ",";\n }\n"])),NodeTitleStyle,function(p){return p.theme.palette.neutralQuaternary;});var NodeTitle=_styled.div.withConfig({displayName:"PageTocNode__NodeTitle",componentId:"sc-1ftr1ym-5"})(templateObject_14$1$1||(templateObject_14$1$1=__makeTemplateObject(["\n ",";\n"],["\n ",";\n"])),NodeTitleStyle);var ChildrenList=_styled.ul.withConfig({displayName:"PageTocNode__ChildrenList",componentId:"sc-1ftr1ym-6"})(templateObject_15$1$1||(templateObject_15$1$1=__makeTemplateObject(["\n list-style: none;\n margin: 0;\n padding: 0;\n\n ",";\n\n > li {\n padding-left: ","px;\n }\n"],["\n list-style: none;\n margin: 0;\n padding: 0;\n\n ",";\n\n > li {\n padding-left: ","px;\n }\n"])),function(p){return p.hide&&'display: none;';},spacingS);var StyledExternalLinkButton=_styled(ExternalPagesLinkButton).withConfig({displayName:"PageTocNode__StyledExternalLinkButton",componentId:"sc-1ftr1ym-7"})(templateObject_16$1$1||(templateObject_16$1$1=__makeTemplateObject(["\n display: flex;\n margin-left: ","px;\n height: ","px;\n\n @media (min-width: ","px) {\n height: ","px;\n }\n\n > button {\n height: auto;\n\n i {\n font-size: ","px;\n height: ","px;\n }\n }\n"],["\n display: flex;\n margin-left: ","px;\n height: ","px;\n\n @media (min-width: ","px) {\n height: ","px;\n }\n\n > button {\n height: auto;\n\n i {\n font-size: ","px;\n height: ","px;\n }\n }\n"])),spacingS,IconLargeSize,minScreenSize.small,IconNormalSize,IconNormalSize,IconNormalSize);var StyledDocumentDownloadButton$1=_styled(DocumentDownloadButton).withConfig({displayName:"PageTocNode__StyledDocumentDownloadButton",componentId:"sc-1ftr1ym-8"})(templateObject_17$1||(templateObject_17$1=__makeTemplateObject(["\n display: flex;\n height: ","px;\n margin-left: ","px;\n\n @media (min-width: ","px) {\n height: ","px;\n }\n\n > button {\n height: auto;\n\n i {\n line-height: ","px;\n height: ","px;\n }\n }\n"],["\n display: flex;\n height: ","px;\n margin-left: ","px;\n\n @media (min-width: ","px) {\n height: ","px;\n }\n\n > button {\n height: auto;\n\n i {\n line-height: ","px;\n height: ","px;\n }\n }\n"])),IconLargeSize,spacingS-5,minScreenSize.small,IconNormalSize,IconNormalSize,IconNormalSize);var templateObject_1$R,templateObject_2$x,templateObject_3$o,templateObject_4$f,templateObject_5$e,templateObject_6$8,templateObject_7$5,templateObject_8$5,templateObject_9$3,templateObject_10$2$1,templateObject_11$1$1,templateObject_12$1$1,templateObject_13$1$1,templateObject_14$1$1,templateObject_15$1$1,templateObject_16$1$1,templateObject_17$1;var PageTableOfContents$1=function PageTableOfContents(_a){var basePath=_a.basePath,navigationContext=_a.navigationContext,activePageId=_a.activePageId,loadChildren=_a.loadChildren,onSearch=_a.onSearch,onPageSelected=_a.onPageSelected,className=_a.className,selectedPageId=_a.selectedPageId,isLoading=_a.isLoading,disableScrollableList=_a.disableScrollableList;var user=useCurrentUser();var _b=getRootNodes(),rootNodes=_b.rootNodes,path=_b.path;var _c=useState$2(),searchResult=_c[0],setSearchResult=_c[1];if(isLoading){return jsx$1(Spinner,{},void 0);}if(!rootNodes||(rootNodes===null||rootNodes===void 0?void 0:rootNodes.length)===0){return jsx$1(FormattedMessageWithStyle,{id:"ContentEditor.parentPage.emptyToc",tagName:"div",className:className},void 0);}var activePage=activePageId&&navigationContext.siblings.find(function(p){return p.id===activePageId;});var nodesToDisplay=sortPageNodesByGroupAndPosition(user.groups,(searchResult||rootNodes).filter(function(p){return filterChildren(p,activePage);}));return jsx$1(Fragment,{children:jsxs("div",__assign({className:className},{children:[jsx$1("div",__assign({"data-toc-search-container":true},{children:jsx$1(PageTocSearch,{onSearch:onSearch,onSearchResultChange:setSearchResult},void 0)}),void 0),searchResult&&!searchResult.length&&jsx$1(TocEmptyList,{icon:"Search",emptyMessageResources:['EmptySearchResult.info']},void 0),nodesToDisplay&&jsx$1(TocListContainer,__assign({"data-toc-scrollable-container":true,isScrollable:!disableScrollableList},{children:jsx$1(TocList,{children:nodesToDisplay.map(function(c){return jsx$1(ToCItem,{children:jsx$1(PageNode,{basePath:basePath,node:c,activePage:activePage,navigationContext:searchResult?null:navigationContext,loadChildren:loadChildren,path:path,isRootNode:true,onPageSelected:onPageSelected,selectedPageId:selectedPageId},void 0)},c.id+!!searchResult);})},void 0)}),void 0)]}),void 0)},void 0);function getRootNodes(){if(!(navigationContext===null||navigationContext===void 0?void 0:navigationContext.parent)){return {rootNodes:(navigationContext===null||navigationContext===void 0?void 0:navigationContext.siblings)||[],path:[]};}var path=[];var currentParent=navigationContext.parent;while(currentParent!=null&¤tParent.parent!=null){path.push(currentParent.id);currentParent=currentParent.parent;}return {rootNodes:(currentParent===null||currentParent===void 0?void 0:currentParent.children)||[],path:path};}};var TocEmptyList=_styled(EmptyList).withConfig({displayName:"PageTableOfContents__TocEmptyList",componentId:"sc-3llzkd-0"})(templateObject_1$Q||(templateObject_1$Q=__makeTemplateObject(["\n i {\n padding-top: 0;\n font-size: ","px;\n }\n"],["\n i {\n padding-top: 0;\n font-size: ","px;\n }\n"])),fontSizeLarger+10);var TocListContainer=_styled.div.withConfig({displayName:"PageTableOfContents__TocListContainer",componentId:"sc-3llzkd-1"})(templateObject_3$n||(templateObject_3$n=__makeTemplateObject(["\n padding-top: ","px;\n\n ","\n"],["\n padding-top: ","px;\n\n ","\n"])),spacingXs,function(p){return p.isScrollable&&css$2(templateObject_2$w||(templateObject_2$w=__makeTemplateObject(["\n overflow-y: auto;\n overflow-x: hidden;\n height: calc(100% - 52px); /* full height - search box height */\n "],["\n overflow-y: auto;\n overflow-x: hidden;\n height: calc(100% - 52px); /* full height - search box height */\n "])));});var TocList=_styled.ul.withConfig({displayName:"PageTableOfContents__TocList",componentId:"sc-3llzkd-2"})(templateObject_4$e||(templateObject_4$e=__makeTemplateObject(["\n list-style: none;\n padding: 0;\n margin: 0;\n"],["\n list-style: none;\n padding: 0;\n margin: 0;\n"])));var ToCItem=_styled.li.withConfig({displayName:"PageTableOfContents__ToCItem",componentId:"sc-3llzkd-3"})(templateObject_5$d||(templateObject_5$d=__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),spacingM);_styled(PageTableOfContents$1).withConfig({displayName:"PageTableOfContents__StyledPageToC",componentId:"sc-3llzkd-4"})(templateObject_6$7||(templateObject_6$7=__makeTemplateObject(["\n height: 100%;\n\n [data-toc-scrollable-container] {\n overflow-x: auto;\n padding-left: ","px;\n /* ensure node titles are aligned with SearchBox input & Close button */\n /* if the title is too long, horizontal scrollbar is shown */\n margin-right: ","px;\n }\n\n [data-nothing-found],\n [data-toc-search-container] {\n padding: 0 ","px;\n box-sizing: border-box;\n }\n\n [data-page-toc-node] {\n &[data-is-active='true'] {\n &::before {\n left: -10px;\n right: -10px;\n }\n }\n }\n"],["\n height: 100%;\n\n [data-toc-scrollable-container] {\n overflow-x: auto;\n padding-left: ","px;\n /* ensure node titles are aligned with SearchBox input & Close button */\n /* if the title is too long, horizontal scrollbar is shown */\n margin-right: ","px;\n }\n\n [data-nothing-found],\n [data-toc-search-container] {\n padding: 0 ","px;\n box-sizing: border-box;\n }\n\n [data-page-toc-node] {\n &[data-is-active='true'] {\n &::before {\n left: -10px;\n right: -10px;\n }\n }\n }\n"])),spacingM,spacingM,spacingM);var templateObject_1$Q,templateObject_2$w,templateObject_3$n,templateObject_4$e,templateObject_5$d,templateObject_6$7;var PageTableOfContentsDialog=function PageTableOfContentsDialog(_a){var isOpen=_a.isOpen,navigationContext=_a.navigationContext,activePageId=_a.activePageId,loadChildren=_a.loadChildren,onSearch=_a.onSearch,onDismiss=_a.onDismiss,basePath=_a.basePath;var formatMessage=useIntl().formatMessage;if(!navigationContext){return null;}return jsx$1(MobileFullHeightDialog,__assign({hidden:!isOpen,modalProps:{className:'dialog-toc'},dialogContentProps:{type:DialogType.close},onDismiss:onDismiss,title:formatMessage({id:'Pages.pagesTableOfContents'})},{children:jsxs(DialogContent,__assign({className:"dialog-content-host","data-toc-dialog":true},{children:[jsx$1(DialogGlobalStyle,{},void 0),jsx$1(PageTableOfContents$1,{basePath:basePath,activePageId:activePageId,navigationContext:navigationContext,loadChildren:loadChildren,onSearch:onSearch,onPageSelected:onDismiss,disableScrollableList:true},void 0)]}),void 0)}),void 0);};var DialogContent=_styled.div.withConfig({displayName:"PageTableOfContentsDialog__DialogContent",componentId:"sc-z2sdu7-0"})(templateObject_1$P||(templateObject_1$P=__makeTemplateObject(["\n margin-top: 5px;\n\n @media (min-width: ","px) {\n width: 450px;\n }\n"],["\n margin-top: 5px;\n\n @media (min-width: ","px) {\n width: 450px;\n }\n"])),minScreenSize.small);var DialogGlobalStyle=createGlobalStyle(templateObject_2$v||(templateObject_2$v=__makeTemplateObject(["\n .dialog-toc {\n a {\n text-decoration: none;\n }\n\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .ms-Dialog-inner {\n overflow-x: hidden;\n }\n }\n"],["\n .dialog-toc {\n a {\n text-decoration: none;\n }\n\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .ms-Dialog-inner {\n overflow-x: hidden;\n }\n }\n"])),maxScreenSize.small);var templateObject_1$P,templateObject_2$v;function useLoadPublishedItemsByKeywords(keywords,showPagesAndDocuments,pageType){var searchPublishedPages=usePagesApi().searchPublishedPages;return function(pageSize,token){return searchPublishedPages({keywords:keywords,token:token,pageSize:pageSize,pageType:showPagesAndDocuments?undefined:pageType});};}var InlinePageListByKeywords=function InlinePageListByKeywords(_a){var keywords=_a.keywords,showDocuments=_a.showDocuments,showPages=_a.showPages;var buildPath=useSubscriptionHandlePathBuilder().buildPath;var showPagesAndDocuments=showPages&&showDocuments;var pageType=showPages?PageType.Page:PageType.Document;var defaultPageSize=10;var _b=useItemLoaderWithPreFetch(defaultPageSize,useLoadPublishedItemsByKeywords(keywords,showPagesAndDocuments,pageType),[keywords]),items=_b.items,pagingProps=__rest(_b,["items"]);return jsx$1(InlinePageListSkeleton,__assign({isDataLoaded:!pagingProps.isInitialLoading},{children:jsx$1(InlinePageListWithPaging,{pages:items,pagingProps:__assign(__assign({},pagingProps),{hideNextButton:pagingProps.isLastPage}),baseRoute:buildPath('pages'),filterBaseUrl:buildPath('/pages/search')},void 0)}),void 0);};function useLoadPublishedItemsByPageId(pageId,showPagesAndDocuments,pageType){var getSubpages=usePagesApi().getSubpages;try{return function(pageSize,token){return getSubpages(pageId,{pageType:showPagesAndDocuments?undefined:pageType,token:token,pageSize:pageSize});};}catch(error){logger.error(error);return null;}}var defaultPageSize$1=10;var InlinePageListByPageId=function InlinePageListByPageId(_a){var pageId=_a.pageId,showPages=_a.showPages,showDocuments=_a.showDocuments;var buildPath=useSubscriptionHandlePathBuilder().buildPath;var showSubpagesAndDocuments=showPages&&showDocuments;var pageType=showPages?PageType.Page:PageType.Document;var _b=useItemLoaderWithPreFetch(defaultPageSize$1,useLoadPublishedItemsByPageId(pageId,showSubpagesAndDocuments,pageType),[pageId]),items=_b.items,pagingProps=__rest(_b,["items"]);return jsx$1(InlinePageListSkeleton,__assign({isDataLoaded:!pagingProps.isInitialLoading},{children:jsx$1(InlinePageListWithPaging,{pages:items,pagingProps:__assign(__assign({},pagingProps),{hideNextButton:pagingProps.isLastPage}),baseRoute:buildPath('pages'),filterBaseUrl:buildPath('/pages/search')},void 0)}),void 0);};var defaultPageSize=10;// the inline page list should be auto-added on a page with no content
|
|
131799
|
+
var existingNode=allNodesById[node.id];if(existingNode){if(existingNode.id===page.id){existingNode.isSearchMatch=true;}ensureChildren.apply(void 0,__spreadArray([existingNode],node.children||[]));break;}allNodesById[node.id]=node;if(!((_a=node.parent)===null||_a===void 0?void 0:_a.id)){break;}ensureChildren(node.parent,node);node=node.parent;}});onSearchResultChange(Object.values(allNodesById).filter(function(n){var _a;return !((_a=n.parent)===null||_a===void 0?void 0:_a.id);}));return [2/*return*/];}});});}function ensureChildren(parent){var _a;var children=[];for(var _i=1;_i<arguments.length;_i++){children[_i-1]=arguments[_i];}if(!parent.children){parent.children=[];}parent.children=parent.children.concat(children).sort(function(a,b){return a.position-b.position;});parent.firstChildId=(_a=parent.children[0])===null||_a===void 0?void 0:_a.id;}};var StyledSearchBox=_styled(SearchBox$1).withConfig({displayName:"PageTocSearch__StyledSearchBox",componentId:"sc-1enxv6b-0"})(templateObject_1$T||(templateObject_1$T=__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),spacingM);var templateObject_1$T;function filterChildren(page,activePage){if(!activePage){return true;}if(activePage.status===WorkflowStatus.deleted){return page.status===WorkflowStatus.deleted;}return page.status!==WorkflowStatus.deleted&&activePage.isUnlinked===page.isUnlinked;}var ExternalPagesLinkButton=function ExternalPagesLinkButton(_a){var item=_a.item,disabled=_a.disabled,onClick=_a.onClick,className=_a.className;var user=useCurrentUser();var preferredContentLanguage=getPreferredContentLanguage(user);var url=getExternalContentUrl(item,preferredContentLanguage);var formatMessage=useIntl().formatMessage;var createPageClickHandler=usePagesClickHandler().createPageClickHandler;if(!item.useExternalContent){return null;}var resourceKey="ExternalLinkButton.pages"+(!url?'.noUrl':'')+".navigateTo";return jsx$1(Tooltip,__assign({className:className,resourceKey:resourceKey,values:url?{url:url}:undefined,width:url?400:undefined},{children:jsx$1(StyledIconButton$4,{iconProps:{iconName:'NavigateExternalInline',styles:{root:{fontSize:fontSizeMedium+4+"px",height:fontSizeMedium+4+"px"}}},onClick:handleClick,disabled:disabled,"aria-label":formatMessage({id:resourceKey},url?{url:url}:undefined)},void 0)}),void 0);function handleClick(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_a){if(onClick){onClick(e);return [2/*return*/];}createPageClickHandler(item)(e);return [2/*return*/];});});}};var StyledIconButton$4=_styled(IconButton).withConfig({displayName:"ExternalPagesLinkButton__StyledIconButton",componentId:"sc-1n1ybv7-0"})(templateObject_1$S||(templateObject_1$S=__makeTemplateObject(["\n && {\n padding-left: 0;\n padding-right: 0;\n margin: 0;\n\n &[disabled] {\n background-color: transparent;\n }\n }\n"],["\n && {\n padding-left: 0;\n padding-right: 0;\n margin: 0;\n\n &[disabled] {\n background-color: transparent;\n }\n }\n"])));var templateObject_1$S;var PageNode=function PageNode(_a){var node=_a.node,activePage=_a.activePage,navigationContext=_a.navigationContext,loadChildren=_a.loadChildren,basePath=_a.basePath,path=_a.path,className=_a.className,isRootNode=_a.isRootNode,hide=_a.hide,onPageSelected=_a.onPageSelected,selectedPageId=_a.selectedPageId;var user=useCurrentUser();var formatMessage=useIntl().formatMessage;var createPageClickHandler=usePagesClickHandler().createPageClickHandler;var buildPath=useSubscriptionHandlePathBuilder().buildPath;var nodesContainNavigation=navigationContext==null;var _b=useState$2(null),lazyLoadedChildren=_b[0],setLazyLoadedChildren=_b[1];var children=lazyLoadedChildren||getChildren(node.id).filter(function(n){return filterChildren(n,activePage);});var _c=useState$2(undefined),forceShowChildren=_c[0],setForceShowChildren=_c[1];var showChildren=forceShowChildren||children&&forceShowChildren!==false&&(nodesContainNavigation||path.some(function(p){return p===node.id;})||(activePage===null||activePage===void 0?void 0:activePage.id)===node.id);var title=getTitle(node,user,formatMessage);var isSelectedPageNode=(activePage===null||activePage===void 0?void 0:activePage.id)===node.id||selectedPageId===node.id;var iconName=getIconName();var isExpanded=iconName==='ChevronDown';var isHighlighted=isSelectedPageNode||path.some(function(p){return p===node.id;});var appBasePath=basePath?buildPath(basePath):null;var isSearchMatch=node.isSearchMatch?'true':null;var isDocument=node.pageType===PageType.Document;var detailViewUrl=""+NewsService.getNewsRoute(appBasePath,node.id,title)+(node.useExternalContent?"?"+queryString.stringify({noRedirect:true}):'');return jsxs(Fragment,{children:[jsxs(NodeWrapper,__assign({isFirstLevel:isRootNode,hide:hide,className:className,isActive:isSelectedPageNode,"data-page-toc-node":true,"data-is-active":isSelectedPageNode},{children:[!!iconName?jsx$1(StyledIconButton$3,{iconProps:{iconName:iconName},onClick:function(){return __awaiter(void 0,void 0,void 0,function(){var _a;return __generator(this,function(_b){switch(_b.label){case 0:if(!!(children===null||children===void 0?void 0:children.length))return [3/*break*/,2];_a=setLazyLoadedChildren;return [4/*yield*/,loadChildren(node.id)];case 1:_a.apply(void 0,[_b.sent()]);_b.label=2;case 2:setForceShowChildren(!showChildren);return [2/*return*/];}});});},isHighlighted:isHighlighted,isExpanded:isExpanded,ariaLabel:formatMessage({id:isExpanded?'AriaLabel.hideChildren':'AriaLabel.seeChildren'}),"data-toc-node-toggle-children":node.id},void 0):jsx$1(StyledIcon$3$1,{isHighlighted:isHighlighted},void 0),basePath?jsx$1(NodeTitleLink,__assign({onClick:createPageClickHandler(node,basePath,function(){return onPageSelected===null||onPageSelected===void 0?void 0:onPageSelected(node.id);},true),to:detailViewUrl,bold:isSearchMatch,"data-toc-node-title":node.id},{children:title}),void 0):onPageSelected?jsx$1(NodeTitleButton,__assign({onClick:function(){return onPageSelected(node.id);},disabled:isDocument,bold:isSearchMatch,"data-toc-node-title":node.id},{children:title}),void 0):jsx$1(NodeTitle,__assign({bold:isSearchMatch,"data-toc-node-title":node.id},{children:title}),void 0),jsx$1(StyledExternalLinkButton,{item:node},void 0),jsx$1(StyledDocumentDownloadButton$1,{page:node,basePath:basePath},void 0)]}),void 0),children.length>0&&jsx$1(ChildrenList,__assign({hide:hide},{children:children.map(function(c){return jsx$1("li",{children:jsx$1(PageNode,{hide:!showChildren,basePath:basePath,node:c,activePage:activePage,navigationContext:navigationContext,loadChildren:loadChildren,path:path,isRootNode:false,onPageSelected:onPageSelected,selectedPageId:selectedPageId},void 0)},c.id);})}),void 0)]},void 0);function getIconName(){var _a;if(!nodesContainNavigation&&!node.firstChildId||nodesContainNavigation&&!((_a=node.children)===null||_a===void 0?void 0:_a.length)){return null;}if(showChildren){return 'ChevronDown';}return 'ChevronRight';}function getChildren(nodeId){if(nodesContainNavigation){return node.children||[];}if((activePage===null||activePage===void 0?void 0:activePage.id)===nodeId){return navigationContext.children||[];}var result=navigationContext.parent;while(result!=null&&result.id!==nodeId){result=result.parent;}return result?result.children:[];}};var NodeWrapper=_styled.div.withConfig({displayName:"PageTocNode__NodeWrapper",componentId:"sc-1ftr1ym-0"})(templateObject_3$o||(templateObject_3$o=__makeTemplateObject(["\n display: inline-flex;\n min-width: 240px; /* this value is very important for the ToC in Panel: icon + title + external page icon */\n margin-right: 4px;\n\n ","\n ",";\n\n ","\n\n padding: ","px;\n\n @media (min-width: ","px) {\n padding: 0;\n }\n"],["\n display: inline-flex;\n min-width: 240px; /* this value is very important for the ToC in Panel: icon + title + external page icon */\n margin-right: 4px;\n\n ","\n ",";\n\n ","\n\n padding: ","px;\n\n @media (min-width: ","px) {\n padding: 0;\n }\n"])),function(p){return p.hide&&'display: none;';},function(p){return !p.isFirstLevel&&css$2(templateObject_1$R||(templateObject_1$R=__makeTemplateObject(["\n padding-left: ","px;\n margin-top: ","px;\n "],["\n padding-left: ","px;\n margin-top: ","px;\n "])),spacingS,spacingS+5);},function(p){return p.isActive&&css$2(templateObject_2$x||(templateObject_2$x=__makeTemplateObject(["\n position: relative;\n font-weight: bold;\n\n &::before {\n content: '';\n position: absolute;\n left: -9999px;\n right: -9999px;\n top: -3px;\n bottom: -3px;\n display: block;\n background-color: ",";\n }\n "],["\n position: relative;\n font-weight: bold;\n\n &::before {\n content: '';\n position: absolute;\n left: -9999px;\n right: -9999px;\n top: -3px;\n bottom: -3px;\n display: block;\n background-color: ",";\n }\n "])),function(p){return p.theme.palette.neutralQuaternaryAlt;});},spacingXs,minScreenSize.small);var IconNormalSize=20;var IconLargeSize=26;var IconBubbleStyle=function IconBubbleStyle(isHighlighted){return css$2(templateObject_6$8||(templateObject_6$8=__makeTemplateObject(["\n ",";\n "],["\n ",";\n "])),isHighlighted?css$2(templateObject_4$f||(templateObject_4$f=__makeTemplateObject(["\n background: ",";\n color: ",";\n "],["\n background: ",";\n color: ",";\n "])),function(p){return p.theme.palette.accent;},function(p){return p.theme.palette.white;}):css$2(templateObject_5$e||(templateObject_5$e=__makeTemplateObject(["\n background: ",";\n color: ",";\n "],["\n background: ",";\n color: ",";\n "])),function(p){return p.theme.palette.neutralQuaternary;},function(p){return p.theme.palette.black;}));};var StyledIconButton$3=_styled(IconButton$1).withConfig({displayName:"PageTocNode__StyledIconButton",componentId:"sc-1ftr1ym-1"})(templateObject_8$5||(templateObject_8$5=__makeTemplateObject(["\n && {\n margin: 0;\n padding: 0;\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n\n &,\n i {\n width: ","px;\n height: ","px;\n }\n\n i {\n margin: 0;\n font-size: 14px;\n line-height: ","px;\n }\n\n &&,\n &&:hover,\n &&:active,\n &&:focus {\n ","\n\n ","\n }\n\n @media (min-width: ","px) {\n &,\n i {\n width: ","px;\n height: ","px;\n }\n\n i {\n font-size: 10px;\n line-height: ","px;\n }\n }\n }\n"],["\n && {\n margin: 0;\n padding: 0;\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n\n &,\n i {\n width: ","px;\n height: ","px;\n }\n\n i {\n margin: 0;\n font-size: 14px;\n line-height: ","px;\n }\n\n &&,\n &&:hover,\n &&:active,\n &&:focus {\n ","\n\n ","\n }\n\n @media (min-width: ","px) {\n &,\n i {\n width: ","px;\n height: ","px;\n }\n\n i {\n font-size: 10px;\n line-height: ","px;\n }\n }\n }\n"])),IconLargeSize,IconLargeSize,IconLargeSize,function(p){return p.isExpanded&&css$2(templateObject_7$5||(templateObject_7$5=__makeTemplateObject(["\n i {\n transform: translate(0, 1px);\n }\n "],["\n i {\n transform: translate(0, 1px);\n }\n "])));},function(p){return IconBubbleStyle(p.isHighlighted);},minScreenSize.small,IconNormalSize,IconNormalSize,IconNormalSize);var StyledIcon$3$1=_styled(Icon).withConfig({displayName:"PageTocNode__StyledIcon",componentId:"sc-1ftr1ym-2"})(templateObject_9$3||(templateObject_9$3=__makeTemplateObject(["\n width: ","px;\n min-width: ","px;\n height: ","px;\n border-radius: 50%;\n z-index: 1;\n\n @media (min-width: ","px) {\n & {\n width: ","px;\n min-width: ","px;\n height: ","px;\n }\n }\n\n ","\n"],["\n width: ","px;\n min-width: ","px;\n height: ","px;\n border-radius: 50%;\n z-index: 1;\n\n @media (min-width: ","px) {\n & {\n width: ","px;\n min-width: ","px;\n height: ","px;\n }\n }\n\n ","\n"])),IconLargeSize,IconLargeSize,IconLargeSize,minScreenSize.small,IconNormalSize,IconNormalSize,IconNormalSize,function(p){return IconBubbleStyle(p.isHighlighted);});var NodeTitleStyle=css$2(templateObject_11$1$1||(templateObject_11$1$1=__makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n margin-left: ","px;\n z-index: 1;\n && {\n font-size: ","px;\n color: ",";\n\n ","\n }\n\n @media (min-width: ","px) {\n && {\n font-size: ","px;\n }\n }\n"],["\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n margin-left: ","px;\n z-index: 1;\n && {\n font-size: ","px;\n color: ",";\n\n ","\n }\n\n @media (min-width: ","px) {\n && {\n font-size: ","px;\n }\n }\n"])),spacingM,fontSizeNormal,function(p){return p.theme.textColors.default;},function(p){return p.bold&&css$2(templateObject_10$2$1||(templateObject_10$2$1=__makeTemplateObject(["\n font-weight: bold;\n "],["\n font-weight: bold;\n "])));},minScreenSize.small,fontSizeSmall);var NodeTitleLink=_styled(NavLink).withConfig({displayName:"PageTocNode__NodeTitleLink",componentId:"sc-1ftr1ym-3"})(templateObject_12$1$1||(templateObject_12$1$1=__makeTemplateObject(["\n ",";\n\n && {\n color: ",";\n }\n"],["\n ",";\n\n && {\n color: ",";\n }\n"])),NodeTitleStyle,function(p){return p.theme.textColors.default;});var NodeTitleButton=_styled(ActionButton).withConfig({displayName:"PageTocNode__NodeTitleButton",componentId:"sc-1ftr1ym-4"})(templateObject_13$1$1||(templateObject_13$1$1=__makeTemplateObject(["\n padding: 0;\n height: auto;\n text-align: left;\n ",";\n\n &[disabled] {\n color: ",";\n }\n"],["\n padding: 0;\n height: auto;\n text-align: left;\n ",";\n\n &[disabled] {\n color: ",";\n }\n"])),NodeTitleStyle,function(p){return p.theme.palette.neutralQuaternary;});var NodeTitle=_styled.div.withConfig({displayName:"PageTocNode__NodeTitle",componentId:"sc-1ftr1ym-5"})(templateObject_14$1$1||(templateObject_14$1$1=__makeTemplateObject(["\n ",";\n"],["\n ",";\n"])),NodeTitleStyle);var ChildrenList=_styled.ul.withConfig({displayName:"PageTocNode__ChildrenList",componentId:"sc-1ftr1ym-6"})(templateObject_15$1$1||(templateObject_15$1$1=__makeTemplateObject(["\n list-style: none;\n margin: 0;\n padding: 0;\n\n ",";\n\n > li {\n padding-left: ","px;\n }\n"],["\n list-style: none;\n margin: 0;\n padding: 0;\n\n ",";\n\n > li {\n padding-left: ","px;\n }\n"])),function(p){return p.hide&&'display: none;';},spacingS);var StyledExternalLinkButton=_styled(ExternalPagesLinkButton).withConfig({displayName:"PageTocNode__StyledExternalLinkButton",componentId:"sc-1ftr1ym-7"})(templateObject_16$1$1||(templateObject_16$1$1=__makeTemplateObject(["\n display: flex;\n margin-left: ","px;\n height: ","px;\n\n @media (min-width: ","px) {\n height: ","px;\n }\n\n > button {\n height: auto;\n\n i {\n font-size: ","px;\n height: ","px;\n }\n }\n"],["\n display: flex;\n margin-left: ","px;\n height: ","px;\n\n @media (min-width: ","px) {\n height: ","px;\n }\n\n > button {\n height: auto;\n\n i {\n font-size: ","px;\n height: ","px;\n }\n }\n"])),spacingS,IconLargeSize,minScreenSize.small,IconNormalSize,IconNormalSize,IconNormalSize);var StyledDocumentDownloadButton$1=_styled(DocumentDownloadButton).withConfig({displayName:"PageTocNode__StyledDocumentDownloadButton",componentId:"sc-1ftr1ym-8"})(templateObject_17$1||(templateObject_17$1=__makeTemplateObject(["\n display: flex;\n height: ","px;\n margin-left: ","px;\n\n @media (min-width: ","px) {\n height: ","px;\n }\n\n > button {\n height: auto;\n\n i {\n line-height: ","px;\n height: ","px;\n }\n }\n"],["\n display: flex;\n height: ","px;\n margin-left: ","px;\n\n @media (min-width: ","px) {\n height: ","px;\n }\n\n > button {\n height: auto;\n\n i {\n line-height: ","px;\n height: ","px;\n }\n }\n"])),IconLargeSize,spacingS-5,minScreenSize.small,IconNormalSize,IconNormalSize,IconNormalSize);var templateObject_1$R,templateObject_2$x,templateObject_3$o,templateObject_4$f,templateObject_5$e,templateObject_6$8,templateObject_7$5,templateObject_8$5,templateObject_9$3,templateObject_10$2$1,templateObject_11$1$1,templateObject_12$1$1,templateObject_13$1$1,templateObject_14$1$1,templateObject_15$1$1,templateObject_16$1$1,templateObject_17$1;var PageTableOfContents$1=function PageTableOfContents(_a){var basePath=_a.basePath,navigationContext=_a.navigationContext,activePageId=_a.activePageId,loadChildren=_a.loadChildren,onSearch=_a.onSearch,onPageSelected=_a.onPageSelected,className=_a.className,selectedPageId=_a.selectedPageId,isLoading=_a.isLoading,disableScrollableList=_a.disableScrollableList;var user=useCurrentUser();var _b=getRootNodes(),rootNodes=_b.rootNodes,path=_b.path;var _c=useState$2(),searchResult=_c[0],setSearchResult=_c[1];if(isLoading){return jsx$1(Spinner,{},void 0);}if(!rootNodes||(rootNodes===null||rootNodes===void 0?void 0:rootNodes.length)===0){return jsx$1(FormattedMessageWithStyle,{id:"ContentEditor.parentPage.emptyToc",tagName:"div",className:className},void 0);}var activePage=activePageId&&navigationContext.siblings.find(function(p){return p.id===activePageId;});var nodesToDisplay=sortPageNodesByGroupAndPosition(user.groups,(searchResult||rootNodes).filter(function(p){return filterChildren(p,activePage);}));return jsx$1(Fragment,{children:jsxs("div",__assign({className:className},{children:[jsx$1("div",__assign({"data-toc-search-container":true},{children:jsx$1(PageTocSearch,{onSearch:onSearch,onSearchResultChange:setSearchResult},void 0)}),void 0),searchResult&&!searchResult.length&&jsx$1(TocEmptyList,{icon:"Search",emptyMessageResources:['EmptySearchResult.info']},void 0),nodesToDisplay&&jsx$1(TocListContainer,__assign({"data-toc-scrollable-container":true,isScrollable:!disableScrollableList},{children:jsx$1(TocList,{children:nodesToDisplay.map(function(c){return jsx$1(ToCItem,{children:jsx$1(PageNode,{basePath:basePath,node:c,activePage:activePage,navigationContext:searchResult?null:navigationContext,loadChildren:loadChildren,path:path,isRootNode:true,onPageSelected:onPageSelected,selectedPageId:selectedPageId},void 0)},c.id+!!searchResult);})},void 0)}),void 0)]}),void 0)},void 0);function getRootNodes(){if(!(navigationContext===null||navigationContext===void 0?void 0:navigationContext.parent)){return {rootNodes:(navigationContext===null||navigationContext===void 0?void 0:navigationContext.siblings)||[],path:[]};}var path=[];var currentParent=navigationContext.parent;while(currentParent!=null&¤tParent.parent!=null){path.push(currentParent.id);currentParent=currentParent.parent;}return {rootNodes:(currentParent===null||currentParent===void 0?void 0:currentParent.children)||[],path:path};}};var TocEmptyList=_styled(EmptyList).withConfig({displayName:"PageTableOfContents__TocEmptyList",componentId:"sc-3llzkd-0"})(templateObject_1$Q||(templateObject_1$Q=__makeTemplateObject(["\n i {\n padding-top: 0;\n font-size: ","px;\n }\n"],["\n i {\n padding-top: 0;\n font-size: ","px;\n }\n"])),fontSizeLarger+10);var TocListContainer=_styled.div.withConfig({displayName:"PageTableOfContents__TocListContainer",componentId:"sc-3llzkd-1"})(templateObject_3$n||(templateObject_3$n=__makeTemplateObject(["\n padding-top: ","px;\n\n ","\n"],["\n padding-top: ","px;\n\n ","\n"])),spacingXs,function(p){return p.isScrollable&&css$2(templateObject_2$w||(templateObject_2$w=__makeTemplateObject(["\n overflow-y: auto;\n overflow-x: hidden;\n height: calc(100% - 52px); /* full height - search box height */\n "],["\n overflow-y: auto;\n overflow-x: hidden;\n height: calc(100% - 52px); /* full height - search box height */\n "])));});var TocList=_styled.ul.withConfig({displayName:"PageTableOfContents__TocList",componentId:"sc-3llzkd-2"})(templateObject_4$e||(templateObject_4$e=__makeTemplateObject(["\n list-style: none;\n padding: 0;\n margin: 0;\n"],["\n list-style: none;\n padding: 0;\n margin: 0;\n"])));var ToCItem=_styled.li.withConfig({displayName:"PageTableOfContents__ToCItem",componentId:"sc-3llzkd-3"})(templateObject_5$d||(templateObject_5$d=__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),spacingM);_styled(PageTableOfContents$1).withConfig({displayName:"PageTableOfContents__StyledPageToC",componentId:"sc-3llzkd-4"})(templateObject_6$7$1||(templateObject_6$7$1=__makeTemplateObject(["\n height: 100%;\n\n [data-toc-scrollable-container] {\n overflow-x: auto;\n padding-left: ","px;\n /* ensure node titles are aligned with SearchBox input & Close button */\n /* if the title is too long, horizontal scrollbar is shown */\n margin-right: ","px;\n }\n\n [data-nothing-found],\n [data-toc-search-container] {\n padding: 0 ","px;\n box-sizing: border-box;\n }\n\n [data-page-toc-node] {\n &[data-is-active='true'] {\n &::before {\n left: -10px;\n right: -10px;\n }\n }\n }\n"],["\n height: 100%;\n\n [data-toc-scrollable-container] {\n overflow-x: auto;\n padding-left: ","px;\n /* ensure node titles are aligned with SearchBox input & Close button */\n /* if the title is too long, horizontal scrollbar is shown */\n margin-right: ","px;\n }\n\n [data-nothing-found],\n [data-toc-search-container] {\n padding: 0 ","px;\n box-sizing: border-box;\n }\n\n [data-page-toc-node] {\n &[data-is-active='true'] {\n &::before {\n left: -10px;\n right: -10px;\n }\n }\n }\n"])),spacingM,spacingM,spacingM);var templateObject_1$Q,templateObject_2$w,templateObject_3$n,templateObject_4$e,templateObject_5$d,templateObject_6$7$1;var PageTableOfContentsDialog=function PageTableOfContentsDialog(_a){var isOpen=_a.isOpen,navigationContext=_a.navigationContext,activePageId=_a.activePageId,loadChildren=_a.loadChildren,onSearch=_a.onSearch,onDismiss=_a.onDismiss,basePath=_a.basePath;var formatMessage=useIntl().formatMessage;if(!navigationContext){return null;}return jsx$1(MobileFullHeightDialog,__assign({hidden:!isOpen,modalProps:{className:'dialog-toc'},dialogContentProps:{type:DialogType.close},onDismiss:onDismiss,title:formatMessage({id:'Pages.pagesTableOfContents'})},{children:jsxs(DialogContent,__assign({className:"dialog-content-host","data-toc-dialog":true},{children:[jsx$1(DialogGlobalStyle,{},void 0),jsx$1(PageTableOfContents$1,{basePath:basePath,activePageId:activePageId,navigationContext:navigationContext,loadChildren:loadChildren,onSearch:onSearch,onPageSelected:onDismiss,disableScrollableList:true},void 0)]}),void 0)}),void 0);};var DialogContent=_styled.div.withConfig({displayName:"PageTableOfContentsDialog__DialogContent",componentId:"sc-z2sdu7-0"})(templateObject_1$P||(templateObject_1$P=__makeTemplateObject(["\n margin-top: 5px;\n\n @media (min-width: ","px) {\n width: 450px;\n }\n"],["\n margin-top: 5px;\n\n @media (min-width: ","px) {\n width: 450px;\n }\n"])),minScreenSize.small);var DialogGlobalStyle=createGlobalStyle(templateObject_2$v||(templateObject_2$v=__makeTemplateObject(["\n .dialog-toc {\n a {\n text-decoration: none;\n }\n\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .ms-Dialog-inner {\n overflow-x: hidden;\n }\n }\n"],["\n .dialog-toc {\n a {\n text-decoration: none;\n }\n\n .ms-Dialog-main {\n @media (max-width: ","px) {\n width: 100% !important;\n }\n }\n\n .ms-Dialog-inner {\n overflow-x: hidden;\n }\n }\n"])),maxScreenSize.small);var templateObject_1$P,templateObject_2$v;function useLoadPublishedItemsByKeywords(keywords,showPagesAndDocuments,pageType){var searchPublishedPages=usePagesApi().searchPublishedPages;return function(pageSize,token){return searchPublishedPages({keywords:keywords,token:token,pageSize:pageSize,pageType:showPagesAndDocuments?undefined:pageType});};}var InlinePageListByKeywords=function InlinePageListByKeywords(_a){var keywords=_a.keywords,showDocuments=_a.showDocuments,showPages=_a.showPages;var buildPath=useSubscriptionHandlePathBuilder().buildPath;var showPagesAndDocuments=showPages&&showDocuments;var pageType=showPages?PageType.Page:PageType.Document;var defaultPageSize=10;var _b=useItemLoaderWithPreFetch(defaultPageSize,useLoadPublishedItemsByKeywords(keywords,showPagesAndDocuments,pageType),[keywords]),items=_b.items,pagingProps=__rest(_b,["items"]);return jsx$1(InlinePageListSkeleton,__assign({isDataLoaded:!pagingProps.isInitialLoading},{children:jsx$1(InlinePageListWithPaging,{pages:items,pagingProps:__assign(__assign({},pagingProps),{hideNextButton:pagingProps.isLastPage}),baseRoute:buildPath('pages'),filterBaseUrl:buildPath('/pages/search')},void 0)}),void 0);};function useLoadPublishedItemsByPageId(pageId,showPagesAndDocuments,pageType){var getSubpages=usePagesApi().getSubpages;try{return function(pageSize,token){return getSubpages(pageId,{pageType:showPagesAndDocuments?undefined:pageType,token:token,pageSize:pageSize});};}catch(error){logger.error(error);return null;}}var defaultPageSize$1=10;var InlinePageListByPageId=function InlinePageListByPageId(_a){var pageId=_a.pageId,showPages=_a.showPages,showDocuments=_a.showDocuments;var buildPath=useSubscriptionHandlePathBuilder().buildPath;var showSubpagesAndDocuments=showPages&&showDocuments;var pageType=showPages?PageType.Page:PageType.Document;var _b=useItemLoaderWithPreFetch(defaultPageSize$1,useLoadPublishedItemsByPageId(pageId,showSubpagesAndDocuments,pageType),[pageId]),items=_b.items,pagingProps=__rest(_b,["items"]);return jsx$1(InlinePageListSkeleton,__assign({isDataLoaded:!pagingProps.isInitialLoading},{children:jsx$1(InlinePageListWithPaging,{pages:items,pagingProps:__assign(__assign({},pagingProps),{hideNextButton:pagingProps.isLastPage}),baseRoute:buildPath('pages'),filterBaseUrl:buildPath('/pages/search')},void 0)}),void 0);};var defaultPageSize=10;// the inline page list should be auto-added on a page with no content
|
|
131800
131800
|
// by default pages and documents should be shown
|
|
131801
131801
|
// for this case the blockProps would be an empty object and
|
|
131802
131802
|
// we need to set the showPages and showDocuments to true
|
|
131803
131803
|
var InlinePageListByCurrentPage=function InlinePageListByCurrentPage(_a){var _b=_a.blockProps,props=_b===void 0?{showDocuments:true,showPages:true}:_b;var item=useDetailViewContext().item;var getSubpages=usePagesApi().getSubpages;var buildPath=useSubscriptionHandlePathBuilder().buildPath;var _c=useItemLoaderByCurrentPage(item.id,defaultPageSize,item.navigationContext,{showPages:props.showPages,showDocuments:props.showDocuments},getAllSubItems,[item===null||item===void 0?void 0:item.id]),items=_c.pageItems,pagingProps=_c.pagingProps;if(items.length===0){return null;}return jsx$1(InlinePageListWithPaging,{pages:items,pagingProps:pagingProps,baseRoute:buildPath('pages'),filterBaseUrl:buildPath('/pages/search')},void 0);function getAllSubItems(id,pageType){return __awaiter(this,void 0,void 0,function(){var result;return __generator(this,function(_a){switch(_a.label){case 0:return [4/*yield*/,getSubpages(id,{pageType:pageType})];case 1:result=_a.sent();return [2/*return*/,result.items];}});});}};var InlinePageList=function InlinePageList(_a){var blockProps=_a.blockProps;if(blockProps===null||blockProps===void 0?void 0:blockProps.keywords){return jsx$1(InlinePageListByKeywords,{keywords:blockProps.keywords,showPages:blockProps.showPages,showDocuments:blockProps.showDocuments},void 0);}if(blockProps===null||blockProps===void 0?void 0:blockProps.pageId){return jsx$1(InlinePageListByPageId,{pageId:blockProps.pageId,showPages:blockProps.showPages,showDocuments:blockProps.showDocuments},void 0);}return jsx$1(InlinePageListByCurrentPage,{blockProps:blockProps},void 0);};var InlinePageListMapper={component:InlinePageList,type:EntityType.InlinePageList,getPropsFromHtml:function(nodeName,node){if(nodeName!=='div'){return null;}var pageListId=node.getAttribute('data-page-list-id');if(pageListId==null){return null;}var showChildren=node.getAttribute('data-show-children')==='true';var showDocumentsAttribute=node.getAttribute('data-show-documents');var showPagesAttribute=node.getAttribute('data-show-pages');var pageId=node.getAttribute('data-page-id');var keywords=node.getAttribute('data-keywords');if(!showDocumentsAttribute&&!showPagesAttribute){// ensure backwards compatibility
|
|
131804
|
-
return {id:pageListId,showChildren:showChildren,showPages:true,showDocuments:false,pageId:pageId,keywords:keywords};}var showDocuments=showDocumentsAttribute==='true';var showPages=showPagesAttribute==='true';return {id:pageListId,showChildren:showChildren,showDocuments:showDocuments,showPages:showPages,pageId:pageId,keywords:keywords};}};var PageBreadcrumb=function PageBreadcrumb(_a){var page=_a.page,target=_a.target,languageOverride=_a.language,hideCurrentPageNode=_a.hideCurrentPageNode,className=_a.className;var user=useCurrentUser();var formatMessage=useIntl().formatMessage;var history=useHistory();if(!page||!page.navigationContext){return null;}var _b=getBreadcrumbsItems(page,target,handleOnClick,function(page){return getTitle(page,user,formatMessage,languageOverride);},formatMessage,hideCurrentPageNode),parentNode=_b.parentNode,breadcrumbItems=_b.breadcrumbItems;return jsxs("div",__assign({className:className},{children:[jsx$1(LargeScreenBreadcrumb,{items:breadcrumbItems,onRenderItem:renderBreadcrumbItem,overflowIndex:1,"data-breadcrumb":true,overflowAriaLabel:formatMessage({id:'AriaLabel.otherPages'}),focusZoneProps:{handleTabKey:1}},void 0),jsx$1(MobileBreadcrumb,{target:target,parentNode:parentNode},void 0)]}),void 0);function renderBreadcrumbItem(item){if(item.key==='home'){return jsx$1(BreadcrumbHomeItem,__assign({to:item.href,"aria-label":item.text,"data-pages-home-icon":true},{children:jsx$1(HomeIcon,{iconName:"HomeSolid"},void 0)}),void 0);}if(item.isCurrentItem){return jsx$1(BreadcrumbCurrentItem,__assign({"aria-current":"page"},{children:item.text}),void 0);}return jsx$1(BreadcrumbItem,__assign({to:item.href,"data-page-breadcrumb-node":item.key},{children:item.text}),void 0);}function handleOnClick(e,item){e.stopPropagation();e.preventDefault();history.push({pathname:item.href});}};var MobileBreadcrumb=function MobileBreadcrumb(_a){var target=_a.target,parentNode=_a.parentNode;var formatMessage=useIntl().formatMessage;return jsxs(MobileBreadcrumbHost,__assign({"data-mobile-breadcrumb":true},{children:[jsx$1("li",{children:jsx$1(BreadcrumbHomeItem,__assign({to:target,"aria-label":formatMessage({id:'Generic.home'}),"data-pages-home-icon":true},{children:jsx$1(HomeIcon,{iconName:"HomeSolid"},void 0)}),void 0)},void 0),parentNode&&jsxs(ParentNode,{children:[jsx$1(LeftChevronIcon,{iconName:"ChevronLeft"},void 0),jsx$1(BreadcrumbItem,__assign({to:NewsService.getNewsRoute(target,parentNode.id,parentNode.title),"data-page-breadcrumb-parent-node":parentNode.id},{children:parentNode.title}),void 0)]},void 0)]}),void 0);};var MobileBreadcrumbHost=_styled.ul.withConfig({displayName:"PageBreadcrumb__MobileBreadcrumbHost",componentId:"sc-1m4qq1d-0"})(templateObject_1$O||(templateObject_1$O=__makeTemplateObject(["\n display: none;\n align-items: center;\n padding: 0;\n margin: 0;\n list-style: none;\n font-size: ","px;\n\n @media (max-width: ","px) {\n display: flex;\n }\n"],["\n display: none;\n align-items: center;\n padding: 0;\n margin: 0;\n list-style: none;\n font-size: ","px;\n\n @media (max-width: ","px) {\n display: flex;\n }\n"])),fontSizeSmall,maxScreenSize.medium);var ParentNode=_styled.li.withConfig({displayName:"PageBreadcrumb__ParentNode",componentId:"sc-1m4qq1d-1"})(templateObject_2$u||(templateObject_2$u=__makeTemplateObject(["\n margin: 0 ","px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n color: ",";\n"],["\n margin: 0 ","px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n color: ",";\n"])),spacingM,function(p){return p.theme.palette.accent;});var LeftChevronIcon=_styled(Icon).withConfig({displayName:"PageBreadcrumb__LeftChevronIcon",componentId:"sc-1m4qq1d-2"})(templateObject_3$m||(templateObject_3$m=__makeTemplateObject(["\n font-size: 10px;\n font-weight: bold;\n color: ",";\n"],["\n font-size: 10px;\n font-weight: bold;\n color: ",";\n"])),function(p){return p.theme.palette.accent;});var LargeScreenBreadcrumb=_styled(Breadcrumb).withConfig({displayName:"PageBreadcrumb__LargeScreenBreadcrumb",componentId:"sc-1m4qq1d-3"})(templateObject_4$d||(templateObject_4$d=__makeTemplateObject(["\n && {\n margin: 0;\n }\n\n .ms-Breadcrumb-chevron {\n font-weight: bold;\n }\n\n @media (max-width: ","px) {\n display: none;\n }\n"],["\n && {\n margin: 0;\n }\n\n .ms-Breadcrumb-chevron {\n font-weight: bold;\n }\n\n @media (max-width: ","px) {\n display: none;\n }\n"])),maxScreenSize.medium);var HomeIcon=_styled(Icon).withConfig({displayName:"PageBreadcrumb__HomeIcon",componentId:"sc-1m4qq1d-4"})(templateObject_5$c||(templateObject_5$c=__makeTemplateObject(["\n padding-top: 1px;\n"],["\n padding-top: 1px;\n"])));var BreadcrumbItem=_styled(NavLink).withConfig({displayName:"PageBreadcrumb__BreadcrumbItem",componentId:"sc-1m4qq1d-5"})(templateObject_6$6||(templateObject_6$6=__makeTemplateObject(["\n padding: 0 ","px;\n color: ",";\n"],["\n padding: 0 ","px;\n color: ",";\n"])),spacingS,function(p){return p.theme.palette.accent;});var BreadcrumbHomeItem=_styled(NavLink).withConfig({displayName:"PageBreadcrumb__BreadcrumbHomeItem",componentId:"sc-1m4qq1d-6"})(templateObject_7$4$1||(templateObject_7$4$1=__makeTemplateObject(["\n color: ",";\n\n + i {\n padding-left: ","px;\n }\n"],["\n color: ",";\n\n + i {\n padding-left: ","px;\n }\n"])),function(p){return p.theme.palette.accent;},spacingS);var BreadcrumbCurrentItem=_styled.div.withConfig({displayName:"PageBreadcrumb__BreadcrumbCurrentItem",componentId:"sc-1m4qq1d-7"})(templateObject_8$4$1||(templateObject_8$4$1=__makeTemplateObject(["\n padding-left: ","px;\n color: ",";\n"],["\n padding-left: ","px;\n color: ",";\n"])),spacingS,function(p){return p.theme.palette.neutralSecondaryAlt;});var templateObject_1$O,templateObject_2$u,templateObject_3$m,templateObject_4$d,templateObject_5$c,templateObject_6$6,templateObject_7$4$1,templateObject_8$4$1;var DetailViewPageDocumentDownload=function DetailViewPageDocumentDownload(){var user=useCurrentUser();var _a=useDetailViewContext(),item=_a.item,preferredContent=_a.content;if(!item){return null;}var content=(preferredContent===null||preferredContent===void 0?void 0:preferredContent.fileInfo)?preferredContent:getContentForPage(item,user).content;if(!(content===null||content===void 0?void 0:content.fileInfo)){return null;}return jsx$1(PageDocumentDownloadButton,{item:item,content:content},void 0);};var PageDocumentDownloadButton=function PageDocumentDownloadButton(_a){var item=_a.item,content=_a.content,basePath=_a.basePath;var _b=useInlinePageDocument({pageId:item.id,fileId:content.fileInfo.fileId,extension:content.fileInfo.extension,title:content.title,fileName:content.fileInfo.fileName},item,basePath),fileUrl=_b.fileUrl,iconName=_b.iconName,title=_b.title,fileName=_b.fileName,onPageDocumentDownloadClick=_b.onPageDocumentDownloadClick;return jsxs(Host$i,{children:[jsx$1(FormattedMessage$1,{id:"Pages.documents.buttonDownloadInfo"},void 0),jsx$1(DownloadButton,{fileUrl:fileUrl,fileName:fileName,title:title,fileIconName:iconName,onClick:onPageDocumentDownloadClick},void 0)]},void 0);};var Host$i=_styled.div.withConfig({displayName:"DetailViewPageDocumentDownload__Host",componentId:"sc-1gtkslm-0"})(templateObject_1$N||(templateObject_1$N=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingM);var DownloadButton=_styled(InlinePageDocumentDownloadButton).withConfig({displayName:"DetailViewPageDocumentDownload__DownloadButton",componentId:"sc-1gtkslm-1"})(templateObject_2$t||(templateObject_2$t=__makeTemplateObject(["\n margin-top: ","px;\n @media (min-width: ","px) {\n width: 50%;\n }\n"],["\n margin-top: ","px;\n @media (min-width: ","px) {\n width: 50%;\n }\n"])),spacingS,minScreenSize.medium);var templateObject_1$N,templateObject_2$t;_styled(PublishableItemBanner).withConfig({displayName:"CardBanner__StyledBanner",componentId:"sc-mqzdnh-0"})(templateObject_1$M||(templateObject_1$M=__makeTemplateObject(["\n &.video-view-container {\n height: 100%; /* this is needed for not overlapping the card title */\n }\n"],["\n &.video-view-container {\n height: 100%; /* this is needed for not overlapping the card title */\n }\n"])));var templateObject_1$M;_styled.div.withConfig({displayName:"Card__Host",componentId:"sc-1m8ygh-0"})(templateObject_1$L||(templateObject_1$L=__makeTemplateObject(["\n &.card {\n display: flex;\n background-color: white;\n box-shadow: 1px 1px 4px grey;\n box-sizing: border-box;\n\n width: 100%;\n\n margin-bottom: 10px;\n\n &[data-packed] {\n opacity: 1;\n }\n\n &.card-enter,\n &.card-appear {\n opacity: 0.01;\n }\n\n &.card-enter.card-enter-active,\n &.card-appear.card-appear-active {\n opacity: 1;\n transition: opacity 0.75s ease-in;\n }\n\n @media all and (min-width: ","px) {\n transition: opacity 0.75s ease-in;\n opacity: 0;\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n }\n"],["\n &.card {\n display: flex;\n background-color: white;\n box-shadow: 1px 1px 4px grey;\n box-sizing: border-box;\n\n width: 100%;\n\n margin-bottom: 10px;\n\n &[data-packed] {\n opacity: 1;\n }\n\n &.card-enter,\n &.card-appear {\n opacity: 0.01;\n }\n\n &.card-enter.card-enter-active,\n &.card-appear.card-appear-active {\n opacity: 1;\n transition: opacity 0.75s ease-in;\n }\n\n @media all and (min-width: ","px) {\n transition: opacity 0.75s ease-in;\n opacity: 0;\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n }\n"])),minScreenSize.small,cardWidthS,minScreenSize.medium,cardWidthM,minScreenSize.large,cardWidthL,minScreenSize.xLarge,cardWidthXL);_styled.article.withConfig({displayName:"Card__Article",componentId:"sc-1m8ygh-1"})(templateObject_3$l||(templateObject_3$l=__makeTemplateObject(["\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n\n ","\n\n > .card-banner {\n height: calc(((100vw - ","px) * (1 / ",")));\n flex: 0 1 auto;\n }\n\n .card-title {\n margin-top: 7px;\n margin-bottom: 0;\n font-size: 1.1em;\n }\n\n .card-metaInfo {\n font-size: 0.9em;\n }\n\n .card-metaInfo {\n padding-top: ","px;\n color: #666;\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n\n .card-title {\n margin-top: 7px;\n font-size: 1.3em;\n }\n\n .card-metaInfo {\n font-size: 0.9em;\n }\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n }\n }\n"],["\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n\n ","\n\n > .card-banner {\n height: calc(((100vw - ","px) * (1 / ",")));\n flex: 0 1 auto;\n }\n\n .card-title {\n margin-top: 7px;\n margin-bottom: 0;\n font-size: 1.1em;\n }\n\n .card-metaInfo {\n font-size: 0.9em;\n }\n\n .card-metaInfo {\n padding-top: ","px;\n color: #666;\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n\n .card-title {\n margin-top: 7px;\n font-size: 1.3em;\n }\n\n .card-metaInfo {\n font-size: 0.9em;\n }\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n }\n }\n"])),function(p){return p.highlight&&css$2(templateObject_2$s||(templateObject_2$s=__makeTemplateObject(["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ","px;\n display: block;\n background-color: ",";\n }\n "],["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ","px;\n display: block;\n background-color: ",";\n }\n "])),spacingXs,function(p){return p.theme.palette.accent;});},spacingM,bannerAspectRatio,spacingM,minScreenSize.small,cardWidthS,bannerAspectRatio,minScreenSize.medium,cardWidthM,bannerAspectRatio,minScreenSize.large,cardWidthL,bannerAspectRatio,minScreenSize.xLarge,cardWidthXL,bannerAspectRatio);var templateObject_1$L,templateObject_2$s,templateObject_3$l;var LanguageSelector=function LanguageSelector(props){var history=useHistory();var currentUser=useCurrentUser();var buildPath=useSubscriptionHandlePathBuilder().buildPath;var getAllLanguagesLocalized=useLanguageApi().getAllLanguagesLocalized;var intl=useIntl();var formatMessage=intl.formatMessage;var languageDefinitions=usePromise$2(function(){return getAllLanguagesLocalized(intl);})[0];var features=useFeatures();if(languageDefinitions==null){return null;}if(props.chromeless)return jsx$1(ActionButton,__assign({iconProps:{iconName:'World'},menuProps:{items:getContextualMenuItems(),className:'lt-reach-callout'},className:classNames(props.className,'header-button')},{children:formatMessage({id:"Generic.languages."+props.selectedLanguage})}),void 0);return jsx$1(Tooltip,__assign({resourceKey:"Generic.translate"},{children:jsx$1(LanguageSelectorButton,{menuIconProps:{iconName:'World'},menuProps:{items:getContextualMenuItems(),className:'lt-reach-callout',isBeakVisible:props.showBeak},className:classNames(props.className,'header-button'),"data-language-selector-button":true,ariaLabel:formatMessage({id:'AriaLabel.autoTranslation'})},void 0)}),void 0);function getContextualMenuItems(){if(props.languages==null){return [];}var menuItems=[];var preferredLanguageItem=getPreferredLanguageItem();if(preferredLanguageItem){menuItems.push(preferredLanguageItem);}var activeLanguagesItems=getActiveLanguagesItems();activeLanguagesItems.sort(function(a,b){return a.text.localeCompare(b.text);});menuItems=menuItems.concat(activeLanguagesItems);if(!props.hideEditLanguagePreferences){var editLanguagePreferencesItem={key:'edit',text:formatMessage({id:'Generic.editLanguagePreferences'}),iconProps:{iconName:'PlayerSettings'},onClick:handleEditLanguagePreferences,className:'lt-reach-languageselector-menu-item'};menuItems.push(editLanguagePreferencesItem);}return menuItems;}function handleEditLanguagePreferences(){if(props.onEditLanguagePreferencesClick){props.onEditLanguagePreferencesClick();}else {history.push(buildPath('/user'));}}function getActiveLanguagesItems(){return props.languages.map(function(l){var fullLanguage=languageDefinitions.find(function(ld){return ld.code===l;});return {key:l,text:fullLanguage.localizedName,iconProps:{iconName:'World'},onClick:function(){return props.onLanguageChange(l.toString());},className:classNames('lt-reach-languageselector-menu-item',l===props.selectedLanguage&&'selected')};});}function getPreferredLanguageItem(){if(!features.automaticTranslation){return null;}if(!props.onTranslateClick){return null;}var preferredContentLanguage=getPreferredContentLanguage(currentUser);var shouldAddPreferredContentLanguage=preferredContentLanguage!=null&&!contentLanguagesWithoutAutomaticTranslation.includes(preferredContentLanguage)&&allAvailableContentLanguages.includes(preferredContentLanguage)&&props.languages.indexOf(preferredContentLanguage)<0;if(!shouldAddPreferredContentLanguage){return null;}return {key:preferredContentLanguage,text:formatMessage({id:'Generic.automaticTranslation'},{language:formatMessage({id:"Generic.languages."+preferredContentLanguage})}),iconProps:{iconName:'Robot'},onClick:function(){return props.onTranslateClick(preferredContentLanguage);},className:classNames('lt-reach-languageselector-menu-item',preferredContentLanguage===props.selectedLanguage&&'selected')};}};var LanguageSelectorButton=_styled(IconButton).withConfig({displayName:"LanguageSelector__LanguageSelectorButton",componentId:"sc-48zwek-0"})(templateObject_1$K||(templateObject_1$K=__makeTemplateObject(["\n && {\n height: 100%;\n margin: 0;\n background-color: transparent;\n }\n"],["\n && {\n height: 100%;\n margin: 0;\n background-color: transparent;\n }\n"])));var templateObject_1$K;_styled.article.withConfig({displayName:"DetailViewArticle__Host",componentId:"sc-we2q7z-0"})(templateObject_1$J||(templateObject_1$J=__makeTemplateObject(["\n min-width: 300px;\n width: 100%;\n\n flex: 1 0 auto;\n display: flex;\n flex-flow: column nowrap;\n\n @media (min-width: ","px) {\n box-shadow: 1px 1px 4px grey;\n max-width: ","px;\n }\n"],["\n min-width: 300px;\n width: 100%;\n\n flex: 1 0 auto;\n display: flex;\n flex-flow: column nowrap;\n\n @media (min-width: ","px) {\n box-shadow: 1px 1px 4px grey;\n max-width: ","px;\n }\n"])),minScreenSize.large+1,maxContentWidth);var templateObject_1$J;var DetailViewBanner=function DetailViewBanner(){var _a=useDetailViewContext(),item=_a.item,resourceType=_a.resourceType,isEditorPreview=_a.isEditorPreview;if(!item.bannerInfo){return null;}return jsx$1(Banner$3,{itemId:item.id,token:item.fileAccessToken,bannerInfo:item.bannerInfo,useEditorRoutes:isEditorPreview,width:getMaxImageWidth(),canOpenImage:true,resourceType:resourceType},void 0);};var Banner$3=_styled(PublishableItemBanner).withConfig({displayName:"DetailViewBanner__Banner",componentId:"sc-1wuqvtw-0"})(templateObject_1$I||(templateObject_1$I=__makeTemplateObject(["\n && {\n height: calc(100vw * (1 / ","));\n\n @media (min-width: ","px) {\n height: calc(\n (","px - (2 * ","px)) *\n (1 / ",")\n );\n }\n }\n"],["\n && {\n height: calc(100vw * (1 / ","));\n\n @media (min-width: ","px) {\n height: calc(\n (","px - (2 * ","px)) *\n (1 / ",")\n );\n }\n }\n"])),bannerAspectRatio,minScreenSize.large+1,minScreenSize.large,spacingM,bannerAspectRatio);var templateObject_1$I;var DetailViewIntro=function DetailViewIntro(){var content=useDetailViewContext().content;var hasIntro=content.intro&&content.intro.length>0;if(!hasIntro){return null;}return jsx$1(DetailIntro,{children:content.intro},void 0);};var DetailIntro=_styled.p.withConfig({displayName:"DetailViewIntro__DetailIntro",componentId:"sc-1kubhyf-0"})(templateObject_1$H||(templateObject_1$H=__makeTemplateObject(["\n margin: 0;\n font-size: ","px;\n line-height: 26px;\n font-weight: normal;\n\n min-width: 100%;\n width: 100px;\n\n @media (min-width: ","px) {\n margin-top: ","px;\n margin-bottom: ","px;\n line-height: 24px;\n font-size: ","px;\n }\n"],["\n margin: 0;\n font-size: ","px;\n line-height: 26px;\n font-weight: normal;\n\n min-width: 100%;\n width: 100px;\n\n @media (min-width: ","px) {\n margin-top: ","px;\n margin-bottom: ","px;\n line-height: 24px;\n font-size: ","px;\n }\n"])),fontSizeNormal,minScreenSize.small,spacingS,spacingS+2,fontSizeMedium+2);var templateObject_1$H;var DetailMainSection=function DetailMainSection(_a){var children=_a.children;return jsx$1(DetailMainStyledSection,__assign({className:"detail-view-main"},{children:children}),void 0);};var DetailMainStyledSection=_styled.section.withConfig({displayName:"DetailViewMainSection__DetailMainStyledSection",componentId:"sc-ifywhg-0"})(templateObject_1$G||(templateObject_1$G=__makeTemplateObject(["\n position: relative;\n flex: 1 0 auto;\n display: flex;\n flex-direction: column;\n padding: ","px ","px\n ","px;\n font-size: 16px;\n\n @media (min-width: ","px) {\n padding: ","px\n ","px ","px;\n }\n"],["\n position: relative;\n flex: 1 0 auto;\n display: flex;\n flex-direction: column;\n padding: ","px ","px\n ","px;\n font-size: 16px;\n\n @media (min-width: ","px) {\n padding: ","px\n ","px ","px;\n }\n"])),detailViewSectionPadding-5,detailViewSectionPadding,detailViewSectionPadding,minScreenSize.small,detailViewSectionPaddingLarge-10,detailViewSectionPaddingLarge,detailViewSectionPaddingLarge);var templateObject_1$G;var GutterMarkerIcon=function GutterMarkerIcon(_a){var iconName=_a.iconName,children=_a.children,isActive=_a.isActive,color=_a.color,tooltipResourceKey=_a.tooltipResourceKey,className=_a.className;return jsxs(Host$f,__assign({className:className},{children:[jsx$1(IconContainer$1,__assign({isActive:isActive,className:isActive?"ms-bgColor-"+color:'ms-bgColor-white'},{children:isActive&&jsx$1(StyledTooltip,__assign({resourceKey:tooltipResourceKey},{children:jsx$1(StyledIcon$2$1,{className:"ms-fontColor-white",iconName:iconName},void 0)}),void 0)}),void 0),isActive?jsx$1(ActiveContent,__assign({className:"ms-borderColor-"+color},{children:children}),void 0):jsx$1(Content$3,{children:children},void 0)]}),void 0);};var Host$f=_styled.div.withConfig({displayName:"GutterMakerIcon__Host",componentId:"sc-aa2cf4-0"})(templateObject_1$F||(templateObject_1$F=__makeTemplateObject(["\n margin: 0;\n display: flex;\n align-content: center;\n"],["\n margin: 0;\n display: flex;\n align-content: center;\n"])));var StyledIcon$2$1=_styled(Icon).withConfig({displayName:"GutterMakerIcon__StyledIcon",componentId:"sc-aa2cf4-1"})(templateObject_2$r||(templateObject_2$r=__makeTemplateObject(["\n font-size: 25px;\n"],["\n font-size: 25px;\n"])));var Content$3=_styled.div.withConfig({displayName:"GutterMakerIcon__Content",componentId:"sc-aa2cf4-2"})(templateObject_3$k||(templateObject_3$k=__makeTemplateObject(["\n flex: 1 1 auto;\n flex-basis: 100%; /*IE fix*/\n\n display: flex;\n align-items: center;\n\n box-sizing: border-box;\n"],["\n flex: 1 1 auto;\n flex-basis: 100%; /*IE fix*/\n\n display: flex;\n align-items: center;\n\n box-sizing: border-box;\n"])));var ActiveContent=_styled(Content$3).withConfig({displayName:"GutterMakerIcon__ActiveContent",componentId:"sc-aa2cf4-3"})(templateObject_4$c||(templateObject_4$c=__makeTemplateObject(["\n padding-left: 10px;\n min-height: 50px;\n\n border-bottom-style: solid;\n border-bottom-width: 4px;\n"],["\n padding-left: 10px;\n min-height: 50px;\n\n border-bottom-style: solid;\n border-bottom-width: 4px;\n"])));var IconContainer$1=_styled.div.withConfig({displayName:"GutterMakerIcon__IconContainer",componentId:"sc-aa2cf4-4"})(templateObject_5$b||(templateObject_5$b=__makeTemplateObject(["\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n padding: 10px 0;\n"],["\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n padding: 10px 0;\n"])),function(_a){var isActive=_a.isActive;return isActive?'50px':'auto';});var StyledTooltip=_styled(Tooltip).withConfig({displayName:"GutterMakerIcon__StyledTooltip",componentId:"sc-aa2cf4-5"})(templateObject_6$5$1||(templateObject_6$5$1=__makeTemplateObject(["\n && {\n display: inherit;\n }\n"],["\n && {\n display: inherit;\n }\n"])));var templateObject_1$F,templateObject_2$r,templateObject_3$k,templateObject_4$c,templateObject_5$b,templateObject_6$5$1;var DetailViewTitle=function DetailViewTitle(){var _a=useDetailViewContext(),content=_a.content,item=_a.item;var hasAlert=hasFlag(item.knownState,KnownNewsState.Alert);return jsx$1(GutterMarkerIcon,__assign({iconName:"Warning",isActive:hasAlert,color:"red",tooltipResourceKey:"NewsArticle.alert"},{children:jsx$1(Title$4,__assign({"data-title":true},{children:content.title}),void 0)}),void 0);};var Title$4=_styled.h1.withConfig({displayName:"DetailViewTitle__Title",componentId:"sc-1jbzvna-0"})(templateObject_1$E||(templateObject_1$E=__makeTemplateObject(["\n color: black;\n width: 100%;\n font-size: ","px;\n line-height: 29px;\n margin: 0;\n\n @media (min-width: ","px) {\n font-size: 2.2em;\n line-height: 42px;\n }\n"],["\n color: black;\n width: 100%;\n font-size: ","px;\n line-height: 29px;\n margin: 0;\n\n @media (min-width: ","px) {\n font-size: 2.2em;\n line-height: 42px;\n }\n"])),fontSizeLarge-1,minScreenSize.small);var templateObject_1$E;_styled(ItemMetaInfo).withConfig({displayName:"NewsDetailViewMetaInfo__DetailMetaInfo",componentId:"sc-kib7we-0"})(templateObject_1$D||(templateObject_1$D=__makeTemplateObject(["\n display: flex;\n font-size: ","px;\n margin-top: 12px;\n"],["\n display: flex;\n font-size: ","px;\n margin-top: 12px;\n"])),fontSizeSmall);var templateObject_1$D;var mappers=[InlineImageMapper,InlineFileMapper,InlineQuoteMapper,InlineGalleryMapper,InlineCodeMapper,InlineVideoMapper,InlineTable,InlineContactMapper,InlinePageListMapper,InlineUrlPreviewMapper];var RichTextViewer=function RichTextViewer(_a){var html=_a.html;return jsx$1(TextViewer,{html:html,componentMappers:mappers},void 0);};var DetailViewBody=function DetailViewBody(){var _a=useDetailViewContext(),content=_a.content,resourceType=_a.resourceType;var bodyHtml=content&&content.body;return jsx$1(DetailBody$1,__assign({className:"lt-reach-detail-view-body","data-item-type":resourceType},{children:jsx$1(ItemBodyWrapper,{children:jsx$1(RichTextViewer,{html:bodyHtml},void 0)},void 0)}),void 0);};var DetailBody$1=_styled.div.withConfig({displayName:"DetailViewBody__DetailBody",componentId:"sc-7b4trq-0"})(templateObject_1$C||(templateObject_1$C=__makeTemplateObject(["\n flex: 1 0 auto;\n box-sizing: border-box;\n min-width: 100%;\n width: 100px;\n margin-top: 35px;\n\n // So that headings have the correct semantics for accessibility (i.e. title is h1, subheadings start at h2),\n // but maintain the same visual design, this styles each heading to look one \"step\" larger\n // e.g. h2 looks like h1, etc.\n && {\n h2 {\n font-size: ","px;\n margin: ","px 0;\n }\n\n h3 {\n font-size: ","px;\n }\n\n h4 {\n font-size: ","px;\n }\n\n h3,\n h4,\n h5,\n h6 {\n margin: ","px 0;\n }\n }\n"],["\n flex: 1 0 auto;\n box-sizing: border-box;\n min-width: 100%;\n width: 100px;\n margin-top: 35px;\n\n // So that headings have the correct semantics for accessibility (i.e. title is h1, subheadings start at h2),\n // but maintain the same visual design, this styles each heading to look one \"step\" larger\n // e.g. h2 looks like h1, etc.\n && {\n h2 {\n font-size: ","px;\n margin: ","px 0;\n }\n\n h3 {\n font-size: ","px;\n }\n\n h4 {\n font-size: ","px;\n }\n\n h3,\n h4,\n h5,\n h6 {\n margin: ","px 0;\n }\n }\n"])),fontSizeLarge-1,spacingS+2,fontSizeLarge-3,fontSizeLarge-5,spacingS);var templateObject_1$C;var DetailViewKeywords=function DetailViewKeywords(_a){var filterBaseUrl=_a.filterBaseUrl;var features=useFeatures();var _b=useDetailViewContext(),item=_b.item,userPreferredLanguage=_b.userPreferredLanguage;var formatMessage=useIntl().formatMessage;if(!features.keywords){return null;}return jsx$1(Fragment,{children:Object.keys(item.keywords).length>0&&jsx$1(KeywordsSection,__assign({"aria-label":formatMessage({id:'AriaLabel.section.keywords'})},{children:jsx$1(KeywordsInfo,{keywords:item.keywords,language:userPreferredLanguage,filterBaseUrl:filterBaseUrl},void 0)}),void 0)},void 0);};var KeywordsSection=_styled.section.withConfig({displayName:"DetailViewKeywords__KeywordsSection",componentId:"sc-ltysu4-0"})(templateObject_1$B||(templateObject_1$B=__makeTemplateObject(["\n margin-top: 2em;\n display: flex;\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"],["\n margin-top: 2em;\n display: flex;\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"])),maxScreenSize.medium,fontSizeSmall);var templateObject_1$B;var ConfirmationBox=function ConfirmationBox(_a){var disabled=_a.disabled,checked=_a.checked,onChange=_a.onChange;var formatMessage=useIntl().formatMessage;return jsx$1(Host$e,{children:jsx$1(NeutralCheckBox,{disabled:disabled,checked:checked,onChange:function(_,value){return onChange(value);},label:formatMessage({id:checked?'NewsArticle.confirmed':'NewsArticle.confirm'})},void 0)},void 0);};var Host$e=_styled.div.withConfig({displayName:"ConfirmationBox__Host",componentId:"sc-1m5alil-0"})(templateObject_1$A||(templateObject_1$A=__makeTemplateObject(["\n .ms-Checkbox-text {\n font-weight: bold;\n color: black;\n }\n"],["\n .ms-Checkbox-text {\n font-weight: bold;\n color: black;\n }\n"])));var templateObject_1$A;var ConfirmationSection=function ConfirmationSection(_a){var item=_a.item,showDescription=_a.showDescription,readOnly=_a.readOnly,className=_a.className;var refreshStatistics=useNewsApi().refreshStatistics;var _b=useNotificationContext(),dismissToast=_b.dismissToast,showToast=_b.showToast,showError=_b.showError;var _c=useFeedbackApi(),getFeedback=_c.getFeedback,setFeedback=_c.setFeedback,unsetFeedback=_c.unsetFeedback;var _d=usePromise$2(function(){return getFeedback(ItemResourceTypes.News,item.id);}),summary=_d[0],isLoading=_d[1];var _e=useState$2(null),userChecked=_e[0],setChecked=_e[1];var toastHandle=useRef$1(null);var checked=userChecked!==null?userChecked:summary!=null&&!!summary.records.find(function(r){return r.type==='confirm';});return jsxs(Host$d$1,__assign({isLoading:isLoading,className:className},{children:[showDescription&&jsx$1(FormattedMessage$1,{id:"NewsArticle.confirmationRequiredDescription",tagName:"p"},void 0),jsx$1(StyledGutterMarkerIcon,__assign({iconName:"Completed",isActive:!isLoading&&!checked,color:"green"},{children:readOnly?jsx$1(ConfirmationBox,{checked:checked,disabled:true},void 0):jsx$1(ConfirmationBox,{checked:checked,disabled:checked,onChange:handleClickConfirm},void 0)}),void 0)]}),void 0);function handleClickConfirm(){return __awaiter(this,void 0,void 0,function(){var error_1;return __generator(this,function(_a){switch(_a.label){case 0:setChecked(true);_a.label=1;case 1:_a.trys.push([1,4,,5]);return [4/*yield*/,setFeedback(ItemResourceTypes.News,item.id,'confirm')];case 2:_a.sent();toastHandle.current=showToast('NewsArticle.confirmationSuccessToast',{},jsx$1(DefaultButton,__assign({onClick:handleUndo},{children:jsx$1(FormattedMessage$1,{id:"Generic.undo"},void 0)}),void 0),{autoClose:false});return [4/*yield*/,refreshStatistics(item.id,{confirmationCount:1})];case 3:_a.sent();return [3/*break*/,5];case 4:error_1=_a.sent();logger.error(error_1);showError('Generic.error');setChecked(false);return [3/*break*/,5];case 5:return [2/*return*/];}});});}function handleUndo(){return __awaiter(this,void 0,void 0,function(){var error_2;return __generator(this,function(_a){switch(_a.label){case 0:_a.trys.push([0,3,,4]);dismissToast(toastHandle.current);toastHandle.current=null;return [4/*yield*/,unsetFeedback(ItemResourceTypes.News,item.id,'confirm')];case 1:_a.sent();return [4/*yield*/,refreshStatistics(item.id,{confirmationCount:-1})];case 2:_a.sent();setChecked(false);return [3/*break*/,4];case 3:error_2=_a.sent();logger.error(error_2);showError('Generic.error');return [3/*break*/,4];case 4:return [2/*return*/];}});});}};var Host$d$1=_styled.div.withConfig({displayName:"ConfirmationSection__Host",componentId:"sc-1g2fxdb-0"})(templateObject_1$z||(templateObject_1$z=__makeTemplateObject(["\n width: 100%;\n\n opacity: ",";\n\n > p {\n margin: 0 0 5px ","px;\n font-style: italic;\n }\n\n @media (min-width: ","px) {\n > p {\n margin: 0 0 ","px 0;\n }\n }\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"],["\n width: 100%;\n\n opacity: ",";\n\n > p {\n margin: 0 0 5px ","px;\n font-style: italic;\n }\n\n @media (min-width: ","px) {\n > p {\n margin: 0 0 ","px 0;\n }\n }\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"])),function(_a){var isLoading=_a.isLoading;return isLoading?0.4:1;},spacingM,minScreenSize.small,spacingS,maxScreenSize.medium,fontSizeSmall);var StyledGutterMarkerIcon=_styled(GutterMarkerIcon).withConfig({displayName:"ConfirmationSection__StyledGutterMarkerIcon",componentId:"sc-1g2fxdb-1"})(templateObject_2$q||(templateObject_2$q=__makeTemplateObject(["\n @media (max-width: ","px) {\n margin: 0 ","px 0;\n }\n"],["\n @media (max-width: ","px) {\n margin: 0 ","px 0;\n }\n"])),maxScreenSize.small,spacingM);var templateObject_1$z,templateObject_2$q;var DetailViewConfirmations=function DetailViewConfirmations(){var features=useFeatures();var _a=useDetailViewContext(),item=_a.item,isEditorPreview=_a.isEditorPreview;var formatMessage=useIntl().formatMessage;if(!showConfirmationBox()){return null;}return jsx$1(ConfirmationHost,__assign({"aria-label":formatMessage({id:'NewsArticle.confirmation'})},{children:jsx$1(ConfirmationSection,{item:item,showDescription:true,readOnly:isEditorPreview},void 0)}),void 0);function showConfirmationBox(){return features.confirmation&&item.metadata&&item.metadata.feedbackSettings&&item.metadata.feedbackSettings.feedbackOptions.indexOf('confirm')>=0;}};var ConfirmationHost=_styled.section.withConfig({displayName:"DetailViewConfirmations__ConfirmationHost",componentId:"sc-f8jogv-0"})(templateObject_1$y||(templateObject_1$y=__makeTemplateObject(["\n margin-bottom: ","px;\n\n @media (min-width: ","px) {\n padding: 0 ","px 0 ","px;\n }\n"],["\n margin-bottom: ","px;\n\n @media (min-width: ","px) {\n padding: 0 ","px 0 ","px;\n }\n"])),spacingL,minScreenSize.small,spacingXl,spacingXl);var templateObject_1$y;var DetailViewPageViewTracker=function DetailViewPageViewTracker(){var _a=useDetailViewContext(),resourceType=_a.resourceType,itemId=_a.itemId;usePageViewTracker(resourceType,itemId);return null;};var FeedbackButtonBookmark=function FeedbackButtonBookmark(_a){var isReadOnly=_a.isReadOnly;var _b=useContext(FeedbackButtonContext),item=_b.item,bookmarkCount=_b.statistics.bookmarkCount;return jsxs(CountButtonHost,{children:[jsx$1(BookmarkButton,{item:item,isReadOnly:isReadOnly},void 0),jsx$1(CountLabel,__assign({isDisabled:isReadOnly},{children:bookmarkCount}),void 0)]},void 0);};var NewsDetailViewFeedbackSection=function NewsDetailViewFeedbackSection(_a){var _b;var hideLikes=_a.hideLikes,hideComments=_a.hideComments,hideProfileUrl=_a.hideProfileUrl,disableLoginForPublicUser=_a.disableLoginForPublicUser;var _c=useDetailViewContext(),item=_c.item,resourceType=_c.resourceType,contentLanguage=_c.contentLanguage,isEditorPreview=_c.isEditorPreview;return jsxs(StyledFeedbackSection,__assign({item:item,language:contentLanguage,type:resourceType,feedbackSettings:(_b=item.metadata)===null||_b===void 0?void 0:_b.feedbackSettings,hideComments:hideComments,hideProfileUrl:hideProfileUrl,disableLoginForPublicUser:disableLoginForPublicUser,isReadOnly:isEditorPreview},{children:[!hideLikes&&jsx$1(FeedbackButtonLike,{isReadOnly:isEditorPreview},void 0),jsx$1(FeedbackButtonBookmark,{isReadOnly:isEditorPreview},void 0),!hideComments&&jsx$1(FeedbackButtonComments,{},void 0),jsx$1(FeedbackButtonViews,{},void 0),jsx$1(FeedbackButtonShare,{isReadOnly:isEditorPreview},void 0),jsx$1(FeedbackButtonConfirmations,{},void 0)]}),void 0);};var StyledFeedbackSection=_styled(FeedbackSection).withConfig({displayName:"NewsDetailViewFeedbackSection__StyledFeedbackSection",componentId:"sc-pjpy6x-0"})(templateObject_1$x||(templateObject_1$x=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),DetailViewSectionPadding);var templateObject_1$x;var DetailViewBodyExternalContent=function DetailViewBodyExternalContent(_a){var itemType=_a.itemType;var content=useDetailViewContext().content;var externalUrl=content&&content.externalUrl;return jsx$1(DetailBody,__assign({className:"lt-reach-detail-view-body"},{children:jsx$1(ItemBodyWrapper,{children:jsx$1(FormattedMessageWithStyle,{id:"ExternalLink."+itemType+".navigateTo",tagName:"p",values:{url:jsx$1(ExternalLink$2,__assign({href:externalUrl,className:"ms-fontColor-accent",target:"_blank",rel:"noopener noreferrer"},{children:externalUrl}),void 0)}},void 0)},void 0)}),void 0);};var DetailBody=_styled.div.withConfig({displayName:"DetailViewBodyExternalContent__DetailBody",componentId:"sc-1xjgw89-0"})(templateObject_1$w||(templateObject_1$w=__makeTemplateObject(["\n flex: 1 0 auto;\n box-sizing: border-box;\n min-width: 100%;\n width: 100px;\n margin-top: 35px;\n"],["\n flex: 1 0 auto;\n box-sizing: border-box;\n min-width: 100%;\n width: 100px;\n margin-top: 35px;\n"])));var templateObject_1$w;var DetailViewHeadline=function DetailViewHeadline(){var content=useDetailViewContext().content;var features=useFeatures();if(!features.contentHeadline||!content.headline){return null;}return jsx$1(Headline$1$1,__assign({"data-detail-view-headline":true},{children:content.headline}),void 0);};var Headline$1$1=_styled.p.withConfig({displayName:"DetailViewHeadline__Headline",componentId:"sc-wsid06-0"})(templateObject_1$v||(templateObject_1$v=__makeTemplateObject(["\n width: 100%;\n font-weight: bold;\n font-size: ","px;\n line-height: 26px;\n margin: 0;\n\n @media (min-width: ","px) {\n line-height: 22px;\n font-size: ","px;\n margin-bottom: ","px;\n }\n"],["\n width: 100%;\n font-weight: bold;\n font-size: ","px;\n line-height: 26px;\n margin: 0;\n\n @media (min-width: ","px) {\n line-height: 22px;\n font-size: ","px;\n margin-bottom: ","px;\n }\n"])),fontSizeNormal,minScreenSize.small,fontSizeMedium,spacingS);var templateObject_1$v;var StateIcon=function StateIcon(_a){var status=_a.status,isActive=_a.isActive,_b=_a.width,width=_b===void 0?16:_b,activeColor=_a.activeColor;var textColors=useContext(ThemeContext$1).theme.textColors;if(status===WorkflowStatus.draft){return jsx$1(Draft,{width:width,color:isActive?activeColor||textColors.onSecondary:textColors.default},void 0);}else if(status===WorkflowStatus.rejected){return jsx$1(Draft,{width:width,color:isActive?activeColor:'#b90000'},void 0);}else if(status===WorkflowStatus.ready){return jsx$1(Ready,{width:width,color:isActive?activeColor||textColors.onSecondary:textColors.default},void 0);}return null;};var Draft=function Draft(_a){var color=_a.color,className=_a.className,_b=_a.width,width=_b===void 0?16.25:_b;var ratio=20/16.25;return jsx$1("svg",__assign({className:className,version:"1.1",id:"Layer_1",x:"0px",y:"0px",width:width+"px",height:width*ratio+"px",viewBox:"0 0 16.25 20",enableBackground:"new 0 0 16.25 20"},{children:jsx$1("path",{fill:color,d:"M10,6.25V0h0.89l5.36,5.361V6.25H10z M11.25,5h2.861L11.25,2.139V5z M10,0H9.25v1.25H10V0z M7.675,1.25H6.1\n\tV0h1.575V1.25z M4.525,1.25H2.95V0h1.575V1.25z M1.25,17.057H0v-1.567h1.25V17.057z M1.25,13.921H0v-1.568h1.25V13.921z\n\t M1.25,10.784H0V9.216h1.25V10.784z M1.25,7.647H0V6.08h1.25V7.647z M1.25,4.512H0V2.943h1.25V4.512z M13.375,\n\t 20h-1.5v-1.25h1.5V20z\n\t M10.375,20h-1.5v-1.25h1.5V20z M7.375,20h-1.5v-1.25h1.5V20z M4.375,20h-1.5v-1.25h1.5V20z M16.25,\n\t 16.964H15v-1.661h1.25V16.964z\n\t M16.25,13.643H15v-1.661h1.25V13.643z M16.25,10.321H15V8.66h1.25V10.321z M16.25,6.25H15V7h1.25V6.25z\n\t M1.25,18.75H0V20h1.25\n\tV18.75z M1.25,0H0v1.25h1.25V0z M16.25,18.75H15V20h1.25V18.75z"},void 0)}),void 0);};var Ready=function Ready(_a){var color=_a.color,className=_a.className,_b=_a.width,width=_b===void 0?18.564:_b;var ratio=20/18.564;return jsx$1("svg",__assign({className:className,version:"1.1",id:"Layer_1",x:"0px",y:"0px",width:width+"px",height:width*ratio+"px",viewBox:"0 0 18.564 20",enableBackground:"new 0 0 18.564 20"},{children:jsx$1("path",{fill:color,d:"M10,6.25v-5H1.25v17.5H10V20H0V0h10.889l5.361,5.361V12.5L15,13.75v-7.5H10z M18.564,14.551L13.125,20\n \tl-2.627-2.637l0.879-0.879l1.748,1.738l4.561-4.551L18.564,14.551z M11.25,5h2.861L11.25,2.139V5z"},void 0)}),void 0);};function useCommonEditorApi(){var api=useApi();return useMemo(function(){return {list:list,getTaskViewCounts:getTaskViewCounts};function list(type,filter,token,sortDefinition){var params=Object.assign({},filter,{token:token},sortDefinition);return api.custom("editor/"+type+"?"+queryString.stringify(params)).get().then(function(res){return res.body().data();});}function getTaskViewCounts(type,groupId){return __awaiter(this,void 0,void 0,function(){var response;return __generator(this,function(_a){switch(_a.label){case 0:return [4/*yield*/,api.custom("editor/"+type+"/taskcounts?"+queryString.stringify({groupId:groupId})).get(groupId)];case 1:response=_a.sent();return [4/*yield*/,response.body().data()];case 2:return [2/*return*/,_a.sent()];}});});}},[api]);}var SortFieldsDefinitionBuilder=/** @class */function(){function SortFieldsDefinitionBuilder(){this.sort=[];}SortFieldsDefinitionBuilder.prototype.addSortField=function(field,direction){this.sort.push(field+":"+SortFieldsDefinitionBuilder.getSortDirectionAsString(direction));return this;};SortFieldsDefinitionBuilder.getSortDirectionAsString=function(direction){return direction===SortDirection.asc?'asc':'desc';};return SortFieldsDefinitionBuilder;}();var EventSortFieldsDefinitionBuilder=/** @class */function(_super){__extends(EventSortFieldsDefinitionBuilder,_super);function EventSortFieldsDefinitionBuilder(){return _super!==null&&_super.apply(this,arguments)||this;}EventSortFieldsDefinitionBuilder.create=function(){return new EventSortFieldsDefinitionBuilder();};return EventSortFieldsDefinitionBuilder;}(SortFieldsDefinitionBuilder);EventSortFieldsDefinitionBuilder.create().addSortField('startDate',SortDirection.desc);EventSortFieldsDefinitionBuilder.create().addSortField('publishingDate',SortDirection.desc);var ItemType;(function(ItemType){ItemType[ItemType["None"]=0]="None";ItemType[ItemType["News"]=1]="News";ItemType[ItemType["Post"]=2]="Post";ItemType[ItemType["Page"]=4]="Page";ItemType[ItemType["Event"]=8]="Event";})(ItemType||(ItemType={}));var BaseFilterDefinitionImpl=/** @class */function(){function BaseFilterDefinitionImpl(){}return BaseFilterDefinitionImpl;}();__spreadArray(__spreadArray([],Object.keys(new BaseFilterDefinitionImpl())),['hideChrome','teams']);_styled.div.withConfig({displayName:"KeywordPickerGroup__Host",componentId:"sc-pu16jm-0"})(templateObject_1$u||(templateObject_1$u=__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),spacingS);_styled(ActionButton).withConfig({displayName:"KeywordPickerGroup__GroupButton",componentId:"sc-pu16jm-1"})(templateObject_2$p||(templateObject_2$p=__makeTemplateObject(["\n && {\n height: auto;\n font-size: ","px;\n padding: 0;\n border: 0;\n\n i {\n font-size: ","px;\n\n &:first-child {\n margin: 0;\n }\n }\n }\n"],["\n && {\n height: auto;\n font-size: ","px;\n padding: 0;\n border: 0;\n\n i {\n font-size: ","px;\n\n &:first-child {\n margin: 0;\n }\n }\n }\n"])),fontSizeNormal,fontSizeSmall);_styled(Icon).withConfig({displayName:"KeywordPickerGroup__CheckMarkIcon",componentId:"sc-pu16jm-2"})(templateObject_3$j||(templateObject_3$j=__makeTemplateObject(["\n margin-right: 6px;\n margin-left: 12px;\n width: 15px;\n"],["\n margin-right: 6px;\n margin-left: 12px;\n width: 15px;\n"])));_styled.span.withConfig({displayName:"KeywordPickerGroup__ButtonLabel",componentId:"sc-pu16jm-3"})(templateObject_5$a||(templateObject_5$a=__makeTemplateObject(["\n display: inline-flex;\n flex: 1 0 auto;\n\n ","\n"],["\n display: inline-flex;\n flex: 1 0 auto;\n\n ","\n"])),function(p){return !p.isSelected&&css$2(templateObject_4$b||(templateObject_4$b=__makeTemplateObject(["\n margin-left: 33px; // checkmark icon space\n "],["\n margin-left: 33px; // checkmark icon space\n "])));});_styled.ul.withConfig({displayName:"KeywordPickerGroup__KeywordsList",componentId:"sc-pu16jm-4"})(templateObject_7$3$1||(templateObject_7$3$1=__makeTemplateObject(["\n ","\n padding: 0;\n margin: 0 0 0 ","px;\n list-style: none;\n"],["\n ","\n padding: 0;\n margin: 0 0 0 ","px;\n list-style: none;\n"])),function(p){return p.isCollapsed&&css$2(templateObject_6$4$1||(templateObject_6$4$1=__makeTemplateObject(["\n display: none;\n "],["\n display: none;\n "])));},spacingX+10);_styled.li.withConfig({displayName:"KeywordPickerGroup__KeywordItem",componentId:"sc-pu16jm-5"})(templateObject_8$3$1||(templateObject_8$3$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-top: 9px;\n"],["\n display: flex;\n align-items: center;\n margin-top: 9px;\n"])));var templateObject_1$u,templateObject_2$p,templateObject_3$j,templateObject_4$b,templateObject_5$a,templateObject_6$4$1,templateObject_7$3$1,templateObject_8$3$1;_styled.div.withConfig({displayName:"KeywordPicker__KeywordPickerTree",componentId:"sc-1ejjfwa-0"})(templateObject_1$t||(templateObject_1$t=__makeTemplateObject(["\n padding-left: 4px;\n"],["\n padding-left: 4px;\n"])));_styled(ToggleAllButtons).withConfig({displayName:"KeywordPicker__StyledToggleAllButtons",componentId:"sc-1ejjfwa-1"})(templateObject_2$o||(templateObject_2$o=__makeTemplateObject(["\n padding-left: 4px;\n"],["\n padding-left: 4px;\n"])));_styled.div.withConfig({displayName:"KeywordPicker__Host",componentId:"sc-1ejjfwa-2"})(templateObject_3$i||(templateObject_3$i=__makeTemplateObject(["\n overflow-x: hidden;\n overflow-y: auto;\n\n .ms-TextField-fieldGroup {\n background: none;\n }\n"],["\n overflow-x: hidden;\n overflow-y: auto;\n\n .ms-TextField-fieldGroup {\n background: none;\n }\n"])));_styled.div.withConfig({displayName:"KeywordPicker__SearchHost",componentId:"sc-1ejjfwa-3"})(templateObject_4$a||(templateObject_4$a=__makeTemplateObject(["\n position: relative;\n margin-bottom: 8px;\n"],["\n position: relative;\n margin-bottom: 8px;\n"])));_styled(IconButton).withConfig({displayName:"KeywordPicker__SearchCancelButton",componentId:"sc-1ejjfwa-4"})(templateObject_5$9||(templateObject_5$9=__makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 10;\n\n &&&:focus::after {\n outline-offset: -2px;\n }\n"],["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 10;\n\n &&&:focus::after {\n outline-offset: -2px;\n }\n"])));var templateObject_1$t,templateObject_2$o,templateObject_3$i,templateObject_4$a,templateObject_5$9;var $$2=_export;var requireObjectCoercible$1$1=requireObjectCoercible$c;var isRegExp=isRegexp;var getRegExpFlags=regexpFlags$1$1;var wellKnownSymbol$1=wellKnownSymbol$l;var REPLACE$2=wellKnownSymbol$1('replace');var RegExpPrototype$3=RegExp.prototype;// `String.prototype.replaceAll` method
|
|
131804
|
+
return {id:pageListId,showChildren:showChildren,showPages:true,showDocuments:false,pageId:pageId,keywords:keywords};}var showDocuments=showDocumentsAttribute==='true';var showPages=showPagesAttribute==='true';return {id:pageListId,showChildren:showChildren,showDocuments:showDocuments,showPages:showPages,pageId:pageId,keywords:keywords};}};var PageBreadcrumb=function PageBreadcrumb(_a){var page=_a.page,target=_a.target,languageOverride=_a.language,hideCurrentPageNode=_a.hideCurrentPageNode,className=_a.className;var user=useCurrentUser();var formatMessage=useIntl().formatMessage;var history=useHistory();if(!page||!page.navigationContext){return null;}var _b=getBreadcrumbsItems(page,target,handleOnClick,function(page){return getTitle(page,user,formatMessage,languageOverride);},formatMessage,hideCurrentPageNode),parentNode=_b.parentNode,breadcrumbItems=_b.breadcrumbItems;return jsxs("div",__assign({className:className},{children:[jsx$1(LargeScreenBreadcrumb,{items:breadcrumbItems,onRenderItem:renderBreadcrumbItem,overflowIndex:1,"data-breadcrumb":true,overflowAriaLabel:formatMessage({id:'AriaLabel.otherPages'}),focusZoneProps:{handleTabKey:1}},void 0),jsx$1(MobileBreadcrumb,{target:target,parentNode:parentNode},void 0)]}),void 0);function renderBreadcrumbItem(item){if(item.key==='home'){return jsx$1(BreadcrumbHomeItem,__assign({to:item.href,"aria-label":item.text,"data-pages-home-icon":true},{children:jsx$1(HomeIcon,{iconName:"HomeSolid"},void 0)}),void 0);}if(item.isCurrentItem){return jsx$1(BreadcrumbCurrentItem,__assign({"aria-current":"page"},{children:item.text}),void 0);}return jsx$1(BreadcrumbItem,__assign({to:item.href,"data-page-breadcrumb-node":item.key},{children:item.text}),void 0);}function handleOnClick(e,item){e.stopPropagation();e.preventDefault();history.push({pathname:item.href});}};var MobileBreadcrumb=function MobileBreadcrumb(_a){var target=_a.target,parentNode=_a.parentNode;var formatMessage=useIntl().formatMessage;return jsxs(MobileBreadcrumbHost,__assign({"data-mobile-breadcrumb":true},{children:[jsx$1("li",{children:jsx$1(BreadcrumbHomeItem,__assign({to:target,"aria-label":formatMessage({id:'Generic.home'}),"data-pages-home-icon":true},{children:jsx$1(HomeIcon,{iconName:"HomeSolid"},void 0)}),void 0)},void 0),parentNode&&jsxs(ParentNode,{children:[jsx$1(LeftChevronIcon,{iconName:"ChevronLeft"},void 0),jsx$1(BreadcrumbItem,__assign({to:NewsService.getNewsRoute(target,parentNode.id,parentNode.title),"data-page-breadcrumb-parent-node":parentNode.id},{children:parentNode.title}),void 0)]},void 0)]}),void 0);};var MobileBreadcrumbHost=_styled.ul.withConfig({displayName:"PageBreadcrumb__MobileBreadcrumbHost",componentId:"sc-1m4qq1d-0"})(templateObject_1$O||(templateObject_1$O=__makeTemplateObject(["\n display: none;\n align-items: center;\n padding: 0;\n margin: 0;\n list-style: none;\n font-size: ","px;\n\n @media (max-width: ","px) {\n display: flex;\n }\n"],["\n display: none;\n align-items: center;\n padding: 0;\n margin: 0;\n list-style: none;\n font-size: ","px;\n\n @media (max-width: ","px) {\n display: flex;\n }\n"])),fontSizeSmall,maxScreenSize.medium);var ParentNode=_styled.li.withConfig({displayName:"PageBreadcrumb__ParentNode",componentId:"sc-1m4qq1d-1"})(templateObject_2$u||(templateObject_2$u=__makeTemplateObject(["\n margin: 0 ","px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n color: ",";\n"],["\n margin: 0 ","px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n color: ",";\n"])),spacingM,function(p){return p.theme.palette.accent;});var LeftChevronIcon=_styled(Icon).withConfig({displayName:"PageBreadcrumb__LeftChevronIcon",componentId:"sc-1m4qq1d-2"})(templateObject_3$m||(templateObject_3$m=__makeTemplateObject(["\n font-size: 10px;\n font-weight: bold;\n color: ",";\n"],["\n font-size: 10px;\n font-weight: bold;\n color: ",";\n"])),function(p){return p.theme.palette.accent;});var LargeScreenBreadcrumb=_styled(Breadcrumb).withConfig({displayName:"PageBreadcrumb__LargeScreenBreadcrumb",componentId:"sc-1m4qq1d-3"})(templateObject_4$d||(templateObject_4$d=__makeTemplateObject(["\n && {\n margin: 0;\n }\n\n .ms-Breadcrumb-chevron {\n font-weight: bold;\n }\n\n @media (max-width: ","px) {\n display: none;\n }\n"],["\n && {\n margin: 0;\n }\n\n .ms-Breadcrumb-chevron {\n font-weight: bold;\n }\n\n @media (max-width: ","px) {\n display: none;\n }\n"])),maxScreenSize.medium);var HomeIcon=_styled(Icon).withConfig({displayName:"PageBreadcrumb__HomeIcon",componentId:"sc-1m4qq1d-4"})(templateObject_5$c||(templateObject_5$c=__makeTemplateObject(["\n padding-top: 1px;\n"],["\n padding-top: 1px;\n"])));var BreadcrumbItem=_styled(NavLink).withConfig({displayName:"PageBreadcrumb__BreadcrumbItem",componentId:"sc-1m4qq1d-5"})(templateObject_6$6$1||(templateObject_6$6$1=__makeTemplateObject(["\n padding: 0 ","px;\n color: ",";\n"],["\n padding: 0 ","px;\n color: ",";\n"])),spacingS,function(p){return p.theme.palette.accent;});var BreadcrumbHomeItem=_styled(NavLink).withConfig({displayName:"PageBreadcrumb__BreadcrumbHomeItem",componentId:"sc-1m4qq1d-6"})(templateObject_7$4$1||(templateObject_7$4$1=__makeTemplateObject(["\n color: ",";\n\n + i {\n padding-left: ","px;\n }\n"],["\n color: ",";\n\n + i {\n padding-left: ","px;\n }\n"])),function(p){return p.theme.palette.accent;},spacingS);var BreadcrumbCurrentItem=_styled.div.withConfig({displayName:"PageBreadcrumb__BreadcrumbCurrentItem",componentId:"sc-1m4qq1d-7"})(templateObject_8$4$1||(templateObject_8$4$1=__makeTemplateObject(["\n padding-left: ","px;\n color: ",";\n"],["\n padding-left: ","px;\n color: ",";\n"])),spacingS,function(p){return p.theme.palette.neutralSecondaryAlt;});var templateObject_1$O,templateObject_2$u,templateObject_3$m,templateObject_4$d,templateObject_5$c,templateObject_6$6$1,templateObject_7$4$1,templateObject_8$4$1;var DetailViewPageDocumentDownload=function DetailViewPageDocumentDownload(){var user=useCurrentUser();var _a=useDetailViewContext(),item=_a.item,preferredContent=_a.content;if(!item){return null;}var content=(preferredContent===null||preferredContent===void 0?void 0:preferredContent.fileInfo)?preferredContent:getContentForPage(item,user).content;if(!(content===null||content===void 0?void 0:content.fileInfo)){return null;}return jsx$1(PageDocumentDownloadButton,{item:item,content:content},void 0);};var PageDocumentDownloadButton=function PageDocumentDownloadButton(_a){var item=_a.item,content=_a.content,basePath=_a.basePath;var _b=useInlinePageDocument({pageId:item.id,fileId:content.fileInfo.fileId,extension:content.fileInfo.extension,title:content.title,fileName:content.fileInfo.fileName},item,basePath),fileUrl=_b.fileUrl,iconName=_b.iconName,title=_b.title,fileName=_b.fileName,onPageDocumentDownloadClick=_b.onPageDocumentDownloadClick;return jsxs(Host$i,{children:[jsx$1(FormattedMessage$1,{id:"Pages.documents.buttonDownloadInfo"},void 0),jsx$1(DownloadButton,{fileUrl:fileUrl,fileName:fileName,title:title,fileIconName:iconName,onClick:onPageDocumentDownloadClick},void 0)]},void 0);};var Host$i=_styled.div.withConfig({displayName:"DetailViewPageDocumentDownload__Host",componentId:"sc-1gtkslm-0"})(templateObject_1$N||(templateObject_1$N=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingM);var DownloadButton=_styled(InlinePageDocumentDownloadButton).withConfig({displayName:"DetailViewPageDocumentDownload__DownloadButton",componentId:"sc-1gtkslm-1"})(templateObject_2$t||(templateObject_2$t=__makeTemplateObject(["\n margin-top: ","px;\n @media (min-width: ","px) {\n width: 50%;\n }\n"],["\n margin-top: ","px;\n @media (min-width: ","px) {\n width: 50%;\n }\n"])),spacingS,minScreenSize.medium);var templateObject_1$N,templateObject_2$t;_styled(PublishableItemBanner).withConfig({displayName:"CardBanner__StyledBanner",componentId:"sc-mqzdnh-0"})(templateObject_1$M||(templateObject_1$M=__makeTemplateObject(["\n &.video-view-container {\n height: 100%; /* this is needed for not overlapping the card title */\n }\n"],["\n &.video-view-container {\n height: 100%; /* this is needed for not overlapping the card title */\n }\n"])));var templateObject_1$M;_styled.div.withConfig({displayName:"Card__Host",componentId:"sc-1m8ygh-0"})(templateObject_1$L||(templateObject_1$L=__makeTemplateObject(["\n &.card {\n display: flex;\n background-color: white;\n box-shadow: 1px 1px 4px grey;\n box-sizing: border-box;\n\n width: 100%;\n\n margin-bottom: 10px;\n\n &[data-packed] {\n opacity: 1;\n }\n\n &.card-enter,\n &.card-appear {\n opacity: 0.01;\n }\n\n &.card-enter.card-enter-active,\n &.card-appear.card-appear-active {\n opacity: 1;\n transition: opacity 0.75s ease-in;\n }\n\n @media all and (min-width: ","px) {\n transition: opacity 0.75s ease-in;\n opacity: 0;\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n }\n"],["\n &.card {\n display: flex;\n background-color: white;\n box-shadow: 1px 1px 4px grey;\n box-sizing: border-box;\n\n width: 100%;\n\n margin-bottom: 10px;\n\n &[data-packed] {\n opacity: 1;\n }\n\n &.card-enter,\n &.card-appear {\n opacity: 0.01;\n }\n\n &.card-enter.card-enter-active,\n &.card-appear.card-appear-active {\n opacity: 1;\n transition: opacity 0.75s ease-in;\n }\n\n @media all and (min-width: ","px) {\n transition: opacity 0.75s ease-in;\n opacity: 0;\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n\n @media all and (min-width: ","px) {\n width: ","px;\n }\n }\n"])),minScreenSize.small,cardWidthS,minScreenSize.medium,cardWidthM,minScreenSize.large,cardWidthL,minScreenSize.xLarge,cardWidthXL);_styled.article.withConfig({displayName:"Card__Article",componentId:"sc-1m8ygh-1"})(templateObject_3$l||(templateObject_3$l=__makeTemplateObject(["\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n\n ","\n\n > .card-banner {\n height: calc(((100vw - ","px) * (1 / ",")));\n flex: 0 1 auto;\n }\n\n .card-title {\n margin-top: 7px;\n margin-bottom: 0;\n font-size: 1.1em;\n }\n\n .card-metaInfo {\n font-size: 0.9em;\n }\n\n .card-metaInfo {\n padding-top: ","px;\n color: #666;\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n\n .card-title {\n margin-top: 7px;\n font-size: 1.3em;\n }\n\n .card-metaInfo {\n font-size: 0.9em;\n }\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n }\n }\n"],["\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n\n ","\n\n > .card-banner {\n height: calc(((100vw - ","px) * (1 / ",")));\n flex: 0 1 auto;\n }\n\n .card-title {\n margin-top: 7px;\n margin-bottom: 0;\n font-size: 1.1em;\n }\n\n .card-metaInfo {\n font-size: 0.9em;\n }\n\n .card-metaInfo {\n padding-top: ","px;\n color: #666;\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n\n .card-title {\n margin-top: 7px;\n font-size: 1.3em;\n }\n\n .card-metaInfo {\n font-size: 0.9em;\n }\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n }\n\n @media all and (min-width: ","px) {\n > .card-banner {\n height: calc(","px * (1 / ","));\n }\n }\n }\n"])),function(p){return p.highlight&&css$2(templateObject_2$s||(templateObject_2$s=__makeTemplateObject(["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ","px;\n display: block;\n background-color: ",";\n }\n "],["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ","px;\n display: block;\n background-color: ",";\n }\n "])),spacingXs,function(p){return p.theme.palette.accent;});},spacingM,bannerAspectRatio,spacingM,minScreenSize.small,cardWidthS,bannerAspectRatio,minScreenSize.medium,cardWidthM,bannerAspectRatio,minScreenSize.large,cardWidthL,bannerAspectRatio,minScreenSize.xLarge,cardWidthXL,bannerAspectRatio);var templateObject_1$L,templateObject_2$s,templateObject_3$l;var LanguageSelector=function LanguageSelector(props){var history=useHistory();var currentUser=useCurrentUser();var buildPath=useSubscriptionHandlePathBuilder().buildPath;var getAllLanguagesLocalized=useLanguageApi().getAllLanguagesLocalized;var intl=useIntl();var formatMessage=intl.formatMessage;var languageDefinitions=usePromise$2(function(){return getAllLanguagesLocalized(intl);})[0];var features=useFeatures();if(languageDefinitions==null){return null;}if(props.chromeless)return jsx$1(ActionButton,__assign({iconProps:{iconName:'World'},menuProps:{items:getContextualMenuItems(),className:'lt-reach-callout'},className:classNames(props.className,'header-button')},{children:formatMessage({id:"Generic.languages."+props.selectedLanguage})}),void 0);return jsx$1(Tooltip,__assign({resourceKey:"Generic.translate"},{children:jsx$1(LanguageSelectorButton,{menuIconProps:{iconName:'World'},menuProps:{items:getContextualMenuItems(),className:'lt-reach-callout',isBeakVisible:props.showBeak},className:classNames(props.className,'header-button'),"data-language-selector-button":true,ariaLabel:formatMessage({id:'AriaLabel.autoTranslation'})},void 0)}),void 0);function getContextualMenuItems(){if(props.languages==null){return [];}var menuItems=[];var preferredLanguageItem=getPreferredLanguageItem();if(preferredLanguageItem){menuItems.push(preferredLanguageItem);}var activeLanguagesItems=getActiveLanguagesItems();activeLanguagesItems.sort(function(a,b){return a.text.localeCompare(b.text);});menuItems=menuItems.concat(activeLanguagesItems);if(!props.hideEditLanguagePreferences){var editLanguagePreferencesItem={key:'edit',text:formatMessage({id:'Generic.editLanguagePreferences'}),iconProps:{iconName:'PlayerSettings'},onClick:handleEditLanguagePreferences,className:'lt-reach-languageselector-menu-item'};menuItems.push(editLanguagePreferencesItem);}return menuItems;}function handleEditLanguagePreferences(){if(props.onEditLanguagePreferencesClick){props.onEditLanguagePreferencesClick();}else {history.push(buildPath('/user'));}}function getActiveLanguagesItems(){return props.languages.map(function(l){var fullLanguage=languageDefinitions.find(function(ld){return ld.code===l;});return {key:l,text:fullLanguage.localizedName,iconProps:{iconName:'World'},onClick:function(){return props.onLanguageChange(l.toString());},className:classNames('lt-reach-languageselector-menu-item',l===props.selectedLanguage&&'selected')};});}function getPreferredLanguageItem(){if(!features.automaticTranslation){return null;}if(!props.onTranslateClick){return null;}var preferredContentLanguage=getPreferredContentLanguage(currentUser);var shouldAddPreferredContentLanguage=preferredContentLanguage!=null&&!contentLanguagesWithoutAutomaticTranslation.includes(preferredContentLanguage)&&allAvailableContentLanguages.includes(preferredContentLanguage)&&props.languages.indexOf(preferredContentLanguage)<0;if(!shouldAddPreferredContentLanguage){return null;}return {key:preferredContentLanguage,text:formatMessage({id:'Generic.automaticTranslation'},{language:formatMessage({id:"Generic.languages."+preferredContentLanguage})}),iconProps:{iconName:'Robot'},onClick:function(){return props.onTranslateClick(preferredContentLanguage);},className:classNames('lt-reach-languageselector-menu-item',preferredContentLanguage===props.selectedLanguage&&'selected')};}};var LanguageSelectorButton=_styled(IconButton).withConfig({displayName:"LanguageSelector__LanguageSelectorButton",componentId:"sc-48zwek-0"})(templateObject_1$K||(templateObject_1$K=__makeTemplateObject(["\n && {\n height: 100%;\n margin: 0;\n background-color: transparent;\n }\n"],["\n && {\n height: 100%;\n margin: 0;\n background-color: transparent;\n }\n"])));var templateObject_1$K;_styled.article.withConfig({displayName:"DetailViewArticle__Host",componentId:"sc-we2q7z-0"})(templateObject_1$J||(templateObject_1$J=__makeTemplateObject(["\n min-width: 300px;\n width: 100%;\n\n flex: 1 0 auto;\n display: flex;\n flex-flow: column nowrap;\n\n @media (min-width: ","px) {\n box-shadow: 1px 1px 4px grey;\n max-width: ","px;\n }\n"],["\n min-width: 300px;\n width: 100%;\n\n flex: 1 0 auto;\n display: flex;\n flex-flow: column nowrap;\n\n @media (min-width: ","px) {\n box-shadow: 1px 1px 4px grey;\n max-width: ","px;\n }\n"])),minScreenSize.large+1,maxContentWidth);var templateObject_1$J;var DetailViewBanner=function DetailViewBanner(){var _a=useDetailViewContext(),item=_a.item,resourceType=_a.resourceType,isEditorPreview=_a.isEditorPreview;if(!item.bannerInfo){return null;}return jsx$1(Banner$3,{itemId:item.id,token:item.fileAccessToken,bannerInfo:item.bannerInfo,useEditorRoutes:isEditorPreview,width:getMaxImageWidth(),canOpenImage:true,resourceType:resourceType},void 0);};var Banner$3=_styled(PublishableItemBanner).withConfig({displayName:"DetailViewBanner__Banner",componentId:"sc-1wuqvtw-0"})(templateObject_1$I||(templateObject_1$I=__makeTemplateObject(["\n && {\n height: calc(100vw * (1 / ","));\n\n @media (min-width: ","px) {\n height: calc(\n (","px - (2 * ","px)) *\n (1 / ",")\n );\n }\n }\n"],["\n && {\n height: calc(100vw * (1 / ","));\n\n @media (min-width: ","px) {\n height: calc(\n (","px - (2 * ","px)) *\n (1 / ",")\n );\n }\n }\n"])),bannerAspectRatio,minScreenSize.large+1,minScreenSize.large,spacingM,bannerAspectRatio);var templateObject_1$I;var DetailViewIntro=function DetailViewIntro(){var content=useDetailViewContext().content;var hasIntro=content.intro&&content.intro.length>0;if(!hasIntro){return null;}return jsx$1(DetailIntro,{children:content.intro},void 0);};var DetailIntro=_styled.p.withConfig({displayName:"DetailViewIntro__DetailIntro",componentId:"sc-1kubhyf-0"})(templateObject_1$H||(templateObject_1$H=__makeTemplateObject(["\n margin: 0;\n font-size: ","px;\n line-height: 26px;\n font-weight: normal;\n\n min-width: 100%;\n width: 100px;\n\n @media (min-width: ","px) {\n margin-top: ","px;\n margin-bottom: ","px;\n line-height: 24px;\n font-size: ","px;\n }\n"],["\n margin: 0;\n font-size: ","px;\n line-height: 26px;\n font-weight: normal;\n\n min-width: 100%;\n width: 100px;\n\n @media (min-width: ","px) {\n margin-top: ","px;\n margin-bottom: ","px;\n line-height: 24px;\n font-size: ","px;\n }\n"])),fontSizeNormal,minScreenSize.small,spacingS,spacingS+2,fontSizeMedium+2);var templateObject_1$H;var DetailMainSection=function DetailMainSection(_a){var children=_a.children;return jsx$1(DetailMainStyledSection,__assign({className:"detail-view-main"},{children:children}),void 0);};var DetailMainStyledSection=_styled.section.withConfig({displayName:"DetailViewMainSection__DetailMainStyledSection",componentId:"sc-ifywhg-0"})(templateObject_1$G||(templateObject_1$G=__makeTemplateObject(["\n position: relative;\n flex: 1 0 auto;\n display: flex;\n flex-direction: column;\n padding: ","px ","px\n ","px;\n font-size: 16px;\n\n @media (min-width: ","px) {\n padding: ","px\n ","px ","px;\n }\n"],["\n position: relative;\n flex: 1 0 auto;\n display: flex;\n flex-direction: column;\n padding: ","px ","px\n ","px;\n font-size: 16px;\n\n @media (min-width: ","px) {\n padding: ","px\n ","px ","px;\n }\n"])),detailViewSectionPadding-5,detailViewSectionPadding,detailViewSectionPadding,minScreenSize.small,detailViewSectionPaddingLarge-10,detailViewSectionPaddingLarge,detailViewSectionPaddingLarge);var templateObject_1$G;var GutterMarkerIcon=function GutterMarkerIcon(_a){var iconName=_a.iconName,children=_a.children,isActive=_a.isActive,color=_a.color,tooltipResourceKey=_a.tooltipResourceKey,className=_a.className;return jsxs(Host$f$1,__assign({className:className},{children:[jsx$1(IconContainer$1,__assign({isActive:isActive,className:isActive?"ms-bgColor-"+color:'ms-bgColor-white'},{children:isActive&&jsx$1(StyledTooltip,__assign({resourceKey:tooltipResourceKey},{children:jsx$1(StyledIcon$2$1,{className:"ms-fontColor-white",iconName:iconName},void 0)}),void 0)}),void 0),isActive?jsx$1(ActiveContent,__assign({className:"ms-borderColor-"+color},{children:children}),void 0):jsx$1(Content$3,{children:children},void 0)]}),void 0);};var Host$f$1=_styled.div.withConfig({displayName:"GutterMakerIcon__Host",componentId:"sc-aa2cf4-0"})(templateObject_1$F||(templateObject_1$F=__makeTemplateObject(["\n margin: 0;\n display: flex;\n align-content: center;\n"],["\n margin: 0;\n display: flex;\n align-content: center;\n"])));var StyledIcon$2$1=_styled(Icon).withConfig({displayName:"GutterMakerIcon__StyledIcon",componentId:"sc-aa2cf4-1"})(templateObject_2$r||(templateObject_2$r=__makeTemplateObject(["\n font-size: 25px;\n"],["\n font-size: 25px;\n"])));var Content$3=_styled.div.withConfig({displayName:"GutterMakerIcon__Content",componentId:"sc-aa2cf4-2"})(templateObject_3$k||(templateObject_3$k=__makeTemplateObject(["\n flex: 1 1 auto;\n flex-basis: 100%; /*IE fix*/\n\n display: flex;\n align-items: center;\n\n box-sizing: border-box;\n"],["\n flex: 1 1 auto;\n flex-basis: 100%; /*IE fix*/\n\n display: flex;\n align-items: center;\n\n box-sizing: border-box;\n"])));var ActiveContent=_styled(Content$3).withConfig({displayName:"GutterMakerIcon__ActiveContent",componentId:"sc-aa2cf4-3"})(templateObject_4$c||(templateObject_4$c=__makeTemplateObject(["\n padding-left: 10px;\n min-height: 50px;\n\n border-bottom-style: solid;\n border-bottom-width: 4px;\n"],["\n padding-left: 10px;\n min-height: 50px;\n\n border-bottom-style: solid;\n border-bottom-width: 4px;\n"])));var IconContainer$1=_styled.div.withConfig({displayName:"GutterMakerIcon__IconContainer",componentId:"sc-aa2cf4-4"})(templateObject_5$b||(templateObject_5$b=__makeTemplateObject(["\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n padding: 10px 0;\n"],["\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: ",";\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n padding: 10px 0;\n"])),function(_a){var isActive=_a.isActive;return isActive?'50px':'auto';});var StyledTooltip=_styled(Tooltip).withConfig({displayName:"GutterMakerIcon__StyledTooltip",componentId:"sc-aa2cf4-5"})(templateObject_6$5$1||(templateObject_6$5$1=__makeTemplateObject(["\n && {\n display: inherit;\n }\n"],["\n && {\n display: inherit;\n }\n"])));var templateObject_1$F,templateObject_2$r,templateObject_3$k,templateObject_4$c,templateObject_5$b,templateObject_6$5$1;var DetailViewTitle=function DetailViewTitle(){var _a=useDetailViewContext(),content=_a.content,item=_a.item;var hasAlert=hasFlag(item.knownState,KnownNewsState.Alert);return jsx$1(GutterMarkerIcon,__assign({iconName:"Warning",isActive:hasAlert,color:"red",tooltipResourceKey:"NewsArticle.alert"},{children:jsx$1(Title$4,__assign({"data-title":true},{children:content.title}),void 0)}),void 0);};var Title$4=_styled.h1.withConfig({displayName:"DetailViewTitle__Title",componentId:"sc-1jbzvna-0"})(templateObject_1$E||(templateObject_1$E=__makeTemplateObject(["\n color: black;\n width: 100%;\n font-size: ","px;\n line-height: 29px;\n margin: 0;\n\n @media (min-width: ","px) {\n font-size: 2.2em;\n line-height: 42px;\n }\n"],["\n color: black;\n width: 100%;\n font-size: ","px;\n line-height: 29px;\n margin: 0;\n\n @media (min-width: ","px) {\n font-size: 2.2em;\n line-height: 42px;\n }\n"])),fontSizeLarge-1,minScreenSize.small);var templateObject_1$E;_styled(ItemMetaInfo).withConfig({displayName:"NewsDetailViewMetaInfo__DetailMetaInfo",componentId:"sc-kib7we-0"})(templateObject_1$D||(templateObject_1$D=__makeTemplateObject(["\n display: flex;\n font-size: ","px;\n margin-top: 12px;\n"],["\n display: flex;\n font-size: ","px;\n margin-top: 12px;\n"])),fontSizeSmall);var templateObject_1$D;var mappers=[InlineImageMapper,InlineFileMapper,InlineQuoteMapper,InlineGalleryMapper,InlineCodeMapper,InlineVideoMapper,InlineTable,InlineContactMapper,InlinePageListMapper,InlineUrlPreviewMapper];var RichTextViewer=function RichTextViewer(_a){var html=_a.html;return jsx$1(TextViewer,{html:html,componentMappers:mappers},void 0);};var DetailViewBody=function DetailViewBody(){var _a=useDetailViewContext(),content=_a.content,resourceType=_a.resourceType;var bodyHtml=content&&content.body;return jsx$1(DetailBody$1,__assign({className:"lt-reach-detail-view-body","data-item-type":resourceType},{children:jsx$1(ItemBodyWrapper,{children:jsx$1(RichTextViewer,{html:bodyHtml},void 0)},void 0)}),void 0);};var DetailBody$1=_styled.div.withConfig({displayName:"DetailViewBody__DetailBody",componentId:"sc-7b4trq-0"})(templateObject_1$C||(templateObject_1$C=__makeTemplateObject(["\n flex: 1 0 auto;\n box-sizing: border-box;\n min-width: 100%;\n width: 100px;\n margin-top: 35px;\n\n // So that headings have the correct semantics for accessibility (i.e. title is h1, subheadings start at h2),\n // but maintain the same visual design, this styles each heading to look one \"step\" larger\n // e.g. h2 looks like h1, etc.\n && {\n h2 {\n font-size: ","px;\n margin: ","px 0;\n }\n\n h3 {\n font-size: ","px;\n }\n\n h4 {\n font-size: ","px;\n }\n\n h3,\n h4,\n h5,\n h6 {\n margin: ","px 0;\n }\n }\n"],["\n flex: 1 0 auto;\n box-sizing: border-box;\n min-width: 100%;\n width: 100px;\n margin-top: 35px;\n\n // So that headings have the correct semantics for accessibility (i.e. title is h1, subheadings start at h2),\n // but maintain the same visual design, this styles each heading to look one \"step\" larger\n // e.g. h2 looks like h1, etc.\n && {\n h2 {\n font-size: ","px;\n margin: ","px 0;\n }\n\n h3 {\n font-size: ","px;\n }\n\n h4 {\n font-size: ","px;\n }\n\n h3,\n h4,\n h5,\n h6 {\n margin: ","px 0;\n }\n }\n"])),fontSizeLarge-1,spacingS+2,fontSizeLarge-3,fontSizeLarge-5,spacingS);var templateObject_1$C;var DetailViewKeywords=function DetailViewKeywords(_a){var filterBaseUrl=_a.filterBaseUrl;var features=useFeatures();var _b=useDetailViewContext(),item=_b.item,userPreferredLanguage=_b.userPreferredLanguage;var formatMessage=useIntl().formatMessage;if(!features.keywords){return null;}return jsx$1(Fragment,{children:Object.keys(item.keywords).length>0&&jsx$1(KeywordsSection,__assign({"aria-label":formatMessage({id:'AriaLabel.section.keywords'})},{children:jsx$1(KeywordsInfo,{keywords:item.keywords,language:userPreferredLanguage,filterBaseUrl:filterBaseUrl},void 0)}),void 0)},void 0);};var KeywordsSection=_styled.section.withConfig({displayName:"DetailViewKeywords__KeywordsSection",componentId:"sc-ltysu4-0"})(templateObject_1$B||(templateObject_1$B=__makeTemplateObject(["\n margin-top: 2em;\n display: flex;\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"],["\n margin-top: 2em;\n display: flex;\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"])),maxScreenSize.medium,fontSizeSmall);var templateObject_1$B;var ConfirmationBox=function ConfirmationBox(_a){var disabled=_a.disabled,checked=_a.checked,onChange=_a.onChange;var formatMessage=useIntl().formatMessage;return jsx$1(Host$e$1,{children:jsx$1(NeutralCheckBox,{disabled:disabled,checked:checked,onChange:function(_,value){return onChange(value);},label:formatMessage({id:checked?'NewsArticle.confirmed':'NewsArticle.confirm'})},void 0)},void 0);};var Host$e$1=_styled.div.withConfig({displayName:"ConfirmationBox__Host",componentId:"sc-1m5alil-0"})(templateObject_1$A||(templateObject_1$A=__makeTemplateObject(["\n .ms-Checkbox-text {\n font-weight: bold;\n color: black;\n }\n"],["\n .ms-Checkbox-text {\n font-weight: bold;\n color: black;\n }\n"])));var templateObject_1$A;var ConfirmationSection=function ConfirmationSection(_a){var item=_a.item,showDescription=_a.showDescription,readOnly=_a.readOnly,className=_a.className;var refreshStatistics=useNewsApi().refreshStatistics;var _b=useNotificationContext(),dismissToast=_b.dismissToast,showToast=_b.showToast,showError=_b.showError;var _c=useFeedbackApi(),getFeedback=_c.getFeedback,setFeedback=_c.setFeedback,unsetFeedback=_c.unsetFeedback;var _d=usePromise$2(function(){return getFeedback(ItemResourceTypes.News,item.id);}),summary=_d[0],isLoading=_d[1];var _e=useState$2(null),userChecked=_e[0],setChecked=_e[1];var toastHandle=useRef$1(null);var checked=userChecked!==null?userChecked:summary!=null&&!!summary.records.find(function(r){return r.type==='confirm';});return jsxs(Host$d$1,__assign({isLoading:isLoading,className:className},{children:[showDescription&&jsx$1(FormattedMessage$1,{id:"NewsArticle.confirmationRequiredDescription",tagName:"p"},void 0),jsx$1(StyledGutterMarkerIcon,__assign({iconName:"Completed",isActive:!isLoading&&!checked,color:"green"},{children:readOnly?jsx$1(ConfirmationBox,{checked:checked,disabled:true},void 0):jsx$1(ConfirmationBox,{checked:checked,disabled:checked,onChange:handleClickConfirm},void 0)}),void 0)]}),void 0);function handleClickConfirm(){return __awaiter(this,void 0,void 0,function(){var error_1;return __generator(this,function(_a){switch(_a.label){case 0:setChecked(true);_a.label=1;case 1:_a.trys.push([1,4,,5]);return [4/*yield*/,setFeedback(ItemResourceTypes.News,item.id,'confirm')];case 2:_a.sent();toastHandle.current=showToast('NewsArticle.confirmationSuccessToast',{},jsx$1(DefaultButton,__assign({onClick:handleUndo},{children:jsx$1(FormattedMessage$1,{id:"Generic.undo"},void 0)}),void 0),{autoClose:false});return [4/*yield*/,refreshStatistics(item.id,{confirmationCount:1})];case 3:_a.sent();return [3/*break*/,5];case 4:error_1=_a.sent();logger.error(error_1);showError('Generic.error');setChecked(false);return [3/*break*/,5];case 5:return [2/*return*/];}});});}function handleUndo(){return __awaiter(this,void 0,void 0,function(){var error_2;return __generator(this,function(_a){switch(_a.label){case 0:_a.trys.push([0,3,,4]);dismissToast(toastHandle.current);toastHandle.current=null;return [4/*yield*/,unsetFeedback(ItemResourceTypes.News,item.id,'confirm')];case 1:_a.sent();return [4/*yield*/,refreshStatistics(item.id,{confirmationCount:-1})];case 2:_a.sent();setChecked(false);return [3/*break*/,4];case 3:error_2=_a.sent();logger.error(error_2);showError('Generic.error');return [3/*break*/,4];case 4:return [2/*return*/];}});});}};var Host$d$1=_styled.div.withConfig({displayName:"ConfirmationSection__Host",componentId:"sc-1g2fxdb-0"})(templateObject_1$z||(templateObject_1$z=__makeTemplateObject(["\n width: 100%;\n\n opacity: ",";\n\n > p {\n margin: 0 0 5px ","px;\n font-style: italic;\n }\n\n @media (min-width: ","px) {\n > p {\n margin: 0 0 ","px 0;\n }\n }\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"],["\n width: 100%;\n\n opacity: ",";\n\n > p {\n margin: 0 0 5px ","px;\n font-style: italic;\n }\n\n @media (min-width: ","px) {\n > p {\n margin: 0 0 ","px 0;\n }\n }\n\n @media (max-width: ","px) {\n font-size: ","px;\n }\n"])),function(_a){var isLoading=_a.isLoading;return isLoading?0.4:1;},spacingM,minScreenSize.small,spacingS,maxScreenSize.medium,fontSizeSmall);var StyledGutterMarkerIcon=_styled(GutterMarkerIcon).withConfig({displayName:"ConfirmationSection__StyledGutterMarkerIcon",componentId:"sc-1g2fxdb-1"})(templateObject_2$q||(templateObject_2$q=__makeTemplateObject(["\n @media (max-width: ","px) {\n margin: 0 ","px 0;\n }\n"],["\n @media (max-width: ","px) {\n margin: 0 ","px 0;\n }\n"])),maxScreenSize.small,spacingM);var templateObject_1$z,templateObject_2$q;var DetailViewConfirmations=function DetailViewConfirmations(){var features=useFeatures();var _a=useDetailViewContext(),item=_a.item,isEditorPreview=_a.isEditorPreview;var formatMessage=useIntl().formatMessage;if(!showConfirmationBox()){return null;}return jsx$1(ConfirmationHost,__assign({"aria-label":formatMessage({id:'NewsArticle.confirmation'})},{children:jsx$1(ConfirmationSection,{item:item,showDescription:true,readOnly:isEditorPreview},void 0)}),void 0);function showConfirmationBox(){return features.confirmation&&item.metadata&&item.metadata.feedbackSettings&&item.metadata.feedbackSettings.feedbackOptions.indexOf('confirm')>=0;}};var ConfirmationHost=_styled.section.withConfig({displayName:"DetailViewConfirmations__ConfirmationHost",componentId:"sc-f8jogv-0"})(templateObject_1$y||(templateObject_1$y=__makeTemplateObject(["\n margin-bottom: ","px;\n\n @media (min-width: ","px) {\n padding: 0 ","px 0 ","px;\n }\n"],["\n margin-bottom: ","px;\n\n @media (min-width: ","px) {\n padding: 0 ","px 0 ","px;\n }\n"])),spacingL,minScreenSize.small,spacingXl,spacingXl);var templateObject_1$y;var DetailViewPageViewTracker=function DetailViewPageViewTracker(){var _a=useDetailViewContext(),resourceType=_a.resourceType,itemId=_a.itemId;usePageViewTracker(resourceType,itemId);return null;};var FeedbackButtonBookmark=function FeedbackButtonBookmark(_a){var isReadOnly=_a.isReadOnly;var _b=useContext(FeedbackButtonContext),item=_b.item,bookmarkCount=_b.statistics.bookmarkCount;return jsxs(CountButtonHost,{children:[jsx$1(BookmarkButton,{item:item,isReadOnly:isReadOnly},void 0),jsx$1(CountLabel,__assign({isDisabled:isReadOnly},{children:bookmarkCount}),void 0)]},void 0);};var NewsDetailViewFeedbackSection=function NewsDetailViewFeedbackSection(_a){var _b;var hideLikes=_a.hideLikes,hideComments=_a.hideComments,hideProfileUrl=_a.hideProfileUrl,disableLoginForPublicUser=_a.disableLoginForPublicUser;var _c=useDetailViewContext(),item=_c.item,resourceType=_c.resourceType,contentLanguage=_c.contentLanguage,isEditorPreview=_c.isEditorPreview;return jsxs(StyledFeedbackSection,__assign({item:item,language:contentLanguage,type:resourceType,feedbackSettings:(_b=item.metadata)===null||_b===void 0?void 0:_b.feedbackSettings,hideComments:hideComments,hideProfileUrl:hideProfileUrl,disableLoginForPublicUser:disableLoginForPublicUser,isReadOnly:isEditorPreview},{children:[!hideLikes&&jsx$1(FeedbackButtonLike,{isReadOnly:isEditorPreview},void 0),jsx$1(FeedbackButtonBookmark,{isReadOnly:isEditorPreview},void 0),!hideComments&&jsx$1(FeedbackButtonComments,{},void 0),jsx$1(FeedbackButtonViews,{},void 0),jsx$1(FeedbackButtonShare,{isReadOnly:isEditorPreview},void 0),jsx$1(FeedbackButtonConfirmations,{},void 0)]}),void 0);};var StyledFeedbackSection=_styled(FeedbackSection).withConfig({displayName:"NewsDetailViewFeedbackSection__StyledFeedbackSection",componentId:"sc-pjpy6x-0"})(templateObject_1$x||(templateObject_1$x=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),DetailViewSectionPadding);var templateObject_1$x;var DetailViewBodyExternalContent=function DetailViewBodyExternalContent(_a){var itemType=_a.itemType;var content=useDetailViewContext().content;var externalUrl=content&&content.externalUrl;return jsx$1(DetailBody,__assign({className:"lt-reach-detail-view-body"},{children:jsx$1(ItemBodyWrapper,{children:jsx$1(FormattedMessageWithStyle,{id:"ExternalLink."+itemType+".navigateTo",tagName:"p",values:{url:jsx$1(ExternalLink$2,__assign({href:externalUrl,className:"ms-fontColor-accent",target:"_blank",rel:"noopener noreferrer"},{children:externalUrl}),void 0)}},void 0)},void 0)}),void 0);};var DetailBody=_styled.div.withConfig({displayName:"DetailViewBodyExternalContent__DetailBody",componentId:"sc-1xjgw89-0"})(templateObject_1$w||(templateObject_1$w=__makeTemplateObject(["\n flex: 1 0 auto;\n box-sizing: border-box;\n min-width: 100%;\n width: 100px;\n margin-top: 35px;\n"],["\n flex: 1 0 auto;\n box-sizing: border-box;\n min-width: 100%;\n width: 100px;\n margin-top: 35px;\n"])));var templateObject_1$w;var DetailViewHeadline=function DetailViewHeadline(){var content=useDetailViewContext().content;var features=useFeatures();if(!features.contentHeadline||!content.headline){return null;}return jsx$1(Headline$1$1,__assign({"data-detail-view-headline":true},{children:content.headline}),void 0);};var Headline$1$1=_styled.p.withConfig({displayName:"DetailViewHeadline__Headline",componentId:"sc-wsid06-0"})(templateObject_1$v||(templateObject_1$v=__makeTemplateObject(["\n width: 100%;\n font-weight: bold;\n font-size: ","px;\n line-height: 26px;\n margin: 0;\n\n @media (min-width: ","px) {\n line-height: 22px;\n font-size: ","px;\n margin-bottom: ","px;\n }\n"],["\n width: 100%;\n font-weight: bold;\n font-size: ","px;\n line-height: 26px;\n margin: 0;\n\n @media (min-width: ","px) {\n line-height: 22px;\n font-size: ","px;\n margin-bottom: ","px;\n }\n"])),fontSizeNormal,minScreenSize.small,fontSizeMedium,spacingS);var templateObject_1$v;var StateIcon=function StateIcon(_a){var status=_a.status,isActive=_a.isActive,_b=_a.width,width=_b===void 0?16:_b,activeColor=_a.activeColor;var textColors=useContext(ThemeContext$1).theme.textColors;if(status===WorkflowStatus.draft){return jsx$1(Draft,{width:width,color:isActive?activeColor||textColors.onSecondary:textColors.default},void 0);}else if(status===WorkflowStatus.rejected){return jsx$1(Draft,{width:width,color:isActive?activeColor:'#b90000'},void 0);}else if(status===WorkflowStatus.ready){return jsx$1(Ready,{width:width,color:isActive?activeColor||textColors.onSecondary:textColors.default},void 0);}return null;};var Draft=function Draft(_a){var color=_a.color,className=_a.className,_b=_a.width,width=_b===void 0?16.25:_b;var ratio=20/16.25;return jsx$1("svg",__assign({className:className,version:"1.1",id:"Layer_1",x:"0px",y:"0px",width:width+"px",height:width*ratio+"px",viewBox:"0 0 16.25 20",enableBackground:"new 0 0 16.25 20"},{children:jsx$1("path",{fill:color,d:"M10,6.25V0h0.89l5.36,5.361V6.25H10z M11.25,5h2.861L11.25,2.139V5z M10,0H9.25v1.25H10V0z M7.675,1.25H6.1\n\tV0h1.575V1.25z M4.525,1.25H2.95V0h1.575V1.25z M1.25,17.057H0v-1.567h1.25V17.057z M1.25,13.921H0v-1.568h1.25V13.921z\n\t M1.25,10.784H0V9.216h1.25V10.784z M1.25,7.647H0V6.08h1.25V7.647z M1.25,4.512H0V2.943h1.25V4.512z M13.375,\n\t 20h-1.5v-1.25h1.5V20z\n\t M10.375,20h-1.5v-1.25h1.5V20z M7.375,20h-1.5v-1.25h1.5V20z M4.375,20h-1.5v-1.25h1.5V20z M16.25,\n\t 16.964H15v-1.661h1.25V16.964z\n\t M16.25,13.643H15v-1.661h1.25V13.643z M16.25,10.321H15V8.66h1.25V10.321z M16.25,6.25H15V7h1.25V6.25z\n\t M1.25,18.75H0V20h1.25\n\tV18.75z M1.25,0H0v1.25h1.25V0z M16.25,18.75H15V20h1.25V18.75z"},void 0)}),void 0);};var Ready=function Ready(_a){var color=_a.color,className=_a.className,_b=_a.width,width=_b===void 0?18.564:_b;var ratio=20/18.564;return jsx$1("svg",__assign({className:className,version:"1.1",id:"Layer_1",x:"0px",y:"0px",width:width+"px",height:width*ratio+"px",viewBox:"0 0 18.564 20",enableBackground:"new 0 0 18.564 20"},{children:jsx$1("path",{fill:color,d:"M10,6.25v-5H1.25v17.5H10V20H0V0h10.889l5.361,5.361V12.5L15,13.75v-7.5H10z M18.564,14.551L13.125,20\n \tl-2.627-2.637l0.879-0.879l1.748,1.738l4.561-4.551L18.564,14.551z M11.25,5h2.861L11.25,2.139V5z"},void 0)}),void 0);};function useCommonEditorApi(){var api=useApi();return useMemo(function(){return {list:list,getTaskViewCounts:getTaskViewCounts};function list(type,filter,token,sortDefinition){var params=Object.assign({},filter,{token:token},sortDefinition);return api.custom("editor/"+type+"?"+queryString.stringify(params)).get().then(function(res){return res.body().data();});}function getTaskViewCounts(type,groupId){return __awaiter(this,void 0,void 0,function(){var response;return __generator(this,function(_a){switch(_a.label){case 0:return [4/*yield*/,api.custom("editor/"+type+"/taskcounts?"+queryString.stringify({groupId:groupId})).get(groupId)];case 1:response=_a.sent();return [4/*yield*/,response.body().data()];case 2:return [2/*return*/,_a.sent()];}});});}},[api]);}var SortFieldsDefinitionBuilder=/** @class */function(){function SortFieldsDefinitionBuilder(){this.sort=[];}SortFieldsDefinitionBuilder.prototype.addSortField=function(field,direction){this.sort.push(field+":"+SortFieldsDefinitionBuilder.getSortDirectionAsString(direction));return this;};SortFieldsDefinitionBuilder.getSortDirectionAsString=function(direction){return direction===SortDirection.asc?'asc':'desc';};return SortFieldsDefinitionBuilder;}();var EventSortFieldsDefinitionBuilder=/** @class */function(_super){__extends(EventSortFieldsDefinitionBuilder,_super);function EventSortFieldsDefinitionBuilder(){return _super!==null&&_super.apply(this,arguments)||this;}EventSortFieldsDefinitionBuilder.create=function(){return new EventSortFieldsDefinitionBuilder();};return EventSortFieldsDefinitionBuilder;}(SortFieldsDefinitionBuilder);EventSortFieldsDefinitionBuilder.create().addSortField('startDate',SortDirection.desc);EventSortFieldsDefinitionBuilder.create().addSortField('publishingDate',SortDirection.desc);var ItemType;(function(ItemType){ItemType[ItemType["None"]=0]="None";ItemType[ItemType["News"]=1]="News";ItemType[ItemType["Post"]=2]="Post";ItemType[ItemType["Page"]=4]="Page";ItemType[ItemType["Event"]=8]="Event";})(ItemType||(ItemType={}));var BaseFilterDefinitionImpl=/** @class */function(){function BaseFilterDefinitionImpl(){}return BaseFilterDefinitionImpl;}();__spreadArray(__spreadArray([],Object.keys(new BaseFilterDefinitionImpl())),['hideChrome','teams']);_styled.div.withConfig({displayName:"KeywordPickerGroup__Host",componentId:"sc-pu16jm-0"})(templateObject_1$u||(templateObject_1$u=__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),spacingS);_styled(ActionButton).withConfig({displayName:"KeywordPickerGroup__GroupButton",componentId:"sc-pu16jm-1"})(templateObject_2$p||(templateObject_2$p=__makeTemplateObject(["\n && {\n height: auto;\n font-size: ","px;\n padding: 0;\n border: 0;\n\n i {\n font-size: ","px;\n\n &:first-child {\n margin: 0;\n }\n }\n }\n"],["\n && {\n height: auto;\n font-size: ","px;\n padding: 0;\n border: 0;\n\n i {\n font-size: ","px;\n\n &:first-child {\n margin: 0;\n }\n }\n }\n"])),fontSizeNormal,fontSizeSmall);_styled(Icon).withConfig({displayName:"KeywordPickerGroup__CheckMarkIcon",componentId:"sc-pu16jm-2"})(templateObject_3$j||(templateObject_3$j=__makeTemplateObject(["\n margin-right: 6px;\n margin-left: 12px;\n width: 15px;\n"],["\n margin-right: 6px;\n margin-left: 12px;\n width: 15px;\n"])));_styled.span.withConfig({displayName:"KeywordPickerGroup__ButtonLabel",componentId:"sc-pu16jm-3"})(templateObject_5$a||(templateObject_5$a=__makeTemplateObject(["\n display: inline-flex;\n flex: 1 0 auto;\n\n ","\n"],["\n display: inline-flex;\n flex: 1 0 auto;\n\n ","\n"])),function(p){return !p.isSelected&&css$2(templateObject_4$b$1||(templateObject_4$b$1=__makeTemplateObject(["\n margin-left: 33px; // checkmark icon space\n "],["\n margin-left: 33px; // checkmark icon space\n "])));});_styled.ul.withConfig({displayName:"KeywordPickerGroup__KeywordsList",componentId:"sc-pu16jm-4"})(templateObject_7$3$1||(templateObject_7$3$1=__makeTemplateObject(["\n ","\n padding: 0;\n margin: 0 0 0 ","px;\n list-style: none;\n"],["\n ","\n padding: 0;\n margin: 0 0 0 ","px;\n list-style: none;\n"])),function(p){return p.isCollapsed&&css$2(templateObject_6$4$1||(templateObject_6$4$1=__makeTemplateObject(["\n display: none;\n "],["\n display: none;\n "])));},spacingX+10);_styled.li.withConfig({displayName:"KeywordPickerGroup__KeywordItem",componentId:"sc-pu16jm-5"})(templateObject_8$3$1||(templateObject_8$3$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-top: 9px;\n"],["\n display: flex;\n align-items: center;\n margin-top: 9px;\n"])));var templateObject_1$u,templateObject_2$p,templateObject_3$j,templateObject_4$b$1,templateObject_5$a,templateObject_6$4$1,templateObject_7$3$1,templateObject_8$3$1;_styled.div.withConfig({displayName:"KeywordPicker__KeywordPickerTree",componentId:"sc-1ejjfwa-0"})(templateObject_1$t||(templateObject_1$t=__makeTemplateObject(["\n padding-left: 4px;\n"],["\n padding-left: 4px;\n"])));_styled(ToggleAllButtons).withConfig({displayName:"KeywordPicker__StyledToggleAllButtons",componentId:"sc-1ejjfwa-1"})(templateObject_2$o||(templateObject_2$o=__makeTemplateObject(["\n padding-left: 4px;\n"],["\n padding-left: 4px;\n"])));_styled.div.withConfig({displayName:"KeywordPicker__Host",componentId:"sc-1ejjfwa-2"})(templateObject_3$i||(templateObject_3$i=__makeTemplateObject(["\n overflow-x: hidden;\n overflow-y: auto;\n\n .ms-TextField-fieldGroup {\n background: none;\n }\n"],["\n overflow-x: hidden;\n overflow-y: auto;\n\n .ms-TextField-fieldGroup {\n background: none;\n }\n"])));_styled.div.withConfig({displayName:"KeywordPicker__SearchHost",componentId:"sc-1ejjfwa-3"})(templateObject_4$a$1||(templateObject_4$a$1=__makeTemplateObject(["\n position: relative;\n margin-bottom: 8px;\n"],["\n position: relative;\n margin-bottom: 8px;\n"])));_styled(IconButton).withConfig({displayName:"KeywordPicker__SearchCancelButton",componentId:"sc-1ejjfwa-4"})(templateObject_5$9$1||(templateObject_5$9$1=__makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 10;\n\n &&&:focus::after {\n outline-offset: -2px;\n }\n"],["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 10;\n\n &&&:focus::after {\n outline-offset: -2px;\n }\n"])));var templateObject_1$t,templateObject_2$o,templateObject_3$i,templateObject_4$a$1,templateObject_5$9$1;var $$2=_export;var requireObjectCoercible$1$1=requireObjectCoercible$c;var isRegExp$4=isRegexp;var getRegExpFlags=regexpFlags$1$1;var wellKnownSymbol$1=wellKnownSymbol$l;var REPLACE$2=wellKnownSymbol$1('replace');var RegExpPrototype$3=RegExp.prototype;// `String.prototype.replaceAll` method
|
|
131805
131805
|
// https://github.com/tc39/proposal-string-replace-all
|
|
131806
|
-
$$2({target:'String',proto:true},{replaceAll:function replaceAll(searchValue,replaceValue){var O=requireObjectCoercible$1$1(this);var IS_REG_EXP,flags,replacer,string,searchString,template,result,position,index;if(searchValue!=null){IS_REG_EXP=isRegExp(searchValue);if(IS_REG_EXP){flags=String(requireObjectCoercible$1$1('flags'in RegExpPrototype$3?searchValue.flags:getRegExpFlags.call(searchValue)));if(!~flags.indexOf('g'))throw TypeError('`.replaceAll` does not allow non-global regexes');}replacer=searchValue[REPLACE$2];if(replacer!==undefined){return replacer.call(searchValue,O,replaceValue);}}string=String(O);searchString=String(searchValue);if(searchString==='')return replaceAll.call(string,/(?:)/g,replaceValue);template=string.split(searchString);if(typeof replaceValue!=='function'){return template.join(String(replaceValue));}result=template[0];position=result.length;for(index=1;index<template.length;index++){result+=String(replaceValue(searchString,position,string));position+=searchString.length+template[index].length;result+=template[index];}return result;}});_styled.div.withConfig({displayName:"Textarea__Host",componentId:"sc-170lrb4-0"})(templateObject_1$s||(templateObject_1$s=__makeTemplateObject(["\n display: flex;\n align-items: flex-end;\n position: relative;\n"],["\n display: flex;\n align-items: flex-end;\n position: relative;\n"])));_styled.textarea.withConfig({displayName:"Textarea__StyledTextarea",componentId:"sc-170lrb4-1"})(templateObject_2$n||(templateObject_2$n=__makeTemplateObject(["\n flex: 1 0 auto;\n justify-content: space-between;\n overflow: hidden;\n resize: none;\n min-height: 5px;\n\n ","\n"],["\n flex: 1 0 auto;\n justify-content: space-between;\n overflow: hidden;\n resize: none;\n min-height: 5px;\n\n ","\n"])),InputPlaceholder('font-style: italic'));_styled(IconButton$1).withConfig({displayName:"Textarea__StyledIconButton",componentId:"sc-170lrb4-2"})(templateObject_3$h||(templateObject_3$h=__makeTemplateObject(["\n position: absolute;\n bottom: 2px;\n right: 2px;\n"],["\n position: absolute;\n bottom: 2px;\n right: 2px;\n"])));var templateObject_1$s,templateObject_2$n,templateObject_3$h;var InsertFilesDialogHost=_styled.div.withConfig({displayName:"InsertFilesButton__InsertFilesDialogHost",componentId:"sc-1q7gx3n-0"})(templateObject_2$m||(templateObject_2$m=__makeTemplateObject(["\n ","\n\n position: relative;\n padding: ","px;\n text-align: center;\n\n > div {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"],["\n ","\n\n position: relative;\n padding: ","px;\n text-align: center;\n\n > div {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"])),function(p){return p.isActive&&css$2(templateObject_1$r||(templateObject_1$r=__makeTemplateObject(["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n border: 2px black dashed;\n }\n "],["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n border: 2px black dashed;\n }\n "])));},spacingM);_styled.p.withConfig({displayName:"InsertFilesButton__DragAndDropText",componentId:"sc-1q7gx3n-1"})(templateObject_3$g||(templateObject_3$g=__makeTemplateObject(["\n font-size: ","px;\n margin: ","px auto 0 auto;\n"],["\n font-size: ","px;\n margin: ","px auto 0 auto;\n"])),fontSizeSmall,spacingS);_styled(DefaultButton).withConfig({displayName:"InsertFilesButton__SelectFileButton",componentId:"sc-1q7gx3n-2"})(templateObject_4$9$1||(templateObject_4$9$1=__makeTemplateObject(["\n margin-top: ","px;\n\n span {\n font-weight: normal;\n }\n"],["\n margin-top: ","px;\n\n span {\n font-weight: normal;\n }\n"])),spacingM);_styled.div.withConfig({displayName:"InsertFilesButton__ButtonsContainer",componentId:"sc-1q7gx3n-3"})(templateObject_5$8||(templateObject_5$8=__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"])));var templateObject_1$r,templateObject_2$m,templateObject_3$g,templateObject_4$9$1,templateObject_5$8;_styled(InsertFilesDialogHost).withConfig({displayName:"InsertImagesButton__Host",componentId:"sc-63tjy6-0"})(templateObject_1$q||(templateObject_1$q=__makeTemplateObject(["\n cursor: pointer;\n"],["\n cursor: pointer;\n"])));_styled(PrimaryButton).withConfig({displayName:"InsertImagesButton__StyledButton",componentId:"sc-63tjy6-1"})(templateObject_2$l||(templateObject_2$l=__makeTemplateObject(["\n && {\n display: block;\n margin: 10px auto;\n background-color: transparent;\n color: inherit;\n font-size: large;\n line-height: 2em;\n border: none;\n\n &:hover {\n background-color: transparent;\n color: inherit;\n border: 0;\n }\n }\n"],["\n && {\n display: block;\n margin: 10px auto;\n background-color: transparent;\n color: inherit;\n font-size: large;\n line-height: 2em;\n border: none;\n\n &:hover {\n background-color: transparent;\n color: inherit;\n border: 0;\n }\n }\n"])));_styled.div.withConfig({displayName:"InsertImagesButton__Text",componentId:"sc-63tjy6-2"})(templateObject_3$f||(templateObject_3$f=__makeTemplateObject(["\n max-width: 100%;\n font-size: large;\n"],["\n max-width: 100%;\n font-size: large;\n"])));var templateObject_1$q,templateObject_2$l,templateObject_3$f;_styled.div.withConfig({displayName:"InsertVideoDialog__VideoHost",componentId:"sc-12gp7sa-0"})(templateObject_1$p||(templateObject_1$p=__makeTemplateObject(["\n width: 100%;\n margin-top: ","px;\n\n .video-view-container--youtube {\n &:after {\n padding-bottom: calc(9 / 16 * 100%);\n }\n }\n"],["\n width: 100%;\n margin-top: ","px;\n\n .video-view-container--youtube {\n &:after {\n padding-bottom: calc(9 / 16 * 100%);\n }\n }\n"])),spacingS);_styled(TextField).withConfig({displayName:"InsertVideoDialog__StyledTextField",componentId:"sc-12gp7sa-1"})(templateObject_2$k||(templateObject_2$k=__makeTemplateObject(["\n width: 510px;\n\n label {\n font-weight: normal;\n }\n"],["\n width: 510px;\n\n label {\n font-weight: normal;\n }\n"])));var templateObject_1$p,templateObject_2$k;createGlobalStyle(templateObject_1$o||(templateObject_1$o=__makeTemplateObject(["\n .browser-name-ie {\n button.ms-DatePicker-goToday {\n left: 15px;\n }\n }\n"],["\n .browser-name-ie {\n button.ms-DatePicker-goToday {\n left: 15px;\n }\n }\n"])));createGlobalStyle(templateObject_2$j||(templateObject_2$j=__makeTemplateObject(["\n button.ms-DatePicker-day--today {\n background: "," !important;\n }\n"],["\n button.ms-DatePicker-day--today {\n background: "," !important;\n }\n"])),function(p){return p.theme.palette.accent;});_styled.div.withConfig({displayName:"DateTimePicker__Host",componentId:"sc-zzs3p0-0"})(templateObject_3$e||(templateObject_3$e=__makeTemplateObject(["\n .ms-TextField {\n &.is-disabled {\n opacity: 0.5;\n }\n &-field {\n ","\n }\n\n > &-wrapper {\n > &-fieldGroup {\n background: none;\n > i {\n color: initial;\n }\n }\n }\n }\n\n .ms-TextField:not(:first-of-type) {\n margin-top: 5px;\n }\n"],["\n .ms-TextField {\n &.is-disabled {\n opacity: 0.5;\n }\n &-field {\n ","\n }\n\n > &-wrapper {\n > &-fieldGroup {\n background: none;\n > i {\n color: initial;\n }\n }\n }\n }\n\n .ms-TextField:not(:first-of-type) {\n margin-top: 5px;\n }\n"])),InputPlaceholder("\n color: inherit;\n font-style: italic;\n "));var templateObject_1$o,templateObject_2$j,templateObject_3$e;var DateRange;(function(DateRange){DateRange[DateRange["TwoYears"]=0]="TwoYears";DateRange[DateRange["OneYear"]=1]="OneYear";DateRange[DateRange["SixMonths"]=2]="SixMonths";DateRange[DateRange["TwoMonths"]=3]="TwoMonths";DateRange[DateRange["OneMonth"]=4]="OneMonth";DateRange[DateRange["SevenDays"]=5]="SevenDays";DateRange[DateRange["YesterDay"]=6]="YesterDay";DateRange[DateRange["Today"]=7]="Today";})(DateRange||(DateRange={}));Object.keys(DateRange).length/2-1;_styled.div.withConfig({displayName:"DateRangeSlider__Host",componentId:"sc-1o5vacm-0"})(templateObject_1$n||(templateObject_1$n=__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: 100%;\n\n .ms-Slider {\n margin-bottom: 0;\n }\n"],["\n display: flex;\n flex-direction: column;\n width: 100%;\n\n .ms-Slider {\n margin-bottom: 0;\n }\n"])));_styled.div.withConfig({displayName:"DateRangeSlider__Value",componentId:"sc-1o5vacm-1"})(templateObject_2$i||(templateObject_2$i=__makeTemplateObject(["\n align-self: flex-end;\n margin-right: 10px;\n"],["\n align-self: flex-end;\n margin-right: 10px;\n"])));_styled.div.withConfig({displayName:"DateRangeSlider__Labels",componentId:"sc-1o5vacm-2"})(templateObject_3$d||(templateObject_3$d=__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n margin: 0px 10px;\n"],["\n display: flex;\n justify-content: space-between;\n margin: 0px 10px;\n"])));var templateObject_1$n,templateObject_2$i,templateObject_3$d;_styled(IconButton).withConfig({displayName:"ExternalNewsLinkButton__StyledIconButton",componentId:"sc-txzoyq-0"})(templateObject_1$m||(templateObject_1$m=__makeTemplateObject(["\n && {\n padding-left: 0;\n padding-right: 0;\n margin-left: -3px;\n\n &[disabled] {\n background-color: transparent;\n }\n }\n"],["\n && {\n padding-left: 0;\n padding-right: 0;\n margin-left: -3px;\n\n &[disabled] {\n background-color: transparent;\n }\n }\n"])));var templateObject_1$m;_styled.div.withConfig({displayName:"CardStyles__Host",componentId:"sc-ovm8js-0"})(templateObject_1$l||(templateObject_1$l=__makeTemplateObject(["\n display: block;\n padding: 0 ","px ","px ","px;\n flex: 1 1 auto;\n\n &:not([data-banner='image']) {\n position: relative;\n }\n"],["\n display: block;\n padding: 0 ","px ","px ","px;\n flex: 1 1 auto;\n\n &:not([data-banner='image']) {\n position: relative;\n }\n"])),spacingM,spacingM,spacingM);var Intro$3=_styled.p.withConfig({displayName:"CardStyles__Intro",componentId:"sc-ovm8js-1"})(templateObject_2$h||(templateObject_2$h=__makeTemplateObject(["\n margin: 0;\n font-size: ","px;\n margin-top: ","px;\n"],["\n margin: 0;\n font-size: ","px;\n margin-top: ","px;\n"])),fontSizeSmall,spacingM-3);var templateObject_1$l,templateObject_2$h;_styled.p.withConfig({displayName:"NewsCard__Headline",componentId:"sc-rf9b9y-0"})(templateObject_1$k||(templateObject_1$k=__makeTemplateObject(["\n font-size: ","px;\n font-weight: bold;\n"],["\n font-size: ","px;\n font-weight: bold;\n"])),fontSizeSmall);_styled.h2.withConfig({displayName:"NewsCard__Title",componentId:"sc-rf9b9y-1"})(templateObject_2$g||(templateObject_2$g=__makeTemplateObject(["\n display: inline-block;\n & + .card-metaInfo {\n padding-top: ","px !important;\n }\n"],["\n display: inline-block;\n & + .card-metaInfo {\n padding-top: ","px !important;\n }\n"])),spacingS);_styled(NavLink).withConfig({displayName:"NewsCard__StyledNavLink",componentId:"sc-rf9b9y-2"})(templateObject_3$c||(templateObject_3$c=__makeTemplateObject(["\n && {\n position: relative;\n z-index: 1;\n color: ",";\n display: block;\n }\n"],["\n && {\n position: relative;\n z-index: 1;\n color: ",";\n display: block;\n }\n"])),function(p){return p.theme.textColors.default;});_styled.div.withConfig({displayName:"NewsCard__MetaInfo",componentId:"sc-rf9b9y-3"})(templateObject_4$8$1||(templateObject_4$8$1=__makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n"],["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n"])));_styled(ClickableChannelTitles).withConfig({displayName:"NewsCard__Channels",componentId:"sc-rf9b9y-4"})(templateObject_5$7$1||(templateObject_5$7$1=__makeTemplateObject(["\n display: contents;\n"],["\n display: contents;\n"])));var templateObject_1$k,templateObject_2$g,templateObject_3$c,templateObject_4$8$1,templateObject_5$7$1;_styled.div.withConfig({displayName:"EmptyChannelsView__Host",componentId:"sc-b5s0oy-0"})(templateObject_1$j$1||(templateObject_1$j$1=__makeTemplateObject(["\n color: ",";\n text-align: center;\n display: flex;\n flex-direction: column;\n\n > p {\n font-size: 14px;\n margin: 0;\n padding: 3px 0;\n }\n"],["\n color: ",";\n text-align: center;\n display: flex;\n flex-direction: column;\n\n > p {\n font-size: 14px;\n margin: 0;\n padding: 3px 0;\n }\n"])),function(p){return p.theme.palette.neutralTertiary;});_styled(Icon).withConfig({displayName:"EmptyChannelsView__StyledIcon",componentId:"sc-b5s0oy-1"})(templateObject_2$f||(templateObject_2$f=__makeTemplateObject(["\n font-size: 100px;\n padding: 30px 0;\n"],["\n font-size: 100px;\n padding: 30px 0;\n"])));var templateObject_1$j$1,templateObject_2$f;_styled.div.withConfig({displayName:"PromotedNewsItem__Host",componentId:"sc-drndfq-0"})(templateObject_1$i$1||(templateObject_1$i$1=__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__Alert",componentId:"sc-drndfq-1"})(templateObject_2$e||(templateObject_2$e=__makeTemplateObject(["\n display: flex;\n background-color: white;\n box-shadow: 1px 1px 4px grey;\n box-sizing: border-box;\n cursor: pointer;\n width: 100%;\n margin-bottom: 10px;\n border-bottom-width: 4px;\n border-bottom-style: solid;\n"],["\n display: flex;\n background-color: white;\n box-shadow: 1px 1px 4px grey;\n box-sizing: border-box;\n cursor: pointer;\n width: 100%;\n margin-bottom: 10px;\n border-bottom-width: 4px;\n border-bottom-style: solid;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__AlertIconOuterContainer",componentId:"sc-drndfq-2"})(templateObject_3$b||(templateObject_3$b=__makeTemplateObject(["\n display: flex;\n"],["\n display: flex;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__IconContainer",componentId:"sc-drndfq-3"})(templateObject_4$7$1||(templateObject_4$7$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n min-height: 50px;\n height: 100%;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n min-height: 50px;\n height: 100%;\n"])));_styled(Icon).withConfig({displayName:"PromotedNewsItem__StyledIcon",componentId:"sc-drndfq-4"})(templateObject_5$6$1||(templateObject_5$6$1=__makeTemplateObject(["\n font-size: 25px;\n color: white;\n"],["\n font-size: 25px;\n color: white;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__ContentContainer",componentId:"sc-drndfq-5"})(templateObject_6$3$1||(templateObject_6$3$1=__makeTemplateObject(["\n display: flex;\n width: 100%;\n"],["\n display: flex;\n width: 100%;\n"])));_styled(DateTime).withConfig({displayName:"PromotedNewsItem__StyledDate",componentId:"sc-drndfq-6"})(templateObject_7$2$1||(templateObject_7$2$1=__makeTemplateObject(["\n font-size: 0.9em;\n color: #666;\n margin-left: 20px;\n min-width: 150px;\n\n @media (max-width: ","px) {\n display: none;\n }\n"],["\n font-size: 0.9em;\n color: #666;\n margin-left: 20px;\n min-width: 150px;\n\n @media (max-width: ","px) {\n display: none;\n }\n"])),maxScreenSize.small);_styled.h2.withConfig({displayName:"PromotedNewsItem__Title",componentId:"sc-drndfq-7"})(templateObject_8$2$1||(templateObject_8$2$1=__makeTemplateObject(["\n font-size: 1.1em;\n margin-top: 0;\n margin-bottom: 0;\n max-width: 1000px;\n\n @media (max-width: ","px) {\n max-width: 700px;\n }\n\n @media (max-width: ","px) {\n max-width: 450px;\n }\n\n @media (max-width: ","px) {\n max-width: 300px;\n }\n\n @media (max-width: ","px) {\n margin-left: 20px;\n max-width: 280px;\n }\n"],["\n font-size: 1.1em;\n margin-top: 0;\n margin-bottom: 0;\n max-width: 1000px;\n\n @media (max-width: ","px) {\n max-width: 700px;\n }\n\n @media (max-width: ","px) {\n max-width: 450px;\n }\n\n @media (max-width: ","px) {\n max-width: 300px;\n }\n\n @media (max-width: ","px) {\n margin-left: 20px;\n max-width: 280px;\n }\n"])),maxScreenSize.xLarge,maxScreenSize.large,maxScreenSize.medium,maxScreenSize.small);_styled.div.withConfig({displayName:"PromotedNewsItem__BookmarkContainer",componentId:"sc-drndfq-8"})(templateObject_9$2$1||(templateObject_9$2$1=__makeTemplateObject(["\n margin-right: 10px;\n align-self: flex-end;\n padding-bottom: 10px;\n"],["\n margin-right: 10px;\n align-self: flex-end;\n padding-bottom: 10px;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__TextContainer",componentId:"sc-drndfq-9"})(templateObject_10$1$1||(templateObject_10$1$1=__makeTemplateObject(["\n display: flex;\n width: 100%;\n align-items: center;\n padding: 10px 0;\n"],["\n display: flex;\n width: 100%;\n align-items: center;\n padding: 10px 0;\n"])));var templateObject_1$i$1,templateObject_2$e,templateObject_3$b,templateObject_4$7$1,templateObject_5$6$1,templateObject_6$3$1,templateObject_7$2$1,templateObject_8$2$1,templateObject_9$2$1,templateObject_10$1$1;function useTranslateApi(){var api=useApi();return useMemo(function(){return {translateContents:translateContents};function translateContents(type,itemId,language){return api.custom(type+"/"+itemId+"/contents/"+language).get().then(function(res){return res.body().data();});}},[api]);}var $$1$1=_export;var getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f;var toLength$2=toLength$b;var notARegExp=notARegexp;var requireObjectCoercible$d=requireObjectCoercible$c;var correctIsRegExpLogic=correctIsRegexpLogic;var nativeEndsWith=''.endsWith;var min=Math.min;var CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic('endsWith');// https://github.com/zloirock/core-js/pull/702
|
|
131806
|
+
$$2({target:'String',proto:true},{replaceAll:function replaceAll(searchValue,replaceValue){var O=requireObjectCoercible$1$1(this);var IS_REG_EXP,flags,replacer,string,searchString,template,result,position,index;if(searchValue!=null){IS_REG_EXP=isRegExp$4(searchValue);if(IS_REG_EXP){flags=String(requireObjectCoercible$1$1('flags'in RegExpPrototype$3?searchValue.flags:getRegExpFlags.call(searchValue)));if(!~flags.indexOf('g'))throw TypeError('`.replaceAll` does not allow non-global regexes');}replacer=searchValue[REPLACE$2];if(replacer!==undefined){return replacer.call(searchValue,O,replaceValue);}}string=String(O);searchString=String(searchValue);if(searchString==='')return replaceAll.call(string,/(?:)/g,replaceValue);template=string.split(searchString);if(typeof replaceValue!=='function'){return template.join(String(replaceValue));}result=template[0];position=result.length;for(index=1;index<template.length;index++){result+=String(replaceValue(searchString,position,string));position+=searchString.length+template[index].length;result+=template[index];}return result;}});_styled.div.withConfig({displayName:"Textarea__Host",componentId:"sc-170lrb4-0"})(templateObject_1$s||(templateObject_1$s=__makeTemplateObject(["\n display: flex;\n align-items: flex-end;\n position: relative;\n"],["\n display: flex;\n align-items: flex-end;\n position: relative;\n"])));_styled.textarea.withConfig({displayName:"Textarea__StyledTextarea",componentId:"sc-170lrb4-1"})(templateObject_2$n||(templateObject_2$n=__makeTemplateObject(["\n flex: 1 0 auto;\n justify-content: space-between;\n overflow: hidden;\n resize: none;\n min-height: 5px;\n\n ","\n"],["\n flex: 1 0 auto;\n justify-content: space-between;\n overflow: hidden;\n resize: none;\n min-height: 5px;\n\n ","\n"])),InputPlaceholder('font-style: italic'));_styled(IconButton$1).withConfig({displayName:"Textarea__StyledIconButton",componentId:"sc-170lrb4-2"})(templateObject_3$h||(templateObject_3$h=__makeTemplateObject(["\n position: absolute;\n bottom: 2px;\n right: 2px;\n"],["\n position: absolute;\n bottom: 2px;\n right: 2px;\n"])));var templateObject_1$s,templateObject_2$n,templateObject_3$h;var InsertFilesDialogHost=_styled.div.withConfig({displayName:"InsertFilesButton__InsertFilesDialogHost",componentId:"sc-1q7gx3n-0"})(templateObject_2$m||(templateObject_2$m=__makeTemplateObject(["\n ","\n\n position: relative;\n padding: ","px;\n text-align: center;\n\n > div {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"],["\n ","\n\n position: relative;\n padding: ","px;\n text-align: center;\n\n > div {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"])),function(p){return p.isActive&&css$2(templateObject_1$r||(templateObject_1$r=__makeTemplateObject(["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n border: 2px black dashed;\n }\n "],["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n border: 2px black dashed;\n }\n "])));},spacingM);_styled.p.withConfig({displayName:"InsertFilesButton__DragAndDropText",componentId:"sc-1q7gx3n-1"})(templateObject_3$g||(templateObject_3$g=__makeTemplateObject(["\n font-size: ","px;\n margin: ","px auto 0 auto;\n"],["\n font-size: ","px;\n margin: ","px auto 0 auto;\n"])),fontSizeSmall,spacingS);_styled(DefaultButton).withConfig({displayName:"InsertFilesButton__SelectFileButton",componentId:"sc-1q7gx3n-2"})(templateObject_4$9$1||(templateObject_4$9$1=__makeTemplateObject(["\n margin-top: ","px;\n\n span {\n font-weight: normal;\n }\n"],["\n margin-top: ","px;\n\n span {\n font-weight: normal;\n }\n"])),spacingM);_styled.div.withConfig({displayName:"InsertFilesButton__ButtonsContainer",componentId:"sc-1q7gx3n-3"})(templateObject_5$8$1||(templateObject_5$8$1=__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"])));var templateObject_1$r,templateObject_2$m,templateObject_3$g,templateObject_4$9$1,templateObject_5$8$1;_styled(InsertFilesDialogHost).withConfig({displayName:"InsertImagesButton__Host",componentId:"sc-63tjy6-0"})(templateObject_1$q||(templateObject_1$q=__makeTemplateObject(["\n cursor: pointer;\n"],["\n cursor: pointer;\n"])));_styled(PrimaryButton).withConfig({displayName:"InsertImagesButton__StyledButton",componentId:"sc-63tjy6-1"})(templateObject_2$l||(templateObject_2$l=__makeTemplateObject(["\n && {\n display: block;\n margin: 10px auto;\n background-color: transparent;\n color: inherit;\n font-size: large;\n line-height: 2em;\n border: none;\n\n &:hover {\n background-color: transparent;\n color: inherit;\n border: 0;\n }\n }\n"],["\n && {\n display: block;\n margin: 10px auto;\n background-color: transparent;\n color: inherit;\n font-size: large;\n line-height: 2em;\n border: none;\n\n &:hover {\n background-color: transparent;\n color: inherit;\n border: 0;\n }\n }\n"])));_styled.div.withConfig({displayName:"InsertImagesButton__Text",componentId:"sc-63tjy6-2"})(templateObject_3$f||(templateObject_3$f=__makeTemplateObject(["\n max-width: 100%;\n font-size: large;\n"],["\n max-width: 100%;\n font-size: large;\n"])));var templateObject_1$q,templateObject_2$l,templateObject_3$f;_styled.div.withConfig({displayName:"InsertVideoDialog__VideoHost",componentId:"sc-12gp7sa-0"})(templateObject_1$p||(templateObject_1$p=__makeTemplateObject(["\n width: 100%;\n margin-top: ","px;\n\n .video-view-container--youtube {\n &:after {\n padding-bottom: calc(9 / 16 * 100%);\n }\n }\n"],["\n width: 100%;\n margin-top: ","px;\n\n .video-view-container--youtube {\n &:after {\n padding-bottom: calc(9 / 16 * 100%);\n }\n }\n"])),spacingS);_styled(TextField).withConfig({displayName:"InsertVideoDialog__StyledTextField",componentId:"sc-12gp7sa-1"})(templateObject_2$k||(templateObject_2$k=__makeTemplateObject(["\n width: 510px;\n\n label {\n font-weight: normal;\n }\n"],["\n width: 510px;\n\n label {\n font-weight: normal;\n }\n"])));var templateObject_1$p,templateObject_2$k;createGlobalStyle(templateObject_1$o||(templateObject_1$o=__makeTemplateObject(["\n .browser-name-ie {\n button.ms-DatePicker-goToday {\n left: 15px;\n }\n }\n"],["\n .browser-name-ie {\n button.ms-DatePicker-goToday {\n left: 15px;\n }\n }\n"])));createGlobalStyle(templateObject_2$j||(templateObject_2$j=__makeTemplateObject(["\n button.ms-DatePicker-day--today {\n background: "," !important;\n }\n"],["\n button.ms-DatePicker-day--today {\n background: "," !important;\n }\n"])),function(p){return p.theme.palette.accent;});_styled.div.withConfig({displayName:"DateTimePicker__Host",componentId:"sc-zzs3p0-0"})(templateObject_3$e||(templateObject_3$e=__makeTemplateObject(["\n .ms-TextField {\n &.is-disabled {\n opacity: 0.5;\n }\n &-field {\n ","\n }\n\n > &-wrapper {\n > &-fieldGroup {\n background: none;\n > i {\n color: initial;\n }\n }\n }\n }\n\n .ms-TextField:not(:first-of-type) {\n margin-top: 5px;\n }\n"],["\n .ms-TextField {\n &.is-disabled {\n opacity: 0.5;\n }\n &-field {\n ","\n }\n\n > &-wrapper {\n > &-fieldGroup {\n background: none;\n > i {\n color: initial;\n }\n }\n }\n }\n\n .ms-TextField:not(:first-of-type) {\n margin-top: 5px;\n }\n"])),InputPlaceholder("\n color: inherit;\n font-style: italic;\n "));var templateObject_1$o,templateObject_2$j,templateObject_3$e;var DateRange;(function(DateRange){DateRange[DateRange["TwoYears"]=0]="TwoYears";DateRange[DateRange["OneYear"]=1]="OneYear";DateRange[DateRange["SixMonths"]=2]="SixMonths";DateRange[DateRange["TwoMonths"]=3]="TwoMonths";DateRange[DateRange["OneMonth"]=4]="OneMonth";DateRange[DateRange["SevenDays"]=5]="SevenDays";DateRange[DateRange["YesterDay"]=6]="YesterDay";DateRange[DateRange["Today"]=7]="Today";})(DateRange||(DateRange={}));Object.keys(DateRange).length/2-1;_styled.div.withConfig({displayName:"DateRangeSlider__Host",componentId:"sc-1o5vacm-0"})(templateObject_1$n$1||(templateObject_1$n$1=__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: 100%;\n\n .ms-Slider {\n margin-bottom: 0;\n }\n"],["\n display: flex;\n flex-direction: column;\n width: 100%;\n\n .ms-Slider {\n margin-bottom: 0;\n }\n"])));_styled.div.withConfig({displayName:"DateRangeSlider__Value",componentId:"sc-1o5vacm-1"})(templateObject_2$i||(templateObject_2$i=__makeTemplateObject(["\n align-self: flex-end;\n margin-right: 10px;\n"],["\n align-self: flex-end;\n margin-right: 10px;\n"])));_styled.div.withConfig({displayName:"DateRangeSlider__Labels",componentId:"sc-1o5vacm-2"})(templateObject_3$d||(templateObject_3$d=__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n margin: 0px 10px;\n"],["\n display: flex;\n justify-content: space-between;\n margin: 0px 10px;\n"])));var templateObject_1$n$1,templateObject_2$i,templateObject_3$d;_styled(IconButton).withConfig({displayName:"ExternalNewsLinkButton__StyledIconButton",componentId:"sc-txzoyq-0"})(templateObject_1$m$1||(templateObject_1$m$1=__makeTemplateObject(["\n && {\n padding-left: 0;\n padding-right: 0;\n margin-left: -3px;\n\n &[disabled] {\n background-color: transparent;\n }\n }\n"],["\n && {\n padding-left: 0;\n padding-right: 0;\n margin-left: -3px;\n\n &[disabled] {\n background-color: transparent;\n }\n }\n"])));var templateObject_1$m$1;_styled.div.withConfig({displayName:"CardStyles__Host",componentId:"sc-ovm8js-0"})(templateObject_1$l$1||(templateObject_1$l$1=__makeTemplateObject(["\n display: block;\n padding: 0 ","px ","px ","px;\n flex: 1 1 auto;\n\n &:not([data-banner='image']) {\n position: relative;\n }\n"],["\n display: block;\n padding: 0 ","px ","px ","px;\n flex: 1 1 auto;\n\n &:not([data-banner='image']) {\n position: relative;\n }\n"])),spacingM,spacingM,spacingM);var Intro$3=_styled.p.withConfig({displayName:"CardStyles__Intro",componentId:"sc-ovm8js-1"})(templateObject_2$h||(templateObject_2$h=__makeTemplateObject(["\n margin: 0;\n font-size: ","px;\n margin-top: ","px;\n"],["\n margin: 0;\n font-size: ","px;\n margin-top: ","px;\n"])),fontSizeSmall,spacingM-3);var templateObject_1$l$1,templateObject_2$h;_styled.p.withConfig({displayName:"NewsCard__Headline",componentId:"sc-rf9b9y-0"})(templateObject_1$k$1||(templateObject_1$k$1=__makeTemplateObject(["\n font-size: ","px;\n font-weight: bold;\n"],["\n font-size: ","px;\n font-weight: bold;\n"])),fontSizeSmall);_styled.h2.withConfig({displayName:"NewsCard__Title",componentId:"sc-rf9b9y-1"})(templateObject_2$g||(templateObject_2$g=__makeTemplateObject(["\n display: inline-block;\n & + .card-metaInfo {\n padding-top: ","px !important;\n }\n"],["\n display: inline-block;\n & + .card-metaInfo {\n padding-top: ","px !important;\n }\n"])),spacingS);_styled(NavLink).withConfig({displayName:"NewsCard__StyledNavLink",componentId:"sc-rf9b9y-2"})(templateObject_3$c$1||(templateObject_3$c$1=__makeTemplateObject(["\n && {\n position: relative;\n z-index: 1;\n color: ",";\n display: block;\n }\n"],["\n && {\n position: relative;\n z-index: 1;\n color: ",";\n display: block;\n }\n"])),function(p){return p.theme.textColors.default;});_styled.div.withConfig({displayName:"NewsCard__MetaInfo",componentId:"sc-rf9b9y-3"})(templateObject_4$8$1||(templateObject_4$8$1=__makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n"],["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n"])));_styled(ClickableChannelTitles).withConfig({displayName:"NewsCard__Channels",componentId:"sc-rf9b9y-4"})(templateObject_5$7$1||(templateObject_5$7$1=__makeTemplateObject(["\n display: contents;\n"],["\n display: contents;\n"])));var templateObject_1$k$1,templateObject_2$g,templateObject_3$c$1,templateObject_4$8$1,templateObject_5$7$1;_styled.div.withConfig({displayName:"EmptyChannelsView__Host",componentId:"sc-b5s0oy-0"})(templateObject_1$j$1||(templateObject_1$j$1=__makeTemplateObject(["\n color: ",";\n text-align: center;\n display: flex;\n flex-direction: column;\n\n > p {\n font-size: 14px;\n margin: 0;\n padding: 3px 0;\n }\n"],["\n color: ",";\n text-align: center;\n display: flex;\n flex-direction: column;\n\n > p {\n font-size: 14px;\n margin: 0;\n padding: 3px 0;\n }\n"])),function(p){return p.theme.palette.neutralTertiary;});_styled(Icon).withConfig({displayName:"EmptyChannelsView__StyledIcon",componentId:"sc-b5s0oy-1"})(templateObject_2$f||(templateObject_2$f=__makeTemplateObject(["\n font-size: 100px;\n padding: 30px 0;\n"],["\n font-size: 100px;\n padding: 30px 0;\n"])));var templateObject_1$j$1,templateObject_2$f;_styled.div.withConfig({displayName:"PromotedNewsItem__Host",componentId:"sc-drndfq-0"})(templateObject_1$i$1||(templateObject_1$i$1=__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__Alert",componentId:"sc-drndfq-1"})(templateObject_2$e||(templateObject_2$e=__makeTemplateObject(["\n display: flex;\n background-color: white;\n box-shadow: 1px 1px 4px grey;\n box-sizing: border-box;\n cursor: pointer;\n width: 100%;\n margin-bottom: 10px;\n border-bottom-width: 4px;\n border-bottom-style: solid;\n"],["\n display: flex;\n background-color: white;\n box-shadow: 1px 1px 4px grey;\n box-sizing: border-box;\n cursor: pointer;\n width: 100%;\n margin-bottom: 10px;\n border-bottom-width: 4px;\n border-bottom-style: solid;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__AlertIconOuterContainer",componentId:"sc-drndfq-2"})(templateObject_3$b$1||(templateObject_3$b$1=__makeTemplateObject(["\n display: flex;\n"],["\n display: flex;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__IconContainer",componentId:"sc-drndfq-3"})(templateObject_4$7$1||(templateObject_4$7$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n min-height: 50px;\n height: 100%;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n min-height: 50px;\n height: 100%;\n"])));_styled(Icon).withConfig({displayName:"PromotedNewsItem__StyledIcon",componentId:"sc-drndfq-4"})(templateObject_5$6$1||(templateObject_5$6$1=__makeTemplateObject(["\n font-size: 25px;\n color: white;\n"],["\n font-size: 25px;\n color: white;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__ContentContainer",componentId:"sc-drndfq-5"})(templateObject_6$3$1||(templateObject_6$3$1=__makeTemplateObject(["\n display: flex;\n width: 100%;\n"],["\n display: flex;\n width: 100%;\n"])));_styled(DateTime).withConfig({displayName:"PromotedNewsItem__StyledDate",componentId:"sc-drndfq-6"})(templateObject_7$2$1||(templateObject_7$2$1=__makeTemplateObject(["\n font-size: 0.9em;\n color: #666;\n margin-left: 20px;\n min-width: 150px;\n\n @media (max-width: ","px) {\n display: none;\n }\n"],["\n font-size: 0.9em;\n color: #666;\n margin-left: 20px;\n min-width: 150px;\n\n @media (max-width: ","px) {\n display: none;\n }\n"])),maxScreenSize.small);_styled.h2.withConfig({displayName:"PromotedNewsItem__Title",componentId:"sc-drndfq-7"})(templateObject_8$2$1||(templateObject_8$2$1=__makeTemplateObject(["\n font-size: 1.1em;\n margin-top: 0;\n margin-bottom: 0;\n max-width: 1000px;\n\n @media (max-width: ","px) {\n max-width: 700px;\n }\n\n @media (max-width: ","px) {\n max-width: 450px;\n }\n\n @media (max-width: ","px) {\n max-width: 300px;\n }\n\n @media (max-width: ","px) {\n margin-left: 20px;\n max-width: 280px;\n }\n"],["\n font-size: 1.1em;\n margin-top: 0;\n margin-bottom: 0;\n max-width: 1000px;\n\n @media (max-width: ","px) {\n max-width: 700px;\n }\n\n @media (max-width: ","px) {\n max-width: 450px;\n }\n\n @media (max-width: ","px) {\n max-width: 300px;\n }\n\n @media (max-width: ","px) {\n margin-left: 20px;\n max-width: 280px;\n }\n"])),maxScreenSize.xLarge,maxScreenSize.large,maxScreenSize.medium,maxScreenSize.small);_styled.div.withConfig({displayName:"PromotedNewsItem__BookmarkContainer",componentId:"sc-drndfq-8"})(templateObject_9$2$1||(templateObject_9$2$1=__makeTemplateObject(["\n margin-right: 10px;\n align-self: flex-end;\n padding-bottom: 10px;\n"],["\n margin-right: 10px;\n align-self: flex-end;\n padding-bottom: 10px;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__TextContainer",componentId:"sc-drndfq-9"})(templateObject_10$1$1||(templateObject_10$1$1=__makeTemplateObject(["\n display: flex;\n width: 100%;\n align-items: center;\n padding: 10px 0;\n"],["\n display: flex;\n width: 100%;\n align-items: center;\n padding: 10px 0;\n"])));var templateObject_1$i$1,templateObject_2$e,templateObject_3$b$1,templateObject_4$7$1,templateObject_5$6$1,templateObject_6$3$1,templateObject_7$2$1,templateObject_8$2$1,templateObject_9$2$1,templateObject_10$1$1;function useTranslateApi(){var api=useApi();return useMemo(function(){return {translateContents:translateContents};function translateContents(type,itemId,language){return api.custom(type+"/"+itemId+"/contents/"+language).get().then(function(res){return res.body().data();});}},[api]);}var $$1$1=_export;var getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f;var toLength$2=toLength$b;var notARegExp=notARegexp;var requireObjectCoercible$d=requireObjectCoercible$c;var correctIsRegExpLogic=correctIsRegexpLogic;var nativeEndsWith=''.endsWith;var min$1=Math.min;var CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic('endsWith');// https://github.com/zloirock/core-js/pull/702
|
|
131807
131807
|
var MDN_POLYFILL_BUG=!CORRECT_IS_REGEXP_LOGIC&&!!function(){var descriptor=getOwnPropertyDescriptor(String.prototype,'endsWith');return descriptor&&!descriptor.writable;}();// `String.prototype.endsWith` method
|
|
131808
131808
|
// https://tc39.github.io/ecma262/#sec-string.prototype.endswith
|
|
131809
|
-
$$1$1({target:'String',proto:true,forced:!MDN_POLYFILL_BUG&&!CORRECT_IS_REGEXP_LOGIC},{endsWith:function endsWith(searchString/* , endPosition = @length */){var that=String(requireObjectCoercible$d(this));notARegExp(searchString);var endPosition=arguments.length>1?arguments[1]:undefined;var len=toLength$2(that.length);var end=endPosition===undefined?len:min(toLength$2(endPosition),len);var search=String(searchString);return nativeEndsWith?nativeEndsWith.call(that,search,end):that.slice(end-search.length,end)===search;}});var SearchHighlighter=function SearchHighlighter(_a){var highlight=_a.highlight;if(!highlight){return null;}return jsx$1(Fragment,{children:highlight.texts.map(function(t){return jsxs(TextEntry,__assign({highlight:t.type==='hit'},{children:[t.value.startsWith(' ')?jsx$1(Fragment,{children:"\u00A0"},void 0):null,t.value.trim(),t.value.endsWith(' ')?jsx$1(Fragment,{children:"\u00A0"},void 0):null]}),void 0);})},void 0);};var TextEntry=_styled.span.withConfig({displayName:"SearchHighlighter__TextEntry",componentId:"sc-1a25f6p-0"})(templateObject_2$d||(templateObject_2$d=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),function(p){return p.highlight&&css$2(templateObject_1$h$1||(templateObject_1$h$1=__makeTemplateObject(["\n background-color: yellow;\n "],["\n background-color: yellow;\n "])));});function tryFindHighlight(highlights,preferredLanguage){if(!highlights){return null;}return highlights.find(function(h){return h.language===preferredLanguage;})||highlights[0];}var templateObject_1$h$1,templateObject_2$d;var PageTitle=function PageTitle(_a){var page=_a.page,title=_a.title,search=_a.search,className=_a.className;var user=useCurrentUser();var isDocument=page.pageType===PageType.Document;var language=getLanguageForPage(page,user);var buildPath=useSubscriptionHandlePathBuilder().buildPath;var handleExternalContentClick=useExternalContentClickHandler();var pageTitle=jsx$1(Fragment,{children:search?jsx$1(TitleHighlight,{search:search,title:title,page:page},void 0):title},void 0);if(page.useExternalContent){var preferredContentLanguage=getPreferredContentLanguage(user);var url=getExternalContentUrl(page,preferredContentLanguage);var targetRoute=NewsService.getNewsRoute(buildPath('/pages'),page.id,title);return jsx$1(Title$1$1,{children:jsxs(StyledNavLink,__assign({to:targetRoute,onClick:function(e){return handleExternalContentClick(e,page,ItemResourceTypes.Pages);}},{children:[pageTitle,jsx$1(ExternalContentIcon,{tooltipResourceKey:'ExternalLinkButton.pages.navigateTo',tooltipResourceValues:url},void 0)]}),void 0)},void 0);}return jsxs(Title$1$1,__assign({className:className},{children:[isDocument&&jsx$1(FileIcon,{iconName:getFileIconByExtension(page.contents[language].fileInfo.extension)},void 0),pageTitle]}),void 0);};var TitleHighlight=function TitleHighlight(_a){var _b;var search=_a.search,title=_a.title,page=_a.page;var user=useCurrentUser();var preferredLanguage=NewsService.getLanguageForContent(page.contents,user);var titleHighlight=tryFindHighlight((_b=page.searchHighlights)===null||_b===void 0?void 0:_b.title,preferredLanguage);if(titleHighlight){return jsx$1(SearchHighlighter,{highlight:titleHighlight},void 0);}return jsx$1(Highlighter,{searchWords:[search],autoEscape:true,textToHighlight:title},void 0);};var Title$1$1=_styled.h2.withConfig({displayName:"PageTitle__Title",componentId:"sc-gsx6ad-0"})(templateObject_1$g$1||(templateObject_1$g$1=__makeTemplateObject(["\n display: flex;\n margin: ","px 0 ","px 0;\n font-weight: bold;\n font-size: ","px;\n padding: 0;\n"],["\n display: flex;\n margin: ","px 0 ","px 0;\n font-weight: bold;\n font-size: ","px;\n padding: 0;\n"])),spacingS+5,spacingS,fontSizeMedium);var FileIcon=_styled(Icon).withConfig({displayName:"PageTitle__FileIcon",componentId:"sc-gsx6ad-1"})(templateObject_2$c||(templateObject_2$c=__makeTemplateObject(["\n font-size: ","px;\n margin-right: ","px;\n align-self: flex-start;\n"],["\n font-size: ","px;\n margin-right: ","px;\n align-self: flex-start;\n"])),fontSizeMedium+4,spacingS);var StyledNavLink=_styled(NavLink).withConfig({displayName:"PageTitle__StyledNavLink",componentId:"sc-gsx6ad-2"})(templateObject_3$a$1||(templateObject_3$a$1=__makeTemplateObject(["\n && {\n position: relative;\n z-index: 1;\n color: ",";\n display: block;\n }\n"],["\n && {\n position: relative;\n z-index: 1;\n color: ",";\n display: block;\n }\n"])),function(p){return p.theme.textColors.default;});var templateObject_1$g$1,templateObject_2$c,templateObject_3$a$1;_styled.div.withConfig({displayName:"PageCard__PageModifiedInfo",componentId:"sc-13xtreq-0"})(templateObject_1$f$1||(templateObject_1$f$1=__makeTemplateObject(["\n font-size: ","px;\n color: ",";\n"],["\n font-size: ","px;\n color: ",";\n"])),fontSizeSmall,function(p){return p.theme.palette.neutralSecondaryAlt;});_styled(PageTitle).withConfig({displayName:"PageCard__StyledPageTitle",componentId:"sc-13xtreq-1"})(templateObject_2$b$1||(templateObject_2$b$1=__makeTemplateObject(["\n && {\n margin: 0;\n flex: 1 1 auto;\n }\n"],["\n && {\n margin: 0;\n flex: 1 1 auto;\n }\n"])));_styled(Intro$3).withConfig({displayName:"PageCard__StyledIntro",componentId:"sc-13xtreq-2"})(templateObject_3$9$1||(templateObject_3$9$1=__makeTemplateObject(["\n && {\n margin-top: ","px;\n margin-bottom: ","px;\n }\n"],["\n && {\n margin-top: ","px;\n margin-bottom: ","px;\n }\n"])),spacingS,spacingS);_styled.div.withConfig({displayName:"PageCard__Keywords",componentId:"sc-13xtreq-3"})(templateObject_4$6$1||(templateObject_4$6$1=__makeTemplateObject(["\n font-size: ","px;\n color: ",";\n padding-bottom: ","px;\n"],["\n font-size: ","px;\n color: ",";\n padding-bottom: ","px;\n"])),fontSizeSmall,function(p){return p.theme.palette.neutralSecondaryAlt;},spacingS);_styled.div.withConfig({displayName:"PageCard__Inner",componentId:"sc-13xtreq-4"})(templateObject_5$5$1||(templateObject_5$5$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin: ","px 0 ","px 0;\n"],["\n display: flex;\n align-items: center;\n margin: ","px 0 ","px 0;\n"])),spacingM,spacingS);_styled(DocumentDownloadButton).withConfig({displayName:"PageCard__StyledDocumentDownloadButton",componentId:"sc-13xtreq-5"})(templateObject_6$2$1||(templateObject_6$2$1=__makeTemplateObject(["\n align-self: flex-start;\n z-index: 1;\n"],["\n align-self: flex-start;\n z-index: 1;\n"])));var templateObject_1$f$1,templateObject_2$b$1,templateObject_3$9$1,templateObject_4$6$1,templateObject_5$5$1,templateObject_6$2$1;_styled.p.withConfig({displayName:"PageListItemBody__FullContent",componentId:"sc-7voum-0"})(templateObject_1$e$1||(templateObject_1$e$1=__makeTemplateObject(["\n padding: 0;\n margin: 0 0 ","px 0;\n font-size: ","px;\n line-height: 1.5;\n"],["\n padding: 0;\n margin: 0 0 ","px 0;\n font-size: ","px;\n line-height: 1.5;\n"])),spacingM-5,fontSizeSmall);_styled.div.withConfig({displayName:"PageListItemBody__CutContentContainer",componentId:"sc-7voum-1"})(templateObject_2$a$1||(templateObject_2$a$1=__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n margin-bottom: ","px;\n"],["\n display: flex;\n flex-direction: column;\n margin-bottom: ","px;\n"])),spacingM-5);_styled.p.withConfig({displayName:"PageListItemBody__CutContent",componentId:"sc-7voum-2"})(templateObject_3$8$1||(templateObject_3$8$1=__makeTemplateObject(["\n padding: 0;\n margin: 0;\n ","\n"],["\n padding: 0;\n margin: 0;\n ","\n"])),LineClamp(5,fontSizeSmall,1.5));_styled(ActionButton).withConfig({displayName:"PageListItemBody__StyledActionButton",componentId:"sc-7voum-3"})(templateObject_4$5$1||(templateObject_4$5$1=__makeTemplateObject(["\n && {\n height: auto;\n margin: 0 0 0 auto;\n padding: ","px ","px 0 ","px;\n font-size: ","px;\n z-index: 1;\n\n &:hover {\n text-decoration: underline;\n }\n }\n"],["\n && {\n height: auto;\n margin: 0 0 0 auto;\n padding: ","px ","px 0 ","px;\n font-size: ","px;\n z-index: 1;\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),spacingXs,spacingXs,spacingXs,fontSizeSmaller);var templateObject_1$e$1,templateObject_2$a$1,templateObject_3$8$1,templateObject_4$5$1;_styled.div.withConfig({displayName:"PageListItem__Host",componentId:"sc-lz5d51-0"})(templateObject_1$d$1||(templateObject_1$d$1=__makeTemplateObject(["\n ",";\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 100%;\n\n padding: ","px;\n"],["\n ",";\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 100%;\n\n padding: ","px;\n"])),CardBorderInline(2,2),spacingM);_styled.div.withConfig({displayName:"PageListItem__Keywords",componentId:"sc-lz5d51-1"})(templateObject_2$9$1||(templateObject_2$9$1=__makeTemplateObject(["\n position: relative;\n font-size: ","px;\n color: ",";\n padding-bottom: ","px;\n\n a {\n position: relative;\n z-index: 1;\n }\n"],["\n position: relative;\n font-size: ","px;\n color: ",";\n padding-bottom: ","px;\n\n a {\n position: relative;\n z-index: 1;\n }\n"])),fontSizeSmall,function(p){return p.theme.palette.neutralSecondaryAlt;},spacingS);_styled.div.withConfig({displayName:"PageListItem__LastUpdated",componentId:"sc-lz5d51-2"})(templateObject_3$7$1||(templateObject_3$7$1=__makeTemplateObject(["\n font-size: ","px;\n color: ",";\n"],["\n font-size: ","px;\n color: ",";\n"])),fontSizeSmall,function(p){return p.theme.palette.neutralSecondaryAlt;});_styled(PageBreadcrumb).withConfig({displayName:"PageListItem__StyledPageBreadcrumb",componentId:"sc-lz5d51-3"})(templateObject_4$4$1||(templateObject_4$4$1=__makeTemplateObject(["\n flex: 1 1 auto;\n width: ","%;\n"],["\n flex: 1 1 auto;\n width: ","%;\n"])),function(p){return p.maxWidth;});_styled.div.withConfig({displayName:"PageListItem__Inner",componentId:"sc-lz5d51-4"})(templateObject_5$4$1||(templateObject_5$4$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n\n a,\n button {\n position: relative;\n z-index: 1;\n }\n"],["\n display: flex;\n align-items: center;\n\n a,\n button {\n position: relative;\n z-index: 1;\n }\n"])));var templateObject_1$d$1,templateObject_2$9$1,templateObject_3$7$1,templateObject_4$4$1,templateObject_5$4$1;var PagesDetailViewNavigation=function PagesDetailViewNavigation(_a){var basePath=_a.basePath,navigationContext=_a.navigationContext,activePageId=_a.activePageId,className=_a.className;var features=useFeatures();var user=useCurrentUser();if(!features.inPageNavigation){return null;}var currentPage=navigationContext.siblings.find(function(s){return s.id===activePageId;});if(currentPage==null){return null;}// sort by group and position only the root pages
|
|
131809
|
+
$$1$1({target:'String',proto:true,forced:!MDN_POLYFILL_BUG&&!CORRECT_IS_REGEXP_LOGIC},{endsWith:function endsWith(searchString/* , endPosition = @length */){var that=String(requireObjectCoercible$d(this));notARegExp(searchString);var endPosition=arguments.length>1?arguments[1]:undefined;var len=toLength$2(that.length);var end=endPosition===undefined?len:min$1(toLength$2(endPosition),len);var search=String(searchString);return nativeEndsWith?nativeEndsWith.call(that,search,end):that.slice(end-search.length,end)===search;}});var SearchHighlighter=function SearchHighlighter(_a){var highlight=_a.highlight;if(!highlight){return null;}return jsx$1(Fragment,{children:highlight.texts.map(function(t){return jsxs(TextEntry,__assign({highlight:t.type==='hit'},{children:[t.value.startsWith(' ')?jsx$1(Fragment,{children:"\u00A0"},void 0):null,t.value.trim(),t.value.endsWith(' ')?jsx$1(Fragment,{children:"\u00A0"},void 0):null]}),void 0);})},void 0);};var TextEntry=_styled.span.withConfig({displayName:"SearchHighlighter__TextEntry",componentId:"sc-1a25f6p-0"})(templateObject_2$d$1||(templateObject_2$d$1=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),function(p){return p.highlight&&css$2(templateObject_1$h$1||(templateObject_1$h$1=__makeTemplateObject(["\n background-color: yellow;\n "],["\n background-color: yellow;\n "])));});function tryFindHighlight(highlights,preferredLanguage){if(!highlights){return null;}return highlights.find(function(h){return h.language===preferredLanguage;})||highlights[0];}var templateObject_1$h$1,templateObject_2$d$1;var PageTitle=function PageTitle(_a){var page=_a.page,title=_a.title,search=_a.search,className=_a.className;var user=useCurrentUser();var isDocument=page.pageType===PageType.Document;var language=getLanguageForPage(page,user);var buildPath=useSubscriptionHandlePathBuilder().buildPath;var handleExternalContentClick=useExternalContentClickHandler();var pageTitle=jsx$1(Fragment,{children:search?jsx$1(TitleHighlight,{search:search,title:title,page:page},void 0):title},void 0);if(page.useExternalContent){var preferredContentLanguage=getPreferredContentLanguage(user);var url=getExternalContentUrl(page,preferredContentLanguage);var targetRoute=NewsService.getNewsRoute(buildPath('/pages'),page.id,title);return jsx$1(Title$1$1,{children:jsxs(StyledNavLink,__assign({to:targetRoute,onClick:function(e){return handleExternalContentClick(e,page,ItemResourceTypes.Pages);}},{children:[pageTitle,jsx$1(ExternalContentIcon,{tooltipResourceKey:'ExternalLinkButton.pages.navigateTo',tooltipResourceValues:url},void 0)]}),void 0)},void 0);}return jsxs(Title$1$1,__assign({className:className},{children:[isDocument&&jsx$1(FileIcon,{iconName:getFileIconByExtension(page.contents[language].fileInfo.extension)},void 0),pageTitle]}),void 0);};var TitleHighlight=function TitleHighlight(_a){var _b;var search=_a.search,title=_a.title,page=_a.page;var user=useCurrentUser();var preferredLanguage=NewsService.getLanguageForContent(page.contents,user);var titleHighlight=tryFindHighlight((_b=page.searchHighlights)===null||_b===void 0?void 0:_b.title,preferredLanguage);if(titleHighlight){return jsx$1(SearchHighlighter,{highlight:titleHighlight},void 0);}return jsx$1(Highlighter,{searchWords:[search],autoEscape:true,textToHighlight:title},void 0);};var Title$1$1=_styled.h2.withConfig({displayName:"PageTitle__Title",componentId:"sc-gsx6ad-0"})(templateObject_1$g$1||(templateObject_1$g$1=__makeTemplateObject(["\n display: flex;\n margin: ","px 0 ","px 0;\n font-weight: bold;\n font-size: ","px;\n padding: 0;\n"],["\n display: flex;\n margin: ","px 0 ","px 0;\n font-weight: bold;\n font-size: ","px;\n padding: 0;\n"])),spacingS+5,spacingS,fontSizeMedium);var FileIcon=_styled(Icon).withConfig({displayName:"PageTitle__FileIcon",componentId:"sc-gsx6ad-1"})(templateObject_2$c$1||(templateObject_2$c$1=__makeTemplateObject(["\n font-size: ","px;\n margin-right: ","px;\n align-self: flex-start;\n"],["\n font-size: ","px;\n margin-right: ","px;\n align-self: flex-start;\n"])),fontSizeMedium+4,spacingS);var StyledNavLink=_styled(NavLink).withConfig({displayName:"PageTitle__StyledNavLink",componentId:"sc-gsx6ad-2"})(templateObject_3$a$1||(templateObject_3$a$1=__makeTemplateObject(["\n && {\n position: relative;\n z-index: 1;\n color: ",";\n display: block;\n }\n"],["\n && {\n position: relative;\n z-index: 1;\n color: ",";\n display: block;\n }\n"])),function(p){return p.theme.textColors.default;});var templateObject_1$g$1,templateObject_2$c$1,templateObject_3$a$1;_styled.div.withConfig({displayName:"PageCard__PageModifiedInfo",componentId:"sc-13xtreq-0"})(templateObject_1$f$1||(templateObject_1$f$1=__makeTemplateObject(["\n font-size: ","px;\n color: ",";\n"],["\n font-size: ","px;\n color: ",";\n"])),fontSizeSmall,function(p){return p.theme.palette.neutralSecondaryAlt;});_styled(PageTitle).withConfig({displayName:"PageCard__StyledPageTitle",componentId:"sc-13xtreq-1"})(templateObject_2$b$1||(templateObject_2$b$1=__makeTemplateObject(["\n && {\n margin: 0;\n flex: 1 1 auto;\n }\n"],["\n && {\n margin: 0;\n flex: 1 1 auto;\n }\n"])));_styled(Intro$3).withConfig({displayName:"PageCard__StyledIntro",componentId:"sc-13xtreq-2"})(templateObject_3$9$1||(templateObject_3$9$1=__makeTemplateObject(["\n && {\n margin-top: ","px;\n margin-bottom: ","px;\n }\n"],["\n && {\n margin-top: ","px;\n margin-bottom: ","px;\n }\n"])),spacingS,spacingS);_styled.div.withConfig({displayName:"PageCard__Keywords",componentId:"sc-13xtreq-3"})(templateObject_4$6$1||(templateObject_4$6$1=__makeTemplateObject(["\n font-size: ","px;\n color: ",";\n padding-bottom: ","px;\n"],["\n font-size: ","px;\n color: ",";\n padding-bottom: ","px;\n"])),fontSizeSmall,function(p){return p.theme.palette.neutralSecondaryAlt;},spacingS);_styled.div.withConfig({displayName:"PageCard__Inner",componentId:"sc-13xtreq-4"})(templateObject_5$5$1||(templateObject_5$5$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin: ","px 0 ","px 0;\n"],["\n display: flex;\n align-items: center;\n margin: ","px 0 ","px 0;\n"])),spacingM,spacingS);_styled(DocumentDownloadButton).withConfig({displayName:"PageCard__StyledDocumentDownloadButton",componentId:"sc-13xtreq-5"})(templateObject_6$2$1||(templateObject_6$2$1=__makeTemplateObject(["\n align-self: flex-start;\n z-index: 1;\n"],["\n align-self: flex-start;\n z-index: 1;\n"])));var templateObject_1$f$1,templateObject_2$b$1,templateObject_3$9$1,templateObject_4$6$1,templateObject_5$5$1,templateObject_6$2$1;_styled.p.withConfig({displayName:"PageListItemBody__FullContent",componentId:"sc-7voum-0"})(templateObject_1$e$1||(templateObject_1$e$1=__makeTemplateObject(["\n padding: 0;\n margin: 0 0 ","px 0;\n font-size: ","px;\n line-height: 1.5;\n"],["\n padding: 0;\n margin: 0 0 ","px 0;\n font-size: ","px;\n line-height: 1.5;\n"])),spacingM-5,fontSizeSmall);_styled.div.withConfig({displayName:"PageListItemBody__CutContentContainer",componentId:"sc-7voum-1"})(templateObject_2$a$1||(templateObject_2$a$1=__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n margin-bottom: ","px;\n"],["\n display: flex;\n flex-direction: column;\n margin-bottom: ","px;\n"])),spacingM-5);_styled.p.withConfig({displayName:"PageListItemBody__CutContent",componentId:"sc-7voum-2"})(templateObject_3$8$1||(templateObject_3$8$1=__makeTemplateObject(["\n padding: 0;\n margin: 0;\n ","\n"],["\n padding: 0;\n margin: 0;\n ","\n"])),LineClamp(5,fontSizeSmall,1.5));_styled(ActionButton).withConfig({displayName:"PageListItemBody__StyledActionButton",componentId:"sc-7voum-3"})(templateObject_4$5$1||(templateObject_4$5$1=__makeTemplateObject(["\n && {\n height: auto;\n margin: 0 0 0 auto;\n padding: ","px ","px 0 ","px;\n font-size: ","px;\n z-index: 1;\n\n &:hover {\n text-decoration: underline;\n }\n }\n"],["\n && {\n height: auto;\n margin: 0 0 0 auto;\n padding: ","px ","px 0 ","px;\n font-size: ","px;\n z-index: 1;\n\n &:hover {\n text-decoration: underline;\n }\n }\n"])),spacingXs,spacingXs,spacingXs,fontSizeSmaller);var templateObject_1$e$1,templateObject_2$a$1,templateObject_3$8$1,templateObject_4$5$1;_styled.div.withConfig({displayName:"PageListItem__Host",componentId:"sc-lz5d51-0"})(templateObject_1$d$1||(templateObject_1$d$1=__makeTemplateObject(["\n ",";\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 100%;\n\n padding: ","px;\n"],["\n ",";\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 100%;\n\n padding: ","px;\n"])),CardBorderInline(2,2),spacingM);_styled.div.withConfig({displayName:"PageListItem__Keywords",componentId:"sc-lz5d51-1"})(templateObject_2$9$1||(templateObject_2$9$1=__makeTemplateObject(["\n position: relative;\n font-size: ","px;\n color: ",";\n padding-bottom: ","px;\n\n a {\n position: relative;\n z-index: 1;\n }\n"],["\n position: relative;\n font-size: ","px;\n color: ",";\n padding-bottom: ","px;\n\n a {\n position: relative;\n z-index: 1;\n }\n"])),fontSizeSmall,function(p){return p.theme.palette.neutralSecondaryAlt;},spacingS);_styled.div.withConfig({displayName:"PageListItem__LastUpdated",componentId:"sc-lz5d51-2"})(templateObject_3$7$1||(templateObject_3$7$1=__makeTemplateObject(["\n font-size: ","px;\n color: ",";\n"],["\n font-size: ","px;\n color: ",";\n"])),fontSizeSmall,function(p){return p.theme.palette.neutralSecondaryAlt;});_styled(PageBreadcrumb).withConfig({displayName:"PageListItem__StyledPageBreadcrumb",componentId:"sc-lz5d51-3"})(templateObject_4$4$1||(templateObject_4$4$1=__makeTemplateObject(["\n flex: 1 1 auto;\n width: ","%;\n"],["\n flex: 1 1 auto;\n width: ","%;\n"])),function(p){return p.maxWidth;});_styled.div.withConfig({displayName:"PageListItem__Inner",componentId:"sc-lz5d51-4"})(templateObject_5$4$1||(templateObject_5$4$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n\n a,\n button {\n position: relative;\n z-index: 1;\n }\n"],["\n display: flex;\n align-items: center;\n\n a,\n button {\n position: relative;\n z-index: 1;\n }\n"])));var templateObject_1$d$1,templateObject_2$9$1,templateObject_3$7$1,templateObject_4$4$1,templateObject_5$4$1;var PagesDetailViewNavigation=function PagesDetailViewNavigation(_a){var basePath=_a.basePath,navigationContext=_a.navigationContext,activePageId=_a.activePageId,className=_a.className;var features=useFeatures();var user=useCurrentUser();if(!features.inPageNavigation){return null;}var currentPage=navigationContext.siblings.find(function(s){return s.id===activePageId;});if(currentPage==null){return null;}// sort by group and position only the root pages
|
|
131810
131810
|
var pages=!navigationContext.parent||!navigationContext.parent.id?sortPageNodesByGroupAndPosition(user.groups,navigationContext.siblings):navigationContext.siblings;var previousPage=getSibling(-1);var nextPage=getSibling(1);return jsxs(Host$2$1,__assign({className:className,"data-detail-page-navigation":activePageId},{children:[previousPage&&jsx$1(PageLinkButton,{isNextNode:false,basePath:basePath,page:previousPage,icon:"ChevronLeftSmall","data-detail-page-navigation-previous-node":previousPage.id,"data-detail-page-navigation-node":previousPage.id},void 0),nextPage&&jsx$1(PageLinkButton,{isNextNode:true,className:"next-page-link-button",basePath:basePath,page:nextPage,icon:"ChevronRightSmall","data-detail-page-navigation-next-node":nextPage.id,"data-detail-page-navigation-node":nextPage.id},void 0)]}),void 0);function getSibling(offset){var index=pages.findIndex(function(s){return s.id===activePageId;});return pages[index+offset];}};var Host$2$1=_styled.div.withConfig({displayName:"PagesDetailViewNavigation__Host",componentId:"sc-19ae9g3-0"})(templateObject_1$c$1||(templateObject_1$c$1=__makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n"],["\n display: flex;\n flex-wrap: wrap;\n"])));var PageLinkButton=function PageLinkButton(_a){var basePath=_a.basePath,page=_a.page,icon=_a.icon,isNextNode=_a.isNextNode,className=_a.className,props=__rest(_a,["basePath","page","icon","isNextNode","className"]);var user=useCurrentUser();var formatMessage=useIntl().formatMessage;var title=getTitle(page,user,formatMessage);return jsxs(Link,__assign({to:getUrl(),className:className},{children:[!isNextNode&&jsx$1(LinkIcon,{iconName:icon},void 0),jsx$1(Content$2$1,__assign({},props,{isNextNode:isNextNode},{children:jsx$1("div",__assign({title:title},{children:title}),void 0)}),void 0),isNextNode&&jsx$1(LinkIcon,{iconName:icon},void 0)]}),void 0);function getUrl(){var baseUrl=NewsService.getNewsRoute(basePath,page.id,title);return page.useExternalContent?baseUrl+"?"+queryString.stringify({noRedirect:true}):baseUrl;}};var Link=_styled(NavLink).withConfig({displayName:"PagesDetailViewNavigation__Link",componentId:"sc-19ae9g3-1"})(templateObject_2$8$1||(templateObject_2$8$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n\n padding-top: ","px;\n padding-bottom: ","px;\n margin-bottom: 2px;\n\n max-width: 45%;\n width: auto;\n border-radius: 5px;\n\n &.next-page-link-button {\n margin-left: auto;\n }\n\n @media (max-width: ","px) {\n max-width: 100% !important;\n margin-bottom: ","px;\n }\n\n background-color: ",";\n && {\n color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n\n padding-top: ","px;\n padding-bottom: ","px;\n margin-bottom: 2px;\n\n max-width: 45%;\n width: auto;\n border-radius: 5px;\n\n &.next-page-link-button {\n margin-left: auto;\n }\n\n @media (max-width: ","px) {\n max-width: 100% !important;\n margin-bottom: ","px;\n }\n\n background-color: ",";\n && {\n color: ",";\n }\n"])),spacingS,spacingS,maxScreenSize.small,spacingS,function(p){return p.theme.palette.neutralLight;},function(p){return p.theme.textColors.default;});var LinkIcon=_styled(Icon).withConfig({displayName:"PagesDetailViewNavigation__LinkIcon",componentId:"sc-19ae9g3-2"})(templateObject_3$6$1||(templateObject_3$6$1=__makeTemplateObject(["\n && {\n display: flex;\n justify-content: center;\n font-size: ","px;\n padding: 0 ","px;\n }\n"],["\n && {\n display: flex;\n justify-content: center;\n font-size: ","px;\n padding: 0 ","px;\n }\n"])),fontSizeNormal,spacingM);var Content$2$1=_styled.div.withConfig({displayName:"PagesDetailViewNavigation__Content",componentId:"sc-19ae9g3-3"})(templateObject_5$3$1||(templateObject_5$3$1=__makeTemplateObject(["\n flex: 0 1 auto;\n display: flex;\n flex-direction: column;\n padding-right: 23px;\n\n white-space: nowrap;\n overflow: hidden;\n\n div {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ","\n"],["\n flex: 0 1 auto;\n display: flex;\n flex-direction: column;\n padding-right: 23px;\n\n white-space: nowrap;\n overflow: hidden;\n\n div {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ","\n"])),function(p){return p.isNextNode&&css$2(templateObject_4$3$1||(templateObject_4$3$1=__makeTemplateObject(["\n margin-left: auto;\n padding-left: 23px;\n padding-right: 0;\n "],["\n margin-left: auto;\n padding-left: 23px;\n padding-right: 0;\n "])));});var templateObject_1$c$1,templateObject_2$8$1,templateObject_3$6$1,templateObject_4$3$1,templateObject_5$3$1;_styled(Dropdown).withConfig({displayName:"PagesGroupsSelector__StyledDropdown",componentId:"sc-13yd888-0"})(templateObject_1$b$1||(templateObject_1$b$1=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),ToolbarDropdownStyles);_styled(NavLink).withConfig({displayName:"PagesGroupsSelector__DropdownOption",componentId:"sc-13yd888-1"})(templateObject_2$7$1||(templateObject_2$7$1=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),ToolbarOptionStyles);createGlobalStyle(templateObject_3$5$1||(templateObject_3$5$1=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),ToolbarGlobalDropdownStyles);var templateObject_1$b$1,templateObject_2$7$1,templateObject_3$5$1;_styled.div.withConfig({displayName:"GroupNotificationsSettings__Host",componentId:"sc-1z0rxrb-0"})(templateObject_1$a$1||(templateObject_1$a$1=__makeTemplateObject(["\n width: 400px;\n\n @media (max-width: ","px) {\n width: 100%;\n }\n"],["\n width: 400px;\n\n @media (max-width: ","px) {\n width: 100%;\n }\n"])),maxScreenSize.small);_styled.h2.withConfig({displayName:"GroupNotificationsSettings__Title",componentId:"sc-1z0rxrb-1"})(templateObject_2$6$1||(templateObject_2$6$1=__makeTemplateObject(["\n margin-top: 0;\n"],["\n margin-top: 0;\n"])));_styled.div.withConfig({displayName:"GroupNotificationsSettings__Infos",componentId:"sc-1z0rxrb-2"})(templateObject_3$4$1||(templateObject_3$4$1=__makeTemplateObject(["\n color: ",";\n padding-left: 55px;\n"],["\n color: ",";\n padding-left: 55px;\n"])),function(p){return p.theme.palette.neutralTertiaryAlt;});var templateObject_1$a$1,templateObject_2$6$1,templateObject_3$4$1;function getPostGroups(user){return getGroupsWithExplicitMinRole(GroupRoles.LimitedReader,user,function(g){return g.allowPosts;});}function getPostsBaseRoute(post,user){var _a;var postGroups=getPostGroups(user);var subscriptionHandle=(_a=user.subscription.subscriptionHandle)!==null&&_a!==void 0?_a:user.subscription.id;return postGroups.length>1?"/"+subscriptionHandle+"/posts/groups/"+((post===null||post===void 0?void 0:post.groupId)||''):"/"+subscriptionHandle+"/posts";}function getPostsHashtagFilterRoute(post,user,hashtag){return getPostsBaseRoute(post,user)+"?"+queryString.stringify({search:""+hashtag});}var PostReplies=function PostReplies(_a){var className=_a.className,post=_a.post,comments=_a.comments,initialPageSize=_a.initialPageSize,autoFocusReplyField=_a.autoFocusReplyField,onReplyAdded=_a.onReplyAdded,onReplyDeleted=_a.onReplyDeleted,onThreadReply=_a.onThreadReply;var user=useCurrentUser();var searchPostMentionUsers=usePostsApi().searchPostMentionUsers;if(!post||!post.id){return null;}return jsx$1(StyledPagedCommentsSection,{className:className,mentionSearchHandler:function(text){return searchPostMentionUsers(text,post.groupId);},type:ItemResourceTypes.Posts,scope:ConversationScope.Posts,itemId:post.id,groupIds:[post.groupId],readOnly:false,pageSize:5,initialPageSize:initialPageSize,initialComments:comments,onCommentAdded:onReplyAdded,onCommentDeleted:onReplyDeleted,noItemsYetStringResourceKey:"Posts.replies.empty",autoFocusReplyField:autoFocusReplyField,baseAttachmentPath:"/posts/"+post.id+"/comments",getHashtagFilterRoute:function(hashtag){return getPostsHashtagFilterRoute(post,user,hashtag);},onThreadReply:onThreadReply},post.id);};var StyledPagedCommentsSection=_styled(PagedCommentsSection).withConfig({displayName:"PostReplies__StyledPagedCommentsSection",componentId:"sc-8mrgcg-0"})(templateObject_1$9$1||(templateObject_1$9$1=__makeTemplateObject(["\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n > div {\n width: 100%;\n }\n"],["\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n > div {\n width: 100%;\n }\n"])));var templateObject_1$9$1;var PostEditor=function PostEditor(_a){var className=_a.className,post=_a.post,onBeforeSave=_a.onBeforeSave,onSaved=_a.onSaved,onCancel=_a.onCancel,keywordSettings=_a.keywordSettings;var features=useFeatures();var _b=usePostsApi(),searchPostMentionUsers=_b.searchPostMentionUsers,updatePost=_b.updatePost;var _c=useContext(LazySubscriptionContext),allKeywords=_c.allKeywords,keywordsByGroupId=_c.keywordsByGroupId;var _d=useNotificationContext(),showToast=_d.showToast,showError=_d.showError;if(allKeywords==null||keywordsByGroupId==null){return null;}return jsx$1(EditCommentWithAttachments,{className:className,onCancel:onCancel,content:post.content,onSave:handleSavePost,mentionSearchHandler:function(text){return searchPostMentionUsers(text,post.groupId);},inputTheme:"dark",item:post,basePath:'/posts',allowKeywords:features.keywords&&features.postKeywords,availableKeywords:keywordSettings===null||keywordSettings===void 0?void 0:keywordSettings.availableKeywords,mandatoryKeywords:keywordSettings===null||keywordSettings===void 0?void 0:keywordSettings.mandatoryKeywords,keywords:post.keywords,saveOnCtrlEnter:true},void 0);function handleSavePost(newContent,attachments,keywords){return __awaiter(this,void 0,void 0,function(){var updatedPost,error_1;return __generator(this,function(_a){switch(_a.label){case 0:_a.trys.push([0,2,,3]);onBeforeSave(__assign(__assign({},post),{content:newContent,attachments:attachments,keywords:keywords}));return [4/*yield*/,updatePost(post.id,newContent,attachments,keywords)];case 1:updatedPost=_a.sent();onSaved(updatedPost);showToast('Posts.successfullyUpdated');return [3/*break*/,3];case 2:error_1=_a.sent();logger.error(error_1);showError('Generic.error');return [3/*break*/,3];case 3:return [2/*return*/];}});});}};_styled(IconButton).withConfig({displayName:"PostFollowButton__StyledIconButton",componentId:"sc-1i97syp-0"})(templateObject_1$8$1||(templateObject_1$8$1=__makeTemplateObject(["\n && {\n margin: 0;\n font-size: inherit;\n\n &[disabled] {\n background: transparent;\n }\n }\n\n i {\n font-size: 20px;\n }\n user-select: none;\n"],["\n && {\n margin: 0;\n font-size: inherit;\n\n &[disabled] {\n background: transparent;\n }\n }\n\n i {\n font-size: 20px;\n }\n user-select: none;\n"])));var templateObject_1$8$1;var PostGroup=function PostGroup(_a){var groupId=_a.groupId,to=_a.to,className=_a.className;var intl=useIntl();var user=useCurrentUser();var group=user.groups.find(function(g){return g.id===groupId;});var groupName=getGroupName(group,user,intl);return jsx$1(Group,__assign({"data-post-group":groupId,title:groupName,to:to,className:className},{children:jsx$1("span",{children:groupName},void 0)}),void 0);};var Group=_styled(NavLink).withConfig({displayName:"PostGroup__Group",componentId:"sc-182l34m-0"})(templateObject_1$7$1||(templateObject_1$7$1=__makeTemplateObject(["\n font-size: ","px;\n height: 100%;\n\n span {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ","\n"],["\n font-size: ","px;\n height: 100%;\n\n span {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n ","\n"])),fontSizeSmall,function(){return HighlightBubble();});var templateObject_1$7$1;_styled.div.withConfig({displayName:"PostDisplay__Host",componentId:"sc-1tope3b-0"})(templateObject_1$6$1||(templateObject_1$6$1=__makeTemplateObject(["\n ",";\n\n position: relative;\n\n // TODO: The font-sizes should be cleaned up as well,\n // there are too many different places where these are set\n // We set it here to 14px in order to have the same font-size as in the comment editor / comment input\n font-size: ","px;\n line-height: ","px;\n\n display: flex;\n flex-direction: column;\n .ms-layer {\n display: none;\n }\n"],["\n ",";\n\n position: relative;\n\n // TODO: The font-sizes should be cleaned up as well,\n // there are too many different places where these are set\n // We set it here to 14px in order to have the same font-size as in the comment editor / comment input\n font-size: ","px;\n line-height: ","px;\n\n display: flex;\n flex-direction: column;\n .ms-layer {\n display: none;\n }\n"])),CardBorderInline(2,2),fontSizeSmall,spacingM);_styled.div.withConfig({displayName:"PostDisplay__Header",componentId:"sc-1tope3b-1"})(templateObject_2$5$1||(templateObject_2$5$1=__makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n"],["\n display: flex;\n align-items: flex-start;\n"])));var avatarWidth=40;var maxButtonsWidth=120;// max 4 buttons at 30 px each (translate, notifications, like and context menu)
|
|
131811
|
-
var paddingLeft=spacingS;var postGroupWidth=250;var postGroupWidthSmall=215;_styled.div.withConfig({displayName:"PostDisplay__HeaderMetadata",componentId:"sc-1tope3b-2"})(templateObject_3$3$1||(templateObject_3$3$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n\n font-size: ","px;\n padding-left: ","px;\n max-width: calc(\n 100% - ","px - ","px - ","px -\n ","px\n );\n\n @media (max-width: ","px) {\n flex-direction: column;\n max-width: calc(\n 100% - ","px - ","px - ","px\n );\n }\n"],["\n display: flex;\n align-items: center;\n\n font-size: ","px;\n padding-left: ","px;\n max-width: calc(\n 100% - ","px - ","px - ","px -\n ","px\n );\n\n @media (max-width: ","px) {\n flex-direction: column;\n max-width: calc(\n 100% - ","px - ","px - ","px\n );\n }\n"])),fontSizeSmall,paddingLeft,avatarWidth,maxButtonsWidth,paddingLeft,function(p){return p.addSafetySpace?postGroupWidth:0;},maxScreenSize.medium,avatarWidth,maxButtonsWidth,paddingLeft);_styled.div.withConfig({displayName:"PostDisplay__Content",componentId:"sc-1tope3b-3"})(templateObject_4$2$1||(templateObject_4$2$1=__makeTemplateObject(["\n padding-top: 15px;\n a {\n text-decoration: underline;\n }\n"],["\n padding-top: 15px;\n a {\n text-decoration: underline;\n }\n"])));_styled.div.withConfig({displayName:"PostDisplay__ActionButtons",componentId:"sc-1tope3b-4"})(templateObject_5$2$1||(templateObject_5$2$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-left: auto;\n"],["\n display: flex;\n align-items: center;\n margin-left: auto;\n"])));_styled.div.withConfig({displayName:"PostDisplay__PostDisplayName",componentId:"sc-1tope3b-5"})(templateObject_6$1$1||(templateObject_6$1$1=__makeTemplateObject(["\n font-weight: bold;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n font-weight: bold;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])));_styled(DateTime).withConfig({displayName:"PostDisplay__PostDateTime",componentId:"sc-1tope3b-6"})(templateObject_7$1$1||(templateObject_7$1$1=__makeTemplateObject(["\n font-size: ","px;\n"],["\n font-size: ","px;\n"])),fontSizeSmaller);_styled(ActionButton).withConfig({displayName:"PostDisplay__AddReplyButton",componentId:"sc-1tope3b-7"})(templateObject_8$1$1||(templateObject_8$1$1=__makeTemplateObject(["\n margin-top: ","px;\n\n && {\n height: auto;\n min-height: 20px;\n border: none;\n padding: 0;\n color: ",";\n align-self: flex-start;\n }\n"],["\n margin-top: ","px;\n\n && {\n height: auto;\n min-height: 20px;\n border: none;\n padding: 0;\n color: ",";\n align-self: flex-start;\n }\n"])),spacingM,function(p){return p.theme.palette.accent;});_styled.div.withConfig({displayName:"PostDisplay__InnerHost",componentId:"sc-1tope3b-8"})(templateObject_10$d||(templateObject_10$d=__makeTemplateObject(["\n position: relative;\n padding: ","px;\n display: flex;\n flex-direction: column;\n\n ","\n"],["\n position: relative;\n padding: ","px;\n display: flex;\n flex-direction: column;\n\n ","\n"])),postsSectionPadding,function(p){return p.highlight&&css$2(templateObject_9$1$1||(templateObject_9$1$1=__makeTemplateObject(["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: 6px;\n display: block;\n background-color: ",";\n }\n "],["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: 6px;\n display: block;\n background-color: ",";\n }\n "])),function(p){return p.theme.palette.accent;});});_styled(PostReplies).withConfig({displayName:"PostDisplay__StyledPostComments",componentId:"sc-1tope3b-9"})(templateObject_11$8||(templateObject_11$8=__makeTemplateObject(["\n padding: ","px;\n background-color: ",";\n"],["\n padding: ","px;\n background-color: ",";\n"])),postsSectionPadding,function(p){return p.theme.palette.neutralLight;});_styled(PostEditor).withConfig({displayName:"PostDisplay__StyledPostEditor",componentId:"sc-1tope3b-10"})(templateObject_12$7||(templateObject_12$7=__makeTemplateObject(["\n margin-top: 7px;\n position: relative;\n"],["\n margin-top: 7px;\n position: relative;\n"])));_styled(NavLink).withConfig({displayName:"PostDisplay__PostLink",componentId:"sc-1tope3b-11"})(templateObject_13$6||(templateObject_13$6=__makeTemplateObject(["\n display: block;\n width: 100%;\n"],["\n display: block;\n width: 100%;\n"])));_styled(PostGroup).withConfig({displayName:"PostDisplay__StyledPostGroup",componentId:"sc-1tope3b-12"})(templateObject_14$6||(templateObject_14$6=__makeTemplateObject(["\n margin-left: ","px;\n max-width: ","px;\n\n @media (max-width: ","px) {\n margin-left: 0;\n margin-top: ","px;\n max-width: ","px;\n align-self: flex-start;\n }\n"],["\n margin-left: ","px;\n max-width: ","px;\n\n @media (max-width: ","px) {\n margin-left: 0;\n margin-top: ","px;\n max-width: ","px;\n align-self: flex-start;\n }\n"])),spacingM,postGroupWidth,maxScreenSize.medium,spacingS,postGroupWidthSmall);_styled(LikeButton).withConfig({displayName:"PostDisplay__StyledLikeButton",componentId:"sc-1tope3b-13"})(templateObject_15$6||(templateObject_15$6=__makeTemplateObject(["\n min-width: 1px;\n margin: 0;\n margin-right: 0 !important; /* IE fix */\n padding: 0 4px;\n i {\n font-size: 20px;\n }\n"],["\n min-width: 1px;\n margin: 0;\n margin-right: 0 !important; /* IE fix */\n padding: 0 4px;\n i {\n font-size: 20px;\n }\n"])));_styled(ImagesAndFilesList).withConfig({displayName:"PostDisplay__StyledImagesAndFilesList",componentId:"sc-1tope3b-14"})(templateObject_16$6||(templateObject_16$6=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingM);_styled(IconButton).withConfig({displayName:"PostDisplay__MenuButton",componentId:"sc-1tope3b-15"})(templateObject_17$5||(templateObject_17$5=__makeTemplateObject(["\n && {\n padding: 0;\n i {\n margin: 0;\n font-size: 20px;\n }\n }\n"],["\n && {\n padding: 0;\n i {\n margin: 0;\n font-size: 20px;\n }\n }\n"])));_styled(KeywordsInfo).withConfig({displayName:"PostDisplay__StyledKeywordsInfo",componentId:"sc-1tope3b-16"})(templateObject_18$4||(templateObject_18$4=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingM);_styled(ThreadView).withConfig({displayName:"PostDisplay__StyledThreadView",componentId:"sc-1tope3b-17"})(templateObject_19$4||(templateObject_19$4=__makeTemplateObject(["\n padding: ","px;\n background-color: ",";\n"],["\n padding: ","px;\n background-color: ",";\n"])),postsSectionPadding,function(p){return p.theme.palette.neutralLight;});var templateObject_1$6$1,templateObject_2$5$1,templateObject_3$3$1,templateObject_4$2$1,templateObject_5$2$1,templateObject_6$1$1,templateObject_7$1$1,templateObject_8$1$1,templateObject_9$1$1,templateObject_10$d,templateObject_11$8,templateObject_12$7,templateObject_13$6,templateObject_14$6,templateObject_15$6,templateObject_16$6,templateObject_17$5,templateObject_18$4,templateObject_19$4;_styled(Dropdown).withConfig({displayName:"PostGroupsSelector__StyledDropdown",componentId:"sc-g6rhck-0"})(templateObject_1$5$1||(templateObject_1$5$1=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),ToolbarDropdownStyles);_styled(NavLink).withConfig({displayName:"PostGroupsSelector__DropdownOption",componentId:"sc-g6rhck-1"})(templateObject_2$4$1||(templateObject_2$4$1=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),ToolbarOptionStyles);createGlobalStyle(templateObject_3$2$1||(templateObject_3$2$1=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),ToolbarGlobalDropdownStyles);var templateObject_1$5$1,templateObject_2$4$1,templateObject_3$2$1;var isArray$1=isArray$3;var toLength$1=toLength$b;var bind=functionBindContext;// `FlattenIntoArray` abstract operation
|
|
131811
|
+
var paddingLeft=spacingS;var postGroupWidth=250;var postGroupWidthSmall=215;_styled.div.withConfig({displayName:"PostDisplay__HeaderMetadata",componentId:"sc-1tope3b-2"})(templateObject_3$3$1||(templateObject_3$3$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n\n font-size: ","px;\n padding-left: ","px;\n max-width: calc(\n 100% - ","px - ","px - ","px -\n ","px\n );\n\n @media (max-width: ","px) {\n flex-direction: column;\n max-width: calc(\n 100% - ","px - ","px - ","px\n );\n }\n"],["\n display: flex;\n align-items: center;\n\n font-size: ","px;\n padding-left: ","px;\n max-width: calc(\n 100% - ","px - ","px - ","px -\n ","px\n );\n\n @media (max-width: ","px) {\n flex-direction: column;\n max-width: calc(\n 100% - ","px - ","px - ","px\n );\n }\n"])),fontSizeSmall,paddingLeft,avatarWidth,maxButtonsWidth,paddingLeft,function(p){return p.addSafetySpace?postGroupWidth:0;},maxScreenSize.medium,avatarWidth,maxButtonsWidth,paddingLeft);_styled.div.withConfig({displayName:"PostDisplay__Content",componentId:"sc-1tope3b-3"})(templateObject_4$2$1||(templateObject_4$2$1=__makeTemplateObject(["\n padding-top: 15px;\n a {\n text-decoration: underline;\n }\n"],["\n padding-top: 15px;\n a {\n text-decoration: underline;\n }\n"])));_styled.div.withConfig({displayName:"PostDisplay__ActionButtons",componentId:"sc-1tope3b-4"})(templateObject_5$2$1||(templateObject_5$2$1=__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-left: auto;\n"],["\n display: flex;\n align-items: center;\n margin-left: auto;\n"])));_styled.div.withConfig({displayName:"PostDisplay__PostDisplayName",componentId:"sc-1tope3b-5"})(templateObject_6$1$1||(templateObject_6$1$1=__makeTemplateObject(["\n font-weight: bold;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n font-weight: bold;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])));_styled(DateTime).withConfig({displayName:"PostDisplay__PostDateTime",componentId:"sc-1tope3b-6"})(templateObject_7$1$1||(templateObject_7$1$1=__makeTemplateObject(["\n font-size: ","px;\n"],["\n font-size: ","px;\n"])),fontSizeSmaller);_styled(ActionButton).withConfig({displayName:"PostDisplay__AddReplyButton",componentId:"sc-1tope3b-7"})(templateObject_8$1$1||(templateObject_8$1$1=__makeTemplateObject(["\n margin-top: ","px;\n\n && {\n height: auto;\n min-height: 20px;\n border: none;\n padding: 0;\n color: ",";\n align-self: flex-start;\n }\n"],["\n margin-top: ","px;\n\n && {\n height: auto;\n min-height: 20px;\n border: none;\n padding: 0;\n color: ",";\n align-self: flex-start;\n }\n"])),spacingM,function(p){return p.theme.palette.accent;});_styled.div.withConfig({displayName:"PostDisplay__InnerHost",componentId:"sc-1tope3b-8"})(templateObject_10$d||(templateObject_10$d=__makeTemplateObject(["\n position: relative;\n padding: ","px;\n display: flex;\n flex-direction: column;\n\n ","\n"],["\n position: relative;\n padding: ","px;\n display: flex;\n flex-direction: column;\n\n ","\n"])),postsSectionPadding,function(p){return p.highlight&&css$2(templateObject_9$1$1||(templateObject_9$1$1=__makeTemplateObject(["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: 6px;\n display: block;\n background-color: ",";\n }\n "],["\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: 6px;\n display: block;\n background-color: ",";\n }\n "])),function(p){return p.theme.palette.accent;});});_styled(PostReplies).withConfig({displayName:"PostDisplay__StyledPostComments",componentId:"sc-1tope3b-9"})(templateObject_11$8||(templateObject_11$8=__makeTemplateObject(["\n padding: ","px;\n background-color: ",";\n"],["\n padding: ","px;\n background-color: ",";\n"])),postsSectionPadding,function(p){return p.theme.palette.neutralLight;});_styled(PostEditor).withConfig({displayName:"PostDisplay__StyledPostEditor",componentId:"sc-1tope3b-10"})(templateObject_12$7||(templateObject_12$7=__makeTemplateObject(["\n margin-top: 7px;\n position: relative;\n"],["\n margin-top: 7px;\n position: relative;\n"])));_styled(NavLink).withConfig({displayName:"PostDisplay__PostLink",componentId:"sc-1tope3b-11"})(templateObject_13$6||(templateObject_13$6=__makeTemplateObject(["\n display: block;\n width: 100%;\n"],["\n display: block;\n width: 100%;\n"])));_styled(PostGroup).withConfig({displayName:"PostDisplay__StyledPostGroup",componentId:"sc-1tope3b-12"})(templateObject_14$6||(templateObject_14$6=__makeTemplateObject(["\n margin-left: ","px;\n max-width: ","px;\n\n @media (max-width: ","px) {\n margin-left: 0;\n margin-top: ","px;\n max-width: ","px;\n align-self: flex-start;\n }\n"],["\n margin-left: ","px;\n max-width: ","px;\n\n @media (max-width: ","px) {\n margin-left: 0;\n margin-top: ","px;\n max-width: ","px;\n align-self: flex-start;\n }\n"])),spacingM,postGroupWidth,maxScreenSize.medium,spacingS,postGroupWidthSmall);_styled(LikeButton).withConfig({displayName:"PostDisplay__StyledLikeButton",componentId:"sc-1tope3b-13"})(templateObject_15$6||(templateObject_15$6=__makeTemplateObject(["\n min-width: 1px;\n margin: 0;\n margin-right: 0 !important; /* IE fix */\n padding: 0 4px;\n i {\n font-size: 20px;\n }\n"],["\n min-width: 1px;\n margin: 0;\n margin-right: 0 !important; /* IE fix */\n padding: 0 4px;\n i {\n font-size: 20px;\n }\n"])));_styled(ImagesAndFilesList).withConfig({displayName:"PostDisplay__StyledImagesAndFilesList",componentId:"sc-1tope3b-14"})(templateObject_16$6||(templateObject_16$6=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingM);_styled(IconButton).withConfig({displayName:"PostDisplay__MenuButton",componentId:"sc-1tope3b-15"})(templateObject_17$5||(templateObject_17$5=__makeTemplateObject(["\n && {\n padding: 0;\n i {\n margin: 0;\n font-size: 20px;\n }\n }\n"],["\n && {\n padding: 0;\n i {\n margin: 0;\n font-size: 20px;\n }\n }\n"])));_styled(KeywordsInfo).withConfig({displayName:"PostDisplay__StyledKeywordsInfo",componentId:"sc-1tope3b-16"})(templateObject_18$4||(templateObject_18$4=__makeTemplateObject(["\n margin-top: ","px;\n"],["\n margin-top: ","px;\n"])),spacingM);_styled(ThreadView).withConfig({displayName:"PostDisplay__StyledThreadView",componentId:"sc-1tope3b-17"})(templateObject_19$4||(templateObject_19$4=__makeTemplateObject(["\n padding: ","px;\n background-color: ",";\n"],["\n padding: ","px;\n background-color: ",";\n"])),postsSectionPadding,function(p){return p.theme.palette.neutralLight;});var templateObject_1$6$1,templateObject_2$5$1,templateObject_3$3$1,templateObject_4$2$1,templateObject_5$2$1,templateObject_6$1$1,templateObject_7$1$1,templateObject_8$1$1,templateObject_9$1$1,templateObject_10$d,templateObject_11$8,templateObject_12$7,templateObject_13$6,templateObject_14$6,templateObject_15$6,templateObject_16$6,templateObject_17$5,templateObject_18$4,templateObject_19$4;_styled(Dropdown).withConfig({displayName:"PostGroupsSelector__StyledDropdown",componentId:"sc-g6rhck-0"})(templateObject_1$5$1||(templateObject_1$5$1=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),ToolbarDropdownStyles);_styled(NavLink).withConfig({displayName:"PostGroupsSelector__DropdownOption",componentId:"sc-g6rhck-1"})(templateObject_2$4$1||(templateObject_2$4$1=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),ToolbarOptionStyles);createGlobalStyle(templateObject_3$2$1||(templateObject_3$2$1=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),ToolbarGlobalDropdownStyles);var templateObject_1$5$1,templateObject_2$4$1,templateObject_3$2$1;var isArray$1=isArray$3;var toLength$1$1=toLength$b;var bind=functionBindContext;// `FlattenIntoArray` abstract operation
|
|
131812
131812
|
// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
|
|
131813
|
-
var flattenIntoArray$1=function(target,original,source,sourceLen,start,depth,mapper,thisArg){var targetIndex=start;var sourceIndex=0;var mapFn=mapper?bind(mapper,thisArg,3):false;var element;while(sourceIndex<sourceLen){if(sourceIndex in source){element=mapFn?mapFn(source[sourceIndex],sourceIndex,original):source[sourceIndex];if(depth>0&&isArray$1(element)){targetIndex=flattenIntoArray$1(target,original,element,toLength$1(element.length),targetIndex,depth-1)-1;}else {if(targetIndex>=0x1FFFFFFFFFFFFF)throw TypeError('Exceed the acceptable array length');target[targetIndex]=element;}targetIndex++;}sourceIndex++;}return targetIndex;};var flattenIntoArray_1=flattenIntoArray$1;var isObject=isObject$c;var isArray=isArray$3;var wellKnownSymbol$m=wellKnownSymbol$l;var SPECIES$5=wellKnownSymbol$m('species');// `ArraySpeciesCreate` abstract operation
|
|
131813
|
+
var flattenIntoArray$1=function(target,original,source,sourceLen,start,depth,mapper,thisArg){var targetIndex=start;var sourceIndex=0;var mapFn=mapper?bind(mapper,thisArg,3):false;var element;while(sourceIndex<sourceLen){if(sourceIndex in source){element=mapFn?mapFn(source[sourceIndex],sourceIndex,original):source[sourceIndex];if(depth>0&&isArray$1(element)){targetIndex=flattenIntoArray$1(target,original,element,toLength$1$1(element.length),targetIndex,depth-1)-1;}else {if(targetIndex>=0x1FFFFFFFFFFFFF)throw TypeError('Exceed the acceptable array length');target[targetIndex]=element;}targetIndex++;}sourceIndex++;}return targetIndex;};var flattenIntoArray_1=flattenIntoArray$1;var isObject=isObject$c;var isArray=isArray$3;var wellKnownSymbol$m=wellKnownSymbol$l;var SPECIES$5=wellKnownSymbol$m('species');// `ArraySpeciesCreate` abstract operation
|
|
131814
131814
|
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate
|
|
131815
131815
|
var arraySpeciesCreate$1=function(originalArray,length){var C;if(isArray(originalArray)){C=originalArray.constructor;// cross-realm fallback
|
|
131816
131816
|
if(typeof C=='function'&&(C===Array||isArray(C.prototype)))C=undefined;else if(isObject(C)){C=C[SPECIES$5];if(C===null)C=undefined;}}return new(C===undefined?Array:C)(length===0?0:length);};var $$h=_export;var flattenIntoArray=flattenIntoArray_1;var toObject=toObject$7;var toLength$c=toLength$b;var aFunction=aFunction$7;var arraySpeciesCreate=arraySpeciesCreate$1;// `Array.prototype.flatMap` method
|
|
@@ -131875,9 +131875,9 @@ var NewsDetailViewMetaInfo = function NewsDetailViewMetaInfo() {
|
|
|
131875
131875
|
var DetailMetaInfo = _styled(ItemMetaInfo).withConfig({
|
|
131876
131876
|
displayName: "NewsDetailViewMetaInfo__DetailMetaInfo",
|
|
131877
131877
|
componentId: "sc-1v9a7tf-0"
|
|
131878
|
-
})(templateObject_1$
|
|
131878
|
+
})(templateObject_1$n || (templateObject_1$n = __makeTemplateObject$l(["\n display: flex;\n font-size: 12px;\n margin-top: 12px;\n\n @media (min-width: ", "px) {\n font-size: 14px;\n }\n"], ["\n display: flex;\n font-size: 12px;\n margin-top: 12px;\n\n @media (min-width: ", "px) {\n font-size: 14px;\n }\n"])), minScreenSize.small);
|
|
131879
131879
|
|
|
131880
|
-
var templateObject_1$
|
|
131880
|
+
var templateObject_1$n;
|
|
131881
131881
|
|
|
131882
131882
|
var NewsItemContextProvider = function NewsItemContextProvider(_a) {
|
|
131883
131883
|
var itemId = _a.itemId,
|
|
@@ -131913,7 +131913,7 @@ var NewsDetail = function NewsDetail(_a) {
|
|
|
131913
131913
|
}
|
|
131914
131914
|
|
|
131915
131915
|
if (!itemContext) {
|
|
131916
|
-
return jsx$1(Host$
|
|
131916
|
+
return jsx$1(Host$f, __assign$g({
|
|
131917
131917
|
className: className
|
|
131918
131918
|
}, {
|
|
131919
131919
|
children: jsx$1(NewsItemContextProvider, __assign$g({
|
|
@@ -131928,7 +131928,7 @@ var NewsDetail = function NewsDetail(_a) {
|
|
|
131928
131928
|
}), void 0);
|
|
131929
131929
|
}
|
|
131930
131930
|
|
|
131931
|
-
return jsx$1(Host$
|
|
131931
|
+
return jsx$1(Host$f, __assign$g({
|
|
131932
131932
|
className: className
|
|
131933
131933
|
}, {
|
|
131934
131934
|
children: jsx$1(NewsDetailInternal, {
|
|
@@ -131980,19 +131980,19 @@ var NewsDetailMainContent = function NewsDetailMainContent(_a) {
|
|
|
131980
131980
|
}, void 0);
|
|
131981
131981
|
};
|
|
131982
131982
|
|
|
131983
|
-
var Host$
|
|
131983
|
+
var Host$f = _styled.div.withConfig({
|
|
131984
131984
|
displayName: "NewsDetail__Host",
|
|
131985
131985
|
componentId: "sc-6rz5th-0"
|
|
131986
|
-
})(templateObject_1$
|
|
131986
|
+
})(templateObject_1$m || (templateObject_1$m = __makeTemplateObject$l([""], [""])));
|
|
131987
131987
|
|
|
131988
|
-
var templateObject_1$
|
|
131988
|
+
var templateObject_1$m;
|
|
131989
131989
|
|
|
131990
|
-
var anObject$
|
|
131990
|
+
var anObject$3 = anObject$v;
|
|
131991
131991
|
|
|
131992
131992
|
// `RegExp.prototype.flags` getter implementation
|
|
131993
131993
|
// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
|
|
131994
131994
|
var regexpFlags$1 = function () {
|
|
131995
|
-
var that = anObject$
|
|
131995
|
+
var that = anObject$3(this);
|
|
131996
131996
|
var result = '';
|
|
131997
131997
|
if (that.global) result += 'g';
|
|
131998
131998
|
if (that.ignoreCase) result += 'i';
|
|
@@ -132005,7 +132005,7 @@ var regexpFlags$1 = function () {
|
|
|
132005
132005
|
|
|
132006
132006
|
var regexpStickyHelpers = {};
|
|
132007
132007
|
|
|
132008
|
-
var fails$
|
|
132008
|
+
var fails$4 = fails$w;
|
|
132009
132009
|
|
|
132010
132010
|
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
|
|
132011
132011
|
// so we use an intermediate function.
|
|
@@ -132013,14 +132013,14 @@ function RE(s, f) {
|
|
|
132013
132013
|
return RegExp(s, f);
|
|
132014
132014
|
}
|
|
132015
132015
|
|
|
132016
|
-
regexpStickyHelpers.UNSUPPORTED_Y = fails$
|
|
132016
|
+
regexpStickyHelpers.UNSUPPORTED_Y = fails$4(function () {
|
|
132017
132017
|
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
132018
132018
|
var re = RE('a', 'y');
|
|
132019
132019
|
re.lastIndex = 2;
|
|
132020
132020
|
return re.exec('abcd') != null;
|
|
132021
132021
|
});
|
|
132022
132022
|
|
|
132023
|
-
regexpStickyHelpers.BROKEN_CARET = fails$
|
|
132023
|
+
regexpStickyHelpers.BROKEN_CARET = fails$4(function () {
|
|
132024
132024
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
132025
132025
|
var re = RE('^r', 'gy');
|
|
132026
132026
|
re.lastIndex = 2;
|
|
@@ -132112,10 +132112,10 @@ if (PATCH) {
|
|
|
132112
132112
|
};
|
|
132113
132113
|
}
|
|
132114
132114
|
|
|
132115
|
-
var regexpExec$
|
|
132115
|
+
var regexpExec$3 = patchedExec;
|
|
132116
132116
|
|
|
132117
132117
|
var $$1 = _export$7;
|
|
132118
|
-
var exec = regexpExec$
|
|
132118
|
+
var exec = regexpExec$3;
|
|
132119
132119
|
|
|
132120
132120
|
$$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
132121
132121
|
exec: exec
|
|
@@ -132124,14 +132124,14 @@ $$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
|
132124
132124
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
132125
132125
|
|
|
132126
132126
|
var redefine$1 = redefine$k.exports;
|
|
132127
|
-
var fails$
|
|
132127
|
+
var fails$3 = fails$w;
|
|
132128
132128
|
var wellKnownSymbol = wellKnownSymbol$E;
|
|
132129
|
-
var regexpExec$
|
|
132129
|
+
var regexpExec$2 = regexpExec$3;
|
|
132130
132130
|
var createNonEnumerableProperty = createNonEnumerableProperty$k;
|
|
132131
132131
|
|
|
132132
132132
|
var SPECIES = wellKnownSymbol('species');
|
|
132133
132133
|
|
|
132134
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
|
132134
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$3(function () {
|
|
132135
132135
|
// #replace needs built-in support for named groups.
|
|
132136
132136
|
// #match works fine because it just return the exec results, even if it has
|
|
132137
132137
|
// a "grops" property.
|
|
@@ -132161,7 +132161,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
|
132161
132161
|
|
|
132162
132162
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
132163
132163
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
132164
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$
|
|
132164
|
+
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$3(function () {
|
|
132165
132165
|
var re = /(?:)/;
|
|
132166
132166
|
var originalExec = re.exec;
|
|
132167
132167
|
re.exec = function () { return originalExec.apply(this, arguments); };
|
|
@@ -132172,14 +132172,14 @@ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$2(function () {
|
|
|
132172
132172
|
var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
|
|
132173
132173
|
var SYMBOL = wellKnownSymbol(KEY);
|
|
132174
132174
|
|
|
132175
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
132175
|
+
var DELEGATES_TO_SYMBOL = !fails$3(function () {
|
|
132176
132176
|
// String methods call symbol-named RegEp methods
|
|
132177
132177
|
var O = {};
|
|
132178
132178
|
O[SYMBOL] = function () { return 7; };
|
|
132179
132179
|
return ''[KEY](O) != 7;
|
|
132180
132180
|
});
|
|
132181
132181
|
|
|
132182
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
132182
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$3(function () {
|
|
132183
132183
|
// Symbol-named RegExp methods call .exec
|
|
132184
132184
|
var execCalled = false;
|
|
132185
132185
|
var re = /a/;
|
|
@@ -132215,7 +132215,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
|
|
|
132215
132215
|
) {
|
|
132216
132216
|
var nativeRegExpMethod = /./[SYMBOL];
|
|
132217
132217
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
132218
|
-
if (regexp.exec === regexpExec$
|
|
132218
|
+
if (regexp.exec === regexpExec$2) {
|
|
132219
132219
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
132220
132220
|
// The native String method already delegates to @@method (this
|
|
132221
132221
|
// polyfilled function), leasing to infinite recursion.
|
|
@@ -132247,12 +132247,12 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
|
|
|
132247
132247
|
};
|
|
132248
132248
|
|
|
132249
132249
|
var toInteger = toInteger$e;
|
|
132250
|
-
var requireObjectCoercible$
|
|
132250
|
+
var requireObjectCoercible$3 = requireObjectCoercible$m;
|
|
132251
132251
|
|
|
132252
132252
|
// `String.prototype.{ codePointAt, at }` methods implementation
|
|
132253
132253
|
var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
132254
132254
|
return function ($this, pos) {
|
|
132255
|
-
var S = String(requireObjectCoercible$
|
|
132255
|
+
var S = String(requireObjectCoercible$3($this));
|
|
132256
132256
|
var position = toInteger(pos);
|
|
132257
132257
|
var size = S.length;
|
|
132258
132258
|
var first, second;
|
|
@@ -132278,12 +132278,12 @@ var charAt = stringMultibyte.charAt;
|
|
|
132278
132278
|
|
|
132279
132279
|
// `AdvanceStringIndex` abstract operation
|
|
132280
132280
|
// https://tc39.github.io/ecma262/#sec-advancestringindex
|
|
132281
|
-
var advanceStringIndex$
|
|
132281
|
+
var advanceStringIndex$2 = function (S, index, unicode) {
|
|
132282
132282
|
return index + (unicode ? charAt(S, index).length : 1);
|
|
132283
132283
|
};
|
|
132284
132284
|
|
|
132285
132285
|
var classof = classofRaw$9;
|
|
132286
|
-
var regexpExec = regexpExec$
|
|
132286
|
+
var regexpExec$1 = regexpExec$3;
|
|
132287
132287
|
|
|
132288
132288
|
// `RegExpExec` abstract operation
|
|
132289
132289
|
// https://tc39.github.io/ecma262/#sec-regexpexec
|
|
@@ -132301,23 +132301,23 @@ var regexpExecAbstract = function (R, S) {
|
|
|
132301
132301
|
throw TypeError('RegExp#exec called on incompatible receiver');
|
|
132302
132302
|
}
|
|
132303
132303
|
|
|
132304
|
-
return regexpExec.call(R, S);
|
|
132304
|
+
return regexpExec$1.call(R, S);
|
|
132305
132305
|
};
|
|
132306
132306
|
|
|
132307
|
-
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
132308
|
-
var anObject$
|
|
132309
|
-
var toLength = toLength$l;
|
|
132310
|
-
var requireObjectCoercible$
|
|
132311
|
-
var advanceStringIndex = advanceStringIndex$
|
|
132307
|
+
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
132308
|
+
var anObject$2 = anObject$v;
|
|
132309
|
+
var toLength$1 = toLength$l;
|
|
132310
|
+
var requireObjectCoercible$2 = requireObjectCoercible$m;
|
|
132311
|
+
var advanceStringIndex$1 = advanceStringIndex$2;
|
|
132312
132312
|
var regExpExec = regexpExecAbstract;
|
|
132313
132313
|
|
|
132314
132314
|
// @@match logic
|
|
132315
|
-
fixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
|
|
132315
|
+
fixRegExpWellKnownSymbolLogic$1('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
|
|
132316
132316
|
return [
|
|
132317
132317
|
// `String.prototype.match` method
|
|
132318
132318
|
// https://tc39.github.io/ecma262/#sec-string.prototype.match
|
|
132319
132319
|
function match(regexp) {
|
|
132320
|
-
var O = requireObjectCoercible$
|
|
132320
|
+
var O = requireObjectCoercible$2(this);
|
|
132321
132321
|
var matcher = regexp == undefined ? undefined : regexp[MATCH];
|
|
132322
132322
|
return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
|
|
132323
132323
|
},
|
|
@@ -132327,7 +132327,7 @@ fixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCal
|
|
|
132327
132327
|
var res = maybeCallNative(nativeMatch, regexp, this);
|
|
132328
132328
|
if (res.done) return res.value;
|
|
132329
132329
|
|
|
132330
|
-
var rx = anObject$
|
|
132330
|
+
var rx = anObject$2(regexp);
|
|
132331
132331
|
var S = String(this);
|
|
132332
132332
|
|
|
132333
132333
|
if (!rx.global) return regExpExec(rx, S);
|
|
@@ -132340,7 +132340,7 @@ fixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCal
|
|
|
132340
132340
|
while ((result = regExpExec(rx, S)) !== null) {
|
|
132341
132341
|
var matchStr = String(result[0]);
|
|
132342
132342
|
A[n] = matchStr;
|
|
132343
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
132343
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$1(rx.lastIndex), fullUnicode);
|
|
132344
132344
|
n++;
|
|
132345
132345
|
}
|
|
132346
132346
|
return n === 0 ? null : A;
|
|
@@ -132359,7 +132359,7 @@ var PageTableOfContents = function PageTableOfContents(_a) {
|
|
|
132359
132359
|
showDialog = _b[0],
|
|
132360
132360
|
setShowDialog = _b[1];
|
|
132361
132361
|
|
|
132362
|
-
return jsxs(Host$
|
|
132362
|
+
return jsxs(Host$e, {
|
|
132363
132363
|
children: [jsx$1(Tooltip, __assign$g({
|
|
132364
132364
|
resourceKey: "Pages.pagesTableOfContents"
|
|
132365
132365
|
}, {
|
|
@@ -132384,11 +132384,11 @@ var PageTableOfContents = function PageTableOfContents(_a) {
|
|
|
132384
132384
|
}, void 0)]
|
|
132385
132385
|
}, void 0);
|
|
132386
132386
|
};
|
|
132387
|
-
var Host$
|
|
132388
|
-
var PageTableOfContentsButton = _styled(IconButton$1)(templateObject_2$
|
|
132387
|
+
var Host$e = _styled.div(templateObject_1$l || (templateObject_1$l = __makeTemplateObject$l(["\n && {\n margin-top: ", "px;\n }\n"], ["\n && {\n margin-top: ", "px;\n }\n"])), spacingXs);
|
|
132388
|
+
var PageTableOfContentsButton = _styled(IconButton$1)(templateObject_2$d || (templateObject_2$d = __makeTemplateObject$l(["\n && {\n padding: 0;\n margin: 0;\n width: 22px;\n height: 22px;\n\n i {\n font-size: 20px;\n color: ", ";\n }\n }\n"], ["\n && {\n padding: 0;\n margin: 0;\n width: 22px;\n height: 22px;\n\n i {\n font-size: 20px;\n color: ", ";\n }\n }\n"])), function (p) {
|
|
132389
132389
|
return p.theme.textColors.default;
|
|
132390
132390
|
});
|
|
132391
|
-
var templateObject_1$
|
|
132391
|
+
var templateObject_1$l, templateObject_2$d;
|
|
132392
132392
|
|
|
132393
132393
|
var PageDetail = function PageDetail(props) {
|
|
132394
132394
|
var routeMatch = useRouteMatch();
|
|
@@ -132421,7 +132421,7 @@ var PageDetailInner = function PageDetailInner(_a) {
|
|
|
132421
132421
|
return null;
|
|
132422
132422
|
}
|
|
132423
132423
|
|
|
132424
|
-
return jsx$1(Host$
|
|
132424
|
+
return jsx$1(Host$d, __assign$g({
|
|
132425
132425
|
className: className
|
|
132426
132426
|
}, {
|
|
132427
132427
|
children: jsx$1(DetailViewContextProvider, __assign$g({
|
|
@@ -132479,15 +132479,15 @@ var PageDetailInternal = function PageDetailInternal(_a) {
|
|
|
132479
132479
|
}, void 0);
|
|
132480
132480
|
};
|
|
132481
132481
|
|
|
132482
|
-
var Host$
|
|
132482
|
+
var Host$d = _styled.div.withConfig({
|
|
132483
132483
|
displayName: "PageDetail__Host",
|
|
132484
132484
|
componentId: "sc-22rpk8-0"
|
|
132485
|
-
})(templateObject_1$
|
|
132485
|
+
})(templateObject_1$k || (templateObject_1$k = __makeTemplateObject$l([""], [""])));
|
|
132486
132486
|
|
|
132487
132487
|
var PageHeader = _styled.div.withConfig({
|
|
132488
132488
|
displayName: "PageDetail__PageHeader",
|
|
132489
132489
|
componentId: "sc-22rpk8-1"
|
|
132490
|
-
})(templateObject_2$
|
|
132490
|
+
})(templateObject_2$c || (templateObject_2$c = __makeTemplateObject$l(["\n display: flex;\n align-items: center;\n margin-bottom: ", "px;\n"], ["\n display: flex;\n align-items: center;\n margin-bottom: ", "px;\n"])), spacingM);
|
|
132491
132491
|
|
|
132492
132492
|
var ConsumerBreadcrumbWrapper = function ConsumerBreadcrumbWrapper() {
|
|
132493
132493
|
var item = useDetailViewContext().item;
|
|
@@ -132502,7 +132502,7 @@ var ConsumerBreadcrumbWrapper = function ConsumerBreadcrumbWrapper() {
|
|
|
132502
132502
|
var StyledPageBreadcrumb = _styled(PageBreadcrumb).withConfig({
|
|
132503
132503
|
displayName: "PageDetail__StyledPageBreadcrumb",
|
|
132504
132504
|
componentId: "sc-22rpk8-2"
|
|
132505
|
-
})(templateObject_3$
|
|
132505
|
+
})(templateObject_3$c || (templateObject_3$c = __makeTemplateObject$l(["\n flex-grow: 1;\n box-sizing: border-box;\n max-width: calc(100% - 22px); /* 22px is for the ToC button */\n padding-right: ", "px;\n"], ["\n flex-grow: 1;\n box-sizing: border-box;\n max-width: calc(100% - 22px); /* 22px is for the ToC button */\n padding-right: ", "px;\n"])), spacingS);
|
|
132506
132506
|
|
|
132507
132507
|
var PageTableOfContentsWrapper = function PageTableOfContentsWrapper() {
|
|
132508
132508
|
var item = useDetailViewContext().item;
|
|
@@ -132541,8 +132541,8 @@ var PagesDetailViewNavigationWrapper = function PagesDetailViewNavigationWrapper
|
|
|
132541
132541
|
var StyledPagesDetailViewNavigation = _styled(PagesDetailViewNavigation).withConfig({
|
|
132542
132542
|
displayName: "PageDetail__StyledPagesDetailViewNavigation",
|
|
132543
132543
|
componentId: "sc-22rpk8-3"
|
|
132544
|
-
})(templateObject_5$
|
|
132545
|
-
return p.applyMarginTop && css$2(templateObject_4$
|
|
132544
|
+
})(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject$l(["\n ", "\n"], ["\n ", "\n"])), function (p) {
|
|
132545
|
+
return p.applyMarginTop && css$2(templateObject_4$b || (templateObject_4$b = __makeTemplateObject$l(["\n margin-top: ", "px;\n "], ["\n margin-top: ", "px;\n "])), spacingL);
|
|
132546
132546
|
});
|
|
132547
132547
|
|
|
132548
132548
|
var InlinePageListWrapper = function InlinePageListWrapper() {
|
|
@@ -132559,7 +132559,7 @@ var InlinePageListWrapper = function InlinePageListWrapper() {
|
|
|
132559
132559
|
return jsx$1(InlinePageList, {}, void 0);
|
|
132560
132560
|
};
|
|
132561
132561
|
|
|
132562
|
-
var templateObject_1$
|
|
132562
|
+
var templateObject_1$k, templateObject_2$c, templateObject_3$c, templateObject_4$b, templateObject_5$9;
|
|
132563
132563
|
|
|
132564
132564
|
var EventDetail = function EventDetail(_a) {
|
|
132565
132565
|
var itemId = _a.itemId,
|
|
@@ -132574,7 +132574,7 @@ var EventDetail = function EventDetail(_a) {
|
|
|
132574
132574
|
return null;
|
|
132575
132575
|
}
|
|
132576
132576
|
|
|
132577
|
-
return jsx$1(Host$
|
|
132577
|
+
return jsx$1(Host$c, __assign$g({
|
|
132578
132578
|
className: className
|
|
132579
132579
|
}, {
|
|
132580
132580
|
children: jsx$1(DetailViewContextProvider, __assign$g({
|
|
@@ -132624,29 +132624,29 @@ var EventDetail = function EventDetail(_a) {
|
|
|
132624
132624
|
}), void 0);
|
|
132625
132625
|
};
|
|
132626
132626
|
|
|
132627
|
-
var Host$
|
|
132627
|
+
var Host$c = _styled.div.withConfig({
|
|
132628
132628
|
displayName: "EventDetail__Host",
|
|
132629
132629
|
componentId: "sc-hrm4yl-0"
|
|
132630
|
-
})(templateObject_1$
|
|
132630
|
+
})(templateObject_1$j || (templateObject_1$j = __makeTemplateObject$l([""], [""])));
|
|
132631
132631
|
|
|
132632
132632
|
var EventDateAndRecurrenceInfo = _styled.div.withConfig({
|
|
132633
132633
|
displayName: "EventDetail__EventDateAndRecurrenceInfo",
|
|
132634
132634
|
componentId: "sc-hrm4yl-1"
|
|
132635
|
-
})(templateObject_2$
|
|
132635
|
+
})(templateObject_2$b || (templateObject_2$b = __makeTemplateObject$l(["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n"], ["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n"])));
|
|
132636
132636
|
|
|
132637
132637
|
var DatesInfo = _styled(EventDetailViewDatesInfo).withConfig({
|
|
132638
132638
|
displayName: "EventDetail__DatesInfo",
|
|
132639
132639
|
componentId: "sc-hrm4yl-2"
|
|
132640
|
-
})(templateObject_3$
|
|
132640
|
+
})(templateObject_3$b || (templateObject_3$b = __makeTemplateObject$l(["\n margin-right: ", "px;\n"], ["\n margin-right: ", "px;\n"])), spacingM);
|
|
132641
132641
|
|
|
132642
132642
|
var EventRecurrenceSeriesInfoLink = _styled.a.withConfig({
|
|
132643
132643
|
displayName: "EventDetail__EventRecurrenceSeriesInfoLink",
|
|
132644
132644
|
componentId: "sc-hrm4yl-3"
|
|
132645
|
-
})(templateObject_4$
|
|
132645
|
+
})(templateObject_4$a || (templateObject_4$a = __makeTemplateObject$l(["\n color: ", ";\n margin-bottom: ", "px;\n"], ["\n color: ", ";\n margin-bottom: ", "px;\n"])), function (p) {
|
|
132646
132646
|
return p.theme.textColors.default;
|
|
132647
132647
|
}, spacingM);
|
|
132648
132648
|
|
|
132649
|
-
var templateObject_1$
|
|
132649
|
+
var templateObject_1$j, templateObject_2$b, templateObject_3$b, templateObject_4$a;
|
|
132650
132650
|
|
|
132651
132651
|
function useNewsItemClickHandler() {
|
|
132652
132652
|
var user = useCurrentUserContext().user;
|
|
@@ -132791,7 +132791,7 @@ var NewsCompactCard = function NewsCompactCard(_a) {
|
|
|
132791
132791
|
var icon = getNewsCardIcon(item, intl);
|
|
132792
132792
|
var preferredContentLanguage = getPreferredContentLanguage(user);
|
|
132793
132793
|
var url = getExternalContentUrl(item, preferredContentLanguage);
|
|
132794
|
-
return jsxs(Host$
|
|
132794
|
+
return jsxs(Host$b, __assign$g({
|
|
132795
132795
|
className: className
|
|
132796
132796
|
}, {
|
|
132797
132797
|
children: [jsx$1(Overlay, {
|
|
@@ -132854,34 +132854,34 @@ var NewsCompactCard = function NewsCompactCard(_a) {
|
|
|
132854
132854
|
return NewsService.getNewsRoute(baseRoute, item.id, title, item.useExternalContent);
|
|
132855
132855
|
}
|
|
132856
132856
|
};
|
|
132857
|
-
var Host$
|
|
132857
|
+
var Host$b = _styled.div.withConfig({
|
|
132858
132858
|
displayName: "NewsCompactCard__Host",
|
|
132859
132859
|
componentId: "sc-16ovog0-0"
|
|
132860
|
-
})(templateObject_1$
|
|
132860
|
+
})(templateObject_1$i || (templateObject_1$i = __makeTemplateObject$l(["\n display: flex;\n align-items: center;\n position: relative;\n width: 100%;\n height: ", "px;\n background-color: ", ";\n"], ["\n display: flex;\n align-items: center;\n position: relative;\n width: 100%;\n height: ", "px;\n background-color: ", ";\n"])), BannerSize, function (p) {
|
|
132861
132861
|
return p.theme.palette.white;
|
|
132862
132862
|
});
|
|
132863
132863
|
|
|
132864
|
-
var TextStyle = css$2(templateObject_2$
|
|
132864
|
+
var TextStyle = css$2(templateObject_2$a || (templateObject_2$a = __makeTemplateObject$l(["\n font-size: ", "px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n"], ["\n font-size: ", "px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n"])), fontSizeSmall);
|
|
132865
132865
|
|
|
132866
132866
|
var Inner$2 = _styled.div.withConfig({
|
|
132867
132867
|
displayName: "NewsCompactCard__Inner",
|
|
132868
132868
|
componentId: "sc-16ovog0-1"
|
|
132869
|
-
})(templateObject_3$
|
|
132869
|
+
})(templateObject_3$a || (templateObject_3$a = __makeTemplateObject$l(["\n max-width: calc(100% - ", "px);\n width: 100%;\n display: flex;\n align-items: center;\n"], ["\n max-width: calc(100% - ", "px);\n width: 100%;\n display: flex;\n align-items: center;\n"])), BannerSize);
|
|
132870
132870
|
|
|
132871
132871
|
var Content$2 = _styled.div.withConfig({
|
|
132872
132872
|
displayName: "NewsCompactCard__Content",
|
|
132873
132873
|
componentId: "sc-16ovog0-2"
|
|
132874
|
-
})(templateObject_4$
|
|
132874
|
+
})(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject$l(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n box-sizing: border-box;\n padding: ", "px ", "px;\n\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n box-sizing: border-box;\n padding: ", "px ", "px;\n\n ", "\n"])), spacingXs, spacingS + 5, TextStyle);
|
|
132875
132875
|
|
|
132876
132876
|
var Date$1 = _styled(DateTime).withConfig({
|
|
132877
132877
|
displayName: "NewsCompactCard__Date",
|
|
132878
132878
|
componentId: "sc-16ovog0-3"
|
|
132879
|
-
})(templateObject_5$
|
|
132879
|
+
})(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject$l(["\n ", "\n"], ["\n ", "\n"])), TextStyle);
|
|
132880
132880
|
|
|
132881
132881
|
var Intro$1 = _styled.p.withConfig({
|
|
132882
132882
|
displayName: "NewsCompactCard__Intro",
|
|
132883
132883
|
componentId: "sc-16ovog0-4"
|
|
132884
|
-
})(templateObject_6$
|
|
132884
|
+
})(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject$l(["\n margin: 0;\n padding: 0;\n ", "\n"], ["\n margin: 0;\n padding: 0;\n ", "\n"])), TextStyle);
|
|
132885
132885
|
|
|
132886
132886
|
var Title$3 = _styled.span.withConfig({
|
|
132887
132887
|
displayName: "NewsCompactCard__Title",
|
|
@@ -132955,10 +132955,10 @@ var BannerHost = _styled.div.withConfig({
|
|
|
132955
132955
|
});
|
|
132956
132956
|
});
|
|
132957
132957
|
|
|
132958
|
-
var templateObject_1$
|
|
132958
|
+
var templateObject_1$i, templateObject_2$a, templateObject_3$a, templateObject_4$9, templateObject_5$8, templateObject_6$7, templateObject_7$4, templateObject_8$4, templateObject_9$2, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$2, templateObject_16$1;
|
|
132959
132959
|
|
|
132960
132960
|
var EmptyNewsList = function EmptyNewsList() {
|
|
132961
|
-
return jsxs(Host$
|
|
132961
|
+
return jsxs(Host$a, {
|
|
132962
132962
|
children: [jsx$1(StyledIcon$3, {
|
|
132963
132963
|
iconName: "News"
|
|
132964
132964
|
}, void 0), jsx$1(Message, {
|
|
@@ -132969,22 +132969,22 @@ var EmptyNewsList = function EmptyNewsList() {
|
|
|
132969
132969
|
}, void 0);
|
|
132970
132970
|
};
|
|
132971
132971
|
|
|
132972
|
-
var Host$
|
|
132972
|
+
var Host$a = _styled.div.withConfig({
|
|
132973
132973
|
displayName: "EmptyNewsList__Host",
|
|
132974
132974
|
componentId: "sc-11ktr8s-0"
|
|
132975
|
-
})(templateObject_1$
|
|
132975
|
+
})(templateObject_1$h || (templateObject_1$h = __makeTemplateObject$l(["\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: auto 0;\n padding: ", "px 0;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: auto 0;\n padding: ", "px 0;\n"])), spacingM);
|
|
132976
132976
|
|
|
132977
132977
|
var StyledIcon$3 = _styled(Icon).withConfig({
|
|
132978
132978
|
displayName: "EmptyNewsList__StyledIcon",
|
|
132979
132979
|
componentId: "sc-11ktr8s-1"
|
|
132980
|
-
})(templateObject_2$
|
|
132980
|
+
})(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject$l(["\n font-size: ", "px;\n opacity: 0.8;\n margin-bottom: ", "px;\n"], ["\n font-size: ", "px;\n opacity: 0.8;\n margin-bottom: ", "px;\n"])), fontSizeLarger, spacingM);
|
|
132981
132981
|
|
|
132982
132982
|
var Message = _styled.p.withConfig({
|
|
132983
132983
|
displayName: "EmptyNewsList__Message",
|
|
132984
132984
|
componentId: "sc-11ktr8s-2"
|
|
132985
|
-
})(templateObject_3$
|
|
132985
|
+
})(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject$l(["\n text-align: center;\n padding: 0;\n margin: 0;\n"], ["\n text-align: center;\n padding: 0;\n margin: 0;\n"])));
|
|
132986
132986
|
|
|
132987
|
-
var templateObject_1$
|
|
132987
|
+
var templateObject_1$h, templateObject_2$9, templateObject_3$9;
|
|
132988
132988
|
|
|
132989
132989
|
var ItemLayoutMode;
|
|
132990
132990
|
|
|
@@ -133082,7 +133082,7 @@ var NewsListInternal = function NewsListInternal(_a) {
|
|
|
133082
133082
|
var formatMessage = useIntl().formatMessage;
|
|
133083
133083
|
var webAppUrl = useSubscriptionWebAppUrl();
|
|
133084
133084
|
var handleClick = useNewsItemClickHandler();
|
|
133085
|
-
return jsx$1(Host$
|
|
133085
|
+
return jsx$1(Host$9, __assign$g({
|
|
133086
133086
|
className: className
|
|
133087
133087
|
}, {
|
|
133088
133088
|
children: items.map(function (item) {
|
|
@@ -133147,34 +133147,34 @@ var NewsListInternal = function NewsListInternal(_a) {
|
|
|
133147
133147
|
}), void 0);
|
|
133148
133148
|
};
|
|
133149
133149
|
|
|
133150
|
-
var Host$
|
|
133150
|
+
var Host$9 = _styled.div.withConfig({
|
|
133151
133151
|
displayName: "NewsList__Host",
|
|
133152
133152
|
componentId: "sc-1d0bzx1-0"
|
|
133153
|
-
})(templateObject_1$
|
|
133153
|
+
})(templateObject_1$g || (templateObject_1$g = __makeTemplateObject$l([""], [""])));
|
|
133154
133154
|
|
|
133155
133155
|
var CompactList = _styled.ul.withConfig({
|
|
133156
133156
|
displayName: "NewsList__CompactList",
|
|
133157
133157
|
componentId: "sc-1d0bzx1-1"
|
|
133158
|
-
})(templateObject_2$
|
|
133158
|
+
})(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject$l(["\n margin: 0;\n padding: 0;\n list-style: none;\n\n > li:not(:first-child) {\n margin-top: ", "px;\n }\n"], ["\n margin: 0;\n padding: 0;\n list-style: none;\n\n > li:not(:first-child) {\n margin-top: ", "px;\n }\n"])), spacingS);
|
|
133159
133159
|
|
|
133160
133160
|
var StyledNewsItemTile = _styled(NewsItemTile).withConfig({
|
|
133161
133161
|
displayName: "NewsList__StyledNewsItemTile",
|
|
133162
133162
|
componentId: "sc-1d0bzx1-2"
|
|
133163
|
-
})(templateObject_4$
|
|
133164
|
-
return p.showHighlight && css$2(templateObject_3$
|
|
133163
|
+
})(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject$l(["\n :not(:last-child) {\n margin-bottom: ", "px;\n }\n\n ", ";\n"], ["\n :not(:last-child) {\n margin-bottom: ", "px;\n }\n\n ", ";\n"])), spacingM, function (p) {
|
|
133164
|
+
return p.showHighlight && css$2(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject$l(["\n position: relative;\n\n &::after {\n content: '';\n border-right-width: 6px;\n border-right-color: ", ";\n border-right-style: solid;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n }\n "], ["\n position: relative;\n\n &::after {\n content: '';\n border-right-width: 6px;\n border-right-color: ", ";\n border-right-style: solid;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n }\n "])), p.theme.palette.accent);
|
|
133165
133165
|
});
|
|
133166
133166
|
|
|
133167
133167
|
var Comments = _styled.a.withConfig({
|
|
133168
133168
|
displayName: "NewsList__Comments",
|
|
133169
133169
|
componentId: "sc-1d0bzx1-3"
|
|
133170
|
-
})(templateObject_5$
|
|
133170
|
+
})(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject$l(["\n display: flex;\n align-items: center;\n color: ", ";\n"], ["\n display: flex;\n align-items: center;\n color: ", ";\n"])), function (p) {
|
|
133171
133171
|
return p.theme.textColors.default;
|
|
133172
133172
|
});
|
|
133173
133173
|
|
|
133174
133174
|
var StyledIcon$2 = _styled(Icon).withConfig({
|
|
133175
133175
|
displayName: "NewsList__StyledIcon",
|
|
133176
133176
|
componentId: "sc-1d0bzx1-4"
|
|
133177
|
-
})(templateObject_6$
|
|
133177
|
+
})(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject$l(["\n ", "\n"], ["\n ", "\n"])), function (p) {
|
|
133178
133178
|
return p.highlight && unreadCommentHighlight;
|
|
133179
133179
|
});
|
|
133180
133180
|
|
|
@@ -133190,7 +133190,7 @@ var ErrorContainer$1 = _styled.p.withConfig({
|
|
|
133190
133190
|
return p.theme.palette.red;
|
|
133191
133191
|
}, spacingM);
|
|
133192
133192
|
|
|
133193
|
-
var templateObject_1$
|
|
133193
|
+
var templateObject_1$g, templateObject_2$8, templateObject_3$8, templateObject_4$8, templateObject_5$7, templateObject_6$6, templateObject_7$3, templateObject_8$3;
|
|
133194
133194
|
|
|
133195
133195
|
var ManageChannels = function ManageChannels(_a) {
|
|
133196
133196
|
var className = _a.className;
|
|
@@ -133214,7 +133214,7 @@ var ManageChannels = function ManageChannels(_a) {
|
|
|
133214
133214
|
}, void 0);
|
|
133215
133215
|
}
|
|
133216
133216
|
|
|
133217
|
-
return jsxs(Host$
|
|
133217
|
+
return jsxs(Host$8, __assign$g({
|
|
133218
133218
|
className: className
|
|
133219
133219
|
}, {
|
|
133220
133220
|
children: [jsx$1(Title$2, {
|
|
@@ -133353,25 +133353,25 @@ var ManageChannels = function ManageChannels(_a) {
|
|
|
133353
133353
|
}
|
|
133354
133354
|
};
|
|
133355
133355
|
|
|
133356
|
-
var Host$
|
|
133356
|
+
var Host$8 = _styled.div.withConfig({
|
|
133357
133357
|
displayName: "ManageChannels__Host",
|
|
133358
133358
|
componentId: "sc-yyoxfw-0"
|
|
133359
|
-
})(templateObject_1$
|
|
133359
|
+
})(templateObject_1$f || (templateObject_1$f = __makeTemplateObject$l(["\n padding: ", "px ", "px;\n"], ["\n padding: ", "px ", "px;\n"])), spacingX, spacingM);
|
|
133360
133360
|
|
|
133361
133361
|
var Title$2 = _styled.h3.withConfig({
|
|
133362
133362
|
displayName: "ManageChannels__Title",
|
|
133363
133363
|
componentId: "sc-yyoxfw-1"
|
|
133364
|
-
})(templateObject_2$
|
|
133364
|
+
})(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject$l(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
133365
133365
|
|
|
133366
133366
|
var Description = _styled.span.withConfig({
|
|
133367
133367
|
displayName: "ManageChannels__Description",
|
|
133368
133368
|
componentId: "sc-yyoxfw-2"
|
|
133369
|
-
})(templateObject_3$
|
|
133369
|
+
})(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject$l(["\n font-size: ", "px;\n"], ["\n font-size: ", "px;\n"])), fontSizeSmall);
|
|
133370
133370
|
|
|
133371
133371
|
var ChannelList = _styled.ul.withConfig({
|
|
133372
133372
|
displayName: "ManageChannels__ChannelList",
|
|
133373
133373
|
componentId: "sc-yyoxfw-3"
|
|
133374
|
-
})(templateObject_4$
|
|
133374
|
+
})(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject$l(["\n list-style: none;\n\n && {\n margin-top: ", "px;\n padding-left: 0;\n }\n"], ["\n list-style: none;\n\n && {\n margin-top: ", "px;\n padding-left: 0;\n }\n"])), spacingS);
|
|
133375
133375
|
|
|
133376
133376
|
var ChannelItem = function ChannelItem(_a) {
|
|
133377
133377
|
var channel = _a.channel,
|
|
@@ -133410,12 +133410,12 @@ var ChannelItem = function ChannelItem(_a) {
|
|
|
133410
133410
|
var ChannelHost = _styled.div.withConfig({
|
|
133411
133411
|
displayName: "ManageChannels__ChannelHost",
|
|
133412
133412
|
componentId: "sc-yyoxfw-4"
|
|
133413
|
-
})(templateObject_5$
|
|
133413
|
+
})(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject$l(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
133414
133414
|
|
|
133415
133415
|
var NotificationButton = _styled.div.withConfig({
|
|
133416
133416
|
displayName: "ManageChannels__NotificationButton",
|
|
133417
133417
|
componentId: "sc-yyoxfw-5"
|
|
133418
|
-
})(templateObject_6$
|
|
133418
|
+
})(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject$l(["\n margin-left: auto;\n align-self: flex-start;\n"], ["\n margin-left: auto;\n align-self: flex-start;\n"])));
|
|
133419
133419
|
|
|
133420
133420
|
var ChannelToggle = _styled(ToggleWithLabel).withConfig({
|
|
133421
133421
|
displayName: "ManageChannels__ChannelToggle",
|
|
@@ -133429,7 +133429,7 @@ var StyledIconButton = _styled(IconButton$1).withConfig({
|
|
|
133429
133429
|
return p.theme.textColors.default;
|
|
133430
133430
|
});
|
|
133431
133431
|
|
|
133432
|
-
var templateObject_1$
|
|
133432
|
+
var templateObject_1$f, templateObject_2$7, templateObject_3$7, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$2, templateObject_8$2;
|
|
133433
133433
|
|
|
133434
133434
|
var NewsGridCard = function NewsGridCard(_a) {
|
|
133435
133435
|
var _b;
|
|
@@ -133460,7 +133460,7 @@ var NewsGridCard = function NewsGridCard(_a) {
|
|
|
133460
133460
|
var channels = newsItem.channels;
|
|
133461
133461
|
var userLanguage = getPreferredContentLanguage(user);
|
|
133462
133462
|
var icon = getNewsCardIcon(item, intl);
|
|
133463
|
-
return jsxs(Host$
|
|
133463
|
+
return jsxs(Host$7, __assign$g({
|
|
133464
133464
|
className: className,
|
|
133465
133465
|
showHighlight: !!user.unreadNews.find(function (n) {
|
|
133466
133466
|
return n.itemId === item.id;
|
|
@@ -133536,19 +133536,19 @@ var NewsGridCard = function NewsGridCard(_a) {
|
|
|
133536
133536
|
return NewsService.getNewsRoute(baseRoute, item.id, title);
|
|
133537
133537
|
}
|
|
133538
133538
|
};
|
|
133539
|
-
var Host$
|
|
133540
|
-
return p.showHighlight && css$2(templateObject_1$
|
|
133539
|
+
var Host$7 = _styled.div(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject$l(["\n display: flex;\n flex-direction: column;\n width: 100%;\n box-shadow: 1px 1px 4px grey;\n box-sizing: border-box;\n position: relative;\n\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n width: 100%;\n box-shadow: 1px 1px 4px grey;\n box-sizing: border-box;\n position: relative;\n\n ", "\n"])), function (p) {
|
|
133540
|
+
return p.showHighlight && css$2(templateObject_1$e || (templateObject_1$e = __makeTemplateObject$l(["\n position: relative;\n &::after {\n ", ";\n }\n "], ["\n position: relative;\n &::after {\n ", ";\n }\n "])), BannerHighlightStyle);
|
|
133541
133541
|
});
|
|
133542
|
-
var BannerHighlightStyle = css$2(templateObject_3$
|
|
133542
|
+
var BannerHighlightStyle = css$2(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject$l(["\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ", "px;\n display: block;\n background-color: ", ";\n"], ["\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ", "px;\n display: block;\n background-color: ", ";\n"])), spacingXs, function (p) {
|
|
133543
133543
|
return p.theme.palette.accent;
|
|
133544
133544
|
});
|
|
133545
|
-
var Content$1 = _styled.div(templateObject_4$
|
|
133545
|
+
var Content$1 = _styled.div(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject$l(["\n position: relative;\n display: flex;\n flex-direction: column;\n width: auto;\n min-height: ", "px;\n padding: ", "px;\n box-sizing: border-box;\n background-color: ", ";\n"], ["\n position: relative;\n display: flex;\n flex-direction: column;\n width: auto;\n min-height: ", "px;\n padding: ", "px;\n box-sizing: border-box;\n background-color: ", ";\n"])), function (p) {
|
|
133546
133546
|
return p.contentHeight;
|
|
133547
133547
|
}, spacingM, function (p) {
|
|
133548
133548
|
return p.theme.palette.white;
|
|
133549
133549
|
});
|
|
133550
|
-
var MetaInfo = _styled.div(templateObject_5$
|
|
133551
|
-
var DateAndIcon = _styled.div(templateObject_6$
|
|
133550
|
+
var MetaInfo = _styled.div(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject$l(["\n font-size: ", "px;\n"], ["\n font-size: ", "px;\n"])), fontSizeSmall);
|
|
133551
|
+
var DateAndIcon = _styled.div(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject$l(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
133552
133552
|
var PublishingDate = _styled(DateTime)(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject$l(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n align-self: center;\n"], ["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n align-self: center;\n"])));
|
|
133553
133553
|
var NewsCardIcon = _styled.div(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject$l(["\n display: flex;\n margin-left: auto;\n z-index: 10;\n"], ["\n display: flex;\n margin-left: auto;\n z-index: 10;\n"])));
|
|
133554
133554
|
var StyledIcon$1 = _styled(Icon)(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject$l(["\n font-size: ", "px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: ", "px;\n cursor: pointer;\n\n background-color: ", ";\n color: ", ";\n"], ["\n font-size: ", "px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: ", "px;\n cursor: pointer;\n\n background-color: ", ";\n color: ", ";\n"])), fontSizeSmaller, spacingXs, function (p) {
|
|
@@ -133564,24 +133564,24 @@ var KeywordsWrapper = _styled.div(templateObject_14$1 || (templateObject_14$1 =
|
|
|
133564
133564
|
return p.theme.palette.neutralTertiary;
|
|
133565
133565
|
});
|
|
133566
133566
|
var StyledChannels$1 = _styled(ChannelList$1)(templateObject_15$1 || (templateObject_15$1 = __makeTemplateObject$l(["\n margin-top: ", "px;\n margin-bottom: ", "px;\n"], ["\n margin-top: ", "px;\n margin-bottom: ", "px;\n"])), spacingS, spacingM);
|
|
133567
|
-
var templateObject_1$
|
|
133567
|
+
var templateObject_1$e, templateObject_2$6, templateObject_3$6, templateObject_4$6, templateObject_5$5, templateObject_6$4, templateObject_7$1, templateObject_8$1, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1;
|
|
133568
133568
|
|
|
133569
133569
|
var ErrorContainer = function ErrorContainer() {
|
|
133570
|
-
return jsx$1(Host$
|
|
133570
|
+
return jsx$1(Host$6, {
|
|
133571
133571
|
children: jsx$1(FormattedMessage$1, {
|
|
133572
133572
|
id: "NewsList.error"
|
|
133573
133573
|
}, void 0)
|
|
133574
133574
|
}, void 0);
|
|
133575
133575
|
};
|
|
133576
133576
|
|
|
133577
|
-
var Host$
|
|
133577
|
+
var Host$6 = _styled.p.withConfig({
|
|
133578
133578
|
displayName: "ErrorContainer__Host",
|
|
133579
133579
|
componentId: "sc-499uwc-0"
|
|
133580
|
-
})(templateObject_1$
|
|
133580
|
+
})(templateObject_1$d || (templateObject_1$d = __makeTemplateObject$l(["\n color: ", ";\n padding: ", "px 0;\n text-align: center;\n"], ["\n color: ", ";\n padding: ", "px 0;\n text-align: center;\n"])), function (p) {
|
|
133581
133581
|
return p.theme.palette.red;
|
|
133582
133582
|
}, spacingM);
|
|
133583
133583
|
|
|
133584
|
-
var templateObject_1$
|
|
133584
|
+
var templateObject_1$d;
|
|
133585
133585
|
|
|
133586
133586
|
var NewsGrid = function NewsGrid(_a) {
|
|
133587
133587
|
var filter = _a.filter,
|
|
@@ -133624,7 +133624,7 @@ var NewsGrid = function NewsGrid(_a) {
|
|
|
133624
133624
|
return jsx$1(EmptyNewsList, {}, void 0);
|
|
133625
133625
|
}
|
|
133626
133626
|
|
|
133627
|
-
return jsxs(Host$
|
|
133627
|
+
return jsxs(Host$5, {
|
|
133628
133628
|
children: [jsx$1(Inner$1, __assign$g({
|
|
133629
133629
|
className: className,
|
|
133630
133630
|
columnCount: columnCount
|
|
@@ -133665,95 +133665,26 @@ var NewsGrid = function NewsGrid(_a) {
|
|
|
133665
133665
|
}
|
|
133666
133666
|
};
|
|
133667
133667
|
|
|
133668
|
-
var Host$
|
|
133668
|
+
var Host$5 = _styled.div.withConfig({
|
|
133669
133669
|
displayName: "NewsGrid__Host",
|
|
133670
133670
|
componentId: "sc-8ugpfz-0"
|
|
133671
|
-
})(templateObject_1$
|
|
133671
|
+
})(templateObject_1$c || (templateObject_1$c = __makeTemplateObject$l([""], [""])));
|
|
133672
133672
|
|
|
133673
133673
|
var Inner$1 = _styled.div.withConfig({
|
|
133674
133674
|
displayName: "NewsGrid__Inner",
|
|
133675
133675
|
componentId: "sc-8ugpfz-1"
|
|
133676
|
-
})(templateObject_3$
|
|
133677
|
-
return css$2(templateObject_2$
|
|
133676
|
+
})(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject$l(["\n display: flex; // IE fallback\n flex-wrap: wrap;\n\n display: grid;\n gap: ", "px;\n ", "\n"], ["\n display: flex; // IE fallback\n flex-wrap: wrap;\n\n display: grid;\n gap: ", "px;\n ", "\n"])), spacingM, function (p) {
|
|
133677
|
+
return css$2(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject$l(["\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n "], ["\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n "])), p.columnCount);
|
|
133678
133678
|
});
|
|
133679
133679
|
|
|
133680
133680
|
_styled(NewsGridCard).withConfig({
|
|
133681
133681
|
displayName: "NewsGrid__IELegacyGridCard",
|
|
133682
133682
|
componentId: "sc-8ugpfz-2"
|
|
133683
|
-
})(templateObject_5$
|
|
133684
|
-
return css$2(templateObject_4$
|
|
133683
|
+
})(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject$l(["\n margin: ", "px;\n ", ";\n"], ["\n margin: ", "px;\n ", ";\n"])), spacingM / 2, function (p) {
|
|
133684
|
+
return css$2(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject$l(["\n width: calc(100% / ", " - ", "px);\n "], ["\n width: calc(100% / ", " - ", "px);\n "])), p.columnCount, spacingM);
|
|
133685
133685
|
});
|
|
133686
133686
|
|
|
133687
|
-
var templateObject_1$
|
|
133688
|
-
|
|
133689
|
-
var Hero = function Hero(_a) {
|
|
133690
|
-
var items = _a.items,
|
|
133691
|
-
itemResourceType = _a.itemResourceType,
|
|
133692
|
-
baseRoute = _a.baseRoute,
|
|
133693
|
-
disableAutoplay = _a.disableAutoplay,
|
|
133694
|
-
autoplayInterval = _a.autoplayInterval,
|
|
133695
|
-
_b = _a.width,
|
|
133696
|
-
width = _b === void 0 ? '100%' : _b,
|
|
133697
|
-
_c = _a.height,
|
|
133698
|
-
height = _c === void 0 ? '100%' : _c;
|
|
133699
|
-
|
|
133700
|
-
var _d = useState$2(false),
|
|
133701
|
-
forceDisableAutoplay = _d[0],
|
|
133702
|
-
setForceDisableAutoplay = _d[1];
|
|
133703
|
-
|
|
133704
|
-
if (!items || items.length === 0) {
|
|
133705
|
-
return null;
|
|
133706
|
-
}
|
|
133707
|
-
|
|
133708
|
-
var hasMoreItems = items.length > 1;
|
|
133709
|
-
return jsx$1(StyledCarousel, __assign$g({
|
|
133710
|
-
autoplay: !disableAutoplay && !forceDisableAutoplay,
|
|
133711
|
-
autoplayInterval: autoplayInterval !== null && autoplayInterval !== void 0 ? autoplayInterval : 5000,
|
|
133712
|
-
wrapAround: true,
|
|
133713
|
-
pauseOnHover: true,
|
|
133714
|
-
renderBottomCenterControls: function (props) {
|
|
133715
|
-
return hasMoreItems && !forceDisableAutoplay ? jsx$1("div", __assign$g({
|
|
133716
|
-
"data-dark-paging-indicator": !items[props.currentSlide].item.bannerInfo
|
|
133717
|
-
}, {
|
|
133718
|
-
children: jsx$1(PagingDots, __assign$g({}, props), void 0)
|
|
133719
|
-
}), void 0) : null;
|
|
133720
|
-
},
|
|
133721
|
-
renderCenterLeftControls: null,
|
|
133722
|
-
renderCenterRightControls: null,
|
|
133723
|
-
swiping: hasMoreItems,
|
|
133724
|
-
defaultControlsConfig: {
|
|
133725
|
-
pagingDotsContainerClassName: 'hero-paging'
|
|
133726
|
-
},
|
|
133727
|
-
transitionMode: "fade",
|
|
133728
|
-
width: typeof width === 'number' ? width + "px" : width,
|
|
133729
|
-
height: typeof height === 'number' ? height + "px" : height
|
|
133730
|
-
}, {
|
|
133731
|
-
children: items.map(function (i) {
|
|
133732
|
-
return jsx$1(HeroSlide, {
|
|
133733
|
-
item: i.item,
|
|
133734
|
-
icons: i.icons,
|
|
133735
|
-
itemResourceType: itemResourceType,
|
|
133736
|
-
baseRoute: baseRoute,
|
|
133737
|
-
additionalMetadata: i.additionalMetadata,
|
|
133738
|
-
onClick: i.onClick,
|
|
133739
|
-
onToggleVideo: function (isPlayerActive) {
|
|
133740
|
-
return setForceDisableAutoplay(isPlayerActive);
|
|
133741
|
-
},
|
|
133742
|
-
width: width,
|
|
133743
|
-
height: height
|
|
133744
|
-
}, i.item.id);
|
|
133745
|
-
})
|
|
133746
|
-
}), void 0);
|
|
133747
|
-
};
|
|
133748
|
-
|
|
133749
|
-
var StyledCarousel = _styled(Carousel).withConfig({
|
|
133750
|
-
displayName: "Hero__StyledCarousel",
|
|
133751
|
-
componentId: "sc-1hutyg7-0"
|
|
133752
|
-
})(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject$l(["\n .slider-list {\n height: 100% !important;\n\n > li {\n height: 100% !important;\n }\n }\n\n .slider-control-bottomcenter {\n left: ", "px !important;\n right: ", "px !important;\n transform: none !important;\n }\n\n .hero-paging {\n display: flex;\n width: 100%;\n top: -2px !important;\n\n > li {\n flex: 1;\n margin: 0 2px;\n\n > button {\n width: 100%;\n display: flex;\n padding: 0;\n\n height: 30px;\n\n position: relative;\n z-index: 1;\n\n &::after {\n content: '';\n height: 3px;\n position: absolute;\n left: 0;\n right: 0;\n top: 10px !important;\n }\n\n > svg {\n display: none;\n }\n }\n }\n }\n\n [data-dark-paging-indicator='true'] {\n .hero-paging > li > button::after {\n background: ", " !important;\n }\n }\n\n [data-dark-paging-indicator='false'] {\n .hero-paging > li > button::after {\n background: ", " !important;\n }\n }\n"], ["\n .slider-list {\n height: 100% !important;\n\n > li {\n height: 100% !important;\n }\n }\n\n .slider-control-bottomcenter {\n left: ", "px !important;\n right: ", "px !important;\n transform: none !important;\n }\n\n .hero-paging {\n display: flex;\n width: 100%;\n top: -2px !important;\n\n > li {\n flex: 1;\n margin: 0 2px;\n\n > button {\n width: 100%;\n display: flex;\n padding: 0;\n\n height: 30px;\n\n position: relative;\n z-index: 1;\n\n &::after {\n content: '';\n height: 3px;\n position: absolute;\n left: 0;\n right: 0;\n top: 10px !important;\n }\n\n > svg {\n display: none;\n }\n }\n }\n }\n\n [data-dark-paging-indicator='true'] {\n .hero-paging > li > button::after {\n background: ", " !important;\n }\n }\n\n [data-dark-paging-indicator='false'] {\n .hero-paging > li > button::after {\n background: ", " !important;\n }\n }\n"])), spacingL, spacingL, function (p) {
|
|
133753
|
-
return p.theme.palette.black;
|
|
133754
|
-
}, function (p) {
|
|
133755
|
-
return p.theme.palette.white;
|
|
133756
|
-
});
|
|
133687
|
+
var templateObject_1$c, templateObject_2$5, templateObject_3$5, templateObject_4$5, templateObject_5$4;
|
|
133757
133688
|
|
|
133758
133689
|
var HeroSlide = function HeroSlide(_a) {
|
|
133759
133690
|
var item = _a.item,
|
|
@@ -133789,7 +133720,7 @@ var HeroSlide = function HeroSlide(_a) {
|
|
|
133789
133720
|
var showHeadline = features.contentHeadline && headline != null;
|
|
133790
133721
|
var hostWidth = typeof width === 'number' ? width + "px" : width;
|
|
133791
133722
|
var hostHeight = typeof height === 'number' ? height + "px" : height;
|
|
133792
|
-
return jsxs(Host$
|
|
133723
|
+
return jsxs(Host$4, __assign$g({
|
|
133793
133724
|
showBorder: !hasBanner,
|
|
133794
133725
|
applyOverlay: hasImageBanner,
|
|
133795
133726
|
width: hostWidth,
|
|
@@ -133809,7 +133740,9 @@ var HeroSlide = function HeroSlide(_a) {
|
|
|
133809
133740
|
id: 'Generic.exitVideoPlayer'
|
|
133810
133741
|
})
|
|
133811
133742
|
}, void 0)
|
|
133812
|
-
}), void 0), jsxs(Content, {
|
|
133743
|
+
}), void 0), jsxs(Content, __assign$g({
|
|
133744
|
+
applyBackgroundColor: !hasBanner
|
|
133745
|
+
}, {
|
|
133813
133746
|
children: [hasBanner && jsx$1(BannerWrapper, {
|
|
133814
133747
|
children: jsx$1(Banner, {
|
|
133815
133748
|
itemId: item.id,
|
|
@@ -133883,7 +133816,7 @@ var HeroSlide = function HeroSlide(_a) {
|
|
|
133883
133816
|
}, void 0)]
|
|
133884
133817
|
}, void 0)]
|
|
133885
133818
|
}, void 0)]
|
|
133886
|
-
}, void 0)]
|
|
133819
|
+
}), void 0)]
|
|
133887
133820
|
}), void 0);
|
|
133888
133821
|
|
|
133889
133822
|
function handleToggleVideo(showPlayer) {
|
|
@@ -133892,129 +133825,350 @@ var HeroSlide = function HeroSlide(_a) {
|
|
|
133892
133825
|
}
|
|
133893
133826
|
};
|
|
133894
133827
|
|
|
133895
|
-
var Host$
|
|
133896
|
-
displayName: "
|
|
133897
|
-
componentId: "sc-
|
|
133898
|
-
})(
|
|
133899
|
-
return p.width ? css$2(
|
|
133828
|
+
var Host$4 = _styled.div.withConfig({
|
|
133829
|
+
displayName: "HeroSlide__Host",
|
|
133830
|
+
componentId: "sc-3yofth-0"
|
|
133831
|
+
})(templateObject_7 || (templateObject_7 = __makeTemplateObject$l(["\n position: relative;\n\n ", "\n\n ", "\n \n ", "\n \n ", "\n"], ["\n position: relative;\n\n ", "\n\n ", "\n \n ", "\n \n ", "\n"])), function (p) {
|
|
133832
|
+
return p.width ? css$2(templateObject_1$b || (templateObject_1$b = __makeTemplateObject$l(["\n width: ", ";\n "], ["\n width: ", ";\n "])), p.width) : css$2(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject$l(["\n width: 100%;\n "], ["\n width: 100%;\n "])));
|
|
133900
133833
|
}, function (p) {
|
|
133901
|
-
return p.height ? css$2(
|
|
133834
|
+
return p.height ? css$2(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject$l(["\n height: ", ";\n "], ["\n height: ", ";\n "])), p.height) : css$2(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject$l(["\n height: 100%;\n "], ["\n height: 100%;\n "])));
|
|
133902
133835
|
}, function (p) {
|
|
133903
|
-
return p.showBorder && css$2(
|
|
133836
|
+
return p.showBorder && css$2(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject$l(["\n border: 1px solid ", ";\n box-sizing: border-box;\n "], ["\n border: 1px solid ", ";\n box-sizing: border-box;\n "])), p.theme.palette.neutralTertiaryAlt);
|
|
133904
133837
|
}, function (p) {
|
|
133905
|
-
return p.applyOverlay && css$2(
|
|
133838
|
+
return p.applyOverlay && css$2(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject$l(["\n background-color: rgba(0, 0, 0, 0.33);\n\n .bannerImage {\n z-index: -1;\n }\n "], ["\n background-color: rgba(0, 0, 0, 0.33);\n\n .bannerImage {\n z-index: -1;\n }\n "])));
|
|
133906
133839
|
});
|
|
133907
133840
|
|
|
133908
133841
|
var Content = _styled.div.withConfig({
|
|
133909
|
-
displayName: "
|
|
133910
|
-
componentId: "sc-
|
|
133911
|
-
})(
|
|
133842
|
+
displayName: "HeroSlide__Content",
|
|
133843
|
+
componentId: "sc-3yofth-1"
|
|
133844
|
+
})(templateObject_8 || (templateObject_8 = __makeTemplateObject$l(["\n position: relative;\n height: 100%;\n width: 100%;\n ", ";\n"], ["\n position: relative;\n height: 100%;\n width: 100%;\n ", ";\n"])), function (p) {
|
|
133845
|
+
return p.applyBackgroundColor && "background-color: " + p.theme.palette.white;
|
|
133846
|
+
});
|
|
133912
133847
|
|
|
133913
133848
|
var Inner = _styled.div.withConfig({
|
|
133914
|
-
displayName: "
|
|
133915
|
-
componentId: "sc-
|
|
133916
|
-
})(
|
|
133849
|
+
displayName: "HeroSlide__Inner",
|
|
133850
|
+
componentId: "sc-3yofth-2"
|
|
133851
|
+
})(templateObject_9 || (templateObject_9 = __makeTemplateObject$l(["\n display: flex;\n height: 100%;\n width: 100%;\n flex-direction: column;\n box-sizing: border-box;\n padding: ", "px ", "px 80px ", "px;\n"], ["\n display: flex;\n height: 100%;\n width: 100%;\n flex-direction: column;\n box-sizing: border-box;\n padding: ", "px ", "px 80px ", "px;\n"])), spacingL, spacingL, spacingL);
|
|
133917
133852
|
|
|
133918
133853
|
var CloseButtonHost = _styled(Tooltip).withConfig({
|
|
133919
|
-
displayName: "
|
|
133920
|
-
componentId: "sc-
|
|
133921
|
-
})(
|
|
133854
|
+
displayName: "HeroSlide__CloseButtonHost",
|
|
133855
|
+
componentId: "sc-3yofth-3"
|
|
133856
|
+
})(templateObject_10 || (templateObject_10 = __makeTemplateObject$l(["\n position: absolute;\n top: ", "px;\n right: ", "px;\n z-index: 2;\n"], ["\n position: absolute;\n top: ", "px;\n right: ", "px;\n z-index: 2;\n"])), spacingS, spacingS);
|
|
133922
133857
|
|
|
133923
133858
|
var CloseButtonSize = 20;
|
|
133924
133859
|
|
|
133925
133860
|
var CloseButton = _styled(IconButton$1).withConfig({
|
|
133926
|
-
displayName: "
|
|
133927
|
-
componentId: "sc-
|
|
133928
|
-
})(
|
|
133861
|
+
displayName: "HeroSlide__CloseButton",
|
|
133862
|
+
componentId: "sc-3yofth-4"
|
|
133863
|
+
})(templateObject_11 || (templateObject_11 = __makeTemplateObject$l(["\n && {\n height: ", "px;\n width: ", "px;\n color: ", ";\n padding: 0;\n\n &:hover {\n color: ", ";\n }\n\n i {\n font-size: ", "px;\n }\n }\n"], ["\n && {\n height: ", "px;\n width: ", "px;\n color: ", ";\n padding: 0;\n\n &:hover {\n color: ", ";\n }\n\n i {\n font-size: ", "px;\n }\n }\n"])), CloseButtonSize, CloseButtonSize, function (p) {
|
|
133929
133864
|
return p.theme.palette.white;
|
|
133930
133865
|
}, function (p) {
|
|
133931
133866
|
return p.theme.palette.white;
|
|
133932
133867
|
}, fontSizeMedium);
|
|
133933
133868
|
|
|
133934
133869
|
var BannerWrapper = _styled.div.withConfig({
|
|
133935
|
-
displayName: "
|
|
133936
|
-
componentId: "sc-
|
|
133937
|
-
})(
|
|
133870
|
+
displayName: "HeroSlide__BannerWrapper",
|
|
133871
|
+
componentId: "sc-3yofth-5"
|
|
133872
|
+
})(templateObject_12 || (templateObject_12 = __makeTemplateObject$l(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"])));
|
|
133938
133873
|
|
|
133939
133874
|
var Banner = _styled(PublishableItemBanner).withConfig({
|
|
133940
|
-
displayName: "
|
|
133941
|
-
componentId: "sc-
|
|
133942
|
-
})(
|
|
133875
|
+
displayName: "HeroSlide__Banner",
|
|
133876
|
+
componentId: "sc-3yofth-6"
|
|
133877
|
+
})(templateObject_13 || (templateObject_13 = __makeTemplateObject$l(["\n width: 100%;\n\n &&.video-view-container {\n background-color: ", "; // in case video control does not fill the entire space\n }\n\n &&.video-view-container > iframe {\n top: ", "px; // safety space\n left: ", "px;\n height: calc(100% - ", "px);\n width: calc(100% - ", "px);\n }\n"], ["\n width: 100%;\n\n &&.video-view-container {\n background-color: ", "; // in case video control does not fill the entire space\n }\n\n &&.video-view-container > iframe {\n top: ", "px; // safety space\n left: ", "px;\n height: calc(100% - ", "px);\n width: calc(100% - ", "px);\n }\n"])), function (p) {
|
|
133943
133878
|
return p.theme.palette.black;
|
|
133944
133879
|
}, spacingS, CloseButtonSize, spacingS * 2, CloseButtonSize * 2);
|
|
133945
133880
|
|
|
133946
133881
|
var Header = _styled.div.withConfig({
|
|
133947
|
-
displayName: "
|
|
133948
|
-
componentId: "sc-
|
|
133949
|
-
})(
|
|
133882
|
+
displayName: "HeroSlide__Header",
|
|
133883
|
+
componentId: "sc-3yofth-7"
|
|
133884
|
+
})(templateObject_14 || (templateObject_14 = __makeTemplateObject$l(["\n display: flex;\n align-items: center;\n z-index: 1;\n"], ["\n display: flex;\n align-items: center;\n z-index: 1;\n"])));
|
|
133950
133885
|
|
|
133951
133886
|
var TitleWrapper = _styled.div.withConfig({
|
|
133952
|
-
displayName: "
|
|
133953
|
-
componentId: "sc-
|
|
133954
|
-
})(
|
|
133887
|
+
displayName: "HeroSlide__TitleWrapper",
|
|
133888
|
+
componentId: "sc-3yofth-8"
|
|
133889
|
+
})(templateObject_15 || (templateObject_15 = __makeTemplateObject$l(["\n max-width: calc(100% - 110px);\n"], ["\n max-width: calc(100% - 110px);\n"])));
|
|
133955
133890
|
|
|
133956
133891
|
var Icons = _styled.div.withConfig({
|
|
133957
|
-
displayName: "
|
|
133958
|
-
componentId: "sc-
|
|
133959
|
-
})(
|
|
133892
|
+
displayName: "HeroSlide__Icons",
|
|
133893
|
+
componentId: "sc-3yofth-9"
|
|
133894
|
+
})(templateObject_16 || (templateObject_16 = __makeTemplateObject$l(["\n display: flex;\n align-self: flex-start;\n margin-left: auto;\n z-index: 1;\n"], ["\n display: flex;\n align-self: flex-start;\n margin-left: auto;\n z-index: 1;\n"])));
|
|
133960
133895
|
|
|
133961
|
-
var IconStyle = css$2(
|
|
133896
|
+
var IconStyle = css$2(templateObject_17 || (templateObject_17 = __makeTemplateObject$l(["\n font-size: ", "px;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: ", "px;\n"], ["\n font-size: ", "px;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: ", "px;\n"])), fontSizeLarge, spacingXs);
|
|
133962
133897
|
|
|
133963
133898
|
var StyledIcon = _styled(Icon).withConfig({
|
|
133964
|
-
displayName: "
|
|
133965
|
-
componentId: "sc-
|
|
133966
|
-
})(
|
|
133967
|
-
return p.backgroundColor && css$2(
|
|
133899
|
+
displayName: "HeroSlide__StyledIcon",
|
|
133900
|
+
componentId: "sc-3yofth-10"
|
|
133901
|
+
})(templateObject_21 || (templateObject_21 = __makeTemplateObject$l(["\n ", "\n ", "\n\n", "\n"], ["\n ", "\n ", "\n\n", "\n"])), IconStyle, function (p) {
|
|
133902
|
+
return p.backgroundColor && css$2(templateObject_18 || (templateObject_18 = __makeTemplateObject$l(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), p.backgroundColor);
|
|
133968
133903
|
}, function (p) {
|
|
133969
|
-
return p.color ? css$2(
|
|
133904
|
+
return p.color ? css$2(templateObject_19 || (templateObject_19 = __makeTemplateObject$l(["\n color: ", ";\n "], ["\n color: ", ";\n "])), p.color) : css$2(templateObject_20 || (templateObject_20 = __makeTemplateObject$l(["\n color: ", ";\n "], ["\n color: ", ";\n "])), p.theme.textColors.default);
|
|
133970
133905
|
});
|
|
133971
133906
|
|
|
133972
133907
|
var Headline = _styled.div.withConfig({
|
|
133973
|
-
displayName: "
|
|
133974
|
-
componentId: "sc-
|
|
133975
|
-
})(
|
|
133908
|
+
displayName: "HeroSlide__Headline",
|
|
133909
|
+
componentId: "sc-3yofth-11"
|
|
133910
|
+
})(templateObject_22 || (templateObject_22 = __makeTemplateObject$l(["\n font-size: ", "px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n color: ", ";\n"], ["\n font-size: ", "px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n color: ", ";\n"])), fontSizeMedium, function (p) {
|
|
133976
133911
|
return p.color || p.theme.textColors.default;
|
|
133977
133912
|
});
|
|
133978
133913
|
|
|
133979
133914
|
var Title$1 = _styled.h3.withConfig({
|
|
133980
|
-
displayName: "
|
|
133981
|
-
componentId: "sc-
|
|
133982
|
-
})(
|
|
133915
|
+
displayName: "HeroSlide__Title",
|
|
133916
|
+
componentId: "sc-3yofth-12"
|
|
133917
|
+
})(templateObject_24 || (templateObject_24 = __makeTemplateObject$l(["\n padding: 0;\n margin: 0 auto 0 0;\n font-weight: normal;\n color: ", ";\n\n a {\n ", "\n\n &,\n :link,\n :visited {\n color: inherit;\n text-decoration: none;\n }\n }\n\n ", "\n"], ["\n padding: 0;\n margin: 0 auto 0 0;\n font-weight: normal;\n color: ", ";\n\n a {\n ", "\n\n &,\n :link,\n :visited {\n color: inherit;\n text-decoration: none;\n }\n }\n\n ", "\n"])), function (p) {
|
|
133983
133918
|
return p.color || p.theme.textColors.default;
|
|
133984
133919
|
}, LineClamp(2, fontSizeLarge, 1.2), function (p) {
|
|
133985
|
-
return p.applyClickableOverlay && css$2(
|
|
133920
|
+
return p.applyClickableOverlay && css$2(templateObject_23 || (templateObject_23 = __makeTemplateObject$l(["\n a::before {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n }\n "], ["\n a::before {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n }\n "])));
|
|
133986
133921
|
});
|
|
133987
133922
|
|
|
133988
133923
|
var MetadataHost = _styled.div.withConfig({
|
|
133989
|
-
displayName: "
|
|
133990
|
-
componentId: "sc-
|
|
133991
|
-
})(
|
|
133924
|
+
displayName: "HeroSlide__MetadataHost",
|
|
133925
|
+
componentId: "sc-3yofth-13"
|
|
133926
|
+
})(templateObject_25 || (templateObject_25 = __makeTemplateObject$l(["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n margin-top: auto;\n z-index: 1;\n"], ["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n margin-top: auto;\n z-index: 1;\n"])));
|
|
133992
133927
|
|
|
133993
133928
|
var Metadata = _styled.div.withConfig({
|
|
133994
|
-
displayName: "
|
|
133995
|
-
componentId: "sc-
|
|
133996
|
-
})(
|
|
133929
|
+
displayName: "HeroSlide__Metadata",
|
|
133930
|
+
componentId: "sc-3yofth-14"
|
|
133931
|
+
})(templateObject_26 || (templateObject_26 = __makeTemplateObject$l(["\n display: flex;\n flex-direction: column;\n margin-left: ", "px;\n"], ["\n display: flex;\n flex-direction: column;\n margin-left: ", "px;\n"])), spacingS);
|
|
133997
133932
|
|
|
133998
133933
|
var AdditionalMetadata = _styled.div.withConfig({
|
|
133999
|
-
displayName: "
|
|
134000
|
-
componentId: "sc-
|
|
134001
|
-
})(
|
|
133934
|
+
displayName: "HeroSlide__AdditionalMetadata",
|
|
133935
|
+
componentId: "sc-3yofth-15"
|
|
133936
|
+
})(templateObject_27 || (templateObject_27 = __makeTemplateObject$l(["\n flex: 1;\n padding: ", "px 0;\n max-width: 100%;\n font-size: ", "px;\n"], ["\n flex: 1;\n padding: ", "px 0;\n max-width: 100%;\n font-size: ", "px;\n"])), spacingXs, fontSizeSmall);
|
|
134002
133937
|
|
|
134003
133938
|
var AuthorName = _styled(PersonaCard).withConfig({
|
|
134004
|
-
displayName: "
|
|
134005
|
-
componentId: "sc-
|
|
134006
|
-
})(
|
|
134007
|
-
return p.color ? css$2(
|
|
133939
|
+
displayName: "HeroSlide__AuthorName",
|
|
133940
|
+
componentId: "sc-3yofth-16"
|
|
133941
|
+
})(templateObject_30 || (templateObject_30 = __makeTemplateObject$l(["\n ", "\n"], ["\n ", "\n"])), function (p) {
|
|
133942
|
+
return p.color ? css$2(templateObject_28 || (templateObject_28 = __makeTemplateObject$l(["\n color: ", ";\n "], ["\n color: ", ";\n "])), p.color) : css$2(templateObject_29 || (templateObject_29 = __makeTemplateObject$l(["\n color: ", ";\n "], ["\n color: ", ";\n "])), p.theme.textColors.default);
|
|
134008
133943
|
});
|
|
134009
133944
|
|
|
134010
133945
|
var StyledDateTime = _styled(DateTime).withConfig({
|
|
134011
|
-
displayName: "
|
|
134012
|
-
componentId: "sc-
|
|
134013
|
-
})(
|
|
134014
|
-
return p.color ? css$2(
|
|
133946
|
+
displayName: "HeroSlide__StyledDateTime",
|
|
133947
|
+
componentId: "sc-3yofth-17"
|
|
133948
|
+
})(templateObject_33 || (templateObject_33 = __makeTemplateObject$l(["\n font-size: ", "px;\n margin-top: ", "px;\n ", "\n"], ["\n font-size: ", "px;\n margin-top: ", "px;\n ", "\n"])), fontSizeSmaller, spacingXs, function (p) {
|
|
133949
|
+
return p.color ? css$2(templateObject_31 || (templateObject_31 = __makeTemplateObject$l(["\n color: ", ";\n "], ["\n color: ", ";\n "])), p.color) : css$2(templateObject_32 || (templateObject_32 = __makeTemplateObject$l(["\n color: ", ";\n "], ["\n color: ", ";\n "])), p.theme.textColors.default);
|
|
134015
133950
|
});
|
|
134016
133951
|
|
|
134017
|
-
var templateObject_1$
|
|
133952
|
+
var templateObject_1$b, templateObject_2$4, templateObject_3$4, templateObject_4$4, templateObject_5$3, templateObject_6$3, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33;
|
|
133953
|
+
|
|
133954
|
+
var HeroPaging = function HeroPaging(_a) {
|
|
133955
|
+
var items = _a.items,
|
|
133956
|
+
goToSlide = _a.goToSlide,
|
|
133957
|
+
currentSlide = _a.currentSlide,
|
|
133958
|
+
frameWidth = _a.frameWidth,
|
|
133959
|
+
slideCount = _a.slideCount,
|
|
133960
|
+
autoplay = _a.autoplay,
|
|
133961
|
+
className = _a.className;
|
|
133962
|
+
var user = useCurrentUserContext().user;
|
|
133963
|
+
var formatMessage = useIntl().formatMessage;
|
|
133964
|
+
var palette = useContext(ThemeContext$1).theme.palette;
|
|
133965
|
+
|
|
133966
|
+
var _b = useState$2(false),
|
|
133967
|
+
showArrows = _b[0],
|
|
133968
|
+
setShowArrows = _b[1];
|
|
133969
|
+
|
|
133970
|
+
var _c = useState$2(0),
|
|
133971
|
+
startIndex = _c[0],
|
|
133972
|
+
setStartIndex = _c[1];
|
|
133973
|
+
|
|
133974
|
+
var _d = useState$2(0),
|
|
133975
|
+
visibleItemsLength = _d[0],
|
|
133976
|
+
setVisibleItemsLength = _d[1];
|
|
133977
|
+
|
|
133978
|
+
useEffect$1(function () {
|
|
133979
|
+
var containerWidth = frameWidth - 60; // margins are extracted
|
|
133980
|
+
|
|
133981
|
+
var maxNumberOfItems = Math.floor(containerWidth / 150); // 150 - min-width + gap
|
|
133982
|
+
|
|
133983
|
+
setVisibleItemsLength(maxNumberOfItems);
|
|
133984
|
+
setShowArrows(maxNumberOfItems < slideCount); // reset the active slide - ensure the first slide is active when resizing
|
|
133985
|
+
|
|
133986
|
+
reset(); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
133987
|
+
}, [frameWidth]);
|
|
133988
|
+
useEffect$1(function () {
|
|
133989
|
+
if (!autoplay || !showArrows) {
|
|
133990
|
+
return;
|
|
133991
|
+
} // ensure first paging button is marked as active when first slide becomes active again
|
|
133992
|
+
|
|
133993
|
+
|
|
133994
|
+
if (currentSlide === 0 && startIndex > 0) {
|
|
133995
|
+
reset();
|
|
133996
|
+
return;
|
|
133997
|
+
} // update the visible paging buttons when currenSlide has the corresponding paging button outside of the visible area
|
|
133998
|
+
|
|
133999
|
+
|
|
134000
|
+
if (currentSlide === startIndex + visibleItemsLength) {
|
|
134001
|
+
handleVisiblePagingItems(startIndex + visibleItemsLength);
|
|
134002
|
+
}
|
|
134003
|
+
}, [currentSlide, autoplay, showArrows]);
|
|
134004
|
+
var pagingItems = items.map(function (i) {
|
|
134005
|
+
return {
|
|
134006
|
+
title: getTitle(i.item, user, formatMessage),
|
|
134007
|
+
id: i.item.id
|
|
134008
|
+
};
|
|
134009
|
+
});
|
|
134010
|
+
var pagingColor = items[currentSlide].item.bannerInfo ? palette.white : palette.black;
|
|
134011
|
+
var currentSlideId = items[currentSlide].item.id;
|
|
134012
|
+
return jsxs(PagingHost, __assign$g({
|
|
134013
|
+
className: className
|
|
134014
|
+
}, {
|
|
134015
|
+
children: [showArrows && startIndex >= visibleItemsLength && jsx$1(PagingArrow, {
|
|
134016
|
+
iconProps: {
|
|
134017
|
+
iconName: 'ChevronLeft',
|
|
134018
|
+
style: {
|
|
134019
|
+
fontSize: 22
|
|
134020
|
+
}
|
|
134021
|
+
},
|
|
134022
|
+
onClick: function () {
|
|
134023
|
+
return handleVisiblePagingItems(startIndex - visibleItemsLength);
|
|
134024
|
+
},
|
|
134025
|
+
color: pagingColor,
|
|
134026
|
+
"data-paging-back": true
|
|
134027
|
+
}, void 0), jsx$1(Paging, {
|
|
134028
|
+
children: pagingItems.map(function (item, index) {
|
|
134029
|
+
var isActive = currentSlideId === item.id;
|
|
134030
|
+
var isVisible = index >= startIndex && index < startIndex + visibleItemsLength;
|
|
134031
|
+
return jsx$1(PagingItem, __assign$g({
|
|
134032
|
+
className: classNames({
|
|
134033
|
+
'paging-item--active': isActive,
|
|
134034
|
+
'paging-item--visible': isVisible
|
|
134035
|
+
}),
|
|
134036
|
+
visibleItemsLength: showArrows ? visibleItemsLength : null
|
|
134037
|
+
}, {
|
|
134038
|
+
children: jsx$1(PagingButton, __assign$g({
|
|
134039
|
+
onClick: function () {
|
|
134040
|
+
return goToSlide(index);
|
|
134041
|
+
},
|
|
134042
|
+
color: pagingColor
|
|
134043
|
+
}, {
|
|
134044
|
+
children: item.title
|
|
134045
|
+
}), void 0)
|
|
134046
|
+
}), item.id);
|
|
134047
|
+
})
|
|
134048
|
+
}, void 0), showArrows && startIndex < slideCount - visibleItemsLength && jsx$1(PagingArrow, {
|
|
134049
|
+
iconProps: {
|
|
134050
|
+
iconName: 'ChevronRight',
|
|
134051
|
+
style: {
|
|
134052
|
+
fontSize: 22
|
|
134053
|
+
}
|
|
134054
|
+
},
|
|
134055
|
+
onClick: function () {
|
|
134056
|
+
return handleVisiblePagingItems(startIndex + visibleItemsLength);
|
|
134057
|
+
},
|
|
134058
|
+
color: pagingColor,
|
|
134059
|
+
"data-paging-next": true
|
|
134060
|
+
}, void 0)]
|
|
134061
|
+
}), void 0);
|
|
134062
|
+
|
|
134063
|
+
function handleVisiblePagingItems(index) {
|
|
134064
|
+
setStartIndex(index);
|
|
134065
|
+
goToSlide(index);
|
|
134066
|
+
}
|
|
134067
|
+
|
|
134068
|
+
function reset() {
|
|
134069
|
+
handleVisiblePagingItems(0);
|
|
134070
|
+
}
|
|
134071
|
+
};
|
|
134072
|
+
|
|
134073
|
+
var PagingHost = _styled.div.withConfig({
|
|
134074
|
+
displayName: "HeroPaging__PagingHost",
|
|
134075
|
+
componentId: "sc-1y3j8qb-0"
|
|
134076
|
+
})(templateObject_1$a || (templateObject_1$a = __makeTemplateObject$l(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
134077
|
+
|
|
134078
|
+
var Paging = _styled.ul.withConfig({
|
|
134079
|
+
displayName: "HeroPaging__Paging",
|
|
134080
|
+
componentId: "sc-1y3j8qb-1"
|
|
134081
|
+
})(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject$l(["\n display: flex;\n width: 100%;\n list-style: none;\n margin: 0 0 ", "px 0;\n padding: 0;\n"], ["\n display: flex;\n width: 100%;\n list-style: none;\n margin: 0 0 ", "px 0;\n padding: 0;\n"])), spacingM);
|
|
134082
|
+
|
|
134083
|
+
var PagingItem = _styled.li.withConfig({
|
|
134084
|
+
displayName: "HeroPaging__PagingItem",
|
|
134085
|
+
componentId: "sc-1y3j8qb-2"
|
|
134086
|
+
})(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject$l(["\n display: none;\n flex: 1;\n min-width: 140px;\n margin: 0 5px;\n\n ", "\n\n &:not(.paging-item--active) {\n opacity: 0.6;\n }\n\n &.paging-item--visible {\n display: block;\n }\n"], ["\n display: none;\n flex: 1;\n min-width: 140px;\n margin: 0 5px;\n\n ", "\n\n &:not(.paging-item--active) {\n opacity: 0.6;\n }\n\n &.paging-item--visible {\n display: block;\n }\n"])), function (p) {
|
|
134087
|
+
return p.visibleItemsLength && css$2(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject$l(["\n max-width: calc(100% / ", " - 10px);\n "], ["\n max-width: calc(100% / ", " - 10px);\n "])), p.visibleItemsLength);
|
|
134088
|
+
});
|
|
134089
|
+
|
|
134090
|
+
var PagingButton = _styled(ActionButton).withConfig({
|
|
134091
|
+
displayName: "HeroPaging__PagingButton",
|
|
134092
|
+
componentId: "sc-1y3j8qb-3"
|
|
134093
|
+
})(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject$l(["\n && {\n width: 100%;\n height: auto;\n text-align: left;\n padding: ", "px 0 2px 0;\n margin: 0;\n\n &:before {\n content: '';\n position: absolute;\n bottom: 100%;\n left: 0;\n right: 0;\n border-top: 3px solid ", ";\n }\n }\n\n .ms-Button-label {\n padding: 0;\n\n ", "\n }\n"], ["\n && {\n width: 100%;\n height: auto;\n text-align: left;\n padding: ", "px 0 2px 0;\n margin: 0;\n\n &:before {\n content: '';\n position: absolute;\n bottom: 100%;\n left: 0;\n right: 0;\n border-top: 3px solid ", ";\n }\n }\n\n .ms-Button-label {\n padding: 0;\n\n ", "\n }\n"])), spacingS, function (p) {
|
|
134094
|
+
return p.color;
|
|
134095
|
+
}, LineClamp(2, fontSizeSmall, 1.2));
|
|
134096
|
+
|
|
134097
|
+
var PagingArrow = _styled(IconButton).withConfig({
|
|
134098
|
+
displayName: "HeroPaging__PagingArrow",
|
|
134099
|
+
componentId: "sc-1y3j8qb-4"
|
|
134100
|
+
})(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject$l(["\n position: absolute;\n top: 50%;\n\n && {\n padding: 0;\n }\n\n &[data-paging-next] {\n left: 100%;\n transform: translate(-5px, -50%);\n }\n\n &[data-paging-back] {\n right: 100%;\n transform: translate(5px, -50%);\n }\n"], ["\n position: absolute;\n top: 50%;\n\n && {\n padding: 0;\n }\n\n &[data-paging-next] {\n left: 100%;\n transform: translate(-5px, -50%);\n }\n\n &[data-paging-back] {\n right: 100%;\n transform: translate(5px, -50%);\n }\n"])));
|
|
134101
|
+
|
|
134102
|
+
var templateObject_1$a, templateObject_2$3, templateObject_3$3, templateObject_4$3, templateObject_5$2, templateObject_6$2;
|
|
134103
|
+
|
|
134104
|
+
var Hero = function Hero(_a) {
|
|
134105
|
+
var items = _a.items,
|
|
134106
|
+
itemResourceType = _a.itemResourceType,
|
|
134107
|
+
baseRoute = _a.baseRoute,
|
|
134108
|
+
disableAutoplay = _a.disableAutoplay,
|
|
134109
|
+
autoplayInterval = _a.autoplayInterval,
|
|
134110
|
+
_b = _a.width,
|
|
134111
|
+
width = _b === void 0 ? '100%' : _b,
|
|
134112
|
+
_c = _a.height,
|
|
134113
|
+
height = _c === void 0 ? '100%' : _c;
|
|
134114
|
+
|
|
134115
|
+
var _d = useState$2(false),
|
|
134116
|
+
forceDisableAutoplay = _d[0],
|
|
134117
|
+
setForceDisableAutoplay = _d[1];
|
|
134118
|
+
|
|
134119
|
+
if (!items || items.length === 0) {
|
|
134120
|
+
return null;
|
|
134121
|
+
}
|
|
134122
|
+
|
|
134123
|
+
var hasMoreItems = items.length > 1;
|
|
134124
|
+
var autoplay = !disableAutoplay && !forceDisableAutoplay;
|
|
134125
|
+
return jsx$1(StyledCarousel, __assign$g({
|
|
134126
|
+
autoplay: autoplay,
|
|
134127
|
+
autoplayInterval: autoplayInterval !== null && autoplayInterval !== void 0 ? autoplayInterval : 5000,
|
|
134128
|
+
wrapAround: true,
|
|
134129
|
+
pauseOnHover: true,
|
|
134130
|
+
renderBottomCenterControls: function (props) {
|
|
134131
|
+
return hasMoreItems ? jsx$1(HeroPaging, __assign$g({
|
|
134132
|
+
items: items,
|
|
134133
|
+
autoplay: autoplay,
|
|
134134
|
+
className: classNames({
|
|
134135
|
+
'hero-paging--hidden': forceDisableAutoplay
|
|
134136
|
+
/* ensure paging is hidden when video player is active */
|
|
134137
|
+
|
|
134138
|
+
})
|
|
134139
|
+
}, props), void 0) : null;
|
|
134140
|
+
},
|
|
134141
|
+
renderCenterLeftControls: null,
|
|
134142
|
+
renderCenterRightControls: null,
|
|
134143
|
+
swiping: hasMoreItems,
|
|
134144
|
+
transitionMode: "fade",
|
|
134145
|
+
width: typeof width === 'number' ? width + "px" : width,
|
|
134146
|
+
height: typeof height === 'number' ? height + "px" : height
|
|
134147
|
+
}, {
|
|
134148
|
+
children: items.map(function (i) {
|
|
134149
|
+
return jsx$1(HeroSlide, {
|
|
134150
|
+
item: i.item,
|
|
134151
|
+
icons: i.icons,
|
|
134152
|
+
itemResourceType: itemResourceType,
|
|
134153
|
+
baseRoute: baseRoute,
|
|
134154
|
+
additionalMetadata: i.additionalMetadata,
|
|
134155
|
+
onClick: i.onClick,
|
|
134156
|
+
onToggleVideo: function (isPlayerActive) {
|
|
134157
|
+
return setForceDisableAutoplay(isPlayerActive);
|
|
134158
|
+
},
|
|
134159
|
+
width: width,
|
|
134160
|
+
height: height
|
|
134161
|
+
}, i.item.id);
|
|
134162
|
+
})
|
|
134163
|
+
}), void 0);
|
|
134164
|
+
};
|
|
134165
|
+
|
|
134166
|
+
var StyledCarousel = _styled(Carousel).withConfig({
|
|
134167
|
+
displayName: "Hero__StyledCarousel",
|
|
134168
|
+
componentId: "sc-55ys37-0"
|
|
134169
|
+
})(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject$l(["\n .slider-list {\n height: 100% !important;\n\n > li {\n height: 100% !important;\n }\n }\n\n .slider-control-bottomcenter {\n left: ", "px !important;\n right: ", "px !important;\n transform: none !important;\n }\n\n .hero-paging--hidden {\n display: none;\n }\n"], ["\n .slider-list {\n height: 100% !important;\n\n > li {\n height: 100% !important;\n }\n }\n\n .slider-control-bottomcenter {\n left: ", "px !important;\n right: ", "px !important;\n transform: none !important;\n }\n\n .hero-paging--hidden {\n display: none;\n }\n"])), spacingL, spacingL);
|
|
134170
|
+
|
|
134171
|
+
var templateObject_1$9;
|
|
134018
134172
|
|
|
134019
134173
|
var NewsHero = function NewsHero(_a) {
|
|
134020
134174
|
var filter = _a.filter,
|
|
@@ -134149,15 +134303,15 @@ var NewsHero = function NewsHero(_a) {
|
|
|
134149
134303
|
var StyledChannels = _styled(ChannelList$1).withConfig({
|
|
134150
134304
|
displayName: "NewsHero__StyledChannels",
|
|
134151
134305
|
componentId: "sc-i9ar0j-0"
|
|
134152
|
-
})(templateObject_1$
|
|
134306
|
+
})(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject$l(["\n [data-channels] {\n justify-content: flex-end;\n }\n"], ["\n [data-channels] {\n justify-content: flex-end;\n }\n"])));
|
|
134153
134307
|
|
|
134154
|
-
var templateObject_1$
|
|
134308
|
+
var templateObject_1$8;
|
|
134155
134309
|
|
|
134156
134310
|
// a string of all valid unicode whitespaces
|
|
134157
134311
|
// eslint-disable-next-line max-len
|
|
134158
134312
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
134159
134313
|
|
|
134160
|
-
var requireObjectCoercible = requireObjectCoercible$m;
|
|
134314
|
+
var requireObjectCoercible$1 = requireObjectCoercible$m;
|
|
134161
134315
|
var whitespaces$1 = whitespaces$2;
|
|
134162
134316
|
|
|
134163
134317
|
var whitespace = '[' + whitespaces$1 + ']';
|
|
@@ -134167,7 +134321,7 @@ var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
|
134167
134321
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
134168
134322
|
var createMethod = function (TYPE) {
|
|
134169
134323
|
return function ($this) {
|
|
134170
|
-
var string = String(requireObjectCoercible($this));
|
|
134324
|
+
var string = String(requireObjectCoercible$1($this));
|
|
134171
134325
|
if (TYPE & 1) string = string.replace(ltrim, '');
|
|
134172
134326
|
if (TYPE & 2) string = string.replace(rtrim, '');
|
|
134173
134327
|
return string;
|
|
@@ -134186,7 +134340,7 @@ var stringTrim = {
|
|
|
134186
134340
|
trim: createMethod(3)
|
|
134187
134341
|
};
|
|
134188
134342
|
|
|
134189
|
-
var fails$
|
|
134343
|
+
var fails$2 = fails$w;
|
|
134190
134344
|
var whitespaces = whitespaces$2;
|
|
134191
134345
|
|
|
134192
134346
|
var non = '\u200B\u0085\u180E';
|
|
@@ -134194,7 +134348,7 @@ var non = '\u200B\u0085\u180E';
|
|
|
134194
134348
|
// check that a method works with the correct list
|
|
134195
134349
|
// of whitespaces and has a correct name
|
|
134196
134350
|
var stringTrimForced = function (METHOD_NAME) {
|
|
134197
|
-
return fails$
|
|
134351
|
+
return fails$2(function () {
|
|
134198
134352
|
return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
|
|
134199
134353
|
});
|
|
134200
134354
|
};
|
|
@@ -134212,15 +134366,15 @@ $({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
|
134212
134366
|
});
|
|
134213
134367
|
|
|
134214
134368
|
var redefine = redefine$k.exports;
|
|
134215
|
-
var anObject = anObject$v;
|
|
134216
|
-
var fails = fails$w;
|
|
134369
|
+
var anObject$1 = anObject$v;
|
|
134370
|
+
var fails$1 = fails$w;
|
|
134217
134371
|
var flags = regexpFlags$1;
|
|
134218
134372
|
|
|
134219
134373
|
var TO_STRING = 'toString';
|
|
134220
134374
|
var RegExpPrototype = RegExp.prototype;
|
|
134221
134375
|
var nativeToString = RegExpPrototype[TO_STRING];
|
|
134222
134376
|
|
|
134223
|
-
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
134377
|
+
var NOT_GENERIC = fails$1(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
134224
134378
|
// FF44- RegExp#toString has a wrong name
|
|
134225
134379
|
var INCORRECT_NAME = nativeToString.name != TO_STRING;
|
|
134226
134380
|
|
|
@@ -134228,7 +134382,7 @@ var INCORRECT_NAME = nativeToString.name != TO_STRING;
|
|
|
134228
134382
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring
|
|
134229
134383
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
134230
134384
|
redefine(RegExp.prototype, TO_STRING, function toString() {
|
|
134231
|
-
var R = anObject(this);
|
|
134385
|
+
var R = anObject$1(this);
|
|
134232
134386
|
var p = String(R.source);
|
|
134233
134387
|
var rf = R.flags;
|
|
134234
134388
|
var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
|
|
@@ -134319,7 +134473,7 @@ var GroupsDropdown = function GroupsDropdown(_a) {
|
|
|
134319
134473
|
var StyledDropdown = _styled(Dropdown).withConfig({
|
|
134320
134474
|
displayName: "GroupsDropdown__StyledDropdown",
|
|
134321
134475
|
componentId: "sc-cmsnyu-0"
|
|
134322
|
-
})(templateObject_1$
|
|
134476
|
+
})(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject$l(["\n ", "\n\n margin-bottom: ", "px;\n width: 200px;\n min-width: 200px;\n padding: 0;\n\n &&&,\n &&&:hover,\n .ms-Dropdown,\n .ms-Dropdown-title,\n .ms-Dropdown-caretDownWrapper {\n color: ", " !important;\n }\n\n .ms-Dropdown-title {\n background-color: ", ";\n i {\n font-size: ", "px;\n margin: 0 ", "px 0 0;\n }\n }\n\n .ms-Dropdown-caretDownWrapper {\n top: 0;\n\n & > i {\n color: ", " !important;\n }\n }\n"], ["\n ", "\n\n margin-bottom: ", "px;\n width: 200px;\n min-width: 200px;\n padding: 0;\n\n &&&,\n &&&:hover,\n .ms-Dropdown,\n .ms-Dropdown-title,\n .ms-Dropdown-caretDownWrapper {\n color: ", " !important;\n }\n\n .ms-Dropdown-title {\n background-color: ", ";\n i {\n font-size: ", "px;\n margin: 0 ", "px 0 0;\n }\n }\n\n .ms-Dropdown-caretDownWrapper {\n top: 0;\n\n & > i {\n color: ", " !important;\n }\n }\n"])), ToolbarNoBorderDropdownStyles, spacingXs, function (p) {
|
|
134323
134477
|
return p.theme.textColors.onAccent;
|
|
134324
134478
|
}, function (p) {
|
|
134325
134479
|
return p.theme.palette.accent;
|
|
@@ -134330,16 +134484,16 @@ var StyledDropdown = _styled(Dropdown).withConfig({
|
|
|
134330
134484
|
var DropdownOption = _styled.div.withConfig({
|
|
134331
134485
|
displayName: "GroupsDropdown__DropdownOption",
|
|
134332
134486
|
componentId: "sc-cmsnyu-1"
|
|
134333
|
-
})(templateObject_2$
|
|
134487
|
+
})(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject$l(["\n ", "\n"], ["\n ", "\n"])), ToolbarOptionStyles);
|
|
134334
134488
|
|
|
134335
134489
|
var Title = _styled.div.withConfig({
|
|
134336
134490
|
displayName: "GroupsDropdown__Title",
|
|
134337
134491
|
componentId: "sc-cmsnyu-2"
|
|
134338
|
-
})(templateObject_3$
|
|
134492
|
+
})(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject$l(["\n display: inline-flex;\n width: 100%;\n\n > i {\n margin-left: ", "px;\n margin-right: ", "px;\n }\n\n > span {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n"], ["\n display: inline-flex;\n width: 100%;\n\n > i {\n margin-left: ", "px;\n margin-right: ", "px;\n }\n\n > span {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n"])), spacingS, spacingS + 8);
|
|
134339
134493
|
|
|
134340
|
-
var GlobalDropdownStyles = createGlobalStyle(templateObject_4$
|
|
134494
|
+
var GlobalDropdownStyles = createGlobalStyle(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject$l(["\n .ms-Dropdown-item {\n i {\n width: auto;\n margin: 0 ", "px 0 0;\n }\n }\n"], ["\n .ms-Dropdown-item {\n i {\n width: auto;\n margin: 0 ", "px 0 0;\n }\n }\n"])), spacingS);
|
|
134341
134495
|
|
|
134342
|
-
var templateObject_1$
|
|
134496
|
+
var templateObject_1$7, templateObject_2$2, templateObject_3$2, templateObject_4$2;
|
|
134343
134497
|
|
|
134344
134498
|
var TaskButton = function TaskButton(_a) {
|
|
134345
134499
|
var count = _a.count,
|
|
@@ -134381,9 +134535,9 @@ var TaskButton = function TaskButton(_a) {
|
|
|
134381
134535
|
var ToggleButton = _styled(DefaultButton).withConfig({
|
|
134382
134536
|
displayName: "TaskButton__ToggleButton",
|
|
134383
134537
|
componentId: "sc-8eylsw-0"
|
|
134384
|
-
})(templateObject_1$
|
|
134538
|
+
})(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject$l(["\n border-radius: 0;\n padding: 0 ", "px;\n margin-bottom: ", "px;\n font-size: ", "px;\n user-select: none;\n height: ", "px;\n\n display: flex;\n align-items: center;\n\n svg {\n margin-right: ", "px;\n }\n"], ["\n border-radius: 0;\n padding: 0 ", "px;\n margin-bottom: ", "px;\n font-size: ", "px;\n user-select: none;\n height: ", "px;\n\n display: flex;\n align-items: center;\n\n svg {\n margin-right: ", "px;\n }\n"])), spacingS, spacingXs, fontSizeSmall, spacingL + 2, spacingS);
|
|
134385
134539
|
|
|
134386
|
-
var templateObject_1$
|
|
134540
|
+
var templateObject_1$6;
|
|
134387
134541
|
|
|
134388
134542
|
var TaskButtons = function TaskButtons(_a) {
|
|
134389
134543
|
var type = _a.type,
|
|
@@ -134401,7 +134555,7 @@ var TaskButtons = function TaskButtons(_a) {
|
|
|
134401
134555
|
return null;
|
|
134402
134556
|
}
|
|
134403
134557
|
|
|
134404
|
-
return jsxs(Host$
|
|
134558
|
+
return jsxs(Host$3, __assign$g({
|
|
134405
134559
|
className: className
|
|
134406
134560
|
}, {
|
|
134407
134561
|
children: [jsx$1(TaskButton, {
|
|
@@ -134446,12 +134600,12 @@ var TaskButtons = function TaskButtons(_a) {
|
|
|
134446
134600
|
}), void 0);
|
|
134447
134601
|
};
|
|
134448
134602
|
|
|
134449
|
-
var Host$
|
|
134603
|
+
var Host$3 = _styled.div.withConfig({
|
|
134450
134604
|
displayName: "TaskButtons__Host",
|
|
134451
134605
|
componentId: "sc-sw0zei-0"
|
|
134452
|
-
})(templateObject_1$
|
|
134606
|
+
})(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject$l(["\n display: flex;\n flex-wrap: wrap;\n\n button {\n border: 1px solid #808080;\n\n &:not(:first-child) {\n border-left: none;\n }\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n\n button {\n border: 1px solid #808080;\n\n &:not(:first-child) {\n border-left: none;\n }\n }\n"])));
|
|
134453
134607
|
|
|
134454
|
-
var templateObject_1$
|
|
134608
|
+
var templateObject_1$5;
|
|
134455
134609
|
|
|
134456
134610
|
var NewArticleButton = function NewArticleButton(_a) {
|
|
134457
134611
|
var groupId = _a.groupId,
|
|
@@ -134593,34 +134747,34 @@ var NewsEditorDashboard = function NewsEditorDashboard(_a) {
|
|
|
134593
134747
|
}).length;
|
|
134594
134748
|
}
|
|
134595
134749
|
};
|
|
134596
|
-
var MessageBarStyle = createGlobalStyle(templateObject_1$
|
|
134750
|
+
var MessageBarStyle = createGlobalStyle(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject$l(["\n .ms-MessageBar {\n margin-bottom: ", "px;\n }\n .ms-MessageBar-text {\n flex: 1 1 0%;\n }\n"], ["\n .ms-MessageBar {\n margin-bottom: ", "px;\n }\n .ms-MessageBar-text {\n flex: 1 1 0%;\n }\n"])), spacingXs);
|
|
134597
134751
|
|
|
134598
134752
|
var StyledEditorListItem = _styled(EditorListItem).withConfig({
|
|
134599
134753
|
displayName: "NewsEditorDashboard__StyledEditorListItem",
|
|
134600
134754
|
componentId: "sc-vv9dzu-0"
|
|
134601
|
-
})(templateObject_2 || (templateObject_2 = __makeTemplateObject$l(["\n :not(:first-child) {\n margin-top: ", "px;\n }\n"], ["\n :not(:first-child) {\n margin-top: ", "px;\n }\n"])), spacingS + 5);
|
|
134755
|
+
})(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject$l(["\n :not(:first-child) {\n margin-top: ", "px;\n }\n"], ["\n :not(:first-child) {\n margin-top: ", "px;\n }\n"])), spacingS + 5);
|
|
134602
134756
|
|
|
134603
134757
|
var FiltersAndButtons = _styled.div.withConfig({
|
|
134604
134758
|
displayName: "NewsEditorDashboard__FiltersAndButtons",
|
|
134605
134759
|
componentId: "sc-vv9dzu-1"
|
|
134606
|
-
})(templateObject_3 || (templateObject_3 = __makeTemplateObject$l(["\n margin-bottom: ", "px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"], ["\n margin-bottom: ", "px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])), spacingX);
|
|
134760
|
+
})(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject$l(["\n margin-bottom: ", "px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"], ["\n margin-bottom: ", "px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])), spacingX);
|
|
134607
134761
|
|
|
134608
134762
|
var EditorList = _styled.div.withConfig({
|
|
134609
134763
|
displayName: "NewsEditorDashboard__EditorList",
|
|
134610
134764
|
componentId: "sc-vv9dzu-2"
|
|
134611
|
-
})(templateObject_4 || (templateObject_4 = __makeTemplateObject$l([""], [""])));
|
|
134765
|
+
})(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject$l([""], [""])));
|
|
134612
134766
|
|
|
134613
134767
|
var Filters = _styled.div.withConfig({
|
|
134614
134768
|
displayName: "NewsEditorDashboard__Filters",
|
|
134615
134769
|
componentId: "sc-vv9dzu-3"
|
|
134616
|
-
})(templateObject_5 || (templateObject_5 = __makeTemplateObject$l(["\n display: flex;\n flex-wrap: wrap;\n\n > * {\n margin-right: ", "px;\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n\n > * {\n margin-right: ", "px;\n }\n"])), spacingM);
|
|
134770
|
+
})(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject$l(["\n display: flex;\n flex-wrap: wrap;\n\n > * {\n margin-right: ", "px;\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n\n > * {\n margin-right: ", "px;\n }\n"])), spacingM);
|
|
134617
134771
|
|
|
134618
134772
|
var StyledNewArticleButton = _styled(NewArticleButton).withConfig({
|
|
134619
134773
|
displayName: "NewsEditorDashboard__StyledNewArticleButton",
|
|
134620
134774
|
componentId: "sc-vv9dzu-4"
|
|
134621
|
-
})(templateObject_6 || (templateObject_6 = __makeTemplateObject$l(["\n margin-bottom: ", "px;\n align-self: flex-start;\n"], ["\n margin-bottom: ", "px;\n align-self: flex-start;\n"])), spacingXs);
|
|
134775
|
+
})(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject$l(["\n margin-bottom: ", "px;\n align-self: flex-start;\n"], ["\n margin-bottom: ", "px;\n align-self: flex-start;\n"])), spacingXs);
|
|
134622
134776
|
|
|
134623
|
-
var templateObject_1$
|
|
134777
|
+
var templateObject_1$4, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1, templateObject_6$1;
|
|
134624
134778
|
|
|
134625
134779
|
// NOTE: This component exists in this project and not in the ui/common/toolbar because it uses DetailViewContext placed in feature/content/
|
|
134626
134780
|
// Also a generic component `ToolbarLanguageSelector` in ui/common/toolbar complicates the flow and requires some code duplication
|
|
@@ -134661,9 +134815,9 @@ var ToolbarNewsLanguageSelector = function ToolbarNewsLanguageSelector(_a) {
|
|
|
134661
134815
|
var LanguageMenuButton = _styled(LanguageSelector).withConfig({
|
|
134662
134816
|
displayName: "ToolbarNewsLanguageSelector__LanguageMenuButton",
|
|
134663
134817
|
componentId: "sc-1xe5l19-0"
|
|
134664
|
-
})(templateObject_1$
|
|
134818
|
+
})(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject$l(["\n && {\n i {\n font-size: ", "px;\n }\n }\n"], ["\n && {\n i {\n font-size: ", "px;\n }\n }\n"])), fontSizeNormal);
|
|
134665
134819
|
|
|
134666
|
-
var templateObject_1$
|
|
134820
|
+
var templateObject_1$3;
|
|
134667
134821
|
|
|
134668
134822
|
var ToolbarManageNewsItemButton = function ToolbarManageNewsItemButton(_a) {
|
|
134669
134823
|
var onClick = _a.onClick;
|
|
@@ -134759,7 +134913,7 @@ var NewsDetailPreview = function NewsDetailPreview(_a) {
|
|
|
134759
134913
|
}
|
|
134760
134914
|
|
|
134761
134915
|
if (!itemContext) {
|
|
134762
|
-
return jsx$1(Host, __assign$g({
|
|
134916
|
+
return jsx$1(Host$2, __assign$g({
|
|
134763
134917
|
className: className
|
|
134764
134918
|
}, {
|
|
134765
134919
|
children: jsx$1(NewsItemPreviewContextProvider, __assign$g({
|
|
@@ -134771,7 +134925,7 @@ var NewsDetailPreview = function NewsDetailPreview(_a) {
|
|
|
134771
134925
|
}), void 0);
|
|
134772
134926
|
}
|
|
134773
134927
|
|
|
134774
|
-
return jsx$1(Host, __assign$g({
|
|
134928
|
+
return jsx$1(Host$2, __assign$g({
|
|
134775
134929
|
className: className
|
|
134776
134930
|
}, {
|
|
134777
134931
|
children: jsx$1(NewsDetailPreviewInternal, {}, void 0)
|
|
@@ -134786,11 +134940,327 @@ var NewsDetailPreviewInternal = function NewsDetailPreviewInternal() {
|
|
|
134786
134940
|
}), void 0);
|
|
134787
134941
|
};
|
|
134788
134942
|
|
|
134789
|
-
var Host = _styled.div.withConfig({
|
|
134943
|
+
var Host$2 = _styled.div.withConfig({
|
|
134790
134944
|
displayName: "NewsDetailPreview__Host",
|
|
134791
134945
|
componentId: "sc-17gmqax-0"
|
|
134792
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject$l([""], [""])));
|
|
134946
|
+
})(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject$l([""], [""])));
|
|
134947
|
+
|
|
134948
|
+
var templateObject_1$2;
|
|
134949
|
+
|
|
134950
|
+
var FilterContext = /*#__PURE__*/createContext(null);
|
|
134951
|
+
var FilterContextProvider = function FilterContextProvider(_a) {
|
|
134952
|
+
var filter = _a.filter,
|
|
134953
|
+
onChange = _a.onChange,
|
|
134954
|
+
children = _a.children;
|
|
134955
|
+
return jsx$1(FilterContext.Provider, __assign$g({
|
|
134956
|
+
value: {
|
|
134957
|
+
filter: filter,
|
|
134958
|
+
onChange: onChange
|
|
134959
|
+
}
|
|
134960
|
+
}, {
|
|
134961
|
+
children: children
|
|
134962
|
+
}), void 0);
|
|
134963
|
+
};
|
|
134964
|
+
|
|
134965
|
+
var ToolbarFilterPanel = function ToolbarFilterPanel(_a) {
|
|
134966
|
+
var filter = _a.filter,
|
|
134967
|
+
onChange = _a.onChange,
|
|
134968
|
+
children = _a.children;
|
|
134969
|
+
return jsx$1(FilterContextProvider, __assign$g({
|
|
134970
|
+
filter: filter,
|
|
134971
|
+
onChange: onChange
|
|
134972
|
+
}, {
|
|
134973
|
+
children: jsx$1(Host$1, {
|
|
134974
|
+
children: children
|
|
134975
|
+
}, void 0)
|
|
134976
|
+
}), void 0);
|
|
134977
|
+
};
|
|
134978
|
+
|
|
134979
|
+
var Host$1 = _styled.div.withConfig({
|
|
134980
|
+
displayName: "ToolbarFilterPanel__Host",
|
|
134981
|
+
componentId: "sc-118p488-0"
|
|
134982
|
+
})(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject$l([""], [""])));
|
|
134983
|
+
|
|
134984
|
+
var templateObject_1$1;
|
|
134985
|
+
|
|
134986
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
134987
|
+
var isRegExp = isRegexp$1;
|
|
134988
|
+
var anObject = anObject$v;
|
|
134989
|
+
var requireObjectCoercible = requireObjectCoercible$m;
|
|
134990
|
+
var speciesConstructor = speciesConstructor$9;
|
|
134991
|
+
var advanceStringIndex = advanceStringIndex$2;
|
|
134992
|
+
var toLength = toLength$l;
|
|
134993
|
+
var callRegExpExec = regexpExecAbstract;
|
|
134994
|
+
var regexpExec = regexpExec$3;
|
|
134995
|
+
var fails = fails$w;
|
|
134996
|
+
|
|
134997
|
+
var arrayPush = [].push;
|
|
134998
|
+
var min = Math.min;
|
|
134999
|
+
var MAX_UINT32 = 0xFFFFFFFF;
|
|
135000
|
+
|
|
135001
|
+
// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
|
|
135002
|
+
var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
|
|
135003
|
+
|
|
135004
|
+
// @@split logic
|
|
135005
|
+
fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
|
|
135006
|
+
var internalSplit;
|
|
135007
|
+
if (
|
|
135008
|
+
'abbc'.split(/(b)*/)[1] == 'c' ||
|
|
135009
|
+
'test'.split(/(?:)/, -1).length != 4 ||
|
|
135010
|
+
'ab'.split(/(?:ab)*/).length != 2 ||
|
|
135011
|
+
'.'.split(/(.?)(.?)/).length != 4 ||
|
|
135012
|
+
'.'.split(/()()/).length > 1 ||
|
|
135013
|
+
''.split(/.?/).length
|
|
135014
|
+
) {
|
|
135015
|
+
// based on es5-shim implementation, need to rework it
|
|
135016
|
+
internalSplit = function (separator, limit) {
|
|
135017
|
+
var string = String(requireObjectCoercible(this));
|
|
135018
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
135019
|
+
if (lim === 0) return [];
|
|
135020
|
+
if (separator === undefined) return [string];
|
|
135021
|
+
// If `separator` is not a regex, use native split
|
|
135022
|
+
if (!isRegExp(separator)) {
|
|
135023
|
+
return nativeSplit.call(string, separator, lim);
|
|
135024
|
+
}
|
|
135025
|
+
var output = [];
|
|
135026
|
+
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
135027
|
+
(separator.multiline ? 'm' : '') +
|
|
135028
|
+
(separator.unicode ? 'u' : '') +
|
|
135029
|
+
(separator.sticky ? 'y' : '');
|
|
135030
|
+
var lastLastIndex = 0;
|
|
135031
|
+
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
135032
|
+
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
135033
|
+
var match, lastIndex, lastLength;
|
|
135034
|
+
while (match = regexpExec.call(separatorCopy, string)) {
|
|
135035
|
+
lastIndex = separatorCopy.lastIndex;
|
|
135036
|
+
if (lastIndex > lastLastIndex) {
|
|
135037
|
+
output.push(string.slice(lastLastIndex, match.index));
|
|
135038
|
+
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
|
|
135039
|
+
lastLength = match[0].length;
|
|
135040
|
+
lastLastIndex = lastIndex;
|
|
135041
|
+
if (output.length >= lim) break;
|
|
135042
|
+
}
|
|
135043
|
+
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
135044
|
+
}
|
|
135045
|
+
if (lastLastIndex === string.length) {
|
|
135046
|
+
if (lastLength || !separatorCopy.test('')) output.push('');
|
|
135047
|
+
} else output.push(string.slice(lastLastIndex));
|
|
135048
|
+
return output.length > lim ? output.slice(0, lim) : output;
|
|
135049
|
+
};
|
|
135050
|
+
// Chakra, V8
|
|
135051
|
+
} else if ('0'.split(undefined, 0).length) {
|
|
135052
|
+
internalSplit = function (separator, limit) {
|
|
135053
|
+
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
|
|
135054
|
+
};
|
|
135055
|
+
} else internalSplit = nativeSplit;
|
|
135056
|
+
|
|
135057
|
+
return [
|
|
135058
|
+
// `String.prototype.split` method
|
|
135059
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.split
|
|
135060
|
+
function split(separator, limit) {
|
|
135061
|
+
var O = requireObjectCoercible(this);
|
|
135062
|
+
var splitter = separator == undefined ? undefined : separator[SPLIT];
|
|
135063
|
+
return splitter !== undefined
|
|
135064
|
+
? splitter.call(separator, O, limit)
|
|
135065
|
+
: internalSplit.call(String(O), separator, limit);
|
|
135066
|
+
},
|
|
135067
|
+
// `RegExp.prototype[@@split]` method
|
|
135068
|
+
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
|
|
135069
|
+
//
|
|
135070
|
+
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
135071
|
+
// the 'y' flag.
|
|
135072
|
+
function (regexp, limit) {
|
|
135073
|
+
var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
|
|
135074
|
+
if (res.done) return res.value;
|
|
134793
135075
|
|
|
134794
|
-
var
|
|
135076
|
+
var rx = anObject(regexp);
|
|
135077
|
+
var S = String(this);
|
|
135078
|
+
var C = speciesConstructor(rx, RegExp);
|
|
135079
|
+
|
|
135080
|
+
var unicodeMatching = rx.unicode;
|
|
135081
|
+
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
135082
|
+
(rx.multiline ? 'm' : '') +
|
|
135083
|
+
(rx.unicode ? 'u' : '') +
|
|
135084
|
+
(SUPPORTS_Y ? 'y' : 'g');
|
|
134795
135085
|
|
|
134796
|
-
|
|
135086
|
+
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
135087
|
+
// simulate the 'y' flag.
|
|
135088
|
+
var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
|
|
135089
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
135090
|
+
if (lim === 0) return [];
|
|
135091
|
+
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
|
135092
|
+
var p = 0;
|
|
135093
|
+
var q = 0;
|
|
135094
|
+
var A = [];
|
|
135095
|
+
while (q < S.length) {
|
|
135096
|
+
splitter.lastIndex = SUPPORTS_Y ? q : 0;
|
|
135097
|
+
var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
|
|
135098
|
+
var e;
|
|
135099
|
+
if (
|
|
135100
|
+
z === null ||
|
|
135101
|
+
(e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
|
|
135102
|
+
) {
|
|
135103
|
+
q = advanceStringIndex(S, q, unicodeMatching);
|
|
135104
|
+
} else {
|
|
135105
|
+
A.push(S.slice(p, q));
|
|
135106
|
+
if (A.length === lim) return A;
|
|
135107
|
+
for (var i = 1; i <= z.length - 1; i++) {
|
|
135108
|
+
A.push(z[i]);
|
|
135109
|
+
if (A.length === lim) return A;
|
|
135110
|
+
}
|
|
135111
|
+
q = p = e;
|
|
135112
|
+
}
|
|
135113
|
+
}
|
|
135114
|
+
A.push(S.slice(p));
|
|
135115
|
+
return A;
|
|
135116
|
+
}
|
|
135117
|
+
];
|
|
135118
|
+
}, !SUPPORTS_Y);
|
|
135119
|
+
|
|
135120
|
+
var ChannelFilter = function ChannelFilter(_a) {
|
|
135121
|
+
var _b;
|
|
135122
|
+
|
|
135123
|
+
var channels = _a.channels;
|
|
135124
|
+
var channelRef = useRef$1();
|
|
135125
|
+
var user = useCurrentUser();
|
|
135126
|
+
var formatMessage = useIntl().formatMessage;
|
|
135127
|
+
var allChannels = useContext(LazySubscriptionContext).channels;
|
|
135128
|
+
|
|
135129
|
+
var _c = useContext(FilterContext),
|
|
135130
|
+
filter = _c.filter,
|
|
135131
|
+
onChange = _c.onChange;
|
|
135132
|
+
|
|
135133
|
+
var _d = useState$2(false),
|
|
135134
|
+
showChannels = _d[0],
|
|
135135
|
+
setShowChannels = _d[1];
|
|
135136
|
+
|
|
135137
|
+
var availableChannels = (_b = channels === null || channels === void 0 ? void 0 : channels.map(function (c) {
|
|
135138
|
+
return allChannels.find(function (channel) {
|
|
135139
|
+
return channel.name === c;
|
|
135140
|
+
});
|
|
135141
|
+
}).filter(function (c) {
|
|
135142
|
+
return !!c;
|
|
135143
|
+
})) !== null && _b !== void 0 ? _b : allChannels;
|
|
135144
|
+
var channelsFromFilter = getChannelsFromFilter();
|
|
135145
|
+
return jsxs("div", __assign$g({
|
|
135146
|
+
ref: channelRef
|
|
135147
|
+
}, {
|
|
135148
|
+
children: [jsx$1(ChannelsButton, __assign$g({
|
|
135149
|
+
iconProps: {
|
|
135150
|
+
iconName: showChannels ? 'ChevronUp' : 'ChevronDown'
|
|
135151
|
+
},
|
|
135152
|
+
text: !channelsFromFilter.length ? formatMessage({
|
|
135153
|
+
id: 'FilterPanel.channels'
|
|
135154
|
+
}) : null,
|
|
135155
|
+
onClick: function () {
|
|
135156
|
+
return setShowChannels(!showChannels);
|
|
135157
|
+
}
|
|
135158
|
+
}, {
|
|
135159
|
+
children: channelsFromFilter.length > 0 && jsxs(SelectedChannelsLabel, {
|
|
135160
|
+
children: [jsx$1(ChannelTitle, {
|
|
135161
|
+
channel: channelsFromFilter[0],
|
|
135162
|
+
language: user.preferredUiLanguage
|
|
135163
|
+
}, void 0), ' ', channelsFromFilter.length > 1 && "(+" + (channelsFromFilter.length - 1) + ")"]
|
|
135164
|
+
}, void 0)
|
|
135165
|
+
}), void 0), showChannels && jsx$1(Callout, __assign$g({
|
|
135166
|
+
target: channelRef.current,
|
|
135167
|
+
onDismiss: function () {
|
|
135168
|
+
return setShowChannels(false);
|
|
135169
|
+
},
|
|
135170
|
+
isBeakVisible: false,
|
|
135171
|
+
calloutWidth: 240,
|
|
135172
|
+
styles: {
|
|
135173
|
+
calloutMain: {
|
|
135174
|
+
padding: spacingM
|
|
135175
|
+
}
|
|
135176
|
+
}
|
|
135177
|
+
}, {
|
|
135178
|
+
children: jsxs(Host, {
|
|
135179
|
+
children: [jsx$1(Channels, {
|
|
135180
|
+
children: availableChannels.map(function (c) {
|
|
135181
|
+
var checked = isChannelSelected(c);
|
|
135182
|
+
return jsx$1(StyledCheckbox, {
|
|
135183
|
+
onRenderLabel: function () {
|
|
135184
|
+
return jsx$1(ChannelTitle, {
|
|
135185
|
+
channel: c,
|
|
135186
|
+
language: user.preferredUiLanguage
|
|
135187
|
+
}, void 0);
|
|
135188
|
+
},
|
|
135189
|
+
onChange: function (_e, isChecked) {
|
|
135190
|
+
return handleChange(isChecked, c);
|
|
135191
|
+
},
|
|
135192
|
+
checked: checked
|
|
135193
|
+
}, c.id);
|
|
135194
|
+
})
|
|
135195
|
+
}, void 0), jsx$1(ClearFilterButton, {
|
|
135196
|
+
text: "Clear filter",
|
|
135197
|
+
iconProps: {
|
|
135198
|
+
iconName: 'ClearFilter'
|
|
135199
|
+
},
|
|
135200
|
+
onClick: handleClearFilter
|
|
135201
|
+
}, void 0)]
|
|
135202
|
+
}, void 0)
|
|
135203
|
+
}), void 0)]
|
|
135204
|
+
}), void 0);
|
|
135205
|
+
|
|
135206
|
+
function getChannelsFromFilter() {
|
|
135207
|
+
return ((filter === null || filter === void 0 ? void 0 : filter.channels) || '').split(',').filter(function (s) {
|
|
135208
|
+
return s && s.length > 0;
|
|
135209
|
+
});
|
|
135210
|
+
}
|
|
135211
|
+
|
|
135212
|
+
function handleChange(checked, channel) {
|
|
135213
|
+
var newChannels = checked ? __spreadArray$8(__spreadArray$8([], channelsFromFilter), [channel.name]) : channelsFromFilter.filter(function (c) {
|
|
135214
|
+
return c !== channel.name;
|
|
135215
|
+
});
|
|
135216
|
+
onChange(__assign$g(__assign$g({}, filter), {
|
|
135217
|
+
channels: newChannels.join(',')
|
|
135218
|
+
}));
|
|
135219
|
+
}
|
|
135220
|
+
|
|
135221
|
+
function handleClearFilter() {
|
|
135222
|
+
onChange(__assign$g(__assign$g({}, filter), {
|
|
135223
|
+
channels: null
|
|
135224
|
+
}));
|
|
135225
|
+
}
|
|
135226
|
+
|
|
135227
|
+
function isChannelSelected(channel) {
|
|
135228
|
+
return channelsFromFilter.findIndex(function (c) {
|
|
135229
|
+
return c === channel.name;
|
|
135230
|
+
}) > -1;
|
|
135231
|
+
}
|
|
135232
|
+
};
|
|
135233
|
+
|
|
135234
|
+
var Host = _styled.div.withConfig({
|
|
135235
|
+
displayName: "ChannelFilter__Host",
|
|
135236
|
+
componentId: "sc-1ju8xwz-0"
|
|
135237
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject$l(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
135238
|
+
|
|
135239
|
+
var ChannelsButton = _styled(ActionButton).withConfig({
|
|
135240
|
+
displayName: "ChannelFilter__ChannelsButton",
|
|
135241
|
+
componentId: "sc-1ju8xwz-1"
|
|
135242
|
+
})(templateObject_2 || (templateObject_2 = __makeTemplateObject$l(["\n i {\n order: 1;\n }\n"], ["\n i {\n order: 1;\n }\n"])));
|
|
135243
|
+
|
|
135244
|
+
var SelectedChannelsLabel = _styled.span.withConfig({
|
|
135245
|
+
displayName: "ChannelFilter__SelectedChannelsLabel",
|
|
135246
|
+
componentId: "sc-1ju8xwz-2"
|
|
135247
|
+
})(templateObject_3 || (templateObject_3 = __makeTemplateObject$l(["\n font-weight: bold;\n"], ["\n font-weight: bold;\n"])));
|
|
135248
|
+
|
|
135249
|
+
var Channels = _styled.div.withConfig({
|
|
135250
|
+
displayName: "ChannelFilter__Channels",
|
|
135251
|
+
componentId: "sc-1ju8xwz-3"
|
|
135252
|
+
})(templateObject_4 || (templateObject_4 = __makeTemplateObject$l(["\n margin-bottom: ", "px;\n"], ["\n margin-bottom: ", "px;\n"])), spacingM);
|
|
135253
|
+
|
|
135254
|
+
var StyledCheckbox = _styled(Checkbox).withConfig({
|
|
135255
|
+
displayName: "ChannelFilter__StyledCheckbox",
|
|
135256
|
+
componentId: "sc-1ju8xwz-4"
|
|
135257
|
+
})(templateObject_5 || (templateObject_5 = __makeTemplateObject$l(["\n padding: ", "px 0;\n\n &:first-child {\n padding-top: 0;\n }\n\n &:last-child {\n padding-bottom: 0;\n }\n"], ["\n padding: ", "px 0;\n\n &:first-child {\n padding-top: 0;\n }\n\n &:last-child {\n padding-bottom: 0;\n }\n"])), spacingS - 2);
|
|
135258
|
+
|
|
135259
|
+
var ClearFilterButton = _styled(DefaultButton).withConfig({
|
|
135260
|
+
displayName: "ChannelFilter__ClearFilterButton",
|
|
135261
|
+
componentId: "sc-1ju8xwz-5"
|
|
135262
|
+
})(templateObject_6 || (templateObject_6 = __makeTemplateObject$l(["\n margin-left: auto;\n\n .ms-Button-label {\n font-weight: normal;\n }\n"], ["\n margin-left: auto;\n\n .ms-Button-label {\n font-weight: normal;\n }\n"])));
|
|
135263
|
+
|
|
135264
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
135265
|
+
|
|
135266
|
+
export { Avatar as A, ChannelFilter as C, EventDetail as E, ItemLayoutMode as I, ManageChannels as M, NewsDetail as N, PropTypes$2 as P, ReachContextProvider as R, ThemeContext$1 as T, UserDetails as U, _assertThisInitialized$b as _, commonjsGlobal$7 as a, _setPrototypeOf$6 as b, commonjsRequire as c, _defineProperty$p as d, _extends$9 as e, minScreenSize as f, PageDetail as g, NewsList as h, NewsGrid as i, useCurrentUser as j, NewsHero as k, NewsEditorDashboard as l, moment$1 as m, Toolbar$1 as n, ToolbarIconButton as o, ToolbarChannelSelector as p, ToolbarMarkAllEventsAsReadButton as q, ToolbarMarkAllNewsAsReadButton as r, ToolbarCloseButton as s, NewsItemContextProvider as t, useWindowSize$2 as u, ToolbarNewsLanguageSelector as v, ToolbarManageNewsItemButton as w, NewsDetailPreview as x, NewsItemPreviewContextProvider as y, ToolbarFilterPanel as z };
|