materio-d9/web/themes/custom/materiotheme/assets/dist/module-base.cfc12ce577588cf...

1 line
8.9 KiB
JavaScript
Raw Normal View History

(self.webpackChunkmaterio_com=self.webpackChunkmaterio_com||[]).push([[694],{3775:(e,t,s)=>{"use strict";s.d(t,{Z:()=>_});var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("article",{staticClass:"card search-card"},[s("header",{on:{click:function(t){return t.preventDefault(),e.openModalCard(t)}}},[e.hasDBAccess?s("h1",[e._v(e._s(e.item.title))]):e._e(),e._v(" "),s("h4",[e._v(e._s(e.item.short_description))]),e._v(" "),e.hasDBAccess?s("span",{staticClass:"ref"},[e._v(e._s(e.item.reference))]):e._e()]),e._v(" "),e.hasDBAccess?s("nav",{staticClass:"tools"},[s("section",{staticClass:"tool flags"},[s("span",{staticClass:"btn mdi mdi-folder-outline"}),e._v(" "),s("div",{staticClass:"tool-content"},[s("ul",[e._l(e.flagcolls,(function(t){return e.flagcolls?s("li",{key:t.id},[s("span",{staticClass:"flag mdi",class:[e.flagIsLoading(t.id)?"mdi-loading mdi-spin":e.flagIsActive(t.id)?"mdi-close-circle isActive":"mdi-plus"],attrs:{collid:t.id},on:{click:function(t){return t.preventDefault(),e.onFlagActionCard(t)}}},[e._v("\n "+e._s(t.name)+"\n ")])]):e._e()})),e._v(" "),e.collsLength<15?s("li",{staticClass:"create-flag"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.new_folder_name,expression:"new_folder_name"}],attrs:{placeholder:"new folder"},domProps:{value:e.new_folder_name},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),e.onCreateFlagColl(t))},input:function(t){t.target.composing||(e.new_folder_name=t.target.value)}}}),e._v(" "),s("span",{staticClass:"add-btn mdi",class:e.addFlagBtnClassObj,on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.onCreateFlagColl(t)}}})]):e._e()],2)])]),e._v(" "),e.item.samples&&e.item.samples.length?s("section",{staticClass:"tool samples"},[s("span",{staticClass:"btn mdi mdi-map-marker-star-outline"}),e._v(" "),s("div",{staticClass:"tool-content"},[s("span",{staticClass:"label"},[e._v(e._s(e.$t("materio.Samples")))]),e._v(" "),s("ul",e._l(e.item.samples,(function(t){return s("li",{key:t.showroom.id},[s("span",{staticClass:"showroom"},[e._v(e._s(t.showroom.name))]),e._v(": "+e._s(t.location)+"\n ")])})),0)])]):e._e(),e._v(" "),e.item.note?s("section",{staticClass:"tool note"},[s("span",{staticClass:"btn mdi mdi-note"})]):e._e(),e._v(" "),s("section",{staticClass:"tool print"},[s("a",{attrs:{href:e.item.path+"/printable/print",target:"_blank"}},[s("span",{staticClass:"btn mdi mdi-printer"})])])]):e._e(),e._v(" "),s("section",{directives:[{name:"switcher",rawName:"v-switcher"}],staticClass:"images"},e._l(e.item.images,(function(t,a){return s("figure",{directives:[{name:"lazy",rawName:"v-lazy",value:a,expression:"index"}],key:t.url,staticClass:"lazy"},[s("img",{attrs:{"data-src":t.style_cardmedium_url,title:t.title}}),e._v(" "),s("img",{staticClass:"blank",attrs:{src:e.blanksrc},on:{click:function(t){return t.preventDefault(),e.openModalCard(t)}}})])})),0)])};a._withStripped=!0;var i=s(629),n=s(8357),l=s(3939),r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{attrs:{id:"member-warning"}},[s("h2",[e._v(e._s(e.$t("materio.Oops")))]),e._v(" "),s("p",[e._v(e._s(e.$t("materio.To be able to access to our 8000+ materials you need become a member")))]),e._v(" "),s("a",{attrs:{href:"/pricing"},on:{click:function(t){return t.preventDefault(),e.onclick(t)}}},[e._v(e._s(e.$t("materio.Join us")))])])};r._withStripped=!0;const o={name:"MemberWarning",router:s(4408).Z,data:()=>({}),methods:{onclick(){this.$modal.hideAll(),this.$router.push({name:"pricing"})}}};var c=s(1900),m=(0,c.Z)(o,r,[],!1,null,"bce9630c",null);m.options.__file="web/themes/custom/materiotheme/vuejs/components/Content/MemberWarning.vue";const d=m.exports,h={name:"Card",props:["item"],mixins:[n.Z],components:{ModalCard:l.default,MemberWarning:d},data:()=>({blanksrc:`${drupalSettings.path.themePath}/assets/img/blank.gif`,loadingFlag:!1,new_folder_name:"",is_creating_folder:!1}),computed:{...(0,i.rn)({flagcolls:e=>e.User.flagcolls,isloggedin:e=>e.Use