PageSourceSearch

https://wine-from-the-edge.netlify.app/component---src-bottlebooks…product-template-js-7ea52d8d4cee735e7ce5.js

js wine-from-the-edge.netlify.app collected 2026-10-03 11:38:06 UTC 6,545 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_starter_event=self.webpackChunkgatsby_starter_event||[]).push([[9645],{12308:function(t,e,r){var n=r(1597),i=r(67294),o=r(35414),l=r(40122);e.Z=function(t){var e=t.page,r=void 0===e?{}:e,a=t.title,d=void 0===a?r.title:a,c=(0,n.K2)("2748212769").site.siteMetadata;if(""===c.baseUrl&&"undefined"!=typeof window&&(c.baseUrl=window.location.origin),""===c.baseUrl)return l.error("Please set a baseUrl in your site metadata!"),null;var u=r.description||c.description,s=new URL(r.path||"",c.baseUrl).href,p=!!r.image&&new URL(r.image,c.baseUrl);return i.createElement(o.q,null,i.createElement("title",null,d||c.title),i.createElement("link",{rel:"canonical",href:s}),i.createElement("meta",{name:"description",content:u}),p&&i.createElement("meta",{name:"image",content:p}),i.createElement("meta",{property:"og:url",content:s}),i.createElement("meta",{property:"og:type",content:"article"}),i.createElement("meta",{property:"og:title",content:d||c.title}),i.createElement("meta",{property:"og:description",content:u}),p&&i.createElement("meta",{property:"og:image",content:p}),i.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),i.createElement("meta",{name:"twitter:title",content:d||c.title}),i.createElement("meta",{name:"twitter:description",content:u}),p&&i.createElement("meta",{name:"twitter:image",content:p}))}},82133:function(t,e,r){r.r(e),r.d(e,{default:function(){return J}});var n=r(36660),i=r(35723),o=r(70977),l=r(55894),a=r(54829),d=r(86360),c=r(16211),u=r(91154),s=r(96202),p=r(81880),v=r(63366),Z=r(28833),g=["children"];var m=r(94174),h=["children","to"];var b=["children"];var f=r(44472),x=["children"];var P=["children"];function k(t){var e=t.children,r=(0,v.Z)(t,P);return(0,o.tZ)(i.W2,r,e)}k.Header=function(t){var e=t.children,r=(0,v.Z)(t,g);return(0,o.tZ)(i.X2,Object.assign({sx:{paddingX:[0,100/12+"%"],paddingBottom:4,alignItems:"center"}},r),e)},k.Title=function(t){var e=t.children,r=(0,v.Z)(t,x);return(0,o.tZ)(i.JX,Object.assign({flex:!0,sx:{minWidth:["100%","auto"]}},r),(0,o.tZ)(f.Z,{variant:"small"},e))},k.Link=function(t){var e=t.children,r=t.to,n=(0,v.Z)(t,h);return(0,o.tZ)(i.JX,null,(0,o.tZ)(i.rU,Object.assign({to:r,sx:{display:"block",paddingY:2}},n),(0,o.tZ)(m.Z,null,e)))},k.List=function(t){var e=t.children,r=(0,v.Z)(t,b);return(0,o.tZ)(i.X2,Object.assign({sx:{paddingX:[0,100/12+"%"]}},r),e)};var I,w=r(96915),E=r(12752),O=r(30494),y=["registeredProduct","to"];function j(t){var e=t.registeredProduct,r=t.to,n=(0,v.Z)(t,y);return(0,o.tZ)(i.JX,n,(0,o.tZ)(i.rU,{to:r,fallback:"div"},(0,o.tZ)(E.ZP,{product:null==e?void 0:e.product,size:"default"}),(0,o.tZ)(w.Z,{variant:"small",sx:{color:"lighterText",overflow:"hidden",textOverflow:"ellipsis",paddingY:2}},(0,o.tZ)(O.Z,null==e?void 0:e.product)))," ")}var C,U=(0,Z.Ps)(I||(I=(0,p.Z)(["\n  ","\n  ","\n  fragment RelatedProduct on Product {\n    slug\n    ...ProductImage\n    ...ProductName\n  }\n"])),E.mG,O.G),X=["registeredProducts","exhibitor","title","link"];function L(t){var e=t.registeredProducts,r=t.exhibitor,n=t.title,i=t.link,a=(0,v.Z)(t,X),d=(0,l.Z)();return null!=e&&e.length?(0,o.tZ)(k,a,(0,o.tZ)(k.Header,null,(0,o.tZ)(k.Title,null,n),i),(0,o.tZ)(k.List,null,e.map((function(t){return(0,o.tZ)(j,{key:t.productId,to:d.product(Object.assign({},t,{exhibitorId:null==r?void 0:r.exhibitorId})),registeredProduct:t,sx:{width:[100/3+"%",null,"25%",100/6+"%"]}})})))):null}(0,Z.Ps)(C||(C=(0,p.Z)(["\n  fragment RelatedProductsSection on Product {\n    id\n    ...RelatedProduct\n  }\n\n  ","\n"])),U);var T=r(99545),N=r(12308),R=r(94669);function _(t){var e,r,p=t.product,v=t.event,Z=t.otherProducts,g=t.otherProductsName,m=t.relatedProducts,h=t.location,b=t.previous,f=t.next,x=t.locale,P=(0,l.Z)(),I=Boolean(Z&&Z.length),w=Boolean(m&&m.length),E=I||w,O=p||{},y=O.exhibitor,j=O.producer,C=y?P.exhibitor(y):P.producer(j),U=g,X={title:""+p.fullName,path:h.href,image:null===(e=p.bottleImage)||void 0===e||null===(r=e.fixed)||void 0===r?void 0:r.src,description:p.description};return(0,o.tZ)(c.Z,{locale:x,sx:{backgroundColor:"transparent"}},(0,o.tZ)(N.Z,{page:X}),y?(0,o.tZ)(a.Z,y):(0,o.tZ)(a.Z,j),(0,o.tZ)(i.W2,null,(0,o.tZ)(R.Z,{product:p,overlapImage:!0,previous:b,next:f,standPath:C})),(0,o.tZ)(i.W2,null,(0,o.tZ)(d.Z,null,(0,o.tZ)(i.JX,{sx:{paddingY:3},flex:!0}
1,(0,o.tZ)(u.Z,{product:p})))),(0,o.tZ)(s.Z,{exhibitor:y,product:p,eventId:v.eventId}),E&&(0,o.tZ)(T.Z,{sx:{backgroundColor:"light",paddingTop:4,paddingBottom:5}},I&&(0,o.tZ)(L,{registeredProducts:Z,exhibitor:y,title:U?(0,o.tZ)(n.cC,{id:"More from {name}",values:{name:U}}):(0,o.tZ)(n.cC,{id:"Other products"}),link:(0,o.tZ)(k.Link,{to:C},(0,o.tZ)(n.cC,{id:"See profile →"})),sx:{paddingY:4}}),w&&(0,o.tZ)(L,{registeredProducts:m,exhibitor:y,title:(0,o.tZ)(n.cC,{id:"Related products"}),link:(0,o.tZ)(k.Link,{to:C},(0,o.tZ)(n.cC,{id:"See all"})),sx:{paddingY:4}})))}var Y=r(82492),B=r.n(Y);function J(t){var e=t.data,r=t.pageContext,n=t.location,i=t.navigate,l=function(t){var e,r,n,i,o,l,a=t.bottlebooks,d=t.product,c=t.previous,u=t.next,s=t.site.siteMetadata,p=Object.values(a),v=function(t){var e=t.reduce((function(t,e){var r,n,i=e.registeredProducts,o=e.product;if(!i)return t;var l=null===(r=i.nodes)||void 0===r?void 0:r[0];if(!l)return t;var a=l.productId;return t[a]=Object.assign({},l,{product:Object.assign({},l.product,o),collectionIds:[e.collectionId],standNames:[...(null===(n=t[a])||void 0===n?void 0:n.standNames)||[],{collectionId:e.collectionId}]}),t}),{});return Object.values(e)[0]}(p),Z=p[0],g=null==a||null===(e=a.event)||void 0===e||null===(r=e.registrations)||void 0===r||null===(n=r.nodes)||void 0===n?void 0:n[0],m=B()({},Object.assign({},d,{exhibitor:Object.assign({},null==d?void 0:d.exhibitor,g)}),null==a||null===(i=a.event)||void 0===i?void 0:i.product,null==v?void 0:v.product,v),h=((null===(o=v.producer)||void 0===o||null===(l=o.products)||void 0===l?void 0:l.nodes)||[]).filter((function(t){return t.productId!==d.productId})).slice(0,6);return{product:m,producer:null==m?void 0:m.producer,exhibitor:g,event:Z,siteTitle:s.title,next:u,previous:c,otherProducts:h}}(e),a=l.event,d=l.product,c=l.producer,u=l.exhibitor,s=l.otherProducts,p=l.next,v=l.previous,Z=l.siteTitle;return(0,o.tZ)(_,Object.assign({},r,{event:a,product:d,exhibitor:u,otherProducts:s,otherProductsName:null==c?void 0:c.name,previous:v,next:p,siteTitle:Z,location:n,navigate:i}))}}}]);
2//# sourceMappingURL=component---src-bottlebooks-gatsby-theme-event-pages-templates-product-template-js-7ea52d8d4cee735e7ce5.js.map

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.