@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.
- package/CHANGELOG.md +19 -1
- package/dist/base/index.css +1 -1
- package/dist/base/index.css.map +2 -2
- package/dist/base/index.js +1 -1
- package/dist/base/index.js.map +1 -1
- package/dist/components/cfpb-buttons/index.css +1 -1
- package/dist/components/cfpb-buttons/index.css.map +2 -2
- package/dist/components/cfpb-buttons/index.js +1 -1
- package/dist/components/cfpb-buttons/index.js.map +1 -1
- package/dist/components/cfpb-expandables/index.css +1 -2
- package/dist/components/cfpb-expandables/index.css.map +3 -3
- package/dist/components/cfpb-expandables/index.js +1 -1
- package/dist/components/cfpb-expandables/index.js.map +4 -4
- package/dist/components/cfpb-forms/index.css +1 -2
- package/dist/components/cfpb-forms/index.css.map +3 -3
- package/dist/components/cfpb-forms/index.js +1 -1
- package/dist/components/cfpb-forms/index.js.map +4 -4
- package/dist/components/cfpb-icons/index.css +1 -1
- package/dist/components/cfpb-icons/index.css.map +2 -2
- package/dist/components/cfpb-icons/index.js +1 -1
- package/dist/components/cfpb-icons/index.js.map +1 -1
- package/dist/components/cfpb-layout/index.css +1 -1
- package/dist/components/cfpb-layout/index.css.map +2 -2
- package/dist/components/cfpb-layout/index.js +1 -1
- package/dist/components/cfpb-layout/index.js.map +1 -1
- package/dist/components/cfpb-notifications/index.css +1 -1
- package/dist/components/cfpb-notifications/index.css.map +2 -2
- package/dist/components/cfpb-notifications/index.js +1 -1
- package/dist/components/cfpb-notifications/index.js.map +1 -1
- package/dist/components/cfpb-pagination/index.css +1 -1
- package/dist/components/cfpb-pagination/index.css.map +2 -2
- package/dist/components/cfpb-pagination/index.js +1 -1
- package/dist/components/cfpb-pagination/index.js.map +1 -1
- package/dist/components/cfpb-tables/index.css +1 -1
- package/dist/components/cfpb-tables/index.css.map +2 -2
- package/dist/components/cfpb-tables/index.js +1 -1
- package/dist/components/cfpb-tables/index.js.map +1 -1
- package/dist/components/cfpb-tooltips/index.css +1 -2
- package/dist/components/cfpb-tooltips/index.css.map +3 -3
- package/dist/components/cfpb-tooltips/index.js +1 -1
- package/dist/components/cfpb-tooltips/index.js.map +4 -4
- package/dist/components/cfpb-typography/index.css +1 -1
- package/dist/components/cfpb-typography/index.css.map +2 -2
- package/dist/components/cfpb-typography/index.js +1 -1
- package/dist/components/cfpb-typography/index.js.map +1 -1
- package/dist/elements/cfpb-button/index.js +30 -0
- package/dist/elements/cfpb-button/index.js.map +7 -0
- package/dist/elements/cfpb-file-upload/index.js +39 -0
- package/dist/elements/cfpb-file-upload/index.js.map +7 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +2 -2
- package/dist/index.js +39 -1
- package/dist/index.js.map +4 -4
- package/dist/utilities/index.css +1 -2
- package/dist/utilities/index.css.map +3 -3
- package/dist/utilities/index.js +1 -1
- package/dist/utilities/index.js.map +4 -4
- package/package.json +1 -1
- package/src/components/cfpb-tooltips/index.js +1 -1
- package/src/elements/cfpb-button/cfpb-button.component.scss +8 -0
- package/src/elements/cfpb-button/index.js +53 -0
- package/src/elements/cfpb-file-upload/cfpb-file-upload.component.scss +14 -0
- package/src/elements/cfpb-file-upload/index.js +81 -0
- package/src/index.js +3 -0
- package/src/utilities/behavior/behavior.js +2 -1
- package/src/utilities/behavior/flyout-menu.js +4 -7
- package/src/utilities/transition/alpha-transition.js +2 -1
- package/src/utilities/transition/max-height-transition.js +2 -1
- package/src/utilities/transition/move-transition.js +2 -1
package/dist/utilities/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var ur=Object.defineProperty;var cr=Object.getOwnPropertySymbols;var jr=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable;var sr=(e,r,a)=>r in e?ur(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,we=(e,r)=>{for(var a in r||(r={}))jr.call(r,a)&&sr(e,a,r[a]);if(cr)for(var a of cr(r))Tr.call(r,a)&&sr(e,a,r[a]);return e};var f=(e,r)=>{for(var a in r)ur(e,a,{get:r[a],enumerable:!0})};var ke={};f(ke,{default:()=>zr});var zr={};var le={bpXS:{min:0,max:600},bpSM:{min:601,max:900},bpMED:{min:901,max:1020},bpLG:{min:1021,max:1200},bpXL:{min:1201}};function de(){let e=getComputedStyle(document.body).fontSize;return e=e===""?-1:e,parseFloat(e)}function Ir(e,r){let a=e.min,i=e.max;de()>0&&de()!==16&&(a=a/16*de(),i=i/16*de());let t=a||0,l=i||Number.POSITIVE_INFINITY;return t<=r&&r<=l}function Br(e){let r={};e=e||window.innerWidth;let a;for(a in le)r[a]=Ir(le[a],e);return r}var ce="mobile",Mr="tablet",Nr="desktop";function Se(e){let r=!1,a=Br();return(e===ce&&a.bpXS||e===Mr&&a.bpSM||e===Nr&&(a.bpMED||a.bpLG||a.bpXL))&&(r=!0),r}var I="data-js-hook",Z="behavior_",Ee="state_";function D(){let e={};function r(o,t){return{}.hasOwnProperty.call(e,o)?e[o].push(t):e[o]=[t],this}function a(o,t){if(!{}.hasOwnProperty.call(e,o))return this;let l=e[o].indexOf(t);return l!==-1&&e[o].splice(l,1),this}function i(o,t){if(!{}.hasOwnProperty.call(e,o))return this;t=t||{};let l=e[o];for(let c=0,s=l.length;c<s;c++)l[c].call(this,t);return this}return this.addEventListener=r,this.removeEventListener=a,this.dispatchEvent=i,this.getRegisteredEvents=()=>e,this}function Y(e,r){if(!e)return!1;let a=e.getAttribute(I);return a?(a=a.split(" "),a.indexOf(r)>-1):!1}function A(e,r){if(Y(e,r))return r;if(r.indexOf(" ")!==-1){let i=I+" values cannot contain spaces!";throw new Error(i)}let a=e.getAttribute(I);return a!==null&&(r=a+" "+r),e.setAttribute(I,r),r}var Le=Ee+"atomic_init";function qr(e,r){if(!e||!e.classList){let a=e+' is not valid. Check that element is a DOM node with class "'+r+'"';throw new Error(a)}return e}function Cr(e,r){let a=e.classList.contains(r)?e:e.querySelector("."+r);if(!a){let i=r+" not found on or in passed DOM node.";throw new Error(i)}return a}function q(e,r){return qr(e,r),Cr(e,r)}function M(e){return Y(e,Le)?!1:(A(e,Le),!0)}function C(e,r,a,i={}){let t=(a||document).querySelectorAll(e),l=[],c,s;for(let b=0,u=t.length;b<u;b++)s=t[b],Y(s,Le)===!1&&(c=new r(s),c.init(i),l.push(c));return l}var De={};f(De,{default:()=>Fr});var Fr={};var Ae={};f(Ae,{default:()=>Vr});var Vr={};var je={};f(je,{default:()=>Rr});var Rr={};var Te={};f(Te,{default:()=>Pr});var Pr={};var Oe={};f(Oe,{default:()=>Kr});var Kr={};var Q="o-expandable";function P(e){let r=q(e,Q),a,i,o,t,l;function c(){if(!M(r))return this;a=r.querySelector(`.${Q}__header`),i=r.querySelector(`.${Q}__content`),o=r.querySelector(`.${Q}__label`);let u=r.classList.contains(`${Q}--onload-open`);A(r,"behavior_flyout-menu"),A(a,"behavior_flyout-menu_trigger"),A(i,"behavior_flyout-menu_content");let g=u?B.CLASSES.MH_DEFAULT:B.CLASSES.MH_ZERO;return t=new B(i).init(g),l=new X(r),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}P.BASE_CLASS=Q;P.init=e=>C(`.${P.BASE_CLASS}`,P,e);var se="o-expandable-group";function ue(e){let r=q(e,se),a=r.classList.contains(`${se}--accordion`),i,o;function t(c){let s=c.target;o&&o!==s&&o.collapse(),o=s}function l(c){return M(r)?(a&&(i=c,i.forEach(s=>{s.addEventListener("expandbegin",t)})),this):this}return this.init=l,this}ue.BASE_CLASS=se;ue.init=e=>{(e||document).querySelectorAll(`.${se}`).forEach(i=>{let o=C(`.${P.BASE_CLASS}`,P,i);new ue(i).init(o)})};var ee="o-summary";function he(e){let r=q(e,ee),a=r.classList.contains(`${ee}--mobile`),i=r.querySelector(`.${ee}__content`),o=r.querySelector(`.${ee}__btn`),t,l,c;function s(){return M(r)?(window.addEventListener("load",b),this):this}function b(){window.removeEventListener("load",b),c=!x(),A(r,"behavior_flyout-menu"),A(i,"behavior_flyout-menu_content"),A(o,"behavior_flyout-menu_trigger"),l=new X(r,!1),t=new B(i),t.init(c?B.CLASSES.MH_SUMMARY:B.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),r.addEventListener("focusin",u),i.addEventListener("click",g)}function u(m){!c&&m.target!==o&&(o.click(),r.removeEventListener("focusin",u))}function g(m){m.target.tagName!=="A"&&l.isExpanded()&&t.refresh()}function v(){x()?G():H()}function x(){return a&&!Se(ce)||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}he.BASE_CLASS=ee;he.init=e=>C(`.${ee}`,he,e);var re="o-summary-minimal";function be(e){let r=q(e,re),a=r.querySelector(`.${re}__content`),i=r.querySelector(`.${re}__btn`),o,t;function l(){return M(r)?(A(r,"behavior_flyout-menu"),A(a,"behavior_flyout-menu_content"),A(i,"behavior_flyout-menu_trigger"),window.addEventListener("load",c),this):this}function c(){window.removeEventListener("load",c),t=new X(r,!1),o=new B(a),o.init(B.CLASSES.MH_SUMMARY),t.setTransition(o,o.maxHeightSummary,o.maxHeightDefault),t.init(),r.addEventListener("focusin",s),a.addEventListener("click",b),t.collapse(),o.animateOn()}function s(g){g.target!==i&&(i.click(),r.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}be.BASE_CLASS=re;be.init=e=>C(`.${re}`,be,e);var ze={};f(ze,{default:()=>Wr});var Wr={};var Ie={};f(Ie,{default:()=>Qr});var Qr={};var Be={};f(Be,{default:()=>ra});var ra={};var Me={};f(Me,{default:()=>ta});var ta={};var Ne={};f(Ne,{default:()=>ia});var ia={};var qe={};f(qe,{default:()=>la});var la={};var Ce={};f(Ce,{default:()=>ca});var ca={};var $e={};f($e,{default:()=>ua});var ua={};var Fe={};f(Fe,{default:()=>ba});var ba={};var pa;function ma(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function fa(e,r){return RegExp(ma(r.trim()),"i").test(e)}function ga(e,r,a){let i=e,o=r,t=(a==null?void 0:a.maxSelections)||5,l=[],c=[],s=[],b=[],u=-1;function g(m){return o+"-"+m.value.trim().replace(/\s+/g,"-").toLowerCase()}function v(){return c.length>=t}function x(m){let w,L=[],y=!1;for(let O=0,N=m.length;O<N;O++)w=m[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(m){return l[m].checked=!l[m].checked,c.length<t&&l[m].checked?(c.push(m),c.sort(),!0):(l[m].checked=!1,c=c.filter(function(w){return w!==m}),!1)}function E(m,w,L,y){return fa(w.text,y)&&m.push(L),m}function T(m){return Object.prototype.toString.call(m)!=="[object String]"&&(m=""),b=s,l.length>0&&(s=l.reduce(function(w,L,y){return E(w,L,y,m)},[])),u=-1,s}function H(m){return l[m]}function G(m){let w=s.length,L=w===0?l.length:w;m<0?u=-1:m>=L?u=L-1:u=m}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=[],pa},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 mr=ga;function $(e,r,a){let i=document.createElement(e);return Object.keys(a).forEach(o=>{let t=a[o];o in i?i[o]=t:i.setAttribute(o,t)}),r&&r.appendChild(i),i}var fr='<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 wa=fr,F="o-multiselect",ka="a-checkbox",Sa="a-text-input",gr="prev",pe="next",He="Enter",Ea=" ",vr="Escape",La="ArrowUp",yr="ArrowDown",xr="Tab",_r={renderTags:!0,maxSelections:5};function me(e){e.classList.add(F);let r=q(e,F),a=!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 m(){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===pe?t.setIndex(t.getIndex()+1):n===gr&&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,Ar=x.querySelector('[data-option="'+U+'"]').querySelector("input");a=!0,Ar.focus()}else a=!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===Ea||n.key===He){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+wa+"</label>"});n.appendChild(p),k.addEventListener("click",O),k.addEventListener("keydown",N)}function ie(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(),a=!1,v.getAttribute("aria-hidden")==="false"&&g.focus()}function ve(n){ie(Number(n.target.getAttribute("data-index"))),y()}function ye(){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"&&m()}),g.addEventListener("blur",function(){!a&&v.getAttribute("aria-hidden")==="false"&&w()}),g.addEventListener("keydown",function(h){let p=h.key;v.getAttribute("aria-hidden")==="true"&&p!==xr&&m(),p===He?(h.preventDefault(),L(pe)):p===vr?(y(),w()):p===yr?L(pe):p===xr&&!h.shiftKey&&v.getAttribute("aria-hidden")==="false"&&w()}),x.addEventListener("mousedown",function(){a=!0}),x.addEventListener("keydown",function(h){let p=h.key,k=h.target,U=k.checked;if(p===He){h.preventDefault(),k.checked=!U;let V=new Event("change",{bubbles:!1,cancelable:!0});k.dispatchEvent(V)}else p===vr?(g.focus(),w()):p===La?L(gr):p===yr&&L(pe)}),v.addEventListener("mousedown",function(h){h.target.tagName==="LABEL"&&(a=!0)});let n=x.querySelectorAll("input");for(let h=0,p=n.length;h<p;h++)n[h].addEventListener("change",ve);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 ne(){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 "+Sa,type:"text",placeholder:o||"Select up to five",id:r.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:ka+" "+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),r.parentNode.insertBefore(s,r),s.appendChild(r),s}function xe(n=_r){if(!M(r))return this;if(Ve())return this;if(S=this,i=r.name||r.id,o=r.getAttribute("placeholder"),l=r.options||[],c=we(we({},_r),n),l.length>0){t=new mr(l,i,c).init();let d=ne();r.parentNode.removeChild(r),r=d,M(r),ye()}return this}function _e(){return t}this.init=xe,this.expand=m,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=ie,this.selectionClickHandler=O,this.selectionKeyDownHandler=N,this}me.BASE_CLASS=F;me.init=e=>C(`.${F}`,me,void 0,e);var Ge={};f(Ge,{default:()=>Aa});var Aa={};var Re={};f(Re,{default:()=>Ta});var Ta={};var Ue={};f(Ue,{default:()=>za});var za={};var Pe={};f(Pe,{default:()=>Ba});var Ba={};var Xe={};f(Xe,{default:()=>Na});var Na={};var Ke={};f(Ke,{default:()=>Ca});var Ca={};var Je={};f(Je,{default:()=>Fa});var Fa={};var Ye={};f(Ye,{default:()=>Va});var Va={};var We={};f(We,{default:()=>Ra});var Ra={};var Ze={};f(Ze,{default:()=>Pa});var Pa={};var Qe={};f(Qe,{default:()=>Ka});var Ka={};var er={};f(er,{default:()=>Ya});var Ya={};var rr={};f(rr,{default:()=>Za});var Za={};var ar={};f(ar,{default:()=>et});var et={};var tr={};f(tr,{default:()=>at});var at={};var or={};f(or,{default:()=>ot});var ot={};var ir={};f(ir,{default:()=>nt});var nt={};var nr={};f(nr,{default:()=>dt});var dt={};var lr={};f(lr,{default:()=>st});var st={};var dr={};f(dr,{default:()=>ht});var ht={};function wr(e,r){r=r||document;let a=[];try{a=r.querySelectorAll(e)}catch(i){let o=`${e} not found in DOM! ${i}`;throw new Error(o)}return a.length===0&&e.indexOf(Z)===-1&&(a=kr(e,r)),a}function bt(e,r,a,i){let o=[];e instanceof NodeList?o=e:e instanceof Node?o=[e]:typeof e=="string"&&(o=wr(e,i));for(let t=0,l=o.length;t<l;t++)o[t].addEventListener(r,a,!1);return o}function fe(e,r){let a;if(Y(e,r))return a=e,a;if(e){let i="["+I+"="+r+"]";a=e.querySelector(i)}if(!a){let i=r+" behavior not found on passed DOM node!";throw new Error(i)}return a}function kr(e,r){return e=I+"*="+Z+e,e="["+e+"]",wr(e,r)}var ae=Object.prototype.toString;function Sr(e){return typeof e=="undefined"}function pt(e){return typeof e!="undefined"}function mt(e){return e!==null&&typeof e=="object"}function Er(e){return ae.call(e)==="[object String]"}function ft(e){return ae.call(e)==="[object Number]"}function gt(e){return ae.call(e)==="[object Date]"}var vt=Array.isArray||function(r){return ae.call(r)==="[object Array]"};function yt(e){return ae.call(e)==="[object Function]"}function xt(e){return Sr(e)||e===null||Er(e)&&e.length<=0||/^\s*$/.test(e)}function Ve(){return!!new RegExp(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i).test(navigator.userAgent)}var te=Z+"flyout-menu",_t="["+I+"="+te;function X(e,r=!0){let a=fe(e,te),i=H(e),o=fe(e,te+"_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(`${_t}_trigger]`),p,k,U;for(let V=h.length>>>0;V--;){for(U=!1,p=h[V],k=p.parentElement;k!==n;)k.getAttribute(I)&&k.getAttribute(I).split(" ").indexOf(te)!==-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",m,{passive:!0}),d.addEventListener("mouseover",w.bind(this)),d.addEventListener("mouseout",L.bind(this))}),o.setAttribute("data-open",n?"true":"false"),r&&!n&&o.setAttribute("hidden",""),ne(),this}function z(n,d,h){let p=String(h);return d.setAttribute("aria-"+n,p),p}function m(){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,r&&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,r&&o.setAttribute("hidden",""),u&&u.removeEventListener(_.END_EVENT,x),this.dispatchEvent("collapseend",{target:this,type:"collapseend"})}function ie(n,d,h){u=n,d&&d!==v&&(v=d),h&&h!==g&&(g=h)}function ve(){u&&u.remove();let n;u=n,g=n,v=n}function ye(){return{container:a,content:o,trigger:i}}function ne(){return E&&(E=!1),!E}function xe(){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=O,this.collapse=N,this.setTransition=ie,this.clearTransition=ve,this.getData=()=>S,this.getTransition=()=>u,this.getDom=ye,this.isAnimating=()=>t===s||t===c,this.isExpanded=()=>t===b,this.resume=ne,this.setData=_e,this.suspend=xe,X.BASE_CLASS=te,this}var ge={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function Lr(e){let r=new D,a=new _(e,ge,this);function i(l){return a.init(l),this}function o(){return a.applyClass(ge.ALPHA_100),this}function t(){return a.applyClass(ge.ALPHA_0),this}return this.addEventListener=r.addEventListener,this.dispatchEvent=r.dispatchEvent,this.removeEventListener=r.removeEventListener,this.animateOff=a.animateOff,this.animateOn=a.animateOn,this.halt=a.halt,this.isAnimated=a.isAnimated,this.remove=a.remove,this.setElement=a.setElement,this.fadeIn=o,this.fadeOut=t,this.init=i,this}Lr.CLASSES=ge;function _(e,r,a){let i=r,o=e;if(!a)throw new Error("Child transition argument must be defined!");let t=a,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 m(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),m(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=m,this}_.BEGIN_EVENT="transitionbegin";_.END_EVENT="transitionend";_.NO_ANIMATION_CLASS="u-no-animation";_.ANIMATING_CLASS="u-is-animating";var oe={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 B(e){let r=new D,a=new _(e,oe,this),i=0;function o(){let v=e.scrollHeight+"px";e.style.maxHeight=v}function t(){window.removeEventListener("load",t),o()}function l(g){return a.init(g),window.addEventListener("load",t),window.addEventListener("resize",()=>{o()}),this}function c(){return o(),a.applyClass(oe.MH_DEFAULT),(!i||e.scrollHeight>i)&&(i=e.scrollHeight),this}function s(){return a.applyClass(oe.MH_SUMMARY),i=e.scrollHeight,this}function b(){return a.applyClass(oe.MH_ZERO),i=e.scrollHeight,this}function u(){return e.style.maxHeight="",a.remove()}return this.addEventListener=r.addEventListener,this.dispatchEvent=r.dispatchEvent,this.removeEventListener=r.removeEventListener,this.animateOff=a.animateOff,this.animateOn=a.animateOn,this.halt=a.halt,this.isAnimated=a.isAnimated,this.setElement=a.setElement,this.refresh=o,this.remove=u,this.init=l,this.maxHeightDefault=c,this.maxHeightSummary=s,this.maxHeightZero=b,this}B.CLASSES=oe;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 Dr(e){let r=new D,a=new _(e,K,this);function i(s){return a.init(s),this}function o(){return a.applyClass(K.MOVE_TO_ORIGIN),this}function t(s){s=s||1;let b=[K.MOVE_LEFT,K.MOVE_LEFT_2X,K.MOVE_LEFT_3X];return a.applyClass(b[s-1]),this}function l(){return a.applyClass(K.MOVE_RIGHT),this}function c(){return a.applyClass(K.MOVE_UP),this}return this.addEventListener=r.addEventListener,this.dispatchEvent=r.dispatchEvent,this.removeEventListener=r.removeEventListener,this.animateOff=a.animateOff,this.animateOn=a.animateOn,this.halt=a.halt,this.isAnimated=a.isAnimated,this.setElement=a.setElement,this.remove=a.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}Dr.CLASSES=K;})();
|
|
1
|
+
(()=>{var mt=Object.defineProperty;var Et=(t,i)=>{for(var e in i)mt(t,e,{get:i[e],enumerable:!0})};var J={};Et(J,{default:()=>vt});var vt={};var Z={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 t=getComputedStyle(document.body).fontSize;return t=t===""?-1:t,parseFloat(t)}function bt(t,i){let e=t.min,r=t.max;k()>0&&k()!==16&&(e=e/16*k(),r=r/16*k());let s=e||0,u=r||Number.POSITIVE_INFINITY;return s<=i&&i<=u}function _t(t){let i={};t=t||window.innerWidth;let e;for(e in Z)i[e]=bt(Z[e],t);return i}var et="mobile",At="tablet",xt="desktop";function yt(t){let i=!1,e=_t();return(t===et&&e.bpXS||t===At&&e.bpSM||t===xt&&(e.bpMED||e.bpLG||e.bpXL))&&(i=!0),i}var m="data-js-hook",w="behavior_",$="state_";function _(){let t={};function i(n,s){return{}.hasOwnProperty.call(t,n)?t[n].push(s):t[n]=[s],this}function e(n,s){if(!{}.hasOwnProperty.call(t,n))return this;let u=t[n].indexOf(s);return u!==-1&&t[n].splice(u,1),this}function r(n,s){if(!{}.hasOwnProperty.call(t,n))return this;s=s||{};let u=t[n];for(let l=0,d=u.length;l<d;l++)u[l].call(this,s);return this}return this.addEventListener=i,this.removeEventListener=e,this.dispatchEvent=r,this.getRegisteredEvents=()=>t,this}function S(t,i){if(!t)return!1;let e=t.getAttribute(m);return e?(e=e.split(" "),e.indexOf(i)>-1):!1}function W(t,i){if(S(t,i))return i;if(i.indexOf(" ")!==-1){let r=m+" values cannot contain spaces!";throw new Error(r)}let e=t.getAttribute(m);return e!==null&&(i=e+" "+i),t.setAttribute(m,i),i}var Q=$+"atomic_init";function St(t,i){if(!t||!t.classList){let e=t+' is not valid. Check that element is a DOM node with class "'+i+'"';throw new Error(e)}return t}function Lt(t,i){let e=t.classList.contains(i)?t:t.querySelector("."+i);if(!e){let r=i+" not found on or in passed DOM node.";throw new Error(r)}return e}function Ot(t,i){return St(t,i),Lt(t,i)}function Tt(t){return S(t,Q)?!1:(W(t,Q),!0)}function wt(t,i,e,r={}){let s=(e||document).querySelectorAll(t),u=[],l,d;for(let p=0,a=s.length;p<a;p++)d=s[p],S(d,Q)===!1&&(l=new i(d),l.init(r),u.push(l));return u}function it(t,i){i=i||document;let e=[];try{e=i.querySelectorAll(t)}catch(r){let n=`${t} not found in DOM! ${r}`;throw new Error(n)}return e.length===0&&t.indexOf(w)===-1&&(e=nt(t,i)),e}function It(t,i,e,r){let n=[];t instanceof NodeList?n=t:t instanceof Node?n=[t]:typeof t=="string"&&(n=it(t,r));for(let s=0,u=n.length;s<u;s++)n[s].addEventListener(i,e,!1);return n}function V(t,i){let e;if(S(t,i))return e=t,e;if(t){let r="["+m+"="+i+"]";e=t.querySelector(r)}if(!e){let r=i+" behavior not found on passed DOM node!";throw new Error(r)}return e}function nt(t,i){return t=m+"*="+w+t,t="["+t+"]",it(t,i)}var B=Object.prototype.toString;function rt(t){return typeof t=="undefined"}function Nt(t){return typeof t!="undefined"}function Mt(t){return t!==null&&typeof t=="object"}function st(t){return B.call(t)==="[object String]"}function Ct(t){return B.call(t)==="[object Number]"}function Bt(t){return B.call(t)==="[object Date]"}var Dt=Array.isArray||function(i){return B.call(i)==="[object Array]"};function Pt(t){return B.call(t)==="[object Function]"}function Ht(t){return rt(t)||t===null||st(t)&&t.length<=0||/^\s*$/.test(t)}function Rt(){return!!new RegExp(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i).test(navigator.userAgent)}function c(t,i,e){let r=i,n=t;if(!e)throw new Error("Child transition argument must be defined!");let s=e,u,l,d,p=!1,a=!1,E=!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 b(){l&&p?(n.addEventListener(l,d),s.dispatchEvent(c.BEGIN_EVENT,{target:s,type:c.BEGIN_EVENT}),n.classList.add(c.ANIMATING_CLASS),a=!0):(s.dispatchEvent(c.BEGIN_EVENT,{target:s,type:c.BEGIN_EVENT}),d())}function x(){n.removeEventListener(l,d)}function L(f){return f&&f.propertyName!==r.CSS_PROPERTY?!1:(x(),n.classList.remove(c.ANIMATING_CLASS),s.dispatchEvent(c.END_EVENT,{target:s,type:c.END_EVENT}),a=!1,!0)}function I(){let f;for(f in r)({}).hasOwnProperty.call(r,f)&&r[f]!==r.BASE_CLASS&&n.classList.contains(r[f])&&n.classList.remove(r[f])}function g(){a&&(n.style.webkitTransitionDuration="0",n.style.mozTransitionDuration="0",n.style.oTransitionDuration="0",n.style.transitionDuration="0",n.removeEventListener(l,d),d(),n.style.webkitTransitionDuration="",n.style.mozTransitionDuration="",n.style.oTransitionDuration="",n.style.transitionDuration="")}function O(){g(),I(),n.classList.remove(r.BASE_CLASS)}function H(){n.classList.remove(c.NO_ANIMATION_CLASS),p=!0}function j(){n.classList.add(c.NO_ANIMATION_CLASS),p=!1}function N(f){if(!f){let z="Element does not have TransitionEnd event. It may be null!";throw new Error(z)}let F,M={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},T;for(T in M)if({}.hasOwnProperty.call(M,T)&&typeof f.style[T]!="undefined"){F=M[T];break}return F}function R(f){O(),H(),n=f,n.classList.add(r.BASE_CLASS),l=N(n)}function G(f){if(p=!n.classList.contains(c.NO_ANIMATION_CLASS),d=L.bind(this),R(n),!f)throw new Error("Transition needs to be passed an initial CSS class on initialization!");return n.classList.add(f),this}function U(f){return E||(I(),E=!0),n.classList.contains(f)?!1:(x(),n.classList.remove(u),u=f,b(),n.classList.add(u),!0)}return this.animateOff=j,this.animateOn=H,this.applyClass=U,this.halt=g,this.init=G,this.isAnimated=()=>p,this.remove=O,this.setElement=R,this}c.BEGIN_EVENT="transitionbegin";c.END_EVENT="transitionend";c.NO_ANIMATION_CLASS="u-no-animation";c.ANIMATING_CLASS="u-is-animating";var D=w+"flyout-menu",kt="["+m+"="+D;function ot(t,i=!0){let e=V(t,D),r=H(t),n=V(t,D+"_content"),s=0,u=0,l=1,d=2,p=3,a,E,b,x=z.bind(this),L=T.bind(this),I,g=!0,O=!1;function H(o){let h=[],v=o.querySelectorAll(`${kt}_trigger]`),C,y,K;for(let q=v.length>>>0;q--;){for(K=!1,C=v[q],y=C.parentElement;y!==o;)y.getAttribute(m)&&y.getAttribute(m).split(" ").indexOf(D)!==-1?(K=!0,y=o):y=y.parentElement;K||h.unshift(v[q])}return h}function j(o=!1){return s=o?p:u,r.forEach(h=>{N("expanded",h,o),h.addEventListener("click",f.bind(this)),h.addEventListener("touchstart",R,{passive:!0}),h.addEventListener("mouseover",G.bind(this)),h.addEventListener("mouseout",U.bind(this))}),n.setAttribute("data-open",o?"true":"false"),i&&!o&&n.setAttribute("hidden",""),tt(),this}function N(o,h,v){let C=String(v);return h.setAttribute("aria-"+o,C),C}function R(){O=!0}function G(o){g||(O||this.dispatchEvent("triggerover",{target:this,trigger:o.target,type:"triggerover"}),O=!1)}function U(o){g||this.dispatchEvent("triggerout",{target:this,trigger:o.target,type:"triggerout"})}function f(o){if(!g)switch(this.dispatchEvent("triggerclick",{target:this,trigger:o.target,type:"triggerclick"}),o.preventDefault(),s){case u:case l:this.expand();break;case d:case p:this.collapse();break}}function F(){if(a==null||a.halt(),s===d||s===p)return this;if(s=d,i&&n.removeAttribute("hidden"),this.dispatchEvent("expandbegin",{target:this,type:"expandbegin"}),!E||!b)return L(),this;let o=a==null?void 0:a.isAnimated();return o&&a.addEventListener(c.END_EVENT,L),E(),o||L(),this}function M(){if(a==null||a.halt(),s===l||s===u)return this;for(let h=0,v=r.length;h<v;h++)N("expanded",r[h],!1);if(n.setAttribute("data-open","false"),s=l,this.dispatchEvent("collapsebegin",{target:this,type:"collapsebegin"}),!b||!E)return x(),this;let o=a==null?void 0:a.isAnimated();return o&&a.addEventListener(c.END_EVENT,x),b(),o||x(),this}function T(){s=p,n.setAttribute("data-open","true"),a&&a.removeEventListener(c.END_EVENT,L),this.dispatchEvent("expandend",{target:this,type:"expandend"});for(let o=0,h=r.length;o<h;o++)N("expanded",r[o],!0)}function z(){s=u,i&&n.setAttribute("hidden",""),a&&a.removeEventListener(c.END_EVENT,x),this.dispatchEvent("collapseend",{target:this,type:"collapseend"})}function dt(o,h,v){a=o,h&&h!==b&&(b=h),v&&v!==E&&(E=v)}function lt(){a&&a.remove();let o;a=o,E=o,b=o}function ft(){return{container:e,content:n,trigger:r}}function tt(){return g&&(g=!1),!g}function ht(){return g||(g=!0),g}function pt(o){return I=o,this}let Y=new _;return this.addEventListener=Y.addEventListener,this.removeEventListener=Y.removeEventListener,this.dispatchEvent=Y.dispatchEvent,this.init=j,this.expand=F,this.collapse=M,this.setTransition=dt,this.clearTransition=lt,this.getData=()=>I,this.getTransition=()=>a,this.getDom=ft,this.isAnimating=()=>s===d||s===l,this.isExpanded=()=>s===p,this.resume=tt,this.setData=pt,this.suspend=ht,ot.BASE_CLASS=D,this}var X={CSS_PROPERTY:"opacity",BASE_CLASS:"u-alpha-transition",ALPHA_100:"u-alpha-100",ALPHA_0:"u-alpha-0"};function at(t){let i=new _,e=new c(t,X,this);function r(u){return e.init(u),this}function n(){return e.applyClass(X.ALPHA_100),this}function s(){return e.applyClass(X.ALPHA_0),this}return this.addEventListener=i.addEventListener,this.dispatchEvent=i.dispatchEvent,this.removeEventListener=i.removeEventListener,this.animateOff=e.animateOff,this.animateOn=e.animateOn,this.halt=e.halt,this.isAnimated=e.isAnimated,this.remove=e.remove,this.setElement=e.setElement,this.fadeIn=n,this.fadeOut=s,this.init=r,this}at.CLASSES=X;var P={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 ut(t){let i=new _,e=new c(t,P,this),r=0;function n(){let b=t.scrollHeight+"px";t.style.maxHeight=b}function s(){window.removeEventListener("load",s),n()}function u(E){return e.init(E),window.addEventListener("load",s),window.addEventListener("resize",()=>{n()}),this}function l(){return n(),e.applyClass(P.MH_DEFAULT),(!r||t.scrollHeight>r)&&(r=t.scrollHeight),this}function d(){return e.applyClass(P.MH_SUMMARY),r=t.scrollHeight,this}function p(){return e.applyClass(P.MH_ZERO),r=t.scrollHeight,this}function a(){return t.style.maxHeight="",e.remove()}return this.addEventListener=i.addEventListener,this.dispatchEvent=i.dispatchEvent,this.removeEventListener=i.removeEventListener,this.animateOff=e.animateOff,this.animateOn=e.animateOn,this.halt=e.halt,this.isAnimated=e.isAnimated,this.setElement=e.setElement,this.refresh=n,this.remove=a,this.init=u,this.maxHeightDefault=l,this.maxHeightSummary=d,this.maxHeightZero=p,this}ut.CLASSES=P;var A={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 ct(t){let i=new _,e=new c(t,A,this);function r(d){return e.init(d),this}function n(){return e.applyClass(A.MOVE_TO_ORIGIN),this}function s(d){d=d||1;let p=[A.MOVE_LEFT,A.MOVE_LEFT_2X,A.MOVE_LEFT_3X];return e.applyClass(p[d-1]),this}function u(){return e.applyClass(A.MOVE_RIGHT),this}function l(){return e.applyClass(A.MOVE_UP),this}return this.addEventListener=i.addEventListener,this.dispatchEvent=i.dispatchEvent,this.removeEventListener=i.removeEventListener,this.animateOff=e.animateOff,this.animateOn=e.animateOn,this.halt=e.halt,this.isAnimated=e.isAnimated,this.setElement=e.setElement,this.remove=e.remove,this.init=r,this.moveLeft=()=>s(1),this.moveLeft2=()=>s(2),this.moveLeft3=()=>s(3),this.moveRight=u,this.moveToOrigin=n,this.moveUp=l,this}ct.CLASSES=A;})();
|
|
2
2
|
//# sourceMappingURL=index.js.map
|