PageSourceSearch

https://ministryofsound.com/wp-content/plugins/shopwp-pro/dist/CartFooterTotal-public.80a23d7949bcede4fa00.js

js ministryofsound.com collected 2026-09-24 18:13:06 UTC 3,201 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["CartFooterTotal-public"],{"./npm-packages/@shopwp/components/src/cart/footer/total/index.jsx"(e,t,s){s.r(t),s.d(t,{default:()=>w});var a=s("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),c=s("./npm-packages/@shopwp/components/src/cart/api.jsx"),n=s("./npm-packages/@shopwp/components/src/shop/_state/hooks.js"),o=s("./npm-packages/@shopwp/components/src/price/index.jsx");const p=function(){var e,t,s=(0,n.T)();return React.createElement("div",{className:"wps-subtotal-row swp-subtotal-row swp-l-col swp-l-col-end swp-l-row-between swp-0 swp-mt10"},s.cartData.discountAllocations.length?React.createElement("div",{className:"wps-total-amount swp-total-amount swp-l-col swp-l-rel100"},React.createElement("div",{className:"swp-discount-item swp-l-row swp-m-l-row swp-l-col-end swp-l-row-between swp-0 swp-mt5"},React.createElement("p",{className:"swp-0"},s.t.l.subtotal),React.createElement("p",{className:"swp-0"},React.createElement(o.A,{price:s.cartData.cost.subtotalAmount.amount}))),React.createElement("div",{className:"swp-discount-item swp-discount-info swp-l-row swp-m-l-row swp-l-col-end swp-l-row-between swp-l-baseline swp-0 swp-mt5"},React.createElement("div",{className:"swp-discount-code-wrap"},React.createElement("p",{className:"swp-0"},"Discount:")),React.createElement("p",{className:"swp-discount-total swp-0"},"(–",React.createElement(o.A,{price:(t=s.cartData.discountAllocations,t.reduce((function(e,t){return t&&t.discountedAmount?e+parseFloat(t.discountedAmount.amount):e}),0))}),")"))):null,React.createElement("div",{className:"wps-total-amount swp-total-amount swp-l-row swp-m-l-row swp-l-row-between swp-mb5 swp-mt10"},React.createElement("p",{className:"wps-total-prefix swp-total-prefix swp-0"},s.t.l.subtotal),s.cartData&&null!==(e=s.cartData)&&void 0!==e&&e.cost?React.createElement("p",null,React.createElement(o.A,{price:s.cartData.cost.totalAmount.amount})):null))};var l=s("./npm-packages/@shopwp/components/src/cart/_state/hooks.js"),r=wp.element.lazy((function(){return s.e("CartFooterDiscountWrapper-public").then(s.bind(s,"./npm-packages/@shopwp/components/src/cart/footer/discount-wrapper/index.jsx"))}));const w=function(){var e=wp.element.useState(""),t=(0,a.A)(e,2),s=t[0],o=t[1],w=(0,l.J)(),m=(0,n.T)(),u=(0,n.W)(),i=(0,l.K)();function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w.isAddingDiscountCode||(0,c.Vr)(i,m,e,u,(function(){o("")}),t)}return React.createElement("div",{className:"swp-cart-footer-totals"},shopwp.general.enableDiscountCodes?React.createElement(r,{changeDiscount:d,onAddDiscount:function(e){d(discountInputRef.current.value.toUpperCase())},onKeyDown:function(e){"Enter"===e.key&&d(discountInputRef.current.value.toUpperCase())},discountCode:s,setDiscountCode:o}):null,React.createElement(p,null))}},"./npm-packages/@shopwp/components/src/price/index.jsx"(e,t,s){s.d(t,{A:()=>n});var a=s("./npm-packages/@shopwp/common/src/utils/index.jsx"),c=s("./npm-packages/@shopwp/components/src/shop/_state/hooks.js");const n=function(e){var t=e.price,s=(0,c.T)();return React.createElement(React.Fragment,null,(0,a.Sx)(t,s))}}}]);

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.