@cfpb/cfpb-design-system 3.12.1 → 3.13.0

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 (69) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/dist/base/index.css +1 -1
  3. package/dist/base/index.css.map +2 -2
  4. package/dist/base/index.js +1 -1
  5. package/dist/base/index.js.map +1 -1
  6. package/dist/components/cfpb-buttons/index.css +1 -1
  7. package/dist/components/cfpb-buttons/index.css.map +2 -2
  8. package/dist/components/cfpb-buttons/index.js +1 -1
  9. package/dist/components/cfpb-buttons/index.js.map +1 -1
  10. package/dist/components/cfpb-expandables/index.css +1 -2
  11. package/dist/components/cfpb-expandables/index.css.map +3 -3
  12. package/dist/components/cfpb-expandables/index.js +1 -1
  13. package/dist/components/cfpb-expandables/index.js.map +4 -4
  14. package/dist/components/cfpb-forms/index.css +1 -2
  15. package/dist/components/cfpb-forms/index.css.map +3 -3
  16. package/dist/components/cfpb-forms/index.js +1 -1
  17. package/dist/components/cfpb-forms/index.js.map +4 -4
  18. package/dist/components/cfpb-icons/index.css +1 -1
  19. package/dist/components/cfpb-icons/index.css.map +2 -2
  20. package/dist/components/cfpb-icons/index.js +1 -1
  21. package/dist/components/cfpb-icons/index.js.map +1 -1
  22. package/dist/components/cfpb-layout/index.css +1 -1
  23. package/dist/components/cfpb-layout/index.css.map +2 -2
  24. package/dist/components/cfpb-layout/index.js +1 -1
  25. package/dist/components/cfpb-layout/index.js.map +1 -1
  26. package/dist/components/cfpb-notifications/index.css +1 -1
  27. package/dist/components/cfpb-notifications/index.css.map +2 -2
  28. package/dist/components/cfpb-notifications/index.js +1 -1
  29. package/dist/components/cfpb-notifications/index.js.map +1 -1
  30. package/dist/components/cfpb-pagination/index.css +1 -1
  31. package/dist/components/cfpb-pagination/index.css.map +2 -2
  32. package/dist/components/cfpb-pagination/index.js +1 -1
  33. package/dist/components/cfpb-pagination/index.js.map +1 -1
  34. package/dist/components/cfpb-tables/index.css +1 -1
  35. package/dist/components/cfpb-tables/index.css.map +2 -2
  36. package/dist/components/cfpb-tables/index.js +1 -1
  37. package/dist/components/cfpb-tables/index.js.map +1 -1
  38. package/dist/components/cfpb-tooltips/index.css +1 -2
  39. package/dist/components/cfpb-tooltips/index.css.map +3 -3
  40. package/dist/components/cfpb-tooltips/index.js +1 -1
  41. package/dist/components/cfpb-tooltips/index.js.map +4 -4
  42. package/dist/components/cfpb-typography/index.css +1 -1
  43. package/dist/components/cfpb-typography/index.css.map +2 -2
  44. package/dist/components/cfpb-typography/index.js +1 -1
  45. package/dist/components/cfpb-typography/index.js.map +1 -1
  46. package/dist/elements/cfpb-button/index.js +30 -0
  47. package/dist/elements/cfpb-button/index.js.map +7 -0
  48. package/dist/elements/cfpb-file-upload/index.js +39 -0
  49. package/dist/elements/cfpb-file-upload/index.js.map +7 -0
  50. package/dist/index.css +1 -1
  51. package/dist/index.css.map +2 -2
  52. package/dist/index.js +39 -1
  53. package/dist/index.js.map +4 -4
  54. package/dist/utilities/index.css +1 -2
  55. package/dist/utilities/index.css.map +3 -3
  56. package/dist/utilities/index.js +1 -1
  57. package/dist/utilities/index.js.map +4 -4
  58. package/package.json +1 -1
  59. package/src/components/cfpb-tooltips/index.js +1 -1
  60. package/src/elements/cfpb-button/cfpb-button.component.scss +8 -0
  61. package/src/elements/cfpb-button/index.js +53 -0
  62. package/src/elements/cfpb-file-upload/cfpb-file-upload.component.scss +14 -0
  63. package/src/elements/cfpb-file-upload/index.js +81 -0
  64. package/src/index.js +3 -0
  65. package/src/utilities/behavior/behavior.js +2 -1
  66. package/src/utilities/behavior/flyout-menu.js +4 -7
  67. package/src/utilities/transition/alpha-transition.js +2 -1
  68. package/src/utilities/transition/max-height-transition.js +2 -1
  69. package/src/utilities/transition/move-transition.js +2 -1
