@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.
- package/lib/commonjs/stores/ignoredPatternsStore.shared.js +1 -1
- package/lib/commonjs/sync/settingsSync.js +1 -1
- package/lib/module/stores/ignoredPatternsStore.shared.js +1 -1
- package/lib/module/sync/settingsSync.js +1 -1
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/stores/ignoredPatternsStore.shared.d.ts +2 -0
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/stores/ignoredPatternsStore.shared.d.ts +2 -0
- package/lib/web/index.mjs +2 -2
- package/package.json +5 -5
- package/lib/web/chunks/chunk-26OV3QDY.mjs +0 -1
- package/lib/web/chunks/chunk-2MHKRRQW.mjs +0 -1
- package/lib/web/chunks/chunk-2Q3SDPH2.mjs +0 -13
- package/lib/web/chunks/chunk-34YQ42KI.mjs +0 -1
- package/lib/web/chunks/chunk-3NNNCQYP.mjs +0 -13
- package/lib/web/chunks/chunk-46CXXOQB.mjs +0 -1
- package/lib/web/chunks/chunk-475BSDCB.mjs +0 -1
- package/lib/web/chunks/chunk-552W4COI.mjs +0 -1
- package/lib/web/chunks/chunk-55EIUPOI.mjs +0 -14
- package/lib/web/chunks/chunk-56TTTMX4.mjs +0 -1
- package/lib/web/chunks/chunk-5KWAGM5V.mjs +0 -1
- package/lib/web/chunks/chunk-5LOQZINQ.mjs +0 -13
- package/lib/web/chunks/chunk-5NOIO6ZM.mjs +0 -15
- package/lib/web/chunks/chunk-6CCRCSA2.mjs +0 -1
- package/lib/web/chunks/chunk-6Q52HRBL.mjs +0 -1
- package/lib/web/chunks/chunk-6TEDFSNM.mjs +0 -1
- package/lib/web/chunks/chunk-7BLJTQ4U.mjs +0 -1
- package/lib/web/chunks/chunk-7BMRSMHN.mjs +0 -1
- package/lib/web/chunks/chunk-7PRKERDN.mjs +0 -1
- package/lib/web/chunks/chunk-A2SOFE47.mjs +0 -1
- package/lib/web/chunks/chunk-A7KJCK4R.mjs +0 -13
- package/lib/web/chunks/chunk-AEXGGXS7.mjs +0 -1
- package/lib/web/chunks/chunk-AGD7ZT6O.mjs +0 -14
- package/lib/web/chunks/chunk-AIEOQWNG.mjs +0 -1
- package/lib/web/chunks/chunk-ASEPWYDC.mjs +0 -14
- package/lib/web/chunks/chunk-ASTM35HG.mjs +0 -15
- package/lib/web/chunks/chunk-AZBMFPMX.mjs +0 -1
- package/lib/web/chunks/chunk-B2V2UDCU.mjs +0 -15
- package/lib/web/chunks/chunk-BFGKGTAC.mjs +0 -1
- package/lib/web/chunks/chunk-BHW6AFO6.mjs +0 -1
- package/lib/web/chunks/chunk-BWRW3NJ2.mjs +0 -15
- package/lib/web/chunks/chunk-CBM2IZAK.mjs +0 -1
- package/lib/web/chunks/chunk-CDLCFF44.mjs +0 -1
- package/lib/web/chunks/chunk-CI5CO7FQ.mjs +0 -1
- package/lib/web/chunks/chunk-CIB4U2YK.mjs +0 -1
- package/lib/web/chunks/chunk-CLLTZQGD.mjs +0 -1
- package/lib/web/chunks/chunk-D4RXBAOO.mjs +0 -15
- package/lib/web/chunks/chunk-D5HQLRFW.mjs +0 -1
- package/lib/web/chunks/chunk-DEJNSL6V.mjs +0 -1
- package/lib/web/chunks/chunk-DZDTNXXK.mjs +0 -1
- package/lib/web/chunks/chunk-EMEAL3L5.mjs +0 -1
- package/lib/web/chunks/chunk-ER3T3IDI.mjs +0 -1
- package/lib/web/chunks/chunk-F6SJ5CLB.mjs +0 -1
- package/lib/web/chunks/chunk-FDOZ6YSS.mjs +0 -1
- package/lib/web/chunks/chunk-FMEWNGQO.mjs +0 -1
- package/lib/web/chunks/chunk-G4DH7GMT.mjs +0 -1
- package/lib/web/chunks/chunk-GBUZCZE4.mjs +0 -1
- package/lib/web/chunks/chunk-GLMS5ZLJ.mjs +0 -1
- package/lib/web/chunks/chunk-GNGMIA7V.mjs +0 -1
- package/lib/web/chunks/chunk-GTYIS7H7.mjs +0 -14
- package/lib/web/chunks/chunk-GZE3FIOX.mjs +0 -1
- package/lib/web/chunks/chunk-HGA3GJA6.mjs +0 -1
- package/lib/web/chunks/chunk-HJ36IONA.mjs +0 -14
- package/lib/web/chunks/chunk-HXPTZMAZ.mjs +0 -1
- package/lib/web/chunks/chunk-I27M4JCS.mjs +0 -1
- package/lib/web/chunks/chunk-IVCT27JB.mjs +0 -1
- package/lib/web/chunks/chunk-JG4QSK5B.mjs +0 -1
- package/lib/web/chunks/chunk-JR7BJW6B.mjs +0 -1
- package/lib/web/chunks/chunk-K46ZJUXJ.mjs +0 -1
- package/lib/web/chunks/chunk-K4EGHHD6.mjs +0 -1
- package/lib/web/chunks/chunk-K4LXMO4D.mjs +0 -1
- package/lib/web/chunks/chunk-K7CGIEFU.mjs +0 -1
- package/lib/web/chunks/chunk-KBTYK5YE.mjs +0 -1
- package/lib/web/chunks/chunk-KHP6CSSM.mjs +0 -1
- package/lib/web/chunks/chunk-KRDRIW7T.mjs +0 -13
- package/lib/web/chunks/chunk-L2DTKDER.mjs +0 -1
- package/lib/web/chunks/chunk-L3AFTHWX.mjs +0 -14
- package/lib/web/chunks/chunk-LFDFDGHY.mjs +0 -1
- package/lib/web/chunks/chunk-MAIUUK4E.mjs +0 -1
- package/lib/web/chunks/chunk-MKJKS3IG.mjs +0 -1
- package/lib/web/chunks/chunk-MRQKVLXG.mjs +0 -1
- package/lib/web/chunks/chunk-NK3OISOL.mjs +0 -13
- package/lib/web/chunks/chunk-NLJDDIXW.mjs +0 -1
- package/lib/web/chunks/chunk-OENR3XFI.mjs +0 -1
- package/lib/web/chunks/chunk-OZB3VKZE.mjs +0 -1
- package/lib/web/chunks/chunk-P64PFJT3.mjs +0 -5
- package/lib/web/chunks/chunk-PACPGYH7.mjs +0 -1
- package/lib/web/chunks/chunk-PART6HOE.mjs +0 -13
- package/lib/web/chunks/chunk-PMRXUQRH.mjs +0 -1
- package/lib/web/chunks/chunk-PTK5FO6C.mjs +0 -1
- package/lib/web/chunks/chunk-PZ45TQ55.mjs +0 -13
- package/lib/web/chunks/chunk-Q5LN7GET.mjs +0 -5
- package/lib/web/chunks/chunk-QCD6T6L4.mjs +0 -1
- package/lib/web/chunks/chunk-QD5EUANU.mjs +0 -1
- package/lib/web/chunks/chunk-QJTECJCO.mjs +0 -1
- package/lib/web/chunks/chunk-QPIZURPZ.mjs +0 -1
- package/lib/web/chunks/chunk-QPY45R5F.mjs +0 -1
- package/lib/web/chunks/chunk-QQTJ463K.mjs +0 -1
- package/lib/web/chunks/chunk-R2SGZIG5.mjs +0 -1
- package/lib/web/chunks/chunk-RJO7RXQQ.mjs +0 -1
- package/lib/web/chunks/chunk-S3GYQYVJ.mjs +0 -15
- package/lib/web/chunks/chunk-SCCXVTDM.mjs +0 -1
- package/lib/web/chunks/chunk-SHJHD646.mjs +0 -1
- package/lib/web/chunks/chunk-TCRVZ55E.mjs +0 -1
- package/lib/web/chunks/chunk-TJ6ZVV2L.mjs +0 -14
- package/lib/web/chunks/chunk-TJUBBXXK.mjs +0 -1
- package/lib/web/chunks/chunk-TPSY4RC3.mjs +0 -13
- package/lib/web/chunks/chunk-U5KNX5O6.mjs +0 -5
- package/lib/web/chunks/chunk-UCKELQSM.mjs +0 -1
- package/lib/web/chunks/chunk-UGGCYHRH.mjs +0 -1
- package/lib/web/chunks/chunk-UKYVRCMZ.mjs +0 -1
- package/lib/web/chunks/chunk-UNYQJZET.mjs +0 -15
- package/lib/web/chunks/chunk-VE72SWLV.mjs +0 -14
- package/lib/web/chunks/chunk-VKONO6MI.mjs +0 -1
- package/lib/web/chunks/chunk-VOS562HW.mjs +0 -14
- package/lib/web/chunks/chunk-W4BGMPJO.mjs +0 -1
- package/lib/web/chunks/chunk-WHNEEKLR.mjs +0 -1
- package/lib/web/chunks/chunk-WIFX6XNL.mjs +0 -15
- package/lib/web/chunks/chunk-WLGUP3KY.mjs +0 -15
- package/lib/web/chunks/chunk-WY7D4WBZ.mjs +0 -1
- package/lib/web/chunks/chunk-XD2BEYMM.mjs +0 -15
- package/lib/web/chunks/chunk-XMDNJJS5.mjs +0 -14
- package/lib/web/chunks/chunk-XRNB2MHO.mjs +0 -1
- package/lib/web/chunks/chunk-XUHVHSSG.mjs +0 -14
- package/lib/web/chunks/chunk-XXTIAXQY.mjs +0 -1
- package/lib/web/chunks/chunk-YG6DIKQD.mjs +0 -1
- package/lib/web/chunks/chunk-YIZFMU66.mjs +0 -1
- package/lib/web/chunks/chunk-YOGAPOGC.mjs +0 -1
- package/lib/web/chunks/chunk-Z7373DS5.mjs +0 -1
- package/lib/web/chunks/chunk-Z76GRN66.mjs +0 -5
- package/lib/web/chunks/chunk-ZFPRFFDY.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-4FBAOYJ4.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-6OAJAVRK.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-6S5TDRE4.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-7W3Y6Q24.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-GOWNFMVT.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-RF47FXIK.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-SOPYL5VC.mjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{persistentStorage as Y}from"./chunk-JR7BJW6B.mjs";import{useCallback as ne,useEffect as se,useRef as $,useState as j}from"react";var C=new Map;function ae(e){try{return JSON.parse(e)}catch{return void 0}}function oe(e,t,n={}){const[s,r]=j(()=>C.has(e)?C.get(e):t);const[S,g]=j(()=>C.has(e));const c=$(e);c.current=e;const d=$(n);d.current=n;se(()=>{if(C.has(e)){r(C.get(e));g(true);return}let l=false;const p=d.current.storage??Y;const b=d.current.parse??ae;p.getItem(e).then(h=>{if(l)return;if(h!=null){let u;try{u=b(h)}catch{}if(u!==void 0){C.set(e,u);r(u)}}g(true)}).catch(()=>{if(!l)g(true)});return()=>{l=true}},[e]);const v=ne(l=>{r(p=>{const b=typeof l==="function"?l(p):l;C.set(c.current,b);const h=d.current.storage??Y;const u=d.current.serialize??JSON.stringify;try{h.setItem(c.current,u(b)).catch(()=>{})}catch{}return b})},[]);return[s,v,S]}function ie(){C.clear()}import{useCallback as R,useEffect as K,useMemo as re,useState as A}from"react";function le(e,t={}){const[n,s]=A(()=>e.getAll());const[r,S]=A(()=>t.initialFilter??{});const[g,c]=A(()=>e.getEnabled());K(()=>e.subscribe(s),[e]);const d=t.filterItems;const v=re(()=>d?d(n,r):n,[n,r,d]);const l=R(()=>{e.clear()},[e]);const p=R(()=>{const h=!g;e.setEnabled(h);c(h)},[e,g]);const b=R(h=>e.getById(h),[e]);return{items:n,filteredItems:v,filter:r,setFilter:S,isEnabled:g,toggleCapture:p,clear:l,getById:b}}function ce(e,t){const[n,s]=A(e);K(()=>t(s),[t]);return n}import{useCallback as de,useEffect as ue,useState as W}from"react";function fe(e,t={}){const{enabled:n=true,maxEvents:s=500,select:r}=t;const[S,g]=W([]);const[c,d]=W(n);ue(()=>{if(!n){d(false);return}let l=null;let p=null;const b=e.subscribeToEvents(h=>{p=h;if(l!=null)return;l=requestAnimationFrame(()=>{l=null;if(!p)return;let u=p;p=null;if(r)u=r(u);if(u.length>s)u=u.slice(0,s);g(u)})});d(true);return()=>{b();if(l!=null)cancelAnimationFrame(l)}},[e,n,s,r]);const v=de(()=>{e.clearEvents()},[e]);return{events:S,clearEvents:v,isActive:c}}import{useState as y,useEffect as I,useCallback as ge}from"react";import{Platform as i,Dimensions as P,PixelRatio as q,AccessibilityInfo as m,Appearance as D,I18nManager as L,NativeModules as T,Keyboard as z,AppState as w,StatusBar as he}from"react-native-web";async function U(){const[e,t,n]=await Promise.all([m.isScreenReaderEnabled(),m.isReduceMotionEnabled(),m.isReduceTransparencyEnabled()]);const s={isScreenReaderEnabled:e,isReduceMotionEnabled:t,isReduceTransparencyEnabled:n};if(i.OS==="ios"){const[r,S,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)]);s.isBoldTextEnabled=r;s.isGrayscaleEnabled=S;s.isInvertColorsEnabled=g;s.isDarkerSystemColorsEnabled=c;s.prefersCrossFadeTransitions=d}if(i.OS==="android"){const r=await m.isHighTextContrastEnabled?.()??false;s.isHighTextContrastEnabled=r}return s}function M(){const e=i.constants;const t={os:i.OS,version:i.Version,reactNativeVersion:e.reactNativeVersion,isTesting:i.isTesting??false,isDisableAnimations:e.isDisableAnimations??false};if(i.OS==="ios"){return{...t,osVersion:e.osVersion,systemName:e.systemName,interfaceIdiom:e.interfaceIdiom,isPad:i.isPad,isTV:i.isTV,isVision:i.isVision??false,isMacCatalyst:i.isMacCatalyst??false,forceTouchAvailable:e.forceTouchAvailable}}if(i.OS==="android"){return{...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}}return t}function k(){const e=P.get("window");const t=P.get("screen");const n={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:q.get(),fontScale:q.getFontScale(),isLandscape:e.width>e.height,isPortrait:e.height>e.width};if(i.OS==="ios"){try{const s=T.DeviceInfo?.getConstants?.();n.isIPhoneNotched=s?.isIPhoneX_deprecated??false}catch{n.isIPhoneNotched=false}}if(i.OS==="android"){try{const s=T.DeviceInfo?.getConstants?.();n.isEdgeToEdge=s?.isEdgeToEdge??false;n.densityDpi=Math.round(e.scale*160)}catch{}}return n}async function X(){return new Promise(e=>{let t=false;if(i.OS==="ios"){T.StatusBarManager?.getHeight?.(n=>{if(!t){t=true;e(n?.height??null)}})??e(null)}else if(i.OS==="android"){t=true;e(he.currentHeight??null)}else{t=true;e(null)}setTimeout(()=>{if(!t){t=true;e(null)}},100)})}function N(){const e={isRTL:L.isRTL,doLeftAndRightSwapInRTL:L.doLeftAndRightSwapInRTL};if(i.OS==="android"){e.localeIdentifier=L.localeIdentifier}return e}function V(){if(i.OS==="ios"){try{const e=T.SettingsManager?.getConstants?.();return{userDefaults:e?.settings??{}}}catch{return{}}}return{}}function B(){const e={};if(i.OS==="android"){const t=i.constants;e.serial=t.Serial;e.fingerprint=t.Fingerprint;try{const n=T.PlatformConstants;if(n?.getAndroidID){e.androidId=n.getAndroidID()}}catch{}}return e}function me(e){const 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??""];const n=t.join("|");let s=0;for(let r=0;r<n.length;r++){const S=n.charCodeAt(r);s=(s<<5)-s+S;s=s&s}return Math.abs(s).toString(16).padStart(8,"0")}function Se(){const[e,t]=y(true);const[n,s]=y(M());const[r,S]=y(k());const[g,c]=y({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false});const[d,v]=y(()=>{const f=D.getColorScheme()??null;return{colorScheme:f,prefersDarkMode:f==="dark"}});const[l,p]=y(N());const[b,h]=y({height:null,isVisible:true});const[u,F]=y({isVisible:false,height:0,animationDuration:0});const[J,_]=y({currentState:w.currentState,isActive:w.currentState==="active"});const[x,Q]=y(B());const[H,Z]=y(V());const[G,ee]=y(Date.now());const O=ge(async()=>{t(true);const[f,a]=await Promise.all([U(),X()]);s(M());S(k());c(f);const o=D.getColorScheme()??null;v({colorScheme:o,prefersDarkMode:o==="dark"});p(N());h(E=>({...E,height:a}));Q(B());Z(V());ee(Date.now());t(false)},[]);I(()=>{O()},[O]);I(()=>{const f=P.addEventListener("change",({window:a,screen:o})=>{S(E=>({...E,window:{width:a.width,height:a.height,scale:a.scale,fontScale:a.fontScale},screen:{width:o.width,height:o.height,scale:o.scale,fontScale:o.fontScale},isLandscape:a.width>a.height,isPortrait:a.height>a.width}))});return()=>f.remove()},[]);I(()=>{const f=D.addChangeListener(({colorScheme:a})=>{const o=a??null;v({colorScheme:o,prefersDarkMode:o==="dark"})});return()=>f.remove()},[]);I(()=>{const f=z.addListener(i.OS==="ios"?"keyboardWillShow":"keyboardDidShow",o=>{F({isVisible:true,height:o.endCoordinates.height,animationDuration:o.duration??0})});const a=z.addListener(i.OS==="ios"?"keyboardWillHide":"keyboardDidHide",o=>{F({isVisible:false,height:0,animationDuration:o.duration??0})});return()=>{f.remove();a.remove()}},[]);I(()=>{const f=w.addEventListener("change",a=>{_({currentState:a,isActive:a==="active"})});return()=>f.remove()},[]);I(()=>{const f=[m.addEventListener("screenReaderChanged",a=>{c(o=>({...o,isScreenReaderEnabled:a}))}),m.addEventListener("reduceMotionChanged",a=>{c(o=>({...o,isReduceMotionEnabled:a}))}),m.addEventListener("reduceTransparencyChanged",a=>{c(o=>({...o,isReduceTransparencyEnabled:a}))})];if(i.OS==="ios"){const a=(o,E)=>{return m.addEventListener(o,E)};f.push(a("boldTextChanged",o=>{c(E=>({...E,isBoldTextEnabled:o}))}),a("grayscaleChanged",o=>{c(E=>({...E,isGrayscaleEnabled:o}))}),a("invertColorsChanged",o=>{c(E=>({...E,isInvertColorsEnabled:o}))}))}return()=>{f.forEach(a=>a.remove())}},[]);const te={platform:n,display:r,accessibility:g,appearance:d,locale:l,statusBar:b,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e,refresh:O,generateFingerprint:()=>me({platform:n,display:r,accessibility:g,appearance:d,locale:l,statusBar:b,keyboard:u,appState:J,identifiers:x,settings:H,timestamp:G,isLoading:e})};return te}async function pe(){const[e,t]=await Promise.all([U(),X()]);const n=D.getColorScheme()??null;return{platform:M(),display:k(),accessibility:e,appearance:{colorScheme:n,prefersDarkMode:n==="dark"},locale:N(),statusBar:{height:t,isVisible:true},keyboard:{isVisible:false,height:0,animationDuration:0},appState:{currentState:w.currentState,isActive:w.currentState==="active"},identifiers:B(),settings:V(),timestamp:Date.now(),isLoading:false}}function be(e){console.log("\n========================================");console.log(" DEVICE INFO REPORT");console.log("========================================\n");console.log("--- PLATFORM ---");console.log(JSON.stringify(e.platform,null,2));console.log("\n--- DISPLAY ---");console.log(JSON.stringify(e.display,null,2));console.log("\n--- ACCESSIBILITY ---");console.log(JSON.stringify(e.accessibility,null,2));console.log("\n--- APPEARANCE ---");console.log(JSON.stringify(e.appearance,null,2));console.log("\n--- LOCALE ---");console.log(JSON.stringify(e.locale,null,2));console.log("\n--- STATUS BAR ---");console.log(JSON.stringify(e.statusBar,null,2));console.log("\n--- KEYBOARD ---");console.log(JSON.stringify(e.keyboard,null,2));console.log("\n--- APP STATE ---");console.log(JSON.stringify(e.appState,null,2));console.log("\n--- IDENTIFIERS ---");console.log(JSON.stringify(e.identifiers,null,2));console.log("\n--- SETTINGS ---");const t=Object.keys(e.settings.userDefaults??{});console.log(`userDefaults: ${t.length} keys`);if(t.length>0&&t.length<=20){console.log(JSON.stringify(e.settings,null,2))}console.log("\n--- METADATA ---");console.log(`timestamp: ${e.timestamp}`);console.log(`isLoading: ${e.isLoading}`);console.log("\n========================================\n")}export{oe as usePersistedState,ie as resetPersistedStateCache,le as useChangeLog,ce as useSubscribedValue,fe as useEventStoreEvents,Se as useDeviceInfo,pe as getDeviceInfo,be as logDeviceInfo};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{Pb as le,Qb as se,R as _,Rb as P,S as ce,Vb as de,Xb as M,_b as $,md as y}from"./chunk-AIEOQWNG.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-3UTMGIUG.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 W=I[B];a(v[W],W,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,X=e=>e instanceof Set,Y=e=>e instanceof Map,be=e=>typeof e=="bigint",K=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:X,annotation:"set",transform:e=>[...e.values()],untransform:e=>new Set(e)},{isApplicable:Y,annotation:"map",transform:e=>[...e.entries()],untransform:e=>new Map(e)},{isApplicable:e=>K(e)||Se(e),annotation:"number",transform:e=>K(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)||Y(e)||X(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 E}from"react/jsx-runtime";function Ne({alertConfig:e,badgeText:t,animatedStyle:o,style:s,indicatorCount:p=3}){let d=e.icon;return E(O.View,{style:[R.container,{borderColor:e.color+"40"},s,o],children:[k(c,{style:[R.glow,{backgroundColor:e.color+"10"}]}),E(c,{style:R.content,children:[k(c,{style:[R.iconWrapper,{backgroundColor:e.color+"15"}],children:k(d,{size:20,color:e.color})}),E(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};
|