!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.Vue)}(this,function(e,t){"use strict";
/*!
 * BookiFlex Booking Widget
 * License: GPL-2.0-or-later
 * © 2026 BookiFlex
 *
 * Uses external libraries: Vue.js (MIT)
 * Uses WordPress-provided libraries: @wordpress/i18n (GPL-2.0-or-later)
 *
 * This bundle includes third-party code:
 * - floating-vue (MIT)
 *   https://github.com/Akryum/floating-vue
 * - GLightbox (MIT, version 3.x)
 *   https://github.com/biati-digital/glightbox
 */const o="bflex/v1/cart/init",i="bflex/v1/offers",n="bflex/v1/cart",a="bflex/v1/cart/extras",r="bflex/v1/cart/payment-type",l="bflex/v1/cart/confirm",s="bflex/v1/account/reservation",c="bflex/v1/account/reservation/cancel";async function d(e){let t=null;try{t=await e.json()}catch(a){const t=new Error("Invalid JSON in response");throw t.code="invalid_json",t.status=e.status,t}if(e.ok&&"success"===t.status)return t.result;const o=t.message||"Unknown API error",i=t.code||"api_error",n=new Error(o);throw n.code=i,n.data=t.data,n.status=e.status,n}async function p(){if(window.BookiFlex?.restUrl)return u(window.BookiFlex.restUrl);const e=document.querySelector('link[rel="https://api.w.org/"]');if(e?.href)return u(e.href);try{if((await fetch("/wp-json/",{method:"HEAD"})).ok)return"/wp-json/"}catch(t){}return"/index.php?rest_route=/"}function u(e){try{const t=new URL(e,location.href);return t.origin+t.pathname+t.search}catch(t){return e}}const m="search_step",h="choose_accommodation",f="empty_cart",g="booking_confirmation",v="reservation_details",y="cancel_reservation",b=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o},w={class:"information-block-grid"};const x=b({},[["render",function(e,o){return t.openBlock(),t.createElementBlock("div",w,[t.renderSlot(e.$slots,"default")])}]]),_={class:"search-step__row"},k={class:"search-step__intro"},S={class:"search-step__title"},N={class:"search-step__subtitle"},E={__name:"SearchStepPage",props:{searchParams:{type:Object,default:()=>({})}},emits:["search"],setup(e,{emit:o}){const i=e,n=o,a={title:window.wp.i18n.__("Find your perfect stay","bookiflex"),subtitle:window.wp.i18n.__("Pick your dates and see live availability in seconds.","bookiflex")},r=t.ref(null),l=()=>r.value?.applySearchParams(i.searchParams),s=e=>{e.stopPropagation(),n("search",e.detail)};return t.onMounted(()=>{r.value?.addEventListener("bflex:search-bar:search",s),l()}),t.onUnmounted(()=>r.value?.removeEventListener("bflex:search-bar:search",s)),t.watch(()=>i.searchParams,l,{deep:!0}),(e,o)=>(t.openBlock(),t.createBlock(x,{class:"search-step"},{default:t.withCtx(()=>[t.createElementVNode("div",_,[t.createElementVNode("div",k,[t.createElementVNode("h1",S,t.toDisplayString(a.title),1),t.createElementVNode("p",N,t.toDisplayString(a.subtitle),1),o[0]||(o[0]=t.createElementVNode("div",{class:"booking-widget__page-title-bar"},null,-1))]),t.createElementVNode("bookiflex-search-form",{ref_key:"formRef",ref:r,"submit-mode":"event"},null,512)])]),_:1}))}},T={class:"information-block"};const C=b({},[["render",function(e,o){return t.openBlock(),t.createElementBlock("section",T,[t.renderSlot(e.$slots,"default")])}]]),B={class:"divider"};const V=b({},[["render",function(e,o){return t.openBlock(),t.createElementBlock("div",B)}]]),P={class:"header"},A={class:"content"},D={class:"amenities"},z={class:"footer"},O={__name:"BflexSkeletonLoader",setup:e=>(e,o)=>(t.openBlock(),t.createBlock(C,{class:"accommodation-skeleton"},{default:t.withCtx(()=>[t.createElementVNode("div",P,[o[2]||(o[2]=t.createElementVNode("div",{class:"thumbnail"},null,-1)),t.createElementVNode("div",A,[o[0]||(o[0]=t.createElementVNode("div",{class:"title-skeleton"},null,-1)),o[1]||(o[1]=t.createElementVNode("div",{class:"description"},[t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",{class:"line line-short"})],-1)),t.createElementVNode("div",D,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(5,e=>t.createElementVNode("div",{key:e,class:"amenity-item"})),64))])])]),t.createVNode(V),t.createElementVNode("div",z,[o[4]||(o[4]=t.createElementVNode("div",{class:"option-header"},[t.createElementVNode("div",{class:"option-title"}),t.createElementVNode("div",{class:"option-value"})],-1)),t.createVNode(V),(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(2,e=>t.createElementVNode("div",{key:e,class:"room-option"},[...o[3]||(o[3]=[t.createElementVNode("div",{class:"option-details"},[t.createElementVNode("div",{class:"option-name"}),t.createElementVNode("div",{class:"option-description"})],-1),t.createElementVNode("div",{class:"price-section"},[t.createElementVNode("div",{class:"price"}),t.createElementVNode("div",{class:"book-button"})],-1)])])),64))])]),_:1}))};function $(e,t,o="en-US"){const i=new Date(e),n=new Date(t),a={weekday:"short",month:"short",day:"numeric"};return i.getFullYear()===n.getFullYear()||(a.year="numeric"),`${i.toLocaleDateString(o,a)} ― ${n.toLocaleDateString(o,a)}`}function q(e,t,o="nights"){const i=new Date(e),n=(new Date(t)-i)/864e5;if("nights"===o)return n;if("days"===o)return n+1;throw new Error('Invalid unit. Use "nights" or "days".')}function L(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var I,M={exports:{}};var R=(I||(I=1,M.exports=function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function o(e,o,i){return o&&t(e.prototype,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=Date.now();function r(){var e={},t=!0,o=0,i=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],o++);for(var n=function(o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t&&"[object Object]"===Object.prototype.toString.call(o[i])?e[i]=r(!0,e[i],o[i]):e[i]=o[i])};o<i;o++)n(arguments[o]);return e}function l(e,t){if((E(e)||e===window||e===document)&&(e=[e]),C(e)||B(e)||(e=[e]),0!=A(e))if(C(e)&&!B(e))for(var o=e.length,i=0;i<o&&!1!==t.call(e[i],e[i],i,e);i++);else if(B(e))for(var n in e)if(P(e,n)&&!1===t.call(e[n],e[n],n,e))break}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=e[a]=e[a]||[],n={all:i,evt:null,found:null};return t&&o&&A(i)>0&&l(i,function(e,i){if(e.eventName==t&&e.fn.toString()==o.toString())return n.found=!0,n.evt=i,!1}),n}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.onElement,i=t.withCallback,n=t.avoidDuplicate,a=void 0===n||n,r=t.once,c=void 0!==r&&r,d=t.useCapture,p=void 0!==d&&d,u=arguments.length>2?arguments[2]:void 0,m=o||[];function h(e){S(i)&&i.call(u,e,this),c&&h.destroy()}return N(m)&&(m=document.querySelectorAll(m)),h.destroy=function(){l(m,function(t){var o=s(t,e,h);o.found&&o.all.splice(o.evt,1),t.removeEventListener&&t.removeEventListener(e,h,p)})},l(m,function(t){var o=s(t,e,h);(t.addEventListener&&a&&!o.found||!a)&&(t.addEventListener(e,h,p),o.all.push({eventName:e,fn:h}))}),h}function d(e,t){l(t.split(" "),function(t){return e.classList.add(t)})}function p(e,t){l(t.split(" "),function(t){return e.classList.remove(t)})}function u(e,t){return e.classList.contains(t)}function m(e,t){for(;e!==document.body;){if(!(e=e.parentElement))return!1;if("function"==typeof e.matches?e.matches(t):e.msMatchesSelector(t))return e}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||""===t)return!1;if("none"===t)return S(o)&&o(),!1;var i=w(),n=t.split(" ");l(n,function(t){d(e,"g"+t)}),c(i,{onElement:e,avoidDuplicate:!1,once:!0,withCallback:function(e,t){l(n,function(e){p(t,"g"+e)}),S(o)&&o()}})}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===t)return e.style.webkitTransform="",e.style.MozTransform="",e.style.msTransform="",e.style.OTransform="",e.style.transform="",!1;e.style.webkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function g(e){e.style.display="block"}function v(e){e.style.display="none"}function y(e){var t=document.createDocumentFragment(),o=document.createElement("div");for(o.innerHTML=e;o.firstChild;)t.appendChild(o.firstChild);return t}function b(){return{width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}}function w(){var e,t=document.createElement("fakeelement"),o={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(e in o)if(void 0!==t.style[e])return o[e]}function x(e,t,o,i){if(e())t();else{var n;o||(o=100);var a=setInterval(function(){e()&&(clearInterval(a),n&&clearTimeout(n),t())},o)}}function _(e,t,o){if(V(e))console.error("Inject assets error");else if(S(t)&&(o=t,t=!1),N(t)&&t in window)S(o)&&o();else{var i;if(-1!==e.indexOf(".css")){if((i=document.querySelectorAll('link[href="'+e+'"]'))&&i.length>0)return void(S(o)&&o());var n=document.getElementsByTagName("head")[0],a=n.querySelectorAll('link[rel="stylesheet"]'),r=document.createElement("link");return r.rel="stylesheet",r.type="text/css",r.href=e,r.media="all",a?n.insertBefore(r,a[0]):n.appendChild(r),void(S(o)&&o())}if((i=document.querySelectorAll('script[src="'+e+'"]'))&&i.length>0){if(S(o)){if(N(t))return x(function(){return void 0!==window[t]},function(){o()}),!1;o()}}else{var l=document.createElement("script");l.type="text/javascript",l.src=e,l.onload=function(){if(S(o)){if(N(t))return x(function(){return void 0!==window[t]},function(){o()}),!1;o()}},document.body.appendChild(l)}}}function k(){return"navigator"in window&&window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i)}function S(e){return"function"==typeof e}function N(e){return"string"==typeof e}function E(e){return!(!e||!e.nodeType||1!=e.nodeType)}function T(e){return Array.isArray(e)}function C(e){return e&&e.length&&isFinite(e.length)}function B(e){return"object"===n(e)&&null!=e&&!S(e)&&!T(e)}function V(e){return null==e}function P(e,t){return null!==e&&hasOwnProperty.call(e,t)}function A(e){if(B(e)){if(e.keys)return e.keys().length;var t=0;for(var o in e)P(e,o)&&t++;return t}return e.length}function D(e){return!isNaN(parseFloat(e))&&isFinite(e)}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");if(!t.length)return!1;if(1==t.length)return t[0];"string"==typeof e&&(e=parseInt(e));var o=[];l(t,function(e){o.push(e.getAttribute("data-taborder"))});var i=Math.max.apply(Math,o.map(function(e){return parseInt(e)})),n=e<0?1:e+1;n>i&&(n="1");var a=o.filter(function(e){return e>=parseInt(n)}).sort()[0];return document.querySelector('.gbtn[data-taborder="'.concat(a,'"]'))}function O(e){if(e.events.hasOwnProperty("keyboard"))return!1;e.events.keyboard=c("keydown",{onElement:window,withCallback:function(t,o){var i=(t=t||window.event).keyCode;if(9==i){var n=document.querySelector(".gbtn.focused");if(!n){var a=!(!document.activeElement||!document.activeElement.nodeName)&&document.activeElement.nodeName.toLocaleLowerCase();if("input"==a||"textarea"==a||"button"==a)return}t.preventDefault();var r=document.querySelectorAll(".gbtn[data-taborder]");if(!r||r.length<=0)return;if(!n){var l=z();return void(l&&(l.focus(),d(l,"focused")))}var s=z(n.getAttribute("data-taborder"));p(n,"focused"),s&&(s.focus(),d(s,"focused"))}39==i&&e.nextSlide(),37==i&&e.prevSlide(),27==i&&e.close()}})}var $=o(function t(o,i){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(e(this,t),this.img=o,this.slide=i,this.onclose=a,this.img.setZoomEvents)return!1;this.active=!1,this.zoomedIn=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.img.addEventListener("mousedown",function(e){return n.dragStart(e)},!1),this.img.addEventListener("mouseup",function(e){return n.dragEnd(e)},!1),this.img.addEventListener("mousemove",function(e){return n.drag(e)},!1),this.img.addEventListener("click",function(e){return n.slide.classList.contains("dragging-nav")?(n.zoomOut(),!1):n.zoomedIn?void(n.zoomedIn&&!n.dragging&&n.zoomOut()):n.zoomIn()},!1),this.img.setZoomEvents=!0},[{key:"zoomIn",value:function(){var e=this.widowWidth();if(!(this.zoomedIn||e<=768)){var t=this.img;if(t.setAttribute("data-style",t.getAttribute("style")),t.style.maxWidth=t.naturalWidth+"px",t.style.maxHeight=t.naturalHeight+"px",t.naturalWidth>e){var o=e/2-t.naturalWidth/2;this.setTranslate(this.img.parentNode,o,0)}this.slide.classList.add("zoomed"),this.zoomedIn=!0}}},{key:"zoomOut",value:function(){this.img.parentNode.setAttribute("style",""),this.img.setAttribute("style",this.img.getAttribute("data-style")),this.slide.classList.remove("zoomed"),this.zoomedIn=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.onclose&&"function"==typeof this.onclose&&this.onclose()}},{key:"dragStart",value:function(e){e.preventDefault(),this.zoomedIn?("touchstart"===e.type?(this.initialX=e.touches[0].clientX-this.xOffset,this.initialY=e.touches[0].clientY-this.yOffset):(this.initialX=e.clientX-this.xOffset,this.initialY=e.clientY-this.yOffset),e.target===this.img&&(this.active=!0,this.img.classList.add("dragging"))):this.active=!1}},{key:"dragEnd",value:function(e){var t=this;e.preventDefault(),this.initialX=this.currentX,this.initialY=this.currentY,this.active=!1,setTimeout(function(){t.dragging=!1,t.img.isDragging=!1,t.img.classList.remove("dragging")},100)}},{key:"drag",value:function(e){this.active&&(e.preventDefault(),"touchmove"===e.type?(this.currentX=e.touches[0].clientX-this.initialX,this.currentY=e.touches[0].clientY-this.initialY):(this.currentX=e.clientX-this.initialX,this.currentY=e.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.img.isDragging=!0,this.dragging=!0,this.setTranslate(this.img,this.currentX,this.currentY))}},{key:"onMove",value:function(e){if(this.zoomedIn){var t=e.clientX-this.img.naturalWidth/2,o=e.clientY-this.img.naturalHeight/2;this.setTranslate(this.img,t,o)}}},{key:"setTranslate",value:function(e,t,o){e.style.transform="translate3d("+t+"px, "+o+"px, 0)"}},{key:"widowWidth",value:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}}]),q=o(function t(){var o=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t);var n=i.dragEl,a=i.toleranceX,r=void 0===a?40:a,l=i.toleranceY,s=void 0===l?65:l,c=i.slide,d=void 0===c?null:c,p=i.instance,u=void 0===p?null:p;this.el=n,this.active=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.direction=null,this.lastDirection=null,this.toleranceX=r,this.toleranceY=s,this.toleranceReached=!1,this.dragContainer=this.el,this.slide=d,this.instance=u,this.el.addEventListener("mousedown",function(e){return o.dragStart(e)},!1),this.el.addEventListener("mouseup",function(e){return o.dragEnd(e)},!1),this.el.addEventListener("mousemove",function(e){return o.drag(e)},!1)},[{key:"dragStart",value:function(e){if(this.slide.classList.contains("zoomed"))this.active=!1;else{"touchstart"===e.type?(this.initialX=e.touches[0].clientX-this.xOffset,this.initialY=e.touches[0].clientY-this.yOffset):(this.initialX=e.clientX-this.xOffset,this.initialY=e.clientY-this.yOffset);var t=e.target.nodeName.toLowerCase();e.target.classList.contains("nodrag")||m(e.target,".nodrag")||-1!==["input","select","textarea","button","a"].indexOf(t)?this.active=!1:(e.preventDefault(),(e.target===this.el||"img"!==t&&m(e.target,".gslide-inline"))&&(this.active=!0,this.el.classList.add("dragging"),this.dragContainer=m(e.target,".ginner-container")))}}},{key:"dragEnd",value:function(e){var t=this;e&&e.preventDefault(),this.initialX=0,this.initialY=0,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.active=!1,this.doSlideChange&&(this.instance.preventOutsideClick=!0,"right"==this.doSlideChange&&this.instance.prevSlide(),"left"==this.doSlideChange&&this.instance.nextSlide()),this.doSlideClose&&this.instance.close(),this.toleranceReached||this.setTranslate(this.dragContainer,0,0,!0),setTimeout(function(){t.instance.preventOutsideClick=!1,t.toleranceReached=!1,t.lastDirection=null,t.dragging=!1,t.el.isDragging=!1,t.el.classList.remove("dragging"),t.slide.classList.remove("dragging-nav"),t.dragContainer.style.transform="",t.dragContainer.style.transition=""},100)}},{key:"drag",value:function(e){if(this.active){e.preventDefault(),this.slide.classList.add("dragging-nav"),"touchmove"===e.type?(this.currentX=e.touches[0].clientX-this.initialX,this.currentY=e.touches[0].clientY-this.initialY):(this.currentX=e.clientX-this.initialX,this.currentY=e.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.el.isDragging=!0,this.dragging=!0,this.doSlideChange=!1,this.doSlideClose=!1;var t=Math.abs(this.currentX),o=Math.abs(this.currentY);if(t>0&&t>=Math.abs(this.currentY)&&(!this.lastDirection||"x"==this.lastDirection)){this.yOffset=0,this.lastDirection="x",this.setTranslate(this.dragContainer,this.currentX,0);var i=this.shouldChange();if(!this.instance.settings.dragAutoSnap&&i&&(this.doSlideChange=i),this.instance.settings.dragAutoSnap&&i)return this.instance.preventOutsideClick=!0,this.toleranceReached=!0,this.active=!1,this.instance.preventOutsideClick=!0,this.dragEnd(null),"right"==i&&this.instance.prevSlide(),void("left"==i&&this.instance.nextSlide())}if(this.toleranceY>0&&o>0&&o>=t&&(!this.lastDirection||"y"==this.lastDirection)){this.xOffset=0,this.lastDirection="y",this.setTranslate(this.dragContainer,0,this.currentY);var n=this.shouldClose();return!this.instance.settings.dragAutoSnap&&n&&(this.doSlideClose=!0),void(this.instance.settings.dragAutoSnap&&n&&this.instance.close())}}}},{key:"shouldChange",value:function(){var e=!1;if(Math.abs(this.currentX)>=this.toleranceX){var t=this.currentX>0?"right":"left";("left"==t&&this.slide!==this.slide.parentNode.lastChild||"right"==t&&this.slide!==this.slide.parentNode.firstChild)&&(e=t)}return e}},{key:"shouldClose",value:function(){var e=!1;return Math.abs(this.currentY)>=this.toleranceY&&(e=!0),e}},{key:"setTranslate",value:function(e,t,o){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.style.transition=i?"all .2s ease":"",e.style.transform="translate3d(".concat(t,"px, ").concat(o,"px, 0)")}}]);function L(e,t,o,i){var n=e.querySelector(".gslide-media"),a=new Image,r="gSlideTitle_"+o,l="gSlideDesc_"+o;a.addEventListener("load",function(){S(i)&&i()},!1),a.src=t.href,""!=t.sizes&&""!=t.srcset&&(a.sizes=t.sizes,a.srcset=t.srcset),a.alt="",V(t.alt)||""===t.alt||(a.alt=t.alt),""!==t.title&&a.setAttribute("aria-labelledby",r),""!==t.description&&a.setAttribute("aria-describedby",l),t.hasOwnProperty("_hasCustomWidth")&&t._hasCustomWidth&&(a.style.width=t.width),t.hasOwnProperty("_hasCustomHeight")&&t._hasCustomHeight&&(a.style.height=t.height),n.insertBefore(a,n.firstChild)}function I(e,t,o,i){var n=this,a=e.querySelector(".ginner-container"),r="gvideo"+o,l=e.querySelector(".gslide-media"),s=this.getAllPlayers();d(a,"gvideo-container"),l.insertBefore(y('<div class="gvideo-wrapper"></div>'),l.firstChild);var c=e.querySelector(".gvideo-wrapper");_(this.settings.plyr.css,"Plyr");var p=t.href,u=null==t?void 0:t.videoProvider,m=!1;l.style.maxWidth=t.width,_(this.settings.plyr.js,"Plyr",function(){if(!u&&p.match(/vimeo\.com\/([0-9]*)/)&&(u="vimeo"),!u&&(p.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||p.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||p.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)||p.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/))&&(u="youtube"),"local"===u||!u){u="local";var a='<video id="'+r+'" ';a+='style="background:#000; max-width: '.concat(t.width,';" '),a+='preload="metadata" ',a+='x-webkit-airplay="allow" ',a+="playsinline ",a+="controls ",a+='class="gvideo-local">',a+='<source src="'.concat(p,'">'),m=y(a+="</video>")}var l=m||y('<div id="'.concat(r,'" data-plyr-provider="').concat(u,'" data-plyr-embed-id="').concat(p,'"></div>'));d(c,"".concat(u,"-video gvideo")),c.appendChild(l),c.setAttribute("data-id",r),c.setAttribute("data-index",o);var h=P(n.settings.plyr,"config")?n.settings.plyr.config:{},f=new Plyr("#"+r,h);f.on("ready",function(e){s[r]=e.detail.plyr,S(i)&&i()}),x(function(){return e.querySelector("iframe")&&"true"==e.querySelector("iframe").dataset.ready},function(){n.resize(e)}),f.on("enterfullscreen",M),f.on("exitfullscreen",M)})}function M(e){var t=m(e.target,".gslide-media");"enterfullscreen"===e.type&&d(t,"fullscreen"),"exitfullscreen"===e.type&&p(t,"fullscreen")}function R(e,t,o,i){var n,a=this,r=e.querySelector(".gslide-media"),l=!(!P(t,"href")||!t.href)&&t.href.split("#").pop().trim(),s=!(!P(t,"content")||!t.content)&&t.content;if(s&&(N(s)&&(n=y('<div class="ginlined-content">'.concat(s,"</div>"))),E(s))){"none"==s.style.display&&(s.style.display="block");var p=document.createElement("div");p.className="ginlined-content",p.appendChild(s),n=p}if(l){var u=document.getElementById(l);if(!u)return!1;var m=u.cloneNode(!0);m.style.height=t.height,m.style.maxWidth=t.width,d(m,"ginlined-content"),n=m}if(!n)return console.error("Unable to append inline slide content",t),!1;r.style.height=t.height,r.style.width=t.width,r.appendChild(n),this.events["inlineclose"+l]=c("click",{onElement:r.querySelectorAll(".gtrigger-close"),withCallback:function(e){e.preventDefault(),a.close()}}),S(i)&&i()}function H(e,t,o,i){var n,a,r,l,s,c,p=e.querySelector(".gslide-media"),u=(n={url:t.href,callback:i},a=n.url,r=n.allow,l=n.callback,s=n.appendTo,(c=document.createElement("iframe")).className="vimeo-video gvideo",c.src=a,c.style.width="100%",c.style.height="100%",r&&c.setAttribute("allow",r),c.onload=function(){c.onload=null,d(c,"node-ready"),S(l)&&l()},s&&s.appendChild(c),c);p.parentNode.style.maxWidth=t.width,p.parentNode.style.height=t.height,p.appendChild(u)}var j=o(function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.defaults={href:"",sizes:"",srcset:"",title:"",type:"",videoProvider:"",description:"",alt:"",descPosition:"bottom",effect:"",width:"",height:"",content:!1,zoomable:!0,draggable:!0},B(o)&&(this.defaults=r(this.defaults,o))},[{key:"sourceType",value:function(e){var t=e;return null!==(e=e.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/)?"image":e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||e.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)||e.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/)||e.match(/vimeo\.com\/([0-9]*)/)||null!==e.match(/\.(mp4|ogg|webm|mov)/)?"video":null!==e.match(/\.(mp3|wav|wma|aac|ogg)/)?"audio":e.indexOf("#")>-1&&""!==t.split("#").pop().trim()?"inline":e.indexOf("goajax=true")>-1?"ajax":"external"}},{key:"parseConfig",value:function(e,t){var o=this,i=r({descPosition:t.descPosition},this.defaults);if(B(e)&&!E(e)){P(e,"type")||(P(e,"content")&&e.content?e.type="inline":P(e,"href")&&(e.type=this.sourceType(e.href)));var n=r(i,e);return this.setSize(n,t),n}var a="",s=e.getAttribute("data-glightbox"),c=e.nodeName.toLowerCase();if("a"===c&&(a=e.href),"img"===c&&(a=e.src,i.alt=e.alt),i.href=a,l(i,function(n,a){P(t,a)&&"width"!==a&&(i[a]=t[a]);var r=e.dataset[a];V(r)||(i[a]=o.sanitizeValue(r))}),i.content&&(i.type="inline"),!i.type&&a&&(i.type=this.sourceType(a)),V(s)){if(!i.title&&"a"==c){var d=e.title;V(d)||""===d||(i.title=d)}if(!i.title&&"img"==c){var p=e.alt;V(p)||""===p||(i.title=p)}}else{var u=[];l(i,function(e,t){u.push(";\\s?"+t)}),u=u.join("\\s?:|"),""!==s.trim()&&l(i,function(e,t){var n=s,a=new RegExp("s?"+t+"s?:s?(.*?)("+u+"s?:|$)"),r=n.match(a);if(r&&r.length&&r[1]){var l=r[1].trim().replace(/;\s*$/,"");i[t]=o.sanitizeValue(l)}})}if(i.description&&"."===i.description.substring(0,1)){var m;try{m=document.querySelector(i.description).innerHTML}catch(f){if(!(f instanceof DOMException))throw f}m&&(i.description=m)}if(!i.description){var h=e.querySelector(".glightbox-desc");h&&(i.description=h.innerHTML)}return this.setSize(i,t,e),this.slideConfig=i,i}},{key:"setSize",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i="video"==e.type?this.checkSize(t.videosWidth):this.checkSize(t.width),n=this.checkSize(t.height);return e.width=P(e,"width")&&""!==e.width?this.checkSize(e.width):i,e.height=P(e,"height")&&""!==e.height?this.checkSize(e.height):n,o&&"image"==e.type&&(e._hasCustomWidth=!!o.dataset.width,e._hasCustomHeight=!!o.dataset.height),e}},{key:"checkSize",value:function(e){return D(e)?"".concat(e,"px"):e}},{key:"sanitizeValue",value:function(e){return"true"!==e&&"false"!==e?e:"true"===e}}]),F=o(function t(o,i,n){e(this,t),this.element=o,this.instance=i,this.index=n},[{key:"setContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(u(t,"loaded"))return!1;var i=this.instance.settings,n=this.slideConfig,a=k();S(i.beforeSlideLoad)&&i.beforeSlideLoad({index:this.index,slide:t,player:!1});var r=n.type,l=n.descPosition,s=t.querySelector(".gslide-media"),c=t.querySelector(".gslide-title"),p=t.querySelector(".gslide-desc"),m=t.querySelector(".gdesc-inner"),h=o,f="gSlideTitle_"+this.index,g="gSlideDesc_"+this.index;if(S(i.afterSlideLoad)&&(h=function(){S(o)&&o(),i.afterSlideLoad({index:e.index,slide:t,player:e.instance.getSlidePlayerInstance(e.index)})}),""==n.title&&""==n.description?m&&m.parentNode.parentNode.removeChild(m.parentNode):(c&&""!==n.title?(c.id=f,c.innerHTML=n.title):c.parentNode.removeChild(c),p&&""!==n.description?(p.id=g,a&&i.moreLength>0?(n.smallDescription=this.slideShortDesc(n.description,i.moreLength,i.moreText),p.innerHTML=n.smallDescription,this.descriptionEvents(p,n)):p.innerHTML=n.description):p.parentNode.removeChild(p),d(s.parentNode,"desc-".concat(l)),d(m.parentNode,"description-".concat(l))),d(s,"gslide-".concat(r)),d(t,"loaded"),"video"!==r){if("external"!==r)return"inline"===r?(R.apply(this.instance,[t,n,this.index,h]),void(n.draggable&&new q({dragEl:t.querySelector(".gslide-inline"),toleranceX:i.dragToleranceX,toleranceY:i.dragToleranceY,slide:t,instance:this.instance}))):void("image"!==r?S(h)&&h():L(t,n,this.index,function(){var o=t.querySelector("img");n.draggable&&new q({dragEl:o,toleranceX:i.dragToleranceX,toleranceY:i.dragToleranceY,slide:t,instance:e.instance}),n.zoomable&&o.naturalWidth>o.offsetWidth&&(d(o,"zoomable"),new $(o,t,function(){e.instance.resize()})),S(h)&&h()}));H.apply(this,[t,n,this.index,h])}else I.apply(this.instance,[t,n,this.index,h])}},{key:"slideShortDesc",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=document.createElement("div");i.innerHTML=e;var n=o;if((e=i.innerText.trim()).length<=t)return e;var a=e.substr(0,t-1);return n?(i=null,a+'... <a href="#" class="desc-more">'+o+"</a>"):a}},{key:"descriptionEvents",value:function(e,t){var o=this,i=e.querySelector(".desc-more");if(!i)return!1;c("click",{onElement:i,withCallback:function(e,i){e.preventDefault();var n=document.body,a=m(i,".gslide-desc");if(!a)return!1;a.innerHTML=t.description,d(n,"gdesc-open");var r=c("click",{onElement:[n,m(a,".gslide-description")],withCallback:function(e,i){"a"!==e.target.nodeName.toLowerCase()&&(p(n,"gdesc-open"),d(n,"gdesc-closed"),a.innerHTML=t.smallDescription,o.descriptionEvents(a,t),setTimeout(function(){p(n,"gdesc-closed")},400),r.destroy())}})}})}},{key:"create",value:function(){return y(this.instance.settings.slideHTML)}},{key:"getConfig",value:function(){E(this.element)||this.element.hasOwnProperty("draggable")||(this.element.draggable=this.instance.settings.draggable);var e=new j(this.instance.settings.slideExtraAttributes);return this.slideConfig=e.parseConfig(this.element,this.instance.settings),this.slideConfig}}]);function W(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function Y(e,t){var o,i,n=function(e,t){var o=W(e)*W(t);if(0===o)return 0;var i,n,a=(n=t,((i=e).x*n.x+i.y*n.y)/o);return a>1&&(a=1),Math.acos(a)}(e,t);return i=t,(o=e).x*i.y-i.x*o.y>0&&(n*=-1),180*n/Math.PI}var X=o(function t(o){e(this,t),this.handlers=[],this.el=o},[{key:"add",value:function(e){this.handlers.push(e)}},{key:"del",value:function(e){e||(this.handlers=[]);for(var t=this.handlers.length;t>=0;t--)this.handlers[t]===e&&this.handlers.splice(t,1)}},{key:"dispatch",value:function(){for(var e=0,t=this.handlers.length;e<t;e++){var o=this.handlers[e];"function"==typeof o&&o.apply(this.el,arguments)}}}]);function U(e,t){var o=new X(e);return o.add(t),o}var G=o(function t(o,i){e(this,t),this.element="string"==typeof o?document.querySelector(o):o,this.start=this.start.bind(this),this.move=this.move.bind(this),this.end=this.end.bind(this),this.cancel=this.cancel.bind(this),this.element.addEventListener("touchstart",this.start,!1),this.element.addEventListener("touchmove",this.move,!1),this.element.addEventListener("touchend",this.end,!1),this.element.addEventListener("touchcancel",this.cancel,!1),this.preV={x:null,y:null},this.pinchStartLen=null,this.zoom=1,this.isDoubleTap=!1;var n=function(){};this.rotate=U(this.element,i.rotate||n),this.touchStart=U(this.element,i.touchStart||n),this.multipointStart=U(this.element,i.multipointStart||n),this.multipointEnd=U(this.element,i.multipointEnd||n),this.pinch=U(this.element,i.pinch||n),this.swipe=U(this.element,i.swipe||n),this.tap=U(this.element,i.tap||n),this.doubleTap=U(this.element,i.doubleTap||n),this.longTap=U(this.element,i.longTap||n),this.singleTap=U(this.element,i.singleTap||n),this.pressMove=U(this.element,i.pressMove||n),this.twoFingerPressMove=U(this.element,i.twoFingerPressMove||n),this.touchMove=U(this.element,i.touchMove||n),this.touchEnd=U(this.element,i.touchEnd||n),this.touchCancel=U(this.element,i.touchCancel||n),this.translateContainer=this.element,this._cancelAllHandler=this.cancelAll.bind(this),window.addEventListener("scroll",this._cancelAllHandler),this.delta=null,this.last=null,this.now=null,this.tapTimeout=null,this.singleTapTimeout=null,this.longTapTimeout=null,this.swipeTimeout=null,this.x1=this.x2=this.y1=this.y2=null,this.preTapPosition={x:null,y:null}},[{key:"start",value:function(e){if(e.touches)if(e.target&&e.target.nodeName&&["a","button","input"].indexOf(e.target.nodeName.toLowerCase())>=0);else{this.now=Date.now(),this.x1=e.touches[0].pageX,this.y1=e.touches[0].pageY,this.delta=this.now-(this.last||this.now),this.touchStart.dispatch(e,this.element),null!==this.preTapPosition.x&&(this.isDoubleTap=this.delta>0&&this.delta<=250&&Math.abs(this.preTapPosition.x-this.x1)<30&&Math.abs(this.preTapPosition.y-this.y1)<30,this.isDoubleTap&&clearTimeout(this.singleTapTimeout)),this.preTapPosition.x=this.x1,this.preTapPosition.y=this.y1,this.last=this.now;var t=this.preV;if(e.touches.length>1){this._cancelLongTap(),this._cancelSingleTap();var o={x:e.touches[1].pageX-this.x1,y:e.touches[1].pageY-this.y1};t.x=o.x,t.y=o.y,this.pinchStartLen=W(t),this.multipointStart.dispatch(e,this.element)}this._preventTap=!1,this.longTapTimeout=setTimeout(function(){this.longTap.dispatch(e,this.element),this._preventTap=!0}.bind(this),750)}}},{key:"move",value:function(e){if(e.touches){var t=this.preV,o=e.touches.length,i=e.touches[0].pageX,n=e.touches[0].pageY;if(this.isDoubleTap=!1,o>1){var a=e.touches[1].pageX,r=e.touches[1].pageY,l={x:e.touches[1].pageX-i,y:e.touches[1].pageY-n};null!==t.x&&(this.pinchStartLen>0&&(e.zoom=W(l)/this.pinchStartLen,this.pinch.dispatch(e,this.element)),e.angle=Y(l,t),this.rotate.dispatch(e,this.element)),t.x=l.x,t.y=l.y,null!==this.x2&&null!==this.sx2?(e.deltaX=(i-this.x2+a-this.sx2)/2,e.deltaY=(n-this.y2+r-this.sy2)/2):(e.deltaX=0,e.deltaY=0),this.twoFingerPressMove.dispatch(e,this.element),this.sx2=a,this.sy2=r}else{if(null!==this.x2){e.deltaX=i-this.x2,e.deltaY=n-this.y2;var s=Math.abs(this.x1-this.x2),c=Math.abs(this.y1-this.y2);(s>10||c>10)&&(this._preventTap=!0)}else e.deltaX=0,e.deltaY=0;this.pressMove.dispatch(e,this.element)}this.touchMove.dispatch(e,this.element),this._cancelLongTap(),this.x2=i,this.y2=n,o>1&&e.preventDefault()}}},{key:"end",value:function(e){if(e.changedTouches){this._cancelLongTap();var t=this;e.touches.length<2&&(this.multipointEnd.dispatch(e,this.element),this.sx2=this.sy2=null),this.x2&&Math.abs(this.x1-this.x2)>30||this.y2&&Math.abs(this.y1-this.y2)>30?(e.direction=this._swipeDirection(this.x1,this.x2,this.y1,this.y2),this.swipeTimeout=setTimeout(function(){t.swipe.dispatch(e,t.element)},0)):(this.tapTimeout=setTimeout(function(){t._preventTap||t.tap.dispatch(e,t.element),t.isDoubleTap&&(t.doubleTap.dispatch(e,t.element),t.isDoubleTap=!1)},0),t.isDoubleTap||(t.singleTapTimeout=setTimeout(function(){t.singleTap.dispatch(e,t.element)},250))),this.touchEnd.dispatch(e,this.element),this.preV.x=0,this.preV.y=0,this.zoom=1,this.pinchStartLen=null,this.x1=this.x2=this.y1=this.y2=null}}},{key:"cancelAll",value:function(){this._preventTap=!0,clearTimeout(this.singleTapTimeout),clearTimeout(this.tapTimeout),clearTimeout(this.longTapTimeout),clearTimeout(this.swipeTimeout)}},{key:"cancel",value:function(e){this.cancelAll(),this.touchCancel.dispatch(e,this.element)}},{key:"_cancelLongTap",value:function(){clearTimeout(this.longTapTimeout)}},{key:"_cancelSingleTap",value:function(){clearTimeout(this.singleTapTimeout)}},{key:"_swipeDirection",value:function(e,t,o,i){return Math.abs(e-t)>=Math.abs(o-i)?e-t>0?"Left":"Right":o-i>0?"Up":"Down"}},{key:"on",value:function(e,t){this[e]&&this[e].add(t)}},{key:"off",value:function(e,t){this[e]&&this[e].del(t)}},{key:"destroy",value:function(){return this.singleTapTimeout&&clearTimeout(this.singleTapTimeout),this.tapTimeout&&clearTimeout(this.tapTimeout),this.longTapTimeout&&clearTimeout(this.longTapTimeout),this.swipeTimeout&&clearTimeout(this.swipeTimeout),this.element.removeEventListener("touchstart",this.start),this.element.removeEventListener("touchmove",this.move),this.element.removeEventListener("touchend",this.end),this.element.removeEventListener("touchcancel",this.cancel),this.rotate.del(),this.touchStart.del(),this.multipointStart.del(),this.multipointEnd.del(),this.pinch.del(),this.swipe.del(),this.tap.del(),this.doubleTap.del(),this.longTap.del(),this.singleTap.del(),this.pressMove.del(),this.twoFingerPressMove.del(),this.touchMove.del(),this.touchEnd.del(),this.touchCancel.del(),this.preV=this.pinchStartLen=this.zoom=this.isDoubleTap=this.delta=this.last=this.now=this.tapTimeout=this.singleTapTimeout=this.longTapTimeout=this.swipeTimeout=this.x1=this.x2=this.y1=this.y2=this.preTapPosition=this.rotate=this.touchStart=this.multipointStart=this.multipointEnd=this.pinch=this.swipe=this.tap=this.doubleTap=this.longTap=this.singleTap=this.pressMove=this.touchMove=this.touchEnd=this.touchCancel=this.twoFingerPressMove=null,window.removeEventListener("scroll",this._cancelAllHandler),null}}]);function Z(e){var t=function(){var e,t=document.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in o)if(void 0!==t.style[e])return o[e]}(),o=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,i=u(e,"gslide-media")?e:e.querySelector(".gslide-media"),n=m(i,".ginner-container"),a=e.querySelector(".gslide-description");o>769&&(i=n),d(i,"greset"),f(i,"translate3d(0, 0, 0)"),c(t,{onElement:i,once:!0,withCallback:function(e,t){p(i,"greset")}}),i.style.opacity="",a&&(a.style.opacity="")}function J(e){if(e.events.hasOwnProperty("touch"))return!1;var t,o,i,n=b(),a=n.width,r=n.height,l=!1,s=null,c=null,h=null,g=!1,v=1,y=1,w=!1,x=!1,_=null,k=null,S=null,N=null,E=0,T=0,C=!1,B=!1,V={},P={},A=0,D=0,z=document.getElementById("glightbox-slider"),O=document.querySelector(".goverlay"),$=new G(z,{touchStart:function(t){if(l=!0,(u(t.targetTouches[0].target,"ginner-container")||m(t.targetTouches[0].target,".gslide-desc")||"a"==t.targetTouches[0].target.nodeName.toLowerCase())&&(l=!1),m(t.targetTouches[0].target,".gslide-inline")&&!u(t.targetTouches[0].target.parentNode,"gslide-inline")&&(l=!1),l){if(P=t.targetTouches[0],V.pageX=t.targetTouches[0].pageX,V.pageY=t.targetTouches[0].pageY,A=t.targetTouches[0].clientX,D=t.targetTouches[0].clientY,s=e.activeSlide,c=s.querySelector(".gslide-media"),i=s.querySelector(".gslide-inline"),h=null,u(c,"gslide-image")&&(h=c.querySelector("img")),(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>769&&(c=s.querySelector(".ginner-container")),p(O,"greset"),t.pageX>20&&t.pageX<window.innerWidth-20)return;t.preventDefault()}},touchMove:function(n){if(l&&(P=n.targetTouches[0],!w&&!x)){if(i&&i.offsetHeight>r){var s=V.pageX-P.pageX;if(Math.abs(s)<=13)return!1}g=!0;var d,p=n.targetTouches[0].clientX,u=n.targetTouches[0].clientY,m=A-p,v=D-u;if(Math.abs(m)>Math.abs(v)?(C=!1,B=!0):(B=!1,C=!0),t=P.pageX-V.pageX,E=100*t/a,o=P.pageY-V.pageY,T=100*o/r,C&&h&&(d=1-Math.abs(o)/r,O.style.opacity=d,e.settings.touchFollowAxis&&(E=0)),B&&(d=1-Math.abs(t)/a,c.style.opacity=d,e.settings.touchFollowAxis&&(T=0)),!h)return f(c,"translate3d(".concat(E,"%, 0, 0)"));f(c,"translate3d(".concat(E,"%, ").concat(T,"%, 0)"))}},touchEnd:function(){if(l){if(g=!1,x||w)return S=_,void(N=k);var t=Math.abs(parseInt(T)),o=Math.abs(parseInt(E));if(!(t>29&&h))return t<29&&o<25?(d(O,"greset"),O.style.opacity=1,Z(c)):void 0;e.close()}},multipointEnd:function(){setTimeout(function(){w=!1},50)},multipointStart:function(){w=!0,v=y||1},pinch:function(e){if(!h||g)return!1;w=!0,h.scaleX=h.scaleY=v*e.zoom;var t=v*e.zoom;if(x=!0,t<=1)return x=!1,t=1,N=null,S=null,_=null,k=null,void h.setAttribute("style","");t>4.5&&(t=4.5),h.style.transform="scale3d(".concat(t,", ").concat(t,", 1)"),y=t},pressMove:function(e){if(x&&!w){var t=P.pageX-V.pageX,o=P.pageY-V.pageY;S&&(t+=S),N&&(o+=N),_=t,k=o;var i="translate3d(".concat(t,"px, ").concat(o,"px, 0)");y&&(i+=" scale3d(".concat(y,", ").concat(y,", 1)")),f(h,i)}},swipe:function(t){if(!x)if(w)w=!1;else{if("Left"==t.direction){if(e.index==e.elements.length-1)return Z(c);e.nextSlide()}if("Right"==t.direction){if(0==e.index)return Z(c);e.prevSlide()}}}});e.events.touch=$}var Q=k(),K=null!==k()||void 0!==document.createTouch||"ontouchstart"in window||"onmsgesturechange"in window||navigator.msMaxTouchPoints,ee=document.getElementsByTagName("html")[0],te={selector:".glightbox",elements:null,skin:"clean",theme:"clean",closeButton:!0,startAt:null,autoplayVideos:!0,autofocusVideos:!0,descPosition:"bottom",width:"900px",height:"506px",videosWidth:"960px",beforeSlideChange:null,afterSlideChange:null,beforeSlideLoad:null,afterSlideLoad:null,slideInserted:null,slideRemoved:null,slideExtraAttributes:null,onOpen:null,onClose:null,loop:!1,zoomable:!0,draggable:!0,dragAutoSnap:!1,dragToleranceX:40,dragToleranceY:65,preload:!0,oneSlidePerOpen:!1,touchNavigation:!0,touchFollowAxis:!0,keyboardNavigation:!0,closeOnOutsideClick:!0,plugins:!1,plyr:{css:"",js:"",config:{ratio:"16:9",fullscreen:{enabled:!0,iosNative:!0},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3},vimeo:{byline:!1,portrait:!1,title:!1,transparent:!1}}},openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",moreText:"See more",moreLength:60,cssEfects:{fade:{in:"fadeIn",out:"fadeOut"},zoom:{in:"zoomIn",out:"zoomOut"},slide:{in:"slideInRight",out:"slideOutLeft"},slideBack:{in:"slideInLeft",out:"slideOutRight"},none:{in:"none",out:"none"}},svg:{close:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"><g><g><path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z"/></g></g><g><g><path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"/></g></g></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"> <g><path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z"/></g></svg>',prev:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>'},slideHTML:'<div class="gslide">\n    <div class="gslide-inner-content">\n        <div class="ginner-container">\n            <div class="gslide-media">\n            </div>\n            <div class="gslide-description">\n                <div class="gdesc-inner">\n                    <h4 class="gslide-title"></h4>\n                    <div class="gslide-desc"></div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>',lightboxHTML:'<div id="glightbox-body" class="glightbox-container" tabindex="-1" role="dialog" aria-hidden="false">\n    <div class="gloader visible"></div>\n    <div class="goverlay"></div>\n    <div class="gcontainer">\n    <div id="glightbox-slider" class="gslider"></div>\n    <button class="gclose gbtn" aria-label="Close" data-taborder="3">{closeSVG}</button>\n    <button class="gprev gbtn" aria-label="Previous" data-taborder="2">{prevSVG}</button>\n    <button class="gnext gbtn" aria-label="Next" data-taborder="1">{nextSVG}</button>\n</div>\n</div>'},oe=o(function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,t),this.customOptions=o,this.settings=r(te,o),this.effectsClasses=this.getAnimationClasses(),this.videoPlayers={},this.apiEvents=[],this.fullElementsList=!1},[{key:"init",value:function(){var e=this,t=this.getSelector();t&&(this.baseEvents=c("click",{onElement:t,withCallback:function(t,o){t.preventDefault(),e.open(o)}})),this.elements=this.getElements()}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(0===this.elements.length)return!1;this.activeSlide=null,this.prevActiveSlideIndex=null,this.prevActiveSlide=null;var o=D(t)?t:this.settings.startAt;if(E(e)){var i=e.getAttribute("data-gallery");i&&(this.fullElementsList=this.elements,this.elements=this.getGalleryElements(this.elements,i)),V(o)&&(o=this.getElementIndex(e))<0&&(o=0)}D(o)||(o=0),this.build(),h(this.overlay,"none"===this.settings.openEffect?"none":this.settings.cssEfects.fade.in);var n=document.body,a=window.innerWidth-document.documentElement.clientWidth;if(a>0){var r=document.createElement("style");r.type="text/css",r.className="gcss-styles",r.innerText=".gscrollbar-fixer {margin-right: ".concat(a,"px}"),document.head.appendChild(r),d(n,"gscrollbar-fixer")}d(n,"glightbox-open"),d(ee,"glightbox-open"),Q&&(d(document.body,"glightbox-mobile"),this.settings.slideEffect="slide"),this.showSlide(o,!0),1===this.elements.length?(d(this.prevButton,"glightbox-button-hidden"),d(this.nextButton,"glightbox-button-hidden")):(p(this.prevButton,"glightbox-button-hidden"),p(this.nextButton,"glightbox-button-hidden")),this.lightboxOpen=!0,this.trigger("open"),S(this.settings.onOpen)&&this.settings.onOpen(),K&&this.settings.touchNavigation&&J(this),this.settings.keyboardNavigation&&O(this)}},{key:"openAt",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.open(null,e)}},{key:"showSlide",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this.loader),this.index=parseInt(t);var i=this.slidesContainer.querySelector(".current");i&&p(i,"current"),this.slideAnimateOut();var n=this.slidesContainer.querySelectorAll(".gslide")[t];if(u(n,"loaded"))this.slideAnimateIn(n,o),v(this.loader);else{g(this.loader);var a=this.elements[t],r={index:this.index,slide:n,slideNode:n,slideConfig:a.slideConfig,slideIndex:this.index,trigger:a.node,player:null};this.trigger("slide_before_load",r),a.instance.setContent(n,function(){v(e.loader),e.resize(),e.slideAnimateIn(n,o),e.trigger("slide_after_load",r)})}this.slideDescription=n.querySelector(".gslide-description"),this.slideDescriptionContained=this.slideDescription&&u(this.slideDescription.parentNode,"gslide-media"),this.settings.preload&&(this.preloadSlide(t+1),this.preloadSlide(t-1)),this.updateNavigationClasses(),this.activeSlide=n}},{key:"preloadSlide",value:function(e){var t=this;if(e<0||e>this.elements.length-1)return!1;if(V(this.elements[e]))return!1;var o=this.slidesContainer.querySelectorAll(".gslide")[e];if(u(o,"loaded"))return!1;var i=this.elements[e],n=i.type,a={index:e,slide:o,slideNode:o,slideConfig:i.slideConfig,slideIndex:e,trigger:i.node,player:null};this.trigger("slide_before_load",a),"video"===n||"external"===n?setTimeout(function(){i.instance.setContent(o,function(){t.trigger("slide_after_load",a)})},200):i.instance.setContent(o,function(){t.trigger("slide_after_load",a)})}},{key:"prevSlide",value:function(){this.goToSlide(this.index-1)}},{key:"nextSlide",value:function(){this.goToSlide(this.index+1)}},{key:"goToSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.prevActiveSlide=this.activeSlide,this.prevActiveSlideIndex=this.index,!this.loop()&&(e<0||e>this.elements.length-1))return!1;e<0?e=this.elements.length-1:e>=this.elements.length&&(e=0),this.showSlide(e)}},{key:"insertSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;t<0&&(t=this.elements.length);var o=new F(e,this,t),i=o.getConfig(),n=r({},i),a=o.create(),l=this.elements.length-1;n.index=t,n.node=!1,n.instance=o,n.slideConfig=i,this.elements.splice(t,0,n);var s=null,c=null;if(this.slidesContainer){if(t>l)this.slidesContainer.appendChild(a);else{var d=this.slidesContainer.querySelectorAll(".gslide")[t];this.slidesContainer.insertBefore(a,d)}(this.settings.preload&&0==this.index&&0==t||this.index-1==t||this.index+1==t)&&this.preloadSlide(t),0===this.index&&0===t&&(this.index=1),this.updateNavigationClasses(),s=this.slidesContainer.querySelectorAll(".gslide")[t],c=this.getSlidePlayerInstance(t),n.slideNode=s}this.trigger("slide_inserted",{index:t,slide:s,slideNode:s,slideConfig:i,slideIndex:t,trigger:null,player:c}),S(this.settings.slideInserted)&&this.settings.slideInserted({index:t,slide:s,player:c})}},{key:"removeSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(e<0||e>this.elements.length-1)return!1;var t=this.slidesContainer&&this.slidesContainer.querySelectorAll(".gslide")[e];t&&(this.getActiveSlideIndex()==e&&(e==this.elements.length-1?this.prevSlide():this.nextSlide()),t.parentNode.removeChild(t)),this.elements.splice(e,1),this.trigger("slide_removed",e),S(this.settings.slideRemoved)&&this.settings.slideRemoved(e)}},{key:"slideAnimateIn",value:function(e,t){var o=this,i=e.querySelector(".gslide-media"),n=e.querySelector(".gslide-description"),a={index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlide,slideConfig:V(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:V(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},r={index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideConfig:this.elements[this.index].slideConfig,slideIndex:this.index,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)};if(i.offsetWidth>0&&n&&(v(n),n.style.display=""),p(e,this.effectsClasses),t)h(e,this.settings.cssEfects[this.settings.openEffect].in,function(){o.settings.autoplayVideos&&o.slidePlayerPlay(e),o.trigger("slide_changed",{prev:a,current:r}),S(o.settings.afterSlideChange)&&o.settings.afterSlideChange.apply(o,[a,r])});else{var l=this.settings.slideEffect,s="none"!==l?this.settings.cssEfects[l].in:l;this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(s=this.settings.cssEfects.slideBack.in),h(e,s,function(){o.settings.autoplayVideos&&o.slidePlayerPlay(e),o.trigger("slide_changed",{prev:a,current:r}),S(o.settings.afterSlideChange)&&o.settings.afterSlideChange.apply(o,[a,r])})}setTimeout(function(){o.resize(e)},100),d(e,"current")}},{key:"slideAnimateOut",value:function(){if(!this.prevActiveSlide)return!1;var e=this.prevActiveSlide;p(e,this.effectsClasses),d(e,"prev");var t=this.settings.slideEffect,o="none"!==t?this.settings.cssEfects[t].out:t;this.slidePlayerPause(e),this.trigger("slide_before_change",{prev:{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlideIndex,slideConfig:V(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:V(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},current:{index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideIndex:this.index,slideConfig:this.elements[this.index].slideConfig,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)}}),S(this.settings.beforeSlideChange)&&this.settings.beforeSlideChange.apply(this,[{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},{index:this.index,slide:this.activeSlide,player:this.getSlidePlayerInstance(this.index)}]),this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(o=this.settings.cssEfects.slideBack.out),h(e,o,function(){var t=e.querySelector(".ginner-container"),o=e.querySelector(".gslide-media"),i=e.querySelector(".gslide-description");t.style.transform="",o.style.transform="",p(o,"greset"),o.style.opacity="",i&&(i.style.opacity=""),p(e,"prev")})}},{key:"getAllPlayers",value:function(){return this.videoPlayers}},{key:"getSlidePlayerInstance",value:function(e){var t="gvideo"+e,o=this.getAllPlayers();return!(!P(o,t)||!o[t])&&o[t]}},{key:"stopSlideVideo",value:function(e){if(E(e)){var t=e.querySelector(".gvideo-wrapper");t&&(e=t.getAttribute("data-index"))}var o=this.getSlidePlayerInstance(e);o&&o.playing&&o.pause()}},{key:"slidePlayerPause",value:function(e){if(E(e)){var t=e.querySelector(".gvideo-wrapper");t&&(e=t.getAttribute("data-index"))}var o=this.getSlidePlayerInstance(e);o&&o.playing&&o.pause()}},{key:"playSlideVideo",value:function(e){if(E(e)){var t=e.querySelector(".gvideo-wrapper");t&&(e=t.getAttribute("data-index"))}var o=this.getSlidePlayerInstance(e);o&&!o.playing&&o.play()}},{key:"slidePlayerPlay",value:function(e){var t;if(!Q||null!==(t=this.settings.plyr.config)&&void 0!==t&&t.muted){if(E(e)){var o=e.querySelector(".gvideo-wrapper");o&&(e=o.getAttribute("data-index"))}var i=this.getSlidePlayerInstance(e);i&&!i.playing&&(i.play(),this.settings.autofocusVideos&&i.elements.container.focus())}}},{key:"setElements",value:function(e){var t=this;this.settings.elements=!1;var o=[];e&&e.length&&l(e,function(e,i){var n=new F(e,t,i),a=n.getConfig(),l=r({},a);l.slideConfig=a,l.instance=n,l.index=i,o.push(l)}),this.elements=o,this.lightboxOpen&&(this.slidesContainer.innerHTML="",this.elements.length&&(l(this.elements,function(){var e=y(t.settings.slideHTML);t.slidesContainer.appendChild(e)}),this.showSlide(0,!0)))}},{key:"getElementIndex",value:function(e){var t=!1;return l(this.elements,function(o,i){if(P(o,"node")&&o.node==e)return t=i,!0}),t}},{key:"getElements",value:function(){var e=this,t=[];this.elements=this.elements?this.elements:[],!V(this.settings.elements)&&T(this.settings.elements)&&this.settings.elements.length&&l(this.settings.elements,function(o,i){var n=new F(o,e,i),a=n.getConfig(),l=r({},a);l.node=!1,l.index=i,l.instance=n,l.slideConfig=a,t.push(l)});var o=!1;return this.getSelector()&&(o=document.querySelectorAll(this.getSelector())),o?(l(o,function(o,i){var n=new F(o,e,i),a=n.getConfig(),l=r({},a);l.node=o,l.index=i,l.instance=n,l.slideConfig=a,l.gallery=o.getAttribute("data-gallery"),t.push(l)}),t):t}},{key:"getGalleryElements",value:function(e,t){return e.filter(function(e){return e.gallery==t})}},{key:"getSelector",value:function(){return!this.settings.elements&&(this.settings.selector&&"data-"==this.settings.selector.substring(0,5)?"*[".concat(this.settings.selector,"]"):this.settings.selector)}},{key:"getActiveSlide",value:function(){return this.slidesContainer.querySelectorAll(".gslide")[this.index]}},{key:"getActiveSlideIndex",value:function(){return this.index}},{key:"getAnimationClasses",value:function(){var e=[];for(var t in this.settings.cssEfects)if(this.settings.cssEfects.hasOwnProperty(t)){var o=this.settings.cssEfects[t];e.push("g".concat(o.in)),e.push("g".concat(o.out))}return e.join(" ")}},{key:"build",value:function(){var e=this;if(this.built)return!1;var t=document.body.childNodes,o=[];l(t,function(e){e.parentNode==document.body&&"#"!==e.nodeName.charAt(0)&&e.hasAttribute&&!e.hasAttribute("aria-hidden")&&(o.push(e),e.setAttribute("aria-hidden","true"))});var i=P(this.settings.svg,"next")?this.settings.svg.next:"",n=P(this.settings.svg,"prev")?this.settings.svg.prev:"",a=P(this.settings.svg,"close")?this.settings.svg.close:"",r=this.settings.lightboxHTML;r=y(r=(r=(r=r.replace(/{nextSVG}/g,i)).replace(/{prevSVG}/g,n)).replace(/{closeSVG}/g,a)),document.body.appendChild(r);var s=document.getElementById("glightbox-body");this.modal=s;var p=s.querySelector(".gclose");this.prevButton=s.querySelector(".gprev"),this.nextButton=s.querySelector(".gnext"),this.overlay=s.querySelector(".goverlay"),this.loader=s.querySelector(".gloader"),this.slidesContainer=document.getElementById("glightbox-slider"),this.bodyHiddenChildElms=o,this.events={},d(this.modal,"glightbox-"+this.settings.skin),this.settings.closeButton&&p&&(this.events.close=c("click",{onElement:p,withCallback:function(t,o){t.preventDefault(),e.close()}})),p&&!this.settings.closeButton&&p.parentNode.removeChild(p),this.nextButton&&(this.events.next=c("click",{onElement:this.nextButton,withCallback:function(t,o){t.preventDefault(),e.nextSlide()}})),this.prevButton&&(this.events.prev=c("click",{onElement:this.prevButton,withCallback:function(t,o){t.preventDefault(),e.prevSlide()}})),this.settings.closeOnOutsideClick&&(this.events.outClose=c("click",{onElement:s,withCallback:function(t,o){e.preventOutsideClick||u(document.body,"glightbox-mobile")||m(t.target,".ginner-container")||m(t.target,".gbtn")||u(t.target,"gnext")||u(t.target,"gprev")||e.close()}})),l(this.elements,function(t,o){e.slidesContainer.appendChild(t.instance.create()),t.slideNode=e.slidesContainer.querySelectorAll(".gslide")[o]}),K&&d(document.body,"glightbox-touch"),this.events.resize=c("resize",{onElement:window,withCallback:function(){e.resize()}}),this.built=!0}},{key:"resize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if((e=e||this.activeSlide)&&!u(e,"zoomed")){var t=b(),o=e.querySelector(".gvideo-wrapper"),i=e.querySelector(".gslide-image"),n=this.slideDescription,a=t.width,r=t.height;if(a<=768?d(document.body,"glightbox-mobile"):p(document.body,"glightbox-mobile"),o||i){var l=!1;if(n&&(u(n,"description-bottom")||u(n,"description-top"))&&!u(n,"gabsolute")&&(l=!0),i)if(a<=768)i.querySelector("img");else if(l){var s,c,m=n.offsetHeight,h=i.querySelector("img"),f=null===(s=this.elements[this.index])||void 0===s?void 0:s.node,g="100vh";f&&(g=null!==(c=f.getAttribute("data-height"))&&void 0!==c?c:g),h.setAttribute("style","max-height: calc(".concat(g," - ").concat(m,"px)")),n.setAttribute("style","max-width: ".concat(h.offsetWidth,"px;"))}if(o){var v=P(this.settings.plyr.config,"ratio")?this.settings.plyr.config.ratio:"";if(!v){var y=o.clientWidth,w=o.clientHeight,x=y/w;v="".concat(y/x,":").concat(w/x)}var _=v.split(":"),k=this.settings.videosWidth,S=this.settings.videosWidth,N=(S=D(k)||-1!==k.indexOf("px")?parseInt(k):-1!==k.indexOf("vw")?a*parseInt(k)/100:-1!==k.indexOf("vh")?r*parseInt(k)/100:-1!==k.indexOf("%")?a*parseInt(k)/100:parseInt(o.clientWidth))/(parseInt(_[0])/parseInt(_[1]));if(N=Math.floor(N),l&&(r-=n.offsetHeight),S>a||N>r||r<N&&a>S){var E=o.offsetWidth,T=o.offsetHeight,C=r/T,B={width:E*C,height:T*C};o.parentNode.setAttribute("style","max-width: ".concat(B.width,"px")),l&&n.setAttribute("style","max-width: ".concat(B.width,"px;"))}else o.parentNode.style.maxWidth="".concat(k),l&&n.setAttribute("style","max-width: ".concat(k,";"))}}}}},{key:"reload",value:function(){this.init()}},{key:"updateNavigationClasses",value:function(){var e=this.loop();p(this.nextButton,"disabled"),p(this.prevButton,"disabled"),0==this.index&&this.elements.length-1==0?(d(this.prevButton,"disabled"),d(this.nextButton,"disabled")):0!==this.index||e?this.index!==this.elements.length-1||e||d(this.nextButton,"disabled"):d(this.prevButton,"disabled")}},{key:"loop",value:function(){var e=P(this.settings,"loopAtEnd")?this.settings.loopAtEnd:null;return e=P(this.settings,"loop")?this.settings.loop:e}},{key:"close",value:function(){var e=this;if(!this.lightboxOpen){if(this.events){for(var t in this.events)this.events.hasOwnProperty(t)&&this.events[t].destroy();this.events=null}return!1}if(this.closing)return!1;this.closing=!0,this.slidePlayerPause(this.activeSlide),this.fullElementsList&&(this.elements=this.fullElementsList),this.bodyHiddenChildElms.length&&l(this.bodyHiddenChildElms,function(e){e.removeAttribute("aria-hidden")}),d(this.modal,"glightbox-closing"),h(this.overlay,"none"==this.settings.openEffect?"none":this.settings.cssEfects.fade.out),h(this.activeSlide,this.settings.cssEfects[this.settings.closeEffect].out,function(){if(e.activeSlide=null,e.prevActiveSlideIndex=null,e.prevActiveSlide=null,e.built=!1,e.events){for(var t in e.events)e.events.hasOwnProperty(t)&&e.events[t].destroy();e.events=null}var o=document.body;p(ee,"glightbox-open"),p(o,"glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"),e.modal.parentNode.removeChild(e.modal),e.trigger("close"),S(e.settings.onClose)&&e.settings.onClose();var i=document.querySelector(".gcss-styles");i&&i.parentNode.removeChild(i),e.lightboxOpen=!1,e.closing=null})}},{key:"destroy",value:function(){this.close(),this.clearAllEvents(),this.baseEvents&&this.baseEvents.destroy()}},{key:"on",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!S(t))throw new TypeError("Event name and callback must be defined");this.apiEvents.push({evt:e,once:o,callback:t})}},{key:"once",value:function(e,t){this.on(e,t,!0)}},{key:"trigger",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=[];l(this.apiEvents,function(t,n){var a=t.evt,r=t.once,l=t.callback;a==e&&(l(o),r&&i.push(n))}),i.length&&l(i,function(e){return t.apiEvents.splice(e,1)})}},{key:"clearAllEvents",value:function(){this.apiEvents.splice(0,this.apiEvents.length)}},{key:"version",value:function(){return"3.3.1"}}]);return function(){var e=new oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return e.init(),e}}()),M.exports);const H=L(R),j={__name:"BflexImageGallery",props:{images:Array,modelValue:Boolean},emits:["update:modelValue"],setup(e,{emit:o}){const i=e,n=o;let a=null;return t.onMounted(()=>{a=H({elements:i.images.map(e=>({href:e.sizes?.gallery?.url||e.url,type:"image",title:e.title||e.name||"",description:e.description||e.caption||""})),openEffect:"zoom",closeEffect:"fade",touchNavigation:!0,plyr:{css:"",js:""}}),i.modelValue&&a.open(),a.on("close",()=>{n("update:modelValue",!1)})}),t.watch(()=>i.modelValue,e=>{e?a.open():a.close()}),t.onBeforeUnmount(()=>{a&&a.destroy()}),(e,o)=>t.renderSlot(e.$slots,"default")}};function F(e,t="USD"){const o=e/100;try{return new Intl.NumberFormat(window.navigator.language,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2}).format(o)}catch(i){return`${t} ${o.toFixed(2)}`}}const W={class:"accommodation-type-card"},Y=["src","srcset","alt"],X={key:1},U={class:"room-quantity"},G={class:"accommodation-type-card__body"},Z={class:"accommodation-type-card__body-description"},J={class:"accommodation-type-card__meta"},Q={key:0,class:"accommodation-type-card__meta-item"},K={key:1,class:"accommodation-type-card__meta-separator"},ee={key:2,class:"accommodation-type-card__meta-item"},te={class:"accommodation-type-card__description"},oe={class:"amenities"},ie={class:"accommodation-type-card__sticky-bar"},ne={class:"accommodation-type-card__sticky-bar-title"},ae={class:"accommodation-type-card__sticky-bar-subtitle"},re={key:0,class:"accommodation-type-card__sticky-bar-price"},le={class:"accommodation-type-card__sticky-bar-price-label"},se={class:"accommodation-type-card__sticky-bar-price-value"},ce={__name:"BflexAccommodationTypeItem",props:{data:{type:Object,default:()=>({name:"",description:"",address:"",longitude:"",latitude:"",thumbnail:null,gallery:[],amenities:[]})},roomQuantity:Number,fromPrice:{type:Object,default:null}},setup(e){const o=e,i={thumbnail:window.wp.i18n.__("No image available","bookiflex"),available:window.wp.i18n.__("Available","bookiflex"),notAvailable:window.wp.i18n.__("Not available","bookiflex"),chooseRate:window.wp.i18n.__("Choose your rate","bookiflex"),from:window.wp.i18n.__("from","bookiflex")},n=t.computed(()=>o.roomQuantity>0?i.available:i.notAvailable),a=t.computed(()=>{const e=o.data?.typeEstimated;if(!e)return"";const t=(e.beds||0)+(e.extraBeds||0),i={
/* translators: %d: maximum number of guests */
capacity:window.wp.i18n.__("Sleeps up to %d guests","bookiflex")};return window.wp.i18n.sprintf(i.capacity,t)}),r=t.computed(()=>o.fromPrice?F(o.fromPrice.sellingPrice,o.fromPrice.currency):""),l=t.computed(()=>{const e=o.data?.thumbnail?.sizes;if(!e)return;const t=[];return e.card?.url&&e.card.width&&t.push(`${e.card.url} ${e.card.width}w`),e.card_lg?.url&&e.card_lg.width&&t.push(`${e.card_lg.url} ${e.card_lg.width}w`),e.full?.url&&e.full.width&&t.push(`${e.full.url} ${e.full.width}w`),t.length?t.join(", "):void 0}),s=t.ref(!1),c=()=>{s.value=!0};return(o,d)=>(t.openBlock(),t.createElementBlock("article",W,[t.createElementVNode("section",{onClick:c,class:"accommodation-type-card__img"},[t.createVNode(j,{modelValue:s.value,"onUpdate:modelValue":d[0]||(d[0]=e=>s.value=e),images:e.data.gallery},{default:t.withCtx(()=>[e.data.thumbnail&&e.data.thumbnail.url?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:c,src:e.data.thumbnail.url,srcset:l.value,sizes:"(max-width: 480px) 100vw, 300px",alt:e.data.thumbnail.name,loading:"lazy"},null,8,Y)):(t.openBlock(),t.createElementBlock("span",X,t.toDisplayString(i.thumbnail),1))]),_:1},8,["modelValue","images"]),t.createElementVNode("div",U,t.toDisplayString(n.value),1)]),t.createElementVNode("section",G,[t.createElementVNode("div",Z,[t.createElementVNode("h2",null,t.toDisplayString(e.data.name),1),t.createElementVNode("div",J,[e.data.address&&e.data.address.trim()?(t.openBlock(),t.createElementBlock("span",Q,[d[1]||(d[1]=t.createElementVNode("svg",{class:"accommodation-type-card__meta-icon",width:"15",height:"15",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M12 21s7-5.4 7-11a7 7 0 1 0-14 0c0 5.6 7 11 7 11Z",stroke:"currentColor","stroke-width":"1.6"}),t.createElementVNode("circle",{cx:"12",cy:"10",r:"2.4",stroke:"currentColor","stroke-width":"1.6"})],-1)),t.createTextVNode(" "+t.toDisplayString(e.data.address),1)])):t.createCommentVNode("",!0),e.data.address&&e.data.address.trim()&&a.value?(t.openBlock(),t.createElementBlock("span",K,"·")):t.createCommentVNode("",!0),a.value?(t.openBlock(),t.createElementBlock("span",ee,[d[2]||(d[2]=t.createElementVNode("svg",{class:"accommodation-type-card__meta-icon",width:"15",height:"15",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("circle",{cx:"12",cy:"7.6",r:"3.7",fill:"currentColor"}),t.createElementVNode("path",{d:"M4.8 20.4c0-3.98 3.22-7.2 7.2-7.2s7.2 3.22 7.2 7.2",fill:"currentColor"})],-1)),t.createTextVNode(" "+t.toDisplayString(a.value),1)])):t.createCommentVNode("",!0)]),t.renderSlot(o.$slots,"description",{},()=>[t.createElementVNode("p",te,t.toDisplayString(e.data.description),1)]),t.createElementVNode("div",oe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.amenities,(e,o)=>(t.openBlock(),t.createElementBlock("span",{key:o,class:"amenities__item"},t.toDisplayString(e),1))),128))])])]),t.createElementVNode("div",ie,[t.createElementVNode("div",null,[t.createElementVNode("div",ne,t.toDisplayString(e.data.name),1),t.createElementVNode("div",ae,t.toDisplayString(i.chooseRate),1)]),r.value?(t.openBlock(),t.createElementBlock("div",re,[t.createElementVNode("div",le,t.toDisplayString(i.from),1),t.createElementVNode("div",se,t.toDisplayString(r.value),1)])):t.createCommentVNode("",!0)])]))}},de=["start","end"],pe=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-"+de[0],t+"-"+de[1]),[]),ue=Math.min,me=Math.max,he={left:"right",right:"left",bottom:"top",top:"bottom"};function fe(e,t,o){return me(e,ue(t,o))}function ge(e,t){return"function"==typeof e?e(t):e}function ve(e){return e.split("-")[0]}function ye(e){return e.split("-")[1]}function be(e){return"x"===e?"y":"x"}function we(e){return"y"===e?"height":"width"}function xe(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function _e(e){return be(xe(e))}function ke(e,t,o){void 0===o&&(o=!1);const i=ye(e),n=_e(e),a=we(n);let r="x"===n?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[a]>t.floating[a]&&(r=Ve(r)),[r,Ve(r)]}function Se(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ne=["left","right"],Ee=["right","left"],Te=["top","bottom"],Ce=["bottom","top"];function Be(e,t,o,i){const n=ye(e);let a=function(e,t,o){switch(e){case"top":case"bottom":return o?t?Ee:Ne:t?Ne:Ee;case"left":case"right":return t?Te:Ce;default:return[]}}(ve(e),"start"===o,i);return n&&(a=a.map(e=>e+"-"+n),t&&(a=a.concat(a.map(Se)))),a}function Ve(e){const t=ve(e);return he[t]+e.slice(t.length)}function Pe(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ae(e){const{x:t,y:o,width:i,height:n}=e;return{width:i,height:n,top:o,left:t,right:t+i,bottom:o+n,x:t,y:o}}function De(e,t,o){let{reference:i,floating:n}=e;const a=xe(t),r=_e(t),l=we(r),s=ve(t),c="y"===a,d=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,u=i[l]/2-n[l]/2;let m;switch(s){case"top":m={x:d,y:i.y-n.height};break;case"bottom":m={x:d,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:p};break;case"left":m={x:i.x-n.width,y:p};break;default:m={x:i.x,y:i.y}}switch(ye(t)){case"start":m[r]-=u*(o&&c?-1:1);break;case"end":m[r]+=u*(o&&c?-1:1)}return m}async function ze(e,t){var o;void 0===t&&(t={});const{x:i,y:n,platform:a,rects:r,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:u=!1,padding:m=0}=ge(t,e),h=Pe(m),f=l[u?"floating"===p?"reference":"floating":p],g=Ae(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(f)))||o?f:f.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:s})),v="floating"===p?{x:i,y:n,width:r.floating.width,height:r.floating.height}:r.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=Ae(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:s}):v);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}const Oe=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,i,n;const{rects:a,middlewareData:r,placement:l,platform:s,elements:c}=t,{crossAxis:d=!1,alignment:p,allowedPlacements:u=pe,autoAlignment:m=!0,...h}=ge(e,t),f=void 0!==p||u===pe?function(e,t,o){return(e?[...o.filter(t=>ye(t)===e),...o.filter(t=>ye(t)!==e)]:o.filter(e=>ve(e)===e)).filter(o=>!e||ye(o)===e||!!t&&Se(o)!==o)}(p||null,m,u):u,g=await s.detectOverflow(t,h),v=(null==(o=r.autoPlacement)?void 0:o.index)||0,y=f[v];if(null==y)return{};const b=ke(y,a,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==y)return{reset:{placement:f[0]}};const w=[g[ve(y)],g[b[0]],g[b[1]]],x=[...(null==(i=r.autoPlacement)?void 0:i.overflows)||[],{placement:y,overflows:w}],_=f[v+1];if(_)return{data:{index:v+1,overflows:x},reset:{placement:_}};const k=x.map(e=>{const t=ye(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),S=(null==(n=k.filter(e=>e[2].slice(0,ye(e[0])?2:3).every(e=>e<=0))[0])?void 0:n[0])||k[0][0];return S!==l?{data:{index:v+1,overflows:x},reset:{placement:S}}:{}}}},$e=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,i;const{placement:n,middlewareData:a,rects:r,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:u,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:f=!0,...g}=ge(e,t);if(null!=(o=a.arrow)&&o.alignmentOffset)return{};const v=ve(n),y=xe(l),b=ve(l)===l,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),x=u||(b||!f?[Ve(l)]:function(e){const t=Ve(e);return[Se(e),t,Se(t)]}(l)),_="none"!==h;!u&&_&&x.push(...Be(l,f,h,w));const k=[l,...x],S=await s.detectOverflow(t,g),N=[];let E=(null==(i=a.flip)?void 0:i.overflows)||[];if(d&&N.push(S[v]),p){const e=ke(n,r,w);N.push(S[e[0]],S[e[1]])}if(E=[...E,{placement:n,overflows:N}],!N.every(e=>e<=0)){var T,C;const e=((null==(T=a.flip)?void 0:T.index)||0)+1,t=k[e];if(t){if(!("alignment"===p&&y!==xe(t))||E.every(e=>xe(e.placement)!==y||e.overflows[0]>0))return{data:{index:e,overflows:E},reset:{placement:t}}}let o=null==(C=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!o)switch(m){case"bestFit":{var B;const e=null==(B=E.filter(e=>{if(_){const t=xe(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:B[0];e&&(o=e);break}case"initialPlacement":o=l}if(n!==o)return{reset:{placement:o}}}return{}}}},qe=new Set(["left","top"]);const Le=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,i;const{x:n,y:a,placement:r,middlewareData:l}=t,s=await async function(e,t){const{placement:o,platform:i,elements:n}=e,a=await(null==i.isRTL?void 0:i.isRTL(n.floating)),r=ve(o),l=ye(o),s="y"===xe(o),c=qe.has(r)?-1:1,d=a&&s?-1:1,p=ge(t,e);let{mainAxis:u,crossAxis:m,alignmentAxis:h}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&"number"==typeof h&&(m="end"===l?-1*h:h),s?{x:m*d,y:u*c}:{x:u*c,y:m*d}}(t,e);return r===(null==(o=l.offset)?void 0:o.placement)&&null!=(i=l.arrow)&&i.alignmentOffset?{}:{x:n+s.x,y:a+s.y,data:{...s,placement:r}}}}};function Ie(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Me(e){return Ie(e).getComputedStyle(e)}const Re=Math.min,He=Math.max,je=Math.round;function Fe(e){const t=Me(e);let o=parseFloat(t.width),i=parseFloat(t.height);const n=e.offsetWidth,a=e.offsetHeight,r=je(o)!==n||je(i)!==a;return r&&(o=n,i=a),{width:o,height:i,fallback:r}}function We(e){return Ze(e)?(e.nodeName||"").toLowerCase():""}let Ye;function Xe(){if(Ye)return Ye;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Ye=e.brands.map(e=>e.brand+"/"+e.version).join(" "),Ye):navigator.userAgent}function Ue(e){return e instanceof Ie(e).HTMLElement}function Ge(e){return e instanceof Ie(e).Element}function Ze(e){return e instanceof Ie(e).Node}function Je(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ie(e).ShadowRoot||e instanceof ShadowRoot)}function Qe(e){const{overflow:t,overflowX:o,overflowY:i,display:n}=Me(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&!["inline","contents"].includes(n)}function Ke(e){return["table","td","th"].includes(We(e))}function et(e){const t=/firefox/i.test(Xe()),o=Me(e),i=o.backdropFilter||o.WebkitBackdropFilter;return"none"!==o.transform||"none"!==o.perspective||!!i&&"none"!==i||t&&"filter"===o.willChange||t&&!!o.filter&&"none"!==o.filter||["transform","perspective"].some(e=>o.willChange.includes(e))||["paint","layout","strict","content"].some(e=>{const t=o.contain;return null!=t&&t.includes(e)})}function tt(){return!/^((?!chrome|android).)*safari/i.test(Xe())}function ot(e){return["html","body","#document"].includes(We(e))}function it(e){return Ge(e)?e:e.contextElement}const nt={x:1,y:1};function at(e){const t=it(e);if(!Ue(t))return nt;const o=t.getBoundingClientRect(),{width:i,height:n,fallback:a}=Fe(t);let r=(a?je(o.width):o.width)/i,l=(a?je(o.height):o.height)/n;return r&&Number.isFinite(r)||(r=1),l&&Number.isFinite(l)||(l=1),{x:r,y:l}}function rt(e,t,o,i){var n,a;void 0===t&&(t=!1),void 0===o&&(o=!1);const r=e.getBoundingClientRect(),l=it(e);let s=nt;t&&(i?Ge(i)&&(s=at(i)):s=at(e));const c=l?Ie(l):window,d=!tt()&&o;let p=(r.left+(d&&(null==(n=c.visualViewport)?void 0:n.offsetLeft)||0))/s.x,u=(r.top+(d&&(null==(a=c.visualViewport)?void 0:a.offsetTop)||0))/s.y,m=r.width/s.x,h=r.height/s.y;if(l){const e=Ie(l),t=i&&Ge(i)?Ie(i):i;let o=e.frameElement;for(;o&&i&&t!==e;){const e=at(o),t=o.getBoundingClientRect(),i=getComputedStyle(o);t.x+=(o.clientLeft+parseFloat(i.paddingLeft))*e.x,t.y+=(o.clientTop+parseFloat(i.paddingTop))*e.y,p*=e.x,u*=e.y,m*=e.x,h*=e.y,p+=t.x,u+=t.y,o=Ie(o).frameElement}}return{width:m,height:h,top:u,right:p+m,bottom:u+h,left:p,x:p,y:u}}function lt(e){return((Ze(e)?e.ownerDocument:e.document)||window.document).documentElement}function st(e){return Ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ct(e){return rt(lt(e)).left+st(e).scrollLeft}function dt(e){if("html"===We(e))return e;const t=e.assignedSlot||e.parentNode||Je(e)&&e.host||lt(e);return Je(t)?t.host:t}function pt(e){const t=dt(e);return ot(t)?t.ownerDocument.body:Ue(t)&&Qe(t)?t:pt(t)}function ut(e,t){var o;void 0===t&&(t=[]);const i=pt(e),n=i===(null==(o=e.ownerDocument)?void 0:o.body),a=Ie(i);return n?t.concat(a,a.visualViewport||[],Qe(i)?i:[]):t.concat(i,ut(i))}function mt(e,t,o){return"viewport"===t?Ae(function(e,t){const o=Ie(e),i=lt(e),n=o.visualViewport;let a=i.clientWidth,r=i.clientHeight,l=0,s=0;if(n){a=n.width,r=n.height;const e=tt();(e||!e&&"fixed"===t)&&(l=n.offsetLeft,s=n.offsetTop)}return{width:a,height:r,x:l,y:s}}(e,o)):Ge(t)?Ae(function(e,t){const o=rt(e,!0,"fixed"===t),i=o.top+e.clientTop,n=o.left+e.clientLeft,a=Ue(e)?at(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:n*a.x,y:i*a.y}}(t,o)):Ae(function(e){const t=lt(e),o=st(e),i=e.ownerDocument.body,n=He(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=He(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-o.scrollLeft+ct(e);const l=-o.scrollTop;return"rtl"===Me(i).direction&&(r+=He(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:r,y:l}}(lt(e)))}function ht(e){return Ue(e)&&"fixed"!==Me(e).position?e.offsetParent:null}function ft(e){const t=Ie(e);let o=ht(e);for(;o&&Ke(o)&&"static"===Me(o).position;)o=ht(o);return o&&("html"===We(o)||"body"===We(o)&&"static"===Me(o).position&&!et(o))?t:o||function(e){let t=dt(e);for(;Ue(t)&&!ot(t);){if(et(t))return t;t=dt(t)}return null}(e)||t}function gt(e,t,o){const i=Ue(t),n=lt(t),a=rt(e,!0,"fixed"===o,t);let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(i||!i&&"fixed"!==o)if(("body"!==We(t)||Qe(n))&&(r=st(t)),Ue(t)){const e=rt(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else n&&(l.x=ct(n));return{x:a.left+r.scrollLeft-l.x,y:a.top+r.scrollTop-l.y,width:a.width,height:a.height}}const vt={getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:i,strategy:n}=e;const a=[..."clippingAncestors"===o?function(e,t){const o=t.get(e);if(o)return o;let i=ut(e).filter(e=>Ge(e)&&"body"!==We(e)),n=null;const a="fixed"===Me(e).position;let r=a?dt(e):e;for(;Ge(r)&&!ot(r);){const e=Me(r),t=et(r);(a?t||n:t||"static"!==e.position||!n||!["absolute","fixed"].includes(n.position))?n=e:i=i.filter(e=>e!==r),r=dt(r)}return t.set(e,i),i}(t,this._c):[].concat(o),i],r=a[0],l=a.reduce((e,o)=>{const i=mt(t,o,n);return e.top=He(i.top,e.top),e.right=Re(i.right,e.right),e.bottom=Re(i.bottom,e.bottom),e.left=He(i.left,e.left),e},mt(t,r,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:o,strategy:i}=e;const n=Ue(o),a=lt(o);if(o===a)return t;let r={scrollLeft:0,scrollTop:0},l={x:1,y:1};const s={x:0,y:0};if((n||!n&&"fixed"!==i)&&(("body"!==We(o)||Qe(a))&&(r=st(o)),Ue(o))){const e=rt(o);l=at(o),s.x=e.x+o.clientLeft,s.y=e.y+o.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-r.scrollLeft*l.x+s.x,y:t.y*l.y-r.scrollTop*l.y+s.y}},isElement:Ge,getDimensions:function(e){return Ue(e)?Fe(e):e.getBoundingClientRect()},getOffsetParent:ft,getDocumentElement:lt,getScale:at,async getElementRects(e){let{reference:t,floating:o,strategy:i}=e;const n=this.getOffsetParent||ft,a=this.getDimensions;return{reference:gt(t,await n(o),i),floating:{x:0,y:0,...await a(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Me(e).direction},yt=(e,t,o)=>{const i=new Map,n={platform:vt,...o},a={...n.platform,_c:i};return(async(e,t,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:r}=o,l=r.detectOverflow?r:{...r,detectOverflow:ze},s=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:p}=De(c,i,s),u=i,m=0;const h={};for(let f=0;f<a.length;f++){const o=a[f];if(!o)continue;const{name:g,fn:v}=o,{x:y,y:b,data:w,reset:x}=await v({x:d,y:p,initialPlacement:i,placement:u,strategy:n,middlewareData:h,rects:c,platform:l,elements:{reference:e,floating:t}});d=null!=y?y:d,p=null!=b?b:p,h[g]={...h[g],...w},x&&m<50&&(m++,"object"==typeof x&&(x.placement&&(u=x.placement),x.rects&&(c=!0===x.rects?await r.getElementRects({reference:e,floating:t,strategy:n}):x.rects),({x:d,y:p}=De(c,u,s))),f=-1)}return{x:d,y:p,placement:u,strategy:n,middlewareData:h}})(e,t,{...n,platform:a})},bt={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function wt(e,t){let o,i=bt.themes[e]||{};do{o=i[t],typeof o>"u"?i.$extend?i=bt.themes[i.$extend]||{}:(i=null,o=bt[t]):i=null}while(i);return o}function xt(e){const t=[e];let o=bt.themes[e]||{};do{o.$extend?(t.push(o.$extend),o=bt.themes[o.$extend]||{}):o=null}while(o);return t}let _t=!1;if(typeof window<"u"){_t=!1;try{const e=Object.defineProperty({},"passive",{get(){_t=!0}});window.addEventListener("test",null,e)}catch{}}let kt=!1;typeof window<"u"&&typeof navigator<"u"&&(kt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const St=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Nt={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Et={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Tt(e,t){const o=e.indexOf(t);-1!==o&&e.splice(o,1)}function Ct(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Bt=[];let Vt=null;const Pt={};function At(e){let t=Pt[e];return t||(t=Pt[e]=[]),t}let Dt=function(){};function zt(e){return function(t){return wt(t.theme,e)}}typeof window<"u"&&(Dt=window.Element);const Ot="__floating-vue__popper",$t=()=>t.defineComponent({name:"VPopper",provide(){return{[Ot]:{parentPopper:this}}},inject:{[Ot]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:zt("disabled")},positioningDisabled:{type:Boolean,default:zt("positioningDisabled")},placement:{type:String,default:zt("placement"),validator:e=>St.includes(e)},delay:{type:[String,Number,Object],default:zt("delay")},distance:{type:[Number,String],default:zt("distance")},skidding:{type:[Number,String],default:zt("skidding")},triggers:{type:Array,default:zt("triggers")},showTriggers:{type:[Array,Function],default:zt("showTriggers")},hideTriggers:{type:[Array,Function],default:zt("hideTriggers")},popperTriggers:{type:Array,default:zt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:zt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:zt("popperHideTriggers")},container:{type:[String,Object,Dt,Boolean],default:zt("container")},boundary:{type:[String,Dt],default:zt("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:zt("strategy")},autoHide:{type:[Boolean,Function],default:zt("autoHide")},handleResize:{type:Boolean,default:zt("handleResize")},instantMove:{type:Boolean,default:zt("instantMove")},eagerMount:{type:Boolean,default:zt("eagerMount")},popperClass:{type:[String,Array,Object],default:zt("popperClass")},computeTransformOrigin:{type:Boolean,default:zt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:zt("autoMinSize")},autoSize:{type:[Boolean,String],default:zt("autoSize")},autoMaxSize:{type:Boolean,default:zt("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:zt("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:zt("preventOverflow")},overflowPadding:{type:[Number,String],default:zt("overflowPadding")},arrowPadding:{type:[Number,String],default:zt("arrowPadding")},arrowOverflow:{type:Boolean,default:zt("arrowOverflow")},flip:{type:Boolean,default:zt("flip")},shift:{type:Boolean,default:zt("shift")},shiftCrossAxis:{type:Boolean,default:zt("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:zt("noAutoFocus")},disposeTimeout:{type:Number,default:zt("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return null!=this.ariaId?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:"function"==typeof this.autoHide?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return null==(e=this[Ot])?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return(null==(e=this.popperTriggers)?void 0:e.includes("hover"))||(null==(t=this.popperShowTriggers)?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:o=!1}={}){var i,n;null!=(i=this.parentPopper)&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(o||!this.disabled)&&((null==(n=this.parentPopper)?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var o;if(!this.$_hideInProgress){if(this.shownChildren.size>0)return void(this.pendingHide=!0);if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper())return void(this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3)));(null==(o=this.parentPopper)?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(null==(e=this.referenceNode)?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Le({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Oe({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push((void 0===(o={padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})&&(o={}),{name:"shift",options:o,async fn(e){const{x:t,y:i,placement:n,platform:a}=e,{mainAxis:r=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...c}=ge(o,e),d={x:t,y:i},p=await a.detectOverflow(e,c),u=xe(ve(n)),m=be(u);let h=d[m],f=d[u];if(r){const e="y"===m?"bottom":"right";h=fe(h+p["y"===m?"top":"left"],h,h-p[e])}if(l){const e="y"===u?"bottom":"right";f=fe(f+p["y"===u?"top":"left"],f,f-p[e])}const g=s.fn({...e,[m]:h,[u]:f});return{...g,data:{x:g.x-t,y:g.y-i,enabled:{[m]:r,[u]:l}}}}})),!t&&this.flip&&e.middleware.push($e({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push((e=>({name:"arrow",options:e,async fn(t){const{x:o,y:i,placement:n,rects:a,platform:r,elements:l,middlewareData:s}=t,{element:c,padding:d=0}=ge(e,t)||{};if(null==c)return{};const p=Pe(d),u={x:o,y:i},m=_e(n),h=we(m),f=await r.getDimensions(c),g="y"===m,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[h]+a.reference[m]-u[m]-a.floating[h],x=u[m]-a.reference[m],_=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c));let k=_?_[b]:0;k&&await(null==r.isElement?void 0:r.isElement(_))||(k=l.floating[b]||a.floating[h]);const S=w/2-x/2,N=k/2-f[h]/2-1,E=ue(p[v],N),T=ue(p[y],N),C=E,B=k-f[h]-T,V=k/2-f[h]/2+S,P=fe(C,V,B),A=!s.arrow&&null!=ye(n)&&V!==P&&a.reference[h]/2-(V<C?E:T)-f[h]/2<0,D=A?V<C?V-C:V-B:0;return{[m]:u[m]+D,data:{[m]:P,centerOffset:V-P-D,...A&&{alignmentOffset:D}},reset:A}}}))({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:e,rects:t,middlewareData:o})=>{let i;const{centerOffset:n}=o.arrow;return i=e.startsWith("top")||e.startsWith("bottom")?Math.abs(n)>t.reference.width/2:Math.abs(n)>t.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const t=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:e,placement:o,middlewareData:i})=>{var n;if(null!=(n=i.autoSize)&&n.skip)return{};let a,r;return o.startsWith("top")||o.startsWith("bottom")?a=e.reference.width:r=e.reference.height,this.$_innerNode.style["min"===t?"minWidth":"max"===t?"maxWidth":"width"]=null!=a?`${a}px`:null,this.$_innerNode.style["min"===t?"minHeight":"max"===t?"maxHeight":"height"]=null!=r?`${r}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}var o;(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var o,i;const{placement:n,rects:a,platform:r,elements:l}=t,{apply:s=()=>{},...c}=ge(e,t),d=await r.detectOverflow(t,c),p=ve(n),u=ye(n),m="y"===xe(n),{width:h,height:f}=a.floating;let g,v;"top"===p||"bottom"===p?(g=p,v=u===(await(null==r.isRTL?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(v=p,g="end"===u?"top":"bottom");const y=f-d.top-d.bottom,b=h-d.left-d.right,w=ue(f-d[g],y),x=ue(h-d[v],b),_=!t.middlewareData.shift;let k=w,S=x;if(null!=(o=t.middlewareData.shift)&&o.enabled.x&&(S=b),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(k=y),_&&!u){const e=me(d.left,0),t=me(d.right,0),o=me(d.top,0),i=me(d.bottom,0);m?S=h-2*(0!==e||0!==t?e+t:me(d.left,d.right)):k=f-2*(0!==o||0!==i?o+i:me(d.top,d.bottom))}await s({...t,availableWidth:S,availableHeight:k});const N=await r.getDimensions(l.floating);return h!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}}({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=null!=e?`${e}px`:null,this.$_innerNode.style.maxHeight=null!=t?`${t}px`:null}})));const i=await yt(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:{...i.middlewareData.arrow,...i.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Vt&&this.instantMove&&Vt.instantMove&&Vt!==this.parentPopper)return Vt.$_applyHide(!0),void this.$_applyShow(!0);t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){this.shownChildren.size>0?this.pendingHide=!0:(this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Vt=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide")))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Ct(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ut(this.$_referenceNode),...ut(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(".v-popper__wrapper"),o=t.parentNode.getBoundingClientRect(),i=e.x+e.width/2-(o.left+t.offsetLeft),n=e.y+e.height/2-(o.top+t.offsetTop);this.result.transformOrigin=`${i}px ${n}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let o=0;o<Bt.length;o++)t=Bt[o],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Bt.push(this),document.body.classList.add("v-popper--some-open");for(const t of xt(this.theme))At(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ct(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0)return this.pendingHide=!0,void(this.$_hideInProgress=!1);if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Tt(Bt,this),0===Bt.length&&document.body.classList.remove("v-popper--some-open");for(const o of xt(this.theme)){const e=At(o);Tt(e,this),0===e.length&&document.body.classList.remove(`v-popper--some-open--${o}`)}Vt===this&&(Vt=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;null!==t&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ct(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if("string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,Nt,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Nt,this.popperTriggers,this.popperShowTriggers,e);const t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,Et,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Et,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,o){this.$_events.push({targetNodes:e,eventType:t,handler:o}),e.forEach(e=>e.addEventListener(t,o,_t?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,o,i,n){let a=o;null!=i&&(a="function"==typeof i?i(a):i),a.forEach(o=>{const i=t[o];i&&this.$_registerEventListeners(e,i,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(o=>{const{targetNodes:i,eventType:n,handler:a}=o;e&&e!==n?t.push(o):i.forEach(e=>e.removeEventListener(n,a))}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const o of this.$_targetNodes){const i=o.getAttribute(e);i&&(o.removeAttribute(e),o.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const o in e){const i=e[o];null==i?t.removeAttribute(o):t.setAttribute(o,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ht>=e.left&&Ht<=e.right&&jt>=e.top&&jt<=e.bottom){const e=this.$_popperNode.getBoundingClientRect(),t=Ht-Mt,o=jt-Rt,i=e.left+e.width/2-Mt+(e.top+e.height/2)-Rt+e.width+e.height,n=Mt+t*i,a=Rt+o*i;return Ft(Mt,Rt,n,a,e.left,e.top,e.left,e.bottom)||Ft(Mt,Rt,n,a,e.left,e.top,e.right,e.top)||Ft(Mt,Rt,n,a,e.right,e.top,e.right,e.bottom)||Ft(Mt,Rt,n,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(kt){const e=!_t||{passive:!0,capture:!0};document.addEventListener("touchstart",e=>qt(e),e),document.addEventListener("touchend",e=>Lt(e,!0),e)}else window.addEventListener("mousedown",e=>qt(e),!0),window.addEventListener("click",e=>Lt(e,!1),!0);window.addEventListener("resize",function(){for(let e=0;e<Bt.length;e++)Bt[e].$_computePosition()})}function qt(e,t){for(let o=0;o<Bt.length;o++){const t=Bt[o];try{t.mouseDownContains=t.popperNode().contains(e.target)}catch{}}}function Lt(e,t){!function(e,t){const o={};for(let i=Bt.length-1;i>=0;i--){const n=Bt[i];try{const i=n.containsGlobalTarget=n.mouseDownContains||n.popperNode().contains(e.target);n.pendingHide=!1,requestAnimationFrame(()=>{if(n.pendingHide=!1,!o[n.randomId]&&It(n,i,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let e=n.parentPopper;for(;e;)o[e.randomId]=!0,e=e.parentPopper;return}let a=n.parentPopper;for(;a&&It(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}(e,t)}function It(e,t,o){return o.closeAllPopover||o.closePopover&&t||function(e,t){if("function"==typeof e.autoHide){const o=e.autoHide(t);return e.lastAutoHide=o,o}return e.autoHide}(e,o)&&!t}let Mt=0,Rt=0,Ht=0,jt=0;function Ft(e,t,o,i,n,a,r,l){const s=((r-n)*(t-a)-(l-a)*(e-n))/((l-a)*(o-e)-(r-n)*(i-t)),c=((o-e)*(t-a)-(i-t)*(e-n))/((l-a)*(o-e)-(r-n)*(i-t));return s>=0&&s<=1&&c>=0&&c<=1}typeof window<"u"&&window.addEventListener("mousemove",e=>{Mt=Ht,Rt=jt,Ht=e.clientX,jt=e.clientY},_t?{passive:!0}:void 0);const Wt=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o};const Yt=Wt({extends:$t()},[["render",function(e,o,i,n,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"reference",class:t.normalizeClass(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps(e.slotData)))],2)}]]);let Xt;function Ut(){Ut.init||(Ut.init=!0,Xt=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}())}var Gt={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ut(),t.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Xt&&this.$el.appendChild(e),e.data="about:blank",Xt||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Xt&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Zt=t.withScopeId("data-v-b329ee4c");t.pushScopeId("data-v-b329ee4c");const Jt={class:"resize-observer",tabindex:"-1"};t.popScopeId();const Qt=Zt((e,o,i,n,a,r)=>(t.openBlock(),t.createBlock("div",Jt)));Gt.render=Qt,Gt.__scopeId="data-v-b329ee4c",Gt.__file="src/components/ResizeObserver.vue";const Kt=(e="theme")=>({computed:{themeClass(){return function(e){const t=[e];let o=bt.themes[e]||{};do{o.$extend&&!o.$resetCss?(t.push(o.$extend),o=bt.themes[o.$extend]||{}):o=null}while(o);return t.map(e=>`v-popper--theme-${e}`)}(this[e])}}}),eo=t.defineComponent({name:"VPopperContent",components:{ResizeObserver:Gt},mixins:[Kt()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx:e=>null==e||isNaN(e)?null:`${e}px`}}),to=["id","aria-hidden","tabindex","data-popper-placement"],oo={ref:"inner",class:"v-popper__inner"},io=[t.createElementVNode("div",{class:"v-popper__arrow-outer"},null,-1),t.createElementVNode("div",{class:"v-popper__arrow-inner"},null,-1)];const no=Wt(eo,[["render",function(e,o,i,n,a,r){const l=t.resolveComponent("ResizeObserver");return t.openBlock(),t.createElementBlock("div",{id:e.popperId,ref:"popover",class:t.normalizeClass(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:t.normalizeStyle(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:o[2]||(o[2]=t.withKeys(t=>e.autoHide&&e.$emit("hide"),["esc"]))},[t.createElementVNode("div",{class:"v-popper__backdrop",onClick:o[0]||(o[0]=t=>e.autoHide&&e.$emit("hide"))}),t.createElementVNode("div",{class:"v-popper__wrapper",style:t.normalizeStyle(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[t.createElementVNode("div",oo,[e.mounted?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.renderSlot(e.$slots,"default")]),e.handleResize?(t.openBlock(),t.createBlock(l,{key:0,onNotify:o[1]||(o[1]=t=>e.$emit("resize",t))})):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],512),t.createElementVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:t.normalizeStyle(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},io,4)],4)],46,to)}]]),ao={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let ro=function(){};typeof window<"u"&&(ro=window.Element);const lo=Wt(t.defineComponent({name:"VPopperWrapper",components:{Popper:Yt,PopperContent:no},mixins:[ao,Kt("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,ro,Boolean],default:void 0},boundary:{type:[String,ro],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}}),[["render",function(e,o,i,n,a,r){const l=t.resolveComponent("PopperContent"),s=t.resolveComponent("Popper");return t.openBlock(),t.createBlock(s,t.mergeProps({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:o[0]||(o[0]=()=>e.$emit("show")),onHide:o[1]||(o[1]=()=>e.$emit("hide")),"onUpdate:shown":o[2]||(o[2]=t=>e.$emit("update:shown",t)),onApplyShow:o[3]||(o[3]=()=>e.$emit("apply-show")),onApplyHide:o[4]||(o[4]=()=>e.$emit("apply-hide")),onCloseGroup:o[5]||(o[5]=()=>e.$emit("close-group")),onCloseDirective:o[6]||(o[6]=()=>e.$emit("close-directive")),onAutoHide:o[7]||(o[7]=()=>e.$emit("auto-hide")),onResize:o[8]||(o[8]=()=>e.$emit("resize"))}),{default:t.withCtx(({popperId:o,isShown:i,shouldMountContent:n,skipTransition:a,autoHide:r,show:s,hide:c,handleResize:d,onResize:p,classes:u,result:m})=>[t.renderSlot(e.$slots,"default",{shown:i,show:s,hide:c}),t.createVNode(l,{ref:"popperContent","popper-id":o,theme:e.finalTheme,shown:i,mounted:n,"skip-transition":a,"auto-hide":r,"handle-resize":d,classes:u,result:m,onHide:c,onResize:p},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"popper",{shown:i,hide:c})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}]]),so={...lo,name:"VTooltip",vPopperTheme:"tooltip"};t.defineComponent({name:"VTooltipDirective",components:{Popper:$t(),PopperContent:no},mixins:[ao],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>wt(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>wt(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data:()=>({asyncContent:null}),computed:{isContentAsync(){return"function"==typeof this.content},loading(){return this.isContentAsync&&null==this.asyncContent},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if("function"==typeof this.content&&this.$_isShown&&(e||!this.$_loading&&null==this.asyncContent)){this.asyncContent=null,this.$_loading=!0;const e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}});const co=so,po={__name:"BflexTooltip",props:{trigger:{type:[String,Array],default:()=>["click","touch","hover"]},distance:{type:Number,default:0},skidding:{type:Number,default:0},placement:{type:String,default:"top"},disabled:{type:Boolean,default:!1},shown:{type:Boolean,default:!1}},setup(e){const o=t.ref(null),i=()=>{const e=document.activeElement;e&&o.value?.$el?.contains(e)&&e.blur()},n=e,a=t.computed(()=>Array.isArray(n.trigger)?n.trigger:[n.trigger]);return(n,r)=>(t.openBlock(),t.createBlock(t.unref(co),t.mergeProps({ref_key:"tooltipRef",ref:o,triggers:a.value,disabled:e.disabled,placement:e.placement,container:!1},n.$attrs,{"auto-hide":"",onApplyHide:i}),{popper:t.withCtx(()=>[t.renderSlot(n.$slots,"popper")]),default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},16,["triggers","disabled","placement"]))}},uo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const mo={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",uo,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80z"},null,-1)])])}},ho={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const fo={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",ho,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56z"},null,-1)])])}},go={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const vo={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",go,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57z"},null,-1)])])}},yo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const bo={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",yo,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"m424-296 282-282-56-56-226 226-114-114-56 56zm56 216q-83 0-156-31.5T197-197t-85.5-127T80-480t31.5-156T197-763t127-85.5T480-880t156 31.5T763-763t85.5 127T880-480t-31.5 156T763-197t-127 85.5T480-80m0-80q134 0 227-93t93-227-93-227-227-93-227 93-93 227 93 227 227 93m0-320"},null,-1)])])}},wo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const xo={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",wo,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M880-720v480q0 33-23.5 56.5T800-160H160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720m-720 80h640v-80H160zm0 160v240h640v-240zm0 240v-480z"},null,-1)])])}},_o={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const ko={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",_o,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M320-400q-17 0-28.5-11.5T280-440t11.5-28.5T320-480t28.5 11.5T360-440t-11.5 28.5T320-400m160 0q-17 0-28.5-11.5T440-440t11.5-28.5T480-480t28.5 11.5T520-440t-11.5 28.5T480-400m160 0q-17 0-28.5-11.5T600-440t11.5-28.5T640-480t28.5 11.5T680-440t-11.5 28.5T640-400M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80zm0-80h560v-400H200zm0-480h560v-80H200zm0 0v-80z"},null,-1)])])}},So={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const No={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",So,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M480-344 240-584l56-56 184 184 184-184 56 56z"},null,-1)])])}},Eo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const To={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",Eo,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M480-528 296-344l-56-56 240-240 240 240-56 56z"},null,-1)])])}},Co={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const Bo={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",Co,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M440-280h80v-240h-80zm40-320q17 0 28.5-11.5T520-640t-11.5-28.5T480-680t-28.5 11.5T440-640t11.5 28.5T480-600m0 520q-83 0-156-31.5T197-197t-85.5-127T80-480t31.5-156T197-763t127-85.5T480-880t156 31.5T763-763t85.5 127T880-480t-31.5 156T763-197t-127 85.5T480-80m0-80q134 0 227-93t93-227-93-227-227-93-227 93-93 227 93 227 227 93m0-320"},null,-1)])])}},Vo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const Po={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",Vo,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440t130 15.5T616-378q29 15 46.5 43.5T680-272v112zm720 0v-120q0-44-24.5-84.5T666-434q51 6 96 20.5t84 35.5q36 20 55 44.5t19 53.5v120zM360-480q-66 0-113-47t-47-113 47-113 113-47 113 47 47 113-47 113-113 47m400-160q0 66-47 113t-113 47q-11 0-28-2.5t-28-5.5q27-32 41.5-71t14.5-81-14.5-81-41.5-71q14-5 28-6.5t28-1.5q66 0 113 47t47 113M120-240h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360t-111 13.5T140-306q-9 5-14.5 14t-5.5 20zm240-320q33 0 56.5-23.5T440-640t-23.5-56.5T360-720t-56.5 23.5T280-640t23.5 56.5T360-560m0-80"},null,-1)])])}},Ao={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 -960 960 960"};const Do={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",Ao,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M480-480q-66 0-113-47t-47-113 47-113 113-47 113 47 47 113-47 113-113 47M160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440t130 15.5T736-378q29 15 46.5 43.5T800-272v112z"},null,-1)])])}},zo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const Oo={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",zo,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M480-480q-66 0-113-47t-47-113 47-113 113-47 113 47 47 113-47 113-113 47M160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440t130 15.5T736-378q29 15 46.5 43.5T800-272v112zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360t-111 13.5T260-306q-9 5-14.5 14t-5.5 20zm240-320q33 0 56.5-23.5T560-640t-23.5-56.5T480-720t-56.5 23.5T400-640t23.5 56.5T480-560m0 320"},null,-1)])])}},$o={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const qo={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",$o,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440t130 15.5T616-378q29 15 46.5 43.5T680-272v112zm720 0v-120q0-44-24.5-84.5T666-434q51 6 96 20.5t84 35.5q36 20 55 44.5t19 53.5v120zM360-480q-66 0-113-47t-47-113 47-113 113-47 113 47 47 113-47 113-113 47m400-160q0 66-47 113t-113 47q-11 0-28-2.5t-28-5.5q27-32 41.5-71t14.5-81-14.5-81-41.5-71q14-5 28-6.5t28-1.5q66 0 113 47t47 113M120-240h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360t-111 13.5T140-306q-9 5-14.5 14t-5.5 20zm240-320q33 0 56.5-23.5T440-640t-23.5-56.5T360-720t-56.5 23.5T280-640t23.5 56.5T360-560m0-80"},null,-1)])])}},Lo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const Io={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",Lo,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M280-80v-366q-51-14-85.5-56T160-600v-280h80v280h40v-280h80v280h40v-280h80v280q0 56-34.5 98T360-446v366zm400 0v-320H560v-280q0-83 58.5-141.5T760-880v800z"},null,-1)])])}},Mo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#e3e3e3",viewBox:"0 -960 960 960"};const Ro={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",Mo,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M480-120q-138 0-240.5-91.5T122-440h82q14 104 92.5 172T480-200q117 0 198.5-81.5T760-480t-81.5-198.5T480-760q-69 0-129 32t-101 88h110v80H120v-240h80v94q51-64 124.5-99T480-840q75 0 140.5 28.5t114 77 77 114T840-480t-28.5 140.5-77 114-114 77T480-120m112-192L440-464v-216h80v184l128 128z"},null,-1)])])}},Ho={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 -960 960 960"};const jo={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",Ho,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160zm320-280 320-200v-80L480-520 160-720v80z"},null,-1)])])}},Fo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 -960 960 960"};const Wo={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",Fo,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M160-120v-480l320-240 320 240v480H560v-280H400v280z"},null,-1)])])}},Yo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 -960 960 960"};const Xo={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",Yo,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M120-120v-560h240v-80l120-120 120 120v240h240v400zm80-80h80v-80h-80zm0-160h80v-80h-80zm0-160h80v-80h-80zm240 320h80v-80h-80zm0-160h80v-80h-80zm0-160h80v-80h-80zm0-160h80v-80h-80zm240 480h80v-80h-80zm0-160h80v-80h-80z"},null,-1)])])}},Uo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 -960 960 960"};const Go={render:function(e,o){return t.openBlock(),t.createElementBlock("svg",Uo,[...o[0]||(o[0]=[t.createElementVNode("path",{d:"M798-120q-125 0-247-54.5T329-329 174.5-551 120-798q0-18 12-30t30-12h162q14 0 25 9.5t13 22.5l26 140q2 16-1 27t-11 19l-97 98q20 37 47.5 71.5T387-386q31 31 65 57.5t72 48.5l94-94q9-9 23.5-13.5T670-390l138 28q14 4 23 14.5t9 23.5v162q0 18-12 30t-30 12"},null,-1)])])}},Zo=Object.freeze(Object.defineProperty({__proto__:null,Add:mo,ArrowForward:fo,Check:vo,CheckCycle:bo,CreditCard:xo,DateRange:ko,Email:jo,ExpandLess:No,ExpandMore:To,Home:Wo,Hotel:Xo,Info:Bo,People:Po,Person:Do,PersonOutline:Oo,Persons:qo,Phone:Go,Restaurant:Io,Restore:Ro},Symbol.toStringTag,{value:"Module"})),Jo={__name:"BflexIcon",props:{name:{type:String,required:!0},small:{type:Boolean,default:!1}},setup(e){const o=e,i=t.computed(()=>Zo[o.name]||null);return(o,n)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.value),t.mergeProps(o.$attrs,{class:["icon",e.small?"icon--small":""]}),null,16,["class"]))}},Qo=["aria-label"],Ko={class:"placement-details-tooltip"},ei={class:"placement-details-tooltip__title"},ti={key:0,class:"placement-details-tooltip__period"},oi={key:0},ii={class:"placement-details-tooltip__list"},ni={class:"placement-details-tooltip__label"},ai={class:"placement-details-tooltip__price"},ri={class:"placement-details-tooltip__label"},li={class:"placement-details-tooltip__price"},si={key:1,class:"placement-details-tooltip__footer"},ci={class:"placement-details-tooltip__total-label"},di={class:"placement-details-tooltip__total-value"},pi={__name:"BflexPlacementDetailsTooltip",props:{dailyBreakdown:{type:Array,default:()=>[]},total:{type:Number,default:0},currency:{type:String,required:!0},checkInDate:{type:String,default:null},checkOutDate:{type:String,default:null},locale:{type:String,default:null},placement:{type:String,default:"top"}},setup(e){const o=e,i={title:window.wp.i18n.__("Price details","bookiflex"),totalLabel:window.wp.i18n.__("Total for the stay","bookiflex"),free:window.wp.i18n.__("free","bookiflex"),triggerLabel:window.wp.i18n.__("Show price details","bookiflex")},n=t.inject("settings",null),a=t.computed(()=>(n?.value?.taxes??[]).filter(e=>!1===e.included)),r=t.computed(()=>o.locale||window.BookiFlex?.widget?.locale||document.documentElement.lang||navigator.language||"en-US"),l=t.computed(()=>o.checkInDate&&o.checkOutDate?q(o.checkInDate,o.checkOutDate,"nights"):0),s=t.computed(()=>o.checkInDate&&o.checkOutDate?$(o.checkInDate,o.checkOutDate,r.value):""),c=t.computed(()=>{const e=l.value;return e<=0?"":window.wp.i18n.sprintf(window.wp.i18n._n("%d night","%d nights",e,"bookiflex"),e)}),d=t.computed(()=>{const e=new Map;for(const t of o.dailyBreakdown||[])for(const o of t.placements||[]){const t=`${o.placementType}|${o.variant}`;let i=e.get(t);i||(i={key:t,placementType:o.placementType,variant:o.variant,quantity:o.quantity,total:0},e.set(t,i)),i.total+=o.total??0}return Array.from(e.values())}),p=e=>{if("string"!=typeof e)return"";const t=e.split("x");return 2!==t.length?e:`${t[0]}–${t[1]}`},u=e=>{const t=e.quantity,o={
/* translators: %d: number of adults on main place */
adultOnMainPlace:window.wp.i18n._n("%d adult on main place","%d adults on main place",t,"bookiflex"),
/* translators: %d: number of adults on extra place */
adultOnExtraPlace:window.wp.i18n._n("%d adult on extra place","%d adults on extra place",t,"bookiflex"),
/* translators: %1$d: number of children, %2$s: age range like "3–5" */
childOnMainPlace:window.wp.i18n._n("%1$d child age %2$s on main place","%1$d children age %2$s on main place",t,"bookiflex"),
/* translators: %1$d: number of children, %2$s: age range like "3–5" */
childOnExtraPlace:window.wp.i18n._n("%1$d child age %2$s on extra place","%1$d children age %2$s on extra place",t,"bookiflex"),
/* translators: %1$d: number of children, %2$s: age range like "3–5" */
childOnWithoutPlace:window.wp.i18n._n("%1$d child age %2$s without place","%1$d children age %2$s without place",t,"bookiflex")};switch(e.placementType){case"adultOnMainPlace":return window.wp.i18n.sprintf(o.adultOnMainPlace,t);case"adultOnExtraPlace":return window.wp.i18n.sprintf(o.adultOnExtraPlace,t);case"childOnMainPlace":return window.wp.i18n.sprintf(o.childOnMainPlace,t,p(e.variant));case"childOnExtraPlace":return window.wp.i18n.sprintf(o.childOnExtraPlace,t,p(e.variant));case"childOnWithoutPlace":return window.wp.i18n.sprintf(o.childOnWithoutPlace,t,p(e.variant));default:return`${t} × ${e.placementType}`}},m=e=>e.total&&"childOnWithoutPlace"!==e.placementType?F(e.total,o.currency):i.free;return(o,n)=>(t.openBlock(),t.createBlock(po,{placement:e.placement,trigger:["click","touch"]},{popper:t.withCtx(()=>[t.createElementVNode("div",Ko,[t.createElementVNode("h4",ei,t.toDisplayString(i.title),1),s.value?(t.openBlock(),t.createElementBlock("p",ti,[t.createTextVNode(t.toDisplayString(s.value),1),c.value?(t.openBlock(),t.createElementBlock("span",oi," · "+t.toDisplayString(c.value),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("ul",ii,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,e=>(t.openBlock(),t.createElementBlock("li",{key:e.key,class:"placement-details-tooltip__item"},[t.createElementVNode("span",ni,t.toDisplayString(u(e)),1),t.createElementVNode("span",ai,t.toDisplayString(m(e)),1)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,e=>(t.openBlock(),t.createElementBlock("li",{key:`tax-${e.name}`,class:"placement-details-tooltip__item placement-details-tooltip__item--indent"},[t.createElementVNode("span",ri,"+ "+t.toDisplayString(e.name),1),t.createElementVNode("span",li,t.toDisplayString(e.rate)+"%",1)]))),128))]),e.total?(t.openBlock(),t.createElementBlock("div",si,[t.createElementVNode("span",ci,t.toDisplayString(i.totalLabel),1),t.createElementVNode("strong",di,t.toDisplayString(t.unref(F)(e.total,e.currency)),1)])):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[t.createElementVNode("button",{type:"button",class:"placement-details-tooltip__trigger","aria-label":i.triggerLabel},[t.createVNode(Jo,{name:"Info",small:""})],8,Qo)]),_:1},8,["placement"]))}},ui={class:"variant-offer"},mi={class:"variant-offer__badge"},hi={class:"variant-offer__badge-number"},fi={class:"variant-offer__badge-label"},gi={class:"variant-offer__summary"},vi={class:"variant-offer__title"},yi={key:0,class:"variant-offer__subtitle"},bi={key:0,class:"price-block"},wi={key:0,class:"price-block__discount"},xi={class:"price-block__old"},_i=["innerHTML"],ki={class:"price-block__discount-size"},Si={class:"price-block__amount"},Ni={key:0,class:"price-block__current"},Ei=["innerHTML"],Ti={key:1},Ci={key:2,class:"price-block__icons"},Bi={key:1,class:"price-block__note"},Vi={class:"variant-offer__action"},Pi={__name:"BflexRatePlanVariantOffer",props:{occupancyOptions:{type:Object,required:!0},allocation:{type:Array,default:()=>[]},price:{type:Object,nullable:!0},dailyBreakdown:{type:Array,default:()=>[]},checkInDate:{type:String,default:null},checkOutDate:{type:String,default:null}},setup(e){const o=e,i={free:window.wp.i18n.__("Free","bookiflex")},n=t.computed(()=>{if(o.allocation&&o.allocation.length){const e={main:0,extra:0,without:0};for(const t of o.allocation)e[t.location]=(e[t.location]||0)+t.quantity;return e}const{main:e=0,extraBed:t=0}=o.occupancyOptions||{};return{main:e,extra:t,without:0}}),a=t.computed(()=>{const{main:e,extra:t,without:o}=n.value;return e+t+o}),r=t.computed(()=>window.wp.i18n._n("guest","guests",a.value,"bookiflex")),l=t.computed(()=>{const{main:e,extra:t,without:o}=n.value,i={
/* translators: %d: number of guests, all placed on the main bed(s) */
guestsOnMainBeds:window.wp.i18n._n("%d guest","%d guests",e,"bookiflex"),
/* translators: %d: number of guests placed on a main bed */
onMainBed:window.wp.i18n._n("%d on main bed","%d on main beds",e,"bookiflex"),
/* translators: %d: number of guests placed on an extra bed */
onExtraBed:window.wp.i18n._n("%d extra bed","%d extra beds",t,"bookiflex"),
/* translators: %d: number of guests placed without a bed */
withoutBed:window.wp.i18n._n("%d without bed","%d without beds",o,"bookiflex")};if(!t&&!o)return`${window.wp.i18n.sprintf(i.guestsOnMainBeds,e)} · ${window.wp.i18n.__("on the main beds","bookiflex")}`;const a=[window.wp.i18n.sprintf(i.onMainBed,e)];return t&&a.push(window.wp.i18n.sprintf(i.onExtraBed,t)),o&&a.push(window.wp.i18n.sprintf(i.withoutBed,o)),a.join(" + ")}),s=t.computed(()=>{const{extra:e}=n.value;if(!e)return"";const t={
/* translators: %d: number of extra beds added */
extraBedAdded:window.wp.i18n._n("%d extra bed added","%d extra beds added",e,"bookiflex")};return window.wp.i18n.sprintf(t.extraBedAdded,e)}),c=t.computed(()=>F(o.price?.originalSellingPrice,o.price?.currency)),d=t.computed(()=>F(o.price?.sellingPrice,o.price?.currency)),p=t.computed(()=>o.checkInDate&&o.checkOutDate?q(o.checkInDate,o.checkOutDate,"nights"):null),u=t.computed(()=>{if(!p.value)return"";const e={
/* translators: %d: number of nights */
priceForNights:window.wp.i18n._n("Price for %d night","Price for %d nights",p.value,"bookiflex")};return window.wp.i18n.sprintf(e.priceForNights,p.value)});return(o,n)=>(t.openBlock(),t.createElementBlock("div",ui,[t.createElementVNode("div",mi,[t.createElementVNode("span",hi,t.toDisplayString(a.value),1),t.createElementVNode("span",fi,t.toDisplayString(r.value),1)]),t.createElementVNode("div",gi,[t.createElementVNode("div",vi,t.toDisplayString(l.value),1),s.value?(t.openBlock(),t.createElementBlock("div",yi,t.toDisplayString(s.value),1)):t.createCommentVNode("",!0)]),e.price&&e.price.sellingPrice?(t.openBlock(),t.createElementBlock("div",bi,[e.price.discount?(t.openBlock(),t.createElementBlock("div",wi,[t.createElementVNode("span",xi,[t.createElementVNode("span",{class:"amount",innerHTML:c.value},null,8,_i)]),t.createElementVNode("span",ki,[t.createElementVNode("span",null,"-"+t.toDisplayString(e.price.discount),1),n[0]||(n[0]=t.createElementVNode("span",{class:"price-block__percent"},"%",-1))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Si,[e.price.sellingPrice?(t.openBlock(),t.createElementBlock("span",Ni,[t.createElementVNode("span",{class:"price-block__current-amount",innerHTML:d.value},null,8,Ei)])):0===e.price.sellingPrice?(t.openBlock(),t.createElementBlock("span",Ti,t.toDisplayString(i.free),1)):t.createCommentVNode("",!0),e.dailyBreakdown&&e.dailyBreakdown.length?(t.openBlock(),t.createElementBlock("div",Ci,[t.createVNode(pi,{"daily-breakdown":e.dailyBreakdown,total:e.price.sellingPrice,currency:e.price.currency,"check-in-date":e.checkInDate,"check-out-date":e.checkOutDate},null,8,["daily-breakdown","total","currency","check-in-date","check-out-date"])])):t.createCommentVNode("",!0)]),u.value?(t.openBlock(),t.createElementBlock("div",Bi,t.toDisplayString(u.value),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Vi,[t.renderSlot(o.$slots,"default")])]))}},Ai={class:"rate-plan-card__wrapper"},Di={class:"rate-plan-card__description"},zi={class:"rate-plan-card__offers"},Oi={class:"rate-plan-card__offers-item cancellation-policy-offer"},$i={class:"rate-plan-card__offers-item payment-type-offers"},qi={style:{"margin-right":"0.375rem"}},Li={key:0,style:{margin:"0 0.375rem"}},Ii={__name:"BflexRatePlanCardHeader",props:{data:{type:Object,required:!0}},setup(e){const o={payments:window.wp.i18n.__("Payment","bookiflex"),or:window.wp.i18n.__("or","bookiflex")},i=t.ref(!1);return(n,a)=>(t.openBlock(),t.createElementBlock("div",Ai,[t.createElementVNode("div",Di,[t.createElementVNode("h3",{onClick:a[0]||(a[0]=e=>i.value=!i.value),class:"rate-plan-card__title cursor-pointer"},[t.createTextVNode(t.toDisplayString(e.data.name)+" ",1),t.createVNode(Jo,{name:i.value?"ExpandLess":"ExpandMore"},null,8,["name"])]),t.withDirectives(t.createElementVNode("blockquote",null,t.toDisplayString(e.data.description),513),[[t.vShow,i.value]]),t.createElementVNode("div",zi,[t.createElementVNode("div",Oi,[t.createVNode(Jo,{name:"Restore"}),t.createVNode(po,{class:"inline"},{popper:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.cancellationPolicy.rules,(e,o)=>(t.openBlock(),t.createElementBlock("p",{key:o},t.toDisplayString(e),1))),128))]),default:t.withCtx(()=>[t.createElementVNode("abbr",null,t.toDisplayString(e.data.cancellationPolicy.name||""),1)]),_:1})]),t.createElementVNode("div",$i,[t.createVNode(Jo,{name:"CreditCard"}),t.createElementVNode("span",null,[t.createElementVNode("strong",qi,t.toDisplayString(o.payments)+":",1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.paymentTypes,(i,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.name},[t.createVNode(po,{class:"inline"},{popper:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.description),1)]),default:t.withCtx(()=>[t.createElementVNode("abbr",null,t.toDisplayString(i.name),1)]),_:2},1024),e.data.paymentTypes.length-1!==n?(t.openBlock(),t.createElementBlock("strong",Li,t.toDisplayString(o.or),1)):t.createCommentVNode("",!0)],64))),128))])]),t.renderSlot(n.$slots,"extras")])])]))}},Mi={class:"cycle-loader"},Ri={__name:"BflexCycleLoader",props:{color:{type:String,default:"#1f73b7"},size:{type:String,default:"40px"},margin:{type:String,default:"3px"},radius:{type:String,default:"100%"}},setup(e){const o=e,{color:i,size:n,margin:a,radius:r}=t.toRefs(o),l=t.computed(()=>({backgroundColor:i.value,width:n.value,height:n.value,margin:a.value,borderRadius:r.value,display:"inline-block",animationName:"v-pulseStretchDelay",animationDuration:"0.75s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.2,.68,.18,1.08)",animationFillMode:"both"})),s=t.computed(()=>({animationDelay:"0.12s"})),c=t.computed(()=>({animationDelay:"0.24s"})),d=t.computed(()=>({animationDelay:"0.36s"}));return(e,o)=>(t.openBlock(),t.createElementBlock("div",Mi,[t.createElementVNode("div",{style:t.normalizeStyle([l.value,s.value])},null,4),t.createElementVNode("div",{style:t.normalizeStyle([l.value,c.value])},null,4),t.createElementVNode("div",{style:t.normalizeStyle([l.value,d.value])},null,4)]))}},Hi=["type","disabled"],ji={class:"button__label"},Fi={__name:"BflexButton",props:{loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},variant:{type:String,default:"primary"},type:{type:String,default:"button"}},setup:e=>(o,i)=>(t.openBlock(),t.createElementBlock("button",{type:e.type,class:t.normalizeClass(["button",[`button--${e.variant}`,{"button--loading":e.loading}]]),disabled:e.disabled},[t.createElementVNode("span",ji,[t.renderSlot(o.$slots,"default")]),e.loading?(t.openBlock(),t.createBlock(Ri,{key:0,class:"button__loader",size:"0.35em",margin:"0.12em",color:"currentColor"})):t.createCommentVNode("",!0)],10,Hi))},Wi={class:"rate-plan-card"},Yi={class:"rate-plan-card__actions"},Xi={class:"rate-plan-card__variants"},Ui={__name:"BflexRatePlanItem",props:{data:{type:Object,required:!0},disabled:{type:Boolean,default:!1},checkInDate:{type:String,default:null},checkOutDate:{type:String,default:null},accommodationTypeId:{type:Number,default:null}},emits:["variant-chosen"],setup(e,{emit:o}){const i={action:window.wp.i18n.__("Book","bookiflex")},n=t.ref({}),a=o;return(o,r)=>(t.openBlock(),t.createElementBlock("div",Wi,[t.createVNode(Ii,{data:e.data},{extras:t.withCtx(()=>[t.renderSlot(o.$slots,"extras")]),_:3},8,["data"]),t.createElementVNode("div",Yi,[t.renderSlot(o.$slots,"default",{},()=>[t.createElementVNode("div",Xi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.variations||[],(o,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:r},[null!==o.price?(t.openBlock(),t.createBlock(Pi,{key:0,"occupancy-options":o.occupancyOptions,allocation:o.allocation,price:o.price,"daily-breakdown":o.dailyBreakdown,"check-in-date":e.checkInDate,"check-out-date":e.checkOutDate},{default:t.withCtx(()=>[t.createVNode(Fi,{loading:n.value[r],disabled:e.disabled&&!n.value[r],onClick:()=>((e,t)=>{n.value[t]||(n.value[t]=!0,a("variant-chosen",e))})(o,r),class:"book-button"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.action),1)]),_:1},8,["loading","disabled","onClick"])]),_:2},1032,["occupancy-options","allocation","price","daily-breakdown","check-in-date","check-out-date"])):t.createCommentVNode("",!0)],64))),128))])])])]))}},Gi={class:"information-block__content"};const Zi=b({},[["render",function(e,o){return t.openBlock(),t.createElementBlock("div",Gi,[t.renderSlot(e.$slots,"default")])}]]),Ji={class:"rate-plan-list__wrapper"},Qi={class:"rate-plan-list__header"},Ki={class:"rate-plan-list__header-title"},en={class:"rate-plan-list__header-los"},tn={key:0,class:"rate-plan-list__dots"},on={__name:"BflexAccommodationOfferCard",props:{accommodationOffer:{type:Object,required:!0},lengthOfStay:{type:Number,required:!0},loading:{type:Boolean,default:!1},checkInDate:{type:String,default:null},checkOutDate:{type:String,default:null}},emits:["accommodationOfferChosen"],setup(e,{emit:o}){const i=e,n={chooseRate:window.wp.i18n.__("Choose your rate","bookiflex"),notAvailableTitle:window.wp.i18n.__("Not available","bookiflex"),notAvailableDescription:window.wp.i18n.__("This stay is not available for the selected dates","bookiflex")},a=t.computed(()=>{const e={
/* translators: %d: number of nights */
priceForNights:window.wp.i18n._n("Price for %d night","Price for %d nights",i.lengthOfStay,"bookiflex")};return window.wp.i18n.sprintf(e.priceForNights,i.lengthOfStay)}),r=t.computed(()=>{let e=null;for(const t of i.accommodationOffer.ratePlans||[])for(const o of t.variations||[])o.price&&(null===e||o.price.sellingPrice<e.sellingPrice)&&(e=o.price);return e}),l=t.ref(null),s=t.ref(0);let c=null;const d=()=>{c||(c=requestAnimationFrame(()=>{c=null,(()=>{const e=l.value;if(!e)return;const t=e.querySelectorAll(":scope > .rate-plan-card");if(!t.length)return;const{scrollLeft:o}=e;let i=0,n=1/0;t.forEach((e,t)=>{const a=Math.abs(e.offsetLeft-o);a<n&&(n=a,i=t)}),s.value=i})()}))};t.onMounted(()=>{l.value?.addEventListener("scroll",d,{passive:!0})}),t.onUnmounted(()=>{l.value?.removeEventListener("scroll",d),c&&cancelAnimationFrame(c)}),t.watch(()=>i.accommodationOffer.ratePlans,()=>{s.value=0,t.nextTick(()=>{l.value&&(l.value.scrollLeft=0)})});const p=o;return(o,i)=>(t.openBlock(),t.createBlock(C,{class:"accommodation-offer"},{default:t.withCtx(()=>[t.createVNode(ce,{data:e.accommodationOffer.accommodationType,"room-quantity":e.accommodationOffer.roomQuantity,"from-price":r.value},null,8,["data","room-quantity","from-price"]),t.createElementVNode("div",Ji,[t.createElementVNode("div",Qi,[t.createElementVNode("span",Ki,t.toDisplayString(n.chooseRate),1),t.createElementVNode("span",en,t.toDisplayString(a.value),1)]),t.createElementVNode("div",{ref_key:"ratePlanListEl",ref:l,class:t.normalizeClass(["rate-plan-list",{"rate-plan-list--single":e.accommodationOffer.ratePlans.length<=1}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.accommodationOffer.ratePlans,(o,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.id},[i>0?(t.openBlock(),t.createBlock(V,{key:0})):t.createCommentVNode("",!0),t.createVNode(Ui,{data:o,disabled:e.loading,"check-in-date":e.checkInDate,"check-out-date":e.checkOutDate,"accommodation-type-id":e.accommodationOffer.accommodationType.id,onVariantChosen:t=>((e,t,o)=>{p("accommodationOfferChosen",{accommodationOffer:e,ratePlan:t,variant:o})})(e.accommodationOffer,o,t)},null,8,["data","disabled","check-in-date","check-out-date","accommodation-type-id","onVariantChosen"])],64))),128)),e.accommodationOffer.ratePlans.length?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Zi,{key:0},{default:t.withCtx(()=>[t.createElementVNode("p",null,[t.createElementVNode("strong",null,t.toDisplayString(n.notAvailableTitle),1),i[0]||(i[0]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(t.toDisplayString(n.notAvailableDescription),1)])]),_:1}))],2),e.accommodationOffer.ratePlans.length>1?(t.openBlock(),t.createElementBlock("div",tn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.accommodationOffer.ratePlans,(e,o)=>(t.openBlock(),t.createElementBlock("span",{key:e.id,class:t.normalizeClass(["rate-plan-list__dot",{"rate-plan-list__dot--active":o===s.value}])},null,2))),128))])):t.createCommentVNode("",!0)])]),_:1}))}},nn={class:"bflex-research-bar"},an={__name:"BflexResearchBar",props:{searchParams:{type:Object,default:()=>({})}},emits:["search"],setup(e,{emit:o}){const i=e,n=o,a=t.ref(null),r=()=>a.value?.applySearchParams(i.searchParams),l=e=>{e.stopPropagation(),n("search",e.detail)};return t.onMounted(()=>{a.value?.addEventListener("bflex:search-bar:search",l),r()}),t.onUnmounted(()=>a.value?.removeEventListener("bflex:search-bar:search",l)),t.watch(()=>i.searchParams,r,{deep:!0}),(e,o)=>(t.openBlock(),t.createElementBlock("div",nn,[t.createElementVNode("bookiflex-search-form",{ref_key:"formRef",ref:a,"submit-mode":"event","hide-search-on-mobile":"","hide-promo":""},null,512)]))}};const rn=new class{async loadOffers(e,t,o=null,n=null,a=[]){const r=await(async(e,t,o,n=null,a=[])=>{const r=await p()+i,l=new URL(r,location.href);e&&l.searchParams.set("checkInDate",e),t&&l.searchParams.set("checkOutDate",t),o&&l.searchParams.set("promoCode",o),null!=n&&(l.searchParams.set("adults",String(n)),a?.length&&l.searchParams.set("childrenAges",a.join(",")));try{const e=await fetch(l.toString());return await d(e)}catch(s){throw console.error("Failed to load offers:",s),s}})(e,t,o,n,a);return{offers:this.transformOffers(r.searchResults||[]),searchParams:r.searchParams??null}}transformOffers(e){return[...e.filter(e=>e.ratePlans?.length>0),...e.filter(e=>!e.ratePlans?.length)]}};function ln(e=!1){const o=t.ref(e),i=t.ref(null);return{loading:o,error:i,withLoading:async e=>{o.value=!0,i.value=null;try{return await e()}catch(t){throw i.value=t,t}finally{o.value=!1}}}}const sn=new class{async loadCart(){const e=await(async()=>{const e=await p()+n;try{const t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}});return await d(t)}catch(t){throw console.error("Failed to load cart:",t),t}})();return this.transformCart(e.cart)}async addItem(e){const t=await(async e=>{const t=await p()+n;try{const o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await d(o)}catch(o){throw console.error("Failed to add to cart:",o),o}})(e);return this.transformCart(t.cart)}async addExtra({extraId:e,parentHash:t,quantity:o=1}){const i=await(async e=>{const t=await p()+a;try{const o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await d(o)}catch(o){throw console.error("Failed to add extra to cart:",o),o}})({extraId:e,parentHash:t,quantity:o});return this.transformCart(i.cart)}async removeItem(e){const t=await(async e=>{const t=await p()+n+"/items/"+e+"/delete";try{const e=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"}});return await d(e)}catch(o){throw console.error("Failed to add to cart:",o),o}})(e);return this.transformCart(t.cart)}async changePaymentType(e,t){const o=await(async e=>{const t=await p()+r+"/update";try{const o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await d(o)}catch(o){throw console.error("Failed to change payment type:",o),o}})({itemHash:e,paymentTypeId:t});return this.transformCart(o.cart)}async confirm(e,t,o){return await(async e=>{const t=await p()+l;try{const o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await d(o)}catch(o){throw console.error("Failed to confirm booking:",o),o}})({customer:e,specialRequest:t,arrivalTime:o})}transformCart(e){return e?{...e,items:Array.isArray(e.items)?e.items:[],isEmpty:!e.items||0===e.items.length,itemsCount:e.items?e.items.length:0,totalQuantity:e.items?e.items.reduce((e,t)=>e+t.quantity,0):0}:null}getFirstItem(e){if(null===e?.items||0===e.items.length)return null;const t=e.items.filter(e=>"accommodation"===e.type);return t?.[0]||null}calculateLengthOfStay(e){const t=this.getFirstItem(e);return t?.details?.accommodation?.lengthOfStay||0}calculateAccommodationUnits(e){return e?.items?e.items.reduce((e,t)=>e+t.quantity,0):0}};function cn(){const e=t.ref(null),{loading:o,error:i,withLoading:n}=ln(),a=t.computed(()=>!e.value?.items?.length),r=t.computed(()=>e.value?.itemsCount||0),l=t.computed(()=>e.value?.totalQuantity||0),s=t.computed(()=>sn.getFirstItem(e.value)),c=t.computed(()=>sn.calculateLengthOfStay(e.value)),d=t.computed(()=>sn.calculateAccommodationUnits(e.value));return{cart:e,loading:o,error:i,isEmpty:a,itemsCount:r,totalQuantity:l,firstItem:s,lengthOfStay:c,accommodationUnits:d,loadCart:async()=>(e.value=await n(()=>sn.loadCart()),e.value),addToCart:async t=>(e.value=await n(()=>sn.addItem(t)),e.value),addExtraToCart:async({extraId:t,parentHash:o,quantity:i=1})=>(e.value=await n(()=>sn.addExtra({extraId:t,parentHash:o,quantity:i})),e.value),removeFromCart:async t=>(e.value=await n(()=>sn.removeItem(t)),e.value),changePaymentType:async(t,o)=>(e.value=await n(()=>sn.changePaymentType(t,o)),e.value),confirmCart:async(e,t,o)=>await n(()=>sn.confirm(e,t,o))}}const dn={class:"empty-state"},pn={class:"empty-state__title"},un={class:"empty-state__description"},mn={__name:"OffersPage",props:{dateRange:{type:Object,default:()=>({start:null,end:null})},promoCode:{type:String,default:null},adults:{type:Number,default:null},childrenAges:{type:Array,default:()=>[]}},emits:["released","searchParamsResolved","search"],setup(e,{emit:o}){const i=e,n=o,{setError:a}=t.inject("globalError"),r=t.computed(()=>i.dateRange.start&&i.dateRange.end?q(i.dateRange.start,i.dateRange.end):0),l=t.computed(()=>({start:i.dateRange.start,end:i.dateRange.end,promoCode:i.promoCode,adults:i.adults,childrenAges:i.childrenAges})),{offers:s,loading:c,loadOffers:d,resolvedSearchParams:p}=function(){const e=t.ref([]),o=t.ref(null),i=t.ref(null),{loading:n,error:a,withLoading:r}=ln();return{offers:e,loading:n,error:a,stayPeriod:o,resolvedSearchParams:i,loadOffers:async(t,n,a=null,l=null,s=[])=>{const c=await r(()=>rn.loadOffers(t,n,a,l,s));return e.value=c.offers,i.value=c.searchParams,c.searchParams?o.value={startDate:c.searchParams.checkInDate,endDate:c.searchParams.checkOutDate}:o.value=t&&n?{startDate:t,endDate:n}:null,c}}}(),{addToCart:u,loading:m}=cn(),f={noResultsTitle:window.wp.i18n.__("No accommodations found","bookiflex"),noResultsDescription:window.wp.i18n.__("Try selecting different dates","bookiflex")};t.watch(()=>({start:i.dateRange.start,end:i.dateRange.end,promoCode:i.promoCode,adults:i.adults,childrenAges:i.childrenAges}),async(e,t)=>{if(!(!t?.start||!t?.end)||!p.value||e.start!==p.value.checkInDate||e.end!==p.value.checkOutDate)try{const t=!e.start||!e.end;await d(e.start,e.end,e.promoCode,e.adults,e.childrenAges),t&&p.value&&n("searchParamsResolved",p.value)}catch(o){a(o)}},{deep:!0,immediate:!0});const g=async({accommodationOffer:e,ratePlan:t,variant:o})=>{try{const a="children"===o.occupancyOptions.kind,r=await u({type:"accommodation",checkInDate:i.dateRange.start,checkOutDate:i.dateRange.end,accommodationTypeId:e.accommodationType.id,ratePlanId:t.id,adults:a?o.occupancyOptions.main:o.occupancyOptions.main+o.occupancyOptions.extraBed,children:o.children||[],quantity:1,promoCode:i.promoCode||void 0});n("released",{action:h,result:{cart:r}})}catch(r){a(r)}};return(o,i)=>(t.openBlock(),t.createBlock(x,null,{default:t.withCtx(()=>[t.createVNode(an,{"search-params":l.value,onSearch:i[0]||(i[0]=e=>n("search",e))},null,8,["search-params"]),t.unref(c)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList(3,e=>t.createVNode(O,{key:e})),64)):t.unref(s).length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(t.unref(s),o=>(t.openBlock(),t.createBlock(on,{"accommodation-offer":o,"length-of-stay":r.value,loading:t.unref(m),"check-in-date":e.dateRange.start,"check-out-date":e.dateRange.end,key:o.accommodationType.id,onAccommodationOfferChosen:g},null,8,["accommodation-offer","length-of-stay","loading","check-in-date","check-out-date"]))),128)):(t.openBlock(),t.createBlock(C,{key:1},{default:t.withCtx(()=>[t.createElementVNode("div",dn,[t.createVNode(Jo,{name:"Hotel"}),t.createElementVNode("p",pn,t.toDisplayString(f.noResultsTitle),1),t.createElementVNode("p",un,t.toDisplayString(f.noResultsDescription),1)])]),_:1}))]),_:1}))}},hn={class:"field-decorator"},fn={class:"field-decorator__input-group"},gn={class:"field-decorator__label"},vn={key:0,class:"field-decorator__required"},yn={class:"field-decorator__slot"},bn={key:0,class:"field-decorator__hint"},wn={__name:"BflexFieldDecorator",props:{label:{type:String,required:!0},hint:{type:String,default:""},hideHint:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},setup:e=>(o,i)=>(t.openBlock(),t.createElementBlock("div",hn,[t.createElementVNode("div",fn,[t.createElementVNode("label",gn,[t.createTextVNode(t.toDisplayString(e.label),1),e.required?(t.openBlock(),t.createElementBlock("span",vn,"*")):t.createCommentVNode("",!0)]),t.createElementVNode("div",yn,[t.renderSlot(o.$slots,"default")])]),e.hideHint?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",bn,t.toDisplayString(e.hint),1))]))},xn={class:"information-block__header-additional"},kn={__name:"BflexHeader",props:{dense:{type:Boolean,default:!1}},setup(e){const o=e;return(e,i)=>(t.openBlock(),t.createElementBlock("header",{class:t.normalizeClass({dense:o.dense})},[t.createElementVNode("span",null,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("span",xn,[t.renderSlot(e.$slots,"additional")])],2))}},Sn={class:"details-info"},Nn={class:"details-info__icon"},En={__name:"BflexDetailsInfo",props:{icon:{type:String,default:"info"},hideIcon:{type:Boolean,default:!1}},setup:e=>(o,i)=>(t.openBlock(),t.createElementBlock("div",Sn,[t.createElementVNode("div",Nn,[e.hideIcon?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Jo,{key:0,name:e.icon},null,8,["name"]))]),t.renderSlot(o.$slots,"default")]))},Tn={id:"customer-data-form",class:"customer-data-form"},Cn={__name:"BflexContactInformationCard",props:{modelValue:{type:Object,default:()=>({firstName:"",lastName:"",email:"",phone:""})}},emits:["update:modelValue"],setup(e,{emit:o}){const i=e,n={title:window.wp.i18n.__("Guest Details","bookiflex"),firstName:window.wp.i18n.__("First Name","bookiflex"),lastName:window.wp.i18n.__("Last Name","bookiflex"),email:window.wp.i18n.__("Email","bookiflex"),phoneNumber:window.wp.i18n.__("Phone Number","bookiflex"),confirmationInfo:window.wp.i18n.__("Please enter the details of the primary guest or the person responsible for the booking. Booking confirmation will be sent to this email address.","bookiflex")},a=o,r=t.reactive({...i.modelValue}),l=t.reactive({firstName:"",lastName:"",email:"",phone:""}),s=e=>{const t=e.target;l[t.name]=t.validity.valid?"":t.validationMessage};return t.watch(r,e=>{a("update:modelValue",e)},{deep:!0}),(e,o)=>(t.openBlock(),t.createBlock(C,null,{default:t.withCtx(()=>[t.createVNode(kn,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.title),1)]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("section",Tn,[t.createVNode(wn,{label:n.firstName,required:"",hint:l.firstName,class:t.normalizeClass({"form-group--error":l.firstName})},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=e=>r.firstName=e),type:"text",name:"firstName",minlength:"2",maxlength:"50",required:"",onInput:o[1]||(o[1]=e=>s(e))},null,544),[[t.vModelText,r.firstName,void 0,{trim:!0}]])]),_:1},8,["label","hint","class"]),t.createVNode(wn,{label:n.lastName,required:"",hint:l.lastName,class:t.normalizeClass({"form-group--error":l.lastName})},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":o[2]||(o[2]=e=>r.lastName=e),type:"text",name:"lastName",minlength:"2",maxlength:"50",required:"",onInput:o[3]||(o[3]=e=>s(e))},null,544),[[t.vModelText,r.lastName,void 0,{trim:!0}]])]),_:1},8,["label","hint","class"]),t.createVNode(wn,{label:n.email,required:"",hint:l.email,class:t.normalizeClass({"form-group--error":l.email})},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":o[4]||(o[4]=e=>r.email=e),type:"email",name:"email",maxlength:"100",required:"",onInput:o[5]||(o[5]=e=>s(e))},null,544),[[t.vModelText,r.email,void 0,{trim:!0}]])]),_:1},8,["label","hint","class"]),t.createVNode(wn,{label:n.phoneNumber,hint:l.phone,class:t.normalizeClass({"form-group--error":l.phone})},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":o[6]||(o[6]=e=>r.phone=e),type:"tel",name:"phone",minlength:"7",maxlength:"100",onInput:o[7]||(o[7]=e=>s(e))},null,544),[[t.vModelText,r.phone,void 0,{trim:!0}]])]),_:1},8,["label","hint","class"])]),t.createVNode(En,{icon:"Info"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.confirmationInfo),1)]),_:1})]),_:1})]),_:1}))}},Bn={class:"summary-block"},Vn={class:"summary-block__content"},Pn={class:"summary-block__content-info"},An={class:"summary-block__content-info__price"},Dn={class:"summary-block__content-info__text"},zn={__name:"BflexSummaryPanel",props:{totals:{type:Object,required:!0},lengthOfStay:{type:Number,default:0},accommodationUnits:{type:Number,default:0},loading:{type:Boolean,default:!1},buttonLabel:{type:String,default:null}},emits:["onAccommodationSummaryClick","submit"],setup(e,{emit:o}){const i=e,n={
/* translators: %d: number of booking places */
room:window.wp.i18n._n("%d place","%d places",i.accommodationUnits,"bookiflex"),
/* translators: %d: number of nights */
los:window.wp.i18n._n("%d night","%d nights",i.lengthOfStay,"bookiflex"),complete:window.wp.i18n.__("Complete Booking","bookiflex")},a=t.computed(()=>`${window.wp.i18n.sprintf(n.room,i.accommodationUnits)}, ${window.wp.i18n.sprintf(n.los,i.lengthOfStay)}`),r=o;return(o,i)=>(t.openBlock(),t.createElementBlock("div",Bn,[t.createElementVNode("div",Vn,[t.createElementVNode("div",Pn,[t.createElementVNode("div",An,[t.createElementVNode("span",null,t.toDisplayString(t.unref(F)(e.totals.total,e.totals.currency)),1)]),t.createElementVNode("div",Dn,[t.createTextVNode(t.toDisplayString(a.value)+" ",1),t.createVNode(Jo,{onClick:i[0]||(i[0]=t.withModifiers(e=>r("onAccommodationSummaryClick"),["stop"])),class:"accommodation-summary-trigger",name:"Info",small:""})])]),t.createVNode(Fi,{type:"submit",loading:e.loading},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.buttonLabel??n.complete),1)]),_:1},8,["loading"])])]))}},On={class:"text-sm"},$n={value:"none",selected:""},qn=["value"],Ln={__name:"BflexSpecialRequestCard",props:{modelValue:{type:Object,default:()=>({comment:"",arrivalTime:"none"})},arrivalPolicy:{type:Object,default:()=>({checkInTime:"14:00",checkOutTime:"11:00"})}},emits:["update:modelValue"],setup(e,{emit:o}){const i=e,n={title:window.wp.i18n.__("Special Requests","bookiflex"),comment:window.wp.i18n.__("Comments or special requests","bookiflex"),checkInOutTime:window.wp.i18n.__("Check-in/Check-out time","bookiflex"),checkInTimeFrom:window.wp.i18n.__("Check-in from","bookiflex"),checkOutTimeUntil:window.wp.i18n.__("Check-out until","bookiflex"),arrivalTime:window.wp.i18n.__("Expected arrival time","bookiflex"),noneTime:window.wp.i18n.__("None","bookiflex")},a=o,r=t.reactive({...i.modelValue}),l=function(e,t,o=60){const i=[],[n,a]=e.split(":").map(Number),[r,l]=t.split(":").map(Number),s=new Date;s.setHours(n,a,0,0);const c=new Date;c.setHours(r,l,0,0);const d=new Date(s);for(;d<=c;){const e=d.getHours().toString().padStart(2,"0"),t=d.getMinutes().toString().padStart(2,"0");i.push(`${e}:${t}`),d.setMinutes(d.getMinutes()+o)}return i}("00:00","23:00");return t.watch(r,e=>{a("update:modelValue",e)},{deep:!0}),(o,i)=>(t.openBlock(),t.createBlock(C,{class:"customer-request-block"},{default:t.withCtx(()=>[t.createVNode(kn,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.title),1)]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createVNode(wn,{label:n.comment},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":i[0]||(i[0]=e=>r.comment=e),name:"comment",rows:"3",maxlength:"500"},null,512),[[t.vModelText,r.comment]])]),_:1},8,["label"])]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("dl",On,[t.createElementVNode("dt",null,t.toDisplayString(n.checkInOutTime)+":",1),t.createElementVNode("dd",null,t.toDisplayString(n.checkInTimeFrom)+": "+t.toDisplayString(e.arrivalPolicy.checkInTime)+"; "+t.toDisplayString(n.checkOutTimeUntil)+": "+t.toDisplayString(e.arrivalPolicy.checkOutTime),1)])]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createVNode(wn,{label:n.arrivalTime,style:{width:"50%"}},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("select",{name:"arrivalTime","onUpdate:modelValue":i[1]||(i[1]=e=>r.arrivalTime=e)},[t.createElementVNode("option",$n,t.toDisplayString(n.noneTime),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(l),e=>(t.openBlock(),t.createElementBlock("option",{value:e,key:e},t.toDisplayString(e),9,qn))),128))],512),[[t.vModelSelect,r.arrivalTime]])]),_:1},8,["label"])]),_:1})]),_:1}))}},In={class:"custom-checkbox"},Mn=["required"],Rn={__name:"BflexCheckbox",props:{modelValue:{type:Boolean,required:!0},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:o}){const i=e,n=o,a=t.computed({get:()=>i.modelValue,set:e=>n("update:modelValue",e)});return(o,i)=>(t.openBlock(),t.createElementBlock("label",In,[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=e=>a.value=e),required:e.required},null,8,Mn),[[t.vModelCheckbox,a.value]]),i[1]||(i[1]=t.createElementVNode("span",{class:"custom-checkbox__box"},null,-1)),t.renderSlot(o.$slots,"default")]))}},Hn={class:"agreement-rules-list__rules"},jn={class:"agreement-rules-list__agreements"},Fn={key:0,class:"agreement-rules-list__agreements-item"},Wn=["href"],Yn={key:0,class:"agreement-rules-list__agreements-item"},Xn=["href"],Un={__name:"BflexAccommodationRulesCard",props:{agreements:{type:Array,default:()=>[]},rules:{type:Array,default:()=>[]}},setup(e){const o=e,i={title:window.wp.i18n.__("House Rules & Policies","bookiflex"),agreementSentence:window.wp.i18n.__("I agree to the","bookiflex"),agreementSentenceShort:window.wp.i18n.__("I agree to","bookiflex")},n=t.computed(()=>o.agreements.filter(e=>e.combined)),a=t.computed(()=>o.agreements.length>0||o.rules.length>0),r=t.ref(!1),l=t.ref(o.agreements.map(()=>!1));return(o,s)=>a.value?(t.openBlock(),t.createBlock(C,{key:0,class:"agreement-rules-list"},{default:t.withCtx(()=>[t.createVNode(kn,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.title),1)]),_:1}),e.rules.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("ul",Hn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rules,(e,o)=>(t.openBlock(),t.createElementBlock("li",{key:o},t.toDisplayString(e.text),1))),128))])]),_:1})],64)):t.createCommentVNode("",!0),e.agreements.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("div",jn,[n.value.length>0?(t.openBlock(),t.createElementBlock("div",Fn,[t.createVNode(Rn,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=e=>r.value=e),required:""},{default:t.withCtx(()=>[t.createElementVNode("span",null,[t.createTextVNode(t.toDisplayString(i.agreementSentence)+" ",1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,(e,o)=>(t.openBlock(),t.createElementBlock("a",{class:"agreement-rules-list__combined-agreement",target:"_blank",href:e.url,key:o},t.toDisplayString(e.anchor),9,Wn))),128)),s[1]||(s[1]=t.createTextVNode(".",-1))])]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.agreements,(e,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[!1===e.combined?(t.openBlock(),t.createElementBlock("div",Yn,[t.createVNode(Rn,{modelValue:l.value[o],"onUpdate:modelValue":e=>l.value[o]=e,required:e.required},{default:t.withCtx(()=>[t.createElementVNode("span",null,[t.createTextVNode(t.toDisplayString(i.agreementSentenceShort)+" ",1),t.createElementVNode("a",{target:"_blank",href:e.url},t.toDisplayString(e.anchor),9,Xn)])]),_:2},1032,["modelValue","onUpdate:modelValue","required"])])):t.createCommentVNode("",!0)],64))),128))])]),_:1})],64)):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0)}},Gn={class:"icon-text"},Zn={class:"icon-text__icon"},Jn={class:"icon-text__text"},Qn={__name:"BflexIconText",props:{icon:{type:String,required:!0}},setup:e=>(o,i)=>(t.openBlock(),t.createElementBlock("div",Gn,[t.createElementVNode("span",Zn,[t.createVNode(Jo,{name:e.icon},null,8,["name"])]),t.createElementVNode("span",Jn,[t.renderSlot(o.$slots,"default")])]))},Kn={__name:"BflexYourStaySkeleton",setup:e=>(e,o)=>(t.openBlock(),t.createBlock(C,{class:"your-stay-skeleton"},{default:t.withCtx(()=>[o[4]||(o[4]=t.createElementVNode("div",{class:"title-skeleton"},null,-1)),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[...o[0]||(o[0]=[t.createElementVNode("div",{class:"stay-info-skeleton"},[t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",{class:"line line-short"})],-1)])]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[...o[1]||(o[1]=[t.createElementVNode("div",{class:"item-skeleton"},[t.createElementVNode("div",{class:"item-name"}),t.createElementVNode("div",{class:"item-price"})],-1)])]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[...o[2]||(o[2]=[t.createElementVNode("div",{class:"total-skeleton"},[t.createElementVNode("div",{class:"total-label"}),t.createElementVNode("div",{class:"total-value"})],-1)])]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[...o[3]||(o[3]=[t.createElementVNode("div",{class:"payment-rules-skeleton"},[t.createElementVNode("div",{class:"rule"}),t.createElementVNode("div",{class:"rule"})],-1)])]),_:1})]),_:1}))},ea={class:"text-sm stay-information"},ta={style:{display:"flex","align-items":"center","column-gap":"0.5rem"}},oa={class:"accommodation-list__item"},ia={key:0,style:{"font-size":"0.9em",opacity:"0.7"}},na={class:"text-sm",style:{"line-height":"1.25","font-weight":"lighter"}},aa={key:0,style:{opacity:"0.7"}},ra={class:"payment-type"},la={class:"payment-type__label"},sa={class:"payment-type__variants"},ca=["for"],da=["name","id","value","checked","onChange"],pa={class:"accommodation-list__total"},ua={class:"accommodation-list__payment-rules"},ma={class:"highlighted"},ha={class:"highlighted"},fa={__name:"BflexEditableAccommodationCard",props:{reservation:{type:Object,required:!0},payment:{type:Object,default:()=>({prepayment:"0.00",onArrival:"0.00"})},totals:{type:Object,default:()=>({currency:"EUR",subtotal:0,total:0,summary:{base:0,taxes:0,charges:0,discounts:0}})},locale:{type:String},loading:{type:Boolean,default:!1}},emits:["changePaymentType","deleteAccommodation"],setup(e,{emit:o}){const i=e,n=t.computed(()=>i.locale||document.documentElement.lang||navigator.language),a={title:window.wp.i18n.__("Your Stay","bookiflex"),delete:window.wp.i18n.__("Change dates","bookiflex"),willPay:window.wp.i18n.__("You will pay","bookiflex"),totalAmount:window.wp.i18n.__("Total Amount","bookiflex"),prepaymentAmount:window.wp.i18n.__("Prepayment Amount","bookiflex"),onArrivalAmount:window.wp.i18n.__("On Arrival Amount","bookiflex")},r=o,l=t.computed(()=>{const e=i.reservation.details.accommodation.adults,t=i.reservation.details.accommodation.children??[],o=window.wp.i18n.sprintf(window.wp.i18n._n("%d Adult","%d Adults",e,"bookiflex"),e);if(0===t.length)return o;return`${o}, ${window.wp.i18n.sprintf(window.wp.i18n._n("%d Child","%d Children",t.length,"bookiflex"),t.length)} (${t.join(", ")})`}),s=()=>{r("deleteAccommodation",i.reservation.hash)},c=t.ref({});return t.onMounted(()=>{c.value=i.reservation.details.accommodation.paymentType.id}),(o,i)=>e.loading?(t.openBlock(),t.createBlock(Kn,{key:0})):(t.openBlock(),t.createBlock(C,{key:1,class:"accommodation-list"},{default:t.withCtx(()=>[t.createVNode(kn,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("dl",ea,[t.createElementVNode("dt",ta,[t.createVNode(Qn,{icon:"DateRange"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref($)(e.reservation.details.accommodation.checkInDate,e.reservation.details.accommodation.checkOutDate,n.value)),1)]),_:1}),t.createElementVNode("div",{onClick:s,class:"accommodation-list__item-delete text-sm cursor-pointer"}," ("+t.toDisplayString(a.delete)+") ",1)]),t.createElementVNode("dd",null,[t.createVNode(Qn,{icon:"Persons"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(l.value),1)]),_:1})])])]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("dl",oa,[t.createElementVNode("dt",null,[t.createElementVNode("h3",null,[t.createTextVNode(t.toDisplayString(e.reservation.name)+" ",1),e.reservation.quantity>1?(t.openBlock(),t.createElementBlock("span",ia,"x"+t.toDisplayString(e.reservation.quantity),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",na,[t.createVNode(po,{class:"inline"},{popper:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.reservation.details.accommodation.cancellationPolicy.rules,(e,o)=>(t.openBlock(),t.createElementBlock("p",{key:o},t.toDisplayString(e),1))),128))]),default:t.withCtx(()=>[t.createElementVNode("abbr",null,t.toDisplayString(e.reservation.details.accommodation.cancellationPolicy.name||""),1)]),_:1})])]),t.createElementVNode("dd",null,[e.reservation.quantity>1?(t.openBlock(),t.createElementBlock("span",aa,t.toDisplayString(e.reservation.quantity)+" x",1)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(t.unref(F)(e.reservation.unitPrice,e.totals.currency))+" ",1),e.reservation.details.accommodation.dailyBreakdown&&e.reservation.details.accommodation.dailyBreakdown.length?(t.openBlock(),t.createBlock(pi,{key:1,"daily-breakdown":e.reservation.details.accommodation.dailyBreakdown,total:e.reservation.unitPrice*e.reservation.quantity,currency:e.totals.currency,"check-in-date":e.reservation.details.accommodation.checkInDate,"check-out-date":e.reservation.details.accommodation.checkOutDate,locale:n.value},null,8,["daily-breakdown","total","currency","check-in-date","check-out-date","locale"])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",ra,[t.createElementVNode("div",la,t.toDisplayString(a.willPay)+":",1),t.createElementVNode("div",sa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.reservation.details.availablePaymentTypes,(o,i)=>(t.openBlock(),t.createElementBlock("label",{key:o.id,for:`payment-type-${i}-${e.reservation.details.accommodation.ratePlan.id}-${o.id}`},[t.createElementVNode("input",{type:"radio",name:`payment-type-${i}`,id:`payment-type-${i}-${e.reservation.details.accommodation.ratePlan.id}-${o.id}`,value:e.reservation.details.accommodation.paymentType.id,checked:+e.reservation.details.accommodation.paymentType.id===+o.id,onChange:()=>(e=>{r("changePaymentType",e)})(o.id)},null,40,da),t.createTextVNode(" "+t.toDisplayString(o.name),1)],8,ca))),128))])])]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("dl",pa,[t.createElementVNode("dt",null,t.toDisplayString(a.totalAmount)+":",1),t.createElementVNode("dd",null,[t.createElementVNode("strong",null,t.toDisplayString(t.unref(F)(e.totals.total,e.totals.currency)),1)])])]),_:1}),t.createVNode(V),t.renderSlot(o.$slots,"default",{},()=>[t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("dl",ua,[t.createElementVNode("dt",ma,t.toDisplayString(a.prepaymentAmount)+":",1),t.createElementVNode("dd",ha,t.toDisplayString(t.unref(F)(e.payment.prepayment,e.totals.currency)),1),t.createElementVNode("dt",null,t.toDisplayString(a.onArrivalAmount)+":",1),t.createElementVNode("dd",null,t.toDisplayString(t.unref(F)(e.payment.onArrival||0,e.totals.currency)),1)])]),_:1})])]),_:3}))}},ga={__name:"ConfirmationPage",emits:["released"],setup(e,{emit:o}){const i=o,n=t.inject("settings"),{setError:a}=t.inject("globalError"),r=t.ref({customerInfo:{firstName:"",lastName:"",email:"",phone:""},specialRequest:{comment:"",arrivalTime:"14:00"},agreementList:[]}),l=t.ref(null),s=t.ref(!1),c=t.ref({}),{cart:d,loading:p,isEmpty:u,firstItem:m,lengthOfStay:h,accommodationUnits:v,loadCart:y,removeFromCart:b,changePaymentType:w,confirmCart:_}=cn();t.onMounted(async()=>{try{await y()}catch(e){a(e)}});const k=async e=>{try{await b(e),u.value&&i("released",{action:f})}catch(t){a(t)}},S=async e=>{try{d.value?.items?.[0]&&await w(d.value.items[0].hash,e)}catch(t){a(t)}},N=async()=>{if(!s.value){if(!(()=>{const e={};return r.value.customerInfo.firstName||(e.firstName=!0),r.value.customerInfo.lastName||(e.lastName=!0),r.value.customerInfo.email||(e.email=!0),c.value=e,0===Object.keys(e).length})()){await t.nextTick();return void document.querySelectorAll(".field-error").forEach(e=>{e.classList.add("error-shake"),setTimeout(()=>e.classList.remove("error-shake"),500)})}if(l.value.reportValidity()){s.value=!0;try{const e=await _(r.value.customerInfo,r.value.specialRequest.comment,r.value.specialRequest.arrivalTime);e?.reservations&&i("released",{action:g,result:e})}catch(e){a(e),s.value=!1}}}};return(e,o)=>(t.openBlock(),t.createElementBlock("form",{onSubmit:t.withModifiers(N,["prevent"]),ref_key:"confirmForm",ref:l},[t.createVNode(x,null,{default:t.withCtx(()=>[t.createVNode(Cn,{modelValue:r.value.customerInfo,"onUpdate:modelValue":o[0]||(o[0]=e=>r.value.customerInfo=e)},null,8,["modelValue"]),t.createVNode(t.Transition,{name:"fade",mode:"out-in"},{default:t.withCtx(()=>[t.unref(d)&&!t.unref(u)?(t.openBlock(),t.createBlock(fa,{key:"accommodation-card",loading:t.unref(p),locale:t.unref(n).widget.locale,payment:t.unref(d).payment,totals:t.unref(d).totals,reservation:t.unref(m),onChangePaymentType:S,onDeleteAccommodation:k},null,8,["loading","locale","payment","totals","reservation"])):t.unref(p)?(t.openBlock(),t.createBlock(Kn,{key:"accommodation-card-skeleton"})):t.createCommentVNode("",!0)]),_:1}),t.createVNode(Ln,{modelValue:r.value.specialRequest,"onUpdate:modelValue":o[1]||(o[1]=e=>r.value.specialRequest=e)},null,8,["modelValue"]),t.createVNode(Un,{agreements:t.unref(n).hotelRules.agreements,rules:t.unref(n).hotelRules.rules},null,8,["agreements","rules"]),t.createVNode(t.Transition,{name:"fade",mode:"out-in"},{default:t.withCtx(()=>[t.unref(d)?(t.openBlock(),t.createBlock(zn,{key:"summary-panel",loading:t.unref(p),totals:t.unref(d).totals,"accommodation-units":t.unref(v),"length-of-stay":t.unref(h),onSubmit:N},null,8,["loading","totals","accommodation-units","length-of-stay"])):t.createCommentVNode("",!0)]),_:1})]),_:1})],544))}},va={class:"hotel-information"},ya=["href"],ba={href:"#"},wa={__name:"BflexHotelInformationCard",props:{hotelInfo:{type:Object}},setup(e){const o={title:window.wp.i18n.__("Contact Information","bookiflex")};return(i,n)=>(t.openBlock(),t.createBlock(C,null,{default:t.withCtx(()=>[t.createVNode(kn,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.title),1)]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("div",va,[t.createVNode(Qn,{icon:"Hotel"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.hotelInfo.name),1)]),_:1}),t.createVNode(Qn,{icon:"Home"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.hotelInfo.address.address),1)]),_:1}),t.createVNode(Qn,{icon:"Phone"},{default:t.withCtx(()=>[t.createElementVNode("a",{href:`tel:${e.hotelInfo.phone}`},t.toDisplayString(e.hotelInfo.phone),9,ya)]),_:1}),t.createVNode(Qn,{icon:"Email"},{default:t.withCtx(()=>[t.createElementVNode("a",ba,t.toDisplayString(e.hotelInfo.email),1)]),_:1})])]),_:1})]),_:1}))}},xa={class:"summary-block"},_a={class:"summary-block__content"},ka={class:"summary-block__content-info"},Sa={class:"summary-block__content-info__price"},Na={class:"summary-block__content-info__text"},Ea={__name:"BflexPaymentPanel",props:{prepayment:{type:String,default:"0"},currency:{type:String,default:"EUR"}},setup(e){const o={prepayment:window.wp.i18n.__("Prepayment required","bookiflex")};return(i,n)=>(t.openBlock(),t.createElementBlock("div",xa,[t.createElementVNode("div",_a,[t.createElementVNode("div",ka,[t.createElementVNode("div",Sa,[t.createElementVNode("span",null,t.toDisplayString(e.prepayment),1),t.createTextVNode(" "+t.toDisplayString(e.currency),1)]),t.createElementVNode("div",Na,[t.createTextVNode(t.toDisplayString(o.prepayment)+" ",1),t.createVNode(Jo,{class:"accommodation-summary-trigger",name:"Info",small:""})])]),t.renderSlot(i.$slots,"default")])]))}},Ta={class:"payment-timer-container"},Ca={key:0,class:"timer-wrapper"},Ba={class:"timer-circle"},Va={class:"timer-svg",width:"120",height:"120"},Pa=["stroke-dashoffset"],Aa={class:"timer-text"},Da=["disabled"],za={key:1,class:"no-token-message"},Oa={__name:"BflexRedirectTimer",props:{captureToken:{type:String,required:!1,default:""},timeout:{type:Number,required:!1,default:60},blank:{type:Boolean,required:!1,default:!1}},setup(e){const o=e,i={goToPay:window.wp.i18n.__("Proceed to Payment","bookiflex"),waitingLink:window.wp.i18n.__("Waiting for payment link...","bookiflex"),doesntOpen:window.wp.i18n.__("Doesn't open?","bookiflex"),windowBlocked:window.wp.i18n.__("Pop-up blocked. Please allow pop-ups and try again.","bookiflex")},n=t.ref(o.timeout),a=t.ref(null),r=2*Math.PI*50,l=t.ref(null),s=t.computed(()=>{const e=n.value/o.timeout;return r*(1-e)}),c=e=>{const t=e%60;return`${Math.floor(e/60).toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`},d=()=>{if(o.captureToken)if(u(),o.blank){window.open(o.captureToken,"_blank")||(l.value.innerHTML=i.doesntOpen,alert(i.windowBlocked))}else window.location.href=o.captureToken},p=()=>{o.captureToken&&(u(),n.value=o.timeout,a.value=setInterval(()=>{n.value--,n.value<=0&&l.value.click()},1e3))},u=()=>{a.value&&(clearInterval(a.value),a.value=null)};return t.watch(()=>o.captureToken,e=>{e?p():u()},{immediate:!0}),t.watch(()=>o.timeout,e=>{n.value=e,o.captureToken&&p()}),t.onMounted(()=>{o.captureToken&&p()}),t.onUnmounted(()=>{u()}),(o,a)=>(t.openBlock(),t.createElementBlock("div",Ta,[e.captureToken?(t.openBlock(),t.createElementBlock("div",Ca,[t.createElementVNode("div",Ba,[(t.openBlock(),t.createElementBlock("svg",Va,[a[0]||(a[0]=t.createElementVNode("circle",{cx:"60",cy:"60",r:"50",fill:"none",stroke:"#e5e7eb","stroke-width":"4"},null,-1)),t.createElementVNode("circle",{cx:"60",cy:"60",r:"50",fill:"none",stroke:"#ff0000","stroke-width":"4","stroke-linecap":"round","stroke-dasharray":r,"stroke-dashoffset":s.value,transform:"rotate(-90 60 60)",class:"timer-progress"},null,8,Pa)])),t.createElementVNode("div",Aa,t.toDisplayString(c(n.value)),1)]),t.createElementVNode("button",{ref_key:"manualOpenBtn",ref:l,onClick:d,class:"button proceed-button",disabled:!e.captureToken},t.toDisplayString(i.goToPay),9,Da)])):(t.openBlock(),t.createElementBlock("div",za,[t.createElementVNode("p",null,t.toDisplayString(i.waitingLink),1)]))]))}};const $a=new class{async loadReservation(e,t=!0){const o=t?atob(e):e,i=await(async e=>{const t=await p()+s;try{const o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await d(o)}catch(o){throw console.error("Failed to load reservation:",o),o}})({sid:o});return this.transformReservation(o,i.data)}async cancelReservation(e,t,o=!0){const i=o?atob(e):e;return await(async e=>{const t=await p()+c;try{const o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await d(o)}catch(o){throw console.error("Failed to load reservation:",o),o}})({sid:i,code:t})}transformReservation(e,t){const o=t.reservations.find(t=>t.sid===e);return{...o,totals:t.totals?t.totals:{},hasPenalties:o?.penalties?.total?.amount>0,hasSpecialRequest:!!o?.specialRequest}}};function qa(){const e=t.ref(null),{loading:o,error:i,withLoading:n}=ln(),a=t.computed(()=>e.value?e.value.status.toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()):"");return{reservation:e,loading:o,error:i,statusText:a,loadReservation:async t=>t?(e.value=await n(()=>$a.loadReservation(t)),e.value):null,cancelReservation:async(e,t)=>await n(()=>$a.cancelReservation(e,t))}}const La={class:"text-sm stay-information"},Ia={class:"accommodation-info__item"},Ma={key:0,class:"text-sm",style:{"line-height":"1.25","font-weight":"lighter"}},Ra={key:0,class:"payment-info"},Ha={class:"payment-info__label"},ja={class:"payment-info__value"},Fa={class:"accommodation-info__total"},Wa={class:"accommodation-info__payment-rules"},Ya={class:"highlighted"},Xa={class:"highlighted"},Ua={__name:"BflexReadOnlyAccommodationCard",props:{reservation:{type:Object,required:!0},locale:{type:String},loading:{type:Boolean,default:!1},showCancellationPolicy:{type:Boolean,default:!0}},setup(e){const o=e,i=t.computed(()=>o.locale||document.documentElement.lang||navigator.language),n={title:window.wp.i18n.__("Your Stay","bookiflex"),paymentMethod:window.wp.i18n.__("Payment Method","bookiflex"),totalAmount:window.wp.i18n.__("Total Amount","bookiflex"),prepaymentAmount:window.wp.i18n.__("Prepayment Amount","bookiflex"),onArrivalAmount:window.wp.i18n.__("On Arrival Amount","bookiflex")},a=t.computed(()=>{const e=o.reservation.stay.guests.adults,t=o.reservation.stay.guests.children??[],i=window.wp.i18n.sprintf(window.wp.i18n._n("%d Adult","%d Adults",e,"bookiflex"),e);if(0===t.length)return i;return`${i}, ${window.wp.i18n.sprintf(window.wp.i18n._n("%d Child","%d Children",t.length,"bookiflex"),t.length)} (${t.join(", ")})`});return(o,r)=>e.loading?(t.openBlock(),t.createBlock(Kn,{key:0})):(t.openBlock(),t.createBlock(C,{key:1,class:"accommodation-info"},{default:t.withCtx(()=>[t.createVNode(kn,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.title),1)]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("dl",La,[t.createElementVNode("dt",null,[t.createVNode(Qn,{icon:"DateRange"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref($)(e.reservation.stay.checkInDate,e.reservation.stay.checkOutDate,i.value)),1)]),_:1})]),t.createElementVNode("dd",null,[t.createVNode(Qn,{icon:"Persons"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.value),1)]),_:1})])])]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("dl",Ia,[t.createElementVNode("dt",null,[t.createElementVNode("h3",null,t.toDisplayString(e.reservation.accommodation.type.name),1),e.showCancellationPolicy&&e.reservation.cancellation?(t.openBlock(),t.createElementBlock("div",Ma,[t.createVNode(po,{class:"inline"},{popper:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.reservation.cancellation.policy.consequences,(e,o)=>(t.openBlock(),t.createElementBlock("p",{key:o},t.toDisplayString(e),1))),128))]),default:t.withCtx(()=>[t.createElementVNode("abbr",null,t.toDisplayString(e.reservation.cancellation.policy.name||""),1)]),_:1})])):t.createCommentVNode("",!0)]),t.createElementVNode("dd",null,[t.createTextVNode(t.toDisplayString(t.unref(F)(e.reservation.totalAmount,e.reservation.currency))+" ",1),e.reservation.accommodation?.dailyBreakdown&&e.reservation.accommodation.dailyBreakdown.length?(t.openBlock(),t.createBlock(pi,{key:0,"daily-breakdown":e.reservation.accommodation.dailyBreakdown,total:e.reservation.totalAmount,currency:e.reservation.currency,"check-in-date":e.reservation.stay.checkInDate,"check-out-date":e.reservation.stay.checkOutDate,locale:i.value},null,8,["daily-breakdown","total","currency","check-in-date","check-out-date","locale"])):t.createCommentVNode("",!0)])]),e.reservation.paymentType?(t.openBlock(),t.createElementBlock("div",Ra,[t.createElementVNode("span",Ha,t.toDisplayString(n.paymentMethod)+":",1),t.createElementVNode("span",ja,t.toDisplayString(e.reservation.paymentType.name),1)])):t.createCommentVNode("",!0)]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("dl",Fa,[t.createElementVNode("dt",null,t.toDisplayString(n.totalAmount)+":",1),t.createElementVNode("dd",null,[t.createElementVNode("strong",null,t.toDisplayString(t.unref(F)(e.reservation.totals.total,e.reservation.totals.currency)),1)])])]),_:1}),t.createVNode(V),t.renderSlot(o.$slots,"default",{},()=>[t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("dl",Wa,[t.createElementVNode("dt",Ya,t.toDisplayString(n.prepaymentAmount)+":",1),t.createElementVNode("dd",Xa,t.toDisplayString(t.unref(F)(e.reservation.payment.amounts.prepayment,e.reservation.currency)),1),t.createElementVNode("dt",null,t.toDisplayString(n.onArrivalAmount)+":",1),t.createElementVNode("dd",null,[t.createElementVNode("span",null,t.toDisplayString(t.unref(F)(e.reservation.payment.amounts.onArrival||0,e.reservation.currency)),1)])])]),_:1})])]),_:3}))}},Ga={class:"reservation-result"},Za={class:"reservation-result__title"},Ja={class:"reservation-result__description"},Qa={__name:"ResultPage",props:{sid:{type:String,required:!0,default:""}},setup(e){const o=e,i={title:window.wp.i18n.__("Reservation Completed","bookiflex"),"description.waitingPayment":window.wp.i18n.__("Please make a prepayment to confirm your booking.","bookiflex"),"description.waitingConfirmation":window.wp.i18n.__("We will try to confirm your booking as soon as possible.","bookiflex"),"description.confirmed":window.wp.i18n.__("Your booking has been successfully confirmed.","bookiflex"),"description.cancelled":window.wp.i18n.__("Your booking has been cancelled.","bookiflex"),"description.overdue":window.wp.i18n.__("The payment time for your booking has expired. It will be cancelled soon.","bookiflex"),whatIsNext:window.wp.i18n.__("What happens next?","bookiflex"),
/* translators: %1$s: hold expiry date/time, %2$s: hours remaining until expiry */
"nextStep.waitingPayment":window.wp.i18n.__("Pay now to secure your reservation. It will be held until %1$s (property local time), about %2$sh from now, otherwise it may be cancelled automatically.\n","bookiflex"),"nextStep.waitingConfirmation":window.wp.i18n.__("We're checking availability and will notify you once your booking is confirmed. Please wait — this usually takes no more than 24 hours.","bookiflex"),"nextStep.confirmed":window.wp.i18n.__("Thank you for your reservation! You'll receive a confirmation email with all details shortly. If you have any questions, feel free to contact us.","bookiflex"),"nextStep.cancelled":window.wp.i18n.__("Unfortunately, this booking is no longer valid. If you still wish to travel, please make a new reservation.","bookiflex"),"nextStep.overdue":window.wp.i18n.__("If you still want to keep your booking, please contact us as soon as possible. Otherwise, it will be automatically cancelled.","bookiflex"),specialRequest:window.wp.i18n.__("Special Requests","bookiflex")},n=t.computed(()=>i[`description.${d.value}`]||d.value),a=t.computed(()=>{const e=i[`nextStep.${d.value}`];return e?"waitingPayment"===d.value&&s.value?.payment?.status?.waitingUntilFormatted?window.wp.i18n.sprintf(e,s.value.payment.status?.waitingUntilFormatted,s.value.payment.status?.timeForConfirmation):e:d.value}),r=t.inject("settings"),{setError:l}=t.inject("globalError"),{reservation:s,loading:c,statusText:d,loadReservation:p}=qa(),u=t.computed(()=>[]),m=async()=>{if(o.sid)try{await p(o.sid)}catch(e){console.error(e),l(e)}};t.watch(()=>o.sid,m),t.onMounted(m);const h=()=>{u.value.forEach(e=>{window.open(e,"_blank")})};return(e,o)=>(t.openBlock(),t.createBlock(x,null,{default:t.withCtx(()=>[t.unref(c)?(t.openBlock(),t.createBlock(O,{key:0})):t.unref(s)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("section",Ga,[t.createElementVNode("div",Za,t.toDisplayString(i.title),1),t.createElementVNode("div",Ja,t.toDisplayString(n.value),1)]),t.createVNode(Ua,{reservation:t.unref(s),locale:t.unref(r).widget.locale},null,8,["reservation","locale"]),t.createVNode(C,{class:"information-block--attention"},{default:t.withCtx(()=>[t.createVNode(kn,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.whatIsNext),1)]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.value),1)]),_:1}),t.unref(s).payment?.method?.captureToken?(t.openBlock(),t.createBlock(Oa,{key:0,"capture-token":t.unref(s).payment?.method?.captureToken,timeout:30},null,8,["capture-token"])):t.createCommentVNode("",!0)]),_:1}),t.unref(s).reservation?.specialRequest?(t.openBlock(),t.createBlock(C,{key:0},{default:t.withCtx(()=>[t.createVNode(kn,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.specialRequest),1)]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(s).reservation.specialRequest),1)]),_:1})]),_:1})):t.createCommentVNode("",!0),t.createVNode(wa,{"hotel-info":t.unref(r).hotelInfo},null,8,["hotel-info"]),u.value.length?(t.openBlock(),t.createBlock(Ea,{key:1,prepayment:t.unref(s).payment?.prepayment,currency:t.unref(s).currency,onClick:h},null,8,["prepayment","currency"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]),_:1}))}},Ka={class:"reservation-result"},er={class:"reservation-result__title"},tr={class:"reservation-result__description"},or={class:"accommodation-list__payment-rules"},ir={class:"highlighted"},nr={class:"highlighted"},ar={style:{display:"flex","flex-direction":"row","justify-content":"end","column-gap":"0.5rem",padding:"1rem","align-items":"center"}},rr=["value","disabled"],lr={class:"agreement-rules-list__rules"},sr={__name:"CancellationPage",props:{sid:{type:String,required:!0,default:""}},setup(e){const o=e,i={title:window.wp.i18n.__("Cancel Reservation","bookiflex"),description:window.wp.i18n.__("Enter the cancellation code from your confirmation email","bookiflex"),paid:window.wp.i18n.__("Amount Paid","bookiflex"),penalty:window.wp.i18n.__("Cancellation Penalty","bookiflex"),refund:window.wp.i18n.__("Refund Amount","bookiflex"),cancellationRulesTitle:window.wp.i18n.__("Cancellation Rules","bookiflex"),codeHelp:window.wp.i18n.__("Code from email:","bookiflex"),codeLabel:window.wp.i18n.__("Cancellation Code","bookiflex"),action:window.wp.i18n.__("Cancel Reservation","bookiflex"),rules:window.wp.i18n.__("Cancellation Rules","bookiflex"),"result.success":window.wp.i18n.__("Reservation cancelled successfully","bookiflex"),"result.error":window.wp.i18n.__("Error cancelling reservation","bookiflex")},n=t.inject("settings"),{setError:a}=t.inject("globalError"),r=t.ref(""),l=t.ref(!1),{reservation:s,loading:c,loadReservation:d,cancelReservation:p}=qa(),u=async()=>{if(o.sid)try{await d(o.sid)}catch(e){a(e)}},m=t.computed(()=>("CANCELLED"===s.value.status?s.value.cancellation.penalties:s.value.cancellation.estimatedPenalties).reduce((e,t)=>e+=t.amount,0)),h=async()=>{l.value=!0;try{(await p(o.sid,r.value)).successful?(alert(i["result.success"]),window.location.replace(window.location.origin)):(alert(i["result.error"]),r.value="")}catch(e){a(e),alert(i["result.error"])}finally{l.value=!1}};return t.watch(()=>o.sid,u),t.onMounted(u),(e,o)=>(t.openBlock(),t.createBlock(x,null,{default:t.withCtx(()=>[t.unref(c)?(t.openBlock(),t.createBlock(O,{key:0})):t.unref(s)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("section",Ka,[t.createElementVNode("div",er,t.toDisplayString(i.title),1),t.createElementVNode("div",tr,t.toDisplayString(i.description),1)]),t.createVNode(Ua,{reservation:t.unref(s),locale:t.unref(n).widget.locale},{default:t.withCtx(()=>[t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("dl",or,[t.createElementVNode("dt",null,t.toDisplayString(i.paid)+":",1),t.createElementVNode("dd",null,t.toDisplayString(t.unref(F)(t.unref(s).payment.amounts.paid,t.unref(s).currency)),1),t.createElementVNode("dt",ir,t.toDisplayString(i.penalty)+":",1),t.createElementVNode("dd",nr,t.toDisplayString(t.unref(F)(m.value,t.unref(s).currency)),1)])]),_:1}),t.createVNode(V),t.createElementVNode("div",ar,[t.createElementVNode("div",null,t.toDisplayString(i.codeHelp),1),t.createVNode(wn,{label:i.codeLabel,"hide-hint":""},{default:t.withCtx(()=>[t.createElementVNode("input",{name:"cancellationCode",value:r.value,onInput:o[0]||(o[0]=t.withModifiers(e=>r.value=e.currentTarget.value,["stop"])),disabled:l.value},null,40,rr)]),_:1},8,["label"]),t.createVNode(Fi,{onClick:h,disabled:!r.value||l.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.action),1)]),_:1},8,["disabled"])])]),_:1},8,["reservation","locale"]),t.createVNode(C,{class:"information-block--attention"},{default:t.withCtx(()=>[t.createVNode(kn,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.rules),1)]),_:1}),t.createVNode(V),t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("ul",lr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s).cancellation.policy.consequences,(e,o)=>(t.openBlock(),t.createElementBlock("li",{key:o},t.toDisplayString(e),1))),128))])]),_:1})]),_:1}),t.createVNode(wa,{"hotel-info":t.unref(n).hotelInfo},null,8,["hotel-info"])],64)):t.createCommentVNode("",!0)]),_:1}))}},cr={class:"search-step-skeleton"},dr={class:"form"};const pr=b({},[["render",function(e,o){return t.openBlock(),t.createElementBlock("div",cr,[o[1]||(o[1]=t.createElementVNode("div",{class:"intro-skeleton"},[t.createElementVNode("div",{class:"title-skeleton"}),t.createElementVNode("div",{class:"subtitle-skeleton"})],-1)),t.createElementVNode("div",dr,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(3,e=>t.createElementVNode("div",{class:"field",key:e})),64)),o[0]||(o[0]=t.createElementVNode("div",{class:"button"},null,-1))])])}]]),ur=[m,h,g,v];const mr={id:"bflex-booking-widget"},hr={class:"booking-widget"},fr={class:"booking-widget__content"},gr={__name:"BookingWidget",props:{start:{type:String,default:""},end:{type:String,default:""},promoCode:{type:String,default:null},adults:{type:Number,default:null},childrenAges:{type:Array,default:()=>[]},accommodationTypes:{type:Array,default:()=>[]},ratePlans:{type:Array,default:()=>[]},useUrlParams:{type:Boolean,default:!1},syncUrl:{type:Boolean,default:!1}},setup(e){const i={chooseAccommodation:window.wp.i18n.__("Choose accommodation and rate","bookiflex"),confirmReservation:window.wp.i18n.__("Confirm your reservation","bookiflex")},n={[h]:i.chooseAccommodation,[g]:i.confirmReservation},a=e,r=t.ref({hotelRules:{rules:[],agreements:[]},policies:{arrivalPolicy:{checkInTime:"14:00",checkOutTime:"12:00"}}});t.provide("settings",r);const{urlParams:l,updateUrl:s}=function(e={}){const{enabled:o=!1}=e,i=t.ref(null),n=()=>{if(!o)return null;const e=new URLSearchParams(window.location.search),t={},i=e.get("start"),n=e.get("end"),a=e.get("promoCode"),r=e.get("accommodationTypes"),l=e.get("ratePlans"),s=e.get("adults");i&&(t.start=i),n&&(t.end=n),a&&(t.promoCode=a),r&&(t.accommodationTypes=r),l&&(t.ratePlans=l);const c=null!==s?parseInt(s,10):NaN;Number.isNaN(c)||(t.adults=c);const d=(e.get("childrenAges")??"").split(",").map(e=>parseInt(e,10)).filter(e=>!Number.isNaN(e));return d.length>0&&(t.childrenAges=d),Object.keys(t).length>0?t:null};return o&&(i.value=n()),{urlParams:i,readUrlParams:n,updateUrl:e=>{if(!o)return;const t=new URL(window.location);if(e.start?t.searchParams.set("start",e.start):t.searchParams.delete("start"),e.end?t.searchParams.set("end",e.end):t.searchParams.delete("end"),e.promoCode?t.searchParams.set("promoCode",e.promoCode):t.searchParams.delete("promoCode"),e.accommodationTypes?t.searchParams.set("accommodationTypes",e.accommodationTypes):t.searchParams.delete("accommodationTypes"),e.ratePlans?t.searchParams.set("ratePlans",e.ratePlans):t.searchParams.delete("ratePlans"),t.searchParams.delete("childrenAges"),null!=e.adults){t.searchParams.set("adults",String(e.adults));const o=e.childrenAges??[];o.length>0&&t.searchParams.set("childrenAges",o.join(","))}else t.searchParams.delete("adults");window.history.replaceState({},"",t)},clearUrlParams:()=>{if(!o)return;const e=new URL(window.location);e.searchParams.delete("start"),e.searchParams.delete("end"),e.searchParams.delete("promoCode"),e.searchParams.delete("accommodationTypes"),e.searchParams.delete("ratePlans"),e.searchParams.delete("adults"),e.searchParams.delete("childrenAges"),window.history.replaceState({},"",e)}}}({enabled:a.useUrlParams}),c=e=>Array.isArray(e)?e:[],u=t.ref({start:l.value?.start||a.start,end:l.value?.end||a.end,promoCode:l.value?.promoCode||a.promoCode,adults:l.value?.adults??a.adults??null,childrenAges:c(l.value?.childrenAges??a.childrenAges)}),b=t.computed(()=>({start:u.value.start,end:u.value.end})),w=t.computed(()=>!u.value.start||!u.value.end),{activePage:_,reservationSid:k,nextPage:S,startCancellation:N,navigateTo:T}=function(e=ur){const o=t.ref(null),i=t.ref(null),n=e=>{o.value=e,window.dispatchEvent(new CustomEvent("bflex:booking-widget:action",{detail:{action:e}}))};return{activePage:o,reservationSid:i,nextPage:(t,o=null)=>{if(!t)return void n(h);if(t===y)return void n(y);if(t===f)return void n(null);t===g&&o?.reservations&&(i.value=o.reservations[0]);const a=e.indexOf(t);a>=0&&a<e.length-1&&n(e[a+1])},startCancellation:e=>{i.value=e,n(y)},navigateTo:n}}(),{loading:C,withLoading:B}=ln(!1);t.computed(()=>n[_.value]||"");const V=t.ref(!1),P=t.ref(null),A=t.ref(null),{setError:D}=t.inject("globalError"),z=e=>{P.value=e.offsetHeight,A.value&&(A.value.style.height=`${P.value}px`)},$=e=>{const o=e.offsetHeight;t.nextTick(()=>{A.value&&(A.value.style.height=`${o}px`)})},q=()=>{A.value&&(A.value.style.height=""),V.value=!1},L=async(e,o=null)=>{V.value=!0,await t.nextTick(),e===f?S(null):e===g?S(e,o):S(e)};t.watch(()=>({start:a.start,end:a.end,promoCode:a.promoCode,adults:a.adults,childrenAges:a.childrenAges}),e=>{u.value={...e,childrenAges:c(e.childrenAges)}}),t.watch(u,(e,o)=>{if(!e.start||!e.end)return;(!o||!o.start||!o.end||o.start!==e.start||o.end!==e.end||o.promoCode!==e.promoCode||o.adults!==e.adults||JSON.stringify(o.childrenAges)!==JSON.stringify(e.childrenAges))&&(window.dispatchEvent(new CustomEvent("bflex:booking-widget:changed",{detail:t.toRaw(u.value)})),a.syncUrl&&s(e))},{immediate:!0,deep:!0});const I=e=>{const{start:t,end:o,promoCode:i,adults:n=null,childrenAges:a=[]}=e;u.value={start:t,end:o,promoCode:i,adults:n,childrenAges:c(a)},_.value===m&&L(m)},M=e=>{I(e.detail),e.stopPropagation()},R=e=>{u.value={...u.value,start:e.checkInDate,end:e.checkOutDate}},H=({action:e,result:t})=>{L(e,t)};return t.onMounted(async()=>{window.dispatchEvent(new CustomEvent("bflex:booking-widget:ready")),window.addEventListener("bflex:search-bar:search",M);const e=new URLSearchParams(window.location.search),t=e.has("cancel")?e.get("cancel"):null;await B(async()=>{try{const{cart:e,settings:i}=await(async()=>{const e=await p()+o;try{const t=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({request:{}})});return await d(t)}catch(t){throw console.error("Error in init app",t),t}})();r.value=i;const n=e&&!e.metadata.isEmpty;t?N(t):n?S(h):u.value.start&&u.value.end?S(m):T(m)}catch(e){D(e)}}),C.value&&setTimeout(()=>{C.value=!1},800)}),t.onUnmounted(()=>{window.removeEventListener("bflex:search-bar:search",M)}),(e,o)=>(t.openBlock(),t.createElementBlock("main",mr,[t.createElementVNode("div",hr,[t.createElementVNode("section",fr,[t.unref(C)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[w.value?(t.openBlock(),t.createBlock(pr,{key:0})):(t.openBlock(),t.createBlock(x,{key:1},{default:t.withCtx(()=>[t.createVNode(an,{"search-params":u.value,onSearch:I},null,8,["search-params"]),(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(3,e=>t.createVNode(O,{key:e})),64))]),_:1}))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,ref_key:"contentWrapper",ref:A,class:"booking-widget__pages"},[t.createVNode(t.Transition,{name:"fade",mode:"out-in",onBeforeLeave:z,onEnter:$,onAfterEnter:q},{default:t.withCtx(()=>[t.unref(_)===t.unref(m)?(t.openBlock(),t.createBlock(E,{key:t.unref(m),"search-params":u.value,onSearch:I},null,8,["search-params"])):t.unref(_)===t.unref(y)&&t.unref(k)?(t.openBlock(),t.createBlock(sr,{key:t.unref(y),sid:t.unref(k),onCancelReservation:o[0]||(o[0]=()=>L(null))},null,8,["sid"])):t.unref(_)===t.unref(h)?(t.openBlock(),t.createBlock(mn,{key:t.unref(h),"date-range":b.value,"promo-code":u.value.promoCode,adults:u.value.adults,"children-ages":u.value.childrenAges,onReleased:H,onSearchParamsResolved:R,onSearch:I},null,8,["date-range","promo-code","adults","children-ages"])):t.unref(_)===t.unref(g)?(t.openBlock(),t.createBlock(ga,{key:t.unref(g),onReleased:H})):t.unref(_)===t.unref(v)?(t.openBlock(),t.createBlock(Qa,{key:t.unref(v),sid:t.unref(k),onReleased:H},null,8,["sid"])):t.createCommentVNode("",!0)]),_:1})],512))])])]))}},vr={style:{display:"flex","flex-direction":"column","min-height":"300px","justify-content":"center","align-items":"center"}},yr={__name:"BflexErrorProvider",setup(e){const o={globalErrorTitle:window.wp.i18n.__("Something went wrong","bookiflex"),globalErrorDescription:window.wp.i18n.__("An unexpected error occurred. Please try again.","bookiflex"),globalErrorReload:window.wp.i18n.__("Reload page","bookiflex")},i=t.ref(null);t.provide("globalError",{setError:e=>{i.value=e},clearError:()=>{i.value=null}});const n=()=>{location.reload()};return(e,a)=>i.value?(t.openBlock(),t.createBlock(C,{key:1},{default:t.withCtx(()=>[t.createVNode(Zi,null,{default:t.withCtx(()=>[t.createElementVNode("section",vr,[t.createElementVNode("h1",null,t.toDisplayString(o.globalErrorTitle),1),t.createElementVNode("p",null,t.toDisplayString(o.globalErrorDescription),1),t.createElementVNode("button",{class:"button",onClick:n},t.toDisplayString(o.globalErrorReload),1)])]),_:1})]),_:1})):t.renderSlot(e.$slots,"default",{key:0})}},br=b({__name:"BookingWidget.ce",props:{start:{type:String,default:""},end:{type:String,default:""},promoCode:{type:String,default:""},adults:{type:Number,default:null},childrenAges:{type:String,default:""},accommodationTypes:{type:String,default:""},ratePlans:{type:String,default:""},useUrlParams:{type:Boolean,default:!1},syncUrl:{type:Boolean,default:!1}},setup(e){const o=e,i=t.ref({accommodationTypes:[],ratePlans:[]}),n=t.computed(()=>o.childrenAges?o.childrenAges.split(",").map(e=>parseInt(e,10)).filter(e=>!Number.isNaN(e)):[]);return t.watch(()=>({accommodationTypes:o.accommodationTypes,ratePlans:o.ratePlans}),e=>{(e.accommodationTypes.length||e.ratePlans.length)&&(i.value={accommodationTypes:e.accommodationTypes.split(","),ratePlans:e.ratePlans.split(",")})}),t.onUnmounted(()=>{window.dispatchEvent(new CustomEvent("bflex:booking-widget:removed"))}),(o,a)=>(t.openBlock(),t.createBlock(yr,null,{default:t.withCtx(()=>[t.createVNode(gr,{start:e.start,end:e.end,"promo-code":e.promoCode,adults:e.adults,"children-ages":n.value,"accommodation-types":i.value.accommodationTypes,"rate-plans":i.value.ratePlans,"use-url-params":e.useUrlParams,"sync-url":e.syncUrl},null,8,["start","end","promo-code","adults","children-ages","accommodation-types","rate-plans","use-url-params","sync-url"])]),_:1}))}},[["styles",['@charset "UTF-8";.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:#000c;color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}:root,:host{--bflex-primary: #ea580c;--bflex-primary-hover: #c2410c;--bflex-on-primary: #ffffff;--bflex-surface: #ffffff;--bflex-on-surface: #1a202c;--bflex-text: #4a5568;--bflex-muted: #718096;--bflex-border: #e5e5e5;--bflex-accent: #10b981;--bflex-accent-hover: #059669;--bflex-danger: #dc2626;--bflex-tag-2: #553c9a;--bflex-tag-3: #22543d;--bflex-shadow: 0 4px 12px rgba(0, 0, 0, .08);--bflex-radius: 10px;--bflex-radius-sm: 4px;--bflex-font-family: "Roboto", sans-serif;--bflex-font-size: 16px;--_search-form-primary: var(--bflex-primary);--_search-form-primary-hover: var(--bflex-primary-hover);--_search-form-on-primary: var(--bflex-on-primary);--_search-form-surface: var(--bflex-surface);--_search-form-on-surface: var(--bflex-on-surface);--_search-form-muted: var(--bflex-muted);--_search-form-border: var(--bflex-border);--_search-form-shadow: var(--bflex-shadow);--_search-form-radius: var(--bflex-radius)}bookiflex-search-form{--bflex-primary: var(--_search-form-primary);--bflex-primary-hover: var(--_search-form-primary-hover);--bflex-on-primary: var(--_search-form-on-primary);--bflex-surface: var(--_search-form-surface);--bflex-on-surface: var(--_search-form-on-surface);--bflex-muted: var(--_search-form-muted);--bflex-border: var(--_search-form-border);--bflex-shadow: var(--_search-form-shadow);--bflex-radius: var(--_search-form-radius)}:host,.booking-widget{font-family:var(--bflex-font-family);font-size:var(--bflex-font-size);color:var(--bflex-text);line-height:1.5;box-sizing:border-box;display:flex;flex-direction:column;max-width:960px;margin:0 auto}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}.booking-widget__content{position:relative}.booking-widget__page-header{padding:1em 1.5em}.booking-widget__page-title{font-size:18px;color:var(--bflex-on-surface)}.booking-widget__page-title-bar{height:3px;background:var(--bflex-primary);width:20%;margin-top:.25em}.booking-widget__pages{position:relative;transition:height .35s cubic-bezier(.4,0,.2,1)}.search-step__title{font-size:1.625rem;font-weight:700;line-height:1.25;margin-bottom:0;color:var(--bflex-on-surface)}.search-step__subtitle{margin-top:.375em;margin-bottom:.75em;font-size:.9375rem;color:var(--bflex-muted)}.search-step__row{display:flex;flex-direction:column;gap:1.75em}@media(max-width:768px){.search-step__row{padding:1em;min-height:500px;gap:5em}}@media(min-width:768px){.search-step{min-height:350px}.search-step__row{padding:0 55px;margin-top:40px;justify-content:start}}.bflex-research-bar{position:relative;top:0;z-index:1}@media(max-width:768px){.bflex-research-bar{padding:1em}}.fade-enter-active,.fade-leave-active{transition:opacity .3s ease-in-out}.fade-enter-from,.fade-leave-to{opacity:0}h1{font-size:24px;font-weight:600;margin-bottom:1em}h2{font-size:20px;font-weight:600;margin-bottom:.75em;color:var(--bflex-on-surface)}h3{font-size:18px;font-weight:600;margin-bottom:.75em;color:var(--bflex-on-surface)}h4{font-size:16px;font-weight:600;margin-bottom:.5em;color:var(--bflex-on-surface)}h5{font-size:14px;font-weight:600;margin-bottom:.5em;color:var(--bflex-on-surface)}p{font-size:16px;margin-bottom:.75em;color:var(--bflex-text)}small,.text-sm{font-size:14px}.button{display:inline-flex;align-items:center;justify-content:center;position:relative;font-size:14px;padding:.5em 1em;border-radius:var(--bflex-radius-sm);background:var(--bflex-primary);color:var(--bflex-on-primary);border:none;cursor:pointer;text-decoration:none;text-wrap:nowrap;transition:background-color .2s}.button:hover{background:var(--bflex-primary-hover)}.button:disabled{background:#ccc;cursor:not-allowed}.button--loading .button__label{visibility:hidden}.button__loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.button--outline{background:transparent;color:var(--bflex-on-surface);border:1px solid var(--bflex-border)}.button--outline:hover:not(:disabled){border-color:var(--bflex-primary);color:var(--bflex-primary);background:transparent}.button--outline:disabled{background:transparent}.section{padding:1.5em}.card+.card{margin-top:1em}blockquote,.blockquote{border-left:3px solid var(--bflex-muted);padding-left:1em;margin-bottom:1em;font-size:14px;color:var(--bflex-muted)}.cursor-pointer{cursor:pointer}abbr,.abbreviation{display:inline;border-bottom-style:dotted;border-bottom-width:1px;cursor:pointer;white-space:pre-line}.inline{display:inline}.inline-flex{display:inline-flex}strong{font-weight:700}a{color:var(--bflex-primary);cursor:pointer;text-decoration:underline}a:hover{text-decoration:none}ul{margin:0}ul li{display:block;margin-bottom:.5em;list-style:disc}ul li:before{content:"";display:inline-flex;margin-right:.25em}#bflex-booking-widget{position:relative;container-type:inline-size;container-name:widget}@container widget (max-width: 480px){.booking-widget{font-size:14px;line-height:1.4}}.details-info{display:flex;background-color:#f1f2f2;background-color:color-mix(in srgb,var(--bflex-on-surface) 6%,var(--bflex-surface));color:var(--bflex-text);border-radius:var(--bflex-radius-sm);padding:1em 1.25em;font-size:14px;column-gap:.5em}.details-info--icon{flex:0 0 1em}.accommodation-info__item,.accommodation-list__item{margin-bottom:.5em}.accommodation-info__item dt,.accommodation-list__item dt{min-width:0}.accommodation-info__item h3,.accommodation-list__item h3{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.accommodation-info__item-delete,.accommodation-list__item-delete{color:var(--bflex-primary);font-weight:lighter}.accommodation-info__item-delete:hover,.accommodation-list__item-delete:hover{opacity:.8}.accommodation-info__total,.accommodation-list__total{color:var(--bflex-on-surface)}.accommodation-info__extra,.accommodation-list__extra{margin:.25em 0 .25em 1.5em;font-size:14px;line-height:1.4}.accommodation-info__extra dt,.accommodation-list__extra dt{font-weight:400;display:flex;align-items:baseline;column-gap:.4em;flex-wrap:wrap}.accommodation-info__extra dd,.accommodation-list__extra dd{font-variant-numeric:tabular-nums;display:inline-flex;align-items:center;justify-content:flex-end;column-gap:.4em}.accommodation-info__extra small,.accommodation-list__extra small{opacity:.7;font-size:.85em}.accommodation-info__extra-mark,.accommodation-list__extra-mark{opacity:.6;-webkit-user-select:none;user-select:none}.accommodation-info__extra-remove,.accommodation-list__extra-remove{background:none;border:0;cursor:pointer;font-size:1.1em;line-height:1;color:var(--bflex-on-surface);opacity:.6;padding:0 .25em}.accommodation-info__extra-remove:hover,.accommodation-list__extra-remove:hover{opacity:1}.accommodation-info__payment-rules dd,.accommodation-info__payment-rules dt,.accommodation-list__payment-rules dd,.accommodation-list__payment-rules dt{margin-bottom:.25em;font-size:14px}.accommodation-info__payment-rules dd,.accommodation-list__payment-rules dd{transition:opacity .15s ease-in-out}.accommodation-info__payment-rules .highlighted,.accommodation-list__payment-rules .highlighted{color:var(--bflex-primary)}.accommodation-info .payment-type,.accommodation-list .payment-type{display:inline-flex;flex-direction:row;align-items:center;font-size:14px;border:1px solid var(--bflex-primary);border-radius:var(--bflex-radius-sm);margin-top:1em}.accommodation-info .payment-type__label,.accommodation-list .payment-type__label{font-weight:700;background-color:var(--bflex-primary);color:var(--bflex-on-primary);height:100%;padding:.5em 1em;flex-wrap:nowrap;text-wrap:nowrap}.accommodation-info .payment-type__variants,.accommodation-list .payment-type__variants{display:flex;flex-direction:row;align-items:start;justify-content:start;width:100%;padding:.5em 1em;box-sizing:border-box}.accommodation-info .payment-type label,.accommodation-list .payment-type label{display:flex;flex-direction:row;font-weight:400;margin-right:1em;cursor:pointer}.accommodation-info .payment-type label input[type=radio],.accommodation-list .payment-type label input[type=radio]{margin:0 .25em;padding:0}@container widget (max-width: 480px){.accommodation-info .stay-information,.accommodation-list .stay-information{grid-template-columns:1fr!important}.accommodation-info .stay-information dd,.accommodation-list .stay-information dd{justify-content:flex-start;text-align:left}.accommodation-info__item,.accommodation-list__item{grid-template-columns:1fr!important;gap:.5em!important}.accommodation-info .payment-type,.accommodation-list .payment-type{flex-direction:column;align-items:start;width:100%}.accommodation-info .payment-type__label,.accommodation-list .payment-type__label{margin-right:0;width:100%}.accommodation-info .payment-type__variants,.accommodation-list .payment-type__variants{flex-direction:column;align-items:start;justify-content:start;width:100%}.accommodation-info .payment-type label,.accommodation-list .payment-type label{flex-direction:row;padding:.5em .5em .5em 0}}.rate-plan-list__header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 26px;background:color-mix(in srgb,var(--bflex-border) 30%,var(--bflex-surface));border-top:1px solid var(--bflex-border)}.rate-plan-list__header-title{font-size:13px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--bflex-muted)}.rate-plan-list__header-los{font-size:13px;color:var(--bflex-muted)}.rate-plan-list__dots{display:none}.rate-plan-list__dot{width:7px;height:7px;border-radius:99px;background:var(--bflex-border);transition:width .2s,background-color .2s}.rate-plan-list__dot--active{width:20px;background:var(--bflex-primary)}.rate-plan-list{display:flex;flex-flow:column}.rate-plan-list .rate-plan-card:last-child{border-bottom-left-radius:var(--bflex-radius);border-bottom-right-radius:var(--bflex-radius)}@container widget (max-width: 480px){.information-block.accommodation-offer{background:none;box-shadow:none;overflow:hidden}.accommodation-offer{overflow-x:clip;overflow-y:visible}.rate-plan-list__header{display:none}.rate-plan-list__wrapper{padding:1em 0}.rate-plan-list{overflow-x:scroll;scroll-snap-type:x mandatory;flex-direction:row;column-gap:.5em}.rate-plan-list__dots{display:flex;align-items:center;justify-content:center;gap:6px;padding:1.5em 1.5em 0}}.agreement-rules-list__rules li{padding-left:.25em}.agreement-rules-list__rules li:before{display:inline-block;content:"—";margin-right:.25em}.agreement-rules-list__agreements-item{display:flex;flex-direction:row;margin-bottom:.5em}.agreement-rules-list__combined-agreement{padding:0}.agreement-rules-list__combined-agreement:after{display:inline-block;padding-right:0;content:", ";text-decoration:none}.agreement-rules-list__combined-agreement:last-child:after{content:"";display:none}.accommodation-type-card{display:flex;border-top-left-radius:var(--bflex-radius);border-top-right-radius:var(--bflex-radius);background:transparent}.accommodation-type-card__img{width:300px;flex-shrink:0;border-top-left-radius:var(--bflex-radius);overflow:hidden;background:color-mix(in srgb,var(--bflex-muted) 15%,var(--bflex-surface));cursor:pointer;display:flex;color:var(--bflex-muted);position:relative}.accommodation-type-card__img img{width:100%;height:100%;object-fit:cover;object-position:center;will-change:transform}.accommodation-type-card__img span{text-align:center;width:100%;display:flex;align-items:center;justify-content:center;min-height:180px}.accommodation-type-card__body{display:flex;flex-flow:column;justify-content:space-between;padding:1.5em;width:100%}.accommodation-type-card__meta{display:flex;align-items:center;flex-wrap:wrap;gap:.5em;font-size:14px;color:var(--bflex-muted);margin:0 0 1.25em;line-height:1;font-weight:400}.accommodation-type-card__meta-item{display:inline-flex;align-items:center;gap:.375em;line-height:1}.accommodation-type-card__meta-icon{display:block;flex:0 0 auto}.accommodation-type-card__meta-separator{color:var(--bflex-border)}.accommodation-type-card__sticky-bar{display:none}.room-quantity{display:block;font-size:14px;text-align:right;position:absolute;background:var(--bflex-surface);border-radius:var(--bflex-radius);padding:5px;margin:.25em;opacity:.8;right:0}.amenities{font-size:12px;background:transparent;margin-top:.75em;display:inline-flex;flex-wrap:wrap;gap:.5em;font-weight:500}.amenities__item{font-size:12.5px;font-weight:400;line-height:1;padding:5px 11px;background:#f2f4f6;background:color-mix(in srgb,var(--bflex-border) 30%,var(--bflex-surface));color:#5c636b;color:var(--bflex-text);border:1px solid #e9ecee;border:1px solid var(--bflex-border);border-radius:7px}@container widget (max-width: 480px){.accommodation-type-card{flex-flow:column;max-height:initial;height:auto;background:var(--bflex-surface);border-radius:var(--bflex-radius);box-shadow:var(--bflex-shadow)}.accommodation-type-card__img{width:auto;border-top-right-radius:var(--bflex-radius);line-height:1}.accommodation-type-card__img span,.accommodation-type-card__img img{height:300px}.accommodation-type-card__body{width:auto}.accommodation-type-card__sticky-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:5;padding:11px 18px;background:var(--bflex-surface);border-top:1px solid var(--bflex-border);border-bottom:1px solid var(--bflex-border)}.accommodation-type-card__sticky-bar-title{font-size:15px;font-weight:700;line-height:1.15;color:var(--bflex-on-surface)}.accommodation-type-card__sticky-bar-subtitle{font-size:12px;color:var(--bflex-muted)}.accommodation-type-card__sticky-bar-price{text-align:right}.accommodation-type-card__sticky-bar-price-label{font-size:10.5px;line-height:1;color:var(--bflex-muted)}.accommodation-type-card__sticky-bar-price-value{font-size:15px;font-weight:700;color:var(--bflex-on-surface)}.accommodation-type-card__description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}}.custom-checkbox{display:flex;align-items:center;cursor:pointer}.custom-checkbox input[type=checkbox]{position:absolute;opacity:0;width:1.25em;height:1.25em;cursor:pointer}.custom-checkbox__box{width:1em;height:1em;flex:0 0 1em;border:2px solid rgba(34,34,34,.2);border-radius:var(--bflex-radius-sm);position:relative;margin-right:.5em;transition:background-color .3s}.custom-checkbox input[type=checkbox]:checked+.custom-checkbox__box{background-color:var(--bflex-surface)}.custom-checkbox__box:after{content:"";position:absolute;top:50%;left:50%;width:.5em;height:.5em;background-color:var(--bflex-primary);transform:translate(-50%,-50%) scale(0);transition:transform .3s}.custom-checkbox input[type=checkbox]:checked+.custom-checkbox__box:after{transform:translate(-50%,-50%) scale(1)}.customer-data-form{display:grid;grid-template-columns:1fr 1fr;row-gap:1em;column-gap:1.5em;padding:1em 0 0}@container widget (max-width: 480px){.customer-data-form{grid-template-columns:1fr}}.field-decorator__required{padding-left:3px;color:var(--bflex-danger)}.field-decorator__input-group{border:1px solid var(--bflex-border);border-radius:var(--bflex-radius-sm);background-color:var(--bflex-surface);padding:.25em .5em;display:flex;flex-direction:column}.field-decorator__label{font-size:.875em;margin-bottom:.25em;line-height:1;color:var(--bflex-muted)}.field-decorator__slot{display:flex;flex-direction:column;width:100%;height:auto}.field-decorator__slot textarea,.field-decorator__slot select,.field-decorator__slot input{border:0!important;outline:0!important;background:var(--bflex-surface);color:var(--bflex-text);width:100%;height:100%;font-size:16px;padding:.25em 0}.field-decorator__slot textarea{resize:vertical}.field-decorator__hint{height:1.25em;color:var(--bflex-muted);text-align:right;font-size:12px;overflow:hidden}.form-group--error .field-decorator__input-group{border-color:var(--bflex-danger)}.form-group--error .field-decorator__hint{color:var(--bflex-danger)}.information-block-grid{display:grid;grid-row-gap:1.25em}.information-block{background-color:var(--bflex-surface);border-radius:var(--bflex-radius);box-shadow:var(--bflex-shadow)}.information-block--attention{border:3px solid var(--bflex-danger)}.information-block__content{padding:1em 1.25em}.information-block__content dl{display:grid;grid-template-columns:1fr 1fr;gap:.25em;align-items:center}.information-block__content dl dt{font-weight:700;line-height:1}.information-block__content dl dd{display:flex;flex-direction:row;justify-content:end;text-align:right;line-height:1}.information-block__content a{padding:0 .25em}.information-block .divider{margin:0;height:1px;background-color:var(--bflex-border)}.information-block header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin:0;padding:1em 1.25em;border-radius:var(--bflex-radius) var(--bflex-radius) 0 0;font-size:20px;font-weight:700}.information-block header .additional{color:gray;font-weight:400}.information-block header.dense{padding:.5em 1.25em}@container widget (max-width: 480px){.information-block header{flex-direction:column;align-items:flex-start}}.cycle-loader{display:flex}@-webkit-keyframes v-pulseStretchDelay{0%,80%{-webkit-transform:scale(1);transform:scale(1);-webkit-opacity:1;opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);-webkit-opacity:.7;opacity:.7}}@keyframes v-pulseStretchDelay{0%,80%{-webkit-transform:scale(1);transform:scale(1);-webkit-opacity:1;opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);-webkit-opacity:.7;opacity:.7}}.price-block{display:grid;grid-template-columns:1fr;grid-template-areas:"discount" "amount";line-height:1;height:100%;width:100%}.price-block__discount{grid-area:discount;line-height:1;display:flex;align-items:center;justify-self:end;font-size:12px;font-weight:lighter;color:var(--bflex-muted)}.price-block__discount-size{display:block;padding:.125em;margin-right:.25em;background:var(--bflex-danger);color:var(--bflex-on-primary);border-radius:var(--bflex-radius-sm)}.price-block__old{text-decoration-line:line-through;opacity:.5}.price-block__schedule{font-size:12px}.price-block__icons .icon{font-size:16px;fill:currentColor}.price-block__amount{grid-area:amount;display:flex;flex-direction:row;align-items:center;justify-content:space-between;line-height:1;font-size:20px}.price-block__current{margin-left:.5em}.price-block__current-currency{font-weight:lighter;padding:0 .125em}@container widget (max-width: 480px){.price-block{grid-template-columns:1fr;grid-template-areas:"amount discount"}}.rate-plan-card{display:grid;grid-template-columns:400px 1fr;grid-template-areas:"description actions" "bottom actions";width:100%;position:relative}.rate-plan-card--blocked{display:flex;justify-content:center;height:100%;width:100%;position:absolute;background:#0000001a;z-index:1}.rate-plan-card__title{display:inline-flex;align-items:center}.rate-plan-card__wrapper{grid-area:description;padding:0}.rate-plan-card blockquote{border-left-color:var(--bflex-muted);color:var(--bflex-muted)}.rate-plan-card__description{padding:1.5em}.rate-plan-card__offers{font-size:14px;color:var(--bflex-muted)}.rate-plan-card__offers-item{display:flex;align-items:center;padding:.375em 0}.rate-plan-card__offers-item .icon{margin-right:.375em;color:var(--bflex-muted);fill:var(--bflex-muted)}.rate-plan-card__offers-item.extra-offer .icon{color:inherit}.rate-plan-card__offers-item.feed-offer{color:var(--bflex-accent)}.rate-plan-card__offers-item.feed-offer .icon{color:var(--bflex-accent);fill:var(--bflex-accent)}.rate-plan-card__offers-item.cancellation-policy-offer{color:var(--bflex-muted)}.rate-plan-card__offers-item.cancellation-policy-offer .icon{color:var(--bflex-muted);fill:var(--bflex-muted)}.rate-plan-card__offers-item.payment-type-offers{color:var(--bflex-muted)}.rate-plan-card__offers-item.payment-type-offers .icon{color:var(--bflex-muted);fill:var(--bflex-muted)}.rate-plan-card__offers-item.meal-offer{color:var(--bflex-tag-2)}.rate-plan-card__offers-item.meal-offer .icon{color:var(--bflex-tag-2);fill:var(--bflex-tag-2)}.rate-plan-card__offers-item.service-offer{color:var(--bflex-accent)}.rate-plan-card__offers-item.service-offer .icon{color:var(--bflex-accent);fill:var(--bflex-accent)}.rate-plan-card__variants{display:flex;flex-direction:column;align-items:end;height:100%;justify-content:center;padding:1em 0}.rate-plan-card__variants .additional-fees--info{display:flex;justify-content:center;align-items:center;color:var(--bflex-muted);padding:0 1em;font-size:14px}.rate-plan-card__variants .additional-fees--info .icon{margin-left:.25em;cursor:pointer;color:var(--bflex-danger)}.rate-plan-card__variants .additional-fees--info .icon:hover{opacity:.8}@container widget (max-width: 480px){.rate-plan-list--single .rate-plan-card{width:100%;flex:0 0 100%}.rate-plan-card{display:flex;flex:0 0 90%;flex-direction:column;min-width:90%;scroll-snap-align:start;justify-content:space-between;background:var(--bflex-surface);border-radius:var(--bflex-radius);border:1px solid var(--bflex-border);box-shadow:var(--bflex-shadow)}.rate-plan-card__actions{justify-self:stretch}.rate-plan-card__variants{height:auto;align-items:stretch;justify-content:flex-start;padding:1.5em;gap:1em}.rate-plan-card__offers{color:var(--bflex-muted)}.rate-plan-card__offers-item .icon{color:var(--bflex-muted);fill:var(--bflex-muted)}.rate-plan-card__offers-item.feed-offer{color:var(--bflex-accent)}.rate-plan-card__offers-item.feed-offer .icon{color:var(--bflex-accent);fill:var(--bflex-accent)}.rate-plan-card__offers-item.cancellation-policy-offer{color:var(--bflex-muted)}.rate-plan-card__offers-item.cancellation-policy-offer .icon{color:var(--bflex-muted);fill:var(--bflex-muted)}.rate-plan-card__offers-item.payment-type-offers{color:var(--bflex-muted)}.rate-plan-card__offers-item.payment-type-offers .icon{color:var(--bflex-muted);fill:var(--bflex-muted)}.rate-plan-card__offers-item.meal-offer{color:var(--bflex-tag-2)}.rate-plan-card__offers-item.meal-offer .icon{color:var(--bflex-tag-2);fill:var(--bflex-tag-2)}.rate-plan-card__offers-item.service-offer{color:var(--bflex-accent)}.rate-plan-card__offers-item.service-offer .icon{color:var(--bflex-accent);fill:var(--bflex-accent)}}.variant-offer{display:flex;align-items:center;gap:15px;padding:14px;color:var(--bflex-on-surface)}.variant-offer__badge{flex:0 0 auto;width:50px;height:50px;border-radius:var(--bflex-radius);background:color-mix(in srgb,var(--bflex-border) 30%,var(--bflex-surface));border:1px solid var(--bflex-border);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}.variant-offer__badge-number{font-size:18px;font-weight:700;color:var(--bflex-on-surface)}.variant-offer__badge-label{font-size:9px;color:var(--bflex-muted);margin-top:2px}.variant-offer__summary{flex:1 1 0;min-width:0}.variant-offer__title{font-size:14.5px;font-weight:600;color:var(--bflex-on-surface)}.variant-offer__subtitle{font-size:12.5px;color:var(--bflex-muted)}.variant-offer .price-block{flex:0 0 auto;width:auto;align-content:center}.variant-offer .price-block__discount,.variant-offer .price-block__amount{justify-content:flex-end;gap:6px}.variant-offer .price-block__note{display:none}.variant-offer__action{flex:0 0 auto}.variant-offer__action .book-button{border-radius:var(--bflex-radius);font-size:18px}@container widget (max-width: 480px){.variant-offer{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"badge summary" "price price" "action action";row-gap:20px;padding:0}.variant-offer__badge{grid-area:badge}.variant-offer__summary{grid-area:summary}.variant-offer .price-block{grid-area:price;width:100%}.variant-offer .price-block__amount{font-size:24px}.variant-offer .price-block__current-amount{font-weight:700}.variant-offer .price-block__note{display:block;grid-column:1/-1;margin-top:4px;font-size:12px;color:var(--bflex-muted);text-align:right}.variant-offer__action{grid-area:action}.variant-offer__action .book-button{width:100%;border-radius:var(--bflex-radius);font-size:22px;padding:.5em 0}}.reservation-result{display:flex;flex-direction:column;margin-top:2em;margin-bottom:1em;padding:.5em}.reservation-result__title{font-size:24px;font-weight:700;text-align:center}.reservation-result__description{font-size:19px;text-align:center}.hotel-information{display:flex;flex-direction:column;row-gap:.25em;font-size:14px;justify-content:center;justify-items:center}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.accommodation-skeleton .header{display:flex;flex-direction:column}@media(min-width:768px){.accommodation-skeleton .header{flex-direction:row}}.accommodation-skeleton .header .thumbnail{width:100%;height:192px;border-top-left-radius:var(--bflex-radius);animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface))}@media(min-width:768px){.accommodation-skeleton .header .thumbnail{width:300px}}@container widget (max-width: 480px){.accommodation-skeleton .header .thumbnail{height:300px}}.accommodation-skeleton .header .content{flex:1;padding:16px}.accommodation-skeleton .header .content .title-skeleton{height:32px;width:96px;margin-bottom:16px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.accommodation-skeleton .header .content .description{margin-bottom:16px;display:flex;flex-direction:column;gap:8px}.accommodation-skeleton .header .content .description .line{height:16px;width:100%;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.accommodation-skeleton .header .content .description .line.line-short{width:75%}.accommodation-skeleton .header .content .amenities{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.accommodation-skeleton .header .content .amenities .amenity-item{height:32px;width:80px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.accommodation-skeleton .footer .option-header{padding:16px;display:flex;justify-content:space-between;align-items:center}.accommodation-skeleton .footer .option-header .option-title{height:24px;width:80px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.accommodation-skeleton .footer .option-header .option-value{height:24px;width:64px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.accommodation-skeleton .footer .room-option{padding:16px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}@media(min-width:768px){.accommodation-skeleton .footer .room-option{flex-direction:row;align-items:center}}.accommodation-skeleton .footer .room-option .option-details{display:flex;flex-direction:column;gap:8px;width:100%}@media(min-width:768px){.accommodation-skeleton .footer .room-option .option-details{width:50%}}.accommodation-skeleton .footer .room-option .option-details .option-name{height:20px;width:192px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.accommodation-skeleton .footer .room-option .option-details .option-description{height:16px;width:128px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.accommodation-skeleton .footer .room-option .price-section{display:flex;align-items:center;margin-top:8px}@media(min-width:768px){.accommodation-skeleton .footer .room-option .price-section{margin-top:0}}.accommodation-skeleton .footer .room-option .price-section .price{height:24px;width:64px;margin-right:16px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.accommodation-skeleton .footer .room-option .price-section .book-button{height:40px;width:96px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.search-step-skeleton{display:flex;flex-direction:column;gap:5em;padding:1em;min-height:500px}.search-step-skeleton .intro-skeleton{display:flex;flex-direction:column;gap:8px}.search-step-skeleton .title-skeleton{height:28px;width:220px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.search-step-skeleton .subtitle-skeleton{height:16px;width:260px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.search-step-skeleton .form{display:flex;flex-direction:column;gap:8px;border:1px solid var(--bflex-border);border-radius:var(--bflex-radius);padding:16px;background:var(--bflex-surface)}@media(min-width:768px){.search-step-skeleton .form{flex-direction:row;align-items:stretch}}.search-step-skeleton .field{height:56px;flex:1;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.search-step-skeleton .button{height:56px;width:100%;flex-shrink:0;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}@media(min-width:768px){.search-step-skeleton .button{width:140px}}@media(min-width:768px){.search-step-skeleton{gap:1.75em;padding:0 55px;margin-top:40px;min-height:350px;justify-content:start}}.your-stay-skeleton .title-skeleton{height:20px;width:96px;margin:16px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.your-stay-skeleton .stay-info-skeleton,.your-stay-skeleton .item-skeleton,.your-stay-skeleton .total-skeleton,.your-stay-skeleton .payment-rules-skeleton{display:flex;flex-direction:column;gap:8px}.your-stay-skeleton .stay-info-skeleton .line{height:14px;width:200px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.your-stay-skeleton .stay-info-skeleton .line.line-short{width:140px}.your-stay-skeleton .item-skeleton .item-name{height:20px;width:160px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.your-stay-skeleton .item-skeleton .item-price{height:14px;width:64px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.your-stay-skeleton .total-skeleton .total-label{height:16px;width:100px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.your-stay-skeleton .total-skeleton .total-value{height:16px;width:72px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.your-stay-skeleton .payment-rules-skeleton .rule{height:14px;width:120px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:#e4e4e6;background-color:color-mix(in srgb,var(--bflex-on-surface) 12%,var(--bflex-surface));border-radius:var(--bflex-radius-sm)}.your-stay-skeleton .payment-rules-skeleton .rule:last-child{width:90px}.summary-block{position:sticky;width:auto;bottom:0;right:0;padding:1em;box-shadow:var(--bflex-shadow);background:var(--bflex-surface);z-index:4;border-radius:var(--bflex-radius)}.summary-block__content{display:flex;justify-content:space-between;align-items:stretch}.summary-block__content .button{min-width:6em;align-self:stretch;height:auto}.summary-block__content-info{display:flex;flex-direction:column;align-items:flex-start}.summary-block__content-info__price{font-size:16px;font-weight:700;color:var(--bflex-primary)}.summary-block__content-info__text{display:flex;align-items:center;font-size:14px;color:var(--bflex-muted);vertical-align:center}.summary-block__content-info__text .icon{font-size:16px;margin-left:.25em}.summary-block .accommodation-summary-trigger{cursor:pointer}.summary-block .accommodation-summary-trigger:hover{color:var(--bflex-primary)}@container widget (max-width: 480px){.summary-block{position:sticky;box-sizing:border-box;left:0;width:100%}}.v-popper__popper.v-popper--theme-tooltip p{line-height:1;padding:.125em 0;margin:.5em;font-size:14px;color:#fff}.v-popper__popper.v-popper--theme-tooltip ul{margin-bottom:0}.v-popper__popper.v-popper--theme-tooltip ul li:before{content:"-"}.placement-details-tooltip{min-width:18rem;max-width:22rem;padding:.25rem;color:var(--bflex-on-surface);font-size:14px;line-height:1.35}.placement-details-tooltip__trigger{display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0 0 0 .25em;background:transparent;border:0;color:var(--bflex-muted);cursor:pointer;line-height:0}.placement-details-tooltip__trigger:hover,.placement-details-tooltip__trigger:focus-visible{color:var(--bflex-on-surface)}.placement-details-tooltip__trigger .icon{width:1em;height:1em;fill:currentColor}.placement-details-tooltip__title{margin:0 0 .5rem;font-size:1rem;font-weight:600}.placement-details-tooltip__period{margin:0 0 .75rem!important;color:var(--bflex-text)!important}.placement-details-tooltip__list{margin:0 0 .75rem;padding:0;list-style:none;display:grid;row-gap:.25rem}.placement-details-tooltip__item{display:flex;justify-content:space-between;column-gap:1rem}.placement-details-tooltip__item:before{content:none!important}.placement-details-tooltip__item--indent{padding-left:1em}.placement-details-tooltip__label{color:var(--bflex-text)}.placement-details-tooltip__price{white-space:nowrap;color:var(--bflex-on-surface)}.placement-details-tooltip__footer{display:flex;justify-content:space-between;align-items:baseline;column-gap:1rem;padding-top:.5rem;border-top:1px solid var(--bflex-border)}.placement-details-tooltip__total-label{color:var(--bflex-text)}.placement-details-tooltip__total-value{font-size:1rem;white-space:nowrap}.v-popper__popper:has(.placement-details-tooltip) .v-popper__inner{background:var(--bflex-surface);color:var(--bflex-on-surface);border:1px solid var(--bflex-border);border-radius:var(--bflex-radius);box-shadow:var(--bflex-shadow);padding:1rem}.v-popper__popper:has(.placement-details-tooltip) .v-popper__arrow-outer{border-color:var(--bflex-border)}.v-popper__popper:has(.placement-details-tooltip) .v-popper__arrow-inner{border-color:var(--bflex-surface)}.icon{fill:currentColor}.icon--small{width:16px}.icon-text{display:inline-flex;flex-direction:row;align-items:center;column-gap:.375em}.icon-text__icon{display:inline-flex;color:var(--bflex-primary);flex:0 0 1em}.icon-text__icon .icon{width:1.5em}.icon-text__text{line-height:1}.payment-timer-container{display:flex;flex-direction:column;align-items:center;padding:20px;font-family:Arial,sans-serif}.timer-wrapper{display:flex;flex-direction:column;align-items:center;gap:8px}.timer-circle{position:relative;display:flex;align-items:center;justify-content:center}.timer-svg{transform:rotate(-90deg)}.timer-progress{transition:stroke-dashoffset 1s linear}.timer-text{position:absolute;font-size:20px;font-weight:700;color:#374151;text-align:center}.proceed-button{background-color:#3b82f6}.proceed-button:hover:not(:disabled){background-color:#2563eb}.proceed-button:disabled{background-color:#9ca3af}.no-token-message{text-align:center;color:#6b7280;font-size:16px}.no-token-message p{margin:0}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:440px;padding:2em 1.5em}.empty-state .icon{width:3em;height:3em;color:#9ca3af;margin-bottom:1em}.empty-state__title{font-size:1.125em;font-weight:600;color:var(--bflex-on-surface);margin:0 0 .25em}.empty-state__description{font-size:.875em;color:var(--bflex-muted);margin:0}.quantity-stepper{display:inline-flex;align-items:stretch;border:1px solid var(--bflex-border);border-radius:var(--bflex-radius-sm);overflow:hidden;background:var(--bflex-surface);color:var(--bflex-on-surface)}.quantity-stepper.is-disabled{opacity:.5}.quantity-stepper__btn{appearance:none;border:0;background:transparent;color:var(--bflex-on-surface);width:2.25em;font-size:1em;line-height:1;cursor:pointer}.quantity-stepper__btn:hover:not(:disabled){color:var(--bflex-primary)}.quantity-stepper__btn:disabled{cursor:not-allowed;opacity:.4}.quantity-stepper__value{appearance:none;border:0;border-left:1px solid var(--bflex-border);border-right:1px solid var(--bflex-border);background:transparent;color:var(--bflex-on-surface);text-align:center;width:3em;padding:0 .25em;font-family:var(--bflex-font-family);font-size:1em}.quantity-stepper__value::-webkit-inner-spin-button,.quantity-stepper__value::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.quantity-stepper__value[type=number]{-moz-appearance:textfield}.quantity-stepper__value:focus{outline:none}']]]),wr={__name:"App",props:{start:{type:String,default:""},end:{type:String,default:""},promoCode:{type:String,default:""},adults:{type:Number,default:null},childrenAges:{type:Array,default:()=>[]},accommodationTypes:{type:Array,default:()=>[]},ratePlans:{type:Array,default:()=>[]}},setup:e=>(t.onUnmounted(()=>{window.dispatchEvent(new CustomEvent("bflex:booking-widget:removed"))}),(o,i)=>(t.openBlock(),t.createBlock(yr,null,{default:t.withCtx(()=>[t.createVNode(gr,{start:e.start,end:e.end,"promo-code":e.promoCode,adults:e.adults,"children-ages":e.childrenAges,"accommodation-types":e.accommodationTypes,ratePlans:e.ratePlans},null,8,["start","end","promo-code","adults","children-ages","accommodation-types","ratePlans"])]),_:1})))};globalThis.window&&window.customElements.define("bflex-booking-widget",t.defineCustomElement(br)),e.BookingWidget=gr,e.mountWidget=function(e){t.createApp(wr,{initOptions:e}).mount("#bflex-booking-widget")},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
