PageSourceSearch

https://lidomatrip.com/_next/static/chunks/pages/admin/residences/[id]/calendar-af077f5d7b1ae16d.js

js lidomatrip.com collected 2026-09-25 07:11:10 UTC 2,333 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8415],{15299:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/residences/[id]/calendar",function(){return r(49335)}])},94267:function(e,n,r){"use strict";r.d(n,{Z:function(){return c}});var i=r(10253),t=r(85893),a=r(67294),d=r(33496);function c(e){var n,r,c,s=e.residence,u=s.rooms.filter(function(e){return"فضای مشترک"!==e.name}),l="BOOMGARDI"===s.type||"HOTEL"===s.type,o=(0,i.Z)((0,a.useState)(l?null===(n=u[0])||void 0===n?void 0:n.id:void 0),2),f=o[0],m=o[1];if(l&&0===u.length)return(0,t.jsx)("p",{className:"text-13 leading-22 text-gray-6C6A7D py-24 text-center",children:"این اقامتگاه هنوز اتاقی ندارد."});var x=l?{residenceId:s.id,roomId:f,label:null!==(c=null===(r=u.find(function(e){return e.id===f}))||void 0===r?void 0:r.name)&&void 0!==c?c:s.name}:{residenceId:s.id,label:s.name};return(0,t.jsxs)("div",{className:"flex flex-col gap-y-16",children:[l&&u.length>1&&(0,t.jsx)("div",{className:"flex items-center gap-x-8 overflow-x-auto pb-4",children:u.map(function(e){return(0,t.jsx)("button",{type:"button",onClick:function(){return m(e.id)},className:"shrink-0 px-16 py-8 rounded-8 text-12 leading-21 font-m whitespace-nowrap transition ".concat(f===e.id?"bg-primary-light text-primary-dark":"bg-gray-F5F5F7 text-black hover:bg-gray-F0F0F0"),children:e.name},e.id)})}),(0,t.jsx)(d.Z,{targets:[x]})]})}},49335:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return f}});var i=r(85893),t=r(41664),a=r.n(t),d=r(11163),c=r(44389),s=r(49759),u=r(94267),l=r(32474),o=r(84858);function f(){var e,n=Number((0,d.useRouter)().query.id),r=(0,c.u)(Number.isFinite(n)?"/api/admin/residences/".concat(n):null,function(e){return(0,o.SC)(e)}).data;return(0,i.jsx)(s.Z,{title:"تقویم و نرخ",breadcrumb:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a(),{href:"/admin",children:"داشبورد"})," / ",(0,i.jsx)(a(),{href:"/admin/residences",children:"اقامتگاه‌ها"})," / ",(0,i.jsx)(a(),{href:"/admin/residences/".concat(n),children:null!==(e=null==r?void 0:r.name)&&void 0!==e?e:"اقامتگاه"})]}),children:r?(0,i.jsx)(u.Z,{residence:r}):(0,i.jsx)(l.Od,{className:"h-[420px]"})})}}},function(e){e.O(0,[4885,9791,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.