PageSourceSearch

https://wellwoven.com/_next/static/immutable/chunks/3oavv2f6be930.js

js wellwoven.com collected 2026-10-03 22:52:37 UTC 13,167 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,968744,e=>{"use strict";var t=e.i(271645),i=e.i(125722);e.s(["default",0,function(){return(0,t.useEffect)(()=>{function e(e){let t=e.target;if(!(t instanceof Element))return;let s=t.closest("[data-home-cta]");if(!(s instanceof HTMLElement))return;let a=s.dataset.homeCta||"unknown",r=s instanceof HTMLAnchorElement?s:s.closest("a"),n=r?.getAttribute("href")??"",l=s.dataset.homeCtaLabel??(s.textContent??"").trim().slice(0,80);(0,i.trackHomeCta)({section:a,label:l,href:n})}return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})},[]),null}])},218894,e=>{"use strict";var t=e.i(843476),i=e.i(522016),s=e.i(271645),a=e.i(972520),r=e.i(664659),n=e.i(274515),l=e.i(125722),o=e.i(806908);e.s(["default",0,function({experiences:e,customDesignNames:c,verifiedPreorders:d}){let m=(0,s.useId)(),[u,h]=(0,s.useState)(e[0]?.id??"premade-rugs"),x=e.find(e=>e.id===u)??e[0];if(!x)return null;let p=x.items.slice(0,6),b=e=>{e!==x.id&&h(e)};return(0,t.jsx)("section",{"aria-labelledby":"homepage-experience-heading",className:"border-y border-zinc-200 bg-bg-subtle py-10 sm:py-14",children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6",children:[(0,t.jsx)("div",{className:"mb-7 max-w-2xl sm:mb-9",children:(0,t.jsx)("h2",{id:"homepage-experience-heading",className:"type-display text-zinc-950",children:"Find the rug that fits."})}),(0,t.jsxs)("div",{className:"sm:hidden",children:[(0,t.jsx)("label",{htmlFor:m,className:"sr-only",children:"Choose a rug type"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("select",{id:m,value:x.id,onChange:e=>{let t=e.target.value;b(t),(0,l.trackHomeCta)({section:"experience-selector",label:t,href:""})},className:"min-h-12 w-full appearance-none rounded-sm border border-zinc-950 bg-zinc-950 px-4 pr-12 type-body font-semibold text-white outline-none transition-colors focus-visible:ring-2 focus-visible:ring-zinc-950 focus-visible:ring-offset-2 focus-visible:ring-offset-bg-subtle motion-reduce:transition-none",children:e.map(e=>(0,t.jsx)("option",{value:e.id,children:e.title},e.id))}),(0,t.jsx)(r.ChevronDown,{className:"pointer-events-none absolute right-4 top-1/2 h-5 w-5 -translate-y-1/2 text-white","aria-hidden":"true"})]})]}),(0,t.jsx)("div",{className:"hidden grid-cols-4 overflow-hidden rounded-sm border border-zinc-300 bg-white sm:grid",role:"group","aria-label":"Choose a rug type",children:e.map((e,i)=>{let s=e.id===x.id;return(0,t.jsx)("button",{type:"button","aria-pressed":s,"data-home-cta":"experience-selector","data-home-cta-label":e.id,onClick:()=>b(e.id),className:(0,o.cn)("min-h-14 px-4 py-3 text-left type-body font-semibold transition-colors focus-visible:relative focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-zinc-950 motion-reduce:transition-none",i>0&&"border-l border-zinc-300",s?"bg-zinc-950 text-white":"bg-white text-zinc-600 hover:bg-zinc-100 hover:text-zinc-950"),children:e.title},e.id)})}),(0,t.jsxs)("div",{className:"pt-6 sm:pt-8",children:[(0,t.jsxs)("div",{className:"mb-7 flex flex-col items-start gap-5 sm:mb-8 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsx)("p",{className:"max-w-2xl type-body text-zinc-700","aria-live":"polite",children:x.copy}),(0,t.jsxs)(i.default,{href:x.href,"data-home-cta":"experience-cta","data-home-cta-label":x.id,className:"inline-flex min-h-11 shrink-0 items-center justify-center gap-2 rounded-sm bg-zinc-950 px-5 type-body font-semibold text-white transition-colors hover:bg-zinc-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-950 focus-visible:ring-offset-2 focus-visible:ring-offset-bg-subtle motion-reduce:transition-none",children:[x.ctaLabel,(0,t.jsx)(a.ArrowRight,{className:"h-4 w-4","aria-hidden":"true"})]})]}),p.length>0?(0,t.jsx)("ul",{"aria-label":`${x.title} products`,className:"-mx-4 flex snap-x snap-mandatory gap-4 overflow-x-auto px-4 pb-3 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden sm:mx-0 sm:grid sm:grid-cols-3 sm:gap-5 sm:overflow-visible sm:px-0 sm:pb-0 xl:gr
1id-cols-6",children:p.map(e=>(0,t.jsx)("li",{className:"w-[68vw] min-w-[232px] max-w-[280px] shrink-0 snap-start sm:w-auto sm:min-w-0 sm:max-w-none",children:(0,t.jsx)(n.default,{product:e.product,initialVariantId:e.initialVariantId,priority:!1,customDesignNames:c,verifiedPreorders:d})},e.key))}):(0,t.jsx)("div",{className:"flex min-h-[300px] items-center justify-center border-y border-zinc-300 px-6 text-center",children:(0,t.jsx)("p",{className:"max-w-sm type-body text-zinc-600",children:"This experience is ready for merchandising once its source collection has eligible products."})})]})]})})}])},670069,e=>{"use strict";var t=e.i(843476),i=e.i(657688),s=e.i(522016),a=e.i(271645),r=e.i(373375),n=e.i(463059),l=e.i(233423),o=e.i(402445),c=e.i(870427),d=e.i(513602),m=e.i(566016),u=e.i(171645),h=e.i(248495),x=e.i(151008),p=e.i(552769),b=e.i(744677),f=e.i(492941);e.s(["default",0,function({title:e,products:g,transitionNames:v,hideTitle:y=!1}){var j;let w,N=(0,a.useRef)(null),z=(0,a.useId)(),k=(0,a.useId)(),C=e||"Product carousel",A=v??(j=[g],w=new Set,j.map(e=>e.map(e=>0===e.images.length||w.has(e.handle)?null:(w.add(e.handle),`product-image-${e.handle}`))))[0],E=(0,a.useCallback)(e=>{let t=N.current;if(!t)return;let i=t.querySelector("[data-carousel-card]")?.clientWidth||200,s=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;t.scrollBy({left:"left"===e?-(2*i):2*i,behavior:s?"auto":"smooth"})},[]);return 0===g.length?null:(0,t.jsxs)("section",{className:"mb-8","data-analytics-section":`carousel:${C}`,"aria-labelledby":e&&!y?z:void 0,"aria-label":e&&!y?void 0:C,children:[e&&!y&&(0,t.jsx)("h2",{id:z,className:"type-display text-[var(--color-fg)] mb-4",children:e}),(0,t.jsxs)("div",{className:"relative group/carousel",children:[(0,t.jsx)("button",{type:"button",onClick:()=>E("left"),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 bg-white/90 backdrop-blur-sm rounded-full p-2 shadow-md sm:opacity-0 group-hover/carousel:opacity-100 focus-visible:opacity-100 transition-opacity motion-reduce:transition-none flex items-center justify-center min-w-[44px] min-h-[44px]","aria-label":`Scroll ${C} left`,"aria-controls":k,children:(0,t.jsx)(r.ChevronLeft,{className:"w-4 h-4","aria-hidden":"true"})}),(0,t.jsx)("button",{type:"button",onClick:()=>E("right"),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 bg-white/90 backdrop-blur-sm rounded-full p-2 shadow-md sm:opacity-0 group-hover/carousel:opacity-100 focus-visible:opacity-100 transition-opacity motion-reduce:transition-none flex items-center justify-center min-w-[44px] min-h-[44px]","aria-label":`Scroll ${C} right`,"aria-controls":k,children:(0,t.jsx)(n.ChevronRight,{className:"w-4 h-4","aria-hidden":"true"})}),(0,t.jsx)("div",{id:k,ref:N,"data-analytics-carousel":C,className:"flex gap-3 overflow-x-auto scrollbar-none snap-x snap-mandatory pb-2",children:g.map((e,a)=>{let[r]=(0,o.sortImagesByType)(e.images),n=(0,d.getProductRating)(e),g=e.priceRange.minVariantPrice,v=(0,f.isRunnerOrderingUnavailable)((0,f.resolveRunnerOrdering)(e),(0,b.hasExactInchInventoryReservation)()),y=(0,m.resolvePrimaryProductBadge)({tags:e.tags,createdAt:e.createdAt,launchAt:e.launchAt?.value,newUntil:e.newUntil?.value,newColorLaunchAt:e.newColorLaunchAt?.value,newColorExpiresAt:e.newColorExpiresAt?.value,temporarilyUnavailable:v,suppressedKeys:["sale"]}),j=(0,p.buildSafeProductName)(e),w=A[a]??void 0;return(0,t.jsxs)(s.default,{href:`/products/${e.handle}`,"data-carousel-card":!0,className:"shrink-0 w-[160px] sm:w-[180px] snap-start rounded-lg overflow-hidden bg-white border-2 border-zinc-100 transition-all text-left hover:border-zinc-300 hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-900 focus-visible:ring-offset-2 motion-reduce:transition-none",children:[(0,t.jsxs)("div",{className:"relative aspect-[4/5] bg-zinc-50",children:[r&&(0,t.jsx)(h.default,{name:w,children:(0,t.jsx)(i.default,{src:(0,l.shopifySrc)(r.url,400),alt:(0,p.buildSafeProductImageAlt)(r.altText,j),fill:!0,sizes:"180px",className:"object-contain p-1.5",style:w?{viewTransitionName:w}:void 0,loading:"lazy",decoding:"async"})}),y&&(0,t.jsx)("div",{className:"absolute top-2 left-2",children:(0,t.jsx)(u.Merch
1Badge,{label:y.label,styleKey:y.key,size:"sm"})})]}),(0,t.jsxs)("div",{className:"p-2.5",children:[(0,t.jsx)("p",{className:"type-meta font-medium text-zinc-900 line-clamp-2",children:j.split("–")[0].split("—")[0].trim()}),n&&(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)(x.default,{rating:n.average,size:"sm",count:n.count})}),(0,t.jsx)("p",{className:"mt-1 type-body font-semibold text-zinc-900",children:v?f.RUNNER_PRICING_UNAVAILABLE_LABEL:(0,c.formatPrice)(g)})]})]},e.handle)})})]})]})}],670069)},256426,e=>{"use strict";var t=e.i(843476),i=e.i(98919),s=e.i(522016),a=e.i(68014),r=e.i(498956),n=e.i(271645);function l({tip:e,href:i,className:a,children:r}){let o=(0,n.useId)(),[c,d]=(0,n.useState)(!1),m=c&&(0,t.jsxs)("span",{id:o,role:"tooltip",className:"absolute left-1/2 -translate-x-1/2 bottom-full mb-2 z-50 w-64 max-w-[calc(100vw-1.5rem)] rounded-lg bg-zinc-900 text-white text-[11px] leading-snug px-3 py-2.5 shadow-lg pointer-events-none text-center",children:[e,(0,t.jsx)("span",{className:"absolute left-1/2 -translate-x-1/2 top-full w-0 h-0 border-x-[5px] border-x-transparent border-t-[5px] border-t-zinc-900"})]});return i?(0,t.jsxs)("span",{className:`relative inline-flex min-h-6 items-center ${a??""}`,children:[(0,t.jsx)(s.default,{href:i,className:"inline-flex items-center underline underline-offset-2 decoration-zinc-300 hover:text-zinc-700 hover:decoration-zinc-500","aria-describedby":c?o:void 0,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onFocus:()=>d(!0),onBlur:()=>d(!1),onKeyDown:e=>{"Escape"===e.key&&d(!1)},children:r}),m]}):(0,t.jsxs)("span",{className:`relative inline-flex min-h-6 items-center cursor-default ${a??""}`,tabIndex:0,role:"button","aria-expanded":c,"aria-describedby":c?o:void 0,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onFocus:()=>d(!0),onBlur:()=>d(!1),onClick:()=>d(!0),onKeyDown:e=>{"Enter"===e.key||" "===e.key?(e.preventDefault(),d(!0)):"Escape"===e.key&&d(!1)},children:[r,m]})}e.s(["default",0,function({variant:e="compact",productCat:n,limit:o,className:c="",leadElement:d}){let m=function(e="standard"){return r.TRUST.badges[e]??r.TRUST.badges.standard}(n),u=void 0===o?m:m.slice(0,Math.max(0,o));if("accordion"===e)return(0,t.jsx)("div",{className:`grid grid-cols-2 gap-4 ${c}`,children:u.map(e=>(0,t.jsxs)("div",{className:"flex gap-3 items-start",children:[(0,t.jsx)("span",{className:"shrink-0 mt-0.5 w-8 h-8 rounded-full bg-[var(--color-accent-light)] flex items-center justify-center",children:(0,a.isBrandIconKey)(e.icon)?(0,t.jsx)(a.default,{name:e.icon,className:"w-4 h-4 text-[var(--color-accent)]"}):(0,t.jsx)(i.Shield,{className:"w-4 h-4 text-[var(--color-accent)]"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-sm font-medium text-[var(--color-fg)]",children:e.label}),(0,t.jsx)("p",{className:"text-xs text-[var(--color-fg-muted)] leading-snug mt-0.5",children:e.tip})]})]},e.key))});if("compact"===e){let e=3===u.length&&!d;return(0,t.jsxs)("div",{className:`${e?"grid grid-cols-3 items-start gap-2":"flex flex-wrap items-center justify-center gap-x-4 gap-y-1"} py-2 text-xs text-zinc-500 ${c}`,children:[d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"flex items-center",children:d}),(0,t.jsx)("span",{"aria-hidden":"true",className:"hidden sm:inline-block w-px h-3 bg-zinc-200"})]}),u.map(s=>(0,t.jsx)(l,{tip:s.tip,href:s.href,className:e?"w-full justify-center text-center":void 0,children:(0,t.jsxs)("span",{className:"flex min-w-0 items-center justify-center gap-1 leading-tight",children:[(0,a.isBrandIconKey)(s.icon)?(0,t.jsx)(a.default,{name:s.icon,className:"w-3.5 h-3.5"}):(0,t.jsx)(i.Shield,{className:"w-3.5 h-3.5"})," ",s.label]})},s.key))]})}let h=u.length>=4?"lg:grid-cols-4":"lg:grid-cols-3";return(0,t.jsx)("div",{className:c,children:(0,t.jsx)("ul",{className:`grid border-y border-border ${h}`,children:u.map(e=>(0,t.jsxs)("li",{className:"border-b border-border-subtle py-6 last:border-b-0 lg:border-b-0 lg:border-l lg:px-8 lg:first:border-l-0 lg:first:pl-0 lg:last:pr-0",children:[(0,t.jsx)("p",{className:"font-display text-md leading-snug text-fg",children:e.href?(0,t.jsx)(s.default,{href:e.href,className:"underline decoration-border underline-offset-4 transition-colors hover:decoration-fg motion-reduce:transition-none",children:e.label}):e.label}),(0,t.jsx)("p",{className:"mt-2 max-w-[38ch] text-sm leading-6 text-fg-muted",children:e.tip})]},e.key))})})}])},98919,e=>{"use strict";let t=(0,e.i(475254).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
1y:"oel41y"}]]);e.s(["Shield",0,t],98919)}]);

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.