2 lines
73 KiB
JavaScript
2 lines
73 KiB
JavaScript
"use strict";(self["webpackChunkcomplexes"]=self["webpackChunkcomplexes"]||[]).push([[841],{27599:function(e,t,o){o.d(t,{A:function(){return g}});o(44114);var n=o(21585),l=o(68922),r=o(92565),i=o(94455),a=o(12467),s=o(309),c=o(9361),C=o(62283),d=o(56768),u=o(45130),p="\n.p-overlaypanel {\n margin-top: 10px;\n}\n\n.p-overlaypanel-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n}\n\n.p-overlaypanel-close {\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Animation */\n.p-overlaypanel-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-overlaypanel-leave-to {\n opacity: 0;\n}\n\n.p-overlaypanel-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-overlaypanel-leave-active {\n transition: opacity 0.1s linear;\n}\n\n.p-overlaypanel:after,\n.p-overlaypanel:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.p-overlaypanel:after {\n border-width: 8px;\n margin-left: -8px;\n}\n\n.p-overlaypanel:before {\n border-width: 10px;\n margin-left: -10px;\n}\n\n.p-overlaypanel-flipped:after,\n.p-overlaypanel-flipped:before {\n bottom: auto;\n top: 100%;\n}\n\n.p-overlaypanel.p-overlaypanel-flipped:after {\n border-bottom-color: transparent;\n}\n\n.p-overlaypanel.p-overlaypanel-flipped:before {\n border-bottom-color: transparent;\n}\n",f={root:function(e){var t=e.instance;return["p-overlaypanel p-component",{"p-input-filled":"filled"===t.$primevue.config.inputStyle,"p-ripple-disabled":!1===t.$primevue.config.ripple}]},content:"p-overlaypanel-content",closeButton:"p-overlaypanel-close p-link",closeIcon:"p-overlaypanel-close-icon"},v=(0,C.X)(p,{name:"overlaypanel",manual:!0}),m=v.load,h={name:"BaseOverlayPanel",extends:c.A,props:{dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!1},appendTo:{type:String,default:"body"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},breakpoints:{type:Object,default:null},closeIcon:{type:String,default:void 0}},css:{classes:f,loadStyle:m},provide:function(){return{$parentInstance:this}}},g={name:"OverlayPanel",extends:h,inheritAttrs:!1,emits:["show","hide"],data:function(){return{visible:!1}},watch:{dismissable:{immediate:!0,handler:function(e){e?this.bindOutsideClickListener():this.unbindOutsideClickListener()}}},selfClick:!1,target:null,eventTarget:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,styleElement:null,overlayEventListener:null,beforeUnmount:function(){this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.destroyStyle(),this.unbindResizeListener(),this.target=null,this.container&&this.autoZIndex&&s.Q$.clear(this.container),this.overlayEventListener&&(r.A.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.container=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{toggle:function(e,t){this.visible?this.hide():this.show(e,t)},show:function(e,t){this.visible=!0,this.eventTarget=e.currentTarget,this.target=t||e.currentTarget},hide:function(){this.visible=!1},onContentClick:function(){this.selfClick=!0},onEnter:function(e){var t=this;this.container.setAttribute(this.attributeSelector,""),s.DV.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&s.Q$.set("overlay",e,this.baseZIndex+this.$primevue.config.zIndex.overlay),this.overlayEventListener=function(e){t.container.contains(e.target)&&(t.selfClick=!0)},this.focus(),r.A.on("overlay-click",this.overlayEventListener),this.$emit("show")},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),r.A.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null,this.$emit("hide")},onAfterLeave:function(e){this.autoZIndex&&s.Q$.clear(e)},alignOverlay:function(){s.DV.absolutePosition(this.container,this.target);var e=s.DV.getOffset(this.container),t=s.DV.getOffset(this.target),o=0;e.left<t.left&&(o=t.left-e.left),this.container.style.setProperty("--overlayArrowLeft","".concat(o,"px")),e.top<t.top&&(this.container.setAttribute("data-p-overlaypanel-flipped","true"),!this.isUnstyled&&s.DV.addClass(this.container,"p-overlaypanel-flipped"))},onContentKeydown:function(e){"Escape"===e.code&&(this.hide(),s.DV.focus(this.target))},onButtonKeydown:function(e){switch(e.code){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":e.preventDefault()}},focus:function(){var e=this.container.querySelector("[autofocus]");e&&e.focus()},bindOutsideClickListener:function(){var e=this;!this.outsideClickListener&&s.DV.isClient()&&(this.outsideClickListener=function(t){!e.visible||e.selfClick||e.isTargetClicked(t)||(e.visible=!1),e.selfClick=!1},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null,this.selfClick=!1)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new s.bM(this.target,(function(){e.visible&&(e.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!s.DV.isTouchDevice()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked:function(e){return this.eventTarget&&(this.eventTarget===e.target||this.eventTarget.contains(e.target))},containerRef:function(e){this.container=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",s.DV.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="";for(var o in this.breakpoints)t+="\n @media screen and (max-width: ".concat(o,") {\n .p-overlaypanel[").concat(this.attributeSelector,"] {\n width: ").concat(this.breakpoints[o]," !important;\n }\n }\n ");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},onOverlayClick:function(e){r.A.emit("overlay-click",{originalEvent:e,target:this.target})}},computed:{attributeSelector:function(){return(0,s._Y)()},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{focustrap:n.A,ripple:a.A},components:{Portal:i.A,TimesIcon:l.A}};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function L(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?L(Object(o),!0).forEach((function(t){k(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):L(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function k(e,t,o){return t=w(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function w(e){var t=x(e,"string");return"symbol"===y(t)?t:String(t)}function x(e,t){if("object"!==y(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var _=["aria-modal"],V=["aria-label"];function E(e,t,o,n,l,r){var i=(0,d.g2)("Portal"),a=(0,d.gN)("ripple"),s=(0,d.gN)("focustrap");return(0,d.uX)(),(0,d.Wv)(i,{appendTo:e.appendTo},{default:(0,d.k6)((function(){return[(0,d.bF)(u.eB,(0,d.v6)({name:"p-overlaypanel",onEnter:r.onEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},e.ptm("transition")),{default:(0,d.k6)((function(){return[l.visible?(0,d.bo)(((0,d.uX)(),(0,d.CE)("div",(0,d.v6)({key:0,ref:r.containerRef,role:"dialog","aria-modal":l.visible,onClick:t[5]||(t[5]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),class:e.cx("root")},b(b({},e.$attrs),e.ptm("root"))),[(0,d.Lk)("div",(0,d.v6)({class:e.cx("content"),onClick:t[0]||(t[0]=function(){return r.onContentClick&&r.onContentClick.apply(r,arguments)}),onMousedown:t[1]||(t[1]=function(){return r.onContentClick&&r.onContentClick.apply(r,arguments)}),onKeydown:t[2]||(t[2]=function(){return r.onContentKeydown&&r.onContentKeydown.apply(r,arguments)})},e.ptm("content")),[(0,d.RG)(e.$slots,"default")],16),e.showCloseIcon?(0,d.bo)(((0,d.uX)(),(0,d.CE)("button",(0,d.v6)({key:0,class:e.cx("closeButton"),"aria-label":r.closeAriaLabel,type:"button",autofocus:"",onClick:t[3]||(t[3]=function(){return r.hide&&r.hide.apply(r,arguments)}),onKeydown:t[4]||(t[4]=function(){return r.onButtonKeydown&&r.onButtonKeydown.apply(r,arguments)})},e.ptm("closeButton")),[(0,d.RG)(e.$slots,"closeicon",{},(function(){return[((0,d.uX)(),(0,d.Wv)((0,d.$y)(e.closeIcon?"span":"TimesIcon"),(0,d.v6)({class:[e.cx("closeIcon"),e.closeIcon]},e.ptm("closeIcon")),null,16,["class"]))]}))],16,V)),[[a]]):(0,d.Q3)("",!0)],16,_)),[[s]]):(0,d.Q3)("",!0)]})),_:3},16,["onEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])}g.render=E},54409:function(e,t,o){o.d(t,{j:function(){return i}});var n=o(55234),l=o(90144),r=o(22093);const i=(0,n.nY)("house",(()=>{const e=(0,l.KR)({}),t=(0,l.KR)({dop:{},metro:{}}),o=async(o,n=[])=>r.A.getHouseOne(o,n).then((o=>{var n=o.data;return n.house&&(e.value=n.house),n.complex&&(t.value=n.complex),o})).catch((e=>{console.log(e)}));return{house:e,complex:t,get_house:o}}))},8797:function(e,t,o){o(22093)},29062:function(e,t,o){o.r(t),o.d(t,{default:function(){return Xe}});o(44114);var n=o(56768),l=o(24232),r=o(90144),i=o(45130),a=o(69689),s=o(22093);function c(){const e=(0,r.KR)([]),t=(0,r.KR)(!0),o=o=>s.A.getHouseEntrances(o,["rooms"]).then((t=>{e.value=t.data})).finally((()=>t.value=!1)).catch((function(e){console.log(e)})),l=async(e,t)=>{s.A.updateEntrance(e.id,t).then((o=>{e={...e,...t}})).catch((function(e){console.log(e)}))},i=async t=>{s.A.deleteEntrance(t).then((()=>{e.value=e.value.filter((e=>e.id!==t))})).catch((function(e){console.log(e)}))},a=(t,o={})=>(o.position=e.value.length+1,o.name=`Подъезд ${e.value.length+1}`,s.A.createEntrance(t,o).then((t=>(e.value.push(t.data),t.data))).catch((function(e){console.log(e)}))),c=(0,n.EW)((()=>e.value.sort(((e,t)=>e.position>t.position?1:-1)))),C=(t,o)=>{const n=e.value.find((e=>e.id===t));n&&l(n,{name:o}).then((()=>{n.name=o}))};return(0,n.wB)(c,(e=>{e.forEach(((e,t)=>{l(e,{position:t+1})}))})),{entranceList:e,addNewEntrance:a,sortedEntranceList:c,updateEntrance:l,updateTitle:C,getEntranceList:o,deleteEntrance:i,entrancesLoader:t}}var C=o(64297);const d=["draggable"],u={key:0,class:"tabItem__title font-bold text-sm"},p={key:0,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f={key:1,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var v={__name:"tabItem",props:{active:Boolean,title:String},emits:["update:title","tab:click","delete:entrance"],setup(e,{emit:t}){const o=e,{title:a}=(0,r.QW)(o),s=(0,r.KR)(""),c=t,C=(0,r.KR)(!1),v=((0,r.KR)(!1),(0,r.KR)({root:({context:e})=>({class:["!border-0 !border-b !rounded-none !p-0 !h-auto !w-max !text-black !opacity-100 !font-bold",e.disabled?"!bg-transparent !border-b-0":""]})}));return(0,n.wB)(C,(e=>{e||c("update:title",s.value)})),(0,n.sV)((()=>{s.value=o.title})),(t,o)=>{const m=(0,n.g2)("InputText");return(0,n.uX)(),(0,n.CE)("div",{class:(0,l.C4)(["tabItem flex flex-row items-center gap-x-2 w-max pb-4",[e.active?"border-b-2 border-green -mb-1":""]]),onClick:o[3]||(o[3]=()=>c("tab:click")),draggable:!C.value},[o[7]||(o[7]=(0,n.Lk)("div",{class:"tabItem__dragIcon"},[(0,n.Lk)("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M1.95866 4.83333C1.72791 4.83333 1.50235 4.90176 1.31049 5.02995C1.11864 5.15815 0.969102 5.34036 0.8808 5.55354C0.792498 5.76672 0.769394 6.0013 0.81441 6.22761C0.859426 6.45392 0.97054 6.6618 1.1337 6.82496C1.29686 6.98812 1.50474 7.09923 1.73105 7.14425C1.95737 7.18927 2.19194 7.16616 2.40512 7.07786C2.6183 6.98956 2.80051 6.84002 2.92871 6.64817C3.0569 6.45631 3.12533 6.23075 3.12533 6C3.12533 5.69058 3.00241 5.39384 2.78362 5.17504C2.56482 4.95625 2.26808 4.83333 1.95866 4.83333ZM1.95866 8.91667C1.72791 8.91667 1.50235 8.98509 1.31049 9.11329C1.11864 9.24148 0.969102 9.42369 0.8808 9.63687C0.792498 9.85005 0.769394 10.0846 0.81441 10.3109C0.859426 10.5373 0.97054 10.7451 1.1337 10.9083C1.29686 11.0715 1.50474 11.1826 1.73105 11.2276C1.95737 11.2726 2.19194 11.2495 2.40512 11.1612C2.6183 11.0729 2.80051 10.9234 2.92871 10.7315C3.0569 10.5396 3.12533 10.3141 3.12533 10.0833C3.12533 9.77391 3.00241 9.47717 2.78362 9.25838C2.56482 9.03958 2.26808 8.91667 1.95866 8.91667ZM6.04199 3.08333C6.27274 3.08333 6.4983 3.01491 6.69016 2.88672C6.88202 2.75852 7.03155 2.57631 7.11985 2.36313C7.20816 2.14995 7.23126 1.91537 7.18624 1.68906C7.14123 1.46275 7.03011 1.25487 6.86695 1.09171C6.70379 0.928548 6.49591 0.817434 6.2696 0.772418C6.04329 0.727402 5.80871 0.750505 5.59553 0.838808C5.38235 0.92711 5.20014 1.07664 5.07195 1.2685C4.94375 1.46036 4.87533 1.68592 4.87533 1.91667C4.87533 2.22609 4.99824 2.52283 5.21704 2.74163C5.43583 2.96042 5.73257 3.08333 6.04199 3.08333ZM1.95866 0.75C1.72791 0.75 1.50235 0.818424 1.31049 0.946619C1.11864 1.07481 0.969102 1.25702 0.8808 1.4702C0.792498 1.68338 0.769394 1.91796 0.81441 2.14427C0.859426 2.37058 0.97054 2.57846 1.1337 2.74163C1.29686 2.90479 1.50474 3.0159 1.73105 3.06092C1.95737 3.10593 2.19194 3.08283 2.40512 2.99453C2.6183 2.90622 2.80051 2.75669 2.92871 2.56483C3.0569 2.37298 3.12533 2.14741 3.12533 1.91667C3.12533 1.60725 3.00241 1.3105 2.78362 1.09171C2.56482 0.872917 2.26808 0.75 1.95866 0.75ZM6.04199 8.91667C5.81125 8.91667 5.58569 8.98509 5.39383 9.11329C5.20197 9.24148 5.05244 9.42369 4.96413 9.63687C4.87583 9.85005 4.85273 10.0846 4.89774 10.3109C4.94276 10.5373 5.05387 10.7451 5.21704 10.9083C5.3802 11.0715 5.58808 11.1826 5.81439 11.2276C6.0407 11.2726 6.27528 11.2495 6.48846 11.1612C6.70164 11.0729 6.88385 10.9234 7.01204 10.7315C7.14024 10.5396 7.20866 10.3141 7.20866 10.0833C7.20866 9.77391 7.08574 9.47717 6.86695 9.25838C6.64816 9.03958 6.35141 8.91667 6.04199 8.91667ZM6.04199 4.83333C5.81125 4.83333 5.58569 4.90176 5.39383 5.02995C5.20197 5.15815 5.05244 5.34036 4.96413 5.55354C4.87583 5.76672 4.85273 6.0013 4.89774 6.22761C4.94276 6.45392 5.05387 6.6618 5.21704 6.82496C5.3802 6.98812 5.58808 7.09923 5.81439 7.14425C6.0407 7.18927 6.27528 7.16616 6.48846 7.07786C6.70164 6.98956 6.88385 6.84002 7.01204 6.64817C7.14024 6.45631 7.20866 6.23075 7.20866 6C7.20866 5.69058 7.08574 5.39384 6.86695 5.17504C6.64816 4.95625 6.35141 4.83333 6.04199 4.83333Z",fill:"#9E9EA4"})])],-1)),C.value?((0,n.uX)(),(0,n.Wv)(m,{key:1,pt:v.value,modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=e=>s.value=e)},null,8,["pt","modelValue"])):((0,n.uX)(),(0,n.CE)("div",u,(0,l.v_)((0,r.R1)(a)),1)),(0,n.Lk)("button",{class:"tabItem__edit",onClick:o[1]||(o[1]=e=>C.value=!C.value)},[C.value?((0,n.uX)(),(0,n.CE)("svg",f,o[5]||(o[5]=[(0,n.Lk)("path",{d:"M13.5325 4.9675L9.0325 0.4675C8.96339 0.400037 8.8819 0.346557 8.7925 0.31C8.69951 0.272213 8.60036 0.251874 8.5 0.25H2.5C1.90326 0.25 1.33097 0.487053 0.90901 0.90901C0.487053 1.33097 0.25 1.90326 0.25 2.5V11.5C0.25 12.0967 0.487053 12.669 0.90901 13.091C1.33097 13.5129 1.90326 13.75 2.5 13.75H11.5C12.0967 13.75 12.669 13.5129 13.091 13.091C13.5129 12.669 13.75 12.0967 13.75 11.5V5.5C13.7506 5.4013 13.7317 5.30345 13.6943 5.21207C13.657 5.12069 13.602 5.03758 13.5325 4.9675ZM4.75 1.75H7.75V3.25H4.75V1.75ZM9.25 12.25H4.75V10C4.75 9.80109 4.82902 9.61032 4.96967 9.46967C5.11032 9.32902 5.30109 9.25 5.5 9.25H8.5C8.69891 9.25 8.88968 9.32902 9.03033 9.46967C9.17098 9.61032 9.25 9.80109 9.25 10V12.25ZM12.25 11.5C12.25 11.6989 12.171 11.8897 12.0303 12.0303C11.8897 12.171 11.6989 12.25 11.5 12.25H10.75V10C10.75 9.40326 10.5129 8.83097 10.091 8.40901C9.66903 7.98705 9.09674 7.75 8.5 7.75H5.5C4.90326 7.75 4.33097 7.98705 3.90901 8.40901C3.48705 8.83097 3.25 9.40326 3.25 10V12.25H2.5C2.30109 12.25 2.11032 12.171 1.96967 12.0303C1.82902 11.8897 1.75 11.6989 1.75 11.5V2.5C1.75 2.30109 1.82902 2.11032 1.96967 1.96967C2.11032 1.82902 2.30109 1.75 2.5 1.75H3.25V4C3.25 4.19891 3.32902 4.38968 3.46967 4.53033C3.61032 4.67098 3.80109 4.75 4 4.75H8.5C8.69891 4.75 8.88968 4.67098 9.03033 4.53033C9.17098 4.38968 9.25 4.19891 9.25 4V2.8075L12.25 5.8075V11.5Z",fill:"#9E9EA4"},null,-1)]))):((0,n.uX)(),(0,n.CE)("svg",p,o[4]||(o[4]=[(0,n.Lk)("path",{d:"M15.75 8.99995C15.5511 8.99995 15.3603 9.07897 15.2197 9.21962C15.079 9.36028 15 9.55104 15 9.74995V14.25C15 14.4489 14.921 14.6396 14.7803 14.7803C14.6397 14.9209 14.4489 15 14.25 15H3.75C3.55109 15 3.36032 14.9209 3.21967 14.7803C3.07902 14.6396 3 14.4489 3 14.25V3.74995C3 3.55104 3.07902 3.36028 3.21967 3.21962C3.36032 3.07897 3.55109 2.99995 3.75 2.99995H8.25C8.44891 2.99995 8.63968 2.92094 8.78033 2.78028C8.92098 2.63963 9 2.44887 9 2.24995C9 2.05104 8.92098 1.86028 8.78033 1.71962C8.63968 1.57897 8.44891 1.49995 8.25 1.49995H3.75C3.15326 1.49995 2.58097 1.73701 2.15901 2.15896C1.73705 2.58092 1.5 3.15322 1.5 3.74995V14.25C1.5 14.8467 1.73705 15.419 2.15901 15.8409C2.58097 16.2629 3.15326 16.5 3.75 16.5H14.25C14.8467 16.5 15.419 16.2629 15.841 15.8409C16.2629 15.419 16.5 14.8467 16.5 14.25V9.74995C16.5 9.55104 16.421 9.36028 16.2803 9.21962C16.1397 9.07897 15.9489 8.99995 15.75 8.99995ZM4.5 9.56995V12.75C4.5 12.9489 4.57902 13.1396 4.71967 13.2803C4.86032 13.4209 5.05109 13.5 5.25 13.5H8.43C8.5287 13.5005 8.62655 13.4816 8.71793 13.4443C8.80931 13.407 8.89242 13.352 8.9625 13.2825L14.1525 8.08495L16.2825 5.99995C16.3528 5.93023 16.4086 5.84728 16.4467 5.75589C16.4847 5.66449 16.5043 5.56646 16.5043 5.46745C16.5043 5.36845 16.4847 5.27042 16.4467 5.17902C16.4086 5.08763 16.3528 5.00468 16.2825 4.93495L13.1025 1.71745C13.0328 1.64716 12.9498 1.59136 12.8584 1.55329C12.767 1.51521 12.669 1.49561 12.57 1.49561C12.471 1.49561 12.373 1.51521 12.2816 1.55329C12.1902 1.59136 12.1072 1.64716 12.0375 1.71745L9.9225 3.83995L4.7175 9.03745C4.64799 9.10753 4.59299 9.19065 4.55567 9.28202C4.51835 9.3734 4.49943 9.47125 4.5 9.56995ZM12.57 3.30745L14.6925 5.42995L13.6275 6.49495L11.505 4.37245L12.57 3.30745ZM6 9.87745L10.4475 5.42995L12.57 7.55245L8.1225 12H6V9.87745Z",fill:"#9E9EA4"},null,-1)])))]),(0,n.Lk)("button",{class:"tabItem__delete",onClick:o[2]||(o[2]=(0,i.D$)((e=>c("delete:entrance",e)),["stop"]))},o[6]||(o[6]=[(0,n.Lk)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M7.5 13.5C7.69891 13.5 7.88968 13.421 8.03033 13.2803C8.17098 13.1397 8.25 12.9489 8.25 12.75V8.25C8.25 8.05109 8.17098 7.86032 8.03033 7.71967C7.88968 7.57902 7.69891 7.5 7.5 7.5C7.30109 7.5 7.11032 7.57902 6.96967 7.71967C6.82902 7.86032 6.75 8.05109 6.75 8.25V12.75C6.75 12.9489 6.82902 13.1397 6.96967 13.2803C7.11032 13.421 7.30109 13.5 7.5 13.5ZM15 4.5H12V3.75C12 3.15326 11.7629 2.58097 11.341 2.15901C10.919 1.73705 10.3467 1.5 9.75 1.5H8.25C7.65326 1.5 7.08097 1.73705 6.65901 2.15901C6.23705 2.58097 6 3.15326 6 3.75V4.5H3C2.80109 4.5 2.61032 4.57902 2.46967 4.71967C2.32902 4.86032 2.25 5.05109 2.25 5.25C2.25 5.44891 2.32902 5.63968 2.46967 5.78033C2.61032 5.92098 2.80109 6 3 6H3.75V14.25C3.75 14.8467 3.98705 15.419 4.40901 15.841C4.83097 16.2629 5.40326 16.5 6 16.5H12C12.5967 16.5 13.169 16.2629 13.591 15.841C14.0129 15.419 14.25 14.8467 14.25 14.25V6H15C15.1989 6 15.3897 5.92098 15.5303 5.78033C15.671 5.63968 15.75 5.44891 15.75 5.25C15.75 5.05109 15.671 4.86032 15.5303 4.71967C15.3897 4.57902 15.1989 4.5 15 4.5ZM7.5 3.75C7.5 3.55109 7.57902 3.36032 7.71967 3.21967C7.86032 3.07902 8.05109 3 8.25 3H9.75C9.94891 3 10.1397 3.07902 10.2803 3.21967C10.421 3.36032 10.5 3.55109 10.5 3.75V4.5H7.5V3.75ZM12.75 14.25C12.75 14.4489 12.671 14.6397 12.5303 14.7803C12.3897 14.921 12.1989 15 12 15H6C5.80109 15 5.61032 14.921 5.46967 14.7803C5.32902 14.6397 5.25 14.4489 5.25 14.25V6H12.75V14.25ZM10.5 13.5C10.6989 13.5 10.8897 13.421 11.0303 13.2803C11.171 13.1397 11.25 12.9489 11.25 12.75V8.25C11.25 8.05109 11.171 7.86032 11.0303 7.71967C10.8897 7.57902 10.6989 7.5 10.5 7.5C10.3011 7.5 10.1103 7.57902 9.96967 7.71967C9.82902 7.86032 9.75 8.05109 9.75 8.25V12.75C9.75 12.9489 9.82902 13.1397 9.96967 13.2803C10.1103 13.421 10.3011 13.5 10.5 13.5Z",fill:"#9E9EA4"})],-1)]))],10,d)}}},m=o(71241);const h=(0,m.A)(v,[["__scopeId","data-v-0abce34e"]]);var g=h,y=o(81387),L=o(27599);const b={class:"entrance-delete"},k={class:"popover-content"},w={class:"confirmation-buttons text-center"},x={style:{display:"flex","justify-content":"center"},class:"overlay-custom-btn-group"};function _(e,t,o,r,a,s){const c=(0,n.g2)("AccordionFloorItem"),C=(0,n.g2)("OverlayPanel");return(0,n.uX)(),(0,n.CE)("section",{class:"info",style:(0,l.Tr)(o.inner?"flex-direction: column;":"")},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(o.floors,(o=>((0,n.uX)(),(0,n.Wv)(c,{key:o.id,floor:o,index:o.position,onDragstart:e=>s.dragStartHandler(e,o),onDragleave:e=>s.dragEndHandler(e,o.position),onDragend:(0,i.D$)((e=>s.dragEndHandler(e,o.position)),["prevent"]),onDragover:t[0]||(t[0]=(0,i.D$)((e=>s.dragOverHandler(e)),["prevent"])),onDrop:(0,i.D$)((t=>{e.$emit("dragEnd",{event:t,position:o.position,dragFloor:r.dragFloor})}),["prevent"]),onDeleteFloor:e=>s.toggle(e,o),onCopyFloor:t[1]||(t[1]=t=>e.$emit("copy:floor",t))},null,8,["floor","index","onDragstart","onDragleave","onDragend","onDrop","onDeleteFloor"])))),128)),(0,n.Lk)("div",b,[(0,n.bF)(C,{unstyled:"true",ref:"op",class:"planEditWindow3dOverlay"},{default:(0,n.k6)((()=>[t[7]||(t[7]=(0,n.Lk)("h3",{class:"popover-title"},"Удалить этаж?",-1)),(0,n.Lk)("div",k,[t[6]||(t[6]=(0,n.Lk)("p",{class:"confirmation-content",style:{display:"none"}},null,-1)),(0,n.Lk)("div",w,[(0,n.Lk)("div",x,[(0,n.Lk)("button",{onClick:t[2]||(t[2]=e=>s.handleDeleteFloor()),style:{display:"flex","align-items":"center"},class:"overlay-custom-btn overlay-custom-btn-xs overlay-custom-btn-success","data-apply":"confirmation"},t[4]||(t[4]=[(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"13",height:"13",viewBox:"0 0 26 26"},[(0,n.Lk)("path",{fill:"white",d:"M 22.566406 4.730469 L 20.773438 3.511719 C 20.277344 3.175781 19.597656 3.304688 19.265625 3.796875 L 10.476563 16.757813 L 6.4375 12.71875 C 6.015625 12.296875 5.328125 12.296875 4.90625 12.71875 L 3.371094 14.253906 C 2.949219 14.675781 2.949219 15.363281 3.371094 15.789063 L 9.582031 22 C 9.929688 22.347656 10.476563 22.613281 10.96875 22.613281 C 11.460938 22.613281 11.957031 22.304688 12.277344 21.839844 L 22.855469 6.234375 C 23.191406 5.742188 23.0625 5.066406 22.566406 4.730469 Z"})],-1),(0,n.eW)(" Да ")])),(0,n.Lk)("button",{onClick:t[3]||(t[3]=(...e)=>s.toggle&&s.toggle(...e)),style:{display:"flex","align-items":"center"},class:"overlay-custom-btn overlay-custom-btn-xs overlay-custom-btn-danger","data-dismiss":"confirmation"},t[5]||(t[5]=[(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"13",height:"13",viewBox:"0 0 26 26"},[(0,n.Lk)("path",{fill:"white",d:"M 21.734375 19.640625 L 19.636719 21.734375 C 19.253906 22.121094 18.628906 22.121094 18.242188 21.734375 L 13 16.496094 L 7.761719 21.734375 C 7.375 22.121094 6.746094 22.121094 6.363281 21.734375 L 4.265625 19.640625 C 3.878906 19.253906 3.878906 18.628906 4.265625 18.242188 L 9.503906 13 L 4.265625 7.761719 C 3.882813 7.371094 3.882813 6.742188 4.265625 6.363281 L 6.363281 4.265625 C 6.746094 3.878906 7.375 3.878906 7.761719 4.265625 L 13 9.507813 L 18.242188 4.265625 C 18.628906 3.878906 19.257813 3.878906 19.636719 4.265625 L 21.734375 6.359375 C 22.121094 6.746094 22.121094 7.375 21.738281 7.761719 L 16.496094 13 L 21.734375 18.242188 C 22.121094 18.628906 22.121094 19.253906 21.734375 19.640625 Z"})],-1),(0,n.eW)(" Нет ")]))])])])])),_:1},512)])],4)}const V={key:1},E={key:0,class:"flex"},H={class:"floorItem__alignment flex items-center"},D={class:"flex align-items-center mx-2.5"},A=["for"],M={class:"flex align-items-center"},$=["for"],Z={key:1,class:"floorItem__no-rooms"},F={class:"w-full flex flex-col border border-grey-400 border-t-0"},R=["onDragstart","onDragleave","onDragend","onDrop"],I={class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5"},O={class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5"},B={class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5"},K={class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5"},W={class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5"},j={class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5"},T={class:"flex items-center font-normal text-sm justify-evenly"},S=["onClick"],X=["onClick"],P=["onClick"],z={class:"popover-content"},N={class:"confirmation-buttons text-center"},U={style:{display:"flex","justify-content":"center"},class:"overlay-custom-btn-group"};function Q(e,t,o,r,a,s){const c=(0,n.g2)("RadioButton"),C=(0,n.g2)("MyButton"),d=(0,n.g2)("OverlayPanel");return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Lk)("article",{draggable:"true",class:"accordion",onDragstart:t[15]||(t[15]=t=>e.$emit("dragstart",t)),onDragleave:t[16]||(t[16]=t=>e.$emit("dragleave",t)),onDragend:t[17]||(t[17]=(0,i.D$)((t=>e.$emit("dragend",t)),["prevent"])),onDragover:t[18]||(t[18]=(0,i.D$)((t=>e.$emit("dragover",t)),["prevent"])),onDrop:t[19]||(t[19]=(0,i.D$)((t=>e.$emit("drop",t)),["prevent"]))},[(0,n.Lk)("header",{onClick:t[13]||(t[13]=(...e)=>s.toggleExpanded&&s.toggleExpanded(...e))},[t[29]||(t[29]=(0,n.Lk)("div",{style:{cursor:"move"},class:"floorItem__dragIcon"},[(0,n.Lk)("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M1.95829 4.83333C1.72755 4.83333 1.50199 4.90176 1.31013 5.02995C1.11827 5.15815 0.968736 5.34036 0.880434 5.55354C0.792131 5.76672 0.769028 6.0013 0.814044 6.22761C0.85906 6.45392 0.970174 6.6618 1.13334 6.82496C1.2965 6.98812 1.50438 7.09923 1.73069 7.14425C1.957 7.18927 2.19158 7.16616 2.40476 7.07786C2.61794 6.98956 2.80015 6.84002 2.92834 6.64817C3.05654 6.45631 3.12496 6.23075 3.12496 6C3.12496 5.69058 3.00204 5.39384 2.78325 5.17504C2.56446 4.95625 2.26771 4.83333 1.95829 4.83333ZM1.95829 8.91667C1.72755 8.91667 1.50199 8.98509 1.31013 9.11329C1.11827 9.24148 0.968736 9.42369 0.880434 9.63687C0.792131 9.85005 0.769028 10.0846 0.814044 10.3109C0.85906 10.5373 0.970174 10.7451 1.13334 10.9083C1.2965 11.0715 1.50438 11.1826 1.73069 11.2276C1.957 11.2726 2.19158 11.2495 2.40476 11.1612C2.61794 11.0729 2.80015 10.9234 2.92834 10.7315C3.05654 10.5396 3.12496 10.3141 3.12496 10.0833C3.12496 9.77391 3.00204 9.47717 2.78325 9.25838C2.56446 9.03958 2.26771 8.91667 1.95829 8.91667ZM6.04163 3.08333C6.27237 3.08333 6.49794 3.01491 6.68979 2.88672C6.88165 2.75852 7.03118 2.57631 7.11949 2.36313C7.20779 2.14995 7.23089 1.91537 7.18588 1.68906C7.14086 1.46275 7.02975 1.25487 6.86658 1.09171C6.70342 0.928548 6.49554 0.817434 6.26923 0.772418C6.04292 0.727402 5.80834 0.750505 5.59516 0.838808C5.38198 0.92711 5.19977 1.07664 5.07158 1.2685C4.94338 1.46036 4.87496 1.68592 4.87496 1.91667C4.87496 2.22609 4.99788 2.52283 5.21667 2.74163C5.43546 2.96042 5.73221 3.08333 6.04163 3.08333ZM1.95829 0.75C1.72755 0.75 1.50199 0.818424 1.31013 0.946619C1.11827 1.07481 0.968736 1.25702 0.880434 1.4702C0.792131 1.68338 0.769028 1.91796 0.814044 2.14427C0.85906 2.37058 0.970174 2.57846 1.13334 2.74163C1.2965 2.90479 1.50438 3.0159 1.73069 3.06092C1.957 3.10593 2.19158 3.08283 2.40476 2.99453C2.61794 2.90622 2.80015 2.75669 2.92834 2.56483C3.05654 2.37298 3.12496 2.14741 3.12496 1.91667C3.12496 1.60725 3.00204 1.3105 2.78325 1.09171C2.56446 0.872917 2.26771 0.75 1.95829 0.75ZM6.04163 8.91667C5.81088 8.91667 5.58532 8.98509 5.39346 9.11329C5.2016 9.24148 5.05207 9.42369 4.96377 9.63687C4.87546 9.85005 4.85236 10.0846 4.89738 10.3109C4.94239 10.5373 5.05351 10.7451 5.21667 10.9083C5.37983 11.0715 5.58771 11.1826 5.81402 11.2276C6.04033 11.2726 6.27491 11.2495 6.48809 11.1612C6.70127 11.0729 6.88348 10.9234 7.01167 10.7315C7.13987 10.5396 7.20829 10.3141 7.20829 10.0833C7.20829 9.77391 7.08538 9.47717 6.86658 9.25838C6.64779 9.03958 6.35105 8.91667 6.04163 8.91667ZM6.04163 4.83333C5.81088 4.83333 5.58532 4.90176 5.39346 5.02995C5.2016 5.15815 5.05207 5.34036 4.96377 5.55354C4.87546 5.76672 4.85236 6.0013 4.89738 6.22761C4.94239 6.45392 5.05351 6.6618 5.21667 6.82496C5.37983 6.98812 5.58771 7.09923 5.81402 7.14425C6.04033 7.18927 6.27491 7.16616 6.48809 7.07786C6.70127 6.98956 6.88348 6.84002 7.01167 6.64817C7.13987 6.45631 7.20829 6.23075 7.20829 6C7.20829 5.69058 7.08538 5.39384 6.86658 5.17504C6.64779 4.95625 6.35105 4.83333 6.04163 4.83333Z",fill:"#9E9EA4"})])],-1)),(0,n.Lk)("div",{class:(0,l.C4)(["accordion-title grow",{"blue-color":!r.expanded&&o.floor.rooms.length}])},[(0,n.Lk)("div",null,[(0,n.eW)(" Этаж "+(0,l.v_)(o.index)+" ",1),o.floor.rooms.length?((0,n.uX)(),(0,n.CE)("svg",{key:0,style:(0,l.Tr)(`rotate: ${r.expanded?"270deg":"90deg"};`),xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},t[22]||(t[22]=[(0,n.Lk)("path",{d:"M7.293 4.707 14.586 12l-7.293 7.293 1.414 1.414L17.414 12 8.707 3.293 7.293 4.707z"},null,-1)]),4)):((0,n.uX)(),(0,n.CE)("span",V,"(Пустой)"))])],2),o.floor.rooms.length?((0,n.uX)(),(0,n.CE)("div",E,[(0,n.Lk)("div",H,[t[23]||(t[23]=(0,n.eW)(" Выравнивание помещений на шахматке: ")),(0,n.Lk)("div",D,[(0,n.bF)(c,{modelValue:o.floor.alignment,"onUpdate:modelValue":t[0]||(t[0]=e=>o.floor.alignment=e),inputId:`left-${o.floor.id}`,name:"alignment",value:"left",onClick:t[1]||(t[1]=(0,i.D$)((()=>{}),["stop"])),onChange:t[2]||(t[2]=e=>s.changeAlignment(o.floor,"left"))},null,8,["modelValue","inputId"]),(0,n.Lk)("label",{onClick:t[3]||(t[3]=(0,i.D$)((()=>{}),["stop"])),for:`left-${o.floor.id}`,class:"ml-2"},"Слева",8,A)]),(0,n.Lk)("div",M,[(0,n.bF)(c,{modelValue:o.floor.alignment,"onUpdate:modelValue":t[4]||(t[4]=e=>o.floor.alignment=e),inputId:`right-${o.floor.id}`,name:"alignment",value:"right",onClick:t[5]||(t[5]=(0,i.D$)((()=>{}),["stop"])),onChange:t[6]||(t[6]=e=>s.changeAlignment(o.floor,"right"))},null,8,["modelValue","inputId"]),(0,n.Lk)("label",{onClick:t[7]||(t[7]=(0,i.D$)((()=>{}),["stop"])),for:`right-${o.floor.id}`,class:"ml-2"},"Справа",8,$)])]),(0,n.bF)(C,{onClick:t[8]||(t[8]=(0,i.D$)((e=>r.bus.$emit("open:add-room",o.floor)),["stop"])),theme:"green",class:"floorItem__addRoom text-sm"},{default:(0,n.k6)((()=>t[24]||(t[24]=[(0,n.Lk)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M9 1.5C7.51664 1.5 6.0666 1.93987 4.83323 2.76398C3.59986 3.58809 2.63856 4.75943 2.07091 6.12987C1.50325 7.50032 1.35472 9.00832 1.64411 10.4632C1.9335 11.918 2.64781 13.2544 3.6967 14.3033C4.7456 15.3522 6.08197 16.0665 7.53683 16.3559C8.99168 16.6453 10.4997 16.4968 11.8701 15.9291C13.2406 15.3614 14.4119 14.4001 15.236 13.1668C16.0601 11.9334 16.5 10.4834 16.5 9C16.5 8.01509 16.306 7.03982 15.9291 6.12987C15.5522 5.21993 14.9997 4.39314 14.3033 3.6967C13.6069 3.00026 12.7801 2.44781 11.8701 2.0709C10.9602 1.69399 9.98492 1.5 9 1.5ZM9 15C7.81332 15 6.65328 14.6481 5.66658 13.9888C4.67989 13.3295 3.91085 12.3925 3.45673 11.2961C3.0026 10.1997 2.88378 8.99334 3.11529 7.82946C3.3468 6.66557 3.91825 5.59647 4.75736 4.75736C5.59648 3.91824 6.66558 3.3468 7.82946 3.11529C8.99335 2.88378 10.1997 3.0026 11.2961 3.45672C12.3925 3.91085 13.3295 4.67988 13.9888 5.66658C14.6481 6.65327 15 7.81331 15 9C15 10.5913 14.3679 12.1174 13.2426 13.2426C12.1174 14.3679 10.5913 15 9 15ZM12 8.25H9.75V6C9.75 5.80109 9.67099 5.61032 9.53033 5.46967C9.38968 5.32902 9.19892 5.25 9 5.25C8.80109 5.25 8.61033 5.32902 8.46967 5.46967C8.32902 5.61032 8.25 5.80109 8.25 6V8.25H6C5.80109 8.25 5.61033 8.32902 5.46967 8.46967C5.32902 8.61032 5.25 8.80109 5.25 9C5.25 9.19891 5.32902 9.38968 5.46967 9.53033C5.61033 9.67098 5.80109 9.75 6 9.75H8.25V12C8.25 12.1989 8.32902 12.3897 8.46967 12.5303C8.61033 12.671 8.80109 12.75 9 12.75C9.19892 12.75 9.38968 12.671 9.53033 12.5303C9.67099 12.3897 9.75 12.1989 9.75 12V9.75H12C12.1989 9.75 12.3897 9.67098 12.5303 9.53033C12.671 9.38968 12.75 9.19891 12.75 9C12.75 8.80109 12.671 8.61032 12.5303 8.46967C12.3897 8.32902 12.1989 8.25 12 8.25Z",fill:"white"})],-1),(0,n.eW)(" Добавить помещение ")]))),_:1}),(0,n.bF)(C,{onClick:t[9]||(t[9]=(0,i.D$)((t=>e.$emit("copy-floor",o.floor)),["stop"])),theme:"grey-icon",class:"floorItem__copy"},{default:(0,n.k6)((()=>t[25]||(t[25]=[(0,n.Lk)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M12 15H6C5.40326 15 4.83097 14.7629 4.40901 14.341C3.98705 13.919 3.75 13.3467 3.75 12.75V5.25C3.75 5.05109 3.67098 4.86032 3.53033 4.71967C3.38968 4.57902 3.19891 4.5 3 4.5C2.80109 4.5 2.61032 4.57902 2.46967 4.71967C2.32902 4.86032 2.25 5.05109 2.25 5.25V12.75C2.25 13.7446 2.64509 14.6984 3.34835 15.4017C4.05161 16.1049 5.00544 16.5 6 16.5H12C12.1989 16.5 12.3897 16.421 12.5303 16.2803C12.671 16.1397 12.75 15.9489 12.75 15.75C12.75 15.5511 12.671 15.3603 12.5303 15.2197C12.3897 15.079 12.1989 15 12 15ZM15.75 6.705C15.7422 6.6361 15.7271 6.56822 15.705 6.5025V6.435C15.6689 6.35788 15.6208 6.287 15.5625 6.225L11.0625 1.725C11.0005 1.66666 10.9296 1.61856 10.8525 1.5825H10.785L10.545 1.5H7.5C6.90326 1.5 6.33097 1.73705 5.90901 2.15901C5.48705 2.58097 5.25 3.15326 5.25 3.75V11.25C5.25 11.8467 5.48705 12.419 5.90901 12.841C6.33097 13.2629 6.90326 13.5 7.5 13.5H13.5C14.0967 13.5 14.669 13.2629 15.091 12.841C15.5129 12.419 15.75 11.8467 15.75 11.25V6.75C15.75 6.75 15.75 6.75 15.75 6.705ZM11.25 4.0575L13.1925 6H12C11.8011 6 11.6103 5.92098 11.4697 5.78033C11.329 5.63968 11.25 5.44891 11.25 5.25V4.0575ZM14.25 11.25C14.25 11.4489 14.171 11.6397 14.0303 11.7803C13.8897 11.921 13.6989 12 13.5 12H7.5C7.30109 12 7.11032 11.921 6.96967 11.7803C6.82902 11.6397 6.75 11.4489 6.75 11.25V3.75C6.75 3.55109 6.82902 3.36032 6.96967 3.21967C7.11032 3.07902 7.30109 3 7.5 3H9.75V5.25C9.75 5.84674 9.98705 6.41903 10.409 6.84099C10.831 7.26295 11.4033 7.5 12 7.5H14.25V11.25Z",fill:"#666666"})],-1)]))),_:1}),(0,n.bF)(C,{onClick:t[10]||(t[10]=(0,i.D$)((t=>e.$emit("delete-floor",t,o.floor)),["stop"])),theme:"grey-icon",class:"floorItem__delete"},{default:(0,n.k6)((()=>t[26]||(t[26]=[(0,n.Lk)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M7.5 13.5C7.69891 13.5 7.88968 13.421 8.03033 13.2803C8.17098 13.1397 8.25 12.9489 8.25 12.75V8.25C8.25 8.05109 8.17098 7.86032 8.03033 7.71967C7.88968 7.57902 7.69891 7.5 7.5 7.5C7.30109 7.5 7.11032 7.57902 6.96967 7.71967C6.82902 7.86032 6.75 8.05109 6.75 8.25V12.75C6.75 12.9489 6.82902 13.1397 6.96967 13.2803C7.11032 13.421 7.30109 13.5 7.5 13.5ZM15 4.5H12V3.75C12 3.15326 11.7629 2.58097 11.341 2.15901C10.919 1.73705 10.3467 1.5 9.75 1.5H8.25C7.65326 1.5 7.08097 1.73705 6.65901 2.15901C6.23705 2.58097 6 3.15326 6 3.75V4.5H3C2.80109 4.5 2.61032 4.57902 2.46967 4.71967C2.32902 4.86032 2.25 5.05109 2.25 5.25C2.25 5.44891 2.32902 5.63968 2.46967 5.78033C2.61032 5.92098 2.80109 6 3 6H3.75V14.25C3.75 14.8467 3.98705 15.419 4.40901 15.841C4.83097 16.2629 5.40326 16.5 6 16.5H12C12.5967 16.5 13.169 16.2629 13.591 15.841C14.0129 15.419 14.25 14.8467 14.25 14.25V6H15C15.1989 6 15.3897 5.92098 15.5303 5.78033C15.671 5.63968 15.75 5.44891 15.75 5.25C15.75 5.05109 15.671 4.86032 15.5303 4.71967C15.3897 4.57902 15.1989 4.5 15 4.5ZM7.5 3.75C7.5 3.55109 7.57902 3.36032 7.71967 3.21967C7.86032 3.07902 8.05109 3 8.25 3H9.75C9.94891 3 10.1397 3.07902 10.2803 3.21967C10.421 3.36032 10.5 3.55109 10.5 3.75V4.5H7.5V3.75ZM12.75 14.25C12.75 14.4489 12.671 14.6397 12.5303 14.7803C12.3897 14.921 12.1989 15 12 15H6C5.80109 15 5.61032 14.921 5.46967 14.7803C5.32902 14.6397 5.25 14.4489 5.25 14.25V6H12.75V14.25ZM10.5 13.5C10.6989 13.5 10.8897 13.421 11.0303 13.2803C11.171 13.1397 11.25 12.9489 11.25 12.75V8.25C11.25 8.05109 11.171 7.86032 11.0303 7.71967C10.8897 7.57902 10.6989 7.5 10.5 7.5C10.3011 7.5 10.1103 7.57902 9.96967 7.71967C9.82902 7.86032 9.75 8.05109 9.75 8.25V12.75C9.75 12.9489 9.82902 13.1397 9.96967 13.2803C10.1103 13.421 10.3011 13.5 10.5 13.5Z",fill:"#666666"})],-1)]))),_:1})])):((0,n.uX)(),(0,n.CE)("div",Z,[t[27]||(t[27]=(0,n.eW)(" Вы можете ")),(0,n.Lk)("span",{onClick:t[11]||(t[11]=(0,i.D$)((e=>r.bus.$emit("open:add-room",o.floor)),["stop"]))},"Добавить помещение"),t[28]||(t[28]=(0,n.eW)(" или ")),(0,n.Lk)("span",{onClick:t[12]||(t[12]=(0,i.D$)((t=>e.$emit("delete-floor",t,o.floor)),["stop"]))},"Удалить этаж")]))]),(0,n.Lk)("div",{style:(0,l.Tr)(r.contentStyle),class:"content"},[(0,n.Lk)("table",{style:(0,l.Tr)(r.infoStyle),class:"w-full flex flex-col"},[t[34]||(t[34]=(0,n.Lk)("thead",{class:"w-full grid grid-cols-[repeat(6,_1fr),_66px] bg-[#F2F3F3] border border-grey-400"},[(0,n.Lk)("th",{class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5"}," Номер помещения "),(0,n.Lk)("th",{class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5"}," Кол-во комнат "),(0,n.Lk)("th",{class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5"}," Площадь, м2 "),(0,n.Lk)("th",{class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5"}," Полная цена, ₽ "),(0,n.Lk)("th",{class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5"}," Статус "),(0,n.Lk)("th",{class:"flex justify-start items-center border-r border-grey-400 font-normal text-sm p-2.5 text-start"}," Особенности планировки "),(0,n.Lk)("th",{class:"flex items-cente"})],-1)),(0,n.Lk)("tbody",F,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(o.floor.rooms,(e=>((0,n.uX)(),(0,n.CE)("tr",{draggable:!0,onDragstart:t=>s.dragStartHandler(t,e),onDragleave:t=>s.dragEndHandler(t,e.position),onDragend:(0,i.D$)((t=>s.dragEndHandler(t,e.position)),["prevent"]),onDragover:t[14]||(t[14]=(0,i.D$)((e=>s.dragOverHandler(e)),["prevent"])),onDrop:(0,i.D$)((t=>s.handleFloorDragEndOuter(e.position)),["prevent"]),class:"w-full grid grid-cols-[repeat(6,_1fr),_66px]",key:e.id},[(0,n.Lk)("td",I,[t[30]||(t[30]=(0,n.Lk)("div",{style:{cursor:"move"},class:"floorItem__dragIcon mr-2"},[(0,n.Lk)("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M1.95829 4.83333C1.72755 4.83333 1.50199 4.90176 1.31013 5.02995C1.11827 5.15815 0.968736 5.34036 0.880434 5.55354C0.792131 5.76672 0.769028 6.0013 0.814044 6.22761C0.85906 6.45392 0.970174 6.6618 1.13334 6.82496C1.2965 6.98812 1.50438 7.09923 1.73069 7.14425C1.957 7.18927 2.19158 7.16616 2.40476 7.07786C2.61794 6.98956 2.80015 6.84002 2.92834 6.64817C3.05654 6.45631 3.12496 6.23075 3.12496 6C3.12496 5.69058 3.00204 5.39384 2.78325 5.17504C2.56446 4.95625 2.26771 4.83333 1.95829 4.83333ZM1.95829 8.91667C1.72755 8.91667 1.50199 8.98509 1.31013 9.11329C1.11827 9.24148 0.968736 9.42369 0.880434 9.63687C0.792131 9.85005 0.769028 10.0846 0.814044 10.3109C0.85906 10.5373 0.970174 10.7451 1.13334 10.9083C1.2965 11.0715 1.50438 11.1826 1.73069 11.2276C1.957 11.2726 2.19158 11.2495 2.40476 11.1612C2.61794 11.0729 2.80015 10.9234 2.92834 10.7315C3.05654 10.5396 3.12496 10.3141 3.12496 10.0833C3.12496 9.77391 3.00204 9.47717 2.78325 9.25838C2.56446 9.03958 2.26771 8.91667 1.95829 8.91667ZM6.04163 3.08333C6.27237 3.08333 6.49794 3.01491 6.68979 2.88672C6.88165 2.75852 7.03118 2.57631 7.11949 2.36313C7.20779 2.14995 7.23089 1.91537 7.18588 1.68906C7.14086 1.46275 7.02975 1.25487 6.86658 1.09171C6.70342 0.928548 6.49554 0.817434 6.26923 0.772418C6.04292 0.727402 5.80834 0.750505 5.59516 0.838808C5.38198 0.92711 5.19977 1.07664 5.07158 1.2685C4.94338 1.46036 4.87496 1.68592 4.87496 1.91667C4.87496 2.22609 4.99788 2.52283 5.21667 2.74163C5.43546 2.96042 5.73221 3.08333 6.04163 3.08333ZM1.95829 0.75C1.72755 0.75 1.50199 0.818424 1.31013 0.946619C1.11827 1.07481 0.968736 1.25702 0.880434 1.4702C0.792131 1.68338 0.769028 1.91796 0.814044 2.14427C0.85906 2.37058 0.970174 2.57846 1.13334 2.74163C1.2965 2.90479 1.50438 3.0159 1.73069 3.06092C1.957 3.10593 2.19158 3.08283 2.40476 2.99453C2.61794 2.90622 2.80015 2.75669 2.92834 2.56483C3.05654 2.37298 3.12496 2.14741 3.12496 1.91667C3.12496 1.60725 3.00204 1.3105 2.78325 1.09171C2.56446 0.872917 2.26771 0.75 1.95829 0.75ZM6.04163 8.91667C5.81088 8.91667 5.58532 8.98509 5.39346 9.11329C5.2016 9.24148 5.05207 9.42369 4.96377 9.63687C4.87546 9.85005 4.85236 10.0846 4.89738 10.3109C4.94239 10.5373 5.05351 10.7451 5.21667 10.9083C5.37983 11.0715 5.58771 11.1826 5.81402 11.2276C6.04033 11.2726 6.27491 11.2495 6.48809 11.1612C6.70127 11.0729 6.88348 10.9234 7.01167 10.7315C7.13987 10.5396 7.20829 10.3141 7.20829 10.0833C7.20829 9.77391 7.08538 9.47717 6.86658 9.25838C6.64779 9.03958 6.35105 8.91667 6.04163 8.91667ZM6.04163 4.83333C5.81088 4.83333 5.58532 4.90176 5.39346 5.02995C5.2016 5.15815 5.05207 5.34036 4.96377 5.55354C4.87546 5.76672 4.85236 6.0013 4.89738 6.22761C4.94239 6.45392 5.05351 6.6618 5.21667 6.82496C5.37983 6.98812 5.58771 7.09923 5.81402 7.14425C6.04033 7.18927 6.27491 7.16616 6.48809 7.07786C6.70127 6.98956 6.88348 6.84002 7.01167 6.64817C7.13987 6.45631 7.20829 6.23075 7.20829 6C7.20829 5.69058 7.08538 5.39384 6.86658 5.17504C6.64779 4.95625 6.35105 4.83333 6.04163 4.83333Z",fill:"#9E9EA4"})])],-1)),(0,n.eW)(" "+(0,l.v_)(r.room_types[e.type])+" №: ",1),(0,n.Lk)("span",null,(0,l.v_)(e.number),1)]),(0,n.Lk)("td",O,[(0,n.Lk)("span",null,(0,l.v_)(e.rooms_count),1)]),(0,n.Lk)("td",B,[(0,n.Lk)("span",null,(0,l.v_)(e.area),1)]),(0,n.Lk)("td",K,[(0,n.Lk)("span",null,(0,l.v_)(r.formatNumber(e.total_amount)),1)]),(0,n.Lk)("td",W,[(0,n.Lk)("span",null,(0,l.v_)(e.complex_status_info.status_name),1)]),(0,n.Lk)("td",j,[(0,n.Lk)("span",null,(0,l.v_)(r.layout_futures[e.layout_feature]),1)]),(0,n.Lk)("td",T,[(0,n.Lk)("button",{onClick:(0,i.D$)((t=>r.bus.$emit("open:copy-room",o.floor,e)),["stop"])},t[31]||(t[31]=[(0,n.Lk)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M12 15H6C5.40326 15 4.83097 14.7629 4.40901 14.341C3.98705 13.919 3.75 13.3467 3.75 12.75V5.25C3.75 5.05109 3.67098 4.86032 3.53033 4.71967C3.38968 4.57902 3.19891 4.5 3 4.5C2.80109 4.5 2.61032 4.57902 2.46967 4.71967C2.32902 4.86032 2.25 5.05109 2.25 5.25V12.75C2.25 13.7446 2.64509 14.6984 3.34835 15.4017C4.05161 16.1049 5.00544 16.5 6 16.5H12C12.1989 16.5 12.3897 16.421 12.5303 16.2803C12.671 16.1397 12.75 15.9489 12.75 15.75C12.75 15.5511 12.671 15.3603 12.5303 15.2197C12.3897 15.079 12.1989 15 12 15ZM15.75 6.705C15.7422 6.6361 15.7271 6.56822 15.705 6.5025V6.435C15.6689 6.35788 15.6208 6.287 15.5625 6.225L11.0625 1.725C11.0005 1.66666 10.9296 1.61856 10.8525 1.5825H10.785L10.545 1.5H7.5C6.90326 1.5 6.33097 1.73705 5.90901 2.15901C5.48705 2.58097 5.25 3.15326 5.25 3.75V11.25C5.25 11.8467 5.48705 12.419 5.90901 12.841C6.33097 13.2629 6.90326 13.5 7.5 13.5H13.5C14.0967 13.5 14.669 13.2629 15.091 12.841C15.5129 12.419 15.75 11.8467 15.75 11.25V6.75C15.75 6.75 15.75 6.75 15.75 6.705ZM11.25 4.0575L13.1925 6H12C11.8011 6 11.6103 5.92098 11.4697 5.78033C11.329 5.63968 11.25 5.44891 11.25 5.25V4.0575ZM14.25 11.25C14.25 11.4489 14.171 11.6397 14.0303 11.7803C13.8897 11.921 13.6989 12 13.5 12H7.5C7.30109 12 7.11032 11.921 6.96967 11.7803C6.82902 11.6397 6.75 11.4489 6.75 11.25V3.75C6.75 3.55109 6.82902 3.36032 6.96967 3.21967C7.11032 3.07902 7.30109 3 7.5 3H9.75V5.25C9.75 5.84674 9.98705 6.41903 10.409 6.84099C10.831 7.26295 11.4033 7.5 12 7.5H14.25V11.25Z",fill:"#666666"})],-1)]),8,S),(0,n.Lk)("button",{onClick:(0,i.D$)((t=>r.bus.$emit("open:edit-room",o.floor,e)),["stop"])},t[32]||(t[32]=[(0,n.Lk)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M15.75 8.99995C15.5511 8.99995 15.3603 9.07897 15.2197 9.21962C15.079 9.36028 15 9.55104 15 9.74995V14.25C15 14.4489 14.921 14.6396 14.7803 14.7803C14.6397 14.9209 14.4489 15 14.25 15H3.75C3.55109 15 3.36032 14.9209 3.21967 14.7803C3.07902 14.6396 3 14.4489 3 14.25V3.74995C3 3.55104 3.07902 3.36028 3.21967 3.21962C3.36032 3.07897 3.55109 2.99995 3.75 2.99995H8.25C8.44891 2.99995 8.63968 2.92094 8.78033 2.78028C8.92098 2.63963 9 2.44887 9 2.24995C9 2.05104 8.92098 1.86028 8.78033 1.71962C8.63968 1.57897 8.44891 1.49995 8.25 1.49995H3.75C3.15326 1.49995 2.58097 1.73701 2.15901 2.15896C1.73705 2.58092 1.5 3.15322 1.5 3.74995V14.25C1.5 14.8467 1.73705 15.419 2.15901 15.8409C2.58097 16.2629 3.15326 16.5 3.75 16.5H14.25C14.8467 16.5 15.419 16.2629 15.841 15.8409C16.2629 15.419 16.5 14.8467 16.5 14.25V9.74995C16.5 9.55104 16.421 9.36028 16.2803 9.21962C16.1397 9.07897 15.9489 8.99995 15.75 8.99995ZM4.5 9.56995V12.75C4.5 12.9489 4.57902 13.1396 4.71967 13.2803C4.86032 13.4209 5.05109 13.5 5.25 13.5H8.43C8.5287 13.5005 8.62655 13.4816 8.71793 13.4443C8.80931 13.407 8.89242 13.352 8.9625 13.2825L14.1525 8.08495L16.2825 5.99995C16.3528 5.93023 16.4086 5.84728 16.4467 5.75589C16.4847 5.66449 16.5043 5.56646 16.5043 5.46745C16.5043 5.36845 16.4847 5.27042 16.4467 5.17902C16.4086 5.08763 16.3528 5.00468 16.2825 4.93495L13.1025 1.71745C13.0328 1.64716 12.9498 1.59136 12.8584 1.55329C12.767 1.51521 12.669 1.49561 12.57 1.49561C12.471 1.49561 12.373 1.51521 12.2816 1.55329C12.1902 1.59136 12.1072 1.64716 12.0375 1.71745L9.9225 3.83995L4.7175 9.03745C4.64799 9.10753 4.59299 9.19065 4.55567 9.28202C4.51835 9.3734 4.49943 9.47125 4.5 9.56995ZM12.57 3.30745L14.6925 5.42995L13.6275 6.49495L11.505 4.37245L12.57 3.30745ZM6 9.87745L10.4475 5.42995L12.57 7.55245L8.1225 12H6V9.87745Z",fill:"#9E9EA4"})],-1)]),8,X),(0,n.Lk)("button",{onClick:(0,i.D$)((t=>s.toggle(t,e)),["stop"])},t[33]||(t[33]=[(0,n.Lk)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M7.5 13.5C7.69891 13.5 7.88968 13.421 8.03033 13.2803C8.17098 13.1397 8.25 12.9489 8.25 12.75V8.25C8.25 8.05109 8.17098 7.86032 8.03033 7.71967C7.88968 7.57902 7.69891 7.5 7.5 7.5C7.30109 7.5 7.11032 7.57902 6.96967 7.71967C6.82902 7.86032 6.75 8.05109 6.75 8.25V12.75C6.75 12.9489 6.82902 13.1397 6.96967 13.2803C7.11032 13.421 7.30109 13.5 7.5 13.5ZM15 4.5H12V3.75C12 3.15326 11.7629 2.58097 11.341 2.15901C10.919 1.73705 10.3467 1.5 9.75 1.5H8.25C7.65326 1.5 7.08097 1.73705 6.65901 2.15901C6.23705 2.58097 6 3.15326 6 3.75V4.5H3C2.80109 4.5 2.61032 4.57902 2.46967 4.71967C2.32902 4.86032 2.25 5.05109 2.25 5.25C2.25 5.44891 2.32902 5.63968 2.46967 5.78033C2.61032 5.92098 2.80109 6 3 6H3.75V14.25C3.75 14.8467 3.98705 15.419 4.40901 15.841C4.83097 16.2629 5.40326 16.5 6 16.5H12C12.5967 16.5 13.169 16.2629 13.591 15.841C14.0129 15.419 14.25 14.8467 14.25 14.25V6H15C15.1989 6 15.3897 5.92098 15.5303 5.78033C15.671 5.63968 15.75 5.44891 15.75 5.25C15.75 5.05109 15.671 4.86032 15.5303 4.71967C15.3897 4.57902 15.1989 4.5 15 4.5ZM7.5 3.75C7.5 3.55109 7.57902 3.36032 7.71967 3.21967C7.86032 3.07902 8.05109 3 8.25 3H9.75C9.94891 3 10.1397 3.07902 10.2803 3.21967C10.421 3.36032 10.5 3.55109 10.5 3.75V4.5H7.5V3.75ZM12.75 14.25C12.75 14.4489 12.671 14.6397 12.5303 14.7803C12.3897 14.921 12.1989 15 12 15H6C5.80109 15 5.61032 14.921 5.46967 14.7803C5.32902 14.6397 5.25 14.4489 5.25 14.25V6H12.75V14.25ZM10.5 13.5C10.6989 13.5 10.8897 13.421 11.0303 13.2803C11.171 13.1397 11.25 12.9489 11.25 12.75V8.25C11.25 8.05109 11.171 7.86032 11.0303 7.71967C10.8897 7.57902 10.6989 7.5 10.5 7.5C10.3011 7.5 10.1103 7.57902 9.96967 7.71967C9.82902 7.86032 9.75 8.05109 9.75 8.25V12.75C9.75 12.9489 9.82902 13.1397 9.96967 13.2803C10.1103 13.421 10.3011 13.5 10.5 13.5Z",fill:"#9E9EA4"})],-1)]),8,P)])],40,R)))),128))])],4)],4)],32),(0,n.bF)(d,{unstyled:"true",ref:"op",class:"planEditWindow3dOverlay"},{default:(0,n.k6)((()=>[t[38]||(t[38]=(0,n.Lk)("h3",{class:"popover-title"},"Удалить помещениe?",-1)),(0,n.Lk)("div",z,[t[37]||(t[37]=(0,n.Lk)("p",{class:"confirmation-content",style:{display:"none"}},null,-1)),(0,n.Lk)("div",N,[(0,n.Lk)("div",U,[(0,n.Lk)("button",{onClick:t[20]||(t[20]=e=>s.handleDeleteRoom()),style:{display:"flex","align-items":"center"},class:"overlay-custom-btn overlay-custom-btn-xs overlay-custom-btn-success","data-apply":"confirmation"},t[35]||(t[35]=[(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"13",height:"13",viewBox:"0 0 26 26"},[(0,n.Lk)("path",{fill:"white",d:"M 22.566406 4.730469 L 20.773438 3.511719 C 20.277344 3.175781 19.597656 3.304688 19.265625 3.796875 L 10.476563 16.757813 L 6.4375 12.71875 C 6.015625 12.296875 5.328125 12.296875 4.90625 12.71875 L 3.371094 14.253906 C 2.949219 14.675781 2.949219 15.363281 3.371094 15.789063 L 9.582031 22 C 9.929688 22.347656 10.476563 22.613281 10.96875 22.613281 C 11.460938 22.613281 11.957031 22.304688 12.277344 21.839844 L 22.855469 6.234375 C 23.191406 5.742188 23.0625 5.066406 22.566406 4.730469 Z"})],-1),(0,n.eW)(" Да ")])),(0,n.Lk)("button",{onClick:t[21]||(t[21]=(...e)=>s.toggle&&s.toggle(...e)),style:{display:"flex","align-items":"center"},class:"overlay-custom-btn overlay-custom-btn-xs overlay-custom-btn-danger","data-dismiss":"confirmation"},t[36]||(t[36]=[(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"13",height:"13",viewBox:"0 0 26 26"},[(0,n.Lk)("path",{fill:"white",d:"M 21.734375 19.640625 L 19.636719 21.734375 C 19.253906 22.121094 18.628906 22.121094 18.242188 21.734375 L 13 16.496094 L 7.761719 21.734375 C 7.375 22.121094 6.746094 22.121094 6.363281 21.734375 L 4.265625 19.640625 C 3.878906 19.253906 3.878906 18.628906 4.265625 18.242188 L 9.503906 13 L 4.265625 7.761719 C 3.882813 7.371094 3.882813 6.742188 4.265625 6.363281 L 6.363281 4.265625 C 6.746094 3.878906 7.375 3.878906 7.761719 4.265625 L 13 9.507813 L 18.242188 4.265625 C 18.628906 3.878906 19.257813 3.878906 19.636719 4.265625 L 21.734375 6.359375 C 22.121094 6.746094 22.121094 7.375 21.738281 7.761719 L 16.496094 13 L 21.734375 18.242188 C 22.121094 18.628906 22.121094 19.253906 21.734375 19.640625 Z"})],-1),(0,n.eW)(" Нет ")]))])])])])),_:1},512)],64)}var q=o(58713),Y=o(6017),G=o(82815),J={name:"AccordionItem",components:{RadioButton:q.A,MyButton:C.A,OverlayPanel:L.A},props:{floor:Object,index:Number},setup(e){const t=(0,r.KR)(!1),o=(0,r.KR)(1),l=(0,n.EW)((()=>({"max-height":t.value?"unset":0}))),i=(0,n.EW)((()=>({display:t.value?"block":"none"}))),a=(0,r.KR)();return{expanded:t,contentStyle:l,infoStyle:i,bus:Y.A,layout_futures:G.eS,room_types:G.yI,dragRoom:o,roomToDelete:a,formatNumber:G.ZV}},methods:{async changeFloorAlignment(e,t){await s.A.updateFloor(e,{alignment:t})},changeAlignment(e,t){this.changeFloorAlignment(e.id,t).then((()=>{e.alignment=t}))},async deleteRoom(e){return await s.A.deleteRoom(e.id).then((()=>{this.floor.rooms=this.floor.rooms.filter((t=>t.id!==e.id)),this.floor.rooms.length||(this.expanded=!1)}))},toggleExpanded(){this.floor.rooms.length&&(this.expanded=!this.expanded)},dragStartHandler(e,t){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),this.dragRoom=t},dragEndHandler(e){e.target.style.background="#ffffff"},dragOverHandler(e){e.target.style.background="#F2EED6"},handleFloorDragEndOuter(e){this.dragRoom.position>0&&(this.floor.rooms=this.floor.rooms.map((t=>t.position===e?{...t,position:this.dragRoom.position}:t.position===this.dragRoom.position?{...t,position:e}:t)).sort(((e,t)=>e.position>t.position?1:-1))),event.target.style.background="#fff"},updateRoom(e){return s.A.updateRoom(e)},toggle(e,t){t&&(this.roomToDelete=t),this.$refs.op.toggle(e)},handleDeleteRoom(){this.deleteRoom(this.roomToDelete),this.toggle()}},watch:{"floor.rooms":function(e){e.forEach(((e,t)=>{this.updateRoom({position:t+1,id:e.id})}))}}};const ee=(0,m.A)(J,[["render",Q],["__scopeId","data-v-1594782e"]]);var te=ee,oe={name:"Accordion",components:{AccordionFloorItem:te,OverlayPanel:L.A},props:{floors:Array,inner:Boolean},setup(){const e=(0,r.KR)(1),t=(0,r.KR)();return{dragFloor:e,floorToDelete:t}},methods:{dragStartHandler(e,t){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),this.dragFloor=t},dragEndHandler(e){e.target.style.background="#ffffff"},dragOverHandler(e){e.target.style.background="#F2EED6"},toggle(e,t){t&&(this.floorToDelete=t),this.$refs.op.toggle(e)},handleDeleteFloor(){this.$emit("delete:floor",this.floorToDelete),this.toggle()}}};const ne=(0,m.A)(oe,[["render",_],["__scopeId","data-v-ccf00010"]]);var le=ne,re=o(64841),ie=o(368),ae=o(99428),se=o(17760);const ce={class:"m-2 mt-10 flex flex-wrap gap-3"},Ce={class:"flex align-items-center"},de={class:"flex align-items-center"},ue={key:0,class:"form copyRoom__form"},pe={class:"form__item"},fe={class:"form__item"},ve={style:{display:"flex",gap:"8px"}},me={style:{display:"flex","flex-direction":"column",gap:"8px","min-width":"110px","justify-content":"end"}},he={class:"error-msg"},ge={style:{display:"flex","flex-direction":"column",gap:"8px","min-width":"110px","justify-content":"end"}},ye={class:"error-msg"},Le={class:"copy-btn-container"};var be={__name:"formCopyRoom",props:{isOpen:Boolean,room:Object,maxFloor:Number,minFloor:Number},emits:["copy:room","closeModel"],setup(e,{emit:t}){const o=e,i=(0,r.KR)("default"),a=t,s=()=>{d.copies_count=null,d.from_floor=null,d.to_floor=null,i.value="default",v.value.$reset()},c=()=>{a("closeModel"),s()},d=(0,r.Kh)({copies_count:null,from_floor:null,to_floor:null}),u=e=>isNaN(d.to_floor)?e<=o.maxFloor:e<=d.to_floor,p=e=>isNaN(d.from_floor)?e>=o.minFloor:e>=d.from_floor,f=(0,r.Kh)({from_floor:{required:ae._$.withMessage("Поле обязательное",ae.mw),minValue:ae._$.withMessage((({})=>`Минимальный этаж должен быть не меньше чем ${o.minFloor}`),ae._$.withAsync((e=>e>=o.minFloor))),maxValue:ae._$.withMessage((({})=>`Максимальный этаж должен быть не болше чем ${null===d.to_floor||d.to_floor>=o.maxFloor?o.maxFloor:d.to_floor}`),ae._$.withAsync(u))},to_floor:{required:ae._$.withMessage("Поле обязательное",ae.mw),minValue:ae._$.withMessage((({})=>`Минимальный этаж должен быть не меньше чем ${null===d.from_floor||d.from_floor<=o.minFloor?o.minFloor:d.from_floor}`),ae._$.withAsync(p)),maxValue:ae._$.withMessage((({})=>`Максимальный этаж должен быть не болше чем ${o.maxFloor}`),ae._$.withAsync((e=>e<=o.maxFloor)))}}),v=(0,se.Ay)(f,d),m=()=>{"default"===i.value?(a("copy:room",o.room,{},i.value),s()):v.value.$validate().then((e=>{e&&(a("copy:room",o.room,{from:d.from_floor,to:d.to_floor,count:d.copies_count}),s())}))};return(t,o)=>((0,n.uX)(),(0,n.Wv)(re.A,{class:(0,l.C4)(["copyRoom",e.isOpen?"open":""]),title:"Копирование помещения",onCloseModel:c},{default:(0,n.k6)((()=>[(0,n.Lk)("div",ce,[(0,n.Lk)("div",Ce,[(0,n.bF)((0,r.R1)(q.A),{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value=e),inputId:"default-copy",name:"pizza",value:"default"},null,8,["modelValue"]),o[5]||(o[5]=(0,n.Lk)("label",{for:"default-copy",class:"ml-2"},"Простое копирование",-1))]),(0,n.Lk)("div",de,[(0,n.bF)((0,r.R1)(q.A),{modelValue:i.value,"onUpdate:modelValue":o[1]||(o[1]=e=>i.value=e),inputId:"advanced-copy",name:"pizza",value:"advanced"},null,8,["modelValue"]),o[6]||(o[6]=(0,n.Lk)("label",{for:"advanced-copy",class:"ml-2"},"Многоэтажное копирование",-1))])]),"advanced"===i.value?((0,n.uX)(),(0,n.CE)("form",ue,[(0,n.Lk)("div",pe,[o[7]||(o[7]=(0,n.Lk)("label",{for:"copies-count"},[(0,n.eW)("Количество копий на 1 этаж"),(0,n.Lk)("span",null,"*")],-1)),(0,n.bF)((0,r.R1)(ie.A),{modelValue:d.copies_count,"onUpdate:modelValue":o[2]||(o[2]=e=>d.copies_count=e),required:"",min:"0",id:"copies-count",placeholder:"Количество копий на 1 этаж"},null,8,["modelValue"])]),(0,n.Lk)("div",fe,[o[10]||(o[10]=(0,n.Lk)("label",{for:"copies-count"},[(0,n.eW)("Выберите этажы "),(0,n.Lk)("span",null,"*")],-1)),(0,n.Lk)("div",ve,[(0,n.Lk)("div",me,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)((0,r.R1)(v).from_floor.$errors,(e=>((0,n.uX)(),(0,n.CE)("div",{class:"input-errors",key:e.$uid},[(0,n.Lk)("div",he,(0,l.v_)(e.$message),1)])))),128)),(0,n.Lk)("div",null,[o[8]||(o[8]=(0,n.Lk)("label",{for:"copies-count"},[(0,n.eW)("От "),(0,n.Lk)("span",null,"*")],-1)),(0,n.bF)((0,r.R1)(ie.A),{modelValue:d.from_floor,"onUpdate:modelValue":o[3]||(o[3]=e=>d.from_floor=e),required:"",id:"copies-count",style:{width:"75px"}},null,8,["modelValue"])])]),(0,n.Lk)("div",ge,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)((0,r.R1)(v).to_floor.$errors,(e=>((0,n.uX)(),(0,n.CE)("div",{class:"input-errors",key:e.$uid},[(0,n.Lk)("div",ye,(0,l.v_)(e.$message),1)])))),128)),(0,n.Lk)("div",null,[o[9]||(o[9]=(0,n.Lk)("label",{for:"copies-count"},[(0,n.eW)("До "),(0,n.Lk)("span",null,"*")],-1)),(0,n.bF)((0,r.R1)(ie.A),{modelValue:d.to_floor,"onUpdate:modelValue":o[4]||(o[4]=e=>d.to_floor=e),required:"",id:"copies-count",style:{width:"75px"}},null,8,["modelValue"])])])])])])):(0,n.Q3)("",!0)])),formBtns:(0,n.k6)((()=>[(0,n.Lk)("div",Le,[(0,n.bF)(C.A,{theme:"green",class:"submit mt-7.5",onClick:m,disabled:(0,r.R1)(v).$error},{default:(0,n.k6)((()=>o[11]||(o[11]=[(0,n.eW)("Копировать")]))),_:1},8,["disabled"])])])),_:1},8,["class"]))}};const ke=(0,m.A)(be,[["__scopeId","data-v-20f2ef67"]]);var we=ke;const xe={key:0,class:"entranceList"},_e={class:"entranceList__head flex flex-row items-center border-b border-grey-400"},Ve={class:"entranceList__body mt-7.5 w-full"},Ee={class:"entranceList__aboveground pb-7.5 border-b-8 border-grey-100 w-full"},He={class:"entranceList__underground pt-7.5"},De={class:"entrance-delete"},Ae={class:"popover-content"},Me={class:"confirmation-buttons text-center"},$e={style:{display:"flex","justify-content":"center"},class:"overlay-custom-btn-group"},Ze={key:1,class:"loader-div"};var Fe={__name:"entranceList",setup(e){const t=(0,r.KR)(!1),o=(0,r.KR)(),l=(e,t)=>{t&&(V.value=t),o.value.toggle(e)},d=(0,y.lq)(),u=d.params.house_id,{entranceList:p,sortedEntranceList:f,entrancesLoader:v,addNewEntrance:m,updateTitle:h,getEntranceList:b,updateEntrance:k,deleteEntrance:w}=c(),x=async e=>{const t=await m(e);_.value=t},_=(0,r.KR)(null),V=(0,r.KR)(null),E=(0,r.KR)([]),H=(0,r.KR)([]),D=(0,r.KR)(!1),A=(0,r.KR)(null),M=(0,r.KR)(null),$=()=>{t.value=!1,A.value=null,M.value=null};Y.A.$on("open:copy-room",((e,o)=>{A.value=e,M.value=o,t.value=!0}));const Z=()=>{w(V.value.id),l(!1),V.value=null},F=(0,n.EW)((()=>_.value?Math.max(..._.value.floors.map((e=>e.position))):0)),R=(0,n.EW)((()=>_.value?Math.min(..._.value.floors.map((e=>e.position))):0)),I=(e,{from:t,to:o,count:n},l)=>{if("default"==l){const t=_.value.floors.find((t=>t.id==e.floor_id));s.A.copyRoom(e.id,{floor_id:e.floor_id,position:t.rooms.length+1}).then((e=>{e.data&&t&&t.rooms.push(e.data)})).finally((()=>$()))}else{const l=_.value.floors.filter((e=>e.position>=t&&e.position<=o));s.A.copyRoom(e.id,{copies_count:n,floors_with_position:l.map((e=>({id:e.id,position:e.rooms.length+1})))}).then((e=>{e.data&&Object.entries(e.data).forEach((([e,t])=>{const o=_.value.floors.find((t=>t.id==e));o&&o.rooms.push(...t)}))})).finally((()=>$()))}},O=({event:e,position:t,dragFloor:o})=>{D.value=!0,o.position>0&&(U.value=U.value.map((e=>e.position===t?{...e,position:o.position}:e.position===o.position?{...e,position:t}:e))),e.target.style.background="#fff"},B=({event:e,position:t,dragFloor:o})=>{o.position<0&&(Q.value=Q.value.map((e=>e.position===t?{...e,position:o.position}:e.position===o.position?{...e,position:t}:e)),e.target.style.background="#fff")},K=(0,r.KR)(1),W=(e,t)=>{e.dataTransfer&&(e.dataTransfer.dropEffect="move"),K.value=t},j=(e,t)=>{e.target.style.background="#ffffff"},T=e=>{e.target.style.background="#F2EED6"},S=(e,t)=>{p.value=p.value.map((e=>e.position===t?{...e,position:K.value}:e.position===K.value?{...e,position:t}:e)),e.target.style.background="#ffffff"},X=async({floor_id:e,position:t})=>await s.A.updateFloor(e,{position:t}).then((()=>{D.value=!1})),P=async e=>{s.A.createFloor(_.value.id,e).then((e=>{e.data.id&&_.value.floors.push(e.data)}))},z=e=>{D.value=!0,s.A.deleteFloor(e.id).then((()=>{_.value.floors=_.value.floors.filter((t=>t.id!==e.id))}))},N=(e,t)=>{s.A.copyFloor(e.id,t).then((e=>{_.value.floors.push(e.data)}))};(0,n.sV)((()=>{b(u).then((()=>{_.value=p.value.length?p.value[0]:null}))}));const U=(0,n.EW)({get(){return H.value.sort(((e,t)=>e.position>t.position?1:-1))},set(e){H.value=e}}),Q=(0,n.EW)({get(){return E.value.sort(((e,t)=>e.position<t.position?1:-1))},set(e){E.value=e}}),q=(0,n.EW)((()=>_.value?_.value.floors.length:0));return(0,n.wB)([_,q],(()=>{U.value=_.value.floors.filter((e=>e.position>0)),Q.value=_.value.floors.filter((e=>e.position<0))})),(0,n.wB)((()=>U),((e,t)=>{!D.value||t.value.length&&e.value.length!==t.value.length||(U.value.forEach(((e,t)=>{e.position=t+1,X({floor_id:e.id,position:e.position})})),D.value=!1)}),{deep:!0}),(0,n.wB)((()=>Q),((e,t)=>{!D.value||e.value.length&&t.value.length!==e.value.length||(Q.value.forEach(((e,t)=>{e.position=0-(t+1),X({floor_id:e.id,position:e.position})})),D.value=!1)}),{deep:!0}),(e,s)=>((0,n.uX)(),(0,n.CE)(n.FK,null,[(0,r.R1)(v)?((0,n.uX)(),(0,n.CE)("div",Ze,s[14]||(s[14]=[(0,n.Lk)("img",{src:a},null,-1)]))):((0,n.uX)(),(0,n.CE)("div",xe,[(0,n.Lk)("div",_e,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)((0,r.R1)(f),(e=>((0,n.uX)(),(0,n.Wv)(g,{key:e.name,title:e.name,active:e.id===_.value?.id,"onTab:click":t=>_.value=e,onDragstart:t=>W(t,e.position),onDragleave:t=>j(t,e.position),onDragend:(0,i.D$)((t=>j(t,e.position)),["prevent"]),onDragover:s[0]||(s[0]=(0,i.D$)((e=>T(e)),["prevent"])),onDrop:(0,i.D$)((t=>S(t,e.position)),["prevent"]),"onUpdate:title":t=>(0,r.R1)(h)(e.id,t),"onDelete:entrance":t=>l(t,e)},null,8,["title","active","onTab:click","onDragstart","onDragleave","onDragend","onDrop","onUpdate:title","onDelete:entrance"])))),128)),(0,n.Lk)("button",{class:"entranceList__addBtn",onClick:s[1]||(s[1]=e=>x((0,r.R1)(u)))},s[7]||(s[7]=[(0,n.Lk)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M11.6445 1.21826H10.3555V20.7841H11.6445V1.21826Z",fill:"#4CAF50"}),(0,n.Lk)("path",{d:"M20.7836 10.3555H1.21777V11.6445H20.7836V10.3555Z",fill:"#4CAF50"})],-1),(0,n.eW)(" Добавить подъезд ")]))]),(0,n.Lk)("div",Ve,[0!==(0,r.R1)(p).length?((0,n.uX)(),(0,n.CE)(n.FK,{key:0},[(0,n.Lk)("div",Ee,[(0,n.bF)(C.A,{theme:"green",class:"mb-7.5",onClick:s[2]||(s[2]=e=>P({position:U.value.length+1}))},{default:(0,n.k6)((()=>s[8]||(s[8]=[(0,n.Lk)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M14.25 14.9999H3.75C3.55109 14.9999 3.36032 15.0789 3.21967 15.2196C3.07902 15.3602 3 15.551 3 15.7499C3 15.9488 3.07902 16.1396 3.21967 16.2803C3.36032 16.4209 3.55109 16.4999 3.75 16.4999H14.25C14.4489 16.4999 14.6397 16.4209 14.7803 16.2803C14.921 16.1396 15 15.9488 15 15.7499C15 15.551 14.921 15.3602 14.7803 15.2196C14.6397 15.0789 14.4489 14.9999 14.25 14.9999ZM6.5325 5.78242L8.25 4.05742V12.7499C8.25 12.9488 8.32902 13.1396 8.46967 13.2803C8.61032 13.4209 8.80109 13.4999 9 13.4999C9.19891 13.4999 9.38968 13.4209 9.53033 13.2803C9.67098 13.1396 9.75 12.9488 9.75 12.7499V4.05742L11.4675 5.78242C11.5372 5.85272 11.6202 5.90851 11.7116 5.94659C11.803 5.98467 11.901 6.00427 12 6.00427C12.099 6.00427 12.197 5.98467 12.2884 5.94659C12.3798 5.90851 12.4628 5.85272 12.5325 5.78242C12.6028 5.7127 12.6586 5.62975 12.6967 5.53835C12.7347 5.44696 12.7543 5.34893 12.7543 5.24992C12.7543 5.15091 12.7347 5.05288 12.6967 4.96149C12.6586 4.8701 12.6028 4.78714 12.5325 4.71742L9.5325 1.71742C9.46117 1.64914 9.37706 1.59562 9.285 1.55992C9.1024 1.48491 8.8976 1.48491 8.715 1.55992C8.62294 1.59562 8.53883 1.64914 8.4675 1.71742L5.4675 4.71742C5.39757 4.78735 5.3421 4.87037 5.30426 4.96174C5.26641 5.0531 5.24693 5.15103 5.24693 5.24992C5.24693 5.34882 5.26641 5.44674 5.30426 5.53811C5.3421 5.62948 5.39757 5.71249 5.4675 5.78242C5.53743 5.85235 5.62045 5.90782 5.71181 5.94567C5.80318 5.98351 5.90111 6.00299 6 6.00299C6.09889 6.00299 6.19682 5.98351 6.28819 5.94567C6.37955 5.90782 6.46257 5.85235 6.5325 5.78242Z",fill:"white"})],-1),(0,n.eW)(" Добавить надземный этаж ")]))),_:1}),_.value?((0,n.uX)(),(0,n.Wv)(le,{key:0,floors:U.value,onDragEnd:O,"onDelete:floor":z,"onCopy:floor":s[3]||(s[3]=e=>N(e,U.value.length+1))},null,8,["floors"])):(0,n.Q3)("",!0)]),(0,n.Lk)("div",He,[(0,n.bF)(C.A,{theme:"green",class:"mb-7.5",onClick:s[4]||(s[4]=e=>P({position:-(Q.value.length+1)}))},{default:(0,n.k6)((()=>s[9]||(s[9]=[(0,n.Lk)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,n.Lk)("path",{d:"M11.4675 12.2175L9.75 13.9425V5.25C9.75 5.05109 9.67098 4.86032 9.53033 4.71967C9.38968 4.57902 9.19891 4.5 9 4.5C8.80109 4.5 8.61032 4.57902 8.46967 4.71967C8.32902 4.86032 8.25 5.05109 8.25 5.25V13.9425L6.5325 12.2175C6.39127 12.0763 6.19973 11.9969 6 11.9969C5.80027 11.9969 5.60873 12.0763 5.4675 12.2175C5.32627 12.3587 5.24693 12.5503 5.24693 12.75C5.24693 12.9497 5.32627 13.1413 5.4675 13.2825L8.4675 16.2825C8.53883 16.3508 8.62294 16.4043 8.715 16.44C8.80478 16.4797 8.90185 16.5002 9 16.5002C9.09815 16.5002 9.19522 16.4797 9.285 16.44C9.37706 16.4043 9.46117 16.3508 9.5325 16.2825L12.5325 13.2825C12.6737 13.1413 12.7531 12.9497 12.7531 12.75C12.7531 12.5503 12.6737 12.3587 12.5325 12.2175C12.4626 12.1476 12.3796 12.0921 12.2882 12.0543C12.1968 12.0164 12.0989 11.9969 12 11.9969C11.8003 11.9969 11.6087 12.0763 11.4675 12.2175ZM14.25 1.5H3.75C3.55109 1.5 3.36032 1.57902 3.21967 1.71967C3.07902 1.86032 3 2.05109 3 2.25C3 2.44891 3.07902 2.63968 3.21967 2.78033C3.36032 2.92098 3.55109 3 3.75 3H14.25C14.4489 3 14.6397 2.92098 14.7803 2.78033C14.921 2.63968 15 2.44891 15 2.25C15 2.05109 14.921 1.86032 14.7803 1.71967C14.6397 1.57902 14.4489 1.5 14.25 1.5Z",fill:"white"})],-1),(0,n.eW)(" Добавить подземный этаж ")]))),_:1}),_.value?((0,n.uX)(),(0,n.Wv)(le,{key:0,inner:"",floors:Q.value,onDragEnd:B,"onDelete:floor":z,"onCopy:floor":s[5]||(s[5]=e=>N(e,-(Q.value.length+1)))},null,8,["floors"])):(0,n.Q3)("",!0)])],64)):(0,n.Q3)("",!0)]),(0,n.Lk)("div",De,[(0,n.bF)((0,r.R1)(L.A),{unstyled:"true",ref_key:"op",ref:o,class:"planEditWindow3dOverlay"},{default:(0,n.k6)((()=>[s[13]||(s[13]=(0,n.Lk)("h3",{class:"popover-title"},"Удалить подъезд?",-1)),(0,n.Lk)("div",Ae,[s[12]||(s[12]=(0,n.Lk)("p",{class:"confirmation-content",style:{display:"none"}},null,-1)),(0,n.Lk)("div",Me,[(0,n.Lk)("div",$e,[(0,n.Lk)("button",{onClick:s[6]||(s[6]=e=>Z()),style:{display:"flex","align-items":"center"},class:"overlay-custom-btn overlay-custom-btn-xs overlay-custom-btn-success","data-apply":"confirmation"},s[10]||(s[10]=[(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"13",height:"13",viewBox:"0 0 26 26"},[(0,n.Lk)("path",{fill:"white",d:"M 22.566406 4.730469 L 20.773438 3.511719 C 20.277344 3.175781 19.597656 3.304688 19.265625 3.796875 L 10.476563 16.757813 L 6.4375 12.71875 C 6.015625 12.296875 5.328125 12.296875 4.90625 12.71875 L 3.371094 14.253906 C 2.949219 14.675781 2.949219 15.363281 3.371094 15.789063 L 9.582031 22 C 9.929688 22.347656 10.476563 22.613281 10.96875 22.613281 C 11.460938 22.613281 11.957031 22.304688 12.277344 21.839844 L 22.855469 6.234375 C 23.191406 5.742188 23.0625 5.066406 22.566406 4.730469 Z"})],-1),(0,n.eW)(" Да ")])),(0,n.Lk)("button",{onClick:l,style:{display:"flex","align-items":"center"},class:"overlay-custom-btn overlay-custom-btn-xs overlay-custom-btn-danger","data-dismiss":"confirmation"},s[11]||(s[11]=[(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"13",height:"13",viewBox:"0 0 26 26"},[(0,n.Lk)("path",{fill:"white",d:"M 21.734375 19.640625 L 19.636719 21.734375 C 19.253906 22.121094 18.628906 22.121094 18.242188 21.734375 L 13 16.496094 L 7.761719 21.734375 C 7.375 22.121094 6.746094 22.121094 6.363281 21.734375 L 4.265625 19.640625 C 3.878906 19.253906 3.878906 18.628906 4.265625 18.242188 L 9.503906 13 L 4.265625 7.761719 C 3.882813 7.371094 3.882813 6.742188 4.265625 6.363281 L 6.363281 4.265625 C 6.746094 3.878906 7.375 3.878906 7.761719 4.265625 L 13 9.507813 L 18.242188 4.265625 C 18.628906 3.878906 19.257813 3.878906 19.636719 4.265625 L 21.734375 6.359375 C 22.121094 6.746094 22.121094 7.375 21.738281 7.761719 L 16.496094 13 L 21.734375 18.242188 C 22.121094 18.628906 22.121094 19.253906 21.734375 19.640625 Z"})],-1),(0,n.eW)(" Нет ")]))])])])])),_:1},512)])])),(0,n.bF)(we,{"is-open":t.value,testProp:t.value,onCloseModel:$,"onCopy:room":I,room:M.value,maxFloor:F.value,minFloor:R.value},null,8,["is-open","testProp","room","maxFloor","minFloor"])],64))}};const Re=(0,m.A)(Fe,[["__scopeId","data-v-66dd1060"]]);var Ie=Re,Oe=(o(8797),o(89127)),Be=o(54409);const Ke={class:"chessPage p-7.5"},We={class:"chessPage__title mb-7.5"},je={class:"subtitle"};var Te={__name:"ChessPage",setup(e){const t=(0,y.lq)(),o=t.params.house_id,i=(0,Be.j)(),a=(0,n.EW)((()=>i.complex)),s=(0,n.EW)((()=>i.house)),c=(0,r.KR)(!1),C=(0,r.KR)({}),d=(0,r.KR)({}),u=(e,t)=>{e&&("update"==t?Object.entries(e).forEach((([e,t])=>{d.value[e]=t})):"save"==t&&C.value.rooms.push(e)),c.value=!1,C.value={},setTimeout((()=>{d.value={}}),300)};return Y.A.$on("open:add-room",(e=>{c.value=!0,C.value=e})),Y.A.$on("open:edit-room",((e,t)=>{c.value=!0,C.value=e,d.value=t})),(0,n.sV)((()=>{i.get_house(o)})),(e,t)=>{const o=(0,n.g2)("Message");return(0,n.uX)(),(0,n.CE)(n.FK,null,[((0,n.uX)(),(0,n.Wv)(n.Im,{to:"body"},[(0,n.bF)(Oe.A,{isOpen:c.value,onCloseModel:u,floor:C.value,room:d.value},null,8,["isOpen","floor","room"])])),(0,n.Lk)("div",Ke,[(0,n.Lk)("div",We,[t[0]||(t[0]=(0,n.eW)(" Детализация шахматки: ")),(0,n.Lk)("div",je,(0,l.v_)(a.value.name)+" — "+(0,l.v_)(s.value.name),1)]),(0,n.bF)(o,{severity:"info",closable:!1,pt:{root:{class:["!bg-blue-100 !border-blue-500 !mb-7.5"]}}},{messageicon:(0,n.k6)((()=>t[1]||(t[1]=[(0,n.Lk)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"mr-3.5"},[(0,n.Lk)("path",{d:"M8.99966 8.25C8.80074 8.25 8.60998 8.32902 8.46933 8.46967C8.32867 8.61032 8.24966 8.80109 8.24966 9V11.25C8.24966 11.4489 8.32867 11.6397 8.46933 11.7803C8.60998 11.921 8.80074 12 8.99966 12C9.19857 12 9.38933 11.921 9.52999 11.7803C9.67064 11.6397 9.74966 11.4489 9.74966 11.25V9C9.74966 8.80109 9.67064 8.61032 9.52999 8.46967C9.38933 8.32902 9.19857 8.25 8.99966 8.25ZM8.99966 6C8.85132 6 8.70631 6.04399 8.58298 6.1264C8.45964 6.20881 8.36351 6.32594 8.30675 6.46299C8.24998 6.60003 8.23513 6.75083 8.26407 6.89632C8.29301 7.0418 8.36444 7.17544 8.46933 7.28033C8.57421 7.38522 8.70785 7.45665 8.85334 7.48559C8.99882 7.51453 9.14962 7.49968 9.28667 7.44291C9.42371 7.38614 9.54085 7.29001 9.62326 7.16668C9.70567 7.04334 9.74966 6.89834 9.74966 6.75C9.74966 6.55109 9.67064 6.36032 9.52999 6.21967C9.38933 6.07902 9.19857 6 8.99966 6ZM8.99966 1.5C8.01474 1.5 7.03947 1.69399 6.12953 2.0709C5.21959 2.44781 4.39279 3.00026 3.69635 3.6967C2.28983 5.10322 1.49966 7.01088 1.49966 9C1.4931 10.7319 2.09275 12.4114 3.19466 13.7475L1.69466 15.2475C1.59059 15.353 1.52009 15.4869 1.49206 15.6324C1.46403 15.7779 1.47972 15.9284 1.53716 16.065C1.59945 16.1999 1.70043 16.3133 1.82729 16.3908C1.95415 16.4682 2.10116 16.5063 2.24966 16.5H8.99966C10.9888 16.5 12.8964 15.7098 14.303 14.3033C15.7095 12.8968 16.4997 10.9891 16.4997 9C16.4997 7.01088 15.7095 5.10322 14.303 3.6967C12.8964 2.29018 10.9888 1.5 8.99966 1.5ZM8.99966 15H4.05716L4.75466 14.3025C4.82552 14.233 4.8819 14.1502 4.92052 14.0588C4.95914 13.9674 4.97924 13.8692 4.97966 13.77C4.97684 13.5722 4.89597 13.3835 4.75466 13.245C3.77259 12.264 3.16104 10.9729 3.02417 9.59159C2.88731 8.21029 3.23361 6.82425 4.00408 5.66964C4.77454 4.51503 5.9215 3.66327 7.24954 3.25948C8.57759 2.85569 10.0045 2.92485 11.2873 3.45519C12.5701 3.98552 13.6293 4.94421 14.2845 6.16792C14.9397 7.39163 15.1503 8.80466 14.8805 10.1663C14.6107 11.5279 13.8771 12.7538 12.8048 13.6352C11.7325 14.5166 10.3877 14.9989 8.99966 15Z",fill:"#3A8EFA"})],-1)]))),default:(0,n.k6)((()=>t[2]||(t[2]=[(0,n.eW)(" На этой странице вы можете заполнить дом помещениями без использования импорта, а также быстро вносить изменения в отдельные помещения. ")]))),_:1}),(0,n.bF)(Ie,{class:"mt-7.5"})])],64)}}};const Se=(0,m.A)(Te,[["__scopeId","data-v-b0390f96"]]);var Xe=Se}}]);
|
||
//# sourceMappingURL=7eb6c8d767f2b3c3.js.map
|