PageSourceSearch

https://studiodidit.vercel.app/_next/static/chunks/0y4k4fv39~gtm.js

js studiodidit.vercel.app collected 2026-10-03 07:49:14 UTC 16,783 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="6cffad98-7370-8902-0a2f-fa5f666c2da8")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,778497,e=>{"use strict";var t=e.i(662537),r=e.i(183330);function a(e,t){return t?`[${e}] rid=${t}`:`[${e}]`}function s(e,s,i,n,l){let o=a(i,s),c="debug"===e?console.debug:"info"===e?console.log:"warn"===e?console.warn:console.error;if("debug"===e)return;c(o,n,l??"");let d={tag:i};s&&(d.rid=s),r.addBreadcrumb({category:"app",message:n,level:e,data:{...d,...l}}),"warn"===e&&t.captureMessage(n,{level:"warning",tags:d,extra:l})}function i(e,s,i,n,l){var o;let c=a(i,s),{err:d,meta:m}=(o=l?.err??n)instanceof Error?{err:o}:"object"==typeof o&&null!==o&&"message"in o?{err:Error(o.message),meta:{...o.code&&{code:String(o.code)},...o.details&&{details:String(o.details)},...o.hint&&{hint:String(o.hint)}}}:{err:Error(String(o))},u={...l,...m};delete u.err,console.error(c,n,u);let h={tag:i};s&&(h.rid=s),r.addBreadcrumb({category:"app",message:d.message,level:e,data:{...h,...u}}),t.captureException(d,{level:e,tags:h,extra:u})}e.s(["LOG",0,{TAG:{AUTH:"auth",SIGNUP:"signup",LOGIN:"login",STRIPE_WEBHOOK:"stripe_webhook",STRIPE_CHECKOUT:"stripe_checkout",DESIGN:"design",QUIZ:"quiz",BOOKLET:"booklet",INVITATION:"invitation",MIDDLEWARE:"middleware",PAYMENT:"payment",IMAGE:"image",SHOP:"shop",CHAT:"chat",STUDIOGRAM:"studiogram",AUTH_EMAIL:"auth_email",REALTOR_API:"REALTOR_API"},debug(e,t,r,a){s("debug",e,t,r,a)},info(e,t,r,a){s("info",e,t,r,a)},warn(e,t,r,a){s("warn",e,t,r,a)},error(e,t,r,a){i("error",e,t,r,a)},fatal(e,t,r,a){i("fatal",e,t,r,a)},setUser(e){t.setUser(e)},async flush(e=2e3){await t.flush(e)}}])},879277,e=>{"use strict";var t=e.i(843476),r=e.i(462483),a=e.i(271645),s=e.i(618566),i=e.i(522016),n=e.i(809934),l=e.i(3295),o=e.i(88653),c=e.i(846932);let d=[{word:"Paint",color:"var(--accent)"},{word:"Furniture",color:"var(--secondary)"},{word:"Flooring",color:"var(--accent-pink)"},{word:"Details",color:"var(--text-primary)"}];function m(){let[e,r]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=window.setInterval(()=>{r(e=>(e+1)%d.length)},2200);return()=>window.clearInterval(e)},[]),(0,t.jsx)("section",{className:"relative overflow-hidden",style:{background:"var(--bg-secondary)"},children:(0,t.jsxs)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10 pt-[calc(var(--safe-navbar-offset)+3rem)] pb-14 md:pt-[calc(var(--safe-navbar-offset)+6rem)] md:pb-24",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-5",children:[(0,t.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.4em] uppercase",style:{color:"var(--accent)"},children:"Designer's Picks"}),(0,t.jsxs)(i.default,{href:"/shop/saved",className:"inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full text-[0.8rem] font-semibold transition-all duration-200 bg-[var(--bg-primary)] text-[var(--accent)] hover:bg-[var(--accent)] hover:text-white hover:scale-[1.03] hover:shadow-sm",style:{border:"1.5px solid var(--accent)"},children:[(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}),"Saved"]})]}),(0,t.jsxs)("h1",{className:"font-normal leading-[1.05]",style:{fontFamily:"var(--font-serif)",fontSize:"clamp(2.4rem, 6vw, 4.6rem)",letterSpacing:"-0.01em",color:"var(--text-primary)"},children:["Curated",(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"inline-flex items-baseline",children:(0,t.jsx)(o.AnimatePresence,{mode:"wait",children:(0,t.jsx)(c.motion.span,{initial:{opacity:0,y:18},animate:{opacity:1,y:0},exit:{opacity:0,y:-18},transition:{duration:.5,ease:[.22,1,.36,1]},style:{color:d[e].color},children:(0,t.jsx)("em",{children:d[e].word})},d[e].word)})}),(0,t.jsx)("br",{}),"for your concept."]})]})})}let u=[220,280,180,320,240,300,200,260,280,220,240,180];function h(){return(0,t.jsx)("div",{style:{background:"var(--bg-primary)"},children:(0,t.jsxs)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10 py-10 md:py-14 space-y-14 md:space-y-20",children:[(0,t.jsx)(p,{cards:5,variant:"portrait"}),(0,t.jsx)(p,{cards:5,variant:"portrait"}),(0,t.jsx)(g,{})]})})}function p({cards:e,variant:r}){return(0,t.jsxs)("section",{children:[(0,t.jsxs)("div",{className:"mb-6 space-y-3",children:[(0,t.jsx)(f,{width:"110px",height:"10px"}),(0,t.jsx)(f,{width:"min(320px, 70%)",height:"34px"})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 ga
2p-3 md:gap-4",children:Array.from({length:e}).map((e,a)=>(0,t.jsx)(x,{variant:r},a))})]})}function g(){return(0,t.jsxs)("section",{children:[(0,t.jsxs)("div",{className:"flex items-end justify-between flex-wrap gap-4 mb-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(f,{width:"90px",height:"10px"}),(0,t.jsx)(f,{width:"min(380px, 70vw)",height:"34px"})]}),(0,t.jsx)(f,{width:"160px",height:"36px",rounded:"full"})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 md:gap-4",children:u.map((e,r)=>(0,t.jsx)("div",{className:"rounded-xl animate-pulse",style:{background:"var(--bg-elevated)",height:`${e}px`},"aria-hidden":!0},r))})]})}function x({variant:e}){return(0,t.jsx)("div",{className:`${"portrait"===e?"aspect-[4/5]":"aspect-square"} rounded-xl animate-pulse`,style:{background:"var(--bg-elevated)"},"aria-hidden":!0})}function f({width:e,height:r,rounded:a="sm"}){return(0,t.jsx)("div",{className:`animate-pulse ${"full"===a?"rounded-full":"rounded-md"}`,style:{width:e,height:r,background:"var(--bg-elevated)"},"aria-hidden":!0})}var v=e.i(201695),y=e.i(94464),j=e.i(946221),w=e.i(656976),b=e.i(387912),k=e.i(286084),N=e.i(782527),S=e.i(2439),P=e.i(375679),C=e.i(778497);let I={default:4,1280:4,1024:3,640:2};function L({conceptId:e,userId:r,taxonomies:i}){let o=(0,s.useRouter)(),c=(0,s.useSearchParams)(),d=Math.max(1,Number(c.get("page"))||1),[u,p]=(0,a.useState)({kind:"idle"}),[g,x]=(0,a.useState)(null),[f,A]=(0,a.useState)("newest"),[E,_]=(0,a.useState)(!1),[O,M]=(0,a.useState)(!1),R=(0,a.useRef)(null),B=(0,a.useRef)(!0),H=(0,a.useRef)(!1);(0,a.useEffect)(()=>{H.current||(H.current=!0,P.trackEvent.designerPicksViewed({entry_point:c.get("from")||"direct"}))},[]);let D=(0,a.useMemo)(()=>(0,l.buildTaxonomyTree)(i),[i]),G=(0,a.useCallback)(e=>{let t=e.split("/").filter(Boolean).map(encodeURIComponent).join("/");M(!1),o.push(`/shop/category/${t}`)},[o]);(0,a.useEffect)(()=>{let t=!1;return async function(){p({kind:"loading"});try{let a=await (0,l.fetchDesignersPickHome)({conceptId:e,userId:r,limit:24,offset:0,sort:f});if(t)return;p({kind:"loaded",home:a}),P.trackEvent.custom("shop_viewed",{concept_id:String(e),sort:f,wall_count:a.walls.length,flooring_count:a.floorings.length,korean_living_count:a.korean_living.length,product_count:a.products.length})}catch(r){if(t)return;C.LOG.error(null,C.LOG.TAG.SHOP,"Designer's Pick home fetch failed",{err:r,concept_id:e,sort:f}),p({kind:"error",message:r instanceof Error?r.message:"Failed to load Designer's Picks."})}}(),()=>{t=!0}},[e,r,f]),(0,a.useEffect)(()=>{if("loaded"!==u.kind||1===d)return;let t=!1;return async function(){_(!0);try{let{products:a}=await (0,l.fetchMoreProducts)({conceptId:e,userId:r,limit:24,offset:(d-1)*24,sort:f});if(t)return;x(a)}catch(e){if(t)return;C.LOG.error(null,C.LOG.TAG.SHOP,"Shop page fetch failed",{err:e,page:d})}finally{t||_(!1)}}(),()=>{t=!0}},[e,r,f,d,u.kind]);let U="loaded"===u.kind?1===d?u.home.products:g??u.home.products:[],$="loaded"===u.kind?u.home.pagination.total_count:0;(0,a.useEffect)(()=>{if(B.current){B.current=!1;return}d>1&&E||R.current?.scrollIntoView({behavior:"smooth",block:"start"})},[d,E]);let F=Math.max(1,Math.ceil($/24)),z=(0,a.useCallback)(e=>{let t=new URLSearchParams(c.toString());e<=1?t.delete("page"):t.set("page",String(e));let r=t.toString();return r?`/shop?${r}`:"/shop"},[c]),K=(0,a.useCallback)(e=>{A(e),d>1&&o.replace("/shop")},[d,o]);if("error"===u.kind)return(0,t.jsx)("main",{className:"min-h-screen flex items-center justify-center px-6",style:{background:"var(--bg-primary)",paddingTop:"calc(var(--safe-navbar-offset) + 3rem)",paddingBottom:"4rem"},children:(0,t.jsxs)("div",{className:"max-w-md text-center",children:[(0,t.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.4em] uppercase mb-3",style:{color:"var(--accent)"},children:"Something went wrong"}),(0,t.jsx)("p",{className:"text-sm text-[var(--text-secondary)] mb-6",children:u.message}),(0,t.jsx)("button",{type:"button",onClick:()=>A(e=>e),className:"inline-flex items-center gap-2 px-6 py-3 rounded-full text-[0.82rem] font-medium text-white",style:{background:"var(--accent)",boxShadow:"var(--accent-shadow)"},children:"Retry"})]})});let W="loaded"===u.kind?u.home:null,V=("idle"===u.kind||"loading"===u.kind)&&!W;return(0,t.jsxs)("main",{style:{background:"var(--bg-primary)"},children:[(0,t.jsx)(m,{}),V?(0,t.jsx)(h,{}):(0,t.jsxs)("div",{className:"max-w-[1240px] mx-auto px-6 md:px-10 py-10 md:py-14 space-y-14 md:space-y-20",children:[(0,t.jsx)(T,{eyebrow:"Wall Picks",title:"Curated for your walls.",empty:W?.walls.length===0,viewAllHref:W&&W.walls.length>5?"/shop/walls":null,viewAllCount:W?.walls.length??0,children:W&&W.walls.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 ga
2p-3 md:gap-4",children:W.walls.slice(0,5).map(e=>(0,t.jsx)(v.default,{wall:e,userId:r},`${e.surface_type}-${e.id}`))})}),(0,t.jsx)(T,{eyebrow:"Flooring Picks",title:"Curated for your floors.",empty:W?.floorings.length===0,viewAllHref:W&&W.floorings.length>5?"/shop/flooring":null,viewAllCount:W?.floorings.length??0,children:W&&W.floorings.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3 md:gap-4",children:W.floorings.slice(0,5).map(e=>(0,t.jsx)(y.default,{flooring:e,userId:r},e.id))})}),W&&W.korean_living.length>0&&(0,t.jsx)(T,{eyebrow:"Korean Living",title:"Curated furniture, décor, crafts, and objects from Korea.",viewAllHref:W.korean_living.length>5?"/shop/korean-living":null,viewAllCount:W.korean_living.length,children:(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3 md:gap-4",children:W.korean_living.slice(0,5).map(e=>(0,t.jsx)(j.default,{product:e,userId:r},e.id))})}),(0,t.jsxs)("section",{ref:R,className:"scroll-mt-40 md:scroll-mt-48",children:[(0,t.jsxs)("div",{className:"flex items-end justify-between flex-wrap gap-4 mb-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.4em] uppercase mb-2",style:{color:"var(--accent)"},children:"The Pieces"}),(0,t.jsx)("h2",{className:"font-normal leading-[1.1]",style:{fontFamily:"var(--font-serif)",fontSize:"clamp(1.7rem, 3vw, 2.4rem)"},children:"Hand-picked for your concept."})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4 flex-wrap",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>M(!0),className:"inline-flex items-center gap-1.5 text-[0.78rem] font-medium transition-colors hover:text-[var(--accent)]",style:{color:"var(--text-secondary)"},children:[(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),(0,t.jsx)("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),(0,t.jsx)("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"}),(0,t.jsx)("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1"})]}),"Browse by category"]}),(0,t.jsx)(N.default,{value:f,onChange:K})]})]}),E?(0,t.jsx)("p",{className:"py-10 text-[0.7rem] tracking-[0.3em] uppercase text-center",style:{color:"var(--text-muted)"},children:"Loading"}):U.length>0?(0,t.jsx)(n.default,{breakpointCols:I,className:"flex w-auto -ml-3 md:-ml-4",columnClassName:"pl-3 md:pl-4 bg-clip-padding",children:U.map(e=>(0,t.jsx)(j.default,{product:e,userId:r},e.id))}):(0,t.jsx)("p",{className:"py-10 text-sm",style:{color:"var(--text-muted)"},children:"No products yet for this concept."}),(0,t.jsx)(S.default,{currentPage:d,totalPages:F,hrefForPage:z,scroll:!1})]})]}),(0,t.jsx)(w.default,{threshold:700,onBrowse:()=>M(!0)}),(0,t.jsx)(b.default,{isOpen:O,onClose:()=>M(!1),categories:D,onSelectCategory:G}),(0,t.jsx)(k.default,{isOpen:O,onClose:()=>M(!1),categories:D,onSelectCategory:G})]})}function T({eyebrow:e,title:r,children:a,empty:s,viewAllHref:n,viewAllCount:l}){return(0,t.jsxs)("section",{children:[(0,t.jsxs)("div",{className:"flex items-end justify-between gap-4 mb-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.4em] uppercase mb-2",style:{color:"var(--accent)"},children:e}),(0,t.jsx)("h2",{className:"font-normal leading-[1.1]",style:{fontFamily:"var(--font-serif)",fontSize:"clamp(1.7rem, 3vw, 2.4rem)"},children:r})]}),n&&(0,t.jsxs)(i.default,{href:n,className:"inline-flex items-center gap-1.5 text-[0.78rem] font-medium transition-colors hover:text-[var(--accent)]",style:{color:"var(--text-secondary)"},children:["View all",l?` (${l})`:"",(0,t.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,t.jsx)("polyline",{points:"9 18 15 12 9 6"})})]})]}),s?(0,t.jsx)("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Nothing curated here for your concept yet."}):a]})}let A={member:{eyebrow:"Just a step away",headline:"Unlock the Designer's Picks.",body:"Paint, flooring, and pieces we have curated against your concept. Everything here is signed off by designers who know your exact aesthetic.",ctaLabel:"Join us for $9.99",ctaHref:"/credits",footnote:"One-time purchase. Token top-ups alone do not unlock the picks."},anon:{eyebrow:"Designer's Picks",headline:"Designer's Picks. Matched to your home.",body:"Paint, flooring, and furniture hand-picked to match your Space Identity. No catalog scrolling, just the pieces that actually fit your home.",ctaLabel:"Find your Space Identity",ctaHref:"/quiz",footnote:"Takes 2 minutes. Free."}};function E({audience:e="member"}={}){let r=A[e];return(0,t.jsx)("main",{className:"min-h-screen flex items-center justify-center px-6",style:{background:"var(--bg-primary)",paddingTop:"calc(var(--safe-navbar-offset) + 3rem)",paddingBottom:"4rem"},children:(0,t.jsxs)("div",{className:"text-center max-w-[520px]",children:[(0,t.jsx)("div",{className:"mx-auto mb-6 flex h-12 w-12 items-center justify-center rounded-full",style:{background:"var(--secondary-light)",color:"var(--secondary)"},children:(0,t.jsx)(_,{})}),(0,t.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.4em] uppercase mb-4",style:{color:"var(--accent)"},children:r.eyebrow}),(0,t.jsx)("h1",{className:"font-normal leading-[1.1] mb-5",style:{fontFamily:"var(--font-serif)",fontSize:"clamp(2.2rem, 5vw, 3.6rem)",letterSpacing:"-0.01em",color:"var(--text-primary)"},children:function(e){let r="Designer's Picks";if(!e.includes(r))return e;let a=e.split(r);return a.flatMap((e,s)=>s<a.length-1?[e,(0,t.jsx)("em",{children:r},`b${s}`)]:[e])}(r.headline)}),(0,t.jsx)("p",{className:"text-[0.95rem] leading-[1.75] mb-8",style:{color:"var(--text-secondary)"},children:r.body}),(0,t.jsxs)(i.default,{href:r.ctaHref,className:"inline-flex items-center gap-2 px-8 py-3.5 rounded-full text-[0.82rem] font-medium text-white",style:{background:"var(--accent)",boxShadow:"var(--accent-shadow)"},children:[r.ctaLabel,(0,t.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,
2children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12h15m0 0l-6.75-6.75M19.5 12l-6.75 6.75"})})]}),(0,t.jsx)("p",{className:"mt-4 text-[0.75rem]",style:{color:"var(--text-muted)"},children:r.footnote})]})})}function _(){return(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"4",y:"11",width:"16",height:"10",rx:"2"}),(0,t.jsx)("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]})}e.s(["default",0,function({conceptId:e,userId:a,initialHasPremium:s,taxonomies:i}){let{data:n}=(0,r.useCredits)();return n?.has_premium??s?(0,t.jsx)(L,{conceptId:e,userId:a,taxonomies:i}):(0,t.jsx)(E,{})}],879277)}]);
3
4//# debugId=6cffad98-7370-8902-0a2f-fa5f666c2da8

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.