1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dc8d13f4-134f-5ee7-b55d-25d4ff01da5a")}catch(e){}}(); 3import{o as s,a as c,B as D,d as I,aa as G,b as i,h as u,am as it,w as _,u as t,F as S,s as B,c as v,k as U,t as h,G as p,i as f,z as V,i3 as rt,an as lt,i5 as M,h5 as nt,bz as pt,i6 as dt,n as q,a8 as ht,X as at,a3 as _t,a1 as ut,aB as ft,f as w,bL as Y,g as X,Y as kt,W as mt,ib as bt,aC as wt,V as yt,bP as gt,N as vt,dk as Ct,bc as xt,S as J,aU as Lt,g4 as Mt,bw as St,hh as Bt,O as Z,hi as tt,bQ as Et,bD as O}from"./BKpyJJgk.js";import{P as Rt}from"./r8626Uax.js";import{_ as z}from"./DNwwXXPe.js";import{A as et}from"./kDIJGQ2a.js";import{A as $t}from"./cQLUZK8F.js";import"./BEfdVkw6.js";const Ht={width:"114",height:"69",viewBox:"0 0 114 69",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function At(m,n){return s(),c("svg",Ht,[...n[0]||(n[0]=[D('<path d="M113.907 27.255c.766-4.764-3.318-8.897-8.076-8.172l-59.666 9.085a7.1 7.1 0 0 0-5.007 3.35L25.04 58.19c-2.942 4.87.724 11.06 6.397 10.801l70.549-3.223a7.11 7.11 0 0 0 6.687-5.978z" fill="#15284e"></path><path d="M84.945 5.672c.446-2.691-1.892-5.03-4.623-4.626L19.657 10.02a7.11 7.11 0 0 0-5.523 4.253L1.239 44.823c-.865 2.05.732 4.287 2.977 4.173L72.66 45.5c3.35-.17 6.125-2.624 6.666-5.892z" fill="#c1bcde"></path><path d="M83.946 4.768c.44-2.746-1.869-5.134-4.566-4.721L19.196 9.243c-2.453.375-4.532 2.04-5.472 4.381L1.229 44.755c-.838 2.086.734 4.352 2.94 4.241l67.599-3.413c3.314-.167 6.064-2.673 6.6-6.014z" fill="#fff"></path><mask id="mask0_5004_44240" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="85" height="49"><path d="M84.408 4.79c.447-2.72-1.885-5.087-4.612-4.68L18.95 9.181a7.12 7.12 0 0 0-5.532 4.331L.8 44.19c-.85 2.067.738 4.316 2.97 4.206l68.333-3.366a7.12 7.12 0 0 0 6.672-5.955z" fill="#fff"></path></mask><g mask="url(#mask0_5004_44240)"><path d="M46.123 4.942 18.63 9.26a7.12 7.12 0 0 0-5.433 4.217L-.024 44.199c-.886 2.058.676 4.337 2.915 4.253l30.086-1.12z" fill="#33a8e0"></path><path d="m5.357 43.61 2.835-7.03 24.55-1.418-1.7 7.257z" fill="#fff"></path><path d="m7.171 45.991 2.325-10.659H10.8l-2.268 10.66z" fill="#33a8e0"></path><path d="m9.667 45.992 5.613-10.49h1.304l-5.557 10.49z" fill="#33a8e0"></path><path d="m10.006 45.73.981-10.66h.55l-.957 10.66z" fill="#33a8e0"></path><path d="M49.197 12.375c.496.601 1.517.58 2.28-.05.762-.628.979-1.626.483-2.228-.496-.601-1.517-.58-2.28.05-.763.628-.98 1.626-.483 2.228" fill="#e72656"></path><path d="M57.39 11.002c.496.601 1.517.58 2.28-.05.763-.628.979-1.626.483-2.228-.496-.601-1.517-.58-2.28.05-.762.628-.979 1.626-.483 2.228" fill="#93c01c"></path><path d="M64.993 9.642c.496.602 1.516.58 2.28-.049.762-.629.979-1.626.483-2.228s-1.517-.58-2.28.05c-.763.628-.98 1.626-.483 2.227" fill="#e95096"></path><path d="M73.567 8.32c.496.602 1.517.58 2.28-.05.762-.628.979-1.626.483-2.227-.496-.602-1.517-.58-2.28.049s-.979 1.626-.483 2.228" fill="#33a8e0"></path><path d="M47.565 21.063c.496.602 1.517.58 2.28-.049s.979-1.626.483-2.228-1.517-.58-2.28.049-.979 1.627-.483 2.228" fill="#773e90"></path><path d="M44.638 29.75c.496.602 1.517.58 2.28-.049.763-.628.98-1.626.483-2.228-.496-.601-1.517-.58-2.28.05-.762.628-.979 1.626-.483 2.228" fill="#33a8e0"></path><path d="M42.36 39.004c.496.601 1.516.58 2.279-.05.763-.628.98-1.626.483-2.228-.496-.602-1.516-.58-2.28.05-.762.628-.978 1.626-.483 2.228" fill="#e72656"></path><path d="M52.831 29.185c.496.602 1.517.58 2.28-.049s.979-1.626.483-2.228-1.517-.58-2.28.05c-.763.628-.979 1.626-.483 2.227" fill="#e95096"></path><path d="M55.593 20.094c.496.601 1.517.58 2.28-.05.763-.629.98-1.626.483-2.228-.496-.602-1.516-.58-2.28.05-.762.628-.979 1.626-.483 2.227" fill="#ffcb00"></path><path d="M60.434 28.329c.496.602 1.517.58 2.28-.05.763-.628.979-1.626.483-2.228-.496-.601-1.517-.58-2.28.05-.762.629-.979 1.626-.483 2.228" fill="#93c01c"></path><path d="M50.55 38.438c.497.602 1.518.58 2.28-.049.763-.629.98-1.626.484-2.228s-1.517-.58-2.28.049-.98 1.627-.483 2.228" fill="#0055a3"></path><path d="M69.492 27.455c.496.602 1.516.58 2.28-.05.762-.628.979-1.626.483-2.228-.496-.601-1.517-.58-2.28.05-.763.628-.98 1.626-.483 2.228" fill="#773e90"></path><path d="M63.037 19.125c.496.602 1.516.58 2.28-.05.762-.628.979-1.626.483-2.228-.496-.601-1.517-.58-2.28.05-.763.628-.98 1.626-.483 2.228" fill="#0055a3"></path><path d="M58.744 37.532c.496.602 1.516.58 2.28-.05.762-.628.979-1.626.483-2.227-.496-.602-1.517-.58-2.28.049s-.98 1.626-.483 2.228" fill="#e72656"></path><path d="M71.772 17.886c.496.602 1.516.58 2.28-.049.762-.629.978-1.626.482-2.228s-1.516-.58-2.28.05c-.762.628-.978 1.626-.482 2.227" fill="#e72656"></path><path d="M67.211 36.825c.496.602 1.517.58 2.28-.05.763-.628.979-1.626.483-2.227-.496-.602-1.517-.58-2.28.049s-.979
31.626-.483 2.228" fill="#ffcb00"></path></g>',5)])])}const Nt={render:At},Pt={width:"81",height:"69",viewBox:"0 0 81 69",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ot(m,n){return s(),c("svg",Pt,[...n[0]||(n[0]=[D('<rect x="21.072" y="67.132" width="38.615" height="1.868" rx=".934" fill="#2d487a"></rect><rect x=".519" y="1.246" width="79.861" height="58.029" rx="10" fill="#15284e"></rect><rect x=".519" width="79.861" height="58.029" rx="10" fill="#2d487a"></rect><path d="M4.873 8.596a4 4 0 0 1 4-4h62.669a4 4 0 0 1 4 4v40.836a4 4 0 0 1-4 4H8.873a4 4 0 0 1-4-4z" fill="#33a8e0"></path><circle cx="25.091" cy="21.198" r="2.803" fill="#fff"></circle><circle cx="25.09" cy="21.198" r="1.557" fill="#2d487a"></circle><circle cx="25.09" cy="28.671" r="2.803" fill="#fff"></circle><circle cx="25.09" cy="36.144" r="2.803" fill="#fff"></circle><rect x="31.007" y="19.641" width="27.404" height="3.114" rx="1.557" fill="#fff"></rect><rect x="31.007" y="27.114" width="27.404" height="3.114" rx="1.557" fill="#fff"></rect><rect x="31.007" y="34.588" width="27.404" height="3.114" rx="1.557" fill="#fff"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M30.726 60.28v4.153c-.312.692-1.37 2.076-3.114 2.076H40.38V60.28zm19.307 0v4.153c.312.692 1.37 2.076 3.115 2.076H40.38V60.28z" fill="#15284e"></path>',12)])])}const Wt={render:Ot},Dt={width:"97",height:"69",viewBox:"0 0 97 69",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function It(m,n){return s(),c("svg",Dt,[...n[0]||(n[0]=[D('<path d="M73.054 27.77c.91-.536 13.443-8.33 23.956-15.048L70.928 31.733 41.67 48.596c8.415-5.334 30.473-20.29 31.384-20.826" fill="url(#paint0_linear_10_7539)"></path><path d="M73.038 25.685c-.993-.671-1.948-.924-2.596-.924v-.073c-.001-3.01-.002-7.288 3.981-10.538 1.369-1.117 4.592-1.616 9.008-2.054 4-.396 5.016-2.057 6.199-2.347l5.691 2.88c-8.057 4.887-21.907 13.31-22.283 13.056" fill="#fff"></path><path d="m37.215.602-4.789 1.811c10.758 7.678 24.899 16.647 34.285 23.843.775-.613 1.333-1.297 3.063-1.477.357-1.518-.901-5.353-1.49-8.509-1.473-7.901-12.99-8.973-17.945-9.91-8.838-1.672-10.4-4.151-13.124-5.758" fill="#fff"></path><path d="M25.967 5.155c.857-1.071 2.679-2.143 3.482-2.544 1.393 0 20.541 15.072 34.27 23.263 2.721 1.623 3.184 1.79 2.039 2.53-12.45 8.05-30.739 21.12-31.275 21.014-.67-.134-32.621-23.506-33.558-24.443-.75-.75.312-2.009.937-2.545C9.54 17.118 25.11 6.226 25.967 5.156" fill="url(#paint1_linear_10_7539)"></path><path d="M35.395 49.698 67.443 27.98c1.237.506 2.8.508 4.601-.248-1.333.792-30.801 21.346-33.275 21.965s-3.28.258-3.374 0" fill="url(#paint2_linear_10_7539)"></path><path fill-rule="evenodd" clip-rule="evenodd" d="m45.913 68.288-.01.282-1.892-.04c-3.858-.083-6.874-3.551-6.738-7.748.137-4.197 3.376-7.534 7.235-7.452q.036 0 .073.002l1.817.038-.01.281c2.912.959 4.973 3.941 4.86 7.426s-2.365 6.377-5.335 7.211" fill="#d90"></path><path d="M45.761 68.567c-3.859-.081-7.168-3.556-7.031-7.753.136-4.198 3.666-7.528 7.525-7.447 3.859.082 6.877 3.55 6.74 7.747-.136 4.198-3.375 7.534-7.234 7.453" fill="#ffc908"></path><path d="M41.836 55.518c-.203-.694-2.287 0-2.287 0-.264 0-.11-.272 0-.408l3.25-2.082s1.165-.368 1.824-.143c.658.224.228 5.295-.178 5.736-.405.44-2.103-.572-2.255-1.164 0 0-.152-1.245-.354-1.939" fill="#15284e"></path><path d="M47.84 53.415h.001c.227.005 2.266.05 2.583.484.782.633 1.395 2.244 0 3.98-.37.462-1.451.967-1.7.678-.25-.29.332-4.55.332-4.55l-1.215-.591z" fill="#15284e"></path><defs><linearGradient id="paint0_linear_10_7539" x1="90.745" y1="17.537" x2="41.67" y2="49.605" gradientUnits="userSpaceOnUse"><stop stop-color="#324b78"></stop><stop offset=".664" stop-color="#304979"></stop><stop offset="1" stop-color="#ffc908"></stop></linearGradient><linearGradient id="paint1_linear_10_7539" x1="32.374" y1="6.367" x2="48.517" y2="52.776" gradientUnits="userSpaceOnUse"><stop stop-color="#2a457b"></stop><stop offset="0" stop-color="#2c477a"></stop><stop offset=".676" stop-color="#334b76"></stop><stop offset="1" stop-color="#ffc908"></stop></linearGradient><linearGradient id="paint2_linear_10_7539" x1="95.789" y1="9.537" x2="39.043" y2="51.069" gradientUnits="userSpaceOnUse"><stop stop-color="#2e559d"></stop><stop offset=".076" stop-color="#3d5e92"></stop><stop offset=".518" stop-color="#3d5e92"></stop><stop offset="1" stop-color="#ffc908"></stop></linearGradient></defs>',10)])])}const Tt={render:It},zt={width:"122",height:"69",viewBox:"0 0 122 69",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ut(m,n){return s(),c("svg",zt,[...n[0]||(n[0]=[D('<path fill-rule="evenodd" clip-rule="evenodd" d="M101.186 56.75c11.149 0 20.186-5.72 20.186-12.778v-3.46h-.749c-2.383-5.376-10.183-9.318-19.437-9.318s-17.054 3.942-19.437 9.318H81v3.46c0 7.057 9.038 12.778 20.186 12.778" fill="#d90"></path><path d="M121.374 40.778c0 7.057-9.037 13.31-20.186 13.31s-20.186-6.253-20.186-13.31S90.04 28 101.188 28s20.186 5.72 20.186 12.778" fill="#ffc908"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M40.95 62.555c11.494 0 20.812-5.898 20.812-13.173v-3.566h-.772c-2.457-5.543-10.498-9.607-20.04-9.607-9.54 0-17.582 4.064-20.039 9.607h-.771v3.567c.001 7.275 9.318 13.172 20.81 13.172" fill="#d90"></path><path d="M61.763 46.089c0 7.275-9.317 13.722-20.811 13.722S20.14 53.364 20.14 46.089c0-7.276 9.317-13.174 20.81-13.174 11.495 0 20.812 5.898 20.812 13.174" fill="#ffc908"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M86.598 36.14zv-3.568h-.772c-2.457-5.542-10.498-9.605-20.039-9.605-9.54 0-17.582 4.063-20.039 9.606h-.772v3.567c0 7.276 9.318 13.173 20.811 13.173s20.81-5.897 20.811-13.173" fill="#d90"></path><path d="M86.6 32.846c0 7.275-9.317 13.722-20.81 13.722-11.494 0-20.812-6.447-20.812-13.722 0-7.276 9.318-13.174 20.811-13.174S86.6 25.57 86.6 32.846" fill="#ffc908"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M20.811 29.64c11.494 0 20.811-5.897 20.811-13.172v-3.569h-.772C38.392 7.358 30.35 3.294 20.81 3.294S3.231 7.358.772 12.9H0v3.568c0 7.276 9.317 13.174 20.811 13.174" fill="#d90"></path><path d="M41.622 13.173c0 7.276-9.317 13.723-20.81 13.723C9.316 26.896 0 20.449 0 13.173 0 5.898 9.317 0 20.811 0s20.811 5.898 20.811 13.173" fill="#ffc908"></path>',8)])])}const Yt={render:Ut},Gt={class:"book-watch-info"},Vt={key:0,class:"book-watch-info__block"},jt={class:"book-watch-info__content"},Ft={class:"book-watch-info__title"},Kt={class:"book-watch-info__text"},Qt={class:"book-watch-info__description"},qt=I({name:"BookWatchInfo",__name:"BookWatchInfo",setup(m){const{trackEventClickElement:n,dynamicRouteName:x}=G(),b=lt(!1),e=C=>{n({element_name:C,content_type:x.value})},$=C=>{e(C),b.value=!b.value}
3,E=[{title:"ÐÑедÑÑвлÑйÑе бонÑÑнÑÑ ÐºÐ°ÑÑÑ",image:Nt,description:"РинÑеÑнеÑ-магазине â авÑоÑизÑйÑеÑÑ Ð¿ÐµÑед покÑпкой, в ÑозниÑном â покажиÑе каÑÑÑ Ð½Ð° каÑÑе"},{title:"ÐаполнÑйÑе анкеÑÑ-оÑзÑвÑ",image:Wt,description:"ÐÑ Ð¼Ð¾Ð¶ÐµÑе оÑÑавиÑÑ Ð¾ÑзÑв в ÑеÑение двÑÑ
дней Ñ Ð¼Ð¾Ð¼ÐµÐ½Ñа покÑпки. ÐÐ»Ñ ÑÑого оÑкÑойÑе ÐнижнÑй ÐÐ¾Ð·Ð¾Ñ Ð¸ ÑледÑйÑе подÑказкам"},{title:"ÐолÑÑайÑе подаÑки за оÑзÑвÑ",image:Tt,description:"ÐÑли Ð²Ð°Ñ Ð¾ÑзÑв пÑойдÑÑ Ð¼Ð¾Ð´ÐµÑаÑиÑ, вам пÑидÑÑ Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸ÑелÑнÑе бонÑÑÑ Ð² ÑазмеÑе 3% Ð¾Ñ ÑÑоимоÑÑи Ñека. ÐолÑÑиÑÑ Ð±Ð¾Ð½ÑÑÑ Ð¼Ð¾Ð¶Ð½Ð¾ один Ñаз в меÑÑÑ."},{title:"ТÑаÑÑÑе бонÑÑÑ Ð½Ð° книги",image:Yt,description:"ÐонÑÑами можно оплаÑиÑÑ Ð´Ð¾ 30% Ð¾Ñ ÑÑоимоÑÑи покÑпки в инÑеÑнеÑ-магазине и до 100% в ÑозниÑе. 1 бонÑÑ = 1 ÑÑблÑ"}];return(C,d)=>{const a=V;return s(),c("div",Gt,[d[4]||(d[4]=i("p",{class:"book-watch-info__description"}," УÑаÑÑвÑйÑе в Ðнижном ÐозоÑе! Ðн позволÑÐµÑ Ð¾ÑениваÑÑ ÑабоÑÑ Ð½Ð°ÑиÑ
ÑоÑÑÑдников и полÑÑаÑÑ Ð² подаÑок дополниÑелÑнÑе бонÑÑÑ â 3% Ð¾Ñ ÑÑоимоÑÑи Ñека. ",-1)),i("button",{class:"book-watch-info__how-is-work-button",onClick:d[0]||(d[0]=y=>$("Ðак ÑÑо ÑабоÑаеÑ?"))}," Ðак ÑÑо ÑабоÑаеÑ? "),u(it,{name:"dropdown"},{default:_(()=>[t(b)?(s(),c("div",Vt,[(s(),c(S,null,B(E,(y,k)=>i("div",{key:k,class:"book-watch-info__item"},[(s(),v(U(y.image),{class:"book-watch-info__icon"})),i("div",jt,[i("div",Ft,h(y.title),1),i("p",Kt,h(y.description),1)])])),64))])):p("",!0)]),_:1}),i("p",Qt,[d[3]||(d[3]=f(" РакÑии ÑÑаÑÑвÑÑÑ Ð¿Ð¾ÐºÑпки, коÑоÑÑе Ð²Ñ Ñделали в ÑозниÑнÑÑ
магазинаÑ
ЧиÑай-гоÑода не более двÑÑ
дней назад. ",-1)),u(a,{class:"book-watch-info__rules-link",to:t(rt),target:"_blank",onClick:d[1]||(d[1]=y=>e("ÐодÑобнÑе пÑавила акÑии"))},{default:_(()=>[...d[2]||(d[2]=[f(" ÐодÑобнÑе пÑавила акÑии ",-1)])]),_:1},8,["to"])])])}}}),Xt=Object.assign(qt,{__name:"BookWatchInfo"}),W="available",ot="history",Jt=[{type:W,title:"ÐÑениÑе ÑейÑаÑ"},{type:ot,title:"Уже оÑенили"}],Zt=m=>{switch(m){case M.CREATED:case M.SEND:return{title:"Ðа модеÑаÑии",color:"blue",icon:dt,tooltip:"ÐÑовеÑим оÑзÑв в ÑеÑение 3 ÑабоÑиÑ
дней, когда вÑÑ Ð±ÑÐ´ÐµÑ Ð³Ð¾Ñово â ÑÑаÑÑÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑÑ"};case M.DROPPED:case M.BLOCKED:case M.ERROR:case M.DOUBLE:return{title:"Ðе пÑинÑли оÑзÑв",color:"red",icon:pt};case M.SUCCESS:return{title:"ÐÑинÑли оÑзÑв",info:"",color:"green",icon:nt};default:return!1}},te={class:"bookwatch-receipt-card__content"},ee={class:"bookwatch-receipt-card__head"},se={class:"bookwatch-receipt-card__title-wrapper"},ae={class:"bookwatch-receipt-card__title"},oe={key:0,class:"bookwatch-receipt-card__expired-badge"},ce={class:"bookwatch-receipt-card__data"},ie={key:0,class:"bookwatch-receipt-card__data-item"},re={class:"bookwatch-receipt-card__data-item-bold"},le={key:1,class:"bookwatch-receipt-card__data-item"},ne={class:"bookwatch-receipt-card__data-item-bold"},pe={key:2,class:"bookwatch-receipt-card__data-item"},de={key:0,class:"bookwatch-receipt-card__bottom"},he={key:0,class:"bookwatch-receipt-card__products-wrapper"},_e={class:"bookwatch-receipt-card__products"},ue={key:0,class:"bookwatch-receipt-card__product"},fe={class:"bookwatch-receipt-card__control"},ke={key:0,class:"bookwatch-receipt-card__status"},me={class:"bookwatch-receipt-card__status-title"},be={key:0,class:"bookwatch-receipt-card__status-description"},we={key:1,class:"bookwatch-receipt-card__status-description"},ye=I({name:"ProfileBookWatchReceiptCard",__name:"BookWatchReceiptCard",props:{receipt:{}},emits:["evaluate"],setup(m,{emit:n}){const{trackEventClickElement:x,dynamicRouteName:b}=G(),e=m,$=n,E=w(()=>e.receipt.purchase&&e.receipt.purchase?.products?.length>0?e.receipt.purchase.products.slice(0,3):[]),C=w(()=>e.receipt.purchase?Y(e.receipt.purchase?.date,"DD.MM.YYYY"):e.receipt.history?Y(e.receipt.history?.date,"DD.MM.YYYY"):""),d=w(()=>e.receipt.purchase&&e.receipt.purchase?.orderPrice?X(e.receipt.purchase.orderPrice):e.receipt.history&&e.receipt.history?.checkSum?X(e.receipt.history.checkSum):""),a=w(()=>e.receipt.purchase&&e.receipt.purchase?.bonuses?`${e.receipt.purchase.bonuses} ${kt(e.receipt.purchase.bonuses,["бонÑÑ","бонÑÑа","бонÑÑов"])}`:""),y=w(()=>e.receipt.purchase&&e.receipt.purchase.date?Number(mt(e.receipt.purchase.date))<0&&!e.receipt?.history:!1),k=w(()=>e.receipt.history&&e.receipt.history?.status?Zt(e.receipt.history.status):!1),H=R=>R?{component:V,params:{to:R,target:"_blank"}}:{component:bt("span"),params:null},A=()=>{x({element_name:"ÐÑениÑÑ",content_type:b.value}),$("evaluate")};return(R,g)=>(s(),c("div",{class:q([{"bookwatch-receipt-card--is-history":e.receipt?.history},"bookwatch-receipt-card"])},[i("div",te,[i("section",ee,[i("div",se,[i("h4",ae,h(e.receipt?.history?"ÐнкеÑа":"ÐокÑпка")+" Ð¾Ñ "+h(t(C)),1),t(y)?(s(),c("span",oe," ÐÑенивайÑе ÑкоÑее! ")):p("",!0)])]),i("div",ce,[t(d)?(s(),c("p",ie,[g[0]||(g[0]=f(" СÑмма покÑпки: ",-1)),i("span",re,h(t(d)),1)])):p("",!0),e.receipt.purchase?.bonuses?(s(),c("p",le,[g[1]||(g[1]=f(" ÐÑ Ð¿Ð¾Ð»ÑÑиÑе: ",-1)),i("span",ne,h(t(a)),1)])):p("",!0),e.receipt.history?.shopAddress?(s(),c("p",pe,h(e.receipt.history.shopAddress),1)):p("",!0)]),e.receipt.history?p("",!0):(s(),c("div",de,[e.receipt.purchase?.products?(s(),c("div",he,[i("div",_e,[(s(!0),c(S,null,B(t(E),(L,T)=>(s(),v(U(H(L.url).component),ht({key:T,ref_for:!0},H(L.url).params,{class:"bookwatch-receipt-card__product"}),{default:_(()=>[u(t(Rt),{alt:L.title,title:L.title,img:L.picture,height:67,width:67},null,8,["alt","title","img"])]),_:2},1040))),128)),e.receipt.purchase?.products?.length>3?(s(),c("div",ue," +"+h(e.receipt.purchase.products.length-3),1)):p("",!0)])])):p("",!0),i("div",fe,[u(t(at),{size:"m",type:"primary",class:"bookwatch-receipt-card__evaluate",onClick:A},{default:_(()=>[...g[2]||(g[2]=[f(" ÐÑениÑÑ ",-1)])]),_:1})])]))]),e.receipt.history&&t(k)?(s(),c("div",ke,[(s(),v(U(t(k).icon),{class:q([`bookwatch-receipt-card__status-icon--${t(k).color}`,"bookwatch-receipt-card__status-icon"])},null,8,["class"])),i("div",me,[f(h(t(k).title)+" ",1),t(k).tooltip?(s(),v(t(_t),{key:0,placement:"bottom","is-dropdown":"","is-same-width":!1,offset:[0,8]},{trigger:_(()=>[u(t(ft),{class:"bookwatch-receipt-card__tooltip-icon"})]),drop:_(()=>[u(t(ut),{class:"bookwatch-receipt-card__tooltip-text"},{items:_(()=>[f(h(t(k).tooltip),1)]),_:1})]),_:1})):p("",!0)]),t(k).info?(s(),c("p",be,h(t(k).info),1)):p("",!0),e.receipt.history?.rejectReason?(s(),c("p",we,h(e.receipt.history.rejectReason),1)):p("",!0)])):p("",!0)],2))}}),st=Object.assign(ye,{__name:"BookWatchReceiptCard"}),ge={class:"placeholders-receipt-card"},ve={class:"placeholders-receipt-card__head"},Ce={class:"placeholders-receipt-card__info"},xe={class:"placeholders-receipt-card__bottom"},Le={class:"placeholders-receipt-card__products"},Me={class:"placeholders-receipt-card__control"},Se=I({name:"ProfileBookWatchReceiptCardPh",__name:"BookWatchReceiptCardPh",setup(m){return(n,x)=>(s(),c("div",ge,[i("div",ve,[u(t(z),{class:"placeholders-receipt-card__title","is-thin":""})]),i("div",Ce,[u(t(et),{height:"15","is-thin":"",lines:2,class:"placeholders-receipt-card__info-line"})]),i("div",xe,[i("div",Le,[(s(),c(S,null,B(3,b=>u(t(z),{key:b,class:"placeholders-receipt-card__product"})),64)),u(t(et),{lines:1,class:"placeholders-receipt-card__product"})]),i("div",Me,[u(t(z),{class:"placeholders-receipt-card__evaluate",width:"110",height:"32"})])])]))}}),Be=Object.assign(Se,{__name:"BookWatchReceiptCardPh"}),Ee={class:"book-watch-page global-page-white-box"},Re={key:0,class:"book-watch-page__tabs"},$e={key:0,class:"book-watch-page__tab-count"},He={key:1,class:"book-watch-page__placeholder-wrapper"},Ae={key:2},Ne=["alt"],Ue=I({name:"ProfileBookWatchPage",__name:"bookwatch",async setup(m){let n,x;const{bookwatchService:b,bonusService:e}=wt(),{bonusCardStatus:$,isLoadingProfile:E}=yt(),{trackEventClickElement:C,dynamicRouteName:d}=G(),a=St({tabsActiveName:W,isHistory:!1,isBookWatchStateError:!1,cardNumbers:[],receiptList:[],receiptHistoryList:[]}),y=w(()=>a.isBookWatchStateError?!1:(a.isHistory?a.receiptHistoryList.length:a.receiptList.length)===0&&!N.value),k=w(()=>a.tabsActiveName===W?"У Ð²Ð°Ñ Ð¿Ð¾ÐºÐ° Ð½ÐµÑ Ð¿Ð¾ÐºÑпок, коÑоÑÑе можно оÑениÑÑ":"ÐÑ Ð¿Ð¾ÐºÐ° не ÑÑаÑÑвовали в Ðнижном ÐозоÑе"),H=w(()=>
3a.isBookWatchStateError&&!N.value&&(a.receiptHistoryList.length===0||a.receiptList.length===0)),A=r=>r===W?a.receiptList.length:a.receiptHistoryList.length,R=async()=>{await b.getQuizHistory().then(({data:r})=>{r?.length>0&&(a.receiptHistoryList=r.filter(o=>o.status>0))}).catch(r=>{a.isBookWatchStateError=!0,O(r)})},g=r=>{C({element_name:r,content_type:d.value})},L=async(r,o)=>{g(o),a.tabsActiveName=r,a.isHistory=r===ot,a.isHistory?a.receiptHistoryList.length||await R():a.receiptList.length||await j()},T=async(r,o)=>{await Z({path:tt,query:{receiptNumber:r,receiptDate:Y(o,"DD.MM.YYYY")}},{external:!0})},j=async()=>{a.cardNumbers.length>0?await F(a.cardNumbers):await e.getBonusCard().then(async({card:r})=>{r.numbers?.length>0&&(a.cardNumbers=r.numbers,await F(r.numbers))}).catch(r=>O(r))},F=async r=>{await b.getAvailablePurchase(r).then(o=>{o?.length>0&&(a.receiptList=o)}).catch(o=>{a.isBookWatchStateError=!0,O(o)})},K=async()=>{!E.value&&$.value===Bt.NO_CARD&&await Z(tt,{external:!0,replace:!0})},N=w(()=>E.value||Q.value==="pending"||Q.value==="idle"),{status:Q}=([n,x]=gt(async()=>Et("profile-bookwatch",async()=>{try{await K(),await Promise.allSettled([j(),R()])}catch(r){O(r)}return!0},{server:!1})),n=await n,x(),n);return vt(async()=>await K()),Ct({title:"ÐнижнÑй Ð´Ð¾Ð·Ð¾Ñ - оÑенка ÑозниÑнÑÑ
магазинов | инÑеÑнеÑ-магазин «ЧиÑай-гоÑод»",description:"ÐÑениÑе ÑеÑÐ²Ð¸Ñ Ð¸ каÑеÑÑво обÑлÑживание в наÑем инÑÑÑÑменÑе «ÐнижнÑй дозоÑ». ÐеÑплаÑÐ½Ð°Ñ Ð´Ð¾ÑÑавка по вÑей РоÑÑии ð, ÑдобнÑе ÑпоÑÐ¾Ð±Ñ Ð¾Ð¿Ð»Ð°ÑÑ, акÑии и Ñкидки по каÑÑе лÑбимого покÑпаÑÐµÐ»Ñ â
",robots:{noindex:!0}}),(r,o)=>{const ct=V;return s(),c("div",Ee,[u(t($t),{class:"book-watch-page__breadcrumbs","is-back":"",breadcrumbs:[{name:"ÐÑоÑилÑ",link:t(xt)}]},null,8,["breadcrumbs"]),o[9]||(o[9]=i("h1",{class:"book-watch-page__title"},"ÐнижнÑй ÐозоÑ",-1)),u(Xt,{class:"book-watch-page__info"}),t(a).isBookWatchStateError?p("",!0):(s(),c("div",Re,[(s(!0),c(S,null,B(t(Jt),l=>(s(),v(t(at),{key:l.type,"is-loading":t(N),type:l.type===t(a).tabsActiveName?"primary":"secondary",size:"m",class:"book-watch-page__tabs-item",onClick:P=>L(l.type,l.title)},{default:_(()=>[f(h(l.title)+" ",1),A(l.type)>0?(s(),c("span",$e,h(A(l.type)),1)):p("",!0)]),_:2},1032,["is-loading","type","onClick"]))),128))])),t(N)?(s(),c("section",He,[(s(),c(S,null,B(3,l=>u(Be,{key:l,class:"book-watch-page__card-placeholder"})),64))])):(s(),c("section",Ae,[t(a).isHistory?(s(!0),c(S,{key:0},B(t(a).receiptHistoryList,(l,P)=>(s(),v(st,{key:P,receipt:{history:{date:l.date,shopAddress:l.shop_address,rejectReason:l.reject_reason,checkSum:l.check_sum,status:l.status}},class:"book-watch-page__card"},null,8,["receipt"]))),128)):(s(!0),c(S,{key:1},B(t(a).receiptList,(l,P)=>(s(),v(st,{key:P,receipt:{purchase:{bonuses:l.bonuses,date:l.date,orderPrice:l.orderPrice,products:l.products,receiptNumber:l.receiptNumber}},class:"book-watch-page__card",onEvaluate:Pe=>T(l.receiptNumber,l.date)},null,8,["receipt","onEvaluate"]))),128))])),t(H)?(s(),v(t(J),{key:3,class:"book-watch-page__not-available"},{title:_(()=>[...o[1]||(o[1]=[f("СейÑÐ°Ñ ÐнижнÑй ÐÐ¾Ð·Ð¾Ñ Ð½ÐµÐ´Ð¾ÑÑÑпен",-1)])]),description:_(()=>[...o[2]||(o[2]=[i("p",{class:"book-watch-page__not-available-text"},"ÐожалÑйÑÑа, попÑобÑйÑе позже",-1)])]),image:_(()=>[...o[3]||(o[3]=[i("img",{src:"/_static/shared/gears.svg",alt:"СейÑÐ°Ñ ÐнижнÑй ÐÐ¾Ð·Ð¾Ñ Ð½ÐµÐ´Ð¾ÑÑÑпен","svg-inline":""},null,-1)])]),_:1})):p("",!0),t(y)?(s(),v(t(J),{key:4,class:"book-watch-page__not-found"},{title:_(()=>[f(h(t(k)),1)]),description:_(()=>[o[5]||(o[5]=f(" ÐаглÑниÑе ",-1)),u(ct,{class:"global-link",to:t(Mt),onClick:o[0]||(o[0]=Lt(l=>g("к нам в гоÑÑи"),["prevent"]))},{default:_(()=>[...o[4]||(o[4]=[f(" к нам в гоÑÑи ",-1)])]),_:1},8,["to"]),o[6]||(o[6]=f(", ÑÑÐ¾Ð±Ñ ÐºÑпиÑÑ ÑÑо-Ñо",-1)),o[7]||(o[7]=i("br",null,null,-1)),o[8]||(o[8]=f("инÑеÑеÑное и оÑениÑÑ Ð½Ð°ÑÑ ÑабоÑÑ ",-1))]),image:_(()=>[i("img",{src:"/_static/shared/search.svg",alt:t(k),"svg-inline":""},null,8,Ne)]),_:1})):p("",!0)])}}});
3export{Ue as default}; 4//# sourceMappingURL=DJjZdgfo.js.map 5 6//# debugId=dc8d13f4-134f-5ee7-b55d-25d4ff01da5a
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.