PageSourceSearch

https://erdingtonelim.org/wp-content/plugins/gatherova/js/dist/forms.js?ver=1790807369

js erdingtonelim.org collected 2026-10-02 02:05:08 UTC 134,209 bytes, 1 lines download raw bytes

1var gwp_countries=["\u{1F1E6}\u{1F1EB} Afghanistan","\u{1F1E6}\u{1F1F1} Albania","\u{1F1E9}\u{1F1FF} Algeria","\u{1F1E6}\u{1F1E9} Andorra","\u{1F1E6}\u{1F1F4} Angola","\u{1F1E6}\u{1F1EC} Antigua and Barbuda","\u{1F1E6}\u{1F1F7} Argentina","\u{1F1E6}\u{1F1F2} Armenia","\u{1F1E6}\u{1F1FA} Australia","\u{1F1E6}\u{1F1F9} Austria","\u{1F1E6}\u{1F1FF} Azerbaijan","\u{1F1E7}\u{1F1F8} Bahamas","\u{1F1E7}\u{1F1ED} Bahrain","\u{1F1E7}\u{1F1E9} Bangladesh","\u{1F1E7}\u{1F1E7} Barbados","\u{1F1E7}\u{1F1FE} Belarus","\u{1F1E7}\u{1F1EA} Belgium","\u{1F1E7}\u{1F1FF} Belize","\u{1F1E7}\u{1F1EF} Benin","\u{1F1E7}\u{1F1F9} Bhutan","\u{1F1E7}\u{1F1F4} Bolivia","\u{1F1E7}\u{1F1E6} Bosnia and Herzegovina","\u{1F1E7}\u{1F1FC} Botswana","\u{1F1E7}\u{1F1F7} Brazil","\u{1F1E7}\u{1F1F3} Brunei","\u{1F1E7}\u{1F1EC} Bulgaria","\u{1F1E7}\u{1F1EB} Burkina Faso","\u{1F1E7}\u{1F1EE} Burundi","\u{1F1F0}\u{1F1ED} Cambodia","\u{1F1E8}\u{1F1F2} Cameroon","\u{1F1E8}\u{1F1E6} Canada","\u{1F1E8}\u{1F1FB} Cape Verde","\u{1F1E8}\u{1F1EB} Central African Republic","\u{1F1F9}\u{1F1E9} Chad","\u{1F1E8}\u{1F1F1} Chile","\u{1F1E8}\u{1F1F3} China","\u{1F1E8}\u{1F1F4} Colombia","\u{1F1F0}\u{1F1F2} Comoros","\u{1F1E8}\u{1F1EC} Congo","\u{1F1E8}\u{1F1F7} Costa Rica","\u{1F1ED}\u{1F1F7} Croatia","\u{1F1E8}\u{1F1FA} Cuba","\u{1F1E8}\u{1F1FE} Cyprus","\u{1F1E8}\u{1F1FF} Czech Republic","\u{1F1E9}\u{1F1F0} Denmark","\u{1F1E9}\u{1F1EF} Djibouti","\u{1F1E9}\u{1F1F2} Dominica","\u{1F1E9}\u{1F1F4} Dominican Republic","\u{1F1EA}\u{1F1E8} Ecuador","\u{1F1EA}\u{1F1EC} Egypt","\u{1F1F8}\u{1F1FB} El Salvador","\u{1F1EC}\u{1F1F6} Equatorial Guinea","\u{1F1EA}\u{1F1F7} Eritrea","\u{1F1EA}\u{1F1EA} Estonia","\u{1F1F8}\u{1F1FF} Eswatini","\u{1F1EA}\u{1F1F9} Ethiopia","\u{1F1EB}\u{1F1EF} Fiji","\u{1F1EB}\u{1F1EE} Finland","\u{1F1EB}\u{1F1F7} France","\u{1F1EC}\u{1F1E6} Gabon","\u{1F1EC}\u{1F1F2} Gambia","\u{1F1EC}\u{1F1EA} Georgia","\u{1F1E9}\u{1F1EA} Germany","\u{1F1EC}\u{1F1ED} Ghana","\u{1F1EC}\u{1F1F7} Greece","\u{1F1EC}\u{1F1E9} Grenada","\u{1F1EC}\u{1F1F9} Guatemala","\u{1F1EC}\u{1F1F3} Guinea","\u{1F1EC}\u{1F1FC} Guinea-Bissau","\u{1F1EC}\u{1F1FE} Guyana","\u{1F1ED}\u{1F1F9} Haiti","\u{1F1ED}\u{1F1F3} Honduras","\u{1F1ED}\u{1F1FA} Hungary","\u{1F1EE}\u{1F1F8} Iceland","\u{1F1EE}\u{1F1F3} India","\u{1F1EE}\u{1F1E9} Indonesia","\u{1F1EE}\u{1F1F7} Iran","\u{1F1EE}\u{1F1F6} Iraq","\u{1F1EE}\u{1F1EA} Ireland","\u{1F1EE}\u{1F1F1} Israel","\u{1F1EE}\u{1F1F9} Italy","\u{1F1E8}\u{1F1EE} Ivory Coast","\u{1F1EF}\u{1F1F2} Jamaica","\u{1F1EF}\u{1F1F5} Japan","\u{1F1EF}\u{1F1F4} Jordan","\u{1F1F0}\u{1F1FF} Kazakhstan","\u{1F1F0}\u{1F1EA} Kenya","\u{1F1F0}\u{1F1EE} Kiribati","\u{1F1F0}\u{1F1F5} North Korea","\u{1F1F0}\u{1F1F7} South Korea","\u{1F1FD}\u{1F1F0} Kosovo","\u{1F1F0}\u{1F1FC} Kuwait","\u{1F1F0}\u{1F1EC} Kyrgyzstan","\u{1F1F1}\u{1F1E6} Laos","\u{1F1F1}\u{1F1FB} Latvia","\u{1F1F1}\u{1F1E7} Lebanon","\u{1F1F1}\u{1F1F8} Lesotho","\u{1F1F1}\u{1F1F7} Liberia","\u{1F1F1}\u{1F1FE} Libya","\u{1F1F1}\u{1F1EE} Liechtenstein","\u{1F1F1}\u{1F1F9} Lithuania","\u{1F1F1}\u{1F1FA} Luxembourg","\u{1F1F2}\u{1F1EC} Madagascar","\u{1F1F2}\u{1F1FC} Malawi","\u{1F1F2}\u{1F1FE} Malaysia","\u{1F1F2}\u{1F1FB} Maldives","\u{1F1F2}\u{1F1F1} Mali","\u{1F1F2}\u{1F1F9} Malta","\u{1F1F2}\u{1F1ED} Marshall Islands","\u{1F1F2}\u{1F1F7} Mauritania","\u{1F1F2}\u{1F1FA} Mauritius","\u{1F1F2}\u{1F1FD} Mexico","\u{1F1EB}\u{1F1F2} Micronesia","\u{1F1F2}\u{1F1E9} Moldova","\u{1F1F2}\u{1F1E8} Monaco","\u{1F1F2}\u{1F1F3} Mongolia","\u{1F1F2}\u{1F1EA} Montenegro","\u{1F1F2}\u{1F1E6} Morocco","\u{1F1F2}\u{1F1FF} Mozambique","\u{1F1F2}\u{1F1F2} Myanmar","\u{1F1F3}\u{1F1E6} Namibia","\u{1F1F3}\u{1F1F7} Nauru","\u{1F1F3}\u{1F1F5} Nepal","\u{1F1F3}\u{1F1F1} Netherlands","\u{1F1F3}\u{1F1FF} New Zealand","\u{1F1F3}\u{1F1EE} Nicaragua","\u{1F1F3}\u{1F1EA} Niger","\u{1F1F3}\u{1F1EC} Nigeria","\u{1F1F2}\u{1F1F0} North Macedonia","\u{1F1F3}\u{1F1F4} Norway","\u{1F1F4}\u{1F1F2} Oman","\u{1F1F5}\u{1F1F0} Pakistan","\u{1F1F5}\u{1F1FC} Palau","\u{1F1F5}\u{1F1F8} Palestine","\u{1F1F5}\u{1F1E6} Panama","\u{1F1F5}\u{1F1EC} Papua New Guinea","\u{1F1F5}\u{1F1FE} Paraguay","\u{1F1F5}\u{1F1EA} Peru","\u{1F1F5}\u{1F1ED} Philippines","\u{1F1F5}\u{1F1F1} Poland","\u{1F1F5}\u{1F1F9} Portugal","\u{1F1F6}\u{1F1E6} Qatar","\u{1F1F7}\u{1F1F4} Romania","\u{1F1F7}\u{1F1FA} Russia","\u{1F1F7}\u{1F1FC} Rwanda","\u{1F1F0}\u{1F1F3} Saint Kitts and Nevis","\u{1F1F1}\u{1F1E8} Saint Lucia","\u{1F1FB}\u{1F1E8} Saint Vincent and the Grenadines","\u{1F1FC}\u{1F1F8} Samoa","\u{1F1F8}\u{1F1F2} San Marino","\u{1F1F8}\u{1F1F9} Sao Tome and Principe","\u{1F1F8}\u{1F1E6} Saudi Arabia","\u{1F1F8}\u{1F1F3} Senegal","\u{1F1F7}\u{1F1F8} Serbia","\u{1F1F8}\u{1F1E8} Seychelles","\u{1F1F8}\u{1F1F1} Sierra Leone","\u{1F1F8}\u{1F1EC} Singapore","\u{1F1F8}\u{1F1F0} Slovakia","\u{1F1F8}\u{1F1EE} Slovenia","\u{1F1F8}
1\u{1F1E7} Solomon Islands","\u{1F1F8}\u{1F1F4} Somalia","\u{1F1FF}\u{1F1E6} South Africa","\u{1F1F8}\u{1F1F8} South Sudan","\u{1F1EA}\u{1F1F8} Spain","\u{1F1F1}\u{1F1F0} Sri Lanka","\u{1F1F8}\u{1F1E9} Sudan","\u{1F1F8}\u{1F1F7} Suriname","\u{1F1F8}\u{1F1EA} Sweden","\u{1F1E8}\u{1F1ED} Switzerland","\u{1F1F8}\u{1F1FE} Syria","\u{1F1F9}\u{1F1FC} Taiwan","\u{1F1F9}\u{1F1EF} Tajikistan","\u{1F1F9}\u{1F1FF} Tanzania","\u{1F1F9}\u{1F1ED} Thailand","\u{1F1F9}\u{1F1F1} Timor-Leste","\u{1F1F9}\u{1F1EC} Togo","\u{1F1F9}\u{1F1F4} Tonga","\u{1F1F9}\u{1F1F9} Trinidad and Tobago","\u{1F1F9}\u{1F1F3} Tunisia","\u{1F1F9}\u{1F1F7} Turkey","\u{1F1F9}\u{1F1F2} Turkmenistan","\u{1F1F9}\u{1F1FB} Tuvalu","\u{1F1FA}\u{1F1EC} Uganda","\u{1F1FA}\u{1F1E6} Ukraine","\u{1F1E6}\u{1F1EA} United Arab Emirates","\u{1F1EC}\u{1F1E7} United Kingdom","\u{1F1FA}\u{1F1F8} United States","\u{1F1FA}\u{1F1FE} Uruguay","\u{1F1FA}\u{1F1FF} Uzbekistan","\u{1F1FB}\u{1F1FA} Vanuatu","\u{1F1FB}\u{1F1E6} Vatican City","\u{1F1FB}\u{1F1EA} Venezuela","\u{1F1FB}\u{1F1F3} Vietnam","\u{1F1FE}\u{1F1EA} Yemen","\u{1F1FF}\u{1F1F2} Zambia","\u{1F1FF}\u{1F1FC} Zimbabwe"];function gwp_makefields(n){var r=n.formid,i=r.replace("gwp_dbform",""),t="fields"+r,o=n.formclass;o==null&&(o="gwp_form");var c=n.formtitle,_=n.formfields,f=n.formfieldids,m=n.append,w=n.submit;if(w!=null)var S=n.submit.submitname,h=n.submit.submitfunction,F=n.submit.submitalign;var re=n.formfill,Je=n.formsubtitle||"",s=document.createElement("div");if(s.setAttribute("id",r),s.setAttribute("class",o),c==""||c==null)var Pe="gwp_nullformtitle";else var Pe="gwp_formtitle";s.innerHTML='<div id="'+r+'" class="'+Pe+'"><span class="gwp_formtitle_text">'+c+'</span><span class="gwp_formsubtitle_text">'+Je+'</span></div><div id="fields'+r+'" class="gwp_formfields"></div><input id="gwp_formfieldid'+i+'" class="gwp_formnameids" type="hidden" value=""><input id="'+r+'gwp_formnameids" name="'+r+'formnameids" class="gwp_formnameids" type="hidden" value="">',document.getElementById(m).appendChild(s),gwp_requiredfields=[];for(var ye=[],Ge=[],y=0;y<_.length;y++){var Re=_[y].registration;if(!(Re===!1||Re==="false"||Re===0)){var G=_[y].fieldtitle,e=_[y].fieldid;if(!e||e===""||e==="undefined"){var aa=(G||l||"field").toLowerCase().replace(/ /g,"_").replace(/-/g,"_").replace(/[^a-z0-9_]/g,"");e="gwp_"+aa+"_"+y}e&&Ge.push(e);var v=_[y].nameid;(!v||v==="undefined")&&(v=e);var l=_[y].type,d=_[y].options,t="fields"+r,le=_[y].formfieldline;(le==null||le==""||le==null)&&(le="norm");var I=_[y].trackchanges;if(I==null||I==""||le==null)var I="empty";var Ve=_[y].altformid;Ve!=null&&(t=Ve);var b=d.placeholder;if(b==null)var b="";var p=d.value;p==null&&(p="");var B=d.values;if(B==null)var B=[];var A=d.items;if(A==null)var A=[];var He=d.tabid;if(He==null)var He=[];var ce=d.multiple;if(ce==null)var ce="";var _e=d.addterms;if(_e==null)var _e="";var K=d.attributes;if(K==null)var K="";var R=d.mutation;if(R==null)var R="";var de=d.elistener;if(de==null)var de="";var V=d.required;V===!0||V==="true"||V==1?(V=!0,gwp_requiredfields.push({fieldid:e,fieldtype:l})):V=!1;var N=_[y].parameters;if(N==null)var N="",Ae="";var be=d.showtitle,u="",Ye=V===!0?'<span class="gwp_required_indicator">*</span>':"";be===!1||be==="false"?u="":u='<div class="gwp_formfieldtitle">'+G+Ye+"</div>",requiredauth=!0;var s=document.createElement("div");switch(s.setAttribute("id","gwp_formfieldline"+y),s.setAttribute("data-fieldid",e),le=="norm"?s.setAttribute("class","gwp_formfieldline"):le=="hidden"?s.setAttribute("class","gwp_formfieldlinehidden"):s.setAttribute("class","gwp_formfieldlinealt"),l){case"subtitle":requiredauth=!1;var s=document.createElement("div");s.setAttribute("id","gwp_formfieldline"+y),s.setAttribute("data-fieldid",e),s.setAttribute("class","gwp_formfieldline"),s.setAttribute("gwp_ftype",l),s.innerHTML='<div class="gwp_formfieldsubtitle">'+G+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"info":requiredauth=!1;var s=document.createElement("div");s.setAttribute("id","gwp_formfieldline"+y),s.setAttribute("data-fieldid",e),s.setAttribute("class","gwp_formfieldline"),s.setAttribute("gwp_ftype",l),s.innerHTML='<div class="gwp_formfieldtitle"><i>'+G+"</></div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"email and password":requiredauth=!1;var s=document.createElement("div");s.setAttribute("id","gwp_formfieldline"+y+"em"),s.setAttribute("class","gwp_formfieldline"),s.setAttribute("gwp_ftype",l),s.innerHTML='<div class="gwp_formfieldtitle">Email</div><div class="gwp_formfield"><input type="email" gwp_ftype="'+l+'" id="gwp_r_email" name="'+v+'" class="select_inputframe" value="'+p+'" placeholder="username"></div>';var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_required"+e+"em"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*field cannot be blank/incomplete";var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_validemail"+e+"em"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*this is not a valid email address";var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_formfieldline"+y+"pw"),s.setAttribute("class","gwp_formfieldline"),s.setAttribute("gwp_ftype",l),s.innerHTML='<div class="gwp_formfieldtitle">Password</div><div class="gwp_formfield"><input type="password" gwp_ftype="'+l+'" id="gwp_r_pass" name="'+v+'" class="select_inputs gwp_dbpassword" value="'+p+'" placeholder="password"></div>';var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_required"+e+"pw"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*field cannot be blank/incomplete";var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_formfieldline"+y+"pwc"),s.setAttribute("class","gwp_formfieldline"),s.setAttribute("gwp_ftype",l),s.innerHTML='<div class="gwp_formfieldtitle">Confirm Password</div><div class="gwp_formfield"><input type="password" gwp_ftype="'+l+'" id="gwp_r_passconfirm" name="'+v+'" class="select_inputs" value="'+p+'" placeholder="confirm password"></div>';var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_required"+e+"pwc"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*field cannot be blank/incomplete";var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_passmatch"+e+"pwc"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*passwords do not match";var a=document.getElementById(t);a&&a.appendChild(s);break;case"email and password change":requiredauth=!1;var s=document.createElement("div");s.setAttribute("id","gwp_formfieldline"+y+"em"),s.setAttribute("class","gwp_formfieldline"),s.setAttribute("gwp_ftype",l),s.innerHTML='<div class="gwp_formfieldtitle">Email</div><div class="gwp_formfield"><input type="email" gwp_ftype="'+l+'" id="gwp_r_email" name="'+v+'" class="select_inputframe" value="'+p+'" placeholder="username"></div>';var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_required"+e+"em"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*field cannot be blank/incomplete";var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_validemail"+e+"em"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*this is not a valid email address";var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_formfieldline"+y+"cpw"),s.setAttribute("class","gwp_formfieldline"),s.setAttribute("gwp_ftype",l),s.innerHTML='<div class="gwp_formfieldtitle">Change Password</div><div class="gwp_formfield"><input class="switch-input" id="gwp_r_changepassword" type="checkbox" gwp_ftype="'+l+'" name="formdata"><label class="switch-paddle" for="gwp_r_changepassword"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div>';var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_formfieldline"+y+"pw"),s.setAttribute("class","gwp_formfieldline"),s.setAttribute("gwp_ftype",l),s.innerHTML='<div class="gwp_formfieldtitle">Password</div><div class="gwp_formfield"><input type="password" gwp_ftype="'+l+'" id="gwp_r_pass" name="'+v+'" class="select_inputs" value="'+p+'" placeholder="password"><i class="las la-eye-slash gwp_dbpeye" id="togglePassword" onclick="gwp_togglepassword(`gwp_r_pass`, this);"></i></div>';var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_required"+e+"pw"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*field cannot be blank/incomplete";var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_formfieldline"+y+"pwc"),s.setAttribute("class","gwp_formfieldline"),s.setAttribute("gwp_ftype",l),s.innerHTML='<div class="gwp_formfieldtitle">Confirm Password</div><div class="gwp_formfield"><input type="password" gwp_ftype="'+l+'" id="gwp_r_passconfirm" name="'+v+'" class="select_inputs" value="'+p+'" placeholder="confirm password"><i class="las la-eye-slash gwp_dbpeye" id="togglePassword" onclick="gwp_togglepassword(`gwp_r_passconfirm`, this);"></i></div>';var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_required"+e+"pwc"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*field cannot be blank/incomplete";var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_passmatch"+e+"pwc"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*passwords do not match";var a=document.getElementById(t);a&&a.appendChild(s);break;case"first and last name":requiredauth=!1;var s=document.createElement("div");s.setAttribute("id","gwp_formfieldline"+y+"fn"),s.setAttribute("class","gwp_formfieldline"),s.setAttribute("gwp_ftype",l),s.innerHTML='<div class="gwp_formfieldtitle">First name</div><div class="gwp_formfield"><input type="text" gwp_ftype="'+l+'" id="gwp_r_firstname" name="'+v+'" class="select_inputframe" value="'+p+'" placeholder="first name"></div>';var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_required"+e+"fn"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*field cannot be blank/incomplete";var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_formfieldline"+y+"ln"),s.setAttribute("class","gwp_formfieldline"),s.setAttribute("gwp_ftype",l),s.innerHTML='<div class="gwp_formfieldtitle">Last name</div><div class="gwp_formfield"><input type="text" gwp_ftype="'+l+'" id="gwp_r_lastname" name="'+v+'" class="select_inputframe" value="'+p+'" placeholder="lastname"></div>';var a=document.getElementById(t);a&&a.appendChild(s);var s=document.createElement("div");s.setAttribute("id","gwp_required"+e+"ln"),s.setAttribute("class","gwp_required"),s.setAttribute("gwp_ftype",l),s.innerHTML="*field cannot be blank/incomplete";var a=document.getElementById(t);a&&a.appendChild(s);break;case"reCAPTCHA field":if(gwp_datasize="",gwp_dataaction="",typeof gwp_gsiteversion<"u"){(gwp_gsiteversion.includes("invisible")||gwp_gsiteversion=="Version 3")&&(gwp_datasize='data-size="invisible"',(gwp_gsiteversion=="Version 3"||gwp_gsiteversion=="Version 2")&&(gwp_dataaction='data-action="gwp_dgrecaptcha"')),s.innerHTML='<div class="">'+G+'</div><div class=""><div id="gwp_gsitekey" class="g-recaptcha" data-sitekey="'+gwp_gsitekey+'" data-error-callback="gwp_ergrecaptcha" data-expired-callback="gwp_egrecaptcha" data-callback="gwp_sgrecaptcha" '+gwp_datasize+" "+gwp_dataaction+"></div></div>";var a=document.getElementById(t);a&&a.appendChild(s),typeof gwp_gsitekey<"u"&&gwp_gsiteversion=="Version 3"&&gwp_gsitekey!=""&&grecaptcha.ready(function(){gre
1captcha.execute(gwp_gsitekey,{action:"register"}).then(function(T){window.gwp_token=T})})}break;case"button":if(N=="inline"){s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><button type="button" id="'+e+'" name="'+v+'" onclick="'+B+'" class="gwp_sbuttonsmall">'+p+"</button>";var a=document.getElementById(t);a&&a.appendChild(s)}else if(N=="free"){s.setAttribute("gwp_ftype",l),s.setAttribute("class","gwp_formfieldline gwp_inlineblock"),s.innerHTML='<button type="button" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" onclick="'+B+'" class="gwp_sbuttonsmall">'+p+"</button>";var a=document.getElementById(t);a&&a.appendChild(s)}break;case"text":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><input type="text" gwp_ftype="'+l+'" id="'+e+'" name="'+v+'" class="select_inputframe" value="'+p+'" placeholder="'+b+'"></div>';var a=document.getElementById(t);a&&a.appendChild(s);var H=document.getElementById(e);H&&(H.value=p);break;case"textarea":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><textarea id="'+e+'" gwp_ftype="'+l+'" name="'+v+'" class="select_inputframe select_textarea" value="'+p+'" placeholder="'+b+'"></textarea></div>';var a=document.getElementById(t);a&&a.appendChild(s);var H=document.getElementById(e);H&&(H.value=p);break;case"form text":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_ftext"><div id="'+e+'" gwp_ftype="'+l+'" name="'+v+'" class="select_formtext" placeholder="'+b+'">'+p+"</div></div>";var a=document.getElementById(t);a&&a.appendChild(s);var H=document.getElementById(e);H&&(H.value=p);break;case"fill blanks":s.setAttribute("gwp_ftype",l);var we=d.template||"";if(we&&we!="")try{we=decodeURIComponent(atob(we))}catch{}s.innerHTML=u+'<div class="gwp_fillblanks_wrapper"><div id="gwp_fbrender'+e+'" class="gwp_fbrender"></div><input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="gwp_fillblanks_data" value=""></div>';var a=document.getElementById(t);if(a&&a.appendChild(s),we){var ta=document.getElementById("gwp_fbrender"+e),hs=-1,ia=we.replace(/\[blank\]/gi,function(){return hs++,'<input type="text" class="select_fillblanks_input" id="'+e+"_blank"+hs+'" data-blank="'+hs+`" oninput="gwp_updatefillblanks('`+e+`')" onchange="gwp_updatefillblanks('`+e+`')">`});ta.innerHTML=ia}break;case"number":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><input type="number" gwp_ftype="'+l+'" id="'+e+'" name="'+v+'" class="select_inputframe" value="'+p+'" placeholder="'+b+'"></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"week":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><input type="week" gwp_ftype="'+l+'" id="'+e+'" name="'+v+'" class="select_inputs" value="'+p+'" placeholder="'+b+'"></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"date":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><input type="date" gwp_ftype="'+l+'" id="'+e+'" name="'+v+'" class="select_inputs" value="'+p+'" placeholder="'+b+'"></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"datetime-local":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><input type="datetime-local" gwp_ftype="'+l+'" id="'+e+'" name="'+v+'" class="select_inputs" value="'+p+'" placeholder="'+b+'"></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"time":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><input type="time" gwp_ftype="'+l+'" id="'+e+'" name="'+v+'" class="select_inputs" value="'+p+'" placeholder="'+b+'"></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"email":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><div class="select_field_wrapper"><input type="email" gwp_ftype="'+l+'" id="'+e+'" name="'+v+'" class="select_inputframe" value="'+p+'" placeholder="'+b+'" oninput="select_validateEmail(this);"><span id="'+e+'_icon" class="select_validation_icon"></span></div><div id="'+e+'_msg" class="select_validation_message"></div><div id="gwp_required'+e+'" class="gwp_required" style="display:none;">This field is required</div></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"telephone":s.setAttribute("gwp_ftype",l);var Xe=d.defaultcountry||"auto",na=Xe==="auto"&&typeof select_getDefaultCountry=="function"?select_getDefaultCountry():Xe!=="auto"?Xe:"gb",gs="",ks="";if(p){var Y="";typeof select_getCountryFlag=="function"&&(Y=select_getCountryFlag(p,na)),Y&&(gs='<img src="https://flagcdn.com/20x15/'+Y+'.png" srcset="https://flagcdn.com/40x30/'+Y+'.png 2x" width="20" height="15" alt="'+Y.toUpperCase()+'">',ks=" has_flag")}s.innerHTML=u+'<div class="gwp_formfield"><div class="select_field_wrapper select_phone_wrapper'+ks+'"><span id="'+e+'_flag" class="select_phone_flag">'+gs+'</span><input type="tel" gwp_ftype="'+l+'" id="'+e+'" name="'+v+'" class="select_inputframe" data-default-country="'+Xe+'" value="'+p+'" placeholder="'+(b||"07123 456789")+'" oninput="select_filterPhoneInput(this);">
1<span id="'+e+'_icon" class="select_validation_icon"></span></div><div id="'+e+'_msg" class="select_validation_message"></div><div id="gwp_required'+e+'" class="gwp_required" style="display:none;">This field is required</div></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"checkbox":var es=p;s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><input type="checkbox" gwp_ftype="'+l+'" id="'+e+'" name="'+v+'" class="select_icbox" '+es+' value="'+p+'" placeholder="'+b+'"></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"address":s.setAttribute("gwp_ftype",l);var W="";typeof p=="object"&&p!==null?W=JSON.stringify(p):typeof p=="string"?W=p:W="{}";var ee={};if(W&&W!=="{}")try{ee=JSON.parse(W.replace(/&quot;/g,'"').replace(/&amp;/g,"&"))}catch{ee={}}var g='<div class="select_address_form_container">';g+='<div class="select_address_form_row">',g+='<input type="text" id="'+e+'_line1" class="select_address_form_input select_inputframe" value="'+(ee.line1||"").replace(/"/g,"&quot;")+`" placeholder="Street address" onchange="select_updateFormAddress('`+e+`')">`,g+="</div>",g+='<div class="select_address_form_row">',g+='<input type="text" id="'+e+'_line2" class="select_address_form_input select_inputframe" value="'+(ee.line2||"").replace(/"/g,"&quot;")+`" placeholder="Apartment, suite, unit, etc." onchange="select_updateFormAddress('`+e+`')">`,g+="</div>",g+='<div class="select_address_form_row">',g+='<input type="text" id="'+e+'_line3" class="select_address_form_input select_inputframe" value="'+(ee.line3||"").replace(/"/g,"&quot;")+`" placeholder="Building, floor, etc. (optional)" onchange="select_updateFormAddress('`+e+`')">`,g+="</div>",g+='<div class="select_address_form_row select_address_form_split">',g+='<input type="text" id="'+e+'_city" class="select_address_form_input select_address_form_half select_inputframe" value="'+(ee.city||"").replace(/"/g,"&quot;")+`" placeholder="City / Town" onchange="select_updateFormAddress('`+e+`')">`,g+='<input type="text" id="'+e+'_postcode" class="select_address_form_input select_address_form_half select_inputframe" value="'+(ee.postcode||"").replace(/"/g,"&quot;")+`" placeholder="Postcode / ZIP" onchange="select_updateFormAddress('`+e+`')">`,g+="</div>",g+='<div class="select_address_form_row select_address_form_split">',g+='<input type="text" id="'+e+'_county" class="select_address_form_input select_address_form_half select_inputframe" value="'+(ee.county||"").replace(/"/g,"&quot;")+`" placeholder="County / State" onchange="select_updateFormAddress('`+e+`')">`,g+='<input type="text" id="'+e+'_country" class="select_address_form_input select_address_form_half select_inputframe" value="'+(ee.country||"").replace(/"/g,"&quot;")+`" placeholder="Country" onchange="select_updateFormAddress('`+e+`')">`,g+="</div>",g+='<div class="select_address_form_row select_address_form_actions">',g+=`<button type="button" class="select_address_form_map_btn" onclick="select_updateFormAddress('`+e+"'); select_showAddressMap('"+e+`');"><i class="las la-map-marker-alt"></i> Check on Map</button>`,g+="</div>",g+="</div>",g+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" value="'+W.replace(/"/g,"&quot;")+'">',g+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please enter an address</div>',s.innerHTML=u+'<div class="gwp_formfield">'+g+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"star rating":s.setAttribute("gwp_ftype",l);for(var Is=d.maxstars||5,ss=d.starsize||"medium",ze=p||0,se='<div class="gwp_star_rating gwp_star_'+ss+'" id="'+e+'_container">',ae=Is;ae>=1;ae--){var as=ae==ze?"checked":"";se+='<input type="radio" id="'+e+"_star"+ae+'" name="'+e+'" value="'+ae+'" '+as+` onchange="gwp_updateStarRating('`+e+"', "+ae+')">',se+='<label for="'+e+"_star"+ae+'" title="'+ae+" star"+(ae>1?"s":"")+'"><i class="las la-star"></i></label>'}se+="</div>",se+='<span id="'+e+'_value" class="gwp_star_rating_value">'+(ze>0?ze+"/"+Is:"")+"</span>",se+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="gwp_star_rating_input" value="'+ze+'">',se+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please select a rating</div>',s.innerHTML=u+'<div class="gwp_formfield">'+se+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"slider":s.setAttribute("gwp_ftype",l);var ts=d.min||0,Ps=d.max||100,Gs=d.step||1,Ue=p||ts,Ys=d.minlabel||ts,is=d.maxlabel||Ps,zs=d.showvalue!==!1,te='<div class="gwp_slider_container">';zs&&(te+='<div id="'+e+'_display" class="gwp_slider_value">
1'+Ue+"</div>"),te+='<div class="gwp_slider_wrapper">',te+='<input type="range" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="gwp_slider_input" min="'+ts+'" max="'+Ps+'" step="'+Gs+'" value="'+Ue+`" oninput="gwp_updateSlider('`+e+`', this.value)">`,te+="</div>",te+='<div class="gwp_slider_labels"><span>'+Ys+"</span><span>"+is+"</span></div>",te+="</div>",s.innerHTML=u+'<div class="gwp_formfield">'+te+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"url":s.setAttribute("gwp_ftype",l);var ns=d.showprefix!==!1,z='<div class="select_field_wrapper">';ns&&(z='<div class="select_url_field"><span class="select_url_prefix">https://</span>'+z),z+='<input type="url" gwp_ftype="'+l+'" id="'+e+'" name="'+v+'" class="select_inputframe" value="'+p+'" placeholder="'+(b||"www.example.com")+'" oninput="select_validateUrl(this);">',z+='<span id="'+e+'_icon" class="select_validation_icon"></span>',z+="</div>",ns&&(z+="</div>"),z+='<div id="'+e+'_msg" class="select_validation_message"></div>',z+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">This field is required</div>',s.innerHTML=u+'<div class="gwp_formfield">'+z+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"credit card":s.setAttribute("gwp_ftype",l);var k='<div class="gwp_creditcard_container">';k+='<div class="gwp_cc_icons">',k+='<div id="'+e+'_visa" class="gwp_cc_icon"><i class="lab la-cc-visa"></i></div>',k+='<div id="'+e+'_mastercard" class="gwp_cc_icon"><i class="lab la-cc-mastercard"></i></div>',k+='<div id="'+e+'_amex" class="gwp_cc_icon"><i class="lab la-cc-amex"></i></div>',k+='<div id="'+e+'_discover" class="gwp_cc_icon"><i class="lab la-cc-discover"></i></div>',k+="</div>",k+='<div class="gwp_cc_field">',k+="<label>Card Number</label>",k+='<input type="text" id="'+e+`_number" class="gwp_cc_number" maxlength="19" placeholder="1234 5678 9012 3456" oninput="gwp_formatCardNumber(this, '`+e+`')">`,k+="</div>",k+='<div class="gwp_cc_row">',k+='<div class="gwp_cc_field">',k+="<label>Expiry Date</label>",k+='<input type="text" id="'+e+'_expiry" class="gwp_cc_expiry" maxlength="5" placeholder="MM/YY" oninput="gwp_formatExpiry(this)">',k+="</div>",k+='<div class="gwp_cc_field">',k+="<label>CVV</label>",k+='<input type="text" id="'+e+'_cvv" class="gwp_cc_cvv" maxlength="4" placeholder="123" oninput="gwp_validateCvv(this)">',k+="</div>",k+="</div>",k+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="gwp_cc_data" value="">',k+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please enter valid card details</div>',k+="</div>",s.innerHTML=u+'<div class="gwp_formfield">'+k+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"attachment":break;case"link":break;case"email box":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_emailframe" empty-text="'+b+'"></div></div>';var a=document.getElementById(t);a&&a.appendChild(s),select_activate_email(),select_addvalues(B,e,!0),select_additems(A,e,!0);break;case"dropdown box":if(N.newitem!=null)var q='newitem="'+N.newitem+'"';else var q="";if(ce==!0){s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_multiframe " empty-text="'+b+'" '+q+"></div></div>";var a=document.getElementById(t);a&&a.appendChild(s),select_activate_multi()}else{s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_singleframe" empty-text="'+b+'"></div></div>';var a=document.getElementById(t);a&&a.appendChild(s),select_activate_single()}select_addvalues(B,e,!0),select_additems(A,e,!0);break;case"tagbox":var Ae=N.validation,Ne=N.validationmessage;s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><div id='+e+' class="select_tagframe" gwp_ftype="'+l+'" validation="'+Ae+'" validationmessage="'+Ne+'" empty-text="'+b+'"></div></div>';var a=document.getElementById(t);a&&a.appendChild(s),select_activate_tag(),select_additems(A,e,!0);break;case"tabbox":if(N.newitem!=null)var q='newitem="'+N.newitem+'"';else var q="";s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_tabmframe" empty-text="'+b+'" '+q+"></div></div>";var a=document.getElementById(t);if(a&&a.appendChild(s),select_activate_tabs(),B!=""&&select_addvalues(B,e,!0),A!=""){var Us=Array(A[0]);select_additems(Us,e,!0)}break;case"categories":if(ce==!0)var Es="multi";else var Es="single";s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><div id="'+e+'" gwp_ftype="'+l+'" class="select_catframe" stype="'+Es+'" values=""></div></div>';var a=document.getElementById(t);if(a&&a.appendChild(s),I!="empty"){var U=I[1],J=I[2],ra=I[3],Ce=document.getElementById(e),Bs=new MutationObserver(U);Bs.observe(Ce,J)}select_addvalues(B,e,!0),select_additems(A,e,!0);break;case"weekcategories":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><div id="'+e+'" gwp_ftype="'+l+'" class="select_weekframe"><input id="'+e+'sun" type="number" class="gwp_weekcategory" value="'+B.sun+'"/><input id="'+e+'mon" type="number" class="gwp_weekcategory" value="'+B.mon+'"/><input id="'+e+'tue" type="number" class="gwp_weekcategory" value="'+B.tue+'"/><input id="'+e+'wed" type="number" class="gwp_weekcategory" value="'+B.wed+'"/><input id="'+e+'thu" type="number" class="gwp_weekcategory" value="'+B.thu+'"/><input id="'+e+'fri" type="number" class="gwp_weekcategory" value="'+B.fri+'"/><input id="'+e+'sat" type="number" class="gwp_weekcategory" value="'+B.sat+'"/></div></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"switch":if(A!=null&&A!=!1)var js=A.true,Se=A.false;else var js="Yes",Se="No";p==!0||p=="true"?checked="checked":checked="";var la=d.togglesize||"large",Xs=d.togglestyle||"rounded",je=d.togglelabels===!0,Ks=d.toggleon||"Yes",rs=d.toggleoff||"No",ca="gwp_toggle_"+la,Ws=Xs==="square"?" gwp_toggle_square":"",qe=je?" gwp_toggle_labeled":"",da=je?'<span class="gwp_toggle_inner" data-on="'+Ks+'" data-off="'+rs+'"></span>':'<span class="gwp_toggle_inner"></span>';s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><input type="checkbox" class="gwp_toggle_checkbox" id="'+e+'" gwp_ftype="'+l+'" name="'+v+'" '+checked+'><label class="gwp_toggle_label '+ca+Ws+qe+'" for="'+e+'">'+da+'<span class="gwp_toggle_switch"></span></label></div>';var a=document.getElementById(t);if(a&&a.appendChild(s),I!="empty"){var J=I[2],U=I[1];ffuncs["field"+e]=U,ffuncs["param"+e]=J,document.getElementById(e).addEventListener(I[0],function(ue){var X=ffuncs["param"+this.id],D=ffuncs["field"+this.id];D(X)},!1)}break;case"rating":break;case"progress":break;case"location":break;case"image":break;case"image display":s.setAttribute("gwp_ftype",l);var Oe=d.imagedisplayurl||"",Le=d.imagedisplayalign||"center",pa=d.imagedisplaymaxwidth||"300",xs="";Oe&&(xs='<div class="gwp_imagedisplay gwp_imagedisplay_'+Le+'"><img src="'+Oe+'" alt="" style="max-width:'+pa+'px; width:100%;"></div>'),s.innerHTML=xs;var a=document.getElementById(t);a&&a.appendChild(s);break;case"password":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><input type="password" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_inputs" value="'+p+'" placeholder="'+b+'"><i class="las la-eye-slash gwp_dbpeye" id="togglePassword" onclick="gwp_togglepassword(`'+e+'`, this);"></i></div>';var a=document.getElementById(t);a&&a.appendChild(s);var x=document.getElementById(e);if(!x)break;for(var E in N)x.setAttribute(E,N[E]);break;case"letterhead":s.setAttribute("gwp_ftype",l);var ls=d.letterheadlogo||"",Zs=d.letterheadaddress||"",$s=d.letterheadlayout||"logo-left",O='<div id="'+e+'" gwp_ftype="'+l+'" class="gwp_letterhead gwp_letterhead_'+$s+'">',M="",As="";if(ls&&(M='<div class="gwp_letterhead_logo"><img src="'+ls+'" alt="Logo"></div>'),Zs){var cs=Zs.replace(/\n/g,"<br>");As='<div class="gwp_letterhead_address">'+cs+"</div>"}$s==="logo-right"?O+=As+M:O+=M+As,O+="</div>",s.innerHTML=O;var a=document.getElementById(t);a&&a.appendChild(s);break;case"spacing block":s.setAttribute("gwp_ftype",l);var Qs=d&&d.spacingheight?d.spacingheight:"20",P=d&&(d.spacingshowline===!0||d.spacingshowline==="true"||d.spacingshowline===1||d.spacingshowline==="1"),Ns=d&&d.spacinglinestyle?d.spacinglinestyle:"solid",oa=d&&d.spacinglinecolour?d.spacinglinecolour:"#cccccc",Cs='<div id="'+e+'" gwp_ftype="'+l+'" class="gwp_spacingblock" style="height:'+Qs+'px; width:100%; position:static; display:flex; align-items:center; overflow:visible;">';P?Cs+='<hr style="display:block !important; visibility:visible !important; border:none !important; border-top:1px '+Ns+" "+oa+' !important; margin:0 !important; padding:0 !important; width:100% !important; height:0 !important; opacity:1 !important;">':Cs+="&nbsp;",Cs+="</div>",s.innerHTML=Cs;var a=document.getElementById(t);a&&a.appendChild(s);break;case"div":s.setAttribute("gwp_ftype",l),s.innerHTML='<div id="'+e+'" gwp_ftype="'+l+'" class=""></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"tinymce":s.setAttribute("gwp_ftype",l),d.type=="full"?s.innerHTML='<div class=""><textarea id="'+e+'" gwp_ftype="'+l+'" class="gwp_description_input"></textarea></div>':s.innerHTML=u+'<div class="gwp_formfield"><textarea id="'+e+'" gwp_ftype="'+l+'" class="gwp_description_input"></textarea></div>';var a=document.getElementById(t);a&&a.appendChild(s),gwp_tinymce(e,He);break;
1case"custom":s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield">'+B+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"gatherova terms":if(ce==!0)var va="select_multiframe";else var va="select_singleframe";if(N.newitem!=null)var q='newitem="'+N.newitem+'"';else var q="";var q="";for(var E in N)if(E=="newitem"){if(_e==!0)var q=q+E+'="'+N[E]+'"'}else var q=q+E+'="'+N[E]+'"';s.setAttribute("gwp_ftype",l),s.innerHTML=u+'<div class="gwp_formfield"><div class="gwp_inlineblock activity-taxonomy"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="'+va+'" empty-text="'+b+'" '+q+"></div></div></div>";var a=document.getElementById(t);a&&a.appendChild(s),ce==!0?select_activate_multi():select_activate_single(),select_addvalues(B,e,!0),select_additems(A,e,!0);break;case"gatherova series":if(s.setAttribute("gwp_ftype",l),_e==!0){s.innerHTML=u+'<div class="gwp_formfield"><div class="gwp_inlineblock activity-taxonomy"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_multiframe" empty-text="'+b+'"></div></div><div class="gwp_add" onclick="gwp_toggleinput(`gwp_new'+e+"display`, `gwp_new"+e+'`)"><i class="las la-plus"></i></div><div id="gwp_new'+e+'display" class="gwp_newtaxbox" style="display:none;"><div empty-text="New series..." type="text" id="gwp_new'+e+'" class="gwp_newseries select_input" contenteditable="true"></div><div href="#" onclick="gwp_newtaxonomy(`'+e+"`, `gwp_new"+e+"`, `gwp_new"+e+"display`, `"+e+"`, `gwp_new"+e+'`, `series`);" class="gwp_sbuttontiny">Save</div></div></div>';var a=document.getElementById(t);a&&a.appendChild(s)}else{s.innerHTML=u+'<div class="gwp_formfield"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_multiframe" empty-text="'+b+'"></div></div>';var a=document.getElementById(t);a&&a.appendChild(s)}select_activate_multi(),select_addvalues(B,e,!0),select_additems(A,e,!0);break;case"gatherova topics":if(s.setAttribute("gwp_ftype",l),_e==!0){s.innerHTML=u+'<div class="gwp_formfield"><div class="gwp_inlineblock activity-taxonomy"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_multiframe" empty-text="'+b+'"></div></div><div class="gwp_add" onclick="gwp_toggleinput(`gwp_new'+e+"display`, `gwp_new"+e+'`)"><i class="las la-plus"></i></div><div id="gwp_new'+e+'display" class="gwp_newtaxbox" style="display:none;"><div empty-text="New topics..." type="text" id="gwp_new'+e+'" class="gwp_newtopic select_input" contenteditable="true"></div><div href="#" onclick="gwp_newtaxonomy(`'+e+"`, `gwp_new"+e+"`, `gwp_new"+e+"display`, `"+e+"`, `gwp_new"+e+'`, `topics`);" class="gwp_sbuttontiny">Save</div></div></div>';var a=document.getElementById(t);a&&a.appendChild(s)}else{s.innerHTML=u+'<div class="gwp_formfield"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_multiframe" empty-text="'+b+'"></div></div>';var a=document.getElementById(t);a&&a.appendChild(s)}select_activate_multi(),select_addvalues(B,e,!0),select_additems(A,e,!0);break;case"gatherova categories":if(s.setAttribute("gwp_ftype",l),_e==!0){s.innerHTML=u+'<div class="gwp_formfield"><div class="gwp_inlineblock activity-taxonomy"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_multiframe" empty-text="'+b+'"></div></div><div class="gwp_add" onclick="gwp_toggleinput(`gwp_new'+e+"display`, `gwp_new"+e+'`)"><i class="las la-plus"></i></div><div id="gwp_new'+e+'display" class="gwp_newtaxbox" style="display:none;"><div empty-text="New categories..." type="text" id="gwp_new'+e+'" class="gwp_newcategory select_input" contenteditable="true"></div><div href="#" onclick="gwp_newtaxonomy(`'+e+"`, `gwp_new"+e+"`, `gwp_new"+e+"display`, `"+e+"`, `gwp_new"+e+'`, `categories`);" class="gwp_sbuttontiny">Save</div></div></div>';var a=document.getElementById(t);a&&a.appendChild(s)}else{s.innerHTML=u+'<div class="gwp_formfield"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_multiframe" empty-text="'+b+'"></div></div>';var a=document.getElementById(t);a&&a.appendChild(s)}select_activate_multi(),select_addvalues(B,e,!0),select_additems(A,e,!0);break;case"gatherova buckets":if(s.setAttribute("gwp_ftype",l),_e==!0){s.innerHTML=u+'<div class="gwp_formfield"><div class="gwp_inlineblock activity-taxonomy"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_multiframe" empty-text="'+b+'"></div></div><div class="gwp_add" onclick="gwp_toggleinput(`gwp_new'+e+"display`, `gwp_new"+e+'`)"><i class="las la-plus"></i></div><div id="gwp_new'+e+'display" class="gwp_newtaxbox" style="display:none;"><div empty-text="New buckets..." type="text" id="gwp_new'+e+'" class="gwp_newbucket select_input" contenteditable="true"></div><div href="#" onclick="gwp_newtaxonomy(`'+e+"`, `gwp_new"+e+"`, `gwp_new"+e+"display`, `"+e+"`, `gwp_new"+e+'`, `buckets`);" class="gwp_sbuttontiny">Save</div></div></div>';var a=document.getElementById(t);a&&a.appendChild(s)}else{s.innerHTML=u+'<div class="gwp_formfield"><div id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_multiframe" empty-text="'+b+'"></div></div>';var a=document.getElementById(t);a&&a.appendChild(s)}select_activate_multi(),select_addvalues(B,e,!0),select_additems(A,e,!0);break;case"notificationtype":s.setAttribute("gwp_ftype",l),s.innerHTML='<div id="'+e+'" gwp_ftype="'+l+'" class="gwp_formfieldtitle">'+G+'</div><div class="gwp_formfieldalt"><div class="gwp_formfieldlinealt"><div class="gwp_forminlineblock">Basic: </div><div class="gwp_forminlineblock"><div class="small switch"><input class="switch-input" id="'+e+'basic" type="radio" checked 
1name="testGroup"><label class="switch-paddle" for="'+e+'basic"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Advanced: </div><div class="gwp_forminlineblock"><div class="small switch"><input class="switch-input" id="'+e+'advanced" type="radio" name="testGroup"><label class="switch-paddle" for="'+e+'advanced"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Sophisticated: </div><div class="gwp_forminlineblock"><div class="small switch"><input class="switch-input" id="'+e+'sophisticated" type="radio" name="testGroup"><label class="switch-paddle" for="'+e+'sophisticated"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div></div>';var a=document.getElementById(t);if(a&&a.appendChild(s),I!="empty"){var ds=I[1],J=I[2];document.getElementById(e+"basic").addEventListener(I[0],function(){ds(J)},!1),document.getElementById(e+"advanced").addEventListener(I[0],function(){ds(J)},!1),document.getElementById(e+"sophisticated").addEventListener(I[0],function(){ds(J)},!1)}if(I!="empty"){var J=I[2],U=I[1];ffuncs["field"+e+"basic"]=U,ffuncs["param"+e+"basic"]=J,ffuncs["field"+e+"advanced"]=U,ffuncs["param"+e+"advanced"]=J,ffuncs["field"+e+"sophisticated"]=U,ffuncs["param"+e+"sophisticated"]=J,document.getElementById(e+"basic").addEventListener(I[0],function(ue){var X=ffuncs["param"+this.id],D=ffuncs["field"+this.id];D(X)},!1),document.getElementById(e+"advanced").addEventListener(I[0],function(ue){var X=ffuncs["param"+this.id],D=ffuncs["field"+this.id];D(X)},!1),document.getElementById(e+"sophisticated").addEventListener(I[0],function(ue){var X=ffuncs["param"+this.id],D=ffuncs["field"+this.id];D(X)},!1)}break;case"bnotifications":s.setAttribute("gwp_ftype",l),s.innerHTML='<div id="'+e+'" gwp_ftype="'+l+'" class="gwp_formfieldtitle">'+G+'</div><div class="gwp_formfieldalt"><div class="gwp_formfieldlinealt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Add - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'asystem" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'asystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'aemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'aemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Edit - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'esystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'esystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'eemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'eemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Delete - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'dsystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'dsystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'demail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'demail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"anotifications":s.setAttribute("gwp_ftype",l),s.innerHTML='<div id="'+e+'" gwp_ftype="'+l+'" class="gwp_formfieldtitle">'+G+'</div><div id="" class="gwp_formfieldalt" contenteditable="false" style=""><div id="" class="gwp_formfieldlinealt"><div class="gwp_formfieldtitle">Library</div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Add - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'lasystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'lasystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'laemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'laemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Edit - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'lesystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'lesystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'leemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'leemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Delete - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'ldsystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'ldsystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'ldemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'ldemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div></div><div id="" class="gwp_formfieldlinealt"><div class="gwp_formfieldtitle">Schedules</div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Add - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'sasystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'sasystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'saemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'saemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Edit - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'sesystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'sesystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'seemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'seemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Delete - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'sdsystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'sdsystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'sdemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'sdemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div></div><div id="" class="gwp_formfieldlinealt"><div class="gwp_formfieldtitle">Calendar</div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Add - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'casystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'casystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'caemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'caemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Edit - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'cesystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'cesystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'ceemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'ceemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Delete - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'cdsystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'cdsystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'cdemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'cdemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div></div><div id="" class="gwp_formfieldlinealt"><div class="gwp_formfieldtitle">Messages</div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Add - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'masystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'masystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'maemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'maemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Edit - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'mesystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'mesystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'meemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'meemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Delete - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'mdsystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'mdsystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'mdemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'mdemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"snotificationsd":s.setAttribute("gwp_ftype",l),s.innerHTML='<div id="'+e+'" gwp_ftype="'+l+'" class="gwp_formfieldtitle">'+G+'</div><div class="gwp_formfieldalt"><div class="gwp_formfieldlinealt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Add - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'asystem" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'asystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off
1</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'aemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'aemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Edit - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'esystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'esystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'eemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'eemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Delete - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'dsystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'dsystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'demail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'demail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"snotifications":s.setAttribute("gwp_ftype",l),s.innerHTML='<div id="test1" gwp_ftype="'+l+'" class="gwp_formfieldsalt" contenteditable="false" style=""><div id="" class="gwp_formfieldlinealt"><div class="gwp_formfieldtitle">Library</div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Add - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'lasystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'lasystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'laemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'laemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Edit - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'lesystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'lesystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'leemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'leemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Delete - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'ldsystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'ldsystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'ldemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'ldemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div></div><div id="" class="gwp_formfieldlinealt"><div class="gwp_formfieldtitle">Schedules</div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Add - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'sasystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'sasystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'saemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'saemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Edit - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'sesystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'sesystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'seemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'seemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Delete - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'sdsystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'sdsystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'sdemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'sdemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div></div><div id="" class="gwp_formfieldlinealt"><div class="gwp_formfieldtitle">Calendar</div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Add - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'casystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'casystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'caemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'caemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Edit - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'cesystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'cesystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'ceemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'ceemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Delete - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'cdsystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'cdsystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'cdemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'cdemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div></div><div id="" class="gwp_formfieldlinealt"><div class="gwp_formfieldtitle">Messages</div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Add - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'masystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'masystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'maemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'maemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Edit - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'mesystem" type="checkbox" name="testGroup1"><label class="switch-paddle" for="'+e+'mesystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'meemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'meemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div><div class="gwp_formfieldtitle"></div><div class="gwp_formfieldalt"><div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>Delete - </b>System Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'mdsystem" type="checkbox"   name="testGroup1"><label class="switch-paddle" for="'+e+'mdsystem"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email Notifications: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+e+'mdemail" type="checkbox" name="formdata"><label class="switch-paddle" for="'+e+'mdemail"><span class="switch-active" aria-hidden="true">Yes</span><span class="switch-inactive" aria-hidden="true">No</span></label></div></div></div></div></div>';var a=document.getElementById(t);a&&a.appendChild(s);break;case"notification_v2":let La=function(C){for(var T="",ue=[["a","Add"],["e","Edit"],["d","Delete"]],X=0;X<ue.length;X++){var D=ue[X][0],Ma=ue[X][1];T+='<div class="gwp_formfieldline"><div class="gwp_forminlineblock"><b>'+Ma+' - </b>System: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+C+D+'system" type="checkbox" name="formdata"><label class="switch-paddle" for="'+C+D+'system"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div><div class="gwp_forminlineblock">Email: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="'+C+D+'email" type="checkbox" name="formdata"><label class="switch-paddle" for="'+C+D+'email"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div></div>'}return T};var Ht=La;s.setAttribute("gwp_ftype",l);var Ta=["calendar","library","schedules","messages","members","groups","curriculum","databases","attendance","rota"],tt={calendar:"Calendar",library:"Library",schedules:"Schedules",messages:"Messages",members:"Members",groups:"Groups",curriculum:"Curriculum",databases:"Databases",attendance:"Attendance",rota:"Rota"},Rs=d.values||[],Me='<div id="'+e+'" gwp_ftype="'+l+'" class="gwp_formfieldsalt"><div class="gwp_formfieldlinealt"><div class="gwp_formfieldtitle">Default Notifications</div><div class="gwp_formfieldalt">
1'+La("gwp_nd_")+"</div></div>";Me+='<div class="gwp_formfieldlinealt"><div class="gwp_formfieldtitle">Customise by module</div><div class="gwp_formfieldalt">';for(var ps=0;ps<Ta.length;ps++){var os=Ta[ps],it=tt[os];Me+='<div class="gwp_formfieldlinealt" style="border-bottom:1px solid #eee;padding:8px 0;"><div class="gwp_formfieldline"><div class="gwp_forminlineblock" style="min-width:100px;"><b>'+it+'</b></div><div class="gwp_forminlineblock">Customise: </div><div class="gwp_forminlineblock"><div class="tiny switch"><input class="switch-input" id="gwp_nm_'+os+`_enabled" type="checkbox" name="formdata" onchange="var p=document.getElementById('gwp_nm_`+os+`_custom');if(p)p.style.display=this.checked?'block':'none';"><label class="switch-paddle" for="gwp_nm_`+os+'_enabled"><span class="switch-active" aria-hidden="true">On</span><span class="switch-inactive" aria-hidden="true">Off</span></label></div></div></div><div id="gwp_nm_'+os+'_custom" style="display:none;padding-left:20px;">'+La("gwp_nm_"+os+"_")+"</div></div>"}if(Me+="</div></div>",Rs&&Rs.length>0){Me+='<div class="gwp_formfieldlinealt"><div class="gwp_formfieldtitle">Muted groups</div><div class="gwp_formfieldalt"><div class="gwp_formfieldline">';for(var ua=0;ua<Rs.length;ua++){var Da=Rs[ua],Fa=Da.replace(/ /g,"_");Me+='<div class="gwp_forminlineblock" style="margin-right:15px;"><input type="checkbox" id="gwp_nmute_'+Fa+'" name="formdata" style="margin-right:4px;"><label for="gwp_nmute_'+Fa+'">'+Da+"</label></div>"}Me+="</div></div></div>"}Me+="</div>",s.innerHTML=Me;var a=document.getElementById(t);a&&a.appendChild(s);break;case"colour picker":s.setAttribute("gwp_ftype",l);var _a=p||"#2a9d8f",Ss='<div class="select_field_wrapper">';Ss+='<div id="'+e+'" class="select_colpicframe" gwp_ftype="'+l+`" ffunc="gwp_colourSelected" type="form" select_icon="<i class='las la-palette'></i>"></div>`,Ss+='<input type="hidden" id="'+e+'_value" name="'+v+'" gwp_ftype="'+l+'" value="'+_a+'">',Ss+="</div>",Ss+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please select a colour</div>',s.innerHTML=u+'<div class="gwp_formfield">'+Ss+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);var nt=document.getElementById(e);if(nt&&typeof select_activate_colpic=="function")try{select_activate_colpic(e),_a&&typeof select_cp_col=="function"&&select_cp_col(e,_a)}catch{}break;case"country":s.setAttribute("gwp_ftype",l);var Ja=p||"",Xe=d.defaultcountry||"",Vs='<div class="select_field_wrapper">';Vs+='<div id="'+e+'" class="select_singleframe select_country_selector" gwp_ftype="'+l+'" select_search="true"></div>',Vs+="</div>",Vs+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please select a country</div>',s.innerHTML=u+'<div class="gwp_formfield">'+Vs+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);var rt=document.getElementById(e);if(rt&&typeof select_activate_single=="function")try{if(select_activate_single(),typeof gwp_countries<"u"&&gwp_countries.length>0)select_addvalues(gwp_countries,e);else{var lt=["\u{1F1EC}\u{1F1E7} United Kingdom","\u{1F1FA}\u{1F1F8} United States","\u{1F1E8}\u{1F1E6} Canada","\u{1F1E6}\u{1F1FA} Australia","\u{1F1E9}\u{1F1EA} Germany","\u{1F1EB}\u{1F1F7} France","\u{1F1EE}\u{1F1F9} Italy","\u{1F1EA}\u{1F1F8} Spain","\u{1F1F3}\u{1F1F1} Netherlands","\u{1F1E7}\u{1F1EA} Belgium"];select_addvalues(lt,e)}Ja?select_additems([Ja],e):Xe&&select_additems([Xe],e)}catch{}break;case"otp":s.setAttribute("gwp_ftype",l);for(var qs=parseInt(d.otplength)||parseInt(d.length)||6,Pa=p&&typeof p=="string"?p:String(p||""),Os='<div class="gwp_otp_container" data-length="'+qs+'">',vs=0;vs<qs;vs++){var ct=Pa.charAt(vs)||"";Os+='<input type="text" class="gwp_otp_digit" id="'+e+"_digit"+vs+'" maxlength="1" pattern="[0-9]" inputmode="numeric" value="'+ct+`" onfocus="this.select();" oninput="gwp_otpInput(this, '`+e+"', "+vs+", "+qs+`)" onkeydown="gwp_otpKeydown(event, this, '`+e+"', "+vs+", "+qs+`)" onpaste="gwp_otpPaste(event, '`+e+"', "+qs+')">'}Os+="</div>",Os+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" value="'+Pa+'">',Os+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please enter the verification code</div>',s.innerHTML=u+'<div class="gwp_formfield">'+Os+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"likert":s.setAttribute("gwp_ftype",l);var Ga=d.likertstatement||"",us=d.likertscale||d.scale||"5-point (Agree/Disagree)",Ls=5,Ms=["Strongly Disagree","Disagree","Neutral","Agree","Strongly Agree"];typeof us=="string"?us.indexOf("7-point")>-1?(Ls=7,Ms=["Strongly Disagree","Disagree","Somewhat Disagree","Neutral","Somewhat Agree","Agree","Strongly Agree"]):us.indexOf("4-point")>-1?(Ls=4,Ms=["Never","Rarely","Sometimes","Always"]):us.indexOf("Satisfaction")>-1&&(Ms=["Very Dissatisfied","Dissatisfied","Neutral","Satisfied","Very Satisfied"]):typeof us=="number"&&(Ls=us),d.labels&&(Ms=d.labels);var Ya=p||"",ie='<div class="gwp_likert_container gwp_likert_scale_'+Ls+'">';Ga&&(ie+='<div class="gwp_likert_statement">'+Ga+"</div>"),ie+='<div class="gwp_likert_options">';for(var Ke=1;Ke<=Ls;Ke++){var dt=Ms[Ke-1]||Ke,pt=Ke==Ya?"checked":"";ie+='<label class="gwp_likert_option">',ie+='<input type="radio" name="'+e+'" value="'+Ke+'" '+pt+` onchange="gwp_updateLikert('`+e+"', "+Ke+')">',ie+='<span class="gwp_likert_radio"></span>',ie+='<span class="gwp_likert_label">'+dt+"</span>",ie+="</label>"}ie+="</div>",ie+="</div>",ie+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" value="'+Ya+'">',ie+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please select an option</div>',s.innerHTML=u+'<div class="gwp_formfield">'+ie+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"nps":s.setAttribute("gwp_ftype",l);var za=p||"",pe='<div class="gwp_nps_container">';pe+='<div class="gwp_nps_labels"><span>Not at all likely</span><span>Extremely likely</span></div>',pe+='<div class="gwp_nps_scale">';
1for(var Te=0;Te<=10;Te++){var ot=Te==za?"checked":"",vt=Te<=6?"detractor":Te<=8?"passive":"promoter";pe+='<label class="gwp_nps_option gwp_nps_'+vt+'">',pe+='<input type="radio" name="'+e+'" value="'+Te+'" '+ot+` onchange="gwp_updateNps('`+e+"', "+Te+')">',pe+='<span class="gwp_nps_number">'+Te+"</span>",pe+="</label>"}pe+="</div>",pe+="</div>",pe+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" value="'+za+'">',pe+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please select a score</div>',s.innerHTML=u+'<div class="gwp_formfield">'+pe+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"password strength":s.setAttribute("gwp_ftype",l);var ut=p||"",L='<div class="select_field_wrapper gwp_password_strength_wrapper">';L+='<div class="gwp_password_input_container">',L+='<input type="password" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_inputframe gwp_password_strength_input" value="'+ut+'" placeholder="'+(b||"Enter password")+`" oninput="gwp_checkPasswordStrength('`+e+`')">`,L+=`<span class="gwp_password_toggle" onclick="gwp_togglePasswordVisibility('`+e+`')"><i class="las la-eye"></i></span>`,L+="</div>",L+='<div id="'+e+'_strength" class="gwp_password_strength_meter">',L+='<div class="gwp_strength_bar"><div id="'+e+'_bar" class="gwp_strength_fill"></div></div>',L+='<span id="'+e+'_text" class="gwp_strength_text"></span>',L+="</div>",L+='<ul id="'+e+'_requirements" class="gwp_password_requirements">',L+='<li id="'+e+'_req_length"><i class="las la-times"></i> At least 8 characters</li>',L+='<li id="'+e+'_req_upper"><i class="las la-times"></i> One uppercase letter</li>',L+='<li id="'+e+'_req_lower"><i class="las la-times"></i> One lowercase letter</li>',L+='<li id="'+e+'_req_number"><i class="las la-times"></i> One number</li>',L+='<li id="'+e+'_req_special"><i class="las la-times"></i> One special character</li>',L+="</ul>",L+="</div>",L+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please enter a password</div>',s.innerHTML=u+'<div class="gwp_formfield">'+L+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"currency":s.setAttribute("gwp_ftype",l);var _t=d.currencysymbol||d.currency||"\xA3 GBP",Ua=_t.split(" "),wt=Ua[0]||"\xA3",mt=Ua[1]||"GBP",ft=d.decimals!==void 0?d.decimals:2,yt=p||"",We='<div class="gwp_currency_wrapper">';We+='<span class="gwp_currency_symbol">'+wt+"</span>",We+='<div class="select_field_wrapper">',We+='<input type="text" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" class="select_inputframe gwp_currency_input" value="'+yt+'" placeholder="'+(b||"0.00")+'" data-currency="'+mt+'" data-decimals="'+ft+'" oninput="gwp_formatCurrency(this)" onblur="gwp_finalizeCurrency(this)">',We+="</div>",We+="</div>",We+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please enter an amount</div>',s.innerHTML=u+'<div class="gwp_formfield">'+We+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"date range":s.setAttribute("gwp_ftype",l);var wa=p?typeof p=="string"?JSON.parse(p):p:{start:"",end:""},bt=wa.start||"",ht=wa.end||"",Z='<div class="gwp_date_range_container">';Z+='<div class="gwp_date_range_field">',Z+='<label class="gwp_date_range_label">From</label>',Z+='<input type="date" id="'+e+'_start" class="select_inputframe gwp_date_range_input" value="'+bt+`" onchange="gwp_updateDateRange('`+e+`')">`,Z+="</div>",Z+='<span class="gwp_date_range_separator"><i class="las la-arrow-right"></i></span>',Z+='<div class="gwp_date_range_field">',Z+='<label class="gwp_date_range_label">To</label>',Z+='<input type="date" id="'+e+'_end" class="select_inputframe gwp_date_range_input" value="'+ht+`" onchange="gwp_updateDateRange('`+e+`')">`,Z+="</div>",Z+="</div>",Z+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+`" value='`+JSON.stringify(wa)+"'>",Z+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please select a date range</div>',s.innerHTML=u+'<div class="gwp_formfield">'+Z+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"time range":s.setAttribute("gwp_ftype",l);var ma=p?typeof p=="string"?JSON.parse(p):p:{start:"",end:""},gt=ma.start||"",kt=ma.end||"",j='<div class="gwp_time_range_container">';j+='<div class="gwp_time_range_field">',j+='<label class="gwp_time_range_label">From</label>',j+='<input type="time" id="'+e+'_start" class="select_inputframe gwp_time_range_input" value="'+gt+`" onchange="gwp_updateTimeRange('`+e+`')">`,j+="</div>",j+='<span class="gwp_time_range_separator"><i class="las la-arrow-right"></i></span>',j+='<div class="gwp_time_range_field">',j+='<label class="gwp_time_range_label">To</label>',j+='<input type="time" id="'+e+'_end" class="select_inputframe gwp_time_range_input" value="'+kt+`" onchange="gwp_updateTimeRange('`+e+`')">`,j+="</div>",j+='<span id="'+e+'_duration" class="gwp_time_range_duration"></span>',j+="</div>",j+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+`" value='`+JSON.stringify(ma)+"'>",j+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">
1Please select a time range</div>',s.innerHTML=u+'<div class="gwp_formfield">'+j+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"social links":s.setAttribute("gwp_ftype",l);var he=d.socialplatforms,me=[];he&&typeof he=="object"?(he.facebook&&me.push("facebook"),he.twitter&&me.push("twitter"),he.instagram&&me.push("instagram"),he.linkedin&&me.push("linkedin"),he.youtube&&me.push("youtube"),he.tiktok&&me.push("tiktok"),he.website&&me.push("website")):me=d.platforms||["facebook","twitter","instagram","linkedin"];var Hs=p?typeof p=="string"&&p.startsWith("{")?JSON.parse(p):p:{};typeof Hs!="object"&&(Hs={});for(var ge='<div class="gwp_social_links_container">',It={facebook:"lab la-facebook-f",twitter:"lab la-twitter",instagram:"lab la-instagram",linkedin:"lab la-linkedin-in",youtube:"lab la-youtube",tiktok:"las la-music",pinterest:"lab la-pinterest-p",snapchat:"lab la-snapchat-ghost",whatsapp:"lab la-whatsapp",telegram:"lab la-telegram-plane",website:"las la-external-link-alt"},Et={facebook:"https://facebook.com/",twitter:"https://twitter.com/",instagram:"https://instagram.com/",linkedin:"https://linkedin.com/in/",youtube:"https://youtube.com/@",tiktok:"https://tiktok.com/@",pinterest:"https://pinterest.com/",snapchat:"https://snapchat.com/add/",whatsapp:"https://wa.me/",telegram:"https://t.me/",website:""},fa=0;fa<me.length;fa++){var De=me[fa].toLowerCase(),Bt=It[De]||"las la-link",xt=Et[De]||"",At=Hs[De]||"";ge+='<div class="gwp_social_link_row">',ge+='<span class="gwp_social_icon gwp_social_'+De+'"><i class="'+Bt+'"></i></span>',De!=="website"&&(ge+='<span class="gwp_social_url">'+xt+"</span>"),ge+='<input type="text" id="'+e+"_"+De+'" class="select_inputframe gwp_social_input" value="'+At+'" placeholder="'+(De==="website"?"https://yourwebsite.com":"username")+`" onchange="gwp_updateSocialLinks('`+e+`')" data-platform="`+De+'">',ge+="</div>"}ge+="</div>",ge+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+`" value='`+JSON.stringify(Hs)+"'>",ge+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please enter at least one social link</div>',s.innerHTML=u+'<div class="gwp_formfield">'+ge+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"file upload":s.setAttribute("gwp_ftype",l);var Nt=d.accept||"*",ja=d.maxsize||10,Vt=d.multiple!==!1,ya=p?typeof p=="string"?JSON.parse(p):p:[],oe='<div class="gwp_file_upload_container" data-maxsize="'+ja+'">';oe+='<div class="gwp_file_dropzone" id="'+e+`_dropzone" ondragover="gwp_fileDragOver(event)" ondragleave="gwp_fileDragLeave(event)" ondrop="gwp_fileDrop(event, '`+e+`')" onclick="document.getElementById('`+e+`_input').click();">`,oe+='<i class="las la-cloud-upload-alt gwp_file_icon"></i>',oe+='<p class="gwp_file_text">Drag files here or click to browse</p>',oe+='<p class="gwp_file_hint">Max size: '+ja+"MB</p>",oe+="</div>",oe+='<input type="file" id="'+e+'_input" class="gwp_file_input" accept="'+Nt+`" multiple onchange="gwp_fileSelected(this, '`+e+`')" style="display:none;">`,oe+='<div id="'+e+'_preview" class="gwp_file_preview"></div>',oe+="</div>",oe+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+`" value='`+JSON.stringify(ya)+"'>",oe+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please upload a file</div>',s.innerHTML=u+'<div class="gwp_formfield">'+oe+"</div>";var a=document.getElementById(t);a&&a.appendChild(s),ya.length>0&&typeof gwp_renderFilePreview=="function"&&gwp_renderFilePreview(e,ya);break;case"signature":s.setAttribute("gwp_ftype",l);var ba=p||"",ke='<div class="gwp_signature_container">';ke+='<canvas id="'+e+'_canvas" class="gwp_signature_canvas" width="400" height="150"></canvas>',ke+='<div id="gwp_required'+e+'" class="gwp_required gwp_signature_required" style="display:none;">Please provide a signature</div>',ke+='<div class="gwp_signature_controls">',ke+=`<button type="button" class="gwp_signature_clear" onclick="gwp_clearSignature('`+e+`')"><i class="las la-eraser"></i> Clear</button>`,ke+=`<button type="button" class="gwp_signature_undo" onclick="gwp_undoSignature('`+e+`')"><i class="las la-undo"></i> Undo</button>`,ke+="</div>",ke+="</div>",ke+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" value="'+ba+'">',s.innerHTML=u+'<div class="gwp_formfield">
1'+ke+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);var Ct=document.getElementById(e+"_canvas");if(Ct&&typeof gwp_initSignaturePad=="function")try{gwp_initSignaturePad(e),ba&&gwp_loadSignature(e,ba)}catch{}break;case"rich text":s.setAttribute("gwp_ftype",l);var $=p||"";$&&$.indexOf("gwp_controls")!==-1&&($="");var Ze=e+"_form_editor",Ts='<div class="gwp_rich_text_container">';Ts+='<div id="'+Ze+'" class="gwp_editor gwp_seditor_wrapper"></div>',Ts+="</div>",Ts+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" value="">',Ts+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please enter some text</div>',s.innerHTML=u+'<div class="gwp_formfield">'+Ts+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);var St=document.getElementById(Ze);if(St&&typeof gwp_seditor=="function")try{if(gwp_seditor({eid:Ze,type:d&&d.type?d.type:"standard",placeholder:"Enter text here..."}),$){if(typeof gwp_esave=="function"){var ha=$.indexOf("<")!==-1,qt=ha?$:"<p>"+$+"</p>";gwp_esave(Ze,null,qt)}else{var Xa=document.getElementById("gwp_seinput"+Ze);if(Xa){var ha=$.indexOf("<")!==-1;Xa.innerHTML=ha?$:"<p>"+$+"</p>"}}var Ka=document.getElementById(e);Ka&&(Ka.value=$)}var Wa=document.getElementById("gwp_seinput"+Ze);Wa&&Wa.addEventListener("input",function(){var C=document.getElementById(e);C&&(typeof gwp_eget=="function"?C.value=gwp_eget(Ze)||"":C.value=this.innerHTML)})}catch{gwp_initBasicRichText(e,$)}else typeof gwp_initBasicRichText=="function"&&gwp_initBasicRichText(e,$);break;case"image select":s.setAttribute("gwp_ftype",l);var ga=d.imageoptions||d.images||[],Za=d.imagemultiple||d.multiple||!1,ea=p?typeof p=="string"&&p.startsWith("[")?JSON.parse(p):[p]:[];if(Array.isArray(ea)||(ea=[]),ga.length===0){s.innerHTML=u+'<div class="gwp_formfield"><div class="gwp_image_select_empty">No images configured. Add images in the field settings.</div></div>';var a=document.getElementById(t);a&&a.appendChild(s);break}for(var Ie='<div class="gwp_image_select_container" data-multiple="'+Za+'">',ka=0;ka<ga.length;ka++){var Ee=ga[ka],Oe=typeof Ee=="string"?Ee:Ee.src||Ee.url,Ia=typeof Ee=="string"?"":Ee.label||"",$a=typeof Ee=="string"?Ee:Ee.value||Oe,Ot=ea.indexOf($a)>-1?" selected":"";Ie+='<div class="gwp_image_option'+Ot+'" data-value="'+$a+`" onclick="gwp_selectImage(this, '`+e+"', "+Za+')">',Ie+='<img src="'+Oe+'" alt="'+Ia+'">',Ia&&(Ie+='<span class="gwp_image_label">'+Ia+"</span>"),Ie+='<span class="gwp_image_check"><i class="las la-check"></i></span>',Ie+="</div>"}Ie+="</div>",Ie+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+`" value='`+JSON.stringify(ea)+"'>",Ie+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please select an image</div>',s.innerHTML=u+'<div class="gwp_formfield">'+Ie+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"ranking":s.setAttribute("gwp_ftype",l);var Q=d.rankingitems||d.items||[];if(typeof Q=="string")try{Q=JSON.parse(Q)}catch{Q=Q.split(",").map(function(T){return T.trim()}).filter(function(T){return T})}if(Q&&!Array.isArray(Q)&&typeof Q=="object"&&(Q=Object.values(Q)),!Array.isArray(Q)||Q.length===0){s.innerHTML=u+'<div class="gwp_formfield"><div class="gwp_ranking_empty">No items configured. Add items in the field settings.</div></div>';var a=document.getElementById(t);a&&a.appendChild(s);break}var _s=Q;if(p&&typeof p=="string"&&p.startsWith("[")&&p!=="[]")try{var Ea=JSON.parse(p);Array.isArray(Ea)&&Ea.length>0&&(_s=Ea)}catch{}else Array.isArray(p)&&p.length>0&&(_s=p);for(var Be='<div class="gwp_ranking_container" id="'+e+'_container">',Ds=0;Ds<_s.length;Ds++)Be+='<div class="gwp_ranking_item" draggable="true" data-value="'+_s[Ds]+`" ondragstart="gwp_rankDragStart(event)" ondragover="gwp_rankDragOver(event)" ondrop="gwp_rankDrop(event, '`+e+`')" ondragend="gwp_rankDragEnd(event)">`,Be+='<span class="gwp_ranking_handle"><i class="las la-grip-lines"></i></span>',Be+='<span class="gwp_ranking_number">'+(Ds+1)+"</span>",Be+='<span class="gwp_ranking_text">'+_s[Ds]+"</span>",Be+="</div>";Be+="</div>",Be+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+`" value='`+JSON.stringify(_s)+"'>",Be+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please rank the items</div>',s.innerHTML=u+'<div class="gwp_formfield">'+Be+"</div>";var a=document.getElementById(t);a&&a.appendChild(s);break;case"repeater":s.setAttribute("gwp_ftype",l);var Lt=d.fields||[],Mt=parseInt(d.repeatermax)||parseInt(d.maxitems)||10,Ba=parseInt(d.repeatermin)||parseInt(d.minitems)||1,Qa=d.repeaterlabel||"Item",ws=p?typeof p=="string"&&p.startsWith("[")?JSON.parse(p):p:[];Array.isArray(ws)||(ws=[]);var ms='<div class="gwp_repeater_container" id="'+e+'_container" data-fieldid="'+e+'" data-maxitems="'+Mt+'" data-minitems="'+Ba+'" data-label="'+Qa+`" data-fields='`+JSON.stringify(Lt)+"'>";ms+='<div id="'+e+'_items" class="gwp_repeater_items"></div>',ms+=`<button type="button" class="gwp_repeater_add" onclick="gwp_addRepeaterItem('`+e+`')"><i class="las la-plus"></i> Add `+Qa+"</button>",ms+="</div>",ms+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+`" value='`+JSON.stringify(ws)+"'>",ms+='<div id="gwp_required'+e+'" class="gwp_required" style="display:none;">Please add at least one item</div>',s.innerHTML=u+'<div class="gwp_formfield">'+ms+"</div>";var a=document.getElementById(t);if(a&&a.appendChild(s),typeof gwp_addRepeaterItem=="function"){if(ws.length>0)for(var xa=0;xa<ws.length;xa++)gwp_addRepeaterItem(e,ws[xa]);else if(Ba>0)for(var ps=0;ps<Ba;ps++)gwp_addRepeaterItem(e)}break;case"calculated":s.setAttribute("gwp_ftype",l);var sa=d.formula||"",Aa=d.calcprefix||d.prefix||"",Na=d.calcsuffix||d.suffix||"",Tt=d.c
1alcdecimals||d.decimals||2,Ra=p||"0",$e='<div class="gwp_calculated_container">';Aa&&($e+='<span class="gwp_calculated_prefix">'+Aa+"</span>"),$e+='<span id="'+e+'_display" class="gwp_calculated_value">'+Ra+"</span>",Na&&($e+='<span class="gwp_calculated_suffix">'+Na+"</span>"),$e+="</div>",sa||($e+='<div class="gwp_calculated_hint">No formula configured. Set formula in field settings.</div>'),$e+='<input type="hidden" id="'+e+'" name="'+v+'" gwp_ftype="'+l+'" value="'+Ra+'" data-formula="'+encodeURIComponent(sa)+'" data-decimals="'+Tt+'" data-prefix="'+encodeURIComponent(Aa)+'" data-suffix="'+encodeURIComponent(Na)+'">',s.innerHTML=u+'<div class="gwp_formfield">'+$e+"</div>";var a=document.getElementById(t);if(a&&a.appendChild(s),sa){var Dt=sa.match(/\{([^}]+)\}/g)||[];Dt.forEach(function(C){var T=C.replace(/[{}]/g,""),ue=document.querySelector('[name="'+T+'"]')||document.getElementById(T)||document.querySelector('input[name^="'+T+'"]');if(ue)(function(D){ue.addEventListener("change",function(){gwp_calculateField(D)}),ue.addEventListener("input",function(){gwp_calculateField(D)})})(e);else{var X=document.querySelectorAll('input[type="radio"][name="'+T+'"]');X.forEach(function(D){(function(Ma){D.addEventListener("change",function(){gwp_calculateField(Ma)})})(e)})}}),typeof gwp_calculateField=="function"&&gwp_calculateField(e)}break;case"ticket sales":s.setAttribute("gwp_ftype",l);var fs=d.tickettypes||[];if(typeof fs=="string")try{fs=JSON.parse(fs)}catch{fs=fs.split(",").map(function(T){return T.trim()}).filter(function(T){return T})}var Ft=d.ticketcurrency||"\xA3",Jt=parseInt(d.ticketmax)||10,Pt=parseInt(d.ticketmaxtotal)||0,Gt=d.ticketshowtotal!==!1,Ca={};if(p)try{typeof p=="string"?Ca=JSON.parse(p):Ca=p}catch{}var fe='<div id="'+e+'" class="select_ticketframe" ';fe+='data-currency="'+Ft+'" ',fe+='data-max="'+Jt+'" ',fe+='data-maxtotal="'+Pt+'" ',fe+='data-showtotal="'+Gt+'" ',fe+="data-types='"+JSON.stringify(fs).replace(/'/g,"&#39;")+"' ";var ys=d.attendeefields||[];if(typeof ys=="string")try{ys=JSON.parse(ys)}catch{ys=[]}ys.length>0&&(fe+="data-attendeefields='"+JSON.stringify(ys).replace(/'/g,"&#39;")+"' "),fe+='gwp_ftype="'+l+'">',fe+="</div>",fe+='<input type="hidden" id="'+e+'_value" name="'+v+`" value='`+JSON.stringify(Ca)+"'>",s.innerHTML=u+'<div class="gwp_formfield">'+fe+"</div>";var a=document.getElementById(t);a&&a.appendChild(s),select_activate_ticket(e);break;case"rsvp":s.setAttribute("gwp_ftype",l);var Yt=d.rsvpyes!==!1,zt=d.rsvpno!==!1,Ut=d.rsvpmaybe!==!1,jt=d.rsvpguests!==!1,Xt=parseInt(d.rsvpmaxguests)||5,Kt=d.rsvpdietary===!0,Wt=d.rsvpcomments!==!1,Sa={response:"",guests:0,dietary:"",comments:""};if(p)try{typeof p=="string"?Sa=JSON.parse(p):Sa=p}catch{}var ve='<div id="'+e+'" class="select_rsvpframe" ';ve+='data-allowyes="'+Yt+'" ',ve+='data-allowno="'+zt+'" ',ve+='data-allowmaybe="'+Ut+'" ',ve+='data-allowguests="'+jt+'" ',ve+='data-maxguests="'+Xt+'" ',ve+='data-dietary="'+Kt+'" ',ve+='data-comments="'+Wt+'" ',ve+='gwp_ftype="'+l+'">',ve+="</div>",ve+='<input type="hidden" id="'+e+'_value" name="'+v+`" value='`+JSON.stringify(Sa)+"'>",s.innerHTML=u+'<div class="gwp_formfield">'+ve+"</div>";var a=document.getElementById(t);a&&a.appendChild(s),select_activate_rsvp(e);break;default:}if(ye.push(v),V==!0&&requiredauth!=!1){var s=document.createElement("div");s.setAttribute("id","gwp_required"+e);var Va="gwp_required";(be===!1||be==="false")&&(Va+=" gwp_required_notitle"),s.setAttribute("class",Va),s.innerHTML="*field cannot be blank/incomplete";var a=document.getElementById(t);a&&a.appendChild(s)}if(R!=""&&R!=!1){var e=R.fieldid,qa=R.func,J=R.param,Zt=document.getElementById(e),Bs=new MutationObserver(qa);Bs.observe(Zt,J),document.getElementById(e).setAttribute("value","wow")}if(de!=""&&de!=!1){var e=de.fieldid,qa=de.func,l=de.type;document.getElementById(e).addEventListener(l,qa,!1)}if(K!=""&&K!=!1)for(var xe=0;xe<K.length;xe++)document.getElementById(e).setAttribute(K[xe][0],K[xe][1])}}var Ha=document.getElementById(r+"gwp_formnameids");if(Ha&&(Ha.value=Ge.join(",")),w!=null&&w!=""){var s=document.createElement("div");s.setAttribute("id","gwp_submitframe"+i);var et="gwp_submitframe";F&&(et+=" gwp_submitbox_"+F),s.setAttribute("class",et),document.getElementById(r).appendChild(s);var s=document.createElement("a");s.setAttribute("id","gwp_submit"),s.setAttribute("class","gwp_submit"),s.setAttribute("onclick","gwp_validatefields("+h+",`"+r+"`);"),s.innerHTML=S,document.getElementById("gwp_submitframe"+i).appendChild(s)}var ne=window.gwp_current_footer||null;if(ne&&(ne.enabled===!0||ne.enabled==="true"||ne.enabled===1)){var st=document.getElementById(r);if(st){var at=document.getElementById("gwp_form_footer_"+i);at&&at.remove();var Fs=document.createElement("div");Fs.setAttribute("id","gwp_form_footer_"+i),Fs.setAttribute("class","gwp_form_footer");var Fe='<hr class="gwp_form_footer_hr">';Fe+='<div class="gwp_form_footer_content gwp_form_footer_'+(ne.layout||"logo-left")+'">';var Js="",bs="";if(ne.logo){var $t=ne.logoWidth||"120";Js='<div class="gwp_form_footer_logo"><img src="'+ne.logo+'" alt="Logo" style="max-width:'+$t+'px;"></div>'}ne.text&&(bs='<div class="gwp_form_footer_text">'+ne.text.replace(/\n/g,"<br>")+"</div>");var Qt=ne.style||"minimal",Qe=ne.layout||"logo-left";if(Fs.classList.add("gwp_form_footer_style_"+Qt),Qe==="logo-right"||Qe==="right"?Fe+=bs+Js:Qe==="logo-center"||Qe==="center"||Qe==="centered"?Fe+='<div class="gwp_form_footer_center">
1'+Js+bs+"</div>":Qe==="stacked"?Fe+='<div class="gwp_form_footer_stacked">'+Js+bs+"</div>":Qe==="text-only"?Fe+=bs:Fe+=Js+bs,Fe+="</div>",Fs.innerHTML=Fe,!document.getElementById("gwp_form_footer_styles")){var Oa=document.createElement("style");Oa.id="gwp_form_footer_styles",Oa.innerHTML=".gwp_form_footer { margin-top: 20px; padding-top: 15px; }.gwp_form_footer_hr { border: none; border-top: 1px solid #e0e0e0; margin: 0 0 15px 0; }.gwp_form_footer_content { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }.gwp_form_footer_logo img { display: block; height: auto; }.gwp_form_footer_text { flex: 1; font-size: 12px; color: #666; line-height: 1.4; }.gwp_form_footer_logo-left { flex-direction: row; }.gwp_form_footer_logo-right, .gwp_form_footer_right { flex-direction: row-reverse; }.gwp_form_footer_logo-center, .gwp_form_footer_center, .gwp_form_footer_centered { flex-direction: column; text-align: center; }.gwp_form_footer_center, .gwp_form_footer_stacked { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }.gwp_form_footer_logo-center .gwp_form_footer_text, .gwp_form_footer_centered .gwp_form_footer_text, .gwp_form_footer_stacked .gwp_form_footer_text { flex: none; text-align: center; }.gwp_form_footer_style_bordered { border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; margin-top: 25px; background: #fafafa; }.gwp_form_footer_style_bordered .gwp_form_footer_hr { display: none; }.gwp_form_footer_style_gradient { background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%); border-radius: 8px; padding: 20px; margin-top: 25px; }.gwp_form_footer_style_gradient .gwp_form_footer_hr { display: none; }.gwp_form_footer_style_dark { background: #2d3748; border-radius: 8px; padding: 20px; margin-top: 25px; }.gwp_form_footer_style_dark .gwp_form_footer_hr { display: none; }.gwp_form_footer_style_dark .gwp_form_footer_text { color: #e2e8f0; }.gwp_form_footer_style_accent { border-left: 4px solid var(--swp-primary-color, #F83600); padding-left: 15px; margin-top: 25px; }.gwp_form_footer_style_accent .gwp_form_footer_hr { display: none; }.gwp_form_footer_style_shadow { background: #fff; border-radius: 8px; padding: 20px; margin-top: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }.gwp_form_footer_style_shadow .gwp_form_footer_hr { display: none; }.gwp_form_footer_style_compact { margin-top: 15px; padding-top: 10px; }.gwp_form_footer_style_compact .gwp_form_footer_content { gap: 10px; }.gwp_form_footer_style_compact .gwp_form_footer_text { font-size: 11px; }.gwp_form_footer_style_compact .gwp_form_footer_hr { margin-bottom: 10px; }",document.head.appendChild(Oa)}st.appendChild(Fs)}}if(re!=null)for(y=0;y<re.length;y++){for(var l=re[y].type,K=re[y].attributes,Rt=re[y].innerhtml,m=re[y].append,q=document.createElement(l),xe=0;xe<K.length;xe++)q.setAttribute(K[xe][0],K[xe][1]);q.innerHTML=Rt,document.getElementById(m).appendChild(q)}}gwp_token="",gwp_gsuccess=!1,gwp_callback=!1;function gwp_vgcapture(n,r){typeof gwp_gsiteversion<"u"&&gwp_gsiteversion=="Version 2 invisible"&&(grecaptcha.reset(gwp_grcel),gwp_token=grecaptcha.getResponse()),typeof gwp_gsitekey<"u"&&gwp_gsiteversion=="Version 3"?gwp_gsitekey!=""&&grecaptcha.ready(function(){grecaptcha.execute(gwp_gsitekey,{action:"register"}).then(function(i){gwp_token=i,gwp_validatefields(n,r,gwp_token)})}):typeof gwp_gsitekey<"u"&&gwp_gsiteversion.includes("Version 2")==!0&&gwp_gsitekey!=""&&(gwp_token=grecaptcha.getResponse(),gwp_gsiteversion=="Version 2 invisible"&&grecaptcha.execute(),gwp_validatefields(n,r,gwp_token))}function gwp_validatefields(n,r){if(typeof gwp_gsiteversion<"u"&&gwp_gsiteversion!=""&&typeof gwp_gsitekey<"u"&&gwp_gsitekey!=""&&(gwp_token==null||gwp_token=="")){gwp_vgcapture(n,r),alert(gwp_gsiteversion+" "+gwp_token);return}if(r==""||r==null)var r="";for(var i=!0,t=document.getElementsByClassName("gwp_required"),o=0;o<t.length;o++)t[o].style.display="none";for(var o=0;o<gwp_requiredfields.length;o++){var c=gwp_requiredfields[o].fieldid,_=gwp_requiredfields[o].fieldtype;switch(_){case"email and password":if(document.getElementById("gwp_r_email").value==""){document.getElementById("gwp_required"+c+"em").style.display="block";var i=!1}if(document.getElementById("gwp_r_email").value!=""){var G=document.getElementById("gwp_r_email").value,f=select_val
1idateEmail(G);if(f==!1){document.getElementById("gwp_validemail"+c+"em").style.display="block";var i=!1}}if(document.getElementById("gwp_r_pass").value==""){document.getElementById("gwp_required"+c+"pw").style.display="block";var i=!1}if(document.getElementById("gwp_r_passconfirm").value==""){document.getElementById("gwp_required"+c+"pwc").style.display="block";var i=!1}var m=document.getElementById("gwp_r_pass"),w=document.getElementById("gwp_r_passconfirm");m!=null&&w!=null&&m.value!=w.value&&(document.getElementById("gwp_passmatch"+c+"pwc").style.display="block",i=!1);break;case"email and password change":if(document.getElementById("gwp_r_email").value==""){document.getElementById("gwp_required"+c+"em").style.display="block";var i=!1}if(document.getElementById("gwp_r_email").value!=""){var G=document.getElementById("gwp_r_email").value,f=select_validateEmail(G);if(f==!1){document.getElementById("gwp_validemail"+c+"em").style.display="block";var i=!1}}if(gwp_validatepassword=document.getElementById("gwp_r_changepassword").checked,gwp_validatepassword==!0){if(document.getElementById("gwp_r_pass").value==""){document.getElementById("gwp_r_required"+c+"pw").style.display="block";var i=!1}if(document.getElementById("gwp_r_passconfirm").value==""){document.getElementById("gwp_required"+c+"pwc").style.display="block";var i=!1}var m=document.getElementById("gwp_r_pass"),w=document.getElementById("gwp_r_passconfirm");m!=null&&w!=null&&m.value!=w.value&&(document.getElementById("gwp_passmatch"+c+"pwc").style.display="block",i=!1)}break;case"first and last name":if(document.getElementById("gwp_r_firstname").value==""){document.getElementById("gwp_required"+c+"fn").style.display="block";var i=!1}if(document.getElementById("gwp_r_lastname").value==""){document.getElementById("gwp_required"+c+"ln").style.display="block";var i=!1}break;case"text":if(document.getElementById(c).value==""){document.getElementById("gwp_required"+c).style.display="block";var i=!1}break;case"address":var S=document.getElementById("gwp_required"+c);if(select_validateAddress(c))S&&(S.style.display="none");else{S&&(S.style.display="block");var i=!1}break;case"form text":break;case"number":var h=document.getElementById(c)?document.getElementById(c).value:"",F=document.getElementById("gwp_required"+c);if(h===""){F&&(F.style.display="block");var i=!1}break;case"week":var re=document.getElementById(c)?document.getElementById(c).value:"",Je=document.getElementById("gwp_required"+c);if(re===""){Je&&(Je.style.display="block");var i=!1}break;case"date":var s=document.getElementById(c)?document.getElementById(c).value:"",Pe=document.getElementById("gwp_required"+c);if(s===""){Pe&&(Pe.style.display="block");var i=!1}break;case"datetime-local":var ye=document.getElementById(c)?document.getElementById(c).value:"",Ge=document.getElementById("gwp_required"+c);if(ye===""){Ge&&(Ge.style.display="block");var i=!1}break;case"time":var y=document.getElementById(c)?document.getElementById(c).value:"",Re=document.getElementById("gwp_required"+c);if(y===""){Re&&(Re.style.display="block");var i=!1}break;case"email":var G=document.getElementById(c).value,e=document.getElementById("gwp_required"+c);if(e&&(e.style.display="none"),G===""){e&&(e.style.display="block");var i=!1}else{var f=select_validateEmail(document.getElementById(c));if(f==!1)var i=!1}break;case"telephone":var aa=document.getElementById(c).value,v=document.getElementById("gwp_required"+c);if(v&&(v.style.display="none"),aa===""){v&&(v.style.display="block");var i=!1}else{var f=select_validatePhone(document.getElementById(c));if(f==!1)var i=!1}break;case"checkbox":var l=document.getElementById(c),d=document.getElementById("gwp_required"+c);if(l&&!l.checked){d&&(d.style.display="block");var i=!1}break;case"attachment":var le=document.getElementById(c),I=document.getElementById("gwp_required"+c);if(le&&(!le.value||le.value==="")){I&&(I.style.display="block");var i=!1}break;case"link":var Ve=document.getElementById(c),b=document.getElementById("gwp_required"+c);if(Ve&&(!Ve.value||Ve.value==="")){b&&(b.style.display="block");var i=!1}break;case"dropdown box":var B=document.getElementById("gwp_required"+c),pItems=typeof select_getitems=="function"?select_getitems(c):[],pFilled=Array.isArray(pItems)&&pItems.some(function(pv){return pv&&pv!==""&&pv!=="Select..."});if(!pFilled){B&&(B.style.display="block");var i=!1}else B&&(B.style.display="none");break;
1case"tagbox":var He=document.getElementById("gwp_required"+c),tItems=typeof select_getitems=="function"?select_getitems(c):[],tFilled=Array.isArray(tItems)&&tItems.some(function(tv){return tv&&tv!==""});if(!tFilled){He&&(He.style.display="block");var i=!1}else He&&(He.style.display="none");break;case"rating":var ce=document.getElementById(c),_e=document.getElementById("gwp_required"+c);if(ce&&(!ce.value||ce.value===""||ce.value==="0")){_e&&(_e.style.display="block");var i=!1}break;case"progress":break;case"location":break;case"image":break;case"password":break;case"spacing block":break;case"url":var K=document.getElementById(c).value,R=document.getElementById("gwp_required"+c);if(R&&(R.style.display="none"),K===""){R&&(R.style.display="block");var i=!1}else{var f=select_validateUrl(document.getElementById(c));if(f==!1)var i=!1}break;case"star rating":var de=document.getElementById(c),V=document.getElementById("gwp_required"+c);if(V&&(V.style.display="none"),de&&(de.value===""||de.value==="0")){V&&(V.style.display="block");var i=!1}break;case"slider":break;case"credit card":var N=document.getElementById(c+"_number"),Ae=document.getElementById(c+"_expiry"),be=document.getElementById(c+"_cvv"),u=document.getElementById("gwp_required"+c);u&&(u.style.display="none");var Ye=!0;if(N){var H=N.value.replace(/\D/g,"");H.length<13||H.length>16||!gwp_luhnCheck(H)?(Ye=!1,N.classList.add("select_field_invalid")):N.classList.remove("select_field_invalid")}if(Ae){var we=Ae.value.replace(/\D/g,"");if(we.length<4)Ye=!1,Ae.classList.add("select_field_invalid");else{var ta=parseInt(we.substring(0,2)),hs=parseInt("20"+we.substring(2,4)),ia=new Date,na=new Date(hs,ta-1);na<=ia?(Ye=!1,Ae.classList.add("select_field_invalid")):Ae.classList.remove("select_field_invalid")}}if(be){var gs=be.value.replace(/\D/g,"");gs.length<3||gs.length>4?(Ye=!1,be.classList.add("select_field_invalid")):be.classList.remove("select_field_invalid")}if(!Ye){u&&(u.style.display="block");var i=!1}break;case"fill blanks":var ks=document.getElementById(c),Y=document.getElementById("gwp_required"+c);if(Y&&(Y.style.display="none"),ks)try{var es=ks.value;if(es&&es!==""){var W;try{W=JSON.parse(es)}catch{W=JSON.parse(decodeURIComponent(atob(es)))}var ee=!0;for(var g in W)if(!W[g]||W[g]===""){ee=!1;break}if(!ee){Y&&(Y.style.display="block");var i=!1}}else{Y&&(Y.style.display="block");var i=!1}}catch{Y&&(Y.style.display="block");var i=!1}break;case"colour picker":var Is=document.getElementById(c+"_value"),ss=document.getElementById("gwp_required"+c);if(ss&&(ss.style.display="none"),!Is||Is.value==""){ss&&(ss.style.display="block");var i=!1}break;case"country":var ze=select_getitems(c),se=document.getElementById("gwp_required"+c);if(se&&(se.style.display="none"),!ze||ze.length==0){se&&(se.style.display="block");var i=!1}break;case"otp":var ae=document.getElementById(c),as=document.getElementById("gwp_required"+c);as&&(as.style.display="none");var ts=document.querySelector(".gwp_otp_container[data-length]"),Ps=ts?parseInt(ts.getAttribute("data-length")):6;if(!ae||ae.value.length<Ps){as&&(as.style.display="block");var i=!1}break;case"likert":var Gs=document.getElementById(c),Ue=document.getElementById("gwp_required"+c);if(Ue&&(Ue.style.display="none"),!Gs||Gs.value==""){Ue&&(Ue.style.display="block");var i=!1}break;case"nps":var Ys=document.getElementById(c),is=document.getElementById("gwp_required"+c);if(is&&(is.style.display="none"),!Ys||Ys.value==""){is&&(is.style.display="block");var i=!1}break;case"password strength":var zs=document.getElementById(c),te=document.getElementById("gwp_required"+c);if(te&&(te.style.display="none"),!zs||zs.value==""){te&&(te.style.display="block");var i=!1}break;case"currency":var ns=document.getElementById(c),z=document.getElementById("gwp_required"+c);if(z&&(z.style.display="none"),!ns||ns.value==""||ns.value=="0.00"){z&&(z.style.display="block");var i=!1}break;case"date range":var k=document.getElementById(c),Ne=document.getElementById("gwp_required"+c);if(Ne&&(Ne.style.display="none"),k)try{var Us=JSON.parse(k.value||"{}");if(!Us.start||!Us.end){Ne&&(Ne.style.display="block");var i=!1}}catch{Ne&&(Ne.style.display="block");var i=!1}break;case"time range":var Es=document.getElementById(c),U=document.getElementById("gwp_required"+c);if(U&&(U.style.display="none"),Es)try{var J=JSON.parse(Es.value||"{}");
1if(!J.start||!J.end){U&&(U.style.display="block");var i=!1}}catch{U&&(U.style.display="block");var i=!1}break;case"social links":var ra=document.getElementById(c),Ce=document.getElementById("gwp_required"+c);if(Ce&&(Ce.style.display="none"),ra)try{var Bs=JSON.parse(ra.value||"{}");if(Object.keys(Bs).length==0){Ce&&(Ce.style.display="block");var i=!1}}catch{Ce&&(Ce.style.display="block");var i=!1}break;case"file upload":var js=document.getElementById(c),Se=document.getElementById("gwp_required"+c);if(Se&&(Se.style.display="none"),js)try{var la=JSON.parse(js.value||"[]");if(la.length==0){Se&&(Se.style.display="block");var i=!1}}catch{Se&&(Se.style.display="block");var i=!1}break;case"signature":var Xs=document.getElementById(c),je=document.getElementById("gwp_required"+c);if(je&&(je.style.display="none"),!Xs||Xs.value==""){je&&(je.style.display="block");var i=!1}break;case"rich text":var Ks=document.getElementById(c+"_editor"),rs=document.getElementById("gwp_required"+c);if(rs&&(rs.style.display="none"),Ks){var ca=Ks.innerHTML.replace(/<[^>]*>/g,"").trim();if(ca==""){rs&&(rs.style.display="block");var i=!1}}break;case"image select":var Ws=document.getElementById(c),qe=document.getElementById("gwp_required"+c);if(qe&&(qe.style.display="none"),Ws)try{var da=JSON.parse(Ws.value||"[]");if(da.length==0){qe&&(qe.style.display="block");var i=!1}}catch{qe&&(qe.style.display="block");var i=!1}break;case"ranking":break;case"repeater":var Oe=document.getElementById(c),Le=document.getElementById("gwp_required"+c);if(Le&&(Le.style.display="none"),Oe)try{var pa=JSON.parse(Oe.value||"[]");if(pa.length==0){Le&&(Le.style.display="block");var i=!1}}catch{Le&&(Le.style.display="block");var i=!1}break;case"calculated":break;default:}}if(i==!0){var xs=document.getElementById(r+"gwp_formnameids");if(xs==null)var x=[];else var x=xs.value,x=x.split(",");x==""&&(x=[]),gwp_formfields=[];for(var E=0;E<x.length;E++){var ls=document.getElementById(x[E]);if(ls){var Zs=ls.getAttribute("class"),$s=ls.getAttribute("gwp_ftype");switch(Zs){case"select_inputframe":case"select_inputs":case"gwp_slider_input":var O=document.getElementById(x[E]).value,M={gwp_fieldmeta:x[E],gwp_fieldvalue:O};gwp_formfields.push(M);break;case"select_tagframe":case"select_singleframe":case"select_multiframe":var O=select_getitems(x[E]),M={gwp_fieldmeta:x[E],gwp_fieldvalue:O};gwp_formfields.push(M);break;case"switch-input":case"gwp_toggle_checkbox":var O=document.getElementById(x[E]).checked,M={gwp_fieldmeta:x[E],gwp_fieldvalue:O};gwp_formfields.push(M);break;case"gwp_fillblanks_data":var O=document.getElementById(x[E]).value||"{}",M={gwp_fieldmeta:x[E],gwp_fieldvalue:O};gwp_formfields.push(M);break;case"gwp_star_rating_input":var O=document.getElementById(x[E]).value||"0",M={gwp_fieldmeta:x[E],gwp_fieldvalue:O};gwp_formfields.push(M);break;case"gwp_cc_data":var O=document.getElementById(x[E]).value||"",M={gwp_fieldmeta:x[E],gwp_fieldvalue:O};gwp_formfields.push(M);break;default:if($s){var O=document.getElementById(x[E]).value||"",M={gwp_fieldmeta:x[E],gwp_fieldvalue:O};gwp_formfields.push(M)}}}}if(document.getElementById("gwp_gsitekey")!=null&&gwp_gsitekey!=""&&gwp_gsitekey!=null&&gwp_gsuccess!=!0){var As=gwp_token,cs=new XMLHttpRequest;cs.onreadystatechange=function(){if(gwp_loadingpopup("start"),this.readyState==4&&this.status==200){var Qs=this.responseText;Qs.replace("new","");var P=JSON.parse(Qs),Ns=P.success,oa=P.errorcodes,Cs=P.message,va=P.secret,q=JSON.stringify(P.response),ds=P.gwp_authstatus;alert(q),alert(oa),alert(gwp_token),ds!="authorised"||Ns==!1?(Swal.fire({title:"Error",text:"Sorry we have an error authenticating you please try again or speak to an administrator",icon:"warning"}),gwp_token="",gwp_loadingpopup("stop")):ds=="authorised"&&Ns==!0&&(gwp_gsuccess=Ns,n(),gwp_loadingpopup("stop"))}},cs.open("POST",gwp_pluginurl+"data/gcaptcha.php"),cs.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),cs.send("gwp_wpid="+gwp_wpid+"&gwp_apikey="+gwp_apikey+"&response="+As)}else(document.getElementById("gwp_gsitekey")==null||gwp_gsitekey==""||gwp_gsitekey==null||gwp_gsuccess==!0)&&n(r)}else Swal.fire({title:"Incomplete",text:"There are some blank/incomplete fields",icon:"warning"})}function gwp_colourSelected(n,r){var i=document.getElementById("select_cp_chosencol_"+n);if(i){var t=i.style.backgroundColor;if(t.indexOf("rgb")===0){var o=t.replace(/rgba?\(/,"").replace(")","").split(",");t=rgbToHex(parseInt(o[0]),parseInt(o[1]),parseInt(o[2]))}var c=document.getElementById(n+"_value");c&&(c.value=t)}}function gwp_otpInput(n,r,i,t){var o=n.value.replace(/[^0-9]/g,"");n.value=o,o.length===1&&i<t-1&&document.getElementById(r+"_digit"+(i+1)).focus(),gwp_updateOtpValue(r,t)}function gwp_otpKeydown(n,r,i,t,o){n.key==="Backspace"&&r.value===""&&t>0&&document.getElementById(i+"_digit"+(t-1)).focus()}function gwp_otpPaste(n,r,i){n.preventDefault();for(var t=(n.clipboardData||window.clipboardData).getData("text"),o=t.replace(/[^0-9]/g,"").split(""),c=0;c<Math.min(o.length,i);c++)document.getElementById(r+"_digit"+c).value=o[c];gwp_updateOtpValue(r,i);var _=Math.min(o.length,i-1);document.getElementById(r+"_digit"+_).focus()}function gwp_updateOtpValue(n,r){for(var i="",t=0;t<r;t++)i+=document.getElementById(n+"_digit"+t).value;var o=document.getElementById(n);o&&(o.value=i)}function gwp_updateLikert(n,r){var i=document.getElementById(n);i&&(i.value=r)}function gwp_updateNps(n,r){var i=document.getElementById(n);i&&(i.value=r)}function gwp_checkPasswordStrength(n){var r=document.getElementById(n).value,i=0,t={length:r.length>=8,upper:/[A-Z]/.test(r),lower:/[a-z]/.test(r),number:/[0-9]/.test(r),special:/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(r)};for(var o in t){var c=document.getElementById(n+"_req_"+o);c&&(t[o]?(c.classList.add("met"),c.querySelector("i").className="las la-check",i++):(c.classList.remove("met"),c.querySelector("i").className="las la-times"))}var _=document.getElementById(n+"_bar"),f=document.getElementById(n+"_text");if(!(!_||!f)){var m="",w="";i===0?(m="",w=""):i<=2?(m="weak",w="Weak"):i<=3?(m="fair",w="Fair"):i<=4?(m="good",w="Good"):(m="strong",w="Strong"),_.className="gwp_strength_fill "+m,_.style.width=i*20+"%",f.textContent=w,f.className="gwp_strength_text "+m}}function gwp_togglePasswordVisibility(n){var r=document.getElementById(n);if(r){var i=r.parentNode.querySelector(".gwp_password_toggle i");r.type==="password"?(r.type="text",i.className="las la-eye-slash"):(r.type="password",i.className="las la-eye")}}function gwp_formatCurrency(n){var r=n.value.replace(/[^0-9.]/g,""),i=r.split(".");i.length>2&&(r=i[0]+"."+i.slice(1).join("")),n.value=r}function gwp_finalizeCurrency(n){var r=parseInt(n.getAttribute("data-decimals"))||2,i=p
1arseFloat(n.value)||0;n.value=i.toFixed(r)}function gwp_updateDateRange(n){var r=document.getElementById(n+"_start").value,i=document.getElementById(n+"_end").value,t={start:r,end:i},o=document.getElementById(n);o&&(o.value=JSON.stringify(t))}function gwp_updateTimeRange(n){var r=document.getElementById(n+"_start").value,i=document.getElementById(n+"_end").value,t={start:r,end:i},o=document.getElementById(n);if(o&&(o.value=JSON.stringify(t)),r&&i){var c=new Date("2000-01-01 "+r),_=new Date("2000-01-01 "+i),f=(_-c)/1e3/60;f<0&&(f+=1440);var m=Math.floor(f/60),w=f%60,S="";m>0&&(S+=m+"h "),w>0&&(S+=w+"m");var h=document.getElementById(n+"_duration");h&&(h.textContent=S)}}function gwp_updateSocialLinks(n){var r=document.getElementById(n),i=r.closest(".gwp_formfield"),t=i.querySelectorAll(".gwp_social_input"),o={},c={facebook:"https://facebook.com/",twitter:"https://twitter.com/",instagram:"https://instagram.com/",linkedin:"https://linkedin.com/in/",youtube:"https://youtube.com/",tiktok:"https://tiktok.com/@",website:""};t.forEach(function(_){var f=_.getAttribute("data-platform"),m=_.value.trim();m&&(m.indexOf("http")===0||m.indexOf("www.")===0?o[f]=m:f!=="website"?o[f]=c[f]+m:o[f]=m)}),r.value=JSON.stringify(o)}function gwp_fileDragOver(n){n.preventDefault(),n.currentTarget.classList.add("dragover")}function gwp_fileDragLeave(n){n.currentTarget.classList.remove("dragover")}function gwp_fileDrop(n,r){n.preventDefault(),n.currentTarget.classList.remove("dragover");var i=n.dataTransfer.files;gwp_processFiles(i,r)}function gwp_fileSelected(n,r){var i=n.files;gwp_processFiles(i,r)}function gwp_processFiles(n,r){for(var i=document.getElementById(r).value,t=i?JSON.parse(i):[],o=document.getElementById(r+"_dropzone").closest(".gwp_file_upload_container"),c=parseInt(o.getAttribute("data-maxsize"))||10,_=0;_<n.length;_++){var f=n[_];if(f.size>c*1024*1024){alert('File "'+f.name+'" exceeds the maximum size of '+c+"MB");continue}(function(m){var w=new FileReader;w.onload=function(S){t.push({name:m.name,type:m.type,size:m.size,data:S.target.result});var h=document.getElementById(r);h&&(h.value=JSON.stringify(t)),gwp_renderFilePreview(r,t)},w.readAsDataURL(m)})(f)}}function gwp_renderFilePreview(n,r){var i=document.getElementById(n+"_preview");if(i){i.innerHTML="";for(var t=0;t<r.length;t++){var o=r[t],c=document.createElement("div");c.className="gwp_file_item";var _="la-file";o.type&&o.type.indexOf("image")>-1?_="la-file-image":o.type&&o.type.indexOf("pdf")>-1?_="la-file-pdf":o.type&&(o.type.indexOf("word")>-1||o.type.indexOf("document")>-1)?_="la-file-word":o.type&&(o.type.indexOf("excel")>-1||o.type.indexOf("spreadsheet")>-1)&&(_="la-file-excel"),c.innerHTML='<i class="las '+_+'"></i><span class="gwp_file_name">'+o.name+'</span><span class="gwp_file_size">'+gwp_formatFileSize(o.size)+`</span><button type="button" class="gwp_file_remove" onclick="gwp_removeFile('`+n+"', "+t+')"><i class="las la-times"></i></button>',i.appendChild(c)}}}function gwp_removeFile(n,r){var i=document.getElementById(n).value,t=i?JSON.parse(i):[];t.splice(r,1);var o=document.getElementById(n);o&&(o.value=JSON.stringify(t)),gwp_renderFilePreview(n,t)}function gwp_formatFileSize(n){return n<1024?n+" B":n<1024*1024?(n/1024).toFixed(1)+" KB":(n/1024/1024).toFixed(1)+" MB"}var gwp_signaturePads={};function gwp_initSignaturePad(n){var r=document.getElementById(n+"_canvas");if(r){var i=r.getBoundingClientRect();r.width=i.width||400,r.height=i.height||150;var t=r.getContext("2d"),o={canvas:r,ctx:t,drawing:!1,lastX:0,lastY:0,strokes:[],currentStroke:null};gwp_signaturePads[n]=o,t.strokeStyle="#000",t.lineWidth=2,t.lineCap="round",t.lineJoin="round",r.addEventListener("mousedown",function(c){c.preventDefault(),gwp_sigStart(c,n)}),r.addEventListener("mousemove",function(c){c.preventDefault(),gwp_sigMove(c,n)}),r.addEventListener("mouseup",function(c){gwp_sigEnd(n)}),r.addEventListener("mouseleave",function(c){gwp_sigEnd(n)}),r.addEventListener("touchstart",function(c){c.preventDefault(),gwp_sigStart(c,n)},{passive:!1}),r.addEventListener("touchmove",function(c){c.preventDefault(),gwp_sigMove(c,n)},{passive:!1}),r.addEventListener("touchend",function(c){gwp_sigEnd(n)}),r.addEventListener("touchcancel",function(c){gwp_sigEnd(n)})}}function gwp_sigStart(n,r){var i=gwp_signaturePads[r];if(i){i.drawing=!0,i.canvas.classList.add("gwp_signature_has_content");var t=i.canvas.getBoundingClientRect(),o=i.canvas.width/t.width,c=i.canvas.height/t.height,_=n.clientX!==void 0?n.clientX:n.touches&&n.touches[0]?n.touches[0].clientX:0,f=n.clientY!==void 0?n.clientY:n.touches&&n.touches[0]?n.touches[0].clientY:0,m=(_-t.left)*o,w=(f-t.top)*c;i.lastX=m,i.lastY=w,i.currentStroke=[{x:m,y:w}]}}function gwp_sigMove(n,r){var i=gwp_signaturePads[r];if(!(!i||!i.drawing)){var t=i.canvas.getBoundingClientRect(),o=i.canvas.width/t.width,c=i.canvas.height/t.height,_=n.clientX!==void 0?n.clientX:n.touches&&n.touches[0]?n.touches[0].clientX:0,f=n.clientY!==void 0?n.clientY:n.touches&&n.touches[0]?n.touches[0].clientY:0,m=(_-t.left)*o,w=(f-t.top)*c;i.ctx.beginPath(),i.ctx.moveTo(i.lastX,i.lastY),i.ctx.lineTo(m,w),i.ctx.stroke(),i.currentStroke&&i.currentStroke.push({x:m,y:w}),i.lastX=m,i.lastY=w}}function gwp_sigEnd(n){var r=gwp_signaturePads[n];if(r){r.drawing&&r.currentStroke&&r.strokes.push(r.currentStroke),r.drawing=!1;var i=r.canvas.toDataURL("image/png"),t=document.getElementById(n);t&&(t.value=i)}}function gwp_clearSignature(n){var r=gwp_signaturePads[n];if(r){r.ctx.clearRect(0,0,r.canvas.width,r.canvas.height),r.strokes=[],r.canvas.classList.remove("gwp_signature_has_content");var i=document.getElementById(n);i&&(i.value="")}}function gwp_undoSignature(n){var r=gwp_signaturePads[n];if(!(!r||r.strokes.length===0)){r.strokes.pop(),r.ctx.clearRect(0,0,r.canvas.width,r.canvas.height);for(var i=0;i<r.strokes.length;i++){var t=r.strokes[i];if(!(t.length<2)){r.ctx.beginPath(),r.ctx.moveTo(t[0].x,t[0].y);for(var o=1;o<t.length;o++)r.ctx.lineTo(t[o].x,t[o].y);r.ctx.stroke()}}if(r.strokes.length>0){var c=document.getElementById(n);c&&(c.value=r.canvas.toDataURL("image/png"))}else{var c=document.getElementById(n);c&&(c.value="")}}}function gwp_loadSignature(n,r){var i=gwp_signaturePads[n];if(i){var t=new Image;t.onload=function(){i.ctx.drawImage(t,0,0)},t.src=r}}function gwp_richTextFormat(n,r){document.execCommand(n,!1,r||null)}function gwp_updateRichText(n){var r=document.getElementById(n+"_editor");if(r){var i=document.getElementById(n);
1i&&(i.value=r.innerHTML)}}function gwp_initBasicRichText(n,r){var i=document.getElementById(n+"_editor");if(i){var t='<div class="gwp_rich_text_toolbar">';t+=`<button type="button" onclick="gwp_richTextFormat('bold')" title="Bold"><i class="las la-bold"></i></button>`,t+=`<button type="button" onclick="gwp_richTextFormat('italic')" title="Italic"><i class="las la-italic"></i></button>`,t+=`<button type="button" onclick="gwp_richTextFormat('underline')" title="Underline"><i class="las la-underline"></i></button>`,t+='<span class="gwp_toolbar_divider"></span>',t+=`<button type="button" onclick="gwp_richTextFormat('insertUnorderedList')" title="Bullet list"><i class="las la-list-ul"></i></button>`,t+=`<button type="button" onclick="gwp_richTextFormat('insertOrderedList')" title="Numbered list"><i class="las la-list-ol"></i></button>`,t+="</div>",t+='<div id="'+n+`_basiceditor" class="gwp_rich_text_editor" contenteditable="true" oninput="gwp_updateBasicRichText('`+n+`')">`+(r||"")+"</div>",i.innerHTML=t;var o=document.getElementById(n);o&&(o.value=r||"")}}function gwp_updateBasicRichText(n){var r=document.getElementById(n+"_basiceditor");if(r){var i=document.getElementById(n);i&&(i.value=r.innerHTML)}}function gwp_selectImage(n,r,i){var t=n.closest(".gwp_image_select_container");i?n.classList.toggle("selected"):(t.querySelectorAll(".gwp_image_option").forEach(function(_){_.classList.remove("selected")}),n.classList.add("selected"));var o=[];t.querySelectorAll(".gwp_image_option.selected").forEach(function(_){o.push(_.getAttribute("data-value"))});var c=document.getElementById(r);c&&(c.value=JSON.stringify(o))}var gwp_rankDraggedItem=null;function gwp_rankDragStart(n){gwp_rankDraggedItem=n.target.closest(".gwp_ranking_item"),gwp_rankDraggedItem&&(gwp_rankDraggedItem.classList.add("dragging"),n.dataTransfer.effectAllowed="move",n.dataTransfer.setData("text/html",gwp_rankDraggedItem.innerHTML))}function gwp_rankDragOver(n){n.preventDefault(),n.dataTransfer.dropEffect="move";var r=n.target.closest(".gwp_ranking_item");if(r&&r!==gwp_rankDraggedItem&&gwp_rankDraggedItem){var i=r.parentNode,t=Array.from(i.querySelectorAll(".gwp_ranking_item")),o=t.indexOf(gwp_rankDraggedItem),c=t.indexOf(r);o!==-1&&c!==-1&&(o<c?i.insertBefore(gwp_rankDraggedItem,r.nextSibling):i.insertBefore(gwp_rankDraggedItem,r))}}function gwp_rankDrop(n,r){n.preventDefault(),gwp_rankDraggedItem&&gwp_rankDraggedItem.classList.remove("dragging"),gwp_updateRanking(r),gwp_rankDraggedItem=null}function gwp_rankDragEnd(n){gwp_rankDraggedItem&&gwp_rankDraggedItem.classList.remove("dragging"),gwp_rankDraggedItem=null}function gwp_updateRanking(n){var r=document.getElementById(n+"_container");if(r){var i=r.querySelectorAll(".gwp_ranking_item"),t=[];i.forEach(function(c,_){t.push(c.getAttribute("data-value")),c.querySelector(".gwp_ranking_number").textContent=_+1});var o=document.getElementById(n);o&&(o.value=JSON.stringify(t))}}var gwp_repeaterCounter=0;function gwp_addRepeaterItem(n,r){var i=document.getElementById(n+"_container");if(i){var t=document.getElementById(n+"_items"),o=parseInt(i.getAttribute("data-maxitems")),c=i.getAttribute("data-label")||"Item",_=JSON.parse(i.getAttribute("data-fields")||"[]");_.length===0&&(_=[{name:"text",label:c,type:"text"}]);var f=t.querySelectorAll(".gwp_repeater_item").length;if(f>=o){alert("Maximum of "+o+" items allowed");return}gwp_repeaterCounter++;var m=n+"_item_"+gwp_repeaterCounter,w='<div class="gwp_repeater_item" id="'+m+'">';w+='<div class="gwp_repeater_header">',w+='<span class="gwp_repeater_handle"><i class="las la-grip-vertical"></i></span>',w+='<span class="gwp_repeater_title">'+c+" "+(f+1)+"</span>",w+=`<button type="button" class="gwp_repeater_remove" onclick="gwp_removeRepeaterItem('`+n+"', '"+m+`')"><i class="las la-trash"></i></button>`,w+="</div>",w+='<div class="gwp_repeater_fields">';for(var S=0;S<_.length;S++){var h=_[S],F="";if(r!=null){if(typeof r=="string")F=r;else if(typeof r=="object"){var re=h.name||h.key;if(r[re]!==void 0)F=r[re];else if(h.key&&r[h.key]!==void 0)F=r[h.key];else if(h.name&&r[h.name]!==void 0)F=r[h.name];else if(r.value!==void 0)F=r.value;else if(r.text!==void 0)F=r.text;else{var Je=Object.keys(r);Je.length>0&&(F=r[Je[0]])}}}var s=m+"_"+(h.name||h.key),Pe=String(F).replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;");
1if(w+='<div class="gwp_repeater_field">',(_.length>1||h.label!==c)&&(w+="<label>"+h.label+"</label>"),h.type==="textarea")w+='<textarea id="'+s+`" class="select_inputframe" onchange="gwp_updateRepeater('`+n+`')">`+F+"</textarea>";else if(h.type==="select"&&h.options){w+='<select id="'+s+`" class="select_inputframe" onchange="gwp_updateRepeater('`+n+`')">`;for(var ye=0;ye<h.options.length;ye++){var Ge=F===h.options[ye]?" selected":"";w+='<option value="'+h.options[ye]+'"'+Ge+">"+h.options[ye]+"</option>"}w+="</select>"}else w+='<input type="'+(h.type||"text")+'" id="'+s+'" class="select_inputframe" value="'+Pe+'" placeholder="Enter '+c.toLowerCase()+`..." onchange="gwp_updateRepeater('`+n+`')">`;w+="</div>"}w+="</div>",w+="</div>",t.insertAdjacentHTML("beforeend",w),gwp_updateRepeater(n)}}function gwp_removeRepeaterItem(n,r){document.getElementById(r).remove(),gwp_updateRepeater(n),gwp_renumberRepeaterItems(n)}function gwp_renumberRepeaterItems(n){var r=document.getElementById(n+"_items").querySelectorAll(".gwp_repeater_item");r.forEach(function(i,t){i.querySelector(".gwp_repeater_title").textContent="Item "+(t+1)})}function gwp_updateRepeater(n){var r=document.getElementById(n+"_container");if(r){var i=r.getAttribute("data-label")||"Item",t=JSON.parse(r.getAttribute("data-fields")||"[]");t.length===0&&(t=[{name:"text",label:i,type:"text"}]);var o=document.getElementById(n+"_items").querySelectorAll(".gwp_repeater_item"),c=[];o.forEach(function(f){for(var m={},w=0;w<t.length;w++){var S=t[w],h=f.querySelector('[id$="_'+S.name+'"]');h&&(m[S.name]=h.value)}t.length===1&&t[0].name==="text"?c.push(m.text||""):c.push(m)});var _=document.getElementById(n);_&&(_.value=JSON.stringify(c))}}function gwp_calculateField(fieldid){var input=document.getElementById(fieldid);if(input){var formula=decodeURIComponent(input.getAttribute("data-formula")||""),decimals=parseInt(input.getAttribute("data-decimals"))||2;if(formula){var calcFormula=formula.replace(/\{([^}]+)\}/g,function(n,r){var i=document.querySelector('[name="'+r+'"]')||document.getElementById(r);if(i){var t=parseFloat(i.value)||0;return t}var o=document.querySelector('input[type="radio"][name="'+r+'"]:checked');if(o){var t=parseFloat(o.value)||0;return t}return 0}),trimmedFormula=calcFormula.trim();if(!(!trimmedFormula||/[+\-*\/\(,]$/.test(trimmedFormula)||/^[+*\/\)]/.test(trimmedFormula)||(trimmedFormula.match(/\(/g)||[]).length!==(trimmedFormula.match(/\)/g)||[]).length))try{var result=eval(calcFormula);if(typeof result=="number"&&!isNaN(result)){result=result.toFixed(decimals),input.value=result;var display=document.getElementById(fieldid+"_display");display&&(display.textContent=result)}}catch(n){}}}}function gwp_updateSlider(n,r){var i=document.getElementById(n+"_display");i&&(i.textContent=r);var t=document.querySelectorAll("input[data-formula]");t.forEach(function(o){var c=decodeURIComponent(o.getAttribute("data-formula")||"");c.indexOf("{"+n+"}")>-1&&gwp_calculateField(o.id)})}function gwp_updateStarRating(n,r){var i=document.getElementById(n+"_display");i&&(i.textContent=r);var t=document.querySelectorAll("input[data-formula]");t.forEach(function(o){var c=decodeURIComponent(o.getAttribute("data-formula")||"");c.indexOf("{"+n+"}")>-1&&gwp_calculateField(o.id)})}function gwp_updatefillblanks(n){var r=document.getElementById(n);if(r){for(var i={},t=0,o=document.getElementById(n+"_blank"+t);o;)i["blank"+t]=o.value,t++,o=document.getElementById(n+"_blank"+t);r.value=JSON.stringify(i)}}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.