(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[69],{Hbak:function(e,n,t){"use strict";t.d(n,"a",(function(){return i}));const i={props:{languageLabels:{type:Object,default:function(){return this.$options.languageLabelDefaults||{}}}},methods:{languageLabel(e,n=[]){let t=null;if(this.languageLabels[e]?t=this.languageLabels[e]:this.$options.languageLabelDefaults&&this.$options.languageLabelDefaults[e]&&(t=this.$options.languageLabelDefaults[e]),null===t)return console.warn(`Language label ${e} is missing`),`${e}[${n.map(e=>e.toString()).join(",")}]`;for(const e of Object.keys(n))t=t.replace(new RegExp(`\\{${e}\\}`,"g"),n[e]);return t}}}},"KHd+":function(e,n,t){"use strict";function i(e,n,t,i,a,o,s,l){var r,u="function"==typeof e?e.options:e;if(n&&(u.render=n,u.staticRenderFns=t,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(r=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=r):a&&(r=l?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),r)if(u.functional){u._injectStyles=r;var d=u.render;u.render=function(e,n){return r.call(n),d(e,n)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,r):[r]}return{exports:e,options:u}}t.d(n,"a",(function(){return i}))},azCs:function(e,n,t){"use strict";t.r(n);var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("span",[e.showOpeningTimesTable?t("button",{staticClass:"text-gray-800 inline-block w-full",on:{click:function(n){e.additionalActive=!e.additionalActive}}},[t("tb-opening-times-line-preview",{attrs:{"opening-times":e.openingTimes,"language-labels":e.languageLabels,"date-format":e.dateFormat,icon:e.toggleIcon}})],1):t("span",{staticClass:"text-gray-800"},[t("tb-opening-times-line-preview",{attrs:{"opening-times":e.openingTimes,"language-labels":e.languageLabels,"date-format":e.dateFormat}})],1),e._v(" "),e.additionalActive?t("div",{staticClass:"mt-4"},[t("tb-opening-times-date-picker",{model:{value:e.dateForUpcoming,callback:function(n){e.dateForUpcoming=n},expression:"dateForUpcoming"}}),e._v(" "),t("tb-opening-times-table",{staticClass:"mt-6",attrs:{"language-labels":e.languageLabels,"opening-times":e.openingTimes,"date-format":e.dateFormat,"for-date-and-time":e.dateForUpcoming}})],1):e._e()])};i._withStripped=!0;var a={name:"TbOpeningTimesExpandablePreview",mixins:[t("Hbak").a],props:{openingTimes:{type:Object,required:!0},dateFormat:{type:String,required:!0}},data:()=>({additionalActive:!1,dateForUpcoming:new Date}),computed:{toggleIcon(){return this.additionalActive?"chevron-up":"chevron-down"},showOpeningTimesTable(){var e,n,t;const i=(null==this||null===(e=this.openingTimes)||void 0===e||null===(n=e.times)||void 0===n?void 0:n.length)>0?this.openingTimes.times[0]:null;return"open_on_inquiry"!==(null==i||null===(t=i.additionalInformation)||void 0===t?void 0:t.mode)&&!(null==i?void 0:i.isAlwaysOpen)}}},o=t("KHd+"),s=Object(o.a)(a,i,[],!1,null,null,null);s.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-opening-times-expandable-preview.vue";n.default=s.exports}}]);