1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`a6fafdec27`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d36f1493-cb55-4aa1-827a-5f2d3562b4e7`,e._sentryDebugIdIdentifier=`sentry-dbid-d36f1493-cb55-4aa1-827a-5f2d3562b4e7`)}catch{}})();import{$t as e,At as t,C as n,Gt as r,H as i,Kt as a,L as o,R as s,_n as c,kt as l,mt as u}from"./WCVDKeko.js";import{$ as d}from"./BSu4Q5qC.js";import{nt as f}from"./DgBOw7Id.js";import{L as p,f as m}from"./C3X79py4.js";import{t as h}from"./CQTo04w0.js";import{t as g}from"./tVEgXjFm.js";e();var _={"fr-FR":[{from:`/signaletique/plaque-boite-aux-lettres/`,to:`/signaletique/plaque-boite-aux-lettres/famille/`,text:`Plaque boîte aux lettres`}]},v=(e,t)=>_[e]?.find(e=>e.from===t),y=(e,t)=>_[e]?.find(e=>e.to===t),b=(e,t)=>v(e,t)?.to||t,x=()=>{let e=l();return c(()=>[`/stempel/trodat-stempel1`].includes(e.path.replace(/\/$/,``)))},S=async(e=``)=>{let n=t(),i=(e||n.currentRoute.value.path).replace(`shopping/`,``),{shoppingPage:c}=g(),l=`pageInfo-${p(i+c)}`,u=h(l),d=s(u),f=w(),_=`${r().$i18n.locale.value}-${a().public.COUNTRY}`;return C(await o(u,async()=>{if(d?.data.value)return d.data.value;let e=y(_,i.endsWith(`/`)?i:`${i}/`),[{data:t},n]=await Promise.all([m(i),e?m(e.from).catch(()=>null):null]);delete t?.localizations;let r={...t,id:t?.id,type:c?`ShoppingPage`:t?.type};return A(r,_,n?.data),E(r),D(r),O(r),T(r),k(r),j(r),M(r,f),N(r),r},`$gYTAn_SdmZ`))},C=e=>{if(!e?.data?.value)return e;let t=e.data.value,n=l();return n.query.t&&t.crumbs?.length&&(t.crumbs[t.crumbs.length-1].text=n.query.t),e},w=()=>{let{t:e}=n();return{menuName:e(`COMMON_FILTER_TITLE_MATERIAL`),slugs:[e(`MATERIAL_PVC_SLUG`),e(`MATERIAL_LAITON_SLUG`),e(`MATERIAL_ALUMINIUM_SLUG`),e(`MATERIAL_PLEXIGLAS_SLUG`),e(`MATERIAL_PLEXITRANS_SLUG`),e(`MATERIAL_BOIS_SLUG`)]}},T=e=>{e.quicklinks?.forEach(e=>e?.elements?.forEach(e=>{e.target=e.page.url,delete e.page})),e?.custom?.[0]?.quicklinks&&delete e.custom[0].quicklinks},E=e=>{e?.custom?.[0]?.showCardsTags&&(e.showTags=e.custom[0].showCardsTags,delete e.custom[0].showCardsTags)},D=e=>{e?.custom?.[0]&&`hideSidebar`in e.custom[0]&&(e.sideColumn=!e.custom[0].hideSidebar),e?.custom?.[0]?.sections&&(e.sections=e.custom[0].sections,delete e.custom[0].sections),e?.custom?.[0]?.page_specs&&(e.pageSpecs={items:e.custom[0].page_specs.map(e=>({title:e.title,content:e.description,icon:e.icon}))},delete e.custom[0].page_specs),e.listingPro=e?.custom?.[0]?.__component===`page.listing-pro`||!1},O=e=>{e?.custom?.[0]?.showBlockRecoPro&&(e.showBlockRecoPro=e.custom[0].showBlockRecoPro,delete e.custom[0].showBlockRecoPro)},k=e=>{e.custom[0]?.listingFaq?.length&&(e.faqs=e.custom[0]?.listingFaq)},A=(e,t,n)=>{if(e.crumbs?.length&&(e.crumbs=e.crumbs.map(e=>{let n=v(t,e.path);return n?{text:n.text,path:n.to,title:n.text}:e}).filter((e,t,n)=>n.findIndex(({path:t})=>t===e.path)===t)),Array.isArray(e.defaultSidebars?.elements)){let n=v(t,e.defaultSidebars.link);e.defaultSidebars={...e.defaultSidebars,...n?{name:n.text,link:n.to}:{},elements:e.defaultSidebars.elements.map(e=>{let n=v(t,e.target);return n?{...e,title:n.text,target:n.to}:e}).filter(({target:e},t,r)=>(!n||e!==n.to)&&r.findIndex(t=>t.target===e)===t)}}e.hreflang=(n?.hreflang?.length?n.hreflang:e.hreflang)?.map(({locale:e,url:t})=>({locale:e,url:b(e,t)}))},j=e=>{if(!e.sidebars?.length||e.crumbs?.length<2){e.sidebars=null;return}let t=e.crumbs?.[2];e.sidebars={list:e.sidebars.map(e=>({...e,...e?.link?.url?{link:e?.link?.url}:{},elements:e.elements.map(e=>{let{url:t}=e.page;return delete e.page,{...e,target:t}})})),title:t?.title,link:t?.path}},M=(e,t)=>{if(e?.sidebars?.list?.length||!e?.defaultSidebars?.elements?.length||e.crumbs?.length<2)return;e.defaultSidebars.elements=e.defaultSidebars.elements.map(e=>({...e,title:d(e.title),realLink:!0}));let n=e.crumbs?.[e.crumbs.length-2],r=t.slugs.some(t=>e.url.endsWith(t)),i={name:t.menuName,elements:e.defaultSidebars.elements.filter(e=>t.slugs.some(t=>e.target.endsWith(t)))},a={name:e.defaultSidebars.name,link:e.defaultSidebars.link,elements:e.defaultSidebars.elements.filter(e=>!t.slugs.some(t=>e.target.endsWith(t)))},o={list:i.elements.length?r?[i]:[i,...a.elements.length?[a]:[]]:[a]};a.name!==n?.title&&(o.title=n?.title,o.link=n?.path),e.sidebars={...o}},N=e=>{e?.head&&(e.head.canonical=e.head.canonical?.url||null)},P=e=>{let t=i(`localizedPageUrls`,()=>[]),n=a().public.AVAILABLE_DOMAINS;t.value=e?.hreflang?.map(({locale:e,url:t})=>({locale:e,url:`https://${n[e.split(`-`)[1]].domain}${t}`}));let r=[];if(e?.head?.canonical&&r.push({rel:`canonical`,href:()=>e.head.canonical}),e?.hreflang?.length>1&&!x().value){let t=e.hreflang.find(({locale:e})=>e===`fr-FR`)||e.hreflang[0];r.push({rel:`alternate`,hreflang:`x-default`,href:`https://${n[t.locale.split(`-`)[1]].domain}${t.url}`},...e.hreflang.map(({locale:e,url:t})=>({rel:`alternate`,hreflang:e,href:`https://${n[e.split(`-`)[1]].domain}${t}`})))}r.length&&u({link:r})},F=(e=[])=>Object.entries(a().public.AVAILABLE_DOMAINS).map(e=>({country:e[0],domain:e[1].domain,locale:e[1].locale})).map(({country:t,domain:n,locale:r})=>{let i=e.find(({locale:e})=>f(e)===t),a=i?i.url:``;return{country:t,domain:n,locale:r||(i?i.locale:``),url:a,fullPath:`https://${n}${a}`}}),I=()=>{let e=(i(`localizedPageUrls`).value||[]).map(({locale:e,url:t})=>({locale:e,url:new URL(t).pathname}));return{localizedPageUrls:F(l().path===`/`?[]:e)}};export{P as i,I as n,S as r,x as t};
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.