PageSourceSearch

https://www.seitron.com/_nuxt/Box0_RvV.js

js seitron.com collected 2026-10-01 14:16:55 UTC 3,222 bytes, 1 lines download raw bytes

1import t from"./CmqHgFQP.js";import{u as e,a as o,b as a,r as i,c as s,d as r,e as n,w as l,o as u,f as c,g as p,h as d}from"./CU7mbr9U.js";import{u as m}from"./CJH33fv8.js";import{u as f}from"./BzSisaiP.js";import{u as g}from"./Bbkqul2f.js";import{u as v}from"./DKju34L4.js";import{u as w}from"./YaePIgtn.js";import{u as y}from"./Bseo6Ljt.js";import"./B2ET_pJw.js";import"./C2M0J-lY.js";import"./D7vKxXU2.js";import"./1Zd6nadK.js";function h(t,e){const o=new RegExp(`^/(${e.join("|")})/`);return t.replace(o,"/")}const j={__name:"[...slug]",async setup(j){let $,b;const{document:z,template:x}=([$,b]=l((()=>async function(t={}){var l,u;e();const c=o(),p=a(),{getItemByPath:d}=m(),g=i(null),v=i(!1),w=i(t.redirectOn404??!0),{public:y}=s(),{locales:j,locale:$}=r(),b=j.value.map((t=>t.code)),z=p.path;let x=t.startItem?c.$config.public.guids.startItem:null;const P=c.$config.public.clientPrefixes||["blog"],R=new RegExp(`^\\/(?:[a-z]{2}\\/)?(${P.join("|")})\\/(.+)`,"i");let T=z;R.test(z)?(x=null,T=function(t,e){return/^[a-z]{2}(\/|$)/.test(t.slice(1))?t:`/${e}${t.startsWith("/")?t:"/"+t}`}(z,$.value)):T=h(z,b),new RegExp("^\\/(?:[a-z]{2}\\/)?(case-history)\\/(.+)","i").test(z)&&(T+="?expand=properties[soluzioni,referenze]&fields=properties[$all,soluzioni[properties[area]],referenze[properties[area]]]"),new RegExp("^\\/(?:[a-z]{2}\\/)?(prodotto|product)\\/(.+)","i").test(z)&&(T+="?expand=properties[categorie,soluzioni,accessori]&fields=properties[$all,categorie[properties[area]],soluzioni[properties[area]]]");const{data:C,error:I}=await f(T,(async()=>{var t,e;if(!v.value){v.value=!0;try{const o=await d(T,x);let a=(null==(t=o.route)?void 0:t.path)||"";1===j.value.length&&(a=h(a,b));const i=null==(e=o.properties)?void 0:e.website;if(Array.isArray(i)&&!i.includes(y.websiteFilter))throw n({statusCode:404,statusMessage:"Not Found"});if(a!==z)throw n({statusCode:404,statusMessage:"Not Found"});if("emptyPage"===o.contentType)throw n({statusCode:404,statusMessage:"Not Found"});let s=null;if("prodotto"===o.contentType){const t=c.$config.public.guids.templateProdotto;s=await d(t)}if(["categoriaProdotto","sottocategoriaProdotto"].includes(o.contentType)){const t=c.$config.public.guids.templateListing;s=await d(t)}if(["categoriaNews"].includes(o.contentType)){const t=c.$config.public.guids.templateListingNews;s=await d(t)}return{fetchedDocument:o,templateDocument:s}}catch(o){throw o}finally{v.value=!1}}}),"$_zp5fpy05q");if(I.value){if(w)throw I.value;g.value=I.value}return{document:null==(l=null==C?void 0:C.value)?void 0:l.fetchedDocument,template:null==(u=null==C?void 0:C.value)?void 0:u.templateDocument,error:g}}({startItem:!0}))),$=await $,b(),$);g(z),v(),"prodotto"===(null==z?void 0:z.contentType)&&(null==z||z.properties,s().public.umbracoURL);const{trackVirtualPageview:P,trackViewItem:R,isContextReady:T}=w({document:z});return u((async()=>{await y(T).toBe(!0),P({document:z,visitor:{id:void 0,loginState:void 0,type:void 0,existingCustomer:void 0,lifetimeValue:void 0,newsletterSubscription:void 0,totalOrders:void 0}}),"prodotto"===(null==z?void 0:z.contentType)&&R(z)})),(e,o)=>{const a=t;return d(),c(a,{document:p(z),template:p(x)},null,8,["document","template"])}}};export{j 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.