{"version":3,"sources":["quick-website.js"],"names":["Popover","$popover","$","length","each","$this","popoverClass","data","options","trigger","template","popover","init","this","Tooltip","$tooltip","tooltip","CopyType","$element","$btn","on","ClipboardJS","e","attr","clearSelection","FormControl","$input","$indeterminateCheckbox","parents","toggleClass","type","prop","CustomInputFile","$customInputFile","$e","fileName","$label","next","labelVal","html","files","getAttribute","replace","target","value","split","pop","find","change","addClass","focus","removeClass","blur","NavbarSticky","$nav","navOffsetTop","scrolling","offset","top","window","scroll","setInterval","scrollTop","navHeight","outerHeight","css","Highlight","i","block","before","clipboard","nextElementSibling","fallbackMsg","test","navigator","userAgent","hljs","highlightBlock"],"mappings":"AAIA,aAEA,IAAIA,QAAU,WAIb,IAAIC,EAAWC,EAAE,2BAuBbD,EAASE,QACZF,EAASG,KAAK,YAnBf,SAAcC,GACb,IAAIC,EAAe,GAEfD,EAAME,KAAK,WACdD,EAAe,YAAcD,EAAME,KAAK,UAGzC,IAAIC,EAAU,CACbC,QAAS,QACTC,SAAU,sBAAwBJ,EAAe,oHAGlDD,EAAMM,QAAQH,GAQbI,CAAKV,EAAEW,SA7BI,GAyCVC,QAAU,WAIb,IAAIC,EAAWb,EAAE,2BAYba,EAASZ,QANZY,EAASC,UAVG,GAsBVC,SAAW,WAId,IAMcZ,EANVa,EAAW,sBACdC,EAAOjB,EAAEgB,GA6BNC,EAAKhB,UAxBKE,EAyBRc,GAxBCH,UAAUI,GAAG,aAAc,WAIhCf,EAAMW,QAAQ,UAGC,IAAIK,YAAYH,GAEtBE,GAAG,UAAW,SAASE,GAChCpB,EAAEoB,EAAEb,SACFc,KAAK,QAAS,WACdP,QAAQ,aACRA,QAAQ,QACRO,KAAK,QAAS,qBACdP,QAAQ,aAEVM,EAAEE,oBA5BU,GAmDXC,YAAc,WAIjB,IAAIC,EAASxB,EAAE,iBACdyB,EAAyBzB,EAAE,iCAcxBwB,EAAOvB,QACLuB,EATCN,GAAG,aAAc,SAASE,GACzBpB,EAAEW,MAAMe,QAAQ,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AClBjD,EAAE,QAAQ+D,IAAI,cAAe,MAoBRrD,CAAK0C,KAEtB,SA5CY,GAwDfY,eAMchE,EAAE,cA2DRE,KAAK,SAAS+D,EAAGC,IApD5B,SAAcD,EAAGC,GAGhBlE,EAAEkE,GAAOC,OADK,4GAEdnE,EAAE,kBACAc,UACAI,GAAG,aAAc,WAIjBlB,EAAEW,MAAMG,QAAQ,UAIlB,IAAIsD,EAAY,IAAIjD,YAAY,iBAAkB,CACjDsB,OAAQ,SAASlC,GAChB,OAAOA,EAAQ8D,sBAIjBD,EAAUlD,GAAG,UAAW,SAASE,GAChCpB,EAAEoB,EAAEb,SACFc,KAAK,QAAS,WACdP,QAAQ,aACRA,QAAQ,QACRO,KAAK,QAAS,qBACdP,QAAQ,aAEVM,EAAEE,mBAGH8C,EAAUlD,GAAG,QAAS,SAASE,GAC9B,IACIkD,EAAc,UADA,OAAOC,KAAKC,UAAUC,WAAa,IAAW,SACrB,YAE3CzE,EAAEoB,EAAEb,SACFc,KAAK,QAASiD,GACdxD,QAAQ,aACRA,QAAQ,QACRO,KAAK,QAAS,qBACdP,QAAQ,eAIX4D,KAAKC,eAAeT,GASpBxD,CAAKuD,EAAGC","file":"quick-website.min.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//\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\nvar 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//\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//\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//\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\n//# sourceMappingURL=quick-website.js.map\n"]}