PageSourceSearch

https://www.natchezss.com/static/js/100.75dd1fd010269231c27f.chunk.js

js natchezss.com collected 2026-09-25 22:50:34 UTC 2,011 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{575:function(t,e,u){"use strict";u.r(e),u.d(e,"default",(function(){return p}));var n=u(21),l=u.n(n),r=u(17),o=u.n(r),i=u(835),a=u(836),c=u(19),s=u(0),d=u(110),v=u(42),p=function(t){var e,u,n,r=t.match.params,p=r.sku,f=r.parentSku,b=r.qty,h=b?Number(b):1,k=Object(v.l)("redirect-url",v.d),m=o()(k,1)[0],w=Object(d.h)().replace,O=Object(i.c)(),g=o()(O,2),j=g[0],y=g[1],_=Object(c.sb)({variables:{filterObj:{hawk:[{attribute:"sku",condition:f?{in:[f,p]}:{eq:p}}]}}}),C=_.data,E=_.loading,q=Object(a.c)().addErrorMessage,D=j.matches("management.cart.idle");Object(s.useEffect)((function(){var t,e;E||null!=C&&null!==(t=C.products)&&void 0!==t&&null!==(e=t.items)&&void 0!==e&&e.length||(q("The product with sku: ".concat(null!=f?f:p," doesn't exist.")),w(m||"/"))}),[q,null==C||null===(e=C.products)||void 0===e||null===(u=e.items)||void 0===u?void 0:u.length,E,f,p,m,w]);var P=Object(s.useCallback)((function(t){return null!=t&&t.length?/^https?/.exec(t)||t.startsWith("/")?t:"/".concat(t):m||"/"}),[m]);return Object(s.useEffect)((function(){var t,e;if(null!=C&&null!==(t=C.products)&&void 0!==t&&null!==(e=t.items)&&void 0!==e&&e.length&&D){var u=C.products.items[0],n=u.url_key,r=l()(u,["url_key"]),o=P(n),i={sku:p,quantity:h};if("ConfigurableProduct"===r.__typename){var a,c,s,d,v=r.variants.find((function(t){var e,u;return(null===(e=t.product)||void 0===e||null===(u=e.sku)||void 0===u?void 0:u.toLowerCase())===p.toLowerCase()}));if(!v.product||null===(a=v.attributes)||void 0===a||!a.length)return q("Please select options to add to your cart."),w(o);o=P(null!==(c=v.product.url_key)&&void 0!==c?c:o);var b=[];null==v||v.attributes.forEach((function(t){b.push(t.uid)})),i.sku=null!==(s=null===(d=v.product)||void 0===d?void 0:d.sku)&&void 0!==s?s:i.sku,i.parent_sku=f,i.selected_options=b}try{y("ADD_PRODUCTS",{data:{cartItems:[i]}}),w(o)}catch(t){w(o)}}}),[q,null==C||null===(n=C.products)||void 0===n?void 0:n.items,D,f,p,h,P,m,w,y]),null}}}]);

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.