PageSourceSearch

https://www.thespicetree.se/_nuxt/BFEV3b9e.js

js thespicetree.se collected 2026-10-10 02:08:04 UTC 4,352 bytes, 1 lines download raw bytes

1import{ad as p,ae as b,z as f,g as d}from"./IINH0Rcf.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"adcbdce939003266b75eeac8db586be912e3768c"};var s=new a.Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="34fb43e0-039a-43fd-b30d-4db40f400756",a._sentryDebugIdIdentifier="sentry-dbid-34fb43e0-039a-43fd-b30d-4db40f400756")}catch{}})();const u={"new-products":"categories.newProducts","spices-salt":"categories.spicesAndSalt","tea-top":"categories.tea",coffee:"categories.coffee","jam-honey-chutney":"categories.jamAndChutney","oil-vinegar":"categories.oilAndVinegar","sauces-marinades":"categories.saucesAndMarinades","chocolate-sweets":"categories.chocolateAndSweets","pasta-pesto-tapenade":"categories.pastaAndTapenade","crackers-biscuits":"categories.crackersAndBiscuits","beverages-lemonade":"categories.beverages","fardiga-paket":"categories.gifts",christmas:"categories.christmas","home-accessories":"categories.homeAndAccessories","buy-in-kilos":"categories.buyInKilos","bulk-tea-ingredients":"categories.teaIngredients","bulk-aromas":"categories.aromas"},k={"individual-spices":"categories.individualSpices","bulk-individual-spices":"categories.individualSpices","spice-blends":"categories.spiceBlends","bulk-spice-blends":"categories.spiceBlends","salt-cat":"categories.salt","coarse-salt":"categories.coarseSalt","bulk-coarse-salt":"categories.coarseSalt","flake-salt":"categories.flakeSaltFleur","bulk-flake-salt":"categories.flakeSalt",herbs:"categories.herbs",pepper:"categories.pepper","baking-dessert":"categories.bakingDessert",chicken:"categories.chicken",dipping:"categories.dipping",fish:"categories.fish",meat:"categories.meat","pasta-soup":"categories.pastaSoup",salad:"categories.salad",vegetables:"categories.vegetables","black-tea":"categories.blackTea","bulk-black-tea":"categories.blackTea","green-tea":"categories.greenTea","bulk-green-tea":"categories.greenTea","red-tea":"categories.redTea","bulk-red-tea":"categories.redTea","white-tea":"categories.whiteTea","fruit-herbal-tea":"categories.fruitHerbalTea","bulk-fruit-tea":"categories.fruitTea","bulk-herbal-blends":"categories.herbalBlends","bulk-spices-salt":"categories.spicesAndSalt","bulk-tea":"categories.tea",accessories:"categories.accessories","candles-diffusers":"categories.candlesDiffusers","tools-kitchen":"categories.toolsKitchen",glogg:"categories.glogg"},v=new Set(["new-products","uncategorised"]),m=new Set(["tst-kryddor-i-vit-tub"]),w={losvikt:"packagingTypes.loose",pase:"packagingTypes.bag","pet-burk":"packagingTypes.petJar",platburk:"packagingTypes.tin",glasburk:"packagingTypes.glassJar",kvarn:"packagingTypes.grinder",tub:"packagingTypes.tube",burk:"packagingTypes.jar",flaska:"packagingTypes.bottle",ask:"packagingTypes.box",plastask:"packagingTypes.plasticBox"};function h(){return p("nav-categories",()=>b(),{dedupe:"defer",getCachedData:(a,s)=>s.payload.data[a]||s.static.data[a]})}function y(a){const s={};if(!a?.productCategories?.nodes)return s;for(const n of a.productCategories.nodes){let l=function(c){for(const g of c||[]){const t=g.slug||"";t&&(s[t]=i),l(g.children?.nodes||[])}};const i=n.slug||"";l(n.children?.nodes||[])}return s}function T(a){const s=new Set(Object.keys(u));if(!a?.productCategories?.nodes)return s;for(const n of a.productCategories.nodes){let l=function(i){for(const c of i||[]){const g=c.children?.nodes||[];g.length>0&&(s.add(c.slug||""),l(g))}};l(n.children?.nodes||[])}return s}function A(){const{t:a}=f(),{data:s}=h(),n=d(()=>y(s.value)),l=d(()=>T(s.value));function i(t,r){const e=u[t]??k[t];if(e){const o=a(e);if(o!==e)return o}return r}function c(t,r){if(u[r])return{url:`/products/${r}`,categoryLabel:i(r,t)};const e=n.value[r];return e?{url:`/products/${e}/${r}`,categoryLabel:i(e,t)}:{url:"/products",categoryLabel:t}}function g(t){const r=e=>i(e.slug||"",e.name||"");for(const e of t){if(l.value.has(e.slug||""))continue;const o=c(e.name||"",e.slug||"");if(o.categoryLabel)return{name:r(e)||o.categoryLabel,url:o.url}}for(const e of t){const o=c(e.name||"",e.slug||"");
1if(o.categoryLabel)return{name:r(e)||o.categoryLabel,url:o.url}}return null}return{CATEGORY_I18N:u,translateSlug:i,getCategoryLink:c,getBreadcrumb:g}}export{m as H,v as N,w as P,h as a,A as u};

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.