"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Bulk deletes sliders by IDs",operationId:"bulkDeleteSliders",tags:["Admin","Sliders"],parameters:(0,query_1.commonBulkDeleteParams)("Sliders"),requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{ids:{type:"array",items:{type:"string"},description:"Array of slider IDs to delete"}},required:["ids"]}}}},responses:(0,query_1.commonBulkDeleteResponses)("Sliders"),requiresAuth:!0,permission:"delete.slider",logModule:"ADMIN_CMS",logTitle:"Bulk delete sliders"};exports.default=async e=>{const{body:s,query:r,ctx:t}=e,{ids:l}=s;null==t||t.step(`Bulk deleting ${(null==l?void 0:l.length)||0} slider(s)`);const d=await(0,query_1.handleBulkDelete)({model:"slider",ids:l,query:r});null==t||t.success("Successfully deleted slider(s)");return d};