@cfpb/cfpb-design-system 3.4.4 → 3.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/dist/components/cfpb-buttons/index.css +1 -1
  3. package/dist/components/cfpb-buttons/index.css.map +2 -2
  4. package/dist/components/cfpb-buttons/index.js +1 -1
  5. package/dist/components/cfpb-buttons/index.js.map +1 -1
  6. package/dist/components/cfpb-expandables/index.css +1 -1
  7. package/dist/components/cfpb-expandables/index.css.map +2 -2
  8. package/dist/components/cfpb-expandables/index.js +1 -1
  9. package/dist/components/cfpb-expandables/index.js.map +1 -1
  10. package/dist/components/cfpb-forms/index.css +1 -1
  11. package/dist/components/cfpb-forms/index.css.map +2 -2
  12. package/dist/components/cfpb-forms/index.js +1 -1
  13. package/dist/components/cfpb-forms/index.js.map +1 -1
  14. package/dist/components/cfpb-notifications/index.css.map +2 -2
  15. package/dist/components/cfpb-notifications/index.js +1 -1
  16. package/dist/components/cfpb-notifications/index.js.map +1 -1
  17. package/dist/components/cfpb-typography/index.css.map +2 -2
  18. package/dist/components/cfpb-typography/index.js +1 -1
  19. package/dist/components/cfpb-typography/index.js.map +1 -1
  20. package/dist/index.css +1 -1
  21. package/dist/index.css.map +2 -2
  22. package/dist/index.js +1 -1
  23. package/dist/index.js.map +1 -1
  24. package/dist/utilities/index.css +1 -1
  25. package/dist/utilities/index.css.map +2 -2
  26. package/dist/utilities/index.js +1 -1
  27. package/dist/utilities/index.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/components/cfpb-buttons/button-link.scss +71 -81
  30. package/src/components/cfpb-buttons/button.scss +16 -14
  31. package/src/utilities/utilities.scss +15 -0
