@buoy-gg/shared-ui 7.0.45 → 7.0.47
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/lib/commonjs/index.js +1 -1
- package/lib/commonjs/license/licenseModule.js +1 -1
- package/lib/commonjs/stores/ignoredPatternsStore.shared.js +1 -1
- package/lib/commonjs/sync/settingsSync.js +1 -0
- package/lib/commonjs/utils/persistentStorage.js +1 -1
- package/lib/commonjs/utils/persistentStorage.web.js +1 -1
- package/lib/commonjs/utils/storageWrites.js +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/license/licenseModule.js +1 -1
- package/lib/module/stores/ignoredPatternsStore.shared.js +1 -1
- package/lib/module/sync/settingsSync.js +1 -0
- package/lib/module/utils/persistentStorage.js +1 -1
- package/lib/module/utils/persistentStorage.web.js +1 -1
- package/lib/module/utils/storageWrites.js +1 -0
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/license/licenseModule.d.ts +5 -0
- package/lib/typescript/commonjs/stores/ignoredPatternsStore.shared.d.ts +18 -1
- package/lib/typescript/commonjs/sync/settingsSync.d.ts +78 -0
- package/lib/typescript/commonjs/utils/storageWrites.d.ts +10 -0
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/license/licenseModule.d.ts +5 -0
- package/lib/typescript/module/stores/ignoredPatternsStore.shared.d.ts +18 -1
- package/lib/typescript/module/sync/settingsSync.d.ts +78 -0
- package/lib/typescript/module/utils/storageWrites.d.ts +10 -0
- package/lib/web/chunks/{chunk-DEJNSL6V.mjs → chunk-DEEKIG2L.mjs} +1 -1
- package/lib/web/chunks/{chunk-XD2BEYMM.mjs → chunk-T7RZZG4A.mjs} +1 -1
- package/lib/web/chunks/{chunk-ASEPWYDC.mjs → chunk-U2BTZZID.mjs} +7 -7
- package/lib/web/chunks/{persistentStorage.web-6OAJAVRK.mjs → persistentStorage.web-56ENKXFJ.mjs} +1 -1
- package/lib/web/dataViewer.mjs +1 -1
- package/lib/web/hooks.mjs +1 -1
- package/lib/web/index.mjs +3 -3
- package/lib/web/ui.mjs +1 -1
- package/lib/web/utils.mjs +1 -1
- package/package.json +5 -5
- package/lib/web/chunks/chunk-26OV3QDY.mjs +0 -1
- package/lib/web/chunks/chunk-2MHKRRQW.mjs +0 -1
- package/lib/web/chunks/chunk-2Q3SDPH2.mjs +0 -13
- package/lib/web/chunks/chunk-34YQ42KI.mjs +0 -1
- package/lib/web/chunks/chunk-3NNNCQYP.mjs +0 -13
- package/lib/web/chunks/chunk-46CXXOQB.mjs +0 -1
- package/lib/web/chunks/chunk-475BSDCB.mjs +0 -1
- package/lib/web/chunks/chunk-552W4COI.mjs +0 -1
- package/lib/web/chunks/chunk-55EIUPOI.mjs +0 -14
- package/lib/web/chunks/chunk-56TTTMX4.mjs +0 -1
- package/lib/web/chunks/chunk-5KWAGM5V.mjs +0 -1
- package/lib/web/chunks/chunk-5LOQZINQ.mjs +0 -13
- package/lib/web/chunks/chunk-5NOIO6ZM.mjs +0 -15
- package/lib/web/chunks/chunk-6CCRCSA2.mjs +0 -1
- package/lib/web/chunks/chunk-6Q52HRBL.mjs +0 -1
- package/lib/web/chunks/chunk-6TEDFSNM.mjs +0 -1
- package/lib/web/chunks/chunk-7BLJTQ4U.mjs +0 -1
- package/lib/web/chunks/chunk-7BMRSMHN.mjs +0 -1
- package/lib/web/chunks/chunk-7PRKERDN.mjs +0 -1
- package/lib/web/chunks/chunk-A2SOFE47.mjs +0 -1
- package/lib/web/chunks/chunk-A7KJCK4R.mjs +0 -13
- package/lib/web/chunks/chunk-AEXGGXS7.mjs +0 -1
- package/lib/web/chunks/chunk-AGD7ZT6O.mjs +0 -14
- package/lib/web/chunks/chunk-AIEOQWNG.mjs +0 -1
- package/lib/web/chunks/chunk-ASTM35HG.mjs +0 -15
- package/lib/web/chunks/chunk-AZBMFPMX.mjs +0 -1
- package/lib/web/chunks/chunk-B2V2UDCU.mjs +0 -15
- package/lib/web/chunks/chunk-BFGKGTAC.mjs +0 -1
- package/lib/web/chunks/chunk-BHW6AFO6.mjs +0 -1
- package/lib/web/chunks/chunk-BWRW3NJ2.mjs +0 -15
- package/lib/web/chunks/chunk-CBM2IZAK.mjs +0 -1
- package/lib/web/chunks/chunk-CDLCFF44.mjs +0 -1
- package/lib/web/chunks/chunk-CI5CO7FQ.mjs +0 -1
- package/lib/web/chunks/chunk-CIB4U2YK.mjs +0 -1
- package/lib/web/chunks/chunk-CLLTZQGD.mjs +0 -1
- package/lib/web/chunks/chunk-D4RXBAOO.mjs +0 -15
- package/lib/web/chunks/chunk-D5HQLRFW.mjs +0 -1
- package/lib/web/chunks/chunk-DZDTNXXK.mjs +0 -1
- package/lib/web/chunks/chunk-EMEAL3L5.mjs +0 -1
- package/lib/web/chunks/chunk-ER3T3IDI.mjs +0 -1
- package/lib/web/chunks/chunk-F6SJ5CLB.mjs +0 -1
- package/lib/web/chunks/chunk-FDOZ6YSS.mjs +0 -1
- package/lib/web/chunks/chunk-FMEWNGQO.mjs +0 -1
- package/lib/web/chunks/chunk-G4DH7GMT.mjs +0 -1
- package/lib/web/chunks/chunk-GBUZCZE4.mjs +0 -1
- package/lib/web/chunks/chunk-GLMS5ZLJ.mjs +0 -1
- package/lib/web/chunks/chunk-GNGMIA7V.mjs +0 -1
- package/lib/web/chunks/chunk-GTYIS7H7.mjs +0 -14
- package/lib/web/chunks/chunk-GZE3FIOX.mjs +0 -1
- package/lib/web/chunks/chunk-HGA3GJA6.mjs +0 -1
- package/lib/web/chunks/chunk-HJ36IONA.mjs +0 -14
- package/lib/web/chunks/chunk-HXPTZMAZ.mjs +0 -1
- package/lib/web/chunks/chunk-I27M4JCS.mjs +0 -1
- package/lib/web/chunks/chunk-IVCT27JB.mjs +0 -1
- package/lib/web/chunks/chunk-JG4QSK5B.mjs +0 -1
- package/lib/web/chunks/chunk-JR7BJW6B.mjs +0 -1
- package/lib/web/chunks/chunk-K46ZJUXJ.mjs +0 -1
- package/lib/web/chunks/chunk-K4EGHHD6.mjs +0 -1
- package/lib/web/chunks/chunk-K4LXMO4D.mjs +0 -1
- package/lib/web/chunks/chunk-K7CGIEFU.mjs +0 -1
- package/lib/web/chunks/chunk-KBTYK5YE.mjs +0 -1
- package/lib/web/chunks/chunk-KHP6CSSM.mjs +0 -1
- package/lib/web/chunks/chunk-KRDRIW7T.mjs +0 -13
- package/lib/web/chunks/chunk-L2DTKDER.mjs +0 -1
- package/lib/web/chunks/chunk-L3AFTHWX.mjs +0 -14
- package/lib/web/chunks/chunk-LFDFDGHY.mjs +0 -1
- package/lib/web/chunks/chunk-MAIUUK4E.mjs +0 -1
- package/lib/web/chunks/chunk-MKJKS3IG.mjs +0 -1
- package/lib/web/chunks/chunk-MRQKVLXG.mjs +0 -1
- package/lib/web/chunks/chunk-NK3OISOL.mjs +0 -13
- package/lib/web/chunks/chunk-NLJDDIXW.mjs +0 -1
- package/lib/web/chunks/chunk-OENR3XFI.mjs +0 -1
- package/lib/web/chunks/chunk-OZB3VKZE.mjs +0 -1
- package/lib/web/chunks/chunk-P64PFJT3.mjs +0 -5
- package/lib/web/chunks/chunk-PACPGYH7.mjs +0 -1
- package/lib/web/chunks/chunk-PART6HOE.mjs +0 -13
- package/lib/web/chunks/chunk-PMRXUQRH.mjs +0 -1
- package/lib/web/chunks/chunk-PTK5FO6C.mjs +0 -1
- package/lib/web/chunks/chunk-PZ45TQ55.mjs +0 -13
- package/lib/web/chunks/chunk-Q5LN7GET.mjs +0 -5
- package/lib/web/chunks/chunk-QCD6T6L4.mjs +0 -1
- package/lib/web/chunks/chunk-QD5EUANU.mjs +0 -1
- package/lib/web/chunks/chunk-QJTECJCO.mjs +0 -1
- package/lib/web/chunks/chunk-QPIZURPZ.mjs +0 -1
- package/lib/web/chunks/chunk-QPY45R5F.mjs +0 -1
- package/lib/web/chunks/chunk-QQTJ463K.mjs +0 -1
- package/lib/web/chunks/chunk-R2SGZIG5.mjs +0 -1
- package/lib/web/chunks/chunk-RJO7RXQQ.mjs +0 -1
- package/lib/web/chunks/chunk-S3GYQYVJ.mjs +0 -15
- package/lib/web/chunks/chunk-SCCXVTDM.mjs +0 -1
- package/lib/web/chunks/chunk-SHJHD646.mjs +0 -1
- package/lib/web/chunks/chunk-TCRVZ55E.mjs +0 -1
- package/lib/web/chunks/chunk-TJ6ZVV2L.mjs +0 -14
- package/lib/web/chunks/chunk-TJUBBXXK.mjs +0 -1
- package/lib/web/chunks/chunk-TPSY4RC3.mjs +0 -13
- package/lib/web/chunks/chunk-U5KNX5O6.mjs +0 -5
- package/lib/web/chunks/chunk-UCKELQSM.mjs +0 -1
- package/lib/web/chunks/chunk-UGGCYHRH.mjs +0 -1
- package/lib/web/chunks/chunk-UKYVRCMZ.mjs +0 -1
- package/lib/web/chunks/chunk-UNYQJZET.mjs +0 -15
- package/lib/web/chunks/chunk-VE72SWLV.mjs +0 -14
- package/lib/web/chunks/chunk-VKONO6MI.mjs +0 -1
- package/lib/web/chunks/chunk-VOS562HW.mjs +0 -14
- package/lib/web/chunks/chunk-W4BGMPJO.mjs +0 -1
- package/lib/web/chunks/chunk-WHNEEKLR.mjs +0 -1
- package/lib/web/chunks/chunk-WIFX6XNL.mjs +0 -15
- package/lib/web/chunks/chunk-WLGUP3KY.mjs +0 -15
- package/lib/web/chunks/chunk-WY7D4WBZ.mjs +0 -1
- package/lib/web/chunks/chunk-XMDNJJS5.mjs +0 -14
- package/lib/web/chunks/chunk-XRNB2MHO.mjs +0 -1
- package/lib/web/chunks/chunk-XUHVHSSG.mjs +0 -14
- package/lib/web/chunks/chunk-XXTIAXQY.mjs +0 -1
- package/lib/web/chunks/chunk-YG6DIKQD.mjs +0 -1
- package/lib/web/chunks/chunk-YIZFMU66.mjs +0 -1
- package/lib/web/chunks/chunk-YOGAPOGC.mjs +0 -1
- package/lib/web/chunks/chunk-Z7373DS5.mjs +0 -1
- package/lib/web/chunks/chunk-Z76GRN66.mjs +0 -5
- package/lib/web/chunks/chunk-ZFPRFFDY.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-4FBAOYJ4.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-6S5TDRE4.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-7W3Y6Q24.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-GOWNFMVT.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-RF47FXIK.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-SOPYL5VC.mjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{gameUIColors as s}from"./chunk-QPY45R5F.mjs";import{__DEV__ as D}from"./chunk-OENR3XFI.mjs";var F=e=>{if(e===null)return"null";if(e===void 0)return"undefined";if(Array.isArray(e))return"array";const t=typeof e;if(t==="object"){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp";if(e instanceof Map)return"map";if(e instanceof Set)return"set";if(e instanceof Error)return"error";return"object"}return t};var V=e=>{const t=typeof e;return e===null||e===void 0||t==="string"||t==="number"||t==="boolean"||t==="bigint"||t==="symbol"};var q=e=>{try{JSON.stringify(e);return true}catch{return false}};var J=e=>{try{JSON.parse(e);return true}catch{return false}};var L=e=>{if(e===null)return"null";if(e===void 0)return"undefined";try{return e.constructor?.name||typeof e}catch{return typeof e}};var z=e=>{if(e===null||e===void 0)return true;if(typeof e==="string")return e.length===0;if(Array.isArray(e))return e.length===0;if(typeof e==="object")return Object.keys(e).length===0;return false};var G=e=>{if(Array.isArray(e)){const t=e.length;if(t===0)return"empty array";if(t===1)return"1 item";return`${t} items`}if(e&&typeof e==="object"){const t=Object.keys(e);const r=t.length;if(r===0)return"empty object";if(r===1)return"1 key";return`${r} keys`}if(typeof e==="string"){const t=e.length;if(t===0)return"empty string";if(t===1)return"1 character";return`${t} characters`}return""};var K=e=>{return typeof e==="object"&&e!==null&&!Array.isArray(e)&&e.constructor===Object};var U=e=>{if(e===null||e===void 0)return e;if(typeof e==="string"){try{return JSON.parse(e)}catch{return e}}return e};var B=e=>{if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e==="string")return`"${e}"`;if(typeof e==="boolean")return e?"true":"false";if(typeof e==="number")return String(e);if(typeof e==="function")return`[Function: ${e.name||"anonymous"}]`;if(typeof e==="object"){if(Array.isArray(e)){return`[Array: ${e.length} items]`}return`{Object: ${Object.keys(e).length} keys}`}return String(e)};var I=e=>{if(e===null)return s.dataTypes.null;if(e===void 0)return s.dataTypes.undefined;const t=typeof e;switch(t){case"string":return s.dataTypes.string;case"number":return s.dataTypes.number;case"boolean":return s.dataTypes.boolean;case"function":return s.dataTypes.function;case"object":return Array.isArray(e)?s.dataTypes.array:s.dataTypes.object;default:return s.primary}};var W=(e,t)=>{if(e.length<=t)return e;return e.slice(0,t-3)+"..."};var p=(e,t="")=>{const r={};if(e===null||e===void 0){return r}if(typeof e!=="object"){r[t||"root"]=e;return r}if(Array.isArray(e)){e.forEach((n,a)=>{const u=t?`${t}[${a}]`:`[${a}]`;if(typeof n==="object"&&n!==null){Object.assign(r,p(n,u))}else{r[u]=n}})}else{Object.keys(e).forEach(n=>{const a=t?`${t}.${n}`:n;const u=e[n];if(typeof u==="object"&&u!==null){Object.assign(r,p(u,a))}else{r[a]=u}})}return r};var Y=e=>{if(e.length===0)return"root";return e.map((t,r)=>{if(typeof t==="number"){return`[${t}]`}return r===0?t:`.${t}`}).join("")};var H={log:()=>{},warn:()=>{},error:(...e)=>{console.error("[optional-module]",...e)}};var l=new Map;var d=new Map;var S=new Set;async function Q(e,t={}){if(l.has(e)){return l.get(e)}const r={...H,...t.logger??{}};if(!d.has(e)){d.set(e,(async()=>{try{const a=await X(e,t);const u=a?.default??a;l.set(e,u);r.log("Loaded optional module",e);return u}catch(a){r.log("Optional module unavailable",e,a);l.set(e,null);return null}})())}const n=await d.get(e);d.delete(e);if(!n&&t.warnOnceKey&&!S.has(t.warnOnceKey)){S.add(t.warnOnceKey);r.warn(t.warningMessage??`Module '${e}' not found.`)}return n}var A=(()=>{try{return new Function("moduleName","return import(moduleName);")}catch{return null}})();var j=(()=>{try{return new Function("return typeof require === 'function' ? require : undefined;")()}catch{return void 0}})();async function X(e,t){if(t.loader){return await Promise.resolve(t.loader())}if(A){return A(e)}if(j){return j(e)}throw new Error(`No dynamic loader available for optional module '${e}'.`)}function Z(e){if(!l.has(e)){return null}return l.get(e)}var P="__buoyRenderCaptureProvider";function x(){return globalThis}function ee(e){x()[P]=e}function te(){return x()[P]??null}var c=new Map;var b=new Set;function O(){b.forEach(e=>{try{e()}catch{}})}function re(e){c.set(e.id,e);O();return()=>{if(c.get(e.id)===e){c.delete(e.id);O()}}}function ne(){return Array.from(c.values())}function ae(e){return c.get(e)??null}function ue(e){b.add(e);return()=>{b.delete(e)}}function h(){return null}function g(){return null}function v(){return typeof window==="undefined"?null:()=>window.location.reload()}function m(e="auto"){if(e==="browser")return v()?"browser":null;if(e==="auto"&&v())return"browser";if(e==="dev-settings"){return h()?"dev-settings":null}if(e==="expo-updates"){return g()?"expo-updates":null}if(D&&h())return"dev-settings";return g()?"expo-updates":null}function E(e){if(e==="browser")return"[buoy] Browser reload requires a browser window.";if(e==="dev-settings"){return"[buoy] DevSettings.reload() unavailable \u2014 strategy 'dev-settings' requires React Native dev mode."}if(e==="expo-updates"){return"[buoy] expo-updates not installed \u2014 strategy 'expo-updates' requires the host app to add the dependency."}return"[buoy] No reload mechanism available. Run in __DEV__ or install expo-updates."}async function R(e="auto",t="buoy reload"){const r=m(e);if(!r)throw new Error(E(e));if(r==="browser"){v()()}else if(r==="dev-settings"){h().reload(t)}else{await g().reloadAsync()}return await new Promise(()=>{})}var T=250;function oe(e){const t=e?.strategy??"auto";const r=m(t);if(!r)throw new Error(E(t));const n=Math.max(0,e?.delayMs??T);const a=e?.reason??"buoy remote reload";setTimeout(()=>{void R(r,a).catch(()=>{})},n);return{strategy:r,delayMs:n}}function se(){return null}var ie=class{constructor(){this.listeners=new Set;this.subscribe=this.subscribe.bind(this)}subscribe(e){this.listeners.add(e);this.onSubscribe();return()=>{this.listeners.delete(e);this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}getListenerCount(){return this.listeners.size}notify(...e){this.listeners.forEach(t=>{t(...e)})}onSubscribe(){}onUnsubscribe(){}};var le=class{constructor(){this.listeners=new Set}subscribe(e){this.listeners.add(e);return()=>{this.listeners.delete(e)}}notify(e){this.listeners.forEach(t=>{try{t(e)}catch{}})}};var w=new le;var ce=e=>w.subscribe(e);var fe=e=>w.notify(e);function de(){return null}function ye(){return null}var o=null;var y=false;var $=false;function i(){if($)return y;try{o=de();y=o!=null&&typeof o.usePathname==="function"&&typeof o.useSegments==="function"}catch(e){y=false;o=null}$=true;return y}function C(){return{push:()=>console.warn("[buoy] expo-router not installed: push() unavailable"),replace:()=>console.warn("[buoy] expo-router not installed: replace() unavailable"),back:()=>console.warn("[buoy] expo-router not installed: back() unavailable"),canGoBack:()=>false,setParams:()=>console.warn("[buoy] expo-router not installed: setParams() unavailable"),navigate:()=>console.warn("[buoy] expo-router not installed: navigate() unavailable")}}function M(){return"/"}function _(){return[]}function k(){return{}}function pe(){if(!i()){return C()}try{return o.useRouter()}catch(e){console.warn("[buoy] Failed to use expo-router.useRouter:",e);return C()}}function be(){if(!i()){return M()}try{return o.usePathname()}catch(e){console.warn("[buoy] Failed to use expo-router.usePathname:",e);return M()}}function he(){if(!i()){return _()}try{return o.useSegments()}catch(e){console.warn("[buoy] Failed to use expo-router.useSegments:",e);return _()}}function ge(){if(!i()){return k()}try{return o.useGlobalSearchParams()}catch(e){console.warn("[buoy] Failed to use expo-router.useGlobalSearchParams:",e);return k()}}function ve(){if(!i()){return null}try{return o.router||null}catch(e){return null}}var f;function me(){if(f!==void 0)return f;try{f=ye()}catch{f=null}return f}function we(){return N()?.pathname??null}function N(){if(!i()){return null}try{const e=me()?.getRouteInfo?.();const t=e?.pathname;if(typeof t!=="string"||t.length===0)return null;const r=e?.pathnameWithParams;return{pathname:t,href:typeof r==="string"&&r.length>0?r:t,...Array.isArray(e?.segments)?{segments:e.segments}:{}}}catch(e){return null}}function Se(){return i()}export{ie as Subscribable,w as subscriberCountNotifier,ce as subscribeToSubscriberCountChanges,fe as notifySubscriberCountChange,F as getValueType,V as isPrimitive,q as isJsonSerializable,J as isValidJson,L as getConstructorName,z as isEmpty,G as getValueSize,K as isPlainObject,U as parseValue,B as formatValue,I as getTypeColor,W as truncateText,p as flattenObject,Y as formatPath,Q as loadOptionalModule,Z as getCachedOptionalModule,ee as setRenderCaptureProvider,te as getRenderCaptureProvider,re as registerStateSnapshotProvider,ne as getStateSnapshotProviders,ae as getStateSnapshotProvider,ue as subscribeToStateSnapshotProviders,m as resolveReloadStrategy,R as reloadApp,T as REMOTE_RELOAD_DELAY_MS,oe as scheduleReloadApp,se as getDevServerOrigin,pe as useSafeRouter,be as useSafePathname,he as useSafeSegments,ge as useSafeGlobalSearchParams,ve as getSafeRouter,we as getSafeCurrentPathname,N as getSafeCurrentRoute,Se as isExpoRouterAvailable};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{d as c}from"./chunk-CE5U3CSQ.mjs";import{a as K}from"./chunk-5NZOQR6Q.mjs";var G=e=>{if(e===null)return"null";if(e===void 0)return"undefined";if(Array.isArray(e))return"array";let t=typeof e;return t==="object"?e instanceof Date?"date":e instanceof RegExp?"regexp":e instanceof Map?"map":e instanceof Set?"set":e instanceof Error?"error":"object":t},X=e=>{let t=typeof e;return e==null||t==="string"||t==="number"||t==="boolean"||t==="bigint"||t==="symbol"},Y=e=>{try{return JSON.stringify(e),true}catch{return false}},H=e=>{try{return JSON.parse(e),true}catch{return false}},Q=e=>{if(e===null)return"null";if(e===void 0)return"undefined";try{return e.constructor?.name||typeof e}catch{return typeof e}},Z=e=>e==null?true:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:false,ee=e=>{if(Array.isArray(e)){let t=e.length;return t===0?"empty array":t===1?"1 item":`${t} items`}if(e&&typeof e=="object"){let t=Object.keys(e).length;return t===0?"empty object":t===1?"1 key":`${t} keys`}if(typeof e=="string"){let t=e.length;return t===0?"empty string":t===1?"1 character":`${t} characters`}return""},te=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&e.constructor===Object;var ne=e=>{if(e==null)return e;if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},re=e=>e===null?"null":e===void 0?"undefined":typeof e=="string"?`"${e}"`:typeof e=="boolean"?e?"true":"false":typeof e=="number"?String(e):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:typeof e=="object"?Array.isArray(e)?`[Array: ${e.length} items]`:`{Object: ${Object.keys(e).length} keys}`:String(e),ae=e=>{if(e===null)return c.dataTypes.null;if(e===void 0)return c.dataTypes.undefined;switch(typeof e){case"string":return c.dataTypes.string;case"number":return c.dataTypes.number;case"boolean":return c.dataTypes.boolean;case"function":return c.dataTypes.function;case"object":return Array.isArray(e)?c.dataTypes.array:c.dataTypes.object;default:return c.primary}},oe=(e,t)=>e.length<=t?e:e.slice(0,t-3)+"...",v=(e,t="")=>{let n={};return e==null?n:typeof e!="object"?(n[t||"root"]=e,n):(Array.isArray(e)?e.forEach((r,a)=>{let o=t?`${t}[${a}]`:`[${a}]`;typeof r=="object"&&r!==null?Object.assign(n,v(r,o)):n[o]=r}):Object.keys(e).forEach(r=>{let a=t?`${t}.${r}`:r,o=e[r];typeof o=="object"&&o!==null?Object.assign(n,v(o,a)):n[a]=o}),n)},se=e=>e.length===0?"root":e.map((t,n)=>typeof t=="number"?`[${t}]`:n===0?t:`.${t}`).join("");var ie={log:()=>{},warn:()=>{},error:(...e)=>{console.error("[optional-module]",...e)}},f=new Map,g=new Map,R=new Set;async function ue(e,t={}){if(f.has(e))return f.get(e);let n={...ie,...t.logger??{}};g.has(e)||g.set(e,(async()=>{try{let a=await le(e,t),o=a?.default??a;return f.set(e,o),n.log("Loaded optional module",e),o}catch(a){return n.log("Optional module unavailable",e,a),f.set(e,null),null}})());let r=await g.get(e);return g.delete(e),!r&&t.warnOnceKey&&!R.has(t.warnOnceKey)&&(R.add(t.warnOnceKey),n.warn(t.warningMessage??`Module '${e}' not found.`)),r}var L=(()=>{try{return new Function("moduleName","return import(moduleName);")}catch{return null}})(),C=(()=>{try{return new Function("return typeof require === 'function' ? require : undefined;")()}catch{return}})();async function le(e,t){if(t.loader)return await Promise.resolve(t.loader());if(L)return L(e);if(C)return C(e);throw new Error(`No dynamic loader available for optional module '${e}'.`)}function ce(e){return f.has(e)?f.get(e):null}var M="__buoyRenderCaptureProvider";function N(){return globalThis}function pe(e){N()[M]=e}function de(){return N()[M]??null}var h=new Map,E=new Set;function _(){E.forEach(e=>{try{e()}catch{}})}function fe(e){return h.set(e.id,e),_(),()=>{h.get(e.id)===e&&(h.delete(e.id),_())}}function ye(){return Array.from(h.values())}function he(e){return h.get(e)??null}function be(e){return E.add(e),()=>{E.delete(e)}}function S(){return null}function j(){return null}function $(){return typeof window>"u"?null:()=>window.location.reload()}function x(e="auto"){return e==="browser"?$()?"browser":null:e==="auto"&&$()?"browser":e==="dev-settings"?S()?"dev-settings":null:e==="expo-updates"?j()?"expo-updates":null:K&&S()?"dev-settings":j()?"expo-updates":null}function P(e){return e==="browser"?"[buoy] Browser reload requires a browser window.":e==="dev-settings"?"[buoy] DevSettings.reload() unavailable \u2014 strategy 'dev-settings' requires React Native dev mode.":e==="expo-updates"?"[buoy] expo-updates not installed \u2014 strategy 'expo-updates' requires the host app to add the dependency.":"[buoy] No reload mechanism available. Run in __DEV__ or install expo-updates."}async function D(e="auto",t="buoy reload"){let n=x(e);if(!n)throw new Error(P(e));return n==="browser"?$()():n==="dev-settings"?S().reload(t):await j().reloadAsync(),await new Promise(()=>{})}var B=250;function we(e){let t=e?.strategy??"auto",n=x(t);if(!n)throw new Error(P(t));let r=Math.max(0,e?.delayMs??B),a=e?.reason??"buoy remote reload";return setTimeout(()=>{D(n,a).catch(()=>{})},r),{strategy:n,delayMs:r}}function ge(){return null}var me=class{constructor(){this.listeners=new Set;this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}getListenerCount(){return this.listeners.size}notify(...e){this.listeners.forEach(t=>{t(...e)})}onSubscribe(){}onUnsubscribe(){}};var ve=class{constructor(){this.listeners=new Set}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notify(e){this.listeners.forEach(t=>{try{t(e)}catch{}})}},O=new ve,Ee=e=>O.subscribe(e),Se=e=>O.notify(e);import{useSyncExternalStore as V}from"react";var l,b=new Set,k;function je(e){return l=e,()=>{l===e&&(l=void 0)}}function d(){return typeof location>"u"?"/":location.href}function q(e){if(!b.size&&typeof window<"u"){let t=window.history,n=t.pushState,r=t.replaceState,a=s=>{for(let p of[...b])try{p({href:d(),kind:s})}catch{}},o=function(...s){let p=Reflect.apply(n,this,s);return a("push"),p},i=function(...s){let p=Reflect.apply(r,this,s);return a("replace"),p};t.pushState=o,t.replaceState=i;let u=()=>a("pop");window.addEventListener("popstate",u),window.addEventListener("hashchange",u),k=()=>{t.pushState===o&&(t.pushState=n),t.replaceState===i&&(t.replaceState=r),window.removeEventListener("popstate",u),window.removeEventListener("hashchange",u),k=void 0}}return b.add(e),()=>{b.delete(e),b.size||k?.()}}function F(e){let t=typeof e=="string"?e:e.pathname,n=new URL(t,d());if(n.origin!==window.location.origin)throw new Error("Tool navigation must stay on the current origin.");if(typeof e!="string")for(let[r,a]of Object.entries(e.params??{}))n.searchParams.set(r,String(a));return`${n.pathname}${n.search}${n.hash}`}var w={push(e){let t=F(e);if(l)return l.push(t);window.history.pushState(null,"",t),window.dispatchEvent(new PopStateEvent("popstate",{state:window.history.state}))},replace(e){let t=F(e);if(l)return l.replace(t);window.history.replaceState(window.history.state,"",t),window.dispatchEvent(new PopStateEvent("popstate",{state:window.history.state}))},back(){l?l.back():window.history.back()},canGoBack(){return l?.canGoBack?.()??(typeof window<"u"&&window.history.length>1)},navigate(e){w.push(e)},setParams(e){w.replace({pathname:d(),params:e})},dismiss(e=1){window.history.go(-e)},dismissAll(){throw new Error("Use the captured browser history to select a destination.")}};var U=e=>q(e);function m(){return new URL(d(),"http://localhost")}function $e(){return w}function I(){return V(U,d,()=>"/"),m().pathname}function xe(){return I().split("/").filter(Boolean)}function Oe(){return V(U,d,()=>"/"),Object.fromEntries(m().searchParams)}function ke(){return typeof window>"u"?null:w}function Te(){return m().pathname}function Ae(){let e=m();return{pathname:e.pathname,href:`${e.pathname}${e.search}${e.hash}`,segments:e.pathname.split("/").filter(Boolean)}}function Re(){return false}var W=new WeakMap,Le=1;function y(e){return!!e&&typeof e=="object"&&e.nodeType===1&&typeof e.getBoundingClientRect=="function"}function T(e){if(!y(e))return null;let t=W.get(e);return t===void 0&&(t=Le++,W.set(e,t)),t}function Ce(e){if(!y(e))return null;let t=Object.keys(e).find(n=>n.startsWith("__reactFiber$"));return t?e[t]:null}function Me(e,t){if(!y(e)||!t)return t;let n=e,r=e.tagName.toLowerCase(),a=r==="input"&&(n.type==="checkbox"||n.type==="radio"),o=r==="input"&&n.type==="range",i=r==="textarea"||r==="select"||r==="input"&&!a&&!o&&!["button","submit","reset","file","hidden"].includes(n.type),u=s=>{if(a){n.checked!==!!s&&n.click();return}let p=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"value")?.set;p?p.call(n,String(s)):n.value=String(s),n.dispatchEvent(new Event("input",{bubbles:true})),n.dispatchEvent(new Event("change",{bubbles:true}))};return{...t,__buoyDevToolsRoot:t.__buoyDevToolsRoot||t["data-buoy-root"]!==void 0,testID:t.testID??t["data-testid"],nativeID:t.nativeID??t.id,accessibilityLabel:t.accessibilityLabel??t["aria-label"],accessibilityRole:t.accessibilityRole??t.role??(r==="button"?"button":r==="a"?"link":a?n.type:i?"textbox":o?"slider":void 0),onPress:t.onPress??(typeof t.onClick=="function"||r==="button"||r==="a"?()=>n.click():void 0),...a||o?{onValueChange:u,value:a?n.checked:Number(n.value),minimumValue:Number(n.min||0),maximumValue:Number(n.max||100)}:{},...i?{onChangeText:u,value:n.value}:{}}}function Ne(e){return y(e)?{__nativeTag:T(e),measure(t){let n=e.getBoundingClientRect();t(n.x,n.y,n.width,n.height,n.x,n.y)},measureInWindow(t){let n=e.getBoundingClientRect();t(n.x,n.y,n.width,n.height)},requestTVFocus(){e.focus()},focus(){e.focus()}}:null}var _e={topFocus:"focus",topBlur:"blur",topTouchStart:"pointerdown",topTouchMove:"pointermove",topTouchEnd:"pointerup",topTouchCancel:"pointercancel",topChange:"input",topValueChange:"input",topSlidingComplete:"change"};function Pe(){return typeof document>"u"?{emitter:null,reason:"DOM events are unavailable during server rendering."}:{reason:null,emitter:{addListener(e,t){let n=_e[e];if(!n)throw new Error(`Unsupported DOM event: ${e}`);let r=a=>{let o=a.composedPath()[0]??a.target;if(!y(o))return;let i=o,u=a,s={target:T(o),pageX:u.clientX,pageY:u.clientY};(n==="input"||n==="change")&&(i.type==="checkbox"||i.type==="radio"?s.value=i.checked:i.type==="range"?s.value=Number(i.value):s.text=i.value??o.textContent??""),t({eventName:e,nativeEvent:s})};return document.addEventListener(n,r,true),{remove:()=>document.removeEventListener(n,r,true)}}}}}var A=new Map,z=0;function De(e){for(let[t,n]of Object.entries(e)){let r=t.startsWith("@buoy-gg/")?t.replace(/\/web$/,""):`@buoy-gg/${t}`;A.get(r)!==n&&(A.set(r,n),z++)}}function J(e){return A.get(e)??null}function Be(){return z}function Ve(e){let t=J(e);if(!t)throw new Error(`Register ${e} with createWebTools before opening tools that use it.`);return t}export{me as a,O as b,Ee as c,Se as d,G as e,X as f,Y as g,H as h,Q as i,Z as j,ee as k,te as l,ne as m,re as n,ae as o,oe as p,v as q,se as r,ue as s,ce as t,pe as u,de as v,fe as w,ye as x,he as y,be as z,x as A,D as B,B as C,we as D,ge as E,je as F,d as G,q as H,w as I,$e as J,I as K,xe as L,Oe as M,ke as N,Te as O,Ae as P,Re as Q,y as R,T as S,Ce as T,Me as U,Ne as V,Pe as W,De as X,J as Y,Be as Z,Ve as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";function h(e){if(typeof e!=="object"||e===null)return false;const n=Object.getPrototypeOf(e);return n===Object.prototype||n===null}function y(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function m(e,n,r){const f={nodes:r?.maxNodes??2e3,truncated:false};return l(e,n,r?.maxDepth??8,f,new WeakSet)}function l(e,n,r,f,a){if(f.nodes--<=0){f.truncated=true;return false}if(Object.is(e,n))return true;if(typeof e!==typeof n)return false;if(typeof e!=="object"||e===null||n===null){return typeof e==="function"&&typeof n==="function"}if(e instanceof Date||n instanceof Date){return e instanceof Date&&n instanceof Date&&e.getTime()===n.getTime()}if(e instanceof RegExp||n instanceof RegExp){return e instanceof RegExp&&n instanceof RegExp&&e.source===n.source&&e.flags===n.flags}if(e instanceof Error||n instanceof Error){return e instanceof Error&&n instanceof Error&&e.name===n.name&&e.message===n.message}if(typeof URL!=="undefined"&&(e instanceof URL||n instanceof URL)){return e instanceof URL&&n instanceof URL&&e.href===n.href}if(y(e)||y(n)){if(!y(e)||!y(n))return false;if(e.constructor!==n.constructor||e.byteLength!==n.byteLength){return false}const o=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);const c=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);for(let s=0;s<o.length;s++)if(o[s]!==c[s])return false;return true}if(r<=0){f.truncated=true;return false}if(a.has(e)){f.truncated=true;return false}a.add(e);if(e instanceof Map||n instanceof Map){if(!(e instanceof Map)||!(n instanceof Map)||e.size!==n.size){return false}const o=Array.from(e.entries());const c=Array.from(n.entries());for(let s=0;s<o.length;s++){if(!l(o[s][0],c[s][0],r-1,f,a))return false;if(!l(o[s][1],c[s][1],r-1,f,a))return false}return true}if(e instanceof Set||n instanceof Set){if(!(e instanceof Set)||!(n instanceof Set)||e.size!==n.size){return false}const o=Array.from(e.values());const c=Array.from(n.values());for(let s=0;s<o.length;s++){if(!l(o[s],c[s],r-1,f,a))return false}return true}if(Array.isArray(e)||Array.isArray(n)){if(!Array.isArray(e)||!Array.isArray(n)||e.length!==n.length){return false}for(let o=0;o<e.length;o++){if(!l(e[o],n[o],r-1,f,a))return false}return true}const t=Object.keys(e);const i=Object.keys(n);if(t.length!==i.length)return false;for(const o of t){if(!Object.prototype.hasOwnProperty.call(n,o))return false;if(!l(e[o],n[o],r-1,f,a)){return false}}return true}function A(e,n,r){const f=r?.maxDepth??8;const a={nodes:r?.maxNodes??2e3,truncated:false};const t=h(e);const i=h(n);if(!t||!i){const u=l(e,n,f,a,new WeakSet);return{equal:u,addedKeys:[],removedKeys:[],changedKeys:u?[]:["value"],truncated:a.truncated}}const o=[];const c=[];const s=[];const g=e;const d=n;for(const u of Object.keys(g)){if(!Object.prototype.hasOwnProperty.call(d,u)){c.push(u)}else if(!l(g[u],d[u],f-1,a,new WeakSet)){s.push(u)}}for(const u of Object.keys(d)){if(!Object.prototype.hasOwnProperty.call(g,u))o.push(u)}return{equal:o.length===0&&c.length===0&&s.length===0,addedKeys:o,removedKeys:c,changedKeys:s,truncated:a.truncated}}var O=12;function b(e){return p(e,O,new WeakSet)}function p(e,n,r){if(e===null||e===void 0)return e;const f=typeof e;if(f==="string"||f==="boolean")return e;if(f==="number"){return Number.isFinite(e)?e:String(e)}if(f==="bigint")return`${String(e)}n`;if(f==="function")return"[Function]";if(f==="symbol")return String(e);if(f!=="object")return String(e);if(e instanceof Date)return e.toISOString();if(e instanceof RegExp)return String(e);if(e instanceof Error)return`[${e.name}: ${e.message}]`;if(typeof URL!=="undefined"&&e instanceof URL)return e.href;if(y(e)){return`<${e.constructor.name} ${e.byteLength} bytes>`}if(n<=0)return"[Max depth]";if(r.has(e))return"[Circular]";r.add(e);if(e instanceof Map){const t={};for(const[i,o]of e.entries()){const c=typeof i==="string"?i:JSON.stringify(b(i));t[c]=p(o,n-1,r)}return t}if(e instanceof Set){return Array.from(e.values()).map(t=>p(t,n-1,r))}if(Array.isArray(e)){return e.map(t=>p(t,n-1,r))}const a={};for(const[t,i]of Object.entries(e)){a[t]=p(i,n-1,r)}return a}function S(e,n){let r=0;const f=[e];const a=new Set;while(f.length>0){const t=f.pop();if(t===null||t===void 0){r+=4}else if(typeof t==="string"){r+=t.length+2}else if(typeof t==="number"||typeof t==="boolean"){r+=8}else if(typeof t==="bigint"){r+=String(t).length+1}else if(typeof t==="object"){if(a.has(t))continue;a.add(t);if(t instanceof Date||t instanceof RegExp){r+=32}else if(y(t)){r+=t.byteLength}else if(t instanceof Map){for(const[i,o]of t.entries()){f.push(i,o);r+=4}}else if(t instanceof Set){for(const i of t.values()){f.push(i);r+=2}}else if(Array.isArray(t)){for(const i of t)f.push(i);r+=2*t.length+2}else{for(const[i,o]of Object.entries(t)){r+=i.length+4;f.push(o)}}}if(r>n)return true}return false}function j(e){return e!==null&&e!==void 0&&typeof e==="object"&&!Array.isArray(e)&&!(e instanceof Date)&&!(e instanceof Error)&&!(e instanceof Map)&&!(e instanceof Set)&&!(e instanceof RegExp)&&typeof e!=="function"}function E(e){switch(e.toLowerCase().trim()){case"local":return"local";case"dev":case"development":return"dev";case"qa":case"test":return"qa";case"staging":case"stage":return"staging";case"prod":case"production":return"prod";default:return"local"}}export{m as boundedDeepEqual,A as objectDiff,b as toDiffable,S as jsonLikelyLargerThan,j as isPlainObject,E as normalizeEnvironment};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as N}from"./chunk-FMEWNGQO.mjs";import{f as m}from"./chunk-CE5U3CSQ.mjs";import{J as I,N as P,a as T,b}from"./chunk-3UTMGIUG.mjs";import{createContext as V,useContext as W,useState as M,useCallback as w,useMemo as B,useEffect as q}from"react";import{jsx as G}from"react/jsx-runtime";var k=V(null);function J({children:e,initialAdapters:t=[]}){let[a,s]=M(()=>{let r=new Map;return t.forEach(n=>{r.set(n.adapter.id,{...n,enabled:n.enabled??true})}),r}),[u,f]=M(null),[p,C]=M(0),d=w(()=>C(r=>r+1),[]);q(()=>{let r=[];return a.forEach(n=>{if(n.enabled){let c=n.adapter.subscribe(d);r.push(c)}}),()=>{r.forEach(n=>n())}},[a,d]);let i=B(()=>Array.from(a.values()).filter(r=>r.enabled).sort((r,n)=>(r.priority??100)-(n.priority??100)).map(r=>r.adapter),[a,p]),h=w(r=>a.get(r)?.adapter,[a]),x=w(r=>{s(n=>{let c=new Map(n);return c.set(r.adapter.id,{...r,enabled:r.enabled??true}),c})},[]),l=w(r=>{s(n=>{let c=new Map(n);return c.delete(r),c})},[]),o=w(r=>{let n=[];return(u&&r?.sources===void 0?i.filter(c=>c.id===u):i).forEach(c=>{r?.sources&&!r.sources.includes(c.id)||(n=n.concat(c.getEntries()))}),r&&(n=O(n,r)),n.sort((c,D)=>D.timestamp-c.timestamp),n},[i,u,p]),S=w(()=>{let r={};return i.forEach(n=>{r[n.id]=n.getEntryCount()}),r},[i,p]),R=B(()=>({adapters:i,getAdapter:h,registerAdapter:x,unregisterAdapter:l,getAllEntries:o,getEntryCounts:S,selectedAdapterId:u,setSelectedAdapterId:f,refresh:d}),[i,h,x,l,o,S,u,d]);return G(k.Provider,{value:R,children:e})}function E(){let e=W(k);if(!e)throw new Error("useHistoryContext must be used within a HistoryProvider");return e}function $(){return E().adapters}function U(e){return E().getAdapter(e)}function z(e){let{getAllEntries:t}=E();return t(e)}function K(){return E().getEntryCounts()}function O(e,t){return e.filter(a=>{if(t.searchText){let s=t.searchText.toLowerCase();if(!a.label.toLowerCase().includes(s))return false}if(t.onlyWithChanges&&!a.hasStateChange||t.onlyErrors&&a.status!=="error"||t.afterTimestamp&&a.timestamp<t.afterTimestamp||t.beforeTimestamp&&a.timestamp>t.beforeTimestamp)return false;if(t.ignoredPatterns?.length){for(let s of t.ignoredPatterns)if(new RegExp(s).test(a.label))return false}if(t.includedPatterns?.length){let s=false;for(let u of t.includedPatterns)if(new RegExp(u).test(a.label)){s=true;break}if(!s)return false}return true})}import{jsx as L}from"react/jsx-runtime";function Q(e){let t=Date.now()-e;return t<1e3?"just now":t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:`${Math.floor(t/36e5)}h ago`}function X(e,t){if(t?.color)return t.color;if(e.status==="error")return m.error;if(e.status==="pending")return m.warning;if(e.status==="success")return m.success;if(e.hasStateChange)return m.success;if(e.isSkipped)return m.textMuted;if(e.isInFuture)return m.textMuted+"80";switch(e.source){case"redux":return"#764ABC";case"zustand":return"#443E38";case"mmkv":return"#4CAF50";case"async-storage":return"#2196F3";case"react-query":return"#FF4154";case"jotai":return"#000000";case"legend-state":return"#7C3AED";default:return m.textSecondary}}function Y(e){return e.isSkipped?"Skipped":e.isInFuture?"Future":e.status?e.status.charAt(0).toUpperCase()+e.status.slice(1):e.hasStateChange?"Changed":"Action"}function Z(e,t){return t?.name?t.name:e.category?e.category:e.source}function F({entry:e,adapter:t,isSelected:a,onPress:s,showSource:u=true,showDuration:f=true}){let p=X(e,t),C=Y(e),d=u?Z(e,t):void 0,i=Q(e.timestamp);f&&e.duration!==void 0&&(i=`${e.duration.toFixed(1)}ms \xB7 ${i}`);let h=e.hasStateChange?L(T,{style:H.changeBadge,children:L(b,{style:H.changeBadgeText,children:"\u26A1"})}):void 0;return L(N,{statusDotColor:p,statusLabel:C,statusSublabel:d,primaryText:e.label,bottomRightText:i,customBadge:h,isSelected:a,onPress:s?()=>s(e):void 0,showChevron:!!s})}var H=I.create({changeBadge:{paddingHorizontal:4},changeBadgeText:{fontSize:12}});import{useCallback as v,useMemo as A}from"react";import{jsx as g,jsxs as j}from"react/jsx-runtime";function _({filter:e,selectedEntryId:t,onSelectEntry:a,showSource:s=true,emptyMessage:u="No history entries yet",ListHeaderComponent:f,ListFooterComponent:p}){let C=z(e),d=$(),i=A(()=>{let o=new Map;return d.forEach(S=>o.set(S.id,S)),o},[d]),h=v(o=>`${o.source}-${o.id}`,[]),x=v(({item:o})=>{let S=i.get(o.source);return g(F,{entry:o,adapter:S,isSelected:t===o.id,onPress:a,showSource:s})},[i,t,a,s]),l=A(()=>j(T,{style:y.emptyContainer,children:[g(b,{style:y.emptyText,children:u}),g(b,{style:y.emptySubtext,children:"Actions will appear here as they happen"})]}),[u]);return g(P,{data:C,keyExtractor:h,renderItem:x,ListEmptyComponent:l,ListHeaderComponent:f,ListFooterComponent:p,contentContainerStyle:y.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15,getItemLayout:void 0})}function ee({entries:e,adapters:t=[],selectedEntryId:a,onSelectEntry:s,showSource:u=true,emptyMessage:f="No history entries yet",ListHeaderComponent:p,ListFooterComponent:C}){let d=A(()=>{let l=new Map;return t.forEach(o=>l.set(o.id,o)),l},[t]),i=v(l=>`${l.source}-${l.id}`,[]),h=v(({item:l})=>{let o=d.get(l.source);return g(F,{entry:l,adapter:o,isSelected:a===l.id,onPress:s,showSource:u})},[d,a,s,u]),x=A(()=>j(T,{style:y.emptyContainer,children:[g(b,{style:y.emptyText,children:f}),g(b,{style:y.emptySubtext,children:"Actions will appear here as they happen"})]}),[f]);return g(P,{data:e,keyExtractor:i,renderItem:h,ListEmptyComponent:x,ListHeaderComponent:p,ListFooterComponent:C,contentContainerStyle:y.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15})}var y=I.create({listContent:{flexGrow:1,paddingVertical:4},emptyContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingVertical:60,paddingHorizontal:20},emptyText:{fontSize:16,fontWeight:"600",color:m.text,marginBottom:8},emptySubtext:{fontSize:13,color:m.textMuted,textAlign:"center"}});export{J as a,E as b,$ as c,U as d,z as e,K as f,F as g,_ as h,ee as i};
|