PageSourceSearch

https://centa.org/_next/static/chunks/8194-f7591ae5a309fdcd.js

js centa.org collected 2026-09-24 09:48:14 UTC 45,881 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8194],{40448:function(e,n,t){t.d(n,{L:function(){return trackEvent}}),t(67294),t(11163);var r=t(19692);let trackEvent=(e,n)=>{(0,r.sendGAEvent)("event",e,{value:n})}},59896:function(e,n,t){var r=t(87508),i=t(30947),s=t(36492);t(67294),n.Z=e=>{let{limit:n=5}=e,{isLoading:t,data:_}=(0,s.a)({queryKey:["trending_search",n],queryFn:async()=>{var e;let t=await r.q.graphql.request(i.dg,{limit:n});return null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.trending_items}});return{isLoading:t,data:_}}},96970:function(e,n,t){var r=t(36492),i=t(87508);let sortByStartsWithPriority=(e,n)=>{let t=(n||"").trim().toLowerCase();return t&&Array.isArray(e)?[...e].sort((e,n)=>{let r=((null==e?void 0:e.slug)||"").toLowerCase(),i=((null==e?void 0:e.slugtitle)||"").toLowerCase(),s=((null==n?void 0:n.slug)||"").toLowerCase(),_=((null==n?void 0:n.slugtitle)||"").toLowerCase(),l=r.startsWith(t)||i.startsWith(t)?0:1,a=s.startsWith(t)||_.startsWith(t)?0:1;return l-a}):e||[]};n.Z=e=>{let{searchInput:n}=e,{data:t,isLoading:s,isFetching:_,isError:l,error:a,refetch:o}=(0,r.a)({queryKey:["search_courses_light",n],queryFn:async()=>{var e,t,r;let s=await i.q.graphql.request("\n  query searchCourses($limit: Int, $where: webinars_bool_exp) {\n    courses: webinars(limit: $limit, where: $where) {\n      id\n      slug\n      slugtitle\n      course_type\n      thumbnail\n      active\n    }\n  }\n",{limit:25,where:{_and:[{slug:{_ilike:"%".concat(n,"%")}},{active:{_eq:!0}}]}}),_=null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.courses;if(Array.isArray(_))return{courses:sortByStartsWithPriority(_,n)};let l=(null==s?void 0:null===(t=s.error)||void 0===t?void 0:t.message)||(Array.isArray(null==s?void 0:s.error)?null===(r=s.error[0])||void 0===r?void 0:r.message:null)||"Search request failed";throw Error(l)},enabled:!!n,retry:1,staleTime:3e4});return{data:Array.isArray(null==t?void 0:t.courses)?t.courses:[],isLoading:s,isFetching:_,isError:l,error:a,refetch:o}}},40497:function(e,n,t){var r=t(85893),i=t(67294),s=t(73935),_=t(11163),l=t(2777),a=t(87771),o=t(61121),u=t(25675),d=t.n(u),c=t(96970),m=t(26189),p=t(35203),y=t(59896),g=t(30117),b=t(15054),h=t(26797);let w=["self_paced_courses","webinars","certifications","live_training","expert_masterclass","micro_resources","centalks"];n.Z=e=>{let{isOpen:n,onClose:t}=e,u=(0,p.Gu)(),f=(0,p.b5)(),v=(0,_.useRouter)(),k=(0,i.useRef)(null),[$,j]=(0,i.useState)(!1);(0,i.useEffect)(()=>{j(!0)},[]);let[q,O]=(0,i.useState)(""),x=(null==q?void 0:q.trim())||"",{data:C,isLoading:P,isFetching:N,isError:I,refetch:E}=(0,c.Z)({searchInput:x}),{data:A}=(0,y.Z)({limit:5}),{mutateAsync:B}=(0,g.uV)({url:f?"/user/history":"",headers:f?{Authorization:"Bearer ".concat(u)}:{"Content-type":"application-json"}}),S=(null==C?void 0:C.length)>0?C.filter(e=>(null==e?void 0:e.course_type)==="self_paced_courses"):[],U=(null==C?void 0:C.length)>0?C.filter(e=>(null==e?void 0:e.course_type)==="webinars"):[],D=(null==C?void 0:C.length)>0?C.filter(e=>(null==e?void 0:e.course_type)==="certifications"):[],z=(null==C?void 0:C.length)>0?C.filter(e=>(null==e?void 0:e.course_type)==="live_training"):[],W=(null==C?void 0:C.length)>0?C.filter(e=>(null==e?void 0:e.course_type)==="expert_masterclass"):[],G=(null==C?void 0:C.length)>0?C.filter(e=>(null==e?void 0:e.course_type)==="micro_resources"):[],M=(null==C?void 0:C.length)>0?C.filter(e=>(null==e?void 0:e.course_type)==="centalks"):[],L=(null==C?void 0:C.length)>0?C.filter(e=>!w.includes(null==e?void 0:e.course_type)):[],R=A?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null==e?void 0:e.map(e=>({course_slug:null==e?void 0:e.course_slug,keyword:null==e?void 0:e.keyword}))}(A):[],T=null==R?void 0:R.reduce((e,n)=>(e.some(e=>e.course_slug===n.course_slug&&e.keyword===n.keyword)||e.push(n),e),[]),F=null==T?void 0:T.filter(e=>{var n,t;return((null==e?void 0:null===(n=e.course_slug)||void 0===n?void 0:n.length)||0)>3||((null==e?void 0:null===(t=e.keyword)||void 0===t?void 0:t.length)||0)>3}),trackSearchSubmit=()=>{h.default.track("HOMEPAGE_SEARCH_BAR")},closeAndClear=()=>{O(""),t()},browseWithQuery=e=>{let n=null==e?void 0:e.trim();n&&(trackSearchSubmit(),closeAndClear(),v.push({pathname:b.y.courses,query:{search:n}}))},addSearches=async e=>{f&&await B({name:q,course_id:null==e?void 0:e.id,course_type:null==e?void 0:e.course_type})},handleCourseClick=async e=>{await addSearches(e),closeAndClear(),v.push("".concat(b.y.courses,"/").concat(null==e?void 0:e.slugtitle))};(0,i.useEffect)(()=>
1{if(!n)return;let e=setTimeout(()=>{var e;null===(e=k.current)||void 0===e||e.focus()},50);return()=>clearTimeout(e)},[n]),(0,i.useEffect)(()=>{if(!n)return;let onKeyDown=e=>{"Escape"===e.key&&(O(""),t())};return document.addEventListener("keydown",onKeyDown),()=>document.removeEventListener("keydown",onKeyDown)},[n,t]);let renderCourseGroup=(e,n)=>(null==n?void 0:n.length)?(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("h6",{className:"font-bold text-[#242B42] mb-2 mt-5",children:e}),n.map(e=>(0,r.jsxs)("div",{className:"flex items-center gap-3 py-2 cursor-pointer group",onClick:()=>handleCourseClick(e),children:[(0,r.jsx)(d(),{src:(null==e?void 0:e.thumbnail)||"/fallback.jpg",alt:"",width:56,height:56,className:"w-14 h-14 rounded object-cover shrink-0 bg-[#F3F6F9]",unoptimized:!0,onError:e=>{e.currentTarget.src="/fallback.jpg"}}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"text-sm text-[#242B42] group-hover:text-[#3db0e4] line-clamp-2",children:(0,m.c7)(null==e?void 0:e.slug)}),(0,r.jsx)("p",{className:"text-xs text-[#3db0e4] mt-0.5",children:(0,m.vt)(null==e?void 0:e.course_type)})]})]},null==e?void 0:e.id))]}):null,Q=!!(x&&(P||N)),K=!x&&(null==F?void 0:F.length)>0,Z=!!(x&&!Q&&(I||(null==C?void 0:C.length)===0)),H=!!(x&&!Q&&(null==C?void 0:C.length)>0);return $?(0,s.createPortal)((0,r.jsx)("div",{className:"search-modal",style:{transform:n?"translateY(0%)":"translateY(-100%)",opacity:n?1:0,pointerEvents:n?"auto":"none",zIndex:1100},children:(0,r.jsxs)("div",{className:"search-modal-content",children:[(0,r.jsxs)("div",{className:"flex items-center justify-start w-full rounded-[30px] border border-[#D4E1E8] ",children:[(0,r.jsx)(l.jRj,{className:"text-[#242B42] mx-3 text-base"}),(0,r.jsx)("input",{ref:k,className:"py-3 w-full pe-10 border-0 outline-none bg-transparent text-[#7E8CA0] focus:z-10 focus:outline-sky-400 text-sm/none placeholder:text-[#9aa1ad]",placeholder:"What would you like to learn?",type:"text",value:q,onChange:e=>{var n;return O(null==e?void 0:null===(n=e.target)||void 0===n?void 0:n.value)},onKeyDown:e=>{if("Escape"===e.key){e.preventDefault(),closeAndClear();return}"Enter"===e.key&&(e.preventDefault(),browseWithQuery(q))}}),(0,r.jsx)("div",{className:"close-icon mr-4 items-center cursor-pointer",onClick:closeAndClear,children:(0,r.jsx)(a.oHP,{size:15})})]}),K&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("h6",{className:"font-bold text-[#242B42] mb-1 mt-5 text-sm",children:"Trending Searches"}),F.map((e,n)=>{let t=(null==e?void 0:e.course_slug)||(null==e?void 0:e.keyword);return(0,r.jsxs)("h6",{className:"flex items-center font-normal py-3 text-[#242B42] text-sm hover:text-[#3db0e4] cursor-pointer",onClick:()=>browseWithQuery(t),children:[(0,r.jsx)(o.HgU,{className:"w-5 h-5 mr-3 text-[#242B42] font-bold"}),(0,r.jsx)("span",{children:(0,m.c7)(t)})]},"".concat(t,"-").concat(n))})]}),Q&&(0,r.jsx)("p",{className:"mt-5 text-sm text-[#7E8CA0]",children:"Searching..."}),Z&&(0,r.jsxs)("div",{className:"mt-5",children:[(0,r.jsx)("p",{className:"text-sm text-[#242B42]",children:I?"Search failed. Try again.":"No results for “".concat(x,"”")}),I?(0,r.jsx)("button",{type:"button",className:"mt-3 mr-4 text-sm font-medium text-[#3db0e4]",onClick:()=>E(),children:"Retry"}):null,(0,r.jsx)("button",{type:"button",className:"mt-3 text-sm font-medium text-[#3db0e4]",onClick:()=>browseWithQuery(x),children:"Search all courses"})]}),H&&(0,r.jsxs)(i.Fragment,{children:[renderCourseGroup("Self-Paced Courses",S),renderCourseGroup("Webinars",U),renderCourseGroup("Certifications",D),renderCourseGroup("Live Training",z),renderCourseGroup("Expert Masterclass",W),renderCourseGroup("Micro Resources",G),renderCourseGroup("CENTalks",M),renderCourseGroup("Other",L),(0,r.jsxs)("button",{type:"button",className:"mt-4 w-full text-left text-sm font-medium text-[#3db0e4] py-2",onClick:()=>browseWithQuery(x),children:["See all results for “",x,"”"]})]})]})}),document.body):null}},90773:function(e,n,t){t.d(n,{$n:function(){return u},B$:function(){return d},PN:function(){return y},bW:function(){return a},bn:function(){return _},ek:function(){return o},jf:function(){return l},lN:function(){return c},p1:function(){return m},uV:function(){return p},y7:function(){return s}});var r=t(82729),i=t(41791);
1function _templateObject(){let e=(0,r._)(["\n  query getCommunityGroups($where: community_groups_bool_exp) {\n    community_groups(where: $where) {\n      id\n      name\n      cover_image\n      members(limit: 10, order_by: { created_at: desc_nulls_last, community_group_members: { avatarUrl: desc_nulls_last } }) {\n        community_group_members {\n          avatarUrl\n        }\n      }\n    }\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n  query getAllPosts($where: community_posts_bool_exp, $user_id: uuid, $limit: Int!, $offset: Int!) {\n    community_posts(where: $where, limit: $limit, offset: $offset, order_by: { created_at: desc }) {\n      id\n      active\n      title\n      description\n      content_type\n      poll_ends_at\n      created_at\n      author_id\n      group_id\n      shared_type\n      platform_type\n      is_pinned\n      post_urls {\n        id\n        post_id\n        url_type\n        url\n      }\n      profile: community_posts_user {\n        full_name\n        user: userDetailsById {\n          avatarUrl\n        }\n      }\n      total_likes: likes_aggregate(where: { is_liked: { _eq: true } }) {\n        aggregate {\n          count\n        }\n      }\n      likes(where: { is_liked: { _eq: true }, user_id: { _eq: $user_id } }) {\n        id\n        is_liked\n        user_id\n        reaction_type\n      }\n      comments {\n        id\n        comment\n        created_at\n        user_id\n        active\n        user {\n          full_name\n          avatar\n        }\n        children: comment_replies {\n          id\n          parent_id\n          comment: reply\n          created_at\n          user_id\n          active\n          user {\n            full_name\n            avatar\n          }\n          comment_likes: reply_likes {\n            id\n            reply_id\n            comment_id\n            user_id\n          }\n          my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n            id\n            reply_id\n            comment_id\n            user_id\n          }\n          children: sub_replies {\n            id\n            parent_id\n            comment: reply\n            created_at\n            user_id\n            active\n            user {\n              full_name\n              avatar\n            }\n            comment_likes: reply_likes {\n              id\n              reply_id\n              comment_id\n              user_id\n            }\n            my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n              id\n              reply_id\n              comment_id\n              user_id\n            }\n            children: sub_replies {\n              id\n              parent_id\n              comment: reply\n              created_at\n              user_id\n              active\n              user {\n                full_name\n                avatar\n              }\n              comment_likes: reply_likes {\n                id\n                reply_id\n                comment_id\n                user_id\n              }\n              my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n                id\n                reply_id\n                comment_id\n                user_id\n              }\n              children: sub_replies {\n                id\n                parent_id\n                comment: reply\n                created_at\n                user_id\n                active\n                user {\n                  full_name\n                  avatar\n                }\n                comment_likes: reply_likes {\n                  id\n                  reply_id\n                  comment_id\n                  user_id\n                }\n                my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n                  id\n                  reply_id\n                  comment_id\n                  user_id\n                }\n              }\n            }\n          }\n        }\n        comment_likes {\n          id\n          comment_id\n          user_id\n          is_liked\n        }\n        my_comment_like: comment_likes(where: { user_id: { _eq: $user_id } }) {\n          id\n          comment_id\n          user_id\n          is_liked\n        }\n      }\n      total_comments: comments_aggregate {\n        aggregate {\n          count\n        }\n      }\n      bookmarks(where: { is_bookmarked: { _eq: true }, user_id: { _eq: $user_id } }) {\n        id\n        is_bookmarked\n        user_id\n      }\n      author_followers(where: { user_id: { _eq: $user_id }, is_blocked: { _eq: false } }) {\n        id\n        is_blocked\n        status\n        user_id\n        follower_id\n        follower {\n          full_name\n          userDetailsById {\n            displayName\n            avatarUrl\n          }\n        }\n      }\n    }\n    total: community_posts_aggregate(where: $where) {\n      aggregate {\n        count\n      }\n    }\n  }\n"]);
1return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,r._)(["\n  query getAllgroups($where: community_groups_bool_exp, $limit: Int, $order_by: [community_groups_order_by!], $user_id: uuid) {\n    community_groups(where: $where, limit: $limit, order_by: $order_by) {\n      id\n      active\n      group_type\n      name\n      created_at\n      description\n      caption\n      cover_image\n      tags {\n        title\n      }\n      members(where: { user_id: { _eq: $user_id } }) {\n        id\n        status\n        user_profile {\n          full_name\n        }\n      }\n      members_aggregate(where: { user_id: { _eq: $user_id } }) {\n        aggregate {\n          count\n        }\n      }\n    }\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,r._)(["\n  query getCommunityPosts($where: community_posts_bool_exp, $user_id: uuid) {\n    community_posts(where: $where) {\n      id\n      active\n      title\n      description\n      content_type\n      poll_ends_at\n      created_at\n      author_id\n      shared_type\n      post_urls {\n        id\n        post_id\n        url_type\n        url\n      }\n      profile: community_posts_user {\n        full_name\n        user: userDetailsById {\n          avatarUrl\n        }\n      }\n      total_likes: likes_aggregate(where: { is_liked: { _eq: true } }) {\n        aggregate {\n          count\n        }\n      }\n      my_like: likes(where: { is_liked: { _eq: true }, user_id: { _eq: $user_id } }) {\n        id\n        user_id\n        is_liked\n      }\n      my_bookmark: bookmarks(where: { is_bookmarked: { _eq: true }, user_id: { _eq: $user_id } }) {\n        id\n        user_id\n        is_bookmarked\n      }\n      comments {\n        id\n        comment\n        created_at\n        user_id\n        active\n        user {\n          full_name\n          userDetailsById {\n            displayName\n            avatarUrl\n          }\n        }\n        children: comment_replies {\n          id\n          parent_id\n          comment: reply\n          created_at\n          user_id\n          active\n          user {\n            full_name\n            avatar\n          }\n          comment_likes: reply_likes {\n            id\n            reply_id\n            comment_id\n            user_id\n          }\n          my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n            id\n            reply_id\n            comment_id\n            user_id\n          }\n          children: sub_replies {\n            id\n            parent_id\n            comment: reply\n            created_at\n            user_id\n            active\n            user {\n              full_name\n              avatar\n            }\n            comment_likes: reply_likes {\n              id\n              reply_id\n              comment_id\n              user_id\n            }\n            my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n              id\n              reply_id\n              comment_id\n              user_id\n            }\n            children: sub_replies {\n              id\n              parent_id\n              comment: reply\n              created_at\n              user_id\n              active\n              user {\n                full_name\n                avatar\n              }\n              comment_likes: reply_likes {\n                id\n                reply_id\n                comment_id\n                user_id\n              }\n              my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n                id\n                reply_id\n                comment_id\n                user_id\n              }\n              children: sub_replies {\n                id\n                parent_id\n                comment: reply\n                created_at\n                user_id\n                active\n                user {\n                  full_name\n                  avatar\n                }\n                comment_likes: reply_likes {\n                  id\n                  reply_id\n                  comment_id\n                  user_id\n                }\n                my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n                  id\n                  reply_id\n                  comment_id\n                  user_id\n                }\n              }\n            }\n          }\n        }\n        comment_likes {\n          id\n          comment_id\n          user_id\n          is_liked\n        }\n        my_comment_like: comment_likes(where: { user_id: { _eq: $user_id } }) {\n          id\n          comment_id\n          user_id\n          is_liked\n        }\n      }\n      total_comments: comments_aggregate {\n        aggregate {\n          count\n        }\n      }\n      author_following(where: { user_id: { _eq: $user_id } }) {\n        id\n        is_blocked\n        status\n        user_id\n        follower_id\n        follower {\n          full_name\n          userDetailsById {\n            displayName\n            avatarUrl\n          }\n        }\n      }\n    }\n  }\n"]);
1return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,r._)(["\n  query getPostLikes($where: community_post_likes_bool_exp) {\n    community_post_likes(where: $where) {\n      id\n      post_id\n      user_id\n      is_liked\n      user {\n        displayName\n        avatarUrl\n      }\n    }\n  }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,r._)(['\n  query getMycommunitites($where: community_group_members_bool_exp) {\n    community_group_members(where: $where) {\n      id\n      user_id\n      status\n      group_id\n      community_group {\n        id\n        active\n        name\n        description\n        caption\n        group_type\n        cover_image\n        members_aggregate(where: { status: { _eq: "accepted" } }) {\n          aggregate {\n            count\n          }\n        }\n      }\n    }\n  }\n']);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,r._)(["\n  query getUserfollowerId($where: user_followers_bool_exp) {\n    user_followers(where: $where) {\n      id\n      user_id\n      follower_id\n      status\n      follower {\n        full_name\n        userDetailsById {\n          displayName\n          avatarUrl\n        }\n      }\n    }\n  }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,r._)(["\n  query getUserfollowingposts($where: community_posts_bool_exp, $user_id: uuid, $limit: Int!, $offset: Int!) {\n    community_posts(where: $where, order_by: { created_at: desc }, limit: $limit, offset: $offset) {\n      id\n      active\n      title\n      description\n      content_type\n      poll_ends_at\n      created_at\n      author_id\n      group_id\n      shared_type\n      platform_type\n      post_urls {\n        id\n        post_id\n        url_type\n        url\n      }\n      profile: community_posts_user {\n        full_name\n        user: userDetailsById {\n          avatarUrl\n        }\n      }\n      total_likes: likes_aggregate(where: { is_liked: { _eq: true } }) {\n        aggregate {\n          count\n        }\n      }\n      likes(where: { is_liked: { _eq: true }, user_id: { _eq: $user_id } }) {\n        id\n        is_liked\n        user_id\n      }\n      comments {\n        id\n        comment\n        created_at\n        active\n        user_id\n        user {\n          full_name\n          userDetailsById {\n            displayName\n            avatarUrl\n          }\n        }\n        children: comment_replies {\n          id\n          parent_id\n          comment: reply\n          created_at\n          user_id\n          active\n          user {\n            full_name\n            avatar\n          }\n          comment_likes: reply_likes {\n            id\n            reply_id\n            comment_id\n            user_id\n          }\n          my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n            id\n            reply_id\n            comment_id\n            user_id\n          }\n          children: sub_replies {\n            id\n            parent_id\n            comment: reply\n            created_at\n            user_id\n            active\n            user {\n              full_name\n              avatar\n            }\n            comment_likes: reply_likes {\n              id\n              reply_id\n              comment_id\n              user_id\n            }\n            my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n              id\n              reply_id\n              comment_id\n              user_id\n            }\n            children: sub_replies {\n              id\n              parent_id\n              comment: reply\n              created_at\n              user_id\n              active\n              user {\n                full_name\n                avatar\n              }\n              comment_likes: reply_likes {\n                id\n                reply_id\n                comment_id\n                user_id\n              }\n              my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n                id\n                reply_id\n                comment_id\n                user_id\n              }\n              children: sub_replies {\n                id\n                parent_id\n                comment: reply\n                created_at\n                user_id\n                active\n                user {\n                  full_name\n                  avatar\n                }\n                comment_likes: reply_likes {\n                  id\n                  reply_id\n                  comment_id\n                  user_id\n                }\n                my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n                  id\n                  reply_id\n                  comment_id\n                  user_id\n                }\n              }\n            }\n          }\n        }\n        comment_likes {\n          id\n          comment_id\n          user_id\n          is_liked\n        }\n        my_comment_like: comment_likes(where: { user_id: { _eq: $user_id } }) {\n          id\n          comment_id\n          user_id\n          is_liked\n        }\n      }\n      total_comments: comments_aggregate {\n        aggregate {\n          count\n        }\n      }\n      bookmarks(where: { is_bookmarked: { _eq: true }, user_id: { _eq: $user_id } }) {\n        id\n        is_bookmarked\n        user_id\n      }\n    }\n    total: community_posts_aggregate(where: $where) {\n      aggregate {\n        count\n      }\n    }\n  }\n"]);
1return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,r._)(['\n  query getCommunityGroupDetails($where: community_groups_bool_exp, $user_id: uuid) {\n    community_groups(where: $where) {\n      id\n      active\n      name\n      cover_image\n      description\n      group_type\n      created_at\n      total_members: members_aggregate(where: { status: { _eq: "accepted" } }) {\n        aggregate {\n          count\n        }\n      }\n      members {\n        id\n        user_id\n        status\n        community_role\n        user_profile {\n          full_name\n          userDetailsById {\n            avatarUrl\n            displayName\n          }\n        }\n      }\n      community_posts(order_by: { created_at: desc }, where: { active: { _eq: true } }) {\n        id\n        active\n        group_id\n        author_id\n        title\n        description\n        content_type\n        poll_ends_at\n        created_at\n        shared_type\n        is_pinned\n        post_urls {\n          id\n          post_id\n          url_type\n          url\n        }\n        profile: community_posts_user {\n          full_name\n          user: userDetailsById {\n            avatarUrl\n          }\n        }\n        total_likes: likes_aggregate(where: { is_liked: { _eq: true } }) {\n          aggregate {\n            count\n          }\n        }\n        likes(where: { is_liked: { _eq: true }, user_id: { _eq: $user_id } }) {\n          id\n          is_liked\n          user_id\n        }\n        comments {\n          id\n          comment\n          created_at\n          active\n          user_id\n          user {\n            full_name\n            userDetailsById {\n              displayName\n              avatarUrl\n            }\n          }\n          children: comment_replies {\n            id\n            comment: reply\n            created_at\n            user_id\n            active\n            user {\n              full_name\n              avatar\n            }\n            comment_likes: reply_likes {\n              id\n              reply_id\n              comment_id\n              user_id\n            }\n            my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n              id\n              reply_id\n              comment_id\n              user_id\n            }\n            children: sub_replies {\n              id\n              comment: reply\n              created_at\n              user_id\n              active\n              user {\n                full_name\n                avatar\n              }\n              comment_likes: reply_likes {\n                id\n                reply_id\n                comment_id\n                user_id\n              }\n              my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n                id\n                reply_id\n                comment_id\n                user_id\n              }\n              children: sub_replies {\n                id\n                comment: reply\n                created_at\n                user_id\n                active\n                user {\n                  full_name\n                  avatar\n                }\n                comment_likes: reply_likes {\n                  id\n                  reply_id\n                  comment_id\n                  user_id\n                }\n                my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n                  id\n                  reply_id\n                  comment_id\n                  user_id\n                }\n                children: sub_replies {\n                  id\n                  comment: reply\n                  created_at\n                  user_id\n                  active\n                  user {\n                    full_name\n                    avatar\n                  }\n                  comment_likes: reply_likes {\n                    id\n                    reply_id\n                    comment_id\n                    user_id\n                  }\n                  my_comment_like: reply_likes(where: { user_id: { _eq: $user_id } }) {\n                    id\n                    reply_id\n                    comment_id\n                    user_id\n                  }\n                }\n              }\n            }\n          }\n          comment_likes {\n            id\n            comment_id\n            user_id\n            is_liked\n          }\n          my_comment_like: comment_likes(where: { user_id: { _eq: $user_id } }) {\n            id\n            comment_id\n            user_id\n            is_liked\n          }\n        }\n        total_comments: comments_aggregate {\n          aggregate {\n            count\n          }\n        }\n        bookmarks(where: { is_bookmarked: { _eq: true }, user_id: { _eq: $user_id } }) {\n          id\n          is_bookmarked\n          user_id\n        }\n      }\n    }\n  }\n']);
1return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,r._)(['\n  query getUserCounts($author_id: uuid) {\n    total_posts: community_posts_aggregate(where: { _and: [{ active: { _eq: true } }, { author_id: { _eq: $author_id } }] }) {\n      aggregate {\n        count\n      }\n    }\n    total_following: user_followers_aggregate(where: { _and: [{ user_id: { _eq: $author_id } }, { status: { _eq: "accepted" } }, { is_blocked: { _eq: false } }] }) {\n      aggregate {\n        count\n      }\n    }\n    total_followers: user_followers_aggregate(where: { _and: [{ follower_id: { _eq: $author_id } }, { status: { _eq: "accepted" } }, { is_blocked: { _eq: false } }] }) {\n      aggregate {\n        count\n      }\n    }\n  }\n']);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,r._)(["\n  query getMasterCommunityTags {\n    community_tags {\n      id\n      title\n      active\n    }\n  }\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,r._)(["\n  query getUserPollVote($userId: uuid!, $postId: uuid!) {\n    community_post_polls(where: { user_id: { _eq: $userId }, post_id: { _eq: $postId } }, limit: 1) {\n      id\n      post_id\n      poll_answered\n    }\n  }\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,r._)(["\n  query getAdobeMyPostActivity($userId: uuid!, $groupId: uuid!) {\n    likes: community_post_likes(\n      where: {\n        is_liked: { _eq: true }\n        user_id: { _neq: $userId }\n        post: {\n          author_id: { _eq: $userId }\n          group_id: { _eq: $groupId }\n          active: { _eq: true }\n        }\n      }\n      order_by: { created_at: desc }\n      limit: 30\n    ) {\n      id\n      created_at\n      post_id\n      user {\n        displayName\n        avatarUrl\n      }\n      post {\n        id\n        description\n      }\n    }\n    comments: community_post_comments(\n      where: {\n        active: { _eq: true }\n        user_id: { _neq: $userId }\n        post: {\n          author_id: { _eq: $userId }\n          group_id: { _eq: $groupId }\n          active: { _eq: true }\n        }\n      }\n      order_by: { created_at: desc }\n      limit: 30\n    ) {\n      id\n      created_at\n      comment\n      post_id\n      user {\n        full_name\n        avatar\n      }\n      post {\n        id\n        description\n      }\n    }\n  }\n"]);return _templateObject12=function(){return e},e}(0,i.Ps)(_templateObject()),(0,i.Ps)(_templateObject1());let s=(0,i.Ps)(_templateObject2()),_=(0,i.Ps)(_templateObject3()),l=(0,i.Ps)(_templateObject4()),a=(0,i.Ps)(_templateObject5()),o=(0,i.Ps)(_templateObject6()),u=(0,i.Ps)(_templateObject7()),d=(0,i.Ps)(_templateObject8()),c=(0,i.Ps)(_templateObject9()),m=(0,i.Ps)(_templateObject10()),p=(0,i.Ps)(_templateObject11()),y=(0,i.Ps)(_templateObject12())},30947:function(e,n,t){t.d(n,{HW:function(){return o},Pb:function(){return s},_N:function(){return a},bl:function(){return l},dZ:function(){return c},dg:function(){return _},tg:function(){return d},yX:function(){return u}});var r=t(82729),i=t(41791);function _templateObject(){let e=(0,r._)(['\n    free_resources:webinars(order_by:{created_at:desc},limit:5,where:{ price_type:{_eq:"free"} }) {\n      id\n      active\n      slug\n      image_cover\n      thumbnail\n    }\n']);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n  query getAllCourses($limit: Int, $offset: Int, $order_by: [webinars_order_by], $where: webinars_bool_exp) {\n    courses: webinars(limit: $limit, offset: $offset, order_by: $order_by, where: $where) {\n      id\n      active\n      thumbnail\n      image_cover\n      price\n      organization_price\n      course_type\n      start_date\n      webinars_enum_course_type {\n        label\n      }\n      seo_description\n      skill_level\n      teacher_id\n      category_id\n      category {\n        slug\n      }\n      path\n      upload_type\n      slug\n      slugtitle\n      temp_instructor_name\n      temp_instructor_image\n      reviews: webinar_reviews {\n        id\n        rate\n      }\n      instructor {\n        displayName\n      }\n    }\n    filter_aggre: webinars_aggregate(where: $where) {\n      aggregate {\n        count\n      }\n    }\n    course_aggre: webinars_aggregate {\n      aggregate {\n        count\n      }\n    }\n  }\n"]);
1return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,r._)(["\n  query getAllCourses($where: webinars_bool_exp) {\n    webinars(where: $where) {\n      id\n      slug\n      title\n    }\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,r._)(["\n  query getCourseReview($where: webinar_reviews_bool_exp) {\n    reviews: webinar_reviews(where: $where) {\n      id\n      webinar_id\n      creator_id\n      creator {\n        displayName\n      }\n      rate\n    }\n  }\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,r._)(["\n  query getCoursesByCategories($where: webinars_bool_exp) {\n    webinars(where: $where) {\n      id\n      slug\n      thumbnail\n      image_cover\n      instructor_id\n      instructor {\n        displayName\n      }\n    }\n  }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,r._)(["\n  query getUpcomingWebinars($where: webinars_bool_exp) {\n    webinars {\n      id\n      slug\n      thumbnail\n      image_cover\n    }\n  }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,r._)(["\n  query getRecommendedCourses {\n    recommendations(where: { active: { _eq: true } }) {\n      id\n      active\n      course_id\n      category\n      webinar {\n        slug\n        price\n        price_type\n        thumbnail\n        reviews: webinar_reviews {\n          rate\n        }\n        temp_instructor_name\n        temp_instructor_image\n        instructor {\n          displayName\n        }\n        slugtitle\n      }\n    }\n  }\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,r._)(["\n  query getTrending($limit: Int) {\n    trending_items: get_search_history_with_webinars(limit: $limit) {\n      category\n      course_id\n      course_price\n      course_slug\n      course_thumbnail\n      instructor_name\n      search_count\n      keyword\n    }\n  }\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,r._)(["\n  query getMapping($where: test_slots_dates_mapping_bool_exp) {\n    mappings: test_slots_dates_mapping(where: $where) {\n      track_id\n      test_track {\n        id\n        name\n      }\n      test_date {\n        id\n        exam_date\n      }\n      test_time_slot {\n        id\n        start_time\n        end_time\n      }\n    }\n  }\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,r._)(["\n  query getActiveEvents($where: events_bool_exp) {\n    events(where: $where) {\n      id\n      active\n      name\n      slug\n      starts_at\n      ends_at\n    }\n  }\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,r._)(['\n  query getEventTracks {\n    test_tracks(\n      where: {\n        name: {\n          _in: ["Primary English medium (English, Maths, EVS together)", "Middle School English", "Middle School Maths", "Middle School Science", "Middle School Social Studies"]\n        }\n      }\n    ) {\n      id\n      name\n    }\n  }\n']);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,r._)(["\n  query getTrending($limit: Int) {\n    trending_items: get_search_history_with_webinars(limit: $limit) {\n      category\n      course_id\n      course_price\n      course_slug\n      course_thumbnail\n      instructor_name\n      search_count\n      slug\n      keyword\n    }\n  }\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,r._)(["\n  query getRecommendedCourses($limit: Int, $offset: Int, $where: recommendations_bool_exp, $order_by: [recommendations_order_by!]) {\n    recommendations(where: $where, limit: $limit, offset: $offset, order_by: $order_by) {\n      id\n      active\n      course_id\n      category\n      webinar {\n        id\n        slug\n        price\n        price_type\n        thumbnail\n        course_type\n        reviews: webinar_reviews {\n          rate\n        }\n        temp_instructor_name\n        temp_instructor_image\n        instructor {\n          displayName\n        }\n        slugtitle\n      }\n    }\n    total: recommendations_aggregate(where: $where) {\n      aggregate {\n        count\n      }\n    }\n  }\n"]);
1return _templateObject12=function(){return e},e}function _templateObject13(){let e=(0,r._)(["\n  query getQuizDay($where: quiz_of_day_bool_exp, $limit: Int!, $offset: Int!) {\n    quiz: quiz_of_day(where: $where, limit: $limit, offset: $offset, order_by: { created_at: desc }) {\n      id\n      active\n      question_title\n      question_answer\n      question_options\n      reward_points\n    }\n  }\n"]);return _templateObject13=function(){return e},e}function _templateObject14(){let e=(0,r._)(["\n  query getMyQuiz($where: user_quizzes_bool_exp) {\n    user_quizzes(where: $where) {\n      id\n      user_id\n      quiz_id\n      selected_answer\n    }\n  }\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){let e=(0,r._)(["\n  query getUserLearning($where: user_course_learning_bool_exp, $limit: Int, $offset: Int) {\n    learning: user_course_learning(where: $where, limit: $limit, offset: $offset) {\n      id\n      webinar_id\n      user_id\n      lesson_ids\n      webinar {\n        id\n        thumbnail\n        slug\n        slugtitle\n        course_type\n        price\n        price_type\n        description: webinar_translations {\n          description\n        }\n        chapters {\n          id\n          product_id\n          chapter_no\n          title\n          description\n          created_at\n          lessons {\n            id\n            chapter_id\n            title\n            description\n            lesson_url\n            active\n            lesson_type\n            content {\n              id\n              lesson_id\n              type\n              image_url\n              image_type\n              video_url\n              video_type\n              youtube_url\n              title\n              description\n            }\n          }\n        }\n        files {\n          id\n          file\n          file_translations {\n            title\n          }\n        }\n        files_aggregate {\n          aggregate {\n            count\n          }\n        }\n        reviews: webinar_reviews {\n          rate\n        }\n      }\n    }\n  }\n"]);return _templateObject15=function(){return e},e}function _templateObject16(){let e=(0,r._)(["\n  query getCartsList($where: cart_bool_exp) {\n    cart(where: $where) {\n      id\n      webinar_id\n      webinar {\n        slug\n        price\n        slugtitle\n        thumbnail\n        teacher_id\n        reviews: webinar_reviews {\n          rates\n        }\n        instructor {\n          displayName\n        }\n      }\n    }\n  }\n"]);return _templateObject16=function(){return e},e}function _templateObject17(){let e=(0,r._)(["\n  query getUserLearning($where: user_course_learning_bool_exp) {\n    learning: user_course_learning(where: $where) {\n      id\n      active\n      webinar_id\n      lesson_ids\n      webinar {\n        slug\n        course_type\n        description: webinar_translations {\n          description\n        }\n        course_learns: webinars_course_learns {\n          id\n          description\n        }\n        chapters {\n          id\n          product_id\n          chapter_no\n          title\n          description\n          created_at\n          lessons {\n            id\n            chapter_id\n            title\n            description\n            lesson_url\n            active\n            lesson_type\n            lesson_duration\n            content {\n              id\n              lesson_id\n              type\n              image_url\n              image_type\n              video_url\n              video_type\n              youtube_url\n              title\n              description\n            }\n          }\n        }\n        files_aggregate {\n          aggregate {\n            count\n          }\n        }\n        reviews: webinar_reviews(where: { active: { _eq: true } }) {\n          id\n          creator_id\n          description\n          rate\n          active\n          created_at\n          creator {\n            displayName\n          }\n        }\n      }\n    }\n  }\n"]);
1return _templateObject17=function(){return e},e}function _templateObject18(){let e=(0,r._)(["\n  query getActiveBanner($where: banners_bool_exp) {\n    banners(where: $where) {\n      id\n      active\n      image_url\n      redirect_url\n      mobile_url\n      title\n      description\n      buttons\n    }\n  }\n"]);return _templateObject18=function(){return e},e}function _templateObject19(){let e=(0,r._)(["\n  query getPendinRegistration($where: webinar_session_registers_bool_exp) {\n    registrations: webinar_session_registers(where: $where, order_by: { created_at: desc }) {\n      id\n      webinar {\n        id\n        slug\n        slugtitle\n        webinars_enum_course_type {\n          label\n        }\n        start_date\n        price\n        thumbnail\n        session_start_time\n        session_end_time\n        course_type\n      }\n      reg_user_id\n      test_date\n      name\n      email\n      test_date\n      test_track\n      dob\n    }\n  }\n"]);return _templateObject19=function(){return e},e}function _templateObject20(){let e=(0,r._)(["\n  query getUpcomingRegistration($where: webinar_session_registers_bool_exp) {\n    registrations: webinar_session_registers(where: $where, order_by: { created_at: desc }) {\n      active\n      id\n      status\n      old_register_id\n      is_participated\n      webinar {\n        id\n        slug\n        slugtitle\n        thumbnail\n        course_type\n        price\n        teacher_id\n        start_date\n        session_start_time\n        session_end_time\n        session_link\n        webinars_enum_course_type {\n          label\n        }\n      }\n      orders {\n        id\n        amount\n        tax\n        total_discount\n        total_amount\n        created_at\n      }\n    }\n  }\n"]);return _templateObject20=function(){return e},e}function _templateObject21(){let e=(0,r._)(["\n  query getCourseById($where: webinars_bool_exp) {\n    webinars(where: $where) {\n      id\n      active\n      slug\n      slugtitle\n      course_type\n      price\n      price_usd\n      price_type\n    }\n  }\n"]);return _templateObject21=function(){return e},e}function _templateObject22(){let e=(0,r._)(["\n  query getCarousalData($where: cfs_banners_bool_exp) {\n    cfs_banners(where: $where) {\n      id\n      image_url\n      redirect_url\n    }\n  }\n"]);return _templateObject22=function(){return e},e}(0,i.Ps)(_templateObject());let s=(0,i.Ps)(_templateObject1());(0,i.Ps)(_templateObject2()),(0,i.Ps)(_templateObject3()),(0,i.Ps)(_templateObject4()),(0,i.Ps)(_templateObject5()),(0,i.Ps)(_templateObject6());let _=(0,i.Ps)(_templateObject7()),l=(0,i.Ps)(_templateObject8()),a=(0,i.Ps)(_templateObject9()),o=(0,i.Ps)(_templateObject10());(0,i.Ps)(_templateObject11());let u=(0,i.Ps)(_templateObject12());(0,i.Ps)(_templateObject13()),(0,i.Ps)(_templateObject14()),(0,i.Ps)(_templateObject15()),(0,i.Ps)(_templateObject16()),(0,i.Ps)(_templateObject17()),(0,i.Ps)(_templateObject18()),(0,i.Ps)(_templateObject19()),(0,i.Ps)(_templateObject20());let d=(0,i.Ps)(_templateObject21()),c=(0,i.Ps)(_templateObject22())}}]);

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.