PageSourceSearch

https://butler.social/_nuxt/CgOIE1uO.js

js butler.social collected 2026-09-24 13:53:50 UTC 6,335 bytes, 1 lines download raw bytes

1import{o as n,c as a,a as t,V as Q,e as G,g as J,aR as W,ad as K,A as X,f as Y,C as Z,Q as C,i as s,G as A,I as d,E as m,W as B,t as c,J as u,aS as ee,R as y,aM as te,r as ne,a3 as se,a8 as ae}from"./oM9zIdsb.js";import{u as oe}from"./DWiJAzRA.js";const le={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function ie(M,r){return n(),a("svg",le,[...r[0]||(r[0]=[t("path",{fill:"#212926",d:"M12 2a1 1 0 0 1 0 2 8 8 0 1 0 8 8 1 1 0 0 1 2 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2"},null,-1),t("path",{fill:"#212926",d:"M12 6.5a1 1 0 0 1 0 2 3.5 3.5 0 1 0 3.5 3.5 1 1 0 0 1 2 0A5.5 5.5 0 1 1 12 6.5"},null,-1),t("path",{fill:"#212926","fill-rule":"evenodd",d:"M18.46 2.013a1 1 0 0 1 .734.54l.751 1.5 1.502.752a1 1 0 0 1 .26 1.602l-.791.791a7.52 7.52 0 0 1-4.889 2.188l-3.32 3.32a1 1 0 1 1-1.414-1.413l3.32-3.321a7.52 7.52 0 0 1 2.189-4.888l.79-.791a1 1 0 0 1 .868-.28m-.432 2.681a5.5 5.5 0 0 0-1.314 2.591 5.5 5.5 0 0 0 2.59-1.314l-.551-.277a1 1 0 0 1-.447-.447z","clip-rule":"evenodd"},null,-1)])])}const re={render:ie},ce=Q("/images/empty/balance.png"),ue={class:"flex flex-col gap-4"},de={key:0,class:"rounded-[32px] bg-white px-5 py-6 sm:px-6"},pe={key:2,class:"rounded-[24px] bg-white px-6 py-10 text-center"},me={key:0,class:"rounded-[32px] bg-white px-5 py-6 sm:px-6"},ye={class:"text-24-bold text-black"},xe=["title","aria-label"],ge={class:"min-w-0 truncate"},he={key:1,class:"mt-2 flex min-w-0 items-center gap-2 text-16 text-grey-40"},_e={class:"min-w-0 truncate"},fe={class:"flex flex-col gap-4"},be={key:0,class:"flex min-h-[420px] flex-col items-center justify-center rounded-[24px] bg-white px-6 py-12 text-center"},ke={class:"mt-6 text-24-bold text-black"},ve={class:"mt-2 text-16 text-grey-40"},we=["onClick"],Ie={class:"flex items-start justify-between gap-4"},Ce={class:"min-w-0 flex-1"},Ae={class:"block text-16 text-black"},Be={key:0,class:"flex shrink-0 items-center gap-3 pt-0.5 text-16 text-grey-40"},Me=["src"],Fe={class:"mt-2 line-clamp-2 text-13 text-grey-40 whitespace-pre-line"},Se={class:"truncate"},Ne=G({__name:"balance",setup(M){const r=J(),l=W(),{sessionStore:x,userInfoStore:b}=K(),{$showSnackbar:F}=X(),{setHeroAction:S,setTitleAction:q}=oe(),{t:k}=Y(),p=u(()=>b.residence?.premisesId??null),g=u(()=>l.screen?.moneyFees??[]),h=u(()=>l.screen?.isICanManage??!1),L=u(()=>x.isAuthorized&&!l.screen&&!l.error&&(b.isLoading||l.isLoading||!!p.value)),_=u(()=>l.screen?.ratingOpportunityBanner??null),v=u(()=>g.value.length>0),T=u(()=>ee(l.screen?.balance??0)),w=u(()=>l.screen?.balanceInfo.title||"Накопления"),f=u(()=>l.screen?.balanceInfo.description??"");async function N(){if(!x.isAuthorized){l.clear();return}const e=await l.loadScreen(p.value);e&&!e.ok&&F(e.error.message??"Не удалось загрузить копилку")}function R(){const e={...r.query,panel:"premises-money-fee-create"};y({path:r.path,query:e})}function I(){const e={...r.query,panel:"premises-balance-info"};y({path:r.path,query:e})}function z(){const e={...r.query,panel:"premises-money-fee-locked"};y({path:r.path,query:e})}function P(e){if(!e.moneyFeeId)return;const i={...r.query,panel:"premises-money-fee-detail",money_fee_id:e.moneyFeeId};y({path:r.path,query:i})}function V(){const e=_.value?.bannerName??"";l.closeRatingOpportunityBanner(p.value,e)}function j(e){return O(e.paidAmount)?"Взносов нет":e.paidAmount}function O(e){const i=e.replace(/\D/g,"");return!i||Number(i)===0}function D(e){return ae(e)}function H(){S({type:"primary",label:"Новый сбор",icon:h.value?"plus":"lock",width:"w-auto shrink-0",onClick:h.value?R:z})}function E(){I()}return Z(()=>{q({type:"icon",icon:"question",ariaLabel:"Помощь",onClick:E})}),C([()=>x.isAuthorized,p],()=>{N()},{immediate:!0}),C(h,H,{immediate:!0}),(e,i)=>{const U=te,$=re;return n(),a("div",ue,[s(_)?(n(),A(U,{key:0,block:s(_),onClose:V},null,8,["block"])):d("",!0),s(L)?(n(),a(m,{key:1},[s(g).length>0?(n(),a("section",de,[...i[0]||(i[0]=[t("div",{class:"h-8 w-36 rounded-full bg-grey-90"},null,-1),t("div",{class:"mt-5 h-6 w-32 rounded-full bg-grey-90"},null,-1)])])):d("",!0),(n(),a(m,null,B(3,o=>t("article",{key:o,class:"rounded-[32px] bg-white px-5 py-6 sm:px-6"},[...i[1]||(i[1]=[ne('<div class="flex items-start justify-between gap-4"><div class="min-w-0 flex-1"><div class="h-6 w-28 rounded-full bg-grey-90"></div><div class="mt-3 h-4 w-56 max-w-full rounded-full bg-grey-90"></div></div><div class="h-6 w-24 rounded-full bg-grey-90"></div></div><div class="mt-6 h-8 w-32 rounded-full bg-grey-90"></div>',2)])])),64))],64)):s(l).error?(n(),a("section",pe,[...i[2]||(i[2]=[t("h2",{class:"text-24-bold text-black"},"Не удалось загрузить копилку",-1),t("p",{class:"mt-2 text-16 text-grey-40"}," Попробуйте обновить страницу позже ",
1-1)])])):(n(),a(m,{key:3},[s(v)?(n(),a("section",me,[t("h2",ye,c(s(T)),1),s(f)?(n(),a("button",{key:0,type:"button",class:"mt-2 flex min-w-0 items-center gap-2 text-left text-16 text-grey-40",title:s(f),"aria-label":s(f),onClick:I},[t("span",ge,c(s(w)),1)],8,xe)):(n(),a("div",he,[t("span",_e,c(s(w)),1)]))])):d("",!0),t("section",fe,[s(v)?d("",!0):(n(),a("section",be,[i[3]||(i[3]=t("img",{src:ce,alt:"",class:"h-[220px] w-[220px] object-contain","aria-hidden":"true",draggable:"false"},null,-1)),t("h2",ke,c(s(k)("balance.empty.title")),1),t("p",ve,c(s(k)("balance.empty.description")),1)])),(n(!0),a(m,null,B(s(g),o=>(n(),a("button",{key:o.moneyFeeId||o.name,type:"button",class:"w-full rounded-[32px] bg-white px-5 py-6 text-left transition-colors auth:hover:bg-grey-80 sm:px-6",onClick:qe=>P(o)},[t("span",Ie,[t("span",Ce,[t("span",Ae,c(j(o)),1)]),o.mainTextValue?(n(),a("span",Be,[o.mainImgLink?(n(),a("img",{key:0,src:D(o.mainImgLink),alt:"",class:"h-6 w-6 object-contain opacity-45","aria-hidden":"true",draggable:"false"},null,8,Me)):(n(),A($,{key:1,class:"h-8 w-8 opacity-45","aria-hidden":"true"})),t("span",null,c(o.mainTextValue),1)])):d("",!0)]),t("span",Fe,c(o.name),1),o.markers.length?(n(),a("span",{key:0,class:"mt-6 inline-flex max-w-full rounded-full px-2 py-1 text-13-bold",style:se({color:o.markers[0]?.textColor||void 0,backgroundColor:o.markers[0]?.backgroundColor||void 0})},[t("span",Se,c(o.markers[0]?.text),1)],4)):d("",!0)],8,we))),128))])],64))])}}});export{Ne as default};

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.