"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query"),utils_1=require("../utils");exports.metadata={summary:"Retrieves detailed information of a specific slider by ID",operationId:"getSliderById",tags:["Admin","Sliders"],parameters:[{index:0,name:"id",in:"path",required:!0,description:"ID of the slider to retrieve",schema:{type:"string"}}],responses:{200:{description:"Slider details",content:{"application/json":{schema:{type:"object",properties:utils_1.sliderSchema}}}},401:query_1.unauthorizedResponse,404:(0,query_1.notFoundMetadataResponse)("Slider"),500:query_1.serverErrorResponse},permission:"view.slider",requiresAuth:!0,logModule:"ADMIN_CMS",logTitle:"Get slider details"};exports.default=async e=>{const{params:r,ctx:s}=e;null==s||s.step(`Fetching slider with ID: ${r.id}`);const t=await(0,query_1.getRecord)("slider",r.id);null==s||s.success("Slider retrieved successfully");return t};