1import{z as e,g as r,h as t,q as n,u as o,m as c,S as i}from"./2c1ab0fe.Bywc2Brn.js";import{aD as a,b as s,aE as u,L as l}from"./164ad2e3.DHuJhR22.js";function d({notice:d,selected:m,showTitleWhenUnselected:h,...v}){const[f,p]=e(!1),[w,g]=e(!1),T=r(null),M=r(null),E=r("hover"),N=r(),k=r();t(()=>{if(m){p(!0);const e=setTimeout(()=>{p(!1)},800);return()=>clearTimeout(e)}},[m]);const L=Boolean(d.additionalInfo),b=n(()=>{N.current&&(clearTimeout(N.current),N.current=void 0)},[]),D=n(()=>{k.current&&(clearTimeout(k.current),k.current=void 0)},[]),U=n(()=>{b(),D(),E.current="hover",g(!1)},[D,b]);t(()=>()=>{N.current&&clearTimeout(N.current),k.current&&clearTimeout(k.current)},[]),t(()=>{L&&!m||U()},[L,m,U]),t(()=>{if(!w)return;const e=e=>{e.target instanceof Node&&!T.current?.contains(e.target)&&!M.current?.contains(e.target)&&U()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[w,U]);const y=e=>{b(),D(),E.current=e,g(!0)},j=()=>{"click"!==E.current&&(b(),D(),k.current=setTimeout(()=>{E.current="hover",g(!1),k.current=void 0},300))},z=o(s,m||h?{className:c("_1gj5H",f&&"QhZg2"),children:o(a,{...v,icon:m?"gift":void 0,children:d.title})}:{className:"_7cUDh",children:o(a,{...v,icon:"gift",tone:"accent",size:"small"})});return L?o(i,{children:[o("div",{ref:T,className:"m110w",onMouseEnter:()=>{("undefined"==typeof window||"function"!=typeof window.matchMedia||window.matchMedia("(hover: hover)").matches)&&(b(),D(),N.current=setTimeout(()=>{y("hover"),N.current=void 0},150))},onMouseLeave:j,onMouseDownCapture:m?void 0:U,onTouchEnd:m?e=>{e.preventDefault(),e.stopPropagation(),y("click")}:void 0,onClick:m?e=>{e.preventDefault(),e.stopPropagation()}:void 0,children:z}),w&&T.current?o(u,{activator:T.current,offset:3,positionArea:"block-start",children:o("div",{ref:M,className:"Ep6aM",role:"tooltip",onMouseEnter:()=>y(E.current),onMouseLeave:j,children:[o(s,{className:"iugcG",children:[d.additionalInfo,d.terms&&d.termsUrl?o(i,{children:[" ",o(l,{href:d.termsUrl,accessibilityLabel:d.terms,children:d.terms})]}):null]}),o("div",{className:"_6Qz8P"})]})}):null]}):z}const m="https://www.shopify.com/legal/usdc-rewards-terms";export{d as I,m as U};
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.