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