@buoy-gg/shared-ui 7.0.46 → 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.
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{Ob as fe,Pb as pe,Q as U,Qb as H,R as ge,Ub as he,Wb as J,Zb as Y,ld as p}from"./chunk-YG6DIKQD.mjs";import{d as n}from"./chunk-CE5U3CSQ.mjs";var ye="[Circular]",K="[...]";function me(e,t,o={}){let{depthLimit:s=Number.MAX_SAFE_INTEGER,edgesLimit:u=Number.MAX_SAFE_INTEGER}=o,c=[];function i(a,l,f,r,S,v){if(v+=1,typeof a=="object"&&a!==null){for(let T=0;T<r.length;T++)if(r[T]===a){h(ye,a,l,S);return}if(v>s){h(K,a,l,S);return}if(f+1>u){h(K,a,l,S);return}if(r.push(a),Array.isArray(a)){let T=a;for(let A=0;A<a.length;A++)i(a[A],A,A,r,T,v)}else if(a instanceof Map||a instanceof Set||a instanceof RegExp||a instanceof Date||a instanceof Error){r.pop();return}else{let T=a,A=Object.keys(T);for(let V=0;V<A.length;V++){let G=A[V];i(T[G],G,V,r,T,v)}}r.pop()}}function h(a,l,f,r){if(!r)return;let S=Object.getOwnPropertyDescriptor(r,f);if(S?.get!==void 0)if(S.configurable)Object.defineProperty(r,f,{value:a}),c.push([r,f,l,S]);else return;else r[f]=a,c.push([r,f,l])}let C=(a,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 f={name:l.name,message:l.message,stack:l.stack};return Object.getOwnPropertyNames(l).forEach(r=>{if(!["name","message","stack"].includes(r))try{let S=l[r];S!==void 0&&(f[r]=S)}catch{}}),f}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(([f,r])=>[String(f),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 i(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(;c.length!==0;){let a=c.pop();if(a&&a.length===4){let[l,f,,r]=a;l&&typeof l=="object"&&r&&Object.defineProperty(l,f,r)}else if(a){let[l,f,r]=a;l&&typeof l=="object"&&(typeof f=="string"||typeof f=="number")&&(l[f]=r)}}}}var be=e=>typeof e>"u",Se=e=>typeof e!="object"||e===null||e===Object.prototype?false:Object.getPrototypeOf(e)===null?true:Object.getPrototypeOf(e)===Object.prototype,L=e=>Array.isArray(e),we=e=>typeof e=="boolean"||e===null||typeof e>"u"||typeof e=="number"||typeof e=="string"||typeof e=="symbol",xe=e=>e instanceof Date&&!isNaN(e.valueOf()),X=e=>e instanceof Error,Ce=e=>e instanceof RegExp,q=e=>e instanceof Set,Q=e=>e instanceof Map,ve=e=>typeof e=="bigint",Z=e=>typeof e=="number"&&isNaN(e),Te=e=>e===1/0||e===-1/0,Ae=e=>e===0&&1/e===-1/0,Ie=e=>e instanceof URL,Re=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Oe={Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray},ee=[{isApplicable:be,annotation:"undefined",transform:()=>null,untransform:()=>{}},{isApplicable:ve,annotation:"bigint",transform:e=>e.toString(),untransform:e=>typeof BigInt<"u"?BigInt(e):(console.error("BigInt is not supported in this environment"),e)},{isApplicable:xe,annotation:"Date",transform:e=>e.toISOString(),untransform:e=>new Date(e)},{isApplicable:X,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:Ce,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:q,annotation:"set",transform:e=>[...e.values()],untransform:e=>new Set(e)},{isApplicable:Q,annotation:"map",transform:e=>[...e.entries()],untransform:e=>new Map(e)},{isApplicable:e=>Z(e)||Te(e),annotation:"number",transform:e=>Z(e)?"NaN":e>0?"Infinity":"-Infinity",untransform:e=>Number(e)},{isApplicable:Ae,annotation:"number",transform:()=>"-0",untransform:()=>-0},{isApplicable:Ie,annotation:"URL",transform:e=>e.toString(),untransform:e=>new URL(e)},{isApplicable:Re,annotation:e=>["typed-array",e.constructor.name],transform:e=>[...e],untransform:(e,t)=>{let o=Array.isArray(t)?t[1]:"Uint8Array",s=Oe[o];if(!s)throw new Error(`Unknown typed array: ${o}`);return new s(e)}}];function W(e){for(let t of ee)if(t.isApplicable(e)){let o=typeof t.annotation=="function"?t.annotation(e):t.annotation;return{value:t.transform(e),type:o}}}function te(e,t){for(let o of ee){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 re=e=>Se(e)||L(e)||Q(e)||q(e)||X(e);function _(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function oe(e,t=[],o=[]){let s=we(e);if(!s&&!re(e)){let a=W(e);return a?{transformedValue:a.value,annotations:{[t.map(String).map(_).join(".")]:a.type}}:{transformedValue:e}}if(!s&&o.indexOf(e)!==-1)return{transformedValue:null};if(!re(e)){let a=W(e);return a?{transformedValue:a.value,annotations:t.length>0?{[t.map(String).map(_).join(".")]:a.type}:{"":a.type}}:{transformedValue:e}}let u=W(e),c=u?.value??e,i=L(c)?[]:{},h={};if(u){let a=t.length>0?t.map(String).map(_).join("."):"";h[a]=u.type}let C=L(c)?c.map((a,l)=>[l,a]):Object.entries(c);for(let[a,l]of C){let f=String(a);if(f==="__proto__"||f==="constructor"||f==="prototype")throw new Error(`Detected property ${f}. This is a prototype pollution risk, please remove it from your object.`);let r=oe(l,[...t,a],[...o,e]);i[a]=r.transformedValue,r.annotations&&Object.assign(h,r.annotations)}return{transformedValue:i,annotations:Object.keys(h).length>0?h:void 0}}function ke(e){if(e==="")return[];let t=[],o="";for(let s=0;s<e.length;s++){let u=e.charAt(s);if(u==="\\"){let c=e.charAt(s+1);if(c==="\\"){o+="\\",s++;continue}else if(c==="."){o+=".",s++;continue}}if(u==="."){t.push(o),o="";continue}o+=u}return o&&t.push(o),t}function Ne(e,t,o){if(t.length===0)return;let s=e;for(let u=0;u<t.length-1;u++)s=s[t[u]];s[t[t.length-1]]=o}function Fe(e,t){let o=e;for(let s of t)o=o[s];return o}function ne(e){let t=oe(e),o={json:t.transformedValue};return t.annotations&&(o.meta={values:t.annotations}),o}function ae(e){let{json:t,meta:o}=e;if(!o?.values)return t;let s=L(t)?[...t]:{...t},u=Object.entries(o.values).map(([c,i])=>({pathString:c,type:i,path:ke(c)})).sort((c,i)=>i.path.length-c.path.length);for(let{type:c,path:i}of u)if(i.length===0)s=te(s,c);else{let h=Fe(s,i),C=te(h,c);Ne(s,i,C)}return s}var ze=(e,t=false)=>{let{json:o}=ne(e);return JSON.stringify(o,null,t?2:void 0)},Be=e=>{try{let t=JSON.parse(e);return ae({json:t,meta:void 0})}catch{return JSON.parse(e)}};import{StyleSheet as Ve,Text as P,View as j,TouchableOpacity as De,Animated as Le}from"react-native-web";import{jsx as F,jsxs as E}from"react/jsx-runtime";function je({icon:e,iconColor:t,title:o,count:s,subtitle:u,expanded:c,onToggle:i,children:h,style:C,titleStyle:a}){return E(j,{style:[z.container,C],children:[E(De,{onPress:i,activeOpacity:.7,style:z.headerTouchable,children:[E(j,{style:z.header,children:[E(j,{style:z.headerLeft,children:[F(e,{size:14,color:t}),F(P,{style:[z.title,a],children:o}),F(j,{style:[z.badge,{backgroundColor:t+"20"}],children:F(P,{style:[z.badgeText,{color:t}],children:s})})]}),c?F(Y,{size:14,color:n.muted}):F(J,{size:14,color:n.muted})]}),F(P,{style:z.subtitle,children:u})]}),c&&F(Le.View,{style:{opacity:1},children:h})]})}var z=Ve.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:p,fontWeight:"700",letterSpacing:2,opacity:.9},subtitle:{fontSize:9,color:n.secondary,fontFamily:p,paddingHorizontal:4,marginTop:2,opacity:.7},badge:{paddingHorizontal:8,paddingVertical:2,borderRadius:10},badgeText:{fontSize:10,fontFamily:p,fontWeight:"700"}});var ie={position:"absolute",top:0,left:0,right:0,bottom:0};import{StyleSheet as Ee,Text as M,View as B,Animated as We}from"react-native-web";import{jsx as k,jsxs as $}from"react/jsx-runtime";function _e({alertConfig:e,badgeText:t,animatedStyle:o,style:s,indicatorCount:u=3}){let c=e.icon;return $(We.View,{style:[I.container,{borderColor:e.color+"40"},s,o],children:[k(B,{style:[I.glow,{backgroundColor:e.color+"10"}]}),$(B,{style:I.content,children:[k(B,{style:[I.iconWrapper,{backgroundColor:e.color+"15"}],children:k(c,{size:20,color:e.color})}),$(B,{style:I.textContainer,children:[k(M,{style:[I.label,{color:e.color}],children:e.label}),k(M,{style:I.subtitle,children:e.subtitle})]}),k(B,{style:[I.badge,{backgroundColor:e.color+"20"}],children:k(M,{style:[I.badgeText,{color:e.color}],children:t})})]}),k(B,{style:I.indicators,children:[...Array(u)].map((i,h)=>k(B,{style:[I.indicatorDot,{backgroundColor:e.color,opacity:e.pulse?h===0?1:.5-h*.2:.3-h*.1}]},h))})]})}var I=Ee.create({container:{backgroundColor:n.panel,borderRadius:12,borderWidth:1,padding:16,marginBottom:16,position:"relative",overflow:"hidden"},glow:{...ie,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:p,letterSpacing:1.5,textShadowOffset:{width:0,height:0},textShadowRadius:8},subtitle:{fontSize:10,color:n.secondary,fontFamily:p},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:4},badgeText:{fontSize:9,fontWeight:"700",fontFamily:p,letterSpacing:1},indicators:{position:"absolute",top:8,right:8,flexDirection:"row",gap:3},indicatorDot:{width:4,height:4,borderRadius:2}});import{Fragment as Pe}from"react";import{StyleSheet as Me,Text as R,View as m,Animated as le}from"react-native-web";import{jsx as y,jsxs as x}from"react/jsx-runtime";function $e({statsConfig:e,totalCount:t,header:o,bottomStats:s,style:u,hideInactive:c=true}){return x(m,{style:[d.container,u],children:[o&&x(m,{style:d.header,children:[x(m,{style:d.headerLeft,children:[y(R,{style:d.headerTitle,children:o.title}),y(R,{style:d.headerSubtitle,children:o.subtitle})]}),o.healthPercentage!==void 0&&y(m,{style:d.headerRight,children:x(m,{style:d.statusIndicator,children:[y(m,{style:[d.statusDot,{backgroundColor:o.healthColor||n.success}]}),y(R,{style:[d.statusText,{color:o.healthColor||n.success}],children:o.healthStatus||"OPTIMAL"})]})})]}),o?.healthPercentage!==void 0&&x(m,{style:d.healthSection,children:[y(R,{style:d.healthLabel,children:"SYSTEM HEALTH"}),y(m,{style:d.healthBarWrapper,children:y(m,{style:d.healthBarBg,children:y(le.View,{style:[d.healthBarFill,{width:`${o.healthPercentage}%`,backgroundColor:o.healthColor||n.success}]})})}),x(R,{style:[d.healthPercentage,{color:o.healthColor||n.success}],children:[o.healthPercentage,"%"]})]}),y(m,{style:d.statsGrid,children:e.map(i=>{let h=i.value>0;if(c&&!h)return null;let C=i.icon,a=t?i.value/t*100:0;return x(le.View,{style:[d.statCard,{borderColor:i.color+"30"}],children:[x(m,{style:d.cardContent,children:[y(m,{style:[d.iconBadge,{backgroundColor:i.color+"1A",borderColor:i.color+"33"}],children:y(C,{size:12,color:i.color})}),x(m,{style:d.cardInfo,children:[y(R,{style:d.cardLabel,children:i.label}),y(R,{style:d.cardSubtitle,children:i.subtitle})]}),x(m,{style:d.valueBlock,children:[y(R,{style:[d.statNumber,{color:i.color}],children:i.value.toString().padStart(2,"0")}),t?x(R,{style:d.percentText,children:[Math.round(a),"%"]}):null]})]}),i.showBar!==false&&t&&y(m,{style:[d.statBar,{backgroundColor:i.color+"10"}],children:y(m,{style:[d.statBarFill,{width:`${a}%`,backgroundColor:i.color}]})})]},i.key)})}),s&&s.length>0&&y(m,{style:d.bottomBar,children:s.map((i,h)=>x(Pe,{children:[x(m,{style:d.bottomStat,children:[y(R,{style:d.bottomStatLabel,children:i.label}),y(R,{style:[d.bottomStatValue,i.color&&{color:i.color}],children:i.value})]}),h<s.length-1&&y(m,{style:d.bottomDivider})]},i.label))})]})}var d=Me.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:p,letterSpacing:1.5},headerSubtitle:{fontSize:8,color:n.secondary,fontFamily:p,opacity:.7},statusIndicator:{flexDirection:"row",alignItems:"center",gap:4},statusDot:{width:5,height:5,borderRadius:2.5},statusText:{fontSize:9,fontWeight:"600",fontFamily:p,letterSpacing:.5},healthSection:{flexDirection:"row",alignItems:"center",marginBottom:10,gap:8},healthLabel:{fontSize:8,color:n.secondary,fontFamily:p,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:p},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:p,letterSpacing:.5,color:n.primary},cardSubtitle:{fontSize:8,color:n.secondary,fontFamily:p,opacity:.7},statNumber:{fontSize:16,fontWeight:"700",fontFamily:p,minWidth:28},valueBlock:{alignItems:"flex-end"},percentText:{fontSize:9,color:n.secondary,fontFamily:p},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:p,letterSpacing:.5,marginBottom:1},bottomStatValue:{fontSize:11,fontWeight:"700",color:n.primary,fontFamily:p},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 Ge,useCallback as Ue}from"react";import{StyleSheet as He,Text as w,View as N,TouchableOpacity as Je,Animated as Ye}from"react-native-web";import{jsx as b,jsxs as O}from"react/jsx-runtime";function Ke({issues:e,onIssueClick:t,hintText:o="Tap any issue to view details",style:s,expandable:u=true,statusLabels:c={missing:"Not found",wrong_type:"Type error",wrong_value:"Invalid value"}}){let[i,h]=Ge(new Set),C=Ue(r=>{u&&h(S=>{let v=new Set(S);return v.has(r)?v.delete(r):v.add(r),v})},[u]),a=r=>r==="missing"?n.warning:n.info,l=r=>r==="missing"?U:H,f=r=>{switch(r.status){case"missing":return`\u2022 ${c.missing}`;case"wrong_type":return`\u2022 ${c.wrong_type}${r.expectedType?`: Expected ${r.expectedType}`:""}`;case"wrong_value":return`\u2022 ${c.wrong_value}${r.value?`: ${String(r.value).substring(0,20)}`:""}`;default:return""}};return e.length===0?null:O(N,{style:[g.container,s],children:[e.map((r,S)=>{let v=a(r.status),T=l(r.status),A=i.has(r.key),V=A?Y:J;return O(N,{children:[O(Je,{onPress:()=>{u&&C(r.key),t?.(r)},style:g.issueRow,activeOpacity:.7,children:[b(T,{size:14,color:v}),O(N,{style:g.issueContent,children:[b(w,{style:[g.issueKey,{color:n.primary}],children:r.key}),b(w,{style:g.issueDesc,children:f(r)})]}),u&&b(V,{size:12,color:n.muted})]}),u&&A&&O(Ye.View,{style:g.issueDetails,children:[O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Status:"}),O(w,{style:[g.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"&&O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Current:"}),b(w,{style:[g.detailValue,{color:n.warning}],children:`"${String(r.value)}"`})]}),r.expectedType&&r.status==="wrong_type"&&O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Expected:"}),b(w,{style:[g.detailValue,{color:n.success}],children:r.expectedType})]}),r.expectedValue&&r.status==="wrong_value"&&O(N,{style:g.detailRow,children:[b(w,{style:g.detailLabel,children:"Expected:"}),b(w,{style:[g.detailValue,{color:n.success}],children:`"${r.expectedValue}"`})]}),r.description&&b(N,{style:g.descSection,children:b(w,{style:g.descText,children:r.description})}),r.fixSuggestion&&O(N,{style:g.fixSection,children:[b(w,{style:g.fixLabel,children:"HOW TO FIX"}),b(w,{style:g.fixText,children:r.fixSuggestion})]})]})]},`${r.key}-${S}`)}),o&&b(w,{style:g.hint,children:o})]})}var g=He.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:p},issueDesc:{fontSize:10,color:n.secondary,fontFamily:p,flex:1},hint:{fontSize:9,color:n.muted,fontFamily:p,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:p,fontWeight:"600",width:70},detailValue:{fontSize:11,color:n.primary,fontFamily:p,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:p,fontWeight:"700",marginBottom:6,letterSpacing:.5},fixText:{fontSize:11,color:n.primary,fontFamily:p,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:p,marginTop:4,lineHeight:14}});import{useMemo as se,useEffect as Xe,useRef as ce}from"react";import{Animated as D,Easing as de}from"react-native-web";var ue={OPTIMAL:{icon:he,color:n.success,label:"CONFIG OK",subtitle:"All requirements met",pulse:false},WARNING:{icon:H,color:n.warning,label:"CONFIG WARNING",subtitle:"Check values and types",pulse:false},ERROR:{icon:pe,color:n.error,label:"CONFIG ERROR",subtitle:"Missing required data",pulse:false},CRITICAL:{icon:U,color:n.critical,label:"CONFIG FAILURE",subtitle:"Multiple critical issues",pulse:false},LOADING:{icon:fe,color:n.info,label:"LOADING",subtitle:"Reading configuration...",pulse:true},EMPTY:{icon:ge,color:n.muted,label:"NO DATA",subtitle:"No configuration found",pulse:false}};function qe(e,t){let o=se(()=>({...ue,...t}),[t]),s=se(()=>e.totalCount===0?"EMPTY":e.missingCount>2||e.wrongTypeCount>2?"CRITICAL":e.missingCount>0?"ERROR":e.wrongValueCount>0||e.wrongTypeCount>0?"WARNING":"OPTIMAL",[e]),u=o[s],c=ce(new D.Value(1)).current,i=ce(new D.Value(1)).current;return Xe(()=>{c.setValue(0),i.setValue(.95),D.parallel([D.timing(c,{toValue:1,duration:300,useNativeDriver:true}),D.timing(i,{toValue:1,duration:300,easing:de.out(de.ease),useNativeDriver:true})]).start()},[s,c,i]),{alertState:s,alertConfig:u,alertAnimatedStyle:{transform:[{scale:i}],opacity:c},alertOpacity:c,alertScale:i}}export{me as a,ne as b,ae as c,ze as d,Be as e,je as f,ie as g,_e as h,$e as i,Ke as j,ue as k,qe as l};
@@ -1 +0,0 @@
1
- "use client";import{a as N}from"./chunk-WY7D4WBZ.mjs";import{f as m}from"./chunk-CE5U3CSQ.mjs";import{J as I,N as P,a as T,b}from"./chunk-QPIZURPZ.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};
@@ -1,15 +0,0 @@
1
- "use client";import{e as te}from"./chunk-46TKOKMV.mjs";import{c as W}from"./chunk-HGA3GJA6.mjs";import{A as Y,G as $,H as r,W as ae,p as C,q as m,s as I,u as A,x as R,z as L}from"./chunk-3UTMGIUG.mjs";import{useCallback as ie,useEffect as se,useRef as j,useState as q}from"react";var T=new Map;function ne(e){try{return JSON.parse(e)}catch{return}}function re(e,t,a={}){let[n,l]=q(()=>T.has(e)?T.get(e):t),[y,g]=q(()=>T.has(e)),c=j(e);c.current=e;let d=j(a);d.current=a,se(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??W,p=d.current.parse??ne;return S.getItem(e).then(h=>{if(!o){if(h!=null){let u;try{u=p(h)}catch{}u!==void 0&&(T.set(e,u),l(u))}g(true)}}).catch(()=>{o||g(true)}),()=>{o=true}},[e]);let v=ie(o=>{l(S=>{let p=typeof o=="function"?o(S):o;T.set(c.current,p);let h=d.current.storage??W,u=d.current.serialize??JSON.stringify;try{h.setItem(c.current,u(p)).catch(()=>{})}catch{}return p})},[]);return[n,v,y]}function le(){T.clear()}import{useCallback as P,useEffect as z,useMemo as oe,useState as O}from"react";function ce(e,t={}){let[a,n]=O(()=>e.getAll()),[l,y]=O(()=>t.initialFilter??{}),[g,c]=O(()=>e.getEnabled());z(()=>e.subscribe(n),[e]);let d=t.filterItems,v=oe(()=>d?d(a,l):a,[a,l,d]),o=P(()=>{e.clear()},[e]),S=P(()=>{let h=!g;e.setEnabled(h),c(h)},[e,g]),p=P(h=>e.getById(h),[e]);return{items:a,filteredItems:v,filter:l,setFilter:y,isEnabled:g,toggleCapture:S,clear:o,getById:p}}function de(e,t){let[a,n]=O(e);return z(()=>t(n),[t]),a}import{useCallback as ue,useEffect as fe,useState as K}from"react";function ge(e,t={}){let{enabled:a=true,maxEvents:n=500,select:l}=t,[y,g]=K([]),[c,d]=K(a);fe(()=>{if(!a){d(false);return}let o=null,S=null,p=e.subscribeToEvents(h=>{S=h,o==null&&(o=requestAnimationFrame(()=>{if(o=null,!S)return;let u=S;S=null,l&&(u=l(u)),u.length>n&&(u=u.slice(0,n)),g(u)}))});return d(true),()=>{p(),o!=null&&cancelAnimationFrame(o)}},[e,a,n,l]);let v=ue(()=>{e.clearEvents()},[e]);return{events:y,clearEvents:v,isActive:c}}import{useState as b,useEffect as w,useCallback as he}from"react";async function U(){let[e,t,a]=await Promise.all([m.isScreenReaderEnabled(),m.isReduceMotionEnabled(),m.isReduceTransparencyEnabled()]),n={isScreenReaderEnabled:e,isReduceMotionEnabled:t,isReduceTransparencyEnabled:a};if(r.OS==="ios"){let[l,y,g,c,d]=await Promise.all([m.isBoldTextEnabled?.()??Promise.resolve(false),m.isGrayscaleEnabled?.()??Promise.resolve(false),m.isInvertColorsEnabled?.()??Promise.resolve(false),m.isDarkerSystemColorsEnabled?.()??Promise.resolve(false),m.prefersCrossFadeTransitions?.()??Promise.resolve(false)]);n.isBoldTextEnabled=l,n.isGrayscaleEnabled=y,n.isInvertColorsEnabled=g,n.isDarkerSystemColorsEnabled=c,n.prefersCrossFadeTransitions=d}if(r.OS==="android"){let l=await m.isHighTextContrastEnabled?.()??false;n.isHighTextContrastEnabled=l}return n}function k(){let e=r.constants,t={os:r.OS,version:r.Version,reactNativeVersion:e.reactNativeVersion,isTesting:r.isTesting??false,isDisableAnimations:e.isDisableAnimations??false};return r.OS==="ios"?{...t,osVersion:e.osVersion,systemName:e.systemName,interfaceIdiom:e.interfaceIdiom,isPad:r.isPad,isTV:r.isTV,isVision:r.isVision??false,isMacCatalyst:r.isMacCatalyst??false,forceTouchAvailable:e.forceTouchAvailable}:r.OS==="android"?{...t,apiLevel:e.Version,release:e.Release,brand:e.Brand,manufacturer:e.Manufacturer,model:e.Model,fingerprint:e.Fingerprint,serial:e.Serial,uiMode:e.uiMode}:t}function M(){let e=R.get("window"),t=R.get("screen"),a={window:{width:e.width,height:e.height,scale:e.scale,fontScale:e.fontScale},screen:{width:t.width,height:t.height,scale:t.scale,fontScale:t.fontScale},pixelRatio:$.get(),fontScale:$.getFontScale(),isLandscape:e.width>e.height,isPortrait:e.height>e.width};if(r.OS==="ios")try{let n=C.DeviceInfo?.getConstants?.();a.isIPhoneNotched=n?.isIPhoneX_deprecated??false}catch{a.isIPhoneNotched=false}if(r.OS==="android")try{let n=C.DeviceInfo?.getConstants?.();a.isEdgeToEdge=n?.isEdgeToEdge??false,a.densityDpi=Math.round(e.scale*160)}catch{}return a}async function X(){return new Promise(e=>{let t=false;r.OS==="ios"?C.StatusBarManager?.getHeight?.(a=>{t||(t=true,e(a?.height??null))})??e(null):r.OS==="android"?(t=true,e(ae.currentHeight??null)):(t=true,e(null)),setTimeout(()=>{t||(t=true,e(null))},100)})}function N(){let e={isRTL:L.isRTL,doLeftAndRightSwapInRTL:L.doLeftAndRightSwapInRTL};return r.OS==="android"&&(e.localeIdentifier=L.localeIdentifier),e}function V(){if(r.OS==="ios")try{return{userDefaults:C.SettingsManager?.getConstants?.()?.settings??{}}}catch{return{}}return{}}function B(){let e={};if(r.OS==="android"){let t=r.constants;e.serial=t.Serial,e.fingerprint=t.Fingerprint;try{let a=C.PlatformConstants;a?.getAndroidID&&(e.androidId=a.getAndroidID())}catch{}}return e}function me(e){let t=[e.platform.os,e.platform.version,e.display.window.width,e.display.window.height,e.display.pixelRatio,e.platform.interfaceIdiom??"",e.platform.forceTouchAvailable??false,e.display.isIPhoneNotched??false,e.platform.model??"",e.platform.brand??"",e.platform.manufacturer??"",e.platform.uiMode??""].join("|"),a=0;for(let n=0;n<t.length;n++){let l=t.charCodeAt(n);a=(a<<5)-a+l,a=a&a}return Math.abs(a).toString(16).padStart(8,"0")}function Se(){let[e,t]=b(true),[a,n]=b(k()),[l,y]=b(M()),[g,c]=b({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false}),[d,v]=b(()=>{let f=I.getColorScheme()??null;return{colorScheme:f,prefersDarkMode:f==="dark"}}),[o,S]=b(N()),[p,h]=b({height:null,isVisible:true}),[u,F]=b({isVisible:false,height:0,animationDuration:0}),[J,_]=b({currentState:A.currentState,isActive:A.currentState==="active"}),[x,Q]=b(B()),[H,Z]=b(V()),[G,ee]=b(Date.now()),D=he(async()=>{t(true);let[f,i]=await Promise.all([U(),X()]);n(k()),y(M()),c(f);let s=I.getColorScheme()??null;v({colorScheme:s,prefersDarkMode:s==="dark"}),S(N()),h(E=>({...E,height:i})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let f=R.addEventListener("change",({window:i,screen:s})=>{y(E=>({...E,window:{width:i.width,height:i.height,scale:i.scale,fontScale:i.fontScale},screen:{width:s.width,height:s.height,scale:s.scale,fontScale:s.fontScale},isLandscape:i.width>i.height,isPortrait:i.height>i.width}))});return()=>f.remove()},[]),w(()=>{let f=I.addChangeListener(({colorScheme:i})=>{let s=i??null;v({colorScheme:s,prefersDarkMode:s==="dark"})});return()=>f.remove()},[]),w(()=>{let f=Y.addListener(r.OS==="ios"?"keyboardWillShow":"keyboardDidShow",s=>{F({isVisible:true,height:s.endCoordinates.height,animationDuration:s.duration??0})}),i=Y.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",s=>{F({isVisible:false,height:0,animationDuration:s.duration??0})});return()=>{f.remove(),i.remove()}},[]),w(()=>{let f=te(i=>{_({currentState:i,isActive:i==="active"})});return()=>f.remove()},[]),w(()=>{let f=[m.addEventListener("screenReaderChanged",i=>{c(s=>({...s,isScreenReaderEnabled:i}))}),m.addEventListener("reduceMotionChanged",i=>{c(s=>({...s,isReduceMotionEnabled:i}))}),m.addEventListener("reduceTransparencyChanged",i=>{c(s=>({...s,isReduceTransparencyEnabled:i}))})];if(r.OS==="ios"){let i=(s,E)=>m.addEventListener(s,E);f.push(i("boldTextChanged",s=>{c(E=>({...E,isBoldTextEnabled:s}))}),i("grayscaleChanged",s=>{c(E=>({...E,isGrayscaleEnabled:s}))}),i("invertColorsChanged",s=>{c(E=>({...E,isInvertColorsEnabled:s}))}))}return()=>{f.forEach(i=>i.remove())}},[]),{platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e,refresh:D,generateFingerprint:()=>me({platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e})}}async function pe(){let[e,t]=await Promise.all([U(),X()]),a=I.getColorScheme()??null;return{platform:k(),display:M(),accessibility:e,appearance:{colorScheme:a,prefersDarkMode:a==="dark"},locale:N(),statusBar:{height:t,isVisible:true},keyboard:{isVisible:false,height:0,animationDuration:0},appState:{currentState:A.currentState,isActive:A.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function be(e){console.log(`
2
- ========================================`),console.log(" DEVICE INFO REPORT"),console.log(`========================================
3
- `),console.log("--- PLATFORM ---"),console.log(JSON.stringify(e.platform,null,2)),console.log(`
4
- --- DISPLAY ---`),console.log(JSON.stringify(e.display,null,2)),console.log(`
5
- --- ACCESSIBILITY ---`),console.log(JSON.stringify(e.accessibility,null,2)),console.log(`
6
- --- APPEARANCE ---`),console.log(JSON.stringify(e.appearance,null,2)),console.log(`
7
- --- LOCALE ---`),console.log(JSON.stringify(e.locale,null,2)),console.log(`
8
- --- STATUS BAR ---`),console.log(JSON.stringify(e.statusBar,null,2)),console.log(`
9
- --- KEYBOARD ---`),console.log(JSON.stringify(e.keyboard,null,2)),console.log(`
10
- --- APP STATE ---`),console.log(JSON.stringify(e.appState,null,2)),console.log(`
11
- --- IDENTIFIERS ---`),console.log(JSON.stringify(e.identifiers,null,2)),console.log(`
12
- --- SETTINGS ---`);let t=Object.keys(e.settings.userDefaults??{});console.log(`userDefaults: ${t.length} keys`),t.length>0&&t.length<=20&&console.log(JSON.stringify(e.settings,null,2)),console.log(`
13
- --- METADATA ---`),console.log(`timestamp: ${e.timestamp}`),console.log(`isLoading: ${e.isLoading}`),console.log(`
14
- ========================================
15
- `)}export{re as a,le as b,ce as c,de as d,ge as e,Se as f,pe as g,be as h};
@@ -1,15 +0,0 @@
1
- "use client";import{c as W}from"./chunk-GBUZCZE4.mjs";import{A as Y,G as $,H as r,W as te,p as C,q as m,s as A,u as I,x as R,z as L}from"./chunk-QPIZURPZ.mjs";import{useCallback as ae,useEffect as ne,useRef as j,useState as q}from"react";var T=new Map;function se(e){try{return JSON.parse(e)}catch{return}}function ie(e,t,a={}){let[i,l]=q(()=>T.has(e)?T.get(e):t),[y,g]=q(()=>T.has(e)),c=j(e);c.current=e;let d=j(a);d.current=a,ne(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??W,p=d.current.parse??se;return S.getItem(e).then(h=>{if(!o){if(h!=null){let u;try{u=p(h)}catch{}u!==void 0&&(T.set(e,u),l(u))}g(true)}}).catch(()=>{o||g(true)}),()=>{o=true}},[e]);let v=ae(o=>{l(S=>{let p=typeof o=="function"?o(S):o;T.set(c.current,p);let h=d.current.storage??W,u=d.current.serialize??JSON.stringify;try{h.setItem(c.current,u(p)).catch(()=>{})}catch{}return p})},[]);return[i,v,y]}function re(){T.clear()}import{useCallback as P,useEffect as z,useMemo as le,useState as O}from"react";function oe(e,t={}){let[a,i]=O(()=>e.getAll()),[l,y]=O(()=>t.initialFilter??{}),[g,c]=O(()=>e.getEnabled());z(()=>e.subscribe(i),[e]);let d=t.filterItems,v=le(()=>d?d(a,l):a,[a,l,d]),o=P(()=>{e.clear()},[e]),S=P(()=>{let h=!g;e.setEnabled(h),c(h)},[e,g]),p=P(h=>e.getById(h),[e]);return{items:a,filteredItems:v,filter:l,setFilter:y,isEnabled:g,toggleCapture:S,clear:o,getById:p}}function ce(e,t){let[a,i]=O(e);return z(()=>t(i),[t]),a}import{useCallback as de,useEffect as ue,useState as K}from"react";function fe(e,t={}){let{enabled:a=true,maxEvents:i=500,select:l}=t,[y,g]=K([]),[c,d]=K(a);ue(()=>{if(!a){d(false);return}let o=null,S=null,p=e.subscribeToEvents(h=>{S=h,o==null&&(o=requestAnimationFrame(()=>{if(o=null,!S)return;let u=S;S=null,l&&(u=l(u)),u.length>i&&(u=u.slice(0,i)),g(u)}))});return d(true),()=>{p(),o!=null&&cancelAnimationFrame(o)}},[e,a,i,l]);let v=de(()=>{e.clearEvents()},[e]);return{events:y,clearEvents:v,isActive:c}}import{useState as b,useEffect as w,useCallback as ge}from"react";async function U(){let[e,t,a]=await Promise.all([m.isScreenReaderEnabled(),m.isReduceMotionEnabled(),m.isReduceTransparencyEnabled()]),i={isScreenReaderEnabled:e,isReduceMotionEnabled:t,isReduceTransparencyEnabled:a};if(r.OS==="ios"){let[l,y,g,c,d]=await Promise.all([m.isBoldTextEnabled?.()??Promise.resolve(false),m.isGrayscaleEnabled?.()??Promise.resolve(false),m.isInvertColorsEnabled?.()??Promise.resolve(false),m.isDarkerSystemColorsEnabled?.()??Promise.resolve(false),m.prefersCrossFadeTransitions?.()??Promise.resolve(false)]);i.isBoldTextEnabled=l,i.isGrayscaleEnabled=y,i.isInvertColorsEnabled=g,i.isDarkerSystemColorsEnabled=c,i.prefersCrossFadeTransitions=d}if(r.OS==="android"){let l=await m.isHighTextContrastEnabled?.()??false;i.isHighTextContrastEnabled=l}return i}function k(){let e=r.constants,t={os:r.OS,version:r.Version,reactNativeVersion:e.reactNativeVersion,isTesting:r.isTesting??false,isDisableAnimations:e.isDisableAnimations??false};return r.OS==="ios"?{...t,osVersion:e.osVersion,systemName:e.systemName,interfaceIdiom:e.interfaceIdiom,isPad:r.isPad,isTV:r.isTV,isVision:r.isVision??false,isMacCatalyst:r.isMacCatalyst??false,forceTouchAvailable:e.forceTouchAvailable}:r.OS==="android"?{...t,apiLevel:e.Version,release:e.Release,brand:e.Brand,manufacturer:e.Manufacturer,model:e.Model,fingerprint:e.Fingerprint,serial:e.Serial,uiMode:e.uiMode}:t}function M(){let e=R.get("window"),t=R.get("screen"),a={window:{width:e.width,height:e.height,scale:e.scale,fontScale:e.fontScale},screen:{width:t.width,height:t.height,scale:t.scale,fontScale:t.fontScale},pixelRatio:$.get(),fontScale:$.getFontScale(),isLandscape:e.width>e.height,isPortrait:e.height>e.width};if(r.OS==="ios")try{let i=C.DeviceInfo?.getConstants?.();a.isIPhoneNotched=i?.isIPhoneX_deprecated??false}catch{a.isIPhoneNotched=false}if(r.OS==="android")try{let i=C.DeviceInfo?.getConstants?.();a.isEdgeToEdge=i?.isEdgeToEdge??false,a.densityDpi=Math.round(e.scale*160)}catch{}return a}async function X(){return new Promise(e=>{let t=false;r.OS==="ios"?C.StatusBarManager?.getHeight?.(a=>{t||(t=true,e(a?.height??null))})??e(null):r.OS==="android"?(t=true,e(te.currentHeight??null)):(t=true,e(null)),setTimeout(()=>{t||(t=true,e(null))},100)})}function N(){let e={isRTL:L.isRTL,doLeftAndRightSwapInRTL:L.doLeftAndRightSwapInRTL};return r.OS==="android"&&(e.localeIdentifier=L.localeIdentifier),e}function V(){if(r.OS==="ios")try{return{userDefaults:C.SettingsManager?.getConstants?.()?.settings??{}}}catch{return{}}return{}}function B(){let e={};if(r.OS==="android"){let t=r.constants;e.serial=t.Serial,e.fingerprint=t.Fingerprint;try{let a=C.PlatformConstants;a?.getAndroidID&&(e.androidId=a.getAndroidID())}catch{}}return e}function he(e){let t=[e.platform.os,e.platform.version,e.display.window.width,e.display.window.height,e.display.pixelRatio,e.platform.interfaceIdiom??"",e.platform.forceTouchAvailable??false,e.display.isIPhoneNotched??false,e.platform.model??"",e.platform.brand??"",e.platform.manufacturer??"",e.platform.uiMode??""].join("|"),a=0;for(let i=0;i<t.length;i++){let l=t.charCodeAt(i);a=(a<<5)-a+l,a=a&a}return Math.abs(a).toString(16).padStart(8,"0")}function me(){let[e,t]=b(true),[a,i]=b(k()),[l,y]=b(M()),[g,c]=b({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false}),[d,v]=b(()=>{let f=A.getColorScheme()??null;return{colorScheme:f,prefersDarkMode:f==="dark"}}),[o,S]=b(N()),[p,h]=b({height:null,isVisible:true}),[u,F]=b({isVisible:false,height:0,animationDuration:0}),[J,_]=b({currentState:I.currentState,isActive:I.currentState==="active"}),[x,Q]=b(B()),[H,Z]=b(V()),[G,ee]=b(Date.now()),D=ge(async()=>{t(true);let[f,n]=await Promise.all([U(),X()]);i(k()),y(M()),c(f);let s=A.getColorScheme()??null;v({colorScheme:s,prefersDarkMode:s==="dark"}),S(N()),h(E=>({...E,height:n})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let f=R.addEventListener("change",({window:n,screen:s})=>{y(E=>({...E,window:{width:n.width,height:n.height,scale:n.scale,fontScale:n.fontScale},screen:{width:s.width,height:s.height,scale:s.scale,fontScale:s.fontScale},isLandscape:n.width>n.height,isPortrait:n.height>n.width}))});return()=>f.remove()},[]),w(()=>{let f=A.addChangeListener(({colorScheme:n})=>{let s=n??null;v({colorScheme:s,prefersDarkMode:s==="dark"})});return()=>f.remove()},[]),w(()=>{let f=Y.addListener(r.OS==="ios"?"keyboardWillShow":"keyboardDidShow",s=>{F({isVisible:true,height:s.endCoordinates.height,animationDuration:s.duration??0})}),n=Y.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",s=>{F({isVisible:false,height:0,animationDuration:s.duration??0})});return()=>{f.remove(),n.remove()}},[]),w(()=>{let f=I.addEventListener("change",n=>{_({currentState:n,isActive:n==="active"})});return()=>f.remove()},[]),w(()=>{let f=[m.addEventListener("screenReaderChanged",n=>{c(s=>({...s,isScreenReaderEnabled:n}))}),m.addEventListener("reduceMotionChanged",n=>{c(s=>({...s,isReduceMotionEnabled:n}))}),m.addEventListener("reduceTransparencyChanged",n=>{c(s=>({...s,isReduceTransparencyEnabled:n}))})];if(r.OS==="ios"){let n=(s,E)=>m.addEventListener(s,E);f.push(n("boldTextChanged",s=>{c(E=>({...E,isBoldTextEnabled:s}))}),n("grayscaleChanged",s=>{c(E=>({...E,isGrayscaleEnabled:s}))}),n("invertColorsChanged",s=>{c(E=>({...E,isInvertColorsEnabled:s}))}))}return()=>{f.forEach(n=>n.remove())}},[]),{platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e,refresh:D,generateFingerprint:()=>he({platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e})}}async function Se(){let[e,t]=await Promise.all([U(),X()]),a=A.getColorScheme()??null;return{platform:k(),display:M(),accessibility:e,appearance:{colorScheme:a,prefersDarkMode:a==="dark"},locale:N(),statusBar:{height:t,isVisible:true},keyboard:{isVisible:false,height:0,animationDuration:0},appState:{currentState:I.currentState,isActive:I.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function pe(e){console.log(`
2
- ========================================`),console.log(" DEVICE INFO REPORT"),console.log(`========================================
3
- `),console.log("--- PLATFORM ---"),console.log(JSON.stringify(e.platform,null,2)),console.log(`
4
- --- DISPLAY ---`),console.log(JSON.stringify(e.display,null,2)),console.log(`
5
- --- ACCESSIBILITY ---`),console.log(JSON.stringify(e.accessibility,null,2)),console.log(`
6
- --- APPEARANCE ---`),console.log(JSON.stringify(e.appearance,null,2)),console.log(`
7
- --- LOCALE ---`),console.log(JSON.stringify(e.locale,null,2)),console.log(`
8
- --- STATUS BAR ---`),console.log(JSON.stringify(e.statusBar,null,2)),console.log(`
9
- --- KEYBOARD ---`),console.log(JSON.stringify(e.keyboard,null,2)),console.log(`
10
- --- APP STATE ---`),console.log(JSON.stringify(e.appState,null,2)),console.log(`
11
- --- IDENTIFIERS ---`),console.log(JSON.stringify(e.identifiers,null,2)),console.log(`
12
- --- SETTINGS ---`);let t=Object.keys(e.settings.userDefaults??{});console.log(`userDefaults: ${t.length} keys`),t.length>0&&t.length<=20&&console.log(JSON.stringify(e.settings,null,2)),console.log(`
13
- --- METADATA ---`),console.log(`timestamp: ${e.timestamp}`),console.log(`isLoading: ${e.isLoading}`),console.log(`
14
- ========================================
15
- `)}export{ie as a,re as b,oe as c,ce as d,fe as e,me as f,Se as g,pe as h};
@@ -1 +0,0 @@
1
- "use client";import{a as t}from"./chunk-GF5C5DVX.mjs";import{Wb as O,Yb as B,ld as f}from"./chunk-JG4QSK5B.mjs";import{J as H,a as o,b as i,d as A}from"./chunk-QPIZURPZ.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function j({statusDotColor:s,statusLabel:x,statusSublabel:g,primaryText:w,secondaryText:l,secondaryAccessory:y,expandedContent:u,isExpanded:a,badgeText:d,badgeColor:C,customBadge:m,showChevron:T,bottomRightText:c,isSelected:D,onPress:h,disabled:I,expandedGlowColor:b,testID:S,statusTestID:v,statusSublabelTestID:R,primaryTestID:W,secondaryTestID:L,accessibilityLabel:z,trailingAction:p}){return r(o,{style:[e.rowWrapper,a&&e.rowWrapperExpanded],children:n(o,{style:[e.row,D&&e.selectedRow,a&&[e.expandedRowActive,{borderColor:b||t.color.accent,borderBottomColor:b||t.color.accent,shadowColor:b||t.color.accent}]],children:[n(o,{style:e.headerRow,children:[r(A,{style:e.headerPress,onPress:h,activeOpacity:.8,disabled:I||!h,testID:S,accessibilityLabel:z,accessibilityRole:h?"button":void 0,children:n(o,{style:e.rowContent,children:[n(o,{style:e.statusSection,children:[r(o,{style:[e.statusDot,{backgroundColor:s}]}),n(o,{style:e.statusInfo,children:[r(i,{style:[e.statusLabel,{color:s}],numberOfLines:1,testID:v,children:x}),g?r(i,{style:e.observerText,numberOfLines:1,testID:R,children:g}):null]})]}),n(o,{style:e.querySection,children:[r(i,{style:e.queryHash,numberOfLines:a?void 0:2,testID:W,children:w}),!a&&(l||y)?n(o,{style:e.secondaryRow,children:[l?r(i,{style:e.secondaryText,numberOfLines:1,testID:L,children:l}):null,y]}):null]}),n(o,{style:e.rightSection,children:[(m||d!==void 0||!a&&c)&&n(o,{style:e.badgeContainer,children:[m||(d!==void 0?r(i,{style:[e.statusBadge,{color:C||s}],children:d}):null),!a&&c?r(i,{style:e.bottomRightText,numberOfLines:1,children:c}):null]}),T&&r(o,{style:e.chevronContainer,children:a?r(O,{size:14,color:t.color.textTertiary}):r(B,{size:14,color:t.color.textTertiary})})]})]})}),p?r(o,{style:e.trailingAction,children:p}):null]}),a&&u&&r(o,{style:e.expandedContent,children:u})]})})}var e=H.create({rowWrapper:{position:"relative",marginHorizontal:8,marginVertical:3},rowWrapperExpanded:{marginVertical:12},row:{backgroundColor:"rgba(12, 12, 12, 0.9)",borderRadius:8,borderWidth:1,borderColor:t.color.border,borderBottomWidth:1,borderBottomColor:t.color.separator,padding:12,paddingHorizontal:12,transform:[{scale:1}]},selectedRow:{backgroundColor:t.color.accentSoft,borderColor:t.color.accentBorderStrong,transform:[{scale:1.01}],shadowColor:t.color.accent,shadowOffset:{width:0,height:0},shadowOpacity:.1,shadowRadius:8,elevation:2},expandedRowActive:{transform:[{scale:1.02}],borderWidth:2,paddingBottom:16,shadowOffset:{width:0,height:0},shadowOpacity:.8,shadowRadius:20,elevation:10},headerRow:{flexDirection:"row",alignItems:"center"},headerPress:{flex:1,minWidth:0},trailingAction:{marginLeft:8,justifyContent:"center"},rowContent:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},statusSection:{flexDirection:"row",alignItems:"center",gap:8,width:90,minWidth:90},statusDot:{width:8,height:8,borderRadius:4},statusInfo:{flex:1,maxWidth:70},statusLabel:{fontSize:11,fontWeight:"600",lineHeight:14},observerText:{fontSize:10,color:t.color.textTertiary,marginTop:1},querySection:{flex:2,paddingHorizontal:12},queryHash:{fontFamily:f,fontSize:12,color:t.color.text,lineHeight:16},secondaryRow:{flexDirection:"row",alignItems:"center",gap:6,marginTop:1},secondaryText:{fontSize:10,color:t.color.textTertiary,marginTop:1},rightSection:{flexDirection:"row",alignItems:"center",gap:8},badgeContainer:{flexDirection:"column",alignItems:"flex-end",gap:2},statusBadge:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chevronContainer:{padding:2},expandedContent:{marginTop:8,paddingTop:8,borderTopWidth:1,borderTopColor:t.color.separator,marginLeft:24},bottomRightText:{fontSize:9,color:t.color.textTertiary,fontFamily:f}});export{j as a};
@@ -1,15 +0,0 @@
1
- "use client";import{e as te}from"./chunk-46TKOKMV.mjs";import{c as W}from"./chunk-DEJNSL6V.mjs";import{A as Y,G as $,H as r,W as ae,p as C,q as m,s as I,u as A,x as R,z as L}from"./chunk-3UTMGIUG.mjs";import{useCallback as ne,useEffect as se,useRef as j,useState as q}from"react";var T=new Map;function ie(e){try{return JSON.parse(e)}catch{return}}function re(e,t,a={}){let[i,l]=q(()=>T.has(e)?T.get(e):t),[E,g]=q(()=>T.has(e)),c=j(e);c.current=e;let d=j(a);d.current=a,se(()=>{if(T.has(e)){l(T.get(e)),g(true);return}let o=false,S=d.current.storage??W,p=d.current.parse??ie;return S.getItem(e).then(h=>{if(!o){if(h!=null){let u;try{u=p(h)}catch{}u!==void 0&&(T.set(e,u),l(u))}g(true)}}).catch(()=>{o||g(true)}),()=>{o=true}},[e]);let v=ne(o=>{l(S=>{let p=typeof o=="function"?o(S):o;T.set(c.current,p);let h=d.current.storage??W,u=d.current.serialize??JSON.stringify;try{h.setItem(c.current,u(p)).catch(()=>{})}catch{}return p})},[]);return[i,v,E]}function le(){T.clear()}import{useCallback as P,useEffect as z,useMemo as oe,useState as O}from"react";function ce(e,t={}){let[a,i]=O(()=>e.getAll()),[l,E]=O(()=>t.initialFilter??{}),[g,c]=O(()=>e.getEnabled());z(()=>e.subscribe(i),[e]);let d=t.filterItems,v=oe(()=>d?d(a,l):a,[a,l,d]),o=P(()=>{e.clear()},[e]),S=P(()=>{let h=!g;e.setEnabled(h),c(h)},[e,g]),p=P(h=>e.getById(h),[e]);return{items:a,filteredItems:v,filter:l,setFilter:E,isEnabled:g,toggleCapture:S,clear:o,getById:p}}function de(e,t){let[a,i]=O(e);return z(()=>t(i),[t]),a}import{useCallback as ue,useEffect as fe,useState as K}from"react";function ge(e,t={}){let{enabled:a=true,maxEvents:i=500,select:l}=t,[E,g]=K([]),[c,d]=K(a);fe(()=>{if(!a){d(false);return}let o=null,S=null,p=e.subscribeToEvents(h=>{S=h,o==null&&(o=requestAnimationFrame(()=>{if(o=null,!S)return;let u=S;S=null,l&&(u=l(u)),u.length>i&&(u=u.slice(0,i)),g(u)}))});return d(true),()=>{p(),o!=null&&cancelAnimationFrame(o)}},[e,a,i,l]);let v=ue(()=>{e.clearEvents()},[e]);return{events:E,clearEvents:v,isActive:c}}import{useState as b,useEffect as w,useCallback as he}from"react";async function U(){let[e,t,a]=await Promise.all([m.isScreenReaderEnabled(),m.isReduceMotionEnabled(),m.isReduceTransparencyEnabled()]),i={isScreenReaderEnabled:e,isReduceMotionEnabled:t,isReduceTransparencyEnabled:a};if(r.OS==="ios"){let[l,E,g,c,d]=await Promise.all([m.isBoldTextEnabled?.()??Promise.resolve(false),m.isGrayscaleEnabled?.()??Promise.resolve(false),m.isInvertColorsEnabled?.()??Promise.resolve(false),m.isDarkerSystemColorsEnabled?.()??Promise.resolve(false),m.prefersCrossFadeTransitions?.()??Promise.resolve(false)]);i.isBoldTextEnabled=l,i.isGrayscaleEnabled=E,i.isInvertColorsEnabled=g,i.isDarkerSystemColorsEnabled=c,i.prefersCrossFadeTransitions=d}if(r.OS==="android"){let l=await m.isHighTextContrastEnabled?.()??false;i.isHighTextContrastEnabled=l}return i}function k(){let e=r.constants,t={os:r.OS,version:r.Version,reactNativeVersion:e.reactNativeVersion,isTesting:r.isTesting??false,isDisableAnimations:e.isDisableAnimations??false};return r.OS==="ios"?{...t,osVersion:e.osVersion,systemName:e.systemName,interfaceIdiom:e.interfaceIdiom,isPad:r.isPad,isTV:r.isTV,isVision:r.isVision??false,isMacCatalyst:r.isMacCatalyst??false,forceTouchAvailable:e.forceTouchAvailable}:r.OS==="android"?{...t,apiLevel:e.Version,release:e.Release,brand:e.Brand,manufacturer:e.Manufacturer,model:e.Model,fingerprint:e.Fingerprint,serial:e.Serial,uiMode:e.uiMode}:t}function M(){let e=R.get("window"),t=R.get("screen"),a={window:{width:e.width,height:e.height,scale:e.scale,fontScale:e.fontScale},screen:{width:t.width,height:t.height,scale:t.scale,fontScale:t.fontScale},pixelRatio:$.get(),fontScale:$.getFontScale(),isLandscape:e.width>e.height,isPortrait:e.height>e.width};if(r.OS==="ios")try{let i=C.DeviceInfo?.getConstants?.();a.isIPhoneNotched=i?.isIPhoneX_deprecated??false}catch{a.isIPhoneNotched=false}if(r.OS==="android")try{let i=C.DeviceInfo?.getConstants?.();a.isEdgeToEdge=i?.isEdgeToEdge??false,a.densityDpi=Math.round(e.scale*160)}catch{}return a}async function X(){return new Promise(e=>{let t=false;r.OS==="ios"?C.StatusBarManager?.getHeight?.(a=>{t||(t=true,e(a?.height??null))})??e(null):r.OS==="android"?(t=true,e(ae.currentHeight??null)):(t=true,e(null)),setTimeout(()=>{t||(t=true,e(null))},100)})}function N(){let e={isRTL:L.isRTL,doLeftAndRightSwapInRTL:L.doLeftAndRightSwapInRTL};return r.OS==="android"&&(e.localeIdentifier=L.localeIdentifier),e}function V(){if(r.OS==="ios")try{return{userDefaults:C.SettingsManager?.getConstants?.()?.settings??{}}}catch{return{}}return{}}function B(){let e={};if(r.OS==="android"){let t=r.constants;e.serial=t.Serial,e.fingerprint=t.Fingerprint;try{let a=C.PlatformConstants;a?.getAndroidID&&(e.androidId=a.getAndroidID())}catch{}}return e}function me(e){let t=[e.platform.os,e.platform.version,e.display.window.width,e.display.window.height,e.display.pixelRatio,e.platform.interfaceIdiom??"",e.platform.forceTouchAvailable??false,e.display.isIPhoneNotched??false,e.platform.model??"",e.platform.brand??"",e.platform.manufacturer??"",e.platform.uiMode??""].join("|"),a=0;for(let i=0;i<t.length;i++){let l=t.charCodeAt(i);a=(a<<5)-a+l,a=a&a}return Math.abs(a).toString(16).padStart(8,"0")}function Se(){let[e,t]=b(true),[a,i]=b(k()),[l,E]=b(M()),[g,c]=b({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false}),[d,v]=b(()=>{let f=I.getColorScheme()??null;return{colorScheme:f,prefersDarkMode:f==="dark"}}),[o,S]=b(N()),[p,h]=b({height:null,isVisible:true}),[u,F]=b({isVisible:false,height:0,animationDuration:0}),[J,_]=b({currentState:A.currentState,isActive:A.currentState==="active"}),[x,Q]=b(B()),[H,Z]=b(V()),[G,ee]=b(Date.now()),D=he(async()=>{t(true);let[f,n]=await Promise.all([U(),X()]);i(k()),E(M()),c(f);let s=I.getColorScheme()??null;v({colorScheme:s,prefersDarkMode:s==="dark"}),S(N()),h(y=>({...y,height:n})),Q(B()),Z(V()),ee(Date.now()),t(false)},[]);return w(()=>{D()},[D]),w(()=>{let f=R.addEventListener("change",({window:n,screen:s})=>{E(y=>({...y,window:{width:n.width,height:n.height,scale:n.scale,fontScale:n.fontScale},screen:{width:s.width,height:s.height,scale:s.scale,fontScale:s.fontScale},isLandscape:n.width>n.height,isPortrait:n.height>n.width}))});return()=>f.remove()},[]),w(()=>{let f=I.addChangeListener(({colorScheme:n})=>{let s=n??null;v({colorScheme:s,prefersDarkMode:s==="dark"})});return()=>f.remove()},[]),w(()=>{let f=Y.addListener(r.OS==="ios"?"keyboardWillShow":"keyboardDidShow",s=>{F({isVisible:true,height:s.endCoordinates.height,animationDuration:s.duration??0})}),n=Y.addListener(r.OS==="ios"?"keyboardWillHide":"keyboardDidHide",s=>{F({isVisible:false,height:0,animationDuration:s.duration??0})});return()=>{f.remove(),n.remove()}},[]),w(()=>{let f=te(n=>{_({currentState:n,isActive:n==="active"})});return()=>f.remove()},[]),w(()=>{let f=[m.addEventListener("screenReaderChanged",n=>{c(s=>({...s,isScreenReaderEnabled:n}))}),m.addEventListener("reduceMotionChanged",n=>{c(s=>({...s,isReduceMotionEnabled:n}))}),m.addEventListener("reduceTransparencyChanged",n=>{c(s=>({...s,isReduceTransparencyEnabled:n}))})];if(r.OS==="ios"){let n=(s,y)=>m.addEventListener(s,y);f.push(n("boldTextChanged",s=>{c(y=>({...y,isBoldTextEnabled:s}))}),n("grayscaleChanged",s=>{c(y=>({...y,isGrayscaleEnabled:s}))}),n("invertColorsChanged",s=>{c(y=>({...y,isInvertColorsEnabled:s}))}))}return()=>{f.forEach(n=>n.remove())}},[]),{platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e,refresh:D,generateFingerprint:()=>me({platform:a,display:l,accessibility:g,appearance:d,locale:o,statusBar:p,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e})}}async function pe(){let[e,t]=await Promise.all([U(),X()]),a=I.getColorScheme()??null;return{platform:k(),display:M(),accessibility:e,appearance:{colorScheme:a,prefersDarkMode:a==="dark"},locale:N(),statusBar:{height:t,isVisible:true},keyboard:{isVisible:false,height:0,animationDuration:0},appState:{currentState:A.currentState,isActive:A.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function be(e){console.log(`
2
- ========================================`),console.log(" DEVICE INFO REPORT"),console.log(`========================================
3
- `),console.log("--- PLATFORM ---"),console.log(JSON.stringify(e.platform,null,2)),console.log(`
4
- --- DISPLAY ---`),console.log(JSON.stringify(e.display,null,2)),console.log(`
5
- --- ACCESSIBILITY ---`),console.log(JSON.stringify(e.accessibility,null,2)),console.log(`
6
- --- APPEARANCE ---`),console.log(JSON.stringify(e.appearance,null,2)),console.log(`
7
- --- LOCALE ---`),console.log(JSON.stringify(e.locale,null,2)),console.log(`
8
- --- STATUS BAR ---`),console.log(JSON.stringify(e.statusBar,null,2)),console.log(`
9
- --- KEYBOARD ---`),console.log(JSON.stringify(e.keyboard,null,2)),console.log(`
10
- --- APP STATE ---`),console.log(JSON.stringify(e.appState,null,2)),console.log(`
11
- --- IDENTIFIERS ---`),console.log(JSON.stringify(e.identifiers,null,2)),console.log(`
12
- --- SETTINGS ---`);let t=Object.keys(e.settings.userDefaults??{});console.log(`userDefaults: ${t.length} keys`),t.length>0&&t.length<=20&&console.log(JSON.stringify(e.settings,null,2)),console.log(`
13
- --- METADATA ---`),console.log(`timestamp: ${e.timestamp}`),console.log(`isLoading: ${e.isLoading}`),console.log(`
14
- ========================================
15
- `)}export{re as a,le as b,ce as c,de as d,ge as e,Se as f,pe as g,be as h};