PageSourceSearch

https://www.lastmile.lt/_next/static/chunks/1617-a233dd89331a7e16.js

js lastmile.lt collected 2026-10-08 20:21:36 UTC 8,270 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1617],{91617:(e,t,r)=>{r.d(t,{dO:()=>X});var l=r(36405),n=r(78293),a=r(23867),o=r(58714),u=r(80697),i=r(20380),s=r(71164),c=r(4405),d=r(88273),b=r(18012),f=r(55729),h=r(6029),y=r(33601);let v="Label",[p,g]=(0,u.q)(v,{id:void 0,controlRef:{current:null}}),m=(0,b.styled)(d.y,{name:"Label",tag:"label",variants:{unstyled:{false:{size:"$true",color:"$color",backgroundColor:"transparent",display:"flex",alignItems:"center",userSelect:"none",cursor:"default",pressStyle:{color:"$colorPress"}}},size:{"...size":(e,t)=>{let r=(0,s.W)(e,t)?.height;return{...(0,c.n)(e,t),lineHeight:r?t.tokens.size[r]:void 0}}}},defaultVariants:{unstyled:"1"===y.env.TAMAGUI_HEADLESS}}),A=f.forwardRef((e,t)=>{let{htmlFor:r,id:l,...o}=e,u=f.useRef(null),s=f.useRef(null),c=(0,n.sC)(t,s),d=f.useId(),b=l??d;return a.HZ&&f.useEffect(()=>{if(r){let e=document.getElementById(r);if(s.current&&e){let t=[b,e.getAttribute("aria-labelledby")].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",t),u.current=e,()=>{if(!b)return;let t=e.getAttribute("aria-labelledby")?.replace(b,"");""===t?e.removeAttribute("aria-labelledby"):t&&e.setAttribute("aria-labelledby",t)}}}},[b,r]),(0,h.jsx)(p,{id:b,controlRef:u,children:(0,h.jsx)(m,{id:b,htmlFor:r,...o,ref:c,onMouseDown:t=>{e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onPress:t=>{if(e.onPress?.(t),a.HZ){if(r||!u.current||t.defaultPrevented)return;let e=u.current.contains(t.target),l=!0===t.isTrusted;!e&&l&&(u.current.click(),u.current.focus())}else e.htmlFor&&(0,i.Z6)(e.htmlFor)}})})});A.displayName=v,m.extractable((0,b.themeable)(A),{neverFlatten:!0});let C=e=>{let t,{control:r,checked:l,bubbles:n=!0,...a}=e,o=f.useRef(null),u=(t=f.useRef({value:l,previous:l}),f.useMemo(()=>(t.current.value!==l&&(t.current.previous=t.current.value,t.current.value=l),t.current.previous),[l]));return f.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==l&&t){let r=new Event("click",{bubbles:n});t.call(e,l),e.dispatchEvent(r)}},[u,l,n]),(0,h.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:l,...a,tabIndex:-1,ref:o,style:{...e.style,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};var x=r(47169),k=r(59474),S=r(99410),w=r(1983),E=r(60768),j=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/;let D=(e,t)=>{if("string"==typeof e)return""+parseFloat(e)*t+e.match(j)[1];if(!isNaN(parseFloat(e))&&isFinite(e))return e*t};var z=r(71579),I=r(58852),P=["aria-label","accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"],R={},H="0px 1px 3px rgba(0,0,0,0.5)",T=H+", 0 0 0 10px rgba(0,0,0,0.1)",F="#D5D5D5",L="#BDBDBD",M=f.forwardRef((e,t)=>{var r=e["aria-label"],l=e.accessibilityLabel,n=e.activeThumbColor,a=e.activeTrackColor,o=e.disabled,u=void 0!==o&&o,i=e.onValueChange,s=e.style,c=void 0===s?R:s,d=e.thumbColor,b=e.trackColor,h=e.value,y=void 0!==h&&h,v=(0,w.A)(e,P),p=f.useRef(null);function g(e){var t="focus"===e.nativeEvent.type;null!=p.current&&(p.current.style.boxShadow=t?T:H)}var m=z.A.flatten(c),A=m.height,C=m.width,x=A||"20px",k=D(x,2),j=D(x,.5),M=function(){if(!0===y)if(null!=b&&"object"==typeof b)return b.true;else return null!=a?a:"#A3D3CF";return null!=b&&"object"==typeof b?b.false:null!=b?b:"#939393"}(),$=y?null!=n?n:"#009688":null!=d?d:"#FAFAFA",_=[V.root,c,u&&V.cursorDefault,{height:x,width:C>k?C:k}],N=function(){if(!0===y)if("string"==typeof a&&null!=a||"object"==typeof b&&null!=b&&b.true)return M;else return F;return"string"==typeof b&&null!=b||"object"==typeof b&&null!=b&&b.false?M:F}(),Z=function(){if(!0===y)if(null==n)return L;else return $;return null==d?L:$}(),B=[V.track,{backgroundColor:u?N:M,borderRadius:j}],O=[V.thumb,y&&V.thumbActive,{backgroundColor:u?Z:$,height:x,marginStart:y?D(x,-1):0,width:x}],G=(0,E.A)("input",{"aria-label":r||l,checked:y,disabled:u,onBlur:g,onChange:function(e){null!=i&&i(e.nativeEvent.target.checked)},onFocus:g,ref:t,style:[V.nativeControl,V.cursorInherit],type:"checkbox",role:"switch"});return f.createElement(I.A,(0,S.A)({},v,{style:_}),f.createElement(I.A,{style:B}),f.createElement(I.A,{ref:p,style:O}),G)});M.displayName="Switch";var V=z.A.create({root:{cursor:"pointer",userSelect:"none"},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},track:(0,k.A)((0,k.A)({forcedColorAdjust:"none"},z.A.absoluteFillObject),{},{height:"70%",margin:"auto",transitionDuration:"0.1s",width:"100%"}),thumb:{forcedColorAdjust:"none",alignSelf:"flex-start",borderRadius:"100%",boxShadow:H,start:"0%",transform:"translateZ(0)",transitionDuration:"0.1s"},thumbActive:{insetInlineStart:"100%"},nativeControl:(0,k.A)((0,k.A)({},z.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})}),$=r(33601);let _=(0,l.createStyledContext)({size:void 0,unstyled:"1"===$.env.TAMAGUI_HEADLESS});var N=r(35629),Z=r(90719),B=r(48273),O=r(33601);let G=(0,l.styled)(Z.g,{name:"SwitchThumb",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",borderRadius:1e3}},checked:{true:{}},size:{"...size":e=>{let t=U(e);return{height:t,width:t}}}},defaultVariants:{unstyled:"1"===O.env.TAMAGUI_HEADLESS}}),U=e=>Math.round(.65*(0,l.getVariableValue)((0,N.YC)(e))),W=(0,l.styled)(B.Se,{name:"Switch",tag:"button",tabIndex:0,variants:{unstyled:{false:{borderRadius:1e3,backgroundColor:"$background",borderWidth:2,borderColor:"$background",focusVisibleStyle:{outlineColor:"$outlineColor",outlineStyle:"solid",outlineWidth:2}}},checked:{true:{}},size:{"...size":e=>{let t=U(e)+4;return{height:t,minHeight:t,width:2*U(e)+4}}}},defaultVariants:{unstyled:"1"===O.env.TAMAGUI_HEADLESS}});var q=r(33601);let K=f.createContext({checked:!1,disabled:!1,frameWidth:0}),X=function(e){let{disableActiveTheme:t,Frame:r=W,Thumb:u=G}=e;r.staticConfig.context=_,u.staticConfig.context=_;let i=u.styleable(function(e,r){let{size:n,unstyled:a,nativeID:o,...i}=e,{checked:s,disabled:c,frameWidth:d}=f.useContext(K),{unstyled:b,size:y}=_.useStyledContext(),v="1"===q.env.TAMAGUI_HEADLESS||(a??b??!1),p=f.useRef(s).current,[g,m]=f.useState(0),A=d-g,C=p?s?0:-A:s?A:0;return(0,h.jsx)(u,{ref:r,unstyled:v,...!1===v&&{size:n??y??"$true",...!t&&!v&&{theme:s?"active":null}},alignSelf:p?"flex-end":"flex-start",x:C,onLayout:(0,l.composeEventHandlers)(e.onLayout,e=>m(e.nativeEvent.layout.width)),checked:s,disabled:c,...i})}),s=r.styleable(function(e,u){let{native:i,nativeProps:s,checked:c,defaultChecked:d,onCheckedChange:b,...y}=e,[v,p]=(0,x.i)({prop:c,defaultProp:d||!1,onChange:b,transition:!0}),m=f.useContext(_.context),[A,k]=f.useState(0),S=(0,l.useProps)(y,{noNormalize:!0,noExpand:!0,resolveValues:"none",forComponent:r}),{switchProps:w,bubbleInput:E,switchRef:j}=function(e,[t,r],l){let{disabled:u,name:i,value:s,required:c}=e,d=f.useRef(!1),[b,y]=f.useState(null),v=(0,n.sC)(l,y),p=!!a.HZ&&(!b||!!b.closest("form")),m=(e=>{let t=g("LabelConsumer"),{controlRef:r}=t;return f.useEffect(()=>{e&&(r.current=e)},[e,r]),t.id})(b),A=e["aria-labelledby"]||e.labeledBy||m;return{switchProps:{role:"switch","aria-checked":t,...a.HZ?{tabIndex:u?void 0:0,"data-state":t?"checked":"unchecked","data-disabled":u?"":void 0,disabled:u}:{},...e,"aria-labelledby":A,onPress:(0,o.mK)(e.onPress,e=>{r(e=>!e),a.HZ&&p&&(d.current=e.isPropagationStopped(),d.current||e.stopPropagation())})},switchRef:v,bubbleInput:a.HZ&&p?(0,h.jsx)(C,{control:b,bubbles:!d.current,name:i,value:s,checked:t,required:c,disabled:u,style:{transform:"translateX(-100%)"}}):null}}(Object.assign({size:m.size??y.size??"$true",unstyled:m.unstyled??y.unstyled??!1},S),[v,p],u),D=(0,l.shouldRenderNativePlatform)(i);return"android"===D||"ios"===D?(0,h.jsx)(M,{value:v,onValueChange:p,...s}):(0,h.jsxs)(K.Provider,{value:{checked:v,disabled:w.disabled,frameWidth:A},children:[(0,h.jsx)(r,{ref:j,tag:"button",...l.isWeb&&{type:"button"},...w,...!t&&!y.unstyled&&{theme:v?"active":null,themeShallow:!0},checked:v,disabled:w.disabled,children:(0,h.jsx)(l.Stack,{alignSelf:"stretch",flex:1,onLayout:e=>{k(e.nativeEvent.layout.width)}
1,children:w.children})}),E]})},{disableTheme:!0});return(0,l.withStaticProperties)(s,{Thumb:i})}({Frame:W,Thumb:G})}}]);

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.