PageSourceSearch

https://sorenewals.firebaseapp.com/static/js/main.aefb58b6.chunk.js

js sorenewals.firebaseapp.com collected 2026-10-03 14:07:40 UTC 76,167 bytes, 2 lines download raw bytes

1(this.webpackJsonphcdlr=this.webpackJsonphcdlr||[]).push([[0],{146:function(e,t,a){},149:function(e,t,a){"use strict";a.r(t);var n=a(0),l=a.n(n),c=a(60),r=a.n(c),i=(a(99),a(3)),o=a(4),s=a(6),h=a(5),u=a(7),m=(a(100),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,l=new Array(n),c=0;c<n;c++)l[c]=arguments[c];return(a=Object(s.a)(this,(e=Object(h.a)(t)).call.apply(e,[this].concat(l)))).state={imgUrl:"/logos.png"},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"container no-padding"},l.a.createElement("div",{className:"col"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col"},l.a.createElement("a",{href:"/"}," ",l.a.createElement("img",{class:"ontario",src:this.state.imgUrl,alt:"logo",style:{width:"11rem",marginTop:"0.6rem"}}))),l.a.createElement("div",{className:"col"},l.a.createElement("div",{className:"frenchie"},"FR"))))),l.a.createElement("br",null))}}]),t}(n.Component)),d=a(2),p=a(155),E=a(151),b=a(89),f=a(156),v=a(14),g=(a(20),a(10)),k=a(24),y=(a(21),a(83)),w=a(150);function C(){var e=Object(y.a)(["\n  color: #0066cc;\n  text-decoration: underline;\n  cursor: pointer;\n  font-size: 1.125rem;\n  font-weight: 600;\n  margin-bottom: 1rem;\n"]);return C=function(){return e},e}var O=a(84).a.span(C()),j=function(e){function t(){return Object(i.a)(this,t),Object(s.a)(this,Object(h.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return l.a.createElement(w.a,{style:{paddingBottom:"1rem"}},l.a.createElement(E.a,{style:{marginTop:"1rem"},onClick:this.props.onClick},l.a.createElement("svg",{width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{marginTop:"0.55rem",marginRight:"0.4rem"}},l.a.createElement("path",{d:"M6 1L1.2635 4.9661C1.08786 5.11395 1.00003 5.30692 1 5.49991C0.999972 5.69295 1.0878 5.886 1.2635 6.0339L6 10",stroke:"#0066CC",strokeWidth:"2"})),l.a.createElement(O,null,"Back")))}}]),t}(n.Component),S=(a(59),function(e){function t(){return Object(i.a)(this,t),Object(s.a)(this,Object(h.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return l.a.createElement(w.a,{className:"error-container"},l.a.createElement(E.a,null,l.a.createElement("img",{className:"error-symbol",src:"/error-exclaim-big.svg",alt:"error symbol"}),l.a.createElement("div",{className:"error-header"},"There is a problem")),l.a.createElement(E.a,null,l.a.createElement(b.a,null,l.a.createElement("p",{className:"check-entries"},"Please check your entries in these fields:"))),l.a.createElement(E.a,null,l.a.createElement("ul",null,this.props.bul1?l.a.createElement("a",{href:this.props.id1},l.a.createElement("li",{className:"error-list"},this.props.bul1)):"",this.props.bul2?l.a.createElement("a",{href:this.props.id2},l.a.createElement("li",{className:"error-list"},this.props.bul2)):"")))}}]),t}(n.Component)),B=function(e){function t(){return Object(i.a)(this,t),Object(s.a)(this,Object(h.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(l.a.Fragment,null,l.a.createElement(E.a,null,l.a.createElement("img",{src:"/error-exclaim-small.svg",alt:"error-symbol",className:"error-symbol-sm",style:{marginLeft:"0.2rem"}}),l.a.createElement("p",{className:"error-msg"},this.props.msg))))}}]),t}(n.Component),N=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={dlcheck:!1,healthcheck:!1,photocheck:!1},a.handleDlChecked=function(){var e=!a.state.dlcheck;a.setState({dlcheck:e}),a.state.dlcheck&&a.state.healthcheck&&a.state.photocheck||a.setState({fail:!1}),!a.state.dlcheck&&a.state.photocheck?a.setState({opcdisabled:!0}):a.setState({opcdlfail:!1})},a.handleOpcChecked=function(){var e=!a.state.photocheck;a.setState({photocheck:e}),a.state.dlcheck&&a.state.healthcheck&&a.state.photocheck||a.setState({fail:!1}),a.state.dlcheck&&!a.state.photocheck?a.setState({opcdisabled:!0}):a.setState({opcdlfail:!1})},a.handleHcChecked=function(){var e=!a.state.healthcheck;a.setState({healthcheck:e}),a.state.dlcheck&&a.state.healthcheck&&a.state.photocheck||a.setState({fail:!1})},a.onSubmit=function(){a.props.sendInfo(a.state.dlcheck,a.state.healthcheck,a.state.photocheck),a.state.dlcheck||a.state.healtcheck||a.state.photocheck?a.setState({fail:!1}):a.setState({fail:!0}),a.state.dlcheck&&a.state.photocheck?a.setState({opcdisabled:!0,opcdlfail:!0}):a.setState({opcdlfail:!1})},a.goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){var e=this;return l.a.createElement("div",{class:"landing-body"},l.a.createElement(l.a.Fragment,null,l.a.createElement(j,{onClick:this.goBack}),this.state.fail||this.state.opcdlfail?l.a.createElement(S,{id1:"#choosecard",bul1:"Choose the card(s) you want to renew (select at least one)"}):"",l.a.createElement("div",{className:this.state.fail||this.state.opcdlfail?"error-content":""},l.a.createElement("h2",{id:"choosecard"},"Choose the card(s) you want to renew"),l.a.createElement("p",null,"(select at least one)"),l.a.createElement("p",null,l.a.createElement("b",null,"Note:")," You cannot renew both your driver\u2019s licence and your photo card at the same time."),this.state.fail?l.a.createElement(l.a.Fragment,null,l.a.createElement(B,{msg:"You must choose one or more card(s) on this page and click next to continue."}),l.a.createElement("br",null)):this.state.opcdlfail?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",null,l.a.createElement(B,{msg:""}),l.a.createElement("p",{class:"weird-one-line-err"},"Choose only one of:"),l.a.createElement("ul",null,l.a.createElement("li",{class:"weird-error"},"driver\u2019s licence"),l.a.createElement("li",{class:"weird-error"},"Ontario photo card")))):"",l.a.createElement(p.a,null,l.a.createElement(E.a,null,l.a.createElement(b.a,{xs:1},l.a.createElement(v.a,{class:"checkbox",onClick:function(){return e.handleDlChecked()}})),l.a.createElement(b.a,null,l.a.createElement("p",{class:"checkbox-text"}," Driver's Licence"))),l.a.createElement(E.a,null,l.a.createElement(b.a,{xs:1},l.a.createElement(v.a,{class:"checkbox",onClick:function(){return e.handleOpcChecked()}})),l.a.createElement(b.a,null,l.a.createElement("p",{class:"checkbox-text"}," Ontario Photo Card"))),l.a.createElement(E.a,null,l.a.createElement(b.a,{xs:1},l.a.createElement(v.a,{class:"checkbox",onClick:function(){return e.handleHcChecked()}})),l.a.createElement(b.a,null,l.a.createElement("p",{class:"checkbox-text"},"Health Card"))))),!this.state.dlcheck&&!this.state.healthcheck&&!this.state.photocheck||this.state.dlcheck&&this.state.photocheck?l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next"):l.a.createElement(g.b,{to:"/before-you-proceed"},l.a.createElement(f.a,{onClick:function(){return e.onSubmit(e.state.dlcheck,e.state.healthcheck,e.state.photocheck)}},"Next"))))}}]),t}(n.Component),x=Object(k.g)(N),F=a(90),R=(a(76),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={driverdisabled:!0,trilldisabled:!0,dl:a.props.dl,trill:a.props.trill},a.onClick=function(){a.state.driverdisabled||a.state.trilldisabled||(a.sendDL(),a.state.ineligible?a.props.history.push("/ineligible4"):a.props.history.push("/postal"))},a.sendDL=function(){a.props.sendDL(a.state.dl,a.state.trill)},a.handleTChange=function(e){var t=e.target.value;a.setState({trill:t})},a.handleDLChange=function(e){var t=e.target.value;a.setState({dl:t})},a.goBack=a.goBack.bind(Object(d.a)(a)),a.checkdriver=a.checkdriver.bind(Object(d.a)(a)),a.checktrill=a.checktrill.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"onSubmit",value:function(){this.checktrill(),this.checkdriver()}},{key:"checktrill",value:function(){var e=this;/^(\d{7})$/.exec(this.state.trill)?this.setState({trilldisabled:!1,trillfail:!1}):this.setState({trilldisabled:!0,trillfail:!0}),setTimeout((function(){window.scrollTo({top:0,left:0}),e.onClick()}),.001)}},{key:"checkdriver",value:function(){var e=/^[A-Za-z][ -]?(\d{4})[ -]?(\d{5})[ -]?(\d{5})$/.exec(this.state.dl),t=parseInt(this.state.dl.substring(13,15)),a=parseInt(this.state.dl.substring(15,17));e?"D6101 50707 51111"===this.state.dl?(this.setState({ineligible:!0}),this.setState({driverdisabled:!1,dlfail:!1})):(t<1||t>12)&&(t<51||t>62)||a<1||a>31?this.setState({driverdisabled:!0,dlfail:!0}):this.setState({driverdisabled:!1,dlfail:!1}):this.setState({driverdisabled:!0,dlfail:!0})}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){var e=this;return l.a.createElement("div",{class:"landing-body"},l.a.createElement(l.a.Fragment,null,l.a.createElement(j,{onClick:this.goBack}),this.state.dlfail&&this.state.trillfail?l.a.createElement(S,{id1:"#dlnumber",id2:"#dlsequence",bul1:"Driver's licence number",bul2:"7 number sequence on card"}):"",this.state.dlfail&&!this.state.trillfail?l.a.createElement(S,{id1:"#dlnumber",bul1:"Driver's licence number"}):this.state.trillfail&&!this.state.dlfail?l.a.createElement(S,{id1:"#dlsequence",bul1:"7 number sequence on card"}):"",l.a.createElement("h3",null,"Driver's Licence Information"),l.a.createElement("p",null,"Enter your licence information"),l.a.createElement("div",{class:"section"},l.a.createElement("div",{className:this.state.dlfail?"error-content":""},l.a.createElement("p",{id:"dlnumber"},l.a.createElement("strong",null,"Driver's licence number")," "),this.state.dlfail?l.a.createElement(B,{msg:"Enter your driver's licence number."}):"",l.a.createElement("p",null,"You can find your driver's licence number here:"),l.a.createElement("img",{class:"card-photo",src:"/DLFront.png"}),l.a.createElement("p",null,"For example D6101 50707 51120"),l.a.createElement(p.a,null,l.a.createElement(F.a,{initialstate:this.state.dl},l.a.createElement("input",{value:this.state.dl,onChange:this.handleDLChange}
1))))),l.a.createElement("hr",{style:{marginBottom:"3.5rem"}}),l.a.createElement("div",{class:"section"},l.a.createElement("div",{className:this.state.trillfail?"error-content":""},l.a.createElement("p",{id:"dlsequence"},l.a.createElement("strong",null,"7-digit on card")),l.a.createElement("p",null,"Your 7-digit number is found in between the asterisks (*) on the bottom of the back of your card."),this.state.trillfail?l.a.createElement(B,{msg:"Enter your driver's licence 7 number sequence"}):"",l.a.createElement("p",null,"You can find your 7-digit number here:"),l.a.createElement("img",{class:"card-photo",src:"/DLBack.png"}),l.a.createElement("p",null,"For example 0237452"),l.a.createElement(F.a,{initialstate:this.state.trill},l.a.createElement("input",{value:this.state.trill,onChange:this.handleTChange})))),l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next")))}}]),t}(n.Component)),D=Object(k.g)(R),Y=function(e){function t(){return Object(i.a)(this,t),Object(s.a)(this,Object(h.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("div",{class:"footer"},l.a.createElement("a",{href:"https://www.ontario.ca/feedback/contact-us?id=7476&nid=56934"},"Contact Us"),l.a.createElement("br",null),l.a.createElement("a",{href:"https://www.ontario.ca/page/about-ontario"},"About Ontario"),l.a.createElement("br",null),l.a.createElement("a",{href:"https://www.ontario.ca/page/accessibility"},"Accessibility"),l.a.createElement("br",null),l.a.createElement("a",{href:"https://www.ontario.ca/page/privacy-statement"},"Privacy"),l.a.createElement("br",null),l.a.createElement("a",{href:"https://www.ontario.ca/page/terms-use"},"Terms of use"),l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("a",{href:"https://www.ontario.ca/page/copyright-information-c-queens-printer-ontario"},"(c) Queen's Printer for Ontario")))}}]),t}(n.Component),P=(a(146),function(e){function t(){return Object(i.a)(this,t),Object(s.a)(this,Object(h.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{class:"ontario-form-group"},l.a.createElement("fieldset",{class:"ontario-fieldset","aria-describedby":"renewal-hint"},l.a.createElement("legend",{class:"ontario-fieldset__legend ontario-fieldset__legend--large"}),l.a.createElement("div",{class:"ontario-radios"},l.a.createElement("div",{class:"ontario-radios__item"},l.a.createElement("input",{required:!0,class:"ontario-input ontario-radios__input",id:"1-year-renewal",name:"licence-renewal",type:"radio",onClick:this.props.onClick}),l.a.createElement("label",{class:"ontario-label ontario-radios__label"},l.a.createElement("strong",null,this.props.value))))))}}]),t}(n.Component)),T=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={},a.handleNo=function(){a.setState({no:!0,yes:!1,fail:!1})},a.handleYes=function(){a.setState({yes:!0,no:!1,fail:!1})},a.goBack=a.goBack.bind(Object(d.a)(a)),a.handleNo=a.handleNo.bind(Object(d.a)(a)),a.handleYes=a.handleYes.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"onSubmit",value:function(){this.state.yes||this.state.no?this.setState({fail:!1}):this.setState({fail:!0})}},{key:"render",value:function(){var e=this;return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),this.state.fail?l.a.createElement(S,{id1:"#address",bul1:"Has your address changed in the last 90 days?"}):"",l.a.createElement("div",{className:this.state.fail?"error-content":""},l.a.createElement(E.a,null,this.props.showdl?l.a.createElement("h3",{id:"address",style:{marginLeft:"1rem"}},"Do you currently live at the address on your driver's licence?"):this.props.showopc?l.a.createElement("h3",{id:"address",style:{marginLeft:"1rem"}},"Do you currently live at the address on your Ontario photo card?"):l.a.createElement("h3",{id:"address",style:{marginLeft:"1rem"}},"Do you currently live at the address on your driver's licence or Ontario photo card?"),l.a.createElement("br",null)),this.state.fail?l.a.createElement(B,{msg:"You must choose one answer on this page and click next to continue."}):"",l.a.createElement("div",{class:"radio-margins"},l.a.createElement(E.a,null,l.a.createElement(b.a,null,l.a.createElement(P,{value:"Yes",onClick:function(){return e.handleYes()}}),l.a.createElement(P,{value:"No",onClick:function(){return e.handleNo()}})))),this.state.no||this.state.yes?this.state.yes?this.props.showhc?l.a.createElement(g.b,{to:"/five-mos",onClick:function(){return e.onSubmit()}},l.a.createElement(f.a,null,"Next")):this.props.showdl?l.a.createElement(g.b,{to:"/med-con",onClick:function(){return e.onSubmit()}},l.a.createElement(f.a,null,"Next")):l.a.createElement(g.b,{to:"/pc-input",onClick:function(){return e.onSubmit()}},l.a.createElement(f.a,null,"Next")):l.a.createElement(g.b,{to:"/ineligible",onClick:function(){return e.onSubmit()}},l.a.createElement(f.a,null,"Next")):l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next"))))}}]),t}(n.Component),L=Object(k.g)(T),M=function(e){function t(){return Object(i.a)(this,t),Object(s.a)(this,Object(h.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement(L,{showdl:this.props.showdl,showhc:this.props.showhc,showopc:this.props.showopc}))}}]),t}(n.Component),q=Object(k.g)(M),I=function(e){function t(){return Object(i.a)(this,t),Object(s.a)(this,Object(h.a)(t).apply(this,arguments))}
1return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement("h1",{class:"landing-header"},"Renew your Ontario cards"),l.a.createElement("img",{src:"/cards.png",alt:"",class:"cards",height:"80%",width:"40%"}),l.a.createElement("br",null),l.a.createElement("p",{class:"lead-text"},"What you can renew online:"),l.a.createElement("ul",null,l.a.createElement("li",{class:"lead-text"},"driver's licence ",l.a.createElement("strong",null,"($90)")),l.a.createElement("li",{class:"lead-text"},"photo card ",l.a.createElement("strong",null,"($30)")),l.a.createElement("li",{class:"lead-text"},"health card ",l.a.createElement("strong",null,"(free)"))),l.a.createElement("hr",null),l.a.createElement(g.b,{to:"/byb"},l.a.createElement(f.a,null,"Start"))))}}]),t}(n.Component),H=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement("div",{class:"section"},l.a.createElement(j,{onClick:this.goBack})," ",l.a.createElement("h2",null,"Before you Renew"),l.a.createElement("p",null,"You will need:"),l.a.createElement("ul",null,l.a.createElement("li",null,"your driver\u2019s licence, Ontario photo card, and/or health card"),l.a.createElement("li",null,"10-15 minutes to complete the application all at once"),l.a.createElement("li",null,"a valid email address"),l.a.createElement("li",null,"a phone number if you are renewing your health card"))),l.a.createElement("div",{class:"section"}," ",l.a.createElement("h2",null,"How you can pay"),l.a.createElement("ul",null,l.a.createElement("li",null,"Visa or Mastercard"),l.a.createElement("li",null,"Interac\xae Online account"))),l.a.createElement(g.b,{to:"/terms-and-conditions"},l.a.createElement(f.a,null,"Next"))))}}]),t}(n.Component),A=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={hc:a.props.hc,nchar:a.props.hnchar,healthdisabled:!0,chardisabled:!0},a.handleHChange=function(e){var t=e.target.value;a.setState({hc:t})},a.handleNChange=function(e){var t=e.target.value;a.setState({nchar:t})},a.onClick=function(){a.state.chardisabled||a.state.chardisabled||(a.props.showdl?a.props.history.push("/step1"):a.props.showopc?a.props.history.push("/pc-input"):a.props.history.push("/healthcard"),a.sendHC())},a.sendHC=function(){a.props.sendHC(a.state.hc,a.state.nchar)},a.goBack=a.goBack.bind(Object(d.a)(a)),a.onSubmit=a.onSubmit.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"checkhealth",value:function(){/^\d{4}[ -]?\d{3}[ -]?\d{3}[ -]?[A-Za-z][A-Za-z]$/.exec(this.state.hc)?this.setState({healthdisabled:!1,hcfail:!1}):this.setState({healthdisabled:!0,hcfail:!0})}},{key:"checkninechar",value:function(){var e=this;/^[A-Za-z][A-Za-z]\d{7}$/.exec(this.state.nchar)?this.setState({chardisabled:!1,charfail:!1}):this.setState({chardisabled:!0,charfail:!0}),setTimeout((function(){window.scrollTo({top:0,left:0}),e.onClick()}),.001)}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"onSubmit",value:function(){this.checkninechar(),this.checkhealth()}},{key:"render",value:function(){var e=this;return l.a.createElement("div",{class:"landing-body"},l.a.createElement(l.a.Fragment,null,l.a.createElement(j,{onClick:this.goBack}),this.state.hcfail&&this.state.charfail?l.a.createElement(S,{id1:"#hcnumber",id2:"#hcsequence",bul1:"Health card number and version code",bul2:"9 number sequence on card"}):"",this.state.hcfail&&!this.state.charfail?l.a.createElement(S,{id1:"#hcnumber",bul1:"Health card number and version code"}):this.state.charfail&&!this.state.hcfail?l.a.createElement(S,{id1:"#hcsequence",bul1:"9 number sequence on card"}):"",l.a.createElement("h3",null,"Health Card Information"),l.a.createElement("p",null,"Enter your card 
1information"),l.a.createElement("div",{class:"section"},l.a.createElement("div",{className:this.state.hcfail?"error-content":""},l.a.createElement("p",{id:"hcnumber"},l.a.createElement("strong",null,"Health Card number and version code")),this.state.hcfail?l.a.createElement(B,{msg:"Enter your health card number and version code."}):"",l.a.createElement("p",null,"You can find your health card number and version code here:"),l.a.createElement("img",{class:"card-photo",src:"/HCFront.png"}),l.a.createElement("p",null,"For example 1234 123 421 AA"),l.a.createElement(F.a,{initialstate:this.state.hc},l.a.createElement("input",{value:this.state.hc,onChange:this.handleHChange})))),l.a.createElement("hr",{style:{marginBottom:"3.5rem"}}),l.a.createElement("div",{class:"section"},l.a.createElement("div",{className:this.state.charfail?"error-content":""},l.a.createElement("p",{id:"hcsequence"}," ",l.a.createElement("strong",null,"9 character sequence on card")),l.a.createElement("p",null,"Your 9 character sequence is found in the box on the back of your card."),this.state.charfail?l.a.createElement(B,{msg:"Enter your 9 character sequence on your health card."}):"",l.a.createElement("p",null,"You can find your 9 character sequence here:"),l.a.createElement("img",{class:"card-photo",src:"/HCBack.png"}),l.a.createElement("p",null,"For example AA1234567"),l.a.createElement(F.a,{initialstate:this.state.nchar},l.a.createElement("input",{value:this.state.nchar,onChange:this.handleNChange})))),l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next")))}}]),t}(n.Component),_=Object(k.g)(A),V=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={},a.goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"onSubmit",value:function(){this.state.dlchecked||this.state.opcchecked?this.setState({fail:!1}):this.setState({fail:!0})}},{key:"handleDl",value:function(){this.setState({dlchecked:!0}),this.setState({opcchecked:!1}),this.setState({fail:!1})}},{key:"handleOpc",value:function(){this.setState({dlchecked:!1}),this.setState({opcchecked:!0}),this.setState({fail:!1})}},{key:"render",value:function(){var e=this;return l.a.createElement("div",{className:"landing-body"},l.a.createElement(l.a.Fragment,null,l.a.createElement(j,{onClick:this.goBack}),this.state.fail?l.a.createElement(S,{id1:"#bypopc",bul1:"Before you proceed"}):"",l.a.createElement("div",{className:this.state.fail?"error-content":""},l.a.createElement(l.a.Fragment,null,l.a.createElement("div",null,l.a.createElement("h2",{id:"bypopc",className:"sub-header"},"Verify your identity")),l.a.createElement("div",null,l.a.createElement("p",null,"You need to have a valid driver's licence or photo card to renew your health card")),l.a.createElement("div",null,l.a.createElement("p",null,"Select one:")),this.state.fail?l.a.createElement(B,{msg:"You must choose one."}):"",l.a.createElement("div",null,l.a.createElement(P,{value:"Driver's licence",onClick:function(){return e.handleDl()}})),l.a.createElement("div",null,l.a.createElement(P,{value:"Ontario photo card",onClick:function(){return e.handleOpc()}}))),this.state.dlchecked||this.state.opcchecked?this.state.dlchecked?l.a.createElement(g.b,{to:"/step1"},l.a.createElement(f.a,null,"Next")):this.state.opcchecked?l.a.createElement(g.b,{to:"/pc-input"},l.a.createElement(f.a,null,"Next")):"":l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next"))))}}]),t}(n.Component),$=Object(k.g)(V),z=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={postal:"",postaldisabled:!0},a.onClick=function(){a.state.postaldisabled||a.props.history.push("/contact")},a.goBack=a.goBack.bind(Object(d.a)(a)),a.checkpostal=a.checkpostal.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"checkpostal",value:function(){var e=this;/^[A-Za-z][ -]?\d[ -]?[A-Za-z][ -]?\d[ -]?[A-Za-z][ -]?\d$/.exec(this.state.postal)?this.setState({postaldisabled:!1,fail:!1}):this.setState({postaldisabled:!0,fail:!0}),setTimeout((function(){window.scrollTo({top:0,left:0}),e.onClick()}),.001)}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"onSubmit",value:function(){this.checkpostal()}},{key:"render",value:function(){var e=this;return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),this.state.fail?l.a.createElement(S,{id1:"#postal",bul1:"Postal code"}):"",l.a.createElement("div",{className:this.state.fail?"error-content":""},l.a.createElement(E.a,null,l.a.createElement(b.a,null,l.a.createElement("h3",{class:"m1",id:"postal"},"Postal code"))),l.a.createElement(E.a,null,l.a.createElement(b.a,null,l.a.createElement("p",{class:"m1"},"Enter your postal code"))),this.state.fail?l.a.createElement(B,{msg:"Enter your postal code on this page and click next to continue."}):"",l.a.createElement("p",null,"For example N3T 2L7"),l.a.createElement("input",{id:"postal",class:"form-group",ref:function(t){return e.postal=t},onChange:function(){var t=e.postal.value;e.setState({postal:t})}}),l.a.createElement("br",null),l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next"))))}}]),t}(n.Component),Z=Object(k.g)(z),W=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),l.a.createElement(w.a,null,l.a.createElement(E.a,null,l.a.createElement("h3",null,"Terms and Conditions")),l.a.createElement(E.a,null,l.a.createElement("p",null,l.a.createElement("strong",null,"I confirm that:"))),l.a.createElement(E.a,null,l.a.createElement("ul",null,l.a.createElement("li",null,"I am renewing my own driver's licence or Ontario photo and/or health card today"),l.a.createElement("li",null,"I acknowledge it is against the law to provide incorrect information knowingly"),l.a.createElement("li",null,"I understand my information is being collected by ServiceOntario and the ministries of transportation and health for the reasons outlined in the"," ",l.a.createElement("a",{href:"https://ontario.ca",target:"_blank"},"Notice of Collection")," ","as per the"," ",l.a.createElement("a",{href:"https://ontario.ca",target:"_blank"},"Ontario privacy policy")),l.a.createElement("li",null,"ServiceOntario may contact me to confirm my information, including residency in Ontario"))),l.a.createElement(E.a,null,l.a.createElement("br",null),l.a.createElement("p",null,l.a.createElement("strong",null,"Click \u201cI agree\u201d to confirm that you have read and understood the information on this page:")))),l.a.createElement(g.b,{to:"/home"},l.a.createElement(f.a,null,"I agree"))))}}]),t}(n.Component),G=Object(k.g)(W),U=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={acknowledge:!1,fail:!1},a.onSubmit=function(){!1===a.state.acknowledge&&a.setState({fail:!0})},a.goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"handleChecked",value:function(){var e=!this.state.acknowledge;this.setState({acknowledge:e}),this.setState({fail:!1})}},{key:"render",value:function(){var e=this;return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),this.state.fail?l.a.createElement(S,{id1:"#byp",bul1:"Before you proceed"}):"",l.a.createElement("div",{className:this.state.fail?"error-content":""},l.a.createElement("h3",{id:"byp"},"Before you proceed"),this.state.fail?l.a.createElement(B,{msg:"Please confirm your understanding before proceeding"}):"",!this.props.showdl&&this.props.showhc?l.a.createElement(p.a,null,l.a.createElement(E.a,null,l.a.createElement(b.a,{xs:1},l.a.createElement(v.a,{class:"checkbox",onClick:function(){return e.handleChecked()}})),l.a.createElement(b.a,null,l.a.createElement("p",{style:{marginLeft:"1rem"}},"I acknowledge and understand that I will need a valid driver's license or Ontario photo card to renew my health card.")))):l.a.createElement(p.a,null,l.a.createElement(E.a,null,l.a.createElement("p",{style:{marginLeft:"1rem"}},"This application will only renew your full licence(s). If you have a G, M, or GM licence, these will be fully renewed in this application."),l.a.createElement("p",{style:{marginLeft:"1rem"}},"If you have a combination licence, the renewal will only apply to:",l.a.createElement("ul",{class:"bypbullet"},l.a.createElement("li",null,"the G in a GM1 or GM2"),l.a.createElement("li",null,"the M in a G1M or G2M")),l.a.createElement("p",{class:"learn-more"},l.a.createElement("a",{href:"https://www.ontario.ca/document/official-mto-drivers-handbook/getting-your-drivers-licence#section-1",target:"_blank"},"Learn more about licence classes.")))),l.a.createElement(E.a,null,l.a.createElement(b.a,{xs:1},l.a.createElement(v.a,{class:"checkbox",onClick:function(){return e.handleChecked()}})),l.a.createElement(b.a,null,l.a.createElement("p",{class:"checkbox-text"},"I acknowledge and understand that only the full class portion of my driver's licence can be renewed online.")))),this.state.acknowledge?l.a.createElement(g.b,{onClick:function(){return e.onSubmit()},to:"/elig"},l.a.createElement(f.a,null,"Next")):l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next"))))}}]),t}(n.Component),J=Object(k.g)(U),Q=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={},a.handleNo=function(){a.setState({no:!0,yes:!1,fail:!1})},a.handleYes=function(){a.setState({yes:!0,no:!1,fail:!1})},a.goBack=a.goBack.bind(Object(d.a)(a)),a.handleNo=a.handleNo.bind(Object(d.a)(a)),a.handleYes=a.handleYes.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"onSubmit",value:function(){this.state.yes||this.state.no?this.setState({fail:!1}):this.setState({fail:!0})}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){var e=this;return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),this.state.fail?l.a.createElement(S,{id1:"#vision",bul1:"Do you require corrective lenses to drive?"}):"",l.a.createElement("div",{className:this.state.fail?"error-content":""},l.a.createElement(E.a,null,l.a.createElement("h3",{id:"vision",style:{marginLeft:"1rem"}},"Do you require corrective lenses to drive?")),this.state.fail?l.a.createElement(B,{msg:"You must choose one answer on this page and click next to continue."}):"",l.a.createElement("div",{class:"radio-margins"},l.a.createElement(E.a,null,l.a.createElement(b.a,null,l.a.createElement(P,{value:"Yes",onClick:function(){return e.handleYes()}}),l.a.createElement(P,{value:"No",onClick:function(){return e.handleNo()}})))),this.state.no||this.state.yes?this.props.showhc?l.a.createElement(g.b,{to:"/step2",onClick:function(){return e.onSubmit()}},l.a.createElement(f.a,null,"Next")):l.a.createElement(g.b,{to:"/step1",onClick:function(){return e.onSubmit()}},l.a.createElement(f.a,null,"Next")):l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next"))))}}]),t}(n.Component),K=Object(k.g)(Q),X=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={},a.handleNo=function(){a.setState({no:!0,yes:!1,fail:!1})},a.handleYes=function(){a.setState({yes:!0,no:!1,fail:!1})},a.goBack=a.goBack.bind(Object(d.a)(a)),a.handleNo=a.handleNo.bind(Object(d.a)(a)),a.handleYes=a.handleYes.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"onSubmit",value:function(){this.state.yes||this.state.no?this.setState({fail:!1}):this.setState({fail:!0})}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){var e=this;return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),this.state.fail?l.a.createElement(S,{bul1:"Do you require corrective lenses to drive?"}):"",l.a.createElement(w.a,{className:this.state.fail?"error-content":""},l.a.createElement(E.a,null,l.a.createElement("h3",null,"Do you require corrective lenses to drive?")),this.state.fail?l.a.createElement(B,{msg:"You must choose one answer on this page and click next to continue."}):"",l.a.createElement("div",{class:"radio-margins"},l.a.createElement(E.a,null,l.a.createElement(b.a,null,l.a.createElement(P,{value:"Yes",onClick:function(){return e.handleYes()}}),l.a.createElement(P,{value:"No",onClick:function(){return e.handleNo()}})))),this.state.no||this.state.yes?(this.props.showhc,l.a.createElement(g.b,{to:"/step1",onClick:function(){return e.onSubmit()}}
1,l.a.createElement(f.a,null,"Next"))):l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next"))))}}]),t}(n.Component),ee=Object(k.g)(X),te=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={},a.handleNo=function(){a.setState({no:!0,yes:!1,fail:!1})},a.handleYes=function(){a.setState({yes:!0,no:!1,fail:!1})},a.goBack=a.goBack.bind(Object(d.a)(a)),a.handleNo=a.handleNo.bind(Object(d.a)(a)),a.handleYes=a.handleYes.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"onSubmit",value:function(){this.state.yes||this.state.no?this.setState({fail:!1}):this.setState({fail:!0})}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){var e=this;return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),this.state.fail?l.a.createElement(S,{id1:"#medcon",bul1:"Since you last renewed your driver's licence, have you had any medical conditions that may affect your ability to drive, or has a doctor told you not to drive?"}):"",l.a.createElement("div",{className:this.state.fail?"error-content":""},l.a.createElement(E.a,null,l.a.createElement("h3",{id:"medcon",style:{marginLeft:"1rem"}},"Since you last renewed your driver's licence, have you had any medical conditions that may affect your ability to drive, or has a doctor told you not to drive?")),this.state.fail?l.a.createElement(B,{msg:"You must choose one answer on this page and click next to continue."}):"",l.a.createElement("div",{class:"radio-margins"},l.a.createElement(E.a,null,l.a.createElement(b.a,null,l.a.createElement(P,{value:"Yes",onClick:function(){return e.handleYes()}}),l.a.createElement(P,{value:"No",onClick:function(){return e.handleNo()}})))),this.state.yes||this.state.no?this.state.no?l.a.createElement(g.b,{to:"/vision"},l.a.createElement(f.a,null,"Next")):l.a.createElement(g.b,{to:"/ineligible3"},l.a.createElement(f.a,null,"Next")):l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next"))))}}]),t}(n.Component),ae=Object(k.g)(te),ne=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={},a.handleNo=function(){a.setState({no:!0,yes:!1,fail:!1})},a.handleYes=function(){a.setState({yes:!0,no:!1,fail:!1})},a.goBack=a.goBack.bind(Object(d.a)(a)),a.handleNo=a.handleNo.bind(Object(d.a)(a)),a.handleYes=a.handleYes.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"onSubmit",value:function(){this.state.yes||this.state.no?this.setState({fail:!1}):this.setState({fail:!0})}},{key:"render",value:function(){var e=this;return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),this.state.fail?l.a.createElement(S,{bul1:"Since you last renewed your driver's licence, have you had any medical conditions that may affect your ability to drive, or has a doctor told you not to drive?"}):"",l.a.createElement(w.a,{className:this.state.fail?"error-content":""},l.a.createElement(E.a,null,l.a.createElement("h3",null,"Since you last renewed your driver's licence, have you had any medical conditions that may affect your ability to drive, or has a doctor told you not to drive?")),this.state.fail?l.a.createElement(B,{msg:"You must choose one answer on this page and click next to continue."}):"",l.a.createElement("div",{class:"radio-margins"},l.a.createElement(E.a,null,l.a.createElement(b.a,null,l.a.createElement(P,{value:"Yes",onClick:function(){return e.handleYes()}}),l.a.createElement(P,{value:"No",onClick:function(){return e.handleNo()}})))),this.state.yes||this.state.no?this.state.no?l.a.createElement(g.b,{to:"/vision2"},l.a.createElement(f.a,null,"Next")):l.a.createElement(g.b,{to:"/ineligible"},l.a.createElement(f.a,null,"Next")):l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next"))))}}]),t}(n.Component),le=Object(k.g)(ne),ce=a(92),re=a(43),ie=a(152),oe=a(153),se=a(154),he=(n.Component,function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={email:"",voice:"",voicedisabled:!0,emaildisabled:!0},a.handleSubmit=function(){a.props.hc?a.state.emaildisabled||a.state.voicedisabled||(a.props.sendContact(a.state.email,a.state.voice),a.props.history.push("/notify-so"),console.log("sent")):a.state.emaildisabled||(a.props.sendContact(a.state.email,a.state.voice),a.props.history.push("/notify-so"),console.log("sent"))},a.goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"checkvoice",value:function(){var e=/^[(]?\d{3}[)]?[ -.]?\d{3}[ -.]?\d{4}$/.exec(this.state.voice);this.props.hc?e?this.setState({voicedisabled:!1,voicefail:!1}):this.setState({voicedisabled:!0,voicefail:!0}):this.setState({voicedisabled:!1,voicefail:!1})}},{key:"checkemail",value:function(){var e=this;/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.exec(this.state.email)?this.setState({emaildisabled:!1,emailfail:!1}):this.setState({emaildisabled:!0,emailfail:!0}),setTimeout((function(){window.scrollTo(0,0),e.handleSubmit()}),.001)}},{key:"onSubmit",value:function(){this.checkemail(),this.checkvoice()}},{key:"render",value:function(){var e=this;return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),this.state.voicefail&&this.state.emailfail?l.a.createElement(S,{id1:"#email",id2:"#phonenumber",bul1:"Email",bul2:"Phone number"}):this.state.emailfail&&!this.state.voicefail?l.a.createElement(S,{id1:"#email",bul1:"Email"}):this.state.voicefail&&!this.state.emailfail?l.a.createElement(S,{id1:"#phonenumber",bul1:"Phone number"}):"",l.a.createElement("div",{className:this.state.emailfail?"error-content":""},l.a.createElement("h3",null,"Contact information"),l.a.createElement("p",null,"Enter your contact information below"),l.a.createElement("div",{class:"section"},l.a.createElement("div",{id:"email",style:{marginBottom:"1rem"}},l.a.createElement("strong",{style:{paddingRight:50}},"Email")),this.state.emailfail?l.a.createElement("div",null,l.a.createElement(B,{msg:""}),l.a.createElement("p",{class:"weird-one-line-err"},"Please provide a valid email")):"",l.a.createElement("p",null,"We will email you an electronic receipt and temporary document(s) for this transaction."),l.a.createElement("p",null,"For example [email protected]"),l.a.createElement("input",{class:"form-group",ref:function(t){return e.email=t},onChange:function(){var t=e.email;t=e.email.value,e.setState({email:t})}}),l.a.createElement("br",null))),l.a.createElement("hr",{style:{marginTop:"-1rem"}}),l.a.createElement("div",{className:this.state.voicefail?"error-content":""},l.a.createElement("div",{class:"section"},l.a.createElement("div",{id:"phonenumber",style:{marginBottom:"1rem"}},l.a.createElement("strong",null,"Phone number ",this.props.hc?"":"(optional)")),this.state.voicefail?l.a.createElement(B,{msg:"Please provide a phone number"}):"",l.a.createElement("p",null,"We may call you to confirm that you live in Ontario, or to resolve an issue with your renewal."," ",this.props.hc?l.a.createElement("strong",null,"If contacted by ServiceOntario, you have 30 days to respond to keep your health coverage."):""),l.a.createElement("p",null,"For example 226 808 3813"),l.a.createElement("input",{id:"voicey",ref:function(t){return e.voicey=t},onChange:function(){var t=e.voicey;t=e.voicey.value,e.setState({voice:t})}})),l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next"))))}}]),t}(n.Component)),ue=Object(k.g)(he),me=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={},a.handleNo=function(){a.setState({no:!0,yes:!1,fail:!1})},a.handleYes=function(){a.setState({yes:!0,no:!1,fail:!1})},a.goBack=a.goBack.bind(Object(d.a)(a)),a.handleNo=a.handleNo.bind(Object(d.a)(a)),a.handleYes=a.handleYes.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"onSubmit",value:function(){this.state.yes||this.state.no?this.setState({fail:!1}):this.setState({fail:!0})}},{key:"render",value:function(){var e=this;return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),this.state.fail?l.a.createElement(S,{id1:"#5mos",bul1:"In the past year, have you lived in Ontario for at least 5 months?"}):"",l.a.createElement("div",{className:this.state.fail?"error-content":""},l.a.createElement(E.a,null,l.a.createElement("h3",{id:"5mos",style:{marginLeft:"1rem"}},"In the past year, have you lived in Ontario for at least 5 months?")),l.a.createElement(E.a,null,l.a.createElement("p",{style:{marginLeft:"1rem"}},"The Ministry of Health may contact you for further verification.")),this.state.fail?l.a.createElement(B,{msg:"You must choose one answer on this page and click next to continue.\n"}):"",l.a.createElement("div",{class:"radio-margins"},l.a.createElement(E.a,null,l.a.createElement(b.a,null,l.a.createElement(P,{value:"Yes",onClick:function(){return e.handleYes()}}),l.a.createElement(P,{value:"No",onClick:function(){return e.handleNo()}}))))),this.state.yes||this.state.no?this.state.yes?this.props.showdl?l.a.createElement(g.b,{to:"/med-con"},l.a.createElement(f.a,null,"Next")):l.a.createElement(g.b,{to:"/step2"},l.a.createElement(f.a,null,"Next")):l.a.createElement(g.b,{to:"/ineligible2",onClick:function(){return e.onSubmit()}},l.a.createElement(f.a,null,"Next")):l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next")))}}]),t}(n.Component),de=Object(k.g)(me),pe=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={voicedisabled:!1,fail:!1},a.state={emailcheck:!1,smscheck:!1,voicecheck:!1,email:a.props.email,phone:a.props.phone,voice:a.props.phone},a.handleChange=function(e){var t=e.target.value;a.setState({email:t})},a.handlePChange=function(e){var t=e.target.value;a.setState({phone:t})},a.handleVChange=function(e){var t=e.target.value;a.setState({voice:t})},a.onSubmit=function(){a.state.emailcheck&&a.state.smscheck&&a.state.voicecheck&&a.props.send
1RContact(a.state.email,a.state.phone,a.state.voice),!a.state.emailcheck||a.state.smscheck||a.state.voicecheck||a.props.sendRContact(a.state.email,"",""),a.state.emailcheck||!a.state.smscheck||a.state.voicecheck||a.props.sendRContact("",a.state.phone,""),a.state.emailcheck||a.state.smscheck||!a.state.voicecheck||a.props.sendRContact("","",a.state.voice),a.state.emailcheck&&a.state.smscheck&&!a.state.voicecheck&&a.props.sendRContact(a.state.email,a.state.phone,""),a.state.emailcheck&&!a.state.smscheck&&a.state.voicecheck&&a.props.sendRContact(a.state.email,"",a.state.voice),!a.state.emailcheck&&a.state.smscheck&&a.state.voicecheck&&a.props.sendRContact("",a.state.phone,a.state.voice),a.state.emailcheck||a.state.smscheck||a.state.voicecheck||a.props.sendRContact("","","")},a.goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"handleEmailChecked",value:function(){var e=!this.state.emailcheck;this.setState({emailcheck:e})}},{key:"handleSmsChecked",value:function(){var e=!this.state.smscheck;this.setState({smscheck:e})}},{key:"handleVoiceChecked",value:function(){var e=!this.state.voicecheck;this.setState({voicecheck:e})}},{key:"render",value:function(){var e=this;return l.a.createElement("div",{class:"landing-body"},l.a.createElement(l.a.Fragment,null,l.a.createElement(j,{onClick:this.goBack}),l.a.createElement(w.a,null,l.a.createElement(E.a,null,l.a.createElement("h3",null,"Sign up for reminders")),l.a.createElement(E.a,null,l.a.createElement("p",null,"How would you like to get reminders when it's time to renew again?"),l.a.createElement("p",null,"Choose the reminders you want to get:")),l.a.createElement(ie.a,null,l.a.createElement(E.a,null,l.a.createElement(b.a,{xs:1},l.a.createElement(v.a,{class:"checkbox",onClick:function(){return e.handleEmailChecked()}})),l.a.createElement(b.a,null,l.a.createElement("p",{class:"checkbox-text"}," ",l.a.createElement("strong",null,"Email")))),this.state.emailcheck?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"reminder-indent"},l.a.createElement("p",null," For example [email protected]"),l.a.createElement(oe.a,{initialstate:this.state.email},l.a.createElement("input",{type:"email",name:"email",value:this.state.email,onChange:this.handleChange})))):"",l.a.createElement(E.a,null,l.a.createElement(b.a,{xs:1},l.a.createElement(v.a,{class:"checkbox",onClick:function(){return e.handleSmsChecked()}})),l.a.createElement(b.a,null,l.a.createElement("p",{class:"checkbox-text"},l.a.createElement("strong",null,"Text message")))),this.state.smscheck?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"reminder-indent"},l.a.createElement("p",null," For example 5193446757")," ",l.a.createElement(oe.a,{initialstate:this.state.phone},l.a.createElement("input",{type:"email",name:"email",value:this.state.phone,onChange:this.handlePChange})))):"",l.a.createElement(E.a,null,l.a.createElement(b.a,{xs:1},l.a.createElement(v.a,{class:"checkbox",onClick:function(){return e.handleVoiceChecked()}})),l.a.createElement(b.a,null,l.a.createElement("p",{class:"checkbox-text"},l.a.createElement("strong",null,"Automated phone call")))),this.state.voicecheck?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"reminder-indent"},l.a.createElement("p",null," For example 5194333484"),l.a.createElement(oe.a,{initialstate:this.state.voice},l.a.createElement("input",{type:"email",name:"email",value:this.state.voice,onChange:this.handleVChange})))):""))),l.a.createElement(g.b,{to:"/review"},l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next")))}}]),t}(n.Component),Ee=Object(k.g)(pe),be=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),l.a.createElement(E.a,null,l.a.createElement("h2",{class:"ineligible-text",style:{marginLeft:"1rem"}},"You are ",l.a.createElement("strong",null,"not "),"eligible to renew online at this time."),l.a.createElement("p",{style:{marginLeft:"1rem"}},"Your address must be updated before you can renew your:")),l.a.createElement(E.a,null,l.a.createElement("ul",null,this.props.showhc?l.a.createElement("li",null,l.a.createElement("strong",null,"health card")):"",this.props.showopc?l.a.createElement("li",null,l.a.createElement("strong",null,"photo card")):"",this.props.showdl?l.a.createElement("li",null,l.a.createElement("strong",null,"driver's licence")):"")),l.a.createElement(E.a,null,l.a.createElement("p",{style:{marginLeft:"1rem"}},"Please visit a ServiceOntario centre to update your address and renew in-person.")),l.a.createElement(f.a,{href:"https://www.ontario.ca/page/serviceontario-locations-hours-and-contact",target:"_blank",style:{textDecoration:"none"}},"Find your nearest ServiceOntario")))}}]),t}(n.Component),fe=Object(k.g)(be),ve=function(e){function t(){return Object(i.a)(this,t),Object(s.a)(this,Object(h.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(l.a.Fragment,null,l.a.createElement(E.a,null,l.a.createElement("img",{src:"/error-black.png",alt:"error-symbol",className:"error-symbol-sm",style:{marginLeft:"0.2rem"}}),l.a.createElement("p",{className:"error-msg-black"},this.props.msg))))}}]),t}(n.Component),ge=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement("div",{class:"section"},l.a.createElement(j,{onClick:this.goBack}),l.a.createElement(E.a,null,l.a.createElement("h2",{class:"ineligible-text",style:{marginLeft:"1rem"}},"You are ",l.a.createElement("strong",null,"not "),"eligible to renew online at this time."),l.a.createElement("p",{style:{marginLeft:"1rem"}},"You must live in Ontario for at least 5 months in the past year before you can renew your:")),l.a.createElement(E.a,null,l.a.createElement("ul",null,l.a.createElement("li",null,"health card"))),l.a.createElement("p",null,this.props.showhc?l.a.createElement(l.a.Fragment,null,"To verify your residency, you must bring\u200f\u200f\u200e\u200a",l.a.createElement("a",{target:"_blank",href:"https://www.ontario.ca/page/documents-needed-get-health-card#section-1"},"supporting documentation")," ","\u200ato your\u200f\u200f\u200e\u200a\u200a",l.a.createElement("a",{target:"_blank",href:"https://www.ontario.ca/page/serviceontario-locations-hours-and-contact"},"nearest ServiceOntario location.")):l.a.createElement(l.a.Fragment,null,"To verify your residency, you must bring\u200e\u200f\u200f\u200e",""," \u200e",l.a.createElement("a",{target:"_blank",href:"https://www.ontario.ca/page/documents-needed-get-health-card#section-1"},"supporting documentation\u200e\u200f\u200f\u200e")," ","\u200f\u200f\u200e\u200f\u200f\u200e\u200ato your\u200f\u200f\u200e \u200enearest ServiceOntario location."))),this.props.showdl||this.props.showopc?"":l.a.createElement(f.a,null,"Find your nearest ServiceOntario"),this.props.showopc?l.a.createElement(l.a.Fragment,null,l.a.createElement(ve,{msg:"By continuing, you will only be renewing your photo card."}),l.a.createElement(g.b,{to:"/pc-input"},l.a.createElement(f.a,null,"Continue to only renew your photo card"))):"",this.props.showdl?l.a.createElement(l.a.Fragment,null,l.a.createElement(ve,{msg:"By continuing, you will only be renewing your driver's licence."}),l.a.createElement(g.b,{to:"/med-con2"},l.a.createElement(f.a,null,"Continue to only renew your driver's licence"))):""))}}]),t}(n.Component),ke=Object(k.g)(ge),ye=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement("div",{class:"section"},l.a.createElement(j,{onClick:this.goBack}),l.a.createElement("h2",{class:"ineligible-text"},"You are ",l.a.createElement("strong",null,"not "),"eligible to renew online at this time."),l.a.createElement("div",{class:"section"},l.a.createElement("p",null,"You cannot have had any medical conditions that may affect your ability to drive or have had a doctor tell you not to drive since you last renewed your driver\u2019s licence to renew your:")),l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("strong",null,"driver's licence "))),l.a.createElement("p",{style:{marginBottom:"1rem"}},this.props.showhc?l.a.createElement(l.a.Fragment,null,"If your medical condition has changed, please bring supporting documentation to your\u200f\u200f\u200e \u200e",l.a.createElement("a",{target:"_blank",href:"https://www.ontario.ca/page/serviceontario-locations-hours-and-contact"},"nearest ServiceOntario location.")):l.a.createElement(l.a.Fragment,null,"If your medical condition has changed, please bring supporting documentation to your nearest ServiceOntario location."))),this.props.showhc?l.a.createElement(l.a.Fragment,null,l.a.createElement(ve,{msg:"By continuing, you will only be renewing your health card."}),l.a.createElement(g.b,{to:"/step2"},l.a.createElement(f.a,null,"Continue to renew only your health card"))):l.a.
1createElement(f.a,null,"Find your nearest ServiceOntario")))}}]),t}(n.Component),we=Object(k.g)(ye),Ce=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{class:"landing-body"},l.a.createElement(j,{onClick:this.goBack}),l.a.createElement(E.a,null,l.a.createElement("h2",{class:"ineligible-text",style:{marginLeft:"1rem"}},"You are ",l.a.createElement("strong",null,"not "),"eligible to renew online at this time."),l.a.createElement("p",{style:{marginLeft:"1rem"}},"Please visit a ServiceOntario centre to renew in-person or for further assistance in renewing your:")),l.a.createElement(E.a,null,l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("strong",null,"driver's licence")))),l.a.createElement(f.a,{href:"https://www.ontario.ca/page/serviceontario-locations-hours-and-contact",target:"_blank",style:{textDecoration:"none"}},"Find your nearest ServiceOntario")))}}]),t}(n.Component),Oe=Object(k.g)(Ce),je=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={opc:a.props.opc,nchar:a.props.nchar,photodisabled:!0,chardisabled:!0},a.onClick=function(){a.state.chardisabled||a.state.photodisabled||(a.sendOPC(),a.props.history.push("/postal"))},a.handleOPChange=function(e){var t=e.target.value;a.setState({opc:t})},a.handleNChange=function(e){var t=e.target.value;a.setState({nchar:t})},a.sendOPC=function(){a.props.sendOPC(a.state.opc,a.state.nchar)},a.goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"checkphoto",value:function(){/^\d{3}[ -]?[A-Za-z][A-Za-z]\d{2}[ -]?\d{5}$/.exec(this.state.opc)?this.setState({photodisabled:!1,opcfail:!1}):this.setState({photodisabled:!0,opcfail:!0})}},{key:"checkninechar",value:function(){var e=this;/^[A-Za-z][A-Za-z]\d{7}$/.exec(this.state.nchar)?this.setState({chardisabled:!1,charfail:!1}):this.setState({chardisabled:!0,charfail:!0}),setTimeout((function(){window.scrollTo({top:0,left:0}),e.onClick()}),.001)}},{key:"onSubmit",value:function(){this.checkninechar(),this.checkphoto()}},{key:"render",value:function(){var e=this;return l.a.createElement("div",{class:"landing-body"},l.a.createElement(l.a.Fragment,null,l.a.createElement(j,{onClick:this.goBack}),this.state.opcfail&&this.state.charfail?l.a.createElement(S,{id1:"#opcnumber",id2:"#opcsequence",bul1:"Photo card number and version code",bul2:"9 character sequence on card"}):"",this.state.opcfail&&!this.state.charfail?l.a.createElement(S,{id1:"#opcnumber",bul1:"Ontario photo card"}):this.state.charfail&&!this.state.opcfail?l.a.createElement(S,{id1:"#opcsequence",bul1:"9 character sequence on card"}):"",l.a.createElement("h3",null,"Photo Card Information"),l.a.createElement("p",null,"Enter your Ontario Photo Card information"),l.a.createElement("div",{class:"section"},l.a.createElement("div",{className:this.state.opcfail?"error-content":""},l.a.createElement("p",null," ",l.a.createElement("strong",{id:"opcnumber"},"Ontario Photo Card number")),this.state.opcfail?l.a.createElement(B,{msg:"Enter your Ontario photo card number."}):"",l.a.createElement("p",null,"You can find your Ontario photo card number here:"),l.a.createElement("img",{class:"card-photo",src:"/OPCNum.png"}),l.a.createElement("p",null,"For example 123 PD34 12345"),l.a.createElement(F.a,{initialstate:this.state.opc},l.a.createElement("input",{value:this.state.opc,onChange:this.handleOPChange})))),l.a.createElement("hr",{style:{marginBottom:"3.5rem"}}),l.a.createElement("div",{class:"section"},l.a.createElement("div",{className:this.state.charfail?"error-content":""},l.a.createElement("p",{id:"opcsequence"},l.a.createElement("strong",null,"9 character sequence on card")),l.a.createElement("p",null,"Your 9 character sequence is found in the fifth field on the front of your card."),l.a.createElement("p",null,"You can find your 9 character sequence here:"),l.a.createElement("img",{class:"card-photo",src:"/OPCSeq.png"}),l.a.createElement("p",null,"For example MD0237452"),this.state.charfail?l.a.createElement(B,{msg:"Enter your Ontario photo card 9 character sequence"}):"",l.a.createElement(F.a,{initialstate:this.state.nchar},l.a.createElement("input",{value:this.state.nchar,onChange:this.handleNChange}
1)))),l.a.createElement(f.a,{onClick:function(){return e.onSubmit()}},"Next")))}}]),t}(n.Component),Se=Object(k.g)(je),Be=(l.a.Component,a(77),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={email:a.props.email,phone:a.props.phone,remail:a.props.remail,rphone:a.props.rphone,rvoice:a.props.rvoice,voicedisabled:!1,emaildisabled:!1,fail:!1,editCemail:!1,editCphone:!1},a.handleSubmit=function(e){},a.handleCEmailChange=function(e){var t=e.target.value;a.setState({email:t})},a.handleCPhoneChange=function(e){var t=e.target.value;a.setState({phone:t})},a.cancelCEmail=function(){a.setState({editCemail:!1,voicefail:!1})},a.handleCPhoneChange=function(e){var t=e.target.value;a.setState({phone:t})},a.cancelCPhone=function(){a.setState({editCphone:!1})},a.handleREmailChange=function(e){var t=e.target.value;a.setState({remail:t})},a.cancelREmail=function(){a.setState({editRemail:!1})},a.handleRPhoneChange=function(e){var t=e.target.value;a.setState({rphone:t})},a.cancelRPhone=function(){a.setState({editRphone:!1})},a.handleRVoiceChange=function(e){var t=e.target.value;a.setState({rvoice:t})},a.editRVoice=function(){a.setState({editRvoice:!0})},a.cancelRVoice=function(){a.setState({editRvoice:!1})},a.onRemEmailSave=function(){a.props.sendRContact(a.state.remail,a.state.rphone,a.state.rvoice),a.setState({editRemail:!1})},a.onRemPhoneSave=function(){a.props.sendRContact(a.state.remail,a.state.rphone,a.state.rvoice),a.setState({editRphone:!1})},a.onRemVoiceSave=function(){a.props.sendRContact(a.state.remail,a.state.rphone,a.state.rvoice),a.setState({editRvoice:!1})},a.onConEmailSave=function(){a.state.emaildisabled?a.state.emaildisabled&&a.setState({emailfail:!0}):(a.props.sendContact(a.state.email,a.state.phone),a.setState({editCemail:!1}))},a.onConPhoneSave=function(){a.state.voicedisabled?a.state.voicedisabled&&a.setState({voicefail:!0}):(a.props.sendContact(a.state.email,a.state.phone),a.setState({editCphone:!1}))},a.goBack=a.goBack.bind(Object(d.a)(a)),a.editCEmail=a.editCEmail.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"checkemail",value:function(){/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.exec(this.state.email)?this.setState({emaildisabled:!1,emailfail:!1}):this.setState({emaildisabled:!0})}},{key:"checkvoice",value:function(){/^[(]?\d{3}[)]?[ -.]?\d{3}[ -.]?\d{4}$/.exec(this.state.phone)?this.setState({voicedisabled:!1,voicefail:!1}):this.setState({voicedisabled:!0})}},{key:"editCEmail",value:function(){this.setState({editCemail:!0,emailfail:!1})}},{key:"editCPhone",value:function(){this.setState({editCphone:!0})}},{key:"editREmail",value:function(){this.setState({editRemail:!0})}},{key:"editRPhone",value:function(){this.setState({editRphone:!0})}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){var e=this;return l.a.createElement("div",{class:"landing-body"},l.a.createElement(l.a.Fragment,null,l.a.createElement(j,{onClick:this.goBack}),l.a.createElement("h3",null,"Review your details"),this.state.voicefail&&this.state.emailfail?l.a.createElement(S,{id1:"#reviewemail",id2:"reviewpn",bul1:"Email",bul2:"Phone number"}):this.state.emailfail&&!this.state.voicefail?l.a.createElement(S,{id1:"#reviewemail",bul1:"Email"}):this.state.voicefail&&!this.state.emailfail?l.a.createElement(S,{id1:"#reviewpn",bul1:"Phone number"}):"",l.a.createElement("div",{class:"section"},l.a.createElement("strong",null,"Card information"),this.props.dl?l.a.createElement("p",null,"Driver's licence number: ",l.a.createElement("br",null),"***** ***** "+this.props.dl.slice(-5)):"",this.props.opc?l.a.createElement("p",null,"Photo card number: ",l.a.createElement("br",null),"*** **** "+this.props.opc.slice(-5)):"",this.props.hc?l.a.createElement("p",null,"Health card number: ",l.a.createElement("br",null),"**** *** "+this.props.hc.slice(-6)):""),l.a.createElement("hr",null),l.a.createElement("div",{className:"section"},l.a.createElement("strong",null,"Contact Information"),l.a.createElement("div",{className:"info-sect"},l.a.createElement("div",{className:"info-sect-wrapper"},l.a.createElement("p",null,"Email:"),this.state.emailfail?l.a.createElement("div",null,l.a.createElement(B,{msg:""}),l.a.createElement("p",{id:"reviewemail",class:"weird-one-line-err"},"Please provide a valid email")):"",this.state.editCemail?l.a.createElement(l.a.Fragment,null,l.a.createElement(oe.a,{initialstate:this.props.email},l.a.createElement("input",{className:"review-input",value:this.state.email,onChange:this.handleCEmailChange,onBlur:function(){return e.checkemail()}})),l.a.createElement("div",{className:"edit-buttons"},l.a.createElement(f.a,{onClick:this.onConEmailSave},"Save"),l.a.createElement("p",{className:"cancel-button",onClick:this.cancelCEmail}
1,"Cancel"))):l.a.createElement("p",null,this.props.email)),this.state.editCemail?"":l.a.createElement("p",{className:"info-edit",onClick:function(){return e.editCEmail()}},"Edit")),this.props.phone?l.a.createElement("div",{className:"info-sect"},l.a.createElement("div",{className:"info-sect-wrapper"},l.a.createElement("p",{id:"reviewpn"},"Phone number:"),this.state.voicefail?l.a.createElement(B,{msg:"Please provide a phone number"}):"",this.state.editCphone?l.a.createElement(l.a.Fragment,null,l.a.createElement(oe.a,{initialstate:this.props.phone},l.a.createElement("input",{className:"review-input",value:this.state.phone,onChange:this.handleCPhoneChange,onBlur:function(){return e.checkvoice()}})),l.a.createElement("div",{className:"edit-buttons"},l.a.createElement(f.a,{onClick:this.onConPhoneSave},"Save"),l.a.createElement("p",{className:"cancel-button",onClick:this.cancelCPhone},"Cancel"))):l.a.createElement("p",null,this.props.phone)),this.state.editCphone?"":l.a.createElement("p",{className:"info-edit",onClick:function(){return e.editCPhone()}},"Edit")):""),l.a.createElement("hr",null),this.props.remail||this.props.rphone||this.props.rvoice?l.a.createElement("div",{class:"section"},l.a.createElement("strong",null,"Reminder information"),this.props.remail?l.a.createElement("div",{className:"info-sect"},l.a.createElement("div",{className:"info-sect-wrapper"},l.a.createElement("p",null,"Email: "),this.state.editRemail?l.a.createElement(l.a.Fragment,null,l.a.createElement(oe.a,{initialstate:this.props.remail},l.a.createElement("input",{className:"review-input",value:this.state.remail,onChange:this.handleREmailChange,onBlur:function(){return e.checkemail()}})),l.a.createElement("div",{className:"edit-buttons"},l.a.createElement(f.a,{onClick:this.onRemEmailSave},"Save"),l.a.createElement("p",{className:"cancel-button",onClick:this.cancelREmail},"Cancel"))):l.a.createElement("p",null,this.props.remail)),this.state.editRemail?"":l.a.createElement("p",{className:"info-edit",onClick:function(){return e.editREmail()}},"Edit")):"",this.props.rphone?l.a.createElement("div",{className:"info-sect"},l.a.createElement("div",{className:"info-sect-wrapper"},l.a.createElement("p",null,"Phone number:"),this.state.editRphone?l.a.createElement(l.a.Fragment,null,l.a.createElement(oe.a,{initialstate:this.props.rphone},l.a.createElement("input",{className:"review-input",value:this.state.rphone,onChange:this.handleRPhoneChange,onBlur:function(){return e.checkvoice()}})),l.a.createElement("div",{className:"edit-buttons"},l.a.createElement(f.a,{onClick:this.onRemPhoneSave},"Save"),l.a.createElement("p",{className:"cancel-button",onClick:this.cancelRPhone},"Cancel"))):l.a.createElement("p",null,this.props.rphone)),this.state.editRphone?"":l.a.createElement("p",{className:"info-edit",onClick:function(){return e.editRPhone()}},"Edit")):"",this.props.rvoice?l.a.createElement("div",{className:"info-sect"},l.a.createElement("div",{className:"info-sect-wrapper"},l.a.createElement("p",null,"Phone number:"),this.state.editRvoice?l.a.createElement(l.a.Fragment,null,l.a.createElement(oe.a,{initialstate:this.props.rvoice},l.a.createElement("input",{className:"review-input",value:this.state.rvoice,onChange:this.handleRVoiceChange,onBlur:function(){return e.checkvoice()}})),l.a.createElement("div",{className:"edit-buttons"},l.a.createElement(f.a,{onClick:this.onRemVoiceSave},"Save"),l.a.createElement("p",{className:"cancel-button",onClick:this.cancelRVoice},"Cancel"))):l.a.createElement("p",null,this.props.rvoice)),this.state.editRvoice?"":l.a.createElement("p",{className:"info-edit",onClick:function(){return e.editRVoice()}},"Edit")):"",l.a.createElement("hr",null)):"",l.a.createElement("div",{class:"section"},l.a.createElement("strong",null,"Mailing Address"),l.a.createElement("p",null,"Your new card(s) will be sent to the mailing address on file. We are unable to share that address for privacy and security reasons.",l.a.createElement("br",null),l.a.createElement("br",null),"If your address has changed,"," ",l.a.createElement("a",{target:"_blank",href:"https://www.ontario.ca/page/serviceontario-locations-hours-and-contact"},"Visit a ServiceOntario location")," ","to update your address and renew your card(s).")),l.a.createElement("hr",null),l.a.createElement("div",{class:"section"},l.a.createElement("p",null,"By clicking to next, you confirm that, to the best of your knowledge, the details you are providing are correct.")),l.a.createElement(g.b,{to:"/next-steps",onClick:function(){return e.handleSubmit()}},l.a.createElement(f.a,null,"Next"))))}}]),t}(n.Component)),Ne=Object(k.g)(Be),xe=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).state={voicedisabled:!1,fail:!1},a.goBack=a.goBack.bind(Object(d.a)(a)),a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"goBack",value:function(){this.props.history.goBack()}},{key:"onSubmit",value:function(){this.state.voicedisabled&&this.props.showhc?this.setState({fail:!0}):this.setState({fail:!1})}},{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){var e=this;return l.a.createElement("div",{class:"landing-body"},l.a.createElement(l.a.Fragment,null,l.a.createElement(j,{onClick:this.goBack}),l.a.createElement("div",{className:"success-container"},l.a.createElement("img",{src:"/success.png",alt:"success symbol"}),l.a.createElement("div",{className:"success-header"},"Success! You renewed your cards."),l.a.createElement("p",{style:{marginBottom:"0rem"}},"We have sent your receipt and temporary document(s) by email to:"," ")),l.a.createElement("div",{class:"section"},l.a.createElement("h3",{style:{marginBottom:"1rem"}},"What to do next:"),l.a.createElement("ul",null,l.a.createElement("li",null,"keep your receipt"),l.a.createElement("li",null,"print and carry your temporary licences with you"),l.a.createElement("li",null,"confirm that you've signed up for digital reminders for next time"))),l.a.createElement(g.b,{to:"",onClick:function(){return e.onSubmit()}},l.a.createElement(f.a,null,"Download your documents"))))}}]),t}(n.Component),Fe=Object(k.g)(xe),Re=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(s.a)(this,Object(h.a)(t).call(this,e))).getInfo=function(e,t,n){var l=a.state;l={showdl:e,showhc:t,showopc:n},a.setState(l)},a.getContact=function(e,t){var n=a.state;
1n={email:e,phone:t},a.setState(n)},a.getRContact=function(e,t,n){var l=a.state;l={remail:e,rphone:t,rvoice:n},a.setState(l)},a.getDL=function(e,t){var n=a.state;n={dl:e,trill:t},a.setState(n)},a.getHC=function(e,t){var n=a.state;n={hc:e,hnchar:t},a.setState(n)},a.getOPC=function(e,t){var n=a.state;n={opc:e,nchar:t},a.setState(n)},a.state={dl:""},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this;return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{id:"container"},l.a.createElement(w.a,{fluid:!0,className:"header-bg"},l.a.createElement(m,null)),l.a.createElement("div",{class:"so-logo"},l.a.createElement(E.a,{class:"so-logo1"},l.a.createElement("img",{width:"225",height:"55",src:"/logoSO.png",alt:"SO-logo"}))),l.a.createElement(g.a,null,l.a.createElement(k.d,null,l.a.createElement(k.b,{exact:!0,path:"/",component:I}),l.a.createElement(k.b,{exact:!0,path:"/byb",component:H}),l.a.createElement(k.b,{exact:!0,path:"/terms-and-conditions",component:G}),l.a.createElement(k.b,{exact:!0,path:"/home",render:function(){return l.a.createElement(x,{showerror:e.state.fail,sendInfo:e.getInfo.bind(e)})}}),l.a.createElement(k.b,{exact:!0,path:"/before-you-proceed",render:function(){return e.state.showopc?l.a.createElement(k.a,{to:"/elig"}):l.a.createElement(J,{showdl:e.state.showdl,showhc:e.state.showhc,showopc:e.state.showopc})}}),l.a.createElement(k.b,{exact:!0,path:"/step1",render:function(){return l.a.createElement(D,{showhc:e.state.showhc,showdl:e.state.showdl,showopc:e.state.showopc,sendDL:e.getDL.bind(e),dl:e.state.dl,trill:e.state.trill})}}),l.a.createElement(k.b,{exact:!0,path:"/step2",render:function(){return l.a.createElement(_,{showhc:e.state.showhc,showdl:e.state.showdl,showopc:e.state.showopc,sendHC:e.getHC.bind(e),hc:e.state.hc,hnchar:e.state.hnchar})}}),l.a.createElement(k.b,{path:"/pc-input",render:function(){return l.a.createElement(Se,{sendOPC:e.getOPC.bind(e),opc:e.state.opc,nchar:e.state.nchar})}}),l.a.createElement(k.b,{exact:!0,path:"/postal",component:Z}),l.a.createElement(k.b,{exact:!0,path:"/healthcard",render:function(){return!e.state.showhc||e.state.showdl||e.state.showopc?l.a.createElement(k.a,{to:"/step2"}):l.a.createElement($,{dl:e.state.showdl,hc:e.state.showhc,opc:e.state.showopc,sendDL:e.getDL.bind(e),sendOPC:e.getOPC.bind(e)})}}),l.a.createElement(k.b,{exact:!0,path:"/elig",render:function(){return l.a.createElement(q,{showdl:e.state.showdl,showhc:e.state.showhc,showopc:e.state.showopc})}}),l.a.createElement(k.b,{path:"/vision",render:function(){return l.a.createElement(K,{showdl:e.state.showdl,showhc:e.state.showhc,showopc:e.state.showopc})}}),l.a.createElement(k.b,{path:"/vision2",render:function(){return l.a.createElement(ee,{showdl:e.state.showdl,showhc:e.state.showhc,showopc:e.state.showopc})}}),l.a.createElement(k.b,{path:"/med-con",render:function(){return l.a.createElement(ae,{showhc:e.state.showhc})}}),l.a.createElement(k.b,{path:"/med-con2",render:function(){return l.a.createElement(le,{showhc:e.state.showhc})}}),l.a.createElement(k.b,{path:"/five-mos",render:function(){return l.a.createElement(de,{showdl:e.state.showdl,showhc:e.state.showhc,showopc:e.state.showopc})}}),l.a.createElement(k.b,{path:"/ineligible",render:function(){return l.a.createElement(fe,{showdl:e.state.showdl,showhc:e.state.showhc,showopc:e.state.showopc})}}),l.a.createElement(k.b,{path:"/ineligible2",render:function(){return l.a.createElement(ke,{showdl:e.state.showdl,showhc:e.state.showhc,showopc:e.state.showopc})}}),l.a.createElement(k.b,{path:"/ineligible3",render:function(){return l.a.createElement(we,{showdl:e.state.showdl,showhc:e.state.showhc,showopc:e.state.showopc})}}),l.a.createElement(k.b,{path:"/ineligible4",render:function(){return l.a.createElement(Oe,{showdl:e.state.showdl,showhc:e.state.showhc,showopc:e.state.showopc})}}),l.a.createElement(k.b,{path:"/contact",render:function(){return l.a.createElement(ue,{hc:e.state.hc,sendContact:e.getContact.bind(e)})}}),l.a.createElement(k.b,{path:"/notify-so",render:function(){return l.a.createElement(Ee,{email:e.state.email,phone:e.state.phone,sendRContact:e.getRContact.bind(e)})}})," ",l.a.createElement(k.b,{path:"/review",render:function(){return l.a.createElement(Ne,{phone:e.state.phone,email:e.state.email,dl:e.state.dl,hc:e.state.hc,opc:e.state.opc,remail:e.state.remail,rphone:e.state.rphone,rvoice:e.state.rvoice,sendContact:e.getContact.bind(e),sendRContact:e.getRContact.bind(e)})}}),l.a.createElement(k.b,{path:"/next-steps",render:function(){return l.a.createElement(Fe,{showdl:e.state.showdl,showhc:e.state.showhc,showopc:e.state.showopc})}})))),l.a.createElement(Y,null))}}]),t}(n.Component);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));r.a.render(l.a.createElement(Re,null),document.getElementById("root")),"serviceWorker"
1in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))},21:function(e,t,a){},59:function(e,t,a){},77:function(e,t,a){},94:function(e,t,a){e.exports=a(149)},99:function(e,t,a){}},[[94,1,2]]]);
2//# sourceMappingURL=main.aefb58b6.chunk.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.