芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/public_html/wp-content/plugins/woocommerce/assets/client/admin/chunks/3222.js
/*! For license information please see 3222.js.LICENSE.txt */ (globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[3222],{2929:(e,t,n)=>{"use strict";n.d(t,{e:()=>p});const r={setOnLoadError:e=>{},setOnLoaderStart:e=>{}},i={"account-onboarding":{setFullTermsOfServiceUrl:e=>{},setRecipientTermsOfServiceUrl:e=>{},setPrivacyPolicyUrl:e=>{},setSkipTermsOfServiceCollection:e=>{},setCollectionOptions:e=>{},setOnExit:e=>{},setOnStepChange:e=>{}},"account-management":{setCollectionOptions:e=>{}},"notification-banner":{setCollectionOptions:e=>{},setOnNotificationsChange:e=>{}},"issuing-card":{setDefaultCard:e=>{},setCardSwitching:e=>{},setFetchEphemeralKey:e=>{},setShowSpendControls:e=>{}},"issuing-cards-list":{setFetchEphemeralKey:e=>{},setShowSpendControls:e=>{},setIssuingProgram:e=>{}},"financial-account":{setFinancialAccount:e=>{}},"financial-account-transactions":{setFinancialAccount:e=>{}},payments:{setDefaultFilters:e=>{}},"payment-details":{setPayment:e=>{},setOnClose:e=>{}},"tax-settings":{setHideProductTaxCodeSelector:e=>{},setDisplayHeadOfficeCountries:e=>{},setOnTaxSettingsUpdated:e=>{}},"tax-registrations":{setOnAfterTaxRegistrationAdded:e=>{},setDisplayCountries:e=>{}}},o={"account-onboarding":"stripe-connect-account-onboarding",payments:"stripe-connect-payments","payment-details":"stripe-connect-payment-details",payouts:"stripe-connect-payouts","payouts-list":"stripe-connect-payouts-list",balances:"stripe-connect-balances","account-management":"stripe-connect-account-management","notification-banner":"stripe-connect-notification-banner","issuing-card":"stripe-connect-issuing-card","issuing-cards-list":"stripe-connect-issuing-cards-list","financial-account":"stripe-connect-financial-account","financial-account-transactions":"stripe-connect-financial-account-transactions",documents:"stripe-connect-documents","tax-registrations":"stripe-connect-tax-registrations","tax-settings":"stripe-connect-tax-settings"},s="loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used",c="https://connect-js.stripe.com/v1.0/connect.js";let u=null;const a=(e,t)=>{var n;const s=(()=>{try{return t.fetchClientSecret()}catch(e){return Promise.reject(e)}})(),c=null!==(n=t.metaOptions)&&void 0!==n?n:{},u=e.then((e=>e.initialize(Object.assign(Object.assign({},t),{metaOptions:Object.assign(Object.assign({},c),{eagerClientSecretPromise:s})}))));return{create:e=>{let t=o[e];t||(t=e);const n=document.createElement(t),s=(e=>e in i)(e)?i[e]:{},c=Object.assign(Object.assign({},s),r);for(const e in c)n[e]=function(t){u.then((()=>{this[`${e}InternalOnly`](t)}))};return u.then((t=>{if(!n.isConnected&&!n.setConnector){const e=n.style.display;n.style.display="none",document.body.appendChild(n),document.body.removeChild(n),n.style.display=e}if(!n||!n.setConnector)throw new Error(`Element ${e} was not transformed into a custom element. Are you using a documented component? See https://docs.stripe.com/connect/supported-embedded-components for a list of supported components`);n.setConnector(t.connect)})),n},update:e=>{u.then((t=>{t.update(e)}))},debugInstance:()=>u,logout:()=>u.then((e=>e.logout()))}},l=e=>(window.StripeConnect=window.StripeConnect||{},window.StripeConnect.optimizedLoading=!0,{initialize:t=>{var n;const r=null!==(n=t.metaOptions)&&void 0!==n?n:{};return e.init(Object.assign(Object.assign({},t),{metaOptions:Object.assign(Object.assign({},r),{sdk:!0,sdkOptions:{sdkVersion:"3.3.21"}})}))}}),d=Promise.resolve().then((()=>(null!==u||(u=new Promise(((e,t)=>{if("undefined"!=typeof window)if(window.StripeConnect&&console.warn(s),window.StripeConnect){const t=l(window.StripeConnect);e(t)}else try{let n=document.querySelectorAll(`script[src="${c}"]`)[0]||document.querySelectorAll('script[src="https://connect-js.stripe.com/v0.1/connect.js"]')[0]||null;n?console.warn(s):n||(n=(()=>{const e=document.createElement("script");if(e.src=c,!document.head)throw new Error("Expected document.head not to be null. Connect.js requires a element.");return document.head.appendChild(e),e})()),n.addEventListener("load",(()=>{if(window.StripeConnect){const t=l(window.StripeConnect);e(t)}else t(new Error("Connect.js did not load the necessary objects"))})),n.addEventListener("error",(()=>{t(new Error("Failed to load Connect.js"))}))}catch(e){t(e)}else t("ConnectJS won't load when rendering code in the server - it can only be loaded on a browser. This error is expected when loading ConnectJS in SSR environments, like NextJS. It will have no impact in the UI, however if you wish to avoid it, you can switch to the `pure` version of the connect.js loader: https://github.com/stripe/connect-js#importing-loadconnect-without-side-effects.")}))),u)));let f=!1;d.catch((e=>{f||console.warn(e)}));const p=e=>(f=!0,a(d,e))},86948:(e,t,n)=>{"use strict";n.d(t,{MT:()=>u,hw:()=>d});var r=n(51609),i=n.n(r);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n
provider.");return e}().connectInstance,l=r.useRef(null),d=r.createElement("div",{style:{width:"100%"},ref:l});return r.useLayoutEffect((function(){if(null!==l.current&&null===c){var t=a.create(e);if(u(t),null!==t){try{t.setAttribute("reactSdkAnalytics","3.3.21")}catch(e){console.log("Error setting React Sdk version with error message: ",e)}for(;l.current.firstChild;)l.current.removeChild(l.current.firstChild);l.current.appendChild(t)}}}),[a,e]),{wrapper:d,component:c}},l=function(e,t,n){i().useEffect((function(){if(e)try{n(e,t)}catch(e){return void console.error("Error when calling setter! ",e)}}),[e,t,n])},d=function(e){var t=e.onExit,n=e.recipientTermsOfServiceUrl,r=e.fullTermsOfServiceUrl,i=e.privacyPolicyUrl,o=e.skipTermsOfServiceCollection,s=e.collectionOptions,c=e.onLoadError,u=e.onLoaderStart,d=e.onStepChange,f=a("account-onboarding"),p=f.wrapper,h=f.component;return l(h,n,(function(e,t){return e.setRecipientTermsOfServiceUrl(t)})),l(h,r,(function(e,t){return e.setFullTermsOfServiceUrl(t)})),l(h,i,(function(e,t){return e.setPrivacyPolicyUrl(t)})),l(h,o,(function(e,t){return e.setSkipTermsOfServiceCollection(t)})),l(h,s,(function(e,t){return e.setCollectionOptions(t)})),l(h,t,(function(e,t){return e.setOnExit(t)})),l(h,u,(function(e,t){e.setOnLoaderStart(t)})),l(h,c,(function(e,t){e.setOnLoadError(t)})),l(h,d,(function(e,t){return e.setOnStepChange(t)})),p};!function(e){e.exit="exit",e.close="close",e.instantPayoutCreated="instantpayoutcreated"}(c||(c={}))},90700:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5573),i=n(39793);const o=(0,i.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})},56537:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5573),i=n(39793);const o=(0,i.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})})},73290:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5573),i=n(39793);const o=(0,i.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(r.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})})},21913:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{WM:()=>Oe});var i=n(98937),o=n(60331),s=n.n(o),c=n(51609),u=n.n(c);n(66911);const a=e=>"object"==typeof e&&null!=e&&1===e.nodeType,l=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,d=(e,t)=>{if(e.clientHeight
{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight
o
t||o>e&&s
=t&&c>=n?o-e-r:s>t&&c
n?s-t+i:0,p=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var h=n(95029),g=0;function m(){}function v(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function y(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=new Array(i),s=0;s
1?n-1:0),i=1;i
s)&&(e=t>0?-1:s+1);var c=e+t;c<0?c=i?s:0:c>s&&(c=i?0:s);var u=O(c,t<0,n,r,i);return-1===u?e>=o?-1:e:u}function O(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(t){for(var s=e;s>=0;s--)if(!r(n[s],s))return s}else for(var c=e;c
{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:s,block:c,inline:u,boundary:l,skipOverflowHiddenElements:h}=t,g="function"==typeof l?l:e=>e!==l;if(!a(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,v=[];let y=e;for(;a(y)&&g(y);){if(y=p(y),y===m){v.push(y);break}null!=y&&y===document.body&&d(y)&&!d(document.documentElement)||null!=y&&d(y,h)&&v.push(y)}const b=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,I=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:w,scrollY:x}=window,{height:O,width:C,top:S,right:E,bottom:k,left:T}=e.getBoundingClientRect(),{top:D,right:M,bottom:A,left:j}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let P="start"===c||"nearest"===c?S-D:"end"===c?k+A:S+O/2-D+A,R="center"===u?T+C/2-j+M:"end"===u?E+M:T-j;const B=[];for(let e=0;e
=0&&T>=0&&k<=I&&E<=b&&S>=i&&k<=a&&T>=l&&E<=o)return B;const d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),h=parseInt(d.borderTopWidth,10),g=parseInt(d.borderRightWidth,10),y=parseInt(d.borderBottomWidth,10);let D=0,M=0;const A="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-g:0,j="offsetHeight"in t?t.offsetHeight-t.clientHeight-h-y:0,L="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,V="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(m===t)D="start"===c?P:"end"===c?P-I:"nearest"===c?f(x,x+I,I,h,y,x+P,x+P+O,O):P-I/2,M="start"===u?R:"center"===u?R-b/2:"end"===u?R-b:f(w,w+b,b,p,g,w+R,w+R+C,C),D=Math.max(0,D+x),M=Math.max(0,M+w);else{D="start"===c?P-i-h:"end"===c?P-a+y+j:"nearest"===c?f(i,a,n,h,y+j,P,P+O,O):P-(i+n/2)+j/2,M="start"===u?R-l-p:"center"===u?R-(l+r/2)+A/2:"end"===u?R-o+g+A:f(l,o,r,p,g+A,R,R+C,C);const{scrollLeft:e,scrollTop:s}=t;D=0===V?0:Math.max(0,Math.min(s+D/V,t.scrollHeight-n/V+j)),M=0===L?0:Math.max(0,Math.min(e+M/L,t.scrollWidth-r/L+A)),P+=s-D,R+=e-M}B.push({el:t,top:D,left:M})}return B})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}},environment:"undefined"==typeof window?void 0:window};function B(e,t,n){void 0===n&&(n=k);var r=e["default"+A(t)];return void 0!==r?r:n[t]}function L(e,t,n){void 0===n&&(n=k);var r=e[t];if(void 0!==r)return r;var i=e["initial"+A(t)];return void 0!==i?i:B(e,t,n)}function V(e){var t=L(e,"selectedItem"),n=L(e,"isOpen"),r=function(e){var t=L(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=L(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex((function(n){return e.itemToKey(n)===e.itemToKey(t)})):r,isOpen:n,selectedItem:t,inputValue:i}}function K(e,t,n){var r=e.items,i=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,s=e.isItemDisabled,c=e.itemToKey,u=t.selectedItem,a=t.highlightedIndex;return 0===r.length?-1:void 0===i||a!==i||s(r[i],i)?void 0===o||s(r[o],o)?u?r.findIndex((function(e){return c(u)===c(e)})):n<0&&!s(r[r.length-1],r.length-1)?r.length-1:n>0&&!s(r[0],0)?0:-1:o:i}var F=function(){return m};function H(e,t,n,r){void 0===r&&(r={});var i,o=r.document,s=(i=u().useRef(!0),u().useEffect((function(){return i.current=!1,function(){i.current=!0}}),[]),i.current);(0,c.useEffect)((function(){if(e&&!s&&o){var n=e(t);T(n,o)}}),n),(0,c.useEffect)((function(){return function(){var e,t;T.cancel(),(t=null==(e=o)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[o])}var _=m;function W(e,t,n){var r;void 0===n&&(n=!0);var o=(null==(r=e.items)?void 0:r.length)&&t>=0;return(0,i.A)({isOpen:!1,highlightedIndex:-1},o&&(0,i.A)({selectedItem:e.items[t],isOpen:B(e,"isOpen"),highlightedIndex:B(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function U(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function z(e){var t=B(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var q={environment:s().shape({addEventListener:s().func.isRequired,removeEventListener:s().func.isRequired,document:s().shape({createElement:s().func.isRequired,getElementById:s().func.isRequired,activeElement:s().any.isRequired,body:s().any.isRequired}).isRequired,Node:s().func.isRequired}),itemToString:s().func,itemToKey:s().func,stateReducer:s().func},N=(0,i.A)({},q,{getA11yStatusMessage:s().func,highlightedIndex:s().number,defaultHighlightedIndex:s().number,initialHighlightedIndex:s().number,isOpen:s().bool,defaultIsOpen:s().bool,initialIsOpen:s().bool,selectedItem:s().any,initialSelectedItem:s().any,defaultSelectedItem:s().any,id:s().string,labelId:s().string,menuId:s().string,getItemId:s().func,toggleButtonId:s().string,onSelectedItemChange:s().func,onHighlightedIndexChange:s().func,onStateChange:s().func,onIsOpenChange:s().func,scrollIntoView:s().func});(0,h.Cl)((0,h.Cl)({},N),{items:s().array.isRequired,isItemDisabled:s().func});var J=(0,h.Cl)((0,h.Cl)({},R),{isItemDisabled:function(){return!1}}),$=m,Y=0,G=1,X=2,Q=3,Z=4,ee=5,te=6,ne=7,re=8,ie=9,oe=10,se=11,ce=12,ue=13,ae=14,le=15,de=16,fe=17,pe=18,he=19,ge=20,me=21,ve=Object.freeze({__proto__:null,FunctionCloseMenu:fe,FunctionOpenMenu:de,FunctionReset:me,FunctionSelectItem:he,FunctionSetHighlightedIndex:pe,FunctionSetInputValue:ge,FunctionToggleMenu:le,ItemClick:ae,ItemMouseMove:ue,MenuMouseLeave:ce,ToggleButtonBlur:se,ToggleButtonClick:Y,ToggleButtonKeyDownArrowDown:G,ToggleButtonKeyDownArrowUp:X,ToggleButtonKeyDownCharacter:Q,ToggleButtonKeyDownEnd:te,ToggleButtonKeyDownEnter:ne,ToggleButtonKeyDownEscape:Z,ToggleButtonKeyDownHome:ee,ToggleButtonKeyDownPageDown:oe,ToggleButtonKeyDownPageUp:ie,ToggleButtonKeyDownSpaceButton:re});function ye(e,t){var n,r,o=t.type,s=t.props,c=t.altKey;switch(o){case ae:r={isOpen:B(s,"isOpen"),highlightedIndex:z(s),selectedItem:s.items[t.index]};break;case Q:var u=t.key,a=""+e.inputValue+u;r={inputValue:a,highlightedIndex:function(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,o=e.isItemDisabled,s=t.toLowerCase(),c=0;c
=0&&(null==(n=s.items)?void 0:n.length)&&{selectedItem:s.items[e.highlightedIndex]});break;case he:r={selectedItem:t.selectedItem};break;default:return function(e,t,n){var r,o=t.type,s=t.props;switch(o){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:K(s,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:K(s,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:s.isItemDisabled(s.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:z(s),isOpen:B(s,"isOpen"),selectedItem:B(s,"selectedItem"),inputValue:B(s,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return(0,i.A)({},e,r)}(e,t,ve)}return(0,i.A)({},e,r)}var be=["onClick"],Ie=["onMouseLeave","refKey","ref"],we=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],xe=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function Oe(e){void 0===e&&(e={}),$(e,Oe);var t=(0,i.A)({},J,e),n=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=function(e,t,n,r){var i=P(e,t,n,r),o=i[0],s=i[1];return[w(o,t),s]}(ye,t,V,U),a=u[0],l=u[1],d=a.isOpen,f=a.highlightedIndex,p=a.selectedItem,h=a.inputValue,g=(0,c.useRef)(null),v=(0,c.useRef)(null),x=(0,c.useRef)({}),O=(0,c.useRef)(null),S=M(t),E=j({state:a,props:t}),k=(0,c.useCallback)((function(e){return x.current[S.getItemId(e)]}),[S]);H(s,a,[d,f,p,h],o);var T=function(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,o=e.menuElement,s=e.scrollIntoView,u=(0,c.useRef)(!0);return D((function(){t<0||!n||!Object.keys(r.current).length||(!1===u.current?u.current=!0:s(i(t),o))}),[t]),u}({menuElement:v.current,highlightedIndex:f,isOpen:d,itemRefs:x,scrollIntoView:n,getItemNodeFromIndex:k});(0,c.useEffect)((function(){return O.current=y((function(e){e({type:ge,inputValue:""})}),500),function(){O.current.cancel()}}),[]),(0,c.useEffect)((function(){h&&O.current(l)}),[l,h]),_({props:t,state:a}),(0,c.useEffect)((function(){L(t,"isOpen")&&g.current&&g.current.focus()}),[]);var A=function(e,t,n){var r=(0,c.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,c.useEffect)((function(){if(!e)return m;var i=n.map((function(e){return e.current}));function o(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function s(n){r.current.isMouseDown=!1,C(n.target,i,e)||t()}function c(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function u(){r.current.isTouchMove=!0}function a(n){r.current.isTouchEnd=!0,r.current.isTouchMove||C(n.target,i,e,!1)||t()}return e.addEventListener("mousedown",o),e.addEventListener("mouseup",s),e.addEventListener("touchstart",c),e.addEventListener("touchmove",u),e.addEventListener("touchend",a),function(){e.removeEventListener("mousedown",o),e.removeEventListener("mouseup",s),e.removeEventListener("touchstart",c),e.removeEventListener("touchmove",u),e.removeEventListener("touchend",a)}}),[n,e,t]),r.current}(o,(0,c.useCallback)((function(){E.current.state.isOpen&&l({type:se})}),[l,E]),(0,c.useMemo)((function(){return[v,g]}),[v.current,g.current])),R=F("getMenuProps","getToggleButtonProps");(0,c.useEffect)((function(){d||(x.current={})}),[d]);var B=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),l({type:G,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:X,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:ee})},End:function(e){e.preventDefault(),l({type:te})},Escape:function(){E.current.state.isOpen&&l({type:Z})},Enter:function(e){e.preventDefault(),l({type:E.current.state.isOpen?ne:Y})},PageUp:function(e){E.current.state.isOpen&&(e.preventDefault(),l({type:ie}))},PageDown:function(e){E.current.state.isOpen&&(e.preventDefault(),l({type:oe}))}," ":function(e){e.preventDefault();var t=E.current.state;t.isOpen?t.inputValue?l({type:Q,key:" "}):l({type:re}):l({type:Y})}}}),[l,E]),K=(0,c.useCallback)((function(){l({type:le})}),[l]),W=(0,c.useCallback)((function(){l({type:fe})}),[l]),z=(0,c.useCallback)((function(){l({type:de})}),[l]),q=(0,c.useCallback)((function(e){l({type:pe,highlightedIndex:e})}),[l]),N=(0,c.useCallback)((function(e){l({type:he,selectedItem:e})}),[l]),ve=(0,c.useCallback)((function(){l({type:me})}),[l]),Ce=(0,c.useCallback)((function(e){l({type:ge,inputValue:e})}),[l]),Se=(0,c.useCallback)((function(e){var t=void 0===e?{}:e,n=t.onClick,o=r(t,be);return(0,i.A)({id:S.labelId,htmlFor:S.toggleButtonId,onClick:b(n,(function(){var e;null==(e=g.current)||e.focus()}))},o)}),[S]),Ee=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,s=o.onMouseLeave,c=o.refKey,u=void 0===c?"ref":c,a=o.ref,d=r(o,Ie),f=(void 0===t?{}:t).suppressRefError;return R("getMenuProps",void 0!==f&&f,u,v),(0,i.A)(((n={})[u]=I(a,(function(e){v.current=e})),n.id=S.menuId,n.role="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+S.labelId,n.onMouseLeave=b(s,(function(){l({type:ce})})),n),d)}),[l,R,S]),ke=(0,c.useCallback)((function(e,t){var n,o=void 0===e?{}:e,s=o.onBlur,c=o.onClick;o.onPress;var u=o.onKeyDown,a=o.refKey,d=void 0===a?"ref":a,f=o.ref,p=r(o,we),h=(void 0===t?{}:t).suppressRefError,m=void 0!==h&&h,v=E.current.state,y=(0,i.A)(((n={})[d]=I(f,(function(e){g.current=e})),n["aria-activedescendant"]=v.isOpen&&v.highlightedIndex>-1?S.getItemId(v.highlightedIndex):"",n["aria-controls"]=S.menuId,n["aria-expanded"]=E.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=p&&p["aria-label"]?void 0:""+S.labelId,n.id=S.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=b(s,(function(){v.isOpen&&!A.isMouseDown&&l({type:se})})),n),p);return p.disabled||(y.onClick=b(c,(function(){l({type:Y})})),y.onKeyDown=b(u,(function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&B[t]?B[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&l({type:Q,key:t})}))),R("getToggleButtonProps",m,d,g),y}),[l,S,E,A,R,B]),Te=(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,o=n.item,s=n.index,c=n.onMouseMove,u=n.onClick,a=n.onMouseDown;n.onPress;var d=n.refKey,f=void 0===d?"ref":d,p=n.disabled,h=n.ref,g=r(n,xe);void 0!==p&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var m=E.current,v=m.state,y=m.props,w=function(e,t,n,r){var i,o;if(void 0===e){if(void 0===t)throw new Error(r);i=n[t],o=t}else o=void 0===t?n.indexOf(e):t,i=e;return[i,o]}(o,s,y.items,"Pass either item or index to getItemProps!"),O=w[0],C=w[1],k=y.isItemDisabled(O,C),D=(0,i.A)(((t={})[f]=I(h,(function(e){e&&(x.current[S.getItemId(C)]=e)})),t["aria-disabled"]=k,t["aria-selected"]=O===v.selectedItem,t.id=S.getItemId(C),t.role="option",t),g);return k||(D.onClick=b(u,(function(){l({type:ae,index:C})}))),D.onMouseMove=b(c,(function(){A.isTouchEnd||C===v.highlightedIndex||(T.current=!1,l({type:ue,index:C,disabled:k}))})),D.onMouseDown=b(a,(function(e){return e.preventDefault()})),D}),[E,S,A,T,l]);return{getToggleButtonProps:ke,getLabelProps:Se,getMenuProps:Ee,getItemProps:Te,toggleMenu:K,openMenu:z,closeMenu:W,setHighlightedIndex:q,selectItem:N,reset:ve,setInputValue:Ce,highlightedIndex:f,isOpen:d,selectedItem:p,inputValue:h}}Oe.stateChangeTypes=ve,(0,i.A)({},N,{items:s().array.isRequired,isItemDisabled:s().func,inputValue:s().string,defaultInputValue:s().string,initialInputValue:s().string,inputId:s().string,onInputValueChange:s().func}),(0,i.A)({},R,{isItemDisabled:function(){return!1}}),s().array,s().array,s().array,s().func,s().number,s().number,s().number,s().func,s().func,s().string,s().string},92991:(e,t,n)=>{"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,c=(e.icon,e.className),u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r
{"use strict";var r=n(42528);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},60331:(e,t,n)=>{e.exports=n(40055)()},42528:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5387:(e,t)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},66911:(e,t,n)=>{"use strict";n(5387)}}]);