1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2186],{70936:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/affiliates/[id]",function(){return t(16528)}])},15135:function(e,n,t){"use strict";var a=t(85893);n.Z=function(e){let{children:n}=e;return(0,a.jsx)("div",{class:"mx-auto container",children:(0,a.jsx)("div",{class:"flex flex-col gap-y-4",children:n})})}},50349:function(e,n,t){"use strict";var a=t(85893),i=t(83473),r=t(7851),s=t(76920),c=t(67294);let l=(0,c.forwardRef)((e,n)=>{let{url:t,search:l,pageSize:o=10,className:u,rowKey:d,pageSizeOptions:f=[10,20,50,100],setCustomLoading:h=()=>{},onLoad:p}=e,g={current:1,pageSize:o,pageSizeOptions:f,showSizeChanger:!0,showTotal:e=>"Total ".concat((0,i.W_)(e))},[x,m]=(0,c.useState)([]),[j,_]=(0,c.useState)(!1),[S,Z]=(0,c.useState)({pagination:g}),w=(e,n,t)=>{Z({pagination:e,filters:n,...t})},y=()=>{_(!0),h&&h(!0),t&&r.api.get(t,{params:{search:JSON.stringify(l),current:S.pagination.current,pageSize:S.pagination.pageSize,sort:S.field?"".concat(S.field,":").concat(S.order||"descend"):void 0}}).then(e=>{let{data:n,total:t}=e.data;_(!1),h&&h(!1),m(n),p&&"function"==typeof p&&p(e.data),Z({...S,pagination:{...g,...S.pagination,total:t}})}).catch(e=>{_(!1),h&&h(!1)})};(0,c.useEffect)(()=>{y()},[S.field,S.order,S.pagination.current,S.pagination.pageSize]);let v=(0,c.useRef)(!0);return(0,c.useEffect)(()=>{if(v.current){v.current=!1;return}S.pagination.current>1?Z(e=>({...e,pagination:{...e.pagination,current:1}})):y()},[l,t]),n&&(n.reload=y,n.loading=j),(0,a.jsx)("div",{className:u,children:(0,a.jsx)(s.Z,{...e,rowKey:e=>"function"==typeof d?d(e):e.id||e._id,pagination:S.pagination,dataSource:x,loading:j,onChange:w,scroll:{x:!0}})})});n.Z=l},16528:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return j}});var a=t(85893),i=t(67294),r=t(9008),s=t.n(r),c=t(11486),l=t(92477),o=t(4393),u=t(71230),d=t(15746),f=t(50349),h=t(15135),p=t(11163);let{Search:g}=c.Z;var x=function(){let{id:e}=(0,p.useRouter)().query,[n]=l.Z.useForm(),t={search:""},[r,s]=(0,i.useState)(t),c=(0,i.useRef)();return(0,a.jsx)(h.Z,{children:(0,a.jsxs)(o.Z,{title:"Daftar Downline",children:[(0,a.jsx)(l.Z,{form:n,onValuesChange:function(e){let t=n.getFieldsValue();e.search?setTimeout(()=>{let e=n.getFieldsValue();s(e)},1e3):s(t)},initialValues:t,children:(0,a.jsxs)(u.Z,{justify:"space-between",children:[(0,a.jsx)(d.Z,{xs:24,md:4}),(0,a.jsx)(d.Z,{xs:24,md:6,children:(0,a.jsx)(l.Z.Item,{name:"search",children:(0,a.jsx)(g,{placeholder:"Search",enterButton:!0})})})]})}),(0,a.jsx)(f.Z,{ref:c,size:"small",columns:[{title:"Email",dataIndex:"email",key:"user"},{title:"Nama",dataIndex:"name",key:"name"},{title:"No. HP",dataIndex:"phone",key:"phone"}],url:"/api/user/affiliates/"+e,search:r})]})})};function m(){return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)(s(),{children:[(0,a.jsx)("title",{children:"Affiliate"}),(0,a.jsx)("meta",{name:"Affiliate",content:"Affiliate Lincah.id"})]}),(0,a.jsx)("main",{children:(0,a.jsx)(x,{})})]})}m.layout="main";var j=m}},function(e){e.O(0,[4310,4393,2808,5742,4533,6920,9774,2888,179],function(){return e(e.s=70936)}),_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.