PageSourceSearch

https://foodinbulk.com/_next/static/chunks/1632.68910a441a043fd0.js

js foodinbulk.com collected 2026-10-08 15:19:11 UTC 9,184 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1632],{1632:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>d});var c=a(7876),l=a(4232),s=a(1921),i=a.n(s),r=a(9572),n=a(6103);let d=l.memo(e=>{let{currentQuantity:t,params:{caseWeightAsNumber:a,isDeal:l,isItem:s,itemsInCase:d,priceForLbWithDeal:o,prices:{priceByCase:{priceCase:u,priceCaseDeal:h,priceCaseWithoutDeal:_},priceByLb:{priceLb:m,priceLbDeal:p,priceLbWithoutDeal:j},totalPrice:{totalPrice:b,totalPriceDeal:x,totalPriceWithoutDeal:y}},threshold:N},realQuantity:v,setCurrentQuantity:C}=e;return(0,c.jsx)("div",{className:i().container,children:(0,c.jsxs)("table",{cellPadding:"0",cellSpacing:"0",width:"100%",children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{children:[(0,c.jsx)("th",{className:"".concat(i().tableCell," ").concat(i().forHead," ").concat(i().fullWidth)}),(0,c.jsx)("th",{className:"".concat(i().tableCell," ").concat(i().forHead),children:(0,c.jsx)("div",{className:i().title,children:"PRICE/".concat(s?"Item":"lb")})}),(0,c.jsx)("th",{className:"".concat(i().tableCell," ").concat(i().forHead),children:(0,c.jsx)("div",{className:i().title,children:"PRICE/Case"})}),(0,c.jsx)("th",{className:"".concat(i().tableCell," ").concat(i().forHead),children:(0,c.jsx)("div",{className:i().title,children:"QUANTITY (Cases)"})}),(0,c.jsx)("th",{className:"".concat(i().tableCell," ").concat(i().forHead),children:(0,c.jsx)("div",{className:"".concat(i().title," ").concat(i().lastItem),children:"TOTAL"})})]})}),(0,c.jsx)("tbody",{children:(0,c.jsxs)("tr",{className:i().tableRow,children:[(0,c.jsx)("td",{className:"".concat(i().tableCell," ").concat(i().fullWidth),children:(0,c.jsx)("div",{className:"".concat(i().content," ").concat(i().firstColumn),children:(0,c.jsxs)("div",{className:i().name,children:[(0,c.jsx)("div",{className:i().productName,children:s?"".concat(d," Items/Case"):"Case ".concat(a," lb")}),s&&(0,c.jsx)("div",{className:i().productDescription,children:"Case weight: ".concat(a," lb")}),(0,c.jsxs)("div",{className:i().productDescription,children:["Availability: ",v," Cases"]})]})})}),(0,c.jsx)("td",{className:i().tableCell,children:(0,c.jsxs)("div",{className:i().content,children:[l&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:i().price,children:["$",j]}),(0,c.jsxs)("div",{className:"".concat(i().price," ").concat(i().withDeal),children:["-$",p]})]}),(0,c.jsxs)("div",{className:"".concat(i().price," ").concat(!l?i().singlePrice:""," ").concat(i().withResult),children:["$",m]}
1)]})}),(0,c.jsx)("td",{className:i().tableCell,children:(0,c.jsxs)("div",{className:i().content,children:[l&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:i().price,children:["$",_]}),(0,c.jsxs)("div",{className:"".concat(i().price," ").concat(i().withDeal),children:["-$",h]})]}),(0,c.jsxs)("div",{className:"".concat(i().price," ").concat(!l?i().singlePrice:""," ").concat(i().withResult),children:["$",u]})]})}),(0,c.jsx)("td",{className:i().tableCell,children:(0,c.jsx)("div",{className:"".concat(i().content," ").concat(i().withMargin),children:(0,c.jsx)(r.A,{dealPrice:(0,n.YP)(o),deleteProduct:()=>C(0),isItem:s,productQuantity:t,setProductQuantity:C,stockQuantity:v,threshold:N,withoutDelete:!0})})}),(0,c.jsx)("td",{className:i().tableCell,children:(0,c.jsxs)("div",{className:i().content,children:[l&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"".concat(i().price," ").concat(i().lastItem),children:["$",y]}),(0,c.jsxs)("div",{className:"".concat(i().price," ").concat(i().lastItem," ").concat(i().withDeal),children:["-$",x]})]}),(0,c.jsxs)("div",{className:"".concat(i().price," ").concat(i().lastItem," ").concat(!l?i().singlePrice:""," ").concat(i().withResult),children:["$",b]})]})})]})})]})})})},1921:e=>{e.exports={container:"order-details_container__p2dD9",title:"order-details_title__DbHUD",lastItem:"order-details_lastItem__2MvoP",tableCell:"order-details_tableCell__Tj_Ab",fullWidth:"order-details_fullWidth__7rqgr",forHead:"order-details_forHead__VCjrs",content:"order-details_content__jSBWF",firstColumn:"order-details_firstColumn__hdDt_",withMargin:"order-details_withMargin__37gvw",tableRow:"order-details_tableRow__IE46b",price:"order-details_price__ICFnJ",withDeal:"order-details_withDeal__225o_",withResult:"order-details_withResult__cwmHU",singlePrice:"order-details_singlePrice__Y9DYX",name:"order-details_name__Frisl",productName:"order-details_productName__7yC71",productDescription:"order-details_productDescription__SYsEo"}},1925:e=>{e.exports={container:"product-quantity_container__If7aw",withFullWidth:"product-quantity_withFullWidth__PeigI",visuallyHidden:"product-quantity_visuallyHidden__4xhUb",inputArrow:"product-quantity_inputArrow__InaRm",input:"product-quantity_input__fjJ2k",isSelect:"product-quantity_isSelect__hVAEE",isEdited:"product-quantity_isEdited__LLbyP",isError:"product-quantity_isError__wbFiX",updateButton:"product-quantity_updateButton__WWBCN",select:"product-quantity_select__NEQJ2",selectItem:"product-quantity_selectItem__XieRn",firstChild:"product-quantity_firstChild__qGqaC",firstChildWithoutElements:"product-quantity_firstChildWithoutElements___6ia_",lastChildWithMore:"product-quantity_lastChildWithMore__mj1br",selectOverlay:"product-quantity_selectOverlay__0jhu_",addDeal:"product-quantity_addDeal__8JG32",errorMessage:"product-quantity_errorMessage__hYho_"}},9572:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var c=a(7876),l=a(4232),s=a(1925),i=a.n(s),r=a(7828),n=a(6103);let d=l.memo(e=>{let{componentWidth:t,dealPrice:a,deleteProduct:s,isCart:d,isItem:o,productQuantity:u,setProductQuantity:h,stockQuantity:_,threshold:m,withFullWidth:p,withoutDelete:j}=e,[b,x]=(0,l.useState)(d?u:r.ps),[y,N]=(0,l.useState)(!1),[v,C]=(0,l.useState)(!1),[f,w]=(0,l.useState)(!1),g=(0,l.useRef)(null),E=(0,l.useRef)(null),q=(0,l.useRef)(null),[D,I]=(0,l.useState)(!0),[P,F]=(0,l.useState)(!0),W=(0,l.useId)(),A="".concat(W,"-help"),k="".concat(W,"-error"),R="".concat(W,"-select"),S=[A,f?k:null].filter(Boolean).join(" "),H=r.mF.filter(e=>!(0,n.be)(e)&&(!j||e<=_)),M=e=>{C(!0),e&&requestAnimationFrame(()=>{var e;null==(e=q.current)||e.focus()})},$=e=>{C(!1),e&&requestAnimationFrame(()=>{var e;null==(e=E.current)||e.focus()})},B=()=>{let e=!!b&&b>0&&Number(b)<=_;N(!1),$(),e?h(b):s()};return(0,l.useEffect)(()=>{b&&b<r.g&&b<=_&&!y&&h(b),b&&(!(b>=r.g)||P)||b===u||N(!0),w(b>_),b===r.g&&I(!1),b>=r.g&&b<=_&&b!==u&&!P&&N(!0)},[b,P,u,h,y,_]),(0,l.useEffect)(()=>{u!==b&&F(!1)},[b,u]),(0,l.useEffect)(()=>{y&&g.current&&g.current.focus()},[b,y]),(0,l.useEffect)(()=>{d||x(r.ps)},[d,_]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"".concat(i().container," ").concat(p?i().withFullWidth:""),style:t?{width:t}:void 0,children:[(0,c.jsx)("label",{className:i().visuallyHidden,htmlFor:W,children:"Product quantity"}),(0,c.jsx)("input",{id:W,"aria-controls":v?R:void 0,"aria-describedby":S||void 0,"aria-invalid":f||void 0,className:"".concat(i().input," ").concat(y&&!v?i().isEdited:""," ").concat(f?i().isError:""," ").concat(D?i().isSelect:""," ").concat(p?i().withFullWidth:""),onChange:e=>(e=>{let t=e.target.value;if(!/^[0-9]*$/.test(t))return;let a=t.replace(/^0+/,"");a.includes(".")?x(Number(a.split(".")[0])):a.includes(",")?x(Number(a.split(",")[0])):x(Number(a))})(e),onClick:()=>D&&M(),onKeyDown:e=>(e=>{if(e.key===r.Lb.ESCAPE&&v)return void $(!0);e.key===r.Lb.ESCAPE&&b!==u&&x(u),e.key===r.Lb.ENTER&&B()})(e),inputMode:"numeric",readOnly:D,ref:g,type:"text",value:b}),(0,c.jsx)("button",{ref:E,type:"button","aria-controls":v?R:void 0,"aria-expanded":v,"aria-label":"Choose quantity",className:i().inputArrow,onClick:()=>M(),onKeyDown:e=>{"ArrowDown"===e.key&&(e.preventDefault(),M(!0))}}),v&&(0,c.jsx)("div",{className:i().selectOverlay,onClick:()=>$()}),y&&!v&&(0,c.jsx)("button",{type:"button","aria-label":"Update quantity",className:i().updateButton,onClick:B,children:"Update QTY"}),v&&!!_&&(0,c.jsx)("div",{id:R,className:i().select,onKeyDown:e=>{e.key===r.Lb.ESCAPE&&(e.preventDefault(),$(!0))},role:"group","aria-label":"Quantity options",children:H.map((e,t)=>{let a=_>r.mm,l=0===t,s=t===H.length-1;return(0,c.jsx)("button",{ref:l?q:void 0,type:"button",className:"".concat(i().selectItem," ").concat(l&&!j?i().firstChild:""," ").concat(l&&j?i().firstChildWithoutElements:""," ").concat(s&&a?i().lastChildWithMore:""),onClick:()=>(e=>{x(e),$(),e>=r.g?N(!0):e<r.g&&(0,n.be)(e)&&(I(!0),N(!1)),requestAnimationFrame(()=>{var e;null==(e=g.current)||e.focus()})})(e),children:"".concat(e).concat(a&&e===r.mm?" +":"")},e)})})]}),(0,c.jsx)("div",{id:A,className:i().visuallyHidden,children:"Select a quantity or type a larger value and choose Update quantity."}),f&&(0,c.jsxs)("div",{id:k,role:"alert",className:"".concat(i().errorMessage," ").concat(p?i().withFullWidth:""),children:["Only ",_," Cases are available",!p&&(0,c.jsx)("br",{}),"You cannot add more"]}),_>m&&(0,c.jsxs)("button",{type:"button","aria-label":"Apply deal quantity of ".concat(m," cases"),className:"".concat(i().addDeal," ").concat(p?i().withFullWidth:""),onClick:()=>{x(m),N(!0)},children:["$".concat(a,"/").concat(o?"item":"lb"," when buy"),!p&&(0,c.jsx)("br",{}),m,"+ cases"]})]})})}}]);

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.