text: !function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=69)}({69:function(t,e){window.PennController._AddElementType("Html",function(t){function e(t,e){var r=$("label.error[for=__ALL_FIELDS__]");if(r.length>0)r.addClass("Form-error-text").text(e);else{var n=$("label.error[for="+escape(t)+"]");n.length>0?n.addClass("Form-error-text").text(e):alert(e)}}function r(){for(var t=this.jQueryElement[0],e=$(t).find("input[type=text]"),r=$(t).find("textarea"),n=0;n<r.length;++n)e.push(r[n]);for(n=0;n<e.length;++n){var a=$(e[n]);if(a.hasClass("obligatory")&&(!a.attr("value")||a.attr("value").match(/^\s*$/)))return!1}var o=$(t).find("input[type=checkbox]");for(n=0;n<o.length;++n){var i=$(o[n]);if(!i.attr("checked")&&i.hasClass("obligatory"))return!1}var l=$(t).find("input[type=radio]"),s={};for(n=0;n<l.length;++n){var h=$(l[n]);h.attr("name")&&(s[h.attr("name")]||(s[h.attr("name")]=[]),s[h.attr("name")].push(h))}for(var u in s){var c=!1,f=!1;for(n=0;n<s[u].length;++n)s[u][n].hasClass("obligatory")&&(c=!0),s[u][n].attr("checked")&&(f=!0);if(c&&!f)return!1}return!0}this.immediate=function(t,e){this.html=e},this.uponCreation=function(t){CHUNKS_DICT.hasOwnProperty(this.html)?this.jQueryElement=$("<div>").html(htmlCodeToDOM({include:this.html})):this.jQueryElement=$("<div>").html(this.html),this.log=!1,t()},this.end=function(){if(this.log){for(var e=this.jQueryElement[0],r=$(e).find("input[type=text]"),n=$(e).find("textarea"),a=0;a<n.length;++a)r.push(n[a]);for(a=0;a<r.length;++a){var o=$(r[a]);t.controllers.running.save(this.type,this.id,csv_url_encode(o.attr("value")),csv_url_encode(o.attr("name")),Date.now(),"text input")}var i=$(e).find("input[type=checkbox]");for(a=0;a<i.length;++a){var l=$(i[a]);t.controllers.running.save(this.type,this.id,l.attr("name"),l.attr("checked")?"checked":"unchecked",Date.now(),"checkbox")}var s=$(e).find("input[type=radio]"),h={};for(a=0;a<s.length;++a){var u=$(s[a]);u.attr("name")&&(h[u.attr("name")]||(h[u.attr("name")]=[]),h[u.attr("name")].push(u))}for(var c in h){var f,d=!1;for(a=0;a<h[c].length;++a)h[c][a].attr("checked")&&(d=!0,f=a);d&&t.controllers.running.save(this.type,this.id,h[c][0].attr("name"),h[c][f].attr("value"),Date.now(),"radio button")}}},this.value=function(){return r.apply(this)},this.actions={warn:function(t){for(var r=this.jQueryElement[0],n=$(r).find("input[type=text]"),a=$(r).find("textarea"),o=0;o<a.length;++o)n.push(a[o]);for(o=0;o<n.length;++o){var i=$(n[o]);!i.hasClass("obligatory")||i.attr("value")&&!i.attr("value").match(/^\s*$/)||e(i.attr("name"),"The ‘"+i.attr("name")+"’ field is obligatory.")}var l=$(r).find("input[type=checkbox]");for(o=0;o<l.length;++o){var s=$(l[o]);!s.attr("checked")&&s.hasClass("obligatory")&&e(s.attr("name"),"You must check the "+s.attr("name")+" checkbox to continue.")}var h=$(r).find("input[type=radio]"),u={};for(o=0;o<h.length;++o){var c=$(h[o]);c.attr("name")&&(u[c.attr("name")]||(u[c.attr("name")]=[]),u[c.attr("name")].push(c))}for(var f in u){var d=!1,p=!1;for(o=0;o<u[f].length;++o)u[f][o].hasClass("obligatory")&&(d=!0),u[f][o].attr("checked")&&(p=!0);d&&!p&&e(u[f][0].attr("name"),"You must select an option for ‘"+u[f][0].attr("name")+"’.")}t()}},this.settings={log:function(t){this.log=!0,t()}},this.test={complete:function(){return r.apply(this)}}})}});