@colabcommerce/elements 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/QuoteForm.js +24 -0
  2. package/dist/Store.js +37 -0
  3. package/dist/StoreLocator.js +34 -0
  4. package/dist/StoreLocatorProvider.js +1 -0
  5. package/dist/elements.css +1 -0
  6. package/dist/index-DvX0QvFh.js +31 -0
  7. package/dist/navigation-DpGLbcKb.js +1 -0
  8. package/dist/store-locator-Bto20jHS.js +1 -0
  9. package/dist/styles.js +1 -0
  10. package/dist/translations-6mspyPRw.js +1 -0
  11. package/dist/useStoreLocator.js +1 -0
  12. package/dist/useStoreLocatorConfig-r4Y_2t-M.js +1 -0
  13. package/package.json +5 -1
  14. package/.pnp.cjs +0 -16484
  15. package/.pnp.loader.mjs +0 -2126
  16. package/.yarn/install-state.gz +0 -0
  17. package/.yarn/releases/yarn-4.12.0.cjs +0 -942
  18. package/.yarnrc.yml +0 -1
  19. package/cypress/fixtures/example.json +0 -5
  20. package/cypress/support/commands.js +0 -25
  21. package/cypress/support/component-index.html +0 -15
  22. package/cypress/support/component.js +0 -26
  23. package/eslint.config.js +0 -32
  24. package/index.html +0 -13
  25. package/playground/index.html +0 -14
  26. package/playground/main.jsx +0 -36
  27. package/src/App.css +0 -0
  28. package/src/App.jsx +0 -65
  29. package/src/components/CollapsibleStoreHours/index.jsx +0 -269
  30. package/src/components/HoursList/index.jsx +0 -225
  31. package/src/components/LeadForm/index.jsx +0 -241
  32. package/src/components/MessageDialog/index.jsx +0 -169
  33. package/src/components/QuoteForm/index.jsx +0 -82
  34. package/src/components/QuoteFormSearch/index.jsx +0 -276
  35. package/src/components/QuoteFormStoreList/index.jsx +0 -65
  36. package/src/components/QuoteFormStoreListItem/index.jsx +0 -134
  37. package/src/components/QuoteLeadForm/index.jsx +0 -16
  38. package/src/components/QuoteMap/index.jsx +0 -96
  39. package/src/components/QuoteMapMarker/index.jsx +0 -56
  40. package/src/components/StaticMap/index.jsx +0 -24
  41. package/src/components/Store/index.jsx +0 -44
  42. package/src/components/StoreContact/index.jsx +0 -96
  43. package/src/components/StoreInfo/index.jsx +0 -50
  44. package/src/components/StoreList/index.jsx +0 -59
  45. package/src/components/StoreListItem/index.jsx +0 -99
  46. package/src/components/StoreListItem/indexStoreListItem.cy.jsx +0 -30
  47. package/src/components/StoreListNoneFound/index.jsx +0 -16
  48. package/src/components/StoreLocator/index.jsx +0 -43
  49. package/src/components/StoreLocatorMap/index.jsx +0 -93
  50. package/src/components/StoreLocatorMapMarker/index.jsx +0 -55
  51. package/src/components/StoreLocatorMessageDialog/index.jsx +0 -20
  52. package/src/components/StoreLocatorSearch/index.jsx +0 -316
  53. package/src/components/StoreMap/index.jsx +0 -30
  54. package/src/components/StoreMeta/index.jsx +0 -7
  55. package/src/components/StoreProducts/index.jsx +0 -112
  56. package/src/components/ui/Badge/index.jsx +0 -46
  57. package/src/components/ui/Button/index.jsx +0 -56
  58. package/src/components/ui/Button/indexButton.cy.jsx +0 -9
  59. package/src/components/ui/Card/index.jsx +0 -90
  60. package/src/components/ui/Input/index.jsx +0 -19
  61. package/src/components/ui/Input/indexInput.cy.jsx +0 -9
  62. package/src/components/ui/LoadingPuff/index.jsx +0 -10
  63. package/src/components/ui/Panel/index.jsx +0 -23
  64. package/src/components/ui/PhoneNumberInput/index.jsx +0 -17
  65. package/src/contexts/quote-form.jsx +0 -94
  66. package/src/contexts/store-locator.jsx +0 -83
  67. package/src/contexts/store.jsx +0 -59
  68. package/src/contexts/translations.jsx +0 -11
  69. package/src/dist.css +0 -229
  70. package/src/entries/QuoteForm.js +0 -2
  71. package/src/entries/Store.js +0 -2
  72. package/src/entries/StoreLocator.js +0 -2
  73. package/src/entries/StoreLocatorProvider.js +0 -2
  74. package/src/entries/styles.js +0 -2
  75. package/src/entries/useStoreLocator.js +0 -2
  76. package/src/i18n/defaultResources.js +0 -19
  77. package/src/i18n/index.js +0 -44
  78. package/src/i18n/mergeResources.js +0 -22
  79. package/src/index.css +0 -214
  80. package/src/lib/addressComponentsToAddress.js +0 -43
  81. package/src/lib/productSchema.js +0 -6
  82. package/src/lib/useGeolocation.js +0 -266
  83. package/src/lib/useHours.js +0 -205
  84. package/src/lib/usePlacesAutocomplete.js +0 -288
  85. package/src/lib/useProductAvailability.js +0 -38
  86. package/src/lib/useRudderAnalytics.js +0 -50
  87. package/src/lib/useSearchResults.js +0 -102
  88. package/src/lib/useStoreLocatorConfig.js +0 -50
  89. package/src/lib/utils/cn.js +0 -6
  90. package/src/lib/utils/measure.js +0 -31
  91. package/src/locales/en/default.json +0 -58
  92. package/src/locales/es/default.json +0 -58
  93. package/src/locales/fr/default.json +0 -58
  94. package/src/locales/it/default.json +0 -58
  95. package/src/main.jsx +0 -10
  96. package/vite.config.js +0 -67
  97. /package/{public → dist}/vite.svg +0 -0
