@nethesis/phone-island
Version:
NethVoice CTI Phone Island
12 lines (11 loc) • 1.95 kB
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/with-selector.development.js"),r=require("react");require("../../shim/index.js");var t=require("../../../../_virtual/index4.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u,_=n(r);
/**
* @license React
* use-sync-external-store-shim/with-selector.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/exports.__require=function(){return u||(u=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=_.default,n=t.shim.exports;var u="function"==typeof Object.is?Object.is:function(e,r){return e===r&&(0!==e||1/e==1/r)||e!=e&&r!=r},o=n.useSyncExternalStore,i=r.useRef,a=r.useEffect,l=r.useMemo,O=r.useDebugValue;e.__exports.useSyncExternalStoreWithSelector=function(e,r,t,n,_){var f,s=i(null);null===s.current?(f={hasValue:!1,value:null},s.current=f):f=s.current;var c=l((function(){var e,o,i=!1,a=function(r){if(!i){i=!0,e=r;var t=n(r);if(void 0!==_&&f.hasValue){var a=f.value;if(_(a,t))return o=a,a}return o=t,t}var l=o;if(u(e,r))return l;var O=n(r);return void 0!==_&&_(l,O)?l:(e=r,o=O,O)},l=void 0===t?null:t;return[function(){return a(r())},null===l?void 0:function(){return a(l())}]}),[r,t,n,_]),v=c[0],d=c[1],E=o(e,v,d);return a((function(){f.hasValue=!0,f.value=E}),[E]),O(E),E},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),e.__exports};
//# sourceMappingURL=with-selector.development.js.map