PageSourceSearch

https://www.wishyork.com/_next/static/chunks/1875.8f831c23fb22fa63.js

js wishyork.com collected 2026-09-24 14:58:15 UTC 32,476 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]="68887876-553f-4519-8e1c-9af392e1a123",e._sentryDebugIdIdentifier="sentry-dbid-68887876-553f-4519-8e1c-9af392e1a123")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1875],{311:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("Gamepad2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]])},7872:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("Tent",[["path",{d:"M3.5 21 14 3",key:"1szst5"}],["path",{d:"M20.5 21 10 3",key:"1310c3"}],["path",{d:"M15.5 21 12 15l-3.5 6",key:"1ddtfw"}],["path",{d:"M2 21h20",key:"1nyx9w"}]])},15299:(e,t,a)=>{a.d(t,{w:()=>s});var r=a(30926);let s=(0,r.createServerReference)("4064429123eeddeebba69a57a2c4e10e127039144b",r.callServer,void 0,r.findSourceMapURL,"createWishlistAction")},19649:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
1],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]])},21875:(e,t,a)=>{a.r(t),a.d(t,{CreateCollectionWizard:()=>eT});var r=a(95155),s=a(51834),l=a(26615),n=a(95604),i=a(77600),o=a(12115),c=a(26541),d=a(15299),u=a(10820),p=a(15894),h=a(922),x=a(61717),m=a(97264),b=a(97905),g=a(9083),y=a(26549),v=a(93074),f=a(55666),k=a(6943),j=a(6713),N=a(61270),w=a(93777);let A=["month1","month2","month3","month4","month5","month6","month7","month8","month9","month10","month11","month12"];var C=a(64269);function E(e){let{step:t,total:a,stepLabel:s}=e;return(0,r.jsxs)("div",{className:"mb-6 space-y-2",children:[(0,r.jsx)("div",{className:"flex items-center px-1",children:Array.from({length:a},(e,s)=>{let l=s+1,n=t===l,i=t>l,c=(0,C.cn)("flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs",i&&"bg-primary font-semibold text-white",n&&!i&&"bg-[#171717] font-semibold text-white dark:bg-neutral-100 dark:text-neutral-900",!n&&!i&&"border border-[#EBEBEB] text-[#6B6B6B] dark:border-neutral-600");return(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)("div",{className:c,children:l}),s<a-1&&(0,r.jsx)("div",{className:"mx-2 h-px min-w-[8px] flex-1 bg-[#EBEBEB] dark:bg-neutral-700"})]},l)})}),(0,r.jsxs)("p",{className:"text-center text-xs font-normal normal-case text-[#8A8A80] dark:text-neutral-400",children:[s," ",t," / ",a]})]})}var S=a(92033),F=a(51982),B=a(88955),T=a(59338),D=a(58772),M=a(65142),I=a(76444),P=a(64757),L=a(15239);let _="text-xs font-medium text-[#8A8A80] uppercase tracking-wide dark:text-neutral-400 ml-1",R="rounded-[12px] border border-[#EBEBEB] bg-[#F9F9F9] px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800 focus-visible:border-primary focus-visible:ring-1 focus-visible:ring-primary/20",O="rounded-[16px] border border-[#EBEBEB] bg-white transition-colors hover:bg-[#F9F9F9] dark:border-neutral-700 dark:bg-neutral-900 dark:hover:bg-neutral-800",z="border-2 border-primary bg-primary/5";function U(e){let{name:t,coverType:a,coverUrl:s,coverFocalX:l,coverFocalY:i,selectedGradient:o,isOptimizing:c,isUploading:d,fileInputRef:u,t:p,onNameChange:h,onCoverTypeChange:x,onCoverUrlChange:m,onFileUpload:b,onAdjustPosition:g}=e,y=(0,n.useTranslations)("Common"),v=("upload"===a||"link"===a)&&!!s;return(0,r.jsxs)("div",{className:"animate-in slide-in-from-bottom-4 space-y-8 duration-500",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 items-center gap-8 md:grid-cols-2",children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(I.J,{className:_,children:p("coverArt")}),(0,r.jsxs)("div",{className:(0,C.cn)("group relative aspect-square cursor-pointer overflow-hidden rounded-[16px] border border-[#EBEBEB] dark:border-neutral-700",(c||d)&&"cursor-wait"),style:{background:"pattern"===a?o:"transparent"},children:[c||d?(0,r.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-2 bg-black/10",children:[(0,r.jsx)(S.A,{className:"h-8 w-8 animate-spin text-white"}),(0,r.jsx)("span",{className:"px-4 text-center text-[8px] font-medium uppercase tracking-wide text-white",children:p(c?"compressing":"uploading")})]}):v?(0,r.jsx)(L.default,{src:s,fill:!0,sizes:"100vw",className:"object-cover",style:{objectPosition:(0,P.Y)(l,i)},alt:"Cover preview"}):"pattern"===a?(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center opacity-30",children:(0,r.jsx)("span",{className:"select-none text-8xl font-bold uppercase text-white",children:t?t.charAt(0):"?"})}):null,(0,r.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center gap-3 bg-black/40 opacity-0 backdrop-blur-sm transition-opacity group-hover:opacity-100",children:[(0,r.jsx)("button",{type:"button",onClick:()=>{var e;return null==(e=u.current)?void 0:e.click()},className:"rounded-full bg-[#171717]/80 p-2 text-white transition-opacity hover:opacity-90",children:(0,r.jsx)(F.A,{className:"h-6 w-6"})}),(0,r.jsx)("button",{type:"button",onClick:()=>x("link"===a?"upload":"link"),className:"rounded-full bg-[#171717]/80 p-2 text-white transition-opacity hover:opacity-90",children:(0,r.jsx)(j.A,{className:"h-6 w-6"})}),v&&(0,r.jsx)("button",{type:"button",onClick:g,"aria-label":y("adju
1stPosition"),title:y("adjustPosition"),className:"rounded-full bg-[#171717]/80 p-2 text-white transition-opacity hover:opacity-90",children:(0,r.jsx)(B.A,{className:"h-6 w-6"})})]})]}),"link"===a&&(0,r.jsx)(M.p,{value:s,onChange:e=>{m(e.target.value),x("link")},onBlur:()=>x("link"),placeholder:p("linkPrompt"),className:(0,C.cn)(R,"h-12 text-base font-medium")})]}),(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(I.J,{className:_,children:p("collectionName")}),(0,r.jsx)(M.p,{value:t,onChange:e=>h(e.target.value),placeholder:p("placeholderName"),className:(0,C.cn)(R,"h-14 text-lg font-semibold"),autoFocus:!0})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(I.J,{className:_,children:p("visualStyle")}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>x("pattern"),className:(0,C.cn)("flex items-center gap-3 p-4 text-sm font-semibold",O,"pattern"===a&&z),children:[(0,r.jsx)(T.A,{className:"h-4 w-4 text-primary"})," ",p("smartPattern")]}),(0,r.jsxs)("button",{type:"button",onClick:()=>{var e;return!c&&!d&&(null==(e=u.current)?void 0:e.click())},className:(0,C.cn)("flex items-center gap-3 p-4 text-sm font-semibold",O,"upload"===a&&z),children:[(0,r.jsx)(D.A,{className:"h-4 w-4 text-primary"})," ",p("upload")]})]})]})]})]}),(0,r.jsx)("input",{type:"file",ref:u,className:"hidden",accept:"image/*",onChange:b})]})}var H=a(13141),q=a(5264),V=a(96711),Y=a(26721),J=a(77187),G=a(7872),W=a(311),$=a(22390),Z=a(19649),X=a(74206),K=a(36419),Q=a(10193),ee=a(60406),et=a(19201),ea=a(7646),er=a(22452),es=a(45218),el=a(50705),en=a(94908),ei=a(84913),eo=a(34068),ec=a(44575),ed=a(44381),eu=a(10639),ep=a(31120),eh=a(44846),ex=a(11186),em=a(31315),eb=a(59322),eg=a(78383);let ey={travel:H.A,art:q.A,health:V.A,environment:f.A,animals:Y.A,education:J.A,camping:G.A,gaming:W.A,book:J.A,beauty:T.A,fashion:$.A,tech:Z.A,cooking:X.A,sports:K.A,children:Q.A,social_services:k.A,disaster:ee.A,human_rights:et.A,pro_chambers:ea.A,other:er.A,retail:es.A,finance:el.A,logistics:en.A,manufacturing:ei.A,food_bev:X.A,construction:eo.A,consulting:ec.A},ev="text-xs font-medium text-[#8A8A80] uppercase tracking-wide dark:text-neutral-400 ml-1",ef="rounded-[12px] border border-[#EBEBEB] bg-[#F9F9F9] px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800 focus-visible:border-primary focus-visible:ring-1 focus-visible:ring-primary/20",ek="h-12 rounded-[12px] border border-[#EBEBEB] bg-[#F9F9F9] dark:border-neutral-700 dark:bg-neutral-800 focus:ring-primary/20 focus:ring-1 focus:border-primary",ej="rounded-[12px] border border-[#EBEBEB] dark:border-neutral-700";function eN(e){let{description:t,tags:a,tagInput:s,categories:i,profileType:o,showTargetDate:c,targetDay:d,targetMonth:u,targetYear:h,location:x,months:m,days:b,years:g,t:y,collectionT:v,onDescriptionChange:f,onTagInputChange:k,onTagKeyDown:j,onRemoveTag:N,onCategoriesChange:w,onShowTargetDateChange:A,onTargetDayChange:E,onTargetMonthChange:S,onTargetYearChange:F,onLocationChange:B,occasionType:D,onOccasionTypeChange:P}=e,L=(0,n.useTranslations)("Onboarding"),_="NGO"===o?"ngo":"COMPANY"===o?"company":(o||console.warn("[StepDetailsAndDate] profileType is undefined — defaulting to 'individual'"),"individual"),R=(0,eg.RO)(_);return(0,r.jsxs)("div",{className:"animate-in slide-in-from-right-4 space-y-8 duration-500",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(I.J,{className:ev,children:y("descriptionLabel")}),(0,r.jsx)(ep.T,{value:t,onChange:e=>f(e.target.value),placeholder:y("descriptionPlaceholder"),className:(0,C.cn)(ef,"min-h-[120px] resize-none text-base font-medium")})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(I.J,{className:ev,children:y("tagsLabel")}),(0,r.jsxs)("div",{className:"group relative",children:[(0,r.jsx)(ed.A,{className:"absolute left-3 top-1/2 h-5 w-5 -translate-y-1/2 text-[#8A8A80] dark:text-neutral-400"}),(0,r.jsx)(M.p,{value:s,onChange:e=>k(e.target.value),onKeyDown:j,placeholder:y("tagsPlaceholder"),className:(0,C.cn)(ef,"h-12 pl-11 text-base font-medium")})]}),(0,r.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:y("tagsHint")}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:a.map(e=>(0,r.jsxs)("div",{className:"group flex animate-in zoom-in items-center gap-2 rounded-full border border-primary/30 bg-primary/10 px-4 py-2 text-xs font-semibold text-primary",children:[(0,r.jsxs)("span",{children:["#",e]}),(0,r.jsx)("button",{type:"button",onClick:()=>N(e),className:"transition-colors hover:text-[#171717] dark:hover:text-white",children:(0,r.jsx)(l.A,{className:"h-3 w-3"})})]},e))}),(0,r.jsx)("p",{className:(0,C.cn)("text-xs",a.length>
1=5?"text-amber-600 dark:text-amber-400":"text-neutral-400 dark:text-neutral-500"),children:a.length>=5?y("tagLimitReached"):y("tagCounter",{count:a.length})})]}),R.length>0&&(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)(I.J,{className:ev,children:y("categoriesLabel")}),(0,r.jsxs)("span",{className:(0,C.cn)("text-xs font-medium",i.length>=5?"text-primary":"text-muted-foreground"),children:[i.length,"/",5]})]}),(0,r.jsx)("div",{className:"grid grid-cols-3 gap-2",children:R.map(e=>{var t;let{id:a,label:s}=e,l=null!=(t=ey[a])?t:T.A,n=i.includes(a);return(0,r.jsxs)("button",{type:"button",onClick:()=>{i.includes(a)?w(i.filter(e=>e!==a)):i.length>=5?(0,p.oR)({title:L("maxInterestsToastTitle"),description:L("maxInterestsToastDesc")}):w([...i,a])},className:(0,C.cn)("group flex flex-col items-center justify-center rounded-[12px] border p-3 shadow-[0_2px_12px_rgba(0,0,0,0.08)] transition-all duration-200 hover:shadow-[0_4px_20px_rgba(0,0,0,0.12)] active:scale-95",n?"scale-[1.02] border-2 border-primary bg-primary/10":"border-[#EBEBEB] bg-white dark:border-neutral-700 dark:bg-neutral-900"),children:[(0,r.jsx)("div",{className:(0,C.cn)("mb-1.5 flex h-8 w-8 items-center justify-center rounded-xl transition-colors",n?"bg-primary text-foreground":"bg-[#F9F9F9] text-muted-foreground group-hover:text-foreground dark:bg-neutral-800 dark:group-hover:text-neutral-200"),children:(0,r.jsx)(l,{className:"h-4 w-4"})}),(0,r.jsx)("span",{className:(0,C.cn)("text-center text-[10px] font-semibold normal-case leading-tight",n?"text-primary":"text-muted-foreground group-hover:text-foreground dark:group-hover:text-neutral-200"),children:L("interestLabels.".concat(s))})]},a)})})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(I.J,{className:ev,children:y("occasionLabel")}),(0,r.jsxs)(ex.l6,{value:D||"",onValueChange:P,children:[(0,r.jsx)(ex.bq,{className:ek,children:(0,r.jsx)(ex.yv,{placeholder:y("occasionPlaceholder")})}),(0,r.jsx)(ex.gC,{className:ej,children:eb.E.map(e=>{let t=(0,eb.$)(e),a=(0,em.W)(e);return a?(0,r.jsx)(ex.eb,{value:e,className:"rounded-lg",children:(0,r.jsxs)("span",{className:"flex items-center gap-2",children:[(0,r.jsx)(t,{className:"h-3.5 w-3.5"}),y(a)]})},e):null})})]}),(0,r.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:y("occasionHint")})]}),(0,r.jsxs)("div",{className:"space-y-6 rounded-[16px] border border-[#EBEBEB] bg-[#F9F9F9] p-6 dark:border-neutral-700 dark:bg-neutral-800/50",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("h4",{className:"text-base font-semibold normal-case text-[#171717] dark:text-neutral-100",children:y("targetDateLabel")}),(0,r.jsx)("p",{className:"text-xs font-medium uppercase tracking-wide text-[#8A8A80] dark:text-neutral-400",children:y("targetDateDesc")})]}),(0,r.jsx)(eh.d,{checked:c,onCheckedChange:A})]}),c&&(0,r.jsxs)("div",{className:"grid animate-in slide-in-from-top-4 grid-cols-3 gap-3 duration-300",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(I.J,{className:(0,C.cn)(ev,"!ml-0"),children:"Day"}),(0,r.jsxs)(ex.l6,{value:d,onValueChange:E,children:[(0,r.jsx)(ex.bq,{className:ek,children:(0,r.jsx)(ex.yv,{placeholder:"Day"})}),(0,r.jsx)(ex.gC,{className:ej,children:b.map(e=>(0,r.jsx)(ex.eb,{value:e,className:"rounded-lg",children:e},e))})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(I.J,{className:(0,C.cn)(ev,"!ml-0"),children:"Month"}),(0,r.jsxs)(ex.l6,{value:u,onValueChange:S,children:[(0,r.jsx)(ex.bq,{className:ek,children:(0,r.jsx)(ex.yv,{placeholder:"Month"})}),(0,r.jsx)(ex.gC,{className:ej,children:m.map((e,t)=>(0,r.jsx)(ex.eb,{value:String(t+1),className:"rounded-lg",children:e},e))})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(I.J,{className:(0,C.cn)(ev,"!ml-0"),children:"Year"}),(0,r.jsxs)(ex.l6,{value:h,onValueChange:F,children:[(0,r.jsx)(ex.bq,{className:ek,children:(0,r.jsx)(ex.yv,{placeholder:"Year"})}),(0,r.jsx)(ex.gC,{className:ej,children:g.map(e=>(0,r.jsx)(ex.eb,{value:e,className:"rounded-lg",children:e},e))})]})]})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(I.J,{className:ev,children:y("locationLabel")}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(eu.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#8A8A80] dark:text-neutral-400","aria-hidden":!0}),(0,r.jsx)(M.p,{value:x,onChange:e=>B(e.target.value),placeholder:y("locationPlaceholder"),className:(0,C.cn)(ef,"h-12 pl-10 text-base font-medium"),autoComplete:"address-level2"})]}),(0,r.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:v("locationHint")})]})]})}var ew=a(50984);function eA(e){let{privacy:t,privacyOptions:a,t:s,giftSafetyT:l,onPrivacyChange:n}=e;return(0,r.jsxs)("div",{className:"animate-in slide-in-from-right-4 space-y-6 duration-500",children:[(0,r.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:a.map(e=>{let a=e.icon,s=t===e.id;return(0,r.jsxs)("button",{type:"button",onClick:()=>n(e.id),className:(0,C.cn)("group relative flex flex-col overflow-hidden rounded-[16px] border border-[#
1EBEBEB] bg-white p-6 text-left transition-colors hover:bg-[#F9F9F9] dark:border-neutral-700 dark:bg-neutral-900 dark:hover:bg-neutral-800",s&&"border-2 border-primary bg-primary/5"),children:[(0,r.jsxs)("div",{className:"mb-4 flex items-start justify-between",children:[(0,r.jsx)("div",{className:"rounded-[12px] border border-[#EBEBEB] bg-[#F9F9F9] p-3 dark:border-neutral-700 dark:bg-neutral-800",children:(0,r.jsx)(a,{className:"h-6 w-6 text-primary"})}),s&&(0,r.jsx)(ew.A,{className:"h-5 w-5 text-primary"})]}),(0,r.jsx)("h3",{className:"mb-1 text-base font-semibold normal-case text-[#171717] dark:text-neutral-100",children:e.title}),(0,r.jsx)("p",{className:"text-xs font-medium uppercase tracking-tight leading-relaxed text-muted-foreground",children:e.desc})]},e.id)})}),(0,r.jsx)("div",{className:"space-y-2 rounded-[16px] border border-dashed border-[#EBEBEB] bg-[#F9F9F9] p-6 text-center dark:border-neutral-700 dark:bg-neutral-900/50",children:(0,r.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wide text-[#8A8A80] dark:text-neutral-400",children:s("privacyNote")})}),("PUBLIC"===t||"FOLLOWERS"===t||"FRIENDS"===t)&&(0,r.jsx)("div",{className:"mt-3 rounded-[12px] border border-blue-200 bg-blue-50 p-4 dark:border-blue-800 dark:bg-blue-950",children:(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)(et.A,{className:"mt-0.5 h-5 w-5 shrink-0 text-blue-600"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"mb-1 text-sm font-semibold text-blue-900 dark:text-blue-100",children:l("createNoticeTitle")}),(0,r.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:l("createNoticeBody")})]})]})})]})}var eC=a(33173),eE=a(51190),eS=a(3998);function eF(e){let{step:t,isLoading:a,isOptimizing:s,isUploading:l,canProceedStep1:n,t:i,onNext:o,onPrev:c,onFinish:d}=e;return(0,r.jsxs)("div",{className:"shrink-0 border-t border-[#EBEBEB] px-6 pb-6 pt-4 dark:border-neutral-700 md:px-8",children:[1===t&&(0,r.jsxs)(eS.$,{type:"button",variant:"cta",rounded:"full",onClick:o,disabled:!n||s||l,className:"w-full",children:[i("nextStep")," ",(0,r.jsx)(eC.A,{className:"inline-block h-6 w-6"})]}),2===t&&(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)(eS.$,{type:"button",variant:"secondary",rounded:"full",size:"icon",onClick:c,"aria-label":"Back",className:"p-3",children:(0,r.jsx)(eE.A,{className:"h-5 w-5"})}),(0,r.jsxs)(eS.$,{type:"button",variant:"cta",rounded:"full",onClick:o,className:"flex-1",children:[i("nextStep")," ",(0,r.jsx)(eC.A,{className:"inline-block h-6 w-6"})]})]}),3===t&&(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)(eS.$,{type:"button",variant:"secondary",rounded:"full",size:"icon",onClick:c,"aria-label":"Back",className:"p-3",children:(0,r.jsx)(eE.A,{className:"h-5 w-5"})}),(0,r.jsx)(eS.$,{type:"button",variant:"default",rounded:"full",onClick:d,disabled:a,className:"flex-1",children:a?(0,r.jsx)(S.A,{className:"mx-auto h-6 w-6 animate-spin"}):(0,r.jsxs)(r.Fragment,{children:[i("finish")," ",(0,r.jsx)(eC.A,{className:"inline-block h-6 w-6"})]})})]})]})}var eB=a(86772);function eT(e){let{open:t,onOpenChange:a}=e,{t:C,collectionT:S,giftSafetyT:F,state:B,setters:T,handlers:D,refs:M}=function(e){let{onOpenChange:t,eventId:a,onSuccess:r,profileType:s}=e,l=(0,n.useTranslations)("CollectionWizard"),i=(0,n.useTranslations)("Common"),C=(0,v.$)(),E=(0,n.useTranslations)("collection"),S=(0,n.useTranslations)("giftSafety"),F=(0,c.rd)(),[B,T]=(0,o.useState)(1),[D,M]=(0,o.useState)(!1),[I,P]=(0,o.useState)(!1),[L,_]=(0,o.useState)(!1),R=(0,m.GZ)(m.P$),[O,z]=(0,o.useState)(""),[U,H]=(0,o.useState)("pattern"),[q,V]=(0,o.useState)(""),[Y,J]=(0,o.useState)(50),[G,W]=(0,o.useState)(50),[$,Z]=(0,o.useState)(!1),X=(0,o.useRef)(null),{startUpload:K,isUploading:Q}=(0,g.rs)("imageUploader",{onClientUploadComplete:e=>{V(e[0].url),H("upload"),J(50),W(50),Z(!0),(0,p.oR)({title:l("toastCoverUploadedTitle"),description:l("toastCoverUploadedDesc")})},onUploadError:e=>(0,g.eA)(e,{title:i("uploadErrorTitle")})}),[ee,et]=(0,o.useState)(""),[ea,er]=(0,o.useState)([]),[es,el]=(0,o.useState)(""),[en,ei]=(0,o.useState)([]),[eo,ec]=(0,o.useState)(!1),[ed,eu]=(0,o.useState)(String(new Date().getDate())),[ep,eh]=(0,o.useState)(String(new Date().getMonth()+1)),[ex,em]=(0,o.useState)(String(new Date().getFullYear())),[eb,eg]=(0,o.useState)("FRIENDS"),[ey,ev]=(0,o.useState)(""),[ef,ek]=(0,o.useState)(""),ej=A.map(e=>l(e)),eN=Array.from({length:31},(e,t)=>String(t+1)),ew=new Date().getFullYear(),eA=Array.from({length:20},(e,t)=>String(ew+t)),[eC,eE]=(0,o.useState)(y.C[0]);(0,o.useEffect)(()=>
1{if(O&&1===B){let e=O.split("").reduce((e,t)=>e+t.charCodeAt(0),0);eE(y.C[e%y.C.length])}},[O,B]);let eS=async e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];if(a&&C(a,e.target)){P(!0);try{let e=await (0,b.w4)(a,"HEADER_COVER");P(!1),K([e])}catch(e){P(!1),K([a])}}},eF=async()=>{M(!0);let e=ep.padStart(2,"0"),s=ed.padStart(2,"0"),l=eo?"".concat(ex,"-").concat(e,"-").concat(s):void 0,n=await (0,d.w)({title:O,description:ee,location:ey.trim()||null,privacy:eb,tags:ea,categories:en,targetDate:l,coverImageUrl:"pattern"!==U?q:void 0,coverFocalX:Y,coverFocalY:G,eventId:a,occasionType:ef||null});n.success?((0,u.sx)("wishlist_created"),t(!1),r?r(n.listId):F.push("/collections/".concat((0,w.Rv)(n.listId,O))),(0,p.oR)({title:"Success!",description:"Your collection has been created."})):(0,x.A)(n.error)?(t(!1),_(!0)):(0,p.oR)({variant:"destructive",title:"Error",description:(0,h.u)("string"==typeof n.error?n.error:"",i)}),M(!1)},eB=[{id:"PUBLIC",title:l("privacyPublic"),desc:l("privacyPublicDesc"),icon:f.A},{id:"FOLLOWERS",title:l("privacyFollowers"),desc:l("privacyFollowersDesc"),icon:k.A},{id:"FRIENDS",title:l("privacyFriends"),desc:l("privacyFriendsDesc"),icon:k.A}
1,{id:"INVITE_ONLY",title:l("privacyInvite"),desc:l("privacyInviteDesc"),icon:j.A},{id:"PRIVATE",title:l("privacyPrivate"),desc:l("privacyPrivateDesc"),icon:N.A}];return{t:l,collectionT:E,giftSafetyT:S,state:{step:B,isLoading:D,isOptimizing:I,isUploading:Q,name:O,coverType:U,coverUrl:q,coverFocalX:Y,coverFocalY:G,isFocalPickerOpen:$,description:ee,tags:ea,tagInput:es,categories:en,showTargetDate:eo,targetDay:ed,targetMonth:ep,targetYear:ex,privacy:eb,location:ey,occasionType:ef,selectedGradient:eC,months:ej,days:eN,years:eA,privacyOptions:eB,profileType:null!=s?s:"INDIVIDUAL",guestAuthOpen:L,guestCreateSignupHref:R},setters:{setName:z,setCoverType:H,setCoverUrl:V,setIsFocalPickerOpen:Z,setDescription:et,setTagInput:el,setCategories:ei,setShowTargetDate:ec,setTargetDay:eu,setTargetMonth:eh,setTargetYear:em,setPrivacy:eg,setLocation:ev,setOccasionType:ek,setGuestAuthOpen:_},handlers:{handleFileUpload:eS,openFocalPicker:()=>{q&&Z(!0)},handleFocalComplete:(e,t)=>{J(e),W(t)},handleAddTag:e=>{if("Enter"===e.key&&es.trim()){e.preventDefault();let t=es.trim().replace(/^#/,"").replace(/\s+/g,"");ea.length>=5||(ea.includes(t)||er([...ea,t]),el(""))}},removeTag:e=>{er(ea.filter(t=>t!==e))},handleFinish:eF,nextStep:()=>{B<3?T(e=>e+1):eF()},prevStep:()=>T(e=>e-1)},refs:{fileInputRef:X}}}({open:t,onOpenChange:a,eventId:e.eventId,onSuccess:e.onSuccess,profileType:e.profileType}),{step:I,isLoading:P,isOptimizing:L,isUploading:_,name:R,coverType:O,coverUrl:z,coverFocalX:H,coverFocalY:q,isFocalPickerOpen:V,selectedGradient:Y,description:J,tags:G,tagInput:W,categories:$,showTargetDate:Z,targetDay:X,targetMonth:K,targetYear:Q,privacy:ee,location:et,months:ea,days:er,years:es,privacyOptions:el,occasionType:en,profileType:ei,guestAuthOpen:eo,guestCreateSignupHref:ec}=B,ed=(0,n.useTranslations)("Hub");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.lG,{open:t,onOpenChange:a,children:(0,r.jsx)(s.Cf,{className:"max-w-xl p-0 border-none bg-transparent shadow-none overflow-visible [&>button]:hidden",onPointerDownOutside:e=>{V&&e.preventDefault()},onEscapeKeyDown:e=>{V&&e.preventDefault()},children:(0,r.jsxs)("div",{className:"relative flex max-h-[90vh] flex-col rounded-[16px] border border-[#EBEBEB] bg-white shadow-[0_8px_40px_rgba(0,0,0,0.12)] dark:border-neutral-700 dark:bg-neutral-900 animate-in zoom-in-95 duration-300",children:[(0,r.jsxs)(s.HM,{type:"button",className:"absolute right-4 top-4 z-10 flex min-h-[44px] min-w-[44px] items-center justify-center rounded-full 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,r.jsx)(l.A,{className:"size-4 text-[#8A8A80] dark:text-neutral-400"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]}),(0,r.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto no-scrollbar p-6 pt-14 md:p-8 md:pt-16",children:[(0,r.jsxs)(s.c7,{className:"mb-8",children:[(0,r.jsx)(E,{step:I,total:3,stepLabel:C("step")}),(0,r.jsx)(s.L3,{className:"text-center text-xl font-bold normal-case text-[#171717] dark:text-neutral-100",children:C(1===I?"step1Title":2===I?"step2Title":"step3Title")}),(0,r.jsx)("p",{className:"mt-2 text-center font-medium text-muted-foreground",children:C(1===I?"step1Subtitle":2===I?"step2Subtitle":"step3Subtitle")})]}),1===I&&(0,r.jsx)(U,{name:R,coverType:O,coverUrl:z,coverFocalX:H,coverFocalY:q,selectedGradient:Y,isOptimizing:L,isUploading:_,fileInputRef:M.fileInputRef,t:C,onNameChange:T.setName,onCoverTypeChange:T.setCoverType,onCoverUrlChange:T.setCoverUrl,onFileUpload:D.handleFileUpload,onAdjustPosition:D.openFocalPicker}),2===I&&(0,r.jsx)(eN,{description:J,tags:G,tagInput:W,categories:$,profileType:ei,showTargetDate:Z,targetDay:X,targetMonth:K,targetYear:Q,location:et,months:ea,days:er,years:es,t:C,collectionT:S,onDescriptionChange:T.setDescription,onTagInputChange:T.setTagInput,onTagKeyDown:D.handleAddTag,onRemoveTag:D.removeTag,onCategoriesChange:T.setCategories,onShowTargetDateChange:T.setShowTargetDate,onTargetDayChange:T.setTargetDay,onTargetMonthChange:T.setTargetMonth,onTargetYearChange:T.setTargetYear,onLocationChange:T.setLocation,occasionType:en,onOccasionTypeChange:T.setOccasionType}),3===I&&(0,r.jsx)(eA,{privacy:ee,privacyOptions:el,t:C,giftSafetyT:F,onPrivacyChange:T.setPrivacy})]}),(0,r.jsx)(eF,{step:I,isLoading:P,isOptimizing:L,isUploading:_,canProceedStep1:!!R,t:C,onNext:D.nextStep,onPrev:D.prevStep,onFinish:D.handleFinish})]})})}),z&&(0,r.jsx)(i.Q,{image:z,open:V,onOpenChange:T.setIsFocalPickerOpen,onComplete:D.handleFocalComplete,initialFocalX:H,initialFocalY:q}),(0,r.jsx)(eB.GuestAuthModal,{open:eo,onOpenChange:T.setGuestAuthOpen,title:ed("guestCreateWallTitle"),description:ed("guestCreateWallMessage"),ctaLabel:ed("guestCreateWallCta"),signupHref:ec})]})}},26721:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("PawPrint",[["circle",{cx:"11",cy:"4",r:"2",key:"vol9p0"}],["circle",{cx:"18",cy:"8",r:"2",key:"17gozi"}],["circle",{cx:"20",cy:"16",r:"2",key:"1v9bxh"}],["path",{d:"M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z",key:"1ydw1z"}]])},27599:(e,t,a)=>{a.d(t,{bL:()=>j,zi:()=>N});var r=a(12115),s=a(92556),l=a(94446),n=a(3468),i=a(23558),o=a(78108),c=a(84288),d=a(88142),u=a(95155),p="Switch",[h,x]=(0,n.A)(p
1),[m,b]=h(p),g=r.forwardRef((e,t)=>{let{__scopeSwitch:a,name:n,checked:o,defaultChecked:c,required:p,disabled:h,value:x="on",onCheckedChange:b,form:g,...y}=e,[v,j]=r.useState(null),N=(0,l.s)(t,e=>j(e)),w=r.useRef(!1),A=!v||g||!!v.closest("form"),[C=!1,E]=(0,i.i)({prop:o,defaultProp:c,onChange:b});return(0,u.jsxs)(m,{scope:a,checked:C,disabled:h,children:[(0,u.jsx)(d.sG.button,{type:"button",role:"switch","aria-checked":C,"aria-required":p,"data-state":k(C),"data-disabled":h?"":void 0,disabled:h,value:x,...y,ref:N,onClick:(0,s.m)(e.onClick,e=>{E(e=>!e),A&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})}),A&&(0,u.jsx)(f,{control:v,bubbles:!w.current,name:n,value:x,checked:C,required:p,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});g.displayName=p;var y="SwitchThumb",v=r.forwardRef((e,t)=>{let{__scopeSwitch:a,...r}=e,s=b(y,a);return(0,u.jsx)(d.sG.span,{"data-state":k(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t})});v.displayName=y;var f=e=>{let{control:t,checked:a,bubbles:s=!0,...l}=e,n=r.useRef(null),i=(0,o.Z)(a),d=(0,c.X)(t);return r.useEffect(()=>{let e=n.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(i!==a&&t){let r=new Event("click",{bubbles:s});t.call(e,a),e.dispatchEvent(r)}},[i,a,s]),(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...l,tabIndex:-1,ref:n,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function k(e){return e?"checked":"unchecked"}var j=g,N=v},34068:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("HardHat",[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]])},44846:(e,t,a)=>{a.d(t,{d:()=>i});var r=a(95155),s=a(12115),l=a(27599),n=a(64269);let i=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(l.bL,{className:(0,n.cn)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",a),...s,ref:t,children:(0,r.jsx)(l.zi,{className:(0,n.cn)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})});i.displayName=l.bL.displayName},45218:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]])},50705:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]])},74206:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]])},78383:(e,t,a)=>{a.d(t,{i1:()=>s,Bn:()=>l,RO:()=>i});let r=[{id:"travel",label:"travel"},{id:"art",label:"art"},{id:"health",label:"health"},{id:"environment",label:"environment"},{id:"animals",label:"animals"},{id:"education",label:"education"}],s=[...r,{id:"camping",label:"camping"},{id:"gaming",label:"gaming"},{id:"book",label:"book"},{id:"beauty",label:"beauty"},{id:"fashion",label:"fashion"},{id:"tech",label:"tech"},{id:"cooking",label:"cooking"}],l=[...r,{id:"sports",label:"sports"},{id:"children",label:"children"},{id:"social_services",label:"social_services"},{id:"disaster",label:"disaster"},{id:"human_rights",label:"human_rights"},{id:"pro_chambers",label:"pro_chambers"},{id:"other",label:"other"}],n=[];function i(e){switch(e){case"individual":return s;case"ngo":return l;case"company":return n}}},84913:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("Factory",[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]])},94908:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]])}}]);

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.