PageSourceSearch

https://www.fressnapf.de/_nuxt3/CiGP0sBh.js

js fressnapf.de collected 2026-10-01 10:16:08 UTC 2,939 bytes, 1 lines download raw bytes

1import{b as v,p as k,f as y,q as S,e as C}from"./DFiTElg1.js";import{m as A}from"./Dh7sbqG_.js";import{_ as M}from"./eHZaG105.js";import{d as B,bO as N,b4 as P,b6 as H,aR as T,a3 as m,aS as _,P as U,o as t,c as g,w as i,i as V,h as n,a0 as l,a1 as c,b as u,k as j,t as p}from"./CcC3R_JF.js";import"./D4egOwVo.js";import"./Bfz2Ga70.js";import"./B8uqutaq.js";import"./BL7E8cRT.js";const D=B({emits:["close"],data:()=>({selectedLocale:null,originalLocale:null,isLoading:!1}),computed:{..._(U,{availableLanguages:"getAvailableLanguages",language:"language",hrefLang:"hrefLang",configuration:"configuration"}),..._(m,{isAuthenticated:"isAuthenticated"})},mounted(){const e=this.configuration?.language?.defaultLanguage;this.selectedLocale=this.language?this.language:e.locale,this.originalLocale=this.selectedLocale},methods:{...T(m,{patchUser:"patch"}),async switchLocale(){if(this.isLoading=!0,!this.selectedLocale||this.originalLocale===this.selectedLocale){this.$emit("close");return}const e=this.$isocodes[this.selectedLocale],o=this.selectedLocale.replace("_","-"),r=this.hrefLang,d=r?r.filter(s=>s.language===o):null;if(this.isAuthenticated&&await this.patchUser({data:{language:{isocode:e}}}),N("i18n_redirected",{path:"/",expires:P(1)}).value=this.selectedLocale,d?.length)window.location.href=d[0].url;else{const s=(this._.provides[H]||this.$route).fullPath.split("/");s[1]=e,window.location.href=s.join("/")}}}}),E=["onClick"],F={class:"mls-actions"};function I(e,o,r,d,s,O){const f=k,L=y,w=A,b=S,h=C,$=M;return t(),g($,{"max-width":"m",onClose:o[1]||(o[1]=a=>e.$emit("close"))},{default:i(()=>[e.isLoading?(t(),g(f,{key:0})):V("",!0),(t(!0),n(l,null,c(e.availableLanguages,a=>(t(),g(L,{key:a.isocode,type:"h2",innerHTML:e.$t(`multilang.switch.headline.${a.isocode}`)},null,8,["innerHTML"]))),128)),u(b,{unstyled:""},{default:i(()=>[(t(!0),n(l,null,c(e.availableLanguages,a=>(t(),n("li",{key:a.isocode,onClick:R=>e.selectedLocale=a.locale},[u(w,{id:`languageSwitch-entry-${a.isocode}`,name:`languageSwitch-entry-${a.isocode}`,label:a.name,"radio-value":e.selectedLocale,value:a.locale},null,8,["id","name","label","radio-value","value"])],8,E))),128))]),_:1}),j("div",F,[u(h,{id:"languageSwitch-submit",class:"languageSwitch-btn","full-width":"",secondary:"",onClick:e.switchLocale},{default:i(()=>[(t(!0),n(l,null,c(e.availableLanguages,a=>(t(),n("span",{key:a.isocode,class:"lang-line"},p(e.$t(`multilang.switch.buttons.save.${a.isocode}`)),1))),128))]),_:1},8,["onClick"]),u(h,{id:"languageSwitch-cancel",class:"languageSwitch-btn","full-width":"","outline-black":"",onClick:o[0]||(o[0]=a=>e.$emit("close"))},{default:i(()=>[(t(!0),n(l,null,c(e.availableLanguages,a=>(t(),n("span",{key:a.isocode,class:"lang-line"},p(e.$t(`multilang.switch.buttons.cancel.${a.isocode}`)),1))),128))]),_:1})])]),_:1})}const X=Object.assign(v(D,[["render",I],["__scopeId","data-v-ee260e33"]]),{__name:"FnLanguageSwitchModal"});export{X 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.