PageSourceSearch

https://www.molotov.tv/3893-6f590a55b2b90f7307f4.js

js molotov.tv collected 2026-10-01 10:31:25 UTC 21,682 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_molotovtv_js_front_landing=self.webpackChunk_molotovtv_js_front_landing||[]).push([[3893],{43893:(e,t,n)=>{n.r(t),n.d(t,{default:()=>te});var r=n(23029),o=n(92901),s=n(9417),i=n(85501),a=n(56822),c=n(53954),l=n(64467),u=n(96540),p=n(61225),d=n(10453),f=n(32485),y=n.n(f),h=n(2543),A=n(80971),v=n(79223),m=n(34521),g=n(7769),C=n(87689),S=n(42917),b=n(3418),j=n(84857),x=n(47574),P=n(15992);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=n(21695),T=n(18953),I=n(74848);function N(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=(0,c.A)(e);if(t){var o=(0,c.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.A)(this,n)}}var R=function(e){(0,i.A)(n,e);var t=N(n);function n(){var e;(0,r.A)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,l.A)((0,s.A)(e),"state",{password:"",showPassword:!1,isValid:!1,iconType:"eye"}),(0,l.A)((0,s.A)(e),"onInputChange",(function(t){e.setState({password:t,isValid:!!t.length})})),(0,l.A)((0,s.A)(e),"toggleShowPassword",(function(){e.setState({showPassword:!e.state.showPassword,iconType:"eye"===e.state.iconType?"crossedEye":"eye"})})),(0,l.A)((0,s.A)(e),"onSubmit",(function(t){var n,r;t.preventDefault(),e.props.dispatch((n={url:(0,h.get)(e.props.submitUrl,"url"),method:"POST"},r={password:e.state.password},{accessTokenRequired:!0,request:{base:"",url:n.url,method:n.method,body:_({},r)},onStart:function(){return{type:j.YDb}},onSuccess:function(e){return{type:j.gnN,payload:e}},onError:function(e){return{type:j.wBl,payload:x.A.errorPayload((0,h.get)(e,"error.user_message",P.A.parental_control.errorPasswordFormDefault))}}})),e.props.dispatch(e.props.setHasPassword())})),(0,l.A)((0,s.A)(e),"onForgottenPassword",(function(){e.props.dispatch((0,A.VC)(k.A.routes.resetPassword))})),e}return(0,o.A)(n,[{key:"componentDidMount",value:function(){b.A.trackPage("password_confirmation")}},{key:"render",value:function(){var e=this.state,t=e.password,n=e.showPassword,r=this.props.hasPassword;return(0,I.jsxs)("div",{children:[(0,I.jsx)(S.A,{title:r?P.A.parental_control.passwordForm.title:P.A.parental_control.passwordForm.createPasswordTitle,displaySeparator:!1,customTitleStyle:T.A.title}),(0,I.jsxs)("form",{className:T.A.form,onSubmit:this.onSubmit,children:[(0,I.jsx)("p",{className:T.A.subtitle,children:r?P.A.parental_control.passwordForm.subtitle:P.A.parental_control.passwordForm.createPasswordSubtitle}),(0,I.jsxs)("div",{className:T.A.input,children:[(0,I.jsx)(g.A,{type:n?"text":"password",autoFocus:!0,placeholder:P.A.parental_control.passwordForm.placeholder,customStyle:T.A.password,onChange:this.onInputChange}),t.length?(0,I.jsx)(m.A,{type:m.B[this.state.iconType],onClick:this.toggleShowPassword,rootStyle:y()(T.A.showIconRoot,T.A[this.state.iconType]),iconStyle:T.A.showIcon}):null]}),this.props.errorMessage&&(0,I.jsx)("div",{className:T.A.errorMessage,children:this.props.errorMessage}),(0,I.jsx)(v.A,{value:P.A.parental_control.passwordForm.forgetPwd,onClick:this.onForgottenPassword,customStyle:T.A.borderless}),(0,I.jsx)(C.A,{type:"submit",customStyle:y()(T.A.submitBtn,C.A.types.primary,(0,l.A)({},T.A.disabled,!this.state.isValid)),value:P.A.parental_control.passwordForm.confirmBtn})]})]})}}]),n}(u.Component),O=n(73563),D=n(69281),B=n(41261);function F(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=(0,c.A)(e);if(t){var o=(0,c.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.A)(this,n)}}var M=function(e){(0,i.A)(n,e);var t=F(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.customStyle,r=t.options,o=t.protectionLevel,s=t.selectedSecurityType,i=r.find((function(e){return e.level===o}));return(0,I.jsxs)("div",{className:y()(B.A.root,n),children:[(0,I.jsx)("div",{className:B.A.slider,children:r.map((function(t,n){var a;return(0,I.jsxs)(u.Fragment,{children:[(0,I.jsx)("div",{className:y()(B.A.section,(0,l.A)({},B.A.check,t.level===o)),onClick:function(){e.props.submitSlider(t)},children:(0,I.jsx)("div",{className:y()(B.A.rangeStep,(a={},(0,l.A)(a,B.A.firstRange,0===n),(0,l.A)(a,B.A.lastRange,n===r.length-1),(0,l.A)(a,B.A.selectedRange,i.level===t.level),(0,l.A)(a,B.A.disabled,t.disabled[s]),a)),children:(0,I.jsx)(m.A,{type:m.B[t.icon],iconStyle:y()(B.A.rangeIcon,(0,l.A)({},B.A.selectedIcon,i.level===t.level))})})}),n<r.length-1&&(0,I.jsx)("div",{className:B.A.line,children:(0,I.jsx)(m.A,{type:"hide"===s?m.B.invisibleLevel:m.B.lock,rootStyle:B.A.invisibleIcon})})]},n)}))}),(0,I.jsx)("div",{className:B.A.ratingList,dangerouslySetInnerHTML:{__html:i.label[s]}}),(0,I.jsx)(D.A,{customStyle:B.A.separator})]})}}]),n}(u.Component);(0,l.A)(M,"defaultProps",{customStyle:"",selectedSecurityType:"hide"});var E=n(74592);const L=function(e){var t,n=e.activated,r=void 0===n||n,o=e.customStyle,s=e.disabled,i=void 0!==s&&s,a=e.onClick,c=e.customActivatedStyle,u=void 0===c?"":c,p=e.displayToggleIcon,d=void 0===p||p;return(0,I.jsx)("div",{className:y()(E.A.toggle,(t={},(0,l.A)(t,E.A.disabled,i),(0,l.A)(t,u,r),(0,l.A)(t,E.A.activated,r),t),o),onClick:i?void 0:a,children:(0,I.jsx)("div",{className:E.A.handle,children:d&&(r?(0,I.jsx)(m.A,{type:m.B.checkmark,iconStyle:E.A.icon}):(0,I.jsx)(m.A,{type:m.B.close,iconStyle:E.A.icon}))})})};var V=n(55097),z=n(25665);function K(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=(0,c.A)(e);if(t){var o=(0,c.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.A)(this,n)}}var q=function(e){(0,i.A)(n,e);var t=K(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.toggleOptions,r=t.setPinSettings,o=t.shouldDisplayPinCode,s=t.pinCreated,i=t.onCodeSubmit,a=t.pinErrorMessage,c=t.onEditPinCodeClick;return(0,I.jsxs)("div",{children:[o&&(0,I.jsx)(V.A,{codeSize:4,title:s?(0,I.jsxs)("span",{children:["Entrez le ",(0,I.jsx)("span",{className:z.A.yellow,children:"nouveau"})," code PIN"]}
1):"Créez le code PIN",description:s?"":"Ce code vous sera demandé pour regarder les contenus interdits.",inputType:"password",payloadCodeKey:"pin_code",rootStyle:z.A.rootStyle,validCharCodeRegex:/[0-9]/,customTitleStyle:z.A.codeInputTitle,displayTitleSeparator:!1,customCodeContentStyle:z.A.codeContent,customCodeMessageStyle:z.A.codeMessage,customCodeInputStyle:z.A.codeInput,alwaysDisplayBtn:!1,customBtnStyle:z.A.codeSubmitBtn,onCodeSubmit:i,errorMessage:a}),!o&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:z.A.changePinCodeSection,children:[(0,I.jsxs)("div",{className:z.A.changePinCode,onClick:c,children:[s?"Modifier":"Créer"," le code PIN",(0,I.jsx)(m.A,{type:m.B.arrowRight})]}),(0,I.jsx)(D.A,{customStyle:z.A.separator})]}),n.map((function(t,n){return(0,I.jsxs)("div",{children:[(0,I.jsxs)("div",{className:z.A.toggles,children:[(0,I.jsx)("div",{className:z.A.toggleLabel,children:t.label}),(0,I.jsx)(L,{customStyle:z.A.toggle,customActivatedStyle:z.A.activeToggle,displayToggleIcon:!1,activated:e.props[t.key],onClick:function(){return r(t)}})]}),(0,I.jsx)(D.A,{customStyle:z.A.separator})]},n)}))]})]})}}]),n}(u.Component),U=n(38705);const H=function(e){var t=e.securityTypes,n=void 0===t?[]:t,r=e.selectedSecurityType,o=void 0===r?"hide":r,s=e.onClick;return(0,I.jsxs)("div",{className:U.A.root,children:[(0,I.jsx)("h3",{className:U.A.title,children:"Type de sécurité"}),(0,I.jsx)("div",{className:U.A.switch,children:n.map((function(e,t){return(0,I.jsxs)("div",{onClick:function(t){return s(t,e)},className:y()(U.A.switchContent,(0,l.A)({},U.A.selectedSwitch,o===e.name)),children:[(0,I.jsxs)("div",{className:U.A.switchTitleContainer,children:[(0,I.jsxs)("div",{className:U.A.switchTitleContent,children:[(0,I.jsx)(m.A,{type:m.B[e.iconType],iconStyle:U.A[e.iconType]}),e.title]}),o===e.name&&(0,I.jsx)(m.A,{type:m.B.checkmark})]}),(0,I.jsx)("p",{className:U.A.switchDescription,children:e.description})]},t)}))})]})};var Z=n(11693);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=(0,c.A)(e);if(t){var o=(0,c.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.A)(this,n)}}var X,Y,$,G=function(e){(0,i.A)(n,e);var t=W(n);function n(){var e;(0,r.A)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,l.A)((0,s.A)(e),"state",{blur_adult_covers:(0,h.get)(e.props.parentalControl,"blur_adult_covers",!1),hide_adult_contents:(0,h.get)(e.props.parentalControl,"hide_adult_contents",!1),selectedSecurityType:(0,h.get)(e.props.parentalControl,"security_type","hide"),shouldDisplayPinCode:!1,protectionLevel:(0,h.get)(e.props.parentalControl,"protection_level",4)}),(0,l.A)((0,s.A)(e),"onSubmitSlider",(function(t){"hide"===e.state.selectedSecurityType&&5===t.level||e.setState({protectionLevel:t.level})})),(0,l.A)((0,s.A)(e),"onTypeChange",(function(t,n){e.setState({selectedSecurityType:n.name}),"hide"===n.name&&5===e.state.protectionLevel&&e.setState({protectionLevel:4}),"hide"===n.name&&e.state.shouldDisplayPinCode&&e.setState({shouldDisplayPinCode:!1})})),(0,l.A)((0,s.A)(e),"submitSettings",(function(t){if("pin"!==e.state.selectedSecurityType||e.state.shouldDisplayPinCode||(0,h.get)(e.props.parentalControl,"pin_created",!1)){var n={security_type:e.state.selectedSecurityType,protection_level:e.state.protectionLevel,blur_adult_covers:e.state.blur_adult_covers,hide_adult_contents:e.state.hide_adult_contents};e.props.dispatch(function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{accessTokenRequired:!0,request:{base:"",url:e.url,method:e.method,body:_({},t)},onStart:function(){return{type:j.N9Z}},onSuccess:function(e){return{type:j.dBE,payload:e,displayNotification:n}},onError:function(e){return{type:j.F2M,payload:x.A.errorPayload((0,h.get)(e,"user_message",P.A.parental_control.errorPasswordFormDefault))}}}}({url:(0,h.get)(e.props.parentalControl,"actions.submit_config"),method:"POST"},n,t))}else e.setState({shouldDisplayPinCode:!0})})),(0,l.A)((0,s.A)(e),"onCodePinSubmit",(function(t){var n,r,o;"0000"===t||t.length<4?e.setState({pinErrorMessage:"Votre code PIN doit comprendre 4 chiffres à l'exception de 0000."}):(e.props.dispatch((n={url:(0,h.get)(e.props.parentalControl,"actions.edit_pin"),method:"POST"},r={pin_code:t},o=e.props.parentalControl.pin_created,{accessTokenRequired:!0,request:{base
1:"",url:n.url,method:n.method,body:_({},r)},onSuccess:function(e){return{type:j.P2D,payload:e,pinCodeAlreadyCreated:o}},onError:function(e){return{type:j.vXu,payload:x.A.errorPayload((0,h.get)(e,"user_message",P.A.parental_control.errorPasswordFormDefault))}}})),e.props.dispatch(e.submitSettings(!1)),e.setState({shouldDisplayPinCode:!1}))})),e}return(0,o.A)(n,[{key:"componentDidMount",value:function(){b.A.trackPage("parental_control_pin")}},{key:"render",value:function(){var e=this;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("h3",{className:Z.A.title,children:"Niveau de protection"}),(0,I.jsx)(M,{options:P.A.parentalControlPage.options,protectionLevel:this.state.protectionLevel,submitSlider:this.onSubmitSlider,selectedSecurityType:this.state.selectedSecurityType}),(0,I.jsx)(H,{securityTypes:P.A.parentalControlPage.securityTypes,selectedSecurityType:this.state.selectedSecurityType,onClick:this.onTypeChange}),"pin"===this.state.selectedSecurityType&&(0,I.jsx)(q,{toggleOptions:P.A.parentalControlPage.toggleOptions,selectedSecurityType:this.state.selectedSecurityType,setPinSettings:function(t){return e.setState((0,l.A)({},t.key,!e.state[t.key]))},blur_adult_covers:this.state.blur_adult_covers,hide_adult_contents:this.state.hide_adult_contents,shouldDisplayPinCode:this.state.shouldDisplayPinCode,pinCreated:this.props.parentalControl.pin_created,onCodeSubmit:this.onCodePinSubmit,pinErrorMessage:this.state.pinErrorMessage,onEditPinCodeClick:function(){return e.setState({shouldDisplayPinCode:!0})}}),(0,I.jsx)("div",{className:Z.A.footerContainer,children:!this.state.shouldDisplayPinCode&&(0,I.jsx)(v.A,{type:"button",color:v.A.colors.primary,onClick:this.submitSettings,value:"Appliquer",customStyle:Z.A.footerBtn})})]})}}]),n}(u.PureComponent),J=n(9057),Q=n(22559);function ee(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=(0,c.A)(e);if(t){var o=(0,c.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.A)(this,n)}}var te=(X=(0,p.Ng)((function(e){return{parentalControl:e.parentalControl,hasPassword:(0,Q.A)(e).hasPassword,navVisible:e.ui.navVisible,appReferences:e.appReferences}})),X(($=function(e){(0,i.A)(n,e);var t=ee(n);function n(){var e;(0,r.A)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,l.A)((0,s.A)(e),"setHasPassword",(function(){e.props.dispatch((0,J.k7)(!0))})),e}return(0,o.A)(n,[{key:"componentWillUnmount",value:function(){this.props.dispatch({type:j.caA})}},{key:"render",value:function(){var e=this.props,t=e.navVisible,n=e.parentalControl,r=e.appReferences,o=e.hasPassword;return(0,I.jsxs)(O.A,{navVisible:t,children:[n.pending&&(0,I.jsx)(d.A,{centerInParent:!0}),(!o||!n.pending)&&!n.settings&&(0,I.jsx)(R,{dispatch:this.props.dispatch,errorMessage:n.errorMessage,submitUrl:r.parental_control_v3,hasPassword:o,setHasPassword:this.setHasPassword}),n.settings&&(0,I.jsx)(G,{dispatch:this.props.dispatch,parentalControl:n.settings})]})}}]),n}(u.Component),(0,l.A)($,"defaultProps",{hasPassword:!0}),Y=$))||Y)},55097:(e,t,n)=>{n.d(t,{A:()=>I});var r,o,s=n(60436),i=n(23029),a=n(92901),c=n(9417),l=n(85501),u=n(56822),p=n(53954),d=n(64467),f=n(96540),y=n(32485),h=n.n(y),A=n(61225),v=n(2543),m=n(73563),g=n(79223),C=n(87689),S=n(42917),b=n(7389),j=n(15992),x=n(21695),P=n(85171),w=n(74848);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,d.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(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=(0,p.A)(e);if(t){var o=(0,p.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.A)(this,n)}}var I=(0,A.Ng)()((o=function(e){(0,l.A)(n,e);var t=T(n);function n(){var e;(0,i.A)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,d.A)((0,c.A)(e),"state",{pending:!1,errorMessage:"",submitDisabled:!0}
1),(0,d.A)((0,c.A)(e),"inputsRef",(0,s.A)(Array(e.props.codeSize)).map((function(){return f.createRef()}))),(0,d.A)((0,c.A)(e),"getInputComponents",(function(){for(var t=[],n=0;n<e.props.codeSize;++n)t.push(e.getInputComponent(n));return t})),(0,d.A)((0,c.A)(e),"getInputComponent",(function(t){return(0,w.jsx)("input",{type:e.props.inputType,maxLength:"1",autoComplete:"off",autoFocus:0===t,onKeyDown:e.onCodeInputKeyDown,onInput:e.onCodeInput,onPaste:e.onCodePasted,name:"code_".concat(t),className:h()(P.A.codeInput,e.props.customCodeInputStyle),ref:e.inputsRef[t]},t)})),(0,d.A)((0,c.A)(e),"onCodePasted",(function(t){var n=t.clipboardData.getData("Text").split("");if(n.length)for(var r=(0,s.A)(e.codeContainer.childNodes),o=r.findIndex((function(e){return e===t.target})),i=n.shift();r[o]&&i;)e.inputFocus(r[o]),r[o].value=i.toUpperCase(),o++,i=n.shift();e.checkIfAllFilled()})),(0,d.A)((0,c.A)(e),"onCodeInputKeyDown",(function(t){var n=t.target,r=n.selectionStart;switch(e.state.errorMessage&&e.setState({errorMessage:""}),t.keyCode){case 37:0===r&&(t.preventDefault(),e.focusPreviousInput(n));break;case 39:(1===r||!e.isInputFilled(n)&&0===r)&&(t.preventDefault(),e.focusNextInput(n));break;case 13:break;case 8:e.isInputFilled(n)||(t.preventDefault(),e.focusPreviousInput(n));break;default:!e.props.validCharCodeRegex.test(t.key)||t.metaKey||t.ctrlKey||(n.value=t.key.toUpperCase(),e.isNextInputFilled(n)||e.focusNextInput(n)),t.preventDefault()}e.checkIfAllFilled()})),(0,d.A)((0,c.A)(e),"onCodeInput",(function(t){var n=t.target;n.value.length>1&&(n.value=n.value.slice(n.value.length-1)),n.value=n.value.toUpperCase(),1!==n.value.length||e.isNextInputFilled(n)||e.focusNextInput(n),e.checkIfAllFilled()})),(0,d.A)((0,c.A)(e),"focusPreviousInput",(function(t){var n=t.previousElementSibling;return n&&e.inputFocus(n)})),(0,d.A)((0,c.A)(e),"focusNextInput",(function(t){var n=t.nextElementSibling;return n&&e.inputFocus(n)})),(0,d.A)((0,c.A)(e),"inputFocus",(function(e){e.focus(),e.setSelectionRange(1,1)})),(0,d.A)((0,c.A)(e),"isInputFilled",(function(e){return e&&!!e.value})),(0,d.A)((0,c.A)(e),"isNextInputFilled",(function(t){var n=t.nextElementSibling;return n&&e.isInputFilled(n)})),(0,d.A)((0,c.A)(e),"onCodeSubmit",(function(t){t&&t.preventDefault();var n=e.props.onCodeSubmit;"function"==typeof n&&n(e.getTypedCode())})),(0,d.A)((0,c.A)(e),"onError",(function(t){return function(){e.setState({errorMessage:t,pending:!1}),e.props.onCodeInputError(t)}})),(0,d.A)((0,c.A)(e),"handleInteractionButton",(function(t){var n=(0,v.get)(t,"on_click"),r=(0,v.get)(e.props,["interaction","actions",n]);e.props.onInteractionButtonClicked(e.getTypedCode()),e.setState({pending:!0}),r&&(r.payload=k(k({},r.payload),{},(0,d.A)({},e.props.payloadCodeKey,e.getTypedCode())),e.props.dispatch(b.A.executeAction(r,e.onError)))})),(0,d.A)((0,c.A)(e),"checkIfAllFilled",(function(){var t=e.inputsRef.filter((function(e){return""!==e.current.value}));e.setState({submitDisabled:t.length!==e.props.codeSize})})),e}return(0,a.A)(n,[{key:"getTypedCode",value:function(){return this.codeContainer?(0,s.A)(this.codeContainer.childNodes).map((function(e){return e.value})).join(""):""}},{key:"render",value:function(){var e=this,t=this.props,n=this.state.errorMessage||this.props.errorMessage;return(0,w.jsxs)(m.A,{className:h()(P.A.linkRoot,t.rootStyle),children:[(0,w.jsx)(S.A,{title:t.title,customTitleStyle:t.customTitleStyle,displaySeparator:t.displayTitleSeparator}),(0,w.jsxs)("form",{className:h()(P.A.codeContent,t.customCodeContentStyle),onSubmit:this.onCodeSubmit,children:[(0,w.jsx)("div",{className:h()(P.A.codeMessage,t.customCodeMessageStyle),children:t.description}),(0,w.jsx)("div",{className:P.A.codeInputs,ref:function(t){return e.codeContainer=t},children:this.getInputComponents()}),n&&(0,w.jsx)("div",{className:P.A.error,children:n}),this.props.interaction&&this.props.interaction.buttons.map((function(t,n){return(0,w.jsx)(g.A,{color:g.A.colors[t.styles[0]],onClick:function(){return e.handleInteractionButton(t)},value:t.title,customStyle:P.A.buttonCode,disabled:e.state.pending},n)})),!this.props.interaction&&(0,w.jsx)(C.A,{type:"submit",customStyle:h()(C.A.types.yellowFull,P.A.buttonCode,P.A.button,t.customBtnStyle,(0,d.A)({},P.A.hideSubmitBtn,this.state.submitDisabled&&!t.alwaysDisplayBtn)),disabled:t.disabled,value:j.A.validate}),t.footer&&(0,w.jsx)("p",{className:P.A.footer,children:t.footer})]})]})}}]),n}(f.Component),(0,d.A)(o,"defaultProps",{codeSize:4,inputType:"text",onCodeInputError:x.A.NoOp,onInteractionButtonClicked:x.A.NoOp,payloadCodeKey:"c
1ode",validCharCodeRegex:/^[a-zA-Z0-9]{1}$/,displayTitleSeparator:!0,alwaysDisplayBtn:!0}),r=o))||r}}]);
2//# sourceMappingURL=3893-6f590a55b2b90f7307f4.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.