1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8415],{15299:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/residences/[id]/calendar",function(){return i(49335)}])},94267:function(e,n,i){"use strict";i.d(n,{Z:function(){return s}});var r=i(85893),t=i(67294),d=i(33496);function s(e){var n,i;let{residence:s}=e,a=s.rooms.filter(e=>"ÙØ¶Ø§Û Ù
شترک"!==e.name),l="BOOMGARDI"===s.type||"HOTEL"===s.type,[c,u]=(0,t.useState)(l?null===(n=a[0])||void 0===n?void 0:n.id:void 0);if(l&&0===a.length)return(0,r.jsx)("p",{className:"text-13 leading-22 text-gray-6C6A7D py-24 text-center",children:"اÛÙ Ø§ÙØ§Ù
تگا٠ÙÙÙØ² اتاÙÛ ÙØ¯Ø§Ø±Ø¯."});let o=l?{residenceId:s.id,roomId:c,label:(null===(i=a.find(e=>e.id===c))||void 0===i?void 0:i.name)??s.name}:{residenceId:s.id,label:s.name};return(0,r.jsxs)("div",{className:"flex flex-col gap-y-16",children:[l&&a.length>1&&(0,r.jsx)("div",{className:"flex items-center gap-x-8 overflow-x-auto pb-4",children:a.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>u(e.id),className:`shrink-0 px-16 py-8 rounded-8 text-12 leading-21 font-m whitespace-nowrap transition ${c===e.id?"bg-primary-light text-primary-dark":"bg-gray-F5F5F7 text-black hover:bg-gray-F0F0F0"}`,children:e.name},e.id))}),(0,r.jsx)(d.Z,{targets:[o]})]})}},49335:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return m}});var r=i(85893),t=i(41664),d=i.n(t),s=i(11163),a=i(44389),l=i(49759),c=i(94267),u=i(32474),o=i(84858);function m(){let e=(0,s.useRouter)(),n=Number(e.query.id),{data:i}=(0,a.u)(Number.isFinite(n)?`/api/admin/residences/${n}`:null,e=>(0,o.SC)(e));return(0,r.jsx)(l.Z,{title:"تÙÙÛÙ
Ù ÙØ±Ø®",breadcrumb:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d(),{href:"/admin",children:"Ø¯Ø§Ø´Ø¨ÙØ±Ø¯"})," / ",(0,r.jsx)(d(),{href:"/admin/residences",children:"Ø§ÙØ§Ù
تگاÙâÙØ§"})," / ",(0,r.jsx)(d(),{href:`/admin/residences/${n}`,children:(null==i?void 0:i.name)??"Ø§ÙØ§Ù
تگاÙ"})]}),children:i?(0,r.jsx)(c.Z,{residence:i}):(0,r.jsx)(u.Od,{className:"h-[420px]"})})}}},function(e){e.O(0,[4885,4389,8289,9759,3496,9774,2888,179],function(){return e(e.s=15299)}),_N_E=e.O()}]);
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.