disclaimers-assets-fcf98d7ed4c4d3d44dd6.js 1.1 KB

1
  1. (()=>{var t={68869:(t,e,i)=>{"use strict";i.r(e)}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(68869),function(t,e){t.extend(t.fn,{csnScroll:function(){this.length?t(this).each((function(){this.getAttribute("init")||(t(this).on("click",(function(){var i=this.getAttribute("data-target");if(i&&0!=t(i).length){var n=this.getAttribute("data-duration");n=!n||isNaN(n)?300:parseInt(n);var r=this.getAttribute("data-offset");r||(r=0);var o=t(i)[0].getBoundingClientRect().top+e.scrollY-r;t("html,body").animate({scrollTop:o},n)}})),this.setAttribute("init",!0))})):e.console&&console.warn("Nothing selected, can't validate, returning nothing.")}}),t((function(){t("[data-toggle='scroll']").csnScroll(),e.addEventListener("collect-disclaimer",(function(e){var i=t("<p />").html(e.detail),n=t("<div />");n.addClass("disclaimers-item").append(i),t(".disclaimers-wrapper").append(n)}))}))}(jQuery,window)})();