@@ -1,2 +1,2 @@
1
- (()=>{var pt=Object.defineProperty;var mt=Object.getOwnPropertySymbols;var St=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable;var ht=(a,e,t)=>e in a?pt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ve=(a,e)=>{for(var t in e||(e={}))St.call(e,t)&&ht(a,t,e[t]);if(mt)for(var t of mt(e))Et.call(e,t)&&ht(a,t,e[t]);return a};var b=(a,e)=>{for(var t in e)pt(a,t,{get:e[t],enumerable:!0})};var we={};b(we,{default:()=>At});var At={};var re={bpXS:{min:0,max:600},bpSM:{min:601,max:900},bpMED:{min:901,max:1020},bpLG:{min:1021,max:1200},bpXL:{min:1201}};function ne(){let a=getComputedStyle(document.body).fontSize;return a=a===""?-1:a,parseFloat(a)}function Lt(a,e){let t=a.min,r=a.max;ne()>0&&ne()!==16&&(t=t/16*ne(),r=r/16*ne());let o=t||0,s=r||Number.POSITIVE_INFINITY;return o<=e&&e<=s}function jt(a){let e={};a=a||window.innerWidth;let t;for(t in re)e[t]=Lt(re[t],a);return e}var se="mobile",Tt="tablet",zt="desktop";function ke(a){let e=!1,t=jt();return(a===se&&t.bpXS||a===Tt&&t.bpSM||a===zt&&(t.bpMED||t.bpLG||t.bpXL))&&(e=!0),e}var B="data-js-hook",le="behavior_",Se="state_";function A(){let a={};function e(i,o){return{}.hasOwnProperty.call(a,i)?a[i].push(o):a[i]=[o],this}function t(i,o){if(!{}.hasOwnProperty.call(a,i))return this;let s=a[i].indexOf(o);return s!==-1&&a[i].splice(s,1),this}function r(i,o){if(!{}.hasOwnProperty.call(a,i))return this;o=o||{};let s=a[i];for(let d=0,c=s.length;d<c;d++)s[d].call(this,o);return this}return this.addEventListener=e,this.removeEventListener=t,this.dispatchEvent=r,this.getRegisteredEvents=()=>a,this}function $(a,e){if(!a)return!1;let t=a.getAttribute(B);return t?(t=t.split(" "),t.indexOf(e)>-1):!1}function L(a,e){if($(a,e))return e;if(e.indexOf(" ")!==-1){let r=B+" values cannot contain spaces!";throw new Error(r)}let t=a.getAttribute(B);return t!==null&&(e=t+" "+e),a.setAttribute(B,e),e}var Ee=Se+"atomic_init";function Ot(a,e){if(!a||!a.classList){let t=a+' is not valid. Check that element is a DOM node with class "'+e+'"';throw new Error(t)}return a}function It(a,e){let t=a.classList.contains(e)?a:a.querySelector("."+e);if(!t){let r=e+" not found on or in passed DOM node.";throw new Error(r)}return t}function q(a,e){return Ot(a,e),It(a,e)}function M(a){return $(a,Ee)?!1:(L(a,Ee),!0)}function C(a,e,t,r={}){let o=(t||document).querySelectorAll(a),s=[],d,c;for(let p=0,m=o.length;p<m;p++)c=o[p],$(c,Ee)===!1&&(d=new e(c),d.init(r),s.push(d));return s}var De={};b(De,{default:()=>Mt});var Mt={};var Ae={};b(Ae,{default:()=>qt});var qt={};var Le={};b(Le,{default:()=>Ft});var Ft={};var je={};b(je,{default:()=>Vt});var Vt={};var Te={};b(Te,{default:()=>Rt});var Rt={};var ze={};b(ze,{default:()=>Pt});var Pt={};var Oe={};b(Oe,{default:()=>Kt});var Kt={};var Ie={};b(Ie,{default:()=>Yt});var Yt={};var Be={};b(Be,{default:()=>Wt});var Wt={};var Me={};b(Me,{default:()=>Qt});var Qt={};var Ne={};b(Ne,{default:()=>ta});var ta={};var qe={};b(qe,{default:()=>oa});var oa={};var Ce={};b(Ce,{default:()=>ra});var ra={};var Fe={};b(Fe,{default:()=>sa});var sa={};var la;function da(a){return a.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function ca(a,e){return RegExp(da(e.trim()),"i").test(a)}function ma(a,e,t){let r=a,i=e,o=(t==null?void 0:t.maxSelections)||5,s=[],d=[],c=[],p=[],m=-1;function f(g){return i+"-"+g.value.trim().replace(/\s+/g,"-").toLowerCase()}function _(){return d.length>=o}function y(g){let w,D=[],x=!1;for(let z=0,N=g.length;z<N;z++)w=g[z],x=_()?!1:w.defaultSelected,D.push({id:f(w),value:w.value,text:w.text,checked:x}),x&&d.push(z);return D}function j(){return s=y(r),this}function S(g){return s[g].checked=!s[g].checked,d.length<o&&s[g].checked?(d.push(g),d.sort(),!0):(s[g].checked=!1,d=d.filter(function(w){return w!==g}),!1)}function E(g,w,D,x){return ca(w.text,x)&&g.push(D),g}function T(g){return Object.prototype.toString.call(g)!=="[object String]"&&(g=""),p=c,s.length>0&&(c=s.reduce(function(w,D,x){return E(w,D,x,g)},[])),m=-1,c}function V(g){return s[g]}function R(g){let w=c.length,D=w===0?s.length:w;g<0?m=-1:g>=D?m=D-1:m=g}function O(){return m}return this.init=j,this.toggleOption=S,this.getSelectedIndices=function(){return d},this.isAtMaxSelections=_,this.filterIndices=T,this.clearFilter=function(){return c=p=[],la},this.getFilterIndices=function(){return c},this.getLastFilterIndices=function(){return p},this.getIndex=O,this.setIndex=R,this.resetIndex=function(){return m=-1,m},this.getOption=V,this}var ut=ma;function F(a,e,t){let r=document.createElement(a);return Object.keys(t).forEach(i=>{let o=t[i];i in r?r[i]=o:r.setAttribute(i,o)}),e&&e.appendChild(r),r}var bt='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="cf-icon-svg cf-icon-svg--error" viewBox="0 0 12 19"><path d="M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"/></svg>';var ga=bt,H="o-multiselect",fa="a-checkbox",_a="a-text-input",gt="prev",de="next",He="Enter",xa=" ",ft="Escape",ya="ArrowUp",_t="ArrowDown",xt="Tab",yt={renderTags:!0,maxSelections:5};function ce(a){a.classList.add(H);let e=q(a,H),t=!1,r,i,o,s,d,c,p,m,f,_,y,j=[],S;function E(){y.classList.remove("u-no-results"),y.classList.add("u-filtered");let n=o.getLastFilterIndices();for(let l=0,h=n.length;l<h;l++)j[n[l]].classList.remove("u-filter-match");n=o.getFilterIndices();for(let l=0,h=n.length;l<h;l++)j[n[l]].classList.add("u-filter-match")}function T(){y.classList.remove("u-filtered","u-no-results");for(let n=0,l=y.children.length;n<l;n++)y.children[n].classList.remove("u-filter-match");o.clearFilter()}function V(){y.classList.add("u-no-results"),y.classList.remove("u-filtered")}function R(n){return n.length>0?(E(),!0):(V(),!1)}function O(n){T(),o.resetIndex();let l=o.filterIndices(n);R(l)}function g(){return c.classList.add("u-active"),_.classList.remove("u-invisible"),_.setAttribute("aria-hidden",!1),S.dispatchEvent("expandbegin",{target:S}),S}function w(){return c.classList.remove("u-active"),_.classList.add("u-invisible"),_.setAttribute("aria-hidden",!0),o.resetIndex(),S.dispatchEvent("collapsebegin",{target:S}),S}function D(n){n===de?o.setIndex(o.getIndex()+1):n===gt&&o.setIndex(o.getIndex()-1);let l=o.getIndex();if(l>-1){let h=l,u=o.getFilterIndices();u.length>0&&(h=u[l]);let P=o.getOption(h).value,kt=y.querySelector('[data-option="'+P+'"]').querySelector("input");t=!0,kt.focus()}else t=!1,f.focus()}function x(){f.value="",T()}function z(n){let l=n.target;l.tagName==="BUTTON"&&(n.preventDefault(),l.removeEventListener("click",z),l.querySelector("label").click())}function N(n){if(n.key===xa||n.key===He){let l=n.target.querySelector("label");y.querySelector("#"+l.getAttribute("for")).click()}}function U(n){return r+"-"+n.value.trim().replace(/[^\w]/g,"-").toLowerCase()}function W(n,l){let h=U(l),u=F("li",null,{"data-option":l.value}),k=F("button",u,{type:"button",class:"a-tag-filter",innerHTML:"<label for="+h+">"+l.text+ga+"</label>"});n.appendChild(u),k.addEventListener("click",z),k.addEventListener("keydown",N)}function oe(n){let l=o.getOption(n)||o.getOption(o.getIndex());if(l){if(l.checked){y.classList.contains("u-max-selections")&&y.classList.remove("u-max-selections");let h='[data-option="'+l.value+'"]',u=p.querySelector(h);typeof u!="undefined"&&u&&(p==null||p.removeChild(u))}else d!=null&&d.renderTags&&p&&W(p,l);o.toggleOption(n),o.isAtMaxSelections()&&y.classList.add("u-max-selections"),S.dispatchEvent("selectionsupdated",{target:S})}o.resetIndex(),t=!1,_.getAttribute("aria-hidden")==="false"&&f.focus()}function fe(n){oe(Number(n.target.getAttribute("data-index"))),x()}function _e(){m.addEventListener("mousemove",function(h){let u=h.target;h.offsetX>u.offsetWidth-35?u.style.cursor="pointer":u.style.cursor="auto"}),m.addEventListener("mouseup",function(h){let u=h.target;h.offsetX>u.offsetWidth-35&&_.offsetHeight===140&&f.blur()}),f.addEventListener("input",function(){O(this.value)}),f.addEventListener("focus",function(){_.getAttribute("aria-hidden")==="true"&&g()}),f.addEventListener("blur",function(){!t&&_.getAttribute("aria-hidden")==="false"&&w()}),f.addEventListener("keydown",function(h){let u=h.key;_.getAttribute("aria-hidden")==="true"&&u!==xt&&g(),u===He?(h.preventDefault(),D(de)):u===ft?(x(),w()):u===_t?D(de):u===xt&&!h.shiftKey&&_.getAttribute("aria-hidden")==="false"&&w()}),y.addEventListener("mousedown",function(){t=!0}),y.addEventListener("keydown",function(h){let u=h.key,k=h.target,P=k.checked;if(u===He){h.preventDefault(),k.checked=!P;let G=new Event("change",{bubbles:!1,cancelable:!0});k.dispatchEvent(G)}else u===ft?(f.focus(),w()):u===ya?D(gt):u===_t&&D(de)}),_.addEventListener("mousedown",function(h){h.target.tagName==="LABEL"&&(t=!0)});let n=y.querySelectorAll("input");for(let h=0,u=n.length;h<u;h++)n[h].addEventListener("change",fe);let l=p.querySelectorAll("button");for(let h=0,u=l.length;h<u;h++)l[h].addEventListener("click",z),l[h].addEventListener("keydown",N)}function ie(){c=document.createElement("div"),c.className=H,p=F("ul",null,{className:"m-tag-group"}),m=F("header",c,{className:H+"__header"}),f=F("input",m,{className:H+"__search "+_a,type:"text",placeholder:i||"Select up to five",id:e.id,autocomplete:"off"}),_=F("fieldset",c,{className:H+"__fieldset u-invisible","aria-hidden":"true"});let n=H+"__options";o.isAtMaxSelections()&&(n+=" u-max-selections"),y=F("ul",_,{className:n});let l,h,u;for(let k=0,P=s.length;k<P;k++){l=s[k],h=U(l),u=o.getOption(k).checked;let G=F("li",y,{"data-option":l.value,"data-cy":"multiselect-option",class:"m-form-field m-form-field--checkbox"});F("input",G,{id:h,type:"checkbox",value:l.value,name:r,class:fa+" "+H+"__checkbox",checked:u,"data-index":k}),F("label",G,{for:h,textContent:l.text,className:H+"__label a-label"}),j.push(G),u&&(d!=null&&d.renderTags)&&W(p,l)}return c.insertBefore(p,m),e.parentNode.insertBefore(c,e),c.appendChild(e),c}function xe(n=yt){if(!M(e))return this;if(Ve())return this;if(S=this,r=e.name||e.id,i=e.getAttribute("placeholder"),s=e.options||[],d=ve(ve({},yt),n),s.length>0){o=new ut(s,r,d).init();let l=ie();e.parentNode.removeChild(e),e=l,M(e),_e()}return this}function ye(){return o}this.init=xe,this.expand=g,this.collapse=w;let Y=new A;return this.addEventListener=Y.addEventListener,this.removeEventListener=Y.removeEventListener,this.dispatchEvent=Y.dispatchEvent,this.getModel=ye,this.updateSelections=oe,this.selectionClickHandler=z,this.selectionKeyDownHandler=N,this}ce.BASE_CLASS=H;ce.init=a=>C(`.${H}`,ce,void 0,a);var Ge={};b(Ge,{default:()=>wa});var wa={};var Re={};b(Re,{default:()=>Sa});var Sa={};var Ue={};b(Ue,{default:()=>Da});var Da={};var Pe={};b(Pe,{default:()=>La});var La={};var Xe={};b(Xe,{default:()=>Ta});var Ta={};var Ke={};b(Ke,{default:()=>Oa});var Oa={};var Je={};b(Je,{default:()=>Ba});var Ba={};var Ye={};b(Ye,{default:()=>Na});var Na={};var $e={};b($e,{default:()=>Ca});var Ca={};var We={};b(We,{default:()=>Ha});var Ha={};var Ze={};b(Ze,{default:()=>Ga});var Ga={};var Qe={};b(Qe,{default:()=>Ua});var Ua={};var et={};b(et,{default:()=>Xa});var Xa={};var tt={};b(tt,{default:()=>Ja});var Ja={};var at={};b(at,{default:()=>$a});var $a={};var ot={};b(ot,{default:()=>Za});var Za={};var it={};b(it,{default:()=>eo});var eo={};var rt={};b(rt,{default:()=>ao});var ao={};var nt={};b(nt,{default:()=>io});var io={};var st={};b(st,{default:()=>no});var no={};function me(a,e){let t;if($(a,e))return t=a,t;if(a){let r="["+B+"="+e+"]";t=a.querySelector(r)}if(!t){let r=e+" behavior not found on passed DOM node!";throw new Error(r)}return t}var so=Object.prototype.toString;var lo=Array.isArray||function(e){return so.call(e)==="[object Array]"};function Ve(){return!!new RegExp(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i).test(navigator.userAgent)}var ee=le+"flyout-menu",co="["+B+"="+ee;function X(a,e=!0){let t=me(a,ee),r=V(a),i=me(a,ee+"_content"),o=0,s=0,d=1,c=2,p=3,m,f,_,y=W.bind(this),j=U.bind(this),S,E=!0,T=!1;function V(n){let l=[],h=n.querySelectorAll(`${co}_trigger]`),u,k,P;for(let G=h.length>>>0;G--;){for(P=!1,u=h[G],k=u.parentElement;k!==n;)k.getAttribute(B)&&k.getAttribute(B).split(" ").indexOf(ee)!==-1?(P=!0,k=n):k=k.parentElement;P||l.unshift(h[G])}return l}function R(n=!1){return o=n?p:s,r.forEach(l=>{O("expanded",l,n),l.addEventListener("click",x.bind(this)),l.addEventListener("touchstart",g,{passive:!0}),l.addEventListener("mouseover",w.bind(this)),l.addEventListener("mouseout",D.bind(this))}),i.setAttribute("data-open",n?"true":"false"),e&&!n&&i.setAttribute("hidden",""),ie(),this}function O(n,l,h){let u=String(h);return l.setAttribute("aria-"+n,u),u}function g(){T=!0}function w(n){E||(T||this.dispatchEvent("triggerover",{target:this,trigger:n.target,type:"triggerover"}),T=!1)}function D(n){E||this.dispatchEvent("triggerout",{target:this,trigger:n.target,type:"triggerout"})}function x(n){if(!E)switch(this.dispatchEvent("triggerclick",{target:this,trigger:n.target,type:"triggerclick"}),n.preventDefault(),o){case s:case d:this.expand();break;case c:case p:this.collapse();break}}function z(){if(m==null||m.halt(),o===c||o===p)return this;if(o=c,e&&i.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!f||!_)return j(),this;let n=m==null?void 0:m.isAnimated();return n&&m.addEventListener(v.END_EVENT,j),f(),n||j(),this}function N(){if(m==null||m.halt(),o===d||o===s)return this;for(let l=0,h=r.length;l<h;l++)O("expanded",r[l],!1);if(i.setAttribute("data-open","false"),o=d,this.dispatchEvent("collapsebegin",{target:this,type:"collapsebegin"}),!_||!f)return y(),this;let n=m==null?void 0:m.isAnimated();return n&&m.addEventListener(v.END_EVENT,y),_(),n||y(),this}function U(){o=p,i.setAttribute("data-open","true"),m&&m.removeEventListener(v.END_EVENT,j),this.dispatchEvent("expandend",{target:this,type:"expandend"});for(let n=0,l=r.length;n<l;n++)O("expanded",r[n],!0)}function W(){o=s,e&&i.setAttribute("hidden",""),m&&m.removeEventListener(v.END_EVENT,y),this.dispatchEvent("collapseend",{target:this,type:"collapseend"})}function oe(n,l,h){m=n,l&&l!==_&&(_=l),h&&h!==f&&(f=h)}function fe(){m&&m.remove();let n;m=n,f=n,_=n}function _e(){return{container:t,content:i,trigger:r}}function ie(){return E&&(E=!1),!E}function xe(){return E||(E=!0),E}function ye(n){return S=n,this}let Y=new A;return this.addEventListener=Y.addEventListener,this.removeEventListener=Y.removeEventListener,this.dispatchEvent=Y.dispatchEvent,this.init=R,this.expand=z,this.collapse=N,this.setTransition=oe,this.clearTransition=fe,this.getData=()=>S,this.getTransition=()=>m,this.getDom=_e,this.isAnimating=()=>o===c||o===d,this.isExpanded=()=>o===p,this.resume=ie,this.setData=ye,this.suspend=xe,X.BASE_CLASS=ee,this}var he={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function vt(a){let e=new A,t=new v(a,he,this);function r(s){return t.init(s),this}function i(){return t.applyClass(he.ALPHA_100),this}function o(){return t.applyClass(he.ALPHA_0),this}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.remove=t.remove,this.setElement=t.setElement,this.fadeIn=i,this.fadeOut=o,this.init=r,this}vt.CLASSES=he;function v(a,e,t){let r=e,i=a;if(!t)throw new Error("Child transition argument must be defined!");let o=t,s,d,c,p=!1,m=!1,f=!1;if(typeof r.CSS_PROPERTY=="undefined"||typeof r.BASE_CLASS=="undefined")throw new Error("Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition.");function _(){d&&p?(i.addEventListener(d,c),o.dispatchEvent(v.BEGIN_EVENT,{target:o,type:v.BEGIN_EVENT}),i.classList.add(v.ANIMATING_CLASS),m=!0):(o.dispatchEvent(v.BEGIN_EVENT,{target:o,type:v.BEGIN_EVENT}),c())}function y(){i.removeEventListener(d,c)}function j(x){return x&&x.propertyName!==r.CSS_PROPERTY?!1:(y(),i.classList.remove(v.ANIMATING_CLASS),o.dispatchEvent(v.END_EVENT,{target:o,type:v.END_EVENT}),m=!1,!0)}function S(){let x;for(x in r)({}).hasOwnProperty.call(r,x)&&r[x]!==r.BASE_CLASS&&i.classList.contains(r[x])&&i.classList.remove(r[x])}function E(){m&&(i.style.webkitTransitionDuration="0",i.style.mozTransitionDuration="0",i.style.oTransitionDuration="0",i.style.transitionDuration="0",i.removeEventListener(d,c),c(),i.style.webkitTransitionDuration="",i.style.mozTransitionDuration="",i.style.oTransitionDuration="",i.style.transitionDuration="")}function T(){E(),S(),i.classList.remove(r.BASE_CLASS)}function V(){i.classList.remove(v.NO_ANIMATION_CLASS),p=!0}function R(){i.classList.add(v.NO_ANIMATION_CLASS),p=!1}function O(x){if(!x){let W="Element does not have TransitionEnd event. It may be null!";throw new Error(W)}let z,N={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},U;for(U in N)if({}.hasOwnProperty.call(N,U)&&typeof x.style[U]!="undefined"){z=N[U];break}return z}function g(x){T(),V(),i=x,i.classList.add(r.BASE_CLASS),d=O(i)}function w(x){if(p=!i.classList.contains(v.NO_ANIMATION_CLASS),c=j.bind(this),g(i),!x)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return i.classList.add(x),this}function D(x){return f||(S(),f=!0),i.classList.contains(x)?!1:(y(),i.classList.remove(s),s=x,_(),i.classList.add(s),!0)}return this.animateOff=R,this.animateOn=V,this.applyClass=D,this.halt=E,this.init=w,this.isAnimated=()=>p,this.remove=T,this.setElement=g,this}v.BEGIN_EVENT="transitionbegin";v.END_EVENT="transitionend";v.NO_ANIMATION_CLASS="u-no-animation";v.ANIMATING_CLASS="u-is-animating";var te={CSS_PROPERTY:"max-height",BASE_CLASS:"u-max-height-transition",MH_DEFAULT:"u-max-height-default",MH_SUMMARY:"u-max-height-summary",MH_ZERO:"u-max-height-zero"};function I(a){let e=new A,t=new v(a,te,this),r=0;function i(){let _=a.scrollHeight+"px";a.style.maxHeight=_}function o(){window.removeEventListener("load",o),i()}function s(f){return t.init(f),window.addEventListener("load",o),window.addEventListener("resize",()=>{i()}),this}function d(){return i(),t.applyClass(te.MH_DEFAULT),(!r||a.scrollHeight>r)&&(r=a.scrollHeight),this}function c(){return t.applyClass(te.MH_SUMMARY),r=a.scrollHeight,this}function p(){return t.applyClass(te.MH_ZERO),r=a.scrollHeight,this}function m(){return a.style.maxHeight="",t.remove()}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.setElement=t.setElement,this.refresh=i,this.remove=m,this.init=s,this.maxHeightDefault=d,this.maxHeightSummary=c,this.maxHeightZero=p,this}I.CLASSES=te;var K={CSS_PROPERTY:"transform",BASE_CLASS:"u-move-transition",MOVE_TO_ORIGIN:"u-move-to-origin",MOVE_LEFT:"u-move-left",MOVE_LEFT_2X:"u-move-left-2x",MOVE_LEFT_3X:"u-move-left-3x",MOVE_RIGHT:"u-move-right",MOVE_UP:"u-move-up"};function wt(a){let e=new A,t=new v(a,K,this);function r(c){return t.init(c),this}function i(){return t.applyClass(K.MOVE_TO_ORIGIN),this}function o(c){c=c||1;let p=[K.MOVE_LEFT,K.MOVE_LEFT_2X,K.MOVE_LEFT_3X];return t.applyClass(p[c-1]),this}function s(){return t.applyClass(K.MOVE_RIGHT),this}function d(){return t.applyClass(K.MOVE_UP),this}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.setElement=t.setElement,this.remove=t.remove,this.init=r,this.moveLeft=()=>o(1),this.moveLeft2=()=>o(2),this.moveLeft3=()=>o(3),this.moveRight=s,this.moveToOrigin=i,this.moveUp=d,this}wt.CLASSES=K;var lt={};b(lt,{default:()=>po});var po={};var Z="o-expandable";function J(a){let e=q(a,Z),t,r,i,o,s;function d(){if(!M(e))return this;t=e.querySelector(`.${Z}__header`),r=e.querySelector(`.${Z}__content`),i=e.querySelector(`.${Z}__label`);let m=e.classList.contains(`${Z}--onload-open`);L(e,"behavior_flyout-menu"),L(t,"behavior_flyout-menu_trigger"),L(r,"behavior_flyout-menu_content");let f=m?I.CLASSES.MH_DEFAULT:I.CLASSES.MH_ZERO;return o=new I(r).init(f),s=new X(e),s.setTransition(o,o.maxHeightZero,o.maxHeightDefault),s.init(m),s.addEventListener("expandbegin",()=>{r.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),s.addEventListener("collapseend",()=>{r.classList.add("u-hidden")}),this}function c(){return i.textContent.trim()}this.init=d,this.expand=()=>s.expand(),this.collapse=()=>s.collapse(),this.isExpanded=()=>s.isExpanded(),this.refresh=()=>s.getTransition().refresh(),this.getLabelText=c;let p=new A;return this.addEventListener=p.addEventListener,this.removeEventListener=p.removeEventListener,this.dispatchEvent=p.dispatchEvent,this}J.BASE_CLASS=Z;J.init=a=>C(`.${J.BASE_CLASS}`,J,a);var dt={};b(dt,{default:()=>bo});var bo={};var pe="o-expandable-group";function ue(a){let e=q(a,pe),t=e.classList.contains(`${pe}--accordion`),r,i;function o(d){let c=d.target;i&&i!==c&&i.collapse(),i=c}function s(d){return M(e)?(t&&(r=d,r.forEach(c=>{c.addEventListener("expandbegin",o)})),this):this}return this.init=s,this}ue.BASE_CLASS=pe;ue.init=a=>{(a||document).querySelectorAll(`.${pe}`).forEach(r=>{let i=C(`.${J.BASE_CLASS}`,J,r);new ue(r).init(i)})};var ct={};b(ct,{default:()=>fo});var fo={};var Q="o-summary";function be(a){let e=q(a,Q),t=e.classList.contains(`${Q}--mobile`),r=e.querySelector(`.${Q}__content`),i=e.querySelector(`.${Q}__btn`),o,s,d;function c(){return M(e)?(window.addEventListener("load",p),this):this}function p(){window.removeEventListener("load",p),d=!y(),L(e,"behavior_flyout-menu"),L(r,"behavior_flyout-menu_content"),L(i,"behavior_flyout-menu_trigger"),s=new X(e,!1),o=new I(r),o.init(d?I.CLASSES.MH_SUMMARY:I.CLASSES.MH_DEFAULT),s.setTransition(o,o.maxHeightSummary,o.maxHeightDefault),s.addEventListener("triggerclick",j),s.init(),_(),window.addEventListener("resize",_),"onorientationchange"in window&&window.addEventListener("orientationchange",_),e.addEventListener("focusin",m),r.addEventListener("click",f)}function m(g){!d&&g.target!==i&&(i.click(),e.removeEventListener("focusin",m))}function f(g){g.target.tagName!=="A"&&s.isExpanded()&&o.refresh()}function _(){y()?R():V()}function y(){return t&&!ke(se)||r.scrollHeight<=88}function j(){s.addEventListener("expandend",S)}function S(){T(),window.removeEventListener("resize",_),window.removeEventListener("orientationchange",_),s.removeEventListener("expandend",S),s.suspend(),o.remove()}function E(){i.classList.remove("u-hidden")}function T(){i.classList.add("u-hidden")}function V(){return d&&(s.collapse(),o.animateOn(),E(),d=!1),!d}function R(){return d||(o.animateOff(),s.expand(),T(),d=!0),d}let O=new A;return this.addEventListener=O.addEventListener,this.removeEventListener=O.removeEventListener,this.dispatchEvent=O.dispatchEvent,this.init=c,this}be.BASE_CLASS=Q;be.init=a=>C(`.${Q}`,be,a);var ae="o-summary-minimal";function ge(a){let e=q(a,ae),t=e.querySelector(`.${ae}__content`),r=e.querySelector(`.${ae}__btn`),i,o;function s(){return M(e)?(L(e,"behavior_flyout-menu"),L(t,"behavior_flyout-menu_content"),L(r,"behavior_flyout-menu_trigger"),window.addEventListener("load",d),this):this}function d(){window.removeEventListener("load",d),o=new X(e,!1),i=new I(t),i.init(I.CLASSES.MH_SUMMARY),o.setTransition(i,i.maxHeightSummary,i.maxHeightDefault),o.init(),e.addEventListener("focusin",c),t.addEventListener("click",p),o.collapse(),i.animateOn()}function c(f){f.target!==r&&(r.click(),e.removeEventListener("focusin",c))}function p(f){f.target.tagName!=="A"&&o.isExpanded()&&i.refresh()}let m=new A;return this.addEventListener=m.addEventListener,this.removeEventListener=m.removeEventListener,this.dispatchEvent=m.dispatchEvent,this.init=s,this}ge.BASE_CLASS=ae;ge.init=a=>C(`.${ae}`,ge,a);})();
1
+ (()=>{var pt=Object.defineProperty;var mt=Object.getOwnPropertySymbols;var St=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable;var ht=(a,e,t)=>e in a?pt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ve=(a,e)=>{for(var t in e||(e={}))St.call(e,t)&&ht(a,t,e[t]);if(mt)for(var t of mt(e))Et.call(e,t)&&ht(a,t,e[t]);return a};var b=(a,e)=>{for(var t in e)pt(a,t,{get:e[t],enumerable:!0})};var we={};b(we,{default:()=>Dt});var Dt={};var re={bpXS:{min:0,max:600},bpSM:{min:601,max:900},bpMED:{min:901,max:1020},bpLG:{min:1021,max:1200},bpXL:{min:1201}};function ne(){let a=getComputedStyle(document.body).fontSize;return a=a===""?-1:a,parseFloat(a)}function At(a,e){let t=a.min,r=a.max;ne()>0&&ne()!==16&&(t=t/16*ne(),r=r/16*ne());let o=t||0,l=r||Number.POSITIVE_INFINITY;return o<=e&&e<=l}function jt(a){let e={};a=a||window.innerWidth;let t;for(t in re)e[t]=At(re[t],a);return e}var le="mobile",Tt="tablet",zt="desktop";function ke(a){let e=!1,t=jt();return(a===le&&t.bpXS||a===Tt&&t.bpSM||a===zt&&(t.bpMED||t.bpLG||t.bpXL))&&(e=!0),e}var B="data-js-hook",se="behavior_",Se="state_";function D(){let a={};function e(i,o){return{}.hasOwnProperty.call(a,i)?a[i].push(o):a[i]=[o],this}function t(i,o){if(!{}.hasOwnProperty.call(a,i))return this;let l=a[i].indexOf(o);return l!==-1&&a[i].splice(l,1),this}function r(i,o){if(!{}.hasOwnProperty.call(a,i))return this;o=o||{};let l=a[i];for(let d=0,c=l.length;d<c;d++)l[d].call(this,o);return this}return this.addEventListener=e,this.removeEventListener=t,this.dispatchEvent=r,this.getRegisteredEvents=()=>a,this}function Y(a,e){if(!a)return!1;let t=a.getAttribute(B);return t?(t=t.split(" "),t.indexOf(e)>-1):!1}function A(a,e){if(Y(a,e))return e;if(e.indexOf(" ")!==-1){let r=B+" values cannot contain spaces!";throw new Error(r)}let t=a.getAttribute(B);return t!==null&&(e=t+" "+e),a.setAttribute(B,e),e}var Ee=Se+"atomic_init";function Ot(a,e){if(!a||!a.classList){let t=a+' is not valid. Check that element is a DOM node with class "'+e+'"';throw new Error(t)}return a}function It(a,e){let t=a.classList.contains(e)?a:a.querySelector("."+e);if(!t){let r=e+" not found on or in passed DOM node.";throw new Error(r)}return t}function q(a,e){return Ot(a,e),It(a,e)}function M(a){return Y(a,Ee)?!1:(A(a,Ee),!0)}function C(a,e,t,r={}){let o=(t||document).querySelectorAll(a),l=[],d,c;for(let p=0,m=o.length;p<m;p++)c=o[p],Y(c,Ee)===!1&&(d=new e(c),d.init(r),l.push(d));return l}var Le={};b(Le,{default:()=>Mt});var Mt={};var De={};b(De,{default:()=>qt});var qt={};var Ae={};b(Ae,{default:()=>$t});var $t={};var je={};b(je,{default:()=>Ht});var Ht={};var Te={};b(Te,{default:()=>Gt});var Gt={};var ze={};b(ze,{default:()=>Ut});var Ut={};var Oe={};b(Oe,{default:()=>Xt});var Xt={};var Ie={};b(Ie,{default:()=>Jt});var Jt={};var Be={};b(Be,{default:()=>Wt});var Wt={};var Me={};b(Me,{default:()=>Qt});var Qt={};var Ne={};b(Ne,{default:()=>ta});var ta={};var qe={};b(qe,{default:()=>oa});var oa={};var Ce={};b(Ce,{default:()=>ra});var ra={};var $e={};b($e,{default:()=>la});var la={};var sa;function da(a){return a.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function ca(a,e){return RegExp(da(e.trim()),"i").test(a)}function ma(a,e,t){let r=a,i=e,o=(t==null?void 0:t.maxSelections)||5,l=[],d=[],c=[],p=[],m=-1;function f(g){return i+"-"+g.value.trim().replace(/\s+/g,"-").toLowerCase()}function x(){return d.length>=o}function _(g){let w,L=[],y=!1;for(let z=0,N=g.length;z<N;z++)w=g[z],y=x()?!1:w.defaultSelected,L.push({id:f(w),value:w.value,text:w.text,checked:y}),y&&d.push(z);return L}function j(){return l=_(r),this}function S(g){return l[g].checked=!l[g].checked,d.length<o&&l[g].checked?(d.push(g),d.sort(),!0):(l[g].checked=!1,d=d.filter(function(w){return w!==g}),!1)}function E(g,w,L,y){return ca(w.text,y)&&g.push(L),g}function T(g){return Object.prototype.toString.call(g)!=="[object String]"&&(g=""),p=c,l.length>0&&(c=l.reduce(function(w,L,y){return E(w,L,y,g)},[])),m=-1,c}function H(g){return l[g]}function G(g){let w=c.length,L=w===0?l.length:w;g<0?m=-1:g>=L?m=L-1:m=g}function O(){return m}return this.init=j,this.toggleOption=S,this.getSelectedIndices=function(){return d},this.isAtMaxSelections=x,this.filterIndices=T,this.clearFilter=function(){return c=p=[],sa},this.getFilterIndices=function(){return c},this.getLastFilterIndices=function(){return p},this.getIndex=O,this.setIndex=G,this.resetIndex=function(){return m=-1,m},this.getOption=H,this}var ut=ma;function $(a,e,t){let r=document.createElement(a);return Object.keys(t).forEach(i=>{let o=t[i];i in r?r[i]=o:r.setAttribute(i,o)}),e&&e.appendChild(r),r}var bt='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="cf-icon-svg cf-icon-svg--error" viewBox="0 0 12 19"><path d="M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"/></svg>';var ga=bt,F="o-multiselect",fa="a-checkbox",xa="a-text-input",gt="prev",de="next",Fe="Enter",ya=" ",ft="Escape",_a="ArrowUp",xt="ArrowDown",yt="Tab",_t={renderTags:!0,maxSelections:5};function ce(a){a.classList.add(F);let e=q(a,F),t=!1,r,i,o,l,d,c,p,m,f,x,_,j=[],S;function E(){_.classList.remove("u-no-results"),_.classList.add("u-filtered");let n=o.getLastFilterIndices();for(let s=0,h=n.length;s<h;s++)j[n[s]].classList.remove("u-filter-match");n=o.getFilterIndices();for(let s=0,h=n.length;s<h;s++)j[n[s]].classList.add("u-filter-match")}function T(){_.classList.remove("u-filtered","u-no-results");for(let n=0,s=_.children.length;n<s;n++)_.children[n].classList.remove("u-filter-match");o.clearFilter()}function H(){_.classList.add("u-no-results"),_.classList.remove("u-filtered")}function G(n){return n.length>0?(E(),!0):(H(),!1)}function O(n){T(),o.resetIndex();let s=o.filterIndices(n);G(s)}function g(){return c.classList.add("u-active"),x.classList.remove("u-invisible"),x.setAttribute("aria-hidden",!1),S.dispatchEvent("expandbegin",{target:S}),S}function w(){return c.classList.remove("u-active"),x.classList.add("u-invisible"),x.setAttribute("aria-hidden",!0),o.resetIndex(),S.dispatchEvent("collapsebegin",{target:S}),S}function L(n){n===de?o.setIndex(o.getIndex()+1):n===gt&&o.setIndex(o.getIndex()-1);let s=o.getIndex();if(s>-1){let h=s,u=o.getFilterIndices();u.length>0&&(h=u[s]);let U=o.getOption(h).value,kt=_.querySelector('[data-option="'+U+'"]').querySelector("input");t=!0,kt.focus()}else t=!1,f.focus()}function y(){f.value="",T()}function z(n){let s=n.target;s.tagName==="BUTTON"&&(n.preventDefault(),s.removeEventListener("click",z),s.querySelector("label").click())}function N(n){if(n.key===ya||n.key===Fe){let s=n.target.querySelector("label");_.querySelector("#"+s.getAttribute("for")).click()}}function R(n){return r+"-"+n.value.trim().replace(/[^\w]/g,"-").toLowerCase()}function W(n,s){let h=R(s),u=$("li",null,{"data-option":s.value}),k=$("button",u,{type:"button",class:"a-tag-filter",innerHTML:"<label for="+h+">"+s.text+ga+"</label>"});n.appendChild(u),k.addEventListener("click",z),k.addEventListener("keydown",N)}function oe(n){let s=o.getOption(n)||o.getOption(o.getIndex());if(s){if(s.checked){_.classList.contains("u-max-selections")&&_.classList.remove("u-max-selections");let h='[data-option="'+s.value+'"]',u=p.querySelector(h);typeof u!="undefined"&&u&&(p==null||p.removeChild(u))}else d!=null&&d.renderTags&&p&&W(p,s);o.toggleOption(n),o.isAtMaxSelections()&&_.classList.add("u-max-selections"),S.dispatchEvent("selectionsupdated",{target:S})}o.resetIndex(),t=!1,x.getAttribute("aria-hidden")==="false"&&f.focus()}function fe(n){oe(Number(n.target.getAttribute("data-index"))),y()}function xe(){m.addEventListener("mousemove",function(h){let u=h.target;h.offsetX>u.offsetWidth-35?u.style.cursor="pointer":u.style.cursor="auto"}),m.addEventListener("mouseup",function(h){let u=h.target;h.offsetX>u.offsetWidth-35&&x.offsetHeight===140&&f.blur()}),f.addEventListener("input",function(){O(this.value)}),f.addEventListener("focus",function(){x.getAttribute("aria-hidden")==="true"&&g()}),f.addEventListener("blur",function(){!t&&x.getAttribute("aria-hidden")==="false"&&w()}),f.addEventListener("keydown",function(h){let u=h.key;x.getAttribute("aria-hidden")==="true"&&u!==yt&&g(),u===Fe?(h.preventDefault(),L(de)):u===ft?(y(),w()):u===xt?L(de):u===yt&&!h.shiftKey&&x.getAttribute("aria-hidden")==="false"&&w()}),_.addEventListener("mousedown",function(){t=!0}),_.addEventListener("keydown",function(h){let u=h.key,k=h.target,U=k.checked;if(u===Fe){h.preventDefault(),k.checked=!U;let V=new Event("change",{bubbles:!1,cancelable:!0});k.dispatchEvent(V)}else u===ft?(f.focus(),w()):u===_a?L(gt):u===xt&&L(de)}),x.addEventListener("mousedown",function(h){h.target.tagName==="LABEL"&&(t=!0)});let n=_.querySelectorAll("input");for(let h=0,u=n.length;h<u;h++)n[h].addEventListener("change",fe);let s=p.querySelectorAll("button");for(let h=0,u=s.length;h<u;h++)s[h].addEventListener("click",z),s[h].addEventListener("keydown",N)}function ie(){c=document.createElement("div"),c.className=F,p=$("ul",null,{className:"m-tag-group"}),m=$("header",c,{className:F+"__header"}),f=$("input",m,{className:F+"__search "+xa,type:"text",placeholder:i||"Select up to five",id:e.id,autocomplete:"off"}),x=$("fieldset",c,{className:F+"__fieldset u-invisible","aria-hidden":"true"});let n=F+"__options";o.isAtMaxSelections()&&(n+=" u-max-selections"),_=$("ul",x,{className:n});let s,h,u;for(let k=0,U=l.length;k<U;k++){s=l[k],h=R(s),u=o.getOption(k).checked;let V=$("li",_,{"data-option":s.value,"data-cy":"multiselect-option",class:"m-form-field m-form-field--checkbox"});$("input",V,{id:h,type:"checkbox",value:s.value,name:r,class:fa+" "+F+"__checkbox",checked:u,"data-index":k}),$("label",V,{for:h,textContent:s.text,className:F+"__label a-label"}),j.push(V),u&&(d!=null&&d.renderTags)&&W(p,s)}return c.insertBefore(p,m),e.parentNode.insertBefore(c,e),c.appendChild(e),c}function ye(n=_t){if(!M(e))return this;if(He())return this;if(S=this,r=e.name||e.id,i=e.getAttribute("placeholder"),l=e.options||[],d=ve(ve({},_t),n),l.length>0){o=new ut(l,r,d).init();let s=ie();e.parentNode.removeChild(e),e=s,M(e),xe()}return this}function _e(){return o}this.init=ye,this.expand=g,this.collapse=w;let J=new D;return this.addEventListener=J.addEventListener,this.removeEventListener=J.removeEventListener,this.dispatchEvent=J.dispatchEvent,this.getModel=_e,this.updateSelections=oe,this.selectionClickHandler=z,this.selectionKeyDownHandler=N,this}ce.BASE_CLASS=F;ce.init=a=>C(`.${F}`,ce,void 0,a);var Ve={};b(Ve,{default:()=>wa});var wa={};var Ge={};b(Ge,{default:()=>Sa});var Sa={};var Re={};b(Re,{default:()=>La});var La={};var Ue={};b(Ue,{default:()=>Aa});var Aa={};var Pe={};b(Pe,{default:()=>Ta});var Ta={};var Xe={};b(Xe,{default:()=>Oa});var Oa={};var Ke={};b(Ke,{default:()=>Ba});var Ba={};var Je={};b(Je,{default:()=>Na});var Na={};var Ye={};b(Ye,{default:()=>Ca});var Ca={};var We={};b(We,{default:()=>Fa});var Fa={};var Ze={};b(Ze,{default:()=>Va});var Va={};var Qe={};b(Qe,{default:()=>Ra});var Ra={};var et={};b(et,{default:()=>Pa});var Pa={};var tt={};b(tt,{default:()=>Ka});var Ka={};var at={};b(at,{default:()=>Ya});var Ya={};var ot={};b(ot,{default:()=>Za});var Za={};var it={};b(it,{default:()=>eo});var eo={};var rt={};b(rt,{default:()=>ao});var ao={};var nt={};b(nt,{default:()=>io});var io={};var lt={};b(lt,{default:()=>no});var no={};function me(a,e){let t;if(Y(a,e))return t=a,t;if(a){let r="["+B+"="+e+"]";t=a.querySelector(r)}if(!t){let r=e+" behavior not found on passed DOM node!";throw new Error(r)}return t}var lo=Object.prototype.toString;var so=Array.isArray||function(e){return lo.call(e)==="[object Array]"};function He(){return!!new RegExp(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i).test(navigator.userAgent)}var ee=se+"flyout-menu",co="["+B+"="+ee;function P(a,e=!0){let t=me(a,ee),r=H(a),i=me(a,ee+"_content"),o=0,l=0,d=1,c=2,p=3,m,f,x,_=W.bind(this),j=R.bind(this),S,E=!0,T=!1;function H(n){let s=[],h=n.querySelectorAll(`${co}_trigger]`),u,k,U;for(let V=h.length>>>0;V--;){for(U=!1,u=h[V],k=u.parentElement;k!==n;)k.getAttribute(B)&&k.getAttribute(B).split(" ").indexOf(ee)!==-1?(U=!0,k=n):k=k.parentElement;U||s.unshift(h[V])}return s}function G(n=!1){return o=n?p:l,r.forEach(s=>{O("expanded",s,n),s.addEventListener("click",y.bind(this)),s.addEventListener("touchstart",g,{passive:!0}),s.addEventListener("mouseover",w.bind(this)),s.addEventListener("mouseout",L.bind(this))}),i.setAttribute("data-open",n?"true":"false"),e&&!n&&i.setAttribute("hidden",""),ie(),this}function O(n,s,h){let u=String(h);return s.setAttribute("aria-"+n,u),u}function g(){T=!0}function w(n){E||(T||this.dispatchEvent("triggerover",{target:this,trigger:n.target,type:"triggerover"}),T=!1)}function L(n){E||this.dispatchEvent("triggerout",{target:this,trigger:n.target,type:"triggerout"})}function y(n){if(!E)switch(this.dispatchEvent("triggerclick",{target:this,trigger:n.target,type:"triggerclick"}),n.preventDefault(),o){case l:case d:this.expand();break;case c:case p:this.collapse();break}}function z(){if(m==null||m.halt(),o===c||o===p)return this;if(o=c,e&&i.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!f||!x)return j(),this;let n=m==null?void 0:m.isAnimated();return n&&m.addEventListener(v.END_EVENT,j),f(),n||j(),this}function N(){if(m==null||m.halt(),o===d||o===l)return this;for(let s=0,h=r.length;s<h;s++)O("expanded",r[s],!1);if(i.setAttribute("data-open","false"),o=d,this.dispatchEvent("collapsebegin",{target:this,type:"collapsebegin"}),!x||!f)return _(),this;let n=m==null?void 0:m.isAnimated();return n&&m.addEventListener(v.END_EVENT,_),x(),n||_(),this}function R(){o=p,i.setAttribute("data-open","true"),m&&m.removeEventListener(v.END_EVENT,j),this.dispatchEvent("expandend",{target:this,type:"expandend"});for(let n=0,s=r.length;n<s;n++)O("expanded",r[n],!0)}function W(){o=l,e&&i.setAttribute("hidden",""),m&&m.removeEventListener(v.END_EVENT,_),this.dispatchEvent("collapseend",{target:this,type:"collapseend"})}function oe(n,s,h){m=n,s&&s!==x&&(x=s),h&&h!==f&&(f=h)}function fe(){m&&m.remove();let n;m=n,f=n,x=n}function xe(){return{container:t,content:i,trigger:r}}function ie(){return E&&(E=!1),!E}function ye(){return E||(E=!0),E}function _e(n){return S=n,this}let J=new D;return this.addEventListener=J.addEventListener,this.removeEventListener=J.removeEventListener,this.dispatchEvent=J.dispatchEvent,this.init=G,this.expand=z,this.collapse=N,this.setTransition=oe,this.clearTransition=fe,this.getData=()=>S,this.getTransition=()=>m,this.getDom=xe,this.isAnimating=()=>o===c||o===d,this.isExpanded=()=>o===p,this.resume=ie,this.setData=_e,this.suspend=ye,P.BASE_CLASS=ee,this}var he={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function vt(a){let e=new D,t=new v(a,he,this);function r(l){return t.init(l),this}function i(){return t.applyClass(he.ALPHA_100),this}function o(){return t.applyClass(he.ALPHA_0),this}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.remove=t.remove,this.setElement=t.setElement,this.fadeIn=i,this.fadeOut=o,this.init=r,this}vt.CLASSES=he;function v(a,e,t){let r=e,i=a;if(!t)throw new Error("Child transition argument must be defined!");let o=t,l,d,c,p=!1,m=!1,f=!1;if(typeof r.CSS_PROPERTY=="undefined"||typeof r.BASE_CLASS=="undefined")throw new Error("Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition.");function x(){d&&p?(i.addEventListener(d,c),o.dispatchEvent(v.BEGIN_EVENT,{target:o,type:v.BEGIN_EVENT}),i.classList.add(v.ANIMATING_CLASS),m=!0):(o.dispatchEvent(v.BEGIN_EVENT,{target:o,type:v.BEGIN_EVENT}),c())}function _(){i.removeEventListener(d,c)}function j(y){return y&&y.propertyName!==r.CSS_PROPERTY?!1:(_(),i.classList.remove(v.ANIMATING_CLASS),o.dispatchEvent(v.END_EVENT,{target:o,type:v.END_EVENT}),m=!1,!0)}function S(){let y;for(y in r)({}).hasOwnProperty.call(r,y)&&r[y]!==r.BASE_CLASS&&i.classList.contains(r[y])&&i.classList.remove(r[y])}function E(){m&&(i.style.webkitTransitionDuration="0",i.style.mozTransitionDuration="0",i.style.oTransitionDuration="0",i.style.transitionDuration="0",i.removeEventListener(d,c),c(),i.style.webkitTransitionDuration="",i.style.mozTransitionDuration="",i.style.oTransitionDuration="",i.style.transitionDuration="")}function T(){E(),S(),i.classList.remove(r.BASE_CLASS)}function H(){i.classList.remove(v.NO_ANIMATION_CLASS),p=!0}function G(){i.classList.add(v.NO_ANIMATION_CLASS),p=!1}function O(y){if(!y){let W="Element does not have TransitionEnd event. It may be null!";throw new Error(W)}let z,N={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},R;for(R in N)if({}.hasOwnProperty.call(N,R)&&typeof y.style[R]!="undefined"){z=N[R];break}return z}function g(y){T(),H(),i=y,i.classList.add(r.BASE_CLASS),d=O(i)}function w(y){if(p=!i.classList.contains(v.NO_ANIMATION_CLASS),c=j.bind(this),g(i),!y)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return i.classList.add(y),this}function L(y){return f||(S(),f=!0),i.classList.contains(y)?!1:(_(),i.classList.remove(l),l=y,x(),i.classList.add(l),!0)}return this.animateOff=G,this.animateOn=H,this.applyClass=L,this.halt=E,this.init=w,this.isAnimated=()=>p,this.remove=T,this.setElement=g,this}v.BEGIN_EVENT="transitionbegin";v.END_EVENT="transitionend";v.NO_ANIMATION_CLASS="u-no-animation";v.ANIMATING_CLASS="u-is-animating";var te={CSS_PROPERTY:"max-height",BASE_CLASS:"u-max-height-transition",MH_DEFAULT:"u-max-height-default",MH_SUMMARY:"u-max-height-summary",MH_ZERO:"u-max-height-zero"};function I(a){let e=new D,t=new v(a,te,this),r=0;function i(){let x=a.scrollHeight+"px";a.style.maxHeight=x}function o(){window.removeEventListener("load",o),i()}function l(f){return t.init(f),window.addEventListener("load",o),window.addEventListener("resize",()=>{i()}),this}function d(){return i(),t.applyClass(te.MH_DEFAULT),(!r||a.scrollHeight>r)&&(r=a.scrollHeight),this}function c(){return t.applyClass(te.MH_SUMMARY),r=a.scrollHeight,this}function p(){return t.applyClass(te.MH_ZERO),r=a.scrollHeight,this}function m(){return a.style.maxHeight="",t.remove()}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.setElement=t.setElement,this.refresh=i,this.remove=m,this.init=l,this.maxHeightDefault=d,this.maxHeightSummary=c,this.maxHeightZero=p,this}I.CLASSES=te;var X={CSS_PROPERTY:"transform",BASE_CLASS:"u-move-transition",MOVE_TO_ORIGIN:"u-move-to-origin",MOVE_LEFT:"u-move-left",MOVE_LEFT_2X:"u-move-left-2x",MOVE_LEFT_3X:"u-move-left-3x",MOVE_RIGHT:"u-move-right",MOVE_UP:"u-move-up"};function wt(a){let e=new D,t=new v(a,X,this);function r(c){return t.init(c),this}function i(){return t.applyClass(X.MOVE_TO_ORIGIN),this}function o(c){c=c||1;let p=[X.MOVE_LEFT,X.MOVE_LEFT_2X,X.MOVE_LEFT_3X];return t.applyClass(p[c-1]),this}function l(){return t.applyClass(X.MOVE_RIGHT),this}function d(){return t.applyClass(X.MOVE_UP),this}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=t.animateOff,this.animateOn=t.animateOn,this.halt=t.halt,this.isAnimated=t.isAnimated,this.setElement=t.setElement,this.remove=t.remove,this.init=r,this.moveLeft=()=>o(1),this.moveLeft2=()=>o(2),this.moveLeft3=()=>o(3),this.moveRight=l,this.moveToOrigin=i,this.moveUp=d,this}wt.CLASSES=X;var st={};b(st,{default:()=>po});var po={};var Z="o-expandable";function K(a){let e=q(a,Z),t,r,i,o,l;function d(){if(!M(e))return this;t=e.querySelector(`.${Z}__header`),r=e.querySelector(`.${Z}__content`),i=e.querySelector(`.${Z}__label`);let m=e.classList.contains(`${Z}--onload-open`);A(e,"behavior_flyout-menu"),A(t,"behavior_flyout-menu_trigger"),A(r,"behavior_flyout-menu_content");let f=m?I.CLASSES.MH_DEFAULT:I.CLASSES.MH_ZERO;return o=new I(r).init(f),l=new P(e),l.setTransition(o,o.maxHeightZero,o.maxHeightDefault),l.init(m),l.addEventListener("expandbegin",()=>{r.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),l.addEventListener("collapseend",()=>{r.classList.add("u-hidden")}),this}function c(){return i.textContent.trim()}this.init=d,this.expand=()=>l.expand(),this.collapse=()=>l.collapse(),this.isExpanded=()=>l.isExpanded(),this.refresh=()=>l.getTransition().refresh(),this.getLabelText=c;let p=new D;return this.addEventListener=p.addEventListener,this.removeEventListener=p.removeEventListener,this.dispatchEvent=p.dispatchEvent,this}K.BASE_CLASS=Z;K.init=a=>C(`.${K.BASE_CLASS}`,K,a);var dt={};b(dt,{default:()=>bo});var bo={};var pe="o-expandable-group";function ue(a){let e=q(a,pe),t=e.classList.contains(`${pe}--accordion`),r,i;function o(d){let c=d.target;i&&i!==c&&i.collapse(),i=c}function l(d){return M(e)?(t&&(r=d,r.forEach(c=>{c.addEventListener("expandbegin",o)})),this):this}return this.init=l,this}ue.BASE_CLASS=pe;ue.init=a=>{(a||document).querySelectorAll(`.${pe}`).forEach(r=>{let i=C(`.${K.BASE_CLASS}`,K,r);new ue(r).init(i)})};var ct={};b(ct,{default:()=>fo});var fo={};var Q="o-summary";function be(a){let e=q(a,Q),t=e.classList.contains(`${Q}--mobile`),r=e.querySelector(`.${Q}__content`),i=e.querySelector(`.${Q}__btn`),o,l,d;function c(){return M(e)?(window.addEventListener("load",p),this):this}function p(){window.removeEventListener("load",p),d=!_(),A(e,"behavior_flyout-menu"),A(r,"behavior_flyout-menu_content"),A(i,"behavior_flyout-menu_trigger"),l=new P(e,!1),o=new I(r),o.init(d?I.CLASSES.MH_SUMMARY:I.CLASSES.MH_DEFAULT),l.setTransition(o,o.maxHeightSummary,o.maxHeightDefault),l.addEventListener("triggerclick",j),l.init(),x(),window.addEventListener("resize",x),"onorientationchange"in window&&window.addEventListener("orientationchange",x),e.addEventListener("focusin",m),r.addEventListener("click",f)}function m(g){!d&&g.target!==i&&(i.click(),e.removeEventListener("focusin",m))}function f(g){g.target.tagName!=="A"&&l.isExpanded()&&o.refresh()}function x(){_()?G():H()}function _(){return t&&!ke(le)||r.scrollHeight<=88}function j(){l.addEventListener("expandend",S)}function S(){T(),window.removeEventListener("resize",x),window.removeEventListener("orientationchange",x),l.removeEventListener("expandend",S),l.suspend(),o.remove()}function E(){i.classList.remove("u-hidden")}function T(){i.classList.add("u-hidden")}function H(){return d&&(l.collapse(),o.animateOn(),E(),d=!1),!d}function G(){return d||(o.animateOff(),l.expand(),T(),d=!0),d}let O=new D;return this.addEventListener=O.addEventListener,this.removeEventListener=O.removeEventListener,this.dispatchEvent=O.dispatchEvent,this.init=c,this}be.BASE_CLASS=Q;be.init=a=>C(`.${Q}`,be,a);var ae="o-summary-minimal";function ge(a){let e=q(a,ae),t=e.querySelector(`.${ae}__content`),r=e.querySelector(`.${ae}__btn`),i,o;function l(){return M(e)?(A(e,"behavior_flyout-menu"),A(t,"behavior_flyout-menu_content"),A(r,"behavior_flyout-menu_trigger"),window.addEventListener("load",d),this):this}function d(){window.removeEventListener("load",d),o=new P(e,!1),i=new I(t),i.init(I.CLASSES.MH_SUMMARY),o.setTransition(i,i.maxHeightSummary,i.maxHeightDefault),o.init(),e.addEventListener("focusin",c),t.addEventListener("click",p),o.collapse(),i.animateOn()}function c(f){f.target!==r&&(r.click(),e.removeEventListener("focusin",c))}function p(f){f.target.tagName!=="A"&&o.isExpanded()&&i.refresh()}let m=new D;return this.addEventListener=m.addEventListener,this.removeEventListener=m.removeEventListener,this.dispatchEvent=m.dispatchEvent,this.init=l,this}ge.BASE_CLASS=ae;ge.init=a=>C(`.${ae}`,ge,a);})();
2
2
  //# sourceMappingURL=index.js.map