PageSourceSearch

https://foxlabs.com/cdn/shopifycloud/checkout-web/assets/c1/Sheet.CvqBdJB1.js

js foxlabs.com collected 2026-09-26 18:20:43 UTC 4,529 bytes, 1 lines download raw bytes

1import{u as e,k as p,A as N,h as s,g as h}from"./esnext-vendor.B9Da21W6.js";import{z as A,F as W,aI as M,aJ as V,aK as $,a$ as F,b0 as H,b1 as J,b2 as z,au as B,l as K,I,b3 as L,m as D,aW as G,b4 as Q,aH as U}from"./hydrate.DZ4YTm7p.js";import"./app.DbSrjjlA.js";import"./addresses-is-address-empty.Bn2lNY_L.js";var t={Actions:"_17vfpuu6 _1fragem82 _1fragem9v _1fragem6t _1fragem2i _1fragem19",Close:"_17vfpuu9 _17vfpuu8 _1fragemwi _1fragemx0 _1fragem2i _1fragem10x _1fragemto",CloseButton:"_17vfpuub _17vfpuua _1fragemp5 _1fragemps _1fragemqy _1fragemrl _1fragemnc _1fragemnz _1fragemsr _1fragemte _1fragem5u _1fragem133 _1fragem12k _1fragem12p _1fragem12e",Content:"_17vfpuud _17vfpuuc _1fragem8c _1fragem8k _1fragema5 _1fragemad _1fragem6t _1fragemxc _1fragemxa _1fragemzf",ExpandButton:"_17vfpuuf _17vfpuue _1fragemel _1frageme1 _1fragemf5 _1fragemdh _1fragemg4 _1fragemgy _1fragemim _1fragemhs _1fragem7s _1fragem9l _1fragemp5 _1fragemnc _1fragemt6 _1fragemrd _1fragemwi _1fragem6t _1fragemx7 _1fragem19 _1fragem133 _1fragem12z",Overlay:"_17vfpuup _17vfpuuo _1fragemqt _1fragemsm _1fragemp0 _1fragemuf _1fragemwn _1fragem112 _1fragem10n _1fragemzt _1fragem132 _1fragem64 _1fragem73 _1fragem1j _1fragem11i _1fragem5p _1fragemxx _1fragemy5 _1fragem11k _1fragem133 _1fragem12j _1fragem12f _1fragem12q",PrimaryActions:"_17vfpuuh _17vfpuug _1fragem82 _1fragem9v _1fragem6t _1fragemx7 _1fragembt _1fragemyn",ScrollBox:"_17vfpuuj _17vfpuui _1fragem7x _1fragem9q _1fragem6t _1fragems2 _1fragemsp _1fragem4q _1fragem19",SecondaryAction:"_17vfpuuk",Sheet:"_17vfpuum _17vfpuul _1fragempu _1fragemo1 _1fragemtq _1fragemu8 _1fragemrx _1fragemsf _1fragemws _1fragem64 _1fragem11i _1fragem12m _1fragem12e _1fragem12t _1fragemzf",sheetExpanded:"_17vfpuun",transitionVariant:{entered:"_17vfpuu0",exit:"_17vfpuu1",exiting:"_17vfpuu2",enter:"_17vfpuu3",entering:"_17vfpuu4",exited:"_17vfpuu5"},withPrimaryAndSecondaryActions:"_17vfpuu7"};const X=W("Sheet");function _e(r){const a=A(r.id,X);return e(Y,{...r,id:a})}const Y=M(V(function({accessibilityLabel:a,autoFocus:_,children:i,heading:l,id:n,defaultOpen:g,open:m,onHide:x,onShow:y,onAfterHide:u,onAfterShow:o,primaryAction:k,secondaryActions:E,setActive:S}){const[b,C]=p(!1),[P,w]=p(!1),[O,T]=p(0),c=N(null),d=N(!1);s(()=>{g&&S&&S(!0)},[]),s(()=>{m&&typeof y=="function"&&y()},[m]);const{className:q,style:R}=$({blockSize:`${O}px`}),f=F(!!m,"slow"),j=l&&!a?z(n):void 0;return s(()=>{f==="enter"&&(c.current=document.activeElement),f==="exited"&&(c?.current instanceof HTMLElement&&c.current.focus(),d.current&&(typeof u=="function"&&u(),d.current=!1)),f==="entered"&&typeof o=="function"&&o()},[f,u,o]),s(()=>{m||(d.current=!0)},[m]),f==="exited"?null:e(J,{children:e(H.Provider,{value:!1,children:[e("div",{className:h(t.Overlay,t.transitionVariant[f]),id:n,role:"dialog","aria-label":a,ref:v=>{v!=null&&(T(v.getBoundingClientRect().height),_&&f==="entered"&&v.focus())},"aria-labelledby":j,tabIndex:_?-1:void 0,children:[P&&!b&&e(ae,{onExpand:()=>{C(!0)}}),e("div",{className:h(t.Sheet,b&&t.sheetExpanded),children:[e(Z,{heading:l,id:n,primaryAction:k,secondaryActions:E,setIsScrollable:w,children:i}),e(re,{onHide:()=>{typeof x=="function"&&x(),C(!1)}})]})]}),e("div",{className:q,style:R})]})})},{overlayType:"sheet"}),{focusActivatorWhenClosing:!0});function Z({children:r,heading:a,id:_,primaryAction:i,secondaryActions:l,setIsScrollable:n}){return e("div",{className:t.Content,children:[e(L,{onScrollable:({block:g})=>{n(g)},hint:{type:"shadow"},scrollbarWidth:"none",children:e("div",{className:t.ScrollBox,children:[a&&e("div",{id:z(_),children:typeof a=="string"?e(D,{level:2,children:a}):a}),e(G,{children:r})]})}),e(ee,{primaryAction:i,secondaryActions:l})]})}function ee({primaryAction:r,secondaryActions:a}){return a||r?e(U,{children:e(Q.Provider,{value:"Sheet",children:e("div",{className:h(t.Actions,a&&r?t.withPrimaryAndSecondaryActions:void 0),children:[a&&e("div",{className:t.SecondaryAction,children:a}),r&&e("div",{className:t.PrimaryActions,children:r})]})})}):null}function ae({onExpand:r}){const a=B();return e("button",{type:"button",className:t.ExpandButton,onClick:()=>{r()},children:[e(K,{type:"strong",size:"small",children:a("expandSheet")}),e(I,{type:"chevron-up",size:"small-200"})]})}function re({onHide:r}){const a=B();return e("div",{className:t.Close,children:e("button",{type:"button",className:t.CloseButton,onClick:()=>{typeof r=="function"&&r()},"aria-label":a("closeModal")||"Close",children:e(I,{type:"x",size:"base"})})})}export{_e as S,Y as a};

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.