1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4744],{5626:(e,t,r)=>{r.d(t,{F:()=>c,Y:()=>s});var a=r(54568),i=r(7620),n=r(600);let o=(0,i.createContext)(null);function s({children:e,initialDeviceType:t}){let r=(0,n.a)(t);return(0,a.jsx)(o.Provider,{value:r,children:e})}function c(){let e=(0,i.useContext)(o);if(!e)throw Error("useDevice must be used within DeviceProvider");return e}},42957:(e,t,r)=>{r.d(t,{Tk:()=>s,QW:()=>d});var a=r(79748),i=r(20453),n=r(20040),o=r(90086);function s(){let e=(0,a.useRouter)(),{showAddToCartModal:t}=(0,i.$)({onGoToCart:()=>{e.push("/basket")},onContinueShopping:()=>{}});return{handleAddToCart:async(e,r)=>{await t(e)},handleQuantityChange:(e,t)=>{},onCopyCode:e=>{let t=e.sku||e.item_key||"";t&&(navigator.clipboard?.writeText(t),(0,n.$U)({title:"Ðод ÑкопиÑован",description:"Ðод ÑоваÑа ÑÑпеÑно ÑкопиÑован в бÑÑÐµÑ Ð¾Ð±Ð¼ÐµÐ½Ð°",color:"success"}))},onExceptionQuantity:e=>{(0,o.ve)({product:e}),(0,n.$U)({description:"ТоваÑа Ð½ÐµÑ Ð½Ð° Ñкладе",color:"warning"})},onExceptionPrice:e=>{(0,o.l$)({product:e}),(0,n.$U)({description:"Цена не Ñказана",color:"warning"})}}}r(8494),r(600);var c=r(48799),u=r(51412);function d({url:e,limit:t=20,enabled:r=!0}){return(0,c.q)({queryKey:["products-by-url",e,t],queryFn:({pageParam:r})=>(0,u.LE)(e,r,t),initialPageParam:1,getNextPageParam:e=>{if(e.page<e.totalPages)return e.page+1},enabled:r&&!!e,staleTime:3e5,gcTime:6e5})}},48799:(e,t,r)=>{r.d(t,{q:()=>s});var a=r(87618),i=r(97662),n=class extends a.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,i.PL)()})}getOptimisticResult(e){return e.behavior=(0,i.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,a=super.createResult(e,t),{isFetching:n,isRefetching:o,isError:s,isRefetchError:c}=a,u=r.fetchMeta?.fetchMore?.direction,d=s&&"forward"===u,l=n&&"forward"===u,h=s&&"backward"===u,p=n&&"backward"===u;return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.rB)(t,r.data),hasPreviousPage:(0,i.RQ)(t,r.data),isFetchNextPageError:d,isFetchingNextPage:l,isFetchPreviousPageError:h,isFetchingPreviousPage:p,isRefetchError:c&&!d&&!h,isRefetching:o&&!l&&!p}}},o=r(9833);function s(e,t){return(0,o.t)(e,n,t)}},51412:(e,t,r)=>{r.d(t,{AA:()=>n,LE:()=>o,Nm:()=>i});var a=r(86362);async function i(){return(await a.A.get("/promo/active")).data}async function n(){return(await a.A.get("/promo/inactive")).data}async function o(e,t=1,r=20){return(await a.A.get(`/promo/url/${encodeURIComponent(e)}/products`,{params:{page:t,limit:r}})).data}},58362:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(54568),i=r(52237),n=r(42957),o=r(65587),s=r.n(o);function c({product:e,isHorizontal:t,...r}){let{isHorizontal:o}=(0,i.oX)(),c=void 0!==t?t:o,{handleAddToCart:u,handleQuantityChange:d,onCopyCode:l,onExceptionQuantity:h,onExceptionPrice:p}=(0,n.Tk)();return(0,a.jsx)(i.AA,{href:`/product/${e.code}`,LinkComponent:s(),isHorizontal:c,apiBase:"https://frizar.ru/bff/api",product:e,availabilityIndicators:e.materials,onAddToCart:(e,t)=>{!function({products:e,actionField:t}){!function({actionType:e,actionField:t,products:r}){window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:{currencyCode:"RUB",[e]:t?{actionField:t,products:r}:{products:r}}})}({actionType:"add",actionField:t,products:e})}({products:[{id:e.id,name:e.name,price:e.prices.adjustedPrice,quantity:t,category:e.breadcrumbs?.map(({name:e})=>e).join(" / "),variant:e.product_type,list:c?"horizontal":"vertical"}],actionField:{id:e.code}}),u(e,t)},onQuantityChange:d,onCopyCode:()=>l?.(e),onExceptionQuantity:h,onExceptionPrice:p,...r})}},84744:(e,t,r)=>{r.d(t,{default:()=>p});var a=r(54568),i=r(30092),n=r(31340),o=r(26398),s=r(75711),c=r(13106),u=r(58362),d=r(52237),l=r(79748),h=r(5626
1);function p({product:e}){let t=(0,l.useRouter)(),{deviceType:r}=(0,h.F)();return(0,a.jsx)(n.Y,{isOpen:!0,size:"4xl",onClose:i.OT,children:(0,a.jsx)(o.g,{children:n=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.c,{className:"flex flex-col gap-1",children:"Ð¢Ð¾Ð²Ð°Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½ в коÑзинÑ"}),(0,a.jsxs)(c.h,{children:[(0,a.jsx)(u.A,{product:e,isHorizontal:"mobile"!==r&&"tablet"!==r}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)("button",{onClick:()=>{(0,i.OT)(),t.push("/basket")},className:"w-full bg-button-blue text-white py-3 px-4 rounded-sm hover:bg-[#2d4377] transition-colors",children:(0,a.jsx)(d.C3,{className:"text-white",children:"ÐеÑейÑи в коÑзинÑ"})}),(0,a.jsx)("button",{onClick:()=>(0,i.OT)(),className:"w-full border border-button-blue text-button-blue py-3 px-4 rounded-sm hover:bg-surface-light-blue transition-colors",children:(0,a.jsx)(d.C3,{className:"text-button-blue",children:"ÐÑодолжиÑÑ Ð¿Ð¾ÐºÑпки"})})]})]})]})})})}}}]);
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.