@buoy-gg/shared-ui 7.0.46 → 7.0.48

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.
Files changed (138) hide show
  1. package/lib/commonjs/stores/ignoredPatternsStore.shared.js +1 -1
  2. package/lib/commonjs/sync/settingsSync.js +1 -1
  3. package/lib/module/stores/ignoredPatternsStore.shared.js +1 -1
  4. package/lib/module/sync/settingsSync.js +1 -1
  5. package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
  6. package/lib/typescript/commonjs/stores/ignoredPatternsStore.shared.d.ts +2 -0
  7. package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
  8. package/lib/typescript/module/stores/ignoredPatternsStore.shared.d.ts +2 -0
  9. package/lib/web/index.mjs +2 -2
  10. package/package.json +5 -5
  11. package/lib/web/chunks/chunk-26OV3QDY.mjs +0 -1
  12. package/lib/web/chunks/chunk-2MHKRRQW.mjs +0 -1
  13. package/lib/web/chunks/chunk-2Q3SDPH2.mjs +0 -13
  14. package/lib/web/chunks/chunk-34YQ42KI.mjs +0 -1
  15. package/lib/web/chunks/chunk-3NNNCQYP.mjs +0 -13
  16. package/lib/web/chunks/chunk-46CXXOQB.mjs +0 -1
  17. package/lib/web/chunks/chunk-475BSDCB.mjs +0 -1
  18. package/lib/web/chunks/chunk-552W4COI.mjs +0 -1
  19. package/lib/web/chunks/chunk-55EIUPOI.mjs +0 -14
  20. package/lib/web/chunks/chunk-56TTTMX4.mjs +0 -1
  21. package/lib/web/chunks/chunk-5KWAGM5V.mjs +0 -1
  22. package/lib/web/chunks/chunk-5LOQZINQ.mjs +0 -13
  23. package/lib/web/chunks/chunk-5NOIO6ZM.mjs +0 -15
  24. package/lib/web/chunks/chunk-6CCRCSA2.mjs +0 -1
  25. package/lib/web/chunks/chunk-6Q52HRBL.mjs +0 -1
  26. package/lib/web/chunks/chunk-6TEDFSNM.mjs +0 -1
  27. package/lib/web/chunks/chunk-7BLJTQ4U.mjs +0 -1
  28. package/lib/web/chunks/chunk-7BMRSMHN.mjs +0 -1
  29. package/lib/web/chunks/chunk-7PRKERDN.mjs +0 -1
  30. package/lib/web/chunks/chunk-A2SOFE47.mjs +0 -1
  31. package/lib/web/chunks/chunk-A7KJCK4R.mjs +0 -13
  32. package/lib/web/chunks/chunk-AEXGGXS7.mjs +0 -1
  33. package/lib/web/chunks/chunk-AGD7ZT6O.mjs +0 -14
  34. package/lib/web/chunks/chunk-AIEOQWNG.mjs +0 -1
  35. package/lib/web/chunks/chunk-ASEPWYDC.mjs +0 -14
  36. package/lib/web/chunks/chunk-ASTM35HG.mjs +0 -15
  37. package/lib/web/chunks/chunk-AZBMFPMX.mjs +0 -1
  38. package/lib/web/chunks/chunk-B2V2UDCU.mjs +0 -15
  39. package/lib/web/chunks/chunk-BFGKGTAC.mjs +0 -1
  40. package/lib/web/chunks/chunk-BHW6AFO6.mjs +0 -1
  41. package/lib/web/chunks/chunk-BWRW3NJ2.mjs +0 -15
  42. package/lib/web/chunks/chunk-CBM2IZAK.mjs +0 -1
  43. package/lib/web/chunks/chunk-CDLCFF44.mjs +0 -1
  44. package/lib/web/chunks/chunk-CI5CO7FQ.mjs +0 -1
  45. package/lib/web/chunks/chunk-CIB4U2YK.mjs +0 -1
  46. package/lib/web/chunks/chunk-CLLTZQGD.mjs +0 -1
  47. package/lib/web/chunks/chunk-D4RXBAOO.mjs +0 -15
  48. package/lib/web/chunks/chunk-D5HQLRFW.mjs +0 -1
  49. package/lib/web/chunks/chunk-DEJNSL6V.mjs +0 -1
  50. package/lib/web/chunks/chunk-DZDTNXXK.mjs +0 -1
  51. package/lib/web/chunks/chunk-EMEAL3L5.mjs +0 -1
  52. package/lib/web/chunks/chunk-ER3T3IDI.mjs +0 -1
  53. package/lib/web/chunks/chunk-F6SJ5CLB.mjs +0 -1
  54. package/lib/web/chunks/chunk-FDOZ6YSS.mjs +0 -1
  55. package/lib/web/chunks/chunk-FMEWNGQO.mjs +0 -1
  56. package/lib/web/chunks/chunk-G4DH7GMT.mjs +0 -1
  57. package/lib/web/chunks/chunk-GBUZCZE4.mjs +0 -1
  58. package/lib/web/chunks/chunk-GLMS5ZLJ.mjs +0 -1
  59. package/lib/web/chunks/chunk-GNGMIA7V.mjs +0 -1
  60. package/lib/web/chunks/chunk-GTYIS7H7.mjs +0 -14
  61. package/lib/web/chunks/chunk-GZE3FIOX.mjs +0 -1
  62. package/lib/web/chunks/chunk-HGA3GJA6.mjs +0 -1
  63. package/lib/web/chunks/chunk-HJ36IONA.mjs +0 -14
  64. package/lib/web/chunks/chunk-HXPTZMAZ.mjs +0 -1
  65. package/lib/web/chunks/chunk-I27M4JCS.mjs +0 -1
  66. package/lib/web/chunks/chunk-IVCT27JB.mjs +0 -1
  67. package/lib/web/chunks/chunk-JG4QSK5B.mjs +0 -1
  68. package/lib/web/chunks/chunk-JR7BJW6B.mjs +0 -1
  69. package/lib/web/chunks/chunk-K46ZJUXJ.mjs +0 -1
  70. package/lib/web/chunks/chunk-K4EGHHD6.mjs +0 -1
  71. package/lib/web/chunks/chunk-K4LXMO4D.mjs +0 -1
  72. package/lib/web/chunks/chunk-K7CGIEFU.mjs +0 -1
  73. package/lib/web/chunks/chunk-KBTYK5YE.mjs +0 -1
  74. package/lib/web/chunks/chunk-KHP6CSSM.mjs +0 -1
  75. package/lib/web/chunks/chunk-KRDRIW7T.mjs +0 -13
  76. package/lib/web/chunks/chunk-L2DTKDER.mjs +0 -1
  77. package/lib/web/chunks/chunk-L3AFTHWX.mjs +0 -14
  78. package/lib/web/chunks/chunk-LFDFDGHY.mjs +0 -1
  79. package/lib/web/chunks/chunk-MAIUUK4E.mjs +0 -1
  80. package/lib/web/chunks/chunk-MKJKS3IG.mjs +0 -1
  81. package/lib/web/chunks/chunk-MRQKVLXG.mjs +0 -1
  82. package/lib/web/chunks/chunk-NK3OISOL.mjs +0 -13
  83. package/lib/web/chunks/chunk-NLJDDIXW.mjs +0 -1
  84. package/lib/web/chunks/chunk-OENR3XFI.mjs +0 -1
  85. package/lib/web/chunks/chunk-OZB3VKZE.mjs +0 -1
  86. package/lib/web/chunks/chunk-P64PFJT3.mjs +0 -5
  87. package/lib/web/chunks/chunk-PACPGYH7.mjs +0 -1
  88. package/lib/web/chunks/chunk-PART6HOE.mjs +0 -13
  89. package/lib/web/chunks/chunk-PMRXUQRH.mjs +0 -1
  90. package/lib/web/chunks/chunk-PTK5FO6C.mjs +0 -1
  91. package/lib/web/chunks/chunk-PZ45TQ55.mjs +0 -13
  92. package/lib/web/chunks/chunk-Q5LN7GET.mjs +0 -5
  93. package/lib/web/chunks/chunk-QCD6T6L4.mjs +0 -1
  94. package/lib/web/chunks/chunk-QD5EUANU.mjs +0 -1
  95. package/lib/web/chunks/chunk-QJTECJCO.mjs +0 -1
  96. package/lib/web/chunks/chunk-QPIZURPZ.mjs +0 -1
  97. package/lib/web/chunks/chunk-QPY45R5F.mjs +0 -1
  98. package/lib/web/chunks/chunk-QQTJ463K.mjs +0 -1
  99. package/lib/web/chunks/chunk-R2SGZIG5.mjs +0 -1
  100. package/lib/web/chunks/chunk-RJO7RXQQ.mjs +0 -1
  101. package/lib/web/chunks/chunk-S3GYQYVJ.mjs +0 -15
  102. package/lib/web/chunks/chunk-SCCXVTDM.mjs +0 -1
  103. package/lib/web/chunks/chunk-SHJHD646.mjs +0 -1
  104. package/lib/web/chunks/chunk-TCRVZ55E.mjs +0 -1
  105. package/lib/web/chunks/chunk-TJ6ZVV2L.mjs +0 -14
  106. package/lib/web/chunks/chunk-TJUBBXXK.mjs +0 -1
  107. package/lib/web/chunks/chunk-TPSY4RC3.mjs +0 -13
  108. package/lib/web/chunks/chunk-U5KNX5O6.mjs +0 -5
  109. package/lib/web/chunks/chunk-UCKELQSM.mjs +0 -1
  110. package/lib/web/chunks/chunk-UGGCYHRH.mjs +0 -1
  111. package/lib/web/chunks/chunk-UKYVRCMZ.mjs +0 -1
  112. package/lib/web/chunks/chunk-UNYQJZET.mjs +0 -15
  113. package/lib/web/chunks/chunk-VE72SWLV.mjs +0 -14
  114. package/lib/web/chunks/chunk-VKONO6MI.mjs +0 -1
  115. package/lib/web/chunks/chunk-VOS562HW.mjs +0 -14
  116. package/lib/web/chunks/chunk-W4BGMPJO.mjs +0 -1
  117. package/lib/web/chunks/chunk-WHNEEKLR.mjs +0 -1
  118. package/lib/web/chunks/chunk-WIFX6XNL.mjs +0 -15
  119. package/lib/web/chunks/chunk-WLGUP3KY.mjs +0 -15
  120. package/lib/web/chunks/chunk-WY7D4WBZ.mjs +0 -1
  121. package/lib/web/chunks/chunk-XD2BEYMM.mjs +0 -15
  122. package/lib/web/chunks/chunk-XMDNJJS5.mjs +0 -14
  123. package/lib/web/chunks/chunk-XRNB2MHO.mjs +0 -1
  124. package/lib/web/chunks/chunk-XUHVHSSG.mjs +0 -14
  125. package/lib/web/chunks/chunk-XXTIAXQY.mjs +0 -1
  126. package/lib/web/chunks/chunk-YG6DIKQD.mjs +0 -1
  127. package/lib/web/chunks/chunk-YIZFMU66.mjs +0 -1
  128. package/lib/web/chunks/chunk-YOGAPOGC.mjs +0 -1
  129. package/lib/web/chunks/chunk-Z7373DS5.mjs +0 -1
  130. package/lib/web/chunks/chunk-Z76GRN66.mjs +0 -5
  131. package/lib/web/chunks/chunk-ZFPRFFDY.mjs +0 -1
  132. package/lib/web/chunks/persistentStorage.web-4FBAOYJ4.mjs +0 -1
  133. package/lib/web/chunks/persistentStorage.web-6OAJAVRK.mjs +0 -1
  134. package/lib/web/chunks/persistentStorage.web-6S5TDRE4.mjs +0 -1
  135. package/lib/web/chunks/persistentStorage.web-7W3Y6Q24.mjs +0 -1
  136. package/lib/web/chunks/persistentStorage.web-GOWNFMVT.mjs +0 -1
  137. package/lib/web/chunks/persistentStorage.web-RF47FXIK.mjs +0 -1
  138. package/lib/web/chunks/persistentStorage.web-SOPYL5VC.mjs +0 -1
