PageSourceSearch

https://elivingfurniture.com.au/cdn/shopifycloud/checkout-web/assets/c1/33d2e4fc.CDMDj04W.js

js elivingfurniture.com.au collected 2026-10-07 18:16:17 UTC 3,215 bytes, 1 lines download raw bytes

1import{D as e,z as t,g as n,q as r,h as a,u as o,m as i}from"./2c1ab0fe.DlNazk3M.js";import{aR as u,A as l,T as c,a1 as s}from"./164ad2e3.CR6m0m--.js";import"./app.DKKjpp8o.js";import"./4b4bc88f.DJ4vpQqJ.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=r(()=>{b.current&&(clearTimeout(b.current),document.removeEventListener("mouseup",g),b.current=void 0)},[]),y=r((e,t)=>{if(0!==e?.button)return;e.preventDefault(),p(e);let n=200;const r=()=>{n>50&&(n-=10),c(t),b.current=setTimeout(r,n)};b.current=setTimeout(r,0),document.addEventListener("mouseup",g)},[p,c,g]);return a(()=>{(t||l)&&g()},[t,l,g]),a(()=>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:E,readOnly:j,required:z,step:C=1,suffix:F,value:I},S){const A=u(),[{editingValue:R,committedValue:q},B]=t({editingValue:I,committedValue:I}),L=n(I),O=n(),$=r(e=>{"function"==typeof S?S(e):S&&(S.current=e),O.current=e},[S]),W=r(e=>{L.current=e,B({editingValue:e,committedValue:e})},[]);a(()=>{W(I)},[I,W]);const k=r(e=>{const t=function({factor:e,prevValue:t,max:n,min:r,step:a}){const o=void 0===n?1/0:n,i=void 0===r?-1/0:r,u=t?Number(t):0;if(isNaN(u))return"0";const l=e=>(e.toString().split(".")[1]||[]).length,c=Math.max(l(u),l(a)),s=Math.min(Number(o),Math.max(u+e*a,Number(i)));return parseFloat(s.toFixed(c)).toString()}({factor:e,prevValue:L.current,max:x,min:_,step:C});W(t),"function"==typeof T&&T(t),"function"==typeof N&&N(t)},[C,_,x,N,T,W]),G="stepper"===m,H=null!=R&&""!==R&&null!=x&&Number(R)>=x,J=null!=R&&""!==R&&null!=_&&Number(R)<=_,K=`${H?A("maximumReached",{value:x}):""} ${J?A("minimumReached",{value:_}):""}`.trim(),P=n(!1);return a(()=>{if(P.current)return K?l({content:K}):void 0;P.current=!0},[K]),o(c,{accessibilityDescription:e,accessoryEnd:!G||d||j?i:o(p,{label:v,maxDisabled:H,minDisabled:J,onChange:k,onMouseDown:()=>{document.activeElement!==O.current&&O.current?.focus()}}),autocomplete:s,controlledValue:R,disabled:d,error:f,icon:b,id:g,inputMode:G?"decimal":y,label:v,labelAccessibilityVisibility:h,max:x,min:_,name:D,onBlur:()=>{"function"==typeof V&&V()},onChange:e=>{W(e),"function"==typeof N&&N(e)},onFocus:M,onInput:e=>{L.current=e,B(t=>({...t,editingValue:e})),"function"==typeof T&&T(e)},onWheel:e=>{G||e.preventDefault()},placeholder:w,prefix:E,readOnly:j,ref:$,required:z,step:C,suffix:F,type:"number",value:q})});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.