1(self.rspackChunkcognito_spa=self.rspackChunkcognito_spa||[]).push([[4036],{19926(){Cognito.ready("legacy-entry-adapter",["Cognito.Forms"],function(t){Cognito.entryAdapter={getEntry:function(){return Cognito.serialize(Cognito.Forms.model.entry)},getEntryStatus:function(){return this.getEntry().Entry.Status},hasOrder:function(){return Cognito.Forms.model.entry.hasOwnProperty("_Order")&&null!=Cognito.Forms.model.entry.get_Order()},getOrder:function(){return Cognito.serialize(Cognito.Forms.model.entry.get_Order())},setEntry:function(t,r){return ExoWeb.Observer.setValue(Cognito.Forms.model,"entry",t),Sys.Application.activateElement(document.documentElement),this.createResolvedDeferral()},setEntryStatus:function(t){Cognito.Forms.model.entry.get_Entry().set_Status(t)},isEntry:function(t){return t instanceof Cognito.Forms.FormEntry},toggleEdit:function(r){r?t(".c-entries").addClass("c-entries-edit-view"):t(".c-entries").removeClass("c-entries-edit-view"),ExoWeb.Observer.setValue(Cognito.Forms.model,"editMode",r)},submitEntrySuccess:function(t,r,e,n){n.prop("disabled",!1),saveEntrySuccess(t,r,e),n.trigger("progress-finished","successful")},submitEntryFailure:function(r,e){ExoJQuery(".c-forms-form .c-forms-error .c-validation").html(Cognito.resources["entry-submission-error-heading"]+": "+textStatus),t(".c-forms-form .c-validation").addClass("c-show"),e.prop("disabled",!1),r&&controller.entryUpdateFailed(r),currentEntryKey&&controller.entryUpdateFailed(currentEntryKey),e.trigger("progress-finished","failed")},getEntryProperty:function(t){return t&&"string"==typeof t?this.evaluateEntryPropertyPath(t):null},setEntryProperty:function(t,r){return t&&"string"==typeof t?this.evaluateEntryPropertyPath(t,!0,r):null},entryPropertyExists:function(t){if(!t||"string"!=typeof t)return!1;try{this.evaluateEntryPropertyPath(t)}catch(t){return!1}return!0},evaluateEntryPropertyPath:function(t,r,e){for(var n=Cognito.Forms.model.entry,o=t.split("."),i=0;i<o.length;i++){var s=o[i],a=r&&i+1===o.length;if(void 0===n[s=(a?"set_":"get_")+(s=(s=s.split("_")).length>1?s[1]:s[0])[0].toUpperCase()+s.substring(1)])throw Error("Unable to find the property "+s+" in "+(n.meta?n.meta.type:n)+" given the property path '"+t+"'.");a?n[s](e):n=n[s]()}if(!r)return n},validateEntry:function(t){if(t)return Cognito.Forms.refreshQuantities().then(function(){return Cognito.Forms.updateValidation(),!Cognito.Forms.hasErrors()||(Cognito.Forms.scrollFirstErrorIntoView(),!1)});var r=Cognito.Forms.model.entry;return r&&r.get_Id()&&Cognito.validate(r),Cognito.Forms.refreshQuantities(!0),this.createResolvedDeferral()},saveEntry:function(t,r){Cognito.Forms.saveEntry(this.getEntry(),this.hasOrder()?this.getEntryProperty("Order.OrderAmount"):null,function(r){t(r,r&&r.submissionResult?r.submissionResult.Status:null)},r)},saveIncompleteEntry:function(t,r){Cognito.Forms.saveIncompleteEntry(this.getEntry(),this.hasOrder()?this.getEntryProperty("Order.OrderAmount"):null,t,r)},createResolvedDeferral:function(){var r=t.Deferred();return r.resolve(),r},ensureOrderInitialized:function(){var t,r;this.setEntryProperty("Order",(t=Cognito.Forms.model.currentForm,r=new Cognito.Payment.Order({IsOpen:!0}),t.get_TransactionFees().forEach(function(t){r.get_Fees().add(new Cognito.Payment.Fee({Description:t.get_Description()}))}),r)),Cognito.Forms.rebuildOrder(Cognito.Forms.model.entry,this.getEntryProperty("Order"))}}})}}]); 2//# sourceMappingURL=ViewsSharedScript4.a0d95e974b614e5e.js.map
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.