PageSourceSearch

https://interactor.ai/_next/static/chunks/pages/admin/networks-132670c0a8776ca9.js

js interactor.ai collected 2026-10-05 12:25:07 UTC 23,371 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="416e168c-4228-4666-bccc-40942cd603a8",e._sentryDebugIdIdentifier="sentry-dbid-416e168c-4228-4666-bccc-40942cd603a8")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7119,6532],{65503:function(e,t,r){"use strict";r.d(t,{f:function(){return c}});var n=r(2784),i=r(71860),o=r(31458),l=r(52322);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,l.jsxs)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,l.jsx)(i.y$,{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",stroke:t}),(0,l.jsx)(i.y$,{d:"m9 11 3 3L22 4",stroke:t})]})};s.displayName="CheckCircle";let c=(0,n.memo)((0,o.H)(s))},39006:function(e,t,r){"use strict";r.d(t,{C:function(){return c}});var n=r(2784),i=r(71860),o=r(31458),l=r(52322);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,l.jsxs)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,l.jsx)(i.UL,{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",stroke:t}),(0,l.jsx)(i.y$,{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",stroke:t})]})};s.displayName="Copy";let c=(0,n.memo)((0,o.H)(s))},89560:function(e,t,r){"use strict";r.d(t,{z:function(){return c}});var n=r(2784),i=r(71860),o=r(31458),l=r(52322);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,l.jsxs)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,l.jsx)(i.y$,{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",stroke:t}),(0,l.jsx)(i.y$,{d:"m15 5 4 4",stroke:t})]})};s.displayName="Pencil";let c=(0,n.memo)((0,o.H)(s))},68604:function(e,t,r){"use strict";r.d(t,{v:function(){return c}});var n=r(2784),i=r(71860),o=r(31458),l=r(52322);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,l.jsxs)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,l.jsx)(i.y$,{d:"M5 12h14",stroke:t}),(0,l.jsx)(i.y$,{d:"M12 5v14",stroke:t})]})};s.displayName="Plus";let c=(0,n.memo)((0,o.H)(s))},95546:function(e,t,r){"use strict";r.d(t,{r:function(){return c}});var n=r(2784),i=r(71860),o=r(31458),l=r(52322);let s=e=>{let{color:t="black",size:r=24,...n}=e;return(0,l.jsxs)(i.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,l.jsx)(i.y$,{d:"M3 6h18",stroke:t}),(0,l.jsx)(i.y$,{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",stroke:t}),(0,l.jsx)(i.y$,{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",stroke:t})]})};s.displayName="Trash";let c=(0,n.memo)((0,o.H)(s))},24635:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/networks",function(){return r(18162)}])},38658:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});let{createNetworkQuery:n}=(0,r(94241).e)("query","network")},79624:function(e,t,r){"use strict";r.d(t,{$:function(){return n}});let n=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.length>t?"".concat(e.slice(0,t)).concat(r):e}},99017:function(e,t,r){"use strict";r.d(t,{T:function(){return l}});var n=r(52322),i=r(30813),o=r(87494);let l=()=>(0,n.jsx)(i.G7,{ai:"center",jc:"center",w:"100%",h:"100%",children:(0,n.jsx)(o.$,{})})},80601:function(e,t,r){"use strict";r.d(t,{t:function(){return u}});var n=r(52322),i=r(2784),o=r(36728),l=r(85853),s=r(32748);let c=()=>{let{push:e}=(0,o.c)(),{identity:t,isLoading:r,isAllowed:n,shouldShowSkeleton:c}=(0,s.x)();return(0,i.useEffect)(()=>{!r&&n&&((null==t?void 0:t.isSuperAdmin)||e(l.x.Root.notFound()))},[t,r,n]),{identity:t,isLoading:r,shouldShowSkeleton:c||!(null==t?void 0:t.isSuperAdmin)}};var a=r(99017);let u=e=>{let{Skeleton:t=a.T,children:r}=e,{shouldShowSkeleton:i}=c();return i?(0,n.jsx)(t,{isLoading:!0}):r}},32748:function(e,t,r){"use strict";r.d(t,{x:function(){return s}});var n=r(2784),i=r(27758),o=r(36728),l=r(85853);let s=function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isDisabled:s,redirectUrl:c=l.x.Root.auth()}=r,{getIdentity:a}=(0,i.j)({skip:s}),{push:u}=(0,o.c)(),d=!!(a.loading||r.isLoading),f=null===(e=a.data)||void 0===e?void 0:e.identity,h=null===(t=null==f?void 0:f.isAnonym)||void 0===t||t,p=!!(s||f&&!h);return(0,n.useEffect)(()=>{d||p||u(c)},[p,d,u]),{identity:f,isLoading:d,isAllowed:p,shouldShowSkeleton:d||!p}}},83232:function(e,t,r){"use strict";r.d(t,{A:function(){return s}});var n=r(52322),i=r(47246),o=r(11811),l=r(11556);let s=e=>{let{children:t}=e,r=(0,i.Fg)();return(0,n.jsxs)(o.z,{variant:"accent",jc:"center",br:6,...e,children:[(0,n.jsx)(l.p,{color:r.accentButtonIcon.get()}),t]})}},24883:function(e,t,r){"use strict";r.d(t,{X:function(){return s}});var n=r(52322),i=r(89828),o=r(36728),l=r(16872);let s=e=>{let{onPress:t,...r}=e,{back:s}=(0,o.c)();return(0,n.jsx)(l.$,{p:0,onPress:e=>{if(t){t(e);return}s()},backgroundColor:"transparent",...r,children:(0,n.jsx)(i.w,{size:24})})}},69418:function(e,t,r){"use strict";r.d(t,{r:function(){return c}});var n=r(52322),i=r(92552),o=r(96615);let l=(0,i.z)(o.e,{target:"_blank",color:"$brand",hoverStyle:{opacity:.85},pressStyle:{opacity:.7},textDecorationLine:"none",variants:{variant:{bubble:{fontSize:17,fontWeight:"600",borderWidth:0,borderRadius:20,alignItems:"center",display:"flex",gap:9,backgroundColor:"$interactorSuggestionBubbleBackgroun
1d",paddingVertical:6,paddingHorizontal:16,color:"$interactorSuggestionBubbleForeground",h:36,userSelect:"none",pressStyle:{backgroundColor:"$interactorSuggestionBubbleBackgroundActive",color:"$interactorSuggestionBubbleForeground",borderWidth:0},hoverStyle:{backgroundColor:"$interactorSuggestionBubbleBackgroundHover",color:"$interactorSuggestionBubbleForeground"},disabledStyle:{backgroundColor:"$interactorSuggestionBubbleBackgroundHover",color:"$interactorSuggestionBubbleForeground",borderWidth:0}}}}}),s=e=>{let{disabled:t,onPress:r}=e;return{isDisabled:!1,onPress:e=>{if(t){e.preventDefault();return}null==r||r(e)}}},c=e=>{let{isDisabled:t,onPress:r}=s(e);return(0,n.jsx)(l,{...e,disabled:t,onPress:r})}},57054:function(e,t,r){"use strict";r.d(t,{O:function(){return s}});var n=r(52322),i=r(30813),o=r(21132),l=r(13292);let s=e=>{let{children:t}=e;return(0,n.jsx)(i.G7,{gap:3,mt:12,mb:24-o.D-l.i,children:t})}},13292:function(e,t,r){"use strict";r.d(t,{i:function(){return s},z:function(){return c}});var n=r(52322),i=r(30813),o=r(22490),l=r(41198);let s=6,c=e=>{let{children:t,containerStyle:r,markStyle:c,markIndex:a,orderMarkStyle:u,...d}=e,f=(Array.isArray(t)?t:[t]).filter(e=>!("string"==typeof e&&"\n"===e));return(0,n.jsxs)(i.G7,{fd:"row",ai:"flex-start",mb:s,style:r,children:[(0,o.$)(a)?(0,n.jsxs)(l.x,{...d,mr:5,style:u,children:[a+1,"."]}):(0,n.jsx)(l.x,{...d,fontSize:30,mr:5,style:c,children:"•"}),(0,n.jsx)(l.x,{...d,children:f})]})}},11702:function(e,t,r){"use strict";r.d(t,{s:function(){return l}});var n=r(52322),i=r(2784),o=r(57054);let l=e=>{let{children:t}=e,r=0,l=(0,i.useMemo)(()=>i.Children.map(t,e=>(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{markIndex:r++}):e),[t]);return(0,n.jsx)(o.O,{children:l})}},21132:function(e,t,r){"use strict";r.d(t,{D:function(){return O},X:function(){return z}});var n=r(67862);function i(){let e=(0,n._)(["(?: \n | &NewLine; )"],["(?: \\n | &NewLine; )"]);return i=function(){return e},e}function o(){let e=(0,n._)(["(?:#)"]);return o=function(){return e},e}function l(){let e=(0,n._)(["(?: ^ s* ","+ s+ )"],["(?: ^ \\s* ","+ \\s+ )"]);return l=function(){return e},e}function s(){let e=(0,n._)(["(?: "," .+ $ )"]);return s=function(){return e},e}function c(){let e=(0,n._)(["(?: (",") (","+) (",") )"]);return c=function(){return e},e}let a=String.raw(i()).replaceAll(" ",""),u=String.raw(o()),d=String.raw(l(),u).replaceAll(" ",""),f=String.raw(s(),d).replaceAll(" ",""),h=RegExp(String.raw(c(),f,a,f).replaceAll(" ",""),"gm"),p=/\*\*(.+?)\*\*/g;var v=r(43506),g=r(78753),x=r.n(g),m=r(62750),j=r(89411),w=r(79624);let k=(0,j.Z)([m.Gg,(0,v.Z)()],e=>e.replaceAll(x()({strict:!0}),e=>"[".concat((0,w.$)(e.replace(/^https?:\/\//,""),32,"..."),"](").concat(e,")")));function b(){let e=(0,n._)(["(?: \n | &NewLine; )"],["(?: \\n | &NewLine; )"]);return b=function(){return e},e}function y(){let e=(0,n._)(["(?: [*-+] | d+[.)] )"],["(?: [*\\-+] | \\d+[.)] )"]);return y=function(){return e},e}function S(){let e=(0,n._)(["(?: ^ s* "," s+ )"],["(?: ^ \\s* "," \\s+ )"]);return S=function(){return e},e}function L(){let e=(0,n._)(["(?: "," .*? $)"]);return L=function(){return e},e}function _(){let e=(0,n._)(["(","*) (",")"]);return _=function(){return e},e}let $=String.raw(b()).replaceAll(" ",""),A=String.raw(y()).replaceAll(" ",""),N=String.raw(S(),A).replaceAll(" ",""),C=String.raw(L(),N).replaceAll(" ",""),B=RegExp(String.raw(_(),$,C).replaceAll(" ",""),"gm");var E=r(5455),P=r(99083);let z={formatTrackingNumbers:(0,j.Z)([m.Gg],e=>{let t=[...new Set((0,P.findTracking)(e).map(e=>{let{trackingNumber:t}=e;return t}))].sort((e,t)=>t.length-e.length),r=[];t.forEach(t=>{if(!t)return;let n=e.indexOf(t);for(;-1!==n;){let i=n+t.length,o=RegExp("[\\p{L}\\p{N}]$","u").test(e.slice(0,n))||RegExp("^[\\p{L}\\p{N}]","u").test(e.slice(i)),l=n,s=r.some(e=>l<e.end&&i>e.start);o||s||r.push({start:n,end:i,trackingNumber:t}),n=e.indexOf(t,n+1)}}),r.sort((e,t)=>e.start-t.start);let n=[],i=0;return r.forEach(t=>{let{start:r,end:o,trackingNumber:l}=t;n.push(e.slice(i,r)),n.push("[".concat(l,"](https://www.google.com/search?q=").concat(l,")")),i=o}),n.push(e.slice(i)),n.join("")}),formatInlineLinks:k,formatAdjacentHeadings:e=>e.replaceAll(h,(e,t,r,n)=>"".concat(t,"\n\n").concat(n)),formatParagraphs:e=>e.replace(/\n\n+/gi,"&NewLine;\n\n"),formatLists:e=>e.replaceAll(B,(e,t,r)=>"".concat(t?"\n":t).concat(r)),formatBold:e=>e.replaceAll(p,function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"__".concat(r[0],"__")}),formatPhoneNumbersToLinks:E.m},O=21},3260:function(e,t,r){"use strict";r.d(t,{r:function(){return k}});var n=r(52322),i=r(42066),o=r(41198),l=r(69418),s=r(30813);let c=e=>{let{children:t}=e;return(0,n.jsx)(s.G7,{pl:12,py:8,children:t})},a=e=>{let{children:t,...r}=e;return(0,n.jsx)(o.x,{...r,fontSize:36,lh:44,fontWeight:"700",children:t})},u=e=>{let{children:t,...r}=e;return(0,n.jsx)(o.x,{...r,fontSize:26,lh:32,fontWeight:"700",children:t})};var d=r(13292),f=r(11702);let h=e=>{let{children:t,...r}=e;return(0,n.jsx)(o.x,{...r,children:t})};var p=r(57054);let v=e=>{let{children:t}=e;return(0,n.jsx)(p.O,{children:t})};var g=r(2784),x=r(21132);let m=e=>{let{disabledFormatters:t=[]}=e;return(0,g.useMemo)(()=>Object.entries(x.X).filter(e=>{let[r]=e;return!t.includes(r)}).map(e=>{let[t,r]=e;return r}),[t])};var j=r(5455);let w={overflowWrap:"anywhere",wordBreak:"break-word",wordWrap:"break-word"},k=e=>{let{children:t,disabledFormatters:r,shouldOpenLinksInCurrentTab:s,linkColor:p,style:g,...x}=e,k=m({disabledFormatters:r}),b=g?[w,g]:w,y="function"==typeof s?s:()=>s,S=k.reduce((e,t)=>
1t(e),t||"");return(0,n.jsx)(o.x,{fos:17,lh:21,...x,style:b,children:(0,n.jsx)(i.U,{components:{li:e=>{let{children:t,markIndex:r}=e;return(0,n.jsx)(d.z,{...x,markIndex:r,style:b,children:t})},ul:e=>{let{children:t}=e;return(0,n.jsx)(v,{...x,children:t})},ol:e=>{let{children:t}=e;return(0,n.jsx)(f.s,{...x,children:t})},a:e=>{let{href:t}=e,{children:r}=e,i=(null==r?void 0:r.toString())||"",o=new RegExp("^".concat(j.w.source,"$")).test(i);t||(t=o?"tel:".concat(i):t);let s=y(t)?"_self":"_blank";return(0,n.jsx)(l.r,{href:t,target:s,col:p,style:b,children:r})},blockquote:e=>{let{children:t}=e;return(0,n.jsx)(c,{...x,children:t})},h1:e=>{let{children:t}=e;return(0,n.jsx)(a,{...x,style:b,children:t})},h2:e=>{let{children:t}=e;return(0,n.jsx)(u,{...x,style:b,children:t})},p:e=>{let{children:t}=e;return(0,n.jsx)(h,{...x,style:b,children:t})}},children:S})})}},5455:function(e,t,r){"use strict";r.d(t,{m:function(){return s},w:function(){return l}});var n=r(62750),i=r(89411),o=r(33540);let l=/(?:\+?\d{1,4}[\s-]?)?(?:\(?\d{3}\)?[\s-]?)?\d{3}[\s-]?\d{4}(?:[\s,.]*)/g,s=(0,i.Z)([n.Gg],e=>e.replace(l,e=>{let t=e.trim().replace(/[.,!?]+$/,""),r=e.slice(t.length),n=(0,o.j)(e);return"[".concat(t,"](tel:").concat(n,")").concat(r)}))},45501:function(e,t,r){"use strict";r.d(t,{r:function(){return n}});let n=r(65503).f},56963:function(e,t,r){"use strict";r.d(t,{T:function(){return n}});let n=r(39006).C},30931:function(e,t,r){"use strict";r.d(t,{d:function(){return n}});let n=r(89560).z},11556:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});let n=r(68604).v},56412:function(e,t,r){"use strict";r.d(t,{X:function(){return n}});let n=r(95546).r},89411:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});let n=(e,t)=>r=>{let n=Array.from(r.matchAll(t)||[]),i=[],o=n.reduce((t,n)=>{let o=r.slice(t,n.index),l=n[0],s=e(o);return i.push(s),i.push(l),n.index+l.length},0),l=r.slice(o);return i.push(e(l)),i.join("")},i=(e,t)=>e.reduce(n,t)},16905:function(e,t,r){"use strict";r.d(t,{w:function(){return i}});var n=r(47147);let i=e=>"".concat((0,n.S)()).concat(e)},33540:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});let n=e=>e.trim().replace(/[.,!?]+$/,"").replace(/\s+/g,"")},75719:function(e,t,r){"use strict";r.d(t,{j:function(){return l}});var n=r(52322),i=r(3260),o=r(62008);let l=e=>{let{id:t}=e,[r]=(0,o.N)(t);return(0,n.jsx)(i.r,{col:"$text",fontWeight:"400",children:r})}},36555:function(e,t,r){"use strict";r.d(t,{Y:function(){return i}});var n=r(18249);let i=e=>{let{id:t}=e,[r]=(0,n.S)(t);return r}},62008:function(e,t,r){"use strict";r.d(t,{N:function(){return o}});var n=r(38658);let i=(0,r(74609).g)("network",(0,n.L)({network:{id:!0,description:!0}})),o=e=>{var t,r;let{getNetwork:n}=i({variables:{input:{id:e}}});return[null===(r=n.data)||void 0===r?void 0:null===(t=r.network)||void 0===t?void 0:t.description,n]}},18249:function(e,t,r){"use strict";r.d(t,{S:function(){return o}});var n=r(38658);let i=(0,r(74609).g)("network",(0,n.L)({network:{id:!0,name:!0}})),o=e=>{var t,r;let{getNetwork:n}=i({variables:{input:{id:e}}});return[null===(r=n.data)||void 0===r?void 0:null===(t=r.network)||void 0===t?void 0:t.name,n]}},18162:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return ea}});var n=r(52322),i=r(30813),o=r(24883),l=r(96826),s=r(80601),c=r(37288),a=r(20800),u=r(53749),d=r(11811),f=r(41198),h=r(30931),p=r(50381),v=r.n(p),g=r(2784),x=r(70758),m=r(16905),j=r(45501),w=r(56963),k=r(85853),b=r(38658),y=r(74609);let S=(0,y.g)("network",(0,b.L)({network:{id:!0,reference:!0}})),L=e=>{var t,r;let{getNetwork:n}=S({variables:{input:{id:e}}});return[null===(r=n.data)||void 0===r?void 0:null===(t=r.network)||void 0===t?void 0:t.reference,n]},_=e=>{let{id:t}=e,[r,i]=(0,g.useState)(!1),[o]=L(t),l=(0,g.useMemo)(()=>(0,x.D)(e=>i(e),1500),[]);return(0,n.jsx)(d.z,{variant:"primary",size:24,icon:r?(0,n.jsx)(j.r,{}):(0,n.jsx)(w.T,{}),onPress:e=>{e.stopPropagation(),v()((0,m.w)(k.x.Network.network(o||""))),i(!0),l(!1)}})};var $=r(75719),A=r(36555),N=r(18137),C=r(99362),B=r(56412),E=r(94241);let{createRemoveNetworkMutation:P}=(0,E.e)("mutation","removeNetwork");var z=r(314);let O=(0,z._)("removeNetwork",P({isRemoved:!0})),{createNetworksQuery:R}=(0,E.e)("query","networks"),W=R({edges:{node:{id:!0,name:!0,description:!0,reference:!0},cursor:!0}}),T=(0,y.g)("networks",W),I=e=>(0,n.jsx)(d.z,{variant:"primary",size:24,icon:(0,n.jsx)(B.X,{}),...e}),M=e=>{let{id:t}=e,{t:r}=(0,N.$)(),{removeNetwork:i}=O({refetchQueries:[W]});return(0,n.jsx)(C.s,{title:"Confirm network removal",description:"This action will permanently remove the entire network and all associated Interactors.",Button:I,acceptHandler:e=>{e.stopPropagation(),i.request({input:{id:t}})},acceptText:r("remove",{ns:"common"})})};var U=r(36728);let H=e=>{let{push:t}=(0,U.c)();return{navigateHandler:()=>t(k.x.Admin.network(e))}},V=e=>{let{id:t}=e,{navigateHandler:r}=H(t);return(0,n.jsx)(i.G7,{cur:"pointer",w:"100%",h:"auto",bc:"$mainBackgroun
1d",p:0,bw:0,br:0,onPress:r,pressStyle:{bg:"transparent"},children:(0,n.jsxs)(c.sL,{pressStyle:{backgroundColor:"$mainBackgroundHover"},hoverStyle:{backgroundColor:"$mainBackgroundHover"},f:1,gap:14,px:16,py:8,boc:"$separator",bbw:.5,btw:.5,children:[(0,n.jsxs)(c.FA,{f:1,gap:3,jc:"space-between",children:[(0,n.jsx)(c.sL,{ai:"center",gap:5,children:(0,n.jsx)(f.x,{fontSize:17,fontWeight:"600",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",letterSpacing:0,children:(0,n.jsx)(A.Y,{id:t})})}),(0,n.jsx)(f.x,{fontSize:16,color:"$textContrast",whiteSpace:"wrap",numberOfLines:2,overflow:"hidden",textOverflow:"ellipsis",children:(0,n.jsx)($.j,{id:t})})]}),(0,n.jsxs)(c.sL,{gap:4,ai:"center",children:[(0,n.jsx)(M,{id:t}),(0,n.jsx)(_,{id:t}),(0,n.jsx)(d.z,{variant:"primary",size:24,icon:(0,n.jsx)(h.d,{})})]})]})})};var D=r(47401),G=r(30132),F=r(53966);let X=()=>(0,n.jsx)(D.$D,{h:"auto",bg:"$mainBackground",p:0,borderWidth:0,borderRadius:0,pressStyle:{bg:"transparent"},children:(0,n.jsx)(c.sL,{pressStyle:{backgroundColor:(0,G.t)()?"$none":"$mainBackground"},f:1,gap:14,paddingHorizontal:18,paddingTop:8,children:(0,n.jsxs)(c.FA,{borderBottomColor:"$separator",borderBottomWidth:.5,f:1,gap:3,jc:"space-between",children:[(0,n.jsx)(f.x,{fontSize:17,fontWeight:"700",letterSpacing:.25,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:(0,n.jsx)(F.P,{w:100,bg:"$backgroundPlaceholder"})}),(0,n.jsx)(f.x,{h:39,letterSpacing:.3,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"wrap",children:(0,n.jsx)(F.P,{w:200,bg:"$backgroundPlaceholder"})})]})})});var q=r(83232);let Z=e=>(0,n.jsx)(q.A,{...e,children:"Create Network"});var Q=r(63955),Y=r(78501),J=r(9055),K=r(69876),ee=r(6812),et=r(48601);let{createCreateNetworkMutation:er}=(0,E.e)("mutation","createNetwork"),en=(0,z._)("createNetwork",er({network:{id:!0,name:!0,description:!0}})),ei=()=>{let[e,t]=(0,g.useState)(!1),{createNetwork:r}=en({refetchQueries:[W]}),n=(0,Q.cI)({resolver:(0,ee.X)(et.Ry().shape({name:et.Z_().required(),description:et.Z_().required()}))});(0,g.useEffect)(()=>{e&&n.reset({name:"",description:""})},[e]);let i=n.handleSubmit(e=>{r.request({input:e}),t(!1)});return{methods:n,isCreationModalOpen:e,setIsCreationModalOpen:t,submitHandler:i}},eo=()=>{let{methods:e,isCreationModalOpen:t,setIsCreationModalOpen:r,submitHandler:i}=ei();return(0,n.jsx)(J.u,{title:"Create network",description:"Provide info to create network",Button:Z,isOpen:t,setIsOpen:r,children:(0,n.jsx)(Q.RV,{...e,children:(0,n.jsxs)(c.FA,{gap:8,mb:12,children:[(0,n.jsx)(Y.t,{name:"name",type:K.EB.Text,placeholder:"Name"}),(0,n.jsx)(Y.t,{name:"description",type:K.EB.Textarea,placeholder:"Description"}),(0,n.jsx)(d.z,{variant:"primary",onPress:i,children:"Create"})]})})})};var el=r(64125);let es=()=>{let[e,t]=(0,g.useState)(!1),{getNetworks:r}=T({variables:{input:{limit:el.$M,offset:0}}}),n=(0,g.useMemo)(()=>{var e,t;return null!==(t=null===(e=r.data)||void 0===e?void 0:e.edges.map(e=>e.node))&&void 0!==t?t:[]},[r.data]),i=r.loading;return(0,g.useEffect)(()=>{t(!i)},[i]),{networks:n,isLoading:i,isInitialized:e}},ec=()=>{let{networks:e,isLoading:t,isInitialized:r}=es();return t?(0,n.jsxs)(u.p,{children:[(0,n.jsx)(Z,{disabled:!0}),(0,n.jsx)(X,{}),(0,n.jsx)(X,{}),(0,n.jsx)(X,{}),(0,n.jsx)(X,{})]}):(0,n.jsxs)(c.FA,{h:"100%",children:[(0,n.jsx)(i.G7,{mx:16,my:10,children:(0,n.jsx)(eo,{})}),(0,n.jsx)(a.M,{children:e.map(e=>{let{id:t}=e;return(0,n.jsx)(i.G7,{animation:"quick",enterStyle:r?{scale:0,opacity:0}:null,exitStyle:{scale:0,opacity:0},children:(0,n.jsx)(V,{id:t})},t)})})]})},ea=()=>(0,n.jsx)(s.t,{children:(0,n.jsx)(l.d,{title:"Admin › Networks",leftAction:(0,n.jsx)(o.X,{}),children:(0,n.jsx)(i.G7,{mx:-16,h:"100%",children:(0,n.jsx)(ec,{})})})})},6812:function(e,t,r){"use strict";r.d(t,{X:function(){return c}});var n=r(63955);let i=(e,t,r)=>{if(e&&"reportValidity"in e){let i=(0,n.U2)(r,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},o=(e,t)=>{for(let r in t.fields){let n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?i(n.ref,r,e):n.refs&&n.refs.forEach(t=>i(t,r,e))}},l=(e,t)=>
1{t.shouldUseNativeValidation&&o(e,t);let r={};for(let i in e){let o=(0,n.U2)(t.fields,i),l=Object.assign(e[i]||{},{ref:o&&o.ref});if(s(t.names||Object.keys(e),i)){let e=Object.assign({},(0,n.U2)(r,i));(0,n.t8)(e,"root",l),(0,n.t8)(r,i,e)}else(0,n.t8)(r,i,l)}return r},s=(e,t)=>e.some(e=>e.startsWith(t+"."));function c(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),function(i,s,c){try{return Promise.resolve(function(n,l){try{var a=(t.context,Promise.resolve(e["sync"===r.mode?"validateSync":"validate"](i,Object.assign({abortEarly:!1},t,{context:s}))).then(function(e){return c.shouldUseNativeValidation&&o({},c),{values:r.raw?i:e,errors:{}}}))}catch(e){return l(e)}return a&&a.then?a.then(void 0,l):a}(0,function(e){var t;if(!e.inner)throw e;return{values:{},errors:l((t=!c.shouldUseNativeValidation&&"all"===c.criteriaMode,(e.inner||[]).reduce(function(e,r){if(e[r.path]||(e[r.path]={message:r.message,type:r.type}),t){var i=e[r.path].types,o=i&&i[r.type];e[r.path]=(0,n.KN)(r.path,t,e,r.type,o?[].concat(o,r.message):r.message)}return e},{})),c)}}))}catch(e){return Promise.reject(e)}}}},96615:function(e,t,r){"use strict";r.d(t,{e:function(){return v}});var n=r(99810),i=r(92552),o=r(59213),l=r(14983),s=r.n(l),c=r(19017),a=c.Z?window.location.href:"";class u{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=this._eventCallbacks[e];null!=i&&Array.isArray(i)&&i.map(e=>{e(...r)})}addEventListener(e,t){var r=this;return r._eventCallbacks[e]||(r._eventCallbacks[e]=[t]),r._eventCallbacks[e].push(t),{remove(){var n=r._eventCallbacks[e].filter(e=>e.toString()!==t.toString());r._eventCallbacks[e]=n}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var r=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=r}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(a)}openURL(e,t){1==arguments.length&&(t="_blank");try{return d(e,t),this._dispatchEvent("onOpen",e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){s()("string"==typeof e,"Invalid URL: should be a string. Was: "+e),s()(e,"Invalid URL: cannot be empty")}}var d=(e,t)=>{if(c.Z){var r=new URL(e,window.location).toString();0===r.indexOf("tel:")?window.location=r:window.open(r,t,"noopener")}},f=new u,h=r(52322);let p=(0,i.z)(o.J,{name:"Anchor",tag:"a",accessibilityRole:"link"}),v=p.styleable(({href:e,target:t,...r},i)=>(0,h.jsx)(p,{...r,...n.$L?{href:e,target:t}:{onPress:t=>{r.onPress?.(t),void 0!==e&&f.openURL(e)}},ref:i}))}},function(e){e.O(0,[4403,8753,7455,1800,5029,4232,8981,5281,1129,2066,199,244,9362,8501,2888,9774,179],function(){return e(e.s=24635)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.