1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8327],{7899:(e,t,l)=>{var s;l.d(t,{eq:()=>a});let a={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};s||(s={})},24338:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(78340).A)("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]])},30234:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(78340).A)("image-plus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},48368:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(78340).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},58023:(e,t,l)=>{l.r(t),l.d(t,{default:()=>y});var s=l(95155),a=l(80642),n=l(39457),i=l(94514),r=l(92564),d=l(4474),o=l(16716),h=l(74350),c=l(33210),x=l(58246);let u=({isOpen:e,onOpenChange:t,onOpenChat:l,onSubmitAnother:a,t:n})=>(0,s.jsx)(h.lG,{open:e,onOpenChange:t,children:(0,s.jsxs)(h.Cf,{className:"w-[95%] sm:w-[400px] overflow-hidden squircle p-0 border-none bg-[#1A1A1A] text-white shadow-2xl ring-1 ring-white/10 animate-in fade-in zoom-in duration-300",children:[(0,s.jsx)(h.L3,{className:"sr-only",children:"Bespoke order already requested"}),(0,s.jsxs)("div",{className:"relative p-4 pt-10",children:[(0,s.jsx)("button",{onClick:()=>t(!1),className:"absolute top-4 right-4 p-2 rounded-full bg-white/5 hover:bg-white/10 transition-all z-50 text_gray_50",children:(0,s.jsx)(c.A,{className:"w-5 h-5"})}),(0,s.jsxs)("div",{className:"flex items-start gap-2 mb-8",children:[(0,s.jsxs)("div",{className:"relative w-24 h-24 shrink-0",children:[(0,s.jsx)("div",{className:"absolute inset-0"}),(0,s.jsx)("div",{className:"relative z-10 w-full h-full flex items-center justify-center",children:(0,s.jsx)(x.A,{src:"/sugary-web-assets/animations/gift-sending.json",loop:!0,className:"w-full h-full"})})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start text-left pt-2",children:[(0,s.jsx)("h2",{className:"text-xl md:text-lg font-bold mb-3 tracking-tight",children:n.bespoke.already_requested}),(0,s.jsx)("p",{className:"text_gray_50 text-lg md:text-sm leading-relaxed",children:n.bespoke.already_requested_desc})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4 w-full",children:[(0,s.jsx)(d.$,{onClick:()=>{t(!1),l()},variant:"outline",className:"h-[52px] rounded-2xl bg-white/5 border-none hover:bg-white/10 text-white font-bold text-xl md:text-sm transition-all",children:n.bespoke.open_chat}),(0,s.jsx)(d.$,{onClick:a,className:"h-[52px] rounded-2xl bg-[#05664F] hover:bg-[#045542] text-white font-bold text-xl md:text-sm shadow-lg shadow-emerald-900/20 transition-all",children:n.bespoke.submit_another})]})]})]})});var p=l(2693),m=l(23591),f=l(12115),g=l(51781),v=l(62795);let b=(0,l(37206).default)(()=>l.e(4918).then(l.bind(l,64918)),{loadableGenerated:{webpack:()=>[64918]},ssr:!1}),y=({store:e,isReviewsModalOpen:t,setIsReviewsModalOpen:l,isBespokeModalOpen:h,setIsBespokeModalOpen:c,isAlreadyRequestedModalOpen:x,setIsAlreadyRequestedModalOpen:y,showBespokeSuccessPopup:w,setShowBespokeSuccessPopup:k})=>{let j=(0,p.n)(e=>e.language),_=m.P[j],[N,A]=(0,f.useState)([]),[M,C]=(0,f.useState)(!1),[q,I]=(0,f.useState)(!1),[O,z]=(0,f.useState)(!0),R=(0,f.useRef)(null),S=(0,f.useRef)(null),H=(0,f.useRef)(!1);(0,f.useEffect)(()=>{t&&e?.Id?(C(!0),z(!0),(0,g.a8)(e.Id,e?.Uid,0,6).then(e=>{A(e||[]),(!e||e.length<6)&&z(!1)}).finally(()=>{C(!1)})):t||(A([]),z(!0))},[t,e?.Id,e?.Uid]);let E=()=>
1{if(H.current||!O||!e?.Id)return;H.current=!0,I(!0);let t=N.length;(0,g.a8)(e.Id,e?.Uid,t,6).then(e=>{(!e||e.length<6)&&z(!1),e&&e.length>0&&A(t=>[...t,...e])}).finally(()=>{H.current=!1,I(!1)})},V=(0,f.useRef)(E);(0,f.useEffect)(()=>{V.current=E}),(0,f.useEffect)(()=>{let e=S.current,l=R.current;if(!t||!e||!l||!O)return;let s=new IntersectionObserver(([e])=>{e.isIntersecting&&V.current()},{root:l,rootMargin:"200px"});return s.observe(e),()=>s.disconnect()},[t,O,N.length]);let L=()=>{e?.Id&&v.c.getState().openDrawer({storeId:e.Id})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b,{isReviewsModalOpen:t,setIsReviewsModalOpen:l,reviews:N,isLoading:M,isLoadingMore:q,scrollContainerRef:R,sentinelRef:S,store:e}),(0,s.jsx)(o.l,{isOpen:h,onOpenChange:c,store:e,t:_,onOpenChat:L}),(0,s.jsx)(u,{isOpen:x,onOpenChange:y,onOpenChat:()=>{y(!1),L()},onSubmitAnother:()=>{y(!1),c(!0)},t:_}),(0,s.jsx)(a.N,{children:w&&(0,s.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-4 pointer-events-none",children:(0,s.jsx)(n.P.div,{initial:{opacity:0,scale:.9,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:20},className:"w-full max-w-md bg-[#1A1A1A] border border-white/10 rounded-[32px] p-6 shadow-2xl pointer-events-auto backdrop-blur-xl ring-1 ring-white/10",children:(0,s.jsxs)("div",{className:"flex flex-col items-center text-center space-y-4",children:[(0,s.jsx)("div",{className:"w-16 h-16 rounded-full bg-emerald-500/10 flex items-center justify-center mb-2",children:(0,s.jsx)(i.A,{className:"w-8 h-8 text-emerald-500"})}),(0,s.jsx)("h3",{className:"text-xl font-bold text-white tracking-tight",children:"Booking Requested!"}),(0,s.jsx)("p",{className:"text-white/50 text-sm leading-relaxed",children:"Successfully requested a booking for bespoke, please proceed to the chat to discuss further details."}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 w-full pt-2",children:[(0,s.jsx)(d.$,{variant:"ghost",onClick:()=>k(!1),className:"flex-1 h-12 rounded-2xl bg-white/5 border-none hover:bg-white/10 text-white font-bold text-sm",children:"Dismiss"}),(0,s.jsxs)(d.$,{onClick:()=>{k(!1),L()},className:"flex-1 h-12 rounded-2xl bg-emerald-600 hover:bg-emerald-500 text-white font-bold text-sm flex items-center justify-center gap-2",children:[(0,s.jsx)(r.A,{className:"w-4 h-4"}),"Open Chat"]})]})]})})})})]})}},78256:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(78340).A)("file-plus-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]])}}]);
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.