PageSourceSearch

https://www.presencing.org/_next/static/chunks/4469-d304607a1c15e1e4.js

js presencing.org collected 2026-09-24 18:15:37 UTC 22,306 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4469],{4469:(e,s,a)=>{a.r(s),a.d(s,{default:()=>R});var l=a(95155),t=a(12115),n=a(12758),i=a.n(n),r=a(20063),c=a(63365),o=a(85387),d=a(65117),m=a(33599),u=a(28613),h=a(58825),p=a(52619),x=a.n(p),g=a(67909),f=a(55337),j=a(10857),y=a(269),b=a(12825),N=a(85937),v=a(94884),w=a(18916),A=a(40274),k=a(76144),_=a(60444),T=a(70926),L=a(71269),C=a(82722),S=a(76282);let F=(0,g.default)(()=>a.e(4e4).then(a.bind(a,4e4)),{loadableGenerated:{webpack:()=>[4e4]}}),E=e=>{let{isOpen:s,onClose:a,data:n,widgetProps:i}=e,{isAuthenticated:c,isConfirmed:o,isAdmin:u,currentUser:h}=(0,L.Ay)(),p=(0,r.useRouter)(),g=(0,C.A)(),[E,M]=(0,t.useState)(!1),[I,O]=(0,t.useState)("about"),[B,q]=(0,t.useState)(!1),{data:R,isLoading:D,mutate:P,isError:H}=(0,S.st)("/prototype-groups/".concat(n.id)),K=i.entityName,z=(0,t.useMemo)(()=>{var e;return h.id==(null==R||null==(e=R.created_by_user)?void 0:e.id)},[h,R]),U=(0,t.useMemo)(()=>D||!R.members?[]:R.members.map(e=>(0,l.jsx)("div",{className:"p-2 float-start",children:(0,l.jsx)(A.A,{user:e,size:40,className:""})},e.id)),[D,R]),V=()=>{M(!0),(0,S.Em)("/prototype-groups/".concat(R.id,"/link"),{linkPageId:i.linkPageId},{method:"POST"}).then(e=>{g({type:"success",message:"".concat(K," linked successfully")}),e.url&&p.push(e.url)}).catch(e=>{console.error(e),g({type:"error",message:"Failed to link ".concat(K)})}).finally(()=>{M(!1)})},G=()=>{M(!0),(0,S.Em)("/prototype-groups/".concat(R.id),null,{method:"DELETE"}).then(()=>{g({type:"success",message:"".concat(K," deleted successfully")}),a(!0)}).catch(e=>{console.error(e),g({type:"error",message:"Failed to delete ".concat(K)})}).finally(()=>{M(!1)})},Y=(0,t.useMemo)(()=>{if(H)return(0,l.jsx)(_.default,{error:H});{var e,s,t,n,r;if(D)return(0,l.jsx)(k.A,{});let h=[R.city,R.country].filter(e=>e).join(", ");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:"mt-n2",children:R.title}),(0,l.jsx)("div",{className:"pi-head-line mb-4"}),(z||u)&&(0,l.jsx)(f.A,{id:"dropdown-basic-button",variant:"sm",className:"position-absolute gear-button",style:{to
1p:"20px",right:"30px"},title:"Options",children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(j.A.Item,{onClick:()=>a(!1,R),children:[(0,l.jsx)("i",{className:"fal fa-pencil"})," Edit ",K]}),i.enableLinking&&!R.linked_group_url&&(0,l.jsx)(T.A,{confirmTitle:i.linkBtnText,confirmText:i.linkInfo,confirmBtnStyle:"primary",confirmBtnText:"yes, that's what I want",onConfirm:V,children:(0,l.jsxs)(j.A.Item,{children:[(0,l.jsx)("i",{className:"fal fa-link"})," ",i.linkBtnText]})}),(0,l.jsx)(T.A,{confirmTitle:"Delete "+K,confirmText:"Are you really sure you want to archive this "+K+"?",onConfirm:G,children:(0,l.jsxs)(j.A.Item,{children:[(0,l.jsx)("i",{className:"fal fa-trash"})," Delete ",K]})})]})}),(0,l.jsxs)(y.A,{defaultActiveKey:I,id:"group-tabs",className:"mb-3",children:[(0,l.jsxs)(b.A,{eventKey:"discussion",title:"Discussion",className:"",children:[o&&(0,l.jsx)(v.A,{title:"Discussion",chatId:R.chat,chatType:"pgroup"}),(!c||!o)&&(0,l.jsx)(w.A,{title:"Discussion",isAuthenticated:c,isConfirmed:o})]}),(0,l.jsx)(b.A,{eventKey:"about",title:"About",className:"",children:(0,l.jsxs)("div",{children:[(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-user",style:{width:"17px",textAlign:"center"}})," Created by:"]})," ",null==(e=R.created_by_user)?void 0:e.full_name,(0,l.jsx)("br",{})]}),(null==(s=R.accupuncture_points)?void 0:s.length)>0&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-scrubber",style:{width:"17px",textAlign:"center"}})," Focus Area",(null==(t=R.accupuncture_points)?void 0:t.length)>1?"s":"",":"]})," ",R.accupuncture_points.map((e,s)=>(0,l.jsxs)("span",{children:[s>0?", ":"",e.title]},s)),(0,l.jsx)("br",{})]}),i.enableLanguages&&R.language&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-globe",style:{width:"17px",textAlign:"center"}})," Language:"]})," ",null==(n=R.language)?void 0:n.name," ",(0,l.jsx)("br",{})]}),i.enableLocations&&h.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",style:{width:"17px",textAlign:"center"}})," Location:"]})," ",h," ",(0,l.jsx)("br",{})]}),i.enableFollowers&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-users",style:{width:"17px",textAlign:"center"}})," Followers:"]})," ",(null==(r=R.members)?void 0:r.length)||0,(0,l.jsx)("br",{})]}),(0,l.jsx)("h4",{className:"mt-4 fw-bold",children:"Description"}),(0,l.jsx)("div",{className:"mt-4",dangerouslySetInnerHTML:{__html:R.description}}),i.enableFollowers&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h4",{className:"mt-4 fw-bold",children:"Followed by"}),(0,l.jsx)("div",{className:"clearfix",children:U}),c&&R.isMember&&(0,l.jsxs)(d.default,{variant:"primary",className:"ms-n2 mt-2",onClick:()=>q(!0),children:[(0,l.jsx)("i",{className:"fal fa-sign-in-alt"})," Invite users"]})]}),i.enableLinking&&!R.linked_group_url&&(0,l.jsx)(m.default,{className:"p-4 mt-5 pi-bd-stone my-3",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h6",{className:"fw-bold",children:i.linkBtnText}),(0,l.jsx)("p",{children:i.linkInfo}),(0,l.jsx)(d.default,{variant:"primary",className:" mt-2",onClick:V,children:i.linkBtnText})]})}),i.enableLinking&&R.linked_group_url&&(0,l.jsx)(m.default,{className:"p-4 mt-5 pi-bd-stone my-3",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h6",{className:"fw-bold",children:i.linkNavBtnText}),(0,l.jsx)("p",{children:i.linkNavInfo}),(0,l.jsx)(x(),{href:R.linked_group_url,children:(0,l.jsx)(d.default,{variant:"secondary",className:"ms-n2 mt-2",children:i.linkNavBtnText})})]})})]})})]})]})}},[D,H,R,c,o]),W=async()=>{M(!0),(0,S.Em)("/prototype-groups/".concat(R.id,"/follow"),{},{method:"POST"}).then(()=>{P(),g({type:"success",message:"".concat(K," followed successfully")})}).catch(e=>{g({type:"error",message:"Failed to follow ".concat(K)})}).finally(()=>{M(!1)})},Z=async()=>{M(!0),(0,S.Em)("/prototype-groups/".concat(R.id,"/unfollow"),{},{method:"POST"}).then(()=>{P(),g({type:"success",message:"".concat(K," left successfully")})}).catch(e=>{console.error(e),g({type:"error",message:"Failed to unfollow ".concat(K)})}).finally(()=>{M(!1)})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(N.A,{show:s,onHide:()=>a(),size:"lg",fullscreen:"lg-down",backdrop:"static",children:[(0,l.jsx)(N.A.Header,{className:"bg-dark",closeButton:!0,children:(0,l.jsx)(N.A.Title,{children:null==R?void 0:R.title})}),(0,l.jsx)(N.A.Body,{children:Y}),(0,l.jsxs)(N.A.Footer,{children:[i.enableFollowers&&!(null==R?void 0:R.isMember)&&(0,l.jsxs)(d.default,{variant:"primary",onClick:W,disabled:E,children:["Follow this ",K.toLowerCase()]}),i.enableFollowers&&!z&&R&&(null==R?void 0:R.isMember)&&(0,l.jsxs)(d.default,{variant:"primary",onClick:Z,disabled:E,children:["Unfollow this ",K.toLowerCase()]}),(0,l.jsx)(d.default,{variant:"secondary",onClick:()=>a(),disabled:E,children:"Close"})]})]}),B&&(0,l.jsx)(F,{url:"/prototype-groups/".concat(n.id,"/invite"),title:"Invite others to follow this ".concat(K.toLowerCase()),isOpen:B,onToggle:()=>q(!1)})]})};E.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,data:i().object.isRequired,widgetProps:i().object.isRequired};var M=a(61633),I=a(67488);let O=e=>{let{isOpen:s,onClose:a,data:n={},widgetProps:i,onSave:r}=e,[o,u]=(0,t.useState)(!1),[h,p]=(0,t.useState)(n.has_location),x=t.useRef(),g=(0,t.useMemo)(()=>{let e={...n};return n.language&&(e.language=n.language.id),e.has_location=n.has_location?"true":"false",e.accupuncture_points=n.accupuncture_points?n.accupuncture_points.map(e=>e.id):[],e},[n]),f=async e=>{u(!0),await r(e),u(!1)};return(0,l.jsxs)(N.A,{show:s,onHide:()=>
1a(n.id),size:"lg",fullscreen:"lg-down",backdrop:"static",children:[(0,l.jsx)(N.A.Header,{className:"bg-dark",closeButton:!0,children:(0,l.jsx)(N.A.Title,{children:(n.id?"Edit ":"Create ")+i.entityName})}),(0,l.jsx)(N.A.Body,{children:(0,l.jsxs)(M.lV,{defaultValues:g,onSubmit:f,ref:x,children:[(0,l.jsx)(m.default,{className:"my-3",children:(0,l.jsx)(M.gE,{children:(0,l.jsx)(M.pd,{name:"title",label:"Title",config:{required:!0}})})}),(0,l.jsxs)(m.default,{className:"my-3",children:[(0,l.jsx)(M.gE,{children:(0,l.jsx)(M.TM,{name:"short_description",label:"Short Description",maxLength:"255",height:80,config:{required:!0,maxLength:255}})}),(0,l.jsxs)("p",{className:"fst-italic text-muted",children:["Enter your intention or a brief summary, what this ",i.entityName.toLowerCase()," is about above (max. 255 characters). ",(0,l.jsx)("br",{}),"This will help others to find your ",i.entityName.toLowerCase(),"."]})]}),(0,l.jsx)(m.default,{className:"my-3",children:(0,l.jsx)(M.gE,{children:(0,l.jsx)(M.sD,{name:"description",label:"Full Description",config:{required:!0}})})}),i.enableLanguages&&(0,l.jsx)(m.default,{className:"my-3",children:(0,l.jsx)(M.gE,{children:(0,l.jsx)(M.pZ,{name:"language",label:"Preferred Language"})})}),i.enableLocations&&(0,l.jsxs)(m.default,{className:"my-3",children:[(0,l.jsxs)(M.gE,{as:c.default,controlId:"location",children:[(0,l.jsx)("label",{className:"form-label",children:"Location"}),(0,l.jsx)("p",{className:"text-muted mb-0",children:"Please choose, wether your group meets at a certain location (“place based”) or if your group is entirely online or global (“interest based”)"}),(0,l.jsx)(M.z6,{name:"has_location",onChange:e=>{p("true"===e)},items:[{label:"interest-based",val:"false"},{label:"place-based",val:"true"}]})]}),(0,l.jsx)(m.default,{className:h?"":" d-none",children:(0,l.jsxs)(M.gE,{as:c.default,children:[(0,l.jsx)("p",{className:"text-muted my-2",children:"Start typing city name below and select from drop-down:"}),(0,l.jsx)(I.A,{name:"address",showStreet:!1})]})})]}),(0,l.jsxs)(M.gE,{className:"mb-3",children:[(0,l.jsx)("label",{className:"mb-0",children:"Focus Area:"}),(0,l.jsx)(M.Hl,{name:"accupuncture_points",className:"py-2"})]})]})}),(0,l.jsxs)(N.A.Footer,{children:[(0,l.jsx)(d.default,{variant:"secondary",onClick:()=>a(n.id),disabled:o,children:"Cancel"}),(0,l.jsx)(d.default,{variant:"primary",onClick:()=>{x.current.submit()},disabled:o,children:"Save"})]})]})};O.propTypes={isOpen:i().bool.isRequired,onToggle:i().func.isRequired,onSave:i().func.isRequired,data:i().object,widgetProps:i().object.isRequired};var B=a(78542);let q=e=>{let s=Object.assign({},q.propDefaults,e),{title:a,type:n,relatedId:i,entityName:p,enableFollowers:x,enableLocations:g,enableLanguages:f,enableCreate:j,hType:y,showLine:b,lineColor:N,anchor:v,fetchLimit:w,showCardHeaderLine:A,cardHeaderLineColor:T}=s,F=(0,r.useRouter)(),{isAuthenticated:R,currentUser:D}=(0,L.Ay)(),P=(0,C.A)(),[H,K]=(0,t.useState)({pageOffset:0}),[z,U]=(0,t.useState)(!1),[V,G]=(0,t.useState)(),[Y,W]=(0,t.useState)([]),[Z,J]=(0,t.useState)(!1),[Q,X]=(0,t.useState)(!1),[$,ee]=(0,t.useState)(!1),[es,ea]=(0,t.useState)(!1),el=(0,r.useSearchParams)();(0,t.useEffect)(()=>{el.has("group")?ee({id:el.get("group")}):$&&ee(!1)},[el]),(0,t.useEffect)(()=>{R&&et()},[H,R]);let et=()=>{U(!0);let e=H.pageOffset||0,s="/prototype-groups/".concat(n,"/").concat(i,"?_start=").concat(e,"&_limit=").concat(w);if(H.q&&(s+="&q=".concat(H.q)),H.language){let e=H.language.map(e=>e.id).join("&lang[]=");s+="&lang[]=".concat(e)}if(H.city&&H.geo_latitude&&H.geo_longitude?s+="&lat=".concat(H.geo_latitude,"&lng=").concat(H.geo_longitude):H.country&&(s+="&country=".concat(H.country)),H.filterAps){let e=H.filterAps.map(e=>e.id).join("&aps[]=");s+="&aps[]=".concat(e)}(0,S.Em)(s).then(e=>{W(H.reset?e.data:Y.concat(e.data)),J(e.hasMore)}).catch(e=>G(e)).finally(()=>U(!1))},en=e=>{F.query.group=e,F.push(F)},ei=(0,t.useMemo)(()=>Y.map(e=>{var s,a,t;let n=[e.city,e.country].filter(e=>e).join(", ");return(0,l.jsx)(c.default,{children:(0,l.jsxs)(o.default,{className:"group-card w-q00 h-100",children:[(0,l.jsxs)(o.default.Body,{className:"h-100",children:[(0,l.jsx)(o.default.Title,{className:"card-title fw-bold h5",children:e.title}),A&&(0,l.jsx)("div",{className:"pi-head-line "+(T||"")}),(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-user",style:{width:"17px",textAlign:"center"}})," Created by:"]})," ",e.created_by_user===D.id?"You":e.created_by_full_name,(0,l.jsx)("br",{})]}),(null==(s=e.accupuncture_points)?void 0:s.length)>0&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-scrubber",style:{width:"17px",textAlign:"center"}})," Focus Area",(null==(a=e.accupuncture_points)?void 0:a.length)>1?"s":"",":"]})," ",e.accupuncture_points.map((e,s)=>(0,l.jsxs)("span",{children:[s>0?", ":"",e.title]},s)),(0,l.jsx)("br",{})]}),f&&e.language&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-globe",style:{width:"17px",textAlign:"center"}})," Language:"]})," ",null==(t=e.language)?void 0:t.name," ",(0,l.jsx)("br",{})]}),g&&n.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",style:{width:"17px",textAlign:"center"}})," Location:"]})," ",n," ",(0,l.jsx)("br",{})]}),x&&e.members&&(0,l.jsxs)("span",{children:[(0,l.jsxs)("span",{className:"pi-fnt-extra-grey",children:[(0,l.jsx)("i",{className:"fal fa-users",style:{width:"17px",textAlign:"center"}})," Followers:"]})," ",e.members,(0,l.jsx)("br",{})]}),(0,l.jsx)("p",{className:"pt-3 fst-italic",dangerouslySetInnerHTML:{__html:e.short_description}})]}),(0,l.jsx)(o.default.Body,{className:"pt-0",children:(0,l.jsxs)(d.default,{variant:"secondary",className:"btn-sm",onClick:()=>en(e.id),children:["More ",(0,l.jsx)("i",{className:"fal fa-angle-right"})]})})]})},e.id)}),[Y]),er=[(0,B.oc)(s)];if(!R)return(0,l.jsxs)("div",{className:"prototype-groups "+er.join(" "),children:[(0,l.jsx)(h.A,{hType:y,showLine:b,lineColor:N,children:a}),(0,l.jsx)(m.default,{className:"pi-chat mx-0 ms-n3 me-md-3 ps-lg-1",children:(0,l.jsx)(c.default,{className:"col-12 col-lg-9",children:(0,l.jsxs)("p",{className:"mt-3 p-3 text-muted bg-light",children:["Login to view the ",p,"s"]})})})]});if(V)return(0,l.jsx)(_.default,{error:V,showMinimal:!0});let ec=()=>{ea({})};return(0,l.jsxs)("div",{className:"prototype-groups "+er.join(" "),children:[v&&""!=v&&(0,l.jsx)("a",{id:v,name:v,className:"anchor",children:v}),(0,l.jsx)(h.A,{hType:y,showLine:b,lineColor:N,children:a}),(0,l.jsx)(u.default,{className:"pi-accordion group-search ps-1 mt-0 mx-n3 pt-n4",activeKey:Q,flush:!0,children:(0,l.jsxs)(u.default.Item,{eventKey:"search",children:[(0,l.jsx)(u.default.Header,{className:"pb-0 mb-n3 mt-0",onClick:e=>{e.preventDefault(),X(!Q&&"search")},children:(0,l.jsxs)(m.default,{children:[(0,l.jsx)(c.default,{className:"col-auto pe-0",children:(0,l.jsx)("i",{className:"fal fa-search fs-4 mt-2 me-0 align-top"})}),(0,l.jsx)(c.default,{children:(0,l.jsxs)("p",{className:"lh-base mt-0",children:[(0,l.jsxs)("strong",{children:["Filter ",p,"s"]}),(0,l.jsx)("br",{}),"Looking for a ",p,"? click here to filter the results displayed below."]})})]})}),(0,l.jsxs)(u.default.Body,{className:"mt-0 nof-line me-1",style:{marginLeft:"35px"}
1,children:[(0,l.jsxs)(M.lV,{className:"mt-1",defaultValues:H,onSubmit:e=>{K({...H,...e,pageOffset:0,reset:!0})},children:[(0,l.jsx)(m.default,{children:(0,l.jsx)(M.gE,{as:c.default,md:12,className:"mb-2",children:(0,l.jsx)(M.pd,{name:"q",type:"search",className:"me-2 w-100",placeholder:"Search in title or description"})})}),(0,l.jsxs)(m.default,{children:[f&&(0,l.jsx)(M.gE,{as:c.default,md:6,className:"mb-2",children:(0,l.jsx)(M.xf,{name:"language",label:"Filter by Language",placeholder:"Click to select one or multiple languages",fetchUrl:"/languages",labelKey:"name"})}),g&&(0,l.jsx)(M.gE,{as:c.default,md:6,className:"mb-2",children:(0,l.jsx)(I.A,{name:"location",label:"Filter by Location",showSelected:!1})})]}),(0,l.jsx)(M.gE,{className:"mb-2",children:(0,l.jsx)(M.xf,{name:"filterAps",label:"Filter by focus area",placeholder:"Click to select one or multiple areas of focus",fetchUrl:"/accupuncture-points",labelKey:"title"})}),(0,l.jsxs)(M.gE,{className:"mb-3 mt-4",children:[(0,l.jsx)(d.default,{variant:"primary",className:"mt-0",type:"submit",children:"Search"}),(0,l.jsx)(d.default,{variant:"secondary",className:"mt-0 ms-2",type:"reset",onClick:()=>{K({pageOffset:0,reset:!0})},children:"Reset"})]})]}),(0,l.jsx)("hr",{})]})]})}),j&&ei.length>5&&(0,l.jsx)(m.default,{children:(0,l.jsx)("div",{className:"mb-5 mt-2  text-left",children:(0,l.jsxs)(d.default,{variant:"primary",className:"px-5",onClick:ec,children:["Add ",p]})})}),!ei.length&&(0,l.jsx)("div",{className:"row mt-5 mb-3",children:(0,l.jsx)("p",{className:"fs-6 text-muted",children:"There are no prototypes available yet, be the first to create one!"})}),ei.length>0&&(0,l.jsx)(m.default,{xs:1,sm:2,md:3,lg:3,className:"d-flex g-4",children:ei}),z&&(0,l.jsx)(k.A,{}),Z&&(0,l.jsx)("div",{className:"text-center mt-5 mb-3",children:(0,l.jsx)(d.default,{variant:"secondary",className:"px-5",onClick:()=>{Z&&K({...H,pageOffset:H.pageOffset+w,reset:!1})},children:"Show More"})}),j&&(0,l.jsx)(m.default,{children:(0,l.jsx)("div",{className:"my-5  text-left",children:(0,l.jsxs)(d.default,{variant:"primary",className:"px-5",onClick:ec,children:["Add ",p]})})}),$&&(0,l.jsx)(E,{isOpen:!!$,data:$,widgetProps:s,onClose:(e,s)=>{delete F.query.group,s?ea(s):e&&et(),F.push(F)}}),es&&(0,l.jsx)(O,{isOpen:!!es,data:es,widgetProps:s,onClose:e=>{ea(!1),e&&en(e)},onSave:e=>{e.id?(0,S.Em)("/prototype-groups/".concat(e.id),e,{method:"PUT"}).then(()=>{P({type:"success",message:"".concat(p," updated successfully")})}).catch(e=>{P({type:"error",message:"Failed to update ".concat(p)})}).finally(()=>{ea(!1),et(),en(e.id)}):(e.entity_name=p,(0,S.Em)("/prototype-groups/".concat(n,"/").concat(i),e,{method:"POST"}).then(()=>{P({type:"success",message:"".concat(p," created successfully")})}).catch(e=>{P({type:"error",message:"Failed to create ".concat(p)})}).finally(()=>{ea(!1),et()}))}})]})};q.propTypes={title:i().string,type:i().string,relatedId:i().number,entityName:i().string,enableFollowers:i().bool,enableLocations:i().bool,enableLanguages:i().bool,enableCreate:i().bool,enableLinking:i().bool,linkPageId:i().number,linkBtnText:i().string,linkInfo:i().string,linkNavBtnText:i().string,linkNavInfo:i().string,marginTop:i().number,marginBottom:i().number,hType:i().string,showLine:i().bool,lineColor:i().string,fetchLimit:i().number,showCardHeaderLine:i().bool,cardHearderLineColor:i().string},q.propDefaults={type:"offering",entityName:"Group",enableFollowers:!1,enableLocations:!0,enableLanguages:!0,enableCreate:!0,enableLinking:!1,linkBtnText:"Create Linked Team",linkInfo:"This will create a team, using the settings of this prototype for the initial values.",linkNavBtnText:"Open Linked Team",marginTop:0,marginBottom:2,showLine:!0,lineColor:"pi-stone",hType:"h3",fetchLimit:16,showCardHeaderLine:!1,cardHeaderLineColor:""};let R=q},18916:(e,s,a)=>{a.d(s,{A:()=>d});var l=a(95155);a(12115);var t=a(12758),n=a.n(t),i=a(33599),r=a(63365),c=a(51458);let o=e=>{let s,{title:a,isAuthenticated:t,isConfirmed:n}=e;return t?n||(s=(0,l.jsx)(c.A,{msg:"Your email must be confirmed before accessing conversations."})):s=(0,l.jsx)("p",{className:"mt-3 p-3 text-muted bg-light",children:"Login to view the conversation"}),(0,l.jsx)(i.default,{className:"pi-chat mx-0 ms-n3 me-md-3 ps-lg-1 mb-4",children:(0,l.jsxs)(r.default,{className:"col-12 col-lg-9",children:[a&&(0,l.jsx)("div",{className:"mx-0 ps-0 row",children:(0,l.jsx)("h3",{className:"ms-0 ps-0 col text-start",children:a})}),s]})})};o.propTypes={title:n().string,isAuthenticated:n().bool,isConfirmed:n().bool};let d=o},94884:(e,s,a)=>{a.d(s,{A:()=>g});
1var l=a(95155),t=a(12115),n=a(12758),i=a.n(n),r=a(33599),c=a(63365),o=a(65117),d=a(83122),m=a(92047),u=a(76144),h=a(88166),p=a(53413);let x=e=>{let{title:s,infoText:a="",chatId:n,chatType:i,readOnly:x,autoFocus:g=!1,messagesLimit:f=10,className:j="mx-0 ms-n3 me-md-3 ps-lg-1"}=e,y=(0,h.A)(n,i),b=(0,p.A)(e=>e.chat.fetchMessages),N=(0,p.A)(e=>e.chat.sendMessage),v=(0,p.A)(e=>e.chat.updateMessage),w=(0,p.A)(e=>e.chat.deleteMessage),A=(0,p.A)(e=>e.chat.reactToMessage),k=(0,p.A)(e=>e.chat.flagMessage),_=(0,p.A)(e=>e.chat.triggerReply),T=(0,t.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f&&(e._limit=f),b({params:e,chatId:n})},[f,b,n]);(0,t.useEffect)(()=>{T()},[T]);let L=e=>{var s;if(e.text||(null==(s=e.attachments)?void 0:s.length))return N({message:e,chatId:n})};return(0,l.jsx)(r.default,{className:"pi-chat "+j,children:(0,l.jsxs)(c.default,{className:"col-12  "+(j.indexOf("fullwidth")>-1?"col-lg-12":"col-lg-9"),children:[s&&(0,l.jsx)("div",{className:"mx-0 ps-0 row",children:(0,l.jsx)("h3",{className:"ms-0 ps-0 col text-start",children:s})}),a&&(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:a}}),!x&&(0,l.jsx)("div",{className:"py-3",children:(0,l.jsx)(m.A,{onSubmit:L,autoFocus:g})}),(0,l.jsx)("div",{className:"comments mb-0",children:(0,l.jsx)(d.A,{messages:(null==y?void 0:y.messages)||[],inlineReplies:!x,onSave:x?null:L,onEdit:x?null:e=>{var s;if(e.text||(null==(s=e.attachments)?void 0:s.length))return v({message:e,chatId:n})},onDelete:x?null:e=>w({messageId:e,chatId:n}),onReply:x?null:e=>{_({messageId:e,chatId:n})},onReact:x?null:(e,s,a)=>A({message:e,reaction:{type:s,userId:a},chatId:n}),onFlag:x?null:(e,s)=>k({messageId:e,comment:s,chatId:n})})}),(!y||y.isLoading)&&(0,l.jsx)(u.A,{}),(0,l.jsx)("div",{className:"text-center my-5",children:(null==y?void 0:y.hasMore)&&(0,l.jsx)(o.default,{variant:"secondary",className:"px-5",onClick:e=>{e.preventDefault(),y.messages&&y.messages.length&&T({before:y.messages[y.messages.length-1].created_at})},children:"SHOW MORE"})})]})})};x.propTypes={title:i().string,infoText:i().string,chatId:i().number.isRequired,chatType:i().string.isRequired,readOnly:i().bool,autoFocus:i().bool,messagesLimit:i().number,className:i().string};let g=t.memo(x)}}]);

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.