PageSourceSearch

https://leafwell-eylpbaxjp-leafwell.vercel.app/_next/static/chunks/4599.0ccb02867d071efa.js

js leafwell-eylpbaxjp-leafwell.vercel.app collected 2026-10-03 07:16:47 UTC 3,612 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4599],{54599:function(e,t,l){l.r(t);var a=l(31549),n=l(44194),i=l(3912),s=l(21070),r=l.n(s),c=l(87779),o=l(22643),d=l(548),u=l(83585),g=l(60066),f=l(91005),v=l(43321),m=l(19104),x=l(6727),p=l(49676);let _=r()(()=>l.e(2869).then(l.bind(l,72869)),{loadableGenerated:{webpack:()=>[72869]},loading:()=>(0,a.jsx)("div",{className:"h-16"}),ssr:!1});t.default=e=>{var t;let{title:l,description:s,image:r,button:h,downloadButton:b}=e,{asPath:j,query:N}=(0,i.useRouter)(),[w,y]=(0,n.useState)(null),{trackEvent:k}=(0,x.C)(),H=(0,o.U0)(),C=H.get_session_id(),E=H.get_distinct_id(),M=j.includes("/membership")?"membership":j.includes("/cannabis-care")?"telepharmacist":null,[S,U]=(0,n.useState)(null),Z=(0,p.U)(N),z=null==j?void 0:j.split("?");return(0,n.useEffect)(()=>{if(M){var e;U((null==h?void 0:null===(e=h.url)||void 0===e?void 0:e.includes("?"))?"".concat(h.url,"&session_id=").concat(C,"&distinct_id=").concat(E).concat(Z?"&".concat(Z):""):"".concat(h.url,"?session_id=").concat(C,"&distinct_id=").concat(E).concat(Z?"&".concat(Z):""))}},[C,E,M,Z]),(0,n.useEffect)(()=>{N.utm_source&&!w&&(null==j?void 0:j.includes("/membership"))&&(0,g.WY)("/partner?slug=".concat(N.utm_source)).then(e=>{var t;if(e.data&&(null===(t=e.data)||void 0===t?void 0:t.totalItems)>0){let{acf:t}=(0,c.Z)(e.data.items[0],{deep:!0}),{logo:l,website:a,membership:n}=t;y({logo:l,website:a,partnerMessage:null==n?void 0:n.partnerMessage})}})},[N]),(0,a.jsx)("section",{className:"bg-lilac-50 xl:-mt-10 xl:pt-10",itemID:"Hero".concat(null===(t=z[0])||void 0===t?void 0:t.replace("/","-")),children:(0,a.jsxs)(d.E,{className:"gap-y-8 lg:grid-cols-2 lg:gap-x-16 items-start",spacer:!0,children:[l||s?(0,a.jsxs)("div",{className:"grid gap-y-10",children:[l&&(0,a.jsx)(f.Z,{level:"1",tagName:"h1",title:l,className:"font-semibold"}),s&&(0,a.jsx)(v.default,{content:s,className:"!text-lg xl:!text-xl !text-gray-700"}),(null==w?void 0:w.logo)||(null==w?void 0:w.partnerMessage)?(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-center gap-6",children:[(null==w?void 0:w.logo)?(0,a.jsx)(_,{affiliateLogo:w.logo,affiliateWebsite:w.website}):null,(null==w?void 0:w.partnerMessage)?(0,a.jsx)(v.default,{content:null==w?void 0:w.partnerMessage,className:"!text-lg xl:!text-xl !text-gray-700 lg:max-w-sm"}):null]}):null,h||b?(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row gap-4",children:[b&&(0,a.jsx)(u.z,{href:b.url,label:b.title,rounded:!0,filled:!0,variant:"secondary",target:b.target,className:"w-fit h-fit",icon:"download",onClick:()=>{var e;k({event:"select_content",content_type:b.title,item_id:"Hero".concat(null===(e=z[0])||void 0===e?void 0:e.replace("/","-")),action:"Hero-download-file"})}}),h&&(0,a.jsx)(u.z,{href:M?S:h.url,label:h.title,rounded:!0,filled:!b,variant:"secondary",target:h.target,className:"w-fit h-fit",icon:"arrow",onClick:()=>{var e,t;k({event:"select_content",content_type:h.title,item_id:"Hero".concat(null===(e=z[0])||void 0===e?void 0:e.replace("/","-")),action:"Hero-click-cta"}),M&&k({event:"generate_lead",item_id:"Hero".concat(null===(t=z[0])||void 0===t?void 0:t.replace("/","-")),service:M,page_referrer:document.referrer})}})]}):null]}):null,r&&(0,a.jsx)(m.Z,{...r,className:"order-first lg:order-last lg:justify-self-end"})]})})}},49676:function(e,t,l){l.d(t,{U:function(){return a}});function a(e){return new URLSearchParams(Object.entries(e).filter(t=>{let[l]=t;return"slug"!==l&&void 0!==e[l]}).map(e=>{let[t,l]=e;return[t,Array.isArray(l)?l[0]:l]})).toString()}}}]);
2//# sourceMappingURL=4599.0ccb02867d071efa.js.map

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.