@buoy-gg/redux 7.0.41 → 7.0.43

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 (78) hide show
  1. package/README.md +11 -106
  2. package/lib/commonjs/index.js +1 -256
  3. package/lib/commonjs/preset.js +1 -90
  4. package/lib/commonjs/redux/components/ReduxActionButton.js +1 -131
  5. package/lib/commonjs/redux/components/ReduxActionDetailContent.js +1 -437
  6. package/lib/commonjs/redux/components/ReduxActionDetailView.js +1 -401
  7. package/lib/commonjs/redux/components/ReduxActionInfoView.js +1 -836
  8. package/lib/commonjs/redux/components/ReduxActionItem.js +1 -337
  9. package/lib/commonjs/redux/components/ReduxAutoInstrument.js +1 -20
  10. package/lib/commonjs/redux/components/ReduxDetailViewToggle.js +1 -50
  11. package/lib/commonjs/redux/components/ReduxIcon.js +1 -18
  12. package/lib/commonjs/redux/components/ReduxModal.js +1 -703
  13. package/lib/commonjs/redux/hooks/reduxPeer.js +1 -17
  14. package/lib/commonjs/redux/hooks/reduxPeer.web.js +1 -10
  15. package/lib/commonjs/redux/hooks/useAutoInstrumentRedux.js +1 -177
  16. package/lib/commonjs/redux/hooks/useReduxActions.js +1 -58
  17. package/lib/commonjs/redux/sync/reduxSyncAdapter.js +1 -191
  18. package/lib/commonjs/redux/types/index.js +1 -1
  19. package/lib/commonjs/redux/utils/activeStoreRegistry.js +1 -104
  20. package/lib/commonjs/redux/utils/autoInstrument.js +1 -231
  21. package/lib/commonjs/redux/utils/buoyReduxMiddleware.js +1 -202
  22. package/lib/commonjs/redux/utils/createReduxHistoryAdapter.js +1 -146
  23. package/lib/commonjs/redux/utils/devtoolsHook.js +1 -152
  24. package/lib/commonjs/redux/utils/reduxActionStore.js +1 -473
  25. package/lib/commonjs/redux/utils/snapshotProvider.js +1 -158
  26. package/lib/commonjs/redux/utils/testIDs.js +1 -75
  27. package/lib/module/index.js +1 -125
  28. package/lib/module/preset.js +1 -87
  29. package/lib/module/redux/components/ReduxActionButton.js +1 -128
  30. package/lib/module/redux/components/ReduxActionDetailContent.js +1 -433
  31. package/lib/module/redux/components/ReduxActionDetailView.js +1 -397
  32. package/lib/module/redux/components/ReduxActionInfoView.js +1 -831
  33. package/lib/module/redux/components/ReduxActionItem.js +1 -333
  34. package/lib/module/redux/components/ReduxAutoInstrument.js +1 -17
  35. package/lib/module/redux/components/ReduxDetailViewToggle.js +1 -45
  36. package/lib/module/redux/components/ReduxIcon.js +1 -8
  37. package/lib/module/redux/components/ReduxModal.js +1 -698
  38. package/lib/module/redux/hooks/reduxPeer.js +1 -13
  39. package/lib/module/redux/hooks/reduxPeer.web.js +1 -6
  40. package/lib/module/redux/hooks/useAutoInstrumentRedux.js +1 -173
  41. package/lib/module/redux/hooks/useReduxActions.js +1 -54
  42. package/lib/module/redux/sync/reduxSyncAdapter.js +1 -188
  43. package/lib/module/redux/types/index.js +1 -1
  44. package/lib/module/redux/utils/activeStoreRegistry.js +1 -92
  45. package/lib/module/redux/utils/autoInstrument.js +1 -201
  46. package/lib/module/redux/utils/buoyReduxMiddleware.js +1 -188
  47. package/lib/module/redux/utils/createReduxHistoryAdapter.js +1 -142
  48. package/lib/module/redux/utils/devtoolsHook.js +1 -145
  49. package/lib/module/redux/utils/reduxActionStore.js +1 -465
  50. package/lib/module/redux/utils/snapshotProvider.js +1 -157
  51. package/lib/module/redux/utils/testIDs.js +1 -68
  52. package/lib/web/index.mjs +1 -2
  53. package/package.json +5 -8
  54. package/lib/typescript/index.d.ts.map +0 -1
  55. package/lib/typescript/preset.d.ts.map +0 -1
  56. package/lib/typescript/redux/components/ReduxActionButton.d.ts.map +0 -1
  57. package/lib/typescript/redux/components/ReduxActionDetailContent.d.ts.map +0 -1
  58. package/lib/typescript/redux/components/ReduxActionDetailView.d.ts.map +0 -1
  59. package/lib/typescript/redux/components/ReduxActionInfoView.d.ts.map +0 -1
  60. package/lib/typescript/redux/components/ReduxActionItem.d.ts.map +0 -1
  61. package/lib/typescript/redux/components/ReduxAutoInstrument.d.ts.map +0 -1
  62. package/lib/typescript/redux/components/ReduxDetailViewToggle.d.ts.map +0 -1
  63. package/lib/typescript/redux/components/ReduxIcon.d.ts.map +0 -1
  64. package/lib/typescript/redux/components/ReduxModal.d.ts.map +0 -1
  65. package/lib/typescript/redux/hooks/reduxPeer.d.ts.map +0 -1
  66. package/lib/typescript/redux/hooks/reduxPeer.web.d.ts.map +0 -1
  67. package/lib/typescript/redux/hooks/useAutoInstrumentRedux.d.ts.map +0 -1
  68. package/lib/typescript/redux/hooks/useReduxActions.d.ts.map +0 -1
  69. package/lib/typescript/redux/sync/reduxSyncAdapter.d.ts.map +0 -1
  70. package/lib/typescript/redux/types/index.d.ts.map +0 -1
  71. package/lib/typescript/redux/utils/activeStoreRegistry.d.ts.map +0 -1
  72. package/lib/typescript/redux/utils/autoInstrument.d.ts.map +0 -1
  73. package/lib/typescript/redux/utils/buoyReduxMiddleware.d.ts.map +0 -1
  74. package/lib/typescript/redux/utils/createReduxHistoryAdapter.d.ts.map +0 -1
  75. package/lib/typescript/redux/utils/devtoolsHook.d.ts.map +0 -1
  76. package/lib/typescript/redux/utils/reduxActionStore.d.ts.map +0 -1
  77. package/lib/typescript/redux/utils/snapshotProvider.d.ts.map +0 -1
  78. package/lib/typescript/redux/utils/testIDs.d.ts.map +0 -1
