PageSourceSearch

https://www.get-covet.com/_next/static/chunks/1203-a003d6fc24819c87.js?dpl=dpl_BuGXzUD3yZ3gv1o7c2cugyH9k9Ww

js get-covet.com collected 2026-10-02 01:30:41 UTC 33,924 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]="b2c2158a-d014-49c1-82ff-3b5ed4781f3c",e._sentryDebugIdIdentifier="sentry-dbid-b2c2158a-d014-49c1-82ff-3b5ed4781f3c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1203],{5917:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},11124:(e,t,n)=>{n.d(t,{S:()=>i});var r=n(95155),a=n(12115);let o=(0,n(71847).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);function i(e){let{initialValue:t="",onSubmit:n,errorMessage:i,disabled:l,autoFocus:c}=e,[s,d]=(0,a.useState)(t),u=(0,a.useId)(),h="".concat(u,"-error");return(0,a.useEffect)(()=>{d(t)},[t]),(0,r.jsxs)("form",{onSubmit:function(e){e.preventDefault(),l||n(s.trim())},noValidate:!0,children:[(0,r.jsxs)("label",{htmlFor:u,className:"block",children:[(0,r.jsx)("span",{className:"covet-tracker mb-2 block text-covet-textSecondary",children:"Paste a product URL"}),(0,r.jsxs)("div",{className:"flex min-h-[52px] items-center gap-3 border-b border-covet-hairline bg-transparent py-2 transition-colors duration-covet-fade focus-within:border-covet-green",children:[(0,r.jsx)(o,{size:17,strokeWidth:2.25,"aria-hidden":!0,className:"text-covet-textSecondary"}),(0,r.jsx)("input",{id:u,type:"url",inputMode:"url",value:s,onChange:e=>d(e.target.value),placeholder:"https://www.example.com/products/the-thing",autoComplete:"url",spellCheck:!1,maxLength:2048,disabled:l,autoFocus:c,"aria-invalid":!!i,"aria-describedby":i?h:void 0,className:"w-full bg-transparent text-covet-body text-covet-textPrimary outline-none placeholder:text-covet-textTertiary disabled:opacity-60"})]})]}),i?(0,r.jsx)("p",{id:h,role:"alert",className:"mt-2 text-covet-caption text-covet-error",children:i}):null,(0,r.jsx)("div",{className:"mt-3 flex justify-end",children:(0,r.jsx)("button",{type:"submit",disabled:l||!s.trim(),className:"covet-focus-ring inline-flex min-h-[44px] items-center justify-center rounded-covet-chip bg-covet-greenDeep px-4 py-2.5 text-covet-headline font-medium text-white shadow-none transition-colors duration-covet-fade hover:bg-covet-greenDeep/90 disabled:opacity-60",children:"Preview link"})})]})}},13019:(e,t,n)=>{n.d(t,{AP:()=>h,Oj:()=>p,hD:()=>i.hD});var r=n(47471),a=n(80549),o=n(99776),i=n(72651),l=n(64773),c=n(70859),s=n(41688);let d="web-save";async function u(e,t){var n;let{token:r,timeoutMs:a,externalSignal:o,headers:c,clientHeader:s,traceId:d,...u}=t,h=new AbortController,p=setTimeout(()=>h.abort(),a),m=()=>h.abort();o&&(o.aborted?h.abort():o.addEventListener("abort",m));let v=new Headers(c);u.body&&!v.has("Content-Type")&&v.set("Content-Type","application/json"),v.has("Accept")||v.set("Accept","application/json"),r&&v.set("Authorization","Bearer ".concat(r)),s&&v.set("X-Covet-Client",s),d&&v.set("X-Covet-Trace-Id",d);let f=(null!=(n=u.method)?n:"GET").toUpperCase(),x=Date.now();(0,l.bK)(e,f);try{let t=await fetch((0,i.y0)(e),{...u,headers:v,signal:h.signal}),n=await (0,i.HC)(t);return(0,l.Q7)(e,f,x,t.status),n}catch(t){throw(0,l.lE)(e,f,x,t),t}finally{clearTimeout(p),o&&o.removeEventListener("abort",m)}}function h(){let{getToken:e}=(0,r.d)();return(0,a.n)({mutationFn:async t=>{let{url:n,signal:r,traceId:a}=t,o=await (0,c.h)(e);return u("/scrape?url=".concat(encodeURIComponent(n)),{method:"GET",token:o,timeoutMs:12e3,externalSignal:r,clientHeader:d,traceId:a})}})}function p(){let{getToken:e,userId:t}=(0,r.d)(),n=(0,o.jE)();return(0,a.n)({mutationFn:async t=>{let n=await (0,c.h)(e),r=(0,s.f)(t.price);return u("/post/from-url",{method:"POST",token:n,body:JSON.stringify({url:t.url,...t.title?{title:t.title}:{},...t.vendor?{vendor:t.vendor}:{},...null!=r?{price:r}:{},...t.image_url?{image_url:t.image_url}:{},...null!=t.list_id?{list_id:t.list_id}:{},...t.scrape_token?{scrape_token:t.scrape_token}:{}}),timeoutMs:3e4,externalSignal:t.signal,clientHeader:d,traceId:t.traceId})},onSuccess:(e,r)=>{n.invalidateQueries({queryKey:["user",t,"feed"]}),n.invalidateQueries({queryKey:["user",t,"my-lists"]}),n.invalidateQueries({queryKey:["user",t,"list-posts"]}),null!=r.list_id&&n.invalidateQueries({queryKey:["user",t,"list-posts",r.list_id]})}})}}
1,13749:(e,t,n)=>{n.d(t,{yM:()=>f,iy:()=>v,p:()=>g,$7:()=>x,eI:()=>b,eE:()=>y,Rd:()=>w});let r=[/^attention required/i,/^are you (?:a )?human/i,/^verifying you are a human/i,/^checking your browser/i,/^service unavailable/i,/^sign in$/i,/^sign up$/i,/^my account$/i,/^cloudflare$/i,/^loading$/i,/^please wait$/i,/^one moment$/i,/^bot verification$/i,/^human verification$/i],a=["onelink.me","app.link","app.adjust.com","go.link"],o=new Set(["share.google"]),i=new Set(["google.com","www.google.com"]),l=["af_web_dp","af_dp","deep_link_value","link","url","u"],c=new Set(["_kx","_gl","app_clickref","clickref","cse_cid","gad_campaignid","gad_source","fbclid","gbraid","gclid","gclsrc","igshid","irclickid","irgwc","is_retargeting","mc_cid","mc_eid","msclkid","site_refer","twclid","ttclid","wbraid","yclid"]),s=new Set(["en","us","gb","uk","eu","ca","au","jp","fr","de","it","es","nl","kr","cn","en-us","en-gb","en-eu","en-ca","en-au","en-jp","fr-fr","de-de","it-it","es-es","nl-nl"]),d=new Set(["store","shop","shopping","product","products","p","pdp","item","items","mens","men","womens","women","kids","baby","category","categories","c","browse","detail","details"]),u=new Set(["accessories","apparel","bags","beauty","boots","candles","cardigans","casual","clothing","coats","collection","collections","dresses","fragrance","gift","gifts","home","hoodies","jackets","jeans","jewelry","knitwear","loafers","mens","midi","pants","reeds","refills","sandals","scented","shirts","shoes","shorts","skirts","sneakers","sweaters","tops","trousers","womens"]),h=new Set(["www","m","mobile","shop","store"]),p=new Set(["co.uk","com.au","com.br","com.mx","co.jp"]),m=["bergdorfgoodman","farfetch","matchesfashion","modaoperandi","mytheresa","neimanmarcus","net-a-porter","mrporter","saksfifthavenue","ssense"];function v(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"".concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2,12))}function f(e){var t,n;let r=function(e){let t;try{t=new URL(e)}catch(t){return e}if(k(t.hostname))for(let e of l){let n=t.searchParams.get(e);if(!n)continue;let r=function(e){let t=e.trim();if(!t)return null;try{let e=new URL(t);if("http:"!==e.protocol&&"https:"!==e.protocol)return null;return e.toString()}catch(e){return null}}(n);if(r)return j(r)}return j(e)}(e),a=function(e){try{let t=new URL(e);return k(t.hostname)||function(e){var t;let n=e.hostname.toLowerCase().replace(/^www\./,"");return o.has(n)||(t=e,i.has(t.hostname.toLowerCase())&&"/share.google"===t.pathname)}(t)}catch(e){return!1}}(r),c=a?null:function(e){var t;let n;try{n=new URL(e)}catch(e){return null}let r=n.pathname.split("/").map(e=>{try{return decodeURIComponent(e)}catch(t){return e}}).filter(Boolean).map(e=>e.toLowerCase());for(;r.length>0&&s.has(r[0]);)r.shift();let a=0;for(;r.length>0&&d.has(r[0])&&a<4;)r.shift(),a++;for(;r.length>0&&function(e,t){return!!/^\d+$/.test(e)||/^\d+\.(html|aspx|htm)$/i.test(e)||!(!t||e.includes("-")||e.includes("_")||e.includes("."))&&!(e.length<5)&&!(e.length>24)&&!!/[a-z]/i.test(e)&&!!/\d/.test(e)&&C(t).length>=2&&!N(t)}(r[r.length-1],r.at(-2));)r.pop();if(0===r.length)return null;let o=[...r].reverse().find(e=>C(e).length>0&&!N(e));if(!o)return null;let i=C(o);if(0===i.length)return null;let l=r.lastIndexOf(o)>0?(t=r[0],t===o||t.split("-").length>3||N(t)?null:t):null,c=!l&&function(e){let t=e.toLowerCase().replace(/^www\./,"");return m.some(e=>t.includes(e))}(n.hostname)&&i.length>=3?i[0]:null,u=l?[...C(l),...i]:i,h=S(u);return u.length<2||h.length<6?null:{title:h,brand:l?S(C(l)):c?S([c]):null}}(r),u=null!=(t=null==c?void 0:c.brand)?t:a?null:function(e){let t;try{t=new URL(e)}catch(e){return null}let n=t.hostname.toLowerCase().split(".").filter(Boolean);if(0===n.length)return null;let r=n.slice(-2).join("."),a=p.has(r)&&n.length>=3?n[n.length-3]:n.length>=2?n[n.length-2]:n[0];return!a||h.has(a)?null:S(a.split(/[-_]+/).map(e=>e.trim()).filter(Boolean))}(r);return{title:null!=(n=null==c?void 0:c.title)?n:u?"Product from ".concat(u):null,vendor:u,price:null,image_url:null,link:r}}function x(e,t){var n,r,a,o;return{title:(g(t.title)?null==(n=t.title)?void 0:n.trim():null)||e.title,vendor:(null==(r=t.vendor)?void 0:r.trim())||e.vendor,price:(null==(a=t.price)?void 0:a.trim())||e.price,image_url:(null==(o=t.image_url)?void 0:o.trim())||e.image_url,link:t.link||e.link,...t.scrape_token?{scrape_token:t.scrape_token}:{}}}function g(e){return!!(null==e?void 0:e.trim())&&!function(e){if(!e)return!0;let t=e.trim();return!t||r.some(e=>e.test(t))}(e)}function b(e){var t,n,r;
1return g(e.title)||!!(null==(t=e.vendor)?void 0:t.trim())||!!(null==(n=e.price)?void 0:n.trim())||!!(null==(r=e.image_url)?void 0:r.trim())}function y(e){var t,n,r;return{titlePresent:g(e.title),vendorPresent:!!(null==(t=e.vendor)?void 0:t.trim()),pricePresent:!!(null==(n=e.price)?void 0:n.trim()),imagePresent:!!(null==(r=e.image_url)?void 0:r.trim())}}function w(e){try{return new URL(e).hostname.toLowerCase().replace(/^www\./,"")}catch(e){return null}}function j(e){let t;try{t=new URL(e)}catch(t){return e}let n=!1;for(let e of[...t.searchParams.keys()]){var r;(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.trim().toLowerCase();return"pid"===n?!/^\d{8,}$/.test(t):n.startsWith("utm_")||c.has(n)})(e,null!=(r=t.searchParams.get(e))?r:"")&&(t.searchParams.delete(e),n=!0)}return n?t.toString():e}function k(e){let t=e.toLowerCase().replace(/^www\./,"");return a.some(e=>t===e||t.endsWith(".".concat(e)))}function N(e){let t=C(e);return t.length>0&&t.every(e=>u.has(e))}function C(e){return e.replace(/\.(html|aspx|htm)$/i,"").replace(/-item-\d+$/i,"").replace(/-prod\d+$/i,"").replace(/-c\d+p\d+$/i,"").replace(/-\d{6,}$/i,"").split(/[-_./]+/).map(e=>e.trim()).filter(e=>e.length>0&&!/^\d+$/.test(e))}function S(e){return e.map(e=>0===e.length?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")}}
1,18514:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},24901:(e,t,n)=>{n.d(t,{C:()=>o});var r=n(95155),a=n(93499);function o(e){let{host:t,encodedUrl:n,onManualFallback:o,onStartOver:i}=e;return(0,r.jsxs)("section",{"aria-labelledby":"broken-host-heading",className:"rounded-covet-card border border-covet-hairline bg-white p-6 shadow-none",children:[(0,r.jsx)("p",{className:"covet-tracker mb-1 text-covet-textSecondary",children:"Retailer handoff"}),(0,r.jsxs)("h2",{id:"broken-host-heading",className:"font-sans text-covet-title2 text-covet-textPrimary",children:["Open ",(0,r.jsx)("span",{className:"font-medium",children:t})," in the iOS app"]}),(0,r.jsx)("p",{className:"mt-2 text-covet-body text-covet-textSecondary",children:"This retailer blocks our web preview. Enter the details by hand here, or open the link in the iOS app if it is installed."}),(0,r.jsxs)("div",{className:"mt-4 flex flex-wrap gap-3",children:[(0,r.jsx)("button",{type:"button",onClick:o,className:"covet-focus-ring inline-flex min-h-[44px] items-center rounded-covet-chip bg-covet-greenDeep px-4 py-2.5 text-covet-headline font-medium text-white shadow-none transition-colors duration-covet-fade hover:bg-covet-greenDeep/90",children:"Covet by hand"}),(0,r.jsxs)("a",{href:"https://www.get-covet.com/save?url=".concat(n,"&from=broken_host"),target:"_blank",rel:"noopener",className:"covet-focus-ring inline-flex min-h-[44px] items-center gap-1.5 rounded-covet-chip border border-covet-hairline px-4 py-2 text-covet-headline text-covet-textPrimary transition-colors duration-covet-fade hover:bg-covet-surfaceMuted",children:["Open in Covet",(0,r.jsx)(a.A,{size:14,"aria-hidden":!0})]}),(0,r.jsx)("button",{type:"button",onClick:i,className:"covet-focus-ring inline-flex min-h-[44px] items-center rounded-covet-chip px-4 py-2 text-covet-headline text-covet-textSecondary transition-colors duration-covet-fade hover:bg-covet-surfaceMuted",children:"Try a different link"})]})]})}},27070:(e,t,n)=>{function r(e){if(!e||"string"!=typeof e||0===e.length||e.length>4096)return null;if(/^https?:\/\//i.test(e))try{let t=new URL(e);if(!new Set([window.location?window.location.origin:null,function(e){if(!e)return null;try{return new URL(e).origin}catch(e){return null}}("https://www.get-covet.com"),"https://www.get-covet.com"].filter(e=>!!e)).has(t.origin))return null;return"".concat(t.pathname).concat(t.search).concat(t.hash)}catch(e){return null}return!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\")?
1null:e}function a(e,t){if("save"!==e||!t||t.length>4096)return null;try{let e=new URL(t);if("http:"!==e.protocol&&"https:"!==e.protocol)return null;return"/save?url=".concat(encodeURIComponent(e.href))}catch(e){return null}}function o(e){var t,n,o;return null!=(o=a(e.intent,e.url))?o:r(null!=(n=null!=(t=e.redirect)?t:e.redirectUrl)?n:e.next)}function i(e){let t=r(e);return t&&"/onboarding"!==t?"/onboarding?redirect=".concat(encodeURIComponent(t)):"/onboarding"}function l(e,t){var n;return null!=(n=r(e))?n:t&&null==t.onboarding_completed_at?"/onboarding":"/feed"}n.d(t,{_T:()=>o,aG:()=>l,eX:()=>i,mG:()=>a})},27472:(e,t,n)=>{function r(e){let t,n=e.trim();if(!n)return null;let r=!/^[a-z][a-z\d+\-.]*:/i.test(n)&&n.includes(".")?"https://".concat(n):n;try{t=new URL(r)}catch(e){return null}return"http:"!==t.protocol&&"https:"!==t.protocol||!t.hostname||t.username||t.password?null:t}n.d(t,{X:()=>r,Z:()=>o});let a=/\bhttps?:\/\/[^\s<>"']+/i;function o(e){if(!e)return null;let t=a.exec(e);return t&&t[0].replace(/[)\].,;!?]+$/g,"")||null}},33810:(e,t,n)=>{n.d(t,{N:()=>p});var r=n(95155),a=n(15239),o=n(12115),i=n(65229),l=n(35299),c=n(5917),s=n(18514),d=n(68531),u=n(25016),h=n(8635);function p(e){var t,n,h,p;let{preview:v,isCommitting:f,errorMessage:x,previewState:g="ready",statusMessage:b,onCommit:y,onSwitchToManualFallback:w,onCancel:j}=e,k=(0,d.V$)(),[N,C]=(0,o.useState)(null!=(t=v.title)?t:""),[S,_]=(0,o.useState)(null!=(n=v.vendor)?n:""),[L,T]=(0,o.useState)(null!=(h=v.price)?h:""),[A,D]=(0,o.useState)(!1),[M,P]=(0,o.useState)(!1),[E,U]=(0,o.useState)(!1),[I,$]=(0,o.useState)(null),R=(0,o.useMemo)(()=>(0,u.GZ)(v.image_url),[v.image_url]);return(0,o.useEffect)(()=>{var e;if(null!=I)return;let t=k.data;if(!t||0===t.length)return;let n=t.find(e=>e.is_default);$(null!=(e=null==n?void 0:n.id)?e:t[0].id)},[k.data,I]),(0,o.useEffect)(()=>{A||null==v.title||C(v.title)},[v.title,A]),(0,o.useEffect)(()=>{M||null==v.vendor||_(v.vendor)},[v.vendor,M]),(0,o.useEffect)(()=>{E||null==v.price||T(v.price)},[v.price,E]),(0,r.jsxs)("section",{"aria-labelledby":"preview-heading",className:"rounded-covet-card border border-covet-hairline bg-white p-5 shadow-none",children:[(0,r.jsxs)("header",{className:"flex items-start justify-between gap-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"covet-tracker mb-1 text-covet-textSecondary",children:"Preview"}),(0,r.jsx)("h2",{id:"preview-heading",className:"font-sans text-covet-title2 text-covet-textPrimary",children:"Confirm the details"}),(0,r.jsx)("p",{className:"mt-1 text-covet-caption text-covet-textSecondary",children:"Edit anything that looks off, pick a list, then covet it."})]}),(0,r.jsx)("button",{type:"button",onClick:j,"aria-label":"Cancel",className:"covet-focus-ring inline-flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-covet-chip text-covet-textSecondary hover:bg-covet-surfaceMuted",children:(0,r.jsx)(i.A,{size:16,"aria-hidden":!0})})]}),b?(0,r.jsxs)("div",{role:"checking"===g?"status":void 0,"aria-live":"polite",className:"mt-4 flex items-center gap-2 rounded-covet-chip border border-covet-hairline bg-covet-surface px-3 py-2 text-covet-caption text-covet-textSecondary",children:["checking"===g?(0,r.jsx)(l.A,{size:14,className:"animate-spin text-covet-greenDeep","aria-hidden":!0}):"ready"===g?(0,r.jsx)(c.A,{size:14,className:"text-covet-greenDeep","aria-hidden":!0}):(0,r.jsx)(s.A,{size:14,className:"text-covet-textTertiary","aria-hidden":!0}),(0,r.jsx)("span",{children:b})]}):null,(0,r.jsxs)("div",{className:"mt-5 grid gap-4 sm:grid-cols-[132px,1fr]",children:[(0,r.jsx)("div",{className:"aspect-[4/5] w-full max-w-[132px] overflow-hidden rounded-covet-card border border-covet-green bg-covet-surfaceMuted",children:R?(0,r.jsx)(a.default,{src:R,alt:"",width:240,height:240,sizes:"132px",unoptimized:!0,className:"h-full w-full object-cover"}):(0,r.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center gap-2 text-covet-caption text-covet-textTertiary",children:["checking"===g?(0,r.jsx)(l.A,{size:16,className:"animate-spin text-covet-greenDeep","aria-hidden":!0}):null,(0,r.jsx)("span",{children:"checking"===g?"Checking image":"No image"})]})}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("label",{className:"block",children:[(0,r.jsx)("span",{className:"mb-1 block text-covet-caption text-covet-textSecondary",children:"Title"}),(0,r.jsx)("input",{type:"text",value:N,onChange:e=>{D(!0),C(e.target.value)},maxLength:500,className:"covet-focus-ring w-full rounded-covet-chip border border-covet-hairline bg-covet-surface px-3 py-2 font-product text-covet-body text-covet-textPrimary"})]}),(0,r.jsxs)("label",{className:"block",children:[(0,r.jsx)("span",{className:"mb-1 block text-covet-caption text-covet-textSecondary",children:"Brand"}),(0,r.jsx)("input",{type:"text",value:S,onChange:e=>{P(!0),_(e.target.value)},maxLength:200,className:"covet-focus-ring w-full rounded-covet-chip border border-covet-hairline bg-covet-surface px-3 py-2 font-brand text-covet-body text-covet-textPrimary"})]}),(0,r.jsxs)("label",{className:"block",children:[(0,r.jsx)("span",{className:"mb-1 block text-covet-caption text-covet-textSecondary",children:"Price (USD, optional)"}),(0,r.jsx)("input",{type:"text",inputMode:"decimal",value:L,onChange:e=>{U(!0),T(e.target.value)},maxLength:32,placeholder:"$0.00",className:"covet-focus-ring w-full rounded-covet-chip border border-covet-hairline bg-covet-surface px-3 py-2 text-covet-body text-covet-textPrimary"}),(0,r.jsx)("span",{className:"mt-1 block text-covet-caption text-covet-textTertiary",children:"Leave blank if you're not sure. Non-USD prices are skipped."})]})]})]}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("h3",{className:"covet-tracker mb-2 text-covet-textSecondary",children:"Add to list"}),(0,r.jsx)(m,{lists:null!=(p=k.data)?p:null,isLoading:k.isLoading,selectedListId:I,onSelect:$})]}),x?(0,r.jsx)("p",{role:"alert",className:"mt-3 text-covet-caption text-covet-error",children:x}):null,(0,r.jsxs)("footer",{className:"mt-5 flex flex-wrap items-center justify-between gap-2",children:[(0,r.jsxs)("button",{type:"button",onClick:w,className:"covet-focus-ring inline-flex min-h-[44px] items-center gap-1.5 rounded-covet-chip px-3 py-2 text-covet-headline text-covet-textSecondary transition-colors duration-covet-fade hover:bg-covet-surfaceMuted",children:[(0,r.jsx)(s.A,{size:14,"aria-hidden":!0}),"Edit by hand"]}),(0,r.jsx)("button",{type:"button",disabled:f||!N.trim(),onClick:function(){f||y({title:N.trim(),vendor:S.trim()?S.trim():null,price:L,imageUrl:R,listId:I})},className:"covet-focus-ring inline-flex min-h-[44px] items-center justify-center rounded-covet-chip bg-covet-greenDeep px-4 py-2.5 text-covet-headline font-medium text-white shadow-none transition-colors duration-covet-fade hover:bg-covet-greenDeep/90 disabled:opacity-60",children:f?"Coveting...":"Covet it"})]})]})}function m(e){let{lists:t,isLoading:n,selectedListId:a,onSelect:o}=e;return n?(0,r.jsx)("div",{className:"space-y-2","aria-busy":"true",children:Array.from({length:2}).map((e,t)=>(0,r.jsx)("div",{className:"h-12 animate-pulse rounded-covet-chip bg-covet-surfaceMuted","aria-hidden":!0},t))}):t&&0!==t.length?(0,r.jsx)("ul",{role:"radiogroup","aria-label":"Add to list",className:"space-y-1",children:t.map(e=>{var t;let n=a===e.id;return(0,r.jsx)("li",{children:(0,r.jsxs)("button",{type:"button",role:"radio","aria-checked":n,onClick:()=>o(e.id),className:"covet-focus-ring flex w-full items-center justify-between gap-3 rounded-covet-chip border border-covet-hairline bg-covet-surface px-3 py-2 text-left transition-colors duration-covet-fade hover:bg-covet-surfaceMuted",children:[(0,r.jsxs)("span",{className:"min-w-0",children:[(0,r.jsxs)("span",{className:"block truncate text-covet-headline font-medium text-covet-textPrimary",children:[e.name,e.is_default?(0,r.jsx)("span",{className:"ml-2 align-middle text-covet-caption text-covet-textTertiary",children:"default"}):null]}),(0,r.jsxs)("span",{className:"block text-covet-caption text-covet-textSecondary",children:[null!=(t=e.item_count)?t:0," items / ",(0,h.Fw)(e)]})]}
1),(0,r.jsx)("span",{"aria-hidden":!0,className:"flex h-6 w-6 items-center justify-center rounded-full border "+(n?"border-covet-greenDeep bg-covet-greenDeep text-white":"border-covet-hairline"),children:n?(0,r.jsx)(c.A,{size:14}):null})]})},e.id)})}):(0,r.jsx)("p",{className:"text-covet-caption text-covet-textSecondary",children:"Your Coveted list will be created automatically."})}},35299:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},41688:(e,t,n)=>{n.d(t,{f:()=>r});function r(e){if(null==e)return;if("number"==typeof e){if(!Number.isFinite(e)||e<0||e>1e9)return;return e}let t=e.trim();if(!t)return;let n=t.replace(/USD/gi,"").replace(/[$,\s]/g,"");if(!n||!/^[0-9]+(?:\.[0-9]+)?$/.test(n))return;let r=parseFloat(n);if(Number.isFinite(r)&&!(r<0)&&!(r>1e9))return r}},45481:(e,t,n)=>{n.d(t,{TC:()=>i});var r=n(12115);let a=[{atMs:0,text:"Looking up the link…"},{atMs:2e3,text:"Reading the page…"},{atMs:5e3,text:"Almost there…"},{atMs:1e4,text:"This one is taking longer than usual…"}];function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if(!t.length)return"";let n=t[0].text;for(let r of t)if(e>=r.atMs)n=r.text;else break;return n}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,[n,i]=(0,r.useState)(()=>null==e?"":o(0,t));return(0,r.useEffect)(()=>{if(null==e)return void i("");i(o(Math.max(0,Date.now()-e),t));let n=window.setInterval(()=>{let n=o(Math.max(0,Date.now()-e),t);i(e=>e===n?e:n)},500);return()=>window.clearInterval(n)},[e,t]),n}},56938:(e,t,n)=>{n.d(t,{P:()=>i});var r=n(95155),a=n(12115),o=n(68531);function i(e){var t;let{url:n,initialTitle:i,initialVendor:c,initialPrice:s,initialImageUrl:d,isCommitting:u,errorMessage:h,onSubmit:p,onCancel:m}=e,v=(0,o.V$)(),[f,x]=(0,a.useState)(null!=i?i:""),[g,b]=(0,a.useState)(null!=c?c:""),[y,w]=(0,a.useState)(null!=s?s:""),[j,k]=(0,a.useState)(null!=d?d:""),[N,C]=(0,a.useState)(null),S=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{var e;if(null!=N)return;let t=v.data;if(!t||0===t.length)return;let n=t.find(e=>e.is_default);C(null!=(e=null==n?void 0:n.id)?e:t[0].id)},[v.data,N]),(0,a.useEffect)(()=>{u||(S.current=!1)},[u]),(0,r.jsxs)("section",{"aria-labelledby":"manual-fallback-heading",className:"rounded-covet-card border border-covet-hairline bg-white p-5 shadow-none",children:[(0,r.jsx)("p",{className:"covet-tracker mb-1 text-covet-textSecondary",children:"Manual Covet"}),(0,r.jsx)("h2",{id:"manual-fallback-heading",className:"font-sans text-covet-title2 text-covet-textPrimary",children:"Covet by hand"}),(0,r.jsx)("p",{className:"mt-1 text-covet-caption text-covet-textSecondary",children:"We couldn't pull this page automatically. Fill the bits you remember and covet it - you can edit later."}),(0,r.jsx)("p",{className:"mt-2 break-all text-covet-caption text-covet-textTertiary",title:n,children:n}),(0,r.jsxs)("form",{onSubmit:function(e){if(e.preventDefault(),u||S.current)return;let t=f.trim();t&&(S.current=!0,p({title:t,vendor:g.trim()?g.trim():null,price:y,imageUrl:j.trim()?j.trim():null,listId:N}))},className:"mt-4 space-y-3",noValidate:!0,children:[(0,r.jsxs)("label",{className:"block",children:[(0,r.jsxs)("span",{className:"mb-1 block text-covet-caption text-covet-textSecondary",children:["Title ",(0,r.jsx)("span",{className:"text-covet-error",children:"*"})]}),(0,r.jsx)("input",{type:"text",required:!0,value:f,onChange:e=>x(e.target.value),maxLength:500,className:"covet-focus-ring w-full rounded-covet-chip border border-covet-hairline bg-covet-surface px-3 py-2 font-product text-covet-body text-covet-textPrimary",placeholder:"Black silk slip dress"})]}),(0,r.jsxs)("label",{className:"block",children:[(0,r.jsx)("span",{className:"mb-1 block text-covet-caption text-covet-textSecondary",children:"Brand"}),(0,r.jsx)("input",{type:"text",value:g,onChange:e=>b(e.target.value),maxLength:200,className:"covet-focus-ring w-full rounded-covet-chip border border-covet-hairline bg-covet-surface px-3 py-2 font-brand text-covet-body text-covet-textPrimary",placeholder:"Optional"})]}),(0,r.jsxs)("label",{className:"block",children:[(0,r.jsx)("span",{className:"mb-1 block text-covet-caption text-covet-textSecondary",children:"Price (USD)"}),(0,r.jsx)("input",{type:"text",inputMode:"decimal",value:y,onChange:e=>w(e.target.value),maxLength:32,placeholder:"Optional",className:"covet-focus-ring w-full rounded-covet-chip border border-covet-hairline bg-covet-surface px-3 py-2 text-covet-body text-covet-textPrimary"})]}),(0,r.jsxs)("label",{className:"block",children:[(0,r.jsx)("span",{className:"mb-1 block text-covet-caption text-covet-textSecondary",children:"Image URL"}),(0,r.jsx)("input",{type:"url",value:j,onChange:e=>k(e.target.value),maxLength:2048,placeholder:"Optional",inputMode:"url",spellCheck:!1,className:"covet-focus-ring w-full rounded-covet-chip border border-covet-hairline bg-covet-surface px-3 py-2 text-covet-body text-covet-textPrimary"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"covet-tracker mb-2 text-covet-textSecondary",children:"Add to list"}),(0,r.jsx)(l,{lists:null!=(t=v.data)?t:null,isLoading:v.isLoading,selectedListId:N,onSelect:C})]}),h?(0,r.jsx)("p",{role:"alert",className:"text-covet-caption text-covet-error",children:h}):null,(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2 pt-2",children:[(0,r.jsx)("button",{type:"button",onClick:m,className:"covet-focus-ring inline-flex min-h-[44px] items-center rounded-covet-chip px-3 py-2 text-covet-headline text-covet-textSecondary transition-colors duration-covet-fade hover:bg-covet-surfaceMuted",children:"Cancel"}),(0,r.jsx)("button",{type:"submit",disabled:u||!f.trim(),className:"covet-focus-ring inline-flex min-h-[44px] items-center justify-center rounded-covet-chip bg-covet-greenDeep px-4 py-2.5 text-covet-headline font-medium text-white shadow-none transition-colors duration-covet-fade hover:bg-covet-greenDeep/90 disabled:opacity-60",children:u?"Coveting...":"Covet it"})]})]})]})}function l(e){let{lists:t,isLoading:n,selectedListId:a,onSelect:o}=e;return n?(0,r.jsx)("div",{className:"h-10 animate-pulse rounded-covet-chip bg-covet-surfaceMuted","aria-busy":"true"}):t&&0!==t.length?(0,r.jsx)("select",{"aria-label":"Add to list",value:null!=a?a:"",onCh
1ange:e=>{let t=Number.parseInt(e.target.value,10);Number.isFinite(t)&&o(t)},className:"covet-focus-ring w-full rounded-covet-chip border border-covet-hairline bg-covet-surface px-3 py-2 text-covet-body text-covet-textPrimary",children:t.map(e=>(0,r.jsxs)("option",{value:e.id,children:[e.name,e.is_default?" (default)":"",e.is_public?"":" / Private"]},e.id))}):(0,r.jsx)("p",{className:"text-covet-caption text-covet-textSecondary",children:"Your Coveted list will be created automatically."})}},61362:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},65229:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},82065:(e,t,n)=>{n.d(t,{_:()=>a,y:()=>r});let r=["net-a-porter.com","mrporter.com","farfetch.com","bergdorfgoodman.com","neimanmarcus.com","saksfifthavenue.com","24s.com","loropiana.com","brunellocucinelli.com","bottegaveneta.com","selfridges.com","harrods.com","holtrenfrew.com"];function a(e){let t;if(!e)return!1;if("string"==typeof e)try{t=new URL(e).hostname.toLowerCase()}catch(e){return!1}else t=e.hostname.toLowerCase();return!!t&&r.some(e=>t===e||t.endsWith(".".concat(e)))}},93499:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},95761:(e,t,n)=>{n.d(t,{H1:()=>c,OP:()=>l,uB:()=>i});var r=n(72651);let a="Looks like you're offline. Reconnect and try again.",o="Something went wrong. Try again in a moment.";function i(e,t){if(e instanceof r.hD){if(401===e.status)return"Sign in to continue.";if(403===e.status){if("like"===t)return"You can't like this post.";if("coveted"===t)return"You can't update this post's coveted state.";if("recovet"===t)return"You can't recovet this post.";if("delete"===t)return"You can't delete this post.";if("report"===t)return"Reports for this post aren't accepted right now."}if(404===e.status)return"This post is no longer available.";if(429===e.status)return"report"===t?"Too many reports - wait a minute and try again.":"Too many requests - wait a minute and try again.";if(e.status>=500)return o}return e instanceof Error&&"AbortError"===e.name?"":e instanceof TypeError?a:"like"===t?"Could not update like.":"coveted"===t?"Could not update coveted.":"recovet"===t?"Could not recovet.":"delete"===t?"Could not delete post.":"Could not submit report."}function l(e,t,n){var i,l,c,s,d;let u="string"==typeof n?{fallback:n}:null!=n?n:{};if(e instanceof r.hD){let n=null==(i=u.byStatus)?void 0:i[e.status];if(n)return n;if(e.status>=500)return null!=(l=u.serverError)?l:o;if(401===e.status)return"Sign in to ".concat(t,".");if(403===e.status)return"You can't ".concat(t,".");if(404===e.status)return"No longer available.";if(429===e.status)return"Too many requests - wait a minute and try again.";if(u.trustServerCopy){let t=function(e){let t=e.body;if(null===t||"object"!=typeof t)return null;let n=t.message;if("string"!=typeof n)return null;let r=n.trim();return r.length>0?r:null}(e);if(t)return t}}return e instanceof Error&&"AbortError"===e.name?null!=(c=u.aborted)?c:"":e instanceof TypeError?null!=(s=u.offline)?s:a:null!=(d=u.fallback)?d:"Could not ".concat(t,".")}function c(e,t){let n="preview"===t?"Could not read that link. Try again or covet by hand.":"Could not covet it. Try again or check your connection.";return l(e,"preview"===t?"read that link":"covet it",{byStatus:{401:"Sign in to covet links.",403:"commit"===t?"That list isn't available - pick another.":void 0,404:n,429:"preview"===t?"Too many previews - wait a minute and try again.":"Too many covets - wait a minute and try again."},serverError:"preview"===t?"We couldn't read that page. Try again or covet by hand.":"Could not covet it. Try again in a moment.",aborted:"That took too long. Try again or covet by hand.",fallback:n,trustServerCopy:!0}
1)}},96822:(e,t,n)=>{n.d(t,{d:()=>l});var r=n(95155),a=n(52619),o=n.n(a),i=n(61362);function l(e){let{postId:t,listId:n,listName:a,alreadyCoveted:l,onSaveAnother:c}=e;return(0,r.jsxs)("section",{"aria-labelledby":"saved-heading",className:"rounded-covet-card border border-covet-hairline bg-white p-6 shadow-none",children:[(0,r.jsx)(i.A,{size:32,className:"text-covet-greenText","aria-hidden":!0}),(0,r.jsx)("p",{className:"covet-tracker mt-3 text-covet-textSecondary",children:"Complete"}),(0,r.jsx)("h2",{id:"saved-heading",className:"mt-3 font-sans text-covet-title2 text-covet-textPrimary",children:l?"Already in your Covet list":"Coveted"}),(0,r.jsx)("p",{className:"mt-1 text-covet-body text-covet-textSecondary",children:a?l?"This was already in ".concat(a,"."):"Added to ".concat(a,"."):l?"This was already in your default list.":"Added to your default list."}),(0,r.jsxs)("div",{className:"mt-5 flex flex-wrap gap-2",children:[null!=t?(0,r.jsx)(o(),{href:"/p/".concat(t),prefetch:!1,className:"covet-focus-ring inline-flex min-h-[44px] items-center rounded-covet-chip bg-covet-greenDeep px-4 py-2.5 text-covet-headline font-medium text-white shadow-none transition-colors duration-covet-fade hover:bg-covet-greenDeep/90",children:"View item"}):null,null!=n?(0,r.jsx)(o(),{href:"/me/lists/".concat(n),prefetch:!1,className:"covet-focus-ring inline-flex min-h-[44px] items-center rounded-covet-chip border border-covet-hairline px-4 py-2 text-covet-headline text-covet-textPrimary transition-colors duration-covet-fade hover:bg-covet-surfaceMuted",children:"View list"}):null==t?(0,r.jsx)(o(),{href:"/me/lists",prefetch:!1,className:"covet-focus-ring inline-flex min-h-[44px] items-center rounded-covet-chip bg-covet-greenDeep px-4 py-2.5 text-covet-headline font-medium text-white shadow-none transition-colors duration-covet-fade hover:bg-covet-greenDeep/90",children:"View lists"}):null,(0,r.jsx)("button",{type:"button",onClick:c,className:"covet-focus-ring inline-flex min-h-[44px] items-center rounded-covet-chip border border-covet-hairline px-4 py-2 text-covet-headline text-covet-textPrimary transition-colors duration-covet-fade hover:bg-covet-surfaceMuted",children:"Covet another"})]})]})}}}]);

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.