1"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AddButtonText-public"],{"./npm-packages/@shopwp/components/src/products/product/buy-button/add-button/text.jsx"(t,e,o){o.r(e),o.d(e,{default:()=>p});var s=o("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),n=o("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),a=o("./npm-packages/@shopwp/common/src/settings/index.js"),r=o("./npm-packages/@shopwp/components/src/shop/_state/hooks.js");const p=function(t){var e=t.addedToCart,o=t.productBuyButtonState,p=t.settings,u=t.isDirectCheckout,c=t.productState,d=wp.element,i=d.useRef,l=d.useEffect,m=d.useState,f=m((function(){return!1})),h=(0,s.A)(f,2),k=h[0],w=h[1],b=i(),x=(0,r.T)(),T=m(""),y=(0,s.A)(T,2),g=y[0],j=y[1];function A(){if(k||arguments.length>0&&void 0!==arguments[0]&&arguments[0])var t=p.afterAddedText;else t=(0,a.UJ)(p,u,p.linkWithBuyButton,x,c.payload);return wp.hooks.applyFilters("product.addToCartText",t,o,c)}return l((function(){e&&(w(!0),j(A(!0)),setTimeout((function(){b.current&&(w(!1),j(A()))}),3e3))}),[e]),l((function(){j(A())}),[x.t,p,o]),(0,n.Y)("span",{className:"swp-add-to-cart-text",ref:b,"aria-label":c.payload.title+" add to cart text"},g)}}}]);
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.