PageSourceSearch

https://hack2skill.com/assets/index-5214409f.js

js hack2skill.com collected 2026-10-01 14:44:40 UTC 1,997 bytes, 1 lines download raw bytes

1import{aK as h,i as e,I as g,k as v,j as l,E as x,aO as S}from"./index-81971edb.js";import{r as m}from"./vendor-4adab861.js";import{l as w}from"./index-6d99cfbe.js";import{u as I}from"./router-805badc2.js";import{H as L}from"./index-3d24c7c6.js";import{S as b}from"./index-ed9bf6b1.js";import"./ui-86749c30.js";import"./redux-cd3a9116.js";const y=()=>{async function a({search:s="search"}){try{return await w({search:s})}catch(t){console.log("Error: ",t)}}return{getInitiativesListStaffApi:a}},N=()=>h([{to:"/staff/initiatives/content",icon:e(g,{className:"text-slate-700 opacity-45",fontSize:17,icon:"heroicons:home-solid"})}]);function D({data:a,navigate:s}){return a?.map(t=>({id:t?._id??"",label:t?.title??"",icon:e("img",{className:"w-6 h-6 rounded-md",src:t?.logo}),url:t?.eventUrl??"",onclick:i=>{s(`/staff/initiatives/content/${i??""}?eventName=${t?.title??""}`)}}))}const j=()=>{const a=v(),s=N(),[t,i]=m.useState(!1),[r,o]=m.useState([]),d=I(),{getInitiativesListStaffApi:p}=y();async function f(c){try{if(i(!0),!c){await o([]);return}const n=await p({search:c});if(n?.success){const u=await D({data:n?.data,navigate:d});await o(u||[]),i(!1)}}catch(n){console.log(n)}}return{t:a,breadCrumDataToSend:s,handleSearch:f,searchListItem:r,isLoadingList:t}},O=()=>{const{t:a,breadCrumDataToSend:s,handleSearch:t,searchListItem:i,isLoadingList:r}=j();return l("div",{className:"font-sans",children:[e(x,{metaData:{title:a("cInitiativesSettings")}}),l("div",{className:"w-full px-[24px] pb-20",children:[e("div",{className:"pt-8 pb-2 w-full md:sticky top-0 bg-h2sGrey-50 z-20",children:e(S,{breadCrumData:s,className:""})}),e(L,{title:a("cInitiativesSettings"),description:a("cInitiativesSettingsDescription")}),e("div",{className:"rounded-2xl flex items-center justify-center  bg-white shadow-soft-xl mt-[24px] pb-[12px] ",children:e("div",{className:"2xl:max-w-[800px] max-w-[600px] w-full px-6 py-12",children:e(b,{isLoadingList:r,listItems:i||[],onSearch:t})})})]})]})};export{O as default};

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.