PageSourceSearch

https://commmune.com/_next/static/chunks/7517-f94a2a38e6b10633.js

js commmune.com collected 2026-10-02 06:30:29 UTC 14,409 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2f157977-9531-59f7-ba13-7246a42645e0")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7517],{4267:function(e,t){var n,i,r;r=function(e,t){"use strict";var n,i,r="function"==typeof Map?new Map:(n=[],i=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return i[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),i.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i.splice(t,1))}}),o=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){o=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function s(e){var t=r.get(e);t&&t.destroy()}function a(e){var t=r.get(e);t&&t.update()}var d=null;"u"<typeof window||"function"!=typeof window.getComputedStyle?((d=function(e){return e}).destroy=function(e){return e},d.update=function(e){return e}):((d=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return function(e){if(!(!e||!e.nodeName||"TEXTAREA"!==e.nodeName||r.has(e))){var t,n=null,i=null,s=null,a=function(){e.clientWidth!==i&&u()},d=(function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",u,!1),e.removeEventListener("keyup",u,!1),e.removeEventListener("autosize:destroy",d,!1),e.removeEventListener("autosize:update",u,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),r.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",d,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",u,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",u,!1),e.addEventListener("autosize:update",u,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:d,update:u}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),isNaN(n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth))&&(n=0),u()}function l(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function c(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",i=e.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop}),r&&(document.documentElement.scrollTop=r)}}function u(){c();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i<t?"hidden"===n.overflowY&&(l("scroll"),c(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(l("hidden"),c(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),s!==i){s=i;var r=o("autosize:resized");try{e.dispatchEvent(r)}catch(e){}}}}(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},d.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=d,e.exports=t.default},n=[e,t],void 0===(i=r.apply(t,n))||(e.exports=i)},9608:(e,t,n)=>{var i=n(96746);e.exports=function(e){var t=i(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",n=parseFloat(t=i(e,"line-height"),10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var o=e.n
3odeName,s=document.createElement(o);s.innerHTML="&nbsp;","TEXTAREA"===o.toUpperCase()&&s.setAttribute("rows","1");var a=i(e,"font-size");s.style.fontSize=a,s.style.padding="0px",s.style.border="0px";var d=document.body;d.appendChild(s),n=s.offsetHeight,d.removeChild(s)}return n}},15379:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)0>t.indexOf(i[r])&&(n[i[r]]=e[i[r]]);return n};t.__esModule=!0;var a=n(36439),d=n(77117),l=n(4267),c=n(9608),u="autosize:update",p="autosize:destroy",h="autosize:resized";t.TextareaAutosize=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.dispatchEvent=function(e){switch(e){case u:l.update(t.textarea);break;case p:l.destroy(t.textarea);break;case h:var n=document.createEvent("Event");n.initEvent(h,!0,!1),t.textarea.dispatchEvent(n)}},t.updateLineHeight=function(){t.setState({lineHeight:c(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t.saveDOMNodeRef=function(e){var n=t.props.innerRef;n&&n(e),t.textarea=e},t.getLocals=function(){var e=t.props,n=(e.onResize,e.maxRows),i=(e.onChange,e.style),r=(e.innerRef,s(e,["onResize","maxRows","onChange","style","innerRef"])),a=t.state.lineHeight,d=t.saveDOMNodeRef,l=n&&a?a*n:null;return o({},r,{saveDOMNodeRef:d,style:l?o({},i,{maxHeight:l}):i,onChange:t.onChange})},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.onResize,i=t.maxRows,r=t.async;"number"==typeof i&&this.updateLineHeight(),"number"==typeof i||r?setTimeout(function(){return l(e.textarea)}):l(this.textarea),n&&this.textarea.addEventListener(h,n)},t.prototype.componentWillUnmount=function(){var e=this.props.onResize;e&&this.textarea.removeEventListener(h,e),this.dispatchEvent(p)},t.prototype.render=function(){var e=this.getLocals(),t=e.children,n=e.saveDOMNodeRef,i=s(e,["children","saveDOMNodeRef"]);return a.createElement("textarea",o({},i,{ref:n}),t)},t.prototype.componentDidUpdate=function(){this.dispatchEvent(u)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:d.number,maxRows:d.number,onResize:d.func,innerRef:d.func,async:d.bool},t}(a.Component)},18717:(e,t,n)=>{"use strict";t.A=n(15379).TextareaAutosize},19091:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var i=n(45023),r=n(18717),o=n(90524);let s=({value:e,onChange:t,placeholder:n,hasError:s})=>{let{t:a}=(0,o.B)(["components/molecules"]);return(0,i.Y)(i.FK,{children:(0,i.Y)(r.A,{style:{fontSize:14,...s&&{borderColor:"#dc3545",color:"#dc3545"}},rows:3,value:e,placeholder:n??a("Enter your answer"),className:`form-control mx-auto py-3 ${s?"error-field":""}`,onChange:e=>{t(e.target.value)},"data-cy":"question-answer"})})}},35856:(e,t,n)=>{"use strict";n.d(t,{f:()=>c});var i=n(45023),r=n(2004),o=n.n(r);n(36439);var s=n(63640),a=n(25008),d=n.n(a),l=n(9534);function c(e){let t=e.onClick?"button":"div";return(0,i.FD)(t,{type:e.onClick?"button":void 0,"aria-pressed":e.onClick?e.isActive:void 0,onClick:e.onClick&&(t=>e.onClick?.(t)),"data-cy":"question-option",className:o().dynamic([["f0ffbbdd16a7ff5e",[14,s.A.MAIN_BLUE,s.A.MAIN_BLUE]]])+" "+(d()("option my-1",e.className,{active:e.isActive},l.B_)||""),children:[e.image&&(0,i.Y)("div",{className:o().dynamic([["f0ffbbdd16a7ff5e",[14,s.A.MAIN_BLUE,s.A.MAIN_BLUE]]])+" mb-2",children:(0,i.Y)("img",{src:e.image,role:"presentation",className:o().dynamic([["f0ffbbdd16a7ff5e",[14,s.A.MAIN_BLUE,s.A.MAIN_BLUE]]])+" w-75"})}),e.text&&(0,i.Y)("div",{"data-cy":"question-option-label",className:o().dynamic([["f0ffbbdd16a7ff5e",[14,s.A.MAIN_BLUE,s.A.MAIN_BLUE]]])+" mx-2",children:e.text}),(0,i.Y)(o(),{id:"f0ffbbdd16a7ff5e",dynamic:[14,s.A.MAIN_BLUE,s.A.MAIN_BLUE],children:`.option.__jsx-style-dynamic-selector{display:block;width:100%;-webkit-appearance:none;appearance:none;background-color:transparent;color:inherit;font-family:inherit;font-size:14px;font-weight:bold;line-height:inherit;text-align:center;padding:17px 0;border:1px solid#c1c0c0;border-radius:0;box-shadow:0px 1px 3px darkgrey}.option.active.__jsx-style-dynamic-selector{outline:1px solid ${s.A.MAIN_BLUE};border:1px solid ${s.A.MAIN_BLUE};transition:all.25s ease}img.__jsx-style-dynamic-selector{height:120px;object-fit:contain}`})]})}},51370:(e,t,n)=>{"use strict";
3var i=function(e){return e&&e.__esModule?e:{default:e}};t.SF=t.m6=t.In=t.qb=void 0,n(30140),i(n(98023)),i(n(92905)),t.qb={DEFAULT:0,FREE:1,MULTIPLE_SELECT:2,SINGLE_SELECT:3},t.In=e=>e.type===t.qb.FREE,t.m6=e=>e.type===t.qb.MULTIPLE_SELECT||e.type===t.qb.SINGLE_SELECT,t.SF=e=>e.type===t.qb.MULTIPLE_SELECT||e.type===t.qb.SINGLE_SELECT},77517:(e,t,n)=>{"use strict";n.d(t,{g:()=>_});var i=n(45023),r=n(2004),o=n.n(r),s=n(51370),a=n(66787),d=n(25008),l=n.n(d),c=n(32442),u=n(35856),p=n(84460),h=n(19091),f=n(47256),m=n(9534),y=n(93103),v=n.n(y),b=n(30349),g=n(36439),x=n(28317);let E=e=>(0,i.FD)("div",{id:"st",className:`jsx-6f55f41bb2dbf43c ${e.className||""}`,children:[e.children,(0,i.Y)(o(),{id:"6f55f41bb2dbf43c",children:"#st.jsx-6f55f41bb2dbf43c{font-size:12px}"})]});class w extends g.Component{createQuestion(e){return(0,s.m6)(e)?this.createSelect(e):e.type===s.qb.FREE?this.createFree(e):void 0}addRequiredMark(e){let t=e.query.split("\n");return(0,i.FD)("div",{"data-cy":"question-title",className:"jsx-ade2c65e5c9e803 "+(l()({[m.B_]:this.props.disableWidgetTranslation})||""),children:[t.map((e,n)=>(0,i.FD)("span",{className:"jsx-ade2c65e5c9e803",children:[e,n!==t.length-1&&(0,i.Y)("br",{className:"jsx-ade2c65e5c9e803"})]},e)),e.required&&(0,i.Y)("span",{"data-cy":"question-required-mark",className:"jsx-ade2c65e5c9e803 required",children:"*"}),(0,i.Y)(o(),{id:"ade2c65e5c9e803",children:".required.jsx-ade2c65e5c9e803{color:#dc3545}"})]})}createFree(e){let t=this.findAnswer(e.uuid),n=t?.text||"",{attachedFiles:r}=this.state,{onFileUploading:s,t:d,errors:l}=this.props,u=l?.[e.uuid];return(0,i.FD)("div",{"data-cy":"question-block",className:"jsx-3692331f70d6bbd3 mb-5",children:[this.addRequiredMark(e),(0,i.FD)("div",{className:"jsx-3692331f70d6bbd3 mt-2",children:[(0,i.Y)(h.W,{value:n,onChange:t=>this.updateAnswer(e.uuid,{uuid:e.uuid,type:e.type,text:t}),hasError:!!u}),u&&(0,i.Y)("div",{className:"jsx-3692331f70d6bbd3 error-message",children:u}),e.isFileAttachable&&this.props.enableFileAttachment&&(0,i.FD)("div",{className:"jsx-3692331f70d6bbd3 mt-2",children:[(0,i.Y)(p.Q,{iconSize:"large",files:r[e.uuid]||[],onChange:t=>{this.updateAttachments(e.uuid,t)},maxUploadFiles:a.default.MAX_UPLOAD_FILES_BY_POST,onFileUploading:s,acceptMimetypes:[...f.D2,"application/pdf"]}),r[e.uuid]?.length>0?(0,i.Y)(c.y,{children:(0,i.Y)(c.k,{files:r[e.uuid],onClickDeleteIcon:(t,n)=>this.onClickDeleteIcon(e.uuid,t,n)})}):null]})]}),!e.isViewable&&(0,i.Y)(E,{className:"text-right mt-1",children:d("Your answer won't be visible to other users")}),(0,i.Y)(o(),{id:"3692331f70d6bbd3",children:".error-message.jsx-3692331f70d6bbd3{padding:4px 16px 0px 16px;color:#CE324E;font-sizes:12px;gap:4px}"})]})}createSelect(e){let{t}=this.props,n=()=>{let t=this.findAnswer(e.uuid);return t?.chosen||[]};return(0,i.FD)("div",{className:"mb-5","data-cy":"question-block",children:[this.addRequiredMark(e),(0,i.Y)("div",{className:"mt-2",children:e.options.map(t=>{let r;return(0,i.Y)(u.f,{className:l()({[m.B_]:this.props.disableWidgetTranslation}),isActive:(r=t.uuid,n().includes(r)),image:t.image,text:t.text,onClick:()=>this.updateAnswer(e.uuid,{uuid:e.uuid,type:e.type,chosen:((e,t)=>{if(e===s.qb.MULTIPLE_SELECT){let e=n();return n().includes(t)?e=e.filter(e=>e!==t):e.push(t),v()(e)}if(e===s.qb.SINGLE_SELECT)return[t]})(e.type,t.uuid)})},`OPT${t.uuid}`)})}),!e.isViewable&&(0,i.Y)(E,{className:"text-right mt-1",children:t("Your answer won't be visible to other users")})]})}render(){let{questions:e,t}=this.props;return e?(0,i.FD)("div",{className:o().dynamic([["7678417632a7e179",[14]]])+" wrap mt-0",children:[(0,i.FD)("section",{"data-cy":"question-section",className:o().dynamic([["7678417632a7e179",[14]]])+" px-5",children:[this.checkIsRequired(e)&&(0,i.Y)("div",{className:o().dynamic([["7678417632a7e179",[14]]])+" required",children:t("* Required")}),e.map((e,t)=>(0,i.Y)(g.Fragment,{children:this.createQuestion(e)},`q${t}`))]}),(0,i.Y)(o(),{id:"7678417632a7e179",dynamic:[14],children:".wrap.__jsx-style-dynamic-selector{font-size:14px}.required.__jsx-style-dynamic-selector{color:#dc3545}"})]}):null}constructor(...e){super(...e),this.state={answer:this.props.answer||[],attachedFiles:this.props.attachedFiles||{}},this.findAnswer=e=>this.state.answer.find(t=>t.uuid===e),this.updateAnswer=(e,t)=>{let n,i=this.state.answer.findIndex(t=>t.uuid===e);n=-1===i?b.VC(this.state,"answer",t):b.hZ(this.state,`answer.${i}`,t),this.setState(n),this.props.onChange(n),this.props.onAnswerChange?.(e)},this.updateAttachments=(e,t)=>{let n=b.hZ(this.state,`attachedFiles.${e}`,t);t&&t.length>0&&!this.findAnswer(e)&&(n=b.VC(n,"answer",{uuid:e,type:s.qb.FREE,text:""})),this.setState(n),this.props.onChange(n)},this.onClickDeleteIcon=(e,t,n)=>{t&&(t.preventDefault(),t.stopPropagation());let{attachedFiles:i}=this.state,r=i[e]?.filter((e,t)=>
3t!==n);this.updateAttachments(e,r)},this.checkIsRequired=e=>e.some(e=>e.required)}}let _=(0,x.C)(["components/organisms"])(w)},96746:e=>{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}}}]);
4//# sourceMappingURL=7517-f94a2a38e6b10633.js.map
5//# debugId=2f157977-9531-59f7-ba13-7246a42645e0

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.