(()=>{"use strict";var e,t,n={930:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.byhEvents=t.ByhEventTypes=t.ByhMessage=void 0;var i=n(271),r=function(e,t,n){this.byhId="byhId",this.widgetId=e,this.type=t,this.data=n};t.ByhMessage=r,t.ByhEventTypes={widgetInitialized:"initialized",widgetDisplayed:"displayed",navigateToUrl:"navigateToUrl",listHunts:"listHunts",territoryOpened:"territoryOpened",tourListOpened:"tourListOpened",askedQuestion:"askedQuestion",showPopupMap:"showPopupMap",closePopupMap:"closePopupMap",popupMapDisplayed:"popupMapDisplayed"},t.byhEvents=function(){var e=[];function n(e,t,n,i){var o=new r(n,t,i);e.postMessage(JSON.stringify(o),"*")}function o(e,t,i){window.parent&&n(window.parent,e,t,i)}function a(e,t,i,r){(null==e?void 0:e.contentWindow)&&n(e.contentWindow,t,i,r)}function u(t){t&&!e.includes(t)&&e.push(t)}function l(){return window.addEventListener("message",(function(t){try{var n=JSON.parse(t.data);if(null==n?void 0:n.byhId)for(var i=0;i{var n,i,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.default={setArgs:function(e,t,a,u){void 0===u&&(u=!1),n=e,r=t,i=a,o=u},send:function(e){n&&(window.dataLayer?window.dataLayer.push({event:"widgetEvent",widgetReferralCode:r,widgetHostUrl:i,widgetAction:e}):o&&console.log({event:"widgetEvent",widgetReferralCode:r,widgetAction:e,widgetHostUrl:i}))}}},813:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(930);t.default=function(){var e,t,n=function(e,t){this.iframe=e,this.hyphenOptions=t,this.isInitialized=!1,this.isDisplayed=!1},r="byh-widgets-loader",o="___PopupMap",a="widget-id",u=1,l={},s={DrivenHunt:1,HighSeat:2,Stalking:4,DrivenBirdHunt:8,WalkUpWithDogs:16,Baiting:32,HuntingFromABlind:64,BowHunting:128,ManagementHunt:256,RifleHunting:512,Calling:4096,Monteria:8192,ShotgunHunting:16384,Muzzleloader:32768,MeatHunt:65536,MountainHunting:1<<17,Rattling:1<<18,HorsebackHunting:1<<19,CrossbowHunting:1<<20},c={Moderate:1,Difficult:2,Extreme:4,Easy:8},d={Fenced:1,PartlyFenced:2,NotFenced:4},f={Russian:1,English:2,German:4,French:8,Spanish:16,Italian:32,Portuguese:64,Hungarian:128,Finnish:256,Afrikaans:512,Arabic:1024},p={PlainsGame:1,BigFour:2,BigFive:4,DangerousGame:8,SmallGame:16,BigGame:32,Predators:64,WingShooting:128,Waterfowl:256,SheepGoat:512},v={Guided:1,SemiGuided:2,SelfGuided:4},y={true:!0};function m(e){return e||null}function h(e){if(!e)return null;var t="number"==typeof e?e:parseInt(e);return isNaN(t)||t<=0?null:t}function g(e){return e&&!!("boolean"==typeof e?e:"true"===e.toLocaleLowerCase())||null}function w(e){if(!e)return null;var t=Array.isArray(e)?e:e.split(",");return(null==t?void 0:t.length)?t.reduce((function(e,t){return t&&e.push(t.trim()),e}),[]):null}function N(e,t){var n;return(null===(n=w(e))||void 0===n?void 0:n.reduce((function(e,n){var i=t[n];return i&&!isNaN(i)&&(e|=i),e}),0))||null}var b={"widget-id":{filterName:"widgetId",convert:m},"referral-code":{filterName:"referralCode",convert:m},currency:{filterName:"widgetCurrency",convert:m,values:{USD:"USD",EUR:"EUR",RUB:"RUB",GBP:"GBP",CAD:"CAD",ZAR:"ZAR",AUD:"AUD"}},title:{filterName:"title",convert:m},query:{filterName:"query",convert:m},"min-count":{filterName:"minCount",convert:h},"max-count":{filterName:"maxCount",convert:h},"map-height":{filterName:"height",convert:h},"show-all-territories":{filterName:"showAll",convert:g,values:y},popup:{filterName:"showPopup",convert:g,values:y},"view-all-on-map":{filterName:"viewAllOnMap",convert:g,values:y},"dark-theme":{filterName:"darkTheme",convert:g,values:y},"filters-enabled":{filterName:"filtersEnabled",convert:g,values:y},destination:{filterName:"country",convert:m},country:{filterName:"country",convert:m},species:{filterName:"animals",convert:w},animals:{filterName:"animals",convert:w},outfitter:{filterName:"outfitter",convert:m},"outfitter-pid":{filterName:"outfitterPid",convert:m},from:{filterName:"from",convert:m},"date-from":{filterName:"from",convert:m},to:{filterName:"to",convert:m},"date-to":{filterName:"to",convert:m},"hunters-count":{filterName:"huntersCount",convert:h},"guests-count":{filterName:"guestsCount",convert:h},"tour-types":{filterName:"tourTypes",convert:function(e){return N(e,s)},values:s},"hunting-methods":{filterName:"tourTypes",convert:function(e){return N(e,s)},values:s},"tour-difficulties":{filterName:"tourDifficulties",convert:function(e){return N(e,c)},values:c},difficulties:{filterName:"tourDifficulties",convert:function(e){return N(e,c)},values:c},"fence-types":{filterName:"fenceTypes",convert:function(e){return N(e,d)},values:d},"min-price":{filterName:"minPrice",convert:h},"max-price":{filterName:"maxPrice",convert:h},languages:{filterName:"languages",convert:function(e){return N(e,f)},values:f},"game-classifications":{filterName:"gameClassifications",convert:function(e){return N(e,p)},values:p},"duration-min":{filterName:"durationMin",convert:h},"duration-max":{filterName:"durationMax",convert:h},"gun-rental":{filterName:"gunRental",convert:g,values:y},"transfer-from-airport":{filterName:"transferFromAirport",convert:g,values:y},discounted:{filterName:"discounted",convert:g,values:y},"package-tour":{filterName:"packageTour",convert:g,values:y},"package-hunt":{filterName:"packageTour",convert:g,values:y},"new-tours-only":{filterName:"newToursOnly",convert:g,values:y},"new-hunts-only":{filterName:"newToursOnly",convert:g,values:y},"premium-hunt":{filterName:"premiumHunt",convert:g,values:y},"cancellation-hunt":{filterName:"cancellationHunt",convert:g,values:y},"combo-hunt":{filterName:"comboHunt",convert:g,values:y},"guidance-types":{filterName:"guidanceTypes",convert:function(e){return N(e,v)},values:v},"guiding-prefs":{filterName:"guidanceTypes",convert:function(e){return N(e,v)},values:v},"disabled-friendly":{filterName:"disabledFriendly",convert:g,values:y},"family-friendly":{filterName:"familyFriendly",convert:g,values:y},fishing:{filterName:"fishing",convert:g,values:y},"horse-riding":{filterName:"horseRiding",convert:g,values:y},excursions:{filterName:"excursions",convert:g,values:y},"otc-tag-available":{filterName:"otcTagAvailable",convert:g,values:y},"instant-booking":{filterName:"instantBooking",convert:g,values:y},"online-payment":{filterName:"onlinePayment",convert:g,values:y}};function E(e,n){e.style.display="block",t=document.body.style.overflow,document.body.style.overflow="hidden",function(e){var t=e.indexOf(o);if(t>=0){var n=e.substring(0,t),r=l[n];r&&i.byhEvents.onPopupMapDisplayed(e,r.iframe),i.byhEvents.onPopupMapDisplayed(e)}}(n)}function T(t,i){var r=Object.assign(function(e){var t={};if(!e)return t;for(var n=0;n0||o-r<0&&a-r>=0||o>0&&a-r<0||o<=0&&a-r>=0)&&(i.byhEvents.onWidgetDisplayed(e,t.iframe),t.isDisplayed=!0))}function H(){for(var e in l)A(e,l[e])}return{initialize:function(){var t,n,o=function(){var e='Widget base url not found! Are you missing id on loader js script element? Should be equal to "'.concat(r,'".'),t=document.getElementById(r);if(!(null==t?void 0:t.src))throw e;var n=t.src.split("//");if(1===n.length&&(n=window.location.href.split("//")),n.length<=1)throw e;return n[0]+"//"+n[1].split("/")[0]}();e="".concat(o,"/").concat("widget","/"),i.byhEvents.hostInit(),i.byhEvents.subscribe(P),window.addEventListener("scroll",(t=H,n=Date.now(),function(){n+100-Date.now()<0&&(t(),n=Date.now())}),!1),M("byh-widget")},initStaticWidgets:M,options:b,addWidget:T,addPopupMap:B,addPopupMapForCarousel:D}}()}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={exports:{}};return n[e](o,o.exports,r),o.exports}e=r(930),t=r(813),window.byh=window.byh||{},window.byh.events=e.byhEvents,window.byh.widgets=t.default,t.default.initialize()})();