PageSourceSearch

https://www.readers.com/cdn/shopifycloud/checkout-web/assets/c1/Pressable.ZFaj0-Rx.js

js readers.com collected 2026-09-26 01:46:29 UTC 10,557 bytes, 1 lines download raw bytes

1import{T as Fe,g as ue,D as L,k as ee,q as we,A as Oe,h as fe,u as _}from"./esnext-vendor.B9Da21W6.js";import{cZ as me,c_ as I,c$ as ne,d0 as Re,d1 as te,cp as Me,d2 as Ne,d3 as je,d4 as Ee,d5 as De,d6 as oe,d7 as Le,d8 as Be,bJ as w,d9 as qe}from"./addresses-is-address-empty.Bn2lNY_L.js";import{d1 as ae,d2 as Ge,av as Ve,au as Ue,d3 as ze,d4 as He,a as re,d5 as $e,u as We,d6 as Ke,d7 as Qe,C as Ye,aG as Je,aK as Ze,d8 as Xe,d9 as en,da as nn,db as tn,dc as on,dd as an,de as rn,df as sn}from"./hydrate.DZ4YTm7p.js";import"./app.DbSrjjlA.js";const O=Object.keys(I).sort((e,a)=>I[e]-I[a]),se="transparent";function ln(e){return!!(e.viewportInlineSize||e.hover||e.focus)}function cn(e){const{hover:a,focus:o}=e;if(a&&o)return"hoverFocus";if(a)return"hover";if(o)return"focus";if(!(a!==void 0||o!==void 0))return"plain"}function dn(e,a){if(e.viewportInlineSize===void 0)return!0;const{min:o}=e.viewportInlineSize;return o===void 0||!(o in I)?!1:I[o]<=I[a]}function ie(e){if(O.every(d=>e[d]===void 0))return;const a=e.base??se,o=[];let f=a;for(const d of O){if(d==="base")continue;const m=e[d]??se;m!==f&&(o.push(`(inline-size >= ${d}) ${ne(m)}`),f=m)}return o.length===0?a:`@media ${o.join(", ")}, ${ne(a)}`}function un(e){if(e===void 0)return{};if(!me(e))return{background:e};const{default:a,conditionals:o}=e,f={plain:{},hover:{},focus:{},hoverFocus:{}};for(const u of O)for(const b of o??[]){const g=b?.conditions;if(!g||!ln(g)||!dn(g,u))continue;const y=cn(g);y!==void 0&&(f[y][u]=b.value)}const d={},m={};for(const u of O)d[u]=f.plain[u]??a,m[u]=f.hover[u]??f.focus[u]??f.hoverFocus[u]??d[u];const v=u=>O.some(b=>u[b]!==d[b]);return{background:ie(d),backgroundHoverAndFocus:v(m)?ie(m):void 0}}function fn(e){return e!==null&&typeof e=="object"&&Re.conditions.conditionNames.some(a=>a in e)}function mn({staticPropertiesValues:e,dynamicPropertiesTransform:a}){function o(n,t){return Fe(()=>{const s=f(n,{...t}),i=C(s,a),l=C(s,e),r=Me(i),{className:c,style:p}=Ne(l);return{className:ue(r,c),style:p}},[n,t])}function f(n,t={}){const s=new Map,i=(r,c)=>{const p=u(r,c,t),x=d(r,p);for(const[k,h]of Object.entries(x))s.set(k,h)};for(const r of te)r in n&&i(r,n[r]);for(const[r,c]of Object.entries(n))te.includes(r)||i(r,c);const l={};return s.forEach((r,c)=>{(!(c in ae)||r!==ae[c])&&(l[c]=r)}),l}function d(n,t){return fn(t)&&Object.values(t).some(De)?Object.entries(t).reduce((s,[i,l])=>{const r=m(n,l),c=(oe(n)??[]).reduce((p,x)=>({...p,[x]:{[i]:r[x]}}),{});return v(s,c)},{}):m(n,t)}function m(n,t){const s=Le(t),i=oe(n)??[];return i.length>0?i.reduce((l,r,c)=>({...l,[r]:s?t[c]:t}),{}):{[n]:t}}function v(n,t){return Object.keys(t).reduce((s,i)=>{const l=n[i],r=t[i];return{...s,[i]:{...typeof l=="object"&&l,...typeof r=="object"&&r}}},{})}function u(n,t,s){if(me(t)){const{conditionals:i,default:l}=t;return i.length>0&&(je(n)||Ee(n))?i.map(({conditions:r,value:c})=>({conditions:r,value:b({property:n,value:c},s)})).map(P).reduce((r,c)=>({...r,...c}),{...l&&{base:b({property:n,value:l},s)}}):b({property:n,value:l},s)}return b({property:n,value:t},s)}function b(n,t){if(g(n))return A(n.property,n.value,t);if(y(n))return F(n.property,n.value,t)}function g(n){return n.property in a}function y(n){return n.property in e}function P({conditions:n,value:t}){return n.viewportInlineSize?{[n.viewportInlineSize.min]:t}:{}}function A(n,t,{transforms:s}){if(t!==void 0){const i=s?.[n]??a[n];return i===void 0?void 0:i(t)}}function F(n,t,{transforms:s}){const i=e[n],l=r=>{const c=s?.[n]?.(r);return i[c??r]};if(Be(t))if(t.length===2){const[r,c]=t;return[l(r),l(c),l(r),l(c)]}else return t.map(l);return l(t)}function C(n,t){return Object.keys(n).filter(s=>!(s in t)).reduce((s,i)=>Object.assign(s,{[i]:n[i]}),{})}return{useConditionalStyle:o,resolveConditionalProps:f}}function T(e){return typeof e=="number"?w(e)??"":e==="fitContent"||e==="fill"?e:qe(e)?w(e)??"":e}function D(e,a=!1,o=!1){return e===void 0||e==="fill"?o?"1fr":"minmax(0, 1fr)":e==="auto"?"minmax(auto, max-content)":a?`minmax(0, ${w(e)??"1fr"})`:o?w(e)??"1fr":`minmax(0, ${w(e)??"1fr"})`}function le(e,a=!1,o=!1){return Array.isArray(e)?e.map(d=>D(d,a,o)).join(" "):D(e,a,o)}function ce(e,a=!1,o=!1){return Array.isArray(e)?"1fr":D(e,a,o)}function de(e){return`span ${e}`}const bn={base:"base",transparent:"transparent",subdued:"subdued"},gn={alignContent:{start:"start",center:"center",end:"end"},alignItems:{start:"start",center:"center",end:"end",baseline:"baseline"}
1,backgroundColor:{base:"base",baseSpecified:"baseSpecified",transparent:"transparent",subdued:"subdued"},backgroundColorHoverAndFocus:bn,backgroundFit:{contain:"contain",cover:"cover"},backgroundPosition:{bottom:"bottom",center:"center",left:"left",right:"right",top:"top"},backgroundRepeat:{repeat:"repeat",noRepeat:"noRepeat"},border:{none:"none",base:"base",dotted:"dotted",dashed:"dashed"},borderRadius:{none:"none",base:"base",small:"small",large:"large",fullyRounded:"fullyRounded",max:"max",tight:"small",loose:"large"},borderWidth:{base:"base",medium:"large100",thick:"large200"},boxShadow:{none:"none",extraSmall:"extraSmall",small:"small",base:"base",large:"large",extraLarge:"extraLarge"},display:{block:"block",inline:"inline",flex:"flex",inlineFlex:"inlineFlex",grid:"grid",inlineGrid:"inlineGrid",none:"none"},gap:{none:"none",small500:"small500",small400:"small400",small300:"small300",small200:"small200",small100:"small100",base:"base",large100:"large100",large200:"large200",large300:"large300",large400:"large400",large500:"large500",extraTight:"small400",tight:"small200",loose:"large200",extraLoose:"large500"},gridAutoFlow:{row:"row",column:"column"},justifyContent:{start:"start",center:"center",end:"end"},justifyItems:{start:"start",center:"center",end:"end"},objectFit:{contain:"contain",cover:"cover",fill:"fill"},padding:{small500:"small500",small400:"small400",small300:"small300",small200:"small200",small100:"small100",none:"none",large100:"large100",large200:"large200",large300:"large300",large400:"large400",large500:"large500",base:"base",extraTight:"small400",tight:"small200",loose:"large200",extraLoose:"large500"},position:{absolute:"absolute",relative:"relative",sticky:"sticky"},zIndex:{portal:"portal"}},pn={backgroundImage:Ge,blockSize:T,gridAutoColumns:ce,gridAutoRows:e=>ce(e,!0),gridColumn:de,gridRow:de,gridTemplateColumns:le,gridTemplateRows:e=>le(e,!0),inlineSize:T,maxBlockSize:T,maxInlineSize:T,minBlockSize:T,minInlineSize:T},{useConditionalStyle:hn}=mn({staticPropertiesValues:gn,dynamicPropertiesTransform:pn}),vn=2500;function Cn(e){return L((a,o)=>{const{activateTarget:f,activateAction:d,onPress:m,overlay:v}=a,{getInteraction:u}=Ve(),[b,g]=ee(!1),[y,P]=ee(""),A=Ue(),C=f&&(d==="auto"||d==="copy"||d==null)?u(f):void 0,n=ze(C)&&C?.clipboard.text!=null?C:void 0,t=we(async()=>{m?.();const{text:c,onCopy:p,onCopyError:x}=n.clipboard;let k=!1;try{await He(c),k=!0}catch(h){console.warn("ClipboardItem: failed to copy text to clipboard",h)}finally{if(k){const h=A("clipboardCopied");P(h),g(!0),re({content:h}),p?.()}else{const h=A("clipboardFailedToCopy");P(h),g(!0),re({content:h}),x?.()}i(),s.current=setTimeout(()=>{g(!1)},vn)}},[m,n,A]),s=Oe(),i=()=>{s.current&&clearTimeout(s.current)};return fe(()=>()=>i(),[]),_(e,{...a,onPress:n?t:m,overlay:n?_($e,{open:b,children:y}):v,ref:o})})}function yn(e){const a=L(function({disableGlobalBranding:f,...d},m){const{global:{cornerRadius:v}}=We(),u=f?d:{...d,cornerRadius:v??d.cornerRadius};return _(e,{...u,ref:m})});return a.displayName=`GlobalBrandedComponent(${e.displayName||e.name||"Component"})`,a}var S={Pressable:"_1xqelvi1 _1xqelvi0 _1fragemyd _1fragemws _1fragem126 _1fragemyk _1fragem12b",withAlignment:"_1xqelvi5 _1fragem73",appearanceVariant:{accent:"_1xqelvi8 _1xqelvi6 _1fragemxq",base:"_1xqelvi9 _1xqelvi7 _1fragemxw"},PressableContentWrapper:"_1xqelvi2",resetDefaultBlockAlignment:"_1xqelvi4 _1xqelvi3 _1fragem64 _1fragem1y",overflowHidden:"_1xqelvib _1xqelvia _1fragemup _1fragemv4",inert:"_1xqelvic _1fragemz0"};const Mn=Ke(Cn(yn(Qe(L(function({accessibilityLabel:a,accessibilityRole:o="button",appearance:f,background:d,backgroundFit:m,backgroundImage:v,backgroundPosition:u,backgroundRepeat:b,border:g,className:y,borderRadius:P,borderWidth:A,blockAlignment:F,children:C,controlId:n,cornerRadius:t,disabled:s=!1,display:i,expanded:l,id:r,inlineAlignment:c,loading:p,maxInlineSize:x,minInlineSize:k,minBlockSize:h,overflow:be,onBlur:B,onPointerDown:q,onFocus:G,onPointerEnter:V,onPointerLeave:U,onPress:z,onPointerUp:H,padding:ge,pressed:M,to:$,...pe},he){fe(()=>{o==="expandableControl"&&(l===void 0||n===void 0)&&console.warn('When <Pressable /> has accessibilityRole="expandableControl" it should also have "controlId" and "expanded" defined'),o==="toggle"&&M===void 0&&console.warn('When <Pressable /> has accessibilityRole="toggle" it should also have "pressed" defined')},[o,M,n,l]);const N=Ye(),j=Je(),E=F||c,{background:ve,backgroundHoverAndFocus:Ce}=un(d),{className:ye}=Ze({backgroundColor:ve,backgroundColorHoverAndFocus:Ce}),{className:xe,style:Ae}=hn({alignItems:c,justifyContent:F,backgroundFit:m,backgroundImage:v,backgroundPosition:u,backgroundRepeat:b,border:g,borderRadius:t??P,borderWidth:A,dis
1play:i??"block",maxInlineSize:x,minInlineSize:k,minBlockSize:h,padding:ge},{transforms:{display:R=>E?Xe(R):en(R)}}),W=!i&&!E,Se=ue(S.Pressable,E&&S.withAlignment,xe,ye,W&&S.resetDefaultBlockAlignment,be==="hidden"&&S.overflowHidden,S.appearanceVariant[f??"base"],N&&S.inert,y),_e=o==="expandableControl"||o==="toggle"?"button":o,K=nn(),Q=tn(he),Pe=on(j,{onClick:()=>{typeof z=="function"&&z()},onBlur:()=>{typeof B=="function"&&B()},onFocus:()=>{typeof G=="function"&&G()},onMouseEnter:()=>{typeof V=="function"&&V()},onMouseLeave:()=>{typeof U=="function"&&U()},onMouseDown:R=>{typeof q=="function"&&R.button===0&&q()},onMouseUp:()=>{typeof H=="function"&&H()}}),ke=an(j,{"aria-controls":o==="expandableControl"?n:void 0,"aria-expanded":o==="expandableControl"?l:void 0}),{active:Te}=j??{},Y=p?"assertive":void 0,J=N?!0:void 0,Z={id:r,className:Se,style:Ae,tabIndex:N?-1:void 0,...ke,...Pe,...pe},X=W?_("span",{className:S.PressableContentWrapper,children:C}):C,Ie=Te??M;return _(sn.Provider,{value:!0,children:$?_(rn,{...Z,href:$,ref:Q,ariaBusy:p,ariaLive:Y,ariaLabel:a,ariaHidden:J,children:X}):_("button",{ref:Q,type:_e,disabled:s||p,form:o==="submit"&&K?.nested?K.id:void 0,"aria-pressed":o==="toggle"||o==="expandableControl"?Ie:void 0,"aria-busy":p,"aria-live":Y,"aria-label":a,"aria-hidden":J,...Z,children:X})})})))));export{Mn as P,ce as a,de as b,un as m,le as t,hn 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.