PageSourceSearch

https://mvp-app.billys.gr/static/js/src_pages_buildings_edit_index…Form_buildingForm_module_scss.js?v=6932607f

js billys.gr collected 2026-10-08 03:18:11 UTC 3,170 bytes, 5 lines download raw bytes

1"use strict";
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]="5134d0a0-e5d1-55d6-8d3d-72bf95a47a62")}catch(e){}}();
3(self.webpackChunkbillys_app_ui=self.webpackChunkbillys_app_ui||[]).push([["src_pages_buildings_edit_index_jsx-src_components_organisms_BuildingForm_buildingForm_module_scss"],{75834:(e,i,n)=>{n.d(i,{EditBuildingPage:()=>b});var t=n(65043),l=n(73216),s=n(97),a=n(74534),d=n(32859),u=n(23357),r=n(15282),o=n(3966),c=n(90896),g=n(93785),B=n(59271),v=n(78001),m=n(63248),p=n(70579);const b=()=>{const e=(0,m.jE)(),{formatMessage:i}=(0,s.A)(),{toastSuccess:n,toastError:b}=(0,B.A)(),{buildingId:A}=(0,l.g)(),_=(0,l.Zp)(),x=(0,t.useRef)(),[f,h]=(0,t.useState)(!1),[I,P]=(0,t.useState)(void 0),[E,M]=(0,t.useState)(!0),j=(0,u.P)((e=>e.setBuildingDeleted)),H=(0,u.P)((e=>e.user));(0,t.useEffect)((()=>{M(!0),a.A.getSingleBuilding(A,{embed:["extraPermilles","internalManagersDetails"]}).then((e=>{let{building:i}=e;P(i),M(!1)}))}),[A]);return E?(0,p.jsx)(d.A,{cover:"content"}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(o.A,{title:"pages.editBuilding.title",cancelBtnLink:`${(0,v.A)(I.id)}/${g.MH}`,cancelBtnText:"pages.editBuilding.cancelButton",submitBtnText:"pages.editBuilding.submitButton",loadingSubmit:f,formRef:x}),(0,p.jsx)(r.A,{building:I,ref:x,MODE:"EDIT",onFinish:t=>{h(!0),!1===t.includeInactiveApartmentsInFuelBurnerBills&&(I.inactiveApartmentsInFuelBurnerBillsPercentage=void 0),!1===t.includeInactiveHeatingApartmentsInHeatingBills&&(I.inactiveHeatingApartmentsHeatingBillsPercentage=void 0),!1===t.includeInactiveApartmentsInOtherBills&&(I.inactiveApartmentsInOtherBillsPercentage=void 0),a.A.updateBuilding(A,{...I,...t}).then((()=>{h(!1),_(`${(0,v.A)(I.id)}/${g.MH}`),n(i({id:"pages.editBuilding.successMessage"})),e.invalidateQueries({queryKey:["buildings",{embed:["userRoles","extraPermilles"]},H.id]}),j(!0)})).catch((e=>{var n,t,l,s,a,d,u,r,o,c,g,B,v,m;h(!1),console.error("Error when editing building - ",e);const p=403===(null===(n=e.response)||void 0===n?void 0:n.status)&&((null===(t=e.response)||void 0===t||null===(l=t.data)||void 0===l||null===(s=l.message)||void 0===s||null===(a=s.toLowerCase)||void 0===a||null===(d=(u=a.call(s)).includes)||void 0===d?void 0:d.call(u,"eloruscontactid"))||(null===(r=e.response)||void 0===r||null===(o=r.data)||void 0===o||null===(c=o.error)||void 0===c||null===(g=c.message)||void 0===g||null===(B=g.toLowerCase)||void 0===B||null===(v=(m=B.call(g)).includes)||void 0===v?void 0:v.call(m,"eloruscontactid")));b(i({id:p?"pages.editBuilding.elorusContactIdPermissionError":"pages.editBuilding.errorMessage"}))}))}}),(0,p.jsx)(c.A,{cancelBtnLink:`${(0,v.A)(I.id)}/${g.MH}`,cancelBtnText:"pages.editBuilding.cancelButton",submitBtnText:"pages.editBuilding.submitButton",loadingSubmit:f,formRef:x})]})}}}]);
4//# sourceMappingURL=src_pages_buildings_edit_index_jsx-src_components_organisms_BuildingForm_buildingForm_module_scss.js.map?v=6932607f
5//# debugId=5134d0a0-e5d1-55d6-8d3d-72bf95a47a62

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.