bitboss-ui 0.2.64 → 0.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index101.js +2 -2
- package/dist/index103.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +4 -4
- package/dist/index113.js +1 -1
- package/dist/index116.js +12 -12
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index131.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +9 -9
- package/dist/index19.js +3 -3
- package/dist/index197.js +10 -2
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +5 -4
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +14 -366
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +13 -131
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +19 -5
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +19 -18
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +29 -2
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +8 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +2 -174
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +368 -23
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +126 -365
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +2 -3
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +172 -33
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.js +23 -6
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +373 -3
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +2 -3
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +4 -16
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +235 -16
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +3 -20
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +3 -29
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +2 -8
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +3 -235
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +34 -9
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +6 -121
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +121 -2
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +2 -2
- package/dist/index222.js.map +1 -1
- package/dist/index224.js +79 -6
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +2 -17
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +6 -4
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +17 -6
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +69 -2
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +159 -294
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +1 -4
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +5 -2
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +11 -113
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +294 -105
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -434
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +2 -89
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -224
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +2 -258
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +2 -79
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +2 -5
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +2 -200
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -160
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +119 -1
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +105 -68
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +4 -2
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +224 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +258 -2
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -2
- package/dist/index248.js +435 -2
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +89 -2
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index250.js +200 -15
- package/dist/index250.js.map +1 -1
- package/dist/index254.js +2 -3
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +3 -2
- package/dist/index255.js.map +1 -1
- package/dist/index29.js +3 -3
- package/dist/index31.js +7 -7
- package/dist/index33.js +1 -1
- package/dist/index35.js +2 -2
- package/dist/index47.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index65.js +4 -4
- package/dist/index69.js +2 -2
- package/dist/index72.js +1 -1
- package/dist/index75.js +1 -1
- package/dist/index77.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index233.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index233.js","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n // Browsers without `ShadowRoot` support.\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n const webkit = isWebKit();\n const css = getComputedStyle(element);\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else {\n currentNode = getParentNode(currentNode);\n }\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.pageXOffset,\n scrollTop: element.pageYOffset\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isWebKit };\n"],"names":["getNodeName","node","isNode","getWindow","_node$ownerDocument","getDocumentElement","_ref","value","isElement","isHTMLElement","isShadowRoot","isOverflowElement","element","overflow","overflowX","overflowY","display","getComputedStyle","isTableElement","isContainingBlock","webkit","isWebKit","css","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","getNodeScroll","result","getNearestOverflowAncestor","parentNode","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win"],"mappings":"AAAA,SAASA,EAAYC,GAAM;AACzB,SAAIC,EAAOD,CAAI,KACLA,EAAK,YAAY,IAAI,YAAW,IAKnC;AACT;AACA,SAASE,EAAUF,GAAM;AACv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C,SAAIyB,EAAsBI,CAAU,IAC3B7B,EAAK,gBAAgBA,EAAK,cAAc,OAAOA,EAAK,OAEzDQ,EAAcqB,CAAU,KAAKnB,EAAkBmB,CAAU,IACpDA,IAEFD,EAA2BC,CAAU;AAC9C;AACA,SAASC,EAAqB9B,GAAM+B,GAAMC,GAAiB;AACzD,MAAIC;AACJ,EAAIF,MAAS,WACXA,IAAO,CAAA,IAELC,MAAoB,WACtBA,IAAkB;AAEpB,QAAME,IAAqBN,EAA2B5B,CAAI,GACpDmC,IAASD,QAAyBD,IAAuBjC,EAAK,kBAAkB,OAAO,SAASiC,EAAqB,OACrHG,IAAMlC,EAAUgC,CAAkB;AACxC,SAAIC,IACKJ,EAAK,OAAOK,GAAKA,EAAI,kBAAkB,CAAE,GAAE1B,EAAkBwB,CAAkB,IAAIA,IAAqB,IAAIE,EAAI,gBAAgBJ,IAAkBF,EAAqBM,EAAI,YAAY,IAAI,CAAA,CAAE,IAE/LL,EAAK,OAAOG,GAAoBJ,EAAqBI,GAAoB,CAAE,GAAEF,CAAe,CAAC;AACtG;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index233.js","sources":["../node_modules/dayjs/dayjs.min.js"],"sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));"],"names":["t","e","module","this","n","r","i","s","u","a","o","c","f","h","d","l","$","y","M","m","v","g","p","S","_","w","O","b","D","k"],"mappings":";;;;;AAAA,KAAC,SAASA,GAAEC,GAAE;AAAsD,MAAAC,YAA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G,EAAEL,CAAC,GAAEK,EAAE,KAAG,GAAEA,EAAE,IAAE,IAAGA;AAAA,IAAC,CAAC;AAAA;;","x_google_ignoreList":[0]}
|
package/dist/index234.js
CHANGED
|
@@ -1,438 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
5
|
-
*/
|
|
6
|
-
function z(u, a) {
|
|
7
|
-
var o = Object.keys(u);
|
|
8
|
-
if (Object.getOwnPropertySymbols) {
|
|
9
|
-
var i = Object.getOwnPropertySymbols(u);
|
|
10
|
-
a && (i = i.filter(function(m) {
|
|
11
|
-
return Object.getOwnPropertyDescriptor(u, m).enumerable;
|
|
12
|
-
})), o.push.apply(o, i);
|
|
13
|
-
}
|
|
14
|
-
return o;
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
15
4
|
}
|
|
16
|
-
function J(u) {
|
|
17
|
-
for (var a = 1; a < arguments.length; a++) {
|
|
18
|
-
var o = arguments[a] != null ? arguments[a] : {};
|
|
19
|
-
a % 2 ? z(Object(o), !0).forEach(function(i) {
|
|
20
|
-
ne(u, i, o[i]);
|
|
21
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(u, Object.getOwnPropertyDescriptors(o)) : z(Object(o)).forEach(function(i) {
|
|
22
|
-
Object.defineProperty(u, i, Object.getOwnPropertyDescriptor(o, i));
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return u;
|
|
26
|
-
}
|
|
27
|
-
function ne(u, a, o) {
|
|
28
|
-
return a = ie(a), a in u ? Object.defineProperty(u, a, {
|
|
29
|
-
value: o,
|
|
30
|
-
enumerable: !0,
|
|
31
|
-
configurable: !0,
|
|
32
|
-
writable: !0
|
|
33
|
-
}) : u[a] = o, u;
|
|
34
|
-
}
|
|
35
|
-
function re(u, a) {
|
|
36
|
-
if (typeof u != "object" || u === null)
|
|
37
|
-
return u;
|
|
38
|
-
var o = u[Symbol.toPrimitive];
|
|
39
|
-
if (o !== void 0) {
|
|
40
|
-
var i = o.call(u, a || "default");
|
|
41
|
-
if (typeof i != "object")
|
|
42
|
-
return i;
|
|
43
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44
|
-
}
|
|
45
|
-
return (a === "string" ? String : Number)(u);
|
|
46
|
-
}
|
|
47
|
-
function ie(u) {
|
|
48
|
-
var a = re(u, "string");
|
|
49
|
-
return typeof a == "symbol" ? a : String(a);
|
|
50
|
-
}
|
|
51
|
-
var Q = {
|
|
52
|
-
activateTrap: function(a, o) {
|
|
53
|
-
if (a.length > 0) {
|
|
54
|
-
var i = a[a.length - 1];
|
|
55
|
-
i !== o && i.pause();
|
|
56
|
-
}
|
|
57
|
-
var m = a.indexOf(o);
|
|
58
|
-
m === -1 || a.splice(m, 1), a.push(o);
|
|
59
|
-
},
|
|
60
|
-
deactivateTrap: function(a, o) {
|
|
61
|
-
var i = a.indexOf(o);
|
|
62
|
-
i !== -1 && a.splice(i, 1), a.length > 0 && a[a.length - 1].unpause();
|
|
63
|
-
}
|
|
64
|
-
}, oe = function(a) {
|
|
65
|
-
return a.tagName && a.tagName.toLowerCase() === "input" && typeof a.select == "function";
|
|
66
|
-
}, ue = function(a) {
|
|
67
|
-
return (a == null ? void 0 : a.key) === "Escape" || (a == null ? void 0 : a.key) === "Esc" || (a == null ? void 0 : a.keyCode) === 27;
|
|
68
|
-
}, L = function(a) {
|
|
69
|
-
return (a == null ? void 0 : a.key) === "Tab" || (a == null ? void 0 : a.keyCode) === 9;
|
|
70
|
-
}, se = function(a) {
|
|
71
|
-
return L(a) && !a.shiftKey;
|
|
72
|
-
}, ce = function(a) {
|
|
73
|
-
return L(a) && a.shiftKey;
|
|
74
|
-
}, W = function(a) {
|
|
75
|
-
return setTimeout(a, 0);
|
|
76
|
-
}, X = function(a, o) {
|
|
77
|
-
var i = -1;
|
|
78
|
-
return a.every(function(m, s) {
|
|
79
|
-
return o(m) ? (i = s, !1) : !0;
|
|
80
|
-
}), i;
|
|
81
|
-
}, B = function(a) {
|
|
82
|
-
for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), m = 1; m < o; m++)
|
|
83
|
-
i[m - 1] = arguments[m];
|
|
84
|
-
return typeof a == "function" ? a.apply(void 0, i) : a;
|
|
85
|
-
}, C = function(a) {
|
|
86
|
-
return a.target.shadowRoot && typeof a.composedPath == "function" ? a.composedPath()[0] : a.target;
|
|
87
|
-
}, le = [], de = function(a, o) {
|
|
88
|
-
var i = (o == null ? void 0 : o.document) || document, m = (o == null ? void 0 : o.trapStack) || le, s = J({
|
|
89
|
-
returnFocusOnDeactivate: !0,
|
|
90
|
-
escapeDeactivates: !0,
|
|
91
|
-
delayInitialFocus: !0,
|
|
92
|
-
isKeyForward: se,
|
|
93
|
-
isKeyBackward: ce
|
|
94
|
-
}, o), n = {
|
|
95
|
-
// containers given to createFocusTrap()
|
|
96
|
-
// @type {Array<HTMLElement>}
|
|
97
|
-
containers: [],
|
|
98
|
-
// list of objects identifying tabbable nodes in `containers` in the trap
|
|
99
|
-
// NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
|
|
100
|
-
// is active, but the trap should never get to a state where there isn't at least one group
|
|
101
|
-
// with at least one tabbable node in it (that would lead to an error condition that would
|
|
102
|
-
// result in an error being thrown)
|
|
103
|
-
// @type {Array<{
|
|
104
|
-
// container: HTMLElement,
|
|
105
|
-
// tabbableNodes: Array<HTMLElement>, // empty if none
|
|
106
|
-
// focusableNodes: Array<HTMLElement>, // empty if none
|
|
107
|
-
// posTabIndexesFound: boolean,
|
|
108
|
-
// firstTabbableNode: HTMLElement|undefined,
|
|
109
|
-
// lastTabbableNode: HTMLElement|undefined,
|
|
110
|
-
// firstDomTabbableNode: HTMLElement|undefined,
|
|
111
|
-
// lastDomTabbableNode: HTMLElement|undefined,
|
|
112
|
-
// nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
|
|
113
|
-
// }>}
|
|
114
|
-
containerGroups: [],
|
|
115
|
-
// same order/length as `containers` list
|
|
116
|
-
// references to objects in `containerGroups`, but only those that actually have
|
|
117
|
-
// tabbable nodes in them
|
|
118
|
-
// NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
|
|
119
|
-
// the same length
|
|
120
|
-
tabbableGroups: [],
|
|
121
|
-
nodeFocusedBeforeActivation: null,
|
|
122
|
-
mostRecentlyFocusedNode: null,
|
|
123
|
-
active: !1,
|
|
124
|
-
paused: !1,
|
|
125
|
-
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
126
|
-
// has been delayed during activation
|
|
127
|
-
delayInitialFocusTimer: void 0,
|
|
128
|
-
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
129
|
-
recentNavEvent: void 0
|
|
130
|
-
}, g, h = function(t, e, r) {
|
|
131
|
-
return t && t[e] !== void 0 ? t[e] : s[r || e];
|
|
132
|
-
}, F = function(t, e) {
|
|
133
|
-
var r = typeof (e == null ? void 0 : e.composedPath) == "function" ? e.composedPath() : void 0;
|
|
134
|
-
return n.containerGroups.findIndex(function(c) {
|
|
135
|
-
var l = c.container, d = c.tabbableNodes;
|
|
136
|
-
return l.contains(t) || // fall back to explicit tabbable search which will take into consideration any
|
|
137
|
-
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
138
|
-
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
139
|
-
// look inside web components even if open)
|
|
140
|
-
(r == null ? void 0 : r.includes(l)) || d.find(function(v) {
|
|
141
|
-
return v === t;
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
}, E = function(t) {
|
|
145
|
-
var e = s[t];
|
|
146
|
-
if (typeof e == "function") {
|
|
147
|
-
for (var r = arguments.length, c = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
|
|
148
|
-
c[l - 1] = arguments[l];
|
|
149
|
-
e = e.apply(void 0, c);
|
|
150
|
-
}
|
|
151
|
-
if (e === !0 && (e = void 0), !e) {
|
|
152
|
-
if (e === void 0 || e === !1)
|
|
153
|
-
return e;
|
|
154
|
-
throw new Error("`".concat(t, "` was specified but was not a node, or did not return a node"));
|
|
155
|
-
}
|
|
156
|
-
var d = e;
|
|
157
|
-
if (typeof e == "string" && (d = i.querySelector(e), !d))
|
|
158
|
-
throw new Error("`".concat(t, "` as selector refers to no known node"));
|
|
159
|
-
return d;
|
|
160
|
-
}, P = function() {
|
|
161
|
-
var t = E("initialFocus");
|
|
162
|
-
if (t === !1)
|
|
163
|
-
return !1;
|
|
164
|
-
if (t === void 0 || !G(t, s.tabbableOptions))
|
|
165
|
-
if (F(i.activeElement) >= 0)
|
|
166
|
-
t = i.activeElement;
|
|
167
|
-
else {
|
|
168
|
-
var e = n.tabbableGroups[0], r = e && e.firstTabbableNode;
|
|
169
|
-
t = r || E("fallbackFocus");
|
|
170
|
-
}
|
|
171
|
-
if (!t)
|
|
172
|
-
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
173
|
-
return t;
|
|
174
|
-
}, D = function() {
|
|
175
|
-
if (n.containerGroups = n.containers.map(function(t) {
|
|
176
|
-
var e = te(t, s.tabbableOptions), r = ae(t, s.tabbableOptions), c = e.length > 0 ? e[0] : void 0, l = e.length > 0 ? e[e.length - 1] : void 0, d = r.find(function(b) {
|
|
177
|
-
return T(b);
|
|
178
|
-
}), v = r.slice().reverse().find(function(b) {
|
|
179
|
-
return T(b);
|
|
180
|
-
}), p = !!e.find(function(b) {
|
|
181
|
-
return K(b) > 0;
|
|
182
|
-
});
|
|
183
|
-
return {
|
|
184
|
-
container: t,
|
|
185
|
-
tabbableNodes: e,
|
|
186
|
-
focusableNodes: r,
|
|
187
|
-
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
188
|
-
posTabIndexesFound: p,
|
|
189
|
-
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
190
|
-
firstTabbableNode: c,
|
|
191
|
-
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
192
|
-
lastTabbableNode: l,
|
|
193
|
-
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
194
|
-
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
195
|
-
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
196
|
-
// https://github.com/whatwg/dom/issues/320) and since this first/last is only needed, so far,
|
|
197
|
-
// to address an edge case related to positive tabindex support, this seems like a much easier,
|
|
198
|
-
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
199
|
-
// be avoided anyway...
|
|
200
|
-
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
201
|
-
firstDomTabbableNode: d,
|
|
202
|
-
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
203
|
-
lastDomTabbableNode: v,
|
|
204
|
-
/**
|
|
205
|
-
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
206
|
-
* in this container, if any.
|
|
207
|
-
* @param {HTMLElement} node
|
|
208
|
-
* @param {boolean} [forward] True if going in forward tab order; false if going
|
|
209
|
-
* in reverse.
|
|
210
|
-
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
211
|
-
*/
|
|
212
|
-
nextTabbableNode: function(N) {
|
|
213
|
-
var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, y = e.indexOf(N);
|
|
214
|
-
return y < 0 ? O ? r.slice(r.indexOf(N) + 1).find(function(R) {
|
|
215
|
-
return T(R);
|
|
216
|
-
}) : r.slice(0, r.indexOf(N)).reverse().find(function(R) {
|
|
217
|
-
return T(R);
|
|
218
|
-
}) : e[y + (O ? 1 : -1)];
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
}), n.tabbableGroups = n.containerGroups.filter(function(t) {
|
|
222
|
-
return t.tabbableNodes.length > 0;
|
|
223
|
-
}), n.tabbableGroups.length <= 0 && !E("fallbackFocus"))
|
|
224
|
-
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
225
|
-
if (n.containerGroups.find(function(t) {
|
|
226
|
-
return t.posTabIndexesFound;
|
|
227
|
-
}) && n.containerGroups.length > 1)
|
|
228
|
-
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
229
|
-
}, Z = function f(t) {
|
|
230
|
-
var e = t.activeElement;
|
|
231
|
-
if (e)
|
|
232
|
-
return e.shadowRoot && e.shadowRoot.activeElement !== null ? f(e.shadowRoot) : e;
|
|
233
|
-
}, w = function f(t) {
|
|
234
|
-
if (t !== !1 && t !== Z(document)) {
|
|
235
|
-
if (!t || !t.focus) {
|
|
236
|
-
f(P());
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
t.focus({
|
|
240
|
-
preventScroll: !!s.preventScroll
|
|
241
|
-
}), n.mostRecentlyFocusedNode = t, oe(t) && t.select();
|
|
242
|
-
}
|
|
243
|
-
}, S = function(t) {
|
|
244
|
-
var e = E("setReturnFocus", t);
|
|
245
|
-
return e || (e === !1 ? !1 : t);
|
|
246
|
-
}, U = function(t) {
|
|
247
|
-
var e = t.target, r = t.event, c = t.isBackward, l = c === void 0 ? !1 : c;
|
|
248
|
-
e = e || C(r), D();
|
|
249
|
-
var d = null;
|
|
250
|
-
if (n.tabbableGroups.length > 0) {
|
|
251
|
-
var v = F(e, r), p = v >= 0 ? n.containerGroups[v] : void 0;
|
|
252
|
-
if (v < 0)
|
|
253
|
-
l ? d = n.tabbableGroups[n.tabbableGroups.length - 1].lastTabbableNode : d = n.tabbableGroups[0].firstTabbableNode;
|
|
254
|
-
else if (l) {
|
|
255
|
-
var b = X(n.tabbableGroups, function(I) {
|
|
256
|
-
var x = I.firstTabbableNode;
|
|
257
|
-
return e === x;
|
|
258
|
-
});
|
|
259
|
-
if (b < 0 && (p.container === e || G(e, s.tabbableOptions) && !T(e, s.tabbableOptions) && !p.nextTabbableNode(e, !1)) && (b = v), b >= 0) {
|
|
260
|
-
var N = b === 0 ? n.tabbableGroups.length - 1 : b - 1, O = n.tabbableGroups[N];
|
|
261
|
-
d = K(e) >= 0 ? O.lastTabbableNode : O.lastDomTabbableNode;
|
|
262
|
-
} else
|
|
263
|
-
L(r) || (d = p.nextTabbableNode(e, !1));
|
|
264
|
-
} else {
|
|
265
|
-
var y = X(n.tabbableGroups, function(I) {
|
|
266
|
-
var x = I.lastTabbableNode;
|
|
267
|
-
return e === x;
|
|
268
|
-
});
|
|
269
|
-
if (y < 0 && (p.container === e || G(e, s.tabbableOptions) && !T(e, s.tabbableOptions) && !p.nextTabbableNode(e)) && (y = v), y >= 0) {
|
|
270
|
-
var R = y === n.tabbableGroups.length - 1 ? 0 : y + 1, $ = n.tabbableGroups[R];
|
|
271
|
-
d = K(e) >= 0 ? $.firstTabbableNode : $.firstDomTabbableNode;
|
|
272
|
-
} else
|
|
273
|
-
L(r) || (d = p.nextTabbableNode(e));
|
|
274
|
-
}
|
|
275
|
-
} else
|
|
276
|
-
d = E("fallbackFocus");
|
|
277
|
-
return d;
|
|
278
|
-
}, A = function(t) {
|
|
279
|
-
var e = C(t);
|
|
280
|
-
if (!(F(e, t) >= 0)) {
|
|
281
|
-
if (B(s.clickOutsideDeactivates, t)) {
|
|
282
|
-
g.deactivate({
|
|
283
|
-
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
284
|
-
// which will result in the outside click setting focus to the node
|
|
285
|
-
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
286
|
-
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
287
|
-
// on activation (or the configured `setReturnFocus` node), whether the
|
|
288
|
-
// outside click was on a focusable node or not
|
|
289
|
-
returnFocus: s.returnFocusOnDeactivate
|
|
290
|
-
});
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
B(s.allowOutsideClick, t) || t.preventDefault();
|
|
294
|
-
}
|
|
295
|
-
}, q = function(t) {
|
|
296
|
-
var e = C(t), r = F(e, t) >= 0;
|
|
297
|
-
if (r || e instanceof Document)
|
|
298
|
-
r && (n.mostRecentlyFocusedNode = e);
|
|
299
|
-
else {
|
|
300
|
-
t.stopImmediatePropagation();
|
|
301
|
-
var c, l = !0;
|
|
302
|
-
if (n.mostRecentlyFocusedNode)
|
|
303
|
-
if (K(n.mostRecentlyFocusedNode) > 0) {
|
|
304
|
-
var d = F(n.mostRecentlyFocusedNode), v = n.containerGroups[d].tabbableNodes;
|
|
305
|
-
if (v.length > 0) {
|
|
306
|
-
var p = v.findIndex(function(b) {
|
|
307
|
-
return b === n.mostRecentlyFocusedNode;
|
|
308
|
-
});
|
|
309
|
-
p >= 0 && (s.isKeyForward(n.recentNavEvent) ? p + 1 < v.length && (c = v[p + 1], l = !1) : p - 1 >= 0 && (c = v[p - 1], l = !1));
|
|
310
|
-
}
|
|
311
|
-
} else
|
|
312
|
-
n.containerGroups.some(function(b) {
|
|
313
|
-
return b.tabbableNodes.some(function(N) {
|
|
314
|
-
return K(N) > 0;
|
|
315
|
-
});
|
|
316
|
-
}) || (l = !1);
|
|
317
|
-
else
|
|
318
|
-
l = !1;
|
|
319
|
-
l && (c = U({
|
|
320
|
-
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
321
|
-
// outside the trap causing the focus escape we're trying to fix)
|
|
322
|
-
target: n.mostRecentlyFocusedNode,
|
|
323
|
-
isBackward: s.isKeyBackward(n.recentNavEvent)
|
|
324
|
-
})), w(c || n.mostRecentlyFocusedNode || P());
|
|
325
|
-
}
|
|
326
|
-
n.recentNavEvent = void 0;
|
|
327
|
-
}, _ = function(t) {
|
|
328
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
329
|
-
n.recentNavEvent = t;
|
|
330
|
-
var r = U({
|
|
331
|
-
event: t,
|
|
332
|
-
isBackward: e
|
|
333
|
-
});
|
|
334
|
-
r && (L(t) && t.preventDefault(), w(r));
|
|
335
|
-
}, H = function(t) {
|
|
336
|
-
if (ue(t) && B(s.escapeDeactivates, t) !== !1) {
|
|
337
|
-
t.preventDefault(), g.deactivate();
|
|
338
|
-
return;
|
|
339
|
-
}
|
|
340
|
-
(s.isKeyForward(t) || s.isKeyBackward(t)) && _(t, s.isKeyBackward(t));
|
|
341
|
-
}, M = function(t) {
|
|
342
|
-
var e = C(t);
|
|
343
|
-
F(e, t) >= 0 || B(s.clickOutsideDeactivates, t) || B(s.allowOutsideClick, t) || (t.preventDefault(), t.stopImmediatePropagation());
|
|
344
|
-
}, Y = function() {
|
|
345
|
-
if (n.active)
|
|
346
|
-
return Q.activateTrap(m, g), n.delayInitialFocusTimer = s.delayInitialFocus ? W(function() {
|
|
347
|
-
w(P());
|
|
348
|
-
}) : w(P()), i.addEventListener("focusin", q, !0), i.addEventListener("mousedown", A, {
|
|
349
|
-
capture: !0,
|
|
350
|
-
passive: !1
|
|
351
|
-
}), i.addEventListener("touchstart", A, {
|
|
352
|
-
capture: !0,
|
|
353
|
-
passive: !1
|
|
354
|
-
}), i.addEventListener("click", M, {
|
|
355
|
-
capture: !0,
|
|
356
|
-
passive: !1
|
|
357
|
-
}), i.addEventListener("keydown", H, {
|
|
358
|
-
capture: !0,
|
|
359
|
-
passive: !1
|
|
360
|
-
}), g;
|
|
361
|
-
}, V = function() {
|
|
362
|
-
if (n.active)
|
|
363
|
-
return i.removeEventListener("focusin", q, !0), i.removeEventListener("mousedown", A, !0), i.removeEventListener("touchstart", A, !0), i.removeEventListener("click", M, !0), i.removeEventListener("keydown", H, !0), g;
|
|
364
|
-
}, ee = function(t) {
|
|
365
|
-
var e = t.some(function(r) {
|
|
366
|
-
var c = Array.from(r.removedNodes);
|
|
367
|
-
return c.some(function(l) {
|
|
368
|
-
return l === n.mostRecentlyFocusedNode;
|
|
369
|
-
});
|
|
370
|
-
});
|
|
371
|
-
e && w(P());
|
|
372
|
-
}, j = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(ee) : void 0, k = function() {
|
|
373
|
-
j && (j.disconnect(), n.active && !n.paused && n.containers.map(function(t) {
|
|
374
|
-
j.observe(t, {
|
|
375
|
-
subtree: !0,
|
|
376
|
-
childList: !0
|
|
377
|
-
});
|
|
378
|
-
}));
|
|
379
|
-
};
|
|
380
|
-
return g = {
|
|
381
|
-
get active() {
|
|
382
|
-
return n.active;
|
|
383
|
-
},
|
|
384
|
-
get paused() {
|
|
385
|
-
return n.paused;
|
|
386
|
-
},
|
|
387
|
-
activate: function(t) {
|
|
388
|
-
if (n.active)
|
|
389
|
-
return this;
|
|
390
|
-
var e = h(t, "onActivate"), r = h(t, "onPostActivate"), c = h(t, "checkCanFocusTrap");
|
|
391
|
-
c || D(), n.active = !0, n.paused = !1, n.nodeFocusedBeforeActivation = i.activeElement, e == null || e();
|
|
392
|
-
var l = function() {
|
|
393
|
-
c && D(), Y(), k(), r == null || r();
|
|
394
|
-
};
|
|
395
|
-
return c ? (c(n.containers.concat()).then(l, l), this) : (l(), this);
|
|
396
|
-
},
|
|
397
|
-
deactivate: function(t) {
|
|
398
|
-
if (!n.active)
|
|
399
|
-
return this;
|
|
400
|
-
var e = J({
|
|
401
|
-
onDeactivate: s.onDeactivate,
|
|
402
|
-
onPostDeactivate: s.onPostDeactivate,
|
|
403
|
-
checkCanReturnFocus: s.checkCanReturnFocus
|
|
404
|
-
}, t);
|
|
405
|
-
clearTimeout(n.delayInitialFocusTimer), n.delayInitialFocusTimer = void 0, V(), n.active = !1, n.paused = !1, k(), Q.deactivateTrap(m, g);
|
|
406
|
-
var r = h(e, "onDeactivate"), c = h(e, "onPostDeactivate"), l = h(e, "checkCanReturnFocus"), d = h(e, "returnFocus", "returnFocusOnDeactivate");
|
|
407
|
-
r == null || r();
|
|
408
|
-
var v = function() {
|
|
409
|
-
W(function() {
|
|
410
|
-
d && w(S(n.nodeFocusedBeforeActivation)), c == null || c();
|
|
411
|
-
});
|
|
412
|
-
};
|
|
413
|
-
return d && l ? (l(S(n.nodeFocusedBeforeActivation)).then(v, v), this) : (v(), this);
|
|
414
|
-
},
|
|
415
|
-
pause: function(t) {
|
|
416
|
-
if (n.paused || !n.active)
|
|
417
|
-
return this;
|
|
418
|
-
var e = h(t, "onPause"), r = h(t, "onPostPause");
|
|
419
|
-
return n.paused = !0, e == null || e(), V(), k(), r == null || r(), this;
|
|
420
|
-
},
|
|
421
|
-
unpause: function(t) {
|
|
422
|
-
if (!n.paused || !n.active)
|
|
423
|
-
return this;
|
|
424
|
-
var e = h(t, "onUnpause"), r = h(t, "onPostUnpause");
|
|
425
|
-
return n.paused = !1, e == null || e(), D(), Y(), k(), r == null || r(), this;
|
|
426
|
-
},
|
|
427
|
-
updateContainerElements: function(t) {
|
|
428
|
-
var e = [].concat(t).filter(Boolean);
|
|
429
|
-
return n.containers = e.map(function(r) {
|
|
430
|
-
return typeof r == "string" ? i.querySelector(r) : r;
|
|
431
|
-
}), n.active && D(), k(), this;
|
|
432
|
-
}
|
|
433
|
-
}, g.updateContainerElements(a), g;
|
|
434
|
-
};
|
|
435
5
|
export {
|
|
436
|
-
|
|
6
|
+
o as commonjsGlobal,
|
|
7
|
+
l as getDefaultExportFromCjs
|
|
437
8
|
};
|
|
438
9
|
//# sourceMappingURL=index234.js.map
|