1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30194],{30194:(s,e,a)=>{a.r(e),a.d(e,{default:()=>v,propDefaults:()=>y});var l=a(95155),i=a(12115),t=a(21655),r=a.n(t),n=a(52619),c=a.n(n),o=a(85387),d=a(67483),m=a.n(d),h=a(58825),x=a(20555),u=a(60444),j=a(76144),b=a(71269),p=a(96756),g=a(76282),f=a(78542),N=a(75913);let y={filterTags:[],fetchLimit:10,marginTop:0,marginBottom:2,layout:"slider",showLine:!0,lineColor:"pi-stone",hType:"h3",bgcolor:"pi-bg-sky",txtcolor:"pi-pallet-black",bordercolor:"pi-pallet-black",text:"",description:"",auto_play:!0,slide_speed:3},v=s=>{let e,{isAdmin:a}=(0,b.Ay)(),t=(0,N.A)(s,y),{title:n,filterTags:d,fetchLimit:v,hType:A,showLine:_,lineColor:w,layout:L,bgcolor:k,txtcolor:C,bordercolor:B,anchor:E,description:S,auto_play:T,slide_speed:H}=t,V={0:{items:1},568:{items:2},1024:{items:3}},F=(0,i.useMemo)(()=>{let s="_limit=".concat(v);if(d&&d.length){let e=d.map(s=>s.name).join("&tags[]=");s+="&tags[]=".concat(e)}return s},[d,v]),{data:M,isLoading:P,isError:U}=(0,g.st)("/groups/hubs?".concat(F));if(U)return(0,l.jsx)(u.default,{error:U,showMinimal:!0});if(P)return(0,l.jsx)(j.A,{});let G=null==M?void 0:M.data;if(!G||!G.length)return a?(0,l.jsxs)("div",{className:"bg-light text-danger p-5",children:[(0,l.jsx)("pre",{className:"fs-4",children:"[Content - Hubs] No items available (check filters)"}),d&&(0,l.jsxs)("pre",{className:"mb-0",children:["tags: ",d.map(s=>s.name).join(", ")]})]}):null;let I=[(0,f.oc)(t)],R=s=>{var e;return(null==s||null==(e=s.tags)?void 0:e.some(s=>"language-hub"===s.name))?(0,l.jsx)("div",{className:"hub-type language-based",children:"Language Hub"}):(null==s?void 0:s.has_location)?(0,l.jsx)("div",{className:"hub-type location-based",children:"Location based"}):(0,l.jsx)("div",{className:"hub-type interest-based",children:"Interest based"})},D=G.map(s=>{let e=[s.city,s.country].filter(s=>s).join(", ");switch(L){case"slider":return(0,l.jsx)("div",{className:"alice-carousel-item",children:(0,l.jsxs)("div",{className:"card hub-card pb-4 rounded-0 "+(B?B+" border":"border-0")+(k?" "+k:""),children:[(0,l.jsx)("div",{className:"image-container text-center",children:(0,l.jsx)(c(),{href:(0,p.c3)("/community/hubs/".concat(s.slug)),className:"",children:(0,l.jsx)(r(),{src:(0,f.VG)(s.image,"small","hub"),alt:"",layout:"fill",objectFit:"cover"})})}),R(s),(0,l.jsxs)("div",{className:"card-body pb-0 "+(k||""),children:[(0,l.jsx)("h4",{className:"mt-3 "+(C||""),children:s.title}),(0,l.jsx)("div",{className:"pi-head-line pi-ln-stone mt-2"}),(0,l.jsxs)("div",{className:"info-list",children:[s.last_activity_at&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-clock"})," Last activity:"]})," ",(0,f.Ey)(s.last_activity_at)," ",(0,l.jsx)("br",{})]}),s.count_members&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-users"})," Members:"]})," ",s.count_members,(0,l.jsx)("br",{})]}),s.language&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-globe"})," Language:"]})," ",s.language.name," ",(0,l.jsx)("br",{})]}),e.length>0&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-map-marker-alt"})," Location:"]})," ",e," ",(0,l.jsx)("br",{})]})]})]}),(0,l.jsx)(c(),{href:(0,p.c3)("/community/hubs/".concat(s.slug)),className:"mx-3 btn "+(C?C+" ":"")+(C?C.replace("-fnt-","-bd-")+" ":""),style:{alignSelf:"center"},children:"Visit Hub"})]})},s.id);case"cards":return(0,l.jsx)("div",{className:"col-sm-6 col-md-4 col-lg-3 mb-3",children:(0,l.jsxs)(o.default,{className:"pi-border-radius border-1 mb-2",children:[(0,l.jsxs)(c(),{href:(0,p.c3)("/community/hubs/".concat(s.slug)),className:"position-relative no-arrow",style:{height:"150px",overflow:"hidden"},children:[(0,l.jsx)(r(),{src:(0,f.VG)(s.image,"small","hub"),className:"card-img-top",alt:s.title,layout:"fill",objectFit:"cover"}),(0,l.jsx)("div",{className:"spinner-border position-absolute top-50 start-50",style:{zIndex:-1},children:(0,l.jsx)("span",{className:"visually-hidden",children:"Loading..."})})]}),R(s),(0,l.jsxs)(o.default.Body,{children:[(0,l.jsx)("h4",{className:"fw-bold mt-3",children:s.title}),(0,l.jsx)("div",{className:"pi-head-line pi-ln-stone mt-2"}),s.last_activity_at&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-clock"})," Last activity:"]})," ",(0,f.Ey)(s.last_activity_at)," ",(0,l.jsx)("br",{})]}),s.count_members&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-users"})," Members:"]})," ",s.count_members,(0,l.jsx)("br",{})]}),s.language&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-globe"})," Language:"]})," ",s.language.name," ",(0,l.jsx)("br",{})]}),e.length>0&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-map-marker-alt"})," Location:"]})," ",e," ",(0,l.jsx)("br",{})]})]}),(0,l.jsx)(c(),{href:(0,p.c3)("/community/hubs/".concat(s.slug)),className:"mx-5 mb-5 mt-3 btn px-3",style:{alignSelf:"center"},role:"button",children:"Visit Hub"})]})},s.id);case"box-slider":return(0,l.jsx)("div",{className:"alice-carousel-item ",style:{height:"100%",marginBottom:"40px"},children:(0,l.jsx)(c(),{href:(0,p.c3)("/community/hubs/".concat(s.slug)),className:"h-100",children:(0,l.jsxs)("div",{className:"card hub-card pb-4 image pi-border-radius "+(B?B+" border":"border-0"),children:[(0,l.jsx)("div",{className:"h-100",style:{minHeight:"400px"},children:(0,l.jsx)(r(),{src:(0,f.VG)(s.image,"medium","hub"),alt:"",layout:"fill",objectFit:"cover",priority:!0,placeholder:"blur",blurDataURL:"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mM0d3CuBwACqwE7WZLrjQAAAABJRU5ErkJggg=="})}),(0,l.jsx)("div",{className:"offering-overlay",children:(0,l.jsxs)("div",{className:"offering-details",children:[(0,l.jsx)("div",{className:"topper",children:(0,l.jsx)("h4",{children:s.title})}),(0,l.jsxs)("div",{className:"bottomer",children:[s.last_activity_at&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"label",children:[(0,l.jsx)("i",{className:"fal fa-clock"})," Last activity:"]})," ",(0,f.Ey)(s.last_activity_at)," ",(0,l.jsx)("br",{})]}),s.count_members&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"label",children:[(0,l.jsx)("i",{className:"fal fa-users"})," Members:"]})," ",s.count_members,(0,l.jsx)("br",{})]}),s.language&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"label",children:[(0,l.jsx)("i",{className:"fal fa-globe"})," Language:"]})," ",s.language.name," ",(0,l.jsx)("br",{})]}),e.length>0&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"label",children:[(0,l.jsx)("i",{className:"fal fa-map-marker-alt"})," Location:"]})," ",e," ",(0,l.jsx)("br",{})]}),R(s)]})]})})]})})},s.id)}});return"slider"===L?e=(0,l.jsxs)(l.Fragment,{children:[n&&(0,l.jsx)(h.A,{hType:A,showLine:_,lineColor:w,children:n}),(0,l.jsx)("div",{className:"py-5",children:(0,l.jsx)(m(),{mouseTracking:!0,items:D,autoHeight:!1,responsive:V,infinite:T,controlsStrategy:"responsive",autoWidth:!1,disableButtonsControls:!1,autoPlay:T,autoPlayInterval:(null!=H?H:3)*1e3,autoPlayStrategy:"all"})})]}):"cards"===L?e=(0,l.jsxs)(l.Fragment,{children:[n&&(0,l.jsx)(h.A,{hType:A,showLine:_,lineColor:w,children:n}),(0,l.jsx)("div",{className:"flex-row row mt-5 mb-3",children:D})]}):"box-slider"===L&&(e=(0,l.jsxs)("div",{className:"news-box-new d-flex row",children:[(0,l.jsx)("div",{className:"text col-4 col-lg-3",children:(0,l.jsxs)("div",{style:{marginBottom:"40px"},children:[n&&(0,l.jsx)(h.A,{hType:A,showLine:!1,lineColor:w,children:n}),S&&(0,l.jsx)(x.default,{html:S})]})}),(0,l.jsx)("div",{className:"box-slider col-8 col-lg-9 "+((null==D?void 0:D.length)>3?"expanded":""),children:(0,l.jsx)(m(),{mouseTracking:!0,items:D,autoHeight:!1,responsive:V,infinite:!0,controlsStrategy:"responsive",autoWidth:!1,disableButtonsControls:!1,autoPlay:T,autoPlayInterval:(null!=H?H:3)*1e3,autoPlayStrategy:"all"})})]})),(0,l.jsxs)("div",{className:"pi-content-hubs "+I.join(" "),children:[E&&""!==E&&(0,l.jsx)("a",{id:E,className:"anchor",children:E}),e]})}}}]);
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.