HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/wwwroot/js/site/app/booking.js
(self.webpackChunk=self.webpackChunk||[]).push([[862],{7757:(e,t,n)=>{e.exports=n(5666)},2073:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{J:()=>s,Z:()=>i});var i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";r(this,e),o(this,"type",s.info),o(this,"title",""),o(this,"lines",[]),o(this,"hasIcon",!1),this.lines=t,this.title=n}var t,n,i;return t=e,(n=[{key:"setType",value:function(e){return this.type=e,this}},{key:"enableIcon",value:function(){return this.hasIcon=!0,this}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),s={info:"action",warning:"warning",error:"error",success:"success"}},4837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(8253),a=n(2073),o=n(6983),i=(0,r.iH)(null);function s(){var e=(0,o.Z)().trans,t=(0,r.iH)([]),n=(0,r.iH)(!1),s=function(){t.value=[],n.value=!1},c=function(r){var o=0;switch(r.response&&r.response.status&&(o=r.response.status),o){case 417:t.value.push(new a.Z([r.response.data.message],"Error").setType(a.J.warning));break;case 412:t.value.push(new a.Z([r.response.data.message],"Bevestig wijziging").setType(a.J.info)),n.value=!0;break;default:console.warn(r);var i=new a.Z([e("oops_something_went_wrong")],"Error").setType(a.J.error);t.value.push(i)}};return{cart:i,maxAmount:40,updateProduct:function(e,t){return s(),window.axios.post("/api/cart/item/".concat(e),t).catch((function(e){c(e)}))},removeProduct:function(e){return s(),window.axios.delete("/api/cart/item/".concat(e)).catch((function(e){c(e)}))},loadCart:function(){return s(),window.axios.get("/api/cart/index").then((function(e){i.value=e.data})).catch((function(e){c(e)}))},updateMeta:function(e){return s(),window.axios.post("/api/cart/update-meta",e).then((function(e){})).catch((function(e){c(e)}))},cartErrors:t,showForceCartUpdate:n}}},5666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof m?t:m,o=Object.create(a.prototype),i=new S(r||[]);return o._invoke=function(e,t,n){var r=p;return function(a,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===a)throw o;return Z()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=D(i,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:f,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,i),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",d="executing",h="completed",v={};function m(){}function g(){}function _(){}var w={};c(w,o,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(E([])));b&&b!==n&&r.call(b,o)&&(w=b);var k=_.prototype=m.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(a,o,i,s){var c=l(e[a],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(p).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(c.arg)}var a;this._invoke=function(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}}function D(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,D(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var a=l(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function H(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function E(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:Z}}function Z(){return{value:t,done:!0}}return g.prototype=_,c(k,"constructor",_),c(_,"constructor",g),g.displayName=c(_,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},x(L.prototype),c(L.prototype,i,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new L(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(k),c(k,s,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(H),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(r,a){return s.type="throw",s.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),H(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;H(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},233:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(8253),a=["data-type"],o={key:0,class:"flash-message__icon"},i={class:"flash-message__icon-img"},s=["href"],c={class:"flash-message__text"},u=["innerHTML"],l={key:0},p={key:1,class:"flash-message__close"},f=[(0,r._)("use",{href:"/img/icon-close.svg#close"},null,-1)];const d={name:"FlashMessage",props:{messageType:{type:String,default:"action"},lines:{type:Array,required:!0},withoutIcon:{type:Boolean,default:!1},withClose:{type:Boolean,default:!1},iconName:{type:String}},setup:function(e){return{icon:(0,r.Fl)((function(){if(void 0!==e.iconName)return"/img/icon-"+e.iconName+".svg#"+e.iconName;switch(e.messageType){case"warning":return"/img/icon-warning.svg#warning";case"error":return"/img/icon-cross--circle.svg#cross--circle";case"success":return"/img/icon-check--circle.svg#check--circle";default:return"/img/icon-info.svg#info"}}))}}};const h=(0,n(3744).Z)(d,[["render",function(e,t,n,d,h,v){return(0,r.wg)(),(0,r.iD)("div",{class:"flash-message","data-type":n.messageType},[n.withoutIcon?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("span",o,[((0,r.wg)(),(0,r.iD)("svg",i,[(0,r._)("use",{href:d.icon},null,8,s)]))])),(0,r._)("span",c,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.lines,(function(e,t){return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("span",{innerHTML:e},null,8,u),t<=n.lines.length?((0,r.wg)(),(0,r.iD)("br",l)):(0,r.kq)("",!0)],64)})),256))]),n.withClose?((0,r.wg)(),(0,r.iD)("svg",p,f)):(0,r.kq)("",!0)],8,a)}]])},6437:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>V});var r=n(8253),a={key:0,class:"o-modal"},o={key:0,class:"o-modal__content"},i={class:"o-modal__header"},s={class:"o-modal__title"},c={key:0,class:"o-model__selected"},u=(0,r._)("div",{class:"c-form-element__label"},"Gekozen vestiging",-1),l={class:"o-modal__current"},p=(0,r._)("br",null,null,-1),f=(0,r.Uk)(" Niet mogelijk op gekozen vestiging."),d=(0,r._)("br",null,null,-1),h=(0,r.Uk)(" Wijzig vestiging in de winkelwagen. "),v=["href"],m=[(0,r._)("svg",{width:"12",height:"12"},[(0,r._)("use",{href:"/img/icon-edit.svg#edit"})],-1)],g={class:"o-modal__details"},_={key:0,class:"c-form-element__label"},w=(0,r._)("img",{class:"c-input__icon",src:"/img/calendar.svg"},null,-1),y=["placeholder"],b={key:1,class:"c-form-element__label u-spacing-mt2"},k=(0,r._)("img",{class:"c-input__icon",src:"/img/location.svg"},null,-1),x={value:"",disabled:"disabled"},L=["value","disabled"],D={class:"c-form-element__label u-spacing-mt2"},T=(0,r._)("img",{class:"c-input__icon",width:"23",height:"23",src:"/img/icon-clock.svg"},null,-1),H={value:"",disabled:"disabled"},S=["value","disabled"],E={class:"c-form-element__label u-spacing-mt2"},Z=(0,r._)("img",{class:"c-input__icon",src:"/img/people.svg"},null,-1),z=["max"],C=(0,r._)("div",{class:"c-form-element__label",style:{"font-size":"12px"}},"Het aantal personen kan gewijzigd worden tot 72 uur voor de activiteit",-1),P={key:1,class:"o-modal__confirm"},q=["innerHTML"],j={key:2,class:"u-spacing-mt2 u-spacing-mlr2"},O={class:"c-button__text"},F={class:"o-modal__cancel"},N={class:"c-text-button__text"};var I=n(7757),Y=n.n(I),J=n(6983),U=n(233),M=n(2073),G=n(6667),A=n(4837);function R(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,a)}function B(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){R(o,r,a,i,s,"next",e)}function s(e){R(o,r,a,i,s,"throw",e)}i(void 0)}))}}const K={name:"PlanModal",components:{FlashMessage:U.Z},emits:["close","success-close"],props:{cartRoute:{type:String,required:!0},productId:{required:!0},offerLink:{type:String,required:!0},sessionDate:{type:String},sessionLocation:{type:String},onSuccessClose:{type:Boolean}},setup:function(e,t){var n=t.emit,a=(0,J.Z)().trans,o=(0,r.BK)(e).productId,i=(0,A.Z)().maxAmount,s=(0,r.iH)([]),c=(0,r.iH)(null),u=(0,r.iH)([]),l=(0,r.iH)(!1),p=(0,r.iH)(""),f=(0,r.iH)(null),d=(0,r.iH)(null),h=(0,r.iH)(!1),v=(0,r.iH)("");e.sessionDate&&(f.value=e.sessionDate,l.value=!0),e.sessionLocation&&(p.value=parseInt(e.sessionLocation),l.value=!0);var m=(0,r.iH)(!0),g=(0,r.iH)(null),_=(0,r.Fl)((function(){return!!c.value&&(null!==f.value&&(""!==p.value&&(!(!isset(w.value)||!w.value.available)&&((!c.value.has_timeslot_selection||""!==v.value)&&(null!==d.value&&!(0!==c.value.required_age&&!h.value))))))})),w=(0,r.Fl)((function(){return""===p.value?null:u.value.find((function(e){return e.id==p.value}))})),y=(0,r.Fl)((function(){return!(!w.value||!c.value)&&(!!w.value.available&&(!c.value.has_timeslot_selection||""!==v.value))})),b=function(){var e={minDate:(new Date).fp_incr(10)};f&&(e.defaultDate=f),(0,G.Z)(g.value,e),setTimeout((function(){m.value=!1}),100)},k=function(){s.value=[],window.axios.get("/api/availability/".concat(o.value,"/check"),{params:{date:f.value}}).then(function(){var e=B(Y().mark((function e(t){var n;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.status,e.next=200===e.t0?3:204===e.t0?6:10;break;case 3:return u.value=t.data.data,console.log(t.data.data),e.abrupt("break",12);case 6:return n=new M.Z([a("product_no_locations")]).setType(M.J.warning),s.value.push(n),u.value=[],e.abrupt("break",12);case 10:u.value=[],s.value.push(new M.Z([a("unknown_response")]).setType(M.J.warning));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){x(e)}))},x=function(e){console.error(e);var t=new M.Z([a("oops_something_went_wrong")],"Error").setType(M.J.error);s.value.push(t)},L=function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s.value=[],d.value=null,v.value="",n(e?"success-close":"close")};return(0,r.YP)(o,function(){var t=B(Y().mark((function t(n){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=3;break}return c.value=null,t.abrupt("return");case 3:return t.next=5,e.sessionLocation&&e.sessionLocation!=p.value&&(p.value=parseInt(e.sessionLocation)),s.value=[],void window.axios.get("/api/availability/".concat(o.value,"/info")).then(function(){var e=B(Y().mark((function e(t){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.value=t.data.data,e.next=3,(0,r.Y3)();case 3:b();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){x(e)}));case 5:l.value&&f.value&&k();case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,r.YP)(f,(function(e){if(!e)return u.value=[],void(p.value="");f.value&&k()})),{hasAnimationClasses:m,product:c,trans:a,messages:s,date:f,location:p,amountOfPersons:d,maxAmount:i,confirmed:h,canSubmit:_,submitForm:function(){if(s.value=[],""===d.value||Number.isNaN(d.value))s.value.push(new M.Z([a("no_valid_number")]).setType(M.J.warning));else{var t=parseInt(d.value);if(t<c.value.minimum_amount_of_persons)s.value.push(new M.Z([a("lower_then_minimum",{amount:c.value.minimum_amount_of_persons})]).setType(M.J.warning));else if(0!==c.value.maximum_amount_of_persons&&t>c.value.maximum_amount_of_persons)s.value.push(new M.Z([a("higher_then_prod_maximum",{amount:c.value.maximum_amount_of_persons})]).setType(M.J.warning));else if(t>i)s.value.push(new M.Z([a("higher_then_maximum",{link:e.offerLink})]).setType(M.J.warning));else{var n=new FormData;n.append("product_id",o.value),n.append("location_id",p.value),n.append("date",f.value),n.append("timeSlot",v.value),n.append("amount_of_persons",d.value),window.axios.post("/api/cart/fill-cart",n).then(function(){var t=B(Y().mark((function t(n){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=n.status,t.next=206===t.t0?3:204===t.t0?13:15;break;case 3:if(!n.data.messages){t.next=7;break}s.value.push(new M.Z(n.data.messages).setType(M.J.warning)),t.next=12;break;case 7:if(!n.data.message){t.next=11;break}s.value.push(new M.Z([n.data.message]).setType(M.J.warning)),t.next=12;break;case 11:throw new Error("provide message or messages as key");case 12:return t.abrupt("break",16);case 13:return e.onSuccessClose?L(null,!0):window.location.href=e.cartRoute,t.abrupt("break",16);case 15:s.value.push(new M.Z([a("unknown_response")]).setType(M.J.warning));case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){x(e)}))}}},close:L,datepicker:g,availableLocations:u,selectedLocation:w,timeSlot:v,hasSession:l,canSelectPersons:y}}};const V=(0,n(3744).Z)(K,[["render",function(e,t,n,I,Y,J){var U=(0,r.up)("flash-message");return null!==n.productId?((0,r.wg)(),(0,r.iD)("div",a,[(0,r._)("div",{class:"o-modal__shader",onClick:t[0]||(t[0]=function(){return I.close&&I.close.apply(I,arguments)})}),(0,r._)("section",{class:(0,r.C_)(["o-modal__main",{"is-modal-visible":!I.hasAnimationClasses}])},[I.product?((0,r.wg)(),(0,r.iD)("div",o,[(0,r._)("div",i,[(0,r._)("button",{type:"button",class:"o-modal__close",onClick:t[1]||(t[1]=function(){return I.close&&I.close.apply(I,arguments)})}),(0,r._)("div",s,(0,r.zw)(I.product.name),1)]),I.hasSession?((0,r.wg)(),(0,r.iD)("div",c,[I.selectedLocation?((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[u,(0,r._)("div",l,[(0,r.Uk)((0,r.zw)(I.selectedLocation.name),1),p,(0,r.Uk)(" "+(0,r.zw)(I.date),1)])],64)):((0,r.wg)(),(0,r.iD)(r.HY,{key:1},[f,d,h],64)),(0,r._)("a",{class:"o-modal__edit",href:n.cartRoute},m,8,v)])):(0,r.kq)("",!0),(0,r._)("div",g,[I.hasSession?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("label",_,(0,r.zw)(I.trans("date")),1)),(0,r._)("div",{class:(0,r.C_)(["c-input-wrapper",{"is-locked":I.hasSession}])},[w,(0,r.wy)((0,r._)("input",{class:"c-search__input c-input",ref:"datepicker",name:"date",placeholder:I.trans("choose_a_date"),type:"date","onUpdate:modelValue":t[2]||(t[2]=function(e){return I.date=e})},null,8,y),[[r.nr,I.date]])],2),I.hasSession?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("label",b,(0,r.zw)(I.trans("location")),1)),(0,r._)("div",{class:(0,r.C_)(["c-input-wrapper",{"is-disabled":0===I.availableLocations.length,"is-locked":I.hasSession}])},[k,(0,r.wy)((0,r._)("select",{class:"c-select","onUpdate:modelValue":t[3]||(t[3]=function(e){return I.location=e})},[(0,r._)("option",x,(0,r.zw)(I.trans("select_location")),1),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(I.availableLocations,(function(e){return(0,r.wg)(),(0,r.iD)("option",{value:e.id,disabled:!e.available},[(0,r.Uk)((0,r.zw)(e.name)+" ",1),""!==e.reason?((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[(0,r.Uk)("( "+(0,r.zw)(I.trans("reason."+e.reason))+" )",1)],64)):(0,r.kq)("",!0)],8,L)})),256))],512),[[r.bM,I.location]])],2),I.product&&I.product.has_timeslot_selection?((0,r.wg)(),(0,r.iD)(r.HY,{key:2},[(0,r._)("label",D,(0,r.zw)(I.trans("time")),1),(0,r._)("div",{class:(0,r.C_)(["c-input-wrapper",{"is-disabled":!I.selectedLocation||!I.selectedLocation.available}])},[T,(0,r.wy)((0,r._)("select",{class:"c-select","onUpdate:modelValue":t[4]||(t[4]=function(e){return I.timeSlot=e})},[(0,r._)("option",H,(0,r.zw)(I.trans("select_time")),1),I.selectedLocation?((0,r.wg)(!0),(0,r.iD)(r.HY,{key:0},(0,r.Ko)(I.selectedLocation.timeSlots,(function(e){return(0,r.wg)(),(0,r.iD)("option",{value:e.slot,disabled:!e.available},[(0,r.Uk)((0,r.zw)(e.label)+" ",1),e.available?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[(0,r.Uk)("( "+(0,r.zw)(I.trans("reason.full"))+" )",1)],64))],8,S)})),256)):(0,r.kq)("",!0)],512),[[r.bM,I.timeSlot]])],2)],64)):(0,r.kq)("",!0),(0,r._)("label",E,(0,r.zw)(I.trans("amount_of_persons")),1),(0,r._)("div",{class:(0,r.C_)(["c-input-wrapper",{"is-disabled":!I.canSelectPersons}])},[Z,(0,r.wy)((0,r._)("input",{class:"c-input",type:"number",name:"amount_of_persons",pattern:"[0-9]+",min:"0",max:0===I.product.maximum_amount_of_persons?null:I.product.maximum_amount_of_persons,"onUpdate:modelValue":t[5]||(t[5]=function(e){return I.amountOfPersons=e})},null,8,z),[[r.nr,I.amountOfPersons]]),C],2)]),0!==I.product.required_age?((0,r.wg)(),(0,r.iD)("div",P,[(0,r._)("label",{class:(0,r.C_)(["c-checkbox",{"is-disabled":null===I.amountOfPersons||!I.selectedLocation.available}])},[(0,r.wy)((0,r._)("input",{class:"c-checkbox__input",type:"checkbox",name:"modal-confirm-age","onUpdate:modelValue":t[6]||(t[6]=function(e){return I.confirmed=e})},null,512),[[r.e8,I.confirmed]]),(0,r._)("span",{class:"c-checkbox__text",innerHTML:I.trans("confirm_age_message",{age:I.product.required_age})},null,8,q)],2)])):(0,r.kq)("",!0),I.messages.length>0?((0,r.wg)(),(0,r.iD)("div",j,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(I.messages,(function(e){return(0,r.wg)(),(0,r.j4)(U,{lines:e.lines,"without-icon":e.withoutIcon,"message-type":e.type},null,8,["lines","without-icon","message-type"])})),256))])):(0,r.kq)("",!0),(0,r._)("div",{class:(0,r.C_)(["o-modal__submit",{"is-disabled":!I.canSubmit}])},[(0,r._)("button",{class:"c-button c-button--wide",type:"button",onClick:t[7]||(t[7]=function(){return I.submitForm&&I.submitForm.apply(I,arguments)})},[(0,r._)("span",O,(0,r.zw)(I.trans("plan_day")),1)])],2),(0,r._)("div",F,[(0,r._)("button",{type:"button",class:"c-text-button c-text-button--wide c-text-button--font-size-s",onClick:t[8]||(t[8]=function(){return I.close&&I.close.apply(I,arguments)})},[(0,r._)("span",N,(0,r.zw)(I.trans("cancel")),1)])])])):(0,r.kq)("",!0)],2)])):(0,r.kq)("",!0)}]])}}]);
//# sourceMappingURL=booking.js.map