1"use strict";(self.webpackChunkreact_app=self.webpackChunkreact_app||[]).push([[21027,37631],{21027(e,s,n){n.r(s),n.d(s,{default:()=>x});var t=n(9950),a=n(5093),r=n(17575),i=n(42074),l=n(28429),o=n(4359),c=n(37729),d=n(51960),u=n(95252),m=n(27232),p=n(94919),h=(n(55851),n(89261),n(44414));const x=function(){var e;const[s,n]=(0,t.useState)(1),[x,j]=(0,t.useState)([]),[g,b]=(0,t.useState)([]),[C,v]=(0,t.useState)([0,1,2]),[N,w]=(0,t.useState)([0,1,2,3]),[f,y]=(0,t.useState)(""),k=(0,l.Zp)(),L=JSON.parse(localStorage.getItem("userProfile")),[A,B]=(0,t.useState)(!1),U=(0,t.useContext)(r.A),_=U.Darkmode?"textwhite":"",S=U.Darkmode?"darkbackground":"",M=U.Darkmode?"darksecondry":"",[R,F]=(0,t.useState)(null),[I,T]=(0,t.useState)(1),[P,D]=(0,t.useState)(1),[q,Z]=(0,t.useState)(null),[H,z]=(0,t.useState)(!1),[O,E]=(0,t.useState)(!1),[J,W]=(0,t.useState)(!1),[G,K]=(0,t.useState)(null===L||void 0===L||null===(e=L.user)||void 0===e?void 0:e.businessTypeUser);(0,t.useEffect)(()=>{if("seller"==L.user.role){L.userDetail.userId;localStorage.getItem("token"),localStorage.getItem("checkuserbusiness")}else k("/dashboard")},[]);const V=()=>{z(!0);const e=JSON.parse(localStorage.getItem("userProfile")),n={id:e.userDetail.userId,isType:e.user.businessTypeUser,page:s};o.A.getWithParams("WholesaleUsers",n).then(e=>{j(e.rows),b(e.rows),z(!1),F(e.count)})},Y=(e,s)=>{Z(e),T(s),D(1),W(!0)},Q=(e,s)=>{Z(e),T(s),D(2),W(!0)},X=e=>{B(!0);const s=JSON.parse(localStorage.getItem("userProfile")),n=s.userDetail.userId;let t={};t.type=e,t.requestid=q.id,t.userId=n,t.touserId=q.UserBusinessCommon.id,t.tousername=q.UserBusinessCommon.username,1==s.user.businessTypeUser?t.isUserType=1:t.isUserType=3,c.A.post("requestBusinessUser",t).then(function(s){B(!1),1==e?(m.oR.success("Account request approved successfully!"),1==G?setTimeout(()=>{k("/update-brands/".concat(q.id,"?type=2"))},500):setTimeout(()=>{window.location.reload()},500)):(m.oR.success("Account request rejected successfully!"),setTimeout(()=>{window.location.reload()},500))}).catch(e=>{m.oR.error(e.response.data.message),B(!1)})},$=e=>{B(!0);const s=JSON.parse(localStorage.getItem("userProfile")),n=s.userDetail.userId;let t={};t.type=e,t.requestid=q.id,t.userId=n,t.touserId=q.UserBusinessCommon.id,t.tousername=q.UserBusinessCommon.username,1==s.user.businessTypeUser?t.isUserType=1:t.isUserType=3,c.A.post("badgerequestresponse",t).then(function(s){2==e?m.oR.success("Badge request approved successfully!"):m.oR.success("Badge request rejected successfully!"),B(!1),W(!1),Z(null),T(1),D(1),V(),setTimeout(()=>{},500)}).catch(e=>{m.oR.error(e.response.data.message),B(!1)})};return(0,t.useEffect)(()=>{V()},[s]),(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("section",{className:"dashboard-section ".concat(S),children:(0,h.jsx)("div",{className:"container",children:(0,h.jsxs)("div",{className:"dashboard-box my-boost-section",children:[(0,h.jsx)(a.A,{}),(0,h.jsx)("div",{className:"report-list",style:{width:"100%",maxWidth:"100%"},children:(0,h.jsxs)("div",{className:"main-content price-filter",children:[(0,h.jsx)("h3",{className:"dashboard-heading ".concat(S),children:"Liquidation Buyers"}),(0,h.jsx)("div",{className:"template-title selling-section ".concat(M),style:{padding:"25px 25px 0 0"},children:(0,h.jsxs)("div",{className:"msg_search_bar",children:[(0,h.jsxs)("div",{className:"form_section_search_inner",children:[(0,h.jsx)("span",{children:(0,h.jsx)(d.A,{src:"images/search_bar.svg",alt:"Image"})}),(0,h.jsx)("input",{type:"text",placeholder:"Search by keyword",onChange:e=>(e=>{let s=e.target.value.toLowerCase();const n=g.filter((e,n)=>e.selectedBrandNames.toLowerCase().split(",").some(e=>e.includes(s))||e.UserBusinessCommon.username.toLowerCase().includes(s)||e.UserBusinessCommon.email.toLowerCase().includes(s)||e.UserBusinessCommon.phoneNumber.toLowerCase().includes(s)).filter(e=>N.includes(e.badgeApproved)&&C.includes(e.isApproved));j(n),y(s)})(e)})]}),(0,h.jsx)("div",{className:"form_section_search_inner statusserach",children:(0,h.jsxs)("select",{className:"",onChange:e=>(e=>{let s=[];s=e.target.value?"approved"==e.target.value?[1]:"rejected"==e.target.value?[2]:[0]:[0,1,2];let n=g.filter(e=>s.includes(e.isApproved)&&N.includes(e.badgeApproved));f&&(n=n.filter((e,s)=>e.selectedBrandNames.toLowerCase().split(",").some(e=>e.includes(f))||e.UserBusinessCommon.username.toLowerCase().includes(f)||e.UserBusinessCommon.email.toLowerCase().includes(f)||e.UserBusinessCommon.phoneNumber.toLowerCase().includes(f))),j(n),v(s)})(e),children:[(0,h.jsx)("option",{value:"",children:"User Status"}),(0,h.jsx)("option",{value:"pending",children:"Pending"}),(0,h.jsx)("option",{value:"approved",children:"Approved"}),(0,h.jsx)("option",{value:"rejected",children:"Rejected"})]})}),(0,h.jsx)("div",{className:"form_section_search_inner statusserach",children:(0,h.jsxs)("select",{className:"",onChange:e=>(e=>{let s=[];s=e.target.value?"approved"==e.target.value?[2]:"rejected"==e.target.value?[3]:[0,1]:[0,1,2,3];let n=g.filter(e=>s.includes(e.badgeApproved)&&C.includes(e.isApproved));f&&(n=n.filter((e,s)=>e.selectedBrandNames.toLowerCase().split(",").some(e=>e.includes(f))||e.UserBusinessCommon.username.toLowerCase().includes(f)||e.UserBusinessCommon.email.toLowerCase().includes(f)||e.UserBusinessCommon.phoneNumber.toLowerCase().includes(f))),j(n),w(s)})(e),children:[(0,h.jsx)("option",{value:"",children:"Badge Status"}),(0,h.jsx)("option",{value:"pending",children:"Pending"}),(0,h.jsx)("option",{value:"approved",children:"Approved"}),(0,h.jsx)("option",{value:"rejected",children:"Rejected"})]})})]})}),(0,h.jsx)("div",{className:"lasting-tables-form margin-top30",children:(0,h.jsx)("div",{className:"main-content price-filter",id:"activelist",children:(0,h.jsx)("section",{className:"myprofile-info-section",children:(0,h.jsx)("div",{className:"myprofile-info-box",children:(0,h.jsxs)("div",{className:"myprofile-info-option-detail-box listing-act",children:[(0,h.jsx)("div",{className:"list-head-bar padding-bottom10 d-flex align-center space-between",children:(0,h.jsx)("div",{className:"analysis-head",children:(0,h.jsx)("h4",{children:"Users"})})}),(0,h.jsx)("div",{className:"tabling tabling-listing",children:(0,h.jsx)("div",{className:"table-wrapper",children:(0,h.jsxs)("table",{children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{children:[(0,h.jsx)("th",{children:"Username"}),(0,h.jsx)("th",{children:"City"}),(0,h.jsx)("th",{children:"State"}),(0,h.jsx)("th",{children:"Zip Code"}),(0,h.jsx)("th",{children:"Company Name"}),(0,h.jsx)("th",{children:"Status"}),(0,h.jsx)("th",{children:"Badge Request"}),1==G?(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("th",{children:"Action"})}):(0,h.jsx)(h.Fragment,{})]})}),(0,h.jsxs)("tbody",{children:[H?(0,h.jsx)("tr",{className:"w-100 text-center text-danger position-absolute bg-secondry opacity-5 bus-spinner-1",children:(0,h.jsx)("td",{className:"w-100 text-center text-danger position-absolute bg-secondry opacity-5 bus-spinner-1",children:(0,h.jsx)(u.A,{animation:"border",role:"status",size:"sm",children:(0,h.jsx)("span",{className:"visually-hidden",children:"Loading..."})})})}):(0,h.jsx)(h.Fragment,{children:x.length>0&&x.map((e,s)=>{let n=e.isApproved,t=e.badgeApproved,a=s;return(0,h.jsxs)("tr",{children:[(0,h.jsx)("td",{style:{width:"10%"},children:e.UserBusinessCommon.username}),(0,h.jsx)("td",{style:{width:"20%"},children:e.UserBusinessCommon.cityName?e.UserBusinessCommon.cityName:"N/A"}),(0,h.jsx)("td",{children:e.UserBusinessCommon.stateName?e.UserBusinessCommon.stateName:"N/A"}),(0,h.jsx)("td",{children:e.UserBusinessCommon.zipCode?e.UserBusinessCommon.zipCode:"N/A"}),(0,h.jsx)("td",{children:e.UserBusinessCommon.companyName?e.UserBusinessCommon.companyName:"N/A"}),(0,h.jsx)("td",{children:(0,h.jsx)("div",{class:"action-box",children:(0,h.jsx)("div",{class:"action-usrbtn",style:{width:"100px"},children:0==n?(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("div",{className:"accept-rejectbtnn",children:[(0,h.jsx)("span",{className:"acceptclsbtnn",title:"Ap
1prove",onClick:()=>{Y(e,1)},children:"Accept"}),(0,h.jsx)("span",{className:"rejectclsbtnn",title:"Reject",onClick:()=>{Y(e,2)},children:"Reject"})]})}):1==n?(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("span",{className:"accepttbleclass",children:"Approved"})}):(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("span",{className:"rejecttbleclass",children:"Rejected"})})})})}),(0,h.jsx)("td",{children:(0,h.jsx)("div",{class:"action-box",children:(0,h.jsx)("div",{class:"action-usrbtn",children:0==n?(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("span",{className:"pendingbleclass",children:"Not available"})}):1==n?(0,h.jsx)(h.Fragment,{children:0==t?(0,h.jsx)("span",{className:"pendingbleclass",children:"Request available"}):1==t?(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("div",{className:"accept-rejectbtnn",children:[(0,h.jsx)("span",{className:"acceptclsbtnn",title:"Approve",onClick:()=>{Q(e,2)},children:"Accept"}),(0,h.jsx)("span",{className:"rejectclsbtnn",title:"Reject",onClick:()=>{Q(e,3)},children:"Reject"})]})}):2==t?(0,h.jsx)("span",{className:"accepttbleclass",children:"Approved"}):(0,h.jsx)("span",{className:"rejecttbleclass",children:"Rejected"})}):(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("span",{className:"rejecttbleclass",children:"Rejected"})})})})}),1==G?(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("td",{children:1==n||0==n?(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(i.N_,{to:"/update-brands/".concat(e.id,"?type=2"),children:(0,h.jsx)("svg",{style:{cursor:"pointer",marginLeft:"10px"},xmlns:"http://www.w3.org/2000/svg",width:"20",height:"15",viewBox:"0 0 20 15",fill:"none",children:(0,h.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.0026 0C14.1386 0.00279416 17.8525 2.70289 19.9385 7.22384C20.0205 7.39988 20.0205 7.59919 19.9385 7.77523C17.8535 12.2971 14.1386 14.9972 10.0026 15H9.99662C5.86068 14.9972 2.14672 12.2971 0.0607492 7.77523C-0.0202497 7.59919 -0.0202497 7.39988 0.0607492 7.22384C2.14672 2.70289 5.86168 0.00279416 9.99662 0H10.0026ZM9.99963 1.39708C6.56367 1.39801 3.42971 3.67339 1.56973 7.49953C3.42971 11.3266 6.56267 13.602 9.99963 13.6029C13.4366 13.602 16.5695 11.3266 18.4295 7.49953C16.5695 3.67339 13.4366 1.39801 9.99963 1.39708ZM9.99933 3.85669C12.1563 3.85669 13.9113 5.49128 13.9113 7.50028C13.9113 9.50835 12.1563 11.142 9.99933 11.142C7.84235 11.142 6.08837 9.50835 6.08837 7.50028C6.08837 5.49128 7.84235 3.85669 9.99933 3.85669ZM9.99933 5.25377C8.66934 5.25377 7.58836 6.26153 7.58836 7.50028C7.58836 8.73809 8.66934 9.74492 9.99933 9.74492C11.3293 9.74492 12.4113 8.73809 12.4113 7.50028C12.4113 6.26153 11.3293 5.25377 9.99933 5.25377Z",fill:"#0083E2"})})})}):(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("span",{title:"Not Allowed",children:(0,h.jsxs)("svg",{style:{cursor:"not-allowed",marginLeft:"10px"},width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,h.jsx)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,h.jsx)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,h.jsxs)("g",{id:"SVGRepo_iconCarrier",children:[(0,h.jsx)("path",{d:"M14.83 9.17999C14.2706 8.61995 13.5576 8.23846 12.7813 8.08386C12.0049 7.92926 11.2002 8.00851 10.4689 8.31152C9.73758 8.61453 9.11264 9.12769 8.67316 9.78607C8.23367 10.4444 7.99938 11.2184 8 12.01C7.99916 13.0663 8.41619 14.08 9.16004 14.83",stroke:"#bb2124","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,h.jsx)("path",{d:"M12 16.01C13.0609 16.01 14.0783 15.5886 14.8284 14.8384C15.5786 14.0883 16 13.0709 16 12.01",stroke:"#bb2124","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,h.jsx)("path",{d:"M17.61 6.39004L6.38 17.62C4.6208 15.9966 3.14099 14.0944 2 11.99C6.71 3.76002 12.44 1.89004 17.61 6.39004Z",stroke:"#bb2124","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,h.jsx)("path",{d:"M20.9994 3L17.6094 6.39",stroke:"#bb2124","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,h.jsx)("path",{d:"M6.38 17.62L3 21",stroke:"#bb2124","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,h.jsx)("path",{d:"M19.5695 8.42999C20.4801 9.55186 21.2931 10.7496 21.9995 12.01C17.9995 19.01 13.2695 21.4 8.76953 19.23",stroke:"#bb2124","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})]})})})})}):(0,h.jsx)(h.Fragment,{})]},a)})}),!H&&0==x.length&&(0,h.jsx)("tr",{children:(0,h.jsx)("td",{colspan:1==G?"8":"7",className:"text-center ".concat(_),children:"No data found"})})]})]})})}),(0,h.jsx)(p.A,{Addseparator:!0,currentpage:s,limit:5,Maxpagerange:5,Minpagerange:2,TotalProducts:R,onChange:e=>{n(e)}
1,prevload:null,nextload:null,showbtn:!1})]})})})})})]})}),(0,h.jsx)("div",{id:"report-item-model",className:"reportmodel ","data-id":"clsmdl",style:J?{display:"block"}:{display:"none"},onClick:e=>{(e=>{"clsmdl"==e.target.dataset.id&&W(!1)})(e)},children:(0,h.jsxs)("div",{className:"report-item-model-content my-ticket-close","data-id":"clsmdl",children:[(0,h.jsx)("span",{className:"close",onClick:()=>{W(!1)},children:"\xd7"}),(0,h.jsxs)("div",{className:"form-container-box",children:[(0,h.jsx)("div",{className:"text-center mysvgback",children:(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"35",height:"39",viewBox:"0 0 35 39",fill:"none",children:(0,h.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.0684 13.1036C31.8516 13.1699 32.4356 13.8739 32.373 14.6792C32.3616 14.8118 31.3339 27.8985 30.7423 33.3878C30.3744 36.7945 28.1862 38.8674 24.883 38.9298C22.3554 38.9747 19.9169 39 17.5334 39C14.964 39 12.4592 38.9708 9.98082 38.9181C6.81038 38.8537 4.61648 36.7399 4.2581 33.4015C3.6608 27.8634 2.63875 14.8099 2.62927 14.6792C2.5648 13.8739 3.14882 13.168 3.93195 13.1036C4.70371 13.0822 5.40151 13.6399 5.46408 14.4433C5.47013 14.5279 5.88796 19.8586 6.34327 25.1328L6.43473 26.1853C6.66405 28.8069 6.89652 31.3259 7.08533 33.0797C7.28822 34.9771 8.28372 35.956 10.0396 35.9931C14.7801 36.0964 19.6173 36.1023 24.8318 36.0048C26.6977 35.9677 27.7065 35.0083 27.915 33.0661C28.5029 27.6177 29.5268 14.5759 29.5382 14.4433C29.6008 13.6399 30.2929 13.0783 31.0684 13.1036ZM21.5131 0C23.2538 0 24.784 1.20707 25.2334 2.93674L25.7151 5.39573C25.8707 6.20182 26.5586 6.7905 27.3551 6.80343L33.5779 6.80365C34.3629 6.80365 35 7.45886 35 8.26617C35 9.07349 34.3629 9.7287 33.5779 9.7287L27.4106 9.7284C27.4011 9.7286 27.3915 9.7287 27.3818 9.7287L27.3356 9.72675L7.6637 9.72846C7.64841 9.72862 7.6331 9.7287 7.61778 9.7287L7.58858 9.72675L1.42215 9.7287C0.637122 9.7287 0 9.07349 0 8.26617C0 7.45886 0.637122 6.80365 1.42215 6.80365L7.64357 6.8017L7.83512 6.78923C8.54864 6.69403 9.14163 6.13674 9.28643 5.39573L9.74721 3.0245C10.2156 1.20707 11.7458 0 13.4865 0H21.5131ZM21.5131 2.92504H13.4865C13.0314 2.92504 12.6313 3.239 12.5157 3.68946L12.0738 5.97099C12.0177 6.25998 11.9359 6.53848 11.8313 6.80418H23.1689C23.0641 6.53848 22.9822 6.25998 22.9258 5.97099L22.465 3.59975C22.3683 3.239 21.9682 2.92504 21.5131 2.92504Z",fill:"white"})})}),(0,h.jsx)("h1",{style:{marginBottom:"0"},children:"Are you sure"}),(0,h.jsx)("div",{className:"",children:1==P?(0,h.jsxs)("h5",{className:"min-dessc",children:["You want to ",1==I?"approve":"reject"," the user?"]}):(0,h.jsxs)("h5",{className:"min-dessc",children:["You want to ",1==I?"approve":"reject"," the badge request?"]})}),(0,h.jsxs)("div",{style:{display:"flex",justifyContent:"center",marginTop:"16px",marginBottom:"20px"},children:[(0,h.jsx)("button",{className:"view-tick-btn",onClick:()=>{W(!1)},children:"Close"}),A?(0,h.jsx)("button",{className:"back-to-browse",children:(0,h.jsx)(u.A,{animation:"border",role:"status",size:"sm",children:(0,h.jsx)("span",{className:"visually-hidden",children:"Loading..."})})}):(0,h.jsx)(h.Fragment,{children:1==P?1==I?(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("button",{className:"back-to-browse",onClick:()=>{X(1)},children:"Approve"})}):(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("button",{className:"back-to-browse",onClick:()=>{X(2)},children:"Reject"})}):2==I?(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("button",{className:"back-to-browse",onClick:()=>{$(2)},children:"Approve"})}):(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("button",{className:"back-to-browse",onClick:()=>{$(3)},children:"Reject"})})})]})]})]})}),O&&(0,h.jsx)("div",{className:"landing-spinner-bg",children:(0,h.jsxs)("div",{className:"landing-loader",children:[(0,h.jsx)("div",{className:"logo_name",children:(0,h.jsx)("img",{src:"https://thehomeshowlive.s3-accelerate.amazonaws.com/Assets/Product/TheHome_SHOW.png"})}),(0,h.jsx)("div",{className:"loader-line"})]})})]})})})})}},94919(e,s,n){n.d(s,{A:()=>l});var t=n(9950),a=n(17575),r=n(44414);const i=e=>{let{direction:s}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 6 10",fill:"none","aria-hidden":"true",children:"prev"===s?(0,r.jsx)("path",{d:"M5.51758 8.5183L2.0692 5.06992L5.51758 1.62154L4.8279 0.242188L0.000167847 5.06992L4.8279 9.89766L5.51758 8.5183Z",fill:"currentColor"}
1):(0,r.jsx)("path",{d:"M0.0878906 8.5183L3.53627 5.06992L0.0878906 1.62154L0.777567 0.242188L5.6053 5.06992L0.777567 9.89766L0.0878906 8.5183Z",fill:"currentColor"})})};const l=function(e){let{currentpage:s,limit:n,Maxpagerange:l,Minpagerange:o,Addseparator:c,TotalProducts:d,onChange:u,classes:m,Theme:p}=e;const h=(0,t.useContext)(a.A),x=(null===h||void 0===h?void 0:h.Darkmode)||"true"===p||!0===p,j=Math.max(0,Math.ceil((Number(d)||0)/(Number(n)||1))),g=Math.min(Math.max(Number(s)||1,1),Math.max(j,1)),b=(e,s)=>{s&&s.preventDefault(),e<1||e>j||e===g||"function"===typeof u&&u(e)},C=e=>s=>{"Enter"!==s.key&&" "!==s.key&&"Spacebar"!==s.key||(s.preventDefault(),b(e))},v=(0,t.useMemo)(()=>{const e=Math.max(3,Number(l)||5),s=Math.min(Math.max(1,Number(o)||1),3),n=!1!==c,t=[];if(j<=1)return t;const a=e=>{t.some(s=>"page"===s.type&&s.pagenumbr===e)||t.push({pagenumbr:e,type:"page"})},r=()=>{var e;n&&"seprator"!==(null===(e=t[t.length-1])||void 0===e?void 0:e.type)&&t.push({pagenumbr:"...",type:"seprator"})};if(j<=e+2*s){for(let e=1;e<=j;e++)a(e);return t}const i=s+1,d=j-s;let u=Math.max(g-Math.floor(e/2),i),m=Math.min(u+e-1,d);m-u+1<e&&(u=Math.max(i,m-e+1));for(let l=1;l<=s;l++)a(l);u>i&&r();for(let l=u;l<=m;l++)a(l);m<d&&r();for(let l=j-s+1;l<=j;l++)a(l);return t},[g,j,l,o,c]);if(j<1)return null;const N=g<=1,w=g>=j;return(0,r.jsx)("nav",{className:"text-center table-pagination hs-pagination ".concat(x?"hs-pagination--dark":""," ").concat(m||""),"aria-label":"Pagination",children:(0,r.jsxs)("div",{className:"pagination hs-pagination__list",children:[j>1&&(0,r.jsx)("span",{className:"pointer hs-pagination__nav hs-pagination__nav--prev ".concat(N?"is-disabled":""),role:"button",tabIndex:N?-1:0,"aria-label":"Previous page","aria-disabled":N,onClick:()=>b(g-1),onKeyDown:C(g-1),children:(0,r.jsx)(i,{direction:"prev"})}),1===j?(0,r.jsx)("span",{className:"pagination-page-singleton hs-pagination__page is-current active","aria-current":"page",children:"1"}):v.map((e,s)=>{if("page"!==e.type)return(0,r.jsx)("p",{className:"separatorsep hs-pagination__ellipsis","aria-hidden":"true",children:e.pagenumbr},"separator-".concat(s));const n=g===e.pagenumbr;return(0,r.jsx)("a",{className:"hs-pagination__page ".concat(n?"is-current active":""),role:"button",tabIndex:0,"aria-label":"Page ".concat(e.pagenumbr),"aria-current":n?"page":void 0,onClick:s=>b(e.pagenumbr,s),onKeyDown:C(e.pagenumbr),children:e.pagenumbr},e.pagenumbr)}),j>1&&(0,r.jsx)("span",{className:"pointer hs-pagination__nav hs-pagination__nav--next ".concat(w?"is-disabled":""),role:"button",tabIndex:w?-1:0,"aria-label":"Next page","aria-disabled":w,onClick:()=>b(g+1),onKeyDown:C(g+1),children:(0,r.jsx)(i,{direction:"next"})})]})})}},51960(e,s,n){n.d(s,{A:()=>h});var t=n(89379),a=n(80045),r=n(48738),i=n.n(r),l=n(9950),o=n(11942),c=n.n(o),d=n(44089),u=n(44414);const m=["bsPrefix","className","fluid","rounded","roundedCircle","thumbnail"],p=(c().string,c().bool,c().bool,c().bool,c().bool,l.forwardRef((e,s)=>{let{bsPrefix:n,className:r,fluid:l=!1,rounded:o=!1,roundedCircle:c=!1,thumbnail:p=!1}=e,h=(0,a.A)(e,m);return n=(0,d.oU)(n,"img"),(0,u.jsx)("img",(0,t.A)((0,t.A)({ref:s},h),{},{className:i()(r,l&&"".concat(n,"-fluid"),o&&"rounded",c&&"rounded-circle",p&&"".concat(n,"-thumbnail"))}))}));p.displayName="Image";const h=p},55851(){},89261(){}}]);
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.