PageSourceSearch

https://ailikeme.ai/static/6748.34e064dd18fb04c99f60.js

js ailikeme.ai collected 2026-10-05 15:30:14 UTC 3,972 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[6748],{46748(e,t,a){a.r(t);var n=a(39471),r=a(32972),l=a(88477),i=a(51794),o=a(86287),c=a(17325),s=a(58908),u=a(8456);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,l,i,o=[],c=!0,s=!1;try{if(l=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=l.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}const m=c.A.Option;a.d(t,["default",0,()=>
1{const e=(0,r.Zp)(),t=d((0,n.useState)([]),2),a=t[0],p=t[1],y=d((0,n.useState)(!1),2),f=y[0],g=y[1],h=d((0,n.useState)([]),2),A=h[0],E=h[1],S=d((0,n.useState)(null),2),b=S[0],v=S[1],k=d((0,n.useState)({current:1,pageSize:10,total:0,next:!1,previous:!1}),2),I=k[0],x=k[1];(0,n.useEffect)(()=>{w(1,10),_()},[]);const _=async()=>{try{const e=await i.tY.GetPartnerApplicationStatusChoices();E(e.data)}catch(e){console.error("Error fetching status choices:",e)}},w=async function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;g(!0);try{const n=await i.tY.GetPartnerApplications(e,t,a,"-submitted_at");p(n.data.results),x({current:e,pageSize:t,total:n.data.count,next:n.data.next,previous:n.data.previous})}catch(e){console.error("Error fetching partner applications:",e)}finally{g(!1)}},C=e=>({Pending:"gold","In Progress":"blue","On Hold":"orange",Rejected:"red",Completed:"green"}[e]||"default"),T=[{title:"NAME",key:"name",render:(e,t)=>n.createElement("span",{style:{fontWeight:500}},t.first_name," ",t.last_name)},{title:"EMAIL",dataIndex:"email",key:"email"},{title:"ORGANIZATION",dataIndex:"organization",key:"organization",render:e=>e||"N/A"},{title:"INTEREST AREAS",dataIndex:"interest_areas_display",key:"interest_areas_display",render:e=>n.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px"}},e&&e.length>0?e.slice(0,2).map((e,t)=>n.createElement(s.A,{key:t,color:"purple",style:{margin:0}},e)):n.createElement("span",null,"N/A"),e&&e.length>2&&n.createElement(s.A,{color:"default",style:{margin:0}},"+",e.length-2," more"))},{title:"STATUS",dataIndex:"status_display",key:"status_display",render:e=>n.createElement(s.A,{color:C(e)},e)},{title:"SUBMITTED DATE",dataIndex:"submitted_at",key:"submitted_at",render:e=>{return(t=e)?new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"N/A";var t}},{title:"ACTION",key:"action",render:(t,a)=>n.createElement(o.A,{type:"primary",icon:n.createElement(u.A,null),onClick:()=>(t=>{e("/admin/partner-applications/".concat(t.id))})(a)},"View")}],N=n.createElement("div",{style:{marginBottom:"16px",display:"flex",gap:"12px",alignItems:"center"}},n.createElement("span",{style:{fontWeight:500}},"Filter by Status:"),n.createElement(c.A,{style:{width:200},placeholder:"All Statuses",allowClear:!0,value:b,onChange:e=>{v(e),w(1,I.pageSize,e)}},A.map(e=>n.createElement(m,{key:e.value,value:e.value},e.label))));return n.createElement("div",{className:"partner-applications-container"},N,n.createElement(l.L3,{title:"Partner Applications",columns:T,data:a,loading:f,pagination:I,onPaginationChange:(e,t)=>
1{w(e,t,b)},isSearchable:!1}))}])}}]);

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.