PageSourceSearch

https://ovkuse.ru/_next/static/chunks/pages/recipes/[id]/cooksnaps/[cooksnap]-3d2ed8ab41376030.js

js ovkuse.ru collected 2026-09-24 19:00:45 UTC 28,652 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3878],{10089:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/recipes/[id]/cooksnaps/[cooksnap]",function(){return n(51425)}])},51425:function(e,t,n){"use strict";n.r(t),n.d(t,{PhotocommentReadPage:function(){return eg},__N_SSP:function(){return ep},default:function(){return eC}});var r=n(52322),s=n(77067),o=n(75778),i=n(99352),a=n(8791),l=n(81954),c=n(74451),m=n(76861),d=n(30785),u=n(97729),h=n.n(u),x=n(96577),p=n.n(x),g=n(39097),C=n.n(g),f=n(2784),j=n(38254),v=n(82822),N=n(26772),w=n(40489);let b=e=>{let{recipe:t,classes:n}=e,s=(0,N.x)(),o=()=>s.push("".concat(a._n,"/recipes/").concat(t.urlId,"/cooksnaps"));return(0,r.jsxs)("div",{className:(0,w.Z)("pt-1 px-1.5 pb-0.5 rounded-xl flex flex-col items-center bg-beige cursor-pointer",n),onClick:o,children:[(0,r.jsx)(v.Z,{width:32,height:32,fill:"#FF5F00"}),(0,r.jsx)("span",{className:"pb-[5px] text-xs font-medium text-grafit",children:"Все фотоотзывы"})]})},y=e=>{let{recipe:t,classes:n}=e,s=(0,N.x)(),o=()=>s.push("".concat(a._n,"/recipes/").concat(t.urlId));return(0,r.jsxs)("div",{className:(0,w.Z)("pt-1 px-1.5 pb-0.5 rounded-xl flex flex-col items-center bg-beige cursor-pointer",n),onClick:o,children:[(0,r.jsx)(p(),{src:"/assets/images/recipe.svg",alt:"icon-donate-rouble",unoptimized:!0,width:32,height:32,style:{width:"32px",height:"32px"}}),(0,r.jsx)("span",{className:"pb-[5px] text-xs font-medium text-grafit",children:"Читать рецепт"})]})};var E=n(25677),_=n(28900),k=n(29807),L=n(46246),M=n(23749),I=n(39414);let D=e=>{let{setShowGallery:t,imageSrc:n,uploadType:s}=e,{enableScroll:o}=(0,l.v)(),i=(0,N.x)(),a=(0,f.useCallback)(()=>{t(!1),o()},[t]);return(0,f.useEffect)(()=>{let e=e=>{"Escape"===e.key&&a()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[a]),(0,f.useEffect)(()=>(i.events.on("routeChangeStart",a),()=>{i.events.off("routeChangeStart",a)}),[i]),(0,r.jsxs)("div",{className:"fixed top-0 left-0 bottom-0 right-0 bg-black flex z-40",children:[(0,r.jsx)("div",{className:"max-w-[640px] m-auto",children:(0,r.jsx)(p(),{src:n,alt:"photocomment_image",width:640,height:800,unoptimized:!0,srcset:(0,d.gA)(n,d.bd.comment_gallery,s)})}),(0,r.jsx)("div",{className:"absolute right-4 z-30 bottom-0",children:(0,r.jsx)("div",{className:"absolute bottom-1.5 right-0 cursor-pointer",onClick:a,children:(0,r.jsx)(I.Z,{fill:"#FFFFFF"})})})]})};var S=n(92991),T=n(33903),O=n(6812),F=n(48776),P=n(9774),R=n(53121),A=n(85557),U=n(58310),z=n(20679),H=n(18203),Z=n(5632),B=n(63955),V=n(20418),Y=n(99401),G=n(13736);let X=(e,t,n)=>{var r,s,o,i,a,l,c;return{commentView:Y.x.NESTED,id:"",body:e.body,createdAt:new Date,user:{name:null!==(r=null==t?void 0:t.name)&&void 0!==r?r:"",urlId:null!==(s=null==t?void 0:t.urlId)&&void 0!==s?s:0,imageId:null!==(o=null==t?void 0:t.imageId)&&void 0!==o?o:"",imageExt:null!==(i=null==t?void 0:t.imageExt)&&void 0!==i?i:G.SI.jpg,imageUploadType:null!==(a=null==t?void 0:t.imageUploadType)&&void 0!==a?a:G.bR.CROPPED},parentUser:{name:null!==(l=n.name)&&void 0!==l?l:"",urlId:null!==(c=n.urlId)&&void 0!==c?c:0}}};var q=n(90795);let Q=e=>{var t;let{wrapperClasses:n,parentComment:s,createNestedComment:o,createCommentLoading:i,addFreshComment:a,closeCommentReplyForm:l}=e,c=(0,B.cI)({defaultValues:q.TD,resolver:(0,O.X)(q.ne)}),{appUser:m,appUserStatus:d,handleShowModal:u}=(0,f.useContext)(F.I),[h,x]=(0,f.useState)(!1),p=e=>{if(l(),d===P.Ey.authorized){x(!0);return}e.preventDefault(),u(P.w8.AUTH,{emailScreenVariant:z.N.COMMENT})},g=(0,Z.useRouter)(),C=Number(g.query.id),j=()=>{let e=c.getValues();i||(o({body:e.body,recipeUrlId:C,parentCommentId:s.id,type:H.i.COMMENT}),a(X(e,m,s.user)),c.reset(q.TD))},v=e=>{d!==P.Ey.authorized&&(e.preventDefault(),u(P.w8.AUTH,{emailScreenVariant:z.N.COMMENT}))},N=e=>{d!==P.Ey.authorized&&(e.preventDefault(),u(P.w8.AUTH,{emailScreenVariant:z.N.COMMENT})),l()},w=""!==c.watch("body")&&!(null===(t=c.formState.errors)||void 0===t?void 0:t.body)&&!i;return(0,A.S_)("comment-form-submit-button",w),(0,r.jsxs)("div",{className:["p-4 pt-2.5 bg-beige rounded-b-xl",n].join(" "),children:[(0,r.jsx)(V.Z,{}),(0,r.jsxs)("form",{onSubmit:c.handleSubmit(j),id:"comment-form",className:"mt-[7px] relative",children:[d!==P.
1Ey.authorized&&(0,r.jsx)("div",{className:"absolute top-0 bottom-0 left-0 right-0 bg-transparent z-[1]",onClick:N}),(0,r.jsx)(B.Qr,{name:"body",control:c.control,render:e=>{let{field:{ref:t,...n},fieldState:{error:s}}=e;return(0,r.jsx)(U.g,{...n,classes:"c-comment-form",textareaClasses:h?"min-h-[86px]":"min-h-[47px]",name:"body",placeholder:"Напишите ваш комментарий",error:s&&s.message,onFocus:p,onBlur:()=>{x(!1)},onChange:e=>{if(d!==P.Ey.authorized){e.preventDefault();return}n.onChange(e)}})}})]}),!i&&(0,r.jsx)("div",{className:"relative grow mt-2",children:(0,r.jsx)(R.zx,{orange:!0,name:"submit-comment",classes:"w-full",form:"comment-form",type:"submit",id:"comment-form-submit-button",onClick:v,children:"Добавить комментарий"})})]})};var W=n(36492),K=n(94394),J=n(76699),$=n(69134);let ee=e=>e.deletedAt?Y.x.NESTED_DELETED:Y.x.NESTED,et=(e,t,n)=>({commentView:ee(e),comment:e,id:e.id,body:e.body,createdAt:e.createdAt,user:e.user,urlId:e.urlId,isRecipeAuthor:e.isRecipeAuthor,parentUser:e.parentUser,recipeUrlId:t,withReplyButton:!0,handleClickReply:n}),en=(e,t)=>{var n,r;let s=e=>{C({type:"ADD_NESTED_COMMENT",comment:e})},o=e=>{C({type:"FILL_MORE_COMMENTS",commentList:e})},{fetchCommentReplyList:i,data:l,loading:c}=(0,K.P0)(e,o),{createNestedComment:m,loading:d}=(0,J.Qu)(s),{appUserStatus:u,handleShowModal:h}=(0,f.useContext)(F.I),x={after:"",first:a.qW,commentUrlId:t},p=(e,t)=>{switch(t.type){case"FILL_MORE_COMMENTS":{var n;let r=(0,$.dD)(t.commentList),s=e.nestedCommentList.filter(e=>!r.some(t=>t.id===e.id));return{...e,networkCommentList:r,startCursor:t.commentList.pageInfo.startCursor||"",cursor:t.commentList.pageInfo.endCursor||"",hasNextPage:t.commentList.pageInfo.hasNextPage,networkCommentCount:null!==(n=t.commentList.pageInfo.totalCount)&&void 0!==n?n:0,freshCommentList:[],freshCommentCount:0,nestedCommentList:s,nestedCommentCount:0}}case"ADD_FRESH_COMMENT":return{...e,freshCommentList:[...e.freshCommentList,t.comment],freshCommentCount:e.freshCommentCount+1};case"UPDATE_FRESH_COMMENT_URLID":return e;case"COLLAPSE_COMMENTS":return i(x),{...e,freshCommentCount:0,freshCommentList:[],nestedCommentCount:0,nestedCommentList:[],activeComment:null};case"OPEN_COMMENT_REPLY_FORM":return{...e,activeComment:t.comment};case"CLOSE_COMMENT_REPLY_FORM":return{...e,activeComment:null};case"ADD_NESTED_COMMENT":return{...e,freshCommentList:[],freshCommentCount:0,nestedCommentList:e.nestedCommentList.concat([t.comment]),nestedCommentCount:e.nestedCommentCount+1,activeComment:null}}},[g,C]=(0,f.useReducer)(p,{networkCommentList:(0,$.dD)(l),startCursor:l.pageInfo.startCursor||"",cursor:l.pageInfo.endCursor||"",hasNextPage:!0===l.pageInfo.hasNextPage,networkCommentCount:null!==(r=l.pageInfo.totalCount)&&void 0!==r?r:0,freshCommentList:[],freshCommentCount:0,nestedCommentList:[],nestedCommentCount:0,activeComment:null}),j=()=>{C({type:"COLLAPSE_COMMENTS"})},v=e=>{C({type:"CLOSE_COMMENT_REPLY_FORM"}),m(e)},N=()=>{C({type:"CLOSE_COMMENT_REPLY_FORM"})},w=e=>{C({type:"ADD_FRESH_COMMENT",comment:e})},b=e=>{if(u===P.Ey.authorized){C({type:"OPEN_COMMENT_REPLY_FORM",comment:e}),setTimeout(()=>{(0,A.zT)("comment-reply-form")},100);return}h(P.w8.AUTH,{emailScreenVariant:z.N.COMMENT})},y=()=>{i({after:g.cursor,first:a.p5,commentUrlId:t}),N()},E=(0,f.useMemo)(()=>g.networkCommentCount+g.freshCommentCount+g.nestedCommentCount,[g.networkCommentCount,g.freshCommentCount,g.nestedCommentCount]),_=(0,f.useMemo)(()=>Math.ceil(g.networkCommentCount/a.p5),[g.networkCommentCount]);(0,f.useEffect)(()=>{i(x)},[t]);let k=(e,t)=>{var n;let r=e.id;return t.forEach(t=>{let{id:n,threadRootCommentId:s}=t;s&&(e.id===s||e.threadRootCommentId===s)&&(r=n)}),{lastCommentId:r,threadId:null!==(n=e.threadRootCommentId)&&void 0!==n?n:e.id}};return{widgetState:g,totalCommentCount:E,totalPages:_,fetchMoreComments:y,addFreshComment:w,collapseComments:j,closeCommentReplyForm:N,loading:c,openCommentReplyForm:b,createNestedComment:v,nestedCommentLoading:d,lastCommentInThread:k}},er=e=>{let{widgetClasses:t,commentReplyList:n,parentComment:s}=e,{widgetState:o,totalCommentCount:a,totalPages:l,fetchMoreComments:c,addFreshComment:m,collapseComments:d,closeCommentReplyForm:u,loading:h,openCommentReplyForm:x,createNestedComment:g,nestedCommentLoading:C,lastCommentInThread:f}=en(n,s.urlId);return(0,r.jsxs)("section",{className:["c-section c-no-select",0===a?"bg-beige":"bg-white"].join(" "),children:[(0,r.jsx)("div",{className:["text-xl text-grafit font-semibold",t].join(" "),children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(p(),{src:"/assets/images/icon-message.svg",alt:"comments-icon",width:32,height:32}),(0,r.jsxs)("div",{className:"flex ml-1 py-1",children:["Комментарии\xa0",0!==a&&(0,r.jsx)("span",{itemProp:"c
1ommentCount",className:"text-grafit-light font-normal",children:a})]})]})}),(0,r.jsxs)(r.Fragment,{children:[0===a&&(0,r.jsx)(S.a,{}),o.networkCommentList.map((e,t)=>{let{threadId:n,lastCommentId:a}=f(e,o.networkCommentList),l=e.id===a&&o.activeComment&&(n===o.activeComment.threadRootCommentId||n===o.activeComment.id);return(0,r.jsxs)("div",{children:[(0,r.jsx)(i.s,{...et(e,s.recipe.urlId,x),withMicrodata:!1}),o.nestedCommentList.map(t=>a===e.id&&n===t.threadRootCommentId&&(0,r.jsx)(i.s,{...et(t,s.recipe.urlId,x),withMicrodata:!1},"nested-comment-".concat(t.urlId))),l&&(0,r.jsx)(T.G,{wrapperClasses:"-mx-4 rounded-b-none",parentComment:o.activeComment,createComment:g,loading:C,onClose:u,recipeUrlId:s.recipe.urlId})]},"comment-index-".concat(t))}),h&&(0,r.jsx)(W.p,{fullScreen:!1}),o.hasNextPage&&!h&&(0,r.jsx)("div",{className:"mt-4 pt-1 pb-1.5 text-base font-medium text-orange border-orange cursor-pointer c-button c-no-select",onClick:c,children:"Посмотреть еще комментарии"}),!o.hasNextPage&&l>1&&!h&&(0,r.jsx)("div",{className:"mt-4 pt-1 pb-1.5 text-base font-medium text-orange border-orange cursor-pointer c-button c-no-select",onClick:d,children:"Свернуть комментарии"}),0===o.networkCommentList.length&&o.nestedCommentList.map(e=>(0,r.jsx)(i.s,{...et(e,s.recipe.urlId,x),withMicrodata:!1},"nested-comment-".concat(e.urlId))),o.activeComment&&0===o.networkCommentList.length&&(0,r.jsx)(T.G,{wrapperClasses:"-mx-4 rounded-b-none",parentComment:o.activeComment,createComment:g,loading:C,onClose:u,recipeUrlId:s.recipe.urlId}),o.freshCommentList.map(e=>(0,r.jsx)(i.s,{...e,withMicrodata:!1})),(0,r.jsx)(Q,{wrapperClasses:["-mx-4 -mb-4",o.activeComment&&!(o.hasNextPage||!o.hasNextPage&&l>1)?"":"mt-4"].join(" "),addFreshComment:m,createNestedComment:g,createCommentLoading:C,parentComment:s,closeCommentReplyForm:u})]})]})};var es=n(54943),eo=n(53833),ei=n(30480),ea=n(44514),el=n(348),ec=n(77034);let em=e=>{let[t,n]=(0,f.useState)(e.reactions),{userReaction:s,setUserReaction:o}=(0,es.Y)(e.commentUrlId),{createReaction:i}=(0,eo.U)(),a=(0,f.useMemo)(()=>t?(0,ei.pB)(t):0,[t]),l=(0,f.useMemo)(()=>s?"Спасибо за эмоцию! Вы порадовали автора!":e.reactions&&0===(0,ei.pB)(e.reactions)?"Подарите автору первую эмоцию!":(0,ei.pB)(e.reactions)>0?"Подарите автору эмоцию!":void 0,[s,e.reactions]);(0,f.useEffect)(()=>{e.reactions&&(n(e.reactions),0===(0,ei.pB)(e.reactions)&&o(null))},[e.reactions]);let c=r=>{let a=ec.l[s];n(s?{...t,[s]:Math.max(t[s]-1,0),[r]:t[r]+1}:{...t,[r]:t[r]+1}),o(r),i(e.commentUrlId,r,null!=a?a:null)};return(0,r.jsxs)("section",{className:"c-section bg-beige",id:"reactions-section",children:[(0,r.jsxs)("div",{className:"flex flex-row justify-start gap-x-1 mb-2",children:[(0,r.jsx)(ea.Z,{className:"fill-grafit-light"}),(0,r.jsxs)("h2",{className:"text-xl font-semibold text-grafit py-1",children:["Эмоции к фотоотзыву",0!==a&&(0,r.jsx)("span",{className:"font-normal",children:" ".concat(a)})]})]}),(0,r.jsx)("div",{className:["text-sm font-normal pt-1 pb-1.5 h-7",s?"text-orange-light":"text-grafit"].join(" "),children:l}),(0,r.jsx)("div",{className:"flex flex-row gap-x-4",children:[ec.l.TASTY,ec.l.MASTERWORK,ec.l.WILL_COOK,ec.l.LOVE].map(e=>(0,r.jsx)(el.UG,{type:e,activeReaction:s,reactionQuantity:t[e],displayCount:0!==a,saveReaction:c},"reaction-".concat(e)))})]})},ed=(e,t,n)=>e&&n?"Фотоотзыв ".concat(n>1?"1 из ".concat(n):""," оставил ").concat(t," к рецепту ").concat(e).replace(/\s\s+/g," "):null,eu=(e,t)=>e&&t?"".concat(e," прокомментировал(а) ").concat(t).replace(/\s\s+/g," "):null,eh=e=>({commentView:Y.x.PHOTOCOMMENT_PAGE,id:e.id,body:e.body,createdAt:e.createdAt,user:e.user}),ex=e=>{let{photocomment:t,commentReplyList:n,breadcrumbList:u,randomSeed:x}=e,[g,v]=(0,f.useState)(null),[N,w]=(0,f.useState)(!1),{disableScroll:I}=(0,l.v)(),S=(0,s.Qu)(t),T="".concat(a._O,"/recipes/").concat(t.recipe.urlId,"/cooksnaps/").concat(t.urlId);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h(),{children:[(0,r.jsx)("title",{children:ed(t.recipe.title,t.user.name,t.totalPhotoComments)||"Ovkuse.ru"}),(0,r.jsx)("meta",{name:"description",content:eu(t.user.name,t.body)||"Вдохновляйтесь готовить с помощью Овкусе.ру"},"description"),(0,r.jsx)("meta",{property:"og:image",content:S}),(0,r.jsx)("meta",{property:"twitter:image",content:S}
1),(0,r.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,r.jsx)("meta",{property:"og:image:height",content:"630"}),(0,r.jsx)("meta",{property:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("link",{rel:"canonical",href:"".concat(a._n,"/recipes/").concat(t.recipe.urlId)})]}),(0,r.jsx)(j.e,{}),u.length>0&&(0,r.jsx)(o.i,{breadcrumbs:u}),(0,r.jsxs)("section",{className:"c-section-top pt-0 relative z-[2] shadow-section",children:[(0,r.jsxs)("div",{className:"c-square flex justify-center -mx-4",children:[(0,r.jsx)(c.D,{}),(0,r.jsx)("div",{className:"w-full h-full max-w-square relative",children:(0,r.jsx)(m.g,{imgClasses:"object-cover object-center cursor-pointer",src:S,alt:t.recipe.title,fill:!0,width:420,height:420,srcset:(0,d.gA)(S,d.bd.comment_main,t.imageUploadType),unoptimized:!0,itemProp:"image",onClick:()=>{I(),w(!0)}})})]}),(0,r.jsxs)("h1",{children:[(0,r.jsxs)("div",{className:["my-2 flex",u.length>0?"mt-2":"mt-4"].join(" "),children:[(0,r.jsx)(p(),{src:"/assets/images/icon-photocomment-gray.svg",alt:"",width:32,height:32}),(0,r.jsxs)("div",{className:"ml-1 py-1 text-xl",children:[(0,r.jsx)("span",{className:"font-semibold text-grafit",children:"Фотоотзыв"}),t.totalPhotoComments>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-grafit-light",children:" 1 из "}),(0,r.jsx)(C(),{href:"/recipes/".concat(t.recipe.urlId,"/cooksnaps/"),className:"text-orange-light",children:t.totalPhotoComments})]})]})]}),(0,r.jsx)(C(),{href:"/recipes/".concat(t.recipe.urlId),className:"pt-[3px] pb-[5px] text-2xl font-semibold text-orange-light",children:t.recipe.title})]}),(0,r.jsx)(i.s,{...eh(t),withMicrodata:!1})]}),(0,r.jsxs)("section",{className:"overflow-visible bg-white flex flex-col rounded-xl p-4 gap-2 relative z-[2]",children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(b,{recipe:null==t?void 0:t.recipe,classes:"w-1/2"}),(0,r.jsx)(y,{recipe:null==t?void 0:t.recipe,classes:"w-1/2"})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(E.H,{recipe:null==t?void 0:t.recipe,classes:"w-1/2"}),(0,r.jsx)(_.T,{sharedOgImageUrl:S,sharedUrl:T,classes:"w-1/2"})]})]}),(0,r.jsxs)("div",{className:"mt-[8px] bg-beige p-4 flex flex-col items-center justify-center rounded-[12px] shadow-section text-center overflow-hidden",children:[(0,r.jsx)("div",{className:"text-base leading-[22px] font-medium text-grafit",children:"Наши советы!"}),(0,r.jsx)(L.B,{items:M.y,randomSeed:x})]}),(0,r.jsx)(em,{reactions:t.reactionsSummary,commentUrlId:t.urlId}),(0,r.jsx)(er,{commentReplyList:n,parentComment:{id:t.id,urlId:t.urlId,user:t.user,recipe:t.recipe}}),null!==g&&(0,r.jsx)(k.R,{images:[{url:S}],startIndex:g,setStartIndex:v}),N&&(0,r.jsx)(D,{setShowGallery:w,imageSrc:S,uploadType:t.imageUploadType})]})};var ep=!0;let eg=e=>(0,r.jsx)(ex,{...e});var eC=eg},88759:function(e,t,n){"use strict";n.d(t,{a:function(){return m}});var r=n(52322),s=n(48776),o=n(77515),i=n(63338),a=n(39097),l=n.n(a),c=n(2784);let m=e=>{let{title:t,href:n,linkToSearch:a,withNextArrow:m}=e,{handleYmTarget:d}=(0,c.useContext)(s.I);if(!t)return null;let u=e=>{a&&(e.preventDefault(),window&&(d("click_on_breadCrumbs_viewRecipePage"),(0,o.X)(n)))};return(0,r.jsxs)(l(),{href:a?(0,o.A)(n):n,className:"py-0.5 shrink-0 flex flex-row items-center",onClick:u,children:[(0,r.jsx)("span",{className:"text-sm font-medium text-orange-light",children:t}),m&&(0,r.jsx)(i.Z,{className:"ml-1 mr-1"})]})}},72348:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(52322),s=n(77515);let o=e=>{let{title:t,href:n,position:o}=e,i=(0,s.A)(n);return t?(0,r.jsxs)("a",{className:"hidden h-0",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",href:i,children:[(0,r.jsx)("meta",{itemProp:"item",content:i}),(0,r.jsx)("meta",{itemProp:"name",content:t}),(0,r.jsx)("meta",{itemProp:"position",content:"".concat(o)}),t]}):null}},89006:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var r=n(52322);let s=e=>{let t,{url:n}=e;if("string"!=typeof n)return null;let s=0===n.indexOf("ovkuse.ru")||0===n.indexOf("blog.ovkuse.ru")?"https://"+n:n;try{t=decodeURI(n)}catch(o){t=n}return(0,r.jsx)("a",{href:s,className:"text-orange-light",children:t})},o=e=>
1{let{input:t}=e;if(!t)return null;let n=/(?:https?:\/\/)?(?:blog\.)?ovkuse\.ru(?:\/[^\s,.():]+)?/g,o=t.match(n);if(!o)return(0,r.jsx)(r.Fragment,{children:t});let i=t.split(n).flatMap((e,t)=>[e,o[t]&&(0,r.jsx)(s,{url:o[t]},t)].filter(Boolean));return(0,r.jsx)(r.Fragment,{children:[...i]})}},16399:function(e,t,n){"use strict";n.d(t,{O:function(){return m}});var r=n(52322),s=n(48776),o=n(96577),i=n.n(o),a=n(39097),l=n.n(a),c=n(2784);let m=()=>{let{handleYmTarget:e}=(0,c.useContext)(s.I);return(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsxs)(l(),{href:"/",className:"flex items-center",children:[(0,r.jsx)(i(),{src:"/assets/images/avatar_non_auth.png",alt:"avatar",width:56,height:60,style:{width:56,height:60},unoptimized:!0}),(0,r.jsx)(i(),{src:"/assets/images/logo-letters.png",alt:"logo-text",width:144,height:26,className:"ml-[5px] mt-[6px]",style:{width:"144px",height:"26px"},unoptimized:!0})]}),(0,r.jsx)(l(),{href:"https://blog.ovkuse.ru/super-sila",onClick:()=>e("click_onPremium_closeToLogo"),children:(0,r.jsx)(i(),{src:"/assets/images/logo-premium.png",alt:"logo-premium",width:97,height:23,style:{width:"97px",height:"23px"},className:"ml-1 mt-[7.31px]",unoptimized:!0})})]})}},63338:function(e,t,n){"use strict";var r,s=n(52322);n(2784);let o=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"24",viewBox:"0 0 14 24",fill:null!==(r=null==e?void 0:e.fill)&&void 0!==r?r:"#EEEAE9",...e,children:(0,s.jsx)("path",{d:"M3.42732 18.9368C3.24274 18.9357 3.0626 18.8801 2.9095 18.777C2.75639 18.6739 2.63713 18.5279 2.56665 18.3573C2.49617 18.1867 2.4776 17.9991 2.5133 17.818C2.549 17.6369 2.63737 17.4704 2.76731 17.3393L8.09232 12.0143L2.76731 6.68933C2.60713 6.51118 2.52123 6.27846 2.52724 6.03896C2.53326 5.79946 2.63073 5.57135 2.79966 5.40146C2.96858 5.23158 3.19614 5.13282 3.4356 5.12544C3.67507 5.11807 3.90827 5.20265 4.08732 5.36182L10.0873 11.3618C10.2619 11.5405 10.3613 11.7795 10.3648 12.0293C10.3625 12.2772 10.2628 12.5142 10.0873 12.6893L4.08732 18.6893C3.90832 18.8552 3.67127 18.9441 3.42732 18.9368Z",fill:"#EEEAE9"})});t.Z=o},82822:function(e,t,n){"use strict";var r=n(52322);n(2784);let s=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 20 20",fill:"none",...e,children:(0,r.jsx)("path",{d:"M15.1938 6.5875H13.8438C13.7161 6.58792 13.5913 6.54921 13.4863 6.47657C13.3812 6.40394 13.3009 6.30088 13.2563 6.18125L12.7813 4.8875C12.7263 4.73759 12.6268 4.60811 12.4961 4.51648C12.3653 4.42485 12.2097 4.37547 12.05 4.375H8.2125C8.05285 4.37547 7.89718 4.42485 7.76644 4.51648C7.6357 4.60811 7.53617 4.73759 7.48125 4.8875L7.00625 6.18125C6.96156 6.30088 6.88129 6.40394 6.77626 6.47657C6.67122 6.54921 6.54645 6.58792 6.41875 6.5875H5.06875C4.719 6.5875 4.38357 6.72644 4.13626 6.97375C3.88894 7.22107 3.75 7.5565 3.75 7.90625V14C3.75 14.1729 3.78416 14.3441 3.85051 14.5037C3.91686 14.6634 4.01409 14.8083 4.13663 14.9303C4.25917 15.0523 4.4046 15.1488 4.56456 15.2144C4.72452 15.28 4.89587 15.3133 5.06875 15.3125H15.1938C15.3666 15.3133 15.538 15.28 15.6979 15.2144C15.8579 15.1488 16.0033 15.0523 16.1259 14.9303C16.2484 14.8083 16.3457 14.6634 16.412 14.5037C16.4784 14.3441 16.5125 14.1729 16.5125 14V7.90625C16.5125 7.5565 16.3736 7.22107 16.1263 6.97375C15.8789 6.72644 15.5435 6.5875 15.1938 6.5875ZM12.7313 10.8L10.4875 13.0625C10.4519 13.0996 10.4092 13.129 10.362 13.1492C10.3147 13.1693 10.2639 13.1797 10.2125 13.1797C10.1611 13.1797 10.1103 13.1693 10.063 13.1492C10.0158 13.129 9.97308 13.0996 9.93751 13.0625L8.9375 12.0687L7.6875 10.8187C7.4242 10.5327 7.28279 10.1553 7.29329 9.76671C7.30379 9.3781 7.46539 9.00888 7.74375 8.7375C8.01799 8.46459 8.38813 8.30981 8.77501 8.30625C9.16401 8.30279 9.53963 8.44812 9.825 8.7125L10.2313 9.11875L10.6375 8.7C10.9187 8.41948 11.2997 8.26195 11.6969 8.26195C12.0941 8.26195 12.4751 8.41948 12.7563 8.7C13.0356 8.98321 13.1927 9.36471 13.1938 9.76251C13.1816 10.1556 13.0155 10.5282 12.7313 10.8Z"})});t.Z=s},28900:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var r=n(52322),s=n(40489),o=n(45847),i=n.n(o),a=n(2784);let l=e=>{let{sharedOgImageUrl:t,sharedUrl:n,classes:o,variant:l,scriptStrategy:c}=e,[m,d]=(0,a.useState)(!1),[u,h]=(0,a.useState)(null),x=(0,a.useRef)(null);return(0,a.useEffect)(()=>
1{if(m){if(window.Ya&&0===x.current.childElementCount){let e=window.Ya.share2("ya",{theme:{shape:"round",limit:"0",moreButtonType:"long",services:"telegram,whatsapp,vkontakte,odnoklassniki",copy:"last",popupPosition:"inner",popupDirection:"top",useLinks:!1},content:{url:n,description:"",title:"",image:t}});h(e)}else u&&u.updateContent({url:n,description:"",title:"",image:t})}},[n,t,m]),(0,r.jsxs)("div",{className:(0,s.Z)("relative cursor-pointer rounded-xl bg-beige",o),id:"share-container",children:[(0,r.jsx)(i(),{src:"https://yastatic.net/share2/share.js",defer:!0,strategy:c||"lazyOnload",onReady:()=>{d(!0)}}),l&&"horizontal"===l?(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n            .ya-share2__link_more {\n              flex-direction: row !important;\n            }\n            .ya-share2__link.ya-share2__link_more .ya-share2__title {\n              color: #4a4a4a !important;\n              font-family: "Noto Sans" !important;\n              font-size: 16px !important;\n              font-style: normal !important;\n              font-weight: 500 !important;\n              line-height: 22px !important;\n              padding-top: 4px !important;\n              padding-bottom: 6px !important;\n            }\n          '}}):null,(0,r.jsx)("div",{className:"w-full pt-1 px-1.5 pb-0.5 rounded-xl flex flex-col items-center h-full z-10",id:"ya",ref:x})]})}},23749:function(e,t,n){"use strict";n.d(t,{Oj:function(){return s},Sy:function(){return i},y:function(){return o}});var r=n(52322);let s=[{icon:"✍️",children:(0,r.jsx)(r.Fragment,{children:"Пишите рецепты на Овкусе, чтобы они всегда были под рукой. Готовьте по ним вновь и вновь!"})},{icon:"\uD83C\uDF93",children:(0,r.jsxs)(r.Fragment,{children:["Прокачайте свои умения в"," ",(0,r.jsx)("a",{href:"https://blog.ovkuse.ru/online",target:"_blank",rel:"noopener noreferrer",className:"text-orange-light",children:"кулинарной школе Овкусе"}),"."]})},{icon:"\uD83D\uDCF8",children:(0,r.jsx)(r.Fragment,{children:"Добавляйте фотоотзывы, когда готовите по рецептам других авторов."})},{icon:"\uD83D\uDC40",children:(0,r.jsxs)(r.Fragment,{children:["Публикуйте рецепты на"," ",(0,r.jsx)("a",{href:"https://ovkuse.ru/create",target:"_blank",rel:"noopener noreferrer",className:"text-orange-light",children:"темы, которые ищут люди."})]})},{icon:"❤️",children:(0,r.jsx)(r.Fragment,{children:"Поделитесь рецептом в социальных сетях."})},{icon:"\uD83D\uDD01",children:(0,r.jsx)(r.Fragment,{children:"Сортируйте свои и чужие рецепты по папкам, добавляя рецепты в закладки."})},{icon:"⭐️",children:(0,r.jsx)(r.Fragment,{children:"Хотите, чтоб ваши рецепты попадали в коллекции и рассылки? Пишите рецепты подробно, с фото в шагах."})},{icon:"\uD83D\uDC4D",children:(0,r.jsxs)(r.Fragment,{children:["Подпишитесь на нас"," ",(0,r.jsx)("a",{href:"https://blog.ovkuse.ru/social-groups",target:"_blank",rel:"noopener noreferrer",className:"text-orange-light",children:"в социальных сетях"}),"."]})}],o=[{icon:"\uD83D\uDCF8",children:(0,r.jsx)(r.Fragment,{children:"Приобретите привычку добавлять фотоотзыв, если приготовили блюдо"})},{icon:"❤️",children:(0,r.jsx)(r.Fragment,{children:"Фотоотзыв докаÐ
1·Ñ‹Ð²Ð°ÐµÑ‚, что блюдо точно готовили"})},{icon:"\uD83C\uDF93",children:(0,r.jsxs)(r.Fragment,{children:["Прокачайте свои умения в"," ",(0,r.jsx)("a",{href:"https://blog.ovkuse.ru/online",target:"_blank",rel:"noopener noreferrer",className:"text-orange-light",children:"кулинарной школе Овкусе."})]})},{icon:"✍️",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("a",{href:"https://ovkuse.ru/create",target:"_blank",rel:"noopener noreferrer",className:"text-orange-light",children:"Напишите рецепты на Овкусе,"})," ","чтобы они всегда были под рукой. Готовьте по ним вновь и вновь!"]})},{icon:"\uD83D\uDC40",children:(0,r.jsxs)(r.Fragment,{children:["Публикуйте рецепты на"," ",(0,r.jsx)("a",{href:"https://ovkuse.ru/create",target:"_blank",rel:"noopener noreferrer",className:"text-orange-light",children:"темы, которые ищут люди."})]})},{icon:"\uD83D\uDC4D",children:(0,r.jsxs)(r.Fragment,{children:["Подпишитесь на нас в"," ",(0,r.jsx)("a",{href:"https://blog.ovkuse.ru/social-groups",target:"_blank",rel:"noopener noreferrer",className:"text-orange-light",children:"социальных сетях"})]})}],i=(e,t)=>{if(t){var n;let r=(n=t,()=>(n=(9301*n+49297)%233280)/233280),s=[...e];for(let o=s.length-1;o>0;o--){let i=Math.floor(r()*(o+1));[s[o],s[i]]=[s[i],s[o]]}return s}let a=[...e];for(let l=a.length-1;l>0;l--){let c=Math.floor(Math.random()*(l+1));[a[l],a[c]]=[a[c],a[l]]}return a}},46246:function(e,t,n){"use strict";n.d(t,{B:function(){return c},Z:function(){return m}});var r=n(52322),s=n(81255),o=n(2784),i=n(7702),a=n(23749),l=function(e){let{icon:t,children:n}=e;return(0,r.jsxs)("div",{className:"py-2 px-2 flex flex-col w-[133px] h-[194px] bg-white rounded-[12px] shadow-section text-left cursor-grab ",children:[(0,r.jsx)("div",{className:"text-2xl text-orange-light",children:t}),(0,r.jsx)("div",{className:"text-sm text-grafit-light mt-1",children:n})]})};function c(e){let{items:t,randomSeed:n}=e,c=(0,o.useMemo)(()=>(0,a.Sy)(t,n),[]);return(0,r.jsx)(s.o,{classes:"pc-swiper mt-2 h-[226px]",swiperStyle:{"--swiper-pagination-bullet-inactive-color":"#CECECD"},children:c.map(e=>(0,r.jsx)(i.o5,{className:"!w-[133px] !h-[194px]",children:(0,r.jsx)(l,{icon:e.icon,children:e.children})},e.icon))})}var m=c},74451:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(52322),s=n(48776),o=n(2784);let i=e=>{let{src:t,className:n}=e,{isWide:i}=(0,o.useContext)(s.I);return i?(0,r.jsx)("div",{className:["w-full h-full",n].join(" "),style:{backgroundImage:'url("'.concat(t||"/assets/images/photo-bg.svg",'")')}}):null}}},function(e){e.O(0,[6433,9774,2888,179],function(){return e(e.s=10089)}),_N_E=e.O()}]);

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.