PageSourceSearch

https://industryofallnations.com/cdn/shopifycloud/checkout-web/assets/c1/IncentiveBadge.DborNHa8.js

js industryofallnations.com collected 2026-09-25 18:53:43 UTC 4,062 bytes, 1 lines download raw bytes

1import{T as D,u as e,S,k as I,A as v,h as b,q as y,g as R}from"./esnext-vendor.B9Da21W6.js";import{b as z,a as H}from"./Choice.DSKmQsTS.js";import{m as F,k as M,B as T,P as U,f0 as w,aT as W,L as $}from"./hydrate.DZ4YTm7p.js";import{cp as Q,S as A}from"./addresses-is-address-empty.Bn2lNY_L.js";import{u as Y}from"./localization-index.1YNaS8kx.js";const j="MsV8u",q={Title:j};function pe(o){const{title:t,titleHidden:r,selectedContentBackground:i,...u}=o,l=Y(),d=D(()=>l?{border:"none",spacing:"none",background:"transparent",backgroundSelected:"base",selectedContentBackground:"selected",selectedContentTransitionProperties:["height","opacity"]}:{...i&&{selectedContentBackground:i}},[l,i]),p=t&&(r?e("legend",{className:Q({screenReaders:"only"}),children:t}):e("legend",{className:q.Title,children:e(F,{level:3,accessibilityRole:"presentation",children:t})}));return e(M,{children:e(G,{id:u.name,title:t,children:[p,e(z,{...d,children:e(H,{...u,variant:"block"})})]})})}function G({id:o,title:t,children:r}){return o?t?e("fieldset",{id:o,children:r}):e("div",{id:o,children:r}):e(S,{children:r})}function me({children:o}){const t=A().checkout.configuration.layout.isOnePage.value;return e(T,{background:t?"subdued":void 0,border:t?void 0:"base",borderRadius:"base",padding:`${t?"large-100":"base"} ${t?"large-100":"large-500"}`,children:e(M,{gap:"small-200",alignItems:"center",children:o})})}function ge({children:o}){return e(T,{maxInlineSize:"64px",maxBlockSize:"64px",inlineSize:"100%",blockAlignment:"center",inlineAlignment:"center",children:o})}function fe({children:o}){const t=A().checkout.configuration.layout.isOnePage.value;return e(U,{color:t?"subdued":void 0,textAlign:t?void 0:"center",children:o})}const V="_1gj5H",Z="QhZg2",J="_7cUDh",K="m110w",X="Ep6aM",ee="_6Qz8P",te="iugcG",s={incentiveBadge:V,shimmer:Z,giftIconOnly:J,tooltipWrapper:K,tooltipPopover:X,tooltipArrow:ee,incentiveBadgeTooltipContent:te},oe=150,ne=300,re=3;function ie(){return typeof window>"u"||typeof window.matchMedia!="function"?!0:window.matchMedia("(hover: hover)").matches}function he({notice:o,selected:t,showTitleWhenUnselected:r,...i}){const[u,l]=I(!1),[d,p]=I(!1),k=v(null),L=v(null),m=v("hover"),c=v(),a=v();b(()=>{if(t){l(!0);const n=setTimeout(()=>{l(!1)},800);return()=>clearTimeout(n)}},[t]);const O=!!o.additionalInfo,g=y(()=>{c.current&&(clearTimeout(c.current),c.current=void 0)},[]),f=y(()=>{a.current&&(clearTimeout(a.current),a.current=void 0)},[]),h=y(()=>{g(),f(),m.current="hover",p(!1)},[f,g]);b(()=>()=>{c.current&&clearTimeout(c.current),a.current&&clearTimeout(a.current)},[]),b(()=>{(!O||t)&&h()},[O,t,h]),b(()=>{if(!d)return;const n=P=>{P.target instanceof Node&&!k.current?.contains(P.target)&&!L.current?.contains(P.target)&&h()};return document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}},[d,h]);const C=n=>{g(),f(),m.current=n,p(!0)},N=()=>{ie()&&(g(),f(),c.current=setTimeout(()=>{C("hover"),c.current=void 0},oe))},B=()=>{m.current!=="click"&&(g(),f(),a.current=setTimeout(()=>{m.current="hover",p(!1),a.current=void 0},ne))},x=n=>{n.preventDefault(),n.stopPropagation(),C("click")},_=n=>{n.preventDefault(),n.stopPropagation()},E=t||r?e(T,{className:R(s.incentiveBadge,{[s.shimmer]:u}),children:e(w,{...i,icon:t?"gift":void 0,children:o.title})}):e(T,{className:s.giftIconOnly,children:e(w,{...i,icon:"gift",tone:"accent",size:"small"})});return O?e(S,{children:[e("div",{ref:k,className:s.tooltipWrapper,onMouseEnter:N,onMouseLeave:B,onMouseDownCapture:t?void 0:h,onTouchEnd:t?x:void 0,onClick:t?_:void 0,children:E}),d&&k.current?e(W,{activator:k.current,offset:re,positionArea:"block-start",children:e("div",{ref:L,className:s.tooltipPopover,role:"tooltip",onMouseEnter:()=>C(m.current),onMouseLeave:B,children:[e(T,{className:s.incentiveBadgeTooltipContent,children:[o.additionalInfo,o.terms&&o.termsUrl?e(S,{children:[" ",e($,{href:o.termsUrl,accessibilityLabel:o.terms,children:o.terms})]}):null]}),e("div",{className:s.tooltipArrow})]})}):null]}):E}export{pe as C,me as E,he as I,ge as a,fe as b};

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.