1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[54],{"8ujH":function(e,t,a){var r=a("GTTd")("jsonp");e.exports=function(e,t,a){"function"==typeof t&&(a=t,t={});t||(t={});var n,i,s=t.prefix||"__jp",c=t.name||s+o++,u=t.param||"callback",m=null!=t.timeout?t.timeout:6e4,f=encodeURIComponent,d=document.getElementsByTagName("script")[0]||document.head;m&&(i=setTimeout((function(){p(),a&&a(new Error("Timeout"))}),m));function p(){n.parentNode&&n.parentNode.removeChild(n),window[c]=l,i&&clearTimeout(i)}return window[c]=function(e){r("jsonp got",e),p(),a&&a(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+u+"="+f(c)).replace("?&","?"),r('jsonp req "%s"',e),(n=document.createElement("script")).src=e,d.parentNode.insertBefore(n,d),function(){window[c]&&p()}};var o=0;function l(){}},Due7:function(e,t,a){"use strict";a.r(t);var r=a("q1tI"),o=a.n(r),l=a("8Kt/"),n=a.n(l),i=a("kQc7"),s=a("ODXe"),c=a("Ff2n"),u=a("KYPV"),m=a("PUWL"),f=a("MX0m"),d=a.n(f),p=a("338Q"),h=a("vBWV"),g=a("dQSq"),b=(a("xJSF"),a("KHwH")),v=o.a.createElement;var y=Object(u.e)((function(e){var t=e.label,a=e.labelStyle,o=e.name,l=e.type,n=e.className,i=e.formik,s=e.validate,c=e.disabled,m=e.notRequired,f=e.fromOrg,d=e.otherCallBack,p=e.display,h=e.title,y=Object(g.a)(),w=Object(u.f)(i.errors,o),x=Object(u.f)(i.touched,o),j=Object(r.useState)((function(){return b.a})),N=j[0],O=j[1];Object(r.useEffect)((function(){"function"===typeof s&&O((function(){return s}))}),[s]);var S=function(e){i.setFieldTouched(o,!0),i.setFieldValue(o,e.currentTarget.value,!1),d&&d(e.currentTarget.value)},_=function(e){i.setFieldValue(o,e.currentTarget.value,!1),d&&d(e.currentTarget.value)};return v("div",{className:"flex flex-col "+n,style:{display:p}},v(u.a,{validate:m&&f?void 0:N,name:o,render:function(e){var r=e.field;return v("div",null,v("div",{className:"relative mt-2"},v("input",{name:o,value:r.value,className:"text-input rounded-none mrf-paragraph w-full "+(w&&x?"border-gray-default ":c?"border-transparent":!w&&r.value?"border-".concat(y,"-default"):"border-gray-default"),id:o.replace(/\./g,""),type:l||"text",onBlur:S,onChange:_,disabled:c,placeholder:" "}),v("label",{htmlFor:o,className:"text-label mrf-paragraph "+a+(c?" text-gray-light":r.value&&!w&&" text-".concat(y,"-default"))},t,h&&v("span",{className:"mrf-paragraph2"},h),f&&v("span",{className:"mrf-paragraph"}," ","- From Parent Organization"))))}}))})),w=a("OQf1"),x=a("rePB"),j=a("oGMx"),N=a("KTyV"),O=a("Cs6D"),S=a("wx14"),_=o.a.createElement;function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function E(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?k(Object(a),!0).forEach((function(t){Object(x.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):k(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var C=function(e){var t=e.value,a=e.onChange,o=e.onFocus,l=e.onBlur,n=e.className,i=void 0===n?"custom-input":n,s=e.id,u=void 0===s?"otherSpecify":s,m=e.name,f=void 0===m?"otherSpecify":m,d=e.style,p=Object(c.a)(e,["value","onChange","onFocus","onBlur","className","id","name","style"]),h=Object(r.useState)(!1),g=h[0],b=h[1],v=Object(r.useState)(!!t),y=v[0],w=v[1],x=Object(r.useRef)(null);Object(r.useEffect)((function(){w(!!t)}),[t]);var j=!g&&!y;return _("div",{style:{position:"relative",width:"100%"}},_("input",Object(S.a)({ref:x,className:i,type:"text",id:u,name:f,value:t,onChange:function(e){w(!!e.target.value),null===a||void 0===a||a(e)},onFocus:function(e){b(!0),null===o||void 0===o||o(e)},onBlur:function(e){b(!1),null===l||void 0===l||l(e)},placeholder:"",style:E({width:"100%",padding:"8px 12px",fontSize:"14px",lineHeight:"1.5",color:"#495057",backgroundColor:"#fff",border:"1px solid #ced4da",borderRadius:"5px",transition:"border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out",outline:"none"},d)}
1,p)),j&&_("div",{style:{position:"absolute",left:"12px",top:"8px",fontSize:"14px",lineHeight:"1.5",pointerEvents:"none",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"calc(100% - 24px)"}},_("span",{style:{fontStyle:"italic",color:"red"}},"Start typing here..."),_("span",{style:{color:"gray"}}," ","example: podcast, radio interview, blog post, newsletter.")))},P=o.a.createElement;function R(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function A(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?R(Object(a),!0).forEach((function(t){Object(x.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):R(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var T=Object(u.g)({mapPropsToValues:function(e){var t=e.initialSearchTerm,a=e.initialOtherSpecify;return{searchTerm2:t||"",otherSpecify:void 0===a?"":a}},validate:function(){return null},enableReinitialize:!0,handleSubmit:function(e){console.log(e)}})((function(e){var t=e.setInput,a=e.list,o=e.placeholder,l=e.onChangeSelect,n=e.searchTerm2,i=e.onOtherSpecifyChange,s=e.initialOtherSpecify,c=void 0===s?"":s,u=(Object(j.a)(),Object(r.useState)(!1)),m=u[0],f=u[1],p=Object(r.useState)(c),h=p[0],g=p[1],b={menu:function(e,t){return A(A({},e),{},{maxHeight:250})},menuList:function(e,t){return A(A({},e),{},{maxHeight:250})},control:function(e,t){return A(A({},e),{},{borderWidth:"2px",borderRadius:"5px",borderColor:"rgb(0,105,179)",color:"rgb(255,0,0)",boxShadow:0})},placeholder:function(e){return A(A({},e),{},{color:"#ff0000",fontSize:"14pt",fontWeight:"bold",fontStyle:"italic"})}},v=a.find((function(e){return e.value===n}))||null;return Object(r.useEffect)((function(){"Other"===(null===v||void 0===v?void 0:v.value)?(f(!0),""!==h&&(g(""),i&&i(""))):m&&(f(!1),""!==h&&(g(""),i&&i("")))}),[null===v||void 0===v?void 0:v.value]),P("div",{className:"jsx-2933349312 w-full"},P(O.a,{className:"mrf-paragraph",name:"hear_rxtga",isSearchable:!0,onChange:function(e){t(e.value),l&&l(e),"Other"===e.value?(f(!0),g(""),i&&i("")):(f(!1),g(""))},components:{DropdownIndicator:function(e){return P(N.f.DropdownIndicator,e,P("img",{src:"/static/imgs/other/blue.png",alt:"dropdown"}))}},options:a,styles:b,value:v,placeholder:o||"Start typing here...",formatOptionLabel:function(e,t){t.context;return"Other"===e.value?P("span",{className:"jsx-2933349312"},"Other,",P("span",{style:{fontStyle:"italic"},className:"jsx-2933349312"},"\xa0please specify below:")):e.label}}),m&&P("div",{style:{marginTop:"12px"},className:"jsx-2933349312 mt-3"},P(C,{className:"custom-input",type:"text",id:"otherSpecify",name:"otherSpecify",value:h,onChange:function(e){var t=e.target.value;m&&(g(t),i&&i(t))},onFocus:function(e){return e.target.style.borderColor="rgb(0,105,179)"},onBlur:function(e){return e.target.style.borderColor="#ced4da"}})),P(d.a,{id:"2933349312"},[".custom-input.jsx-2933349312::-webkit-input-placeholder{color:red !important;font-style:italic !important;font-weight:bold;opacity:1;}",".custom-input.jsx-2933349312::-moz-placeholder{color:red !important;font-style:italic !important;font-weight:bold;opacity:1;}",".custom-input.jsx-2933349312:-ms-input-placeholder{color:red !important;font-style:italic !important;font-weight:bold;opacity:1;}",".custom-input.jsx-2933349312::placeholder{color:red !important;font-style:italic !important;font-weight:bold;opacity:1;}",".custom-input.jsx-2933349312:focus.jsx-2933349312::-webkit-input-placeholder{color:red;font-weight:bold;font-style:italic;}",".custom-input.jsx-2933349312:focus.jsx-2933349312::-moz-placeholder{color:red;font-weight:bold;font-style:italic;}",".custom-input.jsx-2933349312:focus.jsx-2933349312:-ms-input-placeholder{color:red;font-weight:bold;font-style:italic;}",".custom-input.jsx-2933349312:focus.jsx-2933349312::placeholder{color:red;font-weight:bold;font-style:italic;}"]))})),I=a("8r14"),F=o.a.createElement;var D=Object(u.e)((function(e){var t=e.formik,a=e.script,o=(e.values,e.setFirstNameConfirm),l=e.setLastNameConfirm,n=Object(r.useState)(!1),i=n[0],s=n[1],c=Object(r.useState)(!1),u=(c[0],c[1],Object(r.useState)("600px")),m=(u[0],u[1],Object(r.useState)(t.values.hear_rxtga||"")),f=m[0],g=m[1],v=null;return void 0!=a&&null!=a&&(a.onload=function(){gapi.load("auth2",(function(){var e;v=gapi.auth2.init({client_id:"398126727435-c3uuv8lrvfiu7qhn4ieb25c11tqurefs.apps.googleusercontent.com",cookiepolicy:"single_host_origin",scope:"profile"}),e=document.getElementById("googleRegister"),v.attachClickHandler(e,{},(function(e){!function(e){t.setFieldTouched("first_name",!0),o&&o(e.getGivenName()),t.setFieldValue("first_name",e.getGivenName(),!1),t.values.first_name=e.getGivenName(),t.setFieldTouched("last_name",!0),t.values.last_name=e.getName().replace(e.getGivenName(),"").trim(),l&&l(e.getName().replace(e.getGivenName(),"").trim()),t.setFieldValue("last_name",e.getName().replace(e.getGivenName(),"").trim(),!1),t.setFieldTouched("email",!0),t.values.email=e.getEmail(),t.setFieldValue("email",e.getEmail(),!1),t.values.google_account=e.getEmail(),t.setFieldValue("google_account",e.getEmail(),!1),t.values.password_1="rxtga_"+e.getId(),t.setFieldValue("password_1","rxtga_"+e.getId(),!1),t.values.password_2="rxtga_"+e.getId(),t.setFieldValue("password_2","rxtga_"+e.getId(),!1),t.values.google_data="rxtga_"+e.getId(),t.setFieldValue("google_data","rxtga_"+e.getId(),!1),t.values.is_google_user=!0,t.setFieldValue("is_google_user",!0,!1),s(!0)}(v.currentUser.get().getBasicProfile())}),(function(e){console.log(JSON.stringify(e,void 0,2))}))}))}),F(p.a,{title:"Personal Info"},F("div",{className:"jsx-727370284 w-full flex flex-wrap mb-4"},F("div",{className:"jsx-727370284 w-full flex justify-start"},F("div",{className:"jsx-727370284"},F("p",{className:"jsx-727370284 "},F("strong",{className:"jsx-727370284"},"How did you hear about RxTGA?"))),F("div",{className:"jsx-727370284 ml-2 -mt-2"},F("p",{className:"jsx-727370284 w-full"}
1,"Start typing or use the scroll bar to select one option from the drop-down list."),F("p",{style:{color:"red"},className:"jsx-727370284 w-full -mt-2"},F("em",{className:"jsx-727370284"},"Can't find a suitable option? Select ",F("strong",{className:"jsx-727370284"},"Other")," and tell us how you heard about RxTGA.")))),F("div",{className:"jsx-727370284 w-full"},F(T,{setInput:g,list:[{value:"Social media advertisement",label:"Social media advertisement"},{value:"Social media post",label:"Social media post"},{value:"Healthcare provider / professional",label:"Healthcare provider / professional"},{value:"Referral (friend, colleague)",label:"Referral (friend, colleague)"},{value:"Community event",label:"Community event"},{value:"Flyer, poster, or brochure",label:"Flyer, poster, or brochure"},{value:"Google search",label:"Google search"},{value:"Email",label:"Email"},{value:"Other",label:"Other,Please specify below:"}],onChangeSelect:function(e){g(e.value),t.setFieldTouched("hear_rxtga",!0),t.setFieldValue("hear_rxtga",e.value,!1)},initialSearchTerm:f,searchTerm2:f,onOtherSpecifyChange:function(e){console.log(e),t.setFieldTouched("hear_rxtga",!0),t.setFieldValue("hear_rxtga","Other, "+e,!1)}}))),!i&&F("div",{align:"right",className:"jsx-727370284 w-full"},F("p",{className:"jsx-727370284 w-full mrf-paragraph"},"Sign in with Google"),F("img",{id:"googleRegister",src:"/static/imgs/google.png",style:{cursor:"pointer",height:"40px"},className:"jsx-727370284 object-cover h-full image"})),i&&F("div",{id:"googleRegister",align:"right",className:"jsx-727370284 w-full"},F("span",{className:"jsx-727370284 text-green-default"}," Google authentication enabled ")),F(h.a,{label:"First Name",name:"first_name",className:"w-full md:w-full px-2",otherCallBack:o}),F(h.a,{label:"Last Name",name:"last_name",className:"w-full md:w-full px-2",otherCallBack:l}),F("div",{className:"jsx-727370284 w-full flex"},F("div",{className:"jsx-727370284 w-1/2"},F(h.a,{label:"Email",name:"email",type:"email",validate:b.b,className:"w-full md:w-full px-2"})),F("div",{className:"jsx-727370284 w-1/2"},F(y,{label:"Phone",name:"phone",type:"phone",notRequired:!0,className:"w-full md:w-full px-2"}))),F("div",{className:"jsx-727370284 w-full flex"},F("div",{className:"jsx-727370284 w-1/2"},F(h.a,{label:"City/Town",name:"city_town",className:"w-full md:w-full px-2"})),F("div",{className:"jsx-727370284 w-1/2"},F(h.a,{label:"Postal Code",name:"postal_code",validate:b.d,className:"w-full md:w-full px-2"}))),!i&&F("div",{className:"jsx-727370284 w-full md:w-full"},F(w.a,{label:"Create Password",name:"password_1",type:"password",className:"w-full md:w-full px-2"}),F(w.a,{label:"Type Password again to confirm",name:"password_2",type:"password",className:"w-full md:w-full px-2"})),F(d.a,{id:"727370284"},[".fade.jsx-727370284{width:380px;position:fixed;left:78%;z-index:99999999;}",".succ-pop.jsx-727370284{width:380px;background:#FBFAFD;position:fixed;left:78%;margin-left:-263px;margin-top:-126px;z-index:100000;border-radius:5px;}",".title.jsx-727370284{font-size:12px;color:black;}",".divClose.jsx-727370284{width:40px;height:40px;opacity:0.8;background-image:url(/static/imgs/dashboard/close.png);}",'.divClose.jsx-727370284:hover{width:40px;height:40px;opacity:1;float:"right";margin-right:"10px";margin-top:"5px";cursor:"pointer";background-image:url(/static/imgs/dashboard/close.png);}',".custom-input.jsx-727370284::-webkit-input-placeholder{color:red !important;font-style:italic !important;opacity:1;}",".custom-input.jsx-727370284::-moz-placeholder{color:red !important;font-style:italic !important;opacity:1;}",".custom-input.jsx-727370284:-ms-input-placeholder{color:red !important;font-style:italic !important;opacity:1;}",".custom-input.jsx-727370284::placeholder{color:red !important;font-style:italic !important;opacity:1;}",".custom-input.jsx-727370284:focus.jsx-727370284::-webkit-input-placeholder{color:red;font-style:italic;}",".custom-input.jsx-727370284:focus.jsx-727370284::-moz-placeholder{color:red;font-style:italic;}",".custom-input.jsx-727370284:focus.jsx-727370284:-ms-input-placeholder{color:red;font-style:italic;}",".custom-input.jsx-727370284:focus.jsx-727370284::placeholder{color:red;font-style:italic;}"]))})),M=a("ttZb"),z=a("rY7v"),B=a("DHVr"),H=(a("niHH"),a("nAsW")),G=a("nOHt"),V=a("iVi/"),L=a.n(V),Q=a("x+3N"),U=a("Om8d"),q=a("YFqc"),W=a.n(q),Y=a("ygHP"),K=a("pQ8y"),J=o.a.createElement;function X(e){var t=e.isShowing,a=e.toggle,o=Object(r.useState)(),l=o[0],n=o[1],i=Object(r.useState)(!0),s=i[0],c=(i[1],Object(g.a)(),Object(r.useRef)());Object(G.useRouter)();return Object(Q.a)(),Object(Y.a)(c,(function(){s&&a()})),Object(r.useEffect)((function(){n(!0)}
1),[t]),J(K.a,{in:l,timeout:500,classNames:"modal",unmountOnExit:!0},J("div",{ref:c,className:"jsx-556516403 signin w-11/12 sm:w-8/12 md:w-1/2 lg:w-2/6 p-4 rounded bg-white shadow-lg flex flex-col m-auto overflow-hidden"},J("div",{className:"jsx-556516403 w-full flex flex-wrap justify-center mt-2 ml-4"},J("p",{className:"jsx-556516403 mrf-heading0 mrf-blue mrf-bold"},"Did My Registration Work?")),J("div",{className:"jsx-556516403 w-full flex flex-wrap justify-center mt-2 ml-4"},J("p",{className:"jsx-556516403 w-full mrf-heading2 mrf-blue mrf-bold"},"How do I know my registration worked?"),J("p",{className:"jsx-556516403 w-full mrf-paragraph"},"After you click ",J("span",{style:{backgroundColor:"rgb(0, 105, 179)",color:"white"},className:"jsx-556516403"},"SUBMIT"),", two things should happen:"),J("p",{className:"jsx-556516403 w-full mrf-paragraph"},"\u2713 You will be taken to your ",J("strong",{className:"jsx-556516403"},"Participant Dashboard")," page. (See the example screenshot below.)"),J("p",{className:"jsx-556516403 w-full mrf-paragraph"},"\u2713 You will receive a Welcome Email from Prescription to Get Active at the email address you entered."),J("div",{style:{display:"table-cell",verticalAlign:"middle"},className:"jsx-556516403 w-full"},J("img",{style:{borderRadius:"5px"},src:"/static/imgs/other/myprofile.png",className:"jsx-556516403"}))),J("div",{className:"jsx-556516403 w-full flex flex-wrap justify-center mt-6 ml-4"},J("p",{className:"jsx-556516403 w-full mrf-heading0 mrf-blue mrf-bold"},"I clicked SUBMIT but nothing happened."),J("p",{className:"jsx-556516403 w-full mrf-paragraph"},"Don't worry. This usually means that something on the form still needs attention."),J("p",{className:"jsx-556516403 w-full mrf-paragraph"},"Please check the following:"),J("p",{className:"jsx-556516403 w-full flex mrf-paragraph"},J("div",{className:"jsx-556516403 -mt-2"},J("strong",{style:{zoom:"1.7"},className:"jsx-556516403"},"\u2022")),"\xa0Look for any boxes outlined or highlighted in red."),J("p",{className:"jsx-556516403 w-full flex mrf-paragraph"},J("div",{className:"jsx-556516403 -mt-2"},J("strong",{style:{zoom:"1.7"},className:"jsx-556516403"},"\u2022")),"\xa0Make sure your Password and Confirm Password match exactly."),J("p",{className:"jsx-556516403 w-full flex mrf-paragraph"},J("div",{className:"jsx-556516403 -mt-2"},J("strong",{style:{zoom:"1.7"},className:"jsx-556516403"},"\u2022")),"\xa0Make sure all consent boxes have been checked."),J("p",{className:"jsx-556516403 w-full flex mrf-paragraph"},J("div",{className:"jsx-556516403 -mt-2"},J("strong",{style:{zoom:"1.7"},className:"jsx-556516403"},"\u2022")),'\xa0Make sure you checked the "I\'m not a robot" box.'),J("p",{className:"jsx-556516403 w-full mrf-paragraph"},"After making any corrections, click ",J("span",{style:{backgroundColor:"rgb(0, 105, 179)",color:"white"},className:"jsx-556516403"},"SUBMIT")," again.")),J("div",{className:"jsx-556516403 w-full flex flex-wrap justify-center mt-6 ml-4"},J("p",{className:"jsx-556516403 w-full mrf-heading0 mrf-blue mrf-bold"},"Still not sure if you registered?"),J("p",{className:"jsx-556516403 w-full mrf-paragraph"},"Check your email inbox for a Welcome Email from Prescription to Get Active."),J("p",{className:"jsx-556516403 w-full mrf-paragraph"},"If you do not see it:"),J("p",{className:"jsx-556516403 w-full flex mrf-paragraph"},J("div",{className:"jsx-556516403 -mt-2"},J("strong",{style:{zoom:"1.7"},className:"jsx-556516403"},"\u2022")),"\xa0Check your Junk Mail or Spam folder."),J("p",{className:"jsx-556516403 w-full flex mrf-paragraph"},J("div",{className:"jsx-556516403 -mt-2"},J("strong",{style:{zoom:"1.7"},className:"jsx-556516403"},"\u2022")),'\xa0Search your email for "Prescription to Get Active".'),J("p",{className:"jsx-556516403 w-full flex mrf-paragraph"},J("div",{className:"jsx-556516403 -mt-2"},J("strong",{style:{zoom:"1.7"},className:"jsx-556516403"},"\u2022")),"\xa0Add\xa0",J("a",{href:"mailto:[email protected]",className:"jsx-556516403 blue-link mb-4 mrf-paragraph"},J("u",{className:"jsx-556516403"},"[email protected]")),"\xa0to your safe sender list."),J("div",{style:{border:"solid 2px #A0A0A0",borderRadius:"2px"},className:"jsx-556516403 w-full mt-4 mb-4"}),J("p",{className:"jsx-556516403 w-full mrf-paragraph mrf-bold"},"Still Need Help?"),J("p",{className:"jsx-556516403 w-full mrf-paragraph"},"We are happy to help."),J("p",{className:"jsx-556516403 w-full mrf-paragraph"},J("strong",{className:"jsx-556516403"},"Email: "),J("a",{href:"mailto:[email protected]",className:"jsx-556516403 blue-link mb-4 mrf-paragraph"},"\xa0",J("u",{className:"jsx-556516403"},"[email protected]"))),J("p",{className:"jsx-556516403 w-full mrf-paragraph"},J("strong",{className:"jsx-556516403"},"Phone:")," 1-866-212-7552"),J("div",{style:{border:"solid 2px #A0A0A0",borderRadius:"2px"},className:"jsx-556516403 w-full mt-4 mb-4"}),J("p",{className:"jsx-556516403 w-full mrf-paragraph"})),J("div",{style:{marginTop:"40px"},className:"jsx-556516403"},J("div",{className:"jsx-556516403 flex float-right"},J("button",{type:"button",onClick:function(){a()},className:"jsx-556516403 mrf-heading2 button-blue"},"Close"))),J(d.a,{id:"556516403"},[".signin.jsx-556516403{width:1000px;height:600px;overflow-y:auto;}",".divClose.jsx-556516403{width:40px;height:40px;opacity:0.8;background-image:url(/static/imgs/dashboard/close.png);}",".fade.jsx-556516403{width:555px;position:fixed;left:50%;
1top:50%;z-index:99999999;}",".succ-pop.jsx-556516403{width:555px;background:#FBFAFD;position:fixed;left:50%;top:50%;margin-left:-263px;margin-top:-126px;z-index:100000;border-radius:5px;}",".title.jsx-556516403{font-size:12px;color:black;}"])))}var $=a("xH1Y"),Z=a("ZwE/"),ee=a("huU8"),te=a("KQm4"),ae=a("sr3X"),re=(a("HQGO"),a("i8i4")),oe=a.n(re),le=o.a.createElement;function ne(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function ie(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(a),!0).forEach((function(t){Object(x.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ne(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var se=Object(u.g)({mapPropsToValues:function(){return{searchTerm:""}},validate:function(){return null},enableReinitialize:!0,handleSubmit:function(e,t){testValue()}})((function(e){var t=e.setInput,a=e.list,o=e.placeholder,l=e.cancelSelect,n=(e.setCancelSelect,e.onChangeSelect),i=(Object(j.a)(),function(e){return le(N.f.DropdownIndicator,e,le("img",{src:l?"/static/imgs/other/gray.png":"/static/imgs/other/blue.png"}))}),s={menu:function(e,t){return ie(ie({},e),{},{maxHeight:250})},menuList:function(e,t){return ie(ie({},e),{},{maxHeight:250})},control:function(e,t){return ie(ie({},e),{},{borderWidth:"2px",borderRadius:"5px",borderColor:"rgb(0,105,179)",color:"rgb(255,0,0)",boxShadow:0})},placeholder:function(e){return ie(ie({},e),{},{color:"#ff0000",fontSize:"14pt",fontWeight:"bold",fontStyle:"italic"})}},c={menu:function(e,t){return ie(ie({},e),{},{maxHeight:250})},menuList:function(e,t){return ie(ie({},e),{},{maxHeight:250})},control:function(e,t){return ie(ie({},e),{},{borderWidth:"2px",borderRadius:"5px",boxShadow:0})},placeholder:function(e){return ie(ie({},e),{},{color:"#ff0000",fontWeight:"bold",fontSize:"14pt",fontStyle:"italic"})}};return Object(r.useEffect)((function(){oe.a.unmountComponentAtNode(document.getElementById("divSelectRoot")),oe.a.render(le(O.a,{className:"mrf-paragraph",name:"selPrescription2",isSearchable:!0,onChange:function(e){t(e),n&&n(e)},components:{DropdownIndicator:i},options:a,styles:l?c:s,placeholder:o||"Start typing clinic name here..."}),document.getElementById("divSelectRoot"))}),[l,a]),le("div",{id:"divSelectRoot",className:"w-full"})})),ce=o.a.createElement;function ue(e){var t=e.setPrescription,a=e.setEmailPrescription,o=e.setEmailCity,l=e.setEmailProvince,n=Object(r.useState)([]),i=n[0],s=n[1],c=Object(r.useState)(""),u=c[0],m=c[1],f=Object(r.useState)(!1),d=f[0],p=f[1],b=Object(r.useState)(""),v=(b[0],b[1]),y=Object(r.useState)(""),w=(y[0],y[1]),x=Object(r.useState)(""),j=(x[0],x[1]),N=Object(r.useState)(!1),O=N[0],S=N[1];Object(g.a)();var _=function(e){"-2"==e?(t&&t("-1"),S(!0)):(t&&t(e.value),m(e.value),k())},k=function(e){p(!1),w(""),v(""),j(""),a(""),o(""),l(""),S(!1)},E=Object(M.e)(I.g,{variables:{name:""}});return Object(r.useEffect)((function(){d&&t&&t("")}),[d]),Object(r.useEffect)((function(){p(!1)}),[u]),Object(r.useEffect)((function(){if(E.data){var e=E.data,t=[].concat(Object(te.a)(e.clinics),Object(te.a)(e.individualProviders)),a=(t=t.filter((function(e){return e.activeStatus}))).map((function(e){return{value:e.id,label:e.name.split("_")[0]}}));a.sort((function(e,t){return e.label.toLowerCase()>t.label.toLowerCase()?1:-1})),a.length>0&&a.unshift({value:"-1",label:"None Selected"}),s(a)}}),[E]),Object(ae.a)(E.error),ce("div",{className:"w-full mb-2"},ce("div",{className:"w-full mt-2"},ce("div",{className:"w-full"},ce("p",{className:"w-full mrf-heading0 ml-4"},ce("strong",null,"Let us know which clinic or location you received your prescription from."))),ce("div",{className:"w-full mt-2"},ce("p",{className:"mrf-heading2 italic ml-4"},"Please note: The prescription is given either in the form of a tear-off-pad, a printout form or verbal instruction given to you during a virtual/phone consultation.")),ce("div",{className:"w-full flex flex-wrap items-center content-center mt-2",style:{border:"dashed 2px rgb(0,105,179)",borderRadius:"20px"}},ce("p",{className:"w-full text-center mrf-heading1 mrf-blue"},"SEARCH TIPS"),ce("p",{className:"w-full text-center mrf-paragraph mrf-blue"},"Click in the search window below then:"),ce("p",{className:"w-2/12"},"\xa0"),ce("p",{className:"w-8/12 mrf-paragraph"},"1. Begin typing the name of the clinic where you received your prescription. Use the scroll bar to view matches, then click on your clinic (the more letters typed the easier it becomes to find your match)."),ce("p",{className:"w-2/12"},"\xa0"),ce("p",{className:"w-full text-center mrf-paragraph mrf-bold mrf-blue"},"OR"),ce("p",{className:"w-2/12"},"\xa0"),ce("p",{className:"w-8/12 mrf-paragraph"},"2. Use the scroll bars to search through the alphabetized list of clinic locations to find a match."),ce("p",{className:"w-2/12"},"\xa0"))),ce("div",{className:"w-full mt-6 mb-2"},ce("div",{className:"w-full flex flex-wrap mrf-justify-between"},ce("div",{className:"w-1/30"},ce("input",{className:"mt-1",style:{zoom:"2"},name:"chooseRadio",type:"radio",checked:0==d,onClick:k})),ce("div",{className:"w-28/30"},ce(se,{setInput:m,list:i,cancelSelect:O,setCancelSelect:S,onChangeSelect:_})))),ce("div",{className:"w-full mt-4 flex flex-wrap mrf-justify-between mx-auto"},ce("div",{className:"w-1/30"},ce("input",{className:"mt-1",style:{zoom:"2"},name:"chooseRadio",type:"radio",checked:1==d,onClick:function(e){p(!0),_("-2")}})),ce("div",{className:"w-28/30"+(O?" mrf-border":"")},ce("p",{className:"mrf-heading2"},"My prescriber is not listed ",ce("i",null,"(Please provide the name of your clinic and prescriber\u2019s name so that we can update the list.)"))),d&&ce("div",{className:"w-full flex flex-wrap mt-2"},ce("div",{id:"divMyClinic",className:"w-full"},ce(h.a,{label:"My Clinic",name:"my_clinic",className:"w-full md:w-full px-2",labelStyle:"mrf-blue"})),ce("div",{id:"divMyPrescriber",className:"w-full"}
1,ce(h.a,{label:"My Prescriber",name:"my_prescription",className:"w-full md:w-full px-2",labelStyle:"mrf-blue"})),ce("div",{id:"divMyCity",className:"w-full"},ce(h.a,{label:"City",name:"my_city",className:"w-full md:w-full px-2",labelStyle:"mrf-blue"})),ce("div",{id:"divMyProvince",className:"w-full"},ce(h.a,{label:"Province",name:"my_province",className:"w-full md:w-full px-2",labelStyle:"mrf-blue"}))),ce("div",{className:"w-full mt-4 flex flex-wrap"},ce("div",{className:"w-2/30"}),ce("div",{className:"w-28/30"},ce("p",{className:"mrf-heading2",style:{color:"RGB(255,0,0)",background:"lightgray"}},ce("strong",null,"Disclaimer"),": By registering, you confirm that you have received a valid Prescription to Get Active (RxTGA) from a licensed healthcare professional. Providing false information may result in removal from the program.")))))}var me=a("0iCA"),fe=o.a.createElement,de=Object(u.g)({mapPropsToValues:function(){return{first_name:"",last_name:"",email:"",phone:"",postal_code:"",city_town:"",hear_rxtga:"",password_1:"",password_2:"",with_prescription:!0,my_clinic:"",my_prescription:"",my_city:"",my_province:"",prescription:"",is_google_user:!1,is_google_link:!1,check_1:!1,google_account:"",google_data:""}},validate:m.a,validateOnChange:!1,validateOnBlur:!1,enableReinitialize:!0,handleSubmit:function(e,t){t.setSubmitting(!0)}})((function(e){var t=e.setSubmitting,a=(e.isValidating,e.isSubmitting),o=e.errors,l=(e.touched,e.values),n=(Object(c.a)(e,["setSubmitting","isValidating","isSubmitting","errors","touched","values"]),Object($.a)()),i=Object(s.a)(n,3),m=i[0],f=(i[1],i[2]),d=Object(G.useRouter)(),h=Object(M.b)(),g=Object(r.useState)(!1),b=g[0],v=g[1],y=Object(r.useState)(!1),w=y[0],x=y[1],N=Object(r.useState)(!1),O=N[0],S=N[1],_=Object(r.useState)(!1),k=_[0],E=_[1],C=Object(r.useState)(""),P=C[0],R=C[1],A=Object(r.useState)(""),T=A[0],F=A[1],V=Object(r.useState)(""),Q=V[0],q=V[1],Y=Object(r.useState)("First Name: "),K=Y[0],J=Y[1],Z=Object(r.useState)("Last Name:"),te=Z[0],ae=Z[1],re=Object($.a)(),le=Object(s.a)(re,3),ne=le[0],ie=le[1],se=le[2],ce=(Object(j.a)(),Object(r.useRef)()),de=function(){return ce.current.scrollIntoView({behavior:"smooth",block:"start"})},he=null,ge=he=document.getElementById("google_client");if(void 0!=he&&null!=he)try{document.body.removeChild(he),he=null}catch(Oe){}function be(e){t(!1);var a=document.getElementById(e);if(null!=a&&void 0!=a){var r=oe.a.findDOMNode(a);null!=r&&void 0!=r&&r.scrollIntoView({behavior:"smooth",block:"end"})}}function ve(){""!=l.email.trim()?h.query({query:I.b,variables:{byEmail:l.email}}).then((function(e){if(e.data&&e.data.existUser)var r=B.a.warn(e.data.existUser+" exist.",{onClick:function(){r()},hideAfter:0}).hide;else!function(){if(l.hear_rxtga){if(l.hear_rxtga.toLowerCase().includes("other,"))if(""==l.hear_rxtga.toLowerCase().replace("other,","").trimStart().trimEnd())return void be("otherSpecify")}if(""==l.first_name.trim())return void be("first_name");if(""==l.last_name.trim())return void be("last_name");if(""==l.postal_code.trim())return void be("postal_code");if(""==l.password_1.trim())return void be("password_1");if(""==l.password_2.trim())return void be("password_2");if(l.password_1.trim()!=l.password_2.trim())return void be("password_2");if(""==l.city_town.trim())return void be("city_town");if(0==l.with_prescription){var e=document.getElementById("divMyPrescriber");if(""==l.my_prescription.trim()){if(null!=e&&void 0!=e)return void be("divMyPrescriber");l.with_prescription=!0,l.prescription="-1"}if(null!=e&&void 0!=e&&""==l.my_clinic.trim())return void be("divMyClinic");if(null!=e&&void 0!=e&&""==l.my_city.trim())return void be("divMyCity");if(null!=e&&void 0!=e&&""==l.my_province.trim())return void be("divMyProvince")}if(!k)return t(!1),void B.a.warn('Please check "I\'m not a robot."');l.with_prescription&&""==l.prescription&&(l.prescription=Q);h.mutate({variables:{submitValues:l},mutation:z.m}).then((function(e){var a=e.data;if(a&&a.createPatient.ok)t(!1),Object(ee.e)("show_msg","true"),xe();else if(a&&!a.createPatient.ok){var r;t(!1);var o=null!==(r=a.createPatient.message)&&void 0!==r?r:"Oops! something went wrong! please contact us if this continues to happen",l=B.a.error(o,{onClick:function(){l()},hideAfter:0}).hide;a.createPatient.message&&de()}})).catch((function(e){if(!Ne(o)&&a){var r=B.a.error("Network error, please try again.",{onClick:function(){r()},hideAfter:0}).hide;de(),t(!1)}}))}()})).catch((function(e){console.log(e);var a=B.a.error("Network error, please try again.",{onClick:function(){a()},hideAfter:0}).hide;de(),t(!1)})):be("email")}void 0!=he&&null!=he||((ge=document.createElement("script")).src="https://apis.google.com/js/client.js",ge.setAttribute("id","google_client"),document.body.appendChild(ge));var ye=Object(M.d)(z.p,{variables:{email:l.email,password:l.password_1},partialRefetch:!1}),we=Object(s.a)(ye,2),xe=we[0],je=we[1];Object(r.useEffect)((function(){var e,t;null!==je&&void 0!==je&&null!==(e=je.data)&&void 0!==e&&null!==(t=e.tokenAuth)&&void 0!==t&&t.token&&(document.cookie=L.a.seri
1alize("token",je.data.tokenAuth.token,{maxAge:2592e3}),Object(ee.e)("with_prescription",je.data.tokenAuth.user.data.with_prescription),d.push({pathname:"/individuals/profile"}))}),[je]);var Ne=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0};return Object(r.useEffect)((function(){a&&ve()}),[a]),Object(r.useEffect)((function(){b?(J("First Name: "+P),ae("Last Name: "+T)):(J("First Name: "),ae("Last Name: "))}),[b]),Object(r.useEffect)((function(){l.check_1=w}),[w]),fe(u.c,{className:"flex flex-wrap items-start relative"},fe("div",{ref:ce,className:"absolute topOfForm"}),fe("div",{className:"w-full px-6 text-gray-600 text-center"},fe("p",{className:"mrf-paragraph"},"Please complete the following form so that we may learn more about you and can tailor our program to meet the needs of all our participants. Once you have completed the form, and click 'submit', you will gain access to all the opportunities ",fe("strong",{className:"mrf-blue italic"},"Prescription to Get Active")," has to get you started and keep you active!"),fe("p",{className:"mrf-paragraph"},"For further information, contact the ",fe("strong",{className:"mrf-blue italic"},"Prescription to Get Active")," (RxTGA) Executive Director at 1 (866) 212-7552 or send an email to"," ",fe("a",{className:"text-green-default hover:underline mrf-paragraph",href:"mailto:[email protected]"},"[email protected]"),".")),fe("div",{className:"w-full",style:{backgroundColor:"#D0CECE"}},fe("p",{className:"mt-4 ml-2 mrf-heading0"},"COMPLETE THIS FORM ",fe("strong",null,fe("u",null,"ONLY"))," IF YOU HAVE RECEIVED A PRESCRIPTION Don\u2019t have a prescription? ",fe(W.a,{href:"/individuals/findprescriber"},fe("a",null,fe("u",null,"Click here to Find a Prescriber"))))),fe(D,{script:ge,values:l,setFirstNameConfirm:R,setLastNameConfirm:F}),fe(p.a,{title:"Prescription",className:"w-full"},fe("div",{className:"w-full"},fe(ue,{setPrescription:function(e){q(e),""!=e?(l.prescription=e,l.with_prescription=!0):(l.prescription="",l.with_prescription=!1)},setEmailPrescription:function(e){l.my_prescription=e},setEmailCity:function(e){l.my_city=e},setEmailProvince:function(e){l.my_province=e}}))),fe(p.a,{title:"Consent and Signature",className:"w-full"},fe("div",{className:"w-full mt-2"},fe("p",{className:"mrf-blue ml-6 mr-10 mrf-paragraph"},"Your anonymous input provides important information to help improve the quality of our program and services you receive. Your responses to registering and questions asked are completely ",fe("strong",null,"confidential"),", and your name will not be attached to the responses you give.")),fe("div",{className:"w-full mt-2 mb-1 px-2 flex justify-center items-center",style:{zoom:1.5}},fe(H.a,{id:"privacyPolicy3",name:"privacyPolicy3",label:"By checking this box, I agree to the collection of my personal information to help inform and improve RxTGA\u2019s services and, to receive information about the program. ",value:w,onChange:function(){x(!w)}})),fe("div",{className:"w-full mb-1 px-2 flex float-left",style:{zoom:1.5}},fe(H.a,{id:"privacyPolicy2",name:"privacyConfirm",label:"By checking this box, I confirm that I have read and understand the RxTGA",underlabel:"Terms of Service",value:O,REQUIRED:"true",onChange:f}),m&&fe(pe,{modalOpen:m,toggle:f,setPrivacyPolicy:S})),fe("div",{className:"w-full mb-1 px-2 flex float-left",style:{zoom:1.5}},fe(H.a,{id:"privacyPolicy",name:"privacyPolicy",label:"By checking this box, I agree that my electronic acceptance is the legal equivalent of my manual signature on this form.",value:b,REQUIRED:"true",onChange:function(){v(!b)}})),fe("div",{className:"w-full ml-2 px-4"},fe("p",{className:"w-full ml-12 mrf-paragraph"},K," "),fe("p",{className:"w-full ml-12 mrf-paragraph"},te," "))),fe("div",{className:"w-full flex p4 mb-4"},fe("div",{id:"divReCAPTCHA",className:"w-1/2 flex mt-4 mb-4"},fe(me.a,{sitekey:"6LcqysYeAAAAAOyFUr2mQ_ydLMSII5ddAxQEKB4H",onChange:function(e){E(!0)}})),fe("div",{className:"w-1/2 flex mt-4 mb-4 justify-center"},fe("button",{type:"submit",className:"button-blue-fill mrf-heading-larger mr-4",disabled:!(1==b&&1==O)},"SUBMIT"),fe("div",{className:"mrf-blue mrf-bold mrf-title cursor-pointer mt-6",onClick:function(){ie(!0)}},fe("span",{style:{textDecoration:"underline dashed rgb(0, 105, 179)",textUnderlineOffset:"2px"}},"Did My Registration Work?")))),fe(U.a,{isShowing:ne},fe(X,{isShowing:ne,toggle:se})))}));function pe(e){var t=e.modalOpen,a=e.toggle,o=e.setPrivacyPolicy,l=Object(r.useState)(!1),n=(l[0],l[1]),i=Object(r.useRef)();Object(r.useEffect)((function(){t?(n(!0),o(!0)):n(!1)}),[t]),Object(Q.a)(),Object(Y.a)(i,(function(){a()}));return fe(U.a,{isShowing:t},fe("div",{ref:i,className:"signin w-11/12 sm:w-8/12 md:w-1/2 lg:w-2/3 p-4 rounded bg-white shadow-lg flex flex-col m-auto overflow-hidden list-container"},fe("header",{className:"border-b border-gray-lighter"},fe("h3",{className:"text-green-default"},"Terms of Service")),fe("div",{className:"border-b border-gray-ligher mb-4 overflow-y-auto w-full p-4"},Z.a.paragraphs.map((function(e){return fe("p",null,e)})),fe("ol",{className:"alpha-list ml-8"},Z.a.list.map((function(e){return fe("li",null,fe("p",null,e))})))),fe("footer",{className:"flex justify-end min-height"},fe("button",{className:"button-green",onClick:function(){o(!1),a()}},"Disagree"),fe("button",{className:"mr-4 button-green-fill",onClick:function(){o(!0),a()}},"Agree"))),fe("style",null,"\n .min-height {\n min-height: 50px;\n }\n\n .list-container {\n height: 75%;\n }\n "))}var he=a("H1WH"),ge=(a("gQrC"),o.a.createElement);t.default=Object(i.a)((function(){var e=function(){dataLayer.push(arguments)};return window.dataLayer=window.dataLayer||[],e("js",new Date),e("config","G-LRTDQQHVKD"),ge(o.a.Fragment,null,ge(n.a,null,ge("title",null,"RxTGA - register"),he.isTablet&&ge("meta",{name:"viewport",content:"initial-scale=0.7, width=device-width"}),he.isMobileOnly&&ge("meta",{name:"viewport",content:"initial-scale=0.5, width=device-width"})),ge("div",{className:"w-full"},ge("div",{className:"w-2/3"},ge("main",{className:"container mx-auto px-4 pt-6",style:{fontSize:"1.0rem"}},ge("div",{className:"left-arrow"}),ge(W.a,{href:"/"},ge("a",{className:"-ml-1"}
1,ge("strong",null,"Home")))))),ge("div",{className:"w-full mt-4",style:{backgroundColor:"#0069B3",height:"49px",lineHeight:"2.4"}},ge("p",{className:"ml-2 mrf-heading0"},ge("strong",{style:{color:"#ffffff"}},"REGISTER"))),ge(de,null))}))},ECwf:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/individuals/register",function(){return a("Due7")}])},GTTd:function(e,t,a){(function(r){function o(){var e;try{e=t.storage.debug}catch(a){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=a("bRoh")).log=function(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var a=this.useColors;if(e[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+e[0]+(a?"%c ":" ")+"+"+t.humanize(this.diff),!a)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,l=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(l=o))})),e.splice(l,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(a){}},t.load=o,t.useColors=function(){if("undefined"!==typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(o())}).call(this,a("8oxB"))},HQGO:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var r=a("wx14"),o=a("q1tI"),l=a.n(o),n=a("pQ8y"),i=a("dQSq"),s=l.a.createElement;function c(e){var t=Object(r.a)({},e),a=Object(i.a)(),l=Object(o.useState)(!1),c=l[0],u=l[1];return Object(o.useEffect)((function(){u(t.loading)}),[t.loading]),s(n.a,{classNames:"opacity",timeout:300,in:c},s("div",{className:"relative w-full flex justify-center items-center h-32 opacity-transition"},s("div",{className:"loader absolute text-".concat(a,"-default pointer-events-none")})))}},QXP7:function(e,t){var a=1e3,r=6e4,o=60*r,l=24*o,n=365.25*l;function i(e,t,a){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+a:Math.ceil(e/t)+" "+a+"s"}e.exports=function(e,t){t=t||{};var s,c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var i=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*n;case"days":case"day":case"d":return i*l;case"hours":case"hour":case"hrs":case"hr":case"h":return i*o;case"minutes":case"minute":case"mins":case"min":case"m":return i*r;case"seconds":case"second":case"secs":case"sec":case"s":return i*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===c&&!1===isNaN(e))return t.long?i(s=e,l,"day")||i(s,o,"hour")||i(s,r,"minute")||i(s,a,"second")||s+" ms":function(e){if(e>=l)return Math.round(e/l)+"d";if(e>=o)return Math.round(e/o)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=a)return Math.round(e/a)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},bRoh:function(e,t,a){var r;function o(e){function a(){if(a.enabled){var e=a,o=+new Date,l=o-(r||o);e.diff=l,e.prev=r,e.curr=o,r=o;for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];n[0]=t.coerce(n[0]),"string"!==typeof n[0]&&n.unshift("%O");var s=0;
1n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(a,r){if("%%"===a)return a;s++;var o=t.formatters[r];if("function"===typeof o){var l=n[s];a=o.call(e,l),n.splice(s,1),s--}return a})),t.formatArgs.call(e,n);var c=a.log||t.log||console.log.bind(console);c.apply(e,n)}}return a.namespace=e,a.enabled=t.enabled(e),a.useColors=t.useColors(),a.color=function(e){var a,r=0;for(a in e)r=(r<<5)-r+e.charCodeAt(a),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"===typeof t.init&&t.init(a),a}(t=e.exports=o.debug=o.default=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var a=("string"===typeof e?e:"").split(/[\s,]+/),r=a.length,o=0;o<r;o++)a[o]&&("-"===(e=a[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var a,r;for(a=0,r=t.skips.length;a<r;a++)if(t.skips[a].test(e))return!1;for(a=0,r=t.names.length;a<r;a++)if(t.names[a].test(e))return!0;return!1},t.humanize=a("QXP7"),t.names=[],t.skips=[],t.formatters={}},gQrC:function(e,t,a){var r,o,l;o=[t,a("q1tI"),a("8ujH"),a("17x9")],void 0===(l="function"===typeof(r=function(e,t,a,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(t),l=i(a),n=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}();function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(e){c(this,t);var a=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={},a}return f(t,e),u(t,[{key:"handleSubmit",value:function(e){var t=this;e.preventDefault();var a=this.props,r=a.fields,o=(a.action+"&"+r.map((function(e){return e.name+"="+encodeURIComponent(t.state[e.name])})).join("&")).replace("/post?","/post-json?"),l=/^([\w_\.\-\+])+\@([\w\-]+\.)+([\w]{2,10})+$/,n=this.state.EMAIL;l.test(n)?this.sendData(o):this.setState({status:"empty"})}},{key:"sendData",value:function(e){var t=this;this.setState({status:"sending"}),(0,l.default)(e,{param:"c"},(function(e,a){a.msg.includes("already subscribed")?t.setState({status:"duplicate"}):e||"success"!==a.result?t.setState({status:"error"}):t.setState({status:"success"})}))}},{key:"render",value:function(){var e=this,t=this.props,a=t.messages,r=t.fields,l=t.styles,n=t.className,i=this.state.status;return o.default.createElement("form",{onSubmit:this.handleSubmit.bind(this),className:n},r.map((function(t){return o.default.createElement("input",{key:Math.random(),onBlur:function(a){var r=a.target;return e.setState(s({},t.name,r.value))},placeholder:t.placeholder,name:t.name,type:t.type,defaultValue:e.state[t.name]})})),o.default.createElement("button",{disabled:"sending"===i||"success"===i,type:"submit"},a.button),o.default.createElement("div",{className:"msg-alert"},"sending"===i&&o.default.createElement("p",{style:l.sendingMsg},a.sending),"success"===i&&o.default.createElement("p",{style:l.successMsg},a.success),"duplicate"===i&&o.default.createElement("p",{style:l.duplicateMsg},a.duplicate),"empty"===i&&o.default.createElement("p",{style:l.errorMsg},a.empty),"error"===i&&o.default.createElement("p",{style:l.errorMsg},a.error)))}}]),t}(o.default.Component);
1d.defaultProps={messages:{sending:"Sending...",success:"Thank you for subscribing!",error:"An unexpected internal error has occurred.",empty:"You must write an e-mail.",duplicate:"Too many subscribe attempts for this email address",button:"Subscribe!"},styles:{sendingMsg:{color:"#0652DD"},successMsg:{color:"#009432"},duplicateMsg:{color:"#EE5A24"},errorMsg:{color:"#ED4C67"}}},d.propTypes={action:n.default.string,messages:n.default.object,fields:n.default.array,styles:n.default.object,className:n.default.string},e.default=d})?r.apply(t,o):r)||(e.exports=l)},nAsW:function(e,t,a){"use strict";var r=a("q1tI"),o=a.n(r),l=(a("KDsd"),a("dQSq")),n=(a("KYPV"),o.a.createElement);t.a=function(e){var t=e.value,a=e.onChange,r=e.id,o=e.label,i=e.underlabel,s=e.REQUIRED,c=e.className,u=e.disabled,m=e.name,f=e.rightFlag,d=Object(l.a)();return f?n("label",{htmlFor:r,className:"select-none font-normal relative mb-2 mrf-paragraph2 "+(t?" checked-".concat(d," scale "):void 0)+" ".concat(c," ")+(u?" checkboxr-disabled":" checkboxr hover:text-".concat(d,"-default cursor-pointer"))},o,"\xa0",n("u",null,i),n("input",{name:m,id:r,type:"checkbox",value:t,checked:t,onChange:a,disabled:u,className:"hidden"})):n("div",{className:"w-full flex flex-wrap"},void 0!=s&&n("div",{className:"w-full flex"},n("div",{className:"w-1/30"}),n("p",{className:"w-28/30 ml-4 mrf-paragraph3"},"REQUIRED")),n("div",{className:"w-1/30"},n("div",{className:"w=full -mt-1 "},n("label",{htmlFor:r,className:"select-none font-normal relative pl-8 mb-2 mrf-paragraph2 "+(t?" checked-".concat(d," scale "):void 0)+" ".concat(c," ")+(u?" checkbox-disabled":" checkbox hover:text-".concat(d,"-default cursor-pointer"))},n("input",{name:m,id:r,type:"checkbox",value:t,checked:t,onChange:a,disabled:u,className:"hidden"})))),"Terms of Service"==i&&n("div",{className:"w-28/30"},n("p",{className:"ml-4 mrf-paragraph2"},o,"\xa0",n("a",{className:"mrf-paragraph2 mrf-blue mrf-bold",href:"#",onClick:a},i))),"Terms of Service"!=i&&n("div",{className:"w-28/30"},n("p",{className:"ml-4 mrf-paragraph2"},o,"\xa0",i)))}},rePB:function(e,t,a){"use strict";function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}a.d(t,"a",(function(){return r}))}},[["ECwf",0,2,8,1,3,4,5,6,7,9,10,11,18,22]]]);
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.