{"version":3,"sources":["webpack:///04b0837f920f898882dc.js","webpack:///./LeLab.Gcv.Web/src/common/com-staging-warn/staging-warn.js"],"names":["webpackJsonp","261","module","exports","__webpack_require__","$","message","$window","window","$body","$warn","mouseX","mouseY","viewportOffset","IsUpdateRequired","append","updateDisplay","left","right","top","bottom","hide","show","centerX","centerY","distance","Math","sqrt","pow","css","updateOffset","get","getBoundingClientRect","render","requestAnimationFrame","on","e","clientX","clientY"],"mappings":"AAAAA,cAAc,IAERC,IACA,SAAUC,EAAQC,EAASC,GAEjC,YCLA,IAAIC,GAAID,EAAQ,EAEhBF,GAAOC,QAAU,SAAUG,GAEvB,GACIC,GAAUF,EAAEG,QACZC,EAAQJ,EAAE,QACVK,EAAQL,EAAE,iGAAmGC,EAAU,qBACvHK,EAAS,EACTC,EAAS,EACTC,EAAiB,KACjBC,GAAmB,CAEvBL,GAAMM,OAAOL,EAEb,IAAIM,GAAgB,WAGhB,GAAIL,EAAUE,EAAeI,KAAO,IAC7BN,EAAUE,EAAeK,MAAQ,IACjCN,EAAUC,EAAeM,IAAM,IAC/BP,EAAUC,EAAeO,OAAS,GAErC,WADAV,GAAMW,MAGVX,GAAMY,MAGN,IAAIC,GAAUV,EAAeI,MAASJ,EAAeK,MAAQL,EAAeI,MAAQ,EAChFO,EAAUX,EAAeM,KAAQN,EAAeO,OAASP,EAAeM,KAAO,EAC/EM,EAAWC,KAAKC,KAAKD,KAAKE,IAAKL,EAAUZ,EAAS,GAAKe,KAAKE,IAAKJ,EAAUZ,EAAS,GAEpFa,GADmB,IAEnBf,EAAMmB,IAAI,UAAYJ,EAFH,KAInBf,EAAMmB,IAAI,UAAW,IAIzBC,EAAe,WACfpB,EAAMY,OACNT,EAAiBH,EAAMqB,IAAI,GAAGC,wBAElCF,IAEA,IAAIG,GAAS,QAATA,KACInB,IACAE,IACAF,GAAmB,GAEvBN,OAAO0B,sBAAsBD,GAEjCzB,QAAO0B,sBAAsBD,GAE7B1B,EAAQ4B,GAAG,yBAA0B,SAAUC,GAC3CzB,EAASyB,EAAEC,QACXzB,EAASwB,EAAEE,QACXxB,GAAmB,IAGvBP,EAAQ4B,GAAG,sBAAuB,SAAUC,GACxCzB,GAAU,EACVC,GAAU,EACVkB,IACAhB,GAAmB","file":"04b0837f920f898882dc.js","sourcesContent":["webpackJsonp([0],{\n\n/***/ 261:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar $ = __webpack_require__(1);\n\nmodule.exports = function (message) {\n\n var _self = this,\n $window = $(window),\n $body = $(\"body\"),\n $warn = $('

' + message + '

'),\n mouseX = 0,\n mouseY = 0,\n viewportOffset = null,\n IsUpdateRequired = true;\n\n $body.append($warn);\n\n var updateDisplay = function updateDisplay() {\n\n // Visibility\n if (mouseX > viewportOffset.left - 20 && mouseX < viewportOffset.right + 20 && mouseY > viewportOffset.top - 20 && mouseY < viewportOffset.bottom + 20) {\n $warn.hide();\n return;\n }\n $warn.show();\n\n // Opacity (base on distance between cursor & center of $warn\n var centerX = viewportOffset.left + (viewportOffset.right - viewportOffset.left) / 2;\n var centerY = viewportOffset.top + (viewportOffset.bottom - viewportOffset.top) / 2;\n var distance = Math.sqrt(Math.pow(centerX - mouseX, 2) + Math.pow(centerY - mouseY, 2));\n var opacityProximity = 300;\n if (distance < opacityProximity) {\n $warn.css(\"opacity\", distance / opacityProximity);\n } else {\n $warn.css(\"opacity\", 1);\n }\n };\n\n var updateOffset = function updateOffset() {\n $warn.show();\n viewportOffset = $warn.get(0).getBoundingClientRect();\n };\n updateOffset();\n\n var render = function render() {\n if (IsUpdateRequired) {\n updateDisplay();\n IsUpdateRequired = false;\n }\n window.requestAnimationFrame(render);\n };\n window.requestAnimationFrame(render);\n\n $window.on(\"mousemove.staging-warn\", function (e) {\n mouseX = e.clientX;\n mouseY = e.clientY;\n IsUpdateRequired = true;\n });\n\n $window.on(\"resize.staging-warn\", function (e) {\n mouseX = -1;\n mouseY = -1;\n updateOffset();\n IsUpdateRequired = true;\n });\n};\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// 04b0837f920f898882dc.js","var $ = require(\"jquery\");\r\n\r\nmodule.exports = function (message) {\r\n\r\n var _self = this,\r\n $window = $(window),\r\n $body = $(\"body\"),\r\n $warn = $('

' + message + '

'),\r\n mouseX = 0,\r\n mouseY = 0,\r\n viewportOffset = null,\r\n IsUpdateRequired = true;\r\n\r\n $body.append($warn);\r\n\r\n var updateDisplay = function () {\r\n\r\n // Visibility\r\n if (mouseX > (viewportOffset.left - 20)\r\n && mouseX < (viewportOffset.right + 20)\r\n && mouseY > (viewportOffset.top - 20)\r\n && mouseY < (viewportOffset.bottom + 20)) {\r\n $warn.hide();\r\n return;\r\n }\r\n $warn.show();\r\n\r\n // Opacity (base on distance between cursor & center of $warn\r\n var centerX = viewportOffset.left + ((viewportOffset.right - viewportOffset.left) / 2);\r\n var centerY = viewportOffset.top + ((viewportOffset.bottom - viewportOffset.top) / 2);\r\n var distance = Math.sqrt(Math.pow((centerX - mouseX), 2) + Math.pow((centerY - mouseY), 2));\r\n var opacityProximity = 300;\r\n if (distance < opacityProximity) {\r\n $warn.css(\"opacity\", (distance / opacityProximity));\r\n } else {\r\n $warn.css(\"opacity\", 1);\r\n }\r\n };\r\n\r\n var updateOffset = function () {\r\n $warn.show();\r\n viewportOffset = $warn.get(0).getBoundingClientRect();\r\n };\r\n updateOffset();\r\n\r\n var render = function () {\r\n if (IsUpdateRequired) {\r\n updateDisplay();\r\n IsUpdateRequired = false;\r\n }\r\n window.requestAnimationFrame(render);\r\n };\r\n window.requestAnimationFrame(render);\r\n\r\n $window.on(\"mousemove.staging-warn\", function (e) {\r\n mouseX = e.clientX;\r\n mouseY = e.clientY;\r\n IsUpdateRequired = true;\r\n });\r\n\r\n $window.on(\"resize.staging-warn\", function (e) {\r\n mouseX = -1;\r\n mouseY = -1;\r\n updateOffset();\r\n IsUpdateRequired = true;\r\n });\r\n\r\n};\r\n\n\n\n// WEBPACK FOOTER //\n// ./LeLab.Gcv.Web/src/common/com-staging-warn/staging-warn.js"],"sourceRoot":""}