PageSourceSearch

https://www.tamiltshirts.in/_next/static/chunks/3018.922392a6bbed47ca.js

js tamiltshirts.in collected 2026-10-02 00:37:48 UTC 7,089 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="84a51df3-f5b1-4cd6-8b7c-8e1f3f04d15e",e._sentryDebugIdIdentifier="sentry-dbid-84a51df3-f5b1-4cd6-8b7c-8e1f3f04d15e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3018],{39347:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(71847).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},71847:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(12115);let s=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...m}=e;return(0,a.createElement)("svg",{ref:t,...n,width:s,height:s,stroke:r,strokeWidth:o?24*Number(i)/Number(s):i,className:l("lucide",d),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(m)&&{"aria-hidden":"true"},...m},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let r=(0,a.forwardRef)((r,n)=>{let{className:o,...d}=r;return(0,a.createElement)(i,{ref:n,iconNode:t,className:l("lucide-".concat(s(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),o),...d})});return r.displayName=s(e),r}},73018:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var a=r(95155),s=r(74551),l=r(65380);r(74062),r(1878);var n=r(52619),i=r.n(n),o=r(12115),d=r(39347),c=r(64796),u=r(17288);let m="".concat((0,u.o5)());function p(e){let{allProducts:t,currentCategoryId:r,currentProductId:n}=e,p=(0,o.useRef)(null),h=(0,o.useRef)(null),[f,g]=(0,o.useState)({});(0,o.useEffect)(()=>{(0,c.JB)(e=>{let t={};e.forEach(e=>{e.product_id&&e.average_rating&&(t[e.product_id]=parseFloat(e.average_rating).toFixed(1))}),g(t)})},[]);let x=(0,o.useMemo)(()=>t.filter(e=>e.category_id===r&&e.id!==n&&1===Number(e.visibility)),[t,r,n]);return 0===x.length?null:(0,a.jsxs)("div",{className:"w-full font-sans text-gray-900 my-8",children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-6 text-left",children:"You May Also Like"}),(0,a.jsxs)("div",{className:"relative group",children:[(0,a.jsx)("button",{type:"button",ref:p,className:"absolute -left-4 top-[30%] -translate-y-1/2 z-20 bg-white border border-gray-200 shadow-md rounded-full w-9 h-9 flex items-center justify-center hover:bg-gray-50 transition-all opacity-0 group-hover:opacity-100","aria-label":"Previous",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"text-gray-800",children:(0,a.jsx)("polyline",{points:"15 18 9 12 15 6"})})}),(0,a.jsx)("button",{type:"button",ref:h,className:"absolute -right-4 top-[30%] -translate-y-1/2 z-20 bg-white border border-gray-200 shadow-md rounded-full w-9 h-9 flex items-center justify-center hover:bg-gray-50 transition-all opacity-0 group-hover:opacity-100","aria-label":"Next",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"text-gray-800",children:(0,a.jsx)("polyline",{points:"9 18 15 12 9 6"})})}),(0,a.jsx)(s.RC,{modules:[l.Vx,l.Ij],spaceBetween:20,loop:x.length>
14,slidesPerView:2,autoplay:{delay:3500,disableOnInteraction:!1},navigation:{prevEl:p.current,nextEl:h.current},onSwiper:e=>{e.params.navigation&&"boolean"!=typeof e.params.navigation&&(e.params.navigation.prevEl=p.current,e.params.navigation.nextEl=h.current,e.navigation.init(),e.navigation.update())},breakpoints:{480:{slidesPerView:2,spaceBetween:16},768:{slidesPerView:3,spaceBetween:20},1024:{slidesPerView:4,spaceBetween:20},1280:{slidesPerView:4,spaceBetween:20}},className:"w-full pb-2",children:x.map(e=>{var t,r,l,n;let o=null!=(t=f[e.id])?t:"0.0",c=Number(o)>0,p=Number(e.mrp)||0,h=Number(e.sp)||0,g=p>h?Math.round((p-h)/p*100):Number(e.discount)||0;return(0,a.jsx)(s.qr,{children:(0,a.jsx)(i(),{href:"/p/".concat(encodeURIComponent(e.seo_url)),className:"block group/card",children:(0,a.jsxs)("div",{className:"border border-gray-200 rounded-2xl overflow-hidden bg-white shadow-none hover:shadow-md transition-all duration-300 flex flex-col h-full",children:[(0,a.jsxs)("div",{className:"relative w-full aspect-[1/1] bg-gray-100 overflow-hidden",children:[(0,a.jsx)("img",{src:"".concat(m).concat(Array.isArray(r=e.imageurl)?(null==(n=r[0])?void 0:n.trim())||
1"/placeholder.svg":(null==r||null==(l=r.split(",")[0])?void 0:l.trim())
1||"/placeholder.svg"),alt:e.name,className:"w-full h-full object-cover group-hover/card:scale-105 transition-transform duration-500",onError:e=>{e.currentTarget.src="/ecomsaas-assets/images/no-image.webp"}}),c&&(0,a.jsxs)("span",{className:"absolute bottom-2.5 left-2.5 text-[#111827] bg-white/90 backdrop-blur-sm text-[11px] font-semibold px-2 py-0.5 rounded-md flex items-center gap-1 z-10 shadow-sm",children:["Best Seller |",(0,a.jsxs)("span",{className:"flex items-center text-amber-500 font-bold",children:[(0,a.jsx)(d.A,{className:"w-3 h-3 fill-amber-400 text-amber-400 mr-0.5 inline"}),o]})]})]}),(0,a.jsxs)("div",{className:"p-4 sm:p-5 flex flex-col gap-1 text-left flex-1 justify-between bg-white",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,a.jsx)("span",{className:"text-[10px] sm:text-[11px] font-semibold text-gray-400 uppercase tracking-wider line-clamp-1",children:e.category_name||"HOODED SWEAT TSHIRTS"}),(0,a.jsx)("h3",{className:"text-sm sm:text-base font-bold text-gray-900 leading-snug line-clamp-1",children:e.name}),e.eng_name&&e.eng_name!==e.name&&(0,a.jsx)("p",{className:"text-xs text-gray-400 line-clamp-1",children:e.eng_name})]}),(0,a.jsxs)("div",{className:"flex items-baseline gap-1.5 mt-2 pt-1",children:[(0,a.jsxs)("span",{className:"text-base sm:text-lg font-extrabold text-gray-900",children:[(0,u.Qn)(),e.sp]}),p>h&&(0,a.jsxs)("span",{className:"text-xs text-gray-400 line-through font-normal",children:[(0,u.Qn)(),e.mrp]}),g>0&&(0,a.jsxs)("span",{className:"text-xs font-bold text-emerald-600 ml-1",children:[g,"% OFF"]})]})]})]})})},e.id)})})]})]})}}}]);

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.