@@ -0,0 +1,24 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{c as a}from"react/compiler-runtime";import{createContext as l,useState as o,useContext as s,useRef as r,useId as n,useEffect as c}from"react";import{u as i,a as d,b as m}from"./useStoreLocatorConfig-r4Y_2t-M.js";import*as u from"@radix-ui/react-popover";import*as h from"@radix-ui/react-scroll-area";import"@radix-ui/react-slot";import{b as p,c as f,u as x,I as g,A as v,a as y,M as b,m as N,i as _,j as S,k as w,L as k,n as I,l as C,B as L}from"./index-DvX0QvFh.js";import{useTranslation as A}from"react-i18next";import{c as j,S as z,M,B as D,C as F,a as O,L as P}from"./translations-6mspyPRw.js";import"@radix-ui/react-collapsible";const T=l(),q=t=>{const l=a(34),{organizationId:s,locale:r,baseUrl:n,products:c,filterBy:u,children:h}=t,p=void 0===n?"/retailers":n;let f;l[0]!==c?(f=void 0===c?[]:c,l[0]=c,l[1]=f):f=l[1];const x=f;let g;l[2]!==u?(g=void 0===u?{stocked:["sku"],available:["sku"]}:u,l[2]=u,l[3]=g):g=l[3];const v=g,[y,b]=o(0),[N,_]=o(null),[S,w]=o(null),[k,I]=o(null),[C,L]=o(!1),[A,j]=o("300mi"),[z,M]=o(null),[D,F]=o("geolocation");let O;l[4]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(O={autoGeoLocate:!1},l[4]=O):O=l[4];const{location:P}=i(O),q="geolocation"===D?P:z||P;let U;l[5]!==q||l[6]!==s||l[7]!==A?(U={organizationId:s,location:q,page:1,radius:A,pageSize:10},l[5]=q,l[6]=s,l[7]=A,l[8]=U):U=l[8];const{stores:E,meta:$,isLoading:B,error:H}=d(U),{config:R,isLoading:W,error:Z}=m(s);let J;l[9]!==p||l[10]!==R||l[11]!==Z||l[12]!==W||l[13]!==v||l[14]!==S||l[15]!==r||l[16]!==q||l[17]!==C||l[18]!==k||l[19]!==$||l[20]!==s||l[21]!==x||l[22]!==H||l[23]!==B||l[24]!==z||l[25]!==A||l[26]!==N||l[27]!==y||l[28]!==E||l[29]!==D?(J={stepIndex:y,setStepIndex:b,selectedStoreId:N,setSelectedStoreId:_,focusedStoreId:S,setFocusedStoreId:w,organizationId:s,location:q,locale:r,stores:E,meta:$,searchIsLoading:B,searchError:H,config:R,configIsLoading:W,configError:Z,messageDialogOpen:C,setMessageDialogOpen:L,messageStoreId:k,setMessageStoreId:I,baseUrl:p,searchRadius:A,setSearchRadius:j,searchLocation:z,setSearchLocation:M,useLocationType:D,setUseLocationType:F,products:x,filterBy:v},l[9]=p,l[10]=R,l[11]=Z,l[12]=W,l[13]=v,l[14]=S,l[15]=r,l[16]=q,l[17]=C,l[18]=k,l[19]=$,l[20]=s,l[21]=x,l[22]=H,l[23]=B,l[24]=z,l[25]=A,l[26]=N,l[27]=y,l[28]=E,l[29]=D,l[30]=J):J=l[30];const K=J;let V;return l[31]!==h||l[32]!==K?(V=/* @__PURE__ */e(T.Provider,{value:K,children:h}),l[31]=h,l[32]=K,l[33]=V):V=l[33],V},U=()=>s(T),E=j("check-check",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]),$=j("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);function B(e){return e?.label??e?.description??e?.text??e?.placePrediction?.text?.text??e?.placePrediction?.structuredFormat?.mainText?.text??""}function H(){const l=a(77),{t:s}=A(),[i,d]=o("");o(!1);const[m,x]=o(!1),[g,v]=o(-1),{location:y,setSearchLocation:b,setUseLocationType:N}=U();let _,S,w;l[0]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(_={lat:37.7937,lng:-122.3965},l[0]=_):_=l[0],l[1]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(S=["locality","postal_code"],l[1]=S):S=l[1],l[2]!==i?(w={query:i,apiKey:"AIzaSyAnJmWEU1r63DiRWHkjczxzHyIEq3dhj4M",center:_,radiusMeters:1e4,types:S},l[2]=i,l[3]=w):w=l[3];const{results:k,isLoading:I,error:C}=p(w);let L;l[4]!==k?(L=Array.isArray(k)?k:[],l[4]=k,l[5]=L):L=l[5];const j=L,D=r(null),F=n(),O=g>=0?`${F}-opt-${g}`:void 0;let P,T,q;l[6]!==I||l[7]!==j.length||l[8]!==m?(P=()=>{m&&(I||v(j.length?0:-1))},T=[m,I,j.length],l[6]=I,l[7]=j.length,l[8]=m,l[9]=P,l[10]=T):(P=l[9],T=l[10]),c(P,T),l[11]!==b||l[12]!==N?(q=e=>{const t=B(e);if(!t)return;d(t),x(!1),requestAnimationFrame(()=>D.current?.focus());const a={latitude:e.location?.lat??null,longitude:e.location?.lng??null,accuracy:null,altitude:0,altitudeAccuracy:null,heading:null,speed:null,city:e.city??null,region:e.region??null,country:e.country??null,postal:e.postalCode??null,timezone:null,ip:null,type:"search",raw:e};b(a),N("search")},l[11]=b,l[12]=N,l[13]=q):q=l[13];const E=q;let $;l[14]!==g||l[15]!==E||l[16]!==j||l[17]!==m?($=e=>{if(m||"ArrowDown"!==e.key&&"ArrowUp"!==e.key){if(m)e:switch(e.key){case"ArrowDown":e.preventDefault(),v(e=>Math.min(e+1,j.length-1));break e;case"ArrowUp":e.preventDefault(),v(Z);break e;case"Enter":g>=0&&j[g]&&(e.preventDefault(),E(j[g]));break e;case"Escape":e.preventDefault(),x(!1)}}else x(!0)},l[14]=g,l[15]=E,l[16]=j,l[17]=m,l[18]=$):$=l[18];const H=$;let J;l[19]!==N?(J=()=>{N("geolocation"),x(!1),d("")},l[19]=N,l[20]=J):J=l[20];const K=J;let V;l[21]!==C||l[22]!==I||l[23]!==j.length||l[24]!==m||l[25]!==i?(V=m&&!I&&!C&&i.trim().length>0&&0===j.length,l[21]=C,l[22]=I,l[23]=j.length,l[24]=m,l[25]=i,l[26]=V):V=l[26];const G=V;let Q,Y,X,ee,te,ae,le,oe,se,re,ne,ce,ie,de,me,ue,he;return l[27]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(Q=/* @__PURE__ */e(z,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),l[27]=Q):Q=l[27],l[28]!==y||l[29]!==s?(Y=y?.city?s("default:location_search_placeholder_w_location",{location:y.city}):s("default:location_search_placeholder"),l[28]=y,l[29]=s,l[30]=Y):Y=l[30],l[31]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(X=e=>{d(e.target.value),x(!0)},ee=()=>x(!0),l[31]=X,l[32]=ee):(X=l[31],ee=l[32]),l[33]!==O||l[34]!==F||l[35]!==H||l[36]!==m||l[37]!==i||l[38]!==Y?(te=/* @__PURE__ */e(u.Anchor,{asChild:!0,children:/* @__PURE__ */t("div",{className:"flex-1 relative",children:[Q,
2
+ /* @__PURE__ */e(f,{ref:D,type:"text",placeholder:Y,value:i,onChange:X,onFocus:ee,onKeyDown:H,className:"pl-10 h-12",role:"combobox","aria-autocomplete":"list","aria-expanded":m,"aria-controls":F,"aria-activedescendant":O})]})}),l[33]=O,l[34]=F,l[35]=H,l[36]=m,l[37]=i,l[38]=Y,l[39]=te):te=l[39],l[40]!==C?(ae=C?/* @__PURE__ */e("div",{className:"px-3 py-2 text-sm rounded-md border border-destructive/30 bg-destructive/10 text-destructive",children:String(C)}):null,l[40]=C,l[41]=ae):ae=l[41],l[42]!==I||l[43]!==s?(le=I?/* @__PURE__ */e("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:s("default:loading")}):null,l[42]=I,l[43]=s,l[44]=le):le=l[44],l[45]!==G||l[46]!==s?(oe=G?/* @__PURE__ */e("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:s("default:no_results")}):null,l[45]=G,l[46]=s,l[47]=oe):oe=l[47],l[48]!==g||l[49]!==E||l[50]!==C||l[51]!==I||l[52]!==j||l[53]!==F?(se=!I&&!C&&j.map((a,l)=>{const o=l===g,s=B(a),r=(n=a,n?.secondary??n?.secondary_text??n?.placePrediction?.structuredFormat?.secondaryText?.text??n?.placePrediction?.structuredFormat?.secondaryText??"");var n;const c=function(e,t){return e?.id??e?.place_id??e?.placePrediction?.placeId??t}(a,`${l}`);return s?/* @__PURE__ */t("div",{id:`${F}-opt-${l}`,role:"option","aria-selected":o,onMouseEnter:()=>v(l),onMouseDown:R,onClick:()=>E(a),className:["cursor-pointer rounded-lg px-3 py-2",o?"bg-muted":"hover:bg-muted/60"].join(" "),children:[
3
+ /* @__PURE__ */e("div",{className:"text-sm text-left font-medium leading-tight",children:s}),r?/* @__PURE__ */e("div",{className:"text-xs text-left text-muted-foreground mt-1 leading-tight",children:r}):null]},c):null}),l[48]=g,l[49]=E,l[50]=C,l[51]=I,l[52]=j,l[53]=F,l[54]=se):se=l[54],l[55]!==F||l[56]!==ae||l[57]!==le||l[58]!==oe||l[59]!==se?(re=/* @__PURE__ */e(h.Viewport,{children:/* @__PURE__ */t("div",{id:F,role:"listbox",className:"p-2",children:[ae,le,oe,se]})}),l[55]=F,l[56]=ae,l[57]=le,l[58]=oe,l[59]=se,l[60]=re):re=l[60],l[61]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(ne=/* @__PURE__ */e(h.Scrollbar,{orientation:"vertical",className:"flex select-none touch-none p-0.5 bg-transparent",children:/* @__PURE__ */e(h.Thumb,{className:"flex-1 bg-border rounded-full"})}),l[61]=ne):ne=l[61],l[62]!==re?(ce=/* @__PURE__ */e(u.Content,{sideOffset:6,align:"start",onOpenAutoFocus:W,className:"w-[var(--radix-popover-trigger-width)] max-w-[560px] rounded-xl border rounded bg-background shadow-lg overflow-hidden",children:/* @__PURE__ */t(h.Root,{className:"max-h-80",children:[re,ne]})}),l[62]=re,l[63]=ce):ce=l[63],l[64]!==m||l[65]!==te||l[66]!==ce?(ie=/* @__PURE__ */e("div",{className:"flex flex-row gap-4",children:/* @__PURE__ */t(u.Root,{open:m,onOpenChange:x,children:[te,ce]})}),l[64]=m,l[65]=te,l[66]=ce,l[67]=ie):ie=l[67],l[68]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(de=/* @__PURE__ */e(M,{className:"w-4 h-4"}),l[68]=de):de=l[68],l[69]!==s?(me=s("default:use_my_location"),l[69]=s,l[70]=me):me=l[70],l[71]!==K||l[72]!==me?(ue=/* @__PURE__ */t("div",{className:"mt-2 flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[de,
4
+ /* @__PURE__ */e("button",{className:"text-primary hover:underline font-medium",type:"button",onClick:K,children:me})]}),l[71]=K,l[72]=me,l[73]=ue):ue=l[73],l[74]!==ie||l[75]!==ue?(he=/* @__PURE__ */e("div",{className:"max-w-3xl mx-auto",children:/* @__PURE__ */t("div",{className:"rounded-xl p-6",children:[ie,ue]})}),l[74]=ie,l[75]=ue,l[76]=he):he=l[76],he}function R(e){return e.preventDefault()}function W(e){return e.preventDefault()}function Z(e){return Math.max(e-1,0)}const J=l=>{const s=a(29),{store:r,isSelected:n,onClick:c,onSelect:i}=l,[,d]=o(!1),[m,u]=x();let h;s[0]!==c||s[1]!==r.id?(h=()=>{c&&c(r.id)},s[0]=c,s[1]=r.id,s[2]=h):h=s[2];const p=h;let f;s[3]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(f=()=>d(!1),s[3]=f):f=s[3];const y=f,b=n;let N;s[4]!==i||s[5]!==r.id?(N=e=>{e.stopPropagation(),i&&i(r.id)},s[4]=i,s[5]=r.id,s[6]=N):N=s[6];const _=N,S=1*r.address?.latitude,w=1*r.address?.longitude;let k;s[7]!==S||s[8]!==w?(k={lat:S,lng:w},s[7]=S,s[8]=w,s[9]=k):k=s[9];const I="w-8 h-8 hover:cursor-pointer "+(n?"text-primary fill-white z-10":"z-1 fill-white text-muted-foreground");let C,L,A;return s[10]!==I?(C=/* @__PURE__ */e(M,{className:I,size:32}),s[10]=I,s[11]=C):C=s[11],s[12]!==_||s[13]!==u||s[14]!==b||s[15]!==r.address?.city||s[16]!==r.address?.postal_code||s[17]!==r.address?.province||s[18]!==r.address?.street_line_one||s[19]!==r.address?.street_line_two||s[20]!==r.retailer_name?(L=b&&/* @__PURE__ */t(g,{anchor:u,headerContent:/* @__PURE__ */e("h3",{className:"font-bold text-sm align-center text-left mb-2",children:r.retailer_name}),onClose:y,children:[
5
+ /* @__PURE__ */t("p",{className:"text-xs text-left text-muted-foreground",children:[r.address?.street_line_one,r.address?.street_line_two?`, ${r.address?.street_line_two}`:""]}),
6
+ /* @__PURE__ */t("p",{className:"text-xs text-left text-muted-foreground mb-2",children:[r.address?.city,", ",r.address?.province," ",r.address?.postal_code]}),
7
+ /* @__PURE__ */e("div",{className:"flex flex-row gap-2 mb-1",children:/* @__PURE__ */e(D,{className:"flex-1 md:flex-row",size:"sm",onClick:_,children:"Select"})})]}),s[12]=_,s[13]=u,s[14]=b,s[15]=r.address?.city,s[16]=r.address?.postal_code,s[17]=r.address?.province,s[18]=r.address?.street_line_one,s[19]=r.address?.street_line_two,s[20]=r.retailer_name,s[21]=L):L=s[21],s[22]!==p||s[23]!==m||s[24]!==r.name||s[25]!==k||s[26]!==C||s[27]!==L?(A=/* @__PURE__ */t(v,{position:k,ref:m,title:r.name,onClick:p,children:[C,L]}),s[22]=p,s[23]=m,s[24]=r.name,s[25]=k,s[26]=C,s[27]=L,s[28]=A):A=s[28],A},K=()=>{const l=a(46),{location:o,stores:s,focusedStoreId:r,setFocusedStoreId:n,setSelectedStoreId:i,setStepIndex:d}=U(),m=y();let u;l[0]!==m?(u=()=>{if(!m)return;const e=m.getZoom();m.setZoom(e+1)},l[0]=m,l[1]=u):u=l[1];const h=u;let p;l[2]!==m?(p=()=>{if(!m)return;const e=m.getZoom();m.setZoom(e-1)},l[2]=m,l[3]=p):p=l[3];const f=p;let x,g,v,N,_;l[4]!==o||l[5]!==m?(x=()=>{m&&o?.latitude&&o?.longitude&&(m.panTo({lat:o.latitude,lng:o.longitude}),m.setZoom(9))},g=[o,m],l[4]=o,l[5]=m,l[6]=x,l[7]=g):(x=l[6],g=l[7]),c(x,g),l[8]!==r||l[9]!==m||l[10]!==s?(v=()=>{if(!m||!r)return;const e=s.find(e=>e.id===r);e&&e.address&&m.panTo({lat:1*e.address.latitude,lng:1*e.address.longitude})},N=[r,s,m],l[8]=r,l[9]=m,l[10]=s,l[11]=v,l[12]=N):(v=l[11],N=l[12]),c(v,N),l[13]!==n?(_=e=>{n(e)},l[13]=n,l[14]=_):_=l[14];const S=_;let w;l[15]!==i||l[16]!==d?(w=e=>{i(e),d(1)},l[15]=i,l[16]=d,l[17]=w):w=l[17];const k=w;let I,C,L,A,j,z,M,D,F,O,P;if(l[18]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(I={width:"100%",height:"300px"},C={lat:22.54992,lng:0},l[18]=I,l[19]=C):(I=l[18],C=l[19]),l[20]!==r||l[21]!==S||l[22]!==k||l[23]!==s){let t;l[25]!==r||l[26]!==S||l[27]!==k?(t=t=>/* @__PURE__ */e(J,{store:t,isSelected:r===t.id,onClick:S,onSelect:k},t.id),l[25]=r,l[26]=S,l[27]=k,l[28]=t):t=l[28],L=s.map(t),l[20]=r,l[21]=S,l[22]=k,l[23]=s,l[24]=L}else L=l[24];return l[29]!==L?(A=/* @__PURE__ */e("div",{className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-primary/5 to-muted",children:/* @__PURE__ */e("div",{className:"text-center w-full",children:/* @__PURE__ */e(b,{style:I,defaultCenter:C,defaultZoom:3,gestureHandling:"greedy",disableDefaultUI:!0,mapId:"b1e4f5f5f8c7e2d9",children:L})})}),l[29]=L,l[30]=A):A=l[30],l[31]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(j=/* @__PURE__ */e("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:/* @__PURE__ */e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),l[31]=j):j=l[31],l[32]!==h?(z=/* @__PURE__ */e("button",{className:"bg-card border shadow-md rounded-lg p-2 hover:bg-accent transition-colors",onClick:h,children:j}),l[32]=h,l[33]=z):z=l[33],l[34]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(M=/* @__PURE__ */e("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:/* @__PURE__ */e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12H4"})}),l[34]=M):M=l[34],l[35]!==f?(D=/* @__PURE__ */e("button",{className:"bg-card border shadow-md rounded-lg p-2 hover:bg-accent transition-colors",onClick:f,children:M}),l[35]=f,l[36]=D):D=l[36],l[37]!==z||l[38]!==D?(F=/* @__PURE__ */t("div",{className:"absolute top-4 right-4 flex flex-col gap-2",children:[z,D]}),l[37]=z,l[38]=D,l[39]=F):F=l[39],l[40]!==s.length?(O=/* @__PURE__ */t("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 bg-card border shadow-lg rounded-full px-4 py-2 text-sm font-medium",children:[
8
+ /* @__PURE__ */e("span",{className:"text-primary",children:s.length})," stores found"]}),l[40]=s.length,l[41]=O):O=l[41],l[42]!==A||l[43]!==F||l[44]!==O?(P=/* @__PURE__ */e("div",{className:"relative",children:/* @__PURE__ */t("div",{className:"bg-muted rounded-xl overflow-hidden border shadow-md h-[300px]",children:[A,F,O]})}),l[42]=A,l[43]=F,l[44]=O,l[45]=P):P=l[45],P},V=l=>{const o=a(65),{id:s,name:r,addressLineOne:n,city:c,province:i,postalCode:d,hours:m,distance:u,services:h,isFocused:p,handleFocus:f,handleSelect:x,requestedProducts:g,locationProducts:v}=l;let y;o[0]!==h?(y=void 0===h?[]:h,o[0]=h,o[1]=y):y=o[1];const b=y;let S;o[2]!==g?(S=void 0===g?[]:g,o[2]=g,o[3]=S):S=o[3];const w=S;let k;o[4]!==v?(k=void 0===v?[]:v,o[4]=v,o[5]=k):k=o[5];const I=k,{t:C}=A(),{availabilitySummary:L}=((e,t,a=["sku"])=>{const l={};t.map(t=>{const o=e.find(e=>a.some(a=>e[a]===t[a]));l[t.sku]=o?{stocked:o.stocked,available:o.available}:{stocked:!1,available:!1}});const o=Object.values(l).every(e=>e.stocked),s=Object.values(l).every(e=>e.available),r=Object.values(l).every(e=>!e.stocked),n=Object.values(l).every(e=>!e.available);let c="mixed";return o?c="allStocked":s?c="allAvailable":r&&n&&(c="none"),{availability:l,allAvailable:s,allStocked:o,noneStocked:r,noneAvailable:n,availabilitySummary:c}})(I,w);let j;o[6]!==x||o[7]!==s?(j=e=>{e.stopPropagation(),x(s)},o[6]=x,o[7]=s,o[8]=j):j=o[8];const z=j,O="bg-card border rounded-xl p-6 transition-all hover:shadow-lg cursor-pointer "+(p?"ring-2 ring-primary shadow-lg":"");let P,T,q,U,B,H,R,W,Z,J,K,V,Q,Y,X,ee,te,ae,le,oe,se;return o[9]!==f||o[10]!==s?(P=()=>f(s),o[9]=f,o[10]=s,o[11]=P):P=o[11],o[12]!==r?(T=/* @__PURE__ */e("div",{className:"flex items-start justify-between gap-4 mb-3",children:/* @__PURE__ */e("div",{children:/* @__PURE__ */e("h3",{className:"font-bold text-lg text-left mb-1",children:r})})}),o[12]=r,o[13]=T):T=o[13],o[14]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(q=/* @__PURE__ */e(M,{className:"w-4 h-4 text-muted-foreground mt-0.5 shrink-0"}),o[14]=q):q=o[14],o[15]!==n?(U=/* @__PURE__ */e("p",{className:"font-medium text-left",children:n}),o[15]=n,o[16]=U):U=o[16],o[17]!==c||o[18]!==d||o[19]!==i?(B=/* @__PURE__ */t("p",{className:"text-muted-foreground text-left",children:[c,", ",i," ",d]}),o[17]=c,o[18]=d,o[19]=i,o[20]=B):B=o[20],o[21]!==u||o[22]!==C?(H=C("default:distance_away",{distance:N(u).toFixed(1),distanceUnit:"miles"}),o[21]=u,o[22]=C,o[23]=H):H=o[23],o[24]!==H?(R=/* @__PURE__ */e("p",{className:"text-primary font-medium mt-1 text-left",children:H}),o[24]=H,o[25]=R):R=o[25],o[26]!==U||o[27]!==B||o[28]!==R?(W=/* @__PURE__ */t("div",{className:"flex items-start gap-2",children:[q,
9
+ /* @__PURE__ */t("div",{children:[U,B,R]})]}),o[26]=U,o[27]=B,o[28]=R,o[29]=W):W=o[29],o[30]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(Z=/* @__PURE__ */e("div",{className:"mt-2.5",children:/* @__PURE__ */e(F,{className:"w-4 h-4 text-muted-foreground"})}),o[30]=Z):Z=o[30],o[31]!==m?(J=/* @__PURE__ */t("div",{className:"flex items-top gap-2",children:[Z,
10
+ /* @__PURE__ */e("span",{className:"text-muted-foreground",children:/* @__PURE__ */e(_,{hours:m})})]}),o[31]=m,o[32]=J):J=o[32],o[33]!==W||o[34]!==J?(K=/* @__PURE__ */t("div",{className:"space-y-2 text-sm",children:[W,J]}),o[33]=W,o[34]=J,o[35]=K):K=o[35],o[36]!==L?(V="allStocked"===L&&/* @__PURE__ */t("div",{className:"flex items-center shrink mt-3 px-3 py-1 bg-green-50 text-green-600 text-xs font-medium rounded-full",children:[
11
+ /* @__PURE__ */e(E,{className:"w-4 h-4 text-green-600 me-1"}),"All Items Stocked"]}),o[36]=L,o[37]=V):V=o[37],o[38]!==L?(Q="allAvailable"===L&&/* @__PURE__ */t("div",{className:"flex items-center shrink mt-3 px-3 py-1 bg-orange-50 text-orange-600 text-xs font-medium rounded-full",children:[
12
+ /* @__PURE__ */e($,{className:"w-4 me-1 h-4 text-orange-600"}),"Available by Special Order"]}),o[38]=L,o[39]=Q):Q=o[39],o[40]!==L?(Y="mixed"===L&&/* @__PURE__ */t("div",{children:[
13
+ /* @__PURE__ */t("div",{className:"flex items-center gap-2 mt-4 text-sm",children:[
14
+ /* @__PURE__ */e("span",{className:"font-bold w-28 text-wrap",children:"Braxton"}),
15
+ /* @__PURE__ */t("span",{className:"flex items-center px-3 py-1 bg-orange-50 text-orange-600 text-xs font-medium rounded-full",children:[
16
+ /* @__PURE__ */e($,{className:"w-4 me-1 h-4 text-orange-600"}),"Special Order"]})]}),
17
+ /* @__PURE__ */t("div",{className:"flex items-center gap-2 mt-4 text-sm",children:[
18
+ /* @__PURE__ */e("span",{className:"font-bold w-28 text-wrap",children:"Juno"}),
19
+ /* @__PURE__ */t("span",{className:"flex items-center px-3 py-1 bg-green-50 text-green-600 text-xs font-medium rounded-full",children:[
20
+ /* @__PURE__ */e(E,{className:"w-4 me-1 h-4 text-green-600"}),"Stocked"]})]})]}),o[40]=L,o[41]=Y):Y=o[41],o[42]!==b?(X=b.map(G),o[42]=b,o[43]=X):X=o[43],o[44]!==X?(ee=/* @__PURE__ */e("div",{className:"flex flex-wrap gap-2 mt-4",children:X}),o[44]=X,o[45]=ee):ee=o[45],o[46]!==T||o[47]!==K||o[48]!==V||o[49]!==Q||o[50]!==Y||o[51]!==ee?(te=/* @__PURE__ */t("div",{className:"flex-1",children:[T,K,V,Q,Y,ee]}),o[46]=T,o[47]=K,o[48]=V,o[49]=Q,o[50]=Y,o[51]=ee,o[52]=te):te=o[52],o[53]!==C?(ae=C("default:select_store"),o[53]=C,o[54]=ae):ae=o[54],o[55]!==z||o[56]!==ae?(le=/* @__PURE__ */e("div",{className:"flex md:flex-col gap-2",children:/* @__PURE__ */e(D,{onClick:z,variant:"default",className:"whitespace-nowrap",children:ae})}),o[55]=z,o[56]=ae,o[57]=le):le=o[57],o[58]!==te||o[59]!==le?(oe=/* @__PURE__ */t("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[te,le]}),o[58]=te,o[59]=le,o[60]=oe):oe=o[60],o[61]!==oe||o[62]!==O||o[63]!==P?(se=/* @__PURE__ */e("div",{className:O,onClick:P,children:oe}),o[61]=oe,o[62]=O,o[63]=P,o[64]=se):se=o[64],se};function G(t){/* @__PURE__ */
21
+ return e("span",{className:"px-3 py-1 bg-primary/10 text-primary text-xs font-medium rounded-full",children:t},t)}function Q(){const l=a(27),{stores:o,location:s,products:r,setStepIndex:n,setSelectedStoreId:c,searchIsLoading:i,searchError:d,baseUrl:m,focusedStoreId:u,setFocusedStoreId:h}=U();let p;l[0]!==c||l[1]!==n?(p=e=>{c(e),n(1)},l[0]=c,l[1]=n,l[2]=p):p=l[2];const f=p;let x,g,v,y,b;return l[3]!==d||l[4]!==i||l[5]!==o?(x=!i&&!d&&0===o.length&&/* @__PURE__ */e(S,{}),l[3]=d,l[4]=i,l[5]=o,l[6]=x):x=l[6],l[7]!==i?(g=i&&/* @__PURE__ */e("div",{className:"flex items-center justify-center h-48",children:/* @__PURE__ */e(k,{})}),l[7]=i,l[8]=g):g=l[8],l[9]!==m||l[10]!==u||l[11]!==f||l[12]!==s||l[13]!==r||l[14]!==d||l[15]!==i||l[16]!==h||l[17]!==o?(v=!i&&!d&&o.map(t=>/* @__PURE__ */e(V,{id:t.id,name:t.retailer_name,placeId:t.place_id,addressLineOne:t.address?.street_line_one,addressLineTwo:t.address?.street_line_two,city:t.address?.city,province:t.address?.province,postalCode:t.address?.postal_code,country:t.address?.country,distance:w(s.latitude,s.longitude,t.address?.latitude,t.address?.longitude),phone:t.phone_number,hours:t.retailer_location_hours,services:[t.store_type],isFocused:u===t.id,handleFocus:h,href:`${m}/${t.id}`,handleSelect:f,locationProducts:t.retailer_location_products,requestedProducts:r},t.id)),l[9]=m,l[10]=u,l[11]=f,l[12]=s,l[13]=r,l[14]=d,l[15]=i,l[16]=h,l[17]=o,l[18]=v):v=l[18],l[19]!==d||l[20]!==i?(y=!i&&d&&/* @__PURE__ */e("div",{className:"text-red-600 text-center",children:"An error occurred while searching for stores. Please try again."}),l[19]=d,l[20]=i,l[21]=y):y=l[21],l[22]!==x||l[23]!==g||l[24]!==v||l[25]!==y?(b=/* @__PURE__ */t("div",{className:"space-y-4",children:[x,g,v,y]}),l[22]=x,l[23]=g,l[24]=v,l[25]=y,l[26]=b):b=l[26],b}const Y=t=>{const l=a(9),{onClose:o,onSuccess:s}=t,{organizationId:r,location:n,selectedStoreId:c,products:i}=U();let d;l[0]!==s?(d=(e,t)=>{s&&s({formValues:e,lead:t})},l[0]=s,l[1]=d):d=l[1];const m=d;let u;return l[2]!==m||l[3]!==n||l[4]!==o||l[5]!==r||l[6]!==i||l[7]!==c?(u=/* @__PURE__ */e(I,{onClose:o,products:i,activityType:"LeadActivity::QuoteRequest",onSuccess:m,location:n,organizationId:r,selectedLocationId:c}),l[2]=m,l[3]=n,l[4]=o,l[5]=r,l[6]=i,l[7]=c,l[8]=u):u=l[8],u};function X(t){const l=a(8),{active:o,children:s,className:r}=t,n=o?"open":"closed";let c,i,d;return l[0]!==r?(c=O("absolute inset-0","transition duration-300 ease-out will-change-transform","data-[state=closed]:pointer-events-none",r),l[0]=r,l[1]=c):c=l[1],l[2]!==s?(i=/* @__PURE__ */e("div",{className:"w-full h-[100%]",children:s}),l[2]=s,l[3]=i):i=l[3],l[4]!==n||l[5]!==c||l[6]!==i?(d=/* @__PURE__ */e("div",{"data-state":n,className:c,children:i}),l[4]=n,l[5]=c,l[6]=i,l[7]=d):d=l[7],d}const ee=l=>{const o=a(31),{onClose:s,onSuccess:r}=l,{stepIndex:n,setStepIndex:c}=U();let i;o[0]!==s?(i=()=>{s&&s()},o[0]=s,o[1]=i):i=o[1];const d=i;let m;o[2]!==r||o[3]!==c?(m=e=>{c(2),r&&r(e)},o[2]=r,o[3]=c,o[4]=m):m=o[4];const u=m,h=0===n;let p,f,x,g;o[5]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(p=O("data-[state=open]:opacity-100 data-[state=open]:translate-x-0","data-[state=closed]:opacity-0 data-[state=closed]:-translate-x-6"),o[5]=p):p=o[5],o[6]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(f=/* @__PURE__ */e(H,{}),o[6]=f):f=o[6],o[7]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(x=/* @__PURE__ */t("div",{className:"relative px-1 h-screen overflow-y-scroll",children:[f,
22
+ /* @__PURE__ */e("div",{className:"pb-8",children:/* @__PURE__ */e(C,{apiKey:"AIzaSyAnJmWEU1r63DiRWHkjczxzHyIEq3dhj4M",children:/* @__PURE__ */e(K,{})})}),
23
+ /* @__PURE__ */e(Q,{})]}),o[7]=x):x=o[7],o[8]!==h?(g=/* @__PURE__ */e(X,{active:h,className:p,children:x}),o[8]=h,o[9]=g):g=o[9];const v=1===n;let y,b,N,_;o[10]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(y=O("data-[state=open]:opacity-100 data-[state=open]:translate-x-0","data-[state=closed]:opacity-0 data-[state=closed]:-translate-x-6","flex items-center"),o[10]=y):y=o[10],o[11]!==c?(b=()=>c(0),o[11]=c,o[12]=b):b=o[12],o[13]!==u||o[14]!==b?(N=/* @__PURE__ */e("div",{className:"px-1",children:/* @__PURE__ */e(Y,{onClose:b,onSuccess:u})}),o[13]=u,o[14]=b,o[15]=N):N=o[15],o[16]!==N||o[17]!==v?(_=/* @__PURE__ */e(X,{active:v,className:y,children:N}),o[16]=N,o[17]=v,o[18]=_):_=o[18];const S=2===n;let w,k,I,A,j,z;return o[19]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(w=O("data-[state=open]:opacity-100 data-[state=open]:translate-x-0","data-[state=closed]:opacity-0 data-[state=closed]:-translate-x-6","flex items-center"),o[19]=w):w=o[19],o[20]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(k=/* @__PURE__ */e("h2",{className:"text-2xl font-semibold mb-4",children:"Thank you!"}),I=/* @__PURE__ */e("p",{className:"mb-8",children:"Your quote request has been submitted successfully. We will get back to you shortly."}),o[20]=k,o[21]=I):(k=o[20],I=o[21]),o[22]!==d?(A=/* @__PURE__ */e("div",{className:"px-1",children:/* @__PURE__ */t("div",{className:"text-center py-20 px-4",children:[k,I,
24
+ /* @__PURE__ */e(L,{onClick:d,children:"Close"})]})}),o[22]=d,o[23]=A):A=o[23],o[24]!==S||o[25]!==A?(j=/* @__PURE__ */e(X,{active:S,className:w,children:A}),o[24]=S,o[25]=A,o[26]=j):j=o[26],o[27]!==_||o[28]!==j||o[29]!==g?(z=/* @__PURE__ */e("div",{className:"relative overflow-hidden h-[100%] py-1",children:/* @__PURE__ */t("div",{className:"h-[100%] relative",children:[g,_,j]})}),o[27]=_,o[28]=j,o[29]=g,o[30]=z):z=o[30],z},te=t=>{const l=a(17),{organizationId:o,products:s,locale:r,onClose:n,onSuccess:c}=t;let i,d,m,u,h;return l[0]!==r?(i={lng:r},l[0]=r,l[1]=i):i=l[1],l[2]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(d={height:"100%"},l[2]=d):d=l[2],l[3]!==r||l[4]!==n||l[5]!==c||l[6]!==o||l[7]!==s?(m=/* @__PURE__ */e("div",{className:"cc",style:d,children:/* @__PURE__ */e(ee,{organizationId:o,products:s,locale:r,onClose:n,onSuccess:c})}),l[3]=r,l[4]=n,l[5]=c,l[6]=o,l[7]=s,l[8]=m):m=l[8],l[9]!==r||l[10]!==o||l[11]!==s||l[12]!==m?(u=/* @__PURE__ */e(q,{organizationId:o,products:s,locale:r,children:m}),l[9]=r,l[10]=o,l[11]=s,l[12]=m,l[13]=u):u=l[13],l[14]!==i||l[15]!==u?(h=/* @__PURE__ */e(P,{options:i,children:u}),l[14]=i,l[15]=u,l[16]=h):h=l[16],h};export{te as default};
package/dist/Store.js ADDED
@@ -0,0 +1,37 @@
1
+ import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import{c as r}from"react/compiler-runtime";import{Slot as n}from"@radix-ui/react-slot";import{c as o,a as l,b as s,M as i,C as c,P as d,B as m,S as u,I as p,L as f}from"./translations-6mspyPRw.js";import{useTranslation as h}from"react-i18next";import*as g from"react";import{createContext as b,useState as y,useEffect as x,useContext as v}from"react";import"@radix-ui/react-collapsible";import{N as _}from"./navigation-DpGLbcKb.js";const N=o("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),w=o("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),S=o("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]),M=o("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]),D=s("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90"}},defaultVariants:{variant:"default"}});function T(t){const a=r(12);let o,s,i,c;a[0]!==t?(({className:o,variant:c,asChild:i,...s}=t),a[0]=t,a[1]=o,a[2]=s,a[3]=i,a[4]=c):(o=a[1],s=a[2],i=a[3],c=a[4]);const d=void 0!==i&&i?n:"span";let m,u;return a[5]!==o||a[6]!==c?(m=l(D({variant:c}),o),a[5]=o,a[6]=c,a[7]=m):m=a[7],a[8]!==d||a[9]!==s||a[10]!==m?(u=/* @__PURE__ */e(d,{"data-slot":"badge",className:m,...s}),a[8]=d,a[9]=s,a[10]=m,a[11]=u):u=a[11],u}const k=b(),z=({organizationId:t,id:a,locale:r,baseUrl:n="/retailers",initialData:o=null,children:l})=>{const[s,i]=y(o?.company_retailer_location||null);x(()=>{!async function(){if(a)try{const e=await fetch(`https://api.colabcommerce.com/widget_api/company_retailer_locations/${a}`);if(!e.ok)throw new Error(`Error fetching retailer: ${e.statusText}`);const t=await e.json();i(t?.company_retailer_location||null)}catch(e){i(null)}else i(null)}()},[t,a,n]);const c={organizationId:t,id:a,locale:r,baseUrl:n,store:s};/* @__PURE__ */
2
+ return e(k.Provider,{value:c,children:l})},$=()=>{const e=v(k);if(void 0===e)throw new Error("useStore must be used within a StoreProvider");return e},I=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function L(e){return[e.day,e]}function A(e){return e?.timezone}function C(e){if(!e)return null;if(e.open_at){const t=new Date(e.open_at);return U(t)?t:null}return"number"==typeof e.open_at_hour&&"number"==typeof e.open_at_minute?F({storeHour:e.open_at_hour,storeMinute:e.open_at_minute,utcOffsetMinute:e.utc_offset_minute}):null}function j(e,t){if(!e)return null;if("number"!=typeof e.close_at_hour||"number"!=typeof e.close_at_minute)return null;let a=F({storeHour:e.close_at_hour,storeMinute:e.close_at_minute,utcOffsetMinute:e.utc_offset_minute,anchorDate:t||void 0});return a&&t?(a.getTime()<=t.getTime()&&(a=new Date(a.getTime()+864e5)),a):a}function F({storeHour:e,storeMinute:t,utcOffsetMinute:a,anchorDate:r}){const n=r?new Date(r):/* @__PURE__ */new Date,o=n.getFullYear(),l=n.getMonth(),s=n.getDate(),i=Date.UTC(o,l,s,e,t,0)-60*a*1e3,c=new Date(i);return U(c)?c:null}function U(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function O(e){return new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit"}).format(e).replace(":00","").replace(" AM","am").replace(" PM","pm")}function H(){const a=r(33),{t:n}=h(),{store:o}=$(),l=o?.retailer_location_hours;let s;a[0]!==n||a[1]!==l?(s={hours:l,t:n},a[0]=n,a[1]=l,a[2]=s):s=a[2];const{computed:d}=function(e){const t=r(17),{hours:a,openingSoonMinutes:n,closingSoonMinutes:o,t:l}=e,s=void 0===n?60:n,i=void 0===o?60:o;let c,d,m,u;if(t[0]!==i||t[1]!==a||t[2]!==s||t[3]!==l){const e=Array.isArray(a)?a:[],r=e.find(A)?.timezone||Intl.DateTimeFormat().resolvedOptions().timeZone,n=/* @__PURE__ */new Date,o=function(e,t){switch(new Intl.DateTimeFormat("en-US",{weekday:"short",timeZone:t}).format(e)){case"Sun":return 0;case"Mon":return 1;case"Tue":return 2;case"Wed":return 3;case"Thu":return 4;case"Fri":return 5;case"Sat":return 6;default:return new Date(e).getDay()}}(n,r);d=function({now:e,today:t,openingSoonMinutes:a,closingSoonMinutes:r,t:n}){if(!t||!t.open)return{label:n("default:closed"),detail:""};const o=C(t),l=j(t,o);if(!o||!l)return{label:n("default:open"),detail:""};const s=e.getTime(),i=o.getTime(),c=l.getTime(),d=i-60*a*1e3,m=c-60*r*1e3,u=n("default:opens_at",{time:O(o)}),p=n("default:closes_at",{time:O(l)});return s<i?s>=d?{label:n("default:opening_soon"),detail:u}:{label:n("default:closed"),detail:u}:s>=i&&s<c?s>=m?{label:n("default:closing_soon"),detail:p}:{label:n("default:open"),detail:p}:{label:n("default:closed"),detail:u}}({now:n,today:e.find(e=>e?.day===o),openingSoonMinutes:s,closingSoonMinutes:i,t:l});const p=[1,2,3,4,5,6,0],f=new Map(e.map(L));c=p.map(e=>{const t=f.get(e),a=l(`default:${I[e].toLowerCase()}`),r=e===o;let n=l("default:closed");if(t?.open){const e=C(t),a=j(t,e);n=e&&a?`${O(e)} - ${O(a)}`:l("default:open")}return{dayIdx:e,label:a,text:n,isToday:r}}),u=l,m=d.label.toLowerCase().replace(" ","_"),t[0]=i,t[1]=a,t[2]=s,t[3]=l,t[4]=c,t[5]=d,t[6]=m,t[7]=u}else c=t[4],d=t[5],m=t[6],u=t[7];const p=`default:${m}`;let f,h;t[8]!==u||t[9]!==p?(f=u(p),t[8]=u,t[9]=p,t[10]=f):f=t[10],t[11]!==c||t[12]!==d.detail||t[13]!==f?(h={statusLabel:f,statusDetail:d.detail,rows:c},t[11]=c,t[12]=d.detail,t[13]=f,t[14]=h):h=t[14];const g=h;let b;return t[15]!==g?(b={computed:g},t[15]=g,t[16]=b):b=t[16],b}(s);let m;a[3]!==o?.store_type?(m=o?.store_type?.toLowerCase(),a[3]=o?.store_type,a[4]=m):m=a[4];const u=`default:store.types.${m}`;let p,f;a[5]!==n||a[6]!==u?(p=n(u),a[5]=n,a[6]=u,a[7]=p):p=a[7],a[8]!==p?(f=/* @__PURE__ */e("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:/* @__PURE__ */e(T,{variant:"secondary",className:"text-sm",children:p})}),a[8]=p,a[9]=f):f=a[9];const g=o?.retailer_name;let b,y;a[10]!==g?(b=/* @__PURE__ */e("h1",{className:"text-4xl lg:text-5xl font-bold mb-4 text-balance",children:g}),a[10]=g,a[11]=b):b=a[11],a[12]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(y=/* @__PURE__ */e(i,{className:"w-4 h-4"}),a[12]=y):y=a[12];const x=o?.address?.city,v=o?.address?.province;let _,N;a[13]!==v||a[14]!==x?(_=/* @__PURE__ */t("div",{className:"flex items-center gap-2 text-muted-foreground",children:[y,
3
+ /* @__PURE__ */t("span",{className:"text-sm",children:[x,", ",v]})]}),a[13]=v,a[14]=x,a[15]=_):_=a[15],a[16]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(N=/* @__PURE__ */e(c,{className:"w-4 h-4"}),a[16]=N):N=a[16];const w="text-sm font-medium "+(d.statusLabel===n("default:open")?"text-green-600":"text-red-600");let S,M;a[17]!==d.statusLabel||a[18]!==w?(S=/* @__PURE__ */t("div",{className:"flex items-center gap-2 text-muted-foreground",children:[N,
4
+ /* @__PURE__ */e("span",{className:w,children:d.statusLabel})]}),a[17]=d.statusLabel,a[18]=w,a[19]=S):S=a[19],a[20]!==_||a[21]!==S?(M=/* @__PURE__ */t("div",{className:"flex flex-wrap items-center gap-4 mb-6",children:[_,S]}),a[20]=_,a[21]=S,a[22]=M):M=a[22];const D=o?.retailer_name||"our store";let k,z,F;return a[23]!==n||a[24]!==D?(k=n("default:store_romance",{name:D}),a[23]=n,a[24]=D,a[25]=k):k=a[25],a[26]!==k?(z=/* @__PURE__ */e("p",{className:"text-lg text-muted-foreground leading-relaxed mb-6",children:k}),a[26]=k,a[27]=z):z=a[27],a[28]!==M||a[29]!==z||a[30]!==f||a[31]!==b?(F=/* @__PURE__ */e("section",{className:"bg-gradient-to-b from-primary/5 to-background py-12 lg:py-16",children:/* @__PURE__ */e("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:/* @__PURE__ */t("div",{className:"max-w-4xl",children:[f,b,M,z]})})}),a[28]=M,a[29]=z,a[30]=f,a[31]=b,a[32]=F):F=a[32],F}function P(t){const a=r(8);let n,o,s,i;return a[0]!==t?(({className:n,...o}=t),a[0]=t,a[1]=n,a[2]=o):(n=a[1],o=a[2]),a[3]!==n?(s=l("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),a[3]=n,a[4]=s):s=a[4],a[5]!==o||a[6]!==s?(i=/* @__PURE__ */e("div",{"data-slot":"card",className:s,...o}),a[5]=o,a[6]=s,a[7]=i):i=a[7],i}const W=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function E({hours:r,openingSoonMinutes:n=60,closingSoonMinutes:o=60,className:l=""}){const{t:s}=h(),[i,c]=g.useState(!1),d=g.useMemo(()=>{const e=Array.isArray(r)?r:[],t=e.find(e=>e?.timezone)?.timezone||Intl.DateTimeFormat().resolvedOptions().timeZone,a=/* @__PURE__ */new Date,l=function(e,t){switch(new Intl.DateTimeFormat("en-US",{weekday:"short",timeZone:t}).format(e)){case"Sun":return 0;case"Mon":return 1;case"Tue":return 2;case"Wed":return 3;case"Thu":return 4;case"Fri":return 5;case"Sat":return 6;default:return new Date(e).getDay()}}(a,t),i=function({now:e,today:t,openingSoonMinutes:a,closingSoonMinutes:r,t:n}){if(!t||!t.open)return{label:n("default:closed"),detail:""};const o=V(t),l=Z(t,o);if(!o||!l)return{label:n("default:open"),detail:""};const s=e.getTime(),i=o.getTime(),c=l.getTime(),d=i-60*a*1e3,m=c-60*r*1e3,u=n("default:opens_at",{time:G(o)}),p=n("default:closes_at",{time:G(l)});return s<i?s>=d?{label:n("default:opening_soon"),detail:u}:{label:n("default:closed"),detail:u}:s>=i&&s<c?s>=m?{label:n("default:closing_soon"),detail:p}:{label:n("default:open"),detail:p}:{label:n("default:closed"),detail:u}}({now:a,today:e.find(e=>e?.day===l),openingSoonMinutes:n,closingSoonMinutes:o,t:s}),c=new Map(e.map(e=>[e.day,e])),d=[1,2,3,4,5,6,0].map(e=>{const t=c.get(e),a=s(`default:${W[e].toLowerCase()}`),r=e===l;let n=s("default:closed");if(t?.open){const e=V(t),a=Z(t,e);n=e&&a?`${G(e)} - ${G(a)}`:s("default:open")}return{dayIdx:e,label:a,text:n,isToday:r}});return{statusLabel:s(`default:${i.label.toLowerCase().replace(" ","_")}`),statusDetail:i.detail,rows:d}},[r,n,o]);/* @__PURE__ */
5
+ return e(a,{children:d.rows.map(r=>/* @__PURE__ */e(a,{children:/* @__PURE__ */t("div",{className:"flex justify-between items-center py-2 "+(r.isToday?"bg-primary/5 -mx-4 px-4 rounded-lg":""),children:[
6
+ /* @__PURE__ */t("span",{className:"font-medium "+(r.isToday?"text-primary":""),children:[r.label,r.isToday&&/* @__PURE__ */e("span",{className:"ml-2 text-xs",children:"(Today)"})]}),
7
+ /* @__PURE__ */e("span",{className:"text-muted-foreground",children:r.text})]},r.dayIdx)}))})}function V(e){if(!e)return null;if(e.open_at){const t=new Date(e.open_at);return B(t)?t:null}return"number"==typeof e.open_at_hour&&"number"==typeof e.open_at_minute?q({storeHour:e.open_at_hour,storeMinute:e.open_at_minute,utcOffsetMinute:e.utc_offset_minute}):null}function Z(e,t){if(!e)return null;if("number"!=typeof e.close_at_hour||"number"!=typeof e.close_at_minute)return null;let a=q({storeHour:e.close_at_hour,storeMinute:e.close_at_minute,utcOffsetMinute:e.utc_offset_minute,anchorDate:t||void 0});return a&&t?(a.getTime()<=t.getTime()&&(a=new Date(a.getTime()+864e5)),a):a}function q({storeHour:e,storeMinute:t,utcOffsetMinute:a,anchorDate:r}){const n=r?new Date(r):/* @__PURE__ */new Date,o=n.getFullYear(),l=n.getMonth(),s=n.getDate(),i=Date.UTC(o,l,s,e,t,0)-60*a*1e3,c=new Date(i);return B(c)?c:null}function B(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function G(e){return new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit"}).format(e).replace(":00","").replace(" AM","am").replace(" PM","pm")}function R(){const a=r(36),{store:n}=$(),o=`https://www.google.com/maps/dir/?api=1&destination=${n?.name}&destination_place_id=${n?.placeId}`;let l,s,u;a[0]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(l=/* @__PURE__ */e("h2",{className:"text-2xl font-bold mb-6",children:"Contact Information"}),a[0]=l):l=a[0],a[1]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(s=/* @__PURE__ */e("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:/* @__PURE__ */e(i,{className:"w-5 h-5 text-primary"})}),u=/* @__PURE__ */e("div",{className:"font-semibold mb-1",children:"Address"}),a[1]=s,a[2]=u):(s=a[1],u=a[2]);const p=n?.address?.street_line_one,f=n?.address?.street_line_two&&`, ${n.address.street_line_two}`;let h;a[3]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(h=/* @__PURE__ */e("br",{}),a[3]=h):h=a[3];const g=n?.address?.city,b=n?.address?.province,y=n?.address?.postal_code;let x,v,_,N,S,D;a[4]!==p||a[5]!==f||a[6]!==g||a[7]!==b||a[8]!==y?(x=/* @__PURE__ */t("div",{className:"text-muted-foreground",children:[p," ",f,h,g,", ",b," ",y]}),a[4]=p,a[5]=f,a[6]=g,a[7]=b,a[8]=y,a[9]=x):x=a[9],a[10]!==o?(v=/* @__PURE__ */e("a",{className:"px-0 h-auto mt-2 text-primary hover:underline py-3 ",href:o,target:"_blank",rel:"noopener noreferrer",children:"Get Directions →"}),a[10]=o,a[11]=v):v=a[11],a[12]!==v||a[13]!==x?(_=/* @__PURE__ */t("div",{className:"flex items-start gap-4",children:[s,
8
+ /* @__PURE__ */t("div",{children:[u,x,v]})]}),a[12]=v,a[13]=x,a[14]=_):_=a[14],a[15]!==n?.phone_number?(N=n?.phone_number&&/* @__PURE__ */t("div",{className:"flex items-start gap-4",children:[
9
+ /* @__PURE__ */e("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:/* @__PURE__ */e(d,{className:"w-5 h-5 text-primary"})}),
10
+ /* @__PURE__ */t("div",{children:[
11
+ /* @__PURE__ */e("div",{className:"font-semibold mb-1",children:"Phone"}),
12
+ /* @__PURE__ */e("a",{href:`tel:${n?.phone_number?.phone_number}`,className:"text-primary hover:underline",children:n?.phone_number?.formatted})]})]}),a[15]=n?.phone_number,a[16]=N):N=a[16],a[17]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(S=/* @__PURE__ */e("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:/* @__PURE__ */e(w,{className:"w-5 h-5 text-primary"})}),D=/* @__PURE__ */e("div",{className:"font-semibold mb-1",children:"Website"}),a[17]=S,a[18]=D):(S=a[17],D=a[18]);const T=n?.website,k=n?.website;let z,I,L,A,C,j;a[19]!==T||a[20]!==k?(z=/* @__PURE__ */t("div",{className:"flex items-start gap-4",children:[S,
13
+ /* @__PURE__ */t("div",{children:[D,
14
+ /* @__PURE__ */e("a",{href:T,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",children:k})]})]}),a[19]=T,a[20]=k,a[21]=z):z=a[21],a[22]!==_||a[23]!==N||a[24]!==z?(I=/* @__PURE__ */t("div",{className:"space-y-4",children:[_,N,z]}),a[22]=_,a[23]=N,a[24]=z,a[25]=I):I=a[25],a[26]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(L=/* @__PURE__ */t(m,{className:"flex-1 sm:flex-none",children:[
15
+ /* @__PURE__ */e(d,{className:"w-4 h-4 mr-2"}),"Call Now"]}),a[26]=L):L=a[26],a[27]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(A=/* @__PURE__ */t("div",{className:"flex flex-wrap gap-3 mt-6 pt-6 border-t",children:[L,
16
+ /* @__PURE__ */t(m,{variant:"outline",className:"flex-1 sm:flex-none bg-transparent",children:[
17
+ /* @__PURE__ */e(M,{className:"w-4 h-4 mr-2"}),"Send Message"]})]}),a[27]=A):A=a[27],a[28]!==I?(C=/* @__PURE__ */t(P,{className:"p-6",children:[l,I,A]}),a[28]=I,a[29]=C):C=a[29],a[30]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(j=/* @__PURE__ */t("div",{className:"flex items-center gap-3 mb-6",children:[
18
+ /* @__PURE__ */e("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:/* @__PURE__ */e(c,{className:"w-5 h-5 text-primary"})}),
19
+ /* @__PURE__ */e("h2",{className:"text-2xl font-bold",children:"Hours of Operation"})]}),a[30]=j):j=a[30];const F=n?.retailer_location_hours;let U,O;return a[31]!==F?(U=/* @__PURE__ */t(P,{className:"p-6",children:[j,
20
+ /* @__PURE__ */e("div",{className:"space-y-3",children:/* @__PURE__ */e(E,{hours:F})})]}),a[31]=F,a[32]=U):U=a[32],a[33]!==C||a[34]!==U?(O=/* @__PURE__ */t("div",{className:"space-y-6",children:[C,U]}),a[33]=C,a[34]=U,a[35]=O):O=a[35],O}const Y=t=>{const a=r(7),{center:n,zoom:o,size:l,markers:s}=t,i=void 0===l?"400x600":l;let c;if(a[0]!==n||a[1]!==s||a[2]!==i||a[3]!==o){const e=new URLSearchParams;e.append("center",n),e.append("zoom",o),e.append("size",i),e.append("maptype","roadmap"),s.forEach(t=>{const a=`${t.lat},${t.lng}`;e.append("markers",a)}),e.append("key","AIzaSyAnJmWEU1r63DiRWHkjczxzHyIEq3dhj4M"),c=e.toString(),a[0]=n,a[1]=s,a[2]=i,a[3]=o,a[4]=c}else c=a[4];const d=`https://maps.googleapis.com/maps/api/staticmap?${c}`;let m;return a[5]!==d?(m=/* @__PURE__ */e("img",{src:d,alt:"Static Map"}),a[5]=d,a[6]=m):m=a[6],m};function J(){const a=r(9),{store:n}=$(),o=`${n?.address?.latitude},${n?.address?.longitude}`,l=n?.address?.latitude,s=n?.address?.longitude;let i,c,d,u;return a[0]!==l||a[1]!==s?(i=[{lat:l,lng:s}],a[0]=l,a[1]=s,a[2]=i):i=a[2],a[3]!==o||a[4]!==i?(c=/* @__PURE__ */e(Y,{center:o,zoom:15,markers:i}),a[3]=o,a[4]=i,a[5]=c):c=a[5],a[6]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(d=/* @__PURE__ */e("div",{className:"absolute bottom-4 left-1/2 transform -translate-x-1/2 flex items-center justify-center",children:/* @__PURE__ */e("div",{className:"text-center",children:/* @__PURE__ */t(m,{variant:"outline",size:"sm",children:[
21
+ /* @__PURE__ */e(_,{className:"w-4 h-4 mr-2"}),"View on Google Maps"]})})}),a[6]=d):d=a[6],a[7]!==c?(u=/* @__PURE__ */e(P,{className:"p-0 overflow-hidden sticky top-24",children:/* @__PURE__ */t("div",{className:"relative w-full h-[500px] bg-gradient-to-br from-primary/10 to-primary/5",children:[c,d]})}),a[7]=c,a[8]=u):u=a[8],u}function K(){const a=r(28),[n,o]=y(""),[l,s]=y("all"),{store:i}=$();let c,d,f,h,g,b,x;if(a[0]!==n||a[1]!==l||a[2]!==i?.retailer_location_products){const r=i?.retailer_location_products||[],g=[{id:"all",label:"All Products"},...Array.from(new Set(r.map(ee))).map(X)];let b,y,x,v,_,N;a[7]!==n||a[8]!==l?(b=e=>{const t=e.name.toLowerCase().includes(n.toLowerCase()),a="all"===l||e.category===l;return t&&a},a[7]=n,a[8]=l,a[9]=b):b=a[9],c=r.filter(b),a[10]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(y=/* @__PURE__ */e("h2",{className:"text-3xl font-bold mb-4",children:"Available Products"}),x=/* @__PURE__ */e("p",{className:"text-muted-foreground mb-6",children:"Browse our current inventory of quality furniture pieces. All items shown are available for immediate viewing at our showroom."}),a[10]=y,a[11]=x):(y=a[10],x=a[11]),a[12]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(v=/* @__PURE__ */e(u,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),a[12]=v):v=a[12],a[13]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(_=e=>o(e.target.value),a[13]=_):_=a[13],a[14]!==n?(N=/* @__PURE__ */e("div",{className:"flex flex-col sm:flex-row gap-4 mb-6",children:/* @__PURE__ */t("div",{className:"relative flex-1",children:[v,
22
+ /* @__PURE__ */e(p,{type:"text",placeholder:"Search products...",value:n,onChange:_,className:"pl-10"})]})}),a[14]=n,a[15]=N):N=a[15];const w=/* @__PURE__ */e("div",{className:"flex flex-wrap gap-2",children:g.map(t=>/* @__PURE__ */e(m,{variant:l===t.id?"default":"outline",size:"sm",onClick:()=>s(t.id),children:t.label},t.id))});a[16]!==N||a[17]!==w?(h=/* @__PURE__ */t("div",{className:"mb-8",children:[y,x,N,w]}),a[16]=N,a[17]=w,a[18]=h):h=a[18],d="grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",f=c.map(Q),a[0]=n,a[1]=l,a[2]=i?.retailer_location_products,a[3]=c,a[4]=d,a[5]=f,a[6]=h}else c=a[3],d=a[4],f=a[5],h=a[6];return a[19]!==d||a[20]!==f?(g=/* @__PURE__ */e("div",{className:d,children:f}),a[19]=d,a[20]=f,a[21]=g):g=a[21],a[22]!==c.length?(b=0===c.length&&/* @__PURE__ */e("div",{className:"text-center py-12",children:/* @__PURE__ */e("p",{className:"text-lg text-muted-foreground",children:"No products found matching your criteria."})}),a[22]=c.length,a[23]=b):b=a[23],a[24]!==h||a[25]!==g||a[26]!==b?(x=/* @__PURE__ */t("div",{children:[h,g,b]}),a[24]=h,a[25]=g,a[26]=b,a[27]=x):x=a[27],x}function Q(a){/* @__PURE__ */
23
+ return t(P,{className:"group overflow-hidden",children:[
24
+ /* @__PURE__ */t("div",{className:"relative bg-muted overflow-hidden",children:[
25
+ /* @__PURE__ */e("img",{src:a.images?.[0]||"/placeholder.svg",alt:a.name,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300"}),a.available&&/* @__PURE__ */e(T,{className:"absolute top-3 left-3 bg-primary text-primary-foreground",children:"Special Order"}),!a.stocked&&/* @__PURE__ */e(T,{className:"absolute top-3 left-3 bg-red-600 text-white",children:"Out of Stock"}),
26
+ /* @__PURE__ */t("div",{className:"absolute top-3 right-3 flex flex-col gap-2 opacity-0 group-hover:opacity-100 transition-opacity",children:[
27
+ /* @__PURE__ */e(m,{size:"icon",variant:"secondary",className:"h-9 w-9",children:/* @__PURE__ */e(S,{className:"w-4 h-4"})}),
28
+ /* @__PURE__ */e(m,{size:"icon",variant:"secondary",className:"h-9 w-9",children:/* @__PURE__ */e(N,{className:"w-4 h-4"})})]})]}),
29
+ /* @__PURE__ */t("div",{className:"p-4",children:[
30
+ /* @__PURE__ */e("h3",{className:"font-semibold mb-1 group-hover:text-primary transition-colors",children:a.name}),
31
+ /* @__PURE__ */e("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2",children:a.description}),
32
+ /* @__PURE__ */t("div",{className:"flex items-center justify-between",children:[
33
+ /* @__PURE__ */e("span",{className:"text-2xl font-bold text-primary",children:a?.price&&a.price.toLocaleString()}),
34
+ /* @__PURE__ */e(m,{size:"sm",disabled:!a.stocked,children:a.stocked?"View Details":"Unavailable"})]})]})]},a.id)}function X(e){return{id:e,label:e.charAt(0).toUpperCase()+e.slice(1)}}function ee(e){return e.category}const te=a=>{const n=r(11),{storeId:o,locale:l,initialData:s}=a,i=void 0===l?"en":l,c=void 0===s?null:s;let d,m,u,p,h,g;return n[0]!==i?(d={lng:i},n[0]=i,n[1]=d):d=n[1],n[2]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(m=/* @__PURE__ */e(H,{}),n[2]=m):m=n[2],n[3]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(u=/* @__PURE__ */e("section",{className:"py-12 lg:py-16 bg-muted/30",children:/* @__PURE__ */e("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:/* @__PURE__ */t("div",{className:"grid lg:grid-cols-3 gap-8",children:[
35
+ /* @__PURE__ */e("div",{className:"lg:col-span-2",children:/* @__PURE__ */e(R,{})}),
36
+ /* @__PURE__ */e("div",{children:/* @__PURE__ */e(J,{})})]})})}),n[3]=u):u=n[3],n[4]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(p=/* @__PURE__ */e("div",{className:"cc",children:/* @__PURE__ */t("main",{className:"flex-1",children:[m,u,
37
+ /* @__PURE__ */e("section",{className:"py-12 lg:py-16",children:/* @__PURE__ */e("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:/* @__PURE__ */e(K,{})})})]})}),n[4]=p):p=n[4],n[5]!==c||n[6]!==o?(h=/* @__PURE__ */e(z,{id:o,initialData:c,children:p}),n[5]=c,n[6]=o,n[7]=h):h=n[7],n[8]!==d||n[9]!==h?(g=/* @__PURE__ */e(f,{options:d,children:h}),n[8]=d,n[9]=h,n[10]=g):g=n[10],g};export{te as default};
@@ -0,0 +1,34 @@
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{c as r}from"react/compiler-runtime";import{u as a,S as l}from"./store-locator-Bto20jHS.js";import{u as n,I as i,A as s,a as o,M as d,b as c,c as m,B as u,d as h,e as p,f as g,g as f,C as x,U as b,h as v,S as y,m as N,i as _,j as w,k as S,L as k,l as C}from"./index-DvX0QvFh.js";import{useState as M,useEffect as B,useRef as I,useId as z}from"react";import{c as j,B as D,M as A,S as q,I as O,a as L,P as $,C as T,L as U}from"./translations-6mspyPRw.js";import{N as W}from"./navigation-DpGLbcKb.js";import*as E from"@radix-ui/react-popover";import*as P from"@radix-ui/react-scroll-area";import{useTranslation as R}from"react-i18next";import"@radix-ui/react-accessible-icon";import"@radix-ui/react-accordion";import"@radix-ui/react-alert-dialog";import"@radix-ui/react-aspect-ratio";import"@radix-ui/react-avatar";import"@radix-ui/react-checkbox";import"@radix-ui/react-collapsible";import"@radix-ui/react-context-menu";import*as F from"@radix-ui/react-dialog";import"@radix-ui/react-direction";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-form";import"@radix-ui/react-hover-card";import"@radix-ui/react-label";import"@radix-ui/react-menubar";import"@radix-ui/react-navigation-menu";import"@radix-ui/react-one-time-password-field";import"@radix-ui/react-password-toggle-field";import"@radix-ui/react-portal";import"@radix-ui/react-progress";import"@radix-ui/react-radio-group";import"@radix-ui/react-select";import"@radix-ui/react-separator";import"@radix-ui/react-slider";import"@radix-ui/react-slot";import"@radix-ui/react-switch";import"@radix-ui/react-tabs";import"@radix-ui/react-toast";import"@radix-ui/react-toggle";import"@radix-ui/react-toggle-group";import"@radix-ui/react-toolbar";import"@radix-ui/react-tooltip";import"@radix-ui/react-visually-hidden";const H=j("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]]),V=j("sliders-vertical",[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]]),Z=a=>{const l=r(25),{store:o,isSelected:d,onClick:c}=a,[,m]=M(!1),[u,h]=n();let p;l[0]!==c||l[1]!==o.id?(p=()=>{c&&c(o.id)},l[0]=c,l[1]=o.id,l[2]=p):p=l[2];const g=p;let f;l[3]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(f=()=>m(!1),l[3]=f):f=l[3];const x=f,b=d,v=1*o.address?.latitude,y=1*o.address?.longitude;let N;l[4]!==v||l[5]!==y?(N={lat:v,lng:y},l[4]=v,l[5]=y,l[6]=N):N=l[6];const _="w-8 h-8 hover:cursor-pointer "+(d?"text-primary fill-white z-10":"z-1 fill-white text-muted-foreground");let w,S,k;return l[7]!==_?(w=/* @__PURE__ */t(A,{className:_,size:32}),l[7]=_,l[8]=w):w=l[8],l[9]!==h||l[10]!==b||l[11]!==o.address?.city||l[12]!==o.address?.postal_code||l[13]!==o.address?.province||l[14]!==o.address?.street_line_one||l[15]!==o.address?.street_line_two||l[16]!==o.retailer_name?(S=b&&/* @__PURE__ */e(i,{anchor:h,headerContent:/* @__PURE__ */t("h3",{className:"font-bold text-sm align-center text-left mb-2",children:o.retailer_name}),onClose:x,children:[
2
+ /* @__PURE__ */e("p",{className:"text-sm text-left text-muted-foreground",children:[o.address?.street_line_one,o.address?.street_line_two?`, ${o.address?.street_line_two}`:""]}),
3
+ /* @__PURE__ */e("p",{className:"text-sm text-left text-muted-foreground mb-4",children:[o.address?.city,", ",o.address?.province," ",o.address?.postal_code]}),
4
+ /* @__PURE__ */e("div",{className:"flex flex-row gap-2 mb-1",children:[
5
+ /* @__PURE__ */e(D,{className:"flex-1 md:flex-row",size:"sm",children:[
6
+ /* @__PURE__ */t(W,{className:"w-4 h-4"}),"Directions"]}),
7
+ /* @__PURE__ */t(D,{variant:"outline",className:"flex-1 md:flex-none bg-transparent",size:"sm",children:"View Details"})]})]}),l[9]=h,l[10]=b,l[11]=o.address?.city,l[12]=o.address?.postal_code,l[13]=o.address?.province,l[14]=o.address?.street_line_one,l[15]=o.address?.street_line_two,l[16]=o.retailer_name,l[17]=S):S=l[17],l[18]!==g||l[19]!==u||l[20]!==o.name||l[21]!==N||l[22]!==w||l[23]!==S?(k=/* @__PURE__ */e(s,{position:N,ref:u,title:o.name,onClick:g,children:[w,S]}),l[18]=g,l[19]=u,l[20]=o.name,l[21]=N,l[22]=w,l[23]=S,l[24]=k):k=l[24],k},K=()=>{const l=r(41),{location:n,stores:i,selectedStoreId:s,setSelectedStoreId:c}=a(),m=o();let u;l[0]!==m?(u=()=>{if(!m)return;const e=m.getZoom();m.setZoom(e+1)},l[0]=m,l[1]=u):u=l[1];const h=u;let p;l[2]!==m?(p=()=>{if(!m)return;const e=m.getZoom();m.setZoom(e-1)},l[2]=m,l[3]=p):p=l[3];const g=p;let f,x,b,v,y;l[4]!==n||l[5]!==m?(f=()=>{m&&n?.latitude&&n?.longitude&&(m.panTo({lat:n.latitude,lng:n.longitude}),m.setZoom(9))},x=[n,m],l[4]=n,l[5]=m,l[6]=f,l[7]=x):(f=l[6],x=l[7]),B(f,x),l[8]!==m||l[9]!==s||l[10]!==i?(b=()=>{if(!m||!s)return;const e=i.find(e=>e.id===s);e&&e.address&&m.panTo({lat:1*e.address.latitude,lng:1*e.address.longitude})},v=[s,i,m],l[8]=m,l[9]=s,l[10]=i,l[11]=b,l[12]=v):(b=l[11],v=l[12]),B(b,v),l[13]!==c?(y=e=>{c(e)},l[13]=c,l[14]=y):y=l[14];const N=y;let _,w,S,k,C,M,I,z,j,D,A;if(l[15]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(_={width:"100%",height:"600px"},w={lat:22.54992,lng:0},l[15]=_,l[16]=w):(_=l[15],w=l[16]),l[17]!==N||l[18]!==s||l[19]!==i){let e;l[21]!==N||l[22]!==s?(e=e=>/* @__PURE__ */t(Z,{store:e,isSelected:s===e.id,onClick:N},e.id),l[21]=N,l[22]=s,l[23]=e):e=l[23],S=i.map(e),l[17]=N,l[18]=s,l[19]=i,l[20]=S}else S=l[20];return l[24]!==S?(k=/* @__PURE__ */t("div",{className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-primary/5 to-muted",children:/* @__PURE__ */t("div",{className:"text-center w-full",children:/* @__PURE__ */t(d,{style:_,defaultCenter:w,defaultZoom:3,gestureHandling:"greedy",disableDefaultUI:!0,mapId:"b1e4f5f5f8c7e2d9",children:S})})}),l[24]=S,l[25]=k):k=l[25],l[26]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(C=/* @__PURE__ */t("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),l[26]=C):C=l[26],l[27]!==h?(M=/* @__PURE__ */t("button",{className:"bg-card border shadow-md rounded-lg p-2 hover:bg-accent transition-colors",onClick:h,children:C}),l[27]=h,l[28]=M):M=l[28],l[29]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(I=/* @__PURE__ */t("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12H4"})}),l[29]=I):I=l[29],l[30]!==g?(z=/* @__PURE__ */t("button",{className:"bg-card border shadow-md rounded-lg p-2 hover:bg-accent transition-colors",onClick:g,children:I}),l[30]=g,l[31]=z):z=l[31],l[32]!==M||l[33]!==z?(j=/* @__PURE__ */e("div",{className:"absolute top-4 right-4 flex flex-col gap-2",children:[M,z]}),l[32]=M,l[33]=z,l[34]=j):j=l[34],l[35]!==i.length?(D=/* @__PURE__ */e("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 bg-card border shadow-lg rounded-full px-4 py-2 text-sm font-medium",children:[
8
+ /* @__PURE__ */t("span",{className:"text-primary",children:i.length})," stores found"]}),l[35]=i.length,l[36]=D):D=l[36],l[37]!==k||l[38]!==j||l[39]!==D?(A=/* @__PURE__ */t("div",{className:"relative",children:/* @__PURE__ */e("div",{className:"bg-muted rounded-xl overflow-hidden border shadow-md h-[600px] lg:sticky lg:top-24",children:[k,j,D]})}),l[37]=k,l[38]=j,l[39]=D,l[40]=A):A=l[40],A};function Y(e){return e?.label??e?.description??e?.text??e?.placePrediction?.text?.text??e?.placePrediction?.structuredFormat?.mainText?.text??""}function J(){const l=r(92),{t:n}=R(),[i,s]=M(""),[o,d]=M(!1),[h,p]=M(!1),[g,f]=M(-1),{location:x,searchRadius:b,setSearchRadius:v,setSearchLocation:y,setUseLocationType:N}=a();let _,w,S;l[0]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(_={lat:37.7937,lng:-122.3965},l[0]=_):_=l[0],l[1]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(w=["locality","postal_code"],l[1]=w):w=l[1],l[2]!==i?(S={query:i,apiKey:"AIzaSyAnJmWEU1r63DiRWHkjczxzHyIEq3dhj4M",center:_,radiusMeters:1e4,types:w},l[2]=i,l[3]=S):S=l[3];const{results:k,isLoading:C,error:j}=c(S);let D;l[4]!==k?(D=Array.isArray(k)?k:[],l[4]=k,l[5]=D):D=l[5];const O=D,L=I(null),$=z(),T=g>=0?`${$}-opt-${g}`:void 0;let U,W,F;l[6]!==C||l[7]!==O.length||l[8]!==h?(U=()=>{h&&(C||f(O.length?0:-1))},W=[h,C,O.length],l[6]=C,l[7]=O.length,l[8]=h,l[9]=U,l[10]=W):(U=l[9],W=l[10]),B(U,W),l[11]!==y||l[12]!==N?(F=e=>{const t=Y(e);if(!t)return;s(t),p(!1),requestAnimationFrame(()=>L.current?.focus());const r={latitude:e.location?.lat??null,longitude:e.location?.lng??null,accuracy:null,altitude:0,altitudeAccuracy:null,heading:null,speed:null,city:e.city??null,region:e.region??null,country:e.country??null,postal:e.postalCode??null,timezone:null,ip:null,type:"search",raw:e};y(r),N("search")},l[11]=y,l[12]=N,l[13]=F):F=l[13];const H=F;let Z;l[14]!==g||l[15]!==H||l[16]!==O||l[17]!==h?(Z=e=>{if(h||"ArrowDown"!==e.key&&"ArrowUp"!==e.key){if(h)e:switch(e.key){case"ArrowDown":e.preventDefault(),f(e=>Math.min(e+1,O.length-1));break e;case"ArrowUp":e.preventDefault(),f(X);break e;case"Enter":g>=0&&O[g]&&(e.preventDefault(),H(O[g]));break e;case"Escape":e.preventDefault(),p(!1)}}else p(!0)},l[14]=g,l[15]=H,l[16]=O,l[17]=h,l[18]=Z):Z=l[18];const K=Z;let J;l[19]!==N?(J=()=>{N("geolocation"),p(!1),s("")},l[19]=N,l[20]=J):J=l[20];const ee=J;let te;l[21]!==j||l[22]!==C||l[23]!==O.length||l[24]!==h||l[25]!==i?(te=h&&!C&&!j&&i.trim().length>0&&0===O.length,l[21]=j,l[22]=C,l[23]=O.length,l[24]=h,l[25]=i,l[26]=te):te=l[26];const re=te;let ae,le,ne,ie,se,oe,de,ce,me,ue,he,pe,ge,fe,xe,be,ve,ye,Ne,_e,we,Se,ke;return l[27]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(ae=/* @__PURE__ */t(q,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),l[27]=ae):ae=l[27],l[28]!==x||l[29]!==n?(le=x?.city?n("default:location_search_placeholder_w_location",{location:x.city}):n("default:location_search_placeholder"),l[28]=x,l[29]=n,l[30]=le):le=l[30],l[31]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(ne=e=>{s(e.target.value),p(!0)},ie=()=>p(!0),l[31]=ne,l[32]=ie):(ne=l[31],ie=l[32]),l[33]!==T||l[34]!==$||l[35]!==K||l[36]!==h||l[37]!==i||l[38]!==le?(se=/* @__PURE__ */t(E.Anchor,{asChild:!0,children:/* @__PURE__ */e("div",{className:"flex-1 relative",children:[ae,
9
+ /* @__PURE__ */t(m,{ref:L,type:"text",placeholder:le,value:i,onChange:ne,onFocus:ie,onKeyDown:K,className:"pl-10 h-12",role:"combobox","aria-autocomplete":"list","aria-expanded":h,"aria-controls":$,"aria-activedescendant":T})]})}),l[33]=T,l[34]=$,l[35]=K,l[36]=h,l[37]=i,l[38]=le,l[39]=se):se=l[39],l[40]!==j?(oe=j?/* @__PURE__ */t("div",{className:"px-3 py-2 text-sm rounded-md border border-destructive/30 bg-destructive/10 text-destructive",children:String(j)}):null,l[40]=j,l[41]=oe):oe=l[41],l[42]!==C||l[43]!==n?(de=C?/* @__PURE__ */t("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:n("default:loading")}):null,l[42]=C,l[43]=n,l[44]=de):de=l[44],l[45]!==re||l[46]!==n?(ce=re?/* @__PURE__ */t("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:n("default:no_results")}):null,l[45]=re,l[46]=n,l[47]=ce):ce=l[47],l[48]!==g||l[49]!==H||l[50]!==j||l[51]!==C||l[52]!==O||l[53]!==$?(me=!C&&!j&&O.map((r,a)=>{const l=a===g,n=Y(r),i=(s=r,s?.secondary??s?.secondary_text??s?.placePrediction?.structuredFormat?.secondaryText?.text??s?.placePrediction?.structuredFormat?.secondaryText??"");var s;const o=function(e,t){return e?.id??e?.place_id??e?.placePrediction?.placeId??t}(r,`${a}`);return n?/* @__PURE__ */e("div",{id:`${$}-opt-${a}`,role:"option","aria-selected":l,onMouseEnter:()=>f(a),onMouseDown:G,onClick:()=>H(r),className:["cursor-pointer rounded-lg px-3 py-2",l?"bg-muted":"hover:bg-muted/60"].join(" "),children:[
10
+ /* @__PURE__ */t("div",{className:"text-sm text-left font-medium leading-tight",children:n}),i?/* @__PURE__ */t("div",{className:"text-xs text-left text-muted-foreground mt-1 leading-tight",children:i}):null]},o):null}),l[48]=g,l[49]=H,l[50]=j,l[51]=C,l[52]=O,l[53]=$,l[54]=me):me=l[54],l[55]!==$||l[56]!==oe||l[57]!==de||l[58]!==ce||l[59]!==me?(ue=/* @__PURE__ */t(P.Viewport,{children:/* @__PURE__ */e("div",{id:$,role:"listbox",className:"p-2",children:[oe,de,ce,me]})}),l[55]=$,l[56]=oe,l[57]=de,l[58]=ce,l[59]=me,l[60]=ue):ue=l[60],l[61]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(he=/* @__PURE__ */t(P.Scrollbar,{orientation:"vertical",className:"flex select-none touch-none p-0.5 bg-transparent",children:/* @__PURE__ */t(P.Thumb,{className:"flex-1 bg-border rounded-full"})}),l[61]=he):he=l[61],l[62]!==ue?(pe=/* @__PURE__ */t(E.Content,{sideOffset:6,align:"start",onOpenAutoFocus:Q,className:"w-[var(--radix-popover-trigger-width)] max-w-[560px] rounded-xl border rounded bg-background shadow-lg overflow-hidden",children:/* @__PURE__ */e(P.Root,{className:"max-h-80",children:[ue,he]})}),l[62]=ue,l[63]=pe):pe=l[63],l[64]!==h||l[65]!==se||l[66]!==pe?(ge=/* @__PURE__ */e(E.Root,{open:h,onOpenChange:p,children:[se,pe]}),l[64]=h,l[65]=se,l[66]=pe,l[67]=ge):ge=l[67],l[68]!==o?(fe=()=>d(!o),l[68]=o,l[69]=fe):fe=l[69],l[70]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(xe=/* @__PURE__ */t(V,{className:"w-5 h-5"}),l[70]=xe):xe=l[70],l[71]!==fe?(be=/* @__PURE__ */t(u,{variant:"outline",size:"lg",onClick:fe,className:"w-auto h-12",type:"button",children:xe}),l[71]=fe,l[72]=be):be=l[72],l[73]!==ge||l[74]!==be?(ve=/* @__PURE__ */e("div",{className:"flex flex-row gap-4",children:[ge,be]}),l[73]=ge,l[74]=be,l[75]=ve):ve=l[75],l[76]!==b||l[77]!==v||l[78]!==o?(ye=o&&/* @__PURE__ */e("div",{className:"mt-6 pt-6 border-t grid md:grid-cols-2 gap-4",children:[
11
+ /* @__PURE__ */e("div",{children:[
12
+ /* @__PURE__ */t("label",{className:"text-sm font-medium mb-2 block",children:"Distance"}),
13
+ /* @__PURE__ */e("select",{value:b,onChange:e=>v(e.target.value),className:"w-full h-10 rounded-md border border-input bg-background px-3 text-sm",children:[
14
+ /* @__PURE__ */t("option",{value:"5mi",children:"Within 5 miles"}),
15
+ /* @__PURE__ */t("option",{value:"10mi",children:"Within 10 miles"}),
16
+ /* @__PURE__ */t("option",{value:"25mi",children:"Within 25 miles"}),
17
+ /* @__PURE__ */t("option",{value:"50mi",children:"Within 50 miles"}),
18
+ /* @__PURE__ */t("option",{value:"100mi",children:"Within 100 miles"})]})]}),
19
+ /* @__PURE__ */e("div",{children:[
20
+ /* @__PURE__ */t("label",{className:"text-sm font-medium mb-2 block",children:"Retailer Type"}),
21
+ /* @__PURE__ */e("select",{className:"w-full h-10 rounded-md border border-input bg-background px-3 text-sm",children:[
22
+ /* @__PURE__ */t("option",{children:"All Types"}),
23
+ /* @__PURE__ */t("option",{children:"Specialty Stores"}),
24
+ /* @__PURE__ */t("option",{children:"Big Box Retailers"}),
25
+ /* @__PURE__ */t("option",{children:"Independent Dealers"}),
26
+ /* @__PURE__ */t("option",{children:"Authorized Distributors"})]})]})]}),l[76]=b,l[77]=v,l[78]=o,l[79]=ye):ye=l[79],l[80]!==ve||l[81]!==ye?(Ne=/* @__PURE__ */e("div",{className:"bg-card rounded-xl shadow-lg p-6 border",children:[ve,ye]}),l[80]=ve,l[81]=ye,l[82]=Ne):Ne=l[82],l[83]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(_e=/* @__PURE__ */t(A,{className:"w-4 h-4"}),l[83]=_e):_e=l[83],l[84]!==n?(we=n("default:use_my_location"),l[84]=n,l[85]=we):we=l[85],l[86]!==ee||l[87]!==we?(Se=/* @__PURE__ */e("div",{className:"mt-6 flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[_e,
27
+ /* @__PURE__ */t("button",{className:"text-primary hover:underline font-medium",type:"button",onClick:ee,children:we})]}),l[86]=ee,l[87]=we,l[88]=Se):Se=l[88],l[89]!==Ne||l[90]!==Se?(ke=/* @__PURE__ */e("div",{className:"max-w-3xl mx-auto",children:[Ne,Se]}),l[89]=Ne,l[90]=Se,l[91]=ke):ke=l[91],ke}function G(e){return e.preventDefault()}function Q(e){return e.preventDefault()}function X(e){return Math.max(e-1,0)}const ee=a=>{const l=r(114),{storeName:n,isOpen:i,onClose:s}=a;let o;l[0]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(o={name:"",email:"",phoneNumber:"",message:"",consent:!1},l[0]=o):o=l[0];const d=o;let c;if(l[1]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")){const e=/^\+?[1-9]\d{1,14}$/;c=h({name:g().required("Name is required"),email:g().email("Invalid email address").required("Email is required"),phoneNumber:g().matches(e,"Invalid phone number").required("Phone number is required"),message:g().required("Message is required"),consent:p().oneOf([!0],"You must agree to the terms").required("You must agree to the terms")}),l[1]=c}else c=l[1];const m=c,u=te;let N;l[2]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(N={initialValues:d,validationSchema:m,onSubmit:u,enableReinitialize:!0,validateOnBlur:!1},l[2]=N):N=l[2];const _=f(N);let w,S;l[3]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(w={zIndex:1e3,position:"relative"},l[3]=w):w=l[3],l[4]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(S=/* @__PURE__ */t(F.Overlay,{className:"fixed inset-0 bg-black/50"}),l[4]=S):S=l[4];const k=n||"the store";let C;l[5]!==k?(C=/* @__PURE__ */e(F.Title,{className:"text-lg text-left font-medium mb-4",children:["Send a Message to ",k]}),l[5]=k,l[6]=C):C=l[6];const M=_.handleSubmit;let B;l[7]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(B=/* @__PURE__ */t(b,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),l[7]=B):B=l[7];const I=_.touched.name&&_.errors.name?"true":"false";let z,j,A,q,T,U;l[8]!==_.handleBlur||l[9]!==_.handleChange||l[10]!==_.values.name||l[11]!==I?(z=/* @__PURE__ */t(O,{type:"text",id:"name",name:"name",placeholder:"Name","aria-invalid":I,value:_.values.name,onChange:_.handleChange,onBlur:_.handleBlur,className:"pl-10 h-12"}),l[8]=_.handleBlur,l[9]=_.handleChange,l[10]=_.values.name,l[11]=I,l[12]=z):z=l[12],l[13]!==_.errors||l[14]!==_.touched.name?(j=_.touched.name&&_.errors.name?/* @__PURE__ */t(x,{className:"absolute text-red-600 right-3 top-1/2 -translate-y-1/2 w-5 h-5"}):null,l[13]=_.errors,l[14]=_.touched.name,l[15]=j):j=l[15],l[16]!==z||l[17]!==j?(A=/* @__PURE__ */e("div",{className:"flex-1 relative",children:[B,z,j]}),l[16]=z,l[17]=j,l[18]=A):A=l[18],l[19]!==_.errors||l[20]!==_.touched.name?(q=_.touched.name&&_.errors.name?/* @__PURE__ */t("div",{className:"text-sm text-left text-red-600 mt-1",children:_.errors.name}):null,l[19]=_.errors,l[20]=_.touched.name,l[21]=q):q=l[21],l[22]!==A||l[23]!==q?(T=/* @__PURE__ */e("div",{children:[A,q]}),l[22]=A,l[23]=q,l[24]=T):T=l[24],l[25]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(U=/* @__PURE__ */t(v,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),l[25]=U):U=l[25];const W=_.touched.email&&_.errors.email?"true":"false";let E,P,R,H,V,Z;l[26]!==_.handleBlur||l[27]!==_.handleChange||l[28]!==_.values.email||l[29]!==W?(E=/* @__PURE__ */t(O,{type:"email",id:"email",name:"email",placeholder:"Email Address",value:_.values.email,"aria-invalid":W,onChange:_.handleChange,onBlur:_.handleBlur,className:"pl-10 h-12"}),l[26]=_.handleBlur,l[27]=_.handleChange,l[28]=_.values.email,l[29]=W,l[30]=E):E=l[30],l[31]!==_.errors||l[32]!==_.touched.email?(P=_.touched.email&&_.errors.email?/* @__PURE__ */t(x,{className:"absolute text-red-600 right-3 top-1/2 -translate-y-1/2 w-5 h-5"}):null,l[31]=_.errors,l[32]=_.touched.email,l[33]=P):P=l[33],l[34]!==E||l[35]!==P?(R=/* @__PURE__ */e("div",{className:"flex-1 relative",children:[U,E,P]}),l[34]=E,l[35]=P,l[36]=R):R=l[36],l[37]!==_.errors||l[38]!==_.touched.email?(H=_.touched.email&&_.errors.email?/* @__PURE__ */t("div",{className:"text-sm text-left text-red-600 mt-1",children:_.errors.email}):null,l[37]=_.errors,l[38]=_.touched.email,l[39]=H):H=l[39],l[40]!==R||l[41]!==H?(V=/* @__PURE__ */e("div",{children:[R,H]}),l[40]=R,l[41]=H,l[42]=V):V=l[42],l[43]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(Z=/* @__PURE__ */t($,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),l[43]=Z):Z=l[43];const K=_.touched.phoneNumber&&_.errors.phoneNumber?"true":"false";let Y,J,G,Q,X,ee;l[44]!==_.handleBlur||l[45]!==_.handleChange||l[46]!==_.values.phoneNumber||l[47]!==K?(Y=/* @__PURE__ */t(O,{type:"text",id:"phoneNumber",name:"phoneNumber",placeholder:"Phone Number",value:_.values.phoneNumber,onChange:_.handleChange,onBlur:_.handleBlur,"aria-invalid":K,className:"pl-10 h-12"}),l[44]=_.handleBlur,l[45]=_.handleChange,l[46]=_.values.phoneNumber,l[47]=K,l[48]=Y):Y=l[48],l[49]!==_.errors||l[50]!==_.touched.phoneNumber?(J=_.touched.phoneNumber&&_.errors.phoneNumber?/* @__PURE__ */t(x,{className:"absolute text-red-600 right-3 top-1/2 -translate-y-1/2 w-5 h-5"}):null,l[49]=_.errors,l[50]=_.touched.phoneNumber,l[51]=J):J=l[51],l[52]!==Y||l[53]!==J?(G=/* @__PURE__ */e("div",{className:"flex-1 relative",children:[Z,Y,J]}),l[52]=Y,l[53]=J,l[54]=G):G=l[54],l[55]!==_.errors||l[56]!==_.touched.phoneNumber?(Q=_.touched.phoneNumber&&_.errors.phoneNumber?/* @__PURE__ */t("div",{className:"text-sm text-left text-red-600 mt-1",children:_.errors.phoneNumber}):null,l[55]=_.errors,l[56]=_.touched.phoneNumber,l[57]=Q):Q=l[57],l[58]!==G||l[59]!==Q?(X=/* @__PURE__ */e("div",{children:[G,Q]}),l[58]=G,l[59]=Q,l[60]=X):X=l[60],l[61]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(ee=/* @__PURE__ */t(y,{className:"absolute left-3 top-5 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),l[61]=ee):ee=l[61];const re=_.touched.message&&_.errors.message?"true":"false",ae=_.values.message,le=_.handleChange,ne=_.handleBlur;let ie,se,oe,de,ce,me;l[62]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(ie=L("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","h-36 pt-2.5 pl-10"),l[62]=ie):ie=l[62],l[63]!==_.handleBlur||l[64]!==_.handleChange||l[65]!==_.values.message||l[66]!==re?(se=/* @__PURE__ */t("textarea",{id:"message",name:"message",placeholder:"Your Message","aria-invalid":re,value:ae,onChange:le,onBlur:ne,className:ie}),l[63]=_.handleBlur,l[64]=_.handleChange,l[65]=_.values.message,l[66]=re,l[67]=se):se=l[67],l[68]!==_.errors||l[69]!==_.touched.message?(oe=_.touched.message&&_.errors.message?/* @__PURE__ */t(x,{className:"absolute text-red-600 right-3 top-5 -translate-y-1/2 w-5 h-5"}):null,l[68]=_.errors,l[69]=_.touched.message,l[70]=oe):oe=l[70],l[71]!==se||l[72]!==oe?(de=/* @__PURE__ */e("div",{className:"flex-1 relative",children:[ee,se,oe]}),l[71]=se,l[72]=oe,l[73]=de):de=l[73],l[74]!==_.errors||l[75]!==_.touched.message?(ce=_.touched.message&&_.errors.message?/* @__PURE__ */t("div",{className:"text-sm text-left text-red-600 mt-1",children:_.errors.message}):null,l[74]=_.errors,l[75]=_.touched.message,l[76]=ce):ce=l[76],l[77]!==de||l[78]!==ce?(me=/* @__PURE__ */e("div",{children:[de,ce]}),l[77]=de,l[78]=ce,l[79]=me):me=l[79];const ue=_.touched.consent&&_.errors.consent?"true":"false";let he;l[80]!==_.handleBlur||l[81]!==_.handleChange||l[82]!==_.values.consent||l[83]!==ue?(he=/* @__PURE__ */t("input",{type:"checkbox",id:"consent",name:"consent",checked:_.values.consent,onChange:_.handleChange,onBlur:_.handleBlur,"aria-invalid":ue,className:"mt-0.5 h-4 w-4 rounded border-gray-300 text-purple-600 focus:ring-purple-600 cursor-pointer aria-invalid:text-red-600 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"}),l[80]=_.handleBlur,l[81]=_.handleChange,l[82]=_.values.consent,l[83]=ue,l[84]=he):he=l[84];const pe="ml-2 block text-left text-sm text-gray-700 cursor-pointer "+(_.touched.consent&&_.errors.consent?"text-red-600":""),ge=n||"the store";let fe,xe,be;l[85]!==pe||l[86]!==ge?(fe=/* @__PURE__ */e("label",{htmlFor:"consent",className:pe,children:["I would like to receive communications from ",ge,"."]}),l[85]=pe,l[86]=ge,l[87]=fe):fe=l[87],l[88]!==he||l[89]!==fe?(xe=/* @__PURE__ */e("div",{className:"flex items-start",children:[he,fe]}),l[88]=he,l[89]=fe,l[90]=xe):xe=l[90],l[91]!==s?(be=/* @__PURE__ */t(D,{variant:"outline",onClick:s,type:"button",children:"Cancel"}),l[91]=s,l[92]=be):be=l[92];const ve=_.isSubmitting?"Sending...":"Send Message";let ye,Ne,_e,we,Se;return l[93]!==_.isSubmitting||l[94]!==ve?(ye=/* @__PURE__ */t(D,{type:"submit",disabled:_.isSubmitting,children:ve}),l[93]=_.isSubmitting,l[94]=ve,l[95]=ye):ye=l[95],l[96]!==be||l[97]!==ye?(Ne=/* @__PURE__ */e("div",{className:"flex justify-end gap-2",children:[be,ye]}),l[96]=be,l[97]=ye,l[98]=Ne):Ne=l[98],l[99]!==_.handleSubmit||l[100]!==T||l[101]!==V||l[102]!==X||l[103]!==me||l[104]!==xe||l[105]!==Ne?(_e=/* @__PURE__ */e("form",{onSubmit:M,className:"space-y-4",children:[T,V,X,me,xe,Ne]}),l[99]=_.handleSubmit,l[100]=T,l[101]=V,l[102]=X,l[103]=me,l[104]=xe,l[105]=Ne,l[106]=_e):_e=l[106],l[107]!==_e||l[108]!==C?(we=/* @__PURE__ */e(F.Content,{className:"fixed top-1/2 left-1/2 max-h-[85vh] w-[90vw] max-w-lg -translate-x-1/2 -translate-y-1/2 rounded-lg bg-white p-6 shadow-lg focus:outline-none",children:[C,_e]}),l[107]=_e,l[108]=C,l[109]=we):we=l[109],l[110]!==i||l[111]!==s||l[112]!==we?(Se=/* @__PURE__ */t("div",{className:"cc",style:w,children:/* @__PURE__ */e(F.Root,{open:i,onOpenChange:s,children:[S,we]})}),l[110]=i,l[111]=s,l[112]=we,l[113]=Se):Se=l[113],Se};async function te(e,t){}const re=()=>{const e=r(12),{messageDialogOpen:l,setMessageDialogOpen:n,messageStoreId:i,setMessageStoreId:s,stores:o}=a();let d;if(e[0]!==i||e[1]!==o){let t;e[3]!==i?(t=e=>e.id===i,e[3]=i,e[4]=t):t=e[4],d=o.find(t),e[0]=i,e[1]=o,e[2]=d}else d=e[2];const c=d?d.retailer_name:null;let m;e[5]!==n||e[6]!==s?(m=()=>{n(!1),s(null)},e[5]=n,e[6]=s,e[7]=m):m=e[7];const u=m;let h;return e[8]!==u||e[9]!==l||e[10]!==c?(h=/* @__PURE__ */t(ee,{isOpen:l,onClose:u,storeName:c}),e[8]=u,e[9]=l,e[10]=c,e[11]=h):h=e[11],h},ae=a=>{const l=r(73),{id:n,name:i,placeId:s,addressLineOne:o,city:d,province:c,postalCode:m,phone:u,hours:h,distance:p,services:g,isSelected:f,handleSelect:x,onMessageClick:b,href:v}=a;let y;l[0]!==g?(y=void 0===g?[]:g,l[0]=g,l[1]=y):y=l[1];const w=y,{t:S}=R(),k=`https://www.google.com/maps/dir/?api=1&destination=${i}&destination_place_id=${s}`,C="bg-card border rounded-xl p-6 transition-all hover:shadow-lg cursor-pointer "+(f?"ring-2 ring-primary shadow-lg":"");let M,B,I,z,j,q,O,L,U;l[2]!==x||l[3]!==n?(M=()=>x(n),l[2]=x,l[3]=n,l[4]=M):M=l[4],l[5]!==i?(B=/* @__PURE__ */t("div",{className:"flex items-start justify-between gap-4 mb-3",children:/* @__PURE__ */t("div",{children:/* @__PURE__ */t("h3",{className:"font-bold text-lg text-left mb-1",children:i})})}),l[5]=i,l[6]=B):B=l[6],l[7]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(I=/* @__PURE__ */t(A,{className:"w-4 h-4 text-muted-foreground mt-0.5 shrink-0"}),l[7]=I):I=l[7],l[8]!==o?(z=/* @__PURE__ */t("p",{className:"font-medium text-left",children:o}),l[8]=o,l[9]=z):z=l[9],l[10]!==d||l[11]!==m||l[12]!==c?(j=/* @__PURE__ */e("p",{className:"text-muted-foreground text-left",children:[d,", ",c," ",m]}),l[10]=d,l[11]=m,l[12]=c,l[13]=j):j=l[13],l[14]!==p||l[15]!==S?(q=S("default:distance_away",{distance:N(p).toFixed(1),distanceUnit:"miles"}),l[14]=p,l[15]=S,l[16]=q):q=l[16],l[17]!==q?(O=/* @__PURE__ */t("p",{className:"text-primary font-medium mt-1 text-left",children:q}),l[17]=q,l[18]=O):O=l[18],l[19]!==O||l[20]!==z||l[21]!==j?(L=/* @__PURE__ */e("div",{className:"flex items-start gap-2",children:[I,
28
+ /* @__PURE__ */e("div",{children:[z,j,O]})]}),l[19]=O,l[20]=z,l[21]=j,l[22]=L):L=l[22],l[23]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(U=/* @__PURE__ */t($,{className:"w-4 h-4 text-muted-foreground"}),l[23]=U):U=l[23];const E=`tel:${u?.phone_number}`,P=u?.formatted;let F,V,Z,K,Y,J,G,Q,X,ee,te,re,ae,ne,ie,se,oe,de,ce;return l[24]!==E||l[25]!==P?(F=/* @__PURE__ */e("div",{className:"flex items-center gap-2",children:[U,
29
+ /* @__PURE__ */t("a",{href:E,className:"hover:text-primary transition-colors",children:P})]}),l[24]=E,l[25]=P,l[26]=F):F=l[26],l[27]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(V=/* @__PURE__ */t("div",{className:"mt-2.5",children:/* @__PURE__ */t(T,{className:"w-4 h-4 text-muted-foreground"})}),l[27]=V):V=l[27],l[28]!==h?(Z=/* @__PURE__ */e("div",{className:"flex items-top gap-2",children:[V,
30
+ /* @__PURE__ */t("span",{className:"text-muted-foreground",children:/* @__PURE__ */t(_,{hours:h})})]}),l[28]=h,l[29]=Z):Z=l[29],l[30]!==L||l[31]!==F||l[32]!==Z?(K=/* @__PURE__ */e("div",{className:"space-y-2 text-sm",children:[L,F,Z]}),l[30]=L,l[31]=F,l[32]=Z,l[33]=K):K=l[33],l[34]!==w?(Y=w.map(le),l[34]=w,l[35]=Y):Y=l[35],l[36]!==Y?(J=/* @__PURE__ */t("div",{className:"flex flex-wrap gap-2 mt-4",children:Y}),l[36]=Y,l[37]=J):J=l[37],l[38]!==K||l[39]!==J||l[40]!==B?(G=/* @__PURE__ */e("div",{className:"flex-1",children:[B,K,J]}),l[38]=K,l[39]=J,l[40]=B,l[41]=G):G=l[41],l[42]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(Q=/* @__PURE__ */t(W,{className:"w-4 h-4"}),l[42]=Q):Q=l[42],l[43]!==S?(X=S("default:get_directions"),l[43]=S,l[44]=X):X=l[44],l[45]!==k||l[46]!==X?(ee=/* @__PURE__ */e("a",{href:k,target:"_blank",rel:"noopener noreferrer",className:"flex-1 md:flex-none inline-flex items-center justify-center gap-2 rounded-md bg-primary text-primary-foreground text-sm font-medium h-8 px-4 hover:bg-primary/90 transition-colors",children:[Q,X]}),l[45]=k,l[46]=X,l[47]=ee):ee=l[47],l[48]!==n||l[49]!==b?(te=e=>{e.stopPropagation(),b(n)},l[48]=n,l[49]=b,l[50]=te):te=l[50],l[51]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(re=/* @__PURE__ */t(H,{className:"w-4 h-4"}),l[51]=re):re=l[51],l[52]!==S?(ae=S("default:message"),l[52]=S,l[53]=ae):ae=l[53],l[54]!==te||l[55]!==ae?(ne=/* @__PURE__ */e(D,{variant:"outline",className:"flex-1 md:flex-none bg-transparent",size:"sm",onClick:te,children:[re,ae]}),l[54]=te,l[55]=ae,l[56]=ne):ne=l[56],l[57]!==S?(ie=S("default:view_details"),l[57]=S,l[58]=ie):ie=l[58],l[59]!==v||l[60]!==ie?(se=/* @__PURE__ */t("a",{href:v,target:"_blank",className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive bg-secondary text-secondary-foreground hover:bg-secondary/80 flex-1 md:flex-none bg-transparent",size:"sm",children:ie}),l[59]=v,l[60]=ie,l[61]=se):se=l[61],l[62]!==ee||l[63]!==ne||l[64]!==se?(oe=/* @__PURE__ */e("div",{className:"flex md:flex-col gap-2",children:[ee,ne,se]}),l[62]=ee,l[63]=ne,l[64]=se,l[65]=oe):oe=l[65],l[66]!==G||l[67]!==oe?(de=/* @__PURE__ */e("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[G,oe]}),l[66]=G,l[67]=oe,l[68]=de):de=l[68],l[69]!==C||l[70]!==de||l[71]!==M?(ce=/* @__PURE__ */t("div",{className:C,onClick:M,children:de}),l[69]=C,l[70]=de,l[71]=M,l[72]=ce):ce=l[72],ce};function le(e){/* @__PURE__ */
31
+ return t("span",{className:"px-3 py-1 bg-primary/10 text-primary text-xs font-medium rounded-full",children:e},e)}function ne(){const l=r(26),{stores:n,location:i,selectedStoreId:s,setSelectedStoreId:o,setMessageDialogOpen:d,setMessageStoreId:c,searchIsLoading:m,searchError:u,baseUrl:h}=a();let p;l[0]!==d||l[1]!==c?(p=e=>{c(e),d(!0)},l[0]=d,l[1]=c,l[2]=p):p=l[2];const g=p;let f,x,b,v,y;return l[3]!==u||l[4]!==m||l[5]!==n?(f=!m&&!u&&0===n.length&&/* @__PURE__ */t(w,{}),l[3]=u,l[4]=m,l[5]=n,l[6]=f):f=l[6],l[7]!==m?(x=m&&/* @__PURE__ */t("div",{className:"flex items-center justify-center h-48",children:/* @__PURE__ */t(k,{})}),l[7]=m,l[8]=x):x=l[8],l[9]!==h||l[10]!==g||l[11]!==i||l[12]!==u||l[13]!==m||l[14]!==s||l[15]!==o||l[16]!==n?(b=!m&&!u&&n.map(e=>/* @__PURE__ */t(ae,{id:e.id,name:e.retailer_name,placeId:e.place_id,addressLineOne:e.address?.street_line_one,addressLineTwo:e.address?.street_line_two,city:e.address?.city,province:e.address?.province,postalCode:e.address?.postal_code,country:e.address?.country,distance:S(i.latitude,i.longitude,e.address?.latitude,e.address?.longitude),phone:e.phone_number,hours:e.retailer_location_hours,services:[e.store_type],isSelected:s===e.id,handleSelect:o,href:`${h}/${e.id}`,onMessageClick:g},e.id)),l[9]=h,l[10]=g,l[11]=i,l[12]=u,l[13]=m,l[14]=s,l[15]=o,l[16]=n,l[17]=b):b=l[17],l[18]!==u||l[19]!==m?(v=!m&&u&&/* @__PURE__ */t("div",{className:"text-red-600 text-center",children:"An error occurred while searching for stores. Please try again."}),l[18]=u,l[19]=m,l[20]=v):v=l[20],l[21]!==f||l[22]!==x||l[23]!==b||l[24]!==v?(y=/* @__PURE__ */e("div",{className:"space-y-4",children:[f,x,b,v]}),l[21]=f,l[22]=x,l[23]=b,l[24]=v,l[25]=y):y=l[25],y}const ie=a=>{const n=r(12),{organizationId:i,locale:s,baseUrl:o}=a,d=void 0===o?"/retailers":o;let c,m,u,h,p,g;return n[0]!==s?(c={lng:s},n[0]=s,n[1]=c):c=n[1],n[2]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(m=/* @__PURE__ */t(C,{apiKey:"AIzaSyAnJmWEU1r63DiRWHkjczxzHyIEq3dhj4M",children:/* @__PURE__ */t(K,{})}),n[2]=m):m=n[2],n[3]===/* @__PURE__ */Symbol.for("react.memo_cache_sentinel")?(u=/* @__PURE__ */t("section",{className:"py-12 lg:py-16 cc",children:/* @__PURE__ */t("div",{className:"container mx-auto",children:/* @__PURE__ */e("div",{className:"grid lg:grid-cols-2 gap-8",children:[m,
32
+ /* @__PURE__ */e("div",{className:"lg:order-first",children:[
33
+ /* @__PURE__ */t("div",{className:"mb-8",children:/* @__PURE__ */t(J,{})}),
34
+ /* @__PURE__ */t(ne,{})]})]})})}),h=/* @__PURE__ */t(re,{}),n[3]=u,n[4]=h):(u=n[3],h=n[4]),n[5]!==d||n[6]!==s||n[7]!==i?(p=/* @__PURE__ */e(l,{organizationId:i,locale:s,baseUrl:d,children:[u,h]}),n[5]=d,n[6]=s,n[7]=i,n[8]=p):p=n[8],n[9]!==c||n[10]!==p?(g=/* @__PURE__ */t(U,{options:c,children:p}),n[9]=c,n[10]=p,n[11]=g):g=n[11],g};export{ie as default};
@@ -0,0 +1 @@
1
+ import{S as o,S as r}from"./store-locator-Bto20jHS.js";export{o as StoreLocatorProvider,r as default};
@@ -0,0 +1 @@
1
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{.cc :root,.cc :host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-600:oklch(57.7% .245 27.325);--color-orange-50:oklch(98% .016 73.684);--color-orange-600:oklch(64.6% .222 41.116);--color-green-50:oklch(98.2% .018 155.826);--color-green-600:oklch(62.7% .194 149.214);--color-purple-600:oklch(55.8% .288 302.321);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-700:oklch(37.3% .034 259.733);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-lg:32rem;--container-3xl:48rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--leading-relaxed:1.625;--shadow-md:calc(var(--shadow-x)*2)calc(var(--shadow-y)*2)calc(var(--shadow-blur)*3)calc(var(--shadow-spread) - 1px)var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){.cc :root,.cc :host{--shadow-md:calc(var(--shadow-x)*2)calc(var(--shadow-y)*2)calc(var(--shadow-blur)*3)calc(var(--shadow-spread) - 1px)color-mix(in srgb,var(--shadow-color)calc(var(--shadow-opacity)*100%),transparent)}}.cc :root,.cc :host{--ease-out:cubic-bezier(0,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{.cc *,.cc :after,.cc :before,.cc ::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}.cc ::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}.cc html,.cc :host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}.cc hr{height:0;color:inherit;border-top-width:1px}.cc abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.cc h1,.cc h2,.cc h3,.cc h4,.cc h5,.cc h6{font-size:inherit;font-weight:inherit}.cc a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}.cc b,.cc strong{font-weight:bolder}.cc code,.cc kbd,.cc samp,.cc pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}.cc small{font-size:80%}.cc sub,.cc sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.cc sub{bottom:-.25em}.cc sup{top:-.5em}.cc table{text-indent:0;border-color:inherit;border-collapse:collapse}.cc :-moz-focusring{outline:auto}.cc progress{vertical-align:baseline}.cc summary{display:list-item}.cc ol,.cc ul,.cc menu{list-style:none}.cc img,.cc svg,.cc video,.cc canvas,.cc audio,.cc iframe,.cc embed,.cc object{vertical-align:middle;display:block}.cc img,.cc video{max-width:100%;height:auto}.cc button,.cc input,.cc select,.cc optgroup,.cc textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.cc ::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}.cc :where(select:is([multiple],[size])) optgroup{font-weight:bolder}.cc :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}.cc ::file-selector-button{margin-inline-end:4px}.cc ::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){.cc ::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){.cc ::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}.cc textarea{resize:vertical}.cc ::-webkit-search-decoration{-webkit-appearance:none}.cc ::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}.cc ::-webkit-datetime-edit{display:inline-flex}.cc ::-webkit-datetime-edit-fields-wrapper{padding:0}.cc ::-webkit-datetime-edit{padding-block:0}.cc ::-webkit-datetime-edit-year-field{padding-block:0}.cc ::-webkit-datetime-edit-month-field{padding-block:0}.cc ::-webkit-datetime-edit-day-field{padding-block:0}.cc ::-webkit-datetime-edit-hour-field{padding-block:0}.cc ::-webkit-datetime-edit-minute-field{padding-block:0}.cc ::-webkit-datetime-edit-second-field{padding-block:0}.cc ::-webkit-datetime-edit-millisecond-field{padding-block:0}.cc ::-webkit-datetime-edit-meridiem-field{padding-block:0}.cc ::-webkit-calendar-picker-indicator{line-height:1}.cc :-moz-ui-invalid{box-shadow:none}.cc button,.cc input:where([type=button],[type=reset],[type=submit]){appearance:button}.cc ::file-selector-button{appearance:button}.cc ::-webkit-inner-spin-button{height:auto}.cc ::-webkit-outer-spin-button{height:auto}.cc [hidden]:where(:not([hidden=until-found])){display:none!important}.cc{background-color:var(--background);color:var(--foreground)}.cc *{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.cc *{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}}@layer utilities{.cc .\@container\/card-header{container:card-header/inline-size}.cc .absolute{position:absolute}.cc .fixed{position:fixed}.cc .relative{position:relative}.cc .static{position:static}.cc .sticky{position:sticky}.cc .inset-0{inset:calc(var(--spacing)*0)}.cc .top-1\/2{top:50%}.cc .top-3{top:calc(var(--spacing)*3)}.cc .top-4{top:calc(var(--spacing)*4)}.cc .top-5{top:calc(var(--spacing)*5)}.cc .top-24{top:calc(var(--spacing)*24)}.cc .right-3{right:calc(var(--spacing)*3)}.cc .right-4{right:calc(var(--spacing)*4)}.cc .bottom-4{bottom:calc(var(--spacing)*4)}.cc .left-1\/2{left:50%}.cc .left-3{left:calc(var(--spacing)*3)}.cc .z-1{z-index:1}.cc .z-10{z-index:10}.cc .col-start-2{grid-column-start:2}.cc .row-span-2{grid-row:span 2/span 2}.cc .row-start-1{grid-row-start:1}.cc .container{width:100%}@media(min-width:40rem){.cc .container{max-width:40rem}}@media(min-width:48rem){.cc .container{max-width:48rem}}@media(min-width:64rem){.cc .container{max-width:64rem}}@media(min-width:80rem){.cc .container{max-width:80rem}}@media(min-width:96rem){.cc .container{max-width:96rem}}.cc .-mx-4{margin-inline:calc(var(--spacing)*-4)}.cc .mx-auto{margin-inline:auto}.cc .me-1{margin-inline-end:calc(var(--spacing)*1)}.cc .mt-0\.5{margin-top:calc(var(--spacing)*.5)}.cc .mt-1{margin-top:calc(var(--spacing)*1)}.cc .mt-2{margin-top:calc(var(--spacing)*2)}.cc .mt-2\.5{margin-top:calc(var(--spacing)*2.5)}.cc .mt-3{margin-top:calc(var(--spacing)*3)}.cc .mt-4{margin-top:calc(var(--spacing)*4)}.cc .mt-6{margin-top:calc(var(--spacing)*6)}.cc .mr-2{margin-right:calc(var(--spacing)*2)}.cc .mb-1{margin-bottom:calc(var(--spacing)*1)}.cc .mb-2{margin-bottom:calc(var(--spacing)*2)}.cc .mb-3{margin-bottom:calc(var(--spacing)*3)}.cc .mb-4{margin-bottom:calc(var(--spacing)*4)}.cc .mb-6{margin-bottom:calc(var(--spacing)*6)}.cc .mb-8{margin-bottom:calc(var(--spacing)*8)}.cc .ml-2{margin-left:calc(var(--spacing)*2)}.cc .line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.cc .block{display:block}.cc .flex{display:flex}.cc .grid{display:grid}.cc .inline-flex{display:inline-flex}.cc .size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.cc .size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.cc .size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.cc .h-4{height:calc(var(--spacing)*4)}.cc .h-5{height:calc(var(--spacing)*5)}.cc .h-8{height:calc(var(--spacing)*8)}.cc .h-9{height:calc(var(--spacing)*9)}.cc .h-10{height:calc(var(--spacing)*10)}.cc .h-12{height:calc(var(--spacing)*12)}.cc .h-36{height:calc(var(--spacing)*36)}.cc .h-48{height:calc(var(--spacing)*48)}.cc .h-\[100\%\]{height:100%}.cc .h-\[300px\]{height:300px}.cc .h-\[500px\]{height:500px}.cc .h-\[600px\]{height:600px}.cc .h-auto{height:auto}.cc .h-full{height:100%}.cc .h-screen{height:100vh}.cc .max-h-80{max-height:calc(var(--spacing)*80)}.cc .max-h-\[85vh\]{max-height:85vh}.cc .w-4{width:calc(var(--spacing)*4)}.cc .w-5{width:calc(var(--spacing)*5)}.cc .w-8{width:calc(var(--spacing)*8)}.cc .w-9{width:calc(var(--spacing)*9)}.cc .w-10{width:calc(var(--spacing)*10)}.cc .w-28{width:calc(var(--spacing)*28)}.cc .w-\[90vw\]{width:90vw}.cc .w-\[var\(--radix-popover-trigger-width\)\]{width:var(--radix-popover-trigger-width)}.cc .w-auto{width:auto}.cc .w-fit{width:fit-content}.cc .w-full{width:100%}.cc .max-w-3xl{max-width:var(--container-3xl)}.cc .max-w-4xl{max-width:var(--container-4xl)}.cc .max-w-\[560px\]{max-width:560px}.cc .max-w-lg{max-width:var(--container-lg)}.cc .min-w-0{min-width:calc(var(--spacing)*0)}.cc .flex-1{flex:1}.cc .flex-shrink-0{flex-shrink:0}.cc .shrink{flex-shrink:1}.cc .shrink-0{flex-shrink:0}.cc .-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.cc .-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.cc .rotate-0{rotate:none}.cc .rotate-180{rotate:180deg}.cc .transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cc .cursor-pointer{cursor:pointer}.cc .touch-none{touch-action:none}.cc .auto-rows-min{grid-auto-rows:min-content}.cc .grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.cc .flex-col{flex-direction:column}.cc .flex-row{flex-direction:row}.cc .flex-wrap{flex-wrap:wrap}.cc .items-center{align-items:center}.cc .items-start{align-items:flex-start}.cc .justify-between{justify-content:space-between}.cc .justify-center{justify-content:center}.cc .justify-end{justify-content:flex-end}.cc .gap-1{gap:calc(var(--spacing)*1)}.cc .gap-1\.5{gap:calc(var(--spacing)*1.5)}.cc .gap-2{gap:calc(var(--spacing)*2)}.cc .gap-3{gap:calc(var(--spacing)*3)}.cc .gap-4{gap:calc(var(--spacing)*4)}.cc .gap-6{gap:calc(var(--spacing)*6)}.cc .gap-8{gap:calc(var(--spacing)*8)}:where(.cc .space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.cc .space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.cc .space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.cc .space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.cc .self-start{align-self:flex-start}.cc .justify-self-end{justify-self:flex-end}.cc .overflow-hidden{overflow:hidden}.cc .overflow-y-scroll{overflow-y:scroll}.cc .rounded{border-radius:.25rem}.cc .rounded-full{border-radius:3.40282e38px}.cc .rounded-lg{border-radius:var(--radius)}.cc .rounded-md{border-radius:calc(var(--radius) - 2px)}.cc .rounded-xl{border-radius:calc(var(--radius) + 4px)}.cc .border{border-style:var(--tw-border-style);border-width:1px}.cc .border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.cc .border-black\/5{border-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.cc .border-black\/5{border-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.cc .border-destructive\/30{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.cc .border-destructive\/30{border-color:color-mix(in oklab,var(--destructive)30%,transparent)}}.cc .border-gray-300{border-color:var(--color-gray-300)}.cc .border-input{border-color:var(--input)}.cc .border-transparent{border-color:#0000}.cc .bg-background{background-color:var(--background)}.cc .bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.cc .bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.cc .bg-border{background-color:var(--border)}.cc .bg-card{background-color:var(--card)}.cc .bg-destructive,.cc .bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.cc .bg-destructive\/10{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.cc .bg-green-50{background-color:var(--color-green-50)}.cc .bg-muted,.cc .bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.cc .bg-muted\/30{background-color:color-mix(in oklab,var(--muted)30%,transparent)}}.cc .bg-orange-50{background-color:var(--color-orange-50)}.cc .bg-primary,.cc .bg-primary\/5{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.cc .bg-primary\/5{background-color:color-mix(in oklab,var(--primary)5%,transparent)}}.cc .bg-primary\/10{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.cc .bg-primary\/10{background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.cc .bg-red-600{background-color:var(--color-red-600)}.cc .bg-secondary{background-color:var(--secondary)}.cc .bg-transparent{background-color:#0000}.cc .bg-white{background-color:var(--color-white)}.cc .bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.cc .bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.cc .from-primary\/5{--tw-gradient-from:var(--primary)}@supports (color:color-mix(in lab,red,red)){.cc .from-primary\/5{--tw-gradient-from:color-mix(in oklab,var(--primary)5%,transparent)}}.cc .from-primary\/5{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.cc .from-primary\/10{--tw-gradient-from:var(--primary)}@supports (color:color-mix(in lab,red,red)){.cc .from-primary\/10{--tw-gradient-from:color-mix(in oklab,var(--primary)10%,transparent)}}.cc .from-primary\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.cc .to-background{--tw-gradient-to:var(--background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.cc .to-muted{--tw-gradient-to:var(--muted);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.cc .to-primary\/5{--tw-gradient-to:var(--primary)}@supports (color:color-mix(in lab,red,red)){.cc .to-primary\/5{--tw-gradient-to:color-mix(in oklab,var(--primary)5%,transparent)}}.cc .to-primary\/5{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.cc .fill-white{fill:var(--color-white)}.cc .object-cover{object-fit:cover}.cc .p-0{padding:calc(var(--spacing)*0)}.cc .p-0\.5{padding:calc(var(--spacing)*.5)}.cc .p-2{padding:calc(var(--spacing)*2)}.cc .p-4{padding:calc(var(--spacing)*4)}.cc .p-6{padding:calc(var(--spacing)*6)}.cc .px-0{padding-inline:calc(var(--spacing)*0)}.cc .px-1{padding-inline:calc(var(--spacing)*1)}.cc .px-2{padding-inline:calc(var(--spacing)*2)}.cc .px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.cc .px-3{padding-inline:calc(var(--spacing)*3)}.cc .px-4{padding-inline:calc(var(--spacing)*4)}.cc .px-6{padding-inline:calc(var(--spacing)*6)}.cc .py-0\.5{padding-block:calc(var(--spacing)*.5)}.cc .py-1{padding-block:calc(var(--spacing)*1)}.cc .py-2{padding-block:calc(var(--spacing)*2)}.cc .py-3{padding-block:calc(var(--spacing)*3)}.cc .py-6{padding-block:calc(var(--spacing)*6)}.cc .py-12{padding-block:calc(var(--spacing)*12)}.cc .py-20{padding-block:calc(var(--spacing)*20)}.cc .pt-2\.5{padding-top:calc(var(--spacing)*2.5)}.cc .pt-6{padding-top:calc(var(--spacing)*6)}.cc .pb-5{padding-bottom:calc(var(--spacing)*5)}.cc .pb-8{padding-bottom:calc(var(--spacing)*8)}.cc .pl-10{padding-left:calc(var(--spacing)*10)}.cc .pl-24{padding-left:calc(var(--spacing)*24)}.cc .text-center{text-align:center}.cc .text-left{text-align:left}.cc .text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.cc .text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.cc .text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.cc .text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.cc .text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.cc .text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.cc .text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.cc .leading-none{--tw-leading:1;line-height:1}.cc .leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.cc .leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.cc .font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.cc .font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.cc .font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.cc .text-balance{text-wrap:balance}.cc .text-wrap{text-wrap:wrap}.cc .whitespace-nowrap{white-space:nowrap}.cc .text-black\/60{color:#0009}@supports (color:color-mix(in lab,red,red)){.cc .text-black\/60{color:color-mix(in oklab,var(--color-black)60%,transparent)}}.cc .text-card-foreground{color:var(--card-foreground)}.cc .text-destructive{color:var(--destructive)}.cc .text-foreground{color:var(--foreground)}.cc .text-gray-700{color:var(--color-gray-700)}.cc .text-green-600{color:var(--color-green-600)}.cc .text-muted-foreground,.cc .text-muted-foreground\/80{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.cc .text-muted-foreground\/80{color:color-mix(in oklab,var(--muted-foreground)80%,transparent)}}.cc .text-orange-600{color:var(--color-orange-600)}.cc .text-primary{color:var(--primary)}.cc .text-primary-foreground{color:var(--primary-foreground)}.cc .text-purple-600{color:var(--color-purple-600)}.cc .text-red-600{color:var(--color-red-600)}.cc .text-secondary-foreground{color:var(--secondary-foreground)}.cc .text-white{color:var(--color-white)}.cc .underline-offset-4{text-underline-offset:4px}.cc .opacity-0{opacity:0}.cc .shadow-lg{--tw-shadow:calc(var(--shadow-x)*4)calc(var(--shadow-y)*4)calc(var(--shadow-blur)*5)calc(var(--shadow-spread) - 3px)var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){.cc .shadow-lg{--tw-shadow:calc(var(--shadow-x)*4)calc(var(--shadow-y)*4)calc(var(--shadow-blur)*5)calc(var(--shadow-spread) - 3px)color-mix(in srgb,var(--shadow-color)calc(var(--shadow-opacity)*100%),transparent)}}.cc .shadow-lg{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.cc .shadow-md{--tw-shadow:calc(var(--shadow-x)*2)calc(var(--shadow-y)*2)calc(var(--shadow-blur)*3)calc(var(--shadow-spread) - 1px)var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){.cc .shadow-md{--tw-shadow:calc(var(--shadow-x)*2)calc(var(--shadow-y)*2)calc(var(--shadow-blur)*3)calc(var(--shadow-spread) - 1px)color-mix(in srgb,var(--shadow-color)calc(var(--shadow-opacity)*100%),transparent)}}.cc .shadow-md{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.cc .shadow-sm{--tw-shadow:var(--shadow-x)var(--shadow-y)calc(var(--shadow-blur)*1.5)var(--shadow-spread)var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){.cc .shadow-sm{--tw-shadow:var(--shadow-x)var(--shadow-y)calc(var(--shadow-blur)*1.5)var(--shadow-spread)color-mix(in srgb,var(--shadow-color)calc(var(--shadow-opacity)*100%),transparent)}}.cc .shadow-sm{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.cc .shadow-xs{--tw-shadow:var(--shadow-x)var(--shadow-y)var(--shadow-blur)var(--shadow-spread)var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){.cc .shadow-xs{--tw-shadow:var(--shadow-x)var(--shadow-y)var(--shadow-blur)var(--shadow-spread)color-mix(in srgb,var(--shadow-color)calc(var(--shadow-opacity)*100%),transparent)}}.cc .shadow-xs{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.cc .ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.cc .ring-primary{--tw-ring-color:var(--primary)}.cc .outline{outline-style:var(--tw-outline-style);outline-width:1px}.cc .filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.cc .transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.cc .transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.cc .transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.cc .transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.cc .transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.cc .transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.cc .duration-200{--tw-duration:.2s;transition-duration:.2s}.cc .duration-300{--tw-duration:.3s;transition-duration:.3s}.cc .ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.cc .will-change-transform{will-change:transform}.cc .outline-none{--tw-outline-style:none;outline-style:none}.cc .select-none{-webkit-user-select:none;user-select:none}.cc .running{animation-play-state:running}@media(hover:hover){.cc .group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.cc .group-hover\:text-primary:is(:where(.group):hover *){color:var(--primary)}.cc .group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.cc .selection\:bg-primary ::selection{background-color:var(--primary)}.cc .selection\:bg-primary::selection{background-color:var(--primary)}.cc .selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.cc .selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.cc .file\:inline-flex::file-selector-button{display:inline-flex}.cc .file\:h-7::file-selector-button{height:calc(var(--spacing)*7)}.cc .file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.cc .file\:bg-transparent::file-selector-button{background-color:#0000}.cc .file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.cc .file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.cc .file\:text-foreground::file-selector-button{color:var(--foreground)}.cc .placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media(hover:hover){.cc .hover\:cursor-pointer:hover{cursor:pointer}.cc .hover\:bg-accent:hover{background-color:var(--accent)}.cc .hover\:bg-black\/\[0\.02\]:hover{background-color:#00000005}@supports (color:color-mix(in lab,red,red)){.cc .hover\:bg-black\/\[0\.02\]:hover{background-color:color-mix(in oklab,var(--color-black)2%,transparent)}}.cc .hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.cc .hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.cc .hover\:bg-muted\/60:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.cc .hover\:bg-muted\/60:hover{background-color:color-mix(in oklab,var(--muted)60%,transparent)}}.cc .hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.cc .hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.cc .hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.cc .hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.cc .hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.cc .hover\:text-primary:hover{color:var(--primary)}.cc .hover\:underline:hover{text-decoration-line:underline}.cc .hover\:shadow-lg:hover{--tw-shadow:calc(var(--shadow-x)*4)calc(var(--shadow-y)*4)calc(var(--shadow-blur)*5)calc(var(--shadow-spread) - 3px)var(--shadow-color)}@supports (color:color-mix(in lab,red,red)){.cc .hover\:shadow-lg:hover{--tw-shadow:calc(var(--shadow-x)*4)calc(var(--shadow-y)*4)calc(var(--shadow-blur)*5)calc(var(--shadow-spread) - 3px)color-mix(in srgb,var(--shadow-color)calc(var(--shadow-opacity)*100%),transparent)}}.cc .hover\:shadow-lg:hover{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.cc .focus\:ring-purple-600:focus{--tw-ring-color:var(--color-purple-600)}.cc .focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.cc .focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.cc .focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.cc .focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.cc .focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.cc .focus-visible\:ring-ring\/20:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.cc .focus-visible\:ring-ring\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)20%,transparent)}}.cc .focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.cc .focus-visible\:ring-ring\/30:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)30%,transparent)}}.cc .focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.cc .focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.cc .active\:bg-black\/\[0\.04\]:active{background-color:#0000000a}@supports (color:color-mix(in lab,red,red)){.cc .active\:bg-black\/\[0\.04\]:active{background-color:color-mix(in oklab,var(--color-black)4%,transparent)}}.cc .disabled\:pointer-events-none:disabled{pointer-events:none}.cc .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.cc .disabled\:opacity-50:disabled{opacity:.5}.cc .has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.cc .has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.cc .has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.cc .has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.cc .aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.cc .aria-invalid\:text-red-600[aria-invalid=true]{color:var(--color-red-600)}.cc .aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.cc .aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.cc .data-\[state\=closed\]\:pointer-events-none[data-state=closed]{pointer-events:none}.cc .data-\[state\=closed\]\:-translate-x-6[data-state=closed]{--tw-translate-x:calc(var(--spacing)*-6);translate:var(--tw-translate-x)var(--tw-translate-y)}.cc .data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.cc .data-\[state\=closed\]\:opacity-0[data-state=closed]{opacity:0}.cc .data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.cc .data-\[state\=closed\]\:slide-out-to-top-1[data-state=closed]{--tw-exit-translate-y:calc(1*var(--spacing)*-1)}.cc .data-\[state\=open\]\:translate-x-0[data-state=open]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.cc .data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.cc .data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.cc .data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.cc .data-\[state\=open\]\:slide-in-from-top-1[data-state=open]{--tw-enter-translate-y:calc(1*var(--spacing)*-1)}@media(min-width:40rem){.cc .sm\:flex-none{flex:none}.cc .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cc .sm\:flex-row{flex-direction:row}.cc .sm\:px-6{padding-inline:calc(var(--spacing)*6)}}@media(min-width:48rem){.cc .md\:flex-none{flex:none}.cc .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cc .md\:flex-col{flex-direction:column}.cc .md\:flex-row{flex-direction:row}.cc .md\:items-start{align-items:flex-start}.cc .md\:justify-between{justify-content:space-between}.cc .md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(min-width:64rem){.cc .lg\:sticky{position:sticky}.cc .lg\:top-24{top:calc(var(--spacing)*24)}.cc .lg\:order-first{order:-9999}.cc .lg\:col-span-2{grid-column:span 2/span 2}.cc .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cc .lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.cc .lg\:px-8{padding-inline:calc(var(--spacing)*8)}.cc .lg\:py-16{padding-block:calc(var(--spacing)*16)}.cc .lg\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}@media(min-width:80rem){.cc .xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.cc .dark\:border-input:is(.cc.dark *){border-color:var(--input)}.cc .dark\:bg-destructive\/60:is(.cc.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.cc .dark\:bg-destructive\/60:is(.cc.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.cc .dark\:bg-input\/30:is(.cc.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.cc .dark\:bg-input\/30:is(.cc.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}@media(hover:hover){.cc .dark\:hover\:bg-accent\/50:is(.cc.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.cc .dark\:hover\:bg-accent\/50:is(.cc.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.cc .dark\:hover\:bg-input\/50:is(.cc.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.cc .dark\:hover\:bg-input\/50:is(.cc.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}}.cc .dark\:focus-visible\:ring-destructive\/40:is(.cc.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.cc .dark\:focus-visible\:ring-destructive\/40:is(.cc.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.cc .dark\:aria-invalid\:ring-destructive\/40:is(.cc.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.cc .dark\:aria-invalid\:ring-destructive\/40:is(.cc.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.cc .\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.cc .\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.cc .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.cc .\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.cc .\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}.cc .\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.cc .\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}@media(hover:hover){a:is(.cc .\[a\&\]\:hover\:bg-accent):hover{background-color:var(--accent)}a:is(.cc .\[a\&\]\:hover\:bg-destructive\/90):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a:is(.cc .\[a\&\]\:hover\:bg-destructive\/90):hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a:is(.cc .\[a\&\]\:hover\:bg-primary\/90):hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a:is(.cc .\[a\&\]\:hover\:bg-primary\/90):hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a:is(.cc .\[a\&\]\:hover\:bg-secondary\/90):hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a:is(.cc .\[a\&\]\:hover\:bg-secondary\/90):hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a:is(.cc .\[a\&\]\:hover\:text-accent-foreground):hover{color:var(--accent-foreground)}}}.cc :root{--PhoneInput-color--focus:#03b2cb;--PhoneInputInternationalIconPhone-opacity:.8;--PhoneInputInternationalIconGlobe-opacity:.65;--PhoneInputCountrySelect-marginRight:.35em;--PhoneInputCountrySelectArrow-width:.3em;--PhoneInputCountrySelectArrow-marginLeft:var(--PhoneInputCountrySelect-marginRight);--PhoneInputCountrySelectArrow-borderWidth:1px;--PhoneInputCountrySelectArrow-opacity:.45;--PhoneInputCountrySelectArrow-color:currentColor;--PhoneInputCountrySelectArrow-color--focus:var(--PhoneInput-color--focus);--PhoneInputCountrySelectArrow-transform:rotate(45deg);--PhoneInputCountryFlag-aspectRatio:1.5;--PhoneInputCountryFlag-height:1em;--PhoneInputCountryFlag-borderWidth:1px;--PhoneInputCountryFlag-borderColor:#00000080;--PhoneInputCountryFlag-borderColor--focus:var(--PhoneInput-color--focus);--PhoneInputCountryFlag-backgroundColor--loading:#0000001a}.cc .PhoneInput{align-items:center;display:flex}.cc .PhoneInputInput{flex:1;min-width:0}.cc .PhoneInputCountryIcon{width:calc(var(--PhoneInputCountryFlag-height)*var(--PhoneInputCountryFlag-aspectRatio));height:var(--PhoneInputCountryFlag-height)}.cc .PhoneInputCountryIcon--square{width:var(--PhoneInputCountryFlag-height)}.cc .PhoneInputCountryIcon--border{background-color:var(--PhoneInputCountryFlag-backgroundColor--loading);box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor)}.cc .PhoneInputCountryIconImg{width:100%;height:100%;display:block}.cc .PhoneInputInternationalIconPhone{opacity:var(--PhoneInputInternationalIconPhone-opacity)}.cc .PhoneInputInternationalIconGlobe{opacity:var(--PhoneInputInternationalIconGlobe-opacity)}.cc .PhoneInputCountry{margin-right:var(--PhoneInputCountrySelect-marginRight);align-self:stretch;align-items:center;display:flex;position:relative}.cc .PhoneInputCountrySelect{z-index:1;opacity:0;cursor:pointer;border:0;width:100%;height:100%;position:absolute;top:0;left:0}.cc .PhoneInputCountrySelect[disabled],.cc .PhoneInputCountrySelect[readonly]{cursor:default}.cc .PhoneInputCountrySelectArrow{content:"";width:var(--PhoneInputCountrySelectArrow-width);height:var(--PhoneInputCountrySelectArrow-width);margin-left:var(--PhoneInputCountrySelectArrow-marginLeft);border-style:solid;border-color:var(--PhoneInputCountrySelectArrow-color);border-top-width:0;border-bottom-width:var(--PhoneInputCountrySelectArrow-borderWidth);border-left-width:0;border-right-width:var(--PhoneInputCountrySelectArrow-borderWidth);transform:var(--PhoneInputCountrySelectArrow-transform);opacity:var(--PhoneInputCountrySelectArrow-opacity);display:block}.cc .PhoneInputCountrySelect:focus+.PhoneInputCountryIcon+.PhoneInputCountrySelectArrow{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}.cc .PhoneInputCountrySelect:focus+.PhoneInputCountryIcon--border{box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus)}.cc .PhoneInputCountrySelect:focus+.PhoneInputCountryIcon .PhoneInputInternationalIconGlobe{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}.cc{--background:#fdfdfd;--foreground:#000;--color-black:#000;--color-white:#fff;--card:#fdfdfd;--card-foreground:#000;--popover:#fcfcfc;--popover-foreground:#000;--primary:#7033ff;--primary-foreground:#fff;--secondary:#edf0f4;--secondary-foreground:#080808;--muted:#f5f5f5;--muted-foreground:#525252;--accent:#e2ebff;--accent-foreground:#1e69dc;--destructive:#e54b4f;--destructive-foreground:#fff;--border:#e7e7ee;--input:#ebebeb;--ring:#000;--chart-1:#4ac885;--chart-2:#7033ff;--chart-3:#fd822b;--chart-4:#3276e4;--chart-5:#747474;--radius:1.4rem;--sidebar:#f5f8fb;--sidebar-foreground:#000;--sidebar-primary:#000;--sidebar-primary-foreground:#fff;--sidebar-accent:#ebebeb;--sidebar-accent-foreground:#000;--sidebar-border:#ebebeb;--sidebar-ring:#000;--shadow-x:0px;--shadow-y:2px;--shadow-blur:3px;--shadow-spread:0px;--shadow-opacity:.2;--shadow-color:#000;--PhoneInput-color--focus:#03b2cb;--PhoneInputInternationalIconPhone-opacity:.8;--PhoneInputInternationalIconGlobe-opacity:.65;--PhoneInputCountrySelect-marginRight:.35em;--PhoneInputCountrySelectArrow-width:.3em;--PhoneInputCountrySelectArrow-marginLeft:var(--PhoneInputCountrySelect-marginRight);--PhoneInputCountrySelectArrow-borderWidth:1px;--PhoneInputCountrySelectArrow-opacity:.45;--PhoneInputCountrySelectArrow-color:currentColor;--PhoneInputCountrySelectArrow-color--focus:var(--PhoneInput-color--focus);--PhoneInputCountrySelectArrow-transform:rotate(45deg);--PhoneInputCountryFlag-aspectRatio:1.5;--PhoneInputCountryFlag-height:1em;--PhoneInputCountryFlag-borderWidth:1px;--PhoneInputCountryFlag-borderColor:#00000080;--PhoneInputCountryFlag-borderColor--focus:var(--PhoneInput-color--focus);--PhoneInputCountryFlag-backgroundColor--loading:#0000001a*{scrollbar-width:thin;scrollbar-color:#858585 #fff}}.cc *::-webkit-scrollbar{width:8px}.cc *::-webkit-scrollbar-track{background:#fff}.cc *::-webkit-scrollbar-thumb{background-color:#858585;border-radius:4px;border:3px solid #fff}.cc .PhoneInputCountry{@apply absolute left-8 top-0 h-12 flex items-center gap-2 px-3 bg-transparent;}.cc.dark{--background:#1a1b1e;--foreground:#f0f0f0;--card:#222327;--card-foreground:#f0f0f0;--popover:#222327;--popover-foreground:#f0f0f0;--primary:#8c5cff;--primary-foreground:#fff;--secondary:#2a2c33;--secondary-foreground:#f0f0f0;--muted:#2a2c33;--muted-foreground:#a0a0a0;--accent:#1e293b;--accent-foreground:#79c0ff;--destructive:#f87171;--destructive-foreground:#fff;--border:#33353a;--input:#33353a;--ring:#8c5cff;--chart-1:#4ade80;--chart-2:#8c5cff;--chart-3:#fca5a5;--chart-4:#5993f4;--chart-5:#a0a0a0;--sidebar:#161618;--sidebar-foreground:#f0f0f0;--sidebar-primary:#8c5cff;--sidebar-primary-foreground:#fff;--sidebar-accent:#2a2c33;--sidebar-accent-foreground:#8c5cff;--sidebar-border:#33353a;--sidebar-ring:#8c5cff;--shadow-x:0px;--shadow-y:2px;--shadow-blur:3px;--shadow-spread:0px;--shadow-opacity:.2;--shadow-color:#000}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}