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]="1c9ac859-09db-4b58-bd12-184f407e2712",e._sentryDebugIdIdentifier="sentry-dbid-1c9ac859-09db-4b58-bd12-184f407e2712")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1073,2396,6615],{3001:(e,t,r)=>{r.d(t,{OS:()=>s,Qn:()=>l,yR:()=>a});let a=[{value:"USD",label:"$ USD",symbol:"$"},{value:"EUR",label:"⬠EUR",symbol:"â¬"},{value:"GBP",label:"\xa3 GBP",symbol:"\xa3"},{value:"TRY",label:"⺠TRY",symbol:"âº"},{value:"JPY",label:"\xa5 JPY",symbol:"\xa5"},{value:"KRW",label:"â© KRW",symbol:"â©"},{value:"BRL",label:"R$ BRL",symbol:"R$"},{value:"SAR",label:"ï·¼ SAR",symbol:"ï·¼"},{value:"AED",label:"د.Ø¥ AED",symbol:"د.Ø¥"},{value:"INR",label:"â¹ INR",symbol:"â¹"},{value:"RUB",label:"â½ RUB",symbol:"â½"},{value:"CNY",label:"\xa5 CNY",symbol
1:"\xa5"}],s="USD";function l(e){if(!e)return"$";let t=a.find(t=>t.value===e);return t?t.symbol:e}a.map(e=>e.value)},7497:(e,t,r)=>{r.d(t,{Zv:()=>a});let a="https://chromewebstore.google.com/detail/wishyork-%E2%80%94-save-to-wishli/bpeaihgakcaihplkbojnfbbpgajjibom"},10820:(e,t,r)=>{r.d(t,{LJ:()=>n,Np:()=>o,hy:()=>d,my:()=>c,sx:()=>i});let a=null,s=null,l=null;function n(){s||(s=(async()=>{let e=localStorage.getItem("wishyork-cookie-preferences");if(e)try{if(!JSON.parse(e).analytics)return}catch(e){if("accepted"!==localStorage.getItem("wishyork-cookie-consent"))return}else if("accepted"!==localStorage.getItem("wishyork-cookie-consent"))return;let t="phc_lCsBCxFko2mWSN1C5c6g6THPBAkanviLk9Es6GO3gQD";t&&(l||(l=r.e(9432).then(r.bind(r,67385)).then(e=>e.default)),(a=await l).init(t,{api_host:"https://us.i.posthog.com",persistence:"localStorage+cookie",bootstrap:{},person_profiles:"identified_only",capture_pageview:!1}))})())}function i(e,t){if(a)return void a.capture(e,t);n(),s&&s.then(()=>{null==a||a.capture(e,t)})}function d(e){e.success&&e.trackEvent&&i(e.trackEvent)}function o(e,t){let r=()=>{null==a||a.identify(e,t)};if(a)return void r();n(),s&&s.then(r)}function c(){let e=()=>{null==a||a.reset()};if(a)return void e();n(),s&&s.then(e)}},11647:(e,t,r)=>{r.d(t,{E:()=>i});var a=r(95155);r(12115);var s=r(83101),l=r(64269);let n=(0,s.F)("inline-flex items-center gap-1 font-mono text-[10px] font-bold uppercase tracking-[0.08em] border transition-colors whitespace-nowrap",{variants:{variant:{new:"rounded-sm px-2 py-0.5 bg-sky-light text-sky-dark border-sky",fulfilled:"rounded-sm px-2 py-0.5 bg-forest-light text-forest-dark border-forest",draft:"rounded-sm px-2 py-0.5 bg-star-light text-star-dark border-star-dark",pending:"rounded-sm px-2 py-0.5 bg-star-light text-star-dark border-star-dark",closed:"rounded-sm px-2 py-0.5 bg-mist-dark text-dusk border-dusk",cancelled:"rounded-sm px-2 py-0.5 bg-danger-light text-danger-dark border-danger",open:"rounded-sm px-2 py-0.5 bg-forest-light text-forest-dark border-forest",sky:"rounded-sm px-2 py-0.5 bg-sky-light text-sky-dark border-sky",verified:"rounded-sm px-2 py-0.5 bg-sky-light text-sky-dark border-sky",tag:"rounded-full px-2.5 py-0.5 bg-mist text-midnight border-mist-dark text-[10px]",count:"rounded-full px-1.5 py-0.5 bg-midnight text-white border-transparent text-[10px] min-w-[18px] justify-center",default:"rounded-sm px-2 py-0.5 bg-sky-light text-sky-dark border-sky",secondary:"rounded-sm px-2 py-0.5 bg-mist text-dusk border-mist-dark",destructive:"rounded-sm px-2 py-0.5 bg-danger-light text-danger-dark border-danger",outline:"rounded-sm px-2 py-0.5 bg-transparent text-midnight border-mist-dark"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,dot:s,dotStatic:i,children:d,...o}=e;return(0,a.jsxs)("div",{className:(0,l.cn)(n({variant:r}),t),...o,children:[s&&(0,a.jsxs)("span",{className:"relative flex h-1.5 w-1.5 shrink-0",children:[(0,a.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 bg-current"}),(0,a.jsx)("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5 bg-current"})]}),i&&(0,a.jsx)("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5 shrink-0 bg-current"}),d]})}},13406:(e,t,r)=>{r.d(t,{Xi:()=>o,av:()=>c,j7:()=>d,tU:()=>i});var a=r(95155),s=r(12115),l=r(25667),n=r(64269);let i=l.bL,d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(l.B8,{ref:t,className:(0,n.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",r),...s})});d.displayName=l.B8.displayName;let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(l.l9,{ref:t,className:(0,n.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",r),...s})});o.displayName=l.l9.displayName;let c=s.forwardRef((e,t)=>
1{let{className:r,...s}=e;return(0,a.jsx)(l.UC,{ref:t,className:(0,n.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...s})});c.displayName=l.UC.displayName},15894:(e,t,r)=>{r.d(t,{Vj:()=>i,dj:()=>p,oR:()=>x});var a=r(12115);let s=0,l=new Map,n=0;function i(){return Date.now()-n<2500}let d=e=>{if(l.has(e))return;let t=setTimeout(()=>{l.delete(e),u({type:"REMOVE_TOAST",toastId:e})},1e6);l.set(e,t)},o=[],c={toasts:[]};function u(e){c=((e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?d(r):e.toasts.forEach(e=>{d(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}})(c,e),o.forEach(e=>{e(c)})}function x(e){let{priority:t,...r}=e,a=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString();"action"===t&&(n=Date.now());let l=()=>u({type:"DISMISS_TOAST",toastId:a});return u({type:"ADD_TOAST",toast:{...r,...t?{priority:t}:{},id:a,open:!0,onOpenChange:e=>{e||l()}}}),{id:a,dismiss:l,update:e=>u({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function p(){let[e,t]=a.useState(c);return a.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:x,dismiss:e=>u({type:"DISMISS_TOAST",toastId:e})}}},24015:(e,t,r)=>{r.d(t,{SafeProductImage:()=>p});var a=r(95155),s=r(12115),l=r(15239),n=r(22390),i=r(64269);let d=["utfs.io","uploadthing.com","ufs.sh"];var o=r(29552),c=r(35652),u=r(3e4);function x(e){let{fill:t}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col h-full w-full items-center justify-center bg-[#F0F4F8] dark:bg-neutral-800",t&&"absolute inset-0"),children:(0,a.jsx)(n.A,{className:"w-10 h-10 text-[#5B7FA3]/30"})})}function p(e){let{src:t,alt:r,className:n,fill:p,width:m,height:b,sizes:h,referrerPolicy:f="no-referrer",priority:g,style:y,fallbackArtSeed:v}=e,[k,j]=(0,s.useState)(!1),w=(0,o.t)(t);if((0,s.useEffect)(()=>{j(!1)},[t]),k||!w)return v?(0,a.jsx)("div",{className:(0,i.cn)("h-full w-full",p&&"absolute inset-0"),children:(0,a.jsx)(c.Q,{seed:v,variant:0,vibrancy:u.TP})}):(0,a.jsx)(x,{fill:p});let N=()=>{j(!0)},B=g?"high":"low";return function(e){let t=e.trim();if(!t)return!1;if(t.startsWith("/")&&!t.startsWith("//"))return!0;try{let e=new URL(t);return"https:"===e.protocol&&function(e){let t=e.toLowerCase();return d.some(e=>t===e||t.endsWith(".".concat(e)))}(e.hostname)}catch(e){return!1}}(t)?p?(0,a.jsx)(l.default,{src:t,alt:r,fill:!0,className:n,sizes:h,referrerPolicy:f,priority:g,fetchPriority:B,style:y,onError:N}):(0,a.jsx)(l.default,{src:t,alt:r,width:null!=m?m:1,height:null!=b?b:1,className:n,sizes:h,referrerPolicy:f,priority:g,fetchPriority:B,style:y,onError:N}):(0,a.jsx)("img",{src:t,alt:r,loading:g?"eager":"lazy",fetchPriority:B,decoding:"async",referrerPolicy:f,width:p?void 0:m,height:p?void 0:b,className:(0,i.cn)(p&&"absolute inset-0 h-full w-full",n),style:y,onError:N})}},26541:(e,t,r)=>{r.d(t,{DT:()=>l,N_:()=>n,a8:()=>d,rd:()=>o});var a=r(75087),s=r(18956);let l=(0,a.o)({locales:["en","tr","ar","es","fr","de"],defaultLocale:"en"}),{Link:n,redirect:i,usePathname:d,useRouter:o,getPathname:c}=(0,s.xp)(l)},26549:(e,t,r)=>{r.d(t,{C:()=>s,v:()=>l});var a=r(39348);let s=["linear-gradient(135deg, #809BCE 0%, #C1257E 100%)","linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%)","linear-gradient(135deg, #4834D4 0%, #686DE0 100%)","linear-gradient(135deg, #F093FB 0%, #F5576C 100%)","linear-gradient(135deg, #5ADBB5 0%, #2EB292 100%)","linear-gradient(135deg, #1A2B3C 0%, #3FC9BD 100%)","linear-gradient(120deg, #FF6B8B 0%, #9C7291 50%, #1A2B3C 100%)","linear-gradient(160deg, #4DAF7D 0%, #356D8A 60%, #1A2B3C 100%)","linear-gradient(to bottom right, #5B7FA3 0%, #3FC9BD 50%, #1A2B3C 100%)","linear-gradient(135deg, #FF6B8B 0%, #5B7FA3 100%)","linear-gradient(180deg, #1A2B3C 0%, #3B7E67 60%, #D4AF37 100%)","linear-gradient(135deg, #5B7FA3 0%, #A5B6C9 50%, #1A2B3C 100%)","linear-gradient(120deg, #3FC9BD 0%, #39825C 100%)","linear-gradient(160deg, #7EC8E3 0%, #BD7790 50%, #1A2B3C 100%)","linear-gradient(135deg, #1A2B3C 0%, #A68042 50%, #FF6B8B 100%)","linear-gradient(to bottom right, #4DAF7D 0%, #1A2B3C 100%)","linear-gradient(135deg, #3FC9BD 0%, #4D8FAD 50%, #1A2B3C 100%)","linear-gradient(120deg, #1A2B3C 0%, #53A5BC 60%, #3FC9BD 100%)","linear-gradient(160deg, #FF6B8B 0%, #856E8A 50%, #1A2B3C 100%)","linear-gradient(135deg, #5B7FA3 0%, #B89C30 60%, #1A2B3C 100%)"];function l(e){return s[Math.abs((0,a.Y)(e))%s.length]}},29552:(e,t,r)=>{r.d(t,{t:()=>a});function a(e){return"string"==typeof e&&e.trim().length>0}},31120:(e,t,r)=>{r.d(t,{T:()=>n});var a=r(95155),s=r(12115),l=r(64269);let n=s.forwardRef((e,t)=>
1{let{className:r,error:s,success:n,...i}=e;return(0,a.jsx)("textarea",{className:(0,l.cn)("flex min-h-[100px] w-full font-body","bg-cloud text-midnight","px-4 py-3","text-[16px] leading-relaxed","resize-none","border border-mist-dark rounded-md","placeholder:text-dusk-light","transition-all duration-200 ease-smooth","focus-visible:outline-none","focus-visible:border-[1.5px] focus-visible:border-sky","focus-visible:shadow-[0_0_0_3px_rgba(126,200,227,0.20)]","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-mist",s&&["border-[1.5px] border-danger","focus-visible:border-danger","focus-visible:shadow-[0_0_0_3px_rgba(229,62,62,0.12)]"],n&&["border-[1.5px] border-forest","focus-visible:border-forest","focus-visible:shadow-[0_0_0_3px_rgba(77,175,125,0.12)]"],r),ref:t,...i})});n.displayName="Textarea"},36402:(e,t,r)=>{r.d(t,{T:()=>n});var a=r(95155),s=r(98053),l=r(92033);function n(e){let{open:t,onOpenChange:r,title:n,description:i,confirmLabel:d="Confirm",cancelLabel:o="Cancel",variant:c="destructive",onConfirm:u,isLoading:x=!1,loadingLabel:p}=e;return(0,a.jsx)(s.Lt,{open:t,onOpenChange:e=>{(e||!x)&&r(e)},children:(0,a.jsxs)(s.EO,{className:"rounded-[24px] max-h-[90vh] overflow-y-auto border border-[#EBEBEB] dark:border-neutral-800",children:[(0,a.jsxs)(s.wd,{children:[(0,a.jsx)(s.r7,{className:"text-xl font-semibold text-[#171717] dark:text-neutral-100",children:n}),(0,a.jsx)(s.$v,{className:"text-sm text-[#8A8A80] dark:text-neutral-400",children:i})]}),(0,a.jsxs)(s.ck,{className:"gap-2 sm:gap-0",children:[(0,a.jsx)(s.Zr,{disabled:x,className:"rounded-[8px] border-[#EBEBEB] dark:border-neutral-700",children:o}),(0,a.jsx)(s.Rx,{onClick:async e=>{e.preventDefault(),x||await Promise.resolve(u())},disabled:x,className:"destructive"===c?"bg-danger hover:bg-danger-dark text-white rounded-[8px] active:scale-95 transition-all min-w-[100px]":"bg-[#171717] text-white rounded-[8px] hover:opacity-90 active:scale-95 transition-all min-w-[100px] dark:bg-neutral-100 dark:text-[#171717]",children:x?(0,a.jsxs)("span",{className:"inline-flex items-center justify-center gap-2",children:[(0,a.jsx)(l.A,{className:"h-4 w-4 animate-spin shrink-0"}),null!=p?p:d]}):d})]})]})})}},41561:(e,t,r)=>{function a(e){if(!e)return null;let t=e.replace(/[^0-9.,]/g,"").trim();if(!t)return null;let r=t.lastIndexOf(","),a=t.lastIndexOf("."),l=parseFloat(r>a?-1===a&&s(t,",")?t.replace(/,/g,""):t.replace(/\./g,"").replace(",","."):a>r?-1===r&&s(t,".")?t.replace(/\./g,""):t.replace(/,/g,""):t);return isNaN(l)?null:l}function s(e,t){let r=e.split(t);return!(r.length<2)&&r.slice(1).every(e=>/^\d{3}$/.test(e))}r.d(t,{m:()=>a})},45118:(e,t,r)=>{r.d(t,{e:()=>_});var a=r(95155),s=r(12115),l=r(27251),n=r(81267),i=r(61270),d=r(59338),o=r(92033),c=r(16359),u=r(33173),x=r(64269);function p(e){let{t,isNGO:r=!1,isGoalLocked:s,value:l,setValue:n,setUrlError:p,isScraping:m,isAiLoading:b,handleAiSuggest:h,handleAdd:f}=e;return(0,a.jsx)("div",{className:"relative",children:s?(0,a.jsxs)("div",{className:"flex items-center gap-3 rounded-full border border-[#EBEBEB] bg-[#F9F9F9] px-4 py-3 dark:border-neutral-700 dark:bg-neutral-800/50",children:[(0,a.jsx)(i.A,{className:"h-4 w-4 shrink-0 text-[#8A8A80] dark:text-neutral-400","aria-hidden":!0}),(0,a.jsx)("span",{className:"flex-1 text-sm font-medium text-[#8A8A80] dark:text-neutral-400",children:t("goalReachedPlaceholder")}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-primary/15 px-3 py-1.5 text-xs font-semibold text-primary",children:[(0,a.jsx)(i.A,{className:"h-3 w-3","aria-hidden":!0})," ",t("goalLockButton")]})]}):(0,a.jsxs)("div",{className:(0,x.cn)("flex items-center rounded-full border border-[#EBEBEB] bg-white px-4 py-3 shadow-[0_2px_12px_rgba(0,0,0,0.08)] transition-shadow focus-within:shadow-[0_4px_20px_rgba(0,0,0,0.1)] dark:border-neutral-700 dark:bg-neutral-900"),children:[(0,a.jsx)("div",{className:"pr-2 md:pr-3",children:(0,a.jsx)(d.A,{className:(0,x.cn)("h-4 w-4 text-primary md:h-6 md:w-6",m&&"animate-spin")})}),(0,a.jsx)("input",{value:l,onChange:e=>{n(e.target.value),p("")},onKeyDown:e=>"Enter"===e.key&&f(),placeholder:t("magicPlaceholder"),disabled:m,className:"h-10 min-w-0 flex-1 border-none bg-transparent text-sm font-medium outline-none placeholder:text-[#8A8A80] disabled:opacity-50 md:h-12 dark:text-neutral-100"}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,a.jsxs)("button",{type:"button",onClick:h,disabled:b||m,className:"group/ai relative rounded-full p-2 text-[#8A8A80] dark:text-neutral-400 transition-colors hover:bg-primary/10 hover:text-primary md:p-3",title:t("aiSmartPicks"),"aria-label":t("aiSmartPicks"),children:[b?(0,a.jsx)(o.A,{className:"h-5 w-5 animate-spin"}):(0,a.jsx)(c.A,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"absolute -top-10 left-1/2 z-10 hidden -translate-x-1/2 whitespace-nowrap rounded-md bg-[#171717] px-2 py-1 text-[10px] font-semibold normal-case text-white opacity-0 transition-opacity group-hover/ai:opacity-100 dark:bg-neutral-100 dar
1k:text-[#171717] sm:block",children:t("aiSmartPicks")})]}),(0,a.jsx)("button",{type:"button",onClick:f,disabled:m||!r&&!l.trim(),className:"flex h-10 items-center gap-1 rounded-full bg-[#171717] px-4 text-xs font-semibold text-white transition-opacity hover:opacity-90 active:scale-95 disabled:opacity-50 md:h-12 md:gap-2 md:px-7 md:text-sm dark:bg-neutral-100 dark:text-[#171717]",children:m?(0,a.jsx)(o.A,{className:"w-4 h-4 animate-spin"}):(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[t("add")," ",(0,a.jsx)(u.A,{className:"w-3 h-3 md:w-4 md:h-4"})]})})]})]})})}var m=r(78770),b=r(50984),h=r(13381),f=r(26615),g=r(11064),y=r(71408),v=r(34486),k=r(24015);function j(e){let{t,urlError:r,scrapeState:s,scrapedData:l,pendingUrl:n,setScrapeState:i,setShowConfirm:d,resetScrape:c,handleAddManually:u,retryScrape:x}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.N,{children:r&&(0,a.jsxs)(v.P.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},className:"flex items-center gap-2 px-4 text-red-500",children:[(0,a.jsx)(m.A,{className:"w-4 h-4 shrink-0"}),(0,a.jsx)("span",{className:"text-xs font-bold",children:r})]})}),(0,a.jsx)(y.N,{children:"loading"===s&&(0,a.jsxs)(v.P.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4}
1,className:"flex items-center gap-4 rounded-2xl border border-[#EBEBEB] bg-[#F9F9F9] p-4 dark:border-neutral-700 dark:bg-neutral-800/50",children:[(0,a.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-primary/20",children:(0,a.jsx)(o.A,{className:"h-5 w-5 animate-spin text-primary"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-semibold normal-case text-[#171717] dark:text-neutral-100",children:t("scrapeFetchingInfo")}),(0,a.jsx)("p",{className:"text-[10px] font-bold text-neutral-400 mt-0.5 truncate max-w-xs",children:n})]})]})}),(0,a.jsx)(y.N,{children:"success"===s&&l&&(0,a.jsxs)(v.P.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},className:"flex items-center gap-4 rounded-[12px] border border-[#EBEBEB] bg-white p-4 shadow-[0_2px_12px_rgba(0,0,0,0.08)] dark:border-neutral-700 dark:bg-neutral-900",children:[l.imageUrl&&(0,a.jsx)("div",{className:"h-14 w-14 shrink-0 overflow-hidden rounded-xl border border-[#EBEBEB] bg-neutral-100 dark:border-neutral-700",children:(0,a.jsx)(k.SafeProductImage,{src:l.imageUrl,alt:l.title,width:56,height:56,referrerPolicy:"no-referrer",className:"w-full h-full object-cover"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,a.jsx)(b.A,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),(0,a.jsx)("span",{className:"text-[10px] font-semibold normal-case text-primary",children:t("scrapeProductFound")})]}),(0,a.jsx)("p",{className:"truncate text-sm font-semibold normal-case leading-tight text-[#171717] dark:text-neutral-100",children:l.title?l.title.substring(0,60):t("scrapeUntitledProduct")}),l.price&&(0,a.jsxs)("p",{className:"text-xs font-bold text-neutral-500 mt-0.5",children:[l.price," ",l.currency]})]}),(0,a.jsxs)("div",{className:"flex shrink-0 flex-col gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:()=>{i("idle"),d(!0)},className:"whitespace-nowrap rounded-full bg-[#171717] px-4 py-2 text-xs font-semibold text-white transition-opacity hover:opacity-90 dark:bg-neutral-100 dark:text-[#171717]",children:t("scrapeAddToList")}),(0,a.jsxs)("button",{type:"button",onClick:c,className:"flex items-center justify-center gap-1 whitespace-nowrap rounded-full border border-[#EBEBEB] px-4 py-2 text-xs font-semibold text-[#6B6B6B] transition-colors hover:bg-[#F9F9F9] hover:text-[#171717] dark:text-neutral-400 dark:hover:text-neutral-100 dark:border-neutral-700 dark:hover:bg-neutral-800",children:[(0,a.jsx)(h.A,{className:"h-3 w-3"})," ",t("scrapeTryDifferent")]})]})]})}),(0,a.jsx)(y.N,{children:"error"===s&&(0,a.jsxs)(v.P.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},className:"flex items-center gap-4 p-4 bg-red-50 dark:bg-red-950/30 border-2 border-red-200 dark:border-red-800 rounded-2xl",children:[(0,a.jsx)("div",{className:"w-10 h-10 bg-red-100 dark:bg-red-900/50 rounded-xl flex items-center justify-center shrink-0",children:(0,a.jsx)(m.A,{className:"w-5 h-5 text-red-500"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-xs font-semibold normal-case text-red-600 dark:text-red-400",children:t((null==l?void 0:l.extractionFailed)?"scrapeExtractionFailedTitle":"scrapeErrorTitle")}),(0,a.jsx)("p",{className:"text-[10px] font-bold text-neutral-400 mt-0.5",children:t((null==l?void 0:l.extractionFailed)?"scrapeExtractionFailedDesc":"scrapeErrorDesc")})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 shrink-0",children:[(0,a.jsx)("button",{type:"button",onClick:u,className:"whitespace-nowrap rounded-full bg-[#171717] px-4 py-2 text-xs font-semibold text-white transition-opacity hover:opacity-90 dark:bg-neutral-100 dark:text-[#171717]",children:t("scrapeAddManually")}),(0,a.jsxs)("button",{type:"button",onClick:c,className:"flex items-center justify-center gap-1 whitespace-nowrap rounded-full border border-[#EBEBEB] px-4 py-2 text-xs font-semibold text-[#6B6B6B] transition-colors hover:bg-[#F9F9F9] dark:text-neutral-400 dark:border-neutral-700 dark:hover:bg-neutral-800",children:[(0,a.jsx)(f.A,{className:"h-3 w-3"})," ",t("scrapeDismiss")]})]})]})}),(0,a.jsx)(y.N,{children:"blocked"===s&&(0,a.jsxs)(v.P.div,{initial:{opacity:0,y:4}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:4},className:"flex items-center gap-4 p-4 bg-amber-50 dark:bg-amber-950/30 border-2 border-amber-200 dark:border-amber-800 rounded-2xl",children:[(0,a.jsx)("div",{className:"w-10 h-10 bg-amber-100 dark:bg-amber-900/50 rounded-xl flex items-center justify-center shrink-0",children:(0,a.jsx)(g.A,{className:"w-5 h-5 text-amber-600"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-xs font-semibold normal-case text-amber-700 dark:text-amber-400",children:t("scrapeBlockedTitle")}),(0,a.jsx)("p",{className:"text-[10px] font-bold text-neutral-400 mt-0.5",children:t("scrapeBlockedDesc")})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 shrink-0",children:[(0,a.jsx)("button",{type:"button",onClick:u,className:"whitespace-nowrap rounded-full bg-[#171717] px-4 py-2 text-xs font-semibold text-white transition-opacity hover:opacity-90 dark:bg-neutral-100 dark:text-[#171717]",children:t("scrapeAddManually")}),x&&(0,a.jsxs)("button",{type:"button",onClick:x,className:"flex items-center justify-center gap-1 whitespace-nowrap rounded-full border border-[#EBEBEB] px-4 py-2 text-xs font-semibold text-[#6B6B6B] transition-colors hover:bg-[#F9F9F9] dark:text-neutral-400 dark:border-neutral-700 dark:hover:bg-neutral-800",children:[(0,a.jsx)(h.A,{className:"h-3 w-3"})," ",t("scrapeTryAgain")]})]})]})})]})}function w(e){let{t,aiSuggestions:r,setAiSuggestions:s,handleSelectAiPick:l}=e;return(0,a.jsx)(y.N,{children:r.length>0&&(0,a.jsx)(v.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:(0,a.jsxs)("div",{className:"space-y-4 rounded-[12px] border border-[#EBEBEB] bg-white p-6 shadow-[0_4px_20px_rgba(0,0,0,0.08)] dark:border-neutral-700 dark:bg-neutral-900",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("h4",{className:"flex items-center gap-2 text-sm font-semibold normal-case text-primary",children:[(0,a.jsx)(c.A,{className:"h-4 w-4"})," ",t("aiSuggestions")]}),(0,a.jsx)("button",{type:"button",onClick:()=>s([]),className:"text-[#8A8A80] dark:text-neutral-400 transition-colors hover:text-[#171717] dark:hover:text-neutral-100",children:(0,a.jsx)(f.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:r.map((e,t)=>(0,a.jsxs)("button",{type:"button",onClick:()=>l(e),className:"group rounded-[12px] border border-[#EBEBEB] bg-white p-4 text-left transition-colors hover:bg-[#F9F9F9] dark:border-neutral-700 dark:bg-neutral-900 dark:hover:bg-neutral-800",children:[(0,a.jsx)("span",{className:"mb-1 block truncate text-sm font-semibold normal-case text-[#171717] group-hover:text-primary dark:text-neutral-100",children:e.title}),(0,a.jsx)("span",{className:"mb-2 block text-xs text-[#8A8A80] dark:text-neutral-400",children:e.estimatedPrice}),(0,a.jsxs)("p",{className:"line-clamp-2 text-xs font-medium leading-tight text-[#8A8A80] dark:text-neutral-400",children:["â",e.reason,"â"]})]},t))})]})})})}var N=r(22390),B=r(24820);function A(e){let{showTypeChoice:t,handleChoice:r,setShowTypeChoice:s}=e;return t?(0,a.jsxs)("div",{className:"flex animate-in justify-center gap-3 slide-in-from-top-2 duration-300",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>r("PRODUCT"),className:"flex items-center gap-2 rounded-full border border-[#EBEBEB] px-3 py-1.5 text-xs font-semibold text-[#6B6B6B] transition-colors hover:bg-[#F9F9F9] dark:border-neutral-700 dark:hover:bg-neutral-800",children:[(0,a.jsx)(N.A,{className:"h-4 w-4"})," Wish item"]}),(0,a.jsxs)("button",{type:"button",onClick:()=>r("TASK"),className:"flex items-center gap-2 rounded-full border border-[#EBEBEB] px-3 py-1.5 text-xs font-semibold text-[#6B6B6B] transition-colors hover:bg-[#F9F9F9] dark:border-neutral-700 dark:hover:bg-neutral-800",children:[(0,a.jsx)(B.A,{className:"h-4 w-4"})," Task / goal"]}),(0,a.jsx)("button",{type:"button",onClick:()=>s(!1),className:"rounded-full p-3 text-[#8A8A80] transition-colors hover:bg-[#F9F9F9] hover:text-red-500 dark:text-neutral-400 dark:hover:bg-neutral-800",children:(0,a.jsx)(f.A,{className:"h-4 w-4"})})]}):null}var E=r(95604),S=r(15894),C=r(78931),F=r(30926);let T=(0,F.createServerReference)("40a02ed31d09b45560fc1feb4a1e0959495e0819c8",F.callServer,void 0,F.findSourceMapURL,"generateItemSuggestions");var D=r(87128),R=r(41561);function _(e){let{onAdd:t,wishlistId:r,squadMembers:i=[],eventType:d,listTitle:o,listDescription:c,isNGO:u,goalCount:x=0,productItemCount:m=0,isOwner:b=!1}=e,h=function(e){let{listTitle:t,listDescription:r,isNGO:a,goalCount:l=0,productItemCount:n=0,isOwner:i=!1}=e,d=(0,E.useTranslations)("CollectionDetail"),o=(0,E.useTranslations)("AI"),[c,u]=(0,s.use
1State)(""),[x,p]=(0,s.useState)("idle"),[m,b]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!1),[g,y]=(0,s.useState)(null),[v,k]=(0,s.useState)(!1),[j,w]=(0,s.useState)([]),[N,B]=(0,s.useState)(""),[A,F]=(0,s.useState)(""),[_,P]=(0,s.useState)(""),[I,U]=(0,s.useState)(!1),L=async e=>{B(""),p("loading"),y(null),F(e);let t=await (0,C.R)(e);t.success&&t.data?(y({...t.data,itemType:"PRODUCT"}),p("success")):t.blocked?p("blocked"):(y({itemType:"PRODUCT",extractionFailed:"SCRAPE_EXTRACTION_FAILED"===t.error}),p("error"))},O=async()=>{let e=c.trim();if(!e){a&&k(!0);return}if(e.startsWith("http")){try{new URL(e)}catch(e){B(d("scrapeInvalidUrl"));return}await L(e)}else k(!0)},M=async()=>{var e;let t;if("function"!=typeof(null==(e=navigator.clipboard)?void 0:e.readText))return;try{t=await navigator.clipboard.readText()}catch(e){return}let r=t.trim();if(r){if(!r.startsWith("http"))return void(0,S.oR)({title:d("clipboardNoLinkFound")});try{new URL(r)}catch(e){(0,S.oR)({title:d("clipboardNoLinkFound")});return}P(r),U(!0)}},z=async()=>{U(!1),await L(_)},G=async()=>{if(t&&!m){b(!0);try{let e=await T({title:t,description:r,isNGO:a}),s=(0,D.c)(e.error);if(s)return void(0,S.oR)({variant:"destructive",title:o(s)});if(e.suggestions.length>0)return void w(e.suggestions);e.error||(0,S.oR)({variant:"destructive",title:o("failed")})}catch(e){(0,S.oR)({variant:"destructive",title:o("failed")})}finally{b(!1)}}},W=async()=>{A&&await L(A)};return{t:d,value:c,setValue:u,scrapeState:x,setScrapeState:p,isAiLoading:m,showConfirm:h,setShowConfirm:f,scrapedData:g,showTypeChoice:v,setShowTypeChoice:k,aiSuggestions:j,setAiSuggestions:w,urlError:N,setUrlError:B,pendingUrl:A,clipboardUrl:_,showClipboardConfirm:I,isScraping:"loading"===x,isGoalLocked:l>0&&n>=l&&!i,resetScrape:()=>{p("idle"),y(null),B(""),F(""),u("")},handleAdd:O,handlePasteFromClipboard:M,handleConfirmClipboardImport:z,handleDismissClipboardConfirm:()=>{U(!1),P("")},handleAiSuggest:G,handleChoice:e=>{y({title:c.trim(),itemType:e}),f(!0),k(!1),u("")},handleSelectAiPick:e=>{var t,r;y({title:e.title,price:null!=(r=null==(t=(0,R.m)(e.estimatedPrice))?void 0:t.toString())?r:"",currency:"USD",note:e.reason,itemType:a?"TASK":"PRODUCT",category:e.category}),f(!0),w([])},handleAddManually:()=>{y({title:"",url:A,itemType:"PRODUCT"}),p("idle"),f(!0)},retryScrape:W}}({listTitle:o,listDescription:c,isNGO:u,goalCount:x,productItemCount:m,isOwner:b}),[f,g]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{var e;g("function"==typeof(null==(e=navigator.clipboard)?void 0:e.readText))},[]),(0,a.jsxs)("div",{className:"w-full max-w-4xl mx-auto space-y-4",children:[h.showClipboardConfirm&&(0,a.jsxs)("div",{className:"rounded-[12px] border border-[#EBEBEB] bg-[#F9F9F9] p-3 dark:border-neutral-700 dark:bg-neutral-800/80",children:[(0,a.jsx)("p",{className:"truncate text-sm text-[#6B6B6B] dark:text-neutral-400",title:h.clipboardUrl,children:h.t("clipboardConfirmMessage",{url:h.clipboardUrl})}),(0,a.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:h.handleConfirmClipboardImport,disabled:h.isScraping,className:"rounded-full bg-[#3FC9BD] px-4 py-2 text-xs font-semibold text-[#1A2B3C] transition-opacity hover:opacity-90 active:scale-95 disabled:opacity-50 md:text-sm dark:bg-[#3FC9BD] dark:text-[#1A2B3C]",children:h.t("clipboardImportButton")}),(0,a.jsx)("button",{type:"button",onClick:h.handleDismissClipboardConfirm,disabled:h.isScraping,className:"rounded-full border border-[#EBEBEB] bg-white px-4 py-2 text-xs font-semibold text-[#171717] transition-colors hover:bg-[#F9F9F9] disabled:opacity-50 md:text-sm dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 dark:hover:bg-neutral-800",children:h.t("clipboardCancelButton")})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"min-w-0 flex-1",children:(0,a.jsx)(p,{t:h.t,isNGO:u,isGoalLocked:h.isGoalLocked,value:h.value,setValue:h.setValue,setUrlError:h.setUrlError,isScraping:h.isScraping,isAiLoading:h.isAiLoading,handleAiSuggest:h.handleAiSuggest,handleAdd:h.handleAdd})}),f&&!h.isGoalLocked&&(0,a.jsx)("button",{type:"button",onClick:h.handlePasteFromClipboard,disabled:h.isScraping||h.showClipboardConfirm,className:"shrink-0 rounded-full p-2 text-[#8A8A80] transition-colors hover:bg-primary/10 hover:text-primary disabled:opacity-50 md:p-3 dark:text-neutral-400",title:h.t("clipboardImportButton"),"aria-label":h.t("clipboardImportButton"),children:(0,a.jsx)(l.A,{className:"h-5 w-5","aria-hidden":!0})})]}),(0,a.jsx)(j,{t:h.t,urlError:h.urlError,scrapeState:h.scrapeState,scrapedData:h.scrapedData,pendingUrl:h.pendingUrl,setScrapeState:h.setScrapeState,setShowConfirm:h.setShowConfirm,resetScrape:h.resetScrape,handleAddManually:h.handleAddManually,retryScrape:h.retryScrape}),(0,a.jsx)(w,{t:h.t,aiSuggestions:h.aiSuggestions,setAiSuggestions:h.setAiSuggestions,handleSelectAiPick:h.handleSelectAiPick}),(0,a.jsx)(A,{showTypeChoice:h.showTypeChoice,handleChoice:h.handleChoice,setShowTypeChoice:h.setShowTypeChoice,isNGO:u}),h.showConfirm?(0,a.jsx)(n.$,{open:h.showConfirm,onOpenChange:e=>{h.setShowConfirm(e),e||h.setScrapeState("idle")},scrapedData:h.scrapedData,wishlistId:r,onSuccess:e=>{t(e),h.resetScrape()},squadMembers:i,eventType:d}):null]})}},45891:(e,t,r)=>{r.d(t,{x:()=>s});var a=r(30926);let s=(0,a.createServerReference)("401c23b16314085e86ffb88f89ae389bb38eb0b64f",a.callServer,void 0,a.findSourceMapURL,"deleteWishlistAction")},46750:(e,t,r)=>{r.d(t,{MirrorPillAvatar:()=>c});var a=r(95155),s=r(12115),l=r(27314),n=r(64269),i=r(15239);let d={nano:"w-6 h-8",micro:"w-9 h-12",standard:"w-12 h-16",macro:"w-24 h-32"},o={nano:"w-3 h-3",micro:"w-4 h-4",standard:"w-5 h-5",macro:"w-10 h-10"};function c(e){let{src:t,alt:r,size:c="standard",className:u,style:x}=e,p=t||"https://api.dicebear.com/7.x/avataaars/svg?seed="+(r||"default"),[m,b]=(0,s.use
1State)(null),[h,f]=(0,s.useState)(!1),g=m===p;return(0,s.useEffect)(()=>{f(!1)},[p]),(0,a.jsx)("div",{className:(0,n.cn)("relative shrink-0 overflow-hidden border border-mist-dark bg-mist shadow-sm dark:bg-midnight-light dark:border-dusk",d[c],u),style:{borderRadius:"40% 40% 50% 50% / 30% 30% 70% 70%",...x},children:h?(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center","data-testid":"avatar-fallback",children:(0,a.jsx)(l.A,{className:(0,n.cn)(o[c],"text-[#5B7FA3]/30 dark:text-neutral-500/40")})}):(0,a.jsx)(i.default,{src:p,alt:r,fill:!0,sizes:"10vw",referrerPolicy:"no-referrer",className:(0,n.cn)("object-cover transition-opacity duration-300",g?"opacity-100":"opacity-0"),unoptimized:p.includes("dicebear"),onLoad:()=>b(p),onError:()=>f(!0)})})}},48568:(e,t,r)=>{r.d(t,{y:()=>s});var a=r(30926);let s=(0,a.createServerReference)("40c2ec2bec07b8ae2023b0023072153e07dd455b47",a.callServer,void 0,a.findSourceMapURL,"getCollectionActivitiesAction")},53684:(e,t,r)=>{r.d(t,{d:()=>s});var a=r(30926);let s=(0,a.createServerReference)("60698e0b38d9e5555266b2e74f224d6e6c18598334",a.callServer,void 0,a.findSourceMapURL,"getCommentsAction")},64269:(e,t,r)=>{r.d(t,{cn:()=>l});var a=r(2821),s=r(75889);function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,a.$)(t))}},71853:(e,t,r)=>{r.r(t),r.d(t,{ReportModal:()=>k});var a=r(95155),s=r(12115),l=r(95604),n=r(51834),i=r(76444),d=r(31120),o=r(26615),c=r(83403),u=r(66065),x=r(92033),p=r(50984),m=r(64269),b=r(30926);let h=(0,b.createServerReference)("40615a3fdb5da0d2d99c835c22e21d8f4706e2bf32",b.callServer,void 0,b.findSourceMapURL,"createReportAction"),f=(0,b.createServerReference)("4052dfa3b45f99a45b603a0d51f12467d13c21fdc1",b.callServer,void 0,b.findSourceMapURL,"reportEventWishAction");var g=r(15894),y=r(922);let v="text-xs font-medium text-[#8E8D8A] dark:text-neutral-400 ml-1";function k(e){let{open:t,onOpenChange:r,targetId:b,targetType:k}=e,j=(0,l.useTranslations)("Report"),w=(0,l.useTranslations)("Common"),[N,B]=(0,s.useState)("reason"),[A,E]=(0,s.useState)(""),[S,C]=(0,s.useState)(""),[F,T]=(0,s.useState)(!1),D=[{id:"SPAM",label:j("reasonSpam")},{id:"HARASSMENT",label:j("reasonHarassment")},{id:"INAPPROPRIATE",label:j("reasonInappropriate")},{id:"FAKE",label:j("reasonFake")},{id:"OTHER",label:j("reasonOther")}],R=async()=>{if(A&&!F){T(!0);try{let e="EVENT_WISH"===k?await f({wishId:b,reason:A,details:S.trim()||void 0}):await h({targetId:b,targetType:k,reason:A,details:S.trim()||void 0});e.success?B("success"):(0,g.oR)({variant:"destructive",title:w("error"),description:"string"==typeof e.error&&(0,y.L)(e.error)?(0,y.u)(e.error,w):e.error})}catch(e){(0,g.oR)({variant:"destructive",title:w("error")})}finally{T(!1)}}};return(0,a.jsx)(n.lG,{open:t,onOpenChange:e=>{r(e),e||setTimeout(()=>{B("reason"),E(""),C("")},300)},children:(0,a.jsx)(n.Cf,{"aria-describedby":void 0,className:"max-w-xl p-0 border-none bg-transparent shadow-none overflow-visible [&>button]:hidden focus:outline-none focus-visible:ring-0",onCloseAutoFocus:e=>{e.preventDefault(),document.body.style.pointerEvents="",document.body.style.overflow=""},onEscapeKeyDown:()=>{document.body.style.pointerEvents="",document.body.style.overflow=""},children:(0,a.jsxs)("div",{className:"relative flex max-h-[90vh] flex-col rounded-[24px] border border-[#EBEBEB] bg-white shadow-[0_8px_40px_rgba(0,0,0,0.12)] dark:border-neutral-700 dark:bg-neutral-900",children:[(0,a.jsxs)(n.HM,{type:"button",className:"absolute right-4 top-4 z-10 flex min-h-[44px] min-w-[44px] items-center justify-center rounded-[8px] border border-[#EBEBEB] bg-white p-2.5 transition-colors hover:bg-[#F9F9F9] focus:outline-none focus:ring-1 focus:ring-primary/20 dark:border-neutral-700 dark:bg-neutral-900 dark:hover:bg-neutral-800 md:min-h-0 md:min-w-0 md:p-1.5",children:[(0,a.jsx)(o.A,{className:"size-4 text-[#8A8A80] dark:text-neutral-400"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]}),(0,a.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-6 pt-14 no-scrollbar md:p-8 md:pt-16",children:"reason"===N?(0,a.jsxs)("div",{className:"animate-in fade-in slide-in-from-bottom-4 space-y-8 duration-500 pb-2",children:[(0,a.jsxs)("header",{className:"space-y-4 pt-2 text-center",children:[(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("div",{className:"rounded-[12px] border border-[#
1EBEBEB] bg-[#F9F9F9] p-2 dark:border-neutral-700 dark:bg-neutral-800",children:(0,a.jsx)(c.A,{className:"h-8 w-8 text-primary"})})}),(0,a.jsx)(n.L3,{className:"text-xl font-semibold normal-case text-[#171717] dark:text-neutral-100",children:j("modalTitle")}),(0,a.jsx)(n.rr,{className:"text-xs font-normal normal-case leading-relaxed text-[#8A8A80] dark:text-neutral-400",children:j("modalSubtitle",{type:k.toLowerCase()})})]}),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)(i.J,{id:"report-reason-label",className:v,children:j("selectReason")}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",role:"radiogroup","aria-labelledby":"report-reason-label",children:D.map(e=>(0,a.jsx)("button",{type:"button",role:"radio","aria-checked":A===e.id,onClick:()=>E(e.id),className:(0,m.cn)("rounded-[8px] px-3 py-1.5 text-xs transition-colors",A===e.id?"bg-[#171717] font-semibold text-white":"border border-[#EBEBEB] bg-white text-[#6B6B6B] hover:bg-[#F9F9F9] dark:border-neutral-700 dark:bg-neutral-900 dark:hover:bg-neutral-800"),children:e.label},e.id))})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(i.J,{htmlFor:"report-modal-details",className:v,children:j("detailsLabel")}),(0,a.jsx)("span",{className:"text-[11px] text-[#8A8A80] dark:text-neutral-500",children:w("char_limit",{count:S.length})})]}),(0,a.jsx)(d.T,{id:"report-modal-details",name:"details",value:S,onChange:e=>C(e.target.value),placeholder:j("detailsPlaceholder"),maxLength:2e3,className:"min-h-[100px] resize-none rounded-[12px] border border-[#EBEBEB] bg-[#F9F9F9] px-3 py-2 text-sm focus:border-primary focus:ring-1 focus:ring-primary/20 dark:border-neutral-700 dark:bg-neutral-800"})]}),(0,a.jsxs)("div",{className:"flex items-start gap-3 rounded-[12px] border border-dashed border-blue-200 bg-blue-50 p-4 dark:border-blue-800 dark:bg-blue-900/20",children:[(0,a.jsx)(u.A,{className:"mt-0.5 h-4 w-4 shrink-0 text-blue-500"}),(0,a.jsx)("p",{className:"text-xs font-normal normal-case leading-relaxed text-blue-800 dark:text-blue-400",children:j("privacyNote")})]}),(0,a.jsx)("button",{type:"button",onClick:R,disabled:!A||F,className:"w-full rounded-[8px] bg-[#171717] px-6 py-2.5 text-sm font-semibold text-white transition-opacity hover:opacity-90 disabled:opacity-50",children:F?(0,a.jsx)(x.A,{className:"mx-auto h-6 w-6 animate-spin"}):j("submitReport")})]})]}):(0,a.jsxs)("div",{className:"animate-in zoom-in space-y-8 py-6 text-center duration-500",children:[(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("div",{className:"rounded-[12px] bg-primary/15 p-3 text-primary",children:(0,a.jsx)(p.A,{className:"h-10 w-10"})})}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(n.L3,{className:"text-xl font-semibold normal-case leading-none text-[#171717] dark:text-neutral-100",children:j("successTitle")}),(0,a.jsx)("p",{className:"mx-auto max-w-xs text-sm font-normal normal-case leading-relaxed text-[#8A8A80] dark:text-neutral-400",children:j("successDesc")})]}),(0,a.jsx)("button",{type:"button",onClick:()=>r(!1),className:"w-full rounded-[8px] bg-[#171717] px-6 py-2.5 text-sm font-semibold text-white transition-opacity hover:opacity-90",children:w("finish")})]})}),(0,a.jsx)("div",{className:"shrink-0 border-t border-[#EBEBEB] pt-4 pb-6 dark:border-neutral-700"})]})})})}},73334:(e,t,r)=>{r.d(t,{i:()=>s});var a=r(30926);let s=(0,a.createServerReference)("40e8845871d6a48f575817b2ffbccf851fca598890",a.callServer,void 0,a.findSourceMapURL,"toggleFollowAction")},76444:(e,t,r)=>{r.d(t,{J:()=>o});var a=r(95155),s=r(12115),l=r(10489),n=r(83101),i=r(64269);let d=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(l.b,{ref:t,className:(0,i.cn)(d(),r),...s})});o.displayName=l.b.displayName},77070:(e,t,r)=>{r.d(t,{FollowButton:()=>x});var a=r(95155),s=r(12115),l=r(92033),n=r(95604),i=r(73334),d=r(10820),o=r(15894),c=r(64269),u=r(922);function x(e){let{profileId:t,isFollowing:r,size:x="sm",isSelf:p=!1,onFollowChange:m}=e,b=(0,n.useTranslations)("Dashboard"),h=(0,n.useTranslations)("DashboardFeed"),f=(0,n.useTranslations)("Common"),[g,y]=s.useState(r),[v,k]=s.useState(!1);if(s.useEffect(()=>{y(r)},[r,t]),p)return null;let j=async e=>{if(e.preventDefault(),e.stopPropagation(),v)return;k(!0);let r=!g;y(r),null==m||m(t,r);let a=await (0,i.i)(t);a.success?(0,d.hy)(a):(y(!r),null==m||m(t,!r),(0,o.oR)({variant:"destructive",title:h("toastFollowErrorTitle"),description:"string"==typeof a.error&&(0,u.L)(a.error)?(0,u.u)(a.error,f):"string"==typeof a.error?a.error:void 0})),k(!1)};return(0,a.jsx)("button",{type:"button",onClick:j,disabled:v,className:(0,
1c.cn)("shrink-0 font-semibold rounded-full transition-opacity disabled:opacity-50","bg-primary text-white","sm"===x?"text-xs px-3 py-1":"text-sm px-4 py-1.5"),children:v?(0,a.jsx)(l.A,{className:"h-3.5 w-3.5 animate-spin inline"}):b(g?"following":"follow")})}},78931:(e,t,r)=>{r.d(t,{R:()=>s});var a=r(30926);let s=(0,a.createServerReference)("406d1ff9464ee7f284ba0c872965fede6b9757389a",a.callServer,void 0,a.findSourceMapURL,"scrapeProductUrl")},81267:(e,t,r)=>{r.d(t,{$:()=>l});var a=r(67909),s=r(85731);let l=(0,a.default)(()=>Promise.all([r.e(1432),r.e(5356),r.e(5550),r.e(4831),r.e(6268),r.e(8909)]).then(r.bind(r,46268)).then(e=>e.AddItemDialog),{loadableGenerated:{webpack:()=>[46268]},ssr:!1,loading:s.b})},83223:(e,t,r)=>{r.d(t,{H:()=>s});var a=r(30926);let s=(0,a.createServerReference)("40544080a93c66d481fe261dd1c94c252782449907",a.callServer,void 0,a.findSourceMapURL,"selfRegisterForEventAction")},85731:(e,t,r)=>{r.d(t,{b:()=>n});var a=r(95155),s=r(92033),l=r(95604);function n(){let e=(0,l.useTranslations)("Common");return(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",role:"status",children:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 roun
1ded-[20px] border border-[#EBEBEB] bg-white px-10 py-12 shadow-[0_2px_8px_rgba(26,43,60,0.08)] dark:border-neutral-800 dark:bg-neutral-900",children:[(0,a.jsx)(s.A,{className:"h-10 w-10 animate-spin text-primary"}),(0,a.jsx)("p",{className:"text-sm font-medium text-[#8A8A80] dark:text-neutral-500",children:e("loading")})]})})}},87128:(e,t,r)=>{r.d(t,{c:()=>a});function a(e){return e&&"UNCONFIGURED"!==e?"DISABLED"===e?"disabled":"RATE_LIMITED"===e||"QUOTA_DAILY"===e||"QUOTA_MONTHLY"===e?"rateLimited":"failed":null}},90450:(e,t,r)=>{r.d(t,{AppHeader:()=>m});var a=r(95155),s=r(65824),l=r(12115),n=r(94018),i=r(60555),d=r(26615),o=r(95604),c=r(7497);let u="chrome-extension-prompt-dismissed";function x(){let e=(0,o.useTranslations)("Dashboard"),{isLoaded:t,isSignedIn:r}=(0,n.Jd)(),[s,x]=(0,l.useState)(!1),[p,m]=(0,l.useState)(!0);return((0,l.useEffect)(()=>{x(!0),m("true"===localStorage.getItem(u))},[]),s&&t&&r&&!p)?(0,a.jsxs)("div",{className:"hidden md:flex items-center gap-1 shrink-0",children:[(0,a.jsxs)("a",{href:c.Zv,target:"_blank",rel:"noopener noreferrer",title:e("chromeExtensionTooltip"),className:"inline-flex items-center gap-1.5 rounded-full border border-[#3FC9BD]/30 bg-[#3FC9BD]/10 px-3 py-1.5 text-xs font-medium text-[#1A2B3C] transition-colors hover:bg-[#3FC9BD]/20 dark:border-[#3FC9BD]/30 dark:bg-[#3FC9BD]/10 dark:text-neutral-100 dark:hover:bg-[#3FC9BD]/20",children:[(0,a.jsx)(i.A,{className:"h-4 w-4 shrink-0","aria-hidden":!0}),(0,a.jsx)("span",{children:e("chromeExtensionCta")})]}),(0,a.jsx)("button",{type:"button",onClick:()=>{m(!0),localStorage.setItem(u,"true")},"aria-label":e("chromeExtensionDismiss"),className:"rounded-full p-1 text-[#8A8A80] transition-colors hover:bg-neutral-50 hover:text-[#171717] dark:text-neutral-400 dark:hover:bg-neutral-900 dark:hover:text-neutral-100",children:(0,a.jsx)(d.A,{className:"h-3.5 w-3.5","aria-hidden":!0})})]}):null}var p=r(64269);function m(e){let{rightSlot:t,className:r}=e;return(0,a.jsx)("header",{className:(0,p.cn)("sticky top-0 z-30 h-14 border-b border-[#EBEBEB] bg-white/80 backdrop-blur-sm dark:border-neutral-800 dark:bg-neutral-950/80",r),children:(0,a.jsxs)("div",{className:"mx-auto flex h-full w-full min-w-0 max-w-[1400px] items-center justify-end gap-3 px-4",children:[(0,a.jsx)("div",{className:"min-w-0 w-full max-w-[320px] flex-1",children:(0,a.jsx)(s.B,{})}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,a.jsx)(x,{}),null!=t?t:null]})]})})}},98108:(e,t,r)=>{r.d(t,{T:()=>s});var a=r(30926);let s=(0,a.createServerReference)("78465dc96f058c6ca6317e53171e649a9df2c901ca",a.callServer,void 0,a.findSourceMapURL,"addCommentAction")}}]);
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.