(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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];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("cPJV"),o=n.n(s),a=n("a6hf"),p=n("2O6D");const l=Object.freeze({NONE:"none",OPEN:"open",CLOSED:"closed"});var r={name:"TbOpeningTimesSimple",mixins:[p.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=a.a.updateEndTimeOfSingleTimesAtResultIfSpillingOverToNextDay(e);const t=new Date(this.resolvedOpeningTimes.nextOpenDate);this.resolvedOpeningTimes.nextOpenWeekday=t.getDay(),this.nextOpenDate=o()(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?l.OPEN:l.CLOSED:l.NONE}}},d=n("KHd+"),c=Object(d.a)(r,i,[],!1,null,null,null);c.options.__file="DistributionPackages/Newland.AssetsNeos/Scripts/opening-times/opening-times-simple.vue";t.default=c.exports},yLpj:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n}}]);