Joywork/complexes/js/53dc5efa3461ac64.js

2 lines
94 KiB
JavaScript
Raw Normal View History

2026-05-22 20:21:54 +02:00
"use strict";(self["webpackChunkcomplexes"]=self["webpackChunkcomplexes"]||[]).push([[935],{84305:function(e,t,l){l.d(t,{D:function(){return d}});var o=l(55234),i=l(90144),n=l(56768),a=l(22093),s=l(81387),r=l(82815);const u={selectedTypes:[],selectedMetros:[],selectedRayons:[],selectedComplexes:[],selectedDecorations:[],selectedComplexTypes:[],address:"",period:"",area_from:"",area_to:"",rooms:[],useSquarePrice:!1,rayons:[],squareKitchen_min:"",squareKitchen_max:"",complexes:[],floor_from:"",floor_to:"",price_from:"",price_to:"",selectedPaymentTypes:[],selectedInstallments:[],customSelectedInstallments:[],initialPayment:"",paymentTerm:"",installmentPrice:{min:"",max:""}},d=(0,o.nY)("object",(()=>{const e=(0,s.lq)(),t=(0,s.rd)(),l=(0,i.KR)("tile"),o=(0,i.KR)(1),d=(0,i.KR)(0),c=(0,i.KR)(0),p=(0,i.KR)(!0),m=(0,i.KR)(!0),h=(0,i.KR)({}),v=(0,i.Kh)({list:!0,archivedList:!0}),f=(0,i.KR)([]),C=(0,i.KR)(0),g=(0,i.KR)(0),y=(0,i.KR)(null),b=(0,i.KR)(10),x=(0,i.KR)({list:"Список",tile:"Плитка"}),k=e=>{y.value=e},_=()=>{const t=["selectedTypes","selectedComplexTypes","rooms","selectedMetros","complexes","selectedDecorations","selectedPaymentTypes","selectedInstallments","customSelectedInstallments"];Object.entries(e.query).forEach((([e,l])=>{if(t.includes(e)){if(null===l||"null"===l||""===l||"number"===typeof l&&isNaN(l))return;Array.isArray(l)&&(l=l.map((t=>isNaN(+t)||"rooms"==e?t:parseInt(t)))),"string"==typeof l&&(l=isNaN(+l)||"rooms"==e?[l]:[parseInt(l)])}"rayons"==e&&(Array.isArray(l)&&(l=l.map((e=>e))),"string"==typeof l&&(l=[l])),V.value[e]="true"==l||"false"!=l&&l})),e.query.page&&(o.value=+e.query.page)};(0,n.sV)(_);const w=e=>{l.value=e},L=()=>{t.replace({query:{}}),V.value=(0,r.JH)(u)},V=(0,i.KR)((0,r.JH)(u));async function O(t=!0){v.list=!0,t||(o.value=1),a.A.searchComplexes({...V.value,address:V.value.address.trim()},o.value,!e.meta.isViewPage).then((e=>{var t=e.data;h.value=t.list,d.value=t.total,c.value=t.allPages;const l=document.getElementsByTagName("main");l&&l[0].scrollTo({top:0,behavior:"smooth"})})).catch((function(e){console.log(e)})).finally((()=>{v.list=!1}))}async function I(e=!0){v.archivedList=!0,e||(o.value=1),a.A.searchComplexes({...V.value,address:V.value.address.trim(),is_archive:!0},o.value,!1).then((e=>{var t=e.data;f.value=t.list,g.value=t.total,C.value=t.allPages;const l=document.getElementsByTagName("main");l&&l[0].scrollTo({top:0,behavior:"smooth"})})).catch((function(e){console.log(e)})).finally((()=>{v.archivedList=!1}))}return(0,n.wB)(o,(t=>{["main","complexes-list"].includes(e.name)&&!v.list&&O(),"archive-main"!=e.name||v.archivedList||I()})),(0,n.wB)((()=>e.name),((e,t)=>{e!=t&&("archive-main"==e?I():"main"==e&&O())}),{deep:!0}),{activeType:l,types:x,changeActiveType:w,activePage:o,getListComplex:O,getArchivedListComplex:I,archivedAllPages:C,archivedTotalRecords:g,archivedComplexes:f,rowsComplex:b,allPages:c,complex_filter:V,complexes:h,load:p,loaders:v,archivedListLoading:v.archivedList,archiveLoad:m,totalRecords:d,activeComplex:y,setActiveComplex:k,clearFilters:L}}))},54279:function(e,t,l){l.d(t,{A:function(){return Ft}});l(44114);var o=l(56768),i=l(24232),n=l(90144),a=l(45130),s=l(40660),r=l(85617),u=l(64841),d=l(64297),c=l(81387),p=l(82815),m=l(12463),h=l(40141),v=l(22093),f=l(15171),C=l(55639),g=l(5933),y=l(386),b=l(92565),x=l(94455),k=l(12467),_=l(309),w=l(30597),L=l(9361),V=l(62283),O="\n.p-autocomplete {\n display: inline-flex;\n}\n\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-autocomplete-dd .p-autocomplete-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n
//# sourceMappingURL=53dc5efa3461ac64.js.map