PageSourceSearch

https://www.goodcompany.com.au/_next/static/chunks/pages/admin/bac…/[id]/community-422d630fd74c9f07.js

js goodcompany.com.au collected 2026-10-02 11:24:30 UTC 27,354 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2465110e-f617-4475-990e-4dc5d2b52f33",e._sentryDebugIdIdentifier="sentry-dbid-2465110e-f617-4475-990e-4dc5d2b52f33")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[911],{532:(e,t,n)=>{"use strict";n.d(t,{Lw:()=>v,yB:()=>r.A});var r=n(84974),a=n(37876),o=n(14232);n(30063),n(80828);var i=n(15039),l=n.n(i),s=n(8949),c=n(35070),d=n(68441),u=n(44264),p=n(45991);let h=u.Ay.div.withConfig({componentId:"sc-13b73589-0"})(["background-color:#ffffff;position:fixed;z-index:400;top:5.1428571rem;right:0;left:0;"]),m=e=>{let{titleList:t,selected:n,hidePreviousButton:r,onClickBack:o,onNavigate:i}=e,l=t.map(e=>{let{id:t,title:n}=e;return{id:String(t),label:n}}),s=null!=n?String(n):l.length>0?l[0].id:void 0;return(0,a.jsx)(h,{children:(0,a.jsx)(p.A,{onClickBack:o,onNavigate:i,stepList:l,currentStep:s,hideLeftButton:r})})};var g=n(19818),f=n(7550),x=n.n(f);let v=e=>{let{actions:t,onPrevious:n,onNext:r,children:i,showTopCard:u,titleList:p,pageIndex:h,topTitle:f,tipsOpen:v,onCloseTips:y,hidePreviousButton:b=!1}=e,w=(0,o.useContext)(g.f5);return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(d.TD,{}),(0,a.jsxs)("header",{className:x().header,children:[(0,a.jsx)("div",{className:x().logoContainer,children:(0,a.jsx)("a",{href:"/","aria-label":"Home",children:(0,a.jsx)("img",{className:x().logoImage,src:w.getLogoUrl(),height:60,alt:"Logo"})})}),(0,a.jsx)("div",{className:x().progressContainer,children:(0,a.jsx)(s.E,{as:"h1",fontWeight:"medium",children:f})}),(0,a.jsx)("div",{className:x().actionsContainer,children:null==t?void 0:t.map((e,t)=>(0,a.jsx)(c.$,{onClick:e.onAction,url:e.url,target:e.external?"_blank":void 0,tone:e.destructive?"critical":void 0,disabled:e.disabled,icon:e.icon,children:e.content},t))})]}),u&&0!=h&&(0,a.jsx)(m,{onClickBack:n,onNavigate:r,titleList:p,selected:h,hidePreviousButton:b}),(0,a.jsxs)("main",{className:l()(x().main,0===h&&x().extraPadding),children:[(0,a.jsx)("div",{className:x().pageControl,children:!1}),(0,a.jsx)("div",{className:x().pageContent,children:i}),(0,a.jsx)("div",{className:x().pageControl,children:!1})]})]})}},7550:e=>{e.exports={logoContainer:"CreateScreenLayout_logoContainer__2fp5V",progressContainer:"CreateScreenLayout_progressContainer__4DD_0",progressBar:"CreateScreenLayout_progressBar__xgvqz",actionsContainer:"CreateScreenLayout_actionsContainer__8_h8E",main:"CreateScreenLayout_main__p0uYF",pageControl:"CreateScreenLayout_pageControl__B_bMn",pageControlButton:"CreateScreenLayout_pageControlButton__f9iHq",pageContent:"CreateScreenLayout_pageContent__bnc4p",hide:"CreateScreenLayout_hide__Rxh8m",extraPadding:"CreateScreenLayout_extraPadding__yrr_a",logoImage:"CreateScreenLayout_logoImage__5b_HQ",header:"CreateScreenLayout_header__hAzxV",skeletonShimmerAnimation:"CreateScreenLayout_skeletonShimmerAnimation__R5i4z"}},12999:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var r=n(14232),a=n(76232),o=n(96132);let i=(0,r.memo)(function(e){let t=(0,r.useId)(),{showToast:n,hideToast:i}=(0,o.j)();return(0,a.h)(()=>(n({id:t,...e}),()=>{i({id:t})}),[e]),null})},13352:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),a=n(81903),o=n(32395);let i=n(44264).Ay.p.withConfig({componentId:"sc-d7bb092a-0"})(["margin-right:10px;"]),l=e=>{let{title:t,text:n,open:l,primaryText:s,secondaryText:c,hideSecondaryAction:d,forceClose:u,onDelete:p,onClose:h}=e;return(0,r.jsx)(a.a,{open:l,onClose:u||h,title:t,primaryAction:{content:s||"Yes",onAction:p},secondaryActions:!d&&[{content:c||"No",onAction:h}],children:(0,r.jsx)(a.a.Section,{children:(0,r.jsx)(o.a,{children:(0,r.jsx)(i,{children:(0,r.jsx)("p",{children:n})})})})})}},19329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>F});var r=n(37876),a=n(14232),o=n(36190),i=n(13352),l=n(49647),s=n(35999),c=n(36987),d=n(29218),u=n(24168),p=n(19818),h=n(66123),m=n(15598),g=n(35602),f=n(84218),x=n(89219);let v=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.u,{title:"Community Details",children:(0,r.jsx)(m.u.Section,{children:(0,r.jsxs)(g.H,{children:[(0,r.jsx)(s.A,{name:"newValue.name",label:"Community Name",component:f.A,disabled:!0,autoComplete:""}),(0,r.jsxs)(g.H.Group,{children:[(0,r.jsx)(s.A,{name:"newValue.contact.address",label:"Address",component:f.A,disabled:!0,autoComplete:""}),(0,r.jsx)(s.A,{name:"newValue.contact.website",label:"Website",component:f.A,disabled:!0,autoComplete:""})]}),(0,r.jsx)(s.A,{name:"newValue.description",label:"Description",component:u.A,conversionRequired:!0})]})})}),(0,r.jsx)(m.u,{title:"Logo",children:(0,r.jsx)(m.u.Section,{children:(0,r.jsxs)(g.H,{children:[(0,r.jsxs)(x.o,{align:"center",blockAlign:"center",gap:"100",wrap:!0,children:[(0,r.jsx)(s.A,{component:c.A,name:"newValue.logoImageUrl",enableSearch:!0,hideFadedPreview:!0,mapProps:e=>{let{value:t,onChange:n}=e;return{...e,value:{url:t||"https://cdn-test.goodcompany.org/unknown/tset.png",source:""},onChange:e=>{n&&n(e.url)}}}}),(0,r.jsx)(d.A,{recHeight:"325",recWidth:"650"})]}),(0,r.jsx)("br",{})]})})}),(0,r.jsx)(m.u,{children:(0,r.jsx)(m.u.Section,{children:(0,r.jsx)(p.f5.Consumer,{children:e=>(0,r.jsx)(g.H,{children:(0,r.jsxs)(g.H.Group,{children:[(0,r.jsx)(s.A,{name:"newValue.abn",label:(0,h.wH)(e.getCountry()),component:f.A,disabled:!0,autoComplete:""}),(0,r.jsx)(s.A,{name:"newValue.contact.phoneNumber",label:"Phone Number (include area code)",component:f.A,disabled:!0,autoComplete:""})]})})})})})]});var y=n(8949),b=n(88052);let w=e=>{let{status:t,name:n}=e;return(0,r.jsx)(m.u,{title:"Community Status",children:(0,r.jsx)(m.u.Section,{children:(0,r.jsxs)(x.o,{align:"space-between",gap:"400",children:[(0,r.jsxs)(y.E,{as:"span",fontWeight:"medium",children:["Community: ",(0,r.jsx)("code",{children:"".concat(n).substring(0,30)})]}),(0,r.jsx)(b.E,{tone:"info",children:t})]})})})};var j=n(45161),_=n.n(j),C=n(82404);let S=e=>{let{newValue:t,oldValue:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.u,{children:(0,r.jsx)(_(),{oldValue:"".concat(null==n?void 0:n.name),newValue:"".concat(t.name),compareMethod:j.DiffMethod.WORDS,hideLineNumbers:!0,showDiffOnly:!1,splitView:!0,leftTitle:"Old Title",rightTitle:"New Title"})}),(0,r.jsx)(m.u,{children:(0,r.jsx)(_(),{oldValue:"".concat((null==n?void 0:n.contact)&&(null==n?void 0:n.contact.address)),newValue:"".concat(t.contact&&t.contact.address),compareMethod:j.DiffMethod.WORDS,hideLineNumbers:!0,showDiffOnly:!1,splitView:!0,leftTitle:"Old Address",rightTitle:"New Address"})}),(0,r.jsx)(m.u,{children:(0,r.jsx)(_(),{oldValue:"".concat((null==n?void 0:n.contact)&&(null==n?void 0:n.contact.website)),newValue:"".concat(t.contact&&t.contact.website),compareMethod:j.DiffMethod.WORDS,hideLineNumbers:!0,showDiffOnly:!1,splitView:!0,leftTitle:"Old Website",rightTitle:"New Website"})}),(0,r.jsx)(m.u,{children:(null==n?void 0:n.description)!==t.description?(0,r.jsx)(_(),{oldValue:null==n?void 0:n.description,newValue:null==t?void 0:t.description,compareMethod:j.DiffMethod.WORDS,hideLineNumbers:!0,showDiffOnly:!1,splitView:!0,leftTitle:"Old Description",rightTitle:"New Description"}):(0,r.jsx)(m.u.Section,{children:(0,r.jsx)(x.o,{align:"center",children:(0,r.jsx)(y.E,{as:"span",children:"Description Unchanged"})})})}),(0,r.jsx)(m.u,{children:(0,r.jsx)(C.EW,{itemOne:(0,r.jsx)(C.D4,{src:"".concat(null==n?void 0:n.logoImageUrl)||"https://cdn-test.goodcompany.org/unknown/tset.png",alt:"Old Image"}),itemTwo:(0,r.jsx)(C.D4,{src:"".concat(t.logoImageUrl),alt:"New Image"})})}),(0,r.jsx)(m.u,{children:(0,r.jsx)(p.f5.Consumer,{children:e=>(0,r.jsx)(_(),{oldValue:"".concat(null==n?void 0:n.abn),newValue:"".concat(t.abn),compareMethod:j.DiffMethod.WORDS,hideLineNumbers:!0,showDiffOnly:!1,splitView:!0,leftTitle:"Old ".concat((0,h.wH)(e.getCountry())),rightTitle:"New ".concat((0,h.wH)(e.getCountry()))})})}),(0,r.jsx)(m.u,{children:(0,r.jsx)(_(),{oldValue:"".concat((null==n?void 0:n.contact)&&(null==n?void 0:n.contact.phoneNumber)),newValue:"".concat(t.contact&&t.contact.phoneNumber),compareMethod:j.DiffMethod.WORDS,hideLineNumbers:!0,showDiffOnly:!1,splitView:!0,leftTitle:"Old PhoneNumber",rightTitle:"New PhoneNumber"})})]})};var A=n(75391),k=n(12999),E=n(83334),L=n(35070);let N=e=>{var t;let{onSaveError:n,saved:o,toggleSave:s,onApprove:c,onDeny:d,validate:u}=e,[p,h]=(0,a.useState)({approveModel:!1,denyModel:!1}),{values:m}=(0,A.j7)(),g=o?(0,r.jsx)(k.y,{content:n?"Error occurred":"Saved",onDismiss:s}):void 0,f=async e=>{await u()&&h(t=>({...t,[e]:!t[e]}))};return(0,r.jsx)(l.A.Slide,{id:"",fields:["oldValue","newValue"],submit:()=>!0,children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w,{name:m.newValue.name,status:m.approvalStatus}),"Update"===m.actionType&&m.oldValue&&m.newValue&&(0,r.jsx)(S,{newValue:m.newValue,oldValue:m.oldValue}),(0,r.jsx)(v,{}),g,n&&(0,r.jsx)(E.lZ,{tone:"critical",children:n}),("ApprovalFailed"===m.approvalStatus||"DenialFailed"===m.approvalStatus)&&(null==(t=m.resultMessages)?void 0:t.length)>0&&(0,r.jsx)(E.lZ,{tone:"critical",title:"This content request failed",children:m.resultMessages[m.resultMessages.length-1].value}),(0,r.jsx)("br",{}),("AwaitingResponse"===m.approvalStatus||"ApprovalFailed"===m.approvalStatus||"DenialFailed"===m.approvalStatus)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(x.o,{align:"end",blockAlign:"center",gap:"200",children:[(0,r.jsx)(L.$,{onClick:()=>f("denyModel"),children:"Deny"}),(0,r.jsx)(L.$,{onClick:()=>f("approveModel"),variant:"primary",children:"Update and Approve"})]}),(0,r.jsx)(i.A,{open:p.approveModel,onClose:()=>f("approveModel"),text:"Are you sure you want to approve this content?",onDelete:()=>{f("approveModel"),null==c||c()}},"approveModel"),(0,r.jsx)(i.A,{open:p.denyModel,onClose:()=>f("denyModel"),text:"Are you sure you want to deny this content?",onDelete:()=>{f("denyModel"),d()}},"denyModel")]})]})})};var D=n(532),R=n(78306),M=n(89099),P=n(28751),V=n(20982),T=n(9938),O=n(80425);let W=e=>{let{id:t}=e,[n,i]=(0,a.useState)({loading:!0,spinnerLoading:!1,errorMessage:void 0,data:void 0,saved:!1}),s=(0,M.useRouter)();(0,a.useEffect)(()=>{c()},[]);let c=async()=>{try{let e=await (0,o.J6)(t);i(t=>({...t,loading:!1,data:e}))}catch(e){i(t=>({...t,loading:!1,errorMessage:e.message}))}},d=()=>{i(e=>({...e,saved:!e.saved}))},u=async e=>{try{e.denied?(i(e=>({...e,spinnerLoading:!0})),await (0,o.s9)(t)):(i(e=>({...e,spinnerLoading:!0})),await (0,o.tK)(t,{contentDomain:e.contentDomain,community:e.newValue,hasContentChangedByApprover:e.hasContentChangedByApprover})),i({...n,saved:!n.saved}),s.push("/".concat((0,T.JJ)(),"/admin/backoffice/content-approval"))}catch(e){i({...n,spinnerLoading:!1,onSaveError:e})}};return(0,r.jsx)(D.yB,{title:"Community Profile",adminArea:"backoffice",loading:n.loading,errorMessage:n.errorMessage,showSpinnerLoading:n.spinnerLoading,backAction:{content:"Content Approval",url:"/admin/backoffice/content-approval"},children:(0,r.jsx)(O.P,{sectioned:!0,children:(0,r.jsx)(l.A,{defaultData:function(){let{data:e}=n;return{...e,newValue:e&&e.proposedContent&&e.proposedContent.newValue,oldValue:e&&e.proposedContent&&e.proposedContent.oldValue}}(),onAfterValidate:()=>{},onSubmit:u,children:e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(R.A,{formikProps:e,headerOffset:200}),(0,r.jsx)(N,{toggleSave:d,onApprove:()=>{e.setFieldValue("hasContentChangedByApprover",e.dirty),e.submitForm(
1)},onDeny:()=>{e.setFieldValue("denied",!0),e.submitForm()},validate:async()=>(await e.validateForm(),e.isValid)})]})})})})};W.getInitialProps=async e=>({id:e.query.id});let F=(0,V.Y)(P.x.BackOffice_ManageCharities)(W)},20982:(e,t,n)=>{"use strict";n.d(t,{Y:()=>c});var r=n(36190),a=n(69034),o=n(93087),i=n(9938),l=n(53965);let s=async e=>{let t=await r.LN(e.req),n=(await (0,i.KU)(l.RootClient,e.req)).getRoot(),o=(await n).currentSite.features;return[...(0,a.bJ)(t)?[]:t.items,...o]},c=(0,o.Lu)(s)},24168:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(37876),a=n(14232),o=n(18847),i=n.n(o),l=n(36020),s=n.n(l),c=n(9348),d=n.n(c),u=n(2682),p=n(32395),h=n(8949),m=n(94089),g=n(12999),f=n(82027);let x=e=>{let{value:t,id:o,error:l,placeholder:c,isRequired:x=!1,conversionRequired:v=!1,convertPermanent:y=!1,readonly:b,label:w,minHeight:j,contentWidth:_,mention:C,onChange:S,onFocus:A}=e,[k,E]=(0,a.useState)(t||""),[L,N]=(0,a.useState)(v),[D,R]=(0,a.useState)(!1),M=(0,a.useMemo)(()=>i()(async()=>n.e(764).then(n.bind(n,80764)).then(e=>e.Editor),{loadableGenerated:{webpack:()=>[80764]},ssr:!1}),[]);(0,a.useEffect)(()=>{if(!t)return void E("");if(t&&L||t&&y){N(!1);let e=C?t.replace(/@(?=\{\{)/g,""):t;E((0,u.AD)(e)&&d().toHTML(e)?d().toHTML(e):e)}},[t,L,y,C]);let P=C?"editor-with-mentions":"editor-basic";return(0,r.jsxs)(p.a,{gap:"100",children:[w&&(0,r.jsx)(h.E,{as:"span",children:w}),(0,r.jsx)("div",{className:x&&!t&&l?s().error:s().shrink,children:(0,r.jsx)(M,{tinymceScriptSrc:"/tinymce/tinymce.min.js",value:k,init:{license_key:"gpl",menubar:!1,convert_urls:!1,plugins:["link","lists","emoticons","autolink","autosave","wordcount","image"],automatic_uploads:!0,image_dimensions:!_,images_upload_handler:async e=>{try{let t=e.blob(),n=new File([t],e.filename(),{type:t.type}),r=await (0,f.imageUpload)(n,"backoffice");if(!(null==r?void 0:r.url))throw Error("Image upload failed");return r.url}catch(e){throw R(!0),Error("Image upload failed")}},toolbar:"undo redo | bold italic underline | bullist numlist | alignleft aligncenter alignright al
1ignjustify | link image emoticons | removeformat",branding:!1,statusbar:!1,placeholder:c,min_height:j||160,readonly:!!b,content_style:"\n              .email-template-token {\n                color: #1f6feb;\n                font-weight: 600;\n              }\n              ".concat(_?"body { max-width: ".concat(_,"px; margin: 0 auto; } img { max-width: 100%; height: auto; }"):"","\n            "),setup:e=>{var t;if(_){let t=e=>{let t=parseInt(e.attr("width")||"",10);if(t&&t<=_)return;e.attr("width",String(_)),e.attr("height",void 0);let n=(e.attr("style")||"").replace(/(width|height)\s*:\s*[\d.]+px;?/gi,"").trim();e.attr("style","".concat(n).concat(n&&!n.endsWith(";")?";":""," height: auto;").trim())};e.on("init",()=>{e.parser.addNodeFilter("img",e=>e.forEach(t)),e.serializer.addNodeFilter("img",e=>e.forEach(t))})}e.on("keydown",t=>{if("Backspace"!==t.key&&8!==t.keyCode)return;let n=e.selection,r=e.dom;if(!n.isCollapsed())return;let a=n.getNode(),o=r.getParent(a,"span.email-template-token");if(o){t.preventDefault(),n.select(o),n.setContent("");return}let i=n.getRng().startContainer;if(i&&3===i.nodeType){let e=i.nodeValue||"";if(/^\s*\{\{[^}]+\}\}\s*$/.test(e)){t.preventDefault();let e=r.createRng();e.setStart(i,0),e.setEnd(i,i.length),n.setRng(e),n.setContent("")}}}),C&&(null==(t=C.suggestions)?void 0:t.length)&&e.ui.registry.addAutocompleter("emailTemplateTokens",{trigger:C.trigger||"@",minChars:0,onAction:(t,n,r)=>{e.selection.setRng(n),e.insertContent(r),t.hide()},fetch:e=>{let t=e.toLowerCase();return Promise.resolve(C.suggestions.filter(e=>!t||e.text.toLowerCase().includes(t)).map(e=>({type:"autocompleteitem",value:'<span class="email-template-token">'.concat(e.value,"</span>"),text:e.text})))}})}},onEditorChange:e=>{E(e),S(e.replace(/<[^>]+>/g,"").trim()?e:"",o)},onFocus:A},P)}),x&&!t&&(0,r.jsx)(m.W,{message:l,fieldID:""}),D&&(0,r.jsx)(g.y,{content:"Image upload failed. Please try again.",error:!0,onDismiss:()=>R(!1)})]})}},29218:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876),a=n(8949);n(14232);let o=e=>{let{recWidth:t,recHeight:n,pdfAccept:o}=e;return n&&t?(0,r.jsx)(a.E,{as:"span",variant:"headingSm",fontWeight:"medium",children:" accepts jpg/png/gif/bmp, recommended ratio minimum width and height of ".concat(t,"px\n    * ").concat(n,"px, max 6mb ").concat(o?" - accepts PDF files":"")}):(0,r.jsx)(a.E,{as:"span",variant:"headingSm",fontWeight:"medium",children:" accepts jpg/png/gif/bmp, for optimal results, please use a landscape image ".concat(o?" - accepts PDF files":"")})}},35602:(e,t,n)=>{"use strict";n.d(t,{H:()=>h});var r=n(14232),a=n(36938),o=n(8484),i={Item:"Polaris-FormLayout__Item",grouped:"Polaris-FormLayout--grouped",condensed:"Polaris-FormLayout--condensed"};function l(e){let{children:t,condensed:n=!1}=e,a=(0,o.xW)(i.Item,n?i.condensed:i.grouped);return t?r.createElement("div",{className:a},t):null}var s=n(32395),c=n(89219),d=n(30414),u=n(8949);function p(e){let t,n,{children:o,condensed:i,title:p,helpText:h}=e,m=(0,r.useId)(),g=null,f=null;h&&(t="".concat(m,"HelpText"),g=r.createElement(d.a,{id:t,color:"text-secondary"},h)),p&&(n="".concat(m,"Title"),f=r.createElement(u.E,{id:n,as:"p"},p));let x=r.Children.map(o,e=>(0,a.ee)(e,l,{condensed:i}));return r.createElement(s.a,{role:"group",gap:"200","aria-labelledby":n,"aria-describedby":t},f,r.createElement(c.o,{gap:"300"},x),g)}let h=(0,r.memo)(function(e){let{children:t}=e;return r.createElement(s.a,{gap:"400"},r.Children.map(t,m))});function m(e,t){return(0,a.qL)(e,p)?e:(0,a.ee)(e,l,{key:t})}h.Group=p},36020:e=>{e.exports={shrink:"draftjs-editor_shrink__dVObq",error:"draftjs-editor_error__shi__",editor:"draftjs-editor_editor__yGsOg",skeletonShimmerAnimation:"draftjs-editor_skeletonShimmerAnimation__SQ4_X"}},49647:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),a=n(14232),o=n(32565),i=n(81318);let l=a.createContext({validateStep:()=>Promise.resolve(!0)});class s extends a.Component{render(){let{defaultData:e,schema:t,onSubmit:n,children:a,historyManager:s,onAfterValidate:c}=this.props;return(0,r.jsx)(o.sQ,{start:"",historyManager:s,children:o=>{let{currentSlide:s}=o;return(0,r.jsx)(i.Si,{defaultData:e,schema:t,currentPage:s,onSubmit:n,onAfterValidate:c,children:e=>{let{validateStep:t,...n}=e;return(0,r.jsx)(l.Provider,{value:{validateStep:t},children:a(n)})}})}})}}s.Slide=function(e){let{fields:t,children:n,id:a,submit:s=!1}=e;return(0,r.jsx)(l.Consumer,{children:e=>{let{validateStep:l}=e;return(0,r.jsx)(i.Si.Page,{id:a,fields:t,submit:s,children:(0,r.jsx)(o.q7,{id:a,singleSlide:!0,onBeforeNavigate:l,children:n})})}})}},51945:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/backoffice/content-approval/[id]/community",function(){return n(19329)}])},80425:(e,t,n)=>{"use strict";n.d(t,{P:()=>d});var r=n(14232),a={Layout:"Polaris-Layout",Section:"Polaris-Layout__Section","Section-fullWidth":"Polaris-Layout__Section--fullWidth","Section-oneHalf":"Polaris-Layout__Section--oneHalf","Section-oneThird":"Polaris-Layout__Section--oneThird",AnnotatedSection:"Polaris-Layout__AnnotatedSection",AnnotationWrapper:"Polaris-Layout__AnnotationWrapper",AnnotationContent:"Polaris-Layout__AnnotationContent",Annotation:"Polaris-Layout__Annotation"},o=n(95740),i=n(8949),l=n(30414),s=n(8484);function c(e){let{children:t,variant:n}=e,o=(0,s.xW)(a.Section,a["Section-".concat(n)]);return r.createElement("div",{className:o},t)}let d=function(e){let{sectioned:t,children:n}=e,o=t?r.createElement(c,null,n):n;return r.createElement("div",{className:a.Layout},o)};d.AnnotatedSection=function(e){let{children:t,title:n,description:s,id:c}
1=e,d="string"==typeof s?r.createElement(i.E,{as:"p",variant:"bodyMd"},s):s;return r.createElement("div",{className:a.AnnotatedSection},r.createElement("div",{className:a.AnnotationWrapper},r.createElement("div",{className:a.Annotation},r.createElement(o.T,{spacing:"tight"},r.createElement(i.E,{id:c,variant:"headingMd",as:"h2"},n),d&&r.createElement(l.a,{color:"text-secondary"},d))),r.createElement("div",{className:a.AnnotationContent},t)))},d.Section=c},80828:e=>{e.exports={header:"minimal_header__XpFdq",main:"minimal_main__ZyzSJ",pageContent:"minimal_pageContent__Mj_hS",skeletonShimmerAnimation:"minimal_skeletonShimmerAnimation__EZC7x"}},82404:(e,t,n)=>{"use strict";n.d(t,{D4:()=>f,EW:()=>g});var r=n(14232),a=n(37876),o=(0,r.forwardRef)(({transition:e,...t},n)=>{let r={position:"absolute",top:0,left:0,width:"100%",height:"100%",transition:e?`clip-path ${e}`:void 0,userSelect:"none",willChange:"clip-path, transition",KhtmlUserSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none"};return(0,a.jsx)("div",{...t,style:r,"data-rcs":"clip-item",ref:n})});o.displayName="ContainerClip";var i=(0,r.forwardRef)(({children:e,disabled:t,portrait:n,position:r,transition:o},i)=>{let l={position:"absolute",top:0,width:n?"100%":void 0,height:n?void 0:"100%",background:"none",border:0,padding:0,pointerEvents:"all",appearance:"none",WebkitAppearance:"none",MozAppearance:"none",outline:0,transform:n?"translate3d(0, -50% ,0)":"translate3d(-50%, 0, 0)",transition:o?`${n?"top":"left"} ${o}`:void 0};return(0,a.jsx)("button",{ref:i,"aria-label":"Drag to move or focus and use arrow keys","aria-orientation":n?"vertical":"horizontal","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":r,"data-rcs":"handle-container",disabled:t,role:"slider",style:l,children:e})});i.displayName="ThisHandleContainer";var l=({flip:e})=>(0,a.jsx)("div",{className:"__rcs-handle-arrow",style:{width:0,height:0,borderTop:"8px solid transparent",borderRight:"10px solid",borderBottom:"8px solid transparent",transform:e?"rotate(180deg)":void 0}}),s=({className:e="__rcs-handle-root",disabled:t,buttonStyle:n,linesStyle:r,portrait:o,style:i,...s})=>{let c={display:"flex",flexDirection:o?"row":"column",placeItems:"center",height:"100%",cursor:t?"not-allowed":o?"ns-resize":"ew-resize",pointerEvents:"none",color:"#fff",...i},d={flexGrow:1,height:o?2:"100%",width:o?"100%":2,backgroundColor:"currentColor",pointerEvents:"auto",boxShadow:"0 0 4px rgba(0,0,0,.5)",...r},u={display:"grid",gridAutoFlow:"column",gap:8,placeContent:"center",flexShrink:0,width:56,height:56,borderRadius:"50%",borderStyle:"solid",borderWidth:2,pointerEvents:"auto",backdropFilter:"blur(7px)",WebkitBackdropFilter:"blur(7px)",backgroundColor:"rgba(0, 0, 0, 0.125)",boxShadow:"0 0 4px rgba(0,0,0,.35)",transform:o?"rotate(90deg)":void 0,...n};return(0,a.jsxs)("div",{...s,className:e,style:c,children:[(0,a.jsx)("div",{className:"__rcs-handle-line",style:d}),(0,a.jsxs)("div",{className:"__rcs-handle-button",style:u,children:[(0,a.jsx)(l,{}),(0,a.jsx)(l,{flip:!0})]}),(0,a.jsx)("div",{className:"__rcs-handle-line",style:d})]})},c=(e=>(e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_UP="ArrowUp",e.ARROW_DOWN="ArrowDown",e))(c||{}),d=(e,t,n,a)=>{let o=(0,r.useRef)();(0,r.useEffect)(()=>{o.current=t},[t]),(0,r.useEffect)(()=>{if(!(n&&n.addEventListener))return;let t=e=>o.current&&o.current(e);return n.addEventListener(e,t,a),()=>{n.removeEventListener(e,t,a)}},[e,n,a])},u="u">typeof window&&"u">typeof window.document&&"u">typeof window.document.createElement?r.useLayoutEffect:r.useEffect,p={capture:!1,passive:!0},h={capture:!0,passive:!1},m=e=>{e.preventDefault(),e.currentTarget.focus()},g=(0,r.forwardRef)(({boundsPadding:e=0,browsingContext:t=globalThis,changePositionOnHover:n=!1,disabled:l=!1,handle:g,itemOne:f,itemTwo:x,keyboardIncrement:v="5%",onlyHandleDraggable:y=!1,onPositionChange:b,portrait:w=!1,position:j=50,style:_,transition:C,...S},A)=>{let k=(0,r.useRef)(null),E=(0,r.useRef)(null),L=(0,r.useRef)(null),N=(0,r.useRef)(j),[D,R]=(0,r.useState)(!1),[M,P]=(0,r.useState)(!0),V=(0,r.useRef)(!1),[T,O]=(0,r.useState)(),W=(e=>{let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),t.current})(j),F=(0,r.useCallback)(function({x:n,y:r,isOffset:a}
1){let o=k.current,i=L.current,l=E.current,{width:s,height:c,left:d,top:u}=o.getBoundingClientRect();if(0===s||0===c)return;let p=Math.min(Math.max((w?a?r-u-t.scrollY:r:a?n-d-t.scrollX:n)/(w?c:s)*100,0),100),h=w?c/(o.offsetHeight||1):s/(o.offsetWidth||1),m=e*h/(w?c:s)*100,g=Math.min(Math.max(p,m*h),100-m*h);N.current=p,i.setAttribute("aria-valuenow",`${Math.round(N.current)}`),i.style.top=w?`${g}%`:"0",i.style.left=w?"0":`${g}%`,l.style.clipPath=w?`inset(${g}% 0 0 0)`:`inset(0 0 0 ${g}%)`,b&&b(N.current)},[e,b,w,t]);(0,r.useEffect)(()=>{let{width:e,height:t}=k.current.getBoundingClientRect(),n=j===W?N.current:j;F({x:e/100*n,y:t/100*n})},[e,j,w,W,F]);let I=(0,r.useCallback)(e=>{e.preventDefault(),l||0!==e.button||(F({isOffset:!0,x:e.pageX,y:e.pageY}),R(!0),P(!0))},[l,F]),B=(0,r.useCallback)(function(e){F({isOffset:!0,x:e.pageX,y:e.pageY}),P(!1)},[F]),H=(0,r.useCallback)(()=>{R(!1),P(!0)},[]),U=(0,r.useCallback)(({width:e,height:t})=>{let{width:n,height:r}=k.current.getBoundingClientRect();F({x:e/100*N.current*n/e,y:t/100*N.current*r/t})},[F]),z=(0,r.useCallback)(e=>{if(!Object.values(c).includes(e.key))return;e.preventDefault(),P(!0);let{top:t,left:n}=L.current.getBoundingClientRect(),{width:r,height:a}=k.current.getBoundingClientRect(),o="string"==typeof v?parseFloat(v):v/r*100,i=Math.min(Math.max((w?"ArrowLeft"===e.key||"ArrowDown"===e.key:"ArrowRight"===e.key||"ArrowUp"===e.key)?N.current+o:N.current-o,0),100);F({x:w?n:r*i/100,y:w?a*i/100:t})},[v,w,F]);(0,r.useEffect)(()=>{O(y?L.current:k.current)},[y]),(0,r.useEffect)(()=>{let e=k.current,t=()=>{D||H()};return n&&(e.addEventListener("pointermove",B,p),e.addEventListener("pointerleave",t,p)),()=>{e.removeEventListener("pointermove",B),e.removeEventListener("pointerleave",t)}},[n,B,H,D]),(0,r.useEffect)(()=>(D&&!V.current&&(t.addEventListener("pointermove",B,p),t.addEventListener("pointerup",H,p),V.current=!0),()=>{V.current&&(t.removeEventListener("pointermove",B),t.removeEventListener("pointerup",H),V.current=!1)}),[B,H,D,t]),(0,r.useImperativeHandle)(A,()=>({rootContainer:k.current,handleContainer:L.current,setPosition(e){let{width:t,height:n}=k.current.getBoundingClientRect();F({x:t/100*e,y:n/100*e})}}),[F]),((e,t)=>{let n=(0,r.useRef)(),a=(0,r.useCallback)(()=>{e.current&&n.current&&n.current.observe(e.current)},[e]);u(()=>(n.current=new ResizeObserver(([e])=>t(e.contentRect)),a(),()=>{n.current&&n.current.disconnect()}),[t,a])})(k,U),d("keydown",z,L.current,h),d("click",m,L.current,h),d("pointerdown",I,T,h);let $=g||(0,a.jsx)(s,{disabled:l,portrait:w}),q=M?C:void 0,G={position:"relative",display:"flex",overflow:"hidden",cursor:D?w?"ns-resize":"ew-resize":void 0,touchAction:"none",userSelect:"none",KhtmlUserSelect:"none",msUserSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",..._};return(0,a.jsxs)("div",{...S,ref:k,style:G,"data-rcs":"root",children:[f,(0,a.jsx)(o,{ref:E,transition:q,children:x}),(0,a.jsx)(i,{disabled:l,portrait:w,position:Math.round(N.current),ref:L,transition:q,children:$})]})});g.displayName="ReactCompareSlider";var f=(0,r.forwardRef)(({style:e,...t},n)=>{let r=(({boxSizing:e="border-box",objectFit:t="cover",objectPosition:n="center center",...r}={})=>({display:"block",width:"100%",height:"100%",maxWidth:"100%",boxSizing:e,objectFit:t,objectPosition:n,...r}))(e);return(0,a.jsx)("img",{ref:n,...t,style:r,"data-rcs":"image"})});f.displayName="ReactCompareSliderImage"},95740:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(14232),a=n(8484),o={TextContainer:"Polaris-TextContainer",spacingTight:"Polaris-TextContainer--spacingTight",spacingLoose:"Polaris-TextContainer--spacingLoose"};function i(e){let{spacing:t,children:n}=e,i=(0,a.xW)(o.TextContainer,t&&o[(0,a.Ny)("spacing",t)]);return r.createElement("div",{className:i},n)}}},e=>{e.O(0,[2026,9879,6494,6960,2120,7930,1286,7083,766,4905,6471,9282,4974,8794,6190,1449,636,6593,8792],()=>e(e.s=51945)),_N_E=e.O()}]);
2//# sourceMappingURL=community-422d630fd74c9f07.js.map

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.