!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=n(4),o=n(5),s=n(8),a=n(13),l=n(15),c=n(19),d=n(22),u=n(23),p=n(24),m=n(25),h=n(27),f=n(31),_=n(29),b=n(28),y=n(30),g=n(32),v=n(33),E=n(34),C=n(18),L=n(35),O=n(36),A=n(37),S=n(38),w=n(6),x=n(12),I=n(11),P=n(10),T=n(14),k=n(7),j="undefined"!=typeof window?window:e,H=function(){function e(){this.AccessabilityDetection=i.AccessabilityDetection,this.CollapsableComponent=l.CollapsableComponent.factory,this.CompassComponent=c.CompassComponent.factory,this.ContentHeader=d.ContentHeaderComponent.factory,this.ContentHeaderComponent=d.ContentHeaderComponent.factory,this.ContentHeaderItem=u.ContentHeaderItem,this.DateComponent=p.DateComponent.factory,this.DropdownComponent=h.DropdownComponent.factory,this.Drawer=m.DrawerComponent.factory,this.DrawerComponent=m.DrawerComponent.factory,this.ListComponent=f.ListComponent.factory,this.PaginationComponent=g.PaginationComponent.factory,this.PopoverComponent=v.PopoverComponent.factory,this.Prompt=E.PromptComponent.factory,this.PromptComponent=E.PromptComponent.factory,this.SyntheticButtonComponent=C.SyntheticButtonComponent.factory,this.TabListComponent=O.TabListComponent.factory,this.TooltipComponent=S.TooltipComponent.factory,this.CalendarComponent=s.CalendarComponent.factory,this.CalendarDayComponent=a.CalendarDayComponent,this.ListItem=_.ListItem,this.ListOption=b.ListOption,this.LiveRegion=y.LiveRegion,this.RegionSettings=x.RegionSettings,this.TabComponent=L.TabComponent,this.TabNavigationComponent=A.TabNavigationComponent,this.ComponentFactory=r.ComponentFactory,this.ComponentManager=o.ComponentManager.defaultManager,this.GenericComponentFactory=r.GenericComponentFactory,this.dateUtility=I,this.dom=P,this.keyPressHandlers=T,this.logger=w.logger,this.utility=k,this.version="2.7.0",this.init=function(){P.dispatchEvent(document.body,"iris.init.start",{iris:this}),P.dispatchEvent(document.body,"irisinitstart",{iris:this}),this._accessabilityDetection=new i.AccessabilityDetection,P.dispatchEvent(document.body,"iris.init.component-start",{iris:this}),this._irisOptions.autoInit&&this._initComponents(),P.dispatchEvent(document.body,"iris.init.component-end",{iris:this}),w.logger({message:"Initialized Iris Framework version "+this.version+".",type:"info"}),P.dispatchEvent(document.body,"irisinitend",{iris:this}),P.dispatchEvent(document.body,"iris.init.end",{iris:this})},this._accessabilityDetection=null,this._irisOptions={autoInit:!0}}return e.prototype._getAutoInitElements=function(e){var t=e+":not([data-manual-init])";return document.querySelectorAll(t)},e.prototype._initComponents=function(){this.CollapsableComponent.init(this._getAutoInitElements(this.CollapsableComponent.querySelector)),this.CompassComponent.init(this._getAutoInitElements(this.CompassComponent.querySelector)),this.DateComponent.init(this._getAutoInitElements(this.DateComponent.querySelector)),this.DropdownComponent.init(this._getAutoInitElements(this.DropdownComponent.querySelector)),this.ListComponent.init(this._getAutoInitElements(this.ListComponent.querySelector)),this.PromptComponent.init(this._getAutoInitElements(this.PromptComponent.querySelector)),this.DrawerComponent.init(this._getAutoInitElements(this.DrawerComponent.querySelector)),this.SyntheticButtonComponent.init(this._getAutoInitElements(this.SyntheticButtonComponent.querySelector)),this.TabListComponent.init(this._getAutoInitElements(this.TabListComponent.querySelector)),"undefined"==typeof Popper?w.logger({message:"Popper.js is not available. It is required by the Iris Framework to use the Popover and Tooltip Components.",type:"warn"}):(this.PopoverComponent.init(this._getAutoInitElements(this.PopoverComponent.querySelector)),this.TooltipComponent.init(this._getAutoInitElements(this.TooltipComponent.querySelector)))},Object.defineProperty(e.prototype,"globalOptions",{get:function(){return this._irisOptions},set:function(e){this._irisOptions=Object.assign(this._irisOptions,e)},enumerable:!0,configurable:!0}),e.Iris=new e,e}();function M(){j.Alkami=j.Alkami||{},j.Alkami.Iris=H.Iris}if(t.IrisFramework=H,t.globalizeIris=M,t.unglobalizeIris=function(){delete j.Alkami.Iris},t.Iris=H.Iris,t.default=t.Iris,M(),j.window){var D=H.Iris;t.Iris.dom.ready(function(){D.init()})}}).call(this,n(2))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){var e=this;this._mouseClassName="iris-mouse-use-detected",this._keyboardClassName="iris-keyboard-use-detected",this._isKeyPressed=!1,this._element=document.body,this._handleKeyDown=function(t){if(!t||t.key){var n=t&&t.key.toLowerCase()||null,i=!!document.activeElement,r=["INPUT","TEXTAREA"].find(function(e){return e===document.activeElement.tagName});"tab"!==n&&i&&r||(e._isKeyPressed=!0,e._element.classList.remove(e._mouseClassName),e._element.classList.add(e._keyboardClassName),window.removeEventListener("keydown",e._handleKeyDown),window.addEventListener("mousedown",e._handleMouseDown),window.addEventListener("touchstart",e._handleMouseDown))}},this._handleKeyUp=function(){e._isKeyPressed=!1},this._handleMouseDown=function(){e._isKeyPressed||(e._element.classList.add(e._mouseClassName),e._element.classList.remove(e._keyboardClassName),window.removeEventListener("mousedown",e._handleMouseDown),window.removeEventListener("touchstart",e._handleMouseDown),window.addEventListener("keydown",e._handleKeyDown))},this._element.classList.contains(this._keyboardClassName)?this._handleKeyDown():this._handleMouseDown(),this._handleKeyUp(),window.addEventListener("keyup",this._handleKeyUp)}return e.prototype.destroy=function(){window.removeEventListener("keydown",this._handleKeyDown),window.removeEventListener("mousedown",this._handleMouseDown),window.removeEventListener("touchstart",this._handleMouseDown),this._element.classList.remove(this._mouseClassName),this._element.classList.remove(this._keyboardClassName)},e}();t.AccessabilityDetection=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=n(7),s=function(){function e(e,t){this._createFn=e,this._options=t}return Object.defineProperty(e.prototype,"defaultNodes",{get:function(){return document.querySelectorAll(this._options.defaultQuerySelector)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentName",{get:function(){return this._options.componentName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"querySelector",{get:function(){return this._options.defaultQuerySelector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"create",{get:function(){return this._createFn},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return r.ComponentManager.defaultManager.getComponentsByType(this._options.componentName)},enumerable:!0,configurable:!0}),e.prototype.init=function(e,t){var n=this,i=e||this.defaultNodes;return o.toArray(i).map(function(e){var i=e.dataset.irisId,s=null;return i||e.setAttribute("data-iris-id",o.generateUniqueId("iris",Object.keys(n.components))),(s=r.ComponentManager.defaultManager.findInstanceForElement(i,n.componentName))||(s=n.create(e,t),r.ComponentManager.defaultManager.add(s)),s})},e.prototype.destroy=function(e){var t=e||this.defaultNodes;return r.ComponentManager.defaultManager.destroyComponent(t,this.componentName)},e.prototype.refresh=function(e,t){var n=e||this.defaultNodes;this.destroy(n);var i=this.init(n,t);return this.cleanup(),i},e.prototype.cleanup=function(){return r.ComponentManager.defaultManager.disposeZombieInstances(this.componentName)},e.prototype.componentForElement=function(e){return e?r.ComponentManager.defaultManager.findInstanceForElement(e.dataset.irisId,this.componentName):(console.error("No element was passed in, returning null"),null)},e}();t.ComponentFactory=s;var a=function(e){function t(t,n,i){return e.call(this,function(e,r){return new t(e,Object.assign({componentName:n.componentName},i,r))},n)||this}return i(t,e),t}(s);t.GenericComponentFactory=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),r=n(7),o=function(){function e(){this._components={}}return Object.defineProperty(e.prototype,"components",{get:function(){return this._components},enumerable:!0,configurable:!0}),e.prototype.getComponentsByType=function(e){var t={};return Object.values(this._components).forEach(function(n){n.forEach(function(n){var i=n.element.dataset.irisId;n.getOptions().componentName===e&&(t[i]||(t[i]=[]),t[i].push(n))})}),t},e.prototype.add=function(e){var t=e.element.dataset.irisId;t||i.logger({component:"Manager",message:"No iris id on the element passed in.",type:"warn"}),this._components[t]||(this._components[t]=[]),this._components[t].push(e)},e.prototype.destroyComponent=function(e,t){var n=this,o=[];return r.toArray(e).forEach(function(e){var r=e.dataset.irisId;if(!n._components[r])return i.logger({component:"Manager",message:"The irisId was not found in the registry.",type:"warn"}),null;var s=n.findInstanceForElement(r,t);if(!s)return i.logger({component:"Manager",message:"A matching component was not found in the registry.",type:"warn"}),null;s.destroy();var a=n._components[r].indexOf(s);o.push(n._components[r].splice(a,1)[0]),0===n._components[r].length&&(delete n._components[r],delete e.dataset.irisId,e.removeAttribute("data-iris-id"))}),o},e.prototype.disposeZombieInstances=function(e){var t=this,n=Object.keys(this._components);if(0===n.length)return i.logger({component:"Manager",message:"There are no irisIds to search through.",type:"info"}),[];var r=[];return n.forEach(function(n){if(!document.querySelector('[data-iris-id="'+n+'"]')){if(!t._components[n])return void i.logger({component:"Manager",message:"The component listing for Iris ID: "+n+" doesn't exist.",type:"info"});t._components[n].forEach(function(n){e===n.getOptions().componentName&&(t.destroyComponent(n.element,e),r.push(n))})}}),r},e.prototype.findInstanceForElement=function(e,t){return this._components[e]?this._components[e].find(function(e){return t===e.getOptions().componentName||null}):null},e.defaultManager=new e,e}();t.ComponentManager=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=window.localStorage&&"true"===window.localStorage.getItem("irisTrace");t.logger=function(e){var t="IRIS:"+(e.component?" ("+e.component+")":"")+" "+e.message;switch(e.type){case"trace":i&&(t="TRACE || "+t,console.log(t));break;case"info":console.info(t);break;case"log":console.log(t);break;case"warn":console.warn(t);break;case"error":console.error(new Error(t));break;default:console.warn("Message was of an unknown type. Something went wrong.")}e.tip&&console.info("TIP:  "+e.tip)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6);t.debounce=function(e,t,n){var i;return void 0===n&&(n=!1),function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var s=this,a=arguments,l=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||e.apply(s,a)},t),l&&e.apply(s,a)}};var r=/{(\d+)}/g;t.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.replace(r,function(e,n){return void 0!==t[n]?t[n]:e})},t.generateUniqueId=function e(t,n){var i=t+"_"+(new Date).getTime();return(n?n.indexOf(i)>-1:document&&document.getElementById(i))?e(t,n):i},t.getOrdinal=function(e){var t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])},t.isString=function(e){return"string"==typeof e||e instanceof String},t.joinAttributeList=function(e){return e.map(function(e){return e.trim()}).join(" ")},t.range=function(e,t,n){void 0===n&&(n=1);var i=t?e:0,r=t||e;return Array.apply(null,{length:(r-i)/n}).map(function(e,t){return t*n+i})},t.splitAttributeToList=function(e){var t=e&&e.trim()||"";return t?t.split(/\s+/):[]},t.toArray=function(e){if(!e)return console.warn("The object passed in was either null or undefined. Returning an empty array."),[];var t=Array.prototype.slice.call(e);return 0===t.length&&void 0===e.length&&t.push(e),t},t.dispatchIrisEvent=function(e,t,n,r){var o=new CustomEvent(t,{detail:r||e});e.dispatchEvent(o),i.logger({component:n.component,message:"Dispatching event "+o.type,type:n.type})},t.isTouchDevice=function(){return"ontouchstart"in document.documentElement},t.areArraysEqual=function(e,t,n){if(void 0===n&&(n=!1),e.length!==t.length)return!1;if(n){for(var i=e.length;i--;)if(e[i]!==t[i])return!1;return!0}return e.every(function(e){return!!t.find(function(t){return e===t})})},t.once=function(e,t){var n;void 0===t&&(t=this);var i=e;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return i&&(n=e.apply(t,arguments),i=null),n}}},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(4),s=n(11),a=n(10),l=n(7),c=n(13),d=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._updateMonthHeader=function(){if(i._calendarTitleElement.innerHTML=i._nameOfMonth(i._currentMonth)+" "+i._currentYear,i._options.startDateLimit){var e=s.convert(i._options.startDateLimit),t=i._currentYear===e.getUTCFullYear(),n=i._currentMonth<=e.getUTCMonth(),r=i._currentYear<e.getUTCFullYear();i._prevMonthButtonElement.disabled=!!(t&&n||r)}if(i._options.endDateLimit){var o=s.convert(i._options.endDateLimit),a=i._currentYear===o.getUTCFullYear(),l=i._currentMonth>=o.getUTCMonth(),c=i._currentYear>o.getUTCFullYear();i._nextMonthButtonElement.disabled=!!(a&&l||c)}},i._mergeEventWithDefaults=function(e){var t={eventDate:null,avatarIconClass:i._options.defaultAvatarIconClass,eventLabel:null};return Object.assign({},t,e)},i._previousMonthClickHandler=function(){0===i._currentMonth?(i._currentMonth=11,i._currentYear--):i._currentMonth--,i.date={month:i._currentMonth,year:i._currentYear},a.dispatchEvent(i.element,i._options.previousMonthClickEventName,{component:i,currentMonth:i._currentMonth,currentYear:i._currentYear})},i._nextMonthClickHandler=function(){11===i._currentMonth?(i._currentMonth=0,i._currentYear++):i._currentMonth++,i.date={month:i._currentMonth,year:i._currentYear},a.dispatchEvent(i.element,i._options.nextMonthClickEventName,{component:i,currentMonth:i._currentMonth,currentYear:i._currentYear})},i._calendarChildSelectedHandler=function(e){i._dayComponents.forEach(function(t){e.detail.component!==t&&!0===t.selected&&(t.selected=!1)}),a.dispatchEvent(i.element,i._options.selectedEventDayName,{component:i,selectedDay:e.detail.component,event:e.detail.event})},i._calendarKeyboardNavigate=function(e){var t=i._dayComponents.findIndex(function(t){return t.element===e.detail.component.element}),n=e.detail.direction,r={left:t-1,right:t+1,up:t-7,down:t+7},o=i._dayComponents[r[n]];o&&o.element.querySelector("button").focus()},i._events=n.calendarEvents,i._options=n,i._todaysDate=new Date,i._initDate=n.initDate?new Date(n.initDate):i._todaysDate,i._currentMonth=i._initDate.getUTCMonth(),i._currentYear=i._initDate.getUTCFullYear(),i._generateCalendarHeader(),i._generateMonthRowsAndDays(),i._addEventListeners(),i}return i(t,e),t.prototype.destroy=function(){this._dayComponents.forEach(function(e){e.destroy()}),this._prevMonthButtonElement.removeEventListener("click",this._previousMonthClickHandler),this._nextMonthButtonElement.removeEventListener("click",this._nextMonthClickHandler),this.element.removeEventListener("_calendarDaySelected",this._calendarChildSelectedHandler)},t.prototype._generateCalendarHeader=function(){var e=document.createElement("div");e.classList.add("iris-calendar__header","flex","flex-items--center");var t=this._generateTitle(),n=this._generatePrevMonth(),i=this._generateNextMonth();e.appendChild(t),e.appendChild(n),e.appendChild(i),this._calendarHeader=e,this.element.prepend(e)},t.prototype._generateTitle=function(){var e=document.createElement("h2");return e.classList.add("iris-calendar__header-title","mar--0"),e.append(this._nameOfMonth(this._currentMonth)+" "+this._currentYear),this._calendarTitleElement=e,e},t.prototype._generatePrevMonth=function(){var e=document.createElement("button");e.classList.add("iris-button","iris-button--ghost","iris-calendar__header-prev-month"),e.setAttribute("aria-label","previous month");var t=document.createElement("span");return t.classList.add("iris-button__icon","font-icon-angle-left"),e.appendChild(t),this._prevMonthButtonElement=e,e},t.prototype._generateNextMonth=function(){var e=document.createElement("button");e.classList.add("iris-button","iris-button--ghost","iris-calendar__header-next-month"),e.setAttribute("aria-label","next month");var t=document.createElement("span");return t.classList.add("iris-button__icon","font-icon-angle-right"),e.appendChild(t),this._nextMonthButtonElement=e,e},t.prototype._generateMonthRowsAndDays=function(){var e=this;this._dispatchEvent("iris.calendar.generate.start",{component:this});var t=document.createElement("div");t.classList.add("iris-calendar__days"),t.setAttribute("role","grid");var n=this._firstDayOfMonth(this._currentMonth,this._currentYear),i=this._daysInMonth(this._currentMonth,this._currentYear),r=this._numberOfWeeks(n,i),o=this._generateDaysOfTheWeekNames();t.append(o);var a=l.range(r).map(function(e){var i=document.createElement("div");return i.classList.add("iris-calendar__days-row"),i.setAttribute("role","row"),i.setAttribute("aria-rowindex",""+e),0===e&&0!==n&&l.range(n).forEach(function(e){var t=document.createElement("div");t.classList.add("iris-calendar__days-spacer"),t.setAttribute("role","gridcell"),i.appendChild(t)}),t.append(i),i});this._dayComponents=l.range(1,i+1).map(function(t){var i=new Date(e._currentYear,e._currentMonth,t),r=e._events.find(function(e){if(e.eventDate)return s.isSameDay(e.eventDate,i)}),o={endDateLimit:e._options.endDateLimit,startDateLimit:e._options.startDateLimit},l=new c.CalendarDayComponent(i,e._todaysDate,e._mergeEventWithDefaults(r),o),d=e._numberOfWeeks(t,n)-1;return a[d].append(l.element),l});var d=a[a.length-1].querySelectorAll(".iris-day");d.length<7&&l.range(7-d.length).forEach(function(e){var t=document.createElement("div");t.classList.add("iris-calendar__days-spacer"),a[a.length-1].appendChild(t)}),this.element.append(t),this._dispatchEvent("iris.calendar.generate.end",{component:this})},t.prototype._generateDaysOfTheWeekNames=function(){var e={sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},t=document.createElement("div");return t.classList.add("iris-calendar__days-header"),t.setAttribute("role","row"),s.findDayOfTheWeek().forEach(function(n){var i=document.createElement("span");i.classList.add("iris-calendar__day-name"),i.setAttribute("role","columnheader"),i.innerHTML='<span class="sr-only">'+e[n]+'</span><span aria-hidden="true">'+n+"</span>",t.append(i)}),t},Object.defineProperty(t.prototype,"date",{get:function(){return{month:this._currentMonth,year:this._currentYear}},set:function(e){this.element.querySelector(".iris-calendar__days").remove();var t=new Date(e.year,e.month);this._currentMonth=t.getUTCMonth(),this._currentYear=t.getUTCFullYear(),this._updateMonthHeader(),this._generateMonthRowsAndDays()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{set:function(e){var t=this;e.forEach(function(e){var n=t._events.findIndex(function(t){return t.eventDate===e.eventDate});n>=0?t._events[n]=Object.assign({},t._events[n],e):t._events.push(e)}),e.filter(function(e){return s.convert(e.eventDate).getUTCMonth()===t._currentMonth}).length>0&&(this.element.querySelector(".iris-calendar__days").remove(),this._generateMonthRowsAndDays())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childrenComponents",{get:function(){return this._dayComponents},enumerable:!0,configurable:!0}),t.prototype._daysInMonth=function(e,t){return new Date(t,e+1,0).getUTCDate()},t.prototype._nameOfMonth=function(e){return s.findMonthName(e)},t.prototype._firstDayOfMonth=function(e,t){return new Date(t,e,1).getDay()},t.prototype._numberOfWeeks=function(e,t){return Math.ceil((t+e)/7)},t.prototype._addEventListeners=function(){this._prevMonthButtonElement.addEventListener("click",this._previousMonthClickHandler),this._nextMonthButtonElement.addEventListener("click",this._nextMonthClickHandler),this.element.addEventListener("_calendarDaySelected",this._calendarChildSelectedHandler),this.element.addEventListener("_calendarKeyboardNavigate",this._calendarKeyboardNavigate)},t._factoryOptions={defaultQuerySelector:".iris-calendar",componentName:"CalendarComponent"},t._defaultComponentOptions={startDateLimit:null,endDateLimit:null,calendarEvents:[],defaultAvatarIconClass:null,selectedEventDayName:"iris.calendar.day.selected",previousMonthClickEventName:"iris.calendar.previous.month",nextMonthClickEventName:"iris.calendar.next.month"},t.factory=new o.GenericComponentFactory(t,t._factoryOptions,t._defaultComponentOptions),t}(r.Component);t.CalendarComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(6),o=n(7),s=function(){function e(e,t){this.__element=e,this.__options=t,this.__messageObject={component:t.instanceName||this.getOptions().componentName,message:"",type:"trace"},this.__element.id||(this.__element.id=o.generateUniqueId(t.idPrefix||"iris_component"))}return Object.defineProperty(e.prototype,"element",{get:function(){return this.__element},enumerable:!0,configurable:!0}),e.prototype.getOptions=function(){return this.__options},e.prototype._dispatchEvent=function(e,t,n,r,o,s){void 0===t&&(t=this.__element),void 0===n&&(n=this.__element),void 0===r&&(r=this.__messageObject),void 0===o&&(o=!0),void 0===s&&(s=!0),i.dispatchEvent(n,e,t,o,s),this._log("Dispatching event "+e+" "+(n.id?"#"+n.id:""))},e.prototype._log=function(e,t,n){void 0===t&&(t="trace"),r.logger(Object.assign({},this.__messageObject,{message:e,tip:n,type:t}))},e}();t.Component=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);function r(e,t){var n=[];if(e.parentElement){var i=e.parentElement.firstElementChild;do{t&&!i.matches(t)||n.push(i),i=i.nextElementSibling}while(i)}return n}t.ancestorsOfElement=function(e,t){var n=[],i=e;do{t&&!i.matches(t)||n.push(i),i=i.parentElement}while(i);return n},t.classListContainsAll=function(e,t){var n=i.toArray(t);return n.filter(function(t){return e.classList.contains(t)}).length===n.length},t.classListContainsAny=function(e,t){return i.toArray(t).filter(function(t){return e.classList.contains(t)}).length>0},t.createElementsFromHTML=function(e){var t=document.createElement("DIV");return t.innerHTML=e.trim(),t.children},t.relatedElementByQuery=function(e,t){return t?0===t.indexOf("#")?document.querySelector(t):e.nextElementSibling&&e.nextElementSibling.matches(t)?e.nextElementSibling:e.previousElementSibling&&e.previousElementSibling.matches(t)?e.previousElementSibling:r(e,t)[0]||null:null},t.ready=function(e){var t=function(){document.removeEventListener("DOMContentLoaded",t),e()};"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?e():document.addEventListener("DOMContentLoaded",t)},t.scrollIntoViewIfNeeded=function(e,t){function n(e,n,i,r){return!1===t||i<=e+r&&e<=n+r?Math.min(i,Math.max(n,e)):(n+i)/2}void 0===t&&(t=!0);for(var i=e.parentNode,r=function e(t,n,i,o){return{left:t,top:n,width:i,height:o,right:t+i,bottom:n+o,translate:function(r,s){return e(r+t,s+n,i,o)},relativeFromTo:function(s,a){var l=t,c=n,d=s.offsetParent,u=a.offsetParent;if(d===u)return r;for(;d;d=d.offsetParent)l+=d.offsetLeft+d.clientLeft,c+=d.offsetTop+d.clientTop;for(;u;u=u.offsetParent)l-=u.offsetLeft+u.clientLeft,c-=u.offsetTop+u.clientTop;return e(l,c,i,o)}}}(e.offsetLeft,e.offsetTop,e.offsetWidth,e.offsetHeight);i instanceof HTMLElement;){var o=i.offsetLeft+i.clientLeft,s=i.offsetTop+i.clientTop;r=r.relativeFromTo(e,i).translate(-o,-s),i.scrollLeft=n(i.scrollLeft,r.right-i.clientWidth,r.left,i.clientWidth),i.scrollTop=n(i.scrollTop,r.bottom-i.clientHeight,r.top,i.clientHeight),r=r.translate(o-i.scrollLeft,s-i.scrollTop),i=(e=i).parentNode}},t.siblingsOfElement=r,t.getViewPortBoundingRect=function(){var e=window.screenX||0,t=window.screenY||0,n=window.innerWidth,i=window.innerHeight;return{x:e,y:t,width:n,height:i,top:t,left:e,bottom:t+i,right:e+n}},t.hasScrollbar=function(e,t){return void 0===e&&(e=document.documentElement),void 0===t&&(t="vertical"),"vertical"===t?e.scrollHeight>e.clientHeight:"horizontal"===t?e.scrollWidth>e.clientWidth:"both"===t?e.scrollHeight>e.clientHeight&&e.scrollWidth>e.clientWidth:e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth},t.getScrollbarWidth=function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),t-i},t.setElementAttributes=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})},t.dispatchEvent=function(e,t,n,i,r){void 0===n&&(n={}),void 0===i&&(i=!0),void 0===r&&(r=!0);var o=new CustomEvent(t,{bubbles:i,cancelable:r,detail:n});e.dispatchEvent(o)},t.handleOnce=function(e,t,n){var i=function(r){return e.removeEventListener(t,i),n.bind(this)(r)};e.addEventListener(t,i)},t.removeChildNodes=function(e){i.toArray(e.childNodes).forEach(function(e){return e.remove()})},t.isVisible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=function(){function e(e){this.date=e}return Object.defineProperty(e.prototype,"dayOfMonth",{get:function(){return this.date.getDate().toString(10).padStart(2,"0")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"abbreviatedDay",{get:function(){return t.daysOfTheWeek[this.date.getDay()]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"abbreviatedMonth",{get:function(){return s()[this.date.getMonth()]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"year",{get:function(){return this.date.getFullYear().toString(10)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullDate",{get:function(){return t.monthNames[this.date.getMonth()]+" "+this.dayOfMonth+", "+this.year},enumerable:!0,configurable:!0}),e}();function o(e){return e.constructor===Date?e:e.constructor===Array?new Date(e[0],e[1],e[2]):e.constructor===Number?new Date(e):e.constructor===String?new Date(e):"object"==typeof e?new Date(e.year,e.month,e.date):NaN}function s(){return[i.RegionSettings.format("calendar.monthabbr.january"),i.RegionSettings.format("calendar.monthabbr.february"),i.RegionSettings.format("calendar.monthabbr.march"),i.RegionSettings.format("calendar.monthabbr.april"),i.RegionSettings.format("calendar.monthabbr.may"),i.RegionSettings.format("calendar.monthabbr.june"),i.RegionSettings.format("calendar.monthabbr.july"),i.RegionSettings.format("calendar.monthabbr.august"),i.RegionSettings.format("calendar.monthabbr.september"),i.RegionSettings.format("calendar.monthabbr.october"),i.RegionSettings.format("calendar.monthabbr.november"),i.RegionSettings.format("calendar.monthabbr.december")]}t.FormattedDate=r,t.isSameDay=function(e,t){var n="string"==typeof e?new Date(e):e,i="string"==typeof t?new Date(t):t;return n.getUTCFullYear()===i.getUTCFullYear()&&n.getUTCMonth()===i.getUTCMonth()&&n.getUTCDate()===i.getUTCDate()},t.convert=o,t.compare=function(e,t){var n=o(e).valueOf(),i=o(t).valueOf();return isFinite(n)&&isFinite(i)?Number(n>i)-Number(n<i):NaN},t.inRange=function(e,t,n){var i=o(e).valueOf(),r=o(t).valueOf(),s=o(n).valueOf();return isFinite(i)&&isFinite(r)&&isFinite(s)?t<=e&&e<=n:NaN},t.findDayOfTheWeek=function(){return[i.RegionSettings.format("calendar.dayofweekabbr.sunday"),i.RegionSettings.format("calendar.dayofweekabbr.monday"),i.RegionSettings.format("calendar.dayofweekabbr.tuesday"),i.RegionSettings.format("calendar.dayofweekabbr.wednesday"),i.RegionSettings.format("calendar.dayofweekabbr.thursday"),i.RegionSettings.format("calendar.dayofweekabbr.friday"),i.RegionSettings.format("calendar.dayofweekabbr.saturday")]},t.findMonthName=function(e){return[i.RegionSettings.format("calendar.month.january"),i.RegionSettings.format("calendar.month.february"),i.RegionSettings.format("calendar.month.march"),i.RegionSettings.format("calendar.month.april"),i.RegionSettings.format("calendar.month.may"),i.RegionSettings.format("calendar.month.june"),i.RegionSettings.format("calendar.month.july"),i.RegionSettings.format("calendar.month.august"),i.RegionSettings.format("calendar.month.september"),i.RegionSettings.format("calendar.month.october"),i.RegionSettings.format("calendar.month.november"),i.RegionSettings.format("calendar.month.december")][e]},t.findAbbrMonthName=s,t.daysOfTheWeek=[i.RegionSettings.format("calendar.dayofweekabbr.sunday"),i.RegionSettings.format("calendar.dayofweekabbr.monday"),i.RegionSettings.format("calendar.dayofweekabbr.tuesday"),i.RegionSettings.format("calendar.dayofweekabbr.wednesday"),i.RegionSettings.format("calendar.dayofweekabbr.thursday"),i.RegionSettings.format("calendar.dayofweekabbr.friday"),i.RegionSettings.format("calendar.dayofweekabbr.saturday")],t.monthNames=[i.RegionSettings.format("calendar.month.january"),i.RegionSettings.format("calendar.month.february"),i.RegionSettings.format("calendar.month.march"),i.RegionSettings.format("calendar.month.april"),i.RegionSettings.format("calendar.month.may"),i.RegionSettings.format("calendar.month.june"),i.RegionSettings.format("calendar.month.july"),i.RegionSettings.format("calendar.month.august"),i.RegionSettings.format("calendar.month.september"),i.RegionSettings.format("calendar.month.october"),i.RegionSettings.format("calendar.month.november"),i.RegionSettings.format("calendar.month.december")],t.abbreviatedMonthNames=[i.RegionSettings.format("calendar.monthabbr.january"),i.RegionSettings.format("calendar.monthabbr.february"),i.RegionSettings.format("calendar.monthabbr.march"),i.RegionSettings.format("calendar.monthabbr.april"),i.RegionSettings.format("calendar.monthabbr.may"),i.RegionSettings.format("calendar.monthabbr.june"),i.RegionSettings.format("calendar.monthabbr.july"),i.RegionSettings.format("calendar.monthabbr.august"),i.RegionSettings.format("calendar.monthabbr.september"),i.RegionSettings.format("calendar.monthabbr.october"),i.RegionSettings.format("calendar.monthabbr.november"),i.RegionSettings.format("calendar.monthabbr.december")]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=function(){function e(e){void 0===e&&(e={}),this["dropdown.sr.focused"]="{0}, {1} Combo box.",this["dropdown.sr.selected"]="{0} selected.",this["dropdown.sr.unselected"]="{0} unselected.",this["dropdown.sr.active"]="{0}, active.",this["dropdown.sr.disabled"]="{0}, active, disabled.",this["dropdown.multiselect.selected"]="{0} items selected",this["calendar.dayofweekabbr.sunday"]="sun",this["calendar.dayofweekabbr.monday"]="mon",this["calendar.dayofweekabbr.tuesday"]="tue",this["calendar.dayofweekabbr.wednesday"]="wed",this["calendar.dayofweekabbr.thursday"]="thu",this["calendar.dayofweekabbr.friday"]="fri",this["calendar.dayofweekabbr.saturday"]="sat",this["calendar.month.january"]="January",this["calendar.month.february"]="February",this["calendar.month.march"]="March",this["calendar.month.april"]="April",this["calendar.month.may"]="May",this["calendar.month.june"]="June",this["calendar.month.july"]="July",this["calendar.month.august"]="August",this["calendar.month.september"]="September",this["calendar.month.october"]="October",this["calendar.month.november"]="November",this["calendar.month.december"]="December",this["calendar.monthabbr.january"]="Jan",this["calendar.monthabbr.february"]="Feb",this["calendar.monthabbr.march"]="Mar",this["calendar.monthabbr.april"]="Apr",this["calendar.monthabbr.may"]="May",this["calendar.monthabbr.june"]="Jun",this["calendar.monthabbr.july"]="Jul",this["calendar.monthabbr.august"]="Aug",this["calendar.monthabbr.september"]="Sep",this["calendar.monthabbr.october"]="Oct",this["calendar.monthabbr.november"]="Nov",this["calendar.monthabbr.december"]="Dec",this["contentheader.item.ascendinglabel"]="{0} (ascending)",this["contentheader.item.descendinglabel"]="{0} (descending)",this["contentheader.item.neutrallabel"]="{0}",this["contentheader.item.ascendingdirections"]="Activate button to sort by {0} ascending.",this["contentheader.item.descendingdirections"]="Activate button to sort by {0} descending.",this["list.sr.active"]="{0}, active.",this["list.sr.disabled"]="{0}, active, disabled.",this["list.sr.selected"]="{0} selected.",this["list.sr.unselected"]="{0} unselected.",this["tab.sr.selected"]="{0} selected.",this.apply(e)}return e.prototype.apply=function(e){var t=this;return Object.keys(this).forEach(function(n){var i=e[n];void 0!==i&&(t[n]=i)}),this},e.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return i.format.apply(i,[this[e]].concat(t))},Object.defineProperty(e,"defaultRegion",{get:function(){return e.regions[e.defaultRegionId]},enumerable:!0,configurable:!0}),e.format=function(t){for(var n,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return(n=e.defaultRegion).format.apply(n,[t].concat(i))},e.apply=function(t){return e.defaultRegion.apply(t)},e.regions={en:new e},e.defaultRegionId="en",e}();t.RegionSettings=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),r=n(10),o=n(14),s=n(7),a=function(){function e(e,t,n,i){void 0===t&&(t=new Date);var r=this;this._clickHandler=function(e){r.element.classList.contains("disabled-day")||(r.element.classList.add("selected"),r.selected=!0,r._rippleAnimation(e.clientX,e.clientY),e.cancelBubble=!0)},this._keypressHandler=function(e){r._createKeypressEventListener()(e)},this._date=e,this._endDateLimit=i.endDateLimit,this._event=n,this._selected=!1,this._startDateLimit=i.startDateLimit,this._today=t,this.element=document.createElement("div"),this.element.classList.add("iris-day"),this.element.setAttribute("role","gridcell"),this._generateAndPopulateDayElement(),this.element.append(this._dayButtonElement),this._addEventListeners()}return e.prototype.destroy=function(){this._removeEventListeners()},e.prototype._generateAndPopulateDayElement=function(){this._dayButtonElement=document.createElement("button"),this._dayButtonElement.classList.add("iris-day__button"),this._dayButtonElement.setAttribute("aria-label",""),this._dayButtonWrapperElement=document.createElement("div"),this._dayButtonWrapperElement.classList.add("iris-day__button-wrapper"),this._dayButtonElement.append(this._dayButtonWrapperElement),this._generateNumberElement(),this._generateButtonAriaLabel(),this._event.eventLabel&&this._generateLabelElement(this._event),this._event.avatarIconQuantity&&this._event.avatarIconQuantity>0&&this._generateIcons(this._event),this._setCurrentOrPastDay(),this._addAccessibilityAttributes()},e.prototype._generateNumberElement=function(){var e=document.createElement("span");e.classList.add("iris-day__number"),e.setAttribute("aria-hidden","true"),e.innerText=this._date.getUTCDate().toString(),this._dayButtonWrapperElement.append(e)},e.prototype._generateButtonAriaLabel=function(){var e=this._dayButtonElement.getAttribute("aria-label"),t=i.findMonthName(this._date.getUTCMonth())+" "+s.getOrdinal(this._date.getUTCDate())+", "+this._date.getUTCFullYear();this._dayButtonElement.setAttribute("aria-label",e.concat(t))},e.prototype._generateLabelElement=function(e){var t=document.createElement("span"),n=this._dayButtonElement.getAttribute("aria-label");t.innerText=this._event.eventLabel,t.classList.add("iris-day__label","font-style--italic"),this._dayButtonWrapperElement.append(t),this._dayButtonElement.setAttribute("aria-label",n.concat(", "+this._event.eventLabel)),e.avatarIconQuantity&&e.avatarIconQuantity&&t.classList.add("truncate")},e.prototype._generateIcons=function(e){var t=document.createElement("div"),n=this._dayButtonElement.getAttribute("aria-label"),i="";t.classList.add("iris-avatar","iris-day__icon","iris-day__avatar"),t.setAttribute("data-size","xsmall");var r=document.createElement("span");r.classList.add("iris-avatar__icon",this._event.avatarIconClass);var o=document.createElement("span");o.classList.add("iris-avatar__inner"),o.appendChild(r),i=", one event",2===e.avatarIconQuantity?(t.setAttribute("data-stack","2"),i=", two events"):e.avatarIconQuantity>=3&&(t.setAttribute("data-stack","3"),i=", three or more events"),this._dayButtonElement.setAttribute("aria-label",n.concat(i)),t.appendChild(o),this._dayButtonWrapperElement.append(t)},e.prototype._setCurrentOrPastDay=function(){var e=i.isSameDay(this._date,this._today);this.element.classList.toggle("iris-day--today",e);var t=!e&&this._date<this._today;this.element.classList.toggle("iris-day--past",t),this._startDateLimit&&-1===i.compare(this._date,this._startDateLimit)&&(this.element.classList.add("disabled-day"),this._dayButtonElement.disabled=!0),this._endDateLimit&&1===i.compare(this._date,this._endDateLimit)&&(this.element.classList.add("disabled-day"),this._dayButtonElement.disabled=!0)},e.prototype._addAccessibilityAttributes=function(){this.element.setAttribute("data-day-of-week",this._date.getDay().toString()),this.element.setAttribute("aria-colindex",(this._date.getDay()+1).toString()),this.element.setAttribute("data-calendar-date",this._date.toISOString().split("T",1)[0])},e.prototype._rippleAnimation=function(e,t){if(!this._rippleElement&&!this.element.classList.contains("disabled-day")){this._rippleElement=document.createElement("div"),this._rippleElement.classList.add("ripple"),this.element.append(this._rippleElement);var n=Math.max(this.element.clientWidth,this.element.clientHeight),i=this.element.getBoundingClientRect();if(e=e||i.left+Math.floor(Math.random()*Math.floor(n)),t=t||i.top+Math.floor(Math.random()*Math.floor(n)),this._event.avatarIconQuantity&&this._event.avatarIconQuantity>0){var r=this.element.querySelector(".iris-day__icon"),o=r.querySelector(".iris-avatar__inner").getBoundingClientRect();this._rippleElement.style.animation="none",this._rippleElement.style.width=o.width+"px",this._rippleElement.style.height=o.height+"px",this._rippleElement.style.top=r.offsetTop+"px",this._rippleElement.style.left=r.offsetLeft+"px",this._rippleElement.style.transform="scale(0)",this._rippleElement.style.transition="0.3s",this._rippleElement.style.transform="scale(18)"}else this._rippleElement.style.width=this._rippleElement.style.height=n+"px",this._rippleElement.style.left=e-i.left-n/2+"px",this._rippleElement.style.top=t-i.top-n/2+"px"}},e.prototype._removeRipple=function(){this._rippleElement.remove(),this._rippleElement=null,this.element.classList.remove("selected")},Object.defineProperty(e.prototype,"date",{get:function(){return this._date},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isToday",{get:function(){return!!i.isSameDay(this._date,this._today)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected!==e&&(this._selected=e,e&&r.dispatchEvent(this.element,"_calendarDaySelected",{component:this,event:this._event}),!e&&this._rippleElement&&this._removeRipple())},enumerable:!0,configurable:!0}),e.prototype._addEventListeners=function(){this.element.addEventListener("click",this._clickHandler),this._dayButtonElement.addEventListener("keydown",this._keypressHandler)},e.prototype._removeEventListeners=function(){this.element.removeEventListener("click",this._clickHandler),this._dayButtonElement.addEventListener("keydown",this._keypressHandler),this._dayButtonElement.addEventListener("keydown",this._keypressHandler)},e.prototype._createKeypressEventListener=function(){var e=this,t=function(){e.element.classList.add("selected"),e.selected=!0,e._rippleAnimation(null,null),event.cancelBubble=!0},n=function(t){r.dispatchEvent(e.element,"_calendarKeyboardNavigate",{component:e,direction:t})};return o.createKeypressEventListener({up:function(){return n("up")},down:function(){return n("down")},left:function(){return n("left")},right:function(){return n("right")},spacebar:function(){return t()},enter:function(){return t()}})},e}();t.CalendarDayComponent=a},function(e,t,n){"use strict";function i(e){return function(n){if(!n||n.key){var i=n.keyCode.toString(),r=n.key.toLowerCase(),o=(t.KEY_CODE_NAME_MAP[i]||r).toLowerCase(),s=Object.keys(e).find(function(e){var t=e.toLowerCase();return t===i||t===r||t===o});if(!s&&e.default&&(s="default"),s){var a=e[s].bind(this)(n);return a||(n.preventDefault(),n.stopPropagation()),a}return!0}}}Object.defineProperty(t,"__esModule",{value:!0}),t.createKeypressEventListener=i,t.simulateClickKeypressHandler=function(e){function t(t){return(e||this).click(),!1}return i({spacebar:t,enter:t})},t.KEY_CODE_NAME_MAP={13:"Enter",27:"Escape",32:"Spacebar",37:"Left",38:"Up",39:"Right",40:"Down",46:"Del",91:"OS",145:"Scroll"}},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(10),s=n(7),a=n(16),l=n(18),c=function(e){function t(){return e.call(this,function(e,t){return new d(e,Object.assign({idPrefix:"iris_collapsable",componentName:"CollapsableComponent"},t))},{defaultQuerySelector:"[data-collapsable]",componentName:"CollapsableComponent"})||this}return i(t,e),t.prototype.componentForElement=function(t){var n=this,i=e.prototype.componentForElement.call(this,t);return t&&!i&&Object.values(this.components).forEach(function(e){e.forEach(function(e){e.getOptions().componentName===n.componentName&&e.targetElement.id===t.id&&(i=e)})}),i||null},t}(r.ComponentFactory);t.CollapsableComponentFactory=c;var d=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._clickHandler=function(e){var t=e.target,n=t.tagName.toUpperCase();return(t===i.sourceElement||t!==i.sourceElement&&"BUTTON"!==n&&"A"!==n)&&(i.toggle(),e.stopPropagation()),!0},i._closeButtonHandler=function(e){i.expanded=!1},i._expandStartHandler=function(e){i._toggleChevron(),i.sourceElement.parentElement.matches(".iris-record")&&i._toggleRecordExpandedClass();var t=Object.assign({},e.detail,{component:i});o.dispatchEvent(i.sourceElement,"iris.collapse.start",t)},i._expandEndHandler=function(e){var t=Object.assign({},e.detail,{component:i});o.dispatchEvent(i.sourceElement,"collapse",t),o.dispatchEvent(i.sourceElement,"iris.collapse.end",t)},i.collapseStartClass="iris-collapsable--collapse-start",i.collapseTransitionClass="iris-collapsable--collapsing",i.collapseEndClass="iris-collapsable--collapsed",i.expandStartClass="iris-collapsable--expand-start",i.expandTransitionClass="iris-collapsable--expanding",i.expandEndClass="iris-collapsable--expanded",i.idPrefix="iris_collapsable",i.defaultQuery=".iris-collapsable",i.queryAttribute="data-collapsable",i.targetElement=n.targetElement||i.targetElement,i.sourceElement.addEventListener("click",i._clickHandler),"BUTTON"!==i.sourceElement.tagName&&l.SyntheticButtonComponent.factory.init(i.sourceElement),i.targetElement&&(i._closeElement=i.targetElement.querySelector("[data-close]")),i._closeElement&&(i._closeElement.addEventListener("click",i._closeButtonHandler),"BUTTON"!==i._closeElement.tagName&&l.SyntheticButtonComponent.factory.init(i._closeElement)),i.sourceElement.parentElement.matches(".iris-record")&&i.sourceElement.parentElement.classList.add("iris-record--collapsable"),i.sourceElement.addEventListener("expandstart",i._expandStartHandler),i.sourceElement.addEventListener("expandend",i._expandEndHandler),i._toggleChevron(),i}return i(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.sourceElement&&(this.sourceElement.removeEventListener("click",this._clickHandler),this.sourceElement.removeEventListener("expandstart",this._expandStartHandler),this.sourceElement.removeEventListener("expandend",this._expandEndHandler),l.SyntheticButtonComponent.factory.destroy(this.sourceElement)),this._closeElement&&(this._closeElement.removeEventListener("click",this._closeButtonHandler),l.SyntheticButtonComponent.factory.destroy(this._closeElement))},Object.defineProperty(t.prototype,"group",{get:function(){return this.sourceElement.getAttribute("data-collapsable-group")},set:function(e){this.sourceElement.setAttribute("data-collapsable-group",e)},enumerable:!0,configurable:!0}),t.prototype._toggleChevron=function(){var e=this;s.toArray(this.sourceElement.querySelectorAll(".iris-chevron")).forEach(function(t){t.classList.toggle("iris-chevron--up",e.expanded),t.classList.toggle("iris-chevron--down",e.collapsed)})},t.prototype._toggleRecordExpandedClass=function(){this.sourceElement.parentElement.classList.toggle("iris-record--collapsable-expanded",this.expanded)},t.factory=new c,t}(a.Expandable);t.CollapsableComponent=d},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(10),s=n(17),a=n(7),l=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._originalMaxHeight=null,i.idPrefix="iris_expandable",i.queryAttribute="data-expandable",i.defaultQuery=".iris-expandable",i.targetAttribute="aria-controls",i._transitionEndHandler=function(e){i.targetElement.removeEventListener("iris.expandable.transition.complete",i._transitionEndHandler),i.targetElement.style.maxHeight=i._originalMaxHeight;var t=new CustomEvent("expandend",{bubbles:!0,cancelable:!0,detail:{sourceElement:i.sourceElement,targetElement:i.targetElement,expanded:i.expanded,collapsed:i.collapsed,component:i}});i.sourceElement.dispatchEvent(t)},i.sourceElement.setAttribute("aria-expanded",i.expanded.toString()),i.sourceElement.setAttribute("tabindex","0"),i}return i(t,e),Object.defineProperty(t.prototype,"sourceElement",{get:function(){return this.element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"targetElement",{get:function(){var e=document.getElementById(this.sourceElement.getAttribute("aria-controls"));if(e)return e;var t=this.sourceElement.getAttribute(this.queryAttribute)||this.defaultQuery;return o.relatedElementByQuery(this.sourceElement,t)},set:function(e){var t=this.targetElement;this._originalMaxHeight=null,t&&(this._cleanClasses(t),t.removeEventListener("transitionend",this._transitionEndHandler)),e?(e.id=e.id||a.generateUniqueId(this.idPrefix),e.setAttribute("tabindex","-1"),e.classList.toggle(this.collapseEndClass,this.collapsed),e.classList.toggle(this.expandEndClass,this.expanded),this.sourceElement.setAttribute("aria-controls",e.id),this._originalMaxHeight=e.style.maxHeight||null):this.sourceElement.removeAttribute("aria-controls");var n=new CustomEvent("targetchange",{bubbles:!0,cancelable:!0,detail:{oldTargetElement:t,targetElement:e,component:this}});this.sourceElement.dispatchEvent(n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"collapsed",{get:function(){return!this.expanded},set:function(e){this.expanded=!e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expanded",{get:function(){return"true"===(this.sourceElement.getAttribute("aria-expanded")||"")},set:function(e){if(this.expanded!==e||!this.sourceElement.hasAttribute("aria-expanded")){this.sourceElement.setAttribute("aria-expanded",e.toString());var t,n=new CustomEvent("expandstart",{bubbles:!0,cancelable:!0,detail:{sourceElement:this.sourceElement,targetElement:this.targetElement,expanded:e,collapsed:!e,component:this}});this.sourceElement.dispatchEvent(n),this._cleanClasses(this.targetElement),this.targetElement.style.maxHeight=this._originalMaxHeight||function(e){var t=window.getComputedStyle(e),n=t.display,i=t.maxHeight.replace("px","").replace("%",""),r=e.style.display||null,o=e.style.visibility||null,s=e.style.position||null,a=0;if("none"!==n&&"0"!==i)return e.offsetHeight;return e.style.position="absolute",e.style.visibility="hidden",e.style.display="block",a=e.offsetHeight,e.style.display=r,e.style.position=s,e.style.visibility=o,a}(this.targetElement)+"px",t=e?[{addClassString:this.expandStartClass,type:"immediate"},{addClassString:this.expandTransitionClass,removeClassString:this.expandStartClass,type:"transition"},{afterTransitionEventName:"iris.expandable.transition.complete",addClassString:this.expandEndClass,removeClassString:this.expandTransitionClass,type:"immediate"}]:[{addClassString:this.collapseStartClass,type:"immediate"},{addClassString:this.collapseTransitionClass,removeClassString:this.collapseStartClass,type:"transition"},{afterTransitionEventName:"iris.expandable.transition.complete",addClassString:this.collapseEndClass,removeClassString:this.collapseTransitionClass,type:"immediate"}],this.targetElement.addEventListener("iris.expandable.transition.complete",this._transitionEndHandler),s.transitionRunner(this.targetElement,t),e&&this.focusable&&this.targetElement.focus()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusable",{get:function(){return"true"===(this.sourceElement.getAttribute("data-focus")||"false")},set:function(e){this.sourceElement.setAttribute("data-focus",e.toString())},enumerable:!0,configurable:!0}),t.prototype.toggle=function(){this.expanded=!this.expanded},t.prototype.destroy=function(){this.sourceElement&&this.sourceElement.removeAttribute("aria-expanded");var e=this.targetElement;e&&(this._cleanClasses(e),e.removeEventListener("transitionend",this._transitionEndHandler))},t.prototype._cleanClasses=function(e){var t,n=[this.collapseStartClass,this.collapseTransitionClass,this.collapseEndClass,this.expandStartClass,this.expandTransitionClass,this.expandEndClass].filter(function(e){return!!e});(t=e.classList).remove.apply(t,n)},t}(r.Component);t.Expandable=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(7),o={afterTransitionEventName:null,childWithTransitionSelector:null,addClassString:null,type:"transition",removeClassString:null,wait:null},s=function(e){return e.map(function(e){return"string"==typeof e?Object.assign({},o,{className:e}):Object.assign({},o,e)})},a=function(e,t,n){t&&r.splitAttributeToList(t).forEach(function(t){e.classList.toggle(t,!0)});n&&r.splitAttributeToList(n).forEach(function(t){e.classList.toggle(t,!1)})},l=function(e,t,n){t.afterTransitionEventName&&i.dispatchEvent(e,t.afterTransitionEventName),n.length&&c(e,n)},c=function(e,t){var n=t.shift();if("immediate"===n.type)return a(e,n.addClassString,n.removeClassString),void l(e,n,t);if("timeout"!==n.type||null===n.wait){var i=e.querySelector(n.childWithTransitionSelector)||e,r=function(e){return e.map(function(e){return e.trim()}).filter(function(e){return!/(-webkit-|-moz-|-o-|-ms-)/.test(e)}).filter(function(e,t,n){return n.indexOf(e)===t}).length}((window.getComputedStyle(i,null)["transition-property"]||"").split(","))-1,o=0,s=function(a){o<r?o++:a.target!==i&&a.target!==a.currentTarget||(e.removeEventListener("transitionend",s),l(e,n,t))};e.addEventListener("transitionend",s),a(e,n.addClassString,n.removeClassString)}else setTimeout(function(){a(e,n.addClassString,n.removeClassString),l(e,n,t)},n.wait)};t.transitionRunner=function(e,t){var n=s(t);c(e,n)}},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(4),s=n(14),a=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._previousRole=null,i._keypressHandler=s.simulateClickKeypressHandler(),"BUTTON"!==i.element.tagName&&(i._previousRole=i.element.getAttribute("role")||null,null===i._previousRole&&i.element.setAttribute("role","button"),i.element.setAttribute("tabIndex","0"),i.element.addEventListener("keydown",i._keypressHandler)),i}return i(t,e),t.prototype.destroy=function(){"BUTTON"!==this.element.tagName&&(null===this._previousRole?this.element.removeAttribute("role"):this.element.setAttribute("role",this._previousRole),this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this._keypressHandler))},t._factoryOptions={defaultQuerySelector:"[data-button-like]",componentName:"SyntheticButtonComponent"},t._defaultComponentOptions={idPrefix:"iris_synthetic_button"},t.factory=new o.GenericComponentFactory(t,t._factoryOptions,t._defaultComponentOptions),t}(r.Component);t.SyntheticButtonComponent=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(4),s=n(20),a=n(7),l=n(21),c={"iris.compass.stepchange.after":{action:"after",stepKey:"activeStep"},"iris.compass.stepchange.before":{action:"before",stepKey:"nextStep"},"iris.compass.done":{action:"done",stepKey:"step"}},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createAsyncHandler=function(e){var t,n,i=!1,r=function(){i=!0,t.activeStep=n};return function(o){return n=o.detail.nextStep,t=o.detail.component,i?(i=!1,!0):(e(r,o,this),!1)}},t}(o.GenericComponentFactory);t.CompassComponentFactory=d;var u=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._cancelStepChange=!1,i._steps=[],i._triggerNextElements=[],i._triggerPreviousElements=[],i._triggerDoneElements=[],i._titleElements=[],i._stepChangeHandler=function(e){var t=c[e.type],n=t.action,i=t.stepKey,r=e.detail.component,o=e.detail[i];if(o){var s=r.actionEventListener(o.id,n);if(s){var a=s.bind(this)(e);"before"===n&&!1===a&&r.cancelStepChange()}}},i._mutationObserverHandler=function(e){i._updateComponentState()},i._triggerDoneClickHandler=function(e){i.activateDone()},i._triggerNextClickHandler=function(e){i.activateNextStep()},i._triggerPreviousClickHandler=function(e){i.activatePreviousStep()},n.stepChangeHandlers&&(i.stepChangeHandlers=n.stepChangeHandlers),i._focusManager=new s.FocusManager(i.element,[["input:not([type=hidden])","select",".iris-dropdown__capture-input",'.iris-compass-step[data-compass-active="true"] .iris-compass-step__body button'],['.iris-compass-step[data-compass-active="true"]']]),i.element.addEventListener("iris.compass.stepchange.after",i._stepChangeHandler),i.element.addEventListener("iris.compass.stepchange.before",i._stepChangeHandler),i.element.addEventListener("iris.compass.done",i._stepChangeHandler),i._updateTriggerElements(),i._updateTitleElements(),i._updateComponentState(),i.reset(),i._mutationObserver=new MutationObserver(i._mutationObserverHandler),i._mutationObserver.observe(i.element,{attributes:!0,childList:!0}),i}return i(t,e),Object.defineProperty(t.prototype,"activeStep",{get:function(){return this.steps.find(function(e){return e.active})},set:function(e){var t=this.activeStep;if((e||t)&&t!==e)if(this._dispatchEvent("iris.compass.stepchange.before",{activeStep:t,component:this,nextStep:e}),this._cancelStepChange)this._cancelStepChange=!1;else{this.steps.forEach(function(t){return t.active=t===e}),this._updateUI(),this._focusManager.setFocus();var n={activeStep:e,component:this,previousStep:t};this._dispatchEvent("iris.compass.stepchange.after",n)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autowireSteps",{get:function(){return this.element.hasAttribute("data-compass-autowire-steps")||!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stepChangeHandlers",{get:function(){return this._stepChangeHandlers||{}},set:function(e){this._stepChangeHandlers=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleElements",{get:function(){return this._titleElements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggerDoneElements",{get:function(){return this._triggerDoneElements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggerNextElements",{get:function(){return this._triggerNextElements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggerPreviousElements",{get:function(){return this._triggerPreviousElements},enumerable:!0,configurable:!0}),t.prototype.activateDone=function(){var e=this.activeStep;this.activeStep=null,this._dispatchEvent("iris.compass.done",{component:this,step:e})},t.prototype.activateNextStep=function(){if(this.activeStep){var e=this.stepById(this.activeStep.nextStepId);return e&&(e.element.classList.add("iris-compass-step--next"),this.activeStep=e),e}},t.prototype.activatePreviousStep=function(){if(this.activeStep){var e=this.stepById(this.activeStep.previousStepId);return e&&(e.element.classList.add("iris-compass-step--previous"),this.activeStep=e),e}},t.prototype.cancelStepChange=function(){this._cancelStepChange=!0},t.prototype.destroy=function(){this.element.removeEventListener("iris.compass.stepchange.after",this._stepChangeHandler),this.element.removeEventListener("iris.compass.stepchange.before",this._stepChangeHandler),this.element.removeEventListener("iris.compass.done",this._stepChangeHandler),this._removeTriggerElementEvents()},t.prototype.disableNext=function(e){var t=this;this.triggerNextElements.forEach(function(n){return t._disableElement(n,e)})},t.prototype.disablePrevious=function(e){var t=this;this.triggerPreviousElements.forEach(function(n){return t._disableElement(n,e)})},t.prototype.disableDone=function(e){var t=this;this.triggerDoneElements.forEach(function(n){return t._disableElement(n,e)})},t.prototype.actionEventListener=function(e,t){var n=this.stepChangeHandlers.default,i=n&&n[t],r=this.stepChangeHandlers[e]||n;return r&&(void 0===r[t]?i:r[t])||null},t.prototype.reset=function(){this.activeStep=null,this.activeStep=this.steps.find(function(e){return e.isFirst})||this.steps[0]},t.prototype.stepById=function(e){return this.steps.find(function(t){return t.id===e})||null},t.prototype._addTriggerElementEvents=function(){var e=this;this.triggerNextElements.forEach(function(t){return t.addEventListener("click",e._triggerNextClickHandler)}),this.triggerPreviousElements.forEach(function(t){return t.addEventListener("click",e._triggerPreviousClickHandler)}),this.triggerDoneElements.forEach(function(t){return t.addEventListener("click",e._triggerDoneClickHandler)})},t.prototype._disableElement=function(e,t){t?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"),e.setAttribute("aria-disabled",t.toString())},t.prototype._removeTriggerElementEvents=function(){var e=this;this.triggerNextElements.forEach(function(t){return t.removeEventListener("click",e._triggerNextClickHandler)}),this.triggerPreviousElements.forEach(function(t){return t.removeEventListener("click",e._triggerPreviousClickHandler)}),this.triggerDoneElements.forEach(function(t){return t.removeEventListener("click",e._triggerDoneClickHandler)})},t.prototype._updateComponentState=function(){this._updateSteps()},t.prototype._updateTriggerElements=function(){this._removeTriggerElementEvents(),this._triggerNextElements=a.toArray(document.querySelectorAll("#"+this.element.id+' [data-compass-action="next"], [data-compass="'+this.element.id+'"] [data-compass-action="next"]')),this._triggerPreviousElements=a.toArray(document.querySelectorAll("#"+this.element.id+' [data-compass-action="previous"], [data-compass="'+this.element.id+'"] [data-compass-action="previous"]')),this._triggerDoneElements=a.toArray(document.querySelectorAll("#"+this.element.id+' [data-compass-action="done"], [data-compass="'+this.element.id+'"] [data-compass-action="done"]')),this._addTriggerElementEvents()},t.prototype._updateTitleElements=function(){this._titleElements=a.toArray(document.querySelectorAll("#"+this.element.id+' [data-compass-title], [data-compass="'+this.element.id+'"] [data-compass-title]'))},t.prototype._updateSteps=function(){var e=this,t=a.toArray(this.element.querySelectorAll(".iris-compass-step")).map(function(t,n){return e.autowireSteps&&!t.id&&(t.id=a.generateUniqueId("iris_compass_step")),e._steps.find(function(e){return e.id===t.id})||new l.CompassStep(t)});this.autowireSteps&&t.forEach(function(n,i){if(e.autowireSteps){var r=t[i+1],o=t[i-1];n.nextStepId=r?r.element.id:null,n.previousStepId=o?o.element.id:null}}),this._steps=t},t.prototype._updateUI=function(){var e=this.activeStep,t=function(e,t){var n="true"===e.getAttribute("data-compass-active");e.hasAttribute("data-compass-active")&&t===n||(e.setAttribute("data-compass-active",t.toString()),e.setAttribute("aria-hidden",(!t).toString()),l.CompassStep.setupTransition(e,t))},n=e&&e.title||"";if(this.titleElements.forEach(function(e){return e.innerText=n}),this.triggerPreviousElements.concat(this.triggerNextElements,this.triggerDoneElements).forEach(function(n){return t(n,!(!e||!(n.matches('[data-compass-action="next"]')&&e.nextStepId||n.matches('[data-compass-action="previous"]')&&e.previousStepId||n.matches('[data-compass-action="done"]')&&!e.nextStepId)))}),e){var i=this.steps.map(function(e){return"[data-compass-step-show~="+e.id+"]"}).join(", "),r=a.toArray(document.querySelectorAll(i)),o=this.steps.map(function(e){return"[data-compass-step-hide~="+e.id+"]"}).join(", "),s=a.toArray(document.querySelectorAll(o));r.forEach(function(n){return t(n,n.matches("[data-compass-step-show~="+e.id+"]"))}),s.forEach(function(n){return t(n,!n.matches("[data-compass-step-hide~="+e.id+"]"))})}},t._factoryOptions={defaultQuerySelector:".iris-compass",componentName:"CompassComponent"},t._defaultComponentOptions={idPrefix:"iris_compass"},t.factory=new d(t,t._factoryOptions,t._defaultComponentOptions),t}(r.Component);t.CompassComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(6),o=n(7),s=function(){function e(e,t){this.heirarchyOfFocusSelectors=[[]],this.previousFocusElement=null,this._element=e,t&&(this.heirarchyOfFocusSelectors=t)}return e.prototype.setFocus=function(e){this.previousFocusElement=document.activeElement||document.body,e=e||this.focusElement;try{e.focus()}catch(e){r.logger({component:"FocusHandler",message:"Unable to focus on targeted element",type:"warn"})}},e.prototype.returnFocus=function(){this.previousFocusElement&&(0!==this.previousFocusElement.tabIndex&&this.previousFocusElement.setAttribute("tabindex","-1"),this.previousFocusElement.focus(),this.previousFocusElement=null)},Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusElement",{get:function(){for(var e=0;e<this.heirarchyOfFocusSelectors.length;e++){var t=this.heirarchyOfFocusSelectors[e].join(", "),n=o.toArray(this.element.querySelectorAll(t)).find(function(e){return i.isVisible(e)});if(n)return n}return this.element},enumerable:!0,configurable:!0}),e}();t.FocusManager=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(6),o=function(){function e(e){this._element=e,this.element.setAttribute("tabindex","-1"),this.element.id||r.logger({component:"Compass",message:"All Compass Steps should define an id",type:"warn"})}return Object.defineProperty(e.prototype,"active",{get:function(){return"true"===(this.element.getAttribute("data-compass-active")||"").toLowerCase()},set:function(t){t!==this.active&&(this.element.setAttribute("data-compass-active",t.toString()),this.element.setAttribute("aria-hidden",(!t).toString()),e.setupTransition(this.element,t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.element.id},set:function(e){this.element.id=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextStepId",{get:function(){return this.element.getAttribute("data-compass-next-step")},set:function(e){e?this.element.setAttribute("data-compass-next-step",e):this.element.removeAttribute("data-compass-next-step")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previousStepId",{get:function(){return this.element.getAttribute("data-compass-previous-step")},set:function(e){e?this.element.setAttribute("data-compass-previous-step",e):this.element.removeAttribute("data-compass-previous-step")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.element.getAttribute("data-compass-step-title")},set:function(e){this.element.setAttribute("data-compass-step-title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFirst",{get:function(){return this.element.hasAttribute("data-compass-first-step")},enumerable:!0,configurable:!0}),e._getTransitionClassNames=function(e){return{transitionStartClass:"iris-compass--transition-active-"+e.toString(),transitioningClass:"iris-compass--transitioning-active-"+e.toString(),transitionEndClass:"iris-compass--active-"+e.toString()}},e.setupTransition=function(t,n){var r,o=e._getTransitionClassNames(n),s=o.transitionStartClass,a=o.transitioningClass,l=o.transitionEndClass,c=[s,a,l].concat(Object.values(e._getTransitionClassNames(!n))),d=function(){var e;(e=t.classList).remove.apply(e,c),t.classList.add(l),i.dispatchEvent(t,"iris.compass.transition.end")};i.dispatchEvent(t,"iris.compass.transition.start"),(r=t.classList).remove.apply(r,Object.values(e._getTransitionClassNames(!n))),t.classList.add(s),0!==parseFloat(getComputedStyle(t).transitionDuration)?(i.handleOnce(t,"transitionend",function(){d()}),t.classList.add(a)):d()},e}();t.CompassStep=o},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(4),s=n(7),a=n(23),l=function(e){function t(t,n){var i=e.call(this,t,n)||this;i._contentHeaderChildren=[],i._getSortableChildren=function(){return s.toArray(i.element.querySelectorAll(i.options.childSelector)).filter(function(e){return void 0!==e.dataset.sortable})},i._findChildItemInstance=function(e){return i._contentHeaderChildren.find(function(t){return e.id===t.element.id})},i._contentItemSelectedHandler=function(e){var t=e.detail.component,n={component:i,childComponent:t};i._dispatchEvent(i.options.beforeParentEventName,n),i._dispatchEvent(i.options.beforeEventName,n,t.element),i._contentHeaderChildren.map(function(e){t.element.id!==e.element.id?e.active=!1:e.active=!0}),i._dispatchEvent(i.options.afterParentEventName,n),i._dispatchEvent(i.options.afterEventName,n,t.element)};var r=i._getSortableChildren();return r.length>0&&(r.map(function(e){return i._contentHeaderChildren.push(new a.ContentHeaderItem(e,n))}),i.element.addEventListener("_contentHeaderItemSelected",i._contentItemSelectedHandler)),i}return i(t,e),t.prototype.destroy=function(){this.element.removeEventListener("_contentHeaderItemSelected",this._contentItemSelectedHandler),this._contentHeaderChildren.length>0&&this._contentHeaderChildren.forEach(function(e){return e.destroy()})},Object.defineProperty(t.prototype,"activeChildComponent",{get:function(){return this._contentHeaderChildren.find(function(e){return!0===e.active})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childrenComponents",{get:function(){return this._contentHeaderChildren},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return e.prototype.getOptions.call(this)},enumerable:!0,configurable:!0}),t._defaultComponentOptions={idPrefix:"iris_content_header",beforeEventName:"iris.sort.before",beforeParentEventName:"iris.contentHeader.sort.before",afterEventName:"iris.sort.after",afterParentEventName:"iris.contentHeader.sort.after",childSelector:".iris-content-header__item"},t._factoryOptions={defaultQuerySelector:".iris-content-header",componentName:"ContentHeaderComponent"},t.factory=new o.GenericComponentFactory(t,t._factoryOptions,t._defaultComponentOptions),t}(r.Component);t.ContentHeaderComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(12),o=n(7),s=n(18),a=function(){function e(e,t){var n=this;this._active=!1,this._describedbyElement=null,this._sortDirection="descending",this._clickHandler=function(e){i.dispatchEvent(n.element,"_contentHeaderItemSelected",{component:n}),e.cancelBubble=!0},this._element=e,this._label=e.innerText.trim().toLowerCase(),this._options=t,e.id=e.id||o.generateUniqueId("content_header"),this._describedbyElement=document.createElement("div"),this._describedbyElement.id=this._element.id+"_desc",this._describedbyElement.innerText="Activate button to sort by "+this._label+" "+this.oppositeSortDirection,this._describedbyElement.classList.add("sr-only"),this._element.appendChild(this._describedbyElement),this._element.setAttribute("aria-label",this._label),this._element.setAttribute("aria-describedby",this._element.id+"_desc"),this._element.classList.contains("iris-content-header__item--ascending")?(this._sortDirection="ascending",this.active=!0):this._element.classList.contains("iris-content-header__item--descending")&&(this._sortDirection="descending",this.active=!0),this._element.addEventListener("click",this._clickHandler),s.SyntheticButtonComponent.factory.init(this._element)}return e.prototype.destroy=function(){this._resetComponent(),this._element.removeEventListener("click",this._clickHandler),s.SyntheticButtonComponent.factory.destroy(this._element)},Object.defineProperty(e.prototype,"active",{get:function(){return this._active},set:function(e){this._active?e?this._reverseDirectionalClasses():this._removeDirectionalClasses():e&&this._addDirectionalClasses(),this._active=e,this._updateAriaAttributes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"direction",{get:function(){return this._sortDirection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"oppositeSortDirection",{get:function(){return this.active&&"ascending"!==this._sortDirection?"ascending":"descending"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),e.prototype._resetComponent=function(){this._element.classList.remove("iris-content-header__item--descending","iris-content-header__item--ascending"),this._element.removeAttribute("aria-label"),this._element.removeAttribute("aria-describedby"),this._element.removeChild(this._describedbyElement)},e.prototype._addDirectionalClasses=function(){"ascending"===this._sortDirection?this._element.classList.add("iris-content-header__item--ascending"):this._element.classList.add("iris-content-header__item--descending")},e.prototype._removeDirectionalClasses=function(){this._element.classList.remove("iris-content-header__item--ascending"),this._element.classList.remove("iris-content-header__item--descending")},e.prototype._reverseDirectionalClasses=function(){if("ascending"===this._sortDirection)return this._sortDirection="descending",this._element.classList.remove("iris-content-header__item--ascending"),void this._element.classList.add("iris-content-header__item--descending");this._sortDirection="ascending",this._element.classList.remove("iris-content-header__item--descending"),this._element.classList.add("iris-content-header__item--ascending")},e.prototype._updateAriaAttributes=function(){this._active?this._element.setAttribute("aria-label",r.RegionSettings.format("contentheader.item."+this._sortDirection+"label",this._label)):this._element.setAttribute("aria-label",r.RegionSettings.format("contentheader.item.neutrallabel",this._label)),this._describedbyElement.innerText=r.RegionSettings.format("contentheader.item."+this.oppositeSortDirection+"directions",this._label)},e}();t.ContentHeaderItem=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(4),s=n(11),a=n(10),l=n(7),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._mutationObserver=new MutationObserver(function(e){!!e.find(function(e){return"data-datetime"===e.attributeName})&&(i.datetime&&i._updateDate(i.datetime),i.dateFormat.length>0&&i._buildDateComponent())}),(i.dateFormat.length>0||0===i.element.children.length)&&i._buildDateComponent(),i.datetime&&i._updateDate(i.datetime),i._mutationObserver.observe(i.element,{attributes:!0}),i}return i(t,e),Object.defineProperty(t.prototype,"datetime",{get:function(){return this.element.getAttribute("data-datetime")},set:function(e){this.element.setAttribute("data-datetime",e),this._updateDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFormat",{get:function(){return(this.element.getAttribute("data-dateformat")||"").toUpperCase()},set:function(e){this.element.setAttribute("data-dateformat",e),this._buildDateComponent()},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._mutationObserver.disconnect(),this.dateFormat.length>0&&this.element&&(this.element.innerHTML="")},t.prototype._updateDate=function(e){var t=new Date(e).toISOString().split("-",3).map(function(e){return parseInt(e,10)}),n=new Date(t[0],t[1]-1,t[2]),i=new s.FormattedDate(n),r=this.element.querySelector(".iris-date__day"),o=this.element.querySelector(".iris-date__month"),a=this.element.querySelector(".iris-date__year");this.element.setAttribute("aria-label",i.fullDate),r&&(r.setAttribute("aria-hidden","true"),r.innerText=i.dayOfMonth),o&&(o.setAttribute("aria-hidden","true"),o.innerText=i.abbreviatedMonth),a&&(a.setAttribute("aria-hidden","true"),a.innerText=i.year)},t.prototype._buildDateComponent=function(){var e,t=this;this.dateFormat&&(this.element.innerHTML="");var n=l.toArray(a.createElementsFromHTML('\n\t\t\t<span class="iris-date__day"></span>\n\t\t\t<span class="iris-date__month"></span>\n\t\t\t<span class="iris-date__year"></span>')),i={D:n[0],M:n[1],Y:n[2]},r=[],o=this.dateFormat.split("")||[];o.length>0?o.forEach(function(e,n){var s=[],a=i[e];a&&(s.push(a),t.element.classList.contains("iris-date--linear")&&n<o.length-1&&s.push(" "),r.push.apply(r,s))}):this.element.classList.contains("iris-date--linear")?r.push(n[0]," ",n[1]," ",n[2]):this.element.classList.contains("iris-date--stacked-full")?r.push(n[1],n[0],n[2]):this.element.classList.contains("iris-date--stacked-month-year")&&r.push(n[1],n[2]),(e=this.element).append.apply(e,r)},t._factoryOptions={defaultQuerySelector:".iris-date",componentName:"DateComponent"},t._defaultComponentOptions={idPrefix:"iris_date"},t.factory=new o.GenericComponentFactory(t,t._factoryOptions,t._defaultComponentOptions),t}(r.Component);t.DateComponent=c},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(10),s=n(17),a=n(7),l=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._focusLoopHandler=function(e){i.element.contains(e.target)||i.element.focus()},i}return i(t,e),Object.defineProperty(t.prototype,"open",{get:function(){return this._open},set:function(e){this._open!==e&&!0!==this._isMidTransition&&(this._isMidTransition=!0,this._open=e,e?(this._openEventAndAction(),document.body.addEventListener("focusin",this._focusLoopHandler)):(this._closeEventAndAction(),document.body.removeEventListener("focusin",this._focusLoopHandler)))},enumerable:!0,configurable:!0}),t.prototype._openEventAndAction=function(){a.dispatchIrisEvent(this.element,this._options.beforeOpenEvent,this._logger),this._openAction(),this._setFocus()},t.prototype._closeEventAndAction=function(){a.dispatchIrisEvent(this.element,this._options.beforeCloseEvent,this._logger),this._closeAction(),this._returnFocus()},t.prototype._openAction=function(){var e=this;document.body.prepend(this.backdropElement);var t=o.hasScrollbar()?o.getScrollbarWidth():0;document.body.style.borderRight=t+"px solid transparent";var n=function(){e.element.removeEventListener("iris.drawer.transition.complete",n),e._isMidTransition=!1,document.body.classList.add("no-scroll"),a.dispatchIrisEvent(e.element,e._options.afterOpenEvent,e._logger)};this.element.addEventListener("iris.drawer.transition.complete",n),s.transitionRunner(this.element,[{removeClassString:"hidden",type:"immediate"},{afterTransitionEventName:"iris.drawer.transition.complete",addClassString:"iris-drawer--open",type:"timeout",wait:50}]),s.transitionRunner(this.backdropElement,[{addClassString:"iris-backdrop--light",type:"immediate"},{addClassString:"iris-backdrop--open",type:"timeout",wait:50}])},t.prototype._closeAction=function(){var e=this,t=function(){e.element.removeEventListener("iris.drawer.transition.complete",t),e._isMidTransition=!1,document.body.classList.remove("no-scroll"),a.dispatchIrisEvent(e.element,e._options.afterCloseEvent,e._logger)},n=function(){e.backdropElement.removeEventListener("iris.backdrop.transition.complete",n),document.body.style.borderRight=null,e.backdropElement.remove()};this.element.addEventListener("iris.drawer.transition.complete",t),this.backdropElement.addEventListener("iris.backdrop.transition.complete",n),s.transitionRunner(this.element,[{addClassString:"iris-drawer--closing",type:"immediate"},{removeClassString:"iris-drawer--open",type:"transition"},{afterTransitionEventName:"iris.drawer.transition.complete",addClassString:"hidden",removeClassString:"iris-drawer--closing",type:"immediate"}]),s.transitionRunner(this.backdropElement,[{removeClassString:"iris-backdrop--open",type:"immediate"},{afterTransitionEventName:"iris.backdrop.transition.complete",removeClassString:"iris-backdrop--light",type:"timeout",wait:400}])},t._factoryOptions={defaultQuerySelector:".iris-drawer",componentName:"DrawerComponent"},t._defaultComponentOptions={afterCloseEvent:"iris.drawer.closed",afterOpenEvent:"iris.drawer.opened",beforeCloseEvent:"iris.drawer.closing",beforeOpenEvent:"iris.drawer.opening",optionalOpenEvent:"",optionalCloseEvent:"",type:"drawer",idPrefix:"iris_drawer"},t.factory=new r.GenericComponentFactory(t,t._factoryOptions,t._defaultComponentOptions),t}(n(26).Modal);t.DrawerComponent=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),o=n(7),s=n(9),a=n(20),l=n(18),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._open=!1,i._freeze=!1,i._isMidTransition=!1,i._escapeHandler=function(){!0===i._open&&(i.open=!1)},i._keypressHandler=r.createKeypressEventListener({escape:function(e){return i._escapeHandler(),!1}}),i._sourceElementClickHandler=function(){i.open=!i._open},i._logger={component:i._options.type,message:"",type:"trace"},i._backdropElement=document.createElement("DIV"),i._backdropElement.classList.add("iris-backdrop"),i._focusManager=new a.FocusManager(i.element,[["[data-autofocus]"],["input:not([type=hidden])","select",".iris-dropdown__capture-input",".iris-"+i._options.type+"__body button"],[".iris-"+i._options.type+"__footer .iris-button--primary"],[".iris-"+i._options.type+"__footer .iris-button--secondary"]]),i._triggerOpenElements=o.toArray(document.querySelectorAll("[data-"+i._options.type+"]")).filter(function(e){return e.dataset[i._options.type]===i.element.id}),i._triggerCloseElements=o.toArray(i.element.querySelectorAll("[data-close]")),i._modalTitleElement=i.element.querySelector(".iris-"+i._options.type+"__title"),i._addAccessibility(),i._createEventListeners(),i}return i(t,e),Object.defineProperty(t.prototype,"_options",{get:function(){return this.getOptions()},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.open=!1,this._removeEventListeners(),this._backdropElement.remove()},Object.defineProperty(t.prototype,"freeze",{get:function(){return this._freeze},set:function(e){this._freeze!==e&&(e?this._removeEventListeners():this._createEventListeners(),this._freeze=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),t.prototype._setFocus=function(){this.element.setAttribute("aria-hidden","false"),this._focusManager.setFocus()},t.prototype._returnFocus=function(){this.element.setAttribute("aria-hidden","true"),this._focusManager.returnFocus()},t.prototype._createEventListeners=function(){var e=this;document.addEventListener("keydown",this._keypressHandler),this._backdropElement.addEventListener("click",this._escapeHandler),this._triggerOpenElements.concat(this._triggerCloseElements).map(function(t){return t.addEventListener("click",e._sourceElementClickHandler),"BUTTON"!==t.tagName&&l.SyntheticButtonComponent.factory.init(t),t})},t.prototype._removeEventListeners=function(){var e=this;document.removeEventListener("keydown",this._keypressHandler),this._backdropElement.removeEventListener("click",this._escapeHandler),this._triggerOpenElements.concat(this._triggerCloseElements).map(function(t){return t.removeEventListener("click",e._sourceElementClickHandler),"BUTTON"!==t.tagName&&l.SyntheticButtonComponent.factory.destroy(t),t})},t.prototype._addAccessibility=function(){this.element.classList.contains("hidden")||this.element.classList.add("hidden");var e=this.element.querySelector(".iris-"+this._options.type+"__content"),t=this.element.querySelector(".iris-"+this._options.type+"__header [data-close]");if("dialog"!==this.element.getAttribute("role")&&this.element.setAttribute("role","dialog"),e&&"document"!==e.getAttribute("role")&&e.setAttribute("role","document"),t&&!t.getAttribute("aria-label")&&t.setAttribute("aria-label","Close "+this._options.type),"-1"!==this.element.getAttribute("tabindex")&&this.element.setAttribute("tabindex","-1"),this._modalTitleElement&&this._modalTitleElement.setAttribute("tabindex","-1"),!this.element.hasAttribute("aria-labelledby")){var n=this.element.querySelector(".iris-"+this._options.type+"__title");n&&(n.id||(n.id=o.generateUniqueId(this._options.type+"_title")),this.element.setAttribute("aria-labelledby",n.id))}"true"!==this.element.getAttribute("aria-hidden")&&this.element.setAttribute("aria-hidden","true")},t}(s.Component);t.Modal=c},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(4),s=n(10),a=n(14),l=n(12),c=n(17),d=n(7),u=n(28),p=n(30),m=function(e){function t(t,n){var i=e.call(this,t,n)||this;i._listOptions=[],i._listOptionsBlackListedAttributes=[],i._isMidTransition=!1,i._lastExpandedState=null,i._updateComponentState=function(){var e=i._listOptions;i._updateListOptions(),i._manageHiddenInputs(i.selectedListOptions.map(function(e){return e.value})),i._updateSelectedValueElement(),i._updateCaptureInputElement(),i._updateListHeader(),"all"!==i.element.getAttribute("data-populated")&&d.areArraysEqual(e,i._listOptions)||s.dispatchEvent(i.element,"iris.dropdown.populated",{component:i,listOptions:i._listOptions})},i._clickHandler=function(e){if(!i.disabled){var t=e.target;t!==i.displayListContainerHeader&&t!==i.displayListContainerTitle&&(i.expanded=!i.expanded)}},i._documentClickHandler=function(e){var t=e.target;!!s.ancestorsOfElement(t).find(function(e){return e===i.element})||(i.expanded=!1)},i._formResetHandler=function(){i.selectedListOptions=[]},i._keypressHandler=function(e){i._createKeypressEventListener()(e)},i._listItemSelectedHandler=function(e){var t=e.detail.component,n=document.getElementById(t.element.dataset.optionId),r=i._listOptions.find(function(e){return e.element.id===n.id});i._selectListOption(r)},i._mutationObserverHandler=function(e){0!==(e=e.filter(function(e){return e.target!==i.element||"class"!==e.attributeName})).length&&i._updateComponentState()},i._statusRegion=p.LiveRegion.globalStatusRegion,i.element.addEventListener("click",i._clickHandler),i.element.addEventListener("_listitemselected",i._listItemSelectedHandler),i.element.addEventListener("keydown",i._keypressHandler),document.addEventListener("click",i._documentClickHandler),s.ancestorsOfElement(i.element,"form").forEach(function(e){return e.addEventListener("reset",i._formResetHandler)}),i.element.prepend(i.displayListContainerElement),i.element.prepend(i.chevronElement),i.element.prepend(i.selectedValueElement),i.element.prepend(i.captureInputElement);var r=window.getComputedStyle(i.displayListContainerElement);i._listMaxHeight=Number.parseInt(r.maxHeight,10),i._updateListOptions();var o=i.options.filter(function(e){return e.selected});return i.value=o.map(function(e){return e.value}),i.disabled=i.disabled,i.validity=i.validity,i._updateComponentState(),i._mutationObserver=new MutationObserver(i._mutationObserverHandler),i._mutationObserver.observe(i.dataListElement,{attributes:!0,childList:!0,subtree:!0}),i._mutationObserver.observe(i.element,{attributes:!0}),i}return i(t,e),Object.defineProperty(t.prototype,"activeListOption",{get:function(){var e=this.displayListElement.getAttribute("aria-activedescendant");return this.options.find(function(t){return t.id===e})||null},set:function(e){if(this.activeListOption!==e){this.options.forEach(function(t){t.active=!!e&&e.id===t.id});var t=e&&e.id||"";this.displayListElement.setAttribute("aria-activedescendant",t),e&&this.expanded&&(s.scrollIntoViewIfNeeded(e.displayListItem.element,!0),this._statusRegion.broadcast(l.RegionSettings.format(e.disabled?"dropdown.sr.disabled":"dropdown.sr.active",e.text)))}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"captureInputElement",{get:function(){if(this._captureInputElement)return this._captureInputElement;var e=document.createElement("BUTTON");return e.id=d.generateUniqueId("iris_dropdown__capture_input"),e.classList.add("iris-dropdown__capture-input"),s.setElementAttributes(e,{tabindex:"0","aria-expanded":"false","aria-owns":this.dataListElement.id,"aria-haspopup":"listbox","aria-describedby":this.placeholderElement.id,type:"button"}),this._captureInputElement=e,this._captureInputElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chevronElement",{get:function(){if(this._chevronElement)return this._chevronElement;d.toArray(this.element.querySelectorAll(".iris-dropdown__chevron")).forEach(function(e){return e.remove()});var e=document.createElement("DIV");return e.classList.add("iris-chevron","iris-dropdown__chevron"),this._chevronElement=e,this._chevronElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataListElement",{get:function(){if(this._dataListElement)return this._dataListElement;var e=this.element.querySelector(".iris-options-list");return e.id=e.id||d.generateUniqueId("iris_options_list"),this._dataListElement=e,this._dataListElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.element.classList.contains("iris-dropdown--disabled")||this.element.hasAttribute("disabled")||"true"===(this.element.getAttribute("aria-disabled")||"").toLowerCase()},set:function(e){this.captureInputElement.setAttribute("aria-disabled",e.toString()),e?(this.element.classList.add("iris-dropdown--disabled"),this.element.setAttribute("disabled","disabled"),this.captureInputElement.setAttribute("disabled","disabled")):(this.element.classList.remove("iris-dropdown--disabled"),this.element.removeAttribute("disabled"),this.captureInputElement.removeAttribute("disabled"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayListContainerElement",{get:function(){if(this._displayListContainerElement)return this._displayListContainerElement;d.toArray(this.element.querySelectorAll(".iris-dropdown__display-list-container")).forEach(function(e){return e.remove()});var e=document.createElement("DIV");return e.classList.add("iris-dropdown__display-list-container"),e.id=d.generateUniqueId("iris_dropdown__display_list_container"),e.append(this.displayListContainerHeader),e.append(this.displayListElement),this._displayListContainerElement=e,this._displayListContainerElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayListContainerHeader",{get:function(){if(this._displayListContainerHeader)return this._displayListContainerHeader;d.toArray(this.element.querySelectorAll(".iris-dropdown__display-list-header")).forEach(function(e){return e.remove()});var e=document.createElement("DIV");return e.classList.add("iris-dropdown__display-list-header"),e.append(this.displayListContainerTitle),e.append(this.displayListContainerClose),this._displayListContainerHeader=e,this._displayListContainerHeader},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayListContainerTitle",{get:function(){if(this._displayListContainerTitle)return this._displayListContainerTitle;d.toArray(this.element.querySelectorAll(".iris-dropdown__display-list-header-title")).forEach(function(e){return e.remove()});var e=document.createElement("SPAN");return e.classList.add("iris-dropdown__display-list-header-title","h2"),this._displayListContainerTitle=e,this._displayListContainerTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayListContainerClose",{get:function(){if(this._displayListContainerClose)return this._displayListContainerClose;d.toArray(this.element.querySelectorAll(".iris-dropdown__display-list-close")).forEach(function(e){return e.remove()});var e=document.createElement("BUTTON");return e.classList.add("iris-button","iris-button--ghost","iris-dropdown__display-list-close"),e.setAttribute("data-modifier","compressed"),e.setAttribute("aria-label","Close List"),e.innerHTML='<span class="font-icon-cancel-x" aria-hidden="true"></span>',this._displayListContainerClose=e,this._displayListContainerClose},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayListElement",{get:function(){if(this._displayListElement)return this._displayListElement;d.toArray(this.element.querySelectorAll(".iris-dropdown__display-list")).forEach(function(e){return e.remove()});var e=document.createElement("UL");return e.classList.add("iris-dropdown__display-list"),e.id=d.generateUniqueId("iris_dropdown__display_list"),e.setAttribute("role","listbox"),e.setAttribute("tabIndex","-1"),this._displayListElement=e,this._displayListElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expanded",{get:function(){return"true"===(this.captureInputElement.getAttribute("aria-expanded")||"").toLowerCase()},set:function(e){this.disabled&&(e=!1),e!==this.expanded&&(this._chevronElement.classList.toggle("iris-chevron--up",e),this.captureInputElement.setAttribute("aria-expanded",e.toString()),this._manageExpandTransition(e),e?this.displayListElement.focus():e||this.displayListElement!==document.activeElement||this.captureInputElement.focus())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listElement",{get:function(){return this.dataListElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiselect",{get:function(){return this.element.hasAttribute("multiple")},set:function(e){e?this.element.setAttribute("multiple",""):this.element.removeAttribute("multiple")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.element.getAttribute("name")},set:function(e){this.element.setAttribute("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this._listOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholderElement",{get:function(){if(this._placeholderElement)return this._placeholderElement;var e=document.createElement("SPAN");return e.classList.add("iris-dropdown__placeholder"),e.id=d.generateUniqueId("iris_dropdown__placeholder"),this._placeholderElement=e,this._placeholderElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.element.hasAttribute("required")},set:function(e){e?this.element.setAttribute("required",""):this.element.removeAttribute("required"),this._manageHiddenInputs(this.selectedListOptions.map(function(e){return e.value}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedListOptions",{get:function(){return this.options.filter(function(e){return e.selected})},set:function(e){e=e||[];var t=this.selectedListOptions,n=this.options.filter(function(t){return e.find(function(e){return e.id===t.id&&!t.disabled})}),i=n.filter(function(e){return t.find(function(t){return t.id===e.id})});n.length===t.length&&n.length===i.length||(this.options.forEach(function(e){e.selected=!!n.find(function(t){return t.id===e.id})}),this._updateListOptions(),this._manageHiddenInputs(n.map(function(e){return e.value})),this._updateSelectedValueElement(),this._dispatchDropdownEvent("change"),this._dispatchDropdownEvent("iris.dropdown.change"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedValueElement",{get:function(){if(this._selectedValueElement)return this._selectedValueElement;d.toArray(this.element.querySelectorAll(".iris-dropdown__selected-value")).forEach(function(e){return e.remove()});var e=document.createElement("DIV");return e.classList.add("iris-dropdown__selected-value"),e.id=d.generateUniqueId("iris_dropdown__selected_value"),e.append(this.placeholderElement),this._selectedValueElement=e,this._selectedValueElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){return this.element.classList.contains("iris-dropdown--error")||"true"===this.captureInputElement.getAttribute("aria-invalid")},set:function(e){this.element.classList.toggle("iris-dropdown--error",e),this.captureInputElement.setAttribute("aria-invalid",e.toString())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=this.selectedListOptions.map(function(e){return e.value});return this.multiselect?e:e[0]||""},set:function(e){var t="string"==typeof(e=e||"")?[e]:e,n=function(e){return t.findIndex(function(t){return t===e.value})>-1},i=[];if(this.multiselect)i=this._listOptions.filter(n);else{var r=this._listOptions.find(n);r&&(i=[r])}this.selectedListOptions=i},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_hiddenInputElements",{get:function(){return d.toArray(this.element.querySelectorAll(".iris-dropdown__input"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_labelElement",{get:function(){var e=document.getElementById(this.element.getAttribute("aria-labelledby"))||document.querySelector("label[for='"+this.element.id+"']");return e&&!e.id&&(e.id=d.generateUniqueId("iris_dropdown_label")),e},enumerable:!0,configurable:!0}),t.prototype._cleanClasses=function(e){var t;(t=e.classList).remove.apply(t,["iris-dropdown--expanding","iris-dropdown--expanded","iris-dropdown--collapsing","iris-dropdown--collapsed"])},t.prototype.destroy=function(){var e=this;this._mutationObserver.disconnect(),this.expanded=!1,this._cleanClasses(this.element),this.element.removeEventListener("click",this._clickHandler),this.element.removeEventListener("_listitemselected",this._listItemSelectedHandler),this.element.removeEventListener("keydown",this._keypressHandler),document.removeEventListener("click",this._documentClickHandler),s.ancestorsOfElement(this.element,"form").forEach(function(t){return t.removeEventListener("reset",e._formResetHandler)}),this.displayListContainerElement.remove(),this.chevronElement.remove(),this.selectedValueElement.remove(),this.captureInputElement.remove()},t.prototype._dispatchDropdownEvent=function(e){this._dispatchEvent(e,{component:this,value:this.value})},t.prototype._manageExpandTransition=function(e){var t=this;if(this._isMidTransition)this._lastExpandedState=e;else{e||(this.activeListOption=null);var n=[{addClassString:"iris-dropdown--expanding",childWithTransitionSelector:"#"+this.displayListContainerElement.id,removeClassString:"iris-dropdown--expanded iris-dropdown--collapsing iris-dropdown--collapsed",type:"immediate"},{afterTransitionEventName:"iris.dropdown.transition.complete",childWithTransitionSelector:"#"+this.displayListContainerElement.id,addClassString:"iris-dropdown--expanded",removeClassString:"iris-dropdown--expanding iris-dropdown--collapsing iris-dropdown--collapsed",type:"transition"}],i=[{addClassString:"iris-dropdown--collapsing",childWithTransitionSelector:"#"+this.displayListContainerElement.id,removeClassString:"iris-dropdown--collapsed iris-dropdown--expanding iris-dropdown--expanded",type:"transition"},{afterTransitionEventName:"iris.dropdown.transition.complete",childWithTransitionSelector:"#"+this.displayListContainerElement.id,addClassString:"iris-dropdown--collapsed",removeClassString:"iris-dropdown--collapsing iris-dropdown--expanding iris-dropdown--expanded",type:"timeout",wait:200}],r=e?n:i,o=e?"iris.dropdown.expanded":"iris.dropdown.collapsed";this._isMidTransition=!0;var a=s.getViewPortBoundingRect(),l=this.element.getBoundingClientRect();e&&(this.element.classList.remove("iris-dropdown--dropup"),this._listMaxHeight&&l.bottom+this._listMaxHeight>a.height&&this.element.classList.add("iris-dropdown--dropup")),c.transitionRunner(this.element,r),s.handleOnce(this.element,"iris.dropdown.transition.complete",function(){if(t._dispatchDropdownEvent(o),t._isMidTransition=!1,null!==t._lastExpandedState){var n=t._lastExpandedState;t._lastExpandedState=null,n!==e&&t._manageExpandTransition(n)}})}},t.prototype._manageHiddenInputs=function(e){var t=this,n=0===e.length?[null]:e;this._hiddenInputElements;this._hiddenInputElements.forEach(function(t,n){n>e.length&&t.remove()}),n.forEach(function(e,n){var i=t.element.id+"_value_"+n,r=document.getElementById(i)||document.createElement("INPUT");r.style.display="none",r.setAttribute("type","text"),r.setAttribute("name",t.name),r.classList.add("iris-dropdown__input"),r.required=t.required,r.id||(r.id=i),null!==e?r.setAttribute("value",e):r.removeAttribute("value"),t.element.append(r)})},t.prototype._getActiveOptionIndex=function(){var e=this.options,t=this.activeListOption||this.selectedListOptions[0]||null;return t?e.findIndex(function(e){return t.id===e.id}):-1},t.prototype._selectActiveListOption=function(){this.activeListOption=this.activeListOption||this.selectedListOptions[0],this._selectListOption(this.activeListOption)},t.prototype._selectListOption=function(e){if(this.disabled)this.expanded=!1;else if(this.expanded&&e&&!e.disabled){var t=this.selectedListOptions;if(this.multiselect)t.findIndex(function(t){return t.id===e.id})>=0?t=t.filter(function(t){return t.id!==e.id}):t.push(e);else t=[e];this.expanded=this.multiselect,this.selectedListOptions=t,this.multiselect&&this._statusRegion.broadcast(l.RegionSettings.format(e.selected?"dropdown.sr.selected":"dropdown.sr.unselected",e.text))}else this.expanded=!this.expanded,e&&this.expanded&&s.scrollIntoViewIfNeeded(e.displayListItem.element,!0)},t.prototype._updateCaptureInputElement=function(){var e=1===this.selectedListOptions.length?this.selectedListOptions[0].text:l.RegionSettings.format("dropdown.multiselect.selected",this.selectedListOptions.length.toString());this._labelElement&&this.captureInputElement.setAttribute("aria-labelledby",this._labelElement.id+" "+this._captureInputElement.id),this.captureInputElement.innerText=e},t.prototype._updateListHeader=function(){this._labelElement&&(this.displayListContainerTitle.innerText=this._labelElement.innerText)},t.prototype._updateListOptions=function(){var e,t=this,n=null;this.element.dataset.optionAttributeBlacklist&&(n={blackListAttributes:d.splitAttributeToList(this.element.dataset.optionAttributeBlacklist)});var i=d.toArray(this.dataListElement.querySelectorAll(".iris-option"));this._listOptions=i.map(function(e){return t._listOptions.find(function(t){return t.id===e.id})||new u.ListOption(e,n)});var r=this._listOptions.map(function(e){return e.updateListItem(),e.displayListItem.element});s.removeChildNodes(this.displayListElement),r.length>0&&(e=this.displayListElement).append.apply(e,r)},t.prototype._updateSelectedValueElement=function(){var e=this.selectedListOptions,t=this.placeholderElement;if(this.element.hasAttribute("placeholder")?t.innerText=this.element.getAttribute("placeholder"):t.innerHTML="&nbsp;",s.removeChildNodes(this._selectedValueElement),0===e.length&&this._selectedValueElement.append(t),1===e.length){var n=e[0];this._selectedValueElement.innerHTML=n.selectedViewElement.innerHTML,this.captureInputElement.setAttribute("aria-describedby",this._selectedValueElement.id)}else e.length>1&&(this._selectedValueElement.innerText=l.RegionSettings.format("dropdown.multiselect.selected",e.length.toString()),this.captureInputElement.setAttribute("aria-describedby",this._selectedValueElement.id))},t.prototype._createKeypressEventListener=function(){var e=this,t="",n=d.debounce(function(n){var i=e.options.find(function(e){return 0===e.element.innerText.trim().toLowerCase().indexOf(n)});i&&(e.activeListOption=i),t=""},250),i=function(t){e.expanded||e._selectActiveListOption();var n=e.options;return e.activeListOption=n[function(t){var n=e._getActiveOptionIndex(),i=e.options.length-1,r=n+t;return r<0&&(r=0),r>i&&(r=i),r}(t)],!1},r=function(){return e._selectActiveListOption(),!1};return a.createKeypressEventListener({up:function(){return i(-1)},down:function(){return i(1)},spacebar:r,enter:r,tab:function(){return e.expanded=!1,!0},escape:function(){e.expanded=!1},default:function(i){var r=i.key;return 1===r.length&&r.match(/[a-z]/i)&&(t+=r,e.expanded=!0,n(t)),!0}})},t._factoryOptions={defaultQuerySelector:".iris-dropdown",componentName:"DropdownComponent"},t._defaultComponentOptions={idPrefix:"iris_dropdown"},t.factory=new o.GenericComponentFactory(t,t._factoryOptions,t._defaultComponentOptions),t}(r.Component);t.DropdownComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=n(29),o=i.once(function(e){console.warn('Using "aria-selected" for selecting an option for DropdownComponent will be deprecated in next major version. Please use the "selected" attribute instead.',e)}),s=i.once(function(e){console.warn('Using "aria-disabled" for disabling an option for DropdownComponent will be deprecated in next major version. Please use the "disabled" attribute instead.',e)}),a=["id","data-bind"],l=function(){function e(e,t){this._element=e;var n=[];if(this.element.id?n=i.toArray(document.querySelectorAll("#"+this.element.id)):this.element.id=i.generateUniqueId("iris_option"),n.length>1){var r=this.element.id.startsWith("iris_option_"),o=0===n.indexOf(this.element);if(!r)throw new Error("The element ID "+this.element.id+" is not unique.");o||(this.element.id=i.generateUniqueId("iris_option"))}null!==this.element.dataset.value&&void 0!==this.element.dataset.value||(this.element.dataset.value=this.element.innerText.trim()),this._blackListAttributes=a.concat(t&&t.blackListAttributes||[]),this.displayListItem}return Object.defineProperty(e.prototype,"displayListItem",{get:function(){if(this._displayListItem)return this._displayListItem;var t=e.createListOptionElement(this.value,"");t.id=this.element.id+"_display_list_item",t.dataset.optionId=this.element.id;var n=document.createElement("DIV");return n.id=t.id+"_checkbox",n.classList.add("iris-option__multiselect-checkbox-container"),n.innerHTML='<div class="iris-checkbox">\n\t\t\t<input class="iris-checkbox__input" type="checkbox"  />\n\t\t\t<label class="iris-checkbox__label">\n\t\t\t</label>\n\t\t</div>',t.prepend(n),t.querySelector(".iris-list-item__content").innerHTML=this._updateDisplayListItemContent().innerHTML,this._displayListItem=new r.ListItem(t),this._displayListItem},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedViewElement",{get:function(){var e=(this.element.querySelector(".iris-option__selected-view")||this.element).cloneNode(!0);return e.innerHTML=e.innerHTML.replace(/<!--([\s\S]*?)-->/g,""),this._blackListAttributes.forEach(function(t){i.toArray(e.querySelectorAll("["+t+"]")).forEach(function(e){e.removeAttribute(t)})}),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.element.id},set:function(e){this.element.id=e,this.displayListItem.id=this.element.id+"_display_list_item"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.element.hasAttribute("aria-selected")&&o(this.element),this.element.hasAttribute("selected")||"true"===(this.element.getAttribute("aria-selected")||"").toLowerCase()},set:function(e){e?this.element.setAttribute("selected","selected"):this.element.removeAttribute("selected"),this.element.hasAttribute("aria-selected")&&this.element.setAttribute("aria-selected",e.toString())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return"true"===this.element.getAttribute("data-active")},set:function(e){this.element.dataset.active=e.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.element.hasAttribute("aria-disabled")&&s(this.element),this.element.hasAttribute("disabled")||"true"===(this.element.getAttribute("aria-disabled")||"").toLowerCase()},set:function(e){e?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled"),this.element.hasAttribute("aria-disabled")&&this.element.setAttribute("aria-disabled",e.toString())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){var e=this.selectedViewElement||this.element,t=this.element.getAttribute("aria-label")||e.innerText;if(!t){var n=document.createElement("DIV");n.innerHTML=this.element.innerHTML,t=n.innerText,n.remove()}return t.trim()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.dataset.value||""},set:function(e){this.element.dataset.value=e},enumerable:!0,configurable:!0}),e.prototype.updateListItem=function(){var e=this;i.toArray(this.element.attributes).map(function(t){var n=t.name.toLowerCase(),i=t.value;-1!==n.indexOf("aria-")&&e.displayListItem.element.setAttribute(n,i)}),this.displayListItem.selected=this.selected,this.displayListItem.disabled=this.disabled,this.displayListItem.value=this.value,this.displayListItem.active=this.active,this.displayListItem.element.querySelector(".iris-list-item__content").innerHTML=this._updateDisplayListItemContent().innerHTML},e.prototype._updateDisplayListItemContent=function(){var e=this.element.querySelector(".iris-list-item__content")||this.element,t=document.createElement("DIV");return t.innerHTML=e.innerHTML.replace(/<!--([\s\S]*?)-->/g,""),i.toArray(t.querySelectorAll(".iris-option__multiselect-checkbox-container, .iris-option__selected-view")).forEach(function(e){return e.remove()}),this._blackListAttributes.forEach(function(e){i.toArray(t.querySelectorAll("["+e+"]")).forEach(function(t){t.removeAttribute(e)})}),t},e.createListOptionElement=function(e,t,n){var r=document.createElement("LI");r.classList.add("iris-list-item","iris-option"),r.setAttribute("data-value",e);var o=document.createElement("DIV");if(o.classList.add("iris-list-item__content"),i.isString(t)?o.innerText=t:o.appendChild(t),r.append(o),n){var s=document.createElement("DIV");s.classList.add("iris-option__selected-view"),s.appendChild(n),r.appendChild(s)}return r},e}();t.ListOption=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(7),o=function(){function e(e){var t=this;this._clickHandler=function(e){t.readOnly||t.disabled||(i.dispatchEvent(t.element,"_listitemselected",{component:t}),e.cancelBubble=!0,e.preventDefault(),e.stopPropagation())},this._element=e;var n=[];if(null!==this.element.dataset.value&&void 0!==this.element.dataset.value||(this.element.dataset.value=this.element.innerText.trim()),this.element.id?n=r.toArray(document.querySelectorAll("#"+this.element.id)):this.element.id=r.generateUniqueId("iris_list_item"),n.length>1){var o=this.element.id.startsWith("iris_list_item_"),s=0===n.indexOf(this.element);if(!o)throw new Error("The element ID "+this.element.id+" is not unique.");s||(this.element.id=r.generateUniqueId("iris_list_item"))}this.readOnly=this.readOnly,this.disabled=this.disabled,this.element.getAttribute("aria-selected")||this.element.setAttribute("aria-selected","false"),e.addEventListener("click",this._clickHandler)}return Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.dataset.value},set:function(e){this.element.dataset.value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.element.id},set:function(e){this.element.id=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.element.hasAttribute("selected")||"true"===(this.element.getAttribute("aria-selected")||"").toLowerCase()},set:function(e){e?this.element.setAttribute("selected","selected"):this.element.removeAttribute("selected"),"listitem"===this.element.getAttribute("role")?this.element.removeAttribute("aria-selected"):(this.element.setAttribute("aria-selected",e.toString()),this._updateCheckbox())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return"true"===(this.element.getAttribute("data-active")||"").toLowerCase()},set:function(e){this.element.dataset.active=e.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.element.hasAttribute("disabled")},set:function(e){this.element.setAttribute("aria-disabled",e.toString()),e?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return"listitem"===this.element.getAttribute("role")},set:function(e){var t=this.element.getAttribute("role"),n=e?"listitem":"option";t!==n&&(this.element.setAttribute("role",n),this.selected=this.selected,this._updateCheckbox())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.element.getAttribute("aria-label")||this.element.innerText.trim()},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._element&&this._element.removeEventListener("click",this._clickHandler)},e.prototype._updateCheckbox=function(){var e=this;r.toArray(this.element.querySelectorAll(".iris-checkbox")).forEach(function(t){var n=t.querySelector(".iris-checkbox__input");if(e.readOnly)return"true"===t.getAttribute("aria-hidden")&&t.setAttribute("aria-hidden","false"),n.readOnly=!1,void(n.tabIndex=0);"true"!==t.getAttribute("aria-hidden")&&t.setAttribute("aria-hidden","true"),n.readOnly=!0,n.tabIndex=-1,n.checked=e.selected})},e.createElement=function(e,t){var n=document.createElement("LI");n.classList.add("iris-list-item"),n.setAttribute("data-value",e);var i=document.createElement("DIV");return i.classList.add("iris-list-item__content"),r.isString(t)?i.innerText=t:i.appendChild(t),n.append(i),n},e}();t.ListItem=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=null,o=function(){function e(){this._element=document.createElement("DIV"),this._element.id=i.generateUniqueId("iris_live_region"),this._element.classList.add("iris-live-region"),this._element.setAttribute("aria-atomic","true"),this._element.setAttribute("role","status"),this.politeness="assertive",document.body.appendChild(this._element)}return Object.defineProperty(e.prototype,"id",{get:function(){return this._element.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"politeness",{get:function(){return this._element.getAttribute("aria-live")},set:function(e){this._element.setAttribute("aria-live",e)},enumerable:!0,configurable:!0}),e.prototype.broadcast=function(e){var t=this;this._element.innerText=e,console.log("Broadcast: ",e),setTimeout(function(){t._element.innerHTML=""},500)},Object.defineProperty(e,"globalStatusRegion",{get:function(){var t="iris__global_status_region";return r||(r=new e,document.getElementById(t)||(r.element.id=t)),r},enumerable:!0,configurable:!0}),e}();t.LiveRegion=o},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(4),s=n(10),a=n(14),l=n(12),c=n(7),d=n(29),u=n(30),p={static:"static",actionable:"actionable",checkable:"checkable"},m=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this,t,n)||this;return i._listItems=[],i._statusRegion=u.LiveRegion.globalStatusRegion,i._mutationObserver=new MutationObserver(function(e){i._updateListRole(),i._updateListItems()}),i._listItemSelectedHandler=function(e){i._selectListItem(e.detail.component)},i._keypressHandler=function(e){return a.createKeypressEventListener({up:i._decreaseActiveItemPosition,down:i._increaseActiveItemPosition,left:i._decreaseActiveItemPosition,right:i._increaseActiveItemPosition,spacebar:i._selectActiveItem,enter:i._selectActiveItem,escape:function(){return i.activeListItem=null,!1},tab:function(){return!0}})(e)},i._blurHandler=function(e){i.activeListItem=null},i._focusHandler=function(e){i.activeListItem=i.selectedListItems[0]||null},i._decreaseActiveItemPosition=function(){var e=i.listItems[i._moveActiveItemPosition(-1)];return i.activeListItem=e,i._statusRegion.broadcast(l.RegionSettings.format(e.disabled?"list.sr.disabled":"list.sr.active",e.text)),!1},i._increaseActiveItemPosition=function(){var e=i.listItems[i._moveActiveItemPosition(1)];return i.activeListItem=e,i._statusRegion.broadcast(l.RegionSettings.format(e.disabled?"list.sr.disabled":"list.sr.active",e.text)),!1},i._moveActiveItemPosition=function(e){var t=i.activeListItemIndex,n=i.listItems.length-1,r=t+e;return r<0&&(r=0),r>n&&(r=n),r},i._selectActiveItem=function(){var e=i.activeListItem;return!(!e||e.disabled)&&(i._selectListItem(e),i._statusRegion.broadcast(l.RegionSettings.format(e.selected?"list.sr.selected":"list.sr.unselected",e.text)),!1)},i._updateListItems(),i._updateListRole(),i.element.addEventListener("_listitemselected",i._listItemSelectedHandler),i.element.addEventListener("keydown",i._keypressHandler),i.element.addEventListener("blur",i._blurHandler),i.element.addEventListener("focus",i._focusHandler),i._mutationObserver.observe(i.element,{attributes:!0,childList:!0,subtree:!0}),i}return i(t,e),Object.defineProperty(t.prototype,"activeListItem",{get:function(){var e=this.element.getAttribute("aria-activedescendant");return this.listItems.find(function(t){return t.id===e})||null},set:function(e){var t=e&&e.id||null;this.element.getAttribute("aria-activedescendant")!==t&&(this.listItems.forEach(function(e){e.active=t===e.id}),t?this.element.setAttribute("aria-activedescendant",t):this.element.removeAttribute("aria-activedescendant"),e&&s.scrollIntoViewIfNeeded(e.element,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeListItemIndex",{get:function(){var e=this.element.getAttribute("aria-activedescendant");return this.listItems.findIndex(function(t){return t.id===e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listItems",{get:function(){return this._listItems},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiselect",{get:function(){return"true"===this.element.getAttribute("aria-multiselectable")},set:function(e){this.element.setAttribute("aria-multiselectable",e.toString())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.variant===p.static},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedListItems",{get:function(){return this.listItems.filter(function(e){return e.selected})},set:function(e){var t=this.selectedListItems,n=this.listItems.filter(function(t){return e.find(function(e){return e.id===t.id&&!t.disabled})}),i=n.filter(function(e){return t.find(function(t){return t.id===e.id})});n.length===t.length&&n.length===i.length||(this.listItems.forEach(function(e){e.selected=!!n.find(function(t){return t.id===e.id})}),this._dispatchChangeEvent())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=this.selectedListItems||[];return this.multiselect?e.map(function(e){return e.value}):e[0]&&e[0].value||null},set:function(e){var t="string"==typeof e?[e]:e,n=this.listItems.filter(function(e){return t.find(function(t){return t===e.value})})||[];this.selectedListItems=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"variant",{get:function(){var e=this,t=Object.values(p);return(c.splitAttributeToList(this.element.getAttribute("class")).find(function(n){return!!t.find(function(t){return e._options.componentClass+"--"+t===n})})||this._options.componentClass+"--"+p.static).replace(this._options.componentClass+"--","")},set:function(e){this.element.classList.add(this._options.componentClass+"--"+e),this._updateListRole()},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._mutationObserver.disconnect(),this.element&&(this.element.removeEventListener("_listitemselected",this._listItemSelectedHandler),this.element.removeEventListener("keydown",this._keypressHandler),this.element.removeEventListener("blur",this._blurHandler),this.element.removeEventListener("focus",this._focusHandler)),this.listItems.forEach(function(e){e.destroy()})},Object.defineProperty(t.prototype,"_options",{get:function(){return this.getOptions()},enumerable:!0,configurable:!0}),t.prototype._dispatchChangeEvent=function(){s.dispatchEvent(this.element,"change",{component:this,value:this.value})},t.prototype._selectListItem=function(e){var t=this.selectedListItems;this.multiselect?t.findIndex(function(t){return t.id===e.id})>=0?t=t.filter(function(t){return t.id!==e.id}):t.push(e):t=[e];this.selectedListItems=t},t.prototype._updateListRole=function(){var e=this.element.getAttribute("role"),t=this.element.getAttribute("tabindex")||null,n=this.readOnly?"list":"listbox",i=this.readOnly?null:"0";e!==n&&this.element.setAttribute("role",n),t!==i&&(i?this.element.setAttribute("tabindex",i):this.element.removeAttribute("tabindex"))},t.prototype._updateListItems=function(){var e=this;this._listItems=c.toArray(this.element.querySelectorAll("."+this._options.listItemClass)).map(function(t){var n=e.element.getAttribute("aria-activedescendant")||null,i=e._listItems.find(function(e){return e.id===t.id})||new d.ListItem(t);return i.readOnly=e.readOnly,i.active&&i.id!==n&&(e.activeListItem=i),i})},t._defaultComponentOptions={componentClass:"iris-list",listItemClass:"iris-list-item",idPrefix:"iris_list"},t._factoryOptions={defaultQuerySelector:"."+t._defaultComponentOptions.componentClass,componentName:"ListComponent"},t.factory=new o.GenericComponentFactory(t,t._factoryOptions,t._defaultComponentOptions),t.VARIANTS=p,t}(r.Component);t.ListComponent=m},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(4),s=n(10),a=n(7),l=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._navigationElement=t,i._paginationSize=n.size,i._initPageIndex=n.initPage?n.initPage-1:0,i._currentPageIndex=n.initPage,i.items=n.itemArray,i}return i(t,e),Object.defineProperty(t.prototype,"items",{get:function(){return this._paginatedArray},set:function(e){this._originalItems=a.toArray(e),this._currentPageIndex=0;for(var t=[];e&&e.length>0;)t.push(e.splice(0,this._paginationSize));this._paginatedArray=t,this.destroy(),this.createNavigation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paginationSize",{set:function(e){var t=a.toArray(this._originalItems);this._paginationSize=e,this.items=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageIndex",{get:function(){return this._currentPageIndex},set:function(e){-1!==e&&e<this._paginatedArray.length?this._currentPageIndex=e:this._currentPageIndex=-1===e?0:this._paginatedArray.length-1,this._paginationButtons.forEach(function(e){return e.removeAttribute("disabled")}),e>=this._paginatedArray.length-1&&(this._paginationButtons[2].setAttribute("disabled","true"),this._paginationButtons[3].setAttribute("disabled","true")),e<=0&&(this._paginationButtons[0].setAttribute("disabled","true"),this._paginationButtons[1].setAttribute("disabled","true")),this._paginationTextfield.value=(this._currentPageIndex+1).toString(),s.dispatchEvent(this._navigationElement,"iris.pagination.change",{items:this._paginatedArray[this._currentPageIndex],currentPage:this._currentPageIndex+1,component:this})},enumerable:!0,configurable:!0}),t.prototype.createNavigation=function(){var e=this;this._paginationButtons=[];var t=document.createElement("button");t.classList.add("iris-pagination__direction-button","iris-pagination__direction-button--first"),t.setAttribute("type","button"),t.setAttribute("aria-label","Go to first page"),t.innerHTML='<span class="font-icon-angle-left-double" data-icon-size="md"></span>',t.addEventListener("click",function(){e.currentPageIndex=0}),this._paginationButtons.push(t),this._navigationElement.appendChild(t);var n=document.createElement("button");n.classList.add("iris-pagination__direction-button","iris-pagination__direction-button--previous"),n.setAttribute("type","button"),n.setAttribute("aria-label","Go to previous page"),n.innerHTML='<span class="font-icon-angle-left" data-icon-size="md"></span>',n.addEventListener("click",function(){e.currentPageIndex-=1}),n.addEventListener("keyup",function(e){"Enter"===e.key&&(this.currentPageIndex-=1)}),this._paginationButtons.push(n),this._navigationElement.appendChild(n);var i=document.createElement("div");i.classList.add("iris-pagination__textfield"),this._paginationTextfield=document.createElement("input"),this._paginationTextfield.setAttribute("type","number"),this._paginationTextfield.setAttribute("min","1"),this._paginationTextfield.setAttribute("max",this._paginatedArray.length),this._paginationTextfield.setAttribute("aria-label","Current Page:"),this._paginationTextfield.classList.add("iris-textfield__input"),this._paginationTextfield.addEventListener("keyup",function(t){"Enter"===t.key&&(e.currentPageIndex=parseInt(t.target.value,10)-1)}),this._paginationTextfield.addEventListener("click",function(e){e.target.select()}),i.appendChild(this._paginationTextfield),this._navigationElement.append(i);var r=document.createElement("span");r.classList.add("iris-pagination__total"),r.innerText="of "+this._paginatedArray.length,this._navigationElement.appendChild(r);var o=document.createElement("button");o.classList.add("iris-pagination__direction-button","iris-pagination__direction-button--next"),o.setAttribute("type","button"),o.setAttribute("aria-label","Go to next page"),o.innerHTML='<span class="font-icon-angle-right" data-icon-size="md"></span>',o.addEventListener("click",function(){e.currentPageIndex+=1}),o.addEventListener("keyup",function(e){"Enter"===e.key&&(this.currentPageIndex+=1)}),this._paginationButtons.push(o),this._navigationElement.appendChild(o);var s=document.createElement("button");s.classList.add("iris-pagination__direction-button","iris-pagination__direction-button--last"),s.setAttribute("type","button"),s.setAttribute("aria-label","Go to last page"),s.innerHTML='<span class="font-icon-angle-right-double" data-icon-size="md"></span>',s.addEventListener("click",function(){e.currentPageIndex=e._paginatedArray.length-1}),this._paginationButtons.push(s),this._navigationElement.appendChild(s),this.currentPageIndex=this._initPageIndex},t.prototype.destroy=function(){this._paginationButtons&&this._paginationButtons.forEach(function(e){e.remove()}),this._paginationTextfield&&this._paginationTextfield.remove(),this._navigationElement.innerHTML=""},t._factoryOptions={defaultQuerySelector:".iris-pagination",componentName:"PaginationComponent"},t.factory=new o.GenericComponentFactory(t,t._factoryOptions),t}(r.Component);t.PaginationComponent=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(10),s=n(16),a=n(18),l={top:"top",right:"right",bottom:"bottom",left:"left"},c={center:"center",end:"end",start:"start",none:"none"},d=function(e){function t(){var t=e.call(this,function(e,t){return new u(e,Object.assign({idPrefix:"iris_popover",componentName:"PopoverComponent"},t))},{defaultQuerySelector:"[data-popover]",componentName:"PopoverComponent"})||this;return t.documentClickHandler=function(e){var n=e.target;Object.values(t.components).forEach(function(e){e.forEach(function(e){e.getOptions().componentName===t.componentName&&e.expanded&&e.closeOnLeave&&!e.targetElement.contains(n)&&!e.sourceElement.contains(n)&&(e.collapsed=!0)})})},o.ready(function(){document.addEventListener("focusin",t.documentClickHandler),document.addEventListener("click",t.documentClickHandler)}),t}return i(t,e),t.prototype.componentForElement=function(t){var n=this,i=e.prototype.componentForElement.call(this,t);return t&&!i&&Object.values(this.components).forEach(function(e){e.forEach(function(e){e.getOptions().componentName===n.componentName&&e.targetElement.id===t.id&&(i=e)})}),i||null},t}(r.ComponentFactory);t.PopoverComponentFactory=d;var u=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._mutationObserver=new MutationObserver(function(){i._popper&&(i._popper.options.placement=i.placement),i.targetElement&&i.targetElement.setAttribute("x-indicator",i.indicator)}),i._clickHandler=function(e){var t=e.target,n=t.tagName.toUpperCase();return(t===i.sourceElement||t!==i.sourceElement&&"BUTTON"!==n&&"A"!==n)&&(i.toggle(),e.stopPropagation()),!0},i._closeButtonHandler=function(e){i.expanded=!1},i._expandStartHandler=function(e){if(i.targetElement){if(!0===i.expanded){var t={placement:i.placement};i.staticPlacement&&(t.modifiers={flip:{enabled:!1}}),i._popper=new Popper(i.sourceElement,i.targetElement,t)}i._popper&&i._popper.scheduleUpdate()}},i._expandEndHandler=function(e){i.targetElement&&!0===i.collapsed&&(i._popper.destroy(),i._popper=null)},i.collapseStartClass="iris-popover--collapse-start",i.collapseTransitionClass="iris-popover--collapsing",i.collapseEndClass="iris-popover--collapsed",i.expandStartClass="iris-popover--expand-start",i.expandTransitionClass="iris-popover--expanding",i.expandEndClass="iris-popover--expanded",i.idPrefix="iris_popover",i.defaultQuery=".iris-popover",i.queryAttribute="data-popover",i.sourceElement.addEventListener("click",i._clickHandler),i.sourceElement.addEventListener("expandstart",i._expandStartHandler),i.sourceElement.addEventListener("expandend",i._expandEndHandler),i._mutationObserver.observe(i.sourceElement,{attributes:!0}),i.targetElement=n.targetElement||i.targetElement,i.targetElement.setAttribute("role","dialog"),"BUTTON"!==i.sourceElement.tagName&&a.SyntheticButtonComponent.factory.init(i.sourceElement),i.targetElement&&(i._closeElement=i.targetElement.querySelector("[data-close]")),i._closeElement&&(i._closeElement.addEventListener("click",i._closeButtonHandler),"BUTTON"!==i._closeElement.tagName&&a.SyntheticButtonComponent.factory.init(i._closeElement)),i}return i(t,e),Object.defineProperty(t.prototype,"placement",{get:function(){var e=this,t=Object.values(l).find(function(t){return t===e.sourceElement.getAttribute("data-placement")})||"auto",n=this.indicator;return"start"!==n&&"end"!==n||(t=t+"-"+n),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indicator",{get:function(){var e=this;return Object.values(c).find(function(t){return t===e.sourceElement.getAttribute("data-indicator")})||"center"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closeOnLeave",{get:function(){return""===this.targetElement.getAttribute("data-close-on-leave")||"true"===this.targetElement.getAttribute("data-close-on-blur")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"staticPlacement",{get:function(){return""===this.sourceElement.getAttribute("data-static-placement")||"true"===this.sourceElement.getAttribute("data-static-placement")},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.sourceElement&&(this.sourceElement.removeEventListener("click",this._clickHandler),this.sourceElement.removeEventListener("expandstart",this._expandStartHandler),this.sourceElement.removeEventListener("expandend",this._expandEndHandler),a.SyntheticButtonComponent.factory.destroy(this.sourceElement)),this._closeElement&&(this._closeElement.removeEventListener("click",this._closeButtonHandler),a.SyntheticButtonComponent.factory.destroy(this._closeElement)),this._popper&&this._popper.destroy(),this._mutationObserver.disconnect()},t.PLACEMENT=l,t.INDICATOR_POSITION=c,t.factory=new d,t}(s.Expandable);t.PopoverComponent=u},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),o=n(7),s=n(26),a=n(4),l=n(10),c=n(17),d=r.once(function(){console.warn('Using "narrow" for selecting a variant size has been deprecated. Please use "small" instead.')}),u=r.once(function(){console.warn('Using "wide" for selecting a variant size has been deprecated. Please use "medium" instead.')}),p=function(e){function t(t,n){var i=e.call(this,t,n)||this;if(i._focusLoopHandler=function(e){i.element.contains(e.target)||i.element.focus()},t.setAttribute("role","alertdialog"),!i.element.hasAttribute("aria-describedby")){var r=t.querySelector(".iris-prompt__body");r&&(r.id=r.id||o.generateUniqueId("prompt_body"),t.setAttribute("aria-describedby",r.id))}return"narrow"===t.dataset.size&&d(),"wide"===t.dataset.size&&u(),i}return i(t,e),Object.defineProperty(t.prototype,"open",{get:function(){return this._open},set:function(e){this._open!==e&&!0!==this._isMidTransition&&(this._isMidTransition=!0,this._open=e,e?(this._openEventAndAction(),document.body.addEventListener("focusin",this._focusLoopHandler)):(document.body.removeEventListener("focusin",this._focusLoopHandler),this._closeEventAndAction()))},enumerable:!0,configurable:!0}),t.prototype._openEventAndAction=function(){o.dispatchIrisEvent(this.element,this._options.beforeOpenEvent,this._logger),this._openAction(),this._setFocus()},t.prototype._closeEventAndAction=function(){o.dispatchIrisEvent(this.element,this._options.beforeCloseEvent,this._logger),this._closeAction(),this._returnFocus()},t.prototype._openAction=function(){var e=this;document.body.prepend(this.backdropElement);var t=l.hasScrollbar()?l.getScrollbarWidth():0;document.body.style.borderRight=t+"px solid transparent";var n=function(){e.element.removeEventListener("iris.prompt.transition.complete",n),e._isMidTransition=!1,document.body.classList.add("no-scroll"),o.dispatchIrisEvent(e.element,e._options.afterOpenEvent,e._logger)};this.element.addEventListener("iris.prompt.transition.complete",n),c.transitionRunner(this.element,[{removeClassString:"hidden",type:"immediate"},{afterTransitionEventName:"iris.prompt.transition.complete",addClassString:"iris-prompt--open",type:"timeout",wait:50}]),c.transitionRunner(this.backdropElement,[{addClassString:"iris-backdrop--dark",type:"immediate"},{addClassString:"iris-backdrop--open",type:"timeout",wait:50}])},t.prototype._closeAction=function(){var e=this,t=function(){e.element.removeEventListener("iris.prompt.transition.complete",t),e._isMidTransition=!1,document.body.classList.remove("no-scroll"),o.dispatchIrisEvent(e.element,e._options.afterCloseEvent,e._logger)},n=function(){e.backdropElement.removeEventListener("iris.backdrop.transition.complete",n),e.backdropElement.remove(),document.body.style.borderRight=null};this.element.addEventListener("iris.prompt.transition.complete",t),this.backdropElement.addEventListener("iris.backdrop.transition.complete",n),c.transitionRunner(this.element,[{addClassString:"iris-prompt--closing",type:"immediate"},{removeClassString:"iris-prompt--open",type:"transition"},{afterTransitionEventName:"iris.prompt.transition.complete",addClassString:"hidden",removeClassString:"iris-prompt--closing",type:"immediate"}]),c.transitionRunner(this.backdropElement,[{removeClassString:"iris-backdrop--open",type:"immediate"},{afterTransitionEventName:"iris.backdrop.transition.complete",removeClassString:"iris-backdrop--dark",type:"timeout",wait:400}])},t._factoryOptions={defaultQuerySelector:".iris-prompt",componentName:"PromptComponent"},t._defaultComponentOptions={afterCloseEvent:"iris.prompt.closed",afterOpenEvent:"iris.prompt.opened",beforeCloseEvent:"iris.prompt.closing",beforeOpenEvent:"iris.prompt.opening",optionalOpenEvent:"",optionalCloseEvent:"",type:"prompt"},t.factory=new a.GenericComponentFactory(t,t._factoryOptions,t._defaultComponentOptions),t}(s.Modal);t.PromptComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(14),o=n(7),s=function(){function e(e,t){var n=this;this._clickHandler=function(e){n._fireActive()},this._keypressHandler=function(e){return r.createKeypressEventListener({spacebar:function(){n._fireActive()},enter:function(){n._fireActive()},tab:function(){return!0}})(e)},this._element=e,this._tabListElement=t,this._element.setAttribute("role","tab"),this._element.tabIndex=0,this._element.id||(this._element.id=o.generateUniqueId("iris_tab")),this._linkElement=this.element.querySelector(".iris-tabs__link"),this._linkElement&&(this._linkElement.tabIndex=-1),this.active=this.active,this.element.addEventListener("click",this._clickHandler),this.element.addEventListener("keydown",this._keypressHandler)}return Object.defineProperty(e.prototype,"active",{get:function(){return"true"===this._element.getAttribute("aria-selected")},set:function(e){this._element.setAttribute("aria-selected",e.toString())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._element.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){var e=this._element.getBoundingClientRect(),t=this._tabListElement.getBoundingClientRect();return{left:e.left-t.left,right:e.right-t.right}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.element.getAttribute("aria-label")||this.element.innerText},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.element&&(this.element.removeEventListener("click",this._clickHandler),this.element.removeEventListener("keydown",this._keypressHandler))},e.prototype._fireActive=function(){this.active||(this.active=!0,i.dispatchEvent(this.element,"activate",{component:this}),this._linkElement&&this._linkElement.click())},e.createTabElement=function(e,t){document.createElement("LI").classList.add("iris-tabs__list-item");var n=document.createElement("A");t&&n.setAttribute("href",t),o.isString(e)?n.innerText=e:n.appendChild(e)},e}();t.TabComponent=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(4),s=n(14),a=n(12),l=n(7),c=n(30),d=n(35),u=n(37),p=function(e){function t(){var t=e.call(this,function(e,n){return new m(e,Object.assign({componentName:"TabListComponent"},t._defaultComponentOptions,n))},{defaultQuerySelector:".iris-tabs",componentName:"TabListComponent"})||this;return t._defaultComponentOptions={leftIconClass:"font-icon-angle-left",rightIconClass:"font-icon-angle-right",idPrefix:"iris_tabs"},t}return i(t,e),t.prototype.componentForElement=function(t){var n=e.prototype.componentForElement.call(this,t);return t&&!n&&(n=this.getTabListByTabElement(t)),n},t.prototype.getTabListByTabElement=function(e){var t=this,n=Object.values(this.components).map(function(e){return e.filter(function(e){return e.componentName===t.componentName})}).filter(function(e){return e.length>0});return[].concat.apply([],n).find(function(t){return!!t.tabs.find(function(t){return t.element.id===e.id})})||null},t}(o.ComponentFactory);t.TabListComponentFactory=p;var m=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._tabs=[],i._mutationObserver=new MutationObserver(function(){i._updateTabs()}),i._scrollHandler=l.debounce(function(e){var t=e.target;t.scrollLeft>0?t.closest(".iris-tabs").classList.add("scrollable-left"):0===t.scrollLeft&&t.closest(".iris-tabs").classList.remove("scrollable-left"),t.scrollLeft+t.clientWidth>=t.scrollWidth?t.closest(".iris-tabs").classList.remove("scrollable-right"):t.scrollLeft+t.clientWidth<t.scrollWidth&&t.scrollWidth>t.clientWidth&&t.closest(".iris-tabs").classList.add("scrollable-right")},50),i._navPressedHandler=function(e){var t=i.tabInnerElement.getBoundingClientRect(),n=e.detail.component.element,r=e.detail.direction,o=i.tabs.map(function(e){return e.element.offsetLeft}),s=i.tabInnerElement.scrollWidth,a=t.width,l="right"===r?i.tabInnerElement.scrollLeft+a:i.tabInnerElement.scrollLeft-a;l<=0?l=0:l>=s?l=s:(l="right"===r?o.find(function(e,t,n){return t===n.length-1||e<l&&n[t+1]>l}):o.reverse().find(function(e,t,n){return t===n.length-1||e>l&&n[t+1]<l}),l-=n.offsetWidth),i.tabInnerElement.scroll({left:l,behavior:"smooth"})},i._activateHandler=function(e){if(e.detail){var t=e.detail.component;i.activeTab=t,i._statusRegion.broadcast(a.RegionSettings.format("tab.sr.selected",t.text))}},i._handleKeyPressListener=function(e){i._keypressEventListener(e)},i._keypressEventListener=s.createKeypressEventListener({left:function(){var e=i._moveHighlightedTab(-1);i.tabs[e].element.focus()},right:function(){var e=i._moveHighlightedTab(1);i.tabs[e].element.focus()}}),i._statusRegion=c.LiveRegion.globalStatusRegion,i._tabListElement=t.querySelector(".iris-tabs__list"),i._tabInnerElement=t.querySelector(".iris-tabs__inner"),i._leftNavigation=new u.TabNavigationComponent("left","iris-tabs__back-button",n.leftIconClass),i._rightNavigation=new u.TabNavigationComponent("right","iris-tabs__next-button",n.rightIconClass),i.tabListElement.setAttribute("role","tablist"),i.tabListElement.addEventListener("activate",i._activateHandler),i.tabInnerElement.addEventListener("scroll",i._scrollHandler),i.element.addEventListener("navPressed",i._navPressedHandler),i.element.addEventListener("keydown",i._handleKeyPressListener),i.element.append(i._leftNavigation.element,i._rightNavigation.element),i._updateTabs(),i._mutationObserver.observe(i.element,{childList:!0}),i}return i(t,e),Object.defineProperty(t.prototype,"tabListElement",{get:function(){return this._tabListElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabInnerElement",{get:function(){return this._tabInnerElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabs",{get:function(){return this._tabs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeTab",{get:function(){return this._tabs.find(function(e){return e.active})},set:function(e){this.tabs.forEach(function(t){e&&!e.active&&e.id===t.id&&(t.active=!0),(!e||t.active&&e.id!==t.id)&&(t.active=!1)})},enumerable:!0,configurable:!0}),t.prototype.findTabById=function(e){return this.tabs.find(function(t){return t.element.id===e})||null},t.prototype.destroy=function(){this._mutationObserver.disconnect(),this._leftNavigation.element&&this._leftNavigation.element.remove(),this._rightNavigation.element&&this._rightNavigation.element.remove(),this.tabListElement&&this.tabListElement.removeEventListener("activate",this._activateHandler),this.tabInnerElement&&this.tabInnerElement.removeEventListener("scroll",this._scrollHandler),this.element&&(this.element.removeEventListener("navPressed",this._navPressedHandler),this.element.removeEventListener("keydown",this._handleKeyPressListener)),this.tabs.forEach(function(e){e.destroy()})},t.prototype._moveHighlightedTab=function(e){var t=this.tabs.findIndex(function(e){return e.element.contains(document.activeElement)}),n=t+e;return-1===t?n=0:n<0?n=this.tabs.length-1:n>=this.tabs.length&&(n=0),n},t.prototype._updateTabs=function(){var e=this,t=this._tabs;this._tabs=l.toArray(this.element.querySelectorAll(".iris-tabs__list-item")).map(function(n){return t.find(function(e){return n.element.id===e.id})||new d.TabComponent(n,e.tabListElement)}),this.element.classList.toggle("scrollable-right",this.tabInnerElement.scrollWidth>this.tabInnerElement.clientWidth)},t.factory=new p,t}(r.Component);t.TabListComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(7),o=function(){function e(e,t,n){var o,s=this,a=Array.isArray(n)?n:r.splitAttributeToList(n),l=document.createElement("button");l.classList.add("iris-tabs__nav-button","iris-button","iris-button--ghost",t),l.setAttribute("aria-hidden","true"),l.tabIndex=-1;var c=document.createElement("span");c.classList.add("iris-button__icon"),(o=c.classList).add.apply(o,a),l.append(c),l.addEventListener("click",function(){i.dispatchEvent(l,"navPressed",{direction:e,component:s})}),this._element=l}return Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),e}();t.TabNavigationComponent=o},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(4),s=n(7),a={top:"top",right:"right",bottom:"bottom",left:"left"},l={center:"center",end:"end",start:"start",none:"none"},c={auto:"auto",small:"small",medium:"medium",large:"large"},d=function(e){function t(t,n){var i=e.call(this,t,n)||this;i._focused=!1,i._hovered=!1,i._mutationObserver=new MutationObserver(function(){i._popper&&(i._popper.options.placement=i.placement),i.tooltipElement.setAttribute("x-indicator",i.indicator),i.tooltipElement.setAttribute("x-size",i.size),i._tooltipContentElement.innerText=i.content}),i._mouseEnterHandler=function(e){i._hovered=!0,i._displayTooltip()},i._mouseLeaveHandler=function(e){i._hovered=!1,i._displayTooltip()},i._focusHandler=function(e){i._focused=!0,i._displayTooltip()},i._blurHandler=function(e){i._focused=!1,i._displayTooltip()},i._transitionEndHandler=function(e){e.target===i._tooltipElement&&(i.expanded?(i.tooltipElement.classList.remove("iris-tooltip--expanding"),i.tooltipElement.classList.add("iris-tooltip--expanded")):(i.tooltipElement.classList.remove("iris-tooltip--collapsing"),i.tooltipElement.classList.add("iris-tooltip--collapsed")))},i._tooltipElement=document.createElement("span"),i._tooltipElement.classList.add("iris-tooltip","iris-tooltip--collapsed"),i._tooltipElement.setAttribute("x-expanded","false"),i._tooltipElement.setAttribute("role","tooltip"),i._tooltipElement.setAttribute("x-indicator",i.indicator),i._tooltipElement.setAttribute("x-size",i.size),i._tooltipElement.id=s.generateUniqueId("iris_tooltip"),i._tooltipElement.addEventListener("transitionend",i._transitionEndHandler),i._tooltipContentElement=document.createElement("span"),i._tooltipContentElement.classList.add("iris-tooltip__content"),i._tooltipContentElement.innerText=i.content,i._tooltipElement.append(i._tooltipContentElement),document.body.append(i._tooltipElement),i.element.setAttribute("aria-describedby",i.tooltipElement.id),i.element.addEventListener("mouseenter",i._mouseEnterHandler),i.element.addEventListener("mouseleave",i._mouseLeaveHandler),i.element.addEventListener("focus",i._focusHandler),i.element.addEventListener("blur",i._blurHandler);var r=i.element.tagName.toUpperCase(),o=["BUTTON","A","INPUT","SELECT"].find(function(e){return r===e});return o||i.element.hasAttribute("role")||i.element.setAttribute("role","group"),o||i.element.setAttribute("tabindex","0"),i._mutationObserver.observe(i.element,{attributes:!0}),i}return i(t,e),Object.defineProperty(t.prototype,"expanded",{get:function(){return"true"===this.tooltipElement.getAttribute("x-expanded")},set:function(e){var t=this,n=this.expanded;if(this._popper||(this._popper=new Popper(this.element,this._tooltipElement,{placement:this.placement})),e!==n){if(this._cleanClasses(),this.tooltipElement.setAttribute("x-expanded",e.toString()),e)return this.tooltipElement.classList.add("iris-tooltip--expand-start"),this._popper.scheduleUpdate(),void window.setTimeout(function(){t.tooltipElement.classList.remove("iris-tooltip--expand-start"),t.tooltipElement.classList.add("iris-tooltip--expanding")},0);this.tooltipElement.classList.add("iris-tooltip--collapse-start"),window.setTimeout(function(){t.tooltipElement.classList.remove("iris-tooltip--collapse-start"),t.tooltipElement.classList.add("iris-tooltip--collapsing")},0)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placement",{get:function(){var e=this,t=Object.values(a).find(function(t){return t===e.element.getAttribute("data-placement")})||"auto",n=this.indicator;return"start"!==n&&"end"!==n||(t=t+"-"+n),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indicator",{get:function(){var e=this;return Object.values(l).find(function(t){return t===e.element.getAttribute("data-indicator")})||"center"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=this;return Object.values(c).find(function(t){return t===e.element.getAttribute("data-size")})||"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"content",{get:function(){return this.element.getAttribute("data-tooltip-content")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipElement",{get:function(){return this._tooltipElement},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._mutationObserver.disconnect(),this._popper&&this._popper.destroy(),this.element&&(this.element.removeEventListener("mouseenter",this._mouseEnterHandler),this.element.removeEventListener("mouseleave",this._mouseLeaveHandler),this.element.removeEventListener("focus",this._focusHandler),this.element.removeEventListener("blur",this._blurHandler),this.element.removeAttribute("aria-describedby")),this.tooltipElement&&this.tooltipElement.remove()},t.prototype._cleanClasses=function(){var e;(e=this.tooltipElement.classList).remove.apply(e,["iris-tooltip--collapse-start","iris-tooltip--collapsing","iris-tooltip--collapsed","iris-tooltip--expand-start","iris-tooltip--expanding","iris-tooltip--expanded"])},t.prototype._displayTooltip=function(){this.expanded=this._hovered||this._focused},t._factoryOptions={defaultQuerySelector:"[data-tooltip-content]",componentName:"TooltipComponent"},t._defaultComponentOptions={idPrefix:"iris_tooltip"},t.PLACEMENT=a,t.INDICATOR_POSITION=l,t.SIZE=c,t.factory=new o.GenericComponentFactory(t,t._factoryOptions,t._defaultComponentOptions),t}(r.Component);t.TooltipComponent=d}]);
//# sourceMappingURL=iris.min.js.map