1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9115],{28212:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/users/[id]/recipe",function(){return a(92965)}])},92965:function(e,s,a){"use strict";a.r(s),a.d(s,{RecipeProfilePage:function(){return k},__N_SSP:function(){return I},default:function(){return C}});var l=a(52322),t=a(36492),r=a(14222),i=a(61499),c=a(80721),n=a(2784);let d=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"dish_svg__\\u0421\\u043B\\u043E\\u0439_1","data-name":"\\u0421\\u043B\\u043E\\u0439 1",viewBox:"0 0 529.65 264.23",...e,children:[(0,l.jsx)("defs",{children:(0,l.jsx)("style",{children:".dish_svg__cls-1{fill:#fff}.dish_svg__cls-2{fill:none;stroke:#bfc0c0;stroke-linecap:round;stroke-linejoin:round;stroke-width:11px}.dish_svg__cls-3{fill:#e8e8e8}"})}),(0,l.jsx)("path",{d:"M446.43 68.12a29.25 29.25 0 0 0-19.52-19.53 29.25 29.25 0 0 0 19.52-19.53A29.29 29.29 0 0 0 466 48.59a29.29 29.29 0 0 0-19.53 19.53",className:"dish_svg__cls-1"}),(0,l.jsx)("path",{d:"M446.43 68.12a29.25 29.25 0 0 0-19.52-19.53 29.25 29.25 0 0 0 19.52-19.53A29.29 29.29 0 0 0 466 48.59a29.29 29.29 0 0 0-19.57 19.53Z",className:"dish_svg__cls-2"}),(0,l.jsx)("path",{d:"M481 174.88a51.77 51.77 0 0 0-34.54-34.54A51.77 51.77 0 0 0 481 105.8a51.81 51.81 0 0 0 34.54 34.54A51.81 51.81 0 0 0 481 174.88",className:"dish_svg__cls-1"}),(0,l.jsx)("path",{d:"M481 174.88a51.77 51.77 0 0 0-34.54-34.54A51.77 51.77 0 0 0 481 105.8a51.81 51.81 0 0 0 34.54 34.54A51.81 51.81 0 0 0 481 174.88Z",className:"dish_svg__cls-2"}),(0,l.jsx)("path",{d:"M48.45 174.88a51.77 51.77 0 0 0-34.54-34.54 51.77 51.77 0 0 0 34.54-34.54A51.81 51.81 0 0 0 83 140.34a51.81 51.81 0 0 0-34.54 34.54",className:"dish_svg__cls-1"}),(0,l.jsx)("path",{d:"M48.45 174.88a51.77 51.77 0 0 0-34.54-34.54 51.77 51.77 0 0 0 34.54-34.54A51.81 51.81 0 0 0 83 140.34a51.81 51.81 0 0 0-34.55 34.54Z",className:"dish_svg__cls-2"}),(0,l.jsx)("path",{d:"M425.89 198.62a29.26 29.26 0 0 0 19.52 19.52 29.27 29.27 0 0 0-19.52 19.53 29.31 29.31 0 0 0-19.53-19.53 29.29 29.29 0 0 0 19.53-19.52",className:"dish_svg__cls-1"}),(0,l.jsx)("path",{d:"M425.89 198.62a29.26 29.26 0 0 0 19.52 19.52 29.27 29.27 0 0 0-19.52 19.53 29.31 29.31 0 0 0-19.53-19.53 29.29 29.29 0 0 0 19.53-19.52Z",className:"dish_svg__cls-2"}),(0,l.jsx)("path",{d:"M62.45 48.59A29.27 29.27 0 0 0 82 29.06a29.29 29.29 0 0 0 19.5 19.53A29.29 29.29 0 0 0 82 68.12a29.27 29.27 0 0 0-19.55-19.53",className:"dish_svg__cls-1"}),(0,l.jsx)("path",{d:"M62.45 48.59A29.27 29.27 0 0 0 82 29.06a29.29 29.29 0 0 0 19.5 19.53A29.29 29.29 0 0 0 82 68.12a29.27 29.27 0 0 0-19.55-19.53Z",className:"dish_svg__cls-2"}),(0,l.jsx)("path",{d:"M122.05 218.14a29.29 29.29 0 0 0-19.53 19.53A29.29 29.29 0 0 0 83 218.14a29.27 29.27 0 0 0 19.53-19.52 29.27 29.27 0 0 0 19.53 19.52",className:"dish_svg__cls-1"}),(0,l.jsx)("path",{d:"M122.05 218.14a29.29 29.29 0 0 0-19.53 19.53A29.29 29.29 0 0 0 83 218.14a29.27 29.27 0 0 0 19.53-19.52 29.27 29.27 0 0 0 19.52 19.52Z",className:"dish_svg__cls-2"}),(0,l.jsx)("ellipse",{cx:247.48,cy:80.34,className:"dish_svg__cls-2",rx:141.38,ry:34.91,transform:"rotate(-15 247.48 80.337)"}),(0,l.jsx)("path",{d:"M256.51 114.06c36.45-9.77 68.61-22.16 91.56-34.47-15-6.74-54.38-4-98.69 7.86S169.58 116.66 160 130c26-.82 60.09-6.16 96.53-15.93",className:"dish_svg__cls-3"}),(0,l.jsx)("path",{d:"M256.51 114.06c36.45-9.77 68.61-22.16 91.56-34.47-15-6.74-54.38-4-98.69 7.86S169.58 116.66 160 130c26-.83 60.07-6.17 96.51-15.94Z",style:{strokeMiterlimit:10,strokeWidth:11,fill:"none",stroke:"#bfc0c0"}}),(0,l.jsx)("path",{d:"M110.91 116.93c14.28 53.29 53 92.95 99.19 108.32l.88 3.29c4.45 16.62 38.45 16.15 77.71 5.63s68.95-27.12 64.5-43.73l-.89-3.29c32.32-36.41 46-90.11 31.74-143.4",className:"dish_svg__cls-2"}),(0,l.jsx)("path",{d:"M239.17 186.39c1.56 5.84-3.39 12.24-11 14.29s-15.15-1-16.72-6.85 3.39-12.23 11-14.28 15.15 1 16.72 6.84M335.46 160.59c1.57 5.84-3.38 12.23-11 14.29s-15.14-1-16.71-6.85 3.38-12.23 11.05-14.29 15.15 1 16.71 6.85",className:"dish_svg__cls-3"}),(0,l.jsx)("path",{d:"M216 168.36a20.56 20.56 0 0 1 34.32-16M281 144.11a20.56 20.56 0 0 1 9.95-11.85 20.56 20.56 0 0 1 27.78 8.55",className:"dish_svg__cls-2"}),(0,l.jsx)("path",{d:"M271.28 169.19c-23.24 6.23-18.7 15.48-15.13 18.67a23.25 23.25 0 0 0 37.57-10.06c1.5-4.55.81-14.84-22.44-8.61",style:{fill:"#bfc0c0"}}),(0,l.jsx)("path",{d:"M271.28 169.19c-23.24 6.23-18.7 15.48-15.13 18.67a23.25 23.25 0 0 0 37.57-10.06c1.5-4.55.81-14.8-22.44-8.61Z",style:{strokeWidth:9,strokeLinecap:"round",strokeLinejoin:"round",fill:"none",stroke:"#bfc0c0"}})]});var o=a(39097),u=a.n(o);let h=()=>(0,l.jsxs)("div",{className:"w-full h-full flex flex-col justify-start items-center",children:[(0,l.jsx)("div",{className:"w-[156px] h-[81px]",children:(0,l.jsx)(d,{})}),(0,l.jsx)("div",{className:"py-2.5 text-center text-base font-medium text-grafit",children:"ÐпÑбликÑйÑе\xa0Ñвой\xa0пеÑвÑй\xa0ÑеÑепÑ\xa0ÑегоднÑ!"}),(0,l.jsxs)("div",{className:"text-center text-sm font-normal text-grafit mb-4 max-w-[280px]",children:["ÐиÑиÑе лиÑнÑÑ ÐºÑлинаÑнÑÑ ÐºÐ½Ð¸Ð³Ñ, делиÑеÑÑ\xa0Ñвоим\xa0опÑÑом",(0,l.jsx)("br",{}),"Ñ\xa0СообÑеÑÑвом."]}),(0,l.jsx)(c.R,{classes:"w-full mb-4 py-1.5 pl-2.5 pr-4"}),(0,l.jsx)(u(),{href:"https://blog.ovkuse.ru/emails/welcome",children:(0,l.jsx)("div",{className:"pt-1 pb-1.5 text-center text-sm font-medium text-orange-light max-w-[240px]",children:"ÐÑполÑзÑйÑе ÐвкÑÑе.ÑÑ Ð½Ð° 100%, поÑмоÑÑиÑе\xa0ÑеннÑе\xa0подÑказки"})})]});var x=a(8791);let p=()=>(0,l.jsxs)("div",{className:"w-full h-full flex flex-col justify-start items-center mt-6",children:[(0,l.jsx)("div",{className:"w-[156px] h-[81px]",children:(0,l.jsx)(d,{})}),(0,l.jsxs)("div",{className:"max-w-[192px]",children:[(0,l.jsx)("div",{className:"py-[5px] text-center text-base font-medium text-grafit mb-6",children:"УÑаÑÑник еÑÑ Ð½Ðµ\xa0опÑбликовал\xa0ÑеÑепÑÑ"}),(0,l.jsx)(u(),{href:"".concat(x._n),children:(0,l.jsx)("div",{className:"pt-1 pb-1.5 text-center text-sm font-medium text-orange-light",children:"ÐайÑи вдоÑ
новение Ñ Ð½Ð°ÑиÑ
лÑбимÑÑ
авÑоÑов"})})]})]});var _=a(93342),m=a(48776),f=a(9774),v=a(13850),g=a(45942),j=a(77067),y=a(26772),N=a(47854),E=a(92642),w=a(74807);let M=e=>{var s;let{redirectWithYm:a}=(0,n.useContext)(m.I),l=(0,y.x)(),{appUser:t,handleShowModal:r}=(0,n.useContext)(m.I),{page:i,query:c}=l.query(),d=Array.isArray(i)?parseInt(i[0],10):parseInt(null!=i?i:"1",10),o=Array.isArray(c)?c[0]:c,[u,h]=(0,n.use
1State)(null),{data:p,loading:_}=(0,g.Yt)({urlId:e}),{fetch:M,loading:P,error:A}=(0,v.uy)({onCompleted:e=>{var s;h(null!==(s=null==e?void 0:e.recipeList)&&void 0!==s?s:null)},onError:e=>{console.error("error",e),E.sU("PROFILE PAGE FETCH LIST ERROR",{page:"Profile Page",additionalInfo:"Error occurred while fetching recipe list on profile page"}),E.Tb(e)}});(0,n.useEffect)(()=>{e&&M({limit:x.pt,offset:(0,w.vE)(d),userUrlId:e,type:N.nT.RECIPE,query:o})},[e]);let I=e=>{l.replace(e,void 0,{shallow:!0,scroll:!1})},k=s=>{if(!(null==t?void 0:t.isPremium)&&!p.isOwner){r(f.w8.PROMOTION_SEARCH_RECIPES);return}M({limit:x.pt,offset:(0,w.vE)(1),userUrlId:e,type:N.nT.RECIPE,query:s}),s!==c&&I("".concat(x._n,"/users/").concat(e,"/recipe?page=1&query=").concat(s))},C=()=>{c&&(I("".concat(x._n,"/users/").concat(e,"/recipe?page=1")),M({limit:x.pt,offset:(0,w.vE)(1),userUrlId:e,type:N.nT.RECIPE,query:null}))},b=(null==p?void 0:p.isOwner)?{header:"ÐаÑ
одиÑе Ñвои ÑеÑепÑÑ",description:"ÐÑÑÑÑо и Ñдобно",defaultPlaceholder:"ÐоиÑк по моим ÑеÑепÑам"}:{header:"ÐаÑ
одиÑе ÑеÑепÑÑ Ð°Ð²ÑоÑа",description:"ÐÑÑÑÑо и Ñдобно",defaultPlaceholder:"ÐоиÑк по ÑеÑепÑам"},R=e=>()=>{var s,t;let r=null==u?void 0:null===(s=u.recipes)||void 0===s?void 0:null===(t=s[e])||void 0===t?void 0:t.urlId;a(l,"/recipes/".concat(r),{yaEvent:"click_on_recipes_from_Profile"})},S=s=>{M({limit:x.pt,offset:(0,w.vE)(s),userUrlId:e,type:N.nT.RECIPE,query:o}),I("".concat(x._n,"/users/").concat(e,"/recipe?page=").concat(s).concat(o?"&query=".concat(o):""))},T=null==u?void 0:u.recipes.map((e,s)=>({title:e.title,imageUrl:(0,j.p8)({id:String(e.urlId),...e}),imageUploadType:e.imageUploadType,date:e.publishedAt,handleClickRecipeCard:R(s)})),O=c&&(null==u?void 0:null===(s=u.recipes)||void 0===s?void 0:s.length)===0,Z=null==u?void 0:u.pageInfo;return{userData:p,userLoading:_,recipeCardPropsList:T,loading:P,error:A,query:o,searchWidgetContent:b,showEmptySearchResult:O,pageInfo:Z,methods:{handleSearch:k,handleClearSearchQuery:C,handlePageChange:S}}},P=e=>{let{urlId:s,counters:a}=e,{userData:c,userLoading:n,recipeCardPropsList:d,loading:o,methods:u,searchWidgetContent:x,showEmptySearchResult:m,query:f,pageInfo:v}=M(s),g=null==c?void 0:c.isOwner,j=(null==a?void 0:a.recipes)!==0,y=g&&(null==a?void 0:a.recipes)===0,N=!g&&(null==a?void 0:a.recipes)===0;return(0,l.jsx)(t.p,{fullScreen:!1,loading:n,children:(0,l.jsxs)("div",{className:g?"mt-6":"mt-4",children:[j&&(0,l.jsx)(r.R,{searchQuery:f,clearSearchQuery:u.handleClearSearchQuery,handleSearch:u.handleSearch,content:x,showPremium:!g}),!m&&!y&&!N&&(0,l.jsx)(i.V,{recipeCardPropsList:d,isLoading:o,handlePageChange:u.handlePageChange,pageInfo:v}),m&&(0,l.jsx)(_.Z,{}),y&&(0,l.jsx)(h,{}),N&&(0,l.jsx)(p,{})]})})};var A=a(25268),I=!0;let k=e=>(0,l.jsx)(P,{...e});k.getLayout=function(e,s){return(0,l.jsx)(A.o,{...s,children:e})};var C=k}},function(e){e.O(0,[3388,5268,1853,9774,2888,179],function(){return e(e.s=28212)}),_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.