@@ -1 +0,0 @@
1
- "use client";import{a as V}from"./chunk-Z7373DS5.mjs";import{f as m}from"./chunk-CE5U3CSQ.mjs";import{createContext as D,useContext as N,useState as T,useCallback as w,useMemo as F,useEffect as W}from"react";import{jsx as q}from"react/jsx-runtime";var I=D(null);function G({children:e,initialAdapters:t=[]}){let[a,s]=T(()=>{let r=new Map;return t.forEach(n=>{r.set(n.adapter.id,{...n,enabled:n.enabled??true})}),r}),[u,f]=T(null),[p,C]=T(0),d=w(()=>C(r=>r+1),[]);W(()=>{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=F(()=>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=K(n,r)),n.sort((c,R)=>R.timestamp-c.timestamp),n},[i,u,p]),S=w(()=>{let r={};return i.forEach(n=>{r[n.id]=n.getEntryCount()}),r},[i,p]),j=F(()=>({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 q(I.Provider,{value:j,children:e})}function b(){let e=N(I);if(!e)throw new Error("useHistoryContext must be used within a HistoryProvider");return e}function P(){return b().adapters}function U(e){return b().getAdapter(e)}function B(e){let{getAllEntries:t}=b();return t(e)}function J(){return b().getEntryCounts()}function K(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{View as O,Text as Q,StyleSheet as X}from"react-native-web";import{jsx as L}from"react/jsx-runtime";function Y(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 Z(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 _(e){return e.isSkipped?"Skipped":e.isInFuture?"Future":e.status?e.status.charAt(0).toUpperCase()+e.status.slice(1):e.hasStateChange?"Changed":"Action"}function ee(e,t){return t?.name?t.name:e.category?e.category:e.source}function M({entry:e,adapter:t,isSelected:a,onPress:s,showSource:u=true,showDuration:f=true}){let p=Z(e,t),C=_(e),d=u?ee(e,t):void 0,i=Y(e.timestamp);f&&e.duration!==void 0&&(i=`${e.duration.toFixed(1)}ms \xB7 ${i}`);let h=e.hasStateChange?L(O,{style:k.changeBadge,children:L(Q,{style:k.changeBadgeText,children:"\u26A1"})}):void 0;return L(V,{statusDotColor:p,statusLabel:C,statusSublabel:d,primaryText:e.label,bottomRightText:i,customBadge:h,isSelected:a,onPress:s?()=>s(e):void 0,showChevron:!!s})}var k=X.create({changeBadge:{paddingHorizontal:4},changeBadgeText:{fontSize:12}});import{useCallback as E,useMemo as v}from"react";import{FlatList as $,View as z,Text as A,StyleSheet as te}from"react-native-web";import{jsx as y,jsxs as H}from"react/jsx-runtime";function re({filter:e,selectedEntryId:t,onSelectEntry:a,showSource:s=true,emptyMessage:u="No history entries yet",ListHeaderComponent:f,ListFooterComponent:p}){let C=B(e),d=P(),i=v(()=>{let o=new Map;return d.forEach(S=>o.set(S.id,S)),o},[d]),h=E(o=>`${o.source}-${o.id}`,[]),x=E(({item:o})=>{let S=i.get(o.source);return y(M,{entry:o,adapter:S,isSelected:t===o.id,onPress:a,showSource:s})},[i,t,a,s]),l=v(()=>H(z,{style:g.emptyContainer,children:[y(A,{style:g.emptyText,children:u}),y(A,{style:g.emptySubtext,children:"Actions will appear here as they happen"})]}),[u]);return y($,{data:C,keyExtractor:h,renderItem:x,ListEmptyComponent:l,ListHeaderComponent:f,ListFooterComponent:p,contentContainerStyle:g.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15,getItemLayout:void 0})}function ne({entries:e,adapters:t=[],selectedEntryId:a,onSelectEntry:s,showSource:u=true,emptyMessage:f="No history entries yet",ListHeaderComponent:p,ListFooterComponent:C}){let d=v(()=>{let l=new Map;return t.forEach(o=>l.set(o.id,o)),l},[t]),i=E(l=>`${l.source}-${l.id}`,[]),h=E(({item:l})=>{let o=d.get(l.source);return y(M,{entry:l,adapter:o,isSelected:a===l.id,onPress:s,showSource:u})},[d,a,s,u]),x=v(()=>H(z,{style:g.emptyContainer,children:[y(A,{style:g.emptyText,children:f}),y(A,{style:g.emptySubtext,children:"Actions will appear here as they happen"})]}),[f]);return y($,{data:e,keyExtractor:i,renderItem:h,ListEmptyComponent:x,ListHeaderComponent:p,ListFooterComponent:C,contentContainerStyle:g.listContent,showsVerticalScrollIndicator:false,removeClippedSubviews:true,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15})}var g=te.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{G as a,b,P as c,U as d,B as e,J as f,M as g,re as h,ne as i};
@@ -1 +0,0 @@
1
- "use client";var o=process.env.NODE_ENV!=="production";if(typeof window!=="undefined"&&typeof globalThis.global==="undefined"){globalThis.global=globalThis}export{o as __DEV__};
@@ -1 +0,0 @@
1
- "use client";import{Ob as le,Pb as se,Q as _,Qb as P,R as ce,Ub as de,Wb as M,Zb as $,ld as y}from"./chunk-I27M4JCS.mjs";import{d as n}from"./chunk-CE5U3CSQ.mjs";import{J as z,a as c,b as f,d as G,r as O,y as U}from"./chunk-UCKELQSM.mjs";var ue="[Circular]",H="[...]";function fe(e,t,o={}){let{depthLimit:s=Number.MAX_SAFE_INTEGER,edgesLimit:p=Number.MAX_SAFE_INTEGER}=o,d=[];function a(i,l,g,r,w,A){if(A+=1,typeof i=="object"&&i!==null){for(let v=0;v<r.length;v++)if(r[v]===i){m(ue,i,l,w);return}if(A>s){m(H,i,l,w);return}if(g+1>p){m(H,i,l,w);return}if(r.push(i),Array.isArray(i)){let v=i;for(let I=0;I<i.length;I++)a(i[I],I,I,r,v,A)}else if(i instanceof Map||i instanceof Set||i instanceof RegExp||i instanceof Date||i instanceof Error){r.pop();return}else{let v=i,I=Object.keys(v);for(let B=0;B<I.length;B++){let E=I[B];a(v[E],E,B,r,v,A)}}r.pop()}}function m(i,l,g,r){if(!r)return;let w=Object.getOwnPropertyDescriptor(r,g);if(w?.get!==void 0)if(w.configurable)Object.defineProperty(r,g,{value:i}),d.push([r,g,l,w]);else return;else r[g]=i,d.push([r,g,l])}let C=(i,l)=>{if(typeof l=="bigint")return`${l.toString()}n`;if(typeof l=="symbol")return l.toString();if(typeof l>"u")return"undefined";if(typeof l=="function")return`[Function: ${l.name||"anonymous"}]`;if(typeof l=="number"){if(l===1/0)return"Infinity";if(l===-1/0)return"-Infinity";if(Number.isNaN(l))return"NaN"}if(l instanceof Error){let g={name:l.name,message:l.message,stack:l.stack};return Object.getOwnPropertyNames(l).forEach(r=>{if(!["name","message","stack"].includes(r))try{let w=l[r];w!==void 0&&(g[r]=w)}catch{}}),g}if(l instanceof Date)return l.toISOString();if(l instanceof RegExp)return l.toString();if(l instanceof Map)try{return{__type:"Map",entries:Array.from(l.entries()).map(([g,r])=>[String(g),r])}}catch{return{__type:"Map",entries:"[Map iteration failed]"}}if(l instanceof Set)try{return{__type:"Set",values:Array.from(l)}}catch{return{__type:"Set",values:"[Set iteration failed]"}}return l};try{return a(e,"",0,[],null,0),JSON.stringify(e,C,t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;d.length!==0;){let i=d.pop();if(i&&i.length===4){let[l,g,,r]=i;l&&typeof l=="object"&&r&&Object.defineProperty(l,g,r)}else if(i){let[l,g,r]=i;l&&typeof l=="object"&&(typeof g=="string"||typeof g=="number")&&(l[g]=r)}}}}var pe=e=>typeof e>"u",ge=e=>typeof e!="object"||e===null||e===Object.prototype?false:Object.getPrototypeOf(e)===null?true:Object.getPrototypeOf(e)===Object.prototype,D=e=>Array.isArray(e),ye=e=>typeof e=="boolean"||e===null||typeof e>"u"||typeof e=="number"||typeof e=="string"||typeof e=="symbol",he=e=>e instanceof Date&&!isNaN(e.valueOf()),J=e=>e instanceof Error,me=e=>e instanceof RegExp,Y=e=>e instanceof Set,K=e=>e instanceof Map,be=e=>typeof e=="bigint",X=e=>typeof e=="number"&&isNaN(e),Se=e=>e===1/0||e===-1/0,we=e=>e===0&&1/e===-1/0,xe=e=>e instanceof URL,Ce=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Ae={Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray},q=[{isApplicable:pe,annotation:"undefined",transform:()=>null,untransform:()=>{}},{isApplicable:be,annotation:"bigint",transform:e=>e.toString(),untransform:e=>typeof BigInt<"u"?BigInt(e):(console.error("BigInt is not supported in this environment"),e)},{isApplicable:he,annotation:"Date",transform:e=>e.toISOString(),untransform:e=>new Date(e)},{isApplicable:J,annotation:"Error",transform:e=>({name:e.name,message:e.message,stack:e.stack,cause:"cause"in e?e.cause:void 0}),untransform:e=>{let t=new Error(e.message);return t.name=e.name,t.stack=e.stack,e.cause!==void 0&&(t.cause=e.cause),t}},{isApplicable:me,annotation:"regexp",transform:e=>""+e,untransform:e=>{let t=e.slice(1,e.lastIndexOf("/")),o=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,o)}},{isApplicable:Y,annotation:"set",transform:e=>[...e.values()],untransform:e=>new Set(e)},{isApplicable:K,annotation:"map",transform:e=>[...e.entries()],untransform:e=>new Map(e)},{isApplicable:e=>X(e)||Se(e),annotation:"number",transform:e=>X(e)?"NaN":e>0?"Infinity":"-Infinity",untransform:e=>Number(e)},{isApplicable:we,annotation:"number",transform:()=>"-0",untransform:()=>-0},{isApplicable:xe,annotation:"URL",transform:e=>e.toString(),untransform:e=>new URL(e)},{isApplicable:Ce,annotation:e=>["typed-array",e.constructor.name],transform:e=>[...e],untransform:(e,t)=>{let o=Array.isArray(t)?t[1]:"Uint8Array",s=Ae[o];if(!s)throw new Error(`Unknown typed array: ${o}`);return new s(e)}}];function j(e){for(let t of q)if(t.isApplicable(e)){let o=typeof t.annotation=="function"?t.annotation(e):t.annotation;return{value:t.transform(e),type:o}}}function Q(e,t){for(let o of q){let s=typeof o.annotation=="function"?Array.isArray(t)?t[0]:t:o.annotation;if(Array.isArray(t)&&Array.isArray(s)?t[0]===s[0]:s===t)return o.untransform(e,t)}throw new Error(`Unknown transformation: ${t}`)}var Z=e=>ge(e)||D(e)||K(e)||Y(e)||J(e);function V(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function ee(e,t=[],o=[]){let s=ye(e);if(!s&&!Z(e)){let i=j(e);return i?{transformedValue:i.value,annotations:{[t.map(String).map(V).join(".")]:i.type}}:{transformedValue:e}}if(!s&&o.indexOf(e)!==-1)return{transformedValue:null};if(!Z(e)){let i=j(e);return i?{transformedValue:i.value,annotations:t.length>0?{[t.map(String).map(V).join(".")]:i.type}:{"":i.type}}:{transformedValue:e}}let p=j(e),d=p?.value??e,a=D(d)?[]:{},m={};if(p){let i=t.length>0?t.map(String).map(V).join("."):"";m[i]=p.type}let C=D(d)?d.map((i,l)=>[l,i]):Object.entries(d);for(let[i,l]of C){let g=String(i);if(g==="__proto__"||g==="constructor"||g==="prototype")throw new Error(`Detected property ${g}. This is a prototype pollution risk, please remove it from your object.`);let r=ee(l,[...t,i],[...o,e]);a[i]=r.transformedValue,r.annotations&&Object.assign(m,r.annotations)}return{transformedValue:a,annotations:Object.keys(m).length>0?m:void 0}}function ve(e){if(e==="")return[];let t=[],o="";for(let s=0;s<e.length;s++){let p=e.charAt(s);if(p==="\\"){let d=e.charAt(s+1);if(d==="\\"){o+="\\",s++;continue}else if(d==="."){o+=".",s++;continue}}if(p==="."){t.push(o),o="";continue}o+=p}return o&&t.push(o),t}function Ie(e,t,o){if(t.length===0)return;let s=e;for(let p=0;p<t.length-1;p++)s=s[t[p]];s[t[t.length-1]]=o}function Re(e,t){let o=e;for(let s of t)o=o[s];return o}function te(e){let t=ee(e),o={json:t.transformedValue};return t.annotations&&(o.meta={values:t.annotations}),o}function re(e){let{json:t,meta:o}=e;if(!o?.values)return t;let s=D(t)?[...t]:{...t},p=Object.entries(o.values).map(([d,a])=>({pathString:d,type:a,path:ve(d)})).sort((d,a)=>a.path.length-d.path.length);for(let{type:d,path:a}of p)if(a.length===0)s=Q(s,d);else{let m=Re(s,a),C=Q(m,d);Ie(s,a,C)}return s}var Te=(e,t=false)=>{let{json:o}=te(e);return JSON.stringify(o,null,t?2:void 0)},Oe=e=>{try{let t=JSON.parse(e);return re({json:t,meta:void 0})}catch{return JSON.parse(e)}};import{jsx as N,jsxs as L}from"react/jsx-runtime";function ke({icon:e,iconColor:t,title:o,count:s,subtitle:p,expanded:d,onToggle:a,children:m,style:C,titleStyle:i}){return L(c,{style:[F.container,C],children:[L(G,{onPress:a,activeOpacity:.7,style:F.headerTouchable,children:[L(c,{style:F.header,children:[L(c,{style:F.headerLeft,children:[N(e,{size:14,color:t}),N(f,{style:[F.title,i],children:o}),N(c,{style:[F.badge,{backgroundColor:t+"20"}],children:N(f,{style:[F.badgeText,{color:t}],children:s})})]}),d?N($,{size:14,color:n.muted}):N(M,{size:14,color:n.muted})]}),N(f,{style:F.subtitle,children:p})]}),d&&N(O.View,{style:{opacity:1},children:m})]})}var F=z.create({container:{marginBottom:20},headerTouchable:{marginBottom:12},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:4,paddingHorizontal:4},headerLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1},title:{fontSize:11,color:n.primary,fontFamily:y,fontWeight:"700",letterSpacing:2,opacity:.9},subtitle:{fontSize:9,color:n.secondary,fontFamily:y,paddingHorizontal:4,marginTop:2,opacity:.7},badge:{paddingHorizontal:8,paddingVertical:2,borderRadius:10},badgeText:{fontSize:10,fontFamily:y,fontWeight:"700"}});var oe={position:"absolute",top:0,left:0,right:0,bottom:0};import{jsx as k,jsxs as W}from"react/jsx-runtime";function Ne({alertConfig:e,badgeText:t,animatedStyle:o,style:s,indicatorCount:p=3}){let d=e.icon;return W(O.View,{style:[R.container,{borderColor:e.color+"40"},s,o],children:[k(c,{style:[R.glow,{backgroundColor:e.color+"10"}]}),W(c,{style:R.content,children:[k(c,{style:[R.iconWrapper,{backgroundColor:e.color+"15"}],children:k(d,{size:20,color:e.color})}),W(c,{style:R.textContainer,children:[k(f,{style:[R.label,{color:e.color}],children:e.label}),k(f,{style:R.subtitle,children:e.subtitle})]}),k(c,{style:[R.badge,{backgroundColor:e.color+"20"}],children:k(f,{style:[R.badgeText,{color:e.color}],children:t})})]}),k(c,{style:R.indicators,children:[...Array(p)].map((a,m)=>k(c,{style:[R.indicatorDot,{backgroundColor:e.color,opacity:e.pulse?m===0?1:.5-m*.2:.3-m*.1}]},m))})]})}var R=z.create({container:{backgroundColor:n.panel,borderRadius:12,borderWidth:1,padding:16,marginBottom:16,position:"relative",overflow:"hidden"},glow:{...oe,opacity:.5},content:{flexDirection:"row",alignItems:"center",gap:12},iconWrapper:{width:36,height:36,borderRadius:8,justifyContent:"center",alignItems:"center"},textContainer:{flex:1,gap:2},label:{fontSize:13,fontWeight:"700",fontFamily:y,letterSpacing:1.5,textShadowOffset:{width:0,height:0},textShadowRadius:8},subtitle:{fontSize:10,color:n.secondary,fontFamily:y},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:4},badgeText:{fontSize:9,fontWeight:"700",fontFamily:y,letterSpacing:1},indicators:{position:"absolute",top:8,right:8,flexDirection:"row",gap:3},indicatorDot:{width:4,height:4,borderRadius:2}});import{Fragment as Fe}from"react";import{jsx as b,jsxs as x}from"react/jsx-runtime";function Be({statsConfig:e,totalCount:t,header:o,bottomStats:s,style:p,hideInactive:d=true}){return x(c,{style:[u.container,p],children:[o&&x(c,{style:u.header,children:[x(c,{style:u.headerLeft,children:[b(f,{style:u.headerTitle,children:o.title}),b(f,{style:u.headerSubtitle,children:o.subtitle})]}),o.healthPercentage!==void 0&&b(c,{style:u.headerRight,children:x(c,{style:u.statusIndicator,children:[b(c,{style:[u.statusDot,{backgroundColor:o.healthColor||n.success}]}),b(f,{style:[u.statusText,{color:o.healthColor||n.success}],children:o.healthStatus||"OPTIMAL"})]})})]}),o?.healthPercentage!==void 0&&x(c,{style:u.healthSection,children:[b(f,{style:u.healthLabel,children:"SYSTEM HEALTH"}),b(c,{style:u.healthBarWrapper,children:b(c,{style:u.healthBarBg,children:b(O.View,{style:[u.healthBarFill,{width:`${o.healthPercentage}%`,backgroundColor:o.healthColor||n.success}]})})}),x(f,{style:[u.healthPercentage,{color:o.healthColor||n.success}],children:[o.healthPercentage,"%"]})]}),b(c,{style:u.statsGrid,children:e.map(a=>{let m=a.value>0;if(d&&!m)return null;let C=a.icon,i=t?a.value/t*100:0;return x(O.View,{style:[u.statCard,{borderColor:a.color+"30"}],children:[x(c,{style:u.cardContent,children:[b(c,{style:[u.iconBadge,{backgroundColor:a.color+"1A",borderColor:a.color+"33"}],children:b(C,{size:12,color:a.color})}),x(c,{style:u.cardInfo,children:[b(f,{style:u.cardLabel,children:a.label}),b(f,{style:u.cardSubtitle,children:a.subtitle})]}),x(c,{style:u.valueBlock,children:[b(f,{style:[u.statNumber,{color:a.color}],children:a.value.toString().padStart(2,"0")}),t?x(f,{style:u.percentText,children:[Math.round(i),"%"]}):null]})]}),a.showBar!==false&&t&&b(c,{style:[u.statBar,{backgroundColor:a.color+"10"}],children:b(c,{style:[u.statBarFill,{width:`${i}%`,backgroundColor:a.color}]})})]},a.key)})}),s&&s.length>0&&b(c,{style:u.bottomBar,children:s.map((a,m)=>x(Fe,{children:[x(c,{style:u.bottomStat,children:[b(f,{style:u.bottomStatLabel,children:a.label}),b(f,{style:[u.bottomStatValue,a.color&&{color:a.color}],children:a.value})]}),m<s.length-1&&b(c,{style:u.bottomDivider})]},a.label))})]})}var u=z.create({container:{backgroundColor:n.panel,borderRadius:12,padding:12,marginBottom:12,borderWidth:1,borderColor:n.border+"40",overflow:"hidden",position:"relative"},header:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8,paddingBottom:8,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.1)"},headerLeft:{gap:1},headerRight:{alignItems:"flex-end"},headerTitle:{fontSize:11,fontWeight:"700",color:n.primary,fontFamily:y,letterSpacing:1.5},headerSubtitle:{fontSize:8,color:n.secondary,fontFamily:y,opacity:.7},statusIndicator:{flexDirection:"row",alignItems:"center",gap:4},statusDot:{width:5,height:5,borderRadius:2.5},statusText:{fontSize:9,fontWeight:"600",fontFamily:y,letterSpacing:.5},healthSection:{flexDirection:"row",alignItems:"center",marginBottom:10,gap:8},healthLabel:{fontSize:8,color:n.secondary,fontFamily:y,letterSpacing:.5},healthBarWrapper:{flex:1},healthBarBg:{height:4,backgroundColor:"rgba(128, 128, 128, 0.1)",borderRadius:2,overflow:"hidden"},healthBarFill:{height:"100%",borderRadius:2},healthPercentage:{fontSize:11,fontWeight:"700",fontFamily:y},statsGrid:{gap:6,marginBottom:8},statCard:{backgroundColor:n.blackTint2,borderRadius:8,borderWidth:1,borderColor:n.border,padding:10,marginBottom:4},cardContent:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:4},cardInfo:{flex:1},cardLabel:{fontSize:11,fontWeight:"700",fontFamily:y,letterSpacing:.5,color:n.primary},cardSubtitle:{fontSize:8,color:n.secondary,fontFamily:y,opacity:.7},statNumber:{fontSize:16,fontWeight:"700",fontFamily:y,minWidth:28},valueBlock:{alignItems:"flex-end"},percentText:{fontSize:9,color:n.secondary,fontFamily:y},statBar:{height:3,borderRadius:1.5,overflow:"hidden"},statBarFill:{height:"100%",borderRadius:1.5},bottomBar:{flexDirection:"row",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:n.border+"40"},bottomStat:{flex:1,alignItems:"center"},bottomStatLabel:{fontSize:7,color:n.muted,fontFamily:y,letterSpacing:.5,marginBottom:1},bottomStatValue:{fontSize:11,fontWeight:"700",color:n.primary,fontFamily:y},bottomDivider:{width:1,height:16,backgroundColor:n.border+"40"},iconBadge:{width:24,height:24,borderRadius:6,borderWidth:1,alignItems:"center",justifyContent:"center"}});import{useState as ze,useCallback as De}from"react";import{jsx as S,jsxs as T}from"react/jsx-runtime";function Le({issues:e,onIssueClick:t,hintText:o="Tap any issue to view details",style:s,expandable:p=true,statusLabels:d={missing:"Not found",wrong_type:"Type error",wrong_value:"Invalid value"}}){let[a,m]=ze(new Set),C=De(r=>{p&&m(w=>{let A=new Set(w);return A.has(r)?A.delete(r):A.add(r),A})},[p]),i=r=>r==="missing"?n.warning:n.info,l=r=>r==="missing"?_:P,g=r=>{switch(r.status){case"missing":return`\u2022 ${d.missing}`;case"wrong_type":return`\u2022 ${d.wrong_type}${r.expectedType?`: Expected ${r.expectedType}`:""}`;case"wrong_value":return`\u2022 ${d.wrong_value}${r.value?`: ${String(r.value).substring(0,20)}`:""}`;default:return""}};return e.length===0?null:T(c,{style:[h.container,s],children:[e.map((r,w)=>{let A=i(r.status),v=l(r.status),I=a.has(r.key),B=I?$:M;return T(c,{children:[T(G,{onPress:()=>{p&&C(r.key),t?.(r)},style:h.issueRow,activeOpacity:.7,children:[S(v,{size:14,color:A}),T(c,{style:h.issueContent,children:[S(f,{style:[h.issueKey,{color:n.primary}],children:r.key}),S(f,{style:h.issueDesc,children:g(r)})]}),p&&S(B,{size:12,color:n.muted})]}),p&&I&&T(O.View,{style:h.issueDetails,children:[T(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Status:"}),T(f,{style:[h.detailValue,{color:n.primary,fontWeight:"600"}],children:[r.status==="missing"&&"MISSING",r.status==="wrong_type"&&"TYPE ERROR",r.status==="wrong_value"&&"INVALID VALUE"]})]}),r.value!==void 0&&r.status!=="missing"&&T(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Current:"}),S(f,{style:[h.detailValue,{color:n.warning}],children:`"${String(r.value)}"`})]}),r.expectedType&&r.status==="wrong_type"&&T(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Expected:"}),S(f,{style:[h.detailValue,{color:n.success}],children:r.expectedType})]}),r.expectedValue&&r.status==="wrong_value"&&T(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Expected:"}),S(f,{style:[h.detailValue,{color:n.success}],children:`"${r.expectedValue}"`})]}),r.description&&S(c,{style:h.descSection,children:S(f,{style:h.descText,children:r.description})}),r.fixSuggestion&&T(c,{style:h.fixSection,children:[S(f,{style:h.fixLabel,children:"HOW TO FIX"}),S(f,{style:h.fixText,children:r.fixSuggestion})]})]})]},`${r.key}-${w}`)}),o&&S(f,{style:h.hint,children:o})]})}var h=z.create({container:{backgroundColor:n.panel,borderRadius:8,padding:8,borderWidth:1,borderColor:n.warning+"33"},issueRow:{flexDirection:"row",alignItems:"center",paddingVertical:8,paddingHorizontal:8,borderRadius:6,marginBottom:4},issueContent:{flex:1,marginLeft:8,flexDirection:"row",alignItems:"center",gap:8},issueKey:{fontSize:11,fontWeight:"600",fontFamily:y},issueDesc:{fontSize:10,color:n.secondary,fontFamily:y,flex:1},hint:{fontSize:9,color:n.muted,fontFamily:y,textAlign:"center",marginTop:8,paddingTop:8,borderTopWidth:1,borderTopColor:n.primary+"0D"},issueDetails:{marginTop:8,marginLeft:22,marginRight:8,paddingLeft:12,paddingRight:8,paddingTop:8,paddingBottom:8,backgroundColor:n.background+"4D",borderLeftWidth:2,borderLeftColor:n.primary+"1A",borderRadius:4},detailRow:{flexDirection:"row",marginTop:8,alignItems:"flex-start"},detailLabel:{fontSize:10,color:n.secondary,fontFamily:y,fontWeight:"600",width:70},detailValue:{fontSize:11,color:n.primary,fontFamily:y,flex:1,lineHeight:16},fixSection:{marginTop:12,padding:10,backgroundColor:n.info+"14",borderRadius:6,borderWidth:1,borderColor:n.info+"33"},fixLabel:{fontSize:10,color:n.info,fontFamily:y,fontWeight:"700",marginBottom:6,letterSpacing:.5},fixText:{fontSize:11,color:n.primary,fontFamily:y,lineHeight:18,backgroundColor:n.background+"66",padding:8,borderRadius:4,overflow:"hidden"},descSection:{marginTop:10,paddingTop:10,borderTopWidth:1,borderTopColor:n.primary+"0D"},descText:{fontSize:10,color:n.secondary,fontFamily:y,marginTop:4,lineHeight:14}});import{useMemo as ne,useEffect as je,useRef as ie}from"react";var ae={OPTIMAL:{icon:de,color:n.success,label:"CONFIG OK",subtitle:"All requirements met",pulse:false},WARNING:{icon:P,color:n.warning,label:"CONFIG WARNING",subtitle:"Check values and types",pulse:false},ERROR:{icon:se,color:n.error,label:"CONFIG ERROR",subtitle:"Missing required data",pulse:false},CRITICAL:{icon:_,color:n.critical,label:"CONFIG FAILURE",subtitle:"Multiple critical issues",pulse:false},LOADING:{icon:le,color:n.info,label:"LOADING",subtitle:"Reading configuration...",pulse:true},EMPTY:{icon:ce,color:n.muted,label:"NO DATA",subtitle:"No configuration found",pulse:false}};function Ve(e,t){let o=ne(()=>({...ae,...t}),[t]),s=ne(()=>e.totalCount===0?"EMPTY":e.missingCount>2||e.wrongTypeCount>2?"CRITICAL":e.missingCount>0?"ERROR":e.wrongValueCount>0||e.wrongTypeCount>0?"WARNING":"OPTIMAL",[e]),p=o[s],d=ie(new O.Value(1)).current,a=ie(new O.Value(1)).current;return je(()=>{d.setValue(0),a.setValue(.95),O.parallel([O.timing(d,{toValue:1,duration:300,useNativeDriver:true}),O.timing(a,{toValue:1,duration:300,easing:U.out(U.ease),useNativeDriver:true})]).start()},[s,d,a]),{alertState:s,alertConfig:p,alertAnimatedStyle:{transform:[{scale:a}],opacity:d},alertOpacity:d,alertScale:a}}export{fe as a,te as b,re as c,Te as d,Oe as e,ke as f,oe as g,Ne as h,Be as i,Le as j,ae as k,Ve as l};