react-native-react-query-devtools
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
"use strict";var Mt=Object.create;var he=Object.defineProperty;var Ft=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var At=Object.getPrototypeOf,Et=Object.prototype.hasOwnProperty;var Bt=(e,n)=>{for(var r in n)he(e,r,{get:n[r],enumerable:!0})},Ze=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of Dt(n))!Et.call(e,s)&&s!==r&&he(e,s,{get:()=>n[s],enumerable:!(i=Ft(n,s))||i.enumerable});return e};var me=(e,n,r)=>(r=e!=null?Mt(At(e)):{},Ze(n||!e||!e.__esModule?he(r,"default",{value:e,enumerable:!0}):r,e)),Vt=e=>Ze(he({},"__esModule",{value:!0}),e);var $t={};Bt($t,{DevToolsBubble:()=>Tt});module.exports=Vt($t);var St=require("react"),U=require("react-native");var kt=require("react"),g=require("react-native");var ye=require("react"),O=require("react-native");function $(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}var Qt={fresh:{backgroundColor:"#A6F4C5"},stale:{backgroundColor:"#FEDF89"},fetching:{backgroundColor:"#B2DDFF"},paused:{backgroundColor:"#D9D6FE"},noObserver:{backgroundColor:"#EAECF0"},inactive:{backgroundColor:"#FEDF89"}};function $e(e){let n={backgroundColor:"#EAECF0"};return Qt[e]||n}var z=require("react-native");var v=(e,n=!1)=>JSON.stringify(e,(()=>{let i=new WeakSet;return(s,d)=>{if(typeof d=="object"&&d!==null){if(i.has(d))return"[Circular]";i.add(d)}return d}})(),n?2:void 0);var Y=require("react/jsx-runtime");function Te({query:e,setSelected:n,selected:r}){return(0,Y.jsxs)(z.TouchableOpacity,{onPress:()=>{n(e===r?void 0:e)},style:[le.touchableOpacityBase,r?.queryKey===e.queryKey&&le.touchableOpacitySelected],children:[(0,Y.jsx)(z.Text,{style:[le.textBase,$e($(e))],children:`${e.getObserversCount()}`}),(0,Y.jsx)(z.Text,{style:le.queryKeyText,children:`${v(e.queryKey,!1)}`}),e.isDisabled()&&(0,Y.jsx)(z.Text,{style:le.disabledText,children:"disabled"})]})}var le=z.StyleSheet.create({touchableOpacityBase:{flexDirection:"row",alignItems:"center",justifyContent:"center",backgroundColor:"white",borderBottomWidth:1,borderBottomColor:"#d0d5dd"},touchableOpacitySelected:{backgroundColor:"#eaecf0"},textBase:{textAlign:"center",minWidth:30,maxWidth:30,paddingVertical:6,fontSize:12},queryKeyText:{flex:1,flexDirection:"row",paddingVertical:1,paddingHorizontal:2,fontSize:12,paddingLeft:5},disabledText:{fontSize:12,paddingVertical:6,paddingHorizontal:2,color:"#1d2939",backgroundColor:"#d0d5dd",borderBottomWidth:1,borderBottomColor:"#d0d5dd"}});var Ce=require("react"),_e=require("@tanstack/react-query");function Rt(){let e=(0,_e.useQueryClient)(),[n,r]=(0,Ce.useState)([]);return(0,Ce.useEffect)(()=>{let i=()=>{let d=e.getQueryCache().findAll();setTimeout(()=>{r(d)},1)};i();let s=e.getQueryCache().subscribe(i);return()=>s()},[e]),n}var Je=Rt;var ee=require("react-native"),Le=require("react/jsx-runtime"),Wt={fresh:"#D1FADF",stale:"#FEF0C7",fetching:"#D1E9FF",paused:"#EBE9FE",noObserver:"#F2F4F7"},Ot={fresh:"#32D583",stale:"#FDB022",fetching:"#53B1FD",paused:"#9B8AFB",noObserver:"#344054"},Pt={fresh:"#027A48",stale:"#B54708",fetching:"#175CD3",paused:"#5925DC",noObserver:"#344054"};function ve({query:e}){let n=$(e),r=Wt[n],i=Ot[n],s=Pt[n];return(0,Le.jsx)(ee.View,{style:[Xe.container,{backgroundColor:r,borderColor:i}],children:(0,Le.jsx)(ee.Text,{style:[Xe.text,{color:s}],children:n})})}var Xe=ee.StyleSheet.create({container:{padding:8,borderWidth:1,borderRadius:4,margin:4},text:{fontSize:12}});var m=require("react-native");var b=require("react/jsx-runtime");function Me({query:e}){if(e===void 0)return null;let n=new Date(e.state.dataUpdatedAt).toLocaleTimeString();return(0,b.jsxs)(m.View,{style:_.minWidth,children:[(0,b.jsx)(m.Text,{style:_.headerText,children:"Query Details"}),(0,b.jsxs)(m.View,{style:_.row,children:[(0,b.jsx)(m.ScrollView,{horizontal:!0,style:_.flexOne,children:(0,b.jsx)(m.Text,{style:_.queryKeyText,children:v(e.queryKey,!0)})}),(0,b.jsx)(ve,{query:e})]}),(0,b.jsxs)(m.View,{style:_.row,children:[(0,b.jsx)(m.Text,{children:" Observers:"}),(0,b.jsx)(m.Text,{children:`${e.getObserversCount()}`})]}),(0,b.jsxs)(m.View,{style:_.row,children:[(0,b.jsx)(m.Text,{children:" Last Updated:"}),(0,b.jsx)(m.Text,{children:`${n}`})]})]})}var _=m.StyleSheet.create({minWidth:{minWidth:200,fontSize:12},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4},row:{flexDirection:"row",justifyContent:"space-between",padding:4},flexOne:{flex:1},queryKeyText:{flexWrap:"wrap",alignItems:"center"}});var et=require("@tanstack/react-query");var G=require("react-native"),de=require("react/jsx-runtime"),It={btnRefetch:"#1570EF",btnInvalidate:"#DC6803",btnReset:"#475467",btnRemove:"#db2777",btnTriggerLoading:"#0891b2",btnTriggerLoadiError:"#ef4444"},Ut={btnRefetch:"#1570EF",btnInvalidate:"#DC6803",btnReset:"#475467",btnRemove:"#db2777",btnTriggerLoading:"#0891b2",btnTriggerLoadiError:"#ef4444"};function j({onClick:e,text:n,textColorClass:r,bgColorClass:i,disabled:s}){let d=It[i],x=Ut[r]||"#FFFFFF";return(0,de.jsxs)(G.TouchableOpacity,{disabled:s,onPress:e,style:[Fe.button,{opacity:s?.6:1}],children:[(0,de.jsx)(G.View,{style:[Fe.dot,{backgroundColor:x}]}),(0,de.jsx)(G.Text,{style:[Fe.text,{color:x,opacity:s?.6:1}],children:n})]})}var Fe=G.StyleSheet.create({button:{flexDirection:"row",alignItems:"center",justifyContent:"center",borderRadius:4,borderWidth:1,borderColor:"#d0d5dd",backgroundColor:"#f2f4f7",height:30,margin:4,paddingHorizontal:8,paddingVertical:4},dot:{width:6,height:6,borderRadius:999,marginRight:4},text:{fontSize:12,fontWeight:"400"}});function De({query:e}){if(e.state.data===void 0){let n=e.state.fetchMeta.__previousQueryOptions;n&&e.fetch(n,{cancelRefetch:!0})}else{let n=e.options;e.fetch({...n,queryFn:()=>new Promise(()=>{}),gcTime:-1}),e.setState({data:void 0,status:"pending",fetchMeta:{...e.state.fetchMeta,__previousQueryOptions:n}})}}function Ae({query:e}){e.fetch()}function Ee({query:e,queryClient:n}){n.resetQueries({queryKey:e.queryKey,exact:!0})}function Be({query:e,queryClient:n}){n.removeQueries(e)}function Ve({query:e}){e.invalidate()}function Qe({query:e,queryClient:n}){let r=()=>{if(!e)return;let s=[{name:"Network Error",initializer:()=>new Error("Network error occurred")}][0]?.initializer(e)??new Error("Unknown error from devtools"),d=e.options;e.setState({...e.state,status:"error",error:s,fetchMeta:{...e.state.fetchMeta,__previousQueryOptions:d}})};e.state.status!=="error"?r():n.resetQueries(e)}var te=require("react-native"),E=require("react/jsx-runtime");function Re({query:e,setSelectedQuery:n}){let r=(0,et.useQueryClient)();if(e===void 0)return null;let i=e.state.status;return(0,E.jsxs)(te.View,{style:Ye.container,children:[(0,E.jsx)(te.Text,{style:Ye.headerText,children:"Actions"}),(0,E.jsx)(j,{disabled:$(e)==="fetching",onClick:()=>{Ae({query:e})},bgColorClass:"btnRefetch",text:"Refetch",textColorClass:"btnRefetch"}),(0,E.jsx)(j,{disabled:i==="pending",onClick:()=>{Ve({query:e})},bgColorClass:"btnInvalidate",text:"Invalidate",textColorClass:"btnInvalidate"}),(0,E.jsx)(j,{disabled:i==="pending",onClick:()=>{Ee({queryClient:r,query:e})},bgColorClass:"btnReset",text:"Reset",textColorClass:"btnReset"}),(0,E.jsx)(j,{disabled:$(e)==="fetching",onClick:()=>{Be({queryClient:r,query:e}),n(void 0)},bgColorClass:"btnRemove",text:"Remove",textColorClass:"btnRemove"}),(0,E.jsx)(j,{disabled:!1,onClick:()=>{De({query:e})},bgColorClass:"btnTriggerLoading",text:e.state.data===void 0?"Restore Loading":"Trigger Loading",textColorClass:"btnTriggerLoading"}),(0,E.jsx)(j,{disabled:i==="pending",onClick:()=>{Qe({query:e,queryClient:r})},bgColorClass:"btnTriggerLoadiError",text:i==="error"?"Restore":"Trigger Error",textColorClass:"btnTriggerLoadiError"})]})}var Ye=te.StyleSheet.create({container:{minWidth:50,fontSize:12,flexDirection:"row",flexWrap:"wrap"},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4,width:"100%"}});var K=require("react"),fe=require("@tanstack/react-query");var t=me(require("react-native-svg")),o=require("react/jsx-runtime");function tt(){return(0,o.jsx)(t.default,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M9 3h6M3 6h18m-2 0l-.701 10.52c-.105 1.578-.158 2.367-.499 2.965a3 3 0 01-1.298 1.215c-.62.3-1.41.3-2.993.3h-3.018c-1.582 0-2.373 0-2.993-.3A3 3 0 016.2 19.485c-.34-.598-.394-1.387-.499-2.966L5 6m5 4.5v5m4-5v5",stroke:"#667085"})})}function ot(){return(0,o.jsx)(t.default,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#667085"})})}function rt(e){return(0,o.jsx)(t.default,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:e.theme==="dark"?"#12B76A":"#027A48",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function nt(){return(0,o.jsx)(t.default,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:"#F04438",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function it(){return(0,o.jsxs)(t.default,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#667085",strokeWidth:"2",children:[(0,o.jsx)(t.Rect,{width:"20",height:"20",y:"2",x:"2",rx:"2"}),(0,o.jsx)(t.Line,{y1:"7",y2:"7",x1:"6",x2:"18"}),(0,o.jsx)(t.Line,{y2:"12",y1:"12",x1:"6",x2:"18"}),(0,o.jsx)(t.Line,{y1:"17",y2:"17",x1:"6",x2:"18"})]})}function st(e){return(0,o.jsx)(o.Fragment,{children:e.checked?(0,o.jsx)(t.default,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:e.theme==="dark"?"#9B8AFB":"#6938EF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,o.jsx)(t.default,{viewBox:"0 0 24 24",height:"20",width:"20",fill:"none",children:(0,o.jsx)(t.Path,{d:"M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z",stroke:e.theme==="dark"?"#9B8AFB":"#6938EF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}function at(){return(0,o.jsx)(t.default,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#027A48",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function lt(){return(0,o.jsx)(t.default,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837",stroke:"#B54708",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function dt(){return(0,o.jsx)(t.default,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#b91c1c",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function ut(){return(0,o.jsx)(t.default,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#5925DC",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function ct(){return(0,o.jsxs)(t.default,{height:"100%",width:"100%",style:{position:"absolute"},viewBox:"0 0 633 633",children:[(0,o.jsxs)(t.LinearGradient,{x1:-666.45,x2:-666.45,y1:163.28,y2:163.99,gradientTransform:"matrix(633 0 0 633 422177 -103358)",gradientUnits:"userSpaceOnUse",id:"a",children:[(0,o.jsx)(t.Stop,{stopColor:"#6BDAFF",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#F9FFB5",offset:.32}),(0,o.jsx)(t.Stop,{stopColor:"#FFA770",offset:.71}),(0,o.jsx)(t.Stop,{stopColor:"#FF7373",offset:1})]}),(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"url(#a)"}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:-137.5,y:412,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"c",children:(0,o.jsx)(t.G,{filter:"url(#b)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#c)",children:(0,o.jsx)(t.Ellipse,{cx:89.5,cy:610.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00CFE2",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:316.5,y:412,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"e",children:(0,o.jsx)(t.G,{filter:"url(#d)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#e)",children:(0,o.jsx)(t.Ellipse,{cx:543.5,cy:610.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00CFE2",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:-137.5,y:450,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"g",children:(0,o.jsx)(t.G,{filter:"url(#f)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#g)",children:(0,o.jsx)(t.Ellipse,{cx:89.5,cy:648.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00A8B8",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:316.5,y:450,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"i",children:(0,o.jsx)(t.G,{filter:"url(#h)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#i)",children:(0,o.jsx)(t.Ellipse,{cx:543.5,cy:648.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00A8B8",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:-137.5,y:486,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"k",children:(0,o.jsx)(t.G,{filter:"url(#j)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#k)",children:(0,o.jsx)(t.Ellipse,{cx:89.5,cy:684.5,rx:214.5,ry:186,fill:"#015064",stroke:"#007782",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:316.5,y:486,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"m",children:(0,o.jsx)(t.G,{filter:"url(#l)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#m)",children:(0,o.jsx)(t.Ellipse,{cx:543.5,cy:684.5,rx:214.5,ry:186,fill:"#015064",stroke:"#007782",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:272.2,y:308,width:176.9,height:129.3,maskUnits:"userSpaceOnUse",id:"o",children:(0,o.jsx)(t.G,{filter:"url(#n)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsxs)(t.G,{mask:"url(#o)",children:[(0,o.jsx)(t.Path,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M436 403.2L431 431.8"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M291 341.5L280 403.5"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M332.9 384.1L328.6 411.2"}),(0,o.jsxs)(t.LinearGradient,{x1:-670.75,x2:-671.59,y1:164.4,y2:164.49,gradientTransform:"matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)",gradientUnits:"userSpaceOnUse",id:"p",children:[(0,o.jsx)(t.Stop,{stopColor:"#EE2700",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF008E",offset:1})]}),(0,o.jsx)(t.Path,{d:"M344.1 363l97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z",clipRule:"evenodd",fillRule:"evenodd",fill:"url(#p)"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M428.2 384.5L429.1 378"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M395.2 379.5L396.1 373"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M362.2 373.5L363.1 367.4"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M324.2 351.3L328.4 347.4"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M303.2 331.3L307.4 327.4"})]}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:73.2,y:113.8,width:280.6,height:317.4,maskUnits:"userSpaceOnUse",id:"r",children:(0,o.jsx)(t.G,{filter:"url(#q)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsxs)(t.G,{mask:"url(#r)",children:[(0,o.jsxs)(t.LinearGradient,{x1:-672.16,x2:-672.16,y1:165.03,y2:166.03,gradientTransform:"matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)",gradientUnits:"userSpaceOnUse",id:"s",children:[(0,o.jsx)(t.Stop,{stopColor:"#A17500",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#5D2100",offset:1})]}),(0,o.jsx)(t.Path,{d:"M192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6",clipRule:"evenodd",fillRule:"evenodd",fill:"url(#s)"}),(0,o.jsxs)(t.G,{stroke:"#2F8A00",children:[(0,o.jsxs)(t.LinearGradient,{x1:-660.23,x2:-660.23,y1:166.72,y2:167.72,gradientTransform:"matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)",gradientUnits:"userSpaceOnUse",id:"t",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#t)"}),(0,o.jsxs)(t.LinearGradient,{x1:-661.36,x2:-661.36,y1:164.18,y2:165.18,gradientTransform:"matrix(110 5.7648 -6.3599 121.35 73933 -15933)",gradientUnits:"userSpaceOnUse",id:"u",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#u)"}),(0,o.jsxs)(t.LinearGradient,{x1:-656.79,x2:-656.79,y1:165.15,y2:166.15,gradientTransform:"matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)",gradientUnits:"userSpaceOnUse",id:"v",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M195 183.9c-.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4S211.5 178 195 183.9z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#v)"}),(0,o.jsxs)(t.LinearGradient,{x1:-663.07,x2:-663.07,y1:165.44,y2:166.44,gradientTransform:"matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)",gradientUnits:"userSpaceOnUse",id:"w",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#w)"}),(0,o.jsxs)(t.LinearGradient,{x1:-662.57,x2:-662.57,y1:164.44,y2:165.44,gradientTransform:"matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)",gradientUnits:"userSpaceOnUse",id:"x",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M194.9 184.5c35.8-7.6 65.6-.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#x)"}),(0,o.jsxs)(t.LinearGradient,{x1:-656.43,x2:-656.43,y1:163.86,y2:164.86,gradientTransform:"matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)",gradientUnits:"userSpaceOnUse",id:"y",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#y)"}),(0,o.jsx)(t.Path,{d:"M196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1",fill:"none",strokeLinecap:"round",strokeWidth:8}),(0,o.jsx)(t.Path,{d:"M194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8M204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9M196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32",fill:"none",strokeLinecap:"round",strokeWidth:8})]})]}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:50.5,y:399,width:532,height:633,maskUnits:"userSpaceOnUse",id:"A",children:(0,o.jsx)(t.G,{filter:"url(#z)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsxs)(t.G,{mask:"url(#A)",children:[(0,o.jsxs)(t.LinearGradient,{x1:-666.06,x2:-666.23,y1:163.36,y2:163.75,gradientTransform:"matrix(532 0 0 633 354760 -102959)",gradientUnits:"userSpaceOnUse",id:"B",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFF400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#3C8700",offset:1})]}),(0,o.jsx)(t.Ellipse,{cx:316.5,cy:715.5,rx:266,ry:316.5,fill:"url(#B)"})]}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:391,y:-24,width:288,height:283,maskUnits:"userSpaceOnUse",id:"D",children:(0,o.jsx)(t.G,{filter:"url(#C)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsxs)(t.G,{mask:"url(#D)",children:[(0,o.jsxs)(t.LinearGradient,{x1:-664.56,x2:-664.56,y1:163.79,y2:164.79,gradientTransform:"matrix(227 0 0 227 151421 -37204)",gradientUnits:"userSpaceOnUse",id:"E",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFDF00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF9D00",offset:1})]}),(0,o.jsx)(t.Circle,{cx:565.5,cy:89.5,r:113.5,fill:"url(#E)"}),(0,o.jsxs)(t.LinearGradient,{x1:-644.5,x2:-645.77,y1:342,y2:342,gradientTransform:"matrix(30 0 0 1 19770 -253)",gradientUnits:"userSpaceOnUse",id:"F",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#F)",d:"M427 89L397 89"}),(0,o.jsxs)(t.LinearGradient,{x1:-641.56,x2:-642.83,y1:196.02,y2:196.07,gradientTransform:"matrix(26.5 0 0 5.5 17439 -1025.5)",gradientUnits:"userSpaceOnUse",id:"G",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#G)",d:"M430.5 55.5L404 50"}),(0,o.jsxs)(t.LinearGradient,{x1:-643.73,x2:-645,y1:185.83,y2:185.9,gradientTransform:"matrix(29 0 0 8 19107 -1361)",gradientUnits:"userSpaceOnUse",id:"H",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#H)",d:"M431 122L402 130"}),(0,o.jsxs)(t.LinearGradient,{x1:-638.94,x2:-640.22,y1:177.09,y2:177.39,gradientTransform:"matrix(24 0 0 13 15783 -2145)",gradientUnits:"userSpaceOnUse",id:"I",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#I)",d:"M442 153L418 166"}),(0,o.jsxs)(t.LinearGradient,{x1:-633.42,x2:-634.7,y1:172.41,y2:173.31,gradientTransform:"matrix(20 0 0 19 13137 -3096)",gradientUnits:"userSpaceOnUse",id:"J",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#J)",d:"M464 180L444 199"}),(0,o.jsxs)(t.LinearGradient,{x1:-619.05,x2:-619.52,y1:170.82,y2:171.82,gradientTransform:"matrix(13.83 0 0 22.85 9050 -3703.4)",gradientUnits:"userSpaceOnUse",id:"K",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#K)",d:"M491.4 203L477.5 225.9"}),(0,o.jsxs)(t.LinearGradient,{x1:-578.5,x2:-578.63,y1:170.31,y2:171.31,gradientTransform:"matrix(7.5 0 0 24.5 4860 -3953)",gradientUnits:"userSpaceOnUse",id:"L",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#L)",d:"M524.5 219.5L517 244"}),(0,o.jsxs)(t.LinearGradient,{x1:666.5,x2:666.5,y1:170.31,y2:171.31,gradientTransform:"matrix(.5 0 0 24.5 231.5 -3944)",gradientUnits:"userSpaceOnUse",id:"M",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#M)",d:"M564.5 228.5L565 253"})]})]})}var B=(e,n,r)=>{if(n.length===0)return r;if(e instanceof Map){let i=new Map(e);if(n.length===1)return i.set(n[0],r),i;let[s,...d]=n;return i.set(s,B(i.get(s),d,r)),i}if(e instanceof Set){let i=B(Array.from(e),n,r);return new Set(i)}if(Array.isArray(e)){let i=[...e];if(n.length===1)return i[n[0]]=r,i;let[s,...d]=n;return i[s]=B(i[s],d,r),i}if(e instanceof Object){let i={...e};if(n.length===1)return i[n[0]]=r,i;let[s,...d]=n;return i[s]=B(i[s],d,r),i}return e};var oe=(e,n)=>{if(e instanceof Map){let r=new Map(e);if(n.length===1)return r.delete(n[0]),r;let[i,...s]=n;return r.set(i,oe(r.get(i),s)),r}if(e instanceof Set){let r=oe(Array.from(e),n);return new Set(r)}if(Array.isArray(e)){let r=[...e];if(n.length===1)return r.filter((d,x)=>x.toString()!==n[0]);let[i,...s]=n;return r[i]=oe(r[i],s),r}if(e instanceof Object){let r={...e};if(n.length===1)return delete r[n[0]],r;let[i,...s]=n;return r[i]=oe(r[i],s),r}return e};function We({activeQuery:e,dataPath:n,queryClient:r}){if(!n){console.error("delete item data path is missing!");return}let i=e.state.data,s=oe(i,n);r.setQueryData(e.queryKey,s)}var H=me(require("react-native-svg")),l=require("react-native");var ue=null,ce=null;try{ue=require("expo-clipboard")}catch(e){console.log("expo-clipboard is not installed:",e);try{ce=require("@react-native-clipboard/clipboard")}catch(n){console.log("@react-native-clipboard/clipboard is not installed:",n)}}var ft={setString:async e=>{if(ue?.setStringAsync)await ue.setStringAsync(e,{});else if(ce)ce.setString(e);else throw new Error("Clipboard functionality is not available. Please install either expo-clipboard or @react-native-clipboard/clipboard")},getString:async()=>{if(ue?.getStringAsync)return await ue.getStringAsync({});if(ce)return await ce.getString();throw new Error("Clipboard functionality is not available. Please install either expo-clipboard or @react-native-clipboard/clipboard")}};var a=require("react/jsx-runtime");function pt(e){return Symbol.iterator in e}function zt(e,n){if(n<1)return[];let r=0,i=[];for(;r<e.length;)i.push(e.slice(r,r+n)),r=r+n;return i}var yt=({expanded:e})=>(0,a.jsx)(l.View,{style:[e?u.expanded:u.collapsed],children:(0,a.jsx)(H.default,{width:16,height:16,viewBox:"0 0 16 16",fill:"#98A2B3",children:(0,a.jsx)(H.Path,{d:"M6 12l4-4-4-4"})})}),Gt=({value:e})=>{let[n,r]=(0,K.useState)("NoCopy"),i=async()=>{try{ft.setString(JSON.stringify(e)),r("SuccessCopy"),setTimeout(()=>r("NoCopy"),1500)}catch{console.error("Failed to copy: "),r("ErrorCopy"),setTimeout(()=>r("NoCopy"),1500)}};return(0,a.jsxs)(l.TouchableOpacity,{style:u.buttonStyle,"aria-label":n==="NoCopy"?"Copy object to clipboard":n==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard",onPress:n==="NoCopy"?i:void 0,children:[n==="NoCopy"&&(0,a.jsx)(ot,{}),n==="SuccessCopy"&&(0,a.jsx)(rt,{theme:"light"}),n==="ErrorCopy"&&(0,a.jsx)(nt,{})]})},gt=({dataPath:e,activeQuery:n})=>{let r=(0,fe.useQueryClient)();return n?(0,a.jsx)(l.TouchableOpacity,{onPress:()=>{We({queryClient:r,activeQuery:n,dataPath:e})},style:u.buttonStyle1,accessibilityLabel:"Delete item",children:(0,a.jsx)(tt,{})}):null},jt=({dataPath:e,activeQuery:n})=>{let r=(0,fe.useQueryClient)();if(!n)return null;let i=()=>{let s=n.state.data,d=B(s,e,[]);r.setQueryData(n.queryKey,d)};return(0,a.jsx)(l.TouchableOpacity,{style:u.buttonStyle2,"aria-label":"Remove all items",onPress:i,children:(0,a.jsx)(it,{})})},Kt=({dataPath:e,activeQuery:n,value:r})=>{let i=(0,fe.useQueryClient)();if(!n)return null;let s=()=>{let d=n.state.data,x=B(d,e,!r);i.setQueryData(n.queryKey,x)};return(0,a.jsx)(l.TouchableOpacity,{style:u.buttonStyle3,"aria-label":"Toggle value",onPress:s,children:(0,a.jsx)(st,{checked:r,theme:"light"})})};function M({editable:e,label:n,value:r,defaultExpanded:i,activeQuery:s,dataPath:d,itemsDeletable:x}){let R=(0,fe.useQueryClient)(),[k,T]=(0,K.useState)((i||[]).includes(n)),Z=()=>T(f=>!f),[ge,ke]=(0,K.useState)([]),se=(0,K.useMemo)(()=>Array.isArray(r)?r.map((f,c)=>({label:c.toString(),value:f})):r!==null&&typeof r=="object"&&pt(r)?r instanceof Map?Array.from(r,([f,c])=>({label:f.toString(),value:c})):Array.from(r,(f,c)=>({label:c.toString(),value:f})):typeof r=="object"&&r!==null?Object.entries(r).map(([f,c])=>({label:f,value:c})):[],[r]),h=(0,K.useMemo)(()=>Array.isArray(r)?"array":r!==null&&typeof r=="object"&&pt(r)&&typeof r[Symbol.iterator]=="function"?"Iterable":typeof r=="object"&&r!==null?"object":typeof r,[r]),ae=(0,K.useMemo)(()=>zt(se,100),[se]),W=d??[],Lt=(f,c)=>{if(!s)return null;let A=s.state.data;if(f&&isNaN(Number(c)))return;let Se=h==="number"?Number(c):c,vt=B(A,W,Se);R.setQueryData(s.queryKey,vt)};return(0,a.jsx)(l.View,{style:u.minWidthWrapper,children:(0,a.jsxs)(l.View,{style:u.fullWidthMarginRight,children:[ae.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.View,{style:u.flexRowItemsCenterGap,children:[(0,a.jsxs)(l.TouchableOpacity,{style:u.expanderButton,onPress:()=>Z(),children:[(0,a.jsx)(yt,{expanded:k}),(0,a.jsx)(l.Text,{children:n}),(0,a.jsx)(l.Text,{style:u.textGray500,children:`${String(h).toLowerCase()==="iterable"?"(Iterable) ":""}${se.length} ${se.length>1?"items":"item"}`})]}),e&&(0,a.jsxs)(l.View,{style:u.flexRowGapItemsCenter,children:[(0,a.jsx)(Gt,{value:r}),x&&s!==void 0&&(0,a.jsx)(gt,{activeQuery:s,dataPath:W}),h==="array"&&s!==void 0&&(0,a.jsx)(jt,{activeQuery:s,dataPath:W})]})]}),k&&(0,a.jsxs)(a.Fragment,{children:[ae.length===1&&(0,a.jsx)(l.View,{style:u.singleEntryContainer,children:se.map((f,c)=>(0,a.jsx)(M,{defaultExpanded:i,label:f.label,value:f.value,editable:e,dataPath:[...W,f.label],activeQuery:s,itemsDeletable:h==="array"||h==="Iterable"||h==="object"},f.label+c))}),ae.length>1&&(0,a.jsx)(l.View,{style:u.multiEntryContainer,children:ae.map((f,c)=>(0,a.jsx)(l.View,{children:(0,a.jsxs)(l.View,{style:u.relativeOutlineNone,children:[(0,a.jsxs)(l.TouchableOpacity,{onPress:()=>ke(A=>A.includes(c)?A.filter(Se=>Se!==c):[...A,c]),style:u.pageExpanderButton,children:[(0,a.jsx)(yt,{expanded:ge.includes(c)}),(0,a.jsxs)(l.Text,{children:["[",c*100,"...",c*100+99,"]"]})]}),ge.includes(c)&&(0,a.jsx)(l.View,{style:u.entriesContainer,children:f.map(A=>(0,a.jsx)(M,{defaultExpanded:i,label:A.label,value:A.value,editable:e,dataPath:[...W,A.label],activeQuery:s},A.label))})]})},c))})]})]}),ae.length===0&&(0,a.jsxs)(l.View,{style:u.flexRowGapFullWidth,children:[(0,a.jsxs)(l.Text,{style:u.text344054,children:[n,":"]}),e&&s!==void 0&&(h==="string"||h==="number"||h==="boolean")?(0,a.jsxs)(a.Fragment,{children:[e&&s&&(h==="string"||h==="number")&&(0,a.jsxs)(l.View,{style:u.inputContainer,children:[(0,a.jsx)(l.TextInput,{style:[u.textInput,h==="number"?u.textNumber:u.textString],keyboardType:h==="number"?"numeric":"default",value:r.toString(),onChangeText:f=>Lt(h==="number",f)}),h==="number"&&(0,a.jsxs)(l.View,{style:u.numberInputButtons,children:[(0,a.jsx)(l.TouchableOpacity,{style:u.touchableButton,onPressIn:()=>{let f=s.state.data,c=B(f,W,r+1);R.setQueryData(s.queryKey,c)},children:(0,a.jsx)(H.default,{fill:"none",viewBox:"0 0 24 24",stroke:"#6938EF",children:(0,a.jsx)(H.Path,{d:"M4.5 15.75l7.5-7.5 7.5 7.5"})})}),(0,a.jsx)(l.TouchableOpacity,{style:u.touchableButton,onPressIn:()=>{let f=s.state.data,c=B(f,W,r-1);R.setQueryData(s.queryKey,c)},children:(0,a.jsx)(H.default,{fill:"none",viewBox:"0 0 24 24",stroke:"#6938EF",children:(0,a.jsx)(H.Path,{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})})]})]}),h==="boolean"&&(0,a.jsxs)(l.View,{style:u.booleanContainer,children:[(0,a.jsx)(Kt,{activeQuery:s,dataPath:W,value:r}),(0,a.jsx)(l.Text,{style:u.booleanText,children:v(r)})]})]}):(0,a.jsx)(l.Text,{style:u.displayValueText,children:v(r)}),e&&x&&s!==void 0&&(0,a.jsx)(gt,{activeQuery:s,dataPath:W})]})]})})}var u=l.StyleSheet.create({buttonStyle3:{backgroundColor:"transparent",flexDirection:"row",alignItems:"center",justifyContent:"center",width:16,height:16,position:"relative",zIndex:10},buttonStyle2:{backgroundColor:"transparent",flexDirection:"row",padding:0,alignItems:"center",justifyContent:"center",width:12,height:12,position:"relative",zIndex:10},buttonStyle1:{backgroundColor:"transparent",borderColor:"none",borderWidth:0,padding:0,alignItems:"center",justifyContent:"center",width:24,height:24,position:"relative"},buttonStyle:{backgroundColor:"transparent",color:"#6B7280",borderWidth:0,flexDirection:"row",alignItems:"center",justifyContent:"center",width:12,height:12,position:"relative"},expanded:{transform:[{rotate:"90deg"}]},collapsed:{transform:[{rotate:"0deg"}]},minWidthWrapper:{minWidth:200,fontSize:12,flexDirection:"row",flexWrap:"wrap",width:"100%"},fullWidthMarginRight:{position:"relative",width:"100%",marginRight:1},flexRowItemsCenterGap:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:1},expanderButton:{flexDirection:"row",alignItems:"center",height:20,backgroundColor:"transparent",borderWidth:0,padding:0},textGray500:{color:"#6B7280",fontSize:12,marginLeft:1},flexRowGapItemsCenter:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:1},singleEntryContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},multiEntryContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},relativeOutlineNone:{position:"relative"},pageExpanderButton:{flexDirection:"row",alignItems:"center",backgroundColor:"transparent",borderWidth:0,padding:0},entriesContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},flexRowGapFullWidth:{flexDirection:"row",width:"100%",alignItems:"center",marginVertical:4,lineHeight:44},text344054:{color:"#344054",height:"100%",marginRight:1},inputContainer:{flexDirection:"row",justifyContent:"space-between",borderWidth:0,height:22,margin:1,paddingVertical:2,paddingLeft:6,paddingRight:4,borderRadius:4,backgroundColor:"#EAECF0",flex:1},textNumber:{color:"#6938EF"},textInput:{flex:1,marginRight:8},textString:{},numberInputButtons:{flexDirection:"row"},touchableButton:{width:24},booleanContainer:{flexDirection:"row",alignItems:"center",padding:4,borderRadius:4,backgroundColor:"#F3F4F6",flex:1},booleanText:{marginLeft:8,color:"#6938EF"},displayValueText:{flex:1,color:"#6938EF",height:"100%"}});var V=require("react-native"),F=require("react/jsx-runtime");function Oe({selectedQuery:e,setSelectedQuery:n}){return(0,F.jsxs)(V.ScrollView,{style:pe.flexOne,children:[(0,F.jsx)(Me,{query:e}),(0,F.jsx)(Re,{query:e,setSelectedQuery:n}),(0,F.jsx)(V.Text,{style:pe.headerText,children:"Data Explorer"}),(0,F.jsx)(V.View,{style:pe.contentView,children:(0,F.jsx)(M,{editable:!0,label:"Data",value:e?.state.data,defaultExpanded:["Data"],activeQuery:e})}),(0,F.jsx)(V.Text,{style:pe.headerText,children:"Query Explorer"}),(0,F.jsx)(V.View,{style:pe.contentView,children:(0,F.jsx)(M,{label:"Query",value:e,defaultExpanded:["Query","queryKey"],activeQuery:e})})]})}var pe=V.StyleSheet.create({flexOne:{flex:1},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:6,width:"100%",fontSize:12},contentView:{padding:2}});var N=require("react/jsx-runtime");function Ie(){let[e,n]=(0,ye.useState)(void 0),[r,i]=(0,ye.useState)({}),s=Je(),d=(0,ye.useRef)(null),x=(k,T)=>{let{y:Z,height:ge}=k.nativeEvent.layout;i(ke=>({...ke,[T]:{y:Z,height:ge}}))},R=(k,T)=>{if(k===e){n(void 0);return}if(n(k),d.current&&r[T]){let Z=r[T].y;d.current.scrollTo({y:Z,animated:!0})}};return(0,N.jsxs)(O.SafeAreaView,{style:Pe.container,children:[(0,N.jsx)(O.ScrollView,{style:Pe.scrollView,ref:d,children:s.map((k,T)=>(0,N.jsx)(O.View,{onLayout:Z=>x(Z,T),children:(0,N.jsx)(Te,{selected:e,setSelected:()=>R(k,T),query:k})},T))}),e&&(0,N.jsx)(O.View,{style:Pe.queryInformation,children:(0,N.jsx)(Oe,{selectedQuery:e,setSelectedQuery:n})})]})}var Pe=O.StyleSheet.create({container:{flex:1,width:"100%"},scrollView:{flex:1,flexDirection:"column",width:"100%",height:"25%"},queryInformation:{height:"75%"}});var be=me(require("react-native-svg"));var wt=require("react"),X=require("react-native");var q=require("react-native");var Q={purpleMutation:"#D9D6FE",purpleMutationText:"#5925DC",redMutation:"#fecaca",redMutationText:"#b91c1c",yellowMutation:"#FEDF89",yellowMutationText:"#B54708",greenMutation:"#A6F4C5",greenMutationText:"#027A48",grayMutation:"#eaecf0",grayMutationText:"#344054"},ht=({status:e,isPaused:n})=>{let r,i;return n?(r=Q.purpleMutation,i=Q.purpleMutationText):e==="error"?(r=Q.redMutation,i=Q.redMutationText):e==="pending"?(r=Q.yellowMutation,i=Q.yellowMutationText):e==="success"?(r=Q.greenMutation,i=Q.greenMutationText):(r=Q.grayMutation,i=Q.grayMutationText),{backgroundColor:r,textColor:i}};var P=require("react/jsx-runtime");function Ue({mutation:e,setSelected:n,selected:r}){let i=e.options.mutationKey?JSON.stringify(v(e.options.mutationKey,!1))+" - ":"",s=new Date(e.state.submittedAt).toLocaleString(),d=`${i}${s}`,{backgroundColor:x,textColor:R}=ht({isPaused:e.state.isPaused,status:e.state.status});return(0,P.jsxs)(q.TouchableOpacity,{onPress:()=>n(e===r?void 0:e),style:[xe.button,r?.mutationId===e.mutationId&&xe.selected],children:[(0,P.jsxs)(q.View,{style:[xe.iconContainer,{backgroundColor:x}],children:[e.state.isPaused&&(0,P.jsx)(ut,{}),e.state.status==="success"&&(0,P.jsx)(at,{}),e.state.status==="error"&&(0,P.jsx)(dt,{}),e.state.status==="pending"&&(0,P.jsx)(lt,{})]}),(0,P.jsx)(q.Text,{style:[xe.text],children:d})]})}var xe=q.StyleSheet.create({button:{flexDirection:"row",alignItems:"center",justifyContent:"flex-start",borderBottomWidth:1,borderBottomColor:"#d0d5dd",backgroundColor:"white"},selected:{backgroundColor:"#eaecf0"},iconContainer:{padding:8,paddingVertical:6},text:{marginLeft:8,fontSize:12,minWidth:18}});var w=require("react-native");var S=require("react-native");var re=require("react-native"),ze=require("react/jsx-runtime"),Ht={fresh:"#D1FADF",stale:"#FEF0C7",fetching:"#D1E9FF",paused:"#EBE9FE",inactive:"#F2F4F7"},Nt={fresh:"#32D583",stale:"#FDB022",fetching:"#53B1FD",paused:"#9B8AFB",inactive:"#344054"},qt={fresh:"#027A48",stale:"#B54708",fetching:"#175CD3",paused:"#5925DC",inactive:"#344054"};function Ge({status:e}){let n=e==="pending"?"fetching":e==="idle"?"inactive":e==="error"?"stale":"fresh",r=Ht[n],i=Nt[n],s=qt[n];return(0,ze.jsx)(re.View,{style:[mt.container,{backgroundColor:r,borderColor:i}],children:(0,ze.jsx)(re.Text,{style:[mt.text,{color:s}],children:e})})}var mt=re.StyleSheet.create({container:{padding:8,borderWidth:1,borderRadius:4,margin:4},text:{fontSize:12}});var D=require("react/jsx-runtime");function je({selectedMutation:e}){if(e===void 0)return null;let n=new Date(e.state.submittedAt).toLocaleTimeString();return(0,D.jsxs)(S.View,{style:L.container,children:[(0,D.jsx)(S.Text,{style:[L.mutationDetailsText,L.bgEAECF0,L.p1],children:"Mutation Details"}),(0,D.jsxs)(S.View,{style:[L.flexRow,L.justifyBetween,L.p1],children:[(0,D.jsx)(S.ScrollView,{horizontal:!0,style:L.flex1,children:(0,D.jsx)(S.Text,{style:L.flexWrap,children:`${e.options.mutationKey?v(e.options.mutationKey,!0):"No mutationKey found"}`})}),(0,D.jsx)(Ge,{status:e.state.status})]}),(0,D.jsxs)(S.View,{style:[L.flexRow,L.justifyBetween,L.p1],children:[(0,D.jsx)(S.Text,{children:"Submitted At:"}),(0,D.jsx)(S.Text,{children:n})]})]})}var L=S.StyleSheet.create({container:{minWidth:200,fontSize:12},mutationDetailsText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4},flexRow:{flexDirection:"row",justifyContent:"space-between",padding:4},justifyBetween:{justifyContent:"space-between"},p1:{padding:4},flex1:{flex:1},flexWrap:{flexWrap:"wrap",alignItems:"center"},bgEAECF0:{backgroundColor:"#EAECF0"}});var C=require("react/jsx-runtime");function Ke({selectedMutation:e}){return(0,C.jsxs)(w.ScrollView,{style:I.flex1,children:[(0,C.jsx)(je,{selectedMutation:e}),(0,C.jsx)(w.Text,{style:I.textHeader,children:"Variables Details"}),(0,C.jsx)(w.View,{style:I.padding,children:(0,C.jsx)(M,{label:"Variables",value:e?.state.variables,defaultExpanded:["Variables"]})}),(0,C.jsx)(w.Text,{style:I.textHeader,children:"Context Details"}),(0,C.jsx)(w.View,{style:I.padding,children:(0,C.jsx)(M,{label:"Context",value:e?.state.context,defaultExpanded:["Context"]})}),(0,C.jsx)(w.Text,{style:I.textHeader,children:"Data Explorer"}),(0,C.jsx)(w.View,{style:I.padding,children:(0,C.jsx)(M,{label:"Data",defaultExpanded:["Data"],value:e?.state.data})}),(0,C.jsx)(w.Text,{style:I.textHeader,children:"Mutations Explorer"}),(0,C.jsx)(w.View,{style:I.padding,children:(0,C.jsx)(M,{label:"Mutation",defaultExpanded:["Mutation"],value:e})})]})}var I=w.StyleSheet.create({flex1:{flex:1},textHeader:{textAlign:"left",backgroundColor:"#EAECF0",padding:4,width:"100%",fontSize:12},padding:{padding:8}});var ne=require("react"),Ct=require("@tanstack/react-query"),xt=me(require("fast-deep-equal"));function Zt(){let e=(0,Ct.useQueryClient)(),[n,r]=(0,ne.useState)([]),i=(0,ne.useRef)([]);return(0,ne.useEffect)(()=>{let s=()=>{let x=e.getMutationCache().getAll();setTimeout(()=>{let R=[...e.getMutationCache().getAll()],k=R.map(T=>T.state);(0,xt.default)(i.current,k)||(i.current=k,r(R))},1)};s();let d=e.getMutationCache().subscribe(s);return()=>d()},[e]),{mutations:n}}var bt=Zt;var J=require("react/jsx-runtime");function Ne(){let[e,n]=(0,wt.useState)(),{mutations:r}=bt();return(0,J.jsxs)(X.View,{style:He.container,children:[(0,J.jsx)(X.ScrollView,{style:He.scrollView,children:r.map((i,s)=>(0,J.jsx)(Ue,{selected:e,setSelected:n,mutation:i},s))}),e&&(0,J.jsx)(X.View,{style:He.mutationInfo,children:(0,J.jsx)(Ke,{selectedMutation:e})})]})}var He=X.StyleSheet.create({container:{flex:1,flexDirection:"column",width:"100%"},scrollView:{flex:1,flexDirection:"column",height:"25%"},mutationInfo:{height:"75%"}});var y=require("react/jsx-runtime");function qe({setShowDevTools:e}){let[n,r]=(0,kt.useState)(!0);return(0,y.jsxs)(g.View,{style:p.container,children:[(0,y.jsx)(g.TouchableOpacity,{onPress:()=>{e(!1)},style:p.closeButton,children:(0,y.jsx)(be.default,{width:8,height:8,viewBox:"0 0 10 6",fill:"none",children:(0,y.jsx)(be.Path,{d:"M1 1l4 4 4-4",stroke:"#475467",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,y.jsxs)(g.View,{style:p.devToolsPanel,children:[(0,y.jsxs)(g.View,{style:p.devToolsHeader,children:[(0,y.jsxs)(g.View,{style:p.tanstackHeader,children:[(0,y.jsx)(g.Text,{style:p.tanstackText,children:"TANSTACK"}),(0,y.jsx)(g.View,{style:p.reactQueryVersion,children:(0,y.jsx)(g.Text,{style:p.reactQueryVersionText,children:"React Query v5"})})]}),(0,y.jsxs)(g.View,{style:p.toggleButtonsContainer,children:[(0,y.jsx)(g.TouchableOpacity,{onPress:()=>{r(!0)},style:[p.toggleButton,n===!0?p.toggleButtonActive:p.toggleButtonInactive,{borderTopRightRadius:0,borderBottomRightRadius:0}],children:(0,y.jsx)(g.Text,{style:[p.toggleButtonText,n===!0?p.toggleButtonTextActive:p.toggleButtonTextInactive],children:"Queries"})}),(0,y.jsx)(g.TouchableOpacity,{onPress:()=>{r(!1)},style:[p.toggleButton,n===!1?p.toggleButtonActive:p.toggleButtonInactive,{borderTopLeftRadius:0,borderBottomLeftRadius:0}],children:(0,y.jsx)(g.Text,{style:[p.toggleButtonText,n===!1?p.toggleButtonTextActive:p.toggleButtonTextInactive],children:"Mutations"})})]})]}),n?(0,y.jsx)(Ie,{}):(0,y.jsx)(Ne,{})]})]})}var p=g.StyleSheet.create({container:{flex:1,flexDirection:"column"},closeButton:{position:"absolute",right:-2,top:-17,zIndex:50,width:22,height:15,borderTopLeftRadius:4,borderTopRightRadius:4,backgroundColor:"white",padding:3,margin:3,borderColor:"#98a2b3",borderWidth:1,borderBottomWidth:0,alignItems:"center",justifyContent:"center"},devToolsPanel:{backgroundColor:"white",minWidth:300,flex:1,borderTopColor:"#98a2b3",borderTopWidth:1},devToolsHeader:{padding:8,paddingBottom:6,paddingTop:6,borderColor:"#d0d5dd",borderBottomWidth:2,paddingVertical:1,flexDirection:"row"},tanstackHeader:{marginHorizontal:2,paddingRight:8},tanstackText:{color:"#475467",fontWeight:"bold"},reactQueryVersion:{},reactQueryVersionText:{marginTop:-4,color:"#F97F1E"},toggleButtonsContainer:{flexDirection:"row",marginLeft:1,alignItems:"center"},toggleButton:{borderTopLeftRadius:4,borderBottomLeftRadius:4,padding:4,borderWidth:1,borderColor:"#d0d5dd",paddingHorizontal:2,maxWidth:100,borderRadius:4},toggleButtonActive:{backgroundColor:"#F2F4F7"},toggleButtonInactive:{backgroundColor:"#EAECF0"},toggleButtonText:{paddingRight:4,paddingLeft:4,fontSize:12},toggleButtonTextActive:{color:"#344054"},toggleButtonTextInactive:{color:"#909193"},comingSoonText:{margin:3}});var ie=require("react/jsx-runtime");function Tt({bubbleStyle:e}){let[n,r]=(0,St.useState)(!1);return(0,ie.jsx)(U.View,{children:n?(0,ie.jsx)(U.View,{style:we.devTools,children:(0,ie.jsx)(qe,{setShowDevTools:r})}):(0,ie.jsx)(U.TouchableOpacity,{onPress:()=>{r(!0)},style:[we.touchableOpacityBase,U.Platform.OS==="ios"?we.touchableOpacityIOS:we.touchableOpacityAndroid,e],children:(0,ie.jsx)(ct,{})})})}var we=U.StyleSheet.create({devTools:{position:"absolute",right:0,bottom:0,zIndex:50,width:"100%",height:350},touchableOpacityBase:{position:"absolute",right:1,zIndex:50,width:48,height:48,borderRadius:24,borderWidth:4,borderColor:"#A4C200"},touchableOpacityIOS:{bottom:96},touchableOpacityAndroid:{bottom:64},text:{zIndex:10,color:"white",fontSize:40,padding:24}}); | ||
"use strict";var wt=Object.create;var ye=Object.defineProperty;var St=Object.getOwnPropertyDescriptor;var Tt=Object.getOwnPropertyNames;var Lt=Object.getPrototypeOf,Mt=Object.prototype.hasOwnProperty;var vt=(e,n)=>{for(var r in n)ye(e,r,{get:n[r],enumerable:!0})},Ne=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of Tt(n))!Mt.call(e,s)&&s!==r&&ye(e,s,{get:()=>n[s],enumerable:!(i=St(n,s))||i.enumerable});return e};var ge=(e,n,r)=>(r=e!=null?wt(Lt(e)):{},Ne(n||!e||!e.__esModule?ye(r,"default",{value:e,enumerable:!0}):r,e)),Ft=e=>Ne(ye({},"__esModule",{value:!0}),e);var Kt={};vt(Kt,{DevToolsBubble:()=>Ct});module.exports=Ft(Kt);var xt=require("react"),U=require("react-native");var mt=require("react"),g=require("react-native");var fe=require("react"),O=require("react-native");function $(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}var Dt={fresh:{backgroundColor:"#A6F4C5"},stale:{backgroundColor:"#FEDF89"},fetching:{backgroundColor:"#B2DDFF"},paused:{backgroundColor:"#D9D6FE"},noObserver:{backgroundColor:"#EAECF0"},inactive:{backgroundColor:"#FEDF89"}};function qe(e){let n={backgroundColor:"#EAECF0"};return Dt[e]||n}var z=require("react-native");var M=(e,n=!1)=>JSON.stringify(e,(()=>{let i=new WeakSet;return(s,u)=>{if(typeof u=="object"&&u!==null){if(i.has(u))return"[Circular]";i.add(u)}return u}})(),n?2:void 0);var Y=require("react/jsx-runtime");function we({query:e,setSelected:n,selected:r}){return(0,Y.jsxs)(z.TouchableOpacity,{onPress:()=>{n(e===r?void 0:e)},style:[le.touchableOpacityBase,r?.queryKey===e.queryKey&&le.touchableOpacitySelected],children:[(0,Y.jsx)(z.Text,{style:[le.textBase,qe($(e))],children:`${e.getObserversCount()}`}),(0,Y.jsx)(z.Text,{style:le.queryKeyText,children:`${M(e.queryKey,!1)}`}),e.isDisabled()&&(0,Y.jsx)(z.Text,{style:le.disabledText,children:"disabled"})]})}var le=z.StyleSheet.create({touchableOpacityBase:{flexDirection:"row",alignItems:"center",justifyContent:"center",backgroundColor:"white",borderBottomWidth:1,borderBottomColor:"#d0d5dd"},touchableOpacitySelected:{backgroundColor:"#eaecf0"},textBase:{textAlign:"center",minWidth:30,maxWidth:30,paddingVertical:6,fontSize:12},queryKeyText:{flex:1,flexDirection:"row",paddingVertical:1,paddingHorizontal:2,fontSize:12,paddingLeft:5},disabledText:{fontSize:12,paddingVertical:6,paddingHorizontal:2,color:"#1d2939",backgroundColor:"#d0d5dd",borderBottomWidth:1,borderBottomColor:"#d0d5dd"}});var he=require("react"),Ze=require("@tanstack/react-query");function Bt(){let e=(0,Ze.useQueryClient)(),[n,r]=(0,he.useState)([]);return(0,he.useEffect)(()=>{let i=()=>{let u=e.getQueryCache().findAll();setTimeout(()=>{r(u)},1)};i();let s=e.getQueryCache().subscribe(i);return()=>s()},[e]),n}var $e=Bt;var ee=require("react-native"),Se=require("react/jsx-runtime"),At={fresh:"#D1FADF",stale:"#FEF0C7",fetching:"#D1E9FF",paused:"#EBE9FE",noObserver:"#F2F4F7"},Vt={fresh:"#32D583",stale:"#FDB022",fetching:"#53B1FD",paused:"#9B8AFB",noObserver:"#344054"},Et={fresh:"#027A48",stale:"#B54708",fetching:"#175CD3",paused:"#5925DC",noObserver:"#344054"};function Te({query:e}){let n=$(e),r=At[n],i=Vt[n],s=Et[n];return(0,Se.jsx)(ee.View,{style:[_e.container,{backgroundColor:r,borderColor:i}],children:(0,Se.jsx)(ee.Text,{style:[_e.text,{color:s}],children:n})})}var _e=ee.StyleSheet.create({container:{padding:8,borderWidth:1,borderRadius:4,margin:4},text:{fontSize:12}});var m=require("react-native");var b=require("react/jsx-runtime");function Le({query:e}){if(e===void 0)return null;let n=new Date(e.state.dataUpdatedAt).toLocaleTimeString();return(0,b.jsxs)(m.View,{style:_.minWidth,children:[(0,b.jsx)(m.Text,{style:_.headerText,children:"Query Details"}),(0,b.jsxs)(m.View,{style:_.row,children:[(0,b.jsx)(m.ScrollView,{horizontal:!0,style:_.flexOne,children:(0,b.jsx)(m.Text,{style:_.queryKeyText,children:M(e.queryKey,!0)})}),(0,b.jsx)(Te,{query:e})]}),(0,b.jsxs)(m.View,{style:_.row,children:[(0,b.jsx)(m.Text,{children:" Observers:"}),(0,b.jsx)(m.Text,{children:`${e.getObserversCount()}`})]}),(0,b.jsxs)(m.View,{style:_.row,children:[(0,b.jsx)(m.Text,{children:" Last Updated:"}),(0,b.jsx)(m.Text,{children:`${n}`})]})]})}var _=m.StyleSheet.create({minWidth:{minWidth:200,fontSize:12},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4},row:{flexDirection:"row",justifyContent:"space-between",padding:4},flexOne:{flex:1},queryKeyText:{flexWrap:"wrap",alignItems:"center"}});var Xe=require("@tanstack/react-query");var G=require("react-native"),de=require("react/jsx-runtime"),Qt={btnRefetch:"#1570EF",btnInvalidate:"#DC6803",btnReset:"#475467",btnRemove:"#db2777",btnTriggerLoading:"#0891b2",btnTriggerLoadiError:"#ef4444"},Rt={btnRefetch:"#1570EF",btnInvalidate:"#DC6803",btnReset:"#475467",btnRemove:"#db2777",btnTriggerLoading:"#0891b2",btnTriggerLoadiError:"#ef4444"};function j({onClick:e,text:n,textColorClass:r,bgColorClass:i,disabled:s}){let u=Qt[i],C=Rt[r]||"#FFFFFF";return(0,de.jsxs)(G.TouchableOpacity,{disabled:s,onPress:e,style:[Me.button,{opacity:s?.6:1}],children:[(0,de.jsx)(G.View,{style:[Me.dot,{backgroundColor:C}]}),(0,de.jsx)(G.Text,{style:[Me.text,{color:C,opacity:s?.6:1}],children:n})]})}var Me=G.StyleSheet.create({button:{flexDirection:"row",alignItems:"center",justifyContent:"center",borderRadius:4,borderWidth:1,borderColor:"#d0d5dd",backgroundColor:"#f2f4f7",height:30,margin:4,paddingHorizontal:8,paddingVertical:4},dot:{width:6,height:6,borderRadius:999,marginRight:4},text:{fontSize:12,fontWeight:"400"}});function ve({query:e}){if(e.state.data===void 0){let n=e.state.fetchMeta.__previousQueryOptions;n&&e.fetch(n,{cancelRefetch:!0})}else{let n=e.options;e.fetch({...n,queryFn:()=>new Promise(()=>{}),gcTime:-1}),e.setState({data:void 0,status:"pending",fetchMeta:{...e.state.fetchMeta,__previousQueryOptions:n}})}}function Fe({query:e}){e.fetch()}function De({query:e,queryClient:n}){n.resetQueries({queryKey:e.queryKey,exact:!0})}function Be({query:e,queryClient:n}){n.removeQueries(e)}function Ae({query:e}){e.invalidate()}function Ve({query:e,queryClient:n}){let r=()=>{if(!e)return;let s=[{name:"Network Error",initializer:()=>new Error("Network error occurred")}][0]?.initializer(e)??new Error("Unknown error from devtools"),u=e.options;e.setState({...e.state,status:"error",error:s,fetchMeta:{...e.state.fetchMeta,__previousQueryOptions:u}})};e.state.status!=="error"?r():n.resetQueries(e)}var te=require("react-native"),A=require("react/jsx-runtime");function Ee({query:e,setSelectedQuery:n}){let r=(0,Xe.useQueryClient)();if(e===void 0)return null;let i=e.state.status;return(0,A.jsxs)(te.View,{style:Je.container,children:[(0,A.jsx)(te.Text,{style:Je.headerText,children:"Actions"}),(0,A.jsx)(j,{disabled:$(e)==="fetching",onClick:()=>{Fe({query:e})},bgColorClass:"btnRefetch",text:"Refetch",textColorClass:"btnRefetch"}),(0,A.jsx)(j,{disabled:i==="pending",onClick:()=>{Ae({query:e})},bgColorClass:"btnInvalidate",text:"Invalidate",textColorClass:"btnInvalidate"}),(0,A.jsx)(j,{disabled:i==="pending",onClick:()=>{De({queryClient:r,query:e})},bgColorClass:"btnReset",text:"Reset",textColorClass:"btnReset"}),(0,A.jsx)(j,{disabled:$(e)==="fetching",onClick:()=>{Be({queryClient:r,query:e}),n(void 0)},bgColorClass:"btnRemove",text:"Remove",textColorClass:"btnRemove"}),(0,A.jsx)(j,{disabled:!1,onClick:()=>{ve({query:e})},bgColorClass:"btnTriggerLoading",text:e.state.data===void 0?"Restore Loading":"Trigger Loading",textColorClass:"btnTriggerLoading"}),(0,A.jsx)(j,{disabled:i==="pending",onClick:()=>{Ve({query:e,queryClient:r})},bgColorClass:"btnTriggerLoadiError",text:i==="error"?"Restore":"Trigger Error",textColorClass:"btnTriggerLoadiError"})]})}var Je=te.StyleSheet.create({container:{minWidth:50,fontSize:12,flexDirection:"row",flexWrap:"wrap"},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4,width:"100%"}});var K=require("react"),ue=require("@tanstack/react-query");var t=ge(require("react-native-svg")),o=require("react/jsx-runtime");function Ye(){return(0,o.jsx)(t.default,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M9 3h6M3 6h18m-2 0l-.701 10.52c-.105 1.578-.158 2.367-.499 2.965a3 3 0 01-1.298 1.215c-.62.3-1.41.3-2.993.3h-3.018c-1.582 0-2.373 0-2.993-.3A3 3 0 016.2 19.485c-.34-.598-.394-1.387-.499-2.966L5 6m5 4.5v5m4-5v5",stroke:"#667085"})})}function et(){return(0,o.jsx)(t.default,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#667085"})})}function tt(){return(0,o.jsxs)(t.default,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#667085",strokeWidth:"2",children:[(0,o.jsx)(t.Rect,{width:"20",height:"20",y:"2",x:"2",rx:"2"}),(0,o.jsx)(t.Line,{y1:"7",y2:"7",x1:"6",x2:"18"}),(0,o.jsx)(t.Line,{y2:"12",y1:"12",x1:"6",x2:"18"}),(0,o.jsx)(t.Line,{y1:"17",y2:"17",x1:"6",x2:"18"})]})}function ot(e){return(0,o.jsx)(o.Fragment,{children:e.checked?(0,o.jsx)(t.default,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:e.theme==="dark"?"#9B8AFB":"#6938EF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,o.jsx)(t.default,{viewBox:"0 0 24 24",height:"20",width:"20",fill:"none",children:(0,o.jsx)(t.Path,{d:"M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z",stroke:e.theme==="dark"?"#9B8AFB":"#6938EF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}function rt(){return(0,o.jsx)(t.default,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#027A48",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function nt(){return(0,o.jsx)(t.default,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837",stroke:"#B54708",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function it(){return(0,o.jsx)(t.default,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#b91c1c",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function st(){return(0,o.jsx)(t.default,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)(t.Path,{d:"M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#5925DC",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function at(){return(0,o.jsxs)(t.default,{height:"100%",width:"100%",style:{position:"absolute"},viewBox:"0 0 633 633",children:[(0,o.jsxs)(t.LinearGradient,{x1:-666.45,x2:-666.45,y1:163.28,y2:163.99,gradientTransform:"matrix(633 0 0 633 422177 -103358)",gradientUnits:"userSpaceOnUse",id:"a",children:[(0,o.jsx)(t.Stop,{stopColor:"#6BDAFF",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#F9FFB5",offset:.32}),(0,o.jsx)(t.Stop,{stopColor:"#FFA770",offset:.71}),(0,o.jsx)(t.Stop,{stopColor:"#FF7373",offset:1})]}),(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"url(#a)"}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:-137.5,y:412,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"c",children:(0,o.jsx)(t.G,{filter:"url(#b)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#c)",children:(0,o.jsx)(t.Ellipse,{cx:89.5,cy:610.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00CFE2",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:316.5,y:412,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"e",children:(0,o.jsx)(t.G,{filter:"url(#d)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#e)",children:(0,o.jsx)(t.Ellipse,{cx:543.5,cy:610.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00CFE2",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:-137.5,y:450,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"g",children:(0,o.jsx)(t.G,{filter:"url(#f)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#g)",children:(0,o.jsx)(t.Ellipse,{cx:89.5,cy:648.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00A8B8",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:316.5,y:450,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"i",children:(0,o.jsx)(t.G,{filter:"url(#h)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#i)",children:(0,o.jsx)(t.Ellipse,{cx:543.5,cy:648.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00A8B8",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:-137.5,y:486,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"k",children:(0,o.jsx)(t.G,{filter:"url(#j)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#k)",children:(0,o.jsx)(t.Ellipse,{cx:89.5,cy:684.5,rx:214.5,ry:186,fill:"#015064",stroke:"#007782",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:316.5,y:486,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"m",children:(0,o.jsx)(t.G,{filter:"url(#l)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsx)(t.G,{mask:"url(#m)",children:(0,o.jsx)(t.Ellipse,{cx:543.5,cy:684.5,rx:214.5,ry:186,fill:"#015064",stroke:"#007782",strokeWidth:25})}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:272.2,y:308,width:176.9,height:129.3,maskUnits:"userSpaceOnUse",id:"o",children:(0,o.jsx)(t.G,{filter:"url(#n)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsxs)(t.G,{mask:"url(#o)",children:[(0,o.jsx)(t.Path,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M436 403.2L431 431.8"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M291 341.5L280 403.5"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M332.9 384.1L328.6 411.2"}),(0,o.jsxs)(t.LinearGradient,{x1:-670.75,x2:-671.59,y1:164.4,y2:164.49,gradientTransform:"matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)",gradientUnits:"userSpaceOnUse",id:"p",children:[(0,o.jsx)(t.Stop,{stopColor:"#EE2700",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF008E",offset:1})]}),(0,o.jsx)(t.Path,{d:"M344.1 363l97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z",clipRule:"evenodd",fillRule:"evenodd",fill:"url(#p)"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M428.2 384.5L429.1 378"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M395.2 379.5L396.1 373"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M362.2 373.5L363.1 367.4"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M324.2 351.3L328.4 347.4"}),(0,o.jsx)(t.Path,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M303.2 331.3L307.4 327.4"})]}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:73.2,y:113.8,width:280.6,height:317.4,maskUnits:"userSpaceOnUse",id:"r",children:(0,o.jsx)(t.G,{filter:"url(#q)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsxs)(t.G,{mask:"url(#r)",children:[(0,o.jsxs)(t.LinearGradient,{x1:-672.16,x2:-672.16,y1:165.03,y2:166.03,gradientTransform:"matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)",gradientUnits:"userSpaceOnUse",id:"s",children:[(0,o.jsx)(t.Stop,{stopColor:"#A17500",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#5D2100",offset:1})]}),(0,o.jsx)(t.Path,{d:"M192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6",clipRule:"evenodd",fillRule:"evenodd",fill:"url(#s)"}),(0,o.jsxs)(t.G,{stroke:"#2F8A00",children:[(0,o.jsxs)(t.LinearGradient,{x1:-660.23,x2:-660.23,y1:166.72,y2:167.72,gradientTransform:"matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)",gradientUnits:"userSpaceOnUse",id:"t",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#t)"}),(0,o.jsxs)(t.LinearGradient,{x1:-661.36,x2:-661.36,y1:164.18,y2:165.18,gradientTransform:"matrix(110 5.7648 -6.3599 121.35 73933 -15933)",gradientUnits:"userSpaceOnUse",id:"u",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#u)"}),(0,o.jsxs)(t.LinearGradient,{x1:-656.79,x2:-656.79,y1:165.15,y2:166.15,gradientTransform:"matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)",gradientUnits:"userSpaceOnUse",id:"v",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M195 183.9c-.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4S211.5 178 195 183.9z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#v)"}),(0,o.jsxs)(t.LinearGradient,{x1:-663.07,x2:-663.07,y1:165.44,y2:166.44,gradientTransform:"matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)",gradientUnits:"userSpaceOnUse",id:"w",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#w)"}),(0,o.jsxs)(t.LinearGradient,{x1:-662.57,x2:-662.57,y1:164.44,y2:165.44,gradientTransform:"matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)",gradientUnits:"userSpaceOnUse",id:"x",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M194.9 184.5c35.8-7.6 65.6-.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#x)"}),(0,o.jsxs)(t.LinearGradient,{x1:-656.43,x2:-656.43,y1:163.86,y2:164.86,gradientTransform:"matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)",gradientUnits:"userSpaceOnUse",id:"y",children:[(0,o.jsx)(t.Stop,{stopColor:"#2F8A00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#90FF57",offset:1})]}),(0,o.jsx)(t.Path,{d:"M194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#y)"}),(0,o.jsx)(t.Path,{d:"M196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1",fill:"none",strokeLinecap:"round",strokeWidth:8}),(0,o.jsx)(t.Path,{d:"M194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8M204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9M196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32",fill:"none",strokeLinecap:"round",strokeWidth:8})]})]}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:50.5,y:399,width:532,height:633,maskUnits:"userSpaceOnUse",id:"A",children:(0,o.jsx)(t.G,{filter:"url(#z)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsxs)(t.G,{mask:"url(#A)",children:[(0,o.jsxs)(t.LinearGradient,{x1:-666.06,x2:-666.23,y1:163.36,y2:163.75,gradientTransform:"matrix(532 0 0 633 354760 -102959)",gradientUnits:"userSpaceOnUse",id:"B",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFF400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#3C8700",offset:1})]}),(0,o.jsx)(t.Ellipse,{cx:316.5,cy:715.5,rx:266,ry:316.5,fill:"url(#B)"})]}),(0,o.jsx)(t.Defs,{}),(0,o.jsx)(t.Mask,{x:391,y:-24,width:288,height:283,maskUnits:"userSpaceOnUse",id:"D",children:(0,o.jsx)(t.G,{filter:"url(#C)",children:(0,o.jsx)(t.Circle,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),(0,o.jsxs)(t.G,{mask:"url(#D)",children:[(0,o.jsxs)(t.LinearGradient,{x1:-664.56,x2:-664.56,y1:163.79,y2:164.79,gradientTransform:"matrix(227 0 0 227 151421 -37204)",gradientUnits:"userSpaceOnUse",id:"E",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFDF00",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF9D00",offset:1})]}),(0,o.jsx)(t.Circle,{cx:565.5,cy:89.5,r:113.5,fill:"url(#E)"}),(0,o.jsxs)(t.LinearGradient,{x1:-644.5,x2:-645.77,y1:342,y2:342,gradientTransform:"matrix(30 0 0 1 19770 -253)",gradientUnits:"userSpaceOnUse",id:"F",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#F)",d:"M427 89L397 89"}),(0,o.jsxs)(t.LinearGradient,{x1:-641.56,x2:-642.83,y1:196.02,y2:196.07,gradientTransform:"matrix(26.5 0 0 5.5 17439 -1025.5)",gradientUnits:"userSpaceOnUse",id:"G",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#G)",d:"M430.5 55.5L404 50"}),(0,o.jsxs)(t.LinearGradient,{x1:-643.73,x2:-645,y1:185.83,y2:185.9,gradientTransform:"matrix(29 0 0 8 19107 -1361)",gradientUnits:"userSpaceOnUse",id:"H",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#H)",d:"M431 122L402 130"}),(0,o.jsxs)(t.LinearGradient,{x1:-638.94,x2:-640.22,y1:177.09,y2:177.39,gradientTransform:"matrix(24 0 0 13 15783 -2145)",gradientUnits:"userSpaceOnUse",id:"I",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#I)",d:"M442 153L418 166"}),(0,o.jsxs)(t.LinearGradient,{x1:-633.42,x2:-634.7,y1:172.41,y2:173.31,gradientTransform:"matrix(20 0 0 19 13137 -3096)",gradientUnits:"userSpaceOnUse",id:"J",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#J)",d:"M464 180L444 199"}),(0,o.jsxs)(t.LinearGradient,{x1:-619.05,x2:-619.52,y1:170.82,y2:171.82,gradientTransform:"matrix(13.83 0 0 22.85 9050 -3703.4)",gradientUnits:"userSpaceOnUse",id:"K",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#K)",d:"M491.4 203L477.5 225.9"}),(0,o.jsxs)(t.LinearGradient,{x1:-578.5,x2:-578.63,y1:170.31,y2:171.31,gradientTransform:"matrix(7.5 0 0 24.5 4860 -3953)",gradientUnits:"userSpaceOnUse",id:"L",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#L)",d:"M524.5 219.5L517 244"}),(0,o.jsxs)(t.LinearGradient,{x1:666.5,x2:666.5,y1:170.31,y2:171.31,gradientTransform:"matrix(.5 0 0 24.5 231.5 -3944)",gradientUnits:"userSpaceOnUse",id:"M",children:[(0,o.jsx)(t.Stop,{stopColor:"#FFA400",offset:0}),(0,o.jsx)(t.Stop,{stopColor:"#FF5E00",offset:1})]}),(0,o.jsx)(t.Path,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#M)",d:"M564.5 228.5L565 253"})]})]})}var V=(e,n,r)=>{if(n.length===0)return r;if(e instanceof Map){let i=new Map(e);if(n.length===1)return i.set(n[0],r),i;let[s,...u]=n;return i.set(s,V(i.get(s),u,r)),i}if(e instanceof Set){let i=V(Array.from(e),n,r);return new Set(i)}if(Array.isArray(e)){let i=[...e];if(n.length===1)return i[n[0]]=r,i;let[s,...u]=n;return i[s]=V(i[s],u,r),i}if(e instanceof Object){let i={...e};if(n.length===1)return i[n[0]]=r,i;let[s,...u]=n;return i[s]=V(i[s],u,r),i}return e};var oe=(e,n)=>{if(e instanceof Map){let r=new Map(e);if(n.length===1)return r.delete(n[0]),r;let[i,...s]=n;return r.set(i,oe(r.get(i),s)),r}if(e instanceof Set){let r=oe(Array.from(e),n);return new Set(r)}if(Array.isArray(e)){let r=[...e];if(n.length===1)return r.filter((u,C)=>C.toString()!==n[0]);let[i,...s]=n;return r[i]=oe(r[i],s),r}if(e instanceof Object){let r={...e};if(n.length===1)return delete r[n[0]],r;let[i,...s]=n;return r[i]=oe(r[i],s),r}return e};function Qe({activeQuery:e,dataPath:n,queryClient:r}){if(!n){console.error("delete item data path is missing!");return}let i=e.state.data,s=oe(i,n);r.setQueryData(e.queryKey,s)}var H=ge(require("react-native-svg")),l=require("react-native"),a=require("react/jsx-runtime");function lt(e){return Symbol.iterator in e}function Wt(e,n){if(n<1)return[];let r=0,i=[];for(;r<e.length;)i.push(e.slice(r,r+n)),r=r+n;return i}var dt=({expanded:e})=>(0,a.jsx)(l.View,{style:[e?d.expanded:d.collapsed],children:(0,a.jsx)(H.default,{width:16,height:16,viewBox:"0 0 16 16",fill:"#98A2B3",children:(0,a.jsx)(H.Path,{d:"M6 12l4-4-4-4"})})}),Ot=({value:e})=>{let[n,r]=(0,K.useState)(!1),i=()=>{r(!0)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.TouchableOpacity,{style:d.buttonStyle,"aria-label":"Show copyable text",onPress:i,children:(0,a.jsx)(et,{})}),(0,a.jsx)(l.Modal,{animationType:"fade",transparent:!0,visible:n,onRequestClose:()=>r(!1),children:(0,a.jsx)(l.View,{style:d.modalOverlay,children:(0,a.jsxs)(l.View,{style:d.modalContent,children:[(0,a.jsx)(l.Text,{style:d.modalTitle,children:"Copy Text"}),(0,a.jsx)(l.Text,{selectable:!0,style:d.modalText,children:JSON.stringify(e,null,2)}),(0,a.jsx)(l.TouchableOpacity,{style:d.closeButton,onPress:()=>r(!1),children:(0,a.jsx)(l.Text,{style:d.closeButtonText,children:"Close"})})]})})})]})},ut=({dataPath:e,activeQuery:n})=>{let r=(0,ue.useQueryClient)();return n?(0,a.jsx)(l.TouchableOpacity,{onPress:()=>{Qe({queryClient:r,activeQuery:n,dataPath:e})},style:d.buttonStyle1,accessibilityLabel:"Delete item",children:(0,a.jsx)(Ye,{})}):null},Pt=({dataPath:e,activeQuery:n})=>{let r=(0,ue.useQueryClient)();if(!n)return null;let i=()=>{let s=n.state.data,u=V(s,e,[]);r.setQueryData(n.queryKey,u)};return(0,a.jsx)(l.TouchableOpacity,{style:d.buttonStyle2,"aria-label":"Remove all items",onPress:i,children:(0,a.jsx)(tt,{})})},It=({dataPath:e,activeQuery:n,value:r})=>{let i=(0,ue.useQueryClient)();if(!n)return null;let s=()=>{let u=n.state.data,C=V(u,e,!r);i.setQueryData(n.queryKey,C)};return(0,a.jsx)(l.TouchableOpacity,{style:d.buttonStyle3,"aria-label":"Toggle value",onPress:s,children:(0,a.jsx)(ot,{checked:r,theme:"light"})})};function v({editable:e,label:n,value:r,defaultExpanded:i,activeQuery:s,dataPath:u,itemsDeletable:C}){let R=(0,ue.useQueryClient)(),[w,T]=(0,K.useState)((i||[]).includes(n)),Z=()=>T(f=>!f),[pe,be]=(0,K.useState)([]),se=(0,K.useMemo)(()=>Array.isArray(r)?r.map((f,c)=>({label:c.toString(),value:f})):r!==null&&typeof r=="object"&<(r)?r instanceof Map?Array.from(r,([f,c])=>({label:f.toString(),value:c})):Array.from(r,(f,c)=>({label:c.toString(),value:f})):typeof r=="object"&&r!==null?Object.entries(r).map(([f,c])=>({label:f,value:c})):[],[r]),h=(0,K.useMemo)(()=>Array.isArray(r)?"array":r!==null&&typeof r=="object"&<(r)&&typeof r[Symbol.iterator]=="function"?"Iterable":typeof r=="object"&&r!==null?"object":typeof r,[r]),ae=(0,K.useMemo)(()=>Wt(se,100),[se]),W=u??[],bt=(f,c)=>{if(!s)return null;let B=s.state.data;if(f&&isNaN(Number(c)))return;let ke=h==="number"?Number(c):c,kt=V(B,W,ke);R.setQueryData(s.queryKey,kt)};return(0,a.jsx)(l.View,{style:d.minWidthWrapper,children:(0,a.jsxs)(l.View,{style:d.fullWidthMarginRight,children:[ae.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.View,{style:d.flexRowItemsCenterGap,children:[(0,a.jsxs)(l.TouchableOpacity,{style:d.expanderButton,onPress:()=>Z(),children:[(0,a.jsx)(dt,{expanded:w}),(0,a.jsx)(l.Text,{children:n}),(0,a.jsx)(l.Text,{style:d.textGray500,children:`${String(h).toLowerCase()==="iterable"?"(Iterable) ":""}${se.length} ${se.length>1?"items":"item"}`})]}),e&&(0,a.jsxs)(l.View,{style:d.flexRowGapItemsCenter,children:[(0,a.jsx)(Ot,{value:r}),C&&s!==void 0&&(0,a.jsx)(ut,{activeQuery:s,dataPath:W}),h==="array"&&s!==void 0&&(0,a.jsx)(Pt,{activeQuery:s,dataPath:W})]})]}),w&&(0,a.jsxs)(a.Fragment,{children:[ae.length===1&&(0,a.jsx)(l.View,{style:d.singleEntryContainer,children:se.map((f,c)=>(0,a.jsx)(v,{defaultExpanded:i,label:f.label,value:f.value,editable:e,dataPath:[...W,f.label],activeQuery:s,itemsDeletable:h==="array"||h==="Iterable"||h==="object"},f.label+c))}),ae.length>1&&(0,a.jsx)(l.View,{style:d.multiEntryContainer,children:ae.map((f,c)=>(0,a.jsx)(l.View,{children:(0,a.jsxs)(l.View,{style:d.relativeOutlineNone,children:[(0,a.jsxs)(l.TouchableOpacity,{onPress:()=>be(B=>B.includes(c)?B.filter(ke=>ke!==c):[...B,c]),style:d.pageExpanderButton,children:[(0,a.jsx)(dt,{expanded:pe.includes(c)}),(0,a.jsxs)(l.Text,{children:["[",c*100,"...",c*100+99,"]"]})]}),pe.includes(c)&&(0,a.jsx)(l.View,{style:d.entriesContainer,children:f.map(B=>(0,a.jsx)(v,{defaultExpanded:i,label:B.label,value:B.value,editable:e,dataPath:[...W,B.label],activeQuery:s},B.label))})]})},c))})]})]}),ae.length===0&&(0,a.jsxs)(l.View,{style:d.flexRowGapFullWidth,children:[(0,a.jsxs)(l.Text,{style:d.text344054,children:[n,":"]}),e&&s!==void 0&&(h==="string"||h==="number"||h==="boolean")?(0,a.jsxs)(a.Fragment,{children:[e&&s&&(h==="string"||h==="number")&&(0,a.jsxs)(l.View,{style:d.inputContainer,children:[(0,a.jsx)(l.TextInput,{style:[d.textInput,h==="number"?d.textNumber:d.textString],keyboardType:h==="number"?"numeric":"default",value:r.toString(),onChangeText:f=>bt(h==="number",f)}),h==="number"&&(0,a.jsxs)(l.View,{style:d.numberInputButtons,children:[(0,a.jsx)(l.TouchableOpacity,{style:d.touchableButton,onPressIn:()=>{let f=s.state.data,c=V(f,W,r+1);R.setQueryData(s.queryKey,c)},children:(0,a.jsx)(H.default,{fill:"none",viewBox:"0 0 24 24",stroke:"#6938EF",children:(0,a.jsx)(H.Path,{d:"M4.5 15.75l7.5-7.5 7.5 7.5"})})}),(0,a.jsx)(l.TouchableOpacity,{style:d.touchableButton,onPressIn:()=>{let f=s.state.data,c=V(f,W,r-1);R.setQueryData(s.queryKey,c)},children:(0,a.jsx)(H.default,{fill:"none",viewBox:"0 0 24 24",stroke:"#6938EF",children:(0,a.jsx)(H.Path,{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})})]})]}),h==="boolean"&&(0,a.jsxs)(l.View,{style:d.booleanContainer,children:[(0,a.jsx)(It,{activeQuery:s,dataPath:W,value:r}),(0,a.jsx)(l.Text,{style:d.booleanText,children:M(r)})]})]}):(0,a.jsx)(l.Text,{style:d.displayValueText,children:M(r)}),e&&C&&s!==void 0&&(0,a.jsx)(ut,{activeQuery:s,dataPath:W})]})]})})}var d=l.StyleSheet.create({buttonStyle3:{backgroundColor:"transparent",flexDirection:"row",alignItems:"center",justifyContent:"center",width:16,height:16,position:"relative",zIndex:10},buttonStyle2:{backgroundColor:"transparent",flexDirection:"row",padding:0,alignItems:"center",justifyContent:"center",width:12,height:12,position:"relative",zIndex:10},buttonStyle1:{backgroundColor:"transparent",borderColor:"none",borderWidth:0,padding:0,alignItems:"center",justifyContent:"center",width:24,height:24,position:"relative"},buttonStyle:{backgroundColor:"transparent",color:"#6B7280",borderWidth:0,flexDirection:"row",alignItems:"center",justifyContent:"center",width:12,height:12,position:"relative"},expanded:{transform:[{rotate:"90deg"}]},collapsed:{transform:[{rotate:"0deg"}]},minWidthWrapper:{minWidth:200,fontSize:12,flexDirection:"row",flexWrap:"wrap",width:"100%"},fullWidthMarginRight:{position:"relative",width:"100%",marginRight:1},flexRowItemsCenterGap:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:1},expanderButton:{flexDirection:"row",alignItems:"center",height:20,backgroundColor:"transparent",borderWidth:0,padding:0},textGray500:{color:"#6B7280",fontSize:12,marginLeft:1},flexRowGapItemsCenter:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:1},singleEntryContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},multiEntryContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},relativeOutlineNone:{position:"relative"},pageExpanderButton:{flexDirection:"row",alignItems:"center",backgroundColor:"transparent",borderWidth:0,padding:0},entriesContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},flexRowGapFullWidth:{flexDirection:"row",width:"100%",alignItems:"center",marginVertical:4,lineHeight:44},text344054:{color:"#344054",height:"100%",marginRight:1},inputContainer:{flexDirection:"row",justifyContent:"space-between",borderWidth:0,height:22,margin:1,paddingVertical:2,paddingLeft:6,paddingRight:4,borderRadius:4,backgroundColor:"#EAECF0",flex:1},textNumber:{color:"#6938EF"},textInput:{flex:1,marginRight:8},textString:{},numberInputButtons:{flexDirection:"row"},touchableButton:{width:24},booleanContainer:{flexDirection:"row",alignItems:"center",padding:4,borderRadius:4,backgroundColor:"#F3F4F6",flex:1},booleanText:{marginLeft:8,color:"#6938EF"},displayValueText:{flex:1,color:"#6938EF",height:"100%"},modalOverlay:{flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)",justifyContent:"center",alignItems:"center",padding:20},modalContent:{backgroundColor:"white",borderRadius:8,padding:20,maxWidth:"90%",maxHeight:"80%"},modalTitle:{fontSize:18,fontWeight:"bold",marginBottom:10,color:"#344054"},modalText:{fontSize:14,color:"#344054",fontFamily:"monospace"},closeButton:{marginTop:20,padding:10,backgroundColor:"#6938EF",borderRadius:4,alignItems:"center"},closeButtonText:{color:"white",fontSize:16}});var E=require("react-native"),F=require("react/jsx-runtime");function Re({selectedQuery:e,setSelectedQuery:n}){return(0,F.jsxs)(E.ScrollView,{style:ce.flexOne,children:[(0,F.jsx)(Le,{query:e}),(0,F.jsx)(Ee,{query:e,setSelectedQuery:n}),(0,F.jsx)(E.Text,{style:ce.headerText,children:"Data Explorer"}),(0,F.jsx)(E.View,{style:ce.contentView,children:(0,F.jsx)(v,{editable:!0,label:"Data",value:e?.state.data,defaultExpanded:["Data"],activeQuery:e})}),(0,F.jsx)(E.Text,{style:ce.headerText,children:"Query Explorer"}),(0,F.jsx)(E.View,{style:ce.contentView,children:(0,F.jsx)(v,{label:"Query",value:e,defaultExpanded:["Query","queryKey"],activeQuery:e})})]})}var ce=E.StyleSheet.create({flexOne:{flex:1},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:6,width:"100%",fontSize:12},contentView:{padding:2}});var N=require("react/jsx-runtime");function Oe(){let[e,n]=(0,fe.useState)(void 0),[r,i]=(0,fe.useState)({}),s=$e(),u=(0,fe.useRef)(null),C=(w,T)=>{let{y:Z,height:pe}=w.nativeEvent.layout;i(be=>({...be,[T]:{y:Z,height:pe}}))},R=(w,T)=>{if(w===e){n(void 0);return}if(n(w),u.current&&r[T]){let Z=r[T].y;u.current.scrollTo({y:Z,animated:!0})}};return(0,N.jsxs)(O.SafeAreaView,{style:We.container,children:[(0,N.jsx)(O.ScrollView,{style:We.scrollView,ref:u,children:s.map((w,T)=>(0,N.jsx)(O.View,{onLayout:Z=>C(Z,T),children:(0,N.jsx)(we,{selected:e,setSelected:()=>R(w,T),query:w})},T))}),e&&(0,N.jsx)(O.View,{style:We.queryInformation,children:(0,N.jsx)(Re,{selectedQuery:e,setSelectedQuery:n})})]})}var We=O.StyleSheet.create({container:{flex:1,width:"100%"},scrollView:{flex:1,flexDirection:"column",width:"100%",height:"25%"},queryInformation:{height:"75%"}});var xe=ge(require("react-native-svg"));var ht=require("react"),X=require("react-native");var q=require("react-native");var Q={purpleMutation:"#D9D6FE",purpleMutationText:"#5925DC",redMutation:"#fecaca",redMutationText:"#b91c1c",yellowMutation:"#FEDF89",yellowMutationText:"#B54708",greenMutation:"#A6F4C5",greenMutationText:"#027A48",grayMutation:"#eaecf0",grayMutationText:"#344054"},ct=({status:e,isPaused:n})=>{let r,i;return n?(r=Q.purpleMutation,i=Q.purpleMutationText):e==="error"?(r=Q.redMutation,i=Q.redMutationText):e==="pending"?(r=Q.yellowMutation,i=Q.yellowMutationText):e==="success"?(r=Q.greenMutation,i=Q.greenMutationText):(r=Q.grayMutation,i=Q.grayMutationText),{backgroundColor:r,textColor:i}};var P=require("react/jsx-runtime");function Pe({mutation:e,setSelected:n,selected:r}){let i=e.options.mutationKey?JSON.stringify(M(e.options.mutationKey,!1))+" - ":"",s=new Date(e.state.submittedAt).toLocaleString(),u=`${i}${s}`,{backgroundColor:C,textColor:R}=ct({isPaused:e.state.isPaused,status:e.state.status});return(0,P.jsxs)(q.TouchableOpacity,{onPress:()=>n(e===r?void 0:e),style:[me.button,r?.mutationId===e.mutationId&&me.selected],children:[(0,P.jsxs)(q.View,{style:[me.iconContainer,{backgroundColor:C}],children:[e.state.isPaused&&(0,P.jsx)(st,{}),e.state.status==="success"&&(0,P.jsx)(rt,{}),e.state.status==="error"&&(0,P.jsx)(it,{}),e.state.status==="pending"&&(0,P.jsx)(nt,{})]}),(0,P.jsx)(q.Text,{style:[me.text],children:u})]})}var me=q.StyleSheet.create({button:{flexDirection:"row",alignItems:"center",justifyContent:"flex-start",borderBottomWidth:1,borderBottomColor:"#d0d5dd",backgroundColor:"white"},selected:{backgroundColor:"#eaecf0"},iconContainer:{padding:8,paddingVertical:6},text:{marginLeft:8,fontSize:12,minWidth:18}});var k=require("react-native");var S=require("react-native");var re=require("react-native"),Ie=require("react/jsx-runtime"),Ut={fresh:"#D1FADF",stale:"#FEF0C7",fetching:"#D1E9FF",paused:"#EBE9FE",inactive:"#F2F4F7"},zt={fresh:"#32D583",stale:"#FDB022",fetching:"#53B1FD",paused:"#9B8AFB",inactive:"#344054"},Gt={fresh:"#027A48",stale:"#B54708",fetching:"#175CD3",paused:"#5925DC",inactive:"#344054"};function Ue({status:e}){let n=e==="pending"?"fetching":e==="idle"?"inactive":e==="error"?"stale":"fresh",r=Ut[n],i=zt[n],s=Gt[n];return(0,Ie.jsx)(re.View,{style:[ft.container,{backgroundColor:r,borderColor:i}],children:(0,Ie.jsx)(re.Text,{style:[ft.text,{color:s}],children:e})})}var ft=re.StyleSheet.create({container:{padding:8,borderWidth:1,borderRadius:4,margin:4},text:{fontSize:12}});var D=require("react/jsx-runtime");function ze({selectedMutation:e}){if(e===void 0)return null;let n=new Date(e.state.submittedAt).toLocaleTimeString();return(0,D.jsxs)(S.View,{style:L.container,children:[(0,D.jsx)(S.Text,{style:[L.mutationDetailsText,L.bgEAECF0,L.p1],children:"Mutation Details"}),(0,D.jsxs)(S.View,{style:[L.flexRow,L.justifyBetween,L.p1],children:[(0,D.jsx)(S.ScrollView,{horizontal:!0,style:L.flex1,children:(0,D.jsx)(S.Text,{style:L.flexWrap,children:`${e.options.mutationKey?M(e.options.mutationKey,!0):"No mutationKey found"}`})}),(0,D.jsx)(Ue,{status:e.state.status})]}),(0,D.jsxs)(S.View,{style:[L.flexRow,L.justifyBetween,L.p1],children:[(0,D.jsx)(S.Text,{children:"Submitted At:"}),(0,D.jsx)(S.Text,{children:n})]})]})}var L=S.StyleSheet.create({container:{minWidth:200,fontSize:12},mutationDetailsText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4},flexRow:{flexDirection:"row",justifyContent:"space-between",padding:4},justifyBetween:{justifyContent:"space-between"},p1:{padding:4},flex1:{flex:1},flexWrap:{flexWrap:"wrap",alignItems:"center"},bgEAECF0:{backgroundColor:"#EAECF0"}});var x=require("react/jsx-runtime");function Ge({selectedMutation:e}){return(0,x.jsxs)(k.ScrollView,{style:I.flex1,children:[(0,x.jsx)(ze,{selectedMutation:e}),(0,x.jsx)(k.Text,{style:I.textHeader,children:"Variables Details"}),(0,x.jsx)(k.View,{style:I.padding,children:(0,x.jsx)(v,{label:"Variables",value:e?.state.variables,defaultExpanded:["Variables"]})}),(0,x.jsx)(k.Text,{style:I.textHeader,children:"Context Details"}),(0,x.jsx)(k.View,{style:I.padding,children:(0,x.jsx)(v,{label:"Context",value:e?.state.context,defaultExpanded:["Context"]})}),(0,x.jsx)(k.Text,{style:I.textHeader,children:"Data Explorer"}),(0,x.jsx)(k.View,{style:I.padding,children:(0,x.jsx)(v,{label:"Data",defaultExpanded:["Data"],value:e?.state.data})}),(0,x.jsx)(k.Text,{style:I.textHeader,children:"Mutations Explorer"}),(0,x.jsx)(k.View,{style:I.padding,children:(0,x.jsx)(v,{label:"Mutation",defaultExpanded:["Mutation"],value:e})})]})}var I=k.StyleSheet.create({flex1:{flex:1},textHeader:{textAlign:"left",backgroundColor:"#EAECF0",padding:4,width:"100%",fontSize:12},padding:{padding:8}});var ne=require("react"),pt=require("@tanstack/react-query"),yt=ge(require("fast-deep-equal"));function jt(){let e=(0,pt.useQueryClient)(),[n,r]=(0,ne.useState)([]),i=(0,ne.useRef)([]);return(0,ne.useEffect)(()=>{let s=()=>{let C=e.getMutationCache().getAll();setTimeout(()=>{let R=[...e.getMutationCache().getAll()],w=R.map(T=>T.state);(0,yt.default)(i.current,w)||(i.current=w,r(R))},1)};s();let u=e.getMutationCache().subscribe(s);return()=>u()},[e]),{mutations:n}}var gt=jt;var J=require("react/jsx-runtime");function Ke(){let[e,n]=(0,ht.useState)(),{mutations:r}=gt();return(0,J.jsxs)(X.View,{style:je.container,children:[(0,J.jsx)(X.ScrollView,{style:je.scrollView,children:r.map((i,s)=>(0,J.jsx)(Pe,{selected:e,setSelected:n,mutation:i},s))}),e&&(0,J.jsx)(X.View,{style:je.mutationInfo,children:(0,J.jsx)(Ge,{selectedMutation:e})})]})}var je=X.StyleSheet.create({container:{flex:1,flexDirection:"column",width:"100%"},scrollView:{flex:1,flexDirection:"column",height:"25%"},mutationInfo:{height:"75%"}});var y=require("react/jsx-runtime");function He({setShowDevTools:e}){let[n,r]=(0,mt.useState)(!0);return(0,y.jsxs)(g.View,{style:p.container,children:[(0,y.jsx)(g.TouchableOpacity,{onPress:()=>{e(!1)},style:p.closeButton,children:(0,y.jsx)(xe.default,{width:8,height:8,viewBox:"0 0 10 6",fill:"none",children:(0,y.jsx)(xe.Path,{d:"M1 1l4 4 4-4",stroke:"#475467",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,y.jsxs)(g.View,{style:p.devToolsPanel,children:[(0,y.jsxs)(g.View,{style:p.devToolsHeader,children:[(0,y.jsxs)(g.View,{style:p.tanstackHeader,children:[(0,y.jsx)(g.Text,{style:p.tanstackText,children:"TANSTACK"}),(0,y.jsx)(g.View,{style:p.reactQueryVersion,children:(0,y.jsx)(g.Text,{style:p.reactQueryVersionText,children:"React Query v5"})})]}),(0,y.jsxs)(g.View,{style:p.toggleButtonsContainer,children:[(0,y.jsx)(g.TouchableOpacity,{onPress:()=>{r(!0)},style:[p.toggleButton,n===!0?p.toggleButtonActive:p.toggleButtonInactive,{borderTopRightRadius:0,borderBottomRightRadius:0}],children:(0,y.jsx)(g.Text,{style:[p.toggleButtonText,n===!0?p.toggleButtonTextActive:p.toggleButtonTextInactive],children:"Queries"})}),(0,y.jsx)(g.TouchableOpacity,{onPress:()=>{r(!1)},style:[p.toggleButton,n===!1?p.toggleButtonActive:p.toggleButtonInactive,{borderTopLeftRadius:0,borderBottomLeftRadius:0}],children:(0,y.jsx)(g.Text,{style:[p.toggleButtonText,n===!1?p.toggleButtonTextActive:p.toggleButtonTextInactive],children:"Mutations"})})]})]}),n?(0,y.jsx)(Oe,{}):(0,y.jsx)(Ke,{})]})]})}var p=g.StyleSheet.create({container:{flex:1,flexDirection:"column"},closeButton:{position:"absolute",right:-2,top:-17,zIndex:50,width:22,height:15,borderTopLeftRadius:4,borderTopRightRadius:4,backgroundColor:"white",padding:3,margin:3,borderColor:"#98a2b3",borderWidth:1,borderBottomWidth:0,alignItems:"center",justifyContent:"center"},devToolsPanel:{backgroundColor:"white",minWidth:300,flex:1,borderTopColor:"#98a2b3",borderTopWidth:1},devToolsHeader:{padding:8,paddingBottom:6,paddingTop:6,borderColor:"#d0d5dd",borderBottomWidth:2,paddingVertical:1,flexDirection:"row"},tanstackHeader:{marginHorizontal:2,paddingRight:8},tanstackText:{color:"#475467",fontWeight:"bold"},reactQueryVersion:{},reactQueryVersionText:{marginTop:-4,color:"#F97F1E"},toggleButtonsContainer:{flexDirection:"row",marginLeft:1,alignItems:"center"},toggleButton:{borderTopLeftRadius:4,borderBottomLeftRadius:4,padding:4,borderWidth:1,borderColor:"#d0d5dd",paddingHorizontal:2,maxWidth:100,borderRadius:4},toggleButtonActive:{backgroundColor:"#F2F4F7"},toggleButtonInactive:{backgroundColor:"#EAECF0"},toggleButtonText:{paddingRight:4,paddingLeft:4,fontSize:12},toggleButtonTextActive:{color:"#344054"},toggleButtonTextInactive:{color:"#909193"},comingSoonText:{margin:3}});var ie=require("react/jsx-runtime");function Ct({bubbleStyle:e}){let[n,r]=(0,xt.useState)(!1);return(0,ie.jsx)(U.View,{children:n?(0,ie.jsx)(U.View,{style:Ce.devTools,children:(0,ie.jsx)(He,{setShowDevTools:r})}):(0,ie.jsx)(U.TouchableOpacity,{onPress:()=>{r(!0)},style:[Ce.touchableOpacityBase,U.Platform.OS==="ios"?Ce.touchableOpacityIOS:Ce.touchableOpacityAndroid,e],children:(0,ie.jsx)(at,{})})})}var Ce=U.StyleSheet.create({devTools:{position:"absolute",right:0,bottom:0,zIndex:50,width:"100%",height:350},touchableOpacityBase:{position:"absolute",right:1,zIndex:50,width:48,height:48,borderRadius:24,borderWidth:4,borderColor:"#A4C200"},touchableOpacityIOS:{bottom:96},touchableOpacityAndroid:{bottom:64},text:{zIndex:10,color:"white",fontSize:40,padding:24}}); |
@@ -1,1 +0,1 @@ | ||
var et=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});import{useState as tr}from"react";import{View as Bt,TouchableOpacity as or,Platform as rr,StyleSheet as nr}from"react-native";import{useState as Jo}from"react";import{View as J,TouchableOpacity as Xe,Text as me,StyleSheet as Xo}from"react-native";import{useState as Tt,useRef as wo}from"react";import{ScrollView as ko,View as Lt,StyleSheet as So,SafeAreaView as To}from"react-native";function j(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}var Rt={fresh:{backgroundColor:"#A6F4C5"},stale:{backgroundColor:"#FEDF89"},fetching:{backgroundColor:"#B2DDFF"},paused:{backgroundColor:"#D9D6FE"},noObserver:{backgroundColor:"#EAECF0"},inactive:{backgroundColor:"#FEDF89"}};function tt(e){let r={backgroundColor:"#EAECF0"};return Rt[e]||r}import{TouchableOpacity as Wt,Text as we,StyleSheet as Ot}from"react-native";var F=(e,r=!1)=>JSON.stringify(e,(()=>{let n=new WeakSet;return(i,d)=>{if(typeof d=="object"&&d!==null){if(n.has(d))return"[Circular]";n.add(d)}return d}})(),r?2:void 0);import{jsx as ke,jsxs as Pt}from"react/jsx-runtime";function Se({query:e,setSelected:r,selected:o}){return Pt(Wt,{onPress:()=>{r(e===o?void 0:e)},style:[ee.touchableOpacityBase,o?.queryKey===e.queryKey&&ee.touchableOpacitySelected],children:[ke(we,{style:[ee.textBase,tt(j(e))],children:`${e.getObserversCount()}`}),ke(we,{style:ee.queryKeyText,children:`${F(e.queryKey,!1)}`}),e.isDisabled()&&ke(we,{style:ee.disabledText,children:"disabled"})]})}var ee=Ot.create({touchableOpacityBase:{flexDirection:"row",alignItems:"center",justifyContent:"center",backgroundColor:"white",borderBottomWidth:1,borderBottomColor:"#d0d5dd"},touchableOpacitySelected:{backgroundColor:"#eaecf0"},textBase:{textAlign:"center",minWidth:30,maxWidth:30,paddingVertical:6,fontSize:12},queryKeyText:{flex:1,flexDirection:"row",paddingVertical:1,paddingHorizontal:2,fontSize:12,paddingLeft:5},disabledText:{fontSize:12,paddingVertical:6,paddingHorizontal:2,color:"#1d2939",backgroundColor:"#d0d5dd",borderBottomWidth:1,borderBottomColor:"#d0d5dd"}});import{useEffect as It,useState as Ut}from"react";import{useQueryClient as zt}from"@tanstack/react-query";function Gt(){let e=zt(),[r,o]=Ut([]);return It(()=>{let n=()=>{let d=e.getQueryCache().findAll();setTimeout(()=>{o(d)},1)};n();let i=e.getQueryCache().subscribe(n);return()=>i()},[e]),r}var ot=Gt;import{Text as jt,View as Kt,StyleSheet as Ht}from"react-native";import{jsx as nt}from"react/jsx-runtime";var Nt={fresh:"#D1FADF",stale:"#FEF0C7",fetching:"#D1E9FF",paused:"#EBE9FE",noObserver:"#F2F4F7"},qt={fresh:"#32D583",stale:"#FDB022",fetching:"#53B1FD",paused:"#9B8AFB",noObserver:"#344054"},Zt={fresh:"#027A48",stale:"#B54708",fetching:"#175CD3",paused:"#5925DC",noObserver:"#344054"};function Te({query:e}){let r=j(e),o=Nt[r],n=qt[r],i=Zt[r];return nt(Kt,{style:[rt.container,{backgroundColor:o,borderColor:n}],children:nt(jt,{style:[rt.text,{color:i}],children:r})})}var rt=Ht.create({container:{padding:8,borderWidth:1,borderRadius:4,margin:4},text:{fontSize:12}});import{View as de,Text as q,ScrollView as $t,StyleSheet as _t}from"react-native";import{jsx as P,jsxs as ue}from"react/jsx-runtime";function Le({query:e}){if(e===void 0)return null;let r=new Date(e.state.dataUpdatedAt).toLocaleTimeString();return ue(de,{style:K.minWidth,children:[P(q,{style:K.headerText,children:"Query Details"}),ue(de,{style:K.row,children:[P($t,{horizontal:!0,style:K.flexOne,children:P(q,{style:K.queryKeyText,children:F(e.queryKey,!0)})}),P(Te,{query:e})]}),ue(de,{style:K.row,children:[P(q,{children:" Observers:"}),P(q,{children:`${e.getObserversCount()}`})]}),ue(de,{style:K.row,children:[P(q,{children:" Last Updated:"}),P(q,{children:`${r}`})]})]})}var K=_t.create({minWidth:{minWidth:200,fontSize:12},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4},row:{flexDirection:"row",justifyContent:"space-between",padding:4},flexOne:{flex:1},queryKeyText:{flexWrap:"wrap",alignItems:"center"}});import{useQueryClient as no}from"@tanstack/react-query";import{TouchableOpacity as Jt,Text as Xt,View as Yt,StyleSheet as eo}from"react-native";import{jsx as it,jsxs as ro}from"react/jsx-runtime";var to={btnRefetch:"#1570EF",btnInvalidate:"#DC6803",btnReset:"#475467",btnRemove:"#db2777",btnTriggerLoading:"#0891b2",btnTriggerLoadiError:"#ef4444"},oo={btnRefetch:"#1570EF",btnInvalidate:"#DC6803",btnReset:"#475467",btnRemove:"#db2777",btnTriggerLoading:"#0891b2",btnTriggerLoadiError:"#ef4444"};function I({onClick:e,text:r,textColorClass:o,bgColorClass:n,disabled:i}){let d=to[n],x=oo[o]||"#FFFFFF";return ro(Jt,{disabled:i,onPress:e,style:[ve.button,{opacity:i?.6:1}],children:[it(Yt,{style:[ve.dot,{backgroundColor:x}]}),it(Xt,{style:[ve.text,{color:x,opacity:i?.6:1}],children:r})]})}var ve=eo.create({button:{flexDirection:"row",alignItems:"center",justifyContent:"center",borderRadius:4,borderWidth:1,borderColor:"#d0d5dd",backgroundColor:"#f2f4f7",height:30,margin:4,paddingHorizontal:8,paddingVertical:4},dot:{width:6,height:6,borderRadius:999,marginRight:4},text:{fontSize:12,fontWeight:"400"}});function Me({query:e}){if(e.state.data===void 0){let r=e.state.fetchMeta.__previousQueryOptions;r&&e.fetch(r,{cancelRefetch:!0})}else{let r=e.options;e.fetch({...r,queryFn:()=>new Promise(()=>{}),gcTime:-1}),e.setState({data:void 0,status:"pending",fetchMeta:{...e.state.fetchMeta,__previousQueryOptions:r}})}}function Fe({query:e}){e.fetch()}function De({query:e,queryClient:r}){r.resetQueries({queryKey:e.queryKey,exact:!0})}function Ae({query:e,queryClient:r}){r.removeQueries(e)}function Ee({query:e}){e.invalidate()}function Be({query:e,queryClient:r}){let o=()=>{if(!e)return;let i=[{name:"Network Error",initializer:()=>new Error("Network error occurred")}][0]?.initializer(e)??new Error("Unknown error from devtools"),d=e.options;e.setState({...e.state,status:"error",error:i,fetchMeta:{...e.state.fetchMeta,__previousQueryOptions:d}})};e.state.status!=="error"?o():r.resetQueries(e)}import{View as io,Text as so,StyleSheet as ao}from"react-native";import{jsx as H,jsxs as lo}from"react/jsx-runtime";function Ve({query:e,setSelectedQuery:r}){let o=no();if(e===void 0)return null;let n=e.state.status;return lo(io,{style:st.container,children:[H(so,{style:st.headerText,children:"Actions"}),H(I,{disabled:j(e)==="fetching",onClick:()=>{Fe({query:e})},bgColorClass:"btnRefetch",text:"Refetch",textColorClass:"btnRefetch"}),H(I,{disabled:n==="pending",onClick:()=>{Ee({query:e})},bgColorClass:"btnInvalidate",text:"Invalidate",textColorClass:"btnInvalidate"}),H(I,{disabled:n==="pending",onClick:()=>{De({queryClient:o,query:e})},bgColorClass:"btnReset",text:"Reset",textColorClass:"btnReset"}),H(I,{disabled:j(e)==="fetching",onClick:()=>{Ae({queryClient:o,query:e}),r(void 0)},bgColorClass:"btnRemove",text:"Remove",textColorClass:"btnRemove"}),H(I,{disabled:!1,onClick:()=>{Me({query:e})},bgColorClass:"btnTriggerLoading",text:e.state.data===void 0?"Restore Loading":"Trigger Loading",textColorClass:"btnTriggerLoading"}),H(I,{disabled:n==="pending",onClick:()=>{Be({query:e,queryClient:o})},bgColorClass:"btnTriggerLoadiError",text:n==="error"?"Restore":"Trigger Error",textColorClass:"btnTriggerLoadiError"})]})}var st=ao.create({container:{minWidth:50,fontSize:12,flexDirection:"row",flexWrap:"wrap"},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4,width:"100%"}});import{useState as Pe,useMemo as We}from"react";import{useQueryClient as ce}from"@tanstack/react-query";import L,{Path as l,Line as Qe,Rect as uo,LinearGradient as h,Stop as s,Circle as T,Defs as E,Mask as B,G as y,Ellipse as N}from"react-native-svg";import{Fragment as co,jsx as t,jsxs as f}from"react/jsx-runtime";function at(){return t(L,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:t(l,{d:"M9 3h6M3 6h18m-2 0l-.701 10.52c-.105 1.578-.158 2.367-.499 2.965a3 3 0 01-1.298 1.215c-.62.3-1.41.3-2.993.3h-3.018c-1.582 0-2.373 0-2.993-.3A3 3 0 016.2 19.485c-.34-.598-.394-1.387-.499-2.966L5 6m5 4.5v5m4-5v5",stroke:"#667085"})})}function lt(){return t(L,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:t(l,{d:"M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#667085"})})}function dt(e){return t(L,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:t(l,{d:"M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:e.theme==="dark"?"#12B76A":"#027A48",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function ut(){return t(L,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:t(l,{d:"M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:"#F04438",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function ct(){return f(L,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#667085",strokeWidth:"2",children:[t(uo,{width:"20",height:"20",y:"2",x:"2",rx:"2"}),t(Qe,{y1:"7",y2:"7",x1:"6",x2:"18"}),t(Qe,{y2:"12",y1:"12",x1:"6",x2:"18"}),t(Qe,{y1:"17",y2:"17",x1:"6",x2:"18"})]})}function ft(e){return t(co,{children:e.checked?t(L,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:t(l,{d:"M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:e.theme==="dark"?"#9B8AFB":"#6938EF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):t(L,{viewBox:"0 0 24 24",height:"20",width:"20",fill:"none",children:t(l,{d:"M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z",stroke:e.theme==="dark"?"#9B8AFB":"#6938EF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}function pt(){return t(L,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:t(l,{d:"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#027A48",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function yt(){return t(L,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:t(l,{d:"M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837",stroke:"#B54708",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function gt(){return t(L,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:t(l,{d:"M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#b91c1c",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function ht(){return t(L,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:t(l,{d:"M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#5925DC",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function mt(){return f(L,{height:"100%",width:"100%",style:{position:"absolute"},viewBox:"0 0 633 633",children:[f(h,{x1:-666.45,x2:-666.45,y1:163.28,y2:163.99,gradientTransform:"matrix(633 0 0 633 422177 -103358)",gradientUnits:"userSpaceOnUse",id:"a",children:[t(s,{stopColor:"#6BDAFF",offset:0}),t(s,{stopColor:"#F9FFB5",offset:.32}),t(s,{stopColor:"#FFA770",offset:.71}),t(s,{stopColor:"#FF7373",offset:1})]}),t(T,{cx:316.5,cy:316.5,r:316.5,fill:"url(#a)"}),t(E,{}),t(B,{x:-137.5,y:412,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"c",children:t(y,{filter:"url(#b)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#c)",children:t(N,{cx:89.5,cy:610.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00CFE2",strokeWidth:25})}),t(E,{}),t(B,{x:316.5,y:412,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"e",children:t(y,{filter:"url(#d)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#e)",children:t(N,{cx:543.5,cy:610.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00CFE2",strokeWidth:25})}),t(E,{}),t(B,{x:-137.5,y:450,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"g",children:t(y,{filter:"url(#f)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#g)",children:t(N,{cx:89.5,cy:648.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00A8B8",strokeWidth:25})}),t(E,{}),t(B,{x:316.5,y:450,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"i",children:t(y,{filter:"url(#h)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#i)",children:t(N,{cx:543.5,cy:648.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00A8B8",strokeWidth:25})}),t(E,{}),t(B,{x:-137.5,y:486,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"k",children:t(y,{filter:"url(#j)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#k)",children:t(N,{cx:89.5,cy:684.5,rx:214.5,ry:186,fill:"#015064",stroke:"#007782",strokeWidth:25})}),t(E,{}),t(B,{x:316.5,y:486,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"m",children:t(y,{filter:"url(#l)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#m)",children:t(N,{cx:543.5,cy:684.5,rx:214.5,ry:186,fill:"#015064",stroke:"#007782",strokeWidth:25})}),t(E,{}),t(B,{x:272.2,y:308,width:176.9,height:129.3,maskUnits:"userSpaceOnUse",id:"o",children:t(y,{filter:"url(#n)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),f(y,{mask:"url(#o)",children:[t(l,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M436 403.2L431 431.8"}),t(l,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M291 341.5L280 403.5"}),t(l,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M332.9 384.1L328.6 411.2"}),f(h,{x1:-670.75,x2:-671.59,y1:164.4,y2:164.49,gradientTransform:"matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)",gradientUnits:"userSpaceOnUse",id:"p",children:[t(s,{stopColor:"#EE2700",offset:0}),t(s,{stopColor:"#FF008E",offset:1})]}),t(l,{d:"M344.1 363l97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z",clipRule:"evenodd",fillRule:"evenodd",fill:"url(#p)"}),t(l,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M428.2 384.5L429.1 378"}),t(l,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M395.2 379.5L396.1 373"}),t(l,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M362.2 373.5L363.1 367.4"}),t(l,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M324.2 351.3L328.4 347.4"}),t(l,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M303.2 331.3L307.4 327.4"})]}),t(E,{}),t(B,{x:73.2,y:113.8,width:280.6,height:317.4,maskUnits:"userSpaceOnUse",id:"r",children:t(y,{filter:"url(#q)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),f(y,{mask:"url(#r)",children:[f(h,{x1:-672.16,x2:-672.16,y1:165.03,y2:166.03,gradientTransform:"matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)",gradientUnits:"userSpaceOnUse",id:"s",children:[t(s,{stopColor:"#A17500",offset:0}),t(s,{stopColor:"#5D2100",offset:1})]}),t(l,{d:"M192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6",clipRule:"evenodd",fillRule:"evenodd",fill:"url(#s)"}),f(y,{stroke:"#2F8A00",children:[f(h,{x1:-660.23,x2:-660.23,y1:166.72,y2:167.72,gradientTransform:"matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)",gradientUnits:"userSpaceOnUse",id:"t",children:[t(s,{stopColor:"#2F8A00",offset:0}),t(s,{stopColor:"#90FF57",offset:1})]}),t(l,{d:"M195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#t)"}),f(h,{x1:-661.36,x2:-661.36,y1:164.18,y2:165.18,gradientTransform:"matrix(110 5.7648 -6.3599 121.35 73933 -15933)",gradientUnits:"userSpaceOnUse",id:"u",children:[t(s,{stopColor:"#2F8A00",offset:0}),t(s,{stopColor:"#90FF57",offset:1})]}),t(l,{d:"M194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#u)"}),f(h,{x1:-656.79,x2:-656.79,y1:165.15,y2:166.15,gradientTransform:"matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)",gradientUnits:"userSpaceOnUse",id:"v",children:[t(s,{stopColor:"#2F8A00",offset:0}),t(s,{stopColor:"#90FF57",offset:1})]}),t(l,{d:"M195 183.9c-.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4S211.5 178 195 183.9z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#v)"}),f(h,{x1:-663.07,x2:-663.07,y1:165.44,y2:166.44,gradientTransform:"matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)",gradientUnits:"userSpaceOnUse",id:"w",children:[t(s,{stopColor:"#2F8A00",offset:0}),t(s,{stopColor:"#90FF57",offset:1})]}),t(l,{d:"M194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#w)"}),f(h,{x1:-662.57,x2:-662.57,y1:164.44,y2:165.44,gradientTransform:"matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)",gradientUnits:"userSpaceOnUse",id:"x",children:[t(s,{stopColor:"#2F8A00",offset:0}),t(s,{stopColor:"#90FF57",offset:1})]}),t(l,{d:"M194.9 184.5c35.8-7.6 65.6-.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#x)"}),f(h,{x1:-656.43,x2:-656.43,y1:163.86,y2:164.86,gradientTransform:"matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)",gradientUnits:"userSpaceOnUse",id:"y",children:[t(s,{stopColor:"#2F8A00",offset:0}),t(s,{stopColor:"#90FF57",offset:1})]}),t(l,{d:"M194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#y)"}),t(l,{d:"M196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1",fill:"none",strokeLinecap:"round",strokeWidth:8}),t(l,{d:"M194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8M204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9M196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32",fill:"none",strokeLinecap:"round",strokeWidth:8})]})]}),t(E,{}),t(B,{x:50.5,y:399,width:532,height:633,maskUnits:"userSpaceOnUse",id:"A",children:t(y,{filter:"url(#z)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),f(y,{mask:"url(#A)",children:[f(h,{x1:-666.06,x2:-666.23,y1:163.36,y2:163.75,gradientTransform:"matrix(532 0 0 633 354760 -102959)",gradientUnits:"userSpaceOnUse",id:"B",children:[t(s,{stopColor:"#FFF400",offset:0}),t(s,{stopColor:"#3C8700",offset:1})]}),t(N,{cx:316.5,cy:715.5,rx:266,ry:316.5,fill:"url(#B)"})]}),t(E,{}),t(B,{x:391,y:-24,width:288,height:283,maskUnits:"userSpaceOnUse",id:"D",children:t(y,{filter:"url(#C)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),f(y,{mask:"url(#D)",children:[f(h,{x1:-664.56,x2:-664.56,y1:163.79,y2:164.79,gradientTransform:"matrix(227 0 0 227 151421 -37204)",gradientUnits:"userSpaceOnUse",id:"E",children:[t(s,{stopColor:"#FFDF00",offset:0}),t(s,{stopColor:"#FF9D00",offset:1})]}),t(T,{cx:565.5,cy:89.5,r:113.5,fill:"url(#E)"}),f(h,{x1:-644.5,x2:-645.77,y1:342,y2:342,gradientTransform:"matrix(30 0 0 1 19770 -253)",gradientUnits:"userSpaceOnUse",id:"F",children:[t(s,{stopColor:"#FFA400",offset:0}),t(s,{stopColor:"#FF5E00",offset:1})]}),t(l,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#F)",d:"M427 89L397 89"}),f(h,{x1:-641.56,x2:-642.83,y1:196.02,y2:196.07,gradientTransform:"matrix(26.5 0 0 5.5 17439 -1025.5)",gradientUnits:"userSpaceOnUse",id:"G",children:[t(s,{stopColor:"#FFA400",offset:0}),t(s,{stopColor:"#FF5E00",offset:1})]}),t(l,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#G)",d:"M430.5 55.5L404 50"}),f(h,{x1:-643.73,x2:-645,y1:185.83,y2:185.9,gradientTransform:"matrix(29 0 0 8 19107 -1361)",gradientUnits:"userSpaceOnUse",id:"H",children:[t(s,{stopColor:"#FFA400",offset:0}),t(s,{stopColor:"#FF5E00",offset:1})]}),t(l,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#H)",d:"M431 122L402 130"}),f(h,{x1:-638.94,x2:-640.22,y1:177.09,y2:177.39,gradientTransform:"matrix(24 0 0 13 15783 -2145)",gradientUnits:"userSpaceOnUse",id:"I",children:[t(s,{stopColor:"#FFA400",offset:0}),t(s,{stopColor:"#FF5E00",offset:1})]}),t(l,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#I)",d:"M442 153L418 166"}),f(h,{x1:-633.42,x2:-634.7,y1:172.41,y2:173.31,gradientTransform:"matrix(20 0 0 19 13137 -3096)",gradientUnits:"userSpaceOnUse",id:"J",children:[t(s,{stopColor:"#FFA400",offset:0}),t(s,{stopColor:"#FF5E00",offset:1})]}),t(l,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#J)",d:"M464 180L444 199"}),f(h,{x1:-619.05,x2:-619.52,y1:170.82,y2:171.82,gradientTransform:"matrix(13.83 0 0 22.85 9050 -3703.4)",gradientUnits:"userSpaceOnUse",id:"K",children:[t(s,{stopColor:"#FFA400",offset:0}),t(s,{stopColor:"#FF5E00",offset:1})]}),t(l,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#K)",d:"M491.4 203L477.5 225.9"}),f(h,{x1:-578.5,x2:-578.63,y1:170.31,y2:171.31,gradientTransform:"matrix(7.5 0 0 24.5 4860 -3953)",gradientUnits:"userSpaceOnUse",id:"L",children:[t(s,{stopColor:"#FFA400",offset:0}),t(s,{stopColor:"#FF5E00",offset:1})]}),t(l,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#L)",d:"M524.5 219.5L517 244"}),f(h,{x1:666.5,x2:666.5,y1:170.31,y2:171.31,gradientTransform:"matrix(.5 0 0 24.5 231.5 -3944)",gradientUnits:"userSpaceOnUse",id:"M",children:[t(s,{stopColor:"#FFA400",offset:0}),t(s,{stopColor:"#FF5E00",offset:1})]}),t(l,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#M)",d:"M564.5 228.5L565 253"})]})]})}var V=(e,r,o)=>{if(r.length===0)return o;if(e instanceof Map){let n=new Map(e);if(r.length===1)return n.set(r[0],o),n;let[i,...d]=r;return n.set(i,V(n.get(i),d,o)),n}if(e instanceof Set){let n=V(Array.from(e),r,o);return new Set(n)}if(Array.isArray(e)){let n=[...e];if(r.length===1)return n[r[0]]=o,n;let[i,...d]=r;return n[i]=V(n[i],d,o),n}if(e instanceof Object){let n={...e};if(r.length===1)return n[r[0]]=o,n;let[i,...d]=r;return n[i]=V(n[i],d,o),n}return e};var Z=(e,r)=>{if(e instanceof Map){let o=new Map(e);if(r.length===1)return o.delete(r[0]),o;let[n,...i]=r;return o.set(n,Z(o.get(n),i)),o}if(e instanceof Set){let o=Z(Array.from(e),r);return new Set(o)}if(Array.isArray(e)){let o=[...e];if(r.length===1)return o.filter((d,x)=>x.toString()!==r[0]);let[n,...i]=r;return o[n]=Z(o[n],i),o}if(e instanceof Object){let o={...e};if(r.length===1)return delete o[r[0]],o;let[n,...i]=r;return o[n]=Z(o[n],i),o}return e};function Re({activeQuery:e,dataPath:r,queryClient:o}){if(!r){console.error("delete item data path is missing!");return}let n=e.state.data,i=Z(n,r);o.setQueryData(e.queryKey,i)}import Ie,{Path as Ue}from"react-native-svg";import{Text as $,TextInput as fo,TouchableOpacity as U,View as b,StyleSheet as po}from"react-native";var te=null,oe=null;try{te=et("expo-clipboard")}catch(e){console.log("expo-clipboard is not installed:",e);try{oe=et("@react-native-clipboard/clipboard")}catch(r){console.log("@react-native-clipboard/clipboard is not installed:",r)}}var Ct={setString:async e=>{if(te?.setStringAsync)await te.setStringAsync(e,{});else if(oe)oe.setString(e);else throw new Error("Clipboard functionality is not available. Please install either expo-clipboard or @react-native-clipboard/clipboard")},getString:async()=>{if(te?.getStringAsync)return await te.getStringAsync({});if(oe)return await oe.getString();throw new Error("Clipboard functionality is not available. Please install either expo-clipboard or @react-native-clipboard/clipboard")}};import{Fragment as Oe,jsx as a,jsxs as C}from"react/jsx-runtime";function xt(e){return Symbol.iterator in e}function yo(e,r){if(r<1)return[];let o=0,n=[];for(;o<e.length;)n.push(e.slice(o,o+r)),o=o+r;return n}var bt=({expanded:e})=>a(b,{style:[e?u.expanded:u.collapsed],children:a(Ie,{width:16,height:16,viewBox:"0 0 16 16",fill:"#98A2B3",children:a(Ue,{d:"M6 12l4-4-4-4"})})}),go=({value:e})=>{let[r,o]=Pe("NoCopy"),n=async()=>{try{Ct.setString(JSON.stringify(e)),o("SuccessCopy"),setTimeout(()=>o("NoCopy"),1500)}catch{console.error("Failed to copy: "),o("ErrorCopy"),setTimeout(()=>o("NoCopy"),1500)}};return C(U,{style:u.buttonStyle,"aria-label":r==="NoCopy"?"Copy object to clipboard":r==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard",onPress:r==="NoCopy"?n:void 0,children:[r==="NoCopy"&&a(lt,{}),r==="SuccessCopy"&&a(dt,{theme:"light"}),r==="ErrorCopy"&&a(ut,{})]})},wt=({dataPath:e,activeQuery:r})=>{let o=ce();return r?a(U,{onPress:()=>{Re({queryClient:o,activeQuery:r,dataPath:e})},style:u.buttonStyle1,accessibilityLabel:"Delete item",children:a(at,{})}):null},ho=({dataPath:e,activeQuery:r})=>{let o=ce();if(!r)return null;let n=()=>{let i=r.state.data,d=V(i,e,[]);o.setQueryData(r.queryKey,d)};return a(U,{style:u.buttonStyle2,"aria-label":"Remove all items",onPress:n,children:a(ct,{})})},mo=({dataPath:e,activeQuery:r,value:o})=>{let n=ce();if(!r)return null;let i=()=>{let d=r.state.data,x=V(d,e,!o);n.setQueryData(r.queryKey,x)};return a(U,{style:u.buttonStyle3,"aria-label":"Toggle value",onPress:i,children:a(ft,{checked:o,theme:"light"})})};function D({editable:e,label:r,value:o,defaultExpanded:n,activeQuery:i,dataPath:d,itemsDeletable:x}){let R=ce(),[w,S]=Pe((n||[]).includes(r)),G=()=>S(p=>!p),[le,xe]=Pe([]),X=We(()=>Array.isArray(o)?o.map((p,c)=>({label:c.toString(),value:p})):o!==null&&typeof o=="object"&&xt(o)?o instanceof Map?Array.from(o,([p,c])=>({label:p.toString(),value:c})):Array.from(o,(p,c)=>({label:c.toString(),value:p})):typeof o=="object"&&o!==null?Object.entries(o).map(([p,c])=>({label:p,value:c})):[],[o]),m=We(()=>Array.isArray(o)?"array":o!==null&&typeof o=="object"&&xt(o)&&typeof o[Symbol.iterator]=="function"?"Iterable":typeof o=="object"&&o!==null?"object":typeof o,[o]),Y=We(()=>yo(X,100),[X]),W=d??[],Vt=(p,c)=>{if(!i)return null;let A=i.state.data;if(p&&isNaN(Number(c)))return;let be=m==="number"?Number(c):c,Qt=V(A,W,be);R.setQueryData(i.queryKey,Qt)};return a(b,{style:u.minWidthWrapper,children:C(b,{style:u.fullWidthMarginRight,children:[Y.length>0&&C(Oe,{children:[C(b,{style:u.flexRowItemsCenterGap,children:[C(U,{style:u.expanderButton,onPress:()=>G(),children:[a(bt,{expanded:w}),a($,{children:r}),a($,{style:u.textGray500,children:`${String(m).toLowerCase()==="iterable"?"(Iterable) ":""}${X.length} ${X.length>1?"items":"item"}`})]}),e&&C(b,{style:u.flexRowGapItemsCenter,children:[a(go,{value:o}),x&&i!==void 0&&a(wt,{activeQuery:i,dataPath:W}),m==="array"&&i!==void 0&&a(ho,{activeQuery:i,dataPath:W})]})]}),w&&C(Oe,{children:[Y.length===1&&a(b,{style:u.singleEntryContainer,children:X.map((p,c)=>a(D,{defaultExpanded:n,label:p.label,value:p.value,editable:e,dataPath:[...W,p.label],activeQuery:i,itemsDeletable:m==="array"||m==="Iterable"||m==="object"},p.label+c))}),Y.length>1&&a(b,{style:u.multiEntryContainer,children:Y.map((p,c)=>a(b,{children:C(b,{style:u.relativeOutlineNone,children:[C(U,{onPress:()=>xe(A=>A.includes(c)?A.filter(be=>be!==c):[...A,c]),style:u.pageExpanderButton,children:[a(bt,{expanded:le.includes(c)}),C($,{children:["[",c*100,"...",c*100+99,"]"]})]}),le.includes(c)&&a(b,{style:u.entriesContainer,children:p.map(A=>a(D,{defaultExpanded:n,label:A.label,value:A.value,editable:e,dataPath:[...W,A.label],activeQuery:i},A.label))})]})},c))})]})]}),Y.length===0&&C(b,{style:u.flexRowGapFullWidth,children:[C($,{style:u.text344054,children:[r,":"]}),e&&i!==void 0&&(m==="string"||m==="number"||m==="boolean")?C(Oe,{children:[e&&i&&(m==="string"||m==="number")&&C(b,{style:u.inputContainer,children:[a(fo,{style:[u.textInput,m==="number"?u.textNumber:u.textString],keyboardType:m==="number"?"numeric":"default",value:o.toString(),onChangeText:p=>Vt(m==="number",p)}),m==="number"&&C(b,{style:u.numberInputButtons,children:[a(U,{style:u.touchableButton,onPressIn:()=>{let p=i.state.data,c=V(p,W,o+1);R.setQueryData(i.queryKey,c)},children:a(Ie,{fill:"none",viewBox:"0 0 24 24",stroke:"#6938EF",children:a(Ue,{d:"M4.5 15.75l7.5-7.5 7.5 7.5"})})}),a(U,{style:u.touchableButton,onPressIn:()=>{let p=i.state.data,c=V(p,W,o-1);R.setQueryData(i.queryKey,c)},children:a(Ie,{fill:"none",viewBox:"0 0 24 24",stroke:"#6938EF",children:a(Ue,{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})})]})]}),m==="boolean"&&C(b,{style:u.booleanContainer,children:[a(mo,{activeQuery:i,dataPath:W,value:o}),a($,{style:u.booleanText,children:F(o)})]})]}):a($,{style:u.displayValueText,children:F(o)}),e&&x&&i!==void 0&&a(wt,{activeQuery:i,dataPath:W})]})]})})}var u=po.create({buttonStyle3:{backgroundColor:"transparent",flexDirection:"row",alignItems:"center",justifyContent:"center",width:16,height:16,position:"relative",zIndex:10},buttonStyle2:{backgroundColor:"transparent",flexDirection:"row",padding:0,alignItems:"center",justifyContent:"center",width:12,height:12,position:"relative",zIndex:10},buttonStyle1:{backgroundColor:"transparent",borderColor:"none",borderWidth:0,padding:0,alignItems:"center",justifyContent:"center",width:24,height:24,position:"relative"},buttonStyle:{backgroundColor:"transparent",color:"#6B7280",borderWidth:0,flexDirection:"row",alignItems:"center",justifyContent:"center",width:12,height:12,position:"relative"},expanded:{transform:[{rotate:"90deg"}]},collapsed:{transform:[{rotate:"0deg"}]},minWidthWrapper:{minWidth:200,fontSize:12,flexDirection:"row",flexWrap:"wrap",width:"100%"},fullWidthMarginRight:{position:"relative",width:"100%",marginRight:1},flexRowItemsCenterGap:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:1},expanderButton:{flexDirection:"row",alignItems:"center",height:20,backgroundColor:"transparent",borderWidth:0,padding:0},textGray500:{color:"#6B7280",fontSize:12,marginLeft:1},flexRowGapItemsCenter:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:1},singleEntryContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},multiEntryContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},relativeOutlineNone:{position:"relative"},pageExpanderButton:{flexDirection:"row",alignItems:"center",backgroundColor:"transparent",borderWidth:0,padding:0},entriesContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},flexRowGapFullWidth:{flexDirection:"row",width:"100%",alignItems:"center",marginVertical:4,lineHeight:44},text344054:{color:"#344054",height:"100%",marginRight:1},inputContainer:{flexDirection:"row",justifyContent:"space-between",borderWidth:0,height:22,margin:1,paddingVertical:2,paddingLeft:6,paddingRight:4,borderRadius:4,backgroundColor:"#EAECF0",flex:1},textNumber:{color:"#6938EF"},textInput:{flex:1,marginRight:8},textString:{},numberInputButtons:{flexDirection:"row"},touchableButton:{width:24},booleanContainer:{flexDirection:"row",alignItems:"center",padding:4,borderRadius:4,backgroundColor:"#F3F4F6",flex:1},booleanText:{marginLeft:8,color:"#6938EF"},displayValueText:{flex:1,color:"#6938EF",height:"100%"}});import{View as kt,Text as St,ScrollView as Co,StyleSheet as xo}from"react-native";import{jsx as z,jsxs as bo}from"react/jsx-runtime";function ze({selectedQuery:e,setSelectedQuery:r}){return bo(Co,{style:re.flexOne,children:[z(Le,{query:e}),z(Ve,{query:e,setSelectedQuery:r}),z(St,{style:re.headerText,children:"Data Explorer"}),z(kt,{style:re.contentView,children:z(D,{editable:!0,label:"Data",value:e?.state.data,defaultExpanded:["Data"],activeQuery:e})}),z(St,{style:re.headerText,children:"Query Explorer"}),z(kt,{style:re.contentView,children:z(D,{label:"Query",value:e,defaultExpanded:["Query","queryKey"],activeQuery:e})})]})}var re=xo.create({flexOne:{flex:1},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:6,width:"100%",fontSize:12},contentView:{padding:2}});import{jsx as ne,jsxs as Lo}from"react/jsx-runtime";function je(){let[e,r]=Tt(void 0),[o,n]=Tt({}),i=ot(),d=wo(null),x=(w,S)=>{let{y:G,height:le}=w.nativeEvent.layout;n(xe=>({...xe,[S]:{y:G,height:le}}))},R=(w,S)=>{if(w===e){r(void 0);return}if(r(w),d.current&&o[S]){let G=o[S].y;d.current.scrollTo({y:G,animated:!0})}};return Lo(To,{style:Ge.container,children:[ne(ko,{style:Ge.scrollView,ref:d,children:i.map((w,S)=>ne(Lt,{onLayout:G=>x(G,S),children:ne(Se,{selected:e,setSelected:()=>R(w,S),query:w})},S))}),e&&ne(Lt,{style:Ge.queryInformation,children:ne(ze,{selectedQuery:e,setSelectedQuery:r})})]})}var Ge=So.create({container:{flex:1,width:"100%"},scrollView:{flex:1,flexDirection:"column",width:"100%",height:"25%"},queryInformation:{height:"75%"}});import Yo,{Path as er}from"react-native-svg";import{useState as qo}from"react";import{ScrollView as Zo,View as Et,StyleSheet as $o}from"react-native";import{TouchableOpacity as vo,Text as Mo,View as Fo,StyleSheet as Do}from"react-native";var Q={purpleMutation:"#D9D6FE",purpleMutationText:"#5925DC",redMutation:"#fecaca",redMutationText:"#b91c1c",yellowMutation:"#FEDF89",yellowMutationText:"#B54708",greenMutation:"#A6F4C5",greenMutationText:"#027A48",grayMutation:"#eaecf0",grayMutationText:"#344054"},vt=({status:e,isPaused:r})=>{let o,n;return r?(o=Q.purpleMutation,n=Q.purpleMutationText):e==="error"?(o=Q.redMutation,n=Q.redMutationText):e==="pending"?(o=Q.yellowMutation,n=Q.yellowMutationText):e==="success"?(o=Q.greenMutation,n=Q.greenMutationText):(o=Q.grayMutation,n=Q.grayMutationText),{backgroundColor:o,textColor:n}};import{jsx as ie,jsxs as Mt}from"react/jsx-runtime";function Ke({mutation:e,setSelected:r,selected:o}){let n=e.options.mutationKey?JSON.stringify(F(e.options.mutationKey,!1))+" - ":"",i=new Date(e.state.submittedAt).toLocaleString(),d=`${n}${i}`,{backgroundColor:x,textColor:R}=vt({isPaused:e.state.isPaused,status:e.state.status});return Mt(vo,{onPress:()=>r(e===o?void 0:e),style:[fe.button,o?.mutationId===e.mutationId&&fe.selected],children:[Mt(Fo,{style:[fe.iconContainer,{backgroundColor:x}],children:[e.state.isPaused&&ie(ht,{}),e.state.status==="success"&&ie(pt,{}),e.state.status==="error"&&ie(gt,{}),e.state.status==="pending"&&ie(yt,{})]}),ie(Mo,{style:[fe.text],children:d})]})}var fe=Do.create({button:{flexDirection:"row",alignItems:"center",justifyContent:"flex-start",borderBottomWidth:1,borderBottomColor:"#d0d5dd",backgroundColor:"white"},selected:{backgroundColor:"#eaecf0"},iconContainer:{padding:8,paddingVertical:6},text:{marginLeft:8,fontSize:12,minWidth:18}});import{ScrollView as Po,Text as ye,View as ge,StyleSheet as Io}from"react-native";import{View as Ne,Text as pe,ScrollView as Wo,StyleSheet as Oo}from"react-native";import{Text as Ao,View as Eo,StyleSheet as Bo}from"react-native";import{jsx as Dt}from"react/jsx-runtime";var Vo={fresh:"#D1FADF",stale:"#FEF0C7",fetching:"#D1E9FF",paused:"#EBE9FE",inactive:"#F2F4F7"},Qo={fresh:"#32D583",stale:"#FDB022",fetching:"#53B1FD",paused:"#9B8AFB",inactive:"#344054"},Ro={fresh:"#027A48",stale:"#B54708",fetching:"#175CD3",paused:"#5925DC",inactive:"#344054"};function He({status:e}){let r=e==="pending"?"fetching":e==="idle"?"inactive":e==="error"?"stale":"fresh",o=Vo[r],n=Qo[r],i=Ro[r];return Dt(Eo,{style:[Ft.container,{backgroundColor:o,borderColor:n}],children:Dt(Ao,{style:[Ft.text,{color:i}],children:e})})}var Ft=Bo.create({container:{padding:8,borderWidth:1,borderRadius:4,margin:4},text:{fontSize:12}});import{jsx as _,jsxs as qe}from"react/jsx-runtime";function Ze({selectedMutation:e}){if(e===void 0)return null;let r=new Date(e.state.submittedAt).toLocaleTimeString();return qe(Ne,{style:v.container,children:[_(pe,{style:[v.mutationDetailsText,v.bgEAECF0,v.p1],children:"Mutation Details"}),qe(Ne,{style:[v.flexRow,v.justifyBetween,v.p1],children:[_(Wo,{horizontal:!0,style:v.flex1,children:_(pe,{style:v.flexWrap,children:`${e.options.mutationKey?F(e.options.mutationKey,!0):"No mutationKey found"}`})}),_(He,{status:e.state.status})]}),qe(Ne,{style:[v.flexRow,v.justifyBetween,v.p1],children:[_(pe,{children:"Submitted At:"}),_(pe,{children:r})]})]})}var v=Oo.create({container:{minWidth:200,fontSize:12},mutationDetailsText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4},flexRow:{flexDirection:"row",justifyContent:"space-between",padding:4},justifyBetween:{justifyContent:"space-between"},p1:{padding:4},flex1:{flex:1},flexWrap:{flexWrap:"wrap",alignItems:"center"},bgEAECF0:{backgroundColor:"#EAECF0"}});import{jsx as k,jsxs as Uo}from"react/jsx-runtime";function $e({selectedMutation:e}){return Uo(Po,{style:O.flex1,children:[k(Ze,{selectedMutation:e}),k(ye,{style:O.textHeader,children:"Variables Details"}),k(ge,{style:O.padding,children:k(D,{label:"Variables",value:e?.state.variables,defaultExpanded:["Variables"]})}),k(ye,{style:O.textHeader,children:"Context Details"}),k(ge,{style:O.padding,children:k(D,{label:"Context",value:e?.state.context,defaultExpanded:["Context"]})}),k(ye,{style:O.textHeader,children:"Data Explorer"}),k(ge,{style:O.padding,children:k(D,{label:"Data",defaultExpanded:["Data"],value:e?.state.data})}),k(ye,{style:O.textHeader,children:"Mutations Explorer"}),k(ge,{style:O.padding,children:k(D,{label:"Mutation",defaultExpanded:["Mutation"],value:e})})]})}var O=Io.create({flex1:{flex:1},textHeader:{textAlign:"left",backgroundColor:"#EAECF0",padding:4,width:"100%",fontSize:12},padding:{padding:8}});import{useEffect as zo,useRef as Go,useState as jo}from"react";import{useQueryClient as Ko}from"@tanstack/react-query";import Ho from"fast-deep-equal";function No(){let e=Ko(),[r,o]=jo([]),n=Go([]);return zo(()=>{let i=()=>{let x=e.getMutationCache().getAll();setTimeout(()=>{let R=[...e.getMutationCache().getAll()],w=R.map(S=>S.state);Ho(n.current,w)||(n.current=w,o(R))},1)};i();let d=e.getMutationCache().subscribe(i);return()=>d()},[e]),{mutations:r}}var At=No;import{jsx as he,jsxs as _o}from"react/jsx-runtime";function Je(){let[e,r]=qo(),{mutations:o}=At();return _o(Et,{style:_e.container,children:[he(Zo,{style:_e.scrollView,children:o.map((n,i)=>he(Ke,{selected:e,setSelected:r,mutation:n},i))}),e&&he(Et,{style:_e.mutationInfo,children:he($e,{selectedMutation:e})})]})}var _e=$o.create({container:{flex:1,flexDirection:"column",width:"100%"},scrollView:{flex:1,flexDirection:"column",height:"25%"},mutationInfo:{height:"75%"}});import{jsx as M,jsxs as se}from"react/jsx-runtime";function Ye({setShowDevTools:e}){let[r,o]=Jo(!0);return se(J,{style:g.container,children:[M(Xe,{onPress:()=>{e(!1)},style:g.closeButton,children:M(Yo,{width:8,height:8,viewBox:"0 0 10 6",fill:"none",children:M(er,{d:"M1 1l4 4 4-4",stroke:"#475467",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"})})}),se(J,{style:g.devToolsPanel,children:[se(J,{style:g.devToolsHeader,children:[se(J,{style:g.tanstackHeader,children:[M(me,{style:g.tanstackText,children:"TANSTACK"}),M(J,{style:g.reactQueryVersion,children:M(me,{style:g.reactQueryVersionText,children:"React Query v5"})})]}),se(J,{style:g.toggleButtonsContainer,children:[M(Xe,{onPress:()=>{o(!0)},style:[g.toggleButton,r===!0?g.toggleButtonActive:g.toggleButtonInactive,{borderTopRightRadius:0,borderBottomRightRadius:0}],children:M(me,{style:[g.toggleButtonText,r===!0?g.toggleButtonTextActive:g.toggleButtonTextInactive],children:"Queries"})}),M(Xe,{onPress:()=>{o(!1)},style:[g.toggleButton,r===!1?g.toggleButtonActive:g.toggleButtonInactive,{borderTopLeftRadius:0,borderBottomLeftRadius:0}],children:M(me,{style:[g.toggleButtonText,r===!1?g.toggleButtonTextActive:g.toggleButtonTextInactive],children:"Mutations"})})]})]}),r?M(je,{}):M(Je,{})]})]})}var g=Xo.create({container:{flex:1,flexDirection:"column"},closeButton:{position:"absolute",right:-2,top:-17,zIndex:50,width:22,height:15,borderTopLeftRadius:4,borderTopRightRadius:4,backgroundColor:"white",padding:3,margin:3,borderColor:"#98a2b3",borderWidth:1,borderBottomWidth:0,alignItems:"center",justifyContent:"center"},devToolsPanel:{backgroundColor:"white",minWidth:300,flex:1,borderTopColor:"#98a2b3",borderTopWidth:1},devToolsHeader:{padding:8,paddingBottom:6,paddingTop:6,borderColor:"#d0d5dd",borderBottomWidth:2,paddingVertical:1,flexDirection:"row"},tanstackHeader:{marginHorizontal:2,paddingRight:8},tanstackText:{color:"#475467",fontWeight:"bold"},reactQueryVersion:{},reactQueryVersionText:{marginTop:-4,color:"#F97F1E"},toggleButtonsContainer:{flexDirection:"row",marginLeft:1,alignItems:"center"},toggleButton:{borderTopLeftRadius:4,borderBottomLeftRadius:4,padding:4,borderWidth:1,borderColor:"#d0d5dd",paddingHorizontal:2,maxWidth:100,borderRadius:4},toggleButtonActive:{backgroundColor:"#F2F4F7"},toggleButtonInactive:{backgroundColor:"#EAECF0"},toggleButtonText:{paddingRight:4,paddingLeft:4,fontSize:12},toggleButtonTextActive:{color:"#344054"},toggleButtonTextInactive:{color:"#909193"},comingSoonText:{margin:3}});import{jsx as ae}from"react/jsx-runtime";function ir({bubbleStyle:e}){let[r,o]=tr(!1);return ae(Bt,{children:r?ae(Bt,{style:Ce.devTools,children:ae(Ye,{setShowDevTools:o})}):ae(or,{onPress:()=>{o(!0)},style:[Ce.touchableOpacityBase,rr.OS==="ios"?Ce.touchableOpacityIOS:Ce.touchableOpacityAndroid,e],children:ae(mt,{})})})}var Ce=nr.create({devTools:{position:"absolute",right:0,bottom:0,zIndex:50,width:"100%",height:350},touchableOpacityBase:{position:"absolute",right:1,zIndex:50,width:48,height:48,borderRadius:24,borderWidth:4,borderColor:"#A4C200"},touchableOpacityIOS:{bottom:96},touchableOpacityAndroid:{bottom:64},text:{zIndex:10,color:"white",fontSize:40,padding:24}});export{ir as DevToolsBubble}; | ||
import{useState as _o}from"react";import{View as Mt,TouchableOpacity as Jo,Platform as Xo,StyleSheet as Yo}from"react-native";import{useState as No}from"react";import{View as J,TouchableOpacity as _e,Text as he,StyleSheet as qo}from"react-native";import{useState as xt,useRef as ho}from"react";import{ScrollView as mo,View as Ct,StyleSheet as xo,SafeAreaView as Co}from"react-native";function K(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}var Dt={fresh:{backgroundColor:"#A6F4C5"},stale:{backgroundColor:"#FEDF89"},fetching:{backgroundColor:"#B2DDFF"},paused:{backgroundColor:"#D9D6FE"},noObserver:{backgroundColor:"#EAECF0"},inactive:{backgroundColor:"#FEDF89"}};function Xe(e){let r={backgroundColor:"#EAECF0"};return Dt[e]||r}import{TouchableOpacity as Bt,Text as be,StyleSheet as At}from"react-native";var v=(e,r=!1)=>JSON.stringify(e,(()=>{let n=new WeakSet;return(i,u)=>{if(typeof u=="object"&&u!==null){if(n.has(u))return"[Circular]";n.add(u)}return u}})(),r?2:void 0);import{jsx as ke,jsxs as Vt}from"react/jsx-runtime";function we({query:e,setSelected:r,selected:o}){return Vt(Bt,{onPress:()=>{r(e===o?void 0:e)},style:[ee.touchableOpacityBase,o?.queryKey===e.queryKey&&ee.touchableOpacitySelected],children:[ke(be,{style:[ee.textBase,Xe(K(e))],children:`${e.getObserversCount()}`}),ke(be,{style:ee.queryKeyText,children:`${v(e.queryKey,!1)}`}),e.isDisabled()&&ke(be,{style:ee.disabledText,children:"disabled"})]})}var ee=At.create({touchableOpacityBase:{flexDirection:"row",alignItems:"center",justifyContent:"center",backgroundColor:"white",borderBottomWidth:1,borderBottomColor:"#d0d5dd"},touchableOpacitySelected:{backgroundColor:"#eaecf0"},textBase:{textAlign:"center",minWidth:30,maxWidth:30,paddingVertical:6,fontSize:12},queryKeyText:{flex:1,flexDirection:"row",paddingVertical:1,paddingHorizontal:2,fontSize:12,paddingLeft:5},disabledText:{fontSize:12,paddingVertical:6,paddingHorizontal:2,color:"#1d2939",backgroundColor:"#d0d5dd",borderBottomWidth:1,borderBottomColor:"#d0d5dd"}});import{useEffect as Et,useState as Qt}from"react";import{useQueryClient as Rt}from"@tanstack/react-query";function Wt(){let e=Rt(),[r,o]=Qt([]);return Et(()=>{let n=()=>{let u=e.getQueryCache().findAll();setTimeout(()=>{o(u)},1)};n();let i=e.getQueryCache().subscribe(n);return()=>i()},[e]),r}var Ye=Wt;import{Text as Ot,View as Pt,StyleSheet as It}from"react-native";import{jsx as tt}from"react/jsx-runtime";var Ut={fresh:"#D1FADF",stale:"#FEF0C7",fetching:"#D1E9FF",paused:"#EBE9FE",noObserver:"#F2F4F7"},zt={fresh:"#32D583",stale:"#FDB022",fetching:"#53B1FD",paused:"#9B8AFB",noObserver:"#344054"},Gt={fresh:"#027A48",stale:"#B54708",fetching:"#175CD3",paused:"#5925DC",noObserver:"#344054"};function Se({query:e}){let r=K(e),o=Ut[r],n=zt[r],i=Gt[r];return tt(Pt,{style:[et.container,{backgroundColor:o,borderColor:n}],children:tt(Ot,{style:[et.text,{color:i}],children:r})})}var et=It.create({container:{padding:8,borderWidth:1,borderRadius:4,margin:4},text:{fontSize:12}});import{View as ae,Text as Z,ScrollView as jt,StyleSheet as Kt}from"react-native";import{jsx as U,jsxs as le}from"react/jsx-runtime";function Te({query:e}){if(e===void 0)return null;let r=new Date(e.state.dataUpdatedAt).toLocaleTimeString();return le(ae,{style:H.minWidth,children:[U(Z,{style:H.headerText,children:"Query Details"}),le(ae,{style:H.row,children:[U(jt,{horizontal:!0,style:H.flexOne,children:U(Z,{style:H.queryKeyText,children:v(e.queryKey,!0)})}),U(Se,{query:e})]}),le(ae,{style:H.row,children:[U(Z,{children:" Observers:"}),U(Z,{children:`${e.getObserversCount()}`})]}),le(ae,{style:H.row,children:[U(Z,{children:" Last Updated:"}),U(Z,{children:`${r}`})]})]})}var H=Kt.create({minWidth:{minWidth:200,fontSize:12},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4},row:{flexDirection:"row",justifyContent:"space-between",padding:4},flexOne:{flex:1},queryKeyText:{flexWrap:"wrap",alignItems:"center"}});import{useQueryClient as Xt}from"@tanstack/react-query";import{TouchableOpacity as Ht,Text as Nt,View as qt,StyleSheet as Zt}from"react-native";import{jsx as ot,jsxs as Jt}from"react/jsx-runtime";var $t={btnRefetch:"#1570EF",btnInvalidate:"#DC6803",btnReset:"#475467",btnRemove:"#db2777",btnTriggerLoading:"#0891b2",btnTriggerLoadiError:"#ef4444"},_t={btnRefetch:"#1570EF",btnInvalidate:"#DC6803",btnReset:"#475467",btnRemove:"#db2777",btnTriggerLoading:"#0891b2",btnTriggerLoadiError:"#ef4444"};function z({onClick:e,text:r,textColorClass:o,bgColorClass:n,disabled:i}){let u=$t[n],b=_t[o]||"#FFFFFF";return Jt(Ht,{disabled:i,onPress:e,style:[Le.button,{opacity:i?.6:1}],children:[ot(qt,{style:[Le.dot,{backgroundColor:b}]}),ot(Nt,{style:[Le.text,{color:b,opacity:i?.6:1}],children:r})]})}var Le=Zt.create({button:{flexDirection:"row",alignItems:"center",justifyContent:"center",borderRadius:4,borderWidth:1,borderColor:"#d0d5dd",backgroundColor:"#f2f4f7",height:30,margin:4,paddingHorizontal:8,paddingVertical:4},dot:{width:6,height:6,borderRadius:999,marginRight:4},text:{fontSize:12,fontWeight:"400"}});function Me({query:e}){if(e.state.data===void 0){let r=e.state.fetchMeta.__previousQueryOptions;r&&e.fetch(r,{cancelRefetch:!0})}else{let r=e.options;e.fetch({...r,queryFn:()=>new Promise(()=>{}),gcTime:-1}),e.setState({data:void 0,status:"pending",fetchMeta:{...e.state.fetchMeta,__previousQueryOptions:r}})}}function ve({query:e}){e.fetch()}function Fe({query:e,queryClient:r}){r.resetQueries({queryKey:e.queryKey,exact:!0})}function De({query:e,queryClient:r}){r.removeQueries(e)}function Be({query:e}){e.invalidate()}function Ae({query:e,queryClient:r}){let o=()=>{if(!e)return;let i=[{name:"Network Error",initializer:()=>new Error("Network error occurred")}][0]?.initializer(e)??new Error("Unknown error from devtools"),u=e.options;e.setState({...e.state,status:"error",error:i,fetchMeta:{...e.state.fetchMeta,__previousQueryOptions:u}})};e.state.status!=="error"?o():r.resetQueries(e)}import{View as Yt,Text as eo,StyleSheet as to}from"react-native";import{jsx as N,jsxs as oo}from"react/jsx-runtime";function Ve({query:e,setSelectedQuery:r}){let o=Xt();if(e===void 0)return null;let n=e.state.status;return oo(Yt,{style:rt.container,children:[N(eo,{style:rt.headerText,children:"Actions"}),N(z,{disabled:K(e)==="fetching",onClick:()=>{ve({query:e})},bgColorClass:"btnRefetch",text:"Refetch",textColorClass:"btnRefetch"}),N(z,{disabled:n==="pending",onClick:()=>{Be({query:e})},bgColorClass:"btnInvalidate",text:"Invalidate",textColorClass:"btnInvalidate"}),N(z,{disabled:n==="pending",onClick:()=>{Fe({queryClient:o,query:e})},bgColorClass:"btnReset",text:"Reset",textColorClass:"btnReset"}),N(z,{disabled:K(e)==="fetching",onClick:()=>{De({queryClient:o,query:e}),r(void 0)},bgColorClass:"btnRemove",text:"Remove",textColorClass:"btnRemove"}),N(z,{disabled:!1,onClick:()=>{Me({query:e})},bgColorClass:"btnTriggerLoading",text:e.state.data===void 0?"Restore Loading":"Trigger Loading",textColorClass:"btnTriggerLoading"}),N(z,{disabled:n==="pending",onClick:()=>{Ae({query:e,queryClient:o})},bgColorClass:"btnTriggerLoadiError",text:n==="error"?"Restore":"Trigger Error",textColorClass:"btnTriggerLoadiError"})]})}var rt=to.create({container:{minWidth:50,fontSize:12,flexDirection:"row",flexWrap:"wrap"},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4,width:"100%"}});import{useState as We,useMemo as Re}from"react";import{useQueryClient as ue}from"@tanstack/react-query";import V,{Path as d,Line as Ee,Rect as ro,LinearGradient as h,Stop as a,Circle as T,Defs as B,Mask as A,G as y,Ellipse as q}from"react-native-svg";import{Fragment as no,jsx as t,jsxs as f}from"react/jsx-runtime";function nt(){return t(V,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:t(d,{d:"M9 3h6M3 6h18m-2 0l-.701 10.52c-.105 1.578-.158 2.367-.499 2.965a3 3 0 01-1.298 1.215c-.62.3-1.41.3-2.993.3h-3.018c-1.582 0-2.373 0-2.993-.3A3 3 0 016.2 19.485c-.34-.598-.394-1.387-.499-2.966L5 6m5 4.5v5m4-5v5",stroke:"#667085"})})}function it(){return t(V,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:t(d,{d:"M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#667085"})})}function st(){return f(V,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#667085",strokeWidth:"2",children:[t(ro,{width:"20",height:"20",y:"2",x:"2",rx:"2"}),t(Ee,{y1:"7",y2:"7",x1:"6",x2:"18"}),t(Ee,{y2:"12",y1:"12",x1:"6",x2:"18"}),t(Ee,{y1:"17",y2:"17",x1:"6",x2:"18"})]})}function at(e){return t(no,{children:e.checked?t(V,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:t(d,{d:"M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:e.theme==="dark"?"#9B8AFB":"#6938EF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):t(V,{viewBox:"0 0 24 24",height:"20",width:"20",fill:"none",children:t(d,{d:"M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z",stroke:e.theme==="dark"?"#9B8AFB":"#6938EF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}function lt(){return t(V,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:t(d,{d:"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#027A48",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function dt(){return t(V,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:t(d,{d:"M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837",stroke:"#B54708",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function ut(){return t(V,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:t(d,{d:"M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#b91c1c",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function ct(){return t(V,{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:t(d,{d:"M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#5925DC",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function ft(){return f(V,{height:"100%",width:"100%",style:{position:"absolute"},viewBox:"0 0 633 633",children:[f(h,{x1:-666.45,x2:-666.45,y1:163.28,y2:163.99,gradientTransform:"matrix(633 0 0 633 422177 -103358)",gradientUnits:"userSpaceOnUse",id:"a",children:[t(a,{stopColor:"#6BDAFF",offset:0}),t(a,{stopColor:"#F9FFB5",offset:.32}),t(a,{stopColor:"#FFA770",offset:.71}),t(a,{stopColor:"#FF7373",offset:1})]}),t(T,{cx:316.5,cy:316.5,r:316.5,fill:"url(#a)"}),t(B,{}),t(A,{x:-137.5,y:412,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"c",children:t(y,{filter:"url(#b)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#c)",children:t(q,{cx:89.5,cy:610.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00CFE2",strokeWidth:25})}),t(B,{}),t(A,{x:316.5,y:412,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"e",children:t(y,{filter:"url(#d)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#e)",children:t(q,{cx:543.5,cy:610.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00CFE2",strokeWidth:25})}),t(B,{}),t(A,{x:-137.5,y:450,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"g",children:t(y,{filter:"url(#f)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#g)",children:t(q,{cx:89.5,cy:648.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00A8B8",strokeWidth:25})}),t(B,{}),t(A,{x:316.5,y:450,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"i",children:t(y,{filter:"url(#h)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#i)",children:t(q,{cx:543.5,cy:648.5,rx:214.5,ry:186,fill:"#015064",stroke:"#00A8B8",strokeWidth:25})}),t(B,{}),t(A,{x:-137.5,y:486,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"k",children:t(y,{filter:"url(#j)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#k)",children:t(q,{cx:89.5,cy:684.5,rx:214.5,ry:186,fill:"#015064",stroke:"#007782",strokeWidth:25})}),t(B,{}),t(A,{x:316.5,y:486,width:454,height:396.9,maskUnits:"userSpaceOnUse",id:"m",children:t(y,{filter:"url(#l)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),t(y,{mask:"url(#m)",children:t(q,{cx:543.5,cy:684.5,rx:214.5,ry:186,fill:"#015064",stroke:"#007782",strokeWidth:25})}),t(B,{}),t(A,{x:272.2,y:308,width:176.9,height:129.3,maskUnits:"userSpaceOnUse",id:"o",children:t(y,{filter:"url(#n)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),f(y,{mask:"url(#o)",children:[t(d,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M436 403.2L431 431.8"}),t(d,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M291 341.5L280 403.5"}),t(d,{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:11,d:"M332.9 384.1L328.6 411.2"}),f(h,{x1:-670.75,x2:-671.59,y1:164.4,y2:164.49,gradientTransform:"matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)",gradientUnits:"userSpaceOnUse",id:"p",children:[t(a,{stopColor:"#EE2700",offset:0}),t(a,{stopColor:"#FF008E",offset:1})]}),t(d,{d:"M344.1 363l97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z",clipRule:"evenodd",fillRule:"evenodd",fill:"url(#p)"}),t(d,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M428.2 384.5L429.1 378"}),t(d,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M395.2 379.5L396.1 373"}),t(d,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M362.2 373.5L363.1 367.4"}),t(d,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M324.2 351.3L328.4 347.4"}),t(d,{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:7,d:"M303.2 331.3L307.4 327.4"})]}),t(B,{}),t(A,{x:73.2,y:113.8,width:280.6,height:317.4,maskUnits:"userSpaceOnUse",id:"r",children:t(y,{filter:"url(#q)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),f(y,{mask:"url(#r)",children:[f(h,{x1:-672.16,x2:-672.16,y1:165.03,y2:166.03,gradientTransform:"matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)",gradientUnits:"userSpaceOnUse",id:"s",children:[t(a,{stopColor:"#A17500",offset:0}),t(a,{stopColor:"#5D2100",offset:1})]}),t(d,{d:"M192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6",clipRule:"evenodd",fillRule:"evenodd",fill:"url(#s)"}),f(y,{stroke:"#2F8A00",children:[f(h,{x1:-660.23,x2:-660.23,y1:166.72,y2:167.72,gradientTransform:"matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)",gradientUnits:"userSpaceOnUse",id:"t",children:[t(a,{stopColor:"#2F8A00",offset:0}),t(a,{stopColor:"#90FF57",offset:1})]}),t(d,{d:"M195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#t)"}),f(h,{x1:-661.36,x2:-661.36,y1:164.18,y2:165.18,gradientTransform:"matrix(110 5.7648 -6.3599 121.35 73933 -15933)",gradientUnits:"userSpaceOnUse",id:"u",children:[t(a,{stopColor:"#2F8A00",offset:0}),t(a,{stopColor:"#90FF57",offset:1})]}),t(d,{d:"M194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#u)"}),f(h,{x1:-656.79,x2:-656.79,y1:165.15,y2:166.15,gradientTransform:"matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)",gradientUnits:"userSpaceOnUse",id:"v",children:[t(a,{stopColor:"#2F8A00",offset:0}),t(a,{stopColor:"#90FF57",offset:1})]}),t(d,{d:"M195 183.9c-.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4S211.5 178 195 183.9z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#v)"}),f(h,{x1:-663.07,x2:-663.07,y1:165.44,y2:166.44,gradientTransform:"matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)",gradientUnits:"userSpaceOnUse",id:"w",children:[t(a,{stopColor:"#2F8A00",offset:0}),t(a,{stopColor:"#90FF57",offset:1})]}),t(d,{d:"M194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#w)"}),f(h,{x1:-662.57,x2:-662.57,y1:164.44,y2:165.44,gradientTransform:"matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)",gradientUnits:"userSpaceOnUse",id:"x",children:[t(a,{stopColor:"#2F8A00",offset:0}),t(a,{stopColor:"#90FF57",offset:1})]}),t(d,{d:"M194.9 184.5c35.8-7.6 65.6-.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#x)"}),f(h,{x1:-656.43,x2:-656.43,y1:163.86,y2:164.86,gradientTransform:"matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)",gradientUnits:"userSpaceOnUse",id:"y",children:[t(a,{stopColor:"#2F8A00",offset:0}),t(a,{stopColor:"#90FF57",offset:1})]}),t(d,{d:"M194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z",clipRule:"evenodd",fillRule:"evenodd",strokeWidth:13,fill:"url(#y)"}),t(d,{d:"M196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1",fill:"none",strokeLinecap:"round",strokeWidth:8}),t(d,{d:"M194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8M204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9M196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32",fill:"none",strokeLinecap:"round",strokeWidth:8})]})]}),t(B,{}),t(A,{x:50.5,y:399,width:532,height:633,maskUnits:"userSpaceOnUse",id:"A",children:t(y,{filter:"url(#z)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),f(y,{mask:"url(#A)",children:[f(h,{x1:-666.06,x2:-666.23,y1:163.36,y2:163.75,gradientTransform:"matrix(532 0 0 633 354760 -102959)",gradientUnits:"userSpaceOnUse",id:"B",children:[t(a,{stopColor:"#FFF400",offset:0}),t(a,{stopColor:"#3C8700",offset:1})]}),t(q,{cx:316.5,cy:715.5,rx:266,ry:316.5,fill:"url(#B)"})]}),t(B,{}),t(A,{x:391,y:-24,width:288,height:283,maskUnits:"userSpaceOnUse",id:"D",children:t(y,{filter:"url(#C)",children:t(T,{cx:316.5,cy:316.5,r:316.5,fill:"#fff"})})}),f(y,{mask:"url(#D)",children:[f(h,{x1:-664.56,x2:-664.56,y1:163.79,y2:164.79,gradientTransform:"matrix(227 0 0 227 151421 -37204)",gradientUnits:"userSpaceOnUse",id:"E",children:[t(a,{stopColor:"#FFDF00",offset:0}),t(a,{stopColor:"#FF9D00",offset:1})]}),t(T,{cx:565.5,cy:89.5,r:113.5,fill:"url(#E)"}),f(h,{x1:-644.5,x2:-645.77,y1:342,y2:342,gradientTransform:"matrix(30 0 0 1 19770 -253)",gradientUnits:"userSpaceOnUse",id:"F",children:[t(a,{stopColor:"#FFA400",offset:0}),t(a,{stopColor:"#FF5E00",offset:1})]}),t(d,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#F)",d:"M427 89L397 89"}),f(h,{x1:-641.56,x2:-642.83,y1:196.02,y2:196.07,gradientTransform:"matrix(26.5 0 0 5.5 17439 -1025.5)",gradientUnits:"userSpaceOnUse",id:"G",children:[t(a,{stopColor:"#FFA400",offset:0}),t(a,{stopColor:"#FF5E00",offset:1})]}),t(d,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#G)",d:"M430.5 55.5L404 50"}),f(h,{x1:-643.73,x2:-645,y1:185.83,y2:185.9,gradientTransform:"matrix(29 0 0 8 19107 -1361)",gradientUnits:"userSpaceOnUse",id:"H",children:[t(a,{stopColor:"#FFA400",offset:0}),t(a,{stopColor:"#FF5E00",offset:1})]}),t(d,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#H)",d:"M431 122L402 130"}),f(h,{x1:-638.94,x2:-640.22,y1:177.09,y2:177.39,gradientTransform:"matrix(24 0 0 13 15783 -2145)",gradientUnits:"userSpaceOnUse",id:"I",children:[t(a,{stopColor:"#FFA400",offset:0}),t(a,{stopColor:"#FF5E00",offset:1})]}),t(d,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#I)",d:"M442 153L418 166"}),f(h,{x1:-633.42,x2:-634.7,y1:172.41,y2:173.31,gradientTransform:"matrix(20 0 0 19 13137 -3096)",gradientUnits:"userSpaceOnUse",id:"J",children:[t(a,{stopColor:"#FFA400",offset:0}),t(a,{stopColor:"#FF5E00",offset:1})]}),t(d,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#J)",d:"M464 180L444 199"}),f(h,{x1:-619.05,x2:-619.52,y1:170.82,y2:171.82,gradientTransform:"matrix(13.83 0 0 22.85 9050 -3703.4)",gradientUnits:"userSpaceOnUse",id:"K",children:[t(a,{stopColor:"#FFA400",offset:0}),t(a,{stopColor:"#FF5E00",offset:1})]}),t(d,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#K)",d:"M491.4 203L477.5 225.9"}),f(h,{x1:-578.5,x2:-578.63,y1:170.31,y2:171.31,gradientTransform:"matrix(7.5 0 0 24.5 4860 -3953)",gradientUnits:"userSpaceOnUse",id:"L",children:[t(a,{stopColor:"#FFA400",offset:0}),t(a,{stopColor:"#FF5E00",offset:1})]}),t(d,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#L)",d:"M524.5 219.5L517 244"}),f(h,{x1:666.5,x2:666.5,y1:170.31,y2:171.31,gradientTransform:"matrix(.5 0 0 24.5 231.5 -3944)",gradientUnits:"userSpaceOnUse",id:"M",children:[t(a,{stopColor:"#FFA400",offset:0}),t(a,{stopColor:"#FF5E00",offset:1})]}),t(d,{fill:"none",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:12,stroke:"url(#M)",d:"M564.5 228.5L565 253"})]})]})}var E=(e,r,o)=>{if(r.length===0)return o;if(e instanceof Map){let n=new Map(e);if(r.length===1)return n.set(r[0],o),n;let[i,...u]=r;return n.set(i,E(n.get(i),u,o)),n}if(e instanceof Set){let n=E(Array.from(e),r,o);return new Set(n)}if(Array.isArray(e)){let n=[...e];if(r.length===1)return n[r[0]]=o,n;let[i,...u]=r;return n[i]=E(n[i],u,o),n}if(e instanceof Object){let n={...e};if(r.length===1)return n[r[0]]=o,n;let[i,...u]=r;return n[i]=E(n[i],u,o),n}return e};var $=(e,r)=>{if(e instanceof Map){let o=new Map(e);if(r.length===1)return o.delete(r[0]),o;let[n,...i]=r;return o.set(n,$(o.get(n),i)),o}if(e instanceof Set){let o=$(Array.from(e),r);return new Set(o)}if(Array.isArray(e)){let o=[...e];if(r.length===1)return o.filter((u,b)=>b.toString()!==r[0]);let[n,...i]=r;return o[n]=$(o[n],i),o}if(e instanceof Object){let o={...e};if(r.length===1)return delete o[r[0]],o;let[n,...i]=r;return o[n]=$(o[n],i),o}return e};function Qe({activeQuery:e,dataPath:r,queryClient:o}){if(!r){console.error("delete item data path is missing!");return}let n=e.state.data,i=$(n,r);o.setQueryData(e.queryKey,i)}import Oe,{Path as Pe}from"react-native-svg";import{Text as O,TextInput as io,TouchableOpacity as P,View as C,StyleSheet as so,Modal as ao}from"react-native";import{Fragment as de,jsx as s,jsxs as m}from"react/jsx-runtime";function pt(e){return Symbol.iterator in e}function lo(e,r){if(r<1)return[];let o=0,n=[];for(;o<e.length;)n.push(e.slice(o,o+r)),o=o+r;return n}var yt=({expanded:e})=>s(C,{style:[e?l.expanded:l.collapsed],children:s(Oe,{width:16,height:16,viewBox:"0 0 16 16",fill:"#98A2B3",children:s(Pe,{d:"M6 12l4-4-4-4"})})}),uo=({value:e})=>{let[r,o]=We(!1),n=()=>{o(!0)};return m(de,{children:[s(P,{style:l.buttonStyle,"aria-label":"Show copyable text",onPress:n,children:s(it,{})}),s(ao,{animationType:"fade",transparent:!0,visible:r,onRequestClose:()=>o(!1),children:s(C,{style:l.modalOverlay,children:m(C,{style:l.modalContent,children:[s(O,{style:l.modalTitle,children:"Copy Text"}),s(O,{selectable:!0,style:l.modalText,children:JSON.stringify(e,null,2)}),s(P,{style:l.closeButton,onPress:()=>o(!1),children:s(O,{style:l.closeButtonText,children:"Close"})})]})})})]})},gt=({dataPath:e,activeQuery:r})=>{let o=ue();return r?s(P,{onPress:()=>{Qe({queryClient:o,activeQuery:r,dataPath:e})},style:l.buttonStyle1,accessibilityLabel:"Delete item",children:s(nt,{})}):null},co=({dataPath:e,activeQuery:r})=>{let o=ue();if(!r)return null;let n=()=>{let i=r.state.data,u=E(i,e,[]);o.setQueryData(r.queryKey,u)};return s(P,{style:l.buttonStyle2,"aria-label":"Remove all items",onPress:n,children:s(st,{})})},fo=({dataPath:e,activeQuery:r,value:o})=>{let n=ue();if(!r)return null;let i=()=>{let u=r.state.data,b=E(u,e,!o);n.setQueryData(r.queryKey,b)};return s(P,{style:l.buttonStyle3,"aria-label":"Toggle value",onPress:i,children:s(at,{checked:o,theme:"light"})})};function F({editable:e,label:r,value:o,defaultExpanded:n,activeQuery:i,dataPath:u,itemsDeletable:b}){let R=ue(),[k,S]=We((n||[]).includes(r)),j=()=>S(p=>!p),[se,xe]=We([]),X=Re(()=>Array.isArray(o)?o.map((p,c)=>({label:c.toString(),value:p})):o!==null&&typeof o=="object"&&pt(o)?o instanceof Map?Array.from(o,([p,c])=>({label:p.toString(),value:c})):Array.from(o,(p,c)=>({label:c.toString(),value:p})):typeof o=="object"&&o!==null?Object.entries(o).map(([p,c])=>({label:p,value:c})):[],[o]),x=Re(()=>Array.isArray(o)?"array":o!==null&&typeof o=="object"&&pt(o)&&typeof o[Symbol.iterator]=="function"?"Iterable":typeof o=="object"&&o!==null?"object":typeof o,[o]),Y=Re(()=>lo(X,100),[X]),W=u??[],vt=(p,c)=>{if(!i)return null;let D=i.state.data;if(p&&isNaN(Number(c)))return;let Ce=x==="number"?Number(c):c,Ft=E(D,W,Ce);R.setQueryData(i.queryKey,Ft)};return s(C,{style:l.minWidthWrapper,children:m(C,{style:l.fullWidthMarginRight,children:[Y.length>0&&m(de,{children:[m(C,{style:l.flexRowItemsCenterGap,children:[m(P,{style:l.expanderButton,onPress:()=>j(),children:[s(yt,{expanded:k}),s(O,{children:r}),s(O,{style:l.textGray500,children:`${String(x).toLowerCase()==="iterable"?"(Iterable) ":""}${X.length} ${X.length>1?"items":"item"}`})]}),e&&m(C,{style:l.flexRowGapItemsCenter,children:[s(uo,{value:o}),b&&i!==void 0&&s(gt,{activeQuery:i,dataPath:W}),x==="array"&&i!==void 0&&s(co,{activeQuery:i,dataPath:W})]})]}),k&&m(de,{children:[Y.length===1&&s(C,{style:l.singleEntryContainer,children:X.map((p,c)=>s(F,{defaultExpanded:n,label:p.label,value:p.value,editable:e,dataPath:[...W,p.label],activeQuery:i,itemsDeletable:x==="array"||x==="Iterable"||x==="object"},p.label+c))}),Y.length>1&&s(C,{style:l.multiEntryContainer,children:Y.map((p,c)=>s(C,{children:m(C,{style:l.relativeOutlineNone,children:[m(P,{onPress:()=>xe(D=>D.includes(c)?D.filter(Ce=>Ce!==c):[...D,c]),style:l.pageExpanderButton,children:[s(yt,{expanded:se.includes(c)}),m(O,{children:["[",c*100,"...",c*100+99,"]"]})]}),se.includes(c)&&s(C,{style:l.entriesContainer,children:p.map(D=>s(F,{defaultExpanded:n,label:D.label,value:D.value,editable:e,dataPath:[...W,D.label],activeQuery:i},D.label))})]})},c))})]})]}),Y.length===0&&m(C,{style:l.flexRowGapFullWidth,children:[m(O,{style:l.text344054,children:[r,":"]}),e&&i!==void 0&&(x==="string"||x==="number"||x==="boolean")?m(de,{children:[e&&i&&(x==="string"||x==="number")&&m(C,{style:l.inputContainer,children:[s(io,{style:[l.textInput,x==="number"?l.textNumber:l.textString],keyboardType:x==="number"?"numeric":"default",value:o.toString(),onChangeText:p=>vt(x==="number",p)}),x==="number"&&m(C,{style:l.numberInputButtons,children:[s(P,{style:l.touchableButton,onPressIn:()=>{let p=i.state.data,c=E(p,W,o+1);R.setQueryData(i.queryKey,c)},children:s(Oe,{fill:"none",viewBox:"0 0 24 24",stroke:"#6938EF",children:s(Pe,{d:"M4.5 15.75l7.5-7.5 7.5 7.5"})})}),s(P,{style:l.touchableButton,onPressIn:()=>{let p=i.state.data,c=E(p,W,o-1);R.setQueryData(i.queryKey,c)},children:s(Oe,{fill:"none",viewBox:"0 0 24 24",stroke:"#6938EF",children:s(Pe,{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})})]})]}),x==="boolean"&&m(C,{style:l.booleanContainer,children:[s(fo,{activeQuery:i,dataPath:W,value:o}),s(O,{style:l.booleanText,children:v(o)})]})]}):s(O,{style:l.displayValueText,children:v(o)}),e&&b&&i!==void 0&&s(gt,{activeQuery:i,dataPath:W})]})]})})}var l=so.create({buttonStyle3:{backgroundColor:"transparent",flexDirection:"row",alignItems:"center",justifyContent:"center",width:16,height:16,position:"relative",zIndex:10},buttonStyle2:{backgroundColor:"transparent",flexDirection:"row",padding:0,alignItems:"center",justifyContent:"center",width:12,height:12,position:"relative",zIndex:10},buttonStyle1:{backgroundColor:"transparent",borderColor:"none",borderWidth:0,padding:0,alignItems:"center",justifyContent:"center",width:24,height:24,position:"relative"},buttonStyle:{backgroundColor:"transparent",color:"#6B7280",borderWidth:0,flexDirection:"row",alignItems:"center",justifyContent:"center",width:12,height:12,position:"relative"},expanded:{transform:[{rotate:"90deg"}]},collapsed:{transform:[{rotate:"0deg"}]},minWidthWrapper:{minWidth:200,fontSize:12,flexDirection:"row",flexWrap:"wrap",width:"100%"},fullWidthMarginRight:{position:"relative",width:"100%",marginRight:1},flexRowItemsCenterGap:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:1},expanderButton:{flexDirection:"row",alignItems:"center",height:20,backgroundColor:"transparent",borderWidth:0,padding:0},textGray500:{color:"#6B7280",fontSize:12,marginLeft:1},flexRowGapItemsCenter:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:1},singleEntryContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},multiEntryContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},relativeOutlineNone:{position:"relative"},pageExpanderButton:{flexDirection:"row",alignItems:"center",backgroundColor:"transparent",borderWidth:0,padding:0},entriesContainer:{marginLeft:8,paddingLeft:12,borderLeftWidth:2,borderColor:"#D1D5DB"},flexRowGapFullWidth:{flexDirection:"row",width:"100%",alignItems:"center",marginVertical:4,lineHeight:44},text344054:{color:"#344054",height:"100%",marginRight:1},inputContainer:{flexDirection:"row",justifyContent:"space-between",borderWidth:0,height:22,margin:1,paddingVertical:2,paddingLeft:6,paddingRight:4,borderRadius:4,backgroundColor:"#EAECF0",flex:1},textNumber:{color:"#6938EF"},textInput:{flex:1,marginRight:8},textString:{},numberInputButtons:{flexDirection:"row"},touchableButton:{width:24},booleanContainer:{flexDirection:"row",alignItems:"center",padding:4,borderRadius:4,backgroundColor:"#F3F4F6",flex:1},booleanText:{marginLeft:8,color:"#6938EF"},displayValueText:{flex:1,color:"#6938EF",height:"100%"},modalOverlay:{flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)",justifyContent:"center",alignItems:"center",padding:20},modalContent:{backgroundColor:"white",borderRadius:8,padding:20,maxWidth:"90%",maxHeight:"80%"},modalTitle:{fontSize:18,fontWeight:"bold",marginBottom:10,color:"#344054"},modalText:{fontSize:14,color:"#344054",fontFamily:"monospace"},closeButton:{marginTop:20,padding:10,backgroundColor:"#6938EF",borderRadius:4,alignItems:"center"},closeButtonText:{color:"white",fontSize:16}});import{View as ht,Text as mt,ScrollView as po,StyleSheet as yo}from"react-native";import{jsx as G,jsxs as go}from"react/jsx-runtime";function Ie({selectedQuery:e,setSelectedQuery:r}){return go(po,{style:te.flexOne,children:[G(Te,{query:e}),G(Ve,{query:e,setSelectedQuery:r}),G(mt,{style:te.headerText,children:"Data Explorer"}),G(ht,{style:te.contentView,children:G(F,{editable:!0,label:"Data",value:e?.state.data,defaultExpanded:["Data"],activeQuery:e})}),G(mt,{style:te.headerText,children:"Query Explorer"}),G(ht,{style:te.contentView,children:G(F,{label:"Query",value:e,defaultExpanded:["Query","queryKey"],activeQuery:e})})]})}var te=yo.create({flexOne:{flex:1},headerText:{textAlign:"left",backgroundColor:"#EAECF0",padding:6,width:"100%",fontSize:12},contentView:{padding:2}});import{jsx as oe,jsxs as bo}from"react/jsx-runtime";function ze(){let[e,r]=xt(void 0),[o,n]=xt({}),i=Ye(),u=ho(null),b=(k,S)=>{let{y:j,height:se}=k.nativeEvent.layout;n(xe=>({...xe,[S]:{y:j,height:se}}))},R=(k,S)=>{if(k===e){r(void 0);return}if(r(k),u.current&&o[S]){let j=o[S].y;u.current.scrollTo({y:j,animated:!0})}};return bo(Co,{style:Ue.container,children:[oe(mo,{style:Ue.scrollView,ref:u,children:i.map((k,S)=>oe(Ct,{onLayout:j=>b(j,S),children:oe(we,{selected:e,setSelected:()=>R(k,S),query:k})},S))}),e&&oe(Ct,{style:Ue.queryInformation,children:oe(Ie,{selectedQuery:e,setSelectedQuery:r})})]})}var Ue=xo.create({container:{flex:1,width:"100%"},scrollView:{flex:1,flexDirection:"column",width:"100%",height:"25%"},queryInformation:{height:"75%"}});import Zo,{Path as $o}from"react-native-svg";import{useState as Go}from"react";import{ScrollView as jo,View as Lt,StyleSheet as Ko}from"react-native";import{TouchableOpacity as ko,Text as wo,View as So,StyleSheet as To}from"react-native";var Q={purpleMutation:"#D9D6FE",purpleMutationText:"#5925DC",redMutation:"#fecaca",redMutationText:"#b91c1c",yellowMutation:"#FEDF89",yellowMutationText:"#B54708",greenMutation:"#A6F4C5",greenMutationText:"#027A48",grayMutation:"#eaecf0",grayMutationText:"#344054"},bt=({status:e,isPaused:r})=>{let o,n;return r?(o=Q.purpleMutation,n=Q.purpleMutationText):e==="error"?(o=Q.redMutation,n=Q.redMutationText):e==="pending"?(o=Q.yellowMutation,n=Q.yellowMutationText):e==="success"?(o=Q.greenMutation,n=Q.greenMutationText):(o=Q.grayMutation,n=Q.grayMutationText),{backgroundColor:o,textColor:n}};import{jsx as re,jsxs as kt}from"react/jsx-runtime";function Ge({mutation:e,setSelected:r,selected:o}){let n=e.options.mutationKey?JSON.stringify(v(e.options.mutationKey,!1))+" - ":"",i=new Date(e.state.submittedAt).toLocaleString(),u=`${n}${i}`,{backgroundColor:b,textColor:R}=bt({isPaused:e.state.isPaused,status:e.state.status});return kt(ko,{onPress:()=>r(e===o?void 0:e),style:[ce.button,o?.mutationId===e.mutationId&&ce.selected],children:[kt(So,{style:[ce.iconContainer,{backgroundColor:b}],children:[e.state.isPaused&&re(ct,{}),e.state.status==="success"&&re(lt,{}),e.state.status==="error"&&re(ut,{}),e.state.status==="pending"&&re(dt,{})]}),re(wo,{style:[ce.text],children:u})]})}var ce=To.create({button:{flexDirection:"row",alignItems:"center",justifyContent:"flex-start",borderBottomWidth:1,borderBottomColor:"#d0d5dd",backgroundColor:"white"},selected:{backgroundColor:"#eaecf0"},iconContainer:{padding:8,paddingVertical:6},text:{marginLeft:8,fontSize:12,minWidth:18}});import{ScrollView as Eo,Text as pe,View as ye,StyleSheet as Qo}from"react-native";import{View as Ke,Text as fe,ScrollView as Ao,StyleSheet as Vo}from"react-native";import{Text as Lo,View as Mo,StyleSheet as vo}from"react-native";import{jsx as St}from"react/jsx-runtime";var Fo={fresh:"#D1FADF",stale:"#FEF0C7",fetching:"#D1E9FF",paused:"#EBE9FE",inactive:"#F2F4F7"},Do={fresh:"#32D583",stale:"#FDB022",fetching:"#53B1FD",paused:"#9B8AFB",inactive:"#344054"},Bo={fresh:"#027A48",stale:"#B54708",fetching:"#175CD3",paused:"#5925DC",inactive:"#344054"};function je({status:e}){let r=e==="pending"?"fetching":e==="idle"?"inactive":e==="error"?"stale":"fresh",o=Fo[r],n=Do[r],i=Bo[r];return St(Mo,{style:[wt.container,{backgroundColor:o,borderColor:n}],children:St(Lo,{style:[wt.text,{color:i}],children:e})})}var wt=vo.create({container:{padding:8,borderWidth:1,borderRadius:4,margin:4},text:{fontSize:12}});import{jsx as _,jsxs as He}from"react/jsx-runtime";function Ne({selectedMutation:e}){if(e===void 0)return null;let r=new Date(e.state.submittedAt).toLocaleTimeString();return He(Ke,{style:L.container,children:[_(fe,{style:[L.mutationDetailsText,L.bgEAECF0,L.p1],children:"Mutation Details"}),He(Ke,{style:[L.flexRow,L.justifyBetween,L.p1],children:[_(Ao,{horizontal:!0,style:L.flex1,children:_(fe,{style:L.flexWrap,children:`${e.options.mutationKey?v(e.options.mutationKey,!0):"No mutationKey found"}`})}),_(je,{status:e.state.status})]}),He(Ke,{style:[L.flexRow,L.justifyBetween,L.p1],children:[_(fe,{children:"Submitted At:"}),_(fe,{children:r})]})]})}var L=Vo.create({container:{minWidth:200,fontSize:12},mutationDetailsText:{textAlign:"left",backgroundColor:"#EAECF0",padding:4},flexRow:{flexDirection:"row",justifyContent:"space-between",padding:4},justifyBetween:{justifyContent:"space-between"},p1:{padding:4},flex1:{flex:1},flexWrap:{flexWrap:"wrap",alignItems:"center"},bgEAECF0:{backgroundColor:"#EAECF0"}});import{jsx as w,jsxs as Ro}from"react/jsx-runtime";function qe({selectedMutation:e}){return Ro(Eo,{style:I.flex1,children:[w(Ne,{selectedMutation:e}),w(pe,{style:I.textHeader,children:"Variables Details"}),w(ye,{style:I.padding,children:w(F,{label:"Variables",value:e?.state.variables,defaultExpanded:["Variables"]})}),w(pe,{style:I.textHeader,children:"Context Details"}),w(ye,{style:I.padding,children:w(F,{label:"Context",value:e?.state.context,defaultExpanded:["Context"]})}),w(pe,{style:I.textHeader,children:"Data Explorer"}),w(ye,{style:I.padding,children:w(F,{label:"Data",defaultExpanded:["Data"],value:e?.state.data})}),w(pe,{style:I.textHeader,children:"Mutations Explorer"}),w(ye,{style:I.padding,children:w(F,{label:"Mutation",defaultExpanded:["Mutation"],value:e})})]})}var I=Qo.create({flex1:{flex:1},textHeader:{textAlign:"left",backgroundColor:"#EAECF0",padding:4,width:"100%",fontSize:12},padding:{padding:8}});import{useEffect as Wo,useRef as Oo,useState as Po}from"react";import{useQueryClient as Io}from"@tanstack/react-query";import Uo from"fast-deep-equal";function zo(){let e=Io(),[r,o]=Po([]),n=Oo([]);return Wo(()=>{let i=()=>{let b=e.getMutationCache().getAll();setTimeout(()=>{let R=[...e.getMutationCache().getAll()],k=R.map(S=>S.state);Uo(n.current,k)||(n.current=k,o(R))},1)};i();let u=e.getMutationCache().subscribe(i);return()=>u()},[e]),{mutations:r}}var Tt=zo;import{jsx as ge,jsxs as Ho}from"react/jsx-runtime";function $e(){let[e,r]=Go(),{mutations:o}=Tt();return Ho(Lt,{style:Ze.container,children:[ge(jo,{style:Ze.scrollView,children:o.map((n,i)=>ge(Ge,{selected:e,setSelected:r,mutation:n},i))}),e&&ge(Lt,{style:Ze.mutationInfo,children:ge(qe,{selectedMutation:e})})]})}var Ze=Ko.create({container:{flex:1,flexDirection:"column",width:"100%"},scrollView:{flex:1,flexDirection:"column",height:"25%"},mutationInfo:{height:"75%"}});import{jsx as M,jsxs as ne}from"react/jsx-runtime";function Je({setShowDevTools:e}){let[r,o]=No(!0);return ne(J,{style:g.container,children:[M(_e,{onPress:()=>{e(!1)},style:g.closeButton,children:M(Zo,{width:8,height:8,viewBox:"0 0 10 6",fill:"none",children:M($o,{d:"M1 1l4 4 4-4",stroke:"#475467",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"})})}),ne(J,{style:g.devToolsPanel,children:[ne(J,{style:g.devToolsHeader,children:[ne(J,{style:g.tanstackHeader,children:[M(he,{style:g.tanstackText,children:"TANSTACK"}),M(J,{style:g.reactQueryVersion,children:M(he,{style:g.reactQueryVersionText,children:"React Query v5"})})]}),ne(J,{style:g.toggleButtonsContainer,children:[M(_e,{onPress:()=>{o(!0)},style:[g.toggleButton,r===!0?g.toggleButtonActive:g.toggleButtonInactive,{borderTopRightRadius:0,borderBottomRightRadius:0}],children:M(he,{style:[g.toggleButtonText,r===!0?g.toggleButtonTextActive:g.toggleButtonTextInactive],children:"Queries"})}),M(_e,{onPress:()=>{o(!1)},style:[g.toggleButton,r===!1?g.toggleButtonActive:g.toggleButtonInactive,{borderTopLeftRadius:0,borderBottomLeftRadius:0}],children:M(he,{style:[g.toggleButtonText,r===!1?g.toggleButtonTextActive:g.toggleButtonTextInactive],children:"Mutations"})})]})]}),r?M(ze,{}):M($e,{})]})]})}var g=qo.create({container:{flex:1,flexDirection:"column"},closeButton:{position:"absolute",right:-2,top:-17,zIndex:50,width:22,height:15,borderTopLeftRadius:4,borderTopRightRadius:4,backgroundColor:"white",padding:3,margin:3,borderColor:"#98a2b3",borderWidth:1,borderBottomWidth:0,alignItems:"center",justifyContent:"center"},devToolsPanel:{backgroundColor:"white",minWidth:300,flex:1,borderTopColor:"#98a2b3",borderTopWidth:1},devToolsHeader:{padding:8,paddingBottom:6,paddingTop:6,borderColor:"#d0d5dd",borderBottomWidth:2,paddingVertical:1,flexDirection:"row"},tanstackHeader:{marginHorizontal:2,paddingRight:8},tanstackText:{color:"#475467",fontWeight:"bold"},reactQueryVersion:{},reactQueryVersionText:{marginTop:-4,color:"#F97F1E"},toggleButtonsContainer:{flexDirection:"row",marginLeft:1,alignItems:"center"},toggleButton:{borderTopLeftRadius:4,borderBottomLeftRadius:4,padding:4,borderWidth:1,borderColor:"#d0d5dd",paddingHorizontal:2,maxWidth:100,borderRadius:4},toggleButtonActive:{backgroundColor:"#F2F4F7"},toggleButtonInactive:{backgroundColor:"#EAECF0"},toggleButtonText:{paddingRight:4,paddingLeft:4,fontSize:12},toggleButtonTextActive:{color:"#344054"},toggleButtonTextInactive:{color:"#909193"},comingSoonText:{margin:3}});import{jsx as ie}from"react/jsx-runtime";function er({bubbleStyle:e}){let[r,o]=_o(!1);return ie(Mt,{children:r?ie(Mt,{style:me.devTools,children:ie(Je,{setShowDevTools:o})}):ie(Jo,{onPress:()=>{o(!0)},style:[me.touchableOpacityBase,Xo.OS==="ios"?me.touchableOpacityIOS:me.touchableOpacityAndroid,e],children:ie(ft,{})})})}var me=Yo.create({devTools:{position:"absolute",right:0,bottom:0,zIndex:50,width:"100%",height:350},touchableOpacityBase:{position:"absolute",right:1,zIndex:50,width:48,height:48,borderRadius:24,borderWidth:4,borderColor:"#A4C200"},touchableOpacityIOS:{bottom:96},touchableOpacityAndroid:{bottom:64},text:{zIndex:10,color:"white",fontSize:40,padding:24}});export{er as DevToolsBubble}; |
{ | ||
"name": "react-native-react-query-devtools", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "React Query Dev Tools for React Native", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.cjs.js", |
@@ -26,5 +26,2 @@ # React Query Dev Tools (React Native) | ||
- react-native-svg 15.0.0 or above | ||
- One of the following clipboard packages: | ||
- `expo-clipboard` (for Expo projects) | ||
- `@react-native-clipboard/clipboard` (for React Native CLI projects) | ||
@@ -31,0 +28,0 @@ ### Installation |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
0
-100%104028
-3.28%595
-1.98%105
-2.78%