PageSourceSearch

https://www.tradingwizard.ai/_next/static/chunks/825.2e85deafab848948.js

js tradingwizard.ai collected 2026-10-01 23:54:19 UTC 6,754 bytes, 1 lines download raw bytes

1!function(){try{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]="276976af-b569-4936-933d-5f9fa58a3ce5",e._sentryDebugIdIdentifier="sentry-dbid-276976af-b569-4936-933d-5f9fa58a3ce5")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[825],{825:(e,t,n)=>{n.r(t),n.d(t,{PACKS_PARAM:()=>m,PACK_LINK_PARAM:()=>w,PacksSection:()=>C,PacksSectionView:()=>P,default:()=>L,packIdFromSearch:()=>k,rowFadeMask:()=>y});var a=n(95155),s=n(12115),l=n(5917),r=n(6191),o=n(74379),i=n(71161),c=n(54373),d=n(40927),u=n(57821),p=n(58876),h=n(36416),f=n(1072),x=n.n(f);function b(e){let{onRetry:t,className:n}=e;return(0,a.jsxs)("div",{className:n?"".concat(n," ").concat(x().box):x().box,role:"status","data-packs-failed":"",children:[(0,a.jsx)("p",{className:x().boxText,children:"Packs could not be loaded."}),(0,a.jsx)("button",{type:"button",onClick:t,className:x().quiet,children:"Try again"})]})}let m="packs",w="pack";function k(e){try{var t;let n=new URLSearchParams(e);return null!=(t=g(n.get(m)))?t:g(n.get(w))}catch(e){return null}}function g(e){let t=String(null!=e?e:"").trim();return/^[A-Za-z0-9_-]{1,48}$/.test(t)?t:null}function y(e){if(!e.start&&!e.end)return;let t=e.start?"transparent 0, #000 ".concat(56,"px"):"#000 0",n=e.end?"#000 calc(100% - ".concat(56,"px), transparent 100%"):"#000 100%";return"linear-gradient(to right, ".concat(t,", ").concat(n,")")}function v(e){let{children:t}=e,n=(0,s.useRef)(null),[l,r]=(0,s.useState)({start:!1,end:!1});(0,s.useEffect)(()=>{let e=n.current;if(!e)return;let t=()=>{let t=e.scrollLeft>2,n=e.scrollLeft+e.clientWidth<e.scrollWidth-2;r(e=>e.start===t&&e.end===n?e:{start:t,end:n})};t(),e.addEventListener("scroll",t,{passive:!0});let a="function"==typeof ResizeObserver?new ResizeObserver(t):null;return null==a||a.observe(e),()=>{e.removeEventListener("scroll",t),null==a||a.disconnect()}},[]);let o=y(l);return(0,a.jsx)("div",{ref:n,className:"flex snap-x snap-mandatory scroll-px-3 gap-4 overflow-x-auto overscroll-x-none -mx-3 px-3 pb-10 pt-1 [scrollbar-width:thin]","data-packs-row":"","data-fade":l.start&&l.end?"both":l.end?"end":l.start?"start":void 0,style:o?{maskImage:o,WebkitMaskImage:o}:void 0,children:t})}function j(e){let{pack:t,onOpen:n}=e,s=(0,h.Xu)();return(0,a.jsxs)("div",{className:"relative w-[168px] shrink-0 snap-start",style:{"--pouch-shadow":"0 1px 2px rgba(16, 18, 20, 0.22), 0 12px 22px -12px rgba(16, 18, 20, 0.5)"},"data-pack-card":t.id,children:[(0,a.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute -bottom-7 left-[-12%] right-[-12%] h-14 rounded-full opacity-30",style:{background:"radial-gradient(50% 50% at 50% 50%, ".concat(d.RB[t.tone]," 0%, transparent 70%)")}}),(0,a.jsx)(c.p,{pack:(0,i.kd)(t),headingLevel:4,tiltStyle:s.style,sheen:s.enabled?(0,a.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:h.kW}):null,onPointerMove:s.onPointerMove,onPointerLeave:s.onPointerLeave,door:n?{label:"Open ".concat(t.name),onOpen:()=>n(t)}:void 0}),t.followed&&(0,a.jsxs)("p",{className:"relative mt-3 flex items-center justify-center gap-1 text-[12px] font-semibold text-[color:var(--wiz-green-text)]",children:[(0,a.jsx)(l.A,{className:"h-3.5 w-3.5",strokeWidth:2.5,"aria-hidden":!0}),"Copying"]})]})}function N(e){let{onNew:t,empty:n}=e;return(0,a.jsxs)("button",{type:"button","data-shape":"card",onClick:t,"data-new-pack-card":"",className:"flex min-h-[176px] w-[168px] shrink-0 snap-start flex-col items-start justify-end gap-2 self-stretch rounded-2xl border border-dashed border-theme p-5 text-left transition-colors hover:bg-theme-elevated active:bg-theme-elevated focus:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--wiz-focus)]",children:[(0,a.jsx)(r.A,{className:"h-5 w-5 text-theme-tertiary","aria-hidden":!0}),n&&(0,a.jsx)("span",{className:"text-[13px] leading-snug text-theme-tertiary",children:"Group your bots into a pack"}),(0,a.jsx)("span",{className:"text-[15px] font-semibold text-theme-primary",children:"New pack"})]})}function S(e){let{shelf:t,title:n,hint:s,children:l}=e;
1return(0,a.jsxs)("div",{className:"mb-6","data-packs-shelf":t,children:[(0,a.jsxs)("div",{className:"mb-3 flex items-baseline justify-between gap-4",children:[(0,a.jsx)("h3",{className:"text-[15px] font-semibold text-theme-primary",children:n}),s&&(0,a.jsx)("p",{className:"text-[12px] text-theme-tertiary",children:s})]}),(0,a.jsx)(v,{children:l})]})}function P(e){let{packs:t,onOpen:n,onNew:s}=e,l=t.filter(e=>"custom"===e.kind),r=t.filter(e=>"preset"===e.kind);return 0===t.length?null:(0,a.jsxs)("section",{"aria-labelledby":"packs-heading","data-packs-section":"",children:[(0,a.jsx)("h2",{id:"packs-heading",className:"sr-only",children:"Packs"}),s&&(0,a.jsxs)(S,{shelf:"yours",title:"Your packs",children:[l.map(e=>(0,a.jsx)(j,{pack:e,onOpen:n},e.id)),(0,a.jsx)(N,{onNew:s,empty:0===l.length})]}),r.length>0&&(0,a.jsx)(S,{shelf:"wiz",title:"Wiz packs",hint:n?"Open one to see its bots":void 0,children:r.map(e=>(0,a.jsx)(j,{pack:e,onOpen:n},e.id))})]})}function C(e){var t;let{basePath:n,onOpenBot:l}=e,[r,i]=(0,s.useState)(null),[c,d]=(0,s.useState)(null),[h,f]=(0,s.useState)(!1),[x,g]=(0,s.useState)(0);(0,s.useEffect)(()=>{let e=new AbortController;return(0,o.t8)(e.signal).then(t=>{e.signal.aborted||i(t)}),()=>e.abort()},[x]),(0,s.useEffect)(()=>{let e=()=>{try{d(k(window.location.search))}catch(e){d(null)}};return e(),window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let y=(0,s.useCallback)(e=>{d(e.id);try{let t=new URLSearchParams(window.location.search);t.delete(w),t.set(m,e.id),window.history.pushState(window.history.state,"","".concat(null!=n?n:window.location.pathname,"?").concat(t.toString()))}catch(e){}},[n]),v=(0,s.useCallback)(()=>{d(null);try{let e=new URLSearchParams(window.location.search);e.delete(m),e.delete(w);let t=e.toString(),a=null!=n?n:window.location.pathname;window.history.replaceState(window.history.state,"",t?"".concat(a,"?").concat(t):a)}catch(e){}},[n]),j=(0,s.useCallback)(()=>g(e=>e+1),[]);if(!r||"absent"===r.state)return null;if("failed"===r.state)return(0,a.jsx)(b,{className:"mb-6",onRetry:j});let N=r.value,S=[...N.filter(e=>"custom"===e.kind),...N.filter(e=>"preset"===e.kind)],C=c&&null!=(t=S.find(e=>e.id===c))?t:null;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P,{packs:N,onOpen:y,onNew:()=>f(!0)}),C&&(0,a.jsx)(u.UN,{packs:S,startId:C.id,onClose:v,onChanged:j,onOpenBot:l},C.id),(0,a.jsx)(p.NewPackSheet,{open:h,onClose:()=>f(!1),onCreated:e=>{f(!1),g(e=>e+1),y(e)}})]})}let L=C}}]);

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.