import{Q as d,Y as P,u as h,O as y}from"./C-p8iwFB.js";import{u as L}from"./CzhqWxCr.js";import{a as g,b as v}from"./BS7h1Lqf.js";import{a as f}from"./Dr5sbCdv.js";async function F(o,e){const{data:l}=await L(async a=>{const n=[g(a,o,{})];e&&n.push(v(a));const[t,c]=await Promise.all(n);let i;if(e&&c){const r=c.data.story.content,u=`${e.charAt(0).toUpperCase()}${e.slice(1)}`,{prefix:m,postfix:p}=r;i={pickupPointPriceFormatted:f(r[`pickupPointPrice${u}`],m,p),homeDeliveryPriceFormatted:f(r[`homeDeliveryPrice${u}`],m,p)}}return{story:t?"story"in t.story?t==null?void 0:t.story.story:t==null?void 0:t.story:void 0,price:i}},"$jIouxx5mjx");return l.value}function R(){try{const o=d(),e=P(),l=e.public.i18n.defaultLocale,{locale:a}=h(),n=y(),t=a.value;a.value=l;const c=o.name?o.name.toString().split("___")[0]:"",i=n({name:c,params:o.params});a.value=t;const s=i.split("/").filter(r=>r!=="");return s.length&&s[0]===e.public.webId&&s.shift(),s.join("/")}catch(o){return console.error("Error in getLocalePath:",o),""}}export{F as a,R as u}; //# sourceMappingURL=BVTr7wNK.js.map