PageSourceSearch

https://tseh85.ru/_next/static/chunks/pages/actions/[id]-61100ec6b0a7161cef34.js

js tseh85.ru collected 2026-10-01 12:38:43 UTC 15,783 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[25],{"5aMz":function(t,e,o){"use strict";var i=o("HjXL");e.a={container:{position:"fixed",backgroundColor:"rgba(0, 0, 0, 0.6)",top:0,right:0,bottom:0,left:0,overflowY:"scroll",zIndex:999,"& > div":{minHeight:"100%"},"& .close-button":{top:8,position:"sticky",color:i.a.White}},modal:{minHeight:"100vh","&.compact":{overflow:"hidden",borderTopLeftRadius:12,borderTopRightRadius:12}},attr:{color:i.a.White,boxSizing:"border-box",display:"inline-flex",alignItems:"center",height:26,padding:"3px 10px",fontSize:17,fontFamily:"'Bebas Kai', sans-serif",lineHeight:"18px",fontWeight:400,marginLeft:"4px",borderRadius:8},attrWithBorder:{color:i.a.Black,borderWidth:1,borderStyle:"solid",borderColor:i.a.Black,backgroundColor:"transparent"},attrPending:{color:"transparent",borderWidth:1,borderStyle:"solid",borderColor:"transparent",backgroundColor:"transparent"},characteristicValue:{marginTop:4},sectionBorder:{borderBottom:"1px solid "+i.a.Colors.BlackAlpha10},ingredientsButton:{width:"100%"},ingredientsButtonContent:{alignItems:"center",justifyContent:"space-between"},ingredientsIcon:{color:i.a.Colors.BlackAlpha40},content:{"& .tag":{color:i.a.Colors.Red,fontSize:"bold"}},imagesBlock:{position:"relative",transform:"translate(0px)","& .price-block":{color:i.a.White,textShadow:"-1px -1px 1px rgba(255,255,255,.1), 1px 1px 1px rgba(0,0,0,.5)"},"& .overlay":{position:"absolute",left:0,bottom:0,right:0},"& .carousel .image":{minWidth:"100%"},"& .carousel, & .single-image":{width:"100%",height:"100%",overflow:"hidden"}},modifierBlock:{padding:20,fontFamily:["OpenSans-Regular","sans-serif"],color:"#252525"},modifierHeader:{fontSize:24,marginBottom:20,color:"#252525"},modifierOption:{cursor:"pointer",marginBottom:10},basketProductControl:{borderWidth:1,borderStyle:"solid",borderColor:"#E92739",color:"#E92739",borderRadius:4,fontSize:20,width:25,height:25,textAlign:"center",cursor:"pointer"},basketProductAmount:{borderWidth:1,borderStyle:"solid",borderColor:"#fff",borderRadius:2,fontSize:20,width:30,textAlign:"center",marginLeft:10,marginRight:10}}},GNm2:function(t,e,o){"use strict";o.r(e);o("UxlC");var i=o("rePB"),a=o("q1tI"),r=o.n(a),s=o("wd/R"),n=o.n(s),c=o("qKvR"),l=o("/MKj"),d=o("nOHt"),p=o("Nm0s"),u=o("gkfb"),h=o("HjXL"),b=o("Kvkj"),m=o("CHhj"),j=o("yG6K"),g=o("WlAH"),x=o("7Qib"),f=o("Nlzp"),O=o("vDqi"),y=o.n(O),k=o("dntC"),w=o("u6BD"),v=(o("LPpy"),o("MWpR")),S={container:{minHeight:"100vh",backgroundColor:h.a.White},loader:{position:"absolute",left:0,top:"30%",right:0},description:{marginBottom:8,"& a":{color:h.a.Black,textDecoration:"underline",textDecorationColor:h.a.Link,"&:hover":{color:h.a.Link}}},specialConditions:{paddingLeft:12,color:h.a.Colors.Orange,borderLeft:"2px solid "+h.a.Colors.Orange},pictureWrapper:{"& > img, & > div":{borderRadius:8,overflow:"hidden"}}},C=o("9ixD"),B=o("sFXj");r.a.createElement;var I={name:"vooagt",styles:"min-height:100vh;"},N={name:"7cgg4u",styles:"gap:24px;margin-top:24px;flex-wrap:wrap;"},P={name:"0",styles:""};class D extends r.a.Component{static async getInitialProps(t){const{id:e}=t.query||{},o=parseInt((e||"").replace(/^\D+/g,""),10)||0;if(o)try{await f.a.actions.syncInfoByAction(o)}catch(a){console.warn("Cannot get action content!",a&&a.message||a)}const i=f.a.getStoreState();return{navigationState:f.a.site.hasNavMenu()?Object(x.h)(i.config.navMap,t):null,action:o?i.actions.infoMap[o]:void 0}}constructor(t,e){super(t,e),Object(i.a)(this,"_safeSetState",(t,e)=>{if(this.mounted)return this.setState(t,e);e&&e()}),Object(i.a)(this,"reloadContent",(t,e=!1)=>{t.fetching&&!e||!t.id||f.a.actions.syncInfoByAction(t.id)}),Object(i.a)(this,"onWindowResize",()=>{const t=this.props.isPhone||x.a&&Object(x.j)().width<=812;this.state.isCompact!==t&&this._safeSetState({isCompact:t})}),Object(i.a)(this,"formatDate",(t,e="")=>t?(n.a.locale("ru"),n()(t).format("D MMMM").toLowerCase()):e),Object(i.a)(this,"onProductClick",t=>{this.setState({product:t})}),Object(i.a)(this,"addItem",(t,e=[],o)=>{const i=this,a=this.state.basket;let r=!1,s=o||t.id;if(o&&o.indexOf("_")>-1){const t=o.split("_")[0]+"_"+Math.random().toString(36).substring(7);a[t]=JSON.parse(JSON.stringify(a[o])),r=!0}else 1!=t.type&&2!=t.type&&3!=t.type||(s+="_"+Math.random().toString(36).substring(7)),a[s]?a[s].amount++:(a[s]={},a[s].amount=1,a[s].product=t,a[s].modifiers=e),r=!1;t||(t=a[o]),this.setState({basket:a});let n=0,c=null;r||Object.keys(a).map(t=>{t==s&&(c=n),n++});let l=[];return!e&&r&&(e=JSON.parse(JSON.stringify(a[o].modifiers))),Array.isArray(e)&&e.forEach((t,e)=>{t.product?l.push({ProductID:t.product.id,Quantity:1}):l.push({ProductID:t.id,Quantity:1})}),c+=1,t.serverClone?y.a.post(g.B+"/api/site/cart/addext",{RowID:c,ProductID:t.product.id,Quantity:1}).then(t=>{f.a.cart.get()}).catch(t=>{console.log("---- error ----"),console.log(t)}):y.a.post(g.B+"/api/site/cart/addext",{RowID:c,ProductID:t?t.id:a[o].product.id,Quantity:1,Products:l}).then(t=>{localStorage.setItem(i.state.basketId,JSON.stringify(a))}).catch(t=>{console.log("---- error ----"),console.log(t)}),s}),Object(i.a)(this,"removeItem",(t,e)=>{const o=this;let i=e||t.id;const a=this.state.basket;a[i].amount--,this.setState({basket:a});let r=0,s=!1;Object.keys(a).map(t=>{t==i&&(s=r),r++}),s+=1;const n=a[i].product.id;return 0==a[i].amount&&delete a[i],y.a.post(g.B+"/api/site/cart/addext",{RowID:s,ProductID:n,Quantity:-1}).then(t=>{localStorage.setItem(o.state.basketId,JSON.stringify(a))}).catch(t=>{})}),Object(i.a)(this,"updateBasketElement",(t,e)=>{let o=this.state.basket;o[t].modifiers=e,this.setState({basket:o})}),Object(i.a)(this,"calculateBasketAmount",t=>{if(0===this.state.product.type)return this.state.basket[this.state.product.id]?this.state.basket[this.state.product.id].amount:0;let e=0;for(let o in this.state.basket)(o.indexOf("_")>-1&&o.indexOf(this.state.product.id+"_")>-1||o==this.state.product.id)&&e++;return e}),this.mounted=!0;const o="basket-"+t.user.clientGuid;this.state={isCompact:t.isPhone||x.a&&Object(x.j)().width<=812,basket:t.isAuth&&localStorage.getItem(o)?JSON.parse(localStorage.getItem(o)):{},basketId:o}}componentDidMount(){window.addEventListener("resize",this.onWindowResize),x.a&&this.props.id&&this.reloadContent(this.props,!0),f.a.auth.waitSiteAuth().then(()=>f.a.user.get()).then(()=>f.a.cart.get())}componentWillReceiveProps(t){const e="basket-"+t.user.clientGuid;if(this.setState({basket:t.isAuth&&localStorage.getItem(e)?JSON.parse(localStorage.getItem(e)):{},basketId:e}),!t.isAuth||!t.user||!t.user.clientGuid)return!1;let o=t.isAuth&&t.user&&t.user.clientGuid&&localStorage.getItem(e)?JSON.parse(localStorage.getItem(e)):{};if(t.cart&&t.cart.cart){let i=0,a=0,r=0,s=0,n=0,c=0;Object.keys(o).map(t=>{1===(t=o[t]).product.type&&i++,2===t.product.type&&a++,3===t.product.type&&r++});t.cart.cart.map((t,e)=>{if(1===t.type&&s++,2===t.type&&n++,3===t.type&&c++,(!o[t.productId]||t.quantity!=o[t.productId].amount)&&0===t.type||1===t.type&&s>i||2===t.type&&n>a||3===t.type&&c>r){t.name=t.productName,t.description=t.catalogName,t.id=t.productId;let e=[];
1if(1==t.type){let o=t.catalogName.split(" ");o.splice(o.length-1,1),o.splice(o.length-1,1),o=o.join(" "),e.push({name:o})}else if(2==t.type){var l=", ",d=new RegExp(l,"g");t.catalogName=t.catalogName.replace(d,","),t.catalogName.split(",").map((t,o)=>{t=t.split(" "),e.push({amount:t[1],product:{name:t[0]}})})}else if(3==t.type){l=", ",d=new RegExp(l,"g");t.catalogName=t.catalogName.replace(d,","),t.catalogName.split(",").map((t,o)=>{(t=t.split(" ")).splice(t.length-1,1),t.splice(t.length-1,1),t=t.join(" "),e.push({name:t})})}t.pictureId||t.pictureTime||(t.pictureId=103,t.pictureTime="2020-06-05T21:28:58.757");let i=t.productId;1!=t.type&&2!=t.type&&3!=t.type||(i+="_"+Math.random().toString(36).substring(7)),o[i]={product:t,amount:t.quantity,modifiers:JSON.parse(JSON.stringify(e)),serverClone:!0}}}),(i>s||a>n||r>c)&&(y.a.post(g.B+"/api/site/cart/clear",{}).then(t=>{}).catch(t=>{}),o={}),localStorage.setItem(e,JSON.stringify(o)),this.setState({basketId:e,basket:o})}}componentWillUnmount(){this.mounted=!1,window.removeEventListener("resize",this.onWindowResize)}UNSAFE_componentWillReceiveProps(t){x.a&&this.props.id!==t.id&&!t.action&&this.reloadContent(t)}render(){const{action:t,navigationState:e,fetching:o}=this.props,i=t?t.shops:[],a=t&&t.products?t.products:[];return Object(c.jsx)("div",{id:"account",css:S.container},t?Object(c.jsx)(C.a,{title:t.name,description:t.description,titleTemplate:`${g.J} ${g.K} %s`,openGraph:{title:t.name,description:t.description,images:[{url:f.a.files.pictureUrl(t)}]}}):null,Object(c.jsx)(b.g,{fixed:!0,whiteBordered:!0,isCompact:this.state.isCompact}),Object(c.jsx)(u.Flex,{flexDirection:"column",justifyContent:"space-between",css:I},Object(c.jsx)(u.Box,{flex:1,width:1,pt:120,pb:3},Object(c.jsx)(u.Flex,{flexDirection:"row",justifyContent:"center"},Object(c.jsx)(u.Box,{px:g.P,width:g.Q},o&&!(t||{}).name?Object(c.jsx)(u.Flex,{justifyContent:"center",flexDirection:"column",alignItems:"center",css:S.loader},Object(c.jsx)(p.FadeLoader,{color:h.a.Colors.Red})):null,Object(c.jsx)(u.Flex,{flexDirection:"row"},Object(c.jsx)(u.Box,{width:[1,2/3,.5],mr:[0,3]},Object(c.jsx)(u.Flex,{flexDirection:"column"},Object(c.jsx)(u.Box,{mb:2},e.parents.length>0?Object(c.jsx)(u.Flex,{flexDirection:"row",alignItems:"center"},e.parents.map(t=>Object(c.jsx)(u.Box,{key:"p."+t.id},Object(c.jsx)(u.Flex,{flexDirection:"row",alignItems:"center"},Object(c.jsx)(w.a,{as:"span",category:"link"},Object(c.jsx)(k.a,{linkTo:t.linkTo,prefetch:!1},Object(c.jsx)("a",null,t.caption))),Object(c.jsx)(u.Box,{mx:"6px"},Object(c.jsx)(m.a,null,"/")))))):Object(c.jsx)(u.Flex,{flexDirection:"row",alignItems:"center"},Object(c.jsx)(w.a,{as:"span",category:"link"},Object(c.jsx)(k.a,{href:"/actions"},Object(c.jsx)("a",null,"\u0410\u043a\u0446\u0438\u0438"))),Object(c.jsx)(u.Box,{mx:"6px"},Object(c.jsx)(m.a,null,"/")))),t?Object(c.jsx)(r.a.Fragment,null,this.state.isCompact?Object(c.jsx)(u.Box,{css:S.pictureWrapper,width:1,mb:3},Object(c.jsx)("img",{width:"100%",height:"auto",src:f.a.files.pictureUrl(t),alt:t.name})):null,Object(c.jsx)(u.Box,{width:1,mb:2},Object(c.jsx)(m.a,{category:"h1"},t.name)),t.date||t.dateStart?Object(c.jsx)(u.Box,{width:1,mb:3},Object(c.jsx)(m.a,{category:"subtitle1"},t.date?t.date:t.dateStart?`${this.formatDate(t.dateStart)} - ${this.formatDate(t.dateFinish,"\u221e")}`:"")):null,t.specialConditions?Object(c.jsx)(u.Box,{width:1,mb:3,css:S.specialConditions},Object(c.jsx)(m.a,{category:"subtitle2",color:"inherit"},t.specialConditions)):null,Object(c.jsx)(u.Box,{width:1,mb:2},(t.description||"").split("\n").map((t,e)=>t.length<1?Object(c.jsx)("br",{key:"br."+e}):Object(c.jsx)(m.a,{key:"d.l."+e,category:"subtitle1",css:S.description},Object(c.jsx)(j.a,null,t))),Object(c.jsx)(u.Box,null,Object(c.jsx)(u.Flex,{gap:2,flexDirection:"row",css:N},a.map((t,e)=>Object(c.jsx)(B.a,{key:"p."+t.id,product:t,css:P,customClickEvent:()=>this.onProductClick(t)}))))),t.descriptionUrl?Object(c.jsx)(u.Box,{width:1,mb:2,mt:1},Object(c.jsx)(w.a,{as:"a",href:t.descriptionUrl,target:"_blank",category:"link"},"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435")):null):null,i&&i.length>0&&Object(c.jsx)(u.Box,null,Object(c.jsx)(u.Box,{style:{fontFamily:"Lifehack Sans",fontSize:28,marginBottom:10}},"\u0410\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0430\u043c:"),Object(c.jsx)(u.Flex,{flexDirection:"row",style:{flexWrap:"wrap"}},Object(c.jsx)(u.Box,{width:[1,1,.5]},i.map((t,e)=>{if(e<Math.round(i.length/2))return Object(c.jsx)(R,{shop:t})})),Object(c.jsx)(u.Box,{width:[1,1,.5]},i.map((t,e)=>{if(e>=Math.round(i.length/2))return Object(c.jsx)(R,{shop:t})})))))),this.state.isCompact?null:Object(c.jsx)(u.Box,{css:S.pictureWrapper,flex:1},t?Object(c.jsx)("img",{width:"100%",height:"auto",src:f.a.files.pictureUrl(t),alt:t.name}):null)))),this.state.product?Object(c.jsx)(v.a,{product:this.state.product,isCompact:this.state.isCompact,hideBuyControl
1s:!1,onClose:()=>this.setState({product:null}),onAddItem:this.addItem,onRemoveItem:this.removeItem,onUpdateBasket:this.updateBasketElement.bind(this),basketAmount:this.calculateBasketAmount(),isAuth:this.props.isAuth}):null),Object(c.jsx)(b.c,{mode:"base",isCompact:this.state.isCompact})))}}function R({shop:t,onClick:e}){const{0:o,1:i}=Object(a.useState)(!1);return Object(c.jsx)(u.Flex,{onMouseEnter:()=>{i(!0)},onMouseLeave:()=>i(!1),onClick:()=>window.location.replace("/shops?shopId="+t.id),style:{marginLeft:6,marginBottom:6,cursor:"pointer",backgroundColor:o?"#ddd":"#fff",borderRadius:4}},Object(c.jsx)("img",{style:{width:50,minWidth:50,height:50,borderRadius:4,marginRight:10,objectFit:"cover"},src:f.a.files.pictureUrl(t)+"?size=50x50"}),Object(c.jsx)(u.Box,{style:{fontFamily:"OpenSans-Regular",height:50}},t.name))}var F=Object(d.withRouter)(Object(l.b)((t,e)=>{const{id:o}=e.router.query||{},i=parseInt((o||"").replace(/^\D+/g,""),10)||0;return{navigationState:e.navigationState||Object(x.h)(t.config.navMap,e.router),fetching:!e.action&&(((t.fetching.actions||{})[i]||{}).fetching||!1),action:t.actions.infoMap[i]||e.action||null,id:i,isCompact:!1,user:!!t.user&&t.user.user,isAuth:t.auth.userToken,cart:t.cart}})(D));e.default=F},dk7j:function(t,e,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/actions/[id]",function(){return o("GNm2")}])},sFXj:function(t,e,o){"use strict";o.d(e,"a",(function(){return x}));var i=o("wx14"),a=o("iYmT"),r=o("Ff2n"),s=o("rePB"),n=o("q1tI"),c=o.n(n),l=o("TSYQ"),d=o.n(l),p=o("qKvR"),u=o("gkfb"),h=o("Nlzp"),b=o("Mn/P");c.a.createElement;function m(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function j(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?m(Object(o),!0).forEach((function(e){Object(s.a)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}const g=/\.(mp4|mov|avi|webm|mkv)(\?|$)/i;class x extends c.a.PureComponent{render(){var t,e,o,s,n;const l=this.props,{product:m,className:x,disableHover:f,customClickEvent:O}=l,y=Object(r.a)(l,["product","className","disableHover","customClickEvent"]);return Object(p.jsx)(u.Flex,Object(i.a)({onClick:O},y,{className:d()(x,f?void 0:"with-hover"),width:[.5,200],css:Object(a.a)(j(j({},b.a.newContainer),{},{background:m.pictureV4Id?`url(${h.a.files.pictureUrl(103===m.pictureId?m.pictureV4Id:m.pictureId,m.pictureV4Time)}) center no-repeat`:(k=m.picture,w=null===(t=m.pictures)||void 0===t?void 0:t[1],!k||g.test(k)?`url(${w}) center no-repeat`:`url(${k}) center no-repeat`),backgroundSize:"100% auto",backgroundPosition:"center 0px",backgroundColor:(null===m||void 0===m?void 0:m.catalogColor)||(null===m||void 0===m?void 0:m.color)||"#A6C5E1"}),""),flexDirection:"column",justifyContent:"space-between"}),m?Object(p.jsx)(c.a.Fragment,null,Object(p.jsx)(u.Box,{flex:"1 1 auto"}),Object(p.jsx)(u.Box,{css:b.a.infoBlock},Object(p.jsx)("h4",null,(m.name||"").slice(0,64).trim()),!1,Object(p.jsx)("span",null,(null===(e=m.prices)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.price)||(null===m||void 0===m?void 0:m.price),(!!(null===(s=m.prices)||void 0===s||null===(n=s[0])||void 0===n?void 0:n.price)||!!m.price)&&Object(p.jsx)("i",{className:"currency"},100===Number(m.percentPaidPoint)?"\u0411":"\u20bd")))):null);var k,w}}Object(s.a)(x,"defaultProps",{disableHover:!1})}},[["dk7j",0,2,3,6,8,5,13,1,4,7,9,10,12]]]);

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.