{"version":3,"file":"blog.3185b24a807a7683c6c9.js","sources":["webpack:///./Source/FECOM.Web.UI/Scripts/domtools/blog.js"],"sourcesContent":["/* eslint-disable no-unused-vars */\r\n\r\n$('#blog-categories');\r\n\r\n$('.js-blog-category').on('change', function () {\r\n if (this.value !== 'none') {\r\n $(this).closest('form').submit();\r\n }\r\n});\r\n\r\n$('.js-blog-tags').click(function (e) {\r\n e.preventDefault();\r\n $('.js-blog-tags-block').toggleClass('d-none');\r\n});\r\n\r\nwindow.BlogCategory = {\r\n onUpdateSuccess: function (data, status, xhr) {\r\n $('#update-blog-items').remove();\r\n }\r\n};\r\n// // import 'bootstrap-select';\r\n// import React, { Component } from 'react';\r\n// import ReactDom from 'react-dom';\r\n// import PropTypes from 'prop-types';\r\n// import Select from 'react-select';\r\n\r\n// // $.fn.selectpicker.Constructor.BootstrapVersion = '4';\r\n\r\n// class TagSelect extends Component {\r\n\r\n// constructor(props) {\r\n// super(props);\r\n\r\n// this.state = {\r\n// options: this.props.options,\r\n// selected: this.props.selected || [],\r\n// };\r\n// this.handleChange = this.handleChange.bind(this);\r\n// }\r\n\r\n// handleChange() {\r\n\r\n// }\r\n\r\n// render() {\r\n// return (\r\n// \r\n// {\r\n// this.setState({\r\n// selected,\r\n// });\r\n// }}\r\n\r\n// />\r\n//
\r\n// item.value).join(',')}\r\n// />\r\n//
\r\n// );\r\n// }\r\n// }\r\n\r\n// TagSelect.propTypes = {\r\n// options: PropTypes.array,\r\n// multiple: PropTypes.bool,\r\n// selected: PropTypes.array,\r\n// };\r\n\r\n// // export default TagSelect;\r\n\r\n// // $('#blog-categories').selectpicker();\r\n// $('#blog-tags').each(function () {\r\n\r\n// const options = [];\r\n// const selected = [{ value: '3240', label: 'SEN' }];\r\n\r\n// $(this).find('option').each(function () {\r\n// options.push({\r\n// label: $(this).text(),\r\n// value: $(this).attr('value'),\r\n// });\r\n// if ($(this).prop('selected')) {\r\n// // selected.push($(this).attr('value'));\r\n// selected.push({\r\n// label: $(this).text(),\r\n// value: $(this).attr('value'),\r\n// });\r\n// }\r\n// });\r\n\r\n// console.log('options', options);\r\n\r\n// ReactDom.render(\r\n// ,\r\n// $(this).parent()[0]);\r\n\r\n// });\r\n"],"mappings":";;;;;;;;;AAAA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAHA;AAMA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;;;;A","sourceRoot":""}