{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///../demo7/src/js/pages/crud/forms/widgets/nouislider.js"],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;AClFA;AACA;;AAEA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oCAAoC,cAAc;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA;AACA,wD;;AAEA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;;AAEA;AACA,0BAA0B,SAAS;;AAEnC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,E;;AAET;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS,E;AACT,K;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;;AAET;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,oCAAoC,cAAc;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;;AAGT;AACA;AACA;AACA,wD;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,oB;AACA,oB;AACA,oB;AACA,oB;AACA;AACA;AACA,yB;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC","file":"js/pages/crud/forms/widgets/nouislider.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 = \"../demo7/src/js/pages/crud/forms/widgets/nouislider.js\");\n","// Class definition\r\nvar KTnoUiSliderDemos = function() {\r\n\r\n // Private functions\r\n\r\n \r\n var demo1 = function() {\r\n // init slider\r\n var slider = document.getElementById('kt_nouislider_1');\r\n\r\n noUiSlider.create(slider, {\r\n start: [ 0 ],\r\n step: 2,\r\n range: {\r\n 'min': [ 0 ],\r\n 'max': [ 10 ]\r\n },\r\n format: wNumb({\r\n decimals: 0 \r\n })\r\n });\r\n\r\n // init slider input\r\n var sliderInput = document.getElementById('kt_nouislider_1_input');\r\n\r\n slider.noUiSlider.on('update', function( values, handle ) {\r\n sliderInput.value = values[handle];\r\n });\r\n\r\n sliderInput.addEventListener('change', function(){\r\n slider.noUiSlider.set(this.value);\r\n });\r\n }\r\n\r\n var demo2 = function() {\r\n // init slider\r\n var slider = document.getElementById('kt_nouislider_2');\r\n\r\n noUiSlider.create(slider, {\r\n start: [ 20000 ],\r\n connect: [true, false],\r\n step: 1000,\r\n range: {\r\n 'min': [ 20000 ],\r\n 'max': [ 80000 ]\r\n },\r\n format: wNumb({\r\n decimals: 3,\r\n thousand: '.',\r\n postfix: ' (US $)',\r\n })\r\n });\r\n\r\n // init slider input\r\n var sliderInput = document.getElementById('kt_nouislider_2_input');\r\n\r\n slider.noUiSlider.on('update', function( values, handle ) {\r\n sliderInput.value = values[handle];\r\n });\r\n\r\n sliderInput.addEventListener('change', function(){\r\n slider.noUiSlider.set(this.value);\r\n });\r\n }\r\n\r\n var demo3 = function() {\r\n // init slider\r\n var slider = document.getElementById('kt_nouislider_3');\r\n\r\n noUiSlider.create(slider, {\r\n start: [20, 80],\r\n connect: true,\r\n direction: 'rtl',\r\n tooltips: [true, wNumb({ decimals: 1 })],\r\n range: {\r\n 'min': [0],\r\n '10%': [10, 10],\r\n '50%': [80, 50],\r\n '80%': 150,\r\n 'max': 200\r\n }\r\n });\r\n \r\n\r\n // init slider input\r\n var sliderInput0 = document.getElementById('kt_nouislider_3_input');\r\n var sliderInput1 = document.getElementById('kt_nouislider_3.1_input');\r\n var sliderInputs = [sliderInput1, sliderInput0]; \r\n\r\n slider.noUiSlider.on('update', function( values, handle ) {\r\n sliderInputs[handle].value = values[handle];\r\n });\r\n }\r\n\r\n var demo4 = function() {\r\n\r\n var slider = document.getElementById('kt_nouislider_input_select');\r\n\r\n // Append the option elements\r\n for ( var i = -20; i <= 40; i++ ){\r\n\r\n var option = document.createElement(\"option\");\r\n option.text = i;\r\n option.value = i;\r\n\r\n slider.appendChild(option);\r\n }\r\n\r\n // init slider\r\n var html5Slider = document.getElementById('kt_nouislider_4');\r\n\r\n noUiSlider.create(html5Slider, {\r\n start: [ 10, 30 ],\r\n connect: true,\r\n range: {\r\n 'min': -20,\r\n 'max': 40\r\n }\r\n });\r\n\r\n // init slider input\r\n var inputNumber = document.getElementById('kt_nouislider_input_number');\r\n\r\n html5Slider.noUiSlider.on('update', function( values, handle ) {\r\n\r\n var value = values[handle];\r\n\r\n if ( handle ) {\r\n inputNumber.value = value;\r\n } else {\r\n slider.value = Math.round(value);\r\n }\r\n });\r\n\r\n slider.addEventListener('change', function(){\r\n html5Slider.noUiSlider.set([this.value, null]);\r\n });\r\n\r\n inputNumber.addEventListener('change', function(){\r\n html5Slider.noUiSlider.set([null, this.value]);\r\n });\r\n }\r\n \r\n var demo5 = function() {\r\n // init slider\r\n var slider = document.getElementById('kt_nouislider_5');\r\n\r\n noUiSlider.create(slider, {\r\n start: 20,\r\n range: {\r\n min: 0,\r\n max: 100\r\n },\r\n pips: {\r\n mode: 'values',\r\n values: [20, 80],\r\n density: 4\r\n }\r\n });\r\n\r\n var sliderInput = document.getElementById('kt_nouislider_5_input');\r\n\r\n slider.noUiSlider.on('update', function( values, handle ) {\r\n sliderInput.value = values[handle];\r\n });\r\n\r\n sliderInput.addEventListener('change', function(){\r\n slider.noUiSlider.set(this.value);\r\n });\r\n\r\n slider.noUiSlider.on('change', function ( values, handle ) {\r\n if ( values[handle] < 20 ) {\r\n slider.noUiSlider.set(20);\r\n } else if ( values[handle] > 80 ) {\r\n slider.noUiSlider.set(80);\r\n }\r\n });\r\n }\r\n\r\n var demo6 = function() {\r\n // init slider \r\n\r\n var verticalSlider = document.getElementById('kt_nouislider_6');\r\n\r\n noUiSlider.create(verticalSlider, {\r\n start: 40,\r\n orientation: 'vertical',\r\n range: {\r\n 'min': 0,\r\n 'max': 100\r\n }\r\n }); \r\n\r\n // init slider input\r\n var sliderInput = document.getElementById('kt_nouislider_6_input');\r\n\r\n verticalSlider.noUiSlider.on('update', function( values, handle ) {\r\n sliderInput.value = values[handle];\r\n });\r\n\r\n sliderInput.addEventListener('change', function(){\r\n verticalSlider.noUiSlider.set(this.value);\r\n }); \r\n } \r\n\r\n // Modal demo\r\n\r\n var modaldemo1 = function() {\r\n var slider = document.getElementById('kt_nouislider_modal1');\r\n\r\n noUiSlider.create(slider, {\r\n start: [ 0 ],\r\n step: 2,\r\n range: {\r\n 'min': [ 0 ],\r\n 'max': [ 10 ]\r\n },\r\n format: wNumb({\r\n decimals: 0 \r\n })\r\n });\r\n\r\n // init slider input\r\n var sliderInput = document.getElementById('kt_nouislider_modal1_input');\r\n\r\n slider.noUiSlider.on('update', function( values, handle ) {\r\n sliderInput.value = values[handle];\r\n });\r\n\r\n sliderInput.addEventListener('change', function(){\r\n slider.noUiSlider.set(this.value);\r\n });\r\n }\r\n\r\n var modaldemo2 = function() {\r\n var slider = document.getElementById('kt_nouislider_modal2');\r\n\r\n noUiSlider.create(slider, {\r\n start: [ 20000 ],\r\n connect: [true, false],\r\n step: 1000,\r\n range: {\r\n 'min': [ 20000 ],\r\n 'max': [ 80000 ]\r\n },\r\n format: wNumb({\r\n decimals: 3,\r\n thousand: '.',\r\n postfix: ' (US $)',\r\n })\r\n });\r\n\r\n // init slider input\r\n var sliderInput = document.getElementById('kt_nouislider_modal2_input');\r\n\r\n slider.noUiSlider.on('update', function( values, handle ) {\r\n sliderInput.value = values[handle];\r\n });\r\n\r\n sliderInput.addEventListener('change', function(){\r\n slider.noUiSlider.set(this.value);\r\n });\r\n }\r\n\r\n var modaldemo3 = function() {\r\n var slider = document.getElementById('kt_nouislider_modal3');\r\n\r\n noUiSlider.create(slider, {\r\n start: [20, 80],\r\n connect: true,\r\n direction: 'rtl',\r\n tooltips: [true, wNumb({ decimals: 1 })],\r\n range: {\r\n 'min': [0],\r\n '10%': [10, 10],\r\n '50%': [80, 50],\r\n '80%': 150,\r\n 'max': 200\r\n }\r\n });\r\n \r\n\r\n // init slider input\r\n var sliderInput0 = document.getElementById('kt_nouislider_modal1.1_input');\r\n var sliderInput1 = document.getElementById('kt_nouislider_modal1.2_input');\r\n var sliderInputs = [sliderInput1, sliderInput0]; \r\n\r\n slider.noUiSlider.on('update', function( values, handle ) {\r\n sliderInputs[handle].value = values[handle];\r\n });\r\n }\r\n return {\r\n // public functions\r\n init: function() {\r\n demo1();\r\n demo2();\r\n demo3(); \r\n demo4(); \r\n demo5(); \r\n demo6(); \r\n modaldemo1();\r\n modaldemo2();\r\n modaldemo3(); \r\n }\r\n };\r\n}();\r\n\r\njQuery(document).ready(function() {\r\n KTnoUiSliderDemos.init();\r\n});\r\n\r\n\r\n"],"sourceRoot":""}