PageSourceSearch

https://www.gardeners.com/cdn/shopifycloud/checkout-web/assets/c1/Popover.BNecjV8x.js

js gardeners.com collected 2026-09-24 08:46:21 UTC 3,642 bytes, 1 lines download raw bytes

1import{q as A,u as s,A as b,T as Q,h as w,x as U,g as R}from"./esnext-vendor.D7ldIee_.js";import{aJ as K,ac as X,aK as L,aL as Y,aM as Z,ax as G,u as $,aN as ee,aO as te,aP as T,aQ as ne,aR as O,aS as ae,aT as re,aU as oe,aV as h,aW as se,aX as ce,aY as ie,aZ as le}from"./hydrate.ByRIsqvd.js";import{b5 as ue,b6 as fe}from"./addresses-is-address-empty.-MuOhIyI.js";import"./app.A60-IfPs.js";var x={Content:"xhuvqpk xhuvqpj _1fragem108 _1fragem10n _1fragemzt _1fragem112 _1fragemup _1fragemv4 _1fragemws _1fragem131 _1fragem133",Popover:"xhuvqp1 xhuvqp0 _1fragemws _1fragemy5 _1fragem133",popoverConnectorVariant:{arrow:"xhuvqp5",none:"xhuvqp6"},popoverPlacementVariant:{blockStart:"xhuvqp7",blockStartSpanInlineEnd:"xhuvqp8",blockStartSpanInlineStart:"xhuvqp9",blockEnd:"xhuvqpa",blockEndSpanInlineEnd:"xhuvqpb",blockEndSpanInlineStart:"xhuvqpc",inlineStart:"xhuvqpd",inlineStartSpanBlockEnd:"xhuvqpe",inlineStartSpanBlockStart:"xhuvqpf",inlineEnd:"xhuvqpg",inlineEndSpanBlockEnd:"xhuvqph",inlineEndSpanBlockStart:"xhuvqpi"}};function xe(c){const a=K(),{active:u,setActive:i}=a||{},{onHide:f}=c,r=A(()=>{i?.(!1),typeof f=="function"&&f()},[i,f]);if(a){a.setActivatorAttributes({"aria-expanded":a.active,"aria-controls":c.id}),a.attach("onClick",()=>{u&&r(),i?.(!u)});const{children:v}=c;return s(F,{...c,onHide:r,open:u,children:X(v)&&s(L,{children:v})})}return s(F,{...c})}const F=Y(Z(function({blockSize:a="auto",children:u,connector:i,offset:f,id:r,inlineSize:v="auto",keepMounted:d=!1,maxBlockSize:y="none",maxInlineSize:V="none",minBlockSize:B="0",minInlineSize:D="0",onHide:C,onShow:S,padding:W="base",positionArea:q="block-start",open:t=!1}){const g=K(),{getInteraction:E}=G(),_=b(t),N=b(t),l=b(null),{popover:{connector:H="arrow",cornerRadius:j}}=$(),I=i??H,{className:z,style:J}=ee({blockSize:a,inlineSize:v,padding:W,maxBlockSize:y,maxInlineSize:V,minBlockSize:B,minInlineSize:D}),n=Q(()=>{if(g)return g.activatorRef.current??null;if(r){const o=E(r);if(te(o)&&o.invokerRef?.current)return o.invokerRef.current}return null},[E,r,g]),p=A(()=>{C?.()},[C]);return w(()=>{const o=e=>{const P=T(l.current),m=ne(e),k=O(n);e.target instanceof Node&&document.contains(e.target)&&!l.current?.contains(e.target)&&!n?.contains(e.target)&&(P||!m)&&(k||!O(e.target))&&t&&p()};return document.addEventListener("click",o),()=>{document.removeEventListener("click",o)}},[n,p,t]),w(()=>{const o=e=>{if(!t)return;const P=n&&ae(n),m=l.current&&re(l.current),k=l.current&&oe(l.current),M=T(l.current);switch(e.key){case"Escape":case"Esc":M&&(p(),n?.focus());break;case"Tab":{h(n)&&e.shiftKey?p():h(n)?(e.preventDefault(),m?.focus()):h(m)&&e.shiftKey?(e.preventDefault(),n?.focus(),p()):h(k)&&!e.shiftKey&&(e.preventDefault(),P?.focus(),p());break}}};return t&&document.addEventListener("keydown",o,!1),!_.current&&t&&S?.(),_.current=t,t&&(N.current=!0),()=>{document.removeEventListener("keydown",o,!1)}},[n,p,S,t]),!t&&!(d&&N.current)?null:s(se,{activator:n,offset:f??I==="arrow"?15:5,positionArea:q,preventOverflow:!0,id:r,hidden:!t,children:s(pe,{positionArea:q,connector:I,cornerRadius:j,popoverRef:l,responsiveClassNames:z,responsiveStyle:J,children:u})})},{overlayType:"popover"}),{focusActivatorWhenClosing:!0});function pe({children:c,positionArea:a,connector:u,cornerRadius:i,popoverRef:f,responsiveClassNames:r,responsiveStyle:v}){const d=U(ce),y=d?ie(d.position,d.alignment):ue(a);return s(L,{children:s("div",{className:R(x.Popover,x.popoverPlacementVariant[y],x.popoverConnectorVariant[u]),ref:f,style:{...i!=null&&{borderRadius:fe(i)}},children:s("div",{className:R(x.Content,r),style:v,children:s(le,{children:c})})})})}export{xe as P};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.