1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="484da368-5c8f-4b80-ace3-76cb83805e7a",e._sentryDebugIdIdentifier="sentry-dbid-484da368-5c8f-4b80-ace3-76cb83805e7a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[640],{20640:(e,l,t)=>{t.r(l),t.d(l,{default:()=>W});var a=t(37876),i=t(14232),n=t(97719),d=t(60929),o=t(54587),s=t.n(o),u=t(76509),r=t(48676),c=t(10194),m=t(56557),p=t.n(m),v=t(71576),g=t.n(v),h=t(82908),_=t.n(h),f=t(48815),x=t.n(f),b=t(52804),y=t(39853),j=t(6155),C=t(18847),N=t.n(C),w=t(15130),A=t(32170),D=t(6522),S=t(73739),T=t(94229),k=t(32217),P=t(52043),R=t(25203),I=t(6269),M=t(93715),B=t(11096),E=t(86144),L=t(18435),G=t(7270);t(48230);var Y=t(99067),F=t(74502);N()(()=>Promise.resolve().then(t.bind(t,45203)),{loadableGenerated:{webpack:()=>[45203]},ssr:!0});let z=N()(()=>t.e(4164).then(t.bind(t,84164)),{loadableGenerated:{webpack:()=>[84164]},ssr:!0}),H=N()(()=>Promise.all([t.e(8165),t.e(785)]).then(t.bind(t,40785)),{loadableGenerated:{webpack:()=>[40785]},ssr:!1}),U=N()(()=>t.e(8165).then(t.t.bind(t,48165,23)),{loadableGenerated:{webpack:()=>[48165]},ssr:!1});p().extend(g()),p().extend(_());let W=e=>{var l,o,m,v,g,h,_,f,C,N,W,K,O,q;let{guideDetails:V,template:J,domain:Q,fishingReports:X,serverSideRateCards:Z=[]}=e,$=null==V||null==(l=V.page_attributes)?void 0:l.current_page,[ee,el]=(0,i.useState)([]),[et,ea]=(0,i.useState)(null),ei=b.Bd&&window.innerWidth<=560,[en,ed]=(0,i.useState)([]),[eo,es]=(0,i.useState)((null==$||null==(o=$.side_content_media)?void 0:o.data)||[]),eu=(0,i.useContext)(y.A),[er,ec]=(0,i.useState)({}),[em,ep]=(0,i.useState)(!1),[ev,eg]=(0,i.useState)(!0);null==V||null==(m=V.page_attributes)||m.theme_color,null==V||null==(v=V.page_attributes)||v.template;let eh=!!(null==$?void 0:$.custom_page_type),e_=null==V||null==(h=V.page_attributes)||null==(g=h.current_page)?void 0:g.show_author,[ef,ex]=(0,i.useState)(0),[eb,ey]=(0,i.useState)([]),[ej,eC]=(0,i.useState)([]),[eN,ew]=(0,i.useState)([]),[eA,eD]=(0,i.useState)(!1);(0,i.useEffect)(()=>{ea(b.Bd&&window.location.href)},[]);let eS=(0,i.useContext)(j.A),{setAvailableSchedules:eT,setAvailableMeetingPoints:ek,setAvailableRateCards:eP}=eS,{loading:eR,availableSchedules:eI,availableRateCards:eM,refetch:eB}=(0,G.h)({guideDetails:V,context:eu,tripDetailsContext:eS,post:L.post,getCartItems:E.je,getAvailability:w.Ay});(0,i.useEffect)(()=>{b.Bd&&window.scrollTo({top:0,behavior:"smooth",block:"center"})},[]);let eE=(0,i.useRef)();(0,i.useEffect)(()=>(eE.current=new Worker(t.tu(new URL(t.p+t.u(1364),t.b))),eE.current.onmessage=e=>{let{data:l}=e;if("GET_GBS_AVAILABILITY"===l.type){var t,a,i;eS.setRateCards(null==l||null==(t=l.data)?void 0:t.ratecards),eu.setNotAvail(l.not),eu.setSchRecords(l.data),eu.setSchedule(l.available),eu.setGoodtoknow(null==l||null==(a=l.data)?void 0:a.customer_goodtoknows),eu.setLoading(!1),eT(l.data.schedule),ek(l.data.poi),eP(l.data.ratecards),(0,E.z8)(null==(i=l.data)?void 0:i.apply_vehicle_capacity)}},()=>{eE.current.terminate()}),[]),(0,i.useEffect)(()=>{var e,l;!eu.loading||(null==V||null==(e=V.page_attributes)?void 0:e.is_mt)||null==(l=eE.current)||l.postMessage({type:"GET_GBS_AVAILABILITY",data:V,paginate:!1,prevData:[]}),null==eS||eS.setUserData({currency:null==V?void 0:V.currency})},[]);let[eL,eG]=(0,i.useState)({}),[eY,eF]=(0,i.useState)([]);(0,i.useEffect)(()=>{let e=(null==eM?void 0:eM.length)>0?eM:null==eS?void 0:eS.rateCards;eF(e),eG(e?null==e?void 0:e.find(e=>{var l;return Number(e.id)===Number(null==$||null==(l=$.selected_ratecards)?void 0:l[0])}):{})},[eM,null==$?void 0:$.selected_ratecards,null==eS?void 0:eS.rateCards]);let ez=(null==eM?void 0:eM.length)>0?eM:(null==Z?void 0:Z.length)>0?Z:(null==V?void 0:V.ratecards)||[],eH={...{...$,media:null==$||null==(f=$.media)||null==(_=f.data)?void 0:_.map(e=>({...e,mediapath:e.pimage,url:e.pimage,medianame:"example.jpg"}))},ratecard:ez};(0,i.useEffect)(()=>{(null==$?void 0:$.media)&&ed(null==eH?void 0:eH.media)},[null==$?void 0:$.media]),(0,i.useEffect)(()=>{var e;let l=null==eS||null==(e=eS.availableSchedules)?void 0:e.find(e=>e.date===p()(new Date).format("YYYY-MM-DD"));if(null==eS?void 0:eS.availableRateCards){let e=(0,w.CP)(null==eS?void 0:eS.availableRateCards,l);ec(null==e?void 0:e.reduce((e,l)=>(e[l.id]=!0,e),{}))}},[eS]),(0,i.useEffect)(()=>{var e;let l=null==eS||null==(e=eS.availableSchedules)?void 0:e.find(e=>e.date===p()(new Date).format("YYYY-MM-DD"));if(null==eS?void 0:eS.availableRateCards){let e=(0,w.CP)(eS.availableRateCards,l);ec(null==e?void 0:e.reduce((e,l)=>(e[l.id]=!0,e),{}))}},[null==eS?void 0:eS.availableRateCards,null==eS?void 0:eS.availableSchedules]);let eU=()=>{var e;let l=[],t=(null==$?void 0:$.media)&&(null==$?void 0:$.media);return(null==$?void 0:$.coverpicture)&&l.push({media:null==$?void 0:$.coverpicture,mediapath:null==$?void 0:$.coverpicture,index:0,media_type:"image",alt:null==$?void 0:$.t
1itle,caption:null==$?void 0:$.title,focal_point:null==$?void 0:$.coverpicture_focal_point,medianame:null==$?void 0:$.coverpicture}),null==t||null==(e=t.data)||e.map((e,t)=>{var a,i,n,d,o,s,u,r;(null==e||null==(i=e.medianame)?void 0:i.substring((null==e||null==(a=e.medianame)?void 0:a.length)-3))!=="svg"&&l.push({media:(null==e||null==(n=e.pimage)?void 0:n.path)?null==e||null==(d=e.pimage)?void 0:d.path:null==e?void 0:e.pimage,mediapath:(null==e||null==(o=e.pimage)?void 0:o.path)?null==e||null==(s=e.pimage)?void 0:s.path:null==e?void 0:e.pimage,index:l.length,media_type:(null==e?void 0:e.mediadescription)||"image",alt:(null==e?void 0:e.alt)||(null==$?void 0:$.title),caption:(null==e?void 0:e.caption)||(null==$?void 0:$.title),focal_point:null==e?void 0:e.focal_point,medianame:(null==e||null==(u=e.pimage)?void 0:u.path)?null==e||null==(r=e.pimage)?void 0:r.path:null==e?void 0:e.pimage})}),l};return(0,a.jsxs)(a.Fragment,{children:[(null==$?void 0:$.page_type)==="Shopify"?(0,a.jsx)(S.A,{data:$,props:e}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("main",{id:"".concat((null==$?void 0:$.coverpicture)?"customPageContainer":"customPageContainerNoImage"),children:[(0,a.jsx)("div",{className:r.main,style:{paddingBottom:0},children:(0,a.jsxs)("div",{id:"fullReport",children:[(0,a.jsx)(A.default,{...e}),(null==$?void 0:$.custom_page_type)&&(()=>{let l=null==Z?void 0:Z.filter(e=>{var l;return null==$||null==(l=$.selected_ratecards)?void 0:l.includes(e.id)}),t=(null==l?void 0:l.length)>0?l:[];return(0,a.jsx)(D.A,{pageType:null==$?void 0:$.custom_page_type,data:$,guideDetails:V,availableRateCards:t,domain:Q,resolvedUrl:null==e?void 0:e.resolvedUrl,isMT:!1,from:null==e?void 0:e.from,url:null==e?void 0:e.url})})(),(0,a.jsx)(n.A,{className:"bigContainer1",children:(0,a.jsxs)(d.A,{className:"nopadding p-0",xs:12,sm:12,md:12,lg:12,children:[eh?(0,a.jsx)(B.A,{pageData:$,guideDetails:V,isShowAuthor:e_,isMobile:ei,isMT:!1}):(0,a.jsxs)("div",{className:"loka_report_header",children:[(0,a.jsx)("h1",{children:null==$?void 0:$.title}),(0,a.jsx)(I.default,{report:eH,guideDetails:V,isMobile:ei,availableRateCards:ez})]}),(0,a.jsxs)(n.A,{className:"mt-4 mobile-mt10 ".concat(c.imgContainer),children:[(0,a.jsx)(d.A,{xs:12,sm:12,md:5,lg:5,className:"summary-left-content report_details_page d-flex justify-content-center align-items-center",children:(0,a.jsx)(M.A,{data:null==$?void 0:$.article_summary})}),(0,a.jsx)(d.A,{xs:12,sm:12,md:7,lg:7,className:"summary-right-content",children:ei?(0,a.jsx)(R._,{report:eH,photosArray:[...eU()],is_mt:!0}):(0,a.jsx)(z,{imageList:eU(),report:$,handleLightBox:(e,l)=>{var t,a=[],i=[];let n=[],d=[...(null==$||null==(t=$.media)?void 0:t.data)||[]];for(let e of((null==$?void 0:$.coverpicture)&&d.unshift({mediapath:$.coverpicture,media_type:"image",caption:$.title}),d)){let l=(null==e?void 0:e.pimage)||(null==e?void 0:e.mediapath)||(null==e?void 0:e.url);"videos"===e.media_type||"video"===e.media_type?(i.push("video"),a.push("https://da9mvpu5fnhic.cloudfront.net/".concat((0,T.kb)(l)))):(i.push("image"),a.push("".concat(null===x()||void 0===x()?void 0:x().cloudfront).concat((0,T.kb)(l)))),n.push(e.caption||"")}ey(a),eC(i),ew(n),ex(l),eD(!0)},hasCustomPageType:eh})})]})]})})]})}),(null==$?void 0:$.ratecard_extra)&&(null==$?void 0:$.ratecards_position_top)?(0,a.jsx)("div",{className:u.custom_page_ratecard,children:(0,a.jsx)(P.default,{guideDetails:V,pageDataForCustomPage:$,availableRateCards:null==eS?void 0:eS.availableRateCards,template:J,customClassName:c.customClassName,optionAvail:er,setOptionAvail:ec,from:null==$?void 0:$.page_type,isCustomPage:ev})}):null,(0,a.jsxs)("div",{className:r.main,children:[(0,a.jsxs)("div",{id:"custom__page__mid__section",children:[(null==$?void 0:$.display_side_content)||eh?(0,a.jsxs)(d.A,{item:!0,xs:12,sm:12,md:3,lg:3,id:"desktop-side-content",children:[eh?(0,a.jsx)(Y.A,{guideDetails:V,currentPageId:null,isMT:!1,reports:X,is_custom:!(null==$?void 0:$.display_giftcard)}):null,(0,a.jsxs)("div",{className:"".concat(J&&u.popularitySection," "),style:{marginRight:"10px"},children:[(0,a.jsx)(n.A,{container:!0,spacing:2,style:{marginBottom:"30px",display:"flex",margin:"0 auto"},children:(null==eo?void 0:eo.length)?eo.map((e,l)=>(0,a.jsxs)("a",{href:e.buttonHref||"#",rel:"noreferrer",className:"sideColumnDesk",style:{pointerEvents:(null==e?void 0:e.buttonHref)?"auto":"none"},target:"_blank",children:[(0,a.jsx)("p",{className:"".concat(u.sectionTitle," mtReportTitle custompage__sidecol__title"),style:{paddingBottom:10},children:null==e?void 0:e.caption}),(0,a.jsx)(s(),{src:"".concat(x().cloudfront,"fit-in/300x300/").concat(e.pimage),alt:(null==e?void 0:e.alt)||(null==e?void 0:e.caption),className:"".concat(""," SliderCardImage"),style:{marginBottom:0,width:"100%",height:"auto",...(0,T.Wt)(e)&&{objectPosition:(0,T.Wt)(e)}},quality:80,placeholder:"blur",blurDataURL:"".concat(x().cloudfront,"fit-in/300x300/").concat(e.pimage),loading:"lazy",width:295,height:385}),(null==e?void 0:e.buttonHref)?(0,a.jsx)("button",{className:"gradientBtn bookNowBtn navButton navMobilebtn blackFont",style:{padding:16,fontSize:14,width:"100%",margin:"0px !important"},children:e.buttonText}):null]},l)):null}),(null==$?void 0:$.side_content_monthly_calendar)?(0,a.jsx)("div",{className:"datePicker",style:{maxWidth:"320px"},children:(0,a.jsx)(k.default,{attr:null==V?void 0:V.seo_snippets,guideDetails:V,is_mt:!1,showTrip:em,setShowTrip:ep,url:""})}):null]})]}):null,(0,a.jsxs)(d.A,{item:!0,xs:12,sm:12,md:(null==$?void 0:$.display_side_content)||eh?9:12,lg:(null==$?void 0:$.display_side_content)||eh?9:12,children:[(null==$?void 0:$.article_c
1ontent)&&(0,a.jsx)("div",{style:{paddingTop:0},className:"".concat(u.fullDesc," weather custompage__short__description"),children:(0,a.jsx)("div",{className:"clearfix",dangerouslySetInnerHTML:{__html:(0,F.a)(null==$||null==(C=$.article_content)?void 0:C.normalize("NFKD"))}})}),((null==$||null==(N=$.media_description)?void 0:N.length)>0||(null==$?void 0:$.media_gallery_title))&&(0,a.jsxs)("div",{className:"media_description",children:[(en&&(null==en?void 0:en.length)>0||(null==$||null==(W=$.media_description)?void 0:W.length)>0)&&(0,a.jsx)("div",{className:u.Desc,children:(0,a.jsx)("h3",{className:"".concat(u.SubTitle," mtTitle mainHeading"),style:{marginTop:"0px",fontWeight:"bold"},children:null!=(q=null==$||null==(K=$.media_gallery_title)?void 0:K.normalize("NFKD"))?q:"Media Gallery"})}),(0,a.jsx)("p",{className:"".concat(u.fullDesc," weather mainPaddingCustomPage"),dangerouslySetInnerHTML:{__html:null==$||null==(O=$.media_description)?void 0:O.normalize("NFKD")}})]})]})]}),(0,a.jsxs)("div",{id:"mobile-side-content",className:"custompage__side__content",children:[eh?(0,a.jsx)(Y.A,{guideDetails:V,currentPageId:null,reports:X,isMT:!1,is_custom:!(null==$?void 0:$.display_giftcard)}):null,(null==eo?void 0:eo.length)>0?(0,a.jsx)("div",{className:"".concat(J?c.container:c.container2," ").concat((null==eo?void 0:eo.length)<=4&&!J&&c.center," rateCardReportPreview"),style:{justifyContent:(null==eo?void 0:eo.length)===1?"center":""},children:null==eo?void 0:eo.map((e,l)=>(0,a.jsx)("a",{href:e.buttonHref||"#",className:"".concat(c.mobile__sidebar," mobile__sidebar"),children:(0,a.jsxs)("div",{className:"".concat(c.cardContainer," ").concat(u.custom__page__rc),children:[(0,a.jsx)("p",{children:e.caption}),(0,a.jsx)(s(),{src:"".concat(x().cloudfront,"fit-in/300x300/").concat(e.pimage),alt:(null==e?void 0:e.alt)||(null==e?void 0:e.caption),quality:80,placeholder:"blur",blurDataURL:"".concat(x().cloudfront,"fit-in/300x300/").concat(e.pimage),loading:"lazy",width:268,height:268}),e.buttonText?(0,a.jsx)("button",{children:e.buttonText}):null]},e.id)},l))}):null]}),ei&&(null==$?void 0:$.side_content_monthly_calendar)?(0,a.jsx)("div",{className:"datePickerMobile",style:{marginBottom:"30px"},children:(0,a.jsx)(k.default,{attr:null==V?void 0:V.seo_snippets,guideDetails:V,is_mt:!1,showTrip:em,setShowTrip:ep,url:""})}):null]})]}),en&&(null==en?void 0:en.length)>0?(0,a.jsx)(H,{photosArray:en,template:J,gallery:ee,setGallery:el}):null]})}),(null==$?void 0:$.ratecard_extra)&&(null==$?void 0:$.page_sub_type)!=="ratecard"?(null==$?void 0:$.ratecards_position_top)?null:(0,a.jsx)("div",{className:"".concat((null==$?void 0:$.page_type)==="Shopify"&&r.shopMaint2),style:{paddingTop:0,paddingBottom:0},children:(0,a.jsx)(P.default,{guideDetails:V,pageDataForCustomPage:$,availableRateCards:null==eS?void 0:eS.availableRateCards,template:J,customClassName:c.customClassName,optionAvail:er,setOptionAvail:ec,from:null==$?void 0:$.page_type,isCustomPage:ev})}):null,(0,a.jsx)(n.A,{className:"".concat(u.PaddingCont," ").concat(u.mainGuidePicCont),children:eA&&(0,a.jsx)(U,{toggler:eA,types:ej,sources:eb,captions:eN,slide:ef+1,disableLocalStorage:!0,onClose:()=>{eD(!1)},openOnMount:!0})})]})}}}]); 2//# sourceMappingURL=640.d4e20b7d9423f8b2.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.