materio-d9/web/themes/custom/materiotheme/assets/dist/module-pricing.976614f4a029aa2c3d63.bundle.js
2025-03-21 14:27:08 +01:00

1 line
1.9 KiB
JavaScript

"use strict";(self.webpackChunkmaterio_com=self.webpackChunkmaterio_com||[]).push([[634],{2218:(t,s,r)=>{r.r(s),r.d(s,{default:()=>l});var i=function(){var t=this,s=t._self._c;return s("div",{attrs:{id:"pricing"}},[t.products.length?t._l(t.products,(function(t){return s("Product",{key:t.uuid,attrs:{product:t}})})):s("div",{staticClass:"loading"},[s("span",[t._v(t._s(t.$t("default.Loading…")))])])],2)};i._withStripped=!0;var a=function(){var t=this,s=t._self._c;return s("article",{staticClass:"product"},[s("header",[s("h1",{domProps:{innerHTML:t._s(t.product.title)}})]),t._v(" "),s("section",{staticClass:"content"},[s("div",{staticClass:"description",domProps:{innerHTML:t._s(t.product.body)}})]),t._v(" "),t.isAdherent?t._e():s("aside",[t._l(t.product.variations,(function(r){return s("div",{key:r.id,staticClass:"variation"},[s("div",{staticClass:"variation-description",domProps:{innerHTML:t._s(r.description)}}),t._v(" "),s("div",{staticClass:"actions"},[s("button",{attrs:{type:"button",name:"addtocart"},on:{click:function(s){return s.stopPropagation(),t.checkaddtocart(s,r.id)}}},[t._v("\n "+t._s(t.$t("default."+t.variation_btn_txt[r.id]))+"\n ")])])])})),t._v(" "),8==t.product.id?s("div",[s("a",{staticClass:"btn",attrs:{href:"/pricing/multijoueur"}},[t._v("\n "+t._s(t.$t("default.Ask for a quote"))+"\n ")])]):t._e()],2)])};a._withStripped=!0;var o=r(3611),e=r(4651);const n={name:"Product",router:o.A,props:["product"],mixins:[e.A],data:()=>({quantity:1,variation_btn_txt:{6:"Yeees!",7:"Yay!",8:"Great!",9:"OKAY!"}}),created(){this.product}};var c=r(4486);const d=(0,c.A)(n,a,[],!1,null,"a02cf0fe",null).exports;var u=r(5353);const p={name:"Pricing",computed:{...(0,u.aH)({products:t=>t.Pages.products})},created(){this.products.length||this.getProducts()},methods:{...(0,u.i0)({getProducts:"Pages/getProducts"})},components:{Product:d}};const l=(0,c.A)(p,i,[],!1,null,"6c4e03c6",null).exports}}]);