@wavemaker/app-runtime-wm-build 11.4.0-next.27501 → 11.4.0-next.28152
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.
|
@@ -217152,7 +217152,7 @@ window.requestAnimationFrame = function() {
|
|
|
217152
217152
|
})(window["ngx-bootstrap"]);
|
|
217153
217153
|
|
|
217154
217154
|
/*!
|
|
217155
|
-
* tabbable 6.
|
|
217155
|
+
* tabbable 6.2.0
|
|
217156
217156
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
217157
217157
|
*/
|
|
217158
217158
|
(function(global, factory) {
|
|
@@ -217248,14 +217248,27 @@ window.requestAnimationFrame = function() {
|
|
|
217248
217248
|
}
|
|
217249
217249
|
return candidates;
|
|
217250
217250
|
};
|
|
217251
|
-
var
|
|
217251
|
+
var hasTabIndex = function hasTabIndex(node) {
|
|
217252
|
+
return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
|
|
217253
|
+
};
|
|
217254
|
+
var getTabIndex = function getTabIndex(node) {
|
|
217255
|
+
if (!node) {
|
|
217256
|
+
throw new Error("No node provided");
|
|
217257
|
+
}
|
|
217252
217258
|
if (node.tabIndex < 0) {
|
|
217253
|
-
if ((
|
|
217259
|
+
if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
|
|
217254
217260
|
return 0;
|
|
217255
217261
|
}
|
|
217256
217262
|
}
|
|
217257
217263
|
return node.tabIndex;
|
|
217258
217264
|
};
|
|
217265
|
+
var getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {
|
|
217266
|
+
var tabIndex = getTabIndex(node);
|
|
217267
|
+
if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
|
|
217268
|
+
return 0;
|
|
217269
|
+
}
|
|
217270
|
+
return tabIndex;
|
|
217271
|
+
};
|
|
217259
217272
|
var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
|
|
217260
217273
|
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
217261
217274
|
};
|
|
@@ -217391,7 +217404,7 @@ window.requestAnimationFrame = function() {
|
|
|
217391
217404
|
return true;
|
|
217392
217405
|
};
|
|
217393
217406
|
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
217394
|
-
if (isNonTabbableRadio(node) ||
|
|
217407
|
+
if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
217395
217408
|
return false;
|
|
217396
217409
|
}
|
|
217397
217410
|
return true;
|
|
@@ -217409,7 +217422,7 @@ window.requestAnimationFrame = function() {
|
|
|
217409
217422
|
candidates.forEach((function(item, i) {
|
|
217410
217423
|
var isScope = !!item.scopeParent;
|
|
217411
217424
|
var element = isScope ? item.scopeParent : item;
|
|
217412
|
-
var candidateTabindex =
|
|
217425
|
+
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
217413
217426
|
var elements = isScope ? sortByOrder(item.candidates) : element;
|
|
217414
217427
|
if (candidateTabindex === 0) {
|
|
217415
217428
|
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
@@ -217428,32 +217441,32 @@ window.requestAnimationFrame = function() {
|
|
|
217428
217441
|
return acc;
|
|
217429
217442
|
}), []).concat(regularTabbables);
|
|
217430
217443
|
};
|
|
217431
|
-
var tabbable = function tabbable(
|
|
217444
|
+
var tabbable = function tabbable(container, options) {
|
|
217432
217445
|
options = options || {};
|
|
217433
217446
|
var candidates;
|
|
217434
217447
|
if (options.getShadowRoot) {
|
|
217435
|
-
candidates = getCandidatesIteratively([
|
|
217448
|
+
candidates = getCandidatesIteratively([ container ], options.includeContainer, {
|
|
217436
217449
|
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
217437
217450
|
flatten: false,
|
|
217438
217451
|
getShadowRoot: options.getShadowRoot,
|
|
217439
217452
|
shadowRootFilter: isValidShadowRootTabbable
|
|
217440
217453
|
});
|
|
217441
217454
|
} else {
|
|
217442
|
-
candidates = getCandidates(
|
|
217455
|
+
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
217443
217456
|
}
|
|
217444
217457
|
return sortByOrder(candidates);
|
|
217445
217458
|
};
|
|
217446
|
-
var focusable = function focusable(
|
|
217459
|
+
var focusable = function focusable(container, options) {
|
|
217447
217460
|
options = options || {};
|
|
217448
217461
|
var candidates;
|
|
217449
217462
|
if (options.getShadowRoot) {
|
|
217450
|
-
candidates = getCandidatesIteratively([
|
|
217463
|
+
candidates = getCandidatesIteratively([ container ], options.includeContainer, {
|
|
217451
217464
|
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
217452
217465
|
flatten: true,
|
|
217453
217466
|
getShadowRoot: options.getShadowRoot
|
|
217454
217467
|
});
|
|
217455
217468
|
} else {
|
|
217456
|
-
candidates = getCandidates(
|
|
217469
|
+
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
217457
217470
|
}
|
|
217458
217471
|
return candidates;
|
|
217459
217472
|
};
|
|
@@ -217479,6 +217492,7 @@ window.requestAnimationFrame = function() {
|
|
|
217479
217492
|
return isNodeMatchingSelectorFocusable(options, node);
|
|
217480
217493
|
};
|
|
217481
217494
|
exports.focusable = focusable;
|
|
217495
|
+
exports.getTabIndex = getTabIndex;
|
|
217482
217496
|
exports.isFocusable = isFocusable;
|
|
217483
217497
|
exports.isTabbable = isTabbable;
|
|
217484
217498
|
exports.tabbable = tabbable;
|
|
@@ -3792,10 +3792,10 @@ var o,a="undefined"!=typeof window&&window||{},s=a.document;a.location,a.gc,a.pe
|
|
|
3792
3792
|
and limitations under the License.
|
|
3793
3793
|
***************************************************************************** */var h=function(t,e){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function f(t,e){function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function v(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function m(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var g=function(){function t(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range"}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.\u0275prov=e["\u0275\u0275defineInjectable"]({factory:function(){return new t},token:t,providedIn:"root"}),t}();var y="220ms cubic-bezier(0, 0, 0.2, 1)",b=o.trigger("datepickerAnimation",[o.state("animated-down",o.style({height:"*",overflow:"hidden"})),o.transition("* => animated-down",[o.style({height:0,overflow:"hidden"}),o.animate(y)]),o.state("animated-up",o.style({height:"*",overflow:"hidden"})),o.transition("* => animated-up",[o.style({height:"*",overflow:"hidden"}),o.animate(y)]),o.transition("* => unanimated",o.animate("0s"))]),_=function(){function t(){this.customRanges=[],this.chosenRange=[]}return Object.defineProperty(t.prototype,"minDate",{set:function(t){this._effects.setMinDate(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{set:function(t){this._effects.setMaxDate(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"daysDisabled",{set:function(t){this._effects.setDaysDisabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"datesDisabled",{set:function(t){this._effects.setDatesDisabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"datesEnabled",{set:function(t){this._effects.setDatesEnabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisabled",{set:function(t){this._effects.setDisabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateCustomClasses",{set:function(t){this._effects.setDateCustomClasses(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateTooltipTexts",{set:function(t){this._effects.setDateTooltipTexts(t)},enumerable:!0,configurable:!0}),t.prototype.setViewMode=function(t){},t.prototype.navigateTo=function(t){},t.prototype.dayHoverHandler=function(t){},t.prototype.weekHoverHandler=function(t){},t.prototype.monthHoverHandler=function(t){},t.prototype.yearHoverHandler=function(t){},t.prototype.daySelectHandler=function(t){},t.prototype.monthSelectHandler=function(t){},t.prototype.yearSelectHandler=function(t){},t.prototype.setRangeOnCalendar=function(t){},t.prototype.setToday=function(){},t.prototype.clearDate=function(){},t.prototype._stopPropagation=function(t){t.stopPropagation()},t}();var w=function(){function t(){}return t.prototype.calculate=function(){return{type:t.CALCULATE}},t.prototype.format=function(){return{type:t.FORMAT}},t.prototype.flag=function(){return{type:t.FLAG}},t.prototype.select=function(e){return{type:t.SELECT,payload:e}},t.prototype.changeViewMode=function(e){return{type:t.CHANGE_VIEWMODE,payload:e}},t.prototype.navigateTo=function(e){return{type:t.NAVIGATE_TO,payload:e}},t.prototype.navigateStep=function(e){return{type:t.NAVIGATE_OFFSET,payload:e}},t.prototype.setOptions=function(e){return{type:t.SET_OPTIONS,payload:e}},t.prototype.selectRange=function(e){return{type:t.SELECT_RANGE,payload:e}},t.prototype.hoverDay=function(e){return{type:t.HOVER,payload:e.isHovered?e.cell.date:null}},t.prototype.minDate=function(e){return{type:t.SET_MIN_DATE,payload:e}},t.prototype.maxDate=function(e){return{type:t.SET_MAX_DATE,payload:e}},t.prototype.daysDisabled=function(e){return{type:t.SET_DAYSDISABLED,payload:e}},t.prototype.datesDisabled=function(e){return{type:t.SET_DATESDISABLED,payload:e}},t.prototype.datesEnabled=function(e){return{type:t.SET_DATESENABLED,payload:e}},t.prototype.isDisabled=function(e){return{type:t.SET_IS_DISABLED,payload:e}},t.prototype.setDateCustomClasses=function(e){return{type:t.SET_DATE_CUSTOM_CLASSES,payload:e}},t.prototype.setDateTooltipTexts=function(e){return{type:t.SET_DATE_TOOLTIP_TEXTS,payload:e}},t.prototype.setLocale=function(e){return{type:t.SET_LOCALE,payload:e}},t.CALCULATE="[datepicker] calculate dates matrix",t.FORMAT="[datepicker] format datepicker values",t.FLAG="[datepicker] set flags",t.SELECT="[datepicker] select date",t.NAVIGATE_OFFSET="[datepicker] shift view date",t.NAVIGATE_TO="[datepicker] change view date",t.SET_OPTIONS="[datepicker] update render options",t.HOVER="[datepicker] hover date",t.CHANGE_VIEWMODE="[datepicker] switch view mode",t.SET_MIN_DATE="[datepicker] set min date",t.SET_MAX_DATE="[datepicker] set max date",t.SET_DAYSDISABLED="[datepicker] set days disabled",t.SET_DATESDISABLED="[datepicker] set dates disabled",t.SET_DATESENABLED="[datepicker] set dates enabled",t.SET_IS_DISABLED="[datepicker] set is disabled",t.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes",t.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts",t.SET_LOCALE="[datepicker] set datepicker locale",t.SELECT_RANGE="[daterangepicker] select dates range",t.decorators=[{type:e.Injectable}],t}();var E=function(){function t(){this._defaultLocale="en",this._locale=new a.BehaviorSubject(this._defaultLocale),this._localeChange=this._locale.asObservable()}return Object.defineProperty(t.prototype,"locale",{get:function(){return this._locale},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"localeChange",{get:function(){return this._localeChange},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentLocale",{get:function(){return this._locale.getValue()},enumerable:!0,configurable:!0}),t.prototype.use=function(t){t!==this.currentLocale&&this._locale.next(t)},t.decorators=[{type:e.Injectable}],t}();var x=function(){function t(t,e){this._actions=t,this._localeService=e,this._subs=[]}return t.prototype.init=function(t){return this._store=t,this},t.prototype.setValue=function(t){this._store.dispatch(this._actions.select(t))},t.prototype.setRangeValue=function(t){this._store.dispatch(this._actions.selectRange(t))},t.prototype.setMinDate=function(t){return this._store.dispatch(this._actions.minDate(t)),this},t.prototype.setMaxDate=function(t){return this._store.dispatch(this._actions.maxDate(t)),this},t.prototype.setDaysDisabled=function(t){return this._store.dispatch(this._actions.daysDisabled(t)),this},t.prototype.setDatesDisabled=function(t){return this._store.dispatch(this._actions.datesDisabled(t)),this},t.prototype.setDatesEnabled=function(t){return this._store.dispatch(this._actions.datesEnabled(t)),this},t.prototype.setDisabled=function(t){return this._store.dispatch(this._actions.isDisabled(t)),this},t.prototype.setDateCustomClasses=function(t){return this._store.dispatch(this._actions.setDateCustomClasses(t)),this},t.prototype.setDateTooltipTexts=function(t){return this._store.dispatch(this._actions.setDateTooltipTexts(t)),this},t.prototype.setOptions=function(t){var e=Object.assign({locale:this._localeService.currentLocale},t);return this._store.dispatch(this._actions.setOptions(e)),this},t.prototype.setBindings=function(t){return t.daysCalendar=this._store.select((function(t){return t.flaggedMonths})).pipe(n.filter((function(t){return!!t}))),t.monthsCalendar=this._store.select((function(t){return t.flaggedMonthsCalendar})).pipe(n.filter((function(t){return!!t}))),t.yearsCalendar=this._store.select((function(t){return t.yearsCalendarFlagged})).pipe(n.filter((function(t){return!!t}))),t.viewMode=this._store.select((function(t){return t.view.mode})),t.options=this._store.select((function(t){return t.showWeekNumbers})).pipe(n.map((function(t){return{showWeekNumbers:t}}))),this},t.prototype.setEventHandlers=function(t){var e=this;return t.setViewMode=function(t){e._store.dispatch(e._actions.changeViewMode(t))},t.navigateTo=function(t){e._store.dispatch(e._actions.navigateStep(t.step))},t.dayHoverHandler=function(t){var n=t.cell;n.isOtherMonth||n.isDisabled||(e._store.dispatch(e._actions.hoverDay(t)),n.isHovered=t.isHovered)},t.monthHoverHandler=function(t){t.cell.isHovered=t.isHovered},t.yearHoverHandler=function(t){t.cell.isHovered=t.isHovered},this},t.prototype.registerDatepickerSideEffects=function(){var t=this;return this._subs.push(this._store.select((function(t){return t.view})).subscribe((function(e){t._store.dispatch(t._actions.calculate())}))),this._subs.push(this._store.select((function(t){return t.monthsModel})).pipe(n.filter((function(t){return!!t}))).subscribe((function(e){return t._store.dispatch(t._actions.format())}))),this._subs.push(this._store.select((function(t){return t.formattedMonths})).pipe(n.filter((function(t){return!!t}))).subscribe((function(e){return t._store.dispatch(t._actions.flag())}))),this._subs.push(this._store.select((function(t){return t.selectedDate})).pipe(n.filter((function(t){return!!t}))).subscribe((function(e){return t._store.dispatch(t._actions.flag())}))),this._subs.push(this._store.select((function(t){return t.selectedRange})).pipe(n.filter((function(t){return!!t}))).subscribe((function(e){return t._store.dispatch(t._actions.flag())}))),this._subs.push(this._store.select((function(t){return t.monthsCalendar})).subscribe((function(){return t._store.dispatch(t._actions.flag())}))),this._subs.push(this._store.select((function(t){return t.yearsCalendarModel})).pipe(n.filter((function(t){return!!t}))).subscribe((function(){return t._store.dispatch(t._actions.flag())}))),this._subs.push(this._store.select((function(t){return t.hoveredDate})).pipe(n.filter((function(t){return!!t}))).subscribe((function(e){return t._store.dispatch(t._actions.flag())}))),this._subs.push(this._store.select((function(t){return t.dateCustomClasses})).pipe(n.filter((function(t){return!!t}))).subscribe((function(e){return t._store.dispatch(t._actions.flag())}))),this._subs.push(this._store.select((function(t){return t.dateTooltipTexts})).pipe(n.filter((function(t){return!!t}))).subscribe((function(e){return t._store.dispatch(t._actions.flag())}))),this._subs.push(this._localeService.localeChange.subscribe((function(e){return t._store.dispatch(t._actions.setLocale(e))}))),this},t.prototype.destroy=function(){var t,e;try{for(var n=v(this._subs),r=n.next();!r.done;r=n.next()){r.value.unsubscribe()}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:w},{type:E}]},t}();var S={date:new Date,mode:"day"},C=Object.assign(new g,{locale:"en",view:S,selectedRange:[],monthViewOptions:{width:7,height:6}});function T(t,e,n){var i=e&&r.isBefore(r.endOf(t,"month"),e,"day"),o=n&&r.isAfter(r.startOf(t,"month"),n,"day");return i||o}function k(t,e,n){var i=e&&r.isBefore(r.endOf(t,"year"),e,"day"),o=n&&r.isAfter(r.startOf(t,"year"),n,"day");return i||o}function D(t,e){void 0===e&&(e=0);var n=t&&t.yearsCalendarModel&&t.yearsCalendarModel[e];return n&&n.years&&n.years[0]&&n.years[0][0]&&n.years[0][0].date}function A(t,e){for(var n=t.initialDate,i=new Array(t.height),o=0;o<t.height;o++){i[o]=new Array(t.width);for(var a=0;a<t.width;a++)i[o][a]=e(n),n=r.shiftDate(n,t.shift)}return i}function M(t,e){var n=r.getFirstDayOfMonth(t),i=function(t,e){if(r.isFirstDayOfWeek(t,e.firstDayOfWeek))return t;var n=function(t,e){if(0===e)return t;var n=t-e%7;return n<0?n+7:n}(r.getDay(t),e.firstDayOfWeek);return r.shiftDate(t,{day:-n})}(n,e);return{daysMatrix:A({width:e.width,height:e.height,initialDate:i,shift:{day:1}},(function(t){return t})),month:n}}function O(t){var e=r.getLocale(t),n=e.weekdaysShort(),i=e.firstDayOfWeek();return function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}(n.slice(i),n.slice(0,i))}function I(t,e){return t.weeks.forEach((function(n){n.days.forEach((function(i,o){var a,s,u=!r.isSameMonth(i.date,t.month),l=!u&&r.isSameDay(i.date,e.hoveredDate),c=!u&&e.selectedRange&&r.isSameDay(i.date,e.selectedRange[0]),p=!u&&e.selectedRange&&r.isSameDay(i.date,e.selectedRange[1]),d=!u&&r.isSameDay(i.date,e.selectedDate)||c||p,h=!u&&e.selectedRange&&function(t,e,n){if(!t||!e[0])return!1;if(e[1])return t>e[0]&&t<=e[1];if(n)return t>e[0]&&t<=n;return!1}(i.date,e.selectedRange,e.hoveredDate),f=e.isDisabled||r.isBefore(i.date,e.minDate,"day")||r.isAfter(i.date,e.maxDate,"day")||r.isDisabledDay(i.date,e.daysDisabled)||(a=i.date,!!((s=e.datesDisabled)&&r.isArray(s)&&s.length)&&s.some((function(t){return r.isSame(a,t,"date")})))||function(t,e){return!!(e&&r.isArray(e)&&e.length)&&!e.some((function(e){return r.isSame(t,e,"date")}))}(i.date,e.datesEnabled),v=new Date,m=!u&&r.isSameDay(i.date,v),g=e.dateCustomClasses&&e.dateCustomClasses.map((function(t){return r.isSameDay(i.date,t.date)?t.classes:[]})).reduce((function(t,e){return t.concat(e)}),[]).join(" ")||"",y=e.dateTooltipTexts&&e.dateTooltipTexts.map((function(t){return r.isSameDay(i.date,t.date)?t.tooltipText:""})).reduce((function(t,e){return t.concat(e)}),[]).join(" ")||"",b=Object.assign({},i,{isOtherMonth:u,isHovered:l,isSelected:d,isSelectionStart:c,isSelectionEnd:p,isInRange:h,isDisabled:f,isToday:m,customClasses:g,tooltipText:y});i.isOtherMonth===b.isOtherMonth&&i.isHovered===b.isHovered&&i.isSelected===b.isSelected&&i.isSelectionStart===b.isSelectionStart&&i.isSelectionEnd===b.isSelectionEnd&&i.isDisabled===b.isDisabled&&i.isInRange===b.isInRange&&i.customClasses===b.customClasses&&i.tooltipText===b.tooltipText||(n.days[o]=b)}))})),t.hideLeftArrow=e.isDisabled||e.monthIndex>0&&e.monthIndex!==e.displayMonths,t.hideRightArrow=e.isDisabled||e.monthIndex<e.displayMonths&&e.monthIndex+1!==e.displayMonths,t.disableLeftArrow=T(r.shiftDate(t.month,{month:-1}),e.minDate,e.maxDate),t.disableRightArrow=T(r.shiftDate(t.month,{month:1}),e.minDate,e.maxDate),t}function P(t,e){return!e||t>=e}var R={month:1};function N(t,e){return{months:A({width:3,height:4,initialDate:r.startOf(t,"year"),shift:R},(function(t){return{date:t,label:r.formatDate(t,e.monthLabel,e.locale)}})),monthTitle:"",yearTitle:r.formatDate(t,e.yearTitle,e.locale)}}var L=16,F=-1*(Math.floor(8)-1),j={year:1};function B(t,e,n){var i=A({width:4,height:4,initialDate:function(t,e){if(e&&t.getFullYear()>=e.getFullYear()&&t.getFullYear()<e.getFullYear()+16)return e;return r.shiftDate(t,{year:F})}(t,n),shift:j},(function(t){return{date:t,label:r.formatDate(t,e.yearLabel,e.locale)}}));return{years:i,monthTitle:"",yearTitle:function(t,e){var n=r.formatDate(t[0][0].date,e.yearTitle,e.locale),i=r.formatDate(t[3][3].date,e.yearTitle,e.locale);return n+" - "+i}(i,e)}}function V(t,e){switch(void 0===t&&(t=C),e.type){case w.CALCULATE:return function(t){var e=t.displayOneMonthRange&&Y(t.view.date,t.minDate,t.maxDate)?1:t.displayMonths,n=t.view.date;if("day"===t.view.mode){t.showPreviousMonth&&t.selectedRange&&0===t.selectedRange.length&&(n=r.shiftDate(n,{month:-1})),t.monthViewOptions.firstDayOfWeek=r.getLocale(t.locale).firstDayOfWeek();for(var i=new Array(e),o=0;o<e;o++)i[o]=M(n,t.monthViewOptions),n=r.shiftDate(n,{month:1});return Object.assign({},t,{monthsModel:i})}if("month"===t.view.mode){for(var a=new Array(e),s=0;s<e;s++)a[s]=N(n,U(t)),n=r.shiftDate(n,{year:1});return Object.assign({},t,{monthsCalendar:a})}if("year"===t.view.mode){var u=new Array(e);for(s=0;s<e;s++)u[s]=B(n,U(t),"year"===t.minMode?D(t,s):void 0),n=r.shiftDate(n,{year:L});return Object.assign({},t,{yearsCalendarModel:u})}return t}(t);case w.FORMAT:return function(t,e){if("day"===t.view.mode){var n=t.monthsModel.map((function(e,n){return function(t,e,n){return{month:t.month,monthTitle:r.formatDate(t.month,e.monthTitle,e.locale),yearTitle:r.formatDate(t.month,e.yearTitle,e.locale),weekNumbers:(i=t.daysMatrix,o=e.weekNumbers,a=e.locale,i.map((function(t){return t[0]?r.formatDate(t[0],o,a):""}))),weekdays:O(e.locale),weeks:t.daysMatrix.map((function(t,i){return{days:t.map((function(t,o){return{date:t,label:r.formatDate(t,e.dayLabel,e.locale),monthIndex:n,weekIndex:i,dayIndex:o}}))}}))};var i,o,a}(e,U(t),n)}));return Object.assign({},t,{formattedMonths:n})}var i=t.displayMonths,o=t.view.date;if("month"===t.view.mode){for(var a=new Array(i),s=0;s<i;s++)a[s]=N(o,U(t)),o=r.shiftDate(o,{year:1});return Object.assign({},t,{monthsCalendar:a})}if("year"===t.view.mode){var u=new Array(i);for(s=0;s<i;s++)u[s]=B(o,U(t)),o=r.shiftDate(o,{year:16});return Object.assign({},t,{yearsCalendarModel:u})}return t}(t);case w.FLAG:return function(t,e){var n=Y(t.view.date,t.minDate,t.maxDate)?1:t.displayMonths;if("day"===t.view.mode){var i=t.formattedMonths.map((function(e,r){return I(e,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,daysDisabled:t.daysDisabled,datesDisabled:t.datesDisabled,datesEnabled:t.datesEnabled,hoveredDate:t.hoveredDate,selectedDate:t.selectedDate,selectedRange:t.selectedRange,displayMonths:n,dateCustomClasses:t.dateCustomClasses,dateTooltipTexts:t.dateTooltipTexts,monthIndex:r})}));return Object.assign({},t,{flaggedMonths:i})}if("month"===t.view.mode){var o=t.monthsCalendar.map((function(e,i){return o=e,a={isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,hoveredMonth:t.hoveredMonth,selectedDate:t.selectedDate,selectedRange:t.selectedRange,displayMonths:n,monthIndex:i},o.months.forEach((function(t,e){t.forEach((function(t,n){var i,s=r.isSameMonth(t.date,a.hoveredMonth),u=a.isDisabled||T(t.date,a.minDate,a.maxDate);!a.selectedDate&&a.selectedRange?(i=r.isSameMonth(t.date,a.selectedRange[0]))||(i=r.isSameMonth(t.date,a.selectedRange[1])):i=r.isSameMonth(t.date,a.selectedDate);var l=Object.assign(t,{isHovered:s,isDisabled:u,isSelected:i});t.isHovered===l.isHovered&&t.isDisabled===l.isDisabled&&t.isSelected===l.isSelected||(o.months[e][n]=l)}))})),o.hideLeftArrow=a.monthIndex>0&&a.monthIndex!==a.displayMonths,o.hideRightArrow=a.monthIndex<a.displayMonths&&a.monthIndex+1!==a.displayMonths,o.disableLeftArrow=k(r.shiftDate(o.months[0][0].date,{year:-1}),a.minDate,a.maxDate),o.disableRightArrow=k(r.shiftDate(o.months[0][0].date,{year:1}),a.minDate,a.maxDate),o;var o,a}));return Object.assign({},t,{flaggedMonthsCalendar:o})}if("year"===t.view.mode){var a=t.yearsCalendarModel.map((function(e,i){return function(t,e){t.years.forEach((function(n,i){n.forEach((function(n,o){var a,s=r.isSameYear(n.date,e.hoveredYear),u=e.isDisabled||k(n.date,e.minDate,e.maxDate);!e.selectedDate&&e.selectedRange?(a=r.isSameYear(n.date,e.selectedRange[0]))||(a=r.isSameYear(n.date,e.selectedRange[1])):a=r.isSameYear(n.date,e.selectedDate);var l=Object.assign(n,{isHovered:s,isDisabled:u,isSelected:a});n.isHovered===l.isHovered&&n.isDisabled===l.isDisabled&&n.isSelected===l.isSelected||(t.years[i][o]=l)}))})),t.hideLeftArrow=e.yearIndex>0&&e.yearIndex!==e.displayMonths,t.hideRightArrow=e.yearIndex<e.displayMonths&&e.yearIndex+1!==e.displayMonths,t.disableLeftArrow=k(r.shiftDate(t.years[0][0].date,{year:-1}),e.minDate,e.maxDate);var n=t.years.length-1,i=t.years[n].length-1;return t.disableRightArrow=k(r.shiftDate(t.years[n][i].date,{year:1}),e.minDate,e.maxDate),t}(e,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,hoveredYear:t.hoveredYear,selectedDate:t.selectedDate,selectedRange:t.selectedRange,displayMonths:n,yearIndex:i})}));return Object.assign({},t,{yearsCalendarFlagged:a})}return t}(t);case w.NAVIGATE_OFFSET:return function(t,e){var n={view:{mode:t.view.mode,date:H(t,e)}};return Object.assign({},t,n)}(t,e);case w.NAVIGATE_TO:var n=e.payload,i=r.setFullDate(t.view.date,n.unit),o=void 0,a=void 0;return o=P(n.viewMode,t.minMode)?{view:{date:i,mode:a=n.viewMode}}:{selectedDate:i,view:{date:i,mode:a=t.view.mode}},Object.assign({},t,o);case w.CHANGE_VIEWMODE:if(!P(e.payload,t.minMode))return t;o={view:{date:i=t.view.date,mode:a=e.payload}};return Object.assign({},t,o);case w.HOVER:return Object.assign({},t,{hoveredDate:e.payload});case w.SELECT:o={selectedDate:e.payload,view:t.view},a=t.view.mode,i=q(e.payload||t.view.date,t.minDate,t.maxDate);return o.view={mode:a,date:i},Object.assign({},t,o);case w.SET_OPTIONS:a=(o=e.payload).minMode?o.minMode:t.view.mode,i=q(r.isDateValid(o.value)&&o.value||r.isArray(o.value)&&r.isDateValid(o.value[0])&&o.value[0]||t.view.date,o.minDate,o.maxDate);return o.view={mode:a,date:i},o.value&&(r.isArray(o.value)&&(o.selectedRange=o.value),o.value instanceof Date&&(o.selectedDate=o.value)),Object.assign({},t,o);case w.SELECT_RANGE:o={selectedRange:e.payload,view:t.view},a=t.view.mode,i=q(e.payload&&e.payload[0]||t.view.date,t.minDate,t.maxDate);return o.view={mode:a,date:i},Object.assign({},t,o);case w.SET_MIN_DATE:return Object.assign({},t,{minDate:e.payload});case w.SET_MAX_DATE:return Object.assign({},t,{maxDate:e.payload});case w.SET_IS_DISABLED:return Object.assign({},t,{isDisabled:e.payload});case w.SET_DATE_CUSTOM_CLASSES:return Object.assign({},t,{dateCustomClasses:e.payload});case w.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},t,{dateTooltipTexts:e.payload});default:return t}}function H(t,e){if("year"===t.view.mode&&"year"===t.minMode){var n=D(t,0),i=r.shiftDate(n,{year:-F});return r.shiftDate(i,e.payload)}return r.shiftDate(r.startOf(t.view.date,"month"),e.payload)}function U(t){return{locale:t.locale,monthTitle:t.monthTitle,yearTitle:t.yearTitle,dayLabel:t.dayLabel,monthLabel:t.monthLabel,yearLabel:t.yearLabel,weekNumbers:t.weekNumbers}}function q(t,e,n){var i=Array.isArray(t)?t[0]:t;return e&&r.isAfter(e,i,"day")?e:n&&r.isBefore(n,i,"day")?n:i}function Y(t,e,n){return!(!n||!r.isSame(n,t,"day"))||!(!e||!n||e.getMonth()!==n.getMonth())}var z=function(t){function n(){var e=new a.BehaviorSubject({type:"[datepicker] dispatcher init"}),n=new s.MiniState(C,e,V);return t.call(this,e,V,n)||this}return f(n,t),n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[]},n}(s.MiniStore),W=function(t){function o(n,r,i,o,a,s,u){var l=t.call(this)||this;return l._config=r,l._store=i,l._element=o,l._actions=a,l._positionService=u,l.valueChange=new e.EventEmitter,l.animationState="void",l._subs=[],l._effects=s,n.setStyle(o.nativeElement,"display","block"),n.setStyle(o.nativeElement,"position","absolute"),l}return f(o,t),Object.defineProperty(o.prototype,"value",{set:function(t){this._effects.setValue(t)},enumerable:!0,configurable:!0}),o.prototype.ngOnInit=function(){var t=this;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition}},allowedPositions:["top","bottom"]}),this._positionService.event$.pipe(n.take(1)).subscribe((function(){t._positionService.disable(),t._config.isAnimated?t.animationState=t.isTopPosition?"animated-up":"animated-down":t.animationState="unanimated"})),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this._effects.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select((function(t){return t.selectedDate})).subscribe((function(e){return t.valueChange.emit(e)}))),this._store.dispatch(this._actions.changeViewMode(this._config.startView))},Object.defineProperty(o.prototype,"isTopPosition",{get:function(){return this._element.nativeElement.classList.contains("top")},enumerable:!0,configurable:!0}),o.prototype.positionServiceEnable=function(){this._positionService.enable()},o.prototype.daySelectHandler=function(t){t&&((this.isOtherMonthsActive?t.isDisabled:t.isOtherMonth||t.isDisabled)||this._store.dispatch(this._actions.select(t.date)))},o.prototype.monthSelectHandler=function(t){t&&!t.isDisabled&&this._store.dispatch(this._actions.navigateTo({unit:{month:r.getMonth(t.date),year:r.getFullYear(t.date)},viewMode:"day"}))},o.prototype.yearSelectHandler=function(t){t&&!t.isDisabled&&this._store.dispatch(this._actions.navigateTo({unit:{year:r.getFullYear(t.date)},viewMode:"month"}))},o.prototype.setToday=function(){this._store.dispatch(this._actions.select(new Date))},o.prototype.clearDate=function(){this._store.dispatch(this._actions.select(void 0))},o.prototype.ngOnDestroy=function(){var t,e;try{for(var n=v(this._subs),r=n.next();!r.done;r=n.next()){r.value.unsubscribe()}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this._effects.destroy()},o.decorators=[{type:e.Component,args:[{selector:"bs-datepicker-container",providers:[z,x],template:'\x3c!-- days calendar view mode --\x3e\n<div class="bs-datepicker" [ngClass]="containerClass" *ngIf="viewMode | async">\n <div class="bs-datepicker-container"\n [@datepickerAnimation]="animationState"\n (@datepickerAnimation.done)="positionServiceEnable()">\n \x3c!--calendars--\x3e\n <div class="bs-calendar-container" [ngSwitch]="viewMode | async" role="application">\n \x3c!--days calendar--\x3e\n <div *ngSwitchCase="\'day\'" class="bs-media-container">\n <bs-days-calendar-view\n *ngFor="let calendar of daysCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n [options]="options | async"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="dayHoverHandler($event)"\n (onHoverWeek)="weekHoverHandler($event)"\n (onSelect)="daySelectHandler($event)">\n </bs-days-calendar-view>\n </div>\n\n \x3c!--months calendar--\x3e\n <div *ngSwitchCase="\'month\'" class="bs-media-container">\n <bs-month-calendar-view\n *ngFor="let calendar of monthsCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="monthHoverHandler($event)"\n (onSelect)="monthSelectHandler($event)">\n </bs-month-calendar-view>\n </div>\n\n \x3c!--years calendar--\x3e\n <div *ngSwitchCase="\'year\'" class="bs-media-container">\n <bs-years-calendar-view\n *ngFor="let calendar of yearsCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="yearHoverHandler($event)"\n (onSelect)="yearSelectHandler($event)">\n </bs-years-calendar-view>\n </div>\n </div>\n\n \x3c!--applycancel buttons--\x3e\n <div class="bs-datepicker-buttons" *ngIf="false">\n <button class="btn btn-success" type="button">Apply</button>\n <button class="btn btn-default" type="button">Cancel</button>\n </div>\n\n <div class="bs-datepicker-buttons" *ngIf="showTodayBtn || showClearBtn">\n <div class="btn-today-wrapper"\n [class.today-left]="todayPos === \'left\'"\n [class.today-right]="todayPos === \'right\'"\n [class.today-center]="todayPos === \'center\'"\n *ngIf="showTodayBtn">\n <button class="btn btn-success" (click)="setToday()">{{todayBtnLbl}}</button>\n </div>\n\n <div class="btn-clear-wrapper"\n [class.clear-left]="clearPos === \'left\'"\n [class.clear-right]="clearPos === \'right\'"\n [class.clear-center]="clearPos === \'center\'"\n *ngIf="showClearBtn">\n <button class="btn btn-success" (click)="clearDate()">{{clearBtnLbl}}</button>\n </div>\n </div>\n\n </div>\n\n \x3c!--custom dates or date ranges picker--\x3e\n <div class="bs-datepicker-custom-range" *ngIf="customRanges?.length > 0">\n <bs-custom-date-view\n [selectedRange]="chosenRange"\n [ranges]="customRanges"\n [customRangeLabel]="customRangeBtnLbl"\n (onSelect)="setRangeOnCalendar($event)">\n </bs-custom-date-view>\n </div>\n</div>\n',host:{class:"bottom","(click)":"_stopPropagation($event)",role:"dialog","aria-label":"calendar"},animations:[b]}]}],o.ctorParameters=function(){return[{type:e.Renderer2},{type:g},{type:z},{type:e.ElementRef},{type:w},{type:x},{type:i.PositioningService}]},o}(_);var G=function(){function t(t,n,r,i,o){this._config=t,this._elementRef=n,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.bsValueChange=new e.EventEmitter,this._subs=[],this._dateInputFormat$=new a.Subject,Object.assign(this,this._config),this._datepicker=o.createLoader(n,i,r),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new a.BehaviorSubject(this.isOpen)}return Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._datepicker.isShown},set:function(t){this.isOpen$.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bsValue",{set:function(t){this._bsValue&&t&&this._bsValue.getTime()===t.getTime()||(this._bsValue=t,this.bsValueChange.emit(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bsConfig",{get:function(){return this._bsConfig},set:function(t){this._bsConfig=t,this.setConfig(),this._dateInputFormat$.next(t&&t.dateInputFormat)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputFormat$",{get:function(){return this._dateInputFormat$},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.isDestroy$=new a.Subject,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:function(){return t.show()}}),this.setConfig()},t.prototype.ngOnChanges=function(t){this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),t.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),t.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),t.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))},t.prototype.ngAfterViewInit=function(){var t=this;this.isOpen$.pipe(n.filter((function(e){return e!==t.isOpen})),n.takeUntil(this.isDestroy$)).subscribe((function(){return t.toggle()}))},t.prototype.show=function(){var t=this;this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:g,useValue:this._config}).attach(W).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this._subs.push(this.bsValueChange.subscribe((function(e){t._datepickerRef.instance.value=e}))),this._subs.push(this._datepickerRef.instance.valueChange.subscribe((function(e){t.bsValue=e,t.hide()}))))},t.prototype.hide=function(){var t,e;this.isOpen&&this._datepicker.hide();try{for(var n=v(this._subs),r=n.next();!r.done;r=n.next()){r.value.unsubscribe()}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()},t.prototype.toggle=function(){if(this.isOpen)return this.hide();this.show()},t.prototype.setConfig=function(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._bsValue,isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode})},t.prototype.ngOnDestroy=function(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(),this.isDestroy$.complete())},t.decorators=[{type:e.Directive,args:[{selector:"[bsDatepicker]",exportAs:"bsDatepicker"}]}],t.ctorParameters=function(){return[{type:g},{type:e.ElementRef},{type:e.Renderer2},{type:e.ViewContainerRef},{type:u.ComponentLoaderFactory}]},t.propDecorators={placement:[{type:e.Input}],triggers:[{type:e.Input}],outsideClick:[{type:e.Input}],container:[{type:e.Input}],outsideEsc:[{type:e.Input}],isOpen:[{type:e.Input}],onShown:[{type:e.Output}],onHidden:[{type:e.Output}],bsValue:[{type:e.Input}],bsConfig:[{type:e.Input}],isDisabled:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],minMode:[{type:e.Input}],daysDisabled:[{type:e.Input}],datesDisabled:[{type:e.Input}],datesEnabled:[{type:e.Input}],dateCustomClasses:[{type:e.Input}],dateTooltipTexts:[{type:e.Input}],bsValueChange:[{type:e.Output}]},t}();var K=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return f(n,t),n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.\u0275prov=e["\u0275\u0275defineInjectable"]({factory:function(){return new n},token:n,providedIn:"root"}),n}(g),$=function(t){function n(e,n,r,i,o,a,s){var u=t.call(this,e,n,r,i,o,a,s)||this;return e.setStyle(i.nativeElement,"display","inline-block"),e.setStyle(i.nativeElement,"position","static"),u}return f(n,t),n.decorators=[{type:e.Component,args:[{selector:"bs-datepicker-inline-container",providers:[z,x],template:'\x3c!-- days calendar view mode --\x3e\n<div class="bs-datepicker" [ngClass]="containerClass" *ngIf="viewMode | async">\n <div class="bs-datepicker-container"\n [@datepickerAnimation]="animationState"\n (@datepickerAnimation.done)="positionServiceEnable()">\n \x3c!--calendars--\x3e\n <div class="bs-calendar-container" [ngSwitch]="viewMode | async" role="application">\n \x3c!--days calendar--\x3e\n <div *ngSwitchCase="\'day\'" class="bs-media-container">\n <bs-days-calendar-view\n *ngFor="let calendar of daysCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n [options]="options | async"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="dayHoverHandler($event)"\n (onHoverWeek)="weekHoverHandler($event)"\n (onSelect)="daySelectHandler($event)">\n </bs-days-calendar-view>\n </div>\n\n \x3c!--months calendar--\x3e\n <div *ngSwitchCase="\'month\'" class="bs-media-container">\n <bs-month-calendar-view\n *ngFor="let calendar of monthsCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="monthHoverHandler($event)"\n (onSelect)="monthSelectHandler($event)">\n </bs-month-calendar-view>\n </div>\n\n \x3c!--years calendar--\x3e\n <div *ngSwitchCase="\'year\'" class="bs-media-container">\n <bs-years-calendar-view\n *ngFor="let calendar of yearsCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="yearHoverHandler($event)"\n (onSelect)="yearSelectHandler($event)">\n </bs-years-calendar-view>\n </div>\n </div>\n\n \x3c!--applycancel buttons--\x3e\n <div class="bs-datepicker-buttons" *ngIf="false">\n <button class="btn btn-success" type="button">Apply</button>\n <button class="btn btn-default" type="button">Cancel</button>\n </div>\n\n <div class="bs-datepicker-buttons" *ngIf="showTodayBtn || showClearBtn">\n <div class="btn-today-wrapper"\n [class.today-left]="todayPos === \'left\'"\n [class.today-right]="todayPos === \'right\'"\n [class.today-center]="todayPos === \'center\'"\n *ngIf="showTodayBtn">\n <button class="btn btn-success" (click)="setToday()">{{todayBtnLbl}}</button>\n </div>\n\n <div class="btn-clear-wrapper"\n [class.clear-left]="clearPos === \'left\'"\n [class.clear-right]="clearPos === \'right\'"\n [class.clear-center]="clearPos === \'center\'"\n *ngIf="showClearBtn">\n <button class="btn btn-success" (click)="clearDate()">{{clearBtnLbl}}</button>\n </div>\n </div>\n\n </div>\n\n \x3c!--custom dates or date ranges picker--\x3e\n <div class="bs-datepicker-custom-range" *ngIf="customRanges?.length > 0">\n <bs-custom-date-view\n [selectedRange]="chosenRange"\n [ranges]="customRanges"\n [customRangeLabel]="customRangeBtnLbl"\n (onSelect)="setRangeOnCalendar($event)">\n </bs-custom-date-view>\n </div>\n</div>\n',host:{"(click)":"_stopPropagation($event)"},animations:[b]}]}],n.ctorParameters=function(){return[{type:e.Renderer2},{type:g},{type:z},{type:e.ElementRef},{type:w},{type:x},{type:i.PositioningService}]},n}(W),Z=function(){function t(t,n,r,i,o){this._config=t,this._elementRef=n,this.bsValueChange=new e.EventEmitter,this._subs=[],Object.assign(this,this._config),this._datepicker=o.createLoader(n,i,r)}return Object.defineProperty(t.prototype,"bsValue",{set:function(t){this._bsValue!==t&&(this._bsValue=t,this.bsValueChange.emit(t))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.setConfig(),this._subs.push(this.bsValueChange.subscribe((function(e){t._datepickerRef.instance.value=e}))),this._subs.push(this._datepickerRef.instance.valueChange.subscribe((function(e){t.bsValue=e})))},t.prototype.ngOnChanges=function(t){this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate,this.setConfig()),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate,this.setConfig()),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled,this.setConfig()),t.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled,this._datepickerRef.instance.value=this._bsValue),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled,this.setConfig()),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses,this.setConfig()),t.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts,this.setConfig()))},t.prototype.setConfig=function(){this._datepicker&&this._datepicker.hide(),this._config=Object.assign({},this._config,this.bsConfig,{value:this._bsValue,isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled}),this._datepickerRef=this._datepicker.provide({provide:g,useValue:this._config}).attach($).to(this._elementRef).show()},t.prototype.ngOnDestroy=function(){this._datepicker.dispose()},t.decorators=[{type:e.Directive,args:[{selector:"bs-datepicker-inline",exportAs:"bsDatepickerInline"}]}],t.ctorParameters=function(){return[{type:K},{type:e.ElementRef},{type:e.Renderer2},{type:e.ViewContainerRef},{type:u.ComponentLoaderFactory}]},t.propDecorators={bsValue:[{type:e.Input}],bsConfig:[{type:e.Input}],isDisabled:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],dateCustomClasses:[{type:e.Input}],dateTooltipTexts:[{type:e.Input}],datesEnabled:[{type:e.Input}],datesDisabled:[{type:e.Input}],bsValueChange:[{type:e.Output}]},t}();var X=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.displayMonths=2,e.isAnimated=!1,e}return f(n,t),n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.\u0275prov=e["\u0275\u0275defineInjectable"]({factory:function(){return new n},token:n,providedIn:"root"}),n}(g);var Q=function(t){function o(n,r,i,o,a,s,u){var l=t.call(this)||this;return l._config=r,l._store=i,l._element=o,l._actions=a,l._positionService=u,l.valueChange=new e.EventEmitter,l.animationState="void",l._rangeStack=[],l.chosenRange=[],l._subs=[],l._effects=s,l.customRanges=l._config.ranges,l.customRangeBtnLbl=l._config.customRangeButtonLabel,n.setStyle(o.nativeElement,"display","block"),n.setStyle(o.nativeElement,"position","absolute"),l}return f(o,t),Object.defineProperty(o.prototype,"value",{set:function(t){this._effects.setRangeValue(t)},enumerable:!0,configurable:!0}),o.prototype.ngOnInit=function(){var t=this;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition}},allowedPositions:["top","bottom"]}),this._positionService.event$.pipe(n.take(1)).subscribe((function(){t._positionService.disable(),t._config.isAnimated?t.animationState=t.isTopPosition?"animated-up":"animated-down":t.animationState="unanimated"})),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this._effects.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select((function(t){return t.selectedRange})).subscribe((function(e){t.valueChange.emit(e),t.chosenRange=e})))},Object.defineProperty(o.prototype,"isTopPosition",{get:function(){return this._element.nativeElement.classList.contains("top")},enumerable:!0,configurable:!0}),o.prototype.positionServiceEnable=function(){this._positionService.enable()},o.prototype.daySelectHandler=function(t){t&&((this.isOtherMonthsActive?t.isDisabled:t.isOtherMonth||t.isDisabled)||this.rangesProcessing(t))},o.prototype.monthSelectHandler=function(t){if(t)if(t.isSelected=!0,"month"===this._config.minMode)this.rangesProcessing(t);else{if(t.isDisabled)return;this._store.dispatch(this._actions.navigateTo({unit:{month:r.getMonth(t.date),year:r.getFullYear(t.date)},viewMode:"day"}))}},o.prototype.yearSelectHandler=function(t){if(t)if(t.isSelected=!0,"year"===this._config.minMode)this.rangesProcessing(t);else{if(t.isDisabled)return;this._store.dispatch(this._actions.navigateTo({unit:{year:r.getFullYear(t.date)},viewMode:"month"}))}},o.prototype.rangesProcessing=function(t){1===this._rangeStack.length&&(this._rangeStack=t.date>=this._rangeStack[0]?[this._rangeStack[0],t.date]:[t.date]),0===this._rangeStack.length&&(this._rangeStack=[t.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(t.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])},o.prototype.ngOnDestroy=function(){var t,e;try{for(var n=v(this._subs),r=n.next();!r.done;r=n.next()){r.value.unsubscribe()}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this._effects.destroy()},o.prototype.setRangeOnCalendar=function(t){this._rangeStack=null===t?[]:t.value instanceof Date?[t.value]:t.value,this._store.dispatch(this._actions.selectRange(this._rangeStack))},o.prototype.setMaxDateRangeOnCalendar=function(t){var e=new Date(t);e.setDate(t.getDate()+this._config.maxDateRange),this._effects.setMaxDate(e)},o.decorators=[{type:e.Component,args:[{selector:"bs-daterangepicker-container",providers:[z,x],template:'\x3c!-- days calendar view mode --\x3e\n<div class="bs-datepicker" [ngClass]="containerClass" *ngIf="viewMode | async">\n <div class="bs-datepicker-container"\n [@datepickerAnimation]="animationState"\n (@datepickerAnimation.done)="positionServiceEnable()">\n \x3c!--calendars--\x3e\n <div class="bs-calendar-container" [ngSwitch]="viewMode | async" role="application">\n \x3c!--days calendar--\x3e\n <div *ngSwitchCase="\'day\'" class="bs-media-container">\n <bs-days-calendar-view\n *ngFor="let calendar of daysCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n [options]="options | async"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="dayHoverHandler($event)"\n (onHoverWeek)="weekHoverHandler($event)"\n (onSelect)="daySelectHandler($event)">\n </bs-days-calendar-view>\n </div>\n\n \x3c!--months calendar--\x3e\n <div *ngSwitchCase="\'month\'" class="bs-media-container">\n <bs-month-calendar-view\n *ngFor="let calendar of monthsCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="monthHoverHandler($event)"\n (onSelect)="monthSelectHandler($event)">\n </bs-month-calendar-view>\n </div>\n\n \x3c!--years calendar--\x3e\n <div *ngSwitchCase="\'year\'" class="bs-media-container">\n <bs-years-calendar-view\n *ngFor="let calendar of yearsCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="yearHoverHandler($event)"\n (onSelect)="yearSelectHandler($event)">\n </bs-years-calendar-view>\n </div>\n </div>\n\n \x3c!--applycancel buttons--\x3e\n <div class="bs-datepicker-buttons" *ngIf="false">\n <button class="btn btn-success" type="button">Apply</button>\n <button class="btn btn-default" type="button">Cancel</button>\n </div>\n\n <div class="bs-datepicker-buttons" *ngIf="showTodayBtn || showClearBtn">\n <div class="btn-today-wrapper"\n [class.today-left]="todayPos === \'left\'"\n [class.today-right]="todayPos === \'right\'"\n [class.today-center]="todayPos === \'center\'"\n *ngIf="showTodayBtn">\n <button class="btn btn-success" (click)="setToday()">{{todayBtnLbl}}</button>\n </div>\n\n <div class="btn-clear-wrapper"\n [class.clear-left]="clearPos === \'left\'"\n [class.clear-right]="clearPos === \'right\'"\n [class.clear-center]="clearPos === \'center\'"\n *ngIf="showClearBtn">\n <button class="btn btn-success" (click)="clearDate()">{{clearBtnLbl}}</button>\n </div>\n </div>\n\n </div>\n\n \x3c!--custom dates or date ranges picker--\x3e\n <div class="bs-datepicker-custom-range" *ngIf="customRanges?.length > 0">\n <bs-custom-date-view\n [selectedRange]="chosenRange"\n [ranges]="customRanges"\n [customRangeLabel]="customRangeBtnLbl"\n (onSelect)="setRangeOnCalendar($event)">\n </bs-custom-date-view>\n </div>\n</div>\n',host:{class:"bottom","(click)":"_stopPropagation($event)",role:"dialog","aria-label":"calendar"},animations:[b]}]}],o.ctorParameters=function(){return[{type:e.Renderer2},{type:g},{type:z},{type:e.ElementRef},{type:w},{type:x},{type:i.PositioningService}]},o}(_);var J=function(t){function n(e,n,r,i,o,a,s){var u=t.call(this,e,n,r,i,o,a,s)||this;return e.setStyle(i.nativeElement,"display","inline-block"),e.setStyle(i.nativeElement,"position","static"),u}return f(n,t),n.decorators=[{type:e.Component,args:[{selector:"bs-daterangepicker-inline-container",providers:[z,x],template:'\x3c!-- days calendar view mode --\x3e\n<div class="bs-datepicker" [ngClass]="containerClass" *ngIf="viewMode | async">\n <div class="bs-datepicker-container"\n [@datepickerAnimation]="animationState"\n (@datepickerAnimation.done)="positionServiceEnable()">\n \x3c!--calendars--\x3e\n <div class="bs-calendar-container" [ngSwitch]="viewMode | async" role="application">\n \x3c!--days calendar--\x3e\n <div *ngSwitchCase="\'day\'" class="bs-media-container">\n <bs-days-calendar-view\n *ngFor="let calendar of daysCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n [options]="options | async"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="dayHoverHandler($event)"\n (onHoverWeek)="weekHoverHandler($event)"\n (onSelect)="daySelectHandler($event)">\n </bs-days-calendar-view>\n </div>\n\n \x3c!--months calendar--\x3e\n <div *ngSwitchCase="\'month\'" class="bs-media-container">\n <bs-month-calendar-view\n *ngFor="let calendar of monthsCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="monthHoverHandler($event)"\n (onSelect)="monthSelectHandler($event)">\n </bs-month-calendar-view>\n </div>\n\n \x3c!--years calendar--\x3e\n <div *ngSwitchCase="\'year\'" class="bs-media-container">\n <bs-years-calendar-view\n *ngFor="let calendar of yearsCalendar | async"\n [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n [calendar]="calendar"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="setViewMode($event)"\n (onHover)="yearHoverHandler($event)"\n (onSelect)="yearSelectHandler($event)">\n </bs-years-calendar-view>\n </div>\n </div>\n\n \x3c!--applycancel buttons--\x3e\n <div class="bs-datepicker-buttons" *ngIf="false">\n <button class="btn btn-success" type="button">Apply</button>\n <button class="btn btn-default" type="button">Cancel</button>\n </div>\n\n <div class="bs-datepicker-buttons" *ngIf="showTodayBtn || showClearBtn">\n <div class="btn-today-wrapper"\n [class.today-left]="todayPos === \'left\'"\n [class.today-right]="todayPos === \'right\'"\n [class.today-center]="todayPos === \'center\'"\n *ngIf="showTodayBtn">\n <button class="btn btn-success" (click)="setToday()">{{todayBtnLbl}}</button>\n </div>\n\n <div class="btn-clear-wrapper"\n [class.clear-left]="clearPos === \'left\'"\n [class.clear-right]="clearPos === \'right\'"\n [class.clear-center]="clearPos === \'center\'"\n *ngIf="showClearBtn">\n <button class="btn btn-success" (click)="clearDate()">{{clearBtnLbl}}</button>\n </div>\n </div>\n\n </div>\n\n \x3c!--custom dates or date ranges picker--\x3e\n <div class="bs-datepicker-custom-range" *ngIf="customRanges?.length > 0">\n <bs-custom-date-view\n [selectedRange]="chosenRange"\n [ranges]="customRanges"\n [customRangeLabel]="customRangeBtnLbl"\n (onSelect)="setRangeOnCalendar($event)">\n </bs-custom-date-view>\n </div>\n</div>\n',host:{"(click)":"_stopPropagation($event)"},animations:[b]}]}],n.ctorParameters=function(){return[{type:e.Renderer2},{type:g},{type:z},{type:e.ElementRef},{type:w},{type:x},{type:i.PositioningService}]},n}(Q),tt=function(){function t(t,n,r,i,o){this._config=t,this._elementRef=n,this.bsValueChange=new e.EventEmitter,this._subs=[],Object.assign(this,this._config),this._datepicker=o.createLoader(n,i,r)}return Object.defineProperty(t.prototype,"bsValue",{set:function(t){this._bsValue!==t&&(this._bsValue=t,this.bsValueChange.emit(t))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.setConfig(),this._subs.push(this.bsValueChange.subscribe((function(e){t._datepickerRef.instance.value=e}))),this._subs.push(this._datepickerRef.instance.valueChange.pipe(n.filter((function(t){return t&&t[0]&&!!t[1]}))).subscribe((function(e){t.bsValue=e})))},t.prototype.ngOnChanges=function(t){this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate,this.setConfig()),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate,this.setConfig()),t.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled,this.setConfig()),t.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled,this.setConfig()),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled,this.setConfig()),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses,this.setConfig()))},t.prototype.setConfig=function(){this._datepicker&&this._datepicker.hide(),this._config=Object.assign({},this._config,this.bsConfig,{value:this._bsValue,isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:this.bsConfig&&this.bsConfig.ranges,maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange}),this._datepickerRef=this._datepicker.provide({provide:g,useValue:this._config}).attach(J).to(this._elementRef).show()},t.prototype.ngOnDestroy=function(){this._datepicker.dispose()},t.decorators=[{type:e.Directive,args:[{selector:"bs-daterangepicker-inline",exportAs:"bsDaterangepickerInline"}]}],t.ctorParameters=function(){return[{type:X},{type:e.ElementRef},{type:e.Renderer2},{type:e.ViewContainerRef},{type:u.ComponentLoaderFactory}]},t.propDecorators={bsValue:[{type:e.Input}],bsConfig:[{type:e.Input}],isDisabled:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],dateCustomClasses:[{type:e.Input}],daysDisabled:[{type:e.Input}],datesDisabled:[{type:e.Input}],datesEnabled:[{type:e.Input}],bsValueChange:[{type:e.Output}]},t}();var et={provide:l.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return rt})),multi:!0},nt={provide:l.NG_VALIDATORS,useExisting:e.forwardRef((function(){return rt})),multi:!0},rt=function(){function t(t,e,r,i,o){var a=this;this._picker=t,this._localeService=e,this._renderer=r,this._elRef=i,this.changeDetection=o,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._picker.bsValueChange.subscribe((function(t){a._setInputValue(t),a._value!==t&&(a._value=t,a._onChange(t),a._onTouched()),a.changeDetection.markForCheck()})),this._localeService.localeChange.subscribe((function(){a._setInputValue(a._value)})),this._picker.dateInputFormat$.pipe(n.distinctUntilChanged()).subscribe((function(){a._setInputValue(a._value)}))}return t.prototype.onKeydownEvent=function(t){13!==t.keyCode&&"Enter"!==t.code||this.hide()},t.prototype._setInputValue=function(t){var e=t?r.formatDate(t,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",e)},t.prototype.onChange=function(t){this.writeValue(t.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()},t.prototype.validate=function(t){var e=t.value;if(null==e||""===e)return null;if(r.isDate(e)){if(!r.isDateValid(e))return{bsDate:{invalid:e}};if(this._picker&&this._picker.minDate&&r.isBefore(e,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&r.isAfter(e,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}},t.prototype.registerOnValidatorChange=function(t){this._validatorChange=t},t.prototype.writeValue=function(t){if(t){var e=this._localeService.currentLocale;if(!r.getLocale(e))throw new Error('Locale "'+e+'" is not defined, please add it with "defineLocale(...)"');this._value=r.parseDate(t,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc&&(this._value=r.utcAsLocal(this._value))}else this._value=null;this._picker.bsValue=this._value},t.prototype.setDisabledState=function(t){this._picker.isDisabled=t,t?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.onBlur=function(){this._onTouched()},t.prototype.hide=function(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()},t.decorators=[{type:e.Directive,args:[{selector:"input[bsDatepicker]",host:{"(change)":"onChange($event)","(keyup.esc)":"hide()","(keydown)":"onKeydownEvent($event)","(blur)":"onBlur()"},providers:[et,nt]}]}],t.ctorParameters=function(){return[{type:G,decorators:[{type:e.Host}]},{type:E},{type:e.Renderer2},{type:e.ElementRef},{type:e.ChangeDetectorRef}]},t}();var it=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.displayMonths=2,e}return f(n,t),n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.\u0275prov=e["\u0275\u0275defineInjectable"]({factory:function(){return new n},token:n,providedIn:"root"}),n}(g);var ot=function(){function t(t,n,r,i,o){this._config=t,this._elementRef=n,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.bsValueChange=new e.EventEmitter,this._subs=[],this._rangeInputFormat$=new a.Subject,this._datepicker=o.createLoader(n,i,r),Object.assign(this,t),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new a.BehaviorSubject(this.isOpen)}return Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._datepicker.isShown},set:function(t){this.isOpen$.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bsValue",{set:function(t){this._bsValue!==t&&(this._bsValue=t,this.bsValueChange.emit(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bsConfig",{get:function(){return this._bsConfig},set:function(t){this._bsConfig=t,this.setConfig(),this._rangeInputFormat$.next(t&&t.rangeInputFormat)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangeInputFormat$",{get:function(){return this._rangeInputFormat$},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.isDestroy$=new a.Subject,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:function(){return t.show()}}),this.setConfig()},t.prototype.ngOnChanges=function(t){this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),t.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),t.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))},t.prototype.ngAfterViewInit=function(){var t=this;this.isOpen$.pipe(n.filter((function(e){return e!==t.isOpen})),n.takeUntil(this.isDestroy$)).subscribe((function(){return t.toggle()}))},t.prototype.show=function(){var t=this;this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:g,useValue:this._config}).attach(Q).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this._subs.push(this.bsValueChange.subscribe((function(e){t._datepickerRef.instance.value=e}))),this._subs.push(this._datepickerRef.instance.valueChange.pipe(n.filter((function(t){return t&&t[0]&&!!t[1]}))).subscribe((function(e){t.bsValue=e,t.hide()}))))},t.prototype.setConfig=function(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._bsValue,isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:this.bsConfig&&this.bsConfig.ranges,maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange})},t.prototype.hide=function(){var t,e;this.isOpen&&this._datepicker.hide();try{for(var n=v(this._subs),r=n.next();!r.done;r=n.next()){r.value.unsubscribe()}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()},t.prototype.toggle=function(){if(this.isOpen)return this.hide();this.show()},t.prototype.ngOnDestroy=function(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(),this.isDestroy$.complete())},t.decorators=[{type:e.Directive,args:[{selector:"[bsDaterangepicker]",exportAs:"bsDaterangepicker"}]}],t.ctorParameters=function(){return[{type:it},{type:e.ElementRef},{type:e.Renderer2},{type:e.ViewContainerRef},{type:u.ComponentLoaderFactory}]},t.propDecorators={placement:[{type:e.Input}],triggers:[{type:e.Input}],outsideClick:[{type:e.Input}],container:[{type:e.Input}],outsideEsc:[{type:e.Input}],isOpen:[{type:e.Input}],onShown:[{type:e.Output}],onHidden:[{type:e.Output}],bsValue:[{type:e.Input}],bsConfig:[{type:e.Input}],isDisabled:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],dateCustomClasses:[{type:e.Input}],daysDisabled:[{type:e.Input}],datesDisabled:[{type:e.Input}],datesEnabled:[{type:e.Input}],bsValueChange:[{type:e.Output}]},t}();var at={provide:l.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return ut})),multi:!0},st={provide:l.NG_VALIDATORS,useExisting:e.forwardRef((function(){return ut})),multi:!0},ut=function(){function t(t,e,r,i,o){var a=this;this._picker=t,this._localeService=e,this._renderer=r,this._elRef=i,this.changeDetection=o,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._picker.bsValueChange.subscribe((function(t){a._setInputValue(t),a._value!==t&&(a._value=t,a._onChange(t),a._onTouched()),a.changeDetection.markForCheck()})),this._localeService.localeChange.subscribe((function(){a._setInputValue(a._value)})),this._picker.rangeInputFormat$.pipe(n.distinctUntilChanged()).subscribe((function(){a._setInputValue(a._value)}))}return t.prototype.onKeydownEvent=function(t){13!==t.keyCode&&"Enter"!==t.code||this.hide()},t.prototype._setInputValue=function(t){var e="";if(t){var n=t[0]?r.formatDate(t[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",i=t[1]?r.formatDate(t[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";e=n&&i?n+this._picker._config.rangeSeparator+i:""}this._renderer.setProperty(this._elRef.nativeElement,"value",e)},t.prototype.onChange=function(t){this.writeValue(t.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()},t.prototype.validate=function(t){var e=t.value,n=[];if(null==e||!r.isArray(e))return null;e.sort((function(t,e){return t-e}));var i=r.isDateValid(e[0]),o=r.isDateValid(e[1]);return i?o?(this._picker&&this._picker.minDate&&r.isBefore(e[0],this._picker.minDate,"date")&&(e[0]=this._picker.minDate,n.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&r.isAfter(e[1],this._picker.maxDate,"date")&&(e[1]=this._picker.maxDate,n.push({bsDate:{maxDate:this._picker.maxDate}})),n.length>0?(this.writeValue(e),n):void 0):{bsDate:{invalid:e[1]}}:{bsDate:{invalid:e[0]}}},t.prototype.registerOnValidatorChange=function(t){this._validatorChange=t},t.prototype.writeValue=function(t){var e=this;if(t){var n=this._localeService.currentLocale;if(!r.getLocale(n))throw new Error('Locale "'+n+'" is not defined, please add it with "defineLocale(...)"');var i=[];"string"==typeof t&&(i=t.split(this._picker._config.rangeSeparator)),Array.isArray(t)&&(i=t),this._value=i.map((function(t){return e._picker._config.useUtc?r.utcAsLocal(r.parseDate(t,e._picker._config.rangeInputFormat,e._localeService.currentLocale)):r.parseDate(t,e._picker._config.rangeInputFormat,e._localeService.currentLocale)})).map((function(t){return isNaN(t.valueOf())?null:t}))}else this._value=null;this._picker.bsValue=this._value},t.prototype.setDisabledState=function(t){this._picker.isDisabled=t,t?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.onBlur=function(){this._onTouched()},t.prototype.hide=function(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()},t.decorators=[{type:e.Directive,args:[{selector:"input[bsDaterangepicker]",host:{"(change)":"onChange($event)","(keyup.esc)":"hide()","(keydown)":"onKeydownEvent($event)","(blur)":"onBlur()"},providers:[at,st]}]}],t.ctorParameters=function(){return[{type:ot,decorators:[{type:e.Host}]},{type:E},{type:e.Renderer2},{type:e.ElementRef},{type:e.ChangeDetectorRef}]},t}();var lt=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"bs-calendar-layout",template:'\n \x3c!-- current date, will be added in nearest releases --\x3e\n <bs-current-date title="hey there" *ngIf="false"></bs-current-date>\n\n \x3c!--navigation--\x3e\n <div class="bs-datepicker-head">\n <ng-content select="bs-datepicker-navigation-view"></ng-content>\n </div>\n\n <div class="bs-datepicker-body">\n <ng-content></ng-content>\n </div>\n\n \x3c!--timepicker--\x3e\n <bs-timepicker *ngIf="false"></bs-timepicker>\n '}]}],t}(),ct=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"bs-current-date",template:'<div class="current-timedate"><span>{{ title }}</span></div>'}]}],t.propDecorators={title:[{type:e.Input}]},t}();var pt=function(){function t(){this.onSelect=new e.EventEmitter,this.customRange=null}return t.prototype.selectFromRanges=function(t){this.onSelect.emit(t)},t.prototype.checkRange=function(){var t=this;return!!this.ranges&&this.ranges.filter((function(e){return e.value===t.selectedRange})).length>0},t.decorators=[{type:e.Component,args:[{selector:"bs-custom-date-view",template:'\n <div class="bs-datepicker-predefined-btns">\n <button *ngFor="let range of ranges"\n type="button"\n class="btn"\n (click)="selectFromRanges(range)"\n [class.selected]="range.value === selectedRange">\n {{ range.label }}\n </button>\n <button\n type="button"\n class="btn"\n (click)="selectFromRanges(customRange)"\n [class.selected]="!checkRange()">\n {{customRangeLabel}}\n </button>\n </div>\n ',changeDetection:e.ChangeDetectionStrategy.OnPush}]}],t.propDecorators={ranges:[{type:e.Input}],selectedRange:[{type:e.Input}],customRangeLabel:[{type:e.Input}],onSelect:[{type:e.Output}]},t}();var dt=function(){function t(t,e,n){this._config=t,this._elRef=e,this._renderer=n}return t.prototype.ngOnInit=function(){var t=this;this.day.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day.customClasses&&this.day.customClasses.split(" ").filter((function(t){return t})).forEach((function(e){t._renderer.addClass(t._elRef.nativeElement,e)}))},t.decorators=[{type:e.Component,args:[{selector:"[bsDatepickerDayDecorator]",changeDetection:e.ChangeDetectionStrategy.OnPush,host:{"[class.disabled]":"day.isDisabled","[class.is-highlighted]":"day.isHovered","[class.is-other-month]":"day.isOtherMonth","[class.is-active-other-month]":"day.isOtherMonthHovered","[class.in-range]":"day.isInRange","[class.select-start]":"day.isSelectionStart","[class.select-end]":"day.isSelectionEnd","[class.selected]":"day.isSelected"},template:"{{ day.label }}"}]}],t.ctorParameters=function(){return[{type:g},{type:e.ElementRef},{type:e.Renderer2}]},t.propDecorators={day:[{type:e.Input}]},t}();var ht={UP:0,DOWN:1};ht[ht.UP]="UP",ht[ht.DOWN]="DOWN";var ft=function(){function t(){this.onNavigate=new e.EventEmitter,this.onViewMode=new e.EventEmitter}return t.prototype.navTo=function(t){this.onNavigate.emit(t?ht.DOWN:ht.UP)},t.prototype.view=function(t){this.onViewMode.emit(t)},t.decorators=[{type:e.Component,args:[{selector:"bs-datepicker-navigation-view",changeDetection:e.ChangeDetectionStrategy.OnPush,template:'\n <button class="previous"\n [disabled]="calendar.disableLeftArrow"\n [style.visibility]="calendar.hideLeftArrow ? \'hidden\' : \'visible\'"\n type="button"\n (click)="navTo(true)">\n <span>‹</span>\n </button>\n\n <ng-container *ngIf="calendar.monthTitle">\n ​ \x3c!-- zero-width space needed for correct alignement\n with preserveWhitespaces: false in Angular --\x3e\n\n <button class="current"\n type="button"\n (click)="view(\'month\')"\n ><span>{{ calendar.monthTitle }}</span>\n </button>\n </ng-container>\n\n ​ \x3c!-- zero-width space needed for correct alignement\n with preserveWhitespaces: false in Angular --\x3e\n\n <button class="current" (click)="view(\'year\')" type="button">\n <span>{{ calendar.yearTitle }}</span>\n </button>\n\n ​ \x3c!-- zero-width space needed for correct alignement\n with preserveWhitespaces: false in Angular --\x3e\n\n <button class="next"\n [disabled]="calendar.disableRightArrow"\n [style.visibility]="calendar.hideRightArrow ? \'hidden\' : \'visible\'"\n type="button"\n (click)="navTo(false)"><span>›</span>\n </button>\n '}]}],t.propDecorators={calendar:[{type:e.Input}],onNavigate:[{type:e.Output}],onViewMode:[{type:e.Output}]},t}();var vt=function(){function t(t){this._config=t,this.onNavigate=new e.EventEmitter,this.onViewMode=new e.EventEmitter,this.onSelect=new e.EventEmitter,this.onHover=new e.EventEmitter,this.onHoverWeek=new e.EventEmitter,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}return t.prototype.navigateTo=function(t){var e=ht.DOWN===t?-1:1;this.onNavigate.emit({step:{month:e}})},t.prototype.changeViewMode=function(t){this.onViewMode.emit(t)},t.prototype.selectDay=function(t){this.onSelect.emit(t)},t.prototype.selectWeek=function(t){var e=this;if((this._config.selectWeek||this._config.selectWeekDateRange)&&0!==t.days.length)if(this._config.selectWeek&&t.days[0]&&!t.days[0].isDisabled&&this._config.selectFromOtherMonth)this.onSelect.emit(t.days[0]);else{var n=t.days.find((function(t){return(e._config.selectFromOtherMonth||!t.isOtherMonth)&&!t.isDisabled}));if(this.onSelect.emit(n),this._config.selectWeekDateRange){var r=t.days.slice(0).reverse().find((function(t){return(e._config.selectFromOtherMonth||!t.isOtherMonth)&&!t.isDisabled}));this.onSelect.emit(r)}}},t.prototype.weekHoverHandler=function(t,e){var n=this;(this._config.selectWeek||this._config.selectWeekDateRange)&&(t.days.find((function(t){return(n._config.selectFromOtherMonth||!t.isOtherMonth)&&!t.isDisabled}))&&(t.isHovered=e,this.isWeekHovered=e,this.onHoverWeek.emit(t)))},t.prototype.hoverDay=function(t,e){this._config.selectFromOtherMonth&&t.isOtherMonth&&(t.isOtherMonthHovered=e),this._config.dateTooltipTexts&&(t.tooltipText="",this._config.dateTooltipTexts.forEach((function(e){r.isSameDay(e.date,t.date)&&(t.tooltipText=e.tooltipText)}))),this.onHover.emit({cell:t,isHovered:e})},t.decorators=[{type:e.Component,args:[{selector:"bs-days-calendar-view",template:'\n <bs-calendar-layout>\n <bs-datepicker-navigation-view\n [calendar]="calendar"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="changeViewMode($event)"\n ></bs-datepicker-navigation-view>\n\n \x3c!--days matrix--\x3e\n <table role="grid" class="days weeks">\n <thead>\n <tr>\n \x3c!--if show weeks--\x3e\n <th *ngIf="options.showWeekNumbers"></th>\n <th *ngFor="let weekday of calendar.weekdays; let i = index"\n aria-label="weekday">{{ calendar.weekdays[i] }}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let week of calendar.weeks; let i = index">\n <td class="week" [class.active-week]="isWeekHovered" *ngIf="options.showWeekNumbers">\n <span *ngIf="isiOS" (click)="selectWeek(week)">{{ calendar.weekNumbers[i] }}</span>\n <span *ngIf="!isiOS"\n (click)="selectWeek(week)"\n (mouseenter)="weekHoverHandler(week, true)"\n (mouseleave)="weekHoverHandler(week, false)">{{ calendar.weekNumbers[i] }}</span>\n </td>\n <td *ngFor="let day of week.days" role="gridcell">\n\n \x3c!-- When we want to show tooltips for dates --\x3e\n <span *ngIf="!isiOS && isShowTooltip" bsDatepickerDayDecorator\n [day]="day"\n (click)="selectDay(day)"\n tooltip="{{day.tooltipText}}"\n (mouseenter)="hoverDay(day, true)"\n (mouseleave)="hoverDay(day, false)">{{ day.label }} 3</span>\n \x3c!-- When tooltips for dates are disabled --\x3e\n <span *ngIf="!isiOS && !isShowTooltip" bsDatepickerDayDecorator\n [day]="day"\n (click)="selectDay(day)"\n (mouseenter)="hoverDay(day, true)"\n (mouseleave)="hoverDay(day, false)">{{ day.label }} 2</span>\n\n \x3c!-- For mobile iOS view, tooltips are not needed --\x3e\n <span *ngIf="isiOS" bsDatepickerDayDecorator\n [day]="day"\n (click)="selectDay(day)">{{ day.label }} 1</span>\n </td>\n </tr>\n </tbody>\n </table>\n\n </bs-calendar-layout>\n '}]}],t.ctorParameters=function(){return[{type:g}]},t.propDecorators={calendar:[{type:e.Input}],options:[{type:e.Input}],onNavigate:[{type:e.Output}],onViewMode:[{type:e.Output}],onSelect:[{type:e.Output}],onHover:[{type:e.Output}],onHoverWeek:[{type:e.Output}]},t}();var mt=function(){function t(){this.onNavigate=new e.EventEmitter,this.onViewMode=new e.EventEmitter,this.onSelect=new e.EventEmitter,this.onHover=new e.EventEmitter}return t.prototype.navigateTo=function(t){var e=ht.DOWN===t?-1:1;this.onNavigate.emit({step:{year:e}})},t.prototype.viewMonth=function(t){this.onSelect.emit(t)},t.prototype.hoverMonth=function(t,e){this.onHover.emit({cell:t,isHovered:e})},t.prototype.changeViewMode=function(t){this.onViewMode.emit(t)},t.decorators=[{type:e.Component,args:[{selector:"bs-month-calendar-view",template:'\n <bs-calendar-layout>\n <bs-datepicker-navigation-view\n [calendar]="calendar"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="changeViewMode($event)"\n ></bs-datepicker-navigation-view>\n\n <table role="grid" class="months">\n <tbody>\n <tr *ngFor="let row of calendar.months">\n <td *ngFor="let month of row" role="gridcell"\n (click)="viewMonth(month)"\n (mouseenter)="hoverMonth(month, true)"\n (mouseleave)="hoverMonth(month, false)"\n [class.disabled]="month.isDisabled"\n [class.is-highlighted]="month.isHovered">\n <span [class.selected]="month.isSelected">{{ month.label }}</span>\n </td>\n </tr>\n </tbody>\n </table>\n </bs-calendar-layout>\n '}]}],t.propDecorators={calendar:[{type:e.Input}],onNavigate:[{type:e.Output}],onViewMode:[{type:e.Output}],onSelect:[{type:e.Output}],onHover:[{type:e.Output}]},t}();var gt=function(){function t(){this.ampm="ok",this.hours=0,this.minutes=0}return t.decorators=[{type:e.Component,args:[{selector:"bs-timepicker",template:'\n <div class="bs-timepicker-container">\n <div class="bs-timepicker-controls">\n <button class="bs-decrease" type="button">-</button>\n <input type="text" [value]="hours" placeholder="00">\n <button class="bs-increase" type="button">+</button>\n </div>\n <div class="bs-timepicker-controls">\n <button class="bs-decrease" type="button">-</button>\n <input type="text" [value]="minutes" placeholder="00">\n <button class="bs-increase" type="button">+</button>\n </div>\n <button class="switch-time-format" type="button">{{ ampm }}\n <img\n src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg=="\n alt="">\n </button>\n </div>\n '}]}],t}();var yt=function(){function t(){this.onNavigate=new e.EventEmitter,this.onViewMode=new e.EventEmitter,this.onSelect=new e.EventEmitter,this.onHover=new e.EventEmitter}return t.prototype.navigateTo=function(t){var e=ht.DOWN===t?-1:1;this.onNavigate.emit({step:{year:e*L}})},t.prototype.viewYear=function(t){this.onSelect.emit(t)},t.prototype.hoverYear=function(t,e){this.onHover.emit({cell:t,isHovered:e})},t.prototype.changeViewMode=function(t){this.onViewMode.emit(t)},t.decorators=[{type:e.Component,args:[{selector:"bs-years-calendar-view",template:'\n <bs-calendar-layout>\n <bs-datepicker-navigation-view\n [calendar]="calendar"\n (onNavigate)="navigateTo($event)"\n (onViewMode)="changeViewMode($event)"\n ></bs-datepicker-navigation-view>\n\n <table role="grid" class="years">\n <tbody>\n <tr *ngFor="let row of calendar.years">\n <td *ngFor="let year of row" role="gridcell"\n (click)="viewYear(year)"\n (mouseenter)="hoverYear(year, true)"\n (mouseleave)="hoverYear(year, false)"\n [class.disabled]="year.isDisabled"\n [class.is-highlighted]="year.isHovered">\n <span [class.selected]="year.isSelected">{{ year.label }}</span>\n </td>\n </tr>\n </tbody>\n </table>\n </bs-calendar-layout>\n '}]}],t.propDecorators={calendar:[{type:e.Input}],onNavigate:[{type:e.Output}],onViewMode:[{type:e.Output}],onSelect:[{type:e.Output}],onHover:[{type:e.Output}]},t}();var bt=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[u.ComponentLoaderFactory,i.PositioningService,z,w,x,E]}},t.decorators=[{type:e.NgModule,args:[{imports:[c.CommonModule,p.TooltipModule.forRoot()],declarations:[lt,ct,pt,dt,ft,vt,mt,gt,yt,W,G,$,Z,rt,Q,ot,J,tt,ut],entryComponents:[W,Q,$,J],exports:[W,G,$,Z,rt,Q,ot,J,tt,ut]}]}],t}(),_t=function(){function t(){}return t.prototype.format=function(t,e,n){return r.formatDate(t,e,n)},t}(),wt=function(){function t(){this.selectionDone=new e.EventEmitter(void 0),this.update=new e.EventEmitter(!1),this.activeDateChange=new e.EventEmitter(void 0),this.stepDay={},this.stepMonth={},this.stepYear={},this.modes=["day","month","year"],this.dateFormatter=new _t}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){this._activeDate=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.uniqueId="datepicker--"+Math.floor(1e4*Math.random()),this.initDate?(this.activeDate=this.initDate,this.selectedDate=new Date(this.activeDate.valueOf()),this.update.emit(this.activeDate)):void 0===this.activeDate&&(this.activeDate=new Date)},t.prototype.ngOnChanges=function(t){this.refreshView(),this.checkIfActiveDateGotUpdated(t.activeDate)},t.prototype.checkIfActiveDateGotUpdated=function(t){if(t&&!t.firstChange){var e=t.previousValue;e&&e instanceof Date&&e.getTime()!==t.currentValue.getTime()&&this.activeDateChange.emit(this.activeDate)}},t.prototype.setCompareHandler=function(t,e){"day"===e&&(this.compareHandlerDay=t),"month"===e&&(this.compareHandlerMonth=t),"year"===e&&(this.compareHandlerYear=t)},t.prototype.compare=function(t,e){if(void 0!==t&&void 0!==e)return"day"===this.datepickerMode&&this.compareHandlerDay?this.compareHandlerDay(t,e):"month"===this.datepickerMode&&this.compareHandlerMonth?this.compareHandlerMonth(t,e):"year"===this.datepickerMode&&this.compareHandlerYear?this.compareHandlerYear(t,e):void 0},t.prototype.setRefreshViewHandler=function(t,e){"day"===e&&(this.refreshViewHandlerDay=t),"month"===e&&(this.refreshViewHandlerMonth=t),"year"===e&&(this.refreshViewHandlerYear=t)},t.prototype.refreshView=function(){"day"===this.datepickerMode&&this.refreshViewHandlerDay&&this.refreshViewHandlerDay(),"month"===this.datepickerMode&&this.refreshViewHandlerMonth&&this.refreshViewHandlerMonth(),"year"===this.datepickerMode&&this.refreshViewHandlerYear&&this.refreshViewHandlerYear()},t.prototype.dateFilter=function(t,e){return this.dateFormatter.format(t,e,this.locale)},t.prototype.isActive=function(t){return 0===this.compare(t.date,this.activeDate)&&(this.activeDateId=t.uid,!0)},t.prototype.createDateObject=function(t,e){var n={};return n.date=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n.date=this.fixTimeZone(n.date),n.label=this.dateFilter(t,e),n.selected=0===this.compare(t,this.selectedDate),n.disabled=this.isDisabled(t),n.current=0===this.compare(t,new Date),n.customClass=this.getCustomClassForDate(n.date),n},t.prototype.split=function(t,e){for(var n=[];t.length>0;)n.push(t.splice(0,e));return n},t.prototype.fixTimeZone=function(t){var e=t.getHours();return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23===e?e+2:0)},t.prototype.select=function(t,e){void 0===e&&(e=!0),this.datepickerMode===this.minMode?(this.activeDate||(this.activeDate=new Date(0,0,0,0,0,0,0)),this.activeDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.activeDate=this.fixTimeZone(this.activeDate),e&&this.selectionDone.emit(this.activeDate)):(this.activeDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.activeDate=this.fixTimeZone(this.activeDate),e&&(this.datepickerMode=this.modes[this.modes.indexOf(this.datepickerMode)-1])),this.selectedDate=new Date(this.activeDate.valueOf()),this.update.emit(this.activeDate),this.refreshView()},t.prototype.move=function(t){var e;if("day"===this.datepickerMode&&(e=this.stepDay),"month"===this.datepickerMode&&(e=this.stepMonth),"year"===this.datepickerMode&&(e=this.stepYear),e){var n=this.activeDate.getFullYear()+t*(e.years||0),r=this.activeDate.getMonth()+t*(e.months||0);this.activeDate=new Date(n,r,1),this.refreshView(),this.activeDateChange.emit(this.activeDate)}},t.prototype.toggleMode=function(t){var e=t||1;this.datepickerMode===this.maxMode&&1===e||this.datepickerMode===this.minMode&&-1===e||(this.datepickerMode=this.modes[this.modes.indexOf(this.datepickerMode)+e],this.refreshView())},t.prototype.getCustomClassForDate=function(t){var e=this;if(!this.customClass)return"";var n=this.customClass.find((function(n){return n.date.valueOf()===t.valueOf()&&n.mode===e.datepickerMode}),this);return void 0===n?"":n.clazz},t.prototype.compareDateDisabled=function(t,e){if(void 0!==t&&void 0!==e)return"day"===t.mode&&this.compareHandlerDay?this.compareHandlerDay(t.date,e):"month"===t.mode&&this.compareHandlerMonth?this.compareHandlerMonth(t.date,e):"year"===t.mode&&this.compareHandlerYear?this.compareHandlerYear(t.date,e):void 0},t.prototype.isDisabled=function(t){var e=this,n=!1;return this.dateDisabled&&this.dateDisabled.forEach((function(r){0===e.compareDateDisabled(r,t)&&(n=!0)})),this.dayDisabled&&(n=n||this.dayDisabled.indexOf(t.getDay())>-1),n||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0},t.decorators=[{type:e.Component,args:[{selector:"datepicker-inner",template:'\n \x3c!--<!–ng-keydown="keydown($event)"–>--\x3e\n <div *ngIf="datepickerMode" class="well well-sm bg-faded p-a card" role="application" >\n <ng-content></ng-content>\n </div>\n '}]}],t.propDecorators={locale:[{type:e.Input}],datepickerMode:[{type:e.Input}],startingDay:[{type:e.Input}],yearRange:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],minMode:[{type:e.Input}],maxMode:[{type:e.Input}],showWeeks:[{type:e.Input}],formatDay:[{type:e.Input}],formatMonth:[{type:e.Input}],formatYear:[{type:e.Input}],formatDayHeader:[{type:e.Input}],formatDayTitle:[{type:e.Input}],formatMonthTitle:[{type:e.Input}],onlyCurrentMonth:[{type:e.Input}],shortcutPropagation:[{type:e.Input}],customClass:[{type:e.Input}],monthColLimit:[{type:e.Input}],yearColLimit:[{type:e.Input}],dateDisabled:[{type:e.Input}],dayDisabled:[{type:e.Input}],initDate:[{type:e.Input}],selectionDone:[{type:e.Output}],update:[{type:e.Output}],activeDateChange:[{type:e.Output}],activeDate:[{type:e.Input}]},t}();var Et=function(){function t(){this.locale="en",this.datepickerMode="day",this.startingDay=0,this.yearRange=20,this.minMode="day",this.maxMode="year",this.showWeeks=!0,this.formatDay="DD",this.formatMonth="MMMM",this.formatYear="YYYY",this.formatDayHeader="dd",this.formatDayTitle="MMMM YYYY",this.formatMonthTitle="YYYY",this.onlyCurrentMonth=!1,this.monthColLimit=3,this.yearColLimit=5,this.shortcutPropagation=!1}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.\u0275prov=e["\u0275\u0275defineInjectable"]({factory:function(){return new t},token:t,providedIn:"root"}),t}();var xt={provide:l.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return St})),multi:!0},St=function(){function t(t){this.datepickerMode="day",this.showWeeks=!0,this.selectionDone=new e.EventEmitter(void 0),this.activeDateChange=new e.EventEmitter(void 0),this.onChange=Function.prototype,this.onTouched=Function.prototype,this._now=new Date,this.config=t,this.configureOptions()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate||this._now},set:function(t){this._activeDate=t},enumerable:!0,configurable:!0}),t.prototype.configureOptions=function(){Object.assign(this,this.config)},t.prototype.onUpdate=function(t){this.activeDate=t,this.onChange(t)},t.prototype.onSelectionDone=function(t){this.selectionDone.emit(t)},t.prototype.onActiveDateChange=function(t){this.activeDateChange.emit(t)},t.prototype.writeValue=function(t){if(0!==this._datePicker.compare(t,this._activeDate))return t&&t instanceof Date?(this.activeDate=t,void this._datePicker.select(t,!1)):void(this.activeDate=t?new Date(t):void 0)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.decorators=[{type:e.Component,args:[{selector:"datepicker",template:'\n <datepicker-inner [activeDate]="activeDate"\n (update)="onUpdate($event)"\n [locale]="config.locale"\n [datepickerMode]="datepickerMode"\n [initDate]="initDate"\n [minDate]="minDate"\n [maxDate]="maxDate"\n [minMode]="minMode"\n [maxMode]="maxMode"\n [showWeeks]="showWeeks"\n [formatDay]="formatDay"\n [formatMonth]="formatMonth"\n [formatYear]="formatYear"\n [formatDayHeader]="formatDayHeader"\n [formatDayTitle]="formatDayTitle"\n [formatMonthTitle]="formatMonthTitle"\n [startingDay]="startingDay"\n [yearRange]="yearRange"\n [customClass]="customClass"\n [dateDisabled]="dateDisabled"\n [dayDisabled]="dayDisabled"\n [onlyCurrentMonth]="onlyCurrentMonth"\n [shortcutPropagation]="shortcutPropagation"\n [monthColLimit]="monthColLimit"\n [yearColLimit]="yearColLimit"\n (selectionDone)="onSelectionDone($event)"\n (activeDateChange)="onActiveDateChange($event)">\n <daypicker tabindex="0"></daypicker>\n <monthpicker tabindex="0"></monthpicker>\n <yearpicker tabindex="0"></yearpicker>\n </datepicker-inner>\n ',providers:[xt]}]}],t.ctorParameters=function(){return[{type:Et}]},t.propDecorators={datepickerMode:[{type:e.Input}],initDate:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],minMode:[{type:e.Input}],maxMode:[{type:e.Input}],showWeeks:[{type:e.Input}],formatDay:[{type:e.Input}],formatMonth:[{type:e.Input}],formatYear:[{type:e.Input}],formatDayHeader:[{type:e.Input}],formatDayTitle:[{type:e.Input}],formatMonthTitle:[{type:e.Input}],startingDay:[{type:e.Input}],yearRange:[{type:e.Input}],onlyCurrentMonth:[{type:e.Input}],shortcutPropagation:[{type:e.Input}],monthColLimit:[{type:e.Input}],yearColLimit:[{type:e.Input}],customClass:[{type:e.Input}],dateDisabled:[{type:e.Input}],dayDisabled:[{type:e.Input}],activeDate:[{type:e.Input}],selectionDone:[{type:e.Output}],activeDateChange:[{type:e.Output}],_datePicker:[{type:e.ViewChild,args:[wt,{static:!0}]}]},t}();var Ct=function(){function t(t){this.labels=[],this.rows=[],this.weekNumbers=[],this.datePicker=t}return Object.defineProperty(t.prototype,"isBs4",{get:function(){return!d.isBs3()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.datePicker.stepDay={months:1},this.datePicker.setRefreshViewHandler((function(){var e=this.activeDate.getFullYear(),n=this.activeDate.getMonth(),r=new Date(e,n,1),i=this.startingDay-r.getDay(),o=i>0?7-i:-i,a=new Date(r.getTime());o>0&&a.setDate(1-o);for(var s=t.getDates(a,42),u=[],l=0;l<42;l++){var c=this.createDateObject(s[l],this.formatDay);c.secondary=s[l].getMonth()!==n,c.uid=this.uniqueId+"-"+l,u[l]=c}t.labels=[];for(var p=0;p<7;p++)t.labels[p]={},t.labels[p].abbr=this.dateFilter(u[p].date,this.formatDayHeader),t.labels[p].full=this.dateFilter(u[p].date,"EEEE");if(t.title=this.dateFilter(this.activeDate,this.formatDayTitle),t.rows=this.split(u,7),this.showWeeks){t.weekNumbers=[];for(var d=(11-this.startingDay)%7,h=t.rows.length,f=0;f<h;f++)t.weekNumbers.push(t.getISO8601WeekNumber(t.rows[f][d].date))}}),"day"),this.datePicker.setCompareHandler((function(t,e){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(e.getFullYear(),e.getMonth(),e.getDate());return n.getTime()-r.getTime()}),"day"),this.datePicker.refreshView()},t.prototype.getDates=function(t,e){for(var n,r=new Array(e),i=new Date(t.getTime()),o=0;o<e;)n=new Date(i.getTime()),n=this.datePicker.fixTimeZone(n),r[o++]=n,i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+1);return r},t.prototype.getISO8601WeekNumber=function(t){var e=new Date(t.getTime());e.setDate(e.getDate()+4-(e.getDay()||7));var n=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((n-e.getTime())/864e5)/7)+1},t.decorators=[{type:e.Component,args:[{selector:"daypicker",template:'\n<table *ngIf="datePicker.datepickerMode === \'day\'" role="grid" [attr.aria-labelledby]="datePicker.uniqueId + \'-title\'" aria-activedescendant="activeDateId">\n <thead>\n <tr>\n <th>\n <button *ngIf="!isBs4"\n type="button"\n class="btn btn-default btn-secondary btn-sm pull-left float-left"\n (click)="datePicker.move(-1)"\n tabindex="-1">\u2039</button>\n <button *ngIf="isBs4"\n type="button"\n class="btn btn-default btn-secondary btn-sm pull-left float-left"\n (click)="datePicker.move(-1)"\n tabindex="-1"><</button>\n </th>\n <th [attr.colspan]="5 + (datePicker.showWeeks ? 1 : 0)">\n <button [id]="datePicker.uniqueId + \'-title\'"\n type="button" class="btn btn-default btn-secondary btn-sm"\n (click)="datePicker.toggleMode(0)"\n [disabled]="datePicker.datepickerMode === datePicker.maxMode"\n [ngClass]="{disabled: datePicker.datepickerMode === datePicker.maxMode}" tabindex="-1" style="width:100%;">\n <strong>{{ title }}</strong>\n </button>\n </th>\n <th>\n <button *ngIf="!isBs4"\n type="button"\n class="btn btn-default btn-secondary btn-sm pull-right float-right"\n (click)="datePicker.move(1)"\n tabindex="-1">\u203a</button>\n <button *ngIf="isBs4"\n type="button"\n class="btn btn-default btn-secondary btn-sm pull-right float-right"\n (click)="datePicker.move(1)"\n tabindex="-1">>\n </button>\n </th>\n </tr>\n <tr>\n <th *ngIf="datePicker.showWeeks"></th>\n <th *ngFor="let labelz of labels" class="text-center">\n <small aria-label="labelz.full"><b>{{ labelz.abbr }}</b></small>\n </th>\n </tr>\n </thead>\n <tbody>\n <ng-template ngFor [ngForOf]="rows" let-rowz="$implicit" let-index="index">\n <tr *ngIf="!(datePicker.onlyCurrentMonth && rowz[0].secondary && rowz[6].secondary)">\n <td *ngIf="datePicker.showWeeks" class="h6" class="text-center">\n <em>{{ weekNumbers[index] }}</em>\n </td>\n <td *ngFor="let dtz of rowz" class="text-center" role="gridcell" [id]="dtz.uid">\n <button type="button" style="min-width:100%;" class="btn btn-sm {{dtz.customClass}}"\n *ngIf="!(datePicker.onlyCurrentMonth && dtz.secondary)"\n [ngClass]="{\'btn-secondary\': isBs4 && !dtz.selected && !datePicker.isActive(dtz), \'btn-info\': dtz.selected, disabled: dtz.disabled, active: !isBs4 && datePicker.isActive(dtz), \'btn-default\': !isBs4}"\n [disabled]="dtz.disabled"\n (click)="datePicker.select(dtz.date)" tabindex="-1">\n <span [ngClass]="{\'text-muted\': dtz.secondary || dtz.current, \'text-info\': !isBs4 && dtz.current}">{{ dtz.label }}</span>\n </button>\n </td>\n </tr>\n </ng-template>\n </tbody>\n</table>\n ',styles:["\n :host .btn-secondary {\n color: #292b2c;\n background-color: #fff;\n border-color: #ccc;\n }\n :host .btn-info .text-muted {\n color: #292b2c !important;\n }\n "]}]}],t.ctorParameters=function(){return[{type:wt}]},t}();var Tt=function(){function t(t){this.rows=[],this.datePicker=t}return Object.defineProperty(t.prototype,"isBs4",{get:function(){return!d.isBs3()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.datePicker.stepMonth={years:1},this.datePicker.setRefreshViewHandler((function(){for(var e,n=new Array(12),r=this.activeDate.getFullYear(),i=0;i<12;i++)e=new Date(r,i,1),e=this.fixTimeZone(e),n[i]=this.createDateObject(e,this.formatMonth),n[i].uid=this.uniqueId+"-"+i;t.title=this.dateFilter(this.activeDate,this.formatMonthTitle),t.rows=this.split(n,t.datePicker.monthColLimit)}),"month"),this.datePicker.setCompareHandler((function(t,e){var n=new Date(t.getFullYear(),t.getMonth()),r=new Date(e.getFullYear(),e.getMonth());return n.getTime()-r.getTime()}),"month"),this.datePicker.refreshView()},t.decorators=[{type:e.Component,args:[{selector:"monthpicker",template:'\n<table *ngIf="datePicker.datepickerMode===\'month\'" role="grid">\n <thead>\n <tr>\n <th>\n <button type="button" class="btn btn-default btn-sm pull-left float-left"\n (click)="datePicker.move(-1)" tabindex="-1">\u2039</button></th>\n <th [attr.colspan]="((datePicker.monthColLimit - 2) <= 0) ? 1 : datePicker.monthColLimit - 2">\n <button [id]="datePicker.uniqueId + \'-title\'"\n type="button" class="btn btn-default btn-sm"\n (click)="datePicker.toggleMode(0)"\n [disabled]="datePicker.datepickerMode === maxMode"\n [ngClass]="{disabled: datePicker.datepickerMode === maxMode}" tabindex="-1" style="width:100%;">\n <strong>{{ title }}</strong> \n </button>\n </th>\n <th>\n <button type="button" class="btn btn-default btn-sm pull-right float-right"\n (click)="datePicker.move(1)" tabindex="-1">\u203a</button>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let rowz of rows">\n <td *ngFor="let dtz of rowz" class="text-center" role="gridcell" [attr.id]="dtz.uid" [ngClass]="dtz.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default"\n [ngClass]="{\'btn-link\': isBs4 && !dtz.selected && !datePicker.isActive(dtz), \'btn-info\': dtz.selected || (isBs4 && !dtz.selected && datePicker.isActive(dtz)), disabled: dtz.disabled, active: !isBs4 && datePicker.isActive(dtz)}"\n [disabled]="dtz.disabled"\n (click)="datePicker.select(dtz.date)" tabindex="-1">\n <span [ngClass]="{\'text-success\': isBs4 && dtz.current, \'text-info\': !isBs4 && dtz.current}">{{ dtz.label }}</span>\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n ',styles:["\n :host .btn-info .text-success {\n color: #fff !important;\n }\n "]}]}],t.ctorParameters=function(){return[{type:wt}]},t}();var kt=function(){function t(t){this.rows=[],this.datePicker=t}return Object.defineProperty(t.prototype,"isBs4",{get:function(){return!d.isBs3()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.datePicker.stepYear={years:this.datePicker.yearRange},this.datePicker.setRefreshViewHandler((function(){for(var e,n=new Array(this.yearRange),r=t.getStartingYear(this.activeDate.getFullYear()),i=0;i<this.yearRange;i++)e=new Date(r+i,0,1),e=this.fixTimeZone(e),n[i]=this.createDateObject(e,this.formatYear),n[i].uid=this.uniqueId+"-"+i;t.title=[n[0].label,n[this.yearRange-1].label].join(" - "),t.rows=this.split(n,t.datePicker.yearColLimit)}),"year"),this.datePicker.setCompareHandler((function(t,e){return t.getFullYear()-e.getFullYear()}),"year"),this.datePicker.refreshView()},t.prototype.getStartingYear=function(t){return(t-1)/this.datePicker.yearRange*this.datePicker.yearRange+1},t.decorators=[{type:e.Component,args:[{selector:"yearpicker",template:'\n<table *ngIf="datePicker.datepickerMode===\'year\'" role="grid">\n <thead>\n <tr>\n <th>\n <button type="button" class="btn btn-default btn-sm pull-left float-left"\n (click)="datePicker.move(-1)" tabindex="-1">\u2039</button>\n </th>\n <th [attr.colspan]="((datePicker.yearColLimit - 2) <= 0) ? 1 : datePicker.yearColLimit - 2">\n <button [id]="datePicker.uniqueId + \'-title\'" role="heading"\n type="button" class="btn btn-default btn-sm"\n (click)="datePicker.toggleMode(0)"\n [disabled]="datePicker.datepickerMode === datePicker.maxMode"\n [ngClass]="{disabled: datePicker.datepickerMode === datePicker.maxMode}" tabindex="-1" style="width:100%;">\n <strong>{{ title }}</strong>\n </button>\n </th>\n <th>\n <button type="button" class="btn btn-default btn-sm pull-right float-right"\n (click)="datePicker.move(1)" tabindex="-1">\u203a</button>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let rowz of rows">\n <td *ngFor="let dtz of rowz" class="text-center" role="gridcell" [attr.id]="dtz.uid">\n <button type="button" style="min-width:100%;" class="btn btn-default"\n [ngClass]="{\'btn-link\': isBs4 && !dtz.selected && !datePicker.isActive(dtz), \'btn-info\': dtz.selected || (isBs4 && !dtz.selected && datePicker.isActive(dtz)), disabled: dtz.disabled, active: !isBs4 && datePicker.isActive(dtz)}"\n [disabled]="dtz.disabled"\n (click)="datePicker.select(dtz.date)" tabindex="-1">\n <span [ngClass]="{\'text-success\': isBs4 && dtz.current, \'text-info\': !isBs4 && dtz.current}">{{ dtz.label }}</span>\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n ',styles:["\n :host .btn-info .text-success {\n color: #fff !important;\n }\n "]}]}],t.ctorParameters=function(){return[{type:wt}]},t}();var Dt=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[Et]}},t.decorators=[{type:e.NgModule,args:[{imports:[c.CommonModule,l.FormsModule],declarations:[St,wt,Ct,Tt,kt],exports:[St,wt,Ct,Tt,kt],entryComponents:[St]}]}],t}();t.BsDatepickerConfig=g,t.BsDatepickerContainerComponent=W,t.BsDatepickerDirective=G,t.BsDatepickerInlineConfig=K,t.BsDatepickerInlineContainerComponent=$,t.BsDatepickerInlineDirective=Z,t.BsDatepickerInputDirective=rt,t.BsDatepickerModule=bt,t.BsDaterangepickerConfig=it,t.BsDaterangepickerContainerComponent=Q,t.BsDaterangepickerDirective=ot,t.BsDaterangepickerInlineConfig=X,t.BsDaterangepickerInlineContainerComponent=J,t.BsDaterangepickerInlineDirective=tt,t.BsDaterangepickerInputDirective=ut,t.BsLocaleService=E,t.DateFormatter=_t,t.DatePickerComponent=St,t.DatePickerInnerComponent=wt,t.DatepickerConfig=Et,t.DatepickerModule=Dt,t.DayPickerComponent=Ct,t.MonthPickerComponent=Tt,t.YearPickerComponent=kt,t.\u0275a=xt,t.\u0275b=_,t.\u0275c=z,t.\u0275d=x,t.\u0275e=w,t.\u0275f=b,t.\u0275g=lt,t.\u0275h=ct,t.\u0275i=pt,t.\u0275j=dt,t.\u0275k=ft,t.\u0275l=vt,t.\u0275m=mt,t.\u0275n=gt,t.\u0275o=yt,Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("ngx-bootstrap/utils"),require("@angular/common"),require("ngx-bootstrap/collapse")):"function"==typeof define&&define.amd?define("ngx-bootstrap/accordion",["exports","@angular/core","ngx-bootstrap/utils","@angular/common","ngx-bootstrap/collapse"],e):e(((t=t||self)["ngx-bootstrap"]=t["ngx-bootstrap"]||t,t["ngx-bootstrap"].accordion={}),t.ng.core,t.utils,t.ng.common,t.collapse)}(this,(function(t,e,n,r,i){"use strict";var o=function(){function t(){this.closeOthers=!1,this.isAnimated=!1}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.\u0275prov=e["\u0275\u0275defineInjectable"]({factory:function(){return new t},token:t,providedIn:"root"}),t}();var a=function(){function t(t){this.isAnimated=!1,this.groups=[],Object.assign(this,t)}return t.prototype.closeOtherPanels=function(t){this.closeOthers&&this.groups.forEach((function(e){e!==t&&(e.isOpen=!1)}))},t.prototype.addGroup=function(t){t.isAnimated=this.isAnimated,this.groups.push(t)},t.prototype.removeGroup=function(t){var e=this.groups.indexOf(t);-1!==e&&this.groups.splice(e,1)},t.decorators=[{type:e.Component,args:[{selector:"accordion",template:"<ng-content></ng-content>",host:{"[attr.aria-multiselectable]":"closeOthers",role:"tablist",class:"panel-group",style:"display: block"}}]}],t.ctorParameters=function(){return[{type:o}]},t.propDecorators={isAnimated:[{type:e.Input}],closeOthers:[{type:e.Input}]},t}();var s=function(){function t(t){this.isAnimated=!1,this.isOpenChange=new e.EventEmitter,this._isOpen=!1,this.accordion=t}return Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen},set:function(t){var e=this;t!==this.isOpen&&(t&&this.accordion.closeOtherPanels(this),this._isOpen=t,Promise.resolve(null).then((function(){e.isOpenChange.emit(t)})).catch((function(t){console.log(t)})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBs3",{get:function(){return n.isBs3()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.panelClass=this.panelClass||"panel-default",this.accordion.addGroup(this)},t.prototype.ngOnDestroy=function(){this.accordion.removeGroup(this)},t.prototype.toggleOpen=function(){this.isDisabled||(this.isOpen=!this.isOpen)},t.decorators=[{type:e.Component,args:[{selector:"accordion-group, accordion-panel",template:'<div class="panel card" [ngClass]="panelClass">\n <div\n class="panel-heading card-header"\n role="tab"\n (click)="toggleOpen()"\n [ngClass]="isDisabled ? \'panel-disabled\' : \'panel-enabled\'"\n >\n <div class="panel-title">\n <div role="button" class="accordion-toggle" [attr.aria-expanded]="isOpen">\n <button class="btn btn-link" *ngIf="heading" [ngClass]="{ \'text-muted\': isDisabled }" type="button">\n {{ heading }}\n </button>\n <ng-content select="[accordion-heading]"></ng-content>\n </div>\n </div>\n </div>\n <div class="panel-collapse collapse" role="tabpanel" [collapse]="!isOpen" [isAnimated]="isAnimated">\n <div class="panel-body card-block card-body">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n',host:{class:"panel",style:"display: block"},styles:[":host .card-header.panel-enabled{cursor:pointer}:host .card-header.panel-disabled .btn.btn-link{cursor:default;text-decoration:none}"]}]}],t.ctorParameters=function(){return[{type:a,decorators:[{type:e.Inject,args:[a]}]}]},t.propDecorators={heading:[{type:e.Input}],panelClass:[{type:e.Input}],isDisabled:[{type:e.Input}],isOpenChange:[{type:e.Output}],isOpen:[{type:e.HostBinding,args:["class.panel-open"]},{type:e.Input}]},t}();var u=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[]}},t.decorators=[{type:e.NgModule,args:[{imports:[r.CommonModule,i.CollapseModule],declarations:[a,s],exports:[a,s]}]}],t}();t.AccordionComponent=a,t.AccordionConfig=o,t.AccordionModule=u,t.AccordionPanelComponent=s,Object.defineProperty(t,"__esModule",{value:!0})}))}(window["ngx-bootstrap"]),
|
|
3794
3794
|
/*!
|
|
3795
|
-
* tabbable 6.
|
|
3795
|
+
* tabbable 6.2.0
|
|
3796
3796
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
3797
3797
|
*/
|
|
3798
|
-
function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,r=t.tabbable={};e(r),r.noConflict=function(){return t.tabbable=n,r}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),r="undefined"==typeof Element,i=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o=!r&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function t(e,n){var r;void 0===n&&(n=!0);var i=null==e||null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"inert");return""===i||"true"===i||n&&e&&t(e.parentNode)},s=function(t,e,r){if(a(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&i.call(t,n)&&o.unshift(t),o=o.filter(r)},u=function t(e,r,o){for(var s=[],u=Array.from(e);u.length;){var l=u.shift();if(!a(l,!1))if("SLOT"===l.tagName){var c=l.assignedElements(),p=t(c.length?c:l.children,!0,o);o.flatten?s.push.apply(s,p):s.push({scopeParent:l,candidates:p})}else{i.call(l,n)&&o.filter(l)&&(r||!e.includes(l))&&s.push(l);var d=l.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(l),h=!a(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(l));if(d&&h){var f=t(!0===d?l.children:d.children,!0,o);o.flatten?s.push.apply(s,f):s.push({scopeParent:l,candidates:f})}else u.unshift.apply(u,l.children)}}return s},l=function(t,
|
|
3798
|
+
function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,r=t.tabbable={};e(r),r.noConflict=function(){return t.tabbable=n,r}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),r="undefined"==typeof Element,i=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o=!r&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function t(e,n){var r;void 0===n&&(n=!0);var i=null==e||null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"inert");return""===i||"true"===i||n&&e&&t(e.parentNode)},s=function(t,e,r){if(a(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&i.call(t,n)&&o.unshift(t),o=o.filter(r)},u=function t(e,r,o){for(var s=[],u=Array.from(e);u.length;){var l=u.shift();if(!a(l,!1))if("SLOT"===l.tagName){var c=l.assignedElements(),p=t(c.length?c:l.children,!0,o);o.flatten?s.push.apply(s,p):s.push({scopeParent:l,candidates:p})}else{i.call(l,n)&&o.filter(l)&&(r||!e.includes(l))&&s.push(l);var d=l.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(l),h=!a(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(l));if(d&&h){var f=t(!0===d?l.children:d.children,!0,o);o.flatten?s.push.apply(s,f):s.push({scopeParent:l,candidates:f})}else u.unshift.apply(u,l.children)}}return s},l=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},c=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!l(t)?0:t.tabIndex},p=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},d=function(t){return"INPUT"===t.tagName},h=function(t){return function(t){return d(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||o(t),r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var i=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!i||i===t}(t)},f=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height;return 0===n&&0===r},v=function(t,e){var n=e.displayCheck,r=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var a=i.call(t,"details>summary:first-of-type")?t.parentElement:t;if(i.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return f(t)}else{if("function"==typeof r){for(var s=t;t;){var u=t.parentElement,l=o(t);if(u&&!u.shadowRoot&&!0===r(u))return f(t);t=t.assignedSlot?t.assignedSlot:u||l===t.ownerDocument?u:l.host}t=s}if(function(t){var e,n,r,i,a=t&&o(t),s=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=t&&null!==(i=t.ownerDocument)&&void 0!==i&&i.contains(t));!u&&s;){var l,c,p;u=!(null===(c=s=null===(l=a=o(s))||void 0===l?void 0:l.host)||void 0===c||null===(p=c.ownerDocument)||void 0===p||!p.contains(s))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},m=function(t,e){return!(e.disabled||a(e)||function(t){return d(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var r=e.children.item(n);if("LEGEND"===r.tagName)return!!i.call(e,"fieldset[disabled] *")||!r.contains(t)}return!0}e=e.parentElement}return!1}(e))},g=function(t,e){return!(h(e)||c(e)<0||!m(t,e))},y=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},b=function t(e){var n=[],r=[];return e.forEach((function(e,i){var o=!!e.scopeParent,a=o?e.scopeParent:e,s=function(t,e){var n=c(t);return n<0&&e&&!l(t)?0:n}(a,o),u=o?t(e.candidates):a;0===s?o?n.push.apply(n,u):n.push(a):r.push({documentOrder:i,tabIndex:s,item:e,isScope:o,content:u})})),r.sort(p).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},_=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:m.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):s(t,e.includeContainer,m.bind(null,e))},t.getTabIndex=c,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==i.call(t,_)&&m(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==i.call(t,n)&&g(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:g.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:y}):s(t,e.includeContainer,g.bind(null,e)),b(n)},Object.defineProperty(t,"__esModule",{value:!0})})),
|
|
3799
3799
|
/*!
|
|
3800
3800
|
* @wavemaker/focus-trap 1.0.0
|
|
3801
3801
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
@@ -219716,7 +219716,7 @@ window.requestAnimationFrame = function() {
|
|
|
219716
219716
|
}));
|
|
219717
219717
|
|
|
219718
219718
|
/*!
|
|
219719
|
-
* tabbable 6.
|
|
219719
|
+
* tabbable 6.2.0
|
|
219720
219720
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
219721
219721
|
*/
|
|
219722
219722
|
(function(global, factory) {
|
|
@@ -219812,14 +219812,27 @@ window.requestAnimationFrame = function() {
|
|
|
219812
219812
|
}
|
|
219813
219813
|
return candidates;
|
|
219814
219814
|
};
|
|
219815
|
-
var
|
|
219815
|
+
var hasTabIndex = function hasTabIndex(node) {
|
|
219816
|
+
return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
|
|
219817
|
+
};
|
|
219818
|
+
var getTabIndex = function getTabIndex(node) {
|
|
219819
|
+
if (!node) {
|
|
219820
|
+
throw new Error("No node provided");
|
|
219821
|
+
}
|
|
219816
219822
|
if (node.tabIndex < 0) {
|
|
219817
|
-
if ((
|
|
219823
|
+
if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
|
|
219818
219824
|
return 0;
|
|
219819
219825
|
}
|
|
219820
219826
|
}
|
|
219821
219827
|
return node.tabIndex;
|
|
219822
219828
|
};
|
|
219829
|
+
var getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {
|
|
219830
|
+
var tabIndex = getTabIndex(node);
|
|
219831
|
+
if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
|
|
219832
|
+
return 0;
|
|
219833
|
+
}
|
|
219834
|
+
return tabIndex;
|
|
219835
|
+
};
|
|
219823
219836
|
var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
|
|
219824
219837
|
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
219825
219838
|
};
|
|
@@ -219955,7 +219968,7 @@ window.requestAnimationFrame = function() {
|
|
|
219955
219968
|
return true;
|
|
219956
219969
|
};
|
|
219957
219970
|
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
219958
|
-
if (isNonTabbableRadio(node) ||
|
|
219971
|
+
if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
219959
219972
|
return false;
|
|
219960
219973
|
}
|
|
219961
219974
|
return true;
|
|
@@ -219973,7 +219986,7 @@ window.requestAnimationFrame = function() {
|
|
|
219973
219986
|
candidates.forEach((function(item, i) {
|
|
219974
219987
|
var isScope = !!item.scopeParent;
|
|
219975
219988
|
var element = isScope ? item.scopeParent : item;
|
|
219976
|
-
var candidateTabindex =
|
|
219989
|
+
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
219977
219990
|
var elements = isScope ? sortByOrder(item.candidates) : element;
|
|
219978
219991
|
if (candidateTabindex === 0) {
|
|
219979
219992
|
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
@@ -219992,32 +220005,32 @@ window.requestAnimationFrame = function() {
|
|
|
219992
220005
|
return acc;
|
|
219993
220006
|
}), []).concat(regularTabbables);
|
|
219994
220007
|
};
|
|
219995
|
-
var tabbable = function tabbable(
|
|
220008
|
+
var tabbable = function tabbable(container, options) {
|
|
219996
220009
|
options = options || {};
|
|
219997
220010
|
var candidates;
|
|
219998
220011
|
if (options.getShadowRoot) {
|
|
219999
|
-
candidates = getCandidatesIteratively([
|
|
220012
|
+
candidates = getCandidatesIteratively([ container ], options.includeContainer, {
|
|
220000
220013
|
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
220001
220014
|
flatten: false,
|
|
220002
220015
|
getShadowRoot: options.getShadowRoot,
|
|
220003
220016
|
shadowRootFilter: isValidShadowRootTabbable
|
|
220004
220017
|
});
|
|
220005
220018
|
} else {
|
|
220006
|
-
candidates = getCandidates(
|
|
220019
|
+
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
220007
220020
|
}
|
|
220008
220021
|
return sortByOrder(candidates);
|
|
220009
220022
|
};
|
|
220010
|
-
var focusable = function focusable(
|
|
220023
|
+
var focusable = function focusable(container, options) {
|
|
220011
220024
|
options = options || {};
|
|
220012
220025
|
var candidates;
|
|
220013
220026
|
if (options.getShadowRoot) {
|
|
220014
|
-
candidates = getCandidatesIteratively([
|
|
220027
|
+
candidates = getCandidatesIteratively([ container ], options.includeContainer, {
|
|
220015
220028
|
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
220016
220029
|
flatten: true,
|
|
220017
220030
|
getShadowRoot: options.getShadowRoot
|
|
220018
220031
|
});
|
|
220019
220032
|
} else {
|
|
220020
|
-
candidates = getCandidates(
|
|
220033
|
+
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
220021
220034
|
}
|
|
220022
220035
|
return candidates;
|
|
220023
220036
|
};
|
|
@@ -220043,6 +220056,7 @@ window.requestAnimationFrame = function() {
|
|
|
220043
220056
|
return isNodeMatchingSelectorFocusable(options, node);
|
|
220044
220057
|
};
|
|
220045
220058
|
exports.focusable = focusable;
|
|
220059
|
+
exports.getTabIndex = getTabIndex;
|
|
220046
220060
|
exports.isFocusable = isFocusable;
|
|
220047
220061
|
exports.isTabbable = isTabbable;
|
|
220048
220062
|
exports.tabbable = tabbable;
|
|
@@ -3792,10 +3792,10 @@ function(t,e){var n,r,i;!function(o,a){"use strict";r=[],void 0===(i="function"=
|
|
|
3792
3792
|
!*** ./index.ts ***!
|
|
3793
3793
|
\******************/n.r(r),n.d(r,{$rootScope:()=>t.$rootScope,ApiAwareVariable:()=>o.ApiAwareVariable,BaseAction:()=>i.BaseAction,CONSTANTS:()=>t.CONSTANTS,CrudVariable:()=>l.CrudVariable,DB_CONSTANTS:()=>t.DB_CONSTANTS,LVService:()=>p.LVService,LiveVariable:()=>c.LiveVariable,LiveVariableUtils:()=>d.LiveVariableUtils,ModelVariable:()=>s.ModelVariable,SWAGGER_CONSTANTS:()=>t.SWAGGER_CONSTANTS,ServiceVariable:()=>u.ServiceVariable,TEST:()=>h,TimerAction:()=>a.TimerAction,VARIABLE_CONSTANTS:()=>t.VARIABLE_CONSTANTS,VARIABLE_URLS:()=>t.VARIABLE_URLS,WS_CONSTANTS:()=>t.WS_CONSTANTS,appManager:()=>e.appManager,debounceVariableCall:()=>e.debounceVariableCall,decodeData:()=>e.decodeData,dialogService:()=>e.dialogService,formatDate:()=>e.formatDate,formatExportExpression:()=>e.formatExportExpression,generateConnectionParams:()=>p.generateConnectionParams,getBlob:()=>e.getBlob,getErrMessage:()=>e.getErrMessage,getEvaluatedOrderBy:()=>e.getEvaluatedOrderBy,getTarget:()=>e.getTarget,getTargetNodeKey:()=>e.getTargetNodeKey,getTargetObj:()=>e.getTargetObj,httpService:()=>e.httpService,initiateCallback:()=>e.initiateCallback,internalBoundNodeMap:()=>e.internalBoundNodeMap,isFileUploadSupported:()=>e.isFileUploadSupported,metadataService:()=>e.metadataService,navigationService:()=>e.navigationService,oauthService:()=>e.oauthService,parseConfig:()=>p.parseConfig,routerService:()=>e.routerService,securityService:()=>e.securityService,setInput:()=>e.setInput,setValueToNode:()=>e.setValueToNode,toasterService:()=>e.toasterService,updateInternalNodes:()=>e.updateInternalNodes,wmSetDependency:()=>e.wmSetDependency});var t=n(/*! ./src/constants/variables.constants */"./src/constants/variables.constants.ts"),e=n(/*! ./src/util/variable/variables.utils */"./src/util/variable/variables.utils.ts"),i=n(/*! ./src/model/base-action */"./src/model/base-action.ts"),o=n(/*! ./src/model/variable/api-aware-variable */"./src/model/variable/api-aware-variable.ts"),a=n(/*! ./src/model/action/timer-action */"./src/model/action/timer-action.ts"),s=n(/*! ./src/model/variable/model-variable */"./src/model/variable/model-variable.ts"),u=n(/*! ./src/model/variable/service-variable */"./src/model/variable/service-variable.ts"),l=n(/*! ./src/model/variable/crud-variable */"./src/model/variable/crud-variable.ts"),c=n(/*! ./src/model/variable/live-variable */"./src/model/variable/live-variable.ts"),p=(n(/*! ./src/types/http-client.service */"./src/types/http-client.service.ts"),n(/*! ./src/util/variable/live-variable.http.utils */"./src/util/variable/live-variable.http.utils.ts")),d=n(/*! ./src/util/variable/live-variable.utils */"./src/util/variable/live-variable.utils.ts"),h="hello from variables"})(),r})())),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jmespath={})}(this,(function(t){"use strict";const e=t=>null!==t&&"[object Object]"===Object.prototype.toString.call(t),n=(t,r)=>{if(t===r)return!0;if(typeof t!=typeof r)return!1;if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;for(let e=0;e<t.length;e+=1)if(!n(t[e],r[e]))return!1;return!0}if(e(t)&&e(r)){const e=Object.entries(t),i=new Set(Object.keys(r));if(e.length!==i.size)return!1;for(const[t,o]of e){if(!n(o,r[t]))return!1;i.delete(t)}return 0===i.size}return!1},r=t=>{if(""===t||!1===t||null==t)return!0;if(Array.isArray(t)&&0===t.length)return!0;if(e(t)){for(const e in t)if(t.hasOwnProperty(e))return!1;return!0}return!1},i=t=>t>="0"&&t<="9"||"-"===t;var o;!function(t){t.TOK_EOF="EOF",t.TOK_UNQUOTEDIDENTIFIER="UnquotedIdentifier",t.TOK_QUOTEDIDENTIFIER="QuotedIdentifier",t.TOK_RBRACKET="Rbracket",t.TOK_RPAREN="Rparen",t.TOK_COMMA="Comma",t.TOK_COLON="Colon",t.TOK_RBRACE="Rbrace",t.TOK_NUMBER="Number",t.TOK_CURRENT="Current",t.TOK_ROOT="Root",t.TOK_EXPREF="Expref",t.TOK_PIPE="Pipe",t.TOK_OR="Or",t.TOK_AND="And",t.TOK_EQ="EQ",t.TOK_GT="GT",t.TOK_LT="LT",t.TOK_GTE="GTE",t.TOK_LTE="LTE",t.TOK_NE="NE",t.TOK_FLATTEN="Flatten",t.TOK_STAR="Star",t.TOK_FILTER="Filter",t.TOK_DOT="Dot",t.TOK_NOT="Not",t.TOK_LBRACE="Lbrace",t.TOK_LBRACKET="Lbracket",t.TOK_LPAREN="Lparen",t.TOK_LITERAL="Literal"}(o||(o={}));const a={"(":o.TOK_LPAREN,")":o.TOK_RPAREN,"*":o.TOK_STAR,",":o.TOK_COMMA,".":o.TOK_DOT,":":o.TOK_COLON,"@":o.TOK_CURRENT,$:o.TOK_ROOT,"]":o.TOK_RBRACKET,"{":o.TOK_LBRACE,"}":o.TOK_RBRACE},s={"!":!0,"<":!0,"=":!0,">":!0},u={"\t":!0,"\n":!0,"\r":!0," ":!0};const l=new class{constructor(){this._current=0}tokenize(t){const e=[];let n,r,l;for(this._current=0;this._current<t.length;)if((c=t[this._current])>="a"&&c<="z"||c>="A"&&c<="Z"||"_"===c)n=this._current,r=this.consumeUnquotedIdentifier(t),e.push({start:n,type:o.TOK_UNQUOTEDIDENTIFIER,value:r});else if(void 0!==a[t[this._current]])e.push({start:this._current,type:a[t[this._current]],value:t[this._current]}),this._current+=1;else if(i(t[this._current]))l=this.consumeNumber(t),e.push(l);else if("["===t[this._current])l=this.consumeLBracket(t),e.push(l);else if('"'===t[this._current])n=this._current,r=this.consumeQuotedIdentifier(t),e.push({start:n,type:o.TOK_QUOTEDIDENTIFIER,value:r});else if("'"===t[this._current])n=this._current,r=this.consumeRawStringLiteral(t),e.push({start:n,type:o.TOK_LITERAL,value:r});else if("`"===t[this._current]){n=this._current;const r=this.consumeLiteral(t);e.push({start:n,type:o.TOK_LITERAL,value:r})}else if(void 0!==s[t[this._current]])l=this.consumeOperator(t),l&&e.push(l);else if(void 0!==u[t[this._current]])this._current+=1;else if("&"===t[this._current])n=this._current,this._current+=1,"&"===t[this._current]?(this._current+=1,e.push({start:n,type:o.TOK_AND,value:"&&"})):e.push({start:n,type:o.TOK_EXPREF,value:"&"});else{if("|"!==t[this._current]){const e=new Error(`Unknown character: ${t[this._current]}`);throw e.name="LexerError",e}n=this._current,this._current+=1,"|"===t[this._current]?(this._current+=1,e.push({start:n,type:o.TOK_OR,value:"||"})):e.push({start:n,type:o.TOK_PIPE,value:"|"})}var c;return e}consumeUnquotedIdentifier(t){const e=this._current;for(this._current+=1;this._current<t.length&&((n=t[this._current])>="a"&&n<="z"||n>="A"&&n<="Z"||n>="0"&&n<="9"||"_"===n);)this._current+=1;var n;return t.slice(e,this._current)}consumeQuotedIdentifier(t){const e=this._current;this._current+=1;const n=t.length;for(;'"'!==t[this._current]&&this._current<n;){let e=this._current;"\\"!==t[e]||"\\"!==t[e+1]&&'"'!==t[e+1]?e+=1:e+=2,this._current=e}return this._current+=1,JSON.parse(t.slice(e,this._current))}consumeRawStringLiteral(t){const e=this._current;this._current+=1;const n=t.length;for(;"'"!==t[this._current]&&this._current<n;){let e=this._current;"\\"!==t[e]||"\\"!==t[e+1]&&"'"!==t[e+1]?e+=1:e+=2,this._current=e}this._current+=1;return t.slice(e+1,this._current-1).replace("\\'","'")}consumeNumber(t){const e=this._current;this._current+=1;const n=t.length;for(;i(t[this._current])&&this._current<n;)this._current+=1;return{start:e,value:parseInt(t.slice(e,this._current),10),type:o.TOK_NUMBER}}consumeLBracket(t){const e=this._current;return this._current+=1,"?"===t[this._current]?(this._current+=1,{start:e,type:o.TOK_FILTER,value:"[?"}):"]"===t[this._current]?(this._current+=1,{start:e,type:o.TOK_FLATTEN,value:"[]"}):{start:e,type:o.TOK_LBRACKET,value:"["}}consumeOperator(t){const e=this._current,n=t[e];return this._current+=1,"!"===n?"="===t[this._current]?(this._current+=1,{start:e,type:o.TOK_NE,value:"!="}):{start:e,type:o.TOK_NOT,value:"!"}:"<"===n?"="===t[this._current]?(this._current+=1,{start:e,type:o.TOK_LTE,value:"<="}):{start:e,type:o.TOK_LT,value:"<"}:">"===n?"="===t[this._current]?(this._current+=1,{start:e,type:o.TOK_GTE,value:">="}):{start:e,type:o.TOK_GT,value:">"}:"="===n&&"="===t[this._current]?(this._current+=1,{start:e,type:o.TOK_EQ,value:"=="}):void 0}consumeLiteral(t){this._current+=1;const e=this._current,n=t.length;for(;"`"!==t[this._current]&&this._current<n;){let e=this._current;"\\"!==t[e]||"\\"!==t[e+1]&&"`"!==t[e+1]?e+=1:e+=2,this._current=e}let r=t.slice(e,this._current).trimLeft();r=r.replace("\\`","`");const i=this.looksLikeJSON(r)?JSON.parse(r):JSON.parse(`"${r}"`);return this._current+=1,i}looksLikeJSON(t){if(""===t)return!1;if('[{"'.includes(t[0]))return!0;if(["true","false","null"].includes(t))return!0;if("-0123456789".includes(t[0]))try{return JSON.parse(t),!0}catch(t){return!1}return!1}},c={[o.TOK_EOF]:0,[o.TOK_UNQUOTEDIDENTIFIER]:0,[o.TOK_QUOTEDIDENTIFIER]:0,[o.TOK_RBRACKET]:0,[o.TOK_RPAREN]:0,[o.TOK_COMMA]:0,[o.TOK_RBRACE]:0,[o.TOK_NUMBER]:0,[o.TOK_CURRENT]:0,[o.TOK_EXPREF]:0,[o.TOK_ROOT]:0,[o.TOK_PIPE]:1,[o.TOK_OR]:2,[o.TOK_AND]:3,[o.TOK_EQ]:5,[o.TOK_GT]:5,[o.TOK_LT]:5,[o.TOK_GTE]:5,[o.TOK_LTE]:5,[o.TOK_NE]:5,[o.TOK_FLATTEN]:9,[o.TOK_STAR]:20,[o.TOK_FILTER]:21,[o.TOK_DOT]:40,[o.TOK_NOT]:45,[o.TOK_LBRACE]:50,[o.TOK_LBRACKET]:55,[o.TOK_LPAREN]:60};const p=new class{constructor(){this.index=0,this.tokens=[]}parse(t){this.loadTokens(t),this.index=0;const e=this.expression(0);if(this.lookahead(0)!==o.TOK_EOF){const t=this.lookaheadToken(0);this.errorToken(t,`Unexpected token type: ${t.type}, value: ${t.value}`)}return e}loadTokens(t){this.tokens=[...l.tokenize(t),{type:o.TOK_EOF,value:"",start:t.length}]}expression(t){const e=this.lookaheadToken(0);this.advance();let n=this.nud(e),r=this.lookahead(0);for(;t<c[r];)this.advance(),n=this.led(r,n),r=this.lookahead(0);return n}lookahead(t){return this.tokens[this.index+t].type}lookaheadToken(t){return this.tokens[this.index+t]}advance(){this.index+=1}nud(t){let e,n,r;switch(t.type){case o.TOK_LITERAL:return{type:"Literal",value:t.value};case o.TOK_UNQUOTEDIDENTIFIER:return{type:"Field",name:t.value};case o.TOK_QUOTEDIDENTIFIER:const i={type:"Field",name:t.value};if(this.lookahead(0)===o.TOK_LPAREN)throw new Error("Quoted identifier not allowed for function names.");return i;case o.TOK_NOT:return n=this.expression(c.Not),{type:"NotExpression",children:[n]};case o.TOK_STAR:return e={type:"Identity"},n=this.lookahead(0)===o.TOK_RBRACKET&&{type:"Identity"}||this.parseProjectionRHS(c.Star),{type:"ValueProjection",children:[e,n]};case o.TOK_FILTER:return this.led(t.type,{type:"Identity"});case o.TOK_LBRACE:return this.parseMultiselectHash();case o.TOK_FLATTEN:return e={type:o.TOK_FLATTEN,children:[{type:"Identity"}]},n=this.parseProjectionRHS(c.Flatten),{type:"Projection",children:[e,n]};case o.TOK_LBRACKET:return this.lookahead(0)===o.TOK_NUMBER||this.lookahead(0)===o.TOK_COLON?(n=this.parseIndexExpression(),this.projectIfSlice({type:"Identity"},n)):this.lookahead(0)===o.TOK_STAR&&this.lookahead(1)===o.TOK_RBRACKET?(this.advance(),this.advance(),n=this.parseProjectionRHS(c.Star),{children:[{type:"Identity"},n],type:"Projection"}):this.parseMultiselectList();case o.TOK_CURRENT:return{type:o.TOK_CURRENT};case o.TOK_ROOT:return{type:o.TOK_ROOT};case o.TOK_EXPREF:return r=this.expression(c.Expref),{type:"ExpressionReference",children:[r]};case o.TOK_LPAREN:const a=[];for(;this.lookahead(0)!==o.TOK_RPAREN;)this.lookahead(0)===o.TOK_CURRENT?(r={type:o.TOK_CURRENT},this.advance()):r=this.expression(0),a.push(r);return this.match(o.TOK_RPAREN),a[0];default:this.errorToken(t)}}led(t,e){let n;switch(t){case o.TOK_DOT:const r=c.Dot;return this.lookahead(0)!==o.TOK_STAR?(n=this.parseDotRHS(r),{type:"Subexpression",children:[e,n]}):(this.advance(),n=this.parseProjectionRHS(r),{type:"ValueProjection",children:[e,n]});case o.TOK_PIPE:return n=this.expression(c.Pipe),{type:o.TOK_PIPE,children:[e,n]};case o.TOK_OR:return n=this.expression(c.Or),{type:"OrExpression",children:[e,n]};case o.TOK_AND:return n=this.expression(c.And),{type:"AndExpression",children:[e,n]};case o.TOK_LPAREN:const i=e.name,a=[];let s;for(;this.lookahead(0)!==o.TOK_RPAREN;)this.lookahead(0)===o.TOK_CURRENT?(s={type:o.TOK_CURRENT},this.advance()):s=this.expression(0),this.lookahead(0)===o.TOK_COMMA&&this.match(o.TOK_COMMA),a.push(s);this.match(o.TOK_RPAREN);return{name:i,type:"Function",children:a};case o.TOK_FILTER:const u=this.expression(0);return this.match(o.TOK_RBRACKET),n=this.lookahead(0)===o.TOK_FLATTEN&&{type:"Identity"}||this.parseProjectionRHS(c.Filter),{type:"FilterProjection",children:[e,n,u]};case o.TOK_FLATTEN:return{type:"Projection",children:[{type:o.TOK_FLATTEN,children:[e]},this.parseProjectionRHS(c.Flatten)]};case o.TOK_EQ:case o.TOK_NE:case o.TOK_GT:case o.TOK_GTE:case o.TOK_LT:case o.TOK_LTE:return this.parseComparator(e,t);case o.TOK_LBRACKET:const l=this.lookaheadToken(0);return l.type===o.TOK_NUMBER||l.type===o.TOK_COLON?(n=this.parseIndexExpression(),this.projectIfSlice(e,n)):(this.match(o.TOK_STAR),this.match(o.TOK_RBRACKET),n=this.parseProjectionRHS(c.Star),{type:"Projection",children:[e,n]});default:return this.errorToken(this.lookaheadToken(0))}}match(t){if(this.lookahead(0)!==t){const e=this.lookaheadToken(0);this.errorToken(e,`Expected ${t}, got: ${e.type}`)}else this.advance()}errorToken(t,e=""){const n=new Error(e||`Invalid token (${t.type}): "${t.value}"`);throw n.name="ParserError",n}parseIndexExpression(){if(this.lookahead(0)===o.TOK_COLON||this.lookahead(1)===o.TOK_COLON)return this.parseSliceExpression();const t={type:"Index",value:this.lookaheadToken(0).value};return this.advance(),this.match(o.TOK_RBRACKET),t}projectIfSlice(t,e){const n={type:"IndexExpression",children:[t,e]};return"Slice"===e.type?{children:[n,this.parseProjectionRHS(c.Star)],type:"Projection"}:n}parseSliceExpression(){const t=[null,null,null];let e=0,n=this.lookahead(0);for(;n!==o.TOK_RBRACKET&&e<3;){if(n===o.TOK_COLON)e+=1,this.advance();else if(n===o.TOK_NUMBER)t[e]=this.lookaheadToken(0).value,this.advance();else{const t=this.lookaheadToken(0);this.errorToken(t,`Syntax error, unexpected token: ${t.value}(${t.type})`)}n=this.lookahead(0)}return this.match(o.TOK_RBRACKET),{children:t,type:"Slice"}}parseComparator(t,e){return{type:"Comparator",name:e,children:[t,this.expression(c[e])]}}parseDotRHS(t){const e=this.lookahead(0);if([o.TOK_UNQUOTEDIDENTIFIER,o.TOK_QUOTEDIDENTIFIER,o.TOK_STAR].includes(e))return this.expression(t);if(e===o.TOK_LBRACKET)return this.match(o.TOK_LBRACKET),this.parseMultiselectList();if(e===o.TOK_LBRACE)return this.match(o.TOK_LBRACE),this.parseMultiselectHash();const n=this.lookaheadToken(0);this.errorToken(n,`Syntax error, unexpected token: ${n.value}(${n.type})`)}parseProjectionRHS(t){if(c[this.lookahead(0)]<10)return{type:"Identity"};if(this.lookahead(0)===o.TOK_LBRACKET)return this.expression(t);if(this.lookahead(0)===o.TOK_FILTER)return this.expression(t);if(this.lookahead(0)===o.TOK_DOT)return this.match(o.TOK_DOT),this.parseDotRHS(t);const e=this.lookaheadToken(0);this.errorToken(e,`Syntax error, unexpected token: ${e.value}(${e.type})`)}parseMultiselectList(){const t=[];for(;this.lookahead(0)!==o.TOK_RBRACKET;){const e=this.expression(0);if(t.push(e),this.lookahead(0)===o.TOK_COMMA&&(this.match(o.TOK_COMMA),this.lookahead(0)===o.TOK_RBRACKET))throw new Error("Unexpected token Rbracket")}return this.match(o.TOK_RBRACKET),{type:"MultiSelectList",children:t}}parseMultiselectHash(){const t=[],e=[o.TOK_UNQUOTEDIDENTIFIER,o.TOK_QUOTEDIDENTIFIER];let n,r,i;for(;;){if(n=this.lookaheadToken(0),!e.includes(n.type))throw new Error(`Expecting an identifier token, got: ${n.type}`);if(r=n.value,this.advance(),this.match(o.TOK_COLON),i=this.expression(0),t.push({value:i,type:"KeyValuePair",name:r}),this.lookahead(0)===o.TOK_COMMA)this.match(o.TOK_COMMA);else if(this.lookahead(0)===o.TOK_RBRACE){this.match(o.TOK_RBRACE);break}}return{type:"MultiSelectHash",children:t}}};var d;!function(t){t[t.TYPE_NUMBER=0]="TYPE_NUMBER",t[t.TYPE_ANY=1]="TYPE_ANY",t[t.TYPE_STRING=2]="TYPE_STRING",t[t.TYPE_ARRAY=3]="TYPE_ARRAY",t[t.TYPE_OBJECT=4]="TYPE_OBJECT",t[t.TYPE_BOOLEAN=5]="TYPE_BOOLEAN",t[t.TYPE_EXPREF=6]="TYPE_EXPREF",t[t.TYPE_NULL=7]="TYPE_NULL",t[t.TYPE_ARRAY_NUMBER=8]="TYPE_ARRAY_NUMBER",t[t.TYPE_ARRAY_STRING=9]="TYPE_ARRAY_STRING"}(d||(d={}));class h{constructor(t){this.TYPE_NAME_TABLE={[d.TYPE_NUMBER]:"number",[d.TYPE_ANY]:"any",[d.TYPE_STRING]:"string",[d.TYPE_ARRAY]:"array",[d.TYPE_OBJECT]:"object",[d.TYPE_BOOLEAN]:"boolean",[d.TYPE_EXPREF]:"expression",[d.TYPE_NULL]:"null",[d.TYPE_ARRAY_NUMBER]:"Array<number>",[d.TYPE_ARRAY_STRING]:"Array<string>"},this.functionAbs=([t])=>Math.abs(t),this.functionAvg=([t])=>{let e=0;for(let n=0;n<t.length;n+=1)e+=t[n];return e/t.length},this.functionCeil=([t])=>Math.ceil(t),this.functionContains=t=>{const[e,n]=t;return e.includes(n)},this.functionEndsWith=t=>{const[e,n]=t;return e.includes(n,e.length-n.length)},this.functionFloor=([t])=>Math.floor(t),this.functionJoin=t=>{const[e,n]=t;return n.join(e)},this.functionKeys=([t])=>Object.keys(t),this.functionLength=([t])=>e(t)?Object.keys(t).length:t.length,this.functionMap=t=>{if(!this._interpreter)return[];const e=[],n=this._interpreter,r=t[0],i=t[1];for(let t=0;t<i.length;t+=1)e.push(n.visit(r,i[t]));return e},this.functionMax=([t])=>{if(!t.length)return null;if(this.getTypeName(t[0])===d.TYPE_NUMBER)return Math.max(...t);const e=t;let n=e[0];for(let t=1;t<e.length;t+=1)n.localeCompare(e[t])<0&&(n=e[t]);return n},this.functionMaxBy=t=>{const e=t[1],n=t[0],r=this.createKeyFunction(e,[d.TYPE_NUMBER,d.TYPE_STRING]);let i,o,a=-1/0;for(let t=0;t<n.length;t+=1)o=r&&r(n[t]),void 0!==o&&o>a&&(a=o,i=n[t]);return i},this.functionMerge=t=>{let e={};for(let n=0;n<t.length;n+=1){const r=t[n];e=Object.assign(e,r)}return e},this.functionMin=([t])=>{if(!t.length)return null;if(this.getTypeName(t[0])===d.TYPE_NUMBER)return Math.min(...t);const e=t;let n=e[0];for(let t=1;t<e.length;t+=1)e[t].localeCompare(n)<0&&(n=e[t]);return n},this.functionMinBy=t=>{const e=t[1],n=t[0],r=this.createKeyFunction(e,[d.TYPE_NUMBER,d.TYPE_STRING]);let i,o,a=1/0;for(let t=0;t<n.length;t+=1)o=r&&r(n[t]),void 0!==o&&o<a&&(a=o,i=n[t]);return i},this.functionNotNull=t=>{for(let e=0;e<t.length;e+=1)if(this.getTypeName(t[e])!==d.TYPE_NULL)return t[e];return null},this.functionReverse=([t])=>{if(this.getTypeName(t)===d.TYPE_STRING){const e=t;let n="";for(let t=e.length-1;t>=0;t-=1)n+=e[t];return n}const e=t.slice(0);return e.reverse(),e},this.functionSort=([t])=>[...t].sort(),this.functionSortBy=t=>{if(!this._interpreter)return[];const e=t[0].slice(0);if(0===e.length)return e;const n=this._interpreter,r=t[1],i=this.getTypeName(n.visit(r,e[0]));if(void 0!==i&&![d.TYPE_NUMBER,d.TYPE_STRING].includes(i))throw new Error(`TypeError: unexpected type (${this.TYPE_NAME_TABLE[i]})`);const o=[];for(let t=0;t<e.length;t+=1)o.push([t,e[t]]);o.sort(((t,e)=>{const o=n.visit(r,t[1]),a=n.visit(r,e[1]);if(this.getTypeName(o)!==i)throw new Error(`TypeError: expected (${this.TYPE_NAME_TABLE[i]}), received ${this.TYPE_NAME_TABLE[this.getTypeName(o)]}`);if(this.getTypeName(a)!==i)throw new Error(`TypeError: expected (${this.TYPE_NAME_TABLE[i]}), received ${this.TYPE_NAME_TABLE[this.getTypeName(a)]}`);return o>a?1:o<a?-1:t[0]-e[0]}));for(let t=0;t<o.length;t+=1)e[t]=o[t][1];return e},this.functionStartsWith=([t,e])=>t.startsWith(e),this.functionSum=([t])=>t.reduce(((t,e)=>t+e),0),this.functionToArray=([t])=>this.getTypeName(t)===d.TYPE_ARRAY?t:[t],this.functionToNumber=([t])=>{const e=this.getTypeName(t);let n;return e===d.TYPE_NUMBER?t:e!==d.TYPE_STRING||(n=+t,isNaN(n))?null:n},this.functionToString=([t])=>this.getTypeName(t)===d.TYPE_STRING?t:JSON.stringify(t),this.functionType=([t])=>{switch(this.getTypeName(t)){case d.TYPE_NUMBER:return"number";case d.TYPE_STRING:return"string";case d.TYPE_ARRAY:return"array";case d.TYPE_OBJECT:return"object";case d.TYPE_BOOLEAN:return"boolean";case d.TYPE_EXPREF:return"expref";case d.TYPE_NULL:return"null";default:return}},this.functionValues=([t])=>Object.values(t),this.functionTable={abs:{_func:this.functionAbs,_signature:[{types:[d.TYPE_NUMBER]}]},avg:{_func:this.functionAvg,_signature:[{types:[d.TYPE_ARRAY_NUMBER]}]},ceil:{_func:this.functionCeil,_signature:[{types:[d.TYPE_NUMBER]}]},contains:{_func:this.functionContains,_signature:[{types:[d.TYPE_STRING,d.TYPE_ARRAY]},{types:[d.TYPE_ANY]}]},ends_with:{_func:this.functionEndsWith,_signature:[{types:[d.TYPE_STRING]},{types:[d.TYPE_STRING]}]},floor:{_func:this.functionFloor,_signature:[{types:[d.TYPE_NUMBER]}]},join:{_func:this.functionJoin,_signature:[{types:[d.TYPE_STRING]},{types:[d.TYPE_ARRAY_STRING]}]},keys:{_func:this.functionKeys,_signature:[{types:[d.TYPE_OBJECT]}]},length:{_func:this.functionLength,_signature:[{types:[d.TYPE_STRING,d.TYPE_ARRAY,d.TYPE_OBJECT]}]},map:{_func:this.functionMap,_signature:[{types:[d.TYPE_EXPREF]},{types:[d.TYPE_ARRAY]}]},max:{_func:this.functionMax,_signature:[{types:[d.TYPE_ARRAY_NUMBER,d.TYPE_ARRAY_STRING]}]},max_by:{_func:this.functionMaxBy,_signature:[{types:[d.TYPE_ARRAY]},{types:[d.TYPE_EXPREF]}]},merge:{_func:this.functionMerge,_signature:[{types:[d.TYPE_OBJECT],variadic:!0}]},min:{_func:this.functionMin,_signature:[{types:[d.TYPE_ARRAY_NUMBER,d.TYPE_ARRAY_STRING]}]},min_by:{_func:this.functionMinBy,_signature:[{types:[d.TYPE_ARRAY]},{types:[d.TYPE_EXPREF]}]},not_null:{_func:this.functionNotNull,_signature:[{types:[d.TYPE_ANY],variadic:!0}]},reverse:{_func:this.functionReverse,_signature:[{types:[d.TYPE_STRING,d.TYPE_ARRAY]}]},sort:{_func:this.functionSort,_signature:[{types:[d.TYPE_ARRAY_STRING,d.TYPE_ARRAY_NUMBER]}]},sort_by:{_func:this.functionSortBy,_signature:[{types:[d.TYPE_ARRAY]},{types:[d.TYPE_EXPREF]}]},starts_with:{_func:this.functionStartsWith,_signature:[{types:[d.TYPE_STRING]},{types:[d.TYPE_STRING]}]},sum:{_func:this.functionSum,_signature:[{types:[d.TYPE_ARRAY_NUMBER]}]},to_array:{_func:this.functionToArray,_signature:[{types:[d.TYPE_ANY]}]},to_number:{_func:this.functionToNumber,_signature:[{types:[d.TYPE_ANY]}]},to_string:{_func:this.functionToString,_signature:[{types:[d.TYPE_ANY]}]},type:{_func:this.functionType,_signature:[{types:[d.TYPE_ANY]}]},values:{_func:this.functionValues,_signature:[{types:[d.TYPE_OBJECT]}]}},this._interpreter=t}registerFunction(t,e,n){if(t in this.functionTable)throw new Error(`Function already defined: ${t}()`);this.functionTable[t]={_func:e.bind(this),_signature:n}}callFunction(t,e){const n=this.functionTable[t];if(void 0===n)throw new Error(`Unknown function: ${t}()`);return this.validateArgs(t,e,n._signature),n._func.call(this,e)}validateInputSignatures(t,e){for(let n=0;n<e.length;n+=1)if("variadic"in e[n]&&n!==e.length-1)throw new Error(`ArgumentError: ${t}() 'variadic' argument ${n+1} must occur last`)}validateArgs(t,e,n){var r,i;let o;this.validateInputSignatures(t,n);const a=n.filter((t=>{var e;return null!==(e=!t.optional)&&void 0!==e&&e})).length,s=null!==(i=null===(r=n[n.length-1])||void 0===r?void 0:r.variadic)&&void 0!==i&&i,u=e.length<a,l=e.length>n.length,c=u&&(!s&&a>1||s)?"at least ":"";if(s&&u||!s&&(u||l))throw o=n.length>1,new Error(`ArgumentError: ${t}() takes ${c}${a} argument${o?"s":""} but received ${e.length}`);let p,d,h;for(let r=0;r<n.length;r+=1){let i;for(h=!1,p=n[r].types,d=this.getTypeName(e[r]),i=0;i<p.length;i+=1)if(void 0!==d&&this.typeMatches(d,p[i],e[r])){h=!0;break}if(!h&&void 0!==d){const e=p.map((t=>this.TYPE_NAME_TABLE[t])).join(" | ");throw new Error(`TypeError: ${t}() expected argument ${r+1} to be type (${e}) but received type ${this.TYPE_NAME_TABLE[d]} instead.`)}}}typeMatches(t,e,n){if(e===d.TYPE_ANY)return!0;if(e!==d.TYPE_ARRAY_STRING&&e!==d.TYPE_ARRAY_NUMBER&&e!==d.TYPE_ARRAY)return t===e;if(e===d.TYPE_ARRAY)return t===d.TYPE_ARRAY;if(t===d.TYPE_ARRAY){let t;e===d.TYPE_ARRAY_NUMBER?t=d.TYPE_NUMBER:e===d.TYPE_ARRAY_STRING&&(t=d.TYPE_STRING);for(let e=0;e<n.length;e+=1){const r=this.getTypeName(n[e]);if(void 0!==r&&void 0!==t&&!this.typeMatches(r,t,n[e]))return!1}return!0}return!1}getTypeName(t){switch(Object.prototype.toString.call(t)){case"[object String]":return d.TYPE_STRING;case"[object Number]":return d.TYPE_NUMBER;case"[object Array]":return d.TYPE_ARRAY;case"[object Boolean]":return d.TYPE_BOOLEAN;case"[object Null]":return d.TYPE_NULL;case"[object Object]":return t.jmespathType===o.TOK_EXPREF?d.TYPE_EXPREF:d.TYPE_OBJECT;default:return}}createKeyFunction(t,e){if(!this._interpreter)return;const n=this._interpreter;return r=>{const i=n.visit(t,r);if(!e.includes(this.getTypeName(i))){const t=`TypeError: expected one of (${e.map((t=>this.TYPE_NAME_TABLE[t])).join(" | ")}), received ${this.TYPE_NAME_TABLE[this.getTypeName(i)]}`;throw new Error(t)}return i}}}const f=new class{constructor(){this._rootValue=null,this.runtime=new h(this)}search(t,e){return this._rootValue=e,this.visit(t,e)}visit(t,i){let a,s,u,l,c,p,d,h,f,v,m;switch(t.type){case"Field":return null===i?null:e(i)?(p=i[t.name],void 0===p?null:p):null;case"Subexpression":for(u=this.visit(t.children[0],i),v=1;v<t.children.length;v+=1)if(u=this.visit(t.children[1],u),null===u)return null;return u;case"IndexExpression":return d=this.visit(t.children[0],i),h=this.visit(t.children[1],d),h;case"Index":if(!Array.isArray(i))return null;let g=t.value;return g<0&&(g=i.length+g),u=i[g],void 0===u&&(u=null),u;case"Slice":if(!Array.isArray(i))return null;const y=[...t.children],b=this.computeSliceParams(i.length,y),[_,w,E]=b;if(u=[],E>0)for(v=_;v<w;v+=E)u.push(i[v]);else for(v=_;v>w;v+=E)u.push(i[v]);return u;case"Projection":if(m=this.visit(t.children[0],i),!Array.isArray(m))return null;for(f=[],v=0;v<m.length;v+=1)s=this.visit(t.children[1],m[v]),null!==s&&f.push(s);return f;case"ValueProjection":if(m=this.visit(t.children[0],i),!e(m))return null;f=[];const x=Object.values(m);for(v=0;v<x.length;v+=1)s=this.visit(t.children[1],x[v]),null!==s&&f.push(s);return f;case"FilterProjection":if(m=this.visit(t.children[0],i),!Array.isArray(m))return null;const S=[],C=[];for(v=0;v<m.length;v+=1)a=this.visit(t.children[2],m[v]),r(a)||S.push(m[v]);for(let e=0;e<S.length;e+=1)s=this.visit(t.children[1],S[e]),null!==s&&C.push(s);return C;case"Comparator":switch(l=this.visit(t.children[0],i),c=this.visit(t.children[1],i),t.name){case o.TOK_EQ:u=n(l,c);break;case o.TOK_NE:u=!n(l,c);break;case o.TOK_GT:u=l>c;break;case o.TOK_GTE:u=l>=c;break;case o.TOK_LT:u=l<c;break;case o.TOK_LTE:u=l<=c;break;default:throw new Error(`Unknown comparator: ${t.name}`)}return u;case o.TOK_FLATTEN:const T=this.visit(t.children[0],i);if(!Array.isArray(T))return null;let k=[];for(v=0;v<T.length;v+=1)s=T[v],Array.isArray(s)?k=[...k,...s]:k.push(s);return k;case"Identity":return i;case"MultiSelectList":if(null===i)return null;for(f=[],v=0;v<t.children.length;v+=1)f.push(this.visit(t.children[v],i));return f;case"MultiSelectHash":if(null===i)return null;let D;for(f={},v=0;v<t.children.length;v+=1)D=t.children[v],f[D.name]=this.visit(D.value,i);return f;case"OrExpression":return a=this.visit(t.children[0],i),r(a)&&(a=this.visit(t.children[1],i)),a;case"AndExpression":return l=this.visit(t.children[0],i),r(l)?l:this.visit(t.children[1],i);case"NotExpression":return l=this.visit(t.children[0],i),r(l);case"Literal":return t.value;case o.TOK_PIPE:return d=this.visit(t.children[0],i),this.visit(t.children[1],d);case o.TOK_CURRENT:return i;case o.TOK_ROOT:return this._rootValue;case"Function":const A=[];for(let e=0;e<t.children.length;e+=1)A.push(this.visit(t.children[e],i));return this.runtime.callFunction(t.name,A);case"ExpressionReference":const M=t.children[0];return M.jmespathType=o.TOK_EXPREF,M;default:throw new Error(`Unknown node type: ${t.type}`)}}computeSliceParams(t,e){let[n,r,i]=e;if(null===i)i=1;else if(0===i){const t=new Error("Invalid slice, step cannot be 0");throw t.name="RuntimeError",t}const o=i<0;return n=null===n?o?t-1:0:this.capSliceRange(t,n,i),r=null===r?o?-1:t:this.capSliceRange(t,r,i),[n,r,i]}capSliceRange(t,e,n){let r=e;return r<0?(r+=t,r<0&&(r=n<0?-1:0)):r>=t&&(r=n<0?t-1:t),r}},v=d.TYPE_ANY,m=d.TYPE_ARRAY,g=d.TYPE_ARRAY_NUMBER,y=d.TYPE_ARRAY_STRING,b=d.TYPE_BOOLEAN,_=d.TYPE_EXPREF,w=d.TYPE_NULL,E=d.TYPE_NUMBER,x=d.TYPE_OBJECT,S=d.TYPE_STRING;function C(t){return p.parse(t)}function T(t){return l.tokenize(t)}const k=(t,e,n)=>{f.runtime.registerFunction(t,e,n)};function D(t,e){const n=p.parse(e);return f.search(n,t)}const A=f,M={compile:C,registerFunction:k,search:D,tokenize:T,TreeInterpreter:A,TYPE_ANY:v,TYPE_ARRAY_NUMBER:g,TYPE_ARRAY_STRING:y,TYPE_ARRAY:m,TYPE_BOOLEAN:b,TYPE_EXPREF:_,TYPE_NULL:w,TYPE_NUMBER:E,TYPE_OBJECT:x,TYPE_STRING:S};t.TYPE_ANY=v,t.TYPE_ARRAY=m,t.TYPE_ARRAY_NUMBER=g,t.TYPE_ARRAY_STRING=y,t.TYPE_BOOLEAN=b,t.TYPE_EXPREF=_,t.TYPE_NULL=w,t.TYPE_NUMBER=E,t.TYPE_OBJECT=x,t.TYPE_STRING=S,t.TreeInterpreter=A,t.compile=C,t.default=M,t.jmespath=M,t.registerFunction=k,t.search=D,t.tokenize=T,Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/platform-browser"),require("imask"),require("@angular/common")):"function"==typeof define&&define.amd?define("angular-imask",["exports","@angular/core","@angular/forms","@angular/platform-browser","imask","@angular/common"],e):e((t=t||self)["angular-imask"]={},t.ng.core,t.ng.forms,t.ng.platformBrowser,t.IMask,t.ng.common)}(this,(function(t,e,n,r,i,o){"use strict";var a="default"in i?i.default:i;var s={provide:n.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return l})),multi:!0},u=function(t){return t.nativeElement},l=function(){function t(t,n,i){var o;this._elementRef=t,this._renderer=n,this._compositionMode=i,this.onTouched=function(){},this.onChange=function(){},this.imaskElement=u,this.accept=new e.EventEmitter,this.complete=new e.EventEmitter,this._viewInitialized=!1,this._composing=!1,this._writing=!1,null==this._compositionMode&&(this._compositionMode=(o=r.\u0275getDOM()?r.\u0275getDOM().getUserAgent():"",!/android (\d+)/.test(o.toLowerCase())))}return Object.defineProperty(t.prototype,"element",{get:function(){return this.imaskElement(this._elementRef,this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maskValue",{get:function(){return this.maskRef?"typed"===this.unmask?this.maskRef.typedValue:this.unmask?this.maskRef.unmaskedValue:this.maskRef.value:this.element.value},set:function(t){this.maskRef?"typed"===this.unmask?this.maskRef.typedValue=t:this.unmask?this.maskRef.unmaskedValue=t:this.maskRef.value=t:this._renderer.setProperty(this.element,"value",t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.imask&&this.initMask(),this._viewInitialized=!0},t.prototype.ngOnChanges=function(t){t.elementRef&&!this.imaskElement&&(this.imaskElement=u),t.imask&&this._viewInitialized&&(this.imask?this.maskRef?this.maskRef.updateOptions(this.imask):(this.initMask(),this.onChange(this.maskValue)):this.destroyMask())},t.prototype.destroyMask=function(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)},t.prototype.ngOnDestroy=function(){this.destroyMask(),this.accept.complete(),this.complete.complete()},t.prototype.beginWrite=function(t){this._writing=!0,this._writingValue=t},t.prototype.endWrite=function(){return this._writing=!1,this._writingValue},t.prototype.writeValue=function(t){t=null==t?"":t,this.maskRef?(this.beginWrite(t),(this.maskValue!==t||"string"!=typeof t&&""===this.maskRef.value&&!this.maskRef.el.isActive)&&(this.maskValue=t)):this._renderer.setProperty(this.element,"value",t)},t.prototype._onAccept=function(){var t=this.maskValue;this._writing&&t===this.endWrite()||(this.onChange(t),this.accept.emit(t))},t.prototype._onComplete=function(){this.complete.emit(this.maskValue)},t.prototype.initMask=function(){this.maskRef=a(this.element,this.imask).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this))},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this.element,"disabled",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype._handleInput=function(t){this.maskRef||(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this._handleInput(t)},t.decorators=[{type:e.Directive,args:[{selector:"[imask]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[s]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:Boolean,decorators:[{type:e.Optional},{type:e.Inject,args:[n.COMPOSITION_BUFFER_MODE]}]}]},t.propDecorators={imask:[{type:e.Input}],unmask:[{type:e.Input}],imaskElement:[{type:e.Input}],accept:[{type:e.Output}],complete:[{type:e.Output}]},t}();var c=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},p=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t},d=function(){function t(){}return t.prototype.transform=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.pipe.apply(void 0,p(t))},t.decorators=[{type:e.Pipe,args:[{name:"imask"}]}],t}(),h=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[o.CommonModule],declarations:[l,d],exports:[l,d]}]}],t}();Object.defineProperty(t,"PIPE_TYPE",{enumerable:!0,get:function(){return i.PIPE_TYPE}}),Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return i.pipe}}),t.IMaskDirective=l,t.IMaskModule=h,t.IMaskPipe=d,t.MASKEDINPUT_VALUE_ACCESSOR=s,Object.defineProperty(t,"__esModule",{value:!0})})),
|
|
3794
3794
|
/*!
|
|
3795
|
-
* tabbable 6.
|
|
3795
|
+
* tabbable 6.2.0
|
|
3796
3796
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
3797
3797
|
*/
|
|
3798
|
-
function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,r=t.tabbable={};e(r),r.noConflict=function(){return t.tabbable=n,r}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),r="undefined"==typeof Element,i=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o=!r&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function t(e,n){var r;void 0===n&&(n=!0);var i=null==e||null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"inert");return""===i||"true"===i||n&&e&&t(e.parentNode)},s=function(t,e,r){if(a(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&i.call(t,n)&&o.unshift(t),o=o.filter(r)},u=function t(e,r,o){for(var s=[],u=Array.from(e);u.length;){var l=u.shift();if(!a(l,!1))if("SLOT"===l.tagName){var c=l.assignedElements(),p=t(c.length?c:l.children,!0,o);o.flatten?s.push.apply(s,p):s.push({scopeParent:l,candidates:p})}else{i.call(l,n)&&o.filter(l)&&(r||!e.includes(l))&&s.push(l);var d=l.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(l),h=!a(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(l));if(d&&h){var f=t(!0===d?l.children:d.children,!0,o);o.flatten?s.push.apply(s,f):s.push({scopeParent:l,candidates:f})}else u.unshift.apply(u,l.children)}}return s},l=function(t,
|
|
3798
|
+
function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,r=t.tabbable={};e(r),r.noConflict=function(){return t.tabbable=n,r}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),r="undefined"==typeof Element,i=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o=!r&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function t(e,n){var r;void 0===n&&(n=!0);var i=null==e||null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"inert");return""===i||"true"===i||n&&e&&t(e.parentNode)},s=function(t,e,r){if(a(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&i.call(t,n)&&o.unshift(t),o=o.filter(r)},u=function t(e,r,o){for(var s=[],u=Array.from(e);u.length;){var l=u.shift();if(!a(l,!1))if("SLOT"===l.tagName){var c=l.assignedElements(),p=t(c.length?c:l.children,!0,o);o.flatten?s.push.apply(s,p):s.push({scopeParent:l,candidates:p})}else{i.call(l,n)&&o.filter(l)&&(r||!e.includes(l))&&s.push(l);var d=l.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(l),h=!a(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(l));if(d&&h){var f=t(!0===d?l.children:d.children,!0,o);o.flatten?s.push.apply(s,f):s.push({scopeParent:l,candidates:f})}else u.unshift.apply(u,l.children)}}return s},l=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},c=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!l(t)?0:t.tabIndex},p=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},d=function(t){return"INPUT"===t.tagName},h=function(t){return function(t){return d(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||o(t),r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var i=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!i||i===t}(t)},f=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height;return 0===n&&0===r},v=function(t,e){var n=e.displayCheck,r=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var a=i.call(t,"details>summary:first-of-type")?t.parentElement:t;if(i.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return f(t)}else{if("function"==typeof r){for(var s=t;t;){var u=t.parentElement,l=o(t);if(u&&!u.shadowRoot&&!0===r(u))return f(t);t=t.assignedSlot?t.assignedSlot:u||l===t.ownerDocument?u:l.host}t=s}if(function(t){var e,n,r,i,a=t&&o(t),s=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=t&&null!==(i=t.ownerDocument)&&void 0!==i&&i.contains(t));!u&&s;){var l,c,p;u=!(null===(c=s=null===(l=a=o(s))||void 0===l?void 0:l.host)||void 0===c||null===(p=c.ownerDocument)||void 0===p||!p.contains(s))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},m=function(t,e){return!(e.disabled||a(e)||function(t){return d(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var r=e.children.item(n);if("LEGEND"===r.tagName)return!!i.call(e,"fieldset[disabled] *")||!r.contains(t)}return!0}e=e.parentElement}return!1}(e))},g=function(t,e){return!(h(e)||c(e)<0||!m(t,e))},y=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},b=function t(e){var n=[],r=[];return e.forEach((function(e,i){var o=!!e.scopeParent,a=o?e.scopeParent:e,s=function(t,e){var n=c(t);return n<0&&e&&!l(t)?0:n}(a,o),u=o?t(e.candidates):a;0===s?o?n.push.apply(n,u):n.push(a):r.push({documentOrder:i,tabIndex:s,item:e,isScope:o,content:u})})),r.sort(p).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},_=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:m.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):s(t,e.includeContainer,m.bind(null,e))},t.getTabIndex=c,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==i.call(t,_)&&m(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==i.call(t,n)&&g(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:g.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:y}):s(t,e.includeContainer,g.bind(null,e)),b(n)},Object.defineProperty(t,"__esModule",{value:!0})})),
|
|
3799
3799
|
/*!
|
|
3800
3800
|
* @wavemaker/focus-trap 1.0.0
|
|
3801
3801
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|