PageSourceSearch

https://ministryofsound.com/wp-content/plugins/shopwp-pro/dist/CartNote-public.ccd8b95f6862ba239a79.js

js ministryofsound.com collected 2026-09-24 18:13:08 UTC 1,401 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["CartNote-public"],{"./npm-packages/@shopwp/components/src/cart/note/index.jsx"(e,t,a){a.r(t),a.d(t,{default:()=>r});var s=a("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),n=a("./npm-packages/@shopwp/components/src/shop/_state/hooks.js"),p=a("./npm-packages/@shopwp/components/src/cart/_state/hooks.js"),c=a("./npm-packages/@shopwp/components/src/cart/api.jsx"),o=a("./npm-packages/@shopwp/hooks/src/index.js");const r=function(){var e=wp.element,t=e.useState,a=e.useRef,r=e.useEffect,l=(0,n.T)(),u=(0,n.W)(),i=(0,p.J)(),h=(0,p.K)(),m=a(),w=t(l.cartData.note),d=(0,s.A)(w,2),g=d[0],k=d[1],f=(0,o.d7)(g,i.settings.notesUpdateFrequency),b=(0,o.gg)();return r((function(){b||l.cartData.note!==f&&(0,c.Yy)(f,l,h,m,u)}),[f]),r((function(){l.cartData.note&&(k(l.cartData.note),m.current.focus())}),[l.cartData.note]),React.createElement("section",{className:"swp-cart-notes wps-cart-notes"},React.createElement("label",{htmlFor:"wps-input-notes"},l.t.l.checkoutNotes," ",shopwp.general.noteRequired?React.createElement("span",null,"(Required)"):null),React.createElement("textarea",{placeholder:shopwp.general.cartNotesPlaceholder,id:"wps-input-notes",className:"wps-input swp-input-textarea wps-input-textarea",value:g,onChange:function(e){l.isCartUpdating||k(e.target.value)},ref:m,disabled:l.isCartUpdating}))}}}]);

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.