1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4072,8089],{28089:function(e,s,t){t.r(s),t.d(s,{default:function(){return b}});var l=t(57437),a=t(2265),n=t(57213),r=e=>{let{setPageNo:s}=e,t=a.useRef(null);return(0,a.useEffect)(()=>{let e=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&s(e=>e+=1)},{threshold:1});return t.current&&e.observe(t.current),()=>e.disconnect()},[]),(0,l.jsx)("div",{ref:t,children:(0,l.jsx)(n.Z,{type:"imageDetailsBox",numberOfColumn:4})})},i=t(99914),c=t(50288),o=t(98723),d=t(65051),u=t(73215),m=t(27648),h=t(33145),p=t(78572),x=t(94145),g=t(3931),f=t(71096),y=t.n(f),b=e=>{let{setPageNo:s,payload:t,pageNo:n=null,isReadArticle:f=!1,sectionHeading:b,isTagShow:j=!1,bgColor:_="",isShowCategory:v=!1,categoryColor:N="text-danger",isTravelBlog:k=!1,sortBy:O=""}=e,[S,C]=(0,a.useState)([]);(0,a.useEffect)(()=>{w(t,n)},[n]);let w=async(e,s)=>{try{s&&(e.page=s||1);let{data:t}=await (0,x.Ry)(e);if(k&&(t="articleDate.month"===O?t.sort((e,s)=>new Date(e.article_date).getMonth()<new Date(s.article_date).getMonth()?-1:1):t.sort((e,s)=>e[O]<s[O]?-1:1)),s){C([...S,...t]);return}C(t)}catch(e){}};return(0,l.jsx)(l.Fragment,{children:S.length>0&&(0,l.jsx)("section",{className:"".concat(_),children:(0,l.jsxs)(i.Z,{children:[(null==b?void 0:b.title)&&!(null==b?void 0:b.subTitle)&&!(null==b?void 0:b.link)&&(0,l.jsx)("h2",{children:null==b?void 0:b.title}),(null==b?void 0:b.title)&&(null==b?void 0:b.subTitle)&&(null==b?void 0:b.link)&&(0,l.jsxs)("div",{className:"d-flex justify-content-between align-items-center flex-wrap",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-secondary font-weight-bold subtitle mb-2",children:null==b?void 0:b.title}),(0,l.jsx)("h2",{children:null==b?void 0:b.subTitle})]}),(0,l.jsxs)(m.default,{href:null==b?void 0:b.link,className:"text-sm text-dark",children:["See all articles",(0,l.jsx)(g.Z,{})]})]}),(0,l.jsxs)(c.Z,{className:"mt-5",children:[null==S?void 0:S.map((e,s)=>{var t;return(0,l.jsx)(o.Z,{lg:4,md:6,className:"mb-4",children:(0,l.jsxs)(d.Z,{className:"h-100 border-0 shadow hover-animate position-relative",children:[(0,l.jsx)("div",{className:"card-img-top overflow-hidden",children:(0,l.jsx)(m.default,{href:"/blog/".concat(null==e?void 0:e.friendly_url),children:(0,l.jsx)(h.default,{loading:"lazy",className:"w-100",height:207,width:349,src:e.image,alt:"placeholder image"})})}),(0,l.jsx)(u.Z,{children:(0,l.jsxs)("div",{className:"w-100",children:[e.blog_categories.length>0&&v?(0,l.jsx)("p",{className:"mb-2 text-uppercase text-sm",children:null==e?void 0:null===(t=e.blog_categories)||void 0===t?void 0:t.map((s,t)=>(0,l.jsxs)(m.default,{style:{letterSpacing:"3px"},href:"#",className:"".concat(N," d-inline-block"),children:[s.name,t!==e.blog_categories.length-1&&(0,l.jsx)("strong",{className:"px-1",children:"â¢"})]},t))}):null,(0,l.jsx)("h4",{children:(0,l.jsx)(m.default,{target:"_blank",rel:"noopener noreferrer",href:"/blog/".concat(e.friendly_url),className:"text-dark ",children:null==e?void 0:e.title})}
1),(0,l.jsx)("p",{className:"my-3 text-sm ".concat(k?"":"text-gray-500"),children:k?e.article_date_desc?e.article_date_desc:y()(e.article_date).format("MMMM"):e.article_date}),(0,l.jsx)("p",{className:"text-muted",children:null==e?void 0:e.excerpt}),j&&e.blog_tags.map((e,s)=>(0,l.jsx)(m.default,{href:"#",className:"btn btn-sm btn-outline-secondary text-secondary underline-none mr-2 mb-2",children:e.name},s)),f&&(0,l.jsxs)(m.default,{href:"/blog/".concat(null==e?void 0:e.friendly_url),className:"btn small px-0",children:["Read Article",(0,l.jsx)(p.Z,{})]})]})})]})},s)}),S.length>0&&n?(0,l.jsx)(r,{setPageNo:s}):null]})]})})})}},27536:function(e,s,t){var l=t(57437),a=t(89444),n=t(98702),r=t(82310),i=t(26055),c=t(61453),o=t(9245),d=t(16449),u=t(12713),m=t(18697),h=t(71096),p=t.n(h),x=t(27648),g=t(2265),f=t(55162);s.Z=e=>{let{setIsOpen:s,isOpen:t}=e,[h,y]=(0,g.useState)(""),[b,j]=(0,g.useState)(null),_=(0,g.useRef)(null),[v,N]=(0,g.useState)([]),[k,O]=(0,g.useState)([]),[S,C]=(0,g.useState)([]),[w,J]=(0,g.useState)([]),[Z,$]=(0,g.useState)([]),[R,B]=(0,g.useState)([]),[E,P]=(0,g.useState)([]),[M,D]=(0,g.useState)([]);(0,g.useEffect)(()=>{let e=m.Z.CancelToken.source();return j(e),(async s=>{if(""!=s)try{let t=await m.Z.get("".concat(i.S$,"/reservation/businesssearch?search_term=").concat(s),{...(0,r.bE)(),cancelToken:e.token});B([]),N(t.data.data)}catch(e){m.Z.isCancel(e)||console.error("Error:",e.message)}})(h),()=>e.cancel("Component unmounted")},[h]),(0,g.useEffect)(()=>{B(v.filter(e=>e.business_search_result_type==c.d3.Region).sort((e,s)=>s.region.localeCompare(h))),C(v.filter(e=>e.business_search_result_type==c.d3.Property&&e.billing_plan>0)),O(v.filter(e=>e.business_search_result_type==c.d3.Event).sort(function(e,s){return s.event_start_date.valueOf()-e.event_start_date.valueOf()})),J(v.filter(e=>e.business_search_result_type==c.d3.Property&&e.billing_plan<=0)),$(v.filter(e=>e.business_search_result_type==c.d3.Location).sort((e,s)=>s.city.localeCompare(h)))},[v]),(0,g.useEffect)(()=>{t&&setTimeout(()=>{_.current&&_.current.focus()},100)},[t]),(0,g.useEffect)(()=>{let e=(0,o.gR)("recentSearches");P(e=e||[])},[M]);let H=(e,s,t)=>{let l="recentSearches",a=(0,o.gR)(l)||[];a.some(l=>l.displayName===e&&l.url===s&&l.type===t)||(a=[{displayName:e,url:s,type:t},...a].slice(0,5)),(0,o.lS)(l,a),D(a)};return(0,l.jsxs)(n.Z,{isOpen:t,setIsOpen:s,title:"Search CellarPass",setSearchTerm:y,cardBodyClassName:"px-0 py-2 search-list-box",children:[(0,l.jsxs)(d.Z,{className:"d-flex align-items-end position-relative px-2 pb-3",children:[(0,l.jsx)(a.W1,{className:"text-muted position-absolute mb-2"}),(0,l.jsx)(u.Z,{className:"search-input",fullWidth:!0,id:"input-with-sx",label:"Where to?",variant:"standard",value:h,onChange:e=>y(e.target.value),inputRef:_})]}),!h&&E.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsx)("h6",{className:"col-lg-12 pt-3 pb-2 px-4",children:"Your recent searches"}),E.map((e,t)=>(0,l.jsx)(x.default,{href:"/".concat(e.url),className:"border-light",onClick:()=>{s(!1)},children:(0,l.jsxs)("h6",{className:"my-3 px-4",children:["Location"==e.type?(0,l.jsx)(a.Zl,{className:"pe-1"}):"Region"==e.type?(0,l.jsx)(a.Zl,{className:"pe-1"}):"Property"==e.type?(0,l.jsx)(a.Zy,{className:"me-2"}):"Event"==e.type?(0,l.jsx)(a.Pr,{className:"me-2",width:16,height:16}):null," ",e.displayName,(0,l.jsxs)("small",{style:{fontSize:"80%",fontWeight:400},children:[" ","[",e.type,"]"]})]})},t))]}),h&&(0,l.jsxs)("div",{className:"pt-4",children:[R.length>0&&S.length>0?null:(0,l.jsx)("h6",{className:"px-3",children:"Sorry, no data to show"}),R.length>0&&(0,l.jsxs)("div",{className:"list-group list-group-flush",children:[(0,l.jsx)("span",{className:"disabled bg-light py-2 px-3 text-muted",children:"Regions"}),R.map((e,t)=>{let n=new URLSearchParams({searchterm:decodeURIComponent(e.region).replace(/ \| /g,"_").replace(/ /g,"-")});return(0,l.jsx)(x.default,{href:"/search?".concat(n),onClick:()=>{s(!1),H(e.region,"region/"+e.region_url+"/things-to-do","Region"),y("")},style:{position:"relative",display:"block",padding:"1rem 1.25rem",marginBottom:"-1px",backgroundColor:"#fff",borderBottom:"2px s
1olid #f8f9fa"},children:(0,l.jsxs)("h6",{style:{marginBottom:"0"},children:[(0,l.jsx)(a.Zl,{className:"me-2"}),e.region]})},t)})]}),S.length>0&&(0,l.jsxs)("div",{className:"list-group list-group-flush",children:[(0,l.jsx)("span",{className:"border-light disabled bg-light py-1 px-3 text-muted",children:"Properties"}),S.map((e,t)=>(0,l.jsx)(x.default,{href:"/business/".concat(e.purchase_url),onClick:()=>{s(!1),H(e.display_name+" - "+e.city+", "+e.state,"business/"+e.purchase_url,"Property"),y("")},style:{position:"relative",display:"block",padding:"1rem 1.25rem",marginBottom:"-1px",backgroundColor:"#fff",borderBottom:"2px solid #f8f9fa"},children:(0,l.jsxs)("h6",{style:{marginBottom:"0"},children:[e.business_type===c.r$.Winery?(0,l.jsx)(a.JO,{icon:f.ShZ,className:"me-2"}):e.business_type===c.r$.Distilleries?(0,l.jsx)(a.JO,{icon:f.CiY,className:"me-2"}):e.business_type===c.r$.Brewery?(0,l.jsx)(a.JO,{icon:f.JRw,className:"me-2"}):e.business_type===c.r$.Transportation?(0,l.jsx)(a.JO,{icon:f.lft,className:"me-2"}):e.business_type===c.r$.Restaurants?(0,l.jsx)(a.JO,{icon:f.fkH,className:"me-2"}):e.business_type===c.r$.Activity?(0,l.jsx)(a.JO,{icon:f._Vg,className:"me-2"}):e.business_type===c.r$.Accommodation?(0,l.jsx)(a.JO,{icon:f.Ht4,className:"me-2"}):e.business_type===c.r$.DestinationOrg?(0,l.jsx)(a.JO,{icon:f.P88,className:"me-2"}):e.business_type===c.r$.Health?(0,l.jsx)(a.JO,{icon:f.FlN,className:"me-2"}):e.business_type===c.r$.Shopping?(0,l.jsx)(a.JO,{icon:f.Cdv,className:"me-2"}):e.business_type===c.r$.Entertainment?(0,l.jsx)(a.JO,{icon:f.SDO,className:"me-2"}):e.business_type===c.r$.FilmFestival?(0,l.jsx)(a.JO,{icon:f.G0d,className:"mr-1"}):null,e.display_name," ",(0,l.jsxs)("small",{style:{fontSize:"80%",fontWeight:400},children:["⢠",e.city,", ",e.state]})]})},t))]}),k.length>0&&(0,l.jsxs)("div",{className:"list-group list-group-flush",children:[(0,l.jsx)("span",{className:"border-light disabled bg-light py-1 px-3 text-muted",children:"Events"}),k.map((e,t)=>(0,l.jsx)(x.default,{href:"/events/".concat(null==e?void 0:e.friendly_url),onClick:()=>{s(!1),H(e.event_organizer_name+" - "+e.event_title,"events/"+e.friendly_url,"Event"),y("")},style:{position:"relative",display:"block",padding:"1rem 1.25rem",marginBottom:"-1px",backgroundColor:"#fff",borderBottom:"2px solid #f8f9fa"},children:(0,l.jsxs)("h6",{style:{marginBottom:"0"},children:[(0,l.jsx)(a.Pr,{className:"me-2",width:16,height:16}),e.event_title," ",(0,l.jsxs)("small",{style:{fontSize:"80%",fontWeight:400},children:["⢠",e.event_city,", ",e.event_state," â¢"," ",p()(e.event_start_date).format("dddd, MMMM d, YYYY")," ","[",e.event_organizer_name,"]"]})]})},t))]}),w.length>0&&(0,l.jsxs)("div",{className:"list-group list-group-flush",children:[(0,l.jsx)("span",{className:"border-light disabled bg-light py-1 px-3 text-muted",children:"Properties"}),w.map((e,t)=>(0,l.jsx)(x.default,{href:"/business/".concat(e.purchase_url),onClick:()=>{s(!1),H(e.display_name+" - "+e.city+", "+e.state,"business/"+e.purchase_url,"Property"),y("")},style:{position:"relative",display:"block",padding:"1rem 1.25rem",marginBottom:"-1px",backgroundColor:"#fff",borderBottom:"2px solid #f8f9fa"},children:(0,l.jsxs)("h6",{style:{marginBottom:"0"},children:[e.business_type===c.r$.Winery?(0,l.jsx)(a.JO,{icon:f.ShZ,className:"me-2"}):e.business_type===c.r$.Distilleries?(0,l.jsx)(a.JO,{icon:f.CiY,className:"me-2"}):e.business_type===c.r$.Brewery?(0,l.jsx)(a.JO,{icon:f.JRw,className:"me-2"}):e.business_type===c.r$.Transportation?(0,l.jsx)(a.JO,{icon:f.lft,className:"me-2"}):e.business_type===c.r$.Restaurants?(0,l.jsx)(a.JO,{icon:f.fkH,className:"me-2"}):e.business_type===c.r$.Activity?(0,l.jsx)(a.JO,{icon:f._Vg,className:"me-2"}):e.business_type===c.r$.Accommodation?(0,l.jsx)(a.JO,{icon:f.Ht4,className:"me-2"}):e.business_type===c.r$.DestinationOrg?(0,l.jsx)(a.JO,{icon:f.P88,className:"me-2"}):e.business_type===c.r$.Health?(0,l.jsx)(a.JO,{icon:f.FlN,className:"me-2"}):e.business_type===c.r$.Shopping?(0,l.jsx)(a.JO,{icon:f.Cdv,className:"me-2"}):e.business_type===c.r$.Entertainment?(0,l.jsx)(a.JO,{icon:f.SDO,className:"me-2"}):e.business_type===c.r$.FilmFestival?(0,l.jsx)(a.JO,{icon:f.G0d,className:"mr-1"}):null,e.display_name," ",(0,l.jsxs)("small",{style:{fontSize:"80%",fontWeight:400},children:["⢠",e.city,", ",e.state]})]})},t))]}),Z.length>0&&(0,l.jsxs)("div",{className:"list-group list-group-flush",children:[(0,l.jsx)("span",{className:"border-light disabled bg-light py-1 px-3 text-muted",children:"Locations"}),Z.map((e,t)=>{let n=new URLSearchParams({searchterm:decodeURIComponent(e.city).replace(/ \| /g,"_").replace(/ /g,"-")});return(0,l.jsx)(x.default,{href:"/search?".concat(n),onClick:()=>{s(!1),H(e.city+" - "+e.state,"region/"+e.region_url,"Location"),y("")},style:{position:"relative",display:"block",padding:"1rem 1.25rem",marginBottom:"-1px",backgroundColor:"#fff",borderBottom:"2px s
1olid #f8f9fa"},children:(0,l.jsxs)("h6",{style:{marginBottom:"0"},children:[(0,l.jsx)(a.Zl,{className:"pe-1"}),e.city,", ",e.state]})},t)})]})]})]})}},34072:function(e,s,t){t.r(s);var l=t(57437),a=t(2265),n=t(27536),r=t(28089);s.default=()=>{let[e,s]=(0,a.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.default,{payload:{count:3,exclude_categories:"business,newsletter"},bgColor:"bg-gray-100 py-5",isShowCategory:!0,isReadArticle:!0,categoryColor:"text-dark",sectionHeading:{title:"Locals share their Favorites",subTitle:"Read our travel blog",link:"/blog"}}),(0,l.jsx)(n.Z,{isOpen:e,setIsOpen:s})]})}},94145:function(e,s,t){t.d(s,{$l:function(){return c},Ry:function(){return r},iN:function(){return i}});var l=t(23512),a=t(82310),n=t(26055);let r=async e=>await (0,l.H)("".concat(n.jk,"/blog/getarticles?").concat((0,a.uM)(e)),(0,a.KZ)()),i=async()=>await (0,l.H)("".concat(n.jk,"/blog/getlatestarticle"),(0,a.KZ)()),c=async e=>await (0,l.H)("".concat(n.jk,"/blog/getarticlebyurl?friendly_url=").concat(null==e?void 0:e.url),(0,a.KZ)())}}]);
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.