Socket
Socket
Sign inDemoInstall

@progress/kendo-popup-common

Package Overview
Dependencies
0
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.9.0-dev.202111301350 to 1.9.0-dev.202112170915

2

dist/cdn/js/kendo-popup-common.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoPopupCommon=e():t.KendoPopupCommon=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"align",(function(){return r})),n.d(e,"addScroll",(function(){return i})),n.d(e,"applyLocationOffset",(function(){return l})),n.d(e,"boundingOffset",(function(){return h})),n.d(e,"isBodyOffset",(function(){return g})),n.d(e,"offsetParent",(function(){return p})),n.d(e,"offset",(function(){return m})),n.d(e,"parents",(function(){return v})),n.d(e,"parentScrollPosition",(function(){return b})),n.d(e,"position",(function(){return x})),n.d(e,"positionWithScroll",(function(){return P})),n.d(e,"removeScroll",(function(){return S})),n.d(e,"restrictToView",(function(){return C})),n.d(e,"scrollPosition",(function(){return w})),n.d(e,"siblingContainer",(function(){return A})),n.d(e,"siblings",(function(){return E})),n.d(e,"zIndex",(function(){return M})),n.d(e,"alignElement",(function(){return X})),n.d(e,"domUtils",(function(){return F})),n.d(e,"utils",(function(){return I})),n.d(e,"positionElement",(function(){return Y})),n.d(e,"getDocumentElement",(function(){return c})),n.d(e,"getWindow",(function(){return f})),n.d(e,"getWindowViewPort",(function(){return s})),n.d(e,"AlignPoint",(function(){return o})),n.d(e,"Collision",(function(){return z}));var o={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},r=function(t){var e=t.anchorRect,n=t.anchorAlign,r=t.elementRect,i=t.elementAlign,l=t.margin;void 0===l&&(l={});var u=n.horizontal,f=n.vertical,c=i.horizontal,a=i.vertical,d=l.horizontal||0,s=l.vertical||0,h=e.top,p=e.left;return f===o.bottom&&(h+=e.height),f!==o.center&&f!==o.middle||(h+=Math.round(e.height/2)),a===o.bottom&&(h-=r.height,s*=-1),a!==o.center&&a!==o.middle||(h-=Math.round(r.height/2),s*=-1),u===o.right&&(p+=e.width),u!==o.center&&u!==o.middle||(p+=Math.round(e.width/2)),c===o.right&&(p-=r.width,d*=-1),c!==o.center&&c!==o.middle||(p-=Math.round(r.width/2),d*=-1),{top:h+s,left:p+d}};function i(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function l(t,e,n){var o=t.top,r=t.left;return n&&(r=0,o=0),{top:o+e.top,left:r+e.left,height:t.height,width:t.width}}function u(t){return t.ownerDocument||t.document||t}var f=function(t){return u(t).defaultView},c=function(t){return u(t).documentElement},a=0;function d(){if(!a&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),a=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return a}function s(t){var e=f(t),n=c(t),o={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=d()),o}var h=function(t){if(!t.getBoundingClientRect){var e=s(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},p=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||c(t)},g=function(t){return p(t)===t.ownerDocument.body},m=function(t){var e=t.getBoundingClientRect(),n=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,i}(t)),{top:o,left:n,height:e.height,width:e.width}},v=function(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n};function w(t){var e=c(t),n=f(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var y=function(t){return t===(t.ownerDocument||{}).body?w(t):{x:t.scrollLeft,y:t.scrollTop}};function b(t){var e=p(t);return e?y(e):{x:0,y:0}}var x=function(t,e){var n=f(t),o=n.getComputedStyle(t),r=m(t),i=e||p(t),l=t.ownerDocument,u=i!==l.body&&i!==l.documentElement,c={top:0,left:0};if("fixed"!==o.position&&u){var a=n.getComputedStyle(i);(c=m(i)).top+=parseInt(a.borderTopWidth,10),c.left+=parseInt(a.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},P=function(t,e,n){void 0===n&&(n=1);var o=e?p(e):null,r=x(t,o),i=r.top,l=r.left,u=r.height,f=r.width,c=function(t,e){return t?y(t):b(e)}(o,t),a=c.x,d=c.y,s=t.ownerDocument,h=o===s.body||o===s.documentElement?1:n;return{top:i+d*h,left:l+a*h,height:u,width:f}};function S(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var z={fit:"fit",flip:"flip"},R=function(t,e,n){var o=0;return t+e>n&&(o=n-(t+e)),t<0&&(o=-t),o},O=function(t){var e=t.offset,n=t.size,r=t.anchorSize,i=t.viewPortSize,l=t.anchorAlignPoint,u=t.elementAlignPoint,f=t.margin,c=0,a=u===o.center||u===o.middle,d=l===o.center||l===o.middle,s=2*f;if(u!==l&&!a&&!d){var h=l===o.top||l===o.left;e<0&&h?e+(c=n+r+s)+n>i&&(c=0):e>=0&&!h&&(e+n>i&&(c+=-(r+n+s)),e+c<0&&(c=0))}return c},C=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,l=t.viewPort,u=t.margin;void 0===u&&(u={});var f=o.top,c=o.left,a=o.height,d=o.width,s=l.height,h=l.width,p=u.horizontal||0,g=u.vertical||0,m=0,v=0,w=i.horizontal===z.flip,y=i.vertical===z.flip;i.vertical===z.fit&&(v+=R(f,a,s)),i.horizontal===z.fit&&(m+=R(c,d,h)),y&&(v+=O({margin:g,offset:f,size:a,anchorSize:e.height,viewPortSize:s,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(m+=O({margin:p,offset:c,size:d,anchorSize:e.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var b=w&&0!==m,x=y&&0!==v;return{flipped:b||x,flip:{horizontal:b,vertical:x},offset:{left:m,top:v}}},E=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},A=function(t,e){for(var n,o,r=v(t),i=e;i&&(n=E(i),!(o=r.reduce((function(t,e){return t.concat(n.filter((function(t){return t===e})))}),[])[0]));)i=i.parentElement;return o};function M(t,e){if(!t||!e)return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}var D,T,W,k=(D=function(t){if(!j())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),o},W=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return W||(T=D.apply(void 0,t),W=!0),T}),j=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},I={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:k,canUseDOM:j},B=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],L=function(){return I.canUseDOM()?window:null},V=/auto|scroll/,H=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},U=function(t){if(!t||!I.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},_=function(){return I.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},F={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:i,align:r,boundingOffset:h,getFontStyles:function(t){var e=L();if(!e||!t)return[];var n=e.getComputedStyle(t);return B.map((function(t){return{key:t,value:n[t]}}))},getWindow:L,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?m(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,o=n.left,r=n.top,i=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var l=m(t);return t.style.left=o,t.style.top=r,t.offsetHeight,t.style.transition=i,l},position:function(t,e,n){return t&&e?P(t,e,n||1):null},removeScroll:S,restrictToView:C,scrollPosition:w,scrollableParents:function(t){var e=[];if(!I.canUseDOM())return e;for(var n=t.parentElement;n;)(V.test(H(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e},getRelativeContextElement:U,stackingElementOffset:function(t){var e=U(t);return e?m(e):null},stackingElementScroll:function(t){var e=U(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=U(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(U(t))},windowViewPort:s,zoomLevel:_,isZoomed:function(){return _()>1},zIndex:function(t,e){if(!t||!I.canUseDOM())return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}},N=function(t,e){return t?{x:0,y:0}:F.scrollPosition(e)},X=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,r=t.elementAlign,i=t.margin,l=t.offset,u=t.positionMode,f=t.scale||1,c="fixed"===u||!F.hasOffsetParent(n)?function(t,e,n,o){var r=N(t,e),i=I.eitherRect(F.offset(t),n),l=2*o,u=F.stackingElementScroll(e);1!==o&&u&&(u.x/=l,u.y/=l);var f=F.stackingElementOffset(e);return 1!==o&&f&&(f.left/=l,f.top/=l),F.removeScroll(F.addScroll(I.removeStackingOffset(I.scaleRect(i,o),f),u),r)}(e,n,l,f):function(t,e,n,o){var r=I.eitherRect(F.position(t,e,o),n);return I.scaleRect(r,o)}(e,n,l,f),a=I.scaleRect(F.offset(n),f);return F.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:a,margin:i})},Y=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,l=t.collisions,u=t.margin,f=t.scale||1,c=F.offsetAtPoint(o,n),a=I.scaleRect(c,f),d=I.scaleRect(F.offset(e),f),s=I.eitherRect(d,n),h=t.viewPort||F.windowViewPort(o);h.width=h.width/f,h.height=h.height/f;var p=F.restrictToView({anchorAlign:r,anchorRect:s,collisions:l,elementAlign:i,elementRect:a,margin:u,viewPort:h}),g=F.addOffset(n,p.offset);return{flip:p.flip,flipped:p.flipped,offset:g}}}])}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoPopupCommon=e():t.KendoPopupCommon=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"align",(function(){return r})),n.d(e,"addScroll",(function(){return i})),n.d(e,"applyLocationOffset",(function(){return l})),n.d(e,"boundingOffset",(function(){return h})),n.d(e,"isBodyOffset",(function(){return g})),n.d(e,"offsetParent",(function(){return p})),n.d(e,"offset",(function(){return m})),n.d(e,"parents",(function(){return v})),n.d(e,"parentScrollPosition",(function(){return b})),n.d(e,"position",(function(){return x})),n.d(e,"positionWithScroll",(function(){return P})),n.d(e,"removeScroll",(function(){return S})),n.d(e,"restrictToView",(function(){return C})),n.d(e,"scrollPosition",(function(){return w})),n.d(e,"siblingContainer",(function(){return A})),n.d(e,"siblings",(function(){return E})),n.d(e,"zIndex",(function(){return M})),n.d(e,"alignElement",(function(){return X})),n.d(e,"domUtils",(function(){return F})),n.d(e,"utils",(function(){return I})),n.d(e,"positionElement",(function(){return Y})),n.d(e,"getDocumentElement",(function(){return c})),n.d(e,"getWindow",(function(){return u})),n.d(e,"getWindowViewPort",(function(){return s})),n.d(e,"AlignPoint",(function(){return o})),n.d(e,"Collision",(function(){return z}));var o={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},r=function(t){var e=t.anchorRect,n=t.anchorAlign,r=t.elementRect,i=t.elementAlign,l=t.margin;void 0===l&&(l={});var f=n.horizontal,u=n.vertical,c=i.horizontal,a=i.vertical,d=l.horizontal||0,s=l.vertical||0,h=e.top,p=e.left;return u===o.bottom&&(h+=e.height),u!==o.center&&u!==o.middle||(h+=Math.round(e.height/2)),a===o.bottom&&(h-=r.height,s*=-1),a!==o.center&&a!==o.middle||(h-=Math.round(r.height/2),s*=-1),f===o.right&&(p+=e.width),f!==o.center&&f!==o.middle||(p+=Math.round(e.width/2)),c===o.right&&(p-=r.width,d*=-1),c!==o.center&&c!==o.middle||(p-=Math.round(r.width/2),d*=-1),{top:h+s,left:p+d}};function i(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function l(t,e,n){var o=t.top,r=t.left;return n&&(r=0,o=0),{top:o+e.top,left:r+e.left,height:t.height,width:t.width}}function f(t){return t.ownerDocument||t.document||t}var u=function(t){return f(t).defaultView},c=function(t){return f(t).documentElement},a=0;function d(){if(!a&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),a=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return a}function s(t){var e=u(t),n=c(t),o={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=d()),o}var h=function(t){if(!t.getBoundingClientRect){var e=s(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},p=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||c(t)},g=function(t){return p(t)===t.ownerDocument.body},m=function(t){var e=t.getBoundingClientRect(),n=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,i}(t)),{top:o,left:n,height:e.height,width:e.width}},v=function(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n};function w(t){var e=c(t),n=u(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var y=function(t){return t===(t.ownerDocument||{}).body?w(t):{x:t.scrollLeft,y:t.scrollTop}};function b(t){var e=p(t);return e?y(e):{x:0,y:0}}var x=function(t,e){var n=u(t),o=n.getComputedStyle(t),r=m(t),i=e||p(t),l=t.ownerDocument,f=i!==l.body&&i!==l.documentElement,c={top:0,left:0};if("fixed"!==o.position&&f){var a=n.getComputedStyle(i);(c=m(i)).top+=parseInt(a.borderTopWidth,10),c.left+=parseInt(a.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},P=function(t,e,n){void 0===n&&(n=1);var o=e?p(e):null,r=x(t,o),i=r.top,l=r.left,f=r.height,u=r.width,c=function(t,e){return t?y(t):b(e)}(o,t),a=c.x,d=c.y,s=t.ownerDocument,h=o===s.body||o===s.documentElement?1:n;return{top:i+d*h,left:l+a*h,height:f,width:u}};function S(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var z={fit:"fit",flip:"flip",none:"none"},R=function(t,e,n){var o=0;return t+e>n&&(o=n-(t+e)),t<0&&(o=-t),o},O=function(t){var e=t.offset,n=t.size,r=t.anchorSize,i=t.viewPortSize,l=t.anchorAlignPoint,f=t.elementAlignPoint,u=t.margin,c=0,a=f===o.center||f===o.middle,d=l===o.center||l===o.middle,s=2*u;if(f!==l&&!a&&!d){var h=l===o.top||l===o.left;e<0&&h?e+(c=n+r+s)+n>i&&(c=0):e>=0&&!h&&(e+n>i&&(c+=-(r+n+s)),e+c<0&&(c=0))}return c},C=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,l=t.viewPort,f=t.margin;void 0===f&&(f={});var u=o.top,c=o.left,a=o.height,d=o.width,s=l.height,h=l.width,p=f.horizontal||0,g=f.vertical||0,m=0,v=0,w=i.vertical===z.fit,y=i.horizontal===z.fit,b=i.vertical===z.flip,x=i.horizontal===z.flip;w&&(v+=R(u,a,s)),y&&(m+=R(c,d,h)),b&&(v+=O({margin:g,offset:u,size:a,anchorSize:e.height,viewPortSize:s,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),x&&(m+=O({margin:p,offset:c,size:d,anchorSize:e.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var P=b&&0!==v,S=x&&0!==m,C=w&&0!==v,E=y&&0!==m;return{flipped:S||P,fitted:C||E,flip:{horizontal:S,vertical:P},fit:{horizontal:E,vertical:C},offset:{left:m,top:v}}},E=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},A=function(t,e){for(var n,o,r=v(t),i=e;i&&(n=E(i),!(o=r.reduce((function(t,e){return t.concat(n.filter((function(t){return t===e})))}),[])[0]));)i=i.parentElement;return o};function M(t,e){if(!t||!e)return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}var D,T,W,k=(D=function(t){if(!j())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),o},W=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return W||(T=D.apply(void 0,t),W=!0),T}),j=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},I={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:k,canUseDOM:j},B=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],L=function(){return I.canUseDOM()?window:null},V=/auto|scroll/,H=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},U=function(t){if(!t||!I.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},_=function(){return I.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},F={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:i,align:r,boundingOffset:h,getFontStyles:function(t){var e=L();if(!e||!t)return[];var n=e.getComputedStyle(t);return B.map((function(t){return{key:t,value:n[t]}}))},getWindow:L,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?m(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,o=n.left,r=n.top,i=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var l=m(t);return t.style.left=o,t.style.top=r,t.offsetHeight,t.style.transition=i,l},position:function(t,e,n){return t&&e?P(t,e,n||1):null},removeScroll:S,restrictToView:C,scrollPosition:w,scrollableParents:function(t){var e=[];if(!I.canUseDOM())return e;for(var n=t.parentElement;n;)(V.test(H(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e},getRelativeContextElement:U,stackingElementOffset:function(t){var e=U(t);return e?m(e):null},stackingElementScroll:function(t){var e=U(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=U(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(U(t))},windowViewPort:s,zoomLevel:_,isZoomed:function(){return _()>1},zIndex:function(t,e){if(!t||!I.canUseDOM())return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}},N=function(t,e){return t?{x:0,y:0}:F.scrollPosition(e)},X=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,r=t.elementAlign,i=t.margin,l=t.offset,f=t.positionMode,u=t.scale||1,c="fixed"===f||!F.hasOffsetParent(n)?function(t,e,n,o){var r=N(t,e),i=I.eitherRect(F.offset(t),n),l=2*o,f=F.stackingElementScroll(e);1!==o&&f&&(f.x/=l,f.y/=l);var u=F.stackingElementOffset(e);return 1!==o&&u&&(u.left/=l,u.top/=l),F.removeScroll(F.addScroll(I.removeStackingOffset(I.scaleRect(i,o),u),f),r)}(e,n,l,u):function(t,e,n,o){var r=I.eitherRect(F.position(t,e,o),n);return I.scaleRect(r,o)}(e,n,l,u),a=I.scaleRect(F.offset(n),u);return F.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:a,margin:i})},Y=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,l=t.collisions,f=t.margin,u=t.scale||1,c=F.offsetAtPoint(o,n),a=I.scaleRect(c,u),d=I.scaleRect(F.offset(e),u),s=I.eitherRect(d,n),h=t.viewPort||F.windowViewPort(o);h.width=h.width/u,h.height=h.height/u;var p=F.restrictToView({anchorAlign:r,anchorRect:s,collisions:l,elementAlign:i,elementRect:a,margin:f,viewPort:h}),g=F.addOffset(n,p.offset);return{flip:p.flip,flipped:p.flipped,offset:g}}}])}));

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoPopupCommon=e():t.KendoPopupCommon=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"align",(function(){return r})),n.d(e,"addScroll",(function(){return i})),n.d(e,"applyLocationOffset",(function(){return l})),n.d(e,"boundingOffset",(function(){return h})),n.d(e,"isBodyOffset",(function(){return g})),n.d(e,"offsetParent",(function(){return p})),n.d(e,"offset",(function(){return m})),n.d(e,"parents",(function(){return v})),n.d(e,"parentScrollPosition",(function(){return b})),n.d(e,"position",(function(){return x})),n.d(e,"positionWithScroll",(function(){return P})),n.d(e,"removeScroll",(function(){return S})),n.d(e,"restrictToView",(function(){return C})),n.d(e,"scrollPosition",(function(){return w})),n.d(e,"siblingContainer",(function(){return A})),n.d(e,"siblings",(function(){return E})),n.d(e,"zIndex",(function(){return M})),n.d(e,"alignElement",(function(){return X})),n.d(e,"domUtils",(function(){return F})),n.d(e,"utils",(function(){return I})),n.d(e,"positionElement",(function(){return Y})),n.d(e,"getDocumentElement",(function(){return c})),n.d(e,"getWindow",(function(){return f})),n.d(e,"getWindowViewPort",(function(){return s})),n.d(e,"AlignPoint",(function(){return o})),n.d(e,"Collision",(function(){return z}));var o={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},r=function(t){var e=t.anchorRect,n=t.anchorAlign,r=t.elementRect,i=t.elementAlign,l=t.margin;void 0===l&&(l={});var u=n.horizontal,f=n.vertical,c=i.horizontal,a=i.vertical,d=l.horizontal||0,s=l.vertical||0,h=e.top,p=e.left;return f===o.bottom&&(h+=e.height),f!==o.center&&f!==o.middle||(h+=Math.round(e.height/2)),a===o.bottom&&(h-=r.height,s*=-1),a!==o.center&&a!==o.middle||(h-=Math.round(r.height/2),s*=-1),u===o.right&&(p+=e.width),u!==o.center&&u!==o.middle||(p+=Math.round(e.width/2)),c===o.right&&(p-=r.width,d*=-1),c!==o.center&&c!==o.middle||(p-=Math.round(r.width/2),d*=-1),{top:h+s,left:p+d}};function i(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function l(t,e,n){var o=t.top,r=t.left;return n&&(r=0,o=0),{top:o+e.top,left:r+e.left,height:t.height,width:t.width}}function u(t){return t.ownerDocument||t.document||t}var f=function(t){return u(t).defaultView},c=function(t){return u(t).documentElement},a=0;function d(){if(!a&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),a=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return a}function s(t){var e=f(t),n=c(t),o={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=d()),o}var h=function(t){if(!t.getBoundingClientRect){var e=s(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},p=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||c(t)},g=function(t){return p(t)===t.ownerDocument.body},m=function(t){var e=t.getBoundingClientRect(),n=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,i}(t)),{top:o,left:n,height:e.height,width:e.width}},v=function(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n};function w(t){var e=c(t),n=f(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var y=function(t){return t===(t.ownerDocument||{}).body?w(t):{x:t.scrollLeft,y:t.scrollTop}};function b(t){var e=p(t);return e?y(e):{x:0,y:0}}var x=function(t,e){var n=f(t),o=n.getComputedStyle(t),r=m(t),i=e||p(t),l=t.ownerDocument,u=i!==l.body&&i!==l.documentElement,c={top:0,left:0};if("fixed"!==o.position&&u){var a=n.getComputedStyle(i);(c=m(i)).top+=parseInt(a.borderTopWidth,10),c.left+=parseInt(a.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},P=function(t,e,n){void 0===n&&(n=1);var o=e?p(e):null,r=x(t,o),i=r.top,l=r.left,u=r.height,f=r.width,c=function(t,e){return t?y(t):b(e)}(o,t),a=c.x,d=c.y,s=t.ownerDocument,h=o===s.body||o===s.documentElement?1:n;return{top:i+d*h,left:l+a*h,height:u,width:f}};function S(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var z={fit:"fit",flip:"flip"},R=function(t,e,n){var o=0;return t+e>n&&(o=n-(t+e)),t<0&&(o=-t),o},O=function(t){var e=t.offset,n=t.size,r=t.anchorSize,i=t.viewPortSize,l=t.anchorAlignPoint,u=t.elementAlignPoint,f=t.margin,c=0,a=u===o.center||u===o.middle,d=l===o.center||l===o.middle,s=2*f;if(u!==l&&!a&&!d){var h=l===o.top||l===o.left;e<0&&h?e+(c=n+r+s)+n>i&&(c=0):e>=0&&!h&&(e+n>i&&(c+=-(r+n+s)),e+c<0&&(c=0))}return c},C=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,l=t.viewPort,u=t.margin;void 0===u&&(u={});var f=o.top,c=o.left,a=o.height,d=o.width,s=l.height,h=l.width,p=u.horizontal||0,g=u.vertical||0,m=0,v=0,w=i.horizontal===z.flip,y=i.vertical===z.flip;i.vertical===z.fit&&(v+=R(f,a,s)),i.horizontal===z.fit&&(m+=R(c,d,h)),y&&(v+=O({margin:g,offset:f,size:a,anchorSize:e.height,viewPortSize:s,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(m+=O({margin:p,offset:c,size:d,anchorSize:e.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var b=w&&0!==m,x=y&&0!==v;return{flipped:b||x,flip:{horizontal:b,vertical:x},offset:{left:m,top:v}}},E=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},A=function(t,e){for(var n,o,r=v(t),i=e;i&&(n=E(i),!(o=r.reduce((function(t,e){return t.concat(n.filter((function(t){return t===e})))}),[])[0]));)i=i.parentElement;return o};function M(t,e){if(!t||!e)return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}var D,T,W,k=(D=function(t){if(!j())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),o},W=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return W||(T=D.apply(void 0,t),W=!0),T}),j=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},I={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:k,canUseDOM:j},B=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],L=function(){return I.canUseDOM()?window:null},V=/auto|scroll/,H=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},U=function(t){if(!t||!I.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},_=function(){return I.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},F={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:i,align:r,boundingOffset:h,getFontStyles:function(t){var e=L();if(!e||!t)return[];var n=e.getComputedStyle(t);return B.map((function(t){return{key:t,value:n[t]}}))},getWindow:L,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?m(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,o=n.left,r=n.top,i=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var l=m(t);return t.style.left=o,t.style.top=r,t.offsetHeight,t.style.transition=i,l},position:function(t,e,n){return t&&e?P(t,e,n||1):null},removeScroll:S,restrictToView:C,scrollPosition:w,scrollableParents:function(t){var e=[];if(!I.canUseDOM())return e;for(var n=t.parentElement;n;)(V.test(H(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e},getRelativeContextElement:U,stackingElementOffset:function(t){var e=U(t);return e?m(e):null},stackingElementScroll:function(t){var e=U(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=U(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(U(t))},windowViewPort:s,zoomLevel:_,isZoomed:function(){return _()>1},zIndex:function(t,e){if(!t||!I.canUseDOM())return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}},N=function(t,e){return t?{x:0,y:0}:F.scrollPosition(e)},X=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,r=t.elementAlign,i=t.margin,l=t.offset,u=t.positionMode,f=t.scale||1,c="fixed"===u||!F.hasOffsetParent(n)?function(t,e,n,o){var r=N(t,e),i=I.eitherRect(F.offset(t),n),l=2*o,u=F.stackingElementScroll(e);1!==o&&u&&(u.x/=l,u.y/=l);var f=F.stackingElementOffset(e);return 1!==o&&f&&(f.left/=l,f.top/=l),F.removeScroll(F.addScroll(I.removeStackingOffset(I.scaleRect(i,o),f),u),r)}(e,n,l,f):function(t,e,n,o){var r=I.eitherRect(F.position(t,e,o),n);return I.scaleRect(r,o)}(e,n,l,f),a=I.scaleRect(F.offset(n),f);return F.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:a,margin:i})},Y=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,l=t.collisions,u=t.margin,f=t.scale||1,c=F.offsetAtPoint(o,n),a=I.scaleRect(c,f),d=I.scaleRect(F.offset(e),f),s=I.eitherRect(d,n),h=t.viewPort||F.windowViewPort(o);h.width=h.width/f,h.height=h.height/f;var p=F.restrictToView({anchorAlign:r,anchorRect:s,collisions:l,elementAlign:i,elementRect:a,margin:u,viewPort:h}),g=F.addOffset(n,p.offset);return{flip:p.flip,flipped:p.flipped,offset:g}}}])}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoPopupCommon=e():t.KendoPopupCommon=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"align",(function(){return r})),n.d(e,"addScroll",(function(){return i})),n.d(e,"applyLocationOffset",(function(){return l})),n.d(e,"boundingOffset",(function(){return h})),n.d(e,"isBodyOffset",(function(){return g})),n.d(e,"offsetParent",(function(){return p})),n.d(e,"offset",(function(){return m})),n.d(e,"parents",(function(){return v})),n.d(e,"parentScrollPosition",(function(){return b})),n.d(e,"position",(function(){return x})),n.d(e,"positionWithScroll",(function(){return P})),n.d(e,"removeScroll",(function(){return S})),n.d(e,"restrictToView",(function(){return C})),n.d(e,"scrollPosition",(function(){return w})),n.d(e,"siblingContainer",(function(){return A})),n.d(e,"siblings",(function(){return E})),n.d(e,"zIndex",(function(){return M})),n.d(e,"alignElement",(function(){return X})),n.d(e,"domUtils",(function(){return F})),n.d(e,"utils",(function(){return I})),n.d(e,"positionElement",(function(){return Y})),n.d(e,"getDocumentElement",(function(){return c})),n.d(e,"getWindow",(function(){return u})),n.d(e,"getWindowViewPort",(function(){return s})),n.d(e,"AlignPoint",(function(){return o})),n.d(e,"Collision",(function(){return z}));var o={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},r=function(t){var e=t.anchorRect,n=t.anchorAlign,r=t.elementRect,i=t.elementAlign,l=t.margin;void 0===l&&(l={});var f=n.horizontal,u=n.vertical,c=i.horizontal,a=i.vertical,d=l.horizontal||0,s=l.vertical||0,h=e.top,p=e.left;return u===o.bottom&&(h+=e.height),u!==o.center&&u!==o.middle||(h+=Math.round(e.height/2)),a===o.bottom&&(h-=r.height,s*=-1),a!==o.center&&a!==o.middle||(h-=Math.round(r.height/2),s*=-1),f===o.right&&(p+=e.width),f!==o.center&&f!==o.middle||(p+=Math.round(e.width/2)),c===o.right&&(p-=r.width,d*=-1),c!==o.center&&c!==o.middle||(p-=Math.round(r.width/2),d*=-1),{top:h+s,left:p+d}};function i(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function l(t,e,n){var o=t.top,r=t.left;return n&&(r=0,o=0),{top:o+e.top,left:r+e.left,height:t.height,width:t.width}}function f(t){return t.ownerDocument||t.document||t}var u=function(t){return f(t).defaultView},c=function(t){return f(t).documentElement},a=0;function d(){if(!a&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),a=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return a}function s(t){var e=u(t),n=c(t),o={height:e.innerHeight,width:e.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=d()),o}var h=function(t){if(!t.getBoundingClientRect){var e=s(t);return{bottom:e.height,left:0,right:e.width,top:0}}var n=t.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},p=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||c(t)},g=function(t){return p(t)===t.ownerDocument.body},m=function(t){var e=t.getBoundingClientRect(),n=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var i=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,i}(t)),{top:o,left:n,height:e.height,width:e.width}},v=function(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n};function w(t){var e=c(t),n=u(t);return{x:n.pageXOffset||e.scrollLeft||0,y:n.pageYOffset||e.scrollTop||0}}var y=function(t){return t===(t.ownerDocument||{}).body?w(t):{x:t.scrollLeft,y:t.scrollTop}};function b(t){var e=p(t);return e?y(e):{x:0,y:0}}var x=function(t,e){var n=u(t),o=n.getComputedStyle(t),r=m(t),i=e||p(t),l=t.ownerDocument,f=i!==l.body&&i!==l.documentElement,c={top:0,left:0};if("fixed"!==o.position&&f){var a=n.getComputedStyle(i);(c=m(i)).top+=parseInt(a.borderTopWidth,10),c.left+=parseInt(a.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},P=function(t,e,n){void 0===n&&(n=1);var o=e?p(e):null,r=x(t,o),i=r.top,l=r.left,f=r.height,u=r.width,c=function(t,e){return t?y(t):b(e)}(o,t),a=c.x,d=c.y,s=t.ownerDocument,h=o===s.body||o===s.documentElement?1:n;return{top:i+d*h,left:l+a*h,height:f,width:u}};function S(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}var z={fit:"fit",flip:"flip",none:"none"},R=function(t,e,n){var o=0;return t+e>n&&(o=n-(t+e)),t<0&&(o=-t),o},O=function(t){var e=t.offset,n=t.size,r=t.anchorSize,i=t.viewPortSize,l=t.anchorAlignPoint,f=t.elementAlignPoint,u=t.margin,c=0,a=f===o.center||f===o.middle,d=l===o.center||l===o.middle,s=2*u;if(f!==l&&!a&&!d){var h=l===o.top||l===o.left;e<0&&h?e+(c=n+r+s)+n>i&&(c=0):e>=0&&!h&&(e+n>i&&(c+=-(r+n+s)),e+c<0&&(c=0))}return c},C=function(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,l=t.viewPort,f=t.margin;void 0===f&&(f={});var u=o.top,c=o.left,a=o.height,d=o.width,s=l.height,h=l.width,p=f.horizontal||0,g=f.vertical||0,m=0,v=0,w=i.vertical===z.fit,y=i.horizontal===z.fit,b=i.vertical===z.flip,x=i.horizontal===z.flip;w&&(v+=R(u,a,s)),y&&(m+=R(c,d,h)),b&&(v+=O({margin:g,offset:u,size:a,anchorSize:e.height,viewPortSize:s,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),x&&(m+=O({margin:p,offset:c,size:d,anchorSize:e.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var P=b&&0!==v,S=x&&0!==m,C=w&&0!==v,E=y&&0!==m;return{flipped:S||P,fitted:C||E,flip:{horizontal:S,vertical:P},fit:{horizontal:E,vertical:C},offset:{left:m,top:v}}},E=function(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e},A=function(t,e){for(var n,o,r=v(t),i=e;i&&(n=E(i),!(o=r.reduce((function(t,e){return t.concat(n.filter((function(t){return t===e})))}),[])[0]));)i=i.parentElement;return o};function M(t,e){if(!t||!e)return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}var D,T,W,k=(D=function(t){if(!j())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),o},W=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return W||(T=D.apply(void 0,t),W=!0),T}),j=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},I={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:k,canUseDOM:j},B=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],L=function(){return I.canUseDOM()?window:null},V=/auto|scroll/,H=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},U=function(t){if(!t||!I.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},_=function(){return I.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},F={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:i,align:r,boundingOffset:h,getFontStyles:function(t){var e=L();if(!e||!t)return[];var n=e.getComputedStyle(t);return B.map((function(t){return{key:t,value:n[t]}}))},getWindow:L,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?m(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,o=n.left,r=n.top,i=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var l=m(t);return t.style.left=o,t.style.top=r,t.offsetHeight,t.style.transition=i,l},position:function(t,e,n){return t&&e?P(t,e,n||1):null},removeScroll:S,restrictToView:C,scrollPosition:w,scrollableParents:function(t){var e=[];if(!I.canUseDOM())return e;for(var n=t.parentElement;n;)(V.test(H(n))||n.hasAttribute("data-scrollable"))&&e.push(n),n=n.parentElement;return e.push(window),e},getRelativeContextElement:U,stackingElementOffset:function(t){var e=U(t);return e?m(e):null},stackingElementScroll:function(t){var e=U(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=U(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(U(t))},windowViewPort:s,zoomLevel:_,isZoomed:function(){return _()>1},zIndex:function(t,e){if(!t||!I.canUseDOM())return null;var n=A(t,e);if(!n)return null;var o=[t].concat(v(t,n)).reduce((function(t,e){var n=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(n,10);return o>t?o:t}),0);return o?o+1:null}},N=function(t,e){return t?{x:0,y:0}:F.scrollPosition(e)},X=function(t){var e=t.anchor,n=t.element,o=t.anchorAlign,r=t.elementAlign,i=t.margin,l=t.offset,f=t.positionMode,u=t.scale||1,c="fixed"===f||!F.hasOffsetParent(n)?function(t,e,n,o){var r=N(t,e),i=I.eitherRect(F.offset(t),n),l=2*o,f=F.stackingElementScroll(e);1!==o&&f&&(f.x/=l,f.y/=l);var u=F.stackingElementOffset(e);return 1!==o&&u&&(u.left/=l,u.top/=l),F.removeScroll(F.addScroll(I.removeStackingOffset(I.scaleRect(i,o),u),f),r)}(e,n,l,u):function(t,e,n,o){var r=I.eitherRect(F.position(t,e,o),n);return I.scaleRect(r,o)}(e,n,l,u),a=I.scaleRect(F.offset(n),u);return F.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:a,margin:i})},Y=function(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,l=t.collisions,f=t.margin,u=t.scale||1,c=F.offsetAtPoint(o,n),a=I.scaleRect(c,u),d=I.scaleRect(F.offset(e),u),s=I.eitherRect(d,n),h=t.viewPort||F.windowViewPort(o);h.width=h.width/u,h.height=h.height/u;var p=F.restrictToView({anchorAlign:r,anchorRect:s,collisions:l,elementAlign:i,elementRect:a,margin:f,viewPort:h}),g=F.addOffset(n,p.offset);return{flip:p.flip,flipped:p.flipped,offset:g}}}])}));
export default {
"fit": "fit",
"flip": "flip"
"flip": "flip",
"none": "none"
};

