PageSourceSearch

https://flightcoffee.co.nz/cdn/shopifycloud/checkout-web/assets/c1/33d2e4fc.DiLu25eG.js

js flightcoffee.co.nz collected 2026-10-05 22:11:55 UTC 3,215 bytes, 1 lines download raw bytes

1import{D as e,z as t,g as n,q as a,h as r,u as o,m as i}from"./2c1ab0fe.RaLGJvq2.js";import{aQ as u,z as l,T as c,a0 as s}from"./164ad2e3.bPUx3Fg0.js";import"./app.CPIYcwpp.js";import"./f67abd2c.BTHhdhoM.js";var m="_1170e3g2 _1fragempp _1fragemri _1fragemnw _1fragemtb",d="_1170e3g3 _1fragem11v _1fragemyc _1fragem11z";function p({label:e="",maxDisabled:t,minDisabled:l,onChange:c,onMouseDown:p}){const f=u(),b=n(),g=a(()=>{b.current&&(clearTimeout(b.current),document.removeEventListener("mouseup",g),b.current=void 0)},[]),y=a((e,t)=>{if(0!==e?.button)return;e.preventDefault(),p(e);let n=200;const a=()=>{n>50&&(n-=10),c(t),b.current=setTimeout(a,n)};b.current=setTimeout(a,0),document.addEventListener("mouseup",g)},[p,c,g]);return r(()=>{(t||l)&&g()},[t,l,g]),r(()=>g,[g]),o("div",{className:i("_1170e3g1 _1170e3g0 _1fragem64 _1fragem1y"),role:"group",children:[o("button",{type:"button","aria-label":f("decrease",{type:e}),onTouchStart:l?void 0:()=>c(-1),onMouseDown:e=>y(e,-1),className:i(m,l&&d),disabled:l,tabIndex:-1,children:o(s,{type:"minus",size:"small"})}),o("button",{type:"button","aria-label":f("increase",{type:e}),onTouchStart:t?void 0:()=>c(1),onMouseDown:e=>y(e,1),className:i(m,t&&d),disabled:t,tabIndex:-1,children:o(s,{type:"plus",size:"small"})})]})}const f=e(function({accessibilityDescription:e,accessoryEnd:i,autocomplete:s,controls:m="auto",disabled:d,error:f,icon:b,id:g,inputMode:y="decimal",label:v,labelAccessibilityVisibility:h,max:x,min:_,name:D,onBlur:V,onChange:N,onFocus:M,onInput:T,placeholder:w,prefix:z,readOnly:E,required:j,step:C=1,suffix:F,value:I},S){const q=u(),[{editingValue:A,committedValue:B},L]=t({editingValue:I,committedValue:I}),O=n(I),R=n(),$=a(e=>{"function"==typeof S?S(e):S&&(S.current=e),R.current=e},[S]),Q=a(e=>{O.current=e,L({editingValue:e,committedValue:e})},[]);r(()=>{Q(I)},[I,Q]);const W=a(e=>{const t=function({factor:e,prevValue:t,max:n,min:a,step:r}){const o=void 0===n?1/0:n,i=void 0===a?-1/0:a,u=t?Number(t):0;if(isNaN(u))return"0";const l=e=>(e.toString().split(".")[1]||[]).length,c=Math.max(l(u),l(r)),s=Math.min(Number(o),Math.max(u+e*r,Number(i)));return parseFloat(s.toFixed(c)).toString()}({factor:e,prevValue:O.current,max:x,min:_,step:C});Q(t),"function"==typeof T&&T(t),"function"==typeof N&&N(t)},[C,_,x,N,T,Q]),k="stepper"===m,G=null!=A&&""!==A&&null!=x&&Number(A)>=x,H=null!=A&&""!==A&&null!=_&&Number(A)<=_,J=`${G?q("maximumReached",{value:x}):""} ${H?q("minimumReached",{value:_}):""}`.trim(),K=n(!1);return r(()=>{if(K.current)return J?l({content:J}):void 0;K.current=!0},[J]),o(c,{accessibilityDescription:e,accessoryEnd:!k||d||E?i:o(p,{label:v,maxDisabled:G,minDisabled:H,onChange:W,onMouseDown:()=>{document.activeElement!==R.current&&R.current?.focus()}}),autocomplete:s,controlledValue:A,disabled:d,error:f,icon:b,id:g,inputMode:k?"decimal":y,label:v,labelAccessibilityVisibility:h,max:x,min:_,name:D,onBlur:()=>{"function"==typeof V&&V()},onChange:e=>{Q(e),"function"==typeof N&&N(e)},onFocus:M,onInput:e=>{O.current=e,L(t=>({...t,editingValue:e})),"function"==typeof T&&T(e)},onWheel:e=>{k||e.preventDefault()},placeholder:w,prefix:z,readOnly:E,ref:$,required:j,step:C,suffix:F,type:"number",value:B})});export{f as N};

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.