PageSourceSearch

https://kts.weszlo.com/_next/static/chunks/pages/proposals-9974fe7600884956.js

js weszlo.com collected 2026-10-02 07:09:32 UTC 38,135 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9537],{9903:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(4938)),i=n(5893),a=(0,o.default)((0,i.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"}),"MailOutline");t.Z=a},8025:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(4938)),i=n(5893),a=(0,o.default)((0,i.jsx)("path",{d:"m10.89 18.28.57-2.89c.12-.59-.04-1.2-.42-1.66-.38-.46-.94-.73-1.54-.73H4v-1.08L6.57 6h8.09c.18 0 .34.16.34.34v7.84l-4.11 4.1M10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4h-8.1c-.71 0-1.36.37-1.72.97l-2.67 6.15c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22zm10-7h2V4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1z"}),"ThumbDownOffAlt");t.Z=a},8121:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/proposals",function(){return n(3967)}])},3967:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return Pt},default:function(){return St}});var r=n(5893),o=n(120),i=n(9630),a=n(5084),l=n(9903),s=n(6682),c=n(7294);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=[{label:"Spo\u0142eczno\u015b\u0107",value:"audience"},{label:"Zawodnicy",value:"jersey"},{label:"Rozgrywki",value:"medal"},{label:"Nagrody",value:"trophy"}],u={application_category:void 0,application_topic:void 0,application_description:void 0,application_reason:void 0},x=(0,c.createContext)({applicationModalStepGetter:function(){},applicationModalStepSetter:function(e){},clearFormData:function(){},aplicationFormDataSetter:function(e,t){},aplicationFormDataGetter:function(e){return""},aplicationFormDataGetAll:function(){return u},aplicationFormDataSetAll:function(e){},proposalCategories:p,applicationFormDataProposalAnswerGetAll:function(){return[]},applicationFormDataProposalAnswerSetAll:function(e){},applicationFormDataProposalAnswerAdd:function(e){},applicationFormDataProposalAnswerRemove:function(e){}}),f=function(e){var t=e.children,n=(0,c.useState)(void 0),o=n[0],i=n[1],a=(0,c.useState)(u),l=a[0],s=a[1],f=(0,c.useState)(["",""]),m=f[0],h=f[1];return(0,r.jsx)(x.Provider,{value:{applicationModalStepGetter:function(){return o},applicationModalStepSetter:function(e){return i(e)},clearFormData:function(){h(["",""]),s(u)},aplicationFormDataSetter:function(e,t){s(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){d(e,t,n[t])}))}return e}({},l,d({},e,t)))},aplicationFormDataGetter:function(e){return l[e]},aplicationFormDataGetAll:function(){return l},aplicationFormDataSetAll:function(e){return s(e)},applicationFormDataProposalAnswerGetAll:function(){return m},applicationFormDataProposalAnswerSetAll:function(e){return h(e)},applicationFormDataProposalAnswerAdd:function(e){return h(m.concat([e]))},applicationFormDataProposalAnswerRemove:function(e){var t=m.filter((function(t,n){return n!==e}));h(t)},proposalCategories:p},children:t})},m=function(){return(0,c.useContext)(x)},h=function(){var e=(0,s.Z)(),t=m().applicationModalStepSetter;return(0,r.jsxs)(o.Z,{sx:{p:1.5,display:"flex",minHeight:"105px",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",md:"center"},backgroundColor:"white",borderRadius:2},children:[(0,r.jsxs)(o.Z,{sx:{display:"flex",gap:2,alignItems:{xs:"flex-start",md:"center"}},children:[(0,r.jsx)(l.Z,{sx:{fontSize:46,color:e.palette.brandYellow60.main}}),(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(i.Z,{variant:"h3",sx:{fontSize:{xs:"18px",md:"20px"}},children:"Z\u0142\xf3\u017c Wniosek"}),(0,r.jsx)(i.Z,{variant:"body2",mt:.3,children:"Zg\u0142o\u015b swoj\u0105 propozycj\u0119 zmian lub pomys\u0142 na rozw\xf3j klubu."})]})]}),(0,r.jsx)(o.Z,{sx:{width:{xs:"100%",md:"auto"}},children:(0,r.jsx)(a.Z,{variant:"contained",size:"large",color:"brandYellow60",
1sx:{mt:{xs:1,md:0},width:{xs:"100%",md:"auto"}},onClick:function(){t("form")},children:(0,r.jsx)(i.Z,{fontWeight:700,children:"Z\u0142\xf3\u017c sw\xf3j wniosek"})})})]})},v=n(4631),g=n(3343),y=n(562),j=n(4373),b=n(9072);function w(e){e.width,e.height;return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.49996 1.99935C5.18625 1.99935 2.49996 4.68564 2.49996 7.99935C2.49996 11.3131 5.18625 13.9993 8.49996 13.9993C11.8137 13.9993 14.5 11.3131 14.5 7.99935C14.5 4.68564 11.8137 1.99935 8.49996 1.99935ZM1.16663 7.99935C1.16663 3.94926 4.44987 0.666016 8.49996 0.666016C12.55 0.666016 15.8333 3.94926 15.8333 7.99935C15.8333 12.0494 12.55 15.3327 8.49996 15.3327C4.44987 15.3327 1.16663 12.0494 1.16663 7.99935Z",fill:"#383551"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.50004 4.66602C8.86823 4.66602 9.16671 4.96449 9.16671 5.33268V10.666C9.16671 11.0342 8.86823 11.3327 8.50004 11.3327C8.13185 11.3327 7.83337 11.0342 7.83337 10.666V5.33268C7.83337 4.96449 8.13185 4.66602 8.50004 4.66602Z",fill:"#383551"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.16663 8.00065C5.16663 7.63246 5.4651 7.33398 5.83329 7.33398H11.1666C11.5348 7.33398 11.8333 7.63246 11.8333 8.00065C11.8333 8.36884 11.5348 8.66732 11.1666 8.66732H5.83329C5.4651 8.66732 5.16663 8.36884 5.16663 8.00065Z",fill:"#383551"})]})}function Z(e){e.width,e.height;return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4714 3.52925C12.7318 3.7896 12.7318 4.21171 12.4714 4.47206L4.47145 12.4721C4.2111 12.7324 3.78899 12.7324 3.52864 12.4721C3.26829 12.2117 3.26829 11.7896 3.52864 11.5292L11.5286 3.52925C11.789 3.2689 12.2111 3.2689 12.4714 3.52925Z",fill:"#383551"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.52864 3.52925C3.78899 3.2689 4.2111 3.2689 4.47145 3.52925L12.4714 11.5292C12.7318 11.7896 12.7318 12.2117 12.4714 12.4721C12.2111 12.7324 11.789 12.7324 11.5286 12.4721L3.52864 4.47206C3.26829 4.21171 3.26829 3.7896 3.52864 3.52925Z",fill:"#383551"})]})}var C=n(6729),k=n(4507),P=n(2631),S=n(8316),z=function(e){var t=e.fieldName,n=e.label,o=e.info,a=e.required;return(0,r.jsx)(r.Fragment,{children:n&&(0,r.jsxs)(S.Z,{htmlFor:t,children:[(0,r.jsx)(i.Z,{variant:"desktop-body",color:"primary",fontWeight:700,mb:0,children:n}),a&&(0,r.jsx)(i.Z,{variant:"desktop-body",color:"error",fontWeight:700,ml:.25,mt:0,children:"*"}),o&&(0,r.jsx)(i.Z,{variant:"desktop-body",mt:.25,sx:{display:"block"},children:o})]})})};function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){O(e,t,n[t])}))}return e}var F=function(e){var t=e.fieldName,n=e.label,a=e.info,l=e.placeholder,s=e.value,d=e.onChangeCallback,p=e.required,u=e.rows,x=e.showCounter,f=e.maxLength,m=e.hideErrorMsg,h=e.actions,v=(0,c.useState)(s||""),g=v[0],y=v[1];(0,c.useEffect)((function(){y(s||"")}),[s]);var j=function(e){var n=e.target.value;y(n),d&&d(n,t)};return(0,r.jsxs)(o.Z,{sx:{position:"relative"},children:[(0,r.jsx)(z,{fieldName:t,label:n,info:a,required:p}),(0,r.jsx)(C.gN,{name:t,render:function(e){var t=e.input,n=e.meta;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k.Z,{inputProps:A({},t,{maxLength:f}),FormHelperTextProps:{sx:{m:0}},value:g,placeholder:l,error:n.touched&&!!n.error,margin:"dense",required:p,fullWidth:!0,rows:u,multiline:void 0!==u&&u>1,onChange:j}),(0,r.jsxs)(b.ZP,{container:!0,alignItems:"start",children:[(0,r.jsx)(b.ZP,{item:!0,children:!0!==m&&n.touched&&n.error&&(0,r.jsx)(P.Z,{error:!0,sx:{m:0},children:n.error})}),(0,r.jsx)(b.ZP,{item:!0,sx:{ml:"auto"},children:x&&f&&(0,r.jsx)(i.Z,{variant:"desktop-body",color:"#6D6B79",sx:{lineHeight:0},children:"".concat(g.length,"/").concat(f)})})]})]})}}),h&&(0,r.jsx)(o.Z,{sx:{position:"absolute",top:0,right:"-12px",display:"flex",gap:.25},children:h.map((function(e,t){return(0,r.jsx)(o.Z,{sx:{cursor:"pointer"},onClick:e.callback,children:e.component},t)}))})]})},_=n(4347),D=n(3366),I=n(7462),R=n(6010),N=n(4780),T=n(1796),M=n(1719),V=n(8884),E=n(7742),W=n(522),G=n(3289),L=n(4771),B=n(5741),$=n(8164),q=n(7484),H=n(1588),Y=n(4867);function X(e){return(0,Y.Z)("MuiMenuItem",e)}var U=(0,H.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const J=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],K=(0,M.ZP)(W.Z,{shouldForwardProp:e=>(0,M.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,I.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${U.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,T.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${U.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,T.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${U.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,T.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,T.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${U.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${U.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${B.Z.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${B.Z.inset}`]:{marginLeft:52},[`& .${q.Z.root}`]:{marginTop:0,marginBottom:0},[`& .${q.Z.inset}`]:{paddingLeft:36},[`& .${$.Z.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,I.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${$.Z.root} svg`]:{fontSize:"1.25rem"}}))));var Q=c.forwardRef((function(e,t){const n=(0,V.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:u,className:x}=n,f=(0,D.Z)(n,J),m=c.useContext(E.Z),h=c.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),v=c.useRef(null);(0,G.Z)((()=>{o&&v.current&&v.current.focus()}),[o]);const g=(0,I.Z)({},n,{dense:h.dense,divider:l,disableGutters:s}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divi
1der",i&&"selected"]},s=(0,N.Z)(l,X,a);return(0,I.Z)({},a,s)})(n),j=(0,L.Z)(v,t);let b;return n.disabled||(b=void 0!==u?u:-1),(0,r.jsx)(E.Z.Provider,{value:h,children:(0,r.jsx)(K,(0,I.Z)({ref:j,role:p,tabIndex:b,component:i,focusVisibleClassName:(0,R.Z)(y.focusVisible,d),className:(0,R.Z)(y.root,x)},f,{ownerState:g,classes:y}))})})),ee=function(e){var t,n=e.fieldName,o=e.label,i=e.info,a=e.placeholder,l=e.required,s=e.options,d=e.selected,p=(0,c.useState)(),u=p[0],x=p[1],f=function(e){x(e.target.value)};(0,c.useEffect)((function(){x(d)}),[d]);var m=function(e){var n;return null!==(t=null===(n=s.find((function(t){return t.value.toString()===e.toString()})))||void 0===n?void 0:n.label)&&void 0!==t?t:void 0};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(z,{fieldName:n,label:o,info:i,required:l}),(0,r.jsx)(C.gN,{mt:.25,name:n,render:function(e){var t=e.input,n=e.meta;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_.Z,{sx:{color:u?void 0:"#b0b0b0",mb:0},inputProps:t,displayEmpty:!0,renderValue:function(e){return e?m(e):u?m(u):a},error:n.touched&&!!n.error,required:!0===l,fullWidth:!0,value:u,onChange:f,children:s.map((function(e){return(0,r.jsx)(Q,{value:e.value.toString(),children:e.label},e.value)}))}),n.touched&&n.error&&(0,r.jsx)(P.Z,{error:!0,sx:{mt:.25},children:n.error})]})}})]})};function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){te(e,t,n[t])}))}return e}var re,oe="application_category",ie="application_topic",ae="application_description",le="application_reason",se="application_proposal_answers",ce=function(e){return void 0===e||""===e},de=function(e){e=null!==e?e:function(e){throw e}(new TypeError("Cannot destructure undefined"));var t=(0,c.useState)({}),n=t[0],l=t[1],s=(0,c.useState)(!1),d=(s[0],s[1]),p=(0,c.useState)(["",""]),u=p[0],x=p[1],f=m(),h=f.applicationModalStepSetter,v=f.aplicationFormDataGetter,g=f.aplicationFormDataSetAll,y=f.applicationFormDataProposalAnswerGetAll,k=f.applicationFormDataProposalAnswerSetAll,P=f.proposalCategories;(0,c.useEffect)((function(){l((te(re={},oe,v(oe)),te(re,ie,v(ie)),te(re,ae,v(ae)),te(re,le,v(le)),te(re,se,y()),re)),x(y())}),[]);var S=(0,r.jsx)(o.Z,{sx:{width:"24px",height:"24px",backgroundColor:"#FFF",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:1},children:(0,r.jsx)(Z,{})});return(0,r.jsx)(o.Z,{sx:{mb:3},children:(0,r.jsx)(C.l0,{onSubmit:function(e){var t=ne({},e);delete t.application_proposal_answers,g(t),k(e.application_proposal_answers),h("preview")},validate:function(e){var t,n,r,o={};(ce(e.application_category)&&(o.application_category="Wybierz kategori\u0119 wniosku"),ce(e.application_topic)&&(o.application_topic="Wpisz temat, kt\xf3ry kr\xf3tko opisuje Twoj\u0105 propozycj\u0119"),ce(e.application_description)&&(o.application_description="Opisz sw\xf3j pomys\u0142 lub propozycj\u0119 zmian"),ce(e.application_reason)&&(o.application_reason="Wpisz swoje uzasadnienie propozycji"),e.application_proposal_answers&&e.application_proposal_answers&&(null===(t=e.application_proposal_answers)||void 0===t?void 0:t.filter((function(e){return Boolean(e)})).length)>=2&&!(null===(n=e.application_proposal_answers)||void 0===n?void 0:n.some((function(e){return ce(e)}))))||(o.application_proposal_answers=new Array(e.application_proposal_answers?null===(r=e.application_proposal_answers)||void 0===r?void 0:r.length:1).fill("Wniosek musi zawiera\u0107 min. 2 odpowiedzi, by podda\u0107 go g\u0142osowaniu"));return o},initialValues:n,validateOnBlur:!0,render:function(e){var t=e.handleSubmit,n=e.values,s=e.errors,c=e.submitFailed,p=s&&s.application_proposal_answers&&c;return(0,r.jsxs)(o.Z,{mt:2,component:"form",onSubmit:function(e){e.preventDefault(),d(!0),t()},noValidate:!0,children:[(0,r.jsx)(i.Z,{variant:"h2",sx:{fontWeight:700},mb:1,children:"Nowy wniosek"}),(0,r.jsx)(i.Z,{variant:"desktop-body",color:"greyBody",sx:{dis
1play:"block",width:{xs:"100%",sm:"469px"},mb:2.5},children:"Opisz jakie zmiany, pomys\u0142y chcesz wprowadzi\u0107 Dodaj odpowiedzi, kt\xf3re zostan\u0105 poddane ostatecznemu g\u0142osowaniu w dalszym etapie."}),(0,r.jsx)(ee,{fieldName:"application_category",label:"Kategoria",info:"Wybierz, jakiego obszaru dotyczy Twoja propozycja",placeholder:"Wybierz z listy",required:!0,options:P,selected:"1"}),(0,r.jsx)(j.Z,{sx:{mb:1.5,border:0}}),(0,r.jsx)(F,{fieldName:"application_topic",label:"Temat",placeholder:"Wpisz temat wniosku",required:!0,maxLength:59,showCounter:!0,value:v(ie)}),(0,r.jsx)(j.Z,{sx:{mb:1,border:0}}),(0,r.jsx)(F,{fieldName:"application_description",label:"Opis",placeholder:"Wpisz opis propozycji",required:!0,rows:6,showCounter:!0,maxLength:259,value:v(ae)}),(0,r.jsx)(j.Z,{sx:{mb:1,border:0}}),(0,r.jsx)(F,{fieldName:"application_reason",info:"Wyja\u015bnij, dlaczego to wa\u017cne i jaki mo\u017ce mie\u0107 wp\u0142yw na przysz\u0142o\u015b\u0107",label:"Uzasadnienie",placeholder:"Wpisz uzasadnienie propozycji",required:!0,rows:6,showCounter:!0,maxLength:259,value:v(le)}),(0,r.jsx)(i.Z,{variant:"h2",sx:{fontWeight:700,my:1},children:"Zaproponuj odpowiedzi"}),(0,r.jsx)(i.Z,{variant:"desktop-body",color:"greyBody",sx:{display:"block",width:{xs:"100%",sm:"469px"}},children:"Podaj min. 2 odpowiedzi, kt\xf3re po pozytywnym rozpatrzeniu wniosku zostan\u0105 poddane ostatecznemu g\u0142osowaniu."}),(0,r.jsx)(o.Z,{sx:{mt:{xs:1,sm:2}},children:u.map((function(e,t){return(0,r.jsxs)(b.ZP,{container:!0,display:"grid",gridTemplateColumns:"min-content auto",gap:1,alignItems:"start",children:[(0,r.jsx)(b.ZP,{item:!0,children:(0,r.jsx)(o.Z,{borderRadius:2,sx:{mt:.5,width:56,height:56,textAlign:"center",backgroundColor:p?"#FBD0D0":"#F8F8F8",display:"flex",alignItems:"center"},children:(0,r.jsx)(i.Z,{variant:"h3",flex:1,color:p?"error":"default",children:t+1})})}),(0,r.jsx)(b.ZP,{item:!0,children:(0,r.jsx)(F,{fieldName:"".concat(se,"[").concat(t,"]"),placeholder:"Przyk\u0142adowa odpowied\u017a",value:e,actions:u.length>1?[{component:S,callback:function(){return function(e,t){var n,r=null===(n=e.application_proposal_answers)||void 0===n?void 0:n.filter((function(e,n){return n!==t}));x(r),l(ne({},e,te({},se,r)))}(n,t)}}]:void 0,hideErrorMsg:t<u.length-1})})]},t)}))}),(0,r.jsxs)(a.Z,{disableElevation:!0,variant:"outlined",sx:{display:"flex",gap:.5,mr:"auto",mt:{xs:1},width:{xs:"100%",md:"270px"}},onClick:function(){return function(e){var t;x(u.concat("")),l(ne({},e,te({},se,null===(t=e.application_proposal_answers)||void 0===t?void 0:t.concat(""))))}(n)},children:[(0,r.jsx)(w,{}),(0,r.jsx)(i.Z,{fontWeight:700,variant:"desktop-body",children:"Dodaj kolejn\u0105 odpowied\u017a"})]}),(0,r.jsx)(a.Z,{disableElevation:!0,variant:"contained",color:"brandYellow60",sx:{display:"block",ml:"auto",mt:{xs:2.5},width:{xs:"100%",md:"200px"}},type:"submit",children:(0,r.jsx)(i.Z,{fontWeight:700,variant:"desktop-body",children:"Potwierd\u017a"})})]})}})})},pe=n(8520),ue=n.n(pe),xe=n(723),fe={audience:{title:"spo\u0142eczno\u015b\u0107",paletteColorName:"categoryTypeAudience"},jersey:{title:"zawodnicy",paletteColorName:"categoryTypeJersey"},medal:{title:"rozgrywki",paletteColorName:"categoryTypeMedal"},trophy:{title:"nagrody",paletteColorName:"categoryTypeTrophy"}},me=function(e){var t=e.category,n=(0,s.Z)();return(0,r.jsx)(o.Z,{sx:{backgroundColor:n.palette[fe[t].paletteColorName].main,padding:"2px 8px",display:"inline-block",borderRadius:"4px"},children:(0,r.jsx)(i.Z,{sx:{textTransform:"uppercase"},variant:"desktop-label",fontWeight:700,color:n.palette[fe[t].paletteColorName].contrastText,children:fe[t].title})})},he=n(2660);function ve(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}var ge=function(e){e=null!==e?e:function(e){throw e}(new TypeError("Cannot destructure undefined"));var t,n=(0,xe.S)(),l=m(),s=l.applicationModalStepSetter,c=l.aplicationFormDataGetAll,d=l.applicationFormDataProposalAnswerGetAll,p=c(),u=d(),x=(t=ue().mark((function e(){var t,r,o,i;return ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.application_category,r=p.application_reason,o=p.application_topic,i=p.application_description,e.next=3,n.createProposal({title:o,type:he.pc[t],explanation:r,description:i,options:u.map((function(e){return{title:e}}))});case 3:s("confirmation");case 4:case"end":return e.stop()}}),e)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(e){ve(i,r,o,a,l,"next",e)}function l(e){ve(i,r,o,a,l,"throw",e)}a(void 0)}))});return(0,r.jsxs)(o.Z,{sx:{mt:3,mb:3},children:[(0,r.jsx)(i.Z,{variant:"h2",sx:{fontWeight:700},mb:1,children:"Podsumowanie"}),(0,r.jsx)(i.Z,{variant:"desktop-body",color:"greyBody",children:"Widok sk\u0142adanego przez Ciebie wniosku."}),(0,r.jsx)(o.Z,{mt:2.5,mb:1.5,children:(0,r.jsx)(me,{category:p.application_category})}),(0,r.jsx)(i.Z,{variant:"h3",sx:{fontWeight:700},mt:0,mb:1,children:p.application_topic}),(0,r.jsx)(i.Z,{variant:"desktop-body",color:"greyBody",children:p.application_description}),(0,r.jsx)(i.Z,{variant:"h3",sx:{fontWeight:700},mt:2,mb:1,children:"Uzasadnienie"}),(0,r.jsx)(i.Z,{variant:"desktop-body",color:"greyBody",children:p.application_reason}),(0,r.jsx)(i.Z,{variant:"h2",sx:{fontWeight:700},mt:2.5,mb:1,children:"Propozycje odpowiedzi"}),u.map((function(e,t){return(0,r.jsxs)(b.ZP,{container:!0,display:"grid",gridTemplateColumns:"min-content auto",gap:1,alignItems:"center",sx:{mb:1},children:[(0,r.jsx)(b.ZP,{item:!0,children:(0,r.jsx)(o.Z,{borderRadius:2,sx:{width:56,height:56,textAlign:"center",backgroundColor:"#F8F8F8",display:"flex",alignItems:"center"},children:(0,r.jsx)(i.Z,{variant:"h3",flex:1,children:t+1})})}),(0,r.jsx)(b.ZP,{item:!0,children:(0,r.jsx)(o.Z,{sx:{px:1,border:"1px solid #DCDCDC",borderRadius:2,height:"56px",boxSizing:"border-box",display:"flex",alignItems:"center"},children:(0,r.jsx)(i.Z,{variant:"desktop-body",children:e})})})]},t)}
1)),(0,r.jsx)(i.Z,{variant:"desktop-body",sx:{display:"block",my:2.5},children:"Wysy\u0142aj\u0105c wniosek potwierdzam, \u017ce zapozna\u0142em/am si\u0119 z Regulaminem."}),(0,r.jsxs)(b.ZP,{container:!0,justifyContent:"space-between",children:[(0,r.jsx)(b.ZP,{item:!0,children:(0,r.jsx)(a.Z,{disableElevation:!0,variant:"outlined",onClick:function(){s("form")},children:(0,r.jsx)(i.Z,{fontWeight:700,variant:"desktop-body",children:"Wr\xf3\u0107 do edycji"})})}),(0,r.jsx)(b.ZP,{item:!0,children:(0,r.jsx)(a.Z,{disableElevation:!0,variant:"contained",color:"brandYellow60",sx:{display:"block",width:{xs:"100%",md:"200px"}},onClick:x,children:(0,r.jsx)(i.Z,{fontWeight:700,variant:"desktop-body",children:"Potwierd\u017a"})})})]})]})};function ye(e){e.width,e.height;return(0,r.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M48 4.21875C48 1.89412 46.1089 0 43.7812 0H4.21875C1.88147 0 0 1.90388 0 4.21875V26.9062C0 29.2325 1.89253 31.1156 4.21875 31.1156H23.3239C22.8441 32.4541 22.5938 33.8854 22.5938 35.3438C22.5938 42.3249 28.3524 48 35.3438 48C42.3224 48 48 42.3224 48 35.3438C48 33.392 47.5556 31.5421 46.7632 29.8896C47.5401 29.1113 48 28.0432 48 26.9062V4.21875ZM42.3923 2.8125L24 16.7063L5.60756 2.8125H42.3923ZM35.3438 45.1875C29.8642 45.1875 25.4062 40.7716 25.4062 35.3438C25.4062 29.9159 29.8642 25.5 35.3438 25.5C40.7716 25.5 45.1875 29.9159 45.1875 35.3438C45.1875 40.7716 40.7716 45.1875 35.3438 45.1875ZM45.1875 26.9062C45.1875 27.0489 45.1654 27.1882 45.1245 27.3204C42.8015 24.4937 39.2797 22.6875 35.3438 22.6875C30.9563 22.6875 27.0736 24.9069 24.7567 28.3125H4.21875C3.44334 28.3125 2.8125 27.6817 2.8125 26.9062V4.22587L23.1523 19.5908C23.4032 19.7803 23.7016 19.875 24 19.875C24.2984 19.875 24.5968 19.7803 24.8477 19.5908L45.1875 4.22587V26.9062Z",fill:"#FFA200"}),(0,r.jsx)("path",{d:"M41.9698 31.5434C41.424 30.9907 40.5337 30.9848 39.981 31.5303L33.8503 37.5803L30.6194 34.3493C30.0703 33.8001 29.1798 33.8001 28.6306 34.3493C28.0815 34.8985 28.0815 35.7888 28.6306 36.338L32.8494 40.5568C33.3973 41.1046 34.2826 41.105 34.8315 40.5633L41.9565 33.5321C42.5093 32.9866 42.5152 32.0962 41.9698 31.5434Z",fill:"#FFA200"})]})}var je=function(e){e=null!==e?e:function(e){throw e}(new TypeError("Cannot destructure undefined"));var t=m(),n=t.applicationModalStepSetter,l=t.clearFormData;return(0,r.jsxs)(o.Z,{sx:{mt:3,mb:3},children:[(0,r.jsx)(ye,{}),(0,r.jsx)(i.Z,{variant:"h2",mt:1.5,children:"Wniosek wys\u0142any!"}),(0,r.jsx)(i.Z,{variant:"desktop-body",sx:{display:"block",maxWidth:"420px",mt:1,mb:2.5},children:"Informacje o rozpatrzeniu oraz poddaniu wniosku do reakcji akcjonariuszy otrzymasz w wiadomo\u015bci e-mail."}),(0,r.jsx)(a.Z,{disableElevation:!0,variant:"contained",color:"brandYellow60",sx:{display:"block",width:{xs:"100%",md:"200px"}},onClick:function(){l(),n(void 0)},children:(0,r.jsx)(i.Z,{fontWeight:700,variant:"desktop-body",children:"Zamknij to okno"})})]})};var be,we=function(e){e=null!==e?e:function(e){throw e}(new TypeError("Cannot destructure undefined"));var t=m(),n=t.applicationModalStepGetter,i=t.applicationModalStepSetter,a=t.clearFormData,l=function(){a(),i(void 0)},s=n();return(0,r.jsx)(v.ZP,{anchor:"right",open:Boolean(s),onClose:l,PaperProps:{sx:{backgroundColor:"white",width:{xs:"100%"}}},children:(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",position:"relative",marginX:"auto",width:{xs:"100%",sm:"630px"},px:{xs:.75,sm:0},pt:{xs:.75,sm:1.5,lg:2.5}},children:[(0,r.jsx)(y.Z,{size:"medium",onClick:l,sx:{position:"absolute",alignSelf:"flex-end",boxShadow:3},children:(0,r.jsx)(g.Z,{})}),(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column"},children:["form"===s&&(0,r.jsx)(de,{}),"preview"===s&&(0,r.jsx)(ge,{}),"confirmation"===s&&(0,r.jsx)(je,{})]})]})})},Ze=n(7471),Ce=n(754),ke=n(2798),Pe=(0,c.createContext)({currentProposalModalReplyId:null,setCurrentProposalModalReplyId:function(e){}}),Se=function(e){var t=e.children,n=(0,c.useState)(""),o=n[0],i=n[1];return(0,r.jsx)(Pe.Provider,{value:{currentProposalModalReplyId:o,setCurrentProposalModalReplyId:i},children:t})},ze=function(){return(0,c.useContext)(Pe)},Oe=n(391),Ae=n(8470),Fe=n(4593);function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function De(e){var t=(0,xe.S)();return(0,Fe.ZP)((function(e){return["decisionsVotedOpenProposals[".concat(e,"]"),e]}),(function(e){var n=_e(e,2),r=(n[0],n[1]);return t.getProposals({"order[endDate]":"asc","order[createdAt]":"asc",itemsPerPage:3,state:"accepted",voted:!0,page:r+1})}),{fallbackData:e?[e]:[],refreshInterval:3e4})}function Ie(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function Re(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ie(i,r,o,a,l,"next",e)}function l(e){Ie(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te,Me,Ve,Ee=(Ne(be={},ke.G.INFAVOR,!0),Ne(be,ke.G.AGAINST,!1),be),We=function(e){e=null!==e?e:function(e){throw e}(new TypeError("Cannot destructure undefined"));var t,n=ze(),i=n.currentProposalModalReplyId,a=n.setCurrentProposalModalReplyId,l=function(){p(null),a("")},s=(0,c.useState)(),d=s[0],p=s[1],u=(0,Oe.Z)().mutate,x=De().mutate,f=(0,xe.S)(),m=(0,Ae.Z)().userId;(0,c.useEffect)((function(){var e=Re(ue().mark((function e(){return ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(i);case 2:case"end":return e.stop()}}),e)})));i&&e()}),[i]);var h,j=d||{},b=j.approvedVotesAmount,w=j.allVotesAmount,Z=b&&w?100*b/w:0,C=Re(ue().mark((function e(t){var n;return ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.getProposal(t);case 3:n=e.sent,p(n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Fetching Single Voting Error: ",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),k=Re(ue().mark((function e(t){var n;return ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m){e.next=16;break}return e.prev=1,n={proposal:"/api/proposals/".concat(i),user:"/api/users/".concat(m),approved:Ee[t]},e.next=5,f.postProposal(n);case 5:return e.next=7,C(i);case 7:return e.next=9,u();case 9:return e.next=11,x();case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),console.log("[PendingProposalsContext][confirmVotes] errors",e.t0);case 16:case"end":return e.stop()}}),e,null,[[1,13]])})));return(0,r.jsxs)(v.ZP,{anchor:"right",open:Boolean(i),onClose:l,PaperProps:{sx:{backgroundColor:"white",width:{lg:"50%",md:"70%",xs:"100%"}}},children:[(0,r.jsx)(o.Z,{sx:{display:"flex",flexDirection:"column",pt:{xs:.75,sm:1.5,lg:2.5},pr:{xs:.75,sm:2,lg:3}},children:(0,r.jsx)(y.Z,{size:"medium",onClick:l,sx:{alignSelf:"flex-end",boxShadow:3},children:(0,r.jsx)(g.Z,{})})}),(0,r.jsxs)(o.Z,{sx:{pt:{lg:1.5},pl:{xs:1.5,lg:5},pr:{xs:1.5,lg:11.8125},pb:2,display:"flex",flexDirection:"column"},children:[!d&&(0,r.jsx)(o.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(Ce.Z,{color:"primary"})}),d&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(ke.Z,{category:he.RL[d.type],endDate:d.endDate,title:d.title,description:d.description,justification:d.explanation,userVotePick:d.vote?(h=null===(t=d.vote)||void 0===t?void 0:t.approved,h?ke.G.INFAVOR:ke.G.AGAINST):void 0,votesCount:d.allVotesSum,votesTotal:d.quorum,passOnVoteClick:k,isOver:"ended"===d.state,approvedPercent:Z,id:d.id,multipleMode:!1})})]})]})},Ge=n(5514),Le=n(2688),Be=n(9553);function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(Me=Te||(Te={})).INFAVOR="INFAVOR",Me.AGAINST="AGAINST";var He,Ye=(qe(Ve={},Te.INFAVOR,"Poparto"),qe(Ve,Te.AGAINST,"Odrzucono"),Ve),Xe=n(9837),Ue=n(1359),Je=n(7834),Ke=n(4293),Qe=n.n(Ke),et=n(8025);function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nt,rt=(tt(He={},Te.INFAVOR,{backgroundColor:"#D2F9DD",color:"#19AC42"}),tt(He,Te.AGAINST,{backgroundColor:"#FBD0D0",color:"#DC1010"}),He),ot=(tt(nt={},Te.INFAVOR,(0,r.jsx)(Je.Z,{sx:{fontSize:20}})),tt(nt,Te.AGAINST,(0,r.jsx)(et.Z,{sx:{fontSize:20}})),nt),it=n(2897);function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){at(e,t,n[t])}))}return e}var st=function(e){var t=e.category,n=e.userVotePick,i=e.proposalResult,a=e.shouldShowProposalResult,l=!i&&!a,s=!Qe()(n)&&!i,c=!n&&!i;return(0,r.jsx)(r.Fragment,{children:l&&(0,r.jsxs)(o.Z,{mb:.75,children:[s&&(0,r.jsx)(o.Z,{display:"flex",alignItems:"center",justifyContent:"center",sx:lt({borderRadius:"50%",width:48,height:48},rt[n]),children:ot[n]}),c&&(0,r.jsx)(it.Z,{category:t})]})})},ct=n(8357),dt=n(4500),pt=n(1099),ut=function(e){e.id;var t=e.title,n=e.category,a=e.votesCount,l=e.votesTotal,s=e.userVotePick,c=e.proposalEndTime,d=e.proposalResult,p=e.onClick,u=e.isOver,x=Boolean(d||u);return(0,r.jsx)(Xe.Z,{onClick:p,sx:{cursor:"pointer"},children:(0,r.jsxs)(Ue.Z,{children:[(0,r.jsx)(st,{category:n,userVotePick:s,proposalResult:d,shouldShowProposalResult:x}),(0,r.jsx)(o.Z,{sx:{minHeight:"6rem",maxHeight:"6rem"},children:(0,r.jsx)(dt.Z,{title:t,isOver:u,shouldShowProposalResult:x})}),(0,r.jsxs)(o.Z,{display:"flex",mt:.5,gap:.5,alignItems:"center",children:[(0,r.jsx)(pt.Z,{endTime:c,isOver:u}),!x&&(0,r.jsxs)(o.Z,{display:"flex",alignItems:"center",gap:.2,children:[(0,r.jsx)(Je.Z,{sx:{fontSize:20},color:"action"}),(0,r.jsxs)(i.Z,{variant:"caption",children:[a," / ",l," do quorum"]})]})]}),x&&(0,r.jsx)(ct.Z,{result:Ye[d],isOver:u})]})})};function xt(e){var t,n=e.proposal,o=ze().setCurrentProposalModalReplyId;return(0,r.jsx)(ut,{id:n.id,title:n.title,category:he.RL[n.type],votesCount:n.allVotesSum,votesTotal:n.quorum,userVotePick:n.vote?(t=n.vote.approved,t?Te.INFAVOR:Te.AGAINST):void 0,isOver:"ended"===n.state,proposalEndTime:n.endDate?new Date(n.endDate):null,onClick:function(){o(n.id)}})}var ft=n(4227);function mt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ht(e){var t,n,a=function(e){var t=(0,xe.S)();return(0,Fe.ZP)((function(e){return["decisionsEndedProposals[".concat(e,"]"),e]}),(function(e){var n=$e(e,2),r=(n[0],n[1]);
1return t.getProposals({"order[endDate]":"desc","order[createdAt]":"asc",itemsPerPage:8,state:"ended",page:r+1})}),{fallbackData:e?[e]:[],refreshInterval:3e4})}(e.proposals),l=a.data,s=a.setSize,c=a.size;if(!l||0===l.length)return(0,r.jsx)(r.Fragment,{});var d=(null===(n=l[l.length-1])||void 0===n?void 0:n.length)>=8,p=(t=[]).concat.apply(t,mt(l));return 0===p.length?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Z,{variant:"h3",sx:{fontWeight:700},mt:3,children:"Zako\u0144czone"}),(0,r.jsx)(b.ZP,{container:!0,rowSpacing:1,spacing:1,mt:.25,children:p.map((function(e){return(0,r.jsx)(b.ZP,{item:!0,xs:12,md:6,lg:3,children:(0,r.jsx)(xt,{proposal:e})},e.id)}))}),d&&(0,r.jsx)(o.Z,{mt:2,children:(0,r.jsx)(ft.Z,{onClick:function(){s(c+1)}})})]})}function vt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function gt(e){var t,n,i=e.proposals,a=(0,Oe.T)(i),l=a.data,s=a.setSize,c=a.size;if(!l||0===l.length)return(0,r.jsx)(r.Fragment,{});var d=(null===(n=l[l.length-1])||void 0===n?void 0:n.length)>=9,p=(t=[]).concat.apply(t,vt(l));return 0===p.length?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.ZP,{container:!0,rowSpacing:1,spacing:1,mt:.25,children:p.map((function(e){return(0,r.jsx)(b.ZP,{item:!0,xs:12,md:6,lg:4,children:(0,r.jsx)(xt,{proposal:e})},e.id)}))}),d&&(0,r.jsx)(o.Z,{mt:2,children:(0,r.jsx)(ft.Z,{onClick:function(){s(c+1)}})})]})}function yt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function jt(e){var t,n,a=De(e.proposals),l=a.data,s=a.setSize,c=a.size;if(!l||0===l.length)return(0,r.jsx)(r.Fragment,{});var d=(null===(n=l[l.length-1])||void 0===n?void 0:n.length)>=3,p=(t=[]).concat.apply(t,yt(l));return 0===p.length?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Z,{variant:"h3",sx:{fontWeight:700},mt:3,children:"Zareagowano"}),(0,r.jsx)(b.ZP,{container:!0,rowSpacing:1,spacing:1,mt:.25,children:p.map((function(e){return(0,r.jsx)(b.ZP,{item:!0,xs:12,md:6,lg:4,children:(0,r.jsx)(xt,{proposal:e})},e.id)}))}),d&&(0,r.jsx)(o.Z,{mt:2,children:(0,r.jsx)(ft.Z,{onClick:function(){s(c+1)}})})]})}var bt=n(9419),wt=n(7036),Zt=function(e){var t=e.proposals,n=(0,Oe.Z)(t).data;return n&&n.length>0?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",minHeight:"105px",backgroundColor:"#F1F0EC",borderRadius:2,p:1.5,gap:1.5,mb:2},children:[(0,r.jsx)(wt.Z,{sx:{fontSize:46,color:"#259B3F"}}),(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(i.Z,{variant:"h3",sx:{fontSize:{xs:"18px",md:"20px"}},children:"Brak nowych wniosk\xf3w"}),(0,r.jsx)(i.Z,{variant:"body2",mt:.3,sx:{fontSize:{xs:"12px",md:"14px"}},children:"Podj\u0105\u0142e\u015b/a\u015b reakcje we wszystkich nowych wnioskach!"})]})]})},Ct=function(e){var t=e.openProposals,n=e.votedProposals,i=e.endedProposals,a=(0,Ae.Z)().isAuthenticated;return(0,r.jsx)(bt.O,{children:(0,r.jsxs)(Le.i,{children:[(0,r.jsx)(Ge.ZP,{}),(0,r.jsx)(Ze.Z,{decisionsType:Be.Yt.PROPOSALS}),a&&(0,r.jsx)(Zt,{proposals:t}),a&&(0,r.jsxs)(f,{children:[(0,r.jsx)(o.Z,{width:"100%",children:(0,r.jsx)(h,{})}),(0,r.jsx)(we,{})]}),(0,r.jsxs)(Se,{children:[(0,r.jsx)(We,{}),(0,r.jsx)(gt,{proposals:t}),a&&n&&n.length>0&&(0,r.jsx)(jt,{proposals:n}),(0,r.jsx)(ht,{proposals:i})]})]})})},kt=n(9902),Pt=!0;function St(e){var t=e.votedOpenProposals,n=e.endedProposals,o=e.n
1otVotedOpenProposals;return(0,r.jsx)(Ct,{openProposals:o,endedProposals:n,votedProposals:t})}St.getLayout=function(e){return(0,r.jsx)(kt.Z,{children:e})}}},function(e){e.O(0,[9238,7831,5058,2912,2716,4507,8246,9515,6469,3720,9902,3336,7842,9774,2888,179],(function(){return t=8121,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.