@@ -74,10 +74,12 @@ import alignPoint from './align-point';

var isVerticalFit = collisions.vertical === collision.fit;
var isHorizontalFit = collisions.horizontal === collision.fit;
var isVerticalFlip = collisions.vertical === collision.flip;
var isHorizontalFlip = collisions.horizontal === collision.flip;
var isVerticalFlip = collisions.vertical === collision.flip;
if (collisions.vertical === collision.fit) {
if (isVerticalFit) {
top += fit(elementTop, elementHeight, viewPortHeight);
}
if (collisions.horizontal === collision.fit) {
if (isHorizontalFit) {
left += fit(elementLeft, elementWidth, viewPortWidth);

@@ -109,7 +111,11 @@ }

}
var flippedVertical = isVerticalFlip && top !== 0;
var flippedHorizontal = isHorizontalFlip && left !== 0;
var flippedVertical = isVerticalFlip && top !== 0;
var fittedVertical = isVerticalFit && top !== 0;
var fittedHorizontal = isHorizontalFit && left !== 0;
return {
flipped: flippedHorizontal || flippedVertical,
fitted: fittedVertical || fittedHorizontal,
flip: {

@@ -119,2 +125,6 @@ horizontal: flippedHorizontal,

},
fit: {
horizontal: fittedHorizontal,
vertical: fittedVertical
},
offset: {

@@ -121,0 +131,0 @@ left: left,

export default {
"fit": "fit",
"flip": "flip"
"flip": "flip",
"none": "none"
};

@@ -56,10 +56,12 @@ import alignPoint from './align-point';

const isVerticalFit = collisions.vertical === collision.fit;
const isHorizontalFit = collisions.horizontal === collision.fit;
const isVerticalFlip = collisions.vertical === collision.flip;
const isHorizontalFlip = collisions.horizontal === collision.flip;
const isVerticalFlip = collisions.vertical === collision.flip;
if (collisions.vertical === collision.fit) {
if (isVerticalFit) {
top += fit(elementTop, elementHeight, viewPortHeight);
}
if (collisions.horizontal === collision.fit) {
if (isHorizontalFit) {
left += fit(elementLeft, elementWidth, viewPortWidth);

@@ -91,7 +93,11 @@ }

}
const flippedVertical = isVerticalFlip && top !== 0;
const flippedHorizontal = isHorizontalFlip && left !== 0;
const flippedVertical = isVerticalFlip && top !== 0;
const fittedVertical = isVerticalFit && top !== 0;
const fittedHorizontal = isHorizontalFit && left !== 0;
return {
flipped: flippedHorizontal || flippedVertical,
fitted: fittedVertical || fittedHorizontal,
flip: {

@@ -101,2 +107,6 @@ horizontal: flippedHorizontal,

},
fit: {
horizontal: fittedHorizontal,
vertical: fittedVertical
},
offset: {

@@ -103,0 +113,0 @@ left: left,

@@ -1,3 +0,3 @@

type CollisionType = 'fit' | 'flip';
type CollisionType = 'fit' | 'flip' | 'none';
export default CollisionType;
declare var _default: {
"fit": string;
"flip": string;
"none": string;
};
export default _default;

@@ -5,4 +5,6 @@ import OffsetPosition from "./offset-position";

flipped: boolean;
flip: any;
fitted: boolean;
flip: { vertical: boolean; horizontal: boolean; };
fit: { vertical: boolean; horizontal: boolean; };
offset: OffsetPosition;
}

@@ -1,1 +0,1 @@

System.register("@progress/kendo-popup-common",[],function(F){return{setters:[],execute:function(){function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,r;n=[function(t,e,n){"use strict";n.r(e);function o(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.margin,l=n.horizontal,f=n.vertical,u=r.horizontal,c=r.vertical,t=(i=void 0===i?{}:i).horizontal||0,n=i.vertical||0,r=e.top,i=e.left;return f===d.bottom&&(r+=e.height),f!==d.center&&f!==d.middle||(r+=Math.round(e.height/2)),c===d.bottom&&(r-=o.height,n*=-1),c!==d.center&&c!==d.middle||(r-=Math.round(o.height/2),n*=-1),l===d.right&&(i+=e.width),l!==d.center&&l!==d.middle||(i+=Math.round(e.width/2)),u===d.right&&(i-=o.width,t*=-1),u!==d.center&&u!==d.middle||(i-=Math.round(o.width/2),t*=-1),{top:r+n,left:i+t}}var d={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"};function r(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function i(t,e,n){var o=t.top,r=t.left;return{top:(o=n?r=0:o)+e.top,left:r+e.left,height:t.height,width:t.width}}function l(t){return t.ownerDocument||t.document||t}var f=function(t){return l(t).defaultView},u=function(t){return l(t).documentElement},c=0;function a(t){var e=f(t),t=u(t),e={height:e.innerHeight,width:e.innerWidth};return 0<t.scrollHeight-t.clientHeight&&(e.width-=(c||"undefined"==typeof document||((t=document.createElement("div")).style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),c=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)),c)),e}function s(t){if(t.getBoundingClientRect)return{bottom:(t=t.getBoundingClientRect()).bottom,left:t.left,right:t.right,top:t.top};t=a(t);return{bottom:t.height,left:0,right:t.width,top:0}}function h(t){return g(t)===t.ownerDocument.body}function p(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n}var g=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||u(t)},m=function(t){var e=t.getBoundingClientRect(),n=e.left;return{top:e.top,left:n,height:(e=!e.height&&!e.width?function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";e=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,e}(t):e).height,width:e.width}};function w(t){var e=u(t),t=f(t);return{x:t.pageXOffset||e.scrollLeft||0,y:t.pageYOffset||e.scrollTop||0}}var v=function(t){return t===(t.ownerDocument||{}).body?w(t):{x:t.scrollLeft,y:t.scrollTop}};function y(t){t=g(t);return t?v(t):{x:0,y:0}}function x(t,e){var n=f(t),o=n.getComputedStyle(t),r=m(t),i=e||g(t),e=t.ownerDocument,t=i!==e.body&&i!==e.documentElement,e={top:0,left:0};return"fixed"!==o.position&&t&&(n=n.getComputedStyle(i),(e=m(i)).top+=parseInt(n.borderTopWidth,10),e.left+=parseInt(n.borderLeftWidth,10)),{top:r.top-e.top,left:r.left-e.left,height:r.height,width:r.width}}function b(t,e,n){void 0===n&&(n=1);var o=e?g(e):null,r=(u=x(t,o)).top,i=u.left,l=u.height,f=u.width,e=(u=(e=t,o?v(o):y(e))).x,u=u.y,t=t.ownerDocument,n=o===t.body||o===t.documentElement?1:n;return{top:r+u*n,left:i+e*n,height:l,width:f}}function P(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}function S(t,e,n){return t<0?-t:n<t+e?n-(t+e):0}function z(t){var e=t.offset,n=t.size,o=t.anchorSize,r=t.viewPortSize,i=t.anchorAlignPoint,l=t.elementAlignPoint,f=0,t=2*t.margin;return l!==i&&l!==d.center&&l!==d.middle&&i!==d.center&&i!==d.middle&&(i=i===d.top||i===d.left,e<0&&i?e+(f=n+o+t)+n>r&&(f=0):0<=e&&!i&&(r<e+n&&(f+=-(o+n+t)),e+f<0&&(f=0))),f}function R(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,l=t.viewPort,f=t.margin,u=o.top,c=o.left,d=o.height,a=o.width,s=l.height,h=l.width,p=(f=void 0===f?{}:f).horizontal||0,g=f.vertical||0,t=0,o=0,l=i.horizontal===A.flip,f=i.vertical===A.flip;return i.vertical===A.fit&&(o+=S(u,d,s)),i.horizontal===A.fit&&(t+=S(c,a,h)),f&&(o+=z({margin:g,offset:u,size:d,anchorSize:e.height,viewPortSize:s,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),l&&(t+=z({margin:p,offset:c,size:a,anchorSize:e.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal})),f=f&&0!==o,{flipped:(l=l&&0!==t)||f,flip:{horizontal:l,vertical:f},offset:{left:t,top:o}}}function E(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e}function O(t,e){for(var n,o,r=p(t),i=e;i&&(n=E(i),!(o=r.reduce(function(t,e){return t.concat(n.filter(function(t){return t===e}))},[])[0]));)i=i.parentElement;return o}var A={fit:"fit",flip:"flip"};function C(t,e){if(!t||!e)return null;e=O(t,e);if(!e)return null;e=[t].concat(p(t,e)).reduce(function(t,e){e=e.style.zIndex||window.getComputedStyle(e).zIndex,e=parseInt(e,10);return t<e?e:t},0);return e?e+1:null}function M(){return H.canUseDOM()?window:null}function k(t){if(!t||!H.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null}function D(){return H.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}function W(t){var n=t.anchor,o=t.element,e=t.anchorAlign,r=t.elementAlign,i=t.margin,l=t.offset,f=t.positionMode,t=t.scale||1,l="fixed"!==f&&j.hasOffsetParent(o)?function(t,e){t=H.eitherRect(j.position(n,o,e),t);return H.scaleRect(t,e)}(l,t):function(t,e,n,o){var r,i=(r=e,t?{x:0,y:0}:j.scrollPosition(r)),r=H.eitherRect(j.offset(t),n),t=2*o,n=j.stackingElementScroll(e);1!==o&&n&&(n.x/=t,n.y/=t);e=j.stackingElementOffset(e);return 1!==o&&e&&(e.left/=t,e.top/=t),j.removeScroll(j.addScroll(H.removeStackingOffset(H.scaleRect(r,o),e),n),i)}(n,o,l,t),t=H.scaleRect(j.offset(o),t);return j.align({anchorAlign:e,anchorRect:l,elementAlign:r,elementRect:t,margin:i})}function I(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,l=t.collisions,f=t.margin,u=t.scale||1,c=j.offsetAtPoint(o,n),c=H.scaleRect(c,u),e=H.scaleRect(j.offset(e),u),e=H.eitherRect(e,n);return(o=t.viewPort||j.windowViewPort(o)).width=o.width/u,o.height=o.height/u,o=j.restrictToView({anchorAlign:r,anchorRect:e,collisions:l,elementAlign:i,elementRect:c,margin:f,viewPort:o}),n=j.addOffset(n,o.offset),{flip:o.flip,flipped:o.flipped,offset:n}}var T,B,L=(B=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return B||(T=function(t){if(!V())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),o}.apply(void 0,t),B=!0),T}),V=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},H={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:L,canUseDOM:V},U=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],_=/auto|scroll/,j={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:r,align:o,boundingOffset:s,getFontStyles:function(t){var e=M();if(!e||!t)return[];var n=e.getComputedStyle(t);return U.map(function(t){return{key:t,value:n[t]}})},getWindow:M,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?m(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,o=n.left,r=n.top,n=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";e=m(t);return t.style.left=o,t.style.top=r,t.offsetHeight,t.style.transition=n,e},position:function(t,e,n){return t&&e?b(t,e,n||1):null},removeScroll:P,restrictToView:R,scrollPosition:w,scrollableParents:function(t){var e=[];if(!H.canUseDOM())return e;for(var n,o=t.parentElement;o;)(_.test(""+(n=o).style.overflow+n.style.overflowX+n.style.overflowY||""+(n=window.getComputedStyle(n)).overflow+n.overflowX+n.overflowY)||o.hasAttribute("data-scrollable"))&&e.push(o),o=o.parentElement;return e.push(window),e},getRelativeContextElement:k,stackingElementOffset:function(t){t=k(t);return t?m(t):null},stackingElementScroll:function(t){t=k(t);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){t=k(t);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(t){return Boolean(k(t))},windowViewPort:a,zoomLevel:D,isZoomed:function(){return 1<D()},zIndex:function(t,e){if(!t||!H.canUseDOM())return null;e=O(t,e);if(!e)return null;e=[t].concat(p(t,e)).reduce(function(t,e){e=e.style.zIndex||window.getComputedStyle(e).zIndex,e=parseInt(e,10);return t<e?e:t},0);return e?e+1:null}};n.d(e,"align",function(){return o}),n.d(e,"addScroll",function(){return r}),n.d(e,"applyLocationOffset",function(){return i}),n.d(e,"boundingOffset",function(){return s}),n.d(e,"isBodyOffset",function(){return h}),n.d(e,"offsetParent",function(){return g}),n.d(e,"offset",function(){return m}),n.d(e,"parents",function(){return p}),n.d(e,"parentScrollPosition",function(){return y}),n.d(e,"position",function(){return x}),n.d(e,"positionWithScroll",function(){return b}),n.d(e,"removeScroll",function(){return P}),n.d(e,"restrictToView",function(){return R}),n.d(e,"scrollPosition",function(){return w}),n.d(e,"siblingContainer",function(){return O}),n.d(e,"siblings",function(){return E}),n.d(e,"zIndex",function(){return C}),n.d(e,"alignElement",function(){return W}),n.d(e,"domUtils",function(){return j}),n.d(e,"utils",function(){return H}),n.d(e,"positionElement",function(){return I}),n.d(e,"getDocumentElement",function(){return u}),n.d(e,"getWindow",function(){return f}),n.d(e,"getWindowViewPort",function(){return a}),n.d(e,"AlignPoint",function(){return d}),n.d(e,"Collision",function(){return A}),function(t){for(var e in t)F(e,t[e])}(e)}],r={},o.m=n,o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}}});
System.register("@progress/kendo-popup-common",[],function(F){return{setters:[],execute:function(){function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,r;r={},o.m=n=[function(t,e,n){"use strict";n.r(e);function o(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.margin,l=n.horizontal,f=n.vertical,u=r.horizontal,c=r.vertical,t=(i=void 0===i?{}:i).horizontal||0,n=i.vertical||0,r=e.top,i=e.left;return f===d.bottom&&(r+=e.height),f!==d.center&&f!==d.middle||(r+=Math.round(e.height/2)),c===d.bottom&&(r-=o.height,n*=-1),c!==d.center&&c!==d.middle||(r-=Math.round(o.height/2),n*=-1),l===d.right&&(i+=e.width),l!==d.center&&l!==d.middle||(i+=Math.round(e.width/2)),u===d.right&&(i-=o.width,t*=-1),u!==d.center&&u!==d.middle||(i-=Math.round(o.width/2),t*=-1),{top:r+n,left:i+t}}var d={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"};function r(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}function i(t,e,n){var o=t.top,r=t.left;return{top:(o=n?r=0:o)+e.top,left:r+e.left,height:t.height,width:t.width}}function l(t){return t.ownerDocument||t.document||t}var f=function(t){return l(t).defaultView},u=function(t){return l(t).documentElement},c=0;function a(t){var e=f(t),t=u(t),e={height:e.innerHeight,width:e.innerWidth};return 0<t.scrollHeight-t.clientHeight&&(e.width-=(c||"undefined"==typeof document||((t=document.createElement("div")).style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),c=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)),c)),e}function s(t){if(t.getBoundingClientRect)return{bottom:(t=t.getBoundingClientRect()).bottom,left:t.left,right:t.right,top:t.top};t=a(t);return{bottom:t.height,left:0,right:t.width,top:0}}function h(t){return g(t)===t.ownerDocument.body}function p(t,e){for(var n=[],o=t.parentNode;o&&(n.push(o),o!==e);)o=o.parentNode;return n}var g=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||u(t)},m=function(t){var e=t.getBoundingClientRect(),n=e.left;return{top:e.top,left:n,height:(e=!e.height&&!e.width?function(t){var e=t.style,n=e.display,o=e.left,r=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";e=t.getBoundingClientRect();return t.style.display=n,t.style.left=o,t.style.position=r,e}(t):e).height,width:e.width}};function w(t){var e=u(t),t=f(t);return{x:t.pageXOffset||e.scrollLeft||0,y:t.pageYOffset||e.scrollTop||0}}var v=function(t){return t===(t.ownerDocument||{}).body?w(t):{x:t.scrollLeft,y:t.scrollTop}};function y(t){t=g(t);return t?v(t):{x:0,y:0}}function x(t,e){var n=f(t),o=n.getComputedStyle(t),r=m(t),i=e||g(t),e=t.ownerDocument,t=i!==e.body&&i!==e.documentElement,e={top:0,left:0};return"fixed"!==o.position&&t&&(n=n.getComputedStyle(i),(e=m(i)).top+=parseInt(n.borderTopWidth,10),e.left+=parseInt(n.borderLeftWidth,10)),{top:r.top-e.top,left:r.left-e.left,height:r.height,width:r.width}}function b(t,e,n){void 0===n&&(n=1);var o=e?g(e):null,r=(u=x(t,o)).top,i=u.left,l=u.height,f=u.width,e=(u=(e=t,o?v(o):y(e))).x,u=u.y,t=t.ownerDocument,n=o===t.body||o===t.documentElement?1:n;return{top:r+u*n,left:i+e*n,height:l,width:f}}function P(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}function S(t,e,n){return t<0?-t:n<t+e?n-(t+e):0}function z(t){var e=t.offset,n=t.size,o=t.anchorSize,r=t.viewPortSize,i=t.anchorAlignPoint,l=t.elementAlignPoint,f=0,t=2*t.margin;return l!==i&&l!==d.center&&l!==d.middle&&i!==d.center&&i!==d.middle&&(i=i===d.top||i===d.left,e<0&&i?e+(f=n+o+t)+n>r&&(f=0):0<=e&&!i&&(r<e+n&&(f+=-(o+n+t)),e+f<0&&(f=0))),f}function R(t){var e=t.anchorRect,n=t.anchorAlign,o=t.elementRect,r=t.elementAlign,i=t.collisions,l=t.viewPort,f=t.margin,u=o.top,c=o.left,d=o.height,a=o.width,s=l.height,h=l.width,p=(f=void 0===f?{}:f).horizontal||0,g=f.vertical||0,m=0,t=0,o=i.vertical===A.fit,l=i.horizontal===A.fit,f=i.vertical===A.flip,i=i.horizontal===A.flip;return o&&(t+=S(u,d,s)),l&&(m+=S(c,a,h)),f&&(t+=z({margin:g,offset:u,size:d,anchorSize:e.height,viewPortSize:s,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),i&&(m+=z({margin:p,offset:c,size:a,anchorSize:e.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal})),f=f&&0!==t,l=l&&0!==m,{flipped:(i=i&&0!==m)||f,fitted:(o=o&&0!==t)||l,flip:{horizontal:i,vertical:f},fit:{horizontal:l,vertical:o},offset:{left:m,top:t}}}function E(t){for(var e=[],n=t.parentNode.firstElementChild;n;)n!==t&&e.push(n),n=n.nextElementSibling;return e}function O(t,e){for(var n,o,r=p(t),i=e;i&&(n=E(i),!(o=r.reduce(function(t,e){return t.concat(n.filter(function(t){return t===e}))},[])[0]));)i=i.parentElement;return o}var A={fit:"fit",flip:"flip",none:"none"};function C(t,e){if(!t||!e)return null;e=O(t,e);if(!e)return null;e=[t].concat(p(t,e)).reduce(function(t,e){e=e.style.zIndex||window.getComputedStyle(e).zIndex,e=parseInt(e,10);return t<e?e:t},0);return e?e+1:null}function M(){return H.canUseDOM()?window:null}function k(t){if(!t||!H.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null}function D(){return H.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}function W(t){var n=t.anchor,o=t.element,e=t.anchorAlign,r=t.elementAlign,i=t.margin,l=t.offset,f=t.positionMode,t=t.scale||1,l="fixed"!==f&&j.hasOffsetParent(o)?function(t,e){t=H.eitherRect(j.position(n,o,e),t);return H.scaleRect(t,e)}(l,t):function(t,e,n,o){var r=(i=e,t?{x:0,y:0}:j.scrollPosition(i)),i=H.eitherRect(j.offset(t),n),t=2*o,n=j.stackingElementScroll(e);1!==o&&n&&(n.x/=t,n.y/=t);e=j.stackingElementOffset(e);return 1!==o&&e&&(e.left/=t,e.top/=t),j.removeScroll(j.addScroll(H.removeStackingOffset(H.scaleRect(i,o),e),n),r)}(n,o,l,t),t=H.scaleRect(j.offset(o),t);return j.align({anchorAlign:e,anchorRect:l,elementAlign:r,elementRect:t,margin:i})}function I(t){var e=t.anchor,n=t.currentLocation,o=t.element,r=t.anchorAlign,i=t.elementAlign,l=t.collisions,f=t.margin,u=t.scale||1,c=j.offsetAtPoint(o,n),c=H.scaleRect(c,u),e=H.scaleRect(j.offset(e),u),e=H.eitherRect(e,n);return(o=t.viewPort||j.windowViewPort(o)).width=o.width/u,o.height=o.height/u,o=j.restrictToView({anchorAlign:r,anchorRect:e,collisions:l,elementAlign:i,elementRect:c,margin:f,viewPort:o}),n=j.addOffset(n,o.offset),{flip:o.flip,flipped:o.flipped,offset:n}}var T,B,L=(B=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return B||(T=function(t){if(!V())return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return e.body.removeChild(n),o}.apply(void 0,t),B=!0),T}),V=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},H={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:L,canUseDOM:V},U=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],_=/auto|scroll/,j={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:r,align:o,boundingOffset:s,getFontStyles:function(t){var e=M();if(!e||!t)return[];var n=e.getComputedStyle(t);return U.map(function(t){return{key:t,value:n[t]}})},getWindow:M,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?m(t):null},offsetAtPoint:function(t,e){if(!t)return null;var n=t.style,o=n.left,r=n.top,n=n.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";e=m(t);return t.style.left=o,t.style.top=r,t.offsetHeight,t.style.transition=n,e},position:function(t,e,n){return t&&e?b(t,e,n||1):null},removeScroll:P,restrictToView:R,scrollPosition:w,scrollableParents:function(t){var e=[];if(!H.canUseDOM())return e;for(var n,o=t.parentElement;o;)(_.test(""+(n=o).style.overflow+n.style.overflowX+n.style.overflowY||""+(n=window.getComputedStyle(n)).overflow+n.overflowX+n.overflowY)||o.hasAttribute("data-scrollable"))&&e.push(o),o=o.parentElement;return e.push(window),e},getRelativeContextElement:k,stackingElementOffset:function(t){t=k(t);return t?m(t):null},stackingElementScroll:function(t){t=k(t);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){t=k(t);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(t){return Boolean(k(t))},windowViewPort:a,zoomLevel:D,isZoomed:function(){return 1<D()},zIndex:function(t,e){if(!t||!H.canUseDOM())return null;e=O(t,e);if(!e)return null;e=[t].concat(p(t,e)).reduce(function(t,e){e=e.style.zIndex||window.getComputedStyle(e).zIndex,e=parseInt(e,10);return t<e?e:t},0);return e?e+1:null}};n.d(e,"align",function(){return o}),n.d(e,"addScroll",function(){return r}),n.d(e,"applyLocationOffset",function(){return i}),n.d(e,"boundingOffset",function(){return s}),n.d(e,"isBodyOffset",function(){return h}),n.d(e,"offsetParent",function(){return g}),n.d(e,"offset",function(){return m}),n.d(e,"parents",function(){return p}),n.d(e,"parentScrollPosition",function(){return y}),n.d(e,"position",function(){return x}),n.d(e,"positionWithScroll",function(){return b}),n.d(e,"removeScroll",function(){return P}),n.d(e,"restrictToView",function(){return R}),n.d(e,"scrollPosition",function(){return w}),n.d(e,"siblingContainer",function(){return O}),n.d(e,"siblings",function(){return E}),n.d(e,"zIndex",function(){return C}),n.d(e,"alignElement",function(){return W}),n.d(e,"domUtils",function(){return j}),n.d(e,"utils",function(){return H}),n.d(e,"positionElement",function(){return I}),n.d(e,"getDocumentElement",function(){return u}),n.d(e,"getWindow",function(){return f}),n.d(e,"getWindowViewPort",function(){return a}),n.d(e,"AlignPoint",function(){return d}),n.d(e,"Collision",function(){return A}),function(t){for(var e in t)F(e,t[e])}(e)}],o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=0)}}});

@@ -6,3 +6,3 @@ {

"license": "Apache-2.0",
"version": "1.9.0-dev.202111301350",
"version": "1.9.0-dev.202112170915",
"main": "dist/npm/main.js",

@@ -9,0 +9,0 @@ "module": "dist/es/main.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc