slim-select 1.26.2 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./src/docs/pages/selects.vue?5328","webpack:///./src/docs/pages/selects.vue?af3e","webpack:///./src/docs/pages/selects.vue?7a19","webpack:///./src/docs/pages/selects.vue?64a1","webpack:///./src/docs/pages/selects.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","_l","value","key","abv","domProps","selected","_s","state","food","label","option","_m","staticRenderFns","extend","data","states","foods","options","mounted","select","multiGroup","set","component"],"mappings":"2GAAA,W,oECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,oBAAoB,CAACF,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,KAAK,CAACG,YAAY,UAAU,CAACP,EAAIQ,GAAG,YAAYJ,EAAG,IAAI,CAACJ,EAAIQ,GAAG,uHAAuHJ,EAAG,MAAM,CAACG,YAAY,gBAAgB,CAACH,EAAG,MAAM,CAACA,EAAG,KAAK,CAACJ,EAAIQ,GAAG,aAAaJ,EAAG,SAAS,CAACE,MAAM,CAAC,GAAK,WAAWN,EAAIS,GAAIT,EAAU,QAAE,SAASU,GAAO,OAAON,EAAG,SAAS,CAACO,IAAID,EAAME,IAAIC,SAAS,CAAC,MAAQH,EAAME,IAAI,SAAWF,EAAMI,WAAW,CAACd,EAAIQ,GAAGR,EAAIe,GAAGL,EAAMM,aAAY,KAAKZ,EAAG,MAAM,CAACA,EAAG,KAAK,CAACJ,EAAIQ,GAAG,eAAeJ,EAAG,SAAS,CAACE,MAAM,CAAC,GAAK,iBAAiBN,EAAIS,GAAIT,EAAS,OAAE,SAASiB,GAAM,OAAOb,EAAG,WAAW,CAACO,IAAI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AMI,MAAO,YACnB,CAACJ,IAAK,KAAMI,MAAO,cACnB,CAACJ,IAAK,KAAMI,MAAO,iBACnB,CAACJ,IAAK,KAAMI,MAAO,aACnB,CAACJ,IAAK,KAAMI,MAAO,YAErBS,MAAO,CACL,CAAEP,MAAO,QAASQ,QAAS,CAAC,OAAQ,SAAU,SAAU,cACxD,CAAER,MAAO,OAAQQ,QAAS,CAAC,OAAQ,MAAO,OAAQ,UAAW,UAAW,WACxE,CAAER,MAAO,SAAUQ,QAAS,CAAC,QAAS,SAAU,QAAS,SAAU,aAAc,YAAa,cAC9F,CAAER,MAAO,aAAcQ,QAAS,CAAC,SAAU,SAAU,WAAY,SAAU,OAAQ,UAAW,OAAQ,eAI5GC,QAhEwB,WAiEtB,IAAI,OAAW,CACbC,OAAQ,YAEV,IAAI,OAAW,CACbA,OAAQ,kBAGV,IAAI,OAAW,CACbA,OAAQ,cAEV,IAAMC,EAAa,IAAI,OAAW,CAChCD,OAAQ,oBAEVC,EAAWC,IAAI,CAAC,SAAU,QAAS,YClF6T,I,wBCQhWC,EAAY,eACd,EACAhC,EACAsB,GACA,EACA,KACA,KACA,MAIa,aAAAU,E","file":"js/selects.8b4f7ad4.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./selects.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"selects-content\"}},[_c('div',{staticClass:\"content\"},[_c('h2',{staticClass:\"header\"},[_vm._v(\"Single\")]),_c('p',[_vm._v(\" Basic single select usage with Slim Select is extremely easy. Just set the select value to your select element. \")]),_c('div',{staticClass:\"select-split\"},[_c('div',[_c('h4',[_vm._v(\"Options\")]),_c('select',{attrs:{\"id\":\"single\"}},_vm._l((_vm.states),function(value){return _c('option',{key:value.abv,domProps:{\"value\":value.abv,\"selected\":value.selected}},[_vm._v(_vm._s(value.state))])}),0)]),_c('div',[_c('h4',[_vm._v(\"Optgroups\")]),_c('select',{attrs:{\"id\":\"single-group\"}},_vm._l((_vm.foods),function(food){return _c('optgroup',{key:food.label,attrs:{\"label\":food.label}},_vm._l((food.options),function(option){return _c('option',{key:option,domProps:{\"value\":option}},[_vm._v(_vm._s(option))])}),0)}),0)])]),_vm._m(0),_vm._m(1)]),_c('div',{staticClass:\"content\"},[_c('h2',{staticClass:\"header\"},[_vm._v(\"Multiple\")]),_c('p',[_vm._v(\" Multi selects work just the same as a single select. The only difference is setting the multiple attribute on your select. \")]),_c('div',{staticClass:\"select-split\"},[_c('div',[_c('h4',[_vm._v(\"Options\")]),_c('select',{attrs:{\"id\":\"multiple\",\"multiple\":\"\"}},_vm._l((_vm.states),function(value){return _c('option',{key:value.abv,domProps:{\"value\":value.abv,\"selected\":value.selected}},[_vm._v(_vm._s(value.state))])}),0)]),_c('div',[_c('h4',[_vm._v(\"Optgroups\")]),_c('select',{attrs:{\"id\":\"multiple-group\",\"multiple\":\"\"}},_vm._l((_vm.foods),function(food){return _c('optgroup',{key:food.label,attrs:{\"label\":food.label}},_vm._l((food.options),function(option){return _c('option',{key:option,domProps:{\"value\":option}},[_vm._v(_vm._s(option))])}),0)}),0)])]),_vm._m(2),_vm._m(3)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',[_vm._v(\" \"),_c('code',{staticClass:\"language-javascript\"},[_vm._v(\"\\n new SlimSelect({\\n select: '#single'\\n })\\n \")]),_vm._v(\"\\n \")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',[_vm._v(\" \"),_c('code',{staticClass:\"language-html\"},[_vm._v(\"\\n <!-- Options -->\\n <select id=\\\"single\\\">\\n <option value=\\\"value 1\\\">Value 1</option>\\n <option value=\\\"value 2\\\">Value 2</option>\\n <option value=\\\"value 3\\\">Value 3</option>\\n </select>\\n\\n <!-- Optgroups -->\\n <select id=\\\"single-optgroups\\\">\\n <optgroup label=\\\"Label 1\\\">\\n <option value=\\\"value 1\\\">Value 1</option>\\n <option value=\\\"value 2\\\">Value 2</option>\\n <option value=\\\"value 3\\\">Value 3</option>\\n </optgroup>\\n <optgroup label=\\\"Label 2\\\">\\n <option value=\\\"value 21\\\">Value 1</option>\\n <option value=\\\"value 22\\\">Value 2</option>\\n <option value=\\\"value 23\\\">Value 3</option>\\n </optgroup>\\n </select>\\n \")]),_vm._v(\"\\n \")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',[_vm._v(\" \"),_c('code',{staticClass:\"language-javascript\"},[_vm._v(\"\\n new SlimSelect({\\n select: '#multiple'\\n })\\n \")]),_vm._v(\"\\n \")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',[_vm._v(\" \"),_c('code',{staticClass:\"language-html\"},[_vm._v(\"\\n <!-- Options -->\\n <select id=\\\"multiple\\\" multiple>\\n <option value=\\\"value 1\\\">Value 1</option>\\n <option value=\\\"value 2\\\">Value 2</option>\\n <option value=\\\"value 3\\\">Value 3</option>\\n </select>\\n\\n <!-- Optgroups -->\\n <select id=\\\"multiple-optgroups\\\" multiple>\\n <optgroup label=\\\"Label 1\\\">\\n <option value=\\\"value 1\\\">Value 1</option>\\n <option value=\\\"value 2\\\">Value 2</option>\\n <option value=\\\"value 3\\\">Value 3</option>\\n </optgroup>\\n <optgroup label=\\\"Label 2\\\">\\n <option value=\\\"value 21\\\">Value 1</option>\\n <option value=\\\"value 22\\\">Value 2</option>\\n <option value=\\\"value 23\\\">Value 3</option>\\n </optgroup>\\n </select>\\n \")]),_vm._v(\"\\n \")])}]\n\nexport { render, staticRenderFns }","\nimport Vue from 'vue'\nimport SlimSelect from '@/slim-select'\n\nexport default Vue.extend({\n data() {\n return {\n states: [\n {abv: 'AL', state: 'Alabama'},\n {abv: 'AK', state: 'Alaska'},\n {abv: 'AZ', state: 'Arizona'},\n {abv: 'AR', state: 'Arkansas'},\n {abv: 'CA', state: 'California', selected: true},\n {abv: 'CO', state: 'Colorado'},\n {abv: 'CT', state: 'Connecticut'},\n {abv: 'DE', state: 'Delaware'},\n {abv: 'DC', state: 'District Of Columbia'},\n {abv: 'FL', state: 'Florida'},\n {abv: 'GA', state: 'Georgia'},\n {abv: 'HI', state: 'Hawaii'},\n {abv: 'ID', state: 'Idaho'},\n {abv: 'IL', state: 'Illinois', selected: true},\n {abv: 'IN', state: 'Indiana'},\n {abv: 'IA', state: 'Iowa'},\n {abv: 'KS', state: 'Kansas'},\n {abv: 'KY', state: 'Kentucky'},\n {abv: 'LA', state: 'Louisiana'},\n {abv: 'ME', state: 'Maine'},\n {abv: 'MD', state: 'Maryland'},\n {abv: 'MA', state: 'Massachusetts'},\n {abv: 'MI', state: 'Michigan'},\n {abv: 'MN', state: 'Minnesota'},\n {abv: 'MS', state: 'Mississippi'},\n {abv: 'MO', state: 'Missouri'},\n {abv: 'MT', state: 'Montana'},\n {abv: 'NE', state: 'Nebraska'},\n {abv: 'NV', state: 'Nevada'},\n {abv: 'NH', state: 'New Hampshire'},\n {abv: 'NJ', state: 'New Jersey'},\n {abv: 'NM', state: 'New Mexico'},\n {abv: 'NY', state: 'New York'},\n {abv: 'NC', state: 'North Carolina'},\n {abv: 'ND', state: 'North Dakota'},\n {abv: 'OH', state: 'Ohio'},\n {abv: 'OK', state: 'Oklahoma'},\n {abv: 'OR', state: 'Oregon'},\n {abv: 'PA', state: 'Pennsylvania'},\n {abv: 'RI', state: 'Rhode Island'},\n {abv: 'SC', state: 'South Carolina'},\n {abv: 'SD', state: 'South Dakota'},\n {abv: 'TN', state: 'Tennessee'},\n {abv: 'TX', state: 'Texas'},\n {abv: 'UT', state: 'Utah'},\n {abv: 'VT', state: 'Vermont'},\n {abv: 'VA', state: 'Virginia'},\n {abv: 'WA', state: 'Washington'},\n {abv: 'WV', state: 'West Virginia'},\n {abv: 'WI', state: 'Wisconsin'},\n {abv: 'WY', state: 'Wyoming'}\n ],\n foods: [\n { label: 'Dairy', options: ['Milk', 'Cheese', 'Butter', 'Ice Cream'] },\n { label: 'Meat', options: ['Beef', 'Ham', 'Pork', 'Sausage', 'Chicken', 'Turkey'] },\n { label: 'Fruits', options: ['Apple', 'Banana', 'Grape', 'Orange', 'Strawberry', 'Blueberry', 'Raspberry'] },\n { label: 'Vegetables', options: ['Carrot', 'Tomato', 'Broccoli', 'Celery', 'Corn', 'Pumpkin', 'Kale', 'Spinach'] }\n ]\n }\n },\n mounted() {\n new SlimSelect({\n select: '#single'\n })\n new SlimSelect({\n select: '#single-group'\n })\n\n new SlimSelect({\n select: '#multiple'\n })\n const multiGroup = new SlimSelect({\n select: '#multiple-group'\n })\n multiGroup.set(['Cheese', 'Apple', 'Corn'])\n }\n})\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./selects.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./selects.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./selects.vue?vue&type=template&id=fac020ec&\"\nimport script from \"./selects.vue?vue&type=script&lang=ts&\"\nexport * from \"./selects.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./selects.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./src/docs/pages/selects.vue?5328","webpack:///./src/docs/pages/selects.vue?c8b0","webpack:///./src/docs/pages/selects.vue?7a19","webpack:///./src/docs/pages/selects.vue?64a1","webpack:///./src/docs/pages/selects.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","_l","value","key","abv","domProps","selected","_s","state","food","label","option","_m","staticRenderFns","extend","data","states","foods","options","mounted","select","multiGroup","set","component"],"mappings":"2GAAA,W,oECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,oBAAoB,CAACF,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,KAAK,CAACG,YAAY,UAAU,CAACP,EAAIQ,GAAG,YAAYJ,EAAG,IAAI,CAACJ,EAAIQ,GAAG,uHAAuHJ,EAAG,MAAM,CAACG,YAAY,gBAAgB,CAACH,EAAG,MAAM,CAACA,EAAG,KAAK,CAACJ,EAAIQ,GAAG,aAAaJ,EAAG,SAAS,CAACE,MAAM,CAAC,GAAK,WAAWN,EAAIS,GAAIT,EAAU,QAAE,SAASU,GAAO,OAAON,EAAG,SAAS,CAACO,IAAID,EAAME,IAAIC,SAAS,CAAC,MAAQH,EAAME,IAAI,SAAWF,EAAMI,WAAW,CAACd,EAAIQ,GAAGR,EAAIe,GAAGL,EAAMM,aAAY,KAAKZ,EAAG,MAAM,CAACA,EAAG,KAAK,CAACJ,EAAIQ,GAAG,eAAeJ,EAAG,SAAS,CAACE,MAAM,CA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O,SACnB,CAACJ,IAAK,KAAMI,MAAO,QACnB,CAACJ,IAAK,KAAMI,MAAO,WACnB,CAACJ,IAAK,KAAMI,MAAO,YACnB,CAACJ,IAAK,KAAMI,MAAO,cACnB,CAACJ,IAAK,KAAMI,MAAO,iBACnB,CAACJ,IAAK,KAAMI,MAAO,aACnB,CAACJ,IAAK,KAAMI,MAAO,YAErBS,MAAO,CACL,CAAEP,MAAO,QAASQ,QAAS,CAAC,OAAQ,SAAU,SAAU,cACxD,CAAER,MAAO,OAAQQ,QAAS,CAAC,OAAQ,MAAO,OAAQ,UAAW,UAAW,WACxE,CAAER,MAAO,SAAUQ,QAAS,CAAC,QAAS,SAAU,QAAS,SAAU,aAAc,YAAa,cAC9F,CAAER,MAAO,aAAcQ,QAAS,CAAC,SAAU,SAAU,WAAY,SAAU,OAAQ,UAAW,OAAQ,eAI5GC,QAhEwB,WAiEtB,IAAI,OAAW,CACbC,OAAQ,YAEV,IAAI,OAAW,CACbA,OAAQ,kBAGV,IAAI,OAAW,CACbA,OAAQ,cAEV,IAAMC,EAAa,IAAI,OAAW,CAChCD,OAAQ,oBAEVC,EAAWC,IAAI,CAAC,SAAU,QAAS,YClF6T,I,wBCQhWC,EAAY,eACd,EACAhC,EACAsB,GACA,EACA,KACA,KACA,MAIa,aAAAU,E","file":"js/selects.f4d0b859.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./selects.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"selects-content\"}},[_c('div',{staticClass:\"content\"},[_c('h2',{staticClass:\"header\"},[_vm._v(\"Single\")]),_c('p',[_vm._v(\" Basic single select usage with Slim Select is extremely easy. Just set the select value to your select element. \")]),_c('div',{staticClass:\"select-split\"},[_c('div',[_c('h4',[_vm._v(\"Options\")]),_c('select',{attrs:{\"id\":\"single\"}},_vm._l((_vm.states),function(value){return _c('option',{key:value.abv,domProps:{\"value\":value.abv,\"selected\":value.selected}},[_vm._v(_vm._s(value.state))])}),0)]),_c('div',[_c('h4',[_vm._v(\"Optgroups\")]),_c('select',{attrs:{\"id\":\"single-group\"}},_vm._l((_vm.foods),function(food){return _c('optgroup',{key:food.label,attrs:{\"label\":food.label}},_vm._l((food.options),function(option){return _c('option',{key:option,domProps:{\"value\":option}},[_vm._v(_vm._s(option))])}),0)}),0)])]),_vm._m(0),_vm._m(1)]),_c('div',{staticClass:\"content\"},[_c('h2',{staticClass:\"header\"},[_vm._v(\"Multiple\")]),_c('p',[_vm._v(\" Multi selects work just the same as a single select. The only difference is setting the multiple attribute on your select. \")]),_c('div',{staticClass:\"select-split\"},[_c('div',[_c('h4',[_vm._v(\"Options\")]),_c('select',{attrs:{\"id\":\"multiple\",\"multiple\":\"\"}},_vm._l((_vm.states),function(value){return _c('option',{key:value.abv,domProps:{\"value\":value.abv,\"selected\":value.selected}},[_vm._v(_vm._s(value.state))])}),0)]),_c('div',[_c('h4',[_vm._v(\"Optgroups\")]),_c('select',{attrs:{\"id\":\"multiple-group\",\"multiple\":\"\"}},_vm._l((_vm.foods),function(food){return _c('optgroup',{key:food.label,attrs:{\"label\":food.label}},_vm._l((food.options),function(option){return _c('option',{key:option,domProps:{\"value\":option}},[_vm._v(_vm._s(option))])}),0)}),0)])]),_vm._m(2),_vm._m(3)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',[_vm._v(\" \"),_c('code',{staticClass:\"language-javascript\"},[_vm._v(\"\\n new SlimSelect({\\n select: '#single'\\n })\\n \")]),_vm._v(\"\\n \")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',[_vm._v(\" \"),_c('code',{staticClass:\"language-html\"},[_vm._v(\"\\n <!-- Options -->\\n <select id=\\\"single\\\">\\n <option value=\\\"value 1\\\">Value 1</option>\\n <option value=\\\"value 2\\\">Value 2</option>\\n <option value=\\\"value 3\\\">Value 3</option>\\n </select>\\n\\n <!-- Optgroups -->\\n <select id=\\\"single-optgroups\\\">\\n <optgroup label=\\\"Label 1\\\">\\n <option value=\\\"value 1\\\">Value 1</option>\\n <option value=\\\"value 2\\\">Value 2</option>\\n <option value=\\\"value 3\\\">Value 3</option>\\n </optgroup>\\n <optgroup label=\\\"Label 2\\\">\\n <option value=\\\"value 21\\\">Value 1</option>\\n <option value=\\\"value 22\\\">Value 2</option>\\n <option value=\\\"value 23\\\">Value 3</option>\\n </optgroup>\\n </select>\\n \")]),_vm._v(\"\\n \")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',[_vm._v(\" \"),_c('code',{staticClass:\"language-javascript\"},[_vm._v(\"\\n new SlimSelect({\\n select: '#multiple'\\n })\\n \")]),_vm._v(\"\\n \")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',[_vm._v(\" \"),_c('code',{staticClass:\"language-html\"},[_vm._v(\"\\n <!-- Options -->\\n <select id=\\\"multiple\\\" multiple>\\n <option value=\\\"value 1\\\">Value 1</option>\\n <option value=\\\"value 2\\\">Value 2</option>\\n <option value=\\\"value 3\\\">Value 3</option>\\n </select>\\n\\n <!-- Optgroups -->\\n <select id=\\\"multiple-optgroups\\\" multiple>\\n <optgroup label=\\\"Label 1\\\">\\n <option value=\\\"value 1\\\">Value 1</option>\\n <option value=\\\"value 2\\\">Value 2</option>\\n <option value=\\\"value 3\\\">Value 3</option>\\n </optgroup>\\n <optgroup label=\\\"Label 2\\\">\\n <option value=\\\"value 21\\\">Value 1</option>\\n <option value=\\\"value 22\\\">Value 2</option>\\n <option value=\\\"value 23\\\">Value 3</option>\\n </optgroup>\\n </select>\\n \")]),_vm._v(\"\\n \")])}]\n\nexport { render, staticRenderFns }","\nimport Vue from 'vue'\nimport SlimSelect from '@/slim-select'\n\nexport default Vue.extend({\n data() {\n return {\n states: [\n {abv: 'AL', state: 'Alabama'},\n {abv: 'AK', state: 'Alaska'},\n {abv: 'AZ', state: 'Arizona'},\n {abv: 'AR', state: 'Arkansas'},\n {abv: 'CA', state: 'California', selected: true},\n {abv: 'CO', state: 'Colorado'},\n {abv: 'CT', state: 'Connecticut'},\n {abv: 'DE', state: 'Delaware'},\n {abv: 'DC', state: 'District Of Columbia'},\n {abv: 'FL', state: 'Florida'},\n {abv: 'GA', state: 'Georgia'},\n {abv: 'HI', state: 'Hawaii'},\n {abv: 'ID', state: 'Idaho'},\n {abv: 'IL', state: 'Illinois', selected: true},\n {abv: 'IN', state: 'Indiana'},\n {abv: 'IA', state: 'Iowa'},\n {abv: 'KS', state: 'Kansas'},\n {abv: 'KY', state: 'Kentucky'},\n {abv: 'LA', state: 'Louisiana'},\n {abv: 'ME', state: 'Maine'},\n {abv: 'MD', state: 'Maryland'},\n {abv: 'MA', state: 'Massachusetts'},\n {abv: 'MI', state: 'Michigan'},\n {abv: 'MN', state: 'Minnesota'},\n {abv: 'MS', state: 'Mississippi'},\n {abv: 'MO', state: 'Missouri'},\n {abv: 'MT', state: 'Montana'},\n {abv: 'NE', state: 'Nebraska'},\n {abv: 'NV', state: 'Nevada'},\n {abv: 'NH', state: 'New Hampshire'},\n {abv: 'NJ', state: 'New Jersey'},\n {abv: 'NM', state: 'New Mexico'},\n {abv: 'NY', state: 'New York'},\n {abv: 'NC', state: 'North Carolina'},\n {abv: 'ND', state: 'North Dakota'},\n {abv: 'OH', state: 'Ohio'},\n {abv: 'OK', state: 'Oklahoma'},\n {abv: 'OR', state: 'Oregon'},\n {abv: 'PA', state: 'Pennsylvania'},\n {abv: 'RI', state: 'Rhode Island'},\n {abv: 'SC', state: 'South Carolina'},\n {abv: 'SD', state: 'South Dakota'},\n {abv: 'TN', state: 'Tennessee'},\n {abv: 'TX', state: 'Texas'},\n {abv: 'UT', state: 'Utah'},\n {abv: 'VT', state: 'Vermont'},\n {abv: 'VA', state: 'Virginia'},\n {abv: 'WA', state: 'Washington'},\n {abv: 'WV', state: 'West Virginia'},\n {abv: 'WI', state: 'Wisconsin'},\n {abv: 'WY', state: 'Wyoming'}\n ],\n foods: [\n { label: 'Dairy', options: ['Milk', 'Cheese', 'Butter', 'Ice Cream'] },\n { label: 'Meat', options: ['Beef', 'Ham', 'Pork', 'Sausage', 'Chicken', 'Turkey'] },\n { label: 'Fruits', options: ['Apple', 'Banana', 'Grape', 'Orange', 'Strawberry', 'Blueberry', 'Raspberry'] },\n { label: 'Vegetables', options: ['Carrot', 'Tomato', 'Broccoli', 'Celery', 'Corn', 'Pumpkin', 'Kale', 'Spinach'] }\n ]\n }\n },\n mounted() {\n new SlimSelect({\n select: '#single'\n })\n new SlimSelect({\n select: '#single-group'\n })\n\n new SlimSelect({\n select: '#multiple'\n })\n const multiGroup = new SlimSelect({\n select: '#multiple-group'\n })\n multiGroup.set(['Cheese', 'Apple', 'Corn'])\n }\n})\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./selects.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./selects.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./selects.vue?vue&type=template&id=fac020ec&\"\nimport script from \"./selects.vue?vue&type=script&lang=ts&\"\nexport * from \"./selects.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./selects.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "slim-select",
3
3
  "description": "Slim advanced select dropdown",
