PageSourceSearch

https://vidviday.ua/build/assets/OrderKids-QxC46tRn.js

js vidviday.ua collected 2026-09-24 19:49:01 UTC 4,310 bytes, 1 lines download raw bytes

1import A from"./SlideUpDown-B8NTH4EU.js";import C from"./FormCheckbox-xcpyf8sE.js";import U from"./FormNumberInput-GB0oGLNN.js";import{u as F}from"./vue-app-BMiJvgJo.js";import{b as P,a as T}from"./useFormData-BGsTbJ2W.js";import{c as n,w as x,o as M,z as h,I as a,q as D,A as m,L as w,x as p,B as k,F as B,J as N,C as O}from"./vue-core-Dey081zN.js";import{__ as d}from"./lang.vite-lZPxKlOb.js";import{u as S}from"./useI18nLocal-BIUD-2Zl.js";import{_ as E}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./useFormField-27T0LgMC.js";import"./vee-validate.esm-sRnDlA1a.js";import"./inputmask-CG6e6Hzd.js";import"./legacy-vendor-BzETucsV.js";import"./axios.min-Gf34Bpzi.js";import"./toast-DnL-DWXG.js";import"./site-B7ifWAOd.js";import"./debounce-CAnXazDT.js";const I={name:"OrderKids",components:{FormNumberInput:U,FormCheckbox:C,SlideUpDown:A},props:{show:Boolean},setup(s){const{locale:l}=S(),f=l.value,e=F(),c=n(()=>e.getters["orderTour/childrenDiscounts"]),y=n(()=>{const o=c.value.find(r=>r.category==="children_young");return o&&o.age_limit&&o.age_end?d("order-section.kids.from-to").replace(":from",o.age_start||"0").replace(":to",o.age_end):d("order-section.kids.up-6")}),g=n(()=>{const o=c.value.find(r=>r.category==="children_older");return o&&o.age_limit&&o.age_end?d("order-section.kids.from-to").replace(":from",o.age_start).replace(":to",o.age_end):d("order-section.kids.from-7-to-12")}),_=n(()=>{const o=c.value.find(r=>(r.category==="children_young"||r.category==="children_older"||r.category==="children")&&r.without_place==1);return o&&o.age_limit&&o.age_end?d("order-section.kids.from-to").replace(":from",o.age_start||"0").replace(":to",o.age_end):d("order-section.kids.up-6")}),u=n({get(){return e.state.orderTour.formData.children_young},set(o){e.commit("orderTour/UPDATE_FORM_DATA",{children_young:o})}}),t=n({get(){return e.state.orderTour.formData.without_place_count},set(o){e.commit("orderTour/UPDATE_FORM_DATA",{without_place_count:o})}}),i=P("orderTour","children"),V=n(()=>!!i.value),b=n(()=>{const o=e.state.orderTour.formData.places;return Math.floor(o/2)});x(()=>e.state.orderTour.formData.places,o=>{const r=Math.floor(o/2);e.state.orderTour.formData.without_place_count>r&&e.commit("orderTour/UPDATE_FORM_DATA",{without_place_count:r})});const v=n(()=>e.getters["orderTour/hasChildren"]);return x(v,o=>{o&&i.value!==1&&(i.value=1)}),M(()=>{v.value&&i.value!==1&&(i.value=1)}),{without_place:T("orderTour","without_place"),without_place_count:t,without_place_title:_,children:i,showSlideUp:V,children_young:u,young_title:y,children_older:T("orderTour","children_older"),older_title:g,childrenDiscounts:c,maxChildrenWithoutPlace:b,loc:f}}},L={class:"text text-medium title inline"},R={class:"text"},W=m("div",{class:"my-20"},null,-1),q={class:"mb-10"},K={key:0,class:"mb-10"},z={class:"mb-10"};function J(s,l,f,e,c,y){const g=w("form-checkbox"),_=w("slide-up-down"),u=w("form-number-input");return p(),h("div",null,[a(_,{"model-value":f.show,duration:300,style:{height:"auto!important"}},{default:D(()=>[m("span",L,k(s.__("order-section.kids.question")),1),a(g,{name:"children",modelValue:e.children,"onUpdate:modelValue":l[0]||(l[0]=t=>e.children=t),label:s.__("forms.yes")},null,8,["modelValue","label"]),m("div",R,[(p(!0),h(B,null,N(e.childrenDiscounts,t=>(p(),h("p",{key:t.id},k(t.title[e.loc]),1))),128))])]),_:1},8,["model-value"]),W,a(_,{"model-value":e.showSlideUp,duration:300,class:"order-children-input"},{default:D(()=>[m("div",q,[a(u,{modelValue:e.children_young,"onUpdate:modelValue":l[1]||(l[1]=t=>e.children_young=t),min:0,name:"children_young",title:e.young_title,suffix:s.__("order-section.kids.with-place")},null,8,["modelValue","title","suffix"])]),e.maxChildrenWithoutPlace>0?(p(),h("div",K,[a(u,{modelValue:e.without_place_count,"onUpdate:modelValue":l[2]||(l[2]=t=>e.without_place_count=t),min:0,max:e.maxChildrenWithoutPlace,name:"without_place_count",title:e.without_place_title,suffix:s.__("order-section.kids.without-place")},null,8,["modelValue","max","title","suffix"])])):O("",!0),m("div",z,[a(u,{modelValue:e.children_older,"onUpdate:modelValue":l[3]||(l[3]=t=>e.children_older=t),min:0,name:"children_older",title:e.older_title},null,8,["modelValue","title"])])]),_:1},8,["model-value"])])}const se=E(I,[["render",J]]);export{se as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.