1import{d as L,a as O,c3 as h,k as A,f as E,x as S,j as b,a4 as y,aF as I,Y as N}from"./index-878ce38c.js";import{r as j}from"./react-0e2a0c96.js";import"./images-0c2231a1.js";const C=()=>{const{init:i}=L(),[t]=O(),p=h("app_list",[],{listenOnChange:!1}),o=A(),d=Number(t.get("app_id")),n=E(),s=n.byId[d],c=S("app_role",{},{listenOnChange:!1});return j.useEffect(()=>{if(n.isLoading||!i)return;if(!s)return o("/not-found");const{app_point_amount:_,app_item_id:l,rebate_card_id:f,item:P,topup_only:g}=Object.fromEntries(t.entries()),m=!!g,e=new URLSearchParams,a=I[N];p(a?m?[a]:[a,s.app_id]:[s.app_id]),a&&(m||s.app_id===a)?(e.set("app","".concat(a)),c(r=>({...r,[a]:0}))):e.set("app","".concat(s.app_id)),Object.entries({app_point_amount:_,app_item_id:l,rebate_card_id:f,item:P}).forEach(([r,u])=>{u&&e.set(r,"".concat(u))}),o("/?".concat(e),{replace:!0})},[i,s,n.isLoading,o,p,c,t]),b(y,{className:"m-auto"})};export{C as default};
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.