"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[610],{581:function(t,o,n){n.d(o,{o:function(){return e}});var r=n(1346),e=function(t,o,n){void 0===n&&(n=!0);var e="Function"===t.constructor.name?t.prototype:t,i=e.componentWillLoad;e.componentWillLoad=function(){var t,e=this,u=(0,r.a)(this),s={promise:new Promise((function(o){t=o})),resolve:t},a=new CustomEvent("openWormhole",{bubbles:!0,composed:!0,detail:{consumer:this,fields:o,updater:function(t,o){(t in u?u:e)[t]=o},onOpen:s}});u.dispatchEvent(a);var c=function(){if(i)return i.call(e)};return n?s.promise.then((function(){return c()})):c()}}},610:function(t,o,n){n.r(o),n.d(o,{sc_total:function(){return s}});var r=n(3029),e=n(2901),i=n(1346),u=n(581),s=function(){return(0,e.A)((function t(o){(0,r.A)(this,t),(0,i.r)(this,o),this.order_key={total:"total_amount",subtotal:"subtotal_amount",amount_due:"amount_due"},this.total="amount_due",this.order=void 0}),[{key:"render",value:function(){var t,o,n,r,e;if((null===(t=this.order)||void 0===t?void 0:t.currency)&&(null===(r=null===(n=null===(o=this.order)||void 0===o?void 0:o.line_items)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length))return(0,i.h)("sc-format-number",{type:"currency",currency:this.order.currency,value:null===(e=this.order)||void 0===e?void 0:e[this.order_key[this.total]]})}}])}();(0,u.o)(s,["order"],!1),s.style=":host{display:block}.total-amount{display:inline-block}"}}]);