1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5109],{132:(e,t,r)=>{r.d(t,{K:()=>i});var a=r(33549),n=r(22678),l=r(32048);async function i(e){let{endpoint:t,params:r={},errorMessage:i="Failed to fetch data",cache:o="no-store",tags:s,method:c="GET",signal:d,hasFilters:u=!1}=e,p="".concat(n.B.API_URL).concat(n.m).concat(t,"?").concat((0,l.DK)(r)),m={method:c,headers:{"Content-Type":"application/json"},cache:o,..."POST"===c?{body:""}:{},signal:d},g=await fetch(p,m);if(!g.ok){if(401===g.status){let e=Error("UNAUTHORIZED");throw e.status=401,e}if(404===g.status)throw new a.m_;throw Error("".concat(i," (Status: ").concat(g.status,")"))}let h=await g.json();if(404===h.status||h.message&&!u)throw new a.m_;return h}},2915:(e,t,r)=>{r.d(t,{M:()=>i});var a=r(48724),n=r(75616),l=r(4465);let i=e=>{let t="ЧÑо-Ñо поÑло не Ñак";if((0,a.F0)(e)){let a,l;if("ERR_CANCELED"===e.code)return;if(e.response){var r;"errors"in(a=null==(r=e.response)?void 0:r.data)&&(l=Array.isArray(a.errors)?a.errors.length>0?a.errors[0]:e.message:a.errors)}else l=e.message;n.toast.error(null!=l?l:t);return}if(e instanceof l.ZodError||e instanceof Error)return void n.toast.error(e.message);n.toast.error(t)}},8441:(e,t,r)=>{r.d(t,{L0:()=>a.vJ,LO:()=>n.LO,kL:()=>n.kL,ko:()=>n.ko});var a=r(95302);r(85557);var n=r(54343);r(38707)},11213:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(98807);let n=(0,r(26239).forwardRef)((e,t)=>(0,a.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,a.jsx)("path",{d:"M18.8226 18.6976L6.625 6.5",stroke:"currentcolor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,a.jsx)("path",{d:"M18.8226 6.30241L6.625 18.5",stroke:"currentcolor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round"})]}))},15763:(e,t,r)=>{r.r(t),r.d(t,{ConditionalDesktopScroll:()=>c});var a=r(98807),n=r(26239),l=r(69679),i=r(75658),o=r(68955),s=r(64160);let c=(0,n.forwardRef)((e,t)=>{let{isShow:r,children:c,className:d}=e,{isLG:u}=(0,i.M)(),p=(0,n.useRef)(null),m=(0,l.v)(p);return(null!=r?r:u)?(0,a.jsxs)(s.ScrollArea,{ref:t,className:(0,o.cn)("h-full rounded-xl",m&&"before:pointer-events-none before:absolute before:inset-x-0 before:bottom-0 before:h-10 before:bg-gradient-to-t before:from-white before:to-transparent",d),children:[c,(0,a.jsx)("div",{className:"-mt-4 h-0.5",ref:p})]}):c});c.displayName="ConditionalScroll"},21138:(e,t,r)=>{r.d(t,{e:()=>n});var a=r(26239);let n=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,r]=(0,a.useState)(e);return{state:t,toggle:()=>r(e=>!e)}}},25654:(e,t,r)=>{r.d(t,{Hn:()=>l,Oz:()=>n,qH:()=>a,rM:()=>i,vM:()=>o});let a=e=>{let{queryClient:t,queryKey:r,id:a,updater:n,fieldName:l,nestedFieldName:i}=e;t.setQueryData(r,e=>{if(!e)return e;let t=e=>i?function e(t,r,a,n){return t.map(t=>t.id===r?a(t):n in t&&Array.isArray(t[n])?{...t,[n]:e(t[n],r,a,n)}:t)}(e,a,n,i):e.map(e=>e.id===a?n(e):e);return"pages"in e?{...e,pages:e.pages.map(e=>({...e,[l]:t(e[l])}))}:l in e&&Array.isArray(e[l])?{...e,[l]:t(e[l])}:e})},n=e=>{let{queryClient:t,queryKey:r,updater:a}=e;t.setQueryData(r,e=>e?a(e):e)},l=e=>{let{queryClient:t,queryKey:r,updater:a}=e;t.setQueryData(r,e=>e?a(e):e)},i=e=>{let{queryClient:t,queryKey:r,id:a,fieldName:n,nestedFieldName:l}=e;t.setQueryData(r,e=>e&&"pages"in e?{...e,pages:e.pages.map(e=>({...e,...e.count_object?{count_object:e.count_object-1}:{},[n]:(e=>l?function e(t,r,a){return t.filter(e=>e.id!==r).map(t=>{let n=t[a];return Array.isArray(n)?{...t,[a]:e(n,r,a)}:t})}(e,a,l):e.filter(e=>e.id!==a))(e[n])}))}:e)},o=e=>{let{queryClient:t,queryKey:r,id:a,updater:n}=e;t.setQueryData(r,e=>{if(!e)return e;let t=new Map(e);for(let[e,r]of t)e===a&&t.set(e,n(r));return t})}},34688:(e,t,r)=>{r.d(t,{Ff:()=>c,yt:()=>s});var a=r(70372),n=r(10238),l=r(33549),i=r(43516);let o=e=>{if(!e)return!1;let t=new Date(e);return!Number.isNaN(t.getTime())&&((0,n.n)(t,l.Co)||(0,a.d)(t,l.Co))},s=e=>{let{type:t,id:r,slug:a,published_at:n}=e,l="".concat(r,"-").concat(a);return o(n)?i.J.postSingleNew(l):i.J.postSingle(t,l)},c=e=>{let{id:t,slug:r,published_at:a}=e,n="".concat(t,"-").concat(r);return o(a)?i.J.newsSingleNew(n):i.J.newsSingle(n)}},35187:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(98807);let n=(0,r(26239).forwardRef)((e,t)=>(0,a.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,a.jsx)("g",{clipPath:"url(#clip0_3002_8294)",children:(0,a.jsx)("path",{d:"M18.6695 19.7302C18.9624 20.0231 19.4373 20.0231 19.7302 19.7302C20.0231 19.4373 20.0231 18.9625 19.7302 18.6696L18.6695 19.7302ZM16.0499 10.4024C16.0499 13.5214 13.5214 16.0499 10.4024 16.0499V17.5499C14.3498 17.5499 17.5499 14.3498 17.5499 10.4024H16.0499ZM10.4024 16.0499C7.28335 16.0499 4.75488 13.5214 4.75488 10.4024H3.25488C3.25488 14.3498 6.45493 17.5499 10.4024 17.5499V16.0499ZM4.75488 10.4024C4.75488 7.28335 7.28335 4.75488 10.4024 4.75488V3.25488C6.45493 3.25488 3.25488 6.45493 3.25488 10.4024H4.75488ZM10.4024 4.75488C13.5214 4.75488 16.0499 7.28335 16.0499 10.4024H17.5499C17.5499 6.45493 14.3498 3.25488 10.4024 3.25488V4.75488ZM19.7302 18.6696L15.5303 14.4696L14.4697 15.5302L18.6695 19.7302L19.7302 18.6696Z",fill:"currentcolor"})}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_3002_8294",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}))},35932:(e,t,r)=>{function a(e){var t,r;if(!e)return"";let a=e.replace(/<br\s*\/?>/gi," ").replace(/<\/p>/gi," ").replace(/<\/div>/gi," ");return null!=(r=null==(t=new DOMParser().parseFromString(a,"text/html").body.textContent)?void 0:t.replace(/\s+/g," ").trim())?r:""}r.d(t,{Ze:()=>m,ak:()=>p,cJ:()=>x,$f:()=>f,QG:()=>h,bQ:()=>l,WB:()=>g,Sw:()=>y,UY:()=>b,Kq:()=>a});var n=r(33549);let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.mF;return e/t+1};var i=r(39773),o=r(74542),s=r(70372),c=r(36067),d=r(24317),u=r(17682);function p(e){if((0,d.P)(e))return"ÐÑеÑа";if((0,c.c)(e))return(0,i.GP)(e,"HH:mm");if((0,s.d)(e,(()=>{let e=new Date;return e.setDate(e.getDate()-7),e})()))return(0,i.GP)(e,"dd.MM.yyyy 'в' HH:mm");let t=(0,o.m)(e,{locale:u.ru,addSuffix:!0});return t.includes("назад")?t.replace("поÑÑи","").trim():(0,i.GP)(e,"dd.MM.yyyy 'в' HH:mm")}function m(e){let t=new Date(e);return(0,i.GP)(t,"dd MMMM yyyy",{locale:u.ru})}function g(e){let t=Math.floor(e/60),r=e%60;return{hours:t>0?t:null,minutes:r>0?r:null}}function h(e){let{hours:t,minutes:r}=g(null!=e?e:0),a=[];return t&&a.push("".concat(t," Ñ")),r&&a.push("".concat(r," мин")),a.join(" ")}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=new Date(e),a=new Date,n=new Date;return n.setMonth(a.getMonth()-t),r>=n}let f=e=>{if(!e)return null;let t=e.match(/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]+)/);if(t)return"https://www.youtube.com/embed/".concat(t[1]);let r=e.match(/vk\.com\/video(-?\d+)_(\d+)/);return r?"https://vk.com/video_ext.php?oid=".concat(r[1],"&id=").concat(r[2]):e.match(/vk\.com\/video_ext\.php\?oid=(-?\d+)&id=(\d+)/)?"".concat(e,"&partner_name=edimdoma"):null};function b(e,t){let r=e%10,a=e%100;return 1===r&&11!==a?t[0]:r>=2&&r<=4&&(a<10||a>=20)?t[1]:t[2]}let x=e=>{let{data:t,defaultTitle:r}=e,a=null==t?void 0:t.pages.flatMap(e=>e.tag)[0];return a?a.title[0].toUpperCase()+a.title.slice(1):r}},38707:(e,t,r)=>{r.d(t,{SV:()=>p});var a=r(18275),n=r(54343);let l=a.Ay$.preprocess(e=>"string"==typeof e?""===e.trim()?null:e:null,a.Ay$.string().nullable()),i=a.Ay$.object({description:a.Ay$.string(),url:a.Ay$.
1string()}),o=a.Ay$.discriminatedUnion("block_type",[i.extend({block_type:a.Ay$.literal(0)}),i.extend({block_type:a.Ay$.literal(1),url_name:a.Ay$.string()}),i.extend({block_type:a.Ay$.literal(4)}),i.extend({block_type:a.Ay$.literal(2),image:a.Ay$.string().nullable()}),i.extend({block_type:a.Ay$.literal(3),image:a.Ay$.string().nullable()})]),s=a.Ay$.object({id:n.fY,image_url:a.Ay$.string(),alt:a.Ay$.preprocess(e=>null!=e?e:"ФоÑогÑаÑÐ¸Ñ Ð½Ð° ÑайÑе 'Ðдим Ðома'",a.Ay$.string().min(2))}),c=a.Ay$.object({id:n.fY}),d=["Title","Text","Image","Gallery","RecommendationBlock","Quiz","Embedding","ProductTag","EmbeddedVideo"],u=a.Ay$.discriminatedUnion("partible_type",[c.extend({partible_type:a.Ay$.literal("Title"),data:l}),c.extend({partible_type:a.Ay$.literal("Text"),data:l}),c.extend({partible_type:a.Ay$.literal("Image"),data:a.Ay$.string()}),c.extend({partible_type:a.Ay$.literal("Gallery"),data:a.Ay$.object({gallery:a.Ay$.array(s)})}),c.extend({partible_type:a.Ay$.literal("RecommendationBlock"),data:o}),c.extend({partible_type:a.Ay$.literal("Quiz"),data:a.Ay$.object({content:a.Ay$.string()})}),c.extend({partible_type:a.Ay$.literal("Embedding"),data:a.Ay$.object({content:a.Ay$.string()})}),c.extend({partible_type:a.Ay$.literal("ProductTag"),data:a.Ay$.object({content:a.Ay$.string()})}),c.extend({partible_type:a.Ay$.literal("EmbeddedVideo"),data:a.Ay$.object({content:a.Ay$.string()})})]),p=a.Ay$.object({id:n.fY,title:l,tag:a.Ay$.string().min(1),parts:a.Ay$.preprocess(e=>Array.isArray(e)?e.filter(e=>d.includes(null==e?void 0:e.partible_type)):[],a.Ay$.array(u))})},39626:(e,t,r)=>{r.d(t,{A:()=>a});var a=function(e){return e[e.lg=1024]="lg",e[e.md=768]="md",e[e.sm=640]="sm",e[e.xl=1280]="xl",e[e.twoXL=1536]="twoXL",e[e.xs=320]="xs",e}({})},43516:(e,t,r)=>{r.d(t,{J:()=>a});let a={recipeCatalog:"/retsepty",myRecipes:e=>"/moi_retsepty".concat("draft"===e?"?publishFilter=draft":"publish"===e?"?publishFilter=published":""),addNewRecipe:"/create/retsept",editRecipe:e=>"/create/retsept/".concat(e),tagCatalog:e=>"/retsepty/tags/".concat(e),recipeSingle:e=>"/retsepty/".concat(e),search:(e,t)=>({pathname:"/search",query:{q:e},hash:t}),searchString:e=>"/search?".concat(e),telecastsCatalog:"/full_telecasts",telecastSingle:e=>"/full_telecasts/".concat(e),tagTelecast:e=>"/full_telecasts/tags/".concat(e),newsCatalog:"/news/posts",newsCatalogNew:"/news",newsSingle:e=>"/news/posts/".concat(e),newsSingleNew:e=>"/news/".concat(e),root:"/",authors:"/users",authorSingle:e=>"/users/".concat(e),postCatalog:"/jivem_doma/posts",postCatalogNew:"/articles",tagPosts:e=>"/jivem_doma/posts/tags/".concat(e),postSingle:(e,t)=>"/".concat(e,"/posts/").concat(t),postSingleNew:e=>"/articles/".concat(e),collections:"/collections",collectionMineRecipes:e=>"/users/".concat(e,"/cooking_books"),collectionUsersRecipes:(e,t)=>"/users/".concat(e,"/cooking_books/").concat(t),settings:"/settings",events:"/konkursy",eventsSingle:e=>"/konkursy/".concat(e),editorial:"/editorial",specialProjects:"/special_projects"}},54343:(e,t,r)=>{r.d(t,{LO:()=>y,Md:()=>d,Qp:()=>p,RW:()=>n,UD:()=>u,YH:()=>c,fY:()=>l,kL:()=>g,ko:()=>h,vJ:()=>i,ve:()=>m});var a=r(4465);let n=a.coerce.number().int().nonnegative(),l=a.coerce.number().int().positive(),i=a.preprocess(e=>""===e?null:e,a.string().min(1).nullable()),o=a.object({title:a.string().min(1),description:a.string().min(1),keywords:a.string().min(1),robots:a.string().min(1),canonical:a.string().min(1).nullable()}),s=a.object({bottom_text:a.string().min(1),top_text:a.string().min(1)}),c=a.object({seo:o.extend({seo_text:s.nullable().optional()})}),d=a.object({avg:a.coerce.number().nonnegative().nullable(),user_qty:n.nullable()}),u=a.object({id:l,slug:a.string().min(2),title:a.string().min(1)}),p=a.object({...u.shape,image_ed4_wide:a.string(),image_ed4_big_wide:a.string(),short_description:a.string().nullable(),rate:d,seo:o,published_at:a.iso.datetime().nullable(),updated_at:a.iso.datetime().nullable(),views_count:a.number(),status:a.number().optional()}),m=e=>{var t,r;return{...e,updated_at:null!=(r=null!=(t=e.updated_at)?t:e.published_at)?r:null}},g=a.object({file:a.instanceof(File,{message:"ÐобавÑÑе изобÑажение"}),url:a.string()}),h=a.email({message:"ÐведиÑе коÑÑекÑнÑй email, напÑÐ¸Ð¼ÐµÑ [email protected]"}).trim().toLowerCase(),y=a.object({email:h})},56126:(e,t,r)=>{r.d(t,{_:()=>i});var a=r(88416),n=r(33549),l=r(22678);async function i(e){let{endpoint:t,accessToken:r="",errorMessage:i="Failed to fetch data",revalidate:o,tags:s,cache:c="no-store"}=e,d="".concat(l.B.API_URL).concat(l.m).concat(t),u=await fetch(d,{method:"GET",headers:{"Content-Type":"application/json",...r?{Authorization:r}:{}},next:{revalidate:o,...s?{tags:[s]}:{}},cache:c});if(404===u.status&&(0,a.notFound)(),410===u.status)throw new n.AD;if(!u.ok)throw Error(i);return await u.json()}},56323:(e,t,r)=>{r.r(t),r.d(t,{ClientOnly:()=>l});var a=r(98807),n=r(26239);let l=e=>{let{children:t}
1=e,[r,l]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{l(!0)},[]),r)?(0,a.jsx)(a.Fragment,{children:t}):null}},59761:(e,t,r)=>{r.d(t,{W4:()=>a.ConditionalDesktopScroll,FK:()=>n.ScrollArea,yl:()=>i});var a=r(15763),n=r(64160),l=r(98807);r(26239);let i=e=>{let{children:t,...r}=e;return(0,l.jsx)(n.ScrollArea,{className:"h-full max-h-[80vh] pr-4 **:data-radix-scroll-area-viewport:cursor-auto [&_a]:cursor-pointer [&_button]:cursor-pointer",...r,children:t})}},61943:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(98807);let n=(0,r(26239).forwardRef)((e,t)=>(0,a.jsxs)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,a.jsx)("rect",{x:"0.5",width:"24",height:"24",rx:"12"}),(0,a.jsx)("path",{d:"M12.4926 17.1825L12.5151 6.83997",stroke:"currentcolor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,a.jsx)("path",{d:"M7.30994 12.0076L17.6449 12.0226",stroke:"currentcolor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round"})]}))},64160:(e,t,r)=>{r.r(t),r.d(t,{ScrollArea:()=>o});var a=r(98807),n=r(36306),l=r(26239),i=r(68955);let o=l.forwardRef((e,t)=>{let{className:r,children:l,orientation:o,...c}=e;return(0,a.jsxs)(n.bL,{ref:t,className:(0,i.cn)("relative overflow-hidden pr-1.5",r),...c,children:[(0,a.jsx)(n.LM,{className:"scrollbar-hide h-full w-full rounded-[inherit]",children:l}),(0,a.jsx)(s,{orientation:null!=o?o:"vertical"}),(0,a.jsx)(n.OK,{})]})});o.displayName=n.bL.displayName;let s=l.forwardRef((e,t)=>{let{className:r,orientation:l="vertical",...o}=e;return(0,a.jsx)(n.VM,{ref:t,orientation:l,className:(0,i.cn)("flex touch-none transition-colors select-none","vertical"===l&&"h-full w-2 rounded-2xl border-l border-l-transparent p-[1px]","horizontal"===l&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...o,children:(0,a.jsx)(n.lr,{className:"bg-border bg-line relative w-1 flex-1 rounded-full"})})});s.displayName=n.VM.displayName},67266:(e,t,r)=>{r.d(t,{Q:()=>o});var a=r(98807),n=r(26016),l=r(13563);r(26239);var i=r(68955);let o=e=>{let{error:t,className:r}=e;return(0,a.jsx)(n.N,{mode:"wait",children:(0,a.jsx)(l.P.p,{initial:{opacity:0,y:-4,height:0},animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,y:-4,height:0},transition:{duration:.25,ease:"easeOut"},className:(0,i.cn)("smallError mt-1",r),"data-error":"true",children:t},"error")})}},69106:(e,t,r)=>{r.d(t,{k:()=>g});var a=r(98807),n=r(26239),l=r(11213);let i=(0,n.forwardRef)((e,t)=>(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,a.jsx)("path",{d:"M21.3925 11C20.4316 12.6374 19.0593 13.9951 17.4117 14.9386C15.7641 15.882 13.8985 16.3783 12 16.3783C10.1014 16.3783 8.2358 15.882 6.58822 14.9386C4.94065 13.9951 3.56832 12.6374 2.60735 11H0.34375C1.3887 13.2073 3.0389 15.0725 5.10239 16.3787C7.16587 17.6848 9.55781 18.3782 12 18.3782C14.4421 18.3782 16.834 17.6848 18.8975 16.3787C20.961 15.0725 22.6112 13.2073 23.6562 11H21.3925Z",fill:"currentcolor"})})),o=(0,n.forwardRef)((e,t)=>(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,a.jsx)("path",{d:"M12 4.62158C9.55805 4.62276 7.16658 5.31667 5.10331 6.62273C3.04003 7.92879 1.38962 9.79339 0.34375 12C1.38867 14.2073 3.03887 16.0725 5.10235 17.3787C7.16584 18.6849 9.5578 19.3784 12 19.3784C14.4421 19.3784 16.8341 18.6849 18.8975 17.3787C20.961 16.0725 22.6112 14.2073 23.6562 12C22.6103 9.79339 20.9599 7.92879 18.8966 6.62273C16.8333 5.31667 14.4419 4.62276 12 4.62158ZM12 15.5085C11.306 15.5085 10.6277 15.3027 10.0507 14.9172C9.47376 14.5317 9.02407 13.9837 8.75852 13.3426C8.49297 12.7015 8.42349 11.9961 8.55887 11.3155C8.69424 10.6349 9.02839 10.0098 9.51907 9.5191C10.0097 9.02842 10.6349 8.69427 11.3155 8.5589C11.9961 8.42352 12.7015 8.493 13.3426 8.75855C13.9837 9.0241 14.5316 9.47379 14.9172 10.0508C15.3027 10.6277 15.5085 11.3061 15.5085 12C15.5085 12.9305 15.1388 13.8229 14.4808 14.4809C13.8229 15.1388 12.9305 15.5085 12 15.5085Z",fill:"currentcolor"})}));var s=r(35187),c=r(21138),d=r(68955),u=r(24454),p=r(67266);let m=(0,r(54159).F)(["border-line w-full cursor-pointer border border-solid focus-visible:outline-none focus-visible:ring-2 focus-visible:border-transparent transition-all","pr-12"],{defaultVariants:{variant:"primary",theme:"light",sizes:"basic"},variants:{variant:{primary:["bg-bg-primary focus-visible:ring-primary-dark"],outline:["focu
1s-visible:ring-bg-primary bg-transparent focus-visible:border-text-secondary"]},theme:{light:["placeholder:text-text-light text-primary-dark"],dark:["placeholder:text-text-light text-white"]},sizes:{small:["pr-2.5 pl-2.5 pt-2 pb-2 rounded-xl text-sm placeholder:text-sm","md:pl-5 md:pr-5 md:pt-3 md:pb-3 md:rounded-2xl md:text-lg md:placeholder:text-lg"],basic:["pl-2.5 pr-2.5 pt-2.5 pb-2.5 rounded-2xl text-sm placeholder:text-sm","md:pl-5 md:pr-5 md:pt-3 md:pb-3 md:rounded-2xl md:text-lg md:placeholder:text-lg"]}}}),g=(0,n.forwardRef)((e,t)=>{let{className:r,disabled:g,error:h,required:y=!1,type:f="text",variant:b="primary",sizes:x,theme:w,onEnter:v,onChange:_,onClear:A,withCross:j,value:$,textLabel:k,icon:C,children:N,inputStyle:M,suffix:R,errorStyle:L,showClear:S=!0,...D}=e,{state:E,toggle:W}=(0,c.e)(!1),P=(0,n.useId)();return(0,a.jsxs)("label",{htmlFor:"input-".concat(P),className:(0,d.cn)("group relative flex flex-col",r),children:["search"===f&&(0,a.jsxs)("div",{className:"absolute top-1/2 right-1 z-10 flex -translate-y-1/2 rounded-2xl",children:[$&&(0,a.jsx)(u.$,{variant:"ghost",icon:(0,a.jsx)(l.A,{}),className:"p-1 px-2 md:py-2",onClick:A}),(0,a.jsx)(u.$,{onClick:e=>{e.preventDefault(),null==v||v()},icon:(0,a.jsx)(s.A,{className:"size-7 text-white md:size-7"}),className:"bg-accent flex cursor-pointer items-center justify-center self-center rounded-xl border-none p-1 px-2 text-white sm:pr-3 md:py-2",children:(0,a.jsx)("span",{className:"hidden sm:block lg:hidden xl:block",children:"ÐайÑи"})})]}),k&&(0,a.jsx)("span",{className:(0,d.cn)("text-text-secondary text-xx relative mb-2",y&&"w-fit after:absolute after:top-0 after:-right-2 after:content-['*']"),children:k}),(0,a.jsxs)("span",{className:"relative leading-[1.3]",children:[C&&(0,a.jsx)("span",{className:"group-focus-within:text-accent text-shadow-text-secondary absolute top-1/2 left-3 -translate-y-1/2 transition duration-300 group-focus-within:translate-x-1",children:C}),N,(0,a.jsx)("input",{style:{lineHeight:1.3},id:"input-".concat(P),className:(0,d.cn)(m({variant:b,theme:w,sizes:x}),h&&"border-accent",C&&"pl-12!",M),onKeyDown:e=>{"Enter"===e.key&&v&&v()},disabled:g,ref:t,required:y,type:"search"===f||E?"text":f,onChange:_,value:$,...D}),R&&(0,a.jsx)("span",{className:"text-text-light absolute top-1/2 right-2 -translate-y-1/2",children:R}),j&&S&&(0,a.jsx)("button",{onClick:()=>j(),className:"text-line-light hover:text-text-secondary absolute top-1/2 right-4 -translate-y-1/2 cursor-pointer",children:(0,a.jsx)(l.A,{className:"size-4 md:size-6"})}),"password"===f&&(E?(0,a.jsx)(o,{className:"stroke-width-1 fill-light-100 absolute top-1/2 right-3 -translate-y-1/2 cursor-pointer",height:24,onClick:W,width:24}):(0,a.jsx)(i,{className:"stroke-width-1 fill-light-100 absolute top-1/2 right-3 -translate-y-1/2 cursor-pointer",height:24,onClick:W,width:24}))]}),h&&(0,a.jsx)(p.Q,{error:h,className:L})]})})},69679:(e,t,r)=>{r.d(t,{v:()=>n});var a=r(26239);let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!e.current)return;let r=new IntersectionObserver(e=>{let[t]=e;return n(!t.isIntersecting)},{root:null,threshold:t,rootMargin:"0px"}),a=e.current;return a&&r.observe(a),()=>{a&&r.unobserve(a)}},[e,t]),r}},75658:(e,t,r)=>{r.d(t,{M:()=>l});var a=r(26239),n=r(39626);let l=()=>{let[e,t]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=()=>t(window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let r=null!==e&&0!==e,l=r&&e>=n.A.xs,i=r&&e>=n.A.sm,o=r&&e>=n.A.md,s=r&&e>=n.A.lg;return{isXS:l,isSM:i,isMD:o,isLG:s,isXL:r&&e>=n.A.xl,isTwoXL:r&&e>=n.A.twoXL,width:e}}},76028:(e,t,r)=>{r.d(t,{n:()=>l});var a=r(2915),n=r(89764);let l=async(e,t)=>{var r,l;let{loadingTurnOff:i,loadingTurnOn:o}=n.C.getState();o();try{let a=await e();return 200===a.status&&(null==(r=t.onSuccess)||r.call(t,a)),a}catch(e){return(0,a.M)(e),null==(l=t.onError)||l.call(t,e),null}finally{i()}}},85557:(e,t,r)=>{r.d(t,{TR:()=>d,cX:()=>c});var a=r(4465),n=r(33549),l=r(54343);let i=a.object({reaction_id:l.fY,user_id:l.fY}),o=a.object({id:l.fY.or(a.literal(-1)),body:a.string(),parent_id:l.fY.nullable(),created_at:a.coerce.date(),user:a.preprocess(e=>e||{id:1,email:n.yg.email,user:n.yg.userName,user_avatar:""}
1,a.object({id:l.fY,email:a.string().min(5).catch(n.yg.email),user:a.preprocess(e=>null==e||""===e?n.yg.userName:e,a.string().min(1)),user_avatar:a.string()})),reactions_count:l.RW,emoticon_ids:a.array(i)}),s=o.extend({replies:a.array(o)}),c=a.array(s),d=a.object({count_object:l.RW,offset:l.RW,total_object:l.RW,has_more:a.boolean().default(!1),object:a.array(s)})},95302:(e,t,r)=>{r.d(t,{dH:()=>s,lW:()=>m,vJ:()=>o});var a=r(18275),n=r(33549),l=r(54343);let i=a.Ay$.object({user_id:l.fY,user:a.Ay$.string().min(2).catch(n.yg.userName),user_avatar:l.vJ.optional(),user_type:l.vJ.optional(),about_me:l.vJ.optional()}),o=a.Ay$.object({id:l.fY,name:a.Ay$.string().min(2).catch(n.yg.userName),about_me:l.vJ.optional(),avatar:l.vJ.optional(),type:l.vJ.optional()}),s=a.Ay$.object({user_id:l.fY,user_name:a.Ay$.string().min(2).catch(n.yg.userName),avatar:a.Ay$.string().optional(),role:a.Ay$.string().min(2).optional()}).array().optional().nullable(),c=i.extend({user_rate:a.Ay$.number(),user_info:o,so_authors:s});a.Ay$.object({rate:l.Md,views_count:l.RW,image:a.Ay$.string().min(2),image_ed4_wide:a.Ay$.string().min(2),cooking_time:l.RW,description:l.vJ.optional().default(""),published_at:a.Ay$.iso.datetime().optional()}).extend({...i.shape,...l.UD.shape});let d=a.Ay$.object({id:l.fY,title:a.Ay$.string().min(2)}),u=a.Ay$.object({any_markers:a.Ay$.object({exclusive:a.Ay$.boolean()}).optional()});a.Ay$.object({count:l.RW,offset:l.RW,count_object:l.RW}),a.Ay$.object({type:a.Ay$.enum(["JivemDomaPost","CookingSchoolPost"]),image_ed4_small:a.Ay$.string().min(2),image_ed4_big_wide:a.Ay$.string().min(2),views_count:l.RW,image_ed4_wide:a.Ay$.string().min(2),rate:l.Md,status:l.RW.optional(),published_at:a.Ay$.string(),cooking_books:a.Ay$.array(d)}).extend({...c.omit({user_type:!0}).shape,...l.UD.shape,...u.shape}),a.Ay$.object({image_ed4_small:a.Ay$.string().min(2),image_ed4_big_wide:a.Ay$.string().min(2).optional(),image_ed4_wide:a.Ay$.string().min(2),status:l.RW.optional(),published_at:a.Ay$.string(),updated_at:a.Ay$.string().nullable(),short_description:a.Ay$.string().optional()}).extend({...l.UD.shape,...u.shape}).transform(l.ve);let p=a.Ay$.object({context:a.Ay$.string().min(2).optional()}).extend(l.UD.shape),m=a.Ay$.preprocess(e=>Array.isArray(e)?e.filter(e=>!!((null==e?void 0:e.id)&&(null==e?void 0:e.slug))&&(null==e?void 0:e.title.length)>2&&(null==e?void 0:e.slug.length)>2):[],a.Ay$.array(p));a.Ay$.object({how:m,frequently_asked:m,what_are_we_cooking:m,from_what:m})},96813:(e,t,r)=>{r.d(t,{cn:()=>l.cn,f8:()=>l.f8,JR:()=>n,Po:()=>a}),Promise.resolve(),r(72590),r(32048),r(56323),r(34688);let a=e=>null==e||""===e||0===e,n=(e,t)=>a(e)?void 0:t(e);r(2915),r(76028);var l=r(68955)},98616:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(98807);let n=(0,r(26239).forwardRef)((e,t)=>{var r;return(0,a.jsxs)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,a.jsx)("rect",{width:"24",height:"24",rx:"12",transform:"matrix(1 0 0 -1 0.5 24)",fill:null!=(r=e.fill)?r:"white"}),(0,a.jsx)("path",{d:"M11.634 9C12.0189 8.33333 12.9811 8.33333 13.366 9L15.5311 12.75C15.916 13.4167 15.4349 14.25 14.6651 14.25H10.3349C9.56513 14.25 9.08401 13.4167 9.46891 12.75L11.634 9Z",fill:"currentcolor"})]})})}}]);
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.