PageSourceSearch

https://www.acdd.com/_next/static/chunks/8511.c4428da5c357134e.js

js acdd.com collected 2026-10-02 12:16:03 UTC 12,721 bytes, 6 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8511],{60620:function(e,t,r){r.d(t,{c:function(){return l}});let n=async(e,t)=>{try{let r=await fetch("".concat("https://www.acdd.com","/api/price-rule/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({products:e,companyPriceGroups:t})});if(!r.ok)throw Error("API returned status ".concat(r.status));return(await r.json()).products||[]}catch(e){return console.error("API ERROR:",e),[]}};async function l(e,t){if(t){let r=await n(e,t);return e.map(e=>{var t;let n=r.find(t=>t.entityId===e.entityId);return{...e,prices:{...e.prices,discountPrice:null!==(t=null==n?void 0:n.prices.discountPrice)&&void 0!==t?t:e.prices.basePrice}}})}return e}},72511:function(e,t,r){r.r(t),r.d(t,{CarouselStaticNew:function(){return v},default:function(){return g}});var n=r(57437),l=r(2265),a=r(35304),o=r(37440),i=r(66648),s=r(87138);let c=(0,l.forwardRef)(function(e,t){var r,l,a,c,u,A,d,f,m,p,h,v;let{className:g,link:x,image:w,imageAlt:b="",name:C,prices:y,isAuthorized:j}=e,E=null!==(m=null!==(f=null===(r=y.discountPrice)||void 0===r?void 0:r.currencyCode)&&void 0!==f?f:null===(l=y.price)||void 0===l?void 0:l.currencyCode)&&void 0!==m?m:null===(a=y.basePrice)||void 0===a?void 0:a.currencyCode,N=new Intl.NumberFormat("en-US",{style:"currency",currency:E});return(0,n.jsxs)("div",{className:"flex flex-col ",children:[(0,n.jsx)(s.default,{ref:t,href:null!=x?x:"#",className:(0,o.cn)(g,"group relative block aspect-[3/4] w-full overflow-hidden"),children:w?(0,n.jsx)(i.default,{src:w,alt:b,fill:!0,sizes:"(min-width: 1024px) 250px, 100vw",className:"scale-100 object-cover transition-transform duration-300 ease-in-out group-hover:scale-110"}):(0,n.jsx)("div",{className:"aspect-[3/4] w-full bg-gray-100"})}),(0,n.jsx)("h3",{className:"line-clamp-2 flex-1 text-xl font-bold text-black mt-2",children:(0,n.jsx)(s.default,{className:"hover:text-blue-primary focus:ring-blue-primary/20 focus:outline focus:outline-4 focus:outline-offset-2 focus:outline-blue-primary/20 focus:ring-0",href:null!=x?x:"#",children:C})}),j&&(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("p",{className:"mr-1",children:"Price:"}),(0,n.jsx)("span",{className:"",children:N.format(null!==(v=null!==(h=null!==(p=null==y?void 0:null===(c=y.discountPrice)||void 0===c?void 0:c.value)&&void 0!==p?p:null==y?void 0:null===(u=y.basePrice)||void 0===u?void 0:u.value)&&void 0!==h?h:null==y?void 0:null===(A=y.price)||void 0===A?void 0:A.value)&&void 0!==v?v:null==y?void 0:null===(d=y.retailPrice)||void 0===d?void 0:d.value)})]})]})});var u=r(27567);let A=e=>{let{groupedProducts:t,id:r}=e;return(0,n.jsx)("div",{className:"mt-5 pt-5 mb-2",children:(0,n.jsx)(a.CarouselPagination,{children:e=>{let{selectedIndex:l,scrollTo:o}=e;return t.map((e,t)=>(0,n.jsx)(a.CarouselPaginationTab,{"aria-controls":"".concat(r,"-slide-").concat(t+1),"aria-label":"Slide ".concat(t+1),isSelected:l===t,onClick:()=>o(t)},t))}})})};var d=r(11444),f=r(9295),m=r(65031),p=r(60620),h=r(25566);let v=(0,l.forwardRef)(function(e,t){let{className:r,title:i,skuList:s=[]}=e,v=(0,l.useId)(),[g,x]=(0,l.useState)([]),[w,b]=(0,l.useState)(!1),C=(0,d.v9)(f.fN),y=(0,d.v9)(m.xO),j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768,[t,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let t=window.matchMedia("(max-width: ".concat(e,"px)")),n=()=>r(t.matches);return n(),t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[e]),t}();if((0,l.useEffect)(()=>{(async function(){if(s&&0!==s.length){b(!0);try{let e=s.map(e=>"skus=".concat(encodeURIComponent(e.sku))).join("&"),t="".concat("https://www.acdd.com","/api/product/products-by-skus?").concat(e),r=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json","x-vercel-protection-bypass":h.env.VERCEL_AUTOMATION_BYPASS_SECRET}});if(!r.ok)throw Error("Failed to fetch products: ".concat(r.status));let n=await r.json(),l=Array.isArray(n.products)?n.products:[],a=s.map(e=>e.sku),o=new Map;a.forEach((e,t)=>{o.has(e)||o.set(e,t)});let i=l.sort((e,t)=>{var r,n;let l=null!==(r=o.get(e.sku))&&void 0!==r?r:1/0,a=null!==(n=o.get(t.sku))&&void 0!==n?n:1/0;return l-a}),c=await (0,p.c)(i,y);x(null!=c?c:[])}catch(e){console.error("Failed to load products:",e)}finally{b(!1)}}})()},[s,y]),w)return(0,n.jsx)("div",{className:(0,o.cn)(r,"p-6 text-center"),ref:t,children:"Loading products..."});if(0===g.length)return(0,n.jsx)("div",{className:(0,o.cn)(r,"p-6 text-center"),ref:t,children:"No products found for the given SKUs."});let E=j?function(e,t){let r=[];for(let t=0;t<e.length;t+=2)r.push(e.slice(t,t+2));return r}(g,0):g.map(e=>[e]),N=j&&E.length<=3?[...E,...E]:E;
1return(0,n.jsxs)(a.Carousel,{"aria-labelledby":"Carousel",className:(0,o.cn)(r,"pb-0 w-full"),ref:t,children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h2",{className:"text-3xl font-black lg:text-4xl",id:"title",children:i}),(0,n.jsxs)("span",{className:"no-wrap flex",children:[(0,n.jsx)(a.CarouselPreviousIndicator,{}),(0,n.jsx)(a.CarouselNextIndicator,{})]})]}),(0,n.jsx)(a.CarouselContent,{children:N.map((e,t)=>(0,n.jsx)(a.CarouselSlide,{"aria-label":"".concat(t+1," of ").concat(N.length),id:"".concat(v,"-slide-").concat(t+1),index:t,children:(0,n.jsx)("div",{className:(0,o.cn)("grid gap-4","grid-cols-1"),children:e.map(e=>{var t,r;return(0,n.jsx)(c,{image:(null===(t=e.defaultImage)||void 0===t?void 0:t.url)||u.default,imageAlt:(null===(r=e.defaultImage)||void 0===r?void 0:r.altText)||e.name,link:e.path,name:e.name,isAuthorized:C,prices:e.prices},e.entityId)})})},"group-".concat(t)))}),(0,n.jsx)(A,{groupedProducts:E,id:v})]})});var g=v},35304:function(e,t,r){r.r(t),r.d(t,{Carousel:function(){return u},CarouselContent:function(){return A},CarouselNextIndicator:function(){return m},CarouselPagination:function(){return p},CarouselPaginationTab:function(){return h},CarouselPreviousIndicator:function(){return f},CarouselSlide:function(){return d}});var n=r(57437),l=r(74300),a=r(95137),o=r(71976),i=r(2265),s=r(37440);let c=(0,i.createContext)([()=>null,void 0]),u=(0,i.forwardRef)((e,t)=>{let{children:r,className:a,...o}=e,[i,u]=(0,l.Z)({loop:!0,slidesToScroll:1,align:"start"});return(0,n.jsx)(c.Provider,{value:[i,u],children:(0,n.jsx)("section",{"aria-roledescription":"carousel",className:(0,s.cn)("relative overflow-x-hidden pb-16",a),ref:t,...o,children:r})})});u.displayName="Carousel";let A=(0,i.forwardRef)((e,t)=>{let{children:r,className:l,...a}=e,o=(0,i.useRef)(null),[u]=(0,i.useContext)(c);(0,i.useImperativeHandle)(t,()=>o.current,[]);let A=(0,i.useCallback)(e=>{u(e),o.current=e},[u]);return(0,n.jsx)("div",{ref:A,children:(0,n.jsx)("ul",{"aria-live":"polite",className:(0,s.cn)("-ml-8 mt-5 flex lg:mt-6",l),...a,children:r})})});A.displayName="CarouselContent";let d=(0,i.forwardRef)((e,t)=>{let{children:r,className:l,index:a,...o}=e,[,u]=(0,i.useContext)(c),[A,d]=(0,i.useState)([0]);return(0,i.useEffect)(()=>{if(!u)return;let e=()=>d(u.slidesInView());return u.on("slidesInView",e),()=>{u.off("slidesInView",e)}},[u]),(0,n.jsx)("li",{"aria-roledescription":"slide",className:(0,s.cn)("min-w-0 shrink-0 grow-0 basis-1/2 sm:basis-1/3 md:basis-1/4 lg:basis-1/4 pl-8",l),ref:t,role:"tabpanel",...o,children:r})});d.displayName="CarouselSlide";let f=(0,i.forwardRef)((e,t)=>{let{children:r,className:l,onClick:o,...u}=e,[,A]=(0,i.useContext)(c),[d,f]=(0,i.useState)(!1),m=(0,i.useCallback)(()=>{A&&A.scrollPrev()},[A]);return(0,i.useEffect)(()=>{A&&f(A.scrollSnapList().length<=1)},[A]),(0,n.jsx)("button",{"aria-label":"Previous products",className:(0,s.cn)("inline-flex h-12 w-12 items-center justify-center focus:outline-none focus:ring-4 focus:ring-blue-primary/20",d&&"hidden",l),onClick:e=>{m(),o&&o(e)},ref:t,...u,children:r||(0,n.jsx)(a.Z,{})})});f.displayName="CarouselPreviousIndicator";let m=(0,i.forwardRef)((e,t)=>{let{children:r,className:l,onClick:a,...u}=e,[,A]=(0,i.useContext)(c),[d,f]=(0,i.useState)(!1),m=(0,i.useCallback)(()=>{A&&A.scrollNext()},[A]);return(0,i.useEffect)(()=>{A&&f(A.scrollSnapList().length<=1)},[A]),(0,n.jsx)("button",{"aria-label":"Next products",className:(0,s.cn)("inline-flex h-12 w-12 items-center justify-center focus:outline-none focus:ring-4 focus:ring-blue-primary/20",d&&"hidden",l),onClick:e=>{m(),a&&a(e)},ref:t,...u,children:r||(0,n.jsx)(o.Z,{})})});m.displayName="CarouselNextIndicator";let p=(0,i.forwardRef)((e,t)=>{let{children:r,className:l,onClick:a,...o}=e,[,u]=(0,i.useContext)(c),[A,d]=(0,i.useState)(0),[f,m]=(0,i.useState)([]),p=(0,i.useCallback)(()=>{u&&m(u.scrollSnapList())},[u]),h=(0,i.useCallback)(e=>u&&u.scrollTo(e),[u]),v=(0,i.useCallback)(()=>{u&&d(u.selectedScrollSnap())},[u]);return((0,i.useEffect)(()=>{u&&(p(),u.on("reInit",p),u.on("select",v))},[u,p,v]),f.length<=1)?null:"function"==typeof r?(0,n.jsx)("div",{"aria-label":"Slides",className:(0,s.cn)("no-wrap absolute bottom-0 flex w-full items-center justify-center gap-2"),ref:t,role:"tablist",...o,children:r({
1selectedIndex:A,scrollTo:h})}):null});p.displayName="CarouselPagination";let h=(0,i.forwardRef)((e,t)=>{let{children:r,className:l,isSelected:a,...o}=e;return(0,n.jsx)("button",{"aria-selected":a,className:(0,s.cn)("h-7 w-7 p-0.5 after:block after:h-0.5 after:w-full after:bg-gray-400 after:content-[''] focus:outline-none focus:ring-4 focus:ring-blue-primary/20",a&&"after:bg-black",l),ref:t,role:"tab",...o})});h.displayName="CarouselPaginationTab"},9295:function(e,t,r){r.d(t,{QD:function(){return a},fN:function(){return n},gl:function(){return l}});let n=e=>e.customer.isAuthorized,l=e=>e.customer.id,a=e=>e.customer.companySageId},65031:function(e,t,r){r.d(t,{cf:function(){return a},ft:function(){return l},qo:function(){return n},xO:function(){return o}});let n=e=>e.companyPrimaryWarehouse.primaryWarehouse,l=e=>e.company.isPrimaryWarehousePicked,a=e=>e.company.isWarehousePickLoading,o=e=>e.company.companyPriceGroup},37440:function(e,t,r){r.d(t,{cn:function(){return a}});var n=r(44839),l=r(96164);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.m6)((0,n.W)(t))}},81066:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(2265),l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
2 * @license lucide-react v0.341.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),o=(e,t)=>{let r=(0,n.forwardRef)((r,o)=>{let{color:i="currentColor",size:s=24,strokeWidth:c=2,absoluteStrokeWidth:u,className:A="",children:d,...f}=r;return(0,n.createElement)("svg",{ref:o,...l,width:s,height:s,stroke:i,strokeWidth:u?24*Number(c)/Number(s):c,className:["lucide","lucide-".concat(a(e)),A].join(" "),...f},[...t.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(d)?d:[d]])});return r.displayName="".concat(e),r}},66648:function(e,t,r){r.d(t,{default:function(){return l.a}});var n=r(55601),l=r.n(n)},87138:function(e,t,r){r.d(t,{default:function(){return l.a}});var n=r(231),l=r.n(n)},55601:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return s},getImageProps:function(){return i}});let n=r(99920),l=r(80497),a=r(38173),o=n._(r(21241));function i(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let s=a.Image},27567:function(e,t,r){r.r(t),t.default={src:"/_next/static/media/coming-soon.decc0e6e.jpg",height:398,width:318,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAYDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGvB//EABQQAQAAAAAAAAAAAAAAAAAAAEH/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABcQAAMBAAAAAAAAAAAAAAAAAAABETH/2gAIAQEAAT8hVvT/2gAMAwEAAgADAAAAEAP/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAWEAEBAQAAAAAAAAAAAAAAAAABEQD/2gAIAQEAAT8QUCQb/9k=",blurWidth:6,blurHeight:8}}}]);

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.