mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
1.5 KiB
JavaScript
1 line
1.5 KiB
JavaScript
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[1296],{81296:function(t,e,n){"use strict";n.r(e),n.d(e,{KEYBOARD_DID_CLOSE:function(){return r},KEYBOARD_DID_OPEN:function(){return i},copyVisualViewport:function(){return v},keyboardDidClose:function(){return b},keyboardDidOpen:function(){return p},keyboardDidResize:function(){return g},resetKeyboardAssist:function(){return f},setKeyboardClose:function(){return h},setKeyboardOpen:function(){return d},startKeyboardAssist:function(){return s},trackViewportChanges:function(){return y}});var i="ionKeyboardDidShow",r="ionKeyboardDidHide",o={},u={},a=!1,f=function(){o={},u={},a=!1},s=function(t){c(t),t.visualViewport&&(u=v(t.visualViewport),t.visualViewport.onresize=function(){y(t),p()||g(t)?d(t):b(t)&&h(t)})},c=function(t){t.addEventListener("keyboardDidShow",function(e){return d(t,e)}),t.addEventListener("keyboardDidHide",function(){return h(t)})},d=function(t,e){w(t,e),a=!0},h=function(t){l(t),a=!1},p=function(){return!a&&o.width===u.width&&(o.height-u.height)*u.scale>150},g=function(t){return a&&!b(t)},b=function(t){return a&&u.height===t.innerHeight},w=function(t,e){var n=new CustomEvent(i,{detail:{keyboardHeight:e?e.keyboardHeight:t.innerHeight-u.height}});t.dispatchEvent(n)},l=function(t){var e=new CustomEvent(r);t.dispatchEvent(e)},y=function(t){o=Object.assign({},u),u=v(t.visualViewport)},v=function(t){return{width:Math.round(t.width),height:Math.round(t.height),offsetTop:t.offsetTop,offsetLeft:t.offsetLeft,pageTop:t.pageTop,pageLeft:t.pageLeft,scale:t.scale}}}}]); |