PageSourceSearch

https://shophcc.com/_next/static/immutable/chunks/2t3blanrcll4v.js

js shophcc.com collected 2026-09-24 12:42:53 UTC 350,483 bytes, 44 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,358789,e=>{"use strict";var t=e.i(271645),r=e.i(769464);let a=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M228.75,100.05c-3.52-3.67-7.15-7.46-8.34-10.33-1.06-2.56-1.14-7.83-1.21-12.47-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21-2.87-1.19-6.66-4.82-10.33-8.34C148.87,20.46,140.05,12,128,12s-20.87,8.46-27.95,15.25c-3.67,3.52-7.46,7.15-10.33,8.34-2.56,1.06-7.83,1.14-12.47,1.21C67.25,37,54.81,37.14,46,46S37,67.25,36.8,77.25c-.07,4.64-.15,9.91-1.21,12.47-1.19,2.87-4.82,6.66-8.34,10.33C20.46,107.13,12,116,12,128S20.46,148.87,27.25,156c3.52,3.67,7.15,7.46,8.34,10.33,1.06,2.56,1.14,7.83,1.21,12.47.15,10,.34,22.44,9.18,31.27s21.27,9,31.27,9.18c4.64.07,9.91.15,12.47,1.21,2.87,1.19,6.66,4.82,10.33,8.34C107.13,235.54,116,244,128,244s20.87-8.46,27.95-15.25c3.67-3.52,7.46-7.15,10.33-8.34,2.56-1.06,7.83-1.14,12.47-1.21,10-.15,22.44-.34,31.27-9.18s9-21.27,9.18-31.27c.07-4.64.15-9.91,1.21-12.47,1.19-2.87,4.82-6.66,8.34-10.33C235.54,148.87,244,140.05,244,128S235.54,107.13,228.75,100.05Zm-17.32,39.29c-4.82,5-10.28,10.72-13.19,17.76-2.82,6.8-2.93,14.16-3,21.29-.08,5.36-.19,12.71-2.15,14.66s-9.3,2.07-14.66,2.15c-7.13.11-14.49.22-21.29,3-7,2.91-12.73,8.37-17.76,13.19C135.78,214.84,130.4,220,128,220s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.19-6.8-2.82-14.16-2.93-21.29-3-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29-2.91-7-8.37-12.73-13.19-17.76C41.16,135.78,36,130.4,36,128s5.16-7.78,8.57-11.34c4.82-5,10.28-10.72,13.19-17.76,2.82-6.8,2.93-14.16,3-21.29C60.88,72.25,61,64.9,63,63s9.3-2.07,14.66-2.15c7.13-.11,14.49-.22,21.29-3,7-2.91,12.73-8.37,17.76-13.19C120.22,41.16,125.6,36,128,36s7.78,5.16,11.34,8.57c5,4.82,10.72,10.28,17.76,13.19,6.8,2.82,14.16,2.93,21.29,3,5.36.08,12.71.19,14.66,2.15s2.07,9.3,2.15,14.66c.11,7.13.22,14.49,3,21.29,2.91,7,8.37,12.73,13.19,17.76,3.41,3.56,8.57,8.94,8.57,11.34S214.84,135.78,211.43,139.34ZM176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,128c0,12.51-17.82,21.95-22.68,33.69-4.68,11.32,1.42,30.65-7.78,39.85s-28.53,3.1-39.85,7.78C150,214.18,140.5,232,128,232s-22-17.82-33.69-22.68c-11.32-4.68-30.65,1.42-39.85-7.78s-3.1-28.53-7.78-39.85C41.82,150,24,140.5,24,128s17.82-22,22.68-33.69C51.36,83,45.26,63.66,54.46,54.46S83,51.36,94.31,46.68C106.05,41.82,115.5,24,128,24S150,41.82,161.69,46.68c11.32,4.68,30.65-1.42,39.85,7.78s3.1,28.53,7.78,39.85C214.18,106.05,232,115.5,232,128Z",opacity:"0.2"}),t.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.
118,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-52.2,6.84-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224.42,104.2c-3.9-4.07-7.93-8.27-9.55-12.18-1.5-3.63-1.58-9-1.67-14.68-.14-9.38-.3-20-7.42-27.12S188,42.94,178.66,42.8c-5.68-.09-11-.17-14.68-1.67-3.91-1.62-8.11-5.65-12.18-9.55C145.16,25.22,137.64,18,128,18s-17.16,7.22-23.8,13.58c-4.07,3.9-8.27,7.93-12.18,9.55-3.63,1.5-9,1.58-14.68,1.67-9.38.14-20,.3-27.12,7.42S42.94,68,42.8,77.34c-.09,5.68-.17,11-1.67,14.68-1.62,3.91-5.65,8.11-9.55,12.18C25.22,110.84,18,118.36,18,128s7.22,17.16,13.58,23.8c3.9,4.07,7.93,8.27,9.55,12.18,1.5,3.63,1.58,9,1.67,14.68.14,9.38.3,20,7.42,27.12S68,213.06,77.34,213.2c5.68.09,11,.17,14.68,1.67,3.91,1.62,8.11,5.65,12.18,9.55C110.84,230.78,118.36,238,128,238s17.16-7.22,23.8-13.58c4.07-3.9,8.27-7.93,12.18-9.55,3.63-1.5,9-1.58,14.68-1.67,9.38-.14,20-.3,27.12-7.42s7.28-17.74,7.42-27.12c.09-5.68.17-11,1.67-14.68,1.62-3.91,5.65-8.11,9.55-12.18C230.78,145.16,238,137.64,238,128S230.78,110.84,224.42,104.2Zm-8.66,39.3c-4.67,4.86-9.5,9.9-12,15.9-2.38,5.74-2.48,12.52-2.58,19.08-.11,7.44-.23,15.14-3.9,18.82s-11.38,3.79-18.82,3.9c-6.56.1-13.34.2-19.08,2.58-6,2.48-11,7.31-15.91,12-5.25,5-10.68,10.24-15.49,10.24s-10.24-5.21-15.5-10.24c-4.86-4.67-9.9-9.5-15.9-12-5.74-2.38-12.52-2.48-19.08-2.58-7.44-.11-15.14-.23-18.82-3.9s-3.79-11.38-3.9-18.82c-.1-6.56-.2-13.34-2.58-19.08-2.48-6-7.31-11-12-15.91C35.21,138.24,30,132.81,30,128s5.21-10.24,10.24-15.5c4.67-4.86,9.5-9.9,12-15.9,2.38-5.74,2.48-12.52,2.58-19.08.11-7.44.23-15.14,3.9-18.82s11.38-3.79,18.82-3.9c6.56-.1,13.34-.2,19.08-2.58,6-2.48,11-7.31,15.91-12C117.76,35.21,123.19,30,128,30s10.24,5.21,15.5,10.24c4.86,4.67,9.9,9.5,15.9,12,5.74,2.38,12.52,2.48,19.08,2.58,7.44.11,15.14.23,18.82,3.9s3.79,11.38,3.9,18.82c.1,6.56.2,13.34,2.58,19.08,2.48,6,7.31,11,12,15.91,5,5.25,10.24,10.68,10.24,15.49S220.79,138.24,215.76,143.5ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M223,105.58c-4-4.2-8.2-8.54-10-12.8-1.65-4-1.73-9.53-1.82-15.41-.14-9-.29-19.19-6.83-25.74s-16.74-6.69-25.74-6.83c-5.88-.09-11.43-.17-15.41-1.82-4.26-1.76-8.6-5.93-12.8-9.95-6.68-6.41-13.59-13-22.42-13s-15.74,6.62-22.42,13c-4.2,4-8.54,8.2-12.8,10-4,1.65-9.53,1.73-15.41,1.82-9,.14-19.19.29-25.74,6.83S44.94,68.37,44.8,77.37c-.09,5.88-.17,11.43-1.82,15.41-1.76,4.26-5.93,8.6-9.95,12.8-6.41,6.68-13,13.59-13,22.42s6.62,15.74,13,22.42c4,4.2,8.2,8.54,10,12.8,1.65,4,1.73,9.53,1.82,15.41.14,9,.29,19.19,6.83,25.74s16.74,6.69,25.74,6.83c5.88.09,11.43.17,15.41,1.82,4.26,1.76,8.6,5.93,12.8,9.95,6.68,6.41,13.59,13,22.42,13s15.74-6.62,22.42-13c4.2-4,8.54-8.2,12.8-10,4-1.65,9.53-1.73,15.41-1.82,9-.14,19.19-.29,25.74-6.83s6.69-16.74,6.83-25.74c.09-5.88.17-11.43,1.82-15.41,1.76-4.26,5.93-8.6,9.95-12.8,6.41-6.68,13-13.59,13-22.42S229.38,112.26,223,105.58Zm-5.78,39.3c-4.54,4.73-9.24,9.63-11.57,15.28-2.23,5.39-2.33,12-2.43,18.35-.12,8.2-.24,16-4.49,20.2s-12,4.37-20.2,4.49c-6.37.1-13,.2-18.35,2.43-5.65,2.33-10.55,7-15.28,11.57C139.09,222.75,133.62,228,128,228s-11.09-5.25-16.88-10.8c-4.73-4.54-9.63-9.24-15.28-11.57-5.39-2.23-12-2.33-18.35-2.43-8.2-.12-15.95-.24-20.2
1-4.49s-4.37-12-4.49-20.2c-.1-6.37-.2-13-2.43-18.35-2.33-5.65-7-10.55-11.57-15.28C33.25,139.09,28,133.62,28,128s5.25-11.09,10.8-16.88c4.54-4.73,9.24-9.63,11.57-15.28,2.23-5.39,2.33-12,2.43-18.35.12-8.2.24-15.95,4.49-20.2s12-4.37,20.2-4.49c6.37-.1,13-.2,18.35-2.43,5.65-2.33,10.55-7,15.28-11.57C116.91,33.25,122.38,28,128,28s11.09,5.25,16.88,10.8c4.73,4.54,9.63,9.24,15.28,11.57,5.39,2.23,12,2.33,18.35,2.43,8.2.12,16,.24,20.2,4.49s4.37,12,4.49,20.2c.1,6.37.2,13,2.43,18.35,2.33,5.65,7,10.55,11.57,15.28,5.55,5.79,10.8,11.26,10.8,16.88S222.75,139.09,217.2,144.88Zm-46.37-43.71a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),l=t.forwardRef((e,l)=>t.createElement(r.default,{ref:l,...e,weights:a}));l.displayName="SealCheckIcon",e.s(["SealCheck",0,l,"SealCheckIcon",0,l],358789)},838013,e=>{"use strict";var t=e.i(271645),r=e.i(575108),a=e.i(359388);let l=t.forwardRef((e,l)=>t.createElement(r.default,{ref:l,...e,weights:a.default}));l.displayName="PlusIcon",e.s(["Plus",0,l,"PlusIcon",0,l])},375609,e=>{"use strict";var t,r,a,l,s=Array.isArray,o=function(e){var t="";if("string"==typeof e)t+=e;else if("object"==typeof e){var r=void 0;if(s(e))for(var a=0,l=e.length;a<l;)(r=o(e[a++]))&&(t&&(t+=" "),t+=r);else for(r in e)r&&e[r]&&(t&&(t+=" "),t+=r)}return t};function d(){for(var e,t,r=arguments.length,a=0,l="";a<r;)e=arguments[a++],e&&(t=o(e))&&(l&&(l+=" "),l+=t);return l}var c=e.i(271645);function i(e){if(void 0===e&&(e=window),!e)return 1;if(void 0!==e.devicePixelRatio)return e.devicePixelRatio;var t=e.document.frames;return void 0!==t?void 0!==t.devicePixelRatio?t.devicePixelRatio:t.screen.deviceXDPI/t.screen.systemXDPI:void 0!==e.matchMedia?function(e){for(var t=e.matchMedia,r=10,a=.1,l=1,s=r,o=0;o<4;o++)r=(s=10*function(e,t,r,a){for(;t>=r&&!e("(min-resolution: "+t/a+"dppx)").matches;)t--;return t}(t,r,a,l))+9,a=s,l*=10;return s/l}(e):1}var n=e.i(247167),u=c,p=e.i(745009),m=e.i(174080),x=e.i(207670);function f(e,t){for(let r=0,a=e.length;r<a;r++)if(t.apply(t,[e[r],r,e]))return e[r]}function h(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}function g(e){return"number"==typeof e&&!isNaN(e)}function b(e){return parseInt(e,10)}function j(e,t,r){if(e[t])return Error(`Invalid prop ${t} passed to ${r} - do not set this, set it on the child.`)}var w=["Moz","Webkit","O","ms"];function y(e,t){return t?`${t}${function(e){let t="",r=!0;for(let a=0;a<e.length;a++)r?(t+=e[a].toUpperCase(),r=!1):"-"===e[a]?r=!0:t+=e[a];return t}(e)}`:e}var v=function(e="transform"){var t,r;if("u"<typeof window)return"";let a=null==(r=null==(t=window.document)?void 0:t.documentElement)?void 0:r.style;if(!a||e in a)return"";for(let t=0;t<w.length;t++)if(y(e,w[t])in a)return w[t];return""}(),N="";function C(e,t,r){let a=e;do{if(function(e,t){var r;N||(N=null!=(r=f(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return h(e[t])}))?r:"");let a=e[N];return!!h(a)&&!!a.call(e,t)}(a,t))return!0;if(a===r)break;a=a.parentNode}while(a)return!1}function S(e,t,r,a){if(!e)return;let l={capture:!0,...a};e.addEventListener?e.addEventListener(t,r,l):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r}function P(e,t,r,a){if(!e)return;let l={capture:!0,...a};e.removeEventListener?e.removeEventListener(t,r,l):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=null}function k({x:e,y:t},r,a){let l=`translate(${e}${a},${t}${a})`;if(r){let e=`${"string"==typeof r.x?r.x:r.x+a}`,t=`${"string"==typeof r.y?r.y:r.y+a}`;l=`translate(${e}, ${t})`+l}return l}function T(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{E(e)}):E(e)}function E(e){if(e)try{var t,r;e.body&&(t=e.body,r="react-draggable-transparent-selection",t.classList?t.classList.remove(r):t.className=t.className.replace(RegExp(`(?:^|\\s)${r}(?!\\S)`,"g"),""));let a=e.selection;if(a)a.empty();else{let t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch{}}function F(e,t,r){return[Math.round(t/e[0])*e[0],Math.round(r/e[1])*e[1]]}function A(e,t,r){var a,l;let s,o="number"==typeof t?e.targetTouches&&f(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&f(e.changedTouches,e=>t===e.identifier):null;if("number"==typeof t&&!o)return null;let d=V(r),c=r.props.offsetParent||d.offsetParent||d.ownerDocument.body;return a=o||e,l=r.props.scale,s=c===c.ownerDocument.body?{left:0,top:0}:c.getBoundingClientRect(),{x:(a.clientX+c.scrollLeft-s.left)/l,y:(a.clientY+c.scrollTop-s.top)/l}}function D(e,t,r){let a=!g(e.lastX),l=V(e);return a?{node:l,deltaX:0,deltaY:0,lastX:t,lastY:r,x:t,y:r}:{node:l,deltaX:t-e.lastX,deltaY:r-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:r}}function L(e,t){let r=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/r,y:e.state.y+t.deltaY/r,deltaX:t.deltaX/r,deltaY:t.deltaY/r,lastX:e.state.x,lastY:e.state.y}}function V(e){let t=e.findDOMNode();if(!t)throw Error("<DraggableCore>: Unmounted during event!");return t}var R=void 0!==n.default&&n.default.env.DRAGGABLE_DEBUG?console.log.bind(console):function(){},M={start:"touchstart",move:"touchmove",stop:"touchend"}
1,$={start:"mousedown",move:"mousemove",stop:"mouseup"},B=$,H=class extends u.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&("number"==typeof e.button&&0!==e.button||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!C(e.target,this.props.handle,t)||this.props.cancel&&C(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();let a=e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0;this.touchIdentifier=a;let l=A(e,a,this);if(null==l)return;let{x:s,y:o}=l,d=D(this,s,o);R("DraggableCore: handleDragStart: %j",d),R("calling",this.props.onStart),!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&function(e,t){var r,a;if(!e)return;let l=e.getElementById("react-draggable-style-el");if(!l){(l=e.createElement("style")).type="text/css",l.id="react-draggable-style-el";let r=null!=t?t:"u">typeof __webpack_nonce__?__webpack_nonce__:void 0;r&&l.setAttribute("nonce",r),l.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",l.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(l)}e.body&&(r=e.body,a="react-draggable-transparent-selection",r.classList?r.classList.add(a):r.className.match(RegExp(`(?:^|\\s)${a}(?!\\S)`))||(r.className+=` ${a}`))}(r,this.props.nonce),this.dragging=!0,this.lastX=s,this.lastY=o,S(r,B.move,this.handleDrag),S(r,B.stop,this.handleDragStop))},this.handleDrag=e=>{let t=A(e,this.touchIdentifier,this);if(null==t)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let e=r-this.lastX,t=a-this.lastY;if([e,t]=F(this.props.grid,e,t),!e&&!t)return;r=this.lastX+e,a=this.lastY+t}let l=D(this,r,a);if(R("DraggableCore: handleDrag: %j",l),!1===this.props.onDrag(e,l)||!1===this.mounted){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let e=document.createEvent("MouseEvents");e.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=r,this.lastY=a},this.handleDragStop=e=>{if(!this.dragging)return;let t=A(e,this.touchIdentifier,this);if(null==t)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let e=r-this.lastX||0,t=a-this.lastY||0;[e,t]=F(this.props.grid,e,t),r=this.lastX+e,a=this.lastY+t}let l=D(this,r,a);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;let s=this.findDOMNode();s&&this.props.enableUserSelectHack&&T(s.ownerDocument),R("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&(R("DraggableCore: Removing handlers"),P(s.ownerDocument,B.move,this.handleDrag),P(s.ownerDocument,B.stop,this.handleDragStop))},this.onMouseDown=e=>(B=$,this.handleDragStart(e)),this.onMouseUp=e=>(B=$,this.handleDragStop(e)),this.onTouchStart=e=>(B=M,this.handleDragStart(e)),this.onTouchEnd=e=>(B=M,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&S(e,M.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;P(t,$.move,this.handleDrag),P(t,M.move,this.handleDrag),P(t,$.stop,this.handleDragStop),P(t,M.stop,this.handleDragStop),P(e,M.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&T(t)}}findDOMNode(){var e;if(null==(e=this.props)?void 0:e.nodeRef)return this.props.nodeRef.current;let t=m.default;return"function"==typeof t.findDOMNode?t.findDOMNode(this):(R("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return u.cloneElement(u.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};H.displayName="DraggableCore",H.propTypes={allowAnyClick:p.default.bool,allowMobileScroll:p.default.bool,children:p.default.node.isRequired,disabled:p.default.bool,enableUserSelectHack:p.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:p.default.arrayOf(p.default.number),handle:p.default.string,cancel:p.default.string,nodeRef:p.default.object,nonce:p.default.string,onStart:p.default.func,onDrag:p.default.func,onStop:p.default.func,onMouseDown:p.default.func,scale:p.default.number,className:j,style:j,transform:j},H.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var X=class extends u.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(R("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,L(this,t)))return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>
1{if(!this.state.dragging)return!1;R("Draggable: onDrag: %j",t);let r=L(this,t),a={x:r.x,y:r.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=a;a.x+=this.state.slackX,a.y+=this.state.slackY;let[l,s]=function(e,t,r){var a;if(!e.props.bounds)return[t,r];let{bounds:l}=e.props;l="string"==typeof l?l:{left:(a=l).left,top:a.top,right:a.right,bottom:a.bottom};let s=V(e);if("string"==typeof l){let e,t,r,a,o,d,c,i,n,{ownerDocument:u}=s,p=u.defaultView;if(!p)throw Error("Cannot resolve the owner window of the draggable node.");if(!((e="parent"===l?s.parentNode:s.getRootNode().querySelector(l))instanceof p.HTMLElement))throw Error('Bounds selector "'+l+'" could not find an element.');let m=p.getComputedStyle(s),x=p.getComputedStyle(e);l={left:-s.offsetLeft+b(x.paddingLeft)+b(m.marginLeft),top:-s.offsetTop+b(x.paddingTop)+b(m.marginTop),right:(t=e.clientWidth,t-=b((r=e.ownerDocument.defaultView.getComputedStyle(e)).paddingLeft),(t-=b(r.paddingRight))-(a=s.clientWidth,a+=b((o=s.ownerDocument.defaultView.getComputedStyle(s)).borderLeftWidth),a+=b(o.borderRightWidth))-s.offsetLeft+b(x.paddingRight)-b(m.marginRight)),bottom:(d=e.clientHeight,d-=b((c=e.ownerDocument.defaultView.getComputedStyle(e)).paddingTop),(d-=b(c.paddingBottom))-(i=s.clientHeight,i+=b((n=s.ownerDocument.defaultView.getComputedStyle(s)).borderTopWidth),i+=b(n.borderBottomWidth))-s.offsetTop+b(x.paddingBottom)-b(m.marginBottom))}}return g(l.right)&&(t=Math.min(t,l.right)),g(l.bottom)&&(r=Math.min(r,l.bottom)),g(l.left)&&(t=Math.max(t,l.left)),g(l.top)&&(r=Math.max(r,l.top)),[t,r]}(this,a.x,a.y);a.x=l,a.y=s,a.slackX=this.state.slackX+(e-a.x),a.slackY=this.state.slackY+(t-a.y),r.x=a.x,r.y=a.y,r.deltaX=a.x-this.state.x,r.deltaY=a.y-this.state.y}if(!1===this.props.onDrag(e,r))return!1;this.setState(a)},this.onDragStop=(e,t)=>{if(!this.state.dragging||!1===this.props.onStop(e,L(this,t)))return!1;R("Draggable: onDragStop: %j",t);let r={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;r.x=e,r.y=t}this.setState(r)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(R("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if(null==(e=this.props)?void 0:e.nodeRef)return this.props.nodeRef.current;let t=m.default;return"function"==typeof t.findDOMNode?t.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:r,defaultPosition:a,defaultClassName:l,defaultClassNameDragging:s,defaultClassNameDragged:o,position:d,positionOffset:c,scale:i,...n}=this.props,p={},m=null,f=!d||this.state.dragging,h=d||a,g={x:("both"===this.props.axis||"x"===this.props.axis)&&f?this.state.x:h.x,y:("both"===this.props.axis||"y"===this.props.axis)&&f?this.state.y:h.y};if(this.state.isElementSVG)m=k(g,c,"");else{let e;e=k(g,c,"px"),p={[y("transform",v)]:e}}let b=u.Children.only(r),j=(0,x.clsx)(b.props.className||"",l,{[s]:this.state.dragging,[o]:this.state.dragged});return u.createElement(H,{...n,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},u.cloneElement(b,{className:j,style:{...b.props.style,...p},transform:m}))}};X.displayName="Draggable",X.propTypes={...H.propTypes,axis:p.default.oneOf(["both","x","y","none"]),bounds:p.default.oneOfType([p.default.shape({left:p.default.number,right:p.default.number,top:p.default.number,bottom:p.default.number}
1),p.default.string,p.default.oneOf([!1])]),defaultClassName:p.default.string,defaultClassNameDragging:p.default.string,defaultClassNameDragged:p.default.string,defaultPosition:p.default.shape({x:p.default.number,y:p.default.number}),positionOffset:p.default.shape({x:p.default.oneOfType([p.default.number,p.default.string]),y:p.default.oneOfType([p.default.number,p.default.string])}),position:p.default.shape({x:p.default.number,y:p.default.number}),className:j,style:j,transform:j},X.defaultProps={...H.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1};var O=function(e,t){return(O=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function W(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var _=function(){return(_=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var l in t=arguments[r])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e}).apply(this,arguments)};function z(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)0>t.indexOf(a[l])&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(r[a[l]]=e[a[l]]);return r}function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var I=("u"<typeof document?"undefined":Y(document))==="object"?document:null,U="u">typeof window&&"u">typeof navigator&&"u">typeof document,G=function(e){return void 0===e},Z=function(e){return"function"==typeof e},q=function(e){return"number"==typeof e},Q=function(e,t){if(Z(e.renderer)){e.elementRef=t;var r=e.renderer;return delete e.renderer,r(e)}return delete e.elementRef,c.createElement("div",_({},e,{ref:t}))},J=function(e,t,r,a){var l=getComputedStyle(e);return"border-box"===l.boxSizing?Math.max(0,(Number.parseFloat(l[t])||0)-(Number.parseFloat(l[r])||0)-(Number.parseFloat(l[a])||0)):Number.parseFloat(l[t])||0},K=function(e){return J(e,"height","paddingTop","paddingBottom")},ee=function(e){return J(e,"width","paddingLeft","paddingRight")},et=function(){for(var e="",t=0;t<32;t++)switch(t){case 8:case 20:e+="-".concat(Math.trunc(16*Math.random()).toString(16));break;case 12:e+="-4";break;case 16:e+="-".concat((16*Math.random()|8).toString(16));break;default:e+=Math.trunc(16*Math.random()).toString(16)}return e},er=function(e,t,r,a,l){if(t>=e)return 0;var s=t/e*r;return q(l)&&(s=Math.min(l,s)),q(a)&&(s=Math.max(a,s)),s},ea=function(e,t,r,a,l){return l&&a&&!(t>=e)?(r-a)*l/(e-t):0},el=function(e,t,r,a,l){return l&&a&&!(t>=e)?l*(e-t)/(r-a):0},es=function e(t){if(void 0===t&&(t=!1),!I)return e._cache=0,e._cache;if(!t&&!G(e._cache))return e._cache;var r=I.createElement("div");return(r.setAttribute("style","position:absolute;width:100px;height:100px;top:-999px;left:-999px;overflow:scroll;"),I.body.append(r),0===r.clientWidth)?void r.remove():(e._cache=100-r.clientWidth,r.remove(),e._cache)},eo=function e(t){if(void 0===t&&(t=!1),!t&&!G(e._cache))return e._cache;if(!I)return e._cache=!1,e._cache;var r=I.createElement("div"),a=I.createElement("div");return r.append(a),r.setAttribute("style","position:absolute;width:100px;height:100px;top:-999px;left:-999px;overflow:scroll;direction:rtl"),a.setAttribute("style","width:1000px;height:1000px"),I.body.append(r),r.scrollLeft=-50,e._cache=-50===r.scrollLeft,r.remove(),e._cache},ed=function(){function e(e){void 0===e&&(e=10),this.setMaxHandlers(e),this._handlers=Object.create(null)}return e._callEventHandlers=function(e,t,r){var a;if(t.length){if(1===t.length)return void Reflect.apply(t[0],e,r);for(t=function(e,t,r){if(r||2==arguments.length)for(var a,l=0,s=t.length;l<s;l++)!a&&l in t||(a||(a=Array.prototype.slice.call(t,0,l)),a[l]=t[l]);return e.concat(a||Array.prototype.slice.call(t))}([],t,!0),a=0;a<t.length;a++)Reflect.apply(t[a],e,r)}},e.prototype.setMaxHandlers=function(e){if(!q(e)||e<=0)throw TypeError("Expected maxHandlers to be a positive number, got '".concat(e,"' of type ").concat(Y(e)));return this._maxHandlers=e,this},e.prototype.getMaxHandlers=function(){return this._maxHandlers},e.prototype.emit=function(t){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return"object"===Y(this._handlers[t])&&!!Array.isArray(this._handlers[t])&&(e._callEventHandlers(this,this._handlers[t],r),!0)},e.prototype.on=function(t,r){return e._addHandler(this,t,r),this},e.prototype.prependOn=function(t,r){return e._addHandler(this,t,r,!0),this},e.prototype.once=function(t,r){if(!Z(r))throw TypeError("Expected event handler to be a function, got ".concat(Y(r)));return e._addHandler(this,t,this._wrapOnceHandler(t,r)),this},e.prototype.prependOnce=function(t,r){if(!Z(r))throw TypeError("Expected event handler to be a function, got ".concat(Y(r)));return e._addHandler(this,t,this._wrapOnceHandler(t,r),!0),this},e.prototype.off=function(t,r){return e._removeHandler(this,t,r),this},e.prototype.removeAllHandlers=function(){var t,r,a=this._handlers;this._handlers=Object.create(null);var l=a.removeHandler;for(r in delete a.removeHandler,a)for(t=a[r].length-1;t>=0;t--)e._callEventHandlers(this,l,[r,a[r][t].handler||a[r][t]]);return this},e.prototype._wrapOnceHandler=function(t,r){var a={fired:!1,handler:r,wrappedHandler:void 0,emitter:this,event:t},l=e._onceWrapper.bind(a);return a.wrappedHandler=l,l.handler=r,l.event=t,l},e._addHandler=function(e,t,r,a){if(void 0===a&&(a=!1),!Z(r))throw TypeError("Expected event handler to be a function, got ".concat(Y(r)));return e._handlers[t]=e._handlers[t]||[],e.emit("addHandler",t,r),a?e._handlers[t].unshift(r):e._handlers[t].push(r),e},e._onceWrapper=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.fired||(this.fired=!0,this.emitter.off(this.event,this.wrappedHandler),Reflect.apply(this.handler,this.emitter,e))},e._removeHandler=function(e,t,r){if(!Z(r))throw TypeError("Expected event handler to be a function, got ".concat(Y(r)));if(G(e._handlers[t])||!e._handlers[t].length)return e;var a=-1;if(1===e._handlers[t].length)(e._handlers[t][0]===r||e._handlers[t][0].handler===r)&&(a=0,r=e._handlers[t][0].handler||e._handlers[t][0]);else for(a=e._handlers[t].length-1;a>=0;a--)if(e._handlers[t][a]===r||e._handlers[t][a].handler===r){r=e._handlers[t][a].handler||e._handlers[t][a];break}return -1===a||(0===a?e._handlers[t].shift():e._handlers[t].splice(a,1),e.emit("removeHandler",t,r)),e},e}(),ec=new(function(){function e(){var e=this;this.targets=[],this.animationFrameID=0,this._isActive=!1,this.start=function(){return!e._isActive&&e.targets.length&&(e._isActive=!0,e.animationFrameID&&cancelAnimationFrame(e.animationFrameID),e.animationFrameID=requestAnimationFrame(e.rafCallback)),e},this.stop=function(){return e._isActive&&(e._isActive=!1,e.animationFrameID&&cancelAnimationFrame(e.animationFrameID),e.animationFrameID=0),e},this.addTarget=function(t,r){return void 0===r&&(r=!1),!e.targets.includes(t)&&(e.targets.push(t),1!==e.targets.length||r||e.start()),e},this.removeTarget=function(t){var r=e.targets.indexOf(t);return -1!==r&&(e.targets.splice(r,1),0===e.targets.length&&e.stop()),e},this.rafCallback=function(){if(!e._isActive)return 0;for(var t=0;t<e.targets.length;t++)e.targets[t]._unmounted||e.targets[t].update();return e.animationFrameID=requestAnimationFrame(e.rafCallback),e.animationFrameID}}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive}
1,enumerable:!1,configurable:!0}),e}());(t=a||(a={})).X="x",t.Y="y",(r=l||(l={})).JUMP="jump",r.STEP="step";var ei=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.element=null,r.initialOffsetX=0,r.initialOffsetY=0,r.elementRefHack=c.createRef(),r.lastDragData={x:0,y:0,deltaX:0,deltaY:0,lastX:0,lastY:0},r.handleOnDragStart=function(e,a){r.element?(U&&(r.prevUserSelect=document.body.style.userSelect,document.body.style.userSelect="none",r.prevOnSelectStart=document.onselectstart,document.addEventListener("selectstart",t.selectStartReplacer)),r.props.onDragStart&&r.props.onDragStart(r.lastDragData={x:a.x-r.initialOffsetX,y:a.y-r.initialOffsetY,lastX:a.lastX-r.initialOffsetX,lastY:a.lastY-r.initialOffsetY,deltaX:a.deltaX,deltaY:a.deltaY}),r.element.classList.add("dragging")):r.handleOnDragStop(e,a)},r.handleOnDrag=function(e,t){r.element?r.props.onDrag&&r.props.onDrag(r.lastDragData={x:t.x-r.initialOffsetX,y:t.y-r.initialOffsetY,lastX:t.lastX-r.initialOffsetX,lastY:t.lastY-r.initialOffsetY,deltaX:t.deltaX,deltaY:t.deltaY}):r.handleOnDragStop(e,t)},r.handleOnDragStop=function(e,t){var a=t?{x:t.x-r.initialOffsetX,y:t.y-r.initialOffsetY,lastX:t.lastX-r.initialOffsetX,lastY:t.lastY-r.initialOffsetY,deltaX:t.deltaX,deltaY:t.deltaY}:r.lastDragData;r.props.onDragEnd&&r.props.onDragEnd(a),r.element&&r.element.classList.remove("dragging"),U&&(document.body.style.userSelect=r.prevUserSelect,r.prevOnSelectStart&&document.addEventListener("selectstart",r.prevOnSelectStart),r.prevOnSelectStart=null),r.initialOffsetX=0,r.initialOffsetY=0,r.lastDragData={x:0,y:0,deltaX:0,deltaY:0,lastX:0,lastY:0}},r.handleOnMouseDown=function(e){if(r.element)if(e.preventDefault(),e.stopPropagation(),G(e.offsetX)){var t=r.element.getBoundingClientRect();r.initialOffsetX=(e.clientX||e.touches[0].clientX)-t.left,r.initialOffsetY=(e.clientY||e.touches[0].clientY)-t.top}else r.initialOffsetX=e.offsetX,r.initialOffsetY=e.offsetY},r.elementRef=function(e){Z(r.props.elementRef)&&r.props.elementRef(e),r.element=e,r.elementRefHack.current=e},r}return W(t,e),t.prototype.componentDidMount=function(){this.element||this.setState(function(){throw Error("<ScrollbarThumb> Element was not created. Possibly you haven't provided HTMLDivElement to renderer's `elementRef` function.")})},t.prototype.componentWillUnmount=function(){this.handleOnDragStop(),this.elementRef(null)},t.prototype.render=function(){var e=this.props;e.elementRef;var t=e.axis;e.onDrag,e.onDragEnd,e.onDragStart;var r=z(e,["elementRef","axis","onDrag","onDragEnd","onDragStart"]);return r.className=d("ScrollbarsCustom-Thumb",t===a.X?"ScrollbarsCustom-ThumbX":"ScrollbarsCustom-ThumbY",r.className),r.renderer&&(r.axis=t),c.createElement(H,{allowAnyClick:!1,enableUserSelectHack:!1,onMouseDown:this.handleOnMouseDown,onDrag:this.handleOnDrag,onStart:this.handleOnDragStart,onStop:this.handleOnDragStop,nodeRef:this.elementRefHack},Q(r,this.elementRef))},t.selectStartReplacer=function(){return!1},t}(c.Component),en=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.elementRef=function(e){Z(t.props.elementRef)&&t.props.elementRef(e),t.element=e},t.handleClick=function(e){if(e&&t.element&&0===e.button){if(Z(t.props.onClick)&&e.target===t.element)if(G(e.offsetX)){var r=t.element.getBoundingClientRect();t.props.onClick(e,{axis:t.props.axis,offset:t.props.axis===a.X?(e.clientX||e.touches[0].clientX)-r.left:(e.clientY||e.touches[0].clientY)-r.top})}else t.props.onClick(e,{axis:t.props.axis,offset:t.props.axis===a.X?e.offsetX:e.offsetY});return!0}},t}return W(t,e),t.prototype.componentDidMount=function(){this.element?this.element.addEventListener("click",this.handleClick):this.setState(function(){throw Error("Element was not created. Possibly you haven't provided HTMLDivElement to renderer's `elementRef` function.")})},t.prototype.componentWillUnmount=function(){this.element&&(this.element.removeEventListener("click",this.handleClick),this.element=null,this.elementRef(null))},t.prototype.render=function(){var e=this.props;e.elementRef;var t=e.axis;e.onClick;var r=z(e,["elementRef","axis","onClick"]);return r.className=d("ScrollbarsCustom-Track",t===a.X?"ScrollbarsCustom-TrackX":"ScrollbarsCustom-TrackY",r.className),r.renderer&&(r.axis=t),Q(r,this.elementRef)},t}(c.Component),eu={position:"relative",width:"100%",height:"100%"},ep={position:"absolute",top:0,left:0,bottom:0,right:0},em={boxSizing:"border-box"},ex={position:"absolute",overflow:"hidden",borderRadius:4,background:"rgba(0,0,0,.1)",userSelect:"none"},ef={height:10,width:"calc(100% - 20px)",bottom:0,left:10},eh={width:10,height:"calc(100% - 20px)",top:10},eg={cursor:"pointer",borderRadius:4,background:"rgba(0,0,0,.4)"},eb={height:"100%",width:0},ej={width:"100%",height:0},ew=U?i():1;U&&window.addEventListener("resize",function(){ew=i()},{passive:!0});var ey=c.createContext({parentScrollbar:null}),ev=function(e){function t(t){var r=e.call(this,t)||this;return r.getScrollState=function(e){if(void 0===e&&(e=!1),r.scrollValues&&!e)return _({},r.scrollValues);var t={clientHeight:0,clientWidth:0,contentScrollHeight:0,contentScrollWidth:0,scrollHeight:0,scrollWidth:0,scrollTop:0,scrollLeft:0,scrollYBlocked:!1,scrollXBlocked:!1,scrollYPossible:!1,scrollXPossible:!1,trackYVisible:!1,trackXVisible:!1,zoomLevel:+ew,isRTL:void 0},a=r.props;return t.isRTL=r.state.isRTL,t.scrollYBlocked=a.noScroll||a.noScrollY,t.scrollXBlocked=a.noScroll||a.noScrollX,r.scrollerElement&&(t.clientHeight=r.scrollerElement.clientHeight,t.clientWidth=r.scrollerElement.clientWidth,t.scrollHeight=r.scrollerElement.scrollHeight,t.scrollWidth=r.scrollerElement.scrollWidth,t.scrollTop=r.scrollerElement.scrollTop,t.scrollLeft=r.scrollerElement.scrollLeft,t.scrollYPossible=!t.scrollYBlocked&&t.scrollHeight>t.clientHeight,t.scrollXPossible=!t.scrollXBlocked&&t.scrollWidth>t.clientWidth,t.trackYVisible=t.scrollYPossible||a.permanentTracks||a.permanentTrackY,t.trackXVisible=t.scrollXPossible||a.permanentTracks||a.permanentTrackX),r.contentElement&&(t.contentScrollHeight=r.contentElement.scrollHeight,t.contentScrollWidth=r.contentElement.scrollWidth),t},r.scrollToTop=function(){return r.scrollerElement&&(r.scrollerElement.scrollTop=0),r},r.scrollToLeft=function(){return r.scrollerElement&&(r.scrollerElement.scrollLeft=0),r},r.scrollToBottom=function(){return r.scrollerElement&&(r.scrollerElement.scrollTop=r.scrollerElement.scrollHeight-r.scrollerElement.clientHeight),r},r.scrollToRight=function(){return r.scrollerElement&&(r.scrollerElement.scrollLeft=r.scrollerElement.scrollWidth-r.scrollerElement.clientWidth),r},r.scrollTo=function(e,t){return r.scrollerElement&&(q(e)&&(r.scrollerElement.scrollLeft=e),q(t)&&(r.scrollerElement.scrollTop=t)),r},r.centerAt=function(e,t){return r.scrollerElement&&(q(e)&&(r.scrollerElement.scrollLeft=e-r.scrollerElement.clientWidth/2),q(t)&&(r.scrollerElement.scrollTop=t-r.scrollerElement.clientHeight/2)),r},r.update=function(e){if(void 0===e&&(e=!1),r.scrollerElement){if(G(r.state.isRTL
1))return r.setState({isRTL:"rtl"===getComputedStyle(r.scrollerElement).direction}),r.getScrollState();var t=r.getScrollState(!0),a=_({},r.scrollValues),l=r.props,s=0;if(e)s=32767;else if(a.clientHeight!==t.clientHeight&&(s|=Math.trunc(1)),a.clientWidth!==t.clientWidth&&(s|=2),a.scrollHeight!==t.scrollHeight&&(s|=4),a.scrollWidth!==t.scrollWidth&&(s|=8),a.scrollTop!==t.scrollTop&&(s|=16),a.scrollLeft!==t.scrollLeft&&(s|=32),a.scrollYBlocked!==t.scrollYBlocked&&(s|=64),a.scrollXBlocked!==t.scrollXBlocked&&(s|=128),a.scrollYPossible!==t.scrollYPossible&&(s|=256),a.scrollXPossible!==t.scrollXPossible&&(s|=512),a.trackYVisible!==t.trackYVisible&&(s|=1024),a.trackXVisible!==t.trackXVisible&&(s|=2048),a.isRTL!==t.isRTL&&(s|=4096),a.contentScrollHeight!==t.contentScrollHeight&&(s|=8192),a.contentScrollWidth!==t.contentScrollWidth&&(s|=16384),a.zoomLevel!==t.zoomLevel&&(s|=32768),0===s)return a;if(l.native||!r.holderElement||(8192&s&&(l.translateContentSizesToHolder||l.translateContentSizeYToHolder)&&(r.holderElement.style.height="".concat(t.contentScrollHeight,"px")),16384&s&&(l.translateContentSizesToHolder||l.translateContentSizeXToHolder)&&(r.holderElement.style.width="".concat(t.contentScrollWidth,"px")),!l.translateContentSizesToHolder&&!l.translateContentSizeYToHolder&&!l.translateContentSizeXToHolder||(t.clientHeight||!t.contentScrollHeight)&&(t.clientWidth||!t.contentScrollWidth))){if(1024&s||2048&s){a.scrollYBlocked=t.scrollYBlocked,a.scrollXBlocked=t.scrollXBlocked,a.scrollYPossible=t.scrollYPossible,a.scrollXPossible=t.scrollXPossible,r.trackYElement&&1024&s&&(r.trackYElement.style.display=t.trackYVisible?"":"none"),r.trackXElement&&2048&s&&(r.trackXElement.style.display=t.trackXVisible?"":"none"),r.scrollValues=a,r.setState({trackYVisible:r.scrollValues.trackYVisible=t.trackYVisible,trackXVisible:r.scrollValues.trackXVisible=t.trackXVisible});return}return(l.native?r.updaterNative:r.updaterCustom)(s,t),r.scrollValues=t,!l.native&&32768&s&&(es(!0),r.forceUpdate()),r.eventEmitter.emit("update",_({},t),a),(16&s||32&s)&&r.eventEmitter.emit("scroll",_({},t),a),r.scrollValues}}},r.updaterNative=function(){return!0},r.updaterCustom=function(e,t){var a=r.props;if(r.trackYElement&&r.thumbYElement&&(e&Math.trunc(1)||4&e||16&e||64&e||256&e))if(t.scrollYPossible){var l=K(r.trackYElement),s=er(t.scrollHeight,t.clientHeight,l,a.minimalThumbYSize||a.minimalThumbSize,a.maximalThumbYSize||a.maximalThumbSize),o=ea(t.scrollHeight,t.clientHeight,l,s,t.scrollTop);r.thumbYElement.style.transform="translateY(".concat(o,"px)"),r.thumbYElement.style.height="".concat(s,"px"),r.thumbYElement.style.display=""}else r.thumbYElement.style.transform="",r.thumbYElement.style.height="0px",r.thumbYElement.style.display="none";if(r.trackXElement&&r.thumbXElement&&(2&e||8&e||32&e||128&e||512&e||4096&e))if(t.scrollXPossible){var l=ee(r.trackXElement),s=er(t.scrollWidth,t.clientWidth,l,a.minimalThumbXSize||a.minimalThumbSize,a.maximalThumbXSize||a.maximalThumbSize),o=ea(t.scrollWidth,t.clientWidth,l,s,t.scrollLeft);r.state.isRTL&&eo()&&(o+=l-s),r.thumbXElement.style.transform="translateX(".concat(o,"px)"),r.thumbXElement.style.width="".concat(s,"px"),r.thumbXElement.style.display=""}else r.thumbXElement.style.transform="",r.thumbXElement.style.width="0px",r.thumbXElement.style.display="none";return!0},r.elementRefHolder=function(e){r.holderElement=e,Z(r.props.elementRef)&&r.props.elementRef(e)},r.elementRefWrapper=function(e){r.wrapperElement=e,Z(r.props.wrapperProps.elementRef)&&r.props.wrapperProps.elementRef(e)},r.elementRefScroller=function(e){r.scrollerElement=e,Z(r.props.scrollerProps.elementRef)&&r.props.scrollerProps.elementRef(e)},r.elementRefContent=function(e){r.contentElement=e,Z(r.props.contentProps.elementRef)&&r.props.contentProps.elementRef(e)},r.elementRefTrackX=function(e){r.trackXElement=e,Z(r.props.trackXProps.elementRef)&&r.props.trackXProps.elementRef(e)},r.elementRefTrackY=function(e){r.trackYElement=e,Z(r.props.trackYProps.elementRef)&&r.props.trackYProps.elementRef(e)},r.elementRefThumbX=function(e){r.thumbXElement=e,Z(r.props.thumbXProps.elementRef)&&r.props.thumbXProps.elementRef(e)},r.elementRefThumbY=function(e){r.thumbYElement=e,Z(r.props.thumbYProps.elementRef)&&r.props.thumbYProps.elementRef(e)},r.handleTrackXClick=function(e,t){if(r.props.trackXProps.onClick&&r.props.trackXProps.onClick(e,t),r.scrollerElement&&r.trackXElement&&r.thumbXElement&&r.scrollValues&&r.scrollValues.scrollXPossible){r._scrollDetection();var a=r.thumbXElement.clientWidth,s=ee(r.trackXElement),o=(r.scrollValues.isRTL&&eo()?t.offset+a/2-s:t.offset-a/2)-(Number.parseFloat(getComputedStyle(r.trackXElement).paddingLeft)||0),d=el(r.scrollValues.scrollWidth,r.scrollValues.clientWidth,s,a,o);r.props.trackClickBehavior===l.STEP&&(d=(r.scrollValues.isRTL?r.scrollValues.scrollLeft>d:r.scrollValues.scrollLeft<d)?r.scrollValues.scrollLeft+r.scrollValues.clientWidth:r.scrollValues.scrollLeft-r.scrollValues.clientWidth),r.scrollerElement.scrollLeft=d}},r.handleTrackYClick=function(e,t){if(r.props.trackYProps.onClick&&r.props.trackYProps.onClick(e,t),r.scrollerElement&&r.trackYElement&&r.thumbYElement&&r.scrollValues&&r.scrollValues.scrollYPossible){r._scrollDetection();var a=r.thumbYElement.clientHeight,s=el(r.scrollValues.scrollHeight,r.scrollValues.clientHeight,K(r.trackYElement),a,t.offset-a/2)-(Number.parseFloat(getComputedStyle(r.trackYElement).paddingTop)||0);r.props.trackClickBehavior===l.JUMP?r.scrollerElement.scrollTop=s:r.scrollerElement.scrollTop=r.scrollValues.scrollTop<s?r.scrollValues.scrollTop+r.scrollValues.clientHeight:r.scrollValues.scrollTop-r.scrollValues.clientHeight}},r.handleTrackYMouseWheel=function(e){var t=r.props;t.trackYProps&&t.trackYProps.onWheel&&t.trackYProps.onWheel(e),t.disableTracksMousewheelScrolling||t.disableTrackYMousewheelScrolling||(r._scrollDetection(),r.scrollerElement&&!r.scrollValues.scrollYBlocked&&(r.scrollTop+=e.deltaY))},r.handleTrackXMouseWheel=function(e){var t=r.props;t.trackXProps&&t.trackXProps.onWheel&&t.trackXProps.onWheel(e),t.disableTracksMousewheelScrolling||t.disableTrackXMousewheelScrolling||(r._scrollDetection(),r.scrollerElement&&!r.scrollValues.scrollXBlocked&&(r.scrollLeft+=e.deltaX))},r.handleThumbXDrag=function(e){if(r.trackXElement&&r.thumbXElement&&r.scrollerElement&&r.scrollValues&&r.scrollValues.scrollXPossible){r._scrollDetection();var t,a=r.trackXElement.getBoundingClientRect(),l=getComputedStyle(r.trackXElement),s=Number.parseFloat(l.paddingLeft)||0,o=Number.parseFloat(l.paddingRight)||0,d=a.width-s-o,c=r.thumbXElement.clientWidth,i=r.scrollValues.isRTL&&eo()?e.x+c-d+s:e.lastX-s;r.scrollerElement.scrollLeft=el(r.scrollValues.scrollWidth,r.scrollValues.clientWidth,d,c,i),(null==(t=r.props.thumbXProps)?void 0:t.onDrag)&&r.props.thumbXProps.onDrag(e)}},r.handleThumbXDragEnd=function(e){var t;r.handleThumbXDrag(e),(null==(t=r.props.thumbXProps)?void 0:t.onDragEnd)&&r.props.thumbXProps.onDragEnd(e)},r.handleThumbYDrag=function(e){if(r.scrollerElement&&r.trackYElement&&r.thumbYElement&&r.scrollValues&&r.scrollValues.scrollYPossible){r._scrollDetection();var t,a=r.trackYElement.getBoundingClientRect(),l=getComputedStyle(r.trackYElement),s=Number.parseFloat(l.paddingTop)||0,o=Number.parseFloat(l.paddingBottom)||
10,d=a.height-s-o,c=r.thumbYElement.clientHeight,i=e.y-s;r.scrollerElement.scrollTop=el(r.scrollValues.scrollHeight,r.scrollValues.clientHeight,d,c,i),(null==(t=r.props.thumbYProps)?void 0:t.onDrag)&&r.props.thumbYProps.onDrag(e)}},r.handleThumbYDragEnd=function(e){var t;r.handleThumbYDrag(e),(null==(t=r.props.thumbYProps)?void 0:t.onDragEnd)&&r.props.thumbYProps.onDragEnd(e)},r.handleScrollerScroll=function(){r._scrollDetection()},r._scrollDetection=function(){r._scrollDetectionTO?U&&window.clearTimeout(r._scrollDetectionTO):r.eventEmitter.emit("scrollStart",r.getScrollState()),r._scrollDetectionTO=U?window.setTimeout(r._scrollDetectionCallback,r.props.scrollDetectionThreshold||0):null},r._scrollDetectionCallback=function(){r._scrollDetectionTO=null,r.eventEmitter.emit("scrollStop",r.getScrollState())},r.state={trackXVisible:!1,trackYVisible:!1,isRTL:t.rtl},r.scrollValues=r.getScrollState(!0),r.eventEmitter=new ed(15),t.onUpdate&&r.eventEmitter.on("update",t.onUpdate),t.onScroll&&r.eventEmitter.on("scroll",t.onScroll),t.onScrollStart&&r.eventEmitter.on("scrollStart",t.onScrollStart),t.onScrollStop&&r.eventEmitter.on("scrollStop",t.onScrollStop),r.id=et(),r}return W(t,e),Object.defineProperty(t.prototype,"scrollTop",{get:function(){return this.scrollerElement?this.scrollerElement.scrollTop:0},set:function(e){this.scrollerElement&&(this.scrollerElement.scrollTop=e,this.update())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollLeft",{get:function(){return this.scrollerElement?this.scrollerElement.scrollLeft:0},set:function(e){this.scrollerElement&&(this.scrollerElement.scrollLeft=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollHeight",{get:function(){return this.scrollerElement?this.scrollerElement.scrollHeight:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollWidth",{get:function(){return this.scrollerElement?this.scrollerElement.scrollWidth:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientHeight",{get:function(){return this.scrollerElement?this.scrollerElement.clientHeight:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientWidth",{get:function(){return this.scrollerElement?this.scrollerElement.clientWidth:0},enumerable:!1,configurable:!0}),t.calculateStyles=function(e,t,r,a){var l,s,o,d,c=!e.noDefaultStyles;return{holder:_(_(_({},c&&eu),{position:"relative"}),e.style),wrapper:_(_(_({},c&&_(_(_({},ep),!e.disableTracksWidthCompensation&&!e.disableTrackYWidthCompensation&&((l={})[t.isRTL?"left":"right"]=10*!!t.trackYVisible,l)),!e.disableTracksWidthCompensation&&!e.disableTrackXWidthCompensation&&{bottom:10*!!t.trackXVisible})),e.wrapperProps.style),{position:"absolute",overflow:"hidden"}),content:_(_(_(_(_({},c&&em),e.translateContentSizesToHolder||e.translateContentSizeYToHolder||e.translateContentSizeXToHolder?{display:"table-cell"}:{padding:.05}),c&&!(e.translateContentSizesToHolder||e.translateContentSizeYToHolder)&&{minHeight:"100%"}),c&&!(e.translateContentSizesToHolder||e.translateContentSizeXToHolder)&&{minWidth:"100%"}),e.contentProps.style),scroller:_(_(_(_(((s={position:"absolute",top:0,left:0,bottom:0,right:0,paddingBottom:!a&&r.scrollXPossible?e.fallbackScrollbarWidth:void 0})[t.isRTL?"paddingLeft":"paddingRight"]=!a&&r.scrollYPossible?e.fallbackScrollbarWidth:void 0,s),e.scrollerProps.style),!G(e.rtl)&&{direction:e.rtl?"rtl":"ltr"}),e.momentum&&{WebkitOverflowScrolling:"touch"}),((o={overflowY:r.scrollYPossible?"scroll":"hidden",overflowX:r.scrollXPossible?"scroll":"hidden",marginBottom:r.scrollXPossible?-(a||e.fallbackScrollbarWidth)-Number(1!==r.zoomLevel):void 0})[t.isRTL?"marginLeft":"marginRight"]=r.scrollYPossible?-(a||e.fallbackScrollbarWidth)-Number(1!==r.zoomLevel):void 0,o)),trackX:_(_(_(_({},c&&ex),c&&ef),e.trackXProps.style),!t.trackXVisible&&{display:"none"}),trackY:_(_(_(_(_({},c&&ex),c&&eh),c&&((d={})[t.isRTL?"left":"right"]=0,d)),e.trackYProps.style),!t.trackYVisible&&{display:"none"}),thumbX:_(_(_({},c&&eg),c&&eb),e.thumbXProps.style),thumbY:_(_(_({},c&&eg),c&&ej),e.thumbYProps.style)}},t.prototype.componentDidMount=function(){if(!this.scrollerElement)return void this.setState(function(){throw Error("scroller element was not created. Possibly you haven't provided HTMLDivElement to renderer's `elementRef` function.")});if(!this.contentElement)return void this.setState(function(){throw Error("content element was not created. Possibly you haven't provided HTMLDivElement to renderer's `elementRef` function.")});var e=this.props;if(!e.native&&!e.mobileNative){if(!this.holderElement)return void this.setState(function(){throw Error("holder element was not created. Possibly you haven't provided HTMLDivElement to renderer's `elementRef` function.")});if(!this.wrapperElement)return void this.setState(function(){throw Error("wrapper element was not created. Possibly you haven't provided HTMLDivElement to renderer's `elementRef` function.")})}ec.addTarget(this),G(e.scrollTop)||(this.scrollerElement.scrollTop=e.scrollTop),G(e.scrollLeft)||(this.scrollerElement.scrollLeft=e.scrollLeft),this.update(!0)},t.prototype.componentWillUnmount=function(){ec.removeTarget(this)},t.prototype.componentDidUpdate=function(e,t){if(this.scrollerElement){var r=this.props;r.rtl!==e.rtl&&r.rtl!==this.state.isRTL&&this.setState({isRTL:r.rtl}),this.state.isRTL!==t.isRTL&&this.update(),G(r.scrollTop)||r.scrollTop===this.scrollerElement.scrollTop||(this.scrollerElement.scrollTop=r.scrollTop),G(r.scrollLeft)||r.scrollLeft===this.scrollerElement.scrollLeft||(this.scrollerElement.scrollLeft=r.scrollLeft),e.onUpdate!==r.onUpdate&&(e.onUpdate&&this.eventEmitter.off("update",e.onUpdate),r.onUpdate&&this.eventEmitter.on("update",r.onUpdate)),e.onScroll!==r.onScroll&&(e.onScroll&&this.eventEmitter.off("scroll",e.onScroll),r.onScroll&&this.eventEmitter.on("scroll",r.onScroll)),e.onScrollStart!==r.onScrollStart&&(e.onScrollStart&&this.eventEmitter.off("scrollStart",e.onScrollStart),r.onScrollStart&&this.eventEmitter.on("scrollStart",r.onScrollStart)),e.onScrollStop!==r.onScrollStop&&(e.onScrollStop&&this.eventEmitter.off("scrollStop",e.onScrollStop),r.onScrollStop&&this.eventEmitter.on("scrollStop",r.onScrollStop))}},t.prototype.render=function(){var e=this.props,r=e.createContext,l=e.rtl,s=e.native,o=e.mobileNative,i=e.momentum;e.noDefaultStyles;var n=e.disableTracksMousewheelScrolling,u=e.disableTrackXMousewheelScrolling,p=e.disableTrackYMousewheelScrolling;e.disableTracksWidthCompensation,e.disableTrackXWidthCompensation,e.disableTrackYWidthCompensation;var m=e.noScrollX,x=e.noScrollY,f=e.noScroll,h=e.permanentTrackX,g=e.permanentTrackY,b=e.permanentTracks,j=e.removeTracksWhenNotUsed,w=e.removeTrackYWhenNotUsed,y=e.removeTrackXWhenNotUsed;e.minimalThumbSize,e.maximalThumbSize,e.minimalThumbXSize,e.maximalThumbXSize,e.minimalThumbYSize,e.maximalThumbYSize,e.fallbackScrollbarWidth,e.scrollTop,e.scrollLeft,e.trackClickBehavior,e.scrollDetectionThreshold;var v=e.wrapperProps,N=e.scrollerProps,C=e.contentProps,S=e.trackXProps,P=e.trackYProps,k=e.thumbXProps,T=e.thumbYProps,E=e.scrollbarWidth;e.elementRef,e.onUpdate,e.onScroll,e.onScrollStart,e.onScrollStop,e.translateContentSizesToHolder,e.translateContentSizeYToHolder,e.translateContentSizeXToHolder;var F=e.children,A=z(e,["createContext","rtl","native","mobileNative","momentum","noDefaultStyles","disableTracksMousewheelScrolling","disableTrackXMousewheelScrolling","disableTrackYMousewheelScrolling","disableTracksWidthCompensation","disableTrackXWidthCompensation","disableTrackYWidthCompensation","noScrollX","noScrollY","noScroll","permanentTrackX","permanentTrackY","permanentTracks","removeTracksWhenNotUsed","removeTrackYWhenNotUsed","removeTrackXWhenNotUsed","minimalThumbSize","maximalThumbSize","minimalThumbXSize","maximalThumbXSize","minimalThumbYSize","maximalThumbYSize","fallbackScrollbarWidth","scrollTop","scrollLeft","trackClickBehavior","scrollDetectionThreshold","wrapperProps","
1scrollerProps","contentProps","trackXProps","trackYProps","thumbXProps","thumbYProps","scrollbarWidth","elementRef","onUpdate","onScroll","onScrollStart","onScrollStop","translateContentSizesToHolder","translateContentSizeYToHolder","translateContentSizeXToHolder","children"]),D=G(E)?es()||0:E;if(s||!D&&o){this.elementRefHolder(null),this.elementRefWrapper(null),this.elementRefTrackX(null),this.elementRefTrackY(null),this.elementRefThumbX(null),this.elementRefThumbY(null);var L=_(_({},C),{key:"ScrollbarsCustom-Content",className:d("ScrollbarsCustom-Content",C.className),children:F}),V=_(_({},A),{className:d("ScrollbarsCustom native",this.state.trackYVisible&&"trackYVisible",this.state.trackXVisible&&"trackXVisible",this.state.isRTL&&"rtl",A.className),style:_(_(_(_({},A.style),!G(l)&&{direction:l?"rtl":"ltr"}),i&&{WebkitOverflowScrolling:"touch"}),{overflowX:f||m?"hidden":b||h?"scroll":"auto",overflowY:f||x?"hidden":b||g?"scroll":"auto"}),onScroll:this.handleScrollerScroll,children:Q(L,this.elementRefContent),renderer:N.renderer,elementRef:N.elementRef});return Q(V,this.elementRefScroller)}var R=t.calculateStyles(this.props,this.state,this.scrollValues,D),M=[],$=_(_({},C),{key:"ScrollbarsCustom-Content",className:d("ScrollbarsCustom-Content",C.className),style:R.content,children:r?c.createElement(ey.Provider,{value:{parentScrollbar:this}},F):F}),B=_(_({},N),{key:"ScrollbarsCustom-Scroller",className:d("ScrollbarsCustom-Scroller",N.className),style:R.scroller,children:Q($,this.elementRefContent),onScroll:this.handleScrollerScroll}),H=_(_({},v),{key:"ScrollbarsCustom-Wrapper",className:d("ScrollbarsCustom-Wrapper",v.className),style:R.wrapper,children:Q(B,this.elementRefScroller)});if(M.push(Q(H,this.elementRefWrapper)),!this.state.trackYVisible&&(j||w))this.elementRefTrackY(null),this.elementRefThumbY(null);else{var X=_(_({},T),{key:"ScrollbarsCustom-ThumbY",style:R.thumbY,elementRef:this.elementRefThumbY,onDrag:this.handleThumbYDrag,onDragEnd:this.handleThumbYDragEnd,axis:a.Y}),O=_(_(_(_({},P),{key:"ScrollbarsCustom-TrackY",style:R.trackY,elementRef:this.elementRefTrackY,onClick:this.handleTrackYClick}),(n||p)&&{onWheel:this.handleTrackYMouseWheel}),{axis:a.Y});O.children=c.createElement(ei,_({},X)),M.push(c.createElement(en,_({},O)))}if(!this.state.trackXVisible&&(j||y))this.elementRefTrackX(null),this.elementRefThumbX(null);else{var W=_(_({},k),{key:"ScrollbarsCustom-ThumbX",style:R.thumbX,elementRef:this.elementRefThumbX,onDrag:this.handleThumbXDrag,onDragEnd:this.handleThumbXDragEnd,axis:a.X}),Y=_(_(_(_({},S),{key:"ScrollbarsCustom-TrackX",style:R.trackX,elementRef:this.elementRefTrackX,onClick:this.handleTrackXClick}),(n||u)&&{onWheel:this.handleTrackXMouseWheel}),{axis:a.X});Y.children=c.createElement(ei,_({},W)),M.push(c.createElement(en,_({},Y)))}return Q(_(_({},A),{className:d("ScrollbarsCustom",this.state.trackYVisible&&"trackYVisible",this.state.trackXVisible&&"trackXVisible",this.state.isRTL&&"rtl",A.className),style:R.holder,children:M}),this.elementRefHolder)},t.contextType=ey,t.defaultProps={momentum:!0,minimalThumbSize:30,fallbackScrollbarWidth:20,trackClickBehavior:l.JUMP,scrollDetectionThreshold:100,wrapperProps:{},scrollerProps:{},contentProps:{},trackXProps:{},trackYProps:{},thumbXProps:{},thumbYProps:{}},t}(c.Component);e.s(["Scrollbar",0,ev,"default",0,ev],375609)},49006,503718,e=>{"use strict";var t=e.i(843476),r=e.i(258288),a=e.i(167988),l=e.i(265892),s=e.i(642624),o=e.i(505539),d=e.i(368799),c=e.i(618566),i=e.i(271645),n=e.i(174080),u=e.i(701973),p=e.i(24633),m=e.i(522016),x=e.i(374060),f=e.i(826086),h=e.i(533007),g=e.i(199854),b=e.i(710793),j=e.i(137963),w=e.i(687274),y=e.i(323389),v=e.i(331991),N=e.i(815330),C=e.i(268817),S=e.i(958088),P=e.i(386892),k=e.i(616647),T=e.i(250359),E=e.i(969816),F=e.i(84197);let A=({product:e,isSaveForLaterPage:a,brand:l,isSwipeCard:s=!1,setSwipeCardSelectedVariant:A,selectedFirstWeight:D,selectedCategory:L={},selectedSpecial:V={},onClick:R,onAddToCart:M,isSponsored:$,isSurfside:B=!1,specialUnlockSlug:H=""})=>{let{menuType:X,productCardSettings:O}=(0,r.useGlobalStore)(),{setIsQuickViewOpen:W,setQuickModalProduct:_}=(0,d.useModalStore)(),[z,Y]=(0,i.useState)(!1),[I,U]=(0,i.useState)(!1),[G,Z]=(0,i.useState)(!1),{handleAddToCart:q,setCurrentBrand:Q,setCurrentCategory:J,setCurrentSpecial:K}=(0,o.default)(),ee=(0,c.usePathname)(),{setRouteLoader:et}=(0,r.useGlobalStore)(),er=(0,c.useRouter)(),ea=(0,c.useSearchParams)(),el=ea?.get("specialSlug")?ea?.get("specialSlug"):H,[es,eo]=(0,i.useState)(!1),ed=(0,i.useRef)(null),ec=(0,i.useRef)(null),[ei,en]=(0,i.useState)(null),[eu,ep]=(0,i.useState)(0),[em,ex]=(0,i.useState)(null),[ef,eh]=(0,i.useState)(null),[eg,eb]=(0,i.useState)(null),ej=(0,g.default)().isMobile,ew=el&&"all"!==el?e?.specials?.find(e=>e.urlSlug===el)?.name:e?.specials?.[0]?.name,ey=el&&"all"!==el?el:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:ev}=(0,f.default)({specialName:ew,specialSlug:ey}),{showVariantSelector:eN,showPriceRange:eC,variantPriceRange:eS}=(0,E.default)(e);function eP(e){return"RECREATIONAL"==X?e?.priceRec:e?.priceMed}
1function ek(e){return"RECREATIONAL"==X?e?.specialPriceRec:e?.specialPriceMed}function eT(e){if(e==ee)return!1;et(!0),er.push(e)}function eE(e){eh(eP(e)),eb(ek(e)),ex(e),A&&A(e),eo(!1)}let eF=(0,i.useCallback)(()=>{if(!ed.current)return;let e=ed.current.getBoundingClientRect();en({top:e.top,left:e.left,width:e.width})},[]);(0,i.useLayoutEffect)(()=>es?(eF(),window.addEventListener("scroll",eF,!0),window.addEventListener("resize",eF),()=>{window.removeEventListener("scroll",eF,!0),window.removeEventListener("resize",eF)}):void en(null),[es,eF]);let eA=`v3grid-variant-${e?.id||e?.productId||e?.slug}`;function eD(e,r=!1){return(0,t.jsxs)("p",{className:r?"text-xs md:text-[18px] font-bold product-card-text-color":"product-card-text-color",children:[ek(e)&&eP(e).toFixed(2)!==ek(e).toFixed(2)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:r?"mr-2 text-sm md:text-xl":"mr-2 custom-price",children:["$",ek(e)&&ek(e).toFixed(2)]}),(0,t.jsxs)("span",{className:r?"line-through text-secondary_text text-[8px] md:text-xs":"line-through text-secondary_text custom-strike-price",children:["$",eP(e)&&eP(e).toFixed(2)]})]}):(0,t.jsxs)("span",{className:r?"text-sm md:text-xl":"custom-price",children:["$",eP(e)&&eP(e)?.toFixed(2)]}),(0,t.jsx)("span",{className:r?"":"custom-price",children:!eC&&(0,t.jsxs)(t.Fragment,{children:[" / ",(0,p.formatWeight)(e?.option)]})})]})}(0,i.useEffect)(()=>{if(!e?.variants?.length)return;let t=e?.variants,r=void 0!==D&&t?.find(e=>e?.option===D)||t?.[0];eh(eP(r)),eb(ek(r)),ex(r),A&&A(r)},[e,D]),(0,i.useEffect)(()=>{let e,t;e=0,t=0,ep(Math.round(t="RECREATIONAL"==X&&em?.specialPriceRec?((e=em?.priceRec)-em?.specialPriceRec)/e*100:em?.specialPriceMed?((e=em?.priceMed)-em?.specialPriceMed)/e*100:0))},[em]);let eL=(0,k.useProductStock)({product:e,selectedVariantOption:em?.option??""});return(0,i.useEffect)(()=>{ee&&(/^\/brands\/[^/]+$/.test(ee)&&(Y(!0),Q(l)),/^\/category\/[^/]+$/.test(ee)&&(U(!0),J(L)),(/^\/deals-collection\/[^/]+$/.test(ee)||/^\/search\/deals\/[^/?]+(?:\?.*)?$/.test(ee))&&(Z(!0),K(V)))},[ee,l?.brandId,L?.categoryName,V?.specialId]),(0,t.jsxs)("div",{onClick:()=>R?.(),className:(0,j.cn)("product-card-background-color relative mx-auto flex h-full min-h-[465px] w-full flex-col overflow-visible rounded-lg border p-4 shadow-md product-card-border-color md:min-h-[568px]",es&&"z-30"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1 mt-2 top-1 right-2 z-[1] absolute",children:[$&&(0,t.jsx)("div",{className:"bg-primary text-[12px] px-2 py-1 rounded-full text-white capitalize",children:"Sponsored"}),eu>0&&(0,t.jsx)("div",{className:" _button_input w-fit flex items-center gap-1 md:gap-1 md:px-4 py-2 p-1 rounded-full pd_batch_color",children:(0,t.jsxs)("p",{children:[eu,"% Off"]})}),O?.isNewProductEnabled&&(0,u.isNewProduct)(e?.createdAt,O?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"_button_input w-full flex items-center justify-center gap-1 md:gap-1 md:px-4 py-2 p-1 rounded-full",style:{backgroundColor:O?.newProductTagBgColor||"#76d145",color:O?.newProductTagTextColor||"#ffffff"},children:(0,t.jsx)("span",{children:O?.newProductTagTitle||"New"})})]}),(0,t.jsxs)("div",{className:"relativ rounded-lg",children:[(0,t.jsx)("div",{className:"px-5 md:px-10 pt-2 pb-5 h-[170px] md:h-52",children:(0,t.jsx)(m.default,{className:(0,j.cn)(s&&"pointer-events-none"),href:`/product/${e?.slug}`,onClick:()=>eT(`/product/${e?.slug}`),children:(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",quality:80,className:"object-contain w-full h-full rounded-lg",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",imgixParams:{w:ej?250:340,h:ej?250:340,auto:"format,compress"}})})}),(0,t.jsxs)("div",{className:"absolute top-3 md:top-5 left-3 md:left-5 space-y-3",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(y.default,{onOpen:()=>{_(e),W(!0)},tooltipPosition:"right"})}),(0,t.jsx)(w.default,{product:e,menuAlign:"left"})]}),(0,t.jsx)("hr",{className:"border-t border-gray-300"}),(0,t.jsxs)("div",{className:"flex justify-between text-[9px] md:text-sm font-medium p-3 text-gray-500",children:[e?.brand?.name?.length>0&&(0,t.jsx)("p",{className:"text-[9px] md:text-sm font-medium line-clamp-1 product-card-discount-tag-color",children:(0,u.makeTitleCase)(e?.brand?.name)}
1),e?.strainType&&e?.strainType!="NOT_APPLICABLE"&&(0,t.jsx)("p",{className:"product-card-text-color",children:(0,u.makeTitleCase)(e?.strainType)})]})]}),(0,t.jsxs)("div",{className:"pt-4 space-y-2 md:space-y-4",children:[(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>eT(`/product/${e?.slug}`),className:"h-9 md:h-12 text-sm md:text-lg font-semibold leading-tight line-clamp-2 product-card-text-color",children:e?.name}),(0,t.jsxs)("p",{className:"text-[9px] md:text-sm product-card-text-color",children:[e?.potencyThc?.formatted&&(0,t.jsxs)(t.Fragment,{children:["THC: ",e?.potencyThc?.formatted]}),e?.potencyThc?.formatted&&e?.potencyCbd?.formatted&&(0,t.jsx)(t.Fragment,{children:"-"}),e?.potencyCbd?.formatted&&(0,t.jsxs)(t.Fragment,{children:["CBD: ",e?.potencyCbd?.formatted]})]}),(0,t.jsx)(h.default,{product:e,cardNo:"three"})]}),(0,t.jsxs)("div",{className:"relative mt-auto space-y-2 overflow-visible pt-2",children:[(0,t.jsx)("div",{className:"w-full overflow-visible",children:eN?(0,t.jsx)(x.default,{enabled:es,onClickOutside:()=>eo(!1),additionalRefs:[ec],children:(0,t.jsxs)("div",{className:"relative w-full",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("button",{ref:ed,type:"button",onClick:()=>eo(e=>!e),className:"flex w-full items-center gap-1 rounded-lg p-2 text-left text-xs font-semibold leading-tight product-card-text-color md:text-xl",children:[eD(em),es?(0,t.jsx)(v.CaretUp,{className:"text-xl transition-all"}):(0,t.jsx)(N.CaretDown,{className:"rotate-180 text-xl transition-all"})]}),(()=>{if(!es||!ei||"u"<typeof document)return null;let r=Math.max(ei.width,260),a=window.innerWidth-r-16,l=Math.max(16,Math.min(ei.left,a));return n.default.createPortal((0,t.jsx)("div",{ref:ec,className:"fixed z-[9999] rounded-xl border border-gray-200 bg-white px-3 py-3 shadow-lg",style:{left:l,width:r,bottom:window.innerHeight-ei.top+8},onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:(0,t.jsx)("div",{className:"max-h-[250px] overflow-y-auto sb",children:e?.variants?.map((r,a)=>{let l=r?.id===em?.id;return(0,t.jsx)("div",{role:"button",tabIndex:0,onClick:()=>eE(r),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eE(r))},className:(0,j.cn)("my-1 cursor-pointer rounded-lg p-2 transition-colors",l?"bg-gray-100":"hover:bg-gray-50"),children:(0,t.jsxs)("label",{className:"relative flex w-full cursor-pointer items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,t.jsx)("input",{type:"radio",name:eA,value:JSON.stringify(r),checked:l,readOnly:!0,className:"pointer-events-none h-4 w-4 shrink-0 accent-gray-900"}),(0,t.jsx)("span",{className:"min-w-0 text-sm font-medium text-primary_text",children:eD(r,!0)})]}),(0,t.jsx)(S.default,{count:(0,P.getVariantStockCount)(e,r?.option),className:"shrink-0 whitespace-nowrap"})]})},"prd-variant"+a)})})}),document.body)})()]})}):(0,t.jsxs)("p",{className:"font-bold",children:[(0,t.jsx)(F.default,{showPriceRange:eC,variantPriceRange:eS,specialPrice:eg,normalPrice:ef,priceClassName:"custom-price product-card-text-color",strikeClassName:"line-through text-secondary_text custom-strike-price product-card-text-color"}),!eC&&"N/A"!==(0,p.formatWeight)(em?.option)&&e?.category!=="EDIBLES"&&(0,t.jsxs)("span",{className:"custom-price product-card-text-color",children:["/ ",(0,p.formatWeight)(em?.option)]})]})}),(0,t.jsx)("div",{className:"flex justify-start !mt-0",children:(0,t.jsx)(S.default,{count:eL})})]}),s?(0,t.jsx)("div",{className:"grid grid-cols-1 mt-auto",children:(0,t.jsx)(m.default,{href:`/product/${e.slug}`,className:"w-full whitespace-nowrap rounded-full text-sm font-medium px-6 py-2.5 secondary-button-hover text-center",children:"See Details"})}):(0,t.jsx)("div",{children:a?(0,t.jsxs)("button",{onClick:()=>{M?.(),q(e?.id||e?.productId,em?.option,e,1,!0,!1,!1,!1,{specialName:ew,specialSlug:ey},ev())},className:"text-[10px] md:text-base flex items-center justify-center gap-2 w-full mt-4 bg-white border font-medium py-2 rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",children:["Move to Cart ",(0,t.jsx)(C.CaretRight,{})]}):(0,t.jsxs)(T.default,{className:"text-[10px] md:text-base flex items-center justify-center gap-2 w-full mt-4 bg-white border font-medium py-2 rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",onAction:async()=>{M?.(),await q(e?.id||e?.productId,em?.option,e,1,!1,z,I,G,{specialName:ew,specialSlug:ey},ev())},children:["Add to cart ",(0,t.jsx)(C.CaretRight,{})]})}),(0,t.jsx)("div",{className:`flex-shrink-0 h-6 md:h-6 flex items-center h-6 pt-3 ${B?"block":"hidden"}`,children:$?(0,t.jsx)("div",{className:"text-[12px] product-card-text-color capitalize text-center w-full",children:"Sponsored"}
1):(0,t.jsx)("div",{"aria-hidden":!0,className:"w-full"})})]})},D=({product:e,isSaveForLaterPage:a,brand:l,selectedFirstWeight:s,selectedCategory:C={},selectedSpecial:A={},onClick:D,onAddToCart:L,specialUnlockSlug:V=""})=>{let{menuType:R,productCardSettings:M,setRouteLoader:$}=(0,r.useGlobalStore)(),{setIsQuickViewOpen:B,setQuickModalProduct:H}=(0,d.useModalStore)(),[X,O]=(0,i.useState)(!1),{handleAddToCart:W,setCurrentBrand:_,setCurrentCategory:z,setCurrentSpecial:Y}=(0,o.default)(),I=(0,c.usePathname)(),U=(0,c.useRouter)(),G=(0,c.useSearchParams)(),Z=G?.get("specialSlug")?G?.get("specialSlug"):V,[q,Q]=(0,i.useState)(!1),J=(0,i.useRef)(null),K=(0,i.useRef)(null),ee=(0,i.useRef)(null),[et,er]=(0,i.useState)(null),[ea,el]=(0,i.useState)(0),es=(0,g.default)().isMobile,[eo,ed]=(0,i.useState)(!1),[ec,ei]=(0,i.useState)(!1),en=Z&&"all"!==Z?e?.specials?.find(e=>e.urlSlug===Z)?.name:e?.specials?.[0]?.name,eu=Z&&"all"!==Z?Z:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:ep}=(0,f.default)({specialName:en,specialSlug:eu}),{showVariantSelector:em,showPriceRange:ex,variantPriceRange:ef}=(0,E.default)(e);function eh(e,r=!1){return(0,t.jsxs)("p",{className:r?"whitespace-nowrap text-xs md:text-[18px] font-bold product-card-text-color":"product-card-text-color",children:[eC(e)&&eN(e).toFixed(2)!==eC(e).toFixed(2)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:r?"mr-2 text-base md:text-2xl":"mr-2 custom-price",children:["$",eC(e)&&eC(e).toFixed(2)]}),!r&&(0,t.jsx)("br",{className:"md:hidden"}),(0,t.jsxs)("span",{className:r?"line-through text-secondary_text text-xs md:text-base":"line-through text-secondary_text custom-strike-price",children:["$",eN(e)&&eN(e).toFixed(2)]})]}):(0,t.jsxs)("span",{className:r?"":"custom-price",children:["$",eN(e)&&eN(e)?.toFixed(2)]}),(0,t.jsx)("span",{className:r?"":"custom-price",children:!ex&&(0,t.jsxs)(t.Fragment,{children:[" / ",(0,p.formatWeight)(e?.option)]})})]})}let[eg,eb]=(0,i.useState)(null),[ej,ew]=(0,i.useState)(null),[ey,ev]=(0,i.useState)(null);function eN(e){return"RECREATIONAL"==R?e?.priceRec:e?.priceMed}function eC(e){return"RECREATIONAL"==R?e?.specialPriceRec:e?.specialPriceMed}function eS(e){if(e==I)return!1;$(!0),U.push(e)}function eP(e){ew(eN(e)),ev(eC(e)),eb(e),Q(!1)}let ek=(0,i.useCallback)(()=>{let e=K.current,t=J.current;return e&&e.offsetWidth>0&&e.offsetHeight>0?e:t&&t.offsetWidth>0&&t.offsetHeight>0?t:e||t},[]),eT=(0,i.useCallback)(()=>{let e=ek();if(!e)return;let t=e.getBoundingClientRect();(0!==t.width||0!==t.height)&&er({top:t.top,left:t.left,width:t.width})},[ek]);(0,i.useLayoutEffect)(()=>q?(eT(),window.addEventListener("scroll",eT,!0),window.addEventListener("resize",eT),()=>{window.removeEventListener("scroll",eT,!0),window.removeEventListener("resize",eT)}):void er(null),[q,eT]);let eE=`v3-variant-${e?.id||e?.productId||e?.slug}`,eF=(e,r)=>(0,t.jsx)(x.default,{enabled:q,onClickOutside:()=>Q(!1),additionalRefs:[ee],children:(0,t.jsx)("div",{className:"relative w-full mt-1",onClick:e=>e.stopPropagation(),children:(0,t.jsxs)("button",{ref:e,type:"button",onClick:()=>{Q(e=>{let t=!e;return t&&requestAnimationFrame(()=>eT()),t})},className:r,children:[eh(eg),q?(0,t.jsx)(v.CaretUp,{className:"transition-all"}):(0,t.jsx)(N.CaretDown,{className:"rotate-180 transition-all"})]})})});(0,i.useEffect)(()=>{if(!e?.variants?.length)return;let t=e?.variants,r=void 0!==s&&t?.find(e=>e?.option===s)||t?.[0];ew(eN(r)),ev(eC(r)),eb(r)},[e,s]),(0,i.useEffect)(()=>{let e,t;e=0,t=0,el(Math.round(t="RECREATIONAL"==R&&eg?.specialPriceRec?((e=eg?.priceRec)-eg?.specialPriceRec)/e*100:eg?.specialPriceMed?((e=eg?.priceMed)-eg?.specialPriceMed)/e*100:0))},[eg]);let eA=(0,k.useProductStock)({product:e,selectedVariantOption:eg?.option??""});return(0,i.useEffect)(()=>{I&&(/^\/brands\/[^/]+$/.test(I)&&(ed(!0),_(l)),/^\/category\/[^/]+$/.test(I)&&(ei(!0),z(C)),(/^\/deals-collection\/[^/]+$/.test(I)||/^\/search\/deals\/[^/?]+(?:\?.*)?$/.test(I))&&(O(!0),Y(A)))},[I,l?.brandId,C?.categoryName,A?.specialId]),(0,t.jsxs)("div",{onClick:()=>D?.(),className:"flex items-center product-card-background-color product-card-shadow-color product-card-border-color roun
1ded-lg p-4 border product-card-border-color",children:[(0,t.jsxs)("div",{className:"w-2/5 md:w-1/3 max-w-80 md:h-[300px] h-48 relative px-3 md:px-16 md:py-5 rounded-lg",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1 mt-2 top-1 right-2 z-[1] absolute",children:[ea>0&&(0,t.jsx)("div",{className:" _button_input w-fit flex items-center gap-1 md:gap-1 md:px-4 py-2 p-1 rounded-full pd_batch_color",children:(0,t.jsxs)("p",{children:[ea,"% Off"]})}),M?.isNewProductEnabled&&(0,u.isNewProduct)(e?.createdAt,M?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"_button_input w-full flex items-center justify-center gap-1 md:gap-1 md:px-4 py-2 p-1 rounded-full",style:{backgroundColor:M?.newProductTagBgColor||"#76d145",color:M?.newProductTagTextColor||"#ffffff"},children:(0,t.jsx)("span",{children:M?.newProductTagTitle||"New"})})]}),(0,t.jsx)("div",{className:"h-full ",children:(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>eS(`/product/${e?.slug}`),children:(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",quality:80,className:"object-contain w-full h-full rounded-t-lg",imgixParams:{w:es?250:340,h:es?250:340,auto:"format,compress"}})})}),(0,t.jsxs)("div",{className:"absolute top-3 md:top-4 left-0 md:left-4 space-y-3",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(y.default,{onOpen:()=>{H(e),B(!0)},tooltipPosition:"right"})}),(0,t.jsx)(w.default,{product:e,menuAlign:"left"})]})]}),(0,t.jsxs)("div",{className:"flex-1 md:px-6 space-y-1 md:space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>eS(`/product/${e?.slug}`),children:(0,t.jsx)("h3",{className:"text-[11px] md:text-2xl md:font-medium font-semibold product-card-text-color",children:e?.name})}),e?.brand?.name?.length>0&&(0,t.jsx)("p",{className:"text-gray-500 text-[9px] md:text-sm font-medium product-card-discount-tag-color",children:(0,u.makeTitleCase)(e?.brand?.name)}),(0,t.jsxs)("div",{className:"mb-1",children:[e?.strainType&&e?.strainType!="NOT_APPLICABLE"&&(0,t.jsx)("p",{className:"text-[11px] md:text-sm font-bold product-card-text-color",children:e?.strainType}),(0,t.jsxs)("p",{className:"text-[11px] md:text-sm product-card-text-color",children:[e?.potencyThc?.formatted&&(0,t.jsxs)(t.Fragment,{children:["THC: ",e?.potencyThc?.formatted]}),e?.potencyThc?.formatted&&e?.potencyCbd?.formatted&&(0,t.jsx)(t.Fragment,{children:"-"}),e?.potencyCbd?.formatted&&(0,t.jsxs)(t.Fragment,{children:["CBD: ",e?.potencyCbd?.formatted]})]})]})]}),(0,t.jsx)(h.default,{product:e,cardNo:"three"}),(0,t.jsxs)("div",{className:"md:hidden flex justify-between items-center",children:[(0,t.jsxs)("div",{children:[em?eF(J,"w-full p-2 rounded-lg flex justify-start md:justify-center text-xs md:text-[18px] leading-tight items-center gap-1 text md:text-2xl font-semibold product-card-text-color"):(0,t.jsxs)("p",{className:"font-bold",children:[(0,t.jsx)(F.default,{showPriceRange:ex,variantPriceRange:ef,specialPrice:ey,normalPrice:ej,priceClassName:"custom-price product-card-text-color word-break",strikeClassName:"line-through text-secondary_text custom-strike-price product-card-text-color word-break"}
1),!ex&&"N/A"!==(0,p.formatWeight)(eg?.option)&&e?.category!=="EDIBLES"&&(0,t.jsxs)("span",{className:"custom-price product-card-text-color word-break",children:[" ","/ ",(0,p.formatWeight)(eg?.option)]})]}),(0,t.jsx)("div",{className:"flex justify-start !mt-0",children:(0,t.jsx)(S.default,{count:eA})})]}),a?(0,t.jsx)("button",{onClick:()=>{L?.(),W(e?.id||e?.productId,eg?.option,e,1,!0,eo,ec,X,{specialName:en,specialSlug:eu},ep())},className:"text-[10px] w-fit px-4 py-2 bg-white border border-gray-300 font-medium rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",children:"Move to Cart"}):(0,t.jsx)(T.default,{className:"text-[10px] w-fit px-4 py-2 bg-white border border-gray-300 font-medium rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",onAction:async()=>{L?.(),await W(e?.id||e?.productId,eg?.option,e,1,!1,eo,ec,X,{specialName:en,specialSlug:eu},ep())},children:"Add to cart"})]})]}),(0,t.jsxs)("div",{className:"min-w-60 hidden md:flex flex-col items-center space-y-4",children:[em?(0,t.jsx)("div",{className:"w-full",children:eF(K,"w-full p-2 rounded-lg flex justify-start md:justify-center text-xs md:text-[18px] leading-tight items-center gap-1 text md:text-2xl font-semibold")}):(0,t.jsxs)("p",{className:"font-bold",children:[(0,t.jsx)(F.default,{showPriceRange:ex,variantPriceRange:ef,specialPrice:ey,normalPrice:ej,priceClassName:"custom-price product-card-text-color word-break-all",strikeClassName:"line-through product-card-text-color custom-strike-price word-break-all"}),!ex&&"N/A"!==(0,p.formatWeight)(eg?.option)&&e?.category!=="EDIBLES"&&(0,t.jsxs)("span",{className:"custom-price product-card-text-color word-break-all",children:[" ","/ ",(0,p.formatWeight)(eg?.option)]})]}),(0,t.jsx)("div",{className:"flex justify-start !mt-0",children:(0,t.jsx)(S.default,{count:eA})}),a?(0,t.jsx)("button",{onClick:()=>W(e?.id||e?.productId,eg?.option,e,1,!0,eo,ec,X,{specialName:en,specialSlug:eu},ep()),className:"w-full px-4 py-2 bg-white border border-gray-300 font-medium rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",children:"Move to Cart"}):(0,t.jsx)(T.default,{className:"w-full px-4 py-2 bg-white border border-gray-300 font-medium rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",onAction:async()=>{await W(e?.id||e?.productId,eg?.option,e,1,!1,eo,ec,X,{specialName:en,specialSlug:eu},ep())},children:"Add to cart"})]}),em&&(()=>{if(!q||!et||"u"<typeof document)return null;let r=Math.max(et.width,340),a=et.left+et.width,l=window.innerWidth-r-16,s=Math.max(16,Math.min(a-r,l));return n.default.createPortal((0,t.jsx)("div",{ref:ee,className:"fixed z-[9999] min-w-[340px] rounded-xl border border-gray-200 bg-white px-3 py-3 shadow-lg",style:{left:s,width:r,top:et.top,transform:"translateY(calc(-100% - 8px))"},onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:(0,t.jsx)("div",{className:"max-h-[250px] overflow-y-auto sb",children:e?.variants?.map((r,a)=>{let l=r?.id===eg?.id;return(0,t.jsx)("div",{role:"button",tabIndex:0,onClick:()=>eP(r),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eP(r))},className:(0,j.cn)("my-1 cursor-pointer rounded-lg p-2 transition-colors",l?"bg-gray-100":"hover:bg-gray-50"),children:(0,t.jsxs)("label",{className:"relative flex w-full cursor-pointer items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,t.jsx)("input",{type:"radio",name:eE,value:JSON.stringify(r),checked:l,readOnly:!0,className:"pointer-events-none h-4 w-4 shrink-0 accent-gray-900"}),(0,t.jsx)("span",{className:"min-w-0 text-sm font-medium text-primary_text",children:eh(r,!0)})]}),(0,t.jsx)(S.default,{count:(0,P.getVariantStockCount)(e,r?.option),className:"shrink-0 whitespace-nowrap"})]})},"prd-variant"+a)})})}),document.body)})()]})};var L=e.i(267750),V=e.i(919056);let R=e=>{let{open:r,children:a,handleClose:l}=e,s=(0,i.useRef)(null);return(0,L.useBodyScrollLock)(r),(0,t.jsx)("div",{className:(0,V.twMerge)("bg-black bg-opacity-50 fixed inset-0 z-[200] h-full w-full flex items-end transition-opacity",r?"opacity-100 visible":"opacity-0 invisible"),onClick:e=>{e?.target===s.current&&l()},ref:s,children:(0,t.jsx)("div",{className:(0,V.twMerge)("w-full max-h-[620px]  p-4 transition-all duration-500 bg-white overflow-y-hidden rounded-t-xl",r?"translate-y-0 opacity-100 visible":"translate-y-full opacity-0 invisible"),children:a})})};e.s(["default",0,R],503718);let M=e=>{let{open:r,children:a,handleClose:l}=e,[s,o]=(0,i.useState)(null);return((0,L.useBodyScrollLock)(r),(0,i.useEffect)(()=>{let e=e=>{e?.target.classList.contains("modal")&&l()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[l]),(0,i.useEffect)(()=>{let e=document.createElement("div");return document.body.appendChild(e),o(e),()=>{document.body.contains(e)&&document.body.removeChild(e)}},[]),s&&r)?n.default.createPortal((0,t.jsx)("div",{className:`block fixed top-0 bottom-0 left-0 right-0 z-[70] grid items-center modal bg-black/60 h-[100vh] ${e.padding}`,children:(0,t.jsx)("div",{className:`bg-white overflow-auto mx-auto rounded w-11/12 max-h-[90vh] relative ${e.className}`,children:a})}),s):null};var $=e.i(779511),B=e.i(356530);let H=({onQuantityChange:e,clearState:r,quantityClassName:a,className:l})=>{let[s,o]=(0,i.useState)(1),[d,c]=(0,i.useState)(!0),[n,u]=(0,i.useState)(null),[p,m]=(0,i.useState)(!1),x=()=>{n&&clearTimeout(n),c(!1),u(setTimeout(()=>{m(!0),setTimeout(()=>{c(!0)},500)},2e3)),m(!1)};return(0,i.useEffect)(()=>()=>{n&&clearTimeout(n)},[n]),(0,i.useEffect)(()=>{e(s)},[s]),(0,i.useEffect)(()=>{r&&(o(1),c(!0),n&&clearTimeout(n))},[r]),(0,t.jsx)("div",{className:(0,j.cn)("flex justify-end",l),children:d?(0,t.jsxs)("div",{style:{boxShadow:"0px 10px 15px rgba(0, 0, 0, 0.2)"},className:(0,j.cn)("flex items-center justify-center bg-white shadow-2xl rounded-full text-gray-800 cursor-pointer transition-transform duration-300 ease-out",a,"w-10 h-10 md:w-12 md:h-12 text-lg"),onClick:()=>x(),children:[s,"x"]}):(0,t.jsx)("div",{style:{boxShadow:"0px 10px 15px rgba(0, 0, 0, 0.2)"},className:"flex items-center p-2 bg-white shadow-2xl rounded-full gap-4 md:gap-10 transition-transform duration-300 ease-out",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2 md:space-x-4",children:[(0,t.jsx)("button",{onClick:()=>{o(e=>e>1?e-1:e),x()},className:"aspect-square hover:bg-gray-200 rounded-full px-2 py-1 text-base transform transition-all duration-200",disabled:1===s,children:(0,t.jsx)($.Minus,{})}),p?(0,t.jsx)("div",{className:"w-5 h-5 border-4 border-t-gray-700 border-gray-200 rounded-full animate-spin"}):(0,t.jsx)("span",{className:"text-lg text-gray-700",children:s},s),(0,t.jsx)("button",{onClick:()=>{o(e=>e<10?e+1:e),x()},className:"aspect-square hover:bg-gray-200 rounded-full px-2 py-1 text-base transform transition-all duration-200",disabled:10===s,children:(0,t.jsx)(B.Plus,{})})]})})})};var X=e.i(577854),O=e.i(375609),W=e.i(817389);
1let _=({product:e,specialPrice:r,normalPrice:a,selectedVariant:l,setQuantity:s,clearState:o,handleSelectVariants:d,handleSpecialPricing:c,handleNormalPricing:i,formatWeight:n,processAddingToCart:u,isSaveForLaterPage:p,closeWeightModal:m,isSwipeCard:x})=>(0,t.jsxs)("div",{className:"p-3 md:p-5",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex items-center justify-between mb-5",children:[(0,t.jsx)("p",{className:"text-lg font-semibold text-gray-900",children:"Select Weight"}),(0,t.jsx)(X.X,{className:"text-gray-600 text-xl cursor-pointer",onClick:m})]})}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between space-x-5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:80,height:80,className:"object-cover"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-[6px]",children:[(0,t.jsx)("p",{className:"text-lg font-semibold leading-5 break-words",children:e?.name}),(0,t.jsx)("div",{className:"text-gray-600 font-semibold",children:(0,t.jsxs)("p",{className:"text-gray-600 font-semibold break-words",children:[r&&a.toFixed(2)!==r.toFixed(2)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"mr-2 custom-price break-words",children:["$",r&&r.toFixed(2)]}),(0,t.jsxs)("span",{className:"line-through text-secondary_text custom-strike-price break-words",children:["$",a&&a.toFixed(2)]})]}):(0,t.jsxs)("span",{className:"custom-price break-words",children:["$",a&&a?.toFixed(2)]}),(0,t.jsxs)("span",{className:"custom-price break-words",children:["/ ",n(l?.option)]})]})})]})]}),(0,t.jsx)(H,{onQuantityChange:s,clearState:o})]}),(0,t.jsx)(O.default,{style:{height:"290px"},children:(0,t.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,_minmax(100px,_1fr))] gap-2",children:e?.variants?.length>1&&e?.variants.map((e,r)=>(0,t.jsxs)("div",{onClick:()=>{d(JSON.stringify(e)),x&&m()},className:`relative min-w-0 text-center cursor-pointer border-2 rounded-lg p-2 flex flex-col items-center justify-center text-sm gap-1 transition-all duration-200 ease-out active:scale-95 ${l?.id===e?.id?"border-primary":"border-gray-200"}`,children:["$",l?.id===e?.id&&(0,t.jsx)(W.CheckCircleIcon,{size:24,weight:"fill",className:"absolute top-1 right-1"}),(0,t.jsx)("p",{className:"w-full min-w-0 break-words",children:n(e?.option)}),(0,t.jsx)("p",{className:"w-full min-w-0 break-words font-semibold",children:c(e)&&i(e).toFixed(2)!==c(e).toFixed(2)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"mr-2 text-sm",children:["$",c(e)&&c(e).toFixed(2)]}),(0,t.jsx)("br",{}),(0,t.jsxs)("span",{className:"line-through text-red-500 text-xs md:text-xs",children:["$",i(e)&&i(e).toFixed(2)]})]}):(0,t.jsxs)("span",{children:["$",i(e)&&i(e)?.toFixed(2)]})}),(0,t.jsx)(S.default,{count:e?.quantity??0,styleVariant:"count",className:"mt-1"})]},r))})}),!x&&(0,t.jsxs)(t.Fragment,{children:[" ",p?(0,t.jsx)("button",{onClick:()=>{u("move")},className:"w-full fill-button bg-teal-700 text-white border font-medium py-3 rounded-full hover:bg-teal-900 transition duration-150",children:"Move to Cart"}):(0,t.jsx)(T.default,{className:"w-full fill-button bg-teal-700 text-white border font-medium py-3 rounded-full hover:bg-teal-900 transition duration-150",onAction:async()=>{await u("add")},children:"Add to cart"})]}),(0,t.jsx)("button",{className:"text-gray-800 w-full font-medium",onClick:m,children:"Cancel"})]})]});var z=e.i(102225),Y=e.i(128952);let I=({product:e,isSaveForLaterPage:a,brand:l,isSwipeCard:s=!1,setSwipeCardSelectedVariant:o,selectedFirstWeight:d,selectedCategory:i={},selectedSpecial:x={},onClick:v,onAddToCart:P,isSponsored:F,isSurfside:A=!1,specialUnlockSlug:D="",isModal:L=!1,priority:V=!1})=>{let{productCardSettings:$}=(0,r.useGlobalStore)(),B=(0,g.default)().isMobile,{weightModalOpen:H,setWeightModalOpen:X,openDrawer:O,setOpenDrawer:W,closeWeightModal:I,closeDrawer:U,setOpen:G,handleNormalPricing:Z,handleSpecialPricing:q,handleRouteChange:Q,handleSelectVariants:J,processAddingToCart:K,processAddingToCartMobile:ee,discount:et,specialPrice
1:er,normalPrice:ea,selectedVariant:el,handleAddToCart:es,price:eo,setQuantity:ed,clearState:ec,isBrandDetailsPage:ei,isCategoryDetailsPage:en,isSpecialDetailsPage:eu}=(0,z.default)({product:e,brand:l,setSwipeCardSelectedVariant:o,selectedFirstWeight:d,selectedCategory:i,selectedSpecial:x}),ep=(0,c.useSearchParams)(),em=ep?.get("specialSlug")?ep?.get("specialSlug"):D,ex=em&&"all"!==em?e?.specials?.find(e=>e.urlSlug===em)?.name:e?.specials?.[0]?.name,ef=em&&"all"!==em?em:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:eh}=(0,f.default)({specialName:ex,specialSlug:ef}),{showVariantSelector:eg,showPriceRange:eb,variantPriceRange:ej}=(0,E.default)(e),ew=(0,k.useProductStock)({product:e,selectedVariantOption:el?.option??""}),ey=$?.isShowAvailableStocks||!1;return(0,t.jsxs)("div",{onClick:()=>v?.(),className:(0,j.cn)(s?"px-2 md:px-5 py-3.5 rounded-md duration-500 cursor-pointer relative drop-shadow-sm md:min-h-[630px] h-full product-card-background-color product-card-border-color w-full":"  product-card-background-color product-card-shadow-color product-card-border-color relative shadow-md rounded-lg mx-auto border flex flex-col h-full w-full"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1 top-1 mt-2 left-2 z-[1] absolute",children:[et>0&&(0,t.jsx)("div",{className:" _button_input w-fit flex items-center gap-1 md:gap-1 md:px-4 py-2 p-1 rounded-full pd_batch_color",children:(0,t.jsxs)("p",{children:[et,"% Off"]})}),$?.isNewProductEnabled&&(0,u.isNewProduct)(e?.createdAt,$?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"_button_input w-full flex items-center justify-center gap-1 md:gap-1 md:px-4 py-2 p-1 rounded-full",style:{backgroundColor:$?.newProductTagBgColor||"#76d145",color:$?.newProductTagTextColor||"#ffffff"},children:(0,t.jsx)("span",{children:$?.newProductTagTitle||"New"})})]}),(0,t.jsxs)("div",{className:"relative w-full md:h-60 h-44 p-4 mx-auto",children:[(0,t.jsx)(m.default,{className:(0,j.cn)(s&&"pointer-events-none"),href:`/product/${e?.slug}`,onClick:()=>{Q(`/product/${e?.slug}`)},children:(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",quality:80,priority:V,className:"object-contain w-full h-full object-center",imgixParams:{w:B?250:340,h:B?250:340,auto:"format,compress"}})}),(0,t.jsxs)("div",{className:"absolute top-3 md:top-5 right-1 md:right-5 space-y-3",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(y.default,{onOpen:()=>G(!0)})}),(0,t.jsx)(w.default,{product:e})]})]}),(0,t.jsxs)("div",{className:(0,j.cn)("flex flex-col justify-between mt-aut md:h-[302px] px-4 pb-4",ey?"h-[295px]":"h-[275px]"),children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("p",{className:"font-extrabold leading-tight product-card-text-color font-bold",children:[eb&&ej?(0,t.jsx)("span",{className:"custom-price",children:ej}):er&&er?.toFixed(2)!==ea?.toFixed(2)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"mr-2 custom-price",children:["$",er&&er.toFixed(2)]}),(0,t.jsxs)("span",{className:"line-through text-secondary_text custom-strike-price",children:["$",ea&&ea.toFixed(2)]})]}):(0,t.jsxs)("span",{className:"custom-price",children:["$",ea&&ea?.toFixed(2)]}),!eb&&"N/A"!==(0,p.formatWeight)(el?.option)&&e?.category!=="EDIBLES"&&(0,t.jsxs)("span",{className:"custom-price",children:[" ","/ ",(0,p.formatWeight)(el?.option)]})]}),(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>Q(`/product/${e?.slug}`),className:(0,j.cn)("font-semibold leading-tight line-clamp-2 product-card-text-color",L?"h-9 text-xs":"h-14 text-lg"),children:e?.name}),e?.brand?.name?.length>0&&(0,t.jsx)("p",{className:(0,j.cn)("font-medium product-card-discount-tag-color",L?"text-xs":"text-sm"),children:(0,u.makeTitleCase)(e?.brand?.name)}),(0,t.jsxs)("div",{className:"flex items-center md:text-xs text-[11px] gap-1 flex-wrap product-card-text-color",children:[e?.strainType&&e?.strainType!="NOT_APPLICABLE"&&(0,t.jsx)("p",{className:"font-bold",children:e?.strainType}),(e?.potencyThc?.formatted||e?.potencyCbd?.formatted)&&(0,t.jsx)(Y.Circle,{weight:"fill",className:"text-[8px]"}),(0,t.jsxs)("p",{className:"",children:[e?.potencyThc?.formatted&&(0,t.jsxs)(t.Fragment,{children:["THC: ",e?.potencyThc?.formatted]}),e?.potencyThc?.formatted&&e?.potencyCbd?.formatted&&(0,t.jsx)(t.Fragment,{children:"-"}),e?.potencyCbd?.formatted&&(0,t.jsxs)(t.Fragment,{children:["CBD: ",e?.potencyCbd?.formatted]})]})]}),(0,t.jsx)("div",{className:"flex justify-start mt-1",children:(0,t.jsx)(S.default,{count:ew})})]}),(0,t.jsxs)("div",{className:"mt-auto",children:[(0,t.jsx)(h.default,{product:e,cardNo:"four"}),eg?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{onClick:()=>X(!0),className:"hidden md:flex text-gray-800 text-[10px] md:text-base items-center justify-center gap-2 w-full mt-4 bg-white border font-medium py-2 rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",children:[(0,t.jsx)("p",{children:"Select Weight"})," ",(0,t.jsx)(N.CaretDown,{})]}),(0,t.jsxs)("button",{onClick:()=>W(!0),className:"md:hidden text-gray-800 text-[10px] md:text-base flex items-center justify-center gap-2 w-full md:mt-4 mt-2 bg-white border font-medium py-2 rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",children:[(0,t.jsx)("p",{children:"Select Weight"})," ",(0,t.jsx)(N.CaretDown,{})]}),s&&(0,t.jsx)("div",{className:"grid grid-cols-1 mt-auto",children:(0,t.jsx)(m.default,{href:`/product/${e.slug}`,className:"w-full whitespace-nowrap rounded-full text-sm font-medium px-6 py-2.5 secondary-button-hover text-center mt-3",children:"See Details"})})]})}):(0,t.jsx)(t.Fragment,{children:a?(0,t.jsx)(t.Fragment,{children:s?(0,t.jsx)("div",{className:"grid grid-cols-1 mt-auto",children:(0,t.jsx)(m.default,{href:`/product/${e.slug}`,className:"w-full whitespace-nowrap rounded-full text-sm font-medium px-6 py-2.5 secondary-button-hover text-center mt-3",children:"See Details"})}):(0,t.jsx)("button",{onClick:()=>
1{P?.(),es(e?.id||e?.productId,eo[0]?.option,e,1,!0,!1,!1,!1,{specialName:ex,specialSlug:ef},eh())},className:"text-gray-800 text-[10px] md:text-base flex items-center justify-center gap-2 w-full md:mt-4 mt-2 bg-white border font-medium py-2 rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",children:(0,t.jsx)("p",{children:"Move to Cart"})})}):(0,t.jsx)(t.Fragment,{children:s?(0,t.jsx)("div",{className:"grid grid-cols-1 mt-auto",children:(0,t.jsx)(m.default,{href:`/product/${e.slug}`,className:"w-full whitespace-nowrap rounded-full text-sm font-medium px-6 py-2.5 secondary-button-hover text-center mt-3",children:"See Details"})}):(0,t.jsxs)(T.default,{className:"text-gray-800 text-[10px] md:text-base flex items-center justify-center gap-2 w-full md:mt-4 mt-2 bg-white border font-medium py-2 rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",onAction:async()=>{P?.(),await es(e?.id||e?.productId,el?.option,e,1,!1,ei,en,eu,{specialName:ex,specialSlug:ef},eh())},children:[(0,t.jsx)("p",{children:"Add to cart"}),(0,t.jsx)(C.CaretRight,{})]})})})]})]}),(0,t.jsx)(M,{open:H,handleClose:I,className:"max-w-[550px] rounded-3xl",children:(0,t.jsx)(_,{product:e,specialPrice:er,normalPrice:ea,selectedVariant:el,setQuantity:ed,clearState:ec,handleSelectVariants:J,handleSpecialPricing:q,handleNormalPricing:Z,formatWeight:p.formatWeight,processAddingToCart:K,isSaveForLaterPage:a||!1,closeWeightModal:I})}),n.default.createPortal((0,t.jsx)(R,{open:O,handleClose:U,children:(0,t.jsx)(_,{product:e,specialPrice:er,normalPrice:ea,selectedVariant:el,setQuantity:ed,clearState:ec,handleSelectVariants:J,handleSpecialPricing:q,handleNormalPricing:Z,formatWeight:p.formatWeight,processAddingToCart:ee,isSaveForLaterPage:a||!1,closeWeightModal:U,isSwipeCard:s})}),document.body),(0,t.jsx)("div",{className:`flex-shrink-0 h-6 md:h-6 flex items-center h-6 ${A?"block":"hidden"}`,children:F?(0,t.jsx)("div",{className:"text-[12px] product-card-text-color capitalize text-center w-full mb-2",children:"Sponsored"}):(0,t.jsx)("div",{"aria-hidden":!0,className:"w-full"})})]})},U=({product:e,isSaveForLaterPage:a,brand:l,selectedFirstWeight:s,selectedCategory:o={},selectedSpecial:d={},onClick:i,onAddToCart:n,specialUnlockSlug:x=""})=>{let{productCardSettings:j}=(0,r.useGlobalStore)(),v=(0,g.default)().isMobile,{weightModalOpen:P,setWeightModalOpen:F,openDrawer:A,setOpenDrawer:D,closeWeightModal:L,closeDrawer:V,setOpen:$,handleNormalPricing:B,handleSpecialPricing:H,handleRouteChange:X,handleSelectVariants:O,processAddingToCart:W,processAddingToCartMobile:I,discount:U,specialPrice:G,normalPrice:Z,selectedVariant:q,handleAddToCart:Q,price:J,setQuantity:K,clearState:ee,isBrandDetailsPage:et,isCategoryDetailsPage:er,isSpecialDetailsPage:ea}=(0,z.default)({product:e,brand:l,selectedFirstWeight:s,selectedCategory:o,selectedSpecial:d}),el=(0,c.useSearchParams)(),es=el?.get("specialSlug")?el?.get("specialSlug"):x,eo=es&&"all"!==es?e?.specials?.find(e=>e.urlSlug===es)?.name:e?.specials?.[0]?.name,ed=es&&"all"!==es?es:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:ec}=(0,f.default)({specialName:eo,specialSlug:ed}),{showVariantSelector:ei,showPriceRange:en,variantPriceRange:eu}=(0,E.default)(e),ep=(0,k.useProductStock)({product:e,selectedVariantOption:q?.option??""});return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{onClick:()=>i?.(),className:"md:p-0 pl-0 p-4 flex items-center product-card-background-color product-card-shadow-color product-card-border-color rounded-lg border gap-5 relative",children:[(0,t.jsxs)("div",{className:"md:w-[272px] w-36 md:h-[300px] h-48 relative rounded-lg overflow-hidden",children:[(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>X(`/product/${e?.slug}`),className:"flex justify-center items-center align-middle h-full p-6",children:(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",className:"rounded-l-lg w-full h-auto",imgixParams:{w:v?250:340,h:v?250:340,auto:"format,compress"}})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 mt-2 top-1 right-2 z-[1] absolute",children:[U>0&&(0,t.jsx)("div",{className:" _button_input w-fit flex items-center gap-1 md:gap-1 px-2 md:px-4 py-2 p-1 rounded-full pd_batch_color",children:(0,t.jsxs)("p",{children:[U,"% Off"]})}),j?.isNewProductEnabled&&(0,u.isNewProduct)(e?.createdAt,j?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"_button_input w-full flex items-center justify-center gap-1 md:gap-1 px-2 md:px-4 py-2 p-1 rounded-full",style:{backgroundColor:j?.newProductTagBgColor||"#76d145",color:j?.newProductTagTextColor||"#ffffff"},children:(0,t.jsx)("span",{children:j?.newProductTagTitle||"New"})})]}),(0,t.jsxs)("div",{className:"absolute top-0 md:top-4 left-3 md:left-4 space-y-3",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(y.default,{onOpen:()=>$(!0),tooltipPosition:"right"})}),(0,t.jsx)(w.default,{product:e,menuAlign:"left"})]})]}),(0,t.jsxs)("div",{className:"flex-1 relative md:h-[301px] h-48 md:p-5 p-0  pt-0 pl-0 flex flex-col items-start justify-between w-full",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 w-full mb-1",children:[(0,t.jsxs)("div",{className:"max-w-lg space-y-2",children:[(0,t.jsxs)("p",{className:"font-bold product-card-text-color",children:[en&&eu?(0,t.jsx)("span",{className:"custom-price word-break-all",children:eu}):G&&G?.toFixed(2)!==Z?.toFixed(2)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"mr-2 custom-price word-break-all",children:["$",G&&G.toFixed(2)]}),(0,t.jsxs)("span",{className:"line-through text-secondary_text custom-strike-price word-break-all",children:["$",Z&&Z.toFixed(2)]})]}):(0,t.jsxs)("span",{className:"custom-price word-break-all",children:["$",Z&&Z?.toFixed(2)]}),!en&&"N/A"!==(0,p.formatWeight)(q?.option)&&e?.category!=="EDIBLES"&&(0,t.jsxs)("span",{className:"custom-price word-break-all",children:[" ","/ ",(0,p.formatWeight)(q?.option)]})]}),(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>X(`/product/${e?.slug}`),children:(0,t.jsx)("h2",{className:"text-[11px] md:text-2xl font-semibold product-card-text-color",children:e?.name})}),e?.brand?.name?.length>0&&(0,t.jsx)("p",{className:"text-[9px] md:text-sm font-medium product-card-discount-tag-color",children:(0,u.makeTitleCase)(e?.brand?.name)}
1),(0,t.jsxs)("div",{className:"flex items-center gap-1 md:text-sm text-[10px] product-card-text-color",children:[e?.strainType&&e?.strainType!="NOT_APPLICABLE"&&(0,t.jsx)("p",{className:"font-bold product-card-text-color",children:e?.strainType}),(e?.potencyThc?.formatted||e?.potencyCbd?.formatted)&&(0,t.jsx)(Y.Circle,{weight:"fill",className:"text-sm product-card-text-color"}),(0,t.jsxs)("p",{className:"product-card-text-color",children:[e?.potencyThc?.formatted&&(0,t.jsxs)(t.Fragment,{children:["THC: ",e?.potencyThc?.formatted]}),e?.potencyThc?.formatted&&e?.potencyCbd?.formatted&&(0,t.jsx)(t.Fragment,{children:"-"}),e?.potencyCbd?.formatted&&(0,t.jsxs)(t.Fragment,{children:["CBD: ",e?.potencyCbd?.formatted]})]})]}),(0,t.jsx)("div",{className:"flex justify-start mt-1",children:(0,t.jsx)(S.default,{count:ep})})]}),ei?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("button",{onClick:()=>F(!0),className:"whitespace-nowrap hidden min-w-60 py-3 md:flex items-center justify-center gap-2 bg-white text-gray-800 border border-gray-300 font-medium rounded-full ms-auto hover:bg-gray-100 transition duration-150 text-base product-add-to-cart-button-color",children:[(0,t.jsx)("p",{children:"Select Weight"})," ",(0,t.jsx)(N.CaretDown,{})]})}):(0,t.jsx)(t.Fragment,{children:a?(0,t.jsx)("button",{onClick:()=>{n?.(),Q(e?.id||e?.productId,J[0]?.option,e,1,!0,et,er,ea,{specialName:e?.specials?.[0]?.name,specialSlug:e?.specials?.[0]?.urlSlug},ec())},className:"whitespace-nowrap hidden min-w-60 py-3 md:flex items-center justify-center gap-2 bg-white text-gray-800 border border-gray-300 font-medium rounded-full ms-auto hover:bg-gray-100 transition duration-150 text-base",children:(0,t.jsx)("p",{children:"Move to Cart"})}):(0,t.jsxs)(T.default,{className:"whitespace-nowrap hidden min-w-60 py-3 md:flex items-center justify-center gap-2 bg-white text-gray-800 border border-gray-300 font-medium rounded-full ms-auto hover:bg-gray-100 transition duration-150 text-base product-add-to-cart-button-color",onAction:async()=>{n?.(),await Q(e?.id||e?.productId,q?.option,e,1,!1,et,er,ea,{specialName:eo,specialSlug:ed},ec())},children:[(0,t.jsx)("p",{children:"Add to cart"}),(0,t.jsx)(C.CaretRight,{})]})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(h.default,{product:e,cardNo:"four"}),ei?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("button",{onClick:()=>D(!0),className:"md:hidden px-4 py-2 flex items-center justify-center gap-2 bg-white w-full text-gray-800 border border-gray-300 text-xs font-medium rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",children:[(0,t.jsx)("p",{children:"Select Weight"})," ",(0,t.jsx)(N.CaretDown,{})]})}):(0,t.jsx)(t.Fragment,{children:a?(0,t.jsx)("button",{onClick:()=>{n?.(),Q(e?.id||e?.productId,J[0]?.option,e,1,!0,et,er,ea,{specialName:e?.specials?.[0]?.name,specialSlug:e?.specials?.[0]?.urlSlug},ec())},className:"md:hidden px-4 py-2 flex items-center justify-center gap-2 bg-white w-full text-gray-800 border border-gray-300 text-xs font-medium rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",children:(0,t.jsx)("p",{children:"Move to Cart"})}):(0,t.jsx)(T.default,{className:"md:hidden px-4 py-2 flex items-center justify-center gap-2 bg-white w-full text-gray-800 border border-gray-300 text-xs font-medium rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",onAction:async()=>{n?.(),await Q(e?.id||e?.productId,q?.option,e,1,!1,et,er,ea,{specialName:e?.specials?.[0]?.name,specialSlug:e?.specials?.[0]?.urlSlug},ec())},children:(0,t.jsx)("p",{children:"Add to cart"})})})]})]}),(0,t.jsx)(M,{open:P,handleClose:L,className:"max-w-[550px] rounded-3xl",children:(0,t.jsx)(_,{product:e,specialPrice:G,normalPrice:Z,selectedVariant:q,setQuantity:K,clearState:ee,handleSelectVariants:O,handleSpecialPricing:H,handleNormalPricing:B,formatWeight:p.formatWeight,processAddingToCart:W,isSaveForLaterPage:a||!1,closeWeightModal:L})}),(0,t.jsx)(R,{open:A,handleClose:V,children:(0,t.jsx)(_,{product:e,specialPrice:G,normalPrice:Z,selectedVariant:q,setQuantity:K,clearState:ee,handleSelectVariants:O,handleSpecialPricing:H,handleNormalPricing:B,formatWeight:p.formatWeight,processAddingToCart:I,isSaveForLaterPage:a||!1,closeWeightModal:V})})]})})};var G=e.i(375677),Z=e.i(754169);let q=({product:e,isSaveForLaterPage:a,brand:l,selectedFirstWeight:s,selectedCategory:C={},selectedSpecial:A={},onClick:D,onAddToCart:L,isSponsored:V,isSurfside:R=!1,specialUnlockSlug:M=""})=>{let{setIsQuickViewOpen:$,setQuickModalProduct:B}=(0,d.useModalStore)(),{menuType:H,productCardSettings:X}=(0,r.useGlobalStore)(),{getCategoryNameFromCategoryList:O}=(0,G.default)(),W=(0,g.default)().isMobile,[_,z]=(0,i.useState)(!1),Y=(0,i.useRef)(null),I=(0,i.useRef)(null),[U,q]=(0,i.useState)(null),Q=(0,c.usePathname)(),{setRouteLoader:J}=(0,r.useGlobalStore)(),K=(0,c.useRouter)(),[ee,et]=(0,i.useState)(0),[er,ea]=(0,i.useState)(null),[el,es]=(0,i.useState)(null),[eo,ed]=(0,i.useState)(null),[ec,ei]=(0,i.useState)(!1),[en,eu]=(0,i.useState)(!1),[ep,em]=(0,i.useState)(!1),ex=(0,c.useSearchParams)(),ef=ex?.get("specialSlug")?ex?.get("specialSlug"):M,eh=ef&&"all"!==ef?e?.specials?.find(e=>e.urlSlug===ef)?.name:e?.specials?.[0]?.name,eg=ef&&"all"!==ef?ef:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:eb}=(0,f.default)({specialName:eh,specialSlug:eg}),{handleAddToCart:ej,setCurrentBrand:ew,setCurrentCategory:ey,setCurrentSpecial:ev}=(0,o.default)();function eN(e){return"RECREATIONAL"==H?e?.priceRec:e?.priceMed}
1function eC(e){return"RECREATIONAL"==H?e?.specialPriceRec:e?.specialPriceMed}function eS(e){if(e==Q)return!1;J(!0),K.push(e)}function eP(e){es(eN(e)),ed(eC(e)),ea(e),z(!1)}let ek=(0,i.useCallback)(()=>{if(!Y.current)return;let e=Y.current.getBoundingClientRect();(0!==e.width||0!==e.height)&&q({top:e.top,left:e.left,width:e.width})},[]);(0,i.useLayoutEffect)(()=>_?(ek(),window.addEventListener("scroll",ek,!0),window.addEventListener("resize",ek),()=>{window.removeEventListener("scroll",ek,!0),window.removeEventListener("resize",ek)}):void q(null),[_,ek]);let eT=`v2-variant-${e?.id||e?.productId||e?.slug}`;function eE(e){return(0,t.jsx)("p",{className:"font-semibold text-xs md:text-[18px]",children:(0,p.formatWeight)(e?.option)})}function eF(e){return!!(e?.strainType&&e?.strainType!="NOT_APPLICABLE"||e?.potencyThc?.formatted||e?.potencyCbd?.formatted)}let eA=(0,k.useProductStock)({product:e,selectedVariantOption:er?.option??""}),{showVariantSelector:eD,showPriceRange:eL,variantPriceRange:eV}=(0,E.default)(e);return(0,i.useEffect)(()=>{if(!e?.variants?.length)return;let t=e?.variants,r=void 0!==s&&t?.find(e=>e?.option===s)||t?.[0];es(eN(r)),ed(eC(r)),ea(r)},[e,s]),(0,i.useEffect)(()=>{let e,t;e=0,t=0,et(Math.round(t="RECREATIONAL"==H&&er?.specialPriceRec?((e=er?.priceRec)-er?.specialPriceRec)/e*100:er?.specialPriceMed?((e=er?.priceMed)-er?.specialPriceMed)/e*100:0))},[er]),(0,i.useEffect)(()=>{Q&&(/^\/brands\/[^/]+$/.test(Q)&&(ei(!0),ew(l)),/^\/category\/[^/]+$/.test(Q)&&(eu(!0),ey(C)),(/^\/deals-collection\/[^/]+$/.test(Q)||/^\/search\/deals\/[^/?]+(?:\?.*)?$/.test(Q))&&(em(!0),ev(A)))},[Q,l?.brandId,C?.categoryName,A?.specialId]),(0,t.jsxs)("div",{onClick:()=>D?.(),className:"flex  product-card-background-color product-card-shadow-color product-card-border-color rounded-xl relative border product-card-border-color",children:[(0,t.jsxs)("div",{className:"w-2/5 md:w-1/3 max-w-80 p-3 pr-0 relative",children:[(0,t.jsx)("div",{className:"h-full md:h-[300px]",children:(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>eS(`/product/${e?.slug}`),children:(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",className:"object-contain w-full h-full rounded-l-xl",imgixParams:{w:W?250:340,h:W?250:340,auto:"format,compress"}})})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 mt-2 absolute top-2 right-2 z-[1]",children:[ee>0&&(0,t.jsx)("div",{className:" _button_input w-fit flex items-center gap-1 md:px-4 py-2 p-1 rounded-full pd_batch_color",children:(0,t.jsxs)("p",{children:[ee,"% Off"]})}),X?.isNewProductEnabled&&(0,u.isNewProduct)(e?.createdAt,X?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:" _button_input w-full flex items-center justify-center gap-1 md:px-4 py-2 p-1 rounded-full",style:{backgroundColor:X?.newProductTagBgColor||"#76d145",color:X?.newProductTagTextColor||"#ffffff"},children:(0,t.jsx)("span",{children:X?.newProductTagTitle||"New"})})]}),(0,t.jsxs)("div",{className:"absolute top-3 md:top-5 left-3 md:left-5 space-y-3",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(y.default,{onOpen:()=>{B(e),$(!0)},tooltipPosition:"right"})}),(0,t.jsx)(w.default,{product:e,menuAlign:"left"})]})]}),(0,t.jsxs)("div",{className:`flex-1 grid md:grid-cols-4 md:gap-4 p-3 md:p-5 md:pe-8 space-y-1 ${eF(e)&&"max-md:divide-y"} ${eF(e)&&"md:divide-x"} divide-black md:divide-gray-400`,children:[(0,t.jsxs)("div",{className:"md:col-span-2 max-md:space-y-0 space-y-3 flex flex-col justify-between mb-1",children:[(0,t.jsxs)("div",{className:"my-auto",children:[(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-2 mb-2",children:[e?.brand?.name?.length>0&&(0,t.jsx)("h3",{className:"max-md:text-[9px] text-sm font-medium product-card-discount-tag-color",children:(0,u.makeTitleCase)(e?.brand?.name)}),e?.brand?.name&&e?.category&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{className:"md:hidden text-[8px]",children:"|"})}),e?.category&&(0,t.jsx)("h3",{className:"md:hidden max-md:text-[9px] text-sm font-medium product-card-discount-tag-color",children:O(e?.category)})]}),(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>eS(`/product/${e?.slug}`),className:"text-[11px] md:text-2xl font-bold product-card-text-color leading-[14px] md:leading-[30px] line-clamp-2",children:e?.name}),(0,t.jsx)("div",{className:"flex items-center gap-2 mt-2 hidden md:block",children:e?.category&&(0,t.jsx)("p",{className:"max-md:text-[9px] text-sm font-medium product-card-discount-tag-color",children:O(e?.category)})})]}),!W&&(0,t.jsx)(h.default,{product:e,cardNo:"two"})]}),(0,t.jsx)("div",{className:"md:col-span-1 flex items-center justify-between max-md:pt-1 md:ps-3",children:(0,t.jsxs)("div",{className:"max-md:flex items-center gap-2 md:space-y-1 product-card-text-color",children:[e?.strainType&&e?.strainType!="NOT_APPLICABLE"&&(0,t.jsx)("p",{className:"text-[8px] md:text-sm font-bold leading-6",children:e?.
1strainType}),e?.strainType&&e?.strainType!="NOT_APPLICABLE"&&e?.potencyThc?.formatted&&(0,t.jsx)("span",{className:"md:hidden text-[8px]",children:"|"}),(0,t.jsxs)("p",{className:"text-[8px] md:text-sm",children:[e?.potencyThc?.formatted&&(0,t.jsxs)(t.Fragment,{children:["THC: ",e?.potencyThc?.formatted]}),e?.potencyThc?.formatted&&e?.potencyCbd?.formatted&&(0,t.jsx)(t.Fragment,{children:"-"}),e?.potencyCbd?.formatted&&(0,t.jsxs)(t.Fragment,{children:["CBD: ",e?.potencyCbd?.formatted]})]})]})}),(0,t.jsxs)("div",{className:"md:ps-3 space-y-1 md:space-y-4 flex flex-col justify-center",children:[(0,t.jsxs)("div",{className:"max-md:flex items-center justify-between md:justify-around text-center max-md:mt-1 md:space-y-4",children:[(0,t.jsx)("div",{className:`w-full text-sm font-medium product-card-text-color ${e?.category!=="EDIBLES"&&e?.variants?.length===1?"max-md:order-1":"text-left md:text-center"}`,children:(0,t.jsx)("p",{className:"text-base md:text-2xl product-card-text-color font-bold mt-3",style:{marginLeft:"0px"},children:(0,t.jsx)(F.default,{showPriceRange:eL,variantPriceRange:eV,specialPrice:eo,normalPrice:el,priceClassName:"custom-price product-card-text-color",strikeClassName:"line-through text-secondary_text custom-strike-price product-card-text-color"})})}),eD?(0,t.jsxs)("div",{className:"w-full max-w-xs",children:[(0,t.jsx)(x.default,{enabled:_,onClickOutside:()=>z(!1),additionalRefs:[I],children:(0,t.jsx)("div",{className:"relative w-full mt-1",onClick:e=>e.stopPropagation(),children:(0,t.jsxs)("button",{ref:Y,type:"button",onClick:()=>{z(e=>{let t=!e;return t&&requestAnimationFrame(()=>ek()),t})},className:"w-full p-2 rounded-lg flex justify-start md:justify-center text-xs md:text-[18px] leading-tight items-center gap-1 text md:text-2xl font-semibold product-card-text-color",children:[eE(er),_?(0,t.jsx)(v.CaretUp,{className:"transition-all"}):(0,t.jsx)(N.CaretDown,{className:"rotate-180 transition-all"})]})})}),(0,t.jsx)("div",{className:"flex justify-start md:justify-center !mt-0",children:(0,t.jsx)(S.default,{count:eA})})]}):(0,t.jsx)(t.Fragment,{children:"N/A"!==(0,p.formatWeight)(er?.option)&&e?.category!="EDIBLES"&&(0,t.jsxs)("div",{className:"w-full max-w-xs",children:[(0,t.jsx)("p",{className:"text-base md:text-2xl product-card-text-color font-semibold mt-3",style:{marginLeft:"0px"},children:(0,p.formatWeight)(er?.option)}),(0,t.jsx)(S.default,{count:eA})]})}),(0,t.jsx)("div",{className:"hidden"})]}),(0,t.jsx)("div",{className:"col-span-1 w-full flex flex-col items-center gap-1 !mt-0 hidden",children:(0,t.jsx)(S.default,{count:eA})}),W&&(0,t.jsx)(h.default,{product:e,cardNo:"two"}),a?(0,t.jsxs)("button",{onClick:()=>{L?.(),ej(e?.id||e?.productId,er?.option,e,1,!0,ec,en,ep,{specialName:eh,specialSlug:eg},eb())},className:"col-span-1 w-full border max-md:text-[10px] text-gray-800 font-semibold py-1.5 md:py-2 rounded-full hover:bg-teal-800 hover:text-white transition duration-150",children:["Move to Cart ",(0,t.jsx)(Z.ArrowRight,{size:20})]}):(0,t.jsx)(T.default,{onAction:async()=>{L?.(),await ej(e?.id||e?.productId,er?.option,e,1,!1,ec,en,ep,{specialName:eh,specialSlug:eg},eb())},className:"col-span-1 w-full border max-md:text-[10px] font-semibold py-1.5 md:py-2 rounded-full transition duration-150 product-add-to-cart-button-color",children:"Add to cart"})]})]}),(0,t.jsx)("div",{className:`flex-shrink-0 h-6 md:h-6 flex items-center h-6 ${R?"block":"hidden"}`,children:V?(0,t.jsx)("div",{className:"text-[12px] product-card-text-color capitalize text-center w-full mb-2",children:"Sponsored"}):(0,t.jsx)("div",{"aria-hidden":!0,className:"w-full"})}),eD&&(()=>{if(!_||!U||"u"<typeof document)return null;let r=Math.max(U.width,280),a=U.left+U.width,l=window.innerWidth-r-16,s=Math.max(16,Math.min(a-r,l));return n.default.createPortal((0,t.jsx)("div",{ref:I,className:"fixed z-[9999] min-w-[280px] rounded-xl border border-gray-200 bg-white px-3 py-3 shadow-lg",style:{left:s,width:r,top:U.top,transform:"translateY(calc(-100% - 8px))"},onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:(0,t.jsx)("div",{className:"max-h-[250px] overflow-y-auto sb",children:e?.variants?.map((r,a)=>{let l=r?.id===er?.id;return(0,t.jsx)("div",{role:"button",tabIndex:0,onClick:()=>eP(r),onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eP(r))},className:(0,j.cn)("my-1 cursor-pointer rounded-lg p-2 transition-colors",l?"bg-gray-100":"hover:bg-gray-50"),children:(0,t.jsxs)("label",{className:"relative flex w-full cursor-pointer items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,t.jsx)("input",{type:"radio",name:eT,value:JSON.stringify(r),checked:l,readOnly:!0,className:"pointer-events-none h-4 w-4 shrink-0 accent-gray-900"}),(0,t.jsx)("span",{className:"min-w-0 whitespace-nowrap text-sm font-medium text-primary_text",children:eE(r)})]}),(0,t.jsx)(S.default,{count:(0,P.getVariantStockCount)(e,r?.option),className:"shrink-0 whitespace-nowrap"})]})},"prd-variant"+a)})})}),document.body)})()]})};var Q=e.i(259997),J=e.i(808340),K=e.i(991844),ee=e.i(814032),et=e.i(555897);let er=({product:e,brand:a,setSwipeCardSelectedVariant:l,isSwipeCard:s,selectedCategory:o={},selectedSpecial:d={},onClick:p,onAddToCart:h,isSponsored:y,isSurfside:N=!1,specialUnlockSlug:C=""})=>{let{productCardSettings:E}=(0,r.useGlobalStore)(),F=(0,g.default)().isMobile,{setOpen:A,handleRouteChange:D,discount:L,handleAddToCart:V,isBrandDetailsPage:R,options:M,selectedOption:$,handleChangeOption:B,setIsOptionsOpen:H,isOptionsOpen:X,isCategoryDetailsPage:O,isSpecialDetailsPage:W}=(0,ee.default)({product:e,brand:a,setSwipeCardSelectedVariant:l,selectedCategory:o,selectedSpecial:d}),_=(0,c.useSearchParams)(),z=_?.get("specialSlug")?_?.get("specialSlug"):C,Y=z&&"all"!==z?e?.specials?.find(e=>e.urlSlug===z)?.name:e?.specials?.[0]?.name,I=z&&"all"!==z?z:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:U}=(0,f.default)({specialName:Y,specialSlug:I}),G=(0,k.useProductStock)({product:e,selectedVariantOption:$?.option??""}),Z=e?.variants?.length>0?G:e?.quantity??0,q=(0,i.useRef)(null),Q=(0,i.useRef)(null),[J,er]=(0,i.useState)(null),ea=(0,i.useCallback)(()=>{if(!q.current)return;let e=q.current.getBoundingClientRect();er({top:e.top,left:e.left,width:e.width})},[]);(0,i.useLayoutEffect)(()=>X?(ea(),window.addEventListener("scroll",ea,!0),window.addEventListener("resize",ea),()=>{window.removeEventListener("scroll",ea,!0),window.removeEventListener("resize",ea)}):void er(null),[X,ea]);let el=`ecom-grid-variant-${e?.id||e?.productId||e?.slug}`,es=e=>{B(e),H(!1)};return(0,t.jsxs)("div",{onClick:()=>p?.(),className:(0,j.cn)("bg-white relative shadow-md rounded-lg mx-auto border border-gray-200 flex flex-col h-full",X&&"z-30"),children:[(0,t.jsxs)("div",{className:"absolute top-3 left-2 flex flex-row gap-1 z-10 w-full flex-wrap",children:[e?.productTag?.length>0&&(0,t.jsx)(t.Fragment,{children:e?.productTag.map((e,r)=>(0,t.jsx)("span",{className:"bg-yellow-200 text-yellow-900 text-[14px] font-semibold px-2 py-0.5 rounded-full flex-shrink-0",children:e},r))}),L>0&&(0,t.jsx)("div",{className:"bg-red-100 text-red-600 text-[14px] font-semibold px-2 py-0.5 rounded-full",children:(0,t.jsxs)("p",{children:[L,"% Off"]})}),E?.isNewProductEnabled&&(0,u.isNewProduct)(e?.createdAt,E?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"text-[14px] font-semibold px-2 py-0.5 rounded-full",style:{backgroundColor:E?.newProductTagBgColor||"#76d145",color:E?.newProductTagTextColor||"#ffffff"},children:(0,t.jsx)("span",{children:E?.newProductTagTitle||"New"})})]}),(0,t.jsxs)("div",{className:"absolute top-3 right-2 flex flex-col gap-2 z-10",children:[(0,t.jsx)("div",{className:"bg-white p-1.5 rounded-full shadow hover:bg-gray-100",children:(0,t.jsx)(K.default,{position:"left",content:"Quick look",children:(0,t.jsx)("div",{className:"hover:bg-gray-100 hover:rounded-lg p-2 flex items-center justify-center text-gray-500 hover:text-gray-900",children:(0,t.jsx)(et.Eye,{className:"md:size-[20px] size-[16px] cursor-pointer",onClick:()=>A(!0)})})})}),(0,t.jsx)("div",{className:"bg-white p-1.5 rounded-full shadow hover:bg-gray-100",children:(0,t.jsx)(w.default,{product:e,className:"hover:bg-gray-100 hover:rounded-lg p-2 flex items-center justify-center text-gray-500 hover:text-gray-900 bg-transparent",iconClassName:"md:size-[20px] size-[16
1px]"})})]}),(0,t.jsx)("div",{className:"px-5 md:px-10 pt-2 pb-5 h-[170px] md:h-64",children:(0,t.jsx)(m.default,{className:(0,j.cn)(s&&"pointer-events-none"),href:`/product/${e?.slug}`,onClick:()=>{D(`/product/${e?.slug}`)},children:(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",quality:80,className:"object-contain w-full h-full rounded-lg",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",imgixParams:{w:F?250:340,h:F?250:340,auto:"format,compress"}})})}),(0,t.jsxs)("div",{className:"flex flex-col justify-between mt-aut md:h-[260px] h-[230px] px-4 pb-4",children:[(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>D(`/product/${e?.slug}`),children:(0,t.jsx)("h3",{className:"text-lg font-semibold line-clamp-2 text-gray-800 mt-2 leading-tight ",children:e?.name||""})}),e?.strainType&&(0,t.jsx)("p",{className:"text-xs font-semibold line-clamp-2 product-card-text-color leading-tight py-1",children:e?.strainType||""}),e?.variants?.length>0&&(0,t.jsx)(x.default,{enabled:X,onClickOutside:()=>H(!1),additionalRefs:[Q],children:(0,t.jsxs)("div",{ref:q,className:"relative mt-1 h-[21px] md:h-[34px]",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("div",{className:"flex justify-start",children:M?.length>1?(0,t.jsx)(t.Fragment,{children:$?.isSpecial&&$?.value<$?.price&&$?.value>0?(0,t.jsxs)("button",{type:"button",onClick:()=>H(e=>!e),className:"flex justify-start md:justify-center leading-7 items-center gap-1  font-semibold text-nowrap flex-wrap",children:[(0,t.jsxs)("span",{className:"text-primary custom-price",children:["$",$?.value]})," ",(0,t.jsxs)("span",{className:"line-through text-red-500 custom-strike-price",children:["$",$?.price]}),(0,t.jsx)("span",{className:"text-primary custom-price",children:"/"}),(0,t.jsx)("span",{className:"text-primary custom-price",children:$?.option}),(0,t.jsx)(v.CaretUp,{className:"text-primary"})]}):(0,t.jsxs)("button",{type:"button",onClick:()=>H(e=>!e),className:"flex justify-start md:justify-center leading-7 items-center gap-1  font-semibold text-nowrap flex-wrap",children:[(0,t.jsxs)("span",{className:"text-primary custom-price",children:["$",$?.value]}),(0,t.jsx)("span",{className:"text-primary custom-price",children:"/"}),(0,t.jsx)("span",{className:"text-primary custom-price",children:$?.option}),(0,t.jsx)(v.CaretUp,{className:"text-primary"})]})}):(0,t.jsx)(t.Fragment,{children:$?.isSpecial&&$?.value<$?.price&&$?.value>0?(0,t.jsxs)("button",{type:"button",className:"flex justify-start md:justify-center leading-7 items-center gap-1  font-semibold text-nowrap flex-wrap",children:[(0,t.jsxs)("span",{className:"text-primary custom-price",children:["$",$?.value]})," ",(0,t.jsxs)("span",{className:"line-through text-red-500 custom-strike-price",children:["$",$?.price]}),(0,t.jsx)("span",{className:"text-primary custom-price",children:"/"}),(0,t.jsx)("span",{className:"text-primary custom-price",children:$?.option})]}):(0,t.jsx)("button",{type:"button",className:"flex justify-start  md:justify-center leading-tight items-center gap-0 text font-semibold text-primary text-nowrap custom-price",children:$?.label})})}),(()=>{if(!X||!J||"u"<typeof document)return null;let r=Math.max(J.width,280),a=window.innerWidth-r-16,l=Math.max(16,Math.min(J.left,a));return n.default.createPortal((0,t.jsx)("div",{ref:Q,className:"fixed z-[9999] rounded-xl border border-gray-200 bg-white px-3 py-3 shadow-lg",style:{left:l,width:r,bottom:window.innerHeight-J.top+8},onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:(0,t.jsx)("div",{className:"max-h-[250px] overflow-y-auto sb",children:M?.map((r,a)=>{let l=$?.value==r?.value;return(0,t.jsx)("div",{role:"button",tabIndex:0,onClick:()=>es(r),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),es(r))},className:"my-1 cursor-pointer rounded-lg p-2 transition-colors hover:bg-green-50",children:(0,t.jsxs)("label",{className:"relative flex w-full cursor-pointer items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,t.jsx)("input",{type:"radio",name:el,value:r?.value,checked:l,readOnly:!0,className:"pointer-events-none h-4 w-4 shrink-0 accent-gray-900"}),(0,t.jsx)("span",{className:"min-w-0 text-sm font-medium text-primary_text",children:r?.label})]}),(0,t.jsx)(S.default,{count:(0,P.getVariantStockCount)(e,r?.option),className:"shrink-0 whitespace-nowrap"})]})},"prd-variant"+a)})})}),document.body)})()]})}),(0,t.jsx)("div",{className:"flex justify-start mt-1",children:(0,t.jsx)(S.default,{count:Z})}),e?.variants?.length===0&&(0,t.jsxs)("p",{className:"mt-2 font-semibold text-primary custom-price",children:["$",e?.price]}),(0,t.jsx)("div",{className:"text-[12px] text-gray-500 mt-1 line-clamp-2 text-editorDetails",dangerouslySetInnerHTML:{__html:e?.shortDe
1scription??""}}),(0,t.jsx)("div",{className:"pt-3 mt-auto",children:s?(0,t.jsx)("div",{className:"grid grid-cols-1 mt-auto",children:(0,t.jsx)(m.default,{href:`/product/${e.slug}`,className:"w-full whitespace-nowrap rounded-full text-sm font-medium px-6 py-2.5 secondary-button-hover text-center",children:"See Details"})}):(0,t.jsx)(T.default,{className:"w-full fill-button-hover text-sm font-semibold py-2 rounded-lg transition",onAction:async()=>{h?.(),await V(e?.id||e?.productId,$?.option,e,1,!1,R,O,W,{specialName:Y,specialSlug:I},U())},children:"Add to cart"})})]}),(0,t.jsx)("div",{className:`flex-shrink-0 h-6 md:h-6 flex items-center h-6 ${N?"block":"hidden"}`,children:y?(0,t.jsx)("div",{className:"text-[12px] product-card-text-color capitalize text-center w-full mb-2",children:"Sponsored"}):(0,t.jsx)("div",{"aria-hidden":!0,className:"w-full"})})]})};var ea=e.i(996337),el=e.i(14754);let es=({product:e,brand:a,selectedCategory:l={},selectedSpecial:s={},onClick:o,onAddToCart:d,specialUnlockSlug:n=""})=>{let{productCardSettings:x}=(0,r.useGlobalStore)(),j=(0,g.default)().isMobile,{setOpen:y,handleRouteChange:v,handleSelectVariants:N,discount:C,specialPrice:P,normalPrice:E,setNormalPrice:F,selectedVariant:A,setSelectedVariant:D,handleAddToCart:L,isBrandDetailsPage:V,isCategoryDetailsPage:R,isSpecialDetailsPage:M}=(0,ea.default)({product:e,brand:a,selectedCategory:l,selectedSpecial:s}),$=(0,c.useSearchParams)(),B=$?.get("specialSlug")?$?.get("specialSlug"):n,H=B&&"all"!==B?e?.specials?.find(e=>e.urlSlug===B)?.name:e?.specials?.[0]?.name,X=B&&"all"!==B?B:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:O}=(0,f.default)({specialName:H,specialSlug:X}),W=(0,k.useProductStock)({product:e,selectedVariantOption:A?.option??""}),_=e?.variants?.length>0?W:e?.quantity??0;return(0,i.useEffect)(()=>{e?.variants?.[0]&&(F(e.variants[0].price),D(e.variants[0]))},[e]),(0,t.jsxs)("div",{onClick:()=>o?.(),className:"flex flex-col md:flex-row items-stretch gap-4 md:gap-5 rounded-lg border border-gray-200 bg-white p-4 shadow-lg md:p-0 relative overflow-hidden",children:[(0,t.jsxs)("div",{className:"relative h-48 w-full shrink-0 overflow-hidden rounded-lg bg-white md:h-auto md:w-[272px] md:min-h-[236px]",children:[(0,t.jsx)(el.default,{product:e,className:"absolute left-3 top-3 inline-block"}),(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>{v(`/product/${e?.slug}`)},className:"flex h-full items-center justify-center",children:(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",quality:80,className:"h-[182px] w-full object-contain md:h-[236px]",imgixParams:{w:j?250:340,h:j?250:340,auto:"format,compress"}})})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-4 md:flex-row md:items-stretch md:justify-between md:p-5",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[(e?.productTag?.length>0||C>0)&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[e?.productTag?.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-[3px]",children:e?.productTag.map((e,r)=>(0,t.jsx)("span",{className:"rounded-full bg-yellow-200 px-2 py-0.5 text-[10px] font-semibold text-yellow-900 md:text-[14px]",children:e},r))}),C>0&&(0,t.jsx)("div",{className:"rounded-full bg-red-100 px-2 py-0.5 text-[10px] font-semibold text-red-600 md:text-[14px]",children:(0,t.jsxs)("p",{children:[C,"% Off"]})}),x?.isNewProductEnabled&&(0,u.isNewProduct)(e?.createdAt,x?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"rounded-full px-2 py-0.5 text-[10px] font-semibold md:text-[14px]",style:{backgroundColor:x?.newProductTagBgColor||"#76d145",color:x?.newProductTagTextColor||"#ffffff"},children:(0,t.jsx)("span",{children:x?.newProductTagTitle||"New"})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>v(`/product/${e?.slug}`),children:(0,t.jsx)("h3",{className:"line-clamp-2 text-sm font-semibold leading-tight text-gray-900 md:text-2xl",children:e?.name||""})}),e?.shortDescription&&(0,t.jsx)("div",{className:"text-editorDetails mt-2 line-clamp-2 text-[12px] text-gray-500",dangerouslySetInnerHTML:{__html:e?.shortDe
1scription}})]}),e?.variants?.length>1&&(0,t.jsx)("p",{className:"text-[10px] font-medium leading-[12px] text-gray-600 md:text-sm md:leading-[21px]",children:`${e?.variants?.length} ${e?.variants?.length>1?"Variants":"Variant"} Available`}),(0,t.jsx)(S.default,{count:_,className:"mt-1"}),e?.variants?.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-x-2 gap-y-[6px]",children:e?.variants?.map((e,r)=>(0,t.jsx)("button",{type:"button",onClick:()=>{N(e)},className:`mx-1 min-w-[33px] cursor-pointer rounded-full text-xs leading-3 md:min-w-[40px] md:p-2 md:text-base ${A?.option===e?.option?"fill-button":"outlined-button-hover"} h-[36px] w-[36px] text-[11px] md:h-[48px] md:w-[48px] md:text-sm`,children:(0,p.formatWeight)(e.option)},"variant-prd"+r))}),e?.variants?.length>0?(0,t.jsx)("p",{className:"text-sm font-bold text-gray-800",children:P&&P>0&&P<E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"custom-price mr-1 font-extrabold leading-tight text-primary",children:["$",P&&P]}),(0,t.jsxs)("span",{className:"custom-strike-price line-through text-red-500",children:["$",E&&E]})]}):(0,t.jsxs)("span",{className:"custom-price text-primary",children:["$",E&&E]})}):(0,t.jsxs)("p",{className:"custom-price font-semibold text-primary",children:["$",e?.price]}),(0,t.jsx)(h.default,{product:e,cardNo:"one"})]}),(0,t.jsxs)("div",{className:"flex shrink-0 justify-end gap-3 md:min-w-[280px] md:items-center",children:[(0,t.jsx)("div",{className:"hidden w-full md:block",children:(0,t.jsx)(T.default,{className:"fill-button-hover w-full rounded-lg px-4 py-2 text-sm font-semibold transition",onAction:async()=>{d?.(),await L(e?.id||e?.productId,A?.option,e,1,!1,V,R,M,{specialName:H,specialSlug:X},O())},children:"Add to cart"})}),(0,t.jsxs)("div",{className:"hidden items-center justify-end gap-3 md:flex",children:[(0,t.jsx)("div",{className:"flex h-[40px] w-[40px] items-center justify-center rounded-full bg-white p-[2px] shadow hover:bg-gray-100",children:(0,t.jsx)(K.default,{position:"left",content:"Quick look",children:(0,t.jsx)("div",{className:"flex items-center justify-center rounded-full p-[5px] text-gray-500 hover:bg-gray-100 hover:text-gray-900",children:(0,t.jsx)(et.Eye,{className:"size-[16px] cursor-pointer md:size-[24px]",onClick:()=>y(!0)})})})}),(0,t.jsx)("div",{className:"flex h-[40px] w-[40px] items-center justify-center rounded-full bg-white p-[2px] shadow hover:bg-gray-100",children:(0,t.jsx)(w.default,{product:e,menuAlign:"left",className:"flex items-center justify-center rounded-full p-[5px] text-gray-500 hover:bg-gray-100 hover:text-gray-900 bg-transparent",iconClassName:"size-[16px] md:size-[24px]"})})]}),(0,t.jsx)("div",{className:"w-full md:hidden",children:(0,t.jsx)(T.default,{className:"fill-button-hover w-full rounded-lg px-4 py-2 text-sm font-semibold transition",onAction:async()=>{d?.(),await L(e?.id||e?.productId,A?.option,e,1,!1,V,R,M,{specialName:H,specialSlug:X},O())},children:"Add to cart"})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 md:hidden",children:[(0,t.jsx)("div",{className:"flex h-[40px] w-[40px] items-center justify-center rounded-full bg-white p-[2px] shadow hover:bg-gray-100",children:(0,t.jsx)(K.default,{position:"left",content:"Quick look",children:(0,t.jsx)("div",{className:"flex items-center justify-center rounded-full p-[5px] text-gray-500 hover:bg-gray-100 hover:text-gray-900",children:(0,t.jsx)(et.Eye,{className:"size-[16px] cursor-pointer md:size-[24px]",onClick:()=>y(!0)})})})}),(0,t.jsx)("div",{className:"flex h-[40px] w-[40px] items-center justify-center rounded-full bg-white p-[2px] shadow hover:bg-gray-100",children:(0,t.jsx)(w.default,{product:e,menuAlign:"left",className:"flex items-center justify-center rounded-full p-[5px] text-gray-500 hover:bg-gray-100 hover:text-gray-900 bg-transparent",iconClassName:"size-[16px] md:size-[24px]"})})]})]})]})]})};function eo({priceFontSizeDesktop:e,priceFontWeightDesktop:r,priceFontSizeMobile:a,priceFontWeightMobile:l,strikePriceFontSizeDesktop:s,strikePriceFontWeightDesktop:o,strikePriceFontSizeMobile:d,strikePriceFontWeightMobile:c}){return(0,t.jsx)("style",{children:`
2      .custom-price {
3        font-size: calc(${a||"12"}px * var(--buddy-font-scale, 1)) !important;
4        font-weight: ${l||"600"} !important;
5      }
6      .custom-strike-price {
7        font-size: calc(${d||"8"}px * var(--buddy-font-scale, 1)) !important;
8        font-weight: ${c||"400"} !important;
9      }
10      @media (min-width: 768px) {
11        .custom-price {
12          font-size: calc(${e||"16"}px * var(--buddy-font-scale, 1)) !important;
13          font-weight: ${r||"600"} !important;
14        }
15        .custom-strike-price {
16          font-size: calc(${s||"12"}px * var(--buddy-font-scale, 1)) !important;
17          font-weight: ${o||"400"} !important;
18        }
19      }
20    `})}
20var ed=e.i(811328),ec=e.i(980401),ei=e.i(872225),en=e.i(652973),eu=e.i(858498),ep=e.i(579053),em=e.i(816034),ex=e.i(590961);let ef=({children:e,slidesPerView:r,spaceBetween:a,className:l,autoPlay:s=!1,rightArrowId:o="",leftArrowId:d="",loop:c=!1,pagination:n,speed:u,style:p,breakpoints:m})=>{let[x,f]=(0,i.useState)(!0),[h,g]=(0,i.useState)(!1);return(0,t.jsxs)("div",{className:"relative mx-auto virtual-slider custom-slider-group w-full",children:[(0,t.jsx)(ec.Swiper,{autoplay:s,slidesPerView:r||4,spaceBetween:a||10,navigation:{enabled:!0,prevEl:d?`.${d}`:".arrow-left",nextEl:o?`.${o}`:".arrow-right"},loop:c,centeredSlides:!1,keyboard:{enabled:!0},speed:u,pagination:n,freeMode:!0,breakpoints:m??{1280:{slidesPerView:r||4},769:{slidesPerView:3}},modules:[eu.Keyboard,em.Scrollbar,ep.Navigation,en.FreeMode,ei.Autoplay],className:`mySwiper ${l} swiper-transition`,style:p,onSwiper:e=>{f(e.isBeginning),g(e.isEnd)},onSlideChange:e=>{f(e.isBeginning),g(e.isEnd)},children:e}),(0,t.jsx)("div",{className:`absolute top-[50%] -translate-y-1/2 z-[10] 
21          duration-300 transition-all h-[78px] bg-[#D1D5DB] 
22          ml-[-1px] rounded-l-[6px] left-0 flex items-center 
23          justify-center cursor-pointer w-3 lg:w-5 ${d||"arrow-left"}
24          ${x?"opacity-0 pointer-events-none":"opacity-100"}
25        `,children:(0,t.jsx)(ex.CaretLeft,{className:"text-xl lg:text-2xl text-white"})}),(0,t.jsx)("div",{className:`absolute top-[50%] -translate-y-1/2 md:right-0 z-[10] 
26          duration-300 transition-all w-3 lg:w-5 h-[78px] bg-[#D1D5DB] 
27          right-0 rounded-r-[6px] flex items-center 
28          justify-center cursor-pointer ${o||"arrow-right"}
29          ${h?"opacity-0 pointer-events-none":"opacity-100"}
30        `,children:(0,t.jsx)(C.CaretRight,{className:"text-xl lg:text-2xl text-white"})})]})};var eh=e.i(209501),eg=e.i(514760);let eb=({product:e,handleSelectVariants:r,handleSpecialPricing:a,handleNormalPricing:l,formatWeight:s,closeWeightModal:o,isSwipeCard:d,initialVariantShow:c,handleAddVariantToCart:i,discount:n,gridViewMobile:u})=>{let p=(0,eh.isMobileViewport)(),m=c||2,x=u?{768:{slidesPerView:m}}:void 0;return(0,t.jsx)("div",{className:"w-full max-sm:p-2",children:(0,t.jsx)("div",{className:"space-y-6 mb-1 lg:px-2",children:e?.variants?.length>1&&(0,t.jsx)(ef,{rightArrowId:`custom-right-arrow-${e?.slug}`,leftArrowId:`custom-left-arrow-${e?.slug}`,slidesPerView:u?1.5:m,breakpoints:x,navigation:!0,className:"product-variant-slider",style:{paddingLeft:p?"10px":"24px",paddingRight:p?"10px":"26px"},children:e?.variants.map((c,u)=>{let p=l(c),m=a(c),x=m&&p.toFixed(2)!==m.toFixed(2);return(0,t.jsx)(ec.SwiperSlide,{className:"!overflow-visible",children:(0,t.jsx)("div",{className:"min-h-[110px] flex items-center justify-center w-full overflow-visible",children:(0,t.jsxs)("div",{className:"w-full",children:[n>0&&x&&(0,t.jsxs)("p",{className:"flex justify-center items-center gap-1 text-[10px] text-center font-semibold mb-1 pd_batch_color roun
30ded-lg w-fit px-2 mx-auto",children:[n,"% Off"]}),(0,t.jsxs)("div",{className:"relative w-full pt-2 pr-2",children:[(0,t.jsx)(eg.default,{as:"button",ariaLabel:"Add to Cart",className:"absolute right-0 top-0 z-20 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full border bg-white product-add-to-cart-button-color",onAction:async()=>{await Promise.resolve(i(c))},children:(0,t.jsx)(B.Plus,{className:"text-sm",weight:"bold"})}),(0,t.jsxs)("div",{onClick:()=>{r(JSON.stringify(c)),d&&o()},className:"relative flex cursor-pointer flex-col overflow-hidden rounded-lg border text-xs product-add-to-cart-button-border-color",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1 bg-white px-2 pb-2 pt-3",children:[(0,t.jsx)("p",{className:"text-sm font-bold leading-tight product-card-text-color",children:s(c?.option)}),(0,t.jsx)(S.default,{count:(0,P.getVariantStockCount)(e,c?.option),styleVariant:"flame"})]}),(0,t.jsx)("div",{className:"w-full py-2 text-center font-semibold text-white product-add-to-cart-button-color",children:x?(0,t.jsxs)("p",{className:"flex items-center justify-center gap-1.5 text-sm",children:[(0,t.jsxs)("span",{className:"line-through opacity-80",children:["$",p.toFixed(2)]}),(0,t.jsxs)("span",{children:["$",m.toFixed(2)]})]}):(0,t.jsxs)("p",{className:"text-sm",children:["$",p?.toFixed(2)]})})]})]})]})})},"variant-list"+u)})})})})},ej=({product:e,isSaveForLaterPage:r,brand:a,isSwipeCard:l=!1,setSwipeCardSelectedVariant:s,selectedFirstWeight:o,selectedCategory:d={},selectedSpecial:i={},onClick:x,onAddToCart:v,isSponsored:N,isSurfside:C=!1,specialUnlockSlug:P="",priority:T=!1})=>{let A=(0,g.default)().isMobile,{openDrawer:D,closeWeightModal:L,closeDrawer:V,setOpen:M,handleNormalPricing:$,handleSpecialPricing:H,handleRouteChange:X,handleSelectVariants:O,processAddingToCart:W,processAddingToCartMobile:z,discount:I,specialPrice:U,normalPrice:G,selectedVariant:Z,handleAddToCart:q,setQuantity:Q,clearState:J,isBrandDetailsPage:K,isCategoryDetailsPage:ee,isSpecialDetailsPage:et}=(0,ed.default)({product:e,brand:a,setSwipeCardSelectedVariant:s,selectedFirstWeight:o,selectedCategory:d,selectedSpecial:i}),er=(0,c.useSearchParams)(),ea=er?.get("specialSlug")?er?.get("specialSlug"):P,es=ea&&"all"!==ea?e?.specials?.find(e=>e.urlSlug===ea)?.name:e?.specials?.[0]?.name,eo=ea&&"all"!==ea?ea:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:ec}=(0,f.default)({specialName:es,specialSlug:eo}),{showVariantSelector:ei,showPriceRange:en,variantPriceRange:eu}=(0,E.useFlowhubProductCardDisplay)(e),ep=(0,k.useProductStock)({product:e,selectedVariantOption:Z?.option??""});return(0,t.jsxs)("div",{onClick:()=>x?.(),className:(0,j.cn)(l?"px-2 md:px-5 py-3.5 rounded-md duration-500 cursor-pointer relative drop-shadow-sm md:min-h-[630px] h-full product-card-background-color product-card-border-color w-full":"product-card-background-color product-card-shadow-color product-card-border-color relative rounded-lg mx-auto border flex flex-col h-full w-full"),children:[(0,t.jsxs)("div",{className:"relative w-full md:h-60 h-44 p-4 mx-auto",children:[(0,t.jsx)(el.default,{product:e,className:"inline-block text-xs absolute top-3 left-3"}),(0,t.jsx)(m.default,{className:(0,j.cn)(l&&"pointer-events-none"),href:`/product/${e?.slug}`,onClick:()=>{X(`/product/${e?.slug}`)},children:(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",quality:80,priority:T,className:"object-contain w-full h-full object-center",imgixParams:{w:A?250:340,h:A?250:340,auto:"format,compress"}})}),(0,t.jsxs)("div",{className:"absolute top-3 md:top-5 right-1 md:right-5 space-y-3",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(y.default,{onOpen:()=>M(!0)})}),(0,t.jsx)(w.default,{product:e})]})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-between px-4 pb-4",style:{height:"150px"},children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>X(`/product/${e?.slug}`),className:"h-9 md:h-[50px] text-sm md:text-lg font-semibold leading-tight line-clamp-2 product-card-text-color",children:e?.name}),e?.brand?.name?.length>0&&(0,t.jsx)("p",{className:"text-sm font-medium text-gray-800 product-card-discount-tag-color",children:(0,u.makeTitleCase)(e?.brand?.name)}
30),(0,t.jsxs)("div",{className:"flex items-center md:text-xs text-[11px] gap-1 flex-wrap product-card-text-color",children:[e?.strainType&&e?.strainType!="NOT_APPLICABLE"&&(0,t.jsx)("p",{className:"font-bold",children:e?.strainType}),(e?.potencyThc?.formatted||e?.potencyCbd?.formatted)&&(0,t.jsx)(Y.Circle,{weight:"fill",className:"text-[8px]"}),(0,t.jsxs)("p",{className:"",children:[e?.potencyThc?.formatted&&(0,t.jsxs)(t.Fragment,{children:["THC: ",e?.potencyThc?.formatted]}),e?.potencyThc?.formatted&&e?.potencyCbd?.formatted&&(0,t.jsx)(t.Fragment,{children:"-"}),e?.potencyCbd?.formatted&&(0,t.jsxs)(t.Fragment,{children:["CBD: ",e?.potencyCbd?.formatted]})]})]})]}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(h.default,{product:e,cardNo:"five"})})]}),(0,t.jsx)("div",{className:"mt-auto flex items-end mb-[5px]",style:{height:"120px"},children:(0,t.jsx)("div",{className:"w-full",children:ei?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eb,{product:e,specialPrice:U,normalPrice:G,selectedVariant:Z,setQuantity:Q,clearState:J,handleSelectVariants:O,handleSpecialPricing:H,handleNormalPricing:$,formatWeight:p.formatWeight,processAddingToCart:W,isSaveForLaterPage:r||!1,closeWeightModal:L,initialVariantShow:2,discount:I,handleAddVariantToCart:t=>{v?.(),q(e?.id||e?.productId,t?.option,e,1,!1,K,ee,et,{specialName:es,specialSlug:eo},ec())},gridViewMobile:!0}),l&&(0,t.jsx)("div",{className:"grid grid-cols-1 mt-auto",children:(0,t.jsx)(m.default,{href:`/product/${e.slug}`,className:"w-full whitespace-nowrap rounded-full text-sm font-medium px-6 py-2.5 secondary-button-hover text-center mt-3",children:"See Details"})})]})}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:" flex items-center justify-between flex-wrap px-4 gap-y-3 py-[20px] md:pt-[59px] pb-2",children:[(0,t.jsxs)("p",{className:"text-2xl font-extrabold leading-tight text-gray-900 font-bold flex items-center flex-wrap gap-1",children:[!en&&"N/A"!==(0,p.formatWeight)(Z?.option)&&e?.category!=="EDIBLES"&&(0,t.jsx)("span",{className:"custom-price h-[30px] rounded-lg flex items-center justify-center p-1 product-card-text-color",children:(0,p.formatWeight)(Z?.option)}),(0,t.jsx)(F.default,{showPriceRange:en,variantPriceRange:eu,specialPrice:U,normalPrice:G,priceClassName:"custom-price product-card-text-color",strikeClassName:"line-through text-secondary_text custom-strike-price product-card-text-color"}),(0,t.jsx)("div",{className:"flex justify-start w-full !mt-0",children:(0,t.jsx)(S.default,{count:ep})})]}),!r&&!l&&(0,t.jsx)(eg.default,{ariaLabel:"Add to Cart",tooltip:"Add to Cart",tooltipPosition:"left",className:"relative ml-auto md:w-[50px] md:h-[50px] w-[35px] h-[35px] rounded-full flex items-center justify-center product-add-to-cart-button-color",onAction:async()=>{v?.(),await q(e?.id||e?.productId,Z?.option,e,1,!1,K,ee,et,{specialName:es,specialSlug:eo},ec())},children:(0,t.jsx)(B.Plus,{className:"text-2xl md:!w-auto !w-[14px] md:!h-auto !h-[14px]"})})]})})})}),n.default.createPortal((0,t.jsx)(R,{open:D,handleClose:V,children:(0,t.jsx)(_,{product:e,specialPrice:U,normalPrice:G,selectedVariant:Z,setQuantity:Q,clearState:J,handleSelectVariants:O,handleSpecialPricing:H,handleNormalPricing:$,formatWeight:p.formatWeight,processAddingToCart:z,isSaveForLaterPage:r||!1,closeWeightModal:V,isSwipeCard:l})}),document.body),(0,t.jsx)("div",{className:`flex-shrink-0 h-6 md:h-6 flex items-center h-6 ${C?"block":"hidden"}`,children:N?(0,t.jsx)("div",{className:"text-[12px] product-card-text-color capitalize text-center w-full mb-2",children:"Sponsored"}):(0,t.jsx)("div",{"aria-hidden":!0,className:"w-full"})})]})},ew=({product:e,isSaveForLaterPage:r,brand:a,selectedFirstWeight:l,selectedCategory:s={},selectedSpecial:o={},onClick:d,onAddToCart:i,specialUnlockSlug:n=""})=>{let x=(0,g.default)().isMobile,{openDrawer:j,closeWeightModal:v,closeDrawer:N,setOpen:C,handleNormalPricing:P,handleSpecialPricing:A,handleRouteChange:D,handleSelectVariants:L,processAddingToCart:V,processAddingToCartMobile:M,discount:$,specialPrice:B,normalPrice:H,selectedVariant:X,handleAddToCart:O,price:W,setQuantity:I,clearState:U,isBrandDetailsPage:G,isCategoryDetailsPage:Z,isSpecialDetailsPage:q}=(0,z.default)({product:e,brand:a,selectedFirstWeight:l,selectedCategory:s,selectedSpecial:o}),Q=(0,c.useSearchParams)(),J=Q?.get("specialSlug")?Q?.get("specialSlug"):n,K=J&&"all"!==J?e?.specials?.find(e=>e.urlSlug===J)?.name:e?.specials?.[0]?.name,ee=J&&"all"!==J?J:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:et}=(0,f.default)({specialName:K,specialSlug:ee}),{showVariantSelector:er,showPriceRange:ea,variantPriceRange:es}=(0,E.useFlowhubProductCardDisplay)(e),eo=(0,k.useProductStock)({product:e,selectedVariantOption:X?.option??""});return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{onClick:()=>d?.(),className:"md:p-0 pl-0 p-3 flex items-center product-card-background-color product-card-shadow-color product-card-border-color roun
30ded-lg border gap-5 relative",children:[(0,t.jsxs)("div",{className:"md:w-[272px] w-36 relative bg-white rounded-lg overflow-hidden",children:[(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>{D(`/product/${e?.slug}`)},className:"flex justify-center items-center align-middle h-full p-6",children:(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",className:"rounded-l-lg w-full h-auto",imgixParams:{w:x?250:340,h:x?250:340,auto:"format,compress"}})}),(0,t.jsxs)("div",{className:"absolute top-0 md:top-4 left-3 md:left-4 space-y-3",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(y.default,{onOpen:()=>C(!0),tooltipPosition:"right"})}),(0,t.jsx)(w.default,{product:e,menuAlign:"left"})]})]}),(0,t.jsxs)("div",{className:"flex-1 relative md:p-5 p-0  pt-0 pl-0 flex flex-col items-start justify-between w-[60%]",children:[(0,t.jsx)("div",{className:"flex items-center gap-4 w-full mb-1",children:(0,t.jsxs)("div",{className:"max-w-lg space-y-2",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(el.default,{product:e,className:"w-fit text-xs"}),(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>D(`/product/${e?.slug}`),children:(0,t.jsx)("h2",{className:"text-[11px] md:text-2xl font-semibold product-card-text-color",children:e?.name})})]}),e?.brand?.name?.length>0&&(0,t.jsx)("p",{className:"text-[9px] md:text-sm font-medium product-card-discount-tag-color",children:(0,u.makeTitleCase)(e?.brand?.name)}),(0,t.jsxs)("div",{className:"flex items-center gap-1 md:text-sm text-[10px] product-card-text-color",children:[e?.strainType&&e?.strainType!="NOT_APPLICABLE"&&(0,t.jsx)("p",{className:"font-bold",children:e?.strainType}),(e?.potencyThc?.formatted||e?.potencyCbd?.formatted)&&(0,t.jsx)(Y.Circle,{weight:"fill",className:"text-sm"}),(0,t.jsxs)("p",{className:"",children:[e?.potencyThc?.formatted&&(0,t.jsxs)(t.Fragment,{children:["THC: ",e?.potencyThc?.formatted]}),e?.potencyThc?.formatted&&e?.potencyCbd?.formatted&&(0,t.jsx)(t.Fragment,{children:"-"}),e?.potencyCbd?.formatted&&(0,t.jsxs)(t.Fragment,{children:["CBD: ",e?.potencyCbd?.formatted]})]})]}),e?.variants?.length===1&&(0,t.jsx)("p",{className:"md:hidden text-base md:text-xl font-bold",children:!ea&&"N/A"!==(0,p.formatWeight)(X?.option)&&e?.category!=="EDIBLES"&&(0,t.jsx)("span",{className:"text-[10px] w-[40px] h-[25px] rounded-lg flex items-center justify-center p-1 product-card-text-color",children:(0,p.formatWeight)(X?.option)})})]})}),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"w-full lg:w-fit",children:(0,t.jsx)(h.default,{product:e,cardNo:"five"})}),er?(0,t.jsx)("div",{className:"md:hidden relative",children:(0,t.jsx)(eb,{product:e,specialPrice:B,normalPrice:H,selectedVariant:X,setQuantity:I,clearState:U,handleSelectVariants:L,handleSpecialPricing:A,handleNormalPricing:P,formatWeight:p.formatWeight,processAddingToCart:V,isSaveForLaterPage:r||!1,closeWeightModal:v,initialVariantShow:2,discount:$,handleAddVariantToCart:async t=>{i?.(),await O(e?.id||e?.productId,t?.option,e,1,!1,G,Z,q,{specialName:K,specialSlug:ee},et())}})}):(0,t.jsx)(t.Fragment,{children:r?(0,t.jsx)("button",{onClick:()=>{i?.(),O(e?.id||e?.productId,W[0]?.option,e,1,!0,G,Z,q,{specialName:e?.specials?.[0]?.name,specialSlug:e?.specials?.[0]?.urlSlug},et())},className:"md:hidden px-4 py-2 flex items-center justify-center gap-2 bg-white w-full text-gray-800 border border-gray-300 text-[10px] font-medium rounded-full hover:bg-gray-100 transition duration-150 flex-shrink-0 product-add-to-cart-button-color",children:(0,t.jsx)("p",{children:"Move to Cart"})}):(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"flex justify-end me-[96px] mb-[10px] md:hidden",children:(0,t.jsx)(S.default,{count:eo})}),(0,t.jsxs)(T.default,{className:"md:hidden px-4 py-2 flex items-center justify-center gap-2 bg-primary text-white w-full text-gray-800 border border-gray-300 text-[10px] font-medium rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",onAction:async()=>{i?.(),await O(e?.id||e?.productId,X?.option,e,1,!1,G,Z,q,{specialName:e?.specials?.[0]?.name,specialSlug:e?.specials?.[0]?.urlSlug},et())},children:[(0,t.jsx)(F.default,{showPriceRange:ea,variantPriceRange:es,specialPrice
30:B,normalPrice:H})," ","|",(0,t.jsx)("p",{className:"flex-shrink-0 text-[10px]",children:"Add to cart"})]})]})})]})]}),er?(0,t.jsx)("div",{className:"hidden md:flex flex-2 relative md:h-[301px] h-48 p-0  pt-0 pl-0 items-center justify-end w-[40%]",children:(0,t.jsx)("div",{className:"mb-1 w-full relative",children:(0,t.jsx)("div",{className:"min-w-60 pr-3",children:(0,t.jsx)(eb,{product:e,specialPrice:B,normalPrice:H,selectedVariant:X,setQuantity:I,clearState:U,handleSelectVariants:L,handleSpecialPricing:A,handleNormalPricing:P,formatWeight:p.formatWeight,processAddingToCart:V,isSaveForLaterPage:r||!1,closeWeightModal:v,initialVariantShow:4,discount:$,handleAddVariantToCart:async t=>{i?.(),await O(e?.id||e?.productId,t?.option,e,1,!1,G,Z,q,{specialName:K,specialSlug:ee},et())}})})})}):(0,t.jsxs)("div",{className:"hidden flex-2 relative md:h-[301px] h-48 p-0  pt-0 pl-0 md:flex items-center justify-between w-[40%] pr-3",children:[(0,t.jsx)("p",{className:"text-base md:text-xl font-bold",children:!ea&&"N/A"!==(0,p.formatWeight)(X?.option)&&e?.category!=="EDIBLES"&&(0,t.jsx)("span",{className:"text-[14px] w-[60px] h-[50px] rounded-lg flex items-center justify-center p-1 product-card-text-color",children:(0,p.formatWeight)(X?.option)})}),(0,t.jsxs)("div",{className:"mb-1 w-full relative",children:[(0,t.jsx)("div",{className:"flex justify-end me-[96px] mb-[10px]",children:(0,t.jsx)(S.default,{count:eo})}),r?(0,t.jsx)("button",{onClick:()=>{i?.(),O(e?.id||e?.productId,W[0]?.option,e,1,!0,G,Z,q,{specialName:e?.specials?.[0]?.name,specialSlug:e?.specials?.[0]?.urlSlug},et())},className:"whitespace-nowrap hidden min-w-60 py-3 md:flex items-center justify-center gap-2 bg-white text-gray-800 border border-gray-300 font-medium rounded-full ms-auto hover:bg-gray-100 transition duration-150 text-base",children:(0,t.jsx)("p",{children:"Move to Cart"})}):(0,t.jsxs)(T.default,{className:"whitespace-nowrap hidden min-w-60 py-3 md:flex items-center justify-center gap-2 text-white border border-gray-300 font-medium rounded-full ms-auto hover:bg-gray-100 transition duration-150 text-base product-add-to-cart-button-color",onAction:async()=>{i?.(),await O(e?.id||e?.productId,X?.option,e,1,!1,G,Z,q,{specialName:K,specialSlug:ee},et())},children:[(0,t.jsx)(F.default,{showPriceRange:ea,variantPriceRange:es,specialPrice:B,normalPrice:H})," ","|",(0,t.jsx)("p",{children:"Add to cart"})]})]})]}),(0,t.jsx)(R,{open:j,handleClose:N,children:(0,t.jsx)(_,{product:e,specialPrice:B,normalPrice:H,selectedVariant:X,setQuantity:I,clearState:U,handleSelectVariants:L,handleSpecialPricing:A,handleNormalPricing:P,formatWeight:p.formatWeight,processAddingToCart:M,isSaveForLaterPage:r||!1,closeWeightModal:N})})]})})},ey=({children:e,slidesPerView:r,spaceBetween:a,className:l,autoPlay:s=!1,rightArrowId:o="",leftArrowId:d="",loop:c=!1,pagination:n,speed:u,style:p,breakpoints:m})=>{let[x,f]=(0,i.useState)(!0),[h,g]=(0,i.useState)(!1);return(0,t.jsx)("div",{className:"relative mx-auto virtual-slider custom-slider-group",children:(0,t.jsx)(ec.Swiper,{autoplay:s,slidesPerView:r||4,spaceBetween:a||10,navigation:{enabled:!0,prevEl:d?`.${d}`:".arrow-left",nextEl:o?`.${o}`:".arrow-right"},loop:c,centeredSlides:!1,keyboard:{enabled:!0},speed:u,pagination:n,freeMode:!0,breakpoints:m??{1280:{slidesPerView:r||4},769:{slidesPerView:3}},modules:[eu.Keyboard,em.Scrollbar,ep.Navigation,en.FreeMode,ei.Autoplay],className:`mySwiper ${l} swiper-transition`,style:p,touchStartPreventDefault:!1,touchMoveStopPropagation:!0,onTouchStart:(e,t)=>{t.stopPropagation()},onTouchMove:(e,t)=>{t.stopPropagation()},onSwiper:e=>{f(e.isBeginning),g(e.isEnd)},onSlideChange:e=>{f(e.isBeginning),g(e.isEnd)},children:e})})},ev=({product:e,handleSelectVariants:r,handleSpecialPricing:a,handleNormalPricing:l,formatWeight:s,closeWeightModal:o,isSwipeCard:d,initialVariantShow:c,handleAddVariantToCart:i,discount:n,gridViewMobile:u})=>{let p=(0,eh.isMobileViewport)(),m=c||2,x=u?{768:{slidesPerView:m}}:void 0;return(0,t.jsx)("div",{className:"w-full max-sm:p-2",children:(0,t.jsx)("div",{className:"space-y-6 mb-1 lg:px-2",children:e?.variants?.length>1&&(0,t.jsx)("div",{className:"product-variant-slider",onTouchStart:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),children:(0,t.jsx)(ey,{rightArrowId:`custom-right-arrow-${e?.slug}`,leftArrowId:`custom-left-arrow-${e?.slug}`,slidesPerView:u?1.5:m,breakpoints:x,navigation:!0,className:"product-variant-slider",style:{paddingLeft:p?"10px":"24px",paddingRight:p?"10px":"26px"},children:e?.variants.map((c,u)=>{let p=l(c),m=a(c),x=m&&p.toFixed(2)!==m.toFixed(2);return(0,t.jsx)(ec.SwiperSlide,{className:"!overflow-visible",children:(0,t.jsx)("div",{className:"min-h-[110px] flex w-full items-center justify-center overflow-visible",children:(0,t.jsxs)("div",{className:"w-full",children:[n>0&&x&&(0,t.jsxs)("p",{className:"mx-auto mb-1 flex w-fit items-center justify-center gap-1 rounded-lg px-2 text-center text-[10px] font-semibold pd_batch_color",children:[n,"% Off"]}),(0,t.jsxs)("div",{className:"relative w-full pt-2 pr-2",children:[(0,t.jsx)(eg.default,{as:"button",ariaLabel:"Add to Cart",className:"absolute right-0 top-0 z-20 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full border bg-white product-add-to-cart-button-color",onAction:async()=>{await Promise.resolve(i(c))},children:(0,t.jsx)(B.Plus,{className:"text-sm",weight:"bold"})}),(0,t.jsxs)("div",{onClick:()=>{r(JSON.stringify(c)),d&&o()},className:"relative flex cursor-pointer flex-col overflow-hidden rounded-lg border text-xs product-add-to-cart-button-border-color",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1 bg-white px-2 pb-2 pt-3",children:[(0,t.jsx)("p",{className:"text-sm font-bold leading-tight product-card-text-color",children:s(c?.option)}),(0,t.jsx)(S.default,{count:(0,P.getVariantStockCount)(e,c?.option),styleVariant:"flame"})]}),(0,t.jsx)("div",{className:"w-full py-2 text-center font-semibold text-white product-add-to-cart-button-color",children:x?(0,t.jsxs)("p",{className:"flex items-center justify-center gap-1.5 text-sm",children:[(0,t.jsxs)("span",{className:"line-through opacity-80",children:["$",p.toFixed(2)]}),(0,t.jsxs)("span",{children:["$",m.toFixed(2)]})]}):(0,t.jsxs)("p",{className:"text-sm",children:["$",p?.toFixed(2)]})})]})]})]})})},"variant-list"+u)})})})})})},eN=({product:e,isSaveForLaterPage:r,brand:a,isSwipeCard:l=!1,setSwipeCardSelectedVariant:s,selectedFirstWeight:o,selectedCategory:d={},selectedSpecial:i={},onClick:x,onAddToCart:v,isSponsored:N,isSurfside:C=!1,specialUnlockSlug:P="",isModal:T=!1,priority:A=!1})=>{let D=(0,g.default)().isMobile,{openDrawer:L,closeWeightModal:V,closeDrawer:M,setOpen:$,handleNormalPricing:H,handleSpecialPricing:X,handleRouteChange:O,handleSelectVariants:W,processAddingToCart:z,processAddingToCartMobile:I,discount:U,specialPrice
30:G,normalPrice:Z,selectedVariant:q,handleAddToCart:Q,setQuantity:J,clearState:K,isBrandDetailsPage:ee,isCategoryDetailsPage:et,isSpecialDetailsPage:er}=(0,ed.default)({product:e,brand:a,setSwipeCardSelectedVariant:s,selectedFirstWeight:o,selectedCategory:d,selectedSpecial:i}),ea=(0,c.useSearchParams)(),es=ea?.get("specialSlug")?ea?.get("specialSlug"):P,eo=es&&"all"!==es?e?.specials?.find(e=>e.urlSlug===es)?.name:e?.specials?.[0]?.name,ec=es&&"all"!==es?es:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:ei}=(0,f.default)({specialName:eo,specialSlug:ec}),{showVariantSelector:en,showPriceRange:eu,variantPriceRange:ep}=(0,E.useFlowhubProductCardDisplay)(e),em=(0,k.useProductStock)({product:e,selectedVariantOption:q?.option??""});return(0,t.jsxs)("div",{onClick:()=>x?.(),className:(0,j.cn)(l?"px-2 md:px-5 py-3.5 rounded-md duration-500 cursor-pointer relative drop-shadow-sm md:min-h-[630px] h-full product-card-background-color product-card-border-color w-full":"product-card-background-color product-card-shadow-color product-card-border-color relative rounded-lg mx-auto border flex flex-col h-full w-full"),children:[(0,t.jsxs)("div",{className:"relative w-full md:h-60 h-44 p-4 mx-auto",children:[(0,t.jsx)(el.default,{product:e,className:"inline-block text-xs absolute top-3 left-3"}),(0,t.jsx)(m.default,{className:(0,j.cn)(l&&"pointer-events-none"),href:`/product/${e?.slug}`,onClick:()=>{O(`/product/${e?.slug}`)},children:(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",quality:80,priority:A,className:"object-contain w-full h-full object-center",imgixParams:{w:D?250:340,h:D?250:340,auto:"format,compress"}})}),(0,t.jsxs)("div",{className:"absolute top-3 md:top-5 right-1 md:right-5 space-y-3",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(y.default,{onOpen:()=>$(!0)})}),(0,t.jsx)(w.default,{product:e})]})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-between px-4 pb-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>O(`/product/${e?.slug}`),className:"h-9 md:h-12 text-sm md:text-lg font-semibold leading-tight line-clamp-2 product-card-text-color",children:e?.name}),e?.brand?.name?.length>0&&(0,t.jsx)("p",{className:"text-sm font-medium text-gray-800 product-card-discount-tag-color",children:(0,u.makeTitleCase)(e?.brand?.name)}),(0,t.jsxs)("div",{className:"flex items-center md:text-xs text-[11px] gap-1 flex-wrap product-card-text-color",children:[e?.strainType&&e?.strainType!="NOT_APPLICABLE"&&(0,t.jsx)("p",{className:"font-bold",children:e?.strainType}),(e?.potencyThc?.formatted||e?.potencyCbd?.formatted)&&(0,t.jsx)(Y.Circle,{weight:"fill",className:"text-[8px]"}),(0,t.jsxs)("p",{className:"",children:[e?.potencyThc?.formatted&&(0,t.jsxs)(t.Fragment,{children:["THC: ",e?.potencyThc?.formatted]}),e?.potencyThc?.formatted&&e?.potencyCbd?.formatted&&(0,t.jsx)(t.Fragment,{children:"-"}),e?.potencyCbd?.formatted&&(0,t.jsxs)(t.Fragment,{children:["CBD: ",e?.potencyCbd?.formatted]})]})]})]}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(h.default,{product:e,cardNo:"five"})})]}),(0,t.jsx)("div",{className:"mt-auto flex items-end mb-[5px]",children:(0,t.jsx)("div",{className:"w-full",children:en?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ev,{product:e,specialPrice:G,normalPrice:Z,selectedVariant:q,setQuantity:J,clearState:K,handleSelectVariants:W,handleSpecialPricing:X,handleNormalPricing:H,formatWeight:p.formatWeight,processAddingToCart:z,isSaveForLaterPage:r||!1,closeWeightModal:V,initialVariantShow:2,discount:U,handleAddVariantToCart:t=>{v?.(),Q(e?.id||e?.productId,t?.option,e,1,!1,ee,et,er,{specialName:eo,specialSlug:ec},ei())},gridViewMobile:!0}),l&&(0,t.jsx)("div",{className:"grid grid-cols-1 mt-auto",children:(0,t.jsx)(m.default,{href:`/product/${e.slug}`,className:"w-full whitespace-nowrap rounded-full text-sm font-medium px-6 py-2.5 secondary-button-hover text-center mt-3",children:"See Details"})})]})}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:(0,j.cn)("flex items-center justify-between flex-wrap md:pt-[59px] md:pb-2",T?"px-0 gap-y-0 py-0 md:px-4 md:gap-y-3 md:py-[30px]":"px-4 gap-y-3 py-[30px]"),children:[(0,t.jsxs)("p",{className:"text-2xl font-extrabold leading-tight text-gray-900 font-bold flex items-center flex-wrap gap-1",children:[!eu&&"N/A"!==(0,p.formatWeight)(q?.option)&&e?.category!=="EDIBLES"&&(0,t.jsx)("span",{className:"custom-price h-[30px] rounded-lg flex items-center justify-center p-1 product-card-text-color",children:(0,p.formatWeight)(q?.option)}),(0,t.jsx)(F.default,{showPriceRange:eu,variantPriceRange:ep,specialPrice
30:G,normalPrice:Z,priceClassName:"custom-price product-card-text-color",strikeClassName:"line-through text-secondary_text custom-strike-price product-card-text-color"}),(0,t.jsx)("div",{className:"flex justify-start w-full !mt-0",children:(0,t.jsx)(S.default,{count:em})})]}),!r&&!l&&(0,t.jsx)(eg.default,{ariaLabel:"Add to Cart",tooltip:"Add to Cart",tooltipPosition:"left",className:"relative ml-auto md:w-[50px] md:h-[50px] w-[35px] h-[35px] rounded-full flex items-center justify-center product-add-to-cart-button-color",onAction:async()=>{v?.(),await Q(e?.id||e?.productId,q?.option,e,1,!1,ee,et,er,{specialName:eo,specialSlug:ec},ei())},children:(0,t.jsx)(B.Plus,{className:"text-2xl md:!w-auto !w-[14px] md:!h-auto !h-[14px]"})})]})})})}),n.default.createPortal((0,t.jsx)(R,{open:L,handleClose:M,children:(0,t.jsx)(_,{product:e,specialPrice:G,normalPrice:Z,selectedVariant:q,setQuantity:J,clearState:K,handleSelectVariants:W,handleSpecialPricing:X,handleNormalPricing:H,formatWeight:p.formatWeight,processAddingToCart:I,isSaveForLaterPage:r||!1,closeWeightModal:M,isSwipeCard:l})}),document.body),(0,t.jsx)("div",{className:`flex-shrink-0 h-6 md:h-6 flex items-center h-6 ${C?"block":"hidden"}`,children:N?(0,t.jsx)("div",{className:"text-[12px] product-card-text-color capitalize text-center w-full mb-2",children:"Sponsored"}):(0,t.jsx)("div",{"aria-hidden":!0,className:"w-full"})})]})},eC=({product:e,isSaveForLaterPage:r,brand:a,selectedFirstWeight:l,selectedCategory:s={},selectedSpecial:o={},onAddToCart:d,specialUnlockSlug:i=""})=>{let n=(0,g.default)().isMobile,{openDrawer:x,closeWeightModal:j,closeDrawer:v,setOpen:N,handleNormalPricing:C,handleSpecialPricing:P,handleRouteChange:A,handleSelectVariants:D,processAddingToCart:L,processAddingToCartMobile:V,discount:M,specialPrice:$,normalPrice:B,selectedVariant:H,handleAddToCart:X,price:O,setQuantity:W,clearState:I,isBrandDetailsPage:U,isCategoryDetailsPage:G,isSpecialDetailsPage:Z}=(0,z.default)({product:e,brand:a,selectedFirstWeight:l,selectedCategory:s,selectedSpecial:o}),q=(0,c.useSearchParams)(),Q=q?.get("specialSlug")?q?.get("specialSlug"):i,J=Q&&"all"!==Q?e?.specials?.find(e=>e.urlSlug===Q)?.name:e?.specials?.[0]?.name,K=Q&&"all"!==Q?Q:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:ee}=(0,f.default)({specialName:J,specialSlug:K}),{showVariantSelector:et,showPriceRange:er,variantPriceRange:ea}=(0,E.useFlowhubProductCardDisplay)(e),es=(0,k.useProductStock)({product:e,selectedVariantOption:H?.option??""});return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"md:p-0 pl-0 p-3 flex items-center product-card-background-color product-card-shadow-color product-card-border-color rounded-lg border gap-5 relative",children:[(0,t.jsxs)("div",{className:"md:w-[272px] w-36 relative bg-white rounded-lg overflow-hidden",children:[(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>A(`/product/${e?.slug}`),className:"flex justify-center items-center align-middle h-full p-6",children:(0,t.jsx)(b.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",className:"rounded-l-lg w-full h-auto",imgixParams:{w:n?250:340,h:n?250:340,auto:"format,compress"}})}),(0,t.jsxs)("div",{className:"absolute top-0 md:top-4 left-3 md:left-4 space-y-3",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(y.default,{onOpen:()=>N(!0),tooltipPosition:"right"})}),(0,t.jsx)(w.default,{product:e,menuAlign:"left"})]})]}),(0,t.jsxs)("div",{className:"flex-1 relative md:p-5 p-0  pt-0 pl-0 flex flex-col items-start justify-between w-[60%]",children:[(0,t.jsx)("div",{className:"flex items-center gap-4 w-full mb-1",children:(0,t.jsxs)("div",{className:"max-w-lg space-y-2",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(el.default,{product:e,className:"w-fit text-xs"}),(0,t.jsx)(m.default,{href:`/product/${e?.slug}`,onClick:()=>A(`/product/${e?.slug}`),children:(0,t.jsx)("h2",{className:"text-[11px] md:text-2xl font-semibold text-gray-900 product-card-text-color",children:e?.name})})]}),e?.brand?.name?.length>0&&(0,t.jsx)("p",{className:"text-[9px] md:text-sm font-medium product-card-discount-tag-color",children:(0,u.makeTitleCase)(e?.brand?.name)}
30),(0,t.jsxs)("div",{className:"flex items-center gap-1 md:text-sm text-[10px] product-card-text-color",children:[e?.strainType&&e?.strainType!="NOT_APPLICABLE"&&(0,t.jsx)("p",{className:"font-bold",children:e?.strainType}),(e?.potencyThc?.formatted||e?.potencyCbd?.formatted)&&(0,t.jsx)(Y.Circle,{weight:"fill",className:"text-sm"}),(0,t.jsxs)("p",{className:"",children:[e?.potencyThc?.formatted&&(0,t.jsxs)(t.Fragment,{children:["THC: ",e?.potencyThc?.formatted]}),e?.potencyThc?.formatted&&e?.potencyCbd?.formatted&&(0,t.jsx)(t.Fragment,{children:"-"}),e?.potencyCbd?.formatted&&(0,t.jsxs)(t.Fragment,{children:["CBD: ",e?.potencyCbd?.formatted]})]})]}),e?.variants?.length===1&&(0,t.jsx)("p",{className:"md:hidden text-base md:text-xl font-bold",children:!er&&"N/A"!==(0,p.formatWeight)(H?.option)&&e?.category!=="EDIBLES"&&(0,t.jsx)("span",{className:"text-[10px] w-[40px] h-[25px] rounded-lg flex items-center justify-center p-1 product-card-text-color",children:(0,p.formatWeight)(H?.option)})})]})}),(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"w-full lg:w-fit",children:(0,t.jsx)(h.default,{product:e,cardNo:"five"})}),et?(0,t.jsx)("div",{className:"md:hidden relative",children:(0,t.jsx)(ev,{product:e,specialPrice:$,normalPrice:B,selectedVariant:H,setQuantity:W,clearState:I,handleSelectVariants:D,handleSpecialPricing:P,handleNormalPricing:C,formatWeight:p.formatWeight,processAddingToCart:L,isSaveForLaterPage:r||!1,closeWeightModal:j,initialVariantShow:n?2.1:2,discount:M,handleAddVariantToCart:async t=>{d?.(),await X(e?.id||e?.productId,t?.option,e,1,!1,U,G,Z,{specialName:J,specialSlug:K},ee())}})}):(0,t.jsx)(t.Fragment,{children:r?(0,t.jsx)("button",{onClick:()=>{d?.(),X(e?.id||e?.productId,O[0]?.option,e,1,!0,U,G,Z,{specialName:e?.specials?.[0]?.name,specialSlug:e?.specials?.[0]?.urlSlug},ee())},className:"md:hidden px-4 py-2 flex items-center justify-center gap-2 bg-white w-full text-gray-800 border border-gray-300 text-[10px] font-medium rounded-full hover:bg-gray-100 transition duration-150 flex-shrink-0 product-add-to-cart-button-color",children:(0,t.jsx)("p",{children:"Move to Cart"})}):(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"flex justify-end me-[96px] mb-[10px] md:hidden",children:(0,t.jsx)(S.default,{count:es})}),(0,t.jsxs)(T.default,{className:"md:hidden px-4 py-2 flex items-center justify-center gap-2 bg-primary text-white w-full text-gray-800 border border-gray-300 text-[10px] font-medium rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",onAction:async()=>{d?.(),await X(e?.id||e?.productId,H?.option,e,1,!1,U,G,Z,{specialName:e?.specials?.[0]?.name,specialSlug:e?.specials?.[0]?.urlSlug},ee())},children:[(0,t.jsx)(F.default,{showPriceRange:er,variantPriceRange:ea,specialPrice:$,normalPrice:B})," ","|",(0,t.jsx)("p",{className:"flex-shrink-0 text-[10px]",children:"Add to cart"})]})]})})]})]}),et?(0,t.jsx)("div",{className:"hidden md:flex flex-2 relative md:h-[301px] h-48 p-0  pt-0 pl-0 items-center justify-end w-[40%]",children:(0,t.jsx)("div",{className:"mb-1 w-full relative",children:(0,t.jsx)("div",{className:"min-w-60 pr-3",children:(0,t.jsx)(ev,{product:e,specialPrice:$,normalPrice:B,selectedVariant:H,setQuantity:W,clearState:I,handleSelectVariants:D,handleSpecialPricing:P,handleNormalPricing:C,formatWeight:p.formatWeight,processAddingToCart:L,isSaveForLaterPage:r||!1,closeWeightModal:j,initialVariantShow:4,discount:M,handleAddVariantToCart:async t=>{d?.(),await X(e?.id||e?.productId,t?.option,e,1,!1,U,G,Z,{specialName:J,specialSlug:K},ee())}})})})}):(0,t.jsxs)("div",{className:"hidden flex-2 relative md:h-[301px] h-48 p-0  pt-0 pl-0 md:flex items-center justify-between w-[40%] pr-3",children:[(0,t.jsx)("p",{className:"text-base md:text-xl font-bold",children:!er&&"N/A"!==(0,p.formatWeight)(H?.option)&&e?.category!=="EDIBLES"&&(0,t.jsx)("span",{className:"text-[14px] w-[60px] h-[50px] bg-gray-100 rounded-lg flex items-center justify-center p-1",children:(0,p.formatWeight)(H?.option)})}),(0,t.jsxs)("div",{className:"mb-1 w-full relative",children:[(0,t.jsx)("div",{className:"flex justify-end me-[96px] mb-[10px]",children:(0,t.jsx)(S.default,{count:es})}),r?(0,t.jsx)("button",{onClick:()=>{d?.(),X(e?.id||e?.productId,O[0]?.option,e,1,!0,U,G,Z,{specialName:e?.specials?.[0]?.name,specialSlug:e?.specials?.[0]?.urlSlug},ee())},className:"whitespace-nowrap hidden min-w-60 py-3 md:flex items-center justify-center gap-2 bg-white text-gray-800 border border-gray-300 font-medium rounded-full ms-auto hover:bg-gray-100 transition duration-150 text-base product-add-to-cart-button-color",children:(0,t.jsx)("p",{children:"Move to Cart"})}):(0,t.jsxs)(T.default,{className:"whitespace-nowrap hidden min-w-60 py-3 md:flex items-center justify-center gap-2 bg-primary text-white border border-gray-300 font-medium rounded-full ms-auto hover:bg-gray-100 transition duration-150 text-base product-add-to-cart-button-color",onAction:async()=>{d?.(),await X(e?.id||e?.productId,H?.option,e,1,!1,U,G,Z,{specialName:J,specialSlug:K},ee())},children:[(0,t.jsx)(F.default,{showPriceRange:er,variantPriceRange:ea,specialPrice
30:$,normalPrice:B})," ","|",(0,t.jsx)("p",{children:"Add to cart"})]})]})]}),(0,t.jsx)(R,{open:x,handleClose:v,children:(0,t.jsx)(_,{product:e,specialPrice:$,normalPrice:B,selectedVariant:H,setQuantity:W,clearState:I,handleSelectVariants:D,handleSpecialPricing:P,handleNormalPricing:C,formatWeight:p.formatWeight,processAddingToCart:V,isSaveForLaterPage:r||!1,closeWeightModal:v})})]})})};var eS=e.i(528886),eP=e.i(262465),ek=e.i(170406),eT=e.i(431266),eE=e.i(528096),eF=e.i(109950),eA=e.i(459813),eD=e.i(559252),eL=e.i(647299),eV=e.i(604777),eR=e.i(479031),eM=e.i(623313),e$=e.i(390809),eB=e.i(978622),eH=e.i(563743),eX=e.i(209718),eO=e.i(490057),eW=e.i(583292),e_=e.i(780953),ez=e.i(904843),eY=e.i(366450),eI=e.i(28181),eU=e.i(175514),eG=e.i(821220),eZ=e.i(732606),eq=e.i(53062),eQ=e.i(704),eJ=e.i(458464),eK=e.i(755309),e0=e.i(968371),e1=e.i(280808),e2=e.i(370418),e4=e.i(770703),e5=e.i(960606),e3=e.i(813387),e8=e.i(435930),e6=e.i(873837),e7=e.i(421945),e9=e.i(974003),te=e.i(111258),tt=e.i(545433);function tr(e,t,r,a){let l=Number(e);return Number.isFinite(l)?Math.min(a,Math.max(r,l)):t}function ta(e){return"string"==typeof e&&["scale","lift","glow","pop"].includes(e)?e:"scale"}function tl({children:e}){let{productCardSettings:a}=(0,r.useGlobalStore)(),l=(0,i.useId)().replace(/:/g,""),s=`pch-${l}`,o=(0,i.useMemo)(()=>{var e;return{isEnabled:!!a?.isProductCardHoverEnabled,hoverEffect:ta(a?.productCardHoverEffect),hoverScale:tr(a?.productCardHoverScale,1.05,1,1.2),hoverLiftPx:tr(a?.productCardHoverLiftPx,4,0,24),hoverTransitionDuration:tr(a?.productCardHoverTransitionDuration,200,100,600),hoverTransitionEasing:"string"==typeof(e=a?.productCardHoverTransitionEasing)&&["ease","ease-in-out","linear","ease-out","ease-in"].includes(e)?e:"ease-in-out",hoverGlowSpread:tr(a?.productCardHoverGlowSpread,12,0,48)}},[a]),d=(0,i.useMemo)(()=>(function(e,t){if(!t.isEnabled)return"";let r=ta(t.hoverEffect),a=t.hoverTransitionDuration,l=t.hoverTransitionEasing,s=function(e,t){let r=t.hoverScale,a=t.hoverLiftPx;switch(e){case"scale":return`transform: scale(${r});`;case"lift":return`transform: translateY(-${a}px); box-shadow: 0 ${a+4}px ${a+12}px rgba(0, 0, 0, 0.12);`;case"glow":return`box-shadow: 0 0 ${t.hoverGlowSpread}px rgba(0, 0, 0, 0.18);`;case"pop":return`transform: scale(${r}) translateY(-${a}px); box-shadow: 0 ${a+6}px ${a+14}px rgba(0, 0, 0, 0.14);`;default:return""}}(r,t),o="scale"===r||"pop"===r||"lift"===r;return`
31    .${e} {
32      transition: transform ${a}ms ${l}, box-shadow ${a}ms ${l};
33      ${o?"transform-origin: center center;":""}
34      will-change: transform, box-shadow;
35    }
36    @media (min-width: 768px) {
37      .${e}:hover {
38        ${s}
39        z-index: 2;
40        position: relative;
41      }
42    }
43  `})(s,o),[s,o]);return o.isEnabled?(0,t.jsxs)(t.Fragment,{children:[d?(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:d}}):null,(0,t.jsx)("div",{className:`${s} h-full w-full`,children:e})]}):(0,t.jsx)(t.Fragment,{children:e})}let ts=(0,e4.default)(()=>e.A(86728),{loadableGenerated:{modules:[194461]},ssr:!1}),to=(0,e4.default)(()=>e.A(247396),{loadableGenerated:{modules:[559245]},ssr:!1}),td=(0,e4.default)(()=>e.A(624375),{loadableGenerated:{modules:[326106]},ssr:!1}),tc=(0,e4.default)(()=>e.A(244842),{loadableGenerated:{modules:[427847]},ssr:!1}),ti=(0,e4.default)(()=>e.A(61005),{loadableGenerated:{modules:[883460]},ssr:!1}),tn=(0,e4.default)(()=>e.A(308043),{loadableGenerated:{modules:[191608]},ssr:!1}),tu=(0,e4.default)(()=>e.A(787875),{loadableGenerated:{modules:[312736]},ssr:!1}),tp=(0,e4.default)(()=>e.A(460313),{loadableGenerated:{modules:[644997]},ssr:!1});e.s(["default",0,function({productData:e,isListView:o=!1,isSaveForLaterPage:d=!1,brand:c="",isSwipeCard:i=!1,setSwipeCardSelectedVariant:n,selectedFirstWeight:u,selectedCategory:p={},selectedSpecial:m={},onClick:x,onAddToCart:f,isSponsored:h,isSurfside:g=!1,specialUnlockSlug:b="",isModal:j=!1,flatChrome:w=!1,index:y}){let{productCardSettings:v}=(0,r.useGlobalStore)(),N=(0,Q.decryptFromCookies)("provider"),C=v?.productCardPriceFontSizeDesktop,S=v?.productCardPriceFontWeightDesktop,P=v?.productCardPriceFontSizeMobile,k=v?.productCardPriceFontWeightMobile,T=v?.productCardStrikePriceFontSizeDesktop,E=v?.productCardStrikePriceFontWeightDesktop,F=v?.productCardStrikePriceFontSizeMobile,L=v?.productCardStrikePriceFontWeightMobile,V={isShowcaseTitleEnabled:v?.isShowcaseTitleEnabled??!1,isShowcaseCategoryEnabled:v?.isShowcaseCategoryEnabled??!1,isShowcaseStrainTypeEnabled:v?.isShowcaseStrainTypeEnabled??!1},R=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eo,{priceFontSizeDesktop:C,priceFontWeightDesktop:S,priceFontSizeMobile:P,priceFontWeightMobile:k,strikePriceFontSizeDesktop:T,strikePriceFontWeightDesktop:E,strikePriceFontSizeMobile:F,strikePriceFontWeightMobile:L}),(0,J.providerWithSameFlow)(N)&&(0,t.jsx)(t.Fragment,{children:v?.isProductCardOne?o?(0,t.jsx)(s.default,{product:e||{},brand:c||"",selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,specialUnlockSlug:b}):(0,t.jsx)(l.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",isSwipeCard:i,setSwipeCardSelectedVariant:n,selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,isSponsored:h,isSurfside:g,specialUnlockSlug:b}):v?.isProductCardTwo?o?(0,t.jsx)(q,{product:e||{},brand:c||"",selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,isSponsored:h,isSurfside:g,specialUnlockSlug:b}):(0,t.jsx)(a.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",isSwipeCard:i,setSwipeCardSelectedVariant:n,selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,isSponsored:h,isSurfside:g,specialUnlockSlug:b,priority:0===y}):v?.isProductCardThree?o?(0,t.jsx)(D,{product:e||{},brand:c||"",selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,specialUnlockSlug:b}):(0,t.jsx)(A,{product:e||{},isSaveForLaterPage:d,brand:c||"",isSwipeCard:i,setSwipeCardSelectedVariant:n,selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,isSponsored:h,isSurfside:g,specialUnlockSlug:b}):v?.isProductCardFour?o?(0,t.jsx)(U,{product:e||{},brand:c||"",selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,specialUnlockSlug:b}):(0,t.jsx)(I,{product:e||{},isSaveForLaterPage:d,brand:c||"",isSwipeCard:i,setSwipeCardSelectedVariant:n,selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,isSponsored:h,isSurfside:g,specialUnlockSlug:b,isModal:j,priority:0===y}):v?.isProductCardFive?o?(0,t.jsx)(ew,{product:e||{},brand:c||"",selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,specialUnlockSlug:b}):(0,t.jsx)(ej,{product:e||{},isSaveForLaterPage:d,brand:c||"",isSwipeCard:i,setSwipeCardSelectedVariant:n,selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,isSponsored:h,isSurfside:g,specialUnlockSlug:b,priority:0===y}):o?(0,t.jsx)(eC,{product:e||{},brand:c||"",selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,specialUnlockSlug:b}):(0,t.jsx)(eN,{product:e||{},isSaveForLaterPage:d,brand:c||"",isSwipeCard:i,setSwipeCardSelectedVariant:n,selectedFirstWeight:u,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,isSponsored:h,isSurfside:g,specialUnlockSlug:b,isModal:j,priority:0===y})}),(0,J.isProviderEcommerce)(N??null)&&(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(es,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,specialUnlockSlug:b}):(0,t.jsx)(er,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},onClick:x,onAddToCart:f,isSponsored:h,isSurfside:g,specialUnlockSlug:b})}),(0,J.isProviderShowcase)(N??null)&&(0,t.jsx)(t.Fragment,{children:v?.isPortfolioProductCardOne?o?(0,t.jsx)(eP.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eS.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):v?.isPortfolioProductCardTwo?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eT.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(ek.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V,priority:0===y})}):v?.isPortfolioProductCardThree?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eE.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eF.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})})}):v?.isPortfolioProductCardFour?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eD.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eA.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V,priority:0===y})})}):v?.isPortfolioProductCardFive?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eV.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eL.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V,priority:0===y})})}):v?.isPortfolioProductCardSix?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eM.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eR.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V,priority:0===y})}):v?.isPortfolioProductCardSeven?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eB.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(e$.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardEight?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eX.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eH.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardNine?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eW.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eO.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardTen?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(ez.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(e_.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardEleven?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eI.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eY.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardTwelve?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eG.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eU.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardThirteen?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eq.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eZ.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardFourteen?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eJ.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eQ.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardFifteen?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(e0.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eK.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardSixteen?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(e2.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(e1.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardSeventeen?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(to,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(ts,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardEighteen?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(tc,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(td,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardNineteen?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(tn,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(ti,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardTwenty?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(tp,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(tu,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardTwentyOne?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(e3.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(e5.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},s
43electedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardTwentyTwo?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(e6.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(e8.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardTwentyThree?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(e9.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(e7.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):v?.isPortfolioProductCardTwentyFour?(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(tt.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(te.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})}):(0,t.jsx)(t.Fragment,{children:o?(0,t.jsx)(eP.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V}):(0,t.jsx)(eS.default,{product:e||{},isSaveForLaterPage:d,brand:c||"",setSwipeCardSelectedVariant:n,isSwipeCard:i,selectedCategory:p||{},selectedSpecial:m||{},cardFieldVisibilityObject:V})})})]});return w?(0,t.jsx)("div",{className:"[&_.product-card-background-color]:!bg-transparent [&_.product-card-border-color]:!border-transparent [&_.product-card-shadow-color]:![box-shadow:none] [&_.product-card-gradient-bg-color]:!bg-transparent [&_.shadow-md]:!shadow-none [&_.shadow-lg]:!shadow-none [&_.shadow-xl]:!shadow-none [&_.shadow-sm]:!shadow-none [&_.drop-shadow-sm]:!shadow-none",children:(0,t.jsx)(tl,{children:R})}):(0,t.jsx)(tl,{children:R})}],49006)},814032,996337,528886,262465,170406,431266,528096,109950,459813,647299,604777,479031,623313,390809,978622,563743,209718,490057,583292,e=>{"use strict";var t=e.i(258288),r=e.i(368799),a=e.i(299106),l=e.i(271645),s=e.i(505539),o=e.i(618566),d=e.i(743534),c=e.i(505932);let i=({product:e,brand:i,setSwipeCardSelectedVariant:n,selectedCategory:u={},selectedSpecial:p={}})=>{let[m,x]=(0,l.useState)(!1),[f,h]=(0,l.useState)(!1),{token:g}=(0,a.useUserData)(),{todaySpecialsValue:b,menuType:j}=(0,t.useGlobalStore)(),{setIsQuickViewOpen:w,setQuickModalProduct:y}=(0,r.useModalStore)(),[v,N]=(0,l.useState)(!1),[C,S]=(0,l.useState)(!1),[P,k]=(0,l.useState)(!1),{handleAddToCart:T,setCurrentBrand:E,setCurrentCategory:F,setCurrentSpecial:A}=(0,s.default)(),D=(0,o.usePathname)(),{setRouteLoader:L}=(0,t.useGlobalStore)(),V=(0,o.useRouter)(),{setIsWishlistDrawerOpen:R,setIsOpenWishlist:M,setCurrentWishlistItem:$}=(0,d.useWishlistStore)(),[B,H]=(0,l.useState)(0),[X]=(0,l.useState)([]),[O,W]=(0,l.useState)(null),[_,z]=(0,l.useState)(null),[Y,I]=(0,l.useState)(!1),{resetQuantity:U,setQuantity:G,clearState:Z}=(0,c.default)();async function q(e){}async function Q(e){}(0,l.useEffect)(()=>{e?.variants?.[0]&&(z(e.variants[0].price),W(e.variants[0]),n&&n(e.variants[0]))},[e]),(0,l.useEffect)(()=>{D&&(/^\/brands\/[^/]+$/.test(D)&&(N(!0),E(i)),/^\/categories\/[^/]+$/.test(D)&&(S(!0),F(u)),(/^\/deals-collection\/[^/]+$/.test(D)||/^\/search\/deals\/[^/?]+(?:\?.*)?$/.test(D))&&(k(!0),A(p)))},[D,i?.brandId,u?.categoryName,p?.specialId]);let J=e?.variants?.map(e=>{let t,r,a;return t=e?.specialPrice?e?.specialPrice:e?.price?e?.price:0,r=e?.option,a=`$${t} / ${r}`,{value:t,label:a,isSpecial:e?.specialPrice>0&&e?.specialPrice<e?.price,price:e?.price??0,option:r}}),[K,ee]=(0,l.useState)(J?.[0]);return{weightModalOpen:m,setWeightModalOpen:x,openDrawer:f,setOpenDrawer:h,token:g,todaySpecialsValue:b,menuType:j,setIsQuickViewOpen:w,setQuickModalProduct:y,isBrandDetailsPage:v,closeWeightModal:()=>{x(!1),U()},closeDrawer:()=>{h(!1),U()},setOpen:t=>{y(e),w(t)},handleWishlistClick:()=>{$({...e}),window.innerWidth<768?R(!0):M(!0)},handleRouteChange:function(e){if(e===D)return!1;L(!0),V.push(e)},processAddingToCart:q,processAddingToCartMobile:Q,discount:B,setDiscount:H,normalPrice:_,selectedVariant:O,setSelectedVariant:W,handleAddToCart:T,price:X,setQuantity:G,clearState:Z,options:J,selectedOption:K,handleChangeOption:async e=>{ee(e),I(!Y),n&&n(e)},setIsOptionsOpen:I,isOptionsOpen:Y,isCategoryDetailsPage:C,isSpecialDetailsPage:P}};e.s(["default",0,i],814032);var n=e.i(826086);let u=({product:e,brand:i,selectedCategory:u={},selectedSpecial:p={}})=>{let[m,x]=(0,l.useState)(!1),[f,h]=(0,l.useState)(!1),{token:g}=(0,a.useUserData)(),{todaySpecialsValue:b,menuType:j}=(0,t.useGlobalStore)(),{setIsQuickViewOpen:w,setQuickModalProduct:y}=(0,r.useModalStore)(),[v,N]=(0,l.useState)(!1),[C,S]=(0,l.useState)(!1),[P,k]=(0,l.useState)(!1),{handleAddToCart:T,setCurrentBrand:E,setCurrentCategory:F,setCurrentSpecial:A}=(0,s.default)(),D=(0,o.usePathname)(),{setRouteLoader:L}=(0,t.useGlobalStore)(),V=(0,o.useRouter)(),R=(0,o.useSearchParams)(),M=R?.get("specialSlug"),$=M&&"all"!==M?M:e?.specials?.[0]?.urlSlug,B=M&&"all"!==M?e?.specials?.find(e=>e.urlSlug===M)?.name:e?.specials?.[0]?.name,{shouldSetCartOpen:H}=(0,n.default)({specialName:B,specialSlug:$}),{setIsWishlistDrawerOpen:X,setIsOpenWishlist:O,setCurrentWishlistItem:W}=(0,d.useWishlistStore)(),[_,z]=(0,l.useState)(0),[Y]=(0,l.useState)([]),[I,U]=(0,l.useState)(null),[G,Z]=(0,l.useState)(null),[q,Q]=(0,l.useState)(null),{resetQuantity:J,quantity:K,setQuantity:ee,clearState:et}=(0,c.default)(),er=()=>{x(!1),J()},ea=()=>{h(!1),J()};function el(e){return e.price}function es(e){return e?.specialPrice}let eo=()=>{let e=0,t=0;z(Math.round(t="RECREATIONAL"===j&&I?.specialPriceRec?((e=I?.priceRec)-I?.specialPriceRec)/e*100:I?.specialPriceMed?((e=I?.priceMed)-I?.specialPriceMed)/e*100:0))};async function ed(t){"add"===t?await T(e?.id||e?.productId,I?.option,e,K,!1,v,C,P,{specialName:B,specialSlug:$}
43,H()):await T(e?.id||e?.productId,Y[0]?.option,e,K,!0,!1,!1,!1,{specialName:B,specialSlug:$},H()),er()}async function ec(t){"add"===t?await T(e?.id||e?.productId,I?.option,e,K,!1,v,C,P,{specialName:B,specialSlug:$},H()):await T(e?.id||e?.productId,Y[0]?.option,e,K,!0,!1,!1,!1,{specialName:B,specialSlug:$},H()),ea()}return(0,l.useEffect)(()=>{if(e?.variants?.length>0){let t=e.variants[0];Z(el(t)),Q(es(t)),U(t)}},[e]),(0,l.useEffect)(()=>{eo()},[I]),(0,l.useEffect)(()=>{D&&(/^\/brands\/[^/]+$/.test(D)&&(N(!0),E(i)),/^\/category\/[^/]+$/.test(D)&&(S(!0),F(u)),(/^\/deals-collection\/[^/]+$/.test(D)||/^\/search\/deals\/[^/?]+(?:\?.*)?$/.test(D))&&(k(!0),A(p)))},[D,i?.brandId,u?.categoryName,p?.specialId]),{weightModalOpen:m,setWeightModalOpen:x,openDrawer:f,setOpenDrawer:h,token:g,todaySpecialsValue:b,menuType:j,setIsQuickViewOpen:w,setQuickModalProduct:y,isBrandDetailsPage:v,closeWeightModal:er,closeDrawer:ea,setOpen:t=>{y(e),w(t)},handleWishlistClick:()=>{W({...e}),window.innerWidth<768?X(!0):O(!0)},handleNormalPricing:el,handleSpecialPricing:es,getDiscount:eo,handleRouteChange:function(e){if(e===D)return!1;L(!0),V.push(e)},handleSelectVariants:function(e){let t=e?.target?.value||e;Z(el(t)),Q(es(t)),U(t)},processAddingToCart:ed,processAddingToCartMobile:ec,discount:_,setDiscount:z,specialPrice:q,normalPrice:G,setNormalPrice:Z,selectedVariant:I,setSelectedVariant:U,handleAddToCart:T,price:Y,setQuantity:ee,clearState:et,isCategoryDetailsPage:C,isSpecialDetailsPage:P}};e.s(["default",0,u],996337);var p=e.i(843476),m=e.i(356530),x=e.i(710793),f=e.i(199854),h=e.i(701973),g=e.i(522016);e.s(["default",0,({product:e,brand:r,setSwipeCardSelectedVariant:a,selectedCategory:l={},selectedSpecial:s={},cardFieldVisibilityObject:o})=>{let{productCardSettings:d}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:c=!1,isShowcaseStrainTypeEnabled:n=!1}=o??{},u=(0,f.default)().isMobile,{handleRouteChange:b}=i({product:e,brand:r,setSwipeCardSelectedVariant:a,selectedCategory:l,selectedSpecial:s});return(0,p.jsxs)("div",{className:"relative grid grid-cols-1 h-full rounded-2xl border md:p-4 p-2 shadow-md w-full product-card-background-color product-card-border-color ",children:[d?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,d?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:d?.newProductTagBgColor||"#76d145",color:d?.newProductTagTextColor||"#ffffff"},className:"absolute right-3 top-3 rounded-full px-3 py-1 text-xs font-semibold w-11 h-11 flex items-center justify-center",children:(0,p.jsx)("span",{className:"text-xs font-semibold text-center",children:d?.newProductTagTitle||"New"})}),(0,p.jsx)("div",{className:"rounded-xl p-2",children:(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",quality:80,className:"object-contain w-full rounded-t-lg h-[180px] md:h-[270px]",imgixParams:{w:u?250:340,h:u?250:340,auto:"format,compress"}})}),(0,p.jsxs)("div",{className:"mt-4 space-y-4",children:[n&&e?.strainType?(0,p.jsx)("span",{className:"inline-block rounded-full product-card-strain-badge-bg-color px-3 py-2 text-xs font-medium",children:(0,p.jsx)("span",{className:"product-card-strain-badge-color",children:e?.strainType})}):(0,p.jsx)("span",{className:"inline-block rounded-full px-3 py-2 text-xs font-medium"}),c&&(0,p.jsx)("h3",{className:"text-base md:text-lg font-semibold product-card-text-color",children:e?.name})]}),(0,p.jsx)("div",{className:"mt-auto pt-6",children:(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>b(`/product/${e?.slug}`),className:"inline-flex w-full items-center justify-center gap-2 rounded-full px-4 md:px-6 py-3 text-sm font-semibold transition-colors focus:outline-none focus:ring-4 focus:ring-blue-200 product-add-to-cart-button-color",children:[(0,p.jsx)(m.Plus,{className:"h-5 w-5"}),"Learn More"]})})]})}],528886),e.s(["default",0,({product:e,brand:r,selectedCategory:a={},selectedSpecial:l={},cardFieldVisibilityObject:s})=>{let o=(0,f.default)().isMobile,{productCardSettings:d}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:c=!1,isShowcaseStrainTypeEnabled:i=!1}=s??{},{handleRouteChange:n}=u({product:e,brand:r,selectedCategory:a,selectedSpecial:l});return(0,p.jsxs)("div",{className:"relative grid grid-cols-12 gap-3 rounded-2xl border p-4 shadow-md product-card-background-color product-card-border-color max:min-h-[280px]",children:[(0,p.jsxs)("div",{className:"grid grid-cols-12 gap-4 col-span-10",children:[(0,p.jsxs)("div",{className:"relative col-span-5 md:col-span-2 grid grid-cols-1",children:[(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",className:"object-cover w-full h-full rounded-md",img
43ixParams:{w:o?250:340,h:o?250:340,auto:"format,compress"}}),d?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,d?.newProductEnabledDuration)&&(0,p.jsx)("span",{style:{backgroundColor:d?.newProductTagBgColor||"#76d145",color:d?.newProductTagTextColor||"#ffffff"},className:"absolute -right-2 top-0 flex h-8 w-8 md:h-11 md:w-11 items-center justify-center rounded-full text-[10px] font-semibold",children:d?.newProductTagTitle||"New"})]}),(0,p.jsx)("div",{className:" flex items-center col-span-7 md:col-span-10",children:(0,p.jsxs)("div",{className:"space-y-2",children:[i&&e?.strainType&&(0,p.jsx)("span",{className:"inline-block rounded-full product-card-strain-badge-bg-color px-3 py-1 md:py-2 text-xs font-medium",children:(0,p.jsx)("span",{className:"product-card-strain-badge-color",children:e?.strainType})}),c&&(0,p.jsx)("h3",{className:"line-clamp-2 text-sm md:text-lg font-semibold product-card-text-color",children:e?.name})]})})]}),(0,p.jsx)("div",{className:"col-span-2 flex items-center justify-end",children:(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>n(`/product/${e?.slug}`),className:"inline-flex items-center justify-center gap-2 rounded-lg px-3 py-2 md:px-4 md:py-3 text-white transition-colors product-add-to-cart-button-color","aria-label":"Learn More",children:[(0,p.jsx)(m.Plus,{className:"h-5 w-5 shrink-0"}),!!d?.productCardAddToCartLabel?.length&&(0,p.jsx)("span",{className:"inline text-[10px] md:text-sm font-semibold whitespace-nowrap",children:d.productCardAddToCartLabel})]})})]})}],262465);var b=e.i(769464);let j=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M184,28H72A20,20,0,0,0,52,48V224a12,12,0,0,0,18.36,10.18l57.63-36,57.65,36A12,12,0,0,0,204,224V48A20,20,0,0,0,184,28Zm-4,174.35-45.65-28.53a12,12,0,0,0-12.72,0L76,202.35V52H180Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M192,48V224l-64-40L64,224V48a8,8,0,0,1,8-8H184A8,8,0,0,1,192,48Z",opacity:"0.2"}),l.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Zm0,177.57-51.77-32.35a8,8,0,0,0-8.48,0L72,209.57V48H184Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M184,34H72A14,14,0,0,0,58,48V224a6,6,0,0,0,9.18,5.09l60.81-38,60.83,38A6,6,0,0,0,198,224V48A14,14,0,0,0,184,34Zm2,179.17-54.83-34.26a6,6,0,0,0-6.36,0L70,213.17V48a2,2,0,0,1,2-2H184a2,2,0,0,1,2,2Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M184,32H72A16,16,0,0,0,56,48V224a8,8,0,0,0,12.24,6.78L128,193.43l59.77,37.35A8,8,0,0,0,200,224V48A16,16,0,0,0,184,32Zm0,177.57-51.77-32.35a8,8,0,0,0-8.48,0L72,209.57V48H184Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M184,36H72A12,12,0,0,0,60,48V224a4,4,0,0,0,6.12,3.39L128,188.72l61.89,38.67A4,4,0,0,0,192,228a4.06,4.06,0,0,0,1.94-.5A4,4,0,0,0,196,224V48A12,12,0,0,0,184,36Zm4,180.78-57.89-36.17a4,4,0,0,0-4.24,0L68,216.78V48a4,4,0,0,1,4-4H184a4,4,0,0,1,4,4Z"}))]]),w=l.forwardRef((e,t)=>l.createElement(b.default,{ref:t,...e,weights:j}));w.displayName="BookmarkSimpleIcon";var y=e.i(358789);e.s(["default",0,({product:e,brand:r,setSwipeCardSelectedVariant:a,selectedCategory:l={},selectedSpecial:s={},cardFieldVisibilityObject:o,priority:d=!1})=>{let c=(0,f.default)().isMobile,{productCardSettings:n}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:u=!1,isShowcaseCategoryEnabled:m=!1,isShowcaseStrainTypeEnabled:b=!1}=o??{},{handleRouteChange:j}=i({product:e,brand:r,setSwipeCardSelectedVariant:a,selectedCategory:l,selectedSpecial:s});return(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>j(`/product/${e?.slug}`),className:"relative flex h-full flex-col rounded-2xl border shadow-md w-full product-card-background-color product-card-border-color ",children:[n?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,n?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:n?.newProductTagBgColor||"#76d145",color:n?.newProductTagTextColor||"#ffffff"},className:"absolute left-3 top-3 rounded-full px-3 py-1 text-xs font-semibold w-11 h-11 flex items-center justify-center z-10",children:(0,p.jsx)("span",{className:"text-xs font-semibold text-center",children:n?.newProductTagTitle||"New"})}),(0,p.jsx)("div",{className:"rounded-xl p-4",children:(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",quality:80,priority:d,className:"object-cover aspect-square w-full rounded-t-lg h-[130px] md:h-[340px] overflow-hidden object-top",imgixParams:{w:c?250:340,h:c?250:340,auto:"format,compress"}})}),(0,p.jsxs)("div",{className:"px-4 pb-3 md:pb-8 space-y-3 flex-1 flex flex-col",children:[u&&(0,p.jsx)("h3",{className:"text-base md:text-lg font-semibold product-card-text-color leading-tight",children:e?.name}),(0,p.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[m&&e?.category&&(0,p.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-sm md:text-base font-medium product-card-category-badge-color",children:[(0,p.jsx)(w,{size:14}
43),e?.category?.replace(/_/g," ")]}),b&&e?.strainType&&(0,p.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-sm md:text-base font-medium product-card-strain-badge-color",children:[(0,p.jsx)(y.SealCheck,{size:14}),e?.strainType]})]}),(0,p.jsx)("div",{className:"flex flex-wrap gap-1",children:e?.effects?.map((t,r)=>(0,p.jsxs)("span",{className:"inline-block text-xs font-normal product-card-effects-badge-color",children:[t,r<e?.effects?.length-1&&(0,p.jsx)("span",{className:"product-card-effects-badge-color",children:","})]},r))})]})]})}],170406),e.s(["default",0,({product:e,brand:r,selectedCategory:a={},selectedSpecial:l={},cardFieldVisibilityObject:s})=>{let o=(0,f.default)().isMobile,{productCardSettings:d}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:c=!1,isShowcaseCategoryEnabled:i=!1,isShowcaseStrainTypeEnabled:n=!1}=s??{},{handleRouteChange:m}=u({product:e,brand:r,selectedCategory:a,selectedSpecial:l});return(0,p.jsx)(g.default,{href:`/product/${e?.slug}`,onClick:()=>m(`/product/${e?.slug}`),className:"relative grid grid-cols-1 items-center gap-2 md:gap-4 rounded-xl border shadow-md p-2 md:p-4 product-card-background-color product-card-border-color ",children:(0,p.jsxs)("div",{className:"grid grid-cols-12 items-center gap-2 md:gap-4",children:[(0,p.jsxs)("div",{className:"relative col-span-2 md:h-full max-w-80",children:[d?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,d?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:d?.newProductTagBgColor||"#76d145",color:d?.newProductTagTextColor||"#ffffff"},className:"absolute left-0 top-0 rounded-full px-3 py-1 text-xs font-semibold w-8 h-8 md:w-11 md:h-11 flex items-center justify-center z-10",children:(0,p.jsx)("span",{className:"text-xs font-semibold text-center",children:d?.newProductTagTitle||"New"})}),(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 96px, 340px",className:"object-contain w-full h-full rounded-sm",imgixParams:{w:o?96:340,h:o?96:340,auto:"format,compress"}})]}),(0,p.jsxs)("div",{className:"space-y-2 col-span-10",children:[c&&(0,p.jsx)("h3",{className:"text-sm md:text-lg font-semibold product-card-text-color leading-tight mb-3",children:e?.name}),(0,p.jsxs)("div",{className:"flex items-center gap-1 flex-wrap md:gap-3 mb-3",children:[i&&e?.category&&(0,p.jsxs)("span",{className:"inline-flex items-center gap-1 md:gap-1.5 text-xs md:text-sm font-medium product-card-category-badge-color",children:[(0,p.jsx)(w,{className:"h-3 w-3 md:h-4 md:w-4"}),e?.category?.replace(/_/g," ")]}),n&&e?.strainType&&(0,p.jsxs)("span",{className:"inline-flex items-center gap-1 md:gap-1.5 text-xs md:text-sm font-medium product-card-strain-badge-color",children:[(0,p.jsx)(y.SealCheck,{className:"h-3 w-3 md:h-4 md:w-4"}),e?.strainType]})]}),(0,p.jsx)("p",{className:"text-[10px] md:text-sm product-card-effects-badge-color",children:e?.effects?.join(", ")})]})]})})}],431266);var v=e.i(375677);e.s(["default",0,({product:e,brand:r,selectedCategory:a={},selectedSpecial:s={},cardFieldVisibilityObject:o})=>{let d=(0,f.default)().isMobile,{productCardSettings:c}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:i=!1,isShowcaseCategoryEnabled:n=!1}=o??{},{handleRouteChange:b}=u({product:e,brand:r,selectedCategory:a,selectedSpecial:s}),{displayCategoryName:j}=(0,v.default)();return(0,p.jsxs)("div",{className:"relative grid grid-cols-12 items-center gap-2 md:gap-4 justify-between rounded-xl border shadow-md p-2 md:p-4 product-card-background-color product-card-border-color ",children:[(0,p.jsxs)("div",{className:"grid grid-cols-12 items-center gap-2 md:gap-4 col-span-10",children:[(0,p.jsxs)("div",{className:"relative col-span-4 md:col-span-2 max-w-80",children:[c?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,c?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:c?.newProductTagBgColor||"#76d145",color:c?.newProductTagTextColor||"#ffffff"},className:"absolute left-0 top-0 rounded-full px-3 py-1 text-xs font-semibold w-8 h-8 md:w-11 md:h-11 flex items-center justify-center z-10",children:(0,p.jsx)("span",{className:"text-xs font-semibold text-center",children:c?.newProductTagTitle||"New"})}),(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 96px, 340px",className:"object-contain w-full h-full",imgixParams:{w:d?96:340,h:d?96:340,auto:"format,compress"}})]}),(0,p.jsx)("div",{className:"col-span-8 md:col-span-10",children:(0,p.jsxs)("div",{className:"space-y-2 flex-1",children:[n&&e?.category&&(0,p.jsx)("p",{className:"text-xs md:text-sm font-semibold product-card-category-badge-color uppercase tracking-wide line-clamp-2",children:j(e?.category)}),i&&(0,p.jsx)("h3",{className:"text-sm md:text-2xl font-extrabold product-card-text-color leading-tight uppercase",children:e?.name}),(0,p.jsx)("div",{className:"flex flex-wrap items-center gap-1",children:e?.effects?.map((t,r)=>(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)("span",{className:"inline-block text-[10px] md:text-sm font-extrabold product-card-effects-badge-color uppercase",children:t}),r<(e?.effects?.length||0)-1&&(0,p.jsx)("span",{className:"inline-block w-1 h-1 product-card-text-color-like-background  rounded-full"})]},r))})]})})]}),(0,p.jsx)("div",{className:"col-span-2 flex items-center justify-end",children:(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>b(`/product/${e?.slug}`),className:"inline-flex w-full items-center justify-center gap-2 rounded-full px-4 md:px-6 py-3 text-sm font-semibold transition-colors focus:outline-none focus:ring-4 focus:ring-blue-200 product-add-to-cart-button-color",children:[(0,p.jsx)(m.Plus,{className:"h-5 w-5"}),!!c?.productCardAddToCartLabel?.length&&c.productCardAddToCartLabel]})})]})}],528096),e.s(["default",0,({product:e,brand:r,setSwipeCardSelectedVariant:a,selectedCategory:s={},selectedSpecial:o={},cardFieldVisibilityObject:d})=>{let c=(0,f.default)().isMobile,{productCardSettings:n}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:u=!1,isShowcaseCategoryEnabled:m=!1}=d??{},{handleRouteChange:b}=i({product:e,brand:r,setSwipeCardSelectedVariant:a,selectedCategory:s,selectedSpecial:o});return(0,p.jsxs)("div",{className:"relative p-4 shadow-md rounded-lg mx-auto border flex flex-col h-full w-full group product-card-background-color product-card-border-color ",children:[n?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,n?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:n?.newProductTagBgColor||"#76d145",color:n?.newProductTagTextColor||"#ffffff"},className:"absolute left-3 top-3 rounded-full px-3 py-1 text-xs font-semibold w-11 h-11 flex items-center justify-center z-10",children:(0,p.jsx)("span",{className:"text-xs font-semibold text-center",children:n?.newProductTagTitle||"New"})}),(0,p.jsx)("div",{className:"relative rounded-lg mb-4",children:(0,p.jsxs)("div",{className:"rounded-xl relative",children:[(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",quality:80,className:"object-contain w-full rounded-t-lg h-[180px] h-[270px]",imgixParams:{w:c?250:340,h:c?250:340,auto:"format,compress"}}),(0,p.jsxs)("div",{className:`absolute -bottom-2 left-0 right-0 origin-bottom transition-all duration-400 group-hover:opacity-100 opacity-0 bg-gray-900/30 group-hover:bottom-0
44              `,children:[e?.subTitle&&(0,p.jsx)("div",{className:"flex items-center justify-center gap-2 py-1.5 px-1",children:(0,p.jsx)("p",{className:"text-base product-card-subtitle-color text-center",children:e?.
44subTitle})}),(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>b(`/product/${e?.slug}`),className:"w-full product-add-to-cart-button-color text-sm md:text-base font-medium py-3 transition-colors flex items-center justify-center gap-2 rounded-none",children:[(0,p.jsx)("span",{className:"text-xl",children:"+"}),"Learn More"]})]})]})}),(0,p.jsxs)("div",{className:"space-y-2 flex-1 flex flex-col",children:[m&&(0,p.jsx)("p",{className:"text-sm product-card-category-badge-color uppercase font-semibold line-clamp-2",children:e?.category?.replace(/_/g," ")}),u&&(0,p.jsx)("h3",{title:e?.name,className:"text-base md:text-xl font-extrabold product-card-text-color uppercase line-clamp-2 break-words leading-snug min-h-[2.75rem] md:min-h-[3.5rem] pb-0.5",children:e?.name}),e?.effects&&e?.effects.length>0&&(0,p.jsx)("div",{className:"flex flex-wrap items-center gap-1",children:e?.effects?.map((t,r)=>(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)("span",{className:"inline-block text-xs font-extrabold product-card-effects-badge-color uppercase",children:t}),r<(e?.effects?.length||0)-1&&(0,p.jsx)("span",{className:"inline-block w-1 h-1 product-card-text-color-like-background  rounded-full"})]},r))})]})]})}],109950);var N=e.i(102225),C=e.i(559252);e.s(["default",0,({product:e,brand:t,setSwipeCardSelectedVariant:r,selectedCategory:a,selectedSpecial:s,cardFieldVisibilityObject:o,priority:d=!1})=>{let c=(0,f.default)().isMobile,{isShowcaseTitleEnabled:i=!1,isShowcaseCategoryEnabled:n=!1,isShowcaseStrainTypeEnabled:u=!1}=o??{},{handleRouteChange:m}=(0,N.default)({product:e,brand:t,setSwipeCardSelectedVariant:r,selectedCategory:a,selectedSpecial:s});return(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>m(`/product/${e?.slug}`),className:"relative bg-gray-100 border border-gray-300 p-2.5 rounded-t-full overflow-hidden w-full flex flex-col h-full product-card-background-color product-card-border-color",children:[(0,p.jsx)("div",{className:"relative w-full rounded-t-full flex items-center justify-center mx-auto overflow-hidden",children:(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:256,height:256,sizes:"(max-width: 768px) 192px, 256px",quality:90,priority:d,className:"object-contain w-full h-[180px] md:h-[270px] rounded-t-full",imgixParams:{w:c?192:256,h:c?192:256,auto:"format,compress"}})}),(0,p.jsxs)("div",{className:"space-y-2 flex-1 flex flex-col text-center mt-2",children:[e?.effects&&e?.effects.length>0?(0,p.jsx)("div",{className:"flex items-center justify-center gap-1 text-xs product-card-effects-badge-color",children:e?.effects.map((t,r)=>(0,p.jsxs)(l.default.Fragment,{children:[(0,p.jsx)("span",{className:"font-normal",children:t}),r<(e?.effects?.length||0)-1&&(0,p.jsx)("span",{className:"product-card-text-color",children:"•"})]},t))}):(0,p.jsx)("div",{className:"flex items-center justify-center gap-1 text-xs min-h-[20px]"}),i&&(0,p.jsx)("h3",{className:"text-base md:text-xl font-bold product-card-text-color uppercase leading-tight",children:e?.name}),n&&e?.category&&(0,p.jsx)("p",{className:"text-xs md:text-sm product-card-category-badge-color font-normal",children:e?.category?.replace(/_/g," ")}),(0,p.jsxs)("div",{className:"flex items-center justify-center flex-wrap gap-2 pt-2",children:[u&&e?.strainType&&(0,p.jsx)("div",{className:"rounded-lg px-3 py-1 flex-shrink-0 product-card-strain-badge-bg-color",children:(0,p.jsx)("span",{className:"md:text-xs text-xs font-medium product-card-strain-badge-color",children:e?.strainType})}),(0,C.formatePotency)(e?.potencyThc)&&(0,p.jsx)("div",{className:"product-card-potency-badge-bg-color rounded px-2 py-0.5 md:rounded-lg md:px-3 md:py-1",children:(0,p.jsxs)("span",{className:"text-xs md:text-xsfont-medium product-card-potency-badge-color whitespace-nowrap",children:["THC: ",(0,C.formatePotency)(e?.potencyThc)]})}),(0,C.formatePotency)(e?.potencyCbd)&&(0,p.jsx)("div",{className:"product-card-potency-badge-bg-color rounded px-2 py-0.5 md:rounded-lg md:px-3 md:py-1",children:(0,p.jsxs)("span",{className:"text-xs md:text-xsfont-medium product-card-potency-badge-color whitespace-nowrap",children:["CBD: ",(0,C.formatePotency)(e?.potencyCbd)]})})]})]})]})}],459813);var S=e.i(811328);e.s(["default",0,({product:e,brand:r,selectedCategory:a,selectedSpecial:s,cardFieldVisibilityObject:o,priority:d=!1})=>{let{productCardSettings:c}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:i=!1,isShowcaseCategoryEnabled:n=!1,isShowcaseStrainTypeEnabled:u=!1}=o??{},{handleRouteChange:b}=(0,S.default)({product:e,brand:r,selectedCategory:a,selectedSpecial:s}),j=(0,f.default)().isMobile;return(0,p.jsxs)("div",{className:"relative h-full rounded-xl bg-white overflow-hidden shadow-lg w-full min-h-[300px] md:min-
44h-[420px] before:absolute before:inset-0  before:z-[1] flex flex-col items-end showcase-product-card-five-overlay",children:[c?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,c?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:c?.newProductTagBgColor||"#76d145",color:c?.newProductTagTextColor||"#ffffff"},className:"absolute right-4 top-4 rounded-full px-3 py-1 text-xs font-semibold w-14 h-14 flex items-center justify-center z-10 shadow-lg",children:(0,p.jsx)("span",{className:"text-sm font-bold text-center",children:c?.newProductTagTitle||"New"})}),(0,p.jsx)("div",{className:"absolute inset-0 top-0 left-0 bottom-0 right-0 w-full h-full flex items-center justify-center",children:(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 280px, 340px",quality:90,priority:d,className:"object-cover w-full h-full drop-shadow-2xl",imgixParams:{w:j?280:340,h:j?280:340,auto:"format,compress"}})}),(0,p.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-6 space-y-3 z-[2] mt-auto",children:[n&&(0,p.jsx)("p",{className:"text-base md:text-xl font-semibold product-card-category-badge-color ",children:e?.category?.replace(/_/g," ")}),i&&(0,p.jsx)("h3",{className:"text-xl md:text-3xl font-extrabold product-card-text-color leading-tight uppercase",children:e?.name}),(0,p.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[u&&e?.strainType&&(0,p.jsx)("span",{className:"inline-block text-xs font-extrabold product-card-strain-badge-color uppercase",children:e?.strainType}),u&&e?.strainType&&e?.effects?.length>0&&(0,p.jsx)("span",{className:"inline-block w-1.5 h-1.5 product-card-effects-badge-bg-color rounded-full"}),e?.effects?.map((e,t)=>(0,p.jsx)(l.Fragment,{children:(0,p.jsx)("span",{className:"inline-block text-xs font-extrabold product-card-effects-badge-color uppercase",children:e})},t))]}),(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>b(`/product/${e?.slug}`),type:"button",className:"w-fit mt-4 inline-flex items-center justify-center gap-2 rounded-lg border !border-[var(--product-add-to-cart-button-text-color)] px-3 md:px-8 py-3 text-sm font-bold focus:outline-none bg-[var(--product-add-to-cart-button-background-color)] text-[var(--product-add-to-cart-button-text-color)]",children:[(0,p.jsx)(m.Plus,{size:14,weight:"bold"}),"Explore Product"]})]})]})}],647299),e.s(["default",0,({product:e,brand:r,selectedCategory:a,selectedSpecial:s,cardFieldVisibilityObject:o})=>{let d=(0,f.default)().isMobile,{productCardSettings:c}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:i=!1,isShowcaseCategoryEnabled:n=!1,isShowcaseStrainTypeEnabled:u=!1}=o??{},{handleRouteChange:b}=(0,S.default)({product:e,brand:r,selectedCategory:a,selectedSpecial:s});return(0,p.jsxs)("div",{className:"relative md:grid md:grid-cols-12 md:items-center justify-between rounded-xl shadow-lg overflow-hidden w-full p-2 md:p-4 product-card-background-color product-card-border-color ",children:[(0,p.jsxs)("div",{className:"flex items-center gap-2 md:gap-6 md:col-span-10",children:[(0,p.jsxs)("div",{className:"relative w-24 h-24 md:w-56 md:h-56 rounded-xl flex-shrink-0",children:[c?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,c?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:c?.newProductTagBgColor||"#76d145",color:c?.newProductTagTextColor||"#ffffff"},className:"absolute left-2 top-2 md:left-4 md:top-4 rounded-full px-2 py-1 md:px-3 md:py-1 text-xs font-semibold w-8 h-8 md:w-14 md:h-14 flex items-center justify-center z-10 shadow-lg",children:(0,p.jsx)("span",{className:"text-[10px] md:text-sm font-bold text-center",children:c?.newProductTagTitle||"New"})}),(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:224,height:224,sizes:"(max-width: 768px) 96px, 224px",quality:90,className:"object-contain w-full h-full",imgixParams:{w:d?96:224,h:d?96:224,auto:"format,compress"}})]}),(0,p.jsxs)("div",{className:"flex-1 space-y-0.5 md:space-y-2 min-w-0",children:[n&&e?.category&&(0,p.jsx)("p",{className:"text-xs md:text-base font-semibold product-card-category-badge-color tracking-wide line-clamp-1",children:e?.category?.replace(/_/g," ")}),i&&(0,p.jsx)("h3",{className:"text-sm md:text-3xl font-extrabold product-card-text-color leading-tight uppercase line-clamp-2",children:e?.name}),(0,p.jsxs)("div",{className:"flex flex-wrap items-center gap-1 md:gap-1.5",children:[u&&e?.strainType&&(0,p.jsx)("span",{className:"inline-block text-[10px] md:text-sm font-extrabold product-card-strain-badge-color uppercase",children:e?.
44strainType}),u&&e?.strainType&&e?.effects?.length>0&&(0,p.jsx)("span",{className:"inline-block w-1.5 h-1.5 product-card-text-color-like-background rounded-full"}),e?.effects?.map((t,r)=>(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)("span",{className:"inline-block text-[10px] md:text-sm font-extrabold product-card-effects-badge-color uppercase",children:t}),r<(e?.effects?.length||0)-1&&(0,p.jsx)("span",{className:"inline-block w-1 h-1 md:w-1.5 md:h-1.5 product-card-text-color-like-background rounded-full"})]},r))]}),(0,p.jsx)("div",{className:"md:hidden flex-shrink-0 pt-1",children:(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>b(`/product/${e?.slug}`),type:"button",className:"inline-flex items-center justify-center gap-1 rounded-full px-3 py-1.5 text-[10px] font-bold transition-colors whitespace-nowrap product-add-to-cart-button-color",children:[(0,p.jsx)(m.Plus,{size:10,weight:"bold"}),!!c?.productCardAddToCartLabel?.length&&c.productCardAddToCartLabel]})})]})]}),(0,p.jsx)("div",{className:"hidden md:block md:col-span-2",children:(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>b(`/product/${e?.slug}`),type:"button",className:"inline-flex items-center justify-center gap-2 rounded-full px-4 md:px-8 py-2.5 md:py-3 text-xs md:text-sm font-bold transition-colors whitespace-nowrap product-add-to-cart-button-color",children:[(0,p.jsx)(m.Plus,{size:d?14:16,weight:"bold"}),!!c?.productCardAddToCartLabel?.length&&c.productCardAddToCartLabel]})})]})}],604777);var P=e.i(666645);e.s(["default",0,({product:e,brand:r,selectedCategory:a,selectedSpecial:l,cardFieldVisibilityObject:s,priority:o=!1})=>{let d=(0,f.default)().isMobile,{productCardSettings:c}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:i=!1,isShowcaseStrainTypeEnabled:n=!1}=s??{},{handleRouteChange:u}=(0,S.default)({product:e,brand:r,selectedCategory:a,selectedSpecial:l});return(0,p.jsxs)("div",{className:"relative h-full rounded-2xl overflow-hidden shadow-md w-full mx-auto flex flex-col\n    product-card-background-color border product-card-border-color\n    product-card-shadow-color\n    ",children:[(0,p.jsxs)("div",{className:"relative bg-gray-50 rounded-2xl m-4 mb-0 overflow-hidden aspect-square flex items-center justify-center",children:[c?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,c?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:c?.newProductTagBgColor||"#76d145",color:c?.newProductTagTextColor||"#ffffff"}
44,className:"absolute right-4 top-4 rounded-lg bg-black px-4 py-1.5 text-xs font-semibold text-white z-10 shadow-md",children:c?.newProductTagTitle||"New"}),(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 280px, 340px",quality:90,priority:o,className:"object-contain w-full h-full",imgixParams:{w:d?280:340,h:d?280:340,auto:"format,compress"}})]}),(0,p.jsxs)("div",{className:"p-6 space-y-4 flex-1 flex flex-col",children:[n&&e?.strainType&&e?.strainType.length>0&&(0,p.jsxs)("div",{className:"flex items-center gap-1.5 w-fit product-card-strain-badge-bg-color rounded-md py-1 px-2",children:[(0,p.jsx)(P.Leaf,{size:16,weight:"fill",className:"product-card-strain-badge-color"}),(0,p.jsx)("span",{className:"text-sm font-medium product-card-strain-badge-color",children:e?.strainType})]}),i&&(0,p.jsx)("h3",{className:"text-2xl font-bold product-card-text-color leading-tight",children:e?.name}),e?.shortDescription&&(0,p.jsx)("div",{className:"text-sm product-card-text-color flex-1 line-clamp-3 text-editorDetails",dangerouslySetInnerHTML:{__html:e?.shortDescription}}),(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>u(`/product/${e?.slug}`),type:"button",className:"w-full mt-auto inline-flex items-center justify-center gap-2 rounded-md bg-blue-600 hover:bg-blue-700 px-2 py-3.5 text-sm font-semibold text-white focus:outline-none transition-colors product-add-to-cart-button-color",children:[(0,p.jsx)(m.Plus,{size:18,weight:"bold"}),"Learn More"]})]})]})}],479031),e.s(["default",0,({product:e,brand:r,selectedCategory:a,selectedSpecial:l,cardFieldVisibilityObject:s})=>{let o=(0,f.default)().isMobile,{productCardSettings:d}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:c=!1,isShowcaseStrainTypeEnabled:i=!1}=s??{},{handleRouteChange:n}=(0,S.default)({product:e,brand:r,selectedCategory:a,selectedSpecial:l});return(0,p.jsxs)("div",{className:"relative md:flex items-center justify-between rounded-2xl shadow-sm overflow-hidden w-full p-2 md:p-4 product-card-background-color border product-card-border-color ",children:[(0,p.jsxs)("div",{className:"flex items-center gap-2 md:gap-6",children:[(0,p.jsxs)("div",{className:"relative w-24 h-28 md:w-56 md:h-56 rounded-xl flex-shrink-0",children:[d?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,d?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:d?.newProductTagBgColor||"#76d145",color:d?.newProductTagTextColor||"#ffffff"},className:"absolute right-1.5 top-1.5 md:right-3 md:top-3 rounded-lg px-1.5 py-0.5 md:px-3 md:py-1 text-[10px] md:text-xs font-semibold z-10 shadow-md",children:d?.newProductTagTitle||"New"}),(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:224,height:224,sizes:"(max-width: 768px) 96px, 224px",quality:90,className:"object-contain w-full h-full",imgixParams:{w:o?96:224,h:o?96:224,auto:"format,compress"}})]}),(0,p.jsxs)("div",{className:"flex-1 space-y-0.5 md:space-y-2 min-w-0",children:[i&&e?.strainType&&(0,p.jsxs)("div",{className:"flex items-center gap-1 product-card-strain-badge-bg-color rounded-lg px-2 py-1 md:gap-1.5 w-fit",children:[(0,p.jsx)(P.Leaf,{size:o?12:16,weight:"fill",className:"product-card-strain-badge-color flex-shrink-0"}),(0,p.jsx)("span",{className:"text-xs md:text-sm font-medium product-card-strain-badge-color",children:e?.strainType})]}),c&&(0,p.jsx)("h3",{className:"text-sm md:text-2xl font-bold product-card-text-color leading-tight line-clamp-2",children:e?.name}),e?.shortDescription&&(0,p.jsx)("div",{className:"text-[10px] md:text-sm product-card-text-color line-clamp-2 text-editorDetails",dangerouslySetInnerHTML:{__html:e?.shortDescription}}),(0,p.jsx)("div",{className:"md:hidden flex-shrink-0 pt-1",children:(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>n(`/product/${e?.slug}`),type:"button",className:"inline-flex items-center justify-center gap-1 rounded-full px-3 py-1.5 text-[10px] font-semibold transition-colors whitespace-nowrap product-add-to-cart-button-color",children:[(0,p.jsx)(m.Plus,{size:10,weight:"bold"}),!!d?.productCardAddToCartLabel?.length&&d.productCardAddToCartLabel]})})]})]}),(0,p.jsx)("div",{className:"hidden md:block flex-shrink-0",children:(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>n(`/product/${e?.slug}`),type:"button",className:"inline-flex items-center justify-center gap-2 rounded-full px-8 py-3.5 text-sm font-semibold transition-colors whitespace-nowrap product-add-to-cart-button-color",children:[(0,p.jsx)(m.Plus,{size:14,weight:"bold"}),!!d?.productCardAddToCartLabel?.length&&d.productCardAddToCartLabel]})})]})}],623313);var k=e.i(137963);e.s(["default",0,({product:e,brand:r,selectedCategory:a,selectedSpecial:s,cardFieldVisibilityObject:o})=>{let d=(0,f.default)().isMobile,[c,i]=(0,l.useState)(!1),[n,u]=(0,l.useState)(!1),m=(0,l.useRef)(null),{productCardSettings:b,commonCMSData:j}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:w=!1,isShowcaseCategoryEnabled:y=!1,isShowcaseStrainTypeEnabled:v=!1}=o??{},{}=(0,S.default)({product:e,brand:r,selectedCategory:a,selectedSpecial:s});return(0,l.useEffect)(()=>{m.current&&(c&&n?m.current.play().catch(e=>{console.error("Video play failed:",e)}):(m.current.pause(),m.current.currentTime=0))},[c,n]),(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,className:"overflow-hidden rounded-xl p-3 w-full flex flex-col shadow-md product-card-background-color border product-card-border-color h-full",children:[(0,p.jsx)("div",{className:"flex items-start justify-between mb-2",children:b?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,b?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:b?.newProductTagBgColor||"#76d145",color:b?.newProductTagTextColor||"#ffffff"},className:"w-10 h-10 md:w-12 md:h-12 rounded-full flex items-center justify-center shadow-sm",children:(0,p.jsx)("span",{className:"text-[9px] md:text-[10px] font-bold",children:b?.newProductTagTitle||"New"})})}),(0,p.jsx)("div",{className:"rounded-xl  flex items-center justify-center p-2 md:p-2 h-[180px] md:h-[250px] overflow-hidden mb-2",style:{backgroundColor:(0,k.convertHEXToRGBA)(j?.generalSettingsComponentUiData?.productCardTextColor,.1)??(0,k.convertHEXToRGBA)("#F3F4F60D",.1)},children:(0,p.jsx)("div",{className:"relative w-full h-full transition-transform duration-500 ease-in-out group-hover:scale-110 overflow-hidden",children:(0,p.jsx)(x.default,{src:e.image||"",alt:e.name||"Product Image Alt",title:e.name||"Product",width:340,height:340,quality:95,className:"object-contain w-full h-full",imgixParams:{w:d?280:340,h:d?280:340,auto:"format,compress"}})})}),(0,p.jsxs)("div",{className:"space-y-2.5 md:space-y-4",children:[w&&(0,p.jsx)("h3",{className:"text-base md:text-xl font-bold product-card-text-color leading-tight",children:e.name}),(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[y&&e.category&&(0,p.jsx)("div",{className:"rounded-md product-card-category-badge-bg-color px-3 py-0.5 flex items-center justify-center",children:(0,p.jsx)("span",{className:"text-xs font-medium product-card-category-badge-color leading-none flex items-center justify-center py-1",children:e.category.replace(/_/g," ")})}),v&&e.strainType&&(0,p.jsx)("div",{className:"rounded-md product-card-strain-badge-bg-color px-3 py-0.5 flex items-center justify-center",children:(0,p.jsx)("span",{className:"text-xs font-medium product-card-strain-badge-color leading-none flex items-center justify-center py-1",children:e.strainType})})]}),e.effects&&e.effects.length>0&&(0,p.jsx)("p",{className:"text-xs md:text-sm product-card-strain-badge-color font-normal",children:e.effects.join(", ")})]})]})}],390809);var T=e.i(293437);e.s(["default",0,({product:e,brand:r,selectedCategory:a,selectedSpecial:s,cardFieldVisibilityObject:o})=>{let d=(0,f.default)().isMobile,[c,i]=(0,l.useState)(!1),[n,u]=(0,l.useState)(!1),m=(0,l.useRef)(null),{productCardSettings:b}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:j=!1,isShowcaseCategoryEnabled:w=!1,isShowcaseStrainTypeEnabled:y=!1}=o??{},{handleRouteChange:v}=(0,S.default)({product:e,brand:r,selectedCategory:a,selectedSpecial:s});return(0,l.useEffect)(()=>{m.current&&(c&&n?m.current.play().catch(e=>{console.error("Video play failed:",e)}):(m.current.pause(),m.current.currentTime=0))},[c,n]),(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>v(`/product/${e?.slug}`),className:"relative flex items-center rounded-xl shadow-lg overflow-hidden w-full product-card-background-color border product-card-border-color ",children:[(0,p.jsxs)("div",{className:"relative w-24 h-32 md:w-56 md:h-56 flex-shrink-0 overflow-hidden cursor-pointer group",onMouseEnter:()=>{e?.videos?.[0]?.url&&i(!0)},onMouseLeave:()=>i(!1),children:[(0,p.jsx)("div",{className:`absolute inset-0 w-full h-full flex items-center justify-center transition-opacity duration-300 ${c&&n?"o
44pacity-0":"opacity-100"}`,children:(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:224,height:300,sizes:"(max-width: 768px) 96px, 224px",quality:90,className:"object-contain w-full h-full",imgixParams:{w:d?96:224,h:d?200:300,auto:"format,compress",fit:"crop"}})}),(0,p.jsx)("div",{className:`absolute inset-0 w-full h-full flex items-center justify-center transition-opacity duration-300 ${c&&n?"opacity-100":"opacity-0"}`,children:(0,p.jsxs)("video",{ref:m,className:"object-cover w-full h-full",muted:!0,loop:!0,playsInline:!0,preload:"auto",onCanPlay:()=>u(!0),children:[(0,p.jsx)("source",{src:e?.videos?.[0]?.url||"",type:"video/mp4"}),"Your browser does not support the video tag."]})}),!c&&e?.videos?.[0]?.url&&(0,p.jsx)("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:(0,p.jsx)("div",{className:"w-10 h-10 md:w-16 md:h-16 rounded-full bg-white/90 backdrop-blur-sm flex items-center justify-center shadow-lg transform transition-transform group-hover:scale-110",children:(0,p.jsx)(T.Play,{size:d?20:28,weight:"fill",className:"text-gray-900 ml-0.5"})})})]}),(0,p.jsxs)("div",{className:"flex-1 space-y-2 min-w-0 p-3 md:p-4",children:[b?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,b?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:b?.newProductTagBgColor||"#76d145",color:b?.newProductTagTextColor||"#ffffff"},className:"inline-block rounded-md px-3 py-1",children:(0,p.jsx)("span",{className:"text-xs font-bold text-center",children:b?.newProductTagTitle||"New"})}),j&&(0,p.jsx)("h3",{className:"text-base md:text-3xl font-bold product-card-text-color leading-tight line-clamp-2",children:e?.name}),(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[w&&e.category&&(0,p.jsx)("div",{className:"rounded-md product-card-category-badge-bg-color px-3 py-0.5 flex items-center justify-center",children:(0,p.jsx)("span",{className:"text-xs font-medium product-card-category-badge-color",children:e.category.replace(/_/g," ")})}),y&&e.strainType&&(0,p.jsx)("div",{className:"rounded-md product-card-strain-badge-bg-color px-3 py-0.5 flex items-center justify-center",children:(0,p.jsx)("span",{className:"text-xs font-medium product-card-strain-badge-color",children:e.strainType})})]}),e.effects&&e.effects.length>0&&(0,p.jsx)("p",{className:"text-xs md:text-sm product-card-strain-badge-color font-normal",children:e.effects.join(", ")})]})]})}],978622),e.s(["default",0,({product:e,brand:r,selectedCategory:a,selectedSpecial:l,cardFieldVisibilityObject:s})=>{let o=(0,f.default)().isMobile,{productCardSettings:d}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:c=!1,isShowcaseCategoryEnabled:i=!1,isShowcaseStrainTypeEnabled:n=!1}=s??{},{handleRouteChange:u}=(0,S.default)({product:e,brand:r,selectedCategory:a,selectedSpecial:l});return(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>u(`/product/${e?.slug}`),className:"relative py-4 h-full border overflow-hidden shadow-md w-full mx-auto flex flex-col px-3 product-card-background-color product-card-border-color rounded-md",children:[d?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,d?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:d?.newProductTagBgColor||"#76d145",color:d?.newProductTagTextColor||"#ffffff"},className:"absolute right-8 top-8 w-11 h-11 flex items-center justify-center rounded-full px-4 py-1.5 text-xs font-semibold z-10 shadow-md",children:(0,p.jsx)("span",{className:"text-xs font-semibold text-center",children:d?.newProductTagTitle||"New"})}),(0,p.jsx)("div",{className:"relative overflow-hidden aspect-square flex items-center justify-center rounded-full",children:(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 280px, 340px",quality:90,className:"object-cover w-full h-full",imgixParams:{w:o?280:340,h:o?280:340,auto:"format,compress"}})}),(0,p.jsxs)("div",{className:"p-2 md:p-6 space-y-3 flex-1 flex flex-col items-center text-center",children:[e?.effects&&e?.effects?.length>0&&(0,p.jsx)("div",{className:"text-xs md:text-sm product-card-effects-badge-color",children:e?.effects.join(" • ")}),c&&(0,p.jsx)("h3",{className:"text-base md:text-2xl font-bold product-card-text-color leading-tight",children:e?.name}),i&&e?.category&&(0,p.jsx)("p",{className:"text-xs md:text-sm product-card-category-badge-color",children:e?.category?.replace(/_/g," ")}),(0,p.jsxs)("div",{className:"flex items-center justify-center flex-wrap gap-3 pt-2",children:[n&&e?.strainType&&(0,p.jsx)("div",{className:"product-card-strain-badge-bg-color roun
44ded-lg py-1.5 px-2",children:(0,p.jsx)("span",{className:"text-xs md:text-sm font-semibold product-card-strain-badge-color",children:e?.strainType})}),(0,C.formatePotency)(e?.potencyThc)&&(0,p.jsx)("div",{className:"rounded-lg py-1.5 px-4 product-card-potency-badge-bg-color",children:(0,p.jsxs)("span",{className:"text-sm font-semibold product-card-potency-badge-color",children:["THC: ",(0,C.formatePotency)(e?.potencyThc)]})}),(0,C.formatePotency)(e?.potencyCbd)&&(0,p.jsx)("div",{className:"rounded-lg py-1.5 px-4 product-card-potency-badge-bg-color",children:(0,p.jsxs)("span",{className:"text-sm font-semibold product-card-potency-badge-color",children:["CBD: ",(0,C.formatePotency)(e?.potencyCbd)]})})]})]})]})}],563743),e.s(["default",0,({product:e,brand:r,selectedCategory:a,selectedSpecial:l,cardFieldVisibilityObject:s})=>{let o=(0,f.default)().isMobile,{productCardSettings:d}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:c=!1,isShowcaseCategoryEnabled:i=!1,isShowcaseStrainTypeEnabled:n=!1}=s??{},{handleRouteChange:u}=(0,S.default)({product:e,brand:r,selectedCategory:a,selectedSpecial:l});return(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>u(`/product/${e?.slug}`),className:"relative md:flex items-center justify-between shadow-md overflow-hidden w-full p-2 md:p-4 product-card-background-color product-card-border-color rounded-md border",children:[(0,p.jsxs)("div",{className:"flex items-center gap-2 md:gap-6",children:[(0,p.jsx)("div",{className:"relative w-24 h-24 md:w-56 md:h-56 rounded-full flex-shrink-0 overflow-hidden",children:(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:224,height:224,sizes:"(max-width: 768px) 96px, 224px",quality:90,className:"object-cover w-full h-full",imgixParams:{w:o?96:224,h:o?96:224,auto:"format,compress"}})}),(0,p.jsxs)("div",{className:"flex-1 space-y-0.5 md:space-y-2 min-w-0",children:[e?.effects&&e?.effects.length>0&&(0,p.jsx)("div",{className:"text-xs md:text-sm product-card-effects-badge-color line-clamp-1",children:e?.effects.join(" • ")}),c&&(0,p.jsx)("h3",{className:"text-sm md:text-2xl font-bold product-card-text-color leading-tight line-clamp-2",children:e?.name}),i&&e?.category&&(0,p.jsx)("p",{className:"text-[10px] md:text-sm product-card-category-badge-color line-clamp-2",children:e?.category?.replace(/_/g," ")}),(0,p.jsxs)("div",{className:"flex items-center gap-1 md:gap-2 flex-wrap md:hidden pt-1",children:[d?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,d?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:d?.newProductTagBgColor||"#76d145",color:d?.newProductTagTextColor||"#ffffff"},className:"w-7 h-7 flex items-center justify-center rounded-full text-[10px] font-semibold text-white shadow-md flex-shrink-0",children:(0,p.jsx)("span",{className:"text-[10px] font-semibold text-white text-center",children:d?.newProductTagTitle||"New"})}),n&&e?.strainType&&(0,p.jsx)("div",{className:"product-card-strain-badge-bg-color rounded px-2 py-0.5",children:(0,p.jsx)("span",{className:"text-[10px] font-semibold product-card-strain-badge-color",children:e?.strainType})})]})]})]}),(0,p.jsxs)("div",{className:"hidden md:flex items-center gap-3",children:[d?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,d?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:d?.newProductTagBgColor||"#76d145",color:d?.newProductTagTextColor||"#ffffff"},className:"w-11 h-11 flex items-center justify-center rounded-full px-3 py-1 text-xs font-semibold text-white z-10 shadow-md",children:(0,p.jsx)("span",{className:"text-xs font-semibold text-white text-center",children:d?.newProductTagTitle||"New"})}),(0,p.jsxs)("div",{className:"flex items-center flex-wrap gap-3 pt-1",children:[n&&e?.strainType&&(0,p.jsx)("div",{className:"product-card-strain-badge-bg-color rounded-lg py-1 px-2",children:(0,p.jsx)("span",{className:"text-xs md:text-sm font-semibold product-card-strain-badge-color",children:e?.strainType})}),(0,C.formatePotency)(e?.potencyThc)&&(0,p.jsx)("div",{className:"rounded-lg py-1.5 px-4 product-card-potency-badge-bg-color",children:(0,p.jsxs)("span",{className:"text-xs md:text-sm font-semibold product-card-potency-badge-color",children:["THC: ",(0,C.formatePotency)(e?.potencyThc)]})}),(0,C.formatePotency)(e?.potencyCbd)&&(0,p.jsx)("div",{className:"rounded-lg py-1.5 px-4 product-card-potency-badge-bg-color",children:(0,p.jsxs)("span",{className:"text-xs md:text-sm font-semibold product-card-potency-badge-color",children:["CBD: ",(0,C.formatePotency)(e?.potencyCbd)]})})]})]})]})}],209718),e.s(["default",0,({product:e,brand:r,selectedCategory:a,selectedSpecial:s,cardFieldVisibilityObject:o})=>{let d=(0,f.default)().isMobile,{productCardSettings:c,commonCMSData:i}=(0,t.useGlobalStore)(),{isShowcaseTitleEnabled:n=!1,isShowcaseCategoryEnabled:u=!1}=o??{},{handleRouteChange:m}=(0,S.default)({product:e,brand:r,selectedCategory:a,selectedSpecial:s});return(0,p.jsxs)("div",{className:"group overflow-hidden rounded-2xl w-full flex flex-col shadow-lg relative p-3 md:p-5 product-card-background-color product-card-border-color border h-full",children:[c?.isNewProductEnabled&&(0,h.isNewProduct)(e?.createdAt,c?.newProductEnabledDuration)&&(0,p.jsx)("div",{style:{backgroundColor:c?.newProductTagBgColor||"#76d145",color:c?.newProductTagTextColor||"#ffffff"},className:"rounded-md px-3 py-1 w-fit mb-2",children:(0,p.jsx)("span",{className:"text-xs md:text-sm font-medium",children:c?.newProductTagTitle||"New"})}),(0,p.jsxs)("div",{className:"relative rounded-xl  flex items-center justify-center p-2 h-[180px] md:h-[230px] overflow-h mb-2",style:{backgroundColor:(0,k.convertHEXToRGBA)(i?.generalSettingsComponentUiData?.productCardTextColor,.05)??(0,k.convertHEXToRGBA)("#F3F4F60D",.05)},children:[(0,p.jsx)("div",{className:"relative w-full h-full transition-transform duration-500 ease-in-out group-hover:scale-110 flex items-center justify-center",children:(0,p.jsx)(x.default,{src:e.image||"",alt:e.name||"Product Image Alt",title:e.name||"Product",width:340,height:340,quality:95,className:"object-contain w-full h-full drop-shadow-2xl",imgixParams:{w:d?280:340,h:d?280:340,auto:"format,compress"}})}),(0,p.jsx)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-center p-4 opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out pointer-events-none group-hover:pointer-events-auto",children:(0,p.jsx)(g.default,{href:`/product/${e.slug}`,onClick:()=>m(`/product/${e.slug}`),className:" w-full text-center bg-blue-600 hover:bg-blue-700 text-white font-semibold px-6 md:px-8 py-2.5 rounded-lg shadow-lg transform transition-all duration-300 text-sm product-add-to-cart-button-color inline-block",children:"Learn More"})})]}),(0,p.jsxs)("div",{className:"space-y-2",children:[u&&e.category&&(0,p.jsx)("div",{children:(0,p.jsx)("span",{className:"text-sm md:text-base font-medium product-card-category-badge-color",children:e.category?.replace(/_/g," ")})}),n&&(0,p.jsx)("h3",{className:"text-lg md:text-2xl font-bold product-card-text-color leading-tight",children:e.name}),(0,p.jsx)("div",{className:"flex flex-wrap items-center gap-1 md:gap-1.5",children:e.effects?.map((t,r)=>(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)("span",{className:"inline-block text-[10px] md:text-sm font-medium product-card-effects-badge-color",children:t}),r<(e.effects?.length||0)-1&&(0,p.jsx)("span",{className:"inline-block w-1 h-1 md:w-1.5 md:h-1.5 rounded-full product-card-effects-badge-bg-color"})]},r))})]})]})}],490057),e.s(["default",0,({product:e,brand:t,selectedCategory:r,selectedSpecial:a,cardFieldVisibilityObject:l})=>{let s=(0,f.default)().isMobile,{isShowcaseTitleEnabled:o=!1,isShowcaseCategoryEnabled:d=!1,isShowcaseStrainTypeEnabled:c=!1}=l??{},{handleRouteChange:i}=(0,S.default)({product:e,brand:t,selectedCategory:r,selectedSpecial:a});return(0,p.jsxs)(g.default,{href:`/product/${e?.slug}`,onClick:()=>i(`/product/${e?.slug}`),className:"relative overflow-hidden rounded-xl w-full p-2 md:p-5 grid grid-cols-1 md:grid-cols-12 items-center gap-3 md:gap-8 product-card-background-color border product-card-border-color shadow-md",children:[(0,p.jsxs)("div",{className:"flex flex-row items-center gap-2 md:gap-8 w-full md:w-auto md:col-span-8 md:border-r max-sm:border-b product-card-border-color max-sm:pb-2",children:[(0,p.jsx)("div",{className:"relative rounded-xl flex items-center justify-center w-24 h-24 md:w-56 md:h-56 flex-shrink-0",children:(0,p.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:200,height:200,sizes:"(max-width: 768px) 96px, 160px",quality:90,className:"object-contain w-full h-full",imgixParams:{w:s?96:160,h:s?96:160,auto:"format,compress"}})}),(0,p.jsxs)("div",{className:"flex-1 space-y-0.5 md:space-y-2 min-w-0",children:[c&&e?.strainType&&e?.strainType.length>0&&(0,p.jsx)("div",{className:"flex items-center gap-1 text-xs md:text-sm product-card-strain-badge-color line-clamp-1",children:(0,p.jsx)("span",{className:"font-normal",children:e?.
44strainType})}),o&&(0,p.jsx)("h3",{className:"text-sm md:text-xl font-bold product-card-text-color leading-tight line-clamp-2",children:e?.name}),d&&e?.category&&(0,p.jsx)("p",{className:"text-[10px] md:text-sm product-card-category-badge-color line-clamp-1",children:e?.category?.replace(/_/g," ")})]})]}),(0,p.jsx)("div",{className:"flex flex-row gap-1 md:gap-1 flex-wrap md:col-span-4",children:e?.effects&&e?.effects.length>0&&e?.effects.map((e,t)=>(0,p.jsx)("div",{className:"rounded px-2 py-0.5 md:rounded-lg md:px-3 md:py-1 product-card-effects-badge-bg-color",children:(0,p.jsx)("span",{className:"text-[10px] md:text-sm font-medium product-card-effects-badge-color",children:e})},"effect-"+t))})]})}],583292)},84197,e=>{"use strict";var t=e.i(843476);e.s(["default",0,function({showPriceRange:e,variantPriceRange:r,specialPrice:a,normalPrice:l,priceClassName:s="custom-price",strikeClassName:o="line-through text-secondary_text custom-strike-price"}){return e&&r?(0,t.jsx)("span",{className:s,children:r}):null!=a&&null!=l&&a.toFixed(2)!==l.toFixed(2)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:s,children:["$",a.toFixed(2)]}),(0,t.jsxs)("span",{className:o,children:["$",l.toFixed(2)]})]}):null!=a?(0,t.jsxs)("span",{className:s,children:["$",a.toFixed(2)]}):(0,t.jsxs)("span",{className:s,children:["$",null!=l?l.toFixed(2):"0.00"]})}])},167988,e=>{"use strict";var t=e.i(843476),r=e.i(505539),a=e.i(258288),l=e.i(368799),s=e.i(522016),o=e.i(618566),d=e.i(271645),c=e.i(174080),i=e.i(374060),n=e.i(701973),u=e.i(24633),p=e.i(533007),m=e.i(826086),x=e.i(710793),f=e.i(199854),h=e.i(137963),g=e.i(687274),b=e.i(323389),j=e.i(331991),w=e.i(815330),y=e.i(616647),v=e.i(958088),N=e.i(386892),C=e.i(250359),S=e.i(969816),P=e.i(84197);e.s(["default",0,({product:e,isSaveForLaterPage:k,brand:T,isSwipeCard:E=!1,setSwipeCardSelectedVariant:F,selectedFirstWeight:A,selectedCategory:D={},selectedSpecial:L={},onClick:V,onAddToCart:R,isSponsored:M,isSurfside:$=!1,specialUnlockSlug:B="",priority:H=!1})=>{let{setIsQuickViewOpen:X,setQuickModalProduct:O}=(0,l.useModalStore)(),[W,_]=(0,d.useState)(!1),[z,Y]=(0,d.useState)(!1),[I,U]=(0,d.useState)(!1),{handleAddToCart:G,setCurrentBrand:Z,setCurrentCategory:q,setCurrentSpecial:Q}=(0,r.default)(),J=(0,o.usePathname)(),{setRouteLoader:K,menuType:ee,productCardSettings:et}=(0,a.useGlobalStore)(),er=(0,o.useRouter)(),ea=(0,o.useSearchParams)(),el=(0,f.default)().isMobile,[es,eo]=(0,d.useState)(!1),ed=(0,d.useRef)(null),ec=(0,d.useRef)(null),[ei,en]=(0,d.useState)(null),[eu,ep]=(0,d.useState)(0),[em,ex]=(0,d.useState)(null),[ef,eh]=(0,d.useState)(null),[eg,eb]=(0,d.useState)(null),ej=ea?.get("specialSlug")?ea?.get("specialSlug"):B,ew=ej&&"all"!==ej?e?.specials?.find(e=>e.urlSlug===ej)?.name:e?.specials?.[0]?.name,ey=ej&&"all"!==ej?ej:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:ev}=(0,m.default)({specialName:ew,specialSlug:ey});function eN(e){return"RECREATIONAL"==ee?e?.priceRec:e?.priceMed}function eC(e){return"RECREATIONAL"==ee?e?.specialPriceRec:e?.specialPriceMed}function eS(e){if(e==J)return!1;K(!0),er.push(e)}function eP(e){return(0,t.jsx)("p",{className:"font-semibold text-sm md:text-[18px]",children:(0,u.formatWeight)(e?.option)})}function ek(e){eh(eN(e)),eb(eC(e)),ex(e),F&&F(e),eo(!1)}let eT=(0,d.useCallback)(()=>{if(!ed.current)return;let e=ed.current.getBoundingClientRect();(0!==e.width||0!==e.height)&&en({top:e.top,left:e.left,width:e.width})},[]);(0,d.useLayoutEffect)(()=>es?(eT(),window.addEventListener("scroll",eT,!0),window.addEventListener("resize",eT),()=>{window.removeEventListener("scroll",eT,!0),window.removeEventListener("resize",eT)}):void en(null),[es,eT]);let eE=`v2grid-variant-${e?.id||e?.productId||e?.slug}`;(0,d.useEffect)(()=>{if(!e?.variants?.length)return;let t=e?.variants,r=void 0!==A&&t?.find(e=>e?.option===A)||t?.[0];eh(eN(r)),eb(eC(r)),ex(r),F&&F(r)},[e,A]),(0,d.useEffect)(()=>{let e,t;e=0,t=0,ep(Math.round(t="RECREATIONAL"==ee&&em?.specialPriceRec?((e=em?.priceRec)-em?.specialPriceRec)/e*100:em?.specialPriceMed?((e=em?.priceMed)-em?.specialPriceMed)/e*100:0))},[em]),(0,d.useEffect)(()=>{J&&(/^\/brands\/[^/]+$/.test(J)&&(_(!0),Z(T)),/^\/category\/[^/]+$/.test(J)&&(Y(!0),q(D)),(/^\/deals-collection\/[^/]+$/.test(J)||/^\/search\/deals\/[^/?]+(?:\?.*)?$/.test(J))&&(U(!0),Q(L))
44)},[J,T?.brandId,D?.categoryName,L?.specialId]);let eF=(0,y.useProductStock)({product:e,selectedVariantOption:em?.option??""}),{showVariantSelector:eA,showPriceRange:eD,variantPriceRange:eL}=(0,S.default)(e);return(0,t.jsxs)("div",{onClick:()=>V?.(),className:(0,h.cn)(E?"px-2 md:px-5 py-3.5 rounded-md duration-500 cursor-pointer relative drop-shadow-sm md:min-h-[630px] h-full product-card-background-color product-card-border-color w-full":"product-card-background-color relative product-card-shadow-color rounded-lg border product-card-border-color flex flex-col h-full min-h-[440px] md:min-h-[646px] w-full"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1 mt-2 absolute top-1.5 left-1.5 z-[1] ml-2",children:[eu>0&&(0,t.jsx)("div",{className:" _button_input w-fit flex items-center gap-1 md:gap-1 md:px-4 py-2 p-1 rounded-full pd_batch_color",children:(0,t.jsxs)("p",{children:[eu,"% Off"]})}),et?.isNewProductEnabled&&(0,n.isNewProduct)(e?.createdAt,et?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"_button_input w-full flex items-center justify-center gap-1 md:gap-1 md:px-4 py-2 p-1 rounded-full",style:{backgroundColor:et?.newProductTagBgColor||"#76d145",color:et?.newProductTagTextColor||"#ffffff"},children:(0,t.jsx)("span",{children:et?.newProductTagTitle||"New"})})]}),(0,t.jsxs)("div",{className:"relative w-full h-40 md:h-80",children:[(0,t.jsx)(s.default,{className:(0,h.cn)(E&&"pointer-events-none"),href:`/product/${e?.slug}`,onClick:()=>eS(`/product/${e?.slug}`),children:(0,t.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",quality:80,priority:H,className:"object-contain w-full h-full rounded-t-lg",imgixParams:{w:el?250:340,h:el?250:340,auto:"format,compress"}})}),(0,t.jsxs)("div",{className:"absolute top-3 md:top-5 right-3 md:right-5 space-y-3",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(b.default,{onOpen:()=>{O(e),X(!0)}})}),(0,t.jsx)(g.default,{product:e})]})]}),(0,t.jsxs)("div",{className:"p-2 md:p-4",children:[e?.brand?.name?.length>0&&(0,t.jsx)("p",{className:"text-[9px] md:text-sm font-medium product-card-discount-tag-color",children:(0,n.makeTitleCase)(e?.brand?.name)}),(0,t.jsx)(s.default,{href:`/product/${e?.slug}`,onClick:()=>eS(`/product/${e?.slug}`),className:"text-[11px] md:text-lg font-semibold md:leading-tight h-9 md:h-11 line-clamp-2 product-card-text-color",children:e?.name}),e?.strainType&&e?.strainType!="NOT_APPLICABLE"?(0,t.jsx)("p",{className:"text-[8px] md:text-sm font-medium leading-6 product-card-text-color",children:(0,n.makeTitleCase)(e?.strainType)}):(0,t.jsx)("p",{className:"text-[8px] md:text-sm font-medium leading-6 product-card-text-color-transparent",children:"."}),(eA||e?.potencyThc?.formatted||e?.potencyCbd?.formatted)&&(0,t.jsx)("hr",{className:"my-2"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[8px] md:text-xs font-medium product-card-text-color",children:[eA&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"font-bold",children:[e?.variants?.length," Variants Available"]})," ",(e?.potencyThc?.formatted||e?.potencyCbd?.formatted)&&(0,t.jsx)(t.Fragment,{children:"|"})]}),(0,t.jsxs)("span",{children:[e?.potencyThc?.formatted&&(0,t.jsxs)(t.Fragment,{children:["THC: ",e?.potencyThc?.formatted]}),e?.potencyThc?.formatted&&e?.potencyCbd?.formatted&&(0,t.jsx)(t.Fragment,{children:"-"}),e?.potencyCbd?.formatted&&(0,t.jsxs)(t.Fragment,{children:["CBD: ",e?.potencyCbd?.formatted]})]})]}),(eA||e?.potencyThc?.formatted||e?.potencyCbd?.formatted)&&(0,t.jsx)("hr",{className:"my-2"}),(0,t.jsxs)("div",{className:"flex items-center justify-between space-x-1 md:space-x-2",children:[eA?(0,t.jsx)("div",{className:"flex items-center w-full",children:(0,t.jsx)(i.default,{enabled:es,onClickOutside:()=>eo(!1),additionalRefs:[ec],children:(0,t.jsxs)("div",{className:"relative mt-1",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsxs)("button",{ref:ed,type:"button",onClick:()=>{eo(e=>{let t=!e;return t&&requestAnimationFrame(()=>eT()),t})},className:"p-2 rounded-lg flex justify-start md:justify-center text-xs md:text-[18px] leading-tight items-center gap-1 text md:text-2xl font-semibold product-card-text-color",children:[eP(em),es?(0,t.jsx)(j.CaretUp,{className:"transition-all"}):(0,t.jsx)(w.CaretDown,{className:"rotate-180 transition-all"})]})}),(()=>{if(!es||!ei||"u"<typeof document)return null;let r=Math.max(ei.width,280),a=window.innerWidth-r-16,l=Math.max(16,Math.min(ei.left,a));return c.default.createPortal((0,t.jsx)("div",{ref:ec,className:"fixed z-[9999] min-w-[280px] rounded-xl border border-gray-200 bg-white px-3 py-3 shadow-lg",style:{left:l,width:r,top:ei.top,transform:"translateY(calc(-100% - 8px))"},onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:(0,t.jsx)("div",{className:"max-h-[250px] overflow-y-auto sb",children:e?.variants?.map((r,a)=>{let l=r?.id===em?.id;return(0,t.jsx)("div",{role:"button",tabIndex:0,onClick:()=>ek(r),onKeyDown:e=>
44{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),ek(r))},className:(0,h.cn)("my-1 cursor-pointer rounded-lg p-2 transition-colors",l?"bg-gray-100":"hover:bg-gray-50"),children:(0,t.jsxs)("label",{className:"relative flex w-full cursor-pointer items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,t.jsx)("input",{type:"radio",name:eE,value:JSON.stringify(r),checked:l,readOnly:!0,className:"pointer-events-none h-4 w-4 shrink-0 accent-gray-900"}),(0,t.jsx)("span",{className:"min-w-0 whitespace-nowrap text-sm font-medium text-primary_text",children:eP(r)})]}),(0,t.jsx)(v.default,{count:(0,N.getVariantStockCount)(e,r?.option),className:"shrink-0 whitespace-nowrap"})]})},"prd-variant"+a)})})}),document.body)})()]})})}):(0,t.jsx)(t.Fragment,{children:"N/A"!==(0,u.formatWeight)(em?.option)&&e?.category!=="EDIBLES"&&(0,t.jsx)("div",{className:"flex items-center w-full",children:(0,t.jsx)("p",{className:"text-sm md:text-lg font-semibold mt-3 product-card-text-color",style:{marginLeft:"0px"},children:(0,u.formatWeight)(em?.option)})})}),(0,t.jsx)("div",{className:"text-sm font-medium product-card-text-color w-full",children:(0,t.jsx)("p",{className:`${e?.variants?.length===1&&e?.category==="EDIBLES"?"text-left":eA||e?.category!=="EDIBLES"?"text-right":"text-left"} text-base md:text-2xl product-card-text-color font-bold mt-2`,style:{marginLeft:"0px"},children:(0,t.jsx)(P.default,{showPriceRange:eD,variantPriceRange:eL,specialPrice:eg,normalPrice:ef,priceClassName:"custom-price leading-tight",strikeClassName:"line-through text-secondary_text custom-strike-price"})})})]}),(0,t.jsx)(v.default,{count:eF,className:"mb-2"}),(0,t.jsx)(p.default,{product:e,cardNo:"two"})]}),E?(0,t.jsx)("div",{className:"grid grid-cols-1 mt-auto",children:(0,t.jsx)(s.default,{href:`/product/${e.slug}`,className:"w-full whitespace-nowrap rounded-full text-sm font-medium px-6 py-2.5 secondary-button-hover text-center",children:"See Details"})}):(0,t.jsx)(t.Fragment,{children:k?(0,t.jsx)("div",{className:"relative",onClick:()=>{R?.(),G(e?.id||e?.productId,em?.option,e,1,!0,!1,!1,!1,{specialName:ew,specialSlug:ey},ev())},children:(0,t.jsx)("div",{className:"mt-auto p-2 w-full",children:(0,t.jsx)("button",{className:"w-full text-[10px] md:text-sm bg-gray-50 border border-gray-300 font-medium py-2 rounded-full hover:bg-gray-100 transition duration-150",children:"Move to Cart"})})}):(0,t.jsx)("div",{className:"relative mt-auto",children:(0,t.jsx)("div",{className:"mt-auto px-4 pb-5 w-full",children:(0,t.jsx)(C.default,{onAction:async()=>{R?.(),await G(e?.id||e?.productId,em?.option,e,1,!1,W,z,I,{specialName:ew,specialSlug:ey},ev())},className:"w-full text-[10px] md:text-sm border border-gray-300 font-medium py-2 rounded-full hover:bg-gray-100 transition duration-150 product-add-to-cart-button-color",children:"Add to cart"})})})}),(0,t.jsx)("div",{className:`flex-shrink-0 h-6 md:h-6 flex items-center h-6 ${$?"block":"hidden"}`,children:M?(0,t.jsx)("div",{className:"text-[12px] product-card-text-color capitalize text-center w-full mb-2",children:"Sponsored"}):(0,t.jsx)("div",{"aria-hidden":!0,className:"w-full"})})]})}])},642624,e=>{"use strict";var t=e.i(843476),r=e.i(505539),a=e.i(258288),l=e.i(368799),s=e.i(24633),o=e.i(522016),d=e.i(618566),c=e.i(271645),i=e.i(991844),n=e.i(514760),u=e.i(199854),p=e.i(533007),m=e.i(826086),x=e.i(710793),f=e.i(14754),h=e.i(555897),g=e.i(687274),b=e.i(25652),j=e.i(958088),w=e.i(616647),y=e.i(969816),v=e.i(84197);e.s(["default",0,({product:e,brand:N={},selectedFirstWeight:C,selectedCategory:S={},selectedSpecial:P={},onClick:k,onAddToCart:T,specialUnlockSlug:E=""})=>{let{setIsQuickViewOpen:F,setQuickModalProduct:A}=(0,l.useModalStore)(),D=(0,u.default)().isMobile,[L,V]=(0,c.useState)(null),[R,M]=(0,c.useState)(null),[$,B]=(0,c.useState)(null),[H,X]=(0,c.useState)(!1),[O,W]=(0,c.useState)(!1),[_,z]=(0,c.useState)(!1),[Y,I]=(0,c.useState)(0),U=t=>{A(e),F(t)},{handleAddToCart:G,setCurrentBrand:Z,setCurrentCategory:q,setCurrentSpecial:Q}=(0,r.default)(),J=(0,d.useSearchParams)(),K=J?.get("specialSlug")?J?.get("specialSlug"):E,ee=K&&"all"!==K?e?.specials?.find(e=>e.urlSlug===K)?.name:e?.specials?.[0]?.name,et=K&&"all"!==K?K:e?.specials?.[0]?.urlSlug,{shouldSetCartOpen:er}=(0,m.default)({specialName:ee,specialSlug:et}),ea=e?.variants?.map((e,r)=>({value:e.specialPriceRec&&e.specialPriceRec.toFixed(2)!==e.priceRec?.toFixed(2)?e.
44specialPriceRec.toFixed(2):e.priceRec?.toFixed(2),label:e.specialPriceRec&&e.specialPriceRec.toFixed(2)!==e.priceRec?.toFixed(2)?(0,t.jsxs)(t.Fragment,{children:["$",e.specialPriceRec.toFixed(2),(0,t.jsxs)("span",{className:"line-through mx-1 text-[8px] md:text-xs text-red-500",children:["$",e.priceRec?.toFixed(2)]},"line-through"+r),"/ ",e.option]}):(0,t.jsxs)(t.Fragment,{children:["$",e.priceRec?.toFixed(2)," / ",e.option]}),isSpecial:!!e.specialPriceRec})),[el,es]=(0,c.useState)(ea?.[0]),eo=(0,d.usePathname)(),{setRouteLoader:ed}=(0,a.useGlobalStore)(),ec=(0,d.useRouter)();function ei(e){if(e==eo)return!1;ed(!0),ec.push(e)}let en=(0,w.useProductStock)({product:e,selectedVariantOption:L?.option??""}),{showVariantSelector:eu,showPriceRange:ep,variantPriceRange:em}=(0,y.default)(e);return(0,c.useEffect)(()=>{if(!e?.variants?.length)return;let t=e?.variants,r=void 0!==C&&t?.find(e=>e?.option===C)||t?.[0];M(r?.priceRec),B(r?.specialPriceRec),V(r)},[e,C]),(0,c.useEffect)(()=>{eo&&(/^\/brands\/[^/]+$/.test(eo)&&(X(!0),Z(N)),/^\/category\/[^/]+$/.test(eo)&&(W(!0),q(S)),(/^\/deals-collection\/[^/]+$/.test(eo)||/^\/search\/deals\/[^/?]+(?:\?.*)?$/.test(eo))&&(z(!0),Q(P)))},[eo,N?.brandId,S?.categoryName,P?.specialId]),(0,c.useEffect)(()=>{if(el){let t=parseFloat(el.value),r=e?.variants?.find(e=>e?.priceRec==t||e?.specialPriceRec==t),a=r?.priceRec,l=r?.specialPriceRec;l?I(()=>Math.round((a-l)/a*100)):I(0)}},[el]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{onClick:()=>k?.(),className:"grid grid-cols-12 rounded-md border product-card-border-color primary-border-hover product-card-background-color duration-500 cursor-pointer px-2 py-2 md:py-3 md:px-6 gap-2",children:[(0,t.jsxs)("div",{className:"col-span-5 md:col-span-3 relative",children:[(0,t.jsx)(f.default,{product:e,className:"inline-block"}),(0,t.jsx)(o.default,{href:`/product/${e?.slug}`,onClick:()=>ei(`/product/${e?.slug}`),children:(0,t.jsx)(x.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 250px, 340px",quality:80,className:"w-full h-[182px] md:h-[236px] object-contain",imgixParams:{w:D?250:340,h:D?250:340,auto:"format,compress"}})}),(0,t.jsx)("div",{className:"absolute top-8 left-0",children:(0,t.jsx)("div",{className:"flex flex-col gap-2",children:Y>0&&(0,t.jsx)("div",{className:" _button_input w-fit flex items-center gap-1 md:gap-1 md:px-4 md:py-2 px-3 py-1 rounded-full mt-1 pd_batch_color",children:(0,t.jsxs)("p",{children:[Y,"%"]})})})})]}),(0,t.jsxs)("div",{className:"col-span-7 md:col-span-9",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:items-start justify-between",children:[(0,t.jsx)("div",{className:"w-full md:w-[80%]",children:(0,t.jsx)(o.default,{href:`/product/${e?.slug}`,onClick:()=>ei(`/product/${e?.slug}`),children:(0,t.jsx)("p",{className:"text-xs md:text-2xl font-semibold leading-[18px] md:leading-[36px] product-card-text-color line-clamp-2",children:e?.name})})}),(0,t.jsx)("p",{className:"text-xs md:text-base font-medium leading-[18px] md:leading-[24px] py-2 product-card-discount-tag-color",children:e?.brand?.name})]}),(0,t.jsxs)("p",{className:"text-[10px] md:text-base leading-[12px] md:leading-[24px] product-card-text-color font-medium md:font-normal",children:[(0,t.jsxs)("strong",{children:[e?.strainType==="NOT_APPLICABLE"?"":e?.strainType," "]}),e?.potencyThc?.formatted&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{children:"THC : "}),(0,t.jsxs)("span",{className:"product-card-text-color font-normal",children:[e?.potencyThc?.formatted," "]})]}),e?.potencyCbd?.formatted&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{children:"CBD : "}),(0,t.jsx)("span",{className:"product-card-text-color font-normal",children:e?.potencyCbd?.formatted})]})]}),eu&&(0,t.jsx)("p",{className:"text-[10px] leading-[12px] md:leading-[21px] md:text-sm product-card-discount-tag-color mt-[6px] md:mt-2 mb-3",children:e?.variants?.length>0?`${e?.variants?.length} ${e?.variants?.length>1?"Variants":"Variant"} Available`:"No Variant Available"}),(0,t.jsx)("div",{className:"flex justify-start mb-2",children:(0,t.jsx)(j.default,{count:en,className:"mt-1"})}),eu?(0,t.jsx)("div",{className:"flex flex-wrap gap-x-2 gap-y-[6px] md:block",children:e?.variants?.map((e,r)=>(0,t.jsx)("button",{onClick:()=>{M(e?.priceRec),B(e?.specialPriceRec),V(e)},className:`mx-1 w-[36px] md:w-[48px] h-[36px] md:h-[48px] rounded-full text-xs md:text-sm leading-3 cursor-pointer ${L?.option===e?.option?"fill-button":"outlined-button-hover"} md:p-2 text-[11px] md:text-base min-w-[33px] md:min-w-[40px]`,children:(0,s.formatWeight)(e.option)},"variant-prd"+r))}):(0,t.jsx)(t.Fragment,{children:"N/A"!==(0,s.formatWeight)(e?.variants?.[0]?.option)&&e?.category!="EDIBLES"&&(0,t.jsx)("div",{className:"flex flex-wrap gap-x-2 gap-y-[6px] md:block",children:e?.variants?.map((e,r)=>(0,t.jsx)("button",{onClick:()=>{M(e?.priceRec),B(e?.specialPriceRec),V(e)},className:`mx-1 w-[36px] md:w-[48px] h-[36px] md:h-[48px] rounded-full text-xs md:text-sm leading-3 cursor-pointer ${L?.option===e?.option?"fill-button":"outlined-button-hover"} md:p-2 text-[11px] md:text-base min-w-[33px] md:min-w-[40px]`,children:(0,s.formatWeight)(e.option)},"variant-prd"+r))})}),(0,t.jsx)("p",{className:"product-card-text-color mt-3 custom-price",style:{marginLeft:"0px"},children:(0,t.jsx)(v.default,{showPriceRange:ep,variantPriceRange:em,specialPrice
44:$,normalPrice:R,priceClassName:"product-card-text-color word-break-all",strikeClassName:"line-through product-card-text-color word-break-all custom-strike-price"})}),D&&(0,t.jsx)(p.default,{product:e,cardNo:"one"}),(0,t.jsxs)("div",{className:"flex items-center justify-between mt-3",children:[!D&&(0,t.jsx)(p.default,{product:e,cardNo:"one"}),(0,t.jsxs)("div",{className:"hidden md:flex items-center gap-5",children:[(0,t.jsx)(n.default,{ariaLabel:"Add to Cart",tooltip:"Add to Cart",className:"w-[40px] h-[40px] rounded-full product-add-to-cart-button-color",onAction:async()=>{T?.(),await G(e?.id||e?.productId,L?.option,e,1,!1,H,O,_,{specialName:ee,specialSlug:et},er())},children:(0,t.jsx)(b.Handbag,{className:"text-xl"})}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(i.default,{position:"top",content:"Quick look",children:(0,t.jsx)("div",{className:"hover:bg-gray-100 hover:rounded-lg p-2 flex items-center justify-center product-card-text-color hover:text-gray-900",children:(0,t.jsx)(h.Eye,{className:"md:size-[24px] size-[16px]  cursor-pointer",onClick:()=>U(!0)})})})}),(0,t.jsx)(g.default,{product:e})]})]}),(0,t.jsxs)("div",{className:"flex md:hidden justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex justify-start items-center gap-2",children:[(0,t.jsxs)("div",{className:"has-tooltip relative",children:[(0,t.jsxs)("div",{className:"border border-[#34A203] text-center tooltip rounded shadow-lg p-1 bg-gray-100 text-[#057A55] -mt-[26px] text-sm absolute -top-2 left-1/2 right-1/2 -translate-x-1/2 w-[70px]",children:[(0,t.jsx)("span",{className:" text-xs whitespace-nowrap text-gray-600",children:"Quck view"}),(0,t.jsx)("span",{className:"w-[10px] h-[10px] clipping-path bg-primary absolute bottom-[-11px] right-1/2 left-1/2 -translate-x-1/2"})]}),(0,t.jsx)("div",{className:" border border-gray-200 rounded-full p-2 outlined-button-hover",children:(0,t.jsx)(h.Eye,{weight:"fill",className:" md:text-2xl text-base cursor-pointer ",onClick:()=>U(!0)})})]}),(0,t.jsx)(g.default,{product:e,menuAlign:"left",className:"border border-gray-200 rounded-full p-2 outlined-button-hover bg-transparent",iconClassName:"!size-auto md:text-2xl text-base"})]}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)(n.default,{ariaLabel:"Add to Cart",tooltip:"Add to Cart",className:"md:w-[40px] w-[35px] md:h-[40px] h-[35px] rounded-full product-add-to-cart-button-color md:mr-0 mr-4",onAction:async()=>{T?.(),await G(e?.id||e?.productId,L?.option,e,1,!1,H,O,_,{specialName:ee,specialSlug:et},er())},children:(0,t.jsx)(b.Handbag,{className:"md:text-xl text-base"})})})]})]})]})})}])},780953,904843,366450,28181,175514,821220,732606,410125,53062,704,458464,755309,968371,280808,370418,960606,813387,435930,873837,421945,974003,111258,545433,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(710793),l=e.i(199854),s=e.i(838013),o=e.i(522016),d=e.i(811328),c=e.i(701973),i=e.i(258288),n=e.i(559252);e.s(["default",0,({product:e,brand:u,selectedCategory:p,selectedSpecial:m,cardFieldVisibilityObject:x})=>{let f=(0,l.default)().isMobile,{productCardSettings:h}
44=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:g=!1,isShowcaseCategoryEnabled:b=!1,isShowcaseStrainTypeEnabled:j=!1}=x??{},{handleRouteChange:w}=(0,d.default)({product:e,brand:u,selectedCategory:p,selectedSpecial:m});return(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-2xl w-full grid grid-cols-12 gap-1 md:gap-4 placeholder:shadow-lg product-card-background-color product-card-border-color shadow-md product-card-border-color border h-full",children:[(0,t.jsxs)("div",{className:"relative w-full flex-shrink-0 before:absolute before:inset-0 showcase-product-card-ten-overlay before:z-[1] flex items-center justify-center col-span-5",children:[h?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,h?.newProductEnabledDuration)&&(0,t.jsx)("div",{style:{backgroundColor:h?.newProductTagBgColor||"#76d145",color:h?.newProductTagTextColor||"#ffffff"},className:"absolute right-2 top-2 md:right-3 md:top-3 rounded-md px-3 py-0.5 z-[2]",children:(0,t.jsx)("span",{className:"text-xs font-semibold text-center",children:h?.newProductTagTitle||"New"})}),(0,t.jsx)("div",{className:"relative w-full h-full flex items-center justify-center",children:(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:200,height:200,sizes:"(max-width: 768px) 128px, 160px",quality:90,className:"object-cover w-full h-full",imgixParams:{w:f?128:160,h:f?128:160,auto:"format,compress"}})})]}),(0,t.jsxs)("div",{className:"flex-1 p-3 md:p-4 flex flex-col justify-between col-span-7",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[e?.effects&&e?.effects.length>0&&(0,t.jsx)("div",{className:"flex items-center flex-wrap gap-1.5 text-xs",children:e.effects.map((a,l)=>(0,t.jsxs)(r.default.Fragment,{children:[(0,t.jsx)("span",{className:"font-medium product-card-effects-badge-color",children:a}),l<(e.effects?.length||0)-1&&(0,t.jsx)("span",{className:"product-card-text-color",children:"•"})]},a))}),g&&(0,t.jsx)("h2",{className:"text-sm md:text-lg font-bold product-card-text-color leading-tight line-clamp-2",children:e?.name}),b&&e?.category&&(0,t.jsx)("p",{className:"text-xs product-card-category-badge-color font-normal line-clamp-1",children:e?.category?.replace(/_/g," ")}),(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-2",children:[j&&e?.strainType&&(0,t.jsx)("div",{className:"text-xs md:text-xs font-medium product-card-strain-badge-bg-color rounded-md px-2 py-1",children:(0,t.jsx)("p",{className:" product-card-strain-badge-color",children:e?.strainType})}),(0,n.formatePotency)(e?.potencyThc)&&(0,t.jsxs)("span",{className:"text-xs md:text-sm font-semibold product-card-potency-badge-color",children:["THC: ",(0,n.formatePotency)(e?.potencyThc)]}),(0,n.formatePotency)(e?.potencyCbd)&&(0,t.jsxs)("span",{className:"text-xs md:text-sm font-semibold product-card-potency-badge-color",children:["CBD: ",(0,n.formatePotency)(e?.potencyCbd)]})]})]}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>w(`/product/${e?.slug}`),className:"w-full product-add-to-cart-button-color font-semibold text-xs md:text-xs py-1 md:py-2.5 px-2 rounded-lg transition-colors duration-200 flex items-center justify-center gap-1.5",children:[(0,t.jsx)(s.Plus,{size:14,weight:"bold"}),(0,t.jsx)("span",{children:"Learn More"})]})})]})]})}],780953),e.s(["default",0,({product:e,brand:u,selectedCategory:p,selectedSpecial:m,cardFieldVisibilityObject:x})=>{let f=(0,l.default)().isMobile,{productCardSettings:h}
44=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:g=!1,isShowcaseCategoryEnabled:b=!1,isShowcaseStrainTypeEnabled:j=!1}=x??{},{handleRouteChange:w}=(0,d.default)({product:e,brand:u,selectedCategory:p,selectedSpecial:m});return(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-2xl w-full grid grid-cols-12 items-center justify-between gap-3  shadow-lg product-card-background-color product-card-border-color border min-h-[110px]",children:[(0,t.jsxs)("div",{className:"col-span-8 grid grid-cols-12 items-center gap-4",children:[(0,t.jsxs)("div",{className:"relative col-span-5 md:col-span-3 flex-shrink-0 before:absolute before:inset-0 showcase-product-card-ten-overlay before:z-[1] flex items-center justify-center",children:[h?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,h?.newProductEnabledDuration)&&(0,t.jsx)("div",{style:{backgroundColor:h?.newProductTagBgColor||"#76d145",color:h?.newProductTagTextColor||"#ffffff"},className:"absolute right-2 top-2 md:right-3 md:top-3 rounded-md px-3 py-0.5 z-[2]",children:(0,t.jsx)("span",{className:"text-xs font-semibold text-center",children:h?.newProductTagTitle||"New"})}),(0,t.jsx)("div",{className:"relative w-24 h-32 md:w-full md:h-full flex items-center justify-center",children:(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:256,height:256,sizes:"(max-width: 768px) 96px, 160px",quality:90,className:"object-cover w-full h-full",imgixParams:{w:f?96:160,h:f?96:160,auto:"format,compress"}})})]}),(0,t.jsx)("div",{className:"md:col-span-9 col-span-7 flex-1",children:(0,t.jsxs)("div",{className:"space-y-1 md:space-y-2",children:[e.effects&&e?.effects.length>0&&(0,t.jsx)("div",{className:"flex items-center gap-1.5 text-xs product-card-effects-badge-color",children:e.effects.map((a,l)=>(0,t.jsxs)(r.default.Fragment,{children:[(0,t.jsx)("span",{className:"font-medium product-card-effects-badge-color",children:a}),l<(e.effects?.length||0)-1&&(0,t.jsx)("span",{className:"product-card-text-color",children:"•"})]},a))}),g&&(0,t.jsx)("h2",{className:"text-sm md:text-lg font-bold product-card-text-color leading-tight line-clamp-2",children:e?.name}),b&&e?.category&&(0,t.jsx)("p",{className:"text-xs product-card-category-badge-color font-normal line-clamp-1",children:e?.category?.replace(/_/g," ")}),(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[j&&e?.strainType&&(0,t.jsx)("div",{className:"text-xs md:text-xs font-medium product-card-strain-badge-bg-color rounded-md px-2 py-1",children:(0,t.jsx)("p",{className:" product-card-strain-badge-color",children:e?.strainType})}),(0,n.formatePotency)(e?.potencyThc)&&(0,t.jsxs)("span",{className:"text-xs md:text-sm font-semibold product-card-potency-badge-color",children:["THC: ",(0,n.formatePotency)(e?.potencyThc)]}),(0,n.formatePotency)(e?.potencyCbd)&&(0,t.jsxs)("span",{className:"text-xs md:text-sm font-semibold product-card-potency-badge-color",children:["CBD: ",(0,n.formatePotency)(e?.potencyCbd)]})]})]})})]}),(0,t.jsx)("div",{className:"pr-2 md:pr-4 col-span-4 flex items-center justify-end",children:(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>w(`/product/${e?.slug}`),className:"product-add-to-cart-button-color font-semibold rounded-lg transition-colors duration-200 inline-flex items-center justify-center gap-2 px-2 md:px-4 py-2 md:py-2.5",children:[(0,t.jsx)(s.Plus,{size:f?14:18,weight:"bold",className:"shrink-0"}),!!h?.productCardAddToCartLabel?.length&&(0,t.jsx)("span",{className:"inline text-[10px] md:text-sm font-semibold whitespace-nowrap",children:h.productCardAddToCartLabel})]})})]})}],904843),e.s(["default",0,({product:e,brand:r,selectedCategory:s,selectedSpecial:o,cardFieldVisibilityObject:n})=>{let u=(0,l.default)().isMobile,{productCardSettings:p}=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:m=!1,isShowcaseCategoryEnabled:x=!1,isShowcaseStrainTypeEnabled:f=!1}=n??{},{}=(0,d.default)({product:e,brand:r,selectedCategory:s,selectedSpecial:o});return(0,t.jsxs)("div",{className:"group showcase-product-card-eleven-gradient-bg-color overflow-hidden rounded-2xl w-full flex flex-col relative p-5 md:p-6 shadow-xl hover:shadow-2xl transition-all duration-300 h-full",children:[p?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,p?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"flex items-center gap-2 mb-4",children:(0,t.jsx)("div",{style:{backgroundColor:p?.newProductTagBgColor||"#76d145",color:p?.newProductTagTextColor||"#ffffff"}
44,className:"w-fit rounded-lg  px-3 py-1 flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-xs md:text-sm font-semibold",children:p?.newProductTagTitle||"New"})})}),(0,t.jsx)("div",{className:"relative bg-slate-700/50 rounded-2xl overflow-hidden mb-5 flex items-center justify-center min-h-[150px] md:min-h-[180px] max-h-[180px] md:max-h-[270px]",children:(0,t.jsx)("div",{className:"relative w-full p-3 md:p-3",children:(0,t.jsx)(a.default,{src:e.image||"",alt:e.name||"Product Image Alt",title:e.name||"Product",width:300,height:300,sizes:"(max-width: 640px) 250px, 300px",quality:95,className:"object-contain w-full h-full transform group-hover:scale-105 transition-transform duration-500",imgixParams:{w:u?250:300,h:u?250:300,auto:"format,compress"}})})}),(0,t.jsxs)("div",{className:"space-y-2.5 md:space-y-4",children:[m&&(0,t.jsx)("h3",{className:"text-base md:text-xl font-bold product-card-text-color leading-tight",children:e?.name}),(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[x&&(0,t.jsx)("div",{className:"rounded-md product-card-category-badge-bg-color px-3 py-0.5 flex-shrink-0",children:(0,t.jsx)("span",{className:"text-xs font-medium product-card-category-badge-color",children:e?.category?.replace(/_/g," ")})}),f&&e?.strainType&&(0,t.jsx)("div",{className:"rounded-md product-card-strain-badge-bg-color px-3 py-0.5 flex-shrink-0",children:(0,t.jsx)("span",{className:"text-xs font-medium product-card-strain-badge-color",children:e?.strainType})})]}),e?.effects&&e?.effects.length>0&&(0,t.jsx)("p",{className:"text-xs md:text-sm product-card-effects-badge-color font-normal flex-shrink-0",children:e?.effects.join(", ")})]})]})}],366450),e.s(["default",0,({product:e,brand:r,selectedCategory:s,selectedSpecial:n,cardFieldVisibilityObject:u})=>{let p=(0,l.default)().isMobile,{productCardSettings:m}=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:x=!1,isShowcaseCategoryEnabled:f=!1,isShowcaseStrainTypeEnabled:h=!1}=u??{},{handleRouteChange:g}=(0,d.default)({product:e,brand:r,selectedCategory:s,selectedSpecial:n});return(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>g(`/product/${e?.slug}`),className:"group showcase-product-card-eleven-gradient-bg-color overflow-hidden rounded-xl w-full flex items-center justify-between gap-3 md:gap-6 relative p-3 md:p-5 shadow-lg",children:[(0,t.jsx)("div",{className:"relative w-[120px] sm:w-[140px] md:w-[180px] lg:w-[200px] shrink-0",children:(0,t.jsx)("div",{className:"relative bg-slate-700/50 rounded-xl overflow-hidden h-full flex items-center justify-center min-h-[120px] sm:min-h-[140px] md:min-h-[180px]",children:(0,t.jsx)("div",{className:"relative w-full p-3 md:p-2",children:(0,t.jsx)(a.default,{src:e.image||"",alt:e.name||"Product Image Alt",title:e.name||"Product",width:200,height:200,sizes:"(max-width: 640px) 120px, (max-width: 768px) 140px, (max-width: 1024px) 180px, 200px",quality:95,className:"object-cover w-full h-full drop-shadow-2xl",imgixParams:{w:p?120:200,h:p?120:200,auto:"format,compress"}})})})}),(0,t.jsx)("div",{className:"flex-1 flex flex-col justify-center min-w-0",children:(0,t.jsxs)("div",{className:"space-y-1 md:space-y-2",children:[x&&(0,t.jsx)("h3",{className:"text-base md:text-xl lg:text-2xl font-bold product-card-text-color leading-tight line-clamp-2",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 md:gap-2 flex-wrap",children:[f&&(0,t.jsx)("div",{className:"rounded-md product-card-category-badge-bg-color px-2 md:px-3 py-0.5",children:(0,t.jsx)("span",{className:"text-[10px] md:text-xs font-medium product-card-category-badge-color",children:e?.category?.replace(/_/g," ")})}),h&&e?.strainType&&(0,t.jsx)("div",{className:"rounded-md product-card-strain-badge-bg-color px-2 md:px-3 py-0.5",children:(0,t.jsx)("span",{className:"text-[10px] md:text-xs font-medium product-card-strain-badge-color",children:e?.strainType})})]}),e?.effects&&e?.effects.length>0&&(0,t.jsx)("p",{className:"text-[10px] md:text-sm product-card-effects-badge-color font-normal line-clamp-1",children:e?.effects.join(", ")})]})}
44),m?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,m?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)("div",{style:{backgroundColor:m?.newProductTagBgColor||"#76d145",color:m?.newProductTagTextColor||"#ffffff"},className:"w-fit rounded-lg  px-2 md:px-3 py-0.5 md:py-1 flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-[10px] md:text-sm font-semibold max-h-[20px]",children:m?.newProductTagTitle||"New"})})})]})}],28181);var u=e.i(575108),p=e.i(462653);let m=r.forwardRef((e,t)=>r.createElement(u.default,{ref:t,...e,weights:p.default}));m.displayName="LeafIcon";var x=e.i(137963);e.s(["default",0,({product:e,brand:r,selectedCategory:s,selectedSpecial:u,cardFieldVisibilityObject:p})=>{let f=(0,l.default)().isMobile,{productCardSettings:h,commonCMSData:g}=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:b=!1,isShowcaseStrainTypeEnabled:j=!1}=p??{},{handleRouteChange:w}=(0,d.default)({product:e,brand:r,selectedCategory:s,selectedSpecial:u});return(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>w(`/product/${e?.slug}`),className:"group relative overflow-hidden rounded-2xl w-full flex flex-col p-6 md:p-7 shadow-md h-full",style:{background:g?.generalSettingsComponentUiData?.productCardBgColor?(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBgColor,.25):"rgba(71, 85, 105, 0.25)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",border:g?.generalSettingsComponentUiData?.productCardBorderColor?`1px solid ${(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBorderColor,.3)}`:"1px solid rgba(255, 255, 255, 0.1)"},children:[(0,t.jsx)("div",{className:"flex items-center mb-3",children:h?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,h?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"w-fit rounded-lg px-3 py-1.5 flex items-center justify-center",style:{backgroundColor:h?.newProductTagBgColor||"#76d145",color:h?.newProductTagTextColor||"#ffffff",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:"1px solid rgba(255, 255, 255, 0.18)"},children:(0,t.jsx)("span",{className:"text-xs md:text-sm font-medium ",children:h?.newProductTagTitle||"New"})})}),(0,t.jsx)("div",{className:"relative rounded-2xl overflow-hidden mb-6 flex items-center justify-center min-h-[180px] md:min-h-[180px] max-h-[180px] md:max-h-[270px]",style:{background:g?.generalSettingsComponentUiData?.productCardBgColor?(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBgColor,.05):"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:g?.generalSettingsComponentUiData?.productCardBorderColor?`1px solid ${(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBorderColor,.08)}`:"1px solid rgba(255, 255, 255, 0.08)"},children:(0,t.jsx)("div",{className:"relative w-full p-4",children:(0,t.jsx)(a.default,{src:e.image||"",alt:e.name||"Product Image Alt",title:e.name||"Product",width:300,height:300,sizes:"(max-width: 640px) 250px, 300px",quality:95,className:"object-contain w-full h-full transform group-hover:scale-105 transition-transform duration-500",imgixParams:{w:f?250:300,h:f?250:300,auto:"format,compress"}})})}),(0,t.jsxs)("div",{className:"space-y-4",children:[b&&(0,t.jsx)("h3",{className:"text-lg md:text-xl font-bold product-card-text-color leading-tight line-clamp-2",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-2",children:[j&&e?.strainType&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)(m,{weight:"regular",size:18,className:"product-card-strain-badge-color flex-shrink-0"}),(0,t.jsx)("span",{className:"text-xs font-medium product-card-strain-badge-color flex-shrink-0",children:e.strainType})]}),(0,n.formatePotency)(e?.potencyThc)&&(0,t.jsxs)(t.Fragment,{children:[e?.strainType&&(0,t.jsx)("div",{className:"h-3 md:h-5 w-px product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-xs font-medium product-card-potency-badge-color flex-shrink-0",children:["THC: ",(0,n.formatePotency)(e?.potencyThc)]})]}),(0,n.formatePotency)(e?.potencyCbd)&&(0,t.jsxs)(t.Fragment,{children:[((0,n.formatePotency)(e?.potencyThc)||e.strainType)&&(0,t.jsx)("div",{className:"h-3 md:h-5 w-px product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-xs font-medium product-card-potency-badge-color flex-shrink-0",children:["CBD: ",(0,n.formatePotency)(e?.potencyCbd)]})]})]}),e?.effects&&e?.effects.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 pt-1",children:e?.effects.map((e,r)=>(0,t.jsx)("div",{className:"rounded-lg px-4 py-2 product-card-effects-badge-bg-color",style:{backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:g?.generalSettingsComponentUiData?.productCardBorderColor?`1px solid ${(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBorderColor,.15)}`:"1px solid rgba(255, 255, 255, 0.15)"},children:(0,t.jsx)("span",{className:"text-xs md:text-sm font-medium product-card-effects-badge-color",children:e})},r))})]}),(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none rounded-3xl",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%)"}})]})}],175514),e.s(["default",0,({product:e,brand:r,selectedCategory:s,selectedSpecial:u,cardFieldVisibilityObject:p})=>{let f=(0,l.default)().isMobile,{productCardSettings:h,commonCMSData:g}
44=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:b=!1,isShowcaseStrainTypeEnabled:j=!1}=p??{},{handleRouteChange:w}=(0,d.default)({product:e,brand:r,selectedCategory:s,selectedSpecial:u});return(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>w(`/product/${e?.slug}`),className:"relative overflow-hidden rounded-xl w-full p-2 md:p-5 flex flex-col md:flex-row items-start md:items-center md:justify-between gap-3 md:gap-8 shadow-md",style:{background:g?.generalSettingsComponentUiData?.productCardBgColor?(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBgColor,.25):"rgba(71, 85, 105, 0.25)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",border:g?.generalSettingsComponentUiData?.productCardBorderColor?`1px solid ${(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBorderColor,.3)}`:"1px solid rgba(255, 255, 255, 0.3)"},children:[(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2 md:gap-8 w-full md:w-auto",children:[(0,t.jsx)("div",{className:"relative rounded-xl flex items-center justify-center w-24 h-32 md:w-56 md:h-56 flex-shrink-0",style:{background:g?.generalSettingsComponentUiData?.productCardBgColor?(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBgColor,.05):"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:g?.generalSettingsComponentUiData?.productCardBorderColor?`1px solid ${(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBorderColor,.08)}`:"1px solid rgba(255, 255, 255, 0.08)"},children:(0,t.jsx)(a.default,{src:e.image||"",alt:e.name||"Product Image Alt",title:e.name||"Product",width:200,height:200,sizes:"(max-width: 768px) 96px, 160px",quality:90,className:"object-contain w-full h-full transform hover:scale-105 transition-transform duration-500 p-3",imgixParams:{w:f?96:160,h:f?96:160,auto:"format,compress"}})}),(0,t.jsxs)("div",{className:"flex-1 space-y-1 md:space-y-2 min-w-0",children:[(0,t.jsx)("div",{className:"flex items-center mb-3",children:h?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,h?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"w-fit rounded-lg px-3 py-1 md:py-1.5 flex items-center justify-center",style:{backgroundColor:(0,x.convertHEXToRGBA)(h?.newProductTagBgColor,.1)||"#76d145",color:h?.newProductTagTextColor||"#ffffff",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:`1px solid ${(0,x.convertHEXToRGBA)(h?.newProductTagTextColor,.18)}`},children:(0,t.jsx)("span",{className:"text-[10px] md:text-sm font-medium ",children:h?.newProductTagTitle||"New"})})}),b&&(0,t.jsx)("h3",{className:"text-sm md:text-2xl font-bold product-card-text-color leading-tight line-clamp-2",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-2",children:[j&&e?.strainType&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)(m,{weight:"regular",size:18,className:"product-card-strain-badge-color flex-shrink-0"}),(0,t.jsx)("span",{className:"text-xs font-medium product-card-strain-badge-color flex-shrink-0",children:e.strainType})]}),(0,n.formatePotency)(e?.potencyThc)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-3 md:h-5 w-px product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-sm font-medium product-card-potency-badge-color flex-shrink-0",children:["THC: ",(0,n.formatePotency)(e?.potencyThc)]})]}),(0,n.formatePotency)(e?.potencyCbd)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-3 md:h-5 w-px product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-sm font-medium product-card-potency-badge-color flex-shrink-0",children:["CBD: ",(0,n.formatePotency)(e?.potencyCbd)]})]})]}),(0,t.jsx)("div",{className:"flex md:hidden flex-row gap-1.5 flex-wrap",children:e?.effects&&e?.effects.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 pt-1",children:e?.effects.map((e,r)=>(0,t.jsx)("div",{className:"rounded-lg px-2 py-1 flex items-center justify-center",style:{backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:g?.generalSettingsComponentUiData?.productCardBorderColor?`1px solid ${(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBorderColor,.15)}`:"1px solid rgba(255, 255, 255, 0.15)"},children:(0,t.jsx)("span",{className:"text-[10px] font-medium product-card-effects-badge-color",children:e})},r))})})]})]}),(0,t.jsx)("div",{className:"hidden md:flex flex-row gap-1.5 md:gap-3 flex-wrap",children:e?.effects&&e?.effects.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 pt-1",children:e?.effects.map((e,r)=>(0,t.jsx)("div",{className:"rounded-lg px-4 py-2",style:{background:g?.generalSettingsComponentUiData?.productEffectBadgeBgColor?(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productEffectBadgeBgColor,.12):"rgba(255, 255, 255, 0.12)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:g?.generalSettingsComponentUiData?.productEffectBadgeBgColor?`1px solid ${(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productEffectBadgeBgColor,.15)}`:"1px solid rgba(255, 255, 255, 0.15)"},children:(0,t.jsx)("span",{className:"text-xs md:text-sm font-medium product-card-effects-badge-color",children:e})},r))})}),(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none rounded-xl",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%)"}})]})}],821220),e.s(["default",0,({product:e,brand:n,selectedCategory:u,selectedSpecial:p,cardFieldVisibilityObject:m})=>{let f=(0,l.default)().isMobile,{productCardSettings:h,commonCMSData:g}
44=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:b=!1,isShowcaseCategoryEnabled:j=!1}=m??{},{handleRouteChange:w}=(0,d.default)({product:e,brand:n,selectedCategory:u,selectedSpecial:p});return(0,t.jsxs)("div",{className:"overflow-hidden rounded-2xl w-full flex flex-col justify-between shadow-lg relative p-4 product-card-gradient-bg-color h-full",children:[h?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,h?.newProductEnabledDuration)&&(0,t.jsx)("div",{style:{backgroundColor:h?.newProductTagBgColor||"#76d145",color:h?.newProductTagTextColor||"#ffffff"},className:"rounded-md px-3 py-1 mb-3 w-fit product-card-background-color",children:(0,t.jsx)("span",{className:"text-xs md:text-sm font-medium",children:h?.newProductTagTitle||"New"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex items-center justify-center rounded-xl mb-5 w-full p-3 aspect-square",style:{background:(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBgColor,.25)??(0,x.convertHEXToRGBA)("#F3F4F633",.25)},children:(0,t.jsx)("div",{className:"relative w-full",children:(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 280px, 340px",quality:95,className:"object-contain w-full drop-shadow-2xl h-[180px] md:h-[270px]",imgixParams:{w:f?280:340,h:f?280:340,auto:"format,compress"}})})}),(0,t.jsxs)("div",{className:"space-y-2 md:space-y-4",children:[j&&e?.category&&(0,t.jsx)("div",{children:(0,t.jsx)("span",{className:"text-xs md:text-sm font-semibold product-card-category-badge-color",children:e?.category?.replace(/_/g," ")})}),b&&(0,t.jsx)("h3",{className:"text-base md:text-xl font-bold product-card-text-color leading-tight",children:e?.name}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-1 md:gap-1.5",children:e?.effects?.map((a,l)=>(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("span",{className:"inline-block text-[10px] md:text-sm font-medium product-card-effects-badge-color",children:a}),l<(e?.effects?.length||0)-1&&(0,t.jsx)("span",{className:"inline-block w-1 h-1 md:w-1.5 md:h-1.5 product-card-effects-badge-bg-color rounded-full"})]},l))})]})]}),(0,t.jsx)("div",{children:(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>w(`/product/${e?.slug}`),className:"inline-flex w-full items-center justify-center gap-2 rounded-lg border px-4 md:px-8 py-2.5 md:py-3 text-xs md:text-sm font-bold whitespace-nowrap product-add-to-cart-button-text-color product-add-to-cart-button-border-color",children:[(0,t.jsx)(s.Plus,{size:16,weight:"bold"}),(0,t.jsx)("span",{className:"text-xs md:text-sm font-medium",children:"Learn More"})]})})]})}],732606);let f=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"}),r.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"}))]]);e.s(["default",0,f],410125);let h=r.forwardRef((e,t)=>
44r.createElement(u.default,{ref:t,...e,weights:f}));h.displayName="ArrowSquareOutIcon",e.s(["default",0,({product:e,brand:s,selectedCategory:n,selectedSpecial:u,cardFieldVisibilityObject:p})=>{let m=(0,l.default)().isMobile,{productCardSettings:f,commonCMSData:g}=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:b=!1,isShowcaseCategoryEnabled:j=!1}=p??{},{handleRouteChange:w}=(0,d.default)({product:e,brand:s,selectedCategory:n,selectedSpecial:u});return(0,t.jsxs)("div",{className:"overflow-hidden rounded-2xl w-full flex items-center justify-between shadow-lg relative px-3 md:px-4 py-0 gap-2 md:gap-4 product-card-gradient-bg-color",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 md:gap-8 flex-1 min-w-0",children:[f?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,f?.newProductEnabledDuration)&&(0,t.jsx)("div",{style:{backgroundColor:f?.newProductTagBgColor||"#76d145",color:f?.newProductTagTextColor||"#ffffff"},className:"rounded-md px-2 md:px-3 py-1 w-fit shrink-0 flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-[9px] md:text-sm font-medium",children:f?.newProductTagTitle||"New"})}),(0,t.jsx)("div",{className:"w-[100px] sm:w-[140px] md:w-[200px] lg:w-[220px] shrink-0 py-3 md:py-4",children:(0,t.jsx)("div",{className:"flex items-center justify-center bg-[#F3F4F633] rounded-xl aspect-square",style:{background:(0,x.convertHEXToRGBA)(g?.generalSettingsComponentUiData?.productCardBgColor,.25)??(0,x.convertHEXToRGBA)("#F3F4F633",.25)},children:(0,t.jsx)("div",{className:"relative w-full p-2 sm:p-3 md:p-4",children:(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:280,height:280,sizes:"(max-width: 640px) 100px, (max-width: 768px) 140px, (max-width: 1024px) 200px, 220px",quality:95,className:"object-contain w-full h-full",imgixParams:{w:m?100:220,h:m?100:220,auto:"format,compress"}})})})}),(0,t.jsx)("div",{className:"flex-1 flex flex-col justify-center min-w-0",children:(0,t.jsxs)("div",{className:"space-y-1 sm:space-y-1.5 md:space-y-3",children:[j&&e?.category&&(0,t.jsx)("div",{children:(0,t.jsx)("span",{className:"text-[10px] sm:text-xs md:text-sm font-semibold product-card-category-badge-color",children:e?.category?.replace(/_/g," ")})}),b&&(0,t.jsx)("h3",{className:"text-xs sm:text-sm md:text-2xl lg:text-3xl font-bold product-card-text-color leading-tight line-clamp-2",children:e?.name}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-0.5 sm:gap-1 md:gap-1.5",children:e?.effects?.slice(0,2).map((a,l)=>(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("span",{className:"inline-block text-[9px] sm:text-[10px] md:text-sm font-medium product-card-effects-badge-color",children:a}),l<Math.min(e?.effects?.length||0,2)-1&&(0,t.jsx)("span",{className:"inline-block w-0.5 h-0.5 sm:w-1 sm:h-1 md:w-1.5 md:h-1.5 product-card-text-color-like-background rounded-full"})]},l))})]})})]}),(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>w(`/product/${e?.slug}`),className:"inline-flex items-center justify-center gap-1.5 rounded-lg border px-2 sm:px-3 h-8 sm:h-10 md:h-12 product-add-to-cart-button-text-color product-add-to-cart-button-border-color hover:bg-white/30 transition-colors shrink-0",children:[(0,t.jsx)(h,{size:m?16:20,weight:"fill",className:"text-gray-900"}),!!f?.productCardAddToCartLabel?.length&&(0,t.jsx)("span",{className:"hidden md:inline text-xs font-semibold whitespace-nowrap",children:f.productCardAddToCartLabel})]})]})}],53062),e.s(["default",0,({product:e,brand:r,selectedCategory:s,selectedSpecial:u,cardFieldVisibilityObject:p})=>{let m=(0,l.default)().isMobile,{productCardSettings:f,commonCMSData:h}
44=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:g=!1,isShowcaseStrainTypeEnabled:b=!1}=p??{},{handleRouteChange:j}=(0,d.default)({product:e,brand:r,selectedCategory:s,selectedSpecial:u});return(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>j(`/product/${e?.slug}`),className:"group overflow-hidden rounded-2xl w-full flex flex-col relative p-5 md:p-6 shadow-xl hover:shadow-2xl transition-all duration-300 product-card-gradient-bg-color product-card-shadow-color product-card-border-color border h-full ",children:[(0,t.jsx)("div",{className:"flex items-center gap-2 mb-4",children:f?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,f?.newProductEnabledDuration)&&(0,t.jsx)("div",{style:{backgroundColor:f?.newProductTagBgColor||"#76d145",color:f?.newProductTagTextColor||"#ffffff"},className:"w-fit rounded-lg px-3 py-1 flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-xs md:text-sm font-semibold",children:f?.newProductTagTitle||"New"})})}),(0,t.jsx)("div",{className:"relative rounded-2xl overflow-hidden mb-5 flex items-center justify-center",style:{background:(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productCardBgColor,.5)??"#1E293B"},children:(0,t.jsx)("div",{className:"relative w-full p-3 md:p-4",children:(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:300,height:300,sizes:"(max-width: 640px) 250px, 300px",quality:95,className:"object-contain w-full  h-[180px] md:h-[270px] transform group-hover:scale-105 transition-transform duration-500",imgixParams:{w:m?250:300,h:m?250:300,auto:"format,compress"}})})}),(0,t.jsxs)("div",{className:"space-y-3",children:[g&&(0,t.jsx)("h3",{className:"text-lg md:text-xl font-bold product-card-text-color leading-tight line-clamp-2",children:e?.name}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[b&&e?.strainType&&(0,t.jsx)("span",{className:"inline-block text-xs font-medium product-card-strain-badge-color",children:e?.strainType}),(0,n.formatePotency)(e?.potencyThc)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-2 w-2 rounded-full product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-xs font-medium product-card-potency-badge-color flex-shrink-0",children:["THC: ",(0,n.formatePotency)(e?.potencyThc)]})]}),(0,n.formatePotency)(e?.potencyCbd)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-2 w-2 rounded-full product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-xs font-medium product-card-potency-badge-color flex-shrink-0",children:["CBD: ",(0,n.formatePotency)(e?.potencyCbd)]})]})]}),e?.shortDescription&&(0,t.jsx)("div",{className:"text-sm product-card-text-color leading-relaxed line-clamp-2 text-editorDetails",dangerouslySetInnerHTML:{__html:e?.shortDescription}})]})]})}],704),e.s(["default",0,({product:e,brand:r,selectedCategory:s,selectedSpecial:u,cardFieldVisibilityObject:p})=>{let m=(0,l.default)().isMobile,{productCardSettings:f,commonCMSData:h}
44=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:g=!1,isShowcaseStrainTypeEnabled:b=!1}=p??{},{handleRouteChange:j}=(0,d.default)({product:e,brand:r,selectedCategory:s,selectedSpecial:u});return(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>j(`/product/${e?.slug}`),className:"group bg-gradient-to-br  overflow-hidden rounded-xl w-full flex items-center justify-between gap-3 md:gap-6 relative p-3 md:p-5 shadow-lg product-card-gradient-bg-color product-card-shadow-color product-card-border-color border",children:[(0,t.jsx)("div",{className:"relative w-[120px] sm:w-[140px] md:w-[180px] lg:w-[200px] shrink-0",children:(0,t.jsx)("div",{className:"relative rounded-xl overflow-hidden h-full flex items-center justify-center min-h-[120px] sm:min-h-[140px] md:min-h-[180px]",style:{background:(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productCardBgColor,.5)??"#1E293B"},children:(0,t.jsx)("div",{className:"relative w-full p-3 md:p-4",children:(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:200,height:200,sizes:"(max-width: 640px) 120px, (max-width: 768px) 140px, (max-width: 1024px) 180px, 200px",quality:95,className:"object-contain w-full h-full drop-shadow-2xl",imgixParams:{w:m?120:200,h:m?120:200,auto:"format,compress"}})})})}),(0,t.jsx)("div",{className:"flex-1 flex flex-col justify-center min-w-0",children:(0,t.jsxs)("div",{className:"space-y-1 md:space-y-2",children:[g&&(0,t.jsx)("h3",{className:"text-base md:text-xl lg:text-2xl font-bold product-card-text-color leading-tight line-clamp-2",children:e?.name}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[b&&e?.strainType&&(0,t.jsx)("span",{className:"inline-block text-xs font-medium product-card-strain-badge-color",children:e?.strainType}),(0,n.formatePotency)(e?.potencyThc)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-2 w-2 rounded-full product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-xs font-medium product-card-potency-badge-color flex-shrink-0",children:["THC: ",(0,n.formatePotency)(e?.potencyThc)]})]}),(0,n.formatePotency)(e?.potencyCbd)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-2 w-2 rounded-full product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-xs font-medium product-card-potency-badge-color flex-shrink-0",children:["CBD: ",(0,n.formatePotency)(e?.potencyCbd)]})]})]}),e?.shortDescription&&(0,t.jsx)("div",{className:"text-[10px] md:text-sm product-card-text-color leading-relaxed line-clamp-2 hidden sm:block text-editorDetails",dangerouslySetInnerHTML:{__html:e?.shortDescription}})]})}),f?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,f?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)("div",{style:{backgroundColor:f?.newProductTagBgColor||"#76d145",color:f?.newProductTagTextColor||"#ffffff"},className:"w-fit rounded-lg px-2 md:px-3 py-0.5 md:py-1 flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-[10px] md:text-sm font-semibold",children:f?.newProductTagTitle||"New"})})})]})}],458464),e.s(["default",0,({product:e,brand:r,selectedCategory:s,selectedSpecial:u,cardFieldVisibilityObject:p})=>{let{productCardSettings:f,commonCMSData:h}
44=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:g=!1,isShowcaseStrainTypeEnabled:b=!1}=p??{},{handleRouteChange:j}=(0,d.default)({product:e,brand:r,selectedCategory:s,selectedSpecial:u}),w=(0,l.default)().isMobile;return(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>j(`/product/${e?.slug}`),className:"group relative overflow-hidden rounded-3xl w-full flex flex-col p-5 md:p-5 h-full",style:{background:h?.generalSettingsComponentUiData?.productCardBgColor?(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productCardBgColor,.25):"rgba(71, 85, 105, 0.25)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",border:h?.generalSettingsComponentUiData?.productCardBorderColor?`1px solid ${(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productCardBorderColor,.3)}`:"1px solid rgba(255, 255, 255, 0.1)"},children:[f?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,f?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"flex items-center mb-3",children:(0,t.jsx)("div",{className:"w-fit rounded-lg px-3 py-1.5 flex items-center justify-center",style:{background:f?.newProductTagBgColor?(0,x.convertHEXToRGBA)(f?.newProductTagBgColor,.1):"rgba(255, 255, 255, 0.1)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:`1px solid ${f?.newProductTagTextColor?(0,x.convertHEXToRGBA)(f?.newProductTagTextColor,.18):"rgba(255, 255, 255, 0.18)"}`,color:f?.newProductTagTextColor||"#ffffff"},children:(0,t.jsx)("span",{className:"text-xs md:text-sm font-medium",children:f?.newProductTagTitle||"New"})})}),(0,t.jsx)("div",{className:"relative rounded-2xl overflow-hidden mb-6 flex items-center justify-center min-h-[180px] md:min-h-[180px]",style:{background:h?.generalSettingsComponentUiData?.productCardBgColor?(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productCardBgColor,.05):"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:h?.generalSettingsComponentUiData?.productCardBorderColor?`1px solid ${(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productCardBorderColor,.08)}`:"1px solid rgba(255, 255, 255, 0.08)"},children:(0,t.jsx)("div",{className:"relative w-full p-4",children:(0,t.jsx)(a.default,{src:e.image||"",alt:e.name||"Product Image Alt",title:e.name||"Product",width:300,height:300,sizes:"(max-width: 640px) 250px, 300px",quality:95,className:"object-contain w-full transform group-hover:scale-105 transition-transform duration-500  h-[180px] md:h-[270px]",imgixParams:{w:w?250:300,h:w?250:300,auto:"format,compress"}})})}),(0,t.jsxs)("div",{className:"space-y-4",children:[g&&(0,t.jsx)("h3",{className:"text-lg md:text-xl font-bold product-card-text-color leading-tight line-clamp-2",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-2",children:[b&&e?.strainType&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{weight:"regular",size:18,className:"product-card-strain-badge-color flex-shrink-0"}),(0,t.jsx)("span",{className:"text-xs font-medium product-card-strain-badge-color flex-shrink-0",children:e.strainType})]}),(0,n.formatePotency)(e?.potencyThc)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-2 w-2 rounded-full product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-xs font-medium product-card-potency-badge-color flex-shrink-0",children:["THC: ",(0,n.formatePotency)(e?.potencyThc)]})]}),(0,n.formatePotency)(e?.potencyCbd)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-2 w-2 rounded-full product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-xs font-medium product-card-potency-badge-color flex-shrink-0",children:["CBD: ",(0,n.formatePotency)(e?.potencyCbd)]})]})]}),e.effects&&e.effects.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 pt-1",children:e.effects.map((e,r)=>(0,t.jsx)("div",{className:"rounded-lg px-4 py-2",style:{background:h?.generalSettingsComponentUiData?.productEffectBadgeBgColor?(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productEffectBadgeBgColor,.12):"rgba(255, 255, 255, 0.12)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:h?.generalSettingsComponentUiData?.productEffectBadgeBgColor?`1px solid ${(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productEffectBadgeBgColor,.15)}`:"1px solid rgba(255, 255, 255, 0.15)"},children:(0,t.jsx)("span",{className:"text-xs md:text-sm font-medium product-card-effects-badge-color",children:e})},r))})]}),(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none rounded-3xl",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%)"}})]})}],755309),e.s(["default",0,({product:e,brand:r,selectedCategory:s,selectedSpecial:u,cardFieldVisibilityObject:p})=>{let{productCardSettings:f,commonCMSData:h}
44=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:g=!1,isShowcaseStrainTypeEnabled:b=!1}=p??{},{handleRouteChange:j}=(0,d.default)({product:e,brand:r,selectedCategory:s,selectedSpecial:u}),w=(0,l.default)().isMobile;return(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>j(`/product/${e?.slug}`),className:"relative overflow-hidden rounded-xl w-full p-2 md:p-5 flex flex-col md:flex-row items-start md:items-center md:justify-between gap-3 md:gap-8",style:{background:h?.generalSettingsComponentUiData?.productCardBgColor?(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productCardBgColor,.25):"rgba(71, 85, 105, 0.25)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",border:h?.generalSettingsComponentUiData?.productCardBorderColor?`1px solid ${(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productCardBorderColor,.3)}`:"1px solid rgba(255, 255, 255, 0.1)"},children:[(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2 md:gap-8 w-full md:w-auto",children:[(0,t.jsx)("div",{className:"relative rounded-xl flex items-center justify-center w-24 h-32 md:w-56 md:h-56 flex-shrink-0",style:{background:h?.generalSettingsComponentUiData?.productCardBgColor?(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productCardBgColor,.05):"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:h?.generalSettingsComponentUiData?.productCardBorderColor?`1px solid ${(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productCardBorderColor,.08)}`:"1px solid rgba(255, 255, 255, 0.08)"},children:(0,t.jsx)(a.default,{src:e.image||"",alt:e.name||"Product Image Alt",title:e.name||"Product",width:200,height:200,sizes:"(max-width: 768px) 96px, 160px",quality:90,className:"object-contain w-full h-full transform hover:scale-105 transition-transform duration-500",imgixParams:{w:w?96:160,h:w?96:160,auto:"format,compress"}})}),(0,t.jsxs)("div",{className:"flex-1 space-y-1 md:space-y-2 min-w-0",children:[(0,t.jsx)("div",{className:"flex items-center mb-3",children:f?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,f?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"w-fit rounded-lg px-3 py-1 md:py-1.5 flex items-center justify-center",style:{background:f?.newProductTagBgColor?(0,x.convertHEXToRGBA)(f?.newProductTagBgColor,.1):"rgba(255, 255, 255, 0.1)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",border:`1px solid ${f?.newProductTagTextColor?(0,x.convertHEXToRGBA)(f?.newProductTagTextColor,.18):"rgba(255, 255, 255, 0.18)"}`,color:f?.newProductTagTextColor||"#ffffff"},children:(0,t.jsx)("span",{className:"text-[10px] md:text-sm font-medium",children:f?.newProductTagTitle||"New"})})}),g&&(0,t.jsx)("h3",{className:"text-sm md:text-2xl font-bold product-card-text-color leading-tight line-clamp-2",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-2",children:[b&&e?.strainType&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)(m,{weight:"regular",size:18,className:"product-card-strain-badge-color flex-shrink-0"}),(0,t.jsx)("span",{className:"text-xs font-medium product-card-strain-badge-color flex-shrink-0",children:e.strainType})]}),(0,n.formatePotency)(e?.potencyThc)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-2 w-2 rounded-full product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-xs font-medium product-card-potency-badge-color flex-shrink-0",children:["THC: ",(0,n.formatePotency)(e?.potencyThc)]})]}),(0,n.formatePotency)(e?.potencyCbd)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-2 w-2 rounded-full product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-xs font-medium product-card-potency-badge-color flex-shrink-0",children:["CBD: ",(0,n.formatePotency)(e?.potencyCbd)]})]})]}),(0,t.jsx)("div",{className:"flex md:hidden flex-row gap-1.5 flex-wrap",children:e.effects&&e.effects.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 pt-1",children:e.effects.map((e,r)=>(0,t.jsx)("div",{className:"rounded-lg px-2 py-1 flex items-center justify-center",style:{background:h?.generalSettingsComponentUiData?.productEffectBadgeBgColor?(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productEffectBadgeBgColor,.12):"rgba(255, 255, 255, 0.12)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:h?.generalSettingsComponentUiData?.productEffectBadgeBgColor?`1px solid ${(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productEffectBadgeBgColor,.15)}`:"1px solid rgba(255, 255, 255, 0.15)"},children:(0,t.jsx)("span",{className:"text-[10px] font-medium product-card-effects-badge-color",children:e})},r))})})]})]}),(0,t.jsx)("div",{className:"hidden md:flex flex-row gap-1.5 md:gap-3 flex-wrap",children:e.effects&&e.effects.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 pt-1",children:e.effects.map((e,r)=>(0,t.jsx)("div",{className:"rounded-lg px-4 py-2",style:{background:h?.generalSettingsComponentUiData?.productEffectBadgeBgColor?(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productEffectBadgeBgColor,.12):"rgba(255, 255, 255, 0.12)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",border:h?.generalSettingsComponentUiData?.productEffectBadgeBgColor?`1px solid ${(0,x.convertHEXToRGBA)(h?.generalSettingsComponentUiData?.productEffectBadgeBgColor,.15)}`:"1px solid rgba(255, 255, 255, 0.15)"},children:(0,t.jsx)("span",{className:"text-xs md:text-sm font-medium product-card-effects-badge-color",children:e})},r))})}),(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none rounded-xl",style:{background:"linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%)"}})]})}],968371),e.s(["default",0,({product:e,brand:s,selectedCategory:c,selectedSpecial:i,cardFieldVisibilityObject:u})=>{let p=(0,l.default)().isMobile,{handleRouteChange:m}=(0,d.default)({product:e,brand:s,selectedCategory:c,selectedSpecial:i}),{isShowcaseTitleEnabled:x=!1,isShowcaseCategoryEnabled:f=!1,isS
44howcaseStrainTypeEnabled:h=!1}=u??{};return(0,t.jsx)("div",{className:"grid h-full grid-cols-1 items-stretch",children:(0,t.jsx)(o.default,{href:`/product/${e?.slug}`,onClick:()=>m(`/product/${e?.slug}`),className:"group relative overflow-hidden rounded-2xl w-full product-card-background-color border product-card-border-color p-3 shadow-md h-full",children:(0,t.jsxs)("div",{className:"h-full block",children:[(0,t.jsxs)("div",{className:"grid grid-cols-12 items-start justify-between mb-6 md:mb-8 gap-3",children:[(0,t.jsx)("div",{className:"col-span-4",children:h&&e?.strainType&&(0,t.jsx)("div",{className:"rounded-lg px-3 py-1.5 border border-[var(--product-card-strain-badge-color)] product-card-strain-badge-bg-color flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-xs font-semibold product-card-strain-badge-color",children:e.strainType})})}),(0,t.jsx)("div",{className:"col-span-8 w-full flex-shrink-0",children:(0,t.jsx)("div",{className:"relative rounded-xl overflow-hidden bg-[#E8E9EB] p-3 aspect-square flex items-center justify-center",children:(0,t.jsx)(a.default,{src:e.image||"",alt:e.name||"Product Image Alt",title:e.name||"Product",width:180,height:180,sizes:"(max-width: 640px) 140px, 180px",quality:95,className:"object-contain w-full h-full transform group-hover:scale-110 transition-transform duration-500 ease-out",imgixParams:{w:p?140:180,h:p?140:180,auto:"format,compress"}})})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[x&&(0,t.jsx)("h3",{className:"text-lg md:text-2xl font-black product-card-text-color line-clamp-2",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center gap-2.5 product-card-text-color flex-wrap",children:[f&&e?.category&&(0,t.jsx)("span",{className:"text-xs md:text-sm font-medium product-card-category-badge-color flex-shrink-0",children:e?.category?.replace(/_/g," ")}),(0,n.formatePotency)(e?.potencyThc)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-3 md:h-5 w-px product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-sm font-medium product-card-potency-badge-color flex-shrink-0",children:["THC: ",(0,n.formatePotency)(e?.potencyThc)]})]}),(0,n.formatePotency)(e?.potencyCbd)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-3 md:h-5 w-px product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-sm font-medium product-card-potency-badge-color flex-shrink-0",children:["CBD: ",(0,n.formatePotency)(e?.potencyCbd)]})]})]}),e.effects&&e.effects.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:e.effects.map((a,l)=>(0,t.jsxs)(r.default.Fragment,{children:[(0,t.jsx)("span",{className:"text-xs md:text-sm font-medium product-card-effects-badge-color",children:a}),l<e.effects.length-1&&(0,t.jsx)("div",{className:"h-1.5 w-1.5 rounded-full product-card-effects-badge-bg-color"})]},l))})]})]})})})}],280808),e.s(["default",0,({product:e,brand:r,selectedCategory:s,selectedSpecial:c,cardFieldVisibilityObject:i})=>{let u=(0,l.default)().isMobile,{handleRouteChange:p}=(0,d.default)({product:e,brand:r,selectedCategory:s,selectedSpecial:c}),{isShowcaseTitleEnabled:m=!1,isShowcaseCategoryEnabled:x=!1,isShowcaseStrainTypeEnabled:f=!1}=i??{};return(0,t.jsx)(o.default,{href:`/product/${e?.slug}`,onClick:()=>p(`/product/${e?.slug}`),className:"group relative overflow-hidden rounded-2xl block w-full p-3 md:p-8 shadow-md product-card-background-color border product-card-border-color",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 md:gap-8",children:[(0,t.jsx)("div",{className:"w-[100px] md:w-[180px] flex-shrink-0",children:(0,t.jsx)("div",{className:"relative rounded-[16px] md:rounded-[20px] overflow-hidden bg-[#E8E9EB] p-3 aspect-square flex items-center justify-center",children:(0,t.jsx)(a.default,{src:e.image||"",alt:e.name||"Product Image Alt",title:e.name||"Product",width:180,height:180,sizes:"(max-width: 640px) 100px, 180px",quality:95,className:"object-contain w-full h-full transform group-hover:scale-105 transition-transform duration-500 ease-out",imgixParams:{w:u?100:180,h:u?100:180,auto:"format,compress"}})})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 space-y-1 md:space-y-2",children:[m&&(0,t.jsx)("h3",{className:"text-base md:text-3xl font-black product-card-text-color line-clamp-2 leading-tight",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 md:gap-2.5",children:[x&&e?.category&&(0,t.jsx)("span",{className:"text-xs md:text-sm font-medium whitespace-nowrap product-card-category-badge-color flex-shrink-0",children:e?.category?.replace(/_/g," ")}),(0,n.formatePotency)(e?.potencyThc)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-3 md:h-5 w-px product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-sm font-medium product-card-potency-badge-color flex-shrink-0",children:["THC: ",(0,n.formatePotency)(e?.potencyThc)]})]}),(0,n.formatePotency)(e?.potencyCbd)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-3 md:h-5 w-px product-card-potency-badge-bg-color flex-shrink-0"}),(0,t.jsxs)("span",{className:"text-sm font-medium product-card-potency-badge-color flex-shrink-0",children:["CBD: ",(0,n.formatePotency)(e?.potencyCbd)]})]})]})]}),(0,t.jsx)("div",{className:"flex-shrink-0",children:f&&e?.strainType&&(0,t.jsx)("div",{className:"rounded-md md:rounded-lg px-2 md:px-3 py-1 md:py-1.5 border border-[var(--product-card-strain-badge-color)] product-card-strain-badge-bg-color flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-[10px] md:text-sm font-medium product-card-strain-badge-color whitespace-nowrap",children:e.strainType})})})]})})}],370418);var g=e.i(814032);e.i(657688);var b=e.i(769464);let j=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V88a20,20,0,0,0,16,19.6V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V107.6A20,20,0,0,0,244,88V64A20,20,0,0,0,224,44ZM36,68H220V84H36ZM52,188V108H204v80Zm112-52a12,12,0,0,1-12,12H104a12,12,0,0,1,0-24h48A12,12,0,0,1,164,136Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,96v96a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96Z",opacity:"0.2"}),r.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm-72,96H104a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm72-56H32V64H224V88Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V88a14,14,0,0,0,14,14h2v90a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V102h2a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM210,192a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V102H210ZM226,88a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2ZM98,136a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V88a12,12,0,0,0,12,12h4v92a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V100h4a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM212,192a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V100H212ZM228,88a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4ZM100,136a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,136Z"}))]]),w=r.forwardRef((e,t)=>
44r.createElement(b.default,{ref:t,...e,weights:j}));w.displayName="ArchiveIcon";var y=e.i(985857);let v=({fillColor:e="#111111",strokeColor:r="#D2B57A",className:a})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none",className:a,children:(0,t.jsx)("path",{d:"M27.2625 5.75299C29.8327 3.02723 34.1673 3.02723 36.7375 5.75299C38.4941 7.61591 41.0787 8.4557 43.5949 7.98109C47.2764 7.28665 50.7831 9.83443 51.2603 13.5504C51.5865 16.09 53.1838 18.2886 55.4984 19.3836C58.885 20.9857 60.2245 25.1081 58.4264 28.3949C57.1974 30.6412 57.1974 33.3588 58.4264 35.6051C60.2245 38.8919 58.885 43.0143 55.4984 44.6164C53.1838 45.7114 51.5865 47.91 51.2603 50.4496C50.7831 54.1656 47.2764 56.7134 43.5949 56.0189C41.0787 55.5443 38.4941 56.3841 36.7375 58.247C34.1673 60.9728 29.8327 60.9728 27.2625 58.247C25.5059 56.3841 22.9213 55.5443 20.4051 56.0189C16.7236 56.7134 13.2169 54.1656 12.7397 50.4496C12.4135 47.91 10.8162 45.7114 8.50157 44.6164C5.11498 43.0143 3.77553 38.8919 5.57364 35.6051C6.80256 33.3588 6.80256 30.6412 5.57364 28.3949C3.77553 25.1081 5.11498 20.9857 8.50157 19.3836C10.8162 18.2886 12.4135 16.09 12.7397 13.5504C13.2169 9.83443 16.7236 7.28665 20.4051 7.98109C22.9213 8.4557 25.5059 7.61591 27.2625 5.75299Z",fill:e,stroke:r})});e.s(["default",0,({product:e,brand:r,setSwipeCardSelectedVariant:l,selectedCategory:s,selectedSpecial:d,cardFieldVisibilityObject:n})=>{let{productCardSettings:u}=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:p=!1,isShowcaseCategoryEnabled:m=!1,isShowcaseStrainTypeEnabled:x=!1}=n??{},{}=(0,g.default)({product:e,brand:r,setSwipeCardSelectedVariant:l,selectedCategory:s,selectedSpecial:d});return(0,t.jsx)(o.default,{href:`/product/${e?.slug}`,className:"w-full grid grid-cols-1 items-stretch",children:(0,t.jsxs)("div",{className:"product-card-background-color rounded-lg w-full relative overflow-visible",children:[u?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,u?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"absolute -top-2 -right-4 z-10 w-20 h-20",children:(0,t.jsxs)("div",{className:"relative w-full h-full",children:[(0,t.jsx)(v,{fillColor:u?.newProductTagBgColor||"#76d145",strokeColor:u?.newProductTagTextColor||"#ffffff",className:"w-full h-full"}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-sm font-medium",style:{color:u?.newProductTagTextColor||"#ffffff"},children:u?.newProductTagTitle||"New"})]})}),(0,t.jsx)("div",{className:"relative px-6 py-8 overflow-hidden rounded-t-lg",children:(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)("div",{className:"w-full h-48 md:h-64 relative",children:(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",fill:!0,className:"object-contain",sizes:"(max-width: 768px) 100vw, 400px"})})})}),(0,t.jsx)("div",{className:"h-px bg-[var(--product-card-border-color)] w-full"}),(0,t.jsxs)("div",{className:"px-6 py-6",children:[p&&(0,t.jsx)("h2",{className:"text-xl md:text-2xl font-bold mb-4 product-card-text-color",children:e?.name}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[m&&e?.category&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(w,{size:20,className:"product-card-category-badge-color-lig-bg-color",weight:"fill"}),(0,t.jsx)("span",{className:"text-sm md:text-base product-card-category-badge-color",children:e?.category?.replace(/_/g," ")})]}),x&&e?.strainType&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(y.Sun,{size:20,className:"product-card-strain-badge-color-like-bg-color",weight:"fill"}),(0,t.jsx)("span",{className:"text-sm md:text-base product-card-strain-badge-color",children:e?.strainType})]})]})]})]})})}],960606);var N=e.i(358789),C=e.i(996337);e.s(["default",0,({product:e,brand:r,selectedCategory:s={},selectedSpecial:d={},cardFieldVisibilityObject:n})=>{let u=(0,l.default)().isMobile,{productCardSettings:p}=(0,i.useGlobalStore)(),{handleRouteChange:m}=(0,C.default)({product:e,brand:r,selectedCategory:s,selectedSpecial:d}),{isShowcaseTitleEnabled:x=!1,isShowcaseCategoryEnabled:f=!1,isS
44howcaseStrainTypeEnabled:h=!1}=n??{};return(0,t.jsx)(o.default,{href:`/product/${e?.slug}`,onClick:()=>m(`/product/${e?.slug}`),className:"relative grid grid-cols-1 items-center gap-2 md:gap-4 rounded-xl border shadow-md p-2 md:p-4 product-card-background-color",children:(0,t.jsxs)("div",{className:"grid grid-cols-12 items-center gap-2 md:gap-4",children:[(0,t.jsxs)("div",{className:"relative col-span-2 md:h-full max-w-80",children:[p?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,p?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"absolute -top-4 -left-4 z-10 w-20 h-20",children:(0,t.jsxs)("div",{className:"relative w-full h-full",children:[(0,t.jsx)(v,{fillColor:p?.newProductTagBgColor||"#76d145",strokeColor:p?.newProductTagTextColor||"#ffffff",className:"w-full h-full"}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-sm font-medium",style:{color:p?.newProductTagTextColor||"#ffffff"},children:p?.newProductTagTitle||"New"})]})}),(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 96px, 340px",className:"object-contain w-full h-full rounded-sm",imgixParams:{w:u?96:340,h:u?96:340,auto:"format,compress"}})]}),(0,t.jsxs)("div",{className:"space-y-2 col-span-10",children:[x&&(0,t.jsx)("h3",{className:"text-sm md:text-lg font-semibold product-card-text-color leading-tight mb-3",children:e?.name}),(0,t.jsxs)("div",{className:"flex items-center gap-1 flex-wrap md:gap-3 mb-3",children:[f&&e?.category&&(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 md:gap-1.5 text-xs md:text-sm font-medium product-card-category-badge-color",children:[(0,t.jsx)(w,{size:20,className:"product-card-category-badge-color-lig-bg-color",weight:"fill"}),e?.category?.replace(/_/g," ")]}),h&&e?.strainType&&(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 md:gap-1.5 text-xs md:text-sm font-medium product-card-strain-badge-color",children:[(0,t.jsx)(N.SealCheck,{className:"h-3 w-3 md:h-4 md:w-4 product-card-strain-badge-color-like-bg-color",weight:"fill"}),e?.strainType]})]})]})]})})}],813387),e.s(["default",0,({product:e,brand:r,setSwipeCardSelectedVariant:l,selectedCategory:s,selectedSpecial:d,cardFieldVisibilityObject:n})=>{let{productCardSettings:u}=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:p=!1,isShowcaseStrainTypeEnabled:m=!1}=n??{};(0,g.default)({product:e,brand:r,setSwipeCardSelectedVariant:l,selectedCategory:s,selectedSpecial:d});let x=e?.shortDescription??"";return(0,t.jsx)(o.default,{href:`/product/${e?.slug}`,className:"w-full grid grid-cols-1 items-stretch",children:(0,t.jsxs)("article",{className:"relative w-full overflow-hidden p-3 md:p-4",children:[u?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,u?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"absolute -right-1 -top-1 z-10 h-16 w-16",children:(0,t.jsxs)("div",{className:"relative h-full w-full",children:[(0,t.jsx)(v,{fillColor:u?.newProductTagBgColor||"#76d145",strokeColor:u?.newProductTagTextColor||"#ffffff",className:"h-full w-full"}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-xs font-medium",style:{color:u?.newProductTagTextColor||"#ffffff"},children:u?.newProductTagTitle||"New"})]})}),(0,t.jsx)("div",{className:"relative aspect-square w-full overflow-hidden",children:(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product",fill:!0,className:"object-contain p-2",sizes:"(max-width: 768px) 100vw, 400px"})}),(0,t.jsxs)("div",{className:"mt-3 flex flex-col gap-3",children:[p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-center text-base font-bold uppercase leading-tight tracking-tight text-[var(--product-card-text-color)] md:text-lg min-h-[60px] md:min-h-14 line-clamp-3 md:line-clamp-2",children:e?.name}),(0,t.jsx)("div",{className:"h-px w-full bg-[var(--product-card-text-color)]"})]}),x&&(0,t.jsx)("div",{className:"text-xs leading-snug product-card-text-color md:text-sm text-editorDetails",dangerouslySetInnerHTML:{__html:x}}),m&&e?.strainType&&(0,t.jsx)("div",{className:"pt-1 mt-auto",children:(0,t.jsx)("span",{className:"inline-flex rounded-full border-2 border-white text-[var(--product-card-strain-badge-color)] bg-[var(--product-card-strain-badge-bg-color)] px-3 py-1 text-xs font-bold uppercase tracking-wide",children:String(e.strainType).replace(/_/g," ")})})]})]})})}],435930);var S=e.i(356530);e.s(["default",0,({product:e,brand:s,selectedCategory:d={},selectedSpecial:n={},cardFieldVisibilityObject:u})=>{let p=(0,l.default)().isMobile,{productCardSettings:m}=(0,i.useGlobalStore)(),{handleRouteChange:x}=(0,C.default)({product:e,brand:s,selectedCategory:d,selectedSpecial:n}
44),{isShowcaseTitleEnabled:f=!1,isShowcaseStrainTypeEnabled:h=!1}=u??{},g=Array.isArray(e?.effects)?e.effects:[],b=Array.isArray(e?.flavor)?e.flavor:[],j=b.length>0?`FLAVORS: ${b.map(e=>String(e).trim()).filter(Boolean).join(", ").toUpperCase()}`:"",w=m?.productCardAddToCartLabel?.trim()||"Learn More";return(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>x(`/product/${e?.slug}`),className:"relative flex w-full flex-col gap-3 rounded-xl border-2 product-card-border-color product-card-background-color p-3 shadow-sm md:flex-row md:items-center md:justify-between md:gap-4 md:p-4",children:[m?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,m?.newProductEnabledDuration)&&(0,t.jsx)("div",{className:"absolute -left-1 -top-1 z-10 h-14 w-14",children:(0,t.jsxs)("div",{className:"relative h-full w-full",children:[(0,t.jsx)(v,{fillColor:m?.newProductTagBgColor||"#76d145",strokeColor:m?.newProductTagTextColor||"#ffffff",className:"h-full w-full"}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-[10px] font-medium md:text-xs",style:{color:m?.newProductTagTextColor||"#ffffff"},children:m?.newProductTagTitle||"New"})]})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3 md:gap-4",children:[(0,t.jsx)("div",{className:"relative w-24 shrink-0 overflow-hidden rounded-lg bg-neutral-50 md:w-48",children:(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product",title:e?.name||"Product",width:200,height:200,sizes:"(max-width: 768px) 96px, 200px",className:"h-full w-full object-contain p-1",imgixParams:{w:p?96:200,h:p?96:200,auto:"format,compress"}})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5 py-0.5 md:gap-2",children:[f&&(0,t.jsx)("h3",{className:"line-clamp-2 text-sm font-bold uppercase leading-tight tracking-tight product-card-text-color md:text-base lg:text-lg",children:e?.name}),j.length>0&&(0,t.jsx)("p",{className:"text-[11px] font-medium uppercase leading-snug tracking-wide product-card-text-color md:text-xs",children:j}),h&&e?.strainType||g.length>0?(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-2 gap-y-1 md:gap-x-3",children:[h&&e?.strainType&&(0,t.jsx)("span",{className:"inline-flex shrink-0 rounded-full text-[var(--product-card-strain-badge-color)] bg-[var(--product-card-strain-badge-bg-color)] px-2.5 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white md:text-xs",children:String(e.strainType).replace(/_/g," ")}),g.length>0&&(0,t.jsx)("p",{className:"min-w-0 text-[10px] font-semibold uppercase leading-snug tracking-wide product-card-text-color md:text-xs flex flex-wrap items-center gap-y-1 md:gap-x-3",children:g.map((e,a)=>(0,t.jsxs)(r.default.Fragment,{children:[a>0&&(0,t.jsx)("span",{className:"mx-1.5 text-neutral-400",children:"•"}),(0,t.jsx)("span",{children:String(e).replace(/_/g," ")})]},`${e}-${a}`))})]}):null]})]}),(0,t.jsx)("div",{className:"flex shrink-0 justify-end md:max-w-[200px] md:flex-col md:justify-center mt-auto",children:(0,t.jsxs)("span",{className:"inline-flex items-center justify-center gap-1.5 rounded-lg px-4 py-2.5 text-xs font-semibold text-white product-add-to-cart-button-color md:w-full md:min-w-[148px]",children:[(0,t.jsx)(S.Plus,{size:16,weight:"bold",className:"shrink-0"}),(0,t.jsx)("span",{className:"whitespace-nowrap",children:w})]})})]})}],873837),e.s(["default",0,({product:e,brand:r,setSwipeCardSelectedVariant:l,selectedCategory:s,selectedSpecial:d,cardFieldVisibilityObject:n})=>{let{productCardSettings:u}=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:p=!0}=n??{},m=u?.productCardAddToCartLabel?.trim()||"LEARN MORE";(0,g.default)({product:e,brand:r,setSwipeCardSelectedVariant:l,selectedCategory:s,selectedSpecial:d});let x=u?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,u?.newProductEnabledDuration);return(0,t.jsxs)("div",{className:"relative flex flex-col items-center group",children:[x&&(0,t.jsx)("div",{className:"absolute -right-1 top-0 z-10 h-16 w-16",children:(0,t.jsxs)("div",{className:"relative h-full w-full",children:[(0,t.jsx)(v,{fillColor:u?.newProductTagBgColor||"#76d145",strokeColor:u?.newProductTagTextColor||"#ffffff",className:"h-full w-full"}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-xs font-medium",style:{color:u?.newProductTagTextColor||"#ffffff"},children:u?.newProductTagTitle||"New"})]})}),(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,className:"relative w-full aspect-square product-card-background-color roun
44ded-[1rem] p-8 mb-8 overflow-hidden flex items-center justify-center transition-all duration-500 active:scale-[0.98]",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-[var(--product-card-text-color)] opacity-0 group-hover:opacity-10 transition-opacity duration-700"}),(0,t.jsx)("div",{className:"relative z-10 flex items-end gap-2 w-full h-full",children:(0,t.jsx)("div",{className:"w-full h-full overflow-hidden relative",children:(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image",fill:!0,className:"object-cover group-hover:scale-105 transition-all duration-700",sizes:"(max-width: 768px) 50vw, 200px"})})})]}),p&&e?.name&&(0,t.jsx)("h3",{className:"product-card-text-color font-display font-black text-center text-sm md:text-base tracking-wide uppercase mb-6 line-clamp-2 leading-tight",children:e.name}),(0,t.jsx)(o.default,{href:`/product/${e?.slug}`,className:"px-10 py-4 rounded-full border-[1.5px] border-[var(--product-card-text-color)] product-add-to-cart-button-background-color-v23 font-display font-black text-xs tracking-widest uppercase transition-all duration-300 active:scale-95 shadow-[0_0_8px_2px_var(--product-card-text-color)/40] hover:shadow-[0_0_14px_5px_var(--product-card-text-color)/30] hover:brightness-105 focus:outline-none focus:ring-2 focus:ring-[var(--product-card-text-color)]",style:{boxShadow:"0 0 8px 2px var(--product-card-text-color)",textShadow:"0 0 3px var(--product-card-text-color), 0 0 1px #fff"},children:m})]})}],421945),e.s(["default",0,({product:e,brand:r,selectedCategory:s={},selectedSpecial:d={},cardFieldVisibilityObject:n})=>{let u=(0,l.default)().isMobile,{productCardSettings:p}=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:m=!0}=n??{},{handleRouteChange:x}=(0,C.default)({product:e,brand:r,selectedCategory:s,selectedSpecial:d}),f=p?.productCardAddToCartLabel?.trim()||"LEARN MORE";return(0,t.jsxs)("div",{className:"relative flex w-full flex-col gap-3 rounded-2xl border product-card-border-color product-card-background-color p-4 shadow-md product-card-shadow-color md:flex-row md:items-center md:justify-between md:gap-4",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3 md:gap-4",children:[(0,t.jsxs)("div",{className:"relative h-24 w-24 shrink-0 overflow-hidden md:h-28 md:w-28",children:[(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 112px, 128px",className:"object-cover w-full h-full",imgixParams:{w:u?112:128,h:u?112:128,auto:"format,compress"}}),p?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,p?.newProductEnabledDuration)&&(0,t.jsx)("span",{style:{backgroundColor:p?.newProductTagBgColor||"#76d145",color:p?.newProductTagTextColor||"#ffffff"},className:"absolute -right-2 top-0 flex h-8 w-8 items-center justify-center rounded-full text-[10px] font-semibold",children:p?.newProductTagTitle||"New"})]}),(0,t.jsx)("div",{className:"min-w-0 flex-1 space-y-2",children:m&&e?.name&&(0,t.jsx)("h3",{className:"line-clamp-2 text-sm font-black uppercase tracking-wide product-card-text-color md:text-base",children:e.name})})]}),(0,t.jsx)(o.default,{href:`/product/${e?.slug}`,onClick:()=>x(`/product/${e?.slug}`),className:"inline-flex shrink-0 px-10 py-4 rounded-full border-[2px] border-[var(--product-card-text-color)] product-add-to-cart-button-background-color-v23 font-display hover:shadow-lg font-black text-xs tracking-widest uppercase transition-all duration-300 active:scale-95","aria-label":f,children:f})]})}],974003),e.s(["default",0,({product:e,brand:s,selectedCategory:n,selectedSpecial:u,cardFieldVisibilityObject:p,priority:m=!1})=>{let{productCardSettings:x}=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:f=!1,isShowcaseCategoryEnabled:h=!1,isShowcaseStrainTypeEnabled:g=!1}=p??{},{handleRouteChange:b}=(0,d.default)({product:e,brand:s,selectedCategory:n,selectedSpecial:u}),j=(0,l.default)().isMobile,w=x?.productCardAddToCartLabel?.trim()||"Explore Product";return(0,t.jsxs)("div",{className:"group relative h-full rounded-xl bg-white overflow-hidden shadow-lg w-full min-h-[300px] md:min-
44h-[420px] before:absolute before:inset-0  before:z-[1] flex flex-col items-end showcase-product-card-five-overlay",children:[x?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,x?.newProductEnabledDuration)&&(0,t.jsx)("div",{style:{backgroundColor:x?.newProductTagBgColor||"#76d145",color:x?.newProductTagTextColor||"#ffffff"},className:"absolute right-4 top-4 rounded-full px-3 py-1 text-xs font-semibold w-14 h-14 flex items-center justify-center z-10 shadow-lg",children:(0,t.jsx)("span",{className:"text-sm font-bold text-center",children:x?.newProductTagTitle||"New"})}),(0,t.jsx)("div",{className:"absolute inset-0 top-0 left-0 bottom-0 right-0 w-full h-full flex items-center justify-center",children:(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:340,height:340,sizes:"(max-width: 768px) 280px, 340px",quality:90,priority:m,className:"object-cover w-full h-full drop-shadow-2xl",imgixParams:{w:j?280:340,h:j?280:340,auto:"format,compress"}})}),(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-6 pb-[4.5rem] md:pb-6 md:group-hover:pb-[4.5rem] space-y-2 z-[2] mt-auto transition-[padding] duration-300",children:[h&&(0,t.jsx)("p",{className:"text-base font-semibold product-card-category-badge-color ",children:e?.category?.replace(/_/g," ")}),f&&(0,t.jsx)("h3",{className:"text-xl md:text-3xl font-extrabold product-card-text-color leading-tight uppercase",children:e?.name}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[g&&e?.strainType&&(0,t.jsx)("span",{className:"inline-block text-xs font-extrabold product-card-strain-badge-color uppercase",children:e?.strainType}),g&&e?.strainType&&e?.effects?.length>0&&(0,t.jsx)("span",{className:"inline-block w-1.5 h-1.5 product-card-effects-badge-bg-color rounded-full"}),e?.effects?.map((e,a)=>(0,t.jsx)(r.Fragment,{children:(0,t.jsx)("span",{className:"inline-block text-xs font-extrabold product-card-effects-badge-color uppercase",children:e})},a))]})]}),(0,t.jsxs)(o.default,{href:`/product/${e?.slug}`,onClick:()=>b(`/product/${e?.slug}`),type:"button",className:"absolute bottom-0 left-0 right-0 z-[3] flex w-full items-center justify-center gap-2 px-3 py-4 text-sm font-bold focus:outline-none bg-[var(--product-add-to-cart-button-background-color)] text-[var(--product-add-to-cart-button-text-color)] hover:bg-[var(--product-add-to-cart-button-text-color)] hover:text-[var(--product-add-to-cart-button-background-color)] transition-all duration-300 md:translate-y-full md:opacity-0 md:group-hover:translate-y-0 md:group-hover:opacity-100 md:focus-visible:translate-y-0 md:focus-visible:opacity-100",children:[(0,t.jsx)(S.Plus,{size:14,weight:"bold"}),w]})]})}],111258),e.s(["default",0,({product:e,brand:s,selectedCategory:n,selectedSpecial:u,cardFieldVisibilityObject:p})=>{let m=(0,l.default)().isMobile,{productCardSettings:x}=(0,i.useGlobalStore)(),{isShowcaseTitleEnabled:f=!1,isShowcaseCategoryEnabled:h=!1,isShowcaseStrainTypeEnabled:g=!1}=p??{},{handleRouteChange:b}=(0,d.default)({product:e,brand:s,selectedCategory:n,selectedSpecial:u}),j=x?.productCardAddToCartLabel?.trim()||"Explore Product";return(0,t.jsxs)("div",{className:"relative md:grid md:grid-cols-12 md:items-center justify-between rounded-xl shadow-lg overflow-hidden w-full p-2 md:p-4 product-card-background-color product-card-border-color ",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 md:gap-6 md:col-span-10",children:[(0,t.jsxs)("div",{className:"relative w-24 h-24 md:w-56 md:h-56 rounded-xl flex-shrink-0",children:[x?.isNewProductEnabled&&(0,c.isNewProduct)(e?.createdAt,x?.newProductEnabledDuration)&&(0,t.jsx)("div",{style:{backgroundColor:x?.newProductTagBgColor||"#76d145",color:x?.newProductTagTextColor||"#ffffff"},className:"absolute left-2 top-2 md:left-4 md:top-4 rounded-full px-2 py-1 md:px-3 md:py-1 text-xs font-semibold w-8 h-8 md:w-14 md:h-14 flex items-center justify-center z-10 shadow-lg",children:(0,t.jsx)("span",{className:"text-[10px] md:text-sm font-bold text-center",children:x?.newProductTagTitle||"New"})}),(0,t.jsx)(a.default,{src:e?.image||"",alt:e?.name||"Product Image Alt",title:e?.name||"Product",width:224,height:224,sizes:"(max-width: 768px) 96px, 224px",quality:90,className:"object-contain w-full h-full",imgixParams:{w:m?96:224,h:m?96:224,auto:"format,compress"}})]}),(0,t.jsxs)("div",{className:"flex-1 space-y-0.5 md:space-y-2 min-w-0",children:[h&&e?.category&&(0,t.jsx)("p",{className:"text-xs md:text-base font-semibold product-card-category-badge-color tracking-wide line-clamp-1",children:e?.category?.replace(/_/g," ")}),f&&(0,t.jsx)("h3",{className:"text-sm md:text-3xl font-extrabold product-card-text-color leading-tight uppercase line-clamp-2",children:e?.name}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1 md:gap-1.5",children:[g&&e?.strainType&&(0,t.jsx)("span",{className:"inline-block text-[10px] md:text-sm font-extrabold product-card-strain-badge-color uppercase",children:e?.
44strainType}),g&&e?.strainType&&e?.effects?.length>0&&(0,t.jsx)("span",{className:"inline-block w-1.5 h-1.5 product-card-text-color-like-background rounded-full"}),e?.effects?.map((a,l)=>(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("span",{className:"inline-block text-[10px] md:text-sm font-extrabold product-card-effects-badge-color uppercase",children:a}),l<(e?.effects?.length||0)-1&&(0,t.jsx)("span",{className:"inline-block w-1 h-1 md:w-1.5 md:h-1.5 product-card-text-color-like-background rounded-full"})]},l))]}),(0,t.jsx)("div",{className:"md:hidden flex-shrink-0 pt-1",children:(0,t.jsx)(o.default,{href:`/product/${e?.slug}`,onClick:()=>b(`/product/${e?.slug}`),type:"button","aria-label":j,title:j,className:"inline-flex h-9 w-9 items-center justify-center rounded-full transition-colors product-add-to-cart-button-color",children:(0,t.jsx)(S.Plus,{size:16,weight:"bold"})})})]})]}),(0,t.jsx)("div",{className:"hidden md:flex md:col-span-2 md:justify-end",children:(0,t.jsx)(o.default,{href:`/product/${e?.slug}`,onClick:()=>b(`/product/${e?.slug}`),type:"button","aria-label":j,title:j,className:"inline-flex h-12 w-12 items-center justify-center rounded-full transition-colors product-add-to-cart-button-color",children:(0,t.jsx)(S.Plus,{size:20,weight:"bold"})})})]})}],545433)}]);

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.