uniform-ui 2.3.7 → 3.0.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assets/javascripts/uniform.es5.js +1 -1
- data/lib/assets/javascripts/uniform.js +19 -19
- data/lib/assets/javascripts/uniform/checkbox.js +59 -16
- data/lib/assets/javascripts/uniform/component.js +20 -4
- data/lib/assets/javascripts/uniform/dropdown.js +78 -209
- data/lib/assets/javascripts/uniform/floating-label-input.js +63 -0
- data/lib/assets/javascripts/uniform/icons.js +12 -3
- data/lib/assets/javascripts/uniform/modal.js +15 -18
- data/lib/assets/javascripts/uniform/popover.js +45 -29
- data/lib/assets/javascripts/uniform/resizer.js +26 -30
- data/lib/assets/javascripts/uniform/select.js +188 -218
- data/lib/assets/javascripts/uniform/tooltip.js +11 -11
- data/lib/assets/stylesheets/uniform.scss +3 -7
- data/lib/assets/stylesheets/uniform/base.scss +20 -1
- data/lib/assets/stylesheets/uniform/components/buttons.scss +171 -184
- data/lib/assets/stylesheets/uniform/components/checkbox.scss +104 -0
- data/lib/assets/stylesheets/uniform/components/container.scss +3 -2
- data/lib/assets/stylesheets/uniform/components/dropdown.scss +8 -5
- data/lib/assets/stylesheets/uniform/components/floating-label-input.scss +29 -0
- data/lib/assets/stylesheets/uniform/components/input-group.scss +30 -0
- data/lib/assets/stylesheets/uniform/components/label.scss +21 -16
- data/lib/assets/stylesheets/uniform/components/loaders.scss +28 -51
- data/lib/assets/stylesheets/uniform/components/nav.scss +50 -87
- data/lib/assets/stylesheets/uniform/components/pointer.scss +83 -0
- data/lib/assets/stylesheets/uniform/components/select.scss +97 -107
- data/lib/assets/stylesheets/uniform/components/table.scss +31 -138
- data/lib/assets/stylesheets/uniform/components/thumb.scss +40 -25
- data/lib/assets/stylesheets/uniform/components/z-input.scss +20 -0
- data/lib/assets/stylesheets/uniform/defaults.scss +31 -10
- data/lib/assets/stylesheets/uniform/functions.scss +32 -7
- data/lib/assets/stylesheets/uniform/mixins.scss +110 -57
- data/lib/assets/stylesheets/uniform/utilities.scss +55 -0
- data/lib/assets/stylesheets/uniform/utilities/background.scss +9 -0
- data/lib/assets/stylesheets/uniform/utilities/borders.scss +84 -0
- data/lib/assets/stylesheets/uniform/utilities/effects.scss +172 -0
- data/lib/assets/stylesheets/uniform/utilities/layout.scss +174 -0
- data/lib/assets/stylesheets/uniform/utilities/position.scss +42 -0
- data/lib/assets/stylesheets/uniform/utilities/sizing.scss +54 -0
- data/lib/assets/stylesheets/uniform/utilities/spacing.scss +62 -0
- data/lib/assets/stylesheets/uniform/utilities/svg.scss +5 -0
- data/lib/assets/stylesheets/uniform/utilities/text.scss +158 -0
- data/lib/assets/stylesheets/uniform/variables.scss +111 -42
- data/lib/uniform/version.rb +1 -1
- metadata +25 -48
- data/lib/assets/javascripts/uniform.jquery.js +0 -152
- data/lib/assets/javascripts/uniform/dom-helpers.js +0 -158
- data/lib/assets/javascripts/uniform/floating-label.js +0 -54
- data/lib/assets/stylesheets/uniform-print.scss +0 -1
- data/lib/assets/stylesheets/uniform/components.scss +0 -11
- data/lib/assets/stylesheets/uniform/components/alert.scss +0 -72
- data/lib/assets/stylesheets/uniform/components/card.scss +0 -93
- data/lib/assets/stylesheets/uniform/components/form.scss +0 -149
- data/lib/assets/stylesheets/uniform/components/form/checkbox-collection.scss +0 -103
- data/lib/assets/stylesheets/uniform/components/form/checkbox.scss +0 -58
- data/lib/assets/stylesheets/uniform/components/form/floating-label.scss +0 -65
- data/lib/assets/stylesheets/uniform/components/form/input-group.scss +0 -56
- data/lib/assets/stylesheets/uniform/components/form/tristate.scss +0 -88
- data/lib/assets/stylesheets/uniform/components/grid.scss +0 -179
- data/lib/assets/stylesheets/uniform/components/row.scss +0 -67
- data/lib/assets/stylesheets/uniform/components/tooltip.scss +0 -41
- data/lib/assets/stylesheets/uniform/helpers.scss +0 -133
- data/lib/assets/stylesheets/uniform/helpers/border.scss +0 -28
- data/lib/assets/stylesheets/uniform/helpers/colors.scss +0 -24
- data/lib/assets/stylesheets/uniform/helpers/margin.scss +0 -27
- data/lib/assets/stylesheets/uniform/helpers/padding.scss +0 -9
- data/lib/assets/stylesheets/uniform/helpers/position.scss +0 -20
- data/lib/assets/stylesheets/uniform/helpers/sizes.scss +0 -38
- data/lib/assets/stylesheets/uniform/helpers/text.scss +0 -152
- data/lib/assets/stylesheets/uniform/print/grid.scss +0 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2430fe0dd6aee3aa8a1463025c1375a2fb999f9945aa4303a6d997911d022132
|
4
|
+
data.tar.gz: dcc784665e6b469959382171c77cd2bd2d781c18776ccac40827bfa7b7c6d69d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f27411ee8b95de89de612e492ab083617f33e4ff170151772ef3bdfabbd126087f59419cc0a3baf868d584a581bff9c61dd2ca246a2c317dd1b2e3fdd748875d
|
7
|
+
data.tar.gz: d61f77703021262528d3b915b8ca563950fbd3fcf24fdc29a787856c4bce0dec61a3b7fda826e0b91812ec2245895bb4402255cb4b56b0be51dba7245e1f1aff
|
@@ -1 +1 @@
|
|
1
|
-
!function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e.exports}var v=t(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),y=t(function(t){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)}),m=(y.version,function(i,o,t){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(i),void 0===o)return i;switch(t){case 1:return function(t){return i.call(o,t)};case 2:return function(t,e){return i.call(o,t,e)};case 3:return function(t,e,n){return i.call(o,t,e,n)}}return function(){return i.apply(o,arguments)}}),u=function(t){return"object"==typeof t?null!==t:"function"==typeof t},s=function(t){if(!u(t))throw TypeError(t+" is not an object!");return t},c=function(t){try{return!!t()}catch(t){return!0}},i=!c(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),e=v.document,n=u(e)&&u(e.createElement),o=function(t){return n?e.createElement(t):{}},r=!i&&!c(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}),l=function(t,e){if(!u(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!u(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!u(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!u(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},a=Object.defineProperty,h={f:i?Object.defineProperty:function(t,e,n){if(s(t),e=l(e,!0),s(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x=i?function(t,e,n){return h.f(t,e,_(1,n))}:function(t,e,n){return t[e]=n,t},f={}.hasOwnProperty,b=function(t,e){return f.call(t,e)},g="prototype",w=function(t,e,n){var i,o,r,s=t&w.F,l=t&w.G,u=t&w.S,c=t&w.P,a=t&w.B,h=t&w.W,f=l?y:y[e]||(y[e]={}),p=f[g],d=l?v:u?v[e]:(v[e]||{})[g];for(i in l&&(n=e),n)(o=!s&&d&&void 0!==d[i])&&b(f,i)||(r=o?d[i]:n[i],f[i]=l&&"function"!=typeof d[i]?n[i]:a&&o?m(r,v):h&&d[i]==r?function(i){var t=function(t,e,n){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(t);case 2:return new i(t,e)}return new i(t,e,n)}return i.apply(this,arguments)};return t[g]=i[g],t}(r):c&&"function"==typeof r?m(Function.call,r):r,c&&((f.virtual||(f.virtual={}))[i]=r,t&w.R&&p&&!p[i]&&x(p,i,r)))};w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128;var p,S=w,d={}.toString,k=function(t){return d.call(t).slice(8,-1)},O=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==k(t)?t.split(""):Object(t)},T=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},j=function(t){return O(T(t))},E=Math.ceil,L=Math.floor,C=function(t){return isNaN(t=+t)?0:(0<t?L:E)(t)},P=Math.min,z=Math.max,M=Math.min,A=t(function(t){var e="__core-js_shared__",n=v[e]||(v[e]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:y.version,mode:"pure",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),N=0,H=Math.random(),I=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++N+H).toString(36))},q=A("keys"),F=function(t){return q[t]||(q[t]=I(t))},R=(p=!1,function(t,e,n){var i,o,r,s,l=j(t),u=0<(i=l.length)?P(C(i),9007199254740991):0,c=(r=u,(o=C(o=n))<0?z(o+r,0):M(o,r));if(p&&e!=e){for(;c<u;)if((s=l[c++])!=s)return!0}else for(;c<u;c++)if((p||c in l)&&l[c]===e)return p||c||0;return!p&&-1}),D=F("IE_PROTO"),W=function(t,e){var n,i=j(t),o=0,r=[];for(n in i)n!=D&&b(i,n)&&r.push(n);for(;e.length>o;)b(i,n=e[o++])&&(~R(r,n)||r.push(n));return r},B="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),G=Object.keys||function(t){return W(t,B)},Y={f:Object.getOwnPropertySymbols},V={f:{}.propertyIsEnumerable},K=function(t){return Object(T(t))},J=Object.assign,U=!J||c(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=J({},t)[n]||Object.keys(J({},e)).join("")!=i})?function(t,e){for(var n=K(t),i=arguments.length,o=1,r=Y.f,s=V.f;o<i;)for(var l,u=O(arguments[o++]),c=r?G(u).concat(r(u)):G(u),a=c.length,h=0;h<a;)s.call(u,l=c[h++])&&(n[l]=u[l]);return n}:J;S(S.S+S.F,"Object",{assign:U});var X=y.Object.assign,Q="\t\n\v\f\r \u2028\u2029\ufeff",Z="["+Q+"]",tt=RegExp("^"+Z+Z+"*"),et=RegExp(Z+Z+"*$"),nt=function(t,e,n){var i={},o=c(function(){return!!Q[t]()||"
"!="
"[t]()}),r=i[t]=o?e(it):Q[t];n&&(i[n]=r),S(S.P+S.F*o,"String",i)},it=nt.trim=function(t,e){return t=String(T(t)),1&e&&(t=t.replace(tt,"")),2&e&&(t=t.replace(et,"")),t},ot=nt,rt=v.parseInt,st=ot.trim,lt=/^[-+]?0[xX]/,ut=8!==rt(Q+"08")||22!==rt(Q+"0x16")?function(t,e){var n=st(String(t),3);return rt(n,e>>>0||(lt.test(n)?16:10))}:rt;S(S.G+S.F*(parseInt!=ut),{parseInt:ut});var ct=y.parseInt,at=Array.isArray||function(t){return"Array"==k(t)};S(S.S,"Array",{isArray:at});var ht=y.Array.isArray;var ft=function(t){if(ht(t))return t},pt=function(t,e){return{value:e,done:!!t}},dt={},vt=x,yt=i?Object.defineProperties:function(t,e){s(t);for(var n,i=G(e),o=i.length,r=0;r<o;)h.f(t,n=i[r++],e[n]);return t},mt=v.document,bt=mt&&mt.documentElement,gt=F("IE_PROTO"),wt=function(){},kt="prototype",_t=function(){var t,e=o("iframe"),n=B.length;for(e.style.display="none",bt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),_t=t.F;n--;)delete _t[kt][B[n]];return _t()},xt=Object.create||function(t,e){var n;return null!==t?(wt[kt]=s(t),n=new wt,wt[kt]=null,n[gt]=t):n=_t(),void 0===e?n:yt(n,e)},St=t(function(t){var e=A("wks"),n=v.Symbol,i="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=i&&n[t]||(i?n:I)("Symbol."+t))}).store=e}),Ot=h.f,Tt=St("toStringTag"),jt=function(t,e,n){t&&!b(t=n?t:t.prototype,Tt)&&Ot(t,Tt,{configurable:!0,value:e})},Et={};x(Et,St("iterator"),function(){return this});var Lt=F("IE_PROTO"),Ct=Object.prototype,Pt=Object.getPrototypeOf||function(t){return t=K(t),b(t,Lt)?t[Lt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ct:null},zt=St("iterator"),Mt=!([].keys&&"next"in[].keys()),At="values",Nt=function(){return this},Ht=function(t,e,n,i,o,r,s){var l,u,c;u=e,c=i,(l=n).prototype=xt(Et,{next:_(1,c)}),jt(l,u+" Iterator");var a,h,f,p=function(t){if(!Mt&&t in m)return m[t];switch(t){case"keys":case At:return function(){return new n(this,t)}}return function(){return new n(this,t)}},d=e+" Iterator",v=o==At,y=!1,m=t.prototype,b=m[zt]||m["@@iterator"]||o&&m[o],g=b||p(o),w=o?v?p("entries"):g:void 0,k="Array"==e&&m.entries||b;if(k&&(f=Pt(k.call(new t)))!==Object.prototype&&f.next&&jt(f,d,!0),v&&b&&b.name!==At&&(y=!0,g=function(){return b.call(this)}),s&&(Mt||y||!m[zt])&&x(m,zt,g),dt[e]=g,dt[d]=Nt,o)if(a={values:v?g:p(At),keys:r?g:p("keys"),entries:w},s)for(h in a)h in m||vt(m,h,a[h]);else S(S.P+S.F*(Mt||y),e,a);return a};Ht(Array,"Array",function(t,e){this._t=j(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,pt(1)):pt(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values");dt.Arguments=dt.Array;for(var It=St("toStringTag"),qt="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Ft=0;Ft<qt.length;Ft++){var Rt=qt[Ft],$t=v[Rt],Dt=$t&&$t.prototype;Dt&&!Dt[It]&&x(Dt,It,Rt),dt[Rt]=dt.Array}var Wt,Bt=(Wt=!0,function(t,e){var n,i,o=String(T(t)),r=C(e),s=o.length;return r<0||s<=r?Wt?"":void 0:(n=o.charCodeAt(r))<55296||56319<n||r+1===s||(i=o.charCodeAt(r+1))<56320||57343<i?Wt?o.charAt(r):n:Wt?o.slice(r,r+2):i-56320+(n-55296<<10)+65536});Ht(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=Bt(e,n),this._i+=t.length,{value:t,done:!1})});var Gt=St("toStringTag"),Yt="Arguments"==k(function(){return arguments}()),Vt=St("iterator"),Kt=y.getIteratorMethod=function(t){if(null!=t)return t[Vt]||t["@@iterator"]||dt[(e=t,void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(n=Object(e),Gt))?i:Yt?k(n):"Object"==(o=k(n))&&"function"==typeof n.callee?"Arguments":o)];var e,n,i,o},Jt=y.getIterator=function(t){var e=Kt(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return s(e.call(t))};var Ut=function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,l=Jt(t);!(i=(s=l.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==l.return||l.return()}finally{if(o)throw r}}return n};var Xt=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var Qt=function(t,e){return ft(t)||Ut(t,e)||Xt()},Zt=function(t,e){var n=(y.Object||{})[t]||Object[t],i={};i[t]=e(n),S(S.S+S.F*c(function(){n(1)}),"Object",i)};Zt("keys",function(){return function(t){return G(K(t))}});var te=y.Object.keys;var ee=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};S(S.S+S.F*!i,"Object",{defineProperty:h.f});var ne=y.Object,ie=function(t,e,n){return ne.defineProperty(t,e,n)};function oe(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),ie(t,i.key,i)}}var re=function(t,e,n){return e&&oe(t.prototype,e),n&&oe(t,n),t},se={f:St},le=se.f("iterator"),ue=t(function(t){var n=I("meta"),e=h.f,i=0,o=Object.isExtensible||function(){return!0},r=!c(function(){return o(Object.preventExtensions({}))}),s=function(t){e(t,n,{value:{i:"O"+ ++i,w:{}}})},l=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!b(t,n)){if(!o(t))return"F";if(!e)return"E";s(t)}return t[n].i},getWeak:function(t,e){if(!b(t,n)){if(!o(t))return!0;if(!e)return!1;s(t)}return t[n].w},onFreeze:function(t){return r&&l.NEED&&o(t)&&!b(t,n)&&s(t),t}}}),ce=(ue.KEY,ue.NEED,ue.fastKey,ue.getWeak,ue.onFreeze,h.f),ae=function(t){var e=y.Symbol||(y.Symbol={});"_"==t.charAt(0)||t in e||ce(e,t,{value:se.f(t)})},he=B.concat("length","prototype"),fe={f:Object.getOwnPropertyNames||function(t){return W(t,he)}},pe=fe.f,de={}.toString,ve="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ye={f:function(t){return ve&&"[object Window]"==de.call(t)?function(t){try{return pe(t)}catch(t){return ve.slice()}}(t):pe(j(t))}},me=Object.getOwnPropertyDescriptor,be={f:i?me:function(t,e){if(t=j(t),e=l(e,!0),r)try{return me(t,e)}catch(t){}if(b(t,e))return _(!V.f.call(t,e),t[e])}},ge=ue.KEY,we=be.f,ke=h.f,_e=ye.f,xe=v.Symbol,Se=v.JSON,Oe=Se&&Se.stringify,Te="prototype",je=St("_hidden"),Ee=St("toPrimitive"),Le={}.propertyIsEnumerable,Ce=A("symbol-registry"),Pe=A("symbols"),ze=A("op-symbols"),Me=Object[Te],Ae="function"==typeof xe,Ne=v.QObject,He=!Ne||!Ne[Te]||!Ne[Te].findChild,Ie=i&&c(function(){return 7!=xt(ke({},"a",{get:function(){return ke(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=we(Me,e);i&&delete Me[e],ke(t,e,n),i&&t!==Me&&ke(Me,e,i)}:ke,qe=function(t){var e=Pe[t]=xt(xe[Te]);return e._k=t,e},Fe=Ae&&"symbol"==typeof xe.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof xe},Re=function(t,e,n){return t===Me&&Re(ze,e,n),s(t),e=l(e,!0),s(n),b(Pe,e)?(n.enumerable?(b(t,je)&&t[je][e]&&(t[je][e]=!1),n=xt(n,{enumerable:_(0,!1)})):(b(t,je)||ke(t,je,_(1,{})),t[je][e]=!0),Ie(t,e,n)):ke(t,e,n)},$e=function(t,e){s(t);for(var n,i=function(t){var e=G(t),n=Y.f;if(n)for(var i,o=n(t),r=V.f,s=0;o.length>s;)r.call(t,i=o[s++])&&e.push(i);return e}(e=j(e)),o=0,r=i.length;o<r;)Re(t,n=i[o++],e[n]);return t},De=function(t){var e=Le.call(this,t=l(t,!0));return!(this===Me&&b(Pe,t)&&!b(ze,t))&&(!(e||!b(this,t)||!b(Pe,t)||b(this,je)&&this[je][t])||e)},We=function(t,e){if(t=j(t),e=l(e,!0),t!==Me||!b(Pe,e)||b(ze,e)){var n=we(t,e);return!n||!b(Pe,e)||b(t,je)&&t[je][e]||(n.enumerable=!0),n}},Be=function(t){for(var e,n=_e(j(t)),i=[],o=0;n.length>o;)b(Pe,e=n[o++])||e==je||e==ge||i.push(e);return i},Ge=function(t){for(var e,n=t===Me,i=_e(n?ze:j(t)),o=[],r=0;i.length>r;)!b(Pe,e=i[r++])||n&&!b(Me,e)||o.push(Pe[e]);return o};Ae||(vt((xe=function(){if(this instanceof xe)throw TypeError("Symbol is not a constructor!");var e=I(0<arguments.length?arguments[0]:void 0),n=function(t){this===Me&&n.call(ze,t),b(this,je)&&b(this[je],e)&&(this[je][e]=!1),Ie(this,e,_(1,t))};return i&&He&&Ie(Me,e,{configurable:!0,set:n}),qe(e)})[Te],"toString",function(){return this._k}),be.f=We,h.f=Re,fe.f=ye.f=Be,V.f=De,Y.f=Ge,se.f=function(t){return qe(St(t))}),S(S.G+S.W+S.F*!Ae,{Symbol:xe});for(var Ye="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ve=0;Ye.length>Ve;)St(Ye[Ve++]);for(var Ke=G(St.store),Je=0;Ke.length>Je;)ae(Ke[Je++]);S(S.S+S.F*!Ae,"Symbol",{for:function(t){return b(Ce,t+="")?Ce[t]:Ce[t]=xe(t)},keyFor:function(t){if(!Fe(t))throw TypeError(t+" is not a symbol!");for(var e in Ce)if(Ce[e]===t)return e},useSetter:function(){He=!0},useSimple:function(){He=!1}}),S(S.S+S.F*!Ae,"Object",{create:function(t,e){return void 0===e?xt(t):$e(xt(t),e)},defineProperty:Re,defineProperties:$e,getOwnPropertyDescriptor:We,getOwnPropertyNames:Be,getOwnPropertySymbols:Ge}),Se&&S(S.S+S.F*(!Ae||c(function(){var t=xe();return"[null]"!=Oe([t])||"{}"!=Oe({a:t})||"{}"!=Oe(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e=i[1],(u(e)||void 0!==t)&&!Fe(t))return at(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Fe(e))return e}),i[1]=e,Oe.apply(Se,i)}}),xe[Te][Ee]||x(xe[Te],Ee,xe[Te].valueOf),jt(xe,"Symbol"),jt(Math,"Math",!0),jt(v.JSON,"JSON",!0),ae("asyncIterator"),ae("observable");var Ue=y.Symbol,Xe=t(function(e){function n(t){return(n="function"==typeof Ue&&"symbol"==typeof le?function(t){return typeof t}:function(t){return t&&"function"==typeof Ue&&t.constructor===Ue&&t!==Ue.prototype?"symbol":typeof t})(t)}function i(t){return"function"==typeof Ue&&"symbol"===n(le)?e.exports=i=function(t){return n(t)}:e.exports=i=function(t){return t&&"function"==typeof Ue&&t.constructor===Ue&&t!==Ue.prototype?"symbol":n(t)},i(t)}e.exports=i});var Qe=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var Ze=function(t,e){return!e||"object"!==Xe(e)&&"function"!=typeof e?Qe(t):e};Zt("getPrototypeOf",function(){return function(t){return Pt(K(t))}});var tn=y.Object.getPrototypeOf,en=function(t,e){if(s(t),!u(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},nn={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{(i=m(Function.call,be.f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return en(t,e),n?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:en};S(S.S,"Object",{setPrototypeOf:nn.set});var on=y.Object.setPrototypeOf,rn=t(function(e){function n(t){return e.exports=n=on?tn:function(t){return t.__proto__||tn(t)},n(t)}e.exports=n});S(S.S,"Object",{create:xt});var sn=y.Object,ln=function(t,e){return sn.create(t,e)},un=t(function(n){function i(t,e){return n.exports=i=on||function(t,e){return t.__proto__=e,t},i(t,e)}n.exports=i});var cn=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=ln(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&un(t,e)};function an(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function hn(e,t){e.classList?vn(t.split(" "),function(t){e.classList.add(t)}):e.className+=" "+t}function fn(t,n){var e=function(e){e.classList?n.split(" ").forEach(function(t){return e.classList.remove(t)}):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," ")};NodeList.prototype.isPrototypeOf(t)?vn(t,e):e(t)}function pn(t,e,n){if(t.classList)t.classList.toggle(e,n);else{var i=t.className.split(" "),o=i.indexOf(e);!1===n||!0!==n&&0<=o?i.splice(o,1):i.push(e),t.className=i.join(" ")}}function dn(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!1),t.dispatchEvent(n)}function vn(t,e){for(var n=0;n<t.length;n++)e(t[n],n)}function yn(t,e){return getComputedStyle(t)[e]}function mn(t){t.parentNode.removeChild(t)}function bn(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]}function gn(t,e){var n=[];return vn(t,function(t){e(t)&&n.push(t)}),n}function wn(t){var e=t.getBoundingClientRect();return{top:e.top+window.scrollY,left:e.left+window.scrollX}}function kn(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=ct(n.marginTop)+ct(n.marginBottom)}function _n(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=ct(n.marginLeft)+ct(n.marginRight)}var xn=function(){function e(t){ee(this,e),t=t||{},this.eventListens=new Array,this.eventListeners=new Array,this.el=t.el||document.createElement("div"),this.cid=function(t){window.idCounter||(window.idCounter=0);var e=++window.idCounter+"";return t?t+e:e}("c"),this.on=function(t,e){this.eventListeners.push({type:t,handler:e})},this.off=function(e,t){this.eventListeners&&(this.eventListeners=this.eventListeners.filter(function(t){return!(t.type==e&&t.handler)}))}.bind(this),this.trigger=function(e){this.eventListeners&&this.eventListeners.forEach(function(t){"*"!=t.type&&"all"!=t.type&&e!=t.type||t.handler(e,this)})},this.initialize(t)}return re(e,[{key:"pick",value:function(e,t){var n={};return t.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n}},{key:"listenTo",value:function(t,e,n,i,o){"string"!=typeof n&&(o=i,i=n,n=!1),o||(o=this);var r=[t,e,function(t){if(!n||an(t.target,n.replace(".","")))return i.bind(o).apply(void 0,arguments)}.bind(o)];this.eventListens.push(r),t.addEventListener(e,r[2])}},{key:"listenToOnce",value:function(n,i,o,r){r||(r=this);var t=function t(e){return n.removeEventListener(i,t),o.apply(r,arguments)},e=[n,i,t];this.eventListens.push(e),n.addEventListener(i,t)}},{key:"remove",value:function(){this.trigger("removed"),this.eventListens&&this.eventListens.forEach(function(t){t[0].removeEventListener(t[1],t[2])}),delete this.eventListens,delete this.eventListeners,this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el),delete this.el}},{key:"initialize",value:function(){}}]),e}(),Sn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return cn(e,xn),re(e,[{key:"initialize",value:function(t){t=t||{},this.options={align:"center bottom",trigger:"click",show_arrow:!0,hide_sm:!1,square:!1,container:document.body,offset:{}},this.options.container=this.options.container||document.body,X(this.options,this.pick(t,te(this.options))),this.content=t.content,this.dropdown=document.createElement("div"),(this.el.dropdown=this).listenTo(this.el,this.options.trigger,this.toggle),this.listenTo(this.el,"mousedown",function(){this.mousedown=!0}),this.listenTo(this.el,"mouseup",function(){this.mousedown=!1}),this.listenTo(this.el,"focus",function(){this.mousedown||this.show()}),this.listenTo(document,"focus",this.outsideClick),this.listenTo(document,this.options.trigger,this.outsideClick),this.listenTo(document,"keyup",this.keyup),this.listenTo(window,"resize",this.resize)}},{key:"render",value:function(){if(hn(this.dropdown,"uniformDropdown-dropdown"),hn(this.dropdown,"absolute"),this.dropdown.style.minWidth=_n(this.el),this.dropdown.innerHTML=this.content.innerHTML?this.content.innerHTML:this.content,this.options.show_arrow){hn(this.dropdown,"has-pointer");var t=document.createElement("div");hn(t,"uniformDropdown-pointer"),this.dropdown.appendChild(t)}return pn(this.dropdown,"square",this.options.square),this.dropdown.style.display="none",this.options.container.appendChild(this.dropdown),fn(this.dropdown.querySelectorAll(".hidden"),"hidden"),this}},{key:"resize",value:function(){this.setPosition();var t=this.options.align.split(" "),e=!1;wn(this.dropdown).top+kn(this.dropdown)>Math.max(document.body.offsetHeight,window.innerHeight)&&(t[1]="top",e=!0),wn(this.dropdown).top<0&&(t[1]="bottom",e=!0),wn(this.dropdown).left<0&&(t[0]="right",e=!0),wn(this.dropdown).left+_n(this.dropdown)>document.body.offsetWidth&&(t[0]="left",e=!0),e&&this.setPosition(t.join(" "))}},{key:"setPosition",value:function(t){var e=(t=t||this.options.align).split(" "),n=Qt(e,2),i=n[0],o=n[1];i=i||"bottom",o=o||"bottom";var r=wn(this.el),s=this.options.container;"static"==getComputedStyle(s).position&&(s=s.offsetParent),s||(s=document.body);var l=wn(s);r={top:r.top-l.top,left:r.left-l.left};var u={};"left"==i?u.right=_n(s)-r.left:"center"==i?u.left=r.left+_n(this.el)/2-_n(this.dropdown)/2:"right"==i?u.left=r.left+_n(this.el):i.includes("%")?u.left=r.left+_n(this.el)*ct(i)/100:i.includes("px")&&(u.left=r.left+_n(this.el)+ct(i)),"top"==o?u.top=r.top-kn(this.dropdown):"center"==o?u.top=r.top+kn(this.el)/2-kn(this.dropdown)/2:"bottom"==o?u.top=r.top+kn(this.el):o.includes("%")?u.top=r.top+kn(this.el)*ct(o)/100:o.includes("px")&&(u.top=r.top+kn(this.el)+ct(o)),this.options.offset.left&&(u.left+=ct(this.options.offset.left)),this.options.offset.top&&(u.top+=ct(this.options.offset.top)),this.options.offset.left&&(u.right-=ct(this.options.offset.left)),this.dropdown.style.left="auto",this.dropdown.style.right="auto",fn(this.dropdown,"popover-left popover-right popover-center popover-top popover-bottom"),hn(this.dropdown,"popover-"+o),hn(this.dropdown,"popover-"+i),te(u).forEach(function(t){this.dropdown.style[t]=u[t]+"px"},this)}},{key:"remove",value:function(){xn.prototype.remove.apply(this,arguments),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown),delete this.dropdown}},{key:"toggle",value:function(t){an(this.el,"active")&&"click"==t.type?this.hide():this.show()}},{key:"show",value:function(t){t||(t={}),this.options.hide_sm&&window.innerWidth<720||(this.dropdown||this.render(),this.dropdown.style.display="block",hn(this.el,"active"),this.resize(),this.overlay=document.createElement("div"),hn(this.overlay,"uniformOverlay"),document.body.appendChild(this.overlay),window.innerWidth<720&&(this.lastScrollPosition=window.scrollY,hn(document.body,"uniformModal-hideBody")),this.listenTo(this.overlay,"click",this.hide),t.silent||this.trigger("shown"))}},{key:"hide",value:function(t){t||(t={}),this.dropdown&&an(this.el,"active")&&(this.dropdown.style.display="none",fn(this.el,"active"),this.overlay&&this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay),window.innerWidth<720&&(fn(document.body,"uniformModal-hideBody"),window.scrollTo(0,this.lastScrollPosition)),t.silent||this.trigger("hidden"))}},{key:"outsideClick",value:function(t){this.dropdown&&null!==this.dropdown.offsetParent&&t.target!==this.el&&t.target!==this.overlay&&(this.el.contains(t.target)||this.dropdown.contains(t.target)||this.hide())}},{key:"keyup",value:function(t){27==t.which&&this.hide()}}]),e}(),xn,"Dropdown"),On=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return cn(e,xn),re(e,[{key:"initialize",value:function(t){this.listenTo(this.el,"change",this.change)}},{key:"render",value:function(){var t=an(this.el,"uniformRadio")?"uniformRadio":"uniformCheckbox";return this.checkbox=document.createElement("div"),hn(this.checkbox,"".concat(t,"-indicator")),this.el.className&&""!=this.el.className.replace(t,"")&&hn(this.checkbox,this.el.className.replace(t,"")),pn(this.checkbox,"checked",this.el.checked),this.el.parentNode.insertBefore(this.checkbox,this.el.nextSibling),this.listenTo(this.checkbox,"click",this.click),this}},{key:"click",value:function(t){this.el.disabled||(this.el.checked=!this.el.checked,dn(this.el,"change"),t.preventDefault())}},{key:"change",value:function(){pn(this.checkbox,"checked",this.el.checked)}}]),e}(),xn,"Checkbox"),Tn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return cn(e,xn),re(e,[{key:"initialize",value:function(t){this.options={},this.options.klass=t.klass||!1,this.content=t.content,hn(this.el,"uniformModal"),this.listenTo(document,"keyup",this.keyup),this.listenTo(this.el,"click",this.checkCloseButton)}},{key:"keyup",value:function(t){27==t.which&&this.close()}},{key:"render",value:function(){var t="function"==typeof this.content?this.content():this.content;this.highest_z_index=0,this.overlay=document.createElement("div"),hn(this.overlay,"uniformModal-overlay"),this.blur=document.createElement("div"),hn(this.blur,"uniformModal-blur"),this.original_scroll=window.scrollY,this.blur.style.top=0-this.original_scroll+"px",0<document.body.querySelectorAll(".uniformModal").length&&(this.highest_z_index=Math.max(Array.prototype.map.call(document.body.querySelectorAll(".uniformModal"),function(t){return ct(yn(t,"zIndex"))})),this.el.style.zIndex=this.highest_z_index+2),this.el.appendChild(this.overlay);for(var e=document.body.children[0];e;){var n=e;e=n.nextElementSibling,n.matches('[blurrable="false"]')||this.blur.appendChild(n)}hn(document.body,"uniformModal-active"),document.body.appendChild(this.blur),document.body.appendChild(this.el);var i=document.createElement("div");hn(i,"uniformModal-container"),t instanceof Node?i.appendChild(t):i.innerHTML=t;var o=document.createElement("div");return hn(o,"uniformModal-close"),this.el.appendChild(o),this.el.style.top=window.scrollY,this.listenTo(this.overlay,"click",this.close),this.el.appendChild(i),this.options.klass&&hn(i,this.options.klass),t.innerHTML&&dn(t,"rendered"),this.trigger("rendered"),this}},{key:"checkCloseButton",value:function(t){an(t.target,"uniformModal-close")&&this.close()}},{key:"close",value:function(){fn(document.querySelectorAll("uniformModal-active"),"uniformModal-active");for(var t=this.blur.children,e=t.length,n=0;n<e;n++)document.body.appendChild(t[0]);this.blur.parentNode&&this.blur.parentNode.removeChild(this.blur),window.scrollTo(0,this.original_scroll),this.trigger("closed"),this.remove()}},{key:"remove",value:function(){xn.prototype.remove.apply(this,arguments),this.overlay&&this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay),delete this.overlay}}]),e}(),xn,"Modal"),jn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return cn(e,xn),re(e,[{key:"initialize",value:function(t){var e=this;this.showing=!1,t=t||{},this.options={zIndex:3,container:document.body,align:"center bottom",anchor:document.body,content:"needs content",offset:{left:0,top:0}},X(this.options,this.pick(t,te(this.options))),this.listenTo(document,"click",this.checkFocus),this.listenTo(document,"focusin",this.checkFocus),this.listenTo(document,"keyup",this.checkEscape),this.listenTo(window,"resize",function(){e.resize.bind(e)()}),"string"==typeof this.options.container&&(this.options.container=function(t,e){if(t.closest)return t.closest(e);for(;t;){if(Element.prototype.matches?t.matches(e):t.msMatchesSelector(e))return t;t=t.parentElement}}(this.options.anchor,this.options.container),this.options.container=this.options.container||document.body)}},{key:"render",value:function(){return this.showing=!0,this.el.style.position="absolute",this.el.style.zIndex=this.options.zIndex,this.options.content instanceof Node?this.el.appendChild(this.options.content):this.el.innerHTML=this.options.content,this.options.container.appendChild(this.el),this.resize(),this.trigger("shown"),this}},{key:"resize",value:function(){this.setPosition();var t=this.el.getBoundingClientRect(),e=document.body.getBoundingClientRect(),n=window.innerHeight;if(window.innerWidth,t.bottom>e.bottom&&t.bottom>n){var i=e.bottom-t.bottom;null!=this.el.style.top&&(this.el.style.top=ct(this.el.style.top)-i+"px"),null!=this.el.style.bottom&&(this.el.style.bottom=ct(this.el.style.bottom)+i+"px")}if(t.top<e.top){var o=e.top-t.top;null!=this.el.style.top&&(this.el.style.top=ct(this.el.style.top)+o+"px"),null!=this.el.style.bottom&&(this.el.style.bottom=ct(this.el.style.bottom)-o+"px")}if(t.left<e.left){var r=e.left-t.left;null!=this.el.style.left&&(this.el.style.left=ct(this.el.style.left)+r+"px"),null!=this.el.style.right&&(this.el.style.right=ct(this.el.style.right)-r+"px")}if(t.right>e.right){var s=e.right-t.right;null!=this.el.style.left&&(this.el.style.left=ct(this.el.style.left)+s+"px"),null!=this.el.style.right&&(this.el.style.right=ct(this.el.style.right)-s+"px")}}},{key:"setPosition",value:function(t){var e=(t=t||this.options.align).split(" "),n=Qt(e,2),i=n[0],o=n[1];i=i||"bottom";var r=wn(this.options.anchor),s=this.options.container;"static"==getComputedStyle(s).position&&(s=s.offsetParent),s||(s=document.body);var l=wn(s);r={top:r.top-l.top,left:r.left-l.left};var u={};if("left"==i?u.right=_n(s)-r.left:"center"==i?u.left=r.left+_n(this.options.anchor)/2-_n(this.el)/2:"right"==i?u.left=r.left+_n(this.options.anchor):i.includes("px")&&(u.left=r.left+ct(i)),"top"==o){var c=kn(s);s==document.body&&"static"==getComputedStyle(s).position?c=window.innerHeight:s==document.body&&(c=Math.max(c,document.body.clientHeight)),u.bottom=c-r.top}else"center"==o?(u.top=r.top+kn(this.options.anchor)/2,u.transform="translateY(-50%)"):"bottom"==o?u.top=r.top+kn(this.options.anchor):o.includes("px")&&(u.top=r.top+ct(o));this.options.offset.left&&(u.left+=ct(this.options.offset.left)),this.options.offset.left&&(u.right-=ct(this.options.offset.left)),this.options.offset.top&&(u.top+=ct(this.options.offset.top)),this.options.offset.top&&(u.bottom-=ct(this.options.offset.top)),this.el.style.left=null,this.el.style.right=null,this.el.style.top=null,this.el.style.bottom=null,this.el.style.transform=null,fn(this.el,"popover-left popover-right popover-center popover-top popover-bottom"),hn(this.el,"popover-"+o),hn(this.el,"popover-"+i),te(u).forEach(function(t){this.el.style[t]=u[t]+("transform"!=t?"px":"")},this)}},{key:"checkFocus",value:function(t){t.defaultPrevented||this.showing&&t.target!==this.el&&t.target!=this.options.anchor&&(this.el.contains(t.target)||this.options.anchor.contains(t.target)||this.hide())}},{key:"checkEscape",value:function(t){27==t.which&&this.hide()}},{key:"isHidden",value:function(){return!this.showing}},{key:"hide",value:function(t){t=t||{},this.showing&&(this.el.style.display="none",!(this.showing=!1)!==t.silent&&this.trigger("hidden"))}},{key:"show",value:function(){this.showing||(this.el.style.display="block",this.showing=!0,this.trigger("shown"))}},{key:"toggle",value:function(t){(t=t||this.showing)?this.hide():this.show()}}]),e}(),xn,"Popover"),En='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1em" height="1em" viewBox="0 0 32 32">\n<path d="M28.998 8.531l-2.134-2.134c-0.394-0.393-1.030-0.393-1.423 0l-12.795 12.795-6.086-6.13c-0.393-0.393-1.029-0.393-1.423 0l-2.134 2.134c-0.393 0.394-0.393 1.030 0 1.423l8.924 8.984c0.393 0.393 1.030 0.393 1.423 0l15.648-15.649c0.393-0.392 0.393-1.030 0-1.423z"></path>\n</svg>\n'.trim(),Ln='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1em" height="1em" viewBox="0 0 20 20">\n<path d="M13.418 7.601c0.271-0.268 0.709-0.268 0.979 0s0.271 0.701 0 0.969l-3.907 3.83c-0.271 0.268-0.709 0.268-0.979 0l-3.908-3.83c-0.27-0.268-0.27-0.701 0-0.969s0.708-0.268 0.979 0l3.418 3.14 3.418-3.14z"></path>\n</svg>\n'.trim(),Cn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return cn(e,xn),re(e,[{key:"initialize",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.options={label:!1,class:"",showAll:function(t){fn(t.querySelectorAll("button.hide"),"hide");var e=t.querySelector(".uniformSelect-show-all");return e.parentNode.removeChild(e),!1},limit:8,container:!1},X(this.options,this.pick(t,te(this.options))),this.listenTo(this.el,"change",this.renderSelected),this.listenTo(this.el,"close",this.hideOptions),(this.el.uniformSelect=this).activeIcon=document.createElement("span"),this.activeIcon.innerHTML=En,hn(this.activeIcon,"uniformSelect-option-icon")}},{key:"remove",value:function(){xn.prototype.remove.apply(this,arguments),this.edit_button.parentNode.removeChild(this.edit_button),delete this.this.edit_button,this.activeIcon.parentNode.removeChild(this.activeIcon),delete this.activeIcon,this.button_options_popover&&this.button_options_popover.remove(),this.button_options_modal&&this.button_options_modal.remove(),this.button_options&&(this.button_options.parentNode.removeChild(this.button_options),delete this.button_options)}},{key:"render",value:function(){this.edit_button=bn("\n <button type='button' class='uniformSelect-edit uniformInput outline block ".concat(this.options.class,'\'>\n <span class="text-js"></span>\n <span class="uniformSelect-edit-icon">').concat(Ln,"</span>\n </button>\n ")),this.el.name&&hn(this.edit_button,this.el.name.toLowerCase().replace(/[^a-z0-9\-_]+/g,"-")),this.el.style.display="none",this.el.insertAdjacentElement("beforebegin",this.edit_button),this.options.container||(this.options.container=this.edit_button.parentElement);var t=this.el.querySelectorAll("option")[0];this.edit_button.querySelector(".text-js").style.opacity=0,this.edit_button.querySelector(".text-js").innerHTML=t.textContent;var e=this.edit_button.querySelector(".text-js").offsetWidth;return this.edit_button.style.minWidth=e+"px",this.edit_button.querySelector(".text-js").innerHTML="",this.edit_button.querySelector(".text-js").style.opacity=null,this.renderSelected(),this.listenTo(this.edit_button,"click",this.showOptions),this.listenTo(this.edit_button,"click",".uniformSelect-remove",this.removeSelection),this}},{key:"renderOptions",value:function(){this.button_options=bn("<div class='uniformSelect-options'>"),this.el.name&&hn(this.button_options,this.el.name.toLowerCase().replace(/[^a-z0-9\-_]+/g,"-")),this.button_options.style.fontSize=yn(this.el,"font-size"),vn(this.el.querySelectorAll("option"),function(t,e){var n=bn("<button type='button' class='uniformSelect-option block outline text-left'>");n.option=t,n.textContent=t.textContent,n.value=t.value,""==n.textContent&&(n.innerHTML="<span class='text-italic text-muted'>None</span>"),t.selected?(hn(n,"active"),n.append(this.activeIcon.cloneNode(!0))):this.options.limit&&e>this.options.limit&&hn(n,"hide"),this.button_options.append(n)}.bind(this)),this.listenTo(this.button_options,"click",".uniformSelect-option",this.selectOption);var t=bn('<div class="uniformSelect-options-actions"></div>');if(this.options.limit&&this.el.querySelectorAll("option").length>this.options.limit){var e=bn("<button type='button' class='uniformSelect-show-all outline blue' style='display: block; border: none'>Show All</button>");this.listenTo(e,"click",function(t){dn(this.el,"show_all"),this.options.showAll&&this.options.showAll(this.button_options),t.preventDefault(),t.stopPropagation()}),t.appendChild(e)}if(this.el.multiple){var n=bn("<button type='button' class='uniformSelect-done block outline blue'>Done</button>");this.listenTo(n,"click",this.hideOptions),t.appendChild(n)}""!==t.innerHTML&&this.button_options.appendChild(t)}},{key:"renderSelected",value:function(){var t=function(t,e){for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i));return n}(gn(this.el.querySelectorAll("option"),function(t){return t.selected}),function(t){return this.el.multiple?'<span class="uniformSelect-selection">'.concat(t.textContent,'<span class="uniformSelect-remove"></span></span>'):t.textContent}.bind(this)).join(" ");this.edit_button.querySelector(".text-js").innerHTML=""==t?" ":t,this.button_options&&vn(this.button_options.querySelectorAll(".uniformSelect-option"),function(t){t.option.selected?(hn(t,"active"),t.append(this.activeIcon.cloneNode(!0))):(fn(t,"active"),vn(t.querySelectorAll(".uniformSelect-option-icon"),mn))}.bind(this))}},{key:"hideOptions",value:function(){this.button_options&&(this.button_options_modal&&this.button_options_modal.close(),this.button_options_popover&&(this.button_options_popover.remove(),delete this.button_options_popover),fn(this.edit_button,"active"))}},{key:"showOptions",value:function(t){var e=this;if(!an(t.target,"uniformSelect-remove")){if(this.button_options_modal)return this.hideOptions();if(this.button_options_popover)return this.hideOptions();if(this.button_options||this.renderOptions(),hn(this.edit_button,"active"),window.innerWidth<720){var n=bn('<div class="uniformSelect-modal">');n.append(this.button_options),this.options.label&&n.append('<div class="uniformSelect-label margin-bottom text-bold">'.concat(this.options.label,"</div>")),this.button_options_modal=new Tn({content:n,klass:"-reset"}).render(),this.button_options_modal.on("closed",function(){fn(e.edit_button,"active"),delete e.button_options_modal}),this.listenTo(n,"click",function(t){t.target==n&&this.button_options_modal.close()})}else this.button_options.style.minWidth=this.edit_button.offsetWidth+"px",this.button_options_popover=new jn({offset:{top:1},anchor:this.edit_button,align:"0px bottom",content:this.button_options,container:this.options.container}).render(),this.button_options_popover.on("hidden",function(){fn(e.edit_button,"active"),e.button_options_popover.remove(),delete e.button_options_popover})}}},{key:"selectOption",value:function(t){t.target,this.el.multiple||(vn(this.button_options.querySelectorAll(".uniformSelect-option.active .uniformSelect-option-icon"),mn),fn(this.button_options.querySelectorAll(".uniformSelect-option.active"),"active")),pn(t.target,"active"),t.target.option.selected=an(t.target,"active"),an(t.target,"active")?t.target.append(this.activeIcon.cloneNode(!0)):vn(t.target.querySelectorAll(".uniformSelect-option-icon"),mn),this.el.multiple||this.hideOptions(),dn(this.el,"change")}},{key:"removeSelection",value:function(e){e.preventDefault();var t=gn(this.el.querySelectorAll("option"),function(t){return t.innerText.trim()==e.target.parentNode.innerText.trim()})[0];t&&(t.selected=!1,dn(this.el,"change"))}}]),e}(),xn,"Select"),Pn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return cn(e,xn),re(e,[{key:"initialize",value:function(){this.label=this.el.querySelector("label"),this.input=this.el.querySelector("#"+this.label.getAttribute("for")),this.startingHeight,this.listenTo(this.input,"focus",this.activate),this.listenTo(this.input,"blur",this.deactivate),this.listenTo(this.input,"revealed",this.render)}},{key:"render",value:function(){if(null!==this.input.offsetParent&&!an(this.el,"enabled")){var t,e=ct(yn(this.input,"paddingBottom"));this.startingHeight=this.input.offsetHeight,hn(this.el,"enabled"),hn(this.el,"inactive"),this.input.style.paddingTop=e+e/2+"px",this.input.style.paddingBottom=e-e/2-2+"px",this.label.style.position="absolute",this.label.style.top=0,this.label.style.left=this.label.offsetLeft,this.label.style.paddingLeft=yn(this.input,"paddingLeft"),this.label.style.height=this.startingHeight,this.label.style.lineHeight=this.startingHeight+"px",t=this.input,document.activeElement===t&&this.activate(),void 0!==this.input.value&&""!=this.input.value&&this.activate()}}},{key:"activate",value:function(t){void 0!==t&&hn(this.el,"active"),an(this.el,"float")||(hn(this.el,"float"),fn(this.el,"inactive"),this.label.style.lineHeight=this.startingHeight/2+"px")}},{key:"deactivate",value:function(t){void 0!==t&&fn(this.el,"active"),""==this.input.value&&(fn(this.el,"float"),hn(this.el,"inactive"),this.label.style.lineHeight=this.startingHeight+"px")}}]),e}(),xn,"FloatingLabel"),zn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return cn(e,xn),re(e,[{key:"initialize",value:function(){this.listenTo(window,"resize",this.resize),dn(window,"resize")}},{key:"resize",value:function(){var t=this.el.offsetWidth;720<t&&!an(this.el,"md-size")?(hn(this.el,"md-size"),dn(window,"resized-md")):t<720&&an(this.el,"md-size")&&fn(this.el,"md-size"),1080<t&&!an(this.el,"lg-size")?(hn(this.el,"lg-size"),dn(window,"resized-lg")):t<1080&&an(this.el,"lg-size")&&fn(this.el,"lg-size"),1440<t&&!an(this.el,"xl-size")?(hn(this.el,"xl-size"),dn(window,"resized-xl")):t<1440&&an(this.el,"xl-size")&&fn(this.el,"xl-size"),t<720&&!an(this.el,"sm-size")?(hn(this.el,"sm-size"),dn(window,"resized-sm")):720<t&&an(this.el,"sm-size")&&fn(this.el,"sm-size")}}]),e}(),xn,"Resizer"),Mn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ee(this,e),Ze(this,rn(e).apply(this,arguments))}return cn(e,xn),re(e,[{key:"initialize",value:function(t){t=t||{},this.options={align:"top",container:!1},X(this.options,this.pick(t,te(this.options))),this.enabled=!0,this.message=t.message,(t.el.tooltip=this).listenTo(this.el,"mouseenter",this.show),this.listenTo(this.el,"mouseleave",this.hide)}},{key:"render",value:function(){return this}},{key:"show",value:function(){this.enabled&&(clearTimeout(this.hide_timeout),this.popup?this.popup.show():this.popup=new jn({content:"<div class=\"uniformTooltip-popup\">\n <div class='uniformTooltip-pointer'></div>\n ".concat(this.message,"\n </div>"),anchor:this.el,align:"top"==this.options.align?"center top":"center 100%",offset:{top:-7},container:this.options.container||document.body}).render())}},{key:"hide",value:function(){var t=this;this.hide_timeout=setTimeout(function(){t.popup.remove(),delete t.popup},300)}},{key:"disable",value:function(){this.enabled=!1}},{key:"enabled",value:function(){this.enabled=!0}}]),e}(),xn,"Tooltip"),An=Object.freeze({Dropdown:Sn,Checkbox:On,Modal:Tn,Select:Cn,FloatingLabel:Pn,Resizer:zn,Tooltip:Mn,Popover:jn});window.Uniform=An,$&&($.fn.uniformDropdown=function(){return this.each(function(){var n=$(this),t={el:this};void 0!==n.data("dropdown-align")&&(t.align=n.data("dropdown-align")),void 0!==n.data("dropdown-trigger")&&(t.trigger=n.data("dropdown-trigger")),void 0!==n.data("dropdown-show_arrow")&&(t.show_arrow=n.data("dropdown-show_arrow")),void 0!==n.data("dropdown-square")&&(t.square=n.data("dropdown-square")),void 0!==n.data("dropdown-hide_sm")&&(t.hide_sm=n.data("dropdown-hide_sm")),void 0!==n.data("dropdown-content")&&(t.content="<div class='pad'>".concat(n.data("dropdown-content"),"</div>")),void 0!==n.data("dropdown-target")&&(t.content=$(n.data("dropdown-target"))[0]);var e=new Sn(t);e.on("*",function(t,e){n.trigger("dropdown-"+t,e)}),e.render()})},$.fn.uniformCheckbox=function(){return this.each(function(){$(this);new On({el:this}).render()})},$.fn.uniformRadio=$.fn.uniformCheckbox,$.fn.uniformFloatingLabel=function(){return this.each(function(){new Pn({el:this}).render()})},$.fn.uniformModal=function(){return this.click(function(){var n=$(this),t={klass:n.data("modal-klass"),content:n.data("modal-content")};if(n.data("modal-target")){var e=$(n.data("modal-target")).clone();e.removeClass("hidden"),t.content=e[0]}new Tn(t).render().on("*",function(t,e){n.trigger("modal-"+t,e)})})},$.fn.uniformResizer=function(){return this.each(function(){new zn({el:this})})},$.fn.uniformSelect=function(){return this.each(function(){var t={el:this};X(t,$(this).data()),new Cn(t).render()})},$.fn.uniformTooltip=function(){return this.each(function(){var n=$(this),t=new Mn({message:n.data("tooltip-message"),container:n.data("tooltip-container"),el:this});t.on("*",function(t,e){n.trigger("tooltip-"+t,e)}),t.render()})},$.fn.uniformTristate=function(){return this.each(function(){var i=$(this);function e(t){if(0==t.length)i.addClass("-null"),$(i.find("input")[1]).prop("checked",!0);else{var e=t.index(),n=0==e?"-true":1==e?"-null":"-false";i.removeClass("-true -null -false"),i.addClass(n)}}i.on("change","input",function(t){e($(t.currentTarget))}),e(i.find("input:checked")),i.on("blur","input",function(t){i.removeClass("-focus")}),i.on("focus","input",function(t){i.addClass("-focus")})})})}();
|
1
|
+
!function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e.exports}var v=t(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),y=t(function(t){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)}),m=(y.version,function(i,o,t){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(i),void 0===o)return i;switch(t){case 1:return function(t){return i.call(o,t)};case 2:return function(t,e){return i.call(o,t,e)};case 3:return function(t,e,n){return i.call(o,t,e,n)}}return function(){return i.apply(o,arguments)}}),u=function(t){return"object"==typeof t?null!==t:"function"==typeof t},s=function(t){if(!u(t))throw TypeError(t+" is not an object!");return t},c=function(t){try{return!!t()}catch(t){return!0}},i=!c(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),e=v.document,n=u(e)&&u(e.createElement),o=function(t){return n?e.createElement(t):{}},r=!i&&!c(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}),l=function(t,e){if(!u(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!u(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!u(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!u(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},a=Object.defineProperty,h={f:i?Object.defineProperty:function(t,e,n){if(s(t),e=l(e,!0),s(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x=i?function(t,e,n){return h.f(t,e,_(1,n))}:function(t,e,n){return t[e]=n,t},f={}.hasOwnProperty,b=function(t,e){return f.call(t,e)},g="prototype",w=function(t,e,n){var i,o,r,s=t&w.F,l=t&w.G,u=t&w.S,c=t&w.P,a=t&w.B,h=t&w.W,f=l?y:y[e]||(y[e]={}),p=f[g],d=l?v:u?v[e]:(v[e]||{})[g];for(i in l&&(n=e),n)(o=!s&&d&&void 0!==d[i])&&b(f,i)||(r=o?d[i]:n[i],f[i]=l&&"function"!=typeof d[i]?n[i]:a&&o?m(r,v):h&&d[i]==r?function(i){var t=function(t,e,n){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(t);case 2:return new i(t,e)}return new i(t,e,n)}return i.apply(this,arguments)};return t[g]=i[g],t}(r):c&&"function"==typeof r?m(Function.call,r):r,c&&((f.virtual||(f.virtual={}))[i]=r,t&w.R&&p&&!p[i]&&x(p,i,r)))};w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128;var p,S=w,d={}.toString,k=function(t){return d.call(t).slice(8,-1)},O=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==k(t)?t.split(""):Object(t)},T=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},j=function(t){return O(T(t))},E=Math.ceil,C=Math.floor,L=function(t){return isNaN(t=+t)?0:(0<t?C:E)(t)},P=Math.min,z=function(t){return 0<t?P(L(t),9007199254740991):0},A=Math.max,M=Math.min,N=t(function(t){var e="__core-js_shared__",n=v[e]||(v[e]={});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:y.version,mode:"pure",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})}),I=0,H=Math.random(),q=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++I+H).toString(36))},F=N("keys"),R=function(t){return F[t]||(F[t]=q(t))},D=(p=!1,function(t,e,n){var i,o,r,s=j(t),l=z(s.length),u=(o=l,(i=L(i=n))<0?A(i+o,0):M(i,o));if(p&&e!=e){for(;u<l;)if((r=s[u++])!=r)return!0}else for(;u<l;u++)if((p||u in s)&&s[u]===e)return p||u||0;return!p&&-1}),W=R("IE_PROTO"),B=function(t,e){var n,i=j(t),o=0,r=[];for(n in i)n!=W&&b(i,n)&&r.push(n);for(;e.length>o;)b(i,n=e[o++])&&(~D(r,n)||r.push(n));return r},G="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Y=Object.keys||function(t){return B(t,G)},V={f:Object.getOwnPropertySymbols},K={f:{}.propertyIsEnumerable},J=function(t){return Object(T(t))},U=Object.assign,X=!U||c(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=U({},t)[n]||Object.keys(U({},e)).join("")!=i})?function(t,e){for(var n=J(t),i=arguments.length,o=1,r=V.f,s=K.f;o<i;)for(var l,u=O(arguments[o++]),c=r?Y(u).concat(r(u)):Y(u),a=c.length,h=0;h<a;)s.call(u,l=c[h++])&&(n[l]=u[l]);return n}:U;S(S.S+S.F,"Object",{assign:X});var Q=y.Object.assign,Z="\t\n\v\f\r \u2028\u2029\ufeff",tt="["+Z+"]",et=RegExp("^"+tt+tt+"*"),nt=RegExp(tt+tt+"*$"),it=function(t,e,n){var i={},o=c(function(){return!!Z[t]()||"
"!="
"[t]()}),r=i[t]=o?e(ot):Z[t];n&&(i[n]=r),S(S.P+S.F*o,"String",i)},ot=it.trim=function(t,e){return t=String(T(t)),1&e&&(t=t.replace(et,"")),2&e&&(t=t.replace(nt,"")),t},rt=it,st=v.parseInt,lt=rt.trim,ut=/^[-+]?0[xX]/,ct=8!==st(Z+"08")||22!==st(Z+"0x16")?function(t,e){var n=lt(String(t),3);return st(n,e>>>0||(ut.test(n)?16:10))}:st;S(S.G+S.F*(parseInt!=ct),{parseInt:ct});var at=y.parseInt,ht=Array.isArray||function(t){return"Array"==k(t)};S(S.S,"Array",{isArray:ht});var ft=y.Array.isArray;var pt=function(t){if(ft(t))return t},dt=function(t,e){return{value:e,done:!!t}},vt={},yt=x,mt=i?Object.defineProperties:function(t,e){s(t);for(var n,i=Y(e),o=i.length,r=0;r<o;)h.f(t,n=i[r++],e[n]);return t},bt=v.document,gt=bt&&bt.documentElement,wt=R("IE_PROTO"),kt=function(){},_t="prototype",xt=function(){var t,e=o("iframe"),n=G.length;for(e.style.display="none",gt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),xt=t.F;n--;)delete xt[_t][G[n]];return xt()},St=Object.create||function(t,e){var n;return null!==t?(kt[_t]=s(t),n=new kt,kt[_t]=null,n[wt]=t):n=xt(),void 0===e?n:mt(n,e)},Ot=t(function(t){var e=N("wks"),n=v.Symbol,i="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=i&&n[t]||(i?n:q)("Symbol."+t))}).store=e}),Tt=h.f,jt=Ot("toStringTag"),Et=function(t,e,n){t&&!b(t=n?t:t.prototype,jt)&&Tt(t,jt,{configurable:!0,value:e})},Ct={};x(Ct,Ot("iterator"),function(){return this});var Lt=R("IE_PROTO"),Pt=Object.prototype,zt=Object.getPrototypeOf||function(t){return t=J(t),b(t,Lt)?t[Lt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Pt:null},At=Ot("iterator"),Mt=!([].keys&&"next"in[].keys()),Nt="values",It=function(){return this},Ht=function(t,e,n,i,o,r,s){var l,u,c;u=e,c=i,(l=n).prototype=St(Ct,{next:_(1,c)}),Et(l,u+" Iterator");var a,h,f,p=function(t){if(!Mt&&t in m)return m[t];switch(t){case"keys":case Nt:return function(){return new n(this,t)}}return function(){return new n(this,t)}},d=e+" Iterator",v=o==Nt,y=!1,m=t.prototype,b=m[At]||m["@@iterator"]||o&&m[o],g=b||p(o),w=o?v?p("entries"):g:void 0,k="Array"==e&&m.entries||b;if(k&&(f=zt(k.call(new t)))!==Object.prototype&&f.next&&Et(f,d,!0),v&&b&&b.name!==Nt&&(y=!0,g=function(){return b.call(this)}),s&&(Mt||y||!m[At])&&x(m,At,g),vt[e]=g,vt[d]=It,o)if(a={values:v?g:p(Nt),keys:r?g:p("keys"),entries:w},s)for(h in a)h in m||yt(m,h,a[h]);else S(S.P+S.F*(Mt||y),e,a);return a};Ht(Array,"Array",function(t,e){this._t=j(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,dt(1)):dt(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values");vt.Arguments=vt.Array;for(var qt=Ot("toStringTag"),Ft="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Rt=0;Rt<Ft.length;Rt++){var $t=Ft[Rt],Dt=v[$t],Wt=Dt&&Dt.prototype;Wt&&!Wt[qt]&&x(Wt,qt,$t),vt[$t]=vt.Array}var Bt,Gt=(Bt=!0,function(t,e){var n,i,o=String(T(t)),r=L(e),s=o.length;return r<0||s<=r?Bt?"":void 0:(n=o.charCodeAt(r))<55296||56319<n||r+1===s||(i=o.charCodeAt(r+1))<56320||57343<i?Bt?o.charAt(r):n:Bt?o.slice(r,r+2):i-56320+(n-55296<<10)+65536});Ht(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=Gt(e,n),this._i+=t.length,{value:t,done:!1})});var Yt=Ot("toStringTag"),Vt="Arguments"==k(function(){return arguments}()),Kt=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Yt))?n:Vt?k(e):"Object"==(i=k(e))&&"function"==typeof e.callee?"Arguments":i},Jt=Ot("iterator"),Ut=y.getIteratorMethod=function(t){if(null!=t)return t[Jt]||t["@@iterator"]||vt[Kt(t)]},Xt=y.getIterator=function(t){var e=Ut(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return s(e.call(t))};var Qt=function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,l=Xt(t);!(i=(s=l.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==l.return||l.return()}finally{if(o)throw r}}return n};var Zt=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var te=function(t,e){return pt(t)||Qt(t,e)||Zt()},ee=function(t,e){var n=(y.Object||{})[t]||Object[t],i={};i[t]=e(n),S(S.S+S.F*c(function(){n(1)}),"Object",i)};ee("keys",function(){return function(t){return Y(J(t))}});var ne=y.Object.keys;var ie=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};S(S.S+S.F*!i,"Object",{defineProperty:h.f});var oe=y.Object,re=function(t,e,n){return oe.defineProperty(t,e,n)};function se(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),re(t,i.key,i)}}var le=function(t,e,n){return e&&se(t.prototype,e),n&&se(t,n),t},ue={f:Ot},ce=ue.f("iterator"),ae=t(function(t){var n=q("meta"),e=h.f,i=0,o=Object.isExtensible||function(){return!0},r=!c(function(){return o(Object.preventExtensions({}))}),s=function(t){e(t,n,{value:{i:"O"+ ++i,w:{}}})},l=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!b(t,n)){if(!o(t))return"F";if(!e)return"E";s(t)}return t[n].i},getWeak:function(t,e){if(!b(t,n)){if(!o(t))return!0;if(!e)return!1;s(t)}return t[n].w},onFreeze:function(t){return r&&l.NEED&&o(t)&&!b(t,n)&&s(t),t}}}),he=(ae.KEY,ae.NEED,ae.fastKey,ae.getWeak,ae.onFreeze,h.f),fe=function(t){var e=y.Symbol||(y.Symbol={});"_"==t.charAt(0)||t in e||he(e,t,{value:ue.f(t)})},pe=G.concat("length","prototype"),de={f:Object.getOwnPropertyNames||function(t){return B(t,pe)}},ve=de.f,ye={}.toString,me="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],be={f:function(t){return me&&"[object Window]"==ye.call(t)?function(t){try{return ve(t)}catch(t){return me.slice()}}(t):ve(j(t))}},ge=Object.getOwnPropertyDescriptor,we={f:i?ge:function(t,e){if(t=j(t),e=l(e,!0),r)try{return ge(t,e)}catch(t){}if(b(t,e))return _(!K.f.call(t,e),t[e])}},ke=ae.KEY,_e=we.f,xe=h.f,Se=be.f,Oe=v.Symbol,Te=v.JSON,je=Te&&Te.stringify,Ee="prototype",Ce=Ot("_hidden"),Le=Ot("toPrimitive"),Pe={}.propertyIsEnumerable,ze=N("symbol-registry"),Ae=N("symbols"),Me=N("op-symbols"),Ne=Object[Ee],Ie="function"==typeof Oe,He=v.QObject,qe=!He||!He[Ee]||!He[Ee].findChild,Fe=i&&c(function(){return 7!=St(xe({},"a",{get:function(){return xe(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=_e(Ne,e);i&&delete Ne[e],xe(t,e,n),i&&t!==Ne&&xe(Ne,e,i)}:xe,Re=function(t){var e=Ae[t]=St(Oe[Ee]);return e._k=t,e},$e=Ie&&"symbol"==typeof Oe.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Oe},De=function(t,e,n){return t===Ne&&De(Me,e,n),s(t),e=l(e,!0),s(n),b(Ae,e)?(n.enumerable?(b(t,Ce)&&t[Ce][e]&&(t[Ce][e]=!1),n=St(n,{enumerable:_(0,!1)})):(b(t,Ce)||xe(t,Ce,_(1,{})),t[Ce][e]=!0),Fe(t,e,n)):xe(t,e,n)},We=function(t,e){s(t);for(var n,i=function(t){var e=Y(t),n=V.f;if(n)for(var i,o=n(t),r=K.f,s=0;o.length>s;)r.call(t,i=o[s++])&&e.push(i);return e}(e=j(e)),o=0,r=i.length;o<r;)De(t,n=i[o++],e[n]);return t},Be=function(t){var e=Pe.call(this,t=l(t,!0));return!(this===Ne&&b(Ae,t)&&!b(Me,t))&&(!(e||!b(this,t)||!b(Ae,t)||b(this,Ce)&&this[Ce][t])||e)},Ge=function(t,e){if(t=j(t),e=l(e,!0),t!==Ne||!b(Ae,e)||b(Me,e)){var n=_e(t,e);return!n||!b(Ae,e)||b(t,Ce)&&t[Ce][e]||(n.enumerable=!0),n}},Ye=function(t){for(var e,n=Se(j(t)),i=[],o=0;n.length>o;)b(Ae,e=n[o++])||e==Ce||e==ke||i.push(e);return i},Ve=function(t){for(var e,n=t===Ne,i=Se(n?Me:j(t)),o=[],r=0;i.length>r;)!b(Ae,e=i[r++])||n&&!b(Ne,e)||o.push(Ae[e]);return o};Ie||(yt((Oe=function(){if(this instanceof Oe)throw TypeError("Symbol is not a constructor!");var e=q(0<arguments.length?arguments[0]:void 0),n=function(t){this===Ne&&n.call(Me,t),b(this,Ce)&&b(this[Ce],e)&&(this[Ce][e]=!1),Fe(this,e,_(1,t))};return i&&qe&&Fe(Ne,e,{configurable:!0,set:n}),Re(e)})[Ee],"toString",function(){return this._k}),we.f=Ge,h.f=De,de.f=be.f=Ye,K.f=Be,V.f=Ve,ue.f=function(t){return Re(Ot(t))}),S(S.G+S.W+S.F*!Ie,{Symbol:Oe});for(var Ke="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Je=0;Ke.length>Je;)Ot(Ke[Je++]);for(var Ue=Y(Ot.store),Xe=0;Ue.length>Xe;)fe(Ue[Xe++]);S(S.S+S.F*!Ie,"Symbol",{for:function(t){return b(ze,t+="")?ze[t]:ze[t]=Oe(t)},keyFor:function(t){if(!$e(t))throw TypeError(t+" is not a symbol!");for(var e in ze)if(ze[e]===t)return e},useSetter:function(){qe=!0},useSimple:function(){qe=!1}}),S(S.S+S.F*!Ie,"Object",{create:function(t,e){return void 0===e?St(t):We(St(t),e)},defineProperty:De,defineProperties:We,getOwnPropertyDescriptor:Ge,getOwnPropertyNames:Ye,getOwnPropertySymbols:Ve}),Te&&S(S.S+S.F*(!Ie||c(function(){var t=Oe();return"[null]"!=je([t])||"{}"!=je({a:t})||"{}"!=je(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e=i[1],(u(e)||void 0!==t)&&!$e(t))return ht(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!$e(e))return e}),i[1]=e,je.apply(Te,i)}}),Oe[Ee][Le]||x(Oe[Ee],Le,Oe[Ee].valueOf),Et(Oe,"Symbol"),Et(Math,"Math",!0),Et(v.JSON,"JSON",!0),fe("asyncIterator"),fe("observable");var Qe=y.Symbol,Ze=t(function(e){function n(t){return(n="function"==typeof Qe&&"symbol"==typeof ce?function(t){return typeof t}:function(t){return t&&"function"==typeof Qe&&t.constructor===Qe&&t!==Qe.prototype?"symbol":typeof t})(t)}function i(t){return"function"==typeof Qe&&"symbol"===n(ce)?e.exports=i=function(t){return n(t)}:e.exports=i=function(t){return t&&"function"==typeof Qe&&t.constructor===Qe&&t!==Qe.prototype?"symbol":n(t)},i(t)}e.exports=i});var tn=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var en=function(t,e){return!e||"object"!==Ze(e)&&"function"!=typeof e?tn(t):e};ee("getPrototypeOf",function(){return function(t){return zt(J(t))}});var nn=y.Object.getPrototypeOf,on=function(t,e){if(s(t),!u(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},rn={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{(i=m(Function.call,we.f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return on(t,e),n?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:on};S(S.S,"Object",{setPrototypeOf:rn.set});var sn=y.Object.setPrototypeOf,ln=t(function(e){function n(t){return e.exports=n=sn?nn:function(t){return t.__proto__||nn(t)},n(t)}e.exports=n});S(S.S,"Object",{create:St});var un=y.Object,cn=function(t,e){return un.create(t,e)},an=t(function(n){function i(t,e){return n.exports=i=sn||function(t,e){return t.__proto__=e,t},i(t,e)}n.exports=i});var hn=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=cn(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&an(t,e)};function fn(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function pn(e,t){e.classList?mn(t.split(" "),function(t){e.classList.add(t)}):e.className+=" "+t}function dn(t,n){var e=function(e){e.classList?n.split(" ").forEach(function(t){return e.classList.remove(t)}):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," ")};NodeList.prototype.isPrototypeOf(t)?mn(t,e):e(t)}function vn(t,e,n){if(t.classList)t.classList.toggle(e,n);else{var i=t.className.split(" "),o=i.indexOf(e);!1===n||!0!==n&&0<=o?i.splice(o,1):i.push(e),t.className=i.join(" ")}}function yn(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!1),t.dispatchEvent(n)}function mn(t,e){for(var n=0;n<t.length;n++)e(t[n],n)}function bn(t,e){return getComputedStyle(t)[e]}function gn(t){t.parentNode.removeChild(t)}function wn(t){var e=document.createElement("div");return e.innerHTML=t,e.children[0]}function kn(t,e){var n=[];return mn(t,function(t){e(t)&&n.push(t)}),n}function _n(t){var e=t.getBoundingClientRect();return{top:e.top+window.scrollY,left:e.left+window.scrollX}}function xn(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=at(n.marginTop)+at(n.marginBottom)}function Sn(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=at(n.marginLeft)+at(n.marginRight)}var On=function(){function e(t){ie(this,e),t=t||{},this.eventListens=new Array,this.eventListeners=new Array,this.el=t.el||document.createElement("div"),this.cid=function(t){window.idCounter||(window.idCounter=0);var e=++window.idCounter+"";return t?t+e:e}("c"),this.on=function(t,e){this.eventListeners.push({type:t,handler:e})},this.off=function(e,t){this.eventListeners&&(this.eventListeners=this.eventListeners.filter(function(t){return!(t.type==e&&t.handler)}))}.bind(this),this.trigger=function(e){this.eventListeners&&this.eventListeners.forEach(function(t){"*"!=t.type&&"all"!=t.type&&e!=t.type||t.handler(e,this)})},this.initialize(t)}return le(e,[{key:"pick",value:function(e,t){var n={};return t.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n}},{key:"listenTo",value:function(t,e,n,i,o){"string"!=typeof n&&(o=i,i=n,n=!1),o||(o=this);var r=[t,e,function(t){if(!n||fn(t.target,n.replace(".","")))return i.bind(o).apply(void 0,arguments)}.bind(o)];this.eventListens.push(r),t.addEventListener(e,r[2])}},{key:"listenToOnce",value:function(n,i,o,r){r||(r=this);var t=function t(e){return n.removeEventListener(i,t),o.apply(r,arguments)},e=[n,i,t];this.eventListens.push(e),n.addEventListener(i,t)}},{key:"remove",value:function(){this.trigger("removed"),this.eventListens&&this.eventListens.forEach(function(t){t[0].removeEventListener(t[1],t[2])}),delete this.eventListens,delete this.eventListeners,this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el),delete this.el}},{key:"initialize",value:function(){}}]),e}(),Tn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ie(this,e),en(this,ln(e).apply(this,arguments))}return hn(e,On),le(e,[{key:"initialize",value:function(t){t=t||{},this.options={align:"center bottom",trigger:"click",show_arrow:!0,hide_sm:!1,square:!1,container:document.body,offset:{}},this.options.container=this.options.container||document.body,Q(this.options,this.pick(t,ne(this.options))),this.content=t.content,this.dropdown=document.createElement("div"),(this.el.dropdown=this).listenTo(this.el,this.options.trigger,this.toggle),this.listenTo(this.el,"mousedown",function(){this.mousedown=!0}),this.listenTo(this.el,"mouseup",function(){this.mousedown=!1}),this.listenTo(this.el,"focus",function(){this.mousedown||this.show()}),this.listenTo(document,"focus",this.outsideClick),this.listenTo(document,this.options.trigger,this.outsideClick),this.listenTo(document,"keyup",this.keyup),this.listenTo(window,"resize",this.resize)}},{key:"render",value:function(){if(pn(this.dropdown,"uniformDropdown-dropdown"),pn(this.dropdown,"absolute"),this.dropdown.style.minWidth=Sn(this.el),this.dropdown.innerHTML=this.content.innerHTML?this.content.innerHTML:this.content,this.options.show_arrow){pn(this.dropdown,"has-pointer");var t=document.createElement("div");pn(t,"uniformDropdown-pointer"),this.dropdown.appendChild(t)}return vn(this.dropdown,"square",this.options.square),this.dropdown.style.display="none",this.options.container.appendChild(this.dropdown),dn(this.dropdown.querySelectorAll(".hidden"),"hidden"),this}},{key:"resize",value:function(){this.setPosition();var t=this.options.align.split(" "),e=!1;_n(this.dropdown).top+xn(this.dropdown)>Math.max(document.body.offsetHeight,window.innerHeight)&&(t[1]="top",e=!0),_n(this.dropdown).top<0&&(t[1]="bottom",e=!0),_n(this.dropdown).left<0&&(t[0]="right",e=!0),_n(this.dropdown).left+Sn(this.dropdown)>document.body.offsetWidth&&(t[0]="left",e=!0),e&&this.setPosition(t.join(" "))}},{key:"setPosition",value:function(t){var e=(t=t||this.options.align).split(" "),n=te(e,2),i=n[0],o=n[1];i=i||"bottom",o=o||"bottom";var r=_n(this.el),s=this.options.container;"static"==getComputedStyle(s).position&&(s=s.offsetParent),s||(s=document.body);var l=_n(s);r={top:r.top-l.top,left:r.left-l.left};var u={};"left"==i?u.right=Sn(s)-r.left:"center"==i?u.left=r.left+Sn(this.el)/2-Sn(this.dropdown)/2:"right"==i?u.left=r.left+Sn(this.el):i.includes("%")?u.left=r.left+Sn(this.el)*at(i)/100:i.includes("px")&&(u.left=r.left+Sn(this.el)+at(i)),"top"==o?u.top=r.top-xn(this.dropdown):"center"==o?u.top=r.top+xn(this.el)/2-xn(this.dropdown)/2:"bottom"==o?u.top=r.top+xn(this.el):o.includes("%")?u.top=r.top+xn(this.el)*at(o)/100:o.includes("px")&&(u.top=r.top+xn(this.el)+at(o)),this.options.offset.left&&(u.left+=at(this.options.offset.left)),this.options.offset.top&&(u.top+=at(this.options.offset.top)),this.options.offset.left&&(u.right-=at(this.options.offset.left)),this.dropdown.style.left="auto",this.dropdown.style.right="auto",dn(this.dropdown,"popover-left popover-right popover-center popover-top popover-bottom"),pn(this.dropdown,"popover-"+o),pn(this.dropdown,"popover-"+i),ne(u).forEach(function(t){this.dropdown.style[t]=u[t]+"px"},this)}},{key:"remove",value:function(){On.prototype.remove.apply(this,arguments),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown),delete this.dropdown}},{key:"toggle",value:function(t){fn(this.el,"active")&&"click"==t.type?this.hide():this.show()}},{key:"show",value:function(t){t||(t={}),this.options.hide_sm&&window.innerWidth<720||(this.dropdown||this.render(),this.dropdown.style.display="block",pn(this.el,"active"),this.resize(),this.overlay=document.createElement("div"),pn(this.overlay,"uniformOverlay"),document.body.appendChild(this.overlay),window.innerWidth<720&&(this.lastScrollPosition=window.scrollY,pn(document.body,"uniformModal-hideBody")),this.listenTo(this.overlay,"click",this.hide),t.silent||this.trigger("shown"))}},{key:"hide",value:function(t){t||(t={}),this.dropdown&&fn(this.el,"active")&&(this.dropdown.style.display="none",dn(this.el,"active"),this.overlay&&this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay),window.innerWidth<720&&(dn(document.body,"uniformModal-hideBody"),window.scrollTo(0,this.lastScrollPosition)),t.silent||this.trigger("hidden"))}},{key:"outsideClick",value:function(t){this.dropdown&&null!==this.dropdown.offsetParent&&t.target!==this.el&&t.target!==this.overlay&&(this.el.contains(t.target)||this.dropdown.contains(t.target)||this.hide())}},{key:"keyup",value:function(t){27==t.which&&this.hide()}}]),e}(),On,"Dropdown"),jn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ie(this,e),en(this,ln(e).apply(this,arguments))}return hn(e,On),le(e,[{key:"initialize",value:function(t){this.listenTo(this.el,"change",this.change)}},{key:"render",value:function(){var t=fn(this.el,"uniformRadio")?"uniformRadio":"uniformCheckbox";return this.checkbox=document.createElement("div"),pn(this.checkbox,"".concat(t,"-indicator")),this.el.className&&""!=this.el.className.replace(t,"")&&pn(this.checkbox,this.el.className.replace(t,"")),vn(this.checkbox,"checked",this.el.checked),this.el.parentNode.insertBefore(this.checkbox,this.el.nextSibling),this.listenTo(this.checkbox,"click",this.click),this}},{key:"click",value:function(t){this.el.disabled||(this.el.checked=!this.el.checked,yn(this.el,"change"),t.preventDefault())}},{key:"change",value:function(){vn(this.checkbox,"checked",this.el.checked)}}]),e}(),On,"Checkbox"),En=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ie(this,e),en(this,ln(e).apply(this,arguments))}return hn(e,On),le(e,[{key:"initialize",value:function(t){this.options={},this.options.klass=t.klass||!1,this.content=t.content,pn(this.el,"uniformModal"),this.listenTo(document,"keyup",this.keyup),this.listenTo(this.el,"click",this.checkCloseButton)}},{key:"keyup",value:function(t){27==t.which&&this.close()}},{key:"render",value:function(){var t="function"==typeof this.content?this.content():this.content;this.highest_z_index=0,this.overlay=document.createElement("div"),pn(this.overlay,"uniformModal-overlay"),this.blur=document.createElement("div"),pn(this.blur,"uniformModal-blur"),this.original_scroll=window.scrollY,this.blur.style.top=0-this.original_scroll+"px",0<document.body.querySelectorAll(".uniformModal").length&&(this.highest_z_index=Math.max(Array.prototype.map.call(document.body.querySelectorAll(".uniformModal"),function(t){return at(bn(t,"zIndex"))})),this.el.style.zIndex=this.highest_z_index+2),this.el.appendChild(this.overlay);for(var e=document.body.children[0];e;){var n=e;e=n.nextElementSibling,n.matches('[blurrable="false"]')||this.blur.appendChild(n)}pn(document.body,"uniformModal-active"),document.body.appendChild(this.blur),document.body.appendChild(this.el);var i=document.createElement("div");pn(i,"uniformModal-container"),t instanceof Node?i.appendChild(t):i.innerHTML=t;var o=document.createElement("div");return pn(o,"uniformModal-close"),this.el.appendChild(o),this.el.style.top=window.scrollY,this.listenTo(this.overlay,"click",this.close),this.el.appendChild(i),this.options.klass&&pn(i,this.options.klass),t.innerHTML&&yn(t,"rendered"),this.trigger("rendered"),this}},{key:"checkCloseButton",value:function(t){fn(t.target,"uniformModal-close")&&this.close()}},{key:"close",value:function(){dn(document.querySelectorAll("uniformModal-active"),"uniformModal-active");for(var t=this.blur.children,e=t.length,n=0;n<e;n++)document.body.appendChild(t[0]);this.blur.parentNode&&this.blur.parentNode.removeChild(this.blur),window.scrollTo(0,this.original_scroll),this.trigger("closed"),this.remove()}},{key:"remove",value:function(){On.prototype.remove.apply(this,arguments),this.overlay&&this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay),delete this.overlay}}]),e}(),On,"Modal");var Cn=function(t){if(ft(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}},Ln=function(e,t,n,i){try{return i?t(s(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&s(o.call(e)),t}},Pn=Ot("iterator"),zn=Array.prototype,An=function(t,e,n){e in t?h.f(t,e,_(0,n)):t[e]=n},Mn=Ot("iterator"),Nn=!1;try{[7][Mn]().return=function(){Nn=!0}}catch(t){}S(S.S+S.F*!function(t,e){if(!e&&!Nn)return!1;var n=!1;try{var i=[7],o=i[Mn]();o.next=function(){return{done:n=!0}},i[Mn]=function(){return o},t(i)}catch(t){}return n}(function(t){}),"Array",{from:function(t){var e,n,i,o,r,s=J(t),l="function"==typeof this?this:Array,u=arguments.length,c=1<u?arguments[1]:void 0,a=void 0!==c,h=0,f=Ut(s);if(a&&(c=m(c,2<u?arguments[2]:void 0,2)),null!=f&&(l!=Array||(void 0===(r=f)||vt.Array!==r&&zn[Pn]!==r)))for(o=f.call(s),n=new l;!(i=o.next()).done;h++)An(n,h,a?Ln(o,c,[i.value,h],!0):i.value);else for(n=new l(e=z(s.length));h<e;h++)An(n,h,a?c(s[h],h):s[h]);return n.length=h,n}});var In=y.Array.from,Hn=Ot("iterator"),qn=y.isIterable=function(t){var e=Object(t);return void 0!==e[Hn]||"@@iterator"in e||vt.hasOwnProperty(Kt(e))};var Fn=function(t){if(qn(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return In(t)};var Rn=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var $n=function(t){return Cn(t)||Fn(t)||Rn()},Dn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ie(this,e),en(this,ln(e).apply(this,arguments))}return hn(e,On),le(e,[{key:"initialize",value:function(t){var e=this;this.showing=!1,t=t||{},this.options={zIndex:3,container:document.body,align:"center bottom",anchor:document.body,content:"needs content",offset:{left:0,top:0}},Q(this.options,this.pick(t,ne(this.options))),this.listenTo(document,"click",this.checkFocus),this.listenTo(document,"focusin",this.checkFocus),this.listenTo(document,"keyup",this.checkEscape),this.listenTo(window,"resize",function(){e.resize.bind(e)()}),"string"==typeof this.options.container&&(this.options.container=function(t,e){if(t.closest)return t.closest(e);for(;t;){if(Element.prototype.matches?t.matches(e):t.msMatchesSelector(e))return t;t=t.parentElement}}(this.options.anchor,this.options.container),this.options.container=this.options.container||document.body)}},{key:"render",value:function(){return this.showing=!0,this.el.style.position="absolute",this.el.style.zIndex=this.options.zIndex,this.options.content instanceof Node?this.el.appendChild(this.options.content):this.el.innerHTML=this.options.content,this.options.container.appendChild(this.el),this.resize(),this.trigger("shown"),this}},{key:"resize",value:function(){this.setPosition();var t=this.el.getBoundingClientRect(),e=document.body.getBoundingClientRect(),n={top:0,bottom:window.innerHeight,left:0,right:window.innerWidth};if(t.bottom>Math.max(e.bottom,n.bottom)){var i=this.options.align.split(" "),o=te(i,2),r=o[0];o[1],this.setPosition("".concat(r," top"))}if(t.top<e.top){var s=e.top-t.top;null!=this.el.style.top&&(this.el.style.top=at(this.el.style.top)+s+"px"),null!=this.el.style.bottom&&(this.el.style.bottom=at(this.el.style.bottom)-s+"px")}if(t.left<e.left){var l=e.left-t.left;null!=this.el.style.left&&(this.el.style.left=at(this.el.style.left)+l+"px"),null!=this.el.style.right&&(this.el.style.right=at(this.el.style.right)-l+"px")}if(t.right>e.right){var u=e.right-t.right;null!=this.el.style.left&&(this.el.style.left=at(this.el.style.left)+u+"px"),null!=this.el.style.right&&(this.el.style.right=at(this.el.style.right)-u+"px")}}},{key:"setPosition",value:function(t){var e=(t=t||this.options.align).split(" "),n=te(e,2),i=n[0],o=n[1];i=i||"bottom";var r=_n(this.options.anchor),s=this.options.container;"static"==getComputedStyle(s).position&&(s=s.offsetParent),s||(s=document.body);var l=_n(s);r={top:r.top-l.top,left:r.left-l.left};var u={};if("left"==i?u.right=Sn(s)-r.left:"center"==i?u.left=r.left+Sn(this.options.anchor)/2-Sn(this.el)/2:"right"==i?u.left=r.left+Sn(this.options.anchor):i.includes("px")&&(u.left=r.left+at(i)),"top"==o){var c=xn(s);s==document.body&&"static"==getComputedStyle(s).position?c=window.innerHeight:s==document.body&&(c=Math.max(c,document.body.clientHeight)),u.bottom=c-r.top}else"center"==o?(u.top=r.top+xn(this.options.anchor)/2,u.transform="translateY(-50%)"):"bottom"==o?u.top=r.top+xn(this.options.anchor):o.includes("px")&&(u.top=r.top+at(o));this.options.offset.left&&(u.left+=at(this.options.offset.left)),this.options.offset.left&&(u.right-=at(this.options.offset.left)),this.options.offset.top&&(u.top+=at(this.options.offset.top)),this.options.offset.top&&(u.bottom-=at(this.options.offset.top)),this.el.style.left=null,this.el.style.right=null,this.el.style.top=null,this.el.style.bottom=null,this.el.style.transform=null,dn(this.el,"popover-left popover-right popover-center popover-top popover-bottom"),pn(this.el,"popover-"+o),pn(this.el,"popover-"+i),ne(u).forEach(function(t){this.el.style[t]=u[t]+("transform"!=t?"px":"")},this)}},{key:"checkFocus",value:function(t){t.defaultPrevented||this.showing&&t.target!==this.el&&t.target!=this.options.anchor&&(this.el.contains(t.target)||this.options.anchor.contains(t.target)||this.hide())}},{key:"checkEscape",value:function(t){27==t.which&&this.hide()}},{key:"isHidden",value:function(){return!this.showing}},{key:"hide",value:function(t){t=t||{},this.showing&&(this.el.style.display="none",!(this.showing=!1)!==t.silent&&this.trigger("hidden"))}},{key:"show",value:function(){this.showing||(this.el.style.display="block",this.showing=!0,this.trigger("shown"))}},{key:"toggle",value:function(t){(t=t||this.showing)?this.hide():this.show()}}]),e}(),On,"Popover"),Wn='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1em" height="1em" viewBox="0 0 32 32">\n<path d="M28.998 8.531l-2.134-2.134c-0.394-0.393-1.030-0.393-1.423 0l-12.795 12.795-6.086-6.13c-0.393-0.393-1.029-0.393-1.423 0l-2.134 2.134c-0.393 0.394-0.393 1.030 0 1.423l8.924 8.984c0.393 0.393 1.030 0.393 1.423 0l15.648-15.649c0.393-0.392 0.393-1.030 0-1.423z"></path>\n</svg>\n'.trim(),Bn='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1em" height="1em" viewBox="0 0 20 20">\n<path d="M13.418 7.601c0.271-0.268 0.709-0.268 0.979 0s0.271 0.701 0 0.969l-3.907 3.83c-0.271 0.268-0.709 0.268-0.979 0l-3.908-3.83c-0.27-0.268-0.27-0.701 0-0.969s0.708-0.268 0.979 0l3.418 3.14 3.418-3.14z"></path>\n</svg>\n'.trim(),Gn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ie(this,e),en(this,ln(e).apply(this,arguments))}return hn(e,On),le(e,[{key:"initialize",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.options={label:!1,class:"",showAll:function(t){dn(t.querySelectorAll("button.hide"),"hide");var e=t.querySelector(".uniformSelect-show-all");return e.parentNode.removeChild(e),!1},limit:8,container:!1},Q(this.options,this.pick(t,ne(this.options))),this.listenTo(this.el,"change",this.renderSelected),this.listenTo(this.el,"close",this.hideOptions),(this.el.uniformSelect=this).activeIcon=document.createElement("span"),this.activeIcon.innerHTML=Wn,pn(this.activeIcon,"uniformSelect-option-icon")}},{key:"remove",value:function(){On.prototype.remove.apply(this,arguments),this.edit_button.parentNode.removeChild(this.edit_button),delete this.this.edit_button,this.activeIcon.parentNode.removeChild(this.activeIcon),delete this.activeIcon,this.button_options_popover&&this.button_options_popover.remove(),this.button_options_modal&&this.button_options_modal.remove(),this.button_options&&(this.button_options.parentNode.removeChild(this.button_options),delete this.button_options)}},{key:"render",value:function(){this.edit_button=wn("\n <button type='button' class='uniformSelect-edit uniformInput outline block ".concat(this.options.class,'\'>\n <span class="text-js"></span>\n <span class="uniformSelect-edit-icon">').concat(Bn,"</span>\n </button>\n ")),this.el.name&&pn(this.edit_button,this.el.name.toLowerCase().replace(/[^a-z0-9\-_]+/g,"-")),this.el.style.display="none",this.el.insertAdjacentElement("beforebegin",this.edit_button),this.options.container||(this.options.container=this.edit_button.parentElement);var t=$n(this.el.querySelectorAll("option")).sort(function(t,e){return t.textContent.length>e.textContent.length}).reverse()[0];this.edit_button.querySelector(".text-js").style.opacity=0,this.edit_button.querySelector(".text-js").innerHTML=t.textContent;var e=this.edit_button.querySelector(".text-js").offsetWidth;return this.edit_button.style.minWidth=e+"px",this.edit_button.querySelector(".text-js").innerHTML="",this.edit_button.querySelector(".text-js").style.opacity=null,this.renderSelected(),this.listenTo(this.edit_button,"click",this.showOptions),this.listenTo(this.edit_button,"click",".uniformSelect-remove",this.removeSelection),this}},{key:"renderOptions",value:function(){this.button_options=wn("<div class='uniformSelect-options'>"),this.el.name&&pn(this.button_options,this.el.name.toLowerCase().replace(/[^a-z0-9\-_]+/g,"-")),this.button_options.style.fontSize=bn(this.el,"font-size"),mn(this.el.querySelectorAll("option"),function(t,e){var n=wn("<button type='button' class='uniformSelect-option block outline text-left'>");n.option=t,n.textContent=t.textContent,n.value=t.value,""==n.textContent&&(n.innerHTML="<span class='text-italic text-muted'>None</span>"),t.selected?(pn(n,"active"),n.append(this.activeIcon.cloneNode(!0))):this.options.limit&&e>this.options.limit&&pn(n,"hide"),this.button_options.append(n)}.bind(this)),this.listenTo(this.button_options,"click",".uniformSelect-option",this.selectOption);var t=wn('<div class="uniformSelect-options-actions"></div>');if(this.options.limit&&this.el.querySelectorAll("option").length>this.options.limit){var e=wn("<button type='button' class='uniformSelect-show-all outline blue' style='display: block; border: none'>Show All</button>");this.listenTo(e,"click",function(t){yn(this.el,"show_all"),this.options.showAll&&this.options.showAll(this.button_options),t.preventDefault(),t.stopPropagation()}),t.appendChild(e)}if(this.el.multiple){var n=wn("<button type='button' class='uniformSelect-done block outline blue'>Done</button>");this.listenTo(n,"click",this.hideOptions),t.appendChild(n)}""!==t.innerHTML&&this.button_options.appendChild(t)}},{key:"renderSelected",value:function(){var t=function(t,e){for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i));return n}(kn(this.el.querySelectorAll("option"),function(t){return t.selected}),function(t){return this.el.multiple?'<span class="uniformSelect-selection">'.concat(t.textContent,'<span class="uniformSelect-remove"></span></span>'):t.textContent}.bind(this)).join(" ");this.edit_button.querySelector(".text-js").innerHTML=""==t?" ":t,this.button_options&&mn(this.button_options.querySelectorAll(".uniformSelect-option"),function(t){t.option.selected?(pn(t,"active"),t.append(this.activeIcon.cloneNode(!0))):(dn(t,"active"),mn(t.querySelectorAll(".uniformSelect-option-icon"),gn))}.bind(this))}},{key:"hideOptions",value:function(){this.button_options&&(this.button_options_modal&&this.button_options_modal.close(),this.button_options_popover&&(this.button_options_popover.remove(),delete this.button_options_popover),dn(this.edit_button,"active"))}},{key:"showOptions",value:function(t){var e=this;if(!fn(t.target,"uniformSelect-remove")){if(this.button_options_modal)return this.hideOptions();if(this.button_options_popover)return this.hideOptions();if(this.button_options||this.renderOptions(),pn(this.edit_button,"active"),window.innerWidth<720){var n=wn('<div class="uniformSelect-modal">');n.append(this.button_options),this.options.label&&n.append('<div class="uniformSelect-label margin-bottom text-bold">'.concat(this.options.label,"</div>")),this.button_options_modal=new En({content:n,klass:"-reset"}).render(),this.button_options_modal.on("closed",function(){dn(e.edit_button,"active"),delete e.button_options_modal}),this.listenTo(n,"click",function(t){t.target==n&&this.button_options_modal.close()})}else this.button_options.style.minWidth=this.edit_button.offsetWidth+"px",this.button_options_popover=new Dn({offset:{top:1},anchor:this.edit_button,align:"0px bottom",content:this.button_options,container:this.options.container}).render(),this.button_options_popover.on("hidden",function(){dn(e.edit_button,"active"),e.button_options_popover.remove(),delete e.button_options_popover})}}},{key:"selectOption",value:function(t){t.target,this.el.multiple||(mn(this.button_options.querySelectorAll(".uniformSelect-option.active .uniformSelect-option-icon"),gn),dn(this.button_options.querySelectorAll(".uniformSelect-option.active"),"active")),vn(t.target,"active"),t.target.option.selected=fn(t.target,"active"),fn(t.target,"active")?t.target.append(this.activeIcon.cloneNode(!0)):mn(t.target.querySelectorAll(".uniformSelect-option-icon"),gn),this.el.multiple||this.hideOptions(),yn(this.el,"change")}},{key:"removeSelection",value:function(e){e.preventDefault();var t=kn(this.el.querySelectorAll("option"),function(t){return t.innerText.trim()==e.target.parentNode.innerText.trim()})[0];t&&(t.selected=!1,yn(this.el,"change"))}}]),e}(),On,"Select"),Yn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ie(this,e),en(this,ln(e).apply(this,arguments))}return hn(e,On),le(e,[{key:"initialize",value:function(){this.label=this.el.querySelector("label"),this.input=this.el.querySelector("#"+this.label.getAttribute("for")),this.startingHeight,this.listenTo(this.input,"focus",this.activate),this.listenTo(this.input,"blur",this.deactivate),this.listenTo(this.input,"revealed",this.render)}},{key:"render",value:function(){if(null!==this.input.offsetParent&&!fn(this.el,"enabled")){var t,e=at(bn(this.input,"paddingBottom"));this.startingHeight=this.input.offsetHeight,pn(this.el,"enabled"),pn(this.el,"inactive"),this.input.style.paddingTop=e+e/2+"px",this.input.style.paddingBottom=e-e/2-2+"px",this.label.style.position="absolute",this.label.style.top=0,this.label.style.left=this.label.offsetLeft,this.label.style.paddingLeft=bn(this.input,"paddingLeft"),this.label.style.height=this.startingHeight,this.label.style.lineHeight=this.startingHeight+"px",t=this.input,document.activeElement===t&&this.activate(),void 0!==this.input.value&&""!=this.input.value&&this.activate()}}},{key:"activate",value:function(t){void 0!==t&&pn(this.el,"active"),fn(this.el,"float")||(pn(this.el,"float"),dn(this.el,"inactive"),this.label.style.lineHeight=this.startingHeight/2+"px")}},{key:"deactivate",value:function(t){void 0!==t&&dn(this.el,"active"),""==this.input.value&&(dn(this.el,"float"),pn(this.el,"inactive"),this.label.style.lineHeight=this.startingHeight+"px")}}]),e}(),On,"FloatingLabel"),Vn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ie(this,e),en(this,ln(e).apply(this,arguments))}return hn(e,On),le(e,[{key:"initialize",value:function(){this.listenTo(window,"resize",this.resize),yn(window,"resize")}},{key:"resize",value:function(){var t=this.el.offsetWidth;720<t&&!fn(this.el,"md-size")?(pn(this.el,"md-size"),yn(window,"resized-md")):t<720&&fn(this.el,"md-size")&&dn(this.el,"md-size"),1080<t&&!fn(this.el,"lg-size")?(pn(this.el,"lg-size"),yn(window,"resized-lg")):t<1080&&fn(this.el,"lg-size")&&dn(this.el,"lg-size"),1440<t&&!fn(this.el,"xl-size")?(pn(this.el,"xl-size"),yn(window,"resized-xl")):t<1440&&fn(this.el,"xl-size")&&dn(this.el,"xl-size"),t<720&&!fn(this.el,"sm-size")?(pn(this.el,"sm-size"),yn(window,"resized-sm")):720<t&&fn(this.el,"sm-size")&&dn(this.el,"sm-size")}}]),e}(),On,"Resizer"),Kn=function(t,e,n){if(n&&Object.defineProperty(t,"name",{value:n,configurable:!0}),"extended"in e){if("function"!=typeof e.extended)throw new TypeError("Attempted to call extended, but it was not a function");var i=e.extended(t);void 0!==i&&(n&&"function"==typeof i&&i.name!==n&&Object.defineProperty(i,"name",{value:n,configurable:!0}),t=i)}return t}(function(t){function e(){return ie(this,e),en(this,ln(e).apply(this,arguments))}return hn(e,On),le(e,[{key:"initialize",value:function(t){t=t||{},this.options={align:"top",container:!1},Q(this.options,this.pick(t,ne(this.options))),this.enabled=!0,this.message=t.message,(t.el.tooltip=this).listenTo(this.el,"mouseenter",this.show),this.listenTo(this.el,"mouseleave",this.hide)}},{key:"render",value:function(){return this}},{key:"show",value:function(){this.enabled&&(clearTimeout(this.hide_timeout),this.popup?this.popup.show():this.popup=new Dn({content:"<div class=\"uniformTooltip-popup\">\n <div class='uniformTooltip-pointer'></div>\n ".concat(this.message,"\n </div>"),anchor:this.el,align:"top"==this.options.align?"center top":"center 100%",offset:{top:-7},container:this.options.container||document.body}).render())}},{key:"hide",value:function(){var t=this;this.hide_timeout=setTimeout(function(){t.popup.remove(),delete t.popup},300)}},{key:"disable",value:function(){this.enabled=!1}},{key:"enabled",value:function(){this.enabled=!0}}]),e}(),On,"Tooltip"),Jn=Object.freeze({Dropdown:Tn,Checkbox:jn,Modal:En,Select:Gn,FloatingLabel:Yn,Resizer:Vn,Tooltip:Kn,Popover:Dn});window.Uniform=Jn,$&&($.fn.uniformDropdown=function(){return this.each(function(){var n=$(this),t={el:this};void 0!==n.data("dropdown-align")&&(t.align=n.data("dropdown-align")),void 0!==n.data("dropdown-trigger")&&(t.trigger=n.data("dropdown-trigger")),void 0!==n.data("dropdown-show_arrow")&&(t.show_arrow=n.data("dropdown-show_arrow")),void 0!==n.data("dropdown-square")&&(t.square=n.data("dropdown-square")),void 0!==n.data("dropdown-hide_sm")&&(t.hide_sm=n.data("dropdown-hide_sm")),void 0!==n.data("dropdown-content")&&(t.content="<div class='pad'>".concat(n.data("dropdown-content"),"</div>")),void 0!==n.data("dropdown-target")&&(t.content=$(n.data("dropdown-target"))[0]);var e=new Tn(t);e.on("*",function(t,e){n.trigger("dropdown-"+t,e)}),e.render()})},$.fn.uniformCheckbox=function(){return this.each(function(){$(this);new jn({el:this}).render()})},$.fn.uniformRadio=$.fn.uniformCheckbox,$.fn.uniformFloatingLabel=function(){return this.each(function(){new Yn({el:this}).render()})},$.fn.uniformModal=function(){return this.click(function(){var n=$(this),t={klass:n.data("modal-klass"),content:n.data("modal-content")};if(n.data("modal-target")){var e=$(n.data("modal-target")).clone();e.removeClass("hidden"),t.content=e[0]}new En(t).render().on("*",function(t,e){n.trigger("modal-"+t,e)})})},$.fn.uniformResizer=function(){return this.each(function(){new Vn({el:this})})},$.fn.uniformSelect=function(){return this.each(function(){var t={el:this};Q(t,$(this).data()),new Gn(t).render()})},$.fn.uniformTooltip=function(){return this.each(function(){var n=$(this),t=new Kn({message:n.data("tooltip-message"),container:n.data("tooltip-container"),el:this});t.on("*",function(t,e){n.trigger("tooltip-"+t,e)}),t.render()})},$.fn.uniformTristate=function(){return this.each(function(){var i=$(this);function e(t){if(0==t.length)i.addClass("-null"),$(i.find("input")[1]).prop("checked",!0);else{var e=t.index(),n=0==e?"-true":1==e?"-null":"-false";i.removeClass("-true -null -false"),i.addClass(n)}}i.on("change","input",function(t){e($(t.currentTarget))}),e(i.find("input:checked")),i.on("blur","input",function(t){i.removeClass("-focus")}),i.on("focus","input",function(t){i.addClass("-focus")})})})}();
|
@@ -1,21 +1,21 @@
|
|
1
|
-
import Dropdown from 'uniform/dropdown';
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
1
|
+
import Dropdown from './uniform/dropdown';
|
2
|
+
import Modal from './uniform/modal';
|
3
|
+
import Select from './uniform/select';
|
4
|
+
import FloatingLabelInput from './uniform/floating-label-input';
|
5
|
+
import Resizer from './uniform/resizer';
|
6
|
+
import Tooltip from './uniform/tooltip';
|
7
|
+
import Popover from './uniform/popover';
|
8
|
+
import {Checkbox, Radio, Toggle} from './uniform/checkbox';
|
9
9
|
|
10
10
|
export {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
Dropdown,
|
12
|
+
Modal,
|
13
|
+
Select,
|
14
|
+
FloatingLabelInput,
|
15
|
+
Resizer,
|
16
|
+
Tooltip,
|
17
|
+
Popover,
|
18
|
+
Checkbox,
|
19
|
+
Radio,
|
20
|
+
Toggle
|
21
|
+
}
|
@@ -1,31 +1,74 @@
|
|
1
1
|
import Component from './component';
|
2
|
-
import
|
2
|
+
import { trigger, createElement} from 'dolla';
|
3
3
|
|
4
|
-
export
|
4
|
+
export class Checkbox extends Component {
|
5
|
+
static CSSClass = "uniformCheckbox";
|
6
|
+
static type = 'checkbox';
|
7
|
+
|
5
8
|
initialize (options) {
|
6
|
-
|
9
|
+
if(options.input instanceof Element) {
|
10
|
+
this.input = options.input
|
11
|
+
} else {
|
12
|
+
this.input = createElement('input', Object.assign({}, {
|
13
|
+
type: this.constructor.type
|
14
|
+
}, options.input)) // TODO filter options to dolla.HTML_ATTRIBUTES
|
15
|
+
}
|
16
|
+
|
17
|
+
if(!options.tabindex) this.el.tabIndex = 0;
|
18
|
+
this.el.classList.add(this.constructor.CSSClass);
|
19
|
+
|
20
|
+
this.listenTo(this.el, 'click', this.click);
|
21
|
+
this.listenTo(this.input, 'change', this.change);
|
22
|
+
this.listenTo(document, 'keyup', this.keyup);
|
23
|
+
this.listenTo(document, 'keydown', this.keydown);
|
7
24
|
}
|
8
25
|
|
9
26
|
render () {
|
10
|
-
|
11
|
-
|
12
|
-
|
27
|
+
this.input.style.display = "none";
|
28
|
+
|
29
|
+
if(this.input.parentNode){
|
30
|
+
this.input.parentNode.insertBefore(this.el, this.input.nextSibling);
|
31
|
+
} else {
|
32
|
+
this.el.append(this.input);
|
33
|
+
}
|
13
34
|
|
14
|
-
|
15
|
-
|
16
|
-
Helpers.toggleClass(this.checkbox, 'checked', this.el.checked);
|
17
|
-
this.el.parentNode.insertBefore(this.checkbox, this.el.nextSibling);
|
18
|
-
this.listenTo(this.checkbox, 'click', this.click);
|
35
|
+
this.change()
|
36
|
+
|
19
37
|
return this;
|
20
38
|
}
|
21
39
|
|
40
|
+
change () {
|
41
|
+
this.el.classList.toggle('checked', this.input.checked);
|
42
|
+
}
|
43
|
+
|
22
44
|
click (e) {
|
23
|
-
if (this.
|
24
|
-
|
25
|
-
|
45
|
+
if (this.input.disabled) return;
|
46
|
+
|
47
|
+
this.input.checked = !this.input.checked
|
48
|
+
trigger(this.input, 'change');
|
26
49
|
e.preventDefault();
|
27
50
|
}
|
28
|
-
|
29
|
-
|
51
|
+
|
52
|
+
keyup (e) {
|
53
|
+
if(document.activeElement != this.el) return;
|
54
|
+
if(e.keyCode != 32) return;
|
55
|
+
|
56
|
+
e.preventDefault();
|
57
|
+
this.click(e);
|
30
58
|
}
|
59
|
+
|
60
|
+
keydown(e) {
|
61
|
+
if(e.keyCode == 32 && document.activeElement == this.el) {
|
62
|
+
// Prevent Page Scroll
|
63
|
+
e.preventDefault();
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
export class Radio extends Checkbox {
|
69
|
+
static CSSClass = "uniformRadio";
|
70
|
+
}
|
71
|
+
|
72
|
+
export class Toggle extends Checkbox {
|
73
|
+
static CSSClass = "uniformToggle";
|
31
74
|
}
|
@@ -1,11 +1,18 @@
|
|
1
|
-
import {
|
1
|
+
import {hasClass, HTML_ATTRIBUTES, createElement} from 'dolla';
|
2
|
+
|
3
|
+
function uniqueId(prefix){
|
4
|
+
window.idCounter || (window.idCounter = 0);
|
5
|
+
var id = ++window.idCounter + '';
|
6
|
+
return prefix ? prefix + id : id;
|
7
|
+
}
|
2
8
|
|
3
9
|
export default class Component {
|
10
|
+
|
4
11
|
constructor(options){
|
5
12
|
options = options || {};
|
6
13
|
this.eventListens = new Array();
|
7
14
|
this.eventListeners = new Array();
|
8
|
-
this.el = options.el ||
|
15
|
+
this.el = options.el || createElement('div', options); //TODO filter options to HTML_ATTRIBUTES
|
9
16
|
this.cid = uniqueId('c');
|
10
17
|
|
11
18
|
this.on = function (type, handler) {
|
@@ -34,6 +41,14 @@ export default class Component {
|
|
34
41
|
this.initialize(options);
|
35
42
|
}
|
36
43
|
|
44
|
+
addEventListener () {
|
45
|
+
this.on.apply(this, arguments);
|
46
|
+
}
|
47
|
+
|
48
|
+
removeEventListener () {
|
49
|
+
this.off.apply(this, arguments);
|
50
|
+
}
|
51
|
+
|
37
52
|
pick (object, keys) {
|
38
53
|
var newObject = {}
|
39
54
|
keys.forEach(function(key){
|
@@ -59,8 +74,9 @@ export default class Component {
|
|
59
74
|
node,
|
60
75
|
event,
|
61
76
|
function(e){
|
62
|
-
if(scope
|
63
|
-
|
77
|
+
if(!scope || (e.target.matches(scope) || e.target.closest(scope))) {
|
78
|
+
return callback.bind(context)(...arguments);
|
79
|
+
}
|
64
80
|
}.bind(context)
|
65
81
|
]
|
66
82
|
this.eventListens.push(listen);
|
@@ -1,217 +1,86 @@
|
|
1
1
|
import Component from './component';
|
2
|
-
import
|
2
|
+
import Popover from './popover';
|
3
|
+
import {createElement} from 'dolla';
|
3
4
|
|
4
|
-
/*.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
/*.
|
6
|
+
anchor: element
|
7
|
+
content: html
|
8
|
+
align: top|bottom (default: top)
|
9
|
+
container: document.body
|
10
|
+
|
11
|
+
methods
|
12
|
+
------
|
13
|
+
enable
|
14
|
+
disable
|
15
|
+
hide
|
16
|
+
show
|
17
|
+
toggle
|
12
18
|
*/
|
13
19
|
export default class Dropdown extends Component {
|
20
|
+
|
21
|
+
initialize (options) {
|
22
|
+
this.el = options.anchor;
|
23
|
+
options = options || {}
|
24
|
+
this.options = {
|
25
|
+
align: 'center bottom',
|
26
|
+
container: document.body
|
27
|
+
};
|
28
|
+
Object.assign(this.options, this.pick(options, Object.keys(this.options)));
|
29
|
+
|
30
|
+
this.enabled = true;
|
31
|
+
this.active = false;
|
32
|
+
this.content = options.content;
|
33
|
+
this.el.dropdown = this;
|
34
|
+
|
35
|
+
this.listenTo(this.el, 'click', this.toggle);
|
36
|
+
}
|
14
37
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
};
|
26
|
-
this.options.container = this.options.container || document.body;
|
27
|
-
|
28
|
-
Object.assign(this.options, this.pick(options, Object.keys(this.options)));
|
29
|
-
this.content = options.content;
|
30
|
-
this.dropdown = document.createElement('div');
|
31
|
-
this.el.dropdown = this;
|
32
|
-
|
33
|
-
this.listenTo(this.el, this.options.trigger, this.toggle);
|
34
|
-
|
35
|
-
this.listenTo(this.el, 'mousedown', function (){
|
36
|
-
this.mousedown = true;
|
37
|
-
});
|
38
|
-
|
39
|
-
this.listenTo(this.el, 'mouseup', function (){
|
40
|
-
this.mousedown = false;
|
41
|
-
});
|
42
|
-
|
43
|
-
this.listenTo(this.el, 'focus', function (){
|
44
|
-
if(this.mousedown) return;
|
45
|
-
this.show();
|
46
|
-
});
|
47
|
-
|
48
|
-
this.listenTo(document, 'focus', this.outsideClick);
|
49
|
-
this.listenTo(document, this.options.trigger, this.outsideClick);
|
50
|
-
this.listenTo(document, 'keyup', this.keyup);
|
51
|
-
this.listenTo(window, 'resize', this.resize);
|
52
|
-
}
|
53
|
-
|
54
|
-
render () {
|
55
|
-
Helpers.addClass(this.dropdown, 'uniformDropdown-dropdown');
|
56
|
-
Helpers.addClass(this.dropdown, 'absolute');
|
57
|
-
this.dropdown.style.minWidth = Helpers.outerWidth(this.el);
|
58
|
-
this.dropdown.innerHTML = this.content.innerHTML ? this.content.innerHTML : this.content;
|
59
|
-
if (this.options.show_arrow) {
|
60
|
-
Helpers.addClass(this.dropdown, 'has-pointer');
|
61
|
-
var pointer = document.createElement('div');
|
62
|
-
Helpers.addClass(pointer, 'uniformDropdown-pointer')
|
63
|
-
this.dropdown.appendChild(pointer);
|
64
|
-
}
|
65
|
-
Helpers.toggleClass(this.dropdown, 'square', this.options.square);
|
66
|
-
this.dropdown.style.display = 'none';
|
67
|
-
this.options.container.appendChild(this.dropdown);
|
68
|
-
Helpers.removeClass(this.dropdown.querySelectorAll('.hidden'), 'hidden');
|
69
|
-
return this;
|
70
|
-
}
|
71
|
-
|
72
|
-
resize () {
|
73
|
-
this.setPosition();
|
74
|
-
|
75
|
-
var align = this.options.align.split(" ");
|
76
|
-
var reposition = false;
|
77
|
-
if (Helpers.offset(this.dropdown).top + Helpers.outerHeight(this.dropdown) > Math.max(document.body.offsetHeight, window.innerHeight)) {
|
78
|
-
align[1] = "top";
|
79
|
-
reposition = true;
|
80
|
-
}
|
81
|
-
if (Helpers.offset(this.dropdown).top < 0) {
|
82
|
-
align[1] = "bottom";
|
83
|
-
reposition = true;
|
84
|
-
}
|
85
|
-
if (Helpers.offset(this.dropdown).left < 0) {
|
86
|
-
align[0] = "right";
|
87
|
-
reposition = true;
|
88
|
-
}
|
89
|
-
if (Helpers.offset(this.dropdown).left + Helpers.outerWidth(this.dropdown) > document.body.offsetWidth) {
|
90
|
-
align[0] = "left";
|
91
|
-
reposition = true;
|
92
|
-
}
|
93
|
-
if(reposition) this.setPosition(align.join(" "))
|
94
|
-
}
|
95
|
-
|
96
|
-
|
97
|
-
setPosition(align){
|
98
|
-
align = align || this.options.align;
|
99
|
-
var [leftAlign, topAlign] = align.split(" ");
|
100
|
-
leftAlign = leftAlign || "bottom";
|
101
|
-
topAlign = topAlign || "bottom";
|
102
|
-
|
103
|
-
var offset = Helpers.offset(this.el);
|
104
|
-
var container = this.options.container;
|
105
|
-
if(getComputedStyle(container)['position'] == "static") container = container.offsetParent;
|
106
|
-
if(!container) container = document.body;
|
107
|
-
|
108
|
-
var containerOffset = Helpers.offset(container);
|
109
|
-
offset = {
|
110
|
-
top: offset.top - containerOffset.top,
|
111
|
-
left: offset.left - containerOffset.left
|
112
|
-
}
|
113
|
-
|
114
|
-
var position = {};
|
115
|
-
if(leftAlign == 'left'){
|
116
|
-
position.right = Helpers.outerWidth(container) - offset.left;
|
117
|
-
} else if(leftAlign == 'center'){
|
118
|
-
position.left = offset.left + Helpers.outerWidth(this.el) / 2 - Helpers.outerWidth(this.dropdown) / 2;
|
119
|
-
} else if (leftAlign == 'right'){
|
120
|
-
position.left = offset.left + Helpers.outerWidth(this.el);
|
121
|
-
} else if (leftAlign.includes("%")){
|
122
|
-
position.left = offset.left + Helpers.outerWidth(this.el) * parseInt(leftAlign) / 100;
|
123
|
-
} else if (leftAlign.includes("px")){
|
124
|
-
position.left = offset.left + Helpers.outerWidth(this.el) + parseInt(leftAlign);
|
125
|
-
}
|
126
|
-
|
127
|
-
if(topAlign == 'top'){
|
128
|
-
position.top = offset.top - Helpers.outerHeight(this.dropdown);
|
129
|
-
} else if(topAlign == 'center'){
|
130
|
-
position.top = offset.top + Helpers.outerHeight(this.el) / 2 - Helpers.outerHeight(this.dropdown) / 2;
|
131
|
-
} else if (topAlign == 'bottom'){
|
132
|
-
position.top = offset.top + Helpers.outerHeight(this.el);
|
133
|
-
} else if (topAlign.includes("%")){
|
134
|
-
position.top = offset.top + Helpers.outerHeight(this.el) * parseInt(topAlign) / 100;
|
135
|
-
} else if (topAlign.includes("px")){
|
136
|
-
position.top = offset.top + Helpers.outerHeight(this.el) + parseInt(topAlign);
|
137
|
-
}
|
138
|
-
|
139
|
-
if(this.options.offset.left) position.left += parseInt(this.options.offset.left);
|
140
|
-
if(this.options.offset.top) position.top += parseInt(this.options.offset.top);
|
141
|
-
if(this.options.offset.left) position.right -= parseInt(this.options.offset.left);
|
142
|
-
|
143
|
-
this.dropdown.style.left = 'auto';
|
144
|
-
this.dropdown.style.right = 'auto';
|
145
|
-
Helpers.removeClass(this.dropdown, 'popover-left popover-right popover-center popover-top popover-bottom');
|
146
|
-
Helpers.addClass(this.dropdown, 'popover-' + topAlign);
|
147
|
-
Helpers.addClass(this.dropdown, 'popover-' + leftAlign);
|
148
|
-
Object.keys(position).forEach(function(key){
|
149
|
-
this.dropdown.style[key] = position[key] + "px";
|
150
|
-
}, this);
|
151
|
-
}
|
152
|
-
|
153
|
-
remove () {
|
154
|
-
Component.prototype.remove.apply(this, arguments);
|
155
|
-
if(this.dropdown.parentNode) this.dropdown.parentNode.removeChild(this.dropdown);
|
156
|
-
delete this.dropdown;
|
38
|
+
render () {
|
39
|
+
return this;
|
40
|
+
}
|
41
|
+
|
42
|
+
toggle () {
|
43
|
+
this.active = !this.active
|
44
|
+
if(this.active) {
|
45
|
+
this.show()
|
46
|
+
} else {
|
47
|
+
this.hide()
|
157
48
|
}
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
this.resize();
|
176
|
-
|
177
|
-
this.overlay = document.createElement('div');
|
178
|
-
Helpers.addClass(this.overlay, 'uniformOverlay');
|
179
|
-
document.body.appendChild(this.overlay);
|
180
|
-
|
181
|
-
if (window.innerWidth < 720) {
|
182
|
-
this.lastScrollPosition = window.scrollY;
|
183
|
-
Helpers.addClass(document.body, 'uniformModal-hideBody');
|
184
|
-
}
|
185
|
-
|
186
|
-
this.listenTo(this.overlay, 'click', this.hide);
|
187
|
-
if(!options.silent) this.trigger('shown');
|
188
|
-
}
|
189
|
-
|
190
|
-
hide (options) {
|
191
|
-
options || (options = {});
|
192
|
-
if(!this.dropdown) return;
|
193
|
-
if(!Helpers.hasClass(this.el, 'active')) return;
|
194
|
-
this.dropdown.style.display = 'none';
|
195
|
-
Helpers.removeClass(this.el, 'active');
|
196
|
-
if (this.overlay && this.overlay.parentNode) this.overlay.parentNode.removeChild(this.overlay)
|
197
|
-
if (window.innerWidth < 720) {
|
198
|
-
Helpers.removeClass(document.body, 'uniformModal-hideBody');
|
199
|
-
window.scrollTo(0, this.lastScrollPosition);
|
200
|
-
}
|
201
|
-
if(!options.silent) this.trigger('hidden');
|
202
|
-
}
|
203
|
-
|
204
|
-
outsideClick (e) {
|
205
|
-
if (!this.dropdown || this.dropdown.offsetParent === null) return;
|
206
|
-
if (e.target === this.el) return;
|
207
|
-
if (e.target === this.overlay) return;
|
208
|
-
if (this.el.contains(e.target)) return;
|
209
|
-
if (this.dropdown.contains(e.target)) return;
|
210
|
-
this.hide();
|
211
|
-
}
|
212
|
-
|
213
|
-
keyup (e) {
|
214
|
-
if(e.which != 27) return;
|
215
|
-
this.hide();
|
49
|
+
}
|
50
|
+
|
51
|
+
show () {
|
52
|
+
if(!this.enabled) return;
|
53
|
+
this.active = true;
|
54
|
+
this.el.classList.add('-active');
|
55
|
+
if (this.popup) {
|
56
|
+
this.popup.show()
|
57
|
+
} else {
|
58
|
+
this.popup = new Popover({
|
59
|
+
content: this.content,
|
60
|
+
anchor: this.el,
|
61
|
+
align: this.options.align,
|
62
|
+
container: this.options.container
|
63
|
+
}).render();
|
64
|
+
this.listenToOnce(this.popup, 'hidden', this.hidden)
|
216
65
|
}
|
66
|
+
}
|
67
|
+
|
68
|
+
hide () {
|
69
|
+
this.popup.remove();
|
70
|
+
delete this.popup;
|
71
|
+
this.hidden();
|
72
|
+
}
|
73
|
+
|
74
|
+
hidden () {
|
75
|
+
this.active = false;
|
76
|
+
this.el.classList.remove('-active');
|
77
|
+
}
|
78
|
+
|
79
|
+
disable () {
|
80
|
+
this.enabled = false;
|
81
|
+
}
|
82
|
+
|
83
|
+
enabled () {
|
84
|
+
this.enabled = true;
|
85
|
+
}
|
217
86
|
}
|