1(self.rspackChunkcognito_spa=self.rspackChunkcognito_spa||[]).push([[3579],{60355(t,e){(e.exec=function(t){Cognito.ready("entrylist",["Cognito.Forms","EntryList","entryview"],function(e){ExoWeb.evalPath(window.parent,"Cognito.Forms.controller")?t?Cognito.Messaging.proxy(window.parent,"Cognito.Forms.controller"):Cognito.Forms.controller:Cognito.Messaging.addHandler("controllerReady",function(e){t?Cognito.Messaging.proxy(window.parent,"Cognito.Forms.controller"):Cognito.Forms.controller}),$extend(Cognito.Forms.model.entryTypeName,function(t){Cognito.Forms.entryType=t,t.$Order&&t.$Order.calculated({calculate:function(){this.hasOwnProperty("_Order")||this.set_Order(null)}})}),$extend("Cognito.Payment.Order",function(t){t.$SubTotal.calculated({calculate:function(){return this.get_LineItems().map(function(t){return t.get_Amount()},this).reduce(function(t,e){return t+e},0)},onChangeOf:["LineItems.Amount"]}),t.$AdditionalFees.calculated({calculate:function(){return this.get_Fees().filter(function(t){return!t.get_IsProcessingFee()},this).map(function(t){return t.get_Amount()},this).reduce(function(t,e){return t+e},0)},onChangeOf:["Fees{IsProcessingFee,Amount}"]}),t.$ProcessingFees.calculated({calculate:function(){return this.get_Fees().filter(function(t){return t.get_IsProcessingFee()},this).map(function(t){return t.get_Amount()},this).reduce(function(t,e){return t+e},0)},onChangeOf:["Fees{IsProcessingFee,Amount}"]}),t.$OrderAmount.calculated({calculate:function(){return this.get_LineItems().map(function(t){return t.get_Amount()},this).reduce(function(t,e){return t+e},0)+this.get_Fees().map(function(t){return t.get_Amount()},this).reduce(function(t,e){return t+e},0)},onChangeOf:["{LineItems.Amount,Fees.Amount}"]}),t.$AmountDue.calculated({calculate:function(){return this.get_OrderAmount()-this.get_AmountPaid()},onChangeOf:["{OrderAmount,AmountPaid}"]}),t.$OrderSummary.calculated({calculate:function(){var t=this.get_PaymentStatus().get_Name();return"Paid"===t?this.get_AmountPaid().localeFormat("c")+" "+t:"Refunded"===t?this.get_RefundAmount().localeFormat("c")+" "+t:"Declined"==t?(this.get_AmountDeclined()||this.get_OrderAmount()).localeFormat("c")+" "+t:this.get_OrderAmount().localeFormat("c")+" "+t},onChangeOf:["PaymentStatus","AmountPaid","RefundAmount","OrderAmount","AmountDeclined"]})}),Cognito.Forms.setupEntryStatusColorStylesAndData=function(){let t=Cognito.Forms.EntryStatuses[Cognito.Forms.model.entryTypeName];if(t.length&&Cognito.config.workflowEnabled){var e="";Cognito.Forms.model.statusMap={},t.forEach(function(t){e+="\n.c-status-id--"+t.Id+" .c-status-cell:before { background: "+t.Color+"; }",Cognito.Forms.model.statusMap[t.Name]=t.Id}),Cognito.ready("status-styles",["ExoWeb.dom"],function(){var t="c-entry-status-color-styles",n=document.getElementById(t);n&&n.remove(),(n=document.createElement("style")).id=t,n.appendChild(document.createTextNode(e)),document.head.appendChild(n),document.body.classList.add("workflow")})}}})})(void 0===e)}}]); 2//# sourceMappingURL=ViewsSharedScript5.7a5dda409ffe4233.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.