@@ -1,2 +1,2 @@
1
- (()=>{var br=Object.defineProperty;var ur=Object.getOwnPropertySymbols;var Sr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable;var hr=(a,e,r)=>e in a?br(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r,_e=(a,e)=>{for(var r in e||(e={}))Sr.call(e,r)&&hr(a,r,e[r]);if(ur)for(var r of ur(e))Er.call(e,r)&&hr(a,r,e[r]);return a};var m=(a,e)=>{for(var r in e)br(a,r,{get:e[r],enumerable:!0})};var we={};m(we,{default:()=>Dr});var Dr={};var ie={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 Ar(a,e){let r=a.min,i=a.max;ne()>0&&ne()!==16&&(r=r/16*ne(),i=i/16*ne());let t=r||0,l=i||Number.POSITIVE_INFINITY;return t<=e&&e<=l}function jr(a){let e={};a=a||window.innerWidth;let r;for(r in ie)e[r]=Ar(ie[r],a);return e}var le="mobile",Tr="tablet",Or="desktop";function ke(a){let e=!1,r=jr();return(a===le&&r.bpXS||a===Tr&&r.bpSM||a===Or&&(r.bpMED||r.bpLG||r.bpXL))&&(e=!0),e}var B="data-js-hook",de="behavior_",Se="state_";function D(){let a={};function e(o,t){return{}.hasOwnProperty.call(a,o)?a[o].push(t):a[o]=[t],this}function r(o,t){if(!{}.hasOwnProperty.call(a,o))return this;let l=a[o].indexOf(t);return l!==-1&&a[o].splice(l,1),this}function i(o,t){if(!{}.hasOwnProperty.call(a,o))return this;t=t||{};let l=a[o];for(let c=0,s=l.length;c<s;c++)l[c].call(this,t);return this}return this.addEventListener=e,this.removeEventListener=r,this.dispatchEvent=i,this.getRegisteredEvents=()=>a,this}function Y(a,e){if(!a)return!1;let r=a.getAttribute(B);return r?(r=r.split(" "),r.indexOf(e)>-1):!1}function A(a,e){if(Y(a,e))return e;if(e.indexOf(" ")!==-1){let i=B+" values cannot contain spaces!";throw new Error(i)}let r=a.getAttribute(B);return r!==null&&(e=r+" "+e),a.setAttribute(B,e),e}var Ee=Se+"atomic_init";function zr(a,e){if(!a||!a.classList){let r=a+' is not valid. Check that element is a DOM node with class "'+e+'"';throw new Error(r)}return a}function Ir(a,e){let r=a.classList.contains(e)?a:a.querySelector("."+e);if(!r){let i=e+" not found on or in passed DOM node.";throw new Error(i)}return r}function q(a,e){return zr(a,e),Ir(a,e)}function M(a){return Y(a,Ee)?!1:(A(a,Ee),!0)}function C(a,e,r,i={}){let t=(r||document).querySelectorAll(a),l=[],c,s;for(let b=0,u=t.length;b<u;b++)s=t[b],Y(s,Ee)===!1&&(c=new e(s),c.init(i),l.push(c));return l}var Le={};m(Le,{default:()=>Mr});var Mr={};var De={};m(De,{default:()=>qr});var qr={};var Ae={};m(Ae,{default:()=>$r});var $r={};var je={};m(je,{default:()=>Hr});var Hr={};var Te={};m(Te,{default:()=>Gr});var Gr={};var Oe={};m(Oe,{default:()=>Ur});var Ur={};var ze={};m(ze,{default:()=>Xr});var Xr={};var Ie={};m(Ie,{default:()=>Jr});var Jr={};var Be={};m(Be,{default:()=>Wr});var Wr={};var Me={};m(Me,{default:()=>Qr});var Qr={};var Ne={};m(Ne,{default:()=>ra});var ra={};var qe={};m(qe,{default:()=>ta});var ta={};var Ce={};m(Ce,{default:()=>ia});var ia={};var $e={};m($e,{default:()=>la});var la={};var da;function ca(a){return a.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function sa(a,e){return RegExp(ca(e.trim()),"i").test(a)}function ua(a,e,r){let i=a,o=e,t=(r==null?void 0:r.maxSelections)||5,l=[],c=[],s=[],b=[],u=-1;function g(f){return o+"-"+f.value.trim().replace(/\s+/g,"-").toLowerCase()}function v(){return c.length>=t}function x(f){let w,L=[],y=!1;for(let O=0,N=f.length;O<N;O++)w=f[O],y=v()?!1:w.defaultSelected,L.push({id:g(w),value:w.value,text:w.text,checked:y}),y&&c.push(O);return L}function j(){return l=x(i),this}function S(f){return l[f].checked=!l[f].checked,c.length<t&&l[f].checked?(c.push(f),c.sort(),!0):(l[f].checked=!1,c=c.filter(function(w){return w!==f}),!1)}function E(f,w,L,y){return sa(w.text,y)&&f.push(L),f}function T(f){return Object.prototype.toString.call(f)!=="[object String]"&&(f=""),b=s,l.length>0&&(s=l.reduce(function(w,L,y){return E(w,L,y,f)},[])),u=-1,s}function H(f){return l[f]}function G(f){let w=s.length,L=w===0?l.length:w;f<0?u=-1:f>=L?u=L-1:u=f}function z(){return u}return this.init=j,this.toggleOption=S,this.getSelectedIndices=function(){return c},this.isAtMaxSelections=v,this.filterIndices=T,this.clearFilter=function(){return s=b=[],da},this.getFilterIndices=function(){return s},this.getLastFilterIndices=function(){return b},this.getIndex=z,this.setIndex=G,this.resetIndex=function(){return u=-1,u},this.getOption=H,this}var pr=ua;function $(a,e,r){let i=document.createElement(a);return Object.keys(r).forEach(o=>{let t=r[o];o in i?i[o]=t:i.setAttribute(o,t)}),e&&e.appendChild(i),i}var mr='<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 fa=mr,F="o-multiselect",ga="a-checkbox",va="a-text-input",fr="prev",ce="next",Fe="Enter",ya=" ",gr="Escape",xa="ArrowUp",vr="ArrowDown",yr="Tab",xr={renderTags:!0,maxSelections:5};function se(a){a.classList.add(F);let e=q(a,F),r=!1,i,o,t,l,c,s,b,u,g,v,x,j=[],S;function E(){x.classList.remove("u-no-results"),x.classList.add("u-filtered");let n=t.getLastFilterIndices();for(let d=0,h=n.length;d<h;d++)j[n[d]].classList.remove("u-filter-match");n=t.getFilterIndices();for(let d=0,h=n.length;d<h;d++)j[n[d]].classList.add("u-filter-match")}function T(){x.classList.remove("u-filtered","u-no-results");for(let n=0,d=x.children.length;n<d;n++)x.children[n].classList.remove("u-filter-match");t.clearFilter()}function H(){x.classList.add("u-no-results"),x.classList.remove("u-filtered")}function G(n){return n.length>0?(E(),!0):(H(),!1)}function z(n){T(),t.resetIndex();let d=t.filterIndices(n);G(d)}function f(){return s.classList.add("u-active"),v.classList.remove("u-invisible"),v.setAttribute("aria-hidden",!1),S.dispatchEvent("expandbegin",{target:S}),S}function w(){return s.classList.remove("u-active"),v.classList.add("u-invisible"),v.setAttribute("aria-hidden",!0),t.resetIndex(),S.dispatchEvent("collapsebegin",{target:S}),S}function L(n){n===ce?t.setIndex(t.getIndex()+1):n===fr&&t.setIndex(t.getIndex()-1);let d=t.getIndex();if(d>-1){let h=d,p=t.getFilterIndices();p.length>0&&(h=p[d]);let U=t.getOption(h).value,kr=x.querySelector('[data-option="'+U+'"]').querySelector("input");r=!0,kr.focus()}else r=!1,g.focus()}function y(){g.value="",T()}function O(n){let d=n.target;d.tagName==="BUTTON"&&(n.preventDefault(),d.removeEventListener("click",O),d.querySelector("label").click())}function N(n){if(n.key===ya||n.key===Fe){let d=n.target.querySelector("label");x.querySelector("#"+d.getAttribute("for")).click()}}function R(n){return i+"-"+n.value.trim().replace(/[^\w]/g,"-").toLowerCase()}function W(n,d){let h=R(d),p=$("li",null,{"data-option":d.value}),k=$("button",p,{type:"button",class:"a-tag-filter",innerHTML:"<label for="+h+">"+d.text+fa+"</label>"});n.appendChild(p),k.addEventListener("click",O),k.addEventListener("keydown",N)}function te(n){let d=t.getOption(n)||t.getOption(t.getIndex());if(d){if(d.checked){x.classList.contains("u-max-selections")&&x.classList.remove("u-max-selections");let h='[data-option="'+d.value+'"]',p=b.querySelector(h);typeof p!="undefined"&&p&&(b==null||b.removeChild(p))}else c!=null&&c.renderTags&&b&&W(b,d);t.toggleOption(n),t.isAtMaxSelections()&&x.classList.add("u-max-selections"),S.dispatchEvent("selectionsupdated",{target:S})}t.resetIndex(),r=!1,v.getAttribute("aria-hidden")==="false"&&g.focus()}function ge(n){te(Number(n.target.getAttribute("data-index"))),y()}function ve(){u.addEventListener("mousemove",function(h){let p=h.target;h.offsetX>p.offsetWidth-35?p.style.cursor="pointer":p.style.cursor="auto"}),u.addEventListener("mouseup",function(h){let p=h.target;h.offsetX>p.offsetWidth-35&&v.offsetHeight===140&&g.blur()}),g.addEventListener("input",function(){z(this.value)}),g.addEventListener("focus",function(){v.getAttribute("aria-hidden")==="true"&&f()}),g.addEventListener("blur",function(){!r&&v.getAttribute("aria-hidden")==="false"&&w()}),g.addEventListener("keydown",function(h){let p=h.key;v.getAttribute("aria-hidden")==="true"&&p!==yr&&f(),p===Fe?(h.preventDefault(),L(ce)):p===gr?(y(),w()):p===vr?L(ce):p===yr&&!h.shiftKey&&v.getAttribute("aria-hidden")==="false"&&w()}),x.addEventListener("mousedown",function(){r=!0}),x.addEventListener("keydown",function(h){let p=h.key,k=h.target,U=k.checked;if(p===Fe){h.preventDefault(),k.checked=!U;let V=new Event("change",{bubbles:!1,cancelable:!0});k.dispatchEvent(V)}else p===gr?(g.focus(),w()):p===xa?L(fr):p===vr&&L(ce)}),v.addEventListener("mousedown",function(h){h.target.tagName==="LABEL"&&(r=!0)});let n=x.querySelectorAll("input");for(let h=0,p=n.length;h<p;h++)n[h].addEventListener("change",ge);let d=b.querySelectorAll("button");for(let h=0,p=d.length;h<p;h++)d[h].addEventListener("click",O),d[h].addEventListener("keydown",N)}function oe(){s=document.createElement("div"),s.className=F,b=$("ul",null,{className:"m-tag-group"}),u=$("header",s,{className:F+"__header"}),g=$("input",u,{className:F+"__search "+va,type:"text",placeholder:o||"Select up to five",id:e.id,autocomplete:"off"}),v=$("fieldset",s,{className:F+"__fieldset u-invisible","aria-hidden":"true"});let n=F+"__options";t.isAtMaxSelections()&&(n+=" u-max-selections"),x=$("ul",v,{className:n});let d,h,p;for(let k=0,U=l.length;k<U;k++){d=l[k],h=R(d),p=t.getOption(k).checked;let V=$("li",x,{"data-option":d.value,"data-cy":"multiselect-option",class:"m-form-field m-form-field--checkbox"});$("input",V,{id:h,type:"checkbox",value:d.value,name:i,class:ga+" "+F+"__checkbox",checked:p,"data-index":k}),$("label",V,{for:h,textContent:d.text,className:F+"__label a-label"}),j.push(V),p&&(c!=null&&c.renderTags)&&W(b,d)}return s.insertBefore(b,u),e.parentNode.insertBefore(s,e),s.appendChild(e),s}function ye(n=xr){if(!M(e))return this;if(He())return this;if(S=this,i=e.name||e.id,o=e.getAttribute("placeholder"),l=e.options||[],c=_e(_e({},xr),n),l.length>0){t=new pr(l,i,c).init();let d=oe();e.parentNode.removeChild(e),e=d,M(e),ve()}return this}function xe(){return t}this.init=ye,this.expand=f,this.collapse=w;let J=new D;return this.addEventListener=J.addEventListener,this.removeEventListener=J.removeEventListener,this.dispatchEvent=J.dispatchEvent,this.getModel=xe,this.updateSelections=te,this.selectionClickHandler=O,this.selectionKeyDownHandler=N,this}se.BASE_CLASS=F;se.init=a=>C(`.${F}`,se,void 0,a);var Ve={};m(Ve,{default:()=>wa});var wa={};var Ge={};m(Ge,{default:()=>Sa});var Sa={};var Re={};m(Re,{default:()=>La});var La={};var Ue={};m(Ue,{default:()=>Aa});var Aa={};var Pe={};m(Pe,{default:()=>Ta});var Ta={};var Xe={};m(Xe,{default:()=>za});var za={};var Ke={};m(Ke,{default:()=>Ba});var Ba={};var Je={};m(Je,{default:()=>Na});var Na={};var Ye={};m(Ye,{default:()=>Ca});var Ca={};var We={};m(We,{default:()=>Fa});var Fa={};var Ze={};m(Ze,{default:()=>Va});var Va={};var Qe={};m(Qe,{default:()=>Ra});var Ra={};var er={};m(er,{default:()=>Pa});var Pa={};var rr={};m(rr,{default:()=>Ka});var Ka={};var ar={};m(ar,{default:()=>Ya});var Ya={};var tr={};m(tr,{default:()=>Za});var Za={};var or={};m(or,{default:()=>et});var et={};var ir={};m(ir,{default:()=>at});var at={};var nr={};m(nr,{default:()=>ot});var ot={};var lr={};m(lr,{default:()=>nt});var nt={};function ue(a,e){let r;if(Y(a,e))return r=a,r;if(a){let i="["+B+"="+e+"]";r=a.querySelector(i)}if(!r){let i=e+" behavior not found on passed DOM node!";throw new Error(i)}return r}var lt=Object.prototype.toString;var dt=Array.isArray||function(e){return lt.call(e)==="[object Array]"};function He(){return!!new RegExp(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i).test(navigator.userAgent)}var ee=de+"flyout-menu",ct="["+B+"="+ee;function P(a,e=!0){let r=ue(a,ee),i=H(a),o=ue(a,ee+"_content"),t=0,l=0,c=1,s=2,b=3,u,g,v,x=W.bind(this),j=R.bind(this),S,E=!0,T=!1;function H(n){let d=[],h=n.querySelectorAll(`${ct}_trigger]`),p,k,U;for(let V=h.length>>>0;V--;){for(U=!1,p=h[V],k=p.parentElement;k!==n;)k.getAttribute(B)&&k.getAttribute(B).split(" ").indexOf(ee)!==-1?(U=!0,k=n):k=k.parentElement;U||d.unshift(h[V])}return d}function G(n=!1){return t=n?b:l,i.forEach(d=>{z("expanded",d,n),d.addEventListener("click",y.bind(this)),d.addEventListener("touchstart",f,{passive:!0}),d.addEventListener("mouseover",w.bind(this)),d.addEventListener("mouseout",L.bind(this))}),o.setAttribute("data-open",n?"true":"false"),e&&!n&&o.setAttribute("hidden",""),oe(),this}function z(n,d,h){let p=String(h);return d.setAttribute("aria-"+n,p),p}function f(){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(),t){case l:case c:this.expand();break;case s:case b:this.collapse();break}}function O(){if(u==null||u.halt(),t===s||t===b)return this;if(t=s,e&&o.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!g||!v)return j(),this;let n=u==null?void 0:u.isAnimated();return n&&u.addEventListener(_.END_EVENT,j),g(),n||j(),this}function N(){if(u==null||u.halt(),t===c||t===l)return this;for(let d=0,h=i.length;d<h;d++)z("expanded",i[d],!1);if(o.setAttribute("data-open","false"),t=c,this.dispatchEvent("collapsebegin",{target:this,type:"collapsebegin"}),!v||!g)return x(),this;let n=u==null?void 0:u.isAnimated();return n&&u.addEventListener(_.END_EVENT,x),v(),n||x(),this}function R(){t=b,o.setAttribute("data-open","true"),u&&u.removeEventListener(_.END_EVENT,j),this.dispatchEvent("expandend",{target:this,type:"expandend"});for(let n=0,d=i.length;n<d;n++)z("expanded",i[n],!0)}function W(){t=l,e&&o.setAttribute("hidden",""),u&&u.removeEventListener(_.END_EVENT,x),this.dispatchEvent("collapseend",{target:this,type:"collapseend"})}function te(n,d,h){u=n,d&&d!==v&&(v=d),h&&h!==g&&(g=h)}function ge(){u&&u.remove();let n;u=n,g=n,v=n}function ve(){return{container:r,content:o,trigger:i}}function oe(){return E&&(E=!1),!E}function ye(){return E||(E=!0),E}function xe(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=O,this.collapse=N,this.setTransition=te,this.clearTransition=ge,this.getData=()=>S,this.getTransition=()=>u,this.getDom=ve,this.isAnimating=()=>t===s||t===c,this.isExpanded=()=>t===b,this.resume=oe,this.setData=xe,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 _r(a){let e=new D,r=new _(a,he,this);function i(l){return r.init(l),this}function o(){return r.applyClass(he.ALPHA_100),this}function t(){return r.applyClass(he.ALPHA_0),this}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=r.animateOff,this.animateOn=r.animateOn,this.halt=r.halt,this.isAnimated=r.isAnimated,this.remove=r.remove,this.setElement=r.setElement,this.fadeIn=o,this.fadeOut=t,this.init=i,this}_r.CLASSES=he;function _(a,e,r){let i=e,o=a;if(!r)throw new Error("Child transition argument must be defined!");let t=r,l,c,s,b=!1,u=!1,g=!1;if(typeof i.CSS_PROPERTY=="undefined"||typeof i.BASE_CLASS=="undefined")throw new Error("Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition.");function v(){c&&b?(o.addEventListener(c,s),t.dispatchEvent(_.BEGIN_EVENT,{target:t,type:_.BEGIN_EVENT}),o.classList.add(_.ANIMATING_CLASS),u=!0):(t.dispatchEvent(_.BEGIN_EVENT,{target:t,type:_.BEGIN_EVENT}),s())}function x(){o.removeEventListener(c,s)}function j(y){return y&&y.propertyName!==i.CSS_PROPERTY?!1:(x(),o.classList.remove(_.ANIMATING_CLASS),t.dispatchEvent(_.END_EVENT,{target:t,type:_.END_EVENT}),u=!1,!0)}function S(){let y;for(y in i)({}).hasOwnProperty.call(i,y)&&i[y]!==i.BASE_CLASS&&o.classList.contains(i[y])&&o.classList.remove(i[y])}function E(){u&&(o.style.webkitTransitionDuration="0",o.style.mozTransitionDuration="0",o.style.oTransitionDuration="0",o.style.transitionDuration="0",o.removeEventListener(c,s),s(),o.style.webkitTransitionDuration="",o.style.mozTransitionDuration="",o.style.oTransitionDuration="",o.style.transitionDuration="")}function T(){E(),S(),o.classList.remove(i.BASE_CLASS)}function H(){o.classList.remove(_.NO_ANIMATION_CLASS),b=!0}function G(){o.classList.add(_.NO_ANIMATION_CLASS),b=!1}function z(y){if(!y){let W="Element does not have TransitionEnd event. It may be null!";throw new Error(W)}let O,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"){O=N[R];break}return O}function f(y){T(),H(),o=y,o.classList.add(i.BASE_CLASS),c=z(o)}function w(y){if(b=!o.classList.contains(_.NO_ANIMATION_CLASS),s=j.bind(this),f(o),!y)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return o.classList.add(y),this}function L(y){return g||(S(),g=!0),o.classList.contains(y)?!1:(x(),o.classList.remove(l),l=y,v(),o.classList.add(l),!0)}return this.animateOff=G,this.animateOn=H,this.applyClass=L,this.halt=E,this.init=w,this.isAnimated=()=>b,this.remove=T,this.setElement=f,this}_.BEGIN_EVENT="transitionbegin";_.END_EVENT="transitionend";_.NO_ANIMATION_CLASS="u-no-animation";_.ANIMATING_CLASS="u-is-animating";var re={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,r=new _(a,re,this),i=0;function o(){let v=a.scrollHeight+"px";a.style.maxHeight=v}function t(){window.removeEventListener("load",t),o()}function l(g){return r.init(g),window.addEventListener("load",t),window.addEventListener("resize",()=>{o()}),this}function c(){return o(),r.applyClass(re.MH_DEFAULT),(!i||a.scrollHeight>i)&&(i=a.scrollHeight),this}function s(){return r.applyClass(re.MH_SUMMARY),i=a.scrollHeight,this}function b(){return r.applyClass(re.MH_ZERO),i=a.scrollHeight,this}function u(){return a.style.maxHeight="",r.remove()}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=r.animateOff,this.animateOn=r.animateOn,this.halt=r.halt,this.isAnimated=r.isAnimated,this.setElement=r.setElement,this.refresh=o,this.remove=u,this.init=l,this.maxHeightDefault=c,this.maxHeightSummary=s,this.maxHeightZero=b,this}I.CLASSES=re;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 wr(a){let e=new D,r=new _(a,X,this);function i(s){return r.init(s),this}function o(){return r.applyClass(X.MOVE_TO_ORIGIN),this}function t(s){s=s||1;let b=[X.MOVE_LEFT,X.MOVE_LEFT_2X,X.MOVE_LEFT_3X];return r.applyClass(b[s-1]),this}function l(){return r.applyClass(X.MOVE_RIGHT),this}function c(){return r.applyClass(X.MOVE_UP),this}return this.addEventListener=e.addEventListener,this.dispatchEvent=e.dispatchEvent,this.removeEventListener=e.removeEventListener,this.animateOff=r.animateOff,this.animateOn=r.animateOn,this.halt=r.halt,this.isAnimated=r.isAnimated,this.setElement=r.setElement,this.remove=r.remove,this.init=i,this.moveLeft=()=>t(1),this.moveLeft2=()=>t(2),this.moveLeft3=()=>t(3),this.moveRight=l,this.moveToOrigin=o,this.moveUp=c,this}wr.CLASSES=X;var dr={};m(dr,{default:()=>ht});var ht={};var Z="o-expandable";function K(a){let e=q(a,Z),r,i,o,t,l;function c(){if(!M(e))return this;r=e.querySelector(`.${Z}__header`),i=e.querySelector(`.${Z}__content`),o=e.querySelector(`.${Z}__label`);let u=e.classList.contains(`${Z}--onload-open`);A(e,"behavior_flyout-menu"),A(r,"behavior_flyout-menu_trigger"),A(i,"behavior_flyout-menu_content");let g=u?I.CLASSES.MH_DEFAULT:I.CLASSES.MH_ZERO;return t=new I(i).init(g),l=new P(e),l.setTransition(t,t.maxHeightZero,t.maxHeightDefault),l.init(u),l.addEventListener("expandbegin",()=>{i.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),l.addEventListener("collapseend",()=>{i.classList.add("u-hidden")}),this}function s(){return o.textContent.trim()}this.init=c,this.expand=()=>l.expand(),this.collapse=()=>l.collapse(),this.isExpanded=()=>l.isExpanded(),this.refresh=()=>l.getTransition().refresh(),this.getLabelText=s;let b=new D;return this.addEventListener=b.addEventListener,this.removeEventListener=b.removeEventListener,this.dispatchEvent=b.dispatchEvent,this}K.BASE_CLASS=Z;K.init=a=>C(`.${K.BASE_CLASS}`,K,a);var cr={};m(cr,{default:()=>pt});var pt={};var be="o-expandable-group";function pe(a){let e=q(a,be),r=e.classList.contains(`${be}--accordion`),i,o;function t(c){let s=c.target;o&&o!==s&&o.collapse(),o=s}function l(c){return M(e)?(r&&(i=c,i.forEach(s=>{s.addEventListener("expandbegin",t)})),this):this}return this.init=l,this}pe.BASE_CLASS=be;pe.init=a=>{(a||document).querySelectorAll(`.${be}`).forEach(i=>{let o=C(`.${K.BASE_CLASS}`,K,i);new pe(i).init(o)})};var sr={};m(sr,{default:()=>ft});var ft={};var Q="o-summary";function me(a){let e=q(a,Q),r=e.classList.contains(`${Q}--mobile`),i=e.querySelector(`.${Q}__content`),o=e.querySelector(`.${Q}__btn`),t,l,c;function s(){return M(e)?(window.addEventListener("load",b),this):this}function b(){window.removeEventListener("load",b),c=!x(),A(e,"behavior_flyout-menu"),A(i,"behavior_flyout-menu_content"),A(o,"behavior_flyout-menu_trigger"),l=new P(e,!1),t=new I(i),t.init(c?I.CLASSES.MH_SUMMARY:I.CLASSES.MH_DEFAULT),l.setTransition(t,t.maxHeightSummary,t.maxHeightDefault),l.addEventListener("triggerclick",j),l.init(),v(),window.addEventListener("resize",v),"onorientationchange"in window&&window.addEventListener("orientationchange",v),e.addEventListener("focusin",u),i.addEventListener("click",g)}function u(f){!c&&f.target!==o&&(o.click(),e.removeEventListener("focusin",u))}function g(f){f.target.tagName!=="A"&&l.isExpanded()&&t.refresh()}function v(){x()?G():H()}function x(){return r&&!ke(le)||i.scrollHeight<=88}function j(){l.addEventListener("expandend",S)}function S(){T(),window.removeEventListener("resize",v),window.removeEventListener("orientationchange",v),l.removeEventListener("expandend",S),l.suspend(),t.remove()}function E(){o.classList.remove("u-hidden")}function T(){o.classList.add("u-hidden")}function H(){return c&&(l.collapse(),t.animateOn(),E(),c=!1),!c}function G(){return c||(t.animateOff(),l.expand(),T(),c=!0),c}let z=new D;return this.addEventListener=z.addEventListener,this.removeEventListener=z.removeEventListener,this.dispatchEvent=z.dispatchEvent,this.init=s,this}me.BASE_CLASS=Q;me.init=a=>C(`.${Q}`,me,a);var ae="o-summary-minimal";function fe(a){let e=q(a,ae),r=e.querySelector(`.${ae}__content`),i=e.querySelector(`.${ae}__btn`),o,t;function l(){return M(e)?(A(e,"behavior_flyout-menu"),A(r,"behavior_flyout-menu_content"),A(i,"behavior_flyout-menu_trigger"),window.addEventListener("load",c),this):this}function c(){window.removeEventListener("load",c),t=new P(e,!1),o=new I(r),o.init(I.CLASSES.MH_SUMMARY),t.setTransition(o,o.maxHeightSummary,o.maxHeightDefault),t.init(),e.addEventListener("focusin",s),r.addEventListener("click",b),t.collapse(),o.animateOn()}function s(g){g.target!==i&&(i.click(),e.removeEventListener("focusin",s))}function b(g){g.target.tagName!=="A"&&t.isExpanded()&&o.refresh()}let u=new D;return this.addEventListener=u.addEventListener,this.removeEventListener=u.removeEventListener,this.dispatchEvent=u.dispatchEvent,this.init=l,this}fe.BASE_CLASS=ae;fe.init=a=>C(`.${ae}`,fe,a);})();
1
+ (()=>{var Ae=Object.defineProperty;var Y=(e,r)=>{for(var t in r)Ae(e,t,{get:r[t],enumerable:!0})};var ce={};Y(ce,{default:()=>Te});var Te={};var ue={bpXS:{min:0,max:600},bpSM:{min:601,max:900},bpMED:{min:901,max:1020},bpLG:{min:1021,max:1200},bpXL:{min:1201}};function K(){let e=getComputedStyle(document.body).fontSize;return e=e===""?-1:e,parseFloat(e)}function ke(e,r){let t=e.min,a=e.max;K()>0&&K()!==16&&(t=t/16*K(),a=a/16*K());let n=t||0,o=a||Number.POSITIVE_INFINITY;return n<=r&&r<=o}function Me(e){let r={};e=e||window.innerWidth;let t;for(t in ue)r[t]=ke(ue[t],e);return r}var Z="mobile",Ce="tablet",Ie="desktop";function pe(e){let r=!1,t=Me();return(e===Z&&t.bpXS||e===Ce&&t.bpSM||e===Ie&&(t.bpMED||t.bpLG||t.bpXL))&&(r=!0),r}var x="data-js-hook",J="behavior_",fe="state_";function v(){let e={};function r(i,n){return{}.hasOwnProperty.call(e,i)?e[i].push(n):e[i]=[n],this}function t(i,n){if(!{}.hasOwnProperty.call(e,i))return this;let o=e[i].indexOf(n);return o!==-1&&e[i].splice(o,1),this}function a(i,n){if(!{}.hasOwnProperty.call(e,i))return this;n=n||{};let o=e[i];for(let s=0,l=o.length;s<l;s++)o[s].call(this,n);return this}return this.addEventListener=r,this.removeEventListener=t,this.dispatchEvent=a,this.getRegisteredEvents=()=>e,this}function B(e,r){if(!e)return!1;let t=e.getAttribute(x);return t?(t=t.split(" "),t.indexOf(r)>-1):!1}function g(e,r){if(B(e,r))return r;if(r.indexOf(" ")!==-1){let a=x+" values cannot contain spaces!";throw new Error(a)}let t=e.getAttribute(x);return t!==null&&(r=t+" "+r),e.setAttribute(x,r),r}var me=fe+"atomic_init";function De(e,r){if(!e||!e.classList){let t=e+' is not valid. Check that element is a DOM node with class "'+r+'"';throw new Error(t)}return e}function He(e,r){let t=e.classList.contains(r)?e:e.querySelector("."+r);if(!t){let a=r+" not found on or in passed DOM node.";throw new Error(a)}return t}function A(e,r){return De(e,r),He(e,r)}function O(e){return B(e,me)?!1:(g(e,me),!0)}function T(e,r,t,a={}){let n=(t||document).querySelectorAll(e),o=[],s,l;for(let u=0,d=n.length;u<d;u++)l=n[u],B(l,me)===!1&&(s=new r(l),s.init(a),o.push(s));return o}function W(e,r){let t;if(B(e,r))return t=e,t;if(e){let a="["+x+"="+r+"]";t=e.querySelector(a)}if(!t){let a=r+" behavior not found on passed DOM node!";throw new Error(a)}return t}var Ne=Object.prototype.toString;var Be=Array.isArray||function(r){return Ne.call(r)==="[object Array]"};function p(e,r,t){let a=r,i=e;if(!t)throw new Error("Child transition argument must be defined!");let n=t,o,s,l,u=!1,d=!1,m=!1;if(typeof a.CSS_PROPERTY=="undefined"||typeof a.BASE_CLASS=="undefined")throw new Error("Transitions require CSS_PROPERTY and BASE_CLASS to be passed into BaseTransition.");function b(){s&&u?(i.addEventListener(s,l),n.dispatchEvent(p.BEGIN_EVENT,{target:n,type:p.BEGIN_EVENT}),i.classList.add(p.ANIMATING_CLASS),d=!0):(n.dispatchEvent(p.BEGIN_EVENT,{target:n,type:p.BEGIN_EVENT}),l())}function S(){i.removeEventListener(s,l)}function k(f){return f&&f.propertyName!==a.CSS_PROPERTY?!1:(S(),i.classList.remove(p.ANIMATING_CLASS),n.dispatchEvent(p.END_EVENT,{target:n,type:p.END_EVENT}),d=!1,!0)}function M(){let f;for(f in a)({}).hasOwnProperty.call(a,f)&&a[f]!==a.BASE_CLASS&&i.classList.contains(a[f])&&i.classList.remove(a[f])}function _(){d&&(i.style.webkitTransitionDuration="0",i.style.mozTransitionDuration="0",i.style.oTransitionDuration="0",i.style.transitionDuration="0",i.removeEventListener(s,l),l(),i.style.webkitTransitionDuration="",i.style.mozTransitionDuration="",i.style.oTransitionDuration="",i.style.transitionDuration="")}function L(){_(),M(),i.classList.remove(a.BASE_CLASS)}function P(){i.classList.remove(p.NO_ANIMATION_CLASS),u=!0}function G(){i.classList.add(p.NO_ANIMATION_CLASS),u=!1}function w(f){if(!f){let oe="Element does not have TransitionEnd event. It may be null!";throw new Error(oe)}let q,z={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},R;for(R in z)if({}.hasOwnProperty.call(z,R)&&typeof f.style[R]!="undefined"){q=z[R];break}return q}function C(f){L(),P(),i=f,i.classList.add(a.BASE_CLASS),s=w(i)}function ne(f){if(u=!i.classList.contains(p.NO_ANIMATION_CLASS),l=k.bind(this),C(i),!f)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return i.classList.add(f),this}function ae(f){return m||(M(),m=!0),i.classList.contains(f)?!1:(S(),i.classList.remove(o),o=f,b(),i.classList.add(o),!0)}return this.animateOff=G,this.animateOn=P,this.applyClass=ae,this.halt=_,this.init=ne,this.isAnimated=()=>u,this.remove=L,this.setElement=C,this}p.BEGIN_EVENT="transitionbegin";p.END_EVENT="transitionend";p.NO_ANIMATION_CLASS="u-no-animation";p.ANIMATING_CLASS="u-is-animating";var j=J+"flyout-menu",Re="["+x+"="+j;function I(e,r=!0){let t=W(e,j),a=P(e),i=W(e,j+"_content"),n=0,o=0,s=1,l=2,u=3,d,m,b,S=oe.bind(this),k=R.bind(this),M,_=!0,L=!1;function P(c){let h=[],y=c.querySelectorAll(`${Re}_trigger]`),$,N,de;for(let le=y.length>>>0;le--;){for(de=!1,$=y[le],N=$.parentElement;N!==c;)N.getAttribute(x)&&N.getAttribute(x).split(" ").indexOf(j)!==-1?(de=!0,N=c):N=N.parentElement;de||h.unshift(y[le])}return h}function G(c=!1){return n=c?u:o,a.forEach(h=>{w("expanded",h,c),h.addEventListener("click",f.bind(this)),h.addEventListener("touchstart",C,{passive:!0}),h.addEventListener("mouseover",ne.bind(this)),h.addEventListener("mouseout",ae.bind(this))}),i.setAttribute("data-open",c?"true":"false"),r&&!c&&i.setAttribute("hidden",""),ge(),this}function w(c,h,y){let $=String(y);return h.setAttribute("aria-"+c,$),$}function C(){L=!0}function ne(c){_||(L||this.dispatchEvent("triggerover",{target:this,trigger:c.target,type:"triggerover"}),L=!1)}function ae(c){_||this.dispatchEvent("triggerout",{target:this,trigger:c.target,type:"triggerout"})}function f(c){if(!_)switch(this.dispatchEvent("triggerclick",{target:this,trigger:c.target,type:"triggerclick"}),c.preventDefault(),n){case o:case s:this.expand();break;case l:case u:this.collapse();break}}function q(){if(d==null||d.halt(),n===l||n===u)return this;if(n=l,r&&i.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!m||!b)return k(),this;let c=d==null?void 0:d.isAnimated();return c&&d.addEventListener(p.END_EVENT,k),m(),c||k(),this}function z(){if(d==null||d.halt(),n===s||n===o)return this;for(let h=0,y=a.length;h<y;h++)w("expanded",a[h],!1);if(i.setAttribute("data-open","false"),n=s,this.dispatchEvent("collapsebegin",{target:this,type:"collapsebegin"}),!b||!m)return S(),this;let c=d==null?void 0:d.isAnimated();return c&&d.addEventListener(p.END_EVENT,S),b(),c||S(),this}function R(){n=u,i.setAttribute("data-open","true"),d&&d.removeEventListener(p.END_EVENT,k),this.dispatchEvent("expandend",{target:this,type:"expandend"});for(let c=0,h=a.length;c<h;c++)w("expanded",a[c],!0)}function oe(){n=o,r&&i.setAttribute("hidden",""),d&&d.removeEventListener(p.END_EVENT,S),this.dispatchEvent("collapseend",{target:this,type:"collapseend"})}function xe(c,h,y){d=c,h&&h!==b&&(b=h),y&&y!==m&&(m=y)}function ye(){d&&d.remove();let c;d=c,m=c,b=c}function Se(){return{container:t,content:i,trigger:a}}function ge(){return _&&(_=!1),!_}function Le(){return _||(_=!0),_}function we(c){return M=c,this}let se=new v;return this.addEventListener=se.addEventListener,this.removeEventListener=se.removeEventListener,this.dispatchEvent=se.dispatchEvent,this.init=G,this.expand=q,this.collapse=z,this.setTransition=xe,this.clearTransition=ye,this.getData=()=>M,this.getTransition=()=>d,this.getDom=Se,this.isAnimating=()=>n===l||n===s,this.isExpanded=()=>n===u,this.resume=ge,this.setData=we,this.suspend=Le,I.BASE_CLASS=j,this}var Q={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function _e(e){let r=new v,t=new p(e,Q,this);function a(o){return t.init(o),this}function i(){return t.applyClass(Q.ALPHA_100),this}function n(){return t.applyClass(Q.ALPHA_0),this}return this.addEventListener=r.addEventListener,this.dispatchEvent=r.dispatchEvent,this.removeEventListener=r.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=n,this.init=a,this}_e.CLASSES=Q;var X={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 E(e){let r=new v,t=new p(e,X,this),a=0;function i(){let b=e.scrollHeight+"px";e.style.maxHeight=b}function n(){window.removeEventListener("load",n),i()}function o(m){return t.init(m),window.addEventListener("load",n),window.addEventListener("resize",()=>{i()}),this}function s(){return i(),t.applyClass(X.MH_DEFAULT),(!a||e.scrollHeight>a)&&(a=e.scrollHeight),this}function l(){return t.applyClass(X.MH_SUMMARY),a=e.scrollHeight,this}function u(){return t.applyClass(X.MH_ZERO),a=e.scrollHeight,this}function d(){return e.style.maxHeight="",t.remove()}return this.addEventListener=r.addEventListener,this.dispatchEvent=r.dispatchEvent,this.removeEventListener=r.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=d,this.init=o,this.maxHeightDefault=s,this.maxHeightSummary=l,this.maxHeightZero=u,this}E.CLASSES=X;var D={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 Ee(e){let r=new v,t=new p(e,D,this);function a(l){return t.init(l),this}function i(){return t.applyClass(D.MOVE_TO_ORIGIN),this}function n(l){l=l||1;let u=[D.MOVE_LEFT,D.MOVE_LEFT_2X,D.MOVE_LEFT_3X];return t.applyClass(u[l-1]),this}function o(){return t.applyClass(D.MOVE_RIGHT),this}function s(){return t.applyClass(D.MOVE_UP),this}return this.addEventListener=r.addEventListener,this.dispatchEvent=r.dispatchEvent,this.removeEventListener=r.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=a,this.moveLeft=()=>n(1),this.moveLeft2=()=>n(2),this.moveLeft3=()=>n(3),this.moveRight=o,this.moveToOrigin=i,this.moveUp=s,this}Ee.CLASSES=D;var he={};Y(he,{default:()=>Ve});var Ve={};var F="o-expandable";function H(e){let r=A(e,F),t,a,i,n,o;function s(){if(!O(r))return this;t=r.querySelector(`.${F}__header`),a=r.querySelector(`.${F}__content`),i=r.querySelector(`.${F}__label`);let d=r.classList.contains(`${F}--onload-open`);g(r,"behavior_flyout-menu"),g(t,"behavior_flyout-menu_trigger"),g(a,"behavior_flyout-menu_content");let m=d?E.CLASSES.MH_DEFAULT:E.CLASSES.MH_ZERO;return n=new E(a).init(m),o=new I(r),o.setTransition(n,n.maxHeightZero,n.maxHeightDefault),o.init(d),o.addEventListener("expandbegin",()=>{a.classList.remove("u-hidden"),this.dispatchEvent("expandbegin",{target:this})}),o.addEventListener("collapseend",()=>{a.classList.add("u-hidden")}),this}function l(){return i.textContent.trim()}this.init=s,this.expand=()=>o.expand(),this.collapse=()=>o.collapse(),this.isExpanded=()=>o.isExpanded(),this.refresh=()=>o.getTransition().refresh(),this.getLabelText=l;let u=new v;return this.addEventListener=u.addEventListener,this.removeEventListener=u.removeEventListener,this.dispatchEvent=u.dispatchEvent,this}H.BASE_CLASS=F;H.init=e=>T(`.${H.BASE_CLASS}`,H,e);var be={};Y(be,{default:()=>ze});var ze={};var ee="o-expandable-group";function te(e){let r=A(e,ee),t=r.classList.contains(`${ee}--accordion`),a,i;function n(s){let l=s.target;i&&i!==l&&i.collapse(),i=l}function o(s){return O(r)?(t&&(a=s,a.forEach(l=>{l.addEventListener("expandbegin",n)})),this):this}return this.init=o,this}te.BASE_CLASS=ee;te.init=e=>{(e||document).querySelectorAll(`.${ee}`).forEach(a=>{let i=T(`.${H.BASE_CLASS}`,H,a);new te(a).init(i)})};var ve={};Y(ve,{default:()=>je});var je={};var V="o-summary";function re(e){let r=A(e,V),t=r.classList.contains(`${V}--mobile`),a=r.querySelector(`.${V}__content`),i=r.querySelector(`.${V}__btn`),n,o,s;function l(){return O(r)?(window.addEventListener("load",u),this):this}function u(){window.removeEventListener("load",u),s=!S(),g(r,"behavior_flyout-menu"),g(a,"behavior_flyout-menu_content"),g(i,"behavior_flyout-menu_trigger"),o=new I(r,!1),n=new E(a),n.init(s?E.CLASSES.MH_SUMMARY:E.CLASSES.MH_DEFAULT),o.setTransition(n,n.maxHeightSummary,n.maxHeightDefault),o.addEventListener("triggerclick",k),o.init(),b(),window.addEventListener("resize",b),"onorientationchange"in window&&window.addEventListener("orientationchange",b),r.addEventListener("focusin",d),a.addEventListener("click",m)}function d(C){!s&&C.target!==i&&(i.click(),r.removeEventListener("focusin",d))}function m(C){C.target.tagName!=="A"&&o.isExpanded()&&n.refresh()}function b(){S()?G():P()}function S(){return t&&!pe(Z)||a.scrollHeight<=88}function k(){o.addEventListener("expandend",M)}function M(){L(),window.removeEventListener("resize",b),window.removeEventListener("orientationchange",b),o.removeEventListener("expandend",M),o.suspend(),n.remove()}function _(){i.classList.remove("u-hidden")}function L(){i.classList.add("u-hidden")}function P(){return s&&(o.collapse(),n.animateOn(),_(),s=!1),!s}function G(){return s||(n.animateOff(),o.expand(),L(),s=!0),s}let w=new v;return this.addEventListener=w.addEventListener,this.removeEventListener=w.removeEventListener,this.dispatchEvent=w.dispatchEvent,this.init=l,this}re.BASE_CLASS=V;re.init=e=>T(`.${V}`,re,e);var U="o-summary-minimal";function ie(e){let r=A(e,U),t=r.querySelector(`.${U}__content`),a=r.querySelector(`.${U}__btn`),i,n;function o(){return O(r)?(g(r,"behavior_flyout-menu"),g(t,"behavior_flyout-menu_content"),g(a,"behavior_flyout-menu_trigger"),window.addEventListener("load",s),this):this}function s(){window.removeEventListener("load",s),n=new I(r,!1),i=new E(t),i.init(E.CLASSES.MH_SUMMARY),n.setTransition(i,i.maxHeightSummary,i.maxHeightDefault),n.init(),r.addEventListener("focusin",l),t.addEventListener("click",u),n.collapse(),i.animateOn()}function l(m){m.target!==a&&(a.click(),r.removeEventListener("focusin",l))}function u(m){m.target.tagName!=="A"&&n.isExpanded()&&i.refresh()}let d=new v;return this.addEventListener=d.addEventListener,this.removeEventListener=d.removeEventListener,this.dispatchEvent=d.dispatchEvent,this.init=o,this}ie.BASE_CLASS=U;ie.init=e=>T(`.${U}`,ie,e);})();
2
2
  //# sourceMappingURL=index.js.map