{
"version": 3,
"sources": [ "theia-sticky-sidebar.js" ],
"names": [ "$", "fn", "theiaStickySidebar", "options", "tryInitOrHookIntoEvents", "$that", "success", "tryInit", "console", "log", "document", "on", "namespace", "evt", "this", "unbind", "window", "initialized", "width", "minWidth", "init", "existingStylesheet", "length", "append", "each", "resetSidebar", "o", "fixedScrollTop", "sidebar", "css", "min-height", "stickySidebar", "position", "transform", "getClearedHeight", "e", "height", "children", "Math", "max", "container", "containerSelector", "parent", "parents", "defaultPosition", "overflow", "-webkit-box-sizing", "-moz-box-sizing", "box-sizing", "find", "javaScriptMIMETypes", "filter", "index", "script", "type", "match", "remove", "addClass", "marginBottom", "parseInt", "paddingTop", "paddingBottom", "collapsedTopHeight", "offset", "top", "collapsedBottomHeight", "outerHeight", "stickySidebarPaddingTop", "stickySidebarPaddingBottom", "previousScrollTop", "onScroll", "is", "disableOnResponsiveLayouts", "sidebarWidth", "outerWidth", "scrollTop", "additionalMarginTop", "windowOffsetBottom", "offsetTop", "offsetBottom", "additionalMarginBottom", "containerTop", "containerBottom", "windowOffsetTop", "sidebarSmallerThanWindow", "staticLimitTop", "staticLimitBottom", "scrollTopDiff", "sidebarBehavior", "min", "sidebarSameHeightAsContainer", "scrollLeft", "getWidthForObject", "left", "updateSidebarHeight", "ResizeSensor", "object", "getBoundingClientRect", "err", "defaults", "extend", "jQuery" ],
"mappings": "CAUA,SAAAA,GACAA,EAAAC,GAAAC,mBAAA,SAAAC,GAqBA,QAAAC,GAAAD,EAAAE,GACA,GAAAC,GAAAC,EAAAJ,EAAAE,EAEAC,KACAE,QAAAC,IAAA,mEAEAT,EAAAU,UAAAC,GAAA,UAAAR,EAAAS,UAAA,SAAAT,EAAAE,GACA,MAAA,UAAAQ,GACA,GAAAP,GAAAC,EAAAJ,EAAAE,EAEAC,IACAN,EAAAc,MAAAC,OAAAF,KAGAV,EAAAE,IACAL,EAAAgB,QAAAL,GAAA,UAAAR,EAAAS,UAAA,SAAAT,EAAAE,GACA,MAAA,UAA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wBAAA/E,MAEA,MAAAgF,IAOA,MAJA,mBAAAhF,KACAA,EAAA8E,EAAA9E,SAGAA,EAjWA,GAAAiF,IACA1D,kBAAA,GACAmC,oBAAA,EACAI,uBAAA,EACAc,qBAAA,EACA3E,SAAA,EACAqD,4BAAA,EACAgB,gBAAA,SACA5C,gBAAA,WACAhC,UAAA,MA2VA,OAzVAT,GAAAH,EAAAoG,OAAAD,EAAAhG,GAGAA,EAAAyE,oBAAAjB,SAAAxD,EAAAyE,sBAAA,EACAzE,EAAA6E,uBAAArB,SAAAxD,EAAA6E,yBAAA,EAEA5E,EAAAD,EAAAW,MAmVAA,OAEAuF",
"file": "../theia-sticky-sidebar.min.js",
"sourcesContent": [ "/*!\n * Theia Sticky Sidebar v1.7.0\n * https://github.com/WeCodePixels/theia-sticky-sidebar\n *\n * Glues your website's sidebars, making them permanently visible while scrolling.\n *\n * Copyright 2013-2016 WeCodePixels and other contributors\n * Released under the MIT license\n */\n\n(function ($) {\n $.fn.theiaStickySidebar = function (options) {\n var defaults = {\n 'containerSelector': '',\n 'additionalMarginTop': 0,\n 'additionalMarginBottom': 0,\n 'updateSidebarHeight': true,\n 'minWidth': 0,\n 'disableOnResponsiveLayouts': true,\n 'sidebarBehavior': 'modern',\n 'defaultPosition': 'relative',\n 'namespace': 'TSS'\n };\n options = $.extend(defaults, options);\n\n // Validate options\n options.additionalMarginTop = parseInt(options.additionalMarginTop) || 0;\n options.additionalMarginBottom = parseInt(options.additionalMarginBottom) || 0;\n\n tryInitOrHookIntoEvents(options, this);\n\n // Try doing init, otherwise hook into window.resize and document.scroll and try again then.\n function tryInitOrHookIntoEvents(options, $that) {\n var success = tryInit(options, $that);\n\n if (!success) {\n console.log('TSS: Body width smaller than options.minWidth. Init is delayed.');\n\n $(document).on('scroll.' + options.namespace, function (options, $that) {\n return function (evt) {\n var success = tryInit(options, $that);\n\n if (success) {\n $(this).unbind(evt);\n }\n };\n }(options, $that));\n $(window).on('resize.' + options.namespace, function (options, $that) {\n return function (evt) {\n var success = tryInit(options, $that);\n\n if (success) {\n $(this).unbind(evt);\n }\n };\n }(options, $that))\n }\n }\n\n // Try doing init if proper conditions are met.\n function tryInit(options, $that) {\n if (options.initialized === true) {\n return true;\n }\n\n if ($('body').width() < options.minWidth) {\n return false;\n }\n\n init(options, $that);\n\n return true;\n }\n\n // Init the sticky sidebar(s).\n function init(options, $that) {\n options.initialized = true;\n\n // Add CSS\n var existingStylesheet = $('#theia-sticky-sidebar-stylesheet-' + options.namespace);\n if (existingStylesheet.length === 0) {\n $('head').append($(''));\n }\n\n $that.each(function () {\n var o = {};\n\n o.sidebar = $(this);\n\n // Save options\n o.options = options || {};\n\n // Get container\n o.container = $(o.options.containerSelector);\n if (o.container.length == 0) {\n o.container = o.sidebar.parent();\n }\n\n // Create sticky sidebar\n o.sidebar.parents().css('-webkit-transform', 'none'); // Fix for WebKit bug - https://code.google.com/p/chromium/issues/detail?id=20574\n o.sidebar.css({\n 'position': o.options.defaultPosition,\n 'overflow': 'visible',\n // The \"box-sizing\" must be set to \"content-box\" because we set a fixed height to this element when the sticky sidebar has a fixed position.\n '-webkit-box-sizing': 'border-box',\n '-moz-box-sizing': 'border-box',\n 'box-sizing': 'border-box'\n });\n\n // Get the sticky sidebar element. If none has been found, then create one.\n o.stickySidebar = o.sidebar.find('.theiaStickySidebar');\n if (o.stickySidebar.length == 0) {\n // Remove