1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7222],{4316:function(t,e,s){"use strict";s.r(e),s.d(e,{default:function(){return m}});var o=s(266),r=s(809),n=s.n(r),a=s(7294),u=s(9669),c=s.n(u),p=s(4155),d=c().create({baseURL:"".concat("https://").concat("api.optifuse.com","/api"),headers:{accept:"application/json","Content-Type":"application/json",charset:"utf-8"}});d.interceptors.request.use((function(t){return console.info("".concat(t.method.toUpperCase()," | ").concat(t.baseURL).concat(t.url),"REQUEST"),t})),d.interceptors.response.use((function(t){return(e=t).status<200||e.status>=300?{status:e.status,error:"CMS Error",request:e.request}:e.headers["content-type"].includes("html")?{status:406,error:"CMS Error, text/html response is not supported",request:e.request}:{data:e.data,status:200,totalPosts:parseInt(e.headers["x-wp-total"],10)||!1,totalPages:parseInt(e.headers["x-wp-totalpages"],10)||!1};var e}),(function(t){return"true"===p.env.SHOW_API_ERROR?Promise.reject(t):null!==t&&void 0!==t&&t.response?{status:t.response.status,statusText:t.response.statusText,request:t.response.request,trace:t.response.data}:{status:503,error:(null===t||void 0===t?void 0:t.message)||"Network error",code:null===t||void 0===t?void 0:t.code}}));s(219);var i=s(8392),l=s(9235),_=s.n(l),P=s(5893),m=function(t){var e=t.content,s=(0,a.useState)([]),r=s[0],u=s[1];return(0,a.useEffect)((0,o.Z)(n().mark((function t(){var s;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.items.length>0)){t.next=5;break}return t.next=3,c().post("/api/related-products",{items:e.items});case 3:s=t.sent,u(s.data.data.sort((function(t,s){return e.items.indexOf(t.name)>e.items.indexOf(s.name)?1:-1})));case 5:case"end":return t.stop()}}),t)}))),[]),0===r.length?null:(0,P.jsx)("section",{className:_().topProducts,id:e.id,children:r.length>0&&(0,P.jsx)(i.Z,{title:e.title,label:e.label,products:r,shouldDisplayAll:e.should_display_all})})}},9235:function(t){t.exports={topProductsInfoExtra:"TopProducts_topProductsInfoExtra__2PirL",topProductsItem:"TopProducts_topProductsItem__14rmS",topProductsItemTitle:"TopProducts_topProductsItemTitle__2XkZd",extraItem:"TopProducts_extraItem__7l1ba",extraItemLabel:"TopProducts_extraItemLabel__1rfpE",extraItemText:"TopProducts_extraItemText__2b1mL",topProductsButton:"TopProducts_topProductsButton__2tKx5",topProductsButtonIcon:"TopProducts_topProductsButtonIcon__3Pg2V",topProductsProducts:"TopProducts_topProductsProducts__1Lfxj"}}}]);
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.