PageSourceSearch

https://registry.horse/static/js/32.67e499d5.chunk.js

js registry.horse collected 2026-10-05 22:43:41 UTC 12,915 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkhorse_registry=self.webpackChunkhorse_registry||[]).push([[32],{48283:(e,s,a)=>{a.d(s,{A:()=>i});var r=a(93946),n=a(65043),l=a(83003),d=(a(69112),a(70579));const i=e=>{var s,a,i,c,t,m,o,h,x,j,N,u,g,v,F,b,y,U,p,S,w,_,A,K,D,P,C,f,k,E,G,T,q,O,R,H;let{modalState:B,setModalState:W,modalData:I,isOwnerSearchPage:L=!1}=e;(0,l.d4)(e=>e.auth.isAdmin);const M=(0,n.useCallback)(()=>{},[]),Q=(0,n.useCallback)(()=>{W(!1)},[]),[V,z]=(0,n.useState)(!0),[$,J]=(0,n.useState)([]);return(0,n.useEffect)(()=>{var e;null!==I&&void 0!==I&&I.accolades&&(null===(e=I.accolades)||void 0===e?void 0:e.length)>0&&J([...I.accolades].reverse())},[I.accolades]),(0,d.jsxs)(r.zS,{visible:B,size:"lg",unmountOnClose:!0,onShow:M,onClose:Q,children:[(0,d.jsxs)(r.Tc,{children:[(0,d.jsx)(r.E4,{onClose:()=>W(!1),children:(0,d.jsx)(r.lb,{children:"Horse Details"})}),(0,d.jsx)(r.UF,{children:(0,d.jsx)(r.E$,{className:"mb-3 mt-3",children:(0,d.jsxs)(r.W6,{children:[(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Horse Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.name?I.name:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Owner Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.ownerName?I.ownerName:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"ISHA Registration Number"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.registrationNum?I.registrationNum:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Other Registries"})}),I.otherRegistries&&I.otherRegistries.length>0?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(r.UF,{sm:7,children:I.otherRegistries.map((e,s)=>(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{children:(0,d.jsx)(r.sK,{className:"mb-2",children:(0,d.jsx)(r.UF,{sm:12,children:(0,d.jsxs)("div",{className:"text-secondary",children:[(0,d.jsxs)("span",{className:"me-2",children:[e.registryName,":"]}),(0,d.jsx)("span",{children:e.registryNumber})]})})})},s)}))})}):(0,d.jsx)(r.UF,{sm:2,children:(0,d.jsx)(r.sK,{children:(0,d.jsx)(r.UF,{className:"text-secondary",children:"--"})})})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Sex"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.sex?I.sex:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Color"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.color?I.color:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Bred By"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.bredBy?I.bredBy:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"DNA"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.DNA?I.DNA:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"DNA CASE"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.DNA_CASE?I.DNA_CASE:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"DNA Test Date"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.DNA_TEST_DATE?I.DNA_TEST_DATE.substring(0,10):"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Foal Date"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.foalDate?I.foalDate.substring(0,10):"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Markings"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.markings?I.markings:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Pedigree"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.pedigree?I.pedigree:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Verified"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:I.verified?"Yes":"No"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Accolades"})}),I.accolades&&I.accolades.length>0?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(r.UF,{sm:7,children:I.accolades.map((e,s)=>(0,d.jsx)(r.sK,{children:(0,d.jsx)(r.UF,{className:"text-secondary",children:e})},s))})}):(0,d.jsx)(r.UF,{sm:2,children:(0,d.jsx)(r.sK,{children:(0,d.jsx)(r.UF,{className:"text-secondary",children:"--"})})})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{className:"mb-3",children:[(0,d.jsx)(r.UF,{children:(0,d.jsx)("button",{onClick:e=>{z(!0)},style:{width:"100%",background:V?"#768192":"transparent",border:"none",boxShadow:"0 1px 4px 1px rgba(0, 0, 0, .4)",padding:"9px",color:V?"#fff":"#000",fontWeight:500},children:"Sire"})}),(0,d.jsx)(r.UF,{children:(0,d.jsx)("button",{onClick:e=>{z(!1)},style:{width:"100%",background:V?"transparent":"#768192",border:"none",boxShadow:"0 1px 4px 1px rgba(0, 0, 0, .4)",padding:"9px",color:V?"#000":"#fff",fontWeight:500},children:"Dam"})})]}),(0,d.jsx)("hr",{}),V&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Sire Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:null!==I&&void 0!==I&&null!==(s=I.sire)&&void 0!==s&&s.name?null===I||void 0===I||null===(a=I.sire)||void 0===a?void 0:a.name:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Grand Dam(Sire) Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:null!==(i=I.sire)&&void 0!==i&&null!==(c=i.grand_dam)&&void 0!==c&&c.name?null===(t=I.sire)||void 0===t||null===(m=t.grand_dam)||void 0===m?void 0:m.name:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Grand Sire(Sire) Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:null!==(o=I.sire)&&void 0!==o&&null!==(h=o.grand_sire)&&void 0!==h&&h.name?null===(x=I.sire)||void 0===x||null===(j=x.grand_sire)||void 0===j?void 0:j.name:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Great Grand Dam(Sire) Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:null!==(N=I.sire)&&void 0!==N&&null!==(u=N.great_grand_dam)&&void 0!==u&&u.name?null===(g=I.sire)||void 0===g||null===(v=g.great_grand_dam)||void 0===v?void 0:v.name:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Great Grand Sire(Sire) Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:null!==(F=I.sire)&&void 0!==F&&null!==(b=F.great_grand_sire)&&void 0!==b&&b.name?null===(y=I.sire)||void 0===y||null===(U=y.great_grand_sire)||void 0===U?void 0:U.name:"-"})]}),(0,d.jsx)("hr",{})]}),!V&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Dam Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:null!==I&&void 0!==I&&null!==(p=I.dam)&&void 0!==p&&p.name?null===I||void 0===I||null===(S=I.dam)||void 0===S?void 0:S.name:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Grand Dam(Dam) Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:null!==(w=I.dam)&&void 0!==w&&null!==(_=w.grand_dam)&&void 0!==_&&_.name?null===(A=I.dam)||void 0===A||null===(K=A.grand_dam)||void 0===K?void 0:K.name:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Grand Sire(D
1am) Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:null!==(D=I.dam)&&void 0!==D&&null!==(P=D.grand_sire)&&void 0!==P&&P.name?null===(C=I.dam)||void 0===C||null===(f=C.grand_sire)||void 0===f?void 0:f.name:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Great Grand Dam(Dam) Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:null!==(k=I.dam)&&void 0!==k&&null!==(E=k.great_grand_dam)&&void 0!==E&&E.name?null===(G=I.dam)||void 0===G||null===(T=G.great_grand_dam)||void 0===T?void 0:T.name:"-"})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)(r.sK,{children:[(0,d.jsx)(r.UF,{sm:5,children:(0,d.jsx)("h6",{className:"mb-0",children:"Great Grand Sire(Dam) Name"})}),(0,d.jsx)(r.UF,{sm:6,className:"text-secondary",children:null!==(q=I.dam)&&void 0!==q&&null!==(O=q.great_grand_sire)&&void 0!==O&&O.name?null===(R=I.dam)||void 0===R||null===(H=R.great_grand_sire)||void 0===H?void 0:H.name:"-"})]}),(0,d.jsx)("hr",{})]})]})})})]}),(0,d.jsx)(r.If,{children:(0,d.jsx)(r.Q_,{color:"secondary",onClick:()=>W(!1),children:"Close"})})]})}},86391:(e,s,a)=>{a.d(s,{$:()=>c,Fh:()=>l,dd:()=>t,t5:()=>i,w_:()=>d});var r=a(69112),n=a(96300);const l=async e=>{try{return(await(0,n.iq)(r.A.endPoints.adminEndPoints.horseList,e)).data}catch(s){throw s}},d=async e=>{try{return(await(0,n.iq)(r.A.endPoints.adminEndPoints.horseListPending,e)).data}catch(s){throw s}},i=async e=>{try{return(await(0,n.iq)(r.A.endPoints.ownerEndPoints.horseOwnerCreated,e)).data}catch(s){throw s}},c=async e=>{try{return(await(0,n.iq)(r.A.endPoints.ownerEndPoints.horseList,e)).data}catch(s){throw s}},t=async e=>{try{return(await(0,n.iq)(r.A.endPoints.ownerEndPoints.searchHorse,e)).data}catch(s){throw s}}},97032:(e,s,a)=>{a.r(s),a.d(s,{default:()=>j});var r=a(89379),n=a(63251),l=a(93946),d=a(65043),i=a(58786),c=a(83003),t=a(86391),m=a(48283),o=a(70579);const h=()=>(0,o.jsx)("div",{children:"-"});let x=!0;const j=()=>{var e;const s=(0,c.d4)(e=>e.auth.isAdmin),[a,j]=(0,d.useState)(!1),[u,g]=(0,d.useState)({}),[v,F]=(0,d.useState)({pageNo:1,itemsPerPage:10,query:""}),[b,y]=(0,d.useState)(!1),[U,p]=(0,d.useState)({}),[S,w]=(0,d.useState)(!1),[_,A]=(0,d.useState)({});(0,d.useEffect)(()=>(!x&&v.query&&(async()=>{j(!0);try{const e=await(0,t.dd)(v);g(e)}catch(e){}finally{j(!1)}})(),x||v.query||g({}),()=>{x=!1}),[v]);const K=[{name:"Horse Name",selector:e=>e.name?e.name:h()},{name:"Registration Number",minWidth:"180px",selector:e=>e.registrationNum?e.registrationNum:h()},{name:"Sex",selector:e=>e.sex?e.sex:h()},{name:"Color",selector:e=>e.color?e.color:h()},{name:"Owner Name",selector:e=>e.ownerName?e.ownerName:h()},{name:"View",omit:!1,selector:e=>(0,o.jsx)("img",{src:n,alt:"View",role:"button",onClick:()=>P(e),className:"text-secondary",style:{width:"20px"}})}],D=(0,d.useCallback)(()=>{A({}),w(!0)},[]),P=(0,d.useCallback)(e=>{p(e),y(!0)},[]);return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"d-flex mb-3",children:s?(0,o.jsx)(l.Q_,{className:"ms-auto",color:"dark",onClick:D,children:"Add New Horse"}):""}),(0,o.jsx)("div",{className:"rounded overflow-auto",children:(0,o.jsx)(i.Ay,{subHeader:!0,subHeaderComponent:(0,o.jsx)(N,{handleSearch:e=>{F(s=>(0,r.A)((0,r.A)({},s),{},{query:e,pageNo:1}))}}),columns:K,data:u.data||[],progressPending:a,progressComponent:(0,o.jsx)(l.JT,{color:"dark",className:"m-5"}),pagination:!0,paginationServer:!0,responsive:!0,onChangeRowsPerPage:e=>{return s=e,void F((0,r.A)((0,r.A)({},v),{},{pageNo:1,itemsPerPage:s}));var s},paginationDefaultPage:v.pageNo,onChangePage:e=>(e=>{F((0,r.A)((0,r.A)({},v),{},{pageNo:e}))})(e),pageNo:v.pageNo,paginationPerPage:v.itemsPerPage,paginationTotalRows:null===u||void 0===u||null===(e=u.pagination)||void 0===e?void 0:e.totalItems,paginationRowsPerPageOptions:[10,25,50,100],noDataComponent:v.query?(0,o.jsx)("div",{className:"mb-4",children:"There are no records to display"}):(0,o.jsx)("div",{className:"mb-4",children:"Search to get horse list"})})}),(0,o.jsx)(m.A,{modalState:b,setModalState:y,modalData:U,isOwnerSearchPage:true})]})},N=e=>{let{handleSearch:s}=e;const[a,r]=(0,d.useState)("");return(0,o.jsx)(l.sK,{children:(0,o.jsx)(l.UF,{children:(0,o.jsxs)(l.BG,{className:"mt-3 mb-3",children:[(0,o.jsx)(l.OG,{placeholder:"Search here...",type:"search",id:"searchBar","aria-label":"Search Bar","aria-describedby":"basic-addon2",onCh
1ange:e=>{return a=e.target.value,r(a),void(""===a&&s(""));var a}}),(0,o.jsx)(l.Q_,{color:"dark",onClick:()=>{s(a.trim())},children:"Search"})]})})})}}}]);
2//# sourceMappingURL=32.67e499d5.chunk.js.map

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.