PageSourceSearch

https://linar.ooo/_next/static/chunks/7977.46db76ea5176fe45.js

js linar.ooo collected 2026-10-07 18:11:28 UTC 17,065 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3117,7977],{6008:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(95155),o=r(35675);let n=({value:e,checked:t,onChange:r,name:n})=>(0,i.jsx)(o.A,{name:n,value:e,checked:t,onChange:r,sx:{color:"var(--theme-primary-brand)",m:0,p:0,"&.Mui-checked":{color:"var(--theme-primary-brand)"}}})},6753:(e,t,r)=>{r.r(t),r.d(t,{default:()=>N});var i=r(95155),o=r(12115),n=r(28905),a=r(80680),l=r(78209),d=r(6008),s=r(92169),h=r(37206),c=r(27866),u=r.n(c),m=r(18218),p=r(50002);r(99839);let x=(0,h.default)(()=>Promise.all([r.e(6438),r.e(2848)]).then(r.bind(r,22848)).then(e=>e.DateCalendar),{loadableGenerated:{webpack:()=>[22848]},ssr:!1}),f=({children:e,dates:t,anotherDay:r,handleChooseAnotherDay:o,isOpen:n,handleOpenDatePicker:a})=>{let l=t.find(e=>!e.disabled)?.date;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{onClick:a,children:e}),(0,i.jsx)(s.A,{open:n,onClose:a,style:{zIndex:9999},children:(0,i.jsx)(p.$,{dateAdapter:m.R,adapterLocale:"ru",children:(0,i.jsx)(x,{showDaysOutsideCurrentMonth:!0,value:r,onChange:e=>o(e),minDate:u()(l),sx:{borderRadius:"var(--theme-primary-radius-small)"},slotProps:{day:{sx:{"&.MuiPickersPopper-root":{border:"4px solid red"},"&.Mui-selected":{background:"var(--theme-primary-brand)",color:"#fff"},"&:hover":{background:"var(--theme-primary-brand)",color:"#fff"}}}}})})})]})};var v=r(14426),g=r(99333),b=r(17024),w=r(67863),y=r(53117),D=r(93673),k=r(49538),j=r(62811),S=r(15987),M=r(4071),Y=r(48022),C=r(57752);let A={height:"100%",position:"absolute",right:0,left:0},E={height:"76px",padding:"0 24px",marginTop:"24px"},$={fontWeight:500,fontSize:"24px",color:"var(--theme-primary-black)"},R={fontWeight:400,fontSize:"16px",lineHeight:"24px",color:"var(--theme-third-black)"},T={flex:1,overflowY:"auto",overflowX:"hidden","&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{backgroundColor:g.R8,borderRadius:"100px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"var(--theme-primary-brand)",borderRadius:"100px",height:"10px"},[`@media ${k.R.mobile.mediaQuery}`]:{padding:0,margin:0,bottom:200,height:"60vh"}},W={display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"10px",cursor:"pointer",padding:"0 24px"},z=(e,t)=>({width:"98px",height:"88px",borderRadius:"var(--theme-primary-radius-small)",border:`1px ${e?"solid":"dashed"} var(--theme-primary-brand)`,padding:"15px",pointerEvents:t?"none":"auto",opacity:t?.7:1}),L={fontSize:"16px",fontWeight:500,width:"98px"},H={fontSize:"14px",fontWeight:400,width:"98px"},I={marginTop:"30px",[`@media ${k.R.mobile.mediaQuery}`]:{height:"35vh"}},O={height:"56px",width:"100%",padding:"0 24px"},P={"& .MuiListItemText-primary":{fontSize:"16px",lineHeight:"24px",color:"var(--theme-primary-black)",fontWeight:500}},V={padding:"16px 24px",height:"96px",width:"100%",[`@media ${k.R.mobile.mediaQuery}`]:{flexDirection:"column-reverse",width:"100%",height:"124px",padding:"16px 24px"}},N=({anchor:e="right",children:t,dates:r,otherDate:s,anotherDay:h,slotsData:c,orderInfo:m,setOrderInfo:p,setAnotherDay:x})=>{let k,N,F,U,Z=(0,j.A)("(max-width:768px)"),B=(0,o.useMemo)(()=>m.timeInfo,[m.timeInfo]),[Q,_]=(0,o.useState)(!1),[q,X]=(0,o.useState)(!1),[,G]=(0,o.useState)(!0),[J,K]=(0,o.useState)(""),[ee,et]=(0,o.useState)(B),er=()=>{_(e=>{let t=!e;return!e&&t&&(K(m.date||""),et(m.timeInfo)),t})},ei=()=>X(e=>!e),eo=e=>{K(e),x(null),et({iD:0,name:""}),G(u()(e).format("YYYY-MM-DD")===u()().format("YYYY-MM-DD"))},en=(e,t)=>{et({iD:e,name:t})},ea=e=>{let t=u()(e).format("YYYY-MM-DD"),i=r?.find(e=>u()(e.date).format("YYYY-MM-DD")===t);i?.disabled||G(!1),i?x(null):x(e),K(u()(t).format()),et({iD:0,name:""}),ei()},el=(0,o.useMemo)(()=>r?.find(e=>u()(e.date).format("YYYY-MM-DD")===u()(J).format("YYYY-MM-DD")),[r,J]),ed=h&&c?.length>0||!h&&el?.times&&el?.times?.length>0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{onClick:er,style:{marginTop:"10px"},children:t}),(0,i.jsx)(n.A,{anchor:e,isOpen:Q,drawerwidth:484,onClose:er,children:(0,i.jsxs)(S.default,{direction:"column",sx:A,children:[(0,i.jsxs)(M.default,{sx:E,children:[(0,i.jsxs)(S.default,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsx)(Y.default,{component:"h1",sx:$,children:"Время получения"}),(0,i.jsx)(M.default,{onClick:er,sx:{cursor:"pointer"},children:(0,i.jsx)(v.A,{name:"close"})})]}),(0,i.jsx)(Y.default,{component:"p",sx:R,children:(N=["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"][(k=new Date(J)).getDay()],F=String(k.getDate()).padStart(2,"0"),U=String(k.getMonth()+1).padStart(2,"0"),`${N} ${F}.${U}`)})]}),(0,i.jsxs)(M.default,{sx:T,children:[Z&&(0,i.jsx)(w.C,{variant:"date",useLegacySizing:!0,items:[...r,{date:"custom",disabled:!1,isCu
1stom:!0}],overflowStyle:"visible",renderItem:e=>{if(!e.disabled)return e.isCustom&&s?(0,i.jsx)(f,{dates:r,anotherDay:h,isOpen:q,handleOpenDatePicker:ei,handleChooseAnotherDay:ea,children:(0,i.jsx)(D.A,{children:(0,i.jsxs)(M.default,{sx:z(u()(h).isValid(),!1),children:[(0,i.jsx)(Y.default,{component:"h2",sx:L,children:h?(0,l.pZ)(h.format()).formattedDate:"другой"}),(0,i.jsx)(Y.default,{component:"h2",sx:H,children:h?(0,l.pZ)(h.format()).dayOfWeek:"день"})]})})},"custom-date-picker"):(0,i.jsx)(D.A,{children:(0,i.jsxs)(M.default,{onClick:()=>eo(e.date),sx:z(u()(J).format("YYYY-MM-DD")===u()(e.date).format("YYYY-MM-DD"),e.disabled),children:[(0,i.jsx)(Y.default,{component:"h2",sx:L,children:(0,l.pZ)(e.date).formattedDate}),(0,i.jsx)(Y.default,{component:"h2",sx:H,children:(0,l.pZ)(e.date).dayOfWeek})]})},e.date)}}),!Z&&(0,i.jsxs)(M.default,{sx:W,children:[(r??[]).filter(e=>!e.disabled).map(e=>(0,i.jsx)(D.A,{children:(0,i.jsxs)(M.default,{onClick:()=>eo(e.date),sx:z(u()(J).format("YYYY-MM-DD")===u()(e.date).format("YYYY-MM-DD"),e.disabled),children:[(0,i.jsx)(Y.default,{component:"h2",sx:L,children:(0,l.pZ)(e.date).formattedDate}),(0,i.jsx)(Y.default,{component:"h2",sx:H,children:(0,l.pZ)(e.date).dayOfWeek})]})},e.date)),s&&(0,i.jsx)(f,{dates:r,anotherDay:h,isOpen:q,handleOpenDatePicker:ei,handleChooseAnotherDay:ea,children:(0,i.jsx)(D.A,{children:(0,i.jsxs)(M.default,{sx:z(u()(h).isValid(),!1),children:[(0,i.jsx)(Y.default,{component:"h2",sx:L,children:h?(0,l.pZ)(h.format()).formattedDate:"другой"}),(0,i.jsx)(Y.default,{component:"h2",sx:H,children:h?(0,l.pZ)(h.format()).dayOfWeek:"день"})]})})})]}),ed&&(0,i.jsxs)(S.default,{direction:"column",sx:I,children:[(0,i.jsx)(Y.default,{component:"p",sx:[$,{marginBottom:"20px",padding:"0 24px"}],children:"Время"}),(0,i.jsx)(y.A,{getId:e=>e.iD,items:h?c||[]:el?.times||[],onSelect:e=>en(e.iD,e.name),renderItem:e=>(0,i.jsxs)(S.default,{direction:"row",alignItems:"center",justifyContent:"space-between",onClick:()=>en(e.iD,e.name),sx:O,children:[(0,i.jsx)(M.default,{children:(0,i.jsx)(C.A,{primary:e.name,sx:P})}),(0,i.jsx)(M.default,{children:(0,i.jsx)(d.A,{name:String(e.iD),value:String(ee?.iD),checked:String(ee?.iD)===String(e.iD),onChange:()=>en(e.iD,e.name)})})]},e.iD)})]})]}),(0,i.jsxs)(S.default,{direction:"row",alignItems:"center",justifyContent:"flex-end",gap:"10px",sx:V,children:[(0,i.jsx)(a.A,{maxHeight:!0,borderNone:!0,variant:"outlined",onClick:()=>{er()},children:"не изменять"}),(0,i.jsx)(a.A,{maxHeight:!0,fullWidth:Z,variant:"contained",endIcon:(0,i.jsx)(v.A,{name:"check",color:g.UE}),onClick:()=>{let e=h?String(h.format()):J,t=!!h;p(t=>({...t,date:e,timeInfo:ee}));let r={date:e,anotherDay:t,timeInfo:ee,paymentMethod:m.paymentMethod,expires:Date.now()};localStorage.setItem(b.y.SETTING_ORDER,JSON.stringify(r)),er()},children:"сохранить"})]})]})})]})}},28905:(e,t,r)=>{r.d(t,{A:()=>d});var i=r(95155),o=r(12115),n=r(49538),a=r(4071),l=r(32444);let d=({anchor:e,children:t,isOpen:r,onClose:d,drawerwidth:s,onScroll:h,onTransitionEnd:c,preservePageScroll:u=!1})=>{let m,p,x=(0,o.useRef)(null),f=(0,o.useRef)(0);return m=(0,o.useRef)(!1),(0,o.useEffect)(()=>{let e,t="CSS"in window&&"function"==typeof window.CSS?.supports&&window.CSS.supports("height","100dvh");if(m.current=t,t)return void document.documentElement.style.removeProperty("--vh");let r=()=>{let e;e=window.visualViewport?.01*window.visualViewport.height:.01*window.innerHeight,document.documentElement.style.setProperty("--vh",`${e}px`)};r(),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),window.visualViewport&&(window.visualViewport.addEventListener("resize",r),window.visualViewport.addEventListener("scroll",r));let i=()=>{clearTimeout(e),e=setTimeout(r,150)};return window.addEventListener("scroll",i,{passive:!0}),()=>{window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r),window.removeEventListener("scroll",i),window.visualViewport&&(window.visualViewport.removeEventListener("resize",r),window.visualViewport.removeEventListener("scroll",r)),clearTimeout(e)}},[]),(0,o.useEffect)(()=>
1{if(!r||m.current)return;let e=()=>{let e;e=window.visualViewport?.01*window.visualViewport.height:.01*window.innerHeight,document.documentElement.style.setProperty("--vh",`${e}px`)};e();let t=setTimeout(e,100),i=setTimeout(e,300);return()=>{clearTimeout(t),clearTimeout(i)}},[r]),p=(0,o.useRef)(null),(0,o.useEffect)(()=>{if(!r)return;let e=document.querySelector(".MuiDrawer-root .MuiPaper-root");if(!e){let e=setTimeout(()=>{let e=document.querySelector(".MuiDrawer-root .MuiPaper-root");e&&(p.current=e)},100);return()=>clearTimeout(e)}p.current=e;let t=e=>{let t=e.target,r=x.current,i=p.current;if(!r||!i||!t)return;let o=r.contains(t)||r===t,n=r.scrollTop,a=r.scrollHeight,l=r.clientHeight,d=e.touches[0].clientY,s=e.startY||d,h=d-s;o&&a>l?(n<=0&&h>0||n+l>=a-1&&h<0)&&(e.preventDefault(),e.stopPropagation()):o||(e.preventDefault(),e.stopPropagation())},i=e=>{e.startY=e.touches[0].clientY};return e.addEventListener("touchstart",i,{passive:!0}),e.addEventListener("touchmove",t,{passive:!1}),()=>{e.removeEventListener("touchstart",i),e.removeEventListener("touchmove",t)}},[r,x]),(0,o.useLayoutEffect)(()=>{if(!u)return;if(r){let e=window.scrollY;f.current=e;let t=()=>{window.scrollY!==e&&window.scrollTo({top:e,left:0,behavior:"instant"})};t();let r=requestAnimationFrame(t),i=window.setTimeout(t,0);return()=>{cancelAnimationFrame(r),window.clearTimeout(i)}}let e=f.current,t=()=>{window.scrollTo({top:e,left:0,behavior:"instant"})};t();let i=requestAnimationFrame(t),o=window.setTimeout(t,0);return()=>{cancelAnimationFrame(i),window.clearTimeout(o)}},[r,u]),(0,i.jsx)(l.Ay,{component:"aside",open:r,anchor:e,onClose:d,onTransitionEnd:()=>{u&&!r&&window.scrollTo({top:f.current,left:0,behavior:"instant"}),c?.()},sx:{zIndex:9999,height:"100%",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none","& .MuiPaper-root":{borderTopLeftRadius:"var(--theme-primary-radius-big)",borderBottomLeftRadius:"var(--theme-primary-radius-big)",position:"fixed",overflow:"hidden",overscrollBehavior:"none",touchAction:"pan-y",WebkitOverflowScrolling:"touch",height:"100vh",maxHeight:"100vh","@supports (height: 100dvh)":{height:"100dvh",maxHeight:"100dvh"},"@supports not (height: 100dvh)":{height:"calc(var(--vh, 1vh) * 100)",maxHeight:"calc(var(--vh, 1vh) * 100)"}},[`@media ${n.R.mobile.mediaQuery}`]:{"& .MuiPaper-root":{borderRadius:"0",width:"100%",overscrollBehavior:"none",touchAction:"pan-y",WebkitOverflowScrolling:"touch",height:"100vh",maxHeight:"100vh","@supports (height: 100dvh)":{height:"100dvh",maxHeight:"100dvh"},"@supports not (height: 100dvh)":{height:"calc(var(--vh, 1vh) * 100)",maxHeight:"calc(var(--vh, 1vh) * 100)"},paddingBottom:"env(safe-area-inset-bottom, 0px)"}}},ModalProps:{keepMounted:!1,disablePortal:!1,disableScrollLock:u,disableAutoFocus:u,disableRestoreFocus:u,BackdropProps:{timeout:500}},children:(0,i.jsx)(a.default,{ref:x,onScroll:h,width:s||668,color:"var(--theme-primary-black)",position:"relative",height:"100%",bgcolor:"var(--theme-primary-body)",overflow:"hidden",sx:{overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain",WebkitOverflowScrolling:"touch",touchAction:"pan-y",[`@media ${n.R.mobile.mediaQuery}`]:{width:"100%",p:0,overscrollBehavior:"contain",WebkitOverflowScrolling:"touch",touchAction:"pan-y"}},children:t})})}},38179:(e,t,r)=>{r.d(t,{V:()=>i});let i={Montserrat:"var(--font-montserrat)",Roboto:"var(--font-roboto)",Hazelnuts:"var(--font-hazelnuts)"}},53117:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(95155),o=r(49538),n=r(41161),a=r(2402);let l=({items:e,onSelect:t,getId:r,renderItem:l,ariaLabelledby:d,shouldRenderItem:s,selectedId:h,selectedIds:c})=>(0,i.jsx)(n.A,{"aria-labelledby":d,sx:{p:0},children:!!e.length&&e.map(e=>{if(s&&!s(e))return null;let n=r(e),d=void 0!==h?h===n:void 0!==c&&c.includes(n);return(0,i.jsx)(a.A,{selected:d,onClick:()=>t(e),sx:{m:0,p:0,transition:"all 0.2s ease-in-out","& .MuiTouchRipple-child":{backgroundColor:"var(--theme-primary-brand)"},":hover":{backgroundColor:"color-mix(in srgb, var(--theme-primary-brand) 8%, transparent)"},"&.Mui-selected":{backgroundColor:"color-mix(in srgb, var(--theme-primary-brand) 12%, transparent) !important"},"&.Mui-selected:hover":{backgroundColor:"color-mix(in srgb, var(--theme-primary-brand) 16%, transparent) !important"},"&.Mui-active":{backgroundColor:"color-mix(in srgb, var(--theme-primary-brand) 12%, transparent) !important"},"&.Mui-focusVisible":{backgroundColor:"color-mix(in srgb, var(--theme-primary-brand) 8%, transparent) !important"},[`@media ${o.R.mobile.mediaQuery}`]:{p:0}},children:l(e,d,()=>t(e))},n)})})},78209:(e,t,r)=>{r.d(t,{pZ:()=>i,tX:()=>o});let i=e=>{let t=new Date(e),r=new Date,i=`${10>t.getDate()?"0":""}${t.getDate()}.${t.getMonth()+1<10?"0":""}${t.getMonth()+1}`,o=["вс","пн","вт","ср","чт","пт","сб"][t.getDay()];return t.toDateString()===r.toDateString()?{formattedDate:i,dayOfWeek:"Сегодня"}:t.getDate()===r.getDate()+1?{formattedDate:i,dayOfWeek:"Завтра"}:{formattedDate:i,dayOfWeek:o}},o=(e,t,r="short")=>{let i=e=>"number"==typeof e?e:new Date(e).getTime(),o=e=>{let t=new Date(e);if("short"!==r)return t.toLocaleDateString("ru-RU",{day:"numeric",month:"long",year:"numeric"});{let e=t.getDate().toString().padStart(2,"0"),r=(t.getMonth()+1).toString().padStart(2,"0"),i=t.getFullYear().toString();return`${e}.${r}.${i}`}},n=null!=e,a=null!=t;if(n&&a){let r=i(e),n=i(t);return isNaN(r)||isNaN(n)?"":`С ${o(r)} по ${o(n)}`}if(n){let t=i(e);return isNaN(t)?"":`С ${o(t)}`}if(a){let e=i(t);return isNaN(e)?"":`по ${o(e)}`}return""}},80680:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(95155),o=r(12115),n=r(91792),a=r(38179),l=r(49538),d=r(99333),s=r(37721);let h=({sx:e,variant:t,disabled:r,onlyIcon:h,fullWidth:c,startIcon:u,endIcon:m,dis
1playIcon:p,borderNone:x,maxHeight:f,maxWidth:v,children:g,onClick:b,type:w,primaryBrand:y="var(--theme-primary-brand)",themeElement:D})=>{let k=(e=>{let{getElement:t,getValue:r}=(0,n.X)();return(0,o.useMemo)(()=>{if(!e)return{};let i=t(e),o=i?.default,n=i?.disabled,l={};if(o){if(void 0!==o.height){let e=`${o.height}px`;l.height=e,l.minHeight=e}if(o.radius){let e=r(o.radius);l.borderRadius=`${e}px`}if(o.textColor&&(l.color=r(o.textColor)),o.font){let e=r(o.font);if(e&&"object"==typeof e){var d;l.fontFamily=(d=e.font)&&d in a.V?a.V[d]:a.V.Roboto,l.fontSize=e.size,l.fontWeight=e.weight}}}return n&&(l["&.Mui-disabled"]={color:n.textColor?r(n.textColor):void 0,pointerEvents:"none"}),l},[e,t,r])})(D),j=[{position:"relative",height:"40px",p:h?"14px 8px":"14px 24px",minWidth:v?"56px":"40px",minHeight:f?"56px":"40px",borderRadius:"var(--theme-primary-radius-small)",fontWeight:500,fontSize:"14px",lineHeight:"20px",textTransform:"uppercase",textAlign:p?"left":"center",display:"flex",justifyContent:p?"space-between":"center",color:"contained"===t?d.UE:y,border:x?"none":"outlined"===t?"1px solid var(--theme-primary-brand)":d.UE,background:"contained"===t?y:"transparent","&:hover":{border:x?"none":"outlined"===t?"1px solid var(--theme-primary-brand)":d.UE,background:"contained"===t?"color-mix(in srgb, var(--theme-primary-brand) 88%, black)":"outlined"===t?"color-mix(in srgb, var(--theme-primary-brand) 12%, transparent)":"transparent",color:"contained"===t?d.UE:y,filter:"none"},"&:active":{background:"contained"===t?"color-mix(in srgb, var(--theme-primary-brand) 82%, black)":"transparent",filter:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px var(--theme-primary-brand) 33"},[`@media ${l.R.mobile.mediaQuery}`]:{minWidth:"40px",minHeight:"40px"}},k,...Array.isArray(e)?e:e?[e]:[]];return(0,i.jsx)(s.A,{type:w,sx:j,color:"inherit",onClick:b,variant:t,disabled:r,disableElevation:!0,fullWidth:c,startIcon:u,endIcon:m,children:g})}},82841:(e,t,r)=>{r.d(t,{t:()=>n,w:()=>a});let i=/^(https?|mailto|tel):/i,o=/^[a-z0-9][-a-z0-9]*(\.[a-z0-9][-a-z0-9]*)+(\/|$|\?)/i,n=e=>{let t=e.trim();return!(!t||t.startsWith("/"))&&!!(t.startsWith("#")||t.startsWith("//")||i.test(t)||/^www\./i.test(t)||o.test(t))},a=e=>{let t=e.trim();return t?t.startsWith("//")?`https:${t}`:i.test(t)?t:n(t)?`https://${t}`:t:t}}}]);

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.