PageSourceSearch

https://cannabisdepotco.com/_next/static/chunks/24d532e0c35cc917.js

js cannabisdepotco.com collected 2026-10-08 03:28:28 UTC 16,545 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52638,A=>{"use strict";var e=A.i(43476);A.i(71645);var t=A.i(57688);A.s(["default",0,({img:A,alt:a="",priority:s=!1,...r})=>{if(A&&(A.includes("https://")||A.includes("http://")))return(0,e.jsx)(t.default,{src:A,alt:a,width:500,height:300,priority:s,loading:s?"eager":"lazy",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",placeholder:"blur",blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDABQODxIPDRQSEBIXFRQdHx4eHRoaHiQrJyEyPTA+Pjs7OjM6RkpMPENBRjlKOk0/RWdIS1BRUzRZVltcWURHZJn/2wBDABUXFx4aHh4rJCQ7ZUE9O2VlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWX/wAARCAAIAAoDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCdABmX/9k=",...r});let l=`https://cannabis-depot.s3.amazonaws.com/${A}`;return(0,e.jsx)(t.default,{src:l,alt:a,width:500,height:300,priority:s,loading:s?"eager":"lazy",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",placeholder:"blur",blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDABQODxIPDRQSEBIXFRQdHx4eHRoaHiQrJyEyPTA+Pjs7OjM6RkpMPENBRjlKOk0/RWdIS1BRUzRZVltcWURHZJn/2wBDABUXFx4aHh4rJCQ7ZUE9O2VlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWX/wAARCAAIAAoDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCdABmX/9k=",onError:A=>{A.currentTarget.src="/images/image-placeholder.jpg"},...r})}])},73469,A=>{"use strict";let e="border-2 border-red-600 bg-transparent font-medium uppercase text-red-600 shadow-md transition-colors duration-200 hover:border-red-600 hover:bg-red-600 hover:text-white",t="border-2 border-blue-600 bg-transparent font-medium uppercase text-blue-600 shadow-md transition-colors duration-200 hover:border-blue-600 hover:bg-blue-600 hover:text-white";A.s(["shopMedBtnSectionDefaultClass",0,"inline-flex w-full min-h-[44px] sm:w-auto cursor-pointer items-center justify-center rounded-md px-4 py-2.5 text-sm sm:px-6 sm:py-2 sm:text-base "+t,"shopMedBtnSectionNearestClass",0,"block w-full px-4 py-2.5 text-center text-sm sm:px-6 sm:py-3 sm:text-base rounded-lg "+t,"shopRecBtnCardClass",0,"font-overpass text-md md:text-md mx-2 my-2 inline-flex cursor-pointer items-center justify-center rounded-md p-2 "+e,"shopRecBtnSectionDefaultClass",0,"inline-flex w-full min-h-[44px] sm:w-auto cursor-pointer items-center justify-center rounded-md px-4 py-2.5 text-sm sm:px-6 sm:py-2 sm:text-base "+e,"shopRecBtnSectionNearestClass",0,"block w-full px-4 py-2.5 text-center text-sm sm:px-6 sm:py-3 sm:text-base rounded-lg "+e])},22649,A=>{"use strict";var e=A.i(43476),t=A.i(71645),a=A.i(2123),s=A.i(22016),r=A.i(52638),l=A.i(57688);let n=({lat:A,lng:t,name:a,width:s=400,height:r=300})=>{let n=`https://api.mapbox.com/styles/v1/mapbox/streets-v11/static/pin-m(${t},${A})/${t},${A},15,0/${s}x${r}?access_token=pk.eyJ1IjoidGhvbWFzaGVkZ2VwYXRoIiwiYSI6ImNqNW83cXhsYjQyYnAyd25xbjdwbG1xbmoifQ.u8oSi903x7-iK9S0-lNuNg`;return(0,e.jsx)("div",{className:"relative w-full h-[300px] rounded-b-lg overflow-hidden",children:(0,e.jsx)(l.default,{src:n,alt:`Map of ${a}`,fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"})})},i=({store:A,variant:t="default",fullLabels:a=!1})=>{let{recreational:s,medical:r}
1=A,l="compact"===t?"text-xs font-semibold tracking-wide px-2 py-0.5 rounded":"text-sm font-semibold tracking-wide px-3 py-1.5 rounded";return(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsx)("div",{className:"flex items-center gap-1.5",children:s?(0,e.jsx)("span",{className:`${l} text-white`,style:{backgroundColor:"#dc2626"},children:a?"RECREATIONAL":"REC"}):(0,e.jsx)("span",{className:`${l} bg-gray-200 text-gray-600`,children:a?"RECREATIONAL NOT AVAILABLE":"REC NOT AVAILABLE"})}),(0,e.jsx)("div",{className:"flex items-center gap-1.5",children:r?(0,e.jsx)("span",{className:`${l} text-white`,style:{backgroundColor:"#2563eb"},children:a?"MEDICAL":"MED"}):(0,e.jsx)("span",{className:`${l} bg-gray-200 text-gray-600`,children:a?"MEDICAL NOT AVAILABLE":"MED NOT AVAILABLE"})})]})};var o=A.i(73469),d=A.i(69016);let c=({store:A,variant:t="default"})=>"nearest"===t?(0,e.jsx)("div",{className:"bg-white rounded-xl shadow-lg overflow-hidden mb-8 max-w-7xl mx-auto",children:(0,e.jsxs)("div",{className:"grid md:grid-cols-2 gap-0",children:[(0,e.jsx)("div",{className:"relative",children:(0,e.jsxs)("div",{className:"h-full relative",children:[(0,e.jsx)(r.default,{img:A.image,alt:A.name,className:"w-full h-full object-cover"}),(0,e.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 to-transparent"}),(0,e.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-6 text-white",children:[(0,e.jsx)("h2",{className:"text-xl font-bold mb-2 sm:text-2xl md:text-3xl leading-tight",children:A.name}),(0,e.jsx)("div",{className:"mb-2",children:(0,e.jsx)(i,{store:A,variant:"compact"})}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsxs)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),(0,e.jsxs)("a",{href:A.googleLink,target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-depotGold transition-colors",children:[A.addr1,", ",A.addr2]})]}),A.searchLocation&&A.distance&&(0,e.jsxs)("div",{className:"mt-4 text-sm opacity-90",children:[(0,e.jsxs)("p",{children:["Nearest Store from: ",A.searchLocation]}),(0,e.jsxs)("p",{children:["Distance: ",A.distance.toFixed(1)," miles"]})]})]})]})}),(0,e.jsx)("div",{className:"p-5 bg-gray-50 md:p-8",children:(0,e.jsxs)("div",{className:"space-y-8",children:[(0,e.jsxs)("div",{children:[(0,e.jsxs)("h3",{className:"text-lg font-semibold text-gray-800 mb-3 flex items-center gap-2",children:[(0,e.jsx)("svg",{className:"w-5 h-5 text-depotDarkGreen-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Hours of Operation"]}),(0,e.jsx)("p",{className:"text-gray-600",dangerouslySetInnerHTML:{__html:(0,d.formatStoreHours)(A.hours)}})]}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("h3",{className:"text-lg font-semibold text-gray-800 mb-3 flex items-center gap-2",children:[(0,e.jsx)("svg",{className:"w-5 h-5 text-depotDarkGreen-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})}),"Contact"]}),(0,e.jsx)("a",{href:`tel:${A.phone}`,className:"text-base text-depotDarkGreen-400 transition-colors hover:text-depotGold md:text-lg",children:A.phone})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-3 pt-4",children:[A.recreational&&A.medical&&A.menuLink&&A.medicalMenuLink&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.default,{href:A.menuLink,className:o.shopRecBtnSectionNearestClass,children:"Shop Recreational"}),(0,e.jsx)(s.default,{href:A.medicalMenuLink,className:o.shopMedBtnSectionNearestClass,children:"Shop Medical"})]}),!A.recreational&&(A.menuLink||A.medicalMenuLink)&&(0,e.jsx)(s.default,{href:A.medical&&!A.recreational&&A.medicalMenuLink?A.medicalMenuLink:A.menuLink||A.medicalMenuLink,className:A.medical&&!A.recreational?o.shopMedBtnSectionNearestClass:o.shopRecBtnSectionNearestClass,children:A.medical&&!A.recreational?"Shop Medical":"Shop Recreational"}),A.recreational&&A.menuLink&&!(A.medical&&A.medicalMenuLink)&&(0,e.jsx)(s.default,{href:A.menuLink,className:o.shopRecBtnSectionNearestClass,children:"Shop Recreational"}),(0,e.jsx)(s.default,{href:A.locationPage,className:"flex min-h-[44px] w-full items-center justify-center rounded-lg border-2 border-depotDarkGreen-400 px-4 py-2.5 text-center text-sm font-medium text-depotDarkGreen-400 transition-colors duration-200 hover:bg-depotDarkGreen-400 hover:text-white sm:px-6 sm:py-3 sm:text-base",children:"Learn More"})]})]})})]})}):(0,e.jsx)("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden mb-8",children:(0,e.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,e.jsxs)("div",{className:"",children:[(0,e.jsx)("div",{className:"h-[300px] relative",children:(0,e.jsx)(r.default,{img:A.image,alt:A.name,className:"w-full h-full object-cover rounded-t-lg"})}),(0,e.jsx)(n,{lat:A.lat,lng:A.lng,name:A.name})]}),(0,e.jsxs)("div",{className:"flex flex-col justify-between p-4 sm:p-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-2 sm:text-2xl md:text-3xl leading-tight",children:A.name}),(0,e.jsx)("div",{className:"mb-4",children:(0,e.jsx)(i,{store:A})}),(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-lg font-semibold text-gray-800 mb
1-1",children:"Hours of Operation"}),(0,e.jsx)("p",{className:"text-gray-600",dangerouslySetInnerHTML:{__html:(0,d.formatStoreHours)(A.hours)}})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-lg font-semibold text-gray-800 mb-1",children:"Location"}),(0,e.jsxs)("a",{href:A.googleLink,target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-blue-600",children:[(0,e.jsx)("p",{children:A.addr1}),(0,e.jsx)("p",{children:A.addr2})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-lg font-semibold text-gray-800 mb-1",children:"Contact"}),(0,e.jsx)("a",{href:`tel:${A.phone}`,className:"text-gray-600 hover:text-blue-600",children:A.phone})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-lg font-semibold text-gray-800 mb-1",children:"About This Location"}),(0,e.jsx)("p",{className:"text-gray-600",children:A.description})]})]})]}),(0,e.jsxs)("div",{className:"mt-6 flex w-full flex-col gap-2 sm:flex-row sm:flex-wrap sm:gap-3",children:[(0,e.jsx)(s.default,{href:A.locationPage,className:"w-full sm:w-auto",children:(0,e.jsx)("button",{className:"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border-2 border-depotDarkGreen-400 px-4 py-2.5 text-sm font-medium text-depotDarkGreen-400 transition-colors duration-200 hover:bg-depotDarkGreen-400 hover:text-white sm:w-auto sm:px-6 sm:py-2 sm:text-base",children:"Learn More"})}),A.recreational&&A.medical&&A.menuLink&&A.medicalMenuLink&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.default,{href:A.menuLink,className:"w-full sm:w-auto",children:(0,e.jsx)("button",{className:o.shopRecBtnSectionDefaultClass,children:"Shop Recreational"})}),(0,e.jsx)(s.default,{href:A.medicalMenuLink,className:"w-full sm:w-auto",children:(0,e.jsx)("button",{className:o.shopMedBtnSectionDefaultClass,children:"Shop Medical"})})]}),!A.recreational&&(A.menuLink||A.medicalMenuLink)&&(0,e.jsx)(s.default,{href:A.medical&&!A.recreational&&A.medicalMenuLink?A.medicalMenuLink:A.menuLink||A.medicalMenuLink,className:"w-full sm:w-auto",children:(0,e.jsx)("button",{className:A.medical&&!A.recreational?o.shopMedBtnSectionDefaultClass:o.shopRecBtnSectionDefaultClass,children:A.medical&&!A.recreational?"Shop Medical":"Shop Recreational"})}),A.recreational&&A.menuLink&&!(A.medical&&A.medicalMenuLink)&&(0,e.jsx)(s.default,{href:A.menuLink,className:"w-full sm:w-auto",children:(0,e.jsx)("button",{className:o.shopRecBtnSectionDefaultClass,children:"Shop Recreational"})})]})]})]})});A.s(["default",0,()=>{let[A,s]=(0,t.useState)(""),[r,l]=(0,t.useState)(null),[n,i]=(0,t.useState)(""),[o,d]=(0,t.useState)(!1),m=(A,e)=>{let t=null,s=1/0;return a.stores.forEach(a=>{var r,l;let n,i,o,d=(r=a.lat,l=a.lng,2*Math.atan2(Math.sqrt(o=Math.sin((n=Math.PI/180*(r-A))/2)*Math.sin(n/2)+Math.cos(Math.PI/180*A)*Math.cos(Math.PI/180*r)*Math.sin((i=Math.PI/180*(l-e))/2)*Math.sin(i/2)),Math.sqrt(1-o))*3959);d<s&&(s=d,t=a)}),{store:t,distance:s}},x=A=>/^\d{5}$/.test(A.trim()),h=async A=>{try{let e=x(A),t=e?`postalcode=${A}&country=US`:`q=${encodeURIComponent(A)}&country=US`,a=await fetch(`https://nominatim.openstreetmap.org/search?${t}&format=json&limit=1`),s=await a.json();if(s.length>0)return{lat:parseFloat(s[0].lat),lon:parseFloat(s[0].lon),displayName:s[0].display_name};throw Error(e?"No coordinates found for this zip code":"No coordinates found for this address")}catch(e){throw Error(x(A)?"Failed to get coordinates for zip code":"Failed to get coordinates for address")}},u=async e=>{if(e.preventDefault(),!A.trim())return void i("Please enter a search term");d(!0),i(""),l(null);try{let e=await h(A),{store:t,distance:a}=m(e.lat,e.lon);l({...t,distance:a,searchLocation:e.displayName})}catch(A){i(A.message)}finally{d(!1)}},p=async()=>{d(!0),i(""),l(null);try{let A=await new Promise((A,e)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(e=>{A({lat:e.coords.latitude,lon:e.coords.longitude,displayName:"Your Current Location"})},A=>{e(Error("Unable to retrieve your location"))}):e(Error("Geolocation is not supported by your browser"))}),{store:e,distance:t}=m(A.lat,A.lon);l({...e,distance:t,searchLocation:A.displayName})}catch(A){i(A.message)}finally{d(!1)}};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"max-w-2xl mx-auto mb-12",children:[(0,e.jsx)("div",{className:"text-center mb-6",children:(0,e.jsx)("h2",{className:"text-2xl font-bold text-gray-900",children:"Find Your Nearest Store"})}),(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)("form",{onSubmit:u,className:"flex gap-3",children:[(0,e.jsx)("input",{type:"text",value:A,onChange:A=>s(A.target.value),placeholder:"Enter zip code",className:"flex-1 px-4 py-3 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-depotDarkGreen-400 text-gray-700 bg-white shadow-sm",required:!0}),(0,e.jsx)("button",{type:"submit",disabled:o,className:"px-8 py-3 bg-[#1B3723] text-white rounded-lg hover:bg-[#264b30] transition-colors duration-200 disabled:opacity-50 shadow-sm font-medium",children:o?"Searching...":"Search"})]}),(0,e.jsxs)("div",{className:"flex items-center justify-center",children:[(0,e.jsx)("div",{className:"flex-grow border-t border-gray-200"}),(0,e.jsx)("span",{className:"px-4 text-sm text-gray-500",children:"or"}),(0,e.jsx)("div",{className:"flex-grow border-t border-gray-200"})]}),(0,e.jsx)("button",{onClick:p,disabled:o,className:"w-full px-6 py-3 border-2 border-[#1B3723] text-[#1B3723] rounded-lg hover:bg-[#1B3723] hover:text-white transition-colors duration-200 disabled:opacity-50 font-medium",children:o?"Getting Location...":"Use My Current Location"}),n&&(0,e.jsx)("div",{className:"text-red-500 text-sm text-center mt-4",children:n})]})]}),r&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(c,{store:r,variant:"nearest"})})]})}],22649)}]);

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.