4
- "version": "1.26.2",
4
+ "version": "1.27.0",
5
5
  "author": "Brian Voelker <brian@webiswhatido.com> (http://webiswhatido.com)",
6
6
  "homepage": "https://slimselectjs.com",
7
7
  "license": "MIT",
@@ -12,6 +12,10 @@
12
12
  "node": ">=8"
13
13
  },
14
14
  "main": "dist/slimselect.min.js",
15
+ "exports": {
16
+ "require": "./dist/slimselect.min.js",
17
+ "import": "./dist/slimselect.min.mjs"
18
+ },
15
19
  "style": "dist/slimselect.min.css",
16
20
  "sass": "src/slim-select/slimselect.scss",
17
21
  "types": "dist/index.d.ts",
@@ -28,23 +32,24 @@
28
32
  ],
29
33
  "scripts": {
30
34
  "dev": "vue-cli-service serve",
31
- "library": "rm -r dist && cd src/slim-select && webpack && cd ../../ && npm run cleanDist && npm run renameDist",
35
+ "library": "rm -r dist && cd src/slim-select && webpack && cd ../../ && npm run cleanDist && npm run renameDist && npm run mjs",
32
36
  "cleanDist": "rm dist/slimselectcss.min.js && rm dist/slimselectcss.js",
33
37
  "renameDist": "mv 'dist/slimselectcss.css' 'dist/slimselect.css' && mv 'dist/slimselectcss.min.css' 'dist/slimselect.min.css'",
34
38
  "docs": "vue-cli-service build",
35
39
  "build": "npm run docs && npm run library",
40
+ "mjs": "(printf 'var exports = {};'; cat dist/slimselect.min.js; printf 'export default exports.SlimSelect') > dist/slimselect.min.mjs",
36
41
  "lint": "vue-cli-service lint"
37
42
  },
