PageSourceSearch

https://treesource.com/static/js/7473.d8af306e.chunk.js

js treesource.com collected 2026-10-07 21:21:49 UTC 12,883 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkclient=self.webpackChunkclient||[]).push([[7473],{26101:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(53354),o=r(67739),i=r(70579);const l="TreeSourceLoad",a={parent:"".concat(l,"-parent"),font:"".concat(l,"-font")},c=(0,n.Ay)("div")({["& .".concat(a.parent)]:{margin:"auto",textAlign:"center",marginTop:"300px"},["& .".concat(a.font)]:{fontFamily:"Lucida Sans, Lucida Sans Regular, Lucida Grande, Lucida Sans Unicode, Geneva,Verdana, sans-serif"}}),d=e=>(0,i.jsx)(c,{children:(0,i.jsx)("div",{className:a.parent,children:(0,i.jsxs)("div",{style:{minHeight:"100vh",maxWidth:"100px",margin:"auto",borderStyle:"none"},children:[(0,i.jsx)("img",{src:o.A,alt:"treesource loading spinner"}),(0,i.jsx)("p",{className:a.font,children:e.message})]})})})},54062:(e,t,r)=>{r.d(t,{A:()=>L});var n=r(89379),o=r(65043),i=r(85865),l=r(33238),a=r(12110),c=r(36591),d=r(26494),s=r(43845),u=r(91688),p=r(68443),h=r(79507),m=r(9820),f=r(11144),v=r(16030),g=r(77295),b=r(70579);const x="#eceff1",w="#FBF7EF",y="1px solid #DCCDAE",A=e=>{var t,r,l,A;const{isDesktop:k}=(0,o.useContext)(m.s),C=(0,u.W6)(),j=e.product,S=v.Db[j.companyName],T=S.entityName+", "+S.state,L=void 0!==e.featuredCodes&&(0,g.LR)(j,e.featuredCodes),D=!e.disableClickThrough,B=null!==(t=null===(r=e.clickThroughOverride)||void 0===r?void 0:r.entityName)&&void 0!==t?t:j.companyName,I=null===(l=e.clickThroughOverride)||void 0===l?void 0:l.logistics,R=(()=>{const e=new URLSearchParams;return e.append("entityName",B),I&&e.append("logistics",I),"?".concat(e.toString())})(),N="/products/".concat(e.product.itemCode).concat(R),F=e.eagerImage||(null!==(A=e.index)&&void 0!==A?A:0)<4?"eager":"lazy",M=D?{onClick:t=>{t.preventDefault(),t.target instanceof HTMLInputElement||t.target instanceof HTMLButtonElement||C.push({pathname:"/products/".concat(e.product.itemCode),search:R})},onKeyDown:e=>{if("Enter"===e.key){if(e.target instanceof HTMLInputElement)return void e.preventDefault();if(e.target instanceof HTMLButtonElement)return void e.preventDefault()}},component:"a",href:N}:{};return k?(()=>{var t,r;return(0,b.jsxs)(a.A,(0,n.A)((0,n.A)({style:(0,n.A)({display:"flex",flexDirection:k?"column":"row",cursor:D?"pointer":"default",height:k?"100%":void 0,textDecoration:"none",position:"relative"},L?{backgroundColor:w,border:y}:{})},M),{},{children:[(0,b.jsx)(c.A,{component:"img",loading:F,image:(0,p.U2)(e.product.imageLink),alt:e.product.commonName,style:k?{height:"100%",minHeight:310,objectFit:"cover",backgroundColor:x}:{width:"33%",objectFit:"cover",backgroundColor:x}}),(0,b.jsx)(h.L,{label:j.focusListChip,top:10,left:10,legacyWrapperDiv:!0}),(0,b.jsxs)(d.A,{style:{width:k?"100%":"67%",display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",paddingBottom:10},children:[(0,b.jsxs)("div",{style:{width:"90%",overflowWrap:"break-word",wordBreak:"break-word"},children:[(0,b.jsx)(i.A,{variant:"h6",component:"p",sx:{wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal"},children:e.product.botanicalName}),(0,b.jsx)(i.A,{variant:"subtitle1",component:"p",sx:{wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal"},children:e.product.commonName}),(0,b.jsxs)(i.A,{variant:"body2",children:[T,": ",Number(null!==(t=null===j||void 0===j?void 0:j.quantity)&&void 0!==t?t:0).toLocaleString("en-US")]}),e.showShippableQty&&(0,b.jsxs)(i.A,{variant:"body2",children:["Shippable Qty: ",Number(null!==(r=null===j||void 0===j?void 0:j.systemAvailability)&&void 0!==r?r:0).toLocaleString("en-US")]}),(0,b.jsxs)("div",{style:{display:"flex"},children:[(0,b.jsxs)(i.A,{variant:"body2",style:{alignContent:"center"}
1,children:["Price: ",(0,p.ae)(e.product.price)," "]}),"NO_TOUCH"===j.pricingHint?(0,b.jsx)(s.A,{label:"Farm Direct",size:"small",color:"primary",sx:{ml:1,backgroundColor:"#1976d2",color:"#fff"}}):(0,b.jsx)(s.A,{label:S.localBranchRegion+" Avail",size:"small",color:"primary",sx:{ml:1,backgroundColor:"#4CAF50",color:"#fff"}})]})]}),!e.hideAddToOrder&&(0,b.jsx)(f.A,{product:e.product,listView:!0})]})]}))})():(()=>{var t,r;return(0,b.jsx)(a.A,(0,n.A)((0,n.A)({style:(0,n.A)({display:"flex",flexDirection:"row",cursor:D?"pointer":"default",textDecoration:"none"},L?{backgroundColor:w,border:y}:{})},M),{},{children:(0,b.jsxs)(d.A,{style:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",padding:8},children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(i.A,{variant:"h6",component:"p",sx:{fontWeight:"bold",wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal"},children:e.product.botanicalName}),(0,b.jsx)(i.A,{variant:"subtitle1",component:"p",sx:{wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal"},children:e.product.commonName})]}),(0,b.jsxs)("div",{style:{display:"flex",width:"100%",position:"relative"},children:[(0,b.jsx)(c.A,{component:"img",loading:F,image:(0,p.U2)(e.product.imageLink),alt:e.product.commonName,style:{width:125,height:160,objectFit:"cover",backgroundColor:x}}),(0,b.jsx)(h.L,{label:j.focusListChip,top:6,left:6,legacyWrapperDiv:!0}),(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",marginLeft:8},children:[(0,b.jsxs)("div",{style:{overflowWrap:"break-word",wordBreak:"break-word"},children:[(0,b.jsxs)(i.A,{variant:"body2",children:[T,": ",Number(null!==(t=null===j||void 0===j?void 0:j.quantity)&&void 0!==t?t:0).toLocaleString("en-US")]}),e.showShippableQty&&(0,b.jsxs)(i.A,{variant:"body2",children:["Shippable Qty: ",Number(null!==(r=null===j||void 0===j?void 0:j.systemAvailability)&&void 0!==r?r:0).toLocaleString("en-US")]}),(0,b.jsxs)("div",{style:{display:"flex"},children:[(0,b.jsxs)(i.A,{variant:"body2",style:{alignContent:"center"}
1,children:["Price: ",(0,p.ae)(e.product.price)," "]}),"NO_TOUCH"===j.pricingHint?(0,b.jsx)(s.A,{label:"Farm Direct",size:"small",color:"primary",sx:{ml:1,backgroundColor:"#1976d2",color:"#fff"}}):(0,b.jsx)(s.A,{label:S.localBranchRegion+" Avail",size:"small",color:"primary",sx:{marginLeft:"7px",backgroundColor:"#4CAF50",color:"#fff"}})]})]}),!e.hideAddToOrder&&(0,b.jsx)("div",{children:(0,b.jsx)(f.A,{product:e.product,listView:!0,width:"150px"})})]})]})]})}))})()},k=o.memo(A),C=/HeadlessChrome|Prerender|Googlebot|bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Sogou|Exabot|facebookexternalhit|facebot|ia_archiver|LinkedInBot|Twitterbot|Applebot|AhrefsBot|SemrushBot|PetalBot|\bbot\b|crawler|spider/i,j={marginBottom:50,display:"grid",gap:g.by,gridTemplateColumns:"repeat(auto-fill, minmax(".concat(g.k0,"px, 1fr))")},S=()=>{var e,t,r,n,o,i;const l=navigator,a=l.connection||l.mozConnection||l.webkitConnection;return{cores:null!==(e=l.hardwareConcurrency)&&void 0!==e?e:null,deviceMemory:null!==(t=l.deviceMemory)&&void 0!==t?t:null,connectionType:null!==(r=null===a||void 0===a?void 0:a.effectiveType)&&void 0!==r?r:null,saveData:null!==(n=null===a||void 0===a?void 0:a.saveData)&&void 0!==n?n:null,downlink:null!==(o=null===a||void 0===a?void 0:a.downlink)&&void 0!==o?o:null,idleCallbackSupported:"function"===typeof window.requestIdleCallback,devicePixelRatio:window.devicePixelRatio,viewport:"".concat(window.innerWidth,"x").concat(window.innerHeight),userAgent:null!==(i=l.userAgent)&&void 0!==i?i:null}},T=(e,t,r)=>{try{if(!l.yf||!l.yf.logger)return;"warn"===e?l.yf.logger.warn(t,r):l.yf.logger.info(t,r)}catch(n){}},L=e=>{let{products:t,showShippableQty:r,isDesktop:l,emptyMessage:a,hideAddToOrder:c,disableClickThrough:d,clickThroughOverride:s,featuredCandidates:u}=e;const p="undefined"===typeof navigator||C.test(navigator.userAgent||""),[h,m]=(0,o.useState)(p?Number.MAX_SAFE_INTEGER:6),[f,v]=(0,o.useState)(1),x=(0,o.useRef)(null),w=(0,o.useCallback)(e=>{if(void 0===e||e<=0)return;const t=(0,g.wI)(e);v(e=>e===t?e:t)},[]),y=(0,o.useCallback)(e=>{var t;if(null===(t=x.current)||void 0===t||t.disconnect(),x.current=null,!e)return;w(e.getBoundingClientRect().width);const r=new ResizeObserver(e=>{var t;return w(null===(t=e[0])||void 0===t?void 0:t.contentRect.width)});r.observe(e),x.current=r},[w]),A=l?f:1,L=(0,o.useMemo)(()=>{if(u)return new Set(u.map(e=>e.itemCode))},[u]),D=(0,o.useMemo)(()=>{if(!u||0===u.length)return t;const e=(0,g.AJ)(A);return(0,g.lb)(t,u,e)},[t,u,A]),B=(0,o.useRef)(D);B.current=D;const I=(0,o.useRef)(null),R=(0,o.useRef)(null),N=(0,o.useRef)(6),F=(0,o.useRef)({idle:0,timer:0}),M=(0,o.useRef)(!1),E=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{m(p?Number.MAX_SAFE_INTEGER:6),F.current={idle:0,timer:0},M.current=!1,E.current=!1,N.current=6;const e=B.current.length,t=!p&&e>6;if(I.current=t?performance.now():null,R.current=t?(()=>{const e=window.crypto;return e&&"function"===typeof e.randomUUID?e.randomUUID():"".concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2,10))})():null,!t)return;T("info","Products reveal started",(0,n.A)({revealId:R.current,total:e,initialBatch:6,batchStep:4},S()));const r=window.setTimeout(()=>{var t;E.current||(M.current=!0,T("warn","Products reveal stalled",(0,n.A)({revealId:R.current,total:e,shown:N.current,initialBatch:6,batchStep:4,elapsedMs:Math.round(performance.now()-(null!==(t=I.current)&&void 0!==t?t:performance.now())),batchesViaIdle:F.current.idle,batchesViaTimer:F.current.timer},S())))},6e3);return()=>window.clearTimeout(r)},[t,p]),(0,o.useEffect)(()=>{if(!(h>=D.length))return(e=>{const t=window,r="function"===typeof t.requestIdleCallback;let n,o,i=!1;const l=()=>{void 0!==n&&"function"===typeof t.cancelIdleCallback&&t.cancelIdleCallback(n),void 0!==o&&window.clearTimeout(o)},a=t=>{i||(i=!0,l(),e(t))};return r&&(n=t.requestIdleCallback(()=>a("idle"),{timeout:250})),o=window.setTimeout(()=>a("timer"),r?150:16),()=>{i=!0,l()}})(e=>{F.current[e]+=1,m(e=>e+4)});if(!p&&!E.current&&null!==I.current&&D.length>6){E.current=!0;const e=Math.round(performance.now()-I.current),t=F.current,r=(0,n.A)({revealId:R.current,total:D.length,durationMs:e,batches:t.idle+t.timer,batchesViaIdle:t.idle,batchesViaTimer:t.timer,usedTimerFallback:t.timer>0,wasStalled:M.current},S());M.current||e>=2500?T("warn","Products reveal completed slowly",r):T("info","Products reveal completed",r)}},[h,D.length,p]),0===D.length)return a?(0,b.jsx)(i.A,{variant:"h6",component:"p",children:a}):null;N.current=h;const U=D.slice(0,h),O=(e,t)=>(0,b.jsx)(k,{index:t,eagerImage:p,product:e,showShippableQty:r,hideAddToOrder:c,disableClickThrough:d,clickThroughOverride:s,featuredCodes:L},e.id);
1return l?(0,b.jsx)("div",{style:j,ref:y,children:U.map((e,t)=>(0,b.jsx)("div",{children:O(e,t)},e.id))}):(0,b.jsx)(b.Fragment,{children:U.map((e,t)=>(0,b.jsx)("div",{style:{marginBottom:10},children:O(e,t)},e.id))})}},65251:(e,t,r)=>{r.d(t,{l:()=>i});var n=r(40854),o=r.n(n);const i=(e,t)=>{let r={headers:{authorization:localStorage.getItem("token"),Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-store"},timeout:null!==t&&void 0!==t?t:0};return o().get(e,r)}},77295:(e,t,r)=>{r.d(t,{AJ:()=>l,LR:()=>c,by:()=>o,k0:()=>n,lb:()=>a,tk:()=>d,wI:()=>i});const n=250,o=16;function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return Math.max(1,Math.floor((e+r)/(t+r)))}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;const{start:r,step:n}=e<=3?{start:6,step:7}:{start:e-1,step:2*e-1};return Array.from({length:t},(e,t)=>r+t*n)}function a(e,t,r){const n=[...e];let o=0;for(const i of t){if(o>=r.length)break;const e=n.findIndex(e=>e.itemCode===i.itemCode),t=r[o];if(!(e>=0&&e<t)){if(t>=n.length)break;e>=0&&n.splice(e,1),n.splice(t,0,i),o++}}return n}function c(e,t){return Boolean(e.focusListChip&&""!==e.focusListChip.trim())||t.has(e.itemCode)}function d(e){const t=new URLSearchParams(e);return t.delete("maxResults"),t}},96508:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(65043),o=r(41020),i=r(11906),l=r(24914),a=r(77739),c=r(17392),d=r(37965),s=r(85865),u=r(15795),p=r(70579);const h=e=>{let{getShareUrl:t,tooltip:r="Get Link For Filtered Availability List",description:h="Share this filtered list:"}=e;const[m,f]=(0,n.useState)(null),[v,g]=(0,n.useState)(!1);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.A,{title:r,children:(0,p.jsx)(c.A,{style:{width:30},onClick:e=>{f(e.currentTarget),g(!1)},children:(0,p.jsx)(d.A,{})})}),(0,p.jsx)(o.Ay,{open:Boolean(m),anchorEl:m,onClose:()=>{f(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:(0,p.jsxs)("div",{style:{padding:16,width:300},children:[(0,p.jsx)(s.A,{variant:"body1",gutterBottom:!0,children:h}),(0,p.jsx)(u.A,{fullWidth:!0,value:t()}),(0,p.jsx)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end"},children:(0,p.jsx)(i.A,{variant:"contained",startIcon:(0,p.jsx)(l.A,{}),onClick:()=>{navigator.clipboard.writeText(t()),g(!0)},sx:{mt:1},children:v?"Copied!":"Copy URL"})})]})})]})}}}]);
2//# sourceMappingURL=7473.d8af306e.chunk.js.map

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.