PageSourceSearch

https://start.ru/_next/static/chunks/3086.7bbd42b08bdc05c9.js

js start.ru collected 2026-10-02 07:49:50 UTC 6,520 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3086],{13086:(e,o,i)=>{"use strict";i.r(o),i.d(o,{default:()=>A});var t=i(74848),l=i(96540),a=i(74368),n=i(29965),c=i.n(n),s=i(68850),p=i(55918),r=i(35296),_=i(27116),d=i(98047),u=i(97461),v=i(5556),b=i.n(v),h=i(81935),m=i.n(h);let g={LARGE:"large",MEDIUM:"medium",SMALL:"small"};var C=i(46942),w=i.n(C);let x={size:b().oneOf(Object.values(g)),className:b().string},f=e=>{let{size:o=g.MEDIUM,className:i,...l}=e;return(0,t.jsx)("div",{className:w()(m().root,m()[o],i),...l,children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",fill:"none",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.797 3.75497C19.5759 3.33923 15.3412 4.39996 11.8145 6.75641C8.28786 9.11287 5.68734 12.6193 4.4561 16.6781C3.22485 20.737 3.43906 25.0972 5.06221 29.0159C6.68537 32.9345 9.61705 36.1691 13.3577 38.1685C17.0984 40.168 21.4166 40.8085 25.5767 39.981C29.7367 39.1536 33.4811 36.9093 36.1719 33.6305C38.8626 30.3518 40.3333 26.2415 40.3333 22H44C44 27.0898 42.2352 32.0222 39.0062 35.9566C35.7773 39.8911 31.284 42.5843 26.292 43.5772C21.3 44.5702 16.1181 43.8016 11.6293 41.4022C7.14046 39.0029 3.62244 35.1214 1.67466 30.419C-0.273132 25.7167 -0.530177 20.4844 0.947317 15.6137C2.42481 10.7431 5.54543 6.53544 9.77746 3.7077C14.0095 0.879952 19.0911 -0.392918 24.1564 0.10597C29.2217 0.604858 33.9573 2.84464 37.5564 6.44367L34.9636 9.03639C31.9644 6.0372 28.0181 4.17071 23.797 3.75497Z",fill:"currentColor"})})})};f.propTypes=x;var y=i(39182),j=i(63926),L=i(69202),k=i(47819),N=i(80364),S=i(83432),U=i.n(S),P=i(48398);let T=()=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2439 4.24416C14.5694 3.91872 15.097 3.91872 15.4224 4.24416C15.7479 4.56959 15.7479 5.09723 15.4224 5.42267L11.0117 9.83341L15.4224 14.2442C15.7479 14.5696 15.7479 15.0972 15.4224 15.4227C15.097 15.7481 14.5694 15.7481 14.2439 15.4227L9.83315 11.0119L5.42239 15.4227C5.09695 15.7481 4.56932 15.7481 4.24388 15.4227C3.91844 15.0972 3.91844 14.5696 4.24388 14.2441L8.65462 9.8334L4.24388 5.42266C3.91844 5.
109722 3.91844 4.56958 4.24388 4.24415C4.56932 3.91871 5.09695 3.91871 5.42239 4.24415L9.83316 8.65492L14.2439 4.24416Z",fill:"currentColor"})}),A=()=>{var e,o,i,n,v,b;let h=(0,a.wA)(),m=(0,s.A)(),C=(0,N.A)(),w=(0,P.A)(),x=(0,p.j)(),S=(0,a.d4)(e=>e.registration.authData),[A,M]=(0,l.useState)(),[E,O]=(0,l.useState)(!1),V=_.UM[null==A?void 0:null===(e=A.price)||void 0===e?void 0:e.currency],D=(e=>{let o=(0,y.A)(new Date,e);return[o.getDate(),_.wp[o.getMonth()]]})(null==A?void 0:null===(i=A.price)||void 0===i?void 0:null===(o=i.paid_period_duration)||void 0===o?void 0:o.days),I=null==A?void 0:A.promo_price,R="".concat((0,r.$g)(null==A?void 0:null===(n=A.price)||void 0===n?void 0:n.price,null==A?void 0:null===(v=A.price)||void 0===v?void 0:v.currency),"\xa0").concat(V),z="".concat((0,r.$g)(I,null==A?void 0:null===(b=A.price)||void 0===b?void 0:b.currency),"\xa0").concat(V),Y=j.jl,$="Оформить подписку со скидкой",q="Сейчас спишем ".concat(z," — это платёж за\xa0следующие 3\xa0месяца. ").concat(D[0],"\xa0").concat(D[1]," подписка снова будет стоить ").concat(R," "),B=async()=>{if(O(!0),m({action_id:"click",block_type:"popup",block_attributes_id:"upsale_in_paywall",element_type:"button",element_attributes_id:"subscribe_with_upsale",element_attributes_text:$}),A){var e;let o=null===(e=A.price)||void 0===e?void 0:e.currency;(0,r.TV)("nptap",!0),(0,r.TV)("coupon_code",j.sI),(0,r.TV)("coupon_duration",JSON.stringify(A.duration)),(0,r.TV)("coupon_price",A.promo_price),(0,r.TV)("coupon_currency",o),(0,r.TV)("coupon_tariff_id",A.tariff_id);let i=null;try{i=ga.getAll()[0].get("clientId")}catch(e){}(0,k.BA)({url:"".concat(C).concat(A.url).concat(null==w?void 0:w.replace("?","&")).concat(i?"&ga_id=".concat(i):""),callback:()=>O(!1)})}else O(!1)},F=()=>{(0,r.wl)(),h((0,d.Y3)({visible:!1}))},G=()=>{fetch("".concat(C).concat(k.PI.promoCode).concat(w),{credentials:"include",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({coupon_code:j.sI.toLowerCase()})}).then(e=>{e.status<400?e.json().then(e=>{"NEED_PAYMENT_TO_ACTIVATE_PROMO"===e.code?M(e.data):F()}):F()})};(0,l.useEffect)(()=>{h((0,d.LX)(!0)),m({action_id:"popupview",block_type:"popup",block_attributes_id:"upsale_in_paywall"}),(0,L.Op)(null==S?void 0:S._id),(0,L.h)(),(0,r.wl)(),G()},[]);let J=!A;return(0,t.jsxs)("div",{className:U().container,children:[(0,t.jsx)("div",{className:U().overlay}),(0,t.jsxs)("div",{className:U().wrapper_popup,children:[(0,t.jsx)(u.$n,{size:u.GO.MEDIUM,variant:u.Vt.TERTIARY,iconLeft:(0,t.jsx)(T,{}),className:U().close,onClick:()=>{m({action_id:"click",block_type:"popup",block_attributes_id:"upsale_in_paywall",element_type:"button",element_attributes_id:"cross"}),F()}}),J?(0,t.jsx)(f,{className:U().loader,size:g.SMALL}):(0,t.jsx)("div",{className:U().content,children:(0,t.jsxs)("div",{className:U().wrapper,children:[(0,t.jsx)("div",{className:U().image,children:(0,t.jsx)(c(),{src:Y,loader:r.R2,fill:!0,alt:"upsale_promo"})}),(0,t.jsxs)("div",{className:U().heading,children:[(0,t.jsx)("h2",{className:U().heading__title,children:"Для вас подписка со\xa0скидкой"}),(0,t.jsx)("p",{className:U().heading__description,children:q})]}),(0,t.jsx)("div",{className:U().button,children:(0,t.jsx)(u.$n,{size:x,title:$,fullWidth:!0,onClick:B,isDisabled:E})})]})})]})]})}},83432:e=>{e.exports={"storybook-root":"SubscriptionUpsalePopup_storybook-root__xFFVG",container:"SubscriptionUpsalePopup_container__ffTL0",overlay:"SubscriptionUpsalePopup_overlay__rrDwP",wrapper_popup:"SubscriptionUpsalePopup_wrapper_popup__Z4sfv",loader:"SubscriptionUpsalePopup_loader__mxiqu",close:"SubscriptionUpsalePopup_close__U6XD7",wrapper:"SubscriptionUpsalePopup_wrapper__6gxeM",image:"SubscriptionUpsalePopup_image__Fl6zJ",heading:"SubscriptionUpsalePopup_heading__7bfrI",heading__title:"SubscriptionUpsalePopup_heading__title___xVfv",heading__description:"SubscriptionUpsalePopup_heading__description__0bq_k",button:"SubscriptionUpsalePopup_button__2676e",content:"SubscriptionUpsalePopup_content__8QdKA"}},81935:e=>{e.exports={"storybook-root":"Loader_storybook-root__10UOY",root:"Loader_root__Vbqja",medium:"Loader_medium__w1Uxi",small:"Loader_small___WmKl"}}}]);

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.