38
43
  "devDependencies": {
39
- "@vue/cli-plugin-babel": "^4.5.9",
40
- "@vue/cli-plugin-typescript": "^4.5.9",
41
- "@vue/cli-service": "^4.5.9",
44
+ "@vue/cli-plugin-babel": "^4.5.10",
45
+ "@vue/cli-plugin-typescript": "^4.5.10",
46
+ "@vue/cli-service": "^4.5.10",
42
47
  "ajv": "^6.12.6",
43
48
  "chance": "^1.1.7",
44
49
  "clipboard": "^2.0.4",
45
50
  "node-sass": "^5.0.0",
46
51
  "optimize-css-assets-webpack-plugin": "^5.0.4",
47
- "prismjs": "^1.22.0",
52
+ "prismjs": "^1.23.0",
48
53
  "sass-loader": "^10.1.0",
49
54
  "typescript": "^3.7.4",
50
55
  "uglifyjs-webpack-plugin": "^2.2.0",
@@ -52,6 +57,9 @@
52
57
  "vue-router": "^3.4.9",
53
58
  "vue-template-compiler": "^2.6.12",
54
59
  "vuex": "^3.6.0",
55
- "webpack-cli": "^4.2.0"
60
+ "webpack-cli": "^4.3.1"
61
+ },
62
+ "dependencies": {
63
+ "npm-check": "^5.9.2"
56
64
  }
57
65
  }
package/public/index.html CHANGED
@@ -12,10 +12,17 @@
12
12
  </head>
13
13
  <body>
14
14
  <noscript>
15
- <strong>We're sorry but slim2 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
15
+ <strong>We're sorry but slim select doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
16
16
  </noscript>
17
17
  <div id="app"></div>
18
- <script async type="text/javascript" src="https://www.google-analytics.com/analytics.js"></script>
19
- <script async src='/autotrack.js'></script>
18
+
19
+ <script async src="https://www.googletagmanager.com/gtag/js?id=UA-96955238-1"></script>
20
+ <script>
21
+ window.dataLayer = window.dataLayer || [];
22
+ function gtag(){dataLayer.push(arguments);}
23
+ gtag('js', new Date());
24
+
25
+ gtag('config', 'UA-96955238-1');
26
+ </script>
20
27
  </body>
21
28
  </html>
package/src/main.ts CHANGED
@@ -7,8 +7,6 @@ import Normalizer from 'prismjs/plugins/normalize-whitespace/prism-normalize-whi
7
7
  import 'prismjs/plugins/toolbar/prism-toolbar'
8
8
  import 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard'
9
9
 
10
- import '@/docs/google-analytics.js'
11
-
12
10
  import '@/docs/assets/scss/index.scss'
13
11
  import '@/slim-select/slimselect.scss'
14
12
 
