(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1977],{61961:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/articles/[id]",function(){return t(93428)}])},92855:function(e,n,t){"use strict";var i=t(85893),o=t(67294),r=t(45697),l=t.n(r),a=t(9008),s=t.n(a),c=t(11163),d=t(41248),u=t(96076),p=t(7227),m=t(67677),_=t(70514);function x(e){var n=e.children,t=e.metaData,r=(0,c.useRouter)(),l=(0,d.I0)(),a=(0,m.Z)(function(e){return{meta:e.ui.meta}}).meta;return(0,o.useEffect)(function(){if((0,_.Z)(a)){var e=r.pathname;l((0,p.xZ)(e))}},[l]),(0,i.jsxs)(s(),{children:[(0,i.jsx)("title",{children:(null==t?void 0:t.TITLE)||(null==a?void 0:a.META_TITLE)||(null===u.xe||void 0===u.xe?void 0:u.xe.TITLE)}),(0,i.jsx)("meta",{content:(null==t?void 0:t.DESCRIPTION)||(null==a?void 0:a.META_DESCRIPTION)||(null===u.xe||void 0===u.xe?void 0:u.xe.DESCRIPTION),name:"description"}),(0,i.jsx)("meta",{content:(null==t?void 0:t.KEYWORDS)||(null==a?void 0:a.META_KEYWORDS)||u.xe.KEYWORDS,name:"keywords"}),(0,i.jsx)("meta",{content:u.xe.TYPE,property:"og:type"}),(0,i.jsx)("meta",{content:"".concat("https://podarkus.ru").concat(r.asPath.split("?")[0]),property:"og:url"}),(0,i.jsx)("meta",{content:(null==t?void 0:t.TITLE)||(null==a?void 0:a.META_TITLE)||(null===u.xe||void 0===u.xe?void 0:u.xe.TITLE),property:"og:title"}),(0,i.jsx)("meta",{content:u.xe.IMAGE.URL,property:"og:image"}),(0,i.jsx)("meta",{content:u.xe.IMAGE.URL,property:"og:image:url"}),(0,i.jsx)("meta",{content:u.xe.IMAGE.WIDTH,property:"og:image:width"}),(0,i.jsx)("meta",{content:u.xe.IMAGE.HEIGHT,property:"og:image:height"}),(0,i.jsx)("meta",{content:u.xe.IMAGE.TYPE,property:"og:image:type"}),(0,i.jsx)("meta",{content:(null==t?void 0:t.DESCRIPTION)||(null==a?void 0:a.META_DESCRIPTION)||(null===u.xe||void 0===u.xe?void 0:u.xe.DESCRIPTION),property:"og:description"}),(0,i.jsx)("meta",{content:u.xe.SITE_NAME,property:"og:site_name"}),(0,i.jsx)("meta",{content:u.xe.TYPE,property:"og:type"}),n]})}x.propTypes={children:l().node},x.defaultProps={children:null},n.Z=x},93428:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return eM},default:function(){return eG}});var i=t(47568),o=t(828),r=t(97582),l=t(85893),a=t(67294),s=t(41248),c=t(11163),d=t(30381),u=t.n(d);t(21793);var p=t(25935),m=t(34661),_=t(7297),x=t(54398),h=t(57833);function f(){var e=(0,_.Z)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 279px;\n  ","\n\n  ","\n"]);return f=function(){return e},e}var g=h.ZP.div.withConfig({componentId:"sc-95d123aa-0"})(f(),function(e){if(!e.$isGrid)return"\n  border-top: 2px solid ".concat(x.O9.grayGainsborough,";\n  margin-top: 19px;\n  padding-top: 27px;")},function(e){if(e.$isGrid)return"grid-column: 1/3;"}),v=a.memo(function(e){var n=e.isGrid,t=(0,m.tt)(),i=(0,m.fW)(),o=(0,a.useState)(!1),r=o[0],s=o[1];return((0,a.useEffect)(function(){s(!0)},[]),(0,a.useEffect)(function(){r&&((t||i)&&(null==window?void 0:window.yaContextCb)&&(null==window?void 0:window.adsAreWithUs)?window.yaContextCb.push(function(){Ya.Context.AdvManager.render({blockId:"R-A-12011529-6",renderTo:"yandex_rtb_R-A-12011529-6",onError:function(e){console.error(e),s(!1)}})}):s(!1))},[t,i,r]),(t||i)&&r)?(0,l.jsx)(g,{$isGrid:n,id:"yandex_rtb_R-A-12011529-6"}):null}),y=t(1728),j=t(69496),C=t(69349),w=t(27749),b=t(45697),P=t.n(b),Z=t(41664),S=t.n(Z),E=t(36430),T=t(27138),D=t(81702),A=t(67723),I=t(96076),R=t(48625),O=t.n(R),k=t(93967),N=t.n(k),M=t(74897);function G(e){var n=e.top,t=e.children,i=e.wait,o=e.onBack,r=e.nextArticleCode,a=e.isListShow,s=(0,M.$G)("components.layouts.layout-collection").t;return(0,l.jsxs)("div",{className:O().layoutCollection,itemScope:!0,itemType:"http://schema.org/NewsArticle",children:[i&&(0,l.jsx)(E.Z,{colorBg:"rgba(247, 247, 247, .6)"}),(0,l.jsx)("div",{className:O().layoutCollection__back,children:(0,l.jsx)(T.Z,{onClick:o})}),(0,l.jsx)("div",{className:O().layoutCollection__top,children:n}),(0,l.jsx)("span",{className:N()(O().layoutCollection__content,!a&&O().layoutCollection__content_tild),itemProp:"articleBody",children:t}),(0,l.jsxs)("div",{className:N()(O().layoutCollection__bottom,!a&&O().layoutCollection__bottom_tild),children:[(0,l.jsx)(T.Z,{large:!0,onClick:o}),r&&(0,l.jsx)(S(),{href:"/articles/".concat(r),children:(0,l.jsx)("a",{children:(0,l.jsx)(D.Z,{extraLarge:!0,children:(0,l.jsxs)("div",{className:O().layoutCollection__next,children:[(0,l.jsx)("span",{children:s("next")}),(0,l.jsx)("img",{alt:"next",src:"".concat(I.bG,"/arrow-right.svg")})]})})})})]})]})}G.propTypes={children:P().node,top:P().node,wait:P().bool,onBack:P().func,nextArticleCode:P().string},G.defaultProps={wait:!1,onBack:A.Z,nextArticleCode:""};var L=a.memo(G),Y=t(1118),U=t.n(Y);function q(){var e=(0,_.Z)(["\n  width: 436px;\n  height: 436px;\n  position: relative;\n  border-radius: 22px;\n  overflow: hidden;\n\n  img {\n    object-fit: cover;\n  }\n\n  @media (max-width: ","px) {\n    width: 100%;\n  }\n\n  @media (max-width: ","px) {\n    max-height: 400px;\n    height: 85vw;\n  }\n"]);return q=function(){return e},e}var z=h.ZP.div.withConfig({componentId:"sc-f342463d-0"})(q(),x.eq.minL,x.eq.minM),W=t(27694),B=t(25675),F=t.n(B);function V(e){var n=e.imageUrl,t=e.caption,i=e.description,o=e.date,r=e.isListShow,a=e.switcher,s=(0,M.$G)("components.elements.collection-details").t;return(0,l.jsxs)("div",{className:U().collectionDetails,children:[(0,l.jsxs)("div",{className:U().collectionDetails__main,children:[(0,l.jsxs)("div",{className:U().collectionDetails__left,children:[(0,l.jsxs)("div",{itemProp:"image",itemScope:!0,itemType:"http://schema.org/ImageObject",children:[(0,l.jsx)("meta",{content:"436",itemProp:"height"}),(0,l.jsx)("meta",{content:"436",itemProp:"width"}),(0,l.jsx)("meta",{content:n,itemProp:"url"}),(0,l.jsx)(z,{children:(0,l.jsx)(F(),{alt:"".concat(s("title")).concat(t),layout:"fill",src:n})})]}),(0,l.jsxs)("div",{style:{display:"none"},children:[" ","Author: ",(0,l.jsx)("span",{itemProp:"author",children:"Подаркус"}),(0,l.jsxs)("div",{itemProp:"publisher",itemScope:!0,itemType:"http://schema.org/Organization",children:[(0,l.jsxs)("div",{itemProp:"logo",itemScope:!0,itemType:"http://schema.org/ImageObject",children:[(0,l.jsx)("meta",{content:"",itemProp:"url"}),(0,l.jsx)("img",{alt:"undefined",src:"".concat(I.bG,"/logo/logo_d_podarkus.svg")})]}),(0,l.jsx)("span",{itemProp:"name",children:"Подаркус"})]})]})]}),(0,l.jsxs)("div",{className:U().collectionDetails__right,children:[(0,l.jsx)("div",{className:U().collectionDetails__badge,children:s("badge")}),(0,l.jsx)("h1",{className:U().collectionDetails__caption,itemProp:"headline",children:t}),(0,l.jsx)("span",{className:U().collectionDetails__date,itemProp:"datePublished",children:o})]})]}),(0,l.jsx)("span",{className:U().collectionDetails__description,itemProp:"description",children:i}),(0,l.jsx)(W.Z,{biggest:!0,checked:!r,isArticle:!0,name:"atrticleSwitch",noResize:!0,onChange:a})]})}V.propTypes={imageUrl:P().string,caption:P().string,description:P().oneOfType([P().string,P().object]),date:P().string},V.defaultProps={imageUrl:"",caption:"",description:"",date:""};var X=a.memo(V),Q=t(59440),$=t(60257),H=t(70514),K=t(78915),J=t(67677),ee=t(90522),en=t(87536),et=t(47533),ei=t(73868),eo=t(8349),er=t(97683),el=t(74231),ea=t(32331),es=t(56579),ec=t(27262);function ed(){var e=(0,_.Z)(["\n  margin-bottom: 41px;\n  margin-top: 85px;\n  background-color: white;\n  padding: 51px 46px;\n  box-shadow: 0px 10px 24px rgba(20, 12, 64, 0.16);\n  border-radius: 24px;\n\n  button {\n    margin: 32px 0;\n  }\n\n  @media (max-width: ","px) {\n    padding: 30px;\n\n    button {\n      font-size: 16px;\n    }\n  }\n\n  @media (max-width: ","px) {\n    padding: 20px;\n  }\n"]);return ed=function(){return e},e}function eu(){var e=(0,_.Z)(["\n  font-weight: 800;\n  margin-bottom: 17px;\n\n  @media (max-width: ","px) {\n    font-size: 18px;\n    margin-bottom: 19px;\n  }\n"]);return eu=function(){return e},e}function ep(){var e=(0,_.Z)(["\n  font-size: 16px;\n  line-height: 1.2;\n  font-weight: 500;\n\n  @media (max-width: ","px) {\n    font-size: 14px;\n  }\n"]);return ep=function(){return e},e}function em(){var e=(0,_.Z)(["\n  ",";\n  gap: 64px;\n  max-width: 778px;\n  margin-top: 37px;\n\n  @media (max-width: ","px) {\n    display: block;\n  }\n"]);return em=function(){return e},e}function e_(){var e=(0,_.Z)(["\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  flex: 0 0 358px;\n\n  @media (max-width: ","px) {\n    margin-bottom: 20px;\n  }\n"]);return e_=function(){return e},e}function ex(){var e=(0,_.Z)([""]);return ex=function(){return e},e}function eh(){var e=(0,_.Z)(["\n  ",";\n  margin-top: 25px;\n  max-width: 671px;\n  gap: 14px;\n  font-size: 16px;\n  font-weight: 500;\n  color: ",";\n"]);return eh=function(){return e},e}function ef(){var e=(0,_.Z)(["\n  font-weight: 600;\n  font-size: 16px;\n  color: ",";\n\n  span {\n    cursor: pointer;\n    color: ",";\n  }\n"]);return ef=function(){return e},e}function eg(){var e=(0,_.Z)(["\n  font-size: 14px;\n  font-weight: 500;\n  color: ",";\n  line-height: 1.42;\n  margin-top: 28px;\n\n  a {\n    color: ",";\n  }\n\n  @media (max-width: ","px) {\n    font-size: 12px;\n  }\n"]);return eg=function(){return e},e}var ev=h.ZP.form.withConfig({componentId:"sc-9387a6f0-0"})(ed(),x.eq.maxXS,x.eq.minXS),ey=h.ZP.h3.withConfig({componentId:"sc-9387a6f0-1"})(eu(),x.eq.maxXS),ej=h.ZP.p.withConfig({componentId:"sc-9387a6f0-2"})(ep(),x.eq.maxXS),eC=h.ZP.div.withConfig({componentId:"sc-9387a6f0-3"})(em(),(0,ec.ov)({alignItems:"flex-start",justifyContent:"flex-start"}),x.eq.maxM),ew=h.ZP.div.withConfig({componentId:"sc-9387a6f0-4"})(e_(),x.eq.maxM),eb=h.ZP.div.withConfig({componentId:"sc-9387a6f0-5"})(ex()),eP=h.ZP.div.withConfig({componentId:"sc-9387a6f0-6"})(eh(),(0,ec.ov)({}),x.O9.gray),eZ=h.ZP.div.withConfig({componentId:"sc-9387a6f0-7"})(ef(),x.O9.gray,x.O9.purple),eS=h.ZP.p.withConfig({componentId:"sc-9387a6f0-8"})(eg(),x.O9.purpleBlack,x.O9.purple,x.eq.minS),eE=a.memo(function(e){var n,t=e.onSubmit,i=e.onClearServerErrors,o=(e.onRoute,e.serverErrors),r=e.onLogin,s=(0,M.$G)().t,d=(0,en.cI)({resolver:(0,et.X)(el.Ry().shape({signupArticleEmail:ea.Z.email(s),signupArticlePassword:ea.Z.password(s).matches(I.rB.PASSWORD,"Пароль должен содержать 6 и более символов")})),mode:"onChange"}),u=d.handleSubmit,p=d.setError,m=d.clearErrors,_=d.control,x=(d.watch,d.formState),h=x.errors,f=x.isValid,g=x.isDirty,v=x.dirtyFields,y=(0,c.useRouter)();(0,a.useEffect)(function(){return function(){i()}},[i]),(0,a.useEffect)(function(){o&&(m(),Object.keys(o).forEach(function(e){"common"!==e&&p(e,o[e])}))},[p,m,o]);var j=(0,a.useCallback)(function(e){t({email:e.signupArticleEmail,subscription:e.subscription,password:e.signupArticlePassword,name:""})},[y,t]);return(0,l.jsxs)(ev,{onSubmit:u(j),children:[(0,l.jsx)(ey,{children:"Понравилась подборка?"}),(0,l.jsx)(ej,{children:"Регистрируйтесь и добавляйте в свой вишлист вещи из наших подборок"}),(0,l.jsxs)(eC,{children:[(0,l.jsxs)(ew,{children:[(0,l.jsx)(en.Qr,{control:_,defaultValue:"",name:"signupArticleEmail",render:function(e){var n,t,i=e.field,o=i.value,r=i.onChange;return(0,l.jsx)(ei.Z,{error:!!(null===(n=h.signupArticleEmail)||void 0===n?void 0:n.message),hInput:"56px",isValid:v.signupArticleEmail&&!(null===(t=h.signupArticleEmail)||void 0===t?void 0:t.message),name:"signupArticleEmail",onChange:r,placeholder:"Электронная почта",value:o})}}),(0,l.jsx)(eo.Z,{errors:h,path:"signupArticleEmail"}),(0,l.jsx)(en.Qr,{control:_,defaultValue:"",name:"signupArticlePassword",render:function(e){var n,t,i=e.field,o=i.value,r=i.onChange;return(0,l.jsx)(ei.Z,{error:!!(null===(n=h.signupArticlePassword)||void 0===n?void 0:n.message),hInput:"56px",isValid:v.signupArticlePassword&&!(null===(t=h.signupArticlePassword)||void 0===t?void 0:t.message),name:"signupArticlePassword",onChange:r,placeholder:"Пароль",type:"password",value:o})}}),(0,l.jsx)(eo.Z,{errors:h,path:"signupArticlePassword"})]}),(0,l.jsx)(eb,{children:(0,l.jsx)(es.Z,{SBreakpoint:void 0,agreement:void 0,isCapture:void 0,isLogin:!1,isRegistration:!0,isReservation:void 0,noSwitch:!0,onCancel:A.Z,onToggleMode:A.Z,reservationData:void 0,selectWishlist:void 0,setRegSocial:void 0})})]}),(0,l.jsxs)(eP,{children:[(0,l.jsx)(en.Qr,{control:_,defaultValue:!1,name:"subscription",render:function(e){var n,t=e.field,i=t.value,o=t.onChange;return(0,l.jsx)(er.Z,{error:null===(n=h.signupArticleAgreement)||void 0===n?void 0:n.message,name:"subscription",onChange:o,value:i})}}),"Я хочу получать новости и рассылки сервисов"]}),(0,l.jsx)(eo.Z,{errors:o,path:"common"}),(0,l.jsx)(D.Z,{borderRadius:8,disabled:!g||!f,extraLarge:!0,full:!0,size:[267,56],type:"submit",children:"Зарегистрироваться"}),(0,l.jsxs)(eZ,{children:["Уже есть аккаунт?"," ",(0,l.jsx)("span",{"data-mode":"login",onClick:r,children:"Войти"})]}),(0,l.jsxs)(eS,{children:["Нажимая \xabЗарегистрироваться\xbb или авторизуясь через сторонний сервис, вы соглашаетесь с условиями"," ",(0,l.jsx)(S(),{href:"/terms-of-service",children:"пользовательского соглашения"})," и даете согласие на"," ",(0,l.jsx)(S(),{href:"/privacy-policy",children:"обработку персональных данных"})]})]})}),eT=t(92855),eD=t(60626),eA=t(34634),eI=t(46909),eR=t(72742),eO=t(52907),ek=t(85758);"eng"===I.ad&&u().locale("en-US");var eN=a.memo(function(e){var n,t=e.history,d=(0,M.$G)("containers.pages.article").t,m=(0,c.useRouter)(),_=(0,s.I0)(),x=(0,J.Z)(function(e){return{viewingArticle:e.articles.viewingArticle,nextArticleCode:e.articles.nextArticleCode,errors:e.session.errors,user:e.session.user}}),h=x.viewingArticle,f=x.nextArticleCode,g=(x.errors,x.user),b=(0,a.useState)(!1),P=b[0],Z=b[1],S=(0,a.useState)(!0),E=S[0],T=S[1],D=(0,a.useState)([]),R=D[0],O=D[1],k=(0,a.useCallback)((0,i.Z)(function(){return(0,r.__generator)(this,function(e){return(0,K.Z)(t,m),[2]})}),[m,t]),N=(0,a.useCallback)(function(e){_(ee.ZP.open("addStoreProduct",{productData:e,isPromo:!0,isCopy:!0}))},[_]),G=(0,a.useCallback)(function(e){T(!e)},[]),Y=(0,o.Z)((0,eR.D)(eO.th,{fetchPolicy:"no-cache",onCompleted:function(){Z(!0),setTimeout(function(){return _(ee.ZP.open("checkEmail"))},500)}}),2),U=Y[0],q=Y[1],z=q.error,W=q.reset,B=(0,a.useCallback)((n=(0,i.Z)(function(e){var n,t,i;return(0,r.__generator)(this,function(i){switch(i.label){case 0:return n=e.email,[4,U({variables:{email:n,password:t=e.password,subscription:e.subscription,front_url:"https://podarkus.ru",clientType:"web"}})];case 1:return i.sent(),[2]}})}),function(e){return n.apply(this,arguments)}),[U]),F=(0,a.useCallback)(function(){_(ee.ZP.open("regAuth",{mode:I.w8.LOGIN}))},[_]),V=(0,a.useCallback)(function(){W&&W()},[W]),en=(0,a.useCallback)(function(e){_(ee.ZP.open("detailArticleProduct",{productID:e}))},[_]);(0,a.useEffect)(function(){h.PRODUCTS&&O(h.PRODUCTS)},[h]);var et=(0,a.useMemo)(function(){var e;return null==h?void 0:null===(e=h.PRODUCTS)||void 0===e?void 0:e.map(function(e,n){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eD.Z,{article:!0,dataId:e.ID,dataStoreId:e.STORE_ID,modal:en,onAddToList:N,product:e,storeInfo:e.STORE_PRODUCT,user:!0},n),1===n&&(0,l.jsx)(v,{isGrid:!0})]})})},[N,en,null==h?void 0:h.PRODUCTS]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eT.Z,{}),(0,l.jsx)(C.Z,{children:(0,l.jsx)(j.Z,{footer:(0,l.jsx)(w.Z,{}),header:(0,l.jsx)(y.Z,{}),hideMenu:!0,children:(0,H.Z)(h)?(0,l.jsx)($.Z,{centered:!0,pg:!0,children:d("note")}):(0,l.jsxs)(L,{isListShow:E,nextArticleCode:f,onBack:k,top:(0,l.jsx)(X,{caption:h.NAME,date:h.ACTIVE_FROM?u()(h.ACTIVE_FROM,"DD.MM.YYYY hh:mm:ss").format("DD MMMM YYYY"):"",description:h.TEXT?(0,p.ZP)(String(h.TEXT)):"",imageUrl:h.PHOTO,isListShow:E,switcher:G}),children:[E?R.map(function(e,n){return(0,l.jsxs)(l.Fragment,{children:[2===n&&(0,l.jsx)(v,{}),(0,l.jsx)(Q.Z,{data:e,index:n,onAddToList:N},e.ID)]})}):(0,l.jsx)(eI.Z,{centeredContent:!0,children:et.length&&(0,l.jsx)(eA.Z,{children:et})}),(0,H.Z)(g)&&!P&&(0,l.jsx)(eE,{onClearServerErrors:V,onLogin:F,onRoute:A.Z,onSubmit:B,serverErrors:(0,ek.Z)(null==z?void 0:z.message)})]})})})]})}),eM=!0,eG=eN},1118:function(e){e.exports={mainContainerWidth:"style_mainContainerWidth__o7mxp",generalPadding:"style_generalPadding__DxOZP",leftSide:"style_leftSide__lLxUj",labelStyles:"style_labelStyles__qOxoy",formFieldGeneralStyles:"style_formFieldGeneralStyles__SGQR0",fs_default:"style_fs_default__SDw0u",cardBorderRadius:"style_cardBorderRadius__dPnzL",collectionDetails:"style_collectionDetails__VAlqi",collectionDetails__main:"style_collectionDetails__main__3DpQA",collectionDetails__left:"style_collectionDetails__left__UFQ_3",collectionDetails__right:"style_collectionDetails__right__zKDcD",collectionDetails__img:"style_collectionDetails__img__Za_VJ",collectionDetails__caption:"style_collectionDetails__caption__QqgXS",collectionDetails__badge:"style_collectionDetails__badge__IcXlS",collectionDetails__date:"style_collectionDetails__date__w0cua",collectionDetails__description:"style_collectionDetails__description__w2AXl"}},48625:function(e){e.exports={mainContainerWidth:"style_mainContainerWidth__boyFw",generalPadding:"style_generalPadding__5UpT1",leftSide:"style_leftSide__c_4ae",labelStyles:"style_labelStyles__xcnLo",formFieldGeneralStyles:"style_formFieldGeneralStyles__QWobQ",fs_default:"style_fs_default__Hrqlp",cardBorderRadius:"style_cardBorderRadius__qttAY",layoutCollection:"style_layoutCollection__yzbYf",layoutCollection__back:"style_layoutCollection__back__7twxT",layoutCollection__content:"style_layoutCollection__content__VTMZq",layoutCollection__content_tild:"style_layoutCollection__content_tild__ICzI4",layoutCollection__bottom:"style_layoutCollection__bottom__VMoWJ",layoutCollection__bottom_tild:"style_layoutCollection__bottom_tild__GTf6G",layoutCollection__next:"style_layoutCollection__next__PhWml"}}},function(e){e.O(0,[1728,9440,6647,9774,2888,179],function(){return e(e.s=61961)}),_N_E=e.O()}]);