1import{eu as k,dj as n,ev as l,ew as u,ey as g}from"./IwkjGYkM.js";import{a as i}from"./BlwXWODy.js";import{V as c}from"./DwQqKbSo.js";import"./Dm-7p-_U.js";import"./E92-5bix.js";try{(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new o.Error().stack;d&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[d]="7ad42e88-9ddc-4e55-83e1-1516db4aa955",o._sentryDebugIdIdentifier="sentry-dbid-7ad42e88-9ddc-4e55-83e1-1516db4aa955")})()}catch(o){}const R=k(async(o,d)=>{var C,h,p,y,A,b;let e,t;const{params:a,path:T,meta:s}=o;if(!(s.name===n.GS&&a.code===d.params.code)&&!(s.name!==n.GS&&a.section===d.params.section))try{if(s.name===n.G_CATEGORY||s.name===n.GC){const{data:{value:r}}=([e,t]=l(()=>i("validate-gcategory-".concat(a.section),()=>c.checkCodeGC(a.section))),e=await e,t(),e);if(!r)return u()}else if(s.name===n.GS){const{data:{value:r}}=([e,t]=l(()=>i("validate-gs-".concat(a.code),()=>c.checkCodeLanding(a.code))),e=await e,t(),e);if(!r)return u()}else if(s.name===n.CATALOG){const{data:{value:r}}=([e,t]=l(()=>i("validate-catalog-".concat(a.section),()=>c.checkCodeCatalog(a.section))),e=await e,t(),e);if(!r){const w=[i("validate-catalog-manufacturer-".concat(a.section),()=>c.checkCodeManufacturer(a.section)),i("validate-catalog-series-".concat(a.section),()=>c.checkCodeSeries(a.section)),i("validate-catalog-author-".concat(a.section),()=>c.checkCodeAuthor(a.section))],[f,m,v]=([e,t]=l(()=>Promise.allSettled(w)),e=await e,t(),e),_=(f==null?void 0:f.status)==="fulfilled"?(h=(C=f.value)==null?void 0:C.data)==null?void 0:h.value:!1,$=(m==null?void 0:m.status)==="fulfilled"?(y=(p=m.value)==null?void 0:p.data)==null?void 0:y.value:!1,G=(v==null?void 0:v.status)==="fulfilled"?(b=(A=v.value)==null?void 0:A.data)==null?void 0:b.value:!1;return _?g("/manufacturer/".concat(a.section,"/"),{redirectCode:301}):$?g("/manufacturer/".concat(a.section,"/"),{redirectCode:301}):G?g("/author/".concat(a.section,"/"),{redirectCode:301}):u()}}else if(s.name===n.MANUFACTURER){const{data:{value:r}}=([e,t]=l(()=>i("validate-manufacturer-".concat(a.section),()=>c.checkCodeManufacturer(a.section))),e=await e,t(),e);if(!r)return u()}}catch(r){return console.error("Validation error:",r),u()}});export{R 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.