(()=>{"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{Object.defineProperty(t,"__esModule",{value:!0}),t.default={huntsCarousel:"hunts",huntingMap:"map",logo:"logo",ouRating:"ou-rating"}},271:(e,t)=>{var n,i,r,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.default={setArgs:function(e,t,u,l,s){void 0===s&&(s=!1),n=e,i=t,o=u,r=l,a=s},send:function(e){n&&(window.dataLayer?window.dataLayer.push({event:"widgetEvent",widgetType:i,widgetReferralCode:o,widgetHostUrl:r,widgetAction:e}):a&&console.log({event:"widgetEvent",widgetType:i,widgetReferralCode:o,widgetAction:e,widgetHostUrl:r}))}}},813:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(930),r=n(178);t.default=function(){var e,t,n=function(e,t){this.iframe=e,this.hyphenOptions=t,this.isInitialized=!1,this.isDisplayed=!1},o="byh-widgets-loader",a="___PopupMap",u="widget-id",l=1,s={},d={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},f={Fenced:1,PartlyFenced:2,NotFenced:4},p={Russian:1,English:2,German:4,French:8,Spanish:16,Italian:32,Portuguese:64,Hungarian:128,Finnish:256,Afrikaans:512,Arabic:1024},v={PlainsGame:1,BigFour:2,BigFive:4,DangerousGame:8,SmallGame:16,BigGame:32,Predators:64,WingShooting:128,Waterfowl:256,SheepGoat:512},y={Guided:1,SemiGuided:2,SelfGuided:4},m={true:!0};function g(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 w(e){return e&&!!("boolean"==typeof e?e:"true"===e.toLocaleLowerCase())||null}function N(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 b(e,t){var n;return(null===(n=N(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 E={"widget-id":{filterName:"widgetId",convert:g},"referral-code":{filterName:"referralCode",convert:g},currency:{filterName:"widgetCurrency",convert:g,values:{USD:"USD",EUR:"EUR",RUB:"RUB",GBP:"GBP",CAD:"CAD",ZAR:"ZAR",AUD:"AUD"}},title:{filterName:"title",convert:g},query:{filterName:"query",convert:g},"min-count":{filterName:"minCount",convert:h},"max-count":{filterName:"maxCount",convert:h},"map-height":{filterName:"height",convert:h},"show-all-territories":{filterName:"showAll",convert:w,values:m},popup:{filterName:"showPopup",convert:w,values:m},"view-all-on-map":{filterName:"viewAllOnMap",convert:w,values:m},"dark-theme":{filterName:"darkTheme",convert:w,values:m},"filters-enabled":{filterName:"filtersEnabled",convert:w,values:m},destination:{filterName:"country",convert:g},country:{filterName:"country",convert:g},species:{filterName:"animals",convert:N},animals:{filterName:"animals",convert:N},outfitter:{filterName:"outfitter",convert:g},"outfitter-pid":{filterName:"outfitterPid",convert:g},from:{filterName:"from",convert:g},"date-from":{filterName:"from",convert:g},to:{filterName:"to",convert:g},"date-to":{filterName:"to",convert:g},"hunters-count":{filterName:"huntersCount",convert:h},"guests-count":{filterName:"guestsCount",convert:h},"tour-types":{filterName:"tourTypes",convert:function(e){return b(e,d)},values:d},"hunting-methods":{filterName:"tourTypes",convert:function(e){return b(e,d)},values:d},"tour-difficulties":{filterName:"tourDifficulties",convert:function(e){return b(e,c)},values:c},difficulties:{filterName:"tourDifficulties",convert:function(e){return b(e,c)},values:c},"fence-types":{filterName:"fenceTypes",convert:function(e){return b(e,f)},values:f},"min-price":{filterName:"minPrice",convert:h},"max-price":{filterName:"maxPrice",convert:h},languages:{filterName:"languages",convert:function(e){return b(e,p)},values:p},"game-classifications":{filterName:"gameClassifications",convert:function(e){return b(e,v)},values:v},"duration-min":{filterName:"durationMin",convert:h},"duration-max":{filterName:"durationMax",convert:h},"gun-rental":{filterName:"gunRental",convert:w,values:m},"transfer-from-airport":{filterName:"transferFromAirport",convert:w,values:m},discounted:{filterName:"discounted",convert:w,values:m},"package-tour":{filterName:"packageTour",convert:w,values:m},"package-hunt":{filterName:"packageTour",convert:w,values:m},"new-tours-only":{filterName:"newToursOnly",convert:w,values:m},"new-hunts-only":{filterName:"newToursOnly",convert:w,values:m},"premium-hunt":{filterName:"premiumHunt",convert:w,values:m},"cancellation-hunt":{filterName:"cancellationHunt",convert:w,values:m},"combo-hunt":{filterName:"comboHunt",convert:w,values:m},"guidance-types":{filterName:"guidanceTypes",convert:function(e){return b(e,y)},values:y},"guiding-prefs":{filterName:"guidanceTypes",convert:function(e){return b(e,y)},values:y},"disabled-friendly":{filterName:"disabledFriendly",convert:w,values:m},"family-friendly":{filterName:"familyFriendly",convert:w,values:m},fishing:{filterName:"fishing",convert:w,values:m},"horse-riding":{filterName:"horseRiding",convert:w,values:m},excursions:{filterName:"excursions",convert:w,values:m},"otc-tag-available":{filterName:"otcTagAvailable",convert:w,values:m},"instant-booking":{filterName:"instantBooking",convert:w,values:m},"online-payment":{filterName:"onlinePayment",convert:w,values:m}};function M(e,n){e.style.display="block",t=document.body.style.overflow,document.body.style.overflow="hidden",function(e){var t=e.indexOf(a);if(t>=0){var n=e.substring(0,t),r=s[n];r&&i.byhEvents.onPopupMapDisplayed(e,r.iframe),i.byhEvents.onPopupMapDisplayed(e)}}(n)}function T(t,i){var o=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 O(){for(var e in s)H(e,s[e])}return{initialize:function(){var t,n,r=function(){var e='Widget base url not found! Are you missing id on loader js script element? Should be equal to "'.concat(o,'".'),t=document.getElementById(o);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(r,"/").concat("widget","/"),i.byhEvents.hostInit(),i.byhEvents.subscribe(A),window.addEventListener("scroll",(t=O,n=Date.now(),function(){n+100-Date.now()<0&&(t(),n=Date.now())}),!1),B("byh-widget")},initStaticWidgets:B,options:E,addWidget:T,addPopupMap:P,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()})();