1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9426],{67816:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(13179),i=r(51436),o=r(11163),s=r(56746),a=r(51291),c=r(35944);function u(t){var e=(0,o.useRouter)();return(0,c.BX)(l,{dark:t.dark,gray:t.gray,className:t.className,onClick:function(){t.back&&e.push(t.back)},children:[t.gray?(0,c.tZ)(a.C,{icon:i.A35}):(0,c.tZ)(a.C,{icon:i.wzR}),(0,c.tZ)(d,{dark:t.dark,children:t.children||"Back"})]})}var l=(0,n.Z)(s.qk,{target:"e4q9yh1"})("margin-right:1rem;width:max-content;cursor:pointer;--tw-text-opacity:1;color:rgb(41 59 97 / var(--tw-text-opacity));:hover{--tw-text-opacity:1;color:rgb(255 159 69 / var(--tw-text-opacity));} ",function(t){return t.dark&&{"--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}}," ",function(t){return t.gray&&{"--tw-text-opacity":"1",color:"rgb(149 154 164 / var(--tw-text-opacity))"}},";"),d=(0,n.Z)("button",{target:"e4q9yh0"})("font-family:Saira;font-weight:600;color:inherit;text-transform:uppercase; ",function(t){return t.dark&&{"--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}},";")},7093:function(t,e,r){"use strict";var n=r(59499),i=r(13179),o=r(99580),s=r(99604),a=r(35944);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var u={name:"1p111a6",styles:"--tw-text-opacity:1;color:rgb(219 73 27 / var(--tw-text-opacity))"},l=(0,i.Z)("div",{target:"e1b5bghq0"})({name:"8azll0",styles:"margin-bottom:1rem; &>*+*{margin-top:0.25rem;;}"});e.Z=function(t){return(0,a.BX)(l,{className:t.className,children:[(0,a.BX)(o.Z,{bold:t.bold,children:[t.label," ",t.required&&(0,a.tZ)("span",{css:u,children:"*"})]}),(0,a.tZ)(s.Z,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){(0,n.Z)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({bgColor:t.bgColor,error:t.validate&&t.required&&!t.value},t))]})}},39270:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(13179),i=r(75743),o=r(40534);r(4128);var s=r(35944);function a(t){return(0,s.BX)(s.HY,{children:[(0,s.tZ)(i.Z,{gray:t.grayHeader,active:t.active}),(0,s.tZ)(c,{bgGray:t.bgGray,children:t.children}),(0,s.tZ)(o.Z,{})]})}var c=(0,n.Z)("main",{target:"eaeyimt0"})(function(t){return t.bgGray&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(250 250 253 / var(--tw-bg-opacity))"}},";")},37057:function(t,e,r){"use strict";r.d(e,{Z:function(){return Z}});var n=r(39270),i=r(13179),o=r(63153),s=r(65923),a=r(41664),c=r.n(a),u=r(11163),l=r(51444),d=r(35944),h=(0,i.Z)("div",{target:"e865t1g1"})({name:"tf3a9d",styles:"width:max-content;padding-left:1rem;padding-right:1rem;padding-top:2rem;padding-bottom:2rem;@media (min-width: 979px){position:sticky;left:0px;top:5rem;margin-right:2.5rem;padding-left:0px;padding-right:0px;padding-top:0px;padding-bottom:0px;}"}),p=(0,i.Z)(s.Z,{target:"e865t1g0"})("font-family:Saira;font-weight:500;font-size:16px;color:#959AA4;display:block;text-transform:uppercase; ",function(t){return t.active&&{"--tw-text-opacity":"1",color:"rgb(237 122 20 / var(--tw-text-opacity))"}},";"),g=function(t){var e=(0,u.useRouter)().query.slug;return(0,d.tZ)(h,{children:(0,d.BX)(o.Z,{children:[(0,d.tZ)(p,{href:(0,l.kL)(e),as:c(),active:"details"===t.activePage,prefetch:!1,children:"DETAILS"}),(0,d.tZ)(p,{href:(0,l.oV)(e),as:c(),active:"member-settings"===t.activePage,prefetch:!1,children:"MEMBER SETTINGS"})]})})},f=r(56746),m=r(4128),b=r(7131),y=r(67816),v={name:"flyjlq",styles:"padding-left:1rem;padding-right:1rem;@media (min-width: 979px){padding-left:0px;padding-right:0px;}"},O={name:"1yp7290",styles:"margin-bottom:2rem"},w={name:"1h026t7",styles:"margin-bottom:1.5rem"},Z=function(t){return(0,d.tZ)(n.Z,{grayHeader:!0,children:(0,d.BX)(m.ZP,{children:[(0,d.BX)("div",{css:v,children:[(0,d.tZ)(y.Z,{back:"/partner/communities",gray:!0,css:O}),(0,d.tZ)(b.X6,{css:w,children:"Community Settings"})]}),(0,d.BX)(f.e9,{itemsStart:!0,children:[(0,d.tZ)(g,{activePage:t.activePage}),t.children]})]})})}},99604:function(t,e,r){"use strict";r.d(e,{Z:function(){return d}});var n=r(59499),i=r(47125),o=r(94269);r(70731);var s=r(35944);function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?a(Object(r),!0).forEach(function(e){(0,n.Z)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var u=(0,i.Z)("white"),l={default:"#393B40",DEFAULT:"#393B40"};function d(t){var e=t.bgColor,r=t.textColor,n=t.error,a=t.bgSelected,d=t.selectedColor;return(0,s.tZ)(o.ZP,c({defaultValue:0,label:"Single select",styles:{indicatorSeparator:function(){return{display:"none"}},menu:function(t){return c(c({},t),{},{border:"none",color:"black"})},placeholder:function(t){return c(c({},t),{},{color:r||"#1B1C1E",opacity:"0.8"})},control:function(t){return c(c({},t),{},{backgroundColor:e||"white",border:"none",borderRadius:0,borderBottom:"1px solid",borderBottomColor:n?"#FF0000":"#D9DBE1",paddingTop:"4px",paddingBottom:"4px"})},singleValue:function(t){return c(c({},t),{},{color:r||"#1B1C1E"})},option:function(t,e){e.data;var r=e.isDisabled,n=e.isFocused,o=e.isSelected;return c(c({},t),{},{backgroundColor:r?null:o?a||"#D9DBE1":n?u.alpha(.1).css():null,color:r?"#ccc":o?d||(i.Z.contrast(u,"white")>2?"white":"black"):l,cursor:r?"not-allowed":"default",":active":c(c({},t[":active"]),{},{backgroundColor:!r&&(o?l:u.alpha(.3).css())})})}}},t))}},69031:function(t,e,r){"use strict";var n=(0,r(13179).Z)("div",{target:"e1o2yt7w0"})({name:"f8gnuk",styles:"width:100%;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity));padding:1rem;@media (min-width: 979px){flex:1 1 0%;align-self:stretch;padding:2rem;}"});e.Z=n},74160:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return j}});var n=r(9008),i=r.n(n),o=r(69031),s=r(37057),a=r(13179),c=r(87066),u=r(11163),l=r(67294),d=r(30202),h=r(98029),p=r(70148),g=r(13877),f=r(65276),m=r(42536),b=r(50370);r(56746);var y=r(7093),v=r(90157),O=r(35944),w={name:"akdqam",styles:"margin-top:1rem"},Z={name:"mnzidn",styles:"flex:1 1 0%;padding-top:0.75rem;padding-bottom:0.75rem"};function P(t){var e=[{label:"Private - Anyone who are accepted/invited to join",value:"private"},{label:"Followers - Only my followers can join",value:"follower"}],r=(0,u.useRouter)().query.slug,n=(0,d.NL)(),i=(0,l.useState)(e[0]),o=i[0],s=i[1],a=(0,m.Z)(r);(0,l.useEffect)(function(){a.data&&s("follower"===a.data.community.type?e[1]:e[0])},[a.data]);var P=(0,h.D)({mutationFn:function(t){return c.Z.post("".concat(f.Fe,"/api/route/").concat((0,g.JH)(r)),{type:t.type})},onSuccess:function(){p.Am.success("Community type changed successfully",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0}),n.invalidateQueries({queryKey:["/partners/community/".concat(r,"/edit")]}),close()}});return a.isLoading?(0,O.tZ)(v.Z,{}):(0,O.BX)(x,{children:[(0,O.tZ)(y.Z,{bold:!0,label:"Who can join this community?",value:o,options:e,onChange:function(t){return s(t)},required:!0}),(0,O.tZ)("div",{css:w,children:(0,O.tZ)(b.ZP,{full:!0,secondary:!0,onClick:function(){P.mutate({type:o.value})},css:Z,loading:P.isPending,disabled:P.isPending,children:"SAVE"})})]})}var x=(0,a.Z)("div",{target:"es8iqun0"})({name:"xvginl",styles:"max-width:600px"}),k={name:"k4smol",styles:"--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))"};function j(t){return(0,O.BX)(s.Z,{grayHeader:!0,activePage:"member-settings",children:[(0,O.BX)(i(),{children:[(0,O.tZ)("title",{children:"Community Settings - Engenesis Platform"}),(0,O.tZ)("link",{rel:"icon",href:"/favicon.ico"}),(0,O.tZ)("meta",{name:"description",content:"Engenesis Platform, Insights To Power Your Growth in Business and Life."},"description")]}),(0,O.tZ)(o.Z,{css:k,children:(0,O.tZ)(P,{})})]})}},42536:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(59499),i=r(78551);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?o(Object(r),!0).forEach(function(e){(0,n.Z)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.a)(s(s({queryKey:["/partners/community/".concat(t,"/edit")]},e),{},{staleTime:0}))}},9376:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/c/[slug]/member-settings",function(){return r(74160)}])},29726:function(t,e,r){"use strict";r.d(e,{N:function(){return a}});var n=r(72536),i=r(54948),o=class extends n.z{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:(0,i.Gm)()},e)}getOptimisticResult(t){return t.behavior=(0,i.Gm)(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){let{state:r}=t,n=super.createResult(t,e),{isFetching:o,isRefetching:s,isError:a,isRefetchError:c}=n,u=r.fetchMeta?.fetchMore?.direction,l=a&&"forward"===u,d=o&&"forward"===u,h=a&&"backward"===u,p=o&&"backward"===u;return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.Qy)(e,r.data),hasPreviousPage:(0,i.ZF)(e,r.data),isFetchNextPageError:l,isFetchingNextPage:d,isFetchPreviousPageError:h,isFetchingPreviousPage:p,isRefetchError:c&&!l&&!h,isRefetching:s&&!d&&!p}}},s=r(20364);function a(t,e){return(0,s.r)(t,o,e)}},98029:function(t,e,r){"use strict";r.d(e,{D:function(){return d}});var n=r(67294),i=r(59289),o=r(27037),s=r(7506),a=r(24139),c=class extends s.l{#t;#e=void 0;#r;#n;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.VS)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.Ym)(e.mutationKey)!==(0,a.Ym)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#o(t)}getCurrentResult(){return this.#e}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#i(),this.#o()}mutate(t,e){return this.#n=e,this.#r?.removeObserver(this),this.#r=this.#t.getMutationCache().build(this.#t,this.options),this.#r.addObserver(this),this.#r.execute(t)}#i(){let t=this.#r?.state??(0,i.R)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#o(t){o.V.batch(()=>{if(this.#n&&this.hasListeners()){let e=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#n.onSuccess?.(t.data,e,r),this.#n.onSettled?.(t.data,null,e,r)):t?.type==="error"&&(this.#n.onError?.(t.error,e,r),this.#n.onSettled?.(void 0,t.error,e,r))}this.listeners.forEach(t=>{t(this.#e)})})}},u=r(30202),l=r(86290);function d(t,e){let r=(0,u.NL)(e),[i]=n.useState(()=>new c(r,t));n.useEffect(()=>{i.setOptions(t)},[i,t]);let s=n.useSyncExternalStore(n.useCallback(t=>i.subscribe(o.V.batchCalls(t)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=n.useCallback((t,e)=>{i.mutate(t,e).catch(l.Z)},[i]);if(s.error&&(0,l.L)(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}}},function(t){t.O(0,[8885,6694,4889,8827,534,2888,9774,179],function(){return t(t.s=9376)}),_N_E=t.O()}]);
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.