import{U as o}from"./main-DHoZdmBw.js";const s={methods:{textListValue(e,i){if(e){const r=e.find(t=>t.Key===i||t.AttributeKey===i?t.Value:null);if(r)return r.Value}return null}}},u={mixins:[s],data(){return{mediaDownloadLink:null}},computed:{catalogService(){let e;switch("PROD"){case"PROD":e="https://api.fischer.group/catalog/v1/";break;case"UAT":e="https://api-uat.fischer.group/catalog/v1/";break;default:e="https://api-test.fischer.group/catalog/v1/";break}return e}},methods:{checkForMediaDownload({type:e,id:i}){const r=this.$fischer.catalogLocale()||(this.$fischer.siteLanguage()||"").replace("-","_")||"de_DE",t=`${this.catalogService}media/${e}/${i}/${this.$fischer.brandId()}/${r}`;this.mediaDownloadLink=t;try{o.head(t).then(n=>{n.status===204&&(this.mediaDownloadLink=null)})}catch(n){console.info(n),this.mediaDownloadLink=null}},getFamilyThumbnails(e){return e!=null&&e.Media?e.Media.filter(i=>i.OutputType==="PR"&&(i.Type==="Product Picture"||i.Type==="Product Category Picture"||i.Type==="Packaging"||i.Type==="Application Picture")||i.OutputType==="IS"&&i.Type==="Video"):[]}}};export{u as _,s as a};