1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5246],{2275:function(e,t,n){n.d(t,{Z:function(){return y}});var r=n(59499),a=n(67294),l=n(41664),i=n.n(l),s=n(25675),o=n.n(s),c=n(30719),u=n(71911),d=n(12161),m=n(38383),f=n(2121),v=n(80714),p=n(48799);n(66761),n(60853),n(67555);var x=n(85893);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}u.ZP.use([u.W_,u.tl]);var g=function(e){return e.src},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/\.pdf($|\?)/i.test(e)},N={768:{slidesPerView:2},992:{slidesPerView:3},1200:{slidesPerView:4}},j=function(){var e=window.innerWidth;return e>=1200?4:e>=992?3:e>=768?2:1};function y(e){var t=e.items,n=void 0===t?[]:t,r=e.title,l=(0,a.useState)(null),s=l[0],u=l[1],h=(0,a.useState)(!1),y=h[0],k=h[1],_=(0,a.useState)("swiper"),E=_[0],C=_[1];if((0,a.useEffect)(function(){var e=function(){k(n.length>j())};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[n.length]),!n.length)return null;var T=function(e){var t,n,r=null===(t=e.images)||void 0===t?void 0:t[0],a=(0,v.Cf)(r,{folderPrefix:"Images/"}),l=a.cldSrc,s=a.blurDataURL,c=a.remoteUrl,u=w(c)?"":c,d=s?{placeholder:"blur",blurDataURL:s}:{},m=!1!==e.publishToWebsite,p=(0,x.jsxs)("div",{className:"relative",children:[l?(0,x.jsx)("div",{className:"relative h-0 w-full overflow-hidden rounded-md pb-[100%]",children:(0,x.jsx)(f.bz,b({src:l,alt:(null==r?void 0:r.altText)||e.title,fill:!0,style:{objectFit:"cover"},sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"rounded-md grayscale opacity-70 hover:opacity-80 hover:grayscale-0",priority:!0},d))}):u?(0,x.jsx)("div",{className:"relative h-0 w-full overflow-hidden rounded-md pb-[100%]",children:(0,x.jsx)(o(),b({loader:g,unoptimized:!0,src:u,alt:(null==r?void 0:r.altText)||e.title,fill:!0,style:{objectFit:"cover"},sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"rounded-md grayscale opacity-70 hover:opacity-80 hover:grayscale-0",priority:!0},d))}):(0,x.jsx)("div",{className:"aspect-square rounded-md bg-gradient-to-r from-green-400 to-blue-500 opacity-70"}),(0,x.jsxs)("div",{className:"absolute bottom-4 left-6 right-6 text-white drop-shadow-md",children:[(0,x.jsx)("p",{className:"text-lg font-helveticaNeueBold italic",children:e.title}),(null===(n=e.mediaBrand)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.name)&&(0,x.jsx)("p",{className:"text-sm font-helveticaNeueMed",children:e.mediaBrand[0].name}),e.date&&(0,x.jsx)("p",{className:"text-sm",children:new Intl.DateTimeFormat("en-GB",{year:"numeric",month:"long",day:"numeric"}).format(new Date(e.date))})]})]});return m?(0,x.jsx)(i(),{href:"/press/".concat(e.slug),passHref:!0,children:p}):p};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("hr",{}),(0,x.jsxs)("div",{className:"my-4 flex items-center justify-between gap-4",children:[(0,x.jsx)("h3",{className:"text-xl font-bold",children:r}),n.length>1&&(0,x.jsx)(p.Z,{viewMode:E,onChange:C})]}),"grid"===E?(0,x.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:n.map(function(e){return(0,x.jsx)("div",{children:T(e)},e.id||e.slug)})}):(0,x.jsxs)("div",{className:"relative",children:[(0,x.jsxs)(c.tq,{spaceBetween:15,slidesPerView:1,breakpoints:N,pagination:{clickable:!0,el:".swiper-pagination-press"},onSwiper:function(e){u(e),k(n.length>j())},onBreakpoint:function(){return k(n.length>j())},className:"responsive-card-swiper-4 mb-6",children:[n.map(function(e){return(0,x.jsx)(c.o5,{children:T(e)},e.id||e.slug)}),(0,x.jsx)("div",{className:"swiper-pagination-press flex justify-center mt-4 mb-4"})]}),y&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("button",{className:"absolute top-1/2 -translate-y-1/2 left-4 z-20 hidden rounded-full border bg-transparent p-2 text-white hover:border-black hover:text-black md:flex",onClick:function(){return null==s?void 0:s.slidePrev()},children:(0,x.jsx)(d.Z,{className:"h-5 w-5"})}),(0,x.jsx)("button",{className:"absolute top-1/2 -translate-y-1/2 right-4 z-20 hidden rounded-full border bg-transparent p-2 text-white hover:border-black hover:text-black md:flex",onClick:function(){return null==s?void 0:s.slideNext()},children:(0,x.jsx)(m.Z,{className:"h-5 w-5"})})]})]})]})}}
1,77642:function(e,t,n){n.d(t,{Z:function(){return y}});var r=n(50029),a=n(83618),l=n(64687),i=n.n(l),s=n(67294),o=n(4730),c=["title","titleId"],u=s.forwardRef(function(e,t){var n=e.title,r=e.titleId,a=(0,o.Z)(e,c);return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},a),n?s.createElement("title",{id:r},n):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"}))}),d=n(69963),m=["title","titleId"],f=s.forwardRef(function(e,t){var n=e.title,r=e.titleId,a=(0,o.Z)(e,m);return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},a),n?s.createElement("title",{id:r},n):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))}),v=n(85893);function p(e){return String(e||"").trim()}function x(e){var t=p(e);if(!t)return"";var n=new Date(t);return Number.isNaN(n.getTime())?"":new Intl.DateTimeFormat("en-GB",{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"}).format(n)}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return p(e).split(/\s+/).filter(Boolean)[0]||""}function b(e){var t,n,r=(null==e?void 0:e.person)||{};return{fullName:p(null==r?void 0:r.fullName)||[null==r?void 0:r.firstName,null==r?void 0:r.lastName].filter(Boolean).join(" ")||p(null==e?void 0:e.displayName),firstName:p(null==r?void 0:r.firstName)||h(null==r?void 0:r.fullName)||h(null==e?void 0:e.displayName)||"",portraitUrl:p(null==(t=null==r?void 0:r.portrait)?void 0:t.publicUrlTransformed)||p(null==t?void 0:t.secureUrl)||p(null==t||null===(n=t.image)||void 0===n?void 0:n.publicUrlTransformed)}}function g(e){return b(null==e?void 0:e.assignedTeamMember)}function w(e){var t=e.label,n=e.mode,r=void 0===n?"gallery":n,a=e.imageUrl,l=void 0===a?"":a;return"team"===r&&l?(0,v.jsx)("div",{className:"h-9 w-9 rounded-full bg-cover bg-center bg-no-repeat",style:{backgroundImage:'url("'.concat(l,'")')},"aria-hidden":"true"}):"team"===r?(0,v.jsx)("div",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-black font-helveticaNeueBold text-xs text-white",children:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=p(e).split(/\s+/).filter(Boolean);return t.length?t.slice(0,2).map(function(e){var t;return(null===(t=e[0])||void 0===t?void 0:t.toUpperCase())||""}).join(""):"WG"}(void 0===t?"":t)}):(0,v.jsx)("div",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-black text-white",children:(0,v.jsx)(u,{className:"h-4 w-4"})})}function N(){return(0,v.jsxs)("div",{className:"inline-flex items-center gap-1 rounded-full bg-stone-100 px-4 py-3 text-stone-500 shadow-sm animate-[fadeIn_220ms_ease-out]",children:[(0,v.jsx)("span",{className:"h-2 w-2 rounded-full bg-stone-400 animate-[typingPulse_1s_ease-in-out_infinite]"}),(0,v.jsx)("span",{className:"h-2 w-2 rounded-full bg-stone-400 [animation-delay:120ms] animate-[typingPulse_1s_ease-in-out_infinite]"}),(0,v.jsx)("span",{className:"h-2 w-2 rounded-full bg-stone-400 [animation-delay:240ms] animate-[typingPulse_1s_ease-in-out_infinite]"})]})}function j(e){var t,n=e.message,r=function(e,t){var n,r,a;if((null==e?void 0:e.authorType)==="SYSTEM")return{label:"Gallery Assistant",sublabel:"AI Agent",mode:"assistant"};if((null==e?void 0:e.authorType)==="TEAM_MEMBER"){var l,i=b(null==e?void 0:e.authorTeamMember),s=g(t),o=p(null==e||null===(l=e.authorTeamMember)||void 0===l?void 0:l.displayName),c=o&&["gallery","team","workplace","ask the gallery"].includes(p(o).toLowerCase());return{label:i.firstName||(c?"":o)||s.firstName||o||"Gallery",sublabel:"Team",mode:"team",portraitUrl:i.portraitUrl||s.portraitUrl||""}}return{label:p(null==e||null===(n=e.authorPerson)||void 0===n?void 0:n.fullName)||[null==e||null===(r=e.authorPerson)||void 0===r?void 0:r.firstName,null==e||null===(a=e.authorPerson)||void 0===a?void 0:a.lastName].filter(
1Boolean).join(" ")||"You",sublabel:"",mode:"visitor"}}(n,e.thread),a="visitor"===r.mode,l="assistant"===r.mode,i=!!(null==n?void 0:n.__optimistic),s=a?i?"Sending...":x(null==n?void 0:n.createdAt):[r.label,r.sublabel,x(null==n?void 0:n.createdAt)].filter(Boolean).join(" \xb7 ");return(0,v.jsx)("div",{className:"flex animate-[messageRise_260ms_cubic-bezier(0.22,1,0.36,1)] ".concat(a?"justify-end":"justify-start"),children:(0,v.jsxs)("div",{className:"max-w-[86%] space-y-1.5",children:[(0,v.jsxs)("div",{className:"rounded-[22px] px-4 py-3 shadow-sm transition-transform duration-200 ".concat(a?"bg-black text-white ".concat(i?"opacity-85":""):l?"bg-stone-100 text-stone-900":"border border-stone-200 bg-white text-stone-900"),children:[(0,v.jsx)("p",{className:"font-helveticaNeue whitespace-pre-wrap text-[14px] leading-6",children:(null==n?void 0:n.body)||""}),null!=n&&null!==(t=n.artworkContext)&&void 0!==t&&t.title?(0,v.jsxs)("p",{className:"mt-2 font-helveticaNeue text-[12px] ".concat(a?"text-white/70":"text-stone-500"),children:["About ",n.artworkContext.title]}):null]}),s?(0,v.jsx)("p",{className:"px-1 font-helveticaNeue text-[11px] text-stone-500 ".concat(a?"text-right":""),children:s}):null]})})}function y(e){var t,n=e.open,l=e.onClose,o=e.enabled,c=e.thread,m=e.loading,x=void 0!==m&&m,h=e.submitting,b=void 0!==h&&h,y=e.errorMessage,k=void 0===y?"":y,_=e.onCreateThread,E=e.onSendMessage,C=e.onTypingChange,T=e.showTypingIndicator,A=e.selectedArtwork,I=e.prefillVisitor,P=e.initialMessage,S=void 0===P?"":P,L=e.unreadCount,M=void 0===L?0:L,O=e.liftLauncher,R=e.launcherLabel,B=void 0===R?"":R,F=e.viewportContained,U=(0,s.useRef)(null),z=(0,s.useRef)(null),Y=(0,s.useRef)(null),q=(0,s.useRef)(null),Z=(0,s.useRef)(null),D=(0,s.useRef)(null),W=(0,s.useRef)(null),V=(0,s.useRef)(0),G=(0,s.useRef)(!1),H=(0,s.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=p(e);if(!t)return{firstName:"",lastName:""};var n=t.split(/\s+/),r=(0,a.Z)(n);return{firstName:r[0],lastName:r.slice(1).join(" ")}}((null==I?void 0:I.name)||"")},[null==I?void 0:I.name]),J=(0,s.useState)(H.firstName),K=J[0],$=J[1],Q=(0,s.useState)(H.lastName),X=Q[0],ee=Q[1],et=(0,s.useState)(p(null==I?void 0:I.email)),en=et[0],er=et[1],ea=(0,s.useState)(""),el=ea[0],ei=ea[1],es=(0,s.useState)(!1),eo=es[0],ec=es[1],eu=!!(null==c?void 0:c.id);(0,s.useEffect)(function(){$(H.firstName),ee(H.lastName)},[H.firstName,H.lastName]),(0,s.useEffect)(function(){er(p(null==I?void 0:I.email))},[null==I?void 0:I.email]),(0,s.useEffect)(function(){if(!eu&&!p(el)){var e=p(S);e&&ei(e)}},[eu,S,el]),(0,s.useEffect)(function(){if(n){var e=function(e){"Escape"===e.key&&(null==l||l())};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[l,n]);var ed=(0,s.useMemo)(function(){var e,t;return e=g(c),t=((null==c?void 0:c.messages)||[]).some(function(e){return(null==e?void 0:e.authorType)==="SYSTEM"}),e.firstName?{title:e.firstName,subtitle:"Private enquiries",mode:"team",portraitUrl:e.portraitUrl}:t?{title:"Workplace Assistant",subtitle:"AI",mode:"assistant"}:{title:"Workplace Assistant",subtitle:"AI",mode:"gallery"}},[c]),em=(0,s.useCallback)(function(){W.current&&(window.clearTimeout(W.current),W.current=null),G.current&&(G.current=!1,V.current=0,null==C||C(!1))},[C]),ef=(0,s.useCallback)(function(e){var t=e.target.value;if(ei(t),eu&&C){if(!p(t)){em();return}var n=Date.now();(!G.current||n-V.current>=2e3)&&(G.current=!0,V.current=n,C(!0)),W.current&&window.clearTimeout(W.current),W.current=window.setTimeout(function(){W.current=null,G.current&&(G.current=!1,V.current=0,C(!1))},2800)}},[eu,C,em]),ev=(0,s.useCallback)(function(){var e=Y.current;e&&(e.style.height="0px",e.style.height="".concat(Math.min(e.scrollHeight,180),"px"))},[]),ep=(0,s.useCallback)(function(){null!==Z.current&&(window.cancelAnimationFrame(Z.current),Z.current=null),null!==D.current&&(window.cancelAnimationFrame(D.current),D.current=null)},[]),ex=(0,s.useCallback)(function(e){var t=q.current;t&&e&&t.contains(e)&&(ep(),Z.current=window.requestAnimationFrame(function(){Z.current=null,D.current=window.requestAnimationFrame(function(){D.current=null;var t,n=q.current;
1if(n&&n.contains(e)){var r=(null===(t=e.closest)||void 0===t?void 0:t.call(e,"[data-live-list-chat-focus-block]"))||e,a=n.getBoundingClientRect(),l=r.getBoundingClientRect(),i=0;l.top<a.top+12?i=l.top-a.top-12:l.bottom>a.bottom-12&&(i=l.bottom-a.bottom+12),i&&(n.scrollTop+=i)}})}))},[ep]);(0,s.useEffect)(function(){if(!n||eu){ep();return}var e=window.visualViewport,t=function(){var e=document.activeElement;e instanceof HTMLElement&&ex(e)};return null==e||e.addEventListener("resize",t),null==e||e.addEventListener("scroll",t),function(){null==e||e.removeEventListener("resize",t),null==e||e.removeEventListener("scroll",t),ep()}},[ep,eu,ex,n]),(0,s.useEffect)(function(){if(n&&!x&&eu){var e=window.requestAnimationFrame(function(){var e;if(null!==(e=z.current)&&void 0!==e&&e.scrollIntoView){z.current.scrollIntoView({block:"end",behavior:"auto"});return}U.current&&(U.current.scrollTop=U.current.scrollHeight)});return function(){return window.cancelAnimationFrame(e)}}},[eu,x,n,null==c?void 0:c.messages]),(0,s.useEffect)(function(){if(n){var e=window.requestAnimationFrame(function(){ev()});return function(){return window.cancelAnimationFrame(e)}}},[el,n,ev]),(0,s.useEffect)(function(){n&&eu||em()},[eu,n,em]),(0,s.useEffect)(function(){return function(){em()}},[em]);var eh=void 0!==F&&F?"absolute":"fixed";if(!(void 0===o||o))return null;var eb=(t=(0,r.Z)(i().mark(function e(t){var n,r,a;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!(b||eo)){e.next=3;break}return e.abrupt("return");case 3:if(r=p(el)){e.next=6;break}return e.abrupt("return");case 6:if(eu&&em(),ec(!0),ei(""),a=null,e.prev=10,eu){e.next=17;break}return e.next=14,null==_?void 0:_({firstName:K,lastName:X,email:en,message:r,artworkId:(null==A?void 0:A.id)||""});case 14:a=e.sent,e.next=20;break;case 17:return e.next=19,null==E?void 0:E({message:r,artworkId:(null==A?void 0:A.id)||""});case 19:a=e.sent;case 20:return e.prev=20,ec(!1),e.finish(20);case 23:(null===(n=a)||void 0===n?void 0:n.ok)===!1&&ei(r);case 24:case"end":return e.stop()}},e,null,[[10,,20,23]])})),function(e){return t.apply(this,arguments)}),eg=b||eo;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("style",{children:"\n @keyframes messageRise {\n from {\n opacity: 0;\n transform: translateY(10px) scale(0.985);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n }\n\n @keyframes panelIn {\n from {\n opacity: 0;\n transform: translateY(18px) scale(0.96);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n @keyframes typingPulse {\n 0%,\n 80%,\n 100% {\n transform: translateY(0);\n opacity: 0.35;\n }\n 40% {\n transform: translateY(-2px);\n opacity: 1;\n }\n }\n\n @keyframes launcherTwitch {\n 0%,\n 4%,\n 100% {\n transform: translateY(0) scale(1);\n }\n 0.8% {\n transform: translateY(-2px) rotate(-6deg) scale(1.06);\n }\n 1.6% {\n transform: translateY(1px) rotate(5deg) scale(1.03);\n }\n 2.4% {\n transform: translateY(-2px) rotate(-4deg) scale(1.05);\n }\n 3.2% {\n transform: translateY(0) rotate(0deg) scale(1);\n }\n }\n "}),n?(0,v.jsxs)("div",{className:"pointer-events-auto ".concat(eh," inset-x-2 top-[calc(env(safe-area-inset-top)_+_8px)] bottom-[calc(env(safe-area-inset-bottom)_+_64px)] z-[95] flex flex-col overflow-hidden rounded-[22px] border border-stone-200 bg-white shadow-[0_24px_90px_rgba(0,0,0,0.28)] animate-[panelIn_280ms_cubic-bezier(0.22,1,0.36,1)] sm:inset-x-auto sm:bottom-[74px] sm:right-6 sm:top-auto sm:h-[min(680px,calc(100dvh-120px))] sm:w-[380px]"),children:[(0,v.jsxs)("header",{className:"flex shrink-0 items-center justify-between gap-3 border-b border-stone-200 bg-white px-4 py-3 text-stone-900 animate-[fadeIn_220ms_ease-out]",children:[(0,v.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,v.jsx)(w,{label:ed.title,mode:ed.mode,imageUrl:ed.portraitUrl}),(0,v.jsxs)("div",{className:"min-w-0",children:[(0,v.jsx)("p",{className:"truncate font-helveticaNeueMed text-[11px] uppercase tracking-[0.22em] text-stone-500",children:"WORKPLACE"}),(0,v.jsx)("p",{className:"truncate font-helveticaNeue text-[15px] text-stone-950",children:"Private enquiries"})]})]}),(0,v.jsx)("div",{className:"flex items-center gap-2",children:(0,v.jsx)("button",{type:"button",onClick:function(){return null==l?void 0:l()},className:"rounded-full border border-stone-200 p-2 text-stone-500 transition hover:bg-stone-100 hover:text-stone-900","aria-label":"Close chat",children:(0,v.jsx)(d.Z,{className:"h-5 w-5"})})})]}),(0,v.jsxs)("div",{ref:q,"data-live-list-chat-scroll-region":"",onFocusCapture:function(e){eu||ex(e.target)},className:"min-h-0 flex flex-1 flex-col ".concat(eu?"overflow-hidden":"overflow-y-auto overscroll-contain scroll-py-3"),children:[(0,v.jsx)("div",{ref:U,className:"bg-white px-4 py-4 animate-[fadeIn_240ms_ease-out] ".concat(eu?"min-h-0 flex-1 overflow-y-auto overscroll-contain":"min-h-[112px] flex-1 shrink-0"),children:x?(0,v.jsx)(N,{}):eu?(0,v.jsxs)("div",{className:"space-y-3",children:[((null==c?void 0:c.messages)||[]).map(function(e){return(0,v.jsx)(j,{message:e,thread:c},e.id)}),void 0!==T&&T?(0,v.jsx)("div",{className:"flex justify-start",children:(0,v.jsx)(N,{})}):null,(0,v.jsx)("div",{ref:z})]}):(0,v.jsxs)("div",{className:"space-y-2",children:[(0,v.jsx)("div",{className:"max-w-[88%] rounded-[22px] bg-stone-100 px-4 py-3",children:(0,v.jsx)("p",{className:"font-helveticaNeue text-[14px] leading-6 text-stone-900",children:"Enquire about price, availability, or viewing."})}),(0,v.jsx)("p",{className:"px-1 font-helveticaNeue text-[11px] text-stone-500",children:"Workplace Assistant \xb7 AI \xb7 Just now"})]})}),(0,v.jsxs)("form",{onSubmit:eb,className:"shrink-0 border-t border-stone-200 bg-white p-4 animate-[fadeIn_260ms_ease-out]",children:[eu?null:(0,v.jsxs)("div",{className:"mb-3 grid gap-2",children:[(0,v.jsx)("input",{type:"text","data-live-list-chat-focus-block":"",value:K,onChange:function(e){return $(e.target.value)},placeholder:"First name",className:"w-full rounded-xl border border-stone-300 px-3 py-2.5 font-helveticaNeue text-[16px] text-stone-900 outline-none transition placeholder:text-stone-400 focus:border-black sm:text-sm",autoComplete:"given-name",required:!0}),(0,v.jsx)("input",{type:"text","data-live-list-chat-focus-block":"",value:X,onChange:function(e){return ee(e.target.value)},placeholder:"Last name",className:"w-full rounded-xl border border-stone-300 px-3 py-2.5 font-helveticaNeue text-[16px] text-stone-900 outline-none transition placeholder:text-stone-400 focus:border-black sm:text-sm",autoComplete:"family-name"}),(0,v.jsx)("input",{type:"email","data-live-list-chat-focus-block":"",value:en,onChange:function(e){return er(e.target.value)},placeholder:"Email address",className:"w-full rounded-xl border border-stone-300 px-3 py-2.5 font-helveticaNeue text-[16px] text-stone-900 outline-none transition placeholder:text-stone-400 focus:border-black sm:text-sm",autoComplete:"email",required:!0})]}),(0,v.jsxs)("div",{"data-live-list-chat-focus-block":"",className:"rounded-[22px] border-2 border-stone-900 bg-white px-4 py-3",children:[(0,v.jsx)("textarea",{ref:Y,value:el,onChange:ef,onInput:ev,placeholder:eu?"Write a replyâ¦":"Ask a questionâ¦",rows:1,className:"min-h-[24px] max-h-[180px] w-full resize-none overflow-y-auto border-0 p-0 font-helveticaNeue text-[16px] text-stone-900 outline-none placeholder:text-stone-400 sm:text-sm",required:!0}),k?(0,v.jsx)("p",{className:"mt-2 font-helveticaNeue text-[12px] text-red-600",children:k}):null,(0,v.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-3",children:[(0,v.jsx)("p",{className:"font-helveticaNeue text-[11px] text-stone-500",children:eu?"Replies stay in this browser.":"Your first message starts the chat."}),(0,v.jsx)("button",{type:"submit",disabled:eg,className:"inline-flex h-10 w-10 items-center justify-center rounded-full bg-black text-white transition hover:bg-stone-800 disabled:cursor-not-allowed disabled:opacity-60 dark:bg-white dark:text-black dark:hover:bg-stone-200","aria-label":eg?"Sending":eu?"Send message":"Start chat",children:(0,v.jsx)(f,{className:"h-4 w-4"})})]})]})]})]})]}):null,(0,v.jsx)("div",{className:"pointer-events-none ".concat(eh," right-2 z-[95] sm:right-6 ").concat(void 0!==O&&O?"bottom-[calc(env(safe-area-inset-bottom)_+_28px)] sm:bottom-14":"bottom-[calc(env(safe-area-inset-bottom)_+_8px)] sm:bottom-6"),children:(0,v.jsxs)("button",{type:"button",onClick:function(){return null==l?void 0:l(n?"close"
1:"open")},"aria-label":n?"Close chat":"Open chat","aria-expanded":n,className:"pointer-events-auto relative inline-flex h-11 items-center justify-center rounded-full border border-black/15 bg-white/88 text-black shadow-[0_10px_24px_rgba(0,0,0,0.14)] backdrop-blur-xl transition duration-200 hover:bg-white motion-reduce:animate-none animate-[launcherTwitch_22s_ease-in-out_infinite] dark:border-white/70 dark:bg-black/88 dark:text-white dark:shadow-[0_10px_24px_rgba(0,0,0,0.22)] dark:hover:bg-black/95 ".concat(B?"gap-2 px-4":"w-11"),children:[(0,v.jsx)(u,{className:"h-5 w-5"}),B?(0,v.jsx)("span",{className:"font-helveticaNeueMed text-sm",children:B}):null,M>0?(0,v.jsx)("span",{className:"absolute -right-1 -top-1 inline-flex h-6 min-w-[1.5rem] items-center justify-center rounded-full bg-black px-2 font-helveticaNeueBold text-xs text-white dark:bg-white dark:text-black",children:M}):null]})})]})}}}]);
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.