PageSourceSearch

https://www.mediatheque-rueilmalmaison.fr/appstatic/js/3618.517f623db8cc04047acc.chunk.js

js mediatheque-rueilmalmaison.fr collected 2026-09-24 23:45:28 UTC 11,350 bytes, 1 lines download raw bytes

1(self.webpackChunkmondoin_mobile_ui=self.webpackChunkmondoin_mobile_ui||[]).push([[3618],{33618:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Z});var r,i,a,l,o,s=n(75593),u=n(82067),c=n(67294),f=n.n(c),p=n(45697),d=n.n(p),y=n(56261),m=n(94127),h=n(32218),v=n(59371),g=n(69377),b=n(42961),w=n(51147),x=n(60520),A=n(83638),P=n(31126),E=n(71426),O=n(94184),S=n.n(O),j=n(65470),I={raised:"contained",flat:"text"},C=n(60869),R=n(25666),k=n(91645);function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}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}function Q(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var i=B(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}function L(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var Z=(r=(0,C.Z)({copyStatics:["defaultProps"]}),i=(0,y.D2)((function(e){return{text:{fontSize:"1.6rem",minWidth:"150px"},margin:{margin:"10px"},cardStyle:{margin:"0.5rem 0",padding:"5px",display:"flex",flexWrap:"wrap",alignItems:"center"},flexDiv:{display:"flex",textAlign:"center",justifyContent:"space-between",flexWrap:"wrap"},flexColumn:{flexDirection:"column"},pollDiv:{width:"100%"},alignRight:{textAlign:"start"},input:{justifyContent:"center",minWidth:"initial",alignContent:"center",width:"150px",height:"35px"},element:{display:"flex",alignContent:"center",minWidth:"initial",width:"100%",justifyContent:"center"}}})),a=(0,y.JQ)((function(e,t){return{profileInfo:(0,h.l5)(e),token:e.getIn(["account","token"])}}),(function(e,t){return{onSendResponse:function(n,r){e(m.nl(t.noticeId.replace("h::",""),n,r))},onSendPollResponse:function(n){e(m.dG(t.noticeId.replace("h::",""),JSON.stringify(n)))}}})),(0,y.h8)(l=r(l=i(l=a((o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(a,e);var t,n,r,i=W(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).fetchParticipantAnswersAndQuestions(e),t}return t=a,n=[{key:"componentWillReceiveProps",value:function(e){this.state.participantAnswersObj&&this.state.pollQuestionList&&this.state.userPollAnswers||this.props.aspects[w.O1]===e.aspects[w.O1]||this.fetchParticipantAnswersAndQuestions(e)}},{key:"fetchParticipantAnswersAndQuestions",value:function(e){var t=this.props,n=t.l,r=t.profileInfo,i=t.relax,a=e.aspects[w.O1].find((function(e){return"participantAnswer"===e.name})),l={};
1a&&a.values&&a.values.forEach&&a.values.forEach((function(e){e.qa&&e.qa.Key&&e.qa.Key===r.profileId&&(l[e.qa&&e.qa.Key]=e.qa&&e.qa.Answer)}));var o=e.aspects[w.O1].find((function(e){return"pollQuestionList"===e.name})),s={};o&&o.values&&o.values.forEach&&o.values.forEach((function(e){return s[e.qa.Key]=e.qa.Answer}));var u=e.aspects[w.O1].find((function(e){return"participantPollAnswer"===e.name})),c=[];u&&u.values&&u.values.forEach&&u.values.forEach((function(e){var t=!i.editing&&e&&e.qa&&e.qa.Answer&&JSON.parse(e.qa.Answer);t&&t.participantId===r.profileId&&c.push({questionId:t.questionId,value:t.pollAnswer})})),this.state={participantAnswersObj:l,userAnswer:l[e.profileInfo.profileId]||"",userPollAnswers:c,pollQuestionList:s,displayPoll:"Oui"===l[e.profileInfo.profileId],responseOptions:[{value:"Attente",label:n({id:"EventInvitationBlock.Waiting",defaultMessage:"Waiting"})},{value:"Oui",label:n({id:"AccountAgendaPage.yes",defaultMessage:"Yes"})},{value:"Non",label:n({id:"AccountAgendaPage.no",defaultMessage:"No"})},{value:"Provisoire",label:n({id:"EventInvitationBlock.Provisional",defaultMessage:"Provisional"})}]}}},{key:"handleParticipationAnswerChange",value:function(e){var t=this.props.onSendResponse;this.setState({displayPoll:"Oui"===e}),t(e,(new Date).toLocaleString())}},{key:"handlePollAnswerChange",value:function(e,t){var n=this.state.userPollAnswers,r=n.findIndex((function(t){return t.questionId===e}));if(-1===r)this.setState({userPollAnswers:[].concat(Q(this.state.userPollAnswers),[{questionId:e,value:t}])});else{var i=n;i[r].value=t,this.setState({userPollAnswers:i})}}},{key:"renderSinglePollQuestion",value:function(e,t){var n=this,r=this.props.classes,i=this.state,a=i.userPollAnswers,l=i.responseOptions,o=a.find((function(t){return t.questionId===e[0]})),s=o?o.value:"Attente";return f().createElement(f().Fragment,{key:t},f().createElement("div",{className:r.flexDiv},f().createElement(E.default,{className:S()(r.text,r.margin,r.alignRight)},e[1]),f().createElement(x.default,{className:S()(r.text,r.margin),select:!0,value:s,onChange:function(t){return n.handlePollAnswerChange(e[0],t.target.value)}},l.map((function(e){return f().createElement(P.default,{key:e.value,value:e.value},e.label)})))))}},{key:"renderPollQuestions",value:function(){var e=this,t=this.state.pollQuestionList,n=Object.entries(t).map((function(t,n){return e.renderSinglePollQuestion(t,n)}));return 0===n.length?null:n}},{key:"render",value:function(){var e=this,t=this.props,n=t.styleClassMap,r=t.componentID,i=t.relax,a=t.showRipple,l=t.label,o=t.localized,s=t.icon,c=t.iconPosition,p=t.classes,d=t.Element,y=t.onSendPollResponse,m=t.profileInfo,h=t.l,v=t.hideLabel,b=t.cardElevation,w=t.elevation;return this.state.participantAnswersObj[m.profileId]||i.editing?f().createElement(d,N({},i,{id:r||null,htmlTag:"div",className:S()(n.element,n.root,p.element),settings:g.Z}),f().createElement("div",{style:{display:"flex",flexDirection:"column",width:"100%"}},f().createElement(u.default,{elevation:(0,R.Z)(w,b),className:S()(p.cardStyle,D({},p.flexColumn,j.mobile)),style:{display:"flex",justifyContent:"space-around",width:"100%"}},f().createElement(f().Fragment,null,f().createElement("div",{style:{display:"flex",flexDirection:"column",width:"100%"}},f().createElement(E.default,{variant:"h6",className:S()(p.text,p.margin)},h({id:"EventInvitationBlock.invitationMessage",defaultMessage:"You are invited to this event."})),f().createElement("div",{className:p.flexDiv,style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",alignSelf:"center",width:"100%"}},f().createElement(E.default,{className:S()(p.text,p.margin)},"".concat(h({id:"EventInvitationBlock.YourResponse",defaultMessage:"Your response is"})," :")),f().createElement(x.default,{className:S()(p.text,p.margin,p.centered),select:!0,value:this.state.userAnswer,onChange:function(t){return e.setState({userAnswer:t.target.value,displayPoll:!1})}},this.state.responseOptions.map((function(e){return f().createElement(P.default,{key:e.value,value:e.value},e.label)}))))),f().createElement(A.default,{className:S()(p.inputStyle,p.input,n.input,n.button,n.textInput),variant:I[i.styleValues.buttonType],color:i.styleValues.buttonColor,style:{textAlign:i.styleValues.textAlign||"center",justifyContent:"center",alignContent:"center",minWidth:"100px",margin:"4px",width:"50%"},onClick:function(){return e.handleParticipationAnswerChange(e.state.userAnswer)},disableRipple:!a,disableFocusRipple:!a,classes:{label:n.textInput}},s&&"ltr"===c&&f().createElement("i",{style:{margin:"4px",alignSelf:"center",paddingBottom:"3px"},className:S()(s.className,n.iconSize)},s.content),!v&&(o(l)?o(l):h({id:"SendEmailDialog.send",defaultMessage:"Envoyer"})),s&&"rtl"===c&&f().createElement("i",{style:{margin:"4px"},className:S()(s.className,n.iconSize)},s.content)))),this.state.pollQuestionList&&0!==Object.keys(this.state.pollQuestionList).length&&this.state.displayPoll&&f().createElement(u.default,{className:S()(p.cardStyle,D({},p.flexColumn,j.mobile))},f().createElement("div",{className:p.pollDiv},f().createElement(E.default,{variant:"h6",className:S()(p.text,p.margin)},"".concat(h({id:"EventInvitationBlock.PollSection",defaultMessage:"Sondage"}))),this.renderPollQuestions(),f().createElement(A.default,{className:S()(p.inputStyle,n.input),variant:I[i.styleValues.buttonType],color:i.styleValues.buttonColor,style:{textAlign:i.styleValues.textAlign||"center",justifyContent:"center",alignContent:"center",minWidth:"100px",margin:"4px",width:"50%"},onClick:function(){return y(e.state.userPollAnswers)},disableRipple:!a,disableFocusRipple:!a,classes:{label:S()(n.text,n.textAlign)}},h({id:"SendEmailDialog.send",defaultMessage:"Envoyer"})))))):null}}],n&&_(t.prototype,n),r&&_(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.Z),o.propTypes={relax:d().object.isRequired,styleClassMap:d().object.isRequired,Element:d().func.isRequired,noticeId:d().string,requestAspects:d().func.isRequired,aspects:d().object,l:d().func.isRequired,label:d().oneOfType([d().object,d().string]),localized:d().func.isRequired,icon:d().object,iconPosition:d().string,
1showRipple:d().bool,token:d().string,componentID:d().string,router:d().object,classes:d().object,onSendResponse:d().func,onSendPollResponse:d().func,profileInfo:d().object,hideLabel:d().bool,cardElevation:d().oneOfType([d().string,d().number]),elevation:d().oneOfType([d().string,d().number]),template:d().string},o.defaultProps=k.Z,o.propsSchema=v.Z,o.settings=g.Z,o.style=b.Z,l=o))||l)||l)||l)||l)}}]);

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.