(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([["poi-opening-times-simple"],{"2O6D":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i={props:{languageLabels:{type:Object,default:()=>({})}},methods:{translate(e,t=[]){if(!this.languageLabels[e])return`${e}[${t.map(e=>e.toString()).join(",")}]`;let n=this.languageLabels[e];for(const e of Object.keys(t))n=n.replace(new RegExp(`\\{${e}\\}`,"g"),t[e]);return n}}}},eZz4:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this.$createElement,t=this._self._c||e;return"open"===this.view?t("div",{staticClass:"tb-hours-simple__open"}):"closed"===this.view?t("div",{staticClass:"tb-hours-simple__closed"},[t("svg",{staticClass:"c-icon tb-hours-simple__closed-icon",attrs:{role:"img"}},[t("use",{attrs:{"xlink:href":"#icon-close"}})])]):this._e()};i._withStripped=!0;var s=n("r6FC"),a=n.n(s),o=n("+1KV"),l=n("2O6D");const p=Object.freeze({NONE:"none",OPEN:"open",CLOSED:"closed"});var r={name:"TbOpeningTimesSimple",mixins:[l.a],props:{openingTimes:{type:Object,required:!0},dateFormat:{type:String,default:"YYYY-MM-DD"},forDateAndTime:{type:Date,default:()=>new Date}},data:()=>({nextOpenDate:null,resolvedOpeningTimes:null}),watch:{openingTimes:{handler:"updateResolvedOpeningTimes",immediate:!0},forDateAndTime:"updateResolvedOpeningTimes"},methods:{updateResolvedOpeningTimes(){const e=this.openingTimes.timesAt(this.forDateAndTime);this.resolvedOpeningTimes=o.a.updateEndTimeOfSingleTimesAtResultIfSpillingOverToNextDay(e);const t=new Date(this.resolvedOpeningTimes.nextOpenDate);this.resolvedOpeningTimes.nextOpenWeekday=t.getDay(),this.nextOpenDate=a()(t,this.dateFormat)}},computed:{view(){var e;const t=this.resolvedOpeningTimes;return t&&(t.isOpen||t.nextOpenDate)?null!==(e=t.openingTimes)&&void 0!==e&&e.isAlwaysOpen||t.isOpen?p.OPEN:p.CLOSED:p.NONE}}},d=n("KHd+"),u=Object(d.a)(r,i,[],!1,null,null,null);t.default=u.exports}}]);