PageSourceSearch

https://iledebeaute.ru/_next/static/chunks/pages/personal-settings/orders/[id]/products-2a5e6a6a9e9ac059.js

js iledebeaute.ru collected 2026-09-24 09:07:33 UTC 10,635 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1823],{47958:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/personal-settings/orders/[id]/products",function(){return i(16763)}])},69879:function(e,t,i){"use strict";i.d(t,{Aj:function(){return c},ZN:function(){return g},b1:function(){return u},hl:function(){return s},yi:function(){return o},zI:function(){return h}});var n=i(46645),r=i(78551),a=i(56711),l=i(95266),d=i(91031);let o=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,n.N)({queryKey:[d.pU],queryFn:e=>l.lP.getInstance().post((0,a.K)(`${d.T5}:search/`),{data:{pageNum:e.pageParam,pageSize:10}}),initialPageParam:0,enabled:e,getNextPageParam:(e,t)=>t.length})},s=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,n.N)({queryKey:[d.GN],queryFn:e=>l.lP.getInstance().post((0,a.K)(`${d.RU}:search/`),{data:{pageNum:e.pageParam,pageSize:10}}),initialPageParam:1,enabled:e,getNextPageParam:(e,t)=>t.length+1})},u=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,r.a)({...(0,d.zG)()(),enabled:e})},c=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.a)({...(0,d.gO)()(e),enabled:t&&null!==e&&Number.isFinite(e)})},g=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.a)({...(0,d.$l)()(e),enabled:t&&!!e,refetchInterval:6e4})},h=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.a)({...(0,d.B5)()(e),staleTime:0,enabled:t})}},81680:function(e,t,i){"use strict";var n=i(67294);t.Z=e=>{let[t,i]=(0,n.useState)(null),r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{r.current&&i(r.current)},[e]),[t,r]}},74968:function(e,t,i){"use strict";var n=i(35944),r=i(67294),a=i(81555);t.Z=e=>{let{color:t=a.O9.grey2,diameter:i=(0,a.bA)(1,!0),...l}=e,d=(0,r.useMemo)(()=>({width:i,height:i,backgroundColor:t,borderRadius:"50%"}),[t,i]);return(0,n.tZ)("div",{css:d,...l})}},45261:function(e,t,i){"use strict";i.d(t,{Z:function(){return B}});var n=i(35944),r=i(16829),a=i(71564),l=i.n(a),d=i(84914),o=i.n(d),s=i(67294),u=i(55797),c=i(41020),g=i(95850),h=i(81680),m=i(50347),p=i(62614),b=i(81555),f=i(78176),v=i(60141),Z=i(16380),A=e=>{let{prevElRef:t,nextElRef:i,width:r,height:a}=e,l=(0,s.useMemo)(()=>({width:r/2,height:a/2,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"50%",transform:"translateY(-50%)",backgroundColor:b.O9.white,zIndex:3,"&:disabled":{display:"none","+ div":{display:"none"}}}),[a,r]),d=(0,s.useMemo)(()=>({width:r,height:a,position:"absolute",top:0,pointerEvents:"none",zIndex:2}),[a,r]),o=(0,s.useMemo)(()=>({...l,left:0}),[l]),u=(0,s.useMemo)(()=>({...l,right:0}),[l]),c=(0,s.useMemo)(()=>({...d,left:0,background:"linear-gradient(270deg, rgba(249,249,249,0) 0%, rgba(249,249,249,1) 50%, rgba(249,249,249,1) 50%, rgba(249,249,249,1) 100%);"}),[d]),g=(0,s.useMemo)(()=>({...d,right:0,background:"linear-gradient(90deg, rgba(249,249,249,0) 0%, rgba(249,249,249,1) 50%, rgba(249,249,249,1) 50%, rgba(249,249,249,1) 100%);"}),[d]);return(0,n.BX)(n.HY,{children:[(0,n.tZ)("button",{ref:t,title:"Предыдущий слайд",type:"button",css:o,children:(0,n.tZ)(v.Z,{})}),(0,n.tZ)("div",{css:c}),(0,n.tZ)("button",{ref:i,title:"Следующий слайд",type:"button",css:u,children:(0,n.tZ)(Z.Z,{})}),(0,n.tZ)("div",{css:g})]})};let I={display:"flex",gap:(0,b.bA)(2)},x={display:"flex",alignItems:"start"},y={display:"flex",justifyContent:"center",alignItems:"center",svg:{fill:b.O9.dark}},w=(0,r.Z)("div",{target:"e1bxfbiy0"})({position:"relative"}),E=(0,r.Z)("div",{target:"e1bxfbiy1"})(I),k=e=>{let{products:t,gifts:i,unit:r,swiperProps:a,itemWidth:l=(0,b.bA)(7),itemHeight:d=(0,b.bA)(7),itemCSS:o,giftIconCSS:c,plusItemCSS:v,hideNavigation:Z,hideInfo:I,onGiftClick:E,isVisibleQty:k,eagerLoadImage:B}=e,N=(0,s.useRef)(null),[P,M]=(0,h.Z)(null),[_,C]=(0,h.Z)(null),$=(0,s.useMemo)(()=>({height:d,...y,...v}),[d,v]);return(0,n.BX)(w,{children:[!Z&&(0,n.tZ)(A,{prevElRef:M,nextElRef
1:C,width:l,height:d}),(0,n.BX)(g.l,{swiperRef:N,slidesPerView:"auto",spaceBetween:(0,b.bA)(1),modules:[u.W_],navigation:{nextEl:_,prevEl:P},slideCSS:x,...a,children:[null==t?void 0:t.map((e,t)=>{let{name:i,price:a,mainImage:s,isAvailable:u,qty:c,isFound:h}=e;return(0,n.tZ)(g.l.Item,{children:(0,n.tZ)(m.Z,{qty:c,isVisibleQty:k,image:s||h&&s?s:p.UF,alt:i||"Изображение контента",price:a,width:l,height:d,unit:r,hideInfo:I,css:o,isDisabled:!1===u,isFound:h,eagerLoadImage:B})},i||t)}),(null==t?void 0:t.length)>0&&(null==i?void 0:i.length)>0&&(0,n.tZ)(g.l.Item,{children:(0,n.tZ)("div",{css:$,children:(0,n.tZ)(f.Z,{})})}),null==i?void 0:i.map((e,t)=>{let{name:i,mainImage:r,isAvailable:a,freeGift:s}=e;return(0,n.tZ)(g.l.Item,{onClick:()=>{E&&E(!0)},children:(0,n.tZ)(m.Z,{image:r||p.UF,alt:i||"Изображение контента",name:i,width:l,height:d,hideInfo:I,giftIconCSS:c,isGift:!0,css:o,isDisabled:!0===s&&!1===a,eagerLoadImage:B})},i||t)})]})]})};var B=e=>{let{isLoading:t,eagerLoadImage:i=!1,...r}=e;return t?(0,n.tZ)(E,{children:l()(o()(0,4),e=>(0,n.tZ)(c.Z,{width:r.itemWidth||(0,b.bA)(7),height:r.itemHeight||(0,b.bA)(7)},e))}):(0,n.tZ)(k,{...r,eagerLoadImage:i})}},42502:function(e,t,i){"use strict";i.d(t,{J:function(){return r},r:function(){return a}});var n=i(67294);let r=e=>{let{children:t}=e;return t},a=e=>{let{children:t}=e,i=n.Children.toArray(t).filter(e=>(0,n.isValidElement)(e));for(let e of i)if((0,n.isValidElement)(e)&&e.props.if)return e;let r=[...i];for(let e of(r.reverse(),r))if((0,n.isValidElement)(e)&&void 0===e.props.if)return e;return null}},16763:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return N},default:function(){return P}});var n=i(35944),r=i(70917),a=i(11163),l=i(67294),d=i(69879),o=i(97612),s=i(31197),u=i(41020),c=i(56033),g=i(40944),h=i(49146),m=i(81555),p=i(17904),b=i(73504);let f={maxWidth:"none"},v=(0,r.iv)({backgroundColor:m.O9.back,padding:(0,m.bA)(3)}),Z=(0,r.iv)({marginBottom:(0,m.bA)(3,!0)}),A={gap:(0,m.bA)(4),cols:1},I=(0,r.iv)({display:"flex",flexDirection:"column",gap:(0,m.bA)(2),marginBottom:(0,m.bA)(3)}),x=(0,r.iv)({...(0,m.cp)("leadL"),marginBottom:(0,m.bA)(2)}),y=(0,r.iv)({display:"flex",gap:(0,m.bA)(2),alignItems:"center"}),w=(0,r.iv)({padding:10,backgroundColor:m.O9.white,minWidth:"fit-content"}),E=(0,r.iv)((0,m.cp)("m14Reg")),k="Товары в заказе",B={resize:{width:0,height:(0,m.bA)(10)}};var N=!0,P=()=>{var e,t,i;let{query:N}=(0,a.useRouter)(),P=N.id||null,M="true"===N.isPurchase,{isAuthenticated:_}=(0,o.E)(),C=(0,d.Aj)(Number(P),_&&!!P&&!M),$=(0,d.ZN)(`${P}`,_&&!!P&&M),S=(null===(e=C.data)||void 0===e?void 0:e.data)||(null===(t=$.data)||void 0===t?void 0:t.data),L=(0,l.useMemo)(()=>({customDetailUrl:N.from?`${N.from}`:`/personal-settings/orders/${P}`}),[P,N.from]),O=(0,l.useMemo)(()=>[{name:"Персональные настройки",position:1,href:"/personal-settings/"},{name:k,position:2,href:`/personal-settings/orders/${P}`}],[P]),X=(0,h.Y)(O);return(0,n.tZ)(s.Z,{pageTitle:M?"Ваша покупка":k,contentWrapperCSS:f,header:L,breadcrumbs:X,children:!C.isLoading&&(null==S?void 0:S.products)?(0,n.BX)(n.HY,{children:[(0,n.tZ)("div",{css:I,children:S.products.map(e=>(0,r.az)(g.Z,{...e,key:e.id}))}),!!(null===(i=S.gifts)||void 0===i?void 0:i.length)&&(0,n.BX)("div",{css:I,children:[(0,n.tZ)("h5",{css:x,children:"Ваши подарки"}),S.gifts.map((e,t)=>(0,n.BX)("div",{css:y,children:[(0,n.tZ)("div",{css:w,children:(0,n.tZ)(c.Z,{sources:[{media:"",image:e.mainImage||p.Z.src||""}],alt:e.name||"Изображение контента",width:(0,m.bA)(10),height:(0,m.bA)(10),isLazyLoading:!0,imageProxyParams:B})}),(0,n.tZ)("div",{css:E,children:e.name})]},"productId"in e?e.productId:t))]})]}):(0,n.BX)(m.Ar,{...A,children:[(0,n.tZ)(m.Ar.Item,{children:(0,n.tZ)(b.Z,{})}),(0,n.tZ)(m.Ar.Item,{css:v,children:(0,n.tZ)(m.Ar,{...A,children:[1,2,3,4].map(e=>(0,n.BX)(m.Ar.Item,{children:[(0,n.tZ)(u.Z,{height:(0,m.bA)(7,!0),width:(0,m.bA)(24),css:Z}),(0,n.tZ)(u.Z,{})]},e))})}),(0,n.tZ)(m.Ar.Item,{css:v,children:(0,n.tZ)(u.Z,{})})]})})}},31197:function(e,t,i){"use strict";var n=i(35944),r=i(70917),a=i(67294),l=i(94069),d=i(97612),o=i(64049),s=i(61976),u=i(9693),c=i(81555),g=i(7860),h=i(5713);let{md:m}=c.MEDIA_QUERIES,p=(0,r.iv)({background:c.O9.back}),b=(0,r.iv)({display:"block",[m]:{display:"none"}}),f={cols:{xxxl:"minmax(348px, 3fr) 9fr",sm:1},gap:(0,c.bA)(10)+(0,c.bA)(1,!0)};t.Z=e=>{var t;let{pageTitle:i,className:r,children:v,contentWrapperCSS:Z,contentCSS:A,layoutCSS:I,header:x,hideFooter:y,breadcrumbs:w}=e,{isAuthenticated:E}=(0,d.E)();(0,g.B)();let k=(0,l.ih)(E);(0,l.GL)(E);let B=(0,a.useMemo)(()=>{var e;return null===(e=k.data)||void 0===e?void 0:e.data},[null===(t=k.data)||void 0===t?void 0:t.data]),N=(0,a.useMemo)(()=>
1({paddingTop:(0,c.bA)(5),paddingBottom:(0,c.bA)(17)+(0,c.bA)(1,!0),[m]:{paddingTop:(0,c.bA)(2),paddingBottom:(0,c.bA)(2)},...I}),[I]),P=(0,a.useMemo)(()=>({alignSelf:"start",padding:`${(0,c.bA)(7)+(0,c.bA)(1,!0)}px ${(0,c.bA)(2)}px`,background:c.O9.white,position:"relative",[m]:{padding:0,background:c.O9.back,overflow:"hidden"},...A}),[A]),M=(0,a.useMemo)(()=>({maxWidth:(0,c.bA)(79),display:"flex",flexDirection:"column",alignItems:"stretch",margin:"auto",...Z}),[Z]),_=(0,a.useMemo)(()=>({variant:o.C.DETAIL,...x}),[x]),C=(0,u.N)();return(0,n.tZ)(s.Z,{header:_,defaultTitle:i,className:r,hideFooter:y,breadcrumbs:w,canonical:C,noIndex:!0,children:(0,n.tZ)(c.$0,{css:p,children:(0,n.BX)(c.Ar,{...f,css:N,children:[(0,n.tZ)(c.Ar.Item,{css:b,children:(0,n.tZ)(h.Z,{isLoggedIn:!0,isMobile:!1,bonusCard:B?{...B,showBarcode:!!B.cardNumber}:void 0,isLoadingBonusCard:k.isLoading})}),(0,n.tZ)(c.Ar.Item,{css:P,children:(0,n.tZ)("div",{css:M,children:v})})]})})})}},73504:function(e,t,i){"use strict";var n=i(35944),r=i(70917),a=i(41020),l=i(45261),d=i(81555);let{sm:o}=d.MEDIA_QUERIES,s=(0,r.iv)({backgroundColor:d.O9.back,padding:`${(0,d.bA)(5,!0)}px ${(0,d.bA)(3)}px`,[o]:{padding:`${(0,d.bA)(5,!0)}px 0`,borderBottom:`1px solid ${d.O9.grey1}`}}),u=(0,r.iv)({display:"flex",flexDirection:"column",gap:(0,d.bA)(1,!0)}),c=(0,r.iv)({padding:`${(0,d.bA)(3,!0)}px 0`});t.Z=()=>(0,n.BX)("div",{css:s,children:[(0,n.BX)("div",{css:u,children:[(0,n.tZ)(a.Z,{width:"50%",height:(0,d.bA)(5,!0)}),(0,n.tZ)(a.Z,{width:"80%"})]}),(0,n.tZ)("div",{css:c,children:(0,n.tZ)(l.Z,{isLoading:!0})}),(0,n.tZ)(a.Z,{})]})}},function(e){e.O(0,[9484,1664,3169,9916,2061,5797,2697,7688,2792,8394,1976,5490,7491,944,2888,9774,179],function(){return e(e.s=47958)}),_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.