{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./vendor/assets/libs/smartwizard/smartwizard.js","webpack:///./node_modules/smartwizard/dist/js/jquery.smartWizard.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","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","_typeof","obj","iterator","constructor","$","window","document","undefined","defaults","selected","keyNavigation","autoAdjustHeight","cycleSteps","backButtonSupport","useURLhash","showStepURLhash","lang","next","previous","toolbarSettings","toolbarPosition","toolbarButtonPosition","showNextButton","showPreviousButton","toolbarExtraButtons","anchorSettings","anchorClickable","enableAllAnchors","markDoneStep","markAllPreviousStepsAsDone","removeDoneStepOnNavigateBack","enableAnchorOnDoneStep","contentURL","contentCache","ajaxSettings","disabledSteps","errorSteps","hiddenSteps","theme","transitionEffect","transitionSpeed","SmartWizard","element","options","this","extend","main","nav","children","steps","container","pages","current_index","init","_setElements","_setToolbar","_setEvents","idx","hash","location","length","elm","id","index","eq","parent","prevAll","addClass","_showStep","mi","each","toolbarTop","toolbarBottom","btnNext","text","attr","btnPrevious","btnGroup","append","btnGroupExtra","clone","prepend","before","after","on","e","preventDefault","hasClass","_showNext","_showPrevious","keyup","_keyNav","si","_loadStepContent","curTab","stepDirection","data","_triggerEvent","_transitPage","selPage","url","type","step_number","dataType","beforeSend","_loader","error","jqXHR","status","message","success","res","html","ajax","curPage","selTab","stepPosition","toLowerCase","finish","slideUp","transitionEasing","slideDown","fadeOut","fadeIn","show","hide","_setURLHash","_setAnchor","_setButtons","_fixHeight","removeClass","nextAll","which","animate","minHeight","outerHeight","params","Event","trigger","isDefaultPrevented","result","action","toggleClass","goToStep","stepNum","inArray","v","prev","reset","stop","remove","parents","stepState","stepArray","state","isArray","selSteps","grep","fn","smartWizard","instance","args","arguments","apply","Array","slice","jQuery"],"mappings":";4DACE,IAAIA,EAAmB,GAGvB,SAASC,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Ae,MAG1BoH,aAAoBvH,GAA4C,oBAAtBuH,EAASrH,GAC9CqH,EAASrH,GAASwH,MAAMH,EAAUI,MAAMxK,UAAUyK,MAAMlM,KAAK8L,EAAM,IAEnErH,WAVJ,GAltBX,CAguBG0H,OAAQjK,OAAQC","file":"js/vendor/libs/smartwizard/smartwizard-4d13de22ea7631c40590.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 = \"https://optimal.seneris.com/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 919);\n","import 'smartwizard/dist/js/jquery.smartWizard.js'\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*!\n * SmartWizard v4.4.1\n * The awesome jQuery step wizard plugin with Bootstrap support\n * http://www.techlaboratory.net/smartwizard\n *\n * Created by Dipu Raj\n * http://dipuraj.me\n *\n * Licensed under the terms of the MIT License\n * https://github.com/techlab/SmartWizard/blob/master/LICENSE\n */\n;\n\n(function ($, window, document, undefined) {\n \"use strict\"; // Default options\n\n var defaults = {\n selected: 0,\n // Initial selected step, 0 = first step\n keyNavigation: true,\n // Enable/Disable keyboard navigation(left and right keys are used if enabled)\n autoAdjustHeight: true,\n // Automatically adjust content height\n cycleSteps: false,\n // Allows to cycle the navigation of steps\n backButtonSupport: true,\n // Enable the back button support\n useURLhash: true,\n // Enable selection of the step based on url hash\n showStepURLhash: true,\n // Show url hash based on step\n lang: {\n // Language variables for button\n next: 'Next',\n previous: 'Previous'\n },\n toolbarSettings: {\n toolbarPosition: 'bottom',\n // none, top, bottom, both\n toolbarButtonPosition: 'end',\n // start, end\n showNextButton: true,\n // show/hide a Next button\n showPreviousButton: true,\n // show/hide a Previous button\n toolbarExtraButtons: [] // Extra buttons to show on toolbar, array of jQuery input/buttons elements\n\n },\n anchorSettings: {\n anchorClickable: true,\n // Enable/Disable anchor navigation\n enableAllAnchors: false,\n // Activates all anchors clickable all times\n markDoneStep: true,\n // Add done css\n markAllPreviousStepsAsDone: true,\n // When a step selected by url hash, all previous steps are marked done\n removeDoneStepOnNavigateBack: false,\n // While navigate back done step after active step will be cleared\n enableAnchorOnDoneStep: true // Enable/Disable the done steps navigation\n\n },\n contentURL: null,\n // content url, Enables Ajax content loading. Can also set as data data-content-url on anchor\n contentCache: true,\n // cache step contents, if false content is fetched always from ajax url\n ajaxSettings: {},\n // Ajax extra settings\n disabledSteps: [],\n // Array Steps disabled\n errorSteps: [],\n // Highlight step with errors\n hiddenSteps: [],\n // Hidden steps\n theme: 'default',\n // theme for the wizard, related css need to include for other than default theme\n transitionEffect: 'none',\n // Effect on navigation, none/slide/fade\n transitionSpeed: '400'\n }; // The plugin constructor\n\n function SmartWizard(element, options) {\n // Merge user settings with default, recursively\n this.options = $.extend(true, {}, defaults, options); // Main container element\n\n this.main = $(element); // Navigation bar element\n\n this.nav = this.main.children('ul'); // Step anchor elements\n\n this.steps = $(\"li > a\", this.nav); // Content container\n\n this.container = this.main.children('div'); // Content pages\n\n this.pages = this.container.children('div'); // Active step index\n\n this.current_index = null; // Backward compatibility\n\n this.options.toolbarSettings.toolbarButtonPosition = this.options.toolbarSettings.toolbarButtonPosition === 'right' ? 'end' : this.options.toolbarSettings.toolbarButtonPosition;\n this.options.toolbarSettings.toolbarButtonPosition = this.options.toolbarSettings.toolbarButtonPosition === 'left' ? 'start' : this.options.toolbarSettings.toolbarButtonPosition; // Default fix\n\n this.options.theme = this.options.theme === null || this.options.theme === '' ? 'default' : this.options.theme; // Call initial method\n\n this.init();\n }\n\n $.extend(SmartWizard.prototype, {\n init: function init() {\n // Set the elements\n this._setElements(); // Add toolbar\n\n\n this._setToolbar(); // Assign plugin events\n\n\n this._setEvents();\n\n var idx = this.options.selected; // Get selected step from the url\n\n if (this.options.useURLhash) {\n // Get step number from url hash if available\n var hash = window.location.hash;\n\n if (hash && hash.length > 0) {\n var elm = $(\"a[href*='\" + hash + \"']\", this.nav);\n\n if (elm.length > 0) {\n var id = this.steps.index(elm);\n idx = id >= 0 ? id : idx;\n }\n }\n }\n\n if (idx > 0 && this.options.anchorSettings.markDoneStep && this.options.anchorSettings.markAllPreviousStepsAsDone) {\n // Mark previous steps of the active step as done\n this.steps.eq(idx).parent('li').prevAll().addClass(\"done\");\n } // Show the initial step\n\n\n this._showStep(idx);\n },\n // PRIVATE FUNCTIONS\n _setElements: function _setElements() {\n // Set the main element\n this.main.addClass('sw-main sw-theme-' + this.options.theme); // Set anchor elements\n\n this.nav.addClass('nav nav-tabs step-anchor').children('li').addClass('nav-item').children('a').addClass('nav-link'); // nav-justified nav-pills\n // Make the anchor clickable\n\n if (this.options.anchorSettings.enableAllAnchors !== false && this.options.anchorSettings.anchorClickable !== false) {\n this.steps.parent('li').addClass('clickable');\n } // Set content container\n\n\n this.container.addClass('sw-container tab-content'); // Set content pages\n\n this.pages.addClass('tab-pane step-content'); // Disabled steps\n\n var mi = this;\n\n if (this.options.disabledSteps && this.options.disabledSteps.length > 0) {\n $.each(this.options.disabledSteps, function (i, n) {\n mi.steps.eq(n).parent('li').addClass('disabled');\n });\n } // Error steps\n\n\n if (this.options.errorSteps && this.options.errorSteps.length > 0) {\n $.each(this.options.errorSteps, function (i, n) {\n mi.steps.eq(n).parent('li').addClass('danger');\n });\n } // Hidden steps\n\n\n if (this.options.hiddenSteps && this.options.hiddenSteps.length > 0) {\n $.each(this.options.hiddenSteps, function (i, n) {\n mi.steps.eq(n).parent('li').addClass('hidden');\n });\n }\n\n return true;\n },\n _setToolbar: function _setToolbar() {\n // Skip right away if the toolbar is not enabled\n if (this.options.toolbarSettings.toolbarPosition === 'none') {\n return true;\n } // Create the toolbar buttons\n\n\n var btnNext = this.options.toolbarSettings.showNextButton !== false ? $('').text(this.options.lang.next).addClass('btn btn-secondary sw-btn-next').attr('type', 'button') : null;\n var btnPrevious = this.options.toolbarSettings.showPreviousButton !== false ? $('').text(this.options.lang.previous).addClass('btn btn-secondary sw-btn-prev').attr('type', 'button') : null;\n var btnGroup = $('
').addClass('btn-group mr-2 sw-btn-group').attr('role', 'group').append(btnPrevious, btnNext); // Add extra toolbar buttons\n\n var btnGroupExtra = null;\n\n if (this.options.toolbarSettings.toolbarExtraButtons && this.options.toolbarSettings.toolbarExtraButtons.length > 0) {\n btnGroupExtra = $('
').addClass('btn-group mr-2 sw-btn-group-extra').attr('role', 'group');\n $.each(this.options.toolbarSettings.toolbarExtraButtons, function (i, n) {\n btnGroupExtra.append(n.clone(true));\n });\n }\n\n var toolbarTop, toolbarBottom; // Append toolbar based on the position\n\n switch (this.options.toolbarSettings.toolbarPosition) {\n case 'top':\n toolbarTop = $('
').addClass('btn-toolbar sw-toolbar sw-toolbar-top justify-content-' + this.options.toolbarSettings.toolbarButtonPosition);\n toolbarTop.append(btnGroup);\n\n if (this.options.toolbarSettings.toolbarButtonPosition === 'start') {\n toolbarTop.prepend(btnGroupExtra);\n } else {\n toolbarTop.append(btnGroupExtra);\n }\n\n this.container.before(toolbarTop);\n break;\n\n case 'bottom':\n toolbarBottom = $('
').addClass('btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-' + this.options.toolbarSettings.toolbarButtonPosition);\n toolbarBottom.append(btnGroup);\n\n if (this.options.toolbarSettings.toolbarButtonPosition === 'start') {\n toolbarBottom.prepend(btnGroupExtra);\n } else {\n toolbarBottom.append(btnGroupExtra);\n }\n\n this.container.after(toolbarBottom);\n break;\n\n case 'both':\n toolbarTop = $('
').addClass('btn-toolbar sw-toolbar sw-toolbar-top justify-content-' + this.options.toolbarSettings.toolbarButtonPosition);\n toolbarTop.append(btnGroup);\n\n if (this.options.toolbarSettings.toolbarButtonPosition === 'start') {\n toolbarTop.prepend(btnGroupExtra);\n } else {\n toolbarTop.append(btnGroupExtra);\n }\n\n this.container.before(toolbarTop);\n toolbarBottom = $('
').addClass('btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-' + this.options.toolbarSettings.toolbarButtonPosition);\n toolbarBottom.append(btnGroup.clone(true));\n\n if (btnGroupExtra !== null) {\n if (this.options.toolbarSettings.toolbarButtonPosition === 'start') {\n toolbarBottom.prepend(btnGroupExtra.clone(true));\n } else {\n toolbarBottom.append(btnGroupExtra.clone(true));\n }\n }\n\n this.container.after(toolbarBottom);\n break;\n\n default:\n toolbarBottom = $('
').addClass('btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-' + this.options.toolbarSettings.toolbarButtonPosition);\n toolbarBottom.append(btnGroup);\n\n if (this.options.toolbarSettings.toolbarButtonPosition === 'start') {\n toolbarBottom.append(btnGroupExtra);\n } else {\n toolbarBottom.append(btnGroupExtra);\n }\n\n this.container.after(toolbarBottom);\n break;\n }\n\n return true;\n },\n _setEvents: function _setEvents() {\n // Anchor click event\n var mi = this;\n $(this.steps).on(\"click\", function (e) {\n e.preventDefault();\n\n if (mi.options.anchorSettings.anchorClickable === false) {\n return true;\n }\n\n var idx = mi.steps.index(this);\n\n if (mi.options.anchorSettings.enableAnchorOnDoneStep === false && mi.steps.eq(idx).parent('li').hasClass('done')) {\n return true;\n }\n\n if (idx !== mi.current_index) {\n if (mi.options.anchorSettings.enableAllAnchors !== false && mi.options.anchorSettings.anchorClickable !== false) {\n mi._showStep(idx);\n } else {\n if (mi.steps.eq(idx).parent('li').hasClass('done')) {\n mi._showStep(idx);\n }\n }\n }\n }); // Next button event\n\n $('.sw-btn-next', this.main).on(\"click\", function (e) {\n e.preventDefault();\n\n mi._showNext();\n }); // Previous button event\n\n $('.sw-btn-prev', this.main).on(\"click\", function (e) {\n e.preventDefault();\n\n mi._showPrevious();\n }); // Keyboard navigation event\n\n if (this.options.keyNavigation) {\n $(document).keyup(function (e) {\n mi._keyNav(e);\n });\n } // Back/forward browser button event\n\n\n if (this.options.backButtonSupport) {\n $(window).on('hashchange', function (e) {\n if (!mi.options.useURLhash) {\n return true;\n }\n\n if (window.location.hash) {\n var elm = $(\"a[href*='\" + window.location.hash + \"']\", mi.nav);\n\n if (elm && elm.length > 0) {\n e.preventDefault();\n\n mi._showStep(mi.steps.index(elm));\n }\n }\n });\n }\n\n return true;\n },\n _showNext: function _showNext() {\n var si = this.current_index + 1; // Find the next not disabled step\n\n for (var i = si; i < this.steps.length; i++) {\n if (!this.steps.eq(i).parent('li').hasClass('disabled') && !this.steps.eq(i).parent('li').hasClass('hidden')) {\n si = i;\n break;\n }\n }\n\n if (this.steps.length <= si) {\n if (!this.options.cycleSteps) {\n return false;\n }\n\n si = 0;\n }\n\n this._showStep(si);\n\n return true;\n },\n _showPrevious: function _showPrevious() {\n var si = this.current_index - 1; // Find the previous not disabled step\n\n for (var i = si; i >= 0; i--) {\n if (!this.steps.eq(i).parent('li').hasClass('disabled') && !this.steps.eq(i).parent('li').hasClass('hidden')) {\n si = i;\n break;\n }\n }\n\n if (0 > si) {\n if (!this.options.cycleSteps) {\n return false;\n }\n\n si = this.steps.length - 1;\n }\n\n this._showStep(si);\n\n return true;\n },\n _showStep: function _showStep(idx) {\n // If step not found, skip\n if (!this.steps.eq(idx)) {\n return false;\n } // If current step is requested again, skip\n\n\n if (idx == this.current_index) {\n return false;\n } // If it is a disabled step, skip\n\n\n if (this.steps.eq(idx).parent('li').hasClass('disabled') || this.steps.eq(idx).parent('li').hasClass('hidden')) {\n return false;\n } // Load step content\n\n\n this._loadStepContent(idx);\n\n return true;\n },\n _loadStepContent: function _loadStepContent(idx) {\n var mi = this; // Get current step elements\n\n var curTab = this.steps.eq(this.current_index); // Get the direction of step navigation\n\n var stepDirection = '';\n var elm = this.steps.eq(idx);\n var contentURL = elm.data('content-url') && elm.data('content-url').length > 0 ? elm.data('content-url') : this.options.contentURL;\n\n if (this.current_index !== null && this.current_index !== idx) {\n stepDirection = this.current_index < idx ? \"forward\" : \"backward\";\n } // Trigger \"leaveStep\" event\n\n\n if (this.current_index !== null && this._triggerEvent(\"leaveStep\", [curTab, this.current_index, stepDirection]) === false) {\n return false;\n }\n\n if (contentURL && contentURL.length > 0 && (!elm.data('has-content') || !this.options.contentCache)) {\n // Get ajax content and then show step\n var selPage = elm.length > 0 ? $(elm.attr(\"href\"), this.main) : null;\n var ajaxSettings = $.extend(true, {}, {\n url: contentURL,\n type: \"POST\",\n data: {\n step_number: idx\n },\n dataType: \"text\",\n beforeSend: function beforeSend() {\n mi._loader('show');\n },\n error: function error(jqXHR, status, message) {\n mi._loader('hide');\n\n $.error(message);\n },\n success: function success(res) {\n if (res && res.length > 0) {\n elm.data('has-content', true);\n selPage.html(res);\n }\n\n mi._loader('hide');\n\n mi._transitPage(idx);\n }\n }, this.options.ajaxSettings);\n $.ajax(ajaxSettings);\n } else {\n // Show step\n this._transitPage(idx);\n }\n\n return true;\n },\n _transitPage: function _transitPage(idx) {\n var mi = this; // Get current step elements\n\n var curTab = this.steps.eq(this.current_index);\n var curPage = curTab.length > 0 ? $(curTab.attr(\"href\"), this.main) : null; // Get step to show elements\n\n var selTab = this.steps.eq(idx);\n var selPage = selTab.length > 0 ? $(selTab.attr(\"href\"), this.main) : null; // Get the direction of step navigation\n\n var stepDirection = '';\n\n if (this.current_index !== null && this.current_index !== idx) {\n stepDirection = this.current_index < idx ? \"forward\" : \"backward\";\n }\n\n var stepPosition = 'middle';\n\n if (idx === 0) {\n stepPosition = 'first';\n } else if (idx === this.steps.length - 1) {\n stepPosition = 'final';\n }\n\n this.options.transitionEffect = this.options.transitionEffect.toLowerCase();\n this.pages.finish();\n\n if (this.options.transitionEffect === 'slide') {\n // normal slide\n if (curPage && curPage.length > 0) {\n curPage.slideUp('fast', this.options.transitionEasing, function () {\n selPage.slideDown(mi.options.transitionSpeed, mi.options.transitionEasing);\n });\n } else {\n selPage.slideDown(this.options.transitionSpeed, this.options.transitionEasing);\n }\n } else if (this.options.transitionEffect === 'fade') {\n // normal fade\n if (curPage && curPage.length > 0) {\n curPage.fadeOut('fast', this.options.transitionEasing, function () {\n selPage.fadeIn('fast', mi.options.transitionEasing, function () {\n $(this).show();\n });\n });\n } else {\n selPage.fadeIn(this.options.transitionSpeed, this.options.transitionEasing, function () {\n $(this).show();\n });\n }\n } else {\n if (curPage && curPage.length > 0) {\n curPage.hide();\n }\n\n selPage.show();\n } // Change the url hash to new step\n\n\n this._setURLHash(selTab.attr(\"href\")); // Update controls\n\n\n this._setAnchor(idx); // Set the buttons based on the step\n\n\n this._setButtons(idx); // Fix height with content\n\n\n this._fixHeight(idx); // Update the current index\n\n\n this.current_index = idx; // Trigger \"showStep\" event\n\n this._triggerEvent(\"showStep\", [selTab, this.current_index, stepDirection, stepPosition]);\n\n return true;\n },\n _setAnchor: function _setAnchor(idx) {\n // Current step anchor > Remove other classes and add done class\n this.steps.eq(this.current_index).parent('li').removeClass(\"active\");\n\n if (this.options.anchorSettings.markDoneStep !== false && this.current_index !== null) {\n this.steps.eq(this.current_index).parent('li').addClass(\"done\");\n\n if (this.options.anchorSettings.removeDoneStepOnNavigateBack !== false) {\n this.steps.eq(idx).parent('li').nextAll().removeClass(\"done\");\n }\n } // Next step anchor > Remove other classes and add active class\n\n\n this.steps.eq(idx).parent('li').removeClass(\"done\").addClass(\"active\");\n return true;\n },\n _setButtons: function _setButtons(idx) {\n // Previous/Next Button enable/disable based on step\n if (!this.options.cycleSteps) {\n if (0 >= idx) {\n $('.sw-btn-prev', this.main).addClass(\"disabled\");\n } else {\n $('.sw-btn-prev', this.main).removeClass(\"disabled\");\n }\n\n if (this.steps.length - 1 <= idx) {\n $('.sw-btn-next', this.main).addClass(\"disabled\");\n } else {\n $('.sw-btn-next', this.main).removeClass(\"disabled\");\n }\n }\n\n return true;\n },\n // HELPER FUNCTIONS\n _keyNav: function _keyNav(e) {\n var mi = this; // Keyboard navigation\n\n switch (e.which) {\n case 37:\n // left\n mi._showPrevious();\n\n e.preventDefault();\n break;\n\n case 39:\n // right\n mi._showNext();\n\n e.preventDefault();\n break;\n\n default:\n return;\n // exit this handler for other keys\n }\n },\n _fixHeight: function _fixHeight(idx) {\n // Auto adjust height of the container\n if (this.options.autoAdjustHeight) {\n var selPage = this.steps.eq(idx).length > 0 ? $(this.steps.eq(idx).attr(\"href\"), this.main) : null;\n this.container.finish().animate({\n minHeight: selPage.outerHeight()\n }, this.options.transitionSpeed, function () {});\n }\n\n return true;\n },\n _triggerEvent: function _triggerEvent(name, params) {\n // Trigger an event\n var e = $.Event(name);\n this.main.trigger(e, params);\n\n if (e.isDefaultPrevented()) {\n return false;\n }\n\n return e.result;\n },\n _setURLHash: function _setURLHash(hash) {\n if (this.options.showStepURLhash && window.location.hash !== hash) {\n window.location.hash = hash;\n }\n },\n _loader: function _loader(action) {\n switch (action) {\n case 'show':\n this.main.addClass('sw-loading');\n break;\n\n case 'hide':\n this.main.removeClass('sw-loading');\n break;\n\n default:\n this.main.toggleClass('sw-loading');\n }\n },\n // PUBLIC FUNCTIONS\n goToStep: function goToStep(stepNum) {\n this._transitPage(stepNum);\n },\n hiddenSteps: function hiddenSteps(r) {\n this.options.hiddenSteps = r; // Hidden steps\n\n if (this.options.hiddenSteps && this.options.hiddenSteps.length > 0) {\n var mi = this;\n $.each(mi.steps, function (i, n) {\n if ($.inArray(i, mi.options.hiddenSteps) > -1) {\n $(n).parent('li').addClass('hidden');\n } else {\n $(n).parent('li').removeClass('hidden');\n }\n });\n }\n },\n theme: function theme(v) {\n if (this.options.theme === v) {\n return false;\n }\n\n this.main.removeClass('sw-theme-' + this.options.theme);\n this.options.theme = v;\n this.main.addClass('sw-theme-' + this.options.theme); // Trigger \"themeChanged\" event\n\n this._triggerEvent(\"themeChanged\", [this.options.theme]);\n },\n next: function next() {\n this._showNext();\n },\n prev: function prev() {\n this._showPrevious();\n },\n reset: function reset() {\n // Trigger \"beginReset\" event\n if (this._triggerEvent(\"beginReset\") === false) {\n return false;\n } // Reset all elements and classes\n\n\n this.container.stop(true);\n this.pages.stop(true);\n this.pages.hide();\n this.current_index = null;\n\n this._setURLHash(this.steps.eq(this.options.selected).attr(\"href\"));\n\n $(\".sw-toolbar\", this.main).remove();\n this.steps.removeClass();\n this.steps.parents('li').removeClass();\n this.steps.data('has-content', false);\n this.init(); // Trigger \"endReset\" event\n\n this._triggerEvent(\"endReset\");\n },\n stepState: function stepState(stepArray, state) {\n var mi = this;\n stepArray = $.isArray(stepArray) ? stepArray : [stepArray];\n var selSteps = $.grep(this.steps, function (n, i) {\n return $.inArray(i, stepArray) !== -1; // && i !== mi.current_index\n });\n\n if (selSteps && selSteps.length > 0) {\n switch (state) {\n case 'disable':\n $(selSteps).parents('li').addClass('disabled');\n break;\n\n case 'enable':\n $(selSteps).parents('li').removeClass('disabled');\n break;\n\n case 'hide':\n $(selSteps).parents('li').addClass('hidden');\n break;\n\n case 'show':\n $(selSteps).parents('li').removeClass('hidden');\n break;\n\n case 'error-on':\n $(selSteps).parents('li').addClass('danger');\n break;\n\n case 'error-off':\n $(selSteps).parents('li').removeClass('danger');\n break;\n }\n }\n }\n }); // Wrapper for the plugin\n\n $.fn.smartWizard = function (options) {\n var args = arguments;\n var instance;\n\n if (options === undefined || _typeof(options) === 'object') {\n return this.each(function () {\n if (!$.data(this, \"smartWizard\")) {\n $.data(this, \"smartWizard\", new SmartWizard(this, options));\n }\n });\n } else if (typeof options === 'string' && options[0] !== '_' && options !== 'init') {\n instance = $.data(this[0], 'smartWizard');\n\n if (options === 'destroy') {\n $.data(this, 'smartWizard', null);\n }\n\n if (instance instanceof SmartWizard && typeof instance[options] === 'function') {\n return instance[options].apply(instance, Array.prototype.slice.call(args, 1));\n } else {\n return this;\n }\n }\n };\n})(jQuery, window, document);"],"sourceRoot":""}