@livetiles/reach-components-react 0.4.0-preview.255 → 0.4.0-preview.256
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/FilterContext.d.ts +1 -1
- package/KeywordsFilter.d.ts +4 -1
- package/da.async.esm.esm.js +1 -1
- package/de.async.esm.esm.js +1 -1
- package/es.async.esm.esm.js +1 -1
- package/fr.async.esm.esm.js +1 -1
- package/index.d.ts +5 -2
- package/index.esm.js +1 -1
- package/index.esm2.js +94 -65
- package/index.umd.js +103 -73
- package/it.async.esm.esm.js +1 -1
- package/ja.async.esm.esm.js +1 -1
- package/package.json +1 -1
- package/tr.async.esm.esm.js +1 -1
- package/zh-CN.async.esm.esm.js +1 -1
- package/zh-TW.async.esm.esm.js +1 -1
package/index.esm2.js
CHANGED
|
@@ -83881,8 +83881,8 @@ _styled(Toolbar$1).withConfig({
|
|
|
83881
83881
|
componentId: "sc-1vovywb-0"
|
|
83882
83882
|
})(templateObject_1$n$2 || (templateObject_1$n$2 = __makeTemplateObject$1(["\n margin-bottom: ", "px;\n"], ["\n margin-bottom: ", "px;\n"])), spacingM);
|
|
83883
83883
|
|
|
83884
|
-
createGlobalStyle(templateObject_2$i$
|
|
83885
|
-
var templateObject_1$n$2, templateObject_2$i$
|
|
83884
|
+
createGlobalStyle(templateObject_2$i$2 || (templateObject_2$i$2 = __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);
|
|
83885
|
+
var templateObject_1$n$2, templateObject_2$i$2; // todo: Apply this to all pages and make sure it works in IE
|
|
83886
83886
|
|
|
83887
83887
|
_styled.p.withConfig({
|
|
83888
83888
|
displayName: "PageDescription",
|
|
@@ -87501,9 +87501,9 @@ var AuthenticationContextProvider = function AuthenticationContextProvider(_a) {
|
|
|
87501
87501
|
}), void 0);
|
|
87502
87502
|
};
|
|
87503
87503
|
|
|
87504
|
-
var version$1 = "0.4.0-preview.
|
|
87505
|
-
var buildId = "
|
|
87506
|
-
var commitId = "
|
|
87504
|
+
var version$1 = "0.4.0-preview.256";
|
|
87505
|
+
var buildId = "99547";
|
|
87506
|
+
var commitId = "8c338ee84e3ed356fec26c98532e6eaa22592550";
|
|
87507
87507
|
var isCustomerBuild = false;
|
|
87508
87508
|
var buildInfo = {
|
|
87509
87509
|
version: version$1,
|
|
@@ -131893,7 +131893,7 @@ if(!triggerEvenIfUnchanged&&(!newDate&&!props.date||newDate&&newDate.isSame(prop
|
|
|
131893
131893
|
props.onChanged(newDate.toISOString(),validationResult.isInRange);}function handleDateChange(newDate){if(timeField.current){// note: focus event is ignored/not propagated without setTimeout
|
|
131894
131894
|
setTimeout(function(){return timeField.current.focus();},0);}if(!newDate){handleChange(null);}else {// include the current time component when triggering a change.
|
|
131895
131895
|
// newDate is only a Date without time.
|
|
131896
|
-
var newDateOnly=moment(newDate);var timeInMilliseconds=0;if(props.date){var oldDateWithTime=moment(props.date);timeInMilliseconds=oldDateWithTime.diff(oldDateWithTime.clone().startOf('day'));}handleChange(newDateOnly.startOf('day').add(timeInMilliseconds,'ms'));}}function handleTimeBlur(timeString){var newTime=timeString||'00:00';var initialTime=getTime(props.date);if(newTime===initialTime){return;}setTimeHasFocus(false);var timeToday=moment(newTime,'HH:mm');if(!timeToday.isValid()){setTimeErrorMessageResourceKey('DateTimePicker.invalidTime');return;}setTime(timeToday.format('HH:mm'));if(props.date==null){handleChange(timeToday);}else {var timeInMilliseconds=timeToday.diff(moment().startOf('day'));var newValue=moment(props.date).startOf('day').add(timeInMilliseconds,'ms');handleChange(newValue);}}function setTimeError(result){if(result.isInRange||!result.isSameDay){setTimeErrorMessageResourceKey(null);return;}setTimeErrorMessageResourceKey(props.timeValidationResourceKey||props.dateValidationResourceKey);}function isDateTimeInRange(newValue){if(!newValue||!props.minDate&&!props.maxDate){return {isInRange:true,isSameDay:true};}return {isInRange:(!props.minDate||moment(props.minDate).unix()<newValue.unix())&&(!props.maxDate||newValue.unix()<moment(props.maxDate).unix()),isSameDay:isSameDay(newValue,props.minDate||props.maxDate)};}function isSameDay(momentDateTime,otherTime){return momentDateTime&&otherTime&&momentDateTime.isSame(otherTime,'day');}};var IEButtonFix=createGlobalStyle(templateObject_1$r$1||(templateObject_1$r$1=__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"])));var GlobalDatePickerStyle=createGlobalStyle(templateObject_2$l||(templateObject_2$l=__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;});var Host$a$1=_styled.div.withConfig({displayName:"DateTimePicker__Host",componentId:"sc-zzs3p0-0"})(templateObject_3$f||(templateObject_3$f=__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$r$1,templateObject_2$l,templateObject_3$f;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$q$1||(templateObject_1$q$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$k||(templateObject_2$k=__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$e$1||(templateObject_3$e$1=__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$q$1,templateObject_2$k,templateObject_3$e$1;_styled(IconButton).withConfig({displayName:"ExternalNewsLinkButton__StyledIconButton",componentId:"sc-txzoyq-0"})(templateObject_1$p$1||(templateObject_1$p$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$p$1;_styled.div.withConfig({displayName:"CardStyles__Host",componentId:"sc-ovm8js-0"})(templateObject_1$o$1||(templateObject_1$o$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$j||(templateObject_2$j=__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$o$1,templateObject_2$j;_styled.p.withConfig({displayName:"NewsCard__Headline",componentId:"sc-rf9b9y-0"})(templateObject_1$n$1||(templateObject_1$n$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$i||(templateObject_2$i=__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$d$1||(templateObject_3$d$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$n$1,templateObject_2$i,templateObject_3$d$1,templateObject_4$8$1,templateObject_5$7$1;_styled.div.withConfig({displayName:"EmptyChannelsView__Host",componentId:"sc-b5s0oy-0"})(templateObject_1$m$1||(templateObject_1$m$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$h$1||(templateObject_2$h$1=__makeTemplateObject(["\n font-size: 100px;\n padding: 30px 0;\n"],["\n font-size: 100px;\n padding: 30px 0;\n"])));var templateObject_1$m$1,templateObject_2$h$1;_styled.div.withConfig({displayName:"PromotedNewsItem__Host",componentId:"sc-drndfq-0"})(templateObject_1$l$1||(templateObject_1$l$1=__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__Alert",componentId:"sc-drndfq-1"})(templateObject_2$g$1||(templateObject_2$g$1=__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$c$1||(templateObject_3$c$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$l$1,templateObject_2$g$1,templateObject_3$c$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=Math.min;var CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic('endsWith');// https://github.com/zloirock/core-js/pull/702
|
|
131896
|
+
var newDateOnly=moment(newDate);var timeInMilliseconds=0;if(props.date){var oldDateWithTime=moment(props.date);timeInMilliseconds=oldDateWithTime.diff(oldDateWithTime.clone().startOf('day'));}handleChange(newDateOnly.startOf('day').add(timeInMilliseconds,'ms'));}}function handleTimeBlur(timeString){var newTime=timeString||'00:00';var initialTime=getTime(props.date);if(newTime===initialTime){return;}setTimeHasFocus(false);var timeToday=moment(newTime,'HH:mm');if(!timeToday.isValid()){setTimeErrorMessageResourceKey('DateTimePicker.invalidTime');return;}setTime(timeToday.format('HH:mm'));if(props.date==null){handleChange(timeToday);}else {var timeInMilliseconds=timeToday.diff(moment().startOf('day'));var newValue=moment(props.date).startOf('day').add(timeInMilliseconds,'ms');handleChange(newValue);}}function setTimeError(result){if(result.isInRange||!result.isSameDay){setTimeErrorMessageResourceKey(null);return;}setTimeErrorMessageResourceKey(props.timeValidationResourceKey||props.dateValidationResourceKey);}function isDateTimeInRange(newValue){if(!newValue||!props.minDate&&!props.maxDate){return {isInRange:true,isSameDay:true};}return {isInRange:(!props.minDate||moment(props.minDate).unix()<newValue.unix())&&(!props.maxDate||newValue.unix()<moment(props.maxDate).unix()),isSameDay:isSameDay(newValue,props.minDate||props.maxDate)};}function isSameDay(momentDateTime,otherTime){return momentDateTime&&otherTime&&momentDateTime.isSame(otherTime,'day');}};var IEButtonFix=createGlobalStyle(templateObject_1$r$1||(templateObject_1$r$1=__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"])));var GlobalDatePickerStyle=createGlobalStyle(templateObject_2$l||(templateObject_2$l=__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;});var Host$a$1=_styled.div.withConfig({displayName:"DateTimePicker__Host",componentId:"sc-zzs3p0-0"})(templateObject_3$f||(templateObject_3$f=__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$r$1,templateObject_2$l,templateObject_3$f;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$q$1||(templateObject_1$q$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$k||(templateObject_2$k=__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$e$1||(templateObject_3$e$1=__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$q$1,templateObject_2$k,templateObject_3$e$1;_styled(IconButton).withConfig({displayName:"ExternalNewsLinkButton__StyledIconButton",componentId:"sc-txzoyq-0"})(templateObject_1$p$1||(templateObject_1$p$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$p$1;_styled.div.withConfig({displayName:"CardStyles__Host",componentId:"sc-ovm8js-0"})(templateObject_1$o$1||(templateObject_1$o$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$j||(templateObject_2$j=__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$o$1,templateObject_2$j;_styled.p.withConfig({displayName:"NewsCard__Headline",componentId:"sc-rf9b9y-0"})(templateObject_1$n$1||(templateObject_1$n$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$i$1||(templateObject_2$i$1=__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$d$1||(templateObject_3$d$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$n$1,templateObject_2$i$1,templateObject_3$d$1,templateObject_4$8$1,templateObject_5$7$1;_styled.div.withConfig({displayName:"EmptyChannelsView__Host",componentId:"sc-b5s0oy-0"})(templateObject_1$m$1||(templateObject_1$m$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$h$1||(templateObject_2$h$1=__makeTemplateObject(["\n font-size: 100px;\n padding: 30px 0;\n"],["\n font-size: 100px;\n padding: 30px 0;\n"])));var templateObject_1$m$1,templateObject_2$h$1;_styled.div.withConfig({displayName:"PromotedNewsItem__Host",componentId:"sc-drndfq-0"})(templateObject_1$l$1||(templateObject_1$l$1=__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"])));_styled.div.withConfig({displayName:"PromotedNewsItem__Alert",componentId:"sc-drndfq-1"})(templateObject_2$g$1||(templateObject_2$g$1=__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$c$1||(templateObject_3$c$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$l$1,templateObject_2$g$1,templateObject_3$c$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=Math.min;var CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic('endsWith');// https://github.com/zloirock/core-js/pull/702
|
|
131897
131897
|
var MDN_POLYFILL_BUG=!CORRECT_IS_REGEXP_LOGIC&&!!function(){var descriptor=getOwnPropertyDescriptor(String.prototype,'endsWith');return descriptor&&!descriptor.writable;}();// `String.prototype.endsWith` method
|
|
131898
131898
|
// https://tc39.github.io/ecma262/#sec-string.prototype.endswith
|
|
131899
131899
|
$$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$f$1||(templateObject_2$f$1=__makeTemplateObject(["\n ","\n"],["\n ","\n"])),function(p){return p.highlight&&css$2(templateObject_1$k$1||(templateObject_1$k$1=__makeTemplateObject(["\n background-color: yellow;\n "],["\n background-color: yellow;\n "])));});function tryGetHighlight(highlights,preferredLanguage){var _a;if(!highlights){return null;}return (_a=tryGetAllHighlights(highlights,preferredLanguage))===null||_a===void 0?void 0:_a[0];}function tryGetAllHighlights(highlights,preferredLanguage){if(!highlights){return null;}var preferredHighlights=highlights.filter(function(h){return h.language===preferredLanguage;});if(preferredHighlights.length){return preferredHighlights;}var firstHighlight=highlights[0];return highlights.filter(function(h){return h.language===firstHighlight.language;});}var templateObject_1$k$1,templateObject_2$f$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=tryGetHighlight((_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$j$1||(templateObject_1$j$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$e$1||(templateObject_2$e$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$b$1||(templateObject_3$b$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$j$1,templateObject_2$e$1,templateObject_3$b$1;_styled.div.withConfig({displayName:"PageCard__PageModifiedInfo",componentId:"sc-13xtreq-0"})(templateObject_1$i$1||(templateObject_1$i$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$d$1||(templateObject_2$d$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$a$1||(templateObject_3$a$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$i$1,templateObject_2$d$1,templateObject_3$a$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$h$1||(templateObject_1$h$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$c$1||(templateObject_2$c$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$9$1||(templateObject_3$9$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$h$1,templateObject_2$c$1,templateObject_3$9$1,templateObject_4$5$1;_styled.div.withConfig({displayName:"PageListItem__Host",componentId:"sc-lz5d51-0"})(templateObject_1$g$1||(templateObject_1$g$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$b$1||(templateObject_2$b$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$8$1||(templateObject_3$8$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$g$1,templateObject_2$b$1,templateObject_3$8$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
|
|
@@ -132475,10 +132475,10 @@ var PageTableOfContents = function PageTableOfContents(_a) {
|
|
|
132475
132475
|
}, void 0);
|
|
132476
132476
|
};
|
|
132477
132477
|
var Host$g = _styled.div(templateObject_1$s || (templateObject_1$s = __makeTemplateObject$l(["\n && {\n margin-top: ", "px;\n }\n"], ["\n && {\n margin-top: ", "px;\n }\n"])), spacingXs);
|
|
132478
|
-
var PageTableOfContentsButton = _styled(IconButton$1)(templateObject_2$
|
|
132478
|
+
var PageTableOfContentsButton = _styled(IconButton$1)(templateObject_2$i || (templateObject_2$i = __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) {
|
|
132479
132479
|
return p.theme.textColors.default;
|
|
132480
132480
|
});
|
|
132481
|
-
var templateObject_1$s, templateObject_2$
|
|
132481
|
+
var templateObject_1$s, templateObject_2$i;
|
|
132482
132482
|
|
|
132483
132483
|
var PageDetail = function PageDetail(props) {
|
|
132484
132484
|
var routeMatch = useRouteMatch();
|
|
@@ -132577,7 +132577,7 @@ var Host$f = _styled.div.withConfig({
|
|
|
132577
132577
|
var PageHeader = _styled.div.withConfig({
|
|
132578
132578
|
displayName: "PageDetail__PageHeader",
|
|
132579
132579
|
componentId: "sc-22rpk8-1"
|
|
132580
|
-
})(templateObject_2$
|
|
132580
|
+
})(templateObject_2$h || (templateObject_2$h = __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);
|
|
132581
132581
|
|
|
132582
132582
|
var ConsumerBreadcrumbWrapper = function ConsumerBreadcrumbWrapper() {
|
|
132583
132583
|
var item = useDetailViewContext().item;
|
|
@@ -132649,7 +132649,7 @@ var InlinePageListWrapper = function InlinePageListWrapper() {
|
|
|
132649
132649
|
return jsx$1(InlinePageList, {}, void 0);
|
|
132650
132650
|
};
|
|
132651
132651
|
|
|
132652
|
-
var templateObject_1$r, templateObject_2$
|
|
132652
|
+
var templateObject_1$r, templateObject_2$h, templateObject_3$e, templateObject_4$c, templateObject_5$9;
|
|
132653
132653
|
|
|
132654
132654
|
var EventDetail = function EventDetail(_a) {
|
|
132655
132655
|
var itemId = _a.itemId,
|
|
@@ -132722,7 +132722,7 @@ var Host$e = _styled.div.withConfig({
|
|
|
132722
132722
|
var EventDateAndRecurrenceInfo = _styled.div.withConfig({
|
|
132723
132723
|
displayName: "EventDetail__EventDateAndRecurrenceInfo",
|
|
132724
132724
|
componentId: "sc-hrm4yl-1"
|
|
132725
|
-
})(templateObject_2$
|
|
132725
|
+
})(templateObject_2$g || (templateObject_2$g = __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"])));
|
|
132726
132726
|
|
|
132727
132727
|
var DatesInfo = _styled(EventDetailViewDatesInfo).withConfig({
|
|
132728
132728
|
displayName: "EventDetail__DatesInfo",
|
|
@@ -132736,7 +132736,7 @@ var EventRecurrenceSeriesInfoLink = _styled.a.withConfig({
|
|
|
132736
132736
|
return p.theme.textColors.default;
|
|
132737
132737
|
}, spacingM);
|
|
132738
132738
|
|
|
132739
|
-
var templateObject_1$q, templateObject_2$
|
|
132739
|
+
var templateObject_1$q, templateObject_2$g, templateObject_3$d, templateObject_4$b;
|
|
132740
132740
|
|
|
132741
132741
|
function useNewsItemClickHandler() {
|
|
132742
132742
|
var user = useCurrentUserContext().user;
|
|
@@ -132947,7 +132947,7 @@ var Host$d = _styled.div.withConfig({
|
|
|
132947
132947
|
return p.theme.palette.white;
|
|
132948
132948
|
});
|
|
132949
132949
|
|
|
132950
|
-
var TextStyle = css$2(templateObject_2$
|
|
132950
|
+
var TextStyle = css$2(templateObject_2$f || (templateObject_2$f = __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);
|
|
132951
132951
|
|
|
132952
132952
|
var Inner$2 = _styled.div.withConfig({
|
|
132953
132953
|
displayName: "NewsCompactCard__Inner",
|
|
@@ -133041,7 +133041,7 @@ var BannerHost = _styled.div.withConfig({
|
|
|
133041
133041
|
});
|
|
133042
133042
|
});
|
|
133043
133043
|
|
|
133044
|
-
var templateObject_1$p, templateObject_2$
|
|
133044
|
+
var templateObject_1$p, templateObject_2$f, templateObject_3$c, templateObject_4$a, 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;
|
|
133045
133045
|
|
|
133046
133046
|
var EmptyNewsList = function EmptyNewsList() {
|
|
133047
133047
|
return jsxs(Host$c, {
|
|
@@ -133063,14 +133063,14 @@ var Host$c = _styled.div.withConfig({
|
|
|
133063
133063
|
var StyledIcon$3 = _styled(Icon).withConfig({
|
|
133064
133064
|
displayName: "EmptyNewsList__StyledIcon",
|
|
133065
133065
|
componentId: "sc-11ktr8s-1"
|
|
133066
|
-
})(templateObject_2$
|
|
133066
|
+
})(templateObject_2$e || (templateObject_2$e = __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);
|
|
133067
133067
|
|
|
133068
133068
|
var Message = _styled.p.withConfig({
|
|
133069
133069
|
displayName: "EmptyNewsList__Message",
|
|
133070
133070
|
componentId: "sc-11ktr8s-2"
|
|
133071
133071
|
})(templateObject_3$b || (templateObject_3$b = __makeTemplateObject$l(["\n text-align: center;\n padding: 0;\n margin: 0;\n"], ["\n text-align: center;\n padding: 0;\n margin: 0;\n"])));
|
|
133072
133072
|
|
|
133073
|
-
var templateObject_1$o, templateObject_2$
|
|
133073
|
+
var templateObject_1$o, templateObject_2$e, templateObject_3$b;
|
|
133074
133074
|
|
|
133075
133075
|
var ItemLayoutMode;
|
|
133076
133076
|
|
|
@@ -133242,7 +133242,7 @@ var Host$b = _styled.div.withConfig({
|
|
|
133242
133242
|
var CompactList = _styled.ul.withConfig({
|
|
133243
133243
|
displayName: "NewsList__CompactList",
|
|
133244
133244
|
componentId: "sc-1d0bzx1-1"
|
|
133245
|
-
})(templateObject_2$
|
|
133245
|
+
})(templateObject_2$d || (templateObject_2$d = __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);
|
|
133246
133246
|
|
|
133247
133247
|
var StyledNewsItemTile = _styled(NewsItemTile).withConfig({
|
|
133248
133248
|
displayName: "NewsList__StyledNewsItemTile",
|
|
@@ -133277,7 +133277,7 @@ var ErrorContainer$1 = _styled.p.withConfig({
|
|
|
133277
133277
|
return p.theme.palette.red;
|
|
133278
133278
|
}, spacingM);
|
|
133279
133279
|
|
|
133280
|
-
var templateObject_1$n, templateObject_2$
|
|
133280
|
+
var templateObject_1$n, templateObject_2$d, templateObject_3$a, templateObject_4$9, templateObject_5$7, templateObject_6$6, templateObject_7$3, templateObject_8$3;
|
|
133281
133281
|
|
|
133282
133282
|
var ManageChannels = function ManageChannels(_a) {
|
|
133283
133283
|
var className = _a.className;
|
|
@@ -133448,7 +133448,7 @@ var Host$a = _styled.div.withConfig({
|
|
|
133448
133448
|
var Title$2 = _styled.h3.withConfig({
|
|
133449
133449
|
displayName: "ManageChannels__Title",
|
|
133450
133450
|
componentId: "sc-yyoxfw-1"
|
|
133451
|
-
})(templateObject_2$
|
|
133451
|
+
})(templateObject_2$c || (templateObject_2$c = __makeTemplateObject$l(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
133452
133452
|
|
|
133453
133453
|
var Description = _styled.span.withConfig({
|
|
133454
133454
|
displayName: "ManageChannels__Description",
|
|
@@ -133516,7 +133516,7 @@ var StyledIconButton = _styled(IconButton$1).withConfig({
|
|
|
133516
133516
|
return p.theme.textColors.default;
|
|
133517
133517
|
});
|
|
133518
133518
|
|
|
133519
|
-
var templateObject_1$m, templateObject_2$
|
|
133519
|
+
var templateObject_1$m, templateObject_2$c, templateObject_3$9, templateObject_4$8, templateObject_5$6, templateObject_6$5, templateObject_7$2, templateObject_8$2;
|
|
133520
133520
|
|
|
133521
133521
|
var NewsGridCard = function NewsGridCard(_a) {
|
|
133522
133522
|
var _b;
|
|
@@ -133623,7 +133623,7 @@ var NewsGridCard = function NewsGridCard(_a) {
|
|
|
133623
133623
|
return NewsService.getNewsRoute(baseRoute, item.id, title);
|
|
133624
133624
|
}
|
|
133625
133625
|
};
|
|
133626
|
-
var Host$9 = _styled.div(templateObject_2$
|
|
133626
|
+
var Host$9 = _styled.div(templateObject_2$b || (templateObject_2$b = __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) {
|
|
133627
133627
|
return p.showHighlight && css$2(templateObject_1$l || (templateObject_1$l = __makeTemplateObject$l(["\n position: relative;\n &::after {\n ", ";\n }\n "], ["\n position: relative;\n &::after {\n ", ";\n }\n "])), BannerHighlightStyle);
|
|
133628
133628
|
});
|
|
133629
133629
|
var BannerHighlightStyle = css$2(templateObject_3$8 || (templateObject_3$8 = __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) {
|
|
@@ -133651,7 +133651,7 @@ var KeywordsWrapper = _styled.div(templateObject_14$1 || (templateObject_14$1 =
|
|
|
133651
133651
|
return p.theme.palette.neutralTertiary;
|
|
133652
133652
|
});
|
|
133653
133653
|
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);
|
|
133654
|
-
var templateObject_1$l, templateObject_2$
|
|
133654
|
+
var templateObject_1$l, templateObject_2$b, templateObject_3$8, templateObject_4$7, 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;
|
|
133655
133655
|
|
|
133656
133656
|
var ErrorContainer = function ErrorContainer() {
|
|
133657
133657
|
return jsx$1(Host$8, {
|
|
@@ -133762,7 +133762,7 @@ var Inner$1 = _styled.div.withConfig({
|
|
|
133762
133762
|
displayName: "NewsGrid__Inner",
|
|
133763
133763
|
componentId: "sc-8ugpfz-1"
|
|
133764
133764
|
})(templateObject_3$7 || (templateObject_3$7 = __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) {
|
|
133765
|
-
return css$2(templateObject_2$
|
|
133765
|
+
return css$2(templateObject_2$a || (templateObject_2$a = __makeTemplateObject$l(["\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n "], ["\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n "])), p.columnCount);
|
|
133766
133766
|
});
|
|
133767
133767
|
|
|
133768
133768
|
_styled(NewsGridCard).withConfig({
|
|
@@ -133772,7 +133772,7 @@ _styled(NewsGridCard).withConfig({
|
|
|
133772
133772
|
return css$2(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject$l(["\n width: calc(100% / ", " - ", "px);\n "], ["\n width: calc(100% / ", " - ", "px);\n "])), p.columnCount, spacingM);
|
|
133773
133773
|
});
|
|
133774
133774
|
|
|
133775
|
-
var templateObject_1$j, templateObject_2$
|
|
133775
|
+
var templateObject_1$j, templateObject_2$a, templateObject_3$7, templateObject_4$6, templateObject_5$4;
|
|
133776
133776
|
|
|
133777
133777
|
var HeroSlide = function HeroSlide(_a) {
|
|
133778
133778
|
var item = _a.item,
|
|
@@ -133917,7 +133917,7 @@ var Host$6 = _styled.div.withConfig({
|
|
|
133917
133917
|
displayName: "HeroSlide__Host",
|
|
133918
133918
|
componentId: "sc-3yofth-0"
|
|
133919
133919
|
})(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) {
|
|
133920
|
-
return p.width ? css$2(templateObject_1$i || (templateObject_1$i = __makeTemplateObject$l(["\n width: ", ";\n "], ["\n width: ", ";\n "])), p.width) : css$2(templateObject_2$
|
|
133920
|
+
return p.width ? css$2(templateObject_1$i || (templateObject_1$i = __makeTemplateObject$l(["\n width: ", ";\n "], ["\n width: ", ";\n "])), p.width) : css$2(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject$l(["\n width: 100%;\n "], ["\n width: 100%;\n "])));
|
|
133921
133921
|
}, function (p) {
|
|
133922
133922
|
return p.height ? css$2(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject$l(["\n height: ", ";\n "], ["\n height: ", ";\n "])), p.height) : css$2(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject$l(["\n height: 100%;\n "], ["\n height: 100%;\n "])));
|
|
133923
133923
|
}, function (p) {
|
|
@@ -134037,7 +134037,7 @@ var StyledDateTime = _styled(DateTime).withConfig({
|
|
|
134037
134037
|
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);
|
|
134038
134038
|
});
|
|
134039
134039
|
|
|
134040
|
-
var templateObject_1$i, templateObject_2$
|
|
134040
|
+
var templateObject_1$i, templateObject_2$9, templateObject_3$6, templateObject_4$5, 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;
|
|
134041
134041
|
|
|
134042
134042
|
var HeroPaging = function HeroPaging(_a) {
|
|
134043
134043
|
var items = _a.items,
|
|
@@ -134163,7 +134163,7 @@ var PagingHost = _styled.div.withConfig({
|
|
|
134163
134163
|
var Paging = _styled.ul.withConfig({
|
|
134164
134164
|
displayName: "HeroPaging__Paging",
|
|
134165
134165
|
componentId: "sc-1y3j8qb-1"
|
|
134166
|
-
})(templateObject_2$
|
|
134166
|
+
})(templateObject_2$8 || (templateObject_2$8 = __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);
|
|
134167
134167
|
|
|
134168
134168
|
var PagingItem = _styled.li.withConfig({
|
|
134169
134169
|
displayName: "HeroPaging__PagingItem",
|
|
@@ -134184,7 +134184,7 @@ var PagingArrow = _styled(IconButton).withConfig({
|
|
|
134184
134184
|
componentId: "sc-1y3j8qb-4"
|
|
134185
134185
|
})(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"])));
|
|
134186
134186
|
|
|
134187
|
-
var templateObject_1$h, templateObject_2$
|
|
134187
|
+
var templateObject_1$h, templateObject_2$8, templateObject_3$5, templateObject_4$4, templateObject_5$2, templateObject_6$2;
|
|
134188
134188
|
|
|
134189
134189
|
var Hero = function Hero(_a) {
|
|
134190
134190
|
var items = _a.items,
|
|
@@ -134587,7 +134587,7 @@ var StyledDropdown = _styled(Dropdown).withConfig({
|
|
|
134587
134587
|
var DropdownOption = _styled.div.withConfig({
|
|
134588
134588
|
displayName: "GroupsDropdown__DropdownOption",
|
|
134589
134589
|
componentId: "sc-cmsnyu-1"
|
|
134590
|
-
})(templateObject_2$
|
|
134590
|
+
})(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject$l(["\n ", "\n"], ["\n ", "\n"])), ToolbarOptionStyles);
|
|
134591
134591
|
|
|
134592
134592
|
var Title = _styled.div.withConfig({
|
|
134593
134593
|
displayName: "GroupsDropdown__Title",
|
|
@@ -134596,7 +134596,7 @@ var Title = _styled.div.withConfig({
|
|
|
134596
134596
|
|
|
134597
134597
|
var GlobalDropdownStyles = createGlobalStyle(templateObject_4$3 || (templateObject_4$3 = __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);
|
|
134598
134598
|
|
|
134599
|
-
var templateObject_1$e, templateObject_2$
|
|
134599
|
+
var templateObject_1$e, templateObject_2$7, templateObject_3$4, templateObject_4$3;
|
|
134600
134600
|
|
|
134601
134601
|
var TaskButton = function TaskButton(_a) {
|
|
134602
134602
|
var count = _a.count,
|
|
@@ -134855,7 +134855,7 @@ var MessageBarStyle = createGlobalStyle(templateObject_1$b || (templateObject_1$
|
|
|
134855
134855
|
var StyledEditorListItem = _styled(EditorListItem).withConfig({
|
|
134856
134856
|
displayName: "NewsEditorDashboard__StyledEditorListItem",
|
|
134857
134857
|
componentId: "sc-vv9dzu-0"
|
|
134858
|
-
})(templateObject_2$
|
|
134858
|
+
})(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject$l(["\n :not(:first-child) {\n margin-top: ", "px;\n }\n"], ["\n :not(:first-child) {\n margin-top: ", "px;\n }\n"])), spacingS + 5);
|
|
134859
134859
|
|
|
134860
134860
|
var FiltersAndButtons = _styled.div.withConfig({
|
|
134861
134861
|
displayName: "NewsEditorDashboard__FiltersAndButtons",
|
|
@@ -134877,7 +134877,7 @@ var StyledNewArticleButton = _styled(NewArticleButton).withConfig({
|
|
|
134877
134877
|
componentId: "sc-vv9dzu-4"
|
|
134878
134878
|
})(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);
|
|
134879
134879
|
|
|
134880
|
-
var templateObject_1$b, templateObject_2$
|
|
134880
|
+
var templateObject_1$b, templateObject_2$6, templateObject_3$3, templateObject_4$2, templateObject_5$1, templateObject_6$1;
|
|
134881
134881
|
|
|
134882
134882
|
// NOTE: This component exists in this project and not in the ui/common/toolbar because it uses DetailViewContext placed in feature/content/
|
|
134883
134883
|
// Also a generic component `ToolbarLanguageSelector` in ui/common/toolbar complicates the flow and requires some code duplication
|
|
@@ -135149,7 +135149,7 @@ var Button = _styled(ActionButton).withConfig({
|
|
|
135149
135149
|
displayName: "ToolbarFilterCalloutButton__Button",
|
|
135150
135150
|
componentId: "sc-fu36ma-1"
|
|
135151
135151
|
})(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject$l(["\n ", "\n i {\n order: 1;\n }\n"], ["\n ", "\n i {\n order: 1;\n }\n"])), function (p) {
|
|
135152
|
-
return p.isActive && css$2(templateObject_2$
|
|
135152
|
+
return p.isActive && css$2(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject$l(["\n font-weight: bold;\n "], ["\n font-weight: bold;\n "])));
|
|
135153
135153
|
});
|
|
135154
135154
|
|
|
135155
135155
|
var ClearFilterButton = _styled(DefaultButton).withConfig({
|
|
@@ -135157,7 +135157,7 @@ var ClearFilterButton = _styled(DefaultButton).withConfig({
|
|
|
135157
135157
|
componentId: "sc-fu36ma-2"
|
|
135158
135158
|
})(templateObject_4$1 || (templateObject_4$1 = __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"])));
|
|
135159
135159
|
|
|
135160
|
-
var templateObject_1$7, templateObject_2$
|
|
135160
|
+
var templateObject_1$7, templateObject_2$5, templateObject_3$2, templateObject_4$1;
|
|
135161
135161
|
|
|
135162
135162
|
var FilterLogicalOperators = function FilterLogicalOperators(_a) {
|
|
135163
135163
|
var onChange = _a.onChange,
|
|
@@ -135209,9 +135209,9 @@ var StyledChoiceGroup = _styled(ChoiceGroup).withConfig({
|
|
|
135209
135209
|
var Operator = _styled.span.withConfig({
|
|
135210
135210
|
displayName: "FilterLogicalOperators__Operator",
|
|
135211
135211
|
componentId: "sc-10bpjo8-1"
|
|
135212
|
-
})(templateObject_2$
|
|
135212
|
+
})(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject$l(["\n text-transform: capitalize;\n"], ["\n text-transform: capitalize;\n"])));
|
|
135213
135213
|
|
|
135214
|
-
var templateObject_1$6, templateObject_2$
|
|
135214
|
+
var templateObject_1$6, templateObject_2$4;
|
|
135215
135215
|
|
|
135216
135216
|
var ChannelFilter = function ChannelFilter(_a) {
|
|
135217
135217
|
var _b, _c, _d, _f, _g, _h;
|
|
@@ -135367,14 +135367,14 @@ var Channels = _styled.div.withConfig({
|
|
|
135367
135367
|
var StyledCheckbox$1 = _styled(Checkbox).withConfig({
|
|
135368
135368
|
displayName: "ChannelFilter__StyledCheckbox",
|
|
135369
135369
|
componentId: "sc-1ju8xwz-1"
|
|
135370
|
-
})(templateObject_2$
|
|
135370
|
+
})(templateObject_2$3 || (templateObject_2$3 = __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);
|
|
135371
135371
|
|
|
135372
135372
|
var StyledTextField$1 = _styled(TextField).withConfig({
|
|
135373
135373
|
displayName: "ChannelFilter__StyledTextField",
|
|
135374
135374
|
componentId: "sc-1ju8xwz-2"
|
|
135375
135375
|
})(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject$l(["\n padding-bottom: ", "px;\n"], ["\n padding-bottom: ", "px;\n"])), spacingM);
|
|
135376
135376
|
|
|
135377
|
-
var templateObject_1$5, templateObject_2$
|
|
135377
|
+
var templateObject_1$5, templateObject_2$3, templateObject_3$1;
|
|
135378
135378
|
|
|
135379
135379
|
function toInteger(dirtyNumber) {
|
|
135380
135380
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
@@ -138300,11 +138300,11 @@ var StyledDateTimePicker = _styled(DateTimePicker).withConfig({
|
|
|
138300
138300
|
var DateShortcuts = _styled.div.withConfig({
|
|
138301
138301
|
displayName: "PublishingDateFilter__DateShortcuts",
|
|
138302
138302
|
componentId: "sc-zv88cu-1"
|
|
138303
|
-
})(templateObject_2$
|
|
138303
|
+
})(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject$l(["\n margin: ", "px 0;\n display: flex;\n flex-direction: column;\n\n button {\n height: ", "px;\n padding-left: 0;\n .ms-Button-label {\n color: ", ";\n font-weight: bold;\n }\n i {\n margin-left: 0;\n }\n }\n"], ["\n margin: ", "px 0;\n display: flex;\n flex-direction: column;\n\n button {\n height: ", "px;\n padding-left: 0;\n .ms-Button-label {\n color: ", ";\n font-weight: bold;\n }\n i {\n margin-left: 0;\n }\n }\n"])), spacingS, spacingL, function (p) {
|
|
138304
138304
|
return p.theme.palette.themePrimary;
|
|
138305
138305
|
});
|
|
138306
138306
|
|
|
138307
|
-
var templateObject_1$4, templateObject_2$
|
|
138307
|
+
var templateObject_1$4, templateObject_2$2;
|
|
138308
138308
|
|
|
138309
138309
|
var ClearAllFiltersButton = function ClearAllFiltersButton(_a) {
|
|
138310
138310
|
var onClick = _a.onClick;
|
|
@@ -138317,18 +138317,18 @@ var ClearAllFiltersButton = function ClearAllFiltersButton(_a) {
|
|
|
138317
138317
|
}, void 0);
|
|
138318
138318
|
};
|
|
138319
138319
|
|
|
138320
|
-
var
|
|
138321
|
-
var _a, _b
|
|
138320
|
+
var KeywordsFilterDropdown = function KeywordsFilterDropdown() {
|
|
138321
|
+
var _a, _b;
|
|
138322
138322
|
|
|
138323
138323
|
var formatMessage = useIntl().formatMessage;
|
|
138324
138324
|
var allKeywords = useContext(LazySubscriptionContext).allKeywords;
|
|
138325
138325
|
|
|
138326
|
-
var
|
|
138327
|
-
filter =
|
|
138328
|
-
onChange =
|
|
138326
|
+
var _c = useContext(FilterContext),
|
|
138327
|
+
filter = _c.filter,
|
|
138328
|
+
onChange = _c.onChange;
|
|
138329
138329
|
|
|
138330
138330
|
var keywordsLength = (_b = (_a = filter === null || filter === void 0 ? void 0 : filter.keywords) === null || _a === void 0 ? void 0 : _a.items) === null || _b === void 0 ? void 0 : _b.length;
|
|
138331
|
-
return
|
|
138331
|
+
return jsx$1(ToolbarFilterCalloutButton, __assign$g({
|
|
138332
138332
|
buttonText: formatMessage({
|
|
138333
138333
|
id: 'FilterPanel.keywordFilter'
|
|
138334
138334
|
}),
|
|
@@ -138340,23 +138340,7 @@ var KeywordsFilter = function KeywordsFilter() {
|
|
|
138340
138340
|
},
|
|
138341
138341
|
isActive: keywordsLength > 0
|
|
138342
138342
|
}, {
|
|
138343
|
-
children:
|
|
138344
|
-
selectedKey: (_d = (_c = filter === null || filter === void 0 ? void 0 : filter.keywords) === null || _c === void 0 ? void 0 : _c.operator) === null || _d === void 0 ? void 0 : _d.toString(),
|
|
138345
|
-
onChange: handleOperatorChange,
|
|
138346
|
-
ariaLabelResourceKey: "Lib.channelFilter.choiceGroupLabel"
|
|
138347
|
-
}, void 0), jsx$1(StyledKeywordPicker, {
|
|
138348
|
-
value: ((_e = filter === null || filter === void 0 ? void 0 : filter.keywords) === null || _e === void 0 ? void 0 : _e.items) || [],
|
|
138349
|
-
onChange: function (keywords) {
|
|
138350
|
-
onChange(__assign$g(__assign$g({}, filter), {
|
|
138351
|
-
keywords: __assign$g(__assign$g({}, filter === null || filter === void 0 ? void 0 : filter.keywords), {
|
|
138352
|
-
items: keywords.map(function (k) {
|
|
138353
|
-
return k.id;
|
|
138354
|
-
})
|
|
138355
|
-
})
|
|
138356
|
-
}));
|
|
138357
|
-
},
|
|
138358
|
-
showSelectionToggle: true
|
|
138359
|
-
}, void 0)]
|
|
138343
|
+
children: jsx$1(KeywordsFilterInternal, {}, void 0)
|
|
138360
138344
|
}), void 0);
|
|
138361
138345
|
|
|
138362
138346
|
function getButtonContent() {
|
|
@@ -138374,6 +138358,46 @@ var KeywordsFilter = function KeywordsFilter() {
|
|
|
138374
138358
|
}, void 0)]
|
|
138375
138359
|
}, void 0);
|
|
138376
138360
|
}
|
|
138361
|
+
};
|
|
138362
|
+
var KeywordsFilter = function KeywordsFilter(_a) {
|
|
138363
|
+
var className = _a.className;
|
|
138364
|
+
return jsxs("div", __assign$g({
|
|
138365
|
+
className: className
|
|
138366
|
+
}, {
|
|
138367
|
+
children: [jsx$1(SubTitle, {
|
|
138368
|
+
children: jsx$1(FormattedMessage$1, {
|
|
138369
|
+
id: "Keywords.title"
|
|
138370
|
+
}, void 0)
|
|
138371
|
+
}, void 0), jsx$1(KeywordsFilterInternal, {}, void 0)]
|
|
138372
|
+
}), void 0);
|
|
138373
|
+
};
|
|
138374
|
+
|
|
138375
|
+
var KeywordsFilterInternal = function KeywordsFilterInternal() {
|
|
138376
|
+
var _a, _b, _c;
|
|
138377
|
+
|
|
138378
|
+
var _d = useContext(FilterContext),
|
|
138379
|
+
filter = _d.filter,
|
|
138380
|
+
onChange = _d.onChange;
|
|
138381
|
+
|
|
138382
|
+
return jsxs(Fragment, {
|
|
138383
|
+
children: [jsx$1(FilterLogicalOperators, {
|
|
138384
|
+
selectedKey: (_b = (_a = filter === null || filter === void 0 ? void 0 : filter.keywords) === null || _a === void 0 ? void 0 : _a.operator) === null || _b === void 0 ? void 0 : _b.toString(),
|
|
138385
|
+
onChange: handleOperatorChange,
|
|
138386
|
+
ariaLabelResourceKey: "Lib.channelFilter.choiceGroupLabel"
|
|
138387
|
+
}, void 0), jsx$1(StyledKeywordPicker, {
|
|
138388
|
+
value: ((_c = filter === null || filter === void 0 ? void 0 : filter.keywords) === null || _c === void 0 ? void 0 : _c.items) || [],
|
|
138389
|
+
onChange: function (keywords) {
|
|
138390
|
+
onChange(__assign$g(__assign$g({}, filter), {
|
|
138391
|
+
keywords: __assign$g(__assign$g({}, filter === null || filter === void 0 ? void 0 : filter.keywords), {
|
|
138392
|
+
items: keywords.map(function (k) {
|
|
138393
|
+
return k.id;
|
|
138394
|
+
})
|
|
138395
|
+
})
|
|
138396
|
+
}));
|
|
138397
|
+
},
|
|
138398
|
+
showSelectionToggle: true
|
|
138399
|
+
}, void 0)]
|
|
138400
|
+
}, void 0);
|
|
138377
138401
|
|
|
138378
138402
|
function handleOperatorChange(operatorKey) {
|
|
138379
138403
|
onChange(__assign$g(__assign$g({}, filter), {
|
|
@@ -138389,7 +138413,12 @@ var StyledKeywordPicker = _styled(KeywordPicker).withConfig({
|
|
|
138389
138413
|
componentId: "sc-1aoeg5i-0"
|
|
138390
138414
|
})(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject$l(["\n margin-bottom: ", "px;\n overflow: hidden;\n\n .keyword-picker-tree {\n max-height: 256px;\n overflow-y: auto;\n\n div:last-child {\n margin-bottom: 0;\n }\n }\n"], ["\n margin-bottom: ", "px;\n overflow: hidden;\n\n .keyword-picker-tree {\n max-height: 256px;\n overflow-y: auto;\n\n div:last-child {\n margin-bottom: 0;\n }\n }\n"])), spacingM);
|
|
138391
138415
|
|
|
138392
|
-
var
|
|
138416
|
+
var SubTitle = _styled.p.withConfig({
|
|
138417
|
+
displayName: "KeywordsFilter__SubTitle",
|
|
138418
|
+
componentId: "sc-1aoeg5i-1"
|
|
138419
|
+
})(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject$l(["\n font-weight: bold;\n margin-bottom: ", "px;\n"], ["\n font-weight: bold;\n margin-bottom: ", "px;\n"])), spacingXs + 2);
|
|
138420
|
+
|
|
138421
|
+
var templateObject_1$3, templateObject_2$1;
|
|
138393
138422
|
|
|
138394
138423
|
var EmptyFilterSearchResult = function EmptyFilterSearchResult() {
|
|
138395
138424
|
return jsxs(Host$1, {
|
|
@@ -138959,4 +138988,4 @@ var ToolbarFilterModalButton = function ToolbarFilterModalButton(_a) {
|
|
|
138959
138988
|
}
|
|
138960
138989
|
};
|
|
138961
138990
|
|
|
138962
|
-
export { Avatar as A, ToolbarFilterModal as B, ToolbarFilterModalButton as C, ChannelFilter as D, EventDetail as E, PublishingDateFilter as F, ClearAllFiltersButton as G,
|
|
138991
|
+
export { Avatar as A, ToolbarFilterModal as B, ToolbarFilterModalButton as C, ChannelFilter as D, EventDetail as E, PublishingDateFilter as F, ClearAllFiltersButton as G, KeywordsFilterDropdown as H, ItemLayoutMode as I, AuthorFilter as J, KeywordsFilter as K, ManageChannels as M, NewsDetail as N, PropTypes$2 as P, ReachContextProvider as R, ThemeContext$1 as T, UserDetails as U, VerticalFilterPanel as V, _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 };
|