@dac-software/base-ui
Advanced tools
Comparing version 0.0.1-dev to 0.0.2-dev
@@ -1,2 +0,2 @@ | ||
module.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(i,s,function(e){return t[e]}.bind(null,s));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=15)}({0:function(t,e){t.exports=require("jquery")},1:function(t,e,n){var i,s;!function(r,a){"use strict";void 0===(s="function"==typeof(i=function(){var t,e,n,i,s,r={},a={captions:!0,buttons:"auto",fullScreen:!1,noScrollbars:!1,bodyClass:"baguetteBox-open",titleTag:!1,async:!1,preload:2,animation:"slideIn",afterShow:null,afterHide:null,onChange:null,overlayBackgroundColor:"rgba(0,0,0,.8)"},o={},l=[],u=0,c=!1,d={},h=!1,f=/.+\.(gif|jpe?g|png|webp)/i,m={},g=[],p=null,v=function(t){-1!==t.target.id.indexOf("baguette-img")&&q()},b=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,M()},y=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,B()},w=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,q()},C=function(t){d.count++,1<d.count&&(d.multitouch=!0),d.startX=t.changedTouches[0].pageX,d.startY=t.changedTouches[0].pageY},x=function(t){if(!h&&!d.multitouch){t.preventDefault?t.preventDefault():t.returnValue=!1;var e=t.touches[0]||t.changedTouches[0];40<e.pageX-d.startX?(h=!0,M()):e.pageX-d.startX<-40?(h=!0,B()):100<d.startY-e.pageY&&q()}},k=function(){d.count--,d.count<=0&&(d.multitouch=!1),h=!1},E=function(){k()},S=function(e){"block"===t.style.display&&t.contains&&!t.contains(e.target)&&(e.stopPropagation(),R())};function T(t){if(m.hasOwnProperty(t)){var e=m[t].galleries;[].forEach.call(e,function(t){[].forEach.call(t,function(t){D(t.imageElement,"click",t.eventHandler)}),l===t&&(l=[])}),delete m[t]}}function L(t){switch(t.keyCode){case 37:M();break;case 39:B();break;case 27:q();break;case 36:!function(t){t&&t.preventDefault(),P(0)}(t);break;case 35:!function(t){t&&t.preventDefault(),P(l.length-1)}(t)}}function A(s,o){if(l!==s){for(l=s,function(s){for(var o in s||(s={}),a)r[o]=a[o],void 0!==s[o]&&(r[o]=s[o]);e.style.transition=e.style.webkitTransition="fadeIn"===r.animation?"opacity .4s ease":"slideIn"===r.animation?"":"none","auto"===r.buttons&&("ontouchstart"in window||1===l.length)&&(r.buttons=!1),n.style.display=i.style.display=r.buttons?"":"none";try{t.style.backgroundColor=r.overlayBackgroundColor}catch(t){}}(o);e.firstChild;)e.removeChild(e.firstChild);for(var u,c=[],d=[],h=g.length=0;h<s.length;h++)(u=V("div")).className="full-image",u.id="baguette-img-"+h,g.push(u),c.push("baguetteBox-figure-"+h),d.push("baguetteBox-figcaption-"+h),e.appendChild(g[h]);t.setAttribute("aria-labelledby",c.join(" ")),t.setAttribute("aria-describedby",d.join(" "))}}function F(e){r.noScrollbars&&(document.documentElement.style.overflowY="hidden",document.body.style.overflowY="scroll"),"block"!==t.style.display&&(O(document,"keydown",L),d={count:0,startX:null,startY:null},N(u=e,function(){z(u),I(u)}),j(),t.style.display="block",r.fullScreen&&(t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen&&t.mozRequestFullScreen()),setTimeout(function(){t.className="visible",r.bodyClass&&document.body.classList&&document.body.classList.add(r.bodyClass),r.afterShow&&r.afterShow()},50),r.onChange&&r.onChange(u,g.length),p=document.activeElement,R(),c=!0)}function R(){r.buttons?n.focus():s.focus()}function q(){r.noScrollbars&&(document.documentElement.style.overflowY="auto",document.body.style.overflowY="auto"),"none"!==t.style.display&&(D(document,"keydown",L),t.className="",setTimeout(function(){t.style.display="none",document.fullscreen&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()),r.bodyClass&&document.body.classList&&document.body.classList.remove(r.bodyClass),r.afterHide&&r.afterHide(),p&&p.focus(),c=!1},500))}function N(t,e){var n=g[t],i=l[t];if(void 0!==n&&void 0!==i)if(n.getElementsByTagName("img")[0])e&&e();else{var s=i.imageElement,a=s.getElementsByTagName("img")[0],o="function"==typeof r.captions?r.captions.call(l,s):s.getAttribute("data-caption")||s.title,u=function(t){var e=t.href;if(t.dataset){var n=[];for(var i in t.dataset)"at-"!==i.substring(0,3)||isNaN(i.substring(3))||(n[i.replace("at-","")]=t.dataset[i]);for(var s=Object.keys(n).sort(function(t,e){return parseInt(t,10)<parseInt(e,10)?-1:1}),r=window.innerWidth*window.devicePixelRatio,a=0;a<s.length-1&&s[a]<r;)a++;e=n[s[a]]||e}return e}(s),c=V("figure");if(c.id="baguetteBox-figure-"+t,c.innerHTML='<div class="baguetteBox-spinner"><div class="baguetteBox-double-bounce1"></div><div class="baguetteBox-double-bounce2"></div></div>',r.captions&&o){var d=V("figcaption");d.id="baguetteBox-figcaption-"+t,d.innerHTML=o,c.appendChild(d)}n.appendChild(c);var h=V("img");h.onload=function(){var n=document.querySelector("#baguette-img-"+t+" .baguetteBox-spinner");c.removeChild(n),!r.async&&e&&e()},h.setAttribute("src",u),h.alt=a&&a.alt||"",r.titleTag&&o&&(h.title=o),c.appendChild(h),r.async&&e&&e()}}function B(){return P(u+1)}function M(){return P(u-1)}function P(t,e){return!c&&0<=t&&t<e.length?(A(e,r),F(t),!0):t<0?(r.animation&&H("left"),!1):t>=g.length?(r.animation&&H("right"),!1):(N(u=t,function(){z(u),I(u)}),j(),r.onChange&&r.onChange(u,g.length),!0)}function H(t){e.className="bounce-from-"+t,setTimeout(function(){e.className=""},400)}function j(){var t=100*-u+"%";"fadeIn"===r.animation?(e.style.opacity=0,setTimeout(function(){o.transforms?e.style.transform=e.style.webkitTransform="translate3d("+t+",0,0)":e.style.left=t,e.style.opacity=1},400)):o.transforms?e.style.transform=e.style.webkitTransform="translate3d("+t+",0,0)":e.style.left=t}function z(t){t-u>=r.preload||N(t+1,function(){z(t+1)})}function I(t){u-t>=r.preload||N(t-1,function(){I(t-1)})}function O(t,e,n,i){t.addEventListener?t.addEventListener(e,n,i):t.attachEvent("on"+e,function(t){(t=t||window.event).target=t.target||t.srcElement,n(t)})}function D(t,e,n,i){t.removeEventListener?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)}function $(t){return document.getElementById(t)}function V(t){return document.createElement(t)}return[].forEach||(Array.prototype.forEach=function(t,e){for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[].filter||(Array.prototype.filter=function(t,e,n,i,s){for(n=this,i=[],s=0;s<n.length;s++)t.call(e,n[s],s,n)&&i.push(n[s]);return i}),{run:function(r,a){return o.transforms=function(){var t=V("div");return void 0!==t.style.perspective||void 0!==t.style.webkitPerspective}(),o.svg=function(){var t=V("div");return t.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(t.firstChild&&t.firstChild.namespaceURI)}(),o.passiveEvents=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),function(){if(t=$("baguetteBox-overlay"))return e=$("baguetteBox-slider"),n=$("previous-button"),i=$("next-button"),void(s=$("close-button"));var r;(t=V("div")).setAttribute("role","dialog"),t.id="baguetteBox-overlay",document.getElementsByTagName("body")[0].appendChild(t),(e=V("div")).id="baguetteBox-slider",t.appendChild(e),(n=V("button")).setAttribute("type","button"),n.id="previous-button",n.setAttribute("aria-label","Previous"),n.innerHTML=o.svg?'<svg width="44" height="60"><polyline points="30 10 10 30 30 50" stroke="rgba(255,255,255,0.5)" stroke-width="4"stroke-linecap="butt" fill="none" stroke-linejoin="round"/></svg>':"<",t.appendChild(n),(i=V("button")).setAttribute("type","button"),i.id="next-button",i.setAttribute("aria-label","Next"),i.innerHTML=o.svg?'<svg width="44" height="60"><polyline points="14 10 34 30 14 50" stroke="rgba(255,255,255,0.5)" stroke-width="4"stroke-linecap="butt" fill="none" stroke-linejoin="round"/></svg>':">",t.appendChild(i),(s=V("button")).setAttribute("type","button"),s.id="close-button",s.setAttribute("aria-label","Close"),s.innerHTML=o.svg?'<svg width="30" height="30"><g stroke="rgb(160,160,160)" stroke-width="4"><line x1="5" y1="5" x2="25" y2="25"/><line x1="5" y1="25" x2="25" y2="5"/></g></svg>':"×",t.appendChild(s),n.className=i.className=s.className="baguetteBox-button",r=o.passiveEvents?{passive:!0}:null,O(t,"click",v),O(n,"click",b),O(i,"click",y),O(s,"click",w),O(e,"contextmenu",E),O(t,"touchstart",C,r),O(t,"touchmove",x,r),O(t,"touchend",k),O(document,"focus",S,!0)}(),T(r),function(t,e){var n=document.querySelectorAll(t),i={galleries:[],nodeList:n};return m[t]=i,[].forEach.call(n,function(t){e&&e.filter&&(f=e.filter);var n=[];if(n="A"===t.tagName?[t]:t.getElementsByTagName("a"),0!==(n=[].filter.call(n,function(t){if(-1===t.className.indexOf(e&&e.ignoreClass))return f.test(t.href)})).length){var s=[];[].forEach.call(n,function(t,n){var i=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1,A(s,e),F(n)},r={eventHandler:i,imageElement:t};O(t,"click",i),s.push(r)}),i.galleries.push(s)}}),i.galleries}(r,a)},show:P,showNext:B,showPrevious:M,hide:q,destroy:function(){!function(){var r=o.passiveEvents?{passive:!0}:null;D(t,"click",v),D(n,"click",b),D(i,"click",y),D(s,"click",w),D(e,"contextmenu",E),D(t,"touchstart",C,r),D(t,"touchmove",x,r),D(t,"touchend",k),D(document,"focus",S,!0)}(),function(){for(var t in m)m.hasOwnProperty(t)&&T(t)}(),D(document,"keydown",L),document.getElementsByTagName("body")[0].removeChild(document.getElementById("baguetteBox-overlay")),m={},l=[],u=0}}})?i.call(e,n,e,t):i)||(t.exports=s)}()},15:function(t,e,n){"use strict";n.r(e);n(8),n(9);var i=n(0),s=n.n(i),r=n(1),a=n.n(r);window.jQuery=s.a,window.$=s.a;var o=a.a.run(".carousel-one",{preload:2});function l(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)}}s()(function(){s()("#fullscreen").on("click",function(t){var e=s()(".slick-active").index(".item")-1;e>-1&&a.a.show(e,o[0]),t.preventDefault()})}),window.jQuery=s.a,window.$=s.a,s()(function(){function t(){s()(window).width()>575.98?s()(".js-offer-section--no-collapse-non-mobiles").removeAttr("data-toggle"):s()(".js-offer-section--no-collapse-non-mobiles").attr("data-toggle","collapse")}s()(window).resize(function(){t()}),t()}),window.jQuery=s.a,window.$=s.a,s()(function(){new(function(){function t(e,n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.activeClass=e,this.menuLinkSelector=n,this.linkClicked=!1,this.menuHeight=s()(i).outerHeight(),this.mainMenuHeight=s()(r).outerHeight()}var e,n,i;return e=t,(n=[{key:"spy",value:function(){this.spyScroll(),this.registerClicks()}},{key:"spyScroll",value:function(){var t=this;s()(window).scroll(function(){var e=s()(this).scrollTop();s()(t.menuLinkSelector).each(function(){var n=s()(this).attr("href");e>=s()(n).offset().top-t.menuHeight-t.mainMenuHeight&&!t.linkClicked&&(s()(t.menuLinkSelector).not(this).removeClass(t.activeClass),s()(this).addClass(t.activeClass))})}),this.registerClicks()}},{key:"registerClicks",value:function(){var t=this;s()(this.menuLinkSelector).click(function(e){t.linkClicked=!0,e.preventDefault(),s()(t.menuLinkSelector).removeClass(t.activeClass),s()(this).addClass(t.activeClass),t.goToByScroll(s()(this).attr("href").replace("#",""))})}},{key:"goToByScroll",value:function(t){var e=this;s()("html,body").animate({scrollTop:s()("#"+t).offset().top-(e.menuHeight-1)-e.mainMenuHeight},"slow",function(){e.linkClicked=!1})}}])&&l(e.prototype,n),i&&l(e,i),t}())("tab-links__item--active","#sections-menu a","#sections-menu","nav.navbar").spy()})},8:function(t,e,n){},9:function(t,e,n){var i,s,r;function a(t){return(a="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})(t)} | ||
module.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(i,s,function(e){return t[e]}.bind(null,s));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=17)}({0:function(t,e){t.exports=require("jquery")},1:function(t,e,n){var i,s;!function(r,a){"use strict";void 0===(s="function"==typeof(i=function(){var t,e,n,i,s,r={},a={captions:!0,buttons:"auto",fullScreen:!1,noScrollbars:!1,bodyClass:"baguetteBox-open",titleTag:!1,async:!1,preload:2,animation:"slideIn",afterShow:null,afterHide:null,onChange:null,overlayBackgroundColor:"rgba(0,0,0,.8)"},o={},l=[],u=0,c=!1,d={},h=!1,f=/.+\.(gif|jpe?g|png|webp)/i,m={},g=[],p=null,v=function(t){-1!==t.target.id.indexOf("baguette-img")&&q()},b=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,M()},y=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,B()},w=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,q()},C=function(t){d.count++,1<d.count&&(d.multitouch=!0),d.startX=t.changedTouches[0].pageX,d.startY=t.changedTouches[0].pageY},x=function(t){if(!h&&!d.multitouch){t.preventDefault?t.preventDefault():t.returnValue=!1;var e=t.touches[0]||t.changedTouches[0];40<e.pageX-d.startX?(h=!0,M()):e.pageX-d.startX<-40?(h=!0,B()):100<d.startY-e.pageY&&q()}},k=function(){d.count--,d.count<=0&&(d.multitouch=!1),h=!1},E=function(){k()},S=function(e){"block"===t.style.display&&t.contains&&!t.contains(e.target)&&(e.stopPropagation(),R())};function T(t){if(m.hasOwnProperty(t)){var e=m[t].galleries;[].forEach.call(e,function(t){[].forEach.call(t,function(t){D(t.imageElement,"click",t.eventHandler)}),l===t&&(l=[])}),delete m[t]}}function L(t){switch(t.keyCode){case 37:M();break;case 39:B();break;case 27:q();break;case 36:!function(t){t&&t.preventDefault(),P(0)}(t);break;case 35:!function(t){t&&t.preventDefault(),P(l.length-1)}(t)}}function A(s,o){if(l!==s){for(l=s,function(s){for(var o in s||(s={}),a)r[o]=a[o],void 0!==s[o]&&(r[o]=s[o]);e.style.transition=e.style.webkitTransition="fadeIn"===r.animation?"opacity .4s ease":"slideIn"===r.animation?"":"none","auto"===r.buttons&&("ontouchstart"in window||1===l.length)&&(r.buttons=!1),n.style.display=i.style.display=r.buttons?"":"none";try{t.style.backgroundColor=r.overlayBackgroundColor}catch(t){}}(o);e.firstChild;)e.removeChild(e.firstChild);for(var u,c=[],d=[],h=g.length=0;h<s.length;h++)(u=V("div")).className="full-image",u.id="baguette-img-"+h,g.push(u),c.push("baguetteBox-figure-"+h),d.push("baguetteBox-figcaption-"+h),e.appendChild(g[h]);t.setAttribute("aria-labelledby",c.join(" ")),t.setAttribute("aria-describedby",d.join(" "))}}function F(e){r.noScrollbars&&(document.documentElement.style.overflowY="hidden",document.body.style.overflowY="scroll"),"block"!==t.style.display&&(O(document,"keydown",L),d={count:0,startX:null,startY:null},N(u=e,function(){z(u),I(u)}),j(),t.style.display="block",r.fullScreen&&(t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen&&t.mozRequestFullScreen()),setTimeout(function(){t.className="visible",r.bodyClass&&document.body.classList&&document.body.classList.add(r.bodyClass),r.afterShow&&r.afterShow()},50),r.onChange&&r.onChange(u,g.length),p=document.activeElement,R(),c=!0)}function R(){r.buttons?n.focus():s.focus()}function q(){r.noScrollbars&&(document.documentElement.style.overflowY="auto",document.body.style.overflowY="auto"),"none"!==t.style.display&&(D(document,"keydown",L),t.className="",setTimeout(function(){t.style.display="none",document.fullscreen&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()),r.bodyClass&&document.body.classList&&document.body.classList.remove(r.bodyClass),r.afterHide&&r.afterHide(),p&&p.focus(),c=!1},500))}function N(t,e){var n=g[t],i=l[t];if(void 0!==n&&void 0!==i)if(n.getElementsByTagName("img")[0])e&&e();else{var s=i.imageElement,a=s.getElementsByTagName("img")[0],o="function"==typeof r.captions?r.captions.call(l,s):s.getAttribute("data-caption")||s.title,u=function(t){var e=t.href;if(t.dataset){var n=[];for(var i in t.dataset)"at-"!==i.substring(0,3)||isNaN(i.substring(3))||(n[i.replace("at-","")]=t.dataset[i]);for(var s=Object.keys(n).sort(function(t,e){return parseInt(t,10)<parseInt(e,10)?-1:1}),r=window.innerWidth*window.devicePixelRatio,a=0;a<s.length-1&&s[a]<r;)a++;e=n[s[a]]||e}return e}(s),c=V("figure");if(c.id="baguetteBox-figure-"+t,c.innerHTML='<div class="baguetteBox-spinner"><div class="baguetteBox-double-bounce1"></div><div class="baguetteBox-double-bounce2"></div></div>',r.captions&&o){var d=V("figcaption");d.id="baguetteBox-figcaption-"+t,d.innerHTML=o,c.appendChild(d)}n.appendChild(c);var h=V("img");h.onload=function(){var n=document.querySelector("#baguette-img-"+t+" .baguetteBox-spinner");c.removeChild(n),!r.async&&e&&e()},h.setAttribute("src",u),h.alt=a&&a.alt||"",r.titleTag&&o&&(h.title=o),c.appendChild(h),r.async&&e&&e()}}function B(){return P(u+1)}function M(){return P(u-1)}function P(t,e){return!c&&0<=t&&t<e.length?(A(e,r),F(t),!0):t<0?(r.animation&&H("left"),!1):t>=g.length?(r.animation&&H("right"),!1):(N(u=t,function(){z(u),I(u)}),j(),r.onChange&&r.onChange(u,g.length),!0)}function H(t){e.className="bounce-from-"+t,setTimeout(function(){e.className=""},400)}function j(){var t=100*-u+"%";"fadeIn"===r.animation?(e.style.opacity=0,setTimeout(function(){o.transforms?e.style.transform=e.style.webkitTransform="translate3d("+t+",0,0)":e.style.left=t,e.style.opacity=1},400)):o.transforms?e.style.transform=e.style.webkitTransform="translate3d("+t+",0,0)":e.style.left=t}function z(t){t-u>=r.preload||N(t+1,function(){z(t+1)})}function I(t){u-t>=r.preload||N(t-1,function(){I(t-1)})}function O(t,e,n,i){t.addEventListener?t.addEventListener(e,n,i):t.attachEvent("on"+e,function(t){(t=t||window.event).target=t.target||t.srcElement,n(t)})}function D(t,e,n,i){t.removeEventListener?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)}function $(t){return document.getElementById(t)}function V(t){return document.createElement(t)}return[].forEach||(Array.prototype.forEach=function(t,e){for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[].filter||(Array.prototype.filter=function(t,e,n,i,s){for(n=this,i=[],s=0;s<n.length;s++)t.call(e,n[s],s,n)&&i.push(n[s]);return i}),{run:function(r,a){return o.transforms=function(){var t=V("div");return void 0!==t.style.perspective||void 0!==t.style.webkitPerspective}(),o.svg=function(){var t=V("div");return t.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(t.firstChild&&t.firstChild.namespaceURI)}(),o.passiveEvents=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),function(){if(t=$("baguetteBox-overlay"))return e=$("baguetteBox-slider"),n=$("previous-button"),i=$("next-button"),void(s=$("close-button"));var r;(t=V("div")).setAttribute("role","dialog"),t.id="baguetteBox-overlay",document.getElementsByTagName("body")[0].appendChild(t),(e=V("div")).id="baguetteBox-slider",t.appendChild(e),(n=V("button")).setAttribute("type","button"),n.id="previous-button",n.setAttribute("aria-label","Previous"),n.innerHTML=o.svg?'<svg width="44" height="60"><polyline points="30 10 10 30 30 50" stroke="rgba(255,255,255,0.5)" stroke-width="4"stroke-linecap="butt" fill="none" stroke-linejoin="round"/></svg>':"<",t.appendChild(n),(i=V("button")).setAttribute("type","button"),i.id="next-button",i.setAttribute("aria-label","Next"),i.innerHTML=o.svg?'<svg width="44" height="60"><polyline points="14 10 34 30 14 50" stroke="rgba(255,255,255,0.5)" stroke-width="4"stroke-linecap="butt" fill="none" stroke-linejoin="round"/></svg>':">",t.appendChild(i),(s=V("button")).setAttribute("type","button"),s.id="close-button",s.setAttribute("aria-label","Close"),s.innerHTML=o.svg?'<svg width="30" height="30"><g stroke="rgb(160,160,160)" stroke-width="4"><line x1="5" y1="5" x2="25" y2="25"/><line x1="5" y1="25" x2="25" y2="5"/></g></svg>':"×",t.appendChild(s),n.className=i.className=s.className="baguetteBox-button",r=o.passiveEvents?{passive:!0}:null,O(t,"click",v),O(n,"click",b),O(i,"click",y),O(s,"click",w),O(e,"contextmenu",E),O(t,"touchstart",C,r),O(t,"touchmove",x,r),O(t,"touchend",k),O(document,"focus",S,!0)}(),T(r),function(t,e){var n=document.querySelectorAll(t),i={galleries:[],nodeList:n};return m[t]=i,[].forEach.call(n,function(t){e&&e.filter&&(f=e.filter);var n=[];if(n="A"===t.tagName?[t]:t.getElementsByTagName("a"),0!==(n=[].filter.call(n,function(t){if(-1===t.className.indexOf(e&&e.ignoreClass))return f.test(t.href)})).length){var s=[];[].forEach.call(n,function(t,n){var i=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1,A(s,e),F(n)},r={eventHandler:i,imageElement:t};O(t,"click",i),s.push(r)}),i.galleries.push(s)}}),i.galleries}(r,a)},show:P,showNext:B,showPrevious:M,hide:q,destroy:function(){!function(){var r=o.passiveEvents?{passive:!0}:null;D(t,"click",v),D(n,"click",b),D(i,"click",y),D(s,"click",w),D(e,"contextmenu",E),D(t,"touchstart",C,r),D(t,"touchmove",x,r),D(t,"touchend",k),D(document,"focus",S,!0)}(),function(){for(var t in m)m.hasOwnProperty(t)&&T(t)}(),D(document,"keydown",L),document.getElementsByTagName("body")[0].removeChild(document.getElementById("baguetteBox-overlay")),m={},l=[],u=0}}})?i.call(e,n,e,t):i)||(t.exports=s)}()},17:function(t,e,n){"use strict";n.r(e);n(8),n(9);var i=n(0),s=n.n(i),r=n(1),a=n.n(r);window.jQuery=s.a,window.$=s.a;var o=a.a.run(".carousel-one",{preload:2});function l(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)}}s()(function(){s()("#fullscreen").on("click",function(t){var e=s()(".slick-active").index(".item")-1;e>-1&&a.a.show(e,o[0]),t.preventDefault()})}),window.jQuery=s.a,window.$=s.a,s()(function(){function t(){s()(window).width()>575.98?s()(".js-offer-section--no-collapse-non-mobiles").removeAttr("data-toggle"):s()(".js-offer-section--no-collapse-non-mobiles").attr("data-toggle","collapse")}s()(window).resize(function(){t()}),t()}),window.jQuery=s.a,window.$=s.a,s()(function(){new(function(){function t(e,n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.activeClass=e,this.menuLinkSelector=n,this.linkClicked=!1,this.menuHeight=s()(i).outerHeight(),this.mainMenuHeight=s()(r).outerHeight()}var e,n,i;return e=t,(n=[{key:"spy",value:function(){this.spyScroll(),this.registerClicks()}},{key:"spyScroll",value:function(){var t=this;s()(window).scroll(function(){var e=s()(this).scrollTop();s()(t.menuLinkSelector).each(function(){var n=s()(this).attr("href");e>=s()(n).offset().top-t.menuHeight-t.mainMenuHeight&&!t.linkClicked&&(s()(t.menuLinkSelector).not(this).removeClass(t.activeClass),s()(this).addClass(t.activeClass))})}),this.registerClicks()}},{key:"registerClicks",value:function(){var t=this;s()(this.menuLinkSelector).click(function(e){t.linkClicked=!0,e.preventDefault(),s()(t.menuLinkSelector).removeClass(t.activeClass),s()(this).addClass(t.activeClass),t.goToByScroll(s()(this).attr("href").replace("#",""))})}},{key:"goToByScroll",value:function(t){var e=this;s()("html,body").animate({scrollTop:s()("#"+t).offset().top-(e.menuHeight-1)-e.mainMenuHeight},"slow",function(){e.linkClicked=!1})}}])&&l(e.prototype,n),i&&l(e,i),t}())("tab-links__item--active","#sections-menu a","#sections-menu","nav.navbar").spy()})},8:function(t,e,n){},9:function(t,e,n){var i,s,r;function a(t){return(a="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})(t)} | ||
/*! | ||
@@ -3,0 +3,0 @@ * jQuery Validation Plugin v1.19.0 |
{ | ||
"name": "@dac-software/base-ui", | ||
"version": "0.0.1-dev", | ||
"version": "0.0.2-dev", | ||
"license": "UNLICENSED", | ||
@@ -5,0 +5,0 @@ "main": "dist/base-ui.js", |
@@ -1,2 +0,2 @@ | ||
# Qarson FRONT UI | ||
# Qarson BASE UI | ||
@@ -3,0 +3,0 @@ Main purpose of this library is to aggregate main UI parts of qarson multipage system. |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2183741
32
535