PageSourceSearch

https://merchforall.com/_next/static/chunks/52.12283faea88d4de8.js

js merchforall.com collected 2026-09-24 13:39:58 UTC 10,195 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:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="545ec210-ec5a-40b7-97a1-fe7737c7b050",e._sentryDebugIdIdentifier="sentry-dbid-545ec210-ec5a-40b7-97a1-fe7737c7b050")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[52],{20052:function(e,r,s){s.r(r),s.d(r,{default:function(){return b}});var a=s(57437),t=s(42449),l=s(76865),n=s(21047),o=s(99397),i=s(51817),c=s(30401),d=s(65329),m=s(31503),x=s(13519),p=s(6831),u=s(32411),h=s(91563);function b(e){var r,s,b,g;let{config:j,isEditing:y}=e,v=(0,m.i)(),w="stacked"===j.layout;if(!v)return(0,a.jsxs)("div",{className:"py-8 max-w-7xl mx-auto px-4 sm:px-6",children:[(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsx)(h.Z,{items:[{label:"Home",href:"/"},{label:"Products",href:"/products"},{label:"Example Product"}]})}),(0,a.jsxs)("div",{className:w?"max-w-2xl mx-auto space-y-8":"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{className:"aspect-square bg-gray-50 rounded-xl flex items-center justify-center border border-gray-200",children:(0,a.jsx)(f,{})}),"thumbnails"===j.galleryStyle&&(0,a.jsx)("div",{className:"flex gap-2",children:[0,1,2].map(e=>(0,a.jsx)("div",{className:"w-16 h-16 rounded-lg border-2 bg-gray-50 flex items-center justify-center ".concat(0===e?"border-[var(--store-primary,#3b82f6)]":"border-gray-200"),children:(0,a.jsx)(f,{size:28})},e))})]}),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-3xl font-bold",children:"Example Product"}),(0,a.jsx)("p",{className:"text-2xl mt-2 font-medium",children:"$29.99"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-sm font-medium mb-2 block",children:"Size"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:["S","M","L","XL"].map((e,r)=>(0,a.jsx)("span",{className:"px-4 py-2 rounded-lg text-sm font-medium border ".concat(1===r?"border-[var(--store-primary,#3b82f6)] bg-[var(--store-primary,#3b82f6)] text-white":"border-gray-200"),children:e},e))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-sm font-medium mb-2 block",children:"Color: Black"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:["#1a1a1a","#ffffff","#3b82f6","#ef4444"].map((e,r)=>(0,a.jsx)("span",{className:"w-9 h-9 rounded-full border-2 ".concat(0===r?"ring-2 ring-[var(--store-primary,#3b82f6)] ring-offset-2 border-transparent":"#ffffff"===e?"border-gray-300":"border-transparent"),style:{backgroundColor:e}},e))})]}),(0,a.jsxs)("button",{className:"w-full py-4 px-6 rounded-xl font-semibold text-lg bg-[var(--store-primary,#3b82f6)] text-white flex items-center justify-center gap-3 cursor-default",children:[(0,a.jsx)(t.Z,{className:"w-5 h-5"}),"Add to Cart"]}),j.showShippingInfo&&(0,a.jsx)("p",{className:"text-sm opacity-60 text-center",children:j.shippingInfoText||"Free shipping on orders over $50. Ships in 3-7 business days."})]})]})]});let{product:N,sizes:k,colors:C,selectedVariant:L,selectedSize:Z,selectedColor:S,setSelectedSize:z,setSelectedColor:I,isVariantAvailable:T,quantity:_,setQuantity:P,images:E,selectedImageIndex:M,setSelectedImageIndex:A,hasImages:D,addToCart:F,isAddingToCart:G,isAdded:R}=v;return(0,a.jsxs)("div",{className:"py-8 max-w-7xl mx-auto px-4 sm:px-6",children:[(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsx)(h.Z,{items:[{label:"Home",href:"/"},{label:"Products",href:"/products"},{label:N.name}]})}),(0,a.jsxs)("div",{className:w?"max-w-2xl mx-auto space-y-8":"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{className:"aspect-square relative bg-[var(--store-secondary)] rounded-xl overflow-hidden",children:E.length>0?(0,a.jsx)(d.Z,{src:E[M],alt:"".concat(N.name," - Image ").concat(M+1),fill:!0,className:"object-cover",priority:!0,sizes:"(max-width: 1024px) 100vw, 50vw"}):(0,a.jsxs)("div",{className:"w-full h-full flex flex-col items-center justify-center gap-3 px-6 text-center",children:[(0,a.jsx)(l.Z,{className:"w-12 h-12 text-yellow-500/60"}),(0,a.jsx)("p",{className:"text-[var(--store-text)]/60 text-sm",children:"This product is currently unavailable. Please check back later."})]})}),E.length>1&&"thumbnails"===j.galleryStyle&&(0,a.jsx)("div",{className:"flex gap-2 overflow-x-auto pb-2",children:E.map((e,r)=>(0,a.jsx)("button",{onClick:()=>A(r),className:"relative w-16 h-16 rounded-lg overflow-hidden flex-shrink-0 border-2 transition-colors ".concat(r===M?"border-[var(--store-primary)]":"border-transparent"),children:(0,a.jsx)(d.Z,{src:e,alt:"",fill:!0,className:"object-cover",sizes:"64px"})},r))}),E.length>1&&"dots"===j.galleryStyle&&(0,a.jsx)("div",{className:"flex justify-center gap-2",children:E.map((e,r)=>(0,a.jsx)("button",{onClick:()=>A(r),className:"w-2.5 h-2.5 rounded-full transition-colors ".concat(r===M?"bg-[var(--store-primary)]":"bg-gray-300")},r))})]}),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-3xl font-bold",children:N.name}),(0,a.jsx)("p",{className:"text-2xl mt-2 font-medium",children:L?(0,x.T4)(L.retailPrice):"".concat((0,x.T4)(N.priceRange.min)).concat(N.priceRange.min!==N.priceRange.max?" – ".concat((0,x.T4)(N.priceRange.max)):"")})]}),k.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:null!==(b=null===(r=N.optionLabels)||void 0===r?void 0:r.size)&&void 0!==b?b:"Size"}),j.showSizeGuide&&N.sizeGuide&&(0,a.jsx)(u.Z,{sizeGuide:N.sizeGuide})]}),k.length>
112?(0,a.jsx)("select",{value:null!=Z?Z:"",onChange:e=>z(e.target.value),disabled:!D,className:"w-full px-4 py-2.5 rounded-lg border border-current/20 bg-[var(--store-background)] text-sm font-medium text-[var(--store-text)] focus:outline-none focus:border-[var(--store-primary)] disabled:opacity-50",children:k.map(e=>(0,a.jsx)("option",{value:e,disabled:!T(e,S),children:e},e))}):(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:k.map(e=>{let r=T(e,S);return(0,a.jsx)("button",{onClick:()=>r&&D&&z(e),disabled:!r||!D,className:"px-4 py-2 rounded-lg text-sm font-medium border transition-colors\n                        ".concat(D?Z===e?"border-[var(--store-primary)] bg-[var(--store-primary)] text-white":r?"border-current/20 hover:border-[var(--store-primary)]":"border-current/10 opacity-30 cursor-not-allowed line-through":"border-current/10 opacity-30 cursor-not-allowed"),children:e},e)})})]}),C.length>0&&N.optionLabels&&"Color"!==N.optionLabels.color?(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:"text-sm font-medium mb-2 block",children:[N.optionLabels.color,S?": ".concat(S):""]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:C.map(e=>{let r=T(Z,e.name);return(0,a.jsx)("button",{onClick:()=>r&&D&&I(e.name),disabled:!r||!D,className:"px-4 py-2 rounded-lg text-sm font-medium border transition-colors\n                        ".concat(D?S===e.name?"border-[var(--store-primary)] bg-[var(--store-primary)] text-white":r?"border-current/20 hover:border-[var(--store-primary)]":"border-current/10 opacity-30 cursor-not-allowed line-through":"border-current/10 opacity-30 cursor-not-allowed"),children:e.name},e.name)})})]}):C.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:"text-sm font-medium mb-2 block",children:[null!==(g=null===(s=N.optionLabels)||void 0===s?void 0:s.color)&&void 0!==g?g:"Color",S?": ".concat(S):""]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:C.map(e=>{let r=T(Z,e.name),s=e.code||(0,p.AX)(null,e.name)||"#888",t=(0,p.eO)(s);return(0,a.jsx)("button",{onClick:()=>r&&D&&I(e.name),disabled:!r||!D,title:e.name,className:"w-9 h-9 rounded-full border-2 transition-all\n                        ".concat(D?S===e.name?"border-[var(--store-primary)] ring-2 ring-[var(--store-primary)] ring-offset-2":t?"border-gray-300":"border-transparent":"opacity-30 cursor-not-allowed border-transparent","\n                        ").concat(D?r?"":"opacity-30 cursor-not-allowed":""),style:{backgroundColor:s}},e.name)})})]}),j.showQuantity&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-sm font-medium mb-2 block",children:"Quantity"}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("button",{onClick:()=>P(Math.max(1,_-1)),className:"w-10 h-10 rounded-lg border border-current/20 flex items-center justify-center hover:bg-current/5",children:(0,a.jsx)(n.Z,{className:"w-4 h-4"})}),(0,a.jsx)("span",{className:"w-10 text-center font-medium",children:_}),(0,a.jsx)("button",{onClick:()=>P(Math.min(10,_+1)),className:"w-10 h-10 rounded-lg border border-current/20 flex items-center justify-center hover:bg-current/5",children:(0,a.jsx)(o.Z,{className:"w-4 h-4"})})]})]}),(0,a.jsx)("button",{onClick:F,disabled:!L||G||!D,className:"w-full py-4 px-6 rounded-xl font-semibold text-lg bg-[var(--store-primary)] text-white hover:opacity-90 transition-opacity disabled:opacity-50 flex items-center justify-center gap-3",children:D?G?(0,a.jsx)(i.Z,{className:"w-5 h-5 animate-spin"}):R?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{className:"w-5 h-5"}),"Added to Cart"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.Z,{className:"w-5 h-5"}),"Add to Cart"]}):"Unavailable"}),j.showShippingInfo&&(0,a.jsx)("p",{className:"text-sm opacity-60 text-center",children:j.shippingInfoText||"Free shipping on orders over $50. Ships in 3-7 business days."})]})]})]})}function f(e){let{size:r=120}=e;return(0,a.jsxs)("svg",{width:r,height:r,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M38 28L26 36L16 56L28 60L32 48V96H88V48L92 
160L104 56L94 36L82 28C82 28 76 38 60 38C44 38 38 28 38 28Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"2",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M44 38C44 38 50 44 60 44C70 44 76 38 76 38",stroke:"#d1d5db",strokeWidth:"2",strokeLinecap:"round"})]})}}}]);

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.