PageSourceSearch

https://rutrip.ru/chunk-GFLH7PQU.js

js rutrip.ru collected 2026-10-07 23:05:43 UTC 16,858 bytes, 37 lines download raw bytes

1import{a as ee}from"./chunk-QLIOCIJD.js";import{a as te}from"./chunk-RRT6D2VB.js";import"./chunk-W6Q4WK5O.js";import"./chunk-MFQJJLBU.js";import"./chunk-2J6WLDK7.js";import"./chunk-HXC372FI.js";import"./chunk-NF3WIY6Y.js";import"./chunk-BHYXPISR.js";import{a as ne}from"./chunk-KGMUDKVW.js";import"./chunk-WEIYEA3Z.js";import"./chunk-AYYCO5HU.js";import"./chunk-YGM3QFYO.js";import"./chunk-DGXUNMUS.js";import"./chunk-5LDND6UQ.js";import"./chunk-BSKV42LS.js";import"./chunk-Y2LSEYET.js";import{a as J}from"./chunk-IZ6KJTAM.js";import"./chunk-A25M7PII.js";import"./chunk-PQZWEQ7A.js";import"./chunk-YORHOVQ4.js";import"./chunk-ARBU365Y.js";import{c as W}from"./chunk-HL5FFBAL.js";import"./chunk-3UVFROQ4.js";import"./chunk-TL45VQ4U.js";import"./chunk-T5LJDZMM.js";import"./chunk-VBUPATBV.js";import"./chunk-W4G5DLGM.js";import"./chunk-OSJ5DJR2.js";import"./chunk-TUNPPXSL.js";import"./chunk-SJCB4N2L.js";import{b as B,d as V,e as Q,i as K}from"./chunk-PSRDDVLV.js";import{d as Z}from"./chunk-XYMLTKLN.js";import{e as G}from"./chunk-M6TQA4BL.js";import"./chunk-OJ6OI3SZ.js";import{a as X}from"./chunk-TJKRUCIV.js";import"./chunk-MW336ASF.js";import"./chunk-ZBOAIVZI.js";import{a as Y}from"./chunk-KV3X4NB2.js";import"./chunk-EMRY6YP3.js";import{g as L,p as j}from"./chunk-VUEZCDAJ.js";import{Aa as u,Ac as d,Bc as w,Cc as k,E as M,Nb as s,Ob as m,Pb as F,Rb as v,Sb as b,Tb as p,Ub as l,Uc as D,Vb as c,Wb as g,Wc as H,_a as z,bc as E,dd as R,eb as o,ka as _,kc as I,m as q,mc as r,r as P,ra as T,sa as U,ub as N,va as $,yc as O}from"./chunk-6GM6NJU4.js";import"./chunk-IMPBB4AK.js";var ie=(e,i)=>i.Url;function ae(e,i){if(e&1&&(l(0,"li",15)(1,"a",16),d(2),c()()),e&2){let t=i.$implicit,n=r(6);O("faq-links__nested-item--active",t.Url===n.articleUrl),o(),p("routerLink","/spravochnaya/"+t.Url),o(),k(" ",t.Name," ")}}function re(e,i){if(e&1&&(l(0,"details",9)(1,"summary",11),g(2,"app-icon",12),d(3),c(),l(4,"ul",13),v(5,ae,3,4,"li",14,ie),c()()),e&2){let t=r().$implicit,n=r(4);p("open",t.Url===n.sectionUrl),o(3),k(" ",t.Name," "),o(2),b(t.faq_articles)}}function le(e,i){if(e&1&&(l(0,"a",10),g(1,"app-icon",12),d(2),c()),e&2){let t=r().$implicit,n=r();p("routerLink","/spravochnaya/"+n.Url+"/"+t.Url),o(2),k(" ",t.Name," ")}}function ce(e,i){if(e&1&&(l(0,"li",8),s(1,re,7,2,"details",9)(2,le,3,2,"a",10),c()),e&2){let t=i.$implicit,n=r(4);O("faq-links__list-item--active",t.Url===n.sectionUrl),o(),m(t.faq_articles!=null&&t.faq_articles.length?1:2)}}function se(e,i){e&1&&(l(0,"aside",4)(1,"ul",6),v(2,ce,3,3,"li",7,ie),c()()),e&2&&(o(2),b(i.faq_sections))}function me(e,i){if(e&1&&(l(0,"h1",21),d(1),c()),e&2){let t=r(2),n=t.$implicit,a=t.$index;p("id","paragraph"+a),o(),w(n.Name)}}function pe(e,i){if(e&1&&(l(0,"h2",21),d(1),c()),e&2){let t=r(2),n=t.$implicit,a=t.$index;p("id","paragraph"+a),o(),w(n.Name)}}function de(e,i){if(e&1&&(l(0,"h3",21),d(1),c()),e&2){let t=r(2),n=t.$implicit,a=t.$index;p("id","paragraph"+a),o(),w(n.Name)}}function _e(e,i){if(e&1){let t=E();l(0,"div",17)(1,"button",19),I("click",function(){T(t);let a=r(4);return U(a.goBack())}),g(2,"app-icon",20),c(),s(3,me,2,2,"h1",21),s(4,pe,2,2,"h2",21),s(5,de,2,2,"h3",21),c()}if(e&2){let t=r().$implicit;o(3),m(t.Type==="H1"?3:-1),o(),m(t.Type==="H2"||t.Type===null?4:-1),o(),m(t.Type==="H3"?5:-1)}}function fe(e,i){if(e&1&&(l(0,"h1",21),d(1),c()),e&2){let t=r(2),n=t.$implicit,a=t.$index;p("id","paragraph"+a),o(),w(n.Name)}}function ge(e,i){if(e&1&&(l(0,"h2",21),d(1),c()),e&2){let t=r(2),n=t.$implicit,a=t.$index;p("id","paragraph"+a),o(),w(n.Name)}}function we(e,i){if(e&1&&(l(0,"h3",21),d(1),c()),e&2){let t=r(2),n=t.$implicit,a=t.$index;p("id","paragraph"+a),o(),w(n.Name)}}function he(e,i){if(e&1&&(s(0,fe,2,2,"h1",21),s(1,ge,2,2,"h2",21),s(2,we,2,2,"h3",21)),e&2){let t=r().$implicit;m(t.Type==="H1"?0:-1),o(),m(t.Type==="H2"||t.Type===null?1:-1),o(),m(t.Type==="H3"?2:-1)}}function xe(e,i){if(e&1&&(s(0,_e,6,3,"div",17)(1,he,3,3),g(2,"div",18),D(3,"safe")),e&2){let t=i.$implicit,n=i.$index;m(n===0?0:1),o(2),p("innerHtml",H(3,2,t.Content,"html"),z)}}function ue(e,i){if(e&1&&(g(0,"app-bread-crumbs",1),l(1,"div",2)(2,"div",3),s(3,se,4,0,"aside",4),l(4,"div",5),v(5,xe,4,5,null,
1null,F),c()()()),e&2){let t,n=r(2);p("links",n.links()),o(3),m((t=n.currentProduct())?3:-1,t),o(2),b(n.currentArticle().paragraphs)}}function Ce(e,i){if(e&1&&s(0,ue,7,2),e&2){let t,n=r();m((t=n.currentArticle())?0:-1,t)}}var ve=`
2  {
3    faqs {
4      Name
5      faq_products {
6        Name
7        Url
8        faq_sections {
9          Name
10          Url
11          faq_articles {
12            Name
13            Url
14          }
15        }
16      }
17    }
18  }
19`,be=`
20  query FindArticle($where: JSON) {
21    faqArticles(where: $where) {
22      Name
23      paragraphs {
24        Name
25        Content
26        Type
27      }
28      Meta {
29        Title
30        Description
31        Keywords
32      }
33      Content
34      published_at
35    }
36  }
37`,He=(()=>{let i=class i{constructor(){this.graphql=_(ne),this.route=_(B),this.router=_(V),this.metaService=_(J),this.scrollService=_(Z),this.location=_(L),this.injector=_($),this.paramsSignal=W(this.route.params,{initialValue:this.route.snapshot.params}),this.faq=u(null),this.productUrl=null,this.currentProduct=u(null),this.sectionUrl=null,this.currentSection=u(null),this.articleUrl=null,this.currentArticle=u(null),this.links=u([{name:"\u0413\u043B\u0430\u0432\u043D\u0430\u044F",url:"/"},{name:"C\u043F\u0440\u0430\u0432\u043E\u0447\u043D\u0430\u044F",url:"/spravochnaya"}])}ngOnInit(){R(()=>{let n=this.paramsSignal();this.loadArticle(n.article)},{allowSignalWrites:!0,injector:this.injector})}async loadArticle(n){this.articleUrl=n;let[a,y]=await Promise.all([P(this.graphql.execute(ve).pipe(M(()=>q({faqs:[]})))),P(this.graphql.execute(be,{where:{Url_in:[this.articleUrl,"/"+this.articleUrl]}}).pipe(M(()=>q({faqArticles:[]}))))]),h=a.faqs?.[0]??null;if(!h){this.router.navigate(["not-found"]);return}this.faq.set(h),this.productUrl="poezd";let A=h.faq_products??[],S=G(A,f=>f.faq_sections??[]).find(f=>f.faq_articles.some(oe=>oe.Url===this.articleUrl));if(!S){this.router.navigate(["not-found"]);return}this.sectionUrl=S.Url,this.currentArticle.set(y.faqArticles?.[0]??null);let x=A.find(f=>f.Url===this.productUrl);if(!x){this.router.navigate(["not-found"]);return}this.currentProduct.set(x);let C=(x.faq_sections??[]).find(f=>f.Url===this.sectionUrl);if(!C){this.router.navigate(["not-found"]);return}if(this.currentSection.set(C),!this.currentArticle()){this.router.navigate(["not-found"]);return}this.links.set([{name:"\u0413\u043B\u0430\u0432\u043D\u0430\u044F",url:"/"},{name:"C\u043F\u0440\u0430\u0432\u043E\u0447\u043D\u0430\u044F",url:"/spravochnaya"},{name:x.Name,url:"/spravochnaya/"+x.Url},{name:C.Name,url:"/spravochnaya/"+x.Url+"/"+C.Url},{name:this.currentArticle().Name,url:"/spravochnaya/"+this.articleUrl}]),this.setMeta(this.currentArticle().Meta)}scrollToParagraph(n){return this.scrollService.scrollToElementById("paragraph"+n,200)}goBack(){this.location.back()}setMeta(n){n&&(this.metaService.setTitle(n.Title),this.metaService.setDescription(n.Description),this.metaService.setKeyWords(n.Keywords))}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=N({type:i,selectors:[["app-article-page"]],decls:2,vars:1,consts:[["mode","full"],[1,"timeline","timeline--faq",3,"links"],["boxMain","",1,"faq","article-page"],[1,"faq__container","faq__container--layout"],[1,"faq-links","faq-links--desktop"],[1,"faq-content"],[1,"faq-links__list"],[1,"faq-links__list-item",3,"faq-links__list-item--active"],[1,"faq-links__list-item"],[1,"faq-links__dropdown",3,"open"],[1,"faq-links__list-link",3,"routerLink"],[1,"faq-links__list-link"],["href","assets/icons/rzd/arrows/chevron-down-green.svg","size","16","aria-hidden","true",1,"faq-links__icon"],[1,"faq-links__nested-list"],[1,"faq-links__nested-item",3,"faq-links__nested-item--active"],[1,"faq-links__nested-item"],[1,"faq-links__nested-link",3,"routerLink"],[1,"faq-content__header"],[1,"faq__text",3,"innerHtml"],["type","button","aria-label","\u041D\u0430\u0437\u0430\u0434",1,"dashboard-back",3,"click"],["href","assets/icons/rzd/arrows/arrow-back.svg","size","20"],[1,"destination__title",3,"id"]],template:function(a,y){if(a&1&&(g(0,"app-search-form",0),s(1,Ce,1,1)),a&2){let h;o(),m((h=y.faq())?1:-1,h)}},dependencies:[j,K,Q,ee,te,Y,X],styles:["[_ngcontent-%COMP%]:root{--wm-color-neutral-0: #fff;--wm-color-neutral-25: #fdf5f0;--wm-color-neutral-50: #f7fbfc;--wm-color-neutral-100: #f3f3f3;--wm-color-neutral-150: #e4e4e4;--wm-color-neutral-200: #ccc;--wm-color-neutral-250: #c2c2c2;--wm-color-neutral-300: #b7b7b7;--wm-color-neutral-400: #a4a4a4;--wm-color-neutral-500: #979797;--wm-color-neutral-600: #808080;--wm-color-neutral-700: #4a4a4a;--wm-color-neutral-800: #333;--wm-color-neutral-900: #000;--wm-color-brand-base: #33cebe;--wm-color-brand-hover: #34c0b2;--wm-color-brand-active: #42aaaa;--wm-color-brand-40: #c7f3ed;--wm-color-brand-20: rgba(51, 206, 190, .15);--wm-color-brand-text: #69978f;--wm-color-pale-blue: #ecf7fa;--wm-color-pale-blue-hover: #e0f3f7;--wm-color-coral: #ff934e;--wm-color-coral-hover: #f17221;--wm-color-light-coral: #fdf5f0;--wm-color-english-green: #154f4e;--wm-color-english-green-60: rgba(21, 79, 78, .6);--wm-color-english-green-30: #6a9998;--wm-color-green: #65a904;--wm-color-green-light: #14dc43;--wm-color-orange: #ff5f1f;--wm-color-yellow: #e8c500;--wm-color-error-500: #f85359;--wm-color-error-bg: #fff4f5;--wm-color-brand-soft: rgba(51, 206, 190, .2);--wm-color-english-soft: rgba(21, 79, 78, .08);--wm-color-overlay-45: rgba(0, 0, 0, .45);
37--wm-color-overlay-55: rgba(0, 0, 0, .55);--wm-font-family-base: Roboto, Arial, Helvetica, sans-serif;--wm-font-weight-regular: 400;--wm-font-weight-medium: 500;--wm-font-weight-bold: 700;--wm-font-size-xs: 12px;--wm-font-size-sm: 14px;--wm-font-size-base: 16px;--wm-font-size-md: 18px;--wm-font-size-lg: 20px;--wm-font-size-xl: 24px;--wm-font-size-2xl: 28px;--wm-font-size-3xl: 32px;--wm-font-size-display: 40px;--wm-line-height-tight: 14px;--wm-line-height-sm: 16px;--wm-line-height-base: 19px;--wm-line-height-md: 21px;--wm-line-height-lg: 23px;--wm-line-height-xl: 26px;--wm-line-height-2xl: 30px;--wm-line-height-3xl: 37px;--wm-line-height-display: 48px;--wm-space-1: 4px;--wm-space-2: 8px;--wm-space-3: 12px;--wm-space-4: 14px;--wm-space-5: 16px;--wm-space-6: 18px;--wm-space-7: 20px;--wm-space-8: 24px;--wm-space-9: 28px;--wm-space-10: 30px;--wm-space-11: 32px;--wm-space-12: 35px;--wm-space-13: 40px;--wm-space-14: 45px;--wm-space-15: 60px;--wm-space-16: 70px;--wm-space-17: 95px;--wm-radius-xs: 2px;--wm-radius-sm: 4px;--wm-radius-md: 8px;--wm-radius-lg: 10px;--wm-radius-xl: 12px;--wm-radius-2xl: 14px;--wm-radius-3xl: 16px;--wm-shadow-base: 6px 6px 15px rgba(0, 0, 0, .1);--wm-focus-ring: 0 0 0 3px rgba(51, 206, 190, .35);--wm-text-primary: #333;--wm-text-secondary: #808080;--wm-text-tertiary: #c2c2c2;--wm-text-muted: #69978f;--wm-text-invert: #fff;--wm-bg-surface: #fff;--wm-bg-muted: #f7fbfc;--wm-bg-soft: #ecf7fa;--wm-bg-soft-hover: #e0f3f7;--wm-bg-surface-elevated: rgba(255, 255, 255, .96);--wm-bg-warn-soft: #fdf5f0;--wm-bg-warn-hover: #ffe8d4;--wm-bg-warn-active: #f7cf7e;--wm-bg-input: #f3f3f3;--wm-border-default: #e4e4e4;--wm-border-weak: #ccc;--wm-border-strong: #808080;--wm-accent: #33cebe;--wm-accent-hover: #34c0b2;--wm-accent-active: #42aaaa;--wm-accent-soft: rgba(51, 206, 190, .15);--wm-accent-dark: #154f4e;--wm-accent-dark-hover: rgba(21, 79, 78, .6);--wm-accent-dark-active: #6a9998;--wm-accent-dark-soft: rgba(21, 79, 78, .08);--wm-accent-warn: #ff934e;--wm-accent-warn-hover: #f17221;--wm-accent-warn-active: #d75a05;--wm-error: #f85359;--wm-error-bg: #fff4f5;--wm-error-hover: #e64a50;--wm-error-active: #d94248;--wm-success: #65a904;--wm-success-hover: #4f8703;--wm-success-active: #3b6602;--wm-success-soft: #e9f3d8;--wm-success-strong: #14dc43;--wm-warning: #e8c500;--wm-warning-soft: #fff6d8;--wm-highlight: #ff5f1f;--wm-overlay-dark: rgba(0, 0, 0, .45);--wm-overlay-darker: rgba(0, 0, 0, .55);--typo-h1-font-size: 40px;--typo-h1-line-height: 48px;--typo-h2-font-size: 32px;--typo-h2-line-height: 38px;--typo-h3-font-size: 22px;--typo-h3-line-height: 28px;--typo-h4-font-size: 20px;--typo-h4-line-height: 24px;--typo-h5-font-size: 16px;--typo-h5-line-height: 22px;--typo-h6-font-size: 14px;--typo-h6-line-height: 20px;--typo-body-font-size: 16px;--typo-body-line-height: 22px;--typo-caption-font-size: 14px;--typo-caption-line-height: 18px;--typo-placeholder-font-size: 12px;--typo-placeholder-line-height: 16px}[_nghost-%COMP%]{display:block}.destination[_ngcontent-%COMP%]{margin:0}.destination__title[_ngcontent-%COMP%]{margin:0;line-height:var(--typo-h3-line-height)}.faq[_ngcontent-%COMP%]{padding:var(--wm-space-6) var(--wm-space-15);background:var(--wm-bg-muted)}.faq__container[_ngcontent-%COMP%]{box-sizing:border-box;max-width:1440px;margin:0 auto}.faq-links[_ngcontent-%COMP%]{flex:0 0 320px;margin:0;padding-left:0}.faq-links__section[_ngcontent-%COMP%]{list-style:none}.faq-links__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--wm-space-5);padding-left:0;list-style:none}.faq__container--layout[_ngcontent-%COMP%]{display:flex;gap:var(--wm-space-11);align-items:flex-start}.faq-content[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--wm-space-5);width:100%}.faq-content__header[_ngcontent-%COMP%]{display:flex;gap:var(--wm-space-3);align-items:flex-start}.faq-content__header[_ngcontent-%COMP%]   .destination__title[_ngcontent-%COMP%]{margin:0}.dashboard-back[_ngcontent-%COMP%]{cursor:pointer;display:none;flex:0 0 40px;align-items:center;align-self:flex-start;justify-content:center;width:40px;height:40px;padding:0;border:1px solid var(--wm-accent);border-radius:50%;background:var(--wm-bg-soft)}.dashboard-back[_ngcontent-%COMP%]:hover, .dashboard-back[_ngcontent-%COMP%]:focus{background:var(--wm-bg-soft);outline:none}.faq-links__list-item[_ngcontent-%COMP%]{padding:0}.faq-links__dropdown[_ngcontent-%COMP%]{margin:0}.faq-links__dropdown[_ngcontent-%COMP%] > summary[_ngcontent-%COMP%]{cursor:pointer;list-style:none}.faq-links__dropdown[_ngcontent-%COMP%] > summary[_ngcontent-%COMP%]::-webkit-details-marker{display:none}.faq-links__nested-list[_ngcontent-%COMP%]{display:none;flex-direction:column;gap:var(--wm-space-2);margin:var(--wm-space-2) 0 0;padding:var(--wm-space-3);border-radius:var(--wm-radius-md);list-style:none;background:var(--wm-color-neutral-0);box-shadow:var(--wm-shadow-base)}.faq-links__dropdown[open][_ngcontent-%COMP%]   .faq-links__nested-list[_ngcontent-%COMP%]{display:flex}.faq-links__nested-link[_ngcontent-%COMP%]{display:block;padding:var(--wm-space-2) var(--wm-space-3);border-radius:var(--wm-radius-sm);color:var(--wm-text-primary);text-decoration:none}.faq-links__nested-link[_ngcontent-%COMP%]:hover, .faq-links__nested-link[_ngcontent-%COMP%]:focus{color:var(--wm-accent);background:var(--wm-bg-soft);outline:none}.faq-links__nested-item--active[_ngcontent-%COMP%]   .faq-links__nested-link[_ngcontent-%COMP%]{color:var(--wm-accent);background:var(--wm-bg-soft)}.faq-links__icon[_ngcontent-%COMP%]{transform:rotate(-90deg);flex:0 0 auto;transition:transform .15s ease}.faq-links__dropdown[open][_ngcontent-%COMP%]   .faq-links__icon[_ngcontent-%COMP%]{transform:rotate(0)}.faq-links__list-link[_ngcontent-%COMP%]{display:flex;gap:var(--wm-space-2);align-items:center;padding:var(--wm-space-5);border-radius:var(--wm-radius-md);color:var(--wm-accent-dark);text-decoration:none;background-color:var(--wm-color-neutral-0);box-shadow:var(--wm-shadow-base)}.faq-links__list-link[_ngcontent-%COMP%]:hover{color:var(--wm-accent);text-decoration:none}.faq-links__list-item[_ngcontent-%COMP%]:hover   .faq-links__list-link[_ngcontent-%COMP%]{color:var(--wm-accent);text-decoration:none;background:var(--wm-bg-soft)}.faq-links__dropdown[open][_ngcontent-%COMP%]   .faq-links__list-link[_ngcontent-%COMP%]{color:var(--wm-accent);background:var(--wm-bg-soft)}.faq__text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--wm-space-5);word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%]     .faq__text p{margin:0}[_nghost-%COMP%]     .faq__text a{color:var(--wm-accent);text-decoration:underline;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%]     .faq__text a:hover, [_nghost-%COMP%]     .faq__text a:focus{color:var(--wm-accent-dark);outline:none}[_nghost-%COMP%]     .faq__text table{width:auto;max-width:100%}@media (max-width: 1199px){.faq[_ngcontent-%COMP%]{padding:var(--wm-space-5) var(--wm-space-7)}.faq__container--layout[_ngcontent-%COMP%]{flex-direction:column}.faq-links--desktop[_ngcontent-%COMP%]{display:none}.dashboard-back[_ngcontent-%COMP%]{display:inline-flex}.destination__title[_ngcontent-%COMP%]{font-size:var(--wm-font-size-xl)}}"],changeDetection:0});let e=i;return e})();export{He as ArticlePageComponent};

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.