PageSourceSearch

https://www.tatler.com/verso/static/4341.c1f88a4892b5ef70305d.js

js tatler.com collected 2026-09-24 08:42:48 UTC 8,836 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkverso=globalThis.webpackChunkverso||[]).push([[4341],{6726(e,t,o){o.d(t,{yV:()=>a.yV,SZ:()=>a.SZ,OM:()=>r});var n=o(14307),a=o(35435);class r{static trackClickable(e,t){const{subject:o=null,label:c=null,event:s,isWithoutContentData:u,trackingStatus:l}=e,i=r.getClickableContentData(s,u),d=r.getClickableTrackingType(l);return t===a.Z3.USER_ACCOUNT_EVENT?(0,n.lV)({subject:o,label:c,type:d}):(0,n.kg)({subject:o,label:c,type:d,items:i,placement:r.POSITION_TOP})}static getClickableContentData(e,t){if(t)return;const o=e.currentTarget,n=o.querySelector(r.SNOWPLOW_ITEM_ATTRIBUTE)?.textContent;return[{content_title:n,content_url:o?.href}]}static getClickableTrackingType(e){return"boolean"==typeof e?e?a.Gs.CLOSE:a.Gs.OPEN:a.Gs.CLICK}static trackBannerClick(e){const{subject:t,label:o,content_url:c,index:s,total_index:u}=e;(0,n.kg)({subject:t,label:String(o),type:a.Gs.CLICK,total_index:u,index:s,items:[{content_title:o,content_url:c,content_type:"link"}],placement:r.POSITION_TOP})}}r.SNOWPLOW_ITEM_ATTRIBUTE="[data-snowplow-event-label]",r.POSITION_TOP="top"},35435(e,t,o){var n,a,r,c;o.d(t,{Gs:()=>r,SZ:()=>n,Z3:()=>c,yV:()=>a}),function(e){e.LOGO_CLICKABLE="LogoClickable",e.TEXT_CLICKABLE="TextClickable",e.ACCORDION="hamburger_menu_submenu",e.SEQ_LEVEL="hamburger_menu_chevron",e.SEQ_LEVEL_CTA="hamburger_menu_chevron_submenu",e.STACKED_NAVIGATION="stacked_navigation"}(n||(n={})),function(e){e.BANNER_CURATION="banner_curation",e.BANNER_PROMOTION="banner_promotion",e.BANNER_EVENT="banner_event"}(a||(a={})),function(e){e.OPEN="open",e.CLOSE="close",e.CLICK="click",e.IMPRESSION="impression"}(r||(r={})),function(e){e.USER_ACCOUNT_EVENT="user_account_event"}(c||(c={}))},70346(e,t,o){o.d(t,{M:()=>a});var n=o(96540);function a(){const[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(!0)},[]),e}},62327(e,t,o){o.d(t,{Ay:()=>c,jV:()=>a,m1:()=>n,sm:()=>r});const n="heroVideo",a="inlineInjected",r="inlineEmbedded",c={storyVideoPosition:n,inlineInterludePosition:a,watchPagePosition:"watchPage",inlineEmbedPosition:r}},59481(e,t,o){o.d(t,{A:()=>_});var n=o(5556),a=o.n(n),r=o(96540),c=o(45135),s=o(14792),u=o.n(s),l=o(86157),i=o(22039),d=o(81318),k=o(9864),m=o(14307),B=o(31558),g=o(32925),p=o(40391),v=o(6442),b=o(1889);const h=5e3,P=({action:e,windowLocation:t})=>"remove"===e&&(e=>{if(!e)return!1;if(e.pathname!==g.f.BOARDS)return!1;const t=new URLSearchParams(e.search);return"detail"===t.get("view")&&"Product"===t.get("contentType")})(t),f=e=>e?"REMOVE PRODUCT?":null,T=({isSavedProductsPage:e,value:t})=>e?null:t,S=({action:e="save",productData:t=null,showProductBookmarkMessageBanner:o=!1,setShowProductBookmarkMessageBanner:n,removedBookmarkData:a=null,clearRemovedBookmarkData:c,doUpdateUnsavedBookmarks:s,clearUnsavedBookmark:k,setProductBookmarkAction:S,setLastBookmarkedProduct:_,lastBookmarkedProduct:y=null,config:E})=>{const[C,D]=(0,r.useState)(!1),O=(0,r.useRef)(null),R=(0,r.useRef)(0),L=(0,r.useRef)(null),I=(0,r.useRef)(null),A=(0,r.useRef)(null),{formatMessage:w}=(0,v.A)(),N="remove"===e?a?.contentType:y?.contentType;(({showProductBookmarkMessageBanner:e,action:t,removedBookmarkData:o,prevRemovedBookmarkDataRef:n,lastBookmarkedProduct:a,prevLastBookmarkedProductRef:r,bannerInstanceRef:c,capturedSaveProductDataRef:s})=>{e&&("remove"===t&&o&&o!==n.current&&(c.current+=1,n.current=o),"save"===t&&a&&a!==r.current&&(c.current+=1,r.current=a,s.current=a?.productData))})({showProductBookmarkMessageBanner:o,action:e,removedBookmarkData:a,prevRemovedBookmarkDataRef:L,lastBookmarkedProduct:y,prevLastBookmarkedProductRef:I,bannerInstanceRef:R,capturedSaveProductDataRef:A}),(0,r.useEffect)(()=>{if(!o||!a)return;const t=()=>{O.current&&(clearTimeout(O.current),O.current=null)},r=Date.now();if("remove"===e){O.current=setTimeout(()=>{C||c?.()},h);const e=()=>{if(!document.hidden){Date.now()-r>=h&&!C&&(t(),c?.())}};return document.addEventListener("visibilitychange",e),()=>{t(),document.removeEventListener("visibilitychange",e)}}return"save"===e&&(O.current=setTimeout(()=>{const e=a?.copilotID;c?.(),e&&k?.({copilotID:e}),n?.({showBanner:!1})},h)),t},[o,n,e,c,a,C,k]);const M=async e=>{if(!a||C)return;D(!0),O.current&&(clearTimeout(O.current),O.current=null);const{copilotID:t,productData:o,contentType:r}=a;s?.({copilotID:t,isDeleted:!1}),((e,t=null,o=null,n=null)=>{const{copilotID:a,productData:r,contentType:c}=e,s=r?.__layout,u=r?.__trackingSubject||"unified_product_card",l=(0,m.JL)(n);
1(0,d.s)({type:"unsave_undo",copilotID:a,bookmarkMeta:r,contentType:c,trackingSubject:u,...null!=o&&{subjectId:o},subjectName:l,item:r,layout:s,targetEvent:t})})(a,e),_?.({copilotID:t,productData:o,contentType:r}),c?.(),S?.({action:"save"}),n?.({showBanner:!0}),D(!1)};if(!o)return null;const{savedPagePath:U,savedButtonLabel:j}=(({config:e,contentType:t})=>{if((0,p.e)(t))return{savedPagePath:g.f.SAVED,savedButtonLabel:g.W.VIEW_ALL};const o=Boolean(e&&(0,B.KN)(e,"Product"));return{savedPagePath:o?g.f.BOARDS:g.f.PRODUCTS,savedButtonLabel:o?g.W.GO_TO_BOARDS:g.W.VIEW_ALL}})({config:E,contentType:N}),V=window.location,x=((e,t)=>Boolean(e&&e.pathname===t))(V,U),$=P({action:e,windowLocation:V}),W=(()=>{const t=(e=>{const t=(e=>"string"==typeof e?e.toLowerCase():null)(e);return(0,p.e)(t)?"venue"===t?"Activity":u()(t):"Product"})(N),o={save:{message:`${t} saved`,buttonLabel:T({isSavedProductsPage:x,value:j}),buttonHref:T({isSavedProductsPage:x,value:U}),shouldHideBannerOnButtonClick:!1},remove:{message:$?w(b.A.allSavedProductRemovalMessage):`${t} Removed`,buttonLabel:"Undo",shouldHideBannerOnButtonClick:!0,action:M}};return o[e]||o.save})(),G=(()=>{const o="save"===e?A.current:t;return o?.image?Array.isArray(o.image)?o.image[0]:o.image:null})(),H=(({action:e,contentType:t,productImage:o})=>"save"===e&&"product"!==t&&Boolean(o))({action:e,contentType:N,productImage:G}),K=`banner-${R.current}`;return r.createElement(i.Mj,{key:K,shouldShowAllBoardsRemovalMessage:$,btnStyle:"text",buttonClickHandler:W.action,buttonHref:W.buttonHref,buttonLabel:W.buttonLabel,contentAlign:"left",title:f($),delayDuration:h,shouldAddButton:!!W.buttonLabel,shouldHideBannerOnButtonClick:W.shouldHideBannerOnButtonClick,shouldShowCloseButton:!1,closeButtonCallback:()=>{n?.({showBanner:!1})}},r.createElement(i.eZ,{shouldShowAllBoardsRemovalMessage:$},H&&r.createElement(l.A,{...G,altText:G.altText||G.alt||"Product image"}),r.createElement(i.jT,{shouldShowAllBoardsRemovalMessage:$},W.message)))};S.displayName="ProductBookmarkMessageBanner",S.propTypes={action:a().oneOf(["save","remove"]),productData:a().shape({image:a().oneOfType([a().shape({altText:a().string,alt:a().string,sources:a().object,contentType:a().string}),a().arrayOf(a().shape({altText:a().string,alt:a().string,sources:a().object,contentType:a().string}))])}),showProductBookmarkMessageBanner:a().bool,setShowProductBookmarkMessageBanner:a().func,removedBookmarkData:a().shape({copilotID:a().string,productData:a().object,contentType:a().string,productName:a().string,bookmarkId:a().string,collectionId:a().string}),clearRemovedBookmarkData:a().func,doUpdateUnsavedBookmarks:a().func,clearUnsavedBookmark:a().func,setProductBookmarkAction:a().func,setLastBookmarkedProduct:a().func,lastBookmarkedProduct:a().object,config:a().object};const _=(0,c.Ng)(e=>{const{showProductBookmarkMessageBanner:t=!1,lastBookmarkedProduct:o={},productBookmarkAction:n="save",removedBookmarkData:a=null,config:r={}}=e;return{showProductBookmarkMessageBanner:t,productData:o?.productData,action:n,removedBookmarkData:a,lastBookmarkedProduct:o,config:r}},e=>{const{setShowProductBookmarkMessageBanner:t,clearRemovedBookmarkData:o,doUpdateUnsavedBookmarks:n,clearUnsavedBookmark:a,setLastBookmarkedProduct:r,setProductBookmarkAction:c}=(0,k.zD)(e);return{setShowProductBookmarkMessageBanner:t,clearRemovedBookmarkData:o,doUpdateUnsavedBookmarks:n,clearUnsavedBookmark:a,setLastBookmarkedProduct:r,setProductBookmarkAction:c}})(S,"ProductBookmarkMessageBanner")},208(e,t,o){o.d(t,{x:()=>r});var n=o(19635),a=o(99906);class r{generateStyleForBreakpoints(){const e=[];for(const t of Object.values(n.R))e.push(this.getElementStyles(t));return e.join("\n")}getElementStyles(e){const t=this.getStyleForBreakpoint(e);return this.generateCSSMediaQueries(t,e)}generateCSSMediaQueries(e,t){const o=e.map(([e,t])=>`${e.toString()}: ${t};`).join("\n");return`\n    ${t===n.R.SM?o:""}\n    @media (min-width: ${a.Vh[t]}px) {\n      ${o}\n    }`}}},74644(e,t,o){function n(e){return e?e.includes("#")&&!e.includes("/#")?e.replace("#","/#"):e.includes("#")||e.endsWith("/")?e:`${e}/`:""}function a(e){if(!e)return"";if(0===e.search(/^https?:\/\//)){const{pathname:t,search:o,hash:n}=new URL(e);return`${t}${o}${n}`}return e}function r(e){return e?e.includes("<a")?e.replace(/<a[^>]*>(.*?)<\/a>/i,"$1"):e:""}o.d(t,{Fi:()=>r,NT:()=>n,qq:()=>a})}}]);

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.