@@ -1,68 +1 @@
1
- "use strict";
2
-
3
- /**
4
- * Redux tool test handles.
5
- *
6
- * Every tappable and every value the e2e suite reads back is addressed
7
- * `buoy-redux-<thing>`. One rule in here needs explaining, because it is the
8
- * opposite of what the Events tool does and the difference is not cosmetic:
9
- *
10
- * **A redux row's handle carries an ORDINAL.** The Events tool can address a
11
- * row by what it is about, because an event is a thing that happened to a
12
- * named subject — one key, one URL, one atom. A redux action is not: an app
13
- * dispatches `counter/increment` fifty times and every one of them is a
14
- * separate, equally real row. Addressing them by type alone would give fifty
15
- * views one handle, and Detox fails a *matcher* that hits more than one
16
- * element — so the suite would break on `toExist()`, before any assertion,
17
- * with an error that says nothing about duplicate actions.
18
- *
19
- * So the handle is `buoy-redux-row-<slug(type)>-<n>`, where n counts back from
20
- * the newest row of that type (1 = newest). It is deliberately relative to the
21
- * list rather than absolute: an action has no identity of its own that a host
22
- * could know in advance — `id` is a timestamp plus a per-process counter, and
23
- * the counter's value depends on how many actions the app happened to dispatch
24
- * before the test looked. What a test CAN know is "the increment I just fired
25
- * is the newest increment", which is exactly what `-1` means.
26
- *
27
- * The consequence, and it is the same one the Events tool documents for its
28
- * positional-free handles: read and tap in one beat. A row's ordinal changes
29
- * the moment another action of that type arrives.
30
- *
31
- * The suite mirrors these rules in CommonJS (`example-dev-build/utils/
32
- * reduxBench.js`) and asserts the two agree — Detox runs in Node on the host
33
- * and cannot import TypeScript.
34
- */
35
-
36
- /** Prefix every handle in this tool shares. */
37
- export const REDUX_TEST_ID = "buoy-redux";
38
-
39
- /** `counter/increment` → `counter-increment`. Shared with every Buoy tool. */
40
- export function slugForTestID(value) {
41
- return String(value ?? "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "unknown";
42
- }
43
-
44
- /**
45
- * Handle for one action row: `buoy-redux-row-counter-increment-1`.
46
- *
47
- * `ordinal` is 1-based and counts back from the newest row of this type.
48
- */
49
- export function actionRowTestID(type, ordinal) {
50
- return `${REDUX_TEST_ID}-row-${slugForTestID(type)}-${ordinal}`;
51
- }
52
-
53
- /**
54
- * Row handle per action id for one rendered list, newest-first.
55
- *
56
- * Built once for the whole list rather than per row, because an ordinal is a
57
- * fact about the list and a row cannot compute its own.
58
- */
59
- export function buildActionRowTestIDs(actions) {
60
- const seen = new Map();
61
- const handles = new Map();
62
- for (const action of actions) {
63
- const ordinal = (seen.get(action.type) ?? 0) + 1;
64
- seen.set(action.type, ordinal);
65
- handles.set(action.id, actionRowTestID(action.type, ordinal));
66
- }
67
- return handles;
68
- }
1
+ "use strict";export const REDUX_TEST_ID="buoy-redux";export function slugForTestID(t){return String(t??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"unknown"}export function actionRowTestID(t,e){return`${REDUX_TEST_ID}-row-${slugForTestID(t)}-${e}`}export function buildActionRowTestIDs(t){const e=new Map;const o=new Map;for(const n of t){const r=(e.get(n.type)??0)+1;e.set(n.type,r);o.set(n.id,actionRowTestID(n.type,r))}return o}
package/lib/web/index.mjs CHANGED
@@ -1,2 +1 @@
1
- "use client";
2
- var jt=Object.defineProperty;var No=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var Fo=Object.prototype.hasOwnProperty;var $o=(t,e)=>{for(var o in e)jt(t,o,{get:e[o],enumerable:!0})},Ht=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Lo(e))!Fo.call(t,r)&&r!==o&&jt(t,r,{get:()=>e[r],enumerable:!(n=No(e,r))||n.enumerable});return t},_=(t,e,o)=>(Ht(t,e,"default"),o&&Ht(o,e,"default"));var E=process.env.NODE_ENV!=="production";typeof window<"u"&&typeof globalThis.global>"u"&&(globalThis.global=globalThis);import{classifyPreviewItem as Zo,createRestoreScope as en,registerStateSnapshotProvider as tn,skippedRestore as mt,unionKeys as on,wontApply as nn}from"@buoy-gg/shared-ui/web";var Ve=Symbol.for("@@buoy/enhancerInstrumented"),Ce=null,Te=null,lt=null,Ut=!1;function te(t,e){Ce=t,Te=e,lt=null}function qt(t){Ce===t&&(Ce=null,Te=null)}function oe(){return Ce}function Ne(){Ut=!0}function Re(){return Ut&&Ce!==null}function Yt(t){lt=t}function Z(){return{mechanism:Te,capture:Te==="enhancer"||Te==="middleware"?"full":Te==="patch"?"top-level-only":"none",hasStore:Ce!==null,timeTravel:Re(),diagnostic:lt}}import{ChangeLog as zo,approxJsonSize as Ho}from"@buoy-gg/shared-ui/web";var Fe=25,ct=Object.freeze({__buoyStateEvicted:!0,note:`Raw state retained for the ${Fe} most recent actions only.`}),ut=Object.freeze({__buoyStateOnDevice:!0,note:"State trees stay on the device \u2014 fetched on demand via getActionDetail."}),Kt=Object.freeze({__buoyPayloadOnDevice:!0,note:"Payload stays on the device \u2014 fetched on demand via getActionDetail."});function Le(t){return typeof t=="object"&&t!==null&&t.__buoyPayloadOnDevice===!0}function J(t){if(typeof t!="object"||t===null)return!1;let e=t;return e.__buoyStateEvicted===!0||e.__buoyStateOnDevice===!0}function jo(t){return t.startsWith("@@")?"internal":t.includes("/pending")?"pending":t.includes("/fulfilled")?"fulfilled":t.includes("/rejected")?"rejected":t.includes("/executeQuery")?"query":t.includes("/executeMutation")?"mutation":"action"}function Uo(t){if(t.startsWith("@@")){let o=t.split("/");return{sliceName:null,actionName:o[o.length-1]||t}}let e=t.split("/");if(e.length>=2){let o=e[0],n=e[1];return e.length>=3&&["pending","fulfilled","rejected"].includes(e[e.length-1])&&(n=e.slice(1,-1).join("/")),{sliceName:o,actionName:n.toUpperCase()}}return{sliceName:null,actionName:t.toUpperCase()}}function Jt(t,e){return Ho(t,e).bytes>e}function qo(t,e=40){if(t===void 0)return"";if(t===null)return"null";try{if(typeof t=="string")return t.length>e?`"${t.slice(0,e-3)}..."`:`"${t}"`;if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)){if(t.length===0)return"[]";if(Jt(t,e))return`[${t.length} items]`;let o=JSON.stringify(t);return o.length>e?`[${t.length} items]`:o}if(typeof t=="object"){let o=Object.keys(t);if(o.length===0)return"{}";if(Jt(t,e))return`{ ${o.length} keys }`;let n=JSON.stringify(t);return n.length<=e?n:`{ ${o.length} keys }`}return String(t).slice(0,e)}catch{return"[complex]"}}function Yo(t,e){if(t===e)return{summary:"no change",changedCount:0};if(typeof t!="object"||typeof e!="object"||t===null||e===null)return{summary:"changed",changedCount:1};let o=Object.keys(t),n=Object.keys(e),r=n.filter(p=>!o.includes(p)).length,i=o.filter(p=>!n.includes(p)).length,a=0;for(let p of o)n.includes(p)&&t[p]!==e[p]&&a++;let l=[];r>0&&l.push(`+${r}`),i>0&&l.push(`-${i}`),a>0&&l.push(`~${a}`);let d=r+i+a;return l.length===0?{summary:"nested change",changedCount:1}:{summary:`${l.join(" ")} ${d===1?"key":"keys"}`,changedCount:d}}function Jo(t){let e=t.meta;if(e)return{requestId:e.requestId,requestStatus:e.requestStatus,arg:e.arg,rejectedWithValue:e.rejectedWithValue,aborted:e.aborted,condition:e.condition}}var dt=class extends zo{addAction(e,o,n,r){if(!this.canRecord())return;let i=e.type||"";if(!i)return;let a=o!==n,l=jo(i),{sliceName:d,actionName:p}=Uo(i),m=Jo(e),S=qo(e.payload),{summary:C,changedCount:N}=Yo(o,n),F=(r??0)>16,$={id:this.nextId(),type:i,payload:e.payload,action:e,timestamp:Date.now(),prevState:o,nextState:n,duration:r,hasStateChange:a,category:l,sliceName:d,actionName:p,meta:m,error:e.error,payloadPreview:S,diffSummary:C,changedKeysCount:N,isSlowAction:F};this.push($);for(let L=Fe;L<this.items.length;L++){let P=this.items[L];if(P.prevState!==ct)P.prevState=ct,P.nextState=ct;else break}this.notifyListeners()}getActions(){return this.getAll()}getActionById(e){return this.getById(e)}clearActions(){this.clear()}replaceActions(e){if(!this.getEnabled())return;let o=new Map;for(let r of this.items)r.prevState!==void 0&&!J(r.prevState)&&o.set(r.id,r);let n=e.slice(0,this.max).map(r=>{let i=o.get(r.id);return!i||!J(r.prevState)?r:{...r,prevState:i.prevState,nextState:i.nextState,payload:Le(r.payload)?i.payload:r.payload,action:Le(r.action)?i.action:r.action,meta:Le(r.meta?.arg)?i.meta:r.meta,error:Le(r.error)?i.error:r.error}});this.setItems(n)}hydrateAction(e,o){this.hydrateById(e,o)}setMaxActions(e){this.setMax(e)}getStats(){let e=this.items.length,o=this.items.filter(a=>a.hasStateChange).length,n=new Set(this.items.map(a=>a.type)),r=this.items.filter(a=>a.duration!==void 0).map(a=>a.duration),i=r.length>0?r.reduce((a,l)=>a+l,0)/r.length:0;return{totalActions:e,actionsWithChanges:o,actionsWithoutChanges:e-o,uniqueActionTypes:n.size,averageDuration:Math.round(i*100)/100}}filterActions(e){let o=[...this.items];if(e.searchText){let n=e.searchText.toLowerCase();o=o.filter(r=>r.type.toLowerCase().includes(n))}return e.actionTypes&&e.actionTypes.length>0&&(o=o.filter(n=>e.actionTypes.includes(n.type))),e.onlyWithChanges&&(o=o.filter(n=>n.hasStateChange)),o}getUniqueActionTypes(){return Array.from(new Set(this.items.map(e=>e.type))).sort()}getRelatedActions(e){return this.items.filter(o=>o.meta?.requestId===e).sort((o,n)=>o.timestamp-n.timestamp)}getLinkedActions(e){return e.meta?.requestId?this.getRelatedActions(e.meta.requestId):[]}getLinkedActionsCount(e){return e.meta?.requestId?this.items.filter(o=>o.meta?.requestId===e.meta?.requestId).length:0}getAsyncOperationDuration(e){let o=this.getRelatedActions(e);if(o.length<2)return null;let n=o.find(i=>i.category==="pending"),r=o.find(i=>i.category==="fulfilled"||i.category==="rejected");return n&&r?r.timestamp-n.timestamp:null}getBaseActionType(e){let o=e.split("/");if(o.length>=2){let n=o[o.length-1];if(["pending","fulfilled","rejected"].includes(n))return o.slice(0,-1).join("/")}return e}getAsyncOperationIndex(e){let o=new Map;for(let i of this.items)i.meta?.requestId&&!o.has(i.meta.requestId)&&o.set(i.meta.requestId,i.timestamp);let r=Array.from(o.entries()).sort((i,a)=>i[1]-a[1]).map(([i])=>i).indexOf(e);return r>=0?r+1:0}},y=new dt;var pt=!1;function $e(){return pt}var he="@@buoy/JUMP_TO_STATE",Ko="@@buoy/REPLAY_ACTION";function ft(t){if(J(t)){console.warn("[BuoyRedux] Cannot jump - this action's state was evicted (raw state is retained for recent actions only)");return}let e=oe();if(!e){console.warn("[BuoyRedux] Cannot jump to state - no store instrumented");return}if(!Re()){console.warn("[BuoyRedux] Cannot jump to state - the root reducer cannot serve a state jump. Capture and time travel are wired separately: either put `import '@buoy-gg/redux';` first in your app entry (so Buoy is the store enhancer), or wrap your root reducer with withBuoyDevTools().");return}e.dispatch({type:he,payload:t})}function gt(t){let e=oe();e?e.dispatch(t):console.warn("[BuoyRedux] Cannot replay action - no store instrumented")}function Xo(t){return Ne(),(e,o)=>o.type===he?o.payload:t(e,o)}var Go=t=>(pt=!0,te(t,"middleware"),e=>o=>{let n=o;if(n.type?.startsWith("@@buoy/"))return e(o);let i=performance.now(),a=t.getState(),l=e(o),d=t.getState(),p=performance.now()-i;return y.addAction(n,a,d,p),l});function Qo(t={}){let{maxActions:e=200,ignoreActions:o=[]}=t;return y.setMaxActions(e),n=>(pt=!0,te(n,"middleware"),r=>i=>{let a=i,l=a.type||"";if(l?.startsWith("@@buoy/")||o.includes(l))return r(i);let d=performance.now(),p=n.getState(),m=r(i),S=n.getState(),C=performance.now()-d;return y.addAction(a,p,S,C),m})}var ze="enable restore by using the Buoy enhancer or wrapping your root reducer in withBuoyDevTools()";function rn(){let{mechanism:t,hasStore:e,diagnostic:o}=Z();return e?t==="patch"?{canCapture:!0,canRestore:!1,detail:`Auto-instrumented store cannot be restored \u2014 ${ze}`}:{canCapture:!0,canRestore:!0,detail:t==="middleware"?"Restore requires withBuoyDevTools(rootReducer) \u2014 verified at restore time":void 0}:{canCapture:!1,canRestore:!1,detail:o==="no-react-redux"?"react-redux not installed":o==="no-provider"?"No Redux <Provider> found":"No Redux store instrumented"}}async function an(){let t=oe();return t?{data:{state:t.getState()},warnings:[]}:{data:null,warnings:["no Redux store instrumented"]}}async function sn(t,e){let o=t,n=oe();if(!n||o===void 0||o===null)return mt("redux",n?"empty redux snapshot":"no Redux store instrumented");let{mechanism:r}=Z();if(r==="patch")return mt("redux",`restore unavailable on auto-instrumented stores \u2014 ${ze}`);let i=en(e),a=Object.keys(o.state??{}).filter(d=>!i.touch(d)),l=o.state;if(a.length>0){let d=n.getState(),p={...o.state};for(let m of a)p[m]=d?.[m];l=p}if(n.dispatch({type:he,payload:l}),n.getState()===l){let d=a.length>0?[`${a.length} slice(s) excluded by you`]:[];return{ok:!0,applied:1,skipped:[],warnings:d}}return mt("redux",`store ignored the state jump \u2014 ${ze}`)}async function ln(t,e){let o=t?.state,n=e===void 0,r=oe(),i=n?r?.getState():e?.state,a=[],l=[],d;if(n){let{mechanism:S,hasStore:C}=Z();C?S==="patch"&&(d=`auto-instrumented store cannot be restored \u2014 ${ze}`):d="no Redux store instrumented"}let p=i??{},m=o??{};for(let S of on(p,m)){let C=Zo({key:S,label:S,oldValue:p[S],newValue:m[S],inOld:Object.prototype.hasOwnProperty.call(p,S),inNew:Object.prototype.hasOwnProperty.call(m,S)},{tooLargeReason:"slice too large to render a diff \u2014 restore still applies it"});d&&(C=nn(C,d)),a.push(C)}return d&&l.push(`Redux restore unavailable: ${d}`),{items:a,notes:l}}tn({id:"redux",label:"Redux",status:rn,capture:an,restore:sn,previewItems:ln});function yt(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,o)=>(...n)=>e(o(...n)))}function Xt(t){return Ne(),(e,o)=>o&&o.type===he?o.payload:t(e,o)}function cn(t){if(typeof t!="object"||t===null)return!1;let e=t.type;return typeof e!="string"?!1:!e.startsWith("@@buoy/")&&!e.startsWith("@@redux/")}var He=t=>(e,o)=>{let n=t(Xt(e),o),i={...n,dispatch:a=>{if(!cn(a)||$e())return n.dispatch(a);let l=performance.now(),d=n.getState(),p=n.dispatch(a);return y.addAction(a,d,n.getState(),performance.now()-l),p},replaceReducer:a=>n.replaceReducer(Xt(a)),[Ve]:!0};return te(i,"enhancer"),i};function dn(...t){return t.length===0?yt(He):t.length===1&&typeof t[0]=="object"&&t[0]!==null?(...e)=>yt(...e,He):yt(...t,He)}var ht=!1;function Gt(){if(!(typeof E<"u"&&E))return!1;let e=globalThis;return e.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||(e.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__=dn,ht=!0),ht}function un(){return ht}Gt();import{useState as tt,useMemo as We,useRef as ot,useCallback as pe,useEffect as xo}from"react";var V={};$o(V,{AccessibilityInfo:()=>vn,ActivityIndicator:()=>Sn,Alert:()=>Tn,Animated:()=>In,AppRegistry:()=>Vn,AppState:()=>kn,Appearance:()=>Dn,BackHandler:()=>En,Button:()=>wn,CheckBox:()=>Yn,Clipboard:()=>Bn,DeviceEventEmitter:()=>lr,Dimensions:()=>On,Easing:()=>Mn,FlatList:()=>xt,I18nManager:()=>Pn,Image:()=>Jn,ImageBackground:()=>Kn,InteractionManager:()=>_n,Keyboard:()=>Wn,KeyboardAvoidingView:()=>Xn,LayoutAnimation:()=>Nn,Linking:()=>Ln,LogBox:()=>sr,Modal:()=>xn,NativeEventEmitter:()=>Fn,NativeModules:()=>Rn,PanResponder:()=>$n,Picker:()=>Gn,PixelRatio:()=>zn,Platform:()=>Hn,Pressable:()=>hn,ProgressBar:()=>Qn,RefreshControl:()=>Zn,SafeAreaView:()=>er,ScrollView:()=>xe,SectionList:()=>tr,Share:()=>jn,StatusBar:()=>or,StyleSheet:()=>q,Switch:()=>bn,Text:()=>g,TextInput:()=>gn,Touchable:()=>nr,TouchableHighlight:()=>mn,TouchableNativeFeedback:()=>rr,TouchableOpacity:()=>X,TouchableWithoutFeedback:()=>yn,UIManager:()=>Un,Vibration:()=>qn,View:()=>s,VirtualizedList:()=>ir,YellowBox:()=>ar,findNodeHandle:()=>An,unstable_createElement:()=>Cn,useColorScheme:()=>cr,useLocaleContext:()=>dr,useWindowDimensions:()=>ur});_(V,Ra);import*as Ra from"react-native-web";import{unstable_createElement as Cn,NativeModules as Rn,AccessibilityInfo as vn,Animated as In,Appearance as Dn,AppRegistry as Vn,AppState as kn,BackHandler as En,Clipboard as Bn,Dimensions as On,Easing as Mn,I18nManager as Pn,Keyboard as Wn,InteractionManager as _n,LayoutAnimation as Nn,Linking as Ln,NativeEventEmitter as Fn,PanResponder as $n,PixelRatio as zn,Platform as Hn,Share as jn,StyleSheet as q,UIManager as Un,Vibration as qn,CheckBox as Yn,FlatList as xt,Image as Jn,ImageBackground as Kn,KeyboardAvoidingView as Xn,Picker as Gn,ProgressBar as Qn,RefreshControl as Zn,SafeAreaView as er,SectionList as tr,StatusBar as or,Touchable as nr,TouchableNativeFeedback as rr,VirtualizedList as ir,YellowBox as ar,LogBox as sr,DeviceEventEmitter as lr,useColorScheme as cr,useLocaleContext as dr,useWindowDimensions as ur}from"react-native-web";import*as B from"react-native-web";import{createElement as pn,forwardRef as fn}from"react";function K(t){let e=fn((n,r)=>{let{accessibilityState:i,accessibilityValue:a,...l}=n;for(let d of["busy","checked","disabled","expanded","selected"])i?.[d]!==void 0&&l[`aria-${d}`]===void 0&&(l[`aria-${d}`]=i[d]);for(let[d,p]of Object.entries({min:"valuemin",max:"valuemax",now:"valuenow",text:"valuetext"}))a?.[d]!==void 0&&l[`aria-${p}`]===void 0&&(l[`aria-${p}`]=a[d]);return pn(t,{...l,ref:r})}),o=t.State;return o&&Object.assign(e,{State:o}),e.displayName=t.displayName??t.name??"NativeWebView",e}var s=K(B.View),g=K(B.Text),gn=K(B.TextInput),X=K(B.TouchableOpacity),mn=K(B.TouchableHighlight),yn=K(B.TouchableWithoutFeedback),hn=K(B.Pressable),xe=K(B.ScrollView),xn=K(B.Modal),bn=K(B.Switch),Sn=K(B.ActivityIndicator),wn=K(B.Button),An=B.findNodeHandle,Tn={alert(t,e,o,n){if(typeof document>"u")return;let r=document.createElement("dialog");r.dataset.buoyRoot="",r.setAttribute("aria-label",t),r.style.cssText="position:fixed;inset:0;margin:auto;width:min(440px,90vw);padding:24px;border:1px solid #475569;border-radius:14px;background:#17212e;color:#f1f5f9;font:14px system-ui;box-shadow:0 20px 80px #0008;z-index:2147483647";let i=document.createElement("h2");if(i.textContent=t,i.style.cssText="font-size:18px;margin:0 0 12px",r.appendChild(i),e){let p=document.createElement("p");p.textContent=e,p.style.cssText="line-height:1.5;white-space:pre-wrap;margin:0 0 20px",r.appendChild(p)}let a=document.createElement("div");a.style.cssText="display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px";let l=o?.length?o:[{text:"OK"}],d=()=>{r.close?.(),r.remove()};for(let p of l){let m=document.createElement("button");m.type="button",m.textContent=p.text??"OK",m.style.cssText=`padding:9px 14px;border:1px solid #64748b;border-radius:7px;color:white;background:${p.style==="destructive"?"#a52b38":"#283a4d"};cursor:pointer;font:inherit`,m.onclick=()=>{d(),p.onPress?.()},a.appendChild(m)}r.addEventListener("cancel",p=>{p.preventDefault(),n?.cancelable!==!1&&(d(),n?.onDismiss?.())}),r.appendChild(a),document.body.appendChild(r),r.showModal?r.showModal():r.setAttribute("open","")}};import{JsModal as ui,ModalHeader as fe,macOSColors as ie,night as A,Search as pi,Trash2 as fi,Power as gi,Zap as mi,CheckCircle as yi,Copy as hi,Lock as xi,AlertTriangle as bo,devToolsStorageKeys as bi,copyToClipboard as Si,ProUpgradeModal as wi,PowerToggleButton as Ai,TickProvider as So,useLimit as Ti,TIER_LIMITS as Ci,windowDragProps as Ri,ToolEmptyState as vi,resolveListEmptyState as Ii,EVENT_LIST_PRESET as Di,monoFont as Vi}from"@buoy-gg/shared-ui/web";import{useIsPro as ki}from"@buoy-gg/license/web";import{useState as pr,useMemo as Qt,useCallback as Zt}from"react";import{useChangeLog as fr}from"@buoy-gg/shared-ui/web";var gr=(t,e)=>y.filterActions(e);function bt(){let t=fr(y,{filterItems:gr}),[e,o]=pr(null),n=Qt(()=>y.getStats(),[t.items]),r=Qt(()=>y.getUniqueActionTypes(),[t.items]),i=Zt(()=>{y.clearActions(),o(null)},[]),a=Zt(l=>y.getActionById(l),[]);return{actions:t.items,filteredActions:t.filteredItems,filter:t.filter,setFilter:t.setFilter,stats:n,clearActions:i,isEnabled:t.isEnabled,toggleCapture:t.toggleCapture,actionTypes:r,getActionById:a,selectedAction:e,setSelectedAction:o}}import{useStore as mr}from"react-redux";function St(){return mr}import{useEffect as br,useState as Ye,useRef as eo,useCallback as to}from"react";var ke=Symbol.for("@@buoy/instrumented"),wt=Symbol.for("@@buoy/originalDispatch");function yr(t){let e=t;return e[ke]===!0||e[Ve]===!0}function je(t,e={}){let o=t;if(o[Ve])return te(t,"enhancer"),()=>{};if($e())return te(t,"middleware"),()=>{};if(o[ke])return te(t,"patch"),()=>{};let{maxActions:n=200,ignoreActions:r=[]}=e;y.setMaxActions(n);let i=t.dispatch.bind(t);o[wt]=i;let a=(l=>{if(typeof l!="object"||l===null||typeof l.type!="string")return i(l);let d=l.type;if(d.startsWith("@@buoy/")||d.startsWith("@@redux/")||r.includes(d))return i(l);let p=performance.now(),m=t.getState(),S=i(l),C=t.getState(),N=performance.now()-p;return y.addAction(l,m,C,N),S});return t.dispatch=a,o[ke]=!0,te(t,"patch"),()=>{Ue(t)}}function Ue(t){let e=t;if(e[ke]){let o=e[wt];o&&(t.dispatch=o),delete e[ke],delete e[wt]}qt(t)}function hr(t,e={}){return je(t,e)}function qe(){return oe()}function xr(){return oe()!==null}function Ee(t={}){let{autoStart:e=!0}=t,o=eo(t);o.current=t;let[n,r]=Ye(!1),[i,a]=Ye(!0),[l,d]=Ye(null),[p,m]=Ye(null),S=eo(null),C=St(),N=C!==null,F=null,$=null,L=null;if(C)try{F=C()}catch(z){L="no-provider",$=z instanceof Error?z.message:"Failed to access Redux store. Make sure your app is wrapped in a Redux Provider."}else L="no-react-redux",$="react-redux is not installed or not available";let P=to(()=>{if(!F){Yt(L),d($||"No Redux store available"),a(!1);return}try{let z=je(F,o.current);S.current=z,r(!0),m(F),d(null)}catch(z){d(z instanceof Error?z.message:"Failed to instrument Redux store"),r(!1)}finally{a(!1)}},[F]),R=to(()=>{S.current&&(S.current(),S.current=null),p&&Ue(p),r(!1),m(null)},[p]);return br(()=>(e?P():a(!1),()=>{}),[e,P]),{isInstrumented:n,isLoading:i,error:l,isReactReduxAvailable:N,captureMechanism:Z().mechanism,startInstrumentation:P,stopInstrumentation:R,store:p}}function Sr(){let t=St();if(!t)return{isAvailable:!1,error:"react-redux is not installed"};try{let e=t();return{isAvailable:e!=null,error:null}}catch(e){return{isAvailable:!1,error:e instanceof Error?e.message:"Not inside a Redux Provider"}}}import{memo as wr}from"react";import{ChangeRow as Be,buoyColors as ce,AlertCircle as Ar,monoFont as Tr}from"@buoy-gg/shared-ui/web";import{jsx as le,jsxs as no}from"react/jsx-runtime";var oo=[{bg:"rgba(99, 102, 241, 0.25)",text:"#818CF8"},{bg:"rgba(236, 72, 153, 0.25)",text:"#F472B6"},{bg:"rgba(14, 165, 233, 0.25)",text:"#38BDF8"},{bg:"rgba(245, 158, 11, 0.25)",text:"#FBBF24"},{bg:"rgba(16, 185, 129, 0.25)",text:"#34D399"},{bg:"rgba(168, 85, 247, 0.25)",text:"#C084FC"},{bg:"rgba(239, 68, 68, 0.25)",text:"#F87171"},{bg:"rgba(20, 184, 166, 0.25)",text:"#2DD4BF"}];function Cr(t){return t<=0?{bg:"rgba(142, 142, 147, 0.2)",text:ce.textSecondary}:oo[(t-1)%oo.length]}var At={cart:"#10B981",user:"#3B82F6",auth:"#8B5CF6",app:"#6366F1",ui:"#EC4899",settings:"#F59E0B",api:"#14B8A6",data:"#06B6D4"};function Rr(t){if(!t)return"#6B7280";let e=t.toLowerCase();if(At[e])return At[e];for(let[r,i]of Object.entries(At))if(e.includes(r))return i;return`hsl(${t.split("").reduce((r,i)=>r+i.charCodeAt(0),0)*137%360}, 70%, 60%)`}function vr(t,e){switch(t){case"pending":return"Pending";case"fulfilled":return"Success";case"rejected":return"Error";case"internal":return"Internal";case"query":return"Query";case"mutation":return"Mutation";default:return e?e.charAt(0).toUpperCase()+e.slice(1):"Action"}}function Ir(t,e,o){switch(t){case"pending":return ce.warning;case"fulfilled":return ce.success;case"rejected":return ce.error;case"internal":return ce.textMuted;case"query":return ce.info;case"mutation":return ce.info;default:return Rr(o)}}function Dr(t){let e=[];return t.duration!==void 0&&t.duration>=.1&&e.push(`${t.duration.toFixed(1)}ms`),t.hasStateChange?t.changedKeysCount&&t.changedKeysCount>0?e.push(`${t.changedKeysCount} key${t.changedKeysCount>1?"s":""} changed`):e.push(t.diffSummary||"state changed"):e.push("no state change"),e.join(" \xB7 ")}function Vr(t){return t.actionName?.toUpperCase()||t.type.split("/").pop()?.toUpperCase()||""}function kr(t){if(t.category==="internal")return t.type;let e=t.type.split("/");return e.length>=3&&["pending","fulfilled","rejected"].includes(e[e.length-1])?e.slice(0,-1).join("/"):t.type}var Tt=wr(function({action:e,onPress:o,linkedCount:n,testID:r}){let i=e.sliceName??void 0,a=Ir(e.category,e.hasStateChange,i),l=vr(e.category,i),d=Dr(e),p=kr(e),m=Vr(e),S=(n??0)>1,C=S?y.getLinkedActions(e):[],N=S?C.findIndex(R=>R.id===e.id)+1:0,F=S&&e.meta?.requestId?y.getAsyncOperationIndex(e.meta.requestId):0,$=Cr(F),L=S?le(s,{style:[Je.asyncSequenceBadge,{backgroundColor:$.bg}],children:no(g,{style:[Je.asyncSequenceText,{color:$.text}],testID:r?`${r}-seq`:void 0,children:[N,"/",n," #",F]})}):void 0,P={statusColor:a,statusLabel:l,sublabel:d,primaryText:p,timestamp:e.timestamp,onPress:()=>o(e),testID:r,accessibilityLabel:`${p}, ${l}, ${d}`};return e.isSlowAction?le(Be,{...P,badgePrefix:L,slow:!0}):e.category==="rejected"?le(Be,{...P,customBadge:no(s,{style:Je.badgeContainer,children:[L,le(s,{style:Je.errorBadge,testID:r?`${r}-error`:void 0,children:le(Ar,{size:12,color:ce.error})})]})}):S?le(Be,{...P,badgePrefix:L,changed:e.hasStateChange}):e.hasStateChange?le(Be,{...P,badgeText:m,changed:!0}):le(Be,{...P,plainBadgeText:m})}),Je=q.create({badgeContainer:{flexDirection:"row",alignItems:"center",gap:4},errorBadge:{paddingHorizontal:4},asyncSequenceBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},asyncSequenceText:{fontSize:10,fontWeight:"600",fontFamily:Tr}});import{useState as fo,useCallback as Qe,useMemo as go}from"react";import{macOSColors as Me,night as re,EventStepperFooter as ho,formatRelativeTime as et,parseValue as Ze,monoFont as Pe}from"@buoy-gg/shared-ui/web";import{DataViewer as ni,SplitDiffViewer as ri,TreeDiffViewer as ii,diffThemes as ai}from"@buoy-gg/shared-ui/web/dataViewer";import{memo as Er}from"react";import{DetailViewToggle as Br,FileText as Or,Database as Mr,GitBranch as Pr}from"@buoy-gg/shared-ui/web";import{jsx as Nr}from"react/jsx-runtime";var Wr=[{key:"action",label:"ACTION",description:"View action details",icon:Or},{key:"state",label:"STATE",description:"View current state",icon:Mr},{key:"diff",label:"DIFF",description:"Compare changes",icon:Pr}],_r=["diff"],ro=Er(function({activeView:e,onViewChange:o,diffDisabled:n=!1}){return Nr(Br,{views:Wr,activeView:e,onViewChange:o,disabledKeys:n?_r:void 0,testIDPrefix:"buoy-redux"})});import{memo as zr,useMemo as Hr,useCallback as Ke,useState as jr,useEffect as Ur}from"react";import{buoyColors as D,night as x,Clock as qr,AlertTriangle as Yr,Zap as Jr,Hash as lo,Info as Kr,Box as Xr,AlertCircle as Gr,FileText as Qr,parseValue as Xe,ProUpgradeModal as Zr,copyToClipboard as co,InfoRow as de,monoFont as ue}from"@buoy-gg/shared-ui/web";import{useIsPro as ei}from"@buoy-gg/license/web";import{DataViewer as Ge}from"@buoy-gg/shared-ui/web/dataViewer";import{night as I,monoFont as Lr}from"@buoy-gg/shared-ui/web";import{jsx as io,jsxs as $r}from"react/jsx-runtime";var Fr={replay:{color:I.color.accent,backgroundColor:I.color.accent+"15",borderColor:I.color.accent+"40",textColor:I.color.accent},copy:{color:I.color.accent,backgroundColor:I.color.accent+"15",borderColor:I.color.accent+"40",textColor:I.color.accent},jump:{color:I.color.warning,backgroundColor:I.color.warning+"15",borderColor:I.color.warning+"40",textColor:I.color.warning},skip:{color:I.color.textSecondary,backgroundColor:I.color.textSecondary+"26",borderColor:I.color.textSecondary+"59",textColor:I.color.textSecondary},clear:{color:I.color.danger,backgroundColor:I.color.danger+"15",borderColor:I.color.danger+"40",textColor:I.color.danger},diff:{color:I.color.info,backgroundColor:I.color.info+"15",borderColor:I.color.info+"40",textColor:I.color.info}};function Oe({onPress:t,text:e,type:o,disabled:n=!1,testID:r}){let i=Fr[o];return $r(X,{testID:r,disabled:n,onPress:t,style:[Ct.button,{backgroundColor:n?I.color.textTertiary+"1A":i.backgroundColor,borderColor:n?I.color.textTertiary+"33":i.borderColor,opacity:n?.5:1}],activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:e,accessibilityState:{disabled:n},children:[io(s,{style:[Ct.dot,{backgroundColor:n?I.color.textTertiary:i.color}]}),io(g,{style:[Ct.text,{color:n?I.color.textTertiary:i.textColor}],children:e})]})}var Ct=q.create({button:{flexDirection:"row",alignItems:"center",justifyContent:"center",borderRadius:6,borderWidth:1,paddingHorizontal:12,paddingVertical:6,height:25,minWidth:80,shadowOffset:{width:0,height:1},shadowOpacity:.2,shadowRadius:2,elevation:2},dot:{width:5,height:5,borderRadius:3,marginRight:6,shadowColor:I.color.text,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:2},text:{fontSize:10,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase",fontFamily:Lr,height:12}});var f="buoy-redux";function ao(t){return String(t??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"unknown"}function so(t,e){return`${f}-row-${ao(t)}-${e}`}function Rt(t){let e=new Map,o=new Map;for(let n of t){let r=(e.get(n.type)??0)+1;e.set(n.type,r),o.set(n.id,so(n.type,r))}return o}import{jsx as u,jsxs as k}from"react/jsx-runtime";function uo(t){switch(t){case"pending":return{label:"PENDING",color:D.warning,bgColor:D.warning+"26"};case"fulfilled":return{label:"FULFILLED",color:D.success,bgColor:D.success+"26"};case"rejected":return{label:"REJECTED",color:D.error,bgColor:D.error+"26"};case"internal":return{label:"INTERNAL",color:D.textMuted,bgColor:D.textMuted+"26"};case"query":return{label:"QUERY",color:D.info,bgColor:D.info+"26"};case"mutation":return{label:"MUTATION",color:D.info,bgColor:D.info+"26"};default:return{label:"ACTION",color:D.info,bgColor:D.info+"26"}}}function ti(t){return t===void 0?"N/A":t<1?"<1ms":`${t.toFixed(1)}ms`}function ve({icon:t,title:e,badge:o,testID:n}){return k(s,{style:c.sectionHeader,testID:n,children:[k(s,{style:c.sectionHeaderLeft,children:[u(t,{size:14,color:x.color.accent}),u(g,{style:c.sectionTitle,children:e})]}),o]})}function oi(t){let e=new Date(t),o=e.getHours().toString().padStart(2,"0"),n=e.getMinutes().toString().padStart(2,"0"),r=e.getSeconds().toString().padStart(2,"0"),i=e.getMilliseconds().toString().padStart(3,"0");return`${o}:${n}:${r}.${i}`}var po=zr(function({action:e,onNavigateToAction:o}){let n=ei(),[r,i]=jr(!1);Ur(()=>{r&&n&&i(!1)},[r,n]);let a=uo(e.category),l=J(e.nextState),d=Re(),p=l||!d,m=e.payload!==void 0,S=e.meta&&Object.keys(e.meta).length>0,C=e.error!==void 0,N=Hr(()=>y.getLinkedActions(e),[e]),F=N.length>1,$=F?y.getBaseActionType(e.type):null,L=e.meta?.requestId?y.getAsyncOperationDuration(e.meta.requestId):null,P=Ke(async()=>{if(!n){i(!0);return}await co(e.action)},[e,n]),R=Ke(async()=>{if(!n){i(!0);return}await co(e.payload)},[e.payload,n]),z=Ke(()=>{e.action&&typeof e.action=="object"&&"type"in e.action&&gt(e.action)},[e]),ne=Ke(()=>{e.nextState!==void 0&&ft(e.nextState)},[e]);return k(xe,{testID:`${f}-detail-scroll`,style:c.container,contentContainerStyle:c.contentContainer,showsVerticalScrollIndicator:!1,children:[k(s,{style:c.card,testID:`${f}-info-card`,children:[u(ve,{icon:Kr,title:"ACTION INFO"}),k(s,{style:c.cardContent,children:[u(de,{label:"Type",value:e.type,mono:!0,testID:`${f}-info-type`}),e.sliceName&&u(de,{label:"Slice",value:e.sliceName,mono:!0,testID:`${f}-info-slice`}),u(de,{label:"Action",value:e.actionName,mono:!0,testID:`${f}-info-action`}),k(s,{style:c.badgeRow,children:[u(s,{style:[c.categoryBadge,{backgroundColor:a.bgColor}],children:u(g,{style:[c.categoryText,{color:a.color}],testID:`${f}-info-category`,children:a.label})}),k(s,{style:[c.durationBadge,e.isSlowAction&&c.durationBadgeSlow],children:[u(qr,{size:10,color:e.isSlowAction?D.error:x.color.textSecondary}),u(g,{style:[c.durationText,e.isSlowAction&&c.durationTextSlow],testID:`${f}-info-duration`,children:ti(e.duration)}),e.isSlowAction&&u(Yr,{size:10,color:D.error})]}),e.hasStateChange?k(s,{style:c.changesBadge,children:[u(Jr,{size:10,color:D.success}),u(g,{style:c.changesText,testID:`${f}-info-changes`,children:e.diffSummary||"changed"})]}):u(s,{style:c.noChangesBadge,children:u(g,{style:c.noChangesText,testID:`${f}-info-no-changes`,children:"no change"})})]})]})]}),F&&k(s,{style:c.card,testID:`${f}-async-card`,children:[u(ve,{icon:lo,title:"ASYNC FLOW",badge:u(s,{style:c.asyncBadge,children:k(g,{style:c.asyncBadgeText,testID:`${f}-async-count`,children:[N.length," ACTIONS"]})})}),k(s,{style:c.cardContent,children:[u(g,{style:c.baseActionType,testID:`${f}-async-base`,children:$}),L!==null&&k(s,{style:c.totalDurationRow,children:[u(g,{style:c.totalDurationLabel,children:"Total Duration"}),k(g,{style:c.totalDurationValue,testID:`${f}-async-total`,children:[L,"ms"]})]}),u(s,{style:c.timeline,children:N.map((U,ae)=>{let ee=uo(U.category),ye=U.id===e.id;return k(X,{style:[c.timelineItem,ye&&c.timelineItemCurrent],onPress:()=>o?.(U),disabled:ye||!o,activeOpacity:.7,testID:`${f}-async-step-${ae}`,children:[ae<N.length-1&&u(s,{style:c.timelineConnector}),u(s,{style:[c.timelineDot,{backgroundColor:ee.color}]}),k(s,{style:c.timelineContent,children:[k(s,{style:c.timelineHeader,children:[u(s,{style:[c.timelineStatusBadge,{backgroundColor:ee.bgColor}],children:u(g,{style:[c.timelineStatusText,{color:ee.color}],testID:`${f}-async-step-${ae}-status`,children:ee.label})}),ye&&u(s,{style:c.currentBadge,testID:`${f}-async-step-${ae}-current`,children:u(g,{style:c.currentBadgeText,children:"CURRENT"})})]}),u(g,{style:c.timelineTime,children:oi(U.timestamp)})]})]},U.id)})})]})]}),m&&k(s,{style:c.card,testID:`${f}-payload-card`,children:[u(ve,{icon:Xr,title:"PAYLOAD",badge:u(s,{style:c.typeBadge,children:u(g,{style:c.typeText,children:Array.isArray(e.payload)?"ARRAY":typeof e.payload=="object"?"OBJECT":typeof e.payload?.toString().toUpperCase()})})}),u(s,{style:c.dataViewerContainer,children:u(Ge,{title:"",data:Xe(e.payload),showTypeFilter:!0,rawMode:!0,initialExpanded:!0})})]}),S&&k(s,{style:c.card,testID:`${f}-meta-card`,children:[u(ve,{icon:lo,title:"ASYNC METADATA",badge:u(s,{style:[c.categoryBadge,{backgroundColor:a.bgColor}],children:u(g,{style:[c.categoryText,{color:a.color}],children:"RTK THUNK"})})}),k(s,{style:c.cardContent,children:[e.meta?.requestId&&u(de,{label:"Request ID",value:e.meta.requestId,mono:!0}),e.meta?.requestStatus&&u(de,{label:"Status",value:e.meta.requestStatus.toUpperCase(),valueColor:a.color,testID:`${f}-meta-status`}),e.meta?.arg!==void 0&&k(s,{style:c.argSection,children:[u(g,{style:c.argLabel,children:"Original Argument"}),u(s,{style:c.argValueContainer,children:typeof e.meta.arg=="object"?u(Ge,{title:"",data:Xe(e.meta.arg),showTypeFilter:!0,rawMode:!0,initialExpanded:!0}):u(g,{style:c.argValue,children:JSON.stringify(e.meta.arg)})})]}),e.meta?.rejectedWithValue&&u(de,{label:"Rejected With Value",value:"true",valueColor:D.error}),e.meta?.aborted&&u(de,{label:"Aborted",value:"true",valueColor:D.warning}),e.meta?.condition&&u(de,{label:"Condition",value:"true",valueColor:x.color.textTertiary})]})]}),C&&k(s,{style:[c.card,c.errorCard],testID:`${f}-error-card`,children:[u(ve,{icon:Gr,title:"ERROR",badge:u(s,{style:c.errorBadge,children:u(g,{style:c.errorBadgeText,testID:`${f}-error-badge`,children:"REJECTED"})})}),u(s,{style:c.dataViewerContainer,children:typeof e.error=="object"?u(Ge,{title:"",data:Xe(e.error),showTypeFilter:!0,rawMode:!0,initialExpanded:!0}):u(g,{style:c.errorText,children:String(e.error)})})]}),k(s,{style:c.card,testID:`${f}-full-action-card`,children:[u(ve,{icon:Qr,title:"FULL ACTION OBJECT"}),u(s,{style:c.dataViewerContainer,children:u(Ge,{title:"",data:Xe(e.action),showTypeFilter:!0,rawMode:!0,initialExpanded:!0})})]}),u(s,{style:c.actionFooter,children:k(s,{style:c.actionsGrid,children:[k(s,{style:c.actionButtonWrapper,children:[u(Oe,{type:"replay",text:"REPLAY",onPress:z,testID:`${f}-replay`}),u(g,{style:c.actionDescription,children:"Dispatch again"})]}),k(s,{style:c.actionButtonWrapper,children:[u(Oe,{type:"jump",text:"JUMP",onPress:ne,disabled:p,testID:`${f}-jump`}),u(g,{style:c.actionDescription,testID:`${f}-jump-description`,children:l?"State not retained":d?"Restore this state":"Time travel not wired"})]}),k(s,{style:c.actionButtonWrapper,children:[u(Oe,{type:"copy",text:"COPY ACTION",onPress:P,testID:`${f}-copy-action`}),u(g,{style:c.actionDescription,children:n?"Copy to clipboard":"Pro feature"})]}),m&&k(s,{style:c.actionButtonWrapper,children:[u(Oe,{type:"copy",text:"COPY PAYLOAD",onPress:R,testID:`${f}-copy-payload`}),u(g,{style:c.actionDescription,children:n?"Copy payload only":"Pro feature"})]})]})}),u(Zr,{visible:r,onClose:()=>i(!1),featureName:"Copy"})]})}),c=q.create({container:{flex:1},contentContainer:{padding:8,paddingBottom:100,gap:16},card:{backgroundColor:x.color.surface,borderRadius:6,borderWidth:1,borderColor:x.color.accent+"4D",overflow:"hidden",shadowColor:x.color.accent,shadowOffset:{width:0,height:0},shadowOpacity:.1,shadowRadius:6},errorCard:{borderColor:D.error+"4D",shadowColor:D.error},sectionHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:10,borderBottomWidth:1,borderBottomColor:x.color.accent+"33",backgroundColor:x.color.accent+"15"},sectionHeaderLeft:{flexDirection:"row",alignItems:"center",gap:6},sectionTitle:{fontSize:12,fontWeight:"600",letterSpacing:.5,color:x.color.accent,fontFamily:ue},cardContent:{padding:14,gap:10},badgeRow:{flexDirection:"row",flexWrap:"wrap",gap:8,marginTop:6},categoryBadge:{paddingHorizontal:8,paddingVertical:3,borderRadius:4},categoryText:{fontSize:9,fontWeight:"700",letterSpacing:.3},durationBadge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:3,borderRadius:4,backgroundColor:x.color.surfaceElevated},durationBadgeSlow:{backgroundColor:D.error+"26"},durationText:{fontSize:9,fontWeight:"600",color:x.color.textSecondary,fontFamily:ue},durationTextSlow:{color:D.error},changesBadge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:3,borderRadius:4,backgroundColor:D.success+"26"},changesText:{fontSize:9,fontWeight:"600",color:D.success},noChangesBadge:{paddingHorizontal:8,paddingVertical:3,borderRadius:4,backgroundColor:x.color.surfaceElevated},noChangesText:{fontSize:9,fontWeight:"600",color:x.color.textTertiary},typeBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:3,backgroundColor:x.color.surfaceElevated},typeText:{fontSize:8,fontWeight:"600",color:x.color.textTertiary,fontFamily:ue},dataViewerContainer:{backgroundColor:x.color.bg,minHeight:60},argSection:{marginTop:4},argLabel:{fontSize:11,color:x.color.textTertiary,fontWeight:"500",marginBottom:6},argValueContainer:{backgroundColor:x.color.bg,borderRadius:6,borderWidth:1,borderColor:x.color.border,overflow:"hidden"},argValue:{fontSize:11,color:x.color.text,fontFamily:ue,padding:10},errorBadge:{paddingHorizontal:8,paddingVertical:3,borderRadius:4,backgroundColor:D.error+"26"},errorBadgeText:{fontSize:9,fontWeight:"700",color:D.error,letterSpacing:.3},errorText:{fontSize:12,color:D.error,fontFamily:ue,padding:14},asyncBadge:{paddingHorizontal:8,paddingVertical:3,borderRadius:4,backgroundColor:x.color.accent+"26"},asyncBadgeText:{fontSize:9,fontWeight:"700",color:x.color.accent,letterSpacing:.3},baseActionType:{fontSize:12,fontWeight:"600",color:x.color.text,fontFamily:ue,marginBottom:8},totalDurationRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:12,paddingBottom:12,borderBottomWidth:1,borderBottomColor:x.color.border},totalDurationLabel:{fontSize:11,color:x.color.textTertiary,fontWeight:"500"},totalDurationValue:{fontSize:14,fontWeight:"700",color:D.success,fontFamily:ue},timeline:{gap:0},timelineItem:{flexDirection:"row",alignItems:"flex-start",paddingVertical:8,paddingHorizontal:8,borderRadius:8,position:"relative"},timelineItemCurrent:{backgroundColor:x.color.accentSoft},timelineConnector:{position:"absolute",left:13,top:24,bottom:-8,width:2,backgroundColor:x.color.border},timelineDot:{width:12,height:12,borderRadius:6,marginRight:10,marginTop:2},timelineContent:{flex:1},timelineHeader:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:2},timelineStatusBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},timelineStatusText:{fontSize:9,fontWeight:"700",letterSpacing:.3},currentBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,backgroundColor:x.color.accent},currentBadgeText:{fontSize:8,fontWeight:"700",color:x.color.onAccent,letterSpacing:.3},timelineTime:{fontSize:10,color:x.color.textTertiary,fontFamily:ue},actionFooter:{backgroundColor:x.color.surface,borderRadius:6,borderWidth:1,borderColor:x.color.accent+"4D",paddingVertical:12,paddingHorizontal:12,shadowColor:x.color.accent,shadowOffset:{width:0,height:0},shadowOpacity:.1,shadowRadius:6},actionsGrid:{flexDirection:"row",flexWrap:"wrap",gap:12,justifyContent:"flex-start"},actionButtonWrapper:{alignItems:"center",gap:4},actionDescription:{fontSize:9,color:x.color.textTertiary,textAlign:"center"}});import{DiffModeTabs as si,CompareBar as li}from"@buoy-gg/shared-ui/web";import{jsx as O,jsxs as be}from"react/jsx-runtime";function vt(t){return t.includes("/pending")?Me.semantic.warning:t.includes("/fulfilled")?Me.semantic.success:t.includes("/rejected")?Me.semantic.error:t.startsWith("@@")?Me.text.muted:Me.semantic.info}function mo(t){if(t.includes("/pending"))return"PENDING";if(t.includes("/fulfilled"))return"FULFILLED";if(t.includes("/rejected"))return"REJECTED";if(t.startsWith("@@"))return"INTERNAL";let e=t.split("/");return e[e.length-1]?.toUpperCase()||"ACTION"}function ci(t){return t===null?"null":t===void 0?"undefined":Array.isArray(t)?"array":typeof t}function yo(t){return new Date(t).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}var di=[{key:"tree",label:"TREE VIEW"},{key:"split",label:"SPLIT VIEW"}];function It({action:t,actions:e,selectedIndex:o,onIndexChange:n,disableInternalFooter:r=!1,initialView:i="action"}){let[a,l]=fo(i),[d,p]=fo("tree"),m=e.length,S=J(t.nextState),C=vt(t.type),N=mo(t.type),F=ci(Ze(t.nextState)),$=m-o,L=$-1,P=o<m-1?o+1:null,R=P!==null?e[P]:null,z=go(()=>({index:P??0,label:L>0?`#${L}`:"Initial",timestamp:R?yo(R.timestamp):"",relativeTime:R?et(new Date(R.timestamp)):"state",badge:R?O(s,{style:[M.actionBadgeSmall,{backgroundColor:`${vt(R.type)}20`}],children:O(g,{style:[M.actionTextSmall,{color:vt(R.type)}],children:mo(R.type)})}):void 0}),[P,R,L]),ne=go(()=>({index:o,label:`#${$}`,timestamp:yo(t.timestamp),relativeTime:et(new Date(t.timestamp)),badge:O(s,{style:[M.actionBadgeSmall,{backgroundColor:`${C}20`}],children:O(g,{style:[M.actionTextSmall,{color:C}],children:N})})}),[o,t.timestamp,C,N,$]),U=Qe(()=>{if(S)return be(s,{style:M.contentCard,testID:`${f}-state-evicted`,children:[O(s,{style:M.valueHeader,children:O(g,{style:M.valueLabel,children:"STATE AFTER ACTION"})}),O(g,{style:M.evictedText,children:`Not retained. Raw state is kept for the ${Fe} most recent actions, so this action's before/after trees have been released.`})]});let Se=Ze(t.nextState);return be(s,{style:M.contentCard,testID:`${f}-state-card`,children:[be(s,{style:M.valueHeader,children:[O(g,{style:M.valueLabel,children:"STATE AFTER ACTION"}),be(s,{style:M.valueHeaderBadges,children:[O(s,{style:[M.actionBadge,{backgroundColor:`${C}20`}],children:O(g,{style:[M.actionText,{color:C}],children:N})}),O(s,{style:M.typeBadge,children:O(g,{style:M.typeText,testID:`${f}-state-type`,children:F.toUpperCase()})})]})]}),O(s,{style:M.dataViewerContainer,children:O(ni,{title:"",data:Se,showTypeFilter:!0,rawMode:!0,initialExpanded:!0})})]})},[t.nextState,C,N,F,S]),ae=Qe(()=>{let Se=Ze(t.prevState),we=Ze(t.nextState);return d==="split"?O(xe,{style:{flex:1},showsVerticalScrollIndicator:!0,children:O(ri,{oldValue:Se,newValue:we,theme:ai.devToolsDefault,options:{hideLineNumbers:!1,disableWordDiff:!1,showDiffOnly:!1,compareMethod:"words",contextLines:3},showThemeName:!1})}):O(ii,{oldValue:Se,newValue:we})},[t.prevState,t.nextState,d]),ee=Qe(()=>{n(Math.min(m-1,o+1))},[o,m,n]),ye=Qe(()=>{n(Math.max(0,o-1))},[o,n]),H=S||J(t.prevState)||t.prevState===void 0,se=!r&&m>1;return be(s,{style:M.container,children:[O(ro,{activeView:a,onViewChange:l,diffDisabled:H}),be(s,{style:[M.contentArea,se&&M.contentAreaFooterPad],children:[a==="action"&&O(po,{action:t}),a==="state"&&O(s,{style:M.stateContainer,children:U()}),a==="diff"&&be(s,{style:M.diffContainer,testID:`${f}-diff`,children:[O(si,{tabs:di,activeTab:d,onTabChange:p,testIDPrefix:`${f}-diff-tab`}),O(li,{leftEvent:z,rightEvent:ne}),O(s,{style:M.diffContent,testID:`${f}-diff-content`,children:ae()})]})]}),se&&O(ho,{currentIndex:$-1,totalItems:m,onPrevious:ee,onNext:ye,itemLabel:"Action",subtitle:et(new Date(t.timestamp)),absolute:!0})]})}function Dt({action:t,actions:e,selectedIndex:o,onIndexChange:n}){let r=e.length;if(r<=1)return null;let i=r-o;return O(ho,{currentIndex:i-1,totalItems:r,onPrevious:()=>n(Math.min(r-1,o+1)),onNext:()=>n(Math.max(0,o-1)),itemLabel:"Action",subtitle:et(new Date(t.timestamp))})}var M=q.create({container:{flex:1,backgroundColor:"transparent"},contentArea:{flex:1},contentAreaFooterPad:{paddingBottom:96},stateContainer:{flex:1,padding:14},contentCard:{backgroundColor:re.color.surface,borderRadius:14,padding:14,borderWidth:1,borderColor:re.color.border},valueHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:8},valueLabel:{fontSize:10,color:re.color.textSecondary,fontFamily:Pe,letterSpacing:.5,fontWeight:"600"},valueHeaderBadges:{flexDirection:"row",alignItems:"center",gap:6},actionBadge:{paddingHorizontal:8,paddingVertical:2,borderRadius:4},actionText:{fontSize:9,fontWeight:"700",fontFamily:Pe,letterSpacing:.3},typeBadge:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:re.color.surfaceElevated},typeText:{fontSize:9,fontWeight:"600",color:re.color.textTertiary,fontFamily:Pe},valueBox:{backgroundColor:re.color.bg,borderRadius:6,borderWidth:1,borderColor:re.color.border,padding:8},evictedText:{fontSize:12,color:re.color.textSecondary,lineHeight:18},valueText:{fontSize:12,color:re.color.text,fontFamily:Pe,lineHeight:18},diffContainer:{flex:1},diffContent:{flex:1,paddingHorizontal:14},actionBadgeSmall:{paddingHorizontal:6,paddingVertical:1,borderRadius:3},actionTextSmall:{fontSize:8,fontWeight:"700",fontFamily:Pe},dataViewerContainer:{marginTop:-12,marginHorizontal:-12,marginBottom:-12}});import{Fragment as Mi,jsx as h,jsxs as j}from"react/jsx-runtime";var Ei=Ci["redux.actions"].free;function Bi({isEnabled:t,query:e,totalActions:o}){let n=Ii({subject:"actions",search:e,total:o,capturing:t,waiting:{otto:"waiting",title:"No Redux actions",message:"Actions will appear here as they are dispatched"},paused:{title:"No Redux actions",message:"Enable capture to start recording actions"}});return h(vi,{...n,testID:`${f}-empty`})}function nt({visible:t,onClose:e,onBack:o,onMinimize:n,enableSharedModalDimensions:r=!1,inline:i=!1,onActionSelect:a,initialSelectedActionId:l,initialDetailView:d}){let p=ki(),m=Ti("redux.actions"),[S,C]=tt(!1),{isInstrumented:N,isLoading:F,error:$,isReactReduxAvailable:L,captureMechanism:P}=Ee(),{filteredActions:R,filter:z,setFilter:ne,stats:U,clearActions:ae,isEnabled:ee,toggleCapture:ye}=bt(),H=We(()=>R.slice(0,m),[R,m]),se=We(()=>Math.max(0,R.length-m),[R.length,m]),Se=se>0,[we,_e]=tt(null),Ae=We(()=>{if(we===null)return null;let w=H.findIndex(W=>W.id===we);return w>=0?w:null},[we,H]),Q=Ae!==null?H[Ae]:null,Et=ot(null);xo(()=>{if(!a)return;let w=Q?.id??null;w===null||w===Et.current||(Et.current=w,a(Q))},[Q,a]);let Bt=ot(null);xo(()=>{!l||Bt.current===l||H.findIndex(W=>W.id===l)<0||(Bt.current=l,_e(l))},[l,H]);let[De,Ot]=tt(""),[Mt,at]=tt(!1),ta=ot(null),vo=ot(null),Io=pe(w=>{},[]),Do=w=>{Ot(w),ne(W=>({...W,searchText:w}))},Vo=pe(()=>{Ot(""),ne(w=>({...w,searchText:""})),at(!1)},[ne]),Pt=pe(w=>{_e(w.id)},[]),ko=pe(()=>{C(!0)},[]),Eo=pe(()=>{_e(null)},[]),Wt=pe(w=>{let W=H[w];W&&_e(W.id)},[H]),Bo=async()=>{if(!p){C(!0);return}let w=R.map(W=>({id:W.id,type:W.type,...W.payload!==void 0&&{payload:W.payload},timestamp:W.timestamp,prevState:W.prevState,nextState:W.nextState,hasStateChange:W.hasStateChange}));await Si(w)},Oo=pe(w=>w.id,[]),_t=We(()=>Rt(H),[H]),Nt=We(()=>{let w=new Map;for(let W of y.getActions()){let st=W.meta?.requestId;st&&w.set(st,(w.get(st)??0)+1)}return w},[R]),Mo=pe(({item:w})=>{let W=w.meta?.requestId;return h(Tt,{action:w,onPress:Pt,linkedCount:W?Nt.get(W)??0:0,testID:_t.get(w.id)})},[Pt,_t,Nt]),Lt=()=>Q?j(fe,{children:[h(fe.Navigation,{onBack:Eo}),h(fe.Content,{title:Q.type,centered:!0,testID:`${f}-detail-title`})]}):j(fe,{children:[o&&h(fe.Navigation,{onBack:o}),h(fe.Content,{title:"",children:Mt?h(fe.Search,{value:De,onChangeText:Do,onCancel:Vo,placeholder:"Search action types...",accessibilityLabel:"Search action types",iconSize:14,testID:`${f}-search-field`,containerTestID:`${f}-search`,clearTestID:`${f}-search-clear`,onBlur:()=>{De.length===0&&at(!1)}}):j(s,{style:v.headerChipRow,children:[j(X,{style:[v.headerChip,!z.onlyWithChanges&&v.headerChipActive],onPress:()=>ne(w=>({...w,onlyWithChanges:!1})),testID:`${f}-chip-all`,accessibilityRole:"button",accessibilityLabel:`Show all actions, ${U.totalActions} captured`,accessibilityState:{selected:!z.onlyWithChanges},children:[h(g,{style:v.headerChipLabel,children:"ALL"}),h(g,{style:[v.headerChipValue,{color:A.color.text}],testID:`${f}-chip-all-value`,children:U.totalActions})]}),j(X,{style:[v.headerChip,z.onlyWithChanges&&v.headerChipActive],onPress:()=>ne(w=>({...w,onlyWithChanges:!0})),testID:`${f}-chip-changed`,accessibilityRole:"button",accessibilityLabel:`Show only actions that changed state, ${U.actionsWithChanges} of them`,accessibilityState:{selected:!!z.onlyWithChanges},children:[h(mi,{size:12,color:ie.semantic.warning}),h(g,{style:[v.headerChipValue,{color:ie.semantic.warning}],testID:`${f}-chip-changed-value`,children:U.actionsWithChanges})]}),j(s,{style:v.headerChip,testID:`${f}-chip-types`,accessibilityLabel:`${U.uniqueActionTypes} distinct action types`,children:[h(yi,{size:12,color:ie.semantic.success}),h(g,{style:[v.headerChipValue,{color:ie.semantic.success}],testID:`${f}-chip-types-value`,children:U.uniqueActionTypes})]})]})}),j(fe.Actions,{children:[!Mt&&h(X,{onPress:()=>at(!0),style:[v.headerActionButton,De.length>0&&v.headerActionButtonActive],testID:`${f}-search-open`,accessibilityRole:"button",accessibilityLabel:"Search action types",children:h(pi,{size:14,color:De.length>0?A.color.accent:A.color.textSecondary})}),h(X,{onPress:Bo,style:[v.headerActionButton,R.length===0&&v.headerActionButtonDisabled],disabled:R.length===0,testID:`${f}-copy`,accessibilityRole:"button",accessibilityLabel:"Copy all actions",accessibilityState:{disabled:R.length===0},children:h(hi,{size:14,color:R.length>0?A.color.textSecondary:A.color.textTertiary})}),h(Ai,{isEnabled:ee,onToggle:ye,accessibilityLabel:"Toggle Redux action capture",testID:`${f}-power`}),h(X,{onPress:ae,style:[v.headerActionButton,R.length===0&&v.headerActionButtonDisabled],disabled:R.length===0,testID:`${f}-clear`,accessibilityRole:"button",accessibilityLabel:"Clear actions",accessibilityState:{disabled:R.length===0},children:h(fi,{size:14,color:R.length>0?A.color.textTertiary:A.color.textTertiary})})]})]}),Po=r?bi.modal.root():"buoy-redux-modal";if(!t)return null;let Ft=Q&&Ae!==null?h(Dt,{action:Q,actions:H,selectedIndex:Ae,onIndexChange:Wt}):null,Wo=Q&&H.length>1?68:0,_o=Q==null,$t=h(s,{style:v.container,children:Q&&Ae!==null?h(It,{action:Q,actions:H,selectedIndex:Ae,onIndexChange:Wt,disableInternalFooter:!0,initialView:d}):j(Mi,{children:[$&&!N&&!y.isCaptureSuppressed()&&j(s,{style:v.errorBanner,testID:`${f}-banner-error`,children:[h(bo,{size:14,color:A.color.danger}),h(g,{style:v.errorText,children:L?"Not inside a Redux Provider. Wrap your app with <Provider store={store}>.":"react-redux not installed. Run: npm install react-redux"})]}),!ee&&N&&j(s,{style:v.disabledBanner,testID:`${f}-banner-disabled`,children:[h(gi,{size:14,color:A.color.warning}),h(g,{style:v.disabledText,children:"Action capture is disabled"})]}),P==="patch"&&!y.isCaptureSuppressed()&&j(s,{style:v.disabledBanner,testID:`${f}-banner-patch`,children:[h(bo,{size:14,color:A.color.warning}),h(g,{style:v.disabledText,children:"Top-level capture only \u2014 thunk/RTK Query internals aren't visible. Put import '@buoy-gg/redux' first in your app entry (or add buoyReduxMiddleware) for full capture."})]}),Se&&j(X,{style:v.lockedBanner,onPress:ko,activeOpacity:.8,testID:`${f}-locked`,accessibilityRole:"button",accessibilityLabel:`${se} older ${se===1?"action":"actions"} locked. Upgrade to see them.`,children:[h(xi,{size:14,color:A.color.accent}),j(g,{style:v.lockedText,testID:`${f}-locked-text`,children:[se," older ",se===1?"action":"actions"," locked"]}),h(s,{style:v.upgradeBadge,children:h(g,{style:v.upgradeBadgeText,children:"UPGRADE"})})]}),H.length>0?h(xt,{ref:vo,testID:`${f}-list`,data:H,renderItem:Mo,keyExtractor:Oo,contentContainerStyle:v.listContent,showsVerticalScrollIndicator:!0,...Di}):h(Bi,{isEnabled:ee,query:De,totalActions:U.totalActions})]})}),zt=h(wi,{visible:S,onClose:()=>C(!1),featureName:"Full Action History"});return i?j(So,{children:[j(s,{style:v.inlineRoot,children:[h(s,{style:v.inlineHeader,...Ri,children:Lt()}),$t,Ft]}),zt]}):j(So,{children:[h(ui,{visible:t,onClose:e,onMinimize:n,persistenceKey:Po,header:{showToggleButton:!0,customContent:Lt()},onModeChange:Io,enablePersistence:!0,initialMode:"bottomSheet",enableGlitchEffects:!0,disableScrollWrapper:_o,styles:{},footer:Ft,footerHeight:Wo,children:$t}),zt]})}function Oi(t={}){return h(nt,{...t,inline:!0,visible:!0,onClose:()=>{}})}var v=q.create({inlineRoot:{flex:1,minHeight:0,backgroundColor:"transparent"},inlineHeader:{paddingHorizontal:12,paddingVertical:8,borderBottomWidth:1,borderBottomColor:ie.border.default,backgroundColor:"transparent"},container:{flex:1,backgroundColor:"transparent"},headerChipRow:{flexDirection:"row",alignItems:"center",gap:8},headerChip:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:A.color.surfaceElevated,paddingHorizontal:10,paddingVertical:5,borderRadius:12,borderWidth:1,borderColor:A.color.border},headerChipActive:{backgroundColor:A.color.accentSoft,borderColor:A.color.accentBorderStrong},headerChipLabel:{fontSize:10,fontWeight:"700",color:A.color.textTertiary},headerChipValue:{fontSize:12,fontWeight:"600",fontFamily:Vi},headerActionButton:{width:32,height:32,borderRadius:8,backgroundColor:A.color.surfaceElevated,borderWidth:1,borderColor:A.color.border,alignItems:"center",justifyContent:"center"},headerActionButtonDisabled:{opacity:.55},headerActionButtonActive:{backgroundColor:A.color.accentSoft,borderColor:A.color.accentBorderStrong},startButton:{backgroundColor:ie.semantic.successBackground,borderColor:ie.semantic.success+"40"},stopButton:{backgroundColor:ie.semantic.errorBackground,borderColor:ie.semantic.error+"40"},errorBanner:{flexDirection:"row",alignItems:"center",gap:8,padding:10,marginHorizontal:12,marginTop:8,backgroundColor:A.color.dangerSoft,borderRadius:8,borderWidth:1,borderColor:A.color.danger+"20"},errorText:{color:A.color.danger,fontSize:11,flex:1},disabledBanner:{flexDirection:"row",alignItems:"center",gap:8,padding:10,marginHorizontal:12,marginTop:8,backgroundColor:A.color.warningSoft,borderRadius:8,borderWidth:1,borderColor:A.color.warning+"20"},disabledText:{color:A.color.warning,fontSize:11,flex:1},listContent:{paddingTop:8,paddingBottom:20},lockedBanner:{flexDirection:"row",alignItems:"center",gap:8,padding:10,marginHorizontal:12,marginTop:8,backgroundColor:A.color.accentSoft,borderRadius:8,borderWidth:1,borderColor:A.color.accentBorder},lockedText:{color:A.color.accent,fontSize:11,fontWeight:"500",flex:1},upgradeBadge:{backgroundColor:A.color.accent,paddingHorizontal:8,paddingVertical:3,borderRadius:4},upgradeBadgeText:{color:A.color.onAccent,fontSize:9,fontWeight:"700",letterSpacing:.5}});import{ReduxIcon as Ie,REDUX_ICON_COLOR as ol}from"@buoy-gg/floating-tools-core/web";import{createToolFactory as Pi,defineToolPreset as Wi}from"@buoy-gg/shared-ui/web";import{jsx as Ao}from"react/jsx-runtime";var wo=Wi({id:"redux",name:"REDUX",description:"Redux action & state inspector",slot:"both",icon:({size:t})=>Ao(Ie,{size:t}),component:nt,props:{enableSharedModalDimensions:!1}}),_i=Pi(wo,t=>({enableSharedModalDimensions:t.enableSharedModalDimensions??!1}),t=>({icon:({size:e})=>Ao(Ie,{size:e,color:t.iconColor})}));var Ni={timeTravel:!1,toggle:!1,edit:!1,diff:!0,export:!0,import:!1,reset:!0,recording:!0};function Li(t,e,o){return{id:t.id,label:t.type,timestamp:t.timestamp,data:t.payload??t.action,prevState:t.prevState,nextState:t.nextState,hasStateChange:t.hasStateChange,duration:t.duration,source:"redux",isCurrent:e===0,isInFuture:!1,isSkipped:!1,meta:{fullAction:t.action}}}function To(t){let{icon:e=Ie,color:o="#764ABC",name:n="Redux"}=t??{},r=0;return{id:"redux",name:n,icon:e,color:o,capabilities:Ni,subscribe:a=>y.subscribe(()=>{a()}),getEntries:()=>{let a=y.getActions();return a.map((l,d)=>Li(l,d,a.length))},getEntryCount:()=>y.getActions().length,getCurrentState:()=>{let a=y.getActions();if(a.length!==0)return a[0].nextState},getStateAtEntry:a=>y.getActionById(String(a))?.nextState,get currentIndex(){return r},jumpTo:a=>{let d=y.getActions().findIndex(p=>p.id===String(a));d!==-1&&(r=d)},get isRecording(){return y.getEnabled()},setRecording:a=>{y.setEnabled(a)},reset:()=>{y.clearActions(),r=0},exportHistory:()=>{let a=y.getActions();return JSON.stringify(a,null,2)}}}var Fi=To();import{WIRE_DETAIL_LIMIT_BYTES as $i,capDetail as zi,createSyncAdapter as Hi,memoByIdentity as ji,readParams as Vt,toWire as Ui}from"@buoy-gg/shared-ui/web";var rt=t=>Ui(t,Kt),qi=ji(t=>{let e=J(t.prevState)?{...t}:{...t,prevState:ut,nextState:ut};if(e.payload=rt(e.payload),e.action=rt(e.action),e.error=rt(e.error),e.meta){let o=rt(e.meta.arg);o!==e.meta.arg&&(e.meta={...e.meta,arg:o})}return e});function Yi(t){return t&&typeof t=="object"&&!Array.isArray(t)?Object.keys(t):[]}function Co(){let e=Z().diagnostic??"not-instrumented";return{available:!1,slices:[],reason:e}}var Ji=Hi({version:2,getSnapshot:()=>y.getActions().map(qi),subscribe:t=>y.subscribe(t),actions:{clearEvents:()=>{y.clearActions()},getActionDetail:t=>{let{id:e}=Vt(t);if(!e)return{found:!1,reason:"missing id"};let o=y.getActionById(e);if(!o)return{found:!1,reason:"unknown id"};if(J(o.prevState))return{found:!0,id:e,evicted:!0,reason:"Raw state was evicted (retained for recent actions only)."};let n=i=>zi(i,$i),r=i=>{if(!i)return i;let a=n(i.arg);return a===i.arg?i:{...i,arg:a}};return{found:!0,id:e,prevState:n(o.prevState),nextState:n(o.nextState),payload:n(o.payload),action:n(o.action),meta:r(o.meta),error:n(o.error)}},getState:t=>{let{includeValues:e=!1}=Vt(t),o=qe();if(!o)return Co();let n=o.getState(),r=Z();return{available:!0,slices:Yi(n),capture:r.capture,mechanism:r.mechanism,...e?{state:n}:{}}},dispatch:t=>{let{action:e}=Vt(t),o=qe();if(!o)return{dispatched:!1,...Co()};if(!e)throw new Error("dispatch requires an `action`");return o.dispatch(e),{dispatched:!0,type:e.type}}}});import{useState as Ki}from"react";import{macOSColors as ge,night as G,TabSelector as Xi,DataInspector as me,CollapsibleSection as it,CopyButton as Gi,monoFont as kt}from"@buoy-gg/shared-ui/web";import{jsx as b,jsxs as Y}from"react/jsx-runtime";function Qi({action:t}){let[e,o]=Ki("action"),n=[{key:"action",label:"Action"},{key:"state",label:"State"},{key:"diff",label:"Diff"}],r=new Date(t.timestamp).toLocaleTimeString(),i=()=>JSON.stringify({type:t.type,payload:t.payload,timestamp:t.timestamp,duration:t.duration,hasStateChange:t.hasStateChange},null,2);return Y(s,{style:T.container,children:[Y(s,{style:T.header,children:[Y(s,{style:T.headerContent,children:[b(g,{style:T.actionType,numberOfLines:2,children:t.type}),Y(s,{style:T.headerMeta,children:[b(g,{style:T.metaText,children:r}),t.duration!==void 0&&Y(g,{style:T.durationText,children:[t.duration.toFixed(2),"ms"]}),t.hasStateChange&&b(s,{style:T.changeBadge,children:b(g,{style:T.changeBadgeText,children:"State Changed"})})]})]}),b(Gi,{value:i(),size:16})]}),b(s,{style:T.tabContainer,children:b(Xi,{tabs:n,activeTab:e,onTabChange:a=>o(a)})}),Y(xe,{style:T.content,showsVerticalScrollIndicator:!0,children:[e==="action"&&Y(s,{style:T.section,children:[b(it,{title:"Payload",defaultOpen:!0,children:t.payload!==void 0?b(me,{data:t.payload}):b(g,{style:T.emptyText,children:"No payload"})}),b(it,{title:"Full Action",defaultOpen:!1,children:b(me,{data:t.action})})]}),e==="state"&&Y(s,{style:T.section,children:[b(it,{title:"Previous State",defaultOpen:!1,children:b(me,{data:t.prevState})}),b(it,{title:"Next State",defaultOpen:!0,children:b(me,{data:t.nextState})})]}),e==="diff"&&b(s,{style:T.section,children:t.hasStateChange?b(Zi,{prevState:t.prevState,nextState:t.nextState}):b(s,{style:T.noChangeContainer,children:b(g,{style:T.noChangeText,children:"No state changes from this action"})})})]})]})}function Zi({prevState:t,nextState:e}){let o=Ro(t,e);return o.length===0?b(s,{style:T.noChangeContainer,children:b(g,{style:T.noChangeText,children:"No differences detected"})}):b(s,{children:o.map((n,r)=>Y(s,{style:T.diffItem,children:[Y(s,{style:T.diffHeader,children:[b(s,{style:[T.diffTypeBadge,{backgroundColor:n.type==="added"?ge.semantic.successBackground:n.type==="removed"?ge.semantic.errorBackground:ge.semantic.warningBackground}],children:b(g,{style:[T.diffTypeText,{color:n.type==="added"?ge.semantic.success:n.type==="removed"?ge.semantic.error:ge.semantic.warning}],children:n.type.toUpperCase()})}),b(g,{style:T.diffPath,children:n.path})]}),n.type==="modified"&&Y(s,{style:T.diffValues,children:[Y(s,{style:T.diffValue,children:[b(g,{style:T.diffLabel,children:"Before:"}),b(me,{data:n.oldValue})]}),Y(s,{style:T.diffValue,children:[b(g,{style:T.diffLabel,children:"After:"}),b(me,{data:n.newValue})]})]}),n.type==="added"&&b(s,{style:T.diffValue,children:b(me,{data:n.newValue})}),n.type==="removed"&&b(s,{style:T.diffValue,children:b(me,{data:n.oldValue})})]},r))})}function Ro(t,e,o=""){let n=[];if(typeof t!="object"||typeof e!="object")return t!==e&&n.push({type:"modified",path:o||"root",oldValue:t,newValue:e}),n;if(t===null||e===null)return t!==e&&n.push({type:"modified",path:o||"root",oldValue:t,newValue:e}),n;let r=t,i=e,a=new Set([...Object.keys(r),...Object.keys(i)]);for(let l of a){let d=o?`${o}.${l}`:l,p=r[l],m=i[l];l in r?l in i?p!==m&&(typeof p=="object"&&typeof m=="object"&&p!==null&&m!==null&&!Array.isArray(p)&&!Array.isArray(m)?d.split(".").length<3?n.push(...Ro(p,m,d)):n.push({type:"modified",path:d,oldValue:p,newValue:m}):n.push({type:"modified",path:d,oldValue:p,newValue:m})):n.push({type:"removed",path:d,oldValue:p}):n.push({type:"added",path:d,newValue:m})}return n}var T=q.create({container:{flex:1},header:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:12,backgroundColor:G.color.surface,borderBottomWidth:1,borderBottomColor:G.color.border},headerContent:{flex:1,marginRight:12},actionType:{fontSize:14,fontWeight:"600",color:G.color.text,fontFamily:kt,marginBottom:6},headerMeta:{flexDirection:"row",alignItems:"center",gap:12},metaText:{fontSize:11,color:G.color.textTertiary},durationText:{fontSize:11,color:G.color.textTertiary,fontFamily:kt},changeBadge:{backgroundColor:ge.semantic.warningBackground,paddingHorizontal:6,paddingVertical:2,borderRadius:4},changeBadgeText:{fontSize:10,color:ge.semantic.warning,fontWeight:"600"},tabContainer:{paddingHorizontal:12,paddingVertical:8},content:{flex:1},section:{paddingHorizontal:12,paddingBottom:20},emptyText:{fontSize:12,color:G.color.textTertiary,fontStyle:"italic",padding:8},noChangeContainer:{padding:20,alignItems:"center"},noChangeText:{fontSize:13,color:G.color.textTertiary},diffItem:{marginBottom:12,backgroundColor:G.color.surface,borderRadius:8,borderWidth:1,borderColor:G.color.border,overflow:"hidden"},diffHeader:{flexDirection:"row",alignItems:"center",gap:8,padding:8,borderBottomWidth:1,borderBottomColor:G.color.border},diffTypeBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},diffTypeText:{fontSize:10,fontWeight:"700"},diffPath:{fontSize:12,color:G.color.text,fontFamily:kt},diffValues:{padding:8,gap:8},diffValue:{padding:8},diffLabel:{fontSize:11,color:G.color.textTertiary,marginBottom:4,fontWeight:"600"}});function ea(){return Ee(),null}export{he as BUOY_JUMP_TO_STATE,Ko as BUOY_REPLAY_ACTION,Ei as FREE_TIER_ACTION_LIMIT,f as REDUX_TEST_ID,It as ReduxActionDetailContent,Dt as ReduxActionDetailFooter,Qi as ReduxActionDetailView,Tt as ReduxActionItem,ea as ReduxAutoInstrument,Ie as ReduxIcon,nt as ReduxModal,Oi as ReduxToolView,so as actionRowTestID,Rt as buildActionRowTestIDs,He as buoyDevtoolsEnhancer,Go as buoyReduxMiddleware,Gt as claimDevtoolsHook,Qo as createBuoyReduxMiddleware,To as createReduxHistoryAdapter,_i as createReduxTool,qe as getActiveStore,Z as getInstrumentationStatus,je as instrumentStore,xr as isAutoInstrumentActive,un as isDevtoolsHookClaimed,yr as isStoreInstrumented,ft as jumpToState,y as reduxActionStore,Fi as reduxHistoryAdapter,Ji as reduxSyncAdapter,wo as reduxToolPreset,hr as registerReduxStore,gt as replayAction,ao as slugForTestID,Ue as uninstrumentStore,Ee as useAutoInstrumentRedux,bt as useReduxActions,Sr as useReduxAvailability,Xo as withBuoyDevTools};
1
+ "use client";var Dt=Object.defineProperty;var kr=Object.getOwnPropertyDescriptor;var Er=Object.getOwnPropertyNames;var Vr=Object.prototype.hasOwnProperty;var $r=(e,t)=>{for(var r in t)Dt(e,r,{get:t[r],enumerable:true})},Bt=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Er(t))!Vr.call(e,a)&&a!==r&&Dt(e,a,{get:()=>t[a],enumerable:!(o=kr(t,a))||o.enumerable});return e},zr=(e,t,r)=>(Bt(e,t,"default"),r&&Bt(r,t,"default"));var Rt=process.env.NODE_ENV!=="production";typeof window<"u"&&typeof globalThis.global>"u"&&(globalThis.global=globalThis);import{classifyPreviewItem as Or,createRestoreScope as Lr,registerStateSnapshotProvider as Pr,skippedRestore as Je,unionKeys as Nr,wontApply as jr}from"@buoy-gg/shared-ui/web";var Ge=Symbol.for("@@buoy/enhancerInstrumented"),me=null,be=null,Xe=null,kt=false;function ce(e,t){me=e,be=t,Xe=null}function Fr(e){me===e&&(me=null,be=null)}function de(){return me}function Et(){kt=true}function Qe(){return kt&&me!==null}function Wr(e){Xe=e}function ue(){return{mechanism:be,capture:be==="enhancer"||be==="middleware"?"full":be==="patch"?"top-level-only":"none",hasStore:me!==null,timeTravel:Qe(),diagnostic:Xe}}import{ChangeLog as Mr,approxJsonSize as Hr}from"@buoy-gg/shared-ui/web";var Ze=25,et=Object.freeze({__buoyStateEvicted:true,note:`Raw state retained for the ${Ze} most recent actions only.`}),Vt=Object.freeze({__buoyStateOnDevice:true,note:"State trees stay on the device \u2014 fetched on demand via getActionDetail."}),_r=Object.freeze({__buoyPayloadOnDevice:true,note:"Payload stays on the device \u2014 fetched on demand via getActionDetail."});function Be(e){return typeof e=="object"&&e!==null&&e.__buoyPayloadOnDevice===true}function ee(e){if(typeof e!="object"||e===null)return false;let t=e;return t.__buoyStateEvicted===true||t.__buoyStateOnDevice===true}function qr(e){return e.startsWith("@@")?"internal":e.includes("/pending")?"pending":e.includes("/fulfilled")?"fulfilled":e.includes("/rejected")?"rejected":e.includes("/executeQuery")?"query":e.includes("/executeMutation")?"mutation":"action"}function Ur(e){if(e.startsWith("@@")){let r=e.split("/");return{sliceName:null,actionName:r[r.length-1]||e}}let t=e.split("/");if(t.length>=2){let r=t[0],o=t[1];return t.length>=3&&["pending","fulfilled","rejected"].includes(t[t.length-1])&&(o=t.slice(1,-1).join("/")),{sliceName:r,actionName:o.toUpperCase()}}return{sliceName:null,actionName:e.toUpperCase()}}function $t(e,t){return Hr(e,t).bytes>t}function Kr(e,t=40){if(e===void 0)return"";if(e===null)return"null";try{if(typeof e=="string")return e.length>t?`"${e.slice(0,t-3)}..."`:`"${e}"`;if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";if($t(e,t))return`[${e.length} items]`;let r=JSON.stringify(e);return r.length>t?`[${e.length} items]`:r}if(typeof e=="object"){let r=Object.keys(e);if(r.length===0)return"{}";if($t(e,t))return`{ ${r.length} keys }`;let o=JSON.stringify(e);return o.length<=t?o:`{ ${r.length} keys }`}return String(e).slice(0,t)}catch{return"[complex]"}}function Yr(e,t){if(e===t)return{summary:"no change",changedCount:0};if(typeof e!="object"||typeof t!="object"||e===null||t===null)return{summary:"changed",changedCount:1};let r=Object.keys(e),o=Object.keys(t),a=o.filter(p=>!r.includes(p)).length,n=r.filter(p=>!o.includes(p)).length,c=0;for(let p of r)o.includes(p)&&e[p]!==t[p]&&c++;let l=[];a>0&&l.push(`+${a}`),n>0&&l.push(`-${n}`),c>0&&l.push(`~${c}`);let u=a+n+c;return l.length===0?{summary:"nested change",changedCount:1}:{summary:`${l.join(" ")} ${u===1?"key":"keys"}`,changedCount:u}}function Jr(e){let t=e.meta;if(t)return{requestId:t.requestId,requestStatus:t.requestStatus,arg:t.arg,rejectedWithValue:t.rejectedWithValue,aborted:t.aborted,condition:t.condition}}var Gr=class extends Mr{addAction(e,t,r,o){if(!this.canRecord())return;let a=e.type||"";if(!a)return;let n=t!==r,c=qr(a),{sliceName:l,actionName:u}=Ur(a),p=Jr(e),f=Kr(e.payload),{summary:I,changedCount:S}=Yr(t,r),O=(o??0)>16,L={id:this.nextId(),type:a,payload:e.payload,action:e,timestamp:Date.now(),prevState:t,nextState:r,duration:o,hasStateChange:n,category:c,sliceName:l,actionName:u,meta:p,error:e.error,payloadPreview:f,diffSummary:I,changedKeysCount:S,isSlowAction:O};this.push(L);for(let V=Ze;V<this.items.length;V++){let $=this.items[V];if($.prevState!==et)$.prevState=et,$.nextState=et;else break}this.notifyListeners()}getActions(){return this.getAll()}getActionById(e){return this.getById(e)}clearActions(){this.clear()}replaceActions(e){if(!this.getEnabled())return;let t=new Map;for(let o of this.items)o.prevState!==void 0&&!ee(o.prevState)&&t.set(o.id,o);let r=e.slice(0,this.max).map(o=>{let a=t.get(o.id);return!a||!ee(o.prevState)?o:{...o,prevState:a.prevState,nextState:a.nextState,payload:Be(o.payload)?a.payload:o.payload,action:Be(o.action)?a.action:o.action,meta:Be(o.meta?.arg)?a.meta:o.meta,error:Be(o.error)?a.error:o.error}});this.setItems(r)}hydrateAction(e,t){this.hydrateById(e,t)}setMaxActions(e){this.setMax(e)}getStats(){let e=this.items.length,t=this.items.filter(n=>n.hasStateChange).length,r=new Set(this.items.map(n=>n.type)),o=this.items.filter(n=>n.duration!==void 0).map(n=>n.duration),a=o.length>0?o.reduce((n,c)=>n+c,0)/o.length:0;return{totalActions:e,actionsWithChanges:t,actionsWithoutChanges:e-t,uniqueActionTypes:r.size,averageDuration:Math.round(a*100)/100}}filterActions(e){let t=[...this.items];if(e.searchText){let r=e.searchText.toLowerCase();t=t.filter(o=>o.type.toLowerCase().includes(r))}return e.actionTypes&&e.actionTypes.length>0&&(t=t.filter(r=>e.actionTypes.includes(r.type))),e.onlyWithChanges&&(t=t.filter(r=>r.hasStateChange)),t}getUniqueActionTypes(){return Array.from(new Set(this.items.map(e=>e.type))).sort()}getRelatedActions(e){return this.items.filter(t=>t.meta?.requestId===e).sort((t,r)=>t.timestamp-r.timestamp)}getLinkedActions(e){return e.meta?.requestId?this.getRelatedActions(e.meta.requestId):[]}getLinkedActionsCount(e){return e.meta?.requestId?this.items.filter(t=>t.meta?.requestId===e.meta?.requestId).length:0}getAsyncOperationDuration(e){let t=this.getRelatedActions(e);if(t.length<2)return null;let r=t.find(a=>a.category==="pending"),o=t.find(a=>a.category==="fulfilled"||a.category==="rejected");return r&&o?o.timestamp-r.timestamp:null}getBaseActionType(e){let t=e.split("/");if(t.length>=2){let r=t[t.length-1];if(["pending","fulfilled","rejected"].includes(r))return t.slice(0,-1).join("/")}return e}getAsyncOperationIndex(e){let t=new Map;for(let o of this.items)o.meta?.requestId&&!t.has(o.meta.requestId)&&t.set(o.meta.requestId,o.timestamp);let r=Array.from(t.entries()).sort((o,a)=>o[1]-a[1]).map(([o])=>o).indexOf(e);return r>=0?r+1:0}},m=new Gr;var tt=false;function zt(){return tt}var Se="@@buoy/JUMP_TO_STATE",Xr="@@buoy/REPLAY_ACTION";function Ot(e){if(ee(e)){console.warn("[BuoyRedux] Cannot jump - this action's state was evicted (raw state is retained for recent actions only)");return}let t=de();if(!t){console.warn("[BuoyRedux] Cannot jump to state - no store instrumented");return}if(!Qe()){console.warn("[BuoyRedux] Cannot jump to state - the root reducer cannot serve a state jump. Capture and time travel are wired separately: either put `import '@buoy-gg/redux';` first in your app entry (so Buoy is the store enhancer), or wrap your root reducer with withBuoyDevTools().");return}t.dispatch({type:Se,payload:e})}function Lt(e){let t=de();t?t.dispatch(e):console.warn("[BuoyRedux] Cannot replay action - no store instrumented")}function Qr(e){return Et(),(t,r)=>r.type===Se?r.payload:e(t,r)}var Zr=e=>(tt=true,ce(e,"middleware"),t=>r=>{let o=r;if(o.type?.startsWith("@@buoy/"))return t(r);let a=performance.now(),n=e.getState(),c=t(r),l=e.getState(),u=performance.now()-a;return m.addAction(o,n,l,u),c});function eo(e={}){let{maxActions:t=200,ignoreActions:r=[]}=e;return m.setMaxActions(t),o=>(tt=true,ce(o,"middleware"),a=>n=>{let c=n,l=c.type||"";if(l?.startsWith("@@buoy/")||r.includes(l))return a(n);let u=performance.now(),p=o.getState(),f=a(n),I=o.getState(),S=performance.now()-u;return m.addAction(c,p,I,S),f})}var Re="enable restore by using the Buoy enhancer or wrapping your root reducer in withBuoyDevTools()";function to(){let{mechanism:e,hasStore:t,diagnostic:r}=ue();return t?e==="patch"?{canCapture:true,canRestore:false,detail:`Auto-instrumented store cannot be restored \u2014 ${Re}`}:{canCapture:true,canRestore:true,detail:e==="middleware"?"Restore requires withBuoyDevTools(rootReducer) \u2014 verified at restore time":void 0}:{canCapture:false,canRestore:false,detail:r==="no-react-redux"?"react-redux not installed":r==="no-provider"?"No Redux <Provider> found":"No Redux store instrumented"}}async function ro(){let e=de();return e?{data:{state:e.getState()},warnings:[]}:{data:null,warnings:["no Redux store instrumented"]}}async function oo(e,t){let r=e,o=de();if(!o||r===void 0||r===null)return Je("redux",o?"empty redux snapshot":"no Redux store instrumented");let{mechanism:a}=ue();if(a==="patch")return Je("redux",`restore unavailable on auto-instrumented stores \u2014 ${Re}`);let n=Lr(t),c=Object.keys(r.state??{}).filter(u=>!n.touch(u)),l=r.state;if(c.length>0){let u=o.getState(),p={...r.state};for(let f of c)p[f]=u?.[f];l=p}if(o.dispatch({type:Se,payload:l}),o.getState()===l){let u=c.length>0?[`${c.length} slice(s) excluded by you`]:[];return{ok:true,applied:1,skipped:[],warnings:u}}return Je("redux",`store ignored the state jump \u2014 ${Re}`)}async function ao(e,t){let r=e?.state,o=t===void 0,a=de(),n=o?a?.getState():t?.state,c=[],l=[],u;if(o){let{mechanism:I,hasStore:S}=ue();S?I==="patch"&&(u=`auto-instrumented store cannot be restored \u2014 ${Re}`):u="no Redux store instrumented"}let p=n??{},f=r??{};for(let I of Nr(p,f)){let S=Or({key:I,label:I,oldValue:p[I],newValue:f[I],inOld:Object.prototype.hasOwnProperty.call(p,I),inNew:Object.prototype.hasOwnProperty.call(f,I)},{tooLargeReason:"slice too large to render a diff \u2014 restore still applies it"});u&&(S=jr(S,u)),c.push(S)}return u&&l.push(`Redux restore unavailable: ${u}`),{items:c,notes:l}}Pr({id:"redux",label:"Redux",status:to,capture:ro,restore:oo,previewItems:ao});function rt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...o)=>t(r(...o)))}function Pt(e){return Et(),(t,r)=>r&&r.type===Se?r.payload:e(t,r)}function no(e){if(typeof e!="object"||e===null)return false;let t=e.type;return typeof t!="string"?false:!t.startsWith("@@buoy/")&&!t.startsWith("@@redux/")}var ke=e=>(t,r)=>{let o=e(Pt(t),r),a={...o,dispatch:n=>{if(!no(n)||zt())return o.dispatch(n);let c=performance.now(),l=o.getState(),u=o.dispatch(n);return m.addAction(n,l,o.getState(),performance.now()-c),u},replaceReducer:n=>o.replaceReducer(Pt(n)),[Ge]:true};return ce(a,"enhancer"),a};function io(...e){return e.length===0?rt(ke):e.length===1&&typeof e[0]=="object"&&e[0]!==null?(...t)=>rt(...t,ke):rt(...e,ke)}var ot=false;function Nt(){if(!(typeof Rt<"u"&&Rt))return false;let e=globalThis;return e.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||(e.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__=io,ot=true),ot}function lo(){return ot}Nt();import{useState as Ee,useMemo as we,useRef as Ve,useCallback as te,useEffect as jt}from"react";var Ft={};$r(Ft,{AccessibilityInfo:()=>po,ActivityIndicator:()=>ia,Alert:()=>ca,Animated:()=>go,AppRegistry:()=>fo,AppState:()=>yo,Appearance:()=>ho,BackHandler:()=>mo,Button:()=>la,CheckBox:()=>$o,Clipboard:()=>bo,DeviceEventEmitter:()=>Yo,Dimensions:()=>xo,Easing:()=>Co,FlatList:()=>Wt,I18nManager:()=>So,Image:()=>zo,ImageBackground:()=>Oo,InteractionManager:()=>To,Keyboard:()=>wo,KeyboardAvoidingView:()=>Lo,LayoutAnimation:()=>vo,Linking:()=>Io,LogBox:()=>Ko,Modal:()=>aa,NativeEventEmitter:()=>Ao,NativeModules:()=>uo,PanResponder:()=>Do,Picker:()=>Po,PixelRatio:()=>Bo,Platform:()=>Ro,Pressable:()=>oa,ProgressBar:()=>No,RefreshControl:()=>jo,SafeAreaView:()=>Fo,ScrollView:()=>$e,SectionList:()=>Wo,Share:()=>ko,StatusBar:()=>Mo,StyleSheet:()=>pe,Switch:()=>na,Text:()=>h,TextInput:()=>ea,Touchable:()=>Ho,TouchableHighlight:()=>ta,TouchableNativeFeedback:()=>_o,TouchableOpacity:()=>J,TouchableWithoutFeedback:()=>ra,UIManager:()=>Eo,Vibration:()=>Vo,View:()=>i,VirtualizedList:()=>qo,YellowBox:()=>Uo,findNodeHandle:()=>sa,unstable_createElement:()=>co,useColorScheme:()=>Jo,useLocaleContext:()=>Go,useWindowDimensions:()=>Xo});zr(Ft,so);import*as so from"react-native-web";import{unstable_createElement as co,NativeModules as uo,AccessibilityInfo as po,Animated as go,Appearance as ho,AppRegistry as fo,AppState as yo,BackHandler as mo,Clipboard as bo,Dimensions as xo,Easing as Co,I18nManager as So,Keyboard as wo,InteractionManager as To,LayoutAnimation as vo,Linking as Io,NativeEventEmitter as Ao,PanResponder as Do,PixelRatio as Bo,Platform as Ro,Share as ko,StyleSheet as pe,UIManager as Eo,Vibration as Vo,CheckBox as $o,FlatList as Wt,Image as zo,ImageBackground as Oo,KeyboardAvoidingView as Lo,Picker as Po,ProgressBar as No,RefreshControl as jo,SafeAreaView as Fo,SectionList as Wo,StatusBar as Mo,Touchable as Ho,TouchableNativeFeedback as _o,VirtualizedList as qo,YellowBox as Uo,LogBox as Ko,DeviceEventEmitter as Yo,useColorScheme as Jo,useLocaleContext as Go,useWindowDimensions as Xo}from"react-native-web";import*as H from"react-native-web";import{createElement as Qo,forwardRef as Zo}from"react";function q(e){let t=Zo((o,a)=>{let{accessibilityState:n,accessibilityValue:c,...l}=o;for(let u of["busy","checked","disabled","expanded","selected"])n?.[u]!==void 0&&l[`aria-${u}`]===void 0&&(l[`aria-${u}`]=n[u]);for(let[u,p]of Object.entries({min:"valuemin",max:"valuemax",now:"valuenow",text:"valuetext"}))c?.[u]!==void 0&&l[`aria-${p}`]===void 0&&(l[`aria-${p}`]=c[u]);return Qo(e,{...l,ref:a})}),r=e.State;return r&&Object.assign(t,{State:r}),t.displayName=e.displayName??e.name??"NativeWebView",t}var i=q(H.View),h=q(H.Text),ea=q(H.TextInput),J=q(H.TouchableOpacity),ta=q(H.TouchableHighlight),ra=q(H.TouchableWithoutFeedback),oa=q(H.Pressable),$e=q(H.ScrollView),aa=q(H.Modal),na=q(H.Switch),ia=q(H.ActivityIndicator),la=q(H.Button),sa=H.findNodeHandle,ca={alert(e,t,r,o){if(typeof document>"u")return;let a=document.createElement("dialog");a.dataset.buoyRoot="",a.setAttribute("aria-label",e),a.style.cssText="position:fixed;inset:0;margin:auto;width:min(440px,90vw);padding:24px;border:1px solid #475569;border-radius:14px;background:#17212e;color:#f1f5f9;font:14px system-ui;box-shadow:0 20px 80px #0008;z-index:2147483647";let n=document.createElement("h2");if(n.textContent=e,n.style.cssText="font-size:18px;margin:0 0 12px",a.appendChild(n),t){let p=document.createElement("p");p.textContent=t,p.style.cssText="line-height:1.5;white-space:pre-wrap;margin:0 0 20px",a.appendChild(p)}let c=document.createElement("div");c.style.cssText="display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px";let l=r?.length?r:[{text:"OK"}],u=()=>{a.close?.(),a.remove()};for(let p of l){let f=document.createElement("button");f.type="button",f.textContent=p.text??"OK",f.style.cssText=`padding:9px 14px;border:1px solid #64748b;border-radius:7px;color:white;background:${p.style==="destructive"?"#a52b38":"#283a4d"};cursor:pointer;font:inherit`,f.onclick=()=>{u(),p.onPress?.()},c.appendChild(f)}a.addEventListener("cancel",p=>{p.preventDefault(),o?.cancelable!==false&&(u(),o?.onDismiss?.())}),a.appendChild(c),document.body.appendChild(a),a.showModal?a.showModal():a.setAttribute("open","")}};import{JsModal as da,ModalHeader as re,macOSColors as G,night as w,Search as ua,Trash2 as pa,Power as ga,Zap as ha,CheckCircle as fa,Copy as ya,Lock as ma,AlertTriangle as Mt,devToolsStorageKeys as ba,copyToClipboard as xa,ProUpgradeModal as Ca,PowerToggleButton as Sa,TickProvider as Ht,useLimit as wa,TIER_LIMITS as Ta,windowDragProps as va,ToolEmptyState as Ia,resolveListEmptyState as Aa,EVENT_LIST_PRESET as Da,monoFont as Ba}from"@buoy-gg/shared-ui/web";import{useIsPro as Ra}from"@buoy-gg/license/web";import{useState as ka,useMemo as _t,useCallback as qt}from"react";import{useChangeLog as Ea}from"@buoy-gg/shared-ui/web";var Va=(e,t)=>m.filterActions(t);function Ut(){let e=Ea(m,{filterItems:Va}),[t,r]=ka(null),o=_t(()=>m.getStats(),[e.items]),a=_t(()=>m.getUniqueActionTypes(),[e.items]),n=qt(()=>{m.clearActions(),r(null)},[]),c=qt(l=>m.getActionById(l),[]);return{actions:e.items,filteredActions:e.filteredItems,filter:e.filter,setFilter:e.setFilter,stats:o,clearActions:n,isEnabled:e.isEnabled,toggleCapture:e.toggleCapture,actionTypes:a,getActionById:c,selectedAction:t,setSelectedAction:r}}import{useStore as $a}from"react-redux";function Kt(){return $a}import{useEffect as za,useState as ze,useRef as Yt,useCallback as Jt}from"react";var Te=Symbol.for("@@buoy/instrumented"),at=Symbol.for("@@buoy/originalDispatch");function Oa(e){let t=e;return t[Te]===true||t[Ge]===true}function nt(e,t={}){let r=e;if(r[Ge])return ce(e,"enhancer"),()=>{};if(zt())return ce(e,"middleware"),()=>{};if(r[Te])return ce(e,"patch"),()=>{};let{maxActions:o=200,ignoreActions:a=[]}=t;m.setMaxActions(o);let n=e.dispatch.bind(e);r[at]=n;let c=(l=>{if(typeof l!="object"||l===null||typeof l.type!="string")return n(l);let u=l.type;if(u.startsWith("@@buoy/")||u.startsWith("@@redux/")||a.includes(u))return n(l);let p=performance.now(),f=e.getState(),I=n(l),S=e.getState(),O=performance.now()-p;return m.addAction(l,f,S,O),I});return e.dispatch=c,r[Te]=true,ce(e,"patch"),()=>{it(e)}}function it(e){let t=e;if(t[Te]){let r=t[at];r&&(e.dispatch=r),delete t[Te],delete t[at]}Fr(e)}function La(e,t={}){return nt(e,t)}function lt(){return de()}function Pa(){return de()!==null}function st(e={}){let{autoStart:t=true}=e,r=Yt(e);r.current=e;let[o,a]=ze(false),[n,c]=ze(true),[l,u]=ze(null),[p,f]=ze(null),I=Yt(null),S=Kt(),O=S!==null,L=null,V=null,$=null;if(S)try{L=S()}catch(P){$="no-provider",V=P instanceof Error?P.message:"Failed to access Redux store. Make sure your app is wrapped in a Redux Provider."}else $="no-react-redux",V="react-redux is not installed or not available";let F=Jt(()=>{if(!L){Wr($),u(V||"No Redux store available"),c(false);return}try{let P=nt(L,r.current);I.current=P,a(true),f(L),u(null)}catch(P){u(P instanceof Error?P.message:"Failed to instrument Redux store"),a(false)}finally{c(false)}},[L]),B=Jt(()=>{I.current&&(I.current(),I.current=null),p&&it(p),a(false),f(null)},[p]);return za(()=>(t?F():c(false),()=>{}),[t,F]),{isInstrumented:o,isLoading:n,error:l,isReactReduxAvailable:O,captureMechanism:ue().mechanism,startInstrumentation:F,stopInstrumentation:B,store:p}}function Na(){let e=Kt();if(!e)return{isAvailable:false,error:"react-redux is not installed"};try{let t=e();return{isAvailable:t!=null,error:null}}catch(t){return{isAvailable:false,error:t instanceof Error?t.message:"Not inside a Redux Provider"}}}import{memo as ja}from"react";import{ChangeRow as ve,buoyColors as oe,AlertCircle as Fa,monoFont as Wa}from"@buoy-gg/shared-ui/web";import{jsx as ae,jsxs as Gt}from"react/jsx-runtime";var Xt=[{bg:"rgba(99, 102, 241, 0.25)",text:"#818CF8"},{bg:"rgba(236, 72, 153, 0.25)",text:"#F472B6"},{bg:"rgba(14, 165, 233, 0.25)",text:"#38BDF8"},{bg:"rgba(245, 158, 11, 0.25)",text:"#FBBF24"},{bg:"rgba(16, 185, 129, 0.25)",text:"#34D399"},{bg:"rgba(168, 85, 247, 0.25)",text:"#C084FC"},{bg:"rgba(239, 68, 68, 0.25)",text:"#F87171"},{bg:"rgba(20, 184, 166, 0.25)",text:"#2DD4BF"}];function Ma(e){return e<=0?{bg:"rgba(142, 142, 147, 0.2)",text:oe.textSecondary}:Xt[(e-1)%Xt.length]}var ct={cart:"#10B981",user:"#3B82F6",auth:"#8B5CF6",app:"#6366F1",ui:"#EC4899",settings:"#F59E0B",api:"#14B8A6",data:"#06B6D4"};function Ha(e){if(!e)return"#6B7280";let t=e.toLowerCase();if(ct[t])return ct[t];for(let[r,o]of Object.entries(ct))if(t.includes(r))return o;return`hsl(${e.split("").reduce((r,o)=>r+o.charCodeAt(0),0)*137%360}, 70%, 60%)`}function _a(e,t){switch(e){case"pending":return"Pending";case"fulfilled":return"Success";case"rejected":return"Error";case"internal":return"Internal";case"query":return"Query";case"mutation":return"Mutation";default:return t?t.charAt(0).toUpperCase()+t.slice(1):"Action"}}function qa(e,t,r){switch(e){case"pending":return oe.warning;case"fulfilled":return oe.success;case"rejected":return oe.error;case"internal":return oe.textMuted;case"query":return oe.info;case"mutation":return oe.info;default:return Ha(r)}}function Ua(e){let t=[];return e.duration!==void 0&&e.duration>=.1&&t.push(`${e.duration.toFixed(1)}ms`),e.hasStateChange?e.changedKeysCount&&e.changedKeysCount>0?t.push(`${e.changedKeysCount} key${e.changedKeysCount>1?"s":""} changed`):t.push(e.diffSummary||"state changed"):t.push("no state change"),t.join(" \xB7 ")}function Ka(e){return e.actionName?.toUpperCase()||e.type.split("/").pop()?.toUpperCase()||""}function Ya(e){if(e.category==="internal")return e.type;let t=e.type.split("/");return t.length>=3&&["pending","fulfilled","rejected"].includes(t[t.length-1])?t.slice(0,-1).join("/"):e.type}var Qt=ja(function({action:e,onPress:t,linkedCount:r,testID:o}){let a=e.sliceName??void 0,n=qa(e.category,e.hasStateChange,a),c=_a(e.category,a),l=Ua(e),u=Ya(e),p=Ka(e),f=(r??0)>1,I=f?m.getLinkedActions(e):[],S=f?I.findIndex(F=>F.id===e.id)+1:0,O=f&&e.meta?.requestId?m.getAsyncOperationIndex(e.meta.requestId):0,L=Ma(O),V=f?ae(i,{style:[Oe.asyncSequenceBadge,{backgroundColor:L.bg}],children:Gt(h,{style:[Oe.asyncSequenceText,{color:L.text}],testID:o?`${o}-seq`:void 0,children:[S,"/",r," #",O]})}):void 0,$={statusColor:n,statusLabel:c,sublabel:l,primaryText:u,timestamp:e.timestamp,onPress:()=>t(e),testID:o,accessibilityLabel:`${u}, ${c}, ${l}`};return e.isSlowAction?ae(ve,{...$,badgePrefix:V,slow:true}):e.category==="rejected"?ae(ve,{...$,customBadge:Gt(i,{style:Oe.badgeContainer,children:[V,ae(i,{style:Oe.errorBadge,testID:o?`${o}-error`:void 0,children:ae(Fa,{size:12,color:oe.error})})]})}):f?ae(ve,{...$,badgePrefix:V,changed:e.hasStateChange}):e.hasStateChange?ae(ve,{...$,badgeText:p,changed:true}):ae(ve,{...$,plainBadgeText:p})}),Oe=pe.create({badgeContainer:{flexDirection:"row",alignItems:"center",gap:4},errorBadge:{paddingHorizontal:4},asyncSequenceBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},asyncSequenceText:{fontSize:10,fontWeight:"600",fontFamily:Wa}});import{useState as Zt,useCallback as Le,useMemo as er}from"react";import{macOSColors as Ie,night as X,EventStepperFooter as tr,formatRelativeTime as Pe,parseValue as Ne,monoFont as Ae}from"@buoy-gg/shared-ui/web";import{DataViewer as Ja,SplitDiffViewer as Ga,TreeDiffViewer as Xa,diffThemes as Qa}from"@buoy-gg/shared-ui/web/dataViewer";import{memo as Za}from"react";import{DetailViewToggle as en,FileText as tn,Database as rn,GitBranch as on}from"@buoy-gg/shared-ui/web";import{jsx as an}from"react/jsx-runtime";var nn=[{key:"action",label:"ACTION",description:"View action details",icon:tn},{key:"state",label:"STATE",description:"View current state",icon:rn},{key:"diff",label:"DIFF",description:"Compare changes",icon:on}],ln=["diff"],sn=Za(function({activeView:e,onViewChange:t,diffDisabled:r=false}){return an(en,{views:nn,activeView:e,onViewChange:t,disabledKeys:r?ln:void 0,testIDPrefix:"buoy-redux"})});import{memo as cn,useMemo as dn,useCallback as je,useState as un,useEffect as pn}from"react";import{buoyColors as A,night as x,Clock as gn,AlertTriangle as hn,Zap as fn,Hash as rr,Info as yn,Box as mn,AlertCircle as bn,FileText as xn,parseValue as Fe,ProUpgradeModal as Cn,copyToClipboard as or,InfoRow as ne,monoFont as ie}from"@buoy-gg/shared-ui/web";import{useIsPro as Sn}from"@buoy-gg/license/web";import{DataViewer as We}from"@buoy-gg/shared-ui/web/dataViewer";import{night as D,monoFont as wn}from"@buoy-gg/shared-ui/web";import{jsx as ar,jsxs as Tn}from"react/jsx-runtime";var vn={replay:{color:D.color.accent,backgroundColor:D.color.accent+"15",borderColor:D.color.accent+"40",textColor:D.color.accent},copy:{color:D.color.accent,backgroundColor:D.color.accent+"15",borderColor:D.color.accent+"40",textColor:D.color.accent},jump:{color:D.color.warning,backgroundColor:D.color.warning+"15",borderColor:D.color.warning+"40",textColor:D.color.warning},skip:{color:D.color.textSecondary,backgroundColor:D.color.textSecondary+"26",borderColor:D.color.textSecondary+"59",textColor:D.color.textSecondary},clear:{color:D.color.danger,backgroundColor:D.color.danger+"15",borderColor:D.color.danger+"40",textColor:D.color.danger},diff:{color:D.color.info,backgroundColor:D.color.info+"15",borderColor:D.color.info+"40",textColor:D.color.info}};function Me({onPress:e,text:t,type:r,disabled:o=false,testID:a}){let n=vn[r];return Tn(J,{testID:a,disabled:o,onPress:e,style:[dt.button,{backgroundColor:o?D.color.textTertiary+"1A":n.backgroundColor,borderColor:o?D.color.textTertiary+"33":n.borderColor,opacity:o?.5:1}],activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:t,accessibilityState:{disabled:o},children:[ar(i,{style:[dt.dot,{backgroundColor:o?D.color.textTertiary:n.color}]}),ar(h,{style:[dt.text,{color:o?D.color.textTertiary:n.textColor}],children:t})]})}var dt=pe.create({button:{flexDirection:"row",alignItems:"center",justifyContent:"center",borderRadius:6,borderWidth:1,paddingHorizontal:12,paddingVertical:6,height:25,minWidth:80,shadowOffset:{width:0,height:1},shadowOpacity:.2,shadowRadius:2,elevation:2},dot:{width:5,height:5,borderRadius:3,marginRight:6,shadowColor:D.color.text,shadowOffset:{width:0,height:0},shadowOpacity:.6,shadowRadius:2},text:{fontSize:10,fontWeight:"600",letterSpacing:.5,textTransform:"uppercase",fontFamily:wn,height:12}});var g="buoy-redux";function nr(e){return String(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"unknown"}function ir(e,t){return`${g}-row-${nr(e)}-${t}`}function lr(e){let t=new Map,r=new Map;for(let o of e){let a=(t.get(o.type)??0)+1;t.set(o.type,a),r.set(o.id,ir(o.type,a))}return r}import{jsx as d,jsxs as R}from"react/jsx-runtime";function sr(e){switch(e){case"pending":return{label:"PENDING",color:A.warning,bgColor:A.warning+"26"};case"fulfilled":return{label:"FULFILLED",color:A.success,bgColor:A.success+"26"};case"rejected":return{label:"REJECTED",color:A.error,bgColor:A.error+"26"};case"internal":return{label:"INTERNAL",color:A.textMuted,bgColor:A.textMuted+"26"};case"query":return{label:"QUERY",color:A.info,bgColor:A.info+"26"};case"mutation":return{label:"MUTATION",color:A.info,bgColor:A.info+"26"};default:return{label:"ACTION",color:A.info,bgColor:A.info+"26"}}}function In(e){return e===void 0?"N/A":e<1?"<1ms":`${e.toFixed(1)}ms`}function xe({icon:e,title:t,badge:r,testID:o}){return R(i,{style:s.sectionHeader,testID:o,children:[R(i,{style:s.sectionHeaderLeft,children:[d(e,{size:14,color:x.color.accent}),d(h,{style:s.sectionTitle,children:t})]}),r]})}function An(e){let t=new Date(e),r=t.getHours().toString().padStart(2,"0"),o=t.getMinutes().toString().padStart(2,"0"),a=t.getSeconds().toString().padStart(2,"0"),n=t.getMilliseconds().toString().padStart(3,"0");return`${r}:${o}:${a}.${n}`}var Dn=cn(function({action:e,onNavigateToAction:t}){let r=Sn(),[o,a]=un(false);pn(()=>{o&&r&&a(false)},[o,r]);let n=sr(e.category),c=ee(e.nextState),l=Qe(),u=c||!l,p=e.payload!==void 0,f=e.meta&&Object.keys(e.meta).length>0,I=e.error!==void 0,S=dn(()=>m.getLinkedActions(e),[e]),O=S.length>1,L=O?m.getBaseActionType(e.type):null,V=e.meta?.requestId?m.getAsyncOperationDuration(e.meta.requestId):null,$=je(async()=>{if(!r){a(true);return}await or(e.action)},[e,r]),F=je(async()=>{if(!r){a(true);return}await or(e.payload)},[e.payload,r]),B=je(()=>{e.action&&typeof e.action=="object"&&"type"in e.action&&Lt(e.action)},[e]),P=je(()=>{e.nextState!==void 0&&Ot(e.nextState)},[e]);return R($e,{testID:`${g}-detail-scroll`,style:s.container,contentContainerStyle:s.contentContainer,showsVerticalScrollIndicator:false,children:[R(i,{style:s.card,testID:`${g}-info-card`,children:[d(xe,{icon:yn,title:"ACTION INFO"}),R(i,{style:s.cardContent,children:[d(ne,{label:"Type",value:e.type,mono:true,testID:`${g}-info-type`}),e.sliceName&&d(ne,{label:"Slice",value:e.sliceName,mono:true,testID:`${g}-info-slice`}),d(ne,{label:"Action",value:e.actionName,mono:true,testID:`${g}-info-action`}),R(i,{style:s.badgeRow,children:[d(i,{style:[s.categoryBadge,{backgroundColor:n.bgColor}],children:d(h,{style:[s.categoryText,{color:n.color}],testID:`${g}-info-category`,children:n.label})}),R(i,{style:[s.durationBadge,e.isSlowAction&&s.durationBadgeSlow],children:[d(gn,{size:10,color:e.isSlowAction?A.error:x.color.textSecondary}),d(h,{style:[s.durationText,e.isSlowAction&&s.durationTextSlow],testID:`${g}-info-duration`,children:In(e.duration)}),e.isSlowAction&&d(hn,{size:10,color:A.error})]}),e.hasStateChange?R(i,{style:s.changesBadge,children:[d(fn,{size:10,color:A.success}),d(h,{style:s.changesText,testID:`${g}-info-changes`,children:e.diffSummary||"changed"})]}):d(i,{style:s.noChangesBadge,children:d(h,{style:s.noChangesText,testID:`${g}-info-no-changes`,children:"no change"})})]})]})]}),O&&R(i,{style:s.card,testID:`${g}-async-card`,children:[d(xe,{icon:rr,title:"ASYNC FLOW",badge:d(i,{style:s.asyncBadge,children:R(h,{style:s.asyncBadgeText,testID:`${g}-async-count`,children:[S.length," ACTIONS"]})})}),R(i,{style:s.cardContent,children:[d(h,{style:s.baseActionType,testID:`${g}-async-base`,children:L}),V!==null&&R(i,{style:s.totalDurationRow,children:[d(h,{style:s.totalDurationLabel,children:"Total Duration"}),R(h,{style:s.totalDurationValue,testID:`${g}-async-total`,children:[V,"ms"]})]}),d(i,{style:s.timeline,children:S.map((M,W)=>{let Q=sr(M.category),Y=M.id===e.id;return R(J,{style:[s.timelineItem,Y&&s.timelineItemCurrent],onPress:()=>t?.(M),disabled:Y||!t,activeOpacity:.7,testID:`${g}-async-step-${W}`,children:[W<S.length-1&&d(i,{style:s.timelineConnector}),d(i,{style:[s.timelineDot,{backgroundColor:Q.color}]}),R(i,{style:s.timelineContent,children:[R(i,{style:s.timelineHeader,children:[d(i,{style:[s.timelineStatusBadge,{backgroundColor:Q.bgColor}],children:d(h,{style:[s.timelineStatusText,{color:Q.color}],testID:`${g}-async-step-${W}-status`,children:Q.label})}),Y&&d(i,{style:s.currentBadge,testID:`${g}-async-step-${W}-current`,children:d(h,{style:s.currentBadgeText,children:"CURRENT"})})]}),d(h,{style:s.timelineTime,children:An(M.timestamp)})]})]},M.id)})})]})]}),p&&R(i,{style:s.card,testID:`${g}-payload-card`,children:[d(xe,{icon:mn,title:"PAYLOAD",badge:d(i,{style:s.typeBadge,children:d(h,{style:s.typeText,children:Array.isArray(e.payload)?"ARRAY":typeof e.payload=="object"?"OBJECT":typeof e.payload?.toString().toUpperCase()})})}),d(i,{style:s.dataViewerContainer,children:d(We,{title:"",data:Fe(e.payload),showTypeFilter:true,rawMode:true,initialExpanded:true})})]}),f&&R(i,{style:s.card,testID:`${g}-meta-card`,children:[d(xe,{icon:rr,title:"ASYNC METADATA",badge:d(i,{style:[s.categoryBadge,{backgroundColor:n.bgColor}],children:d(h,{style:[s.categoryText,{color:n.color}],children:"RTK THUNK"})})}),R(i,{style:s.cardContent,children:[e.meta?.requestId&&d(ne,{label:"Request ID",value:e.meta.requestId,mono:true}),e.meta?.requestStatus&&d(ne,{label:"Status",value:e.meta.requestStatus.toUpperCase(),valueColor:n.color,testID:`${g}-meta-status`}),e.meta?.arg!==void 0&&R(i,{style:s.argSection,children:[d(h,{style:s.argLabel,children:"Original Argument"}),d(i,{style:s.argValueContainer,children:typeof e.meta.arg=="object"?d(We,{title:"",data:Fe(e.meta.arg),showTypeFilter:true,rawMode:true,initialExpanded:true}):d(h,{style:s.argValue,children:JSON.stringify(e.meta.arg)})})]}),e.meta?.rejectedWithValue&&d(ne,{label:"Rejected With Value",value:"true",valueColor:A.error}),e.meta?.aborted&&d(ne,{label:"Aborted",value:"true",valueColor:A.warning}),e.meta?.condition&&d(ne,{label:"Condition",value:"true",valueColor:x.color.textTertiary})]})]}),I&&R(i,{style:[s.card,s.errorCard],testID:`${g}-error-card`,children:[d(xe,{icon:bn,title:"ERROR",badge:d(i,{style:s.errorBadge,children:d(h,{style:s.errorBadgeText,testID:`${g}-error-badge`,children:"REJECTED"})})}),d(i,{style:s.dataViewerContainer,children:typeof e.error=="object"?d(We,{title:"",data:Fe(e.error),showTypeFilter:true,rawMode:true,initialExpanded:true}):d(h,{style:s.errorText,children:String(e.error)})})]}),R(i,{style:s.card,testID:`${g}-full-action-card`,children:[d(xe,{icon:xn,title:"FULL ACTION OBJECT"}),d(i,{style:s.dataViewerContainer,children:d(We,{title:"",data:Fe(e.action),showTypeFilter:true,rawMode:true,initialExpanded:true})})]}),d(i,{style:s.actionFooter,children:R(i,{style:s.actionsGrid,children:[R(i,{style:s.actionButtonWrapper,children:[d(Me,{type:"replay",text:"REPLAY",onPress:B,testID:`${g}-replay`}),d(h,{style:s.actionDescription,children:"Dispatch again"})]}),R(i,{style:s.actionButtonWrapper,children:[d(Me,{type:"jump",text:"JUMP",onPress:P,disabled:u,testID:`${g}-jump`}),d(h,{style:s.actionDescription,testID:`${g}-jump-description`,children:c?"State not retained":l?"Restore this state":"Time travel not wired"})]}),R(i,{style:s.actionButtonWrapper,children:[d(Me,{type:"copy",text:"COPY ACTION",onPress:$,testID:`${g}-copy-action`}),d(h,{style:s.actionDescription,children:r?"Copy to clipboard":"Pro feature"})]}),p&&R(i,{style:s.actionButtonWrapper,children:[d(Me,{type:"copy",text:"COPY PAYLOAD",onPress:F,testID:`${g}-copy-payload`}),d(h,{style:s.actionDescription,children:r?"Copy payload only":"Pro feature"})]})]})}),d(Cn,{visible:o,onClose:()=>a(false),featureName:"Copy"})]})}),s=pe.create({container:{flex:1},contentContainer:{padding:8,paddingBottom:100,gap:16},card:{backgroundColor:x.color.surface,borderRadius:6,borderWidth:1,borderColor:x.color.accent+"4D",overflow:"hidden",shadowColor:x.color.accent,shadowOffset:{width:0,height:0},shadowOpacity:.1,shadowRadius:6},errorCard:{borderColor:A.error+"4D",shadowColor:A.error},sectionHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:10,borderBottomWidth:1,borderBottomColor:x.color.accent+"33",backgroundColor:x.color.accent+"15"},sectionHeaderLeft:{flexDirection:"row",alignItems:"center",gap:6},sectionTitle:{fontSize:12,fontWeight:"600",letterSpacing:.5,color:x.color.accent,fontFamily:ie},cardContent:{padding:14,gap:10},badgeRow:{flexDirection:"row",flexWrap:"wrap",gap:8,marginTop:6},categoryBadge:{paddingHorizontal:8,paddingVertical:3,borderRadius:4},categoryText:{fontSize:9,fontWeight:"700",letterSpacing:.3},durationBadge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:3,borderRadius:4,backgroundColor:x.color.surfaceElevated},durationBadgeSlow:{backgroundColor:A.error+"26"},durationText:{fontSize:9,fontWeight:"600",color:x.color.textSecondary,fontFamily:ie},durationTextSlow:{color:A.error},changesBadge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:3,borderRadius:4,backgroundColor:A.success+"26"},changesText:{fontSize:9,fontWeight:"600",color:A.success},noChangesBadge:{paddingHorizontal:8,paddingVertical:3,borderRadius:4,backgroundColor:x.color.surfaceElevated},noChangesText:{fontSize:9,fontWeight:"600",color:x.color.textTertiary},typeBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:3,backgroundColor:x.color.surfaceElevated},typeText:{fontSize:8,fontWeight:"600",color:x.color.textTertiary,fontFamily:ie},dataViewerContainer:{backgroundColor:x.color.bg,minHeight:60},argSection:{marginTop:4},argLabel:{fontSize:11,color:x.color.textTertiary,fontWeight:"500",marginBottom:6},argValueContainer:{backgroundColor:x.color.bg,borderRadius:6,borderWidth:1,borderColor:x.color.border,overflow:"hidden"},argValue:{fontSize:11,color:x.color.text,fontFamily:ie,padding:10},errorBadge:{paddingHorizontal:8,paddingVertical:3,borderRadius:4,backgroundColor:A.error+"26"},errorBadgeText:{fontSize:9,fontWeight:"700",color:A.error,letterSpacing:.3},errorText:{fontSize:12,color:A.error,fontFamily:ie,padding:14},asyncBadge:{paddingHorizontal:8,paddingVertical:3,borderRadius:4,backgroundColor:x.color.accent+"26"},asyncBadgeText:{fontSize:9,fontWeight:"700",color:x.color.accent,letterSpacing:.3},baseActionType:{fontSize:12,fontWeight:"600",color:x.color.text,fontFamily:ie,marginBottom:8},totalDurationRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:12,paddingBottom:12,borderBottomWidth:1,borderBottomColor:x.color.border},totalDurationLabel:{fontSize:11,color:x.color.textTertiary,fontWeight:"500"},totalDurationValue:{fontSize:14,fontWeight:"700",color:A.success,fontFamily:ie},timeline:{gap:0},timelineItem:{flexDirection:"row",alignItems:"flex-start",paddingVertical:8,paddingHorizontal:8,borderRadius:8,position:"relative"},timelineItemCurrent:{backgroundColor:x.color.accentSoft},timelineConnector:{position:"absolute",left:13,top:24,bottom:-8,width:2,backgroundColor:x.color.border},timelineDot:{width:12,height:12,borderRadius:6,marginRight:10,marginTop:2},timelineContent:{flex:1},timelineHeader:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:2},timelineStatusBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},timelineStatusText:{fontSize:9,fontWeight:"700",letterSpacing:.3},currentBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,backgroundColor:x.color.accent},currentBadgeText:{fontSize:8,fontWeight:"700",color:x.color.onAccent,letterSpacing:.3},timelineTime:{fontSize:10,color:x.color.textTertiary,fontFamily:ie},actionFooter:{backgroundColor:x.color.surface,borderRadius:6,borderWidth:1,borderColor:x.color.accent+"4D",paddingVertical:12,paddingHorizontal:12,shadowColor:x.color.accent,shadowOffset:{width:0,height:0},shadowOpacity:.1,shadowRadius:6},actionsGrid:{flexDirection:"row",flexWrap:"wrap",gap:12,justifyContent:"flex-start"},actionButtonWrapper:{alignItems:"center",gap:4},actionDescription:{fontSize:9,color:x.color.textTertiary,textAlign:"center"}});import{DiffModeTabs as Bn,CompareBar as Rn}from"@buoy-gg/shared-ui/web";import{jsx as k,jsxs as ge}from"react/jsx-runtime";function ut(e){return e.includes("/pending")?Ie.semantic.warning:e.includes("/fulfilled")?Ie.semantic.success:e.includes("/rejected")?Ie.semantic.error:e.startsWith("@@")?Ie.text.muted:Ie.semantic.info}function cr(e){if(e.includes("/pending"))return"PENDING";if(e.includes("/fulfilled"))return"FULFILLED";if(e.includes("/rejected"))return"REJECTED";if(e.startsWith("@@"))return"INTERNAL";let t=e.split("/");return t[t.length-1]?.toUpperCase()||"ACTION"}function kn(e){return e===null?"null":e===void 0?"undefined":Array.isArray(e)?"array":typeof e}function dr(e){return new Date(e).toLocaleTimeString("en-US",{hour12:false,hour:"2-digit",minute:"2-digit",second:"2-digit"})}var En=[{key:"tree",label:"TREE VIEW"},{key:"split",label:"SPLIT VIEW"}];function ur({action:e,actions:t,selectedIndex:r,onIndexChange:o,disableInternalFooter:a=false,initialView:n="action"}){let[c,l]=Zt(n),[u,p]=Zt("tree"),f=t.length,I=ee(e.nextState),S=ut(e.type),O=cr(e.type),L=kn(Ne(e.nextState)),V=f-r,$=V-1,F=r<f-1?r+1:null,B=F!==null?t[F]:null,P=er(()=>({index:F??0,label:$>0?`#${$}`:"Initial",timestamp:B?dr(B.timestamp):"",relativeTime:B?Pe(new Date(B.timestamp)):"state",badge:B?k(i,{style:[E.actionBadgeSmall,{backgroundColor:`${ut(B.type)}20`}],children:k(h,{style:[E.actionTextSmall,{color:ut(B.type)}],children:cr(B.type)})}):void 0}),[F,B,$]),M=er(()=>({index:r,label:`#${V}`,timestamp:dr(e.timestamp),relativeTime:Pe(new Date(e.timestamp)),badge:k(i,{style:[E.actionBadgeSmall,{backgroundColor:`${S}20`}],children:k(h,{style:[E.actionTextSmall,{color:S}],children:O})})}),[r,e.timestamp,S,O,V]),W=Le(()=>{if(I)return ge(i,{style:E.contentCard,testID:`${g}-state-evicted`,children:[k(i,{style:E.valueHeader,children:k(h,{style:E.valueLabel,children:"STATE AFTER ACTION"})}),k(h,{style:E.evictedText,children:`Not retained. Raw state is kept for the ${Ze} most recent actions, so this action's before/after trees have been released.`})]});let he=Ne(e.nextState);return ge(i,{style:E.contentCard,testID:`${g}-state-card`,children:[ge(i,{style:E.valueHeader,children:[k(h,{style:E.valueLabel,children:"STATE AFTER ACTION"}),ge(i,{style:E.valueHeaderBadges,children:[k(i,{style:[E.actionBadge,{backgroundColor:`${S}20`}],children:k(h,{style:[E.actionText,{color:S}],children:O})}),k(i,{style:E.typeBadge,children:k(h,{style:E.typeText,testID:`${g}-state-type`,children:L.toUpperCase()})})]})]}),k(i,{style:E.dataViewerContainer,children:k(Ja,{title:"",data:he,showTypeFilter:true,rawMode:true,initialExpanded:true})})]})},[e.nextState,S,O,L,I]),Q=Le(()=>{let he=Ne(e.prevState),fe=Ne(e.nextState);return u==="split"?k($e,{style:{flex:1},showsVerticalScrollIndicator:true,children:k(Ga,{oldValue:he,newValue:fe,theme:Qa.devToolsDefault,options:{hideLineNumbers:false,disableWordDiff:false,showDiffOnly:false,compareMethod:"words",contextLines:3},showThemeName:false})}):k(Xa,{oldValue:he,newValue:fe})},[e.prevState,e.nextState,u]),Y=Le(()=>{o(Math.min(f-1,r+1))},[r,f,o]),Ue=Le(()=>{o(Math.max(0,r-1))},[r,o]),N=I||ee(e.prevState)||e.prevState===void 0,Z=!a&&f>1;return ge(i,{style:E.container,children:[k(sn,{activeView:c,onViewChange:l,diffDisabled:N}),ge(i,{style:[E.contentArea,Z&&E.contentAreaFooterPad],children:[c==="action"&&k(Dn,{action:e}),c==="state"&&k(i,{style:E.stateContainer,children:W()}),c==="diff"&&ge(i,{style:E.diffContainer,testID:`${g}-diff`,children:[k(Bn,{tabs:En,activeTab:u,onTabChange:p,testIDPrefix:`${g}-diff-tab`}),k(Rn,{leftEvent:P,rightEvent:M}),k(i,{style:E.diffContent,testID:`${g}-diff-content`,children:Q()})]})]}),Z&&k(tr,{currentIndex:V-1,totalItems:f,onPrevious:Y,onNext:Ue,itemLabel:"Action",subtitle:Pe(new Date(e.timestamp)),absolute:true})]})}function pr({action:e,actions:t,selectedIndex:r,onIndexChange:o}){let a=t.length;if(a<=1)return null;let n=a-r;return k(tr,{currentIndex:n-1,totalItems:a,onPrevious:()=>o(Math.min(a-1,r+1)),onNext:()=>o(Math.max(0,r-1)),itemLabel:"Action",subtitle:Pe(new Date(e.timestamp))})}var E=pe.create({container:{flex:1,backgroundColor:"transparent"},contentArea:{flex:1},contentAreaFooterPad:{paddingBottom:96},stateContainer:{flex:1,padding:14},contentCard:{backgroundColor:X.color.surface,borderRadius:14,padding:14,borderWidth:1,borderColor:X.color.border},valueHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:8},valueLabel:{fontSize:10,color:X.color.textSecondary,fontFamily:Ae,letterSpacing:.5,fontWeight:"600"},valueHeaderBadges:{flexDirection:"row",alignItems:"center",gap:6},actionBadge:{paddingHorizontal:8,paddingVertical:2,borderRadius:4},actionText:{fontSize:9,fontWeight:"700",fontFamily:Ae,letterSpacing:.3},typeBadge:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:X.color.surfaceElevated},typeText:{fontSize:9,fontWeight:"600",color:X.color.textTertiary,fontFamily:Ae},valueBox:{backgroundColor:X.color.bg,borderRadius:6,borderWidth:1,borderColor:X.color.border,padding:8},evictedText:{fontSize:12,color:X.color.textSecondary,lineHeight:18},valueText:{fontSize:12,color:X.color.text,fontFamily:Ae,lineHeight:18},diffContainer:{flex:1},diffContent:{flex:1,paddingHorizontal:14},actionBadgeSmall:{paddingHorizontal:6,paddingVertical:1,borderRadius:3},actionTextSmall:{fontSize:8,fontWeight:"700",fontFamily:Ae},dataViewerContainer:{marginTop:-12,marginHorizontal:-12,marginBottom:-12}});import{Fragment as Vn,jsx as y,jsxs as j}from"react/jsx-runtime";var $n=Ta["redux.actions"].free;function zn({isEnabled:e,query:t,totalActions:r}){let o=Aa({subject:"actions",search:t,total:r,capturing:e,waiting:{otto:"waiting",title:"No Redux actions",message:"Actions will appear here as they are dispatched"},paused:{title:"No Redux actions",message:"Enable capture to start recording actions"}});return y(Ia,{...o,testID:`${g}-empty`})}function pt({visible:e,onClose:t,onBack:r,onMinimize:o,enableSharedModalDimensions:a=false,inline:n=false,onActionSelect:c,initialSelectedActionId:l,initialDetailView:u}){let p=Ra(),f=wa("redux.actions"),[I,S]=Ee(false),{isInstrumented:O,isLoading:L,error:V,isReactReduxAvailable:$,captureMechanism:F}=st(),{filteredActions:B,filter:P,setFilter:M,stats:W,clearActions:Q,isEnabled:Y,toggleCapture:Ue}=Ut(),N=we(()=>B.slice(0,f),[B,f]),Z=we(()=>Math.max(0,B.length-f),[B.length,f]),he=Z>0,[fe,De]=Ee(null),ye=we(()=>{if(fe===null)return null;let b=N.findIndex(z=>z.id===fe);return b>=0?b:null},[fe,N]),K=ye!==null?N[ye]:null,ft=Ve(null);jt(()=>{if(!c)return;let b=K?.id??null;b===null||b===ft.current||(ft.current=b,c(K))},[K,c]);let yt=Ve(null);jt(()=>{!l||yt.current===l||N.findIndex(b=>b.id===l)<0||(yt.current=l,De(l))},[l,N]);let[Ce,mt]=Ee(""),[bt,Ke]=Ee(false),ri=Ve(null),br=Ve(null),xr=te(b=>{},[]),Cr=b=>{mt(b),M(z=>({...z,searchText:b}))},Sr=te(()=>{mt(""),M(b=>({...b,searchText:""})),Ke(false)},[M]),xt=te(b=>{De(b.id)},[]),wr=te(()=>{S(true)},[]),Tr=te(()=>{De(null)},[]),Ct=te(b=>{let z=N[b];z&&De(z.id)},[N]),vr=async()=>{if(!p){S(true);return}let b=B.map(z=>({id:z.id,type:z.type,...z.payload!==void 0&&{payload:z.payload},timestamp:z.timestamp,prevState:z.prevState,nextState:z.nextState,hasStateChange:z.hasStateChange}));await xa(b)},Ir=te(b=>b.id,[]),St=we(()=>lr(N),[N]),wt=we(()=>{let b=new Map;for(let z of m.getActions()){let Ye=z.meta?.requestId;Ye&&b.set(Ye,(b.get(Ye)??0)+1)}return b},[B]),Ar=te(({item:b})=>{let z=b.meta?.requestId;return y(Qt,{action:b,onPress:xt,linkedCount:z?wt.get(z)??0:0,testID:St.get(b.id)})},[xt,St,wt]),Tt=()=>K?j(re,{children:[y(re.Navigation,{onBack:Tr}),y(re.Content,{title:K.type,centered:true,testID:`${g}-detail-title`})]}):j(re,{children:[r&&y(re.Navigation,{onBack:r}),y(re.Content,{title:"",children:bt?y(re.Search,{value:Ce,onChangeText:Cr,onCancel:Sr,placeholder:"Search action types...",accessibilityLabel:"Search action types",iconSize:14,testID:`${g}-search-field`,containerTestID:`${g}-search`,clearTestID:`${g}-search-clear`,onBlur:()=>{Ce.length===0&&Ke(false)}}):j(i,{style:v.headerChipRow,children:[j(J,{style:[v.headerChip,!P.onlyWithChanges&&v.headerChipActive],onPress:()=>M(b=>({...b,onlyWithChanges:false})),testID:`${g}-chip-all`,accessibilityRole:"button",accessibilityLabel:`Show all actions, ${W.totalActions} captured`,accessibilityState:{selected:!P.onlyWithChanges},children:[y(h,{style:v.headerChipLabel,children:"ALL"}),y(h,{style:[v.headerChipValue,{color:w.color.text}],testID:`${g}-chip-all-value`,children:W.totalActions})]}),j(J,{style:[v.headerChip,P.onlyWithChanges&&v.headerChipActive],onPress:()=>M(b=>({...b,onlyWithChanges:true})),testID:`${g}-chip-changed`,accessibilityRole:"button",accessibilityLabel:`Show only actions that changed state, ${W.actionsWithChanges} of them`,accessibilityState:{selected:!!P.onlyWithChanges},children:[y(ha,{size:12,color:G.semantic.warning}),y(h,{style:[v.headerChipValue,{color:G.semantic.warning}],testID:`${g}-chip-changed-value`,children:W.actionsWithChanges})]}),j(i,{style:v.headerChip,testID:`${g}-chip-types`,accessibilityLabel:`${W.uniqueActionTypes} distinct action types`,children:[y(fa,{size:12,color:G.semantic.success}),y(h,{style:[v.headerChipValue,{color:G.semantic.success}],testID:`${g}-chip-types-value`,children:W.uniqueActionTypes})]})]})}),j(re.Actions,{children:[!bt&&y(J,{onPress:()=>Ke(true),style:[v.headerActionButton,Ce.length>0&&v.headerActionButtonActive],testID:`${g}-search-open`,accessibilityRole:"button",accessibilityLabel:"Search action types",children:y(ua,{size:14,color:Ce.length>0?w.color.accent:w.color.textSecondary})}),y(J,{onPress:vr,style:[v.headerActionButton,B.length===0&&v.headerActionButtonDisabled],disabled:B.length===0,testID:`${g}-copy`,accessibilityRole:"button",accessibilityLabel:"Copy all actions",accessibilityState:{disabled:B.length===0},children:y(ya,{size:14,color:B.length>0?w.color.textSecondary:w.color.textTertiary})}),y(Sa,{isEnabled:Y,onToggle:Ue,accessibilityLabel:"Toggle Redux action capture",testID:`${g}-power`}),y(J,{onPress:Q,style:[v.headerActionButton,B.length===0&&v.headerActionButtonDisabled],disabled:B.length===0,testID:`${g}-clear`,accessibilityRole:"button",accessibilityLabel:"Clear actions",accessibilityState:{disabled:B.length===0},children:y(pa,{size:14,color:B.length>0?w.color.textTertiary:w.color.textTertiary})})]})]}),Dr=a?ba.modal.root():"buoy-redux-modal";if(!e)return null;let vt=K&&ye!==null?y(pr,{action:K,actions:N,selectedIndex:ye,onIndexChange:Ct}):null,Br=K&&N.length>1?68:0,Rr=K==null,It=y(i,{style:v.container,children:K&&ye!==null?y(ur,{action:K,actions:N,selectedIndex:ye,onIndexChange:Ct,disableInternalFooter:true,initialView:u}):j(Vn,{children:[V&&!O&&!m.isCaptureSuppressed()&&j(i,{style:v.errorBanner,testID:`${g}-banner-error`,children:[y(Mt,{size:14,color:w.color.danger}),y(h,{style:v.errorText,children:$?"Not inside a Redux Provider. Wrap your app with <Provider store={store}>.":"react-redux not installed. Run: npm install react-redux"})]}),!Y&&O&&j(i,{style:v.disabledBanner,testID:`${g}-banner-disabled`,children:[y(ga,{size:14,color:w.color.warning}),y(h,{style:v.disabledText,children:"Action capture is disabled"})]}),F==="patch"&&!m.isCaptureSuppressed()&&j(i,{style:v.disabledBanner,testID:`${g}-banner-patch`,children:[y(Mt,{size:14,color:w.color.warning}),y(h,{style:v.disabledText,children:"Top-level capture only \u2014 thunk/RTK Query internals aren't visible. Put import '@buoy-gg/redux' first in your app entry (or add buoyReduxMiddleware) for full capture."})]}),he&&j(J,{style:v.lockedBanner,onPress:wr,activeOpacity:.8,testID:`${g}-locked`,accessibilityRole:"button",accessibilityLabel:`${Z} older ${Z===1?"action":"actions"} locked. Upgrade to see them.`,children:[y(ma,{size:14,color:w.color.accent}),j(h,{style:v.lockedText,testID:`${g}-locked-text`,children:[Z," older ",Z===1?"action":"actions"," locked"]}),y(i,{style:v.upgradeBadge,children:y(h,{style:v.upgradeBadgeText,children:"UPGRADE"})})]}),N.length>0?y(Wt,{ref:br,testID:`${g}-list`,data:N,renderItem:Ar,keyExtractor:Ir,contentContainerStyle:v.listContent,showsVerticalScrollIndicator:true,...Da}):y(zn,{isEnabled:Y,query:Ce,totalActions:W.totalActions})]})}),At=y(Ca,{visible:I,onClose:()=>S(false),featureName:"Full Action History"});return n?j(Ht,{children:[j(i,{style:v.inlineRoot,children:[y(i,{style:v.inlineHeader,...va,children:Tt()}),It,vt]}),At]}):j(Ht,{children:[y(da,{visible:e,onClose:t,onMinimize:o,persistenceKey:Dr,header:{showToggleButton:true,customContent:Tt()},onModeChange:xr,enablePersistence:true,initialMode:"bottomSheet",enableGlitchEffects:true,disableScrollWrapper:Rr,styles:{},footer:vt,footerHeight:Br,children:It}),At]})}function On(e={}){return y(pt,{...e,inline:true,visible:true,onClose:()=>{}})}var v=pe.create({inlineRoot:{flex:1,minHeight:0,backgroundColor:"transparent"},inlineHeader:{paddingHorizontal:12,paddingVertical:8,borderBottomWidth:1,borderBottomColor:G.border.default,backgroundColor:"transparent"},container:{flex:1,backgroundColor:"transparent"},headerChipRow:{flexDirection:"row",alignItems:"center",gap:8},headerChip:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:w.color.surfaceElevated,paddingHorizontal:10,paddingVertical:5,borderRadius:12,borderWidth:1,borderColor:w.color.border},headerChipActive:{backgroundColor:w.color.accentSoft,borderColor:w.color.accentBorderStrong},headerChipLabel:{fontSize:10,fontWeight:"700",color:w.color.textTertiary},headerChipValue:{fontSize:12,fontWeight:"600",fontFamily:Ba},headerActionButton:{width:32,height:32,borderRadius:8,backgroundColor:w.color.surfaceElevated,borderWidth:1,borderColor:w.color.border,alignItems:"center",justifyContent:"center"},headerActionButtonDisabled:{opacity:.55},headerActionButtonActive:{backgroundColor:w.color.accentSoft,borderColor:w.color.accentBorderStrong},startButton:{backgroundColor:G.semantic.successBackground,borderColor:G.semantic.success+"40"},stopButton:{backgroundColor:G.semantic.errorBackground,borderColor:G.semantic.error+"40"},errorBanner:{flexDirection:"row",alignItems:"center",gap:8,padding:10,marginHorizontal:12,marginTop:8,backgroundColor:w.color.dangerSoft,borderRadius:8,borderWidth:1,borderColor:w.color.danger+"20"},errorText:{color:w.color.danger,fontSize:11,flex:1},disabledBanner:{flexDirection:"row",alignItems:"center",gap:8,padding:10,marginHorizontal:12,marginTop:8,backgroundColor:w.color.warningSoft,borderRadius:8,borderWidth:1,borderColor:w.color.warning+"20"},disabledText:{color:w.color.warning,fontSize:11,flex:1},listContent:{paddingTop:8,paddingBottom:20},lockedBanner:{flexDirection:"row",alignItems:"center",gap:8,padding:10,marginHorizontal:12,marginTop:8,backgroundColor:w.color.accentSoft,borderRadius:8,borderWidth:1,borderColor:w.color.accentBorder},lockedText:{color:w.color.accent,fontSize:11,fontWeight:"500",flex:1},upgradeBadge:{backgroundColor:w.color.accent,paddingHorizontal:8,paddingVertical:3,borderRadius:4},upgradeBadgeText:{color:w.color.onAccent,fontSize:9,fontWeight:"700",letterSpacing:.5}});import{ReduxIcon as He,REDUX_ICON_COLOR as zi}from"@buoy-gg/floating-tools-core/web";import{createToolFactory as Ln,defineToolPreset as Pn}from"@buoy-gg/shared-ui/web";import{jsx as gr}from"react/jsx-runtime";var hr=Pn({id:"redux",name:"REDUX",description:"Redux action & state inspector",slot:"both",icon:({size:e})=>gr(He,{size:e}),component:pt,props:{enableSharedModalDimensions:false}}),Nn=Ln(hr,e=>({enableSharedModalDimensions:e.enableSharedModalDimensions??false}),e=>({icon:({size:t})=>gr(He,{size:t,color:e.iconColor})}));var jn={timeTravel:false,toggle:false,edit:false,diff:true,export:true,import:false,reset:true,recording:true};function Fn(e,t,r){return{id:e.id,label:e.type,timestamp:e.timestamp,data:e.payload??e.action,prevState:e.prevState,nextState:e.nextState,hasStateChange:e.hasStateChange,duration:e.duration,source:"redux",isCurrent:t===0,isInFuture:false,isSkipped:false,meta:{fullAction:e.action}}}function fr(e){let{icon:t=He,color:r="#764ABC",name:o="Redux"}=e??{},a=0;return{id:"redux",name:o,icon:t,color:r,capabilities:jn,subscribe:n=>m.subscribe(()=>{n()}),getEntries:()=>{let n=m.getActions();return n.map((c,l)=>Fn(c,l,n.length))},getEntryCount:()=>m.getActions().length,getCurrentState:()=>{let n=m.getActions();if(n.length!==0)return n[0].nextState},getStateAtEntry:n=>m.getActionById(String(n))?.nextState,get currentIndex(){return a},jumpTo:n=>{let c=m.getActions().findIndex(l=>l.id===String(n));c!==-1&&(a=c)},get isRecording(){return m.getEnabled()},setRecording:n=>{m.setEnabled(n)},reset:()=>{m.clearActions(),a=0},exportHistory:()=>{let n=m.getActions();return JSON.stringify(n,null,2)}}}var Wn=fr();import{WIRE_DETAIL_LIMIT_BYTES as Mn,capDetail as Hn,createSyncAdapter as _n,memoByIdentity as qn,readParams as gt,toWire as Un}from"@buoy-gg/shared-ui/web";var _e=e=>Un(e,_r),Kn=qn(e=>{let t=ee(e.prevState)?{...e}:{...e,prevState:Vt,nextState:Vt};if(t.payload=_e(t.payload),t.action=_e(t.action),t.error=_e(t.error),t.meta){let r=_e(t.meta.arg);r!==t.meta.arg&&(t.meta={...t.meta,arg:r})}return t});function Yn(e){return e&&typeof e=="object"&&!Array.isArray(e)?Object.keys(e):[]}function yr(){let e=ue().diagnostic??"not-instrumented";return{available:false,slices:[],reason:e}}var Jn=_n({version:2,getSnapshot:()=>m.getActions().map(Kn),subscribe:e=>m.subscribe(e),actions:{clearEvents:()=>{m.clearActions()},getActionDetail:e=>{let{id:t}=gt(e);if(!t)return{found:false,reason:"missing id"};let r=m.getActionById(t);if(!r)return{found:false,reason:"unknown id"};if(ee(r.prevState))return{found:true,id:t,evicted:true,reason:"Raw state was evicted (retained for recent actions only)."};let o=n=>Hn(n,Mn),a=n=>{if(!n)return n;let c=o(n.arg);return c===n.arg?n:{...n,arg:c}};return{found:true,id:t,prevState:o(r.prevState),nextState:o(r.nextState),payload:o(r.payload),action:o(r.action),meta:a(r.meta),error:o(r.error)}},getState:e=>{let{includeValues:t=false}=gt(e),r=lt();if(!r)return yr();let o=r.getState(),a=ue();return{available:true,slices:Yn(o),capture:a.capture,mechanism:a.mechanism,...t?{state:o}:{}}},dispatch:e=>{let{action:t}=gt(e),r=lt();if(!r)return{dispatched:false,...yr()};if(!t)throw new Error("dispatch requires an `action`");return r.dispatch(t),{dispatched:true,type:t.type}}}});import{useState as Gn}from"react";import{macOSColors as le,night as U,TabSelector as Xn,DataInspector as se,CollapsibleSection as qe,CopyButton as Qn,monoFont as ht}from"@buoy-gg/shared-ui/web";import{jsx as C,jsxs as _}from"react/jsx-runtime";function Zn({action:e}){let[t,r]=Gn("action"),o=[{key:"action",label:"Action"},{key:"state",label:"State"},{key:"diff",label:"Diff"}],a=new Date(e.timestamp).toLocaleTimeString(),n=()=>JSON.stringify({type:e.type,payload:e.payload,timestamp:e.timestamp,duration:e.duration,hasStateChange:e.hasStateChange},null,2);return _(i,{style:T.container,children:[_(i,{style:T.header,children:[_(i,{style:T.headerContent,children:[C(h,{style:T.actionType,numberOfLines:2,children:e.type}),_(i,{style:T.headerMeta,children:[C(h,{style:T.metaText,children:a}),e.duration!==void 0&&_(h,{style:T.durationText,children:[e.duration.toFixed(2),"ms"]}),e.hasStateChange&&C(i,{style:T.changeBadge,children:C(h,{style:T.changeBadgeText,children:"State Changed"})})]})]}),C(Qn,{value:n(),size:16})]}),C(i,{style:T.tabContainer,children:C(Xn,{tabs:o,activeTab:t,onTabChange:c=>r(c)})}),_($e,{style:T.content,showsVerticalScrollIndicator:true,children:[t==="action"&&_(i,{style:T.section,children:[C(qe,{title:"Payload",defaultOpen:true,children:e.payload!==void 0?C(se,{data:e.payload}):C(h,{style:T.emptyText,children:"No payload"})}),C(qe,{title:"Full Action",defaultOpen:false,children:C(se,{data:e.action})})]}),t==="state"&&_(i,{style:T.section,children:[C(qe,{title:"Previous State",defaultOpen:false,children:C(se,{data:e.prevState})}),C(qe,{title:"Next State",defaultOpen:true,children:C(se,{data:e.nextState})})]}),t==="diff"&&C(i,{style:T.section,children:e.hasStateChange?C(ei,{prevState:e.prevState,nextState:e.nextState}):C(i,{style:T.noChangeContainer,children:C(h,{style:T.noChangeText,children:"No state changes from this action"})})})]})]})}function ei({prevState:e,nextState:t}){let r=mr(e,t);return r.length===0?C(i,{style:T.noChangeContainer,children:C(h,{style:T.noChangeText,children:"No differences detected"})}):C(i,{children:r.map((o,a)=>_(i,{style:T.diffItem,children:[_(i,{style:T.diffHeader,children:[C(i,{style:[T.diffTypeBadge,{backgroundColor:o.type==="added"?le.semantic.successBackground:o.type==="removed"?le.semantic.errorBackground:le.semantic.warningBackground}],children:C(h,{style:[T.diffTypeText,{color:o.type==="added"?le.semantic.success:o.type==="removed"?le.semantic.error:le.semantic.warning}],children:o.type.toUpperCase()})}),C(h,{style:T.diffPath,children:o.path})]}),o.type==="modified"&&_(i,{style:T.diffValues,children:[_(i,{style:T.diffValue,children:[C(h,{style:T.diffLabel,children:"Before:"}),C(se,{data:o.oldValue})]}),_(i,{style:T.diffValue,children:[C(h,{style:T.diffLabel,children:"After:"}),C(se,{data:o.newValue})]})]}),o.type==="added"&&C(i,{style:T.diffValue,children:C(se,{data:o.newValue})}),o.type==="removed"&&C(i,{style:T.diffValue,children:C(se,{data:o.oldValue})})]},a))})}function mr(e,t,r=""){let o=[];if(typeof e!="object"||typeof t!="object")return e!==t&&o.push({type:"modified",path:r||"root",oldValue:e,newValue:t}),o;if(e===null||t===null)return e!==t&&o.push({type:"modified",path:r||"root",oldValue:e,newValue:t}),o;let a=e,n=t,c=new Set([...Object.keys(a),...Object.keys(n)]);for(let l of c){let u=r?`${r}.${l}`:l,p=a[l],f=n[l];l in a?l in n?p!==f&&(typeof p=="object"&&typeof f=="object"&&p!==null&&f!==null&&!Array.isArray(p)&&!Array.isArray(f)?u.split(".").length<3?o.push(...mr(p,f,u)):o.push({type:"modified",path:u,oldValue:p,newValue:f}):o.push({type:"modified",path:u,oldValue:p,newValue:f})):o.push({type:"removed",path:u,oldValue:p}):o.push({type:"added",path:u,newValue:f})}return o}var T=pe.create({container:{flex:1},header:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:12,backgroundColor:U.color.surface,borderBottomWidth:1,borderBottomColor:U.color.border},headerContent:{flex:1,marginRight:12},actionType:{fontSize:14,fontWeight:"600",color:U.color.text,fontFamily:ht,marginBottom:6},headerMeta:{flexDirection:"row",alignItems:"center",gap:12},metaText:{fontSize:11,color:U.color.textTertiary},durationText:{fontSize:11,color:U.color.textTertiary,fontFamily:ht},changeBadge:{backgroundColor:le.semantic.warningBackground,paddingHorizontal:6,paddingVertical:2,borderRadius:4},changeBadgeText:{fontSize:10,color:le.semantic.warning,fontWeight:"600"},tabContainer:{paddingHorizontal:12,paddingVertical:8},content:{flex:1},section:{paddingHorizontal:12,paddingBottom:20},emptyText:{fontSize:12,color:U.color.textTertiary,fontStyle:"italic",padding:8},noChangeContainer:{padding:20,alignItems:"center"},noChangeText:{fontSize:13,color:U.color.textTertiary},diffItem:{marginBottom:12,backgroundColor:U.color.surface,borderRadius:8,borderWidth:1,borderColor:U.color.border,overflow:"hidden"},diffHeader:{flexDirection:"row",alignItems:"center",gap:8,padding:8,borderBottomWidth:1,borderBottomColor:U.color.border},diffTypeBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},diffTypeText:{fontSize:10,fontWeight:"700"},diffPath:{fontSize:12,color:U.color.text,fontFamily:ht},diffValues:{padding:8,gap:8},diffValue:{padding:8},diffLabel:{fontSize:11,color:U.color.textTertiary,marginBottom:4,fontWeight:"600"}});function ti(){return st(),null}export{Se as BUOY_JUMP_TO_STATE,Xr as BUOY_REPLAY_ACTION,$n as FREE_TIER_ACTION_LIMIT,g as REDUX_TEST_ID,ur as ReduxActionDetailContent,pr as ReduxActionDetailFooter,Zn as ReduxActionDetailView,Qt as ReduxActionItem,ti as ReduxAutoInstrument,He as ReduxIcon,pt as ReduxModal,On as ReduxToolView,ir as actionRowTestID,lr as buildActionRowTestIDs,ke as buoyDevtoolsEnhancer,Zr as buoyReduxMiddleware,Nt as claimDevtoolsHook,eo as createBuoyReduxMiddleware,fr as createReduxHistoryAdapter,Nn as createReduxTool,lt as getActiveStore,ue as getInstrumentationStatus,nt as instrumentStore,Pa as isAutoInstrumentActive,lo as isDevtoolsHookClaimed,Oa as isStoreInstrumented,Ot as jumpToState,m as reduxActionStore,Wn as reduxHistoryAdapter,Jn as reduxSyncAdapter,hr as reduxToolPreset,La as registerReduxStore,Lt as replayAction,nr as slugForTestID,it as uninstrumentStore,st as useAutoInstrumentRedux,Ut as useReduxActions,Na as useReduxAvailability,Qr as withBuoyDevTools};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/redux",
3
- "version": "7.0.41",
3
+ "version": "7.0.43",
4
4
  "description": "Inspect a connected Redux store, captured actions and state changes, and dispatch supported actions from Buoy tools.",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -40,17 +40,14 @@
40
40
  "./lib/web/**/*.mjs"
41
41
  ],
42
42
  "dependencies": {
43
- "@buoy-gg/floating-tools-core": "^7.0.41",
44
- "@buoy-gg/shared-ui": "^7.0.41",
45
- "@buoy-gg/license": "^7.0.41"
43
+ "@buoy-gg/shared-ui": "^7.0.43",
44
+ "@buoy-gg/floating-tools-core": "^7.0.43",
45
+ "@buoy-gg/license": "^7.0.43"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@reduxjs/toolkit": ">=1.9.0",
49
49
  "react": "*",
50
- "react-native": "*",
51
- "react-redux": ">=8.0.0",
52
- "react-native-web": "^0.21.0",
53
- "react-dom": ">=18"
50
+ "react-redux": ">=8.0.0"
54
51
  },
55
52
  "devDependencies": {
56
53
  "@reduxjs/toolkit": "^2.11.2",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAGH,OAAO,gCAAgC,CAAC;AAKxC,OAAO,4BAA4B,CAAC;AAKpC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK5D,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,mCAAmC,CAAC;AAK3C,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AAKpC,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,KAAK,0BAA0B,GAChC,MAAM,yCAAyC,CAAC;AAKjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAKjE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,YAAY,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAG3E,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACV,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,sCAAsC,CAAC;AAO9C,OAAO,EACL,UAAU,EACV,aAAa,EACb,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EACL,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAGzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAK7E,OAAO,EACL,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAK/B,YAAY,EACV,cAAc,EACd,UAAU,EACV,WAAW,EACX,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AAKvB,gBAAgB;AAChB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../src/preset.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;;;;qBAKT;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;;;;;CAKjC,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe;IAGxB,iBAAiB;gBACL,MAAM;IAClB,qCAAqC;kCACP,OAAO;;;;;;qBA3BtB;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;;;;;CAoClC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReduxActionButton.d.ts","sourceRoot":"","sources":["../../../../src/redux/components/ReduxActionButton.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqClB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,aAAa,CAAC;AAEpD,UAAU,sBAAsB;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,QAAgB,EAChB,MAAM,GACP,EAAE,sBAAsB,+BAyCxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReduxActionDetailContent.d.ts","sourceRoot":"","sources":["../../../../src/redux/components/ReduxActionDetailContent.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAmBH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,yBAAyB,CAAC;AASjC,UAAU,6BAA6B;IACrC,qCAAqC;IACrC,MAAM,EAAE,WAAW,CAAC;IACpB,iCAAiC;IACjC,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,qCAAqC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,iDAAiD;IACjD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACnC;AAwDD,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,OAAO,EACP,aAAa,EACb,aAAa,EACb,qBAA6B,EAC7B,WAAsB,GACvB,EAAE,6BAA6B,+BA+P/B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,OAAO,EACP,aAAa,EACb,aAAa,GACd,EAAE;IACD,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC,sCAiBA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReduxActionDetailView.d.ts","sourceRoot":"","sources":["../../../../src/redux/components/ReduxActionDetailView.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAaH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,UAAU,0BAA0B;IAClC,MAAM,EAAE,WAAW,CAAC;CACrB;AAID,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,EAAE,0BAA0B,+BAkH3E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReduxActionInfoView.d.ts","sourceRoot":"","sources":["../../../../src/redux/components/ReduxActionInfoView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAA0D,MAAM,OAAO,CAAC;AAqB/E,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,UAAU,CAAC;AAU5D,UAAU,wBAAwB;IAChC,MAAM,EAAE,WAAW,CAAC;IACpB,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACpD;AAsGD,eAAO,MAAM,mBAAmB,sDAsgB9B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReduxActionItem.d.ts","sourceRoot":"","sources":["../../../../src/redux/components/ReduxActionItem.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,UAAU,CAAC;AAG5D,UAAU,oBAAoB;IAC5B,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAqKD,eAAO,MAAM,eAAe,4DAqF1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReduxAutoInstrument.d.ts","sourceRoot":"","sources":["../../../../src/redux/components/ReduxAutoInstrument.tsx"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAG1C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReduxDetailViewToggle.d.ts","sourceRoot":"","sources":["../../../../src/redux/components/ReduxDetailViewToggle.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAe,MAAM,OAAO,CAAC;AASpC,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9D,UAAU,0BAA0B;IAClC,UAAU,EAAE,mBAAmB,CAAC;IAChC,YAAY,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAYD,eAAO,MAAM,qBAAqB,wDAchC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReduxIcon.d.ts","sourceRoot":"","sources":["../../../../src/redux/components/ReduxIcon.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReduxModal.d.ts","sourceRoot":"","sources":["../../../../src/redux/components/ReduxModal.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAiDH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAAoC,CAAC;AAExE,UAAU,eAAe;IACvB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC/C;;;;;;;OAOG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;CACzC;AAoCD,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,OAAO,EACP,MAAM,EACN,UAAU,EACV,2BAAmC,EACnC,MAAc,EACd,cAAc,EACd,uBAAuB,EACvB,iBAAiB,GAClB,EAAE,eAAe,sCAokBjB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,KAAK,GAAE,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAM,+BAGpE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"reduxPeer.d.ts","sourceRoot":"","sources":["../../../../src/redux/hooks/reduxPeer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,wBAAgB,qBAAqB,IAAI,CAAC,MAAM,KAAK,CAAC,GAAG,IAAI,CAU5D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"reduxPeer.web.d.ts","sourceRoot":"","sources":["../../../../src/redux/hooks/reduxPeer.web.ts"],"names":[],"mappings":"AACA,wBAAgB,qBAAqB,oGAAuB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAutoInstrumentRedux.d.ts","sourceRoot":"","sources":["../../../../src/redux/hooks/useAutoInstrumentRedux.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACtB,MAAM,yBAAyB,CAAC;AAOjC;;GAEG;AAOH,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;IAC1E,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,4BAA4B;IAC3C,kDAAkD;IAClD,cAAc,EAAE,OAAO,CAAC;IACxB,6CAA6C;IAC7C,SAAS,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,uCAAuC;IACvC,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC1C,qCAAqC;IACrC,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,oCAAoC;IACpC,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,0CAA0C;IAC1C,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAMD,wBAAgB,sBAAsB,CACpC,OAAO,GAAE,6BAAkC,GAC1C,4BAA4B,CAkH9B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CA0BA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useReduxActions.d.ts","sourceRoot":"","sources":["../../../../src/redux/hooks/useReduxActions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGzD,MAAM,WAAW,qBAAqB;IACpC,2BAA2B;IAC3B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,+CAA+C;IAC/C,eAAe,EAAE,WAAW,EAAE,CAAC;IAC/B,8BAA8B;IAC9B,MAAM,EAAE,WAAW,CAAC;IACpB,6BAA6B;IAC7B,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;IAC7D,wCAAwC;IACxC,KAAK,EAAE;QACL,YAAY,EAAE,MAAM,CAAC;QACrB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,iCAAiC;IACjC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,wCAAwC;IACxC,SAAS,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,4CAA4C;IAC5C,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,uBAAuB;IACvB,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,WAAW,GAAG,SAAS,CAAC;IACvD,gDAAgD;IAChD,cAAc,EAAE,WAAW,GAAG,IAAI,CAAC;IACnC,0BAA0B;IAC1B,iBAAiB,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CACzD;AAKD,wBAAgB,eAAe,IAAI,qBAAqB,CA2CvD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"reduxSyncAdapter.d.ts","sourceRoot":"","sources":["../../../../src/redux/sync/reduxSyncAdapter.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AA4ExD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB;;IAiBzB;;;;OAIG;+BACwB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgClC;;;OAGG;wBACiB,OAAO;;gBAhFb,MAAM,EAAE;QACtB,4DAA4D;;;;;;QA0FxD,wEAAwE;;;;IAM5E,gEAAgE;wBAC5C,OAAO;;gBAlGb,MAAM,EAAE;QACtB,4DAA4D;;;;;;;;EA4GpC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/redux/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,UAAU,GACV,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,UAAU,GACV,QAAQ,CAAC;AAEb;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IACrD,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IAGxB,uEAAuE;IACvE,QAAQ,EAAE,cAAc,CAAC;IACzB,sEAAsE;IACtE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,yCAAyC;IACzC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,mCAAmC;IACnC,YAAY,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC;IACvC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB;CAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"activeStoreRegistry.d.ts","sourceRoot":"","sources":["../../../../src/redux/utils/activeStoreRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,iFAAiF;AACjF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,OAAO,CAAC;IAIxB,QAAQ,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC;CACpC;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,YAAY,GAAG,OAAO,CAAC;AAEnE,yDAAyD;AACzD,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,aAAa,GAAG,IAAI,CAAC;AAEtE,oEAAoE;AACpE,eAAO,MAAM,eAAe,eAA4C,CAAC;AAOzE,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,gBAAgB,GACrB,IAAI,CAIN;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAKnE;AAED,wBAAgB,cAAc,IAAI,gBAAgB,GAAG,IAAI,CAExD;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,GAAG,IAAI,CAE7D;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,eAAe,GAAG,IAAI,CAE3D;AAED,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACnC,wCAAwC;IACxC,OAAO,EAAE,MAAM,GAAG,gBAAgB,GAAG,MAAM,CAAC;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB,wEAAwE;IACxE,UAAU,EAAE,eAAe,CAAC;CAC7B;AAED,wBAAgB,wBAAwB,IAAI,qBAAqB,CAahE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"autoInstrument.d.ts","sourceRoot":"","sources":["../../../../src/redux/utils/autoInstrument.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAiB,MAAM,kBAAkB,CAAC;AAG7D,OAAO,EAKL,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,wBAAwB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB,MAAM,uBAAuB,CAAC;AAsB/B,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAMD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAGzD;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,KAAK,EACZ,OAAO,GAAE,qBAA0B,GAClC,MAAM,IAAI,CAuFZ;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAapD;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,EACZ,OAAO,GAAE,qBAA0B,GAClC,MAAM,IAAI,CAEZ;AAMD;;;;;;;GAOG;AACH,OAAO,EACL,WAAW,EACX,YAAY,EACZ,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,gBAAgB,GAAG,IAAI,CAExD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"buoyReduxMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/redux/utils/buoyReduxMiddleware.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAgB3D;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAMD,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AAczD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAsBhD;AAED;;;GAGG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAOxD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAcnE;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,UA4BjC,CAAC;AAEF;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,GAAE,0BAA+B,GACvC,UAAU,CAoCZ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"createReduxHistoryAdapter.d.ts","sourceRoot":"","sources":["../../../../src/redux/utils/createReduxHistoryAdapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,oBAAoB,CAAC;AAgD5B;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,4BAA4B;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5D,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,CAAC,EAAE,0BAA0B,GACnC,cAAc,CAsFhB;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,yBAA8B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"devtoolsHook.d.ts","sourceRoot":"","sources":["../../../../src/redux/utils/devtoolsHook.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAWH,KAAK,UAAU,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;AACnD,KAAK,cAAc,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,GAAG,CAAC;AAmC7E;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC9B,aAAa,cAAc,MAC3B,SAAS,UAAU,EAAE,iBAAiB,OAAO,QAgC7C,CAAC;AAuBJ;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAU3C;AAED,8EAA8E;AAC9E,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"reduxActionStore.d.ts","sourceRoot":"","sources":["../../../../src/redux/utils/reduxActionStore.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAkB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAA8B,MAAM,UAAU,CAAC;AAErF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,aAAa;;;EAGxB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;;;EAG1B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;EAG5B,CAAC;AAEH,qEAAqE;AACrE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAMzD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAItD;AAwDD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAErE;AA8HD,cAAM,gBAAiB,SAAQ,SAAS,CAAC,WAAW,CAAC;IAEnD,SAAS,CACP,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,EAClB,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI;IAyEP,UAAU,IAAI,WAAW,EAAE;IAI3B,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAIlD,YAAY,IAAI,IAAI;IAQpB;;;;OAIG;IACH,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI;IA8B5C;;;;OAIG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI;IAI5D,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIhC,QAAQ;;;;;;;IAuBR,aAAa,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,EAAE;IAmBjD,oBAAoB,IAAI,MAAM,EAAE;IAIhC;;OAEG;IACH,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,EAAE;IAMnD;;OAEG;IACH,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,EAAE;IAKpD;;OAEG;IACH,qBAAqB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM;IAOlD;;OAEG;IACH,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAe3D;;OAEG;IACH,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAWvC;;;OAGG;IACH,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAkBlD;AAED,eAAO,MAAM,gBAAgB,kBAAyB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"snapshotProvider.d.ts","sourceRoot":"","sources":["../../../../src/redux/utils/snapshotProvider.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"testIDs.d.ts","sourceRoot":"","sources":["../../../../src/redux/utils/testIDs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,+CAA+C;AAC/C,eAAO,MAAM,aAAa,eAAe,CAAC;AAE1C,8EAA8E;AAC9E,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAOpD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,WAAW,EAAE,GACrB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CASrB"}