1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="b7ef0c07-4d65-4881-97c4-f9409a92fa3d",e._sentryDebugIdIdentifier="sentry-dbid-b7ef0c07-4d65-4881-97c4-f9409a92fa3d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[307],{20307:(e,l,r)=>{r.r(l),r.d(l,{default:()=>w});var n=r(6029),o=r(81278),i=r(55729),s=r(76481),t=r(67974),a=r(80575),d=r(81751),u=r(13939);let g=(0,a.n9)()(e=>({linkText:Object.assign(Object.assign(Object.assign({color:e.isFlyingFlowers?u.Tj.black[700]:u.Tj.grey.grey7},e.typography.xxs_regular),(0,d.nf)()),{[e.breakpoints.up("md")]:Object.assign({},e.typography.small_regular)}),currentPage:Object.assign(Object.assign({color:e.isFlyingFlowers?u.Tj.black[700]:u.Tj.grey.grey8},e.typography.xxs_regular),{[e.breakpoints.up("md")]:Object.assign({},e.typography.small_regular)})})),c=({link:e,currentPage:l})=>{let{classes:r}=g();return(0,n.jsx)(n.Fragment,{children:e&&(0,n.jsx)(t.A,Object.assign({className:l?r.currentPage:r.linkText},e,{url:l?void 0:e.url}))})},b=(0,a.n9)()(e=>({breadcrumbContent:Object.assign(Object.assign({},d.w0),{backgroundColor:u.Tj.supplementary.white,minHeight:"33px",[e.breakpoints.up("md")]:{minHeight:"53px"}}),noBorderBottom:{borderBottom:"none"},pdpMobileNoBorder:{[e.breakpoints.down("sm")]:{borderBottom:"none"}},container:(0,d.W4)(e,Object.assign(Object.assign({display:"flex",overflowX:"auto",whiteSpace:"nowrap"},u.MY),{paddingTop:"4px",paddingBottom:"4px",paddingLeft:e.isFlyingFlowers?u.YK.small:u.YK.xs,paddingRight:e.isFlyingFlowers?u.YK.small:u.YK.xs,[e.breakpoints.up("md")]:{paddingTop:"12px",paddingBottom:"12px",paddingLeft:e.isFlyingFlowers?u.YK.large:u.YK.small,paddingRight:e.isFlyingFlowers?u.YK.large:u.YK.small}})),arrowIcon:{margin:u.YK.xxs,color:e.isFlyingFlowers?u.Tj.black[700]:u.Tj.grey.grey6,"& .material-icons":{fontSize:u.GR.small},[e.breakpoints.up("md")]:{margin:`${u.YK.xs} ${u.YK.xxs} ${u.YK.xxs} ${u.YK.xxs}`}}}));var p=r(8588),m=r.n(p),v=r(91202),y=r(42246),h=r(50212),f=r(4494),x=r(26543);let w=e=>{var l,r;let{subject:t,isFlyingFlowers:a}=(0,i.useContext)(s.Z0),d=(0,o.useRouter)(),u=(0,y.A)(),g=null==d?void 0:d.asPath,[p,w]=(0,i.useState)([]),k=(0,v.Ub)({query:`(max-width: ${u.breakpoints.values.sm}px)`}),j=null==g?void 0:g.includes("/product/"),{state:{items:F}}=(0,f.rB)(),T=F.length,O=(0,i.useMemo)(()=>(0,x.p)({asPath:g,isFlyingFlowers:!!a,subject:t}),[g,a,t]);(0,i.useEffect)(()=>{var l;(null==g?void 0:g.includes("/category/"))?((0,s.fD)(["isFromPLP"]),(null==(l=null==e?void 0:e.links)?void 0:l.length)&&sessionStorage.setItem("breadcrumb",JSON.stringify(e.links))):["/search","/blog","/basket","/checkout/","/florist","/page/","/flower-delivery","/find-a-florist","/find-location-florist","/account","/favourites"].some(e=>null==g?void 0:g.includes(e))?(0,s.fD)(["isFromPLP","breadcrumb"]):(null==g?void 0:g.includes("/product/"))&&(new URLSearchParams(void 0===globalThis.window?"":globalThis.window.location.search).get("category")||(0,s.fD)(["isFromPLP","breadcrumb"]))},[g,null==e?void 0:e.links]),(0,i.useEffect)(()=>{var e;let{asPath:l}=null!=d?d:{},{product:r}=null!=t?t:{},n=sessionStorage.getItem("isFromPLP"),o=sessionStorage.getItem("breadcrumb"),i=(null==o?void 0:o.length)?JSON.parse(o):[];(null==l?void 0:l.includes("/product/"))&&n?w([...i,{label:null!=(e=null==r?void 0:r.name)?e:""}]):i.length&&w([...i])},[null==d?void 0:d.asPath,null==t?void 0:t.product]),(0,i.useEffect)(()=>{var l,r,n,o,i,s,a,u,g;if(!sessionStorage.getItem("breadcrumb")){let c=(null==(r=null==(l=null==t?void 0:t.product)?void 0:l.categories)?void 0:r.find(e=>{var l;return e.key===(null==(l=null==d?void 0:d.query)?void 0:l.category)}))||(null==(o=null==(n=null==t?void 0:t.product)?void 0:n.categories)?void 0:o.find(e=>{var l;return null==(l=e.ancestors)?void 0:l.some(e=>{var l;return e.key==(null==(l=null==d?void 0:d.query)?void 0:l.category)})}))||(null==(s=null==(i=null==t?void 0:t.product)?void 0:i.categories)?void 0:s[0]);w((null==t?void 0:t.product)&&c&&[{label:"Home",url:"/"},...(null==(a=c.ancestors)?void 0:a.map(e=>({label:e.name,url:e.url})))||[],{label:c.name,url:c.url},{label:(null==(u=t.product)?void 0:u.name)||"",url:(null==(g=t.product)?void 0:g.url)||""}]||e.links)}},[null==(l=null==d?void 0:d.query)?void 0:l.category,e.links,t,null==t?void 0:t.product]);let{classes:P}=b();return(0,n.jsx)(n.Fragment,{children:!!((null==p?void 0:p.length)||(null==(r=null==e?void 0:e.links)?void 0:r.length))&&(0,n.jsx)("div",{className:(0,h.A)(P.breadcrumbContent,k&&j&&P.pdpMobileNoBorder,O&&T>0&&P.noBorderBottom),"data-hj-ignore-attributes":!0,children:(0,n.jsx)("div",{className:P.container,children:p.map((e,l)=>(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(c,{link:e,currentPage:l===p.length-1}),l!==p.length-1&&(0,n.jsx)(m(),{src:"/images/icons/breadcrumBar/chevronRight.svg",alt:"chevronRight",className:P.arrowIcon,height:16,width:16})]},`breadcrumb_${e.label}}`))})})})}}}]);
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.