PageSourceSearch

https://testlearn.ru/_next/static/chunks/pages/dashboard/buy-20d770d8dc33fbc59fa1.js

js testlearn.ru collected 2026-10-08 20:33:15 UTC 13,498 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[52],{"2OY2":function(t,e,n){"use strict";n.r(e),n.d(e,"__N_SSP",(function(){return mt}));var i,r,c,o,a,s,d,l=n("q1tI"),u=n("7LMm"),p=n("C7ME"),m=n("9xET"),j=n.n(m),h=n("rg98"),b=n("xvhg"),f=n("vJKn"),x=n.n(f),g=n("5niy"),O=n("vOnD"),w=n("7rFr"),y=n("WlSH"),v=n("PxG2"),P=n("eNA2"),_=n("4IMT"),I=n.n(_),C=n("ZPTe"),E=n.n(C),N=n("d1El"),L=n.n(N),k=n("Lyp1"),S=n("rxVv"),T=n("bRQS"),z=n("cCbv"),A=O.d.div.withConfig({displayName:"ProductsCommon__ProductItem",componentId:"sc-7yjngj-0"})(["background-color:#fff;display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:",";padding:20px 22px;color:#335;transition:0.3s;&:hover{color:#335;box-shadow:0 5px 16px ",";margin-top:-6px;margin-bottom:6px;transform:scale(1.015);}@media (max-width:768px){text-align:center;}"],(function(t){return t.theme.borderRadius}),(function(t){return t.theme.lightColorDark})),R=O.d.div.withConfig({displayName:"ProductsCommon__ProductItemWrapper",componentId:"sc-7yjngj-1"})(["width:100%;"]),F=O.d.div.withConfig({displayName:"ProductsCommon__ProductItemName",componentId:"sc-7yjngj-2"})(["font-size:19px;font-weight:600;"]),B=O.d.div.withConfig({displayName:"ProductsCommon__ProductItemType",componentId:"sc-7yjngj-3"})(["margin-top:5px;margin-bottom:15px;"]),D=O.d.div.withConfig({displayName:"ProductsCommon__ProductItemTypeFree",componentId:"sc-7yjngj-4"})(["color:#ffa940;"]),M=O.d.div.withConfig({displayName:"ProductsCommon__ProductItemTypePremium",componentId:"sc-7yjngj-5"})(["color:#9254de;svg{color:#999;}"]),q=O.d.div.withConfig({displayName:"ProductsCommon__ProductItemDescription",componentId:"sc-7yjngj-6"})(["color:#889;font-size:14px;line-height:24px;"]),U=O.d.div.withConfig({displayName:"ProductsCommon__ProductItemPriceWrapper",componentId:"sc-7yjngj-7"})(["text-align:end;@media (min-width:769px){height:100%;flex-direction:column;display:flex;justify-content:space-between;}@media (max-width:768px){text-align:center;margin-top:28px;button{width:100%;}}"]),V=O.d.div.withConfig({displayName:"ProductsCommon__ProductItemPrice",componentId:"sc-7yjngj-8"})(["font-size:32px;font-weight:700;span{font-size:0.7em;color:#668;font-weight:500;}"]),J=O.d.div.withConfig({displayName:"ProductsCommon__ProductItemOldPrice",componentId:"sc-7yjngj-9"})(["color:#779;margin-top:-2px;font-size:15px;font-weight:600;"]),Q=O.d.span.withConfig({displayName:"ProductsCommon__ProductItemOldPriceLineThrough",componentId:"sc-7yjngj-10"})(["text-decoration:line-through;"]),W=O.d.span.withConfig({displayName:"ProductsCommon__ProductItemOldPriceRuble",componentId:"sc-7yjngj-11"})(["font-size:0.7em;font-weight:500;"]),H=O.d.div.withConfig({displayName:"ProductsCommon__ProductItemButtonWrapper",componentId:"sc-7yjngj-12"})(["margin-top:10px;@media (max-width:768px){margin-top:20px;}"]),G=O.d.div.withConfig({displayName:"ProductsCommon__ProductItemAlreadyBuyed",componentId:"sc-7yjngj-13"})(["color:#389e0d;span{font-size:0.8em;margin-right:5px;}"]),K=n("nKUr"),Y=function(t){var e=t.product,n=t.onClick,i=t.buyInProccess,r=void 0!==i&&i;return Object(K.jsx)(E.a,{span:24,xl:12,xxl:8,children:Object(K.jsx)(A,{onClick:function(){e.can_buy&&n(e.id)},style:e.can_buy?{cursor:"pointer"}:null,children:Object(K.jsx)(R,{children:Object(K.jsxs)(j.a,{gutter:[16,0],children:[Object(K.jsxs)(E.a,{span:24,md:18,children:[Object(K.jsx)(F,{children:e.name}),Object(K.jsx)(B,{children:e.exam_type===z.a.FREE?Object(K.jsx)(D,{children:"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e"}):Object(K.jsxs)(M,{children:["\u041f\u0440\u0435\u043c\u0438\u0443\u043c \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430"," ",Object(K.jsx)(L.a,{title:Object(K.jsxs)("div",{style:{textAlign:"center"},children:["\u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a,",Object(K.jsx)("br",{}),"\u0440\u0430\u0437\u043e\u0432\u0430\u044f \u043e\u043f\u043b\u0430\u0442\u0430 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f ",Object(K.jsx)("br",{}),"\u043d\u0430 \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0439 \u0441\u0440\u043e\u043a"]}),children:Object(K.jsx)(k.a,{})})]})}),Object(K.jsx)(q,{children:e.description})]}),Object(K.jsx)(E.a,{span:24,md:6,children:Object(K.jsxs)(U,{children:[Object(K.jsxs)("div",{children:[Object(K.jsxs)(V,{children:[e.price," ",Object(K.jsx)("span",{children:"\u20bd"})]}),0!==e.old_price&&Object(K.jsxs)(J,{children:[Object(K.jsx)(Q,{children:e.old_price})," ",Object(K.jsx)(W,{children:"\u20bd"})]})]}),Object(K.jsx)(H,{children:e.can_buy?Object(K.jsxs)(I.a,{disabled:r,loading:r,type:"primary",children:["\u041a\u0443\u043f\u0438\u0442\u044c ",Object(K.jsx)(S.a,{})]}):Object(K.jsxs)(G,{children:[Object(K.jsx)(T.a,{})," \u041a\u0443\u043f\u043b\u0435\u043d\u043e"]})})]})})]})})})})},Z=n("wM0b"),X=n.n(Z),$=function(){return Object(K.jsx)(E.a,{span:24,xl:12,xxl:8,children:Object(K.jsx)(X.a.Input,{active:!0,block:!0,style:{height:"140px"}})})},tt=n("4nv/"),et=n("H+61"),nt=n("UlJF"),it=n("EaFg"),rt=(n("ACih"),n("2vnA")),ct=n("S8fy"),ot=n("auwf"),at=Object(ct.b)()(i=function(){function t(){var e=this;Object(et.a)(this,t),this.baseProductsApiEndpoint="/products/v1",this.baseOrdersApiEndpoint="/orders/v1",this.fetchAll=function(){return e.apiService.get(e.baseProductsApiEndpoint)},this.orderOne=function(t){return e.apiService.post("".concat(e.baseOrdersApiEndpoint,"/create"),t)}}return Object(nt.a)(t,[{key:"apiService",get:function(){return ct.a.resolve(ot.a)}}]),t}())||i,st=(r=Object(ct.c)(),c=Reflect.metadata("design:type",Array),r((a=function(){function t(){var e=this;Object(et.a)(this,t),Object(tt.a)(this,"isInitialDataLoaded",s,this),Object(tt.a)(this,"products",d,this),this.loadProducts=Object(h.a)(x.a.mark((function t(){return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isInitialDataLoaded){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.productsService.fetchAll();case 4:e.products=t.sent,e.isInitialDataLoaded=!0;case 6:case"end":return t.stop()}}),t)}))),this.buyProduct=function(){var t=Object(h.a)(x.a.mark((function t(n){var i;return x.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.productsService.orderOne({id:n});case 2:if(!(i=t.sent).success){t.next=5;break}return t.abrupt("return",i.redirect_url);case 5:return t.abrupt("return",null);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}return Object(nt.a)(t,[{key:"productsService",get:function(){return ct.a.resolve(at)}}]),t}(),s=Object(it.a)(a.prototype,"isInitialDataLoaded",[rt.n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d=Object(it.a)(a.prototype,"products",[rt.n,c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),o=a))||o),dt=n("Ftmf"),lt=O.d.div.withConfig({displayName:"Products__ProductsContent",componentId:"sc-ncl38p-0"})(["display:flex;width:100%;flex-direction:column;justify-content:space-between;
1height:100%;row-gap:60px;"]),ut=O.d.div.withConfig({displayName:"Products__FooterAgreement",componentId:"sc-ncl38p-1"})(["position:relative;width:100%;font-size:13px;text-align:center;color:",";a{font-size:13px;color:",";text-decoration:underline;}"],(function(t){return t.theme.gray50}),(function(t){return t.theme.gray50})),pt=function(){var t=Object(v.a)(st),e=l.useState(!1),n=Object(b.a)(e,2),i=n[0],r=n[1],c=[{title:"\u041a\u0443\u043f\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u044b"}];l.useEffect((function(){t.loadProducts()}),[]);var o=function(e){i||(r(!0),Object(h.a)(x.a.mark((function n(){var i;return x.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.buyProduct(e);case 2:(i=n.sent)&&(window.location.href=i);case 4:case"end":return n.stop()}}),n)})))())},a=l.useCallback((function(){return new Array(6).fill(null).map((function(t,e){return Object(K.jsx)($,{},e)}))}),[t.isInitialDataLoaded]);return Object(K.jsx)(g.a,{children:function(){return Object(K.jsx)(K.Fragment,{children:Object(K.jsxs)(lt,{children:[Object(K.jsxs)("div",{children:[Object(K.jsxs)(P.a,{children:[Object(K.jsx)(w.a,{list:c,isDashboard:!0}),Object(K.jsx)(y.a.Pagetitle,{small:!0,children:c[0].title})]}),Object(K.jsx)("div",{children:Object(K.jsx)(j.a,{gutter:[16,16],children:t.isInitialDataLoaded?t.products.map((function(t){return Object(K.jsx)(Y,{product:t,onClick:o,buyInProccess:i},t.id)})):a()})})]}),Object(K.jsxs)(ut,{children:["\u041d\u0430\u0436\u0430\u0432 \u043a\u043d\u043e\u043f\u043a\u0443 \xab\u041a\u0443\u043f\u0438\u0442\u044c\xbb, \u0432\u044b \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044c \u0441"," ",Object(K.jsx)("a",{href:dt.a.PUBLIC_OFFER,target:"_blank",children:"\u0423\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f"}),"."]})]})})}})},mt=!0;e.default=function(){return Object(K.jsxs)(u.a,{children:[Object(K.jsx)(p.a,{title:"\u041a\u0443\u043f\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u044b",description:"\u041b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442"}),Object(K.jsx)(pt,{})]})}},"7rFr":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));n("q1tI");var i=n("YFqc"),r=n.n(i),c=n("vOnD"),o=n("nKUr"),a=c.d.ol.withConfig({displayName:"Breadcrumbs__BreadcrumbWrapper",componentId:"sc-1ybmbe-0"})(["width:100%;color:#999;list-style:none;padding:0;margin:0;display:flex;overflow:hidden;white-space:nowrap;li{display:inline-block;font-size:15px;+ li{&:before{content:'/';padding:0 10px;}}a{color:",";text-decoration:none;}&:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"],(function(t){return t.theme.primaryColor})),s=function(t){var e=t.list,n=t.isDashboard,i=void 0!==n&&n;return Object(o.jsxs)(a,{itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[Object(o.jsx)("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:i?Object(o.jsx)(r.a,{href:"/dashboard",children:Object(o.jsx)("a",{itemProp:"item",children:"\u0413\u043b\u0430\u0432\u043d\u0430\u044f"})}):Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)(r.a,{href:"/",children:Object(o.jsx)("a",{itemProp:"item",children:Object(o.jsx)("span",{itemProp:"name",children:"\u0413\u043b\u0430\u0432\u043d\u0430\u044f"})})}),Object(o.jsx)("meta",{itemProp:"position",content:"1"})]})}),e.map((function(t,e){return Object(o.jsx)("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:t.url?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)(r.a,{href:t.url,children:Object(o.jsx)("a",{itemProp:"item",children:Object(o.jsx)("span",{itemProp:"name",children:t.title})})}),Object(o.jsx)("meta",{itemProp:"position",content:"".concat(e+2)})]}):Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("span",{itemProp:"name",children:t.title}),Object(o.jsx)("meta",{itemProp:"position",content:"".concat(e+2)})]})},e)}))]})}},Lyp1:function(t,e,n){"use strict";var i=n("wx14"),r=n("q1tI"),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},o=n("6VBw"),a=function(t,e){return r.createElement(o.a,Object(i.a)({},t,{ref:e,icon:c}))},s=r.forwardRef(a);e.a=s},bRQS:function(t,e,n){"use strict";var i=n("wx14"),r=n("q1tI"),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},o=n("6VBw"),a=function(t,e){return r.createElement(o.a,Object(i.a)({},t,{ref:e,icon:c}))},s=r.forwardRef(a);e.a=s},cCbv:function(t,e,n){"use strict";var i,r;n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r})),function(t){t.QUESTION_TIME="question_time",t.TEST_TIME="test_time"}(i||(i={})),function(t){t.FREE="FREE",t.NUMERIC="NUMERIC",t.VERBAL="VERBAL",t.LOGICAL="LOGICAL",t.ERUDITION="ERUDITION",t.OPQ32="OPQ32"}(r||(r={}))},nJZq:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/buy",function(){return n("2OY2")}])},rxVv:function(t,e,n){"use strict";var i=n("wx14"),r=n("q1tI"),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},o=n("6VBw"),a=function(t,e){return r.createElement(o.a,Object(i.a)({},t,{ref:e,icon:c}))},s=r.forwardRef(a);e.a=s}},[["nJZq",2,0,7,11,1,3,5,4,6,9,8,10,12,20,27]]]);

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.