PageSourceSearch

https://www.thegreatbritishbookshop.co.uk/cdn/shopifycloud/checkout-web/assets/c1/7a8217fd.BlWFPiiA.js

js thegreatbritishbookshop.co.uk collected 2026-10-01 10:25:34 UTC 2,900 bytes, 1 lines download raw bytes

1import{h as e,u as t,k as r,A as n,q as o,g as c,S as a}from"./2c1ab0fe.D_oO1jU7.js";import{iT as s,b1 as i,bq as l,br as u,bv as d,f9 as m,B as h,aU as p,L as f}from"./164ad2e3.DgUUtBtV.js";import{aT as v,O as g}from"./4c290a1e.D9lE9kmU.js";const w=s.get("base")??0;function T({children:r,open:n=!1,...o}){const c="entered"===i(n,"slow"),{isAppLayout:a}=l(),s=u(),{checkoutProtocolModalEventSignal:m}=v();return e((()=>{const e=e=>{m.value="modal_open"===e?"redesign":"none",s.notify({checkout_ui:{type:e,payload:{duration:w}}})};if(c&&a)return e("modal_open"),()=>{e("modal_close")}}),[c,a,s,m]),t(d,{size:"large",open:n,...o,children:r})}s.get("slow");const M="QhZg2";function b({notice:s,selected:i,showTitleWhenUnselected:l,...u}){const[d,v]=r(!1),[g,w]=r(!1),T=n(null),b=n(null),k=n("hover"),y=n(),E=n();e((()=>{if(i){v(!0);const e=setTimeout((()=>{v(!1)}),800);return()=>clearTimeout(e)}}),[i]);const L=Boolean(s.additionalInfo),N=o((()=>{y.current&&(clearTimeout(y.current),y.current=void 0)}),[]),_=o((()=>{E.current&&(clearTimeout(E.current),E.current=void 0)}),[]),U=o((()=>{N(),_(),k.current="hover",w(!1)}),[_,N]);e((()=>()=>{y.current&&clearTimeout(y.current),E.current&&clearTimeout(E.current)}),[]),e((()=>{L&&!i||U()}),[L,i,U]),e((()=>{if(!g)return;const e=e=>{e.target instanceof Node&&!T.current?.contains(e.target)&&!b.current?.contains(e.target)&&U()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[g,U]);const P=e=>{N(),_(),k.current=e,w(!0)},j=()=>{"click"!==k.current&&(N(),_(),E.current=setTimeout((()=>{k.current="hover",w(!1),E.current=void 0}),300))},D=t(h,i||l?{className:c("_1gj5H",{[M]:d}),children:t(m,{...u,icon:i?"gift":void 0,children:s.title})}:{className:"_7cUDh",children:t(m,{...u,icon:"gift",tone:"accent",size:"small"})});return L?t(a,{children:[t("div",{ref:T,className:"m110w",onMouseEnter:()=>{("undefined"==typeof window||"function"!=typeof window.matchMedia||window.matchMedia("(hover: hover)").matches)&&(N(),_(),y.current=setTimeout((()=>{P("hover"),y.current=void 0}),150))},onMouseLeave:j,onMouseDownCapture:i?void 0:U,onTouchEnd:i?e=>{e.preventDefault(),e.stopPropagation(),P("click")}:void 0,onClick:i?e=>{e.preventDefault(),e.stopPropagation()}:void 0,children:D}),g&&T.current?t(p,{activator:T.current,offset:3,positionArea:"block-start",children:t("div",{ref:b,className:"Ep6aM",role:"tooltip",onMouseEnter:()=>P(k.current),onMouseLeave:j,children:[t(h,{className:"iugcG",children:[s.additionalInfo,s.terms&&s.termsUrl?t(a,{children:[" ",t(f,{href:s.termsUrl,accessibilityLabel:s.terms,children:s.terms})]}):null]}),t("div",{className:"_6Qz8P"})]})}):null]}):D}const k="https://www.shopify.com/legal/usdc-rewards-terms";function y(...t){const[r,o]=t,c=n(o),{shopPay:{progressInterceptor:a}}=g();c.current=o,e((()=>a.intercept(r,(()=>c.current()))),[a,r])}export{b as I,w as M,T as O,k as U,y 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.