PageSourceSearch

https://electroshield-v1.netlify.app/_next/static/chunks/1667.bcf14b4ac0e9c942.js

js electroshield-v1.netlify.app collected 2026-10-03 10:44:44 UTC 8,767 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[372,681,1667,3062,3292],{1667:(e,a,t)=>{t.r(a),t.d(a,{default:()=>u});var l=t(37876),i=t(14232),s=t(89099),r=t(58149),n=t(73292),d=t(75794),c=t(80681),o=t(76400);let u=()=>{let e=(0,s.useRouter)(),a=e.query.id?e.query.id:e.query.action,[t,u]=(0,i.useState)([]),{data:m,error:h}=(0,r.Ay)(a?"/products/".concat(a):null),p=async()=>{if((null==m?void 0:m.response_type)==="success"){let t=null==m?void 0:m.data,i=await (0,o.L6)(t);if(t){var e,a;let s=[];s.push({header:"Image",data:(0,l.jsx)(d.default,{src:null!=i?i:"/assets/images/no_any_image.png",className:"object-contain",width:120,height:120,alt:"product"}),isHTML:!0}),(null==t?void 0:t.status)&&s.push({header:"Status",data:(0,l.jsxs)("div",{className:"status px-2.5 text-white inline-flex items-center rounded-full ".concat("ACTIVE"===t.status?"bg-GreenGradientS/20 text-GreenGradientS ":" bg-primaryRed/20 text-primaryRed "),children:[(0,l.jsx)("span",{className:"inline-block w-2 h-2 rounded-full mr-1 ".concat("ACTIVE"===t.status?"bg-GreenGradientS":" bg-primaryRed")}),t.status]}),isHTML:!0}),(null==t?void 0:t.title)&&s.push({header:"Title",data:null==t?void 0:t.title,isHTML:!1}),(null==t||null==(e=t.manufacture)?void 0:e.title)&&s.push({header:"Manufacturer",data:null==t||null==(a=t.manufacture)?void 0:a.title,isHTML:!1}),(null==t?void 0:t.rohs)&&s.push({header:"RoHS",data:(null==t?void 0:t.rohs)==="Compliant"?"YES":"NO",isHTML:!1}),(null==t?void 0:t.description)&&s.push({header:"Description",data:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:"".concat(null==t?void 0:t.description)},className:"text-gray-700 text-base mb-4"}),isHTML:!0}),(null==t?void 0:t.sku)&&s.push({header:"SKU",data:null==t?void 0:t.sku,isHTML:!1}),(null==t?void 0:t.quantity)!==void 0&&s.push({header:"Quantity",data:null==t?void 0:t.quantity,isHTML:!1}),(null==t?void 0:t.min_purchase_quantity)&&s.push({header:"Minimum Purchase Quantity",data:null==t?void 0:t.min_purchase_quantity,isHTML:!1}),(null==t?void 0:t.multiple_purchase_quantity)&&s.push({header:"Multiple Purchase Quantity",data:null==t?void 0:t.multiple_purchase_quantity,isHTML:!1}),s.push({header:"Web Distribution",data:(null==t?void 0:t.web_distribution)?null==t?void 0:t.web_distribution:"-",isHTML:!1}),u(s)}else u([])}};return((0,i.useEffect)(()=>{p()},[m]),h)?(0,l.jsx)(c.default,{}):(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"card bg-white rounded-xl shadow-lg w-full",children:[(0,l.jsx)("div",{className:"card-header p-4 pb-0 flex flex-wrap md:justify-between flex-col md:flex-row md:items-center",children:(0,l.jsx)("h4",{className:"text-lg md:text-xl font-semibold text-ESBlack",children:"View Product Data"})}),(0,l.jsx)("div",{className:"card-body p-4",children:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(n.default,{data:t,isLoading:!m})})})]})})}},66295:(e,a,t)=>{t.d(a,{K:()=>i});let l=new(t(65687)).Ay("database");l.version(1).stores({images:"++id, name, url ,expTime"});let i=l.table("images")},73292:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var l=t(37876);t(14232);let i=e=>{var a;return(0,l.jsx)(l.Fragment,{children:(null==e?void 0:e.isLoading)===!0?(0,l.jsx)("table",{children:(0,l.jsx)("tbody",{children:[void 0,void 0,void 0].map((e,a)=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{className:"w-4/12 ",children:(0,l.jsx)("span",{className:"block lazy min-h-[15px] w-full"})}),(0,l.jsx)("td",{children:(0,l.jsx)("span",{className:"block lazy min-h-[15px] w-full"})})]},"row-".concat(a)))})}):((null==e?void 0:e.isLoading)===void 0||(null==e?void 0:e.isLoading)===!1)&&e.data&&(null==(a=e.data)?void 0:a.length)>0&&(0,l.jsx)("table",{className:"w-full border-collapse table-fixed",children:(0,l.jsx)("tbody",{children:e.data.map((e,a)=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{className:"font-semibold text-[14px] w-[200px]",children:e.header}),(0,l.jsx)("td",{className:"text-gray-700 text-base w-[calc(100%_  -_200px)]",children:(null==e?void 0:e.isHTML)!==void 0&&!0===e.isHTML?(0,l.jsx)(l.Fragment,{children:"object"==typeof e.data?(0,l.jsx)("p",{className:"w-full break-words whitespace-normal",children:e.data}):(0,l.jsx)("p",{className:"w-full break-words whitespace-normal",dangerouslySetInnerHTML:{__html:"".concat(e.data)}})}):(0,l.jsx)("p",{className:"w-full break-words whitespace-normal",children:e.data})})]},"row-".concat(a)))})})})}},76400:(e,a,t)=>{t.d(a,{L6:()=>c,Q9:()=>n,hJ:()=>d});
1var l=t(10841),i=t.n(l),s=t(66295),r=t(80372);async function n(e,a){let t=[];e.forEach(e=>{e.product_image&&e.product_image.length>0&&t.push({id:e.id,name:e.product_image[0].image})});let l=await s.K.filter(e=>{for(let a=0;a<t.length;a++)if(t[a].name===e.name&&i()().isBefore(e.expTime))return!0;return!1}).toArray(),n=[...e];for(let e=0;e<l.length;e++)for(let a=0;a<t.length;a++)if(t[a].name===l[e].name){for(let i=0;i<n.length;i++)if(t[a].id===n[i].id){n[i].image=l[e].url;break}t.splice(a,1);break}if(t.length>0){var d;let e=await (0,r.mu)({imageArray:t});if((null==e||null==(d=e.data)?void 0:d.response_type)==="success"){let a=[];e.data.data.forEach(e=>{for(let a=0;a<n.length;a++)if(e.id===n[a].id){n[a].image=e.link;break}a.push({name:e.name,url:e.link,expTime:e.expTime})}),await s.K.bulkAdd(a)}}a(()=>[...n])}async function d(e,a){let t=[];e.forEach(e=>{e.product_image&&e.product_image.length>0&&t.push({id:e.id,name:e.product_image[0].image})});let l=await s.K.filter(e=>{for(let a=0;a<t.length;a++)if(t[a].name===e.name&&i()().isBefore(e.expTime))return!0;return!1}).toArray(),r=[...e];for(let e=0;e<l.length;e++)for(let a=0;a<t.length;a++)if(t[a].name===l[e].name){for(let i=0;i<r.length;i++)if(t[a].id===r[i].id){r[i].image=l[e].url;break}t.splice(a,1);break}if(t.length>0){let e=[];t.forEach(a=>{for(let e=0;e<r.length;e++)if(a.id===r[e].id){r[e].image=a.name;break}e.push({name:a.name,url:a.name})}),await s.K.bulkAdd(e)}a(()=>[...r])}let c=async e=>{var a,t,l,i;if(e.product_image&&(null==(a=e.product_image)?void 0:a.length)>0){let a=await (0,r.mu)({imageArray:[{name:e.product_image[0].image,id:e.id}]});if("success"===a.data.response_type)return null!=(i=null==a||null==(l=a.data)||null==(t=l.data[0])?void 0:t.link)?i:null}return null}},80372:(e,a,t)=>{t.d(a,{AH:()=>u,NL:()=>m,Up:()=>r,XF:()=>i,eW:()=>n,gh:()=>s,kd:()=>d,ld:()=>h,mu:()=>c,zh:()=>o});var l=t(88471);let i=(e,a,t)=>(0,l.zS)("/products/getProductFilterOptions".concat(a&&""!==a.toString().trim()?"?search=".concat(encodeURIComponent(a)).concat(void 0!==t&&!0===t?"&att=all":""):"".concat(void 0!==t&&!0===t?"?att=all":"")),e),s=(e,a,t)=>(0,l.zS)("/products/getProductFilterOptionsForSearch".concat(a&&""!==a.toString().trim()?"?search=".concat(encodeURIComponent(a)).concat(void 0!==t&&!0===t?"&att=all":""):"".concat(void 0!==t&&!0===t?"?att=all":"")),e),r=e=>(0,l.zS)("/products/getAllProductsById",e),n=(e,a)=>(0,l.zS)("/products/getProductCAD/".concat(e),a),d=(e,a,t)=>(0,l.Ft)("/products/getProductBySku/".concat(encodeURIComponent(t),"?page=").concat(e,"&limit=").concat(a)),c=e=>(0,l.zS)("/aws/get-image-link",e),o=e=>(0,l.Ft)("/products/search?search=".concat(encodeURIComponent(e.trim()))),u=e=>(0,l.zS)("/aws/get-spec-link",e),m=(e,a)=>(0,l.AM)("/products/score/".concat(e),a),h=(e,a)=>(0,l.zS)("/products/filter?page=".concat(e.page,"&limit=").concat(e.limit,"&sort=").concat(e.sort).concat(e.search&&""!==e.search.trim()?"&search="+encodeURIComponent(e.search.trim()):"").concat(void 0!==e.fromSearchPage&&!0===e.fromSearchPage?"&filter=all":"").concat(void 0!==e.avoidDuplication&&!0===e.avoidDuplication?"&att=all":""),a)},80681:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var l=t(37876);let i=()=>(0,l.jsx)("div",{className:"w-full h-full flex items-center justify-center pt-12 pb-36",children:(0,l.jsxs)("div",{className:"relative text-left l-blue-border",children:[(0,l.jsxs)("div",{className:"absolute top-0 left-0",children:[(0,l.jsx)("div",{className:"w-[185px] h-[6px] l-gradient-horizontal"}),(0,l.jsx)("div",{className:"w-[6px] h-36 l-gradient-vertical"})]}),(0,l.jsxs)("div",{className:"pl-7 pt-14 max-w-[480px]",children:[(0,l.jsxs)("h2",{className:"block text-[30px] md:text-[31px] text-black leading-[1.2] mb-3 break-words",children:["Content not available ",(0,l.jsx)("br",{}),"at this time."]}),(0,l.jsxs)("p",{className:"block text-[18px] md:text-[20px] font-normal leading-relaxed break-words",style:{color:"rgb(50, 177, 233)"},children:["Please check back later ",(0,l.jsx)("br",{}),"or contact us for support. ",(0,l.jsx)("br",{}),(0,l.jsx)("a",{href:"tel:800-662-1054",className:"text-[rgb(50,177,233)] hover:text-blue-500 underline",children:"800-662-1054"})," ",(0,l.jsx)("a",{href:"mailto:[email protected]",className:"text-[rgb(50,177,233)] hover:text-blue-500 underline",children:"[email protected]"})]})]})]})})}}]);

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.