PageSourceSearch

https://iampho.ru/var/cache/asset20_4cbfa6d0f8480e91c0fb8e0b5967b40e.js

js iampho.ru collected 2026-10-07 18:10:00 UTC 17,159 bytes, 119 lines download raw bytes

1app.cookieToastComponent={props:['title','description','buttonAccept','buttonDecline'],data(){return{breaking:!1}},methods:{onAccept(){if(this.breaking){return}
2this.$emit('accept');this.crumble()},onDecline(){if(this.breaking){return}
3this.$emit('decline');this.crumble()},crumble(){this.breaking=!0;this.closeTimer=setTimeout(()=>this.$emit('close'),1300)}},beforeDestroy(){clearTimeout(this.closeTimer)},template:`
4
5        <div class="cToast" role="region" aria-live="polite">
6
7            <!-- Жирный зачин (заголовок) + готовое HTML-сообщение (cookieMessage с бэка или
8                 loc-дефолт) со ссылкой на политику внутри текста → v-html.
9                 Источник — наш бэк, не пользовательский ввод. -->
10            <div class="cToast__description">
11                <b class="cToast__lead">{{title}}</b> <span v-html="description"></span>
12            </div>
13
14            <div class="cToast__actions">
15
16                <!-- «OK» — согласие (granted). -->
17                <button type="button" class="cToast__accept" @click="onAccept">
18                    <span>{{buttonAccept}}</span>
19                </button>
20
21                <!-- Печенька-крестик — отказ (denied). Клик крошит печеньку. -->
22                <button type="button" class="cToast__decline" :class="{'cToast__decline--breaking': breaking}" @click="onDecline" :aria-label="buttonDecline">
23                    <svg class="cToast__cookie cookieIco" :class="{'cookieIco--play': breaking}" viewBox="0 0 29 29" aria-hidden="true">
24                    <g transform="translate(14.4075 14.5001)">
25                        <g class="cookieIco__g2">
26                            <g transform="translate(8.2772 -2.2585)">
27                                <g class="cookieIco__g4" transform="translate(0.9522 -0.1194)">
28                                    <g transform="scale(0.2636 0.2636)">
29                                        <g class="cookieIco__g7" opacity="0">
30                                            <path d="M-5.052 -2.059C-4.838 1.258 -3.795 3.154 -1.089 3.685C1.617 4.215 4.448 6.345 4.748 -0.139C5.266 -2.78 1.908 -5.42 0.786 -5.882C-0.336 -6.345 -5.266 -5.377 -5.052 -2.059C-5.052 -2.059 -5.052 -2.059 -5.052 -2.059Z" fill="#000000"/>
31                                        </g>
32                                    </g>
33                                </g>
34                                <g class="cookieIco__g9" transform="translate(-1.3618 -5.1832)">
35                                    <g transform="scale(0.2636 0.2636)">
36                                        <g class="cookieIco__g12" opacity="0">
37                                            <path d="M3.256 1.227C1.175 4.399 -0.124 4.644 -1.306 2.182C-2.957 -0.309 -3.977 -0.618 -3.256 -2.051C-1.95 -4.644 -0.493 -3.911 1.306 -3.006C2.354 -2.478 3.977 -0.205 3.256 1.227Z" fill="#000000"/>
38                                        </g>
39                                    </g>
40                                </g>
41                                <g class="cookieIco__g14" transform="translate(1.7328 -3.446)">
42                                    <g transform="rotate(26.7192)">
43                                        <g transform="scale(0.2636 0.2636)">
44                                            <g class="cookieIco__g17">
45                                                <path class="cookieIco__p18" d="M0 -1.552C0.857 -1.552 1.552 -0.857 1.552 0C1.552 0.857 0.857 1.552 0 1.552C-0.857 1.552 -1.552 0.857 -1.552 0C-1.552 -0.857 -0.857 -1.552 0 -1.552Z" fill="#000000" fill-opacity="0"/>
46                                            </g>
47                                        </g>
48                                    </g>
49                                </g>
50                                <g class="cookieIco__g19" transform="translate(0.6971 1.9065)">
51                                    <g transform="rotate(26.7192)">
52                                        <g transform="scale(0.2636 0.2636)">
53                                            <path class="cookieIco__p22" d="M0 -1.291C0.713 -1.291 1.291 -0.713 1.291 0C1.291 0.713 0.713 1.291 0 1.291C-0.713 1.291 -1.291 0.713 -1.291 0C-1.291 -0.713 -0.713 -1.291 0 -1.291Z" fill="#000000" fill-opacity="0"/>
54                                        </g>
55                                    </g>
56                                </g>
57                                <g class="cookieIco__g23" transform="translate(0.5832 5.3479)">
58                                    <g transform="rotate(145.0564)">
59                                        <g transform="scale(0.2636 -0.2636)">
60                                            <g class="cookieIco__g26" opacity="0">
61                                                <path d="M0 -2.31C1.276 -2.31 2.31 -1.276 2.31 0C2.31 1.276 1.276 2.31 0 2.31C-1.276 2.31 -2.31 1.276 -2.31 0C-2.31 -1.276 -1.276 -2.31 0 -2.31Z" fill="#000000"/>
62                                            </g>
63                                        </g>
64                                    </g>
65                                </g>
66                            </g>
67                            <path d="M-0.015 -10.574C1.365 -10.574 2.683 -10.309 3.892 -9.828C4.059 -9.762 4.142 -9.577 4.102 -9.401C4.034 -9.103 3.998 -8.792 3.998 -8.473C3.998 -6.709 5.097 -5.202 6.649 -4.598C6.841 -4.523 6.948 -4.31 6.893 -4.111C6.793 -3.755 6.74 -3.379 6.74 -2.991C6.74 -2.837 6.749 -2.685 6.765 -2.535C6.776 -2.438 6.748 -2.34 6.695 -2.258C6.548 -2.03 6.463 -1.76 6.463 -1.469C6.463 -0.662 7.117 -0.008 7.924 -0.008C7.973 -0.008 8.02 0.009 8.056 0.043C8.169 0.149 8.289 0.248 8.413 0.341C8.602 0.482 8.634 0.764 8.482 0.944C7.869 1.668 7.499 2.605 7.499 3.628C7.499 4.546 7.798 5.396 8.303 6.084C8.399 6.215 8.407 6.396 8.306 6.525C6.37 8.99 3.363 10.574 -0.015 10.574C-0.015 10.574 -0.015 10.574 -0.015 10.574C-0.015 10.574 -0.016 10.573 -0.016 10.573C-0.016 10.568 -0.015 10.563 -0.015 10.557C-0.015 9.374 -0.974 8.416 -2.157 8.416C-2.924 8.416 -3.596 8.818 -3.975 9.424C-4.079 9.59 -4.285 9.678 -4.463 9.595C-8.08 7.916 -10.589 4.251 -10.589 0C-10.589 -3.189 -9.177 -6.049 -6.944 -7.987C-6.827 -8.089 -6.658 -8.095 -6.519 -8.027C-6.252 -7.896 -5.951 -7.823 -5.633 -7.823C-4.515 -7.823 -3.608 -8.729 -3.608 -9.847C-3.608 -9.906 -3.573 -9.96 -3.517 -9.98C-2.421 -10.364 -1.243 -10.574 -0.015 -10.574C-0.015 -10.574 -0.015 -10.574 -0.015 -10.574ZM4.753 5.211C4.295 5.211 3.924 5.582 3.924 6.04C3.924 6.497 4.295 6.869 4.753 6.869C5.21 6.869 5.582 6.497 5.582 6.04C5.582 5.582 5.21 5.211 4.753 5.211ZM-7.612 3.017C-8.036 3.017 -8.379 3.36 -8.379 3.784C-8.379 4.207 -8.036 4.55 -7.612 4.55C-7.189 4.55 -6.846 4.207 -6.846 3.784C-6.846 3.36 -7.189 3.017 -7.612 3.017ZM-6.23 -3.146C-6.641 -3.146 -6.974 -2.813 -6.974 -2.403C-6.974 -1.992 -6.641 -1.659 -6.23 -1.659C-5.82 -1.659 -5.487 -1.992 -5.487 -2.403C-5.487 -2.813 -5.82 -3.146 -6.23 -3.146C-6.23 -3.146 -6.23 -3.146 -6.23 -3.146ZM0.568 -7.899C-0.238 -7.899 -0.892 -7.245 -0.892 -6.439C-0.892 -5.632 -0.238 -4.978 0.568 -4.978C1.375 -4.978 2.029 -5.632 2.029 -6.439C2.029 -7.245 1.375 -7.899 0.568 -7.899C0.568 -7.899 0.568 -7.899 0.568 -7.899Z" fill-rule="evenodd" fill="#000000"/>
68                            <g transform="translate(-0.0543 0)">
69                                <g transform="scale(0.2636 0.2636)">
70                                    <g class="cookieIco__g32">
71                                        <path d="M0.149 -40.108C5.383 -40.108 10.383 -39.103 14.967 -37.279C15.602 -37.027 15.916 -36.326 15.764 -35.66C15.506 -34.528 15.37 -33.35 15.37 -32.14C15.37 -25.448 19.541 -19.73 25.424 -17.442C26.156 -17.158 26.561 -16.347 26.351 -15.591C25.974 -14.241 25.772 -12.818 25.772 -11.347C25.772 -10.762 25.804 -10.184 25.866 -9.616C25.907 -9.246 25.801 -8.877 25.6 -8.565C25.044 -7.701 24.721 -6.674 24.721 -5.571C24.721 -2.511 27.202 -0.031 30.262 -0.031C30.448 -0.031 30.628 0.035 30.764 0.161C32.923 2.183 35.65 3.604 38.681 4.159C39.414 4.293 39.959 4.951 39.854 5.688C39.512 8.101 38.955 10.445 38.203 12.701C38.175 12.784 38.095 12.839 38.006 12.839C36.27 12.839 34.863 14.247 34.862 15.983C34.862 16.527 35.001 17.037 35.245 17.483C35.531 18.006 35.674 18.643 35.388 19.167C28.588 31.642 15.358 40.108 0.149 40.108C0.149 40.108 0.148 40.108 0.148 40.108C0.148 40.108 0.146 40.104 0.146 40.104C0.146 40.085 0.148 40.065 0.148 40.045C0.147 35.559 -3.49 31.922 -7.977 31.921C-10.886 31.921 -13.436 33.449 -14.871 35.746C-15.265 36.376 -16.047 36.709 -16.721 36.397C-30.443 30.026 -39.959 16.124 -39.959 -0.001C-39.959 -12.098 -34.603 -22.944 -26.134 -30.297C-25.69 -30.682 -25.05 -30.704 -24.522 -30.447C-23.507 -29.951 -22.366 -29.672 -21.161 -29.672C-16.92 -29.673 -13.482 -33.11 -13.481 -37.351C-13.481 -37.575 -13.347 -37.78 -13.136 -37.855C-8.978 -39.314 -4.508 -40.108 0.149 -40.108C0.149 -40.108 0.149 -40.108 0.149 -40.108ZM18.234 19.765C16.497 19.765 15.089 21.172 15.089 22.909C15.089 24.645 16.497 26.053 18.234 26.053C19.97 26.053 21.377 24.645 21.377 22.909C21.377 21.173 19.97 19.765 18.234 19.765ZM-28.669 11.444C-30.274 11.444 -31.576 12.745 -31.576 14.351C-31.576 15.957 -30.274 17.259 -28.669 17.259C-27.063 17.259 -25.761 15.957 -25.761 14.351C-25.761 12.745 -27.063 11.444 -28.669 11.444ZM-23.427 -11.933C-24.984 -11.933 -26.247 -10.671 -26.247 -9.114C-26.247 -7.556 -24.984 -6.293 -23.427 -6.293C-21.869 -6.294 -20.607 -7.556 -20.607 -9.114C-20.608 -10.
71671 -21.869 -11.933 -23.427 -11.933C-23.427 -11.933 -23.427 -11.933 -23.427 -11.933ZM2.362 -29.963C-0.699 -29.963 -3.179 -27.483 -3.179 -24.422C-3.179 -21.363 -0.698 -18.881 2.362 -18.881C5.422 -18.881 7.902 -21.362 7.903 -24.422C7.903 -27.483 5.422 -29.963 2.362 -29.963C2.362 -29.963 2.362 -29.963 2.362 -29.963Z" fill-rule="evenodd" fill="#000000"/>
72                                    </g>
73                                </g>
74                            </g>
75                            <g transform="translate(-0.0149 0)">
76                                <g transform="scale(0.2636 0.2636)">
77                                    <g class="cookieIco__g37">
78                                        <path d="M-0.001 -40.108C5.234 -40.108 10.234 -39.103 14.818 -37.279C15.453 -37.027 15.767 -36.326 15.615 -35.66C15.357 -34.528 15.221 -33.35 15.221 -32.14C15.221 -23.433 22.28 -16.375 30.987 -16.375C32.397 -16.375 33.764 -16.561 35.065 -16.909C35.725 -17.086 36.437 -16.797 36.712 -16.173C38.895 -11.226 40.108 -5.755 40.108 -0.001C40.108 4.439 39.386 8.709 38.054 12.701C38.026 12.785 37.945 12.839 37.857 12.839C36.121 12.839 34.714 14.247 34.713 15.983C34.713 16.527 34.852 17.037 35.096 17.483C35.382 18.006 35.525 18.643 35.239 19.167C28.439 31.642 15.209 40.108 0 40.108C0 40.108 -0.001 40.108 -0.001 40.108C-0.001 40.108 -0.003 40.104 -0.003 40.104C-0.003 40.085 -0.002 40.065 -0.002 40.045C-0.002 35.559 -3.639 31.922 -8.127 31.921C-11.035 31.921 -13.585 33.449 -15.021 35.746C-15.414 36.376 -16.196 36.709 -16.87 36.397C-30.592 30.026 -40.108 16.124 -40.108 -0.001C-40.108 -12.098 -34.752 -22.944 -26.283 -30.297C-25.839 -30.682 -25.199 -30.704 -24.671 -30.447C-23.656 -29.951 -22.516 -29.672 -21.31 -29.672C-17.069 -29.673 -13.631 -33.11 -13.63 -37.351C-13.63 -37.575 -13.496 -37.78 -13.285 -37.855C-9.127 -39.314 -4.657 -40.108 -0.001 -40.108C-0.001 -40.108 -0.001 -40.108 -0.001 -40.108ZM18.084 19.765C16.348 19.765 14.94 21.172 14.94 22.909C14.94 24.645 16.348 26.053 18.084 26.053C19.82 26.053 21.228 24.645 21.228 22.909C21.228 21.173 19.82 19.765 18.084 19.765ZM-28.818 11.444C-30.424 11.444 -31.725 12.745 -31.725 14.351C-31.725 15.957 -30.424 17.259 -28.818 17.259C-27.212 17.259 -25.91 15.957 -25.91 14.351C-25.91 12.745 -27.212 11.444 -28.818 11.444ZM30.113 -11.112C27.053 -11.112 24.572 -8.631 24.572 -5.571C24.572 -2.511 27.053 -0.031 30.113 -0.031C33.173 -0.031 35.653 -2.511 35.654 -5.571C35.654 -8.631 33.173 -11.112 30.113 -11.112ZM-23.576 -11.933C-25.133 -11.933 -26.396 -10.671 -26.396 -9.114C-26.396 -7.556 -25.133 -6.293 -23.576 -6.293C-22.018 -6.294 -20.756 -7.556 -20.756 -9.114C-20.757 -10.671 -22.018 -11.933 -23.576 -11.933ZM2.212 -29.963C-0.848 -29.963 -3.329 -27.483 -3.329 -24.422C-3.328 -21.363 -0.848 -18.881 2.212 -18.881C5.272 -18.881 7.753 -21.362 7.753 -24.422C7.753 -27.483 5.272 -29.963 2.212 -29.963C2.212 -29.963 2.212 -29.963 2.212 -29.963Z" fill-rule="evenodd" fill="#000000"/>
79                                    </g>
80                                </g>
81                            </g>
82                            <g class="cookieIco__g39" transform="translate(0.0149 0)">
83                                <g transform="scale(0.2636 0.2636)">
84                                    <g class="cookieIco__g42">
85                                        <path d="M0.001 -40.108C22.151 -40.108 40.108 -22.151 40.108 -0.001C40.108 4.402 39.399 8.639 38.088 12.603C38.04 12.748 37.898 12.839 37.745 12.839C36.008 12.839 34.601 14.247 34.601 15.983C34.601 16.55 34.752 17.081 35.016 17.54C35.321 18.072 35.479 18.728 35.184 19.266C28.368 31.687 15.168 40.108 0.001 40.108C-0.018 40.108 -0.037 40.108 -0.055 40.107C-0.089 40.106 -0.114 40.079 -0.114 40.045C-0.114 35.559 -3.752 31.922 -8.239 31.921C-11.132 31.921 -13.672 33.434 -15.112 35.711C-15.508 36.337 -16.289 36.667 -16.961 36.353C-30.634 29.963 -40.108 16.088 -40.108 -0.001C-40.108 -12.078 -34.77 -22.908 -26.324 -30.261C-25.884 -30.644 -25.249 -30.669 -24.723 -30.418C-23.723 -29.941 -22.604 -29.672 -21.422 -29.672C-17.181 -29.673 -13.743 -33.11 -13.743 -37.351C-13.743 -37.552 -13.623 -37.736 -13.434 -37.803C-9.234 -39.296 -4.711 -40.108 0.001 -40.108C0.001 -40.108 0.001 -40.108 0.001 -40.108ZM17.972 19.765C16.236 19.765 14.828 21.172 14.828 22.909C14.828 24.645 16.236 26.053 17.972 26.053C19.708 26.053 21.116 24.645 21.116 22.909C21.116 21.173 19.708 19.765 17.972 19.765ZM-28.93 11.444C-30.536 11.444 -31.837 12.745 -31.837 14.351C-31.837 15.957 -30.536 17.259 -28.93 17.259C-27.325 17.259 -26.022 15.957 -26.022 14.351C-26.022 12.745 -27.325 11.444 -28.93 11.444ZM30 -11.112C26.94 -11.112 24.459 -8.631 24.459 -5.571C24.46 -2.511 26.941 -0.031 30 -0.031C33.06 -0.031 35.541 -2.511 35.541 -5.571C35.541 -8.631 33.06 -11.112 30 -11.112ZM-23.688 -11.933C-25.245 -11.933 -26.508 -10.671 -26.508 -9.114C-26.508 -7.556 -25.245 -6.293 -23.688 -6.293C-22.131 -6.294 -20.869 -7.556 -20.869 -9.114C-20.869 -10.
85671 -22.131 -11.933 -23.688 -11.933ZM2.1 -29.963C-0.96 -29.963 -3.441 -27.483 -3.441 -24.422C-3.441 -21.363 -0.96 -18.881 2.1 -18.881C5.16 -18.881 7.641 -21.362 7.641 -24.422C7.641 -27.483 5.16 -29.963 2.1 -29.963C2.1 -29.963 2.1 -29.963 2.1 -29.963Z" fill-rule="evenodd" fill="#000000"/>
86                                    </g>
87                                </g>
88                            </g>
89                            <path d="M-9.358 -9.359L9.358 9.359" stroke-width="4.6793" stroke-linecap="round" stroke-miterlimit="10" stroke="#ffffff" fill="none" transform="matrix(0.2636 0 0 0.2636 -0.0158 -0.0003)"/>
90                            <path d="M9.359 -9.359L-9.359 9.359" stroke-width="4.6793" stroke-linecap="round" stroke-miterlimit="10" stroke="#ffffff" fill="none" transform="matrix(0.2636 0 0 0.2636 -0.0164 -0.0003)"/>
91                        </g>
92                    </g>
93                    </svg>
94                </button>
95
96            </div>
97        </div>
98
99    `};app.addModule(()=>{new Vue({components:{cookieToast:app.cookieToastComponent},computed:{...Vuex.mapState(['loc','cookieMessage']),locTitle(){return this.loc['site/cookieDisclaimer/title']},locDescription(){if(this.cookieMessage){return this.cookieMessage}
100return(this.loc['site/cookieDisclaimer/message']||'').replace('{','<a href="/policy" target="_blank">').replace('}','</a>')},locButtonAccept(){return this.loc['site/cookieDisclaimer/button']},locButtonDecline(){return this.loc['site/cookieDisclaimer/decline']}},data(){return{visible:!1,cookieConsent:localStorage.getItem('cookieConsent'),}},watch:{visible(open){if(open){this.setCookieOpen(!0)}}},methods:{setConsent(value){const consent=value?'granted':'denied';if(window.updateCookieConsent){window.updateCookieConsent(consent)}
101localStorage.setItem('cookieConsent',consent)},accept(){this.setConsent(!0)},decline(){this.setConsent(!1)},close(){this.visible=!1},setCookieOpen(on){document.documentElement.classList.toggle('cookie-open',on)}},mounted(){if(!this.cookieConsent){setTimeout(()=>{this.visible=!0},1500)}
102PubSub.subscribe('showCookieSettings',()=>{this.visible=!0})},store:app.store,template:`
103
104            <transition name="up" @after-leave="setCookieOpen(false)">
105                <div v-if="visible" class="cookie">
106
107                    <cookieToast
108                        :title="locTitle"
109                        :description="locDescription"
110                        :buttonAccept="locButtonAccept"
111                        :buttonDecline="locButtonDecline"
112                        @accept="accept"
113                        @decline="decline"
114                        @close="close"/>
115
116                </div>
117            </transition>
118
119        `}).$mount('#cookieDisclaimer')});

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.