(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[243],{"E4I/":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"tb-w-visitor-channeling-access h-full"},[i("tb-w-visitor-channeling-card",{staticClass:"cursor-pointer hover:shadow-md",attrs:{"display-badge":null===t.ticketRequired},nativeOn:{click:function(e){return t.onClick()}},scopedSlots:t._u([{key:"title",fn:function(){return[null===t.ticketRequired?[t._v("\n                Tickets\n            ")]:t.ticketRequired?[t._v("\n                Ticket"),i("br"),t._v("\n                erforderlich\n            ")]:t.ticketRequired?t._e():[t._v("\n                Kein Ticket"),i("br"),t._v("\n                erforderlich\n            ")]]},proxy:!0},{key:"content",fn:function(){return[i("tb-w-icon",{attrs:{icon:t.ticketIcon,size:"3"}})]},proxy:!0}])}),t._v(" "),i("tb-w-modal",{attrs:{show:t.displayModal,width:"medium",height:"content"},on:{close:function(e){t.displayModal=!1}}},[i("div",{staticClass:"mt-6 flex items-center max-w-xl mx-auto w-full"},[i("tb-w-icon",{staticClass:"mr-4 ",attrs:{icon:t.ticketIcon,size:"3"}}),t._v(" "),t.ticketRequired?i("h3",{staticClass:"text-2xl font-bold"},[t._v("\n                Ticket erforderlich\n            ")]):null===t.ticketRequired?i("h3",{staticClass:"text-2xl font-bold"},[t._v("\n                Ticket\n            ")]):t.ticketRequired?t._e():i("h3",{staticClass:"text-2xl font-bold"},[t._v("\n                Kein Ticket erforderlich\n            ")])],1),t._v(" "),i("div",{staticClass:"w-full pl-8 max-w-lg mx-auto"},[!1===t.ticketRequired?i("p",{staticClass:"mt-4"},[t._v("\n                Der Zutritt ist ohne Ticket möglich.\n            ")]):t._e(),t._v(" "),"notInAdvance"===t.ticketRequired?i("p",{staticClass:"mt-4"},[t._v("\n                Eine Vorabbuchung des Tickets ist nicht notwendig.\n            ")]):t._e(),t._v(" "),t.ticketRequired&&t.bookingInfo?i("tb-w-booking-information",{attrs:{"booking-information":t.bookingInfo}}):t._e(),t._v(" "),null===t.ticketRequired?i("tb-w-request-information",{staticClass:"mt-8",attrs:{item:t.item,path:"ticketRequired"}}):t._e()],1)])],1)};n._withStripped=!0;var o=i("L2JU"),c={name:"TbVisitorChannelingTicket",props:{item:{type:Object,required:!0}},data:()=>({displayModal:!1}),computed:{...Object(o.d)(["areaNotices"]),ticketIcon(){switch(this.ticketRequired){case!1:return"ticket-not-required";case"notInAdvance":case!0:return"ticket-required";default:return"ticket-no-info"}},ticketRequired(){var t,e;return(null===(t=this.item.point)||void 0===t||null===(e=t.accessRestrictions)||void 0===e?void 0:e.ticketRequired)||null},bookingInfo(){var t;return null===(t=this.item.point)||void 0===t?void 0:t.booking}},methods:{onClick(){this.displayModal=!0}}},s=i("KHd+"),r=Object(s.a)(c,n,[],!1,null,null,null);r.options.__file="node_modules/@newland/toubiz-widget/src/components/visitor-channeling/tb-w-visitor-channeling-ticket.vue";e.default=r.exports}}]);