1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8024],{18024:function(e,t,a){"use strict";a.r(t);var i=a(85893),s=a(60712),l=a(78054),n=a(60143),c=a(25675),r=a.n(c),d=a(67294),o=a(33248),u=a(5152),p=a.n(u),m=a(43614),h=a(7568);a(20929);var v=a(93967),g=a.n(v),j=a(90318);let x=p()(()=>Promise.all([a.e(1313),a.e(3475)]).then(a.bind(a,3475)),{loadableGenerated:{webpack:()=>[3475]}}),f=p()(()=>Promise.all([a.e(399),a.e(7174),a.e(8417),a.e(4235),a.e(9364)]).then(a.bind(a,89364)),{loadableGenerated:{webpack:()=>[89364]}}),N=p()(()=>Promise.all([a.e(2838),a.e(8232)]).then(a.bind(a,98232)),{loadableGenerated:{webpack:()=>[98232]}});t.default=e=>{let{product:t,reviews:a,reviewSummary:c}=e,u=(0,j.O4)(),p=t.catalogCompany,v=null==p?void 0:p.productionCustomizations,b=p.type===l.Fw.SPECIALIST,[w,Z]=(0,d.useState)([]),[y,C]=(0,d.useState)([]),S=(0,n.jv)(p);(0,d.useEffect)(()=>{let e=async()=>{var e;let[{list:a},{list:i}]=await Promise.all([(0,o.l3)({catalogCategoryId:[t.catalogCategoryId],size:12,page:0}),(0,o.l3)({catalogCompanyId:[null===(e=t.catalogCompany)||void 0===e?void 0:e.id],catalogCategoryId:[t.catalogCategoryId],size:12,page:0})]);Z(a.filter(e=>e.id!==t.id)),C(i.filter(e=>e.id!==t.id))};(null==t?void 0:t.id)&&e().catch(console.error)},[t]);let P=(0,i.jsxs)("div",{className:"section",id:s.Fp,children:[(0,i.jsx)("div",{className:"header",children:(0,i.jsxs)("h2",{className:"title",children:["Other products from ",S]})}),(0,i.jsx)(x,{product:t,products:y})]}),k=(0,i.jsxs)("div",{className:"section",id:s.Fp,children:[(0,i.jsx)("div",{className:"header",children:(0,i.jsxs)("h2",{className:"title",children:["Similar products to the ",t.name]})}),(0,i.jsx)(x,{product:t,products:w})]});return(0,i.jsxs)("div",{className:g()("product-details-panel",{"product-details-panel-mobile":u}),children:[(0,i.jsx)(()=>{var e;return(0,i.jsxs)("div",{className:"section",children:[(0,i.jsx)("div",{className:"header",children:(0,i.jsx)("h2",{className:"title",children:t.name})}),(0,i.jsx)("div",{className:"text description",children:null==t?void 0:null===(e=t.meta)||void 0===e?void 0:e.description})]})},{}),(0,i.jsx)(()=>!(0,m.Z)(v)&&!b&&(0,i.jsxs)("div",{className:"section",id:s.x3,children:[(0,i.jsxs)("div",{className:"header",children:[(0,i.jsxs)("h2",{className:"title",children:["Supplier capabilities of ",S]}),(0,i.jsx)("span",{className:"subtitle",children:"These customizations will be available to you when ordering a production run from this supplier."})]}),(0,i.jsx)("div",{className:"grid",children:null==v?void 0:v.map(e=>(0,i.jsxs)("div",{className:"customization",children:[e.image&&(0,i.jsx)(r(),{src:e.image,width:62,height:62,alt:"The icon of + "+e.text}),(0,i.jsx)("span",{children:e.text})]},e.image))})]}),{}),!(0,m.Z)(y)&&P,!(0,m.Z)(w)&&k,(0,i.jsx)(N,{signupRedirect:(0,n.nd)(t.id),utmMedium:"product_details_page"}),(0,i.jsx)(()=>(0,i.jsxs)("div",{className:"section",id:s.se,children:[(0,i.jsx)("div",{className:"header",children:(0,i.jsxs)("h2",{className:"title",children:["Reviews for ",S]})}),(0,i.jsx)(f,{reviewsList:a,reviewSummary:c,total:(0,h.Z)(a),page:0,supplierName:S})]}),{})]})}},33248:function(e,t,a){"use strict";a.d(t,{TX:function(){return s},l3:function(){return l},wz:function(){return n}});var i=a(20054);async function s(e){let{data:t}=await i.ZP.get("/app/catalog-companies",{params:e});return t}async function l(e){let{data:t}=await i.ZP.get("/app/catalog-items",{params:e});return t}async function n(e){let{data:t}=await i.ZP.get("/app/catalog-items/action/suggest-auto-complete",{params:e});return t}},20929:function(){},36954:function(e,t,a){"use strict";var i=a(3552),s=a(74406),l=a(71161);t.Z=function(e){return"string"==typeof e||!(0,s.Z)(e)&&(0,l.Z)(e)&&"[object String]"==(0,i.Z)(e)}},7568:function(e,t,a){"use strict";var i=a(14822),s=a(20777),l=a(42287),n=a(36954),c=a(42888);t.Z=function(e){if(null==e)return 0;if((0,l.Z)(e))return(0,n.Z)(e)?(0,c.Z)(e):e.length;var t=(0,s.Z)(e);return"[object Map]"==t||"[object Set]"==t?e.size:(0,i.Z)(e).length}}}]);
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.