package/docs/autotrack.js DELETED
@@ -1,36 +0,0 @@
1
- (function(){var aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},f="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function h(){h=function(){};f.Symbol||(f.Symbol=ba)}var ca=0;function ba(a){return"jscomp_symbol_"+(a||"")+ca++}
2
- function k(){h();var a=f.Symbol.iterator;a||(a=f.Symbol.iterator=f.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return l(this)}});k=function(){}}function l(a){var b=0;return da(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function da(a){k();a={next:a};a[f.Symbol.iterator]=function(){return this};return a}
3
- function m(a){if(!(a instanceof Array)){k();var b=a[Symbol.iterator];a=b?b.call(a):l(a);for(var c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}function ea(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]}
4
- var n=window.Element.prototype,p=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;function q(a,b){if(a&&1==a.nodeType&&b){if("string"==typeof b||1==b.nodeType)return a==b||r(a,b);if("length"in b)for(var c=0,d;d=b[c];c++)if(a==d||r(a,d))return!0}return!1}function r(a,b){if("string"!=typeof b)return!1;if(p)return p.call(a,b);b=a.parentNode.querySelectorAll(b);for(var c=0,d;d=b[c];c++)if(d==a)return!0;return!1}
5
- function fa(a){for(var b=[];a&&a.parentNode&&1==a.parentNode.nodeType;)a=a.parentNode,b.push(a);return b}
6
- function ha(a,b,c){function d(a){var d;if(g.composed&&"function"==typeof a.composedPath)for(var e=a.composedPath(),t=0,B;B=e[t];t++)1==B.nodeType&&q(B,b)&&(d=B);else a:{if((d=a.target)&&1==d.nodeType&&b)for(d=[d].concat(fa(d)),e=0;t=d[e];e++)if(q(t,b)){d=t;break a}d=void 0}d&&c.call(d,a,d)}var e=document,g={composed:!0,u:!0},g=void 0===g?{}:g;e.addEventListener(a,d,g.u);return{i:function(){e.removeEventListener(a,d,g.u)}}}
7
- function ia(a){var b={};if(!a||1!=a.nodeType)return b;a=a.attributes;if(!a.length)return{};for(var c=0,d;d=a[c];c++)b[d.name]=d.value;return b}var ja=/:(80|443)$/,u=document.createElement("a"),v={};
8
- function w(a){a=a&&"."!=a?a:location.href;if(v[a])return v[a];u.href=a;if("."==a.charAt(0)||"/"==a.charAt(0))return w(u.href);var b="80"==u.port||"443"==u.port?"":u.port,b="0"==b?"":b,c=u.host.replace(ja,"");return v[a]={hash:u.hash,host:c,hostname:u.hostname,href:u.href,origin:u.origin?u.origin:u.protocol+"//"+c,pathname:"/"==u.pathname.charAt(0)?u.pathname:"/"+u.pathname,port:b,protocol:u.protocol,search:u.search}}var x=[];
9
- function y(a,b){var c=this;this.context=a;this.s=b;this.f=(this.c=/Task$/.test(b))?a.get(b):a[b];this.b=[];this.a=[];this.g=function(a){for(var b=[],d=0;d<arguments.length;++d)b[d-0]=arguments[d];return c.a[c.a.length-1].apply(null,[].concat(m(b)))};this.c?a.set(b,this.g):a[b]=this.g}function z(a,b){a.b.push(b);A(a)}function C(a,b){b=a.b.indexOf(b);-1<b&&(a.b.splice(b,1),0<a.b.length?A(a):a.i())}function A(a){a.a=[];for(var b,c=0;b=a.b[c];c++){var d=a.a[c-1]||a.f.bind(a.context);a.a.push(b(d))}}
10
- y.prototype.i=function(){var a=x.indexOf(this);-1<a&&(x.splice(a,1),this.c?this.context.set(this.s,this.f):this.context[this.s]=this.f)};function D(a,b){var c=x.filter(function(c){return c.context==a&&c.s==b})[0];c||(c=new y(a,b),x.push(c));return c}function E(a,b,c,d,e){if("function"==typeof d){var g=c.get("buildHitTask");return{buildHitTask:function(c){c.set(a,null,!0);c.set(b,null,!0);d(c,e);g(c)}}}return F({},a,b)}
11
- function ka(a,b){var c=ia(a),d={};Object.keys(c).forEach(function(a){if(!a.indexOf(b)&&a!=b+"on"){var e=c[a];"true"==e&&(e=!0);"false"==e&&(e=!1);a=la(a.slice(b.length));d[a]=e}});return d}function ma(a){var b;return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];clearTimeout(b);b=setTimeout(function(){return a.apply(null,[].concat(m(d)))},500)}}function na(a){function b(){c||(c=!0,a())}var c=!1;setTimeout(b,2E3);return b}
12
- var F=Object.assign||function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];for(var e=0;d=c[e];e++)for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(a[g]=d[g]);return a};function la(a){return a.replace(/[\-\_]+(\w?)/g,function(a,c){return c.toUpperCase()})}function G(a){return"object"==typeof a&&null!==a}
13
- function H(a,b){var c=window.GoogleAnalyticsObject||"ga";window[c]=window[c]||function(a){for(var b=[],d=0;d<arguments.length;++d)b[d-0]=arguments[d];(window[c].q=window[c].q||[]).push(b)};window.gaDevIds=window.gaDevIds||[];0>window.gaDevIds.indexOf("i5iSjo")&&window.gaDevIds.push("i5iSjo");window[c]("provide",a,b);window.gaplugins=window.gaplugins||{};window.gaplugins[a.charAt(0).toUpperCase()+a.slice(1)]=b}function I(){this.a={}}
14
- I.prototype.C=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];(this.a[a]=this.a[a]||[]).forEach(function(a){return a.apply(null,[].concat(m(c)))})};var J={},K=!1;function L(a,b){this.a={};this.key=a;this.l=b||{}}ea(L,I);function M(a,b,c){a=["autotrack",a,b].join(":");J[a]||(J[a]=new L(a,c),J[a].key=a,K||(window.addEventListener("storage",N),K=!0));return J[a]}
15
- L.prototype.get=function(){var a=String(window.localStorage&&window.localStorage.getItem(this.key));return"string"!=typeof a?{}:O(a,this.l)};L.prototype.set=function(a){var b=this.get();a=F(b,a);window.localStorage&&window.localStorage.setItem(this.key,JSON.stringify(a))};L.prototype.i=function(){delete J[this.key];Object.keys(J).length||(window.removeEventListener("storage",N),K=!1)};function N(a){var b=J[a.key];if(b){var c=O(a.oldValue,b.l);a=O(a.newValue,b.l);b.C("externalSet",a,c)}}
16
- function O(a,b){var c;try{c=JSON.parse(a)}catch(d){c={}}return F({},b,c)}var oa={};function P(a,b,c){this.f=a;this.timeout=b||Q;this.timeZone=c;b=this.b=this.b.bind(this);z(D(a,"sendHitTask"),b);try{this.c=new Intl.DateTimeFormat("en-US",{timeZone:this.timeZone})}catch(d){}this.a=M(a.get("trackingId"),"session",{hitTime:0,isExpired:!1})}
17
- P.prototype.isExpired=function(a){a=a?a:this.a.get();if(a.isExpired)return!0;var b=new Date,c=(a=a.hitTime)&&new Date(a);return a&&(b-c>6E4*this.timeout||this.c&&this.c.format(b)!=this.c.format(c))?!0:!1};P.prototype.b=function(a){var b=this;return function(c){a(c);var d=b.a.get(),e=b.isExpired(d);c=c.get("sessionControl");d.hitTime=+new Date;if("start"==c||e)d.isExpired=!1;"end"==c&&(d.isExpired=!0);b.a.set(d)}};P.prototype.i=function(){var a=this.b;C(D(this.f,"sendHitTask"),a);this.a.i();delete oa[this.f.get("trackingId")]};
18
- var Q=30,R={D:1,F:2,G:3,H:4,I:5,w:6,A:7,J:8,B:9,v:10},S=Object.keys(R).length;function T(a,b){a.set("\x26_av","2.0.1");var c=a.get("\x26_au"),c=parseInt(c||"0",16).toString(2);if(c.length<S)for(var d=S-c.length;d;)c="0"+c,d--;b=S-b;c=c.substr(0,b)+1+c.substr(b+1);a.set("\x26_au",parseInt(c||"0",2).toString(16))}
19
- function U(a,b){T(a,R.v);window.addEventListener&&(this.a=F({increaseThreshold:20,sessionTimeout:Q,fieldsObj:{}},b),this.c=a,this.b=pa(this),this.f=ma(this.f.bind(this)),this.h=this.h.bind(this),this.g=M(a.get("trackingId"),"plugins/max-scroll-tracker"),this.j=new P(a,this.a.sessionTimeout,this.a.timeZone),b=this.h,z(D(a,"set"),b),qa(this))}function qa(a){100>(a.g.get()[a.b]||0)&&window.addEventListener("scroll",a.f)}
20
- U.prototype.f=function(){var a=document.documentElement,b=document.body,a=Math.min(100,Math.max(0,Math.round(window.pageYOffset/(Math.max(a.offsetHeight,a.scrollHeight,b.offsetHeight,b.scrollHeight)-window.innerHeight)*100)));if(this.j.isExpired())window.localStorage&&window.localStorage.removeItem(this.g.key);else if(b=this.g.get()[this.b]||0,a>b&&(100!=a&&100!=b||window.removeEventListener("scroll",this.f),b=a-b,100==a||b>=this.a.increaseThreshold)){var c={};this.g.set((c[this.b]=a,c));a={transport:"beacon",
21
- eventCategory:"Max Scroll",eventAction:"increase",eventValue:b,eventLabel:String(a),nonInteraction:!0};this.a.maxScrollMetricIndex&&(a["metric"+this.a.maxScrollMetricIndex]=b);this.c.send("event",E(a,this.a.fieldsObj,this.c,this.a.hitFilter))}};U.prototype.h=function(a){var b=this;return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];a.apply(null,[].concat(m(d)));e={};(G(d[0])?d[0]:(e[d[0]]=d[1],e)).page&&(d=b.b,b.b=pa(b),b.b!=d&&qa(b))}};
22
- function pa(a){a=w(a.c.get("page")||a.c.get("location"));return a.pathname+a.search}U.prototype.remove=function(){this.j.i();window.removeEventListener("scroll",this.f);var a=this.h;C(D(this.c,"set"),a)};H("maxScrollTracker",U);
23
- function V(a,b){var c=this;T(a,R.w);window.addEventListener&&(this.a=F({events:["click"],linkSelector:"a, area",shouldTrackOutboundLink:this.shouldTrackOutboundLink,fieldsObj:{},attributePrefix:"ga-"},b),this.f=a,this.c=this.c.bind(this),this.b={},this.a.events.forEach(function(a){c.b[a]=ha(a,c.a.linkSelector,c.c)}))}
24
- V.prototype.c=function(a,b){if(this.a.shouldTrackOutboundLink(b,w)){var c=b.getAttribute("href")||b.getAttribute("xlink:href"),d=w(c),e={transport:"beacon",eventCategory:"Outbound Link",eventAction:a.type,eventLabel:d.href};navigator.sendBeacon||"click"!=a.type||"_blank"==b.target||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||1<a.which||window.addEventListener("click",function(a){a.defaultPrevented||(a.preventDefault(),e.hitCallback=na(function(){location.href=c}))});a=F({},this.a.fieldsObj,ka(b,this.a.attributePrefix));
25
- this.f.send("event",E(e,a,this.f,this.a.hitFilter,b))}};V.prototype.shouldTrackOutboundLink=function(a,b){a=a.getAttribute("href")||a.getAttribute("xlink:href");b=b(a);return b.hostname!=location.hostname&&"http"==b.protocol.slice(0,4)};V.prototype.remove=function(){var a=this;Object.keys(this.b).forEach(function(b){a.b[b].i()})};H("outboundLinkTracker",V);
26
- function W(a,b){T(a,R.B);history.pushState&&window.addEventListener&&(this.a=F({shouldTrackUrlChange:this.shouldTrackUrlChange,trackReplaceState:!1,fieldsObj:{},hitFilter:null},b),this.g=a,this.h=location.pathname+location.search,this.c=this.c.bind(this),this.f=this.f.bind(this),this.b=this.b.bind(this),a=this.c,z(D(history,"pushState"),a),a=this.f,z(D(history,"replaceState"),a),window.addEventListener("popstate",this.b))}
27
- W.prototype.c=function(a){var b=this;return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];a.apply(null,[].concat(m(d)));X(b,!0)}};W.prototype.f=function(a){var b=this;return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];a.apply(null,[].concat(m(d)));X(b,!1)}};W.prototype.b=function(){X(this,!0)};
28
- function X(a,b){setTimeout(function(){var c=a.h,d=location.pathname+location.search;c!=d&&a.a.shouldTrackUrlChange.call(a,d,c)&&(a.h=d,a.g.set({page:d,title:document.title}),(b||a.a.trackReplaceState)&&a.g.send("pageview",E({transport:"beacon"},a.a.fieldsObj,a.g,a.a.hitFilter)))},0)}W.prototype.shouldTrackUrlChange=function(a,b){return!(!a||!b)};W.prototype.remove=function(){var a=this.c;C(D(history,"pushState"),a);a=this.f;C(D(history,"replaceState"),a);window.removeEventListener("popstate",this.b)};
29
- H("urlChangeTracker",W);var Y=function ra(b){return b?(b^16*Math.random()>>b/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,ra)}();
30
- function Z(a,b){T(a,R.A);if(window.addEventListener){this.a=F({sessionTimeout:Q,fieldsObj:{}},b);this.f=a;this.j=null;this.g=this.g.bind(this);this.b=this.b.bind(this);this.h=this.h.bind(this);this.o=this.o.bind(this);this.c=M(a.get("trackingId"),"plugins/page-visibility-tracker");b=this.o;var c=this.c;(c.a.externalSet=c.a.externalSet||[]).push(b);this.m=new P(a,this.a.sessionTimeout,this.a.timeZone);b=this.g;z(D(a,"set"),b);document.addEventListener("visibilitychange",this.b);window.addEventListener("unload",
31
- this.h);"visible"==document.visibilityState&&this.b()}}
32
- Z.prototype.b=function(){var a=this.c.get();"visible"==this.j&&"hidden"==a.state&&a.pageId!=Y&&(a.state="visible",a.pageId=Y,this.c.set(a));var b={time:+new Date,state:document.visibilityState,pageId:Y};this.m.isExpired()?"hidden"==document.visibilityState?window.localStorage&&window.localStorage.removeItem(this.c.key):(this.f.send("pageview",E({transport:"beacon"},this.a.fieldsObj,this.f,this.a.hitFilter)),this.c.set(b)):(a.pageId==Y&&"visible"==a.state&&sa(this,a),this.c.set(b));this.j=document.visibilityState};
33
- function sa(a,b,c){var d={transport:"beacon",nonInteraction:!0,eventCategory:"Page Visibility",eventAction:"track",eventLabel:"(not set)"};c&&(d.K=+new Date-c);var e=c,e=void 0===e?+new Date:e;c=!a.m.isExpired();b=b.time&&Math.round((e-b.time)/1E3);if(b=c&&0<b?b:0)d.eventValue=b,a.a.visibleMetricIndex&&(d["metric"+a.a.visibleMetricIndex]=b);a.f.send("event",E(d,a.a.fieldsObj,a.f,a.a.hitFilter))}
34
- Z.prototype.g=function(a){var b=this;return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];e={};e=G(d[0])?d[0]:(e[d[0]]=d[1],e);e.page&&e.page!==b.f.get("page")&&"visible"==b.j&&b.b();a.apply(null,[].concat(m(d)))}};Z.prototype.o=function(a,b){a.time!=b.time&&b.pageId==Y&&"visible"==b.state&&sa(this,b,a.time)};Z.prototype.h=function(){"hidden"!=this.j&&this.b()};
35
- Z.prototype.remove=function(){this.m.i();var a=this.g;C(D(this.f,"set"),a);window.removeEventListener("unload",this.h);document.removeEventListener("visibilitychange",this.b)};H("pageVisibilityTracker",Z);})();
36
- //# sourceMappingURL=autotrack.js.map
@@ -1,2 +0,0 @@
1
- (function(e){function t(t){for(var n,a,o=t[0],r=t[1],c=t[2],d=0,h=[];d<o.length;d++)a=o[d],Object.prototype.hasOwnProperty.call(s,a)&&s[a]&&h.push(s[a][0]),s[a]=0;for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);u&&u(t);while(h.length)h.shift()();return l.push.apply(l,c||[]),i()}function i(){for(var e,t=0;t<l.length;t++){for(var i=l[t],n=!0,a=1;a<i.length;a++){var o=i[a];0!==s[o]&&(n=!1)}n&&(l.splice(t--,1),e=r(r.s=i[0]))}return e}var n={},a={app:0},s={app:0},l=[];function o(e){return r.p+"js/"+({home:"home",install:"install",methods:"methods",options:"options",selects:"selects"}[e]||e)+"."+{home:"f1e4d715",install:"1fa0a10d",methods:"5509dcd6",options:"4ec7783b",selects:"8b4f7ad4"}[e]+".js"}function r(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.e=function(e){var t=[],i={home:1,install:1,methods:1,options:1,selects:1};a[e]?t.push(a[e]):0!==a[e]&&i[e]&&t.push(a[e]=new Promise((function(t,i){for(var n="css/"+({home:"home",install:"install",methods:"methods",options:"options",selects:"selects"}[e]||e)+"."+{home:"57020178",install:"baa5d3fb",methods:"728c742a",options:"b28a32ef",selects:"1a7e1e6a"}[e]+".css",s=r.p+n,l=document.getElementsByTagName("link"),o=0;o<l.length;o++){var c=l[o],d=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(d===n||d===s))return t()}var h=document.getElementsByTagName("style");for(o=0;o<h.length;o++){c=h[o],d=c.getAttribute("data-href");if(d===n||d===s)return t()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=t,u.onerror=function(t){var n=t&&t.target&&t.target.src||s,l=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");l.code="CSS_CHUNK_LOAD_FAILED",l.request=n,delete a[e],u.parentNode.removeChild(u),i(l)},u.href=s;var f=document.getElementsByTagName("head")[0];f.appendChild(u)})).then((function(){a[e]=0})));var n=s[e];if(0!==n)if(n)t.push(n[2]);else{var l=new Promise((function(t,i){n=s[e]=[t,i]}));t.push(n[2]=l);var c,d=document.createElement("script");d.charset="utf-8",d.timeout=120,r.nc&&d.setAttribute("nonce",r.nc),d.src=o(e);var h=new Error;c=function(t){d.onerror=d.onload=null,clearTimeout(u);var i=s[e];if(0!==i){if(i){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;h.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",h.name="ChunkLoadError",h.type=n,h.request=a,i[1](h)}s[e]=void 0}};var u=setTimeout((function(){c({type:"timeout",target:d})}),12e4);d.onerror=d.onload=c,document.head.appendChild(d)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],d=c.push.bind(c);c.push=t,c=c.slice();for(var h=0;h<c.length;h++)t(c[h]);var u=d;l.push([0,"chunk-vendors"]),i()})({0:function(e,t,i){e.exports=i("cd49")},"516e":function(e,t,i){window.addEventListener("load",(function(){ga("create","UA-96955238-1","auto"),ga("require","maxScrollTracker"),ga("require","outboundLinkTracker"),ga("require","urlChangeTracker"),ga("require","pageVisibilityTracker"),ga("send","pageview")}))},"517e":function(e,t,i){"use strict";i("692c")},"692c":function(e,t,i){},"9d16":function(e,t,i){},ba4b:function(e,t,i){"use strict";i.d(t,"a",(function(){return S}));i("d3b7"),i("ac1f"),i("841c"),i("ddb0");var n=i("b85c"),a=i("d4ec"),s=i("bee2"),l=(i("c975"),i("1276"),function(){function e(t){Object(a["a"])(this,e),this.id="",this.isMultiple=!1,this.isAjax=!1,this.isSearching=!1,this.showSearch=!0,this.searchFocus=!0,this.searchHighlight=!1,this.closeOnSelect=!0,this.showContent="auto",this.searchPlaceholder="Search",this.searchText="No Results",this.searchingText="Searching...",this.placeholderText="Select Value",this.allowDeselect=!1,this.allowDeselectOption=!1,this.hideSelectedOption=!1,this.deselectLabel="x",this.isEnabled=!0,this.valuesUseText=!1,this.showOptionTooltips=!1,this.selectByGroup=!1,this.limit=0,this.timeoutDelay=200,this.addToBody=!1,this.main="ss-main",this.singleSelected="ss-single-selected",this.arrow="ss-arrow",this.multiSelected="ss-multi-selected",this.add="ss-add",this.plus="ss-plus",this.values="ss-values",this.value="ss-value",this.valueText="ss-value-text",this.valueDelete="ss-value-delete",this.content="ss-content",this.open="ss-open",this.openAbove="ss-open-above",this.openBelow="ss-open-below",this.search="ss-search",this.searchHighlighter="ss-search-highlight",this.addable="ss-addable",this.list="ss-list",this.optgroup="ss-optgroup",this.optgroupLabel="ss-optgroup-label",this.optgroupLabelSelectable="ss-optgroup-label-selectable",this.option="ss-option",this.optionSelected="ss-option-selected",this.highlighted="ss-highlighted",this.disabled="ss-disabled",this.hide="ss-hide",this.id="ss-"+Math.floor(1e5*Math.random()),this.style=t.select.style.cssText,this.class=t.select.className.split(" "),this.isMultiple=t.select.multiple,this.isAjax=t.isAjax,this.showSearch=!1!==t.showSearch,this.searchFocus=!1!==t.searchFocus,this.searchHighlight=!0===t.searchHighlight,this.closeOnSelect=!1!==t.closeOnSelect,t.showContent&&(this.showContent=t.showContent),this.isEnabled=!1!==t.isEnabled,t.searchPlaceholder&&(this.searchPlaceholder=t.searchPlaceholder),t.searchText&&(this.searchText=t.searchText),t.searchingText&&(this.searchingText=t.searchingText),t.placeholderText&&(this.placeholderText=t.placeholderText),this.allowDeselect=!0===t.allowDeselect,this.allowDeselectOption=!0===t.allowDeselectOption,this.hideSelectedOption=!0===t.hideSelectedOption,t.deselectLabel&&(this.deselectLabel=t.deselectLabel),t.valuesUseText&&(this.valuesUseText=t.valuesUseText),t.showOptionTooltips&&(this.showOptionTooltips=t.showOptionTooltips),t.selectByGroup&&(this.selectByGroup=t.selectByGroup),t.limit&&(this.limit=t.limit),t.searchFilter&&(this.searchFilter=t.searchFilter),null!=t.timeoutDelay&&(this.timeoutDelay=t.timeoutDelay),this.addToBody=!0===t.addToBody}return Object(s["a"])(e,[{key:"searchFilter",value:function(e,t){return-1!==e.text.toLowerCase().indexOf(t.toLowerCase())}}]),e}()),o=(i("4160"),i("b64b"),i("159b"),i("53ca"));i("99af"),i("4d63"),i("25f0"),i("466d"),i("5319"),i("498a");function r(e,t){function i(e,t){return t&&e&&e.classList&&e.classList.contains(t)?e:null}function n(e,t){return e&&e!==document?i(e,t)?e:n(e.parentNode,t):null}return i(e,t)||n(e,t)}function c(e,t){var i=e.scrollTop+e.offsetTop,n=i+e.clientHeight,a=t.offsetTop,s=a+t.clientHeight;a<i?e.scrollTop-=i-a:s>n&&(e.scrollTop+=s-n)}function d(e,t,i){var n=e.offsetHeight,a=e.getBoundingClientRect(),s=i?a.top:a.top-n,l=i?a.bottom:a.bottom+n;return s<=0?"below":l>=window.innerHeight?"above":i?t:"below"}function h(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var o=self,r=function(){t=null,n||e.apply(o,s)},c=n&&!t;clearTimeout(t),t=setTimeout(r,i),c&&e.apply(o,s)}}function u(e,t,i){if(!Array.isArray(e))return e[t]===i;var a,s=Object(n["a"])(e);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(l&&l[t]&&l[t]===i)return!0}}catch(o){s.e(o)}finally{s.f()}return!1}function f(e,t,i){var n=e,a=new RegExp("("+t.trim()+")(?![^<]*>[^<>]*</)","i");if(!e.match(a))return e;var s=e.match(a).index,l=s+e.match(a)[0].toString().length,o=e.substring(s,l);return n=n.replace(a,'<mark class="'.concat(i,'">').concat(o,"</mark>")),n}function m(e){var t=e.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(function(e){return"-"+e.toLowerCase()}));return e[0]===e[0].toUpperCase()?t.substring(1):t}(function(){var e=window;function t(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}"function"!==typeof e.CustomEvent&&(t.prototype=e.Event.prototype,e.CustomEvent=t)})();var v=function(){function e(t){Object(a["a"])(this,e),this.triggerMutationObserver=!0,this.element=t.select,this.main=t.main,this.element.disabled&&(this.main.config.isEnabled=!1),this.addAttributes(),this.addEventListeners(),this.mutationObserver=null,this.addMutationObserver();var i=this.element;i.slim=t.main}return Object(s["a"])(e,[{key:"setValue",value:function(){if(this.main.data.getSelected()){if(this.main.config.isMultiple){var e,t=this.main.data.getSelected(),i=this.element.options,a=Object(n["a"])(i);try{for(a.s();!(e=a.n()).done;){var s=e.value;s.selected=!1;var l,o=Object(n["a"])(t);try{for(o.s();!(l=o.n()).done;){var r=l.value;r.value===s.value&&(s.selected=!0)}}catch(d){o.e(d)}finally{o.f()}}}catch(d){a.e(d)}finally{a.f()}}else{var c=this.main.data.getSelected();this.element.value=c?c.value:""}this.main.data.isOnChangeEnabled=!1,this.element.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.main.data.isOnChangeEnabled=!0}}},{key:"addAttributes",value:function(){this.element.tabIndex=-1,this.element.style.display="none",this.element.dataset.ssid=this.main.config.id}},{key:"addEventListeners",value:function(){var e=this;this.element.addEventListener("change",(function(t){e.main.data.setSelectedFromSelect(),e.main.render()}))}},{key:"addMutationObserver",value:function(){var e=this;this.main.config.isAjax||(this.mutationObserver=new MutationObserver((function(t){e.triggerMutationObserver&&(e.main.data.parseSelectData(),e.main.data.setSelectedFromSelect(),e.main.render(),t.forEach((function(t){"class"===t.attributeName&&e.main.slim.updateContainerDivClass(e.main.slim.container)})))})),this.observeMutationObserver())}},{key:"observeMutationObserver",value:function(){this.mutationObserver&&this.mutationObserver.observe(this.element,{attributes:!0,childList:!0,characterData:!0})}},{key:"disconnectMutationObserver",value:function(){this.mutationObserver&&this.mutationObserver.disconnect()}},{key:"create",value:function(e){this.element.innerHTML="";var t,i=Object(n["a"])(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.hasOwnProperty("options")){var s=a,l=document.createElement("optgroup");if(l.label=s.label,s.options){var o,r=Object(n["a"])(s.options);try{for(r.s();!(o=r.n()).done;){var c=o.value;l.appendChild(this.createOption(c))}}catch(d){r.e(d)}finally{r.f()}}this.element.appendChild(l)}else this.element.appendChild(this.createOption(a))}}catch(d){i.e(d)}finally{i.f()}}},{key:"createOption",value:function(e){var t=document.createElement("option");return t.value=""!==e.value?e.value:e.text,t.innerHTML=e.innerHTML||e.text,e.selected&&(t.selected=e.selected),!1===e.display&&(t.style.display="none"),e.disabled&&(t.disabled=!0),e.placeholder&&t.setAttribute("data-placeholder","true"),e.mandatory&&t.setAttribute("data-mandatory","true"),e.class&&e.class.split(" ").forEach((function(e){t.classList.add(e)})),e.data&&"object"===Object(o["a"])(e.data)&&Object.keys(e.data).forEach((function(i){t.setAttribute("data-"+m(i),e.data[i])})),t}}]),e}(),p=(i("a434"),i("4de4"),i("d81d"),i("fb6a"),function(){function e(t){Object(a["a"])(this,e),this.contentOpen=!1,this.contentPosition="below",this.isOnChangeEnabled=!0,this.main=t.main,this.searchValue="",this.data=[],this.filtered=null,this.parseSelectData(),this.setSelectedFromSelect()}return Object(s["a"])(e,[{key:"newOption",value:function(e){return{id:e.id?e.id:String(Math.floor(1e8*Math.random())),value:e.value?e.value:"",text:e.text?e.text:"",innerHTML:e.innerHTML?e.innerHTML:"",selected:!!e.selected&&e.selected,display:void 0===e.display||e.display,disabled:!!e.disabled&&e.disabled,placeholder:!!e.placeholder&&e.placeholder,class:e.class?e.class:void 0,data:e.data?e.data:{},mandatory:!!e.mandatory&&e.mandatory}}},{key:"add",value:function(e){this.data.push({id:String(Math.floor(1e8*Math.random())),value:e.value,text:e.text,innerHTML:"",selected:!1,display:!0,disabled:!1,placeholder:!1,class:void 0,mandatory:e.mandatory,data:{}})}},{key:"parseSelectData",value:function(){this.data=[];var e,t=this.main.select.element.childNodes,i=Object(n["a"])(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;if("OPTGROUP"===a.nodeName){var s,l=a,o={label:l.label,options:[]},r=a.childNodes,c=Object(n["a"])(r);try{for(c.s();!(s=c.n()).done;){var d=s.value;if("OPTION"===d.nodeName){var h=this.pullOptionData(d);o.options.push(h),h.placeholder&&""!==h.text.trim()&&(this.main.config.placeholderText=h.text)}}}catch(f){c.e(f)}finally{c.f()}this.data.push(o)}else if("OPTION"===a.nodeName){var u=this.pullOptionData(a);this.data.push(u),u.placeholder&&""!==u.text.trim()&&(this.main.config.placeholderText=u.text)}}}catch(f){i.e(f)}finally{i.f()}}},{key:"pullOptionData",value:function(e){return{id:!!e.dataset&&e.dataset.id||String(Math.floor(1e8*Math.random())),value:e.value,text:e.text,innerHTML:e.innerHTML,selected:e.selected,disabled:e.disabled,placeholder:"true"===e.dataset.placeholder,class:e.className,style:e.style.cssText,data:e.dataset,mandatory:!!e.dataset&&"true"===e.dataset.mandatory}}},{key:"setSelectedFromSelect",value:function(){if(this.main.config.isMultiple){var e,t=this.main.select.element.options,i=[],a=Object(n["a"])(t);try{for(a.s();!(e=a.n()).done;){var s=e.value;if(s.selected){var l=this.getObjectFromData(s.value,"value");l&&l.id&&i.push(l.id)}}}catch(d){a.e(d)}finally{a.f()}this.setSelected(i,"id")}else{var o=this.main.select.element;if(-1!==o.selectedIndex){var r=o.options[o.selectedIndex],c=r.value;this.setSelected(c,"value")}}}},{key:"setSelected",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",a=Object(n["a"])(this.data);try{for(a.s();!(t=a.n()).done;){var s=t.value;if(s.hasOwnProperty("label")){if(s.hasOwnProperty("options")){var l=s.options;if(l){var o,r=Object(n["a"])(l);try{for(r.s();!(o=r.n()).done;){var c=o.value;c.placeholder||(c.selected=this.shouldBeSelected(c,e,i))}}catch(d){r.e(d)}finally{r.f()}}}}else s.selected=this.shouldBeSelected(s,e,i)}}catch(d){a.e(d)}finally{a.f()}}},{key:"shouldBeSelected",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";if(Array.isArray(t)){var a,s=Object(n["a"])(t);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(i in e&&String(e[i])===String(l))return!0}}catch(o){s.e(o)}finally{s.f()}}else if(i in e&&String(e[i])===String(t))return!0;return!1}},{key:"getSelected",value:function(){var e,t={text:"",placeholder:this.main.config.placeholderText},i=[],a=Object(n["a"])(this.data);try{for(a.s();!(e=a.n()).done;){var s=e.value;if(s.hasOwnProperty("label")){if(s.hasOwnProperty("options")){var l=s.options;if(l){var o,r=Object(n["a"])(l);try{for(r.s();!(o=r.n()).done;){var c=o.value;c.selected&&(this.main.config.isMultiple?i.push(c):t=c)}}catch(d){r.e(d)}finally{r.f()}}}}else s.selected&&(this.main.config.isMultiple?i.push(s):t=s)}}catch(d){a.e(d)}finally{a.f()}return this.main.config.isMultiple?i:t}},{key:"addToSelected",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";if(this.main.config.isMultiple){var i=[],a=this.getSelected();if(Array.isArray(a)){var s,l=Object(n["a"])(a);try{for(l.s();!(s=l.n()).done;){var o=s.value;i.push(o[t])}}catch(r){l.e(r)}finally{l.f()}}i.push(e),this.setSelected(i,t)}}},{key:"removeFromSelected",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";if(this.main.config.isMultiple){var i,a=[],s=this.getSelected(),l=Object(n["a"])(s);try{for(l.s();!(i=l.n()).done;){var o=i.value;String(o[t])!==String(e)&&a.push(o[t])}}catch(r){l.e(r)}finally{l.f()}this.setSelected(a,t)}}},{key:"onDataChange",value:function(){this.main.onChange&&this.isOnChangeEnabled&&this.main.onChange(JSON.parse(JSON.stringify(this.getSelected())))}},{key:"getObjectFromData",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",a=Object(n["a"])(this.data);try{for(a.s();!(t=a.n()).done;){var s=t.value;if(i in s&&String(s[i])===String(e))return s;if(s.hasOwnProperty("options")){var l=s;if(l.options){var o,r=Object(n["a"])(l.options);try{for(r.s();!(o=r.n()).done;){var c=o.value;if(String(c[i])===String(e))return c}}catch(d){r.e(d)}finally{r.f()}}}}}catch(d){a.e(d)}finally{a.f()}return null}},{key:"search",value:function(e){if(this.searchValue=e,""!==e.trim()){var t=this.main.config.searchFilter,i=this.data.slice(0);e=e.trim();var n=i.map((function(i){if(i.hasOwnProperty("options")){var n=i,a=[];if(n.options&&(a=n.options.filter((function(i){return t(i,e)}))),0!==a.length){var s=Object.assign({},n);return s.options=a,s}}if(i.hasOwnProperty("text")){var l=i;if(t(l,e))return i}return null}));this.filtered=n.filter((function(e){return e}))}else this.filtered=null}}]),e}());function g(e){if(!e)return console.error("Data must be an array of objects"),!1;var t,i=!1,a=0,s=Object(n["a"])(e);try{for(s.s();!(t=s.n()).done;){var l=t.value;if(l.hasOwnProperty("label")){if(l.hasOwnProperty("options")){var o=l,r=o.options;if(r){var c,d=Object(n["a"])(r);try{for(d.s();!(c=d.n()).done;){var h=c.value;i=b(h),i||a++}}catch(f){d.e(f)}finally{d.f()}}}}else{var u=l;i=b(u),i||a++}}}catch(f){s.e(f)}finally{s.f()}return 0===a}function b(e){return void 0!==e.text||(console.error("Data object option must have at least have a text value. Check object: "+JSON.stringify(e)),!1)}var y=function(){function e(t){Object(a["a"])(this,e),this.main=t.main,this.container=this.containerDiv(),this.content=this.contentDiv(),this.search=this.searchDiv(),this.list=this.listDiv(),this.options(),this.singleSelected=null,this.multiSelected=null,this.main.config.isMultiple?(this.multiSelected=this.multiSelectedDiv(),this.multiSelected&&this.container.appendChild(this.multiSelected.container)):(this.singleSelected=this.singleSelectedDiv(),this.container.appendChild(this.singleSelected.container)),this.main.config.addToBody?(this.content.classList.add(this.main.config.id),document.body.appendChild(this.content)):this.container.appendChild(this.content),this.content.appendChild(this.search.container),this.content.appendChild(this.list)}return Object(s["a"])(e,[{key:"containerDiv",value:function(){var e=document.createElement("div");return e.style.cssText=this.main.config.style,this.updateContainerDivClass(e),e}},{key:"updateContainerDivClass",value:function(e){this.main.config.class=this.main.select.element.className.split(" "),e.className="",e.classList.add(this.main.config.id),e.classList.add(this.main.config.main);var t,i=Object(n["a"])(this.main.config.class);try{for(i.s();!(t=i.n()).done;){var a=t.value;""!==a.trim()&&e.classList.add(a)}}catch(s){i.e(s)}finally{i.f()}}},{key:"singleSelectedDiv",value:function(){var e=this,t=document.createElement("div");t.classList.add(this.main.config.singleSelected);var i=document.createElement("span");i.classList.add("placeholder"),t.appendChild(i);var n=document.createElement("span");n.innerHTML=this.main.config.deselectLabel,n.classList.add("ss-deselect"),n.onclick=function(t){t.stopPropagation(),e.main.config.isEnabled&&e.main.set("")},t.appendChild(n);var a=document.createElement("span");a.classList.add(this.main.config.arrow);var s=document.createElement("span");return s.classList.add("arrow-down"),a.appendChild(s),t.appendChild(a),t.onclick=function(){e.main.config.isEnabled&&(e.main.data.contentOpen?e.main.close():e.main.open())},{container:t,placeholder:i,deselect:n,arrowIcon:{container:a,arrow:s}}}},{key:"placeholder",value:function(){var e=this.main.data.getSelected();if(null===e||e&&e.placeholder){var t=document.createElement("span");t.classList.add(this.main.config.disabled),t.innerHTML=this.main.config.placeholderText,this.singleSelected&&(this.singleSelected.placeholder.innerHTML=t.outerHTML)}else{var i="";e&&(i=e.innerHTML&&!0!==this.main.config.valuesUseText?e.innerHTML:e.text),this.singleSelected&&(this.singleSelected.placeholder.innerHTML=e?i:"")}}},{key:"deselect",value:function(){if(this.singleSelected){if(!this.main.config.allowDeselect)return void this.singleSelected.deselect.classList.add("ss-hide");""===this.main.selected()?this.singleSelected.deselect.classList.add("ss-hide"):this.singleSelected.deselect.classList.remove("ss-hide")}}},{key:"multiSelectedDiv",value:function(){var e=this,t=document.createElement("div");t.classList.add(this.main.config.multiSelected);var i=document.createElement("div");i.classList.add(this.main.config.values),t.appendChild(i);var n=document.createElement("div");n.classList.add(this.main.config.add);var a=document.createElement("span");return a.classList.add(this.main.config.plus),a.onclick=function(t){e.main.data.contentOpen&&(e.main.close(),t.stopPropagation())},n.appendChild(a),t.appendChild(n),t.onclick=function(t){if(e.main.config.isEnabled){var i=t.target;i.classList.contains(e.main.config.valueDelete)||(e.main.data.contentOpen?e.main.close():e.main.open())}},{container:t,values:i,add:n,plus:a}}},{key:"values",value:function(){if(this.multiSelected){var e,t,i=this.multiSelected.values.childNodes,a=this.main.data.getSelected(),s=[],l=Object(n["a"])(i);try{for(l.s();!(t=l.n()).done;){var o=t.value;e=!0;var r,c=Object(n["a"])(a);try{for(c.s();!(r=c.n()).done;){var d=r.value;String(d.id)===String(o.dataset.id)&&(e=!1)}}catch(y){c.e(y)}finally{c.f()}e&&s.push(o)}}catch(y){l.e(y)}finally{l.f()}for(var h=0,u=s;h<u.length;h++){var f=u[h];f.classList.add("ss-out"),this.multiSelected.values.removeChild(f)}i=this.multiSelected.values.childNodes;for(var m=0;m<a.length;m++){e=!1;var v,p=Object(n["a"])(i);try{for(p.s();!(v=p.n()).done;){var g=v.value;String(a[m].id)===String(g.dataset.id)&&(e=!0)}}catch(y){p.e(y)}finally{p.f()}e||(0!==i.length&&HTMLElement.prototype.insertAdjacentElement?0===m?this.multiSelected.values.insertBefore(this.valueDiv(a[m]),i[m]):i[m-1].insertAdjacentElement("afterend",this.valueDiv(a[m])):this.multiSelected.values.appendChild(this.valueDiv(a[m])))}if(0===a.length){var b=document.createElement("span");b.classList.add(this.main.config.disabled),b.innerHTML=this.main.config.placeholderText,this.multiSelected.values.innerHTML=b.outerHTML}}}},{key:"valueDiv",value:function(e){var t=this,i=document.createElement("div");i.classList.add(this.main.config.value),i.dataset.id=e.id;var n=document.createElement("span");if(n.classList.add(this.main.config.valueText),n.innerHTML=e.innerHTML&&!0!==this.main.config.valuesUseText?e.innerHTML:e.text,i.appendChild(n),!e.mandatory){var a=document.createElement("span");a.classList.add(this.main.config.valueDelete),a.innerHTML=this.main.config.deselectLabel,a.onclick=function(i){i.preventDefault(),i.stopPropagation();var n=!1;if(t.main.beforeOnChange||(n=!0),t.main.beforeOnChange){for(var a=t.main.data.getSelected(),s=JSON.parse(JSON.stringify(a)),l=0;l<s.length;l++)s[l].id===e.id&&s.splice(l,1);var o=t.main.beforeOnChange(s);!1!==o&&(n=!0)}n&&(t.main.data.removeFromSelected(e.id,"id"),t.main.render(),t.main.select.setValue(),t.main.data.onDataChange())},i.appendChild(a)}return i}},{key:"contentDiv",value:function(){var e=document.createElement("div");return e.classList.add(this.main.config.content),e}},{key:"searchDiv",value:function(){var e=this,t=document.createElement("div"),i=document.createElement("input"),n=document.createElement("div");t.classList.add(this.main.config.search);var a={container:t,input:i};return this.main.config.showSearch||(t.classList.add(this.main.config.hide),i.readOnly=!0),i.type="search",i.placeholder=this.main.config.searchPlaceholder,i.tabIndex=0,i.setAttribute("aria-label",this.main.config.searchPlaceholder),i.setAttribute("autocapitalize","off"),i.setAttribute("autocomplete","off"),i.setAttribute("autocorrect","off"),i.onclick=function(t){setTimeout((function(){var i=t.target;""===i.value&&e.main.search("")}),10)},i.onkeydown=function(t){"ArrowUp"===t.key?(e.main.open(),e.highlightUp(),t.preventDefault()):"ArrowDown"===t.key?(e.main.open(),e.highlightDown(),t.preventDefault()):"Tab"===t.key?e.main.data.contentOpen?e.main.close():setTimeout((function(){e.main.close()}),e.main.config.timeoutDelay):"Enter"===t.key&&t.preventDefault()},i.onkeyup=function(t){var a=t.target;if("Enter"===t.key){if(e.main.addable&&t.ctrlKey)return n.click(),t.preventDefault(),void t.stopPropagation();var s=e.list.querySelector("."+e.main.config.highlighted);s&&s.click()}else"ArrowUp"===t.key||"ArrowDown"===t.key||("Escape"===t.key?e.main.close():e.main.config.showSearch&&e.main.data.contentOpen?e.main.search(a.value):i.value="");t.preventDefault(),t.stopPropagation()},i.onfocus=function(){e.main.open()},t.appendChild(i),this.main.addable&&(n.classList.add(this.main.config.addable),n.innerHTML="+",n.onclick=function(t){if(e.main.addable){t.preventDefault(),t.stopPropagation();var i=e.search.input.value;if(""===i.trim())return void e.search.input.focus();var n=e.main.addable(i),a="";if(!n)return;if("object"===Object(o["a"])(n)){var s=b(n);s&&(e.main.addData(n),a=n.value?n.value:n.text)}else e.main.addData(e.main.data.newOption({text:n,value:n})),a=n;e.main.search(""),setTimeout((function(){e.main.set(a,"value",!1,!1)}),100),e.main.config.closeOnSelect&&setTimeout((function(){e.main.close()}),100)}},t.appendChild(n),a.addable=n),a}},{key:"highlightUp",value:function(){var e=this.list.querySelector("."+this.main.config.highlighted),t=null;if(e){t=e.previousSibling;while(null!==t){if(!t.classList.contains(this.main.config.disabled))break;t=t.previousSibling}}else{var i=this.list.querySelectorAll("."+this.main.config.option+":not(."+this.main.config.disabled+")");t=i[i.length-1]}if(t&&t.classList.contains(this.main.config.optgroupLabel)&&(t=null),null===t){var n=e.parentNode;if(n.classList.contains(this.main.config.optgroup)&&n.previousSibling){var a=n.previousSibling.querySelectorAll("."+this.main.config.option+":not(."+this.main.config.disabled+")");a.length&&(t=a[a.length-1])}}t&&(e&&e.classList.remove(this.main.config.highlighted),t.classList.add(this.main.config.highlighted),c(this.list,t))}},{key:"highlightDown",value:function(){var e=this.list.querySelector("."+this.main.config.highlighted),t=null;if(e){t=e.nextSibling;while(null!==t){if(!t.classList.contains(this.main.config.disabled))break;t=t.nextSibling}}else t=this.list.querySelector("."+this.main.config.option+":not(."+this.main.config.disabled+")");if(null===t&&null!==e){var i=e.parentNode;if(i.classList.contains(this.main.config.optgroup)&&i.nextSibling){var n=i.nextSibling;t=n.querySelector("."+this.main.config.option+":not(."+this.main.config.disabled+")")}}t&&(e&&e.classList.remove(this.main.config.highlighted),t.classList.add(this.main.config.highlighted),c(this.list,t))}},{key:"listDiv",value:function(){var e=document.createElement("div");return e.classList.add(this.main.config.list),e}},{key:"options",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=this.main.data.filtered||this.main.data.data;if(this.list.innerHTML="",""!==t){var a=document.createElement("div");return a.classList.add(this.main.config.option),a.classList.add(this.main.config.disabled),a.innerHTML=t,void this.list.appendChild(a)}if(this.main.config.isAjax&&this.main.config.isSearching){var s=document.createElement("div");return s.classList.add(this.main.config.option),s.classList.add(this.main.config.disabled),s.innerHTML=this.main.config.searchingText,void this.list.appendChild(s)}if(0===i.length){var l=document.createElement("div");return l.classList.add(this.main.config.option),l.classList.add(this.main.config.disabled),l.innerHTML=this.main.config.searchText,void this.list.appendChild(l)}var o,r=Object(n["a"])(i);try{for(r.s();!(o=r.n()).done;){var c=o.value;c.hasOwnProperty("label")?function(){var t=c,i=document.createElement("div");i.classList.add(e.main.config.optgroup);var a=document.createElement("div");a.classList.add(e.main.config.optgroupLabel),e.main.config.selectByGroup&&e.main.config.isMultiple&&a.classList.add(e.main.config.optgroupLabelSelectable),a.innerHTML=t.label,i.appendChild(a);var s=t.options;if(s){var l,o=Object(n["a"])(s);try{for(o.s();!(l=o.n()).done;){var r=l.value;i.appendChild(e.option(r))}}catch(h){o.e(h)}finally{o.f()}if(e.main.config.selectByGroup&&e.main.config.isMultiple){var d=e;a.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();var t,a=Object(n["a"])(i.children);try{for(a.s();!(t=a.n()).done;){var s=t.value;-1!==s.className.indexOf(d.main.config.option)&&s.click()}}catch(h){a.e(h)}finally{a.f()}}))}}e.list.appendChild(i)}():this.list.appendChild(this.option(c))}}catch(d){r.e(d)}finally{r.f()}}},{key:"option",value:function(e){if(e.placeholder){var t=document.createElement("div");return t.classList.add(this.main.config.option),t.classList.add(this.main.config.hide),t}var i=document.createElement("div");i.classList.add(this.main.config.option),e.class&&e.class.split(" ").forEach((function(e){i.classList.add(e)})),e.style&&(i.style.cssText=e.style);var n=this.main.data.getSelected();i.dataset.id=e.id,this.main.config.searchHighlight&&this.main.slim&&e.innerHTML&&""!==this.main.slim.search.input.value.trim()?i.innerHTML=f(e.innerHTML,this.main.slim.search.input.value,this.main.config.searchHighlighter):e.innerHTML&&(i.innerHTML=e.innerHTML),this.main.config.showOptionTooltips&&i.textContent&&i.setAttribute("title",i.textContent);var a=this;i.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation();var i=this,s=i.dataset.id;if(!0===e.selected&&a.main.config.allowDeselectOption){var l=!1;if(a.main.beforeOnChange&&a.main.config.isMultiple||(l=!0),a.main.beforeOnChange&&a.main.config.isMultiple){for(var o=a.main.data.getSelected(),r=JSON.parse(JSON.stringify(o)),c=0;c<r.length;c++)r[c].id===s&&r.splice(c,1);var d=a.main.beforeOnChange(r);!1!==d&&(l=!0)}l&&(a.main.config.isMultiple?(a.main.data.removeFromSelected(s,"id"),a.main.render(),a.main.select.setValue(),a.main.data.onDataChange()):a.main.set(""))}else{if(e.disabled||e.selected)return;if(a.main.config.limit&&Array.isArray(n)&&a.main.config.limit<=n.length)return;if(a.main.beforeOnChange){var h,u=JSON.parse(JSON.stringify(a.main.data.getObjectFromData(s)));u.selected=!0,a.main.config.isMultiple?(h=JSON.parse(JSON.stringify(n)),h.push(u)):h=JSON.parse(JSON.stringify(u));var f=a.main.beforeOnChange(h);!1!==f&&a.main.set(s,"id",a.main.config.closeOnSelect)}else a.main.set(s,"id",a.main.config.closeOnSelect)}}));var s=n&&u(n,"id",e.id);return(e.disabled||s)&&(i.onclick=null,a.main.config.allowDeselectOption||i.classList.add(this.main.config.disabled),a.main.config.hideSelectedOption&&i.classList.add(this.main.config.hide)),s?i.classList.add(this.main.config.optionSelected):i.classList.remove(this.main.config.optionSelected),i}}]),e}(),S=function(){function e(t){var i=this;Object(a["a"])(this,e),this.ajax=null,this.addable=null,this.beforeOnChange=null,this.onChange=null,this.beforeOpen=null,this.afterOpen=null,this.beforeClose=null,this.afterClose=null,this.windowScroll=h((function(e){i.data.contentOpen&&("above"===d(i.slim.content,i.data.contentPosition,i.data.contentOpen)?i.moveContentAbove():i.moveContentBelow())})),this.documentClick=function(e){e.target&&!r(e.target,i.config.id)&&i.close()};var n=this.validate(t);n.dataset.ssid&&this.destroy(n.dataset.ssid),t.ajax&&(this.ajax=t.ajax),t.addable&&(this.addable=t.addable),this.config=new l({select:n,isAjax:!!t.ajax,showSearch:t.showSearch,searchPlaceholder:t.searchPlaceholder,searchText:t.searchText,searchingText:t.searchingText,searchFocus:t.searchFocus,searchHighlight:t.searchHighlight,searchFilter:t.searchFilter,closeOnSelect:t.closeOnSelect,showContent:t.showContent,placeholderText:t.placeholder,allowDeselect:t.allowDeselect,allowDeselectOption:t.allowDeselectOption,hideSelectedOption:t.hideSelectedOption,deselectLabel:t.deselectLabel,isEnabled:t.isEnabled,valuesUseText:t.valuesUseText,showOptionTooltips:t.showOptionTooltips,selectByGroup:t.selectByGroup,limit:t.limit,timeoutDelay:t.timeoutDelay,addToBody:t.addToBody}),this.select=new v({select:n,main:this}),this.data=new p({main:this}),this.slim=new y({main:this}),this.select.element.parentNode&&this.select.element.parentNode.insertBefore(this.slim.container,this.select.element.nextSibling),t.data?this.setData(t.data):this.render(),document.addEventListener("click",this.documentClick),"auto"===this.config.showContent&&window.addEventListener("scroll",this.windowScroll,!1),t.beforeOnChange&&(this.beforeOnChange=t.beforeOnChange),t.onChange&&(this.onChange=t.onChange),t.beforeOpen&&(this.beforeOpen=t.beforeOpen),t.afterOpen&&(this.afterOpen=t.afterOpen),t.beforeClose&&(this.beforeClose=t.beforeClose),t.afterClose&&(this.afterClose=t.afterClose),this.config.isEnabled||this.disable()}return Object(s["a"])(e,[{key:"validate",value:function(e){var t="string"===typeof e.select?document.querySelector(e.select):e.select;if(!t)throw new Error("Could not find select element");if("SELECT"!==t.tagName)throw new Error("Element isnt of type select");return t}},{key:"selected",value:function(){if(this.config.isMultiple){var e,t=this.data.getSelected(),i=[],a=Object(n["a"])(t);try{for(a.s();!(e=a.n()).done;){var s=e.value;i.push(s.value)}}catch(o){a.e(o)}finally{a.f()}return i}var l=this.data.getSelected();return l?l.value:""}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.config.isMultiple&&!Array.isArray(e)?this.data.addToSelected(e,t):this.data.setSelected(e,t),this.select.setValue(),this.data.onDataChange(),this.render(),i&&this.close()}},{key:"setSelected",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.set(e,t,i,n)}},{key:"setData",value:function(e){var t=g(e);if(t){for(var i=JSON.parse(JSON.stringify(e)),a=this.data.getSelected(),s=0;s<i.length;s++)i[s].value||i[s].placeholder||(i[s].value=i[s].text);if(this.config.isAjax&&a)if(this.config.isMultiple){var l,o=a.reverse(),r=Object(n["a"])(o);try{for(r.s();!(l=r.n()).done;){var c=l.value;i.unshift(c)}}catch(f){r.e(f)}finally{r.f()}}else{i.unshift(a);for(var d=0;d<i.length;d++)i[d].placeholder||i[d].value!==a.value||i[d].text!==a.text||delete i[d];for(var h=!1,u=0;u<i.length;u++)i[u].placeholder&&(h=!0);h||i.unshift({text:"",placeholder:!0})}this.select.create(i),this.data.parseSelectData(),this.data.setSelectedFromSelect()}else console.error("Validation problem on: #"+this.select.element.id)}},{key:"addData",value:function(e){var t=g([e]);t?(this.data.add(this.data.newOption(e)),this.select.create(this.data.data),this.data.parseSelectData(),this.data.setSelectedFromSelect(),this.render()):console.error("Validation problem on: #"+this.select.element.id)}},{key:"open",value:function(){var e=this;if(this.config.isEnabled&&!this.data.contentOpen){if(this.beforeOpen&&this.beforeOpen(),this.config.isMultiple&&this.slim.multiSelected?this.slim.multiSelected.plus.classList.add("ss-cross"):this.slim.singleSelected&&(this.slim.singleSelected.arrowIcon.arrow.classList.remove("arrow-down"),this.slim.singleSelected.arrowIcon.arrow.classList.add("arrow-up")),this.slim[this.config.isMultiple?"multiSelected":"singleSelected"].container.classList.add("above"===this.data.contentPosition?this.config.openAbove:this.config.openBelow),this.config.addToBody){var t=this.slim.container.getBoundingClientRect();this.slim.content.style.top=t.top+t.height+window.scrollY+"px",this.slim.content.style.left=t.left+window.scrollX+"px",this.slim.content.style.width=t.width+"px"}if(this.slim.content.classList.add(this.config.open),"up"===this.config.showContent.toLowerCase()?this.moveContentAbove():"down"===this.config.showContent.toLowerCase()?this.moveContentBelow():"above"===d(this.slim.content,this.data.contentPosition,this.data.contentOpen)?this.moveContentAbove():this.moveContentBelow(),!this.config.isMultiple){var i=this.data.getSelected();if(i){var n=i.id,a=this.slim.list.querySelector('[data-id="'+n+'"]');a&&c(this.slim.list,a)}}setTimeout((function(){e.data.contentOpen=!0,e.config.searchFocus&&e.slim.search.input.focus(),e.afterOpen&&e.afterOpen()}),this.config.timeoutDelay)}}},{key:"close",value:function(){var e=this;this.data.contentOpen&&(this.beforeClose&&this.beforeClose(),this.config.isMultiple&&this.slim.multiSelected?(this.slim.multiSelected.container.classList.remove(this.config.openAbove),this.slim.multiSelected.container.classList.remove(this.config.openBelow),this.slim.multiSelected.plus.classList.remove("ss-cross")):this.slim.singleSelected&&(this.slim.singleSelected.container.classList.remove(this.config.openAbove),this.slim.singleSelected.container.classList.remove(this.config.openBelow),this.slim.singleSelected.arrowIcon.arrow.classList.add("arrow-down"),this.slim.singleSelected.arrowIcon.arrow.classList.remove("arrow-up")),this.slim.content.classList.remove(this.config.open),this.data.contentOpen=!1,this.search(""),setTimeout((function(){e.slim.content.removeAttribute("style"),e.data.contentPosition="below",e.config.isMultiple&&e.slim.multiSelected?(e.slim.multiSelected.container.classList.remove(e.config.openAbove),e.slim.multiSelected.container.classList.remove(e.config.openBelow)):e.slim.singleSelected&&(e.slim.singleSelected.container.classList.remove(e.config.openAbove),e.slim.singleSelected.container.classList.remove(e.config.openBelow)),e.slim.search.input.blur(),e.afterClose&&e.afterClose()}),this.config.timeoutDelay))}},{key:"moveContentAbove",value:function(){var e=0;this.config.isMultiple&&this.slim.multiSelected?e=this.slim.multiSelected.container.offsetHeight:this.slim.singleSelected&&(e=this.slim.singleSelected.container.offsetHeight);var t=this.slim.content.offsetHeight,i=e+t-1;this.slim.content.style.margin="-"+i+"px 0 0 0",this.slim.content.style.height=i-e+1+"px",this.slim.content.style.transformOrigin="center bottom",this.data.contentPosition="above",this.config.isMultiple&&this.slim.multiSelected?(this.slim.multiSelected.container.classList.remove(this.config.openBelow),this.slim.multiSelected.container.classList.add(this.config.openAbove)):this.slim.singleSelected&&(this.slim.singleSelected.container.classList.remove(this.config.openBelow),this.slim.singleSelected.container.classList.add(this.config.openAbove))}},{key:"moveContentBelow",value:function(){this.data.contentPosition="below",this.config.isMultiple&&this.slim.multiSelected?(this.slim.multiSelected.container.classList.remove(this.config.openAbove),this.slim.multiSelected.container.classList.add(this.config.openBelow)):this.slim.singleSelected&&(this.slim.singleSelected.container.classList.remove(this.config.openAbove),this.slim.singleSelected.container.classList.add(this.config.openBelow))}},{key:"enable",value:function(){this.config.isEnabled=!0,this.config.isMultiple&&this.slim.multiSelected?this.slim.multiSelected.container.classList.remove(this.config.disabled):this.slim.singleSelected&&this.slim.singleSelected.container.classList.remove(this.config.disabled),this.select.triggerMutationObserver=!1,this.select.element.disabled=!1,this.slim.search.input.disabled=!1,this.select.triggerMutationObserver=!0}},{key:"disable",value:function(){this.config.isEnabled=!1,this.config.isMultiple&&this.slim.multiSelected?this.slim.multiSelected.container.classList.add(this.config.disabled):this.slim.singleSelected&&this.slim.singleSelected.container.classList.add(this.config.disabled),this.select.triggerMutationObserver=!1,this.select.element.disabled=!0,this.slim.search.input.disabled=!0,this.select.triggerMutationObserver=!0}},{key:"search",value:function(e){if(this.data.searchValue!==e)if(this.slim.search.input.value=e,this.config.isAjax){var t=this;this.config.isSearching=!0,this.render(),this.ajax&&this.ajax(e,(function(i){t.config.isSearching=!1,Array.isArray(i)?(i.unshift({text:"",placeholder:!0}),t.setData(i),t.data.search(e),t.render()):"string"===typeof i?t.slim.options(i):t.render()}))}else this.data.search(e),this.render()}},{key:"setSearchText",value:function(e){this.config.searchText=e}},{key:"render",value:function(){this.config.isMultiple?this.slim.values():(this.slim.placeholder(),this.slim.deselect()),this.slim.options()}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e?document.querySelector("."+e+".ss-main"):this.slim.container,i=e?document.querySelector("[data-ssid=".concat(e,"]")):this.select.element;if(t&&i){document.removeEventListener("click",this.documentClick),"auto"===this.config.showContent&&window.removeEventListener("scroll",this.windowScroll,!1),i.style.display="",delete i.dataset.ssid;var n=i;if(n.slim=null,t.parentElement&&t.parentElement.removeChild(t),this.config.addToBody){var a=e?document.querySelector("."+e+".ss-content"):this.slim.content;if(!a)return;document.body.removeChild(a)}}}}]),e}()},cd49:function(e,t,i){"use strict";i.r(t);i("e260"),i("e6cf"),i("cca6"),i("a79d");var n=i("2b0e"),a=(i("d3b7"),i("8c4f"));n["a"].use(a["a"]);var s=new a["a"]({mode:"history",base:"/",linkActiveClass:"active",routes:[{path:"/",component:function(){return i.e("home").then(i.bind(null,"badb"))}},{path:"/install",component:function(){return i.e("install").then(i.bind(null,"b467"))}},{path:"/selects",component:function(){return i.e("selects").then(i.bind(null,"60e0"))}},{path:"/options",component:function(){return i.e("options").then(i.bind(null,"832f"))}},{path:"/methods",component:function(){return i.e("methods").then(i.bind(null,"cded"))}}]}),l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"app"}},[e._m(0),i("div",{staticClass:"main"},[i("transition",{attrs:{name:"fade",mode:"out-in",appear:""}},[i("router-view")],1)],1),i("div",{staticClass:"footer"},[e._v(" © "+e._s(e.year)+" "),i("a",{staticStyle:{color:"#ffffff"},attrs:{href:"http://webiswhatido.com",target:"_blank"}},[e._v("Brian Voelker")]),e._v(". Slim Select is under the MIT license. ")])])},o=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"header"},[i("div",{staticClass:"text"},[i("div",{staticClass:"logo"},[e._v(" Slim Select ")]),i("div",{staticClass:"tagline"},[e._v(" Slim advanced select dropdown ")])]),i("div",{staticClass:"select-nav"},[i("a",{attrs:{href:"https://github.com/brianvoe/slim-select",target:"_blank"}},[i("img",{attrs:{src:"images/github.png"}})]),i("a",{attrs:{href:"https://www.npmjs.com/package/slim-select",target:"_blank"}},[i("img",{attrs:{src:"images/npm.png"}})]),i("select",{attrs:{id:"select-nav"}})])])}],r=(i("caad"),i("ac1f"),i("2532"),i("5319"),i("ba4b")),c={data:function(){var e=this.$route.path;return{year:(new Date).getFullYear(),navData:[{text:"Home",value:"/",selected:"/"===e},{text:"Installation",value:"install",selected:"/install"===e},{text:"Select Types",value:"selects",selected:"/selects"===e},{text:"Options",value:"options",selected:"/options"===e},{text:"Methods",value:"methods",selected:"/methods"===e}]}},mounted:function(){var e=this;this.$route.query.p&&this.$router.push({path:this.$route.query.p});var t=new r["a"]({select:"#select-nav",showSearch:!1,onChange:function(t){e.$route.path.includes(t.value)||e.$router.push({path:t.value})}});t.setData(this.navData),this.$router.onReady((function(){var i=e.$route.path.replace("/","");""!==i&&t.setSelected(i)}))}},d=c,h=(i("517e"),i("2877")),u=Object(h["a"])(d,l,o,!1,null,null,null),f=u.exports,m=i("c197"),v=i.n(m),p=i("6f35"),g=i.n(p);i("e391"),i("7362"),i("516e"),i("dc22"),i("9d16");new g.a({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),n["a"].mixin({updated:function(){v.a.highlightAll()}}),new n["a"]({router:s,render:function(e){return e(f)}}).$mount("#app")},dc22:function(e,t,i){}});
2
- //# sourceMappingURL=app.8f2b833e.js.map