{"version":3,"sources":["webpack://metronic/../demo1/src/js/pages/crud/forms/widgets/select2.js"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC","file":"js/pages/crud/forms/widgets/select2.js","sourcesContent":["// Class definition\r\nvar KTSelect2 = function() {\r\n // Private functions\r\n var demos = function() {\r\n // basic\r\n $('#kt_select2_1, #kt_select2_1_validate').select2({\r\n placeholder: 'Select a state'\r\n });\r\n\r\n // nested\r\n $('#kt_select2_2, #kt_select2_2_validate').select2({\r\n placeholder: 'Select a state'\r\n });\r\n\r\n // multi select\r\n $('#kt_select2_3, #kt_select2_3_validate').select2({\r\n placeholder: 'Select a state',\r\n });\r\n\r\n // basic\r\n $('#kt_select2_4').select2({\r\n placeholder: \"Select a state\",\r\n allowClear: true\r\n });\r\n\r\n // loading data from array\r\n var data = [{\r\n id: 0,\r\n text: 'Enhancement'\r\n }, {\r\n id: 1,\r\n text: 'Bug'\r\n }, {\r\n id: 2,\r\n text: 'Duplicate'\r\n }, {\r\n id: 3,\r\n text: 'Invalid'\r\n }, {\r\n id: 4,\r\n text: 'Wontfix'\r\n }];\r\n\r\n $('#kt_select2_5').select2({\r\n placeholder: \"Select a value\",\r\n data: data\r\n });\r\n\r\n // loading remote data\r\n\r\n function formatRepo(repo) {\r\n if (repo.loading) return repo.text;\r\n var markup = \"