1var Option=function(t,e,i,s,n){this.label=t,this.optType=e,this.optName=i,this.validOption=!0,this.optPrice=s,this.optFee=n},OptionFactory=(Option.prototype={stringify:function(){var t="";return this.label&&0<this.label.length&&(t+=stringify("label",this.label)),this.optType&&0<this.optType.length&&(t+=stringify("optType",this.optType)),this.optName&&0<this.optName.length&&(t+=stringify("optName",this.optName)),0<this.optPrice&&(t+=stringify("optPrice",this.optPrice)),0<this.optFee&&(t+=stringify("optFee",this.optFee)),"{"+(t=clean(t))+"}"},setRequired:function(t){this.required=t},getNode:function(t){var e,i="option"==this.optType?"option":"input",s=document.createElement(i),n=(s.setAttribute("name",this.optName),"option"!=this.optType&&s.setAttribute("type",this.optType),this.label+(0<this.optPrice?"($"+formatDollar(this.optPrice)+")":""));return s.setAttribute("value",n),this.required&&s.setAttribute("aria-required","true"),"input"==i&&(s.setAttribute("aria-describedby","error"+this.optName),s.setAttribute("aria-checked","false"),s.setAttribute("aria-label",n)),"option"==this.optType?(e=0<this.optPrice?"$"+commify(formatDollar(this.optPrice)):"",window.editorpage&&0<this.optFee&&(e+=" + $"+commify(formatDollar(this.optFee))+" convenience fee"),0<parseFloat(this.optPrice)&&s.setAttribute("data-price",parseFloat(this.optPrice)),s.innerHTML=this.label+(0<parseFloat(this.optPrice)&&(Form.rpm||Form.fa&&!window.editorpage)?" ("+e+")":"")):((i=document.createElement("div")).className="itemOption",t&&(i.className+=" lastOption"),i.appendChild(s),(n=document.createElement("span")).setAttribute("aria-hidden","true"),e=0<this.optPrice?"$"+commify(formatDollar(this.optPrice)):"",window.editorpage&&0<this.optFee&&(e+=" + $"+commify(formatDollar(this.optFee))+" convenience fee"),0<parseFloat(this.optPrice)&&s.setAttribute("data-price",parseFloat(this.optPrice)),n.innerHTML=this.label+(0<parseFloat(this.optPrice)&&(Form.rpm||Form.fa&&!window.editorpage)?" ("+e+")":""),i.appendChild(n),s=i),s}},{get:function(t,e,i,s,n){return new Option(t,e,i,s,n)}}),Item=function(t){for(var e in this.validItem=!0,this.type="form-item",this.label="",this.mlLabel="",this.value="",this.name="",this.required=!1,this.validateFunc="",this.dependsOn="",this.itemOrder=0,this.options=new Array,this.multiSelect=!1,this.id="",this.ignoreRequired=!1,this.multiple=!1,this.alert=!1,this.size="medium",this.dpformat="",this.isSubmit=!1,this.donationField=!1,this.donationMax="",this.donationMin="",this.maxlength=void 0!==Item.maxlength?parseInt(Item.maxlength):65535,this.attributes=new Array,this.describedBy="",this.visibleOn=null,t)Object.prototype.hasOwnProperty.call(this,e)&&(this[e]=t[e]);this.name=t.groupId,this.id="in"+t.groupId,"undefined"!=typeof data&&data&&data.keyValues&&data.keyValues[this.name]&&(this.value=data.keyValues[this.name])},ItemFactory=(Item.prototype={addOption:function(t){t.validOption&&this.options.push(t)},getHTML:function(){return getHTML(this.getNode())},setDescribedBy:function(t){this.describedBy=t},isPaymentMandatory:function(){if(!this.required)return!1;if(this.donationField)return!0;if(this.options&&0<this.options.length)for(var t=!0,e=0;e<this.options.length;e++)t=t&&""!=this.options[e].optPrice&&0<parseFloat(this.options[e].optPrice);return t},stringify:function(){var t="";if(0<this.label.length&&(t+=stringify("label",this.label)),0<this.mlLabel.length&&(t+=stringify("mlLabel",this.mlLabel)),0<this.value.length&&(t+=stringify("value",this.value)),0<this.name.length&&(t+=stringify("name",this.name)),0<this.dpformat.length&&(t+=stringify("dpformat",this.dpformat)),this.required&&(t+=stringify("required",!0,!0)),this.multiple&&(t+=stringify("multiple",!0,!0)),this.alert&&(t+=stringify("alert",!0,!0)),0<this.size.length&&"medium"!=this.size&&(t+=stringify("size",this.size)),0<this.validateFunc.length&&(t+=stringify("validateFunc",this.validateFunc)),0<this.dependsOn.length&&(t+=stringify("dependsOn",this.dependsOn)),this.donationField&&(t+=stringify("donationField",!0,!0)),0<this.donationMax&&(t+=stringify("donationMax",this.donationMax)),0<this.donationMin&&(t+=stringify("donationMin",this.donationMin)),0<this.maxlength&&65535!=this.maxlength&&(t+=stringify("maxlength",this.maxlength)),this.visibleOn&&(t+=stringify("visibleOn",this.visibleOn)),t=(t+=stringify("itemOrder",this.itemOrder))+stringify("id","in"+this.id
1),this.options&&0<this.options.length){for(var e="",i=0;i<this.options.length;i++)e+=this.options[i].stringify()+",";0<e.length&&(t+='"options": ['+(e=clean(e))+"],")}return t=clean(t),t+="\n"},getNode:function(t){var e,i="";if(t?(i="h3"==this.type?document.createElement(this.type):document.createElement("span"),i="page_break"==this.type?document.createElement("h2"):document.createElement("span")):(0<=";text;hidden;password;file;button;".indexOf(";"+this.type+";")?((i=document.createElement("input")).setAttribute("type",this.type),"text"==this.type?i.setAttribute("maxLength",this.maxlength):"button"==this.type&&i.setAttribute("value",this.label),i.className=this.type,i.setAttribute("name",this.name)):0<=";checkbox;radio;".indexOf(";"+this.type+";")?((i=document.createElement("div")).setAttribute("tabindex","0"),i.setAttribute("role","group")):((i=document.createElement(this.type)).setAttribute("name",this.name),"textarea"==this.type&&i.setAttribute("maxLength",this.maxlength)),"text"!=this.type&&"textarea"!=this.type||""==this.size||(i.className+=" "+this.size),";checkbox;radio;h3;".indexOf(";"+this.type+";")<0&&"div"!==this.type&&(""!=this.helpText&&i.setAttribute("aria-describedby","error"+this.name),this.required&&i.setAttribute("aria-required","true"),i.setAttribute("aria-labelledby","label"+this.name))),!t){if("undefined"!=this.options&&null!=this.options&&0<this.options.length){"select"!=this.type||this.multiple||(e=OptionFactory.get("","option",""),i.appendChild(e.getNode()));for(var s=0;s<this.options.length&&this.options[s].validOption;s++)this.required&&this.options[s].setRequired(!0),i.appendChild(this.options[s].getNode(s==this.options.length-1))}if("undefined"!=this.attributes&&null!=this.attributes&&0<this.attributes.length)for(s=0;s<this.attributes.length;s++){var n=this.attributes[s];n&&i.setAttribute(n.key,n.val)}i.setAttribute("id","in"+this.name)}return t&&i.setAttribute("id","value"+this.name),"h3"==this.type&&null!=this.label&&(i.innerHTML=this.label),"page_break"==this.type&&null!=this.label&&(i.innerHTML=this.label),!Form.printCMSIncludeNotes&&Form.pf||"div"!=this.type||null==this.mlLabel||(i.innerHTML=this.mlLabel,i.className+=" note "+(this.alert?" alert ":"")),t||(""!=this.value&&(i.value=this.value),"select"==this.type&&this.multiple&&i.setAttribute("multiple",!0),"file"==this.type&&window.editorpage&&(i.disabled=!0),"IsDate"==this.validateFunc&&(i.id="date"+this.name,0<this.dpformat.length)&&(i.className+=" "+this.dpformat)),"file"==this.type&&((e=document.createElement("div")).id="filewrap-"+this.name,e.className="filewrap "+(this.multiple?" multiple ":""),Form.fa?e.appendChild(i):((t=document.createElement("img")).className="fileload",t.src="/apps/pics/loading_horizontal.gif",e.appendChild(t)),i=e),i},setValue:function(t,e,i){""==t||"type"==t?Form.log("Cannot set "+t+" for the itemGroup "+this.groupId+", item "+this):"required"==t?null!=this.ignoreRequired&&this.ignoreRequired||(this[t]=e):Object.prototype.hasOwnProperty.call(this,t)?this[t]=e:Form.log("Could not find and item with this key "+t+" in itemGroup "+this.groupId+", item "+this)},getRetailMap:function(t){if(this.donationField)return'"'+escqt(t)+'","","0","1","'+(""!=this.donationMax?escqt(this.donationMax):"0")+'","'+(""!=this.donationMin?escqt(this.donationMin):"0")+'","0",';if(0<this.options.length){for(var e="",i=0;i<this.options.length;i++)""==this.options[i].optPrice||isNaN(this.options[i].optPrice)||(e+='"'+escqt(t)+'","'+escqt(this.options[i].label)+'","'+escqt(this.options[i].optPrice)+'","0","0","0","'+escqt(this.options[i].optFee||0)+'",');return e}return""},getValue:function(t,e){return Object.prototype.hasOwnProperty.call(this,t)?this[t]:null}},{get:function(t){var e=new Item(t);if(t.options&&0<t.options.length)for(var i=0;i<t.options.length;i++);return e}}),enWalletPaymentsOffered=function(){return"undefined"!=typeof Form&&!!Form.walletPayments&&!Form.fa},enHasPaymentAttribute=function(t){for(var e=t&&t.attributes instanceof Array?t.attributes:[],i=0;i<e.length;i++)if(e[i]&&"data-en-payment"==e[i].key)return!0;return!1},enIsWalletSuppliedField=function(t){if(t){if(0<=";ccnumber;ccexp;cccvv;".indexOf(";"+t.itemGroupType+";"))return!0;
1if(enHasPaymentAttribute(t))return!0;for(var e=t.items||[],i=0;i<e.length;i++)if(enHasPaymentAttribute(e[i]))return!0}return!1},ItemGroup=function(t){for(var e in this.validItemGroup=!0,this.items=new Array,this.question="",this.itemGroupType="",this.itemGroupOrder=0,this.groupId="",this.readOnly=!1,this.align="",this.helpText="",this.gRequired=!1,this.internalUse=!1,this.numFiles=0,this.numUploadedFiles=0,this.attributes=[],t)Object.prototype.hasOwnProperty.call(this,e)&&(this[e]=t[e])},ItemGroupFactory=(ItemGroup.prototype={addItem:function(t){(t.validItem||t.validItemGroup)&&this.items.push(t)},validate:function(){if(0==this.items.length)return!0;for(var t=!0,e=0;e<this.items.length;e++)this.items[e].validItem&&this.items[e].validate&&"function"==typeof this.items[e].validateFunc?t=t&&this.items[e].validateFunc():this.items[e].validItemGroup&&(t=t&&this.items[e].validate());return t},validateRequire:function(){if(0==this.items.length)return!0;for(var t=!0,e=0;e<this.items.length;e++)this.items[e].required&&typeof this.items[e].value&&(t=t&&this.items[e].validateFunc());return t},getIdQuestionMap:function(t){var e="";if(""==this.question&&";multiLine;singleLine;checkBox;radio;dropdown;file;date;dollar;email;months;percent;us-states;".indexOf(";"+this.itemGroupType+";")<0){if(this.items&&1<this.items.length){for(var i=0;i<this.items.length;i++)this.items[i].validItemGroup&&(e+=this.items[i].getIdQuestionMap("payment"==this.items[i].itemGroupType||t));return e}return"section"!=this.itemGroupType||this.internalUse?"":'"'+escqt(this.groupId)+'","'+escqt(this.getValue("label"))+'","'+escqt(this.itemGroupType)+'","0","1",'}return'"'+escqt(this.groupId)+'","'+escqt(this.question)+'","'+escqt(this.itemGroupType)+'","'+escqt(t?1:0)+'","0",'},getRetailMap:function(){var t="";if(this.items&&0<this.items.length){for(var e=0;e<this.items.length;e++)t+=this.items[e].getRetailMap(this.items[e].validItem?this.groupId:"");return t}return""},isPaymentMandatory:function(){var t=!1;if(this.items&&0<this.items.length)for(var e=0;e<this.items.length;e++)t=t||this.items[e].isPaymentMandatory();return t},stringify:function(){var t,e="",e=(e=(e+=stringify("itemGroupType",this.itemGroupType))+stringify("itemGroupOrder",this.itemGroupOrder))+stringify("groupId",this.groupId);if(0<this.helpText.length&&(e+=stringify("helpText",this.helpText)),this.gRequired&&(e+=stringify("gRequired",!0,!0)),this.internalUse&&(e+=stringify("internalUse",!0,!0)),""!=this.align&&(e+=stringify("align",this.align)),e+=stringify("question",this.question),this.readOnly)return this.getValue("required")&&(e+=stringify("required",!0,!0)),(t=this.getValue("visibleOn"))&&(e+=stringify("visibleOn",t)),clean(e);if(this.items&&0<this.items.length)if(1==this.items.length)e+=this.items[0].stringify();else{for(var i="",s=0;s<this.items.length;s++)i+="{"+clean(this.items[s].stringify())+"},";0<i.length&&(e+='"items" : ['+(i=clean(i))+"],")}return e=clean(e)},buildVisibleOnInfoEl:function(){if(!window.editorpage)return null;var t=this.getValue("visibleOn");if(!t)return null;if("undefined"==typeof Form||!Form.items||Form.items.indexOf(this)<0)return null;var t=t.split("|"),e=ItemGroupHash[t[0]],i=t.slice(1).join("|"),s=!0;if(e&&e.items&&1==e.items.length&&e.items[0].options)for(var n=e.items[0].options,r=0;r<n.length;r++)if(n[r].label==i){s=!1;break}var e="undefined"!=typeof ConditionalVisibility&&ConditionalVisibility.triggerLabelFor?ConditionalVisibility.triggerLabelFor(t[0],this.groupId):e&&e.question?e.question:"(deleted field)",a=document.createElement("div");return a.className="visible-on-info",a.setAttribute("data-trigger",t[0]),a.setAttribute("title","Click to highlight the controlling field"),a.style.cursor="pointer",s?(a.className+=" visible-on-broken",a.appendChild(document.createTextNode("â Visible if "+e+" = "+i+" â fix before saving"))):a.appendChild(document.createTextNode("Visible if "+e+" = "+i)),"undefined"!=typeof ConditionalVisibility&&ConditionalVisibility.wireInfoClick&&ConditionalVisibility.wireInfoClick(),a},getPaymentChoiceHTML:function(){var t=this.groupId+"PaymentChoice",e="undefined"!=typeof Form&&!!Form.paymentChoice&&"CARD"!=Form.paymentChoice,i=e?Form.paymentChoice:"APPLE_PAY",s=[["CARD","Credit or debit card"],[i,e?"GOOGLE_PAY"==i?"Google Pay":"Ap
1ple Pay":"Apple Pay or Google Pay"]],n=e?i:"CARD",e="",i=document.createElement("div"),r=(i.className="form-item-left en-payment-choice",document.createElement("legend")),r=(r.className="form-item-group-legend",r.setAttribute("id","label"+t),r.innerHTML="Payment method:",i.appendChild(r),e+=getHTML(i),document.createElement("div")),i=(r.className="form-item-right en-payment-choice",document.createElement("div")),a=(i.className="radio en-payment-choice-value",document.createElement("div")),o=(a.className="itemOption",a.setAttribute("style","display:inline-block;margin:0 12px 0 0;vertical-align:baseline;"),document.createElement("span"));o.setAttribute("id","value"+t);for(var l=0;l<s.length;l++)s[l][0]==n&&(o.innerHTML=s[l][1]);if(a.appendChild(o),i.appendChild(a),r.appendChild(i),!Form.pf){var h=document.createElement("div");h.setAttribute("id","in"+t),h.setAttribute("role","group"),h.setAttribute("aria-labelledby","label"+t),h.className="radio en-payment-choice-options",h.setAttribute("style","display:none;");for(var p=0;p<s.length;p++){var m="in"+t+p,d=document.createElement("div"),u=(d.className="itemOption"+(p==s.length-1?" lastOption":""),d.setAttribute("style","display:inline-block;margin:0 12px 0 0;vertical-align:baseline;"+("CARD"!=s[p][0]?"display:none;":"")),"CARD"!=s[p][0]&&(d.className+=" en-payment-choice-wallet"),document.createElement("input")),u=(u.setAttribute("type","radio"),u.setAttribute("name","enPaymentChoice"),u.setAttribute("id",m),u.setAttribute("value",s[p][0]),u.setAttribute("aria-label",s[p][1]),u.setAttribute("aria-checked",n==s[p][0]?"true":"false"),u.setAttribute("aria-describedby","error"+t),n==s[p][0]&&u.setAttribute("checked","checked"),u.setAttribute("onclick","enSetPaymentChoice(this.value)"),d.appendChild(u),document.createElement("label")),m=(u.setAttribute("for",m),u.setAttribute("style","display:inline;font:inherit;color:inherit;margin:0;cursor:pointer;"),document.createElement("span"));m.setAttribute("aria-hidden","true"),m.innerHTML=s[p][1],u.appendChild(m),d.appendChild(u),h.appendChild(d)}r.appendChild(h)}Form.subMode&&((a=document.createElement("div")).setAttribute("id","error"+t),a.setAttribute("role","alert"),a.className="error",r.innerHTML+=getHTML(a)),e+=getHTML(r);i=document.createElement("div");return i.className="clear en-payment-choice",e+=getHTML(i)},getHTML:function(){if(0==this.items.length)return"";if("payment"==this.itemGroupType&&Form.pf&&!Form.fa&&enIsWalletPaymentChosen()&&!Form.paymentComplete)return"";var e="",t=!1,i="";if(""!=this.helpText&&((s=document.createElement("div")).setAttribute("id","help"+this.groupId),s.className="helptext",s.innerHTML=this.helpText,i=getHTML(s)),!(1<this.items.length||0<=";section;note;".indexOf(";"+this.itemGroupType+";"))||""!=this.question){let t;(n=document.createElement("div")).className="form-item-left","checkBox"===this.itemGroupType||"radio"===this.itemGroupType?(t=document.createElement("legend")).className="form-item-group-legend":((t=document.createElement("label")).setAttribute("id","label"+this.groupId),"date"===this.itemGroupType?t.setAttribute("for","date"+this.groupId):t.setAttribute("for","in"+this.groupId)),this.items&&1==this.items.length&&this.items[0].required&&0<this.question.length&&(t.innerHTML+=" <span aria-hidden='true' class='req'>*</span> "),t.innerHTML+=this.question,0<this.question.length&&":"!=this.question.charAt(this.question.length-1)&&"?"!=this.question.charAt(this.question.length-1)&&(t.innerHTML+=":"),n.appendChild(t);var s=this.buildVisibleOnInfoEl();s&&n.appendChild(s),this.internalUse&&((a=document.createElement("div")).className="internalwrap",(r=document.createElement("span")).innerHTML="Internal Field",r.className="internal",a.appendChild(r),a.setAttribute("title","This field is only visible to Form Managers."),n.innerHTML+=getHTML(a)),""!=this.helpText&&"text"!=this.getValue("type")&&(n.innerHTML+=i),e+=getHTML(n)}var n=document.createElement("div");(1<this.items.length||0<=";section;note;".indexOf(";"+this.itemGroupType+";"))&&""==this.question?n.className="no-question":n.className="form-item-right";for(var r,a,o=0;o<this.items.length;o++)this.items[o].validItem?("dollar"==this.itemGroupType&&((r=document.createElement("span")).className="dollarSign",r.innerHTML="$",n.appendChild(r)),""!=this.helpText&&this.items[o].setDescribedBy("help"+this.name),n.appendChild(this.items[o].getNode(Form.pf)),"percent"==this.itemGroupType?((r=document.createElement("span")).className="percentSign",r.innerHTML="%",n.appendChild(r)):"date"!=this.itemGroupType&&"IsDate"!=this.getValue("validateFunc")||Form.pf||!Form.fa||!window.editorpage||((r=document.createElement("span")).className="dateicon",n.appendChild(r))):!this.items[o].validItemGroup||"payment"==this.itemGroupType&&Form.pf&&("Exp. Date"==this.items[o].question||"CVV"==this.items[o].question)||"payment"==this.itemGroupType&&(enWalletPaymentsOffered()&&!t&&"section"!=this.items[o].itemGroupType&&(t=!0,n.innerHTML+=this.getPaymentChoiceHTML()),Form.pf)&&enIsWalletPaymentChosen()&&!Form.paymentComplete&&enIsWalletSuppliedField(this.items[o])||(n.innerHTML+=this.items[o].getHTML());if("no-question"==n.className&&(s=this.buildVisibleOnInfoEl())&&n.insertBefore(s,n.firstChild),"file"==this.itemGroupType&&this.items[0]&&this.items[0].multiple&&!Form.pf&&((a=document.createElement("div")).className="addfileWrap",(r=document.createElement("span")).innerHTML="Upload another file",r.className="anchor addfile",r.id="addfile"+this.groupId,a.appendChild(r),n.innerHTML+=getHTML(a)),this.internalUse&&""==this.question&&((a=document.createElement("div")).className="internalwrap",(r=document.createElement("span")).innerHTML="Internal Field",r.className="internal",a.appendChild(r),a.setAttribute("title","This field is only visible to Form Managers."),n.innerHTML+=getHTML(a)),""!=this.helpText&&"text"==this.getValue("type")&&(n.innerHTML+=i),Form.subMode){var l=document.createElement("div");if(l.setAttribute("id","error"+this.groupId),this.attributes instanceof Array&&0<this.attributes.length)for(o=0;o<this.attributes.length;o++){var h=this.attributes[o];h&&l.setAttribute(h.key+"-error",h.val)}l.setAttribute("role","alert"),l.className="error",n.innerHTML+=getHTML(l)}return e+=getHTML(n),(a=document.createElement("div")).className="
1clear",e+=getHTML(a)},setValue:function(t,e){if(""==t||"itemGroupType"==t||"type"==t||"groupId"==t)Form.log("Cannot set "+t+" for the itemGroup "+this.groupId);else if("visibleOn"==t)for(var i=0;i<this.items.length;i++)this.items[i].setValue(t,e,this.groupId);else if(Object.prototype.hasOwnProperty.call(this,t)){if(this[t]=e,"gRequired"==t&&this.items&&0<this.items.length)for(i=0;i<this.items.length;i++)this.items[i].setValue("required",e,this.groupId)}else 1==this.items.length?this.items[0].setValue(t,e,this.groupId):Form.log("Could not find and item with this key "+t+" in itemGroup "+this.groupId)},getValue:function(t){if(Object.prototype.hasOwnProperty.call(this,t))return this[t];if(1==this.items.length)return this.items[0].getValue(t,this.groupId);for(var e=0;e<this.items.length;e++){var i=this.items[e].getValue(t,this.groupId);if(i)return i}return null}},{get:function(t){var e=new ItemGroup(t);return e.addItem(ItemFactory.get(t)),e}});
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.