PageSourceSearch

https://traktir-msk.ru/var/cache/asset20_60fd24221b113a3374245362e0ca20f1.js

js traktir-msk.ru collected 2026-10-08 04:04:02 UTC 17,146 bytes, 147 lines download raw bytes

1app.progressInfoComponent={props:['timerLoc','finishUnixTime','statusLoc','isDelay'],data(){return{interval:null,seconds:null,}},computed:{time(){let hour=('0'+Math.floor(this.seconds/3600%24)).slice(-2);hour=Number(hour)?hour+':':'';const minutes=('0'+Math.floor(this.seconds/60%60)).slice(-2);const seconds=('0'+Math.floor(this.seconds%60)).slice(-2);return `${hour}${minutes}:${seconds}`},},watch:{finishUnixTime:{handler(unixTime){if(unixTime){this.initTimer()}},immediate:!0,}},methods:{initTimer(){clearInterval(this.interval);if(!this.finishUnixTime){this.seconds=null;return}
2const calcSeconds=()=>{const secondDelta=Math.trunc(this.finishUnixTime-(Date.now()/1000));if(secondDelta<=0){this.seconds=0;clearInterval(this.interval);this.$emit('refetch');return}
3this.seconds=secondDelta};calcSeconds();this.interval=setInterval(calcSeconds,1000)}},template:`
4        <div class="progress__info">
5            <transition name="pSpoiler">
6                <div v-if="timerLoc"
7                     class="progress__timer"
8                     data-testid="progress-timer"
9                     v-spoiler>
10                    {{ timerLoc }} 
11                    <span class="progress__time"
12                          data-testid="progress-time-value"
13                          :key="time">
14                          {{ time }}
15                    </span>
16                </div>
17            </transition>
18
19            <transition name="pFade" mode="out-in">
20                <div :key="statusLoc"
21                     class="progress__status"
22                     data-testid="progress-status-text"
23                     :class="{'progress__status--delay': isDelay}"
24                     v-html="statusLoc"></div>
25            </transition>
26
27        </div>
28    `};app.progressStepsComponent={props:['steps'],computed:{countSteps(){return this.steps.length}},template:`
29    <div class="progress__steps">
30        <div v-for="(step, idx) of steps"
31             :key="step.slug"
32             class="progress__step"
33             :data-testid="'progress-step-' + step.slug"
34             :class="[{'progress__step--complete': step.isComplete}, 'progress__step--'+countSteps]">
35
36             <div v-if="idx+1 !== steps.length"
37                  class="progress__bar"></div>
38
39                  <svg class="progress__icon" viewBox="0 0 24 24">
40                    <use v-if="step.slug === 'reported' && !step.isComplete" :xlink:href="'#progress__waitingIcon'"></use>
41                    <use v-else :xlink:href="'#progress__'+step.slug+'Icon'" ></use>
42                  </svg>
43                  <transition name="pFade" mode="out-in">
44                    <div :key="step.hint"
45                         class="progress__hint"
46                         :data-testid="'progress-hint-' + step.slug">{{ step.hint }}</div>
47                  </transition>
48
49        </div>
50                        
51        <svg style="position: fixed; visibility: hidden;">
52            <symbol id="progress__waitingIcon" width="24" height="24" viewBox="0 0 24 24" fill="none">
53                <path d="M12 4C17.5228 4 22 8.47715 22 14C22 19.5228 17.5228 24 12 24C6.47715 24 2 19.5228 2 14C2 8.47715 6.47715 4 12 4ZM12 9C11.4477 9 11 9.44772 11 10V13.7998C11 14.4625 11.5375 15 12.2002 15H19C19.5523 15 20 14.5523 20 14C20 13.4477 19.5523 13 19 13H13V10C13 9.44772 12.5523 9 12 9Z" fill="currentColor"/>
54            </symbol>
55            
56            <symbol id="progress__reportedIcon" width="24" height="24" viewBox="0 0 24 24" fill="none">
57                <path d="M12 4C17.5228 4 22 8.47715 22 14C22 19.5228 17.5228 24 12 24C6.47715 24 2 19.5228 2 14C2 8.47715 6.47715 4 12 4ZM15.7148 11.3008C15.353 10.9308 14.7742 10.9013 14.3779 11.2168L14.3008 11.2852L10.9092 14.6006L9.69922 13.418C9.30432 13.032 8.67123 13.0397 8.28516 13.4346C7.89914 13.8295 7.90593 14.4626 8.30078 14.8486L10.0703 16.5781L10.1611 16.6582C10.629 17.0321 11.3109 17.0056 11.748 16.5781L15.6992 12.7148L15.7686 12.6396C16.0932 12.2505 16.0768 11.671 15.7148 11.3008Z" fill="currentColor"/>
58            </symbol>
59        
60            <symbol id="progress__readyIcon" width="24" height="24" viewBox="0 0 24 24" fill="none">
61                <path d="M18.3613 9C19.1886 9 19.8594 9.67078 19.8594 10.498V13H20.7188C21.271 13 21.7188 13.4477 21.7188 14C21.7188 14.5523 21.271 15 20.7188 15H19.8594V19.0039C19.8594 20.6584 18.5178 22 16.8633 22H6.85547C5.20094 22 3.85938 20.6584 3.85938 19.0039V15H3C2.44772 15 2 14.5523 2 14C2 13.4477 2.44772 13 3 13H3.85938V10.498C3.85938 9.67078 4.53016 9 5.35742 9H18.3613ZM7.85938 4C8.41166 4 8.85938 4.44772 8.85938 5V6C8.85938 6.55228 8.41166 7 7.85938 7C7.30709 7 6.85938 6.55228 6.85938 6V5C6.85938 4.44772 7.30709 4 7.85938 4ZM11.8594 0C12.4117 0 12.8594 0.447715 12.8594 1V6C12.8594 6.55228 12.4117 7 11.8594 7C11.3071 7 10.8594 6.55228 10.8594 6V1C10.8594 0.447715 11.3071 0 11.8594 0ZM15.8594 2C16.4117 2 16.8594 2.44772 16.8594 3V6C16.8594 6.55228 16.4117 7 15.8594 7C15.3071 7 14.8594 6.55228 14.8594 6V3C14.8594 2.44772 15.3071 2 15.8594 2Z" fill="currentColor"/>
62            </symbol>
63            
64            <symbol id="progress__onWayIcon" width="24" height="24" viewBox="0 0 24 24" fill="none">
65                <path d="M21.6656 14.2143C21.6656 14.2143 21.6656 14.2388 21.6534 14.2511C21.6167 14.3612 21.5555 14.4713 21.4699 14.5569C21.3842 14.6426 21.2741 14.716 21.1395 14.7649C21.0171 14.8139 20.8703 14.8384 20.7235 14.8384C20.5767 14.8384 20.4298 14.8139 20.2952 14.7772C19.1084 14.3856 18.0561 13.9696 17.114 13.5536C16.4411 13.2477 16.1229 12.6604 15.6702 12.2934C15.4745 12.1343 15.3521 12.1465 15.3276 12.3301L14.9606 14.8017C14.9361 14.9852 14.985 15.1565 15.1196 15.2911C15.9394 16.172 17.1997 17.1753 17.8114 18.4234C18.57 19.9161 19.1084 21.1274 19.451 22.0573C19.5244 22.2776 19.5122 22.51 19.4143 22.718C19.3164 22.926 19.1329 23.0851 18.9004 23.1707C18.5578 23.2931 18.2519 23.3176 17.9705 23.2197C17.7747 23.1585 17.579 22.9505 17.3465 22.6079C16.9917 22.0573 16.4166 21.1274 15.6213 19.8427C15.1441 19.0718 14.5201 18.4111 13.7737 17.8728C12.4278 16.9184 11.5591 16.2944 11.1676 16.013C10.9228 15.8294 10.7393 15.597 10.617 15.3278C10.5068 15.0586 10.4579 14.7649 10.5068 14.4835L10.9351 11.547C10.9351 11.547 10.9351 11.4736 10.9228 11.4369C10.9106 11.4002 10.8861 11.3757 10.8494 11.339C10.8127 11.3145 10.776 11.3023 10.7393 11.2901C10.7026 11.2901 10.6537 11.2901 10.617 11.2901C10.2009 11.4124 9.57694 
6511.6327 9.29552 12.0731C8.83057 12.8073 8.26774 13.5414 7.59478 14.2755C7.43572 14.4591 7.21548 14.5692 6.98301 14.6181C6.76277 14.6548 6.54253 14.6181 6.38347 14.4958C6.33453 14.4591 6.31005 14.4346 6.29782 14.4224C5.75946 14.0186 5.6371 13.5659 5.95523 13.0642C6.89736 11.5592 7.77832 10.2623 9.45458 9.33238C11.449 8.23118 12.8561 7.06881 14.6424 7.85188C15.8048 8.35354 16.7469 9.95639 17.7503 11.339C17.8481 11.4736 17.9827 11.5715 18.1418 11.6449L21.115 12.8807C21.3597 12.9786 21.5433 13.1743 21.6412 13.4068C21.739 13.6515 21.739 13.9207 21.6412 14.1776L21.6656 14.2143ZM12.9172 18.7904L10.8739 17.5669C10.6414 17.4323 10.5068 17.4568 10.4579 17.6525C10.3233 18.2765 10.3233 19.1453 9.93177 19.5613C9.1854 20.3688 8.35339 21.1764 7.46019 21.9717C7.35007 22.0695 7.26442 22.1919 7.21548 22.3265C7.16654 22.4611 7.15431 22.5957 7.17878 22.7425C7.20325 22.8771 7.26442 23.0117 7.36231 23.1218C7.46019 23.2319 7.58255 23.3298 7.72937 23.4032L7.97408 23.5133C8.10868 23.5745 8.26774 23.6112 8.4268 23.599C8.58586 23.599 8.73269 23.5378 8.85504 23.4522C10.4946 22.351 11.8894 21.1029 13.0518 19.6836C13.3577 19.3166 13.3088 19.0107 12.905 18.7782L12.9172 18.7904ZM14.9116 6.6528C16.1352 6.57939 17.0651 5.52714 16.9917 4.30358C16.9182 3.08003 15.866 2.15013 14.6424 2.22355C13.4189 2.29696 12.489 3.34921 12.5624 4.57277C12.6358 5.79632 13.6881 6.72622 14.9116 6.6528Z" fill="currentColor"/>
66                <path d="M8.86707 8.28001C9.17296 8.10871 9.46661 7.96189 9.74803 7.80282C10.2497 7.50917 10.7513 7.22776 11.253 6.99528C11.1306 6.60374 10.837 6.28562 10.3965 6.18774L4.45005 4.84183C3.72816 4.68277 3.00626 5.18442 2.92061 5.91856L2.22319 11.8528C2.14978 12.4278 2.51684 12.9662 3.07968 13.1253L4.56017 13.5413C4.57241 13.1742 4.68253 12.8071 4.915 12.4401C5.99173 10.7271 6.97057 9.33226 8.86707 8.28001Z" fill="currentColor"/>
67            </symbol>
68            
69            <symbol id="progress__deliveredIcon" width="24" height="24" viewBox="0 0 24 24" fill="none">
70                <path d="M20 20.3789C19.9999 21.2744 19.2735 22 18.3779 22H5.62207C4.72652 22 4.0001 21.2744 4 20.3789V19.1357H20V20.3789ZM15 6V4H9V6H15ZM19.459 6C19.7575 6 20 6.24248 20 6.54102V17.2266H4V6.54102C4 6.24248 4.24248 6 4.54102 6H7V3.4375C7 3.37073 7.02467 3.30549 7.06934 3.25586L8.11914 2.08984C8.17038 2.03291 8.24371 2.00002 8.32031 2H15.6797C15.7563 2.00002 15.8296 2.03291 15.8809 2.08984L16.9307 3.25586C16.9753 3.30549 17 3.37073 17 3.4375V6H19.459Z" fill="currentColor"/>
71            </symbol>
72        
73<!--            <symbol id="progress__waitingIcon" width="15" height="15" viewBox="0 0 15 15" fill="none">-->
74<!--                <circle cx="7.5" cy="9.5" r="5.5" fill="currentColor"/>-->
75<!--                <path fill-rule="evenodd" clip-rule="evenodd" d="M11.5652 9.26045C11.5652 8.99631 11.3511 8.78218 11.0869 8.78218L7.73926 8.78218L7.73926 7.3474C7.73926 7.08326 7.52513 6.86914 7.261 6.86914C6.99686 6.86914 6.78274 7.08327 6.78274 7.3474L6.78274 9.24798C6.78263 9.25212 6.78258 9.25628 6.78258 9.26045C6.78258 9.52358 6.99507 9.73708 7.25782 9.7387C7.25883 9.7387 7.25983 9.73871 7.26084 9.73871L7.261 9.73871M7.26148 9.73871L11.0869 9.73871C11.3511 9.73871 11.5652 9.52458 11.5652 9.26045" fill="white"/>-->
76<!--            </symbol>-->
77<!--            <symbol id="progress__reportedIcon" width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">-->
78<!--                <circle cx="7.5" cy="9.5" r="5.5" fill="currentColor"/>-->
79<!--                <rect x="9.94922" y="7.41406" width="1" height="5" rx="0.5" transform="rotate(45 9.94922 7.41406)" fill="var(&#45;&#45;progress-bg, #fff)"/>-->
80<!--                <rect width="1" height="3" rx="0.5" transform="matrix(-0.707107 0.707107 0.707107 0.707107 5.70703 8.82812)" fill="var(&#45;&#45;progress-bg, #fff)"/>-->
81<!--            </symbol>-->
82<!--            <symbol id="progress__readyIcon" width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">-->
83<!--                <path d="M2 6.5C2 6.22386 2.22386 6 2.5 6H12.5C12.7761 6 13 6.22386 13 6.5V14C13 14.5523 12.5523 15 12 15H3C2.44771 15 2 14.5523 2 14V6.5Z" fill="currentColor"/>-->
84<!--                <rect x="12" y="8" width="3" height="2" rx="1" fill="currentColor"/>-->
85<!--                <rect y="8" width="3" height="2" rx="1" fill="currentColor"/>-->
86<!--                <rect x="5" y="2" width="1" height="3" rx="0.5" fill="currentColor"/>-->
87<!--                <rect x="7" width="1" height="5" rx="0.5" fill="currentColor"/>-->
88<!--                <rect x="9" y="1" width="1" height="4" rx="0.5" fill="currentColor"/>-->
89<!--            </symbol>-->
90<!--            <symbol id="progress__onWayIcon" width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">-->
91<!--                <path d="M2.10638 4.55988C2.16739 3.97785 2.71295 3.57236 3.28785 3.68175L8.37793 4.65027L7.55252 8.77733C7.45299 9.27497 6.99647 9.61916 6.49065 9.5779L2.64195 9.264C2.08249 9.21837 1.67017 8.72132 1.72869 8.16306L2.10638 4.55988Z" fill="#FF4D00"/>-->
92<!--                <path d="M8.88762 3.95689C9.80066 3.95689 10.5409 3.2167 10.5409 2.30364C10.5409 1.39058 9.80066 0.650391 8.88762 0.650391C7.97453 0.650391 7.23438 1.39058 7.23438 2.30364C7.23438 3.2167 7.97453 3.95689 8.88762 3.95689Z" fill="currentColor"/>-->
93<!--                <path d="M5.18377 5.54966C5.04126 5.62901 4.92321 5.74595 4.84251 5.88775L3.48629 8.27041C3.26047 8.66713 3.39902 9.17181 3.79577 9.39765C4.19253 9.62348 4.69725 9.48494 4.92307 9.08816L6.16481 6.90626C6.17087 6.89562 6.17969 6.88686 6.19038 6.88096L6.37714 6.77692L6.05817 7.96731C5.89588 8.57317 6.09201 9.19061 6.51667 9.59444L8.28339 11.3609L9.10478 14.3886C9.22431 14.8292 9.6784 15.0894 10.119 14.9699C10.5596 14.8503 10.8199 14.3963 10.7003 13.9557L9.8488 10.8176C9.79292 10.6116 9.68408 10.4238 9.53319 10.2729L9.00503 9.74477L9.60522 7.50506L10.0485 8.30562C10.1879 8.5
93573 10.4529 8.71353 10.7406 8.71353H12.5512C13.0078 8.71353 13.3779 8.34337 13.3779 7.8868C13.3779 7.43028 13.0079 7.06017 12.5514 7.06006L11.2484 7.05973L10.3078 5.36014C10.0766 4.94225 9.6946 4.6283 9.2399 4.48223L8.84632 4.35582C8.23192 4.15848 7.56324 4.22466 6.99942 4.53859L5.18377 5.54966Z" fill="currentColor"/>-->
94<!--                <path d="M7.83496 11.6908L6.62473 10.4805L4.84575 13.5617C4.61748 13.9571 4.75294 14.4626 5.14832 14.6909C5.54367 14.9192 6.04923 14.7837 6.27749 14.3884L7.83496 11.6908Z" fill="currentColor"/>-->
95<!--            </symbol>-->
96<!--            <symbol id="progress__deliveredIcon" width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">-->
97<!--                <path d="M4.70205 4H10.2983C10.5321 4 10.7108 4.17875 10.7108 4.4125V5.41625C10.7108 5.65 10.5321 5.82875 10.2983 5.82875H4.70205C4.4683 5.82875 4.28955 5.65 4.28955 5.41625V4.4125C4.28955 4.17875 4.4683 4 4.70205 4Z" fill="currentColor"/>-->
98<!--                <path d="M2.91455 11.3287V14.725C2.91455 14.8762 3.0383 15 3.18955 15H9.04705C9.1983 15 9.32205 14.8762 9.32205 14.725V11.3287C9.32205 9.7475 9.73455 8.29 10.4083 7.17625C10.5183 6.98375 10.3808 6.75 10.1608 6.75H4.4133C4.31705 6.75 4.23455 6.79125 4.17955 6.87375C3.3958 8.02875 2.91455 9.61 2.91455 11.3287Z" fill="currentColor"/>-->
99<!--                <path d="M11.3432 7.87681C11.2882 7.76681 11.1369 7.75306 11.0819 7.86306C10.5457 8.85306 10.2432 10.0493 10.2432 11.3281V14.8481C10.2432 14.9306 10.3119 14.9993 10.3944 14.9993H11.9344C12.0169 14.9993 12.0857 14.9306 12.0857 14.8481V11.3281C12.0719 10.0631 11.8107 8.88056 11.3432 7.87681Z" fill="currentColor"/>-->
100<!--            </symbol>-->
101            </svg>                    
102    </div>
103    `};app.progressComponent={components:{pInfo:app.progressInfoComponent,pSteps:app.progressStepsComponent,},props:['visible','steps','finishUnixTime','timerLoc','statusLoc','isDelay','isWide','cartId'],methods:{refetch(){this.$emit('refetch')},onNavigate(){if(!this.cartId){return}
104this.$emit('navigate')}},directives:{spoiler:{inserted(el){const container=el.closest('.progress__container')
105if(container){container.removeAttribute('style');setTimeout(()=>{container.style.height=container.scrollHeight+'px'},400)}
106el.style.height=el.scrollHeight+'px'},unbind(el){const container=el.closest('.progress__container')
107if(container){container.removeAttribute('style');setTimeout(()=>{container.style.height=container.scrollHeight+'px'},400)}}},},template:`
108    
109    <div class="progress" :class="{'progress--wide': isWide}">
110
111        <transition name="pSpoiler">
112            <div v-if="visible"
113                 class="progress__wrapper"
114                 v-spoiler>
115
116                <div class="progress__container"
117                     :class="{'progress__container--clickable': cartId}"
118                     @click="onNavigate">
119
120                     <pInfo :timerLoc="timerLoc"
121                            :finishUnixTime="finishUnixTime"
122                            :statusLoc="statusLoc"
123                            :isDelay="isDelay"
124                            @refetch="refetch" />
125
126                     <pSteps :steps="steps" />
127                </div>
128
129            </div>
130        </transition>
131
132    </div>
133    `};app.addModule(()=>{new Vue({components:{progressComponent:app.progressComponent,},data(){return{updateTimer:null,visible:!1,steps:null,finishUnixTime:null,timerLoc:null,statusLoc:null,isDelay:null,cartId:null,}},computed:{...Vuex.mapState(['mobile']),isWide(){return!this.mobile}},mounted(){this.getData()},methods:{getData(){app.fetch('/cart/progress/get',{},(response)=>{if(response.error){if(this.visible&&response.error==='hideProgressModule'){clearTimeout(this.updateTimer);this.isVisible=!1}
134return}
135this.steps=response.steps;this.timerLoc=response.timerLoc;this.statusLoc=response.statusLoc;this.isDelay=response.isDelay;this.finishUnixTime=response.finishUnixTime;this.cartId=response.cartId||null;this.updateTimer=setTimeout(this.getData,20000);this.visible=!0})},refetchData(){clearTimeout(this.updateTimer);this.getData()},onNavigate(){if(!this.cartId){return}
136PubSub.publish('showOrderDetails',{orderId:this.cartId})}},store:app.store,template:`
137            <progressComponent  :visible="visible"
138                                :steps="steps"
139                                :finishUnixTime="finishUnixTime"
140                                :timerLoc="timerLoc"
141                                :statusLoc="statusLoc"
142                                :isDelay="isDelay"
143                                :cartId="cartId"
144                                :isWide="isWide"
145                                @refetch="refetchData"
146                                @navigate="onNavigate" />
147        `}).$mount('#progress__module')});

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.