!function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=7)}({"./app/assets/es6/pages/icon.js":function(module,exports){eval("class Icon {\r\n\r\n    static init() {\r\n        let searchInput = document.querySelector('#search-input');\r\n        searchInput.addEventListener('keyup', search);\r\n\r\n        // get all title\r\n        let iconDemo = document.querySelectorAll('.icon-demo-col')\r\n        let searchTerm = '';\r\n        let tit = '';\r\n\r\n        function search(e) {\r\n            searchTerm = e.target.value.toLowerCase();\r\n\r\n            iconDemo.forEach((title) => {\r\n                tit = title.textContent.toLowerCase();\r\n                console.log(title)\r\n                tit.includes(searchTerm) ? title.style.display = 'block' : title.style.display = 'none';\r\n            });\r\n        }\r\n        \r\n        function copy(value)  {\r\n            const promise = new Promise((resolve) => {\r\n                let copyTextArea = null;\r\n                try {\r\n                    copyTextArea = document.createElement(\"textarea\");\r\n                    copyTextArea.style.height = '0px';\r\n                    copyTextArea.style.opacity = '0';\r\n                    copyTextArea.style.width = '0px';\r\n                    document.body.appendChild(copyTextArea);\r\n                    copyTextArea.value = value;\r\n                    copyTextArea.select();\r\n                    document.execCommand('copy');\r\n                    resolve(value);\r\n                } finally {\r\n                    if (copyTextArea && copyTextArea.parentNode) {\r\n                        copyTextArea.parentNode.removeChild(copyTextArea);\r\n                    }\r\n                }\r\n            });\r\n    \r\n            return (promise);\r\n        }\r\n\r\n        function showToast() {\r\n            var toastHTML = `\r\n            <div class=\"toast align-items-center fade start-50\" style=\"position: fixed; top: 100px; width: 100px\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\">\r\n                <div class=\"d-flex justify-content-center\">\r\n                    <div class=\"toast-body text-center\">\r\n                        <i class=\"icon-check-circle feather text-success\"></i>\r\n                        <span>Copied</span>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            `\r\n        \r\n            $('#notification-toast').append(toastHTML)\r\n            $('#notification-toast .toast').toast('show');\r\n            setTimeout(function(){ \r\n                $('#notification-toast .toast:first-child').remove();\r\n            }, 1500);\r\n        }\r\n\r\n        $('.icon-demo-col').on('click', (e) => {\r\n            const $this = $(e.currentTarget);\r\n            const copiedString = $this.children('.icon-demo').children('.card-body').children('i')[0].className;\r\n            copy(copiedString).then(() => {\r\n                showToast()\r\n            });\r\n        })\r\n    }\r\n    \r\n}\r\n\r\n$(() => { Icon.init(); });\r\n\r\n\n\n//# sourceURL=webpack:///./app/assets/es6/pages/icon.js?")},7:function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__(/*! C:\\Users\\E\\Desktop\\workspace\\espire\\html\\demo\\app\\assets\\es6\\pages\\icon.js */"./app/assets/es6/pages/icon.js");\n\n\n//# sourceURL=webpack:///multi_./app/assets/es6/pages/icon.js?')}});