(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1c596720"],{"11d9":function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));var r=c("c1df"),n=c.n(r);const i=(e,t="DD/MM/YYYY")=>e&&e.toString().length>0?n()(e).format(t):e},"75fd":function(e,t,c){"use strict";c.r(t);c("14d9");var r=c("f2bf");const n={class:"container mx-auto p-1 sm:p-1"},i={class:"mb-2 text-center bg-white p-6 rounded shadow-md md:mb-2"},l={class:"text-2xl font-semibold text-gray-900"},a={class:"text-base mb-4 text-gray-600"},o={class:"flex flex-wrap items-stretch justify-around gap-2 my-10"},s={key:0,class:"border rounded p-5 shadow-md w-full h-full flex flex-col"},b={class:"p-2 text-xl font-bold"},d={class:"my-5 p-5 text-base text-left border rounded"},p={class:"font-bold mb-2"},m={key:0,class:"mt-auto"},j={class:"font-bold mb-2 text-left text-base"},O={key:0,class:"text-left text-base mb-5"},u=["innerHTML"],g=["innerHTML"],y=["innerHTML"],k=["innerHTML"],h={key:1,class:"flex items-center gap-2 mb-5 justify-between"},x={class:"text-base"},f={class:"uppercase"},E={class:"lowercase"},V=["onClick"],N={key:2,class:"flex items-center gap-2 mb-5 justify-between"},v={class:"text-base"},w={key:0,class:"line-through text-red-700 me-2"},D={class:"text-green-700 font-bold text-lg"},$={class:"uppercase"},B={class:"lowercase"},S={class:"me-auto text-lg text-green-700 font-bold"},_=["onClick"],T={class:"text-base"},P={key:0},C=["onClick"],L={key:1},M={class:"w-full lg:min-w-96 lg:max-w-96"},H={class:"border rounded p-5 shadow-md w-full h-full flex flex-col"},J={class:"p-2 text-xl font-bold"},Y={class:"my-5 p-5 text-base text-left border rounded"},q={class:"font-bold mb-2"},F={class:"mt-auto"},A={class:"flex items-center gap-2 mb-5 justify-between"},z={key:0,class:"text-md text-left w-full border-2 border-red-700 rounded p-5"},G={class:"font-bold text-2xl mb-5 text-center"},I=["innerHTML"],K=["innerHTML"],Q={key:1},R={class:"mt-4 text-2xl font-semibold text-gray-900"},U={class:"text-base text-gray-600"},W={class:"text-base text-gray-600"},X={class:"flex justify-center items-center gap-2"},Z={href:"/#/auth/signup",class:"primary mt-4 inline-block px-4 py-2 text-lg text-white bg-primary-600 rounded hover:bg-primary-700"},ee={href:"/#/contact",class:"primary mt-4 inline-block px-4 py-2 text-lg text-white bg-primary-600 rounded hover:bg-primary-700"};function te(e,t,c,te,ce,re){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",n,[Object(r["createElementVNode"])("div",i,[Object(r["createElementVNode"])("h2",l,Object(r["toDisplayString"])(e.$t("pricing.header")),1),Object(r["createElementVNode"])("p",a,Object(r["toDisplayString"])(e.$t("pricing.text")),1),Object(r["createElementVNode"])("div",o,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.products,(t,c)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:c,class:"w-full lg:min-w-96 lg:max-w-96"},[t.prices&&t.prices.length>0?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",s,[Object(r["createElementVNode"])("div",b,Object(r["toDisplayString"])(t.name),1),Object(r["createElementVNode"])("div",d,[Object(r["createElementVNode"])("div",p,Object(r["toDisplayString"])(e.$t("description"))+":",1),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.$t("pricing.description"+c)),1)]),t.prices&&t.prices.length>0?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",m,[Object(r["createElementVNode"])("div",j,Object(r["toDisplayString"])(e.$t("pricing.prices"))+":",1),e.trial&&e.trial.trial_weeks>0?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",O,[Object(r["createElementVNode"])("div",{innerHTML:e.$t("pricing.free_trial",{weeks:e.trial?e.trial.trial_weeks:0})},null,8,u),Object(r["createElementVNode"])("div",{innerHTML:e.$t("pricing.trial_for_branch",{weeks:e.trial?e.trial.trial_weeks:0})},null,8,g),Object(r["createElementVNode"])("div",{innerHTML:e.$t("pricing.trial_start",{weeks:e.trial?e.trial.trial_weeks:0})},null,8,y),Object(r["createElementVNode"])("div",{innerHTML:e.$t("pricing.payments_start",{weeks:e.trial?e.trial.trial_weeks:0})},null,8,k)])):Object(r["createCommentVNode"])("",!0),e.getPrice(t,"month")?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",h,[Object(r["createElementVNode"])("div",x,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.getPrice(t,"month").unit_amount/100)+" ",1),Object(r["createElementVNode"])("span",f,Object(r["toDisplayString"])(e.getPrice(t,"month").currency),1),Object(r["createElementVNode"])("span",E," / "+Object(r["toDisplayString"])(e.$t("month"))+" / "+Object(r["toDisplayString"])(e.$t("branch")),1)]),Object(r["createElementVNode"])("button",{class:"primary",onClick:c=>e.$router.push({path:"/auth/signup",query:{price:e.getPrice(t,"month").id}})},Object(r["toDisplayString"])(e.$t("choose")),9,V)])):Object(r["createCommentVNode"])("",!0),e.getPrice(t,"year")?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",N,[Object(r["createElementVNode"])("div",v,[e.getPrice(t,"month")?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",w,Object(r["toDisplayString"])(.12*e.getPrice(t,"month").unit_amount),1)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("span",D,Object(r["toDisplayString"])(e.getPrice(t,"year").unit_amount/100),1),Object(r["createTextVNode"])(),Object(r["createElementVNode"])("span",$,Object(r["toDisplayString"])(e.getPrice(t,"year").currency),1),Object(r["createElementVNode"])("span",B," / "+Object(r["toDisplayString"])(e.$t("year"))+" / "+Object(r["toDisplayString"])(e.$t("branch")),1)]),Object(r["createElementVNode"])("div",S,Object(r["toDisplayString"])(e.$t("pricing.save"))+" "+Object(r["toDisplayString"])((12*e.getPrice(t,"month").unit_amount-e.getPrice(t,"year").unit_amount)/100),1),Object(r["createElementVNode"])("button",{class:"primary",onClick:c=>e.$router.push({path:"/auth/signup",query:{price:e.getPrice(t,"year").id}})},Object(r["toDisplayString"])(e.$t("choose")),9,_)])):Object(r["createCommentVNode"])("",!0),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.getOtherPrices(t),(t,c)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:c,class:"flex items-center gap-2 mb-5 justify-between"},[Object(r["createElementVNode"])("div",T,[Object(r["createTextVNode"])(Object(r["toDisplayString"])(t.unit_amount/100)+" "+Object(r["toDisplayString"])(t.currency),1),t.recurring?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",P," / "+Object(r["toDisplayString"])(t.recurring.interval),1)):Object(r["createCommentVNode"])("",!0)]),Object(r["createElementVNode"])("button",{class:"primary",onClick:c=>e.$router.push({path:"/auth/signup",query:{price:t.id}})},Object(r["toDisplayString"])(e.$t("choose")),9,C)]))),128))])):Object(r["createCommentVNode"])("",!0)])):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",L,Object(r["toDisplayString"])(e.$t("pricing.notAvailable")),1))]))),128)),Object(r["createElementVNode"])("div",M,[Object(r["createElementVNode"])("div",H,[Object(r["createElementVNode"])("div",J,Object(r["toDisplayString"])(e.$t("pricing.enterpriceProduct.name")),1),Object(r["createElementVNode"])("div",Y,[Object(r["createElementVNode"])("div",q,Object(r["toDisplayString"])(e.$t("description"))+":",1),Object(r["createElementVNode"])("div",null,Object(r["toDisplayString"])(e.$t("pricing.enterpriceProduct.description")),1)]),Object(r["createElementVNode"])("div",F,[Object(r["createElementVNode"])("div",A,[Object(r["createElementVNode"])("button",{class:"primary mx-auto",onClick:t[0]||(t[0]=t=>e.$router.push({path:"/contact"}))},Object(r["toDisplayString"])(e.$t("nav.contactNav")),1)])])])])]),e.otherDiscounts&&e.otherDiscounts.length>0?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",z,[Object(r["createElementVNode"])("div",G,Object(r["toDisplayString"])(e.$t("discounts.title")),1),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.otherDiscounts,(t,c)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:c},[Object(r["createElementVNode"])("div",{innerHTML:e.$t(t.description,{percent:t.percentValue,static:t.staticValue})},null,8,I),t.endDateToJoin?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,innerHTML:e.$t("discounts.valid",{validTo:e.formatDate(new Date(t.endDateToJoin))})},null,8,K)):Object(r["createCommentVNode"])("",!0)]))),128))])):Object(r["createCommentVNode"])("",!0),e.trial&&e.trial.trial_weeks>0?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Q,[Object(r["createElementVNode"])("h2",R,Object(r["toDisplayString"])(e.$t("pricing.button_header")),1),Object(r["createElementVNode"])("p",U,Object(r["toDisplayString"])(e.$t("pricing.trial",{weeks:e.trial.trial_weeks})),1),Object(r["createElementVNode"])("p",W,Object(r["toDisplayString"])(e.$t("pricing.consultations")),1),Object(r["createElementVNode"])("div",X,[Object(r["createElementVNode"])("a",Z,Object(r["toDisplayString"])(e.$t("nav.buttonStart",{weeks:e.trial.trial_weeks})),1),Object(r["createElementVNode"])("a",ee,Object(r["toDisplayString"])(e.$t("pricing.consultation_button")),1)])])):Object(r["createCommentVNode"])("",!0)])])}var ce=c("11d9"),re=Object(r["defineComponent"])({computed:{products(){return this.$store.state.products.filter(e=>e.prices&&e.prices.length>0)},trial(){return this.$store.state.discounts?this.$store.state.discounts.find(e=>e.trial_weeks&&e.trial_weeks>0):null},otherDiscounts(){return this.$store.state.discounts?this.$store.state.discounts.filter(e=>!e.trial_weeks):[]}},methods:{formatDate(e){return Object(ce["a"])(e)},getPrice(e,t){return e.prices&&e.prices.length>0?e.prices.find(e=>e.recurring&&e.recurring.interval===t):null},getOtherPrices(e){return e.prices?e.prices.filter(e=>e.recurring&&"month"!==e.recurring.interval&&"year"!==e.recurring.interval):[]}},mounted(){this.$store.dispatch("getProducts")}}),ne=c("d959"),ie=c.n(ne);const le=ie()(re,[["render",te]]);t["default"]=le}}]); //# sourceMappingURL=chunk-1c596720.6d72333d.js.map