1"use strict";(self.webpackChunkglide_deliver=self.webpackChunkglide_deliver||[]).push([[2032],{"m/YK":(e,s,t)=>{t.d(s,{AF:()=>m,Eh:()=>p,GM:()=>d,Gi:()=>w,MO:()=>h,QX:()=>i,_c:()=>o,cN:()=>n,eE:()=>l,ni:()=>u,qw:()=>r,yG:()=>c});var a,r={daysInWeek:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysInWeekFullName:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o=[{value:"01",label:"January"},{value:"02",label:"February"},{value:"03",label:"March"},{value:"04",label:"April"},{value:"05",label:"May"},{value:"06",label:"June"},{value:"07",label:"July"},{value:"08",label:"August"},{value:"09",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],n={"01":31,"02":(a=(new Date).getFullYear(),a%4==0&&a%100!=0||a%400==0?29:28),"03":31,"04":30,"05":31,"06":30,"07":31,"08":31,"09":30,10:31,11:30,12:31},i=["draw_day","draw_days","game_no","num_draw_days","num_lines","num_weeks"],l=["deposit_amt","is_entire_balance","pay_method","withdraw_amt"],d={eq:"",ne:"",gt:"more than",ge:"more than or exactly",lt:"less than",le:"less than or exactly"},c={num_lines:"Number of selected lines must be",num_weeks:"Number of weeks selected must be",deposit_amt:"Please deposit "},u="gameplay-session-data",p="promo-validation-gameplay-session-data",m="no-data-simple-redirect",w="no-data-simple-redirect-tbw-aon",h="stw_promo"},D16P:(e,s,t)=>{t.d(s,{c:()=>u});var a=t("vDqi"),r=t.n(a),o=t("xlIj"),n=t("4Yyq"),i=t("BDG+"),l=t("q1tI");const d=function(){return l.createElement("div",{className:"reset-password__modal-wrapper modal-ui__wrapper"},l.createElement("h2",{className:"reset-password__modal-headline"},"Oops, something has gone wrong."),l.createElement("p",{className:"reset-password__modal-message"},"Oops, something went wrong. Please try again. If the issue persists, please send us an email at [email protected] or call 0330 390 2289. Calls to The Health Lottery Helpline will be charged at your local call rate."))};var c=t("EbEg");function u(e,s){var t,a={data:s,message_id:(0,o.c)()};return r().post(e,a).then((function(s){var r=s.data&&s.data.response_id,o=s.data&&s.data.cookieValidationFailed;if(s.data&&s.data.custIdValidationFailed)throw new Error("CUST_ID_VALIDATION_FAILED");if(o)throw new Error("COOKIE_VALIDATION_FAILED");if(r&&s.data.response_id!=a.message_id)throw console.log("REQ_RES_ID_MISMATCH detected",JSON.stringify({response:s||null,request:a||null,sessionCookie:(0,n.U$)("sails.sid")||null,requestTag:e||null})),t=s.data.response_id,new Error("REQ_RES_ID_MISMATCH");return r&&delete s.data.response_id,s})).catch((function(s){if("REQ_RES_ID_MISMATCH"===s.message&&r().post("/apis/operations",{requestId:a.message_id,responseId:t,sessionCookie:(0,n.U$)("sails.sid"),requestTag:e.split("=")[1]}),!(0,n.oN)()){var o=document.getElementById("thl-signature-info");(0,c.C)(o).render(l.createElement(i.c,{showModal:!0,closeModal:function(){return window.location.reload()}},l.createElement(d,null)))}}))}},"4Yyq":(e,s,t)=>{t.d(s,{Si:()=>n,U$:()=>o,Yb:()=>c,kh:()=>i,kw:()=>r,oN:()=>l,qi:()=>d});var a=t("m/YK");function r(e,s,t){var a=new Date;a.setTime(a.getTime()+24*t*60*60*1e3);var r="expires="+a.toUTCString();document.cookie=e+"="+s+"; "+r+"; path=/"}function o(e){var s,t=e+"=";return decodeURIComponent(document.cookie).split("; ").forEach((function(e){0===e.indexOf(t)&&(s=e.substring(t.length))})),s}function n(e){document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}function i(e){var s;if(e%1!=0){var t=String(e).split(".");return s=t[1].length>2?"".concat(t[0],".").concat(t[1].slice(0,2)):"".concat(t[0],".").concat(t[1]),Number(s)}return e}function l(e){var s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Version)/i.test(navigator.userAgent),t=/; wv\)/.test(navigator.userAgent);return e?"iOS"===e?s:t:t||s}function d(e,s){var t=e.src,a=e.integrity,r=e.crossOrigin,o=void 0===r?"anonymous":r,n=document.querySelector('script[src="'.concat(t,'"]'));n&&document.body.removeChild(n);var i=document.createElement("script");return i.src=t,i.async=!0,a&&(i.integrity=a),i.crossOrigin=o,i.onload=function(){s&&s(null)},i.onerror=function(){document.body.removeChild(i),s&&s(new Error("loadScriptOnDemand helper, failed to load script: ".concat(t)))},document.body.appendChild(i),function(){document.body.removeChild(i)}}function c(){var e=o(a.ni),s=o(a.Eh),t=o(a.Gi);if(t)return n(a.Gi),t;if(e||s)try{var r=e?JSON.parse(e):JSON.parse(s);return(null==r?void 0:r.gamePath)||""}catch(e){return console.error("Failed to parse game data:",e),""}return""}},FwOR:(e,s,t)=>{t.r(s),t.d(s,{default:()=>u,onLoad:()=>c});var a=t("Istr"),r=t("q1tI"),o=t("IdFE"),n=t("BDG+"),i=t("D16P"),l=t("EbEg"),d=function(e){function s(s){var t=e.call(this,s)||this;return t.tickIcon=r.createElement("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{marginBottom:-2}},r.createElement("circle",{cx:"7",cy:"7",r:"7",fill:"#48A900"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8594 5.12922C11.0469 5.30151 11.0469 5.58085 10.8594 5.75314L6.37941 9.87078C6.19196 10.0431 5.88804 10.0431 5.70059 9.87078L3.14059 7.51784C2.95314 7.34555 2.95314 7.06621 3.14059 6.89392C3.32804 6.72163 3.63196 6.72163 3.81941 6.89392L6.04 8.93491L10.1806 5.12922C10.368 4.95693 10.672 4.95693 10.8594 5.12922Z",fill:"white"})),t.regExpLetters=/[a-zA-Z]{1,}/,t.regExpNum=/[0-9]/,t.regEXpSymbol=/[^0-9A-Za-z]/,t.newPasswordChange=function(e){t.setState({password1:e.target.value,passwordIncludeMoreThan8CharactersClass:e.target.value.length>=8,passwordIncludeOneOrMoreLettersClass:t.regExpLetters.test(e.target.value),passwordIncludeNumberOrSymbolClass:t.regExpNum.test(e.target.value)||t.regEXpSymbol.test(e.target.value),arePasswordsNotTheSame:!1,requestError:"",disableBtn:!1})},t.confirmPasswordChange=function(e){t.setState({password2:e.target.value,arePasswordsNotTheSame:!1,requestError:"",disableBtn:!1})},t.passwordBlurHandler=function(){t.state.password1&&t.state.password2&&t.state.password1!==t.state.password2?t.setState({arePasswordsNotTheSame:!0}):t.state.password1&&t.state.password2&&t.state.password1===t.state.password2&&t.setState({arePasswordsNotTheSame:!1})},t.toggleFirstPassword=function(){t.setState({showExistingPassword:!t.state.showExistingPassword})},t.toggleSecondPassword=function(){t.setState({showReEnteredPassword:!t.state.showReEnteredPassword})},t.sendRequestForPasswordChange=function(){return(0,a.kH)(t,void 0,void 0,(function(){var e=this;return(0,a.KE)(this,(function(s){switch(s.label){case 0:return this.state.password1!==this.state.password2?(this.setState({arePasswordsNotTheSame:!0}),[2]):(this.setState({disableBtn:!0,requestError:""}),[4,(0,i.c)("/apis/user-management?method=resetPassword",{password1:this.state.password1,password2:this.state.password2,token:this.state.token}).then((function(s){s&&s.data&&s.data.isError?e.setState({requestError:s.data.response.$.error_message,disableBtn:!1}):e.setState({showSuccessModal:!0,token:"",password1:"",password2:""})})).catch((function(s){console.error("Error sending request for password change ",s),e.setState({disableBtn:!1})}))]);case 1:return s.sent(),[2]}}))}))},t.state={showExistingPassword:!1,showReEnteredPassword:!1,password1:"",password2:"",passwordIncludeMoreThan8CharactersClass:!1,passwordIncludeOneOrMoreLettersClass:!1,passwordIncludeNumberOrSymbolClass:!1,arePasswordsNotTheSame:!1,requestError:"",disableBtn:!1,showSuccessModal:!1,token:t.props.configuration.token},t}return(0,a.ct)(s,e),s.prototype.componentDidMount=function(){document.querySelector(".breadcrumbs-widget__wrapper").setAttribute("style","display:none;")},s.prototype.componentDidUpdate=function(){},s.prototype.render=function(){var e,s,t,a,i,l,d,c,u,p,m=this;return r.createElement("div",{className:"reset-password content-width"},r.createElement("div",{className:"reset-password__content-wrapper"},r.createElement("h2",null,this.props.configuration.headline),r.createElement("p",null,this.props.configuration.message),r.createElement("div",{className:"reset-password__grid"},r.createElement("div",{className:"reset-password__text-bold"},(null===(e=this.props.configuration)||void 0===e?void 0:e.passwordLabel)?this.props.configuration.passwordLabel:"New password"),r.createElement("div",{className:"reset-password__input-wrapper"},r.createElement("input",{type:this.state.showExistingPassword?"text":"password",className:"reset-password__input-field",value:this.state.password1,onChange:this.newPasswordChange.bind(this),onBlur:this.passwordBlurHandler.bind(this),placeholder:"ââââââââ"}),this.state.showExistingPassword?r.createElement(o.wzw,{className:"reset-password__show-password-icon",onClick:this.toggleFirstPassword.bind(this)}):r.createElement(o.whA,{className:"reset-password__show-password-icon",onClick:this.toggleFirstPassword.bind(this)}))),this.state.password1&&r.createElement("div",{className:"reset-password__grid"},r.createElement("div",null),r.createElement("div",{className:"reset-password__flex-column"},r.createElement("div",{className:"reset-password__text-gray reset-password__smaller-text ".concat(this.state.passwordIncludeMoreThan8CharactersClass?"reset-password__valid":"")},"Must include 8 or more characters ",this.state.passwordIncludeMoreThan8CharactersClass&&this.tickIcon),r.createElement("div",{className:"reset-password__text-gray reset-password__smaller-text ".concat(this.state.passwordIncludeOneOrMoreLettersClass?"reset-password__valid":"")},"Must include at least one letter ",this.state.passwordIncludeOneOrMoreLettersClass&&this.tickIcon),r.createElement("div",{className:"reset-password__text-gray reset-password__smaller-text ".concat(this.state.passwordIncludeNumberOrSymbolClass?"reset-password__valid":"")},"Must include at least one number or special character ",this.state.passwordIncludeNumberOrSymbolClass&&this.tickIcon))),r.createElement("div",{className:"reset-password__grid"},r.createElement("div",{className:"reset-password__text-bold"},(null===(s=this.props.configuration)||void 0===s?void 0:s.confirmPasswordLabel)?this.props.configuration.confirmPasswordLabel:"Re-enter New Password"),r.createElement("div",{className:"reset-password__input-wrapper"},r.createElement("input",{type:this.state.showReEnteredPassword?"text":"password",className:"reset-password__input-field",value:this.state.password2,onChange:this.confirmPasswordChange.bind(this),onBlur:this.passwordBlurHandler.bind(this),placeholder:"ââââââââ"}),this.state.showReEnteredPassword?r.createElement(o.wzw,{className:"reset-password__show-password-icon reset-password__re-password",onClick:this.toggleSecondPassword.bind(this)}):r.createElement(o.whA,{className:"reset-password__show-password-icon reset-password__re-password",onClick:this.toggleSecondPassword.bind(this)}))),this.state.arePasswordsNotTheSame&&r.createElement("div",{className:"reset-password__grid"},r.createElement("div",null),r.createElement("div",{className:"reset-password__error-message"},"Password fields do not match.")),this.state.requestError&&r.createElement("div",{className:"reset-password__error-message"},this.state.requestError),r.createElement("div",{className:"reset-password__grid"},r.createElement("div",null),r.createElement("div",{className:"reset-password__flex reset-password__justify-right reset-password__max-width"},r.createElement("button",{className:"reset-password__primary-button",disabled:!this.state.password2||!this.state.passwordIncludeMoreThan8CharactersClass||!this.state.passwordIncludeOneOrMoreLettersClass||!this.state.passwordIncludeNumberOrSymbolClass||this.state.password2&&this.state.arePasswordsNotTheSame||this.state.disableBtn,onClick:this.sendRequestForPasswordChange.bind(this)},this.props.configuration.buttonLabel)))),r.createElement(n.c,{showModal:this.state.showSuccessModal,closeModal:function(){return m.setState({showSuccessModal:!1})}},r.createElement("div",{className:"reset-password__modal-wrapper modal-ui__wrapper"},r.createElement("h2",{className:"reset-password__modal-headline"},(null===(a=null===(t=this.props.configuration)||void 0===t?void 0:t.modalConfiguration)||void 0===a?void 0:a.headline)?this.props.configuration.modalConfiguration.headline:"Password updated!"),r.createElement("p",{className:"reset-password__modal-message"},(null===(l=null===(i=this.props.configuration)||void 0===i?void 0:i.modalConfiguration)||void 0===l?void 0:l.message)?this.props.configuration.modalConfiguration.message:"You have successfully updated your password."),r.createElement("a",{href:(null===(c=null===(d=this.props.configuration)||void 0===d?void 0:d.modalConfiguration)||void 0===c?void 0:c.redirectionPath)?this.props.configuration.modalConfiguration.redirectionPath:"/"},r.createElement("button",{type:"button",className:"reset-password__primary-button"},(null===(p=null===(u=this.props.configuration)||void 0===u?void 0:u.modalConfiguration)||void 0===p?void 0:p.buttonLabel)?this.props.configuration.modalConfiguration.buttonLabel:"Return to home")))
1))},s}(r.Component);function c(){var e=document.getElementById("reset-password-component"),s=e.getAttribute("data-configuration"),t=void 0;try{t=JSON.parse(s)}catch(e){}(0,l.Q)(e.parentElement,r.createElement(r.StrictMode,null,r.createElement(d,{configuration:t})))}const u=d},"BDG+":(e,s,t)=>{t.d(s,{c:()=>i});var a=t("Istr"),r=t("wNNC"),o=t("q1tI"),n=t("X13+");const i=function(e){function s(s){var t=e.call(this,s)||this;return t.state={hideCloseIcon:"Y"==t.props.hideCloseIcon},t}return(0,a.ct)(s,e),s.prototype.render=function(){var e,s,t,a;return o.createElement(r.c,{open:this.props.showModal,className:"modal-ui ".concat((null===(e=this.props)||void 0===e?void 0:e.removeBackdropBackground)?"modal-ui__remove-background":""),classes:{paper:"modal-ui__container ".concat((null===(s=this.props)||void 0===s?void 0:s.classList)?this.props.classList.join(" "):""),root:"".concat(null!==(a=null===(t=this.props)||void 0===t?void 0:t.rootClass)&&void 0!==a?a:"")}},!this.state.hideCloseIcon&&o.createElement("div",{className:"modal-ui__close-icon-wrapper"},o.createElement(n.KyY,{className:"modal-ui__close-icon",onClick:this.props.closeModal})),this.props.children&&this.props.children)},s}(o.Component)}}]);
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.