(function() { if (typeof jQuery !== "undefined") { $ = jQuery; } var __rtconfig = {"siteCode":"ctt","siteID":0,"area":0,"useHashNav":true,"weightUnitLabel":"lbs","heightUnitLabel":"in","studyAreas":[{"StudyTypeID":"14","Title":"Cardiology","SortOrder":"0"},{"StudyTypeID":"7","Title":"Diabetes","SortOrder":"3"},{"StudyTypeID":"15","Title":"Gastroenterology","SortOrder":"6"},{"StudyTypeID":"20","Title":"Genitourinary","SortOrder":"7"},{"StudyTypeID":"10","Title":"Healthy Volunteers","SortOrder":"8"},{"StudyTypeID":"24","Title":"Liver Disease (Fatty Liver)","SortOrder":"10"},{"StudyTypeID":"25","Title":"Memory Loss\/Alzheimer's Disease","SortOrder":"11"},{"StudyTypeID":"2","Title":"Mental\/Behavioral Health","SortOrder":"13"},{"StudyTypeID":"11","Title":"Ophthalmology","SortOrder":"17"},{"StudyTypeID":"1","Title":"Pediatrics","SortOrder":"19"},{"StudyTypeID":"18","Title":"Rheumatology","SortOrder":"22"},{"StudyTypeID":"23","Title":"Vaccines","SortOrder":"23"},{"StudyTypeID":"5","Title":"Women's Health","SortOrder":"25"}],"countries":[{"Code":"AF","Name":"Afghanistan"},{"Code":"AL","Name":"Albania"},{"Code":"DZ","Name":"Algeria"},{"Code":"AS","Name":"American Samoa"},{"Code":"AD","Name":"Andorra"},{"Code":"AO","Name":"Angola"},{"Code":"AI","Name":"Anguilla"},{"Code":"AQ","Name":"Antarctica"},{"Code":"AG","Name":"Antigua and Barbuda"},{"Code":"AR","Name":"Argentina"},{"Code":"AM","Name":"Armenia"},{"Code":"AW","Name":"Aruba"},{"Code":"AU","Name":"Australia"},{"Code":"AT","Name":"Austria"},{"Code":"AZ","Name":"Azerbaijan"},{"Code":"BS","Name":"Bahamas"},{"Code":"BH","Name":"Bahrain"},{"Code":"BD","Name":"Bangladesh"},{"Code":"BB","Name":"Barbados"},{"Code":"BY","Name":"Belarus"},{"Code":"BE","Name":"Belgium"},{"Code":"BZ","Name":"Belize"},{"Code":"BJ","Name":"Benin"},{"Code":"BM","Name":"Bermuda"},{"Code":"BT","Name":"Bhutan"},{"Code":"BO","Name":"Bolivia"},{"Code":"BA","Name":"Bosnia and Herzegovina"},{"Code":"BW","Name":"Botswana"},{"Code":"BV","Name":"Bouvet Island"},{"Code":"BR","Name":"Brazil"},{"Code":"IO","Name":"British Indian Ocean Territory"},{"Code":"BN","Name":"Brunei Darrussalam"},{"Code":"BG","Name":"Bulgaria"},{"Code":"BF","Name":"Burkina Faso"},{"Code":"BI","Name":"Burundi"},{"Code":"KH","Name":"Cambodia"},{"Code":"CM","Name":"Cameroon"},{"Code":"CA","Name":"Canada"},{"Code":"CV","Name":"Cape Verde"},{"Code":"KY","Name":"Cayman Islands"},{"Code":"CF","Name":"Central African Republic"},{"Code":"TD","Name":"Chad"},{"Code":"CL","Name":"Chile"},{"Code":"CN","Name":"China"},{"Code":"CS","Name":"Christmas Island"},{"Code":"CC","Name":"Cocos (keeling) Islands"},{"Code":"CO","Name":"Colombia"},{"Code":"KM","Name":"Comoros"},{"Code":"CD","Name":"Congo, Democratic People's Republic"},{"Code":"CG","Name":"Congo, Republic of"},{"Code":"CK","Name":"Cook Islands"},{"Code":"CR","Name":"Costa Rica"},{"Code":"CI","Name":"Cote d'Ivoire"},{"Code":"HR","Name":"Croatia\/Hrvatska"},{"Code":"CU","Name":"Cuba"},{"Code":"CY","Name":"Cyprus Island"},{"Code":"CZ","Name":"Czech Republic"},{"Code":"DK","Name":"Denmark"},{"Code":"DJ","Name":"Djibouti"},{"Code":"DM","Name":"Dominica"},{"Code":"DO","Name":"Dominican Republic"},{"Code":"TP","Name":"East Timor"},{"Code":"EC","Name":"Ecuador"},{"Code":"EG","Name":"Egypt"},{"Code":"SV","Name":"El Salvador"},{"Code":"GQ","Name":"Equatorial Guinea"},{"Code":"ER","Name":"Eritrea"},{"Code":"EE","Name":"Estonia"},{"Code":"ET","Name":"Ethiopia"},{"Code":"FK","Name":"Falkland Islands (Malvina)"},{"Code":"FO","Name":"Faroe Islands"},{"Code":"FJ","Name":"Fiji"},{"Code":"FI","Name":"Finland"},{"Code":"FR","Name":"France"},{"Code":"GF","Name":"French Guiana"},{"Code":"PF","Name":"French Polynesia"},{"Code":"TF","Name":"French Southern Territories"},{"Code":"GA","Name":"Gabon"},{"Code":"GM","Name":"Gambia"},{"Code":"GE","Name":"Georgia"},{"Code":"DE","Name":"Germany"},{"Code":"GH","Name":"Ghana"},{"Code":"GI","Name":"Gibraltar"},{"Code":"GR","Name":"Greece"},{"Code":"GL","Name":"Greenland"},{"Code":"GD","Name":"Grenada"},{"Code":"GP","Name":"Guadeloupe"},{"Code":"GU","Name":"Guam"},{"Code":"GT","Name":"Guatemala"},{"Code":"GG","Name":"Guernsey"},{"Code":"GN","Name":"Guinea"},{"Code":"GW","Name":"Guinea-Bissau"},{"Code":"GY","Name":"Guyana"},{"Code":"HT","Name":"Haiti"},{"Code":"HM","Name":"Heard and McDonald Islands"},{"Code":"VA","Name":"Holy See (City Vatican State)"},{"Code":"HN","Name":"Honduras"},{"Code":"HK","Name":"Hong Kong"},{"Code":"HU","Name":"Hungary"},{"Code":"IS","Name":"Iceland"},{"Code":"IN","Name":"India"},{"Code":"ID","Name":"Indonesia"},{"Code":"IR","Name":"Iran (Islamic Republic of)"},{"Code":"IQ","Name":"Iraq"},{"Code":"IE","Name":"Ireland"},{"Code":"IM","Name":"Isle of Man"},{"Code":"IL","Name":"Israel"},{"Code":"IT","Name":"Italy"},{"Code":"JM","Name":"Jamaica"},{"Code":"JP","Name":"Japan"},{"Code":"JE","Name":"Jersey"},{"Code":"JO","Name":"Jordan"},{"Code":"KZ","Name":"Kazakhstan"},{"Code":"KE","Name":"Kenya"},{"Code":"KI","Name":"Kiribati"},{"Code":"KP","Name":"Korea, Democratic People's Republic"},{"Code":"KR","Name":"Korea, Republic of"},{"Code":"KW","Name":"Kuwait"},{"Code":"KG","Name":"Kyrgyzstan"},{"Code":"LA","Name":"Lao People's Democratic Republic"},{"Code":"LV","Name":"Latvia"},{"Code":"LB","Name":"Lebanon"},{"Code":"LS","Name":"Lesotho"},{"Code":"LR","Name":"Liberia"},{"Code":"LY","Name":"Libyan Arab Jamahiriya"},{"Code":"LI","Name":"Liechtenstein"},{"Code":"LT","Name":"Lithuania"},{"Code":"LU","Name":"Luxembourgh"},{"Code":"MO","Name":"Macau"},{"Code":"MK","Name":"Macedonia"},{"Code":"MG","Name":"Madagascar"},{"Code":"MW","Name":"Malawi"},{"Code":"MY","Name":"Malaysia"},{"Code":"Mv","Name":"Maldives"},{"Code":"ML","Name":"Mali"},{"Code":"MT","Name":"Malta"},{"Code":"MH","Name":"Marshall Islands"},{"Code":"MQ","Name":"Martinique"},{"Code":"MR","Name":"Mauritania"},{"Code":"MU","Name":"Mauritius"},{"Code":"YT","Name":"Mayotte"},{"Code":"MX","Name":"Mexico"},{"Code":"FM","Name":"Micronesia, Federal State of"},{"Code":"MD","Name":"Moldova, Republic of"},{"Code":"MC","Name":"Monaco"},{"Code":"MN","Name":"Mongolia"},{"Code":"MS","Name":"Montserrat"},{"Code":"MA","Name":"Morocco"},{"Code":"MZ","Name":"Mozambique"},{"Code":"MM","Name":"Myanmar"},{"Code":"NA","Name":"Namibia"},{"Code":"NR","Name":"Nauru"},{"Code":"NP","Name":"Nepal"},{"Code":"NL","Name":"Netherlands"},{"Code":"AN","Name":"Netherlands Antilles"},{"Code":"NC","Name":"New Caledonia"},{"Code":"NZ","Name":"New Zealand"},{"Code":"NI","Name":"Nicaragua"},{"Code":"NE","Name":"Niger"},{"Code":"NG","Name":"Nigeria"},{"Code":"NU","Name":"Niue"},{"Code":"NF","Name":"Norfolk Island"},{"Code":"MP","Name":"Northern Mariana Islands"},{"Code":"NO","Name":"Norway"},{"Code":"OM","Name":"Oman"},{"Code":"PK","Name":"Pakistan"},{"Code":"PW","Name":"Palau"},{"Code":"PS","Name":"Palestinian Territories"},{"Code":"PA","Name":"Panama"},{"Code":"PG","Name":"Papua New Guinea"},{"Code":"PY","Name":"Paraguay"},{"Code":"PE","Name":"Peru"},{"Code":"PH","Name":"Phillipines"},{"Code":"PN","Name":"Pitcairn Island"},{"Code":"PL","Name":"Poland"},{"Code":"PT","Name":"Portugal"},{"Code":"PR","Name":"Puerto Rico"},{"Code":"QA","Name":"Qatar"},{"Code":"RE","Name":"Reunion Island"},{"Code":"RO","Name":"Romania"},{"Code":"RU","Name":"Russian Federation"},{"Code":"RW","Name":"Rwanda"},{"Code":"KN","Name":"Saint Kitts and Nevis"},{"Code":"LC","Name":"Saint Lucia"},{"Code":"VC","Name":"Saint Vincent and the Grenadines"},{"Code":"SM","Name":"San Marino"},{"Code":"ST","Name":"Sao Tome and Principe"},{"Code":"SA","Name":"Saudi Arabia"},{"Code":"SN","Name":"Senegal"},{"Code":"SC","Name":"Seychelles"},{"Code":"SL","Name":"Sierra Leone"},{"Code":"SG","Name":"Singapore"},{"Code":"SK","Name":"Slovak Republic"},{"Code":"SI","Name":"Slovenia"},{"Code":"SB","Name":"Solomon Islands"},{"Code":"SO","Name":"Somalia"},{"Code":"ZA","Name":"South Africa"},{"Code":"GS","Name":"South Georgia"},{"Code":"ES","Name":"Spain"},{"Code":"LK","Name":"Sri Lanka"},{"Code":"SH","Name":"St. Helena"},{"Code":"PM","Name":"St. Pierre and Miquelon"},{"Code":"SD","Name":"Sudan"},{"Code":"SR","Name":"Suriname"},{"Code":"SJ","Name":"Svalbard and Jan Mayen Islands"},{"Code":"SZ","Name":"Swaziland"},{"Code":"SE","Name":"Sweden"},{"Code":"CH","Name":"Switzerland"},{"Code":"SY","Name":"Syrian Arab Republic"},{"Code":"TW","Name":"Taiwan"},{"Code":"TJ","Name":"Tajikistan"},{"Code":"TZ","Name":"Tanzania"},{"Code":"TH","Name":"Thailand"},{"Code":"TG","Name":"Togo"},{"Code":"TK","Name":"Tokelau"},{"Code":"TO","Name":"Tonga"},{"Code":"TT","Name":"Trinidad and Tobago"},{"Code":"TN","Name":"Tunisia"},{"Code":"TR","Name":"Turkey"},{"Code":"TM","Name":"Turkmenistan"},{"Code":"TC","Name":"Turks and Caicos Islands"},{"Code":"TV","Name":"Tuvalu"},{"Code":"UG","Name":"Uganda"},{"Code":"UA","Name":"Ukraine"},{"Code":"AE","Name":"United Arab Emirates"},{"Code":"GB","Name":"United Kingdom (GB)"},{"Code":"US","Name":"United States"},{"Code":"UY","Name":"Uruguay"},{"Code":"UM","Name":"US Minor Outlying Islands"},{"Code":"UZ","Name":"Uzbekistan"},{"Code":"VU","Name":"Vanuatu"},{"Code":"VE","Name":"Venezuela"},{"Code":"VN","Name":"Vietnam"},{"Code":"VG","Name":"Virgin Islands (British)"},{"Code":"VI","Name":"Virgin Islands (USA)"},{"Code":"WF","Name":"Wallis and Futuna Islands"},{"Code":"EH","Name":"Western Sahara"},{"Code":"WS","Name":"Western Samoa"},{"Code":"YE","Name":"Yemen"},{"Code":"YU","Name":"Yugoslavia"},{"Code":"ZM","Name":"Zambia"},{"Code":"ZW","Name":"Zimbabwe"}],"referrers":[{"ReferrerID":"4906","Referrer":"Ad on my mobile phone"},{"ReferrerID":"84","Referrer":"Billboard"},{"ReferrerID":"11","Referrer":"CTT Website"},{"ReferrerID":"95","Referrer":"E-Mail"},{"ReferrerID":"1285","Referrer":"Event"},{"ReferrerID":"29","Referrer":"Friend"},{"ReferrerID":"2437","Referrer":"News Story"},{"ReferrerID":"5052","Referrer":"Spotify"},{"ReferrerID":"5053","Referrer":"Tik Tok"},{"ReferrerID":"309","Referrer":"TV Commercial"}],"taxIdentifierLength":9,"taxIdentifierLabel":"SSN","ethicities":[{"EthnicityID":"0","Ethnicity":"--"},{"EthnicityID":"1","Ethnicity":"Hispanic or Latino"},{"EthnicityID":"2","Ethnicity":"Not Hispanic or Latino"}],"races":[{"RaceID":"10","Race":"---"},{"RaceID":"3","Race":"American Indian"},{"RaceID":"4","Race":"Asian"},{"RaceID":"2","Race":"Black"},{"RaceID":"5","Race":"Caucasian\/White"},{"RaceID":"8","Race":"Pacific Islander"},{"RaceID":"1","Race":"Unknown"}],"usStates":[{"State":"AK","StateFull":"Alaska"},{"State":"AL","StateFull":"Alabama"},{"State":"AR","StateFull":"Arkansas"},{"State":"AZ","StateFull":"Arizona"},{"State":"CA","StateFull":"California"},{"State":"CO","StateFull":"Colorado"},{"State":"CT","StateFull":"Connecticut"},{"State":"DC","StateFull":"District of Columbia"},{"State":"DE","StateFull":"Delware"},{"State":"FL","StateFull":"Florida"},{"State":"GA","StateFull":"Georgia"},{"State":"HI","StateFull":"Hawaii"},{"State":"IA","StateFull":"Iowa"},{"State":"ID","StateFull":"Idaho"},{"State":"IL","StateFull":"Illinois"},{"State":"IN","StateFull":"Indiana"},{"State":"KS","StateFull":"Kansas"},{"State":"KY","StateFull":"Kentucky"},{"State":"LA","StateFull":"Louisiana"},{"State":"MA","StateFull":"Massachusetts"},{"State":"MD","StateFull":"Maryland"},{"State":"ME","StateFull":"Maine"},{"State":"MI","StateFull":"Michigan"},{"State":"MN","StateFull":"Minnesota"},{"State":"MO","StateFull":"Missouri"},{"State":"MS","StateFull":"Mississippi"},{"State":"MT","StateFull":"Montana"},{"State":"NC","StateFull":"North Carolina"},{"State":"ND","StateFull":"North Dakota"},{"State":"NE","StateFull":"Nebraska"},{"State":"NH","StateFull":"New Hampshire"},{"State":"NJ","StateFull":"New Jersey"},{"State":"NM","StateFull":"New Mexico"},{"State":"NV","StateFull":"Nevada"},{"State":"NY","StateFull":"New York"},{"State":"OH","StateFull":"Ohio"},{"State":"OK","StateFull":"Oklahoma"},{"State":"OR","StateFull":"Oregon"},{"State":"PA","StateFull":"Pennsylvania"},{"State":"PR","StateFull":"Puerto Rico"},{"State":"RI","StateFull":"Rhode Island"},{"State":"SC","StateFull":"South Carolina"},{"State":"SD","StateFull":"South Dakota"},{"State":"TN","StateFull":"Tennessee"},{"State":"TX","StateFull":"Texas"},{"State":"UT","StateFull":"Utah"},{"State":"VA","StateFull":"Virginia"},{"State":"VI","StateFull":"Virgin Islands"},{"State":"VT","StateFull":"Vermont"},{"State":"WA","StateFull":"Washington"},{"State":"WI","StateFull":"Wisconsin"},{"State":"WV","StateFull":"West Virginia"},{"State":"WY","StateFull":"Wyoming"}],"eRelationships":[{"Relationship":"Daughter"},{"Relationship":"Friend"},{"Relationship":"Other Relative"},{"Relationship":"Parent"},{"Relationship":"Sibling"},{"Relationship":"Son"},{"Relationship":"Spouse"}],"optInSetting":"1","keywords":[{"StudyID":"1055","Keyword":"ADHD - Ages 4-12"},{"StudyID":"980","Keyword":"ADHD - Child"},{"StudyID":"990","Keyword":"Alzheimer's Disease"},{"StudyID":"1049","Keyword":"Binge Eating Research Study "},{"StudyID":"1010","Keyword":"Depression - Postpartum"},{"StudyID":"1072","Keyword":"Diabetes - Type 2 -  On Metformin or Diet and Exercise"},{"StudyID":"1030","Keyword":"Diabetes - Type 2 -  On Oral Medication"},{"StudyID":"1123","Keyword":"Diabetes - Type 2 - Fully Remote"},{"StudyID":"1052","Keyword":"Diabetes - Type 2 - Never on Insulin"},{"StudyID":"909","Keyword":"Diabetic Retinopathy"},{"StudyID":"974","Keyword":"Diverticulosis"},{"StudyID":"997","Keyword":"Endometriosis Research Study"},{"StudyID":"1051","Keyword":"Fatty Liver - NASH"},{"StudyID":"962","Keyword":"Fatty Liver - NASH"},{"StudyID":"958","Keyword":"Fatty Liver - NASH"},{"StudyID":"1087","Keyword":"Female Sexual Arousal Disorder"},{"StudyID":"1103","Keyword":"Flu Vaccine Research Study "},{"StudyID":"779","Keyword":"Free Screening - Fatty Liver Scan"},{"StudyID":"938","Keyword":"Free Screening - Healthy Aging"},{"StudyID":"195","Keyword":"Free Screening: Diabetes"},{"StudyID":"683","Keyword":"Free Screening: Memory Loss"},{"StudyID":"1079","Keyword":"Group B Strep Vaccine Study"},{"StudyID":"1109","Keyword":"Healthy Volunteers - One Visit Study"},{"StudyID":"248","Keyword":"Healthy Volunteers - Upcoming Studies"},{"StudyID":"1089","Keyword":"Healthy Volunteers Needed"},{"StudyID":"1110","Keyword":"Healthy Volunteers Prescreen"},{"StudyID":"1108","Keyword":"High Blood Pressure"},{"StudyID":"1119","Keyword":"Investigational COVID-19 Vaccine Booster Research Study"},{"StudyID":"1082","Keyword":"Mild to Moderate Lupus"},{"StudyID":"1066","Keyword":"Obsessive-Compulsive Disorder (OCD)"},{"StudyID":"1023","Keyword":"Psoriatic Arthritis"},{"StudyID":"1008","Keyword":"Psoriatic Arthritis"},{"StudyID":"1117","Keyword":"PTSD - Post Traumatic Stress Disorder "},{"StudyID":"1028","Keyword":"Rheumatoid Arthritis"},{"StudyID":"1100","Keyword":"Rheumatology- Overnight study"},{"StudyID":"983","Keyword":"Upcoming COVID-19 Studies"},{"StudyID":"1120","Keyword":"Upcoming Studies - Children 17 and under"},{"StudyID":"1074","Keyword":"Vaccine - COVID-19 - Overnight study"},{"StudyID":"1040","Keyword":"Vaccine - RSV"}],"systemURL":"https:\/\/realtime-host01.com\/ctt","apiBase":"https:\/\/realtime-host01.com\/ctt\/web\/v1","assetsURL":"https:\/\/realtime-host01.com\/ctt\/flyers\/","isInternational":null,"showCountry":null,"showZipCode":false,"defaultCountry":null,"marketingEmails":true,"companyName":"Clinical Trials of Texas, Inc.","companyPhone":"(210) 949-0122","showEveningContactPreference":true,"studyOptInClause":"By submitting this form you agree to receive email and text notifications about this and other enrolling studies. You can unsubscribe at any time. Msg&amp;Data rates may apply. Msg freq per account setup. T-mobile is not liable for delayed or undelivered messages. Text HELP for help, and STOP to unsubscribe. Clinical Trials of Texas, Inc. (210) 949-0122. Refer to Privacy Policy. https:\/\/saresearch.com\/privacy-policy\/","isOffsiteMassTexting":1,"detailsPageForm":true,"showInterviewQuestions":1,"thankYouURL":"https:\/\/saresearch.com\/application-confirmation\/","useMobileForm":true,"scheme":"https","scrollOffset":139,"strings":[{"ID":"403","Name":"form.error.email","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Please provide a valid email address.","Description":""},{"ID":"397","Name":"form.error.firstname","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"First Name is a required field.","Description":""},{"ID":"399","Name":"form.error.lastname","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Last Name is a required field.","Description":""},{"ID":"401","Name":"form.error.phone","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Telephone is a required field.","Description":""},{"ID":"363","Name":"form.label.country","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Country","Description":""},{"ID":"367","Name":"form.label.email","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"E-Mail","Description":""},{"ID":"357","Name":"form.label.firstname","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"First Name","Description":""},{"ID":"359","Name":"form.label.lastname","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Last Name","Description":""},{"ID":"361","Name":"form.label.phone","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Phone","Description":""},{"ID":"365","Name":"form.prompt.country","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Select Country","Description":""},{"ID":"353","Name":"webint.application","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Application","Description":""},{"ID":"347","Name":"webint.apply-for-current-study","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Application for Current Clinical Research Study","Description":""},{"ID":"343","Name":"webint.apply-for-study","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Apply Now","Description":""},{"ID":"345","Name":"webint.apply-for-this-study","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Apply for this Study Now","Description":""},{"ID":"405","Name":"webint.error.best-contact-time","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Please select at least one time range that is good for contacting you.","Description":""},{"ID":"407","Name":"webint.error.how-did-you-hear","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Please select How You Heard About Us.","Description":""},{"ID":"339","Name":"webint.heading","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Enrolling Clinical Research Studies","Description":""},{"ID":"355","Name":"webint.instruction_legal_name","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Please enter your Full Legal Name","Description":""},{"ID":"369","Name":"webint.label.best-contact-method","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Best Contact Method","Description":""},{"ID":"373","Name":"webint.label.best-contact-time","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Best Time to Reach You","Description":""},{"ID":"383","Name":"webint.label.how-did-you-hear","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"How Did You Hear About Us?","Description":""},{"ID":"391","Name":"webint.notice.confidential","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"All information provided is confidential and will not be given or sold to any other agency without prior consent.","Description":""},{"ID":"385","Name":"webint.option.choose-one","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Please Choose One","Description":""},{"ID":"379","Name":"webint.option.contact-afternoon","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Afternoon (1 - 5PM)","Description":""},{"ID":"381","Name":"webint.option.contact-evening","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Evening (After 5PM)","Description":""},{"ID":"377","Name":"webint.option.contact-lunch","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Lunchtime (11AM - 1PM)","Description":""},{"ID":"375","Name":"webint.option.contact-morning","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Morning (8 - 11AM)","Description":""},{"ID":"389","Name":"webint.option.receive-text-email","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"By submitting this form you agree to receive email and text notifications about this and other enrolling studies. You can unsubscribe at any time. Text message data rates may apply. Refer to Privacy Policy.","Description":""},{"ID":"371","Name":"webint.placeholder.best-contact-method","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"e.g. Email, SMS text, home phone, cell phone","Description":""},{"ID":"395","Name":"webint.powered-by","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"439","Value":"Powered By RealTime-CTMS Clinical Trial Management System","Description":""},{"ID":"387","Name":"webint.prompt.medical_conditions","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"List Any Medical Conditions & Types of Research Studies You'd Be Interested In","Description":""},{"ID":"351","Name":"webint.research-studies","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Research Studies","Description":""},{"ID":"413","Name":"webint.research-study","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"439","Value":"Research Study Test","Description":null},{"ID":"349","Name":"webint.research-study","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Research Study","Description":""},{"ID":"341","Name":"webint.study-details","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Study Details","Description":""},{"ID":"393","Name":"webint.submit-application","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Submit Application","Description":""},{"ID":"411","Name":"webint.success.call-to-action","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"If you have any questions, please feel free to call us at {{companyPhone}}","Description":""},{"ID":"409","Name":"webint.success.thank-you","Lang":"en","LangMinor":"","SiteID":"0","StudyID":"0","Value":"Thank you for sending your information to {{companyName}} to be considered for this research study. Your information will be added to our database and our study team will contact you by phone within 48 hours.","Description":""}],"searchEnabled":false,"advancedWebForm":true,"publishableApiKey":null,"advancedFields":{"ZipCode":{"Name":"ZipCode","Display":"0","Required":"0","Label":"ZIP Code","RelatedTable":""},"Gender":{"Name":"Gender","Display":"1","Required":"1","Label":"Gender","RelatedTable":""},"DOB":{"Name":"DOB","Display":"1","Required":"1","Label":"DOB","RelatedTable":""},"medicalhistory":{"Name":"medicalhistory","Display":"0","Required":"0","Label":"Medical Conditions","options":[{"Label":"Chronic Kidney Disease - Stage 5"},{"Label":"Diabetic Kidney Disease - Stage 5"},{"Label":"Schizophrenia"}]},"medications":{"Name":"medications","Display":"0","Required":"0","Label":"Medications & Treatments","options":[]},"socialhistory":{"Name":"socialhistory","Display":"0","Required":"0","Label":"Medical Social Items","options":[{"Label":"2b"},{"Label":"COVID BOOSTER Vaccine - Moderna"},{"Label":"COVID BOOSTER Vaccine - Pfizer"},{"Label":"COVID-19 Vaccine - Janssen (also called Johnson & Johnson)"},{"Label":"COVID-19 Vaccine - Moderna"},{"Label":"COVID-19 Vaccine - Pfizer"},{"Label":"Does Not Have Insurance"},{"Label":"Has Insurance"},{"Label":"Naive for Flu Shot"},{"Label":"Not Naive for Flu Shot"}]},"bestcontacttime":{"Name":"bestcontacttime","Display":"0","Required":"0","Label":"Best Time to Reach You","RelatedTable":""},"weight":{"Name":"weight","Display":"0","Required":"0","Label":"Weight","RelatedTable":"","extraLabel":"lbs"},"height":{"Name":"height","Display":"0","Required":"0","Label":"Height","RelatedTable":"","extraLabel":"in"},"Middle":{"Name":"Middle","Display":"0","Required":"0","Label":"Middle Initial","RelatedTable":""},"Address1":{"Name":"Address1","Display":"0","Required":"0","Label":"Address Line 1","RelatedTable":""},"Address2":{"Name":"Address2","Display":"0","Required":"0","Label":"Address Line 2","RelatedTable":""},"City":{"Name":"City","Display":"0","Required":"0","Label":"City","RelatedTable":""},"State":{"Name":"State","Display":"0","Required":"0","Label":"State","RelatedTable":""},"SSN":{"Name":"SSN","Display":"0","Required":"0","Label":"SSN","RelatedTable":""},"Race":{"Name":"Race","Display":"0","Required":"0","Label":"Race","RelatedTable":""},"Ethnicity":{"Name":"Ethnicity","Display":"0","Required":"0","Label":"Ethnicity","RelatedTable":""},"additionalcontact":{"Name":"additionalcontact","Display":"0","Required":"0","Label":"Additional Contact\nName \/ Relationship \/ Phone","RelatedTable":""},"additionalcomments":{"Name":"additionalcomments","Display":"0","Required":"0","Label":"Additional Comments","RelatedTable":""}},"PrivacyURL":"https:\/\/www.realtime-ctms.com\/privacy-policy\/","studyContactData":[]};!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=13)}([function(e,t,n){"use strict";function r(e,t){var n,r,o,i,a=x;for(i=arguments.length;i-- >2;)T.push(arguments[i]);for(t&&null!=t.children&&(T.length||T.push(t.children),delete t.children);T.length;)if((r=T.pop())&&void 0!==r.pop)for(i=r.length;i--;)T.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?a[a.length-1]+=r:a===x?a=[r]:a.push(r),n=o;var s=new j;return s.nodeName=e,s.children=a,s.attributes=null==t?void 0:t,s.key=null==t?void 0:t.key,void 0!==N.vnode&&N.vnode(s),s}function o(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){return r(e.nodeName,o(o({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function a(e){!e._dirty&&(e._dirty=!0)&&1==L.push(e)&&(N.debounceRendering||E)(s)}function s(){var e,t=L;for(L=[];e=t.pop();)e._dirty&&D(e)}function l(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&u(e,t.nodeName):n||e._componentConstructor===t.nodeName}function u(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function c(e){var t=o({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function p(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function f(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===F.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,h,a):e.removeEventListener(t,h,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var s=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function h(e){return this._listeners[e.type](N.event&&N.event(e)||e)}function g(){for(var e;e=B.pop();)N.afterMount&&N.afterMount(e),e.componentDidMount&&e.componentDidMount()}function y(e,t,n,r,o,i){R++||(M=null!=o&&void 0!==o.ownerSVGElement,V=null!=e&&!("__preactattr_"in e));var a=m(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--R||(V=!1,i||g()),a}function m(e,t,n,r,o){var i=e,a=M;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),b(e,!0))),i.__preactattr_=!0,i;var s=t.nodeName;if("function"==typeof s)return I(e,t,n,r);if(M="svg"===s||"foreignObject"!==s&&M,s=String(s),(!e||!u(e,s))&&(i=p(s,M),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),b(e,!0)}var l=i.firstChild,c=i.__preactattr_,d=t.children;if(null==c){c=i.__preactattr_={};for(var f=i.attributes,h=f.length;h--;)c[f[h].name]=f[h].value}return!V&&d&&1===d.length&&"string"==typeof d[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=d[0]&&(l.nodeValue=d[0]):(d&&d.length||null!=l)&&v(i,d,n,r,V||null!=c.dangerouslySetInnerHTML),w(i,t.attributes,c),M=a,i}function v(e,t,n,r,o){var i,a,s,u,c,p=e.childNodes,f=[],h={},g=0,y=0,v=p.length,S=0,w=t?t.length:0;if(0!==v)for(var P=0;P<v;P++){var A=p[P],_=A.__preactattr_,D=w&&_?A._component?A._component.__key:_.key:null;null!=D?(g++,h[D]=A):(_||(void 0!==A.splitText?!o||A.nodeValue.trim():o))&&(f[S++]=A)}if(0!==w)for(var P=0;P<w;P++){u=t[P],c=null;var D=u.key;if(null!=D)g&&void 0!==h[D]&&(c=h[D],h[D]=void 0,g--);else if(y<S)for(i=y;i<S;i++)if(void 0!==f[i]&&l(a=f[i],u,o)){c=a,f[i]=void 0,i===S-1&&S--,i===y&&y++;break}c=m(c,u,n,r),s=p[P],c&&c!==e&&c!==s&&(null==s?e.appendChild(c):c===s.nextSibling?d(s):e.insertBefore(c,s))}if(g)for(var P in h)void 0!==h[P]&&b(h[P],!1);for(;y<=S;)void 0!==(c=f[S--])&&b(c,!1)}function b(e,t){var n=e._component;n?C(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||d(e),S(e))}function S(e){for(e=e.lastChild;e;){var t=e.previousSibling;b(e,!0),e=t}}function w(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||f(e,r,n[r],n[r]=void 0,M);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||f(e,r,n[r],n[r]=t[r],M)}function P(e,t,n){var r,o=U.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),k.call(r,t,n)):(r=new k(t,n),r.constructor=e,r.render=A);o--;)if(U[o].constructor===e)return r.nextBase=U[o].nextBase,U.splice(o,1),r;return r}function A(e,t,n){return this.constructor(e,n)}function _(e,t,n,r,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===N.syncComponentUpdates&&e.base?a(e):D(e,1,o)),e.__ref&&e.__ref(e))}function D(e,t,n,r){if(!e._disable){var i,a,s,l=e.props,u=e.state,p=e.context,d=e.prevProps||l,f=e.prevState||u,h=e.prevContext||p,m=e.base,v=e.nextBase,S=m||v,w=e._component,A=!1,I=h;if(e.constructor.getDerivedStateFromProps&&(u=o(o({},u),e.constructor.getDerivedStateFromProps(l,u)),e.state=u),m&&(e.props=d,e.state=f,e.context=h,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,u,p)?A=!0:e.componentWillUpdate&&e.componentWillUpdate(l,u,p),e.props=l,e.state=u,e.context=p),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!A){i=e.render(l,u,p),e.getChildContext&&(p=o(o({},p),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(I=e.getSnapshotBeforeUpdate(d,f));var k,O,j=i&&i.nodeName;if("function"==typeof j){var T=c(i);a=w,a&&a.constructor===j&&T.key==a.__key?_(a,T,1,p,!1):(k=a,e._component=a=P(j,T,p),a.nextBase=a.nextBase||v,a._parentComponent=e,_(a,T,0,p,!1),D(a,1,n,!0)),O=a.base}else s=S,k=w,k&&(s=e._component=null),(S||1===t)&&(s&&(s._component=null),O=y(s,i,p,n||!m,S&&S.parentNode,!0));if(S&&O!==S&&a!==w){var x=S.parentNode;x&&O!==x&&(x.replaceChild(O,S),k||(S._component=null,b(S,!1)))}if(k&&C(k),e.base=O,O&&!r){for(var E=e,F=e;F=F._parentComponent;)(E=F).base=O;O._component=E,O._componentConstructor=E.constructor}}for(!m||n?B.unshift(e):A||(e.componentDidUpdate&&e.componentDidUpdate(d,f,I),N.afterUpdate&&N.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);R||r||g()}}function I(e,t,n,r){for(var o=e&&e._component,i=o,a=e,s=o&&e._componentConstructor===t.nodeName,l=s,u=c(t);o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;return o&&l&&(!r||o._component)?(_(o,u,3,n,r),e=o.base):(i&&!s&&(C(i),e=a=null),o=P(t.nodeName,u,n),e&&!o.nextBase&&(o.nextBase=e,a=null),_(o,u,1,n,r),e=o.base,a&&e!==a&&(a._component=null,b(a,!1))),e}function C(e){N.beforeUnmount&&N.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?C(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.nextBase=t,d(t),U.push(e),S(t)),e.__ref&&e.__ref(null)}function k(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function O(e,t,n){return y(n,e,{},!1,t,!1)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"h",function(){return r}),n.d(t,"createElement",function(){return r}),n.d(t,"cloneElement",function(){return i}),n.d(t,"Component",function(){return k}),n.d(t,"render",function(){return O}),n.d(t,"rerender",function(){return s}),n.d(t,"options",function(){return N});var j=function(){},N={},T=[],x=[],E="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,F=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,L=[],B=[],R=0,M=!1,V=!1,U=[];o(k.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=o(o({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),a(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),D(this,2)},render:function(){}});var q={h:r,createElement:r,cloneElement:i,Component:k,render:O,rerender:s,options:N};t.default=q},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setCaretPos=t.scrollTo=t.noop=t.isMobile=t.handleLink=t.getStudyAsset=t.getSharedAsset=void 0;var r=n(4),o=function(e,t){return t.scheme+"://realtime-host01.com/_assets/"+e.trim()},i=function(e,t,n){return n.assetsURL.trim()+t+"/"+e.trim()},a=function(){return function(e){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))}(navigator.userAgent||navigator.vendor||window.opera)},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if(jQuery){"#!"===t.slice(0,2)&&(t=t.slice(2));var o=jQuery(e).closest(".rt-container");o.animate({opacity:0},"slow",function(){if(n(),__rtconfig.useHashNav)(0,r.route)(t);else{history.pushState({},"",t);var e=void 0;"function"==typeof Event?e=new Event("historyUpdated"):(e=document.createEvent("Event"),e.initEvent("historyUpdated",!0,!0)),document.dispatchEvent(e)}o.css({opacity:1})})}},l=function(e,t){t=t||0;var n=0;if(e&&e.length>0){var r=e.hasClass("rt-container")?e:e.closest(".rt-container");r.length>0&&(n=parseFloat(r.css("padding-top")),isNaN(n)&&(n=0));var o=__rtconfig.scrollOffset||0,i=e.offset().top-n-t-o;jQuery("html:not(:animated), body:not(:animated)").animate({scrollTop:i+"px"})}},u=function(e,t){if(e.createTextRange){var n=e.createTextRange();n.move("character",t),n.select()}else void 0!==e.setSelectionRange?(e.focus(),e.setSelectionRange(t,t)):e.focus()},c=function(){};t.getSharedAsset=o,t.getStudyAsset=i,t.handleLink=s,t.isMobile=a,t.noop=c,t.scrollTo=l,t.setCaretPos=u},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"f",function(){return o}),n.d(t,"c",function(){return i}),n.d(t,"e",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return u});var r=function(e){return"/"===e.charAt(0)?e:"/"+e},o=function(e){return"/"===e.charAt(0)?e.substr(1):e},i=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},a=function(e,t){return i(e,t)?e.substr(t.length):e},s=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},l=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},u=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"render",value:function(){var e=this.props,n=e.conf,r=e.name,o=e.studyID;return(0,s.h)("span",null,t.getString(r,n,o))}}],[{key:"getString",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(void 0===t.stringsByName[e]&&!r)return console.log("Encountered unknown string with name "+e),"";var o="";if(t.stringsByName[e])for(var i=0;i<t.stringsByName[e].length;i++){var a=t.stringsByName[e][i];if(t.siteID&&t.siteID==a.SiteID&&(!n||n==a.StudyID)){o=a.Value;break}if(n&&n==a.StudyID){o=a.Value;break}o=a.Value}else o=r;return o=o.replace("{{companyName}}",t.companyName),o=o.replace("{{companyPhone}}",t.companyPhone)}}]),t}(s.Component);l.defaultProps={conf:{},name:"",studyID:0},t.default=l},function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t,n){var r,o=/(?:\?([^#]*))?(#.*)?$/,i=e.match(o),a={};if(i&&i[1])for(var l=i[1].split("&"),u=0;u<l.length;u++){var c=l[u].split("=");a[decodeURIComponent(c[0])]=decodeURIComponent(c.slice(1).join("="))}e=s(e.replace(o,"")),t=s(t||"");for(var p=Math.max(e.length,t.length),d=0;d<p;d++)if(t[d]&&":"===t[d].charAt(0)){var f=t[d].replace(/(^\:|[+*?]+$)/g,""),h=(t[d].match(/[+*?]+$/)||A)[0]||"",g=~h.indexOf("+"),y=~h.indexOf("*"),m=e[d]||"";if(!m&&!y&&(h.indexOf("?")<0||g)){r=!1;break}if(a[f]=decodeURIComponent(m),g||y){a[f]=e.slice(d).map(decodeURIComponent).join("/");break}}else if(t[d]!==e[d]){r=!1;break}return(!0===n.default||!1!==r)&&a}function i(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:e.index-t.index}function a(e,t){return e.index=t,e.rank=c(e),e.attributes}function s(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function l(e){return":"==e.charAt(0)?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}function u(e){return s(e).map(l).join("")}function c(e){return e.attributes.default?0:u(e.attributes.path)}function p(e){return null!=e.__preactattr_||"undefined"!=typeof Symbol&&null!=e[Symbol.for("preactattr")]}function d(e,t){void 0===t&&(t="push"),_&&_[t]?_[t](e):"undefined"!=typeof history&&history[t+"State"]&&history[t+"State"](null,null,e)}function f(){var e;return e=_&&_.location?_.location:_&&_.getCurrentLocation?_.getCurrentLocation():"undefined"!=typeof location?location:C,""+(e.pathname||"")+(e.search||"")}function h(e,t){return void 0===t&&(t=!1),"string"!=typeof e&&e.url&&(t=e.replace,e=e.url),g(e)&&d(e,t?"replace":"push"),y(e)}function g(e){for(var t=D.length;t--;)if(D[t].canRoute(e))return!0;return!1}function y(e){for(var t=!1,n=0;n<D.length;n++)!0===D[n].routeTo(e)&&(t=!0);for(var r=I.length;r--;)I[r](e);return t}function m(e){if(e&&e.getAttribute){var t=e.getAttribute("href"),n=e.getAttribute("target");if(t&&t.match(/^\//g)&&(!n||n.match(/^_?self$/i)))return h(t)}}function v(e){if(0==e.button)return m(e.currentTarget||e.target||this),b(e)}function b(e){return e&&(e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.stopPropagation&&e.stopPropagation(),e.preventDefault()),!1}function S(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||0!==e.button)){var t=e.target;do{if("A"===String(t.nodeName).toUpperCase()&&t.getAttribute("href")&&p(t)){if(t.hasAttribute("native"))return;if(m(t))return b(e)}}while(t=t.parentNode)}}function w(){k||("function"==typeof addEventListener&&(_||addEventListener("popstate",function(){y(f())}),addEventListener("click",S)),k=!0)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"subscribers",function(){return I}),n.d(t,"getCurrentUrl",function(){return f}),n.d(t,"route",function(){return h}),n.d(t,"Router",function(){return O}),n.d(t,"Route",function(){return N}),n.d(t,"Link",function(){return j});var P=n(0),A={},_=null,D=[],I=[],C={},k=!1,O=function(e){function t(t){e.call(this,t),t.history&&(_=t.history),this.state={url:t.url||f()},w()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.shouldComponentUpdate=function(e){return!0!==e.static||(e.url!==this.props.url||e.onChange!==this.props.onChange)},t.prototype.canRoute=function(e){return this.getMatchingChildren(this.props.children,e,!1).length>0},t.prototype.routeTo=function(e){return this._didRoute=!1,this.setState({url:e}),this.updating?this.canRoute(e):(this.forceUpdate(),this._didRoute)},t.prototype.componentWillMount=function(){D.push(this),this.updating=!0},t.prototype.componentDidMount=function(){var e=this;_&&(this.unlisten=_.listen(function(t){e.routeTo(""+(t.pathname||"")+(t.search||""))})),this.updating=!1},t.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),D.splice(D.indexOf(this),1)},t.prototype.componentWillUpdate=function(){this.updating=!0},t.prototype.componentDidUpdate=function(){this.updating=!1},t.prototype.getMatchingChildren=function(e,t,n){return e.filter(a).sort(i).map(function(e){var i=o(t,e.attributes.path,e.attributes);if(i){if(!1!==n){var a={url:t,matches:i};return r(a,i),delete a.ref,delete a.key,Object(P.cloneElement)(e,a)}return e}}).filter(Boolean)},t.prototype.render=function(e,t){var n=e.children,r=e.onChange,o=t.url,i=this.getMatchingChildren(n,o,!0),a=i[0]||null;this._didRoute=!!a;var s=this.previousUrl;return o!==s&&(this.previousUrl=o,"function"==typeof r&&r({router:this,url:o,previous:s,active:i,current:a})),a},t}(P.Component),j=function(e){return Object(P.h)("a",r({onClick:v},e))},N=function(e){return Object(P.h)(e.component,e)};O.subscribers=I,O.getCurrentUrl=f,O.route=h,O.Router=O,O.Route=N,O.Link=j,t.default=O},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l});var r=n(17),o=n(18),i=n(2),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e,t,n,o){var s=void 0;"string"==typeof e?(s=Object(i.d)(e),s.state=t):(s=a({},e),void 0===s.pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==t&&void 0===s.state&&(s.state=t));try{s.pathname=decodeURI(s.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(s.key=n),o?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=Object(r.a)(s.pathname,o.pathname)):s.pathname=o.pathname:s.pathname||(s.pathname="/"),s},l=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(o.a)(e.state,t.state)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=n(1),u=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.handleClickLink=function(e){if(i.props.isDisabled)return void e.preventDefault();if(window.history)if(e.preventDefault(),i.props.onClick!==t.defaultProps.onClick)i.props.onClick(e);else if(i.props.conf.useHashNav)(0,l.handleLink)(e.currentTarget,e.currentTarget.getAttribute("href"),i.setScrollTop);else{history.pushState({},"",i.anchorRef.getAttribute("href"));var n=void 0;"function"==typeof Event?n=new Event("historyUpdated"):(n=document.createEvent("Event"),n.initEvent("historyUpdated",!0,!0)),document.dispatchEvent(n)}},a=n,o(i,a)}return i(t,e),a(t,[{key:"render",value:function(){var e=this;return(0,s.h)("a",{className:this.props.className,href:t.getUrl(this.props.path,!1,this.props.conf),onClick:this.handleClickLink,ref:function(t){return e.anchorRef=t},style:this.props.style},this.props.children)}}],[{key:"getUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=arguments[2],r=window.location||document.location,o=r.protocol+"//";if(o+=r.host+r.pathname,e&&"#!"===e.substring(0,2)&&(e=e.substring(2)),n.useHashNav)return"#!"+e;var i=r.search;"?"===i[0]&&(i=i.substr(1));for(var a=i.split("&"),s=a.length-1;s>=0;s--)if("_rtembed"===a[s].substr(0,8)){a.splice(s,1);break}var l=a.join("&");return o+="?"+l,o+=l.length>0?"&":"",o+="_rtembed",e&&(o+="="+e),t||(o+=r.hash),o}},{key:"getCurrentPath",value:function(){var e=window.location||document.location,t=e.search;"?"===t[0]&&(t=t.substr(1));for(var n=t.split("&"),r=n.length-1;r>=0;r--)if("_rtembed"===n[r].substr(0,8))return"="===n[r][8]?decodeURIComponent(n[r].substr(9)):decodeURIComponent(n[r].substr(8));return""}},{key:"convertFromOldUrl",value:function(e){var n=window.location||document.location,r=n.hash;if("#!/study/"===r.substring(0,9)){var o=t.getUrl(r.substring(2),!0,e);window.history&&"function"==typeof window.history.replaceState?history.replaceState({},"",o):location.href=o}}}]),t}(s.Component);u.defaultProps={className:"",conf:{},onClick:function(){},path:"",style:""},t.default=u},function(e,t,n){"use strict";var r=n(5),o=n.n(r),i=function(){var e=null,t=function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,i):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},r=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.forEach(function(e){return e.apply(void 0,t)})}}};t.a=i},function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"e",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"f",function(){return u}),n.d(t,"d",function(){return c});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},i=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},a=function(e,t){return t(window.confirm(e))},s=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},l=function(){return-1===window.navigator.userAgent.indexOf("Trident")},u=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},c=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,n){(function(e,n){function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function o(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function i(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function a(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function s(e){return function(t){return null==t?void 0:t[e]}}function l(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function u(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function c(e){return function(t){return e(t)}}function p(e,t){return null==e?void 0:e[t]}function d(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function f(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function h(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function g(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function y(){this.__data__=Jt?Jt(null):{}}function m(e){return this.has(e)&&delete this.__data__[e]}function v(e){var t=this.__data__;if(Jt){var n=t[e];return n===Ze?void 0:n}return Rt.call(t,e)?t[e]:void 0}function b(e){var t=this.__data__;return Jt?void 0!==t[e]:Rt.call(t,e)}function S(e,t){return this.__data__[e]=Jt&&void 0===t?Ze:t,this}function w(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function P(){this.__data__=[]}function A(e){var t=this.__data__,n=Q(t,e);return!(n<0)&&(n==t.length-1?t.pop():zt.call(t,n,1),!0)}function _(e){var t=this.__data__,n=Q(t,e);return n<0?void 0:t[n][1]}function D(e){return Q(this.__data__,e)>-1}function I(e,t){var n=this.__data__,r=Q(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function k(){this.__data__={hash:new g,map:new($t||w),string:new g}}function O(e){return he(this,e).delete(e)}function j(e){return he(this,e).get(e)}function N(e){return he(this,e).has(e)}function T(e,t){return he(this,e).set(e,t),this}function x(e){var t=-1,n=e?e.length:0;for(this.__data__=new C;++t<n;)this.add(e[t])}function E(e){return this.__data__.set(e,Ze),this}function F(e){return this.__data__.has(e)}function L(e){this.__data__=new w(e)}function B(){this.__data__=new w}function R(e){return this.__data__.delete(e)}function M(e){return this.__data__.get(e)}function V(e){return this.__data__.has(e)}function U(e,t){var n=this.__data__;if(n instanceof w){var r=n.__data__;if(!$t||r.length<He-1)return r.push([e,t]),this;n=this.__data__=new C(r)}return n.set(e,t),this}function q(e,t){var n=hn(e)||Ne(e)?u(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Rt.call(e,i)||o&&("length"==i||be(i,r))||n.push(i);return n}function Q(e,t){for(var n=e.length;n--;)if(je(e[n][0],t))return n;return-1}function z(e,t,n,r,o){var a=-1,s=e.length;for(n||(n=ve),o||(o=[]);++a<s;){var l=e[a];t>0&&n(l)?t>1?z(l,t-1,n,r,o):i(o,l):r||(o[o.length]=l)}return o}function H(e,t){return e&&cn(e,t,qe)}function W(e,t){t=we(t,e)?[t]:le(t);for(var n=0,r=t.length;null!=e&&n<r;)e=e[Ce(t[n++])];return n&&n==r?e:void 0}function Z(e){return Mt.call(e)}function Y(e,t){return null!=e&&t in Object(e)}function $(e,t,n,r,o){return e===t||(null==e||null==t||!Le(e)&&!Be(t)?e!==e&&t!==t:G(e,t,$,n,r,o))}function G(e,t,n,r,o,i){var a=hn(e),s=hn(t),l=Je,u=Je;a||(l=pn(e),l=l==Xe?st:l),s||(u=pn(t),u=u==Xe?st:u);var c=l==st&&!d(e),p=u==st&&!d(t),f=l==u;if(f&&!c)return i||(i=new L),a||gn(e)?pe(e,t,n,r,o,i):de(e,t,l,n,r,o,i);if(!(o&$e)){var h=c&&Rt.call(e,"__wrapped__"),g=p&&Rt.call(t,"__wrapped__");if(h||g){var y=h?e.value():e,m=g?t.value():t;return i||(i=new L),n(y,m,r,o,i)}}return!!f&&(i||(i=new L),fe(e,t,n,r,o,i))}function K(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var l=s[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var p=new L;if(r)var d=r(u,c,l,e,t,p);if(!(void 0===d?$(c,u,r,Ye|$e,p):d))return!1}}return!0}function X(e){return!(!Le(e)||Ae(e))&&(Ee(e)||d(e)?Vt:St).test(ke(e))}function J(e){return Be(e)&&Fe(e.length)&&!!Pt[Mt.call(e)]}function ee(e){return"function"==typeof e?e:null==e?Qe:"object"==typeof e?hn(e)?oe(e[0],e[1]):re(e):ze(e)}function te(e){if(!_e(e))return Wt(e);var t=[];for(var n in Object(e))Rt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ne(e,t){var n=-1,r=Te(e)?Array(e.length):[];return un(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function re(e){var t=ge(e);return 1==t.length&&t[0][2]?Ie(t[0][0],t[0][1]):function(n){return n===e||K(n,e,t)}}function oe(e,t){return we(e)&&De(t)?Ie(Ce(e),t):function(n){var r=Ve(n,e);return void 0===r&&r===t?Ue(n,e):$(t,r,void 0,Ye|$e)}}function ie(e,t,n){var r=-1;return t=o(t.length?t:[Qe],c(ee)),l(ne(e,function(e,n,i){return{criteria:o(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return ce(e,t,n)})}function ae(e){return function(t){return W(t,e)}}function se(e){if("string"==typeof e)return e;if(Re(e))return ln?ln.call(e):"";var t=e+"";return"0"==t&&1/e==-Ge?"-0":t}function le(e){return hn(e)?e:dn(e)}function ue(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e===e,i=Re(e),a=void 0!==t,s=null===t,l=t===t,u=Re(t);if(!s&&!u&&!i&&e>t||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0}function ce(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=ue(o[r],i[r]);if(l){if(r>=s)return l;return l*("desc"==n[r]?-1:1)}}return e.index-t.index}function pe(e,t,n,r,o,i){var s=o&$e,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var p=-1,d=!0,f=o&Ye?new x:void 0;for(i.set(e,t),i.set(t,e);++p<l;){var h=e[p],g=t[p];if(r)var y=s?r(g,h,p,t,e,i):r(h,g,p,e,t,i);if(void 0!==y){if(y)continue;d=!1;break}if(f){if(!a(t,function(e,t){if(!f.has(t)&&(h===e||n(h,e,r,o,i)))return f.add(t)})){d=!1;break}}else if(h!==g&&!n(h,g,r,o,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function de(e,t,n,r,o,i,a){switch(n){case ft:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dt:return!(e.byteLength!=t.byteLength||!r(new qt(e),new qt(t)));case et:case tt:case at:return je(+e,+t);case nt:return e.name==t.name&&e.message==t.message;case lt:case ct:return e==t+"";case it:var s=f;case ut:var l=i&$e;if(s||(s=h),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;i|=Ye,a.set(e,t);var c=pe(s(e),s(t),r,o,i,a);return a.delete(e),c;case pt:if(sn)return sn.call(e)==sn.call(t)}return!1}function fe(e,t,n,r,o,i){var a=o&$e,s=qe(e),l=s.length;if(l!=qe(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:Rt.call(t,c)))return!1}var p=i.get(e);if(p&&i.get(t))return p==t;var d=!0;i.set(e,t),i.set(t,e);for(var f=a;++u<l;){c=s[u];var h=e[c],g=t[c];if(r)var y=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===y?h===g||n(h,g,r,o,i):y)){d=!1;break}f||(f="constructor"==c)}if(d&&!f){var m=e.constructor,v=t.constructor;m!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof v&&v instanceof v)&&(d=!1)}return i.delete(e),i.delete(t),d}function he(e,t){var n=e.__data__;return Pe(t)?n["string"==typeof t?"string":"hash"]:n.map}function ge(e){for(var t=qe(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,De(o)]}return t}function ye(e,t){var n=p(e,t);return X(n)?n:void 0}function me(e,t,n){t=we(t,e)?[t]:le(t);for(var r,o=-1,i=t.length;++o<i;){var a=Ce(t[o]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;var i=e?e.length:0;return!!i&&Fe(i)&&be(a,i)&&(hn(e)||Ne(e))}function ve(e){return hn(e)||Ne(e)||!!(Ht&&e&&e[Ht])}function be(e,t){return!!(t=null==t?Ke:t)&&("number"==typeof e||wt.test(e))&&e>-1&&e%1==0&&e<t}function Se(e,t,n){if(!Le(n))return!1;var r=typeof t;return!!("number"==r?Te(n)&&be(t,n.length):"string"==r&&t in n)&&je(n[t],e)}function we(e,t){if(hn(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Re(e))||(gt.test(e)||!ht.test(e)||null!=t&&e in Object(t))}function Pe(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Ae(e){return!!Lt&&Lt in e}function _e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Et)}function De(e){return e===e&&!Le(e)}function Ie(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function Ce(e){if("string"==typeof e||Re(e))return e;var t=e+"";return"0"==t&&1/e==-Ge?"-0":t}function ke(e){if(null!=e){try{return Bt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Oe(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(We);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(Oe.Cache||C),n}function je(e,t){return e===t||e!==e&&t!==t}function Ne(e){return xe(e)&&Rt.call(e,"callee")&&(!Qt.call(e,"callee")||Mt.call(e)==Xe)}function Te(e){return null!=e&&Fe(e.length)&&!Ee(e)}function xe(e){return Be(e)&&Te(e)}function Ee(e){var t=Le(e)?Mt.call(e):"";return t==rt||t==ot}function Fe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ke}function Le(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Be(e){return!!e&&"object"==typeof e}function Re(e){return"symbol"==typeof e||Be(e)&&Mt.call(e)==pt}function Me(e){return null==e?"":se(e)}function Ve(e,t,n){var r=null==e?void 0:W(e,t);return void 0===r?n:r}function Ue(e,t){return null!=e&&me(e,t,Y)}function qe(e){return Te(e)?q(e):te(e)}function Qe(e){return e}function ze(e){return we(e)?s(Ce(e)):ae(e)}var He=200,We="Expected a function",Ze="__lodash_hash_undefined__",Ye=1,$e=2,Ge=1/0,Ke=9007199254740991,Xe="[object Arguments]",Je="[object Array]",et="[object Boolean]",tt="[object Date]",nt="[object Error]",rt="[object Function]",ot="[object GeneratorFunction]",it="[object Map]",at="[object Number]",st="[object Object]",lt="[object RegExp]",ut="[object Set]",ct="[object String]",pt="[object Symbol]",dt="[object ArrayBuffer]",ft="[object DataView]",ht=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gt=/^\w*$/,yt=/^\./,mt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vt=/[\\^$.*+?()[\]{}|]/g,bt=/\\(\\)?/g,St=/^\[object .+?Constructor\]$/,wt=/^(?:0|[1-9]\d*)$/,Pt={};Pt["[object Float32Array]"]=Pt["[object Float64Array]"]=Pt["[object Int8Array]"]=Pt["[object Int16Array]"]=Pt["[object Int32Array]"]=Pt["[object Uint8Array]"]=Pt["[object Uint8ClampedArray]"]=Pt["[object Uint16Array]"]=Pt["[object Uint32Array]"]=!0,Pt[Xe]=Pt[Je]=Pt[dt]=Pt[et]=Pt[ft]=Pt[tt]=Pt[nt]=Pt[rt]=Pt[it]=Pt[at]=Pt[st]=Pt[lt]=Pt[ut]=Pt[ct]=Pt["[object WeakMap]"]=!1;var At="object"==typeof e&&e&&e.Object===Object&&e,_t="object"==typeof self&&self&&self.Object===Object&&self,Dt=At||_t||Function("return this")(),It="object"==typeof t&&t&&!t.nodeType&&t,Ct=It&&"object"==typeof n&&n&&!n.nodeType&&n,kt=Ct&&Ct.exports===It,Ot=kt&&At.process,jt=function(){try{return Ot&&Ot.binding("util")}catch(e){}}(),Nt=jt&&jt.isTypedArray,Tt=Array.prototype,xt=Function.prototype,Et=Object.prototype,Ft=Dt["__core-js_shared__"],Lt=function(){var e=/[^.]+$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Bt=xt.toString,Rt=Et.hasOwnProperty,Mt=Et.toString,Vt=RegExp("^"+Bt.call(Rt).replace(vt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ut=Dt.Symbol,qt=Dt.Uint8Array,Qt=Et.propertyIsEnumerable,zt=Tt.splice,Ht=Ut?Ut.isConcatSpreadable:void 0,Wt=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Zt=Math.max,Yt=ye(Dt,"DataView"),$t=ye(Dt,"Map"),Gt=ye(Dt,"Promise"),Kt=ye(Dt,"Set"),Xt=ye(Dt,"WeakMap"),Jt=ye(Object,"create"),en=ke(Yt),tn=ke($t),nn=ke(Gt),rn=ke(Kt),on=ke(Xt),an=Ut?Ut.prototype:void 0,sn=an?an.valueOf:void 0,ln=an?an.toString:void 0;g.prototype.clear=y,g.prototype.delete=m,g.prototype.get=v,g.prototype.has=b,g.prototype.set=S,w.prototype.clear=P,w.prototype.delete=A,w.prototype.get=_,w.prototype.has=D,w.prototype.set=I,C.prototype.clear=k,C.prototype.delete=O,C.prototype.get=j,C.prototype.has=N,C.prototype.set=T,x.prototype.add=x.prototype.push=E,x.prototype.has=F,L.prototype.clear=B,L.prototype.delete=R,L.prototype.get=M,L.prototype.has=V,L.prototype.set=U;var un=function(e,t){return function(n,r){if(null==n)return n;if(!Te(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}(H),cn=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}(),pn=Z;(Yt&&pn(new Yt(new ArrayBuffer(1)))!=ft||$t&&pn(new $t)!=it||Gt&&"[object Promise]"!=pn(Gt.resolve())||Kt&&pn(new Kt)!=ut||Xt&&"[object WeakMap]"!=pn(new Xt))&&(pn=function(e){var t=Mt.call(e),n=t==st?e.constructor:void 0,r=n?ke(n):void 0;if(r)switch(r){case en:return ft;case tn:return it;case nn:return"[object Promise]";case rn:return ut;case on:return"[object WeakMap]"}return t});var dn=Oe(function(e){e=Me(e);var t=[];return yt.test(e)&&t.push(""),e.replace(mt,function(e,n,r,o){t.push(r?o.replace(bt,"$1"):n||e)}),t}),fn=function(e,t){return t=Zt(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=Zt(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=a,r(e,this,s)}}(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Se(e,t[0],t[1])?t=[]:n>2&&Se(t[0],t[1],t[2])&&(t=[t[0]]),ie(e,z(t,1),[])});Oe.Cache=C;var hn=Array.isArray,gn=Nt?c(Nt):J;n.exports=fn}).call(t,n(23),n(24)(e))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(0),p=(n(4),n(3)),d=r(p),f=n(1),h=n(27),g=r(h),y=n(28),m=r(y),v=n(7),b=r(v),S=n(29),w=r(S),P={margin:"3px 0px",padding:"3px 0px"},A={1:"true/false",2:"narrative"},_=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.checkField=function(e,t){var r=function(e){return void 0!==e&&null!==e&&""!==e&&3!=e};return n.checkFieldWithFunc(e,t,r)},n.checkFieldWithFunc=function(e,t,r){var o=jQuery(n.formRef),i=o.find('[name="'+e+'"]');return!!r((i.val()+"").replace(/^\s+|\s+$/g,""))||(alert(t),(0,f.scrollTo)(i,25),i.get(0).focus(),!1)},n.validate=function(){var e=n.props,t=e.conf,r=e.studies,o=e.studyID;if(!t.dataPreview){var i=r[o],a=jQuery(n.formRef),s=!(0,f.isMobile)()||!t.useMobileForm,l=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return d.default.getString(e,t,o,n)},u=function(e){return e=e||"",1!==parseInt(n.props.conf.isInternational)?(e=e.replace(/[^\d]/g,""),e.length>=10):e.length>5},c=!(n.checkField("FirstName",l("form.error.firstname"))&&n.checkField("LastName",l("form.error.lastname"))&&n.checkField("Phone",l("form.error.phone"))&&n.checkFieldWithFunc("Phone",l("form.error.phone_length","Please enter a full 10-digit phone number."),u)&&n.checkField("EMail",l("form.error.email")));if(t.showZipCode&&!t.advancedWebForm&&!c){c=!n.checkField("ZipCode","Please provide a valid 5-digit ZIP code.");var p=a.find('[name="ZipCode"]');c||5===p.val().length||(alert("Please enter a 5-digit ZIP code."),(0,f.scrollTo)(p,25),p.get(0).focus(),c=!0)}t.advancedWebForm&&(c=c||n.validateAdvancedFields(o));var h=a.find('input[name="_ContactTime[]"]');t.advancedWebForm&&1!==parseInt(t.advancedFields.bestcontacttime&&t.advancedFields.bestcontacttime.Required)||s&&!c&&h.length>0&&0===h.filter(":checked").length&&(alert(l("webint.error.best-contact-time")),(0,f.scrollTo)(h.first(),25),c=!0);var g=a.serialize()+"&DOB="+n.state.DOB;if(!(c=c||!n.checkField("ReferrerID",l("webint.error.how-did-you-hear")))){if(n.state.studyQuestions)for(var y=0;y<n.state.studyQuestions.length;y++)1!=parseInt(n.state.studyQuestions[y].WebRequired)||n.state.questions[n.state.studyQuestions[y].QuestionID]||(c=!n.checkField("questions["+n.state.studyQuestions[y].QuestionID+"]","Please select "+n.state.studyQuestions[y].Question));c||(n.setState({processing:!0}),jQuery.post(t.apiBase+"/studies/apply",g,function(e){if(n.setState({processing:!1}),e&&e.status<2)i.ConversionApplicationAfter&&jQuery("body").append(jQuery(i.ConversionApplicationAfter)),e.redirect?window.location.href=e.redirect:i.siteThankYouURL?window.location.href=i.siteThankYouURL:t.thankYouURL?window.location.href=t.thankYouURL:(n.setState({submitted:!0}),n.props.scrollToTop());else if("string"==typeof e)e&&alert(e),!e&&alert("Server responded with empty string");else if(e&&e.error)alert(e.error);else{console.error("Encountered error: ",e);var r=e.errors,o=Object.keys(r)[0];alert(r[o]);var s=a.find('[name="'+o+'"]');"DOB"===o&&(s=a.find('[data-field="dob_day"]')),(0,f.scrollTo)(s,25)}}).fail(function(){n.setState({processing:!1}),alert("An unexpected error occurred.")}))}}},n.handleSetFirstName=function(e){var t=e.target.value,r=t;n.setState({FirstName:r})},n.handleSetMiddle=function(e){var t=e.target.value;t.match(/^[A-Za-z]{1}/g)||(t="");var r=t.toUpperCase();n.setState({Middle:r})},n.handleSetLastName=function(e){var t=e.target.value,r=t;n.setState({LastName:r})},n.handleSetCity=function(e){var t=e.target.value,r=t.replace(/[^\w\s\][\-,]/gi,"");n.setState({City:r})},n.handleSetState=function(e){var t=e.target.value,r=t.replace(/[^\w\s\][\-,]/gi,"");n.setState({State:r})},n.handleSetCountry=function(e){var t=e.target.value,r=t;n.setState({Country:r})},n.handleSetZip=function(e){var t=e.target.value,r=t.replace(/\D/g,"");n.setState({ZipCode:r})},n.handleSetZipI=function(e){var t=e.target.value,r=t.replace(/[^\w\s\][\-]/gi,"");n.setState({ZipCode:r})},n.handleSetHeight=function(e){var t=e.target.value,r=t.replace(/(?!^[\d\.])[^\d\.]/g,""),o=r.indexOf(".");o>-1&&(r=r.substr(0,o+1)+r.substr(o+1).replace(/\./g,"")),n.setState({height:r})},n.handleSetWeight=function(e){var t=e.target.value,r=t.replace(/(?!^[\d\.])[^\d\.]/g,""),o=r.indexOf(".");o>-1&&(r=r.substr(0,o+1)+r.substr(o+1).replace(/\./g,"")),n.setState({weight:r})},n.handleSetPhone=function(e){var t=e.target.selectionStart,r=e.target.value;if(1===parseInt(n.props.conf.isInternational))return void n.setState({phone:r});if(r.length>12)return e.target.value=n.state.phone,(0,f.setCaretPos)(e.target,Math.max(0,t-1)),void e.preventDefault();var o=r.replace(/\D/g,"");"1"==o.charAt(0)&&(o=o.substr(1)),t>3&&"-"===r[3]&&t--,t>6&&"-"===r[7]&&t--;var i=o.slice(0,3);o.length>=3&&(i+="-"+o.slice(3,6),t>=3&&t++),o.length>=6&&(i+="-"+o.slice(6,10),t>=6&&t++),n.setState({phone:i},function(){(0,f.setCaretPos)(e.target,t)})},n.handlePhoneKeyDown=function(e){var t=e.target.value,r=e.target.selectionStart;if(1!==parseInt(n.props.conf.isInternational)&&8===e.which)if(4===r&&"-"===t[3])if(e.preventDefault(),4===t.length){var o=t.slice(0,2)+t.slice(5);n.setState({phone:o})}else(0,f.setCaretPos)(e.target,r-1);else if(8===r&&"-"===t[7])if(e.preventDefault(),8===t.length){var i=t.slice(0,6)+t.slice(9);n.setState({phone:i})}else(0,f.setCaretPos)(e.target,r-1)},n.htmlspecialchars_decode=function(e){return"string"==typeof e&&(e=e.replace(/&gt;/gi,">"),e=e.replace(/&lt;/gi,"<"),e=e.replace(/&#039;/g,"'"),e=e.replace(/&quot;/gi,'"'),e=e.replace(/&amp;/gi,"&")),e},n.handleStudyTermAndConditions=function(e){var t=e.StudyTermAndConditions,r=n.props,o=r.conf,i=(r.studyID,"");o.studyContactData&&o.studyContactData.length>0&&jQuery.each(o.studyContactData,function(e,t){i=(o.isMultiSite&&t.StudyID,t.ContactNameAndPhoneNum)});var a={SiteContactNameAndPhoneNumber:i,PrivacyURL:o.PrivacyURL};if(t)for(var s in a)t=t.replace("{{"+s+"}}",a[s]);return n.htmlspecialchars_decode(t)},n.handleStudyOptInClause=function(e){var t=n.props,r=t.conf,o=(t.studyID,r.studyOptInClause||""),i="";r.studyContactData&&r.studyContactData.length>0&&jQuery.each(r.studyContactData,function(e,t){i=(r.isMultiSite&&t.StudyID,t.ContactNameAndPhoneNum)});var a={SiteContactNameAndPhoneNumber:i,PrivacyURL:r.PrivacyURL};if(o)for(var s in a)o=o.replace("{{"+s+"}}",a[s]);return n.htmlspecialchars_decode(o)},n.handleStudyOptIn=function(e){n.setState({optInTermSelected:e.target.checked})},n.handleSetPhone1=function(e){var t=e.target.selectionStart,r=e.target.value;if(1===parseInt(n.props.conf.isInternational))return void n.setState({Phone1:r});if(r.length>12)return e.target.value=n.state.Phone1,(0,f.setCaretPos)(e.target,Math.max(0,t-1)),void e.preventDefault();var o=r.replace(/\D/g,"");t>3&&"-"===r[3]&&t--,t>6&&"-"===r[7]&&t--;var i=o.slice(0,3);o.length>=3&&(i+="-"+o.slice(3,6),t>=3&&t++),o.length>=6&&(i+="-"+o.slice(6,10),t>=6&&t++),n.setState({Phone1:i},function(){(0,f.setCaretPos)(e.target,t)})},n.handlePhoneKeyDown1=function(e){var t=e.target.value,r=e.target.selectionStart;if(1!==parseInt(n.props.conf.isInternational)&&8===e.which)if(4===r&&"-"===t[3])if(e.preventDefault(),4===t.length){var o=t.slice(0,2)+t.slice(5);n.setState({Phone1:o})}else(0,f.setCaretPos)(e.target,r-1);else if(8===r&&"-"===t[7])if(e.preventDefault(),8===t.length){var i=t.slice(0,6)+t.slice(9);n.setState({Phone1:i})}else(0,f.setCaretPos)(e.target,r-1)},n.applicationQuestions=function(){var e=[],t=[];n.props.conf.showInterviewQuestions&&n.state.studyQuestions&&n.state.studyQuestions.forEach(function(n){0==n.StudyID?e.push(n):t.push(n)});var r=[e,t];return(0,c.h)("div",{style:{margin:"20px 0px"}},r.map(function(e){return e.map(function(e){return"true/false"===A[e.ResponseType]?(0,c.h)("div",{style:{whiteSpace:"pre-wrap"}},(0,c.h)("p",null,e.Intro),(0,c.h)("div",{className:"application-question-container",style:{display:"flex",margin:"20px 0px"}},(0,c.h)("div",{className:"application-question-container-left",style:{marginRight:"5px"}},(0,c.h)("p",null,!isNaN(e.WebRequired)&&parseInt(e.WebRequired)?"*":null,(0,c.h)("strong",null,e.Question))),(0,c.h)("div",{className:"application-question-container-right",style:{marginRight:"5px",flex:3}},(0,c.h)("select",{onChange:function(t){var r=e.QuestionID,i=l({},n.state.questions,o({},r,t.target.value));n.setState({questions:i})},name:"questions["+e.QuestionID+"]",id:"questions["+e.QuestionID+"]",value:n.state.questions[e.QuestionID]||""},(0,c.h)("option",{value:""},"-"),(0,c.h)("option",{value:"1"},d.default.getString("form.label.yes",n.props.conf,n.props.studies.StudyID,"Yes")),(0,c.h)("option",{value:"0"},d.default.getString("form.label.no",n.props.conf,n.props.studies.StudyID,"No")))))):"narrative"===A[e.ResponseType]?(0,c.h)("div",null,(0,c.h)("p",null,e.Intro),(0,c.h)("div",{className:"application-question-container",style:{margin:"20px 0px"}},(0,c.h)("div",{className:"application-question-container-left",style:{marginRight:"5px"}},(0,c.h)("p",null,!isNaN(e.WebRequired)&&parseInt(e.WebRequired)?"*":null,(0,c.h)("strong",null,e.Question))),(0,c.h)("div",{className:"application-question-container-right",style:{margin:"20px 0px",marginRight:"5px"}},(0,c.h)("textarea",{onKeyUp:function(t){var r=e.QuestionID,i=l({},n.state.questions,o({},r,t.target.value));n.setState({questions:i})},name:"questions["+e.QuestionID+"]",id:"questions["+e.QuestionID+"]"})))):void 0})}))},n.state={didInjectConversionBefore:!1,optIn:!0,phone:"",optInTermSelected:!0,country:e.conf.defaultCountry},n}return s(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){if(e.studies!==this.props.studies&&this.injectConversionBefore(),jQuery&&(e.studies!==this.props.studies||e.studyID!==this.props.studyID)){e.studies&&e.studies[e.studyID]||e.getStudy(parseInt(e.studyID))}}},{key:"componentDidMount",value:function(){var e=this;this.props.scrollToTop();try{jQuery.get(this.props.conf.apiBase+"/studies/questions",{StudyID:this.props.studyID},function(t){if(t.status>=2)return void console.error("Could not aquire questions for studies with SiteID of "+(e.props.studyID||"Unknown"));var n={studyQuestions:t.records,questions:{}};t.records.length>0&&(n.questions={}),e.setState(n)})}catch(e){console.error("Could not aquire questions for studies with SiteID of "+(this.props.studyID||"Unknown")),this.setState({studyQuestions:[]})}}},{key:"componentWillUnmount",value:function(){this.props.scrollToTop()}},{key:"injectConversionBefore",value:function(){var e=this.props,t=e.studies,n=e.studyID,r=this.state.didInjectConversionBefore,o=t&&t[n];o&&o.ConversionApplicationBefore&&!r&&this.setState({didInjectConversionBefore:!0},function(){jQuery("body").append(jQuery(o.ConversionApplicationBefore))})}},{key:"addToSerializedForm",value:function(e,t){return e+"&"+t+"="+this.state.fieldName}},{key:"validateAdvancedFields",value:function(e){var t=this.props.conf,n=jQuery(this.formRef);for(var r in t.advancedFields){var o=t.advancedFields[r];if(1===parseInt(o.Display)&&1===parseInt(o.Required)){var i=n.find('[name="'+o.Name+'"]');if("Middle"===o.Name){var a=i.val();if(!a||0===a.length)return alert(d.default.getString("form.error.middle-initial",t,e,"Please enter your Middle Initial.")),(0,f.scrollTo)(i,25),!0}else if("Address1"===o.Name){var s=i.val();if(!s||0===s.length)return alert(d.default.getString("form.error.Address1",t,e,"Please enter line 1 of your address.")),(0,f.scrollTo)(i,25),!0}else if("Address2"===o.Name){var l=i.val();if(!l||0===l.length)return alert(d.default.getString("form.error.Address2",t,e,"Please enter line 2 of your address.")),(0,f.scrollTo)(i,25),!0}else if("City"===o.Name){var u=i.val();if(!u||0===u.length)return alert(d.default.getString("form.error.City",t,e,"Please enter your city.")),(0,f.scrollTo)(i,25),!0}else if("State"===o.Name){var c=i.val();if(!c||0===c.length||""===c)return alert(d.default.getString("form.error.State",t,e,"Please select your state.")),(0,f.scrollTo)(i,25),!0}else if("ZipCode"===o.Name){if(!i||!i.val()||t.isInternational&&i.val().length<4||!t.isInternational&&5!==i.val().length)return alert(d.default.getString("form.error.ZipCode",t,e,"Please provide a valid 5-digit ZIP code.")),(0,f.scrollTo)(i,25),i.get(0).focus(),!0}else if("DOB"===o.Name){if(!this.state.DOB||-1!==this.state.DOB.split("-").indexOf(""))return i=n.find('[data-field="dob_day"]'),alert(d.default.getString("form.error.DOB",t,e,"Please select your date of birth.")),(0,f.scrollTo)(i,25),!0}else if("Gender"===o.Name){if(!this.state.Gender)return i=n.find('[data-field="gender"]'),alert(d.default.getString("form.error.Gender",t,e,"Please select your Gender.")),(0,f.scrollTo)(i,25),!0}else if("SSN"===o.Name){var p=i.val();if(!p||0===p.length||t.taxIdentifierLength&&p.length!=parseInt(t.taxIdentifierLength)||!t.taxIdentifierLength&&9!=p.length)return alert(d.default.getString("form.error.SSN",t,e,"Please enter your "+t.taxIdentifierLabel+".")),(0,f.scrollTo)(i,25),!0}else if("Race"===o.Name){var h=parseInt(i.val());if(!h||0===h.length||""===h)return alert(d.default.getString("form.error.Race",t,e,"Please select your Race.")),(0,f.scrollTo)(i,25),!0}else if("Ethnicity"===o.Name){var g=parseInt(i.val());if(!g||0===g.length||""===g)return alert(d.default.getString("form.error.Ethnicity",t,e,"Please select your Ethnicity.")),(0,f.scrollTo)(i,25),!0}else if("height"===o.Name){var y=i.val();if(!y||0===y.length||""==y)return alert(d.default.getString("form.error.height",t,e,"Please enter your Height.")),(0,f.scrollTo)(i,25),!0}else if("weight"===o.Name){var m=i.val();if(!m||0===m.length||""==m)return alert(d.default.getString("form.error.weight",t,e,"Please enter your Weight.")),(0,f.scrollTo)(i,25),!0}else if("ContactName"===o.Name){var v=i.val();if(!v||0===v.length||""==v)return alert(d.default.getString("form.error.ContactName",t,e,"Please enter your Emergency Contact's Name.")),(0,f.scrollTo)(i,25),!0}else if("Relationship"===o.Name){var b=i.val();if(!b||0===b.length||""===b)return alert(d.default.getString("form.error.Relationship",t,e,"Please select your Emergency Contact's Relation to you.")),(0,f.scrollTo)(i,25),!0}else if("Phone1"===o.Name){var S=i.val();if(!S||0===S.length||""==S)return alert(d.default.getString("form.error.Phone1",t,e,"Please select your Emergency Contact's Phone Number.")),(0,f.scrollTo)(i,25),!0}else if("Comments"===o.Name){var w=i.val();if(!w||0===w.length||""==w)return alert(d.default.getString("form.error.Comments",t,e,"Please give additional comments.")),(0,f.scrollTo)(i,25),!0}else{if("bestcontacttime"===r)continue;if("medicalhistory"===o.Name){var P=this.state[o.Name];if(!P||0===P.length)return i=n.find('[data-field="search_'+o.Name+'"]'),alert(d.default.getString("form.error.medicalhistory",t,e,"Please select at least one item from 'Medical Conditions'")),(0,f.scrollTo)(i,25),!0}else if("medications"===o.Name){var A=this.state[o.Name];if(!A||0===A.length)return i=n.find('[data-field="search_'+o.Name+'"]'),alert(d.default.getString("form.error.medications",t,e,"Please select at least one item from 'Medications & Treatments'")),(0,f.scrollTo)(i,25),!0}else if("socialhistory"===o.Name){var _=this.state[o.Name];if(!_||0===_.length)return i=n.find('[data-field="search_'+o.Name+'"]'),alert(d.default.getString("form.error.socialhistory",t,e,"Please select at least one item from ‘Medical Social Items’")),(0,f.scrollTo)(i,25),!0}else if(o.options){var D=this.state[o.Name];if(!D||0===D.length)return i=n.find('[data-field="search_'+o.Name+'"]'),alert(d.default.getString("form.error."+o.Label,t,e,"Please select at least one item from '"+o.Label+"'")),(0,f.scrollTo)(i,25),!0}}}}return!1}},{key:"renderThankYou",value:function(){var e=this.props,t=e.conf,n=e.studyID;return(0,c.h)("div",{dangerouslySetInnerHTML:{__html:d.default.getString("webint.success.thank-you",t,n)}})}},{key:"renderSelection",value:function(e,t){var n=this;return(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(e.Required)&&"*",d.default.getString("form.label."+e.Name,this.props.conf,this.props.studyID,e.Label),(0,c.h)("div",{style:{marginLeft:2,display:"inline-block"}},d.default.getString("webint.label.check-all-that-apply",this.props.conf,this.props.studyID,"(check all that apply)"))),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)(g.default,{name:e.Name,noneLabel:t,onChangeValue:function(t){var r={};r[e.Name]=t,n.setState(r)},conf:this.props.conf,studyID:this.props.studyID,options:e.options,value:this.state[e.Name]})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.conf,r=(t.setScrollTop,t.studies),o=t.studyID;if(!r||0===Object.keys(r).length||!r[o])return null;var i=/(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi,a=new RegExp(i),s=r[o],u=this.handleStudyTermAndConditions(s),p=this.handleStudyOptInClause(s),h=p.length,g={},y={},v=this.handleStudyOptInClause(s).split(a),S=s.StudyTermAndConditions&&s.StudyTermAndConditions.split(a);if(v&&v.length>0)for(var A=v.length-1;A>=0;A--){var _=v[A].trimStart();if("http"===_.substring(0,4)||"www"===_.substring(0,3)){var D=p.trim().indexOf(_),I=_;_.charCodeAt(_.length-1)<65&&(I=I.substring(0,_.length-1)),g[D]=I,p=p.replace(_,"")}}if(S&&S.length>0)for(var C=S.length-1;C>=0;C--){var k=S[C].trimStart();if("http"===k.substring(0,4)||"www"===k.substring(0,3)){var O=u.trim().indexOf(k),j=k;k.charCodeAt(k.length-1)<65&&(j=j.substring(0,k.length-1)),y[O]=j,u=u.replace(k,"")}}var N=function(e,t){var n=[],r=Object.keys(e);if(r.includes(0))n.push((0,c.h)("a",{id:"application-study-opt-in-ref",href:e[0].replace("/","/"),target:"_blank"},e[0]));else{var o=0;if(r.sort().forEach(function(r){var i=t.substring(o,r);n.push((0,c.h)("span",{id:"application-study-opt-in-clause"},i.replace(/\\n/g,"<br >"))),n.push((0,c.h)("div",{style:{display:"inline"}},(0,c.h)("a",{id:"application-study-opt-in-ref",href:e[r],target:"_blank"},e[r]),".")),o=r}),h!==o){var i=t.substring(o);n.push((0,c.h)("span",{id:"application-study-opt-in-clause",dangerouslySetInnerHTML:function(){return{__html:i.replace(/\\n/g,"<br />")}}()}))}}return n},T=!(0,f.isMobile)()||!n.useMobileForm,x=n.advancedWebForm,E=x?n.advancedFields:{},F=E.medicalhistory&&1===parseInt(E.medicalhistory.Display),L=E.medications&&1===parseInt(E.medications.Display),B=E.socialhistory&&1===parseInt(E.socialhistory.Display),R=E.bestcontacttime&&1===parseInt(E.bestcontacttime.Display),M=(parseInt(n.isInternational),[d.default.getString("webint.option.contact-morning",n,s.StudyID),d.default.getString("webint.option.contact-lunch",n,s.StudyID),d.default.getString("webint.option.contact-afternoon",n,s.StudyID)]);if(n.showEveningContactPreference&&M.push(d.default.getString("webint.option.contact-evening",n,s.StudyID)),this.state.submitted)return this.renderThankYou();var V={onInput:this.handleSetFirstName,value:this.state.FirstName},U={onInput:this.handleSetMiddle,value:this.state.Middle},q={onInput:this.handleSetLastName,value:this.state.LastName},Q={onInput:this.handleSetPhone,onKeyDown:this.handlePhoneKeyDown,value:this.state.phone},z={onInput:this.handleSetPhone1,onKeyDown:this.handlePhoneKeyDown1,value:this.state.Phone1},H={onInput:this.handleSetCity,value:this.state.City},W={onInput:this.handleSetState,value:this.state.State},Z={onInput:this.handleSetZip,value:this.state.ZipCode},Y={onInput:this.handleSetZipI,value:this.state.ZipCode},$={onInput:this.handleSetHeight,value:this.state.height},G={onInput:this.handleSetWeight,value:this.state.weight};this.state.Country||n.defaultCountry,this.handleSetCountry;return(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"rt-study-content-singlepage-application ":""},!this.props.conf.distractionFree&&!this.props.isSinglePageDetailsAndApplication&&(0,c.h)("div",{className:"osTitle"},(0,c.h)(b.default,{className:"rt-home-button",conf:this.props.conf,isDisabled:this.props.conf.studyID,style:{cursor:"pointer"},path:"#!"},d.default.getString("webint.research-studies",n,o))," ","»"," ",d.default.getString("webint.application",n,o)),(0,c.h)("form",{action:"process-request.php?responsive",className:"rt-application-form",method:"post",onSubmit:function(t){t.preventDefault(),e.validate()},ref:function(t){e.formRef=t,e.injectConversionBefore()},autocomplete:"off"},(0,c.h)("input",{type:"hidden",name:"webIntegration",id:"webIntegration",value:"",autocomplete:"false"}),(0,c.h)("div",{className:"osBox osBox-100 osDetail osContent"},(0,c.h)("h1",null,d.default.getString("webint.apply-for-current-study",n,s.StudyID)),(0,c.h)("hr",{className:"osHorizontalRule"}),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem osApplicationDescriptor":"osFormLabel osApplicationDescriptor",style:{paddingTop:0,paddingBottom:"8px"}},(0,c.h)("strong",null,d.default.getString("webint.research-study",n,s.StudyID))),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem osApplicationHeader":"osFormValue osApplicationHeader",style:{paddingBottom:"8px"}},(0,c.h)("strong",null,s.Title)),(0,c.h)("p",{className:"osClear",style:{paddingTop:"10px"}},d.default.getString("webint.instruction_legal_name",n,s.StudyID)),(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},"*",d.default.getString("form.label.firstname",n,s.StudyID)),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",l({autofocus:!0,className:"osField",name:"FirstName",size:45,type:"text"},V)))),E.Middle&&1===parseInt(E.Middle.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.Middle.Required)&&"*",d.default.getString("form.label.middle-initial",n,s.StudyID,"Middle Initial")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",l({className:"osField",type:"text",size:4,maxlength:1,name:E.Middle.Name,style:"width: 40px;"},U)))),(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},"*",d.default.getString("form.label.lastname",n,s.StudyID,"Last Name")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",l({className:"osField",name:"LastName",size:45,type:"text"},q)))),1===parseInt(n.showCountry)&&1===parseInt(n.isInternational)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},d.default.getString("form.label.country",n,s.StudyID)),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormValue"},(0,c.h)("select",{name:"Country",className:"osField",value:this.state.country,onChange:function(t){return e.setState({country:t.target.value})}},(0,c.h)("option",{value:""},d.default.getString("form.prompt.country",n,s.StudyID)),n.countries.map(function(e){return(0,c.h)("option",{value:e.Code},e.Name)})))),(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},"*",d.default.getString("form.label.phone",n,s.StudyID,"Phone")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",l({className:"osField",name:"Phone",size:20,minLength:parseInt(this.props.conf.isInternational)?6:10,maxlength:"12",style:"width: 160px;",type:"text"},Q)))),(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},"*",d.default.getString("form.label.email",n,s.StudyID,"Email")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",{className:"osField",name:"EMail",size:45,type:"text"}))),n.showZipCode&&!x&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},"*",d.default.getString("form.label.zipcode",n,s.StudyID,"ZIP / Postal Code")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",{className:"osField",maxlength:"5",name:"ZipCode",size:20,type:"text"}))),E.Address1&&1===parseInt(E.Address1.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.Address1.Required)&&"*",d.default.getString("form.label.Address1",n,s.StudyID,"Address Line 1")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",{className:"osField",type:"text",size:45,name:E.Address1.Name}))),E.Address2&&1===parseInt(E.Address2.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.Address2.Required)&&"*",d.default.getString("form.label.Address2",n,s.StudyID,"Address Line 2")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",{className:"osField",type:"text",size:45,name:E.Address2.Name}))),E.City&&1===parseInt(E.City.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.City.Required)&&"*",d.default.getString("form.label.City",n,s.StudyID,"City")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",l({className:"osField",type:"text",size:45,name:E.City.Name},H)))),E.State&&1===parseInt(E.State.Display)&&0===parseInt(n.isInternational||0)&&n.usStates&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.State.Required)&&"*",d.default.getString("form.label.State",n,s.StudyID,"State")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("select",{name:"State"},(0,c.h)("option",{value:""},"Choose"),n.usStates.map(function(e){return(0,c.h)("option",{value:e.State},e.StateFull)})))),E.State&&1===parseInt(E.State.Display)&&1===parseInt(n.isInternational)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.State.Required)&&"*",d.default.getString("form.label.StateI",n,s.StudyID,"State / Province / Region")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",l({className:"osField",type:"text",size:45,maxlength:"60",name:E.State.Name},W)))),E.ZipCode&&1===parseInt(E.ZipCode.Display)&&(0===parseInt(n.isInternational)||!n.isInternational)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.ZipCode.Required)&&"*",d.default.getString("form.label.zipcode",n,s.StudyID,"ZIP / Postal Code")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",l({className:"osField",maxlength:"5",name:E.ZipCode.Name,size:45,type:"text",style:"width: 100px;"},Z)))),E.ZipCode&&1===parseInt(E.ZipCode.Display)&&1===parseInt(n.isInternational||0)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.ZipCode.Required)&&"*",d.default.getString("form.label.postalcode",n,s.StudyID,"Postal Code")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",l({className:"osField",maxlength:"10",minLength:"4",name:E.ZipCode.Name,size:45,type:"text",style:"width: 200px;"},Y)))),E.Gender&&1===parseInt(E.Gender.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.Gender.Required)&&"*",d.default.getString("form.label.Gender",n,s.StudyID,"Gender")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue",style:{display:"flex",flexDirection:"row"}},(0,c.h)("label",null,(0,c.h)("input",{checked:"male"===this.state.Gender,"data-field":"gender",name:E.Gender.Name,onChange:function(t){return e.setState({Gender:t.target.value})},style:{marginRight:"10px"},type:"radio",value:"male"}),d.default.getString("form.option.male",n,s.StudyID,"Male")),(0,c.h)("label",{style:{marginLeft:"20px"}},(0,c.h)("input",{checked:"female"===this.state.Gender,name:E.Gender.Name,onChange:function(t){return e.setState({Gender:t.target.value})},style:{marginRight:"10px"},type:"radio",value:"female"}),d.default.getString("form.option.female",n,s.StudyID,"Female")))),E.DOB&&1===parseInt(E.DOB.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.DOB.Required)&&"*",d.default.getString("form.label.DOB",n,s.StudyID,"DOB")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)(m.default,{onChangeValue:function(t){var n={};n[E.DOB.Name]=t,e.setState(n)},value:this.state[E.DOB.Name],conf:this.props.conf}))),E.SSN&&1===parseInt(E.SSN.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.SSN.Required)&&"*",n.taxIdentifierLabel),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)(w.default,{name:E.SSN.Name,international:n.isInternational,maxLength:n.taxIdentifierLength,defaultValue:this.state[E.SSN.Name],onChangeValue:function(t){var n={};n[E.SSN.Name]=t,e.setState(n)}})),(0,c.h)("div",null," ")),E.Race&&1===parseInt(E.Race.Display)&&n.races&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.Race.Required)&&"*",d.default.getString("form.label.Race",n,s.StudyID,"Race")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("select",{name:"Race"},(0,c.h)("option",{value:""},"Choose"),n.races.map(function(e){return(0,c.h)("option",{value:e.RaceID},e.Race)})))),E.Ethnicity&&1===parseInt(E.Ethnicity.Display)&&n.ethicities&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.Ethnicity.Required)&&"*",d.default.getString("form.label.Ethnicity",n,s.StudyID,"Ethnicity")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("select",{name:"Ethnicity"},(0,c.h)("option",{value:""},"Choose"),n.ethicities.map(function(e){return(0,c.h)("option",{value:e.EthnicityID},e.Ethnicity)})))),E.height&&1===parseInt(E.height.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.height.Required)&&"*",d.default.getString("form.label.height",n,s.StudyID,"Height")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",l({className:"osField",name:E.height.Name,size:45,type:"text",maxlength:"6",style:{maxWidth:"8rem",display:"inline-block"}},$)),(0,c.h)("span",{style:{paddingLeft:"1rem"}},E.height.extraLabel))),E.weight&&1===parseInt(E.weight.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.weight.Required)&&"*",d.default.getString("form.label.weight",n,s.StudyID,"Weight")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",l({className:"osField",name:E.weight.Name,size:45,type:"text",maxlength:"6",style:{maxWidth:"8rem",display:"inline-block"}},G)),(0,c.h)("span",{style:{paddingLeft:"1rem"}},E.weight.extraLabel))),F&&this.renderSelection(E.medicalhistory,"No Medical Conditions"),L&&this.renderSelection(E.medications),B&&this.renderSelection(E.socialhistory),this.state.studyQuestions&&Object.keys(this.state.studyQuestions).length>0&&this.applicationQuestions(),T&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},d.default.getString("webint.label.best-contact-method",n,s.StudyID,"Best Contact Method")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",{className:"osField",name:"_ContactMethod",placeholder:d.default.getString("webint.placeholder.best-contact-method",n,s.StudyID),size:45,type:"text"})),(!x||R)&&(0,c.h)("div",null,(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},(!x||R&&1===parseInt(E.bestcontacttime.Required))&&"*",d.default.getString("webint.label.best-contact-time",n,s.StudyID)),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},M.map(function(e,t){return(0,c.h)("div",{key:t},(0,c.h)("label",null,(0,c.h)("input",{name:"_ContactTime[]",type:"checkbox",value:e})," ",e))})))),(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},"*",d.default.getString("webint.label.how-did-you-hear",n,s.StudyID)),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("select",{size:1,name:"ReferrerID",className:"osField"},(0,c.h)("option",{value:""},d.default.getString("webint.option.choose-one",n,s.StudyID)),n.referrers.map(function(e,t){return(0,c.h)("option",{key:t,value:e.ReferrerID},e.Referrer)})))),T&&E.additionalcomments&&1===parseInt(E.additionalcomments.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},!x&&d.default.getString("webint.prompt.medical_conditions",n,s.StudyID),1===parseInt(E.additionalcomments.Required)&&"*",x&&d.default.getString("form.label.provide-additional-comments",n,s.StudyID,"Provide Additional Comments & Types of Research Studies You'd Be Interested In")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("textarea",{rows:"5",cols:"50",name:"Comments",className:"osField osFieldComment"}))),E.additionalcontact&&1===parseInt(E.additionalcontact.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{style:"color: #a00;"},"Additional Contact Name / Relationship / Phone",(0,c.h)("br",null),(0,c.h)("br",null))),E.additionalcontact&&1===parseInt(E.additionalcontact.Display)&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.additionalcontact.Required)&&"*",d.default.getString("form.label.eContact",n,s.StudyID,"Contact Name")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",{className:"osField",type:"text",size:45,name:"additionalContactName"})),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.additionalcontact.Required)&&"*",d.default.getString("form.label.eRelationship",n,s.StudyID,"Relationship")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("select",{name:"additionalContactRelationship"},(0,c.h)("option",{value:""}),n.eRelationships.map(function(e){return(0,c.h)("option",{value:e.Relationship},e.Relationship)}))),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormLabel singlePageBlockElem":"osFormLabel"},1===parseInt(E.additionalcontact.Required)&&"*",d.default.getString("form.label.phone",n,s.StudyID,"Phone")),(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue"},(0,c.h)("input",l({className:"osField",type:"text",size:20,maxLength:12,style:"width: 160px;",name:"additionalContactPhone"},z)))),n.marketingEmails&&(0,c.h)("div",{style:this.props.isSinglePageDetailsAndApplication&&P},(0,c.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"osFormValue singlePageBlockElem":"osFormValue",style:{width:"100%"}},p&&(0,c.h)("div",{style:"padding-top:10px; font-size:10px; font-weight: normal !important;"},(0,c.h)("label",{style:"font-weight: normal !important"},(0,c.h)("input",{type:"checkbox",name:"StudyOptIn",value:"1",style:"margin-right: 10px;",checked:this.state.optInTermSelected,onClick:this.handleStudyOptIn}),v?N(g,p):v)))),u&&(0,c.h)("div",{style:"padding-top:10px; font-size:10px; font-weight: normal !important;"},S?N(y,u):(0,c.h)("span",{id:"application-custom-terms-and-conditions"},u)),(0,c.h)("h3",{className:"osClear"},d.default.getString("webint.notice.confidential",n,s.StudyID)),(0,c.h)("p",{className:"rt-application-button-container"},!this.state.processing&&(0,c.h)("input",{className:"osButton",disabled:n.dataPreview,type:"submit",value:d.default.getString("webint.submit-application",n,s.StudyID)})),this.state.processing&&(0,c.h)("p",{className:"rt-application-processing"},"Please wait one moment...")),E.dob&&1===parseInt(E.dob.Display)&&(0,c.h)("input",{name:E.dob.Name,type:"hidden",value:this.state.dob}),(0,c.h)("input",{name:"StudyID",type:"hidden",value:o}),(0,c.h)("input",{name:"SiteID",type:"hidden",value:n.siteID}),n.publishableApiKey&&(0,c.h)("input",{name:"publishableApiKey",type:"hidden",value:n.publishableApiKey})))}}]),t}(c.Component);_.defaultProps={conf:{},getStudy:function(){},scrollToTop:function(){},setScrollTop:function(){},studies:{},studyID:0},t.default=_},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(0),i=n(14),a=function(e){return e&&e.__esModule?e:{default:e}}(i);if("object"===("undefined"==typeof __rtconfig?"undefined":r(__rtconfig))){!function(e){-1!==navigator.userAgent.indexOf("MSIE 9")&&e.addEventListener("selectionchange",function(){var t=e.activeElement;if("TEXTAREA"===t.tagName||"INPUT"===t.tagName&&"text"===t.type){var n=e.createEvent("CustomEvent");n.initCustomEvent("input",!0,!0,{}),t.dispatchEvent(n)}})}(document),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0});var s=document.getElementById("rtembed");if(!s)for(var l=0;l<document.scripts.length;l++)if(document.scripts[l].src&&-1!==document.scripts[l].src.indexOf("realtime-host01.com")){s=document.scripts[l];break}if(s&&(!s.previousElementSibling||"rt-container"!==s.previousElementSibling.className)){var u=document.createElement("div");u.className="rt-embed rt-container",s.parentNode.insertBefore(u,s);var c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.href=__rtconfig.apiBase+"/styles",document.head.appendChild(c);var p=Object.assign({},__rtconfig);s.hasAttribute("data-study-id")&&(p.studyID=parseInt(s.getAttribute("data-study-id"))),s.hasAttribute("data-initial-page")&&(p.initialPage=s.getAttribute("data-initial-page")),s.hasAttribute("data-distraction-free")&&(p.distractionFree=!!parseInt(s.getAttribute("data-distraction-free"))),s.hasAttribute("data-preview")&&(p.dataPreview=!!parseInt(s.getAttribute("data-preview"))),(0,o.render)((0,o.h)(a.default,{conf:p}),u)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),c=n(4),p=r(c),d=n(15),f=n(1),h=n(21),g=r(h),y=n(26),m=r(y),v=n(12),b=r(v),S=n(30),w=r(S),P=n(7),A=r(P),_=n(11),D=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.handleHistoryUpdate=function(){e.forceUpdate()},e.downloadStudies=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.noop,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.state.conf,o={},i={},a="/studies?";r.siteID&&!n>0&&(a+="location="+r.siteID),n&&(a+="location="+n),r.area&&(a+="&area="+r.area),jQuery.get(r.apiBase+a,function(n){if(n.studies){for(var r=0;r<n.studies.length;r++){var a=n.studies[r];o[a.StudyID]=a,i[a.StudyTypeID]||(i[a.StudyTypeID]=[]),i[a.StudyTypeID].push(a)}e.setState({studies:o,studiesByType:i},function(){return e.downloadStudyTypes(t)})}else console.log("Error: unable to retrieve list of studies ",n)})},e.downloadStudy=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.noop;jQuery.get(e.state.conf.apiBase+"/studies",{StudyID:parseInt(t)},function(r){if(r.studies&&r.studies.length>0){var o={};if(e.state.studies)for(var i in e.state.studies)e.state.studies.hasOwnProperty(i)&&(o[i]=e.state.studies[i]);o[t]=r.studies[0],e.setState({studies:o},n)}else console.log("Error downloading study",r)})},e.downloadStudyTypes=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.noop,n=e.state.conf;if(!n.searchEnabled)return t();jQuery.get(n.apiBase+"/studies/types",function(n){if(n.records){var r=_(n.records,function(e){return parseInt(e.SortOrder)});e.setState({studyTypes:r},function(){jQuery("body").trigger("rtembed.studytypes",n),t()})}else console.log("Error: could not download study types from /studies/types")})},e.handleSearch=function(t,n){if(!(n.indication||n.zipcode||n.lat||n.lng))return void e.setState({searchResults:void 0},function(){jQuery("body").trigger("rtembed.searchresults")});var r=e.state.conf,o={},i={};n.indication=[n.indication],n.location=r.siteID,jQuery.get(r.apiBase+"/studies/search",n,function(t){if(t.status<2){for(var n=0;n<t.records.length;n++){var r=t.records[n];o[r.StudyID]=r,i[r.StudyTypeID]||(i[r.StudyTypeID]=[]),i[r.StudyTypeID].push(r)}e.setState({searchResults:{studies:o,studiesByType:i}},function(){jQuery("body").trigger("rtembed.searchresults")})}else console.log("Error: unable to retrieve list of studies ",t),jQuery("body").trigger("rtembed.error",t)})},e.scrollToTop=function(){var t=document.documentElement.scrollTop||document.body.scrollTop||0,n=e.state.conf.scrollOffset||0,r=t+e.containerRef.getBoundingClientRect().top-n;document.documentElement.scrollTop=r,document.body.scrollTop=r},e.setScrollTop=function(t){"number"!=typeof t?t=document.documentElement.scrollTop||document.body.scrollTop||0:-1===t&&(t=e.containerRef.getBoundingClientRect().top),e.setState({scrollTop:t},function(){e.scrollToTop()})},e.selectCurrentSite=function(t){e.setState({siteID:t})},e.state={conf:e.props.conf,searchResults:void 0,studies:void 0,studiesByType:{},studyTypes:[]},e.indexStrings(e.state.conf),e.state.conf.useHashNav&&(e.history=(0,d.createHashHistory)({hashType:"hashbang"})),e.state.conf.studyAreas&&(e.state.studyTypes=_(e.state.conf.studyAreas,function(e){return parseInt(e.SortOrder)})),e}return a(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this;this.loadJQuery(function(){$=jQuery,e.state.conf.useHashNav||A.default.convertFromOldUrl(e.state.conf),e.downloadStudies(),jQuery("body").on("rtembed.search",e.handleSearch),e.state.conf.useHashNav||(window.addEventListener("popstate",e.handleHistoryUpdate),document.addEventListener("historyUpdated",e.handleHistoryUpdate))})}},{key:"componentWillReceiveProps",value:function(e){e.conf.strings!==this.props.conf.strings&&this.indexStrings(e.conf),e.conf.apiBase===this.props.conf.apiBase&&e.conf.siteID===this.props.conf.siteID||this.downloadStudies(),e.conf.studyAreas!==this.props.conf.studyAreas&&this.setState({studyTypes:_(e.conf.studyAreas,function(e){return parseInt(e.SortOrder)})})}},{key:"componentWillUnmount",value:function(){jQuery("body").off("rtembed.search",this.handleSearch),this.state.conf.useHashNav||(window.removeEventListener("popstate",this.handleHistoryUpdate),document.removeEventListener("historyUpdated",this.handleHistoryUpdate))}},{key:"loadJQuery",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.noop,t=function(){!function(e){!function(e){if(e.support.cors||!e.ajaxTransport||!window.XDomainRequest)return e;var t=/^(https?:)?\/\//i,n=/^get|post$/i,r=new RegExp("^(//|"+location.protocol+")","i");e.ajaxTransport("* text html xml json",function(o,i,a){if(o.crossDomain&&o.async&&n.test(o.type)&&t.test(o.url)&&r.test(o.url)){var s=null;return{send:function(t,n){var r="",a=(i.dataType||"").toLowerCase();s=new XDomainRequest,/^\d+$/.test(i.timeout)&&(s.timeout=i.timeout),s.ontimeout=function(){n(500,"timeout")},s.onload=function(){var t="Content-Length: "+s.responseText.length+"\r\nContent-Type: "+s.contentType,r={code:200,message:"success"},o={text:s.responseText};try{if("html"===a||/text\/html/i.test(s.contentType))o.html=s.responseText;else if("json"===a||"text"!==a&&/\/json/i.test(s.contentType))try{o.json=e.parseJSON(s.responseText)}catch(e){r.code=500,r.message="parseerror"}else if("xml"===a||"text"!==a&&/\/xml/i.test(s.contentType)){var i=new ActiveXObject("Microsoft.XMLDOM");i.async=!1;try{i.loadXML(s.responseText)}catch(e){i=void 0}if(!i||!i.documentElement||i.getElementsByTagName("parsererror").length)throw r.code=500,r.message="parseerror","Invalid XML: "+s.responseText;o.xml=i}}catch(e){throw e}finally{n(r.code,r.message,o,t)}},s.onprogress=function(){},s.onerror=function(){n(500,"error",{text:s.responseText})},i.data&&(r="string"===e.type(i.data)?i.data:e.param(i.data)),s.open(o.type,o.url),s.send(r)},abort:function(){s&&s.abort()}}}})}(jQuery)}(),e()};if("undefined"==typeof jQuery||null===jQuery){var n=document.createElement("script");document.head.appendChild(n),n.onload=t,n.src="https://code.jquery.com/jquery-3.2.1.min.js"}else t()}},{key:"indexStrings",value:function(e){for(var t=e.strings,n={},r={},o=0;o<t.length;o++){var i=t[o];n[i.Name]||(n[i.Name]=[]),n[i.Name].push(i),i.StudyID>0&&(r[i.StudyID]||(r[i.StudyID]=[]),r[i.StudyID].push(i))}this.setState({conf:s({},e,{stringsByName:n,stringsByStudy:r})})}},{key:"getPath",value:function(){var e=A.default.getCurrentPath(),t="/apply"===e.substr(-6);return this.state.conf.studyID&&(e="/study/"+this.state.conf.studyID,("application"===this.state.conf.initialPage||t)&&(e+="/apply"),this.state.conf.useHashNav&&history.replaceState({},document.title,"#!"+e)),e}},{key:"render",value:function(){var e=this,t=this.state,n=t.conf,r=t.scrollTop,o=t.searchResults,i=t.studyTypes,a=n.detailsPageForm,s=o?o.studies:this.state.studies,l=o?o.studiesByType:this.state.studiesByType,c=this.getPath(),d=c&&c.substring(7),f=!1;d&&"/apply"===d.substr(-6)&&(d=d.substr(0,d.length-6),f=!0);this.scrollToTop,this.setScrollTop;return this.state.conf.useHashNav?(0,u.h)("div",{className:"entry-content",ref:function(t){return e.containerRef=t}},(0,u.h)(p.default,{history:this.history},(0,u.h)(g.default,{conf:n,default:!0,isSearching:!!o,scrollTop:r,scrollToTop:this.scrollToTop,setScrollTop:this.setScrollTop,studies:s,studyAreas:i,studiesByType:l,isSinglePageDetailsAndApplication:a}),(0,u.h)(m.default,{conf:n,getStudy:this.downloadStudy,path:"/study/:studyID",onClose:this.handleClose,scrollToTop:this.scrollToTop,setScrollTop:this.setScrollTop,studies:s,isSinglePageDetailsAndApplication:a}),(0,u.h)(b.default,{conf:n,getStudy:this.downloadStudy,path:"/study/:studyID/apply",scrollToTop:this.scrollToTop,setScrollTop:this.setScrollTop,studies:s,isSinglePageDetailsAndApplication:a}))):(0,u.h)("div",{className:"entry-content",ref:function(t){return e.containerRef=t}},!c&&(0,u.h)(g.default,{conf:n,default:!0,isSearching:!!o,scrollTop:r,scrollToTop:this.scrollToTop,setScrollTop:this.setScrollTop,studies:s,studyAreas:i,studiesByType:l,isSinglePageDetailsAndApplication:a}),d&&!f&&(0,u.h)(m.default,{conf:n,getStudy:this.downloadStudy,path:"/study/:studyID",onClose:this.handleClose,scrollToTop:this.scrollToTop,setScrollTop:this.setScrollTop,studies:s,studyID:d,isSinglePageDetailsAndApplication:a}),d&&f&&(0,u.h)(b.default,{conf:n,getStudy:this.downloadStudy,scrollToTop:this.scrollToTop,setScrollTop:this.setScrollTop,studies:s,studyID:d,isSinglePageDetailsAndApplication:a}),(0,u.h)(w.default,{conf:n}))}}]),t}(u.Component);D.defaultProps={conf:{},container:null},t.default=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);n.d(t,"createBrowserHistory",function(){return r.a});var o=n(19);n.d(t,"createHashHistory",function(){return o.a});var i=n(20);n.d(t,"createMemoryHistory",function(){return i.a});var a=n(6);n.d(t,"createLocation",function(){return a.a}),n.d(t,"locationsAreEqual",function(){return a.b});var s=n(2);n.d(t,"parsePath",function(){return s.d}),n.d(t,"createPath",function(){return s.b})},function(e,t,n){"use strict";var r=n(5),o=n.n(r),i=n(9),a=n.n(i),s=n(6),l=n(2),u=n(8),c=n(10),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){try{return window.history.state||{}}catch(e){return{}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(c.b,"Browser history needs a DOM");var t=window.history,n=Object(c.g)(),r=!Object(c.h)(),i=e.forceRefresh,h=void 0!==i&&i,g=e.getUserConfirmation,y=void 0===g?c.c:g,m=e.keyLength,v=void 0===m?6:m,b=e.basename?Object(l.g)(Object(l.a)(e.basename)):"",S=function(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname,u=i.search,c=i.hash,p=a+u+c;return o()(!b||Object(l.c)(p,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+p+'" to begin with "'+b+'".'),b&&(p=Object(l.e)(p,b)),Object(s.a)(p,r,n)},w=function(){return Math.random().toString(36).substr(2,v)},P=Object(u.a)(),A=function(e){d(q,e),q.length=t.length,P.notifyListeners(q.location,q.action)},_=function(e){Object(c.d)(e)||C(S(e.state))},D=function(){C(S(f()))},I=!1,C=function(e){if(I)I=!1,A();else{P.confirmTransitionTo(e,"POP",y,function(t){t?A({action:"POP",location:e}):k(e)})}},k=function(e){var t=q.location,n=j.indexOf(t.key);-1===n&&(n=0);var r=j.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(I=!0,E(o))},O=S(f()),j=[O.key],N=function(e){return b+Object(l.b)(e)},T=function(e,r){o()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=Object(s.a)(e,r,w(),q.location);P.confirmTransitionTo(i,"PUSH",y,function(e){if(e){var r=N(i),a=i.key,s=i.state;if(n)if(t.pushState({key:a,state:s},null,r),h)window.location.href=r;else{var l=j.indexOf(q.location.key),u=j.slice(0,-1===l?0:l+1);u.push(i.key),j=u,A({action:"PUSH",location:i})}else o()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},x=function(e,r){o()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=Object(s.a)(e,r,w(),q.location);P.confirmTransitionTo(i,"REPLACE",y,function(e){if(e){var r=N(i),a=i.key,s=i.state;if(n)if(t.replaceState({key:a,state:s},null,r),h)window.location.replace(r);else{var l=j.indexOf(q.location.key);-1!==l&&(j[l]=i.key),A({action:"REPLACE",location:i})}else o()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},E=function(e){t.go(e)},F=function(){return E(-1)},L=function(){return E(1)},B=0,R=function(e){B+=e,1===B?(Object(c.a)(window,"popstate",_),r&&Object(c.a)(window,"hashchange",D)):0===B&&(Object(c.e)(window,"popstate",_),r&&Object(c.e)(window,"hashchange",D))},M=!1,V=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=P.setPrompt(e);return M||(R(1),M=!0),function(){return M&&(M=!1,R(-1)),t()}},U=function(e){var t=P.appendListener(e);return R(1),function(){R(-1),t()}},q={length:t.length,action:"POP",location:O,createHref:N,push:T,replace:x,go:E,goBack:F,goForward:L,block:V,listen:U};return q};t.a=h},function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&r(e),s=t&&r(t),l=a||s;if(e&&r(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var u=void 0;if(i.length){var c=i[i.length-1];u="."===c||".."===c||""===c}else u=!1;for(var p=0,d=i.length;d>=0;d--){var f=i[d];"."===f?o(i,d):".."===f?(o(i,d),p++):p&&(o(i,d),p--)}if(!l)for(;p--;p)i.unshift("..");!l||""===i[0]||i[0]&&r(i[0])||i.unshift("");var h=i.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h}t.a=i},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});var n=void 0===e?"undefined":o(e);if(n!==(void 0===t?"undefined":o(t)))return!1;if("object"===n){var i=e.valueOf(),a=t.valueOf();if(i!==e||a!==t)return r(i,a);var s=Object.keys(e),l=Object.keys(t);return s.length===l.length&&s.every(function(n){return r(e[n],t[n])})}return!1}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a=r},function(e,t,n){"use strict";var r=n(5),o=n.n(r),i=n(9),a=n.n(i),s=n(6),l=n(2),u=n(8),c=n(10),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Object(l.f)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:l.f,decodePath:l.a},slash:{encodePath:l.a,decodePath:l.a}},f=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},h=function(e){return window.location.hash=e},g=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(c.b,"Hash history needs a DOM");var t=window.history,n=Object(c.f)(),r=e.getUserConfirmation,i=void 0===r?c.c:r,y=e.hashType,m=void 0===y?"slash":y,v=e.basename?Object(l.g)(Object(l.a)(e.basename)):"",b=d[m],S=b.encodePath,w=b.decodePath,P=function(){var e=w(f());return o()(!v||Object(l.c)(e,v),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+v+'".'),v&&(e=Object(l.e)(e,v)),Object(s.a)(e)},A=Object(u.a)(),_=function(e){p(H,e),H.length=t.length,A.notifyListeners(H.location,H.action)},D=!1,I=null,C=function(){var e=f(),t=S(e);if(e!==t)g(t);else{var n=P(),r=H.location;if(!D&&Object(s.b)(r,n))return;if(I===Object(l.b)(n))return;I=null,k(n)}},k=function(e){if(D)D=!1,_();else{A.confirmTransitionTo(e,"POP",i,function(t){t?_({action:"POP",location:e}):O(e)})}},O=function(e){var t=H.location,n=x.lastIndexOf(Object(l.b)(t));-1===n&&(n=0);var r=x.lastIndexOf(Object(l.b)(e));-1===r&&(r=0);var o=n-r;o&&(D=!0,B(o))},j=f(),N=S(j);j!==N&&g(N);var T=P(),x=[Object(l.b)(T)],E=function(e){return"#"+S(v+Object(l.b)(e))},F=function(e,t){o()(void 0===t,"Hash history cannot push state; it is ignored");var n=Object(s.a)(e,void 0,void 0,H.location);A.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=Object(l.b)(n),r=S(v+t);if(f()!==r){I=t,h(r);var i=x.lastIndexOf(Object(l.b)(H.location)),a=x.slice(0,-1===i?0:i+1);a.push(t),x=a,_({action:"PUSH",location:n})}else o()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),_()}})},L=function(e,t){o()(void 0===t,"Hash history cannot replace state; it is ignored");var n=Object(s.a)(e,void 0,void 0,H.location);A.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=Object(l.b)(n),r=S(v+t);f()!==r&&(I=t,g(r));var o=x.indexOf(Object(l.b)(H.location));-1!==o&&(x[o]=t),_({action:"REPLACE",location:n})}})},B=function(e){o()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},R=function(){return B(-1)},M=function(){return B(1)},V=0,U=function(e){V+=e,1===V?Object(c.a)(window,"hashchange",C):0===V&&Object(c.e)(window,"hashchange",C)},q=!1,Q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=A.setPrompt(e);return q||(U(1),q=!0),function(){return q&&(q=!1,U(-1)),t()}},z=function(e){var t=A.appendListener(e);return U(1),function(){U(-1),t()}},H={length:t.length,action:"POP",location:T,createHref:E,push:F,replace:L,go:B,goBack:R,goForward:M,block:Q,listen:z};return H};t.a=y},function(e,t,n){"use strict";var r=n(5),o=n.n(r),i=n(2),a=n(6),s=n(8),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e,t,n){return Math.min(Math.max(e,t),n)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,p=e.initialIndex,d=void 0===p?0:p,f=e.keyLength,h=void 0===f?6:f,g=Object(s.a)(),y=function(e){u(O,e),O.length=O.entries.length,g.notifyListeners(O.location,O.action)},m=function(){return Math.random().toString(36).substr(2,h)},v=c(d,0,r.length-1),b=r.map(function(e){return"string"==typeof e?Object(a.a)(e,void 0,m()):Object(a.a)(e,void 0,e.key||m())}),S=i.b,w=function(e,n){o()(!("object"===(void 0===e?"undefined":l(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(a.a)(e,n,m(),O.location);g.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=O.index,n=t+1,o=O.entries.slice(0);o.length>n?o.splice(n,o.length-n,r):o.push(r),y({action:"PUSH",location:r,index:n,entries:o})}})},P=function(e,n){o()(!("object"===(void 0===e?"undefined":l(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(a.a)(e,n,m(),O.location);g.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(O.entries[O.index]=r,y({action:"REPLACE",location:r}))})},A=function(e){var n=c(O.index+e,0,O.entries.length-1),r=O.entries[n];g.confirmTransitionTo(r,"POP",t,function(e){e?y({action:"POP",location:r,index:n}):y()})},_=function(){return A(-1)},D=function(){return A(1)},I=function(e){var t=O.index+e;return t>=0&&t<O.entries.length},C=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g.setPrompt(e)},k=function(e){return g.appendListener(e)},O={length:b.length,action:"POP",location:b[v],index:v,entries:b,createHref:S,push:w,replace:P,go:A,goBack:_,goForward:D,canGo:I,block:C,listen:k};return O};t.a=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=n(3),c=r(u),p=n(22),d=r(p),f=n(7),h=r(f),g=n(1),y=n(25),m=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),p=0;p<s;p++)u[p]=arguments[p];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.setScrollTop=function(){r.props.setScrollTop()},r.scrollToStudy=function(e){var t=r.containerRef.querySelector('div[data-study-id="'+e+'"]');(0,g.scrollTo)(jQuery(t))},r.handleClickLink=function(e){e.preventDefault(),(0,g.handleLink)(e.currentTarget,e.currentTarget.getAttribute("href"),r.setScrollTop)},r.renderStudyArea=function(e){var t=r.props.studiesByType,n=t[e.StudyTypeID]||null;return n&&0!==n.length?(0,l.h)("div",null,(0,l.h)("h2",{className:"osArea"},e.Title),n&&n.map(r.renderStudy)):null},r.renderStudy=function(e){var t=r.props.conf;return(0,l.h)("div",{className:"osListing",style:"width: 100%;","data-study-id":e.StudyID},(0,l.h)("div",{className:"osBox osThumb"},e.hasOwnProperty("Thumb")&&(0,l.h)(h.default,{conf:r.props.conf,path:"#!/study/"+e.StudyID,onClick:r.handleClickLink},(0,l.h)("img",{src:(0,g.getStudyAsset)(e.Thumb,e.StudyID,r.props.conf)})),!e.hasOwnProperty("Thumb")&&(0,l.h)("div",{style:{width:"125px"}})),(0,l.h)("div",{className:"osBox osDetail"},(0,l.h)("h2",null,e.Title),e.hasOwnProperty("Comment")&&(0,l.h)("p",{dangerouslySetInnerHTML:{__html:e.Comment}}),(0,l.h)("div",{className:"rt-study-area-buttons",style:{marginTop:30}},(0,l.h)("input",{style:{marginRight:20},className:"osButton osButton-inline",onClick:function(t){return(0,g.handleLink)(t.currentTarget,h.default.getUrl("#!/study/"+e.StudyID,!1,r.props.conf),r.props.scrollToTop)},type:"button",value:c.default.getString("webint.study-details",t,e.StudyID)}),!r.props.isSinglePageDetailsAndApplication&&(0,l.h)("input",{className:"osButton osButton-inline",onClick:function(t){return(0,g.handleLink)(t.currentTarget,h.default.getUrl("#!/study/"+e.StudyID+"/apply",!1,r.props.conf),r.props.scrollToTop)},type:"button",value:c.default.getString("webint.apply-for-study",t,e.StudyID,"Apply Now")}))),(0,l.h)("div",{className:"osClear"}))},a=n,i(r,a)}return a(t,e),s(t,[{key:"componentDidMount",value:function(){document.documentElement.scrollTop=this.props.scrollTop,document.body.scrollTop=this.props.scrollTop}},{key:"componentWillReceiveProps",value:function(e){e.isSearching&&this.props.studiesByType!==e.studiesByType&&(0,g.scrollTo)(jQuery(this.containerRef))}},{key:"render",value:function(){var e=this,t=this.props,n=t.conf,r=t.isSearching,o=t.studies,i=y(o).map(function(e){return e.Keyword&&{Keyword:e.Keyword,StudyID:e.StudyID}}).filter(function(e){return!!e}),a=i.length>0;return(0,l.h)("div",{ref:function(t){return e.containerRef=t}},(0,l.h)("div",{class:"osHeader"},(0,l.h)("div",{class:"osTitle"},(0,l.h)(c.default,{conf:n,name:"webint.heading"}))),(0,l.h)(d.default,{keywords:a?i:n.keywords,hideIfEmpty:r,scrollToStudy:this.scrollToStudy,studies:o}),(0,l.h)("br",null),(0,l.h)("br",null),n.studyAreas.map(this.renderStudyArea))}}]),t}(l.Component);m.defaultProps={conf:{},isSearching:!1,scrollTop:0,scrollToTop:function(){},setScrollTop:function(){},studies:{},studiesByType:{},studyAreas:[]},t.default=m},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=n(11),u=function(e){function t(){var e,n,i,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),i.handleClick=function(e){e.preventDefault();var t=e.target.getAttribute("data-study-id");i.props.scrollToStudy(t)},a=n,o(i,a)}return i(t,e),a(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.cols,r=t.hideIfEmpty,o=t.keywords,i=t.studies;o=r?o.filter(function(e){return!!i[e.StudyID]}):o,o=l(o,function(e){return e.Keyword});for(var a=Math.ceil(o.length/n),u=[],c=0;c<n;c++)u.push(o.slice(c*a,c*a+a));return(0,s.h)("div",null,u.map(function(t){return(0,s.h)("div",{className:"osBox osBox-33 osContent rt-keyword-container"},t.map(function(t){return(0,s.h)("p",{className:"osStudyItem"},(0,s.h)("a",{className:"rt-keyword","data-study-id":t.StudyID,href:"#!",onClick:e.handleClick},t.Keyword))}))}),(0,s.h)("div",{className:"osClear"}))}}]),t}(s.Component);u.defaultProps={cols:3,hideIfEmpty:!1,keywords:[],scrollToStudy:function(){},studies:{}},t.default=u},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){function n(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function o(e,t){return n(t,function(t){return e[t]})}function i(e,t){var n=k(e)||u(e)?r(e.length,String):[],o=n.length,i=!!o;for(var a in e)!t&&!_.call(e,a)||i&&("length"==a||s(a,o))||n.push(a);return n}function a(e){if(!l(e))return C(e);var t=[];for(var n in Object(e))_.call(e,n)&&"constructor"!=n&&t.push(n);return t}function s(e,t){return!!(t=null==t?v:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function l(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function u(e){return p(e)&&_.call(e,"callee")&&(!I.call(e,"callee")||D.call(e)==b)}function c(e){return null!=e&&f(e.length)&&!d(e)}function p(e){return g(e)&&c(e)}function d(e){var t=h(e)?D.call(e):"";return t==S||t==w}function f(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=v}function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){return!!e&&"object"==typeof e}function y(e){return c(e)?i(e):a(e)}function m(e){return e?o(e,y(e)):[]}var v=9007199254740991,b="[object Arguments]",S="[object Function]",w="[object GeneratorFunction]",P=/^(?:0|[1-9]\d*)$/,A=Object.prototype,_=A.hasOwnProperty,D=A.toString,I=A.propertyIsEnumerable,C=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),k=Array.isArray;e.exports=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=(n(4),n(12)),c=r(u),p=n(3),d=r(p),f=n(7),h=r(f),g=n(1),y=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={detailsConversionScriptInjected:!1},e}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.props.scrollToTop(),this.injectDetailsConversionScript()}},{key:"componentWillReceiveProps",value:function(e){if(jQuery&&(e.studies!==this.props.studies||e.studyID!==this.props.studyID)){e.studies&&e.studies[e.studyID]||e.getStudy(parseInt(e.studyID))}}},{key:"renderApplicationButton",value:function(e){var t=this,n=this.props,r=n.conf,o=n.scrollToTop,i="/study/"+this.props.studyID+"/apply";return(0,l.h)("div",{className:"osPad-10 osCenter"},(0,l.h)("input",{className:"rt-study-application-button osButton",onClick:function(e){return(0,g.handleLink)(e.currentTarget,h.default.getUrl(i,!1,t.props.conf),o)},type:"button",value:d.default.getString("webint.apply-for-this-study",r,e,"Apply for this Study Now")}))}},{key:"injectDetailsConversionScript",value:function(){var e=this.props,t=e.studies,n=e.studyID,r=t&&t[n]?t[n]:null;r&&r.ConversionStudyDetails&&!this.state.detailsConversionScriptInjected&&this.setState({detailsConversionScriptInjected:!0},function(){jQuery("body").append(jQuery(r.ConversionStudyDetails))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.conf,r=t.scrollToTop,o=(t.setScrollTop,t.studies),i=t.studyID,a=null;if(!(a=o&&i&&o[i]))return null;var s=function(e){return(0,l.h)("img",{className:"osBorder",ref:function(t){t&&t.removeAttribute("src"),t&&t.setAttribute("src",e)},style:{border:0,objectFit:"contain"}})},u=this.props.isSinglePageDetailsAndApplication?"rt-study-content-single-page":"rt-study-content";return(0,l.h)("div",{id:"studyDetail-"+i,ref:function(){return e.props.scrollToTop()}},!this.props.conf.distractionFree&&(0,l.h)("div",{className:"osTitle"},(0,l.h)(h.default,{conf:this.props.conf,className:"rt-home-button",isDisabled:this.props.conf.studyID,style:{cursor:"pointer"},path:"#!"},d.default.getString("webint.research-studies",n,i))," ","»"," ",a.Title),(0,l.h)("div",{className:this.props.isSinglePageDetailsAndApplication?"rt-study-content-singlepage-studydetails":"osListing osContent"},(0,l.h)("div",{className:"rt-study-listing"},!this.props.isSinglePageDetailsAndApplication&&this.renderApplicationButton(a.StudyID),(0,l.h)("div",{className:u},(!!a.Image1||!!a.Image2)&&(0,l.h)("div",{className:"rt-study-content-flyer"},!!a.Image1&&(0,l.h)("div",{className:"osPad-10 osCenter osFlyer"},!this.props.isSinglePageDetailsAndApplication&&(0,l.h)("a",{className:"rt-study-application-button",onClick:function(t){return(0,g.handleLink)(t.currentTarget,e.props.isSinglePageDetailsAndApplication?"/study/"+i+"/":"/study/"+i+"/apply",r)},style:{cursor:"pointer"}},s((0,g.getStudyAsset)(a.Image1,a.StudyID,n))),this.props.isSinglePageDetailsAndApplication&&s((0,g.getStudyAsset)(a.Image1,a.StudyID,n))),!!a.Image2&&(0,l.h)("div",{className:"osPad-10 osCenter osFlyer"},(0,l.h)("p",null,!this.props.isSinglePageDetailsAndApplication&&(0,l.h)("a",{className:"rt-study-application-button",onClick:function(t){return(0,g.handleLink)(t.currentTarget,e.props.isSinglePageDetailsAndApplication?"/study/"+i+"/":"/study/"+i+"/apply",r)},style:{cursor:"pointer"}},s((0,g.getStudyAsset)(a.Image2,a.StudyID,n))),this.props.isSinglePageDetailsAndApplication&&s((0,g.getStudyAsset)(a.Image2,a.StudyID,n))))),(0,l.h)("div",{className:"rt-study-content-info"},(0,l.h)("div",{className:"osTitle"},a.Title),(0,l.h)("div",{className:"osPad-10 osWebStory",dangerouslySetInnerHTML:{__html:a.WebStory}}),!!a.Flyer&&(0,l.h)("div",{className:"osPad-10"},(0,l.h)("p",null,(0,l.h)("a",{href:(0,g.getStudyAsset)(a.Flyer,a.StudyID,n),target:"_blank"},(0,l.h)("img",{alt:"Printable Clinical Research Flyer",src:(0,g.getSharedAsset)("pdf.gif",n),style:{height:"20px",width:"20px",border:0,display:"inline"}}),"Printable Clinical Research Flyer"))))),!!(a.Image1||a.Image2||a.WebStudy||a.Flyer)&&!this.props.isSinglePageDetailsAndApplication&&this.renderApplicationButton(a.StudyID))),this.props.isSinglePageDetailsAndApplication&&(0,l.h)(c.default,{conf:n,studies:o,studyID:i,updateAppLoaded:this.applicationComponentDidUpdate,isSinglePageDetailsAndApplication:this.props.isSinglePageDetailsAndApplication}))}}]),t}(l.Component);y.defaultProps={conf:{},getStudy:function(){},scrollToTop:function(){},setScrollTop:function(){},studies:{},studyID:0},t.default=y},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=n(3),c=function(e){return e&&e.__esModule?e:{default:e}}(u),p=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.handleSearch=function(t){var n=t.target.value;e.setState({searchStr:n})},e.handleSelect=function(t){var n=t.target,o=void 0;if(n.checked)o=t.target.value?1===e.props.value.length&&""===e.props.value[0]?[t.target.value.toLowerCase()]:[].concat(r(e.props.value),[t.target.value.toLowerCase()]):[""];else{var i=e.props.value.indexOf(n.value.toLowerCase());i>-1&&(o=[].concat(r(e.props.value)),o.splice(i,1))}e.props.clearSearchOnSelect&&e.setState({searchStr:""}),e.props.onChangeValue(o)},e.renderOption=function(t){if(e.state.searchStr&&-1===t.Label.toLowerCase().indexOf(e.state.searchStr.toLowerCase()))return null;var n=t.hasOwnProperty("Value")?t.Value:t.Label;return"No Medical Conditions"===t.Label&&(t.Label=c.default.getString("webint.label.no-medical-conditions",e.props.conf,e.props.studyID,"No Medical Conditions")),"None"===t.Label&&(t.Label=c.default.getString("webint.label.none",e.props.conf,e.props.studyID,"None")),(0,l.h)("p",{key:t.Label},(0,l.h)("label",null,(0,l.h)("input",{checked:e.props.value.indexOf(n.toLowerCase())>-1,name:e.props.name+"[]",onClick:e.handleSelect,style:{marginRight:"10px"},type:"checkbox",value:n}),t.Label))},e.state={searchStr:""},e}return a(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.name,r=t.noneLabel,o=t.options,i=t.value;return(0,l.h)("div",{style:{display:"flex",flexDirection:"column",height:"256px",position:"relative"}},(0,l.h)("div",{style:{position:"relative"}},(0,l.h)("input",{"data-field":"search_"+n,onInput:this.handleSearch,placeholder:c.default.getString("webint.label.search-placeholder",this.props.conf,this.props.studyID,"Search..."),style:{marginBottom:"8px",paddingBottom:"2px",paddingTop:"2px"},type:"text",value:this.state.searchStr}),!!this.state.searchStr&&(0,l.h)("div",{onClick:function(){return e.setState({searchStr:""})},style:{alignItems:"center",bottom:0,cursor:"pointer",display:"flex",marginBottom:"8px",padding:"4px",position:"absolute",right:"6px",top:0}},"X")),(0,l.h)("div",{style:{flex:1,height:"140px",overflowY:"auto",overflowX:"hidden",marginBottom:i.length>0?"10px":0}},this.renderOption({Label:r,Value:""}),o.map(this.renderOption)),i.length>0&&(0,l.h)("div",null,(0,l.h)("a",{href:"#!",onClick:function(t){t.preventDefault(),e.props.onChangeValue([])}},c.default.getString("webint.label.clear-selection",this.props.conf,this.props.studyID,"Clear Selection"))))}}]),t}(l.Component);p.defaultProps={clearSearchOnSelect:!0,name:"",noneLabel:"None",onChangeValue:function(){},options:[],value:[]},t.default=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=n(3),c=function(e){return e&&e.__esModule?e:{default:e}}(u),p=function(e){function t(){var e,n,i,s;r(this,t);for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.handleSetYear=function(e){var t=e.target,n=i.props.value.split("-"),r=a(n,3),o=r[0],s=r[1],l=r[2];o=t.value;var u=new Date(o||2017,s&&parseInt(s)-1,l);l&&u.getDate()!==parseInt(l)&&(o||2!==parseInt(t.value)||parseInt(l)>29)&&(l="");var c=(o||"")+"-";c+=(s||"")+"-",c+=l||"",i.props.onChangeValue(c)},i.handleSetMonth=function(e){var t=e.target,n=i.props.value.split("-"),r=a(n,3),o=r[0],s=r[1],l=r[2];s=t.value;var u=new Date(o||2017,s&&parseInt(s)-1,l);l&&u.getDate()!==parseInt(l)&&(o||2!==parseInt(t.value)||parseInt(l)>29)&&(l="");var c=(o||"")+"-";c+=(s||"")+"-",c+=l||"",i.props.onChangeValue(c)},i.handleSetDay=function(e){var t=e.target,n=i.props.value.split("-"),r=a(n,3),o=r[0],s=r[1],l=r[2];l=t.value;var u=new Date(o||2017,s&&parseInt(s)-1,l);l&&u.getDate()!==parseInt(l)&&(o||2!==parseInt(t.value)||parseInt(l)>29)&&(s="");var c=(o||"")+"-";c+=(s||"")+"-",c+=l||"",i.props.onChangeValue(c)},s=n,o(i,s)}return i(t,e),s(t,[{key:"renderRange",value:function(e,t,n){var r=[];if(n)for(var o=t-1;o>=e;o--){var i=o<10?"0"+o:""+o;r.push((0,l.h)("option",{key:o,value:i},i))}else for(var a=e;a<t;a++){var s=a<10?"0"+a:""+a;r.push((0,l.h)("option",{key:a,value:s},s))}return r}},{key:"render",value:function(){var e=this.props,n=e.style,r=e.value,o=e.conf,i=r?r.split("-"):["","",""],a={marginRight:"10px"};for(var s in n)a[s]=n[s];return(0,l.h)("div",null,(0,l.h)("select",{"data-field":"dob_day",onChange:this.handleSetDay,style:a,value:i[2]},(0,l.h)("option",{value:""},c.default.getString("webint.label.default-day-label",o,null,"DD")),this.renderRange(1,32)),(0,l.h)("select",{onChange:this.handleSetMonth,style:a,value:i[1]},(0,l.h)("option",{value:"",defaultValue:!0},c.default.getString("webint.label.default-month-label",o,null,"MMM")),(0,l.h)("option",{value:"01"},c.default.getString("webint.option.month.january",o,null,"JAN")),(0,l.h)("option",{value:"02"},c.default.getString("webint.option.month.february",o,null,"FEB")),(0,l.h)("option",{value:"03"},c.default.getString("webint.option.month.march",o,null,"MAR")),(0,l.h)("option",{value:"04"},c.default.getString("webint.option.month.april",o,null,"APR")),(0,l.h)("option",{value:"05"},c.default.getString("webint.option.month.may",o,null,"MAY")),(0,l.h)("option",{value:"06"},c.default.getString("webint.option.month.june",o,null,"JUN")),(0,l.h)("option",{value:"07"},c.default.getString("webint.option.month.july",o,null,"JUL")),(0,l.h)("option",{value:"08"},c.default.getString("webint.option.month.august",o,null,"AUG")),(0,l.h)("option",{value:"09"},c.default.getString("webint.option.month.september",o,null,"SEP")),(0,l.h)("option",{value:"10"},c.default.getString("webint.option.month.october",o,null,"OCT")),(0,l.h)("option",{value:"11"},c.default.getString("webint.option.month.november",o,null,"NOV")),(0,l.h)("option",{value:"12"},c.default.getString("webint.option.month.december",o,null,"DEC"))),(0,l.h)("select",{onChange:this.handleSetYear,style:n,value:i[0]},(0,l.h)("option",{value:""},c.default.getString("webint.label.default-year-label",o,null,"YYYY")),this.renderRange(1900,parseInt(t.curDate.getFullYear())+1,!0)))}}]),t}(l.Component);p.defaultProps={onChangeValue:function(){},style:{},value:""},p.curDate=new Date,t.default=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleToggle=function(e){e.preventDefault(),n.setState({visible:!n.state.visible})},n.handleChange=function(e){1==n.props.international&&n.setState({value:e.target.value.replace(/[^\w\s\][\-,]/gi,"")},function(){n.props.onChangeValue(n.state.value)}),0==n.props.international&&n.setState({value:e.target.value.replace(/\D/g,"")},function(){n.props.onChangeValue(n.state.value)})},n.state={value:e.defaultValue,visible:!1},n}return i(t,e),a(t,[{key:"render",value:function(){return(0,s.h)("span",{style:{display:"inline-block"}},(0,s.h)("span",{style:{display:"inline-block"}},this.state.visible&&(0,s.h)("input",{name:this.props.name,type:"text",maxLength:this.props.maxLength,value:this.state.value,className:this.props.className,style:this.props.style,disabled:this.props.disabled,readOnly:this.props.readOnly,onInput:this.handleChange,autoComplete:"off"}),!this.state.visible&&(0,s.h)("input",{name:this.props.name,type:"password",maxLength:this.props.maxLength,value:this.state.value,className:this.props.className,style:this.props.style,disabled:this.props.disabled,readOnly:this.props.readOnly,onInput:this.handleChange,autoComplete:"off"})),this.state.value&&(0,s.h)("a",{href:"#!",onClick:this.handleToggle,style:{marginLeft:10,boxShadow:"none"},title:this.state.visible?"Hide contents":"View contents"},this.state.visible?(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20px",height:"20px",viewBox:"0 0 576 512"},(0,s.h)("path",{d:"M272.702 359.139c-80.483-9.011-136.212-86.886-116.93-167.042l116.93 167.042zM288 392c-102.556 0-192.092-54.701-240-136 21.755-36.917 52.1-68.342 88.344-91.658l-27.541-39.343C67.001 152.234 31.921 188.741 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.004 376.006 168.14 440 288 440a332.89 332.89 0 0 0 39.648-2.367l-32.021-45.744A284.16 284.16 0 0 1 288 392zm281.354-111.631c-33.232 56.394-83.421 101.742-143.554 129.492l48.116 68.74c3.801 5.429 2.48 12.912-2.949 16.712L450.23 509.83c-5.429 3.801-12.912 2.48-16.712-2.949L102.084 33.399c-3.801-5.429-2.48-12.912 2.949-16.712L125.77 2.17c5.429-3.801 12.912-2.48 16.712 2.949l55.526 79.325C226.612 76.343 256.808 72 288 72c119.86 0 224.996 63.994 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM528 256c-44.157-74.933-123.677-127.27-216.162-135.007C302.042 131.078 296 144.83 296 160c0 30.928 25.072 56 56 56s56-25.072 56-56l-.001-.042c30.632 57.277 16.739 130.26-36.928 171.719l26.695 38.135C452.626 346.551 498.308 306.386 528 256z"})):(0,s.h)("svg",{version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"20px",height:"20px",viewBox:"0 0 511.626 511.626",style:"enable-background:new 0 0 511.626 511.626;",xmlSpace:"preserve"},(0,s.h)("g",null,(0,s.h)("path",{d:"M505.918,236.117c-26.651-43.587-62.485-78.609-107.497-105.065c-45.015-26.457-92.549-39.687-142.608-39.687 c-50.059,0-97.595,13.225-142.61,39.687C68.187,157.508,32.355,192.53,5.708,236.117C1.903,242.778,0,249.345,0,255.818 c0,6.473,1.903,13.04,5.708,19.699c26.647,43.589,62.479,78.614,107.495,105.064c45.015,26.46,92.551,39.68,142.61,39.68 c50.06,0,97.594-13.176,142.608-39.536c45.012-26.361,80.852-61.432,107.497-105.208c3.806-6.659,5.708-13.223,5.708-19.699 C511.626,249.345,509.724,242.778,505.918,236.117z M194.568,158.03c17.034-17.034,37.447-25.554,61.242-25.554 c3.805,0,7.043,1.336,9.709,3.999c2.662,2.664,4,5.901,4,9.707c0,3.809-1.338,7.044-3.994,9.704 c-2.662,2.667-5.902,3.999-9.708,3.999c-16.368,0-30.362,5.808-41.971,17.416c-11.613,11.615-17.416,25.603-17.416,41.971 c0,3.811-1.336,7.044-3.999,9.71c-2.667,2.668-5.901,3.999-9.707,3.999c-3.809,0-7.044-1.334-9.71-3.999 c-2.667-2.666-3.999-5.903-3.999-9.71C169.015,195.482,177.535,175.065,194.568,158.03z M379.867,349.04 c-38.164,23.12-79.514,34.687-124.054,34.687c-44.539,0-85.889-11.56-124.051-34.687s-69.901-54.2-95.215-93.222 c28.931-44.921,65.19-78.518,108.777-100.783c-11.61,19.792-17.417,41.207-17.417,64.236c0,35.216,12.517,65.329,37.544,90.362 s55.151,37.544,90.362,37.544c35.214,0,65.329-12.518,90.362-37.544s37.545-55.146,37.545-90.362 c0-23.029-5.808-44.447-17.419-64.236c43.585,22.265,79.846,55.865,108.776,100.783C449.767,294.84,418.031,325.913,379.867,349.04 z"})))))}}]),t}(s.Component);l.defaultProps={name:"fieldName",editable:!0,defaultValue:"",className:"",style:{},readOnly:!1,disabled:!1,maxLength:"maxLength",international:"international"},t.default=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),l=n(1),u=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"render",value:function(){var e=this.props.conf,t="Powered By RealTime-CTMS Clinical Trial Management System";return(0,s.h)("div",{className:"rt-branding",style:{paddingTop:"15px"}},(0,s.h)("a",{href:"http://www.realtime-ctms.com/",target:"_blank"},(0,s.h)("img",{alt:t,src:(0,l.getSharedAsset)("rt_logo_sm.png",e),style:{border:0,maxHeight:"45px"},title:t})))}}]),t}(s.Component);u.defaultProps={conf:{}},t.default=u}]);})();