PageSourceSearch

https://royalleafs.ca/_nuxt/p_gcuztS.js

js royalleafs.ca collected 2026-09-30 16:41:46 UTC 857 bytes, 1 lines download raw bytes

1import{u as m,_ as y}from"./pHyk4DIx.js";import{p as S,o as v,i as h,v as g,y as k,B as r,C as O}from"./BFMX5MT1.js";const B={__name:"Shop",props:{category:{required:!1,type:String}},async setup(d){let s,a;const{getProducts:i,getSoldOutProducts:l}=O(),t=r({inStock:void 0,soldOut:void 0}),{prepareCannabinoidsRangesForProduct:n}=m(),p=async()=>{t.value.inStock=void 0,t.value.soldOut=void 0,t.value.inStock=(await i()).map(e=>(n(e),e))};[s,a]=S(()=>p().catch(()=>{})),await s,a();const u=r({}),_=k(()=>!u.value.soldOut?t.value.inStock||[]:t.value.soldOut||[]),f=e=>{u.value={...e},e.soldOut&&t.value.soldOut===void 0&&l().then(c=>{t.value.soldOut=c.map(o=>(n(o),o))})};return(e,c)=>{const o=y;return v(),h(o,{products:g(_),category:d.category,"apply-paid-products":"","apply-ads":"","onFilters:updated":f},null,8,["products","category"])}}};export{B as _};

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.