Outlook_Addin_LLM/node_modules/@fluentui/react-focus/dist/react-focus.min.js

1 line
54 KiB
JavaScript
Raw Permalink Normal View History

var FluentUIReactFocus;!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{FocusZone:function(){return Kt},FocusZoneDirection:function(){return s},FocusZoneTabbableElements:function(){return u}});var n={},r=void 0;try{r=window}catch(e){}function o(e,t){if(void 0!==r){var o=r.__packages__=r.__packages__||{};o[e]&&n[e]||(n[e]=t,(o[e]=o[e]||[]).push(t))}}o("@fluentui/set-version","6.0.0"),o("@fluentui/react-focus","8.9.18");var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var s,l=React,u={none:0,all:1,inputOnly:2};function c(e,t){var n,r;if(void 0===t&&(t=!0),!e)return null;var o=t&&function(e){var t,n;return e&&(n=e)&&n._virtual&&(t=e._virtual.parent),t}(e);return o||("function"!=typeof e.assignedElements&&(null===(n=e.assignedSlot)||void 0===n?void 0:n.parentNode)?e.assignedSlot:11===(null===(r=e.parentNode)||void 0===r?void 0:r.nodeType)?e.parentNode.host:e.parentNode)}function d(e,t,n){return null!=n||(n=document),!e||e===n.body||e instanceof Document?null:t(e)?e:d(c(e),t)}function f(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(s||(s={}));var h=void 0;try{h=window}catch(e){}function p(e){if(f()&&void 0!==h){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:h}}function v(e){if(f()&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var g="data-is-focusable",m="data-is-visible",_="data-focuszone-id",b="data-is-sub-focuszone";function y(e,t,n,r,o,i,a,s,l){var u;if(!t||!a&&t===e)return null;var c=x(t);if(o&&c&&(i||!w(t)&&!S(t))){var d=y(e,t.lastElementChild||l&&(null===(u=t.shadowRoot)||void 0===u?void 0:u.lastElementChild),!0,!0,!0,i,a,s,l);if(d){if(s&&k(d,!0,l)||!s)return d;var f=y(e,d.previousElementSibling,!0,!0,!0,i,a,s,l);if(f)return f;for(var h=d.parentElement;h&&h!==t;){var p=y(e,h.previousElementSibling,!0,!0,!0,i,a,s,l);if(p)return p;h=h.parentElement}}}return n&&c&&k(t,s,l)?t:y(e,t.previousElementSibling,!0,!0,!0,i,a,s,l)||(r?null:y(e,t.parentElement,!0,!1,!1,i,a,s,l))}function E(e,t,n,r,o,i,a,s,l,u){var c;if(!t||t===e&&o&&!a)return null;var d=(l?C:x)(t);if(n&&d&&k(t,s,u))return t;if(!o&&d&&(i||!w(t)&&!S(t))){var f=E(e,t.firstElementChild||u&&(null===(c=t.shadowRoot)||void 0===c?void 0:c.firstElementChild),!0,!0,!1,i,a,s,l,u);if(f)return f}return t===e?null:E(e,t.nextElementSibling,!0,!0,!1,i,a,s,l,u)||(r?null:E(e,t.parentElement,!1,!1,!0,i,a,s,l,u))}function x(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(m);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function C(e,t){var n=null!=t?t:p();return!!e&&x(e)&&!e.hidden&&"hidden"!==n.getComputedStyle(e).visibility}function k(e,t,n){if(void 0===n&&(n=!0),!e||e.disabled)return!1;var r=0,o=null;e&&e.getAttribute&&(o=e.getAttribute("tabIndex"))&&(r=parseInt(o,10));var i=e.getAttribute?e.getAttribute(g):null,a=null!==o&&r>=0,s=!(!n||!e.shadowRoot||!e.shadowRoot.delegatesFocus),l=!!e&&"false"!==i&&("A"===e.tagName||"BUTT