1import{ClayIconSpriteContext as d}from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$icon.js";import P from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$icon.js";import{Children as w,Component as L,Fragment as y,Profiler as D,PureComponent as T,StrictMode as N,Suspense as U,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED as z,cloneElement as A,createContext as O,createElement as V,createFactory as F,createRef as K,forwardRef as B,isValidElement as Q,lazy as X,memo as Z,startTransition as H,unstable_act as W,useCallback as Y,useContext as l,useDebugValue as j,useDeferredValue as q,useEffect as m,useId as G,useImperativeHandle as J,useInsertionEffect as $,useLayoutEffect as k,useMemo as f,useReducer as ee,useRef as te,useState as p,useSyncExternalStore as re,useTransition as se,version as oe}from"../../../frontend-js-react-web/__liferay__/exports/react.js";import x from"../../../frontend-js-react-web/__liferay__/exports/react.js";var a=x;var u=class{constructor(e=20){if(e<=0)throw new TypeError("LRUCache: max must be a non-negative number");this._maxSize=e,this._storage=new Map}reset(){return this._storage=new Map,this._storage}has(e){return this._storage.has(e)}get(e){if(this._storage.has(e)){let t=this._storage.get(e);return this._storage.delete(e),this._storage.set(e,t),t}}set(e,t){if(this._storage.size>=this._maxSize){let s=this._storage.keys(),r=this._maxSize-(this._storage.size-1);for(;r;){let{value:i}=s.next();this._storage.delete(i),r--}}this._storage.set(e,t)}};var n=class{constructor({storageMaxSize:e}={}){this.cache=new u(e),this.currentPromises={},this.cursors={}}read(e){return e?this.cache.get(e):null}update(e,t){if(!e)return null;t instanceof Promise||t instanceof Error?this.currentPromises[e]=t:this.cache.set(e,t)}isFetching(e){if(e)return this.currentPromises[e]}getCursor(e){return e?this.cursors[e]:null}setCursor(e,t){if(!e)return null;this.cursors[e]=t}};function _(o){let[e,t]=p(!1);return m(()=>{switch(o){case"always":t(!0);break;case"never":break;default:{if(window.matchMedia){let s=window.matchMedia("(prefers-reduced-motion)"),r=i=>t(i.matches);return s.addEventListener("change",r),()=>{s.removeEventListener("change",r)}}else t(!1);break}}},[]),e}var c=a.createContext({});c.displayName="ClayProviderContext";function C({children:o,reducedMotion:e="user",spritemap:t,storageMaxSize:s=20,theme:r,...i}){let h=f(()=>new n({storageMaxSize:s}),[s]),g=_(e);return a.createElement(c.Provider,{value:{client:h,prefersReducedMotion:g,theme:r,...i}},a.createElement(d.Provider,{value:t},r?a.createElement("div",{className:r},o):o))}function v(){return l(c)}export{C as Provider,n as __UNSTABLE_DataClient,v as useProvider}; 2//# sourceMappingURL=@clayui$provider.(7G2OOTJ2).js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.