{:uriI"file:///M:/Sourcetree/gems_test/candle/app/assets/javascripts/candle/calendar.coffee?type=application/javascript&pipeline=self&id=83c80c65414c57e38681764c6293e79ba1f9385a4e9439badf420ef9d4ff9515:ET:load_pathI":M:/Sourcetree/gems_test/candle/app/assets/javascripts;T: filenameI"QM:/Sourcetree/gems_test/candle/app/assets/javascripts/candle/calendar.coffee;T: nameI"candle/calendar;T:logical_pathI"candle/calendar.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { $(document).on("turbolinks:load", function() { var debounceIntervalMs, shiftUrl; $(".open_more").click(function(e) { e.preventDefault(); $(this).next('.details').toggle(); }); $(".onclick_open_backdrop").click(function(e) { e.preventDefault(); $(this).children('.snowflake_popover').popover('show'); $('.popover_backdrop').show(); }); $(document).on("click", ".close, .popover_backdrop", function(e) { e.preventDefault(); $('.snowflake_popover').popover('hide'); $('.popover_backdrop').hide(); }); $('[data-toggle="popover"]').popover({ html: true, trigger: 'manual', content: function() { return $(this).children('.popover_content').html(); } }); debounceIntervalMs = function() { return 240; }; shiftUrl = function(url, regex, shifts) { var change, text; change = function(str, p1, p2, offset, text) { return p1 + (parseInt(p2) + parseInt(shifts)); }; text = String(url); return text.replace(regex, change); }; $("a.debounce_this").click(function(e) { var delayedPageChange, newHref, regex; e.preventDefault(); if (window.forwardShiftAmount == null) { window.forwardShiftAmount = 0; } if (window.debounceTimeout != null) { clearTimeout(window.debounceTimeout); window.forwardShiftAmount = window.forwardShiftAmount + (e.currentTarget.dataset.directionForward === 'true' ? 1 : -1); console.log(window.forwardShiftAmount); } regex = new RegExp("(" + e.currentTarget.dataset.debounceParam + "=)(-?\\d+)", "g"); delayedPageChange = function() { return location.href = newHref; }; newHref = shiftUrl(e.currentTarget.href, regex, window.forwardShiftAmount); window.debounceTimeout = setTimeout(delayedPageChange, debounceIntervalMs()); }); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"`file-digest:///M:/Sourcetree/gems_test/candle/app/assets/javascripts/candle/calendar.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"% v~FDp c$) 3F]0 : lengthi:dependencies_digest"%wGp8$rBVn?=n % :idI"E83c80c65414c57e38681764c6293e79ba1f9385a4e9439badf420ef9d4ff9515;F: mtimel+h]X\