PageSourceSearch

https://baucenter.ru/_next/static/chunks/pages/personal/order/[orderId]-2b7084372860cd55.js

js baucenter.ru collected 2026-10-01 14:13:00 UTC 35,806 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5183,7890],{87890:function(e,t,n){"use strict";var r,o=n(67294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",_extends({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",id:"plus"},e),r||(r=o.createElement("path",{d:"M11 11.5H11.5V11V5.5H12.5V11V11.5H13H18.5V12.5H13H12.5V13V18.5H11.5V13V12.5H11H5.5V11.5H11Z",fill:"currentColor",stroke:"currentColor"})))}},78971:function(e,t,n){"use strict";var r,o=n(67294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",_extends({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",id:"watch"},e),r||(r=o.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C14.1217 20 16.1566 19.1571 17.6569 17.6569C19.1571 16.1566 20 14.1217 20 12C20 9.87827 19.1571 7.84344 17.6569 6.34315C16.1566 4.84285 14.1217 4 12 4C9.87827 4 7.84344 4.84285 6.34315 6.34315C4.84285 7.84344 4 9.87827 4 12C4 14.1217 4.84285 16.1566 6.34315 17.6569C7.84344 19.1571 9.87827 20 12 20ZM13 12H17V14H11V7H13V12Z",fill:"currentColor"})))}},92525:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/personal/order/[orderId]",function(){return n(37152)}])},94345:function(e,t,n){"use strict";n.d(t,{U:function(){return p}});var r=n(85893),o=n(67294),i=n(20860),l=n(11039);let a={info:(0,r.jsx)(i.I$,{}),map:(0,r.jsx)(l.Z,{})};var c=n(82729),s=n(52015),d=n(86546);function _templateObject(){let e=(0,c._)(["\n        transform: unset;\n        min-width: unset;\n        height: 24px;\n        flex: 0 0 24px;\n    "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,c._)(["\n    padding: 14px;\n    border-radius: 4px;\n    background-color: ",";\n    display: flex;\n    gap: 4px;\n    overflow: hidden;\n    line-height: 16px;\n    ","\n\n    @media "," {\n        ","\n    }\n\n    & > svg {\n        min-width: 24px;\n        height: 24px;\n        margin-right: 4px;\n        transform: rotate(180deg);\n        color: ",";\n\n        ","\n    }\n\n    .long-text_break {\n        word-break: break-all;\n    }\n"]);return _templateObject1=function(){return e},e}let u=s.ZP.div.withConfig({componentId:"sc-a33c3e63-0"})(_templateObject1(),e=>{let{$type:t}=e;switch(t){case"error":return d.$_.statusError10;case"warning":return d.$_.statusWarning10;default:return d.$_.primary10}},e=>{let{$isCentered:t}=e;return t?"align-items: center;":"align-items: flex-start;"},d.j$.SCREEN_MOBILE,e=>{let{$icon:t}=e;return"map"===t&&"padding: 16px 20px;"},e=>{let{$type:t}=e;switch(t){case"error":return d.$_.statusError50;case"warning":return d.$_.statusWarning50;default:return d.$_.primary60}},e=>{let{$icon:t}=e;return"map"!==t?null:(0,s.iv)(_templateObject())}),p=(0,o.forwardRef)((e,t)=>{let{className:n,children:o,type:i="info",icon:l="info",hasInfoIcon:c=!0,id:s,isCentered:d=!1}=e;return(0,r.jsxs)(u,{ref:t,id:s,$icon:l,className:n,$type:i,$isCentered:d,children:[c&&a[l],o]})})},93766:function(e,t,n){"use strict";n.d(t,{i:function(){return ModalLazyLoader}});var r=n(85893),o=n(67294),i=n(80226),l=n(82729),a=n(52015);function _templateObject(){let e=(0,l._)(["\n    position: fixed;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    z-index: 10;\n    cursor: wait;\n"]);return _templateObject=function(){return e},e}let c=a.ZP.div.withConfig({componentId:"sc-4bcce21d-0"})(_templateObject()),ModalLazyLoader=()=>{let e=(0,o.useRef)(),[t,n]=(0,o.useState)();return(0,o.useEffect)(()=>(e.current&&clearInterval(e.current),e.current=setTimeout(()=>{n(!0)},800),()=>{clearInterval(e.current)}),[]),(0,r.jsx)(c,{children:t&&(0,r.jsx)(i.m9,{isNotForReload:!0})})}},41519:function(e,t,n){"use strict";var r,o;n.d(t,{E:function(){return i},g:function(){return r}}),(o=r||(r={})).Click="click",o.Hover="hover",o.Focus="focus";let i={TOP_LEFT:"topLeft",TOP_RIGHT:"topRight",BOTTOM_LEFT:"bottomLeft",BOTTOM_RIGHT:"bottomRight",LEFT:"left",RIGHT:"right",TOP:"top"}},22425:function(e,t,n){"use strict";n.d(t,{EN:function(){return a.E},go:function(){return a.g},u:function(){return Tooltip}});var r=n(85893),o=n(5152),i=n.n(o),l=n(92948),a=n(41519);let c=i()(()=>Promise.all([n.e(7213),n.e(3953)]).then(n.bind(n,33953)),{loadableGenerated:{webpack:()=>[33953]}}),Tooltip=e=>{let{children:t,...n}=e,o=(0,l.B8)({beforeMount:t,afterMount:(0,r.jsx)(c,{...n,children:t})});return o}},43300:function(e,t,n){"use strict";n.d(t,{c:function(){return f}});var r=n(85893),o=n(67294),i=n(97500),l=n(22888),a=n(87890),c=n(10055),s=n(82729),d=n(89542),u=n(52015),p=n(86546);
1function _templateObject(){let e=(0,s._)(["\n                        svg {\n                            display: none;\n                        }\n                    "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,s._)(["\n                        transition: color ",";\n\n                        background-color: transparent;\n                        border: none;\n                        color: ",";\n                        padding-right: 20px;\n\n                        svg {\n                            width: 24px;\n                            height: 24px;\n                            margin-right: 8px;\n                        }\n\n                        &:hover {\n                            background-color: transparent;\n                            border: none;\n                            color: ",";\n                        }\n\n                        &:active {\n                            background-color: ",";\n                            color: ",";\n                        }\n\n                        &:focus-visible {\n                            color: ",";\n                            outline: 2px solid ",";\n                        }\n                    "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,s._)(["\n                        display: none;\n                    "]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,s._)(["\n        ","\n\n        margin-top: ",";\n\n        @media "," {\n            display: flex;\n\n            svg {\n                display: none;\n            }\n        }\n    "]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,s._)(["\n        margin-bottom: 8px;\n\n        @media "," {\n            margin-bottom: 12px;\n        }\n    "]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,s._)(["\n        @media "," {\n            margin-bottom: 16px;\n        }\n    "]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,s._)(["\n        ","\n        ","\n      \n        @media  "," {\n            min-width: unset;\n        }\n    "]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,s._)(["\n        display: flex;\n        flex-direction: column;\n        gap: 6px;\n    "]);return _templateObject7=function(){return e},e}let m={TooltipMainOverlayButton:(0,u.ZP)(c.zx).withConfig({componentId:"sc-9c564036-0"})(_templateObject3(),e=>{let{desktopTheme:t}=e;switch(t){case c.uY.PRIMARY:return(0,u.iv)(_templateObject());case c.uY.GHOST:return(0,u.iv)(_templateObject1(),p.sF.ANIMATION,p.$_.primary80,p.$_.primary50,p.$_.primary10,p.$_.primary70,p.$_.primary70,p.$_.primary70);default:return(0,u.iv)(_templateObject2())}},e=>{let{$marginTop:t}=e;return"".concat(t,"px")||0},p.j$.SCREEN_MOBILE),TooltipMainOverlayTitle:(0,u.ZP)(d.ZT).withConfig({componentId:"sc-9c564036-1"})(_templateObject4(),p.j$.SCREEN_MOBILE),Text:u.ZP.div.withConfig({componentId:"sc-9c564036-2"})(_templateObject5(),p.j$.SCREEN_MOBILE),Container:u.ZP.div.withConfig({componentId:"sc-9c564036-3"})(_templateObject6(),e=>e.$noMinWidth?"min-width: 0;":"min-width: 336px;",e=>{let{$containerPaddingLR:t}=e;return t&&"padding:0px ".concat(t,"px;")},p.j$.SCREEN_MOBILE),Description:(0,u.ZP)(d.ZT).withConfig({componentId:"sc-9c564036-4"})(_templateObject7())},f=(0,o.memo)(e=>{let{title:t,children:n,buttonMarginTopPx:o,description:s,descriptionVariant:d="p-medium",buttonText:u=l.dq,onClick:p,isStretchedButton:f,noMinWidth:h=!1,hasPlusIcon:x=!0,showDangerousHTML:g=!1,buttonDesktopTheme:j,isContentSize:_,hasButton:v=!0,containerPaddingLR:y}=e;return(0,r.jsxs)(m.Container,{$noMinWidth:h,$containerPaddingLR:y,className:"tooltipMainOverlayContainer",children:[(0,r.jsxs)(m.Text,{children:[t&&(0,r.jsx)(m.TooltipMainOverlayTitle,{color:"primary80",element:"h5",variant:"h5",children:t}),null!=n?n:(0,r.jsx)(r.Fragment,{children:g?(0,r.jsx)(i.Z,{element:"p",variant:d,color:"gray100",children:s}):(0,r.jsx)(m.Description,{element:"p",variant:d,color:"gray100",children:s})})]}),v&&(0,r.jsxs)(m.TooltipMainOverlayButton,{$marginTop:o,"data-modal-action":"close",desktopTheme:j,isContentSize:_,isStretched:j===c.uY.PRIMARY||f,isWithoutPaddings:j===c.uY.GHOST,onClick:p,children:[x&&(0,r.jsx)(a.Z,{}),u]})]})})},40940:function(e,t,n){"use strict";n.d(t,{V:function(){return h}});var r=n(85893),o=n(67294),i=n(52513),l=n(26102),a=n(74167),c=n(71261),s=n(82729),d=n(52015
1),u=n(86546),p=n(39287),m=n(22425);function _templateObject(){let e=(0,s._)(["\n        padding: 24px;\n    "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,s._)(["\n        cursor: pointer;\n        display: inline-grid;\n    "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,s._)(["\n        bottom: 0;\n        display: flex;\n        flex-direction: column;\n        max-width: 100%;\n        padding: 24px;\n        @media "," {\n            padding: 12px 24px 24px 24px;\n            & .regularModalHeader {\n                margin-right: -24px;\n            }\n        }\n        position: absolute;\n        top: auto;\n    "]);return _templateObject2=function(){return e},e}let f={Tooltip:(0,d.ZP)(m.u).withConfig({componentId:"sc-a52906b4-0"})(_templateObject()),Button:d.ZP.button.withConfig({componentId:"sc-a52906b4-1"})(_templateObject1()),Modal:(0,d.ZP)(p.T).withConfig({componentId:"sc-a52906b4-2"})(_templateObject2(),u.j$.SCREEN_MOBILE)},h=(0,o.memo)(e=>{let{children:t,getTooltipContainer:n,tooltipOverlay:s,modalName:d,modalTitle:u,trigger:p,placement:m,zIndex:h=5,onVisibleChange:x,needCloseModal:g=!1}=e,j=(0,i.T)(),{isMobile:_}=(0,l.ZP)(),v=(0,o.useId)(),y=null!=d?d:v,b=(0,o.useCallback)(e=>{null==x||x(e)},[x]),O=(0,o.useCallback)(e=>{e.stopPropagation(),b(!0),j((0,c.K4)(y))},[j,b,y]);return _?(0,r.jsxs)(f.Button,{type:"button",onClick:O,children:[t,(0,r.jsx)(a.u,{hasPortal:!0,name:y,willMount:!0,onClose:()=>{b(!1),g&&j((0,c.VG)(y))},children:(0,r.jsx)(f.Modal,{hasClose:!0,title:u,smallBtmPadHeader:!0,children:s})})]}):(0,r.jsx)(f.Tooltip,{getTooltipContainer:n,overlay:s,placement:m,trigger:p,onVisibleChange:b,zIndex:h,children:(0,r.jsx)(f.Button,{type:"button",children:t})})})},24056:function(e,t,n){"use strict";n.d(t,{b:function(){return translit}});let r={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"e",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"ts",ч:"ch",ш:"sh",щ:"sch",ь:"",ы:"y",ъ:"",э:"e",ю:"yu",я:"ya"},translit=e=>e.split("").map(e=>{if(" "===e)return"__";let t=r[e.toLowerCase()]||e;return e.toUpperCase()===e?t.charAt(0).toUpperCase()+t.slice(1):t}).join("")},39287:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(82729),o=n(52015),i=n(86546),l=n(23513);function _templateObject(){let e=(0,r._)(["\n    ","\n\n    @media  "," {\n        position: fixed;\n        top: auto;\n        flex-direction: column;\n        bottom: 0;\n        max-width: 100%;\n        padding: 12px 16px 24px;\n    }\n"]);return _templateObject=function(){return e},e}let a=(0,o.ZP)(l.$).withConfig({componentId:"sc-6319ca33-0"})(_templateObject(),(0,i.D8)("flex"),i.j$.SCREEN_MOBILE)},45759:function(e,t,n){"use strict";n.d(t,{y:function(){return DetailBlock}});var r=n(85893),o=n(47521),i=n(89542),l=n(22888),a=n(43726),c=n(52513),s=n(26102),d=n(91510),u=n(14655),p=n(94345),m=n(48065),f=n(52592);let DetailBlock=e=>{let{title:t,className:n,order:h,productsCount:x,slot:g,variant:j,needTrackNumber:_}=e,{cost:v,payment:y}=h,{isDesktop:b}=(0,s.ZP)(),O=(0,c.C)(d.JX),T=O.some(e=>e.type===o.RP.Profi);return(0,r.jsxs)(u.k,{className:n,dir:"column",gap:12,children:["done-page"===j&&(null==y?void 0:y.paymentMethod.shortPaymentUrl)&&(0,r.jsx)(p.U,{type:"warning",children:(0,r.jsx)(i.ZT,{variant:"p-medium",children:"Заказ необходимо оплатить указанным при оформлении способом в течение 20 минут, иначе он будет отменен"})}),(0,r.jsx)(m.e,{order:h,slot:g,needTrackNumber:_}),(0,r.jsxs)(u.k,{justifyContent:"space-between",children:[(0,r.jsx)(f._,{title:t,order:h,orderTitleVariant:"h5"}),(0,r.jsxs)(u.k,{alignItems:"flex-end",dir:"column",gap:b?2:4,children:["number"==typeof(null==v?void 0:v.totalCost)&&(0,r.jsxs)(i.ZT,{variant:"price-preview-m",children:[(0,a.T4)("".concat(parseFloat(((null==v?void 0:v.totalCost)/l.oy).toFixed(T?2:0))))," ","₽"]}),x&&(0,r.jsx)(i.ZT,{color:"gray70",variant:"p-medium",children:"".concat(x," ").concat((0,a.Ho)(x,l.f0.PRODUCT))})]})]})]})}},13182:function(e,t,n){"use strict";n.d(t,{p:function(){return useOrderQueryParams}});var r=n(11163),o=n(17153);let useOrderQueryParams=()=>{let{query:e}=(0,r.useRouter)();return{orderNumber:(0,o.N)(null==e?void 0:e.orderId),state:(0,o.N)(null==e?void 0:e.state)}}},37152:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ej},default:function(){return _orderId_}});var r,o,i,l,a=n(85893),c=n(9473),s=n(42388),d=n(13182),u=n(29204),p=n(11163),m=n.n(p),f=n(17153),h=n(86102),x=n(55735);let getOrdersPaymentVisitList=()=>{try{var e;let t=null!==(e=localStorage.getItem(x.xG))&&void 0!==e?e:"[]";return JSON.parse(t)}catch(e){return localStorage.removeItem(x.xG),[]}};var g=n(49889),j=n(87220),_=n(55763);let initDonePageAction=e=>async(t,n)=>{let{query:r}=m(),o=(0,f.N)(null==r?void 0:r.orderId),i=(0,f.N)(null==r?void 0:r.state),l=(0,f.N)(null==r?void 0:r.checkResult),a=(0,f.N)(null==r?void 0:r.hash),c=i||l;if(o){t((0,h.Un)(!0));try{var s,d;if(c&&await t((0,_.I)()),n().orderState.shortPageType)return;await t((0,g.l)({orderNumber:o,state:i,checkResult:l,hash:a}));let r=n().orderState.order;if(!r)return;let u=r.number||o,p=null===(s=r.payment)||void 0===s?void 0:s.paymentMethod.code,m=null===(d=r.status)||void 0===d?void 0:d.code,f=m===x.DR.Created||m===x.DR.WaitingForPayment,h=f&&p&&x.v.includes(p),v=getOrdersPaymentVisitList();if(h&&!v.includes(r.number||o)){let n=[...v,u];localStorage.setItem(x.xG,JSON.stringify(n)),await t((0,j.x)({order:r,isDesktop:e}))}}catch(n){if(!(n instanceof u.d7))return;if(303===n.status){await t((0,j.x)({isDesktop:e,isShortPage:!0}));return}}finally{t((0,h.Un)(!1))}}};var v=n(59027),y=n(89542),b=n(52513),O=n(86546),T=n(26102),C=n(67294);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var circle_check=function(e){return C.createElement("svg",_extends({viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",id:"checkbox-circle-big"},e),r||(r=C.createElement("circle",{cx:60,cy:60,r:45.25,stroke:"currentColor",strokeWidth:3.5})),o||(o=C.createElement("path",{d:"M35.5601 57.0141L56.8122 76.92L88.2001 43.08",stroke:"currentColor",strokeWidth:3.5})))};function circle_error_extends(){return(circle_error_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var circle_error=function(e){return C.createElement("svg",circle_error_extends({viewBox:"0 0 121 120",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=C.createElement("circle",{cx:60.5,cy:60,r:45.25,stroke:"currentColor",strokeWidth:3.5})),l||(l=C.createElement("path",{d:"M40.5 79.9997L80.5 39.9998M80.5 79.9997L40.5 39.9998",stroke:"currentColor",strokeWidth:3.5})))},w=n(10055),P=n(14655);let k={default:"Заказ оплачен!",isError:"Заказ не оплачен",isPaid:"Заказ уже оплачен!",notFound:"Заказ отменён"};
1var I=n(31798),E=n(82729),M=n(52015);function _templateObject(){let e=(0,E._)(["\n    padding: 12px 0;\n    margin: 160px 0;\n\n    @media screen and "," {\n        margin: 60px 0;\n    }\n\n    .text {\n        max-width: 600px;\n\n        @media screen and "," {\n            max-width: 328px;\n        }\n    }\n\n    .button {\n        margin-top: 8px;\n    }\n"]);return _templateObject=function(){return e},e}let Z=(0,M.ZP)(P.k).withConfig({componentId:"sc-477a29b1-0"})(_templateObject(),O.j$.SCREEN_MOBILE,O.j$.SCREEN_MOBILE),OrderShortPageContent=e=>{let{type:t,orderNumber:n}=e,r=(0,b.T)(),{isDesktop:o,isMobile:i}=(0,T.ZP)(),l="isError"===t,c="notFound"===t,s=l||c?circle_error:circle_check,d=i?110:220;return(0,a.jsx)(v.W,{children:(0,a.jsxs)(Z,{dir:i?"column":"row",gap:i?16:40,alignItems:i?"flex-start":"center",justifyContent:"center",children:[(0,a.jsx)(s,{width:d,height:d,color:l||c?O.$_.statusError50:O.$_.primary80}),(0,a.jsxs)(P.k,{className:"text",gap:16,dir:"column",alignItems:"flex-start",children:[(0,a.jsx)(y.ZT,{variant:"h1",element:"h1",children:k[t]}),(0,a.jsx)(y.ZT,{element:"p",color:"gray80",children:(0,I.o)(n,t)}),l&&(0,a.jsx)(w.zx,{className:"button",onClick:()=>{r(initDonePageAction(o))},children:"Оплатить"})]})]})})},OrderShortPage=e=>{let{type:t}=e,{orderNumber:n}=(0,d.p)();return n?(0,a.jsx)(OrderShortPageContent,{type:t,orderNumber:n}):null};var D=n(15941),R=n(68984),B=n(54349),S=n(85258);let useCheckoutPaidOrderYandex=()=>{let e=(0,S.C)(),t=(0,b.C)((0,D.$)("orderState","order")),n=(0,C.useCallback)(()=>{var n;if(!t)return;let{products:r,cost:o,wayToReceive:i,payment:l,codeOfWayToReceive:a,number:c}=t,s=(null==r?void 0:r.map(e=>e.article||""))||[],d=(null==r?void 0:r.reduce((e,t)=>e+Number(t.quantity),0))||0,u=(null==o?void 0:o.baseProductsCost)?Math.round((1-(null==o?void 0:o.productsCost)/(null==o?void 0:o.baseProductsCost))*100):0,p=null==l?void 0:null===(n=l.paymentMethod)||void 0===n?void 0:n.code,m=(0,B.WJ)(a)?B.sC[a]:"store",f=i&&"address"in i?i.address:"";R.S.checkoutPaidOrder({...e,obtainingMethod:m,paymentMethod:p,totalCost:((null==o?void 0:o.totalCost)||0)/100,discountValue:u,orderNumber:Number(c)||0,articles:JSON.stringify(s),quantity:d,distinctQuantity:(null==r?void 0:r.length)||0,locationAddress:f})},[e,t]);return{sendCheckoutPaidOrder:n}};var N=n(31592),$=n(17425),W=n(59116),L=n(52775);let useOrderDonePage=e=>{let t=(0,b.T)(),{isDesktop:n}=(0,T.ZP)(),{state:r}=(0,d.p)(),{sendCheckoutPaidOrder:o}=useCheckoutPaidOrderYandex();(0,C.useEffect)(()=>{t((0,W.Bv)($.I7.ORDER_DONE))},[]),(0,C.useEffect)(()=>{if(!(null==e?void 0:e.status)||!e.number)return;let t="canceled"!==e.status.code,n=N.G.order.getPurchaseFlag(),r=n.includes(e.number);t&&r&&e&&setTimeout(()=>{N.G.order.purchase(e.products||[]),N.G.order.removePurchaseFlag(e.number||"")},1e3)},[e,r]),(0,C.useEffect)(()=>{t(initDonePageAction(n))},[t,n]),(0,C.useEffect)(()=>{let e=localStorage.getItem(x.IX);e&&(t((0,L.oV)(JSON.parse(e))),o(),localStorage.removeItem(x.IX))},[t,o])};var Y=n(5152),F=n.n(Y),H=n(20860),V=n(74167),G=n(71469),z=n(45759),A=n(22888);let GoToTheOrderButton=()=>{let{isMobile:e}=(0,T.ZP)(),{query:t}=(0,p.useRouter)();return(0,a.jsxs)(w.zx,{isStretched:e,isWithoutPaddings:!0,isContentSize:!0,theme:"ghost",onClick:()=>{t.orderId&&(window.location.href="".concat(A.QQ,"/").concat(t.orderId,"/"))},children:["Перейти к заказу ",(0,a.jsx)(H.Wf,{})]})};var U=n(50088),K=n(43726),J=n(54205),X=n(2240),q=n(94345);function styled_templateObject(){let e=(0,E._)(["\n        order: 1;\n        margin-top: 16px;\n\n        @media "," {\n            order: 0;\n            margin: 0 0 16px 0;\n        }\n    "]);return styled_templateObject=function(){return e},e}function _templateObject1(){let e=(0,E._)(["\n        margin-bottom: 12px;\n    "]);return _templateObject1=function(){return e},e}let Q={InfoBlock:(0,M.ZP)(q.U).withConfig({componentId:"sc-9442d657-0"})(styled_templateObject(),O.j$.SCREEN_MOBILE),Typography:(0,M.ZP)(y.ZT).withConfig({componentId:"sc-9442d657-1"})(_templateObject1())},OrderListBlock=e=>{var t;let{isPreOrder:n,products:r}=e,{isDesktop:o}=(0,T.ZP)(),{mobileListLength:i,mobileImageSize:l}=(0,X.t)(),c=null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0;return(0,a.jsxs)(P.k,{dir:"column",children:[n&&(0,a.jsx)(Q.InfoBlock,{type:"warning",children:(0,a.jsx)(y.ZT,{variant:"p-medium",children:"Некоторых позиций в заказе нет в достаточном количестве. С вами свяжется менеджер отдела \xabПрофи\xbb для уточнения деталей заказа и сроков доставки."})}),(0,a.jsxs)(Q.Typography,{color:"gray70",variant:"p-medium",children:[c," ",(0,K.Ho)(c,A.f0.PRODUCT)]}),(0,a.jsx)(J.x,{previewMaxCount:o?7:i,imageSizes:o?74:l,products:r,isPlainList:!0})]})};
1var ee=n(47521),et=n(17610);let getTextDescription=e=>{let{hasCard:t,isBonus:n,isCashless:r,isProfiOrOoso:o,isOwnCash:i}=e,l="";return i?"Доступные средства по договору будут списаны после отгрузки":(r&&(l+="На указанную вами почту будет отправлен счет на оплату"),t&&(r&&(l+=". "),n?l+="Бонусы":o&&(l+="Баллы"),l+=" зачисляются на баланс карты после того, как вы получите товар"),l)};function TextDescription_styled_templateObject(){let e=(0,E._)(["\n        margin-bottom: 24px;\n    "]);return TextDescription_styled_templateObject=function(){return e},e}let en={TextDescription:(0,M.ZP)(y.ZT).withConfig({componentId:"sc-8861ed8f-0"})(TextDescription_styled_templateObject())},TextDescription=e=>{let{card:t,payment:n,cost:r}=e,o=null==n?void 0:n.paymentMethod.code,i="cashless"===o,l=(null==t?void 0:t.type)===ee.RP.Bonus,c=(0,et.bg)(null==t?void 0:t.type)||(null==t?void 0:t.type)===ee.RP.Ooso&&!!(null==r?void 0:r.bonuses),s=l||c;if(!i&&!s)return null;let d=getTextDescription({isOwnCash:"owncash"===o,isCashless:i,hasCard:s,isBonus:l,isProfiOrOoso:c});return(0,a.jsx)(en.TextDescription,{element:"p",children:d})};var er=n(37758),eo=n(78971);function PaymentStatus_styled_templateObject(){let e=(0,E._)(["\n        display: flex;\n        align-items: center;\n        gap: 4px;\n\n        svg {\n            height: 20px;\n            width: 20px;\n        }\n\n        @media "," {\n            justify-content: center;\n            font-size: 14px;\n        }\n    "]);return PaymentStatus_styled_templateObject=function(){return e},e}let ei={Typography:(0,M.ZP)(y.ZT).withConfig({componentId:"sc-2486eaf2-0"})(PaymentStatus_styled_templateObject(),O.j$.SCREEN_MOBILE)},el=(0,a.jsxs)(a.Fragment,{children:["Заказ оплачен",(0,a.jsx)(er.Z,{})]}),ea={"not-paid":{title:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(H.GY,{}),"Заказ не оплачен"]}),color:"error50"},invoice:{title:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eo.Z,{}),"Выставлен счёт"]}),color:"warning50"},waiting:{title:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eo.Z,{}),"Ожидается платеж"]}),color:"warning50"},paid:{title:el,color:"success50"},"advance-received":{title:el,color:"success50"},"summa-zahold":{title:el,color:"success50"}},PaymentStatus=e=>{let{code:t}=e;return"fail"===t?null:(0,a.jsx)(ei.Typography,{color:ea[t].color,variant:"p-medium-strong",children:ea[t].title})};n(70600);let CDEKBlock=e=>{let{wayToReceive:t}=e;return(0,a.jsxs)(a.Fragment,{children:[!!t.readyTime&&(0,a.jsx)(y.ZT,{color:"gray80",variant:"p-medium",children:t.readyTime}),(0,a.jsx)(y.ZT,{color:"gray80",variant:"p-medium",children:t.address})]})};var ec=n(27484),es=n.n(ec);let DeliveryBlock=e=>{var t;let{wayToReceive:n}=e;return(0,a.jsxs)(a.Fragment,{children:[!!(null===(t=n.deliveryTime)||void 0===t?void 0:t.date)&&(0,a.jsxs)(y.ZT,{color:"gray80",variant:"p-medium",children:["Привезём ",es()(n.deliveryTime.date).locale("ru").format("DD MMMM")," ",n.deliveryTime.time]}),n.deliveryAddress&&(0,a.jsxs)(y.ZT,{color:"gray80",variant:"p-medium",children:[n.deliveryAddress.address,!!n.deliveryAddress.entrance&&", подъезд ".concat(n.deliveryAddress.entrance),!!n.deliveryAddress.floor&&", этаж ".concat(n.deliveryAddress.floor),!!n.deliveryAddress.apartment&&", кв. ".concat(n.deliveryAddress.apartment)]})]})},PickupBlock=e=>{let{wayToReceive:t}=e;return(0,a.jsxs)(a.Fragment,{children:[!!t.readyTime&&(0,a.jsx)(y.ZT,{color:"gray80",variant:"p-medium",children:t.readyTime}),(0,a.jsx)(y.ZT,{color:"gray80",variant:"p-medium",children:"Срок хранения заказа - 3 дня"}),(0,a.jsx)(y.ZT,{color:"gray80",variant:"p-medium",children:t.address}),!!t.workingHours&&(0,a.jsxs)(y.ZT,{color:"gray80",variant:"p-medium",children:[t.workingHours.title," ",t.workingHours.from," - ",t.workingHours.to]})]})},PickUpPointBlock=e=>{let{wayToReceive:t}=e;return(0,a.jsxs)(a.Fragment,{children:[!!t.readyTime&&(0,a.jsx)(y.ZT,{color:"gray80",variant:"p-medium",children:t.readyTime}),(0,a.jsx)(y.ZT,{color:"gray80",variant:"p-medium",children:t.address})]})},WayToReceiveInfoBlocks=e=>{let{codeOfWayToReceive:t,wayToReceive:n}=e,r=t===B.xg.Pickup&&"readyTime"in n,o=t===B.xg.Delivery&&"deliveryTime"in n,i=t===B.xg.PickupPoint&&"readyTime"in n,l=t===B.xg.CDEK&&"readyTime"in n;return r?(0,a.jsx)(PickupBlock,{wayToReceive:n}):i?(0,a.jsx)(PickUpPointBlock,{wayToReceive:n}):o?(0,a.jsx)(DeliveryBlock,{wayToReceive:n}):l?(0,a.jsx)(CDEKBlock,{wayToReceive:n}):null};
1function WayToReceiveInfo_styled_templateObject(){let e=(0,E._)(["\n        width: 50%;\n\n        span {\n            display: block;\n        }\n    "]);return WayToReceiveInfo_styled_templateObject=function(){return e},e}function styled_templateObject1(){let e=(0,E._)(["\n        margin-bottom: 8px;\n    "]);return styled_templateObject1=function(){return e},e}let ed={Block:M.ZP.div.withConfig({componentId:"sc-c18ef496-0"})(WayToReceiveInfo_styled_templateObject()),BlockTitle:(0,M.ZP)(y.ZT).withConfig({componentId:"sc-c18ef496-1"})(styled_templateObject1())},eu={pickup:"Самовывоз",delivery:"Доставка","pickup-point":"Пункт выдачи",CDEK:"Транспортная компания"},WayToReceiveInfo=e=>{let{codeOfWayToReceive:t,wayToReceive:n}=e;return n?(0,a.jsxs)(ed.Block,{children:[(0,a.jsx)(ed.BlockTitle,{variant:"p-medium-strong",children:eu[t]}),(0,a.jsx)(WayToReceiveInfoBlocks,{codeOfWayToReceive:t,wayToReceive:n})]}):null};var ep=n(32986),em=n(76813);function WayToReceiveBlock_styled_templateObject(){let e=(0,E._)(["\n        width: 50%;\n\n        span {\n            display: block;\n        }\n    "]);return WayToReceiveBlock_styled_templateObject=function(){return e},e}function WayToReceiveBlock_styled_templateObject1(){let e=(0,E._)(["\n        margin-bottom: 8px;\n    "]);return WayToReceiveBlock_styled_templateObject1=function(){return e},e}function _templateObject2(){let e=(0,E._)(["\n        svg {\n            height: 16px;\n            width: 16px;\n            rotate: ","90deg;\n            transition: rotate 300ms;\n        }\n    "]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,E._)(["\n        display: flex;\n        align-items: center;\n        gap: 4px;\n    "]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,E._)(["\n        border-radius: 4px;\n        background-color: ",";\n        padding: 16px;\n    "]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,E._)(["\n        margin-top: 16px;\n    "]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,E._)(["\n        @media "," {\n            flex-direction: column;\n        }\n    "]);return _templateObject6=function(){return e},e}let ef={Block:M.ZP.div.withConfig({componentId:"sc-ebd38ba-0"})(WayToReceiveBlock_styled_templateObject()),BlockTitle:(0,M.ZP)(y.ZT).withConfig({componentId:"sc-ebd38ba-1"})(WayToReceiveBlock_styled_templateObject1()),Button:(0,M.ZP)(w.zx).withConfig({componentId:"sc-ebd38ba-2"})(_templateObject2(),e=>{let{$isDetailsHidden:t}=e;return t?"":"-"}),ButtonText:(0,M.ZP)(y.ZT).withConfig({componentId:"sc-ebd38ba-3"})(_templateObject3()),Container:M.ZP.div.withConfig({componentId:"sc-ebd38ba-4"})(_templateObject4(),O.$_.additionalGrayBlue20),DetailsContainer:(0,M.ZP)(P.k).withConfig({componentId:"sc-ebd38ba-5"})(_templateObject5()),Flex:(0,M.ZP)(P.k).withConfig({componentId:"sc-ebd38ba-6"})(_templateObject6(),O.j$.SCREEN_MOBILE)},WayToReceiveBlock=e=>{var t;let{codeOfWayToReceive:n,payment:r,wayToReceive:o}=e,{isDesktop:i}=(0,T.ZP)(),[l,c]=(0,C.useState)(!1),{orderNumber:s}=(0,d.p)(),u=(0,b.C)((0,ep.VC)(s)),p=null==r?void 0:r.paymentMethod.code,m=null==r?void 0:null===(t=r.status)||void 0===t?void 0:t.code,f=u||"sbp"!==p?m:"waiting";return(0,a.jsxs)(ef.Container,{children:[(0,a.jsx)(ef.Button,{$isDetailsHidden:l,isWithoutPaddings:!0,isContentSize:!0,theme:"ghost",onClick:()=>{c(e=>!e)},children:(0,a.jsxs)(ef.ButtonText,{children:["Детали заказа ",(0,a.jsx)(H.Wf,{})]})}),(0,a.jsx)(em.$,{isHidden:l,children:(0,a.jsxs)(ef.DetailsContainer,{dir:"column",gap:i?16:24,children:[(0,a.jsxs)(ef.Flex,{gap:16,children:[(0,a.jsx)(WayToReceiveInfo,{codeOfWayToReceive:n,wayToReceive:o}),(0,a.jsxs)(ef.Block,{children:[(0,a.jsx)(ef.BlockTitle,{variant:"p-medium-strong",children:"Способ оплаты"}),(0,a.jsx)(y.ZT,{color:"gray80",variant:"p-medium",children:null==r?void 0:r.paymentMethod.name})]})]}),!!f&&(0,a.jsx)(PaymentStatus,{code:f})]})})]})};var eh=n(93766);
1function OrderDonePage_styled_templateObject(){let e=(0,E._)(["\n        width: 690px;\n\n        @media "," {\n            width: 100%;\n        }\n    "]);return OrderDonePage_styled_templateObject=function(){return e},e}function OrderDonePage_styled_templateObject1(){let e=(0,E._)(["\n        display: flex;\n        justify-content: space-between;\n        align-items: center;\n    "]);return OrderDonePage_styled_templateObject1=function(){return e},e}function styled_templateObject2(){let e=(0,E._)(["\n        height: 24px;\n        width: 24px;\n\n        cursor: pointer;\n\n        svg {\n            height: 24px;\n            width: 24px;\n            color: ",";\n        }\n    "]);return styled_templateObject2=function(){return e},e}function styled_templateObject3(){let e=(0,E._)(["\n        margin: 24px 0;\n    "]);return styled_templateObject3=function(){return e},e}let ex={DetailsContainer:M.ZP.div.withConfig({componentId:"sc-f1940413-0"})(OrderDonePage_styled_templateObject(),O.j$.SCREEN_MOBILE),TitleContainer:(0,M.ZP)(P.k).withConfig({componentId:"sc-f1940413-1"})(OrderDonePage_styled_templateObject1()),CloseButton:M.ZP.button.withConfig({componentId:"sc-f1940413-2"})(styled_templateObject2(),O.$_.defaultGray60),Title:(0,M.ZP)(y.ZT).withConfig({componentId:"sc-f1940413-3"})(styled_templateObject3())},eg=F()(()=>n.e(8494).then(n.bind(n,28494)).then(e=>e.OrderListModal),{loadableGenerated:{webpack:()=>[28494]},loading:()=>(0,a.jsx)(eh.i,{})}),OrderDonePageContent=e=>{let{order:t}=e,{payment:n,cost:r,isPreOrder:o,card:i,products:l,codeOfWayToReceive:c,wayToReceive:s,status:d}=t,{isMobile:u,isDesktop:m}=(0,T.ZP)(),f=(0,p.useRouter)(),h=(0,C.useCallback)(()=>{f.push("/")},[f]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(v.W,{children:[(0,a.jsxs)(ex.TitleContainer,{children:[(0,a.jsx)(ex.Title,{variant:"h2",element:"h2",children:(null==d?void 0:d.code)==="canceled"?"Заказ отменён":"Заказ оформлен"}),u&&(0,a.jsx)(ex.CloseButton,{onClick:h,theme:"ghost",children:(0,a.jsx)(H.GY,{})})]}),(0,a.jsx)(TextDescription,{payment:n,card:i,cost:r}),(0,a.jsx)(ex.DetailsContainer,{children:(0,a.jsx)(U.m,{order:t,variant:"done-page",children:(0,a.jsxs)(P.k,{dir:"column",gap:16,children:[(0,a.jsx)(z.y,{variant:"done-page",order:t,slot:m&&(0,a.jsx)(GoToTheOrderButton,{}),needTrackNumber:!0}),(0,a.jsx)(OrderListBlock,{isPreOrder:!!o,products:l}),(0,a.jsx)(WayToReceiveBlock,{payment:n,codeOfWayToReceive:c,wayToReceive:s}),u&&(0,a.jsx)(GoToTheOrderButton,{})]})})})]}),(0,a.jsx)(V.u,{name:G.e.ORDER_LIST.name,children:(0,a.jsx)(eg,{})})]})},OrderDonePage=()=>{let e=(0,b.C)((0,D.$)("orderState","order")),t=(0,c.v9)((0,D.$)("orderState","shortPageType"));return(useOrderDonePage(e),t)?(0,a.jsx)(OrderShortPage,{type:t}):e&&(0,s.ew)(e)?(0,a.jsx)(OrderDonePageContent,{order:e}):null};var ej=!0,_orderId_=()=>(0,a.jsx)(OrderDonePage,{})},22962:function(e,t,n){"use strict";n.d(t,{V:function(){return r},h:function(){return o}});let r="1200px",o="1360px"},38215:function(e,t,n){"use strict";n.d(t,{K5:function(){return i},Mt:function(){return l},eC:function(){return a},iY:function(){return o},pM:function(){return c},uP:function(){return r}});let r="DD.MM.YY",o="DD.MM.YYYY",i="DD MMMM",l="YYYY-MM-DD",a="MMMM YYYY",c="DD MMMM YYYY"},80601:function(e,t,n){"use strict";n.d(t,{MG:function(){return formatDateToRequest},OA:function(){return formatDateToDayFullMonthYear},R5:function(){return formatDateToDayFullMonth},cf:function(){return formatDateWithoutTimeZone},lB:function(){return formatDateToFullYear},q7:function(){return formatDateToShortYear}});var r=n(27484),o=n.n(r),i=n(38215);n(70600),o().locale("ru");let formatDateToDayFullMonth=e=>o()(e).format(i.K5),formatDateToDayFullMonthYear=e=>o()(e).format(i.pM),formatDateToRequest=e=>o()(e).format(i.Mt),formatDateToShortYear=e=>o()(e).format(i.uP),formatDateToFullYear=e=>o()(e).format(i.iY),formatDateWithoutTimeZone=e=>e.split("T")[0]},59027:function(e,t,n){"use strict";n.d(t,{W:function(){return Container}});var r=n(85893),o=n(82729),i=n(52015),l=n(86546),a=n(22962);
1function _templateObject(){let e=(0,o._)(["\n    margin: 0 auto;\n    max-width: ",";\n    width: 100%;\n\n    @media "," {\n        padding-left: 16px;\n        padding-right: 16px;\n    }\n\n    @media "," {\n        max-width: ",";\n        padding-left: 0;\n        padding-right: 0;\n    }\n"]);return _templateObject=function(){return e},e}let c=i.ZP.div.withConfig({componentId:"sc-e71a76e0-0"})(_templateObject(),a.V,l.j$.SCREEN_MOBILE,l.j$.SCREEN_XL,a.h),Container=e=>{let{children:t}=e;return(0,r.jsx)(c,{children:t})}},97500:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(85893),o=n(67294),i=n(27856),l=n.n(i),a=n(87042);let c=(0,o.forwardRef)((e,t)=>{let{children:n,element:i="span",variant:c="p",color:s,align:d,style:u={},className:p="",textWrap:m=!0,...f}=e,h=(0,o.useRef)(null);return(0,o.useImperativeHandle)(t,()=>h.current),(0,r.jsx)(a.l,{ref:h,$variant:c,$color:s,$align:d,$textWrap:m,as:i,className:p,style:u,dangerouslySetInnerHTML:{__html:l().sanitize(n)},...f})})}},function(e){e.O(0,[7856,3179,6086,9774,2888,179],function(){return e(e.s=92525)}),_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.