PageSourceSearch

https://www.codelinaro.org/_next/static/chunks/3bfbqxgwdhjeq.js

js codelinaro.org collected 2026-10-02 05:00:00 UTC 24,221 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49857,e=>{"use strict";var r=e.i(91398),t=e.i(91788);e.i(43103),e.s(["default",0,function(e){let[s,a]=(0,t.useState)(0),l=((e=4,r=0)=>{let[s,a]=(0,t.useState)("");return(0,t.useEffect)(()=>{for(var r="",t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],s=0;s<e;s++)r+=t[Math.floor(36*Math.random())];a(r.toLowerCase())},[r]),s})(4,s),i=()=>"rgb("+Math.floor(256*Math.random())+","+Math.floor(256*Math.random())+","+Math.floor(256*Math.random())+")";return(0,t.useEffect)(()=>{0!==l.length&&((()=>{var e,r=document.getElementById("mycanvas"),t=r.getContext("2d");t.clearRect(0,0,r.width,r.height),e=r.width,r.width=1,r.width=e,t.font="34px Lato",t.fillStyle="#495057",t.textAlign="center",t.fillText(l,80,46);for(var s=0;s<=5;s++)t.strokeStyle=i(),t.beginPath(),t.moveTo(160*Math.random(),70*Math.random()),t.lineTo(160*Math.random(),70*Math.random()),t.stroke();for(var a=0;a<=30;a++){t.strokeStyle=i(),t.beginPath();var n=160*Math.random(),o=70*Math.random();t.moveTo(n,o),t.lineTo(n+1,o+1),t.stroke()}})(),e.onChange(l))},[l]),(0,r.jsx)("canvas",{width:"160",height:"70",id:"mycanvas",style:{border:"1px solid #dee2e6",borderRadius:"4px",cursor:"pointer"},onClick:()=>a(e=>e+1)})}],49857)},19882,58251,13208,6797,e=>{"use strict";var r=e.i(91398),t=e.i(91788),s=e.i(50360),a=e.i(13169),l=e.i(47317),i=e.i(67525),n=e.i(47403),o=e.i(92751),c=e.i(36872),d=e.i(47671),u=e.i(60544),h=e.i(25722),g=e.i(12624),m=e.i(70712),p=e.i(89256),j=e.i(3634),x=e.i(67267),f=e.i(52114),b=e.i(98846),v=e.i(10856),N=e.i(59270),y=e.i(52741),w=e.i(61848),S=e.i(49016),C=e.i(43103);let $={display:"inline-block",background:"#99cd33",color:"#41474c"},k=function(e){let s=e.project,{getAccessTokenSilently:a}=(0,c.useAuth0)();var[l,i]=(0,t.useState)([]),[n,o]=(0,t.useState)({loading:!1,error:!1,errorMessage:null});let d=async()=>{o({loading:!0,error:!1,errorMessage:null}),await (0,v.sleep)(500),(0,b.fetch_get)(`projects/${s.projectSlug}/links?parentOrganization=${s.parentOrganization}`).then(e=>{i(e.data),o({loading:!1,error:!1,errorMessage:null})}).catch(e=>{o({loading:!1,error:!0,errorMessage:`${e}`}),console.log(`Error while getting workgroup links list: ${e}`)})};return(0,t.useEffect)(()=>{C.default.isNil(s.projectSlug)||C.default.isNil(s.parentOrganization)||"archived"!==s.status&&d()},[s.projectSlug,s.projectSlug]),(0,r.jsx)(t.default.Fragment,{children:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{children:[n.loading&&!n.error&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"spinner-grow spinner-grow-sm",role:"status"})," Loading links.."]}),!n.loading&&!n.error&&(0,r.jsx)(r.Fragment,{children:l.length>0&&(0,r.jsx)(r.Fragment,{children:l.map((e,t)=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{className:"badge bg-success text-white",href:e.url,target:"_blank",style:$,children:e.display_text},`ProjectLink${t}`)," "]}))})}),!n.loading&&n.error&&(0,r.jsx)("div",{className:"alert alert-danger py-1",role:"alert",children:n.errorMessage})]})})})};e.s(["default",0,k],58251);let P=(0,t.createContext)(),T=({children:e})=>{var[s,a]=t.default.useState(0),[l,i]=t.default.useState(null),[n,o]=t.default.useState(!1);return(0,r.jsx)(P.Provider,{value:{listReloadCounter:s,successData:l,setSuccessData:i,isNowContributor:n,setIsNowContributor:o},children:e})};e.s(["CommunityProjectContext",0,P,"CommunityProjectContextProvider",0,T],13208),e.i(97482);var F=e.i(83945),L=e.i(40085),E=e.i(95035),M=e.i(44343),_=e.i(49857);let O=function(e){let{currentOrg:{role:{isSuperAdmin:s}}}=(0,g.useUserOrgs)(),{isAuthenticated:a,user:l}=(0,c.useAuth0)(),i=(0,t.useContext)(P);var[n,o]=(0,t.useState)({}),[d,u]=(0,t.useState)({});let[h,m]=(0,t.useState)(""),[p,j]=(0,t.useState)("");var[x,f]=(0,t.useState)({loading:!1,error:!1,message:null}),[N,y]=(0,t.useState)(null),[w,S]=(0,t.useState)(!1),[$,k]=(0,t.useState)(!1);let{getAccessTokenSilently:T}=(0,c.useAuth0)(),F=e=>{let r=JSON.parse(JSON.stringify(n));r[e.target.name]="checkbox"===e.target.type?e.target.checked:e.target.value,o(r)},L=e=>{S(e.target.checked)},E=()=>a?$!==w:JSON.stringify(n)!==JSON.stringify(d),M=()=>{var e={firstName:"",lastName:"",email:"",username:""};o(e),u(e),y(null)},O=async()=>{var r=(()=>
1{if(!a){if(C.default.isEmpty(n.firstName))return"Firstname is required";else if(C.default.isEmpty(n.lastName))return"Lastname is required";else if(C.default.isEmpty(n.username))return"Username is required";else if(C.default.isEmpty(n.email))return"Email is required";else if(!(0,v.isValidEmail)(n.email))return"Email should be valid";else if(h!==p)return"Incorrect captch code entered"}return w?null:"Please accept to join the project"})();y(r),null===r&&(f({loading:!0,error:null,message:"Saving the changes"}),a?T().then(r=>(0,b.fetch_patch)(`users/project/${e.project.projectId}/contributor`,n,r).then(e=>{201===e.status.code&&(f({loading:!1,error:e.status.error,message:e.status.description}),i.setSuccessData(e.data),i.setIsNowContributor(!0))}).catch(e=>{f({loading:!1,error:!0,message:`${e}`}),console.log(n),console.log(`Error while adding user to the project: ${e}`)})).catch(e=>{f({loading:!1,error:!0,message:`${e}`}),console.log(`Error while getting access token: ${e}`),console.log(n)}):(0,b.fetch_post)(`users/project/${e.project.projectId}/contributor`,n).then(e=>{if(201===e.status.code){var r;f({loading:!0,error:e.status.error,message:e.status.description}),r=e.data,f({loading:!0,error:null,message:"Sending welcome mail...."}),(0,b.fetch_get)(`users/${n.username}/send_welcome`).then(e=>{f({loading:!1,error:null,message:"Email Sent Successfully"}),i.setSuccessData(r)}).catch(e=>{f({loading:!1,error:!0,message:`${e}`}),console.log(`Error while adding project link to project: ${e}`)})}}).catch(e=>{f({loading:!1,error:!0,message:`${e}`}),console.log(n),console.log(`Error while creating new account as contributor: ${e}`)}))};return(0,t.useEffect)(()=>{M()},[]),(0,t.useEffect)(()=>{if(null==n||void 0===n.firstName||null===n.firstName||void 0===n.lastName||null===n.lastName)return;let e=JSON.parse(JSON.stringify(n));(!a&&e.firstName.length>0||e.lastName.length>0)&&(e.username=`${e.firstName.toLowerCase()}.${e.lastName.toLowerCase()}`,o(e))},[n.firstName,n.lastName,a]),(0,r.jsxs)(t.default.Fragment,{children:[null!==i.successData&&(0,r.jsxs)(r.Fragment,{children:[!a&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"alert alert-success",role:"alert",children:["Hello"," ",(0,r.jsxs)("strong",{children:[n.firstName," ",n.lastName]}),", ",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"We have sent you a “Welcome” email. Please check your inbox and follow the instructions to complete your account setup. Once you log into your account through the website, you will see your list of projects to which you can follow and contribute.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)("p",{children:"Thank you and welcome to the CodeLinaro Community!"})]})}),a&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"alert alert-success",role:"alert",children:"Thanks for joining this project"})})]}),null===i.successData&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("table",{className:"table table-sm",style:{"margin-bottom":"30px"},children:[(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{children:(0,r.jsx)("th",{scope:"col",colSpan:2,children:"Project Details"})})}),(0,r.jsx)("tbody",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:"Name"}),(0,r.jsx)("td",{children:e.project.name})]})})]}),!a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{"margin-bottom":"30px"},children:(0,r.jsx)("div",{className:"card border-success",children:(0,r.jsxs)("div",{className:"card-body",children:[(0,r.jsx)("p",{children:"If you have a CodeLinaro User Account, please login"}),(0,r.jsx)("p",{children:(0,r.jsx)("a",{className:"btn me-2 btnBgColor",href:"/dashboard/",children:"Login"})})]})})}),(0,r.jsxs)("div",{className:"card border-success mb-3",children:[(0,r.jsx)("div",{className:"card-header",children:"Create New Account"}),(0,r.jsxs)("div",{className:"card-body",children:[(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("label",{children:"First Name"}),(0,r.jsx)("input",{type:"text",name:"firstName",onChange:e=>F(e),value:n.firstName||"",className:"form-control",placeholder:"First Name"})]}),(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("label",{children:"Last Name"}),(0,r.jsx)("input",{type:"text",name:"lastName",onChange:e=>F(e),value:n.lastName||"",className:"form-control",placeholder:"Last Name"})]}),(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("label",{children:"Username"}),(0,r.jsx)("input",{type:"text",name:"username",onChange:e=>F(e),value:n.username||"",className:"form-control",placeholder:"Username"})]}),(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("label",{children:"Email"}),(0,r.jsx)("input",{type:"text",name:"email",onChange:e=>F(e),value:n.email||"",className:"form-control",placeholder:"Email"})]}),(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("label",{for:"inputCity",className:"form-label",children:"Captcha:"}),(0,r.jsxs)("form",{className:"row",children:[(0,r.jsx)("div",{className:"col-6",children:(0,r.jsx)("input",{type:"text",name:"inputCode",id:"inputCode",value:h,onChange:e=>m(e.target.value)})}),(0,r.jsx)("div",{className:"col-2",children:(0,r.jsx)(_.default,{onChange:e=>{j(e)}})})]})]}),(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("input",{type:"checkbox",placeholder:"Your name",id:"agreeToJoin",name:"agreeToJoin",onChange:e=>L(e),"aria-describedby":"emailHelp",value:w})," ",(0,r.jsxs)("span",{id:"isFaireUseConsidered_label",className:"form-label",children:["I wish to join or follow this project: “",e.project.name,"” (",e.project.parentOrganization," /",e.project.projectSlug,")"]})]}),(0,r.jsx)("button",{type:"button",onClick:()=>O(),disabled:!E(),className:"btn btn-primary",children:"Submit"})," ",(0,r.jsx)("button",{type:"button",onClick:()=>M(),disabled:!E(),className:"btn btn-info",children:"Reset"})," "," ",null!==N&&(0,r.jsx)("div",{className:"form-group",children:(0,r.jsx)("span",{className:"text-danger",role:"alert",children:(0,r.jsx)("strong",{children:N})})}),null!==x&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"form-group",children:[x.loading&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"spinner-grow spinner-grow-sm",role:"status"})}),x.error&&(0,r.jsx)("span",{className:"text-danger",role:"alert",children:(0,r.jsx)("strong",{children:x.message})}),!x.error&&(0,r.jsx)("span",{className:"text-success",role:"alert",children:(0,r.jsx)("strong",{children:x.message})})]})})]})]})]}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("input",{type:"checkbox",placeholder:"Your name",id:"agreeToJoin",name:"agreeToJoin",onChange:e=>L(e),"aria-describedby":"emailHelp",value:w||!1})," ",(0,r.jsxs)("span",{id:"isFaireUseConsidered_label",className:"form-label",children:["I wish to join or follow this project: “",e.project.name,"” (",e.project.parentOrganization," /",e.project.projectSlug,")"]})]}),(0,r.jsx)("button",{type:"button",onClick:()=>O(),disabled:!E(),className:"btn btn-primary",children:"Submit"})," ",null!==N&&(0,r.jsx)("div",{className:"form-group",children:(0,r.jsx)("span",{className:"text-danger",role:"alert",children:(0,r.jsx)("strong",{children:N})})}),null!==x&&(0,r.jsxs)(r.Fragment,{children:[x.loading&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"spinner-grow spinner-grow-sm",role:"status"}),"..."]}),(0,r.jsxs)("div",{className:"form-group",children:[x.error&&(0,r.jsx)("span",{className:"text-danger",role:"alert",children:(0,r.jsx)("strong",{children:x.message})}),!x.error&&(0,r.jsx)("span",{className:"text-success",role:"alert",children:(0,r.jsx)("strong",{children:x.message})})]})]})]})]})]})};e.s(["default",0,O],6797);var A=e.i(40686);let R=function(e){let s=(0,t.useContext)(P),a=e.project,{currentOrg:{role:{isSuperAdmin:l}}}=(0,g.useUserOrgs)(),{isAuthenticated:i,user:n}=(0,c.useAuth0)(),{getAccessTokenSilently:o}=(0,c.useAuth0)();var[d,u]=t.default.useState(!1);let h=(0,F.makeStyles)(()=>({modal:{width:500}}))();var[m,p]=(0,t.useState)({loading:!1,contributtor:!1,error:!1,errorMessage:null});return(0,t.useEffect)(()=>
1{i&&(n["https://api.codelinaro.org/username"],p({loading:!0,contributtor:!1,error:!1,errorMessage:null}),o().then(r=>(0,b.fetch_get)(`users/project/${e.project.projectId}/check/if/contributor`,r).then(e=>{201===e.status.code&&p({loading:!1,contributtor:void 0!==e.data&&e.data,error:!1,errorMessage:null})}).catch(e=>{p({loading:!1,contributtor:!1,error:!0,errorMessage:`${e}`}),console.log(`Error while adding project link to workgroup: ${e}`)})).catch(e=>{p({loading:!1,contributtor:!1,error:!0,errorMessage:`${e}`}),console.log(`Error while getting access token: ${e}`)}))},[i]),(0,r.jsx)(t.default.Fragment,{children:!l&&(0,r.jsx)(r.Fragment,{children:!0===a.externalContribution&&"active"===a.status&&(0,r.jsxs)(r.Fragment,{children:[i?(0,r.jsxs)(r.Fragment,{children:[m.loading&&!m.error&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"spinner-grow spinner-grow-sm",role:"status"}),"..."]}),!m.loading&&!m.error&&(0,r.jsxs)(r.Fragment,{children:[(m.contributtor||s.isNowContributor)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.BsPeopleFill,{size:25})," Contributing"]}),!(m.contributtor||s.isNowContributor)&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("button",{type:"button",className:"btn btn-light btn-sm",onClick:()=>u(!0),children:(0,r.jsx)("strong",{children:"Join This Project"})})})]}),!m.loading&&m.error&&(0,r.jsx)("div",{className:"alert alert-danger py-1",role:"alert",children:m.errorMessage})]}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("a",{type:"button",className:"btn btn-light btn-sm border-success",href:`../projects/${e.project.parentOrganization}/${e.project.projectSlug}/contributor/join`,children:(0,r.jsx)("strong",{children:"Join This Project"})})}),(0,r.jsxs)(L.Modal,{isOpen:d,toggle:()=>u(!d),backdrop:"static",zIndex:1,size:"xl",centered:!0,className:h.modal,style:{maxWidth:"500px",width:"100%"},children:[(0,r.jsx)(E.ModalHeader,{toggle:()=>u(!d),children:"Join as a contributor"}),(0,r.jsx)(M.ModalBody,{children:(0,r.jsx)(O,{...e})})]})]})})})},z=function(e){return(0,r.jsx)(t.default.Fragment,{children:(0,r.jsx)(T,{children:(0,r.jsx)(R,{project:e.project})})})};function I(e){let[a,l]=(0,t.useState)(!1);if(!e.URL)return(0,r.jsx)(r.Fragment,{});let i="Artifacts"===e.Label?{onClick:()=>{let r="private"===e.visibility?`/projects/${e.parentOrganization}/private/${e.index}/#artifacts`:`/projects/${e.parentOrganization}/${e.index}/#artifacts`;(0,w.navigate)(r)}}:{href:e.URL};return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"me-2",style:{display:"inline-table",marginRight:0},children:(0,r.jsxs)(s.Button,{...i,color:"primary",className:"me-2 viewPublicProjects1",children:[(0,r.jsx)("img",{className:"img-fluid d-inline-block",...(0,N.css)({height:25,marginRight:"5px"}),src:e.isActive?`/${e.Label.toLocaleLowerCase()}.svg`:`/${e.Label.toLocaleLowerCase()}-grey.svg`,alt:e.Label,id:`project-${e.index}-${e.Label}`}),e.Label]})})})}function B(e){let t=e.data,s=(0,d.htmlToText)(t.description);t.description=s;let a="private"===t.visibility?`/projects/${t.parentOrganization}/private/${t.projectSlug}/`:`/projects/${t.parentOrganization}/${t.projectSlug}/`;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:`p-1 my-3 ${{active:"activeBg",inactive:"inactiveBg",archived:"archivedBg"}[t.status]}`,style:"active"===t.status?{backgroundColor:"#ebebeb"}:{backgroundColor:"#fff",border:"1px solid #ebebeb"},children:(0,r.jsxs)("div",{className:"row p-3",children:[(0,r.jsx)("div",{className:"col",children:(0,r.jsxs)("div",{className:"float-start",style:{display:"flex"},children:[(0,r.jsx)(w.Link,{to:a,state:{search:window.location.search},children:(0,r.jsx)("h2",{...(0,N.css)(U.projectTitle),className:"fw-bold",children:"active"===t.status?(0,r.jsx)("span",{children:t.name}):(0,r.jsx)("span",{style:{color:"#c2c2c2"},children:`${t.name} (${C.default.upperFirst(t.status)})`})})}),(0,r.jsx)("div",{style:{padding:5},children:(0,r.jsx)("span",{className:"badge bg-light",style:{textTransform:"capitalize",color:"#000",border:"1px solid #000"},children:t.visibility})})]})}),(0,r.jsx)("div",{className:"col",children:(0,r.jsx)("div",{className:"float-end",children:(0,r.jsx)(z,{project:t})})}),(0,r.jsx)("div",{className:"w-100"}),(0,r.jsx)("div",{className:"col",children:(0,r.jsx)("div",{className:"float-start",children:(0,r.jsx)("p",{style:{marginBottom:"0.5rem",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:s})})}),(0,r.jsx)("div",{className:"col",children:" "}),(0,r.jsx)("div",{className:"w-100"}),(0,r.jsx)("div",{className:"col",children:(0,r.jsxs)("div",{className:"mb-0",children:[(0,r.jsx)(I,{URL:t.gitlabURL,Label:"Git",index:t.projectSlug,isActive:"active"===t.status}),(0,r.jsx)(I,{URL:t.artifactoryURL,Label:"Artifacts",index:t.projectSlug,parentOrganization:t.parentOrganization,visibility:t.visibility,isActive:"active"===t.status})]})}),(0,r.jsx)("div",{className:"col",children:(0,r.jsx)("div",{className:"float-end",children:(0,r.jsx)(k,{project:t})})})]})})})}let U={projectTitle:{color:"#9c3"},pageTotal:{color:"rgba(0, 0, 0, 0.87)",textAlign:"center",lineHeight:"30px",marginRight:"5px"},publicProjectContainer:{position:"relative",border:"0.75px solid #ebebeb",borderRadius:"12px",padding:"0px 1rem"},noData:{marginTop:"45px"},statusCss:{padding:"8px 15px",width:100,textAlign:"center",color:"#9c3",cursor:"pointer"}};e.s(["default",0,e=>{let d=new URLSearchParams(window.location.search),{isAuthenticated:w,user:C,getAccessTokenSilently:$}=(0,c.useAuth0)(),{loading:k}=(0,g.useUserOrgs)(),[P]=(0,t.useState)(w?"projects/union_public":"projects/public"),[T,F]=(0,t.useState)(!0),[L,E]=(0,t.useState)(e.initialProjects||[]),[M,_]=(0,t.useState)(!(e.initialProjects&&e.initialProjects.length>0)),[O,A]=(0,t.useState)("There are no available projects."),[R,z]=(0,t.useState)(1),[I,J]=(0,t.useState)(parseInt(d?.get("page")||1)),[q,D]=(0,t.useState)(""),[G,H]=(0,t.useState)(d?.get("status")||""),[W,K]=(0,t.useState)(w&&d?.get("visibility")||"all"),{search:X,setSearch:Y,callback:V}=(0,S.useSearch)(e=>{J(1);let r="",t=e?.target?.value||"";""!==t&&(r+=`&query=${t}`),""!==G&&"all"!==G&&(r+=`&status=${G}`),""!==W&&"all"!==W&&(r+=`&visibility=${W}`),Z(1,r)},null,d?.get("query")||"");function Q(e,r){J(r);let t="";""!==X&&(t+=`&query=${X}`),""!==G&&"all"!==G&&(t+=`&status=${G}`),""!==W&&"all"!==W&&(t+=`&visibility=${W}`),Z(r,t)}function Z(e,r){!(0,v.checkPassword)(w,C)&&(_(!0),A("There are no available projects."),(window.history.pushState("","",window.location.origin+window.location.pathname+`?page=${e}${r}`),w?$().then(t=>(0,b.fetch_get)(`${P}?page=${e}${r}`,t)):(0,b.fetch_get)(`${P}?page=${e}${r}`,!1)).then(e=>{F(!1),E(e.data||[]);let r=e.pagination.totalRecords||0;z(Math.ceil(r/(e.pagination.pageSize||10))),D(r),_(!1)}).catch(r=>{console.log(`Error while getting the list of projects: ${r}`),console.log(`${P}?page=${e}`),E([]),A("An error occurred while getting the list of projects."),_(!1)}))}return((0,t.useEffect)(()=>{let e="";""!==X&&(e+=`&query=${X}`),""!==G&&"all"!==G&&(e+=`&status=${G}`),""!==W&&"all"!==W&&(e+=`&visibility=${W}`),T?Z(I,e):(J(1),Z(1,e))},[G,W,P]),k&&!e.initialProjects)?(0,r.jsx)(p.Loading,{}):(0,r.jsxs)(u.default,{pageTitle:"Projects",children:[(0,r.jsx)(m.default,{contentPage:!0,className:"contentPage",children:(0,r.jsx)("div",{style:{display:"flex",flexWrap:"wrap"},children:(0,r.jsx)("div",{children:(0,r.jsx)("h1",{className:"display-4 fw-bold",children:"Projects"})})})}),(0,r.jsxs)(h.default,{children:[(0,r.jsxs)("div",{style:{position:"relative"},children:[(0,r.jsxs)("div",{className:"d-flex align-items-center justify-content-between w-100",children:[(0,r.jsx)("div",{style:{width:"600px"},children:(0,r.jsxs)(n.InputGroup,{children:[(0,r.jsx)(i.Input,{className:"border border-dark",value:X,placeholder:"Search for a project...",onChange:e=>V(e),onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),document.getElementById("searchButton").click())}}),""!==X&&(0,r.jsx)(o.InputGroupAddon,{className:"clear_search",addonType:"append",children:(0,r.jsx)(s.Button,{onClick:()=>{let e;Y(""),J(1),e="",""!==G&&"all"!==G&&(e+=`&status=${G}`),""!==W&&"all"!==W&&(e+=`&visibility=${W}`),Z(1,e)},children:(0,r.jsx)(j.MdClose,{})})}),(0,r.jsx)(o.InputGroupAddon,{addonType:"append",children:(0,r.jsx)(s.Button,{id:"searchButton",style:{backgroundColor:"#6c757d",borderColor:"#6c757d",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#6c757d",e.currentTarget.style.borderColor="#6c757d",e.currentTarget.style.color="#fff"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#6c757d",e.currentTarget.style.borderColor="#6c757d",e.currentTarget.style.color="#fff"},children:(0,r.jsx)(x.FaSearch,{size:16,style:{color:"#fff",fill:"#fff"}})})})]})}),(0,r.jsxs)("div",{className:"d-flex align-items-center",children:[(0,r.jsx)("span",{...(0,N.css)(U.pageTotal),style:{marginRight:"12px",padding:"4px 10px",borderRadius:"12px",background:"#f5f5f5",whiteSpace:"nowrap"},children:`Total ${q} items`}
1),(0,r.jsx)(y.default,{count:R,page:I,onChange:Q,variant:"outlined",shape:"rounded"})]})]}),(0,r.jsx)("div",{className:"row",children:" "}),w&&(0,r.jsx)("div",{style:{width:160,position:"absolute",right:0},children:(0,r.jsxs)(i.Input,{type:"select",name:"visibility",id:"visibility1111",value:W,onChange:e=>K(e.target.value),children:[(0,r.jsx)("option",{value:"all",children:"All Projects"}),(0,r.jsx)("option",{value:"public",children:"Public Projects"}),(0,r.jsx)("option",{value:"private",children:"Private Projects"})]})}),(0,r.jsx)("div",{className:"d-flex",children:[{name:"All",value:"all"},{name:"Active",value:"active"},{name:"Archived",value:"archived"}].map((e,r)=>(0,t.createElement)("div",{...(0,N.css)(U.statusCss),className:e.value===(G||"all")?"selectActiveInPublicProjects":"",key:r,onClick:()=>{H(e.value),J(1)}},e.name))})]}),(0,r.jsx)("div",{...(0,N.css)(U.publicProjectContainer),id:"projectsWrapper",children:M?(0,r.jsx)(a.Row,{children:(0,r.jsx)(l.Col,{className:"d-flex justify-content-center align-items-center",xs:{size:12},sm:{size:4,offset:4},children:(0,r.jsx)(f.PropagateLoader,{className:"align-self-center",size:20,color:"#9c3",loading:!0})})}):M||0!==L.length?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{children:L.map((e,t)=>(0,r.jsx)("div",{children:(0,r.jsx)(B,{index:t,data:e},e.projectSlug)},t))})}):(0,r.jsx)(a.Row,{children:(0,r.jsx)(l.Col,{xs:{size:12},children:(0,r.jsx)("p",{...(0,N.css)(U.noData),children:O})})})}),(0,r.jsxs)("div",{style:{float:"right",marginTop:"1rem"},className:"d-flex",children:[(0,r.jsx)("span",{...(0,N.css)(U.pageTotal),style:{marginRight:"12px",padding:"4px 10px",borderRadius:"12px",background:"#f5f5f5",whiteSpace:"nowrap"},children:`Total ${q} items`}),(0,r.jsx)(y.default,{count:R,page:I,onChange:Q,variant:"outlined",shape:"rounded"})]})]})]})}],19882)},41282,e=>{"use strict";var r=e.i(91398),t=e.i(58678),s=e.i(19882);e.s(["__N_SSG",0,!0,"default",0,function({initialProjects:e}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(t.default,{children:[(0,r.jsx)("meta",{name:"description",content:"Browse public projects on CodeLinaro — open source and community software hosted and managed on the CodeLinaro platform."}),(0,r.jsx)("link",{rel:"canonical",href:"https://www.codelinaro.org/projects/"})]}),(0,r.jsx)(s.default,{initialProjects:e})]})}])},4078,(e,r,t)=>{let s="/projects";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(41282)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([s])})},48761,e=>{e.v(r=>Promise.all(["static/chunks/2n_ornp2pwzl0.js"].map(r=>e.l(r))).then(()=>r(93594)))},28805,e=>{e.v(r=>Promise.all(["static/chunks/0h0r_q6xa9qr_.js"].map(r=>e.l(r))).then(()=>r(79466)))}]);

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.