{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/jquery.tabify.js"],"names":["installedModules","__webpack_require__","moduleId","module","i","l","exports","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","$","pluginName","el","config","this","$el","extend","fn","defaults","$caller","$headerItems","getCheckVisibility","find","filter","$contentItems","next","data","init","jQuery","window","document","addClass","getTheme","dir","wireEvents","curHash","location","hash","currIndex","getCurrentIndex","eq","trigger","toLowerCase","includes","on","e","isPageLoad","$this","currentTarget","index","siblings","addBack","useLocalStorage","localStorage","setItem","onChange","activeTab","theme","checkVisibility","hashIndex","item","getItem","length","removeClass","useJSFramework","jsFramework","jsFrameworkContainerClass","options","each"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,IAIIC,EAJJ,OAAGH,EAAiBE,KAIhBC,EAASH,EAAiBE,GAAY,CACzCE,EAAGF,EACHG,EAAG,GACHC,QAAS,EACV,EAGAC,EAAQL,GAAUM,KAAKL,EAAOG,QAASH,EAAQA,EAAOG,QAASL,CAAmB,EAGlFE,EAAOE,EAAI,GAGJF,IAhB4BG,OAiBpC,CAIAL,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASL,EAASM,EAAMC,GAC3CZ,EAAoBa,EAAER,EAASM,CAAI,GACtCG,OAAOC,eAAeV,EAASM,EAAM,CAAEK,WAAY,GAAMC,IAAKL,CAAO,CAAC,CAExE,EAGAZ,EAAoBkB,EAAI,SAASb,GACX,aAAlB,OAAOc,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeV,EAASc,OAAOC,YAAa,CAAEC,MAAO,QAAS,CAAC,EAEvEP,OAAOC,eAAeV,EAAS,aAAc,CAAEgB,MAAO,EAAK,CAAC,CAC7D,EAOArB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA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AYO,SAAW,CACxBkC,gBAAiB,GACjBG,SAAU,KACVE,MAAO,UACPxB,IAAK,MACLyB,gBAAiB,GACjBM,eAAgB,GAChBC,YAAa,QACbC,0BAA2B,sBARH,C","file":"jquery.tabify.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","import '../scss/jquery.tabify.scss';\r\n\r\n/*!\r\n* Tabify - A light-weight, mobile-ready and customizable tab plugin for jQuery\r\n*\r\n* Copyright 2018, Faratech\r\n*\r\n* @author Faratech\r\n* @license Licensed under MIT (http://192.168.1.4/FaraTools/plugins/LICENSE)\r\n*\r\n*/\r\n;\r\n(function ($, window, document, undefined) {\r\n const pluginName = 'tabify',\r\n p = {};\r\n\r\n p[pluginName] = class {\r\n constructor(el, config) {\r\n this.el = el;\r\n this.$el = $(el);\r\n\r\n this.config = $.extend(true, {}, $.fn[pluginName].defaults, config);\r\n\r\n this.$caller = $(el);\r\n this.$headerItems = this.getCheckVisibility()\r\n ? this.$caller.find('> li').filter(':visible')\r\n : this.$caller.find('> li');\r\n this.$contentItems = this.getCheckVisibility()\r\n ? this.$caller.next().find('> li').filter(':visible')\r\n : this.$caller.next().find('> li');\r\n this.key = this.$caller.data('key');\r\n\r\n this.init();\r\n }\r\n\r\n init() {\r\n this.$caller.addClass(`tabify tabify__theme-${this.getTheme()} tabify__dir-${this.config.dir}`);\r\n this.wireEvents();\r\n\r\n var curHash = location.hash;\r\n let currIndex = this.getCurrentIndex();\r\n \r\n this.$headerItems.eq(currIndex).trigger('click', true);\r\n \r\n if(curHash.toLowerCase().includes(this.$headerItems.eq(currIndex).data('hash'))){\r\n location.hash = curHash;\r\n }\r\n }\r\n\r\n wireEvents() {\r\n this.$headerItems.on('click', (e, isPageLoad) => {\r\n let $this = $(e.currentTarget),\r\n index = $this.siblings(\":visible\").addBack().index($this);\r\n\r\n if (typeof this.key !== 'undefined' && this.config.useLocalStorage) {\r\n localStorage.setItem(`__tabify_${this.key}`, index);\r\n }\r\n\r\n this.$caller.trigger('onChange', index);\r\n if (typeof this.config.onChange === 'function') this.config.onChange.call(e, index);\r\n\r\n this.activeTab(index, isPageLoad);\r\n });\r\n };\r\n\r\n getTheme() {\r\n let data = this.$caller.data('theme');\r\n\r\n return typeof data === 'undefined' ? this.config.theme : data;\r\n }\r\n\r\n getCheckVisibility() {\r\n let data = this.$caller.data('check-visibility');\r\n\r\n return typeof data === 'undefined' ? this.config.checkVisibility : data;\r\n }\r\n\r\n getCurrentIndex() {\r\n let index = 0;\r\n\r\n let hashIndex = this.$headerItems.index(this.$headerItems.filter(function () {\r\n return location.hash.toLowerCase().includes($(this).data('hash'))\r\n }));\r\n\r\n if (hashIndex >= 0)\r\n index = hashIndex;\r\n else if (typeof this.config !== 'undefined') {\r\n if (typeof this.key !== 'undefined' && this.config.useLocalStorage) {\r\n let item = localStorage.getItem(`__tabify_${this.key}`);\r\n\r\n if (item !== null) index = item;\r\n\r\n if (index > (this.$headerItems.length - 1))\r\n index = 0;\r\n }\r\n }\r\n\r\n return index;\r\n }\r\n\r\n activeTab(index, isPageLoad) {\r\n this.$headerItems.removeClass('tabify__active').eq(index).addClass('tabify__active');\r\n this.$contentItems.removeClass('tabify__active').eq(index).addClass('tabify__active');\r\n\r\n if (this.config.useJSFramework) {\r\n let currentTab = this.$headerItems.eq(index);\r\n if (typeof currentTab.data(this.config.jsFramework) === 'undefined' && !isPageLoad)\r\n $(this.config.jsFrameworkContainerClass).removeClass('visible');\r\n else\r\n $(this.config.jsFrameworkContainerClass).addClass('visible');\r\n }\r\n }\r\n }\r\n\r\n $.fn[pluginName] = function (options) {\r\n return this.each(function () {\r\n if (!$.data(this, 'plugin_' + pluginName)) {\r\n $.data(this, 'plugin_' + pluginName, new p[pluginName](this, options));\r\n }\r\n });\r\n };\r\n\r\n $.fn[pluginName].defaults = {\r\n useLocalStorage: true,\r\n onChange: null,\r\n theme: 'default',\r\n dir: 'ltr',\r\n checkVisibility: true,\r\n useJSFramework: true,\r\n jsFramework: 'react',\r\n jsFrameworkContainerClass: '.js__react-container'\r\n };\r\n})(jQuery, window, document);"],"sourceRoot":""}