PageSourceSearch

https://start.ru/_next/static/chunks/192-0b825412ac3cc3a4.js

js start.ru collected 2026-10-02 07:49:12 UTC 22,999 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[192],{99660:(e,t,o)=>{"use strict";o.d(t,{g:()=>c});var r=o(74848),n=o(6016),i=o(31968),a=o.n(i),l=o(46942),s=o.n(l);let c=e=>{let{onOverLayClick:t,children:o,heightUnset:i}=e;return(0,r.jsxs)("div",{className:s()(a().layout,{[a().layout_min]:i}),children:[(0,r.jsx)("div",{className:a().overlay,onClick:t}),(0,r.jsx)(n.A,{children:o})]})}},6016:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(74848),n=o(15848),i=o.n(n);let a=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:i().wrapper,children:(0,r.jsx)("div",{className:i().scrollable,children:t})})}},80192:(e,t,o)=>{"use strict";o.d(t,{Z:()=>O});var r=o(74848),n=o(96540),i=o(74368),a=o(76424),l=o(46942),s=o.n(l),c=o(86715),u=o.n(c),d=o(80364),_=o(48398),p=o(68850),m=o(55918),v=o(47819),h=o(35296),f=o(18056),g=o(27116),b=o(99660),y=o(97461),x=o(30291),w=o(34707),C=o.n(w),j=o(18287),k=o.n(j),A=o(2176),N=o.n(A);let P=e=>(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":!0,focusable:"false",...e,children:(0,r.jsx)("path",{d:"M11 5a1 1 0 0 1 2 0v6h6a1 1 0 1 1 0 2h-6v6a1 1 0 1 1-2 0v-6H5a1 1 0 1 1 0-2h6V5z",fill:"currentColor"})}),S=e=>(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":!0,focusable:"false",...e,children:(0,r.jsx)("path",{d:"M9.2 16.2 4.8 11.8a1.2 1.2 0 1 1 1.7-1.7l2.8 2.8 7-7a1.2 1.2 0 0 1 1.7 1.7l-7.8 7.8a1.2 1.2 0 0 1-1.7 0z",fill:"currentColor"})}),T=e=>new Intl.NumberFormat("ru-RU",{maximumFractionDigits:0}).format(e)+" ₽";function M(e){let{heading:t,description:o,price:i,value:a,onApply:l,defaultApplied:c=!1,id:u,isSuggestNudgeVisible:d,applied:_,bounceKey:m}=e,v=(0,p.A)(),h=null!=_?_:!!c,[f,g]=(0,n.useState)(!1),[b,y]=(0,n.useState)(!1),x=(0,n.useRef)(null),w=(0,n.useRef)(null),C=(0,n.useRef)(null),j=(0,n.useRef)(h),k=(0,n.useCallback)(()=>{null==l||l(a)},[l,a]),A=(0,n.useMemo)(()=>(null==i?void 0:i.periodText)||"за 3 месяца",[i]),M=(0,n.useMemo)(()=>{if(!i)return"";let e=[];return t&&e.push(t),(null==i?void 0:i.old)!=null&&e.push(T(i.old)),(null==i?void 0:i.new)!=null&&(e.push(T(i.new)),A&&e.push(A)),e.join(" ").trim()},[A,i]),E=(0,n.useCallback)(()=>{null!=x.current&&(window.cancelAnimationFrame(x.current),x.current=null),null!=w.current&&(clearTimeout(w.current),w.current=null)},[]),R=(0,n.useCallback)(()=>{if(y(!1),E(),"function"==typeof window.matchMedia)try{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return}catch(e){}let e=()=>{x.current=null,w.current=null;let e=C.current;e&&(e.style.animation="none",e.offsetWidth,e.style.animation=""),y(!0)};"function"==typeof window.requestAnimationFrame?x.current=window.requestAnimationFrame(e):w.current=setTimeout(e,0)},[E]),I=(0,n.useCallback)(e=>{"stubBounce"===e.animationName&&y(!1)},[]);(0,n.useEffect)(()=>()=>{E()},[E]),(0,n.useEffect)(()=>{null!=m&&h&&R()},[m,h,R]),(0,n.useEffect)(()=>{h&&!j.current&&null==m&&R(),j.current=h},[m,h,R]);let L=()=>{v({element_type:"promocode_item",action_id:"click",element_attributes_id:u,element_attributes_text:M,screen_type:d?"take_promocode":"promocode",screen_attributes_id:d?"take_promocode":"promocode",...d?{referer_screen_type:"promocode",referer_screen_attributes_id:"promocode"}:{}}),k(),h&&R()};return(0,r.jsxs)("div",{role:"button",tabIndex:0,"aria-pressed":h,className:s()(N().coupon,{[N().applied]:h,[N().isPressed]:f,[N().bouncing]:b}),onClick:L,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),L())},onMouseDown:()=>g(!0),onMouseUp:()=>g(!1),onMouseLeave:()=>g(!1),onAnimationEnd:I,"data-testid":"coupon-".concat(a),children:[(0,r.jsxs)("div",{className:N().stub,"aria-hidden":"true",ref:C,children:[(0,r.jsx)("div",{className:N().perf}),(0,r.jsx)("div",{className:N().perf}),(0,r.jsx)("div",{className:N().perf}),(0,r.jsx)("div",{className:N().perf})]}),(0,r.jsxs)("div",{className:N().inner,children:[(0,r.jsxs)("div",{className:N().content,children:[(0,r.jsx)("div",{className:N().heading,children:t}),(0,r.jsxs)("div",{className:N().row,children:[(null==i?void 0:i.old)!=null&&(0,r.jsx)("span",{className:N().old,children:T(i.old)}),(null==i?void 0:i.new)!=null&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:N().new,children:T(i.new)}),(0,r.jsx)("span",{className:N().period,children:A})]})]}),o&&(0,r.jsx)("div",{className:N().desc,children:o})]}),(0,r.jsxs)("div",{className:N().action,"aria-hidden":"true",children:[(0,r.jsx)(P,{className:s()(N().icon,N().plus)}),(0,r.jsx)(S,{className:s()(N().icon,N().check)})]})]})]})}let E=e=>{let{onApply:t,isSuggestNudgeVisible:o}=e,a=(0,n.useRef)(null),l=(0,n.useRef)([]),s=(0,n.useRef)(null),[c,u]=(0,n.use
1State)(!1),[d,_]=(0,n.useState)(!1),[p,m]=(0,n.useState)(null),[v,h]=(0,n.useState)(null),f=(0,i.d4)(e=>{var t;return null===(t=e.systemInformation)||void 0===t?void 0:t.windowInnerWidth})>=g.xW.TABLET_WIDE,b=(0,n.useCallback)(e=>{m(e),h(t=>{var o;return{value:e,key:(null!==(o=null==t?void 0:t.key)&&void 0!==o?o:0)+1}}),null==t||t(e)},[t]),y=(0,n.useCallback)(()=>{if(!f){l.current=[];return}let e=a.current;if(!e){l.current=[];return}let t=Array.from(e.children);if(!t.length){l.current=[];return}let o=Math.max(0,e.scrollWidth-e.clientWidth),r=t.length-1,n=t.map((t,n)=>{var i;let a=t.firstElementChild||t,l=(null==a?void 0:a.offsetWidth)||t.offsetWidth||0,s=null!==(i=t.offsetLeft)&&void 0!==i?i:0,c=Math.round(s-(e.clientWidth-l)/2);return c=Math.max(0,Math.min(o,c)),0===n?c=0:n===r&&(c=o),{index:n,position:c,width:l,offset:s}});l.current=n},[f]),x=(0,n.useCallback)(()=>{y();let e=a.current;if(!e)return;let{scrollLeft:t,scrollWidth:o,clientWidth:r}=e,n=Math.max(0,o-r),i=e.getBoundingClientRect(),l=e.firstElementChild,s=e.lastElementChild,c=(null==l?void 0:l.firstElementChild)||l,d=(null==s?void 0:s.firstElementChild)||s,p=c?Math.max(0,Math.round(c.getBoundingClientRect().left-i.left)):0,m=d?Math.max(0,Math.round(i.right-d.getBoundingClientRect().right)):0,v=Math.max(0,t-p),h=Math.max(0,n-t-m);u(v>2),_(h>2)},[y]),w=(0,n.useCallback)(()=>{if(!f)return;let e=a.current;if(!e)return;let t=l.current;if(!t.length)return;let o=e.scrollLeft,r=t[0],n=Math.abs(o-r.position);for(let e=1;e<t.length;e+=1){let i=Math.abs(o-t[e].position);i<n&&(n=i,r=t[e])}1>=Math.abs(o-r.position)||e.scrollTo({left:r.position,behavior:"smooth"})},[f]),C=(0,n.useCallback)(()=>{f&&(l.current.length||y(),l.current.length<2||(s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,w()},140)))},[y,f,w]),j=(0,n.useCallback)(e=>{let t=a.current;if(!t)return;if(f&&l.current.length>=2){y();let o=l.current.map(e=>e.position);s.current&&(clearTimeout(s.current),s.current=null);let r=0,n=Number.POSITIVE_INFINITY;o.forEach((e,o)=>{let i=Math.abs(t.scrollLeft-e);i<n&&(n=i,r=o)});let i=Math.min(Math.max(r+e,0),o.length-1),a=o[i];t.scrollTo({left:a,behavior:"smooth"}),window.requestAnimationFrame(()=>{x()});return}let o=Array.from(t.children);if(!o.length)return;let r=Math.min(Math.max(0,t.scrollWidth-t.clientWidth),Math.max(0,t.scrollLeft+e*(()=>{if(o.length>1){let e=o[0],t=o[1].offsetLeft-e.offsetLeft;if(t>0)return t}return o[0].offsetWidth||t.clientWidth})()));t.scrollTo({left:r,behavior:"smooth"}),window.requestAnimationFrame(x)},[y,x,f,w]);(0,n.useEffect)(()=>{if(!f){s.current&&(clearTimeout(s.current),s.current=null),l.current=[],u(!1),_(!1);return}x();let e=a.current;if(!e)return;let t=()=>{x(),C()};if(e.addEventListener("scroll",t,{passive:!0}),"undefined"==typeof ResizeObserver)return()=>{e.removeEventListener("scroll",t)};let o=new ResizeObserver(()=>{x(),w()});return o.observe(e),()=>{e.removeEventListener("scroll",t),o.disconnect()}},[x,C,f,w]),(0,n.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]);let A=!o,N=[k().scrollerWrap,A?"":k().scrollerWrap_noHeading,f&&c?k().showLeft:"",f&&d?k().showRight:""].filter(Boolean).join(" ");return(0,r.jsxs)("section",{className:k().promoSuggest,children:[A&&(0,r.jsx)("h3",{className:k().heading,children:"Выгодные предложения для вас"}),(0,r.jsxs)("div",{className:N,children:[f&&(0,r.jsx)("button",{type:"button",className:[k().navButton,k().navButtonLeft].join(" "),onClick:()=>j(-1),"aria-label":"Просмотреть предыдущий купон",disabled:!c,children:(0,r.jsx)("span",{className:[k().navIcon,k().navIconLeft].filter(Boolean).join(" "),"aria-hidden":"true"})}),(0,r.jsx)("div",{className:k().scroller,ref:a,children:[{heading:"–16% на подписку",price:{old:1190,new:999,periodText:"за 3 месяца"},value:"suggest3m",id:"2c188588-1f5d-46d7-8928-11fb6fc2102d"},{heading:"–16% на подписку",price:{old:2990,new:2499,periodText:"за 12 месяцев"},value:"suggest12m",id:"e2c1f8b8-310a-46a6-ab4b-eaff591685ea"},{heading:"–20% на подписку",price:{old:499,new:399,periodText:"в месяц"},value:"suggest1m",id:"5ead9210-a610-497a-9c51-36f50bb21261"}].map(e=>
1{let t=e.value===p,n=[k().item,t?k().itemApplied:""].filter(Boolean).join(" "),i=(null==v?void 0:v.value)===e.value?v.key:null;return(0,r.jsx)("div",{className:n,children:(0,r.jsx)(M,{heading:e.heading,description:e.description,price:e.price,value:e.value,onApply:b,isSuggestNudgeVisible:o,applied:t,bounceKey:i,id:e.id})},e.value)})}),f&&(0,r.jsx)("button",{type:"button",className:[k().navButton,k().navButtonRight].join(" "),onClick:()=>j(1),"aria-label":"Просмотреть следующий купон",disabled:!d,children:(0,r.jsx)("span",{className:k().navIcon,"aria-hidden":"true"})})]})]})};var R=o(13908),I=o(29965),L=o.n(I);let B=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2454 4.24391C14.5708 3.91848 15.0985 3.91848 15.4239 4.24391C15.7493 4.56935 15.7493 5.09699 15.4239 5.42243L11.0131 9.83317L15.4239 14.2439C15.7493 14.5694 15.7493 15.097 15.4239 15.4224C15.0985 15.7479 14.5708 15.7479 14.2454 15.4224L9.83461 11.0117L5.42386 15.4224C5.09842 15.7479 4.57078 15.7479 4.24534 15.4224C3.91991 15.097 3.91991 14.5693 4.24534 14.2439L8.65609 9.83316L4.24535 5.42241C3.91991 5.09698 3.91991 4.56934 4.24535 4.2439C4.57078 3.91846 5.09842 3.91846 5.42386 4.2439L9.83462 8.65467L14.2454 4.24391Z",fill:"currentColor"})}),W="Введите промокод",O=()=>{let e=(0,i.d4)(e=>e.registration.authData),t=(0,i.d4)(e=>e.profile.pendingSubscription),o=(0,i.d4)(e=>e.payments.payments),l=(0,i.wA)(),c=(0,d.A)(),w=(0,_.A)(),j=(0,p.A)(),k=(0,m.j)(),A=(0,a.useSearchParams)().get("promocode"),[N,P]=(0,n.useState)(A||localStorage.getItem("promocode")||""),[S,T]=(0,n.use
1State)(""),[M,I]=(0,n.useState)(!1),[O,V]=(0,n.useState)(!1),[D,F]=(0,n.useState)(!1),[z,J]=(0,n.useState)(!1),[U,Y]=(0,n.useState)(!1),[q,H]=(0,n.useState)([]),[G,Z]=(0,n.useState)(!1),[Q,X]=(0,n.useState)(!1),K=Array.isArray(q)&&q.some(e=>g.sn.includes(null==e?void 0:e.promotion_id)),$=!N||M,ee=(0,h.l3)((null==e?void 0:e.ab)||[],"promo_background"),et=async()=>{let e="".concat(c).concat(v.PI.paymentHistory).concat(w),t=await fetch(e,{credentials:"include"});if(t.status<400){let e=await t.json();H(Array.isArray(e)?e:Array.isArray(null==e?void 0:e.paymentHistory)?e.paymentHistory:Array.isArray(null==e?void 0:e.payment_history)?e.payment_history:[])}},eo=async()=>{if(!z&&!U&&!K){Y(!0),F(!0),j({action_id:"click",element_type:"button",element_attributes_id:"cross",screen_type:"promocode",screen_attributes_id:"promocode"}),j({action_id:"screenview",screen_type:"take_promocode",screen_attributes_id:"take_promocode",referer_screen_type:"promocode",referer_screen_attributes_id:"promocode"});return}j({action_id:"click",element_type:"button",element_attributes_id:"cross",screen_type:U?"take_promocode":"promocode",screen_attributes_id:U?"take_promocode":"promocode",...U?{referer_screen_type:"promocode",referer_screen_attributes_id:"promocode"}:{}}),V(!0),await u().push("/"),V(!1)},er=async()=>{I(!0);let r="".concat(c).concat(v.PI.promoCode).concat(w);try{await (0,R.Q)({promocode:N,apiUrl:c,apiKey:w,pendingSubscription:t,payments:o,authData:e,dispatch:l})}catch(e){var n;j({action_id:"error_promo",action_result:(null==e?void 0:e.code)||(null==e?void 0:e.message)||(null==e?void 0:e.status)||"Ошибка активации промокода",action_attributes_str:(null==e?void 0:e.requestUrl)||r,screen_type:"promocode",screen_attributes_id:"promocode"}),T((null===(n=g.wc[null==e?void 0:e.code])||void 0===n?void 0:n.description)||g.wc.Default.description),K?Z(!1):(Z(!0),F(!0))}finally{I(!1)}},en=D&&!K&&(U||G);return(0,n.useEffect)(()=>{j({action_id:"screenview",screen_type:"promocode",screen_attributes_id:"promocode"}),et()},[]),(0,n.useEffect)(()=>{var e;let t;let o=window.sessionStorage.getItem(f.Jm.PROMO_ERROR);if(!o)return;window.sessionStorage.removeItem(f.Jm.PROMO_ERROR);try{t=JSON.parse(o)}catch(e){t=null}let r=null==t?void 0:t.code,n=null==t?void 0:t.message;T((null===(e=g.wc[r])||void 0===e?void 0:e.description)||n||g.wc.Default.description),K?Z(!1):(Z(!0),F(!0))},[K]),(0,n.useEffect)(()=>{if(en){let e=requestAnimationFrame(()=>X(!0));return()=>cancelAnimationFrame(e)}X(!1)},[en]),(0,n.useEffect)(()=>{(0,h.wl)(),(0,h.Yj)("channel"),localStorage.removeItem("promocode")},[]),(0,n.useEffect)(()=>{A&&localStorage.setItem("promocode",A)},[A]),(0,r.jsxs)(r.Fragment,{children:["TestC_promo_background"===ee?(0,r.jsx)(L(),{loader:h.R2,className:C().gift,src:"/static/images/auth/gift.png",alt:"",width:320,height:320,srcSet:""}):null,(0,r.jsxs)(b.g,{children:[(0,r.jsx)(x.A,{title:"Промо"}),(0,r.jsxs)("form",{className:C().form,onSubmit:t=>{if(t.preventDefault(),$){T(W);return}if(j({element_type:"button",action_id:"click",element_attributes_id:"promocode",element_attributes_text:"Активировать промокод",screen_type:U?"take_promocode":"promocode",screen_attributes_id:U?"take_promocode":"promocode",...U?{referer_screen_type:"promocode",referer_screen_attributes_id:"promocode"}:{}}),null==e?void 0:e.virtual){var o;N&&localStorage.setItem("promocode",N),localStorage.setItem("fromCode","true"),localStorage.setItem("signRoute",(null===(o=u().asPath)||void 0===o?void 0:o.includes("/premium_code"))?"/premium_code":"/code"),localStorage.setItem(f.CV.PROMO_AUTO_APPLY,"true"),u().push("/auth");return}er()},children:[U&&(0,r.jsx)(y.$n,{type:"button",size:y.GO.MEDIUM,variant:y.Vt.TERTIARY,className:C().backButton,iconLeft:(0,r.jsx)("img",{src:"/static/images/auth/backIcon.svg",alt:"назад"}),onClick:()=>{j({action_id:"click",element_type:"button",element_attributes_id:"back",screen_type:"take_promocode",screen_attributes_id:"take_promocode",referer_screen_type:"promocode",referer_screen_attributes_id:"promocode"}),Y(!1),J(!1),F(!1),Z(!1),X(!1)},isDisabled:O}),(0,r.jsx)(y.$n,{type:"button",size:y.GO.MEDIUM,variant:y.Vt.TERTIARY,className:C().close,iconLeft:(0,r.jsx)(B,{}),onClick:eo,isDisabled:O}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:C().heading,children:U?"Не спешите уходить":"Активация промокода"}),U&&(0,r.jsx)("p",{className:C().subheading,children:"Нашли выгодные предложения для вас"}),!U&&(0,r.jsx)("div",{className:C().inputWrapper,children:(0,r.jsxs)("div",{className:C().input,children:[(0,r.jsx)("label",{htmlFor:"promocode",className:C().input__label,children:"Введите промокод"}),(0,r.jsx)("input",{type:"text",value:N,className:s()(C().input__field,{[C().input__field_error]:!!S}),onChange:e=>{let t=e.target.value.replace(/\s/g,"");T(""),P(t),J(!0)},onBlur:()=>{N||T(W),j({custom_field_str1:"v2",action_id:"text_input",action_attributes_ab_tag:!N||S?"invali
1d":"valid",action_result:N,element_type:"input",element_attributes_id:"promocode",screen_type:"promocode",screen_attributes_id:"promocode"})},onFocus:()=>{J(!0),j({custom_field_str1:"v2",action_id:"text_input_start",element_type:"input",element_attributes_id:"promocode",screen_type:"promocode",screen_attributes_id:"promocode"})},id:"promocode",placeholder:"ХХХХХХ"}),(0,r.jsx)("div",{className:C().input__underline}),!!S&&(0,r.jsx)("span",{className:C().input__error,children:S})]})})]}),en&&(0,r.jsx)("div",{className:s()(C().suggestWrapper,Q&&C().suggestWrapperVisible),children:(0,r.jsx)(E,{onApply:e=>{T(""),P(e),J(!0)},isSuggestNudgeVisible:U})}),(0,r.jsxs)("div",{className:s()(C().bottom,en&&C().bottom_suggestActive),children:[(0,r.jsx)(y.$n,{type:"submit",size:k,variant:y.Vt.PRIMARY,fullWidth:!0,title:"Активировать промокод",isDisabled:$,isLoading:M,"data-testid":"activate_button"}),(0,r.jsxs)("p",{className:C().terms,children:["Продолжая, вы соглашаетесь с\xa0",(0,r.jsx)("a",{className:C().terms__link,href:"/legal/terms_of_promocode",target:"_blank",children:"правилами использования промокодов"})]})]})]})]}),"TestB_promo_background"===ee?(0,r.jsx)(L(),{loader:h.R2,className:C().cheba,src:"/static/images/auth/cheba.png",alt:"",width:400,height:254,srcSet:""}):null,"TestC_promo_background"===ee?(0,r.jsx)(L(),{loader:h.R2,className:C().box,src:"/static/images/auth/box.png",alt:"",width:196,height:196,srcSet:""}):null]})}},13908:(e,t,o)=>{"use strict";o.d(t,{Q:()=>p});var r=o(86715),n=o.n(r),i=o(47819),a=o(35296),l=o(75756),s=o(72202);let c=e=>{let t=(0,a.Ri)("advcake_url");return t&&!e.includes("&advcake_url")?"".concat(e,"&advcake_url=").concat(t):e},u=async e=>{let{redirectUrl:t}=e;await new Promise((e,o)=>{(0,i.BA)({url:t,successCallback:e,errorCallback:o})})},d=async()=>{await n().push("/code/success")},_=e=>{let{apiUrl:t,apiKey:o,dataUrl:r,includeAdvcake:n=!1}=e,i="".concat(t).concat(r).concat(o.replace("?","&")).concat((0,a.Ij)());return n?c(i):i};async function p(e){var t,o,r,n,c,p,m;let{promocode:v,apiUrl:h,apiKey:f,pendingSubscription:g,payments:b,authData:y,dispatch:x}=e;if(!v){let e=Error("Ошибка активации промокода");throw e.code="EMPTY_PROMOCODE",e}let w=v.toLowerCase(),C=(0,i.zN)(g),j=null==C?void 0:C.recurrent,k="".concat(h).concat(i.PI.promoCode).concat(f),A=await fetch(k,{credentials:"include",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({coupon_code:w})}),N=await A.json();if(!A.ok)throw N.requestUrl=k,N;x((0,l.w4)(h)),x((0,s.UP)()),(window.dataLayer=window.dataLayer||[]).push({event:"coupon_entered",eventCategory:"Coupon",eventAction:"Coupon Entered",eventLabel:w});let P=new Date;P.setMinutes(P.getMinutes()+10),(0,a.TV)("coupon_dataLayer",w,{expires:P}),(0,a.TV)("coupon_code",w),localStorage.removeItem("fromCode");let S=N.data;if("NEED_PAYMENT_TO_ACTIVATE_PROMO"===N.code){(0,a.TV)("nptap",!0),(null==S?void 0:S.duration)&&(0,a.TV)("coupon_duration",JSON.stringify(S.duration)),(null==S?void 0:S.promo_price)&&(0,a.TV)("coupon_price",S.promo_price);let e=(null==S?void 0:null===(o=S.price)||void 0===o?void 0:o.currency)||(null==S?void 0:S.currency);e&&(0,a.TV)("coupon_currency",e),(null==S?void 0:S.tariff_id)&&(0,a.TV)("coupon_tariff_id",S.tariff_id);let t=_({apiUrl:h,apiKey:f,dataUrl:S.url});return await u({redirectUrl:t}),N}if("NEED_PAYMENT_METHOD_TO_ACTIVATE_PROMO"===N.code){(0,a.TV)("npmtap",!0),(null==S?void 0:S.duration)&&(0,a.TV)("coupon_duration",JSON.stringify(null==S?void 0:S.duration)),(null==S?void 0:null===(r=S.price)||void 0===r?void 0:r.price)&&(0,a.TV)("coupon_price",S.price.price),(null==S?void 0:null===(n=S.price)||void 0===n?void 0:n.currency)&&(0,a.TV)("coupon_currency",S.price.currency),(null==S?void 0:S.tariff_id)&&(0,a.TV)("coupon_tariff_id",S.tariff_id),(null==S?void 0:null===(c=S.price)||void 0===c?void 0:c.paid_period_duration)&&(0,a.TV)("coupon_paid_period_duration",JSON.stringify(S.price.paid_period_duration));let e=_({apiUrl:h,apiKey:f,dataUrl:S.url,includeAdvcake:!0});return await u({redirectUrl:e}),N}if(Array.isArray(b)&&b.length>0&&C||N.success&&N.subscriptions.length>0)return await d(),N;if(!j||!(null==N?void 0:null===(t=N.data)||void 0===t?void 0:t.recurrent)){(0,a.TV)("webCardPromo",!0);let e=(null==N?void 0:null===(p=N.data)||void 0===p?void 0:p.duration)||(null==N?void 0:null===(m=N.data)||void 0===m?void 0:m.expire);e&&(0,a.TV)("coupon_duration",JSON.stringify(e));let t="".concat(h).concat(i.PI.addCard).concat(f);return await u({redirectUrl:t}),N}return await d(),N}},31968:e=>{e.exports={"storybook-root":"MainPopup_storybook-root__vP_4J",layout:"MainPopup_layout__rueVf",layout_min:"MainPopup_layout_min__wc_07",overlay:"MainPopup_overlay___Ybts"}},15848:e=>{e.exports={"storybook-root":"PopupWrapper_storybook-root__OCz5G",wrapper:"PopupWrapper_wrapper__7qdj7",scrollable:"PopupWrapper_scrollable__k7FnR"}},34707:e=>{e.exports={"storybook-root":"ActivatePromo_storybook-root__T8JV_",form:"ActivatePromo_form__Cnk1s",close:"ActivatePromo_close__pJ2AY",backButton:"ActivatePromo_backButton__bva2a",inputWrapper:"ActivatePromo_inputWrapper__A2Lad",input:"ActivatePromo_input__zGj3l",input__label:"ActivatePromo_input__label__gMxzD",input__field:"ActivatePromo_input__field__FfBIQ",input__field_error:"ActivatePromo_input__field_error__F4pa0",input__underline:"ActivatePromo_input__underline__krzJX",input__error:"ActivatePromo_input__error__xDbmS",heading:"ActivatePromo_heading__CfKgR",subheading:"ActivatePromo_subheading__q2zaT",bottom:"ActivatePromo_bottom__EUMTp",bottom_suggestActive:"ActivatePromo_bottom_suggestActive__p6nG0",suggestWrapper:"ActivatePromo_suggestWrapper__iWXx_",suggestWrapperVisible:"ActivatePromo_suggestWrapperVisible__niB5e",terms:"ActivatePromo_terms__aJefi",terms__link:"ActivatePromo_terms__link__gPvJc",cheba:"ActivatePromo_cheba__xaEkb",gift:"ActivatePromo_gift__s5Ukv",box:"ActivatePromo_box__1xNm_"}},2176:e=>{e.exports={"storybook-root":"Coupon_storybook-root__z2Zix",coupon:"Coupon_coupon__5aQHx",applied:"Coupon_applied__66Fa_",stub:"Coupon_stub__NWcDG",perf:"Coupon_perf__q6Lkj",isPressed:"Coupon_isPressed__QfRM6",plus:"Coupon_plus__T4Q6l",check:"Coupon_check__Zjgn0",bouncing:"Coupon_bouncing__YeGh3",stubBounce:"Coupon_stubBounce__t9pZ1",content:"Coupon_content__Ci0qX",heading:"Coupon_heading__aoMJn",row:"Coupon_row__Xf1fT",old:"Coupon_old__T9y_t",new:"Coupon_new__LZn7t",period:"Coupon_period__ANZvF",desc:"Coupon_desc__QWN6i",action:"Coupon_action__t78kd",icon:"Coupon_icon__MS8bb",inner:"Coupon_inner__zq6Fr"}},18287:e=>{e.exports={"storybook-root":"PromoSuggest_storybook-root__OSBZi",promoSuggest:"PromoSuggest_promoSuggest__nrvag",heading:"PromoSuggest_heading__6TB9y",scrollerWrap:"PromoSuggest_scrollerWrap__Dx0ol",scrollerWrap_noHeading:"PromoSuggest_scrollerWrap_noHeading__SEpwH",showLeft:"PromoSuggest_showLeft__VNV5M",showRight:"PromoSuggest_showRight__Kx38A",navButton:"PromoSuggest_navButton__lS2ce",navButtonLeft:"PromoSuggest_navButtonLeft__gun9c",navButtonRight:"PromoSuggest_navButtonRight___rt0V",navIcon:"PromoSuggest_navIcon__Berx1",navIconLeft:"PromoSuggest_navIconLeft__RBY3z",scroller:"PromoSuggest_scroller__GSzwb",item:"PromoSuggest_item__5n4X6",itemApplied:"PromoSuggest_itemApplied__enFYI"}}}]);

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.