PageSourceSearch

https://sigmacomics.com/wp-content/plugins/shopwp-pro/dist/Product…nLeftInStock-public.a0db2f66941584bae5ba.js

js sigmacomics.com collected 2026-09-26 16:50:07 UTC 1,318 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["ProductBuyButtonLeftInStock-public"],{
1"./npm-packages/@shopwp/components/src/products/product/buy-button/left-in-stock/index.jsx":(t,e,s)=>{s.r(e),s.d(e,{default:()=>l});var a=s("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),n=s("./npm-packages/@shopwp/components/src/items/_state/settings/hooks.jsx"),c=s("./npm-packages/@shopwp/components/src/products/product/_state/hooks.jsx"),o=s("./npm-packages/@shopwp/components/src/shop/_state/hooks.js");const p=function(t){var e=t.settings,s=t.quantityLeft,a=t.productState,n=(0,o.T)();if("Only %s left!"===e.leftInStockText)var c=n.t.n.leftInStock;else c=e.leftInStockText;return c=wp.hooks.applyFilters("product.leftInStockText",c,s,a),React.createElement("span",{className:"swp-notice-text wps-notice-text"},c)},l=function(){var t=wp.element,e=t.useEffect,s=(0,t.useState)(!1),o=(0,a.A)(s,2),l=o[0],r=o[1],i=(0,n.s)(),u=(0,c.k)();return e((function(){u.selectedVariant&&u.selectedVariant.availableForSale?(u.selectedVariant.quantityAvailable||r(!1),u.selectedVariant.quantityAvailable<=i.leftInStockThreshold&&r(u.selectedVariant.quantityAvailable)):r(!1)}),[u.selectedVariant]),l&&l>0&&u.selectedVariant?React.createElement(p,{settings:i,quantityLeft:l,productState:u}):null}}
1}]);

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.