PageSourceSearch

https://takearecess.com/_nuxt/4qeB2EbQ.js

js takearecess.com collected 2026-10-09 23:29:09 UTC 5,406 bytes, 37 lines download raw bytes

1import{f as F,c as H}from"./B0fmWZAJ.js";import{_ as R}from"./DUca7KT6.js";import{_ as q}from"./h0rSufjP.js";import M from"./Ch_9JCf0.js";import{_ as j}from"./BF8qhM1W.js";import{cm as z,bh as O,ax as W,dp as G,dm as Q,dC as Y,ab as S,dE as x,dg as J,ag as K,ci as s,aq as u,dd as n,ae as l,aa as a,d9 as g,ad as _,F as D,cC as I,c9 as U,c7 as X,ap as Z,a6 as m,dr as ee}from"./D8TAmMJJ.js";import{l as te}from"./vD2fPZYi.js";import{g as L}from"./Dm8bU7ok.js";import{u as ae}from"./7f8PFtGF.js";import{g as T}from"./Co14ZmA_.js";import{_ as se}from"./HjMPvWDu.js";import"./DB7u05Rl.js";import"./pun11ybM.js";import"./BNI2k7Tg.js";import"./Dvzq0fSN.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"af069009423b511f13e1068d8a3c171b4a86d8bd"};var d=new o.Error().stack;d&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[d]="384034ed-8b0e-472e-a41c-10094525baec",o._sentryDebugIdIdentifier="sentry-dbid-384034ed-8b0e-472e-a41c-10094525baec")}catch{}})();const oe=o=>O`
2  *[_id == "${o}" || (_type == "whatsInside" && !defined(version))][0]{
3    ...${z},
4    introTitle,
5    introText,
6    productCategorySections[] {
7      "key": _key,
8      heading,
9      description,
10      image,
11      "backgroundColors": backgroundColors[].hex,
12      productCategory-> {
13        _type,
14        cbd,
15        title,
16        "backgroundColors": backgroundColors[].hex,
17        "slug": slug.current,
18        "ingredients": products[0]->ingredients[]->{
19          "id": _id,
20          cbd,
21          title,
22          description,
23          image {
24            alt,
25            "src": asset._ref
26          }
27        }
28      }
29    },
30    "relatedLinksSection": {
31      "heading": relatedLinksHeading,
32      "links": relatedLinks[] {
33        ...${te}
34      }
35    }
36  }
37`,ne={key:0,id:"header",class:"mb-16 text-center px-x-gutter"},re={class:"mx-auto heading sm:w-3/4"},ie={key:0,class:"mx-auto mt-8 text-lg sm:w-4/5 xl:text-xl 2xl:text-2xl"},le=["aria-labelledby"],de={class:"relative flex-wrap md:flex"},ce={class:"flex-1 self-center py-8 text-center ingredient-section__feature-text"},ue=["id"],ge={class:"px-6 mb-4 text-xl"},_e={key:1,class:"flex flex-col items-center my-16 px-x-gutter"},pe={key:0,class:"text-center heading"},me={class:"mx-auto my-10 related-links"},fe=["href"],ye=W({__name:"whats-inside",async setup(o){let d,f;const $=G(),b=ee(),k=Q(),B=k.$sanity,{data:r,error:C}=([d,f]=Y(async()=>J("whatsInsidePageData",async()=>{const c=$.query.preview,e=await B.fetch(oe(c));if(!e||Object.keys(e).length===0)throw K({statusCode:404,statusMessage:"Missing Whats Inside Page"});return e})),d=await d,f(),d);if(C.value)throw C.value;k.runWithContext(()=>ae({title:r.value.title,colors:r.value.colors}));const v=m(()=>r.value.introText),w=m(()=>r.value.introTitle),p=m(()=>{if(!r.value.relatedLinksSection?.links?.length)return;const c=T(b.public.nonCBDSite);return{heading:r.value.relatedLinksSection?.heading||"",links:r.value.relatedLinksSection.links.filter(c).map(({page:i,url:y,title:h})=>({title:h,href:i?L(i):y}))}}),E=m(()=>(r.value.productCategorySections?.filter(e=>T(b.public.nonCBDSite)(e.productCategory))||[]||[]).map(e=>{const i=e.backgroundColors?.length>0?e.backgroundColors:e.productCategory?.backgroundColors;return{key:e.key,backgroundStyle:(i||[]).length>0?`linear-gradient(${i.join(", ")})`:void 0,ctaHref:L(e.productCategory??{}),ctaText:e.productCategory?.title,description:e.description,heading:e.heading||e.productCategory?.title,image:e.image,ingredients:e.productCategory?.ingredients??[]}}));return(c,e)=>{const i=F,y=H,h=R,N=q,P=M,V=j;return s(),S(V,{class:"whats-inside"},{default:x(()=>[u(P,{sticky:""},{default:x(()=>[n(w)?(s(),l("header",ne,[a("h1",re,g(n(w)),1),n(v)?(s(),l("div",ie,[u(i,{blocks:n(v)},null,8,["blocks"])])):_("",!0)])):_("",!0),(s(!0),l(D,null,I(n(E),(t,A)=>(s(),l("section",{key:t.key,"aria-labelledby":`section-${t.key}-heading`,class:"relative product-category-section"},[a("div",{style:U({background:t.backgroundStyle}),class:"absolute bottom-0 left-0 w-full h-full opacity-70"},null,4),a("div",de,[a("div",{class:X(`relative flex flex-1 ${A%2?"md:order-1":""}`)},[u(y,{image:t.image,cover:"",class:"ingredient-section__feature-image"},null,8,["image"])],2),a("div",ce,[a("h2",{id:`section-${t.key}-heading`,class:"px-6"},g(t.heading),9,ue),a("div",ge,[t.description?(s(),S(i,{key:0,blocks:t.description,"container-class":!1,"containers-are-wide":!0},null,8,["blocks"])):_("",!0)]),u(h,{class:"button button-sm",style:{"--color-button-background":"var(--color-lavender)"},href:t.ctaHref},{default:x(()=>[Z(" shop "+g(t.ctaText),1)]),_:2},1032,["href"])])]),u(N,{options:{autoHeight:!1,breakpoints:{768:{centeredSlides:!1}},centeredSlides:!0,slidesPerView:"auto",watchOverflow:!0,watchSlidesVisibility:!0},items:t.ingredients},null,8,["items"])],8,le))),128)),n(p)?(s(),l("aside",_e,[n(p).heading?(s(),l("h3",pe,g(n(p).heading),
371)):_("",!0),a("ul",me,[(s(!0),l(D,null,I(n(p).links,t=>(s(),l("li",{key:t._key},[a("a",{class:"flex items-baseline px-8 py-4 w-full font-medium sm:text-lg lg:text-xl 2xl:text-2xl",href:t.href,target:"_blank"},[e[0]||(e[0]=a("span",{class:"font-antidote mr-em"},"←",-1)),a("span",null,g(t.title),1)],8,fe)]))),128))])])):_("",!0)]),_:1})]),_:1})}}}),Ne=se(ye,[["__scopeId","data-v-b009212b"]]);export{Ne 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.