Comparing version 0.45.1 to 0.45.2
@@ -1,3 +0,3 @@ | ||
!function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var i=n(1);i.keys().forEach(i)},function(t,e,n){function i(t){return n(o(t))}function o(t){return r[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var r={"./components/alert":2,"./components/alert.js":2,"./components/collapse":7,"./components/collapse.js":7,"./components/confirm":8,"./components/confirm.js":8,"./components/form":9,"./components/form.js":9,"./components/lazy-load":10,"./components/lazy-load.js":10,"./components/modal":4,"./components/modal.js":4,"./components/notification":13,"./components/notification.js":13,"./components/scroll":15,"./components/scroll.js":15,"./components/tooltip":18,"./components/tooltip.js":18,"./components/validation":20,"./components/validation.js":20,"./components/validation/confirm":23,"./components/validation/confirm.js":23,"./components/validation/defaults":21,"./components/validation/defaults.js":21,"./components/validation/email":26,"./components/validation/email.js":26,"./components/validation/maxlength":25,"./components/validation/maxlength.js":25,"./components/validation/minlength":24,"./components/validation/minlength.js":24,"./components/validation/required":22,"./components/validation/required.js":22};i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=1},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Alert=void 0;var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(4),u=(i(l),"alert"),f={textMessage:"This is an example message",textButton:"Ok",size:"medium",triggerClose:"[data-alert-button]"},c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t),this.options=a.default.extend({},f,e)}return r(t,[{key:"init",value:function(){this.setupAlert(),this.showAlert()}},{key:"setupAlert",value:function(){var t=this.options,e=t.textMessage,n=t.textButton,i=t.size,o=t.triggerClose;this.$element=(0,a.default)(this.buildHtml(e,n)),this.modal=(0,a.default)(this.$element).modal({triggerClose:o,size:i}).data("modal")}},{key:"showAlert",value:function(){var t=this.modal,e=this.options.triggerClose;t.show(),t.$content.find(e).focus()}},{key:"hideAlert",value:function(){this.modal.hide()}},{key:"buildHtml",value:function(t,e){return'\n <div>\n <div class="container-fluid align-center">\n <div class="row">\n <div class="col-xs-12">\n <p data-alert-text>'+t+'</p>\n </div>\n <div class="row">\n <div class="col-xs-offset-2 col-xs-8 col-md-offset-4 col-md-4">\n <button class="button button-primary button-full" data-alert-button>\n '+e+"\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n "}}]),t}();a.default.fn[u]=function(t){return a.default.data(this,u,new c(t).init())},e.default=function(t){return new c(t).init()},e.Alert=c},function(t,e){t.exports=$},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(5),u=i(l),f="modal",c="#modal-open",d={modal:'<div class="modal"></div>',close:'<i class="modal-close glyph glyph-x"></i>',content:'<div class="modal-content"><div class="modal-body"></div></div>'},h={container:"body",size:"medium",triggerClose:null,static:!1,keyboard:!0,history:!1,keys:{esc:27},triggerOpen:null},p=function(){function t(e,n){o(this,t),this.$element=e instanceof a.default?e:(0,a.default)(e),this.options=a.default.extend({},h,n||{})}return r(t,[{key:"init",value:function(){return this.$container=(0,a.default)(this.options.container),this.createModal(),this}},{key:"show",value:function(){this.bindListeners(),this.showModal()}},{key:"hide",value:function(){this.unbindListeners(),this.hideModal()}},{key:"destroy",value:function(){this.$element.removeData(f),this.$modal.remove()}},{key:"bindListeners",value:function(){this.options.triggerClose&&this.$modal.on("click",this.options.triggerClose,this.hide.bind(this)),this.$close.on("click",this.hide.bind(this)),this.bindKeyboardListener(),this.options.history&&(this.bindModalShowListener(),this.bindHashChangeListener(),this.bindModalHideListener())}},{key:"bindKeyboardListener",value:function(){var t=this;this.options.keyboard&&(0,a.default)(window).on("keyup",function(e){var n=t.options.keys.esc,i=e.which;i===n&&t.hide()})}},{key:"bindModalShowListener",value:function(){u.default.on("modal:show",function(){window.location.hash=c})}},{key:"bindHashChangeListener",value:function(){var t=this;(0,a.default)(window).on("hashchange",function(){window.location.hash||t.hide()})}},{key:"bindModalHideListener",value:function(){u.default.on("modal:hide",function(){history.back()})}},{key:"unbindListeners",value:function(){this.options.triggerClose&&this.$modal.off("click",this.options.triggerClose,this.hide.bind(this)),this.$close.off("click"),(0,a.default)(window).off("keyup",this.handler)}},{key:"bindTrigger",value:function(){this.options.triggerOpen&&(0,a.default)(this.options.triggerOpen).on("click",this.onTriggerOpenClick.bind(this))}},{key:"onTriggerOpenClick",value:function(t){t.preventDefault(),this.show()}},{key:"showModal",value:function(){var t=this;u.default.emit("modal:show"),u.default.removeAllListeners("modal:show"),this.$modal.addClass("modal-enter"),this.$content.addClass("modal-content-enter"),this.$container.addClass("no-scroll"),window.setTimeout(function(){t.$modal.addClass("modal-show"),t.$content.addClass("modal-content-show")},200),this.$modal.on("click",this.onModalClick.bind(this))}},{key:"hideModal",value:function(){var t=this;window.location.hash&&u.default.emit("modal:hide"),u.default.removeAllListeners("modal:hide"),this.$content.removeClass("modal-content-show").addClass("modal-content-leave"),this.$modal.removeClass("modal-show").addClass("modal-leave"),this.$container.removeClass("no-scroll"),window.setTimeout(function(){t.$modal.removeClass("modal-enter modal-leave"),t.$content.removeClass("modal-content-enter modal-content-leave")},200)}},{key:"onModalClick",value:function(t){!this.isStaticModal()&&this.$modal.is(t.target)&&this.hideModal()}},{key:"fillModal",value:function(){this.$content.find(".modal-body").append(this.$element.html())}},{key:"createModal",value:function(){this.$modal=(0,a.default)(d.modal),this.$content=(0,a.default)(d.content),this.$close=(0,a.default)(d.close),this.$content.addClass(this.setupSizeModal(this.options.size)),this.isStaticModal()||this.$content.append(this.$close),this.$modal.append(this.$content),this.$container.append(this.$modal),this.bindTrigger(),this.fillModal()}},{key:"isStaticModal",value:function(){return this.options.static}},{key:"setupSizeModal",value:function(t){var e={small:"modal-content-sm",medium:"modal-content-md",large:"modal-content-lg"};return e[t]}}]),t}();a.default.fn[f]=function(t){return t=t||{},this.each(function(){a.default.data(this,f)||a.default.data(this,f,new p(this,t).init())})},e.default=p},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),r=i(o);e.default=new r.default},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function o(t){return"number"==typeof t}function r(t){return"object"==typeof t&&null!==t}function s(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,o,a,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var f=new Error('Uncaught, unspecified "error" event. ('+e+")");throw f.context=e,f}if(n=this._events[t],s(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(r(n))for(a=Array.prototype.slice.call(arguments,1),u=n.slice(),o=u.length,l=0;l<o;l++)u[l].apply(this,a);return!0},n.prototype.addListener=function(t,e){var o;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?r(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,r(this._events[t])&&!this._events[t].warned&&(o=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,o&&o>0&&this._events[t].length>o&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),o||(o=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var o=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,o,s,a;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],s=n.length,o=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(r(n)){for(a=s;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){o=a;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],i(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(5),u=i(l),f="collapse",c={selector:"data-target",listener:"click",activeClass:"active",visibleClass:"visible",timing:300},d=function(){function t(e,n){o(this,t),this.$element=(0,a.default)(e),this.options=a.default.extend({},c,n||{})}return r(t,[{key:"init",value:function(){return this.$toggle=(0,a.default)(this.$element.attr(this.options.selector)),this.toggle=this.$toggle[0],this.setInitialState(),this.bindListeners(),this}},{key:"setInitialState",value:function(){var t=this;this.isCollapsed=!this.$toggle.hasClass(this.options.visibleClass),setTimeout(function(){t.toggleHeight=t.toggle.scrollHeight},this.options.timing),this.isCollapsed||(this.toggle.style.maxHeight=this.toggleHeight+"px")}},{key:"bindListeners",value:function(){this.$element.on(this.options.listener,this.toggleTarget.bind(this))}},{key:"toggleTarget",value:function(){this.isCollapsed?this.showTarget():this.hideTarget()}},{key:"hideTarget",value:function(){this.isCollapsed=!0,this.toggle.style.maxHeight="",this.$toggle.removeClass(this.options.visibleClass),this.$element.removeClass(this.options.activeClass),u.default.emit("collapse:hide",this.$element,this.$toggle)}},{key:"showTarget",value:function(){this.isCollapsed=!1,this.toggle.style.maxHeight=this.toggleHeight+"px",this.$toggle.addClass(this.options.visibleClass),this.$element.addClass(this.options.activeClass),u.default.emit("collapse:show",this.$element,this.$toggle)}}]),t}();a.default.fn[f]=function(t){return t=t||{},this.each(function(){a.default.data(this,f)||a.default.data(this,f,new d(this,t).init())})},e.default=d},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Confirm=void 0;var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(4),u=(i(l),"confirm"),f={textMessage:"This is an example message",textConfirmButton:"Ok",textCancelButton:"Cancel",size:"medium",static:!0,triggerCancel:"[data-cancel-button]",triggerConfirm:"[data-confirm-button]"},c=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.options=a.default.extend({},f,n),this.callback=e}return r(t,[{key:"init",value:function(){this.setupConfirm(),this.setupElements(),this.bindListeners(),this.showConfirm()}},{key:"setupConfirm",value:function(){this.$element=(0,a.default)(this.buildHtml(this.options)),this.modal=this.$element.modal(this.options).data("modal")}},{key:"setupElements",value:function(){var t=this.modal.$content;this.$confirmButton=t.find(this.options.triggerConfirm),this.$cancelButton=t.find(this.options.triggerCancel)}},{key:"bindListeners",value:function(){this.$confirmButton.on("click",this.onConfirmClick.bind(this)),this.$cancelButton.on("click",this.onCancelClick.bind(this))}},{key:"onConfirmClick",value:function(){this.callback(!0),this.hideConfirm()}},{key:"onCancelClick",value:function(){this.callback(!1),this.hideConfirm()}},{key:"showConfirm",value:function(){this.modal.show(),this.$confirmButton.focus()}},{key:"hideConfirm",value:function(){this.modal.hide()}},{key:"buildHtml",value:function(t){var e=t.textMessage,n=t.textConfirmButton,i=t.textCancelButton;return'\n <div>\n <div class="container-fluid align-center">\n <div class="row">\n <div class="col-xs-12">\n <p data-confirm-text>'+e+'</p>\n </div>\n <div class="row">\n <div class="col-xs-offset-2 col-xs-5 col-md-4">\n <button class="button button-primary button-full" data-confirm-button>\n '+n+'\n </button>\n </div>\n <div class="col-xs-5 col-md-4">\n <button class="button button-full" data-cancel-button>\n '+i+"\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n "}}]),t}();a.default.fn[u]=function(t,e){return a.default.data(this,u,new c(t,e).init())},e.default=function(t,e){return new c(t,e).init()},e.Confirm=c},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l="form",u={events:"change",selectors:".input, select, .select, .textarea"},f=function(){function t(e,n){o(this,t),this.$element=(0,a.default)(e),this.options=a.default.extend({},u,n||{}),this.bindListeners(),this.toggleFieldsActiveClass()}return r(t,[{key:"bindListeners",value:function(){(0,a.default)(document).on(this.options.events,this.options.selectors,this.onFieldChange.bind(this))}},{key:"onFieldChange",value:function(t){this.toggleActiveClass(t.target)}},{key:"shouldInputBeActive",value:function(t){var e=t.val();return t.is("select")&&(e=t.find("option:selected").text().trim()),!!e}},{key:"toggleActiveClass",value:function(t){var e=(0,a.default)(t),n=e.parents(".field");if(n.length)return!n.hasClass("active")&&this.shouldInputBeActive(e)?n.addClass("active"):n.hasClass("active")&&!this.shouldInputBeActive(e)?n.removeClass("active"):void 0}},{key:"toggleFieldsActiveClass",value:function(){Array.prototype.forEach.call((0,a.default)(document).find(this.options.selectors),this.toggleActiveClass.bind(this))}}]),t}();a.default.fn[l]=function(t){return t=t||{},this.each(function(){a.default.data(this,l)||a.default.data(this,l,new f(this,t))})},e.default=f},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(11),u=i(l),f=n(12),c=i(f),d="lazyload",h={throttle:1e3,offset:200,selector:"data-lazy"},p=function(){function t(e,n){o(this,t),this.$element=(0,a.default)(e),this.options=a.default.extend({},h,n||{})}return r(t,[{key:"init",value:function(){return this.bindListeners(),this.checkVisiblePlaceholders(),this}},{key:"bindListeners",value:function(){this.onScrollHandler=(0,u.default)(this.onScroll.bind(this),this.options.throttle),(0,a.default)(window).on("scroll",this.onScrollHandler)}},{key:"onScroll",value:function(){return this.$element.length?this.checkVisiblePlaceholders():(0,a.default)(window).off("scroll",this.onScrollHandler)}},{key:"checkVisiblePlaceholders",value:function(){this.windowHeight=(0,a.default)(window).height(),this.windowWidth=(0,a.default)(window).width(),Array.prototype.forEach.call(this.$element,this.checkPlaceholder.bind(this))}},{key:"checkPlaceholder",value:function(t){this.isPlaceholderVisible(t)&&(this.renderImage(t),(0,c.default)(this.$element,t))}},{key:"isPlaceholderVisible",value:function(t){return t.getBoundingClientRect().top<=this.windowHeight+this.options.offset}},{key:"renderImage",value:function(t){t.parentNode.replaceChild(this.createImage(t),t)}},{key:"createImage",value:function(t){var e=document.createElement("img");return this.parseAttributes(e,t.attributes),e.removeAttribute("data-lazy"),t.getAttribute("data-srcset")?(this.parseBreakpoints(e,t.getAttribute("data-srcset")),e):(e.src=t.getAttribute("data-src"),e)}},{key:"parseAttributes",value:function(t,e){var n=this;return Array.prototype.forEach.call(e,function(e){e.name===n.options.selector&&"data-srcset"===e.name&&"data-src"===e.name||t.setAttribute(e.name,e.value)}),t}},{key:"parseBreakpoints",value:function(t,e){t.removeAttribute("data-srcset"),e=e.split(/,\s+/g).map(function(t){return t=t.trim().split(/\s+/),{src:t[0],width:t[1]}}).sort(function(t,e){return e.width-t.width});for(var n=0;n<e.length;n++){var i=e[n];if(i.width<=this.windowWidth){t.src=i.src;break}}return t}},{key:"destroy",value:function(){(0,a.default)(window).off("scroll",this.onScrollHandler)}}]),t}();a.default.fn[d]=function(t){return t=t||{},this.each(function(){a.default.data(this,d)||a.default.data(this,d,new p(this,t).init())})},e.default=p},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=!0;return function(){if(n){for(var i=arguments.length,o=Array(i),r=0;r<i;r++)o[r]=arguments[r];t.apply(this,o),n=!1,setTimeout(function(){return n=!0},e)}}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){Array.prototype.splice.call(t,Array.prototype.indexOf.call(t,e))}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(14),u=i(l),f="notification",c={autoHide:!1,closeButton:"."+f+"-close",dynamic:!0,hideIn:3e3,message:null,showIn:1e3,type:"primary"},d={hide:f+"-hide",show:f+"-show",enter:f+"-enter",leave:f+"-leave",close:f+"-close"},h={box:'<div class="'+f+" "+d.enter+'"></div>',close:'<i class="'+d.close+' glyph glyph-x"></i>'},p=function(){function t(e,n){o(this,t),this.$element=e instanceof a.default?e:(0,a.default)(e),this.options=a.default.extend({},c,n)}return r(t,[{key:"init",value:function(){var t=this;return this._createNotification(),this.bindListeners(),this.options.dynamic?(window.setTimeout(function(){t.show()},this.options.showIn),this):this}},{key:"bindListeners",value:function(){var t=this;this.$closeHandler=function(){t.hide()},this.$close.on("click",this.$closeHandler)}},{key:"show",value:function(){var t=this;this.$box.addClass(d.show).removeClass(d.hide),this.options.autoHide&&window.setTimeout(function(){t.hide()},this.options.hideIn)}},{key:"hide",value:function(){var t=this;this.$box.removeClass(d.show).addClass(d.leave),this.$box.on((0,u.default)(),function(){t.$box.addClass(d.hide).removeClass(d.enter).removeClass(d.leave)})}},{key:"destroy",value:function(){this.$element.removeData(f),this.$close.off("click",this.$closeHandler),this.$box.remove()}},{key:"_createNotification",value:function(){return this.options.dynamic?void(this.options.message&&(this.$box=(0,a.default)(h.box),this.$box.addClass(f+"-"+this.options.type),this.$box.html(this.options.message),this._createCloseButton(),this.$element.append(this.$box))):(this.$box=this.$element,void this._createCloseButton())}},{key:"_createCloseButton",value:function(){return this.options.dynamic?(this.$close=(0,a.default)(h.close),void this.$box.append(this.$close)):(this.$close=this.$box.find(this.options.closeButton),this.$close)}}]),t}();a.default.fn[f]=function(t){return t=t||{},this.each(function(){a.default.data(this,f)||a.default.data(this,f,new p(this,t).init())})},e.default=p},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",msTransition:"MsTransitionEnd",transition:"transitionend"},e=document.createElement("div");for(var n in t)if(void 0!==e.style[n])return t[n]}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var o=n(3),r=i(o),s=n(16),a=i(s),l="scroll",u={duration:500,offset:-30};r.default.fn[l]=function(t){return t=t||{},this.each(function(){(0,a.default)(this,r.default.extend({},u,t||{}))})}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=i(o),s=n(17),a=i(s),l={duration:500,offset:-30};e.default=function(t,e){return new a.default(t instanceof r.default?t[0]:t,r.default.extend({},l,e))}},function(t,e,n){var i,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s,a){"object"===r(e)&&"undefined"!=typeof t?t.exports=a():(i=a,o="function"==typeof i?i.call(e,n,e,t):i,!(void 0!==o&&(t.exports=o)))}(void 0,function(){"use strict";var t=function(t,e,n,i){return t/=i/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)},e="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return"undefined"==typeof t?"undefined":r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":"undefined"==typeof t?"undefined":r(t)},n=function(){function n(){return window.scrollY||window.pageYOffset}function i(t){return t.getBoundingClientRect().top+l}function o(t){m||(m=t),v=t-m,g=c(v,l,h,p),window.scrollTo(0,g),v<p?window.requestAnimationFrame(o):r()}function r(){window.scrollTo(0,l+h),a&&d&&(a.setAttribute("tabindex","-1"),a.focus()),"function"==typeof b&&b(),m=!1}function s(r){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(p=s.duration||1e3,f=s.offset||0,b=s.callback,c=s.easing||t,d=s.a11y||!1,l=n(),"undefined"==typeof r?"undefined":e(r)){case"number":a=void 0,d=!1,u=l+r;break;case"object":a=r,u=i(a);break;case"string":a=document.querySelector(r),u=i(a)}switch(h=u-l+f,e(s.duration)){case"number":p=s.duration;break;case"function":p=s.duration(h)}window.requestAnimationFrame(o)}var a=void 0,l=void 0,u=void 0,f=void 0,c=void 0,d=void 0,h=void 0,p=void 0,m=void 0,v=void 0,g=void 0,b=void 0;return s},i=n();return i})},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(19),a=i(s),l=n(3),u=i(l),f="tooltip",c={placement:"top"},d=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.$element=(0,u.default)(e),this.$target=this._getTarget(),this.options=u.default.extend({},c,n)}return r(t,[{key:"init",value:function(){return this._registerPopper(),this}},{key:"_getTarget",value:function(){var t=this.$element.data(f);return this.$element.find(t)}},{key:"_buildPopper",value:function(){return new a.default(this.$element[0],this.$target[0],this.options)}},{key:"_registerPopper",value:function(){var t=this._buildPopper();this.$element.data("popper",t)}}]),t}();u.default.fn[f]=function(t){return t=t||{},this.each(function(){u.default.data(this,f)||u.default.data(this,f,new d(this,t).init())})},e.default=d},function(t,e,n){var i,o;(function(r){"use strict";var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(r,a){"object"===s(e)&&"undefined"!=typeof t?t.exports=a():(i=a,o="function"==typeof i?i.call(e,n,e,t):i,!(void 0!==o&&(t.exports=o)))}(void 0,function(){function t(t){var e=!1,n=0,i=document.createElement("span"),o=new MutationObserver(function(){t(),e=!1});return o.observe(i,{attributes:!0}),function(){e||(e=!0,i.setAttribute("x-index",n),n+=1)}}function e(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},ut))}}function n(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function i(t,e){if(1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n}function o(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function s(t){if(!t||["HTML","BODY","#document"].indexOf(t.nodeName)!==-1)return window.document.body;var e=i(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/(auto|scroll)/.test(n+a+r)?t:s(o(t))}function a(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||t.firstElementChild.offsetParent===t)}function l(t){return null!==t.parentNode?l(t.parentNode):t}function u(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?e:window.document.documentElement}function f(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return window.document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s=r.commonAncestorContainer;if(t!==s&&e!==s||i.contains(o))return a(s)?s:u(s);var c=l(t);return c.host?f(c.host,e):f(t,l(e).host)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=window.document.documentElement,r=window.document.scrollingElement||o;return r[n]}return t[n]}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c(e,"top"),o=c(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function h(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return+t["border"+n+"Width"].split("px")[0]+ +t["border"+i+"Width"].split("px")[0]}function p(t,e,n,i){return Math.max(e["offset"+t],n["client"+t],n["offset"+t],pt()?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function m(){var t=window.document.body,e=window.document.documentElement,n=pt()&&window.getComputedStyle(e);return{height:p("Height",t,e,n),width:p("Width",t,e,n)}}function v(t){return bt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function g(t){var e={};if(pt())try{e=t.getBoundingClientRect();var n=c(t,"top"),o=c(t,"left");e.top+=n,e.left+=o,e.bottom+=n,e.right+=o}catch(t){}else e=t.getBoundingClientRect();var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===t.nodeName?m():{},a=s.width||t.clientWidth||r.right-r.left,l=s.height||t.clientHeight||r.bottom-r.top,u=t.offsetWidth-a,f=t.offsetHeight-l;if(u||f){var d=i(t);u-=h(d,"x"),f-=h(d,"y"),r.width-=u,r.height-=f}return v(r)}function b(t,e){var n=pt(),o="HTML"===e.nodeName,r=g(t),a=g(e),l=s(t),u=i(e),f=+u.borderTopWidth.split("px")[0],c=+u.borderLeftWidth.split("px")[0],h=v({top:r.top-a.top-f,left:r.left-a.left-c,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!n&&o){var p=+u.marginTop.split("px")[0],m=+u.marginLeft.split("px")[0];h.top-=f-p,h.bottom-=f-p,h.left-=c-m,h.right-=c-m,h.marginTop=p,h.marginLeft=m}return(n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(h=d(h,e)),h}function y(t){var e=window.document.documentElement,n=b(t,e),i=Math.max(e.clientWidth,window.innerWidth||0),o=Math.max(e.clientHeight,window.innerHeight||0),r=c(e),s=c(e,"left"),a={top:r-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:o};return v(a)}function w(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===i(t,"position")||w(o(t)))}function k(t,e,n,i){var r={top:0,left:0},a=f(t,e);if("viewport"===i)r=y(a);else{var l=void 0;"scrollParent"===i?(l=s(o(t)),"BODY"===l.nodeName&&(l=window.document.documentElement)):l="window"===i?window.document.documentElement:i;var u=b(l,a);if("HTML"!==l.nodeName||w(a))r=u;else{ | ||
var c=m(),d=c.height,h=c.width;r.top+=u.top-u.marginTop,r.bottom=d+u.top,r.left+=u.left-u.marginLeft,r.right=h+u.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function x(t){var e=t.width,n=t.height;return e*n}function C(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var s=k(n,i,r,o),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map(function(t){return bt({key:t},a[t],{area:x(a[t])})}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),f=u.length>0?u[0].key:l[0].key,c=t.split("-")[1];return f+(c?"-"+c:"")}function _(t,e,n){var i=f(e,n);return b(n,i)}function $(t){var e=window.getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight),o={width:t.offsetWidth+i,height:t.offsetHeight+n};return o}function O(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function L(t,e,n){n=n.split("-")[0];var i=$(t),o={width:i.width,height:i.height},r=["right","left"].indexOf(n)!==-1,s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",u=r?"width":"height";return o[s]=e[s]+e[l]/2-i[l]/2,n===a?o[a]=e[a]-i[u]:o[a]=e[O(a)],o}function M(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function E(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=M(t,function(t){return t[e]===n});return t.indexOf(i)}function A(t,e,i){var o=void 0===i?t:t.slice(0,E(t,"name",i));return o.forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=t.function||t.fn;t.enabled&&n(i)&&(e.offsets.popper=v(e.offsets.popper),e.offsets.reference=v(e.offsets.reference),e=i(e,t))}),e}function T(){if(!this.state.isDestroyed){var t={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=_(this.state,this.popper,this.reference),t.placement=C(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=L(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=A(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function j(t,e){return t.some(function(t){var n=t.name,i=t.enabled;return i&&n===e})}function P(t){for(var e=[!1,"ms","webkit","moz","o"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length-1;i++){var o=e[i],r=o?""+o+n:t;if("undefined"!=typeof window.document.body.style[r])return r}return null}function S(){return this.state.isDestroyed=!0,j(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[P("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(t,e,n,i){var o="BODY"===t.nodeName,r=o?window:t;r.addEventListener(e,n,{passive:!0}),o||H(s(r.parentNode),e,n,i),i.push(r)}function B(t,e,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var o=s(t);return H(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function N(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}function I(t,e){return window.removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function W(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=I(this.reference,this.state))}function z(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function D(t,e){Object.keys(e).forEach(function(n){var i="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&z(e[n])&&(i="px"),t.style[n]=e[n]+i})}function F(t,e){Object.keys(e).forEach(function(n){var i=e[n];i!==!1?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function R(t){return D(t.instance.popper,t.styles),F(t.instance.popper,t.attributes),t.offsets.arrow&&D(t.arrowElement,t.offsets.arrow),t}function U(t,e,n,i,o){var r=_(o,e,t),s=C(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),D(e,{position:"absolute"}),n}function q(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=M(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==r?r:e.gpuAcceleration,a=u(t.instance.popper),l=g(a),f={position:o.position},c={left:Math.floor(o.left),top:Math.floor(o.top),bottom:Math.floor(o.bottom),right:Math.floor(o.right)},d="bottom"===n?"top":"bottom",h="right"===i?"left":"right",p=P("transform"),m=void 0,v=void 0;if(v="bottom"===d?-l.height+c.bottom:c.top,m="right"===h?-l.width+c.right:c.left,s&&p)f[p]="translate3d("+m+"px, "+v+"px, 0)",f[d]=0,f[h]=0,f.willChange="transform";else{var b="bottom"===d?-1:1,y="right"===h?-1:1;f[d]=v*b,f[h]=m*y,f.willChange=d+", "+h}var w={"x-placement":t.placement};return t.attributes=w,t.styles=bt({},f,t.styles),t}function Y(t,e,n){var i=M(t,function(t){var n=t.name;return n===e}),o=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!o){var r="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}function V(t,e){if(!Y(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(n=t.instance.popper.querySelector(n),!n)return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,r=o.popper,s=o.reference,a=["left","right"].indexOf(i)!==-1,l=a?"height":"width",u=a?"top":"left",f=a?"left":"top",c=a?"bottom":"right",d=$(n)[l];s[c]-d<r[u]&&(t.offsets.popper[u]-=r[u]-(s[c]-d)),s[u]+d>r[c]&&(t.offsets.popper[u]+=s[u]+d-r[c]);var h=s[u]+s[l]/2-d/2,p=h-v(t.offsets.popper)[u];return p=Math.max(Math.min(r[l]-d,p),0),t.arrowElement=n,t.offsets.arrow={},t.offsets.arrow[u]=Math.round(p),t.offsets.arrow[f]="",t}function Z(t){return"end"===t?"start":"start"===t?"end":t}function K(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=wt.indexOf(t),i=wt.slice(n+1).concat(wt.slice(0,n));return e?i.reverse():i}function G(t,e){if(j(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=k(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split("-")[0],o=O(i),r=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case kt.FLIP:s=[i,o];break;case kt.CLOCKWISE:s=K(i);break;case kt.COUNTERCLOCKWISE:s=K(i,!0);break;default:s=e.behavior}return s.forEach(function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],o=O(i);var u=t.offsets.popper,f=t.offsets.reference,c=Math.floor,d="left"===i&&c(u.right)>c(f.left)||"right"===i&&c(u.left)<c(f.right)||"top"===i&&c(u.bottom)>c(f.top)||"bottom"===i&&c(u.top)<c(f.bottom),h=c(u.left)<c(n.left),p=c(u.right)>c(n.right),m=c(u.top)<c(n.top),v=c(u.bottom)>c(n.bottom),g="left"===i&&h||"right"===i&&p||"top"===i&&m||"bottom"===i&&v,b=["top","bottom"].indexOf(i)!==-1,y=!!e.flipVariations&&(b&&"start"===r&&h||b&&"end"===r&&p||!b&&"start"===r&&m||!b&&"end"===r&&v);(d||g||y)&&(t.flipped=!0,(d||g)&&(i=s[l+1]),y&&(r=Z(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=bt({},t.offsets.popper,L(t.instance.popper,t.offsets.reference,t.placement)),t=A(t.instance.modifiers,t,"flip"))}),t}function X(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,s=["top","bottom"].indexOf(o)!==-1,a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[u]),n[l]>r(i[a])&&(t.offsets.popper[l]=r(i[a])),t}function J(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}var l=v(a);return l[e]/100*r}if("vh"===s||"vw"===s){var u=void 0;return u="vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*r}return r}function Q(t,e,n,i){var o=[0,0],r=["right","left"].indexOf(i)!==-1,s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=s.indexOf(M(s,function(t){return t.search(/,|\s/)!==-1}));s[a]&&s[a].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=a!==-1?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return u=u.map(function(t,i){var o=(1===i?!r:r)?"height":"width",s=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&["+","-"].indexOf(e)!==-1?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)},[]).map(function(t){return J(t,o,e,n)})}),u.forEach(function(t,e){t.forEach(function(n,i){z(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))})}),o}function tt(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,s=o.reference,a=i.split("-")[0],l=void 0;return l=z(+n)?[+n,0]:Q(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t}function et(t,e){var n=e.boundariesElement||u(t.instance.popper);t.instance.reference===n&&(n=u(n));var i=k(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=i;var o=e.priority,r=t.offsets.popper,s={primary:function(t){var n=r[t];return r[t]<i[t]&&!e.escapeWithReference&&(n=Math.max(r[t],i[t])),gt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",o=r[n];return r[t]>i[t]&&!e.escapeWithReference&&(o=Math.min(r[n],i[t]-("right"===t?r.width:r.height))),gt({},n,o)}};return o.forEach(function(t){var e=["left","top"].indexOf(t)!==-1?"primary":"secondary";r=bt({},r,s[e](t))}),t.offsets.popper=r,t}function nt(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,s=o.popper,a=["bottom","top"].indexOf(n)!==-1,l=a?"left":"top",u=a?"width":"height",f={start:gt({},l,r[l]),end:gt({},l,r[l]+r[u]-s[u])};t.offsets.popper=bt({},s,f[i])}return t}function it(t){if(!Y(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=M(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(t.hide===!0)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(t.hide===!1)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function ot(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,s=["left","right"].indexOf(n)!==-1,a=["top","left"].indexOf(n)===-1;return o[s?"left":"top"]=r[e]-(a?o[s?"width":"height"]:0),t.placement=O(e),t.offsets.popper=v(o),t}for(var rt=["native code","[object MutationObserverConstructor]"],st=function(t){return rt.some(function(e){return(t||"").toString().indexOf(e)>-1})},at="undefined"!=typeof window,lt=["Edge","Trident","Firefox"],ut=0,ft=0;ft<lt.length;ft+=1)if(at&&navigator.userAgent.indexOf(lt[ft])>=0){ut=1;break}var ct=at&&st(window.MutationObserver),dt=ct?t:e,ht=void 0,pt=function(){return void 0===ht&&(ht=navigator.appVersion.indexOf("MSIE 10")!==-1),ht},mt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},vt=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),gt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},bt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},yt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],wt=yt.slice(3),kt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},xt={shift:{order:100,enabled:!0,fn:nt},offset:{order:200,enabled:!0,fn:tt,offset:0},preventOverflow:{order:300,enabled:!0,fn:et,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:X},arrow:{order:500,enabled:!0,fn:V,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:G,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ot},hide:{order:800,enabled:!0,fn:it},computeStyle:{order:850,enabled:!0,fn:q,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:R,onLoad:U,gpuAcceleration:void 0}},Ct={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:xt},_t=function(){function t(e,i){var o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};mt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=dt(this.update.bind(this)),this.options=bt({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=i.jquery?i[0]:i,this.options.modifiers={},Object.keys(bt({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){o.options.modifiers[e]=bt({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return bt({name:t},o.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&n(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return vt(t,[{key:"update",value:function(){return T.call(this)}},{key:"destroy",value:function(){return S.call(this)}},{key:"enableEventListeners",value:function(){return N.call(this)}},{key:"disableEventListeners",value:function(){return W.call(this)}}]),t}();return _t.Utils=("undefined"!=typeof window?window:r).PopperUtils,_t.placements=yt,_t.Defaults=Ct,_t})}).call(e,function(){return this}())},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(5),u=i(l),f=n(21),c=i(f),d="validation",h={events:"blur",selector:"[data-required]"},p=function(){function t(e,n){o(this,t),this.$element=(0,a.default)(e),this.options=a.default.extend({},h,n||{})}return r(t,[{key:"init",value:function(){return this._fields=this.$element.find(this.options.selector),this.bindListeners(),this}},{key:"bindListeners",value:function(){var t=this;this.handler=function(e){t.validate(e.target)},this.$element.off(this.options.events,this.options.selector,this.handler),this.$element.on(this.options.events,this.options.selector,this.handler)}},{key:"setPristine",value:function(t){u.default.emit("validation:pristine",t)}},{key:"validate",value:function(t){var e=this,n=t.getAttribute("data-validate");if(n)return n=n.split(" ").reduce(function(n,i){return e.rules[i].call(e,t,e.$element)||n.push(i),n},[]),u.default.emit("validation:"+(n.length?"error":"success"),t,n),!n.length}},{key:"validateAll",value:function(){return Array.prototype.map.call(this.getFilteredInputs(),this.validate,this).every(function(t){return t})}},{key:"getFilteredInputs",value:function(){return Array.prototype.filter.call(this.$element.find(this.options.selector),this.getValidInputs)}},{key:"getValidInputs",value:function(t){return t.hasAttribute("data-validate")}}]),t}();p.prototype.rules=c.default,a.default.fn[d]=function(t){return t=t||{},this.each(function(){a.default.data(this,d)||a.default.data(this,d,new p(this,t).init())})},e.default=p},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(22),r=i(o),s=n(23),a=i(s),l=n(24),u=i(l),f=n(25),c=i(f),d=n(26),h=i(d);e.default={required:r.default,confirm:a.default,minlength:u.default,maxlength:c.default,email:h.default}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return"checkbox"===t.type?t.checked:"radio"===t.type?e.find('[name="'+t.name+'"]:checked').length:!!t.value.trim()}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.value===e.find('[name="'+t.getAttribute("data-confirm")+'"]').val()}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.value.length>=t.getAttribute("data-minlength")}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.value.length<=t.getAttribute("maxlength")}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t.value)}}]); | ||
!function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var i=n(1);i.keys().forEach(i)},function(t,e,n){function i(t){return n(o(t))}function o(t){return r[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var r={"./components/alert":2,"./components/alert.js":2,"./components/collapse":7,"./components/collapse.js":7,"./components/confirm":8,"./components/confirm.js":8,"./components/form":9,"./components/form.js":9,"./components/lazy-load":10,"./components/lazy-load.js":10,"./components/modal":4,"./components/modal.js":4,"./components/notification":13,"./components/notification.js":13,"./components/scroll":15,"./components/scroll.js":15,"./components/tooltip":18,"./components/tooltip.js":18,"./components/validation":20,"./components/validation.js":20,"./components/validation/confirm":23,"./components/validation/confirm.js":23,"./components/validation/defaults":21,"./components/validation/defaults.js":21,"./components/validation/email":26,"./components/validation/email.js":26,"./components/validation/maxlength":25,"./components/validation/maxlength.js":25,"./components/validation/minlength":24,"./components/validation/minlength.js":24,"./components/validation/required":22,"./components/validation/required.js":22};i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=1},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Alert=void 0;var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(4),u=(i(l),"alert"),f={textMessage:"This is an example message",textButton:"Ok",size:"medium",triggerClose:"[data-alert-button]"},c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t),this.options=a.default.extend({},f,e)}return r(t,[{key:"init",value:function(){this.setupAlert(),this.showAlert()}},{key:"setupAlert",value:function(){var t=this.options,e=t.textMessage,n=t.textButton,i=t.size,o=t.triggerClose;this.$element=(0,a.default)(this.buildHtml(e,n)),this.modal=(0,a.default)(this.$element).modal({triggerClose:o,size:i}).data("modal")}},{key:"showAlert",value:function(){var t=this.modal,e=this.options.triggerClose;t.show(),t.$content.find(e).focus()}},{key:"hideAlert",value:function(){this.modal.hide()}},{key:"buildHtml",value:function(t,e){return'\n <div>\n <div class="container-fluid align-center">\n <div class="row">\n <div class="col-xs-12">\n <p data-alert-text>'+t+'</p>\n </div>\n <div class="row">\n <div class="col-xs-offset-2 col-xs-8 col-md-offset-4 col-md-4">\n <button class="button button-primary button-full" data-alert-button>\n '+e+"\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n "}}]),t}();a.default.fn[u]=function(t){return a.default.data(this,u,new c(t).init())},e.default=function(t){return new c(t).init()},e.Alert=c},function(t,e){t.exports=$},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(5),u=i(l),f="modal",c="#modal-open",d={modal:'<div class="modal"></div>',close:'<i class="modal-close glyph glyph-x"></i>',content:'<div class="modal-content"><div class="modal-body"></div></div>'},h={container:"body",size:"medium",triggerClose:null,static:!1,keyboard:!0,history:!1,keys:{esc:27},triggerOpen:null},p=function(){function t(e,n){o(this,t),this.$element=e instanceof a.default?e:(0,a.default)(e),this.options=a.default.extend({},h,n||{})}return r(t,[{key:"init",value:function(){return this.$container=(0,a.default)(this.options.container),this.createModal(),this}},{key:"show",value:function(){this.bindListeners(),this.showModal()}},{key:"hide",value:function(){this.unbindListeners(),this.hideModal()}},{key:"destroy",value:function(){this.$element.removeData(f),this.$modal.remove()}},{key:"bindListeners",value:function(){this.options.triggerClose&&this.$modal.on("click",this.options.triggerClose,this.hide.bind(this)),this.$close.on("click",this.hide.bind(this)),this.bindKeyboardListener(),this.options.history&&(this.bindModalShowListener(),this.bindHashChangeListener(),this.bindModalHideListener())}},{key:"bindKeyboardListener",value:function(){var t=this;this.options.keyboard&&(0,a.default)(window).on("keyup",function(e){var n=t.options.keys.esc,i=e.which;i===n&&t.hide()})}},{key:"bindModalShowListener",value:function(){u.default.on("modal:show",function(){window.location.hash=c})}},{key:"bindHashChangeListener",value:function(){var t=this;(0,a.default)(window).on("hashchange",function(){window.location.hash||t.hide()})}},{key:"bindModalHideListener",value:function(){u.default.on("modal:hide",function(){history.back()})}},{key:"unbindListeners",value:function(){this.options.triggerClose&&this.$modal.off("click",this.options.triggerClose,this.hide.bind(this)),this.$close.off("click"),(0,a.default)(window).off("keyup",this.handler)}},{key:"bindTrigger",value:function(){this.options.triggerOpen&&(0,a.default)(this.options.triggerOpen).on("click",this.onTriggerOpenClick.bind(this))}},{key:"onTriggerOpenClick",value:function(t){t.preventDefault(),this.show()}},{key:"showModal",value:function(){var t=this;u.default.emit("modal:show"),u.default.removeAllListeners("modal:show"),this.$modal.addClass("modal-enter"),this.$content.addClass("modal-content-enter"),this.$container.addClass("no-scroll"),window.setTimeout(function(){t.$modal.addClass("modal-show"),t.$content.addClass("modal-content-show")},200),this.$modal.on("click",this.onModalClick.bind(this))}},{key:"hideModal",value:function(){var t=this;window.location.hash&&u.default.emit("modal:hide"),u.default.removeAllListeners("modal:hide"),this.$content.removeClass("modal-content-show").addClass("modal-content-leave"),this.$modal.removeClass("modal-show").addClass("modal-leave"),this.$container.removeClass("no-scroll"),window.setTimeout(function(){t.$modal.removeClass("modal-enter modal-leave"),t.$content.removeClass("modal-content-enter modal-content-leave")},200)}},{key:"onModalClick",value:function(t){!this.isStaticModal()&&this.$modal.is(t.target)&&this.hideModal()}},{key:"fillModal",value:function(){this.$content.find(".modal-body").append(this.$element.html())}},{key:"createModal",value:function(){this.$modal=(0,a.default)(d.modal),this.$content=(0,a.default)(d.content),this.$close=(0,a.default)(d.close),this.$content.addClass(this.setupSizeModal(this.options.size)),this.isStaticModal()||this.$content.append(this.$close),this.$modal.append(this.$content),this.$container.append(this.$modal),this.bindTrigger(),this.fillModal()}},{key:"isStaticModal",value:function(){return this.options.static}},{key:"setupSizeModal",value:function(t){var e={small:"modal-content-sm",medium:"modal-content-md",large:"modal-content-lg"};return e[t]}}]),t}();a.default.fn[f]=function(t){return t=t||{},this.each(function(){a.default.data(this,f)||a.default.data(this,f,new p(this,t).init())})},e.default=p},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),r=i(o);e.default=new r.default},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function o(t){return"number"==typeof t}function r(t){return"object"==typeof t&&null!==t}function s(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,o,a,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var f=new Error('Uncaught, unspecified "error" event. ('+e+")");throw f.context=e,f}if(n=this._events[t],s(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(r(n))for(a=Array.prototype.slice.call(arguments,1),u=n.slice(),o=u.length,l=0;l<o;l++)u[l].apply(this,a);return!0},n.prototype.addListener=function(t,e){var o;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?r(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,r(this._events[t])&&!this._events[t].warned&&(o=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,o&&o>0&&this._events[t].length>o&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),o||(o=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var o=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,o,s,a;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],s=n.length,o=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(r(n)){for(a=s;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){o=a;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],i(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(5),u=i(l),f="collapse",c={selector:"data-target",listener:"click",activeClass:"active",visibleClass:"visible",timing:300},d=function(){function t(e,n){o(this,t),this.$element=(0,a.default)(e),this.options=a.default.extend({},c,n||{})}return r(t,[{key:"init",value:function(){return this.$toggle=(0,a.default)(this.$element.attr(this.options.selector)),this.toggle=this.$toggle[0],this.setInitialState(),this.bindListeners(),this}},{key:"setInitialState",value:function(){var t=this;this.isCollapsed=!this.$toggle.hasClass(this.options.visibleClass),setTimeout(function(){t.toggleHeight=t.toggle.scrollHeight},this.options.timing),this.isCollapsed||(this.toggle.style.maxHeight=this.toggleHeight+"px")}},{key:"bindListeners",value:function(){this.$element.on(this.options.listener,this.toggleTarget.bind(this))}},{key:"toggleTarget",value:function(){this.isCollapsed?this.showTarget():this.hideTarget()}},{key:"hideTarget",value:function(){this.isCollapsed=!0,this.toggle.style.maxHeight="",this.$toggle.removeClass(this.options.visibleClass),this.$element.removeClass(this.options.activeClass),u.default.emit("collapse:hide",this.$element,this.$toggle)}},{key:"showTarget",value:function(){this.isCollapsed=!1,this.toggle.style.maxHeight=this.toggleHeight+"px",this.$toggle.addClass(this.options.visibleClass),this.$element.addClass(this.options.activeClass),u.default.emit("collapse:show",this.$element,this.$toggle)}}]),t}();a.default.fn[f]=function(t){return t=t||{},this.each(function(){a.default.data(this,f)||a.default.data(this,f,new d(this,t).init())})},e.default=d},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Confirm=void 0;var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(4),u=(i(l),"confirm"),f={textMessage:"This is an example message",textConfirmButton:"Ok",textCancelButton:"Cancel",size:"medium",static:!0,triggerCancel:"[data-cancel-button]",triggerConfirm:"[data-confirm-button]"},c=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.options=a.default.extend({},f,n),this.callback=e}return r(t,[{key:"init",value:function(){this.setupConfirm(),this.setupElements(),this.bindListeners(),this.showConfirm()}},{key:"setupConfirm",value:function(){this.$element=(0,a.default)(this.buildHtml(this.options)),this.modal=this.$element.modal(this.options).data("modal")}},{key:"setupElements",value:function(){var t=this.modal.$content;this.$confirmButton=t.find(this.options.triggerConfirm),this.$cancelButton=t.find(this.options.triggerCancel)}},{key:"bindListeners",value:function(){this.$confirmButton.on("click",this.onConfirmClick.bind(this)),this.$cancelButton.on("click",this.onCancelClick.bind(this))}},{key:"onConfirmClick",value:function(){this.callback(!0),this.hideConfirm()}},{key:"onCancelClick",value:function(){this.callback(!1),this.hideConfirm()}},{key:"showConfirm",value:function(){this.modal.show(),this.$confirmButton.focus()}},{key:"hideConfirm",value:function(){this.modal.hide()}},{key:"buildHtml",value:function(t){var e=t.textMessage,n=t.textConfirmButton,i=t.textCancelButton;return'\n <div>\n <div class="container-fluid align-center">\n <div class="row">\n <div class="col-xs-12">\n <p data-confirm-text>'+e+'</p>\n </div>\n <div class="row">\n <div class="col-xs-offset-2 col-xs-5 col-md-4">\n <button class="button button-primary button-full" data-confirm-button>\n '+n+'\n </button>\n </div>\n <div class="col-xs-5 col-md-4">\n <button class="button button-full" data-cancel-button>\n '+i+"\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n "}}]),t}();a.default.fn[u]=function(t,e){return a.default.data(this,u,new c(t,e).init())},e.default=function(t,e){return new c(t,e).init()},e.Confirm=c},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l="form",u={events:"change",selectors:".input, select, .select, .textarea"},f=function(){function t(e,n){o(this,t),this.$element=(0,a.default)(e),this.options=a.default.extend({},u,n||{}),this.bindListeners(),this.toggleFieldsActiveClass()}return r(t,[{key:"bindListeners",value:function(){(0,a.default)(document).on(this.options.events,this.options.selectors,this.onFieldChange.bind(this))}},{key:"onFieldChange",value:function(t){this.toggleActiveClass(t.target)}},{key:"shouldInputBeActive",value:function(t){var e=t.val();return t.is("select")&&(e=t.find("option:selected").text().trim()),!!e}},{key:"toggleActiveClass",value:function(t){var e=(0,a.default)(t),n=e.parents(".field");if(n.length)return!n.hasClass("active")&&this.shouldInputBeActive(e)?n.addClass("active"):n.hasClass("active")&&!this.shouldInputBeActive(e)?n.removeClass("active"):void 0}},{key:"toggleFieldsActiveClass",value:function(){Array.prototype.forEach.call((0,a.default)(document).find(this.options.selectors),this.toggleActiveClass.bind(this))}}]),t}();a.default.fn[l]=function(t){return t=t||{},this.each(function(){a.default.data(this,l)||a.default.data(this,l,new f(this,t))})},e.default=f},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(11),u=i(l),f=n(12),c=i(f),d="lazyload",h={throttle:1e3,offset:200,selector:"data-lazy"},p=function(){function t(e,n){o(this,t),this.$element=(0,a.default)(e),this.options=a.default.extend({},h,n||{})}return r(t,[{key:"init",value:function(){return this.bindListeners(),this.checkVisiblePlaceholders(),this}},{key:"bindListeners",value:function(){this.onScrollHandler=(0,u.default)(this.onScroll.bind(this),this.options.throttle),(0,a.default)(window).on("scroll",this.onScrollHandler)}},{key:"onScroll",value:function(){return this.$element.length?this.checkVisiblePlaceholders():(0,a.default)(window).off("scroll",this.onScrollHandler)}},{key:"checkVisiblePlaceholders",value:function(){this.windowHeight=(0,a.default)(window).height(),this.windowWidth=(0,a.default)(window).width(),Array.prototype.forEach.call(this.$element,this.checkPlaceholder.bind(this))}},{key:"checkPlaceholder",value:function(t){this.isPlaceholderVisible(t)&&(this.renderImage(t),(0,c.default)(this.$element,t))}},{key:"isPlaceholderVisible",value:function(t){return t.getBoundingClientRect().top<=this.windowHeight+this.options.offset}},{key:"renderImage",value:function(t){t.parentNode.replaceChild(this.createImage(t),t)}},{key:"createImage",value:function(t){var e=document.createElement("img");return this.parseAttributes(e,t.attributes),e.removeAttribute("data-lazy"),t.getAttribute("data-srcset")?(this.parseBreakpoints(e,t.getAttribute("data-srcset")),e):(e.src=t.getAttribute("data-src"),e)}},{key:"parseAttributes",value:function(t,e){var n=this;return Array.prototype.forEach.call(e,function(e){e.name===n.options.selector&&"data-srcset"===e.name&&"data-src"===e.name||t.setAttribute(e.name,e.value)}),t}},{key:"parseBreakpoints",value:function(t,e){t.removeAttribute("data-srcset"),e=e.split(/,\s+/g).map(function(t){return t=t.trim().split(/\s+/),{src:t[0],width:t[1]}}).sort(function(t,e){return e.width-t.width});for(var n=0;n<e.length;n++){var i=e[n];if(i.width<=this.windowWidth){t.src=i.src;break}}return t}},{key:"destroy",value:function(){(0,a.default)(window).off("scroll",this.onScrollHandler)}}]),t}();a.default.fn[d]=function(t){return t=t||{},this.each(function(){a.default.data(this,d)||a.default.data(this,d,new p(this,t).init())})},e.default=p},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=!0;return function(){if(n){for(var i=arguments.length,o=Array(i),r=0;r<i;r++)o[r]=arguments[r];t.apply(this,o),n=!1,setTimeout(function(){return n=!0},e)}}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){Array.prototype.splice.call(t,Array.prototype.indexOf.call(t,e))}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(14),u=i(l),f="notification",c={autoHide:!1,closeButton:"."+f+"-close",dynamic:!0,hideIn:3e3,message:null,showIn:1e3,type:"primary"},d={hide:f+"-hide",show:f+"-show",enter:f+"-enter",leave:f+"-leave",close:f+"-close"},h={box:'<div class="'+f+" "+d.enter+'"></div>',close:'<i class="'+d.close+' glyph glyph-x"></i>'},p=function(){function t(e,n){o(this,t),this.$element=e instanceof a.default?e:(0,a.default)(e),this.options=a.default.extend({},c,n)}return r(t,[{key:"init",value:function(){var t=this;return this._createNotification(),this.bindListeners(),this.options.dynamic?(window.setTimeout(function(){t.show()},this.options.showIn),this):this}},{key:"bindListeners",value:function(){var t=this;this.$closeHandler=function(){t.hide()},this.$close.on("click",this.$closeHandler)}},{key:"show",value:function(){var t=this;this.$box.addClass(d.show).removeClass(d.hide),this.options.autoHide&&window.setTimeout(function(){t.hide()},this.options.hideIn)}},{key:"hide",value:function(){var t=this;this.$box.removeClass(d.show).addClass(d.leave),this.$box.on((0,u.default)(),function(){t.$box.addClass(d.hide).removeClass(d.enter).removeClass(d.leave)})}},{key:"destroy",value:function(){this.$element.removeData(f),this.$close.off("click",this.$closeHandler),this.$box.remove()}},{key:"_createNotification",value:function(){return this.options.dynamic?void(this.options.message&&(this.$box=(0,a.default)(h.box),this.$box.addClass(f+"-"+this.options.type),this.$box.html(this.options.message),this._createCloseButton(),this.$element.append(this.$box))):(this.$box=this.$element,void this._createCloseButton())}},{key:"_createCloseButton",value:function(){return this.options.dynamic?(this.$close=(0,a.default)(h.close),void this.$box.append(this.$close)):(this.$close=this.$box.find(this.options.closeButton),this.$close)}}]),t}();a.default.fn[f]=function(t){return t=t||{},this.each(function(){a.default.data(this,f)||a.default.data(this,f,new p(this,t).init())})},e.default=p},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",msTransition:"MsTransitionEnd",transition:"transitionend"},e=document.createElement("div");for(var n in t)if(void 0!==e.style[n])return t[n]}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var o=n(3),r=i(o),s=n(16),a=i(s),l="scroll",u={duration:500,offset:-30};r.default.fn[l]=function(t){return t=t||{},this.each(function(){(0,a.default)(this,r.default.extend({},u,t||{}))})}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=i(o),s=n(17),a=i(s),l={duration:500,offset:-30};e.default=function(t,e){return new a.default(t instanceof r.default?t[0]:t,r.default.extend({},l,e))}},function(t,e,n){var i,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s,a){"object"===r(e)&&"undefined"!=typeof t?t.exports=a():(i=a,o="function"==typeof i?i.call(e,n,e,t):i,!(void 0!==o&&(t.exports=o)))}(void 0,function(){"use strict";var t=function(t,e,n,i){return t/=i/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)},e="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return"undefined"==typeof t?"undefined":r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":"undefined"==typeof t?"undefined":r(t)},n=function(){function n(){return window.scrollY||window.pageYOffset}function i(t){return t.getBoundingClientRect().top+l}function o(t){m||(m=t),v=t-m,g=c(v,l,h,p),window.scrollTo(0,g),v<p?window.requestAnimationFrame(o):r()}function r(){window.scrollTo(0,l+h),a&&d&&(a.setAttribute("tabindex","-1"),a.focus()),"function"==typeof b&&b(),m=!1}function s(r){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(p=s.duration||1e3,f=s.offset||0,b=s.callback,c=s.easing||t,d=s.a11y||!1,l=n(),"undefined"==typeof r?"undefined":e(r)){case"number":a=void 0,d=!1,u=l+r;break;case"object":a=r,u=i(a);break;case"string":a=document.querySelector(r),u=i(a)}switch(h=u-l+f,e(s.duration)){case"number":p=s.duration;break;case"function":p=s.duration(h)}window.requestAnimationFrame(o)}var a=void 0,l=void 0,u=void 0,f=void 0,c=void 0,d=void 0,h=void 0,p=void 0,m=void 0,v=void 0,g=void 0,b=void 0;return s},i=n();return i})},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(19),a=i(s),l=n(3),u=i(l),f="tooltip",c={placement:"top"},d=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.$element=(0,u.default)(e),this.$target=this._getTarget(),this.options=u.default.extend({},c,n)}return r(t,[{key:"init",value:function(){return this._registerPopper(),this}},{key:"_getTarget",value:function(){var t=this.$element.data(f);return this.$element.find(t)}},{key:"_buildPopper",value:function(){return new a.default(this.$element[0],this.$target[0],this.options)}},{key:"_registerPopper",value:function(){var t=this._buildPopper();this.$element.data("popper",t)}}]),t}();u.default.fn[f]=function(t){return t=t||{},this.each(function(){u.default.data(this,f)||u.default.data(this,f,new d(this,t).init())})},e.default=d},function(t,e,n){var i,o;(function(r){"use strict";var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(r,a){"object"===s(e)&&"undefined"!=typeof t?t.exports=a():(i=a,o="function"==typeof i?i.call(e,n,e,t):i,!(void 0!==o&&(t.exports=o)))}(void 0,function(){function t(t){var e=!1,n=0,i=document.createElement("span"),o=new MutationObserver(function(){t(),e=!1});return o.observe(i,{attributes:!0}),function(){e||(e=!0,i.setAttribute("x-index",n),n+=1)}}function e(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},lt))}}function n(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function i(t,e){Object.keys(e).forEach(function(i){var o="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&n(e[i])&&(o="px"),t.style[i]=e[i]+o})}function o(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n}function a(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function l(t){if(!t||["HTML","BODY","#document"].indexOf(t.nodeName)!==-1)return window.document.body;var e=s(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll)/.test(n+o+i)?t:l(a(t))}function u(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||t.firstElementChild.offsetParent===t)}function f(t){return null!==t.parentNode?f(t.parentNode):t}function c(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?e:window.document.documentElement}function d(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return window.document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s=r.commonAncestorContainer;if(t!==s&&e!==s||i.contains(o))return u(s)?s:c(s);var a=f(t);return a.host?d(a.host,e):d(t,f(e).host)}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=window.document.documentElement,r=window.document.scrollingElement||o;return r[n]}return t[n]}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=h(e,"top"),o=h(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function m(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return+t["border"+n+"Width"].split("px")[0]+ +t["border"+i+"Width"].split("px")[0]}function v(t,e,n,i){return Math.max(e["offset"+t],n["client"+t],n["offset"+t],ht()?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function g(){var t=window.document.body,e=window.document.documentElement,n=ht()&&window.getComputedStyle(e);return{height:v("Height",t,e,n),width:v("Width",t,e,n)}}function b(t){return gt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function y(t){var e={};if(ht())try{e=t.getBoundingClientRect();var n=h(t,"top"),i=h(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?g():{},a=r.width||t.clientWidth||o.right-o.left,l=r.height||t.clientHeight||o.bottom-o.top,u=t.offsetWidth-a,f=t.offsetHeight-l;if(u||f){var c=s(t);u-=m(c,"x"),f-=m(c,"y"),o.width-=u,o.height-=f}return b(o)}function w(t,e){var n=ht(),i="HTML"===e.nodeName,o=y(t),r=y(e),a=l(t),u=b({top:o.top-r.top,left:o.left-r.left,width:o.width,height:o.height});if(i||"BODY"===e.nodeName){var f=s(e),c=n&&i?0:+f.borderTopWidth.split("px")[0],d=n&&i?0:+f.borderLeftWidth.split("px")[0],h=n&&i?0:+f.marginTop.split("px")[0],m=n&&i?0:+f.marginLeft.split("px")[0];u.top-=c-h,u.bottom-=c-h,u.left-=d-m,u.right-=d-m,u.marginTop=h,u.marginLeft=m}return(n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(u=p(u,e)),u}function k(t){var e=window.document.documentElement,n=w(t,e),i=Math.max(e.clientWidth,window.innerWidth||0),o=Math.max(e.clientHeight,window.innerHeight||0),r=h(e),s=h(e,"left"),a={top:r-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:o};return b(a)}function C(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===s(t,"position")||C(a(t)))}function x(t,e,n,i){ | ||
var o={top:0,left:0},r=d(t,e);if("viewport"===i)o=k(r);else{var s=void 0;"scrollParent"===i?(s=l(a(t)),"BODY"===s.nodeName&&(s=window.document.documentElement)):s="window"===i?window.document.documentElement:i;var u=w(s,r);if("HTML"!==s.nodeName||C(r))o=u;else{var f=g(),c=f.height,h=f.width;o.top+=u.top-u.marginTop,o.bottom=c+u.top,o.left+=u.left-u.marginLeft,o.right=h+u.left}}return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function _(t){var e=t.width,n=t.height;return e*n}function $(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var s=x(n,i,r,o),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map(function(t){return gt({key:t},a[t],{area:_(a[t])})}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),f=u.length>0?u[0].key:l[0].key,c=t.split("-")[1];return f+(c?"-"+c:"")}function O(t,e,n){var i=d(e,n);return w(n,i)}function L(t){var e=window.getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight),o={width:t.offsetWidth+i,height:t.offsetHeight+n};return o}function M(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function E(t,e,n){n=n.split("-")[0];var i=L(t),o={width:i.width,height:i.height},r=["right","left"].indexOf(n)!==-1,s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",u=r?"width":"height";return o[s]=e[s]+e[l]/2-i[l]/2,n===a?o[a]=e[a]-i[u]:o[a]=e[M(a)],o}function T(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function A(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=T(t,function(t){return t[e]===n});return t.indexOf(i)}function j(t,e,n){var i=void 0===n?t:t.slice(0,A(t,"name",n));return i.forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&o(n)&&(e=n(e,t))}),e}function P(){if(!this.state.isDestroyed){var t={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=O(this.state,this.popper,this.reference),t.placement=$(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=E(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=j(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function H(t,e){return t.some(function(t){var n=t.name,i=t.enabled;return i&&n===e})}function S(t){for(var e=[!1,"ms","webkit","moz","o"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length-1;i++){var o=e[i],r=o?""+o+n:t;if("undefined"!=typeof window.document.body.style[r])return r}return null}function B(){return this.state.isDestroyed=!0,H(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[S("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function N(t,e,n,i){var o="BODY"===t.nodeName,r=o?window:t;r.addEventListener(e,n,{passive:!0}),o||N(l(r.parentNode),e,n,i),i.push(r)}function I(t,e,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var o=l(t);return N(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function z(){this.state.eventsEnabled||(this.state=I(this.reference,this.options,this.state,this.scheduleUpdate))}function W(t,e){return window.removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function D(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=W(this.reference,this.state))}function F(t,e){Object.keys(e).forEach(function(n){var i=e[n];i!==!1?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function R(t,e){var n={position:t.offsets.popper.position},o={"x-placement":t.placement},r=Math.round(t.offsets.popper.left),s=Math.round(t.offsets.popper.top),a=S("transform");return e.gpuAcceleration&&a?(n[a]="translate3d("+r+"px, "+s+"px, 0)",n.top=0,n.left=0,n.willChange="transform"):(n.left=r,n.top=s,n.willChange="top, left"),i(t.instance.popper,gt({},n,t.styles)),F(t.instance.popper,gt({},o,t.attributes)),t.offsets.arrow&&i(t.arrowElement,t.offsets.arrow),t}function U(t,e,n,i,o){var r=O(o,e,t),s=$(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),n}function q(t,e,n){var i=T(t,function(t){var n=t.name;return n===e}),o=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!o){var r="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}function Y(t,e){if(!q(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(n=t.instance.popper.querySelector(n),!n)return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=b(t.offsets.popper),r=t.offsets.reference,s=["left","right"].indexOf(i)!==-1,a=s?"height":"width",l=s?"top":"left",u=s?"left":"top",f=s?"bottom":"right",c=L(n)[a];r[f]-c<o[l]&&(t.offsets.popper[l]-=o[l]-(r[f]-c)),r[l]+c>o[f]&&(t.offsets.popper[l]+=r[l]+c-o[f]);var d=r[l]+r[a]/2-c/2,h=d-b(t.offsets.popper)[l];return h=Math.max(Math.min(o[a]-c,h),0),t.arrowElement=n,t.offsets.arrow={},t.offsets.arrow[l]=Math.floor(h),t.offsets.arrow[u]="",t}function V(t){return"end"===t?"start":"start"===t?"end":t}function Z(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=yt.indexOf(t),i=yt.slice(n+1).concat(yt.slice(0,n));return e?i.reverse():i}function K(t,e){if(H(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=x(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split("-")[0],o=M(i),r=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case wt.FLIP:s=[i,o];break;case wt.CLOCKWISE:s=Z(i);break;case wt.COUNTERCLOCKWISE:s=Z(i,!0);break;default:s=e.behavior}return s.forEach(function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],o=M(i);var u=b(t.offsets.popper),f=t.offsets.reference,c=Math.floor,d="left"===i&&c(u.right)>c(f.left)||"right"===i&&c(u.left)<c(f.right)||"top"===i&&c(u.bottom)>c(f.top)||"bottom"===i&&c(u.top)<c(f.bottom),h=c(u.left)<c(n.left),p=c(u.right)>c(n.right),m=c(u.top)<c(n.top),v=c(u.bottom)>c(n.bottom),g="left"===i&&h||"right"===i&&p||"top"===i&&m||"bottom"===i&&v,y=["top","bottom"].indexOf(i)!==-1,w=!!e.flipVariations&&(y&&"start"===r&&h||y&&"end"===r&&p||!y&&"start"===r&&m||!y&&"end"===r&&v);(d||g||w)&&(t.flipped=!0,(d||g)&&(i=s[l+1]),w&&(r=V(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=gt({},t.offsets.popper,E(t.instance.popper,t.offsets.reference,t.placement)),t=j(t.instance.modifiers,t,"flip"))}),t}function G(t){var e=b(t.offsets.popper),n=t.offsets.reference,i=t.placement.split("-")[0],o=Math.floor,r=["top","bottom"].indexOf(i)!==-1,s=r?"right":"bottom",a=r?"left":"top",l=r?"width":"height";return e[s]<o(n[a])&&(t.offsets.popper[a]=o(n[a])-e[l]),e[a]>o(n[s])&&(t.offsets.popper[a]=o(n[s])),t}function X(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}var l=b(a);return l[e]/100*r}if("vh"===s||"vw"===s){var u=void 0;return u="vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*r}return r}function J(t,e,i,o){var r=[0,0],s=["right","left"].indexOf(o)!==-1,a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),l=a.indexOf(T(a,function(t){return t.search(/,|\s/)!==-1}));a[l]&&a[l].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,f=l!==-1?[a.slice(0,l).concat([a[l].split(u)[0]]),[a[l].split(u)[1]].concat(a.slice(l+1))]:[a];return f=f.map(function(t,n){var o=(1===n?!s:s)?"height":"width",r=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&["+","-"].indexOf(e)!==-1?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)},[]).map(function(t){return X(t,o,e,i)})}),f.forEach(function(t,e){t.forEach(function(i,o){n(i)&&(r[e]+=i*("-"===t[o-1]?-1:1))})}),r}function Q(t,e){var i=e.offset,o=t.placement,r=t.offsets,s=r.popper,a=r.reference,l=o.split("-")[0],u=void 0;return u=n(+i)?[+i,0]:J(i,s,a,l),"left"===l?(s.top+=u[0],s.left-=u[1]):"right"===l?(s.top+=u[0],s.left+=u[1]):"top"===l?(s.left+=u[0],s.top-=u[1]):"bottom"===l&&(s.left+=u[0],s.top+=u[1]),t.popper=s,t}function tt(t,e){var n=e.boundariesElement||c(t.instance.popper),i=x(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=i;var o=e.priority,r=b(t.offsets.popper),s={primary:function(t){var n=r[t];return r[t]<i[t]&&!e.escapeWithReference&&(n=Math.max(r[t],i[t])),vt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",o=r[n];return r[t]>i[t]&&!e.escapeWithReference&&(o=Math.min(r[n],i[t]-("right"===t?r.width:r.height))),vt({},n,o)}};return o.forEach(function(t){var e=["left","top"].indexOf(t)!==-1?"primary":"secondary";r=gt({},r,s[e](t))}),t.offsets.popper=r,t}function et(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets.reference,r=b(t.offsets.popper),s=["bottom","top"].indexOf(n)!==-1,a=s?"left":"top",l=s?"width":"height",u={start:vt({},a,o[a]),end:vt({},a,o[a]+o[l]-r[l])};t.offsets.popper=gt({},r,u[i])}return t}function nt(t){if(!q(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=T(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(t.hide===!0)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(t.hide===!1)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function it(t){var e=t.placement,n=e.split("-")[0],i=b(t.offsets.popper),o=b(t.offsets.reference),r=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[r?"left":"top"]=o[e]-(s?i[r?"width":"height"]:0),t.placement=M(e),t.offsets.popper=b(i),t}for(var ot=["native code","[object MutationObserverConstructor]"],rt=function(t){return ot.some(function(e){return(t||"").toString().indexOf(e)>-1})},st="undefined"!=typeof window,at=["Edge","Trident","Firefox"],lt=0,ut=0;ut<at.length;ut+=1)if(st&&navigator.userAgent.indexOf(at[ut])>=0){lt=1;break}var ft=st&&rt(window.MutationObserver),ct=ft?t:e,dt=void 0,ht=function(){return void 0===dt&&(dt=navigator.appVersion.indexOf("MSIE 10")!==-1),dt},pt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},mt=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),vt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},gt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},bt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],yt=bt.slice(3),wt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},kt={shift:{order:100,enabled:!0,fn:et},offset:{order:200,enabled:!0,fn:Q,offset:0},preventOverflow:{order:300,enabled:!0,fn:tt,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:G},arrow:{order:500,enabled:!0,fn:Y,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:K,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:it},hide:{order:800,enabled:!0,fn:nt},applyStyle:{order:900,enabled:!0,fn:R,onLoad:U,gpuAcceleration:!0}},Ct={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:kt},xt=function(){function t(e,n){var r=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=ct(this.update.bind(this)),this.options=gt({},t.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=n.jquery?n[0]:n,i(this.popper,{position:"absolute"}),this.options.modifiers={},Object.keys(gt({},t.Defaults.modifiers,s.modifiers)).forEach(function(e){r.options.modifiers[e]=gt({},t.Defaults.modifiers[e]||{},s.modifiers?s.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return gt({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&o(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return mt(t,[{key:"update",value:function(){return P.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return z.call(this)}},{key:"disableEventListeners",value:function(){return D.call(this)}}]),t}();return xt.Utils=("undefined"!=typeof window?window:r).PopperUtils,xt.placements=bt,xt.Defaults=Ct,xt})}).call(e,function(){return this}())},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(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),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(3),a=i(s),l=n(5),u=i(l),f=n(21),c=i(f),d="validation",h={events:"blur",selector:"[data-required]"},p=function(){function t(e,n){o(this,t),this.$element=(0,a.default)(e),this.options=a.default.extend({},h,n||{})}return r(t,[{key:"init",value:function(){return this._fields=this.$element.find(this.options.selector),this.bindListeners(),this}},{key:"bindListeners",value:function(){var t=this;this.handler=function(e){t.validate(e.target)},this.$element.off(this.options.events,this.options.selector,this.handler),this.$element.on(this.options.events,this.options.selector,this.handler)}},{key:"setPristine",value:function(t){u.default.emit("validation:pristine",t)}},{key:"validate",value:function(t){var e=this,n=t.getAttribute("data-validate");if(n)return n=n.split(" ").reduce(function(n,i){return e.rules[i].call(e,t,e.$element)||n.push(i),n},[]),u.default.emit("validation:"+(n.length?"error":"success"),t,n),!n.length}},{key:"validateAll",value:function(){return Array.prototype.map.call(this.getFilteredInputs(),this.validate,this).every(function(t){return t})}},{key:"getFilteredInputs",value:function(){return Array.prototype.filter.call(this.$element.find(this.options.selector),this.getValidInputs)}},{key:"getValidInputs",value:function(t){return t.hasAttribute("data-validate")}}]),t}();p.prototype.rules=c.default,a.default.fn[d]=function(t){return t=t||{},this.each(function(){a.default.data(this,d)||a.default.data(this,d,new p(this,t).init())})},e.default=p},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(22),r=i(o),s=n(23),a=i(s),l=n(24),u=i(l),f=n(25),c=i(f),d=n(26),h=i(d);e.default={required:r.default,confirm:a.default,minlength:u.default,maxlength:c.default,email:h.default}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return"checkbox"===t.type?t.checked:"radio"===t.type?e.find('[name="'+t.name+'"]:checked').length:!!t.value.trim()}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.value===e.find('[name="'+t.getAttribute("data-confirm")+'"]').val()}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.value.length>=t.getAttribute("data-minlength")}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.value.length<=t.getAttribute("maxlength")}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t.value)}}]); | ||
//# sourceMappingURL=garden.min.js.map |
{ | ||
"name": "garden", | ||
"version": "0.45.1", | ||
"version": "0.45.2", | ||
"description": "A styleguide based on Leroy Merlin needs", | ||
@@ -29,3 +29,3 @@ "main": "dist/js/garden.min.js", | ||
"devDependencies": { | ||
"autoprefixer": "^6.2.3", | ||
"autoprefixer": "^7.1.2", | ||
"babel-cli": "^6.4.0", | ||
@@ -37,3 +37,3 @@ "babel-eslint": "^7.2.3", | ||
"babel-preset-es2015": "^6.3.13", | ||
"chai": "^3.4.1", | ||
"chai": "^4.1.0", | ||
"chalk": "^2.0.1", | ||
@@ -97,3 +97,3 @@ "codecov": "^2.1.0", | ||
"postcss-mixins": "^6.0.1", | ||
"postcss-nested": "^1.0.0", | ||
"postcss-nested": "^2.0.3", | ||
"postcss-reporter": "^3.0.0", | ||
@@ -100,0 +100,0 @@ "postcss-simple-vars": "^3.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
287037
3100
0