PageSourceSearch

https://gazprom.kg/assets/PricePage-DWaTZanP.js

js gazprom.kg collected 2026-10-07 02:59:37 UTC 3,568 bytes, 1 lines download raw bytes

1import{A as P,B as V,_ as x,c as t,o as s,x as u,b as r,w as A,e as B,v as i,C as T,u as h,F as p,D as _,E as D}from"./index-ae80RWzP.js";import{_ as g}from"./BaseTabs-Dp7S3-2t.js";import{_ as b}from"./CategoriesBar-Dlopdj45.js";import"./arrow-right-CsnO2xBg.js";const w={components:{CategoriesBar:b,BaseTabs:g},data(){return{searchQuery:"",prices:[],loading:!1,expandedServices:[],activeTab:""}},computed:{...P(V,["currentLang"]),currentPriceData(){const e=this.prices.filter(o=>o.project.key===this.activeTab);return e.length?e[0]:null}},watch:{activeTab(){if(this.currentPriceData){const e={...this.$route.query,service:this.currentPriceData.project.key};this.$router.replace({query:e})}}},methods:{async fetchPrices(){this.loading=!0,await this.$axiosApi.get("/gazprom-app/content/prices").then(({data:e})=>{e&&(this.prices=e.filter(o=>{var d;return(d=o.project)==null?void 0:d.name}))}),this.loading=!1},getSimplifyPrices(e){let o=e;const d=e.every(l=>l.houseValue===e[0].houseValue),f=e.every(l=>l.flatValue===e[0].flatValue);return d&&f&&(e[0].houseValue===e[0].flatValue?o=e[0].houseValue:o=[e[0]]),o}},beforeMount(){this.fetchPrices();const e=this.$route.query.service;e&&(this.activeTab=e)}},C={class:"price-page"},F={class:"note grey"},j={class:"content"},E={key:0,class:"skeleton"},N={style:{display:"flex",gap:"10px","flex-wrap":"wrap"}},O={key:1,class:"stage"},R={class:"stage-name"},q={class:"service-name"},L={key:0,class:"price"},z={key:1,class:"prices-table"},$={class:"table-head"},H={key:0},I={key:0},M={key:2,class:"note warn"};function Q(e,o,d,f,l,c){const S=b,k=T,v=g,m=D;return s(),t("div",C,[u(S),u(k,{tag:"h2",size:"small",style:{margin:".8em 0"}},{default:A(()=>[B(i(e.$t("costOfServices.title")),1)]),_:1}),r("div",F,i(e.$t("costOfServices.note")),1),u(v,{items:l.prices.map(a=>({key:a.project.key,caption:a.project.name})),modelValue:l.activeTab,"onUpdate:modelValue":o[0]||(o[0]=a=>l.activeTab=a),autoselect:""},null,8,["items","modelValue"]),r("section",j,[l.loading?(s(),t("section",E,[r("div",N,[(s(),t(p,null,_(5,a=>u(m,{key:a,height:"30px",width:"15%",borderRadius:"16px"})),64))]),(s(),t(p,null,_(2,a=>r("div",{key:a},[u(m,{height:"30px",borderRadius:"16px"}),u(m,{height:"80px",borderRadius:"16px"}),u(m,{height:"80px",borderRadius:"16px"}),u(m,{height:"80px",borderRadius:"16px"})])),64))])):c.currentPriceData?(s(),t("section",O,[(s(!0),t(p,null,_(c.currentPriceData.cases,a=>(s(),t(p,{key:a.id},[r("h2",R,"Этап: "+i(a.name[e.currentLang]),1),(s(!0),t(p,null,_(a.caseData,n=>(s(),t("div",{class:"service",key:n.id},[r("div",q,i(n.service.name[e.currentLang]),1),typeof c.getSimplifyPrices(n.prices)=="number"?(s(),t("div",L,i(c.getSimplifyPrices(n.prices))+" сом",1)):h("",!0),Array.isArray(c.getSimplifyPrices(n.prices))?(s(),t("table",z,[r("thead",$,[r("tr",null,[Array.isArray(c.getSimplifyPrices(n.prices))&&c.getSimplifyPrices(n.prices).length!==1?(s(),t("th",H,i(e.$t("common.branch")),1)):h("",!0),r("th",null,i(e.$t("costOfServices.costForHouse")),1),r("th",null,i(e.$t("costOfServices.costForFlat")),1)])]),r("tbody",null,[(s(!0),t(p,null,_(c.getSimplifyPrices(n.prices),y=>(s(),t("tr",{key:y.branch.id},[Array.isArray(c.getSimplifyPrices(n.prices))&&c.getSimplifyPrices(n.prices).length!==1?(s(),t("td",I,i(y.branch.name),1)):h("",!0),r("td",null,i(y.houseValue)+" сом",1),r("td",null,i(y.flatValue)+" сом",1)]))),128))])])):h("",!0),n.service.code===23?(s(),t("div",M,i(e.$t("costOfServices.costNote")),1)):h("",!0)]))),128))],64))),128))])):h("",!0)])])}const W=x(w,[["render",Q]]);export{W 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.