{"version":3,"sources":["popover.js","tooltip.js","copy-type.js","forms.js","navbar-sticky.js","highlight.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"theme.js","sourcesContent":["//\n// Popover\n//\n\n'use strict';\n\nvar Popover = (function() {\n\n\t// Variables\n\n\tvar $popover = $('[data-toggle=\"popover\"]');\n\n\n\t// Methods\n\n\tfunction init($this) {\n\t\tvar popoverClass = '';\n\n\t\tif ($this.data('color')) {\n\t\t\tpopoverClass = ' popover-' + $this.data('color');\n\t\t}\n\n\t\tvar options = {\n\t\t\ttrigger: 'focus',\n\t\t\ttemplate: '

'\n\t\t};\n\n\t\t$this.popover(options);\n\t}\n\n\n\t// Events\n\n\tif ($popover.length) {\n\t\t$popover.each(function() {\n\t\t\tinit($(this));\n\t\t});\n\t}\n\n})();\n","//\n// Tooltip\n//\n\n'use strict';\n\nvar Tooltip = (function() {\n\n\t// Variables\n\n\tvar $tooltip = $('[data-toggle=\"tooltip\"]');\n\n\n\t// Methods\n\n\tfunction init() {\n\t\t$tooltip.tooltip();\n\t}\n\n\n\t// Events\n\n\tif ($tooltip.length) {\n\t\tinit();\n\t}\n\n})();\n","var CopyType = (function() {\n\n\t// Variables\n\n\tvar $element = '.btn-type-clipboard',\n\t\t$btn = $($element);\n\n\n\t// Methods\n\n\tfunction init($this) {\n\t\t$this.tooltip().on('mouseleave', function() {\n\t\t\t// Explicitly hide tooltip, since after clicking it remains\n\t\t\t// focused (as it's a button), so tooltip would otherwise\n\t\t\t// remain visible until focus is moved away\n\t\t\t$this.tooltip('hide');\n\t\t});\n\n\t\tvar clipboard = new ClipboardJS($element);\n\n\t\tclipboard.on('success', function(e) {\n\t\t\t$(e.trigger)\n\t\t\t\t.attr('title', 'Copied!')\n\t\t\t\t.tooltip('_fixTitle')\n\t\t\t\t.tooltip('show')\n\t\t\t\t.attr('title', 'Copy to clipboard')\n\t\t\t\t.tooltip('_fixTitle')\n\n\t\t\te.clearSelection()\n\t\t});\n\t}\n\n\n\t// Events\n\tif ($btn.length) {\n\t\tinit($btn);\n\t}\n\n})();\n","//\n// Forms\n//\n\n'use strict';\n\n\n//\n// Form control\n//\n\nvar FormControl = (function() {\n\n\t// Variables\n\n\tvar $input = $('.form-control'),\n\t\t$indeterminateCheckbox = $('[data-toggle=\"indeterminate\"]');\n\n\n\t// Methods\n\n\tfunction init($this) {\n\t\t$this.on('focus blur', function(e) {\n \t$(this).parents('.form-group').toggleClass('focused', (e.type === 'focus'));\n \t}).trigger('blur');\n\t}\n\n\n\t// Events\n\n\tif ($input.length) {\n\t\tinit($input);\n\t}\n\n\t// Add indeterminate state to a checkbox\n\tif($indeterminateCheckbox.length) {\n\t\t$indeterminateCheckbox.each(function() {\n\t\t\t$(this).prop('indeterminate', true)\n\t\t})\n\t}\n\n})();\n\n\n//\n// Custom input file\n//\n\nvar CustomInputFile = (function() {\n\n\t// Variables\n\n\tvar $customInputFile = $('.custom-input-file');\n\n\n\t// Methods\n\n\tfunction change($input, $this, $e) {\n\t\tvar fileName,\n\t\t\t$label = $input.next('label'),\n\t\t\tlabelVal = $label.html();\n\n\t\tif ($this && $this.files.length > 1) {\n\t\t\tfileName = ($this.getAttribute('data-multiple-caption') || '').replace('{count}', $this.files.length);\n\t\t}\n\t\telse if ($e.target.value) {\n\t\t\tfileName = $e.target.value.split('\\\\').pop();\n\t\t}\n\n\t\tif (fileName) {\n\t\t\t$label.find('span').html(fileName);\n\t\t}\n\t\telse {\n\t\t\t$label.html(labelVal);\n\t\t}\n\t}\n\n\tfunction focus($input) {\n\t\t$input.addClass('has-focus');\n\t}\n\n\tfunction blur($input) {\n\t\t$input.removeClass('has-focus');\n\t}\n\n\n\t// Events\n\n\tif ($customInputFile.length) {\n\t\t$customInputFile.each(function() {\n\t\t\tvar $input = $(this);\n\n\t\t\t$input.on('change', function(e) {\n\t\t\t\tvar $this = this,\n\t\t\t\t\t$e = e;\n\n\t\t\t\tchange($input, $this, $e);\n\t });\n\n\t // Firefox bug fix\n\t $input.on('focus', function() {\n\t focus($input);\n\t })\n\t .on('blur', function() {\n\t blur($input);\n\t });\n\t\t});\n\t}\n})();\n","//\n// Sticky Navbar\n//\n\nvar NavbarSticky = (function() {\n\n\t// Variables\n\n\tvar $nav = $('.navbar-sticky'),\n navOffsetTop = 0,\n\t\tscrolling = false;\n\n\n\t// Methods\n\n\tfunction init($this) {\n\n\t\t// our current vertical position from the top\n\t\tvar scrollTop = $(window).scrollTop(),\n\t\t\tnavHeight = $this.outerHeight();\n\n\t\tif (scrollTop > (navOffsetTop + 200)) {\n\t\t\t$this.addClass('sticky');\n\t\t\t$(\"body\").css(\"padding-top\", navHeight + \"px\");\n\t\t} else {\n\t\t\t$this.removeClass('sticky');\n\t\t\t$(\"body\").css(\"padding-top\", \"0\");\n\t\t}\n\t}\n\n\n\t// Events\n\n\tif ($nav.length) {\n\n\t\tnavOffsetTop = $nav.offset().top;\n\t\t\n\t\t$(window).on({\n\t\t\t'scroll': function() {\n\t\t\t\tscrolling = true;\n\n\t\t\t\tsetInterval(function() {\n\t\t\t\t\tif (scrolling) {\n\t\t\t\t\t\tscrolling = false;\n\n\t\t\t\t\t\t// Sticky navbar init\n init($nav);\n\t\t\t\t\t}\n\t\t\t\t}, 250);\n\t\t\t}\n\t\t})\n\t}\n})();\n","//\n// Highlight.js\n//\n\n'use strict';\n\nvar Highlight = (function() {\n\n\t//\n\t// Variables\n\t//\n\n\tvar $highlight = $('.highlight');\n\n\n\t//\n\t// Methods\n\t//\n\n\tfunction init(i, block) {\n\t\t// Insert the copy button inside the highlight block\n\t\tvar btnHtml = ''\n\t\t$(block).before(btnHtml)\n\t\t$('.btn-clipboard')\n\t\t\t.tooltip()\n\t\t\t.on('mouseleave', function() {\n\t\t\t\t// Explicitly hide tooltip, since after clicking it remains\n\t\t\t\t// focused (as it's a button), so tooltip would otherwise\n\t\t\t\t// remain visible until focus is moved away\n\t\t\t\t$(this).tooltip('hide');\n\t\t\t});\n\n\t\t// Component code copy/paste\n\t\tvar clipboard = new ClipboardJS('.btn-clipboard', {\n\t\t\ttarget: function(trigger) {\n\t\t\t\treturn trigger.nextElementSibling\n\t\t\t}\n\t\t})\n\n\t\tclipboard.on('success', function(e) {\n\t\t\t$(e.trigger)\n\t\t\t\t.attr('title', 'Copied!')\n\t\t\t\t.tooltip('_fixTitle')\n\t\t\t\t.tooltip('show')\n\t\t\t\t.attr('title', 'Copy to clipboard')\n\t\t\t\t.tooltip('_fixTitle')\n\n\t\t\te.clearSelection()\n\t\t})\n\n\t\tclipboard.on('error', function(e) {\n\t\t\tvar modifierKey = /Mac/i.test(navigator.userAgent) ? '\\u2318' : 'Ctrl-'\n\t\t\tvar fallbackMsg = 'Press ' + modifierKey + 'C to copy'\n\n\t\t\t$(e.trigger)\n\t\t\t\t.attr('title', fallbackMsg)\n\t\t\t\t.tooltip('_fixTitle')\n\t\t\t\t.tooltip('show')\n\t\t\t\t.attr('title', 'Copy to clipboard')\n\t\t\t\t.tooltip('_fixTitle')\n\t\t})\n\n\t\t// Initialize highlight.js plugin\n\t\thljs.highlightBlock(block);\n\t}\n\n\n\t//\n\t// Events\n\t//\n\n\t$highlight.each(function(i, block) {\n\t\tinit(i, block);\n\t});\n\n})();\n"]}