@fluentui/react-focus
Advanced tools
Comparing version 7.3.0 to 7.3.1
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Thu, 16 Apr 2020 03:57:55 GMT", | ||
"date": "Thu, 16 Apr 2020 05:03:56 GMT", | ||
"tag": "@fluentui/react-focus_v7.3.1", | ||
"version": "7.3.1", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"comment": "FocusZone: Replacing use of 'on' helper with native eventing.", | ||
"author": "humbertomakotomorimoto@gmail.com", | ||
"commit": "8a155ad45348707cd27bd524926485933ae3c377", | ||
"package": "@fluentui/react-focus" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Thu, 16 Apr 2020 04:01:45 GMT", | ||
"tag": "@fluentui/react-focus_v7.3.0", | ||
@@ -8,0 +23,0 @@ "version": "7.3.0", |
# Change Log - @fluentui/react-focus | ||
This log was last generated on Thu, 16 Apr 2020 03:57:55 GMT and should not be manually modified. | ||
This log was last generated on Thu, 16 Apr 2020 05:03:56 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [7.3.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-focus_v7.3.1) | ||
Thu, 16 Apr 2020 05:03:56 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-focus_v7.3.0..@fluentui/react-focus_v7.3.1) | ||
### Patches | ||
- FocusZone: Replacing use of 'on' helper with native eventing. ([PR #12710](https://github.com/microsoft/fluentui/pull/12710) by humbertomakotomorimoto@gmail.com) | ||
## [7.3.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-focus_v7.3.0) | ||
Thu, 16 Apr 2020 03:57:55 GMT | ||
Thu, 16 Apr 2020 04:01:45 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-focus_v7.1.13..@fluentui/react-focus_v7.3.0) | ||
@@ -11,0 +20,0 @@ |
@@ -7,3 +7,2 @@ import { IPoint } from '@uifabric/utilities'; | ||
static defaultProps: IFocusZoneProps; | ||
private _disposables; | ||
private _root; | ||
@@ -29,2 +28,3 @@ private _id; | ||
private _processingTabKey; | ||
private _windowElement; | ||
/** Used for testing purposes only. */ | ||
@@ -31,0 +31,0 @@ static getOuterZones(): number; |
@@ -1,2 +0,2 @@ | ||
var FluentUIReactFocus=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},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=3)}([function(t,e){t.exports=React},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r={},o=void 0;try{o=window}catch(t){}function i(t,e){if(void 0!==o){var n=o.__packages__=o.__packages__||{};if(!n[t]||!r[t])r[t]=e,(n[t]=n[t]||[]).push(e)}}i("@uifabric/set-version","6.0.0")},function(t,e,n){"use strict";n.r(e),n.d(e,"FocusZone",(function(){return zt})),n.d(e,"FocusZoneTabbableElements",(function(){return c})),n.d(e,"FocusZoneDirection",(function(){return a}));var r=n(2);Object(r.a)("@fluentui/react-focus","7.3.0"); | ||
var FluentUIReactFocus=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},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=3)}([function(t,e){t.exports=React},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r={},o=void 0;try{o=window}catch(t){}function i(t,e){if(void 0!==o){var n=o.__packages__=o.__packages__||{};if(!n[t]||!r[t])r[t]=e,(n[t]=n[t]||[]).push(e)}}i("@uifabric/set-version","6.0.0")},function(t,e,n){"use strict";n.r(e),n.d(e,"FocusZone",(function(){return Rt})),n.d(e,"FocusZoneTabbableElements",(function(){return c})),n.d(e,"FocusZoneDirection",(function(){return a}));var r=n(2);Object(r.a)("@fluentui/react-focus","7.3.1"); | ||
/*! ***************************************************************************** | ||
@@ -16,3 +16,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function s(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}var a,u=n(0),c={none:0,all:1,inputOnly:2};function l(t,e){return void 0===e&&(e=!0),t&&(e&&function(t){var e,n;return t&&((n=t)&&n._virtual)&&(e=t._virtual.parent),e}(t)||t.parentNode&&t.parentNode)}function f(t,e){return t&&t!==document.body?e(t)?t:f(l(t),e):null}function h(t,e,n){void 0===n&&(n=!0);var r=!1;if(t&&e)if(n)for(r=!1;e;){var o=l(e);if(o===t){r=!0;break}e=o}else t.contains&&(r=t.contains(e));return r}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(a||(a={}));var p=!1;var d=void 0;try{d=window}catch(t){}function v(t){if(!p&&void 0!==d){var e=t;return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:d}}function m(t){if(!p&&"undefined"!=typeof document){var e=t;return e&&e.ownerDocument?e.ownerDocument:document}}function _(t,e,n,r,o,i,s,a){if(!e||!s&&e===t)return null;var u=y(e);if(o&&u&&(i||!E(e)&&!w(e))){var c=_(t,e.lastElementChild,!0,!0,!0,i,s,a);if(c){if(a&&b(c,!0)||!a)return c;var l=_(t,c.previousElementSibling,!0,!0,!0,i,s,a);if(l)return l;for(var f=c.parentElement;f&&f!==e;){var h=_(t,f.previousElementSibling,!0,!0,!0,i,s,a);if(h)return h;f=f.parentElement}}}if(n&&u&&b(e,a))return e;var p=_(t,e.previousElementSibling,!0,!0,!0,i,s,a);return p||(r?null:_(t,e.parentElement,!0,!1,!1,i,s,a))}function g(t,e,n,r,o,i,s,a){if(!e||e===t&&o&&!s)return null;var u=y(e);if(n&&u&&b(e,a))return e;if(!o&&u&&(i||!E(e)&&!w(e))){var c=g(t,e.firstElementChild,!0,!0,!1,i,s,a);if(c)return c}if(e===t)return null;var l=g(t,e.nextElementSibling,!0,!0,!1,i,s,a);return l||(r?null:g(t,e.parentElement,!1,!1,!0,i,s,a))}function y(t){if(!t||!t.getAttribute)return!1;var e=t.getAttribute("data-is-visible");return null!=e?"true"===e:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function b(t,e){if(!t||t.disabled)return!1;var n=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=t.getAttribute?t.getAttribute("data-is-focusable"):null,i=null!==r&&n>=0,s=!!t&&"false"!==o&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===o||i);return e?-1!==n&&s:s}function E(t){return!!(t&&t.getAttribute&&t.getAttribute("data-focuszone-id"))}function w(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute("data-is-sub-focuszone"))}function F(t,e){return"true"!==function(t,e){var n=f(t,(function(t){return t.hasAttribute(e)}));return n&&n.getAttribute(e)}(t,e)}var A,x=9,C=13,I=32,O=33,k=34,T=35,N=36,P=37,D=38,S=39,M=40;function R(t){A!==t&&(A=t)}function L(){return void 0===A&&(A="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),A}function z(){return{rtl:L()}}A=L();var K;function j(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===K){var e=function(t){var e=null;try{e=window.sessionStorage.getItem(t)}catch(t){}return e}("isRTL");null!==e&&function(t,e){void 0===e&&(e=!1);var n=m();n&&n.documentElement.setAttribute("dir",t?"rtl":"ltr");e&&function(t,e){try{window.sessionStorage.setItem(t,e)}catch(t){}}("isRTL",t?"1":"0");R(K=t)}(K="1"===e);var n=m();void 0===K&&n&&R(K="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!K}function Z(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.length<2?e[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.forEach((function(e){return e&&e.apply(t,n)}))}}function B(t){!function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=Z(t,t[n],e[n]))}(t,{componentDidMount:U,componentDidUpdate:W,componentWillUnmount:q})}function U(){V(this.props.componentRef,this)}function W(t){t.componentRef!==this.props.componentRef&&(V(t.componentRef,null),V(this.props.componentRef,this))}function q(){V(this.props.componentRef,null)}function V(t,e){t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))}var H=v()||{};function X(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}void 0===H.__currentId__&&(H.__currentId__=0);var $,G=0,J=1,Q=2,Y="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),tt={};try{tt=window}catch(t){}var et=function(){function t(t){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=i({injectionMode:J,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._keyToClassName=this._config.classNameCache||{}}return t.getInstance=function(){if(!($=tt.__stylesheet__)||$._lastStyleElement&&$._lastStyleElement.ownerDocument!==document){var e=tt&&tt.FabricConfig||{};$=tt.__stylesheet__=new t(e.mergeStyles)}return $},t.prototype.setConfig=function(t){this._config=i(i({},this._config),t)},t.prototype.onReset=function(t){this._onResetCallbacks.push(t)},t.prototype.getClassName=function(t){var e=this._config.namespace;return(e?e+"-":"")+(t||this._config.defaultPrefix)+"-"+this._counter++},t.prototype.cacheClassName=function(t,e,n,r){this._keyToClassName[e]=t,this._classNameToArgs[t]={args:n,rules:r}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.args},t.prototype.insertedRulesFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.rules},t.prototype.insertRule=function(t,e){var n=this._config.injectionMode!==G?this._getStyleElement():void 0;if(e&&this._preservedRules.push(t),n)switch(this._config.injectionMode){case J:var r=n.sheet;try{r.insertRule(t,r.cssRules.length)}catch(t){}break;case Q:n.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t)},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},t.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),Y||window.requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var t=document.head,e=document.createElement("style");e.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&e.setAttribute("nonce",n.nonce),this._lastStyleElement)t.insertBefore(e,this._lastStyleElement.nextElementSibling);else{var r=this._findPlaceholderStyleTag();r?t.insertBefore(e,r.nextElementSibling):t.insertBefore(e,t.childNodes[0])}return this._lastStyleElement=e,e},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}();function nt(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e=e||{};for(var o=0,i=n;o<i.length;o++){var s=i[o];if(s)for(var a in s)!s.hasOwnProperty(a)||t&&!t(a)||(e[a]=s[a])}return e}var rt=et.getInstance();rt&&rt.onReset&&rt.onReset((function(t){void 0===t&&(t=0),H.__currentId__=t}));var ot=["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","role","style","tabIndex","title","translate","spellCheck","name"].concat(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),it=(ot.concat(["form"]),ot.concat(["height","loop","muted","preload","src","width"]).concat(["poster"]),ot.concat(["start"]),ot.concat(["value"]),ot.concat(["download","href","hrefLang","media","rel","target","type"]),ot.concat(["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]));it.concat(["accept","alt","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),it.concat(["cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),it.concat(["form","multiple","required"]),ot.concat(["selected","value"]),ot.concat(["cellPadding","cellSpacing"]),ot.concat(["rowSpan","scope"]),ot.concat(["colSpan","headers","rowSpan","scope"]),ot.concat(["span"]),ot.concat(["span"]),ot.concat(["acceptCharset","action","encType","encType","method","noValidate","target"]),ot.concat(["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),ot.concat(["alt","crossOrigin","height","src","srcSet","useMap","width"]);function st(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[],r=0,o=t;r<o.length;r++){var i=o[r];if(i)if("string"==typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"==typeof i.toString)n.push(i.toString());else for(var s in i)i[s]&&n.push(s)}return n.join(" ")}function at(t){var e=function(t){var e;"function"==typeof Event?e=new Event(t):(e=document.createEvent("Event")).initEvent(t,!0,!0);return e}("MouseEvents");e.initEvent("click",!0,!0),t.dispatchEvent(e)}var ut,ct={};var lt={"user-select":1};function ft(t,e){var n=function(){if(!ut){var t="undefined"!=typeof document?document:void 0,e="undefined"!=typeof navigator?navigator:void 0,n=e?e.userAgent.toLowerCase():void 0;ut=t?{isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!e||!/rv:11.0/i.test(e.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return ut}(),r=t[e];if(lt[r]){var o=t[e+1];lt[r]&&(n.isWebkit&&t.push("-webkit-"+r,o),n.isMoz&&t.push("-moz-"+r,o),n.isMs&&t.push("-ms-"+r,o),n.isOpera&&t.push("-o-"+r,o))}}var ht,pt=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function dt(t,e){var n=t[e],r=t[e+1];if("number"==typeof r){var o=-1===pt.indexOf(n)?"px":"";t[e+1]=""+r+o}}var vt="left",mt="right",_t=((ht={}).left=mt,ht.right=vt,ht),gt={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function yt(t,e,n){if(t.rtl){var r=e[n];if(!r)return;var o=e[n+1];if("string"==typeof o&&o.indexOf("@noflip")>=0)e[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(vt)>=0)e[n]=r.replace(vt,mt);else if(r.indexOf(mt)>=0)e[n]=r.replace(mt,vt);else if(String(o).indexOf(vt)>=0)e[n+1]=o.replace(vt,mt);else if(String(o).indexOf(mt)>=0)e[n+1]=o.replace(mt,vt);else if(_t[r])e[n]=_t[r];else if(gt[o])e[n+1]=gt[o];else switch(r){case"margin":case"padding":e[n+1]=function(t){if("string"==typeof t){var e=t.split(" ");if(4===e.length)return e[0]+" "+e[3]+" "+e[2]+" "+e[1]}return t}(o);break;case"box-shadow":e[n+1]=function(t,e){var n=t.split(" "),r=parseInt(n[e],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o,0)}}}function bt(t){var e=t&&t["&"];return e?e.displayName:void 0}var Et=/\:global\((.+?)\)/g;function wt(t){if(!Et.test(t))return t;for(var e=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(t);)r[1].indexOf(",")>-1&&e.push([r.index,r.index+r[0].length,r[1].split(",").map((function(t){return":global("+t.trim()+")"})).join(", ")]);return e.reverse().reduce((function(t,e){var n=e[0],r=e[1],o=e[2];return t.slice(0,n)+o+t.slice(r)}),t)}function Ft(t,e){return t.indexOf(":global(")>=0?t.replace(Et,"$1"):0===t.indexOf(":")?e+t:t.indexOf("&")<0?e+" "+t:t}function At(t,e,n){void 0===e&&(e={__order:[]}),void 0===n&&(n="&");var r=et.getInstance(),o=e[n];o||(o={},e[n]=o,e.__order.push(n));for(var i=0,s=t;i<s.length;i++){var a=s[i];if("string"==typeof a){var u=r.argsFromClassName(a);u&&At(u,e,n)}else if(Array.isArray(a))At(a,e,n);else for(var c in a)if("selectors"===c){var l=a.selectors,f=function(t){if(l.hasOwnProperty(t)){var r=l[t];0===t.indexOf("@")?At([r],e,t=t+"{"+n):t.indexOf(",")>-1?wt(t).split(",").map((function(t){return t.trim()})).forEach((function(t){return At([r],e,Ft(t,n))})):At([r],e,Ft(t,n))}};for(var h in l)f(h)}else void 0!==a[c]&&("margin"===c||"padding"===c?xt(o,c,a[c]):o[c]=a[c])}return e}function xt(t,e,n){var r="string"==typeof n?n.split(" "):[n];t[e+"Top"]=r[0],t[e+"Right"]=r[1]||r[0],t[e+"Bottom"]=r[2]||r[0],t[e+"Left"]=r[3]||r[1]||r[0]}function Ct(t,e){for(var n=[t.rtl?"rtl":"ltr"],r=!1,o=0,i=e.__order;o<i.length;o++){var s=i[o];n.push(s);var a=e[s];for(var u in a)a.hasOwnProperty(u)&&void 0!==a[u]&&(r=!0,n.push(u,a[u]))}return r?n.join(""):void 0}function It(t,e){if(!e)return"";var n,r,o,i=[];for(var s in e)e.hasOwnProperty(s)&&"displayName"!==s&&void 0!==e[s]&&i.push(s,e[s]);for(var a=0;a<i.length;a+=2)o=void 0,o=(n=i)[r=a],n[r]=ct[o]=ct[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase(),dt(i,a),yt(t,i,a),ft(i,a);for(a=1;a<i.length;a+=4)i.splice(a,1,":",i[a],";");return i.join("")}function Ot(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=At(e),o=Ct(t,r);if(o){var i=et.getInstance(),s={className:i.classNameFromKey(o),key:o,args:e};if(!s.className){s.className=i.getClassName(bt(r));for(var a=[],u=0,c=r.__order;u<c.length;u++){var l=c[u];a.push(l,It(t,r[l]))}s.rulesToInsert=a}return s}}function kt(t){var e=et.getInstance(),n=t.className,r=t.key,o=t.args,i=t.rulesToInsert;if(i){for(var s=0;s<i.length;s+=2){var a=i[s+1];if(a){var u=i[s],c=(u=u.replace(/&/g,"."+t.className))+"{"+a+"}"+(0===u.indexOf("@")?"}":"");e.insertRule(c)}}e.cacheClassName(n,r,o,i)}}function Tt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Nt(t,z())}function Nt(t,e){var n=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=[],r=[],o=et.getInstance();function i(t){for(var e=0,s=t;e<s.length;e++){var a=s[e];if(a)if("string"==typeof a)if(a.indexOf(" ")>=0)i(a.split(" "));else{var u=o.argsFromClassName(a);u?i(u):-1===n.indexOf(a)&&n.push(a)}else Array.isArray(a)?i(a):"object"==typeof a&&r.push(a)}}return i(t),{classes:n,objects:r}}(t instanceof Array?t:[t]),r=n.classes,o=n.objects;return o.length&&r.push(function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Ot.apply(void 0,s([t],e));return r?(kt(r),r.className):""}(e||{},o)),r.join(" ")}Tt({overflow:"hidden !important"});function Pt(t){for(var e=t,n=m(t);e&&e!==n.body;){if("true"===e.getAttribute("data-is-scrollable"))return e;e=e.parentElement}for(e=t;e&&e!==n.body;){if("false"!==e.getAttribute("data-is-scrollable")){var r=getComputedStyle(e),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return e}e=e.parentElement}return e&&e!==n.body||(e=v(t)),e}var Dt;var St,Mt={},Rt=new Set,Lt=["text","number","password","email","tel","url","search"],zt=function(t){function e(e){var n=t.call(this,e)||this;return n._disposables=[],n._root=u.createRef(),n._onFocus=function(t){if(!n._portalContainsElement(t.target)){var e,r=n.props,o=r.onActiveElementChanged,i=r.doNotAllowFocusEventToPropagate,s=r.onFocusNotification,a=n._isImmediateDescendantOfZone(t.target);if(s&&s(),a)e=t.target;else for(var u=t.target;u&&u!==n._root.current;){if(b(u)&&n._isImmediateDescendantOfZone(u)){e=u;break}u=l(u,!1)}var c=!n._activeElement;e&&e!==n._activeElement&&((a||c)&&n._setFocusAlignment(e,!0,!0),n._activeElement=e,c&&n._updateTabIndexes()),o&&o(n._activeElement,t),i&&t.stopPropagation()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onKeyDownCapture=function(t){t.which===x&&Rt.forEach((function(t){return t._updateTabIndexes()}))},n._onMouseDown=function(t){if(!n._portalContainsElement(t.target)&&!n.props.disabled){for(var e=t.target,r=[];e&&e!==n._root.current;)r.push(e),e=l(e,!1);for(;r.length&&((e=r.pop())&&b(e)&&n._setActiveElement(e,!0),!E(e)););}},n._onKeyDown=function(t){if(!n._portalContainsElement(t.target)){var e=n.props,r=e.direction,o=e.disabled,i=e.isInnerZoneKeystroke;if(!(o||(n.props.onKeyDown&&n.props.onKeyDown(t),t.isDefaultPrevented()||n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if(i&&i(t)&&n._isImmediateDescendantOfZone(t.target)){var s=n._getFirstInnerZone();if(s){if(!s.focus(!0))return}else{if(!w(t.target))return;if(!n.focusElement(g(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case I:if(n._tryInvokeClickForFocusable(t.target))break;return;case P:if(r!==a.vertical&&n._moveFocusLeft())break;return;case S:if(r!==a.vertical&&n._moveFocusRight())break;return;case D:if(r!==a.horizontal&&n._moveFocusUp())break;return;case M:if(r!==a.horizontal&&n._moveFocusDown())break;return;case k:if(n._moveFocusPaging(!0))break;return;case O:if(n._moveFocusPaging(!1))break;return;case x:if(n.props.allowTabKey||n.props.handleTabKey===c.all||n.props.handleTabKey===c.inputOnly&&n._isElementInput(t.target)){var u=!1;if(n._processingTabKey=!0,r!==a.vertical&&n._shouldWrapFocus(n._activeElement,"data-no-horizontal-wrap"))u=(j()?!t.shiftKey:t.shiftKey)?n._moveFocusLeft():n._moveFocusRight();else u=t.shiftKey?n._moveFocusUp():n._moveFocusDown();if(n._processingTabKey=!1,u)break}return;case N:if(n._isElementInput(t.target)&&!n._shouldInputLoseFocus(t.target,!1))return!1;var l=n._root.current&&n._root.current.firstChild;if(n._root.current&&l&&n.focusElement(g(n._root.current,l,!0)))break;return;case T:if(n._isElementInput(t.target)&&!n._shouldInputLoseFocus(t.target,!0))return!1;var f=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(_(n._root.current,f,!0,!0,!0)))break;return;case C:if(n._tryInvokeClickForFocusable(t.target))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(t,e,r){var o=n._focusAlignment.x,i=Math.floor(r.top),s=Math.floor(e.bottom),a=Math.floor(r.bottom),u=Math.floor(e.top);return t&&i>s||!t&&a<u?o>=r.left&&o<=r.left+r.width?0:Math.abs(r.left+r.width/2-o):n._shouldWrapFocus(n._activeElement,"data-no-vertical-wrap")?999999999:-999999999},B(n),n._id=("FocusZone"||"id__")+H.__currentId__++,n._focusAlignment={x:0,y:0},n._processingTabKey=!1,n}return function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.getOuterZones=function(){return Rt.size},e.prototype.componentDidMount=function(){var t=this._root.current;if(Mt[this._id]=this,t){for(var e=v(t),n=l(t,!1);n&&n!==this._getDocument().body&&1===n.nodeType;){if(E(n)){this._isInnerZone=!0;break}n=l(n,!1)}this._isInnerZone||(Rt.add(this),e&&1===Rt.size&&(St=X(e,"keydown",this._onKeyDownCapture,!0))),this._disposables.push(X(t,"blur",this._onBlur,!0)),this._updateTabIndexes(),this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement),this.focus())}},e.prototype.componentDidUpdate=function(){var t=this._root.current,e=this._getDocument();if(e&&this._lastIndexPath&&(e.activeElement===e.body||e.activeElement===t||null===e.activeElement)){var n=function(t,e){for(var n=t,r=0,o=e;r<o.length;r++){var i=o[r],s=n.children[Math.min(i,n.children.length-1)];if(!s)break;n=s}return n=b(n)&&y(n)?n:g(t,n,!0)||_(t,n)}(t,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},e.prototype.componentWillUnmount=function(){delete Mt[this._id],this._isInnerZone||(Rt.delete(this),0===Rt.size&&St&&(St(),St=void 0)),this._disposables.forEach((function(t){return t()})),delete this._disposables},e.prototype.render=function(){var t,e,n,r=this.props,o=r.rootProps,s=r.ariaDescribedBy,a=r.ariaLabelledBy,c=r.className,l=(t=this.props,e=ot,nt((function(t){return(!n||n.indexOf(t)<0)&&(0===t.indexOf("data-")||0===t.indexOf("aria-")||e.indexOf(t)>=0)}),{},t)),f=this.props.as||this.props.elementType||"div";return this._evaluateFocusBeforeRender(),u.createElement(f,i({"aria-labelledby":a,"aria-describedby":s},l,o,{className:st((Dt||(Dt=Tt({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Dt),c),ref:this._root,"data-focuszone-id":this._id,onKeyDown:this._onKeyDown,onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},e.prototype.focus=function(t){if(void 0===t&&(t=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute("data-is-focusable")&&this._isInnerZone){var e=this._getOwnerZone(this._root.current);if(e!==this._root.current){var n=Mt[e.getAttribute("data-focuszone-id")];return!!n&&n.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&h(this._root.current,this._activeElement)&&b(this._activeElement))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(g(this._root.current,r,!0))}return!1},e.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(_(this._root.current,t,!0,!0,!0))}return!1},e.prototype.focusElement=function(t){var e=this.props.onBeforeFocus;return!(e&&!e(t))&&(!!t&&(this._setActiveElement(t),this._activeElement&&this._activeElement.focus(),!0))},e.prototype.setFocusAlignment=function(t){this._focusAlignment=t},e.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,e=this._getDocument();if(e){var n=e.activeElement;if(n!==t){var r=h(t,n,!1);this._lastIndexPath=r?function(t,e){for(var n=[];e&&t&&e!==t;){var r=l(e,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,e)),e=r}return n}(t,n):void 0}}},e.prototype._setParkedFocus=function(t){var e=this._root.current;e&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=e.getAttribute("tabindex"),e.setAttribute("tabindex","-1")),e.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(e.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):e.removeAttribute("tabindex")))},e.prototype._setActiveElement=function(t,e){var n=this._activeElement;this._activeElement=t,n&&(E(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!e||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},e.prototype._tryInvokeClickForFocusable=function(t){if(t===this._root.current)return!1;do{if("BUTTON"===t.tagName||"A"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName)return!1;if(this._isImmediateDescendantOfZone(t)&&"true"===t.getAttribute("data-is-focusable")&&"true"!==t.getAttribute("data-disable-click-on-enter"))return at(t),!0;t=l(t,!1)}while(t!==this._root.current);return!1},e.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(E(t))return Mt[t.getAttribute("data-focuszone-id")];for(var e=t.firstElementChild;e;){if(E(e))return Mt[e.getAttribute("data-focuszone-id")];var n=this._getFirstInnerZone(e);if(n)return n;e=e.nextElementSibling}return null},e.prototype._moveFocus=function(t,e,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,s=void 0,u=!1,c=this.props.direction===a.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,t))return!1;var l=c?o.getBoundingClientRect():null;do{if(o=t?g(this._root.current,o):_(this._root.current,o),!c){s=o;break}if(o){var f=e(l,o.getBoundingClientRect());if(-1===f&&-1===i){s=o;break}if(f>-1&&(-1===i||f<i)&&(i=f,s=o),i>=0&&f<0)break}}while(o);if(s&&s!==this._activeElement)u=!0,this.focusElement(s);else if(this.props.isCircularNavigation&&r)return t?this.focusElement(g(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(_(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},e.prototype._moveFocusDown=function(){var t=this,e=-1,n=this._focusAlignment.x;return!!this._moveFocus(!0,(function(r,o){var i=-1,s=Math.floor(o.top),a=Math.floor(r.bottom);return s<a?t._shouldWrapFocus(t._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===e&&s>=a||s===e)&&(e=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},e.prototype._moveFocusUp=function(){var t=this,e=-1,n=this._focusAlignment.x;return!!this._moveFocus(!1,(function(r,o){var i=-1,s=Math.floor(o.bottom),a=Math.floor(o.top),u=Math.floor(r.top);return s>u?t._shouldWrapFocus(t._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===e&&s<=u||a===e)&&(e=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},e.prototype._moveFocusLeft=function(){var t=this,e=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(j(),(function(n,r){var o=-1;return(j()?parseFloat(r.top.toFixed(3))<parseFloat(n.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(n.top.toFixed(3)))&&r.right<=n.right&&t.props.direction!==a.vertical?o=n.right-r.right:e||(o=-999999999),o}),void 0,e)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},e.prototype._moveFocusRight=function(){var t=this,e=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(!j(),(function(n,r){var o=-1;return(j()?parseFloat(r.bottom.toFixed(3))>parseFloat(n.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(n.bottom.toFixed(3)))&&r.left>=n.left&&t.props.direction!==a.vertical?o=r.left-n.left:e||(o=-999999999),o}),void 0,e)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},e.prototype._moveFocusPaging=function(t,e){void 0===e&&(e=!0),void 0===e&&(e=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,t))return!1;var r=Pt(n);if(!r)return!1;var o=-1,i=void 0,s=-1,a=-1,u=r.clientHeight,c=n.getBoundingClientRect();do{if(n=t?g(this._root.current,n):_(this._root.current,n)){var l=n.getBoundingClientRect(),f=Math.floor(l.top),h=Math.floor(c.bottom),p=Math.floor(l.bottom),d=Math.floor(c.top),v=this._getHorizontalDistanceFromCenter(t,c,l);if(t&&f>h+u||!t&&p<d-u)break;v>-1&&(t&&f>s?(s=f,o=v,i=n):!t&&p<a?(a=p,o=v,i=n):(-1===o||v<=o)&&(o=v,i=n))}}while(n);var m=!1;if(i&&i!==this._activeElement)m=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(g(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(_(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},e.prototype._setFocusAlignment=function(t,e,n){if(this.props.direction===a.bidirectional&&(!this._focusAlignment||e||n)){var r=t.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={x:o,y:i}),e&&(this._focusAlignment.x=o),n&&(this._focusAlignment.y=i)}},e.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},e.prototype._getOwnerZone=function(t){for(var e=l(t,!1);e&&e!==this._root.current&&e!==this._getDocument().body;){if(E(e))return e;e=l(e,!1)}return e},e.prototype._updateTabIndexes=function(t){!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!h(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!b(this._activeElement)&&(this._activeElement=null);for(var e=t&&t.children,n=0;e&&n<e.length;n++){var r=e[n];E(r)?"true"===r.getAttribute("data-is-focusable")&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","0"))):(r.getAttribute&&"false"===r.getAttribute("data-is-focusable")&&r.setAttribute("tabindex","-1"),b(r)?this.props.disabled?r.setAttribute("tabindex","-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},e.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},e.prototype._shouldInputLoseFocus=function(t,e){if(!this._processingTabKey&&t&&t.type&&Lt.indexOf(t.type.toLowerCase())>-1){var n=t.selectionStart,r=n!==t.selectionEnd,o=t.value,i=t.readOnly;if(r||n>0&&!e&&!i||n!==o.length&&e&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},e.prototype._shouldWrapFocus=function(t,e){return!this.props.checkForNoWrap||F(t,e)},e.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&(e=t,n=this._root.current,null!==(r=f(e,(function(t){return n===t||t.hasAttribute("data-portal-element")})))&&r.hasAttribute("data-portal-element"));var e,n,r},e.prototype._getDocument=function(){return m(this._root.current)},e.defaultProps={isCircularNavigation:!1,direction:a.bidirectional},e}(u.Component)}]); | ||
var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function s(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}var a,u=n(0),c={none:0,all:1,inputOnly:2};function l(t,e){return void 0===e&&(e=!0),t&&(e&&function(t){var e,n;return t&&((n=t)&&n._virtual)&&(e=t._virtual.parent),e}(t)||t.parentNode&&t.parentNode)}function f(t,e){return t&&t!==document.body?e(t)?t:f(l(t),e):null}function h(t,e,n){void 0===n&&(n=!0);var r=!1;if(t&&e)if(n)for(r=!1;e;){var o=l(e);if(o===t){r=!0;break}e=o}else t.contains&&(r=t.contains(e));return r}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(a||(a={}));var d=!1;var p=void 0;try{p=window}catch(t){}function v(t){if(!d&&void 0!==p){var e=t;return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:p}}function m(t){if(!d&&"undefined"!=typeof document){var e=t;return e&&e.ownerDocument?e.ownerDocument:document}}function _(t,e,n,r,o,i,s,a){if(!e||!s&&e===t)return null;var u=y(e);if(o&&u&&(i||!E(e)&&!w(e))){var c=_(t,e.lastElementChild,!0,!0,!0,i,s,a);if(c){if(a&&b(c,!0)||!a)return c;var l=_(t,c.previousElementSibling,!0,!0,!0,i,s,a);if(l)return l;for(var f=c.parentElement;f&&f!==e;){var h=_(t,f.previousElementSibling,!0,!0,!0,i,s,a);if(h)return h;f=f.parentElement}}}if(n&&u&&b(e,a))return e;var d=_(t,e.previousElementSibling,!0,!0,!0,i,s,a);return d||(r?null:_(t,e.parentElement,!0,!1,!1,i,s,a))}function g(t,e,n,r,o,i,s,a){if(!e||e===t&&o&&!s)return null;var u=y(e);if(n&&u&&b(e,a))return e;if(!o&&u&&(i||!E(e)&&!w(e))){var c=g(t,e.firstElementChild,!0,!0,!1,i,s,a);if(c)return c}if(e===t)return null;var l=g(t,e.nextElementSibling,!0,!0,!1,i,s,a);return l||(r?null:g(t,e.parentElement,!1,!1,!0,i,s,a))}function y(t){if(!t||!t.getAttribute)return!1;var e=t.getAttribute("data-is-visible");return null!=e?"true"===e:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function b(t,e){if(!t||t.disabled)return!1;var n=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=t.getAttribute?t.getAttribute("data-is-focusable"):null,i=null!==r&&n>=0,s=!!t&&"false"!==o&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===o||i);return e?-1!==n&&s:s}function E(t){return!!(t&&t.getAttribute&&t.getAttribute("data-focuszone-id"))}function w(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute("data-is-sub-focuszone"))}function F(t,e){return"true"!==function(t,e){var n=f(t,(function(t){return t.hasAttribute(e)}));return n&&n.getAttribute(e)}(t,e)}var A,x=9,C=13,I=32,O=33,k=34,T=35,N=36,P=37,D=38,S=39,M=40;function R(t){A!==t&&(A=t)}function L(){return void 0===A&&(A="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),A}function z(){return{rtl:L()}}A=L();var K;function j(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===K){var e=function(t){var e=null;try{e=window.sessionStorage.getItem(t)}catch(t){}return e}("isRTL");null!==e&&function(t,e){void 0===e&&(e=!1);var n=m();n&&n.documentElement.setAttribute("dir",t?"rtl":"ltr");e&&function(t,e){try{window.sessionStorage.setItem(t,e)}catch(t){}}("isRTL",t?"1":"0");R(K=t)}(K="1"===e);var n=m();void 0===K&&n&&R(K="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!K}function Z(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.length<2?e[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.forEach((function(e){return e&&e.apply(t,n)}))}}function B(t){!function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=Z(t,t[n],e[n]))}(t,{componentDidMount:U,componentDidUpdate:W,componentWillUnmount:q})}function U(){V(this.props.componentRef,this)}function W(t){t.componentRef!==this.props.componentRef&&(V(t.componentRef,null),V(this.props.componentRef,this))}function q(){V(this.props.componentRef,null)}function V(t,e){t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))}var H=v()||{};void 0===H.__currentId__&&(H.__currentId__=0);var X,$=0,G=1,J=2,Q="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),Y={};try{Y=window}catch(t){}var tt=function(){function t(t){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=i({injectionMode:G,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._keyToClassName=this._config.classNameCache||{}}return t.getInstance=function(){if(!(X=Y.__stylesheet__)||X._lastStyleElement&&X._lastStyleElement.ownerDocument!==document){var e=Y&&Y.FabricConfig||{};X=Y.__stylesheet__=new t(e.mergeStyles)}return X},t.prototype.setConfig=function(t){this._config=i(i({},this._config),t)},t.prototype.onReset=function(t){this._onResetCallbacks.push(t)},t.prototype.getClassName=function(t){var e=this._config.namespace;return(e?e+"-":"")+(t||this._config.defaultPrefix)+"-"+this._counter++},t.prototype.cacheClassName=function(t,e,n,r){this._keyToClassName[e]=t,this._classNameToArgs[t]={args:n,rules:r}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.args},t.prototype.insertedRulesFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.rules},t.prototype.insertRule=function(t,e){var n=this._config.injectionMode!==$?this._getStyleElement():void 0;if(e&&this._preservedRules.push(t),n)switch(this._config.injectionMode){case G:var r=n.sheet;try{r.insertRule(t,r.cssRules.length)}catch(t){}break;case J:n.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t)},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},t.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),Q||window.requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var t=document.head,e=document.createElement("style");e.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&e.setAttribute("nonce",n.nonce),this._lastStyleElement)t.insertBefore(e,this._lastStyleElement.nextElementSibling);else{var r=this._findPlaceholderStyleTag();r?t.insertBefore(e,r.nextElementSibling):t.insertBefore(e,t.childNodes[0])}return this._lastStyleElement=e,e},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}();function et(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e=e||{};for(var o=0,i=n;o<i.length;o++){var s=i[o];if(s)for(var a in s)!s.hasOwnProperty(a)||t&&!t(a)||(e[a]=s[a])}return e}var nt=tt.getInstance();nt&&nt.onReset&&nt.onReset((function(t){void 0===t&&(t=0),H.__currentId__=t}));var rt=["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","role","style","tabIndex","title","translate","spellCheck","name"].concat(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),ot=(rt.concat(["form"]),rt.concat(["height","loop","muted","preload","src","width"]).concat(["poster"]),rt.concat(["start"]),rt.concat(["value"]),rt.concat(["download","href","hrefLang","media","rel","target","type"]),rt.concat(["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]));ot.concat(["accept","alt","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),ot.concat(["cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),ot.concat(["form","multiple","required"]),rt.concat(["selected","value"]),rt.concat(["cellPadding","cellSpacing"]),rt.concat(["rowSpan","scope"]),rt.concat(["colSpan","headers","rowSpan","scope"]),rt.concat(["span"]),rt.concat(["span"]),rt.concat(["acceptCharset","action","encType","encType","method","noValidate","target"]),rt.concat(["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),rt.concat(["alt","crossOrigin","height","src","srcSet","useMap","width"]);function it(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[],r=0,o=t;r<o.length;r++){var i=o[r];if(i)if("string"==typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"==typeof i.toString)n.push(i.toString());else for(var s in i)i[s]&&n.push(s)}return n.join(" ")}function st(t){var e=function(t){var e;"function"==typeof Event?e=new Event(t):(e=document.createEvent("Event")).initEvent(t,!0,!0);return e}("MouseEvents");e.initEvent("click",!0,!0),t.dispatchEvent(e)}var at,ut={};var ct={"user-select":1};function lt(t,e){var n=function(){if(!at){var t="undefined"!=typeof document?document:void 0,e="undefined"!=typeof navigator?navigator:void 0,n=e?e.userAgent.toLowerCase():void 0;at=t?{isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!e||!/rv:11.0/i.test(e.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return at}(),r=t[e];if(ct[r]){var o=t[e+1];ct[r]&&(n.isWebkit&&t.push("-webkit-"+r,o),n.isMoz&&t.push("-moz-"+r,o),n.isMs&&t.push("-ms-"+r,o),n.isOpera&&t.push("-o-"+r,o))}}var ft,ht=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function dt(t,e){var n=t[e],r=t[e+1];if("number"==typeof r){var o=-1===ht.indexOf(n)?"px":"";t[e+1]=""+r+o}}var pt="left",vt="right",mt=((ft={}).left=vt,ft.right=pt,ft),_t={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function gt(t,e,n){if(t.rtl){var r=e[n];if(!r)return;var o=e[n+1];if("string"==typeof o&&o.indexOf("@noflip")>=0)e[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(pt)>=0)e[n]=r.replace(pt,vt);else if(r.indexOf(vt)>=0)e[n]=r.replace(vt,pt);else if(String(o).indexOf(pt)>=0)e[n+1]=o.replace(pt,vt);else if(String(o).indexOf(vt)>=0)e[n+1]=o.replace(vt,pt);else if(mt[r])e[n]=mt[r];else if(_t[o])e[n+1]=_t[o];else switch(r){case"margin":case"padding":e[n+1]=function(t){if("string"==typeof t){var e=t.split(" ");if(4===e.length)return e[0]+" "+e[3]+" "+e[2]+" "+e[1]}return t}(o);break;case"box-shadow":e[n+1]=function(t,e){var n=t.split(" "),r=parseInt(n[e],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o,0)}}}function yt(t){var e=t&&t["&"];return e?e.displayName:void 0}var bt=/\:global\((.+?)\)/g;function Et(t){if(!bt.test(t))return t;for(var e=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(t);)r[1].indexOf(",")>-1&&e.push([r.index,r.index+r[0].length,r[1].split(",").map((function(t){return":global("+t.trim()+")"})).join(", ")]);return e.reverse().reduce((function(t,e){var n=e[0],r=e[1],o=e[2];return t.slice(0,n)+o+t.slice(r)}),t)}function wt(t,e){return t.indexOf(":global(")>=0?t.replace(bt,"$1"):0===t.indexOf(":")?e+t:t.indexOf("&")<0?e+" "+t:t}function Ft(t,e,n){void 0===e&&(e={__order:[]}),void 0===n&&(n="&");var r=tt.getInstance(),o=e[n];o||(o={},e[n]=o,e.__order.push(n));for(var i=0,s=t;i<s.length;i++){var a=s[i];if("string"==typeof a){var u=r.argsFromClassName(a);u&&Ft(u,e,n)}else if(Array.isArray(a))Ft(a,e,n);else for(var c in a)if("selectors"===c){var l=a.selectors,f=function(t){if(l.hasOwnProperty(t)){var r=l[t];0===t.indexOf("@")?Ft([r],e,t=t+"{"+n):t.indexOf(",")>-1?Et(t).split(",").map((function(t){return t.trim()})).forEach((function(t){return Ft([r],e,wt(t,n))})):Ft([r],e,wt(t,n))}};for(var h in l)f(h)}else void 0!==a[c]&&("margin"===c||"padding"===c?At(o,c,a[c]):o[c]=a[c])}return e}function At(t,e,n){var r="string"==typeof n?n.split(" "):[n];t[e+"Top"]=r[0],t[e+"Right"]=r[1]||r[0],t[e+"Bottom"]=r[2]||r[0],t[e+"Left"]=r[3]||r[1]||r[0]}function xt(t,e){for(var n=[t.rtl?"rtl":"ltr"],r=!1,o=0,i=e.__order;o<i.length;o++){var s=i[o];n.push(s);var a=e[s];for(var u in a)a.hasOwnProperty(u)&&void 0!==a[u]&&(r=!0,n.push(u,a[u]))}return r?n.join(""):void 0}function Ct(t,e){if(!e)return"";var n,r,o,i=[];for(var s in e)e.hasOwnProperty(s)&&"displayName"!==s&&void 0!==e[s]&&i.push(s,e[s]);for(var a=0;a<i.length;a+=2)o=void 0,o=(n=i)[r=a],n[r]=ut[o]=ut[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase(),dt(i,a),gt(t,i,a),lt(i,a);for(a=1;a<i.length;a+=4)i.splice(a,1,":",i[a],";");return i.join("")}function It(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Ft(e),o=xt(t,r);if(o){var i=tt.getInstance(),s={className:i.classNameFromKey(o),key:o,args:e};if(!s.className){s.className=i.getClassName(yt(r));for(var a=[],u=0,c=r.__order;u<c.length;u++){var l=c[u];a.push(l,Ct(t,r[l]))}s.rulesToInsert=a}return s}}function Ot(t){var e=tt.getInstance(),n=t.className,r=t.key,o=t.args,i=t.rulesToInsert;if(i){for(var s=0;s<i.length;s+=2){var a=i[s+1];if(a){var u=i[s],c=(u=u.replace(/&/g,"."+t.className))+"{"+a+"}"+(0===u.indexOf("@")?"}":"");e.insertRule(c)}}e.cacheClassName(n,r,o,i)}}function kt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Tt(t,z())}function Tt(t,e){var n=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=[],r=[],o=tt.getInstance();function i(t){for(var e=0,s=t;e<s.length;e++){var a=s[e];if(a)if("string"==typeof a)if(a.indexOf(" ")>=0)i(a.split(" "));else{var u=o.argsFromClassName(a);u?i(u):-1===n.indexOf(a)&&n.push(a)}else Array.isArray(a)?i(a):"object"==typeof a&&r.push(a)}}return i(t),{classes:n,objects:r}}(t instanceof Array?t:[t]),r=n.classes,o=n.objects;return o.length&&r.push(function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=It.apply(void 0,s([t],e));return r?(Ot(r),r.className):""}(e||{},o)),r.join(" ")}kt({overflow:"hidden !important"});function Nt(t){for(var e=t,n=m(t);e&&e!==n.body;){if("true"===e.getAttribute("data-is-scrollable"))return e;e=e.parentElement}for(e=t;e&&e!==n.body;){if("false"!==e.getAttribute("data-is-scrollable")){var r=getComputedStyle(e),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return e}e=e.parentElement}return e&&e!==n.body||(e=v(t)),e}var Pt;var Dt={},St=new Set,Mt=["text","number","password","email","tel","url","search"],Rt=function(t){function e(e){var n=t.call(this,e)||this;return n._root=u.createRef(),n._onFocus=function(t){if(!n._portalContainsElement(t.target)){var e,r=n.props,o=r.onActiveElementChanged,i=r.doNotAllowFocusEventToPropagate,s=r.onFocusNotification,a=n._isImmediateDescendantOfZone(t.target);if(s&&s(),a)e=t.target;else for(var u=t.target;u&&u!==n._root.current;){if(b(u)&&n._isImmediateDescendantOfZone(u)){e=u;break}u=l(u,!1)}var c=!n._activeElement;e&&e!==n._activeElement&&((a||c)&&n._setFocusAlignment(e,!0,!0),n._activeElement=e,c&&n._updateTabIndexes()),o&&o(n._activeElement,t),i&&t.stopPropagation()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onKeyDownCapture=function(t){t.which===x&&St.forEach((function(t){return t._updateTabIndexes()}))},n._onMouseDown=function(t){if(!n._portalContainsElement(t.target)&&!n.props.disabled){for(var e=t.target,r=[];e&&e!==n._root.current;)r.push(e),e=l(e,!1);for(;r.length&&((e=r.pop())&&b(e)&&n._setActiveElement(e,!0),!E(e)););}},n._onKeyDown=function(t){if(!n._portalContainsElement(t.target)){var e=n.props,r=e.direction,o=e.disabled,i=e.isInnerZoneKeystroke;if(!(o||(n.props.onKeyDown&&n.props.onKeyDown(t),t.isDefaultPrevented()||n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if(i&&i(t)&&n._isImmediateDescendantOfZone(t.target)){var s=n._getFirstInnerZone();if(s){if(!s.focus(!0))return}else{if(!w(t.target))return;if(!n.focusElement(g(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case I:if(n._tryInvokeClickForFocusable(t.target))break;return;case P:if(r!==a.vertical&&n._moveFocusLeft())break;return;case S:if(r!==a.vertical&&n._moveFocusRight())break;return;case D:if(r!==a.horizontal&&n._moveFocusUp())break;return;case M:if(r!==a.horizontal&&n._moveFocusDown())break;return;case k:if(n._moveFocusPaging(!0))break;return;case O:if(n._moveFocusPaging(!1))break;return;case x:if(n.props.allowTabKey||n.props.handleTabKey===c.all||n.props.handleTabKey===c.inputOnly&&n._isElementInput(t.target)){var u=!1;if(n._processingTabKey=!0,r!==a.vertical&&n._shouldWrapFocus(n._activeElement,"data-no-horizontal-wrap"))u=(j()?!t.shiftKey:t.shiftKey)?n._moveFocusLeft():n._moveFocusRight();else u=t.shiftKey?n._moveFocusUp():n._moveFocusDown();if(n._processingTabKey=!1,u)break}return;case N:if(n._isElementInput(t.target)&&!n._shouldInputLoseFocus(t.target,!1))return!1;var l=n._root.current&&n._root.current.firstChild;if(n._root.current&&l&&n.focusElement(g(n._root.current,l,!0)))break;return;case T:if(n._isElementInput(t.target)&&!n._shouldInputLoseFocus(t.target,!0))return!1;var f=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(_(n._root.current,f,!0,!0,!0)))break;return;case C:if(n._tryInvokeClickForFocusable(t.target))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(t,e,r){var o=n._focusAlignment.x,i=Math.floor(r.top),s=Math.floor(e.bottom),a=Math.floor(r.bottom),u=Math.floor(e.top);return t&&i>s||!t&&a<u?o>=r.left&&o<=r.left+r.width?0:Math.abs(r.left+r.width/2-o):n._shouldWrapFocus(n._activeElement,"data-no-vertical-wrap")?999999999:-999999999},B(n),n._id=("FocusZone"||"id__")+H.__currentId__++,n._focusAlignment={x:0,y:0},n._processingTabKey=!1,n}return function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.getOuterZones=function(){return St.size},e.prototype.componentDidMount=function(){var t=this._root.current;if(Dt[this._id]=this,t){this._windowElement=v(t);for(var e=l(t,!1);e&&e!==this._getDocument().body&&1===e.nodeType;){if(E(e)){this._isInnerZone=!0;break}e=l(e,!1)}this._isInnerZone||(St.add(this),this._windowElement&&1===St.size&&this._windowElement.addEventListener("keydown",this._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement),this.focus())}},e.prototype.componentDidUpdate=function(){var t=this._root.current,e=this._getDocument();if(e&&this._lastIndexPath&&(e.activeElement===e.body||e.activeElement===t||null===e.activeElement)){var n=function(t,e){for(var n=t,r=0,o=e;r<o.length;r++){var i=o[r],s=n.children[Math.min(i,n.children.length-1)];if(!s)break;n=s}return n=b(n)&&y(n)?n:g(t,n,!0)||_(t,n)}(t,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},e.prototype.componentWillUnmount=function(){delete Dt[this._id],this._isInnerZone||(St.delete(this),this._windowElement&&0===St.size&&this._windowElement.removeEventListener("keydown",this._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},e.prototype.render=function(){var t,e,n,r=this.props,o=r.rootProps,s=r.ariaDescribedBy,a=r.ariaLabelledBy,c=r.className,l=(t=this.props,e=rt,et((function(t){return(!n||n.indexOf(t)<0)&&(0===t.indexOf("data-")||0===t.indexOf("aria-")||e.indexOf(t)>=0)}),{},t)),f=this.props.as||this.props.elementType||"div";return this._evaluateFocusBeforeRender(),u.createElement(f,i({"aria-labelledby":a,"aria-describedby":s},l,o,{className:it((Pt||(Pt=kt({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Pt),c),ref:this._root,"data-focuszone-id":this._id,onKeyDown:this._onKeyDown,onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},e.prototype.focus=function(t){if(void 0===t&&(t=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute("data-is-focusable")&&this._isInnerZone){var e=this._getOwnerZone(this._root.current);if(e!==this._root.current){var n=Dt[e.getAttribute("data-focuszone-id")];return!!n&&n.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&h(this._root.current,this._activeElement)&&b(this._activeElement))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(g(this._root.current,r,!0))}return!1},e.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(_(this._root.current,t,!0,!0,!0))}return!1},e.prototype.focusElement=function(t){var e=this.props.onBeforeFocus;return!(e&&!e(t))&&(!!t&&(this._setActiveElement(t),this._activeElement&&this._activeElement.focus(),!0))},e.prototype.setFocusAlignment=function(t){this._focusAlignment=t},e.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,e=this._getDocument();if(e){var n=e.activeElement;if(n!==t){var r=h(t,n,!1);this._lastIndexPath=r?function(t,e){for(var n=[];e&&t&&e!==t;){var r=l(e,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,e)),e=r}return n}(t,n):void 0}}},e.prototype._setParkedFocus=function(t){var e=this._root.current;e&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=e.getAttribute("tabindex"),e.setAttribute("tabindex","-1")),e.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(e.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):e.removeAttribute("tabindex")))},e.prototype._setActiveElement=function(t,e){var n=this._activeElement;this._activeElement=t,n&&(E(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!e||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},e.prototype._tryInvokeClickForFocusable=function(t){if(t===this._root.current)return!1;do{if("BUTTON"===t.tagName||"A"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName)return!1;if(this._isImmediateDescendantOfZone(t)&&"true"===t.getAttribute("data-is-focusable")&&"true"!==t.getAttribute("data-disable-click-on-enter"))return st(t),!0;t=l(t,!1)}while(t!==this._root.current);return!1},e.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(E(t))return Dt[t.getAttribute("data-focuszone-id")];for(var e=t.firstElementChild;e;){if(E(e))return Dt[e.getAttribute("data-focuszone-id")];var n=this._getFirstInnerZone(e);if(n)return n;e=e.nextElementSibling}return null},e.prototype._moveFocus=function(t,e,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,s=void 0,u=!1,c=this.props.direction===a.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,t))return!1;var l=c?o.getBoundingClientRect():null;do{if(o=t?g(this._root.current,o):_(this._root.current,o),!c){s=o;break}if(o){var f=e(l,o.getBoundingClientRect());if(-1===f&&-1===i){s=o;break}if(f>-1&&(-1===i||f<i)&&(i=f,s=o),i>=0&&f<0)break}}while(o);if(s&&s!==this._activeElement)u=!0,this.focusElement(s);else if(this.props.isCircularNavigation&&r)return t?this.focusElement(g(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(_(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},e.prototype._moveFocusDown=function(){var t=this,e=-1,n=this._focusAlignment.x;return!!this._moveFocus(!0,(function(r,o){var i=-1,s=Math.floor(o.top),a=Math.floor(r.bottom);return s<a?t._shouldWrapFocus(t._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===e&&s>=a||s===e)&&(e=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},e.prototype._moveFocusUp=function(){var t=this,e=-1,n=this._focusAlignment.x;return!!this._moveFocus(!1,(function(r,o){var i=-1,s=Math.floor(o.bottom),a=Math.floor(o.top),u=Math.floor(r.top);return s>u?t._shouldWrapFocus(t._activeElement,"data-no-vertical-wrap")?999999999:-999999999:((-1===e&&s<=u||a===e)&&(e=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},e.prototype._moveFocusLeft=function(){var t=this,e=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(j(),(function(n,r){var o=-1;return(j()?parseFloat(r.top.toFixed(3))<parseFloat(n.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(n.top.toFixed(3)))&&r.right<=n.right&&t.props.direction!==a.vertical?o=n.right-r.right:e||(o=-999999999),o}),void 0,e)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},e.prototype._moveFocusRight=function(){var t=this,e=this._shouldWrapFocus(this._activeElement,"data-no-horizontal-wrap");return!!this._moveFocus(!j(),(function(n,r){var o=-1;return(j()?parseFloat(r.bottom.toFixed(3))>parseFloat(n.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(n.bottom.toFixed(3)))&&r.left>=n.left&&t.props.direction!==a.vertical?o=r.left-n.left:e||(o=-999999999),o}),void 0,e)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},e.prototype._moveFocusPaging=function(t,e){void 0===e&&(e=!0),void 0===e&&(e=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,t))return!1;var r=Nt(n);if(!r)return!1;var o=-1,i=void 0,s=-1,a=-1,u=r.clientHeight,c=n.getBoundingClientRect();do{if(n=t?g(this._root.current,n):_(this._root.current,n)){var l=n.getBoundingClientRect(),f=Math.floor(l.top),h=Math.floor(c.bottom),d=Math.floor(l.bottom),p=Math.floor(c.top),v=this._getHorizontalDistanceFromCenter(t,c,l);if(t&&f>h+u||!t&&d<p-u)break;v>-1&&(t&&f>s?(s=f,o=v,i=n):!t&&d<a?(a=d,o=v,i=n):(-1===o||v<=o)&&(o=v,i=n))}}while(n);var m=!1;if(i&&i!==this._activeElement)m=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(g(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(_(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},e.prototype._setFocusAlignment=function(t,e,n){if(this.props.direction===a.bidirectional&&(!this._focusAlignment||e||n)){var r=t.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={x:o,y:i}),e&&(this._focusAlignment.x=o),n&&(this._focusAlignment.y=i)}},e.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},e.prototype._getOwnerZone=function(t){for(var e=l(t,!1);e&&e!==this._root.current&&e!==this._getDocument().body;){if(E(e))return e;e=l(e,!1)}return e},e.prototype._updateTabIndexes=function(t){!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!h(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!b(this._activeElement)&&(this._activeElement=null);for(var e=t&&t.children,n=0;e&&n<e.length;n++){var r=e[n];E(r)?"true"===r.getAttribute("data-is-focusable")&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","0"))):(r.getAttribute&&"false"===r.getAttribute("data-is-focusable")&&r.setAttribute("tabindex","-1"),b(r)?this.props.disabled?r.setAttribute("tabindex","-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute("tabindex")&&r.setAttribute("tabindex","0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},e.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},e.prototype._shouldInputLoseFocus=function(t,e){if(!this._processingTabKey&&t&&t.type&&Mt.indexOf(t.type.toLowerCase())>-1){var n=t.selectionStart,r=n!==t.selectionEnd,o=t.value,i=t.readOnly;if(r||n>0&&!e&&!i||n!==o.length&&e&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},e.prototype._shouldWrapFocus=function(t,e){return!this.props.checkForNoWrap||F(t,e)},e.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&(e=t,n=this._root.current,null!==(r=f(e,(function(t){return n===t||t.hasAttribute("data-portal-element")})))&&r.hasAttribute("data-portal-element"));var e,n,r},e.prototype._getDocument=function(){return m(this._root.current)},e.defaultProps={isCircularNavigation:!1,direction:a.bidirectional},e}(u.Component)}]); | ||
//# sourceMappingURL=react-focus.min.js.map |
@@ -6,3 +6,2 @@ import * as React from 'react'; | ||
static defaultProps: IFocusZoneProps; | ||
private _disposables; | ||
private _root; | ||
@@ -28,2 +27,3 @@ private _id; | ||
private _processingTabKey; | ||
private _windowElement; | ||
/** Used for testing purposes only. */ | ||
@@ -30,0 +30,0 @@ static getOuterZones(): number; |
@@ -29,4 +29,2 @@ define(["require", "exports", "tslib", "react", "./FocusZone.types", "@uifabric/utilities", "@uifabric/merge-styles"], function (require, exports, tslib_1, React, FocusZone_types_1, utilities_1, merge_styles_1) { | ||
var _outerZones = new Set(); | ||
// Track the 1 global keydown listener we hook to window. | ||
var _disposeGlobalKeyDownListener; | ||
var ALLOWED_INPUT_TYPES = ['text', 'number', 'password', 'email', 'tel', 'url', 'search']; | ||
@@ -38,3 +36,2 @@ var ALLOW_VIRTUAL_ELEMENTS = false; | ||
var _this = _super.call(this, props) || this; | ||
_this._disposables = []; | ||
_this._root = React.createRef(); | ||
@@ -304,3 +301,3 @@ _this._onFocus = function (ev) { | ||
if (root) { | ||
var windowElement = utilities_1.getWindow(root); | ||
this._windowElement = utilities_1.getWindow(root); | ||
var parentElement = utilities_1.getParent(root, ALLOW_VIRTUAL_ELEMENTS); | ||
@@ -316,7 +313,7 @@ while (parentElement && parentElement !== this._getDocument().body && parentElement.nodeType === 1) { | ||
_outerZones.add(this); | ||
if (windowElement && _outerZones.size === 1) { | ||
_disposeGlobalKeyDownListener = utilities_1.on(windowElement, 'keydown', this._onKeyDownCapture, true); | ||
if (this._windowElement && _outerZones.size === 1) { | ||
this._windowElement.addEventListener('keydown', this._onKeyDownCapture, true); | ||
} | ||
} | ||
this._disposables.push(utilities_1.on(root, 'blur', this._onBlur, true)); | ||
this._root.current && this._root.current.addEventListener('blur', this._onBlur, true); | ||
// Assign initial tab indexes so that we can set initial focus as appropriate. | ||
@@ -355,12 +352,11 @@ this._updateTabIndexes(); | ||
// If this is the last outer zone, remove the keydown listener. | ||
if (_outerZones.size === 0 && _disposeGlobalKeyDownListener) { | ||
_disposeGlobalKeyDownListener(); | ||
// Clear reference so closure can be garbage-collected. | ||
_disposeGlobalKeyDownListener = undefined; | ||
if (this._windowElement && _outerZones.size === 0) { | ||
this._windowElement.removeEventListener('keydown', this._onKeyDownCapture, true); | ||
} | ||
} | ||
// Dispose all events. | ||
this._disposables.forEach(function (d) { return d(); }); | ||
// Clear function references so their closures can be garbage-collected. | ||
delete this._disposables; | ||
if (this._root.current) { | ||
this._root.current.removeEventListener('blur', this._onBlur, true); | ||
} | ||
this._activeElement = null; | ||
this._defaultFocusElement = null; | ||
}; | ||
@@ -367,0 +363,0 @@ FocusZone.prototype.render = function () { |
define(["require", "exports", "@uifabric/set-version"], function (require, exports, set_version_1) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
set_version_1.setVersion('@fluentui/react-focus', '7.3.0'); | ||
set_version_1.setVersion('@fluentui/react-focus', '7.3.1'); | ||
}); | ||
//# sourceMappingURL=version.js.map |
@@ -6,3 +6,2 @@ import * as React from 'react'; | ||
static defaultProps: IFocusZoneProps; | ||
private _disposables; | ||
private _root; | ||
@@ -28,2 +27,3 @@ private _id; | ||
private _processingTabKey; | ||
private _windowElement; | ||
/** Used for testing purposes only. */ | ||
@@ -30,0 +30,0 @@ static getOuterZones(): number; |
@@ -33,4 +33,2 @@ "use strict"; | ||
var _outerZones = new Set(); | ||
// Track the 1 global keydown listener we hook to window. | ||
var _disposeGlobalKeyDownListener; | ||
var ALLOWED_INPUT_TYPES = ['text', 'number', 'password', 'email', 'tel', 'url', 'search']; | ||
@@ -42,3 +40,2 @@ var ALLOW_VIRTUAL_ELEMENTS = false; | ||
var _this = _super.call(this, props) || this; | ||
_this._disposables = []; | ||
_this._root = React.createRef(); | ||
@@ -316,3 +313,3 @@ _this._onFocus = function (ev) { | ||
if (root) { | ||
var windowElement = utilities_1.getWindow(root); | ||
this._windowElement = utilities_1.getWindow(root); | ||
var parentElement = utilities_1.getParent(root, ALLOW_VIRTUAL_ELEMENTS); | ||
@@ -328,7 +325,7 @@ while (parentElement && parentElement !== this._getDocument().body && parentElement.nodeType === 1) { | ||
_outerZones.add(this); | ||
if (windowElement && _outerZones.size === 1) { | ||
_disposeGlobalKeyDownListener = utilities_1.on(windowElement, 'keydown', this._onKeyDownCapture, true); | ||
if (this._windowElement && _outerZones.size === 1) { | ||
this._windowElement.addEventListener('keydown', this._onKeyDownCapture, true); | ||
} | ||
} | ||
this._disposables.push(utilities_1.on(root, 'blur', this._onBlur, true)); | ||
this._root.current && this._root.current.addEventListener('blur', this._onBlur, true); | ||
// Assign initial tab indexes so that we can set initial focus as appropriate. | ||
@@ -367,12 +364,11 @@ this._updateTabIndexes(); | ||
// If this is the last outer zone, remove the keydown listener. | ||
if (_outerZones.size === 0 && _disposeGlobalKeyDownListener) { | ||
_disposeGlobalKeyDownListener(); | ||
// Clear reference so closure can be garbage-collected. | ||
_disposeGlobalKeyDownListener = undefined; | ||
if (this._windowElement && _outerZones.size === 0) { | ||
this._windowElement.removeEventListener('keydown', this._onKeyDownCapture, true); | ||
} | ||
} | ||
// Dispose all events. | ||
this._disposables.forEach(function (d) { return d(); }); | ||
// Clear function references so their closures can be garbage-collected. | ||
delete this._disposables; | ||
if (this._root.current) { | ||
this._root.current.removeEventListener('blur', this._onBlur, true); | ||
} | ||
this._activeElement = null; | ||
this._defaultFocusElement = null; | ||
}; | ||
@@ -379,0 +375,0 @@ FocusZone.prototype.render = function () { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// @fluentui/react-focus@7.3.0 | ||
// @fluentui/react-focus@7.3.1 | ||
// Do not modify this file, the file is generated as part of publish. The checked in version is a placeholder only. | ||
var set_version_1 = require("@uifabric/set-version"); | ||
set_version_1.setVersion('@fluentui/react-focus', '7.3.0'); | ||
set_version_1.setVersion('@fluentui/react-focus', '7.3.1'); | ||
//# sourceMappingURL=version.js.map |
@@ -6,3 +6,2 @@ import * as React from 'react'; | ||
static defaultProps: IFocusZoneProps; | ||
private _disposables; | ||
private _root; | ||
@@ -28,2 +27,3 @@ private _id; | ||
private _processingTabKey; | ||
private _windowElement; | ||
/** Used for testing purposes only. */ | ||
@@ -30,0 +30,0 @@ static getOuterZones(): number; |
import { __assign, __extends } from "tslib"; | ||
import * as React from 'react'; | ||
import { FocusZoneDirection, FocusZoneTabbableElements } from './FocusZone.types'; | ||
import { KeyCodes, css, elementContains, getDocument, getElementIndexPath, getFocusableByIndexPath, getId, getNativeProps, getNextElement, getParent, getPreviousElement, getRTL, htmlElementProperties, initializeComponentRef, isElementFocusSubZone, isElementFocusZone, isElementTabbable, on, raiseClick, shouldWrapFocus, warnDeprecations, portalContainsElement, getWindow, findScrollableParent, } from '@uifabric/utilities'; | ||
import { KeyCodes, css, elementContains, getDocument, getElementIndexPath, getFocusableByIndexPath, getId, getNativeProps, getNextElement, getParent, getPreviousElement, getRTL, htmlElementProperties, initializeComponentRef, isElementFocusSubZone, isElementFocusZone, isElementTabbable, raiseClick, shouldWrapFocus, warnDeprecations, portalContainsElement, getWindow, findScrollableParent, } from '@uifabric/utilities'; | ||
import { mergeStyles } from '@uifabric/merge-styles'; | ||
@@ -31,4 +31,2 @@ var IS_FOCUSABLE_ATTRIBUTE = 'data-is-focusable'; | ||
var _outerZones = new Set(); | ||
// Track the 1 global keydown listener we hook to window. | ||
var _disposeGlobalKeyDownListener; | ||
var ALLOWED_INPUT_TYPES = ['text', 'number', 'password', 'email', 'tel', 'url', 'search']; | ||
@@ -40,3 +38,2 @@ var ALLOW_VIRTUAL_ELEMENTS = false; | ||
var _this = _super.call(this, props) || this; | ||
_this._disposables = []; | ||
_this._root = React.createRef(); | ||
@@ -314,3 +311,3 @@ _this._onFocus = function (ev) { | ||
if (root) { | ||
var windowElement = getWindow(root); | ||
this._windowElement = getWindow(root); | ||
var parentElement = getParent(root, ALLOW_VIRTUAL_ELEMENTS); | ||
@@ -326,7 +323,7 @@ while (parentElement && parentElement !== this._getDocument().body && parentElement.nodeType === 1) { | ||
_outerZones.add(this); | ||
if (windowElement && _outerZones.size === 1) { | ||
_disposeGlobalKeyDownListener = on(windowElement, 'keydown', this._onKeyDownCapture, true); | ||
if (this._windowElement && _outerZones.size === 1) { | ||
this._windowElement.addEventListener('keydown', this._onKeyDownCapture, true); | ||
} | ||
} | ||
this._disposables.push(on(root, 'blur', this._onBlur, true)); | ||
this._root.current && this._root.current.addEventListener('blur', this._onBlur, true); | ||
// Assign initial tab indexes so that we can set initial focus as appropriate. | ||
@@ -365,12 +362,11 @@ this._updateTabIndexes(); | ||
// If this is the last outer zone, remove the keydown listener. | ||
if (_outerZones.size === 0 && _disposeGlobalKeyDownListener) { | ||
_disposeGlobalKeyDownListener(); | ||
// Clear reference so closure can be garbage-collected. | ||
_disposeGlobalKeyDownListener = undefined; | ||
if (this._windowElement && _outerZones.size === 0) { | ||
this._windowElement.removeEventListener('keydown', this._onKeyDownCapture, true); | ||
} | ||
} | ||
// Dispose all events. | ||
this._disposables.forEach(function (d) { return d(); }); | ||
// Clear function references so their closures can be garbage-collected. | ||
delete this._disposables; | ||
if (this._root.current) { | ||
this._root.current.removeEventListener('blur', this._onBlur, true); | ||
} | ||
this._activeElement = null; | ||
this._defaultFocusElement = null; | ||
}; | ||
@@ -377,0 +373,0 @@ FocusZone.prototype.render = function () { |
@@ -1,5 +0,5 @@ | ||
// @fluentui/react-focus@7.3.0 | ||
// @fluentui/react-focus@7.3.1 | ||
// Do not modify this file, the file is generated as part of publish. The checked in version is a placeholder only. | ||
import { setVersion } from '@uifabric/set-version'; | ||
setVersion('@fluentui/react-focus', '7.3.0'); | ||
setVersion('@fluentui/react-focus', '7.3.1'); | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@fluentui/react-focus", | ||
"version": "7.3.0", | ||
"version": "7.3.1", | ||
"description": "Focus helpers to be used in React applications.", | ||